@fatehan/tsrp 1.4.30 → 1.4.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/api.d.ts +4 -0
  2. package/dist/api.d.ts.map +1 -1
  3. package/dist/api.js +16 -0
  4. package/dist/fatehan/activities/camera.js +11 -11
  5. package/dist/fatehan/activities/workflow.js +18 -18
  6. package/dist/fatehan/apis/client.d.ts +1 -67
  7. package/dist/fatehan/apis/client.d.ts.map +1 -1
  8. package/dist/fatehan/apis/client.js +24 -1075
  9. package/dist/fatehan/areas/area.js +7 -7
  10. package/dist/fatehan/devices/devices.d.ts +15 -0
  11. package/dist/fatehan/devices/devices.d.ts.map +1 -1
  12. package/dist/fatehan/devices/devices.js +270 -32
  13. package/dist/fatehan/devices/maintenance.js +3 -3
  14. package/dist/fatehan/financial/financial.js +11 -11
  15. package/dist/fatehan/google/error_details.d.ts +421 -0
  16. package/dist/fatehan/google/error_details.d.ts.map +1 -0
  17. package/dist/fatehan/google/error_details.js +1296 -0
  18. package/dist/fatehan/google/protobuf/any.d.ts +146 -0
  19. package/dist/fatehan/google/protobuf/any.d.ts.map +1 -0
  20. package/dist/fatehan/google/protobuf/any.js +108 -0
  21. package/dist/fatehan/google/protobuf/descriptor.js +35 -35
  22. package/dist/fatehan/google/protobuf/duration.js +2 -2
  23. package/dist/fatehan/google/protobuf/field_mask.js +2 -2
  24. package/dist/fatehan/google/protobuf/timestamp.js +2 -2
  25. package/dist/fatehan/google/status.d.ts +53 -0
  26. package/dist/fatehan/google/status.d.ts.map +1 -0
  27. package/dist/fatehan/google/status.js +100 -0
  28. package/dist/fatehan/identities/authentication.js +10 -10
  29. package/dist/fatehan/identities/identities.d.ts +6 -0
  30. package/dist/fatehan/identities/identities.d.ts.map +1 -1
  31. package/dist/fatehan/identities/identities.js +44 -13
  32. package/dist/fatehan/models/fusion.js +9 -9
  33. package/dist/fatehan/models/models.js +14 -14
  34. package/dist/fatehan/notifies/notify.js +33 -33
  35. package/dist/fatehan/packets/dataModel.js +55 -55
  36. package/dist/fatehan/packets/dataModule.js +6 -6
  37. package/dist/fatehan/packets/messages.js +9 -9
  38. package/dist/fatehan/reports/report.d.ts +3 -0
  39. package/dist/fatehan/reports/report.d.ts.map +1 -1
  40. package/dist/fatehan/reports/report.js +203 -155
  41. package/dist/fatehan/services/api.d.ts +41 -1
  42. package/dist/fatehan/services/api.d.ts.map +1 -1
  43. package/dist/fatehan/services/api.js +613 -48
  44. package/dist/fatehan/services/repositories.js +9 -9
  45. package/dist/fatehan/trips/trip.js +19 -19
  46. package/dist/fatehan/utils/buf/validate/validate.js +33 -33
  47. package/package.json +1 -1
@@ -0,0 +1,146 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import Long from "long";
3
+ export declare const protobufPackage = "google.protobuf";
4
+ /**
5
+ * `Any` contains an arbitrary serialized protocol buffer message along with a
6
+ * URL that describes the type of the serialized message.
7
+ *
8
+ * Protobuf library provides support to pack/unpack Any values in the form
9
+ * of utility functions or additional generated methods of the Any type.
10
+ *
11
+ * Example 1: Pack and unpack a message in C++.
12
+ *
13
+ * Foo foo = ...;
14
+ * Any any;
15
+ * any.PackFrom(foo);
16
+ * ...
17
+ * if (any.UnpackTo(&foo)) {
18
+ * ...
19
+ * }
20
+ *
21
+ * Example 2: Pack and unpack a message in Java.
22
+ *
23
+ * Foo foo = ...;
24
+ * Any any = Any.pack(foo);
25
+ * ...
26
+ * if (any.is(Foo.class)) {
27
+ * foo = any.unpack(Foo.class);
28
+ * }
29
+ * // or ...
30
+ * if (any.isSameTypeAs(Foo.getDefaultInstance())) {
31
+ * foo = any.unpack(Foo.getDefaultInstance());
32
+ * }
33
+ *
34
+ * Example 3: Pack and unpack a message in Python.
35
+ *
36
+ * foo = Foo(...)
37
+ * any = Any()
38
+ * any.Pack(foo)
39
+ * ...
40
+ * if any.Is(Foo.DESCRIPTOR):
41
+ * any.Unpack(foo)
42
+ * ...
43
+ *
44
+ * Example 4: Pack and unpack a message in Go
45
+ *
46
+ * foo := &pb.Foo{...}
47
+ * any, err := anypb.New(foo)
48
+ * if err != nil {
49
+ * ...
50
+ * }
51
+ * ...
52
+ * foo := &pb.Foo{}
53
+ * if err := any.UnmarshalTo(foo); err != nil {
54
+ * ...
55
+ * }
56
+ *
57
+ * The pack methods provided by protobuf library will by default use
58
+ * 'type.googleapis.com/full.type.name' as the type URL and the unpack
59
+ * methods only use the fully qualified type name after the last '/'
60
+ * in the type URL, for example "foo.bar.com/x/y.z" will yield type
61
+ * name "y.z".
62
+ *
63
+ * JSON
64
+ * ====
65
+ * The JSON representation of an `Any` value uses the regular
66
+ * representation of the deserialized, embedded message, with an
67
+ * additional field `@type` which contains the type URL. Example:
68
+ *
69
+ * package google.profile;
70
+ * message Person {
71
+ * string first_name = 1;
72
+ * string last_name = 2;
73
+ * }
74
+ *
75
+ * {
76
+ * "@type": "type.googleapis.com/google.profile.Person",
77
+ * "firstName": <string>,
78
+ * "lastName": <string>
79
+ * }
80
+ *
81
+ * If the embedded message type is well-known and has a custom JSON
82
+ * representation, that representation will be embedded adding a field
83
+ * `value` which holds the custom JSON in addition to the `@type`
84
+ * field. Example (for message [google.protobuf.Duration][]):
85
+ *
86
+ * {
87
+ * "@type": "type.googleapis.com/google.protobuf.Duration",
88
+ * "value": "1.212s"
89
+ * }
90
+ */
91
+ export interface Any {
92
+ /**
93
+ * A URL/resource name that uniquely identifies the type of the serialized
94
+ * protocol buffer message. This string must contain at least
95
+ * one "/" character. The last segment of the URL's path must represent
96
+ * the fully qualified name of the type (as in
97
+ * `path/google.protobuf.Duration`). The name should be in a canonical form
98
+ * (e.g., leading "." is not accepted).
99
+ *
100
+ * In practice, teams usually precompile into the binary all types that they
101
+ * expect it to use in the context of Any. However, for URLs which use the
102
+ * scheme `http`, `https`, or no scheme, one can optionally set up a type
103
+ * server that maps type URLs to message definitions as follows:
104
+ *
105
+ * * If no scheme is provided, `https` is assumed.
106
+ * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
107
+ * value in binary format, or produce an error.
108
+ * * Applications are allowed to cache lookup results based on the
109
+ * URL, or have them precompiled into a binary to avoid any
110
+ * lookup. Therefore, binary compatibility needs to be preserved
111
+ * on changes to types. (Use versioned type names to manage
112
+ * breaking changes.)
113
+ *
114
+ * Note: this functionality is not currently available in the official
115
+ * protobuf release, and it is not used for type URLs beginning with
116
+ * type.googleapis.com. As of May 2023, there are no widely used type server
117
+ * implementations and no plans to implement one.
118
+ *
119
+ * Schemes other than `http`, `https` (or the empty scheme) might be
120
+ * used with implementation specific semantics.
121
+ */
122
+ typeUrl: string;
123
+ /** Must be a valid serialized protocol buffer of the above specified type. */
124
+ value: Uint8Array;
125
+ }
126
+ export declare const Any: MessageFns<Any>;
127
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
128
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
129
+ [K in keyof T]?: DeepPartial<T[K]>;
130
+ } : Partial<T>;
131
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
132
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
133
+ [K in keyof P]: Exact<P[K], I[K]>;
134
+ } & {
135
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
136
+ };
137
+ export interface MessageFns<T> {
138
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
139
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
140
+ fromJSON(object: any): T;
141
+ toJSON(message: T): unknown;
142
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
143
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
144
+ }
145
+ export {};
146
+ //# sourceMappingURL=any.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"any.d.ts","sourceRoot":"","sources":["../../../../src/fatehan/google/protobuf/any.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AACH,MAAM,WAAW,GAAG;IAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,8EAA8E;IAC9E,KAAK,EAAE,UAAU,CAAC;CACnB;AAMD,eAAO,MAAM,GAAG,EAAE,UAAU,CAAC,GAAG,CAsE/B,CAAC;AA2BF,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpF,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GAC9C,CAAC,SAAS,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,CAAC,SAAS,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChH,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACrD,OAAO,CAAC,CAAC,CAAC,CAAC;AAEf,KAAK,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC,GAAG,KAAK,CAAC;AACpD,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACrD,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAAE,CAAC;AAMnG,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.7.0
5
+ // protoc v6.31.1
6
+ // source: google/protobuf/any.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.Any = exports.protobufPackage = void 0;
9
+ /* eslint-disable */
10
+ const wire_1 = require("@bufbuild/protobuf/wire");
11
+ exports.protobufPackage = "google.protobuf";
12
+ function createBaseAny() {
13
+ return { typeUrl: "", value: new Uint8Array(0) };
14
+ }
15
+ exports.Any = {
16
+ encode(message, writer = new wire_1.BinaryWriter()) {
17
+ if (message.typeUrl !== "") {
18
+ writer.uint32(10).string(message.typeUrl);
19
+ }
20
+ if (message.value.length !== 0) {
21
+ writer.uint32(18).bytes(message.value);
22
+ }
23
+ return writer;
24
+ },
25
+ decode(input, length) {
26
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
27
+ let end = length === undefined ? reader.len : reader.pos + length;
28
+ const message = createBaseAny();
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1: {
33
+ if (tag !== 10) {
34
+ break;
35
+ }
36
+ message.typeUrl = reader.string();
37
+ continue;
38
+ }
39
+ case 2: {
40
+ if (tag !== 18) {
41
+ break;
42
+ }
43
+ message.value = reader.bytes();
44
+ continue;
45
+ }
46
+ }
47
+ if ((tag & 7) === 4 || tag === 0) {
48
+ break;
49
+ }
50
+ reader.skip(tag & 7);
51
+ }
52
+ return message;
53
+ },
54
+ fromJSON(object) {
55
+ return {
56
+ typeUrl: isSet(object.typeUrl) ? globalThis.String(object.typeUrl) : "",
57
+ value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
58
+ };
59
+ },
60
+ toJSON(message) {
61
+ const obj = {};
62
+ if (message.typeUrl !== "") {
63
+ obj.typeUrl = message.typeUrl;
64
+ }
65
+ if (message.value.length !== 0) {
66
+ obj.value = base64FromBytes(message.value);
67
+ }
68
+ return obj;
69
+ },
70
+ create(base) {
71
+ return exports.Any.fromPartial(base !== null && base !== void 0 ? base : {});
72
+ },
73
+ fromPartial(object) {
74
+ var _a, _b;
75
+ const message = createBaseAny();
76
+ message.typeUrl = (_a = object.typeUrl) !== null && _a !== void 0 ? _a : "";
77
+ message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array(0);
78
+ return message;
79
+ },
80
+ };
81
+ function bytesFromBase64(b64) {
82
+ if (globalThis.Buffer) {
83
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
84
+ }
85
+ else {
86
+ const bin = globalThis.atob(b64);
87
+ const arr = new Uint8Array(bin.length);
88
+ for (let i = 0; i < bin.length; ++i) {
89
+ arr[i] = bin.charCodeAt(i);
90
+ }
91
+ return arr;
92
+ }
93
+ }
94
+ function base64FromBytes(arr) {
95
+ if (globalThis.Buffer) {
96
+ return globalThis.Buffer.from(arr).toString("base64");
97
+ }
98
+ else {
99
+ const bin = [];
100
+ arr.forEach((byte) => {
101
+ bin.push(globalThis.String.fromCharCode(byte));
102
+ });
103
+ return globalThis.btoa(bin.join(""));
104
+ }
105
+ }
106
+ function isSet(value) {
107
+ return value !== null && value !== undefined;
108
+ }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.0
5
5
  // protoc v6.31.1
6
6
  // source: google/protobuf/descriptor.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
@@ -1112,7 +1112,7 @@ exports.FileDescriptorSet = {
1112
1112
  },
1113
1113
  decode(input, length) {
1114
1114
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1115
- const end = length === undefined ? reader.len : reader.pos + length;
1115
+ let end = length === undefined ? reader.len : reader.pos + length;
1116
1116
  const message = createBaseFileDescriptorSet();
1117
1117
  while (reader.pos < end) {
1118
1118
  const tag = reader.uint32();
@@ -1225,7 +1225,7 @@ exports.FileDescriptorProto = {
1225
1225
  },
1226
1226
  decode(input, length) {
1227
1227
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1228
- const end = length === undefined ? reader.len : reader.pos + length;
1228
+ let end = length === undefined ? reader.len : reader.pos + length;
1229
1229
  const message = createBaseFileDescriptorProto();
1230
1230
  while (reader.pos < end) {
1231
1231
  const tag = reader.uint32();
@@ -1512,7 +1512,7 @@ exports.DescriptorProto = {
1512
1512
  },
1513
1513
  decode(input, length) {
1514
1514
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1515
- const end = length === undefined ? reader.len : reader.pos + length;
1515
+ let end = length === undefined ? reader.len : reader.pos + length;
1516
1516
  const message = createBaseDescriptorProto();
1517
1517
  while (reader.pos < end) {
1518
1518
  const tag = reader.uint32();
@@ -1711,7 +1711,7 @@ exports.DescriptorProto_ExtensionRange = {
1711
1711
  },
1712
1712
  decode(input, length) {
1713
1713
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1714
- const end = length === undefined ? reader.len : reader.pos + length;
1714
+ let end = length === undefined ? reader.len : reader.pos + length;
1715
1715
  const message = createBaseDescriptorProto_ExtensionRange();
1716
1716
  while (reader.pos < end) {
1717
1717
  const tag = reader.uint32();
@@ -1794,7 +1794,7 @@ exports.DescriptorProto_ReservedRange = {
1794
1794
  },
1795
1795
  decode(input, length) {
1796
1796
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1797
- const end = length === undefined ? reader.len : reader.pos + length;
1797
+ let end = length === undefined ? reader.len : reader.pos + length;
1798
1798
  const message = createBaseDescriptorProto_ReservedRange();
1799
1799
  while (reader.pos < end) {
1800
1800
  const tag = reader.uint32();
@@ -1869,7 +1869,7 @@ exports.ExtensionRangeOptions = {
1869
1869
  },
1870
1870
  decode(input, length) {
1871
1871
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1872
- const end = length === undefined ? reader.len : reader.pos + length;
1872
+ let end = length === undefined ? reader.len : reader.pos + length;
1873
1873
  const message = createBaseExtensionRangeOptions();
1874
1874
  while (reader.pos < end) {
1875
1875
  const tag = reader.uint32();
@@ -1980,7 +1980,7 @@ exports.ExtensionRangeOptions_Declaration = {
1980
1980
  },
1981
1981
  decode(input, length) {
1982
1982
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1983
- const end = length === undefined ? reader.len : reader.pos + length;
1983
+ let end = length === undefined ? reader.len : reader.pos + length;
1984
1984
  const message = createBaseExtensionRangeOptions_Declaration();
1985
1985
  while (reader.pos < end) {
1986
1986
  const tag = reader.uint32();
@@ -2124,7 +2124,7 @@ exports.FieldDescriptorProto = {
2124
2124
  },
2125
2125
  decode(input, length) {
2126
2126
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2127
- const end = length === undefined ? reader.len : reader.pos + length;
2127
+ let end = length === undefined ? reader.len : reader.pos + length;
2128
2128
  const message = createBaseFieldDescriptorProto();
2129
2129
  while (reader.pos < end) {
2130
2130
  const tag = reader.uint32();
@@ -2303,7 +2303,7 @@ exports.OneofDescriptorProto = {
2303
2303
  },
2304
2304
  decode(input, length) {
2305
2305
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2306
- const end = length === undefined ? reader.len : reader.pos + length;
2306
+ let end = length === undefined ? reader.len : reader.pos + length;
2307
2307
  const message = createBaseOneofDescriptorProto();
2308
2308
  while (reader.pos < end) {
2309
2309
  const tag = reader.uint32();
@@ -2386,7 +2386,7 @@ exports.EnumDescriptorProto = {
2386
2386
  },
2387
2387
  decode(input, length) {
2388
2388
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2389
- const end = length === undefined ? reader.len : reader.pos + length;
2389
+ let end = length === undefined ? reader.len : reader.pos + length;
2390
2390
  const message = createBaseEnumDescriptorProto();
2391
2391
  while (reader.pos < end) {
2392
2392
  const tag = reader.uint32();
@@ -2513,7 +2513,7 @@ exports.EnumDescriptorProto_EnumReservedRange = {
2513
2513
  },
2514
2514
  decode(input, length) {
2515
2515
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2516
- const end = length === undefined ? reader.len : reader.pos + length;
2516
+ let end = length === undefined ? reader.len : reader.pos + length;
2517
2517
  const message = createBaseEnumDescriptorProto_EnumReservedRange();
2518
2518
  while (reader.pos < end) {
2519
2519
  const tag = reader.uint32();
@@ -2585,7 +2585,7 @@ exports.EnumValueDescriptorProto = {
2585
2585
  },
2586
2586
  decode(input, length) {
2587
2587
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2588
- const end = length === undefined ? reader.len : reader.pos + length;
2588
+ let end = length === undefined ? reader.len : reader.pos + length;
2589
2589
  const message = createBaseEnumValueDescriptorProto();
2590
2590
  while (reader.pos < end) {
2591
2591
  const tag = reader.uint32();
@@ -2671,7 +2671,7 @@ exports.ServiceDescriptorProto = {
2671
2671
  },
2672
2672
  decode(input, length) {
2673
2673
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2674
- const end = length === undefined ? reader.len : reader.pos + length;
2674
+ let end = length === undefined ? reader.len : reader.pos + length;
2675
2675
  const message = createBaseServiceDescriptorProto();
2676
2676
  while (reader.pos < end) {
2677
2677
  const tag = reader.uint32();
@@ -2776,7 +2776,7 @@ exports.MethodDescriptorProto = {
2776
2776
  },
2777
2777
  decode(input, length) {
2778
2778
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2779
- const end = length === undefined ? reader.len : reader.pos + length;
2779
+ let end = length === undefined ? reader.len : reader.pos + length;
2780
2780
  const message = createBaseMethodDescriptorProto();
2781
2781
  while (reader.pos < end) {
2782
2782
  const tag = reader.uint32();
@@ -2974,7 +2974,7 @@ exports.FileOptions = {
2974
2974
  },
2975
2975
  decode(input, length) {
2976
2976
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
2977
- const end = length === undefined ? reader.len : reader.pos + length;
2977
+ let end = length === undefined ? reader.len : reader.pos + length;
2978
2978
  const message = createBaseFileOptions();
2979
2979
  while (reader.pos < end) {
2980
2980
  const tag = reader.uint32();
@@ -3301,7 +3301,7 @@ exports.MessageOptions = {
3301
3301
  },
3302
3302
  decode(input, length) {
3303
3303
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3304
- const end = length === undefined ? reader.len : reader.pos + length;
3304
+ let end = length === undefined ? reader.len : reader.pos + length;
3305
3305
  const message = createBaseMessageOptions();
3306
3306
  while (reader.pos < end) {
3307
3307
  const tag = reader.uint32();
@@ -3494,7 +3494,7 @@ exports.FieldOptions = {
3494
3494
  },
3495
3495
  decode(input, length) {
3496
3496
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3497
- const end = length === undefined ? reader.len : reader.pos + length;
3497
+ let end = length === undefined ? reader.len : reader.pos + length;
3498
3498
  const message = createBaseFieldOptions();
3499
3499
  while (reader.pos < end) {
3500
3500
  const tag = reader.uint32();
@@ -3727,7 +3727,7 @@ exports.FieldOptions_EditionDefault = {
3727
3727
  },
3728
3728
  decode(input, length) {
3729
3729
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3730
- const end = length === undefined ? reader.len : reader.pos + length;
3730
+ let end = length === undefined ? reader.len : reader.pos + length;
3731
3731
  const message = createBaseFieldOptions_EditionDefault();
3732
3732
  while (reader.pos < end) {
3733
3733
  const tag = reader.uint32();
@@ -3802,7 +3802,7 @@ exports.FieldOptions_FeatureSupport = {
3802
3802
  },
3803
3803
  decode(input, length) {
3804
3804
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3805
- const end = length === undefined ? reader.len : reader.pos + length;
3805
+ let end = length === undefined ? reader.len : reader.pos + length;
3806
3806
  const message = createBaseFieldOptions_FeatureSupport();
3807
3807
  while (reader.pos < end) {
3808
3808
  const tag = reader.uint32();
@@ -3895,7 +3895,7 @@ exports.OneofOptions = {
3895
3895
  },
3896
3896
  decode(input, length) {
3897
3897
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3898
- const end = length === undefined ? reader.len : reader.pos + length;
3898
+ let end = length === undefined ? reader.len : reader.pos + length;
3899
3899
  const message = createBaseOneofOptions();
3900
3900
  while (reader.pos < end) {
3901
3901
  const tag = reader.uint32();
@@ -3984,7 +3984,7 @@ exports.EnumOptions = {
3984
3984
  },
3985
3985
  decode(input, length) {
3986
3986
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3987
- const end = length === undefined ? reader.len : reader.pos + length;
3987
+ let end = length === undefined ? reader.len : reader.pos + length;
3988
3988
  const message = createBaseEnumOptions();
3989
3989
  while (reader.pos < end) {
3990
3990
  const tag = reader.uint32();
@@ -4111,7 +4111,7 @@ exports.EnumValueOptions = {
4111
4111
  },
4112
4112
  decode(input, length) {
4113
4113
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4114
- const end = length === undefined ? reader.len : reader.pos + length;
4114
+ let end = length === undefined ? reader.len : reader.pos + length;
4115
4115
  const message = createBaseEnumValueOptions();
4116
4116
  while (reader.pos < end) {
4117
4117
  const tag = reader.uint32();
@@ -4228,7 +4228,7 @@ exports.ServiceOptions = {
4228
4228
  },
4229
4229
  decode(input, length) {
4230
4230
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4231
- const end = length === undefined ? reader.len : reader.pos + length;
4231
+ let end = length === undefined ? reader.len : reader.pos + length;
4232
4232
  const message = createBaseServiceOptions();
4233
4233
  while (reader.pos < end) {
4234
4234
  const tag = reader.uint32();
@@ -4320,7 +4320,7 @@ exports.MethodOptions = {
4320
4320
  },
4321
4321
  decode(input, length) {
4322
4322
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4323
- const end = length === undefined ? reader.len : reader.pos + length;
4323
+ let end = length === undefined ? reader.len : reader.pos + length;
4324
4324
  const message = createBaseMethodOptions();
4325
4325
  while (reader.pos < end) {
4326
4326
  const tag = reader.uint32();
@@ -4443,7 +4443,7 @@ exports.UninterpretedOption = {
4443
4443
  },
4444
4444
  decode(input, length) {
4445
4445
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4446
- const end = length === undefined ? reader.len : reader.pos + length;
4446
+ let end = length === undefined ? reader.len : reader.pos + length;
4447
4447
  const message = createBaseUninterpretedOption();
4448
4448
  while (reader.pos < end) {
4449
4449
  const tag = reader.uint32();
@@ -4579,7 +4579,7 @@ exports.UninterpretedOption_NamePart = {
4579
4579
  },
4580
4580
  decode(input, length) {
4581
4581
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4582
- const end = length === undefined ? reader.len : reader.pos + length;
4582
+ let end = length === undefined ? reader.len : reader.pos + length;
4583
4583
  const message = createBaseUninterpretedOption_NamePart();
4584
4584
  while (reader.pos < end) {
4585
4585
  const tag = reader.uint32();
@@ -4675,7 +4675,7 @@ exports.FeatureSet = {
4675
4675
  },
4676
4676
  decode(input, length) {
4677
4677
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4678
- const end = length === undefined ? reader.len : reader.pos + length;
4678
+ let end = length === undefined ? reader.len : reader.pos + length;
4679
4679
  const message = createBaseFeatureSet();
4680
4680
  while (reader.pos < end) {
4681
4681
  const tag = reader.uint32();
@@ -4816,7 +4816,7 @@ exports.FeatureSet_VisibilityFeature = {
4816
4816
  },
4817
4817
  decode(input, length) {
4818
4818
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4819
- const end = length === undefined ? reader.len : reader.pos + length;
4819
+ let end = length === undefined ? reader.len : reader.pos + length;
4820
4820
  const message = createBaseFeatureSet_VisibilityFeature();
4821
4821
  while (reader.pos < end) {
4822
4822
  const tag = reader.uint32();
@@ -4862,7 +4862,7 @@ exports.FeatureSetDefaults = {
4862
4862
  },
4863
4863
  decode(input, length) {
4864
4864
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4865
- const end = length === undefined ? reader.len : reader.pos + length;
4865
+ let end = length === undefined ? reader.len : reader.pos + length;
4866
4866
  const message = createBaseFeatureSetDefaults();
4867
4867
  while (reader.pos < end) {
4868
4868
  const tag = reader.uint32();
@@ -4949,7 +4949,7 @@ exports.FeatureSetDefaults_FeatureSetEditionDefault = {
4949
4949
  },
4950
4950
  decode(input, length) {
4951
4951
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
4952
- const end = length === undefined ? reader.len : reader.pos + length;
4952
+ let end = length === undefined ? reader.len : reader.pos + length;
4953
4953
  const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
4954
4954
  while (reader.pos < end) {
4955
4955
  const tag = reader.uint32();
@@ -5033,7 +5033,7 @@ exports.SourceCodeInfo = {
5033
5033
  },
5034
5034
  decode(input, length) {
5035
5035
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5036
- const end = length === undefined ? reader.len : reader.pos + length;
5036
+ let end = length === undefined ? reader.len : reader.pos + length;
5037
5037
  const message = createBaseSourceCodeInfo();
5038
5038
  while (reader.pos < end) {
5039
5039
  const tag = reader.uint32();
@@ -5106,7 +5106,7 @@ exports.SourceCodeInfo_Location = {
5106
5106
  },
5107
5107
  decode(input, length) {
5108
5108
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5109
- const end = length === undefined ? reader.len : reader.pos + length;
5109
+ let end = length === undefined ? reader.len : reader.pos + length;
5110
5110
  const message = createBaseSourceCodeInfo_Location();
5111
5111
  while (reader.pos < end) {
5112
5112
  const tag = reader.uint32();
@@ -5225,7 +5225,7 @@ exports.GeneratedCodeInfo = {
5225
5225
  },
5226
5226
  decode(input, length) {
5227
5227
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5228
- const end = length === undefined ? reader.len : reader.pos + length;
5228
+ let end = length === undefined ? reader.len : reader.pos + length;
5229
5229
  const message = createBaseGeneratedCodeInfo();
5230
5230
  while (reader.pos < end) {
5231
5231
  const tag = reader.uint32();
@@ -5296,7 +5296,7 @@ exports.GeneratedCodeInfo_Annotation = {
5296
5296
  },
5297
5297
  decode(input, length) {
5298
5298
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
5299
- const end = length === undefined ? reader.len : reader.pos + length;
5299
+ let end = length === undefined ? reader.len : reader.pos + length;
5300
5300
  const message = createBaseGeneratedCodeInfo_Annotation();
5301
5301
  while (reader.pos < end) {
5302
5302
  const tag = reader.uint32();
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.0
5
5
  // protoc v6.31.1
6
6
  // source: google/protobuf/duration.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
@@ -28,7 +28,7 @@ exports.Duration = {
28
28
  },
29
29
  decode(input, length) {
30
30
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
31
- const end = length === undefined ? reader.len : reader.pos + length;
31
+ let end = length === undefined ? reader.len : reader.pos + length;
32
32
  const message = createBaseDuration();
33
33
  while (reader.pos < end) {
34
34
  const tag = reader.uint32();
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.0
5
5
  // protoc v6.31.1
6
6
  // source: google/protobuf/field_mask.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -21,7 +21,7 @@ exports.FieldMask = {
21
21
  },
22
22
  decode(input, length) {
23
23
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
24
- const end = length === undefined ? reader.len : reader.pos + length;
24
+ let end = length === undefined ? reader.len : reader.pos + length;
25
25
  const message = createBaseFieldMask();
26
26
  while (reader.pos < end) {
27
27
  const tag = reader.uint32();
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.5
4
+ // protoc-gen-ts_proto v2.7.0
5
5
  // protoc v6.31.1
6
6
  // source: google/protobuf/timestamp.proto
7
7
  var __importDefault = (this && this.__importDefault) || function (mod) {
@@ -28,7 +28,7 @@ exports.Timestamp = {
28
28
  },
29
29
  decode(input, length) {
30
30
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
31
- const end = length === undefined ? reader.len : reader.pos + length;
31
+ let end = length === undefined ? reader.len : reader.pos + length;
32
32
  const message = createBaseTimestamp();
33
33
  while (reader.pos < end) {
34
34
  const tag = reader.uint32();
@@ -0,0 +1,53 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import Long from "long";
3
+ import { Any } from "./protobuf/any";
4
+ export declare const protobufPackage = "google.rpc";
5
+ /**
6
+ * The `Status` type defines a logical error model that is suitable for
7
+ * different programming environments, including REST APIs and RPC APIs. It is
8
+ * used by [gRPC](https://github.com/grpc). Each `Status` message contains
9
+ * three pieces of data: error code, error message, and error details.
10
+ *
11
+ * You can find out more about this error model and how to work with it in the
12
+ * [API Design Guide](https://cloud.google.com/apis/design/errors).
13
+ */
14
+ export interface Status {
15
+ /**
16
+ * The status code, which should be an enum value of
17
+ * [google.rpc.Code][google.rpc.Code].
18
+ */
19
+ code: number;
20
+ /**
21
+ * A developer-facing error message, which should be in English. Any
22
+ * user-facing error message should be localized and sent in the
23
+ * [google.rpc.Status.details][google.rpc.Status.details] field, or localized
24
+ * by the client.
25
+ */
26
+ message: string;
27
+ /**
28
+ * A list of messages that carry the error details. There is a common set of
29
+ * message types for APIs to use.
30
+ */
31
+ details: Any[];
32
+ }
33
+ export declare const Status: MessageFns<Status>;
34
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
35
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
36
+ [K in keyof T]?: DeepPartial<T[K]>;
37
+ } : Partial<T>;
38
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
39
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
40
+ [K in keyof P]: Exact<P[K], I[K]>;
41
+ } & {
42
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
43
+ };
44
+ export interface MessageFns<T> {
45
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
46
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
47
+ fromJSON(object: any): T;
48
+ toJSON(message: T): unknown;
49
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
50
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
51
+ }
52
+ export {};
53
+ //# sourceMappingURL=status.d.ts.map