Spaces:
Paused
Paused
Upload folder using huggingface_hub (part 11)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +6 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +24 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts +39 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +24 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts +428 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +24 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.d.ts +124 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +87 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.d.ts +194 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +103 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts +43 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +24 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.d.ts +195 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +56 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts +221 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +24 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts +674 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +239 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +330 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +64 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.d.ts +18 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +31 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.d.ts +21 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +50 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.d.ts +15 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +38 -0
- node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/package.json +68 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/README.md +54 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/assert-fetch-api.d.ts +4 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/assert-fetch-api.js +27 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/connect-transport.d.ts +64 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/connect-transport.js +193 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/grpc-web-transport.d.ts +65 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/grpc-web-transport.js +237 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/index.d.ts +4 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/index.js +20 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/package.json +1 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/assert-fetch-api.d.ts +4 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/assert-fetch-api.js +24 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/connect-transport.d.ts +64 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/connect-transport.js +190 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/grpc-web-transport.d.ts +65 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/grpc-web-transport.js +234 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/index.d.ts +4 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/index.js +15 -0
- node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/package.json +57 -0
- node_modules/.pnpm/@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0/node_modules/@connectrpc/connect/README.md +62 -0
- node_modules/.pnpm/@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0/node_modules/@connectrpc/connect/dist/cjs/any-client.d.ts +19 -0
- node_modules/.pnpm/@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0/node_modules/@connectrpc/connect/dist/cjs/any-client.js +33 -0
- node_modules/.pnpm/@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0/node_modules/@connectrpc/connect/dist/cjs/call-options.d.ts +34 -0
.gitattributes
CHANGED
|
@@ -43,3 +43,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 43 |
.next/standalone/node_modules/.pnpm/@img+sharp-linuxmusl-x64@0.34.3/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node filter=lfs diff=lfs merge=lfs -text
|
| 44 |
assets/papercoder_overview.png filter=lfs diff=lfs merge=lfs -text
|
| 45 |
examples/Transformer.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 43 |
.next/standalone/node_modules/.pnpm/@img+sharp-linuxmusl-x64@0.34.3/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node filter=lfs diff=lfs merge=lfs -text
|
| 44 |
assets/papercoder_overview.png filter=lfs diff=lfs merge=lfs -text
|
| 45 |
examples/Transformer.pdf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
node_modules/.pnpm/@img+sharp-libvips-linux-x64@1.2.0/node_modules/@img/sharp-libvips-linux-x64/lib/libvips-cpp.so.8.17.1 filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
node_modules/.pnpm/@img+sharp-libvips-linuxmusl-x64@1.2.0/node_modules/@img/sharp-libvips-linuxmusl-x64/lib/libvips-cpp.so.8.17.1 filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
node_modules/.pnpm/@img+sharp-linux-x64@0.34.3/node_modules/@img/sharp-linux-x64/lib/sharp-linux-x64.node filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
node_modules/.pnpm/@img+sharp-linuxmusl-x64@0.34.3/node_modules/@img/sharp-linuxmusl-x64/lib/sharp-linuxmusl-x64.node filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
node_modules/.pnpm/@next+swc-linux-x64-gnu@15.4.3/node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
node_modules/.pnpm/@next+swc-linux-x64-musl@15.4.3/node_modules/@next/swc-linux-x64-musl/next-swc.linux-x64-musl.node filter=lfs diff=lfs merge=lfs -text
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
import { fileDesc } from "../../../../codegenv2/file.js";
|
| 15 |
+
import { messageDesc } from "../../../../codegenv2/message.js";
|
| 16 |
+
/**
|
| 17 |
+
* Describes the file google/protobuf/duration.proto.
|
| 18 |
+
*/
|
| 19 |
+
export const file_google_protobuf_duration = /*@__PURE__*/ fileDesc("Ch5nb29nbGUvcHJvdG9idWYvZHVyYXRpb24ucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIqCghEdXJhdGlvbhIPCgdzZWNvbmRzGAEgASgDEg0KBW5hbm9zGAIgASgFQoMBChNjb20uZ29vZ2xlLnByb3RvYnVmQg1EdXJhdGlvblByb3RvUAFaMWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2R1cmF0aW9ucGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw");
|
| 20 |
+
/**
|
| 21 |
+
* Describes the message google.protobuf.Duration.
|
| 22 |
+
* Use `create(DurationSchema)` to create a new message.
|
| 23 |
+
*/
|
| 24 |
+
export const DurationSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_duration, 0);
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { GenFile, GenMessage } from "../../../../codegenv2/types.js";
|
| 2 |
+
import type { Message } from "../../../../types.js";
|
| 3 |
+
/**
|
| 4 |
+
* Describes the file google/protobuf/empty.proto.
|
| 5 |
+
*/
|
| 6 |
+
export declare const file_google_protobuf_empty: GenFile;
|
| 7 |
+
/**
|
| 8 |
+
* A generic empty message that you can re-use to avoid defining duplicated
|
| 9 |
+
* empty messages in your APIs. A typical example is to use it as the request
|
| 10 |
+
* or the response type of an API method. For instance:
|
| 11 |
+
*
|
| 12 |
+
* service Foo {
|
| 13 |
+
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
| 14 |
+
* }
|
| 15 |
+
*
|
| 16 |
+
*
|
| 17 |
+
* @generated from message google.protobuf.Empty
|
| 18 |
+
*/
|
| 19 |
+
export type Empty = Message<"google.protobuf.Empty"> & {};
|
| 20 |
+
/**
|
| 21 |
+
* A generic empty message that you can re-use to avoid defining duplicated
|
| 22 |
+
* empty messages in your APIs. A typical example is to use it as the request
|
| 23 |
+
* or the response type of an API method. For instance:
|
| 24 |
+
*
|
| 25 |
+
* service Foo {
|
| 26 |
+
* rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
| 27 |
+
* }
|
| 28 |
+
*
|
| 29 |
+
*
|
| 30 |
+
* @generated from message google.protobuf.Empty
|
| 31 |
+
*/
|
| 32 |
+
export type EmptyJson = Record<string, never>;
|
| 33 |
+
/**
|
| 34 |
+
* Describes the message google.protobuf.Empty.
|
| 35 |
+
* Use `create(EmptySchema)` to create a new message.
|
| 36 |
+
*/
|
| 37 |
+
export declare const EmptySchema: GenMessage<Empty, {
|
| 38 |
+
jsonType: EmptyJson;
|
| 39 |
+
}>;
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
import { fileDesc } from "../../../../codegenv2/file.js";
|
| 15 |
+
import { messageDesc } from "../../../../codegenv2/message.js";
|
| 16 |
+
/**
|
| 17 |
+
* Describes the file google/protobuf/empty.proto.
|
| 18 |
+
*/
|
| 19 |
+
export const file_google_protobuf_empty = /*@__PURE__*/ fileDesc("Chtnb29nbGUvcHJvdG9idWYvZW1wdHkucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIHCgVFbXB0eUJ9ChNjb20uZ29vZ2xlLnByb3RvYnVmQgpFbXB0eVByb3RvUAFaLmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL2VtcHR5cGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw");
|
| 20 |
+
/**
|
| 21 |
+
* Describes the message google.protobuf.Empty.
|
| 22 |
+
* Use `create(EmptySchema)` to create a new message.
|
| 23 |
+
*/
|
| 24 |
+
export const EmptySchema = /*@__PURE__*/ messageDesc(file_google_protobuf_empty, 0);
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts
ADDED
|
@@ -0,0 +1,428 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { GenFile, GenMessage } from "../../../../codegenv2/types.js";
|
| 2 |
+
import type { Message } from "../../../../types.js";
|
| 3 |
+
/**
|
| 4 |
+
* Describes the file google/protobuf/field_mask.proto.
|
| 5 |
+
*/
|
| 6 |
+
export declare const file_google_protobuf_field_mask: GenFile;
|
| 7 |
+
/**
|
| 8 |
+
* `FieldMask` represents a set of symbolic field paths, for example:
|
| 9 |
+
*
|
| 10 |
+
* paths: "f.a"
|
| 11 |
+
* paths: "f.b.d"
|
| 12 |
+
*
|
| 13 |
+
* Here `f` represents a field in some root message, `a` and `b`
|
| 14 |
+
* fields in the message found in `f`, and `d` a field found in the
|
| 15 |
+
* message in `f.b`.
|
| 16 |
+
*
|
| 17 |
+
* Field masks are used to specify a subset of fields that should be
|
| 18 |
+
* returned by a get operation or modified by an update operation.
|
| 19 |
+
* Field masks also have a custom JSON encoding (see below).
|
| 20 |
+
*
|
| 21 |
+
* # Field Masks in Projections
|
| 22 |
+
*
|
| 23 |
+
* When used in the context of a projection, a response message or
|
| 24 |
+
* sub-message is filtered by the API to only contain those fields as
|
| 25 |
+
* specified in the mask. For example, if the mask in the previous
|
| 26 |
+
* example is applied to a response message as follows:
|
| 27 |
+
*
|
| 28 |
+
* f {
|
| 29 |
+
* a : 22
|
| 30 |
+
* b {
|
| 31 |
+
* d : 1
|
| 32 |
+
* x : 2
|
| 33 |
+
* }
|
| 34 |
+
* y : 13
|
| 35 |
+
* }
|
| 36 |
+
* z: 8
|
| 37 |
+
*
|
| 38 |
+
* The result will not contain specific values for fields x,y and z
|
| 39 |
+
* (their value will be set to the default, and omitted in proto text
|
| 40 |
+
* output):
|
| 41 |
+
*
|
| 42 |
+
*
|
| 43 |
+
* f {
|
| 44 |
+
* a : 22
|
| 45 |
+
* b {
|
| 46 |
+
* d : 1
|
| 47 |
+
* }
|
| 48 |
+
* }
|
| 49 |
+
*
|
| 50 |
+
* A repeated field is not allowed except at the last position of a
|
| 51 |
+
* paths string.
|
| 52 |
+
*
|
| 53 |
+
* If a FieldMask object is not present in a get operation, the
|
| 54 |
+
* operation applies to all fields (as if a FieldMask of all fields
|
| 55 |
+
* had been specified).
|
| 56 |
+
*
|
| 57 |
+
* Note that a field mask does not necessarily apply to the
|
| 58 |
+
* top-level response message. In case of a REST get operation, the
|
| 59 |
+
* field mask applies directly to the response, but in case of a REST
|
| 60 |
+
* list operation, the mask instead applies to each individual message
|
| 61 |
+
* in the returned resource list. In case of a REST custom method,
|
| 62 |
+
* other definitions may be used. Where the mask applies will be
|
| 63 |
+
* clearly documented together with its declaration in the API. In
|
| 64 |
+
* any case, the effect on the returned resource/resources is required
|
| 65 |
+
* behavior for APIs.
|
| 66 |
+
*
|
| 67 |
+
* # Field Masks in Update Operations
|
| 68 |
+
*
|
| 69 |
+
* A field mask in update operations specifies which fields of the
|
| 70 |
+
* targeted resource are going to be updated. The API is required
|
| 71 |
+
* to only change the values of the fields as specified in the mask
|
| 72 |
+
* and leave the others untouched. If a resource is passed in to
|
| 73 |
+
* describe the updated values, the API ignores the values of all
|
| 74 |
+
* fields not covered by the mask.
|
| 75 |
+
*
|
| 76 |
+
* If a repeated field is specified for an update operation, new values will
|
| 77 |
+
* be appended to the existing repeated field in the target resource. Note that
|
| 78 |
+
* a repeated field is only allowed in the last position of a `paths` string.
|
| 79 |
+
*
|
| 80 |
+
* If a sub-message is specified in the last position of the field mask for an
|
| 81 |
+
* update operation, then new value will be merged into the existing sub-message
|
| 82 |
+
* in the target resource.
|
| 83 |
+
*
|
| 84 |
+
* For example, given the target message:
|
| 85 |
+
*
|
| 86 |
+
* f {
|
| 87 |
+
* b {
|
| 88 |
+
* d: 1
|
| 89 |
+
* x: 2
|
| 90 |
+
* }
|
| 91 |
+
* c: [1]
|
| 92 |
+
* }
|
| 93 |
+
*
|
| 94 |
+
* And an update message:
|
| 95 |
+
*
|
| 96 |
+
* f {
|
| 97 |
+
* b {
|
| 98 |
+
* d: 10
|
| 99 |
+
* }
|
| 100 |
+
* c: [2]
|
| 101 |
+
* }
|
| 102 |
+
*
|
| 103 |
+
* then if the field mask is:
|
| 104 |
+
*
|
| 105 |
+
* paths: ["f.b", "f.c"]
|
| 106 |
+
*
|
| 107 |
+
* then the result will be:
|
| 108 |
+
*
|
| 109 |
+
* f {
|
| 110 |
+
* b {
|
| 111 |
+
* d: 10
|
| 112 |
+
* x: 2
|
| 113 |
+
* }
|
| 114 |
+
* c: [1, 2]
|
| 115 |
+
* }
|
| 116 |
+
*
|
| 117 |
+
* An implementation may provide options to override this default behavior for
|
| 118 |
+
* repeated and message fields.
|
| 119 |
+
*
|
| 120 |
+
* In order to reset a field's value to the default, the field must
|
| 121 |
+
* be in the mask and set to the default value in the provided resource.
|
| 122 |
+
* Hence, in order to reset all fields of a resource, provide a default
|
| 123 |
+
* instance of the resource and set all fields in the mask, or do
|
| 124 |
+
* not provide a mask as described below.
|
| 125 |
+
*
|
| 126 |
+
* If a field mask is not present on update, the operation applies to
|
| 127 |
+
* all fields (as if a field mask of all fields has been specified).
|
| 128 |
+
* Note that in the presence of schema evolution, this may mean that
|
| 129 |
+
* fields the client does not know and has therefore not filled into
|
| 130 |
+
* the request will be reset to their default. If this is unwanted
|
| 131 |
+
* behavior, a specific service may require a client to always specify
|
| 132 |
+
* a field mask, producing an error if not.
|
| 133 |
+
*
|
| 134 |
+
* As with get operations, the location of the resource which
|
| 135 |
+
* describes the updated values in the request message depends on the
|
| 136 |
+
* operation kind. In any case, the effect of the field mask is
|
| 137 |
+
* required to be honored by the API.
|
| 138 |
+
*
|
| 139 |
+
* ## Considerations for HTTP REST
|
| 140 |
+
*
|
| 141 |
+
* The HTTP kind of an update operation which uses a field mask must
|
| 142 |
+
* be set to PATCH instead of PUT in order to satisfy HTTP semantics
|
| 143 |
+
* (PUT must only be used for full updates).
|
| 144 |
+
*
|
| 145 |
+
* # JSON Encoding of Field Masks
|
| 146 |
+
*
|
| 147 |
+
* In JSON, a field mask is encoded as a single string where paths are
|
| 148 |
+
* separated by a comma. Fields name in each path are converted
|
| 149 |
+
* to/from lower-camel naming conventions.
|
| 150 |
+
*
|
| 151 |
+
* As an example, consider the following message declarations:
|
| 152 |
+
*
|
| 153 |
+
* message Profile {
|
| 154 |
+
* User user = 1;
|
| 155 |
+
* Photo photo = 2;
|
| 156 |
+
* }
|
| 157 |
+
* message User {
|
| 158 |
+
* string display_name = 1;
|
| 159 |
+
* string address = 2;
|
| 160 |
+
* }
|
| 161 |
+
*
|
| 162 |
+
* In proto a field mask for `Profile` may look as such:
|
| 163 |
+
*
|
| 164 |
+
* mask {
|
| 165 |
+
* paths: "user.display_name"
|
| 166 |
+
* paths: "photo"
|
| 167 |
+
* }
|
| 168 |
+
*
|
| 169 |
+
* In JSON, the same mask is represented as below:
|
| 170 |
+
*
|
| 171 |
+
* {
|
| 172 |
+
* mask: "user.displayName,photo"
|
| 173 |
+
* }
|
| 174 |
+
*
|
| 175 |
+
* # Field Masks and Oneof Fields
|
| 176 |
+
*
|
| 177 |
+
* Field masks treat fields in oneofs just as regular fields. Consider the
|
| 178 |
+
* following message:
|
| 179 |
+
*
|
| 180 |
+
* message SampleMessage {
|
| 181 |
+
* oneof test_oneof {
|
| 182 |
+
* string name = 4;
|
| 183 |
+
* SubMessage sub_message = 9;
|
| 184 |
+
* }
|
| 185 |
+
* }
|
| 186 |
+
*
|
| 187 |
+
* The field mask can be:
|
| 188 |
+
*
|
| 189 |
+
* mask {
|
| 190 |
+
* paths: "name"
|
| 191 |
+
* }
|
| 192 |
+
*
|
| 193 |
+
* Or:
|
| 194 |
+
*
|
| 195 |
+
* mask {
|
| 196 |
+
* paths: "sub_message"
|
| 197 |
+
* }
|
| 198 |
+
*
|
| 199 |
+
* Note that oneof type names ("test_oneof" in this case) cannot be used in
|
| 200 |
+
* paths.
|
| 201 |
+
*
|
| 202 |
+
* ## Field Mask Verification
|
| 203 |
+
*
|
| 204 |
+
* The implementation of any API method which has a FieldMask type field in the
|
| 205 |
+
* request should verify the included field paths, and return an
|
| 206 |
+
* `INVALID_ARGUMENT` error if any path is unmappable.
|
| 207 |
+
*
|
| 208 |
+
* @generated from message google.protobuf.FieldMask
|
| 209 |
+
*/
|
| 210 |
+
export type FieldMask = Message<"google.protobuf.FieldMask"> & {
|
| 211 |
+
/**
|
| 212 |
+
* The set of field mask paths.
|
| 213 |
+
*
|
| 214 |
+
* @generated from field: repeated string paths = 1;
|
| 215 |
+
*/
|
| 216 |
+
paths: string[];
|
| 217 |
+
};
|
| 218 |
+
/**
|
| 219 |
+
* `FieldMask` represents a set of symbolic field paths, for example:
|
| 220 |
+
*
|
| 221 |
+
* paths: "f.a"
|
| 222 |
+
* paths: "f.b.d"
|
| 223 |
+
*
|
| 224 |
+
* Here `f` represents a field in some root message, `a` and `b`
|
| 225 |
+
* fields in the message found in `f`, and `d` a field found in the
|
| 226 |
+
* message in `f.b`.
|
| 227 |
+
*
|
| 228 |
+
* Field masks are used to specify a subset of fields that should be
|
| 229 |
+
* returned by a get operation or modified by an update operation.
|
| 230 |
+
* Field masks also have a custom JSON encoding (see below).
|
| 231 |
+
*
|
| 232 |
+
* # Field Masks in Projections
|
| 233 |
+
*
|
| 234 |
+
* When used in the context of a projection, a response message or
|
| 235 |
+
* sub-message is filtered by the API to only contain those fields as
|
| 236 |
+
* specified in the mask. For example, if the mask in the previous
|
| 237 |
+
* example is applied to a response message as follows:
|
| 238 |
+
*
|
| 239 |
+
* f {
|
| 240 |
+
* a : 22
|
| 241 |
+
* b {
|
| 242 |
+
* d : 1
|
| 243 |
+
* x : 2
|
| 244 |
+
* }
|
| 245 |
+
* y : 13
|
| 246 |
+
* }
|
| 247 |
+
* z: 8
|
| 248 |
+
*
|
| 249 |
+
* The result will not contain specific values for fields x,y and z
|
| 250 |
+
* (their value will be set to the default, and omitted in proto text
|
| 251 |
+
* output):
|
| 252 |
+
*
|
| 253 |
+
*
|
| 254 |
+
* f {
|
| 255 |
+
* a : 22
|
| 256 |
+
* b {
|
| 257 |
+
* d : 1
|
| 258 |
+
* }
|
| 259 |
+
* }
|
| 260 |
+
*
|
| 261 |
+
* A repeated field is not allowed except at the last position of a
|
| 262 |
+
* paths string.
|
| 263 |
+
*
|
| 264 |
+
* If a FieldMask object is not present in a get operation, the
|
| 265 |
+
* operation applies to all fields (as if a FieldMask of all fields
|
| 266 |
+
* had been specified).
|
| 267 |
+
*
|
| 268 |
+
* Note that a field mask does not necessarily apply to the
|
| 269 |
+
* top-level response message. In case of a REST get operation, the
|
| 270 |
+
* field mask applies directly to the response, but in case of a REST
|
| 271 |
+
* list operation, the mask instead applies to each individual message
|
| 272 |
+
* in the returned resource list. In case of a REST custom method,
|
| 273 |
+
* other definitions may be used. Where the mask applies will be
|
| 274 |
+
* clearly documented together with its declaration in the API. In
|
| 275 |
+
* any case, the effect on the returned resource/resources is required
|
| 276 |
+
* behavior for APIs.
|
| 277 |
+
*
|
| 278 |
+
* # Field Masks in Update Operations
|
| 279 |
+
*
|
| 280 |
+
* A field mask in update operations specifies which fields of the
|
| 281 |
+
* targeted resource are going to be updated. The API is required
|
| 282 |
+
* to only change the values of the fields as specified in the mask
|
| 283 |
+
* and leave the others untouched. If a resource is passed in to
|
| 284 |
+
* describe the updated values, the API ignores the values of all
|
| 285 |
+
* fields not covered by the mask.
|
| 286 |
+
*
|
| 287 |
+
* If a repeated field is specified for an update operation, new values will
|
| 288 |
+
* be appended to the existing repeated field in the target resource. Note that
|
| 289 |
+
* a repeated field is only allowed in the last position of a `paths` string.
|
| 290 |
+
*
|
| 291 |
+
* If a sub-message is specified in the last position of the field mask for an
|
| 292 |
+
* update operation, then new value will be merged into the existing sub-message
|
| 293 |
+
* in the target resource.
|
| 294 |
+
*
|
| 295 |
+
* For example, given the target message:
|
| 296 |
+
*
|
| 297 |
+
* f {
|
| 298 |
+
* b {
|
| 299 |
+
* d: 1
|
| 300 |
+
* x: 2
|
| 301 |
+
* }
|
| 302 |
+
* c: [1]
|
| 303 |
+
* }
|
| 304 |
+
*
|
| 305 |
+
* And an update message:
|
| 306 |
+
*
|
| 307 |
+
* f {
|
| 308 |
+
* b {
|
| 309 |
+
* d: 10
|
| 310 |
+
* }
|
| 311 |
+
* c: [2]
|
| 312 |
+
* }
|
| 313 |
+
*
|
| 314 |
+
* then if the field mask is:
|
| 315 |
+
*
|
| 316 |
+
* paths: ["f.b", "f.c"]
|
| 317 |
+
*
|
| 318 |
+
* then the result will be:
|
| 319 |
+
*
|
| 320 |
+
* f {
|
| 321 |
+
* b {
|
| 322 |
+
* d: 10
|
| 323 |
+
* x: 2
|
| 324 |
+
* }
|
| 325 |
+
* c: [1, 2]
|
| 326 |
+
* }
|
| 327 |
+
*
|
| 328 |
+
* An implementation may provide options to override this default behavior for
|
| 329 |
+
* repeated and message fields.
|
| 330 |
+
*
|
| 331 |
+
* In order to reset a field's value to the default, the field must
|
| 332 |
+
* be in the mask and set to the default value in the provided resource.
|
| 333 |
+
* Hence, in order to reset all fields of a resource, provide a default
|
| 334 |
+
* instance of the resource and set all fields in the mask, or do
|
| 335 |
+
* not provide a mask as described below.
|
| 336 |
+
*
|
| 337 |
+
* If a field mask is not present on update, the operation applies to
|
| 338 |
+
* all fields (as if a field mask of all fields has been specified).
|
| 339 |
+
* Note that in the presence of schema evolution, this may mean that
|
| 340 |
+
* fields the client does not know and has therefore not filled into
|
| 341 |
+
* the request will be reset to their default. If this is unwanted
|
| 342 |
+
* behavior, a specific service may require a client to always specify
|
| 343 |
+
* a field mask, producing an error if not.
|
| 344 |
+
*
|
| 345 |
+
* As with get operations, the location of the resource which
|
| 346 |
+
* describes the updated values in the request message depends on the
|
| 347 |
+
* operation kind. In any case, the effect of the field mask is
|
| 348 |
+
* required to be honored by the API.
|
| 349 |
+
*
|
| 350 |
+
* ## Considerations for HTTP REST
|
| 351 |
+
*
|
| 352 |
+
* The HTTP kind of an update operation which uses a field mask must
|
| 353 |
+
* be set to PATCH instead of PUT in order to satisfy HTTP semantics
|
| 354 |
+
* (PUT must only be used for full updates).
|
| 355 |
+
*
|
| 356 |
+
* # JSON Encoding of Field Masks
|
| 357 |
+
*
|
| 358 |
+
* In JSON, a field mask is encoded as a single string where paths are
|
| 359 |
+
* separated by a comma. Fields name in each path are converted
|
| 360 |
+
* to/from lower-camel naming conventions.
|
| 361 |
+
*
|
| 362 |
+
* As an example, consider the following message declarations:
|
| 363 |
+
*
|
| 364 |
+
* message Profile {
|
| 365 |
+
* User user = 1;
|
| 366 |
+
* Photo photo = 2;
|
| 367 |
+
* }
|
| 368 |
+
* message User {
|
| 369 |
+
* string display_name = 1;
|
| 370 |
+
* string address = 2;
|
| 371 |
+
* }
|
| 372 |
+
*
|
| 373 |
+
* In proto a field mask for `Profile` may look as such:
|
| 374 |
+
*
|
| 375 |
+
* mask {
|
| 376 |
+
* paths: "user.display_name"
|
| 377 |
+
* paths: "photo"
|
| 378 |
+
* }
|
| 379 |
+
*
|
| 380 |
+
* In JSON, the same mask is represented as below:
|
| 381 |
+
*
|
| 382 |
+
* {
|
| 383 |
+
* mask: "user.displayName,photo"
|
| 384 |
+
* }
|
| 385 |
+
*
|
| 386 |
+
* # Field Masks and Oneof Fields
|
| 387 |
+
*
|
| 388 |
+
* Field masks treat fields in oneofs just as regular fields. Consider the
|
| 389 |
+
* following message:
|
| 390 |
+
*
|
| 391 |
+
* message SampleMessage {
|
| 392 |
+
* oneof test_oneof {
|
| 393 |
+
* string name = 4;
|
| 394 |
+
* SubMessage sub_message = 9;
|
| 395 |
+
* }
|
| 396 |
+
* }
|
| 397 |
+
*
|
| 398 |
+
* The field mask can be:
|
| 399 |
+
*
|
| 400 |
+
* mask {
|
| 401 |
+
* paths: "name"
|
| 402 |
+
* }
|
| 403 |
+
*
|
| 404 |
+
* Or:
|
| 405 |
+
*
|
| 406 |
+
* mask {
|
| 407 |
+
* paths: "sub_message"
|
| 408 |
+
* }
|
| 409 |
+
*
|
| 410 |
+
* Note that oneof type names ("test_oneof" in this case) cannot be used in
|
| 411 |
+
* paths.
|
| 412 |
+
*
|
| 413 |
+
* ## Field Mask Verification
|
| 414 |
+
*
|
| 415 |
+
* The implementation of any API method which has a FieldMask type field in the
|
| 416 |
+
* request should verify the included field paths, and return an
|
| 417 |
+
* `INVALID_ARGUMENT` error if any path is unmappable.
|
| 418 |
+
*
|
| 419 |
+
* @generated from message google.protobuf.FieldMask
|
| 420 |
+
*/
|
| 421 |
+
export type FieldMaskJson = string;
|
| 422 |
+
/**
|
| 423 |
+
* Describes the message google.protobuf.FieldMask.
|
| 424 |
+
* Use `create(FieldMaskSchema)` to create a new message.
|
| 425 |
+
*/
|
| 426 |
+
export declare const FieldMaskSchema: GenMessage<FieldMask, {
|
| 427 |
+
jsonType: FieldMaskJson;
|
| 428 |
+
}>;
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
import { fileDesc } from "../../../../codegenv2/file.js";
|
| 15 |
+
import { messageDesc } from "../../../../codegenv2/message.js";
|
| 16 |
+
/**
|
| 17 |
+
* Describes the file google/protobuf/field_mask.proto.
|
| 18 |
+
*/
|
| 19 |
+
export const file_google_protobuf_field_mask = /*@__PURE__*/ fileDesc("CiBnb29nbGUvcHJvdG9idWYvZmllbGRfbWFzay5wcm90bxIPZ29vZ2xlLnByb3RvYnVmIhoKCUZpZWxkTWFzaxINCgVwYXRocxgBIAMoCUKFAQoTY29tLmdvb2dsZS5wcm90b2J1ZkIORmllbGRNYXNrUHJvdG9QAVoyZ29vZ2xlLmdvbGFuZy5vcmcvcHJvdG9idWYvdHlwZXMva25vd24vZmllbGRtYXNrcGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw");
|
| 20 |
+
/**
|
| 21 |
+
* Describes the message google.protobuf.FieldMask.
|
| 22 |
+
* Use `create(FieldMaskSchema)` to create a new message.
|
| 23 |
+
*/
|
| 24 |
+
export const FieldMaskSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_field_mask, 0);
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.d.ts
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { GenEnum, GenExtension, GenFile, GenMessage } from "../../../../codegenv2/types.js";
|
| 2 |
+
import type { FeatureSet } from "./descriptor_pb.js";
|
| 3 |
+
import type { Message } from "../../../../types.js";
|
| 4 |
+
/**
|
| 5 |
+
* Describes the file google/protobuf/go_features.proto.
|
| 6 |
+
*/
|
| 7 |
+
export declare const file_google_protobuf_go_features: GenFile;
|
| 8 |
+
/**
|
| 9 |
+
* @generated from message pb.GoFeatures
|
| 10 |
+
*/
|
| 11 |
+
export type GoFeatures = Message<"pb.GoFeatures"> & {
|
| 12 |
+
/**
|
| 13 |
+
* Whether or not to generate the deprecated UnmarshalJSON method for enums.
|
| 14 |
+
* Can only be true for proto using the Open Struct api.
|
| 15 |
+
*
|
| 16 |
+
* @generated from field: optional bool legacy_unmarshal_json_enum = 1;
|
| 17 |
+
*/
|
| 18 |
+
legacyUnmarshalJsonEnum: boolean;
|
| 19 |
+
/**
|
| 20 |
+
* One of OPEN, HYBRID or OPAQUE.
|
| 21 |
+
*
|
| 22 |
+
* @generated from field: optional pb.GoFeatures.APILevel api_level = 2;
|
| 23 |
+
*/
|
| 24 |
+
apiLevel: GoFeatures_APILevel;
|
| 25 |
+
/**
|
| 26 |
+
* @generated from field: optional pb.GoFeatures.StripEnumPrefix strip_enum_prefix = 3;
|
| 27 |
+
*/
|
| 28 |
+
stripEnumPrefix: GoFeatures_StripEnumPrefix;
|
| 29 |
+
};
|
| 30 |
+
/**
|
| 31 |
+
* @generated from message pb.GoFeatures
|
| 32 |
+
*/
|
| 33 |
+
export type GoFeaturesJson = {
|
| 34 |
+
/**
|
| 35 |
+
* Whether or not to generate the deprecated UnmarshalJSON method for enums.
|
| 36 |
+
* Can only be true for proto using the Open Struct api.
|
| 37 |
+
*
|
| 38 |
+
* @generated from field: optional bool legacy_unmarshal_json_enum = 1;
|
| 39 |
+
*/
|
| 40 |
+
legacyUnmarshalJsonEnum?: boolean;
|
| 41 |
+
/**
|
| 42 |
+
* One of OPEN, HYBRID or OPAQUE.
|
| 43 |
+
*
|
| 44 |
+
* @generated from field: optional pb.GoFeatures.APILevel api_level = 2;
|
| 45 |
+
*/
|
| 46 |
+
apiLevel?: GoFeatures_APILevelJson;
|
| 47 |
+
/**
|
| 48 |
+
* @generated from field: optional pb.GoFeatures.StripEnumPrefix strip_enum_prefix = 3;
|
| 49 |
+
*/
|
| 50 |
+
stripEnumPrefix?: GoFeatures_StripEnumPrefixJson;
|
| 51 |
+
};
|
| 52 |
+
/**
|
| 53 |
+
* Describes the message pb.GoFeatures.
|
| 54 |
+
* Use `create(GoFeaturesSchema)` to create a new message.
|
| 55 |
+
*/
|
| 56 |
+
export declare const GoFeaturesSchema: GenMessage<GoFeatures, {
|
| 57 |
+
jsonType: GoFeaturesJson;
|
| 58 |
+
}>;
|
| 59 |
+
/**
|
| 60 |
+
* @generated from enum pb.GoFeatures.APILevel
|
| 61 |
+
*/
|
| 62 |
+
export declare enum GoFeatures_APILevel {
|
| 63 |
+
/**
|
| 64 |
+
* API_LEVEL_UNSPECIFIED results in selecting the OPEN API,
|
| 65 |
+
* but needs to be a separate value to distinguish between
|
| 66 |
+
* an explicitly set api level or a missing api level.
|
| 67 |
+
*
|
| 68 |
+
* @generated from enum value: API_LEVEL_UNSPECIFIED = 0;
|
| 69 |
+
*/
|
| 70 |
+
API_LEVEL_UNSPECIFIED = 0,
|
| 71 |
+
/**
|
| 72 |
+
* @generated from enum value: API_OPEN = 1;
|
| 73 |
+
*/
|
| 74 |
+
API_OPEN = 1,
|
| 75 |
+
/**
|
| 76 |
+
* @generated from enum value: API_HYBRID = 2;
|
| 77 |
+
*/
|
| 78 |
+
API_HYBRID = 2,
|
| 79 |
+
/**
|
| 80 |
+
* @generated from enum value: API_OPAQUE = 3;
|
| 81 |
+
*/
|
| 82 |
+
API_OPAQUE = 3
|
| 83 |
+
}
|
| 84 |
+
/**
|
| 85 |
+
* @generated from enum pb.GoFeatures.APILevel
|
| 86 |
+
*/
|
| 87 |
+
export type GoFeatures_APILevelJson = "API_LEVEL_UNSPECIFIED" | "API_OPEN" | "API_HYBRID" | "API_OPAQUE";
|
| 88 |
+
/**
|
| 89 |
+
* Describes the enum pb.GoFeatures.APILevel.
|
| 90 |
+
*/
|
| 91 |
+
export declare const GoFeatures_APILevelSchema: GenEnum<GoFeatures_APILevel, GoFeatures_APILevelJson>;
|
| 92 |
+
/**
|
| 93 |
+
* @generated from enum pb.GoFeatures.StripEnumPrefix
|
| 94 |
+
*/
|
| 95 |
+
export declare enum GoFeatures_StripEnumPrefix {
|
| 96 |
+
/**
|
| 97 |
+
* @generated from enum value: STRIP_ENUM_PREFIX_UNSPECIFIED = 0;
|
| 98 |
+
*/
|
| 99 |
+
UNSPECIFIED = 0,
|
| 100 |
+
/**
|
| 101 |
+
* @generated from enum value: STRIP_ENUM_PREFIX_KEEP = 1;
|
| 102 |
+
*/
|
| 103 |
+
KEEP = 1,
|
| 104 |
+
/**
|
| 105 |
+
* @generated from enum value: STRIP_ENUM_PREFIX_GENERATE_BOTH = 2;
|
| 106 |
+
*/
|
| 107 |
+
GENERATE_BOTH = 2,
|
| 108 |
+
/**
|
| 109 |
+
* @generated from enum value: STRIP_ENUM_PREFIX_STRIP = 3;
|
| 110 |
+
*/
|
| 111 |
+
STRIP = 3
|
| 112 |
+
}
|
| 113 |
+
/**
|
| 114 |
+
* @generated from enum pb.GoFeatures.StripEnumPrefix
|
| 115 |
+
*/
|
| 116 |
+
export type GoFeatures_StripEnumPrefixJson = "STRIP_ENUM_PREFIX_UNSPECIFIED" | "STRIP_ENUM_PREFIX_KEEP" | "STRIP_ENUM_PREFIX_GENERATE_BOTH" | "STRIP_ENUM_PREFIX_STRIP";
|
| 117 |
+
/**
|
| 118 |
+
* Describes the enum pb.GoFeatures.StripEnumPrefix.
|
| 119 |
+
*/
|
| 120 |
+
export declare const GoFeatures_StripEnumPrefixSchema: GenEnum<GoFeatures_StripEnumPrefix, GoFeatures_StripEnumPrefixJson>;
|
| 121 |
+
/**
|
| 122 |
+
* @generated from extension: optional pb.GoFeatures go = 1002;
|
| 123 |
+
*/
|
| 124 |
+
export declare const go: GenExtension<FeatureSet, GoFeatures>;
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
import { fileDesc } from "../../../../codegenv2/file.js";
|
| 15 |
+
import { file_google_protobuf_descriptor } from "./descriptor_pb.js";
|
| 16 |
+
import { messageDesc } from "../../../../codegenv2/message.js";
|
| 17 |
+
import { enumDesc } from "../../../../codegenv2/enum.js";
|
| 18 |
+
import { extDesc } from "../../../../codegenv2/extension.js";
|
| 19 |
+
/**
|
| 20 |
+
* Describes the file google/protobuf/go_features.proto.
|
| 21 |
+
*/
|
| 22 |
+
export const file_google_protobuf_go_features = /*@__PURE__*/ fileDesc("CiFnb29nbGUvcHJvdG9idWYvZ29fZmVhdHVyZXMucHJvdG8SAnBiIvcECgpHb0ZlYXR1cmVzEqUBChpsZWdhY3lfdW5tYXJzaGFsX2pzb25fZW51bRgBIAEoCEKAAYgBAZgBBpgBAaIBCRIEdHJ1ZRiEB6IBChIFZmFsc2UY5weyAVsI6AcQ6AcaU1RoZSBsZWdhY3kgVW5tYXJzaGFsSlNPTiBBUEkgaXMgZGVwcmVjYXRlZCBhbmQgd2lsbCBiZSByZW1vdmVkIGluIGEgZnV0dXJlIGVkaXRpb24uEmoKCWFwaV9sZXZlbBgCIAEoDjIXLnBiLkdvRmVhdHVyZXMuQVBJTGV2ZWxCPogBAZgBA5gBAaIBGhIVQVBJX0xFVkVMX1VOU1BFQ0lGSUVEGIQHogEPEgpBUElfT1BBUVVFGOkHsgEDCOgHEmsKEXN0cmlwX2VudW1fcHJlZml4GAMgASgOMh4ucGIuR29GZWF0dXJlcy5TdHJpcEVudW1QcmVmaXhCMIgBAZgBBpgBB5gBAaIBGxIWU1RSSVBfRU5VTV9QUkVGSVhfS0VFUBiEB7IBAwjpByJTCghBUElMZXZlbBIZChVBUElfTEVWRUxfVU5TUEVDSUZJRUQQABIMCghBUElfT1BFThABEg4KCkFQSV9IWUJSSUQQAhIOCgpBUElfT1BBUVVFEAMikgEKD1N0cmlwRW51bVByZWZpeBIhCh1TVFJJUF9FTlVNX1BSRUZJWF9VTlNQRUNJRklFRBAAEhoKFlNUUklQX0VOVU1fUFJFRklYX0tFRVAQARIjCh9TVFJJUF9FTlVNX1BSRUZJWF9HRU5FUkFURV9CT1RIEAISGwoXU1RSSVBfRU5VTV9QUkVGSVhfU1RSSVAQAzo8CgJnbxIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0GOoHIAEoCzIOLnBiLkdvRmVhdHVyZXNSAmdvQi9aLWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2dvZmVhdHVyZXNwYg", [file_google_protobuf_descriptor]);
|
| 23 |
+
/**
|
| 24 |
+
* Describes the message pb.GoFeatures.
|
| 25 |
+
* Use `create(GoFeaturesSchema)` to create a new message.
|
| 26 |
+
*/
|
| 27 |
+
export const GoFeaturesSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_go_features, 0);
|
| 28 |
+
/**
|
| 29 |
+
* @generated from enum pb.GoFeatures.APILevel
|
| 30 |
+
*/
|
| 31 |
+
export var GoFeatures_APILevel;
|
| 32 |
+
(function (GoFeatures_APILevel) {
|
| 33 |
+
/**
|
| 34 |
+
* API_LEVEL_UNSPECIFIED results in selecting the OPEN API,
|
| 35 |
+
* but needs to be a separate value to distinguish between
|
| 36 |
+
* an explicitly set api level or a missing api level.
|
| 37 |
+
*
|
| 38 |
+
* @generated from enum value: API_LEVEL_UNSPECIFIED = 0;
|
| 39 |
+
*/
|
| 40 |
+
GoFeatures_APILevel[GoFeatures_APILevel["API_LEVEL_UNSPECIFIED"] = 0] = "API_LEVEL_UNSPECIFIED";
|
| 41 |
+
/**
|
| 42 |
+
* @generated from enum value: API_OPEN = 1;
|
| 43 |
+
*/
|
| 44 |
+
GoFeatures_APILevel[GoFeatures_APILevel["API_OPEN"] = 1] = "API_OPEN";
|
| 45 |
+
/**
|
| 46 |
+
* @generated from enum value: API_HYBRID = 2;
|
| 47 |
+
*/
|
| 48 |
+
GoFeatures_APILevel[GoFeatures_APILevel["API_HYBRID"] = 2] = "API_HYBRID";
|
| 49 |
+
/**
|
| 50 |
+
* @generated from enum value: API_OPAQUE = 3;
|
| 51 |
+
*/
|
| 52 |
+
GoFeatures_APILevel[GoFeatures_APILevel["API_OPAQUE"] = 3] = "API_OPAQUE";
|
| 53 |
+
})(GoFeatures_APILevel || (GoFeatures_APILevel = {}));
|
| 54 |
+
/**
|
| 55 |
+
* Describes the enum pb.GoFeatures.APILevel.
|
| 56 |
+
*/
|
| 57 |
+
export const GoFeatures_APILevelSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_go_features, 0, 0);
|
| 58 |
+
/**
|
| 59 |
+
* @generated from enum pb.GoFeatures.StripEnumPrefix
|
| 60 |
+
*/
|
| 61 |
+
export var GoFeatures_StripEnumPrefix;
|
| 62 |
+
(function (GoFeatures_StripEnumPrefix) {
|
| 63 |
+
/**
|
| 64 |
+
* @generated from enum value: STRIP_ENUM_PREFIX_UNSPECIFIED = 0;
|
| 65 |
+
*/
|
| 66 |
+
GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
| 67 |
+
/**
|
| 68 |
+
* @generated from enum value: STRIP_ENUM_PREFIX_KEEP = 1;
|
| 69 |
+
*/
|
| 70 |
+
GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["KEEP"] = 1] = "KEEP";
|
| 71 |
+
/**
|
| 72 |
+
* @generated from enum value: STRIP_ENUM_PREFIX_GENERATE_BOTH = 2;
|
| 73 |
+
*/
|
| 74 |
+
GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["GENERATE_BOTH"] = 2] = "GENERATE_BOTH";
|
| 75 |
+
/**
|
| 76 |
+
* @generated from enum value: STRIP_ENUM_PREFIX_STRIP = 3;
|
| 77 |
+
*/
|
| 78 |
+
GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["STRIP"] = 3] = "STRIP";
|
| 79 |
+
})(GoFeatures_StripEnumPrefix || (GoFeatures_StripEnumPrefix = {}));
|
| 80 |
+
/**
|
| 81 |
+
* Describes the enum pb.GoFeatures.StripEnumPrefix.
|
| 82 |
+
*/
|
| 83 |
+
export const GoFeatures_StripEnumPrefixSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_go_features, 0, 1);
|
| 84 |
+
/**
|
| 85 |
+
* @generated from extension: optional pb.GoFeatures go = 1002;
|
| 86 |
+
*/
|
| 87 |
+
export const go = /*@__PURE__*/ extDesc(file_google_protobuf_go_features, 0);
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.d.ts
ADDED
|
@@ -0,0 +1,194 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { GenEnum, GenExtension, GenFile, GenMessage } from "../../../../codegenv2/types.js";
|
| 2 |
+
import type { FeatureSet } from "./descriptor_pb.js";
|
| 3 |
+
import type { Message } from "../../../../types.js";
|
| 4 |
+
/**
|
| 5 |
+
* Describes the file google/protobuf/java_features.proto.
|
| 6 |
+
*/
|
| 7 |
+
export declare const file_google_protobuf_java_features: GenFile;
|
| 8 |
+
/**
|
| 9 |
+
* @generated from message pb.JavaFeatures
|
| 10 |
+
*/
|
| 11 |
+
export type JavaFeatures = Message<"pb.JavaFeatures"> & {
|
| 12 |
+
/**
|
| 13 |
+
* Whether or not to treat an enum field as closed. This option is only
|
| 14 |
+
* applicable to enum fields, and will be removed in the future. It is
|
| 15 |
+
* consistent with the legacy behavior of using proto3 enum types for proto2
|
| 16 |
+
* fields.
|
| 17 |
+
*
|
| 18 |
+
* @generated from field: optional bool legacy_closed_enum = 1;
|
| 19 |
+
*/
|
| 20 |
+
legacyClosedEnum: boolean;
|
| 21 |
+
/**
|
| 22 |
+
* @generated from field: optional pb.JavaFeatures.Utf8Validation utf8_validation = 2;
|
| 23 |
+
*/
|
| 24 |
+
utf8Validation: JavaFeatures_Utf8Validation;
|
| 25 |
+
/**
|
| 26 |
+
* Allows creation of large Java enums, extending beyond the standard
|
| 27 |
+
* constant limits imposed by the Java language.
|
| 28 |
+
*
|
| 29 |
+
* @generated from field: optional bool large_enum = 3;
|
| 30 |
+
*/
|
| 31 |
+
largeEnum: boolean;
|
| 32 |
+
/**
|
| 33 |
+
* Whether to use the old default outer class name scheme, or the new feature
|
| 34 |
+
* which adds a "Proto" suffix to the outer class name.
|
| 35 |
+
*
|
| 36 |
+
* Users will not be able to set this option, because we removed it in the
|
| 37 |
+
* same edition that it was introduced. But we use it to determine which
|
| 38 |
+
* naming scheme to use for outer class name defaults.
|
| 39 |
+
*
|
| 40 |
+
* @generated from field: optional bool use_old_outer_classname_default = 4;
|
| 41 |
+
*/
|
| 42 |
+
useOldOuterClassnameDefault: boolean;
|
| 43 |
+
/**
|
| 44 |
+
* Whether to nest the generated class in the generated file class. This is
|
| 45 |
+
* only applicable to *top-level* messages, enums, and services.
|
| 46 |
+
*
|
| 47 |
+
* @generated from field: optional pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5;
|
| 48 |
+
*/
|
| 49 |
+
nestInFileClass: JavaFeatures_NestInFileClassFeature_NestInFileClass;
|
| 50 |
+
};
|
| 51 |
+
/**
|
| 52 |
+
* @generated from message pb.JavaFeatures
|
| 53 |
+
*/
|
| 54 |
+
export type JavaFeaturesJson = {
|
| 55 |
+
/**
|
| 56 |
+
* Whether or not to treat an enum field as closed. This option is only
|
| 57 |
+
* applicable to enum fields, and will be removed in the future. It is
|
| 58 |
+
* consistent with the legacy behavior of using proto3 enum types for proto2
|
| 59 |
+
* fields.
|
| 60 |
+
*
|
| 61 |
+
* @generated from field: optional bool legacy_closed_enum = 1;
|
| 62 |
+
*/
|
| 63 |
+
legacyClosedEnum?: boolean;
|
| 64 |
+
/**
|
| 65 |
+
* @generated from field: optional pb.JavaFeatures.Utf8Validation utf8_validation = 2;
|
| 66 |
+
*/
|
| 67 |
+
utf8Validation?: JavaFeatures_Utf8ValidationJson;
|
| 68 |
+
/**
|
| 69 |
+
* Allows creation of large Java enums, extending beyond the standard
|
| 70 |
+
* constant limits imposed by the Java language.
|
| 71 |
+
*
|
| 72 |
+
* @generated from field: optional bool large_enum = 3;
|
| 73 |
+
*/
|
| 74 |
+
largeEnum?: boolean;
|
| 75 |
+
/**
|
| 76 |
+
* Whether to use the old default outer class name scheme, or the new feature
|
| 77 |
+
* which adds a "Proto" suffix to the outer class name.
|
| 78 |
+
*
|
| 79 |
+
* Users will not be able to set this option, because we removed it in the
|
| 80 |
+
* same edition that it was introduced. But we use it to determine which
|
| 81 |
+
* naming scheme to use for outer class name defaults.
|
| 82 |
+
*
|
| 83 |
+
* @generated from field: optional bool use_old_outer_classname_default = 4;
|
| 84 |
+
*/
|
| 85 |
+
useOldOuterClassnameDefault?: boolean;
|
| 86 |
+
/**
|
| 87 |
+
* Whether to nest the generated class in the generated file class. This is
|
| 88 |
+
* only applicable to *top-level* messages, enums, and services.
|
| 89 |
+
*
|
| 90 |
+
* @generated from field: optional pb.JavaFeatures.NestInFileClassFeature.NestInFileClass nest_in_file_class = 5;
|
| 91 |
+
*/
|
| 92 |
+
nestInFileClass?: JavaFeatures_NestInFileClassFeature_NestInFileClassJson;
|
| 93 |
+
};
|
| 94 |
+
/**
|
| 95 |
+
* Describes the message pb.JavaFeatures.
|
| 96 |
+
* Use `create(JavaFeaturesSchema)` to create a new message.
|
| 97 |
+
*/
|
| 98 |
+
export declare const JavaFeaturesSchema: GenMessage<JavaFeatures, {
|
| 99 |
+
jsonType: JavaFeaturesJson;
|
| 100 |
+
}>;
|
| 101 |
+
/**
|
| 102 |
+
* @generated from message pb.JavaFeatures.NestInFileClassFeature
|
| 103 |
+
*/
|
| 104 |
+
export type JavaFeatures_NestInFileClassFeature = Message<"pb.JavaFeatures.NestInFileClassFeature"> & {};
|
| 105 |
+
/**
|
| 106 |
+
* @generated from message pb.JavaFeatures.NestInFileClassFeature
|
| 107 |
+
*/
|
| 108 |
+
export type JavaFeatures_NestInFileClassFeatureJson = {};
|
| 109 |
+
/**
|
| 110 |
+
* Describes the message pb.JavaFeatures.NestInFileClassFeature.
|
| 111 |
+
* Use `create(JavaFeatures_NestInFileClassFeatureSchema)` to create a new message.
|
| 112 |
+
*/
|
| 113 |
+
export declare const JavaFeatures_NestInFileClassFeatureSchema: GenMessage<JavaFeatures_NestInFileClassFeature, {
|
| 114 |
+
jsonType: JavaFeatures_NestInFileClassFeatureJson;
|
| 115 |
+
}>;
|
| 116 |
+
/**
|
| 117 |
+
* @generated from enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass
|
| 118 |
+
*/
|
| 119 |
+
export declare enum JavaFeatures_NestInFileClassFeature_NestInFileClass {
|
| 120 |
+
/**
|
| 121 |
+
* Invalid default, which should never be used.
|
| 122 |
+
*
|
| 123 |
+
* @generated from enum value: NEST_IN_FILE_CLASS_UNKNOWN = 0;
|
| 124 |
+
*/
|
| 125 |
+
NEST_IN_FILE_CLASS_UNKNOWN = 0,
|
| 126 |
+
/**
|
| 127 |
+
* Do not nest the generated class in the file class.
|
| 128 |
+
*
|
| 129 |
+
* @generated from enum value: NO = 1;
|
| 130 |
+
*/
|
| 131 |
+
NO = 1,
|
| 132 |
+
/**
|
| 133 |
+
* Nest the generated class in the file class.
|
| 134 |
+
*
|
| 135 |
+
* @generated from enum value: YES = 2;
|
| 136 |
+
*/
|
| 137 |
+
YES = 2,
|
| 138 |
+
/**
|
| 139 |
+
* Fall back to the `java_multiple_files` option. Users won't be able to
|
| 140 |
+
* set this option.
|
| 141 |
+
*
|
| 142 |
+
* @generated from enum value: LEGACY = 3;
|
| 143 |
+
*/
|
| 144 |
+
LEGACY = 3
|
| 145 |
+
}
|
| 146 |
+
/**
|
| 147 |
+
* @generated from enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass
|
| 148 |
+
*/
|
| 149 |
+
export type JavaFeatures_NestInFileClassFeature_NestInFileClassJson = "NEST_IN_FILE_CLASS_UNKNOWN" | "NO" | "YES" | "LEGACY";
|
| 150 |
+
/**
|
| 151 |
+
* Describes the enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass.
|
| 152 |
+
*/
|
| 153 |
+
export declare const JavaFeatures_NestInFileClassFeature_NestInFileClassSchema: GenEnum<JavaFeatures_NestInFileClassFeature_NestInFileClass, JavaFeatures_NestInFileClassFeature_NestInFileClassJson>;
|
| 154 |
+
/**
|
| 155 |
+
* The UTF8 validation strategy to use.
|
| 156 |
+
*
|
| 157 |
+
* @generated from enum pb.JavaFeatures.Utf8Validation
|
| 158 |
+
*/
|
| 159 |
+
export declare enum JavaFeatures_Utf8Validation {
|
| 160 |
+
/**
|
| 161 |
+
* Invalid default, which should never be used.
|
| 162 |
+
*
|
| 163 |
+
* @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0;
|
| 164 |
+
*/
|
| 165 |
+
UTF8_VALIDATION_UNKNOWN = 0,
|
| 166 |
+
/**
|
| 167 |
+
* Respect the UTF8 validation behavior specified by the global
|
| 168 |
+
* utf8_validation feature.
|
| 169 |
+
*
|
| 170 |
+
* @generated from enum value: DEFAULT = 1;
|
| 171 |
+
*/
|
| 172 |
+
DEFAULT = 1,
|
| 173 |
+
/**
|
| 174 |
+
* Verifies UTF8 validity overriding the global utf8_validation
|
| 175 |
+
* feature. This represents the legacy java_string_check_utf8 option.
|
| 176 |
+
*
|
| 177 |
+
* @generated from enum value: VERIFY = 2;
|
| 178 |
+
*/
|
| 179 |
+
VERIFY = 2
|
| 180 |
+
}
|
| 181 |
+
/**
|
| 182 |
+
* The UTF8 validation strategy to use.
|
| 183 |
+
*
|
| 184 |
+
* @generated from enum pb.JavaFeatures.Utf8Validation
|
| 185 |
+
*/
|
| 186 |
+
export type JavaFeatures_Utf8ValidationJson = "UTF8_VALIDATION_UNKNOWN" | "DEFAULT" | "VERIFY";
|
| 187 |
+
/**
|
| 188 |
+
* Describes the enum pb.JavaFeatures.Utf8Validation.
|
| 189 |
+
*/
|
| 190 |
+
export declare const JavaFeatures_Utf8ValidationSchema: GenEnum<JavaFeatures_Utf8Validation, JavaFeatures_Utf8ValidationJson>;
|
| 191 |
+
/**
|
| 192 |
+
* @generated from extension: optional pb.JavaFeatures java = 1001;
|
| 193 |
+
*/
|
| 194 |
+
export declare const java: GenExtension<FeatureSet, JavaFeatures>;
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
import { fileDesc } from "../../../../codegenv2/file.js";
|
| 15 |
+
import { file_google_protobuf_descriptor } from "./descriptor_pb.js";
|
| 16 |
+
import { messageDesc } from "../../../../codegenv2/message.js";
|
| 17 |
+
import { enumDesc } from "../../../../codegenv2/enum.js";
|
| 18 |
+
import { extDesc } from "../../../../codegenv2/extension.js";
|
| 19 |
+
/**
|
| 20 |
+
* Describes the file google/protobuf/java_features.proto.
|
| 21 |
+
*/
|
| 22 |
+
export const file_google_protobuf_java_features = /*@__PURE__*/ fileDesc("CiNnb29nbGUvcHJvdG9idWYvamF2YV9mZWF0dXJlcy5wcm90bxICcGIi/QcKDEphdmFGZWF0dXJlcxL+AQoSbGVnYWN5X2Nsb3NlZF9lbnVtGAEgASgIQuEBiAEBmAEEmAEBogEJEgR0cnVlGIQHogEKEgVmYWxzZRjnB7IBuwEI6AcQ6AcasgFUaGUgbGVnYWN5IGNsb3NlZCBlbnVtIGJlaGF2aW9yIGluIEphdmEgaXMgZGVwcmVjYXRlZCBhbmQgaXMgc2NoZWR1bGVkIHRvIGJlIHJlbW92ZWQgaW4gZWRpdGlvbiAyMDI1LiAgU2VlIGh0dHA6Ly9wcm90b2J1Zi5kZXYvcHJvZ3JhbW1pbmctZ3VpZGVzL2VudW0vI2phdmEgZm9yIG1vcmUgaW5mb3JtYXRpb24uEp8CCg91dGY4X3ZhbGlkYXRpb24YAiABKA4yHy5wYi5KYXZhRmVhdHVyZXMuVXRmOFZhbGlkYXRpb25C5AGIAQGYAQSYAQGiAQwSB0RFRkFVTFQYhAeyAcgBCOgHEOkHGr8BVGhlIEphdmEtc3BlY2lmaWMgdXRmOCB2YWxpZGF0aW9uIGZlYXR1cmUgaXMgZGVwcmVjYXRlZCBhbmQgaXMgc2NoZWR1bGVkIHRvIGJlIHJlbW92ZWQgaW4gZWRpdGlvbiAyMDI1LiAgVXRmOCB2YWxpZGF0aW9uIGJlaGF2aW9yIHNob3VsZCB1c2UgdGhlIGdsb2JhbCBjcm9zcy1sYW5ndWFnZSB1dGY4X3ZhbGlkYXRpb24gZmVhdHVyZS4SMAoKbGFyZ2VfZW51bRgDIAEoCEIciAEBmAEGmAEBogEKEgVmYWxzZRiEB7IBAwjpBxJRCh91c2Vfb2xkX291dGVyX2NsYXNzbmFtZV9kZWZhdWx0GAQgASgIQiiIAQGYAQGiAQkSBHRydWUYhAeiAQoSBWZhbHNlGOkHsgEGCOkHIOkHEn8KEm5lc3RfaW5fZmlsZV9jbGFzcxgFIAEoDjI3LnBiLkphdmFGZWF0dXJlcy5OZXN0SW5GaWxlQ2xhc3NGZWF0dXJlLk5lc3RJbkZpbGVDbGFzc0IqiAECmAEDmAEGmAEIogELEgZMRUdBQ1kYhAeiAQcSAk5PGOkHsgEDCOkHGnwKFk5lc3RJbkZpbGVDbGFzc0ZlYXR1cmUiWAoPTmVzdEluRmlsZUNsYXNzEh4KGk5FU1RfSU5fRklMRV9DTEFTU19VTktOT1dOEAASBgoCTk8QARIHCgNZRVMQAhIUCgZMRUdBQ1kQAxoIIgYI6Qcg6QdKCAgBEICAgIACIkYKDlV0ZjhWYWxpZGF0aW9uEhsKF1VURjhfVkFMSURBVElPTl9VTktOT1dOEAASCwoHREVGQVVMVBABEgoKBlZFUklGWRACOkIKBGphdmESGy5nb29nbGUucHJvdG9idWYuRmVhdHVyZVNldBjpByABKAsyEC5wYi5KYXZhRmVhdHVyZXNSBGphdmFCKAoTY29tLmdvb2dsZS5wcm90b2J1ZkIRSmF2YUZlYXR1cmVzUHJvdG8", [file_google_protobuf_descriptor]);
|
| 23 |
+
/**
|
| 24 |
+
* Describes the message pb.JavaFeatures.
|
| 25 |
+
* Use `create(JavaFeaturesSchema)` to create a new message.
|
| 26 |
+
*/
|
| 27 |
+
export const JavaFeaturesSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_java_features, 0);
|
| 28 |
+
/**
|
| 29 |
+
* Describes the message pb.JavaFeatures.NestInFileClassFeature.
|
| 30 |
+
* Use `create(JavaFeatures_NestInFileClassFeatureSchema)` to create a new message.
|
| 31 |
+
*/
|
| 32 |
+
export const JavaFeatures_NestInFileClassFeatureSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_java_features, 0, 0);
|
| 33 |
+
/**
|
| 34 |
+
* @generated from enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass
|
| 35 |
+
*/
|
| 36 |
+
export var JavaFeatures_NestInFileClassFeature_NestInFileClass;
|
| 37 |
+
(function (JavaFeatures_NestInFileClassFeature_NestInFileClass) {
|
| 38 |
+
/**
|
| 39 |
+
* Invalid default, which should never be used.
|
| 40 |
+
*
|
| 41 |
+
* @generated from enum value: NEST_IN_FILE_CLASS_UNKNOWN = 0;
|
| 42 |
+
*/
|
| 43 |
+
JavaFeatures_NestInFileClassFeature_NestInFileClass[JavaFeatures_NestInFileClassFeature_NestInFileClass["NEST_IN_FILE_CLASS_UNKNOWN"] = 0] = "NEST_IN_FILE_CLASS_UNKNOWN";
|
| 44 |
+
/**
|
| 45 |
+
* Do not nest the generated class in the file class.
|
| 46 |
+
*
|
| 47 |
+
* @generated from enum value: NO = 1;
|
| 48 |
+
*/
|
| 49 |
+
JavaFeatures_NestInFileClassFeature_NestInFileClass[JavaFeatures_NestInFileClassFeature_NestInFileClass["NO"] = 1] = "NO";
|
| 50 |
+
/**
|
| 51 |
+
* Nest the generated class in the file class.
|
| 52 |
+
*
|
| 53 |
+
* @generated from enum value: YES = 2;
|
| 54 |
+
*/
|
| 55 |
+
JavaFeatures_NestInFileClassFeature_NestInFileClass[JavaFeatures_NestInFileClassFeature_NestInFileClass["YES"] = 2] = "YES";
|
| 56 |
+
/**
|
| 57 |
+
* Fall back to the `java_multiple_files` option. Users won't be able to
|
| 58 |
+
* set this option.
|
| 59 |
+
*
|
| 60 |
+
* @generated from enum value: LEGACY = 3;
|
| 61 |
+
*/
|
| 62 |
+
JavaFeatures_NestInFileClassFeature_NestInFileClass[JavaFeatures_NestInFileClassFeature_NestInFileClass["LEGACY"] = 3] = "LEGACY";
|
| 63 |
+
})(JavaFeatures_NestInFileClassFeature_NestInFileClass || (JavaFeatures_NestInFileClassFeature_NestInFileClass = {}));
|
| 64 |
+
/**
|
| 65 |
+
* Describes the enum pb.JavaFeatures.NestInFileClassFeature.NestInFileClass.
|
| 66 |
+
*/
|
| 67 |
+
export const JavaFeatures_NestInFileClassFeature_NestInFileClassSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_java_features, 0, 0, 0);
|
| 68 |
+
/**
|
| 69 |
+
* The UTF8 validation strategy to use.
|
| 70 |
+
*
|
| 71 |
+
* @generated from enum pb.JavaFeatures.Utf8Validation
|
| 72 |
+
*/
|
| 73 |
+
export var JavaFeatures_Utf8Validation;
|
| 74 |
+
(function (JavaFeatures_Utf8Validation) {
|
| 75 |
+
/**
|
| 76 |
+
* Invalid default, which should never be used.
|
| 77 |
+
*
|
| 78 |
+
* @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0;
|
| 79 |
+
*/
|
| 80 |
+
JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN";
|
| 81 |
+
/**
|
| 82 |
+
* Respect the UTF8 validation behavior specified by the global
|
| 83 |
+
* utf8_validation feature.
|
| 84 |
+
*
|
| 85 |
+
* @generated from enum value: DEFAULT = 1;
|
| 86 |
+
*/
|
| 87 |
+
JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["DEFAULT"] = 1] = "DEFAULT";
|
| 88 |
+
/**
|
| 89 |
+
* Verifies UTF8 validity overriding the global utf8_validation
|
| 90 |
+
* feature. This represents the legacy java_string_check_utf8 option.
|
| 91 |
+
*
|
| 92 |
+
* @generated from enum value: VERIFY = 2;
|
| 93 |
+
*/
|
| 94 |
+
JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["VERIFY"] = 2] = "VERIFY";
|
| 95 |
+
})(JavaFeatures_Utf8Validation || (JavaFeatures_Utf8Validation = {}));
|
| 96 |
+
/**
|
| 97 |
+
* Describes the enum pb.JavaFeatures.Utf8Validation.
|
| 98 |
+
*/
|
| 99 |
+
export const JavaFeatures_Utf8ValidationSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_java_features, 0, 0);
|
| 100 |
+
/**
|
| 101 |
+
* @generated from extension: optional pb.JavaFeatures java = 1001;
|
| 102 |
+
*/
|
| 103 |
+
export const java = /*@__PURE__*/ extDesc(file_google_protobuf_java_features, 0);
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { GenFile, GenMessage } from "../../../../codegenv2/types.js";
|
| 2 |
+
import type { Message } from "../../../../types.js";
|
| 3 |
+
/**
|
| 4 |
+
* Describes the file google/protobuf/source_context.proto.
|
| 5 |
+
*/
|
| 6 |
+
export declare const file_google_protobuf_source_context: GenFile;
|
| 7 |
+
/**
|
| 8 |
+
* `SourceContext` represents information about the source of a
|
| 9 |
+
* protobuf element, like the file in which it is defined.
|
| 10 |
+
*
|
| 11 |
+
* @generated from message google.protobuf.SourceContext
|
| 12 |
+
*/
|
| 13 |
+
export type SourceContext = Message<"google.protobuf.SourceContext"> & {
|
| 14 |
+
/**
|
| 15 |
+
* The path-qualified name of the .proto file that contained the associated
|
| 16 |
+
* protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
| 17 |
+
*
|
| 18 |
+
* @generated from field: string file_name = 1;
|
| 19 |
+
*/
|
| 20 |
+
fileName: string;
|
| 21 |
+
};
|
| 22 |
+
/**
|
| 23 |
+
* `SourceContext` represents information about the source of a
|
| 24 |
+
* protobuf element, like the file in which it is defined.
|
| 25 |
+
*
|
| 26 |
+
* @generated from message google.protobuf.SourceContext
|
| 27 |
+
*/
|
| 28 |
+
export type SourceContextJson = {
|
| 29 |
+
/**
|
| 30 |
+
* The path-qualified name of the .proto file that contained the associated
|
| 31 |
+
* protobuf element. For example: `"google/protobuf/source_context.proto"`.
|
| 32 |
+
*
|
| 33 |
+
* @generated from field: string file_name = 1;
|
| 34 |
+
*/
|
| 35 |
+
fileName?: string;
|
| 36 |
+
};
|
| 37 |
+
/**
|
| 38 |
+
* Describes the message google.protobuf.SourceContext.
|
| 39 |
+
* Use `create(SourceContextSchema)` to create a new message.
|
| 40 |
+
*/
|
| 41 |
+
export declare const SourceContextSchema: GenMessage<SourceContext, {
|
| 42 |
+
jsonType: SourceContextJson;
|
| 43 |
+
}>;
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
import { fileDesc } from "../../../../codegenv2/file.js";
|
| 15 |
+
import { messageDesc } from "../../../../codegenv2/message.js";
|
| 16 |
+
/**
|
| 17 |
+
* Describes the file google/protobuf/source_context.proto.
|
| 18 |
+
*/
|
| 19 |
+
export const file_google_protobuf_source_context = /*@__PURE__*/ fileDesc("CiRnb29nbGUvcHJvdG9idWYvc291cmNlX2NvbnRleHQucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIiCg1Tb3VyY2VDb250ZXh0EhEKCWZpbGVfbmFtZRgBIAEoCUKKAQoTY29tLmdvb2dsZS5wcm90b2J1ZkISU291cmNlQ29udGV4dFByb3RvUAFaNmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3NvdXJjZWNvbnRleHRwYqICA0dQQqoCHkdvb2dsZS5Qcm90b2J1Zi5XZWxsS25vd25UeXBlc2IGcHJvdG8z");
|
| 20 |
+
/**
|
| 21 |
+
* Describes the message google.protobuf.SourceContext.
|
| 22 |
+
* Use `create(SourceContextSchema)` to create a new message.
|
| 23 |
+
*/
|
| 24 |
+
export const SourceContextSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_source_context, 0);
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.d.ts
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv2/types.js";
|
| 2 |
+
import type { Message } from "../../../../types.js";
|
| 3 |
+
import type { JsonObject, JsonValue } from "../../../../json-value.js";
|
| 4 |
+
/**
|
| 5 |
+
* Describes the file google/protobuf/struct.proto.
|
| 6 |
+
*/
|
| 7 |
+
export declare const file_google_protobuf_struct: GenFile;
|
| 8 |
+
/**
|
| 9 |
+
* `Struct` represents a structured data value, consisting of fields
|
| 10 |
+
* which map to dynamically typed values. In some languages, `Struct`
|
| 11 |
+
* might be supported by a native representation. For example, in
|
| 12 |
+
* scripting languages like JS a struct is represented as an
|
| 13 |
+
* object. The details of that representation are described together
|
| 14 |
+
* with the proto support for the language.
|
| 15 |
+
*
|
| 16 |
+
* The JSON representation for `Struct` is JSON object.
|
| 17 |
+
*
|
| 18 |
+
* @generated from message google.protobuf.Struct
|
| 19 |
+
*/
|
| 20 |
+
export type Struct = Message<"google.protobuf.Struct"> & {
|
| 21 |
+
/**
|
| 22 |
+
* Unordered map of dynamically typed values.
|
| 23 |
+
*
|
| 24 |
+
* @generated from field: map<string, google.protobuf.Value> fields = 1;
|
| 25 |
+
*/
|
| 26 |
+
fields: {
|
| 27 |
+
[key: string]: Value;
|
| 28 |
+
};
|
| 29 |
+
};
|
| 30 |
+
/**
|
| 31 |
+
* `Struct` represents a structured data value, consisting of fields
|
| 32 |
+
* which map to dynamically typed values. In some languages, `Struct`
|
| 33 |
+
* might be supported by a native representation. For example, in
|
| 34 |
+
* scripting languages like JS a struct is represented as an
|
| 35 |
+
* object. The details of that representation are described together
|
| 36 |
+
* with the proto support for the language.
|
| 37 |
+
*
|
| 38 |
+
* The JSON representation for `Struct` is JSON object.
|
| 39 |
+
*
|
| 40 |
+
* @generated from message google.protobuf.Struct
|
| 41 |
+
*/
|
| 42 |
+
export type StructJson = JsonObject;
|
| 43 |
+
/**
|
| 44 |
+
* Describes the message google.protobuf.Struct.
|
| 45 |
+
* Use `create(StructSchema)` to create a new message.
|
| 46 |
+
*/
|
| 47 |
+
export declare const StructSchema: GenMessage<Struct, {
|
| 48 |
+
jsonType: StructJson;
|
| 49 |
+
}>;
|
| 50 |
+
/**
|
| 51 |
+
* `Value` represents a dynamically typed value which can be either
|
| 52 |
+
* null, a number, a string, a boolean, a recursive struct value, or a
|
| 53 |
+
* list of values. A producer of value is expected to set one of these
|
| 54 |
+
* variants. Absence of any variant indicates an error.
|
| 55 |
+
*
|
| 56 |
+
* The JSON representation for `Value` is JSON value.
|
| 57 |
+
*
|
| 58 |
+
* @generated from message google.protobuf.Value
|
| 59 |
+
*/
|
| 60 |
+
export type Value = Message<"google.protobuf.Value"> & {
|
| 61 |
+
/**
|
| 62 |
+
* The kind of value.
|
| 63 |
+
*
|
| 64 |
+
* @generated from oneof google.protobuf.Value.kind
|
| 65 |
+
*/
|
| 66 |
+
kind: {
|
| 67 |
+
/**
|
| 68 |
+
* Represents a null value.
|
| 69 |
+
*
|
| 70 |
+
* @generated from field: google.protobuf.NullValue null_value = 1;
|
| 71 |
+
*/
|
| 72 |
+
value: NullValue;
|
| 73 |
+
case: "nullValue";
|
| 74 |
+
} | {
|
| 75 |
+
/**
|
| 76 |
+
* Represents a double value.
|
| 77 |
+
*
|
| 78 |
+
* @generated from field: double number_value = 2;
|
| 79 |
+
*/
|
| 80 |
+
value: number;
|
| 81 |
+
case: "numberValue";
|
| 82 |
+
} | {
|
| 83 |
+
/**
|
| 84 |
+
* Represents a string value.
|
| 85 |
+
*
|
| 86 |
+
* @generated from field: string string_value = 3;
|
| 87 |
+
*/
|
| 88 |
+
value: string;
|
| 89 |
+
case: "stringValue";
|
| 90 |
+
} | {
|
| 91 |
+
/**
|
| 92 |
+
* Represents a boolean value.
|
| 93 |
+
*
|
| 94 |
+
* @generated from field: bool bool_value = 4;
|
| 95 |
+
*/
|
| 96 |
+
value: boolean;
|
| 97 |
+
case: "boolValue";
|
| 98 |
+
} | {
|
| 99 |
+
/**
|
| 100 |
+
* Represents a structured value.
|
| 101 |
+
*
|
| 102 |
+
* @generated from field: google.protobuf.Struct struct_value = 5;
|
| 103 |
+
*/
|
| 104 |
+
value: Struct;
|
| 105 |
+
case: "structValue";
|
| 106 |
+
} | {
|
| 107 |
+
/**
|
| 108 |
+
* Represents a repeated `Value`.
|
| 109 |
+
*
|
| 110 |
+
* @generated from field: google.protobuf.ListValue list_value = 6;
|
| 111 |
+
*/
|
| 112 |
+
value: ListValue;
|
| 113 |
+
case: "listValue";
|
| 114 |
+
} | {
|
| 115 |
+
case: undefined;
|
| 116 |
+
value?: undefined;
|
| 117 |
+
};
|
| 118 |
+
};
|
| 119 |
+
/**
|
| 120 |
+
* `Value` represents a dynamically typed value which can be either
|
| 121 |
+
* null, a number, a string, a boolean, a recursive struct value, or a
|
| 122 |
+
* list of values. A producer of value is expected to set one of these
|
| 123 |
+
* variants. Absence of any variant indicates an error.
|
| 124 |
+
*
|
| 125 |
+
* The JSON representation for `Value` is JSON value.
|
| 126 |
+
*
|
| 127 |
+
* @generated from message google.protobuf.Value
|
| 128 |
+
*/
|
| 129 |
+
export type ValueJson = JsonValue;
|
| 130 |
+
/**
|
| 131 |
+
* Describes the message google.protobuf.Value.
|
| 132 |
+
* Use `create(ValueSchema)` to create a new message.
|
| 133 |
+
*/
|
| 134 |
+
export declare const ValueSchema: GenMessage<Value, {
|
| 135 |
+
jsonType: ValueJson;
|
| 136 |
+
}>;
|
| 137 |
+
/**
|
| 138 |
+
* `ListValue` is a wrapper around a repeated field of values.
|
| 139 |
+
*
|
| 140 |
+
* The JSON representation for `ListValue` is JSON array.
|
| 141 |
+
*
|
| 142 |
+
* @generated from message google.protobuf.ListValue
|
| 143 |
+
*/
|
| 144 |
+
export type ListValue = Message<"google.protobuf.ListValue"> & {
|
| 145 |
+
/**
|
| 146 |
+
* Repeated field of dynamically typed values.
|
| 147 |
+
*
|
| 148 |
+
* @generated from field: repeated google.protobuf.Value values = 1;
|
| 149 |
+
*/
|
| 150 |
+
values: Value[];
|
| 151 |
+
};
|
| 152 |
+
/**
|
| 153 |
+
* `ListValue` is a wrapper around a repeated field of values.
|
| 154 |
+
*
|
| 155 |
+
* The JSON representation for `ListValue` is JSON array.
|
| 156 |
+
*
|
| 157 |
+
* @generated from message google.protobuf.ListValue
|
| 158 |
+
*/
|
| 159 |
+
export type ListValueJson = JsonValue[];
|
| 160 |
+
/**
|
| 161 |
+
* Describes the message google.protobuf.ListValue.
|
| 162 |
+
* Use `create(ListValueSchema)` to create a new message.
|
| 163 |
+
*/
|
| 164 |
+
export declare const ListValueSchema: GenMessage<ListValue, {
|
| 165 |
+
jsonType: ListValueJson;
|
| 166 |
+
}>;
|
| 167 |
+
/**
|
| 168 |
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
| 169 |
+
* `Value` type union.
|
| 170 |
+
*
|
| 171 |
+
* The JSON representation for `NullValue` is JSON `null`.
|
| 172 |
+
*
|
| 173 |
+
* @generated from enum google.protobuf.NullValue
|
| 174 |
+
*/
|
| 175 |
+
export declare enum NullValue {
|
| 176 |
+
/**
|
| 177 |
+
* Null value.
|
| 178 |
+
*
|
| 179 |
+
* @generated from enum value: NULL_VALUE = 0;
|
| 180 |
+
*/
|
| 181 |
+
NULL_VALUE = 0
|
| 182 |
+
}
|
| 183 |
+
/**
|
| 184 |
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
| 185 |
+
* `Value` type union.
|
| 186 |
+
*
|
| 187 |
+
* The JSON representation for `NullValue` is JSON `null`.
|
| 188 |
+
*
|
| 189 |
+
* @generated from enum google.protobuf.NullValue
|
| 190 |
+
*/
|
| 191 |
+
export type NullValueJson = null;
|
| 192 |
+
/**
|
| 193 |
+
* Describes the enum google.protobuf.NullValue.
|
| 194 |
+
*/
|
| 195 |
+
export declare const NullValueSchema: GenEnum<NullValue, NullValueJson>;
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
import { fileDesc } from "../../../../codegenv2/file.js";
|
| 15 |
+
import { messageDesc } from "../../../../codegenv2/message.js";
|
| 16 |
+
import { enumDesc } from "../../../../codegenv2/enum.js";
|
| 17 |
+
/**
|
| 18 |
+
* Describes the file google/protobuf/struct.proto.
|
| 19 |
+
*/
|
| 20 |
+
export const file_google_protobuf_struct = /*@__PURE__*/ fileDesc("Chxnb29nbGUvcHJvdG9idWYvc3RydWN0LnByb3RvEg9nb29nbGUucHJvdG9idWYihAEKBlN0cnVjdBIzCgZmaWVsZHMYASADKAsyIy5nb29nbGUucHJvdG9idWYuU3RydWN0LkZpZWxkc0VudHJ5GkUKC0ZpZWxkc0VudHJ5EgsKA2tleRgBIAEoCRIlCgV2YWx1ZRgCIAEoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZToCOAEi6gEKBVZhbHVlEjAKCm51bGxfdmFsdWUYASABKA4yGi5nb29nbGUucHJvdG9idWYuTnVsbFZhbHVlSAASFgoMbnVtYmVyX3ZhbHVlGAIgASgBSAASFgoMc3RyaW5nX3ZhbHVlGAMgASgJSAASFAoKYm9vbF92YWx1ZRgEIAEoCEgAEi8KDHN0cnVjdF92YWx1ZRgFIAEoCzIXLmdvb2dsZS5wcm90b2J1Zi5TdHJ1Y3RIABIwCgpsaXN0X3ZhbHVlGAYgASgLMhouZ29vZ2xlLnByb3RvYnVmLkxpc3RWYWx1ZUgAQgYKBGtpbmQiMwoJTGlzdFZhbHVlEiYKBnZhbHVlcxgBIAMoCzIWLmdvb2dsZS5wcm90b2J1Zi5WYWx1ZSobCglOdWxsVmFsdWUSDgoKTlVMTF9WQUxVRRAAQn8KE2NvbS5nb29nbGUucHJvdG9idWZCC1N0cnVjdFByb3RvUAFaL2dvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3N0cnVjdHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");
|
| 21 |
+
/**
|
| 22 |
+
* Describes the message google.protobuf.Struct.
|
| 23 |
+
* Use `create(StructSchema)` to create a new message.
|
| 24 |
+
*/
|
| 25 |
+
export const StructSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_struct, 0);
|
| 26 |
+
/**
|
| 27 |
+
* Describes the message google.protobuf.Value.
|
| 28 |
+
* Use `create(ValueSchema)` to create a new message.
|
| 29 |
+
*/
|
| 30 |
+
export const ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_struct, 1);
|
| 31 |
+
/**
|
| 32 |
+
* Describes the message google.protobuf.ListValue.
|
| 33 |
+
* Use `create(ListValueSchema)` to create a new message.
|
| 34 |
+
*/
|
| 35 |
+
export const ListValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_struct, 2);
|
| 36 |
+
/**
|
| 37 |
+
* `NullValue` is a singleton enumeration to represent the null value for the
|
| 38 |
+
* `Value` type union.
|
| 39 |
+
*
|
| 40 |
+
* The JSON representation for `NullValue` is JSON `null`.
|
| 41 |
+
*
|
| 42 |
+
* @generated from enum google.protobuf.NullValue
|
| 43 |
+
*/
|
| 44 |
+
export var NullValue;
|
| 45 |
+
(function (NullValue) {
|
| 46 |
+
/**
|
| 47 |
+
* Null value.
|
| 48 |
+
*
|
| 49 |
+
* @generated from enum value: NULL_VALUE = 0;
|
| 50 |
+
*/
|
| 51 |
+
NullValue[NullValue["NULL_VALUE"] = 0] = "NULL_VALUE";
|
| 52 |
+
})(NullValue || (NullValue = {}));
|
| 53 |
+
/**
|
| 54 |
+
* Describes the enum google.protobuf.NullValue.
|
| 55 |
+
*/
|
| 56 |
+
export const NullValueSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_struct, 0);
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { GenFile, GenMessage } from "../../../../codegenv2/types.js";
|
| 2 |
+
import type { Message } from "../../../../types.js";
|
| 3 |
+
/**
|
| 4 |
+
* Describes the file google/protobuf/timestamp.proto.
|
| 5 |
+
*/
|
| 6 |
+
export declare const file_google_protobuf_timestamp: GenFile;
|
| 7 |
+
/**
|
| 8 |
+
* A Timestamp represents a point in time independent of any time zone or local
|
| 9 |
+
* calendar, encoded as a count of seconds and fractions of seconds at
|
| 10 |
+
* nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
| 11 |
+
* January 1, 1970, in the proleptic Gregorian calendar which extends the
|
| 12 |
+
* Gregorian calendar backwards to year one.
|
| 13 |
+
*
|
| 14 |
+
* All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
| 15 |
+
* second table is needed for interpretation, using a [24-hour linear
|
| 16 |
+
* smear](https://developers.google.com/time/smear).
|
| 17 |
+
*
|
| 18 |
+
* The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
| 19 |
+
* restricting to that range, we ensure that we can convert to and from [RFC
|
| 20 |
+
* 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
| 21 |
+
*
|
| 22 |
+
* # Examples
|
| 23 |
+
*
|
| 24 |
+
* Example 1: Compute Timestamp from POSIX `time()`.
|
| 25 |
+
*
|
| 26 |
+
* Timestamp timestamp;
|
| 27 |
+
* timestamp.set_seconds(time(NULL));
|
| 28 |
+
* timestamp.set_nanos(0);
|
| 29 |
+
*
|
| 30 |
+
* Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
| 31 |
+
*
|
| 32 |
+
* struct timeval tv;
|
| 33 |
+
* gettimeofday(&tv, NULL);
|
| 34 |
+
*
|
| 35 |
+
* Timestamp timestamp;
|
| 36 |
+
* timestamp.set_seconds(tv.tv_sec);
|
| 37 |
+
* timestamp.set_nanos(tv.tv_usec * 1000);
|
| 38 |
+
*
|
| 39 |
+
* Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
| 40 |
+
*
|
| 41 |
+
* FILETIME ft;
|
| 42 |
+
* GetSystemTimeAsFileTime(&ft);
|
| 43 |
+
* UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
| 44 |
+
*
|
| 45 |
+
* // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
| 46 |
+
* // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
| 47 |
+
* Timestamp timestamp;
|
| 48 |
+
* timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
| 49 |
+
* timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
| 50 |
+
*
|
| 51 |
+
* Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
| 52 |
+
*
|
| 53 |
+
* long millis = System.currentTimeMillis();
|
| 54 |
+
*
|
| 55 |
+
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
| 56 |
+
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
| 57 |
+
*
|
| 58 |
+
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
| 59 |
+
*
|
| 60 |
+
* Instant now = Instant.now();
|
| 61 |
+
*
|
| 62 |
+
* Timestamp timestamp =
|
| 63 |
+
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
| 64 |
+
* .setNanos(now.getNano()).build();
|
| 65 |
+
*
|
| 66 |
+
* Example 6: Compute Timestamp from current time in Python.
|
| 67 |
+
*
|
| 68 |
+
* timestamp = Timestamp()
|
| 69 |
+
* timestamp.GetCurrentTime()
|
| 70 |
+
*
|
| 71 |
+
* # JSON Mapping
|
| 72 |
+
*
|
| 73 |
+
* In JSON format, the Timestamp type is encoded as a string in the
|
| 74 |
+
* [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
| 75 |
+
* format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
| 76 |
+
* where {year} is always expressed using four digits while {month}, {day},
|
| 77 |
+
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
| 78 |
+
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
| 79 |
+
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
| 80 |
+
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
| 81 |
+
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
| 82 |
+
* able to accept both UTC and other timezones (as indicated by an offset).
|
| 83 |
+
*
|
| 84 |
+
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
| 85 |
+
* 01:30 UTC on January 15, 2017.
|
| 86 |
+
*
|
| 87 |
+
* In JavaScript, one can convert a Date object to this format using the
|
| 88 |
+
* standard
|
| 89 |
+
* [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
| 90 |
+
* method. In Python, a standard `datetime.datetime` object can be converted
|
| 91 |
+
* to this format using
|
| 92 |
+
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
| 93 |
+
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
| 94 |
+
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
| 95 |
+
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
| 96 |
+
* ) to obtain a formatter capable of generating timestamps in this format.
|
| 97 |
+
*
|
| 98 |
+
*
|
| 99 |
+
* @generated from message google.protobuf.Timestamp
|
| 100 |
+
*/
|
| 101 |
+
export type Timestamp = Message<"google.protobuf.Timestamp"> & {
|
| 102 |
+
/**
|
| 103 |
+
* Represents seconds of UTC time since Unix epoch
|
| 104 |
+
* 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
| 105 |
+
* 9999-12-31T23:59:59Z inclusive.
|
| 106 |
+
*
|
| 107 |
+
* @generated from field: int64 seconds = 1;
|
| 108 |
+
*/
|
| 109 |
+
seconds: bigint;
|
| 110 |
+
/**
|
| 111 |
+
* Non-negative fractions of a second at nanosecond resolution. Negative
|
| 112 |
+
* second values with fractions must still have non-negative nanos values
|
| 113 |
+
* that count forward in time. Must be from 0 to 999,999,999
|
| 114 |
+
* inclusive.
|
| 115 |
+
*
|
| 116 |
+
* @generated from field: int32 nanos = 2;
|
| 117 |
+
*/
|
| 118 |
+
nanos: number;
|
| 119 |
+
};
|
| 120 |
+
/**
|
| 121 |
+
* A Timestamp represents a point in time independent of any time zone or local
|
| 122 |
+
* calendar, encoded as a count of seconds and fractions of seconds at
|
| 123 |
+
* nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
| 124 |
+
* January 1, 1970, in the proleptic Gregorian calendar which extends the
|
| 125 |
+
* Gregorian calendar backwards to year one.
|
| 126 |
+
*
|
| 127 |
+
* All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
| 128 |
+
* second table is needed for interpretation, using a [24-hour linear
|
| 129 |
+
* smear](https://developers.google.com/time/smear).
|
| 130 |
+
*
|
| 131 |
+
* The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
| 132 |
+
* restricting to that range, we ensure that we can convert to and from [RFC
|
| 133 |
+
* 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
| 134 |
+
*
|
| 135 |
+
* # Examples
|
| 136 |
+
*
|
| 137 |
+
* Example 1: Compute Timestamp from POSIX `time()`.
|
| 138 |
+
*
|
| 139 |
+
* Timestamp timestamp;
|
| 140 |
+
* timestamp.set_seconds(time(NULL));
|
| 141 |
+
* timestamp.set_nanos(0);
|
| 142 |
+
*
|
| 143 |
+
* Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
| 144 |
+
*
|
| 145 |
+
* struct timeval tv;
|
| 146 |
+
* gettimeofday(&tv, NULL);
|
| 147 |
+
*
|
| 148 |
+
* Timestamp timestamp;
|
| 149 |
+
* timestamp.set_seconds(tv.tv_sec);
|
| 150 |
+
* timestamp.set_nanos(tv.tv_usec * 1000);
|
| 151 |
+
*
|
| 152 |
+
* Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
| 153 |
+
*
|
| 154 |
+
* FILETIME ft;
|
| 155 |
+
* GetSystemTimeAsFileTime(&ft);
|
| 156 |
+
* UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
| 157 |
+
*
|
| 158 |
+
* // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
| 159 |
+
* // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
| 160 |
+
* Timestamp timestamp;
|
| 161 |
+
* timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
| 162 |
+
* timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
| 163 |
+
*
|
| 164 |
+
* Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
| 165 |
+
*
|
| 166 |
+
* long millis = System.currentTimeMillis();
|
| 167 |
+
*
|
| 168 |
+
* Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
| 169 |
+
* .setNanos((int) ((millis % 1000) * 1000000)).build();
|
| 170 |
+
*
|
| 171 |
+
* Example 5: Compute Timestamp from Java `Instant.now()`.
|
| 172 |
+
*
|
| 173 |
+
* Instant now = Instant.now();
|
| 174 |
+
*
|
| 175 |
+
* Timestamp timestamp =
|
| 176 |
+
* Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
| 177 |
+
* .setNanos(now.getNano()).build();
|
| 178 |
+
*
|
| 179 |
+
* Example 6: Compute Timestamp from current time in Python.
|
| 180 |
+
*
|
| 181 |
+
* timestamp = Timestamp()
|
| 182 |
+
* timestamp.GetCurrentTime()
|
| 183 |
+
*
|
| 184 |
+
* # JSON Mapping
|
| 185 |
+
*
|
| 186 |
+
* In JSON format, the Timestamp type is encoded as a string in the
|
| 187 |
+
* [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
| 188 |
+
* format is "{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z"
|
| 189 |
+
* where {year} is always expressed using four digits while {month}, {day},
|
| 190 |
+
* {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional
|
| 191 |
+
* seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
| 192 |
+
* are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
| 193 |
+
* is required. A proto3 JSON serializer should always use UTC (as indicated by
|
| 194 |
+
* "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
| 195 |
+
* able to accept both UTC and other timezones (as indicated by an offset).
|
| 196 |
+
*
|
| 197 |
+
* For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
| 198 |
+
* 01:30 UTC on January 15, 2017.
|
| 199 |
+
*
|
| 200 |
+
* In JavaScript, one can convert a Date object to this format using the
|
| 201 |
+
* standard
|
| 202 |
+
* [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
| 203 |
+
* method. In Python, a standard `datetime.datetime` object can be converted
|
| 204 |
+
* to this format using
|
| 205 |
+
* [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
| 206 |
+
* the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
| 207 |
+
* the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
| 208 |
+
* http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
| 209 |
+
* ) to obtain a formatter capable of generating timestamps in this format.
|
| 210 |
+
*
|
| 211 |
+
*
|
| 212 |
+
* @generated from message google.protobuf.Timestamp
|
| 213 |
+
*/
|
| 214 |
+
export type TimestampJson = string;
|
| 215 |
+
/**
|
| 216 |
+
* Describes the message google.protobuf.Timestamp.
|
| 217 |
+
* Use `create(TimestampSchema)` to create a new message.
|
| 218 |
+
*/
|
| 219 |
+
export declare const TimestampSchema: GenMessage<Timestamp, {
|
| 220 |
+
jsonType: TimestampJson;
|
| 221 |
+
}>;
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
import { fileDesc } from "../../../../codegenv2/file.js";
|
| 15 |
+
import { messageDesc } from "../../../../codegenv2/message.js";
|
| 16 |
+
/**
|
| 17 |
+
* Describes the file google/protobuf/timestamp.proto.
|
| 18 |
+
*/
|
| 19 |
+
export const file_google_protobuf_timestamp = /*@__PURE__*/ fileDesc("Ch9nb29nbGUvcHJvdG9idWYvdGltZXN0YW1wLnByb3RvEg9nb29nbGUucHJvdG9idWYiKwoJVGltZXN0YW1wEg8KB3NlY29uZHMYASABKAMSDQoFbmFub3MYAiABKAVChQEKE2NvbS5nb29nbGUucHJvdG9idWZCDlRpbWVzdGFtcFByb3RvUAFaMmdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2tub3duL3RpbWVzdGFtcHBi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");
|
| 20 |
+
/**
|
| 21 |
+
* Describes the message google.protobuf.Timestamp.
|
| 22 |
+
* Use `create(TimestampSchema)` to create a new message.
|
| 23 |
+
*/
|
| 24 |
+
export const TimestampSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_timestamp, 0);
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts
ADDED
|
@@ -0,0 +1,674 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv2/types.js";
|
| 2 |
+
import type { Any, AnyJson } from "./any_pb.js";
|
| 3 |
+
import type { SourceContext, SourceContextJson } from "./source_context_pb.js";
|
| 4 |
+
import type { Message } from "../../../../types.js";
|
| 5 |
+
/**
|
| 6 |
+
* Describes the file google/protobuf/type.proto.
|
| 7 |
+
*/
|
| 8 |
+
export declare const file_google_protobuf_type: GenFile;
|
| 9 |
+
/**
|
| 10 |
+
* A protocol buffer message type.
|
| 11 |
+
*
|
| 12 |
+
* @generated from message google.protobuf.Type
|
| 13 |
+
*/
|
| 14 |
+
export type Type = Message<"google.protobuf.Type"> & {
|
| 15 |
+
/**
|
| 16 |
+
* The fully qualified message name.
|
| 17 |
+
*
|
| 18 |
+
* @generated from field: string name = 1;
|
| 19 |
+
*/
|
| 20 |
+
name: string;
|
| 21 |
+
/**
|
| 22 |
+
* The list of fields.
|
| 23 |
+
*
|
| 24 |
+
* @generated from field: repeated google.protobuf.Field fields = 2;
|
| 25 |
+
*/
|
| 26 |
+
fields: Field[];
|
| 27 |
+
/**
|
| 28 |
+
* The list of types appearing in `oneof` definitions in this type.
|
| 29 |
+
*
|
| 30 |
+
* @generated from field: repeated string oneofs = 3;
|
| 31 |
+
*/
|
| 32 |
+
oneofs: string[];
|
| 33 |
+
/**
|
| 34 |
+
* The protocol buffer options.
|
| 35 |
+
*
|
| 36 |
+
* @generated from field: repeated google.protobuf.Option options = 4;
|
| 37 |
+
*/
|
| 38 |
+
options: Option[];
|
| 39 |
+
/**
|
| 40 |
+
* The source context.
|
| 41 |
+
*
|
| 42 |
+
* @generated from field: google.protobuf.SourceContext source_context = 5;
|
| 43 |
+
*/
|
| 44 |
+
sourceContext?: SourceContext;
|
| 45 |
+
/**
|
| 46 |
+
* The source syntax.
|
| 47 |
+
*
|
| 48 |
+
* @generated from field: google.protobuf.Syntax syntax = 6;
|
| 49 |
+
*/
|
| 50 |
+
syntax: Syntax;
|
| 51 |
+
/**
|
| 52 |
+
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
| 53 |
+
*
|
| 54 |
+
* @generated from field: string edition = 7;
|
| 55 |
+
*/
|
| 56 |
+
edition: string;
|
| 57 |
+
};
|
| 58 |
+
/**
|
| 59 |
+
* A protocol buffer message type.
|
| 60 |
+
*
|
| 61 |
+
* @generated from message google.protobuf.Type
|
| 62 |
+
*/
|
| 63 |
+
export type TypeJson = {
|
| 64 |
+
/**
|
| 65 |
+
* The fully qualified message name.
|
| 66 |
+
*
|
| 67 |
+
* @generated from field: string name = 1;
|
| 68 |
+
*/
|
| 69 |
+
name?: string;
|
| 70 |
+
/**
|
| 71 |
+
* The list of fields.
|
| 72 |
+
*
|
| 73 |
+
* @generated from field: repeated google.protobuf.Field fields = 2;
|
| 74 |
+
*/
|
| 75 |
+
fields?: FieldJson[];
|
| 76 |
+
/**
|
| 77 |
+
* The list of types appearing in `oneof` definitions in this type.
|
| 78 |
+
*
|
| 79 |
+
* @generated from field: repeated string oneofs = 3;
|
| 80 |
+
*/
|
| 81 |
+
oneofs?: string[];
|
| 82 |
+
/**
|
| 83 |
+
* The protocol buffer options.
|
| 84 |
+
*
|
| 85 |
+
* @generated from field: repeated google.protobuf.Option options = 4;
|
| 86 |
+
*/
|
| 87 |
+
options?: OptionJson[];
|
| 88 |
+
/**
|
| 89 |
+
* The source context.
|
| 90 |
+
*
|
| 91 |
+
* @generated from field: google.protobuf.SourceContext source_context = 5;
|
| 92 |
+
*/
|
| 93 |
+
sourceContext?: SourceContextJson;
|
| 94 |
+
/**
|
| 95 |
+
* The source syntax.
|
| 96 |
+
*
|
| 97 |
+
* @generated from field: google.protobuf.Syntax syntax = 6;
|
| 98 |
+
*/
|
| 99 |
+
syntax?: SyntaxJson;
|
| 100 |
+
/**
|
| 101 |
+
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
| 102 |
+
*
|
| 103 |
+
* @generated from field: string edition = 7;
|
| 104 |
+
*/
|
| 105 |
+
edition?: string;
|
| 106 |
+
};
|
| 107 |
+
/**
|
| 108 |
+
* Describes the message google.protobuf.Type.
|
| 109 |
+
* Use `create(TypeSchema)` to create a new message.
|
| 110 |
+
*/
|
| 111 |
+
export declare const TypeSchema: GenMessage<Type, {
|
| 112 |
+
jsonType: TypeJson;
|
| 113 |
+
}>;
|
| 114 |
+
/**
|
| 115 |
+
* A single field of a message type.
|
| 116 |
+
*
|
| 117 |
+
* @generated from message google.protobuf.Field
|
| 118 |
+
*/
|
| 119 |
+
export type Field = Message<"google.protobuf.Field"> & {
|
| 120 |
+
/**
|
| 121 |
+
* The field type.
|
| 122 |
+
*
|
| 123 |
+
* @generated from field: google.protobuf.Field.Kind kind = 1;
|
| 124 |
+
*/
|
| 125 |
+
kind: Field_Kind;
|
| 126 |
+
/**
|
| 127 |
+
* The field cardinality.
|
| 128 |
+
*
|
| 129 |
+
* @generated from field: google.protobuf.Field.Cardinality cardinality = 2;
|
| 130 |
+
*/
|
| 131 |
+
cardinality: Field_Cardinality;
|
| 132 |
+
/**
|
| 133 |
+
* The field number.
|
| 134 |
+
*
|
| 135 |
+
* @generated from field: int32 number = 3;
|
| 136 |
+
*/
|
| 137 |
+
number: number;
|
| 138 |
+
/**
|
| 139 |
+
* The field name.
|
| 140 |
+
*
|
| 141 |
+
* @generated from field: string name = 4;
|
| 142 |
+
*/
|
| 143 |
+
name: string;
|
| 144 |
+
/**
|
| 145 |
+
* The field type URL, without the scheme, for message or enumeration
|
| 146 |
+
* types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
|
| 147 |
+
*
|
| 148 |
+
* @generated from field: string type_url = 6;
|
| 149 |
+
*/
|
| 150 |
+
typeUrl: string;
|
| 151 |
+
/**
|
| 152 |
+
* The index of the field type in `Type.oneofs`, for message or enumeration
|
| 153 |
+
* types. The first type has index 1; zero means the type is not in the list.
|
| 154 |
+
*
|
| 155 |
+
* @generated from field: int32 oneof_index = 7;
|
| 156 |
+
*/
|
| 157 |
+
oneofIndex: number;
|
| 158 |
+
/**
|
| 159 |
+
* Whether to use alternative packed wire representation.
|
| 160 |
+
*
|
| 161 |
+
* @generated from field: bool packed = 8;
|
| 162 |
+
*/
|
| 163 |
+
packed: boolean;
|
| 164 |
+
/**
|
| 165 |
+
* The protocol buffer options.
|
| 166 |
+
*
|
| 167 |
+
* @generated from field: repeated google.protobuf.Option options = 9;
|
| 168 |
+
*/
|
| 169 |
+
options: Option[];
|
| 170 |
+
/**
|
| 171 |
+
* The field JSON name.
|
| 172 |
+
*
|
| 173 |
+
* @generated from field: string json_name = 10;
|
| 174 |
+
*/
|
| 175 |
+
jsonName: string;
|
| 176 |
+
/**
|
| 177 |
+
* The string value of the default value of this field. Proto2 syntax only.
|
| 178 |
+
*
|
| 179 |
+
* @generated from field: string default_value = 11;
|
| 180 |
+
*/
|
| 181 |
+
defaultValue: string;
|
| 182 |
+
};
|
| 183 |
+
/**
|
| 184 |
+
* A single field of a message type.
|
| 185 |
+
*
|
| 186 |
+
* @generated from message google.protobuf.Field
|
| 187 |
+
*/
|
| 188 |
+
export type FieldJson = {
|
| 189 |
+
/**
|
| 190 |
+
* The field type.
|
| 191 |
+
*
|
| 192 |
+
* @generated from field: google.protobuf.Field.Kind kind = 1;
|
| 193 |
+
*/
|
| 194 |
+
kind?: Field_KindJson;
|
| 195 |
+
/**
|
| 196 |
+
* The field cardinality.
|
| 197 |
+
*
|
| 198 |
+
* @generated from field: google.protobuf.Field.Cardinality cardinality = 2;
|
| 199 |
+
*/
|
| 200 |
+
cardinality?: Field_CardinalityJson;
|
| 201 |
+
/**
|
| 202 |
+
* The field number.
|
| 203 |
+
*
|
| 204 |
+
* @generated from field: int32 number = 3;
|
| 205 |
+
*/
|
| 206 |
+
number?: number;
|
| 207 |
+
/**
|
| 208 |
+
* The field name.
|
| 209 |
+
*
|
| 210 |
+
* @generated from field: string name = 4;
|
| 211 |
+
*/
|
| 212 |
+
name?: string;
|
| 213 |
+
/**
|
| 214 |
+
* The field type URL, without the scheme, for message or enumeration
|
| 215 |
+
* types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
|
| 216 |
+
*
|
| 217 |
+
* @generated from field: string type_url = 6;
|
| 218 |
+
*/
|
| 219 |
+
typeUrl?: string;
|
| 220 |
+
/**
|
| 221 |
+
* The index of the field type in `Type.oneofs`, for message or enumeration
|
| 222 |
+
* types. The first type has index 1; zero means the type is not in the list.
|
| 223 |
+
*
|
| 224 |
+
* @generated from field: int32 oneof_index = 7;
|
| 225 |
+
*/
|
| 226 |
+
oneofIndex?: number;
|
| 227 |
+
/**
|
| 228 |
+
* Whether to use alternative packed wire representation.
|
| 229 |
+
*
|
| 230 |
+
* @generated from field: bool packed = 8;
|
| 231 |
+
*/
|
| 232 |
+
packed?: boolean;
|
| 233 |
+
/**
|
| 234 |
+
* The protocol buffer options.
|
| 235 |
+
*
|
| 236 |
+
* @generated from field: repeated google.protobuf.Option options = 9;
|
| 237 |
+
*/
|
| 238 |
+
options?: OptionJson[];
|
| 239 |
+
/**
|
| 240 |
+
* The field JSON name.
|
| 241 |
+
*
|
| 242 |
+
* @generated from field: string json_name = 10;
|
| 243 |
+
*/
|
| 244 |
+
jsonName?: string;
|
| 245 |
+
/**
|
| 246 |
+
* The string value of the default value of this field. Proto2 syntax only.
|
| 247 |
+
*
|
| 248 |
+
* @generated from field: string default_value = 11;
|
| 249 |
+
*/
|
| 250 |
+
defaultValue?: string;
|
| 251 |
+
};
|
| 252 |
+
/**
|
| 253 |
+
* Describes the message google.protobuf.Field.
|
| 254 |
+
* Use `create(FieldSchema)` to create a new message.
|
| 255 |
+
*/
|
| 256 |
+
export declare const FieldSchema: GenMessage<Field, {
|
| 257 |
+
jsonType: FieldJson;
|
| 258 |
+
}>;
|
| 259 |
+
/**
|
| 260 |
+
* Basic field types.
|
| 261 |
+
*
|
| 262 |
+
* @generated from enum google.protobuf.Field.Kind
|
| 263 |
+
*/
|
| 264 |
+
export declare enum Field_Kind {
|
| 265 |
+
/**
|
| 266 |
+
* Field type unknown.
|
| 267 |
+
*
|
| 268 |
+
* @generated from enum value: TYPE_UNKNOWN = 0;
|
| 269 |
+
*/
|
| 270 |
+
TYPE_UNKNOWN = 0,
|
| 271 |
+
/**
|
| 272 |
+
* Field type double.
|
| 273 |
+
*
|
| 274 |
+
* @generated from enum value: TYPE_DOUBLE = 1;
|
| 275 |
+
*/
|
| 276 |
+
TYPE_DOUBLE = 1,
|
| 277 |
+
/**
|
| 278 |
+
* Field type float.
|
| 279 |
+
*
|
| 280 |
+
* @generated from enum value: TYPE_FLOAT = 2;
|
| 281 |
+
*/
|
| 282 |
+
TYPE_FLOAT = 2,
|
| 283 |
+
/**
|
| 284 |
+
* Field type int64.
|
| 285 |
+
*
|
| 286 |
+
* @generated from enum value: TYPE_INT64 = 3;
|
| 287 |
+
*/
|
| 288 |
+
TYPE_INT64 = 3,
|
| 289 |
+
/**
|
| 290 |
+
* Field type uint64.
|
| 291 |
+
*
|
| 292 |
+
* @generated from enum value: TYPE_UINT64 = 4;
|
| 293 |
+
*/
|
| 294 |
+
TYPE_UINT64 = 4,
|
| 295 |
+
/**
|
| 296 |
+
* Field type int32.
|
| 297 |
+
*
|
| 298 |
+
* @generated from enum value: TYPE_INT32 = 5;
|
| 299 |
+
*/
|
| 300 |
+
TYPE_INT32 = 5,
|
| 301 |
+
/**
|
| 302 |
+
* Field type fixed64.
|
| 303 |
+
*
|
| 304 |
+
* @generated from enum value: TYPE_FIXED64 = 6;
|
| 305 |
+
*/
|
| 306 |
+
TYPE_FIXED64 = 6,
|
| 307 |
+
/**
|
| 308 |
+
* Field type fixed32.
|
| 309 |
+
*
|
| 310 |
+
* @generated from enum value: TYPE_FIXED32 = 7;
|
| 311 |
+
*/
|
| 312 |
+
TYPE_FIXED32 = 7,
|
| 313 |
+
/**
|
| 314 |
+
* Field type bool.
|
| 315 |
+
*
|
| 316 |
+
* @generated from enum value: TYPE_BOOL = 8;
|
| 317 |
+
*/
|
| 318 |
+
TYPE_BOOL = 8,
|
| 319 |
+
/**
|
| 320 |
+
* Field type string.
|
| 321 |
+
*
|
| 322 |
+
* @generated from enum value: TYPE_STRING = 9;
|
| 323 |
+
*/
|
| 324 |
+
TYPE_STRING = 9,
|
| 325 |
+
/**
|
| 326 |
+
* Field type group. Proto2 syntax only, and deprecated.
|
| 327 |
+
*
|
| 328 |
+
* @generated from enum value: TYPE_GROUP = 10;
|
| 329 |
+
*/
|
| 330 |
+
TYPE_GROUP = 10,
|
| 331 |
+
/**
|
| 332 |
+
* Field type message.
|
| 333 |
+
*
|
| 334 |
+
* @generated from enum value: TYPE_MESSAGE = 11;
|
| 335 |
+
*/
|
| 336 |
+
TYPE_MESSAGE = 11,
|
| 337 |
+
/**
|
| 338 |
+
* Field type bytes.
|
| 339 |
+
*
|
| 340 |
+
* @generated from enum value: TYPE_BYTES = 12;
|
| 341 |
+
*/
|
| 342 |
+
TYPE_BYTES = 12,
|
| 343 |
+
/**
|
| 344 |
+
* Field type uint32.
|
| 345 |
+
*
|
| 346 |
+
* @generated from enum value: TYPE_UINT32 = 13;
|
| 347 |
+
*/
|
| 348 |
+
TYPE_UINT32 = 13,
|
| 349 |
+
/**
|
| 350 |
+
* Field type enum.
|
| 351 |
+
*
|
| 352 |
+
* @generated from enum value: TYPE_ENUM = 14;
|
| 353 |
+
*/
|
| 354 |
+
TYPE_ENUM = 14,
|
| 355 |
+
/**
|
| 356 |
+
* Field type sfixed32.
|
| 357 |
+
*
|
| 358 |
+
* @generated from enum value: TYPE_SFIXED32 = 15;
|
| 359 |
+
*/
|
| 360 |
+
TYPE_SFIXED32 = 15,
|
| 361 |
+
/**
|
| 362 |
+
* Field type sfixed64.
|
| 363 |
+
*
|
| 364 |
+
* @generated from enum value: TYPE_SFIXED64 = 16;
|
| 365 |
+
*/
|
| 366 |
+
TYPE_SFIXED64 = 16,
|
| 367 |
+
/**
|
| 368 |
+
* Field type sint32.
|
| 369 |
+
*
|
| 370 |
+
* @generated from enum value: TYPE_SINT32 = 17;
|
| 371 |
+
*/
|
| 372 |
+
TYPE_SINT32 = 17,
|
| 373 |
+
/**
|
| 374 |
+
* Field type sint64.
|
| 375 |
+
*
|
| 376 |
+
* @generated from enum value: TYPE_SINT64 = 18;
|
| 377 |
+
*/
|
| 378 |
+
TYPE_SINT64 = 18
|
| 379 |
+
}
|
| 380 |
+
/**
|
| 381 |
+
* Basic field types.
|
| 382 |
+
*
|
| 383 |
+
* @generated from enum google.protobuf.Field.Kind
|
| 384 |
+
*/
|
| 385 |
+
export type Field_KindJson = "TYPE_UNKNOWN" | "TYPE_DOUBLE" | "TYPE_FLOAT" | "TYPE_INT64" | "TYPE_UINT64" | "TYPE_INT32" | "TYPE_FIXED64" | "TYPE_FIXED32" | "TYPE_BOOL" | "TYPE_STRING" | "TYPE_GROUP" | "TYPE_MESSAGE" | "TYPE_BYTES" | "TYPE_UINT32" | "TYPE_ENUM" | "TYPE_SFIXED32" | "TYPE_SFIXED64" | "TYPE_SINT32" | "TYPE_SINT64";
|
| 386 |
+
/**
|
| 387 |
+
* Describes the enum google.protobuf.Field.Kind.
|
| 388 |
+
*/
|
| 389 |
+
export declare const Field_KindSchema: GenEnum<Field_Kind, Field_KindJson>;
|
| 390 |
+
/**
|
| 391 |
+
* Whether a field is optional, required, or repeated.
|
| 392 |
+
*
|
| 393 |
+
* @generated from enum google.protobuf.Field.Cardinality
|
| 394 |
+
*/
|
| 395 |
+
export declare enum Field_Cardinality {
|
| 396 |
+
/**
|
| 397 |
+
* For fields with unknown cardinality.
|
| 398 |
+
*
|
| 399 |
+
* @generated from enum value: CARDINALITY_UNKNOWN = 0;
|
| 400 |
+
*/
|
| 401 |
+
UNKNOWN = 0,
|
| 402 |
+
/**
|
| 403 |
+
* For optional fields.
|
| 404 |
+
*
|
| 405 |
+
* @generated from enum value: CARDINALITY_OPTIONAL = 1;
|
| 406 |
+
*/
|
| 407 |
+
OPTIONAL = 1,
|
| 408 |
+
/**
|
| 409 |
+
* For required fields. Proto2 syntax only.
|
| 410 |
+
*
|
| 411 |
+
* @generated from enum value: CARDINALITY_REQUIRED = 2;
|
| 412 |
+
*/
|
| 413 |
+
REQUIRED = 2,
|
| 414 |
+
/**
|
| 415 |
+
* For repeated fields.
|
| 416 |
+
*
|
| 417 |
+
* @generated from enum value: CARDINALITY_REPEATED = 3;
|
| 418 |
+
*/
|
| 419 |
+
REPEATED = 3
|
| 420 |
+
}
|
| 421 |
+
/**
|
| 422 |
+
* Whether a field is optional, required, or repeated.
|
| 423 |
+
*
|
| 424 |
+
* @generated from enum google.protobuf.Field.Cardinality
|
| 425 |
+
*/
|
| 426 |
+
export type Field_CardinalityJson = "CARDINALITY_UNKNOWN" | "CARDINALITY_OPTIONAL" | "CARDINALITY_REQUIRED" | "CARDINALITY_REPEATED";
|
| 427 |
+
/**
|
| 428 |
+
* Describes the enum google.protobuf.Field.Cardinality.
|
| 429 |
+
*/
|
| 430 |
+
export declare const Field_CardinalitySchema: GenEnum<Field_Cardinality, Field_CardinalityJson>;
|
| 431 |
+
/**
|
| 432 |
+
* Enum type definition.
|
| 433 |
+
*
|
| 434 |
+
* @generated from message google.protobuf.Enum
|
| 435 |
+
*/
|
| 436 |
+
export type Enum = Message<"google.protobuf.Enum"> & {
|
| 437 |
+
/**
|
| 438 |
+
* Enum type name.
|
| 439 |
+
*
|
| 440 |
+
* @generated from field: string name = 1;
|
| 441 |
+
*/
|
| 442 |
+
name: string;
|
| 443 |
+
/**
|
| 444 |
+
* Enum value definitions.
|
| 445 |
+
*
|
| 446 |
+
* @generated from field: repeated google.protobuf.EnumValue enumvalue = 2;
|
| 447 |
+
*/
|
| 448 |
+
enumvalue: EnumValue[];
|
| 449 |
+
/**
|
| 450 |
+
* Protocol buffer options.
|
| 451 |
+
*
|
| 452 |
+
* @generated from field: repeated google.protobuf.Option options = 3;
|
| 453 |
+
*/
|
| 454 |
+
options: Option[];
|
| 455 |
+
/**
|
| 456 |
+
* The source context.
|
| 457 |
+
*
|
| 458 |
+
* @generated from field: google.protobuf.SourceContext source_context = 4;
|
| 459 |
+
*/
|
| 460 |
+
sourceContext?: SourceContext;
|
| 461 |
+
/**
|
| 462 |
+
* The source syntax.
|
| 463 |
+
*
|
| 464 |
+
* @generated from field: google.protobuf.Syntax syntax = 5;
|
| 465 |
+
*/
|
| 466 |
+
syntax: Syntax;
|
| 467 |
+
/**
|
| 468 |
+
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
| 469 |
+
*
|
| 470 |
+
* @generated from field: string edition = 6;
|
| 471 |
+
*/
|
| 472 |
+
edition: string;
|
| 473 |
+
};
|
| 474 |
+
/**
|
| 475 |
+
* Enum type definition.
|
| 476 |
+
*
|
| 477 |
+
* @generated from message google.protobuf.Enum
|
| 478 |
+
*/
|
| 479 |
+
export type EnumJson = {
|
| 480 |
+
/**
|
| 481 |
+
* Enum type name.
|
| 482 |
+
*
|
| 483 |
+
* @generated from field: string name = 1;
|
| 484 |
+
*/
|
| 485 |
+
name?: string;
|
| 486 |
+
/**
|
| 487 |
+
* Enum value definitions.
|
| 488 |
+
*
|
| 489 |
+
* @generated from field: repeated google.protobuf.EnumValue enumvalue = 2;
|
| 490 |
+
*/
|
| 491 |
+
enumvalue?: EnumValueJson[];
|
| 492 |
+
/**
|
| 493 |
+
* Protocol buffer options.
|
| 494 |
+
*
|
| 495 |
+
* @generated from field: repeated google.protobuf.Option options = 3;
|
| 496 |
+
*/
|
| 497 |
+
options?: OptionJson[];
|
| 498 |
+
/**
|
| 499 |
+
* The source context.
|
| 500 |
+
*
|
| 501 |
+
* @generated from field: google.protobuf.SourceContext source_context = 4;
|
| 502 |
+
*/
|
| 503 |
+
sourceContext?: SourceContextJson;
|
| 504 |
+
/**
|
| 505 |
+
* The source syntax.
|
| 506 |
+
*
|
| 507 |
+
* @generated from field: google.protobuf.Syntax syntax = 5;
|
| 508 |
+
*/
|
| 509 |
+
syntax?: SyntaxJson;
|
| 510 |
+
/**
|
| 511 |
+
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
| 512 |
+
*
|
| 513 |
+
* @generated from field: string edition = 6;
|
| 514 |
+
*/
|
| 515 |
+
edition?: string;
|
| 516 |
+
};
|
| 517 |
+
/**
|
| 518 |
+
* Describes the message google.protobuf.Enum.
|
| 519 |
+
* Use `create(EnumSchema)` to create a new message.
|
| 520 |
+
*/
|
| 521 |
+
export declare const EnumSchema: GenMessage<Enum, {
|
| 522 |
+
jsonType: EnumJson;
|
| 523 |
+
}>;
|
| 524 |
+
/**
|
| 525 |
+
* Enum value definition.
|
| 526 |
+
*
|
| 527 |
+
* @generated from message google.protobuf.EnumValue
|
| 528 |
+
*/
|
| 529 |
+
export type EnumValue = Message<"google.protobuf.EnumValue"> & {
|
| 530 |
+
/**
|
| 531 |
+
* Enum value name.
|
| 532 |
+
*
|
| 533 |
+
* @generated from field: string name = 1;
|
| 534 |
+
*/
|
| 535 |
+
name: string;
|
| 536 |
+
/**
|
| 537 |
+
* Enum value number.
|
| 538 |
+
*
|
| 539 |
+
* @generated from field: int32 number = 2;
|
| 540 |
+
*/
|
| 541 |
+
number: number;
|
| 542 |
+
/**
|
| 543 |
+
* Protocol buffer options.
|
| 544 |
+
*
|
| 545 |
+
* @generated from field: repeated google.protobuf.Option options = 3;
|
| 546 |
+
*/
|
| 547 |
+
options: Option[];
|
| 548 |
+
};
|
| 549 |
+
/**
|
| 550 |
+
* Enum value definition.
|
| 551 |
+
*
|
| 552 |
+
* @generated from message google.protobuf.EnumValue
|
| 553 |
+
*/
|
| 554 |
+
export type EnumValueJson = {
|
| 555 |
+
/**
|
| 556 |
+
* Enum value name.
|
| 557 |
+
*
|
| 558 |
+
* @generated from field: string name = 1;
|
| 559 |
+
*/
|
| 560 |
+
name?: string;
|
| 561 |
+
/**
|
| 562 |
+
* Enum value number.
|
| 563 |
+
*
|
| 564 |
+
* @generated from field: int32 number = 2;
|
| 565 |
+
*/
|
| 566 |
+
number?: number;
|
| 567 |
+
/**
|
| 568 |
+
* Protocol buffer options.
|
| 569 |
+
*
|
| 570 |
+
* @generated from field: repeated google.protobuf.Option options = 3;
|
| 571 |
+
*/
|
| 572 |
+
options?: OptionJson[];
|
| 573 |
+
};
|
| 574 |
+
/**
|
| 575 |
+
* Describes the message google.protobuf.EnumValue.
|
| 576 |
+
* Use `create(EnumValueSchema)` to create a new message.
|
| 577 |
+
*/
|
| 578 |
+
export declare const EnumValueSchema: GenMessage<EnumValue, {
|
| 579 |
+
jsonType: EnumValueJson;
|
| 580 |
+
}>;
|
| 581 |
+
/**
|
| 582 |
+
* A protocol buffer option, which can be attached to a message, field,
|
| 583 |
+
* enumeration, etc.
|
| 584 |
+
*
|
| 585 |
+
* @generated from message google.protobuf.Option
|
| 586 |
+
*/
|
| 587 |
+
export type Option = Message<"google.protobuf.Option"> & {
|
| 588 |
+
/**
|
| 589 |
+
* The option's name. For protobuf built-in options (options defined in
|
| 590 |
+
* descriptor.proto), this is the short name. For example, `"map_entry"`.
|
| 591 |
+
* For custom options, it should be the fully-qualified name. For example,
|
| 592 |
+
* `"google.api.http"`.
|
| 593 |
+
*
|
| 594 |
+
* @generated from field: string name = 1;
|
| 595 |
+
*/
|
| 596 |
+
name: string;
|
| 597 |
+
/**
|
| 598 |
+
* The option's value packed in an Any message. If the value is a primitive,
|
| 599 |
+
* the corresponding wrapper type defined in google/protobuf/wrappers.proto
|
| 600 |
+
* should be used. If the value is an enum, it should be stored as an int32
|
| 601 |
+
* value using the google.protobuf.Int32Value type.
|
| 602 |
+
*
|
| 603 |
+
* @generated from field: google.protobuf.Any value = 2;
|
| 604 |
+
*/
|
| 605 |
+
value?: Any;
|
| 606 |
+
};
|
| 607 |
+
/**
|
| 608 |
+
* A protocol buffer option, which can be attached to a message, field,
|
| 609 |
+
* enumeration, etc.
|
| 610 |
+
*
|
| 611 |
+
* @generated from message google.protobuf.Option
|
| 612 |
+
*/
|
| 613 |
+
export type OptionJson = {
|
| 614 |
+
/**
|
| 615 |
+
* The option's name. For protobuf built-in options (options defined in
|
| 616 |
+
* descriptor.proto), this is the short name. For example, `"map_entry"`.
|
| 617 |
+
* For custom options, it should be the fully-qualified name. For example,
|
| 618 |
+
* `"google.api.http"`.
|
| 619 |
+
*
|
| 620 |
+
* @generated from field: string name = 1;
|
| 621 |
+
*/
|
| 622 |
+
name?: string;
|
| 623 |
+
/**
|
| 624 |
+
* The option's value packed in an Any message. If the value is a primitive,
|
| 625 |
+
* the corresponding wrapper type defined in google/protobuf/wrappers.proto
|
| 626 |
+
* should be used. If the value is an enum, it should be stored as an int32
|
| 627 |
+
* value using the google.protobuf.Int32Value type.
|
| 628 |
+
*
|
| 629 |
+
* @generated from field: google.protobuf.Any value = 2;
|
| 630 |
+
*/
|
| 631 |
+
value?: AnyJson;
|
| 632 |
+
};
|
| 633 |
+
/**
|
| 634 |
+
* Describes the message google.protobuf.Option.
|
| 635 |
+
* Use `create(OptionSchema)` to create a new message.
|
| 636 |
+
*/
|
| 637 |
+
export declare const OptionSchema: GenMessage<Option, {
|
| 638 |
+
jsonType: OptionJson;
|
| 639 |
+
}>;
|
| 640 |
+
/**
|
| 641 |
+
* The syntax in which a protocol buffer element is defined.
|
| 642 |
+
*
|
| 643 |
+
* @generated from enum google.protobuf.Syntax
|
| 644 |
+
*/
|
| 645 |
+
export declare enum Syntax {
|
| 646 |
+
/**
|
| 647 |
+
* Syntax `proto2`.
|
| 648 |
+
*
|
| 649 |
+
* @generated from enum value: SYNTAX_PROTO2 = 0;
|
| 650 |
+
*/
|
| 651 |
+
PROTO2 = 0,
|
| 652 |
+
/**
|
| 653 |
+
* Syntax `proto3`.
|
| 654 |
+
*
|
| 655 |
+
* @generated from enum value: SYNTAX_PROTO3 = 1;
|
| 656 |
+
*/
|
| 657 |
+
PROTO3 = 1,
|
| 658 |
+
/**
|
| 659 |
+
* Syntax `editions`.
|
| 660 |
+
*
|
| 661 |
+
* @generated from enum value: SYNTAX_EDITIONS = 2;
|
| 662 |
+
*/
|
| 663 |
+
EDITIONS = 2
|
| 664 |
+
}
|
| 665 |
+
/**
|
| 666 |
+
* The syntax in which a protocol buffer element is defined.
|
| 667 |
+
*
|
| 668 |
+
* @generated from enum google.protobuf.Syntax
|
| 669 |
+
*/
|
| 670 |
+
export type SyntaxJson = "SYNTAX_PROTO2" | "SYNTAX_PROTO3" | "SYNTAX_EDITIONS";
|
| 671 |
+
/**
|
| 672 |
+
* Describes the enum google.protobuf.Syntax.
|
| 673 |
+
*/
|
| 674 |
+
export declare const SyntaxSchema: GenEnum<Syntax, SyntaxJson>;
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
import { fileDesc } from "../../../../codegenv2/file.js";
|
| 15 |
+
import { file_google_protobuf_any } from "./any_pb.js";
|
| 16 |
+
import { file_google_protobuf_source_context } from "./source_context_pb.js";
|
| 17 |
+
import { messageDesc } from "../../../../codegenv2/message.js";
|
| 18 |
+
import { enumDesc } from "../../../../codegenv2/enum.js";
|
| 19 |
+
/**
|
| 20 |
+
* Describes the file google/protobuf/type.proto.
|
| 21 |
+
*/
|
| 22 |
+
export const file_google_protobuf_type = /*@__PURE__*/ fileDesc("Chpnb29nbGUvcHJvdG9idWYvdHlwZS5wcm90bxIPZ29vZ2xlLnByb3RvYnVmIugBCgRUeXBlEgwKBG5hbWUYASABKAkSJgoGZmllbGRzGAIgAygLMhYuZ29vZ2xlLnByb3RvYnVmLkZpZWxkEg4KBm9uZW9mcxgDIAMoCRIoCgdvcHRpb25zGAQgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhI2Cg5zb3VyY2VfY29udGV4dBgFIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb250ZXh0EicKBnN5bnRheBgGIAEoDjIXLmdvb2dsZS5wcm90b2J1Zi5TeW50YXgSDwoHZWRpdGlvbhgHIAEoCSLVBQoFRmllbGQSKQoEa2luZBgBIAEoDjIbLmdvb2dsZS5wcm90b2J1Zi5GaWVsZC5LaW5kEjcKC2NhcmRpbmFsaXR5GAIgASgOMiIuZ29vZ2xlLnByb3RvYnVmLkZpZWxkLkNhcmRpbmFsaXR5Eg4KBm51bWJlchgDIAEoBRIMCgRuYW1lGAQgASgJEhAKCHR5cGVfdXJsGAYgASgJEhMKC29uZW9mX2luZGV4GAcgASgFEg4KBnBhY2tlZBgIIAEoCBIoCgdvcHRpb25zGAkgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhIRCglqc29uX25hbWUYCiABKAkSFQoNZGVmYXVsdF92YWx1ZRgLIAEoCSLIAgoES2luZBIQCgxUWVBFX1VOS05PV04QABIPCgtUWVBFX0RPVUJMRRABEg4KClRZUEVfRkxPQVQQAhIOCgpUWVBFX0lOVDY0EAMSDwoLVFlQRV9VSU5UNjQQBBIOCgpUWVBFX0lOVDMyEAUSEAoMVFlQRV9GSVhFRDY0EAYSEAoMVFlQRV9GSVhFRDMyEAcSDQoJVFlQRV9CT09MEAgSDwoLVFlQRV9TVFJJTkcQCRIOCgpUWVBFX0dST1VQEAoSEAoMVFlQRV9NRVNTQUdFEAsSDgoKVFlQRV9CWVRFUxAMEg8KC1RZUEVfVUlOVDMyEA0SDQoJVFlQRV9FTlVNEA4SEQoNVFlQRV9TRklYRUQzMhAPEhEKDVRZUEVfU0ZJWEVENjQQEBIPCgtUWVBFX1NJTlQzMhAREg8KC1RZUEVfU0lOVDY0EBIidAoLQ2FyZGluYWxpdHkSFwoTQ0FSRElOQUxJVFlfVU5LTk9XThAAEhgKFENBUkRJTkFMSVRZX09QVElPTkFMEAESGAoUQ0FSRElOQUxJVFlfUkVRVUlSRUQQAhIYChRDQVJESU5BTElUWV9SRVBFQVRFRBADIt8BCgRFbnVtEgwKBG5hbWUYASABKAkSLQoJZW51bXZhbHVlGAIgAygLMhouZ29vZ2xlLnByb3RvYnVmLkVudW1WYWx1ZRIoCgdvcHRpb25zGAMgAygLMhcuZ29vZ2xlLnByb3RvYnVmLk9wdGlvbhI2Cg5zb3VyY2VfY29udGV4dBgEIAEoCzIeLmdvb2dsZS5wcm90b2J1Zi5Tb3VyY2VDb250ZXh0EicKBnN5bnRheBgFIAEoDjIXLmdvb2dsZS5wcm90b2J1Zi5TeW50YXgSDwoHZWRpdGlvbhgGIAEoCSJTCglFbnVtVmFsdWUSDAoEbmFtZRgBIAEoCRIOCgZudW1iZXIYAiABKAUSKAoHb3B0aW9ucxgDIAMoCzIXLmdvb2dsZS5wcm90b2J1Zi5PcHRpb24iOwoGT3B0aW9uEgwKBG5hbWUYASABKAkSIwoFdmFsdWUYAiABKAsyFC5nb29nbGUucHJvdG9idWYuQW55KkMKBlN5bnRheBIRCg1TWU5UQVhfUFJPVE8yEAASEQoNU1lOVEFYX1BST1RPMxABEhMKD1NZTlRBWF9FRElUSU9OUxACQnsKE2NvbS5nb29nbGUucHJvdG9idWZCCVR5cGVQcm90b1ABWi1nb29nbGUuZ29sYW5nLm9yZy9wcm90b2J1Zi90eXBlcy9rbm93bi90eXBlcGL4AQGiAgNHUEKqAh5Hb29nbGUuUHJvdG9idWYuV2VsbEtub3duVHlwZXNiBnByb3RvMw", [file_google_protobuf_any, file_google_protobuf_source_context]);
|
| 23 |
+
/**
|
| 24 |
+
* Describes the message google.protobuf.Type.
|
| 25 |
+
* Use `create(TypeSchema)` to create a new message.
|
| 26 |
+
*/
|
| 27 |
+
export const TypeSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_type, 0);
|
| 28 |
+
/**
|
| 29 |
+
* Describes the message google.protobuf.Field.
|
| 30 |
+
* Use `create(FieldSchema)` to create a new message.
|
| 31 |
+
*/
|
| 32 |
+
export const FieldSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_type, 1);
|
| 33 |
+
/**
|
| 34 |
+
* Basic field types.
|
| 35 |
+
*
|
| 36 |
+
* @generated from enum google.protobuf.Field.Kind
|
| 37 |
+
*/
|
| 38 |
+
export var Field_Kind;
|
| 39 |
+
(function (Field_Kind) {
|
| 40 |
+
/**
|
| 41 |
+
* Field type unknown.
|
| 42 |
+
*
|
| 43 |
+
* @generated from enum value: TYPE_UNKNOWN = 0;
|
| 44 |
+
*/
|
| 45 |
+
Field_Kind[Field_Kind["TYPE_UNKNOWN"] = 0] = "TYPE_UNKNOWN";
|
| 46 |
+
/**
|
| 47 |
+
* Field type double.
|
| 48 |
+
*
|
| 49 |
+
* @generated from enum value: TYPE_DOUBLE = 1;
|
| 50 |
+
*/
|
| 51 |
+
Field_Kind[Field_Kind["TYPE_DOUBLE"] = 1] = "TYPE_DOUBLE";
|
| 52 |
+
/**
|
| 53 |
+
* Field type float.
|
| 54 |
+
*
|
| 55 |
+
* @generated from enum value: TYPE_FLOAT = 2;
|
| 56 |
+
*/
|
| 57 |
+
Field_Kind[Field_Kind["TYPE_FLOAT"] = 2] = "TYPE_FLOAT";
|
| 58 |
+
/**
|
| 59 |
+
* Field type int64.
|
| 60 |
+
*
|
| 61 |
+
* @generated from enum value: TYPE_INT64 = 3;
|
| 62 |
+
*/
|
| 63 |
+
Field_Kind[Field_Kind["TYPE_INT64"] = 3] = "TYPE_INT64";
|
| 64 |
+
/**
|
| 65 |
+
* Field type uint64.
|
| 66 |
+
*
|
| 67 |
+
* @generated from enum value: TYPE_UINT64 = 4;
|
| 68 |
+
*/
|
| 69 |
+
Field_Kind[Field_Kind["TYPE_UINT64"] = 4] = "TYPE_UINT64";
|
| 70 |
+
/**
|
| 71 |
+
* Field type int32.
|
| 72 |
+
*
|
| 73 |
+
* @generated from enum value: TYPE_INT32 = 5;
|
| 74 |
+
*/
|
| 75 |
+
Field_Kind[Field_Kind["TYPE_INT32"] = 5] = "TYPE_INT32";
|
| 76 |
+
/**
|
| 77 |
+
* Field type fixed64.
|
| 78 |
+
*
|
| 79 |
+
* @generated from enum value: TYPE_FIXED64 = 6;
|
| 80 |
+
*/
|
| 81 |
+
Field_Kind[Field_Kind["TYPE_FIXED64"] = 6] = "TYPE_FIXED64";
|
| 82 |
+
/**
|
| 83 |
+
* Field type fixed32.
|
| 84 |
+
*
|
| 85 |
+
* @generated from enum value: TYPE_FIXED32 = 7;
|
| 86 |
+
*/
|
| 87 |
+
Field_Kind[Field_Kind["TYPE_FIXED32"] = 7] = "TYPE_FIXED32";
|
| 88 |
+
/**
|
| 89 |
+
* Field type bool.
|
| 90 |
+
*
|
| 91 |
+
* @generated from enum value: TYPE_BOOL = 8;
|
| 92 |
+
*/
|
| 93 |
+
Field_Kind[Field_Kind["TYPE_BOOL"] = 8] = "TYPE_BOOL";
|
| 94 |
+
/**
|
| 95 |
+
* Field type string.
|
| 96 |
+
*
|
| 97 |
+
* @generated from enum value: TYPE_STRING = 9;
|
| 98 |
+
*/
|
| 99 |
+
Field_Kind[Field_Kind["TYPE_STRING"] = 9] = "TYPE_STRING";
|
| 100 |
+
/**
|
| 101 |
+
* Field type group. Proto2 syntax only, and deprecated.
|
| 102 |
+
*
|
| 103 |
+
* @generated from enum value: TYPE_GROUP = 10;
|
| 104 |
+
*/
|
| 105 |
+
Field_Kind[Field_Kind["TYPE_GROUP"] = 10] = "TYPE_GROUP";
|
| 106 |
+
/**
|
| 107 |
+
* Field type message.
|
| 108 |
+
*
|
| 109 |
+
* @generated from enum value: TYPE_MESSAGE = 11;
|
| 110 |
+
*/
|
| 111 |
+
Field_Kind[Field_Kind["TYPE_MESSAGE"] = 11] = "TYPE_MESSAGE";
|
| 112 |
+
/**
|
| 113 |
+
* Field type bytes.
|
| 114 |
+
*
|
| 115 |
+
* @generated from enum value: TYPE_BYTES = 12;
|
| 116 |
+
*/
|
| 117 |
+
Field_Kind[Field_Kind["TYPE_BYTES"] = 12] = "TYPE_BYTES";
|
| 118 |
+
/**
|
| 119 |
+
* Field type uint32.
|
| 120 |
+
*
|
| 121 |
+
* @generated from enum value: TYPE_UINT32 = 13;
|
| 122 |
+
*/
|
| 123 |
+
Field_Kind[Field_Kind["TYPE_UINT32"] = 13] = "TYPE_UINT32";
|
| 124 |
+
/**
|
| 125 |
+
* Field type enum.
|
| 126 |
+
*
|
| 127 |
+
* @generated from enum value: TYPE_ENUM = 14;
|
| 128 |
+
*/
|
| 129 |
+
Field_Kind[Field_Kind["TYPE_ENUM"] = 14] = "TYPE_ENUM";
|
| 130 |
+
/**
|
| 131 |
+
* Field type sfixed32.
|
| 132 |
+
*
|
| 133 |
+
* @generated from enum value: TYPE_SFIXED32 = 15;
|
| 134 |
+
*/
|
| 135 |
+
Field_Kind[Field_Kind["TYPE_SFIXED32"] = 15] = "TYPE_SFIXED32";
|
| 136 |
+
/**
|
| 137 |
+
* Field type sfixed64.
|
| 138 |
+
*
|
| 139 |
+
* @generated from enum value: TYPE_SFIXED64 = 16;
|
| 140 |
+
*/
|
| 141 |
+
Field_Kind[Field_Kind["TYPE_SFIXED64"] = 16] = "TYPE_SFIXED64";
|
| 142 |
+
/**
|
| 143 |
+
* Field type sint32.
|
| 144 |
+
*
|
| 145 |
+
* @generated from enum value: TYPE_SINT32 = 17;
|
| 146 |
+
*/
|
| 147 |
+
Field_Kind[Field_Kind["TYPE_SINT32"] = 17] = "TYPE_SINT32";
|
| 148 |
+
/**
|
| 149 |
+
* Field type sint64.
|
| 150 |
+
*
|
| 151 |
+
* @generated from enum value: TYPE_SINT64 = 18;
|
| 152 |
+
*/
|
| 153 |
+
Field_Kind[Field_Kind["TYPE_SINT64"] = 18] = "TYPE_SINT64";
|
| 154 |
+
})(Field_Kind || (Field_Kind = {}));
|
| 155 |
+
/**
|
| 156 |
+
* Describes the enum google.protobuf.Field.Kind.
|
| 157 |
+
*/
|
| 158 |
+
export const Field_KindSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_type, 1, 0);
|
| 159 |
+
/**
|
| 160 |
+
* Whether a field is optional, required, or repeated.
|
| 161 |
+
*
|
| 162 |
+
* @generated from enum google.protobuf.Field.Cardinality
|
| 163 |
+
*/
|
| 164 |
+
export var Field_Cardinality;
|
| 165 |
+
(function (Field_Cardinality) {
|
| 166 |
+
/**
|
| 167 |
+
* For fields with unknown cardinality.
|
| 168 |
+
*
|
| 169 |
+
* @generated from enum value: CARDINALITY_UNKNOWN = 0;
|
| 170 |
+
*/
|
| 171 |
+
Field_Cardinality[Field_Cardinality["UNKNOWN"] = 0] = "UNKNOWN";
|
| 172 |
+
/**
|
| 173 |
+
* For optional fields.
|
| 174 |
+
*
|
| 175 |
+
* @generated from enum value: CARDINALITY_OPTIONAL = 1;
|
| 176 |
+
*/
|
| 177 |
+
Field_Cardinality[Field_Cardinality["OPTIONAL"] = 1] = "OPTIONAL";
|
| 178 |
+
/**
|
| 179 |
+
* For required fields. Proto2 syntax only.
|
| 180 |
+
*
|
| 181 |
+
* @generated from enum value: CARDINALITY_REQUIRED = 2;
|
| 182 |
+
*/
|
| 183 |
+
Field_Cardinality[Field_Cardinality["REQUIRED"] = 2] = "REQUIRED";
|
| 184 |
+
/**
|
| 185 |
+
* For repeated fields.
|
| 186 |
+
*
|
| 187 |
+
* @generated from enum value: CARDINALITY_REPEATED = 3;
|
| 188 |
+
*/
|
| 189 |
+
Field_Cardinality[Field_Cardinality["REPEATED"] = 3] = "REPEATED";
|
| 190 |
+
})(Field_Cardinality || (Field_Cardinality = {}));
|
| 191 |
+
/**
|
| 192 |
+
* Describes the enum google.protobuf.Field.Cardinality.
|
| 193 |
+
*/
|
| 194 |
+
export const Field_CardinalitySchema = /*@__PURE__*/ enumDesc(file_google_protobuf_type, 1, 1);
|
| 195 |
+
/**
|
| 196 |
+
* Describes the message google.protobuf.Enum.
|
| 197 |
+
* Use `create(EnumSchema)` to create a new message.
|
| 198 |
+
*/
|
| 199 |
+
export const EnumSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_type, 2);
|
| 200 |
+
/**
|
| 201 |
+
* Describes the message google.protobuf.EnumValue.
|
| 202 |
+
* Use `create(EnumValueSchema)` to create a new message.
|
| 203 |
+
*/
|
| 204 |
+
export const EnumValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_type, 3);
|
| 205 |
+
/**
|
| 206 |
+
* Describes the message google.protobuf.Option.
|
| 207 |
+
* Use `create(OptionSchema)` to create a new message.
|
| 208 |
+
*/
|
| 209 |
+
export const OptionSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_type, 4);
|
| 210 |
+
/**
|
| 211 |
+
* The syntax in which a protocol buffer element is defined.
|
| 212 |
+
*
|
| 213 |
+
* @generated from enum google.protobuf.Syntax
|
| 214 |
+
*/
|
| 215 |
+
export var Syntax;
|
| 216 |
+
(function (Syntax) {
|
| 217 |
+
/**
|
| 218 |
+
* Syntax `proto2`.
|
| 219 |
+
*
|
| 220 |
+
* @generated from enum value: SYNTAX_PROTO2 = 0;
|
| 221 |
+
*/
|
| 222 |
+
Syntax[Syntax["PROTO2"] = 0] = "PROTO2";
|
| 223 |
+
/**
|
| 224 |
+
* Syntax `proto3`.
|
| 225 |
+
*
|
| 226 |
+
* @generated from enum value: SYNTAX_PROTO3 = 1;
|
| 227 |
+
*/
|
| 228 |
+
Syntax[Syntax["PROTO3"] = 1] = "PROTO3";
|
| 229 |
+
/**
|
| 230 |
+
* Syntax `editions`.
|
| 231 |
+
*
|
| 232 |
+
* @generated from enum value: SYNTAX_EDITIONS = 2;
|
| 233 |
+
*/
|
| 234 |
+
Syntax[Syntax["EDITIONS"] = 2] = "EDITIONS";
|
| 235 |
+
})(Syntax || (Syntax = {}));
|
| 236 |
+
/**
|
| 237 |
+
* Describes the enum google.protobuf.Syntax.
|
| 238 |
+
*/
|
| 239 |
+
export const SyntaxSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_type, 0);
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts
ADDED
|
@@ -0,0 +1,330 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { GenFile, GenMessage } from "../../../../codegenv2/types.js";
|
| 2 |
+
import type { Message } from "../../../../types.js";
|
| 3 |
+
/**
|
| 4 |
+
* Describes the file google/protobuf/wrappers.proto.
|
| 5 |
+
*/
|
| 6 |
+
export declare const file_google_protobuf_wrappers: GenFile;
|
| 7 |
+
/**
|
| 8 |
+
* Wrapper message for `double`.
|
| 9 |
+
*
|
| 10 |
+
* The JSON representation for `DoubleValue` is JSON number.
|
| 11 |
+
*
|
| 12 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 13 |
+
* has no plan to be removed.
|
| 14 |
+
*
|
| 15 |
+
* @generated from message google.protobuf.DoubleValue
|
| 16 |
+
*/
|
| 17 |
+
export type DoubleValue = Message<"google.protobuf.DoubleValue"> & {
|
| 18 |
+
/**
|
| 19 |
+
* The double value.
|
| 20 |
+
*
|
| 21 |
+
* @generated from field: double value = 1;
|
| 22 |
+
*/
|
| 23 |
+
value: number;
|
| 24 |
+
};
|
| 25 |
+
/**
|
| 26 |
+
* Wrapper message for `double`.
|
| 27 |
+
*
|
| 28 |
+
* The JSON representation for `DoubleValue` is JSON number.
|
| 29 |
+
*
|
| 30 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 31 |
+
* has no plan to be removed.
|
| 32 |
+
*
|
| 33 |
+
* @generated from message google.protobuf.DoubleValue
|
| 34 |
+
*/
|
| 35 |
+
export type DoubleValueJson = number | "NaN" | "Infinity" | "-Infinity";
|
| 36 |
+
/**
|
| 37 |
+
* Describes the message google.protobuf.DoubleValue.
|
| 38 |
+
* Use `create(DoubleValueSchema)` to create a new message.
|
| 39 |
+
*/
|
| 40 |
+
export declare const DoubleValueSchema: GenMessage<DoubleValue, {
|
| 41 |
+
jsonType: DoubleValueJson;
|
| 42 |
+
}>;
|
| 43 |
+
/**
|
| 44 |
+
* Wrapper message for `float`.
|
| 45 |
+
*
|
| 46 |
+
* The JSON representation for `FloatValue` is JSON number.
|
| 47 |
+
*
|
| 48 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 49 |
+
* has no plan to be removed.
|
| 50 |
+
*
|
| 51 |
+
* @generated from message google.protobuf.FloatValue
|
| 52 |
+
*/
|
| 53 |
+
export type FloatValue = Message<"google.protobuf.FloatValue"> & {
|
| 54 |
+
/**
|
| 55 |
+
* The float value.
|
| 56 |
+
*
|
| 57 |
+
* @generated from field: float value = 1;
|
| 58 |
+
*/
|
| 59 |
+
value: number;
|
| 60 |
+
};
|
| 61 |
+
/**
|
| 62 |
+
* Wrapper message for `float`.
|
| 63 |
+
*
|
| 64 |
+
* The JSON representation for `FloatValue` is JSON number.
|
| 65 |
+
*
|
| 66 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 67 |
+
* has no plan to be removed.
|
| 68 |
+
*
|
| 69 |
+
* @generated from message google.protobuf.FloatValue
|
| 70 |
+
*/
|
| 71 |
+
export type FloatValueJson = number | "NaN" | "Infinity" | "-Infinity";
|
| 72 |
+
/**
|
| 73 |
+
* Describes the message google.protobuf.FloatValue.
|
| 74 |
+
* Use `create(FloatValueSchema)` to create a new message.
|
| 75 |
+
*/
|
| 76 |
+
export declare const FloatValueSchema: GenMessage<FloatValue, {
|
| 77 |
+
jsonType: FloatValueJson;
|
| 78 |
+
}>;
|
| 79 |
+
/**
|
| 80 |
+
* Wrapper message for `int64`.
|
| 81 |
+
*
|
| 82 |
+
* The JSON representation for `Int64Value` is JSON string.
|
| 83 |
+
*
|
| 84 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 85 |
+
* has no plan to be removed.
|
| 86 |
+
*
|
| 87 |
+
* @generated from message google.protobuf.Int64Value
|
| 88 |
+
*/
|
| 89 |
+
export type Int64Value = Message<"google.protobuf.Int64Value"> & {
|
| 90 |
+
/**
|
| 91 |
+
* The int64 value.
|
| 92 |
+
*
|
| 93 |
+
* @generated from field: int64 value = 1;
|
| 94 |
+
*/
|
| 95 |
+
value: bigint;
|
| 96 |
+
};
|
| 97 |
+
/**
|
| 98 |
+
* Wrapper message for `int64`.
|
| 99 |
+
*
|
| 100 |
+
* The JSON representation for `Int64Value` is JSON string.
|
| 101 |
+
*
|
| 102 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 103 |
+
* has no plan to be removed.
|
| 104 |
+
*
|
| 105 |
+
* @generated from message google.protobuf.Int64Value
|
| 106 |
+
*/
|
| 107 |
+
export type Int64ValueJson = string;
|
| 108 |
+
/**
|
| 109 |
+
* Describes the message google.protobuf.Int64Value.
|
| 110 |
+
* Use `create(Int64ValueSchema)` to create a new message.
|
| 111 |
+
*/
|
| 112 |
+
export declare const Int64ValueSchema: GenMessage<Int64Value, {
|
| 113 |
+
jsonType: Int64ValueJson;
|
| 114 |
+
}>;
|
| 115 |
+
/**
|
| 116 |
+
* Wrapper message for `uint64`.
|
| 117 |
+
*
|
| 118 |
+
* The JSON representation for `UInt64Value` is JSON string.
|
| 119 |
+
*
|
| 120 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 121 |
+
* has no plan to be removed.
|
| 122 |
+
*
|
| 123 |
+
* @generated from message google.protobuf.UInt64Value
|
| 124 |
+
*/
|
| 125 |
+
export type UInt64Value = Message<"google.protobuf.UInt64Value"> & {
|
| 126 |
+
/**
|
| 127 |
+
* The uint64 value.
|
| 128 |
+
*
|
| 129 |
+
* @generated from field: uint64 value = 1;
|
| 130 |
+
*/
|
| 131 |
+
value: bigint;
|
| 132 |
+
};
|
| 133 |
+
/**
|
| 134 |
+
* Wrapper message for `uint64`.
|
| 135 |
+
*
|
| 136 |
+
* The JSON representation for `UInt64Value` is JSON string.
|
| 137 |
+
*
|
| 138 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 139 |
+
* has no plan to be removed.
|
| 140 |
+
*
|
| 141 |
+
* @generated from message google.protobuf.UInt64Value
|
| 142 |
+
*/
|
| 143 |
+
export type UInt64ValueJson = string;
|
| 144 |
+
/**
|
| 145 |
+
* Describes the message google.protobuf.UInt64Value.
|
| 146 |
+
* Use `create(UInt64ValueSchema)` to create a new message.
|
| 147 |
+
*/
|
| 148 |
+
export declare const UInt64ValueSchema: GenMessage<UInt64Value, {
|
| 149 |
+
jsonType: UInt64ValueJson;
|
| 150 |
+
}>;
|
| 151 |
+
/**
|
| 152 |
+
* Wrapper message for `int32`.
|
| 153 |
+
*
|
| 154 |
+
* The JSON representation for `Int32Value` is JSON number.
|
| 155 |
+
*
|
| 156 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 157 |
+
* has no plan to be removed.
|
| 158 |
+
*
|
| 159 |
+
* @generated from message google.protobuf.Int32Value
|
| 160 |
+
*/
|
| 161 |
+
export type Int32Value = Message<"google.protobuf.Int32Value"> & {
|
| 162 |
+
/**
|
| 163 |
+
* The int32 value.
|
| 164 |
+
*
|
| 165 |
+
* @generated from field: int32 value = 1;
|
| 166 |
+
*/
|
| 167 |
+
value: number;
|
| 168 |
+
};
|
| 169 |
+
/**
|
| 170 |
+
* Wrapper message for `int32`.
|
| 171 |
+
*
|
| 172 |
+
* The JSON representation for `Int32Value` is JSON number.
|
| 173 |
+
*
|
| 174 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 175 |
+
* has no plan to be removed.
|
| 176 |
+
*
|
| 177 |
+
* @generated from message google.protobuf.Int32Value
|
| 178 |
+
*/
|
| 179 |
+
export type Int32ValueJson = number;
|
| 180 |
+
/**
|
| 181 |
+
* Describes the message google.protobuf.Int32Value.
|
| 182 |
+
* Use `create(Int32ValueSchema)` to create a new message.
|
| 183 |
+
*/
|
| 184 |
+
export declare const Int32ValueSchema: GenMessage<Int32Value, {
|
| 185 |
+
jsonType: Int32ValueJson;
|
| 186 |
+
}>;
|
| 187 |
+
/**
|
| 188 |
+
* Wrapper message for `uint32`.
|
| 189 |
+
*
|
| 190 |
+
* The JSON representation for `UInt32Value` is JSON number.
|
| 191 |
+
*
|
| 192 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 193 |
+
* has no plan to be removed.
|
| 194 |
+
*
|
| 195 |
+
* @generated from message google.protobuf.UInt32Value
|
| 196 |
+
*/
|
| 197 |
+
export type UInt32Value = Message<"google.protobuf.UInt32Value"> & {
|
| 198 |
+
/**
|
| 199 |
+
* The uint32 value.
|
| 200 |
+
*
|
| 201 |
+
* @generated from field: uint32 value = 1;
|
| 202 |
+
*/
|
| 203 |
+
value: number;
|
| 204 |
+
};
|
| 205 |
+
/**
|
| 206 |
+
* Wrapper message for `uint32`.
|
| 207 |
+
*
|
| 208 |
+
* The JSON representation for `UInt32Value` is JSON number.
|
| 209 |
+
*
|
| 210 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 211 |
+
* has no plan to be removed.
|
| 212 |
+
*
|
| 213 |
+
* @generated from message google.protobuf.UInt32Value
|
| 214 |
+
*/
|
| 215 |
+
export type UInt32ValueJson = number;
|
| 216 |
+
/**
|
| 217 |
+
* Describes the message google.protobuf.UInt32Value.
|
| 218 |
+
* Use `create(UInt32ValueSchema)` to create a new message.
|
| 219 |
+
*/
|
| 220 |
+
export declare const UInt32ValueSchema: GenMessage<UInt32Value, {
|
| 221 |
+
jsonType: UInt32ValueJson;
|
| 222 |
+
}>;
|
| 223 |
+
/**
|
| 224 |
+
* Wrapper message for `bool`.
|
| 225 |
+
*
|
| 226 |
+
* The JSON representation for `BoolValue` is JSON `true` and `false`.
|
| 227 |
+
*
|
| 228 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 229 |
+
* has no plan to be removed.
|
| 230 |
+
*
|
| 231 |
+
* @generated from message google.protobuf.BoolValue
|
| 232 |
+
*/
|
| 233 |
+
export type BoolValue = Message<"google.protobuf.BoolValue"> & {
|
| 234 |
+
/**
|
| 235 |
+
* The bool value.
|
| 236 |
+
*
|
| 237 |
+
* @generated from field: bool value = 1;
|
| 238 |
+
*/
|
| 239 |
+
value: boolean;
|
| 240 |
+
};
|
| 241 |
+
/**
|
| 242 |
+
* Wrapper message for `bool`.
|
| 243 |
+
*
|
| 244 |
+
* The JSON representation for `BoolValue` is JSON `true` and `false`.
|
| 245 |
+
*
|
| 246 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 247 |
+
* has no plan to be removed.
|
| 248 |
+
*
|
| 249 |
+
* @generated from message google.protobuf.BoolValue
|
| 250 |
+
*/
|
| 251 |
+
export type BoolValueJson = boolean;
|
| 252 |
+
/**
|
| 253 |
+
* Describes the message google.protobuf.BoolValue.
|
| 254 |
+
* Use `create(BoolValueSchema)` to create a new message.
|
| 255 |
+
*/
|
| 256 |
+
export declare const BoolValueSchema: GenMessage<BoolValue, {
|
| 257 |
+
jsonType: BoolValueJson;
|
| 258 |
+
}>;
|
| 259 |
+
/**
|
| 260 |
+
* Wrapper message for `string`.
|
| 261 |
+
*
|
| 262 |
+
* The JSON representation for `StringValue` is JSON string.
|
| 263 |
+
*
|
| 264 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 265 |
+
* has no plan to be removed.
|
| 266 |
+
*
|
| 267 |
+
* @generated from message google.protobuf.StringValue
|
| 268 |
+
*/
|
| 269 |
+
export type StringValue = Message<"google.protobuf.StringValue"> & {
|
| 270 |
+
/**
|
| 271 |
+
* The string value.
|
| 272 |
+
*
|
| 273 |
+
* @generated from field: string value = 1;
|
| 274 |
+
*/
|
| 275 |
+
value: string;
|
| 276 |
+
};
|
| 277 |
+
/**
|
| 278 |
+
* Wrapper message for `string`.
|
| 279 |
+
*
|
| 280 |
+
* The JSON representation for `StringValue` is JSON string.
|
| 281 |
+
*
|
| 282 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 283 |
+
* has no plan to be removed.
|
| 284 |
+
*
|
| 285 |
+
* @generated from message google.protobuf.StringValue
|
| 286 |
+
*/
|
| 287 |
+
export type StringValueJson = string;
|
| 288 |
+
/**
|
| 289 |
+
* Describes the message google.protobuf.StringValue.
|
| 290 |
+
* Use `create(StringValueSchema)` to create a new message.
|
| 291 |
+
*/
|
| 292 |
+
export declare const StringValueSchema: GenMessage<StringValue, {
|
| 293 |
+
jsonType: StringValueJson;
|
| 294 |
+
}>;
|
| 295 |
+
/**
|
| 296 |
+
* Wrapper message for `bytes`.
|
| 297 |
+
*
|
| 298 |
+
* The JSON representation for `BytesValue` is JSON string.
|
| 299 |
+
*
|
| 300 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 301 |
+
* has no plan to be removed.
|
| 302 |
+
*
|
| 303 |
+
* @generated from message google.protobuf.BytesValue
|
| 304 |
+
*/
|
| 305 |
+
export type BytesValue = Message<"google.protobuf.BytesValue"> & {
|
| 306 |
+
/**
|
| 307 |
+
* The bytes value.
|
| 308 |
+
*
|
| 309 |
+
* @generated from field: bytes value = 1;
|
| 310 |
+
*/
|
| 311 |
+
value: Uint8Array;
|
| 312 |
+
};
|
| 313 |
+
/**
|
| 314 |
+
* Wrapper message for `bytes`.
|
| 315 |
+
*
|
| 316 |
+
* The JSON representation for `BytesValue` is JSON string.
|
| 317 |
+
*
|
| 318 |
+
* Not recommended for use in new APIs, but still useful for legacy APIs and
|
| 319 |
+
* has no plan to be removed.
|
| 320 |
+
*
|
| 321 |
+
* @generated from message google.protobuf.BytesValue
|
| 322 |
+
*/
|
| 323 |
+
export type BytesValueJson = string;
|
| 324 |
+
/**
|
| 325 |
+
* Describes the message google.protobuf.BytesValue.
|
| 326 |
+
* Use `create(BytesValueSchema)` to create a new message.
|
| 327 |
+
*/
|
| 328 |
+
export declare const BytesValueSchema: GenMessage<BytesValue, {
|
| 329 |
+
jsonType: BytesValueJson;
|
| 330 |
+
}>;
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
import { fileDesc } from "../../../../codegenv2/file.js";
|
| 15 |
+
import { messageDesc } from "../../../../codegenv2/message.js";
|
| 16 |
+
/**
|
| 17 |
+
* Describes the file google/protobuf/wrappers.proto.
|
| 18 |
+
*/
|
| 19 |
+
export const file_google_protobuf_wrappers = /*@__PURE__*/ fileDesc("Ch5nb29nbGUvcHJvdG9idWYvd3JhcHBlcnMucHJvdG8SD2dvb2dsZS5wcm90b2J1ZiIcCgtEb3VibGVWYWx1ZRINCgV2YWx1ZRgBIAEoASIbCgpGbG9hdFZhbHVlEg0KBXZhbHVlGAEgASgCIhsKCkludDY0VmFsdWUSDQoFdmFsdWUYASABKAMiHAoLVUludDY0VmFsdWUSDQoFdmFsdWUYASABKAQiGwoKSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEoBSIcCgtVSW50MzJWYWx1ZRINCgV2YWx1ZRgBIAEoDSIaCglCb29sVmFsdWUSDQoFdmFsdWUYASABKAgiHAoLU3RyaW5nVmFsdWUSDQoFdmFsdWUYASABKAkiGwoKQnl0ZXNWYWx1ZRINCgV2YWx1ZRgBIAEoDEKDAQoTY29tLmdvb2dsZS5wcm90b2J1ZkINV3JhcHBlcnNQcm90b1ABWjFnb29nbGUuZ29sYW5nLm9yZy9wcm90b2J1Zi90eXBlcy9rbm93bi93cmFwcGVyc3Bi+AEBogIDR1BCqgIeR29vZ2xlLlByb3RvYnVmLldlbGxLbm93blR5cGVzYgZwcm90bzM");
|
| 20 |
+
/**
|
| 21 |
+
* Describes the message google.protobuf.DoubleValue.
|
| 22 |
+
* Use `create(DoubleValueSchema)` to create a new message.
|
| 23 |
+
*/
|
| 24 |
+
export const DoubleValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 0);
|
| 25 |
+
/**
|
| 26 |
+
* Describes the message google.protobuf.FloatValue.
|
| 27 |
+
* Use `create(FloatValueSchema)` to create a new message.
|
| 28 |
+
*/
|
| 29 |
+
export const FloatValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 1);
|
| 30 |
+
/**
|
| 31 |
+
* Describes the message google.protobuf.Int64Value.
|
| 32 |
+
* Use `create(Int64ValueSchema)` to create a new message.
|
| 33 |
+
*/
|
| 34 |
+
export const Int64ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 2);
|
| 35 |
+
/**
|
| 36 |
+
* Describes the message google.protobuf.UInt64Value.
|
| 37 |
+
* Use `create(UInt64ValueSchema)` to create a new message.
|
| 38 |
+
*/
|
| 39 |
+
export const UInt64ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 3);
|
| 40 |
+
/**
|
| 41 |
+
* Describes the message google.protobuf.Int32Value.
|
| 42 |
+
* Use `create(Int32ValueSchema)` to create a new message.
|
| 43 |
+
*/
|
| 44 |
+
export const Int32ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 4);
|
| 45 |
+
/**
|
| 46 |
+
* Describes the message google.protobuf.UInt32Value.
|
| 47 |
+
* Use `create(UInt32ValueSchema)` to create a new message.
|
| 48 |
+
*/
|
| 49 |
+
export const UInt32ValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 5);
|
| 50 |
+
/**
|
| 51 |
+
* Describes the message google.protobuf.BoolValue.
|
| 52 |
+
* Use `create(BoolValueSchema)` to create a new message.
|
| 53 |
+
*/
|
| 54 |
+
export const BoolValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 6);
|
| 55 |
+
/**
|
| 56 |
+
* Describes the message google.protobuf.StringValue.
|
| 57 |
+
* Use `create(StringValueSchema)` to create a new message.
|
| 58 |
+
*/
|
| 59 |
+
export const StringValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 7);
|
| 60 |
+
/**
|
| 61 |
+
* Describes the message google.protobuf.BytesValue.
|
| 62 |
+
* Use `create(BytesValueSchema)` to create a new message.
|
| 63 |
+
*/
|
| 64 |
+
export const BytesValueSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_wrappers, 8);
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export * from "./timestamp.js";
|
| 2 |
+
export * from "./any.js";
|
| 3 |
+
export * from "./wrappers.js";
|
| 4 |
+
export * from "./gen/google/protobuf/any_pb.js";
|
| 5 |
+
export * from "./gen/google/protobuf/api_pb.js";
|
| 6 |
+
export * from "./gen/google/protobuf/cpp_features_pb.js";
|
| 7 |
+
export * from "./gen/google/protobuf/descriptor_pb.js";
|
| 8 |
+
export * from "./gen/google/protobuf/duration_pb.js";
|
| 9 |
+
export * from "./gen/google/protobuf/empty_pb.js";
|
| 10 |
+
export * from "./gen/google/protobuf/field_mask_pb.js";
|
| 11 |
+
export * from "./gen/google/protobuf/go_features_pb.js";
|
| 12 |
+
export * from "./gen/google/protobuf/java_features_pb.js";
|
| 13 |
+
export * from "./gen/google/protobuf/source_context_pb.js";
|
| 14 |
+
export * from "./gen/google/protobuf/struct_pb.js";
|
| 15 |
+
export * from "./gen/google/protobuf/timestamp_pb.js";
|
| 16 |
+
export * from "./gen/google/protobuf/type_pb.js";
|
| 17 |
+
export * from "./gen/google/protobuf/wrappers_pb.js";
|
| 18 |
+
export * from "./gen/google/protobuf/compiler/plugin_pb.js";
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
export * from "./timestamp.js";
|
| 15 |
+
export * from "./any.js";
|
| 16 |
+
export * from "./wrappers.js";
|
| 17 |
+
export * from "./gen/google/protobuf/any_pb.js";
|
| 18 |
+
export * from "./gen/google/protobuf/api_pb.js";
|
| 19 |
+
export * from "./gen/google/protobuf/cpp_features_pb.js";
|
| 20 |
+
export * from "./gen/google/protobuf/descriptor_pb.js";
|
| 21 |
+
export * from "./gen/google/protobuf/duration_pb.js";
|
| 22 |
+
export * from "./gen/google/protobuf/empty_pb.js";
|
| 23 |
+
export * from "./gen/google/protobuf/field_mask_pb.js";
|
| 24 |
+
export * from "./gen/google/protobuf/go_features_pb.js";
|
| 25 |
+
export * from "./gen/google/protobuf/java_features_pb.js";
|
| 26 |
+
export * from "./gen/google/protobuf/source_context_pb.js";
|
| 27 |
+
export * from "./gen/google/protobuf/struct_pb.js";
|
| 28 |
+
export * from "./gen/google/protobuf/timestamp_pb.js";
|
| 29 |
+
export * from "./gen/google/protobuf/type_pb.js";
|
| 30 |
+
export * from "./gen/google/protobuf/wrappers_pb.js";
|
| 31 |
+
export * from "./gen/google/protobuf/compiler/plugin_pb.js";
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { Timestamp } from "./gen/google/protobuf/timestamp_pb.js";
|
| 2 |
+
/**
|
| 3 |
+
* Create a google.protobuf.Timestamp for the current time.
|
| 4 |
+
*/
|
| 5 |
+
export declare function timestampNow(): Timestamp;
|
| 6 |
+
/**
|
| 7 |
+
* Create a google.protobuf.Timestamp message from an ECMAScript Date.
|
| 8 |
+
*/
|
| 9 |
+
export declare function timestampFromDate(date: Date): Timestamp;
|
| 10 |
+
/**
|
| 11 |
+
* Convert a google.protobuf.Timestamp message to an ECMAScript Date.
|
| 12 |
+
*/
|
| 13 |
+
export declare function timestampDate(timestamp: Timestamp): Date;
|
| 14 |
+
/**
|
| 15 |
+
* Create a google.protobuf.Timestamp message from a Unix timestamp in milliseconds.
|
| 16 |
+
*/
|
| 17 |
+
export declare function timestampFromMs(timestampMs: number): Timestamp;
|
| 18 |
+
/**
|
| 19 |
+
* Convert a google.protobuf.Timestamp to a Unix timestamp in milliseconds.
|
| 20 |
+
*/
|
| 21 |
+
export declare function timestampMs(timestamp: Timestamp): number;
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
import { TimestampSchema } from "./gen/google/protobuf/timestamp_pb.js";
|
| 15 |
+
import { create } from "../create.js";
|
| 16 |
+
import { protoInt64 } from "../proto-int64.js";
|
| 17 |
+
/**
|
| 18 |
+
* Create a google.protobuf.Timestamp for the current time.
|
| 19 |
+
*/
|
| 20 |
+
export function timestampNow() {
|
| 21 |
+
return timestampFromDate(new Date());
|
| 22 |
+
}
|
| 23 |
+
/**
|
| 24 |
+
* Create a google.protobuf.Timestamp message from an ECMAScript Date.
|
| 25 |
+
*/
|
| 26 |
+
export function timestampFromDate(date) {
|
| 27 |
+
return timestampFromMs(date.getTime());
|
| 28 |
+
}
|
| 29 |
+
/**
|
| 30 |
+
* Convert a google.protobuf.Timestamp message to an ECMAScript Date.
|
| 31 |
+
*/
|
| 32 |
+
export function timestampDate(timestamp) {
|
| 33 |
+
return new Date(timestampMs(timestamp));
|
| 34 |
+
}
|
| 35 |
+
/**
|
| 36 |
+
* Create a google.protobuf.Timestamp message from a Unix timestamp in milliseconds.
|
| 37 |
+
*/
|
| 38 |
+
export function timestampFromMs(timestampMs) {
|
| 39 |
+
const seconds = Math.floor(timestampMs / 1000);
|
| 40 |
+
return create(TimestampSchema, {
|
| 41 |
+
seconds: protoInt64.parse(seconds),
|
| 42 |
+
nanos: (timestampMs - seconds * 1000) * 1000000,
|
| 43 |
+
});
|
| 44 |
+
}
|
| 45 |
+
/**
|
| 46 |
+
* Convert a google.protobuf.Timestamp to a Unix timestamp in milliseconds.
|
| 47 |
+
*/
|
| 48 |
+
export function timestampMs(timestamp) {
|
| 49 |
+
return (Number(timestamp.seconds) * 1000 + Math.round(timestamp.nanos / 1000000));
|
| 50 |
+
}
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { Message } from "../types.js";
|
| 2 |
+
import type { BoolValue, BytesValue, DoubleValue, FloatValue, Int32Value, Int64Value, StringValue, UInt32Value, UInt64Value } from "./gen/google/protobuf/wrappers_pb.js";
|
| 3 |
+
import type { DescField, DescMessage } from "../descriptors.js";
|
| 4 |
+
export declare function isWrapper(arg: Message): arg is DoubleValue | FloatValue | Int64Value | UInt64Value | Int32Value | UInt32Value | BoolValue | StringValue | BytesValue;
|
| 5 |
+
export type WktWrapperDesc = DescMessage & {
|
| 6 |
+
fields: [
|
| 7 |
+
DescField & {
|
| 8 |
+
fieldKind: "scalar";
|
| 9 |
+
number: 1;
|
| 10 |
+
name: "value";
|
| 11 |
+
oneof: undefined;
|
| 12 |
+
}
|
| 13 |
+
];
|
| 14 |
+
};
|
| 15 |
+
export declare function isWrapperDesc(messageDesc: DescMessage): messageDesc is WktWrapperDesc;
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2025 Buf Technologies, Inc.
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
export function isWrapper(arg) {
|
| 15 |
+
return isWrapperTypeName(arg.$typeName);
|
| 16 |
+
}
|
| 17 |
+
export function isWrapperDesc(messageDesc) {
|
| 18 |
+
const f = messageDesc.fields[0];
|
| 19 |
+
return (isWrapperTypeName(messageDesc.typeName) &&
|
| 20 |
+
f !== undefined &&
|
| 21 |
+
f.fieldKind == "scalar" &&
|
| 22 |
+
f.name == "value" &&
|
| 23 |
+
f.number == 1);
|
| 24 |
+
}
|
| 25 |
+
function isWrapperTypeName(name) {
|
| 26 |
+
return (name.startsWith("google.protobuf.") &&
|
| 27 |
+
[
|
| 28 |
+
"DoubleValue",
|
| 29 |
+
"FloatValue",
|
| 30 |
+
"Int64Value",
|
| 31 |
+
"UInt64Value",
|
| 32 |
+
"Int32Value",
|
| 33 |
+
"UInt32Value",
|
| 34 |
+
"BoolValue",
|
| 35 |
+
"StringValue",
|
| 36 |
+
"BytesValue",
|
| 37 |
+
].includes(name.substring(16)));
|
| 38 |
+
}
|
node_modules/.pnpm/@bufbuild+protobuf@2.7.0/node_modules/@bufbuild/protobuf/package.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@bufbuild/protobuf",
|
| 3 |
+
"version": "2.7.0",
|
| 4 |
+
"license": "(Apache-2.0 AND BSD-3-Clause)",
|
| 5 |
+
"description": "A complete implementation of Protocol Buffers in TypeScript, suitable for web browsers and Node.js.",
|
| 6 |
+
"keywords": ["protobuf", "schema", "typescript", "ecmascript"],
|
| 7 |
+
"repository": {
|
| 8 |
+
"type": "git",
|
| 9 |
+
"url": "https://github.com/bufbuild/protobuf-es.git",
|
| 10 |
+
"directory": "packages/protobuf"
|
| 11 |
+
},
|
| 12 |
+
"scripts": {
|
| 13 |
+
"prebuild": "rm -rf ./dist/*",
|
| 14 |
+
"build": "npm run build:cjs && npm run build:esm",
|
| 15 |
+
"build:cjs": "../../node_modules/typescript/bin/tsc --project tsconfig.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
|
| 16 |
+
"build:esm": "../../node_modules/typescript/bin/tsc --project tsconfig.json --outDir ./dist/esm",
|
| 17 |
+
"bootstrap": "npm run bootstrap:inject && npm run bootstrap:wkt",
|
| 18 |
+
"bootstrap:inject": "node scripts/bootstrap-inject.mjs src",
|
| 19 |
+
"bootstrap:wkt": "protoc --es_out=src/wkt/gen --es_opt=bootstrap_wkt=true,target=ts,import_extension=js,json_types=true --proto_path $(upstream-include wkt) $(upstream-files wkt)",
|
| 20 |
+
"postbootstrap:wkt": "license-header src/wkt/gen",
|
| 21 |
+
"format": "biome format --write",
|
| 22 |
+
"license-header": "license-header --ignore 'src/wire/varint.ts'",
|
| 23 |
+
"lint": "biome lint --error-on-warnings",
|
| 24 |
+
"attw": "attw --pack"
|
| 25 |
+
},
|
| 26 |
+
"type": "module",
|
| 27 |
+
"sideEffects": false,
|
| 28 |
+
"main": "./dist/cjs/index.js",
|
| 29 |
+
"exports": {
|
| 30 |
+
".": {
|
| 31 |
+
"import": "./dist/esm/index.js",
|
| 32 |
+
"require": "./dist/cjs/index.js"
|
| 33 |
+
},
|
| 34 |
+
"./codegenv1": {
|
| 35 |
+
"import": "./dist/esm/codegenv1/index.js",
|
| 36 |
+
"require": "./dist/cjs/codegenv1/index.js"
|
| 37 |
+
},
|
| 38 |
+
"./codegenv2": {
|
| 39 |
+
"import": "./dist/esm/codegenv2/index.js",
|
| 40 |
+
"require": "./dist/cjs/codegenv2/index.js"
|
| 41 |
+
},
|
| 42 |
+
"./reflect": {
|
| 43 |
+
"import": "./dist/esm/reflect/index.js",
|
| 44 |
+
"require": "./dist/cjs/reflect/index.js"
|
| 45 |
+
},
|
| 46 |
+
"./wkt": {
|
| 47 |
+
"import": "./dist/esm/wkt/index.js",
|
| 48 |
+
"require": "./dist/cjs/wkt/index.js"
|
| 49 |
+
},
|
| 50 |
+
"./wire": {
|
| 51 |
+
"import": "./dist/esm/wire/index.js",
|
| 52 |
+
"require": "./dist/cjs/wire/index.js"
|
| 53 |
+
}
|
| 54 |
+
},
|
| 55 |
+
"typesVersions": {
|
| 56 |
+
"*": {
|
| 57 |
+
"codegenv1": ["./dist/cjs/codegenv1/index.d.ts"],
|
| 58 |
+
"codegenv2": ["./dist/cjs/codegenv2/index.d.ts"],
|
| 59 |
+
"reflect": ["./dist/cjs/reflect/index.d.ts"],
|
| 60 |
+
"wkt": ["./dist/cjs/wkt/index.d.ts"],
|
| 61 |
+
"wire": ["./dist/cjs/wire/index.d.ts"]
|
| 62 |
+
}
|
| 63 |
+
},
|
| 64 |
+
"devDependencies": {
|
| 65 |
+
"upstream-protobuf": "*"
|
| 66 |
+
},
|
| 67 |
+
"files": ["dist/**"]
|
| 68 |
+
}
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @connectrpc/connect-web
|
| 2 |
+
|
| 3 |
+
Connect is a family of libraries for building and consuming APIs on different languages and platforms.
|
| 4 |
+
[@connectrpc/connect](https://www.npmjs.com/package/@connectrpc/connect) brings type-safe APIs with Protobuf to
|
| 5 |
+
TypeScript.
|
| 6 |
+
|
| 7 |
+
`@connectrpc/connect-web` provides the following adapters for web browsers, and any other platform that has
|
| 8 |
+
the fetch API on board:
|
| 9 |
+
|
| 10 |
+
### createConnectTransport()
|
| 11 |
+
|
| 12 |
+
Lets your clients running in the web browser talk to a server with the Connect protocol:
|
| 13 |
+
|
| 14 |
+
```diff
|
| 15 |
+
import { createClient } from "@connectrpc/connect";
|
| 16 |
+
+ import { createConnectTransport } from "@connectrpc/connect-web";
|
| 17 |
+
import { ElizaService } from "./gen/eliza_connect.js";
|
| 18 |
+
|
| 19 |
+
+ // A transport for clients using the Connect protocol with fetch()
|
| 20 |
+
+ const transport = createConnectTransport({
|
| 21 |
+
+ baseUrl: "https://demo.connectrpc.com",
|
| 22 |
+
+ });
|
| 23 |
+
|
| 24 |
+
const client = createClient(ElizaService, transport);
|
| 25 |
+
const { sentence } = await client.say({ sentence: "I feel happy." });
|
| 26 |
+
console.log(sentence) // you said: I feel happy.
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
### createGrpcWebTransport()
|
| 30 |
+
|
| 31 |
+
Lets your clients running in the web browser talk to a server with the gRPC-web protocol:
|
| 32 |
+
|
| 33 |
+
```diff
|
| 34 |
+
import { createClient } from "@connectrpc/connect";
|
| 35 |
+
+ import { createGrpcWebTransport } from "@connectrpc/connect-web";
|
| 36 |
+
import { ElizaService } from "./gen/eliza_connect.js";
|
| 37 |
+
|
| 38 |
+
+ // A transport for clients using the Connect protocol with fetch()
|
| 39 |
+
+ const transport = createGrpcWebTransport({
|
| 40 |
+
+ baseUrl: "https://demo.connectrpc.com",
|
| 41 |
+
+ });
|
| 42 |
+
|
| 43 |
+
const client = createClient(ElizaService, transport);
|
| 44 |
+
const { sentence } = await client.say({ sentence: "I feel happy." });
|
| 45 |
+
console.log(sentence) // you said: I feel happy.
|
| 46 |
+
```
|
| 47 |
+
|
| 48 |
+
## Getting started
|
| 49 |
+
|
| 50 |
+
To get started with Connect, head over to the [docs](https://connectrpc.com/docs/node/getting-started)
|
| 51 |
+
for a tutorial, or take a look at [our example](https://github.com/connectrpc/connect-es/tree/main/packages/example).
|
| 52 |
+
|
| 53 |
+
Connect plays nice with Vue, Svelte, Remix, Next.js, Angular and many others. Take a look at
|
| 54 |
+
[our examples](https://github.com/connectrpc/examples-es) for various frameworks.
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/assert-fetch-api.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Asserts that the fetch API is available.
|
| 3 |
+
*/
|
| 4 |
+
export declare function assertFetchApi(): void;
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/assert-fetch-api.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
// Copyright 2021-2024 The Connect Authors
|
| 3 |
+
//
|
| 4 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
// you may not use this file except in compliance with the License.
|
| 6 |
+
// You may obtain a copy of the License at
|
| 7 |
+
//
|
| 8 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
//
|
| 10 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
// See the License for the specific language governing permissions and
|
| 14 |
+
// limitations under the License.
|
| 15 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 16 |
+
exports.assertFetchApi = assertFetchApi;
|
| 17 |
+
/**
|
| 18 |
+
* Asserts that the fetch API is available.
|
| 19 |
+
*/
|
| 20 |
+
function assertFetchApi() {
|
| 21 |
+
try {
|
| 22 |
+
new Headers();
|
| 23 |
+
}
|
| 24 |
+
catch (_) {
|
| 25 |
+
throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.");
|
| 26 |
+
}
|
| 27 |
+
}
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/connect-transport.d.ts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { BinaryReadOptions, BinaryWriteOptions, JsonReadOptions, JsonWriteOptions } from "@bufbuild/protobuf";
|
| 2 |
+
import type { Interceptor, Transport } from "@connectrpc/connect";
|
| 3 |
+
/**
|
| 4 |
+
* Options used to configure the Connect transport.
|
| 5 |
+
*
|
| 6 |
+
* See createConnectTransport().
|
| 7 |
+
*/
|
| 8 |
+
export interface ConnectTransportOptions {
|
| 9 |
+
/**
|
| 10 |
+
* Base URI for all HTTP requests.
|
| 11 |
+
*
|
| 12 |
+
* Requests will be made to <baseUrl>/<package>.<service>/method
|
| 13 |
+
*
|
| 14 |
+
* Example: `baseUrl: "https://example.com/my-api"`
|
| 15 |
+
*
|
| 16 |
+
* This will make a `POST /my-api/my_package.MyService/Foo` to
|
| 17 |
+
* `example.com` via HTTPS.
|
| 18 |
+
*
|
| 19 |
+
* If your API is served from the same domain as your site, use
|
| 20 |
+
* `baseUrl: window.location.origin` or simply "/".
|
| 21 |
+
*/
|
| 22 |
+
baseUrl: string;
|
| 23 |
+
/**
|
| 24 |
+
* By default, connect-web clients use the JSON format.
|
| 25 |
+
*/
|
| 26 |
+
useBinaryFormat?: boolean;
|
| 27 |
+
/**
|
| 28 |
+
* Interceptors that should be applied to all calls running through
|
| 29 |
+
* this transport. See the Interceptor type for details.
|
| 30 |
+
*/
|
| 31 |
+
interceptors?: Interceptor[];
|
| 32 |
+
/**
|
| 33 |
+
* Options for the JSON format.
|
| 34 |
+
* By default, unknown fields are ignored.
|
| 35 |
+
*/
|
| 36 |
+
jsonOptions?: Partial<JsonReadOptions & JsonWriteOptions>;
|
| 37 |
+
/**
|
| 38 |
+
* Options for the binary wire format.
|
| 39 |
+
*/
|
| 40 |
+
binaryOptions?: Partial<BinaryReadOptions & BinaryWriteOptions>;
|
| 41 |
+
/**
|
| 42 |
+
* Optional override of the fetch implementation used by the transport.
|
| 43 |
+
*
|
| 44 |
+
* This option can be used to set fetch options such as "credentials".
|
| 45 |
+
*/
|
| 46 |
+
fetch?: typeof globalThis.fetch;
|
| 47 |
+
/**
|
| 48 |
+
* Controls whether or not Connect GET requests should be used when
|
| 49 |
+
* available, on side-effect free methods. Defaults to false.
|
| 50 |
+
*/
|
| 51 |
+
useHttpGet?: boolean;
|
| 52 |
+
/**
|
| 53 |
+
* The timeout in milliseconds to apply to all requests.
|
| 54 |
+
*
|
| 55 |
+
* This can be overridden on a per-request basis by passing a timeoutMs.
|
| 56 |
+
*/
|
| 57 |
+
defaultTimeoutMs?: number;
|
| 58 |
+
}
|
| 59 |
+
/**
|
| 60 |
+
* Create a Transport for the Connect protocol, which makes unary and
|
| 61 |
+
* server-streaming methods available to web browsers. It uses the fetch
|
| 62 |
+
* API to make HTTP requests.
|
| 63 |
+
*/
|
| 64 |
+
export declare function createConnectTransport(options: ConnectTransportOptions): Transport;
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/connect-transport.js
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
// Copyright 2021-2024 The Connect Authors
|
| 3 |
+
//
|
| 4 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
// you may not use this file except in compliance with the License.
|
| 6 |
+
// You may obtain a copy of the License at
|
| 7 |
+
//
|
| 8 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
//
|
| 10 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
// See the License for the specific language governing permissions and
|
| 14 |
+
// limitations under the License.
|
| 15 |
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
| 16 |
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
| 17 |
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
| 18 |
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
| 19 |
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
| 20 |
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
| 21 |
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
| 22 |
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
| 23 |
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
| 24 |
+
function fulfill(value) { resume("next", value); }
|
| 25 |
+
function reject(value) { resume("throw", value); }
|
| 26 |
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
| 27 |
+
};
|
| 28 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 29 |
+
exports.createConnectTransport = createConnectTransport;
|
| 30 |
+
const protobuf_1 = require("@bufbuild/protobuf");
|
| 31 |
+
const connect_1 = require("@connectrpc/connect");
|
| 32 |
+
const protocol_1 = require("@connectrpc/connect/protocol");
|
| 33 |
+
const protocol_connect_1 = require("@connectrpc/connect/protocol-connect");
|
| 34 |
+
const assert_fetch_api_js_1 = require("./assert-fetch-api.js");
|
| 35 |
+
const wkt_1 = require("@bufbuild/protobuf/wkt");
|
| 36 |
+
const fetchOptions = {
|
| 37 |
+
redirect: "error",
|
| 38 |
+
};
|
| 39 |
+
/**
|
| 40 |
+
* Create a Transport for the Connect protocol, which makes unary and
|
| 41 |
+
* server-streaming methods available to web browsers. It uses the fetch
|
| 42 |
+
* API to make HTTP requests.
|
| 43 |
+
*/
|
| 44 |
+
function createConnectTransport(options) {
|
| 45 |
+
var _a;
|
| 46 |
+
(0, assert_fetch_api_js_1.assertFetchApi)();
|
| 47 |
+
const useBinaryFormat = (_a = options.useBinaryFormat) !== null && _a !== void 0 ? _a : false;
|
| 48 |
+
return {
|
| 49 |
+
async unary(method, signal, timeoutMs, header, message, contextValues) {
|
| 50 |
+
const { serialize, parse } = (0, protocol_1.createClientMethodSerializers)(method, useBinaryFormat, options.jsonOptions, options.binaryOptions);
|
| 51 |
+
timeoutMs =
|
| 52 |
+
timeoutMs === undefined
|
| 53 |
+
? options.defaultTimeoutMs
|
| 54 |
+
: timeoutMs <= 0
|
| 55 |
+
? undefined
|
| 56 |
+
: timeoutMs;
|
| 57 |
+
return await (0, protocol_1.runUnaryCall)({
|
| 58 |
+
interceptors: options.interceptors,
|
| 59 |
+
signal,
|
| 60 |
+
timeoutMs,
|
| 61 |
+
req: {
|
| 62 |
+
stream: false,
|
| 63 |
+
service: method.parent,
|
| 64 |
+
method,
|
| 65 |
+
requestMethod: "POST",
|
| 66 |
+
url: (0, protocol_1.createMethodUrl)(options.baseUrl, method),
|
| 67 |
+
header: (0, protocol_connect_1.requestHeader)(method.methodKind, useBinaryFormat, timeoutMs, header, false),
|
| 68 |
+
contextValues: contextValues !== null && contextValues !== void 0 ? contextValues : (0, connect_1.createContextValues)(),
|
| 69 |
+
message,
|
| 70 |
+
},
|
| 71 |
+
next: async (req) => {
|
| 72 |
+
var _a;
|
| 73 |
+
const useGet = options.useHttpGet === true &&
|
| 74 |
+
method.idempotency ===
|
| 75 |
+
wkt_1.MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS;
|
| 76 |
+
let body = null;
|
| 77 |
+
if (useGet) {
|
| 78 |
+
req = (0, protocol_connect_1.transformConnectPostToGetRequest)(req, serialize(req.message), useBinaryFormat);
|
| 79 |
+
}
|
| 80 |
+
else {
|
| 81 |
+
body = serialize(req.message);
|
| 82 |
+
}
|
| 83 |
+
const fetch = (_a = options.fetch) !== null && _a !== void 0 ? _a : globalThis.fetch;
|
| 84 |
+
const response = await fetch(req.url, Object.assign(Object.assign({}, fetchOptions), { method: req.requestMethod, headers: req.header, signal: req.signal, body }));
|
| 85 |
+
const { isUnaryError, unaryError } = (0, protocol_connect_1.validateResponse)(method.methodKind, useBinaryFormat, response.status, response.headers);
|
| 86 |
+
if (isUnaryError) {
|
| 87 |
+
throw (0, protocol_connect_1.errorFromJson)((await response.json()), (0, connect_1.appendHeaders)(...(0, protocol_connect_1.trailerDemux)(response.headers)), unaryError);
|
| 88 |
+
}
|
| 89 |
+
const [demuxedHeader, demuxedTrailer] = (0, protocol_connect_1.trailerDemux)(response.headers);
|
| 90 |
+
return {
|
| 91 |
+
stream: false,
|
| 92 |
+
service: method.parent,
|
| 93 |
+
method,
|
| 94 |
+
header: demuxedHeader,
|
| 95 |
+
message: useBinaryFormat
|
| 96 |
+
? parse(new Uint8Array(await response.arrayBuffer()))
|
| 97 |
+
: (0, protobuf_1.fromJson)(method.output, (await response.json()), (0, protocol_1.getJsonOptions)(options.jsonOptions)),
|
| 98 |
+
trailer: demuxedTrailer,
|
| 99 |
+
};
|
| 100 |
+
},
|
| 101 |
+
});
|
| 102 |
+
},
|
| 103 |
+
async stream(method, signal, timeoutMs, header, input, contextValues) {
|
| 104 |
+
const { serialize, parse } = (0, protocol_1.createClientMethodSerializers)(method, useBinaryFormat, options.jsonOptions, options.binaryOptions);
|
| 105 |
+
function parseResponseBody(body, trailerTarget, header, signal) {
|
| 106 |
+
return __asyncGenerator(this, arguments, function* parseResponseBody_1() {
|
| 107 |
+
const reader = (0, protocol_1.createEnvelopeReadableStream)(body).getReader();
|
| 108 |
+
let endStreamReceived = false;
|
| 109 |
+
for (;;) {
|
| 110 |
+
const result = yield __await(reader.read());
|
| 111 |
+
if (result.done) {
|
| 112 |
+
break;
|
| 113 |
+
}
|
| 114 |
+
const { flags, data } = result.value;
|
| 115 |
+
if ((flags & protocol_1.compressedFlag) === protocol_1.compressedFlag) {
|
| 116 |
+
throw new connect_1.ConnectError(`protocol error: received unsupported compressed output`, connect_1.Code.Internal);
|
| 117 |
+
}
|
| 118 |
+
if ((flags & protocol_connect_1.endStreamFlag) === protocol_connect_1.endStreamFlag) {
|
| 119 |
+
endStreamReceived = true;
|
| 120 |
+
const endStream = (0, protocol_connect_1.endStreamFromJson)(data);
|
| 121 |
+
if (endStream.error) {
|
| 122 |
+
const error = endStream.error;
|
| 123 |
+
header.forEach((value, key) => {
|
| 124 |
+
error.metadata.append(key, value);
|
| 125 |
+
});
|
| 126 |
+
throw error;
|
| 127 |
+
}
|
| 128 |
+
endStream.metadata.forEach((value, key) => trailerTarget.set(key, value));
|
| 129 |
+
continue;
|
| 130 |
+
}
|
| 131 |
+
yield yield __await(parse(data));
|
| 132 |
+
}
|
| 133 |
+
// Node wil not throw an AbortError on `read` if the
|
| 134 |
+
// signal is aborted before `getReader` is called.
|
| 135 |
+
// As a work around we check at the end and throw.
|
| 136 |
+
//
|
| 137 |
+
// Ref: https://github.com/nodejs/undici/issues/1940
|
| 138 |
+
if ("throwIfAborted" in signal) {
|
| 139 |
+
// We assume that implementations without `throwIfAborted` (old
|
| 140 |
+
// browsers) do honor aborted signals on `read`.
|
| 141 |
+
signal.throwIfAborted();
|
| 142 |
+
}
|
| 143 |
+
if (!endStreamReceived) {
|
| 144 |
+
throw "missing EndStreamResponse";
|
| 145 |
+
}
|
| 146 |
+
});
|
| 147 |
+
}
|
| 148 |
+
async function createRequestBody(input) {
|
| 149 |
+
if (method.methodKind != "server_streaming") {
|
| 150 |
+
throw "The fetch API does not support streaming request bodies";
|
| 151 |
+
}
|
| 152 |
+
const r = await input[Symbol.asyncIterator]().next();
|
| 153 |
+
if (r.done == true) {
|
| 154 |
+
throw "missing request message";
|
| 155 |
+
}
|
| 156 |
+
return (0, protocol_1.encodeEnvelope)(0, serialize(r.value));
|
| 157 |
+
}
|
| 158 |
+
timeoutMs =
|
| 159 |
+
timeoutMs === undefined
|
| 160 |
+
? options.defaultTimeoutMs
|
| 161 |
+
: timeoutMs <= 0
|
| 162 |
+
? undefined
|
| 163 |
+
: timeoutMs;
|
| 164 |
+
return await (0, protocol_1.runStreamingCall)({
|
| 165 |
+
interceptors: options.interceptors,
|
| 166 |
+
timeoutMs,
|
| 167 |
+
signal,
|
| 168 |
+
req: {
|
| 169 |
+
stream: true,
|
| 170 |
+
service: method.parent,
|
| 171 |
+
method,
|
| 172 |
+
requestMethod: "POST",
|
| 173 |
+
url: (0, protocol_1.createMethodUrl)(options.baseUrl, method),
|
| 174 |
+
header: (0, protocol_connect_1.requestHeader)(method.methodKind, useBinaryFormat, timeoutMs, header, false),
|
| 175 |
+
contextValues: contextValues !== null && contextValues !== void 0 ? contextValues : (0, connect_1.createContextValues)(),
|
| 176 |
+
message: input,
|
| 177 |
+
},
|
| 178 |
+
next: async (req) => {
|
| 179 |
+
var _a;
|
| 180 |
+
const fetch = (_a = options.fetch) !== null && _a !== void 0 ? _a : globalThis.fetch;
|
| 181 |
+
const fRes = await fetch(req.url, Object.assign(Object.assign({}, fetchOptions), { method: req.requestMethod, headers: req.header, signal: req.signal, body: await createRequestBody(req.message) }));
|
| 182 |
+
(0, protocol_connect_1.validateResponse)(method.methodKind, useBinaryFormat, fRes.status, fRes.headers);
|
| 183 |
+
if (fRes.body === null) {
|
| 184 |
+
throw "missing response body";
|
| 185 |
+
}
|
| 186 |
+
const trailer = new Headers();
|
| 187 |
+
const res = Object.assign(Object.assign({}, req), { header: fRes.headers, trailer, message: parseResponseBody(fRes.body, trailer, fRes.headers, req.signal) });
|
| 188 |
+
return res;
|
| 189 |
+
},
|
| 190 |
+
});
|
| 191 |
+
},
|
| 192 |
+
};
|
| 193 |
+
}
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/grpc-web-transport.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { BinaryReadOptions, BinaryWriteOptions, JsonReadOptions, JsonWriteOptions } from "@bufbuild/protobuf";
|
| 2 |
+
import type { Interceptor, Transport } from "@connectrpc/connect";
|
| 3 |
+
/**
|
| 4 |
+
* Options used to configure the gRPC-web transport.
|
| 5 |
+
*
|
| 6 |
+
* See createGrpcWebTransport().
|
| 7 |
+
*/
|
| 8 |
+
export interface GrpcWebTransportOptions {
|
| 9 |
+
/**
|
| 10 |
+
* Base URI for all HTTP requests.
|
| 11 |
+
*
|
| 12 |
+
* Requests will be made to <baseUrl>/<package>.<service>/method
|
| 13 |
+
*
|
| 14 |
+
* Example: `baseUrl: "https://example.com/my-api"`
|
| 15 |
+
*
|
| 16 |
+
* This will make a `POST /my-api/my_package.MyService/Foo` to
|
| 17 |
+
* `example.com` via HTTPS.
|
| 18 |
+
*
|
| 19 |
+
* If your API is served from the same domain as your site, use
|
| 20 |
+
* `baseUrl: window.location.origin` or simply "/".
|
| 21 |
+
*/
|
| 22 |
+
baseUrl: string;
|
| 23 |
+
/**
|
| 24 |
+
* By default, clients use the binary format for gRPC-web, because
|
| 25 |
+
* not all gRPC-web implementations support JSON.
|
| 26 |
+
*/
|
| 27 |
+
useBinaryFormat?: boolean;
|
| 28 |
+
/**
|
| 29 |
+
* Interceptors that should be applied to all calls running through
|
| 30 |
+
* this transport. See the Interceptor type for details.
|
| 31 |
+
*/
|
| 32 |
+
interceptors?: Interceptor[];
|
| 33 |
+
/**
|
| 34 |
+
* Options for the JSON format.
|
| 35 |
+
* By default, unknown fields are ignored.
|
| 36 |
+
*/
|
| 37 |
+
jsonOptions?: Partial<JsonReadOptions & JsonWriteOptions>;
|
| 38 |
+
/**
|
| 39 |
+
* Options for the binary wire format.
|
| 40 |
+
*/
|
| 41 |
+
binaryOptions?: Partial<BinaryReadOptions & BinaryWriteOptions>;
|
| 42 |
+
/**
|
| 43 |
+
* Optional override of the fetch implementation used by the transport.
|
| 44 |
+
*
|
| 45 |
+
* This option can be used to set fetch options such as "credentials".
|
| 46 |
+
*/
|
| 47 |
+
fetch?: typeof globalThis.fetch;
|
| 48 |
+
/**
|
| 49 |
+
* The timeout in milliseconds to apply to all requests.
|
| 50 |
+
*
|
| 51 |
+
* This can be overridden on a per-request basis by passing a timeoutMs.
|
| 52 |
+
*/
|
| 53 |
+
defaultTimeoutMs?: number;
|
| 54 |
+
}
|
| 55 |
+
/**
|
| 56 |
+
* Create a Transport for the gRPC-web protocol. The protocol encodes
|
| 57 |
+
* trailers in the response body and makes unary and server-streaming
|
| 58 |
+
* methods available to web browsers. It uses the fetch API to make
|
| 59 |
+
* HTTP requests.
|
| 60 |
+
*
|
| 61 |
+
* Note that this transport does not implement the grpc-web-text format,
|
| 62 |
+
* which applies base64 encoding to the request and response bodies to
|
| 63 |
+
* support reading streaming responses from an XMLHttpRequest.
|
| 64 |
+
*/
|
| 65 |
+
export declare function createGrpcWebTransport(options: GrpcWebTransportOptions): Transport;
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/grpc-web-transport.js
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
// Copyright 2021-2024 The Connect Authors
|
| 3 |
+
//
|
| 4 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
// you may not use this file except in compliance with the License.
|
| 6 |
+
// You may obtain a copy of the License at
|
| 7 |
+
//
|
| 8 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
//
|
| 10 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
// See the License for the specific language governing permissions and
|
| 14 |
+
// limitations under the License.
|
| 15 |
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
| 16 |
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
| 17 |
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
| 18 |
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
| 19 |
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
| 20 |
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
| 21 |
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
| 22 |
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
| 23 |
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
| 24 |
+
function fulfill(value) { resume("next", value); }
|
| 25 |
+
function reject(value) { resume("throw", value); }
|
| 26 |
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
| 27 |
+
};
|
| 28 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 29 |
+
exports.createGrpcWebTransport = createGrpcWebTransport;
|
| 30 |
+
const connect_1 = require("@connectrpc/connect");
|
| 31 |
+
const protocol_1 = require("@connectrpc/connect/protocol");
|
| 32 |
+
const protocol_grpc_web_1 = require("@connectrpc/connect/protocol-grpc-web");
|
| 33 |
+
const assert_fetch_api_js_1 = require("./assert-fetch-api.js");
|
| 34 |
+
const fetchOptions = {
|
| 35 |
+
redirect: "error",
|
| 36 |
+
};
|
| 37 |
+
/**
|
| 38 |
+
* Create a Transport for the gRPC-web protocol. The protocol encodes
|
| 39 |
+
* trailers in the response body and makes unary and server-streaming
|
| 40 |
+
* methods available to web browsers. It uses the fetch API to make
|
| 41 |
+
* HTTP requests.
|
| 42 |
+
*
|
| 43 |
+
* Note that this transport does not implement the grpc-web-text format,
|
| 44 |
+
* which applies base64 encoding to the request and response bodies to
|
| 45 |
+
* support reading streaming responses from an XMLHttpRequest.
|
| 46 |
+
*/
|
| 47 |
+
function createGrpcWebTransport(options) {
|
| 48 |
+
var _a;
|
| 49 |
+
(0, assert_fetch_api_js_1.assertFetchApi)();
|
| 50 |
+
const useBinaryFormat = (_a = options.useBinaryFormat) !== null && _a !== void 0 ? _a : true;
|
| 51 |
+
return {
|
| 52 |
+
async unary(method, signal, timeoutMs, header, message, contextValues) {
|
| 53 |
+
const { serialize, parse } = (0, protocol_1.createClientMethodSerializers)(method, useBinaryFormat, options.jsonOptions, options.binaryOptions);
|
| 54 |
+
timeoutMs =
|
| 55 |
+
timeoutMs === undefined
|
| 56 |
+
? options.defaultTimeoutMs
|
| 57 |
+
: timeoutMs <= 0
|
| 58 |
+
? undefined
|
| 59 |
+
: timeoutMs;
|
| 60 |
+
return await (0, protocol_1.runUnaryCall)({
|
| 61 |
+
interceptors: options.interceptors,
|
| 62 |
+
signal,
|
| 63 |
+
timeoutMs,
|
| 64 |
+
req: {
|
| 65 |
+
stream: false,
|
| 66 |
+
service: method.parent,
|
| 67 |
+
method,
|
| 68 |
+
requestMethod: "POST",
|
| 69 |
+
url: (0, protocol_1.createMethodUrl)(options.baseUrl, method),
|
| 70 |
+
header: (0, protocol_grpc_web_1.requestHeader)(useBinaryFormat, timeoutMs, header, false),
|
| 71 |
+
contextValues: contextValues !== null && contextValues !== void 0 ? contextValues : (0, connect_1.createContextValues)(),
|
| 72 |
+
message,
|
| 73 |
+
},
|
| 74 |
+
next: async (req) => {
|
| 75 |
+
var _a;
|
| 76 |
+
const fetch = (_a = options.fetch) !== null && _a !== void 0 ? _a : globalThis.fetch;
|
| 77 |
+
const response = await fetch(req.url, Object.assign(Object.assign({}, fetchOptions), { method: req.requestMethod, headers: req.header, signal: req.signal, body: (0, protocol_1.encodeEnvelope)(0, serialize(req.message)) }));
|
| 78 |
+
const { headerError } = (0, protocol_grpc_web_1.validateResponse)(response.status, response.headers);
|
| 79 |
+
if (!response.body) {
|
| 80 |
+
if (headerError !== undefined)
|
| 81 |
+
throw headerError;
|
| 82 |
+
throw "missing response body";
|
| 83 |
+
}
|
| 84 |
+
const reader = (0, protocol_1.createEnvelopeReadableStream)(response.body).getReader();
|
| 85 |
+
let trailer;
|
| 86 |
+
let message;
|
| 87 |
+
for (;;) {
|
| 88 |
+
const r = await reader.read();
|
| 89 |
+
if (r.done) {
|
| 90 |
+
break;
|
| 91 |
+
}
|
| 92 |
+
const { flags, data } = r.value;
|
| 93 |
+
if ((flags & protocol_1.compressedFlag) === protocol_1.compressedFlag) {
|
| 94 |
+
throw new connect_1.ConnectError(`protocol error: received unsupported compressed output`, connect_1.Code.Internal);
|
| 95 |
+
}
|
| 96 |
+
if (flags === protocol_grpc_web_1.trailerFlag) {
|
| 97 |
+
if (trailer !== undefined) {
|
| 98 |
+
throw "extra trailer";
|
| 99 |
+
}
|
| 100 |
+
// Unary responses require exactly one response message, but in
|
| 101 |
+
// case of an error, it is perfectly valid to have a response body
|
| 102 |
+
// that only contains error trailers.
|
| 103 |
+
trailer = (0, protocol_grpc_web_1.trailerParse)(data);
|
| 104 |
+
continue;
|
| 105 |
+
}
|
| 106 |
+
if (message !== undefined) {
|
| 107 |
+
throw new connect_1.ConnectError("extra message", connect_1.Code.Unimplemented);
|
| 108 |
+
}
|
| 109 |
+
message = parse(data);
|
| 110 |
+
}
|
| 111 |
+
if (trailer === undefined) {
|
| 112 |
+
if (headerError !== undefined)
|
| 113 |
+
throw headerError;
|
| 114 |
+
throw new connect_1.ConnectError("missing trailer", response.headers.has(protocol_grpc_web_1.headerGrpcStatus)
|
| 115 |
+
? connect_1.Code.Unimplemented
|
| 116 |
+
: connect_1.Code.Unknown);
|
| 117 |
+
}
|
| 118 |
+
(0, protocol_grpc_web_1.validateTrailer)(trailer, response.headers);
|
| 119 |
+
if (message === undefined) {
|
| 120 |
+
throw new connect_1.ConnectError("missing message", trailer.has(protocol_grpc_web_1.headerGrpcStatus) ? connect_1.Code.Unimplemented : connect_1.Code.Unknown);
|
| 121 |
+
}
|
| 122 |
+
return {
|
| 123 |
+
stream: false,
|
| 124 |
+
service: method.parent,
|
| 125 |
+
method,
|
| 126 |
+
header: response.headers,
|
| 127 |
+
message,
|
| 128 |
+
trailer,
|
| 129 |
+
};
|
| 130 |
+
},
|
| 131 |
+
});
|
| 132 |
+
},
|
| 133 |
+
async stream(method, signal, timeoutMs, header, input, contextValues) {
|
| 134 |
+
const { serialize, parse } = (0, protocol_1.createClientMethodSerializers)(method, useBinaryFormat, options.jsonOptions, options.binaryOptions);
|
| 135 |
+
function parseResponseBody(body, foundStatus, trailerTarget, header, signal) {
|
| 136 |
+
return __asyncGenerator(this, arguments, function* parseResponseBody_1() {
|
| 137 |
+
const reader = (0, protocol_1.createEnvelopeReadableStream)(body).getReader();
|
| 138 |
+
if (foundStatus) {
|
| 139 |
+
// A grpc-status: 0 response header was present. This is a "trailers-only"
|
| 140 |
+
// response (a response without a body and no trailers).
|
| 141 |
+
//
|
| 142 |
+
// The spec seems to disallow a trailers-only response for status 0 - we are
|
| 143 |
+
// lenient and only verify that the body is empty.
|
| 144 |
+
//
|
| 145 |
+
// > [...] Trailers-Only is permitted for calls that produce an immediate error.
|
| 146 |
+
// See https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md
|
| 147 |
+
if (!(yield __await(reader.read())).done) {
|
| 148 |
+
throw "extra data for trailers-only";
|
| 149 |
+
}
|
| 150 |
+
return yield __await(void 0);
|
| 151 |
+
}
|
| 152 |
+
let trailerReceived = false;
|
| 153 |
+
for (;;) {
|
| 154 |
+
const result = yield __await(reader.read());
|
| 155 |
+
if (result.done) {
|
| 156 |
+
break;
|
| 157 |
+
}
|
| 158 |
+
const { flags, data } = result.value;
|
| 159 |
+
if ((flags & protocol_grpc_web_1.trailerFlag) === protocol_grpc_web_1.trailerFlag) {
|
| 160 |
+
if (trailerReceived) {
|
| 161 |
+
throw "extra trailer";
|
| 162 |
+
}
|
| 163 |
+
trailerReceived = true;
|
| 164 |
+
const trailer = (0, protocol_grpc_web_1.trailerParse)(data);
|
| 165 |
+
(0, protocol_grpc_web_1.validateTrailer)(trailer, header);
|
| 166 |
+
trailer.forEach((value, key) => trailerTarget.set(key, value));
|
| 167 |
+
continue;
|
| 168 |
+
}
|
| 169 |
+
if (trailerReceived) {
|
| 170 |
+
throw "extra message";
|
| 171 |
+
}
|
| 172 |
+
yield yield __await(parse(data));
|
| 173 |
+
}
|
| 174 |
+
// Node wil not throw an AbortError on `read` if the
|
| 175 |
+
// signal is aborted before `getReader` is called.
|
| 176 |
+
// As a work around we check at the end and throw.
|
| 177 |
+
//
|
| 178 |
+
// Ref: https://github.com/nodejs/undici/issues/1940
|
| 179 |
+
if ("throwIfAborted" in signal) {
|
| 180 |
+
// We assume that implementations without `throwIfAborted` (old
|
| 181 |
+
// browsers) do honor aborted signals on `read`.
|
| 182 |
+
signal.throwIfAborted();
|
| 183 |
+
}
|
| 184 |
+
if (!trailerReceived) {
|
| 185 |
+
throw "missing trailer";
|
| 186 |
+
}
|
| 187 |
+
});
|
| 188 |
+
}
|
| 189 |
+
async function createRequestBody(input) {
|
| 190 |
+
if (method.methodKind != "server_streaming") {
|
| 191 |
+
throw "The fetch API does not support streaming request bodies";
|
| 192 |
+
}
|
| 193 |
+
const r = await input[Symbol.asyncIterator]().next();
|
| 194 |
+
if (r.done == true) {
|
| 195 |
+
throw "missing request message";
|
| 196 |
+
}
|
| 197 |
+
return (0, protocol_1.encodeEnvelope)(0, serialize(r.value));
|
| 198 |
+
}
|
| 199 |
+
timeoutMs =
|
| 200 |
+
timeoutMs === undefined
|
| 201 |
+
? options.defaultTimeoutMs
|
| 202 |
+
: timeoutMs <= 0
|
| 203 |
+
? undefined
|
| 204 |
+
: timeoutMs;
|
| 205 |
+
return (0, protocol_1.runStreamingCall)({
|
| 206 |
+
interceptors: options.interceptors,
|
| 207 |
+
signal,
|
| 208 |
+
timeoutMs,
|
| 209 |
+
req: {
|
| 210 |
+
stream: true,
|
| 211 |
+
service: method.parent,
|
| 212 |
+
method,
|
| 213 |
+
requestMethod: "POST",
|
| 214 |
+
url: (0, protocol_1.createMethodUrl)(options.baseUrl, method),
|
| 215 |
+
header: (0, protocol_grpc_web_1.requestHeader)(useBinaryFormat, timeoutMs, header, false),
|
| 216 |
+
contextValues: contextValues !== null && contextValues !== void 0 ? contextValues : (0, connect_1.createContextValues)(),
|
| 217 |
+
message: input,
|
| 218 |
+
},
|
| 219 |
+
next: async (req) => {
|
| 220 |
+
var _a;
|
| 221 |
+
const fetch = (_a = options.fetch) !== null && _a !== void 0 ? _a : globalThis.fetch;
|
| 222 |
+
const fRes = await fetch(req.url, Object.assign(Object.assign({}, fetchOptions), { method: req.requestMethod, headers: req.header, signal: req.signal, body: await createRequestBody(req.message) }));
|
| 223 |
+
const { foundStatus, headerError } = (0, protocol_grpc_web_1.validateResponse)(fRes.status, fRes.headers);
|
| 224 |
+
if (headerError != undefined) {
|
| 225 |
+
throw headerError;
|
| 226 |
+
}
|
| 227 |
+
if (!fRes.body) {
|
| 228 |
+
throw "missing response body";
|
| 229 |
+
}
|
| 230 |
+
const trailer = new Headers();
|
| 231 |
+
const res = Object.assign(Object.assign({}, req), { header: fRes.headers, trailer, message: parseResponseBody(fRes.body, foundStatus, trailer, fRes.headers, req.signal) });
|
| 232 |
+
return res;
|
| 233 |
+
},
|
| 234 |
+
});
|
| 235 |
+
},
|
| 236 |
+
};
|
| 237 |
+
}
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export { createConnectTransport } from "./connect-transport.js";
|
| 2 |
+
export { createGrpcWebTransport } from "./grpc-web-transport.js";
|
| 3 |
+
export type { ConnectTransportOptions } from "./connect-transport.js";
|
| 4 |
+
export type { GrpcWebTransportOptions } from "./grpc-web-transport.js";
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/index.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
// Copyright 2021-2024 The Connect Authors
|
| 3 |
+
//
|
| 4 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
// you may not use this file except in compliance with the License.
|
| 6 |
+
// You may obtain a copy of the License at
|
| 7 |
+
//
|
| 8 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
//
|
| 10 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
// See the License for the specific language governing permissions and
|
| 14 |
+
// limitations under the License.
|
| 15 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 16 |
+
exports.createGrpcWebTransport = exports.createConnectTransport = void 0;
|
| 17 |
+
var connect_transport_js_1 = require("./connect-transport.js");
|
| 18 |
+
Object.defineProperty(exports, "createConnectTransport", { enumerable: true, get: function () { return connect_transport_js_1.createConnectTransport; } });
|
| 19 |
+
var grpc_web_transport_js_1 = require("./grpc-web-transport.js");
|
| 20 |
+
Object.defineProperty(exports, "createGrpcWebTransport", { enumerable: true, get: function () { return grpc_web_transport_js_1.createGrpcWebTransport; } });
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/cjs/package.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"type":"commonjs"}
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/assert-fetch-api.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/**
|
| 2 |
+
* Asserts that the fetch API is available.
|
| 3 |
+
*/
|
| 4 |
+
export declare function assertFetchApi(): void;
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/assert-fetch-api.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2024 The Connect Authors
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
/**
|
| 15 |
+
* Asserts that the fetch API is available.
|
| 16 |
+
*/
|
| 17 |
+
export function assertFetchApi() {
|
| 18 |
+
try {
|
| 19 |
+
new Headers();
|
| 20 |
+
}
|
| 21 |
+
catch (_) {
|
| 22 |
+
throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.");
|
| 23 |
+
}
|
| 24 |
+
}
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/connect-transport.d.ts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { BinaryReadOptions, BinaryWriteOptions, JsonReadOptions, JsonWriteOptions } from "@bufbuild/protobuf";
|
| 2 |
+
import type { Interceptor, Transport } from "@connectrpc/connect";
|
| 3 |
+
/**
|
| 4 |
+
* Options used to configure the Connect transport.
|
| 5 |
+
*
|
| 6 |
+
* See createConnectTransport().
|
| 7 |
+
*/
|
| 8 |
+
export interface ConnectTransportOptions {
|
| 9 |
+
/**
|
| 10 |
+
* Base URI for all HTTP requests.
|
| 11 |
+
*
|
| 12 |
+
* Requests will be made to <baseUrl>/<package>.<service>/method
|
| 13 |
+
*
|
| 14 |
+
* Example: `baseUrl: "https://example.com/my-api"`
|
| 15 |
+
*
|
| 16 |
+
* This will make a `POST /my-api/my_package.MyService/Foo` to
|
| 17 |
+
* `example.com` via HTTPS.
|
| 18 |
+
*
|
| 19 |
+
* If your API is served from the same domain as your site, use
|
| 20 |
+
* `baseUrl: window.location.origin` or simply "/".
|
| 21 |
+
*/
|
| 22 |
+
baseUrl: string;
|
| 23 |
+
/**
|
| 24 |
+
* By default, connect-web clients use the JSON format.
|
| 25 |
+
*/
|
| 26 |
+
useBinaryFormat?: boolean;
|
| 27 |
+
/**
|
| 28 |
+
* Interceptors that should be applied to all calls running through
|
| 29 |
+
* this transport. See the Interceptor type for details.
|
| 30 |
+
*/
|
| 31 |
+
interceptors?: Interceptor[];
|
| 32 |
+
/**
|
| 33 |
+
* Options for the JSON format.
|
| 34 |
+
* By default, unknown fields are ignored.
|
| 35 |
+
*/
|
| 36 |
+
jsonOptions?: Partial<JsonReadOptions & JsonWriteOptions>;
|
| 37 |
+
/**
|
| 38 |
+
* Options for the binary wire format.
|
| 39 |
+
*/
|
| 40 |
+
binaryOptions?: Partial<BinaryReadOptions & BinaryWriteOptions>;
|
| 41 |
+
/**
|
| 42 |
+
* Optional override of the fetch implementation used by the transport.
|
| 43 |
+
*
|
| 44 |
+
* This option can be used to set fetch options such as "credentials".
|
| 45 |
+
*/
|
| 46 |
+
fetch?: typeof globalThis.fetch;
|
| 47 |
+
/**
|
| 48 |
+
* Controls whether or not Connect GET requests should be used when
|
| 49 |
+
* available, on side-effect free methods. Defaults to false.
|
| 50 |
+
*/
|
| 51 |
+
useHttpGet?: boolean;
|
| 52 |
+
/**
|
| 53 |
+
* The timeout in milliseconds to apply to all requests.
|
| 54 |
+
*
|
| 55 |
+
* This can be overridden on a per-request basis by passing a timeoutMs.
|
| 56 |
+
*/
|
| 57 |
+
defaultTimeoutMs?: number;
|
| 58 |
+
}
|
| 59 |
+
/**
|
| 60 |
+
* Create a Transport for the Connect protocol, which makes unary and
|
| 61 |
+
* server-streaming methods available to web browsers. It uses the fetch
|
| 62 |
+
* API to make HTTP requests.
|
| 63 |
+
*/
|
| 64 |
+
export declare function createConnectTransport(options: ConnectTransportOptions): Transport;
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/connect-transport.js
ADDED
|
@@ -0,0 +1,190 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2024 The Connect Authors
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
| 15 |
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
| 16 |
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
| 17 |
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
| 18 |
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
| 19 |
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
| 20 |
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
| 21 |
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
| 22 |
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
| 23 |
+
function fulfill(value) { resume("next", value); }
|
| 24 |
+
function reject(value) { resume("throw", value); }
|
| 25 |
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
| 26 |
+
};
|
| 27 |
+
import { fromJson } from "@bufbuild/protobuf";
|
| 28 |
+
import { Code, ConnectError, appendHeaders, createContextValues, } from "@connectrpc/connect";
|
| 29 |
+
import { createClientMethodSerializers, createEnvelopeReadableStream, createMethodUrl, getJsonOptions, encodeEnvelope, runStreamingCall, runUnaryCall, compressedFlag, } from "@connectrpc/connect/protocol";
|
| 30 |
+
import { endStreamFlag, endStreamFromJson, errorFromJson, requestHeader, trailerDemux, transformConnectPostToGetRequest, validateResponse, } from "@connectrpc/connect/protocol-connect";
|
| 31 |
+
import { assertFetchApi } from "./assert-fetch-api.js";
|
| 32 |
+
import { MethodOptions_IdempotencyLevel } from "@bufbuild/protobuf/wkt";
|
| 33 |
+
const fetchOptions = {
|
| 34 |
+
redirect: "error",
|
| 35 |
+
};
|
| 36 |
+
/**
|
| 37 |
+
* Create a Transport for the Connect protocol, which makes unary and
|
| 38 |
+
* server-streaming methods available to web browsers. It uses the fetch
|
| 39 |
+
* API to make HTTP requests.
|
| 40 |
+
*/
|
| 41 |
+
export function createConnectTransport(options) {
|
| 42 |
+
var _a;
|
| 43 |
+
assertFetchApi();
|
| 44 |
+
const useBinaryFormat = (_a = options.useBinaryFormat) !== null && _a !== void 0 ? _a : false;
|
| 45 |
+
return {
|
| 46 |
+
async unary(method, signal, timeoutMs, header, message, contextValues) {
|
| 47 |
+
const { serialize, parse } = createClientMethodSerializers(method, useBinaryFormat, options.jsonOptions, options.binaryOptions);
|
| 48 |
+
timeoutMs =
|
| 49 |
+
timeoutMs === undefined
|
| 50 |
+
? options.defaultTimeoutMs
|
| 51 |
+
: timeoutMs <= 0
|
| 52 |
+
? undefined
|
| 53 |
+
: timeoutMs;
|
| 54 |
+
return await runUnaryCall({
|
| 55 |
+
interceptors: options.interceptors,
|
| 56 |
+
signal,
|
| 57 |
+
timeoutMs,
|
| 58 |
+
req: {
|
| 59 |
+
stream: false,
|
| 60 |
+
service: method.parent,
|
| 61 |
+
method,
|
| 62 |
+
requestMethod: "POST",
|
| 63 |
+
url: createMethodUrl(options.baseUrl, method),
|
| 64 |
+
header: requestHeader(method.methodKind, useBinaryFormat, timeoutMs, header, false),
|
| 65 |
+
contextValues: contextValues !== null && contextValues !== void 0 ? contextValues : createContextValues(),
|
| 66 |
+
message,
|
| 67 |
+
},
|
| 68 |
+
next: async (req) => {
|
| 69 |
+
var _a;
|
| 70 |
+
const useGet = options.useHttpGet === true &&
|
| 71 |
+
method.idempotency ===
|
| 72 |
+
MethodOptions_IdempotencyLevel.NO_SIDE_EFFECTS;
|
| 73 |
+
let body = null;
|
| 74 |
+
if (useGet) {
|
| 75 |
+
req = transformConnectPostToGetRequest(req, serialize(req.message), useBinaryFormat);
|
| 76 |
+
}
|
| 77 |
+
else {
|
| 78 |
+
body = serialize(req.message);
|
| 79 |
+
}
|
| 80 |
+
const fetch = (_a = options.fetch) !== null && _a !== void 0 ? _a : globalThis.fetch;
|
| 81 |
+
const response = await fetch(req.url, Object.assign(Object.assign({}, fetchOptions), { method: req.requestMethod, headers: req.header, signal: req.signal, body }));
|
| 82 |
+
const { isUnaryError, unaryError } = validateResponse(method.methodKind, useBinaryFormat, response.status, response.headers);
|
| 83 |
+
if (isUnaryError) {
|
| 84 |
+
throw errorFromJson((await response.json()), appendHeaders(...trailerDemux(response.headers)), unaryError);
|
| 85 |
+
}
|
| 86 |
+
const [demuxedHeader, demuxedTrailer] = trailerDemux(response.headers);
|
| 87 |
+
return {
|
| 88 |
+
stream: false,
|
| 89 |
+
service: method.parent,
|
| 90 |
+
method,
|
| 91 |
+
header: demuxedHeader,
|
| 92 |
+
message: useBinaryFormat
|
| 93 |
+
? parse(new Uint8Array(await response.arrayBuffer()))
|
| 94 |
+
: fromJson(method.output, (await response.json()), getJsonOptions(options.jsonOptions)),
|
| 95 |
+
trailer: demuxedTrailer,
|
| 96 |
+
};
|
| 97 |
+
},
|
| 98 |
+
});
|
| 99 |
+
},
|
| 100 |
+
async stream(method, signal, timeoutMs, header, input, contextValues) {
|
| 101 |
+
const { serialize, parse } = createClientMethodSerializers(method, useBinaryFormat, options.jsonOptions, options.binaryOptions);
|
| 102 |
+
function parseResponseBody(body, trailerTarget, header, signal) {
|
| 103 |
+
return __asyncGenerator(this, arguments, function* parseResponseBody_1() {
|
| 104 |
+
const reader = createEnvelopeReadableStream(body).getReader();
|
| 105 |
+
let endStreamReceived = false;
|
| 106 |
+
for (;;) {
|
| 107 |
+
const result = yield __await(reader.read());
|
| 108 |
+
if (result.done) {
|
| 109 |
+
break;
|
| 110 |
+
}
|
| 111 |
+
const { flags, data } = result.value;
|
| 112 |
+
if ((flags & compressedFlag) === compressedFlag) {
|
| 113 |
+
throw new ConnectError(`protocol error: received unsupported compressed output`, Code.Internal);
|
| 114 |
+
}
|
| 115 |
+
if ((flags & endStreamFlag) === endStreamFlag) {
|
| 116 |
+
endStreamReceived = true;
|
| 117 |
+
const endStream = endStreamFromJson(data);
|
| 118 |
+
if (endStream.error) {
|
| 119 |
+
const error = endStream.error;
|
| 120 |
+
header.forEach((value, key) => {
|
| 121 |
+
error.metadata.append(key, value);
|
| 122 |
+
});
|
| 123 |
+
throw error;
|
| 124 |
+
}
|
| 125 |
+
endStream.metadata.forEach((value, key) => trailerTarget.set(key, value));
|
| 126 |
+
continue;
|
| 127 |
+
}
|
| 128 |
+
yield yield __await(parse(data));
|
| 129 |
+
}
|
| 130 |
+
// Node wil not throw an AbortError on `read` if the
|
| 131 |
+
// signal is aborted before `getReader` is called.
|
| 132 |
+
// As a work around we check at the end and throw.
|
| 133 |
+
//
|
| 134 |
+
// Ref: https://github.com/nodejs/undici/issues/1940
|
| 135 |
+
if ("throwIfAborted" in signal) {
|
| 136 |
+
// We assume that implementations without `throwIfAborted` (old
|
| 137 |
+
// browsers) do honor aborted signals on `read`.
|
| 138 |
+
signal.throwIfAborted();
|
| 139 |
+
}
|
| 140 |
+
if (!endStreamReceived) {
|
| 141 |
+
throw "missing EndStreamResponse";
|
| 142 |
+
}
|
| 143 |
+
});
|
| 144 |
+
}
|
| 145 |
+
async function createRequestBody(input) {
|
| 146 |
+
if (method.methodKind != "server_streaming") {
|
| 147 |
+
throw "The fetch API does not support streaming request bodies";
|
| 148 |
+
}
|
| 149 |
+
const r = await input[Symbol.asyncIterator]().next();
|
| 150 |
+
if (r.done == true) {
|
| 151 |
+
throw "missing request message";
|
| 152 |
+
}
|
| 153 |
+
return encodeEnvelope(0, serialize(r.value));
|
| 154 |
+
}
|
| 155 |
+
timeoutMs =
|
| 156 |
+
timeoutMs === undefined
|
| 157 |
+
? options.defaultTimeoutMs
|
| 158 |
+
: timeoutMs <= 0
|
| 159 |
+
? undefined
|
| 160 |
+
: timeoutMs;
|
| 161 |
+
return await runStreamingCall({
|
| 162 |
+
interceptors: options.interceptors,
|
| 163 |
+
timeoutMs,
|
| 164 |
+
signal,
|
| 165 |
+
req: {
|
| 166 |
+
stream: true,
|
| 167 |
+
service: method.parent,
|
| 168 |
+
method,
|
| 169 |
+
requestMethod: "POST",
|
| 170 |
+
url: createMethodUrl(options.baseUrl, method),
|
| 171 |
+
header: requestHeader(method.methodKind, useBinaryFormat, timeoutMs, header, false),
|
| 172 |
+
contextValues: contextValues !== null && contextValues !== void 0 ? contextValues : createContextValues(),
|
| 173 |
+
message: input,
|
| 174 |
+
},
|
| 175 |
+
next: async (req) => {
|
| 176 |
+
var _a;
|
| 177 |
+
const fetch = (_a = options.fetch) !== null && _a !== void 0 ? _a : globalThis.fetch;
|
| 178 |
+
const fRes = await fetch(req.url, Object.assign(Object.assign({}, fetchOptions), { method: req.requestMethod, headers: req.header, signal: req.signal, body: await createRequestBody(req.message) }));
|
| 179 |
+
validateResponse(method.methodKind, useBinaryFormat, fRes.status, fRes.headers);
|
| 180 |
+
if (fRes.body === null) {
|
| 181 |
+
throw "missing response body";
|
| 182 |
+
}
|
| 183 |
+
const trailer = new Headers();
|
| 184 |
+
const res = Object.assign(Object.assign({}, req), { header: fRes.headers, trailer, message: parseResponseBody(fRes.body, trailer, fRes.headers, req.signal) });
|
| 185 |
+
return res;
|
| 186 |
+
},
|
| 187 |
+
});
|
| 188 |
+
},
|
| 189 |
+
};
|
| 190 |
+
}
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/grpc-web-transport.d.ts
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { BinaryReadOptions, BinaryWriteOptions, JsonReadOptions, JsonWriteOptions } from "@bufbuild/protobuf";
|
| 2 |
+
import type { Interceptor, Transport } from "@connectrpc/connect";
|
| 3 |
+
/**
|
| 4 |
+
* Options used to configure the gRPC-web transport.
|
| 5 |
+
*
|
| 6 |
+
* See createGrpcWebTransport().
|
| 7 |
+
*/
|
| 8 |
+
export interface GrpcWebTransportOptions {
|
| 9 |
+
/**
|
| 10 |
+
* Base URI for all HTTP requests.
|
| 11 |
+
*
|
| 12 |
+
* Requests will be made to <baseUrl>/<package>.<service>/method
|
| 13 |
+
*
|
| 14 |
+
* Example: `baseUrl: "https://example.com/my-api"`
|
| 15 |
+
*
|
| 16 |
+
* This will make a `POST /my-api/my_package.MyService/Foo` to
|
| 17 |
+
* `example.com` via HTTPS.
|
| 18 |
+
*
|
| 19 |
+
* If your API is served from the same domain as your site, use
|
| 20 |
+
* `baseUrl: window.location.origin` or simply "/".
|
| 21 |
+
*/
|
| 22 |
+
baseUrl: string;
|
| 23 |
+
/**
|
| 24 |
+
* By default, clients use the binary format for gRPC-web, because
|
| 25 |
+
* not all gRPC-web implementations support JSON.
|
| 26 |
+
*/
|
| 27 |
+
useBinaryFormat?: boolean;
|
| 28 |
+
/**
|
| 29 |
+
* Interceptors that should be applied to all calls running through
|
| 30 |
+
* this transport. See the Interceptor type for details.
|
| 31 |
+
*/
|
| 32 |
+
interceptors?: Interceptor[];
|
| 33 |
+
/**
|
| 34 |
+
* Options for the JSON format.
|
| 35 |
+
* By default, unknown fields are ignored.
|
| 36 |
+
*/
|
| 37 |
+
jsonOptions?: Partial<JsonReadOptions & JsonWriteOptions>;
|
| 38 |
+
/**
|
| 39 |
+
* Options for the binary wire format.
|
| 40 |
+
*/
|
| 41 |
+
binaryOptions?: Partial<BinaryReadOptions & BinaryWriteOptions>;
|
| 42 |
+
/**
|
| 43 |
+
* Optional override of the fetch implementation used by the transport.
|
| 44 |
+
*
|
| 45 |
+
* This option can be used to set fetch options such as "credentials".
|
| 46 |
+
*/
|
| 47 |
+
fetch?: typeof globalThis.fetch;
|
| 48 |
+
/**
|
| 49 |
+
* The timeout in milliseconds to apply to all requests.
|
| 50 |
+
*
|
| 51 |
+
* This can be overridden on a per-request basis by passing a timeoutMs.
|
| 52 |
+
*/
|
| 53 |
+
defaultTimeoutMs?: number;
|
| 54 |
+
}
|
| 55 |
+
/**
|
| 56 |
+
* Create a Transport for the gRPC-web protocol. The protocol encodes
|
| 57 |
+
* trailers in the response body and makes unary and server-streaming
|
| 58 |
+
* methods available to web browsers. It uses the fetch API to make
|
| 59 |
+
* HTTP requests.
|
| 60 |
+
*
|
| 61 |
+
* Note that this transport does not implement the grpc-web-text format,
|
| 62 |
+
* which applies base64 encoding to the request and response bodies to
|
| 63 |
+
* support reading streaming responses from an XMLHttpRequest.
|
| 64 |
+
*/
|
| 65 |
+
export declare function createGrpcWebTransport(options: GrpcWebTransportOptions): Transport;
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/grpc-web-transport.js
ADDED
|
@@ -0,0 +1,234 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2024 The Connect Authors
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
| 15 |
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
| 16 |
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
| 17 |
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
| 18 |
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
| 19 |
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
| 20 |
+
function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
|
| 21 |
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
| 22 |
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
| 23 |
+
function fulfill(value) { resume("next", value); }
|
| 24 |
+
function reject(value) { resume("throw", value); }
|
| 25 |
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
| 26 |
+
};
|
| 27 |
+
import { createContextValues, ConnectError, Code } from "@connectrpc/connect";
|
| 28 |
+
import { compressedFlag, createClientMethodSerializers, createEnvelopeReadableStream, createMethodUrl, encodeEnvelope, runStreamingCall, runUnaryCall, } from "@connectrpc/connect/protocol";
|
| 29 |
+
import { headerGrpcStatus, requestHeader, trailerFlag, trailerParse, validateResponse, validateTrailer, } from "@connectrpc/connect/protocol-grpc-web";
|
| 30 |
+
import { assertFetchApi } from "./assert-fetch-api.js";
|
| 31 |
+
const fetchOptions = {
|
| 32 |
+
redirect: "error",
|
| 33 |
+
};
|
| 34 |
+
/**
|
| 35 |
+
* Create a Transport for the gRPC-web protocol. The protocol encodes
|
| 36 |
+
* trailers in the response body and makes unary and server-streaming
|
| 37 |
+
* methods available to web browsers. It uses the fetch API to make
|
| 38 |
+
* HTTP requests.
|
| 39 |
+
*
|
| 40 |
+
* Note that this transport does not implement the grpc-web-text format,
|
| 41 |
+
* which applies base64 encoding to the request and response bodies to
|
| 42 |
+
* support reading streaming responses from an XMLHttpRequest.
|
| 43 |
+
*/
|
| 44 |
+
export function createGrpcWebTransport(options) {
|
| 45 |
+
var _a;
|
| 46 |
+
assertFetchApi();
|
| 47 |
+
const useBinaryFormat = (_a = options.useBinaryFormat) !== null && _a !== void 0 ? _a : true;
|
| 48 |
+
return {
|
| 49 |
+
async unary(method, signal, timeoutMs, header, message, contextValues) {
|
| 50 |
+
const { serialize, parse } = createClientMethodSerializers(method, useBinaryFormat, options.jsonOptions, options.binaryOptions);
|
| 51 |
+
timeoutMs =
|
| 52 |
+
timeoutMs === undefined
|
| 53 |
+
? options.defaultTimeoutMs
|
| 54 |
+
: timeoutMs <= 0
|
| 55 |
+
? undefined
|
| 56 |
+
: timeoutMs;
|
| 57 |
+
return await runUnaryCall({
|
| 58 |
+
interceptors: options.interceptors,
|
| 59 |
+
signal,
|
| 60 |
+
timeoutMs,
|
| 61 |
+
req: {
|
| 62 |
+
stream: false,
|
| 63 |
+
service: method.parent,
|
| 64 |
+
method,
|
| 65 |
+
requestMethod: "POST",
|
| 66 |
+
url: createMethodUrl(options.baseUrl, method),
|
| 67 |
+
header: requestHeader(useBinaryFormat, timeoutMs, header, false),
|
| 68 |
+
contextValues: contextValues !== null && contextValues !== void 0 ? contextValues : createContextValues(),
|
| 69 |
+
message,
|
| 70 |
+
},
|
| 71 |
+
next: async (req) => {
|
| 72 |
+
var _a;
|
| 73 |
+
const fetch = (_a = options.fetch) !== null && _a !== void 0 ? _a : globalThis.fetch;
|
| 74 |
+
const response = await fetch(req.url, Object.assign(Object.assign({}, fetchOptions), { method: req.requestMethod, headers: req.header, signal: req.signal, body: encodeEnvelope(0, serialize(req.message)) }));
|
| 75 |
+
const { headerError } = validateResponse(response.status, response.headers);
|
| 76 |
+
if (!response.body) {
|
| 77 |
+
if (headerError !== undefined)
|
| 78 |
+
throw headerError;
|
| 79 |
+
throw "missing response body";
|
| 80 |
+
}
|
| 81 |
+
const reader = createEnvelopeReadableStream(response.body).getReader();
|
| 82 |
+
let trailer;
|
| 83 |
+
let message;
|
| 84 |
+
for (;;) {
|
| 85 |
+
const r = await reader.read();
|
| 86 |
+
if (r.done) {
|
| 87 |
+
break;
|
| 88 |
+
}
|
| 89 |
+
const { flags, data } = r.value;
|
| 90 |
+
if ((flags & compressedFlag) === compressedFlag) {
|
| 91 |
+
throw new ConnectError(`protocol error: received unsupported compressed output`, Code.Internal);
|
| 92 |
+
}
|
| 93 |
+
if (flags === trailerFlag) {
|
| 94 |
+
if (trailer !== undefined) {
|
| 95 |
+
throw "extra trailer";
|
| 96 |
+
}
|
| 97 |
+
// Unary responses require exactly one response message, but in
|
| 98 |
+
// case of an error, it is perfectly valid to have a response body
|
| 99 |
+
// that only contains error trailers.
|
| 100 |
+
trailer = trailerParse(data);
|
| 101 |
+
continue;
|
| 102 |
+
}
|
| 103 |
+
if (message !== undefined) {
|
| 104 |
+
throw new ConnectError("extra message", Code.Unimplemented);
|
| 105 |
+
}
|
| 106 |
+
message = parse(data);
|
| 107 |
+
}
|
| 108 |
+
if (trailer === undefined) {
|
| 109 |
+
if (headerError !== undefined)
|
| 110 |
+
throw headerError;
|
| 111 |
+
throw new ConnectError("missing trailer", response.headers.has(headerGrpcStatus)
|
| 112 |
+
? Code.Unimplemented
|
| 113 |
+
: Code.Unknown);
|
| 114 |
+
}
|
| 115 |
+
validateTrailer(trailer, response.headers);
|
| 116 |
+
if (message === undefined) {
|
| 117 |
+
throw new ConnectError("missing message", trailer.has(headerGrpcStatus) ? Code.Unimplemented : Code.Unknown);
|
| 118 |
+
}
|
| 119 |
+
return {
|
| 120 |
+
stream: false,
|
| 121 |
+
service: method.parent,
|
| 122 |
+
method,
|
| 123 |
+
header: response.headers,
|
| 124 |
+
message,
|
| 125 |
+
trailer,
|
| 126 |
+
};
|
| 127 |
+
},
|
| 128 |
+
});
|
| 129 |
+
},
|
| 130 |
+
async stream(method, signal, timeoutMs, header, input, contextValues) {
|
| 131 |
+
const { serialize, parse } = createClientMethodSerializers(method, useBinaryFormat, options.jsonOptions, options.binaryOptions);
|
| 132 |
+
function parseResponseBody(body, foundStatus, trailerTarget, header, signal) {
|
| 133 |
+
return __asyncGenerator(this, arguments, function* parseResponseBody_1() {
|
| 134 |
+
const reader = createEnvelopeReadableStream(body).getReader();
|
| 135 |
+
if (foundStatus) {
|
| 136 |
+
// A grpc-status: 0 response header was present. This is a "trailers-only"
|
| 137 |
+
// response (a response without a body and no trailers).
|
| 138 |
+
//
|
| 139 |
+
// The spec seems to disallow a trailers-only response for status 0 - we are
|
| 140 |
+
// lenient and only verify that the body is empty.
|
| 141 |
+
//
|
| 142 |
+
// > [...] Trailers-Only is permitted for calls that produce an immediate error.
|
| 143 |
+
// See https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-HTTP2.md
|
| 144 |
+
if (!(yield __await(reader.read())).done) {
|
| 145 |
+
throw "extra data for trailers-only";
|
| 146 |
+
}
|
| 147 |
+
return yield __await(void 0);
|
| 148 |
+
}
|
| 149 |
+
let trailerReceived = false;
|
| 150 |
+
for (;;) {
|
| 151 |
+
const result = yield __await(reader.read());
|
| 152 |
+
if (result.done) {
|
| 153 |
+
break;
|
| 154 |
+
}
|
| 155 |
+
const { flags, data } = result.value;
|
| 156 |
+
if ((flags & trailerFlag) === trailerFlag) {
|
| 157 |
+
if (trailerReceived) {
|
| 158 |
+
throw "extra trailer";
|
| 159 |
+
}
|
| 160 |
+
trailerReceived = true;
|
| 161 |
+
const trailer = trailerParse(data);
|
| 162 |
+
validateTrailer(trailer, header);
|
| 163 |
+
trailer.forEach((value, key) => trailerTarget.set(key, value));
|
| 164 |
+
continue;
|
| 165 |
+
}
|
| 166 |
+
if (trailerReceived) {
|
| 167 |
+
throw "extra message";
|
| 168 |
+
}
|
| 169 |
+
yield yield __await(parse(data));
|
| 170 |
+
}
|
| 171 |
+
// Node wil not throw an AbortError on `read` if the
|
| 172 |
+
// signal is aborted before `getReader` is called.
|
| 173 |
+
// As a work around we check at the end and throw.
|
| 174 |
+
//
|
| 175 |
+
// Ref: https://github.com/nodejs/undici/issues/1940
|
| 176 |
+
if ("throwIfAborted" in signal) {
|
| 177 |
+
// We assume that implementations without `throwIfAborted` (old
|
| 178 |
+
// browsers) do honor aborted signals on `read`.
|
| 179 |
+
signal.throwIfAborted();
|
| 180 |
+
}
|
| 181 |
+
if (!trailerReceived) {
|
| 182 |
+
throw "missing trailer";
|
| 183 |
+
}
|
| 184 |
+
});
|
| 185 |
+
}
|
| 186 |
+
async function createRequestBody(input) {
|
| 187 |
+
if (method.methodKind != "server_streaming") {
|
| 188 |
+
throw "The fetch API does not support streaming request bodies";
|
| 189 |
+
}
|
| 190 |
+
const r = await input[Symbol.asyncIterator]().next();
|
| 191 |
+
if (r.done == true) {
|
| 192 |
+
throw "missing request message";
|
| 193 |
+
}
|
| 194 |
+
return encodeEnvelope(0, serialize(r.value));
|
| 195 |
+
}
|
| 196 |
+
timeoutMs =
|
| 197 |
+
timeoutMs === undefined
|
| 198 |
+
? options.defaultTimeoutMs
|
| 199 |
+
: timeoutMs <= 0
|
| 200 |
+
? undefined
|
| 201 |
+
: timeoutMs;
|
| 202 |
+
return runStreamingCall({
|
| 203 |
+
interceptors: options.interceptors,
|
| 204 |
+
signal,
|
| 205 |
+
timeoutMs,
|
| 206 |
+
req: {
|
| 207 |
+
stream: true,
|
| 208 |
+
service: method.parent,
|
| 209 |
+
method,
|
| 210 |
+
requestMethod: "POST",
|
| 211 |
+
url: createMethodUrl(options.baseUrl, method),
|
| 212 |
+
header: requestHeader(useBinaryFormat, timeoutMs, header, false),
|
| 213 |
+
contextValues: contextValues !== null && contextValues !== void 0 ? contextValues : createContextValues(),
|
| 214 |
+
message: input,
|
| 215 |
+
},
|
| 216 |
+
next: async (req) => {
|
| 217 |
+
var _a;
|
| 218 |
+
const fetch = (_a = options.fetch) !== null && _a !== void 0 ? _a : globalThis.fetch;
|
| 219 |
+
const fRes = await fetch(req.url, Object.assign(Object.assign({}, fetchOptions), { method: req.requestMethod, headers: req.header, signal: req.signal, body: await createRequestBody(req.message) }));
|
| 220 |
+
const { foundStatus, headerError } = validateResponse(fRes.status, fRes.headers);
|
| 221 |
+
if (headerError != undefined) {
|
| 222 |
+
throw headerError;
|
| 223 |
+
}
|
| 224 |
+
if (!fRes.body) {
|
| 225 |
+
throw "missing response body";
|
| 226 |
+
}
|
| 227 |
+
const trailer = new Headers();
|
| 228 |
+
const res = Object.assign(Object.assign({}, req), { header: fRes.headers, trailer, message: parseResponseBody(fRes.body, foundStatus, trailer, fRes.headers, req.signal) });
|
| 229 |
+
return res;
|
| 230 |
+
},
|
| 231 |
+
});
|
| 232 |
+
},
|
| 233 |
+
};
|
| 234 |
+
}
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export { createConnectTransport } from "./connect-transport.js";
|
| 2 |
+
export { createGrpcWebTransport } from "./grpc-web-transport.js";
|
| 3 |
+
export type { ConnectTransportOptions } from "./connect-transport.js";
|
| 4 |
+
export type { GrpcWebTransportOptions } from "./grpc-web-transport.js";
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/dist/esm/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2021-2024 The Connect Authors
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
export { createConnectTransport } from "./connect-transport.js";
|
| 15 |
+
export { createGrpcWebTransport } from "./grpc-web-transport.js";
|
node_modules/.pnpm/@connectrpc+connect-web@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0_/node_modules/@connectrpc/connect-web/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "@connectrpc/connect-web",
|
| 3 |
+
"version": "2.0.0-rc.3",
|
| 4 |
+
"license": "Apache-2.0",
|
| 5 |
+
"repository": {
|
| 6 |
+
"type": "git",
|
| 7 |
+
"url": "https://github.com/connectrpc/connect-es.git",
|
| 8 |
+
"directory": "packages/connect-web"
|
| 9 |
+
},
|
| 10 |
+
"scripts": {
|
| 11 |
+
"prebuild": "rm -rf ./dist/*",
|
| 12 |
+
"build": "npm run build:cjs && npm run build:esm",
|
| 13 |
+
"build:cjs": "tsc --project tsconfig.build.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs --declaration --declarationDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'",
|
| 14 |
+
"build:esm": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationDir ./dist/esm",
|
| 15 |
+
"conformance:safari": "npm run conformance:safari:promise && npm run conformance:client:safari:callback",
|
| 16 |
+
"conformance:safari:promise": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser safari",
|
| 17 |
+
"conformance:safari:callback": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser safari --useCallbackClient",
|
| 18 |
+
"conformance:chrome:promise": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser chrome",
|
| 19 |
+
"conformance:chrome:callback": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser chrome --useCallbackClient",
|
| 20 |
+
"conformance:firefox:promise": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser firefox",
|
| 21 |
+
"conformance:firefox:callback": "connectconformance --mode client --conf conformance/conformance-web.yaml -- tsx conformance/client.ts --browser firefox --useCallbackClient",
|
| 22 |
+
"conformance:node:promise": "connectconformance --mode client --conf conformance/conformance-web-node.yaml -- tsx conformance/client.ts --browser node",
|
| 23 |
+
"conformance:node:callback": "connectconformance --mode client --conf conformance/conformance-web-node.yaml -- tsx conformance/client.ts --browser node --useCallbackClient",
|
| 24 |
+
"test": "jasmine --config=jasmine.json",
|
| 25 |
+
"generate": "buf generate --template browserstack/buf.gen.yaml",
|
| 26 |
+
"postgenerate": "license-header browserstack/gen",
|
| 27 |
+
"test-browserstack": "wdio run ./browserstack/wdio.browserstack.conf.js",
|
| 28 |
+
"format": "prettier --write --ignore-unknown '.' '!dist' '!browserstack/gen'",
|
| 29 |
+
"license-header": "license-header",
|
| 30 |
+
"lint": "eslint --max-warnings 0 .",
|
| 31 |
+
"attw": "attw --pack"
|
| 32 |
+
},
|
| 33 |
+
"type": "module",
|
| 34 |
+
"sideEffects": false,
|
| 35 |
+
"main": "./dist/cjs/index.js",
|
| 36 |
+
"exports": {
|
| 37 |
+
".": {
|
| 38 |
+
"import": "./dist/esm/index.js",
|
| 39 |
+
"require": "./dist/cjs/index.js"
|
| 40 |
+
}
|
| 41 |
+
},
|
| 42 |
+
"devDependencies": {
|
| 43 |
+
"@bufbuild/buf": "^1.46.0",
|
| 44 |
+
"@bufbuild/protoc-gen-es": "^2.2.2",
|
| 45 |
+
"@connectrpc/connect-conformance": "^2.0.0-rc.3",
|
| 46 |
+
"@wdio/browserstack-service": "^9.2.8",
|
| 47 |
+
"@wdio/cli": "^9.2.8",
|
| 48 |
+
"@wdio/jasmine-framework": "^9.2.8",
|
| 49 |
+
"@wdio/local-runner": "^9.2.8",
|
| 50 |
+
"jasmine": "^5.2.0",
|
| 51 |
+
"webdriverio": "^9.2.8"
|
| 52 |
+
},
|
| 53 |
+
"peerDependencies": {
|
| 54 |
+
"@bufbuild/protobuf": "^2.2.0",
|
| 55 |
+
"@connectrpc/connect": "2.0.0-rc.3"
|
| 56 |
+
}
|
| 57 |
+
}
|
node_modules/.pnpm/@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0/node_modules/@connectrpc/connect/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# @connectrpc/connect
|
| 2 |
+
|
| 3 |
+
Connect is a family of libraries for building type-safe APIs with different languages and platforms.
|
| 4 |
+
[@connectrpc/connect](https://www.npmjs.com/package/@connectrpc/connect) brings them to TypeScript,
|
| 5 |
+
the web browser, and to Node.js.
|
| 6 |
+
|
| 7 |
+
With Connect, you define your schema first:
|
| 8 |
+
|
| 9 |
+
```
|
| 10 |
+
service ElizaService {
|
| 11 |
+
rpc Say(SayRequest) returns (SayResponse) {}
|
| 12 |
+
}
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
And with the magic of code generation, this schema produces servers and clients:
|
| 16 |
+
|
| 17 |
+
```ts
|
| 18 |
+
const answer = await eliza.say({ sentence: "I feel happy." });
|
| 19 |
+
console.log(answer);
|
| 20 |
+
// {sentence: 'When you feel happy, what do you do?'}
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
Unlike REST, the RPCs you use with Connect are typesafe end to end, but they are
|
| 24 |
+
regular HTTP under the hood. You can see all requests in the network inspector,
|
| 25 |
+
and you can `curl` them if you want:
|
| 26 |
+
|
| 27 |
+
```shell
|
| 28 |
+
curl \
|
| 29 |
+
--header 'Content-Type: application/json' \
|
| 30 |
+
--data '{"sentence": "I feel happy."}' \
|
| 31 |
+
https://demo.connectrpc.com/connectrpc.eliza.v1.ElizaService/Say
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
With Connect for ECMAScript, you can spin up a service in Node.js and call it
|
| 35 |
+
from the web, the terminal, or native mobile clients. Under the hood, it uses
|
| 36 |
+
[Protocol Buffers](https://github.com/bufbuild/protobuf-es) for the schema, and
|
| 37 |
+
implements RPC (remote procedure calls) with three protocols: The widely available
|
| 38 |
+
gRPC and gRPC-web, and Connect's [own protocol](https://connectrpc.com/docs/protocol/),
|
| 39 |
+
optimized for the web. This gives you unparalleled interoperability with
|
| 40 |
+
full-stack type-safety.
|
| 41 |
+
|
| 42 |
+
## Get started on the web
|
| 43 |
+
|
| 44 |
+
Follow our [10 minute tutorial](https://connectrpc.com/docs/web/getting-started) where
|
| 45 |
+
we use [Vite](https://vitejs.dev/) and [React](https://reactjs.org/) to create a
|
| 46 |
+
web interface for ELIZA.
|
| 47 |
+
|
| 48 |
+
**React**, **Svelte**, **Vue**, **Next.js** and **Angular** are supported (see [examples](https://github.com/connectrpc/examples-es)),
|
| 49 |
+
and we have an expansion pack for [TanStack Query](https://github.com/connectrpc/connect-query-es).
|
| 50 |
+
We support all modern web browsers that implement the widely available
|
| 51 |
+
[fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)
|
| 52 |
+
and the [Encoding API](https://developer.mozilla.org/en-US/docs/Web/API/Encoding_API).
|
| 53 |
+
|
| 54 |
+
## Get started on Node.js
|
| 55 |
+
|
| 56 |
+
Follow our [10 minute tutorial](https://connectrpc.com/docs/node/getting-started)
|
| 57 |
+
to spin up a service in Node.js, and call it from the web, and from a gRPC client
|
| 58 |
+
in your terminal.
|
| 59 |
+
|
| 60 |
+
You can use vanilla Node.js, or our server plugins for [Fastify](https://www.fastify.io/)
|
| 61 |
+
or [Express](https://expressjs.com/). We support the builtin `http`, and `http2`
|
| 62 |
+
modules on Node.js v18.14.1 and later.
|
node_modules/.pnpm/@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0/node_modules/@connectrpc/connect/dist/cjs/any-client.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { DescService, DescMethodUnary, DescMethodStreaming } from "@bufbuild/protobuf";
|
| 2 |
+
/**
|
| 3 |
+
* AnyClient is an arbitrary service client with any method signature.
|
| 4 |
+
*
|
| 5 |
+
* It usually has methods for all methods defined for a service, but may
|
| 6 |
+
* omit some, for example because it's transport does not support streaming.
|
| 7 |
+
*/
|
| 8 |
+
export type AnyClient = Record<string, AnyClientMethod>;
|
| 9 |
+
type AnyClientMethod = (...args: any[]) => any;
|
| 10 |
+
type CreateAnyClientMethod = (method: DescMethodUnary | DescMethodStreaming) => AnyClientMethod | null;
|
| 11 |
+
/**
|
| 12 |
+
* Create any client for the given service.
|
| 13 |
+
*
|
| 14 |
+
* The given createMethod function is called for each method definition
|
| 15 |
+
* of the service. The function it returns is added to the client object
|
| 16 |
+
* as a method.
|
| 17 |
+
*/
|
| 18 |
+
export declare function makeAnyClient(service: DescService, createMethod: CreateAnyClientMethod): AnyClient;
|
| 19 |
+
export {};
|
node_modules/.pnpm/@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0/node_modules/@connectrpc/connect/dist/cjs/any-client.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"use strict";
|
| 2 |
+
// Copyright 2021-2024 The Connect Authors
|
| 3 |
+
//
|
| 4 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 5 |
+
// you may not use this file except in compliance with the License.
|
| 6 |
+
// You may obtain a copy of the License at
|
| 7 |
+
//
|
| 8 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 9 |
+
//
|
| 10 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 11 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 12 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 13 |
+
// See the License for the specific language governing permissions and
|
| 14 |
+
// limitations under the License.
|
| 15 |
+
Object.defineProperty(exports, "__esModule", { value: true });
|
| 16 |
+
exports.makeAnyClient = makeAnyClient;
|
| 17 |
+
/**
|
| 18 |
+
* Create any client for the given service.
|
| 19 |
+
*
|
| 20 |
+
* The given createMethod function is called for each method definition
|
| 21 |
+
* of the service. The function it returns is added to the client object
|
| 22 |
+
* as a method.
|
| 23 |
+
*/
|
| 24 |
+
function makeAnyClient(service, createMethod) {
|
| 25 |
+
const client = {};
|
| 26 |
+
for (const desc of service.methods) {
|
| 27 |
+
const method = createMethod(desc);
|
| 28 |
+
if (method != null) {
|
| 29 |
+
client[desc.localName] = method;
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
return client;
|
| 33 |
+
}
|
node_modules/.pnpm/@connectrpc+connect@2.0.0-rc.3_@bufbuild+protobuf@2.7.0/node_modules/@connectrpc/connect/dist/cjs/call-options.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { ContextValues } from "./context-values.js";
|
| 2 |
+
/**
|
| 3 |
+
* Options for a call. Every client should accept CallOptions as optional
|
| 4 |
+
* argument in its RPC methods.
|
| 5 |
+
*/
|
| 6 |
+
export interface CallOptions {
|
| 7 |
+
/**
|
| 8 |
+
* Timeout in milliseconds.
|
| 9 |
+
*
|
| 10 |
+
* Set to <= 0 to disable the default timeout.
|
| 11 |
+
*/
|
| 12 |
+
timeoutMs?: number;
|
| 13 |
+
/**
|
| 14 |
+
* Custom headers to send with the request.
|
| 15 |
+
*/
|
| 16 |
+
headers?: HeadersInit;
|
| 17 |
+
/**
|
| 18 |
+
* An optional AbortSignal to cancel the call.
|
| 19 |
+
* If cancelled, an error with Code.Canceled is raised.
|
| 20 |
+
*/
|
| 21 |
+
signal?: AbortSignal;
|
| 22 |
+
/**
|
| 23 |
+
* Called when response headers are received.
|
| 24 |
+
*/
|
| 25 |
+
onHeader?(headers: Headers): void;
|
| 26 |
+
/**
|
| 27 |
+
* Called when response trailers are received.
|
| 28 |
+
*/
|
| 29 |
+
onTrailer?(trailers: Headers): void;
|
| 30 |
+
/**
|
| 31 |
+
* ContextValues to pass to the interceptors.
|
| 32 |
+
*/
|
| 33 |
+
contextValues?: ContextValues;
|
| 34 |
+
}
|