weave-typescript 0.5.1 → 0.9.0

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 (33) hide show
  1. package/dist/weaveapi/llmx/v1/architecture.pb.d.ts +377 -0
  2. package/dist/weaveapi/llmx/v1/architecture.pb.js +2756 -0
  3. package/dist/weaveapi/llmx/v1/capabilities.pb.d.ts +491 -0
  4. package/dist/weaveapi/llmx/v1/capabilities.pb.js +3159 -0
  5. package/dist/weaveapi/{modex → llmx}/v1/model.pb.d.ts +86 -42
  6. package/dist/weaveapi/{modex → llmx}/v1/model.pb.js +119 -442
  7. package/dist/weaveapi/llmx/v1/pricing.pb.d.ts +142 -0
  8. package/dist/weaveapi/llmx/v1/pricing.pb.js +825 -0
  9. package/dist/weaveapi/{modex → llmx}/v1/provider.pb.d.ts +1 -3
  10. package/dist/weaveapi/{modex → llmx}/v1/provider.pb.js +3 -57
  11. package/dist/weaveapi/{modex → llmx}/v1/service.pb.d.ts +20 -20
  12. package/dist/weaveapi/{modex → llmx}/v1/service.pb.js +17 -17
  13. package/dist/weavesql/llmxdb/capabilities_sql.d.ts +151 -0
  14. package/dist/weavesql/llmxdb/capabilities_sql.js +241 -0
  15. package/dist/weavesql/llmxdb/changes_sql.d.ts +81 -0
  16. package/dist/weavesql/llmxdb/changes_sql.js +118 -0
  17. package/dist/weavesql/llmxdb/models_sql.d.ts +198 -0
  18. package/dist/weavesql/llmxdb/models_sql.js +244 -0
  19. package/dist/weavesql/llmxdb/providers_sql.d.ts +122 -0
  20. package/dist/weavesql/llmxdb/providers_sql.js +179 -0
  21. package/dist/weavesql/llmxdb/scraper_runs_sql.d.ts +83 -0
  22. package/dist/weavesql/llmxdb/scraper_runs_sql.js +137 -0
  23. package/dist/weavesql/llmxdb/search_sql.d.ts +272 -0
  24. package/dist/weavesql/llmxdb/search_sql.js +348 -0
  25. package/dist/weavesql/weavedb/dataset_sql.d.ts +17 -0
  26. package/dist/weavesql/weavedb/dataset_sql.js +21 -0
  27. package/dist/weavesql/weavedb/relationships_sql.d.ts +16 -0
  28. package/dist/weavesql/weavedb/relationships_sql.js +32 -0
  29. package/dist/weavesql/weavedb/storage_sql.d.ts +33 -0
  30. package/dist/weavesql/weavedb/storage_sql.js +54 -0
  31. package/dist/weavesql/weavedb/synthesizer_sql.d.ts +28 -0
  32. package/dist/weavesql/weavedb/synthesizer_sql.js +42 -0
  33. package/package.json +4 -1
@@ -3,13 +3,16 @@
3
3
  // versions:
4
4
  // protoc-gen-ts_proto v2.6.1
5
5
  // protoc unknown
6
- // source: weaveapi/modex/v1/model.proto
6
+ // source: weaveapi/llmx/v1/model.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.Availability = exports.APIDetails = exports.Configuration = exports.Pricing = exports.TokenInfo = exports.ModelPerformance_BenchmarkScoresEntry = exports.ModelPerformance = exports.ModelClassification = exports.ModelCapabilities = exports.Model = exports.protobufPackage = void 0;
8
+ exports.Availability = exports.APIDetails = exports.Configuration = exports.TokenInfo = exports.ModelPerformance_BenchmarkScoresEntry = exports.ModelPerformance = exports.ModelClassification = exports.Model = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  const wire_1 = require("@bufbuild/protobuf/wire");
11
11
  const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
12
- exports.protobufPackage = "weaveapi.modex.v1";
12
+ const architecture_pb_1 = require("./architecture.pb");
13
+ const capabilities_pb_1 = require("./capabilities.pb");
14
+ const pricing_pb_1 = require("./pricing.pb");
15
+ exports.protobufPackage = "weaveapi.llmx.v1";
13
16
  function createBaseModel() {
14
17
  return {
15
18
  id: "",
@@ -25,7 +28,7 @@ function createBaseModel() {
25
28
  releaseDate: undefined,
26
29
  trainingDataCutoff: undefined,
27
30
  deprecationDate: undefined,
28
- capabilities: undefined,
31
+ capabilities: [],
29
32
  classification: undefined,
30
33
  performance: undefined,
31
34
  tokens: undefined,
@@ -33,13 +36,16 @@ function createBaseModel() {
33
36
  configuration: undefined,
34
37
  apiDetails: undefined,
35
38
  availability: undefined,
39
+ architecture: undefined,
40
+ training: undefined,
41
+ safety: undefined,
42
+ licensing: undefined,
43
+ technicalSpecs: undefined,
36
44
  lastScrapedAt: undefined,
37
45
  dataSources: [],
38
46
  isActive: false,
39
47
  isDeprecated: false,
40
48
  replacementModelId: "",
41
- createdAt: undefined,
42
- updatedAt: undefined,
43
49
  };
44
50
  }
45
51
  exports.Model = {
@@ -83,8 +89,8 @@ exports.Model = {
83
89
  if (message.deprecationDate !== undefined) {
84
90
  timestamp_pb_1.Timestamp.encode(toTimestamp(message.deprecationDate), writer.uint32(106).fork()).join();
85
91
  }
86
- if (message.capabilities !== undefined) {
87
- exports.ModelCapabilities.encode(message.capabilities, writer.uint32(114).fork()).join();
92
+ for (const v of message.capabilities) {
93
+ capabilities_pb_1.Capability.encode(v, writer.uint32(114).fork()).join();
88
94
  }
89
95
  if (message.classification !== undefined) {
90
96
  exports.ModelClassification.encode(message.classification, writer.uint32(122).fork()).join();
@@ -96,7 +102,7 @@ exports.Model = {
96
102
  exports.TokenInfo.encode(message.tokens, writer.uint32(138).fork()).join();
97
103
  }
98
104
  if (message.pricing !== undefined) {
99
- exports.Pricing.encode(message.pricing, writer.uint32(146).fork()).join();
105
+ pricing_pb_1.Pricing.encode(message.pricing, writer.uint32(146).fork()).join();
100
106
  }
101
107
  if (message.configuration !== undefined) {
102
108
  exports.Configuration.encode(message.configuration, writer.uint32(154).fork()).join();
@@ -107,26 +113,35 @@ exports.Model = {
107
113
  if (message.availability !== undefined) {
108
114
  exports.Availability.encode(message.availability, writer.uint32(170).fork()).join();
109
115
  }
116
+ if (message.architecture !== undefined) {
117
+ architecture_pb_1.Architecture.encode(message.architecture, writer.uint32(178).fork()).join();
118
+ }
119
+ if (message.training !== undefined) {
120
+ architecture_pb_1.Training.encode(message.training, writer.uint32(186).fork()).join();
121
+ }
122
+ if (message.safety !== undefined) {
123
+ architecture_pb_1.Safety.encode(message.safety, writer.uint32(194).fork()).join();
124
+ }
125
+ if (message.licensing !== undefined) {
126
+ architecture_pb_1.Licensing.encode(message.licensing, writer.uint32(202).fork()).join();
127
+ }
128
+ if (message.technicalSpecs !== undefined) {
129
+ architecture_pb_1.TechnicalSpecs.encode(message.technicalSpecs, writer.uint32(210).fork()).join();
130
+ }
110
131
  if (message.lastScrapedAt !== undefined) {
111
- timestamp_pb_1.Timestamp.encode(toTimestamp(message.lastScrapedAt), writer.uint32(178).fork()).join();
132
+ timestamp_pb_1.Timestamp.encode(toTimestamp(message.lastScrapedAt), writer.uint32(218).fork()).join();
112
133
  }
113
134
  for (const v of message.dataSources) {
114
- writer.uint32(186).string(v);
135
+ writer.uint32(226).string(v);
115
136
  }
116
137
  if (message.isActive !== false) {
117
- writer.uint32(192).bool(message.isActive);
138
+ writer.uint32(232).bool(message.isActive);
118
139
  }
119
140
  if (message.isDeprecated !== false) {
120
- writer.uint32(200).bool(message.isDeprecated);
141
+ writer.uint32(240).bool(message.isDeprecated);
121
142
  }
122
143
  if (message.replacementModelId !== "") {
123
- writer.uint32(210).string(message.replacementModelId);
124
- }
125
- if (message.createdAt !== undefined) {
126
- timestamp_pb_1.Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(218).fork()).join();
127
- }
128
- if (message.updatedAt !== undefined) {
129
- timestamp_pb_1.Timestamp.encode(toTimestamp(message.updatedAt), writer.uint32(226).fork()).join();
144
+ writer.uint32(250).string(message.replacementModelId);
130
145
  }
131
146
  return writer;
132
147
  },
@@ -232,7 +247,7 @@ exports.Model = {
232
247
  if (tag !== 114) {
233
248
  break;
234
249
  }
235
- message.capabilities = exports.ModelCapabilities.decode(reader, reader.uint32());
250
+ message.capabilities.push(capabilities_pb_1.Capability.decode(reader, reader.uint32()));
236
251
  continue;
237
252
  }
238
253
  case 15: {
@@ -260,7 +275,7 @@ exports.Model = {
260
275
  if (tag !== 146) {
261
276
  break;
262
277
  }
263
- message.pricing = exports.Pricing.decode(reader, reader.uint32());
278
+ message.pricing = pricing_pb_1.Pricing.decode(reader, reader.uint32());
264
279
  continue;
265
280
  }
266
281
  case 19: {
@@ -288,49 +303,70 @@ exports.Model = {
288
303
  if (tag !== 178) {
289
304
  break;
290
305
  }
291
- message.lastScrapedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
306
+ message.architecture = architecture_pb_1.Architecture.decode(reader, reader.uint32());
292
307
  continue;
293
308
  }
294
309
  case 23: {
295
310
  if (tag !== 186) {
296
311
  break;
297
312
  }
298
- message.dataSources.push(reader.string());
313
+ message.training = architecture_pb_1.Training.decode(reader, reader.uint32());
299
314
  continue;
300
315
  }
301
316
  case 24: {
302
- if (tag !== 192) {
317
+ if (tag !== 194) {
303
318
  break;
304
319
  }
305
- message.isActive = reader.bool();
320
+ message.safety = architecture_pb_1.Safety.decode(reader, reader.uint32());
306
321
  continue;
307
322
  }
308
323
  case 25: {
309
- if (tag !== 200) {
324
+ if (tag !== 202) {
310
325
  break;
311
326
  }
312
- message.isDeprecated = reader.bool();
327
+ message.licensing = architecture_pb_1.Licensing.decode(reader, reader.uint32());
313
328
  continue;
314
329
  }
315
330
  case 26: {
316
331
  if (tag !== 210) {
317
332
  break;
318
333
  }
319
- message.replacementModelId = reader.string();
334
+ message.technicalSpecs = architecture_pb_1.TechnicalSpecs.decode(reader, reader.uint32());
320
335
  continue;
321
336
  }
322
337
  case 27: {
323
338
  if (tag !== 218) {
324
339
  break;
325
340
  }
326
- message.createdAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
341
+ message.lastScrapedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
327
342
  continue;
328
343
  }
329
344
  case 28: {
330
345
  if (tag !== 226) {
331
346
  break;
332
347
  }
333
- message.updatedAt = fromTimestamp(timestamp_pb_1.Timestamp.decode(reader, reader.uint32()));
348
+ message.dataSources.push(reader.string());
349
+ continue;
350
+ }
351
+ case 29: {
352
+ if (tag !== 232) {
353
+ break;
354
+ }
355
+ message.isActive = reader.bool();
356
+ continue;
357
+ }
358
+ case 30: {
359
+ if (tag !== 240) {
360
+ break;
361
+ }
362
+ message.isDeprecated = reader.bool();
363
+ continue;
364
+ }
365
+ case 31: {
366
+ if (tag !== 250) {
367
+ break;
368
+ }
369
+ message.replacementModelId = reader.string();
334
370
  continue;
335
371
  }
336
372
  }
@@ -356,14 +392,21 @@ exports.Model = {
356
392
  releaseDate: isSet(object.releaseDate) ? fromJsonTimestamp(object.releaseDate) : undefined,
357
393
  trainingDataCutoff: isSet(object.trainingDataCutoff) ? fromJsonTimestamp(object.trainingDataCutoff) : undefined,
358
394
  deprecationDate: isSet(object.deprecationDate) ? fromJsonTimestamp(object.deprecationDate) : undefined,
359
- capabilities: isSet(object.capabilities) ? exports.ModelCapabilities.fromJSON(object.capabilities) : undefined,
395
+ capabilities: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.capabilities)
396
+ ? object.capabilities.map((e) => capabilities_pb_1.Capability.fromJSON(e))
397
+ : [],
360
398
  classification: isSet(object.classification) ? exports.ModelClassification.fromJSON(object.classification) : undefined,
361
399
  performance: isSet(object.performance) ? exports.ModelPerformance.fromJSON(object.performance) : undefined,
362
400
  tokens: isSet(object.tokens) ? exports.TokenInfo.fromJSON(object.tokens) : undefined,
363
- pricing: isSet(object.pricing) ? exports.Pricing.fromJSON(object.pricing) : undefined,
401
+ pricing: isSet(object.pricing) ? pricing_pb_1.Pricing.fromJSON(object.pricing) : undefined,
364
402
  configuration: isSet(object.configuration) ? exports.Configuration.fromJSON(object.configuration) : undefined,
365
403
  apiDetails: isSet(object.apiDetails) ? exports.APIDetails.fromJSON(object.apiDetails) : undefined,
366
404
  availability: isSet(object.availability) ? exports.Availability.fromJSON(object.availability) : undefined,
405
+ architecture: isSet(object.architecture) ? architecture_pb_1.Architecture.fromJSON(object.architecture) : undefined,
406
+ training: isSet(object.training) ? architecture_pb_1.Training.fromJSON(object.training) : undefined,
407
+ safety: isSet(object.safety) ? architecture_pb_1.Safety.fromJSON(object.safety) : undefined,
408
+ licensing: isSet(object.licensing) ? architecture_pb_1.Licensing.fromJSON(object.licensing) : undefined,
409
+ technicalSpecs: isSet(object.technicalSpecs) ? architecture_pb_1.TechnicalSpecs.fromJSON(object.technicalSpecs) : undefined,
367
410
  lastScrapedAt: isSet(object.lastScrapedAt) ? fromJsonTimestamp(object.lastScrapedAt) : undefined,
368
411
  dataSources: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.dataSources)
369
412
  ? object.dataSources.map((e) => globalThis.String(e))
@@ -371,12 +414,10 @@ exports.Model = {
371
414
  isActive: isSet(object.isActive) ? globalThis.Boolean(object.isActive) : false,
372
415
  isDeprecated: isSet(object.isDeprecated) ? globalThis.Boolean(object.isDeprecated) : false,
373
416
  replacementModelId: isSet(object.replacementModelId) ? globalThis.String(object.replacementModelId) : "",
374
- createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
375
- updatedAt: isSet(object.updatedAt) ? fromJsonTimestamp(object.updatedAt) : undefined,
376
417
  };
377
418
  },
378
419
  toJSON(message) {
379
- var _a;
420
+ var _a, _b;
380
421
  const obj = {};
381
422
  if (message.id !== "") {
382
423
  obj.id = message.id;
@@ -417,8 +458,8 @@ exports.Model = {
417
458
  if (message.deprecationDate !== undefined) {
418
459
  obj.deprecationDate = message.deprecationDate.toISOString();
419
460
  }
420
- if (message.capabilities !== undefined) {
421
- obj.capabilities = exports.ModelCapabilities.toJSON(message.capabilities);
461
+ if ((_a = message.capabilities) === null || _a === void 0 ? void 0 : _a.length) {
462
+ obj.capabilities = message.capabilities.map((e) => capabilities_pb_1.Capability.toJSON(e));
422
463
  }
423
464
  if (message.classification !== undefined) {
424
465
  obj.classification = exports.ModelClassification.toJSON(message.classification);
@@ -430,7 +471,7 @@ exports.Model = {
430
471
  obj.tokens = exports.TokenInfo.toJSON(message.tokens);
431
472
  }
432
473
  if (message.pricing !== undefined) {
433
- obj.pricing = exports.Pricing.toJSON(message.pricing);
474
+ obj.pricing = pricing_pb_1.Pricing.toJSON(message.pricing);
434
475
  }
435
476
  if (message.configuration !== undefined) {
436
477
  obj.configuration = exports.Configuration.toJSON(message.configuration);
@@ -441,10 +482,25 @@ exports.Model = {
441
482
  if (message.availability !== undefined) {
442
483
  obj.availability = exports.Availability.toJSON(message.availability);
443
484
  }
485
+ if (message.architecture !== undefined) {
486
+ obj.architecture = architecture_pb_1.Architecture.toJSON(message.architecture);
487
+ }
488
+ if (message.training !== undefined) {
489
+ obj.training = architecture_pb_1.Training.toJSON(message.training);
490
+ }
491
+ if (message.safety !== undefined) {
492
+ obj.safety = architecture_pb_1.Safety.toJSON(message.safety);
493
+ }
494
+ if (message.licensing !== undefined) {
495
+ obj.licensing = architecture_pb_1.Licensing.toJSON(message.licensing);
496
+ }
497
+ if (message.technicalSpecs !== undefined) {
498
+ obj.technicalSpecs = architecture_pb_1.TechnicalSpecs.toJSON(message.technicalSpecs);
499
+ }
444
500
  if (message.lastScrapedAt !== undefined) {
445
501
  obj.lastScrapedAt = message.lastScrapedAt.toISOString();
446
502
  }
447
- if ((_a = message.dataSources) === null || _a === void 0 ? void 0 : _a.length) {
503
+ if ((_b = message.dataSources) === null || _b === void 0 ? void 0 : _b.length) {
448
504
  obj.dataSources = message.dataSources;
449
505
  }
450
506
  if (message.isActive !== false) {
@@ -456,19 +512,13 @@ exports.Model = {
456
512
  if (message.replacementModelId !== "") {
457
513
  obj.replacementModelId = message.replacementModelId;
458
514
  }
459
- if (message.createdAt !== undefined) {
460
- obj.createdAt = message.createdAt.toISOString();
461
- }
462
- if (message.updatedAt !== undefined) {
463
- obj.updatedAt = message.updatedAt.toISOString();
464
- }
465
515
  return obj;
466
516
  },
467
517
  create(base) {
468
518
  return exports.Model.fromPartial(base !== null && base !== void 0 ? base : {});
469
519
  },
470
520
  fromPartial(object) {
471
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
521
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
472
522
  const message = createBaseModel();
473
523
  message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
474
524
  message.providerId = (_b = object.providerId) !== null && _b !== void 0 ? _b : "";
@@ -483,9 +533,7 @@ exports.Model = {
483
533
  message.releaseDate = (_l = object.releaseDate) !== null && _l !== void 0 ? _l : undefined;
484
534
  message.trainingDataCutoff = (_m = object.trainingDataCutoff) !== null && _m !== void 0 ? _m : undefined;
485
535
  message.deprecationDate = (_o = object.deprecationDate) !== null && _o !== void 0 ? _o : undefined;
486
- message.capabilities = (object.capabilities !== undefined && object.capabilities !== null)
487
- ? exports.ModelCapabilities.fromPartial(object.capabilities)
488
- : undefined;
536
+ message.capabilities = ((_p = object.capabilities) === null || _p === void 0 ? void 0 : _p.map((e) => capabilities_pb_1.Capability.fromPartial(e))) || [];
489
537
  message.classification = (object.classification !== undefined && object.classification !== null)
490
538
  ? exports.ModelClassification.fromPartial(object.classification)
491
539
  : undefined;
@@ -496,7 +544,7 @@ exports.Model = {
496
544
  ? exports.TokenInfo.fromPartial(object.tokens)
497
545
  : undefined;
498
546
  message.pricing = (object.pricing !== undefined && object.pricing !== null)
499
- ? exports.Pricing.fromPartial(object.pricing)
547
+ ? pricing_pb_1.Pricing.fromPartial(object.pricing)
500
548
  : undefined;
501
549
  message.configuration = (object.configuration !== undefined && object.configuration !== null)
502
550
  ? exports.Configuration.fromPartial(object.configuration)
@@ -507,268 +555,26 @@ exports.Model = {
507
555
  message.availability = (object.availability !== undefined && object.availability !== null)
508
556
  ? exports.Availability.fromPartial(object.availability)
509
557
  : undefined;
510
- message.lastScrapedAt = (_p = object.lastScrapedAt) !== null && _p !== void 0 ? _p : undefined;
511
- message.dataSources = ((_q = object.dataSources) === null || _q === void 0 ? void 0 : _q.map((e) => e)) || [];
512
- message.isActive = (_r = object.isActive) !== null && _r !== void 0 ? _r : false;
513
- message.isDeprecated = (_s = object.isDeprecated) !== null && _s !== void 0 ? _s : false;
514
- message.replacementModelId = (_t = object.replacementModelId) !== null && _t !== void 0 ? _t : "";
515
- message.createdAt = (_u = object.createdAt) !== null && _u !== void 0 ? _u : undefined;
516
- message.updatedAt = (_v = object.updatedAt) !== null && _v !== void 0 ? _v : undefined;
517
- return message;
518
- },
519
- };
520
- function createBaseModelCapabilities() {
521
- return {
522
- supportsChat: false,
523
- supportsCompletion: false,
524
- supportsEmbeddings: false,
525
- supportsVision: false,
526
- supportsAudio: false,
527
- supportsVideo: false,
528
- supportsToolCalls: false,
529
- supportsFunctionCalls: false,
530
- supportsJsonMode: false,
531
- supportsStreaming: false,
532
- supportsReasoning: false,
533
- inputModalities: [],
534
- outputModalities: [],
535
- };
536
- }
537
- exports.ModelCapabilities = {
538
- encode(message, writer = new wire_1.BinaryWriter()) {
539
- if (message.supportsChat !== false) {
540
- writer.uint32(8).bool(message.supportsChat);
541
- }
542
- if (message.supportsCompletion !== false) {
543
- writer.uint32(16).bool(message.supportsCompletion);
544
- }
545
- if (message.supportsEmbeddings !== false) {
546
- writer.uint32(24).bool(message.supportsEmbeddings);
547
- }
548
- if (message.supportsVision !== false) {
549
- writer.uint32(32).bool(message.supportsVision);
550
- }
551
- if (message.supportsAudio !== false) {
552
- writer.uint32(40).bool(message.supportsAudio);
553
- }
554
- if (message.supportsVideo !== false) {
555
- writer.uint32(48).bool(message.supportsVideo);
556
- }
557
- if (message.supportsToolCalls !== false) {
558
- writer.uint32(56).bool(message.supportsToolCalls);
559
- }
560
- if (message.supportsFunctionCalls !== false) {
561
- writer.uint32(64).bool(message.supportsFunctionCalls);
562
- }
563
- if (message.supportsJsonMode !== false) {
564
- writer.uint32(72).bool(message.supportsJsonMode);
565
- }
566
- if (message.supportsStreaming !== false) {
567
- writer.uint32(80).bool(message.supportsStreaming);
568
- }
569
- if (message.supportsReasoning !== false) {
570
- writer.uint32(88).bool(message.supportsReasoning);
571
- }
572
- for (const v of message.inputModalities) {
573
- writer.uint32(98).string(v);
574
- }
575
- for (const v of message.outputModalities) {
576
- writer.uint32(106).string(v);
577
- }
578
- return writer;
579
- },
580
- decode(input, length) {
581
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
582
- let end = length === undefined ? reader.len : reader.pos + length;
583
- const message = createBaseModelCapabilities();
584
- while (reader.pos < end) {
585
- const tag = reader.uint32();
586
- switch (tag >>> 3) {
587
- case 1: {
588
- if (tag !== 8) {
589
- break;
590
- }
591
- message.supportsChat = reader.bool();
592
- continue;
593
- }
594
- case 2: {
595
- if (tag !== 16) {
596
- break;
597
- }
598
- message.supportsCompletion = reader.bool();
599
- continue;
600
- }
601
- case 3: {
602
- if (tag !== 24) {
603
- break;
604
- }
605
- message.supportsEmbeddings = reader.bool();
606
- continue;
607
- }
608
- case 4: {
609
- if (tag !== 32) {
610
- break;
611
- }
612
- message.supportsVision = reader.bool();
613
- continue;
614
- }
615
- case 5: {
616
- if (tag !== 40) {
617
- break;
618
- }
619
- message.supportsAudio = reader.bool();
620
- continue;
621
- }
622
- case 6: {
623
- if (tag !== 48) {
624
- break;
625
- }
626
- message.supportsVideo = reader.bool();
627
- continue;
628
- }
629
- case 7: {
630
- if (tag !== 56) {
631
- break;
632
- }
633
- message.supportsToolCalls = reader.bool();
634
- continue;
635
- }
636
- case 8: {
637
- if (tag !== 64) {
638
- break;
639
- }
640
- message.supportsFunctionCalls = reader.bool();
641
- continue;
642
- }
643
- case 9: {
644
- if (tag !== 72) {
645
- break;
646
- }
647
- message.supportsJsonMode = reader.bool();
648
- continue;
649
- }
650
- case 10: {
651
- if (tag !== 80) {
652
- break;
653
- }
654
- message.supportsStreaming = reader.bool();
655
- continue;
656
- }
657
- case 11: {
658
- if (tag !== 88) {
659
- break;
660
- }
661
- message.supportsReasoning = reader.bool();
662
- continue;
663
- }
664
- case 12: {
665
- if (tag !== 98) {
666
- break;
667
- }
668
- message.inputModalities.push(reader.string());
669
- continue;
670
- }
671
- case 13: {
672
- if (tag !== 106) {
673
- break;
674
- }
675
- message.outputModalities.push(reader.string());
676
- continue;
677
- }
678
- }
679
- if ((tag & 7) === 4 || tag === 0) {
680
- break;
681
- }
682
- reader.skip(tag & 7);
683
- }
684
- return message;
685
- },
686
- fromJSON(object) {
687
- return {
688
- supportsChat: isSet(object.supportsChat) ? globalThis.Boolean(object.supportsChat) : false,
689
- supportsCompletion: isSet(object.supportsCompletion) ? globalThis.Boolean(object.supportsCompletion) : false,
690
- supportsEmbeddings: isSet(object.supportsEmbeddings) ? globalThis.Boolean(object.supportsEmbeddings) : false,
691
- supportsVision: isSet(object.supportsVision) ? globalThis.Boolean(object.supportsVision) : false,
692
- supportsAudio: isSet(object.supportsAudio) ? globalThis.Boolean(object.supportsAudio) : false,
693
- supportsVideo: isSet(object.supportsVideo) ? globalThis.Boolean(object.supportsVideo) : false,
694
- supportsToolCalls: isSet(object.supportsToolCalls) ? globalThis.Boolean(object.supportsToolCalls) : false,
695
- supportsFunctionCalls: isSet(object.supportsFunctionCalls)
696
- ? globalThis.Boolean(object.supportsFunctionCalls)
697
- : false,
698
- supportsJsonMode: isSet(object.supportsJsonMode) ? globalThis.Boolean(object.supportsJsonMode) : false,
699
- supportsStreaming: isSet(object.supportsStreaming) ? globalThis.Boolean(object.supportsStreaming) : false,
700
- supportsReasoning: isSet(object.supportsReasoning) ? globalThis.Boolean(object.supportsReasoning) : false,
701
- inputModalities: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.inputModalities)
702
- ? object.inputModalities.map((e) => globalThis.String(e))
703
- : [],
704
- outputModalities: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.outputModalities)
705
- ? object.outputModalities.map((e) => globalThis.String(e))
706
- : [],
707
- };
708
- },
709
- toJSON(message) {
710
- var _a, _b;
711
- const obj = {};
712
- if (message.supportsChat !== false) {
713
- obj.supportsChat = message.supportsChat;
714
- }
715
- if (message.supportsCompletion !== false) {
716
- obj.supportsCompletion = message.supportsCompletion;
717
- }
718
- if (message.supportsEmbeddings !== false) {
719
- obj.supportsEmbeddings = message.supportsEmbeddings;
720
- }
721
- if (message.supportsVision !== false) {
722
- obj.supportsVision = message.supportsVision;
723
- }
724
- if (message.supportsAudio !== false) {
725
- obj.supportsAudio = message.supportsAudio;
726
- }
727
- if (message.supportsVideo !== false) {
728
- obj.supportsVideo = message.supportsVideo;
729
- }
730
- if (message.supportsToolCalls !== false) {
731
- obj.supportsToolCalls = message.supportsToolCalls;
732
- }
733
- if (message.supportsFunctionCalls !== false) {
734
- obj.supportsFunctionCalls = message.supportsFunctionCalls;
735
- }
736
- if (message.supportsJsonMode !== false) {
737
- obj.supportsJsonMode = message.supportsJsonMode;
738
- }
739
- if (message.supportsStreaming !== false) {
740
- obj.supportsStreaming = message.supportsStreaming;
741
- }
742
- if (message.supportsReasoning !== false) {
743
- obj.supportsReasoning = message.supportsReasoning;
744
- }
745
- if ((_a = message.inputModalities) === null || _a === void 0 ? void 0 : _a.length) {
746
- obj.inputModalities = message.inputModalities;
747
- }
748
- if ((_b = message.outputModalities) === null || _b === void 0 ? void 0 : _b.length) {
749
- obj.outputModalities = message.outputModalities;
750
- }
751
- return obj;
752
- },
753
- create(base) {
754
- return exports.ModelCapabilities.fromPartial(base !== null && base !== void 0 ? base : {});
755
- },
756
- fromPartial(object) {
757
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
758
- const message = createBaseModelCapabilities();
759
- message.supportsChat = (_a = object.supportsChat) !== null && _a !== void 0 ? _a : false;
760
- message.supportsCompletion = (_b = object.supportsCompletion) !== null && _b !== void 0 ? _b : false;
761
- message.supportsEmbeddings = (_c = object.supportsEmbeddings) !== null && _c !== void 0 ? _c : false;
762
- message.supportsVision = (_d = object.supportsVision) !== null && _d !== void 0 ? _d : false;
763
- message.supportsAudio = (_e = object.supportsAudio) !== null && _e !== void 0 ? _e : false;
764
- message.supportsVideo = (_f = object.supportsVideo) !== null && _f !== void 0 ? _f : false;
765
- message.supportsToolCalls = (_g = object.supportsToolCalls) !== null && _g !== void 0 ? _g : false;
766
- message.supportsFunctionCalls = (_h = object.supportsFunctionCalls) !== null && _h !== void 0 ? _h : false;
767
- message.supportsJsonMode = (_j = object.supportsJsonMode) !== null && _j !== void 0 ? _j : false;
768
- message.supportsStreaming = (_k = object.supportsStreaming) !== null && _k !== void 0 ? _k : false;
769
- message.supportsReasoning = (_l = object.supportsReasoning) !== null && _l !== void 0 ? _l : false;
770
- message.inputModalities = ((_m = object.inputModalities) === null || _m === void 0 ? void 0 : _m.map((e) => e)) || [];
771
- message.outputModalities = ((_o = object.outputModalities) === null || _o === void 0 ? void 0 : _o.map((e) => e)) || [];
558
+ message.architecture = (object.architecture !== undefined && object.architecture !== null)
559
+ ? architecture_pb_1.Architecture.fromPartial(object.architecture)
560
+ : undefined;
561
+ message.training = (object.training !== undefined && object.training !== null)
562
+ ? architecture_pb_1.Training.fromPartial(object.training)
563
+ : undefined;
564
+ message.safety = (object.safety !== undefined && object.safety !== null)
565
+ ? architecture_pb_1.Safety.fromPartial(object.safety)
566
+ : undefined;
567
+ message.licensing = (object.licensing !== undefined && object.licensing !== null)
568
+ ? architecture_pb_1.Licensing.fromPartial(object.licensing)
569
+ : undefined;
570
+ message.technicalSpecs = (object.technicalSpecs !== undefined && object.technicalSpecs !== null)
571
+ ? architecture_pb_1.TechnicalSpecs.fromPartial(object.technicalSpecs)
572
+ : undefined;
573
+ message.lastScrapedAt = (_q = object.lastScrapedAt) !== null && _q !== void 0 ? _q : undefined;
574
+ message.dataSources = ((_r = object.dataSources) === null || _r === void 0 ? void 0 : _r.map((e) => e)) || [];
575
+ message.isActive = (_s = object.isActive) !== null && _s !== void 0 ? _s : false;
576
+ message.isDeprecated = (_t = object.isDeprecated) !== null && _t !== void 0 ? _t : false;
577
+ message.replacementModelId = (_u = object.replacementModelId) !== null && _u !== void 0 ? _u : "";
772
578
  return message;
773
579
  },
774
580
  };
@@ -1202,135 +1008,6 @@ exports.TokenInfo = {
1202
1008
  return message;
1203
1009
  },
1204
1010
  };
1205
- function createBasePricing() {
1206
- return { inputPrice: 0, outputPrice: 0, cacheReadPrice: 0, cacheWritePrice: 0, fineTuningPrice: 0, currency: "" };
1207
- }
1208
- exports.Pricing = {
1209
- encode(message, writer = new wire_1.BinaryWriter()) {
1210
- if (message.inputPrice !== 0) {
1211
- writer.uint32(9).double(message.inputPrice);
1212
- }
1213
- if (message.outputPrice !== 0) {
1214
- writer.uint32(17).double(message.outputPrice);
1215
- }
1216
- if (message.cacheReadPrice !== 0) {
1217
- writer.uint32(25).double(message.cacheReadPrice);
1218
- }
1219
- if (message.cacheWritePrice !== 0) {
1220
- writer.uint32(33).double(message.cacheWritePrice);
1221
- }
1222
- if (message.fineTuningPrice !== 0) {
1223
- writer.uint32(41).double(message.fineTuningPrice);
1224
- }
1225
- if (message.currency !== "") {
1226
- writer.uint32(50).string(message.currency);
1227
- }
1228
- return writer;
1229
- },
1230
- decode(input, length) {
1231
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1232
- let end = length === undefined ? reader.len : reader.pos + length;
1233
- const message = createBasePricing();
1234
- while (reader.pos < end) {
1235
- const tag = reader.uint32();
1236
- switch (tag >>> 3) {
1237
- case 1: {
1238
- if (tag !== 9) {
1239
- break;
1240
- }
1241
- message.inputPrice = reader.double();
1242
- continue;
1243
- }
1244
- case 2: {
1245
- if (tag !== 17) {
1246
- break;
1247
- }
1248
- message.outputPrice = reader.double();
1249
- continue;
1250
- }
1251
- case 3: {
1252
- if (tag !== 25) {
1253
- break;
1254
- }
1255
- message.cacheReadPrice = reader.double();
1256
- continue;
1257
- }
1258
- case 4: {
1259
- if (tag !== 33) {
1260
- break;
1261
- }
1262
- message.cacheWritePrice = reader.double();
1263
- continue;
1264
- }
1265
- case 5: {
1266
- if (tag !== 41) {
1267
- break;
1268
- }
1269
- message.fineTuningPrice = reader.double();
1270
- continue;
1271
- }
1272
- case 6: {
1273
- if (tag !== 50) {
1274
- break;
1275
- }
1276
- message.currency = reader.string();
1277
- continue;
1278
- }
1279
- }
1280
- if ((tag & 7) === 4 || tag === 0) {
1281
- break;
1282
- }
1283
- reader.skip(tag & 7);
1284
- }
1285
- return message;
1286
- },
1287
- fromJSON(object) {
1288
- return {
1289
- inputPrice: isSet(object.inputPrice) ? globalThis.Number(object.inputPrice) : 0,
1290
- outputPrice: isSet(object.outputPrice) ? globalThis.Number(object.outputPrice) : 0,
1291
- cacheReadPrice: isSet(object.cacheReadPrice) ? globalThis.Number(object.cacheReadPrice) : 0,
1292
- cacheWritePrice: isSet(object.cacheWritePrice) ? globalThis.Number(object.cacheWritePrice) : 0,
1293
- fineTuningPrice: isSet(object.fineTuningPrice) ? globalThis.Number(object.fineTuningPrice) : 0,
1294
- currency: isSet(object.currency) ? globalThis.String(object.currency) : "",
1295
- };
1296
- },
1297
- toJSON(message) {
1298
- const obj = {};
1299
- if (message.inputPrice !== 0) {
1300
- obj.inputPrice = message.inputPrice;
1301
- }
1302
- if (message.outputPrice !== 0) {
1303
- obj.outputPrice = message.outputPrice;
1304
- }
1305
- if (message.cacheReadPrice !== 0) {
1306
- obj.cacheReadPrice = message.cacheReadPrice;
1307
- }
1308
- if (message.cacheWritePrice !== 0) {
1309
- obj.cacheWritePrice = message.cacheWritePrice;
1310
- }
1311
- if (message.fineTuningPrice !== 0) {
1312
- obj.fineTuningPrice = message.fineTuningPrice;
1313
- }
1314
- if (message.currency !== "") {
1315
- obj.currency = message.currency;
1316
- }
1317
- return obj;
1318
- },
1319
- create(base) {
1320
- return exports.Pricing.fromPartial(base !== null && base !== void 0 ? base : {});
1321
- },
1322
- fromPartial(object) {
1323
- var _a, _b, _c, _d, _e, _f;
1324
- const message = createBasePricing();
1325
- message.inputPrice = (_a = object.inputPrice) !== null && _a !== void 0 ? _a : 0;
1326
- message.outputPrice = (_b = object.outputPrice) !== null && _b !== void 0 ? _b : 0;
1327
- message.cacheReadPrice = (_c = object.cacheReadPrice) !== null && _c !== void 0 ? _c : 0;
1328
- message.cacheWritePrice = (_d = object.cacheWritePrice) !== null && _d !== void 0 ? _d : 0;
1329
- message.fineTuningPrice = (_e = object.fineTuningPrice) !== null && _e !== void 0 ? _e : 0;
1330
- message.currency = (_f = object.currency) !== null && _f !== void 0 ? _f : "";
1331
- return message;
1332
- },
1333
- };
1334
1011
  function createBaseConfiguration() {
1335
1012
  return { temperatureMin: 0, temperatureMax: 0, temperatureDefault: 0, topPMin: 0, topPMax: 0 };
1336
1013
  }