@scrawn/core 0.0.6 → 0.0.7

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.
@@ -22,15 +22,16 @@ var global = (function() {
22
22
  }.call(null));
23
23
 
24
24
  goog.exportSymbol('proto.event.v1.AITokenUsage', null, global);
25
+ goog.exportSymbol('proto.event.v1.AITokenUsage.InputcachedebitCase', null, global);
25
26
  goog.exportSymbol('proto.event.v1.AITokenUsage.InputdebitCase', null, global);
26
27
  goog.exportSymbol('proto.event.v1.AITokenUsage.OutputdebitCase', null, global);
28
+ goog.exportSymbol('proto.event.v1.BasicUsage', null, global);
29
+ goog.exportSymbol('proto.event.v1.BasicUsage.DebitCase', null, global);
30
+ goog.exportSymbol('proto.event.v1.BasicUsageType', null, global);
27
31
  goog.exportSymbol('proto.event.v1.EventType', null, global);
28
32
  goog.exportSymbol('proto.event.v1.RegisterEventRequest', null, global);
29
33
  goog.exportSymbol('proto.event.v1.RegisterEventRequest.DataCase', null, global);
30
34
  goog.exportSymbol('proto.event.v1.RegisterEventResponse', null, global);
31
- goog.exportSymbol('proto.event.v1.SDKCall', null, global);
32
- goog.exportSymbol('proto.event.v1.SDKCall.DebitCase', null, global);
33
- goog.exportSymbol('proto.event.v1.SDKCallType', null, global);
34
35
  goog.exportSymbol('proto.event.v1.StreamEventRequest', null, global);
35
36
  goog.exportSymbol('proto.event.v1.StreamEventRequest.DataCase', null, global);
36
37
  goog.exportSymbol('proto.event.v1.StreamEventResponse', null, global);
@@ -65,16 +66,16 @@ if (goog.DEBUG && !COMPILED) {
65
66
  * @extends {jspb.Message}
66
67
  * @constructor
67
68
  */
68
- proto.event.v1.SDKCall = function(opt_data) {
69
- jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event.v1.SDKCall.oneofGroups_);
69
+ proto.event.v1.BasicUsage = function(opt_data) {
70
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.event.v1.BasicUsage.oneofGroups_);
70
71
  };
71
- goog.inherits(proto.event.v1.SDKCall, jspb.Message);
72
+ goog.inherits(proto.event.v1.BasicUsage, jspb.Message);
72
73
  if (goog.DEBUG && !COMPILED) {
73
74
  /**
74
75
  * @public
75
76
  * @override
76
77
  */
77
- proto.event.v1.SDKCall.displayName = 'proto.event.v1.SDKCall';
78
+ proto.event.v1.BasicUsage.displayName = 'proto.event.v1.BasicUsage';
78
79
  }
79
80
  /**
80
81
  * Generated by JsPbCodeGenerator.
@@ -176,7 +177,7 @@ proto.event.v1.RegisterEventRequest.oneofGroups_ = [[4]];
176
177
  */
177
178
  proto.event.v1.RegisterEventRequest.DataCase = {
178
179
  DATA_NOT_SET: 0,
179
- SDKCALL: 4
180
+ BASICUSAGE: 4
180
181
  };
181
182
 
182
183
  /**
@@ -220,7 +221,9 @@ proto.event.v1.RegisterEventRequest.toObject = function(includeInstance, msg) {
220
221
  type: jspb.Message.getFieldWithDefault(msg, 1, 0),
221
222
  userid: jspb.Message.getFieldWithDefault(msg, 2, ""),
222
223
  reportedtimestamp: jspb.Message.getFieldWithDefault(msg, 3, 0),
223
- sdkcall: (f = msg.getSdkcall()) && proto.event.v1.SDKCall.toObject(includeInstance, f)
224
+ eventid: jspb.Message.getFieldWithDefault(msg, 5, ""),
225
+ idempotencykey: jspb.Message.getFieldWithDefault(msg, 6, ""),
226
+ basicusage: (f = msg.getBasicusage()) && proto.event.v1.BasicUsage.toObject(includeInstance, f)
224
227
  };
225
228
 
226
229
  if (includeInstance) {
@@ -269,10 +272,18 @@ proto.event.v1.RegisterEventRequest.deserializeBinaryFromReader = function(msg,
269
272
  var value = /** @type {number} */ (reader.readInt32());
270
273
  msg.setReportedtimestamp(value);
271
274
  break;
275
+ case 5:
276
+ var value = /** @type {string} */ (reader.readString());
277
+ msg.setEventid(value);
278
+ break;
279
+ case 6:
280
+ var value = /** @type {string} */ (reader.readString());
281
+ msg.setIdempotencykey(value);
282
+ break;
272
283
  case 4:
273
- var value = new proto.event.v1.SDKCall;
274
- reader.readMessage(value,proto.event.v1.SDKCall.deserializeBinaryFromReader);
275
- msg.setSdkcall(value);
284
+ var value = new proto.event.v1.BasicUsage;
285
+ reader.readMessage(value,proto.event.v1.BasicUsage.deserializeBinaryFromReader);
286
+ msg.setBasicusage(value);
276
287
  break;
277
288
  default:
278
289
  reader.skipField();
@@ -324,12 +335,26 @@ proto.event.v1.RegisterEventRequest.serializeBinaryToWriter = function(message,
324
335
  f
325
336
  );
326
337
  }
327
- f = message.getSdkcall();
338
+ f = message.getEventid();
339
+ if (f.length > 0) {
340
+ writer.writeString(
341
+ 5,
342
+ f
343
+ );
344
+ }
345
+ f = message.getIdempotencykey();
346
+ if (f.length > 0) {
347
+ writer.writeString(
348
+ 6,
349
+ f
350
+ );
351
+ }
352
+ f = message.getBasicusage();
328
353
  if (f != null) {
329
354
  writer.writeMessage(
330
355
  4,
331
356
  f,
332
- proto.event.v1.SDKCall.serializeBinaryToWriter
357
+ proto.event.v1.BasicUsage.serializeBinaryToWriter
333
358
  );
334
359
  }
335
360
  };
@@ -390,20 +415,56 @@ proto.event.v1.RegisterEventRequest.prototype.setReportedtimestamp = function(va
390
415
 
391
416
 
392
417
  /**
393
- * optional SDKCall sdkCall = 4;
394
- * @return {?proto.event.v1.SDKCall}
418
+ * optional string eventId = 5;
419
+ * @return {string}
420
+ */
421
+ proto.event.v1.RegisterEventRequest.prototype.getEventid = function() {
422
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
423
+ };
424
+
425
+
426
+ /**
427
+ * @param {string} value
428
+ * @return {!proto.event.v1.RegisterEventRequest} returns this
429
+ */
430
+ proto.event.v1.RegisterEventRequest.prototype.setEventid = function(value) {
431
+ return jspb.Message.setProto3StringField(this, 5, value);
432
+ };
433
+
434
+
435
+ /**
436
+ * optional string idempotencyKey = 6;
437
+ * @return {string}
438
+ */
439
+ proto.event.v1.RegisterEventRequest.prototype.getIdempotencykey = function() {
440
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
441
+ };
442
+
443
+
444
+ /**
445
+ * @param {string} value
446
+ * @return {!proto.event.v1.RegisterEventRequest} returns this
447
+ */
448
+ proto.event.v1.RegisterEventRequest.prototype.setIdempotencykey = function(value) {
449
+ return jspb.Message.setProto3StringField(this, 6, value);
450
+ };
451
+
452
+
453
+ /**
454
+ * optional BasicUsage basicUsage = 4;
455
+ * @return {?proto.event.v1.BasicUsage}
395
456
  */
396
- proto.event.v1.RegisterEventRequest.prototype.getSdkcall = function() {
397
- return /** @type{?proto.event.v1.SDKCall} */ (
398
- jspb.Message.getWrapperField(this, proto.event.v1.SDKCall, 4));
457
+ proto.event.v1.RegisterEventRequest.prototype.getBasicusage = function() {
458
+ return /** @type{?proto.event.v1.BasicUsage} */ (
459
+ jspb.Message.getWrapperField(this, proto.event.v1.BasicUsage, 4));
399
460
  };
400
461
 
401
462
 
402
463
  /**
403
- * @param {?proto.event.v1.SDKCall|undefined} value
464
+ * @param {?proto.event.v1.BasicUsage|undefined} value
404
465
  * @return {!proto.event.v1.RegisterEventRequest} returns this
405
466
  */
406
- proto.event.v1.RegisterEventRequest.prototype.setSdkcall = function(value) {
467
+ proto.event.v1.RegisterEventRequest.prototype.setBasicusage = function(value) {
407
468
  return jspb.Message.setOneofWrapperField(this, 4, proto.event.v1.RegisterEventRequest.oneofGroups_[0], value);
408
469
  };
409
470
 
@@ -412,8 +473,8 @@ proto.event.v1.RegisterEventRequest.prototype.setSdkcall = function(value) {
412
473
  * Clears the message field making it undefined.
413
474
  * @return {!proto.event.v1.RegisterEventRequest} returns this
414
475
  */
415
- proto.event.v1.RegisterEventRequest.prototype.clearSdkcall = function() {
416
- return this.setSdkcall(undefined);
476
+ proto.event.v1.RegisterEventRequest.prototype.clearBasicusage = function() {
477
+ return this.setBasicusage(undefined);
417
478
  };
418
479
 
419
480
 
@@ -421,7 +482,7 @@ proto.event.v1.RegisterEventRequest.prototype.clearSdkcall = function() {
421
482
  * Returns whether this field is set.
422
483
  * @return {boolean}
423
484
  */
424
- proto.event.v1.RegisterEventRequest.prototype.hasSdkcall = function() {
485
+ proto.event.v1.RegisterEventRequest.prototype.hasBasicusage = function() {
425
486
  return jspb.Message.getField(this, 4) != null;
426
487
  };
427
488
 
@@ -435,12 +496,12 @@ proto.event.v1.RegisterEventRequest.prototype.hasSdkcall = function() {
435
496
  * @private {!Array<!Array<number>>}
436
497
  * @const
437
498
  */
438
- proto.event.v1.SDKCall.oneofGroups_ = [[2,3,4]];
499
+ proto.event.v1.BasicUsage.oneofGroups_ = [[2,3,4]];
439
500
 
440
501
  /**
441
502
  * @enum {number}
442
503
  */
443
- proto.event.v1.SDKCall.DebitCase = {
504
+ proto.event.v1.BasicUsage.DebitCase = {
444
505
  DEBIT_NOT_SET: 0,
445
506
  AMOUNT: 2,
446
507
  TAG: 3,
@@ -448,10 +509,10 @@ proto.event.v1.SDKCall.DebitCase = {
448
509
  };
449
510
 
450
511
  /**
451
- * @return {proto.event.v1.SDKCall.DebitCase}
512
+ * @return {proto.event.v1.BasicUsage.DebitCase}
452
513
  */
453
- proto.event.v1.SDKCall.prototype.getDebitCase = function() {
454
- return /** @type {proto.event.v1.SDKCall.DebitCase} */(jspb.Message.computeOneofCase(this, proto.event.v1.SDKCall.oneofGroups_[0]));
514
+ proto.event.v1.BasicUsage.prototype.getDebitCase = function() {
515
+ return /** @type {proto.event.v1.BasicUsage.DebitCase} */(jspb.Message.computeOneofCase(this, proto.event.v1.BasicUsage.oneofGroups_[0]));
455
516
  };
456
517
 
457
518
 
@@ -469,8 +530,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
469
530
  * http://goto/soy-param-migration
470
531
  * @return {!Object}
471
532
  */
472
- proto.event.v1.SDKCall.prototype.toObject = function(opt_includeInstance) {
473
- return proto.event.v1.SDKCall.toObject(opt_includeInstance, this);
533
+ proto.event.v1.BasicUsage.prototype.toObject = function(opt_includeInstance) {
534
+ return proto.event.v1.BasicUsage.toObject(opt_includeInstance, this);
474
535
  };
475
536
 
476
537
 
@@ -479,16 +540,17 @@ proto.event.v1.SDKCall.prototype.toObject = function(opt_includeInstance) {
479
540
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
480
541
  * the JSPB instance for transitional soy proto support:
481
542
  * http://goto/soy-param-migration
482
- * @param {!proto.event.v1.SDKCall} msg The msg instance to transform.
543
+ * @param {!proto.event.v1.BasicUsage} msg The msg instance to transform.
483
544
  * @return {!Object}
484
545
  * @suppress {unusedLocalVariables} f is only used for nested messages
485
546
  */
486
- proto.event.v1.SDKCall.toObject = function(includeInstance, msg) {
547
+ proto.event.v1.BasicUsage.toObject = function(includeInstance, msg) {
487
548
  var f, obj = {
488
- sdkcalltype: jspb.Message.getFieldWithDefault(msg, 1, 0),
489
- amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
549
+ basicusagetype: jspb.Message.getFieldWithDefault(msg, 1, 0),
550
+ amount: jspb.Message.getFieldWithDefault(msg, 2, 0),
490
551
  tag: jspb.Message.getFieldWithDefault(msg, 3, ""),
491
- expr: jspb.Message.getFieldWithDefault(msg, 4, "")
552
+ expr: jspb.Message.getFieldWithDefault(msg, 4, ""),
553
+ metadata: jspb.Message.getFieldWithDefault(msg, 5, "")
492
554
  };
493
555
 
494
556
  if (includeInstance) {
@@ -502,23 +564,23 @@ proto.event.v1.SDKCall.toObject = function(includeInstance, msg) {
502
564
  /**
503
565
  * Deserializes binary data (in protobuf wire format).
504
566
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
505
- * @return {!proto.event.v1.SDKCall}
567
+ * @return {!proto.event.v1.BasicUsage}
506
568
  */
507
- proto.event.v1.SDKCall.deserializeBinary = function(bytes) {
569
+ proto.event.v1.BasicUsage.deserializeBinary = function(bytes) {
508
570
  var reader = new jspb.BinaryReader(bytes);
509
- var msg = new proto.event.v1.SDKCall;
510
- return proto.event.v1.SDKCall.deserializeBinaryFromReader(msg, reader);
571
+ var msg = new proto.event.v1.BasicUsage;
572
+ return proto.event.v1.BasicUsage.deserializeBinaryFromReader(msg, reader);
511
573
  };
512
574
 
513
575
 
514
576
  /**
515
577
  * Deserializes binary data (in protobuf wire format) from the
516
578
  * given reader into the given message object.
517
- * @param {!proto.event.v1.SDKCall} msg The message object to deserialize into.
579
+ * @param {!proto.event.v1.BasicUsage} msg The message object to deserialize into.
518
580
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
519
- * @return {!proto.event.v1.SDKCall}
581
+ * @return {!proto.event.v1.BasicUsage}
520
582
  */
521
- proto.event.v1.SDKCall.deserializeBinaryFromReader = function(msg, reader) {
583
+ proto.event.v1.BasicUsage.deserializeBinaryFromReader = function(msg, reader) {
522
584
  while (reader.nextField()) {
523
585
  if (reader.isEndGroup()) {
524
586
  break;
@@ -526,11 +588,11 @@ proto.event.v1.SDKCall.deserializeBinaryFromReader = function(msg, reader) {
526
588
  var field = reader.getFieldNumber();
527
589
  switch (field) {
528
590
  case 1:
529
- var value = /** @type {!proto.event.v1.SDKCallType} */ (reader.readEnum());
530
- msg.setSdkcalltype(value);
591
+ var value = /** @type {!proto.event.v1.BasicUsageType} */ (reader.readEnum());
592
+ msg.setBasicusagetype(value);
531
593
  break;
532
594
  case 2:
533
- var value = /** @type {number} */ (reader.readFloat());
595
+ var value = /** @type {number} */ (reader.readInt32());
534
596
  msg.setAmount(value);
535
597
  break;
536
598
  case 3:
@@ -541,6 +603,10 @@ proto.event.v1.SDKCall.deserializeBinaryFromReader = function(msg, reader) {
541
603
  var value = /** @type {string} */ (reader.readString());
542
604
  msg.setExpr(value);
543
605
  break;
606
+ case 5:
607
+ var value = /** @type {string} */ (reader.readString());
608
+ msg.setMetadata(value);
609
+ break;
544
610
  default:
545
611
  reader.skipField();
546
612
  break;
@@ -554,9 +620,9 @@ proto.event.v1.SDKCall.deserializeBinaryFromReader = function(msg, reader) {
554
620
  * Serializes the message to binary data (in protobuf wire format).
555
621
  * @return {!Uint8Array}
556
622
  */
557
- proto.event.v1.SDKCall.prototype.serializeBinary = function() {
623
+ proto.event.v1.BasicUsage.prototype.serializeBinary = function() {
558
624
  var writer = new jspb.BinaryWriter();
559
- proto.event.v1.SDKCall.serializeBinaryToWriter(this, writer);
625
+ proto.event.v1.BasicUsage.serializeBinaryToWriter(this, writer);
560
626
  return writer.getResultBuffer();
561
627
  };
562
628
 
@@ -564,13 +630,13 @@ proto.event.v1.SDKCall.prototype.serializeBinary = function() {
564
630
  /**
565
631
  * Serializes the given message to binary data (in protobuf wire
566
632
  * format), writing to the given BinaryWriter.
567
- * @param {!proto.event.v1.SDKCall} message
633
+ * @param {!proto.event.v1.BasicUsage} message
568
634
  * @param {!jspb.BinaryWriter} writer
569
635
  * @suppress {unusedLocalVariables} f is only used for nested messages
570
636
  */
571
- proto.event.v1.SDKCall.serializeBinaryToWriter = function(message, writer) {
637
+ proto.event.v1.BasicUsage.serializeBinaryToWriter = function(message, writer) {
572
638
  var f = undefined;
573
- f = message.getSdkcalltype();
639
+ f = message.getBasicusagetype();
574
640
  if (f !== 0.0) {
575
641
  writer.writeEnum(
576
642
  1,
@@ -579,7 +645,7 @@ proto.event.v1.SDKCall.serializeBinaryToWriter = function(message, writer) {
579
645
  }
580
646
  f = /** @type {number} */ (jspb.Message.getField(message, 2));
581
647
  if (f != null) {
582
- writer.writeFloat(
648
+ writer.writeInt32(
583
649
  2,
584
650
  f
585
651
  );
@@ -598,51 +664,58 @@ proto.event.v1.SDKCall.serializeBinaryToWriter = function(message, writer) {
598
664
  f
599
665
  );
600
666
  }
667
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
668
+ if (f != null) {
669
+ writer.writeString(
670
+ 5,
671
+ f
672
+ );
673
+ }
601
674
  };
602
675
 
603
676
 
604
677
  /**
605
- * optional SDKCallType sdkCallType = 1;
606
- * @return {!proto.event.v1.SDKCallType}
678
+ * optional BasicUsageType basicUsageType = 1;
679
+ * @return {!proto.event.v1.BasicUsageType}
607
680
  */
608
- proto.event.v1.SDKCall.prototype.getSdkcalltype = function() {
609
- return /** @type {!proto.event.v1.SDKCallType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
681
+ proto.event.v1.BasicUsage.prototype.getBasicusagetype = function() {
682
+ return /** @type {!proto.event.v1.BasicUsageType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
610
683
  };
611
684
 
612
685
 
613
686
  /**
614
- * @param {!proto.event.v1.SDKCallType} value
615
- * @return {!proto.event.v1.SDKCall} returns this
687
+ * @param {!proto.event.v1.BasicUsageType} value
688
+ * @return {!proto.event.v1.BasicUsage} returns this
616
689
  */
617
- proto.event.v1.SDKCall.prototype.setSdkcalltype = function(value) {
690
+ proto.event.v1.BasicUsage.prototype.setBasicusagetype = function(value) {
618
691
  return jspb.Message.setProto3EnumField(this, 1, value);
619
692
  };
620
693
 
621
694
 
622
695
  /**
623
- * optional float amount = 2;
696
+ * optional int32 amount = 2;
624
697
  * @return {number}
625
698
  */
626
- proto.event.v1.SDKCall.prototype.getAmount = function() {
627
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
699
+ proto.event.v1.BasicUsage.prototype.getAmount = function() {
700
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
628
701
  };
629
702
 
630
703
 
631
704
  /**
632
705
  * @param {number} value
633
- * @return {!proto.event.v1.SDKCall} returns this
706
+ * @return {!proto.event.v1.BasicUsage} returns this
634
707
  */
635
- proto.event.v1.SDKCall.prototype.setAmount = function(value) {
636
- return jspb.Message.setOneofField(this, 2, proto.event.v1.SDKCall.oneofGroups_[0], value);
708
+ proto.event.v1.BasicUsage.prototype.setAmount = function(value) {
709
+ return jspb.Message.setOneofField(this, 2, proto.event.v1.BasicUsage.oneofGroups_[0], value);
637
710
  };
638
711
 
639
712
 
640
713
  /**
641
714
  * Clears the field making it undefined.
642
- * @return {!proto.event.v1.SDKCall} returns this
715
+ * @return {!proto.event.v1.BasicUsage} returns this
643
716
  */
644
- proto.event.v1.SDKCall.prototype.clearAmount = function() {
645
- return jspb.Message.setOneofField(this, 2, proto.event.v1.SDKCall.oneofGroups_[0], undefined);
717
+ proto.event.v1.BasicUsage.prototype.clearAmount = function() {
718
+ return jspb.Message.setOneofField(this, 2, proto.event.v1.BasicUsage.oneofGroups_[0], undefined);
646
719
  };
647
720
 
648
721
 
@@ -650,7 +723,7 @@ proto.event.v1.SDKCall.prototype.clearAmount = function() {
650
723
  * Returns whether this field is set.
651
724
  * @return {boolean}
652
725
  */
653
- proto.event.v1.SDKCall.prototype.hasAmount = function() {
726
+ proto.event.v1.BasicUsage.prototype.hasAmount = function() {
654
727
  return jspb.Message.getField(this, 2) != null;
655
728
  };
656
729
 
@@ -659,26 +732,26 @@ proto.event.v1.SDKCall.prototype.hasAmount = function() {
659
732
  * optional string tag = 3;
660
733
  * @return {string}
661
734
  */
662
- proto.event.v1.SDKCall.prototype.getTag = function() {
735
+ proto.event.v1.BasicUsage.prototype.getTag = function() {
663
736
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
664
737
  };
665
738
 
666
739
 
667
740
  /**
668
741
  * @param {string} value
669
- * @return {!proto.event.v1.SDKCall} returns this
742
+ * @return {!proto.event.v1.BasicUsage} returns this
670
743
  */
671
- proto.event.v1.SDKCall.prototype.setTag = function(value) {
672
- return jspb.Message.setOneofField(this, 3, proto.event.v1.SDKCall.oneofGroups_[0], value);
744
+ proto.event.v1.BasicUsage.prototype.setTag = function(value) {
745
+ return jspb.Message.setOneofField(this, 3, proto.event.v1.BasicUsage.oneofGroups_[0], value);
673
746
  };
674
747
 
675
748
 
676
749
  /**
677
750
  * Clears the field making it undefined.
678
- * @return {!proto.event.v1.SDKCall} returns this
751
+ * @return {!proto.event.v1.BasicUsage} returns this
679
752
  */
680
- proto.event.v1.SDKCall.prototype.clearTag = function() {
681
- return jspb.Message.setOneofField(this, 3, proto.event.v1.SDKCall.oneofGroups_[0], undefined);
753
+ proto.event.v1.BasicUsage.prototype.clearTag = function() {
754
+ return jspb.Message.setOneofField(this, 3, proto.event.v1.BasicUsage.oneofGroups_[0], undefined);
682
755
  };
683
756
 
684
757
 
@@ -686,7 +759,7 @@ proto.event.v1.SDKCall.prototype.clearTag = function() {
686
759
  * Returns whether this field is set.
687
760
  * @return {boolean}
688
761
  */
689
- proto.event.v1.SDKCall.prototype.hasTag = function() {
762
+ proto.event.v1.BasicUsage.prototype.hasTag = function() {
690
763
  return jspb.Message.getField(this, 3) != null;
691
764
  };
692
765
 
@@ -695,26 +768,26 @@ proto.event.v1.SDKCall.prototype.hasTag = function() {
695
768
  * optional string expr = 4;
696
769
  * @return {string}
697
770
  */
698
- proto.event.v1.SDKCall.prototype.getExpr = function() {
771
+ proto.event.v1.BasicUsage.prototype.getExpr = function() {
699
772
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
700
773
  };
701
774
 
702
775
 
703
776
  /**
704
777
  * @param {string} value
705
- * @return {!proto.event.v1.SDKCall} returns this
778
+ * @return {!proto.event.v1.BasicUsage} returns this
706
779
  */
707
- proto.event.v1.SDKCall.prototype.setExpr = function(value) {
708
- return jspb.Message.setOneofField(this, 4, proto.event.v1.SDKCall.oneofGroups_[0], value);
780
+ proto.event.v1.BasicUsage.prototype.setExpr = function(value) {
781
+ return jspb.Message.setOneofField(this, 4, proto.event.v1.BasicUsage.oneofGroups_[0], value);
709
782
  };
710
783
 
711
784
 
712
785
  /**
713
786
  * Clears the field making it undefined.
714
- * @return {!proto.event.v1.SDKCall} returns this
787
+ * @return {!proto.event.v1.BasicUsage} returns this
715
788
  */
716
- proto.event.v1.SDKCall.prototype.clearExpr = function() {
717
- return jspb.Message.setOneofField(this, 4, proto.event.v1.SDKCall.oneofGroups_[0], undefined);
789
+ proto.event.v1.BasicUsage.prototype.clearExpr = function() {
790
+ return jspb.Message.setOneofField(this, 4, proto.event.v1.BasicUsage.oneofGroups_[0], undefined);
718
791
  };
719
792
 
720
793
 
@@ -722,11 +795,47 @@ proto.event.v1.SDKCall.prototype.clearExpr = function() {
722
795
  * Returns whether this field is set.
723
796
  * @return {boolean}
724
797
  */
725
- proto.event.v1.SDKCall.prototype.hasExpr = function() {
798
+ proto.event.v1.BasicUsage.prototype.hasExpr = function() {
726
799
  return jspb.Message.getField(this, 4) != null;
727
800
  };
728
801
 
729
802
 
803
+ /**
804
+ * optional string metadata = 5;
805
+ * @return {string}
806
+ */
807
+ proto.event.v1.BasicUsage.prototype.getMetadata = function() {
808
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
809
+ };
810
+
811
+
812
+ /**
813
+ * @param {string} value
814
+ * @return {!proto.event.v1.BasicUsage} returns this
815
+ */
816
+ proto.event.v1.BasicUsage.prototype.setMetadata = function(value) {
817
+ return jspb.Message.setField(this, 5, value);
818
+ };
819
+
820
+
821
+ /**
822
+ * Clears the field making it undefined.
823
+ * @return {!proto.event.v1.BasicUsage} returns this
824
+ */
825
+ proto.event.v1.BasicUsage.prototype.clearMetadata = function() {
826
+ return jspb.Message.setField(this, 5, undefined);
827
+ };
828
+
829
+
830
+ /**
831
+ * Returns whether this field is set.
832
+ * @return {boolean}
833
+ */
834
+ proto.event.v1.BasicUsage.prototype.hasMetadata = function() {
835
+ return jspb.Message.getField(this, 5) != null;
836
+ };
837
+
838
+
730
839
 
731
840
 
732
841
 
@@ -873,7 +982,7 @@ proto.event.v1.StreamEventRequest.oneofGroups_ = [[4,5]];
873
982
  */
874
983
  proto.event.v1.StreamEventRequest.DataCase = {
875
984
  DATA_NOT_SET: 0,
876
- SDKCALL: 4,
985
+ BASICUSAGE: 4,
877
986
  AITOKENUSAGE: 5
878
987
  };
879
988
 
@@ -918,7 +1027,9 @@ proto.event.v1.StreamEventRequest.toObject = function(includeInstance, msg) {
918
1027
  type: jspb.Message.getFieldWithDefault(msg, 1, 0),
919
1028
  userid: jspb.Message.getFieldWithDefault(msg, 2, ""),
920
1029
  reportedtimestamp: jspb.Message.getFieldWithDefault(msg, 3, 0),
921
- sdkcall: (f = msg.getSdkcall()) && proto.event.v1.SDKCall.toObject(includeInstance, f),
1030
+ eventid: jspb.Message.getFieldWithDefault(msg, 6, ""),
1031
+ idempotencykey: jspb.Message.getFieldWithDefault(msg, 7, ""),
1032
+ basicusage: (f = msg.getBasicusage()) && proto.event.v1.BasicUsage.toObject(includeInstance, f),
922
1033
  aitokenusage: (f = msg.getAitokenusage()) && proto.event.v1.AITokenUsage.toObject(includeInstance, f)
923
1034
  };
924
1035
 
@@ -968,10 +1079,18 @@ proto.event.v1.StreamEventRequest.deserializeBinaryFromReader = function(msg, re
968
1079
  var value = /** @type {number} */ (reader.readInt32());
969
1080
  msg.setReportedtimestamp(value);
970
1081
  break;
1082
+ case 6:
1083
+ var value = /** @type {string} */ (reader.readString());
1084
+ msg.setEventid(value);
1085
+ break;
1086
+ case 7:
1087
+ var value = /** @type {string} */ (reader.readString());
1088
+ msg.setIdempotencykey(value);
1089
+ break;
971
1090
  case 4:
972
- var value = new proto.event.v1.SDKCall;
973
- reader.readMessage(value,proto.event.v1.SDKCall.deserializeBinaryFromReader);
974
- msg.setSdkcall(value);
1091
+ var value = new proto.event.v1.BasicUsage;
1092
+ reader.readMessage(value,proto.event.v1.BasicUsage.deserializeBinaryFromReader);
1093
+ msg.setBasicusage(value);
975
1094
  break;
976
1095
  case 5:
977
1096
  var value = new proto.event.v1.AITokenUsage;
@@ -1028,12 +1147,26 @@ proto.event.v1.StreamEventRequest.serializeBinaryToWriter = function(message, wr
1028
1147
  f
1029
1148
  );
1030
1149
  }
1031
- f = message.getSdkcall();
1150
+ f = message.getEventid();
1151
+ if (f.length > 0) {
1152
+ writer.writeString(
1153
+ 6,
1154
+ f
1155
+ );
1156
+ }
1157
+ f = message.getIdempotencykey();
1158
+ if (f.length > 0) {
1159
+ writer.writeString(
1160
+ 7,
1161
+ f
1162
+ );
1163
+ }
1164
+ f = message.getBasicusage();
1032
1165
  if (f != null) {
1033
1166
  writer.writeMessage(
1034
1167
  4,
1035
1168
  f,
1036
- proto.event.v1.SDKCall.serializeBinaryToWriter
1169
+ proto.event.v1.BasicUsage.serializeBinaryToWriter
1037
1170
  );
1038
1171
  }
1039
1172
  f = message.getAitokenusage();
@@ -1102,20 +1235,56 @@ proto.event.v1.StreamEventRequest.prototype.setReportedtimestamp = function(valu
1102
1235
 
1103
1236
 
1104
1237
  /**
1105
- * optional SDKCall sdkCall = 4;
1106
- * @return {?proto.event.v1.SDKCall}
1238
+ * optional string eventId = 6;
1239
+ * @return {string}
1240
+ */
1241
+ proto.event.v1.StreamEventRequest.prototype.getEventid = function() {
1242
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
1243
+ };
1244
+
1245
+
1246
+ /**
1247
+ * @param {string} value
1248
+ * @return {!proto.event.v1.StreamEventRequest} returns this
1107
1249
  */
1108
- proto.event.v1.StreamEventRequest.prototype.getSdkcall = function() {
1109
- return /** @type{?proto.event.v1.SDKCall} */ (
1110
- jspb.Message.getWrapperField(this, proto.event.v1.SDKCall, 4));
1250
+ proto.event.v1.StreamEventRequest.prototype.setEventid = function(value) {
1251
+ return jspb.Message.setProto3StringField(this, 6, value);
1111
1252
  };
1112
1253
 
1113
1254
 
1114
1255
  /**
1115
- * @param {?proto.event.v1.SDKCall|undefined} value
1256
+ * optional string idempotencyKey = 7;
1257
+ * @return {string}
1258
+ */
1259
+ proto.event.v1.StreamEventRequest.prototype.getIdempotencykey = function() {
1260
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1261
+ };
1262
+
1263
+
1264
+ /**
1265
+ * @param {string} value
1266
+ * @return {!proto.event.v1.StreamEventRequest} returns this
1267
+ */
1268
+ proto.event.v1.StreamEventRequest.prototype.setIdempotencykey = function(value) {
1269
+ return jspb.Message.setProto3StringField(this, 7, value);
1270
+ };
1271
+
1272
+
1273
+ /**
1274
+ * optional BasicUsage basicUsage = 4;
1275
+ * @return {?proto.event.v1.BasicUsage}
1276
+ */
1277
+ proto.event.v1.StreamEventRequest.prototype.getBasicusage = function() {
1278
+ return /** @type{?proto.event.v1.BasicUsage} */ (
1279
+ jspb.Message.getWrapperField(this, proto.event.v1.BasicUsage, 4));
1280
+ };
1281
+
1282
+
1283
+ /**
1284
+ * @param {?proto.event.v1.BasicUsage|undefined} value
1116
1285
  * @return {!proto.event.v1.StreamEventRequest} returns this
1117
1286
  */
1118
- proto.event.v1.StreamEventRequest.prototype.setSdkcall = function(value) {
1287
+ proto.event.v1.StreamEventRequest.prototype.setBasicusage = function(value) {
1119
1288
  return jspb.Message.setOneofWrapperField(this, 4, proto.event.v1.StreamEventRequest.oneofGroups_[0], value);
1120
1289
  };
1121
1290
 
@@ -1124,8 +1293,8 @@ proto.event.v1.StreamEventRequest.prototype.setSdkcall = function(value) {
1124
1293
  * Clears the message field making it undefined.
1125
1294
  * @return {!proto.event.v1.StreamEventRequest} returns this
1126
1295
  */
1127
- proto.event.v1.StreamEventRequest.prototype.clearSdkcall = function() {
1128
- return this.setSdkcall(undefined);
1296
+ proto.event.v1.StreamEventRequest.prototype.clearBasicusage = function() {
1297
+ return this.setBasicusage(undefined);
1129
1298
  };
1130
1299
 
1131
1300
 
@@ -1133,7 +1302,7 @@ proto.event.v1.StreamEventRequest.prototype.clearSdkcall = function() {
1133
1302
  * Returns whether this field is set.
1134
1303
  * @return {boolean}
1135
1304
  */
1136
- proto.event.v1.StreamEventRequest.prototype.hasSdkcall = function() {
1305
+ proto.event.v1.StreamEventRequest.prototype.hasBasicusage = function() {
1137
1306
  return jspb.Message.getField(this, 4) != null;
1138
1307
  };
1139
1308
 
@@ -1184,7 +1353,7 @@ proto.event.v1.StreamEventRequest.prototype.hasAitokenusage = function() {
1184
1353
  * @private {!Array<!Array<number>>}
1185
1354
  * @const
1186
1355
  */
1187
- proto.event.v1.AITokenUsage.oneofGroups_ = [[4,5,8],[6,7,9]];
1356
+ proto.event.v1.AITokenUsage.oneofGroups_ = [[4,5,8],[6,7,9],[12,13,14]];
1188
1357
 
1189
1358
  /**
1190
1359
  * @enum {number}
@@ -1220,6 +1389,23 @@ proto.event.v1.AITokenUsage.prototype.getOutputdebitCase = function() {
1220
1389
  return /** @type {proto.event.v1.AITokenUsage.OutputdebitCase} */(jspb.Message.computeOneofCase(this, proto.event.v1.AITokenUsage.oneofGroups_[1]));
1221
1390
  };
1222
1391
 
1392
+ /**
1393
+ * @enum {number}
1394
+ */
1395
+ proto.event.v1.AITokenUsage.InputcachedebitCase = {
1396
+ INPUTCACHEDEBIT_NOT_SET: 0,
1397
+ INPUTCACHEAMOUNT: 12,
1398
+ INPUTCACHETAG: 13,
1399
+ INPUTCACHEEXPR: 14
1400
+ };
1401
+
1402
+ /**
1403
+ * @return {proto.event.v1.AITokenUsage.InputcachedebitCase}
1404
+ */
1405
+ proto.event.v1.AITokenUsage.prototype.getInputcachedebitCase = function() {
1406
+ return /** @type {proto.event.v1.AITokenUsage.InputcachedebitCase} */(jspb.Message.computeOneofCase(this, proto.event.v1.AITokenUsage.oneofGroups_[2]));
1407
+ };
1408
+
1223
1409
 
1224
1410
 
1225
1411
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -1254,12 +1440,18 @@ proto.event.v1.AITokenUsage.toObject = function(includeInstance, msg) {
1254
1440
  model: jspb.Message.getFieldWithDefault(msg, 1, ""),
1255
1441
  inputtokens: jspb.Message.getFieldWithDefault(msg, 2, 0),
1256
1442
  outputtokens: jspb.Message.getFieldWithDefault(msg, 3, 0),
1257
- inputamount: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
1443
+ inputamount: jspb.Message.getFieldWithDefault(msg, 4, 0),
1258
1444
  inputtag: jspb.Message.getFieldWithDefault(msg, 5, ""),
1259
1445
  inputexpr: jspb.Message.getFieldWithDefault(msg, 8, ""),
1260
- outputamount: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
1446
+ outputamount: jspb.Message.getFieldWithDefault(msg, 6, 0),
1261
1447
  outputtag: jspb.Message.getFieldWithDefault(msg, 7, ""),
1262
- outputexpr: jspb.Message.getFieldWithDefault(msg, 9, "")
1448
+ outputexpr: jspb.Message.getFieldWithDefault(msg, 9, ""),
1449
+ provider: jspb.Message.getFieldWithDefault(msg, 10, ""),
1450
+ inputcachetokens: jspb.Message.getFieldWithDefault(msg, 11, 0),
1451
+ inputcacheamount: jspb.Message.getFieldWithDefault(msg, 12, 0),
1452
+ inputcachetag: jspb.Message.getFieldWithDefault(msg, 13, ""),
1453
+ inputcacheexpr: jspb.Message.getFieldWithDefault(msg, 14, ""),
1454
+ metadata: jspb.Message.getFieldWithDefault(msg, 15, "")
1263
1455
  };
1264
1456
 
1265
1457
  if (includeInstance) {
@@ -1309,7 +1501,7 @@ proto.event.v1.AITokenUsage.deserializeBinaryFromReader = function(msg, reader)
1309
1501
  msg.setOutputtokens(value);
1310
1502
  break;
1311
1503
  case 4:
1312
- var value = /** @type {number} */ (reader.readFloat());
1504
+ var value = /** @type {number} */ (reader.readInt32());
1313
1505
  msg.setInputamount(value);
1314
1506
  break;
1315
1507
  case 5:
@@ -1321,7 +1513,7 @@ proto.event.v1.AITokenUsage.deserializeBinaryFromReader = function(msg, reader)
1321
1513
  msg.setInputexpr(value);
1322
1514
  break;
1323
1515
  case 6:
1324
- var value = /** @type {number} */ (reader.readFloat());
1516
+ var value = /** @type {number} */ (reader.readInt32());
1325
1517
  msg.setOutputamount(value);
1326
1518
  break;
1327
1519
  case 7:
@@ -1332,6 +1524,30 @@ proto.event.v1.AITokenUsage.deserializeBinaryFromReader = function(msg, reader)
1332
1524
  var value = /** @type {string} */ (reader.readString());
1333
1525
  msg.setOutputexpr(value);
1334
1526
  break;
1527
+ case 10:
1528
+ var value = /** @type {string} */ (reader.readString());
1529
+ msg.setProvider(value);
1530
+ break;
1531
+ case 11:
1532
+ var value = /** @type {number} */ (reader.readInt32());
1533
+ msg.setInputcachetokens(value);
1534
+ break;
1535
+ case 12:
1536
+ var value = /** @type {number} */ (reader.readInt32());
1537
+ msg.setInputcacheamount(value);
1538
+ break;
1539
+ case 13:
1540
+ var value = /** @type {string} */ (reader.readString());
1541
+ msg.setInputcachetag(value);
1542
+ break;
1543
+ case 14:
1544
+ var value = /** @type {string} */ (reader.readString());
1545
+ msg.setInputcacheexpr(value);
1546
+ break;
1547
+ case 15:
1548
+ var value = /** @type {string} */ (reader.readString());
1549
+ msg.setMetadata(value);
1550
+ break;
1335
1551
  default:
1336
1552
  reader.skipField();
1337
1553
  break;
@@ -1384,7 +1600,7 @@ proto.event.v1.AITokenUsage.serializeBinaryToWriter = function(message, writer)
1384
1600
  }
1385
1601
  f = /** @type {number} */ (jspb.Message.getField(message, 4));
1386
1602
  if (f != null) {
1387
- writer.writeFloat(
1603
+ writer.writeInt32(
1388
1604
  4,
1389
1605
  f
1390
1606
  );
@@ -1405,7 +1621,7 @@ proto.event.v1.AITokenUsage.serializeBinaryToWriter = function(message, writer)
1405
1621
  }
1406
1622
  f = /** @type {number} */ (jspb.Message.getField(message, 6));
1407
1623
  if (f != null) {
1408
- writer.writeFloat(
1624
+ writer.writeInt32(
1409
1625
  6,
1410
1626
  f
1411
1627
  );
@@ -1424,6 +1640,48 @@ proto.event.v1.AITokenUsage.serializeBinaryToWriter = function(message, writer)
1424
1640
  f
1425
1641
  );
1426
1642
  }
1643
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
1644
+ if (f != null) {
1645
+ writer.writeString(
1646
+ 10,
1647
+ f
1648
+ );
1649
+ }
1650
+ f = message.getInputcachetokens();
1651
+ if (f !== 0) {
1652
+ writer.writeInt32(
1653
+ 11,
1654
+ f
1655
+ );
1656
+ }
1657
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
1658
+ if (f != null) {
1659
+ writer.writeInt32(
1660
+ 12,
1661
+ f
1662
+ );
1663
+ }
1664
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
1665
+ if (f != null) {
1666
+ writer.writeString(
1667
+ 13,
1668
+ f
1669
+ );
1670
+ }
1671
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
1672
+ if (f != null) {
1673
+ writer.writeString(
1674
+ 14,
1675
+ f
1676
+ );
1677
+ }
1678
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
1679
+ if (f != null) {
1680
+ writer.writeString(
1681
+ 15,
1682
+ f
1683
+ );
1684
+ }
1427
1685
  };
1428
1686
 
1429
1687
 
@@ -1482,11 +1740,11 @@ proto.event.v1.AITokenUsage.prototype.setOutputtokens = function(value) {
1482
1740
 
1483
1741
 
1484
1742
  /**
1485
- * optional float inputAmount = 4;
1743
+ * optional int32 inputAmount = 4;
1486
1744
  * @return {number}
1487
1745
  */
1488
1746
  proto.event.v1.AITokenUsage.prototype.getInputamount = function() {
1489
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
1747
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1490
1748
  };
1491
1749
 
1492
1750
 
@@ -1590,11 +1848,11 @@ proto.event.v1.AITokenUsage.prototype.hasInputexpr = function() {
1590
1848
 
1591
1849
 
1592
1850
  /**
1593
- * optional float outputAmount = 6;
1851
+ * optional int32 outputAmount = 6;
1594
1852
  * @return {number}
1595
1853
  */
1596
1854
  proto.event.v1.AITokenUsage.prototype.getOutputamount = function() {
1597
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
1855
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1598
1856
  };
1599
1857
 
1600
1858
 
@@ -1697,6 +1955,204 @@ proto.event.v1.AITokenUsage.prototype.hasOutputexpr = function() {
1697
1955
  };
1698
1956
 
1699
1957
 
1958
+ /**
1959
+ * optional string provider = 10;
1960
+ * @return {string}
1961
+ */
1962
+ proto.event.v1.AITokenUsage.prototype.getProvider = function() {
1963
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1964
+ };
1965
+
1966
+
1967
+ /**
1968
+ * @param {string} value
1969
+ * @return {!proto.event.v1.AITokenUsage} returns this
1970
+ */
1971
+ proto.event.v1.AITokenUsage.prototype.setProvider = function(value) {
1972
+ return jspb.Message.setField(this, 10, value);
1973
+ };
1974
+
1975
+
1976
+ /**
1977
+ * Clears the field making it undefined.
1978
+ * @return {!proto.event.v1.AITokenUsage} returns this
1979
+ */
1980
+ proto.event.v1.AITokenUsage.prototype.clearProvider = function() {
1981
+ return jspb.Message.setField(this, 10, undefined);
1982
+ };
1983
+
1984
+
1985
+ /**
1986
+ * Returns whether this field is set.
1987
+ * @return {boolean}
1988
+ */
1989
+ proto.event.v1.AITokenUsage.prototype.hasProvider = function() {
1990
+ return jspb.Message.getField(this, 10) != null;
1991
+ };
1992
+
1993
+
1994
+ /**
1995
+ * optional int32 inputCacheTokens = 11;
1996
+ * @return {number}
1997
+ */
1998
+ proto.event.v1.AITokenUsage.prototype.getInputcachetokens = function() {
1999
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
2000
+ };
2001
+
2002
+
2003
+ /**
2004
+ * @param {number} value
2005
+ * @return {!proto.event.v1.AITokenUsage} returns this
2006
+ */
2007
+ proto.event.v1.AITokenUsage.prototype.setInputcachetokens = function(value) {
2008
+ return jspb.Message.setProto3IntField(this, 11, value);
2009
+ };
2010
+
2011
+
2012
+ /**
2013
+ * optional int32 inputCacheAmount = 12;
2014
+ * @return {number}
2015
+ */
2016
+ proto.event.v1.AITokenUsage.prototype.getInputcacheamount = function() {
2017
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
2018
+ };
2019
+
2020
+
2021
+ /**
2022
+ * @param {number} value
2023
+ * @return {!proto.event.v1.AITokenUsage} returns this
2024
+ */
2025
+ proto.event.v1.AITokenUsage.prototype.setInputcacheamount = function(value) {
2026
+ return jspb.Message.setOneofField(this, 12, proto.event.v1.AITokenUsage.oneofGroups_[2], value);
2027
+ };
2028
+
2029
+
2030
+ /**
2031
+ * Clears the field making it undefined.
2032
+ * @return {!proto.event.v1.AITokenUsage} returns this
2033
+ */
2034
+ proto.event.v1.AITokenUsage.prototype.clearInputcacheamount = function() {
2035
+ return jspb.Message.setOneofField(this, 12, proto.event.v1.AITokenUsage.oneofGroups_[2], undefined);
2036
+ };
2037
+
2038
+
2039
+ /**
2040
+ * Returns whether this field is set.
2041
+ * @return {boolean}
2042
+ */
2043
+ proto.event.v1.AITokenUsage.prototype.hasInputcacheamount = function() {
2044
+ return jspb.Message.getField(this, 12) != null;
2045
+ };
2046
+
2047
+
2048
+ /**
2049
+ * optional string inputCacheTag = 13;
2050
+ * @return {string}
2051
+ */
2052
+ proto.event.v1.AITokenUsage.prototype.getInputcachetag = function() {
2053
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
2054
+ };
2055
+
2056
+
2057
+ /**
2058
+ * @param {string} value
2059
+ * @return {!proto.event.v1.AITokenUsage} returns this
2060
+ */
2061
+ proto.event.v1.AITokenUsage.prototype.setInputcachetag = function(value) {
2062
+ return jspb.Message.setOneofField(this, 13, proto.event.v1.AITokenUsage.oneofGroups_[2], value);
2063
+ };
2064
+
2065
+
2066
+ /**
2067
+ * Clears the field making it undefined.
2068
+ * @return {!proto.event.v1.AITokenUsage} returns this
2069
+ */
2070
+ proto.event.v1.AITokenUsage.prototype.clearInputcachetag = function() {
2071
+ return jspb.Message.setOneofField(this, 13, proto.event.v1.AITokenUsage.oneofGroups_[2], undefined);
2072
+ };
2073
+
2074
+
2075
+ /**
2076
+ * Returns whether this field is set.
2077
+ * @return {boolean}
2078
+ */
2079
+ proto.event.v1.AITokenUsage.prototype.hasInputcachetag = function() {
2080
+ return jspb.Message.getField(this, 13) != null;
2081
+ };
2082
+
2083
+
2084
+ /**
2085
+ * optional string inputCacheExpr = 14;
2086
+ * @return {string}
2087
+ */
2088
+ proto.event.v1.AITokenUsage.prototype.getInputcacheexpr = function() {
2089
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
2090
+ };
2091
+
2092
+
2093
+ /**
2094
+ * @param {string} value
2095
+ * @return {!proto.event.v1.AITokenUsage} returns this
2096
+ */
2097
+ proto.event.v1.AITokenUsage.prototype.setInputcacheexpr = function(value) {
2098
+ return jspb.Message.setOneofField(this, 14, proto.event.v1.AITokenUsage.oneofGroups_[2], value);
2099
+ };
2100
+
2101
+
2102
+ /**
2103
+ * Clears the field making it undefined.
2104
+ * @return {!proto.event.v1.AITokenUsage} returns this
2105
+ */
2106
+ proto.event.v1.AITokenUsage.prototype.clearInputcacheexpr = function() {
2107
+ return jspb.Message.setOneofField(this, 14, proto.event.v1.AITokenUsage.oneofGroups_[2], undefined);
2108
+ };
2109
+
2110
+
2111
+ /**
2112
+ * Returns whether this field is set.
2113
+ * @return {boolean}
2114
+ */
2115
+ proto.event.v1.AITokenUsage.prototype.hasInputcacheexpr = function() {
2116
+ return jspb.Message.getField(this, 14) != null;
2117
+ };
2118
+
2119
+
2120
+ /**
2121
+ * optional string metadata = 15;
2122
+ * @return {string}
2123
+ */
2124
+ proto.event.v1.AITokenUsage.prototype.getMetadata = function() {
2125
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
2126
+ };
2127
+
2128
+
2129
+ /**
2130
+ * @param {string} value
2131
+ * @return {!proto.event.v1.AITokenUsage} returns this
2132
+ */
2133
+ proto.event.v1.AITokenUsage.prototype.setMetadata = function(value) {
2134
+ return jspb.Message.setField(this, 15, value);
2135
+ };
2136
+
2137
+
2138
+ /**
2139
+ * Clears the field making it undefined.
2140
+ * @return {!proto.event.v1.AITokenUsage} returns this
2141
+ */
2142
+ proto.event.v1.AITokenUsage.prototype.clearMetadata = function() {
2143
+ return jspb.Message.setField(this, 15, undefined);
2144
+ };
2145
+
2146
+
2147
+ /**
2148
+ * Returns whether this field is set.
2149
+ * @return {boolean}
2150
+ */
2151
+ proto.event.v1.AITokenUsage.prototype.hasMetadata = function() {
2152
+ return jspb.Message.getField(this, 15) != null;
2153
+ };
2154
+
2155
+
1700
2156
 
1701
2157
 
1702
2158
 
@@ -1862,15 +2318,15 @@ proto.event.v1.StreamEventResponse.prototype.setMessage = function(value) {
1862
2318
  */
1863
2319
  proto.event.v1.EventType = {
1864
2320
  EVENT_TYPE_UNSPECIFIED: 0,
1865
- SDK_CALL: 1,
2321
+ BASIC_USAGE: 1,
1866
2322
  AI_TOKEN_USAGE: 2
1867
2323
  };
1868
2324
 
1869
2325
  /**
1870
2326
  * @enum {number}
1871
2327
  */
1872
- proto.event.v1.SDKCallType = {
1873
- SDKCALLTYPE_UNSPECIFIED: 0,
2328
+ proto.event.v1.BasicUsageType = {
2329
+ BASIC_USAGE_TYPE_UNSPECIFIED: 0,
1874
2330
  RAW: 1,
1875
2331
  MIDDLEWARE_CALL: 2
1876
2332
  };