@liquidmetal-ai/drizzle 0.4.1 → 0.4.2
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.
- package/.turbo/turbo-build.log +22 -0
- package/CHANGELOG.md +6 -0
- package/dist/appify/build.d.ts +1 -4
- package/dist/appify/build.d.ts.map +1 -1
- package/dist/appify/build.js +6 -16
- package/dist/appify/build.test.js +8 -41
- package/dist/appify/validate.d.ts.map +1 -1
- package/dist/appify/validate.js +2 -1
- package/dist/liquidmetal/v1alpha1/object_pb.d.ts +30 -30
- package/dist/liquidmetal/v1alpha1/object_pb.d.ts.map +1 -1
- package/dist/liquidmetal/v1alpha1/object_pb.js +1 -1
- package/dist/liquidmetal/v1alpha1/search_agent_pb.d.ts +18 -14
- package/dist/liquidmetal/v1alpha1/search_agent_pb.d.ts.map +1 -1
- package/dist/mrn.d.ts +26 -0
- package/dist/mrn.d.ts.map +1 -0
- package/dist/mrn.js +135 -0
- package/dist/mrn.test.d.ts +2 -0
- package/dist/mrn.test.d.ts.map +1 -0
- package/dist/mrn.test.js +690 -0
- package/package.json +4 -3
- package/src/appify/build.test.ts +8 -44
- package/src/appify/build.ts +6 -16
- package/src/appify/validate.ts +2 -1
- package/src/liquidmetal/v1alpha1/object_pb.ts +32 -32
- package/src/liquidmetal/v1alpha1/search_agent_pb.ts +20 -16
- package/src/mrn.test.ts +769 -0
- package/src/mrn.ts +149 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @liquidmetal-ai/drizzle@0.4.2 prebuild
|
|
4
|
+
> npm install --ignore-scripts
|
|
5
|
+
|
|
6
|
+
[1G[0K[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K⠇[1G[0K⠏[1G[0K⠋[1G[0K⠙[1G[0K⠹[1G[0K⠸[1G[0K⠼[1G[0K⠴[1G[0K⠦[1G[0K⠧[1G[0K⠇[1G[0K⠏[1G[0K⠋[1G[0K
|
|
7
|
+
up to date, audited 3153 packages in 5s
|
|
8
|
+
[1G[0K⠋[1G[0K
|
|
9
|
+
[1G[0K⠋[1G[0K553 packages are looking for funding
|
|
10
|
+
[1G[0K⠋[1G[0K run `npm fund` for details
|
|
11
|
+
[1G[0K⠋[1G[0K
|
|
12
|
+
[31m[1m3[22m[39m vulnerabilities (1 [1mlow[22m, 2 [33m[1mmoderate[22m[39m)
|
|
13
|
+
|
|
14
|
+
To address all issues, run:
|
|
15
|
+
npm audit fix
|
|
16
|
+
|
|
17
|
+
Run `npm audit` for details.
|
|
18
|
+
[1G[0K⠋[1G[0K[1G[0K⠙[1G[0K
|
|
19
|
+
> @liquidmetal-ai/drizzle@0.4.2 build
|
|
20
|
+
> shx rm -rf dist && tsc -b
|
|
21
|
+
|
|
22
|
+
[1G[0K⠙[1G[0K[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
package/dist/appify/build.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export interface ConfigObject {
|
|
|
8
8
|
start: number;
|
|
9
9
|
end: number;
|
|
10
10
|
}
|
|
11
|
+
export declare const EMPTY_CONFIG_OBJECT: ConfigObject;
|
|
11
12
|
export declare class ConfigError {
|
|
12
13
|
message: string;
|
|
13
14
|
line: number;
|
|
@@ -33,7 +34,6 @@ export declare class Application {
|
|
|
33
34
|
kvStore: KvStore[];
|
|
34
35
|
smartBucket: SmartBucket[];
|
|
35
36
|
labels: Record<string, string>;
|
|
36
|
-
annotations: Record<string, string>;
|
|
37
37
|
constructor(name: TokenString, obj: ConfigObject);
|
|
38
38
|
handlers(): (Service | Observer | Actor | Task)[];
|
|
39
39
|
}
|
|
@@ -46,7 +46,6 @@ export declare class Service {
|
|
|
46
46
|
bindings: Binding[];
|
|
47
47
|
env: Env[];
|
|
48
48
|
labels: Record<string, string>;
|
|
49
|
-
annotations: Record<string, string>;
|
|
50
49
|
constructor(name: TokenString, obj: ConfigObject);
|
|
51
50
|
}
|
|
52
51
|
export declare class Actor {
|
|
@@ -56,7 +55,6 @@ export declare class Actor {
|
|
|
56
55
|
env: Env[];
|
|
57
56
|
visibility?: TokenString;
|
|
58
57
|
labels: Record<string, string>;
|
|
59
|
-
annotations: Record<string, string>;
|
|
60
58
|
constructor(name: TokenString, obj: ConfigObject);
|
|
61
59
|
}
|
|
62
60
|
export declare class Task {
|
|
@@ -76,7 +74,6 @@ export declare class Observer {
|
|
|
76
74
|
bindings: Binding[];
|
|
77
75
|
env: Env[];
|
|
78
76
|
labels: Record<string, string>;
|
|
79
|
-
annotations: Record<string, string>;
|
|
80
77
|
constructor(name: TokenString, obj: ConfigObject);
|
|
81
78
|
}
|
|
82
79
|
export declare class Source {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/appify/build.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,cAAc,EACd,SAAS,EAGT,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACZ,MAAM,YAAY,CAAC;AAEpB,wBAAgB,OAAO,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAAC;AACpD,wBAAgB,OAAO,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAAC;AACpD,wBAAgB,OAAO,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAAC;AAgBtD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;CACb;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/appify/build.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,cAAc,EACd,SAAS,EAGT,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACZ,MAAM,YAAY,CAAC;A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W,CAAC;IACzB,GAAG,EAAE,YAAY,CAAC;gBAEN,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY;CAIjD;AAED,qBAAa,WAAW;IACtB,IAAI,EAAE,WAAW,CAAC;IAClB,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,GAAG,EAAE,YAAY,CAAC;gBAEN,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,YAAY;CAIjD;AAED,eAAO,MAAM,YAAY,uFAAwF,CAAC;AAClH,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD,eAAO,MAAM,UAAU,mBAAoB,CAAC;AAC5C,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/appify/build.js
CHANGED
|
@@ -12,6 +12,12 @@ export function valueOf(token) {
|
|
|
12
12
|
}
|
|
13
13
|
throw new Error(`unexpected token type: ${token}`);
|
|
14
14
|
}
|
|
15
|
+
export const EMPTY_CONFIG_OBJECT = {
|
|
16
|
+
line: 0,
|
|
17
|
+
column: 0,
|
|
18
|
+
start: 0,
|
|
19
|
+
end: 0,
|
|
20
|
+
};
|
|
15
21
|
export class ConfigError {
|
|
16
22
|
message;
|
|
17
23
|
line;
|
|
@@ -185,9 +191,6 @@ export function buildApplication(node) {
|
|
|
185
191
|
case 'labels':
|
|
186
192
|
buildLabelset(app, 'labels', child, errors);
|
|
187
193
|
break;
|
|
188
|
-
case 'annotations':
|
|
189
|
-
buildLabelset(app, 'annotations', child, errors);
|
|
190
|
-
break;
|
|
191
194
|
default:
|
|
192
195
|
errors.push({ message: 'unexpected assignment', ...child });
|
|
193
196
|
}
|
|
@@ -236,9 +239,6 @@ function buildService(stanza) {
|
|
|
236
239
|
case 'labels':
|
|
237
240
|
buildLabelset(service, 'labels', child, errors);
|
|
238
241
|
break;
|
|
239
|
-
case 'annotations':
|
|
240
|
-
buildLabelset(service, 'annotations', child, errors);
|
|
241
|
-
break;
|
|
242
242
|
default:
|
|
243
243
|
errors.push({ message: 'unexpected assignment', ...child });
|
|
244
244
|
}
|
|
@@ -454,9 +454,6 @@ function buildObserver(stanza) {
|
|
|
454
454
|
case 'labels':
|
|
455
455
|
buildLabelset(observer, 'labels', child, errors);
|
|
456
456
|
break;
|
|
457
|
-
case 'annotations':
|
|
458
|
-
buildLabelset(observer, 'annotations', child, errors);
|
|
459
|
-
break;
|
|
460
457
|
default:
|
|
461
458
|
errors.push({ message: 'unexpected assignment', ...child });
|
|
462
459
|
}
|
|
@@ -498,9 +495,6 @@ function buildActor(stanza) {
|
|
|
498
495
|
case 'labels':
|
|
499
496
|
buildLabelset(actor, 'labels', child, errors);
|
|
500
497
|
break;
|
|
501
|
-
case 'annotations':
|
|
502
|
-
buildLabelset(actor, 'annotations', child, errors);
|
|
503
|
-
break;
|
|
504
498
|
default:
|
|
505
499
|
errors.push({ message: 'unexpected assignment', ...child });
|
|
506
500
|
}
|
|
@@ -729,7 +723,6 @@ export class Application {
|
|
|
729
723
|
kvStore = [];
|
|
730
724
|
smartBucket = [];
|
|
731
725
|
labels = {};
|
|
732
|
-
annotations = {};
|
|
733
726
|
constructor(name, obj) {
|
|
734
727
|
this.name = name;
|
|
735
728
|
this.obj = obj;
|
|
@@ -748,7 +741,6 @@ export class Service {
|
|
|
748
741
|
bindings = [];
|
|
749
742
|
env = [];
|
|
750
743
|
labels = {};
|
|
751
|
-
annotations = {};
|
|
752
744
|
constructor(name, obj) {
|
|
753
745
|
this.name = name;
|
|
754
746
|
this.obj = obj;
|
|
@@ -761,7 +753,6 @@ export class Actor {
|
|
|
761
753
|
env = [];
|
|
762
754
|
visibility;
|
|
763
755
|
labels = {};
|
|
764
|
-
annotations = {};
|
|
765
756
|
constructor(name, obj) {
|
|
766
757
|
this.name = name;
|
|
767
758
|
this.obj = obj;
|
|
@@ -787,7 +778,6 @@ export class Observer {
|
|
|
787
778
|
bindings = [];
|
|
788
779
|
env = [];
|
|
789
780
|
labels = {};
|
|
790
|
-
annotations = {};
|
|
791
781
|
constructor(name, obj) {
|
|
792
782
|
this.name = name;
|
|
793
783
|
this.obj = obj;
|
|
@@ -179,7 +179,7 @@ application "foo" {
|
|
|
179
179
|
},
|
|
180
180
|
]);
|
|
181
181
|
});
|
|
182
|
-
test('service with labels
|
|
182
|
+
test('service with labels', () => {
|
|
183
183
|
const CONFIG = `
|
|
184
184
|
application "my-app" {
|
|
185
185
|
service "my-service" {
|
|
@@ -187,11 +187,6 @@ application "my-app" {
|
|
|
187
187
|
environment = "production"
|
|
188
188
|
team = "platform"
|
|
189
189
|
}
|
|
190
|
-
|
|
191
|
-
annotations = {
|
|
192
|
-
description = "Service for handling API requests"
|
|
193
|
-
version = "1.0.0"
|
|
194
|
-
}
|
|
195
190
|
}
|
|
196
191
|
}
|
|
197
192
|
`;
|
|
@@ -204,18 +199,14 @@ application "my-app" {
|
|
|
204
199
|
// Check that we have exactly one application with one service
|
|
205
200
|
expect(apps.length).toBe(1);
|
|
206
201
|
expect(apps[0].service.length).toBe(1);
|
|
207
|
-
// Check the service's labels
|
|
202
|
+
// Check the service's labels
|
|
208
203
|
const service = apps[0].service[0];
|
|
209
204
|
// Verify labels
|
|
210
205
|
expect(service.labels).toBeDefined();
|
|
211
206
|
expect(service.labels['environment']).toBe('production');
|
|
212
207
|
expect(service.labels['team']).toBe('platform');
|
|
213
|
-
// Verify annotations
|
|
214
|
-
expect(service.annotations).toBeDefined();
|
|
215
|
-
expect(service.annotations['description']).toBe('Service for handling API requests');
|
|
216
|
-
expect(service.annotations['version']).toBe('1.0.0');
|
|
217
208
|
});
|
|
218
|
-
test('service with non-string labels
|
|
209
|
+
test('service with non-string labels', () => {
|
|
219
210
|
const CONFIG = `
|
|
220
211
|
application "my-app" {
|
|
221
212
|
service "my-service" {
|
|
@@ -224,11 +215,6 @@ application "my-app" {
|
|
|
224
215
|
priority = 1
|
|
225
216
|
isActive = true
|
|
226
217
|
}
|
|
227
|
-
|
|
228
|
-
annotations = {
|
|
229
|
-
description = "Service for handling API requests"
|
|
230
|
-
maxInstances = 5
|
|
231
|
-
}
|
|
232
218
|
}
|
|
233
219
|
}
|
|
234
220
|
`;
|
|
@@ -238,12 +224,11 @@ application "my-app" {
|
|
|
238
224
|
expect(parser.errors).toEqual([]);
|
|
239
225
|
const [_, errors] = buildManifest(ast);
|
|
240
226
|
// Should have errors for non-string values
|
|
241
|
-
expect(errors.length).toBe(
|
|
227
|
+
expect(errors.length).toBe(2);
|
|
242
228
|
// Check error messages
|
|
243
229
|
const errorMessages = errors.map((err) => err.message);
|
|
244
230
|
expect(errorMessages).toContain('labels must have string values, found non-string value for key "priority"');
|
|
245
231
|
expect(errorMessages).toContain('labels must have string values, found non-string value for key "isActive"');
|
|
246
|
-
expect(errorMessages).toContain('annotations must have string values, found non-string value for key "maxInstances"');
|
|
247
232
|
});
|
|
248
233
|
test('service with invalid labels type', () => {
|
|
249
234
|
const CONFIG = `
|
|
@@ -262,7 +247,7 @@ application "my-app" {
|
|
|
262
247
|
expect(errors.length).toBe(1);
|
|
263
248
|
expect(errors[0].message).toBe('labels must be an object');
|
|
264
249
|
});
|
|
265
|
-
test('actor with labels
|
|
250
|
+
test('actor with labels', () => {
|
|
266
251
|
const CONFIG = `
|
|
267
252
|
application "my-app" {
|
|
268
253
|
actor "my-actor" {
|
|
@@ -271,11 +256,6 @@ application "my-app" {
|
|
|
271
256
|
team = "platform"
|
|
272
257
|
}
|
|
273
258
|
|
|
274
|
-
annotations = {
|
|
275
|
-
description = "Actor for processing background jobs"
|
|
276
|
-
version = "1.0.0"
|
|
277
|
-
}
|
|
278
|
-
|
|
279
259
|
visibility = "protected"
|
|
280
260
|
}
|
|
281
261
|
}
|
|
@@ -289,20 +269,16 @@ application "my-app" {
|
|
|
289
269
|
// Check that we have exactly one application with one actor
|
|
290
270
|
expect(apps.length).toBe(1);
|
|
291
271
|
expect(apps[0].actor.length).toBe(1);
|
|
292
|
-
// Check the actor's labels
|
|
272
|
+
// Check the actor's labels
|
|
293
273
|
const actor = apps[0].actor[0];
|
|
294
274
|
// Verify labels
|
|
295
275
|
expect(actor.labels).toBeDefined();
|
|
296
276
|
expect(actor.labels['environment']).toBe('production');
|
|
297
277
|
expect(actor.labels['team']).toBe('platform');
|
|
298
|
-
// Verify annotations
|
|
299
|
-
expect(actor.annotations).toBeDefined();
|
|
300
|
-
expect(actor.annotations['description']).toBe('Actor for processing background jobs');
|
|
301
|
-
expect(actor.annotations['version']).toBe('1.0.0');
|
|
302
278
|
// Verify other properties still work
|
|
303
279
|
expect(valueOf(actor.visibility)).toBe('protected');
|
|
304
280
|
});
|
|
305
|
-
test('observer with labels
|
|
281
|
+
test('observer with labels', () => {
|
|
306
282
|
const CONFIG = `
|
|
307
283
|
application "my-app" {
|
|
308
284
|
bucket "my-bucket" {}
|
|
@@ -313,11 +289,6 @@ application "my-app" {
|
|
|
313
289
|
team = "platform"
|
|
314
290
|
}
|
|
315
291
|
|
|
316
|
-
annotations = {
|
|
317
|
-
description = "Observer for monitoring bucket changes"
|
|
318
|
-
version = "1.0.0"
|
|
319
|
-
}
|
|
320
|
-
|
|
321
292
|
source {
|
|
322
293
|
bucket = "my-bucket"
|
|
323
294
|
}
|
|
@@ -333,16 +304,12 @@ application "my-app" {
|
|
|
333
304
|
// Check that we have exactly one application with one observer
|
|
334
305
|
expect(apps.length).toBe(1);
|
|
335
306
|
expect(apps[0].observer.length).toBe(1);
|
|
336
|
-
// Check the observer's labels
|
|
307
|
+
// Check the observer's labels
|
|
337
308
|
const observer = apps[0].observer[0];
|
|
338
309
|
// Verify labels
|
|
339
310
|
expect(observer.labels).toBeDefined();
|
|
340
311
|
expect(observer.labels['environment']).toBe('production');
|
|
341
312
|
expect(observer.labels['team']).toBe('platform');
|
|
342
|
-
// Verify annotations
|
|
343
|
-
expect(observer.annotations).toBeDefined();
|
|
344
|
-
expect(observer.annotations['description']).toBe('Observer for monitoring bucket changes');
|
|
345
|
-
expect(observer.annotations['version']).toBe('1.0.0');
|
|
346
313
|
// Verify source still works
|
|
347
314
|
expect(observer.source.length).toBe(1);
|
|
348
315
|
expect(valueOf(observer.source[0].bucket)).toBe('my-bucket');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/appify/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,WAAW,EACX,OAAO,EACP,MAAM,EACN,YAAY,EACZ,MAAM,EACN,GAAG,EACH,QAAQ,EACR,KAAK,EACL,OAAO,EACP,WAAW,EACX,IAAI,EAIJ,WAAW,EAEZ,MAAM,YAAY,CAAC;AAOpB,MAAM,MAAM,eAAe,GAAG,YAAY,GAAG;IAC3C,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,KAAK,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC;AAE7E,MAAM,MAAM,SAAS,GAAG;IACtB,aAAa,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC;IAChC,SAAS,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;IACxB,OAAO,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;IACpB,UAAU,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC;IAC1B,MAAM,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IAClB,QAAQ,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;IACtB,OAAO,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;IACpB,KAAK,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,SAAS,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,EAA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AAK,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC;IAChB,SAAS,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC;IACtB,aAAa,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC;IAChC,aAAa,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC;CACjC,CAAC;AAcF,wBAAsB,QAAQ,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAiBvG;AAodD,eAAO,MAAM,UAAU,EAAE,SAAS,EAYjC,CAAC"}
|
package/dist/appify/validate.js
CHANGED
|
@@ -223,7 +223,8 @@ const observerSourceValidator = {
|
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
if (source.bucket !== undefined &&
|
|
226
|
-
!app.bucket.some((b) => valueOf(b.name) === (source.bucket && valueOf(source.bucket)))
|
|
226
|
+
!app.bucket.some((b) => valueOf(b.name) === (source.bucket && valueOf(source.bucket))) &&
|
|
227
|
+
!app.smartBucket.some((b) => valueOf(b.name) === (source.bucket && valueOf(source.bucket)))) {
|
|
227
228
|
errors.push({
|
|
228
229
|
message: `bucket ${source.bucket.value} not found`,
|
|
229
230
|
severity: 'error',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
|
|
2
2
|
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
3
|
-
import type { BucketResponse } from "./bucket_name_pb.js";
|
|
3
|
+
import type { BucketLocator, BucketResponse } from "./bucket_name_pb.js";
|
|
4
4
|
import type { Message } from "@bufbuild/protobuf";
|
|
5
5
|
/**
|
|
6
6
|
* Describes the file liquidmetal/v1alpha1/object.proto.
|
|
@@ -18,14 +18,6 @@ export type PutObjectRequest = Message<"liquidmetal.v1alpha1.PutObjectRequest">
|
|
|
18
18
|
* @generated from field: string user_id = 2;
|
|
19
19
|
*/
|
|
20
20
|
userId: string;
|
|
21
|
-
/**
|
|
22
|
-
* __DESCRIPTION__ Module ID identifying the bucket
|
|
23
|
-
* __EXAMPLE__ "01jtgtrd37acrqf7k24dggg31s"
|
|
24
|
-
* __REQUIRED__ TRUE
|
|
25
|
-
*
|
|
26
|
-
* @generated from field: string module_id = 3;
|
|
27
|
-
*/
|
|
28
|
-
moduleId: string;
|
|
29
21
|
/**
|
|
30
22
|
* __DESCRIPTION__ Object key/path in the bucket
|
|
31
23
|
* __EXAMPLE__ "my-key"
|
|
@@ -49,6 +41,14 @@ export type PutObjectRequest = Message<"liquidmetal.v1alpha1.PutObjectRequest">
|
|
|
49
41
|
* @generated from field: string content_type = 6;
|
|
50
42
|
*/
|
|
51
43
|
contentType: string;
|
|
44
|
+
/**
|
|
45
|
+
* __DESCRIPTION__ The buckets to search. If provided, the search will only return results from these buckets
|
|
46
|
+
* __EXAMPLE__ {"bucket": {"name": "my-smartbucket", "version": "01jxanr45haeswhay4n0q8340y", "application_name": "my-app"}}
|
|
47
|
+
* __REQUIRED__ TRUE
|
|
48
|
+
*
|
|
49
|
+
* @generated from field: liquidmetal.v1alpha1.BucketLocator bucket_location = 7;
|
|
50
|
+
*/
|
|
51
|
+
bucketLocation?: BucketLocator;
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
54
54
|
* Describes the message liquidmetal.v1alpha1.PutObjectRequest.
|
|
@@ -61,7 +61,7 @@ export declare const PutObjectRequestSchema: GenMessage<PutObjectRequest>;
|
|
|
61
61
|
export type PutObjectResponse = Message<"liquidmetal.v1alpha1.PutObjectResponse"> & {
|
|
62
62
|
/**
|
|
63
63
|
* __DESCRIPTION__ Information about the bucket where the object was uploaded
|
|
64
|
-
* __EXAMPLE__ {"moduleId": "01jt3vs2nyt2xwk2f54x2bkn84"
|
|
64
|
+
* __EXAMPLE__ {"moduleId": "01jt3vs2nyt2xwk2f54x2bkn84"}
|
|
65
65
|
*
|
|
66
66
|
* @generated from field: liquidmetal.v1alpha1.BucketResponse bucket = 1;
|
|
67
67
|
*/
|
|
@@ -91,14 +91,6 @@ export type GetObjectRequest = Message<"liquidmetal.v1alpha1.GetObjectRequest">
|
|
|
91
91
|
* @generated from field: string user_id = 2;
|
|
92
92
|
*/
|
|
93
93
|
userId: string;
|
|
94
|
-
/**
|
|
95
|
-
* __DESCRIPTION__ Module ID identifying the bucket
|
|
96
|
-
* __EXAMPLE__ "01jtgtrd37acrqf7k24dggg31s"
|
|
97
|
-
* __REQUIRED__ TRUE
|
|
98
|
-
*
|
|
99
|
-
* @generated from field: string module_id = 3;
|
|
100
|
-
*/
|
|
101
|
-
moduleId: string;
|
|
102
94
|
/**
|
|
103
95
|
* __DESCRIPTION__ Object key/path to download
|
|
104
96
|
* __EXAMPLE__ "my-key"
|
|
@@ -107,6 +99,14 @@ export type GetObjectRequest = Message<"liquidmetal.v1alpha1.GetObjectRequest">
|
|
|
107
99
|
* @generated from field: string key = 4;
|
|
108
100
|
*/
|
|
109
101
|
key: string;
|
|
102
|
+
/**
|
|
103
|
+
* __DESCRIPTION__ The buckets to search. If provided, the search will only return results from these buckets
|
|
104
|
+
* __EXAMPLE__ {"bucket": {"name": "my-smartbucket", "version": "01jxanr45haeswhay4n0q8340y", "application_name": "my-app"}}
|
|
105
|
+
* __REQUIRED__ TRUE
|
|
106
|
+
*
|
|
107
|
+
* @generated from field: liquidmetal.v1alpha1.BucketLocator bucket_location = 5;
|
|
108
|
+
*/
|
|
109
|
+
bucketLocation?: BucketLocator;
|
|
110
110
|
};
|
|
111
111
|
/**
|
|
112
112
|
* Describes the message liquidmetal.v1alpha1.GetObjectRequest.
|
|
@@ -146,14 +146,6 @@ export type DeleteObjectRequest = Message<"liquidmetal.v1alpha1.DeleteObjectRequ
|
|
|
146
146
|
* @generated from field: string user_id = 2;
|
|
147
147
|
*/
|
|
148
148
|
userId: string;
|
|
149
|
-
/**
|
|
150
|
-
* __DESCRIPTION__ Module ID identifying the bucket
|
|
151
|
-
* __EXAMPLE__ "01jtgtrd37acrqf7k24dggg31s"
|
|
152
|
-
* __REQUIRED__ TRUE
|
|
153
|
-
*
|
|
154
|
-
* @generated from field: string module_id = 3;
|
|
155
|
-
*/
|
|
156
|
-
moduleId: string;
|
|
157
149
|
/**
|
|
158
150
|
* __DESCRIPTION__ Object key/path to delete
|
|
159
151
|
* __EXAMPLE__ "my-key"
|
|
@@ -162,6 +154,14 @@ export type DeleteObjectRequest = Message<"liquidmetal.v1alpha1.DeleteObjectRequ
|
|
|
162
154
|
* @generated from field: string key = 4;
|
|
163
155
|
*/
|
|
164
156
|
key: string;
|
|
157
|
+
/**
|
|
158
|
+
* __DESCRIPTION__ The buckets to search. If provided, the search will only return results from these buckets
|
|
159
|
+
* __EXAMPLE__ {"bucket": {"name": "my-smartbucket", "version": "01jxanr45haeswhay4n0q8340y", "application_name": "my-app"}}
|
|
160
|
+
* __REQUIRED__ TRUE
|
|
161
|
+
*
|
|
162
|
+
* @generated from field: liquidmetal.v1alpha1.BucketLocator bucket_location = 5;
|
|
163
|
+
*/
|
|
164
|
+
bucketLocation?: BucketLocator;
|
|
165
165
|
};
|
|
166
166
|
/**
|
|
167
167
|
* Describes the message liquidmetal.v1alpha1.DeleteObjectRequest.
|
|
@@ -190,13 +190,13 @@ export type ListObjectsRequest = Message<"liquidmetal.v1alpha1.ListObjectsReques
|
|
|
190
190
|
*/
|
|
191
191
|
userId: string;
|
|
192
192
|
/**
|
|
193
|
-
* __DESCRIPTION__
|
|
194
|
-
* __EXAMPLE__ "
|
|
193
|
+
* __DESCRIPTION__ The buckets to search. If provided, the search will only return results from these buckets
|
|
194
|
+
* __EXAMPLE__ {"bucket": {"name": "my-smartbucket", "version": "01jxanr45haeswhay4n0q8340y", "application_name": "my-app"}}
|
|
195
195
|
* __REQUIRED__ TRUE
|
|
196
196
|
*
|
|
197
|
-
* @generated from field:
|
|
197
|
+
* @generated from field: liquidmetal.v1alpha1.BucketLocator bucket_location = 4;
|
|
198
198
|
*/
|
|
199
|
-
|
|
199
|
+
bucketLocation?: BucketLocator;
|
|
200
200
|
};
|
|
201
201
|
/**
|
|
202
202
|
* Describes the message liquidmetal.v1alpha1.ListObjectsRequest.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object_pb.d.ts","sourceRoot":"","sources":["../../../src/liquidmetal/v1alpha1/object_pb.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEpF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"object_pb.d.ts","sourceRoot":"","sources":["../../../src/liquidmetal/v1alpha1/object_pb.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAEpF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEzE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,OACo5E,CAAC;AAEp8E;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,uCAAuC,CAAC,GAAG;IAChF;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;;OAMG;IACH,GAAG,EAAE,MAAM,CAAC;IAEZ;;;;;OAKG;IACH,OAAO,EAAE,UAAU,CAAC;IAEpB;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;;;OAMG;IACH,cA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E,UAAU,CAAC;IACrC;;;;;OAKG;IACH,SAAS,EAAE;QACT,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,sBAAsB,CAAC;QACrC,MAAM,EAAE,OAAO,uBAAuB,CAAC;KACxC,CAAC;IACF;;;;;OAKG;IACH,SAAS,EAAE;QACT,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,sBAAsB,CAAC;QACrC,MAAM,EAAE,OAAO,uBAAuB,CAAC;KACxC,CAAC;IACF;;;;;OAKG;IACH,YAAY,EAAE;QACZ,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,yBAAyB,CAAC;QACxC,MAAM,EAAE,OAAO,0BAA0B,CAAC;KAC3C,CAAC;IACF;;;;;OAKG;IACH,WAAW,EAAE;QACX,UAAU,EAAE,OAAO,CAAC;QACpB,KAAK,EAAE,OAAO,wBAAwB,CAAC;QACvC,MAAM,EAAE,OAAO,yBAAyB,CAAC;KAC1C,CAAC;CACH,CACiD,CAAC"}
|
|
@@ -7,7 +7,7 @@ import { file_liquidmetal_v1alpha1_bucket_name } from "./bucket_name_pb.js";
|
|
|
7
7
|
/**
|
|
8
8
|
* Describes the file liquidmetal/v1alpha1/object.proto.
|
|
9
9
|
*/
|
|
10
|
-
export const file_liquidmetal_v1alpha1_object = /*@__PURE__*/ fileDesc("
|
|
10
|
+
export const file_liquidmetal_v1alpha1_object = /*@__PURE__*/ fileDesc("CiFsaXF1aWRtZXRhbC92MWFscGhhMS9vYmplY3QucHJvdG8SFGxpcXVpZG1ldGFsLnYxYWxwaGExIrQBChBQdXRPYmplY3RSZXF1ZXN0EhcKD29yZ2FuaXphdGlvbl9pZBgBIAEoCRIPCgd1c2VyX2lkGAIgASgJEgsKA2tleRgEIAEoCRIPCgdjb250ZW50GAUgASgMEhQKDGNvbnRlbnRfdHlwZRgGIAEoCRI8Cg9idWNrZXRfbG9jYXRpb24YByABKAsyIy5saXF1aWRtZXRhbC52MWFscGhh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_name]);
|
|
11
11
|
/**
|
|
12
12
|
* Describes the message liquidmetal.v1alpha1.PutObjectRequest.
|
|
13
13
|
* Use `create(PutObjectRequestSchema)` to create a new message.
|
|
@@ -11,7 +11,7 @@ export declare const file_liquidmetal_v1alpha1_search_agent: GenFile;
|
|
|
11
11
|
export type DocumentChatRequest = Message<"liquidmetal.v1alpha1.DocumentChatRequest"> & {
|
|
12
12
|
/**
|
|
13
13
|
* __DESCRIPTION__ The storage bucket containing the target document. Must be a valid, registered Smart Bucket. Used to identify which bucket to query against
|
|
14
|
-
* __EXAMPLE__ {"bucket": {"name": "my-
|
|
14
|
+
* __EXAMPLE__ {"bucket": {"name": "my-smartbucket", "version": "01jxanr45haeswhay4n0q8340y", "application_name": "my-app"}}
|
|
15
15
|
* __REQUIRED__ TRUE
|
|
16
16
|
*
|
|
17
17
|
* @generated from field: liquidmetal.v1alpha1.BucketLocator bucket_location = 1;
|
|
@@ -35,7 +35,7 @@ export type DocumentChatRequest = Message<"liquidmetal.v1alpha1.DocumentChatRequ
|
|
|
35
35
|
input: string;
|
|
36
36
|
/**
|
|
37
37
|
* __DESCRIPTION__ Client-provided conversation session identifier. Required for maintaining context in follow-up questions. We recommend using a UUID or ULID for this value
|
|
38
|
-
* __EXAMPLE__ "
|
|
38
|
+
* __EXAMPLE__ "<YOUR-REQUEST-ID>"
|
|
39
39
|
* __REQUIRED__ TRUE
|
|
40
40
|
*
|
|
41
41
|
* @generated from field: string request_id = 4;
|
|
@@ -86,7 +86,7 @@ export type RagSearchRequest = Message<"liquidmetal.v1alpha1.RagSearchRequest">
|
|
|
86
86
|
input: string;
|
|
87
87
|
/**
|
|
88
88
|
* __DESCRIPTION__ Client-provided search session identifier. Required for pagination and result tracking. We recommend using a UUID or ULID for this value
|
|
89
|
-
* __EXAMPLE__ "
|
|
89
|
+
* __EXAMPLE__ "<YOUR-REQUEST-ID>"
|
|
90
90
|
* __REQUIRED__ TRUE
|
|
91
91
|
*
|
|
92
92
|
* @generated from field: string request_id = 2;
|
|
@@ -94,7 +94,7 @@ export type RagSearchRequest = Message<"liquidmetal.v1alpha1.RagSearchRequest">
|
|
|
94
94
|
requestId: string;
|
|
95
95
|
/**
|
|
96
96
|
* __DESCRIPTION__ The buckets to search. If provided, the search will only return results from these buckets
|
|
97
|
-
* __EXAMPLE__ [{"bucket": {"name": "my-
|
|
97
|
+
* __EXAMPLE__ [{"bucket": {"name": "my-smartbucket", "version": "01jxanr45haeswhay4n0q8340y", "application_name": "my-app"}}]
|
|
98
98
|
* __REQUIRED__ TRUE
|
|
99
99
|
*
|
|
100
100
|
* @generated from field: repeated liquidmetal.v1alpha1.BucketLocator bucket_locations = 3;
|
|
@@ -221,6 +221,7 @@ export type PaginationInfo = Message<"liquidmetal.v1alpha1.PaginationInfo"> & {
|
|
|
221
221
|
/**
|
|
222
222
|
* __DESCRIPTION__ Total number of available results
|
|
223
223
|
* __EXAMPLE__ 1020
|
|
224
|
+
* __REQUIRED__ FALSE
|
|
224
225
|
*
|
|
225
226
|
* @generated from field: int32 total = 1;
|
|
226
227
|
*/
|
|
@@ -228,6 +229,7 @@ export type PaginationInfo = Message<"liquidmetal.v1alpha1.PaginationInfo"> & {
|
|
|
228
229
|
/**
|
|
229
230
|
* __DESCRIPTION__ Current page number (1-based)
|
|
230
231
|
* __EXAMPLE__ 1
|
|
232
|
+
* __REQUIRED__ TRUE
|
|
231
233
|
*
|
|
232
234
|
* @generated from field: int32 page = 2;
|
|
233
235
|
*/
|
|
@@ -235,6 +237,7 @@ export type PaginationInfo = Message<"liquidmetal.v1alpha1.PaginationInfo"> & {
|
|
|
235
237
|
/**
|
|
236
238
|
* __DESCRIPTION__ Results per page. May be adjusted for performance
|
|
237
239
|
* __EXAMPLE__ 15
|
|
240
|
+
* __REQUIRED__ TRUE
|
|
238
241
|
*
|
|
239
242
|
* @generated from field: int32 page_size = 3;
|
|
240
243
|
*/
|
|
@@ -242,13 +245,14 @@ export type PaginationInfo = Message<"liquidmetal.v1alpha1.PaginationInfo"> & {
|
|
|
242
245
|
/**
|
|
243
246
|
* __DESCRIPTION__ Total available pages. Calculated as ceil(total/pageSize)
|
|
244
247
|
* __EXAMPLE__ 68
|
|
248
|
+
* __REQUIRED__ FALSE
|
|
245
249
|
*
|
|
246
250
|
* @generated from field: int32 total_pages = 4;
|
|
247
251
|
*/
|
|
248
252
|
totalPages: number;
|
|
249
253
|
/**
|
|
250
254
|
* __DESCRIPTION__ Indicates more results available. Used for infinite scroll implementation
|
|
251
|
-
* __EXAMPLE__
|
|
255
|
+
* __EXAMPLE__ FALSE
|
|
252
256
|
*
|
|
253
257
|
* @generated from field: bool has_more = 5;
|
|
254
258
|
*/
|
|
@@ -281,7 +285,7 @@ export type CreatePageSummaryRequest = Message<"liquidmetal.v1alpha1.CreatePageS
|
|
|
281
285
|
pageSize: number;
|
|
282
286
|
/**
|
|
283
287
|
* __DESCRIPTION__ Original search session identifier from the initial search
|
|
284
|
-
* __EXAMPLE__ "
|
|
288
|
+
* __EXAMPLE__ "<YOUR-REQUEST-ID>"
|
|
285
289
|
* __REQUIRED__ TRUE
|
|
286
290
|
*
|
|
287
291
|
* @generated from field: string request_id = 3;
|
|
@@ -324,7 +328,7 @@ export declare const CreatePageSummaryResponseSchema: GenMessage<CreatePageSumma
|
|
|
324
328
|
export type RunSupervisorAgentRequest = Message<"liquidmetal.v1alpha1.RunSupervisorAgentRequest"> & {
|
|
325
329
|
/**
|
|
326
330
|
* __DESCRIPTION__ Natural language search query that can include complex criteria. Supports queries like finding documents with specific content types, PII, or semantic meaning
|
|
327
|
-
* __EXAMPLE__ "
|
|
331
|
+
* __EXAMPLE__ "All my files"
|
|
328
332
|
* __REQUIRED__ TRUE
|
|
329
333
|
*
|
|
330
334
|
* @generated from field: string input = 1;
|
|
@@ -332,7 +336,7 @@ export type RunSupervisorAgentRequest = Message<"liquidmetal.v1alpha1.RunSupervi
|
|
|
332
336
|
input: string;
|
|
333
337
|
/**
|
|
334
338
|
* __DESCRIPTION__ Client-provided search session identifier. Required for pagination and result tracking. We recommend using a UUID or ULID for this value
|
|
335
|
-
* __EXAMPLE__ "
|
|
339
|
+
* __EXAMPLE__ "<YOUR-REQUEST-ID>"
|
|
336
340
|
* __REQUIRED__ TRUE
|
|
337
341
|
*
|
|
338
342
|
* @generated from field: string request_id = 2;
|
|
@@ -340,7 +344,7 @@ export type RunSupervisorAgentRequest = Message<"liquidmetal.v1alpha1.RunSupervi
|
|
|
340
344
|
requestId: string;
|
|
341
345
|
/**
|
|
342
346
|
* __DESCRIPTION__ The buckets to search. If provided, the search will only return results from these buckets
|
|
343
|
-
* __EXAMPLE__ [{"bucket": {"name": "my-
|
|
347
|
+
* __EXAMPLE__ [{"bucket": {"name": "my-smartbucket", "version": "01jxanr45haeswhay4n0q8340y", "application_name": "my-app"}}]
|
|
344
348
|
* __REQUIRED__ TRUE
|
|
345
349
|
*
|
|
346
350
|
* @generated from field: repeated liquidmetal.v1alpha1.BucketLocator bucket_locations = 3;
|
|
@@ -366,14 +370,14 @@ export declare const RunSupervisorAgentRequestSchema: GenMessage<RunSupervisorAg
|
|
|
366
370
|
export type RunSupervisorAgentResponse = Message<"liquidmetal.v1alpha1.RunSupervisorAgentResponse"> & {
|
|
367
371
|
/**
|
|
368
372
|
* __DESCRIPTION__ Matched results with metadata
|
|
369
|
-
* __EXAMPLE__ [{"chunkSignature": "
|
|
373
|
+
* __EXAMPLE__ [{"chunkSignature": "35a494ab4de3ff1157b3cf23e5e94600e24a5552cbb6db645599547075a8c3ad", "text": "", "source": {"bucket": {"moduleId": "01jxanr4xbf44jj3p62vwzh8j5", "bucketName": "my-smartbucket", "applicationVersionId": "01jxanr45haeswhay4n0q8340y", "applicationName": "my-app"}, "object": "my-file.pdf"}}]
|
|
370
374
|
*
|
|
371
375
|
* @generated from field: repeated liquidmetal.v1alpha1.TextResult results = 1;
|
|
372
376
|
*/
|
|
373
377
|
results: TextResult[];
|
|
374
378
|
/**
|
|
375
379
|
* __DESCRIPTION__ Pagination details for result navigation
|
|
376
|
-
* __EXAMPLE__ {"total": 100, "page": 1, "pageSize": 10, "totalPages": 10
|
|
380
|
+
* __EXAMPLE__ {"total": 100, "page": 1, "pageSize": 10, "totalPages": 10}
|
|
377
381
|
*
|
|
378
382
|
* @generated from field: liquidmetal.v1alpha1.PaginationInfo pagination = 2;
|
|
379
383
|
*/
|
|
@@ -390,7 +394,7 @@ export declare const RunSupervisorAgentResponseSchema: GenMessage<RunSupervisorA
|
|
|
390
394
|
export type GetPaginatedResultsRequest = Message<"liquidmetal.v1alpha1.GetPaginatedResultsRequest"> & {
|
|
391
395
|
/**
|
|
392
396
|
* __DESCRIPTION__ Original search session identifier from the initial search
|
|
393
|
-
* __EXAMPLE__ "
|
|
397
|
+
* __EXAMPLE__ "<YOUR-REQUEST-ID>"
|
|
394
398
|
* __REQUIRED__ TRUE
|
|
395
399
|
*
|
|
396
400
|
* @generated from field: string request_id = 1;
|
|
@@ -398,7 +402,7 @@ export type GetPaginatedResultsRequest = Message<"liquidmetal.v1alpha1.GetPagina
|
|
|
398
402
|
requestId: string;
|
|
399
403
|
/**
|
|
400
404
|
* __DESCRIPTION__ Requested page number
|
|
401
|
-
* __EXAMPLE__
|
|
405
|
+
* __EXAMPLE__ 1
|
|
402
406
|
* __REQUIRED__ TRUE
|
|
403
407
|
*
|
|
404
408
|
* @generated from field: optional int32 page = 2;
|
|
@@ -439,7 +443,7 @@ export type GetPaginatedResultsResponse = Message<"liquidmetal.v1alpha1.GetPagin
|
|
|
439
443
|
results: TextResult[];
|
|
440
444
|
/**
|
|
441
445
|
* __DESCRIPTION__ Updated pagination information
|
|
442
|
-
* __EXAMPLE__ {"total": 100, "page": 2, "pageSize": 10, "totalPages": 10
|
|
446
|
+
* __EXAMPLE__ {"total": 100, "page": 2, "pageSize": 10, "totalPages": 10}
|
|
443
447
|
*
|
|
444
448
|
* @generated from field: liquidmetal.v1alpha1.PaginationInfo pagination = 2;
|
|
445
449
|
*/
|