@milaboratories/pl-client 2.7.13 → 2.7.14

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 (116) hide show
  1. package/dist/core/auth.d.ts.map +1 -1
  2. package/dist/core/cache.d.ts.map +1 -1
  3. package/dist/core/client.d.ts +1 -1
  4. package/dist/core/client.d.ts.map +1 -1
  5. package/dist/core/default_client.d.ts.map +1 -1
  6. package/dist/core/driver.d.ts.map +1 -1
  7. package/dist/core/errors.d.ts.map +1 -1
  8. package/dist/core/final.d.ts.map +1 -1
  9. package/dist/core/ll_client.d.ts.map +1 -1
  10. package/dist/core/ll_transaction.d.ts.map +1 -1
  11. package/dist/core/transaction.d.ts +1 -1
  12. package/dist/core/transaction.d.ts.map +1 -1
  13. package/dist/core/type_conversion.d.ts.map +1 -1
  14. package/dist/core/types.d.ts +1 -1
  15. package/dist/core/types.d.ts.map +1 -1
  16. package/dist/core/unauth_client.d.ts.map +1 -1
  17. package/dist/helpers/pl.d.ts.map +1 -1
  18. package/dist/helpers/poll.d.ts.map +1 -1
  19. package/dist/helpers/state_helpers.d.ts.map +1 -1
  20. package/dist/helpers/tx_helpers.d.ts.map +1 -1
  21. package/dist/index.js +1 -1
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.mjs +4069 -4075
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +15 -15
  26. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -1
  27. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +4 -4
  28. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  29. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +16 -16
  30. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  31. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +4 -4
  32. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
  33. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +59 -59
  34. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
  35. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +8 -8
  36. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  37. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +22 -22
  38. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  39. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +72 -72
  40. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
  41. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +152 -152
  42. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
  43. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +156 -156
  44. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -1
  45. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +773 -773
  46. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -1
  47. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +163 -163
  48. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -1
  49. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +22 -22
  50. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -1
  51. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +32 -32
  52. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -1
  53. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +78 -78
  54. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -1
  55. package/dist/proto/google/api/http.d.ts +89 -89
  56. package/dist/proto/google/api/http.d.ts.map +1 -1
  57. package/dist/proto/google/protobuf/any.d.ts +52 -52
  58. package/dist/proto/google/protobuf/any.d.ts.map +1 -1
  59. package/dist/proto/google/protobuf/descriptor.d.ts +1151 -1151
  60. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  61. package/dist/proto/google/protobuf/duration.d.ts +19 -19
  62. package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
  63. package/dist/proto/google/protobuf/empty.d.ts.map +1 -1
  64. package/dist/proto/google/protobuf/struct.d.ts +56 -56
  65. package/dist/proto/google/protobuf/struct.d.ts.map +1 -1
  66. package/dist/proto/google/protobuf/timestamp.d.ts +25 -25
  67. package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
  68. package/dist/proto/google/protobuf/wrappers.d.ts +72 -72
  69. package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -1
  70. package/dist/test/test_config.d.ts.map +1 -1
  71. package/dist/util/util.d.ts.map +1 -1
  72. package/package.json +7 -3
  73. package/src/core/auth.ts +3 -3
  74. package/src/core/cache.ts +1 -1
  75. package/src/core/client.ts +39 -31
  76. package/src/core/config.ts +21 -21
  77. package/src/core/default_client.ts +15 -14
  78. package/src/core/driver.ts +4 -4
  79. package/src/core/errors.ts +3 -3
  80. package/src/core/final.ts +7 -4
  81. package/src/core/ll_client.ts +31 -27
  82. package/src/core/ll_transaction.ts +17 -17
  83. package/src/core/stat.ts +2 -2
  84. package/src/core/transaction.ts +93 -95
  85. package/src/core/type_conversion.ts +11 -8
  86. package/src/core/types.ts +25 -26
  87. package/src/core/unauth_client.ts +6 -6
  88. package/src/helpers/pl.ts +8 -7
  89. package/src/helpers/poll.ts +25 -21
  90. package/src/helpers/state_helpers.ts +2 -1
  91. package/src/helpers/tx_helpers.ts +4 -3
  92. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +74 -71
  93. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +21 -20
  94. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +240 -225
  95. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +21 -20
  96. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +290 -275
  97. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +32 -30
  98. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +388 -364
  99. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +58 -53
  100. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +490 -469
  101. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +262 -237
  102. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +11751 -11032
  103. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1155 -1114
  104. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +131 -125
  105. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +203 -200
  106. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +559 -540
  107. package/src/proto/google/api/http.ts +280 -271
  108. package/src/proto/google/protobuf/any.ts +149 -139
  109. package/src/proto/google/protobuf/descriptor.ts +2952 -2853
  110. package/src/proto/google/protobuf/duration.ts +107 -102
  111. package/src/proto/google/protobuf/empty.ts +41 -38
  112. package/src/proto/google/protobuf/struct.ts +336 -322
  113. package/src/proto/google/protobuf/timestamp.ts +131 -123
  114. package/src/proto/google/protobuf/wrappers.ts +536 -491
  115. package/src/test/test_config.ts +21 -19
  116. package/src/util/util.ts +1 -0
@@ -1,17 +1,17 @@
1
1
  // @generated by protobuf-ts 2.9.5 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
2
2
  // @generated from protobuf file "github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.proto" (package "MiLaboratories.Controller.Shared", syntax proto3)
3
3
  // tslint:disable
4
- import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
- import { WireType } from "@protobuf-ts/runtime";
6
- import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
7
- import type { IBinaryWriter } from "@protobuf-ts/runtime";
8
- import type { BinaryReadOptions } from "@protobuf-ts/runtime";
9
- import type { IBinaryReader } from "@protobuf-ts/runtime";
10
- import { UnknownFieldHandler } from "@protobuf-ts/runtime";
11
- import type { PartialMessage } from "@protobuf-ts/runtime";
12
- import { reflectionMergePartial } from "@protobuf-ts/runtime";
13
- import { MessageType } from "@protobuf-ts/runtime";
14
- import { Timestamp } from "../../../../../../../google/protobuf/timestamp";
4
+ import { ServiceType } from '@protobuf-ts/runtime-rpc';
5
+ import { WireType } from '@protobuf-ts/runtime';
6
+ import type { BinaryWriteOptions } from '@protobuf-ts/runtime';
7
+ import type { IBinaryWriter } from '@protobuf-ts/runtime';
8
+ import type { BinaryReadOptions } from '@protobuf-ts/runtime';
9
+ import type { IBinaryReader } from '@protobuf-ts/runtime';
10
+ import { UnknownFieldHandler } from '@protobuf-ts/runtime';
11
+ import type { PartialMessage } from '@protobuf-ts/runtime';
12
+ import { reflectionMergePartial } from '@protobuf-ts/runtime';
13
+ import { MessageType } from '@protobuf-ts/runtime';
14
+ import { Timestamp } from '../../../../../../../google/protobuf/timestamp';
15
15
  /**
16
16
  * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI
17
17
  */
@@ -21,47 +21,47 @@ export interface LsAPI {
21
21
  * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.ListItem
22
22
  */
23
23
  export interface LsAPI_ListItem {
24
- /**
24
+ /**
25
25
  * name of the item in storage, without any prefixes
26
26
  *
27
27
  * @generated from protobuf field: string name = 1;
28
28
  */
29
- name: string;
30
- /**
29
+ name: string;
30
+ /**
31
31
  * size of item in bytes
32
32
  * is always zero for directories (is_dir = true)
33
33
  *
34
34
  * @generated from protobuf field: uint64 size = 2;
35
35
  */
36
- size: bigint;
37
- /**
36
+ size: bigint;
37
+ /**
38
38
  * is_dir is true for item, that can have subitems.
39
39
  *
40
40
  * @generated from protobuf field: bool is_dir = 3;
41
41
  */
42
- isDir: boolean;
43
- /**
42
+ isDir: boolean;
43
+ /**
44
44
  * full_name is the name of item absolute to storage root.
45
45
  * it is <directory> + <name>
46
46
  * The <delimiter>, used in names, is storage-specific and is NOT guaranteed to be '/'.
47
47
  *
48
48
  * @generated from protobuf field: string full_name = 10;
49
49
  */
50
- fullName: string;
51
- /**
50
+ fullName: string;
51
+ /**
52
52
  * directory, the item is located in. The value here is always a prefix of name:
53
53
  * name.HasPrefix(directory) is always true.
54
54
  *
55
55
  * @generated from protobuf field: string directory = 11;
56
56
  */
57
- directory: string;
58
- /**
57
+ directory: string;
58
+ /**
59
59
  * last_modified keeps the item last modification timestamp
60
60
  *
61
61
  * @generated from protobuf field: google.protobuf.Timestamp last_modified = 12;
62
62
  */
63
- lastModified?: Timestamp;
64
- /**
63
+ lastModified?: Timestamp;
64
+ /**
65
65
  * version of item in storage.
66
66
  * When storage supports versioning or provides checksums for the data stored,
67
67
  * the <version> field keeps that data.
@@ -72,7 +72,7 @@ export interface LsAPI_ListItem {
72
72
  *
73
73
  * @generated from protobuf field: string version = 13;
74
74
  */
75
- version: string;
75
+ version: string;
76
76
  }
77
77
  /**
78
78
  * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List
@@ -83,25 +83,25 @@ export interface LsAPI_List {
83
83
  * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Request
84
84
  */
85
85
  export interface LsAPI_List_Request {
86
- /**
86
+ /**
87
87
  * resource_id of 'LS/<Storage>' resource
88
88
  *
89
89
  * @generated from protobuf field: uint64 resource_id = 1;
90
90
  */
91
- resourceId: bigint;
92
- /**
91
+ resourceId: bigint;
92
+ /**
93
93
  * location to list, absolute to storage root. Only items, that have <full_name> starting
94
94
  * from <location> are included into list response.
95
95
  *
96
96
  * @generated from protobuf field: string location = 2;
97
97
  */
98
- location: string;
98
+ location: string;
99
99
  }
100
100
  /**
101
101
  * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Response
102
102
  */
103
103
  export interface LsAPI_List_Response {
104
- /**
104
+ /**
105
105
  * List of the full (absolute to storage root) names of items from storage.
106
106
  * E.g., for 'fs' storage each name will consist of names of all directories, where the
107
107
  * item is located, and the item name itself.
@@ -109,48 +109,51 @@ export interface LsAPI_List_Response {
109
109
  *
110
110
  * @generated from protobuf field: repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1;
111
111
  */
112
- items: LsAPI_ListItem[];
113
- /**
112
+ items: LsAPI_ListItem[];
113
+ /**
114
114
  * delimiter is path separator, used in this storage. Client can use it to parse item names into parts,
115
115
  * to extract directory names.
116
116
  *
117
117
  * @generated from protobuf field: string delimiter = 2;
118
118
  */
119
- delimiter: string;
119
+ delimiter: string;
120
120
  }
121
121
  // @generated message type with reflection information, may provide speed optimized methods
122
122
  class LsAPI$Type extends MessageType<LsAPI> {
123
- constructor() {
124
- super("MiLaboratories.Controller.Shared.LsAPI", []);
125
- }
126
- create(value?: PartialMessage<LsAPI>): LsAPI {
127
- const message = globalThis.Object.create((this.messagePrototype!));
128
- if (value !== undefined)
129
- reflectionMergePartial<LsAPI>(this, message, value);
130
- return message;
131
- }
132
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI): LsAPI {
133
- let message = target ?? this.create(), end = reader.pos + length;
134
- while (reader.pos < end) {
135
- let [fieldNo, wireType] = reader.tag();
136
- switch (fieldNo) {
137
- default:
138
- let u = options.readUnknownField;
139
- if (u === "throw")
140
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
141
- let d = reader.skip(wireType);
142
- if (u !== false)
143
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
144
- }
145
- }
146
- return message;
147
- }
148
- internalBinaryWrite(message: LsAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
149
- let u = options.writeUnknownFields;
150
- if (u !== false)
151
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
152
- return writer;
123
+ constructor() {
124
+ super('MiLaboratories.Controller.Shared.LsAPI', []);
125
+ }
126
+
127
+ create(value?: PartialMessage<LsAPI>): LsAPI {
128
+ const message = globalThis.Object.create((this.messagePrototype!));
129
+ if (value !== undefined)
130
+ reflectionMergePartial<LsAPI>(this, message, value);
131
+ return message;
132
+ }
133
+
134
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI): LsAPI {
135
+ const message = target ?? this.create(), end = reader.pos + length;
136
+ while (reader.pos < end) {
137
+ const [fieldNo, wireType] = reader.tag();
138
+ switch (fieldNo) {
139
+ default:
140
+ const u = options.readUnknownField;
141
+ if (u === 'throw')
142
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
143
+ const d = reader.skip(wireType);
144
+ if (u !== false)
145
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
146
+ }
153
147
  }
148
+ return message;
149
+ }
150
+
151
+ internalBinaryWrite(message: LsAPI, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
152
+ const u = options.writeUnknownFields;
153
+ if (u !== false)
154
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
155
+ return writer;
156
+ }
154
157
  }
155
158
  /**
156
159
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI
@@ -158,93 +161,96 @@ class LsAPI$Type extends MessageType<LsAPI> {
158
161
  export const LsAPI = new LsAPI$Type();
159
162
  // @generated message type with reflection information, may provide speed optimized methods
160
163
  class LsAPI_ListItem$Type extends MessageType<LsAPI_ListItem> {
161
- constructor() {
162
- super("MiLaboratories.Controller.Shared.LsAPI.ListItem", [
163
- { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
164
- { no: 2, name: "size", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
165
- { no: 3, name: "is_dir", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
166
- { no: 10, name: "full_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
167
- { no: 11, name: "directory", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
168
- { no: 12, name: "last_modified", kind: "message", T: () => Timestamp },
169
- { no: 13, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
170
- ]);
171
- }
172
- create(value?: PartialMessage<LsAPI_ListItem>): LsAPI_ListItem {
173
- const message = globalThis.Object.create((this.messagePrototype!));
174
- message.name = "";
175
- message.size = 0n;
176
- message.isDir = false;
177
- message.fullName = "";
178
- message.directory = "";
179
- message.version = "";
180
- if (value !== undefined)
181
- reflectionMergePartial<LsAPI_ListItem>(this, message, value);
182
- return message;
183
- }
184
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_ListItem): LsAPI_ListItem {
185
- let message = target ?? this.create(), end = reader.pos + length;
186
- while (reader.pos < end) {
187
- let [fieldNo, wireType] = reader.tag();
188
- switch (fieldNo) {
189
- case /* string name */ 1:
190
- message.name = reader.string();
191
- break;
192
- case /* uint64 size */ 2:
193
- message.size = reader.uint64().toBigInt();
194
- break;
195
- case /* bool is_dir */ 3:
196
- message.isDir = reader.bool();
197
- break;
198
- case /* string full_name */ 10:
199
- message.fullName = reader.string();
200
- break;
201
- case /* string directory */ 11:
202
- message.directory = reader.string();
203
- break;
204
- case /* google.protobuf.Timestamp last_modified */ 12:
205
- message.lastModified = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastModified);
206
- break;
207
- case /* string version */ 13:
208
- message.version = reader.string();
209
- break;
210
- default:
211
- let u = options.readUnknownField;
212
- if (u === "throw")
213
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
214
- let d = reader.skip(wireType);
215
- if (u !== false)
216
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
217
- }
218
- }
219
- return message;
220
- }
221
- internalBinaryWrite(message: LsAPI_ListItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
222
- /* string name = 1; */
223
- if (message.name !== "")
224
- writer.tag(1, WireType.LengthDelimited).string(message.name);
225
- /* uint64 size = 2; */
226
- if (message.size !== 0n)
227
- writer.tag(2, WireType.Varint).uint64(message.size);
228
- /* bool is_dir = 3; */
229
- if (message.isDir !== false)
230
- writer.tag(3, WireType.Varint).bool(message.isDir);
231
- /* string full_name = 10; */
232
- if (message.fullName !== "")
233
- writer.tag(10, WireType.LengthDelimited).string(message.fullName);
234
- /* string directory = 11; */
235
- if (message.directory !== "")
236
- writer.tag(11, WireType.LengthDelimited).string(message.directory);
237
- /* google.protobuf.Timestamp last_modified = 12; */
238
- if (message.lastModified)
239
- Timestamp.internalBinaryWrite(message.lastModified, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
240
- /* string version = 13; */
241
- if (message.version !== "")
242
- writer.tag(13, WireType.LengthDelimited).string(message.version);
243
- let u = options.writeUnknownFields;
244
- if (u !== false)
245
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
246
- return writer;
164
+ constructor() {
165
+ super('MiLaboratories.Controller.Shared.LsAPI.ListItem', [
166
+ { no: 1, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
167
+ { no: 2, name: 'size', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
168
+ { no: 3, name: 'is_dir', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
169
+ { no: 10, name: 'full_name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
170
+ { no: 11, name: 'directory', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
171
+ { no: 12, name: 'last_modified', kind: 'message', T: () => Timestamp },
172
+ { no: 13, name: 'version', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
173
+ ]);
174
+ }
175
+
176
+ create(value?: PartialMessage<LsAPI_ListItem>): LsAPI_ListItem {
177
+ const message = globalThis.Object.create((this.messagePrototype!));
178
+ message.name = '';
179
+ message.size = 0n;
180
+ message.isDir = false;
181
+ message.fullName = '';
182
+ message.directory = '';
183
+ message.version = '';
184
+ if (value !== undefined)
185
+ reflectionMergePartial<LsAPI_ListItem>(this, message, value);
186
+ return message;
187
+ }
188
+
189
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_ListItem): LsAPI_ListItem {
190
+ const message = target ?? this.create(), end = reader.pos + length;
191
+ while (reader.pos < end) {
192
+ const [fieldNo, wireType] = reader.tag();
193
+ switch (fieldNo) {
194
+ case /* string name */ 1:
195
+ message.name = reader.string();
196
+ break;
197
+ case /* uint64 size */ 2:
198
+ message.size = reader.uint64().toBigInt();
199
+ break;
200
+ case /* bool is_dir */ 3:
201
+ message.isDir = reader.bool();
202
+ break;
203
+ case /* string full_name */ 10:
204
+ message.fullName = reader.string();
205
+ break;
206
+ case /* string directory */ 11:
207
+ message.directory = reader.string();
208
+ break;
209
+ case /* google.protobuf.Timestamp last_modified */ 12:
210
+ message.lastModified = Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastModified);
211
+ break;
212
+ case /* string version */ 13:
213
+ message.version = reader.string();
214
+ break;
215
+ default:
216
+ const u = options.readUnknownField;
217
+ if (u === 'throw')
218
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
219
+ const d = reader.skip(wireType);
220
+ if (u !== false)
221
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
222
+ }
247
223
  }
224
+ return message;
225
+ }
226
+
227
+ internalBinaryWrite(message: LsAPI_ListItem, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
228
+ /* string name = 1; */
229
+ if (message.name !== '')
230
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
231
+ /* uint64 size = 2; */
232
+ if (message.size !== 0n)
233
+ writer.tag(2, WireType.Varint).uint64(message.size);
234
+ /* bool is_dir = 3; */
235
+ if (message.isDir !== false)
236
+ writer.tag(3, WireType.Varint).bool(message.isDir);
237
+ /* string full_name = 10; */
238
+ if (message.fullName !== '')
239
+ writer.tag(10, WireType.LengthDelimited).string(message.fullName);
240
+ /* string directory = 11; */
241
+ if (message.directory !== '')
242
+ writer.tag(11, WireType.LengthDelimited).string(message.directory);
243
+ /* google.protobuf.Timestamp last_modified = 12; */
244
+ if (message.lastModified)
245
+ Timestamp.internalBinaryWrite(message.lastModified, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
246
+ /* string version = 13; */
247
+ if (message.version !== '')
248
+ writer.tag(13, WireType.LengthDelimited).string(message.version);
249
+ const u = options.writeUnknownFields;
250
+ if (u !== false)
251
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
252
+ return writer;
253
+ }
248
254
  }
249
255
  /**
250
256
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.ListItem
@@ -252,37 +258,40 @@ class LsAPI_ListItem$Type extends MessageType<LsAPI_ListItem> {
252
258
  export const LsAPI_ListItem = new LsAPI_ListItem$Type();
253
259
  // @generated message type with reflection information, may provide speed optimized methods
254
260
  class LsAPI_List$Type extends MessageType<LsAPI_List> {
255
- constructor() {
256
- super("MiLaboratories.Controller.Shared.LsAPI.List", []);
257
- }
258
- create(value?: PartialMessage<LsAPI_List>): LsAPI_List {
259
- const message = globalThis.Object.create((this.messagePrototype!));
260
- if (value !== undefined)
261
- reflectionMergePartial<LsAPI_List>(this, message, value);
262
- return message;
263
- }
264
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List): LsAPI_List {
265
- let message = target ?? this.create(), end = reader.pos + length;
266
- while (reader.pos < end) {
267
- let [fieldNo, wireType] = reader.tag();
268
- switch (fieldNo) {
269
- default:
270
- let u = options.readUnknownField;
271
- if (u === "throw")
272
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
273
- let d = reader.skip(wireType);
274
- if (u !== false)
275
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
276
- }
277
- }
278
- return message;
279
- }
280
- internalBinaryWrite(message: LsAPI_List, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
281
- let u = options.writeUnknownFields;
282
- if (u !== false)
283
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
284
- return writer;
261
+ constructor() {
262
+ super('MiLaboratories.Controller.Shared.LsAPI.List', []);
263
+ }
264
+
265
+ create(value?: PartialMessage<LsAPI_List>): LsAPI_List {
266
+ const message = globalThis.Object.create((this.messagePrototype!));
267
+ if (value !== undefined)
268
+ reflectionMergePartial<LsAPI_List>(this, message, value);
269
+ return message;
270
+ }
271
+
272
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List): LsAPI_List {
273
+ const message = target ?? this.create(), end = reader.pos + length;
274
+ while (reader.pos < end) {
275
+ const [fieldNo, wireType] = reader.tag();
276
+ switch (fieldNo) {
277
+ default:
278
+ const u = options.readUnknownField;
279
+ if (u === 'throw')
280
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
281
+ const d = reader.skip(wireType);
282
+ if (u !== false)
283
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
284
+ }
285
285
  }
286
+ return message;
287
+ }
288
+
289
+ internalBinaryWrite(message: LsAPI_List, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
290
+ const u = options.writeUnknownFields;
291
+ if (u !== false)
292
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
293
+ return writer;
294
+ }
286
295
  }
287
296
  /**
288
297
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List
@@ -290,54 +299,57 @@ class LsAPI_List$Type extends MessageType<LsAPI_List> {
290
299
  export const LsAPI_List = new LsAPI_List$Type();
291
300
  // @generated message type with reflection information, may provide speed optimized methods
292
301
  class LsAPI_List_Request$Type extends MessageType<LsAPI_List_Request> {
293
- constructor() {
294
- super("MiLaboratories.Controller.Shared.LsAPI.List.Request", [
295
- { no: 1, name: "resource_id", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
296
- { no: 2, name: "location", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
297
- ]);
298
- }
299
- create(value?: PartialMessage<LsAPI_List_Request>): LsAPI_List_Request {
300
- const message = globalThis.Object.create((this.messagePrototype!));
301
- message.resourceId = 0n;
302
- message.location = "";
303
- if (value !== undefined)
304
- reflectionMergePartial<LsAPI_List_Request>(this, message, value);
305
- return message;
306
- }
307
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List_Request): LsAPI_List_Request {
308
- let message = target ?? this.create(), end = reader.pos + length;
309
- while (reader.pos < end) {
310
- let [fieldNo, wireType] = reader.tag();
311
- switch (fieldNo) {
312
- case /* uint64 resource_id */ 1:
313
- message.resourceId = reader.uint64().toBigInt();
314
- break;
315
- case /* string location */ 2:
316
- message.location = reader.string();
317
- break;
318
- default:
319
- let u = options.readUnknownField;
320
- if (u === "throw")
321
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
322
- let d = reader.skip(wireType);
323
- if (u !== false)
324
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
325
- }
326
- }
327
- return message;
328
- }
329
- internalBinaryWrite(message: LsAPI_List_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
330
- /* uint64 resource_id = 1; */
331
- if (message.resourceId !== 0n)
332
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
333
- /* string location = 2; */
334
- if (message.location !== "")
335
- writer.tag(2, WireType.LengthDelimited).string(message.location);
336
- let u = options.writeUnknownFields;
337
- if (u !== false)
338
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
339
- return writer;
302
+ constructor() {
303
+ super('MiLaboratories.Controller.Shared.LsAPI.List.Request', [
304
+ { no: 1, name: 'resource_id', kind: 'scalar', T: 4 /* ScalarType.UINT64 */, L: 0 /* LongType.BIGINT */ },
305
+ { no: 2, name: 'location', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
306
+ ]);
307
+ }
308
+
309
+ create(value?: PartialMessage<LsAPI_List_Request>): LsAPI_List_Request {
310
+ const message = globalThis.Object.create((this.messagePrototype!));
311
+ message.resourceId = 0n;
312
+ message.location = '';
313
+ if (value !== undefined)
314
+ reflectionMergePartial<LsAPI_List_Request>(this, message, value);
315
+ return message;
316
+ }
317
+
318
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List_Request): LsAPI_List_Request {
319
+ const message = target ?? this.create(), end = reader.pos + length;
320
+ while (reader.pos < end) {
321
+ const [fieldNo, wireType] = reader.tag();
322
+ switch (fieldNo) {
323
+ case /* uint64 resource_id */ 1:
324
+ message.resourceId = reader.uint64().toBigInt();
325
+ break;
326
+ case /* string location */ 2:
327
+ message.location = reader.string();
328
+ break;
329
+ default:
330
+ const u = options.readUnknownField;
331
+ if (u === 'throw')
332
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
333
+ const d = reader.skip(wireType);
334
+ if (u !== false)
335
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
336
+ }
340
337
  }
338
+ return message;
339
+ }
340
+
341
+ internalBinaryWrite(message: LsAPI_List_Request, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
342
+ /* uint64 resource_id = 1; */
343
+ if (message.resourceId !== 0n)
344
+ writer.tag(1, WireType.Varint).uint64(message.resourceId);
345
+ /* string location = 2; */
346
+ if (message.location !== '')
347
+ writer.tag(2, WireType.LengthDelimited).string(message.location);
348
+ const u = options.writeUnknownFields;
349
+ if (u !== false)
350
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
351
+ return writer;
352
+ }
341
353
  }
342
354
  /**
343
355
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Request
@@ -345,54 +357,57 @@ class LsAPI_List_Request$Type extends MessageType<LsAPI_List_Request> {
345
357
  export const LsAPI_List_Request = new LsAPI_List_Request$Type();
346
358
  // @generated message type with reflection information, may provide speed optimized methods
347
359
  class LsAPI_List_Response$Type extends MessageType<LsAPI_List_Response> {
348
- constructor() {
349
- super("MiLaboratories.Controller.Shared.LsAPI.List.Response", [
350
- { no: 1, name: "items", kind: "message", repeat: 1 /*RepeatType.PACKED*/, T: () => LsAPI_ListItem },
351
- { no: 2, name: "delimiter", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
352
- ]);
353
- }
354
- create(value?: PartialMessage<LsAPI_List_Response>): LsAPI_List_Response {
355
- const message = globalThis.Object.create((this.messagePrototype!));
356
- message.items = [];
357
- message.delimiter = "";
358
- if (value !== undefined)
359
- reflectionMergePartial<LsAPI_List_Response>(this, message, value);
360
- return message;
361
- }
362
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List_Response): LsAPI_List_Response {
363
- let message = target ?? this.create(), end = reader.pos + length;
364
- while (reader.pos < end) {
365
- let [fieldNo, wireType] = reader.tag();
366
- switch (fieldNo) {
367
- case /* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items */ 1:
368
- message.items.push(LsAPI_ListItem.internalBinaryRead(reader, reader.uint32(), options));
369
- break;
370
- case /* string delimiter */ 2:
371
- message.delimiter = reader.string();
372
- break;
373
- default:
374
- let u = options.readUnknownField;
375
- if (u === "throw")
376
- throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
377
- let d = reader.skip(wireType);
378
- if (u !== false)
379
- (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
380
- }
381
- }
382
- return message;
383
- }
384
- internalBinaryWrite(message: LsAPI_List_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
385
- /* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1; */
386
- for (let i = 0; i < message.items.length; i++)
387
- LsAPI_ListItem.internalBinaryWrite(message.items[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
388
- /* string delimiter = 2; */
389
- if (message.delimiter !== "")
390
- writer.tag(2, WireType.LengthDelimited).string(message.delimiter);
391
- let u = options.writeUnknownFields;
392
- if (u !== false)
393
- (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
394
- return writer;
360
+ constructor() {
361
+ super('MiLaboratories.Controller.Shared.LsAPI.List.Response', [
362
+ { no: 1, name: 'items', kind: 'message', repeat: 1 /* RepeatType.PACKED */, T: () => LsAPI_ListItem },
363
+ { no: 2, name: 'delimiter', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
364
+ ]);
365
+ }
366
+
367
+ create(value?: PartialMessage<LsAPI_List_Response>): LsAPI_List_Response {
368
+ const message = globalThis.Object.create((this.messagePrototype!));
369
+ message.items = [];
370
+ message.delimiter = '';
371
+ if (value !== undefined)
372
+ reflectionMergePartial<LsAPI_List_Response>(this, message, value);
373
+ return message;
374
+ }
375
+
376
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LsAPI_List_Response): LsAPI_List_Response {
377
+ const message = target ?? this.create(), end = reader.pos + length;
378
+ while (reader.pos < end) {
379
+ const [fieldNo, wireType] = reader.tag();
380
+ switch (fieldNo) {
381
+ case /* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items */ 1:
382
+ message.items.push(LsAPI_ListItem.internalBinaryRead(reader, reader.uint32(), options));
383
+ break;
384
+ case /* string delimiter */ 2:
385
+ message.delimiter = reader.string();
386
+ break;
387
+ default:
388
+ const u = options.readUnknownField;
389
+ if (u === 'throw')
390
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
391
+ const d = reader.skip(wireType);
392
+ if (u !== false)
393
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
394
+ }
395
395
  }
396
+ return message;
397
+ }
398
+
399
+ internalBinaryWrite(message: LsAPI_List_Response, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
400
+ /* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1; */
401
+ for (let i = 0; i < message.items.length; i++)
402
+ LsAPI_ListItem.internalBinaryWrite(message.items[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
403
+ /* string delimiter = 2; */
404
+ if (message.delimiter !== '')
405
+ writer.tag(2, WireType.LengthDelimited).string(message.delimiter);
406
+ const u = options.writeUnknownFields;
407
+ if (u !== false)
408
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
409
+ return writer;
410
+ }
396
411
  }
397
412
  /**
398
413
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Response
@@ -401,6 +416,6 @@ export const LsAPI_List_Response = new LsAPI_List_Response$Type();
401
416
  /**
402
417
  * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.LS
403
418
  */
404
- export const LS = new ServiceType("MiLaboratories.Controller.Shared.LS", [
405
- { name: "List", options: {}, I: LsAPI_List_Request, O: LsAPI_List_Response }
419
+ export const LS = new ServiceType('MiLaboratories.Controller.Shared.LS', [
420
+ { name: 'List', options: {}, I: LsAPI_List_Request, O: LsAPI_List_Response },
406
421
  ]);