@milaboratories/pl-drivers 1.6.3 → 1.6.5

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 (82) hide show
  1. package/dist/index.js +2 -2
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +2026 -2480
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts +48 -0
  6. package/dist/proto/github.com/googleapis/googleapis/google/rpc/status.d.ts.map +1 -0
  7. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts +2 -2
  8. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.d.ts.map +1 -1
  9. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts +13 -5
  10. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.d.ts.map +1 -1
  11. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts +2 -2
  12. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.d.ts.map +1 -1
  13. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts +11 -11
  14. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.d.ts.map +1 -1
  15. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts +4 -4
  16. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.d.ts.map +1 -1
  17. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts +10 -10
  18. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.d.ts.map +1 -1
  19. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts +10 -10
  20. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.d.ts.map +1 -1
  21. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts +25 -25
  22. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.d.ts.map +1 -1
  23. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts +8 -8
  24. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.d.ts.map +1 -1
  25. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts +24 -16
  26. package/dist/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.d.ts.map +1 -1
  27. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts +277 -0
  28. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.d.ts.map +1 -0
  29. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts +5344 -0
  30. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api.d.ts.map +1 -0
  31. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts +530 -0
  32. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.d.ts.map +1 -0
  33. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts +82 -0
  34. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.d.ts.map +1 -0
  35. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts +91 -0
  36. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/import.d.ts.map +1 -0
  37. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts +251 -0
  38. package/dist/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.d.ts.map +1 -0
  39. package/dist/proto/google/api/http.d.ts +46 -42
  40. package/dist/proto/google/api/http.d.ts.map +1 -1
  41. package/dist/proto/google/protobuf/any.d.ts +172 -0
  42. package/dist/proto/google/protobuf/any.d.ts.map +1 -0
  43. package/dist/proto/google/protobuf/descriptor.d.ts +1003 -170
  44. package/dist/proto/google/protobuf/descriptor.d.ts.map +1 -1
  45. package/dist/proto/google/protobuf/duration.d.ts +2 -3
  46. package/dist/proto/google/protobuf/duration.d.ts.map +1 -1
  47. package/dist/proto/google/protobuf/empty.d.ts +27 -0
  48. package/dist/proto/google/protobuf/empty.d.ts.map +1 -0
  49. package/dist/proto/google/protobuf/struct.d.ts +179 -0
  50. package/dist/proto/google/protobuf/struct.d.ts.map +1 -0
  51. package/dist/proto/google/protobuf/timestamp.d.ts +3 -6
  52. package/dist/proto/google/protobuf/timestamp.d.ts.map +1 -1
  53. package/dist/proto/google/protobuf/wrappers.d.ts +327 -0
  54. package/dist/proto/google/protobuf/wrappers.d.ts.map +1 -0
  55. package/package.json +5 -5
  56. package/src/clients/download.ts +1 -1
  57. package/src/clients/upload.ts +1 -1
  58. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +125 -0
  59. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +25 -40
  60. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +252 -396
  61. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +25 -37
  62. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +341 -453
  63. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +39 -65
  64. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +398 -630
  65. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +126 -194
  66. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +626 -964
  67. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.client.ts +102 -153
  68. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/uploadapi/protocol.ts +741 -1082
  69. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +406 -0
  70. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +14986 -0
  71. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1474 -0
  72. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +181 -0
  73. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +251 -0
  74. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +693 -0
  75. package/src/proto/google/api/http.ts +336 -492
  76. package/src/proto/google/protobuf/any.ts +326 -0
  77. package/src/proto/google/protobuf/descriptor.ts +4383 -4772
  78. package/src/proto/google/protobuf/duration.ts +122 -169
  79. package/src/proto/google/protobuf/empty.ts +94 -0
  80. package/src/proto/google/protobuf/struct.ts +484 -0
  81. package/src/proto/google/protobuf/timestamp.ts +150 -225
  82. package/src/proto/google/protobuf/wrappers.ts +785 -0
@@ -1,157 +1,156 @@
1
- // @generated by protobuf-ts 2.9.4 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
1
+ // @generated by protobuf-ts 2.11.0 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 { UnknownFieldHandler } from '@protobuf-ts/runtime';
9
- import type { BinaryReadOptions } from '@protobuf-ts/runtime';
10
- import type { IBinaryReader } 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
  */
18
- export interface LsAPI {}
18
+ export interface LsAPI {
19
+ }
19
20
  /**
20
21
  * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.ListItem
21
22
  */
22
23
  export interface LsAPI_ListItem {
23
- /**
24
- * name of the item in storage, without any prefixes
25
- *
26
- * @generated from protobuf field: string name = 1;
27
- */
28
- name: string;
29
- /**
30
- * size of item in bytes
31
- * is always zero for directories (is_dir = true)
32
- *
33
- * @generated from protobuf field: uint64 size = 2;
34
- */
35
- size: bigint;
36
- /**
37
- * is_dir is true for item, that can have subitems.
38
- *
39
- * @generated from protobuf field: bool is_dir = 3;
40
- */
41
- isDir: boolean;
42
- /**
43
- * full_name is the name of item absolute to storage root.
44
- * it is <directory> + <name>
45
- * The <delimiter>, used in names, is storage-specific and is NOT guaranteed to be '/'.
46
- *
47
- * @generated from protobuf field: string full_name = 10;
48
- */
49
- fullName: string;
50
- /**
51
- * directory, the item is located in. The value here is always a prefix of name:
52
- * name.HasPrefix(directory) is always true.
53
- *
54
- * @generated from protobuf field: string directory = 11;
55
- */
56
- directory: string;
57
- /**
58
- * last_modified keeps the item last modification timestamp
59
- *
60
- * @generated from protobuf field: google.protobuf.Timestamp last_modified = 12;
61
- */
62
- lastModified?: Timestamp;
63
- /**
64
- * version of item in storage.
65
- * When storage supports versioning or provides checksums for the data stored,
66
- * the <version> field keeps that data.
67
- * If not - it keeps the any simple combination of item attributes, that helps to
68
- * detect if the contents of item has changed, e.g. <size>+<mtime>.
69
- * Anyway, client should not try to interpret this field, but should provide it to the Platform
70
- * in operations with given item (like BlobImportInternal) to help Platform with deduplication.
71
- *
72
- * @generated from protobuf field: string version = 13;
73
- */
74
- version: string;
24
+ /**
25
+ * name of the item in storage, without any prefixes
26
+ *
27
+ * @generated from protobuf field: string name = 1
28
+ */
29
+ name: string;
30
+ /**
31
+ * size of item in bytes
32
+ * is always zero for directories (is_dir = true)
33
+ *
34
+ * @generated from protobuf field: uint64 size = 2
35
+ */
36
+ size: bigint;
37
+ /**
38
+ * is_dir is true for item, that can have subitems.
39
+ *
40
+ * @generated from protobuf field: bool is_dir = 3
41
+ */
42
+ isDir: boolean;
43
+ /**
44
+ * full_name is the name of item absolute to storage root.
45
+ * it is <directory> + <name>
46
+ * The <delimiter>, used in names, is storage-specific and is NOT guaranteed to be '/'.
47
+ *
48
+ * @generated from protobuf field: string full_name = 10
49
+ */
50
+ fullName: string;
51
+ /**
52
+ * directory, the item is located in. The value here is always a prefix of name:
53
+ * name.HasPrefix(directory) is always true.
54
+ *
55
+ * @generated from protobuf field: string directory = 11
56
+ */
57
+ directory: string;
58
+ /**
59
+ * last_modified keeps the item last modification timestamp
60
+ *
61
+ * @generated from protobuf field: google.protobuf.Timestamp last_modified = 12
62
+ */
63
+ lastModified?: Timestamp;
64
+ /**
65
+ * version of item in storage.
66
+ * When storage supports versioning or provides checksums for the data stored,
67
+ * the <version> field keeps that data.
68
+ * If not - it keeps the any simple combination of item attributes, that helps to
69
+ * detect if the contents of item has changed, e.g. <size>+<mtime>.
70
+ * Anyway, client should not try to interpret this field, but should provide it to the Platform
71
+ * in operations with given item (like BlobImportInternal) to help Platform with deduplication.
72
+ *
73
+ * @generated from protobuf field: string version = 13
74
+ */
75
+ version: string;
75
76
  }
76
77
  /**
77
78
  * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List
78
79
  */
79
- export interface LsAPI_List {}
80
+ export interface LsAPI_List {
81
+ }
80
82
  /**
81
83
  * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Request
82
84
  */
83
85
  export interface LsAPI_List_Request {
84
- /**
85
- * resource_id of 'LS/<Storage>' resource
86
- *
87
- * @generated from protobuf field: uint64 resource_id = 1;
88
- */
89
- resourceId: bigint;
90
- /**
91
- * location to list, absolute to storage root. Only items, that have <full_name> starting
92
- * from <location> are included into list response.
93
- *
94
- * @generated from protobuf field: string location = 2;
95
- */
96
- location: string;
86
+ /**
87
+ * resource_id of 'LS/<Storage>' resource
88
+ *
89
+ * @generated from protobuf field: uint64 resource_id = 1
90
+ */
91
+ resourceId: bigint;
92
+ /**
93
+ * location to list, absolute to storage root. Only items, that have <full_name> starting
94
+ * from <location> are included into list response.
95
+ *
96
+ * @generated from protobuf field: string location = 2
97
+ */
98
+ location: string;
97
99
  }
98
100
  /**
99
101
  * @generated from protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Response
100
102
  */
101
103
  export interface LsAPI_List_Response {
102
- /**
103
- * List of the full (absolute to storage root) names of items from storage.
104
- * E.g., for 'fs' storage each name will consist of names of all directories, where the
105
- * item is located, and the item name itself.
106
- * The delimiter, used in names, is storage-specific and is NOT guaranteed to be '/'.
107
- *
108
- * @generated from protobuf field: repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1;
109
- */
110
- items: LsAPI_ListItem[];
111
- /**
112
- * delimiter is path separator, used in this storage. Client can use it to parse item names into parts,
113
- * to extract directory names.
114
- *
115
- * @generated from protobuf field: string delimiter = 2;
116
- */
117
- delimiter: string;
104
+ /**
105
+ * List of the full (absolute to storage root) names of items from storage.
106
+ * E.g., for 'fs' storage each name will consist of names of all directories, where the
107
+ * item is located, and the item name itself.
108
+ * The delimiter, used in names, is storage-specific and is NOT guaranteed to be '/'.
109
+ *
110
+ * @generated from protobuf field: repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1
111
+ */
112
+ items: LsAPI_ListItem[];
113
+ /**
114
+ * delimiter is path separator, used in this storage. Client can use it to parse item names into parts,
115
+ * to extract directory names.
116
+ *
117
+ * @generated from protobuf field: string delimiter = 2
118
+ */
119
+ delimiter: string;
118
120
  }
119
121
  // @generated message type with reflection information, may provide speed optimized methods
120
122
  class LsAPI$Type extends MessageType<LsAPI> {
121
- constructor() {
122
- super('MiLaboratories.Controller.Shared.LsAPI', []);
123
- }
124
-
125
- create(value?: PartialMessage<LsAPI>): LsAPI {
126
- const message = globalThis.Object.create(this.messagePrototype!);
127
- if (value !== undefined)
128
- reflectionMergePartial<LsAPI>(this, message, value);
129
- return message;
130
- }
131
-
132
- internalBinaryRead(
133
- reader: IBinaryReader,
134
- length: number,
135
- options: BinaryReadOptions,
136
- target?: LsAPI,
137
- ): LsAPI {
138
- return target ?? this.create();
139
- }
140
-
141
- internalBinaryWrite(
142
- message: LsAPI,
143
- writer: IBinaryWriter,
144
- options: BinaryWriteOptions,
145
- ): IBinaryWriter {
146
- const u = options.writeUnknownFields;
147
- if (u !== false)
148
- (u == true ? UnknownFieldHandler.onWrite : u)(
149
- this.typeName,
150
- message,
151
- writer,
152
- );
153
- return writer;
154
- }
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;
153
+ }
155
154
  }
156
155
  /**
157
156
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI
@@ -159,133 +158,93 @@ class LsAPI$Type extends MessageType<LsAPI> {
159
158
  export const LsAPI = new LsAPI$Type();
160
159
  // @generated message type with reflection information, may provide speed optimized methods
161
160
  class LsAPI_ListItem$Type extends MessageType<LsAPI_ListItem> {
162
- constructor() {
163
- super('MiLaboratories.Controller.Shared.LsAPI.ListItem', [
164
- { no: 1, name: 'name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
165
- {
166
- no: 2,
167
- name: 'size',
168
- kind: 'scalar',
169
- T: 4 /* ScalarType.UINT64 */,
170
- L: 0, /* LongType.BIGINT */
171
- },
172
- { no: 3, name: 'is_dir', kind: 'scalar', T: 8 /* ScalarType.BOOL */ },
173
- { no: 10, name: 'full_name', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
174
- { no: 11, name: 'directory', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
175
- { no: 12, name: 'last_modified', kind: 'message', T: () => Timestamp },
176
- { no: 13, name: 'version', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
177
- ]);
178
- }
179
-
180
- create(value?: PartialMessage<LsAPI_ListItem>): LsAPI_ListItem {
181
- const message = globalThis.Object.create(this.messagePrototype!);
182
- message.name = '';
183
- message.size = 0n;
184
- message.isDir = false;
185
- message.fullName = '';
186
- message.directory = '';
187
- message.version = '';
188
- if (value !== undefined)
189
- reflectionMergePartial<LsAPI_ListItem>(this, message, value);
190
- return message;
191
- }
192
-
193
- internalBinaryRead(
194
- reader: IBinaryReader,
195
- length: number,
196
- options: BinaryReadOptions,
197
- target?: LsAPI_ListItem,
198
- ): LsAPI_ListItem {
199
- const message = target ?? this.create(),
200
- end = reader.pos + length;
201
- while (reader.pos < end) {
202
- const [fieldNo, wireType] = reader.tag();
203
- switch (fieldNo) {
204
- case /* string name */ 1:
205
- message.name = reader.string();
206
- break;
207
- case /* uint64 size */ 2:
208
- message.size = reader.uint64().toBigInt();
209
- break;
210
- case /* bool is_dir */ 3:
211
- message.isDir = reader.bool();
212
- break;
213
- case /* string full_name */ 10:
214
- message.fullName = reader.string();
215
- break;
216
- case /* string directory */ 11:
217
- message.directory = reader.string();
218
- break;
219
- case /* google.protobuf.Timestamp last_modified */ 12:
220
- message.lastModified = Timestamp.internalBinaryRead(
221
- reader,
222
- reader.uint32(),
223
- options,
224
- message.lastModified,
225
- );
226
- break;
227
- case /* string version */ 13:
228
- message.version = reader.string();
229
- break;
230
- default:
231
- const u = options.readUnknownField;
232
- if (u === 'throw')
233
- throw new globalThis.Error(
234
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
235
- );
236
- const d = reader.skip(wireType);
237
- if (u !== false)
238
- (u === true ? UnknownFieldHandler.onRead : u)(
239
- this.typeName,
240
- message,
241
- fieldNo,
242
- wireType,
243
- d,
244
- );
245
- }
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;
246
247
  }
247
- return message;
248
- }
249
-
250
- internalBinaryWrite(
251
- message: LsAPI_ListItem,
252
- writer: IBinaryWriter,
253
- options: BinaryWriteOptions,
254
- ): IBinaryWriter {
255
- /* string name = 1; */
256
- if (message.name !== '')
257
- writer.tag(1, WireType.LengthDelimited).string(message.name);
258
- /* uint64 size = 2; */
259
- if (message.size !== 0n)
260
- writer.tag(2, WireType.Varint).uint64(message.size);
261
- /* bool is_dir = 3; */
262
- if (message.isDir !== false)
263
- writer.tag(3, WireType.Varint).bool(message.isDir);
264
- /* string full_name = 10; */
265
- if (message.fullName !== '')
266
- writer.tag(10, WireType.LengthDelimited).string(message.fullName);
267
- /* string directory = 11; */
268
- if (message.directory !== '')
269
- writer.tag(11, WireType.LengthDelimited).string(message.directory);
270
- /* google.protobuf.Timestamp last_modified = 12; */
271
- if (message.lastModified)
272
- Timestamp.internalBinaryWrite(
273
- message.lastModified,
274
- writer.tag(12, WireType.LengthDelimited).fork(),
275
- options,
276
- ).join();
277
- /* string version = 13; */
278
- if (message.version !== '')
279
- writer.tag(13, WireType.LengthDelimited).string(message.version);
280
- const u = options.writeUnknownFields;
281
- if (u !== false)
282
- (u == true ? UnknownFieldHandler.onWrite : u)(
283
- this.typeName,
284
- message,
285
- writer,
286
- );
287
- return writer;
288
- }
289
248
  }
290
249
  /**
291
250
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.ListItem
@@ -293,40 +252,37 @@ class LsAPI_ListItem$Type extends MessageType<LsAPI_ListItem> {
293
252
  export const LsAPI_ListItem = new LsAPI_ListItem$Type();
294
253
  // @generated message type with reflection information, may provide speed optimized methods
295
254
  class LsAPI_List$Type extends MessageType<LsAPI_List> {
296
- constructor() {
297
- super('MiLaboratories.Controller.Shared.LsAPI.List', []);
298
- }
299
-
300
- create(value?: PartialMessage<LsAPI_List>): LsAPI_List {
301
- const message = globalThis.Object.create(this.messagePrototype!);
302
- if (value !== undefined)
303
- reflectionMergePartial<LsAPI_List>(this, message, value);
304
- return message;
305
- }
306
-
307
- internalBinaryRead(
308
- reader: IBinaryReader,
309
- length: number,
310
- options: BinaryReadOptions,
311
- target?: LsAPI_List,
312
- ): LsAPI_List {
313
- return target ?? this.create();
314
- }
315
-
316
- internalBinaryWrite(
317
- message: LsAPI_List,
318
- writer: IBinaryWriter,
319
- options: BinaryWriteOptions,
320
- ): IBinaryWriter {
321
- const u = options.writeUnknownFields;
322
- if (u !== false)
323
- (u == true ? UnknownFieldHandler.onWrite : u)(
324
- this.typeName,
325
- message,
326
- writer,
327
- );
328
- return writer;
329
- }
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;
285
+ }
330
286
  }
331
287
  /**
332
288
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List
@@ -334,85 +290,54 @@ class LsAPI_List$Type extends MessageType<LsAPI_List> {
334
290
  export const LsAPI_List = new LsAPI_List$Type();
335
291
  // @generated message type with reflection information, may provide speed optimized methods
336
292
  class LsAPI_List_Request$Type extends MessageType<LsAPI_List_Request> {
337
- constructor() {
338
- super('MiLaboratories.Controller.Shared.LsAPI.List.Request', [
339
- {
340
- no: 1,
341
- name: 'resource_id',
342
- kind: 'scalar',
343
- T: 4 /* ScalarType.UINT64 */,
344
- L: 0, /* LongType.BIGINT */
345
- },
346
- { no: 2, name: 'location', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
347
- ]);
348
- }
349
-
350
- create(value?: PartialMessage<LsAPI_List_Request>): LsAPI_List_Request {
351
- const message = globalThis.Object.create(this.messagePrototype!);
352
- message.resourceId = 0n;
353
- message.location = '';
354
- if (value !== undefined)
355
- reflectionMergePartial<LsAPI_List_Request>(this, message, value);
356
- return message;
357
- }
358
-
359
- internalBinaryRead(
360
- reader: IBinaryReader,
361
- length: number,
362
- options: BinaryReadOptions,
363
- target?: LsAPI_List_Request,
364
- ): LsAPI_List_Request {
365
- const message = target ?? this.create(),
366
- end = reader.pos + length;
367
- while (reader.pos < end) {
368
- const [fieldNo, wireType] = reader.tag();
369
- switch (fieldNo) {
370
- case /* uint64 resource_id */ 1:
371
- message.resourceId = reader.uint64().toBigInt();
372
- break;
373
- case /* string location */ 2:
374
- message.location = reader.string();
375
- break;
376
- default:
377
- const u = options.readUnknownField;
378
- if (u === 'throw')
379
- throw new globalThis.Error(
380
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
381
- );
382
- const d = reader.skip(wireType);
383
- if (u !== false)
384
- (u === true ? UnknownFieldHandler.onRead : u)(
385
- this.typeName,
386
- message,
387
- fieldNo,
388
- wireType,
389
- d,
390
- );
391
- }
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;
392
340
  }
393
- return message;
394
- }
395
-
396
- internalBinaryWrite(
397
- message: LsAPI_List_Request,
398
- writer: IBinaryWriter,
399
- options: BinaryWriteOptions,
400
- ): IBinaryWriter {
401
- /* uint64 resource_id = 1; */
402
- if (message.resourceId !== 0n)
403
- writer.tag(1, WireType.Varint).uint64(message.resourceId);
404
- /* string location = 2; */
405
- if (message.location !== '')
406
- writer.tag(2, WireType.LengthDelimited).string(message.location);
407
- const u = options.writeUnknownFields;
408
- if (u !== false)
409
- (u == true ? UnknownFieldHandler.onWrite : u)(
410
- this.typeName,
411
- message,
412
- writer,
413
- );
414
- return writer;
415
- }
416
341
  }
417
342
  /**
418
343
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Request
@@ -420,91 +345,54 @@ class LsAPI_List_Request$Type extends MessageType<LsAPI_List_Request> {
420
345
  export const LsAPI_List_Request = new LsAPI_List_Request$Type();
421
346
  // @generated message type with reflection information, may provide speed optimized methods
422
347
  class LsAPI_List_Response$Type extends MessageType<LsAPI_List_Response> {
423
- constructor() {
424
- super('MiLaboratories.Controller.Shared.LsAPI.List.Response', [
425
- {
426
- no: 1,
427
- name: 'items',
428
- kind: 'message',
429
- repeat: 1 /* RepeatType.PACKED */,
430
- T: () => LsAPI_ListItem,
431
- },
432
- { no: 2, name: 'delimiter', kind: 'scalar', T: 9 /* ScalarType.STRING */ },
433
- ]);
434
- }
435
-
436
- create(value?: PartialMessage<LsAPI_List_Response>): LsAPI_List_Response {
437
- const message = globalThis.Object.create(this.messagePrototype!);
438
- message.items = [];
439
- message.delimiter = '';
440
- if (value !== undefined)
441
- reflectionMergePartial<LsAPI_List_Response>(this, message, value);
442
- return message;
443
- }
444
-
445
- internalBinaryRead(
446
- reader: IBinaryReader,
447
- length: number,
448
- options: BinaryReadOptions,
449
- target?: LsAPI_List_Response,
450
- ): LsAPI_List_Response {
451
- const message = target ?? this.create(),
452
- end = reader.pos + length;
453
- while (reader.pos < end) {
454
- const [fieldNo, wireType] = reader.tag();
455
- switch (fieldNo) {
456
- case /* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items */ 1:
457
- message.items.push(
458
- LsAPI_ListItem.internalBinaryRead(reader, reader.uint32(), options),
459
- );
460
- break;
461
- case /* string delimiter */ 2:
462
- message.delimiter = reader.string();
463
- break;
464
- default:
465
- const u = options.readUnknownField;
466
- if (u === 'throw')
467
- throw new globalThis.Error(
468
- `Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`,
469
- );
470
- const d = reader.skip(wireType);
471
- if (u !== false)
472
- (u === true ? UnknownFieldHandler.onRead : u)(
473
- this.typeName,
474
- message,
475
- fieldNo,
476
- wireType,
477
- d,
478
- );
479
- }
348
+ constructor() {
349
+ super("MiLaboratories.Controller.Shared.LsAPI.List.Response", [
350
+ { no: 1, name: "items", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, 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;
480
395
  }
481
- return message;
482
- }
483
-
484
- internalBinaryWrite(
485
- message: LsAPI_List_Response,
486
- writer: IBinaryWriter,
487
- options: BinaryWriteOptions,
488
- ): IBinaryWriter {
489
- /* repeated MiLaboratories.Controller.Shared.LsAPI.ListItem items = 1; */
490
- for (let i = 0; i < message.items.length; i++)
491
- LsAPI_ListItem.internalBinaryWrite(
492
- message.items[i],
493
- writer.tag(1, WireType.LengthDelimited).fork(),
494
- options,
495
- ).join();
496
- /* string delimiter = 2; */
497
- if (message.delimiter !== '')
498
- writer.tag(2, WireType.LengthDelimited).string(message.delimiter);
499
- const u = options.writeUnknownFields;
500
- if (u !== false)
501
- (u == true ? UnknownFieldHandler.onWrite : u)(
502
- this.typeName,
503
- message,
504
- writer,
505
- );
506
- return writer;
507
- }
508
396
  }
509
397
  /**
510
398
  * @generated MessageType for protobuf message MiLaboratories.Controller.Shared.LsAPI.List.Response
@@ -513,6 +401,6 @@ export const LsAPI_List_Response = new LsAPI_List_Response$Type();
513
401
  /**
514
402
  * @generated ServiceType for protobuf service MiLaboratories.Controller.Shared.LS
515
403
  */
516
- export const LS = new ServiceType('MiLaboratories.Controller.Shared.LS', [
517
- { name: 'List', options: {}, I: LsAPI_List_Request, O: LsAPI_List_Response },
404
+ export const LS = new ServiceType("MiLaboratories.Controller.Shared.LS", [
405
+ { name: "List", options: {}, I: LsAPI_List_Request, O: LsAPI_List_Response }
518
406
  ]);