@fonoster/sdk 0.30.0 → 0.31.1

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 (54) hide show
  1. package/README.md +6 -4
  2. package/dist/node/Agents.js +5 -20
  3. package/dist/node/Applications.js +13 -5
  4. package/dist/node/Billing.d.ts +50 -0
  5. package/dist/node/Billing.js +84 -0
  6. package/dist/node/CallRecords.js +5 -2
  7. package/dist/node/Calls.d.ts +3 -1
  8. package/dist/node/Calls.js +3 -1
  9. package/dist/node/Numbers.js +2 -7
  10. package/dist/node/Providers.js +4 -2
  11. package/dist/node/Regions.js +5 -2
  12. package/dist/node/Usage.d.ts +44 -0
  13. package/dist/node/Usage.js +41 -0
  14. package/dist/node/client/AbstractClient.d.ts +11 -0
  15. package/dist/node/client/AbstractClient.js +5 -1
  16. package/dist/node/client/Client.d.ts +2 -0
  17. package/dist/node/client/Client.js +13 -1
  18. package/dist/node/client/types/BillingClient.d.ts +28 -0
  19. package/dist/node/client/types/BillingClient.js +2 -0
  20. package/dist/node/client/types/FonosterClient.d.ts +5 -1
  21. package/dist/node/client/types/UsageClient.d.ts +24 -0
  22. package/dist/node/client/types/UsageClient.js +2 -0
  23. package/dist/node/client/types/index.d.ts +2 -0
  24. package/dist/node/client/types/index.js +2 -0
  25. package/dist/node/generated/node/applications_pb.js +368 -6
  26. package/dist/node/generated/node/billing_grpc_pb.js +169 -0
  27. package/dist/node/generated/node/billing_pb.js +1720 -0
  28. package/dist/node/generated/node/calls_pb.js +62 -2
  29. package/dist/node/generated/node/capabilities_pb.js +204 -1
  30. package/dist/node/generated/node/providers_pb.js +61 -1
  31. package/dist/node/generated/node/usage_grpc_pb.js +64 -0
  32. package/dist/node/generated/node/usage_pb.js +866 -0
  33. package/dist/node/generated/web/BillingServiceClientPb.ts +258 -0
  34. package/dist/node/generated/web/UsageServiceClientPb.ts +86 -0
  35. package/dist/node/generated/web/applications_pb.d.ts +42 -0
  36. package/dist/node/generated/web/applications_pb.js +368 -6
  37. package/dist/node/generated/web/billing_pb.d.ts +210 -0
  38. package/dist/node/generated/web/billing_pb.js +1720 -0
  39. package/dist/node/generated/web/calls_pb.d.ts +8 -0
  40. package/dist/node/generated/web/calls_pb.js +62 -2
  41. package/dist/node/generated/web/capabilities_pb.d.ts +24 -0
  42. package/dist/node/generated/web/capabilities_pb.js +204 -1
  43. package/dist/node/generated/web/providers_pb.d.ts +8 -0
  44. package/dist/node/generated/web/providers_pb.js +61 -1
  45. package/dist/node/generated/web/usage_pb.d.ts +106 -0
  46. package/dist/node/generated/web/usage_pb.js +866 -0
  47. package/dist/node/node.d.ts +2 -0
  48. package/dist/node/node.js +2 -0
  49. package/dist/node/tsconfig.tsbuildinfo +1 -1
  50. package/dist/node/utils.d.ts +8 -1
  51. package/dist/node/utils.js +18 -2
  52. package/dist/web/fonoster.min.js +1 -1
  53. package/dist/web/index.esm.js +1 -1
  54. package/package.json +7 -12
@@ -250,7 +250,8 @@ amdStatus: jspb.Message.getFieldWithDefault(msg, 11, 0),
250
250
  amdConfidence: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
251
251
  amdDetector: jspb.Message.getFieldWithDefault(msg, 13, ""),
252
252
  amdLatencyMs: jspb.Message.getFieldWithDefault(msg, 14, 0),
253
- amdCause: jspb.Message.getFieldWithDefault(msg, 15, "")
253
+ amdCause: jspb.Message.getFieldWithDefault(msg, 15, ""),
254
+ appRef: jspb.Message.getFieldWithDefault(msg, 16, "")
254
255
  };
255
256
 
256
257
  if (includeInstance) {
@@ -347,6 +348,10 @@ proto.fonoster.calls.v1beta2.CallDetailRecord.deserializeBinaryFromReader = func
347
348
  var value = /** @type {string} */ (reader.readString());
348
349
  msg.setAmdCause(value);
349
350
  break;
351
+ case 16:
352
+ var value = /** @type {string} */ (reader.readString());
353
+ msg.setAppRef(value);
354
+ break;
350
355
  default:
351
356
  reader.skipField();
352
357
  break;
@@ -481,6 +486,13 @@ proto.fonoster.calls.v1beta2.CallDetailRecord.serializeBinaryToWriter = function
481
486
  f
482
487
  );
483
488
  }
489
+ f = message.getAppRef();
490
+ if (f.length > 0) {
491
+ writer.writeString(
492
+ 16,
493
+ f
494
+ );
495
+ }
484
496
  };
485
497
 
486
498
 
@@ -766,6 +778,24 @@ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setAmdCause = function(v
766
778
  };
767
779
 
768
780
 
781
+ /**
782
+ * optional string app_ref = 16;
783
+ * @return {string}
784
+ */
785
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.getAppRef = function() {
786
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
787
+ };
788
+
789
+
790
+ /**
791
+ * @param {string} value
792
+ * @return {!proto.fonoster.calls.v1beta2.CallDetailRecord} returns this
793
+ */
794
+ proto.fonoster.calls.v1beta2.CallDetailRecord.prototype.setAppRef = function(value) {
795
+ return jspb.Message.setProto3StringField(this, 16, value);
796
+ };
797
+
798
+
769
799
 
770
800
 
771
801
 
@@ -1206,7 +1236,8 @@ status: jspb.Message.getFieldWithDefault(msg, 4, 0),
1206
1236
  from: jspb.Message.getFieldWithDefault(msg, 5, ""),
1207
1237
  to: jspb.Message.getFieldWithDefault(msg, 6, ""),
1208
1238
  pageSize: jspb.Message.getFieldWithDefault(msg, 7, 0),
1209
- pageToken: jspb.Message.getFieldWithDefault(msg, 8, "")
1239
+ pageToken: jspb.Message.getFieldWithDefault(msg, 8, ""),
1240
+ appRef: jspb.Message.getFieldWithDefault(msg, 9, "")
1210
1241
  };
1211
1242
 
1212
1243
  if (includeInstance) {
@@ -1275,6 +1306,10 @@ proto.fonoster.calls.v1beta2.ListCallsRequest.deserializeBinaryFromReader = func
1275
1306
  var value = /** @type {string} */ (reader.readString());
1276
1307
  msg.setPageToken(value);
1277
1308
  break;
1309
+ case 9:
1310
+ var value = /** @type {string} */ (reader.readString());
1311
+ msg.setAppRef(value);
1312
+ break;
1278
1313
  default:
1279
1314
  reader.skipField();
1280
1315
  break;
@@ -1360,6 +1395,13 @@ proto.fonoster.calls.v1beta2.ListCallsRequest.serializeBinaryToWriter = function
1360
1395
  f
1361
1396
  );
1362
1397
  }
1398
+ f = message.getAppRef();
1399
+ if (f.length > 0) {
1400
+ writer.writeString(
1401
+ 9,
1402
+ f
1403
+ );
1404
+ }
1363
1405
  };
1364
1406
 
1365
1407
 
@@ -1507,6 +1549,24 @@ proto.fonoster.calls.v1beta2.ListCallsRequest.prototype.setPageToken = function(
1507
1549
  };
1508
1550
 
1509
1551
 
1552
+ /**
1553
+ * optional string app_ref = 9;
1554
+ * @return {string}
1555
+ */
1556
+ proto.fonoster.calls.v1beta2.ListCallsRequest.prototype.getAppRef = function() {
1557
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1558
+ };
1559
+
1560
+
1561
+ /**
1562
+ * @param {string} value
1563
+ * @return {!proto.fonoster.calls.v1beta2.ListCallsRequest} returns this
1564
+ */
1565
+ proto.fonoster.calls.v1beta2.ListCallsRequest.prototype.setAppRef = function(value) {
1566
+ return jspb.Message.setProto3StringField(this, 9, value);
1567
+ };
1568
+
1569
+
1510
1570
 
1511
1571
  /**
1512
1572
  * List of repeated fields within this message type.
@@ -31,6 +31,7 @@ goog.exportSymbol('proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse',
31
31
  goog.exportSymbol('proto.fonoster.capabilities.v1beta2.GitHubCapability', null, global);
32
32
  goog.exportSymbol('proto.fonoster.capabilities.v1beta2.PortRange', null, global);
33
33
  goog.exportSymbol('proto.fonoster.capabilities.v1beta2.RegionsCapabilities', null, global);
34
+ goog.exportSymbol('proto.fonoster.capabilities.v1beta2.SipCapabilities', null, global);
34
35
  goog.exportSymbol('proto.fonoster.capabilities.v1beta2.SipEndpoint', null, global);
35
36
  /**
36
37
  * Generated by JsPbCodeGenerator.
@@ -137,6 +138,27 @@ if (goog.DEBUG && !COMPILED) {
137
138
  */
138
139
  proto.fonoster.capabilities.v1beta2.RegionsCapabilities.displayName = 'proto.fonoster.capabilities.v1beta2.RegionsCapabilities';
139
140
  }
141
+ /**
142
+ * Generated by JsPbCodeGenerator.
143
+ * @param {Array=} opt_data Optional initial data array, typically from a
144
+ * server response, or constructed directly in Javascript. The array is used
145
+ * in place and becomes part of the constructed object. It is not cloned.
146
+ * If no data is provided, the constructed object will be empty, but still
147
+ * valid.
148
+ * @extends {jspb.Message}
149
+ * @constructor
150
+ */
151
+ proto.fonoster.capabilities.v1beta2.SipCapabilities = function(opt_data) {
152
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
153
+ };
154
+ goog.inherits(proto.fonoster.capabilities.v1beta2.SipCapabilities, jspb.Message);
155
+ if (goog.DEBUG && !COMPILED) {
156
+ /**
157
+ * @public
158
+ * @override
159
+ */
160
+ proto.fonoster.capabilities.v1beta2.SipCapabilities.displayName = 'proto.fonoster.capabilities.v1beta2.SipCapabilities';
161
+ }
140
162
  /**
141
163
  * Generated by JsPbCodeGenerator.
142
164
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1011,6 +1033,136 @@ proto.fonoster.capabilities.v1beta2.RegionsCapabilities.prototype.setPrivate = f
1011
1033
 
1012
1034
 
1013
1035
 
1036
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1037
+ /**
1038
+ * Creates an object representation of this proto.
1039
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1040
+ * Optional fields that are not set will be set to undefined.
1041
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1042
+ * For the list of reserved names please see:
1043
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1044
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1045
+ * JSPB instance for transitional soy proto support:
1046
+ * http://goto/soy-param-migration
1047
+ * @return {!Object}
1048
+ */
1049
+ proto.fonoster.capabilities.v1beta2.SipCapabilities.prototype.toObject = function(opt_includeInstance) {
1050
+ return proto.fonoster.capabilities.v1beta2.SipCapabilities.toObject(opt_includeInstance, this);
1051
+ };
1052
+
1053
+
1054
+ /**
1055
+ * Static version of the {@see toObject} method.
1056
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1057
+ * the JSPB instance for transitional soy proto support:
1058
+ * http://goto/soy-param-migration
1059
+ * @param {!proto.fonoster.capabilities.v1beta2.SipCapabilities} msg The msg instance to transform.
1060
+ * @return {!Object}
1061
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1062
+ */
1063
+ proto.fonoster.capabilities.v1beta2.SipCapabilities.toObject = function(includeInstance, msg) {
1064
+ var f, obj = {
1065
+ names: jspb.Message.getFieldWithDefault(msg, 1, "")
1066
+ };
1067
+
1068
+ if (includeInstance) {
1069
+ obj.$jspbMessageInstance = msg;
1070
+ }
1071
+ return obj;
1072
+ };
1073
+ }
1074
+
1075
+
1076
+ /**
1077
+ * Deserializes binary data (in protobuf wire format).
1078
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1079
+ * @return {!proto.fonoster.capabilities.v1beta2.SipCapabilities}
1080
+ */
1081
+ proto.fonoster.capabilities.v1beta2.SipCapabilities.deserializeBinary = function(bytes) {
1082
+ var reader = new jspb.BinaryReader(bytes);
1083
+ var msg = new proto.fonoster.capabilities.v1beta2.SipCapabilities;
1084
+ return proto.fonoster.capabilities.v1beta2.SipCapabilities.deserializeBinaryFromReader(msg, reader);
1085
+ };
1086
+
1087
+
1088
+ /**
1089
+ * Deserializes binary data (in protobuf wire format) from the
1090
+ * given reader into the given message object.
1091
+ * @param {!proto.fonoster.capabilities.v1beta2.SipCapabilities} msg The message object to deserialize into.
1092
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1093
+ * @return {!proto.fonoster.capabilities.v1beta2.SipCapabilities}
1094
+ */
1095
+ proto.fonoster.capabilities.v1beta2.SipCapabilities.deserializeBinaryFromReader = function(msg, reader) {
1096
+ while (reader.nextField()) {
1097
+ if (reader.isEndGroup()) {
1098
+ break;
1099
+ }
1100
+ var field = reader.getFieldNumber();
1101
+ switch (field) {
1102
+ case 1:
1103
+ var value = /** @type {string} */ (reader.readString());
1104
+ msg.setNames(value);
1105
+ break;
1106
+ default:
1107
+ reader.skipField();
1108
+ break;
1109
+ }
1110
+ }
1111
+ return msg;
1112
+ };
1113
+
1114
+
1115
+ /**
1116
+ * Serializes the message to binary data (in protobuf wire format).
1117
+ * @return {!Uint8Array}
1118
+ */
1119
+ proto.fonoster.capabilities.v1beta2.SipCapabilities.prototype.serializeBinary = function() {
1120
+ var writer = new jspb.BinaryWriter();
1121
+ proto.fonoster.capabilities.v1beta2.SipCapabilities.serializeBinaryToWriter(this, writer);
1122
+ return writer.getResultBuffer();
1123
+ };
1124
+
1125
+
1126
+ /**
1127
+ * Serializes the given message to binary data (in protobuf wire
1128
+ * format), writing to the given BinaryWriter.
1129
+ * @param {!proto.fonoster.capabilities.v1beta2.SipCapabilities} message
1130
+ * @param {!jspb.BinaryWriter} writer
1131
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1132
+ */
1133
+ proto.fonoster.capabilities.v1beta2.SipCapabilities.serializeBinaryToWriter = function(message, writer) {
1134
+ var f = undefined;
1135
+ f = message.getNames();
1136
+ if (f.length > 0) {
1137
+ writer.writeString(
1138
+ 1,
1139
+ f
1140
+ );
1141
+ }
1142
+ };
1143
+
1144
+
1145
+ /**
1146
+ * optional string names = 1;
1147
+ * @return {string}
1148
+ */
1149
+ proto.fonoster.capabilities.v1beta2.SipCapabilities.prototype.getNames = function() {
1150
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1151
+ };
1152
+
1153
+
1154
+ /**
1155
+ * @param {string} value
1156
+ * @return {!proto.fonoster.capabilities.v1beta2.SipCapabilities} returns this
1157
+ */
1158
+ proto.fonoster.capabilities.v1beta2.SipCapabilities.prototype.setNames = function(value) {
1159
+ return jspb.Message.setProto3StringField(this, 1, value);
1160
+ };
1161
+
1162
+
1163
+
1164
+
1165
+
1014
1166
  if (jspb.Message.GENERATE_TO_OBJECT) {
1015
1167
  /**
1016
1168
  * Creates an object representation of this proto.
@@ -1705,7 +1857,8 @@ costs: (f = msg.getCosts()) && proto.fonoster.capabilities.v1beta2.CostsCapabili
1705
1857
  domain: jspb.Message.getFieldWithDefault(msg, 4, ""),
1706
1858
  appUrl: jspb.Message.getFieldWithDefault(msg, 5, ""),
1707
1859
  regions: (f = msg.getRegions()) && proto.fonoster.capabilities.v1beta2.RegionsCapabilities.toObject(includeInstance, f),
1708
- connection: (f = msg.getConnection()) && proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.toObject(includeInstance, f)
1860
+ connection: (f = msg.getConnection()) && proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.toObject(includeInstance, f),
1861
+ sip: (f = msg.getSip()) && proto.fonoster.capabilities.v1beta2.SipCapabilities.toObject(includeInstance, f)
1709
1862
  };
1710
1863
 
1711
1864
  if (includeInstance) {
@@ -1775,6 +1928,11 @@ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.deserializeBinaryFro
1775
1928
  reader.readMessage(value,proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.deserializeBinaryFromReader);
1776
1929
  msg.setConnection(value);
1777
1930
  break;
1931
+ case 8:
1932
+ var value = new proto.fonoster.capabilities.v1beta2.SipCapabilities;
1933
+ reader.readMessage(value,proto.fonoster.capabilities.v1beta2.SipCapabilities.deserializeBinaryFromReader);
1934
+ msg.setSip(value);
1935
+ break;
1778
1936
  default:
1779
1937
  reader.skipField();
1780
1938
  break;
@@ -1858,6 +2016,14 @@ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.serializeBinaryToWri
1858
2016
  proto.fonoster.capabilities.v1beta2.ConnectionCapabilities.serializeBinaryToWriter
1859
2017
  );
1860
2018
  }
2019
+ f = message.getSip();
2020
+ if (f != null) {
2021
+ writer.writeMessage(
2022
+ 8,
2023
+ f,
2024
+ proto.fonoster.capabilities.v1beta2.SipCapabilities.serializeBinaryToWriter
2025
+ );
2026
+ }
1861
2027
  };
1862
2028
 
1863
2029
 
@@ -2082,4 +2248,41 @@ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.hasConnect
2082
2248
  };
2083
2249
 
2084
2250
 
2251
+ /**
2252
+ * optional SipCapabilities sip = 8;
2253
+ * @return {?proto.fonoster.capabilities.v1beta2.SipCapabilities}
2254
+ */
2255
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.getSip = function() {
2256
+ return /** @type{?proto.fonoster.capabilities.v1beta2.SipCapabilities} */ (
2257
+ jspb.Message.getWrapperField(this, proto.fonoster.capabilities.v1beta2.SipCapabilities, 8));
2258
+ };
2259
+
2260
+
2261
+ /**
2262
+ * @param {?proto.fonoster.capabilities.v1beta2.SipCapabilities|undefined} value
2263
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
2264
+ */
2265
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.setSip = function(value) {
2266
+ return jspb.Message.setWrapperField(this, 8, value);
2267
+ };
2268
+
2269
+
2270
+ /**
2271
+ * Clears the message field making it undefined.
2272
+ * @return {!proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse} returns this
2273
+ */
2274
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.clearSip = function() {
2275
+ return this.setSip(undefined);
2276
+ };
2277
+
2278
+
2279
+ /**
2280
+ * Returns whether this field is set.
2281
+ * @return {boolean}
2282
+ */
2283
+ proto.fonoster.capabilities.v1beta2.GetCapabilitiesResponse.prototype.hasSip = function() {
2284
+ return jspb.Message.getField(this, 8) != null;
2285
+ };
2286
+
2287
+
2085
2288
  goog.object.extend(exports, proto.fonoster.capabilities.v1beta2);
@@ -357,7 +357,9 @@ featuresList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined :
357
357
  modelsList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f,
358
358
  gender: jspb.Message.getFieldWithDefault(msg, 10, ""),
359
359
  replacement: jspb.Message.getFieldWithDefault(msg, 11, ""),
360
- retireOn: jspb.Message.getFieldWithDefault(msg, 12, "")
360
+ retireOn: jspb.Message.getFieldWithDefault(msg, 12, ""),
361
+ keyless: jspb.Message.getBooleanFieldWithDefault(msg, 13, false),
362
+ label: jspb.Message.getFieldWithDefault(msg, 14, "")
361
363
  };
362
364
 
363
365
  if (includeInstance) {
@@ -442,6 +444,14 @@ proto.fonoster.providers.v1beta2.CatalogItem.deserializeBinaryFromReader = funct
442
444
  var value = /** @type {string} */ (reader.readString());
443
445
  msg.setRetireOn(value);
444
446
  break;
447
+ case 13:
448
+ var value = /** @type {boolean} */ (reader.readBool());
449
+ msg.setKeyless(value);
450
+ break;
451
+ case 14:
452
+ var value = /** @type {string} */ (reader.readString());
453
+ msg.setLabel(value);
454
+ break;
445
455
  default:
446
456
  reader.skipField();
447
457
  break;
@@ -555,6 +565,20 @@ proto.fonoster.providers.v1beta2.CatalogItem.serializeBinaryToWriter = function(
555
565
  f
556
566
  );
557
567
  }
568
+ f = message.getKeyless();
569
+ if (f) {
570
+ writer.writeBool(
571
+ 13,
572
+ f
573
+ );
574
+ }
575
+ f = message.getLabel();
576
+ if (f.length > 0) {
577
+ writer.writeString(
578
+ 14,
579
+ f
580
+ );
581
+ }
558
582
  };
559
583
 
560
584
 
@@ -850,6 +874,42 @@ proto.fonoster.providers.v1beta2.CatalogItem.prototype.setRetireOn = function(va
850
874
  };
851
875
 
852
876
 
877
+ /**
878
+ * optional bool keyless = 13;
879
+ * @return {boolean}
880
+ */
881
+ proto.fonoster.providers.v1beta2.CatalogItem.prototype.getKeyless = function() {
882
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 13, false));
883
+ };
884
+
885
+
886
+ /**
887
+ * @param {boolean} value
888
+ * @return {!proto.fonoster.providers.v1beta2.CatalogItem} returns this
889
+ */
890
+ proto.fonoster.providers.v1beta2.CatalogItem.prototype.setKeyless = function(value) {
891
+ return jspb.Message.setProto3BooleanField(this, 13, value);
892
+ };
893
+
894
+
895
+ /**
896
+ * optional string label = 14;
897
+ * @return {string}
898
+ */
899
+ proto.fonoster.providers.v1beta2.CatalogItem.prototype.getLabel = function() {
900
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
901
+ };
902
+
903
+
904
+ /**
905
+ * @param {string} value
906
+ * @return {!proto.fonoster.providers.v1beta2.CatalogItem} returns this
907
+ */
908
+ proto.fonoster.providers.v1beta2.CatalogItem.prototype.setLabel = function(value) {
909
+ return jspb.Message.setProto3StringField(this, 14, value);
910
+ };
911
+
912
+
853
913
 
854
914
 
855
915
 
@@ -0,0 +1,64 @@
1
+ // GENERATED CODE -- DO NOT EDIT!
2
+
3
+ // Original file comments:
4
+ //
5
+ // Copyright (C) 2025 by Fonoster Inc (https://fonoster.com)
6
+ // http://github.com/fonoster/fonoster
7
+ //
8
+ // This file is part of Fonoster
9
+ //
10
+ // Licensed under the MIT License (the "License");
11
+ // you may not use this file except in compliance with
12
+ // the License. You may obtain a copy of the License at
13
+ //
14
+ // https://opensource.org/licenses/MIT
15
+ //
16
+ // Unless required by applicable law or agreed to in writing, software
17
+ // distributed under the License is distributed on an "AS IS" BASIS,
18
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ // See the License for the specific language governing permissions and
20
+ // limitations under the License.
21
+ 'use strict';
22
+ var grpc = require('@grpc/grpc-js');
23
+ var usage_pb = require('./usage_pb.js');
24
+
25
+ function serialize_fonoster_usage_v1beta2_GetUsageRequest(arg) {
26
+ if (!(arg instanceof usage_pb.GetUsageRequest)) {
27
+ throw new Error('Expected argument of type fonoster.usage.v1beta2.GetUsageRequest');
28
+ }
29
+ return Buffer.from(arg.serializeBinary());
30
+ }
31
+
32
+ function deserialize_fonoster_usage_v1beta2_GetUsageRequest(buffer_arg) {
33
+ return usage_pb.GetUsageRequest.deserializeBinary(new Uint8Array(buffer_arg));
34
+ }
35
+
36
+ function serialize_fonoster_usage_v1beta2_GetUsageResponse(arg) {
37
+ if (!(arg instanceof usage_pb.GetUsageResponse)) {
38
+ throw new Error('Expected argument of type fonoster.usage.v1beta2.GetUsageResponse');
39
+ }
40
+ return Buffer.from(arg.serializeBinary());
41
+ }
42
+
43
+ function deserialize_fonoster_usage_v1beta2_GetUsageResponse(buffer_arg) {
44
+ return usage_pb.GetUsageResponse.deserializeBinary(new Uint8Array(buffer_arg));
45
+ }
46
+
47
+
48
+ // What the workspace consumed: quantities only, never money (usage-metering spec).
49
+ var UsageService = exports.UsageService = {
50
+ // Gets usage totals for a range of days, grouped as requested
51
+ getUsage: {
52
+ path: '/fonoster.usage.v1beta2.Usage/GetUsage',
53
+ requestStream: false,
54
+ responseStream: false,
55
+ requestType: usage_pb.GetUsageRequest,
56
+ responseType: usage_pb.GetUsageResponse,
57
+ requestSerialize: serialize_fonoster_usage_v1beta2_GetUsageRequest,
58
+ requestDeserialize: deserialize_fonoster_usage_v1beta2_GetUsageRequest,
59
+ responseSerialize: serialize_fonoster_usage_v1beta2_GetUsageResponse,
60
+ responseDeserialize: deserialize_fonoster_usage_v1beta2_GetUsageResponse,
61
+ },
62
+ };
63
+
64
+ exports.UsageClient = grpc.makeGenericClientConstructor(UsageService, 'Usage');