@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.
- package/README.md +6 -4
- package/dist/node/Agents.js +5 -20
- package/dist/node/Applications.js +13 -5
- package/dist/node/Billing.d.ts +50 -0
- package/dist/node/Billing.js +84 -0
- package/dist/node/CallRecords.js +5 -2
- package/dist/node/Calls.d.ts +3 -1
- package/dist/node/Calls.js +3 -1
- package/dist/node/Numbers.js +2 -7
- package/dist/node/Providers.js +4 -2
- package/dist/node/Regions.js +5 -2
- package/dist/node/Usage.d.ts +44 -0
- package/dist/node/Usage.js +41 -0
- package/dist/node/client/AbstractClient.d.ts +11 -0
- package/dist/node/client/AbstractClient.js +5 -1
- package/dist/node/client/Client.d.ts +2 -0
- package/dist/node/client/Client.js +13 -1
- package/dist/node/client/types/BillingClient.d.ts +28 -0
- package/dist/node/client/types/BillingClient.js +2 -0
- package/dist/node/client/types/FonosterClient.d.ts +5 -1
- package/dist/node/client/types/UsageClient.d.ts +24 -0
- package/dist/node/client/types/UsageClient.js +2 -0
- package/dist/node/client/types/index.d.ts +2 -0
- package/dist/node/client/types/index.js +2 -0
- package/dist/node/generated/node/applications_pb.js +368 -6
- package/dist/node/generated/node/billing_grpc_pb.js +169 -0
- package/dist/node/generated/node/billing_pb.js +1720 -0
- package/dist/node/generated/node/calls_pb.js +62 -2
- package/dist/node/generated/node/capabilities_pb.js +204 -1
- package/dist/node/generated/node/providers_pb.js +61 -1
- package/dist/node/generated/node/usage_grpc_pb.js +64 -0
- package/dist/node/generated/node/usage_pb.js +866 -0
- package/dist/node/generated/web/BillingServiceClientPb.ts +258 -0
- package/dist/node/generated/web/UsageServiceClientPb.ts +86 -0
- package/dist/node/generated/web/applications_pb.d.ts +42 -0
- package/dist/node/generated/web/applications_pb.js +368 -6
- package/dist/node/generated/web/billing_pb.d.ts +210 -0
- package/dist/node/generated/web/billing_pb.js +1720 -0
- package/dist/node/generated/web/calls_pb.d.ts +8 -0
- package/dist/node/generated/web/calls_pb.js +62 -2
- package/dist/node/generated/web/capabilities_pb.d.ts +24 -0
- package/dist/node/generated/web/capabilities_pb.js +204 -1
- package/dist/node/generated/web/providers_pb.d.ts +8 -0
- package/dist/node/generated/web/providers_pb.js +61 -1
- package/dist/node/generated/web/usage_pb.d.ts +106 -0
- package/dist/node/generated/web/usage_pb.js +866 -0
- package/dist/node/node.d.ts +2 -0
- package/dist/node/node.js +2 -0
- package/dist/node/tsconfig.tsbuildinfo +1 -1
- package/dist/node/utils.d.ts +8 -1
- package/dist/node/utils.js +18 -2
- package/dist/web/fonoster.min.js +1 -1
- package/dist/web/index.esm.js +1 -1
- package/package.json +7 -12
|
@@ -49,6 +49,9 @@ export class CallDetailRecord extends jspb.Message {
|
|
|
49
49
|
getAmdCause(): string;
|
|
50
50
|
setAmdCause(value: string): CallDetailRecord;
|
|
51
51
|
|
|
52
|
+
getAppRef(): string;
|
|
53
|
+
setAppRef(value: string): CallDetailRecord;
|
|
54
|
+
|
|
52
55
|
serializeBinary(): Uint8Array;
|
|
53
56
|
toObject(includeInstance?: boolean): CallDetailRecord.AsObject;
|
|
54
57
|
static toObject(includeInstance: boolean, msg: CallDetailRecord): CallDetailRecord.AsObject;
|
|
@@ -74,6 +77,7 @@ export namespace CallDetailRecord {
|
|
|
74
77
|
amdDetector: string,
|
|
75
78
|
amdLatencyMs: number,
|
|
76
79
|
amdCause: string,
|
|
80
|
+
appRef: string,
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
export enum AmdStatus {
|
|
@@ -165,6 +169,9 @@ export class ListCallsRequest extends jspb.Message {
|
|
|
165
169
|
getPageToken(): string;
|
|
166
170
|
setPageToken(value: string): ListCallsRequest;
|
|
167
171
|
|
|
172
|
+
getAppRef(): string;
|
|
173
|
+
setAppRef(value: string): ListCallsRequest;
|
|
174
|
+
|
|
168
175
|
serializeBinary(): Uint8Array;
|
|
169
176
|
toObject(includeInstance?: boolean): ListCallsRequest.AsObject;
|
|
170
177
|
static toObject(includeInstance: boolean, msg: ListCallsRequest): ListCallsRequest.AsObject;
|
|
@@ -183,6 +190,7 @@ export namespace ListCallsRequest {
|
|
|
183
190
|
to: string,
|
|
184
191
|
pageSize: number,
|
|
185
192
|
pageToken: string,
|
|
193
|
+
appRef: string,
|
|
186
194
|
}
|
|
187
195
|
}
|
|
188
196
|
|
|
@@ -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.
|
|
@@ -109,6 +109,24 @@ export namespace RegionsCapabilities {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
export class SipCapabilities extends jspb.Message {
|
|
113
|
+
getNames(): string;
|
|
114
|
+
setNames(value: string): SipCapabilities;
|
|
115
|
+
|
|
116
|
+
serializeBinary(): Uint8Array;
|
|
117
|
+
toObject(includeInstance?: boolean): SipCapabilities.AsObject;
|
|
118
|
+
static toObject(includeInstance: boolean, msg: SipCapabilities): SipCapabilities.AsObject;
|
|
119
|
+
static serializeBinaryToWriter(message: SipCapabilities, writer: jspb.BinaryWriter): void;
|
|
120
|
+
static deserializeBinary(bytes: Uint8Array): SipCapabilities;
|
|
121
|
+
static deserializeBinaryFromReader(message: SipCapabilities, reader: jspb.BinaryReader): SipCapabilities;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export namespace SipCapabilities {
|
|
125
|
+
export type AsObject = {
|
|
126
|
+
names: string,
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
112
130
|
export class SipEndpoint extends jspb.Message {
|
|
113
131
|
getHost(): string;
|
|
114
132
|
setHost(value: string): SipEndpoint;
|
|
@@ -227,6 +245,11 @@ export class GetCapabilitiesResponse extends jspb.Message {
|
|
|
227
245
|
hasConnection(): boolean;
|
|
228
246
|
clearConnection(): GetCapabilitiesResponse;
|
|
229
247
|
|
|
248
|
+
getSip(): SipCapabilities | undefined;
|
|
249
|
+
setSip(value?: SipCapabilities): GetCapabilitiesResponse;
|
|
250
|
+
hasSip(): boolean;
|
|
251
|
+
clearSip(): GetCapabilitiesResponse;
|
|
252
|
+
|
|
230
253
|
serializeBinary(): Uint8Array;
|
|
231
254
|
toObject(includeInstance?: boolean): GetCapabilitiesResponse.AsObject;
|
|
232
255
|
static toObject(includeInstance: boolean, msg: GetCapabilitiesResponse): GetCapabilitiesResponse.AsObject;
|
|
@@ -244,6 +267,7 @@ export namespace GetCapabilitiesResponse {
|
|
|
244
267
|
appUrl: string,
|
|
245
268
|
regions?: RegionsCapabilities.AsObject,
|
|
246
269
|
connection?: ConnectionCapabilities.AsObject,
|
|
270
|
+
sip?: SipCapabilities.AsObject,
|
|
247
271
|
}
|
|
248
272
|
}
|
|
249
273
|
|
|
@@ -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);
|
|
@@ -47,6 +47,12 @@ export class CatalogItem extends jspb.Message {
|
|
|
47
47
|
getRetireOn(): string;
|
|
48
48
|
setRetireOn(value: string): CatalogItem;
|
|
49
49
|
|
|
50
|
+
getKeyless(): boolean;
|
|
51
|
+
setKeyless(value: boolean): CatalogItem;
|
|
52
|
+
|
|
53
|
+
getLabel(): string;
|
|
54
|
+
setLabel(value: string): CatalogItem;
|
|
55
|
+
|
|
50
56
|
serializeBinary(): Uint8Array;
|
|
51
57
|
toObject(includeInstance?: boolean): CatalogItem.AsObject;
|
|
52
58
|
static toObject(includeInstance: boolean, msg: CatalogItem): CatalogItem.AsObject;
|
|
@@ -69,6 +75,8 @@ export namespace CatalogItem {
|
|
|
69
75
|
gender: string,
|
|
70
76
|
replacement: string,
|
|
71
77
|
retireOn: string,
|
|
78
|
+
keyless: boolean,
|
|
79
|
+
label: string,
|
|
72
80
|
}
|
|
73
81
|
}
|
|
74
82
|
|
|
@@ -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,106 @@
|
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetUsageRequest extends jspb.Message {
|
|
6
|
+
getFromDay(): string;
|
|
7
|
+
setFromDay(value: string): GetUsageRequest;
|
|
8
|
+
|
|
9
|
+
getToDay(): string;
|
|
10
|
+
setToDay(value: string): GetUsageRequest;
|
|
11
|
+
|
|
12
|
+
getGroupByList(): Array<string>;
|
|
13
|
+
setGroupByList(value: Array<string>): GetUsageRequest;
|
|
14
|
+
clearGroupByList(): GetUsageRequest;
|
|
15
|
+
addGroupBy(value: string, index?: number): GetUsageRequest;
|
|
16
|
+
|
|
17
|
+
getAllOwned(): boolean;
|
|
18
|
+
setAllOwned(value: boolean): GetUsageRequest;
|
|
19
|
+
|
|
20
|
+
serializeBinary(): Uint8Array;
|
|
21
|
+
toObject(includeInstance?: boolean): GetUsageRequest.AsObject;
|
|
22
|
+
static toObject(includeInstance: boolean, msg: GetUsageRequest): GetUsageRequest.AsObject;
|
|
23
|
+
static serializeBinaryToWriter(message: GetUsageRequest, writer: jspb.BinaryWriter): void;
|
|
24
|
+
static deserializeBinary(bytes: Uint8Array): GetUsageRequest;
|
|
25
|
+
static deserializeBinaryFromReader(message: GetUsageRequest, reader: jspb.BinaryReader): GetUsageRequest;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export namespace GetUsageRequest {
|
|
29
|
+
export type AsObject = {
|
|
30
|
+
fromDay: string,
|
|
31
|
+
toDay: string,
|
|
32
|
+
groupByList: Array<string>,
|
|
33
|
+
allOwned: boolean,
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class UsageRow extends jspb.Message {
|
|
38
|
+
getDay(): string;
|
|
39
|
+
setDay(value: string): UsageRow;
|
|
40
|
+
|
|
41
|
+
getWorkspaceRef(): string;
|
|
42
|
+
setWorkspaceRef(value: string): UsageRow;
|
|
43
|
+
|
|
44
|
+
getMeter(): string;
|
|
45
|
+
setMeter(value: string): UsageRow;
|
|
46
|
+
|
|
47
|
+
getUnit(): string;
|
|
48
|
+
setUnit(value: string): UsageRow;
|
|
49
|
+
|
|
50
|
+
getProvider(): string;
|
|
51
|
+
setProvider(value: string): UsageRow;
|
|
52
|
+
|
|
53
|
+
getModel(): string;
|
|
54
|
+
setModel(value: string): UsageRow;
|
|
55
|
+
|
|
56
|
+
getKeySource(): string;
|
|
57
|
+
setKeySource(value: string): UsageRow;
|
|
58
|
+
|
|
59
|
+
getOrigin(): string;
|
|
60
|
+
setOrigin(value: string): UsageRow;
|
|
61
|
+
|
|
62
|
+
getQuantity(): number;
|
|
63
|
+
setQuantity(value: number): UsageRow;
|
|
64
|
+
|
|
65
|
+
serializeBinary(): Uint8Array;
|
|
66
|
+
toObject(includeInstance?: boolean): UsageRow.AsObject;
|
|
67
|
+
static toObject(includeInstance: boolean, msg: UsageRow): UsageRow.AsObject;
|
|
68
|
+
static serializeBinaryToWriter(message: UsageRow, writer: jspb.BinaryWriter): void;
|
|
69
|
+
static deserializeBinary(bytes: Uint8Array): UsageRow;
|
|
70
|
+
static deserializeBinaryFromReader(message: UsageRow, reader: jspb.BinaryReader): UsageRow;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export namespace UsageRow {
|
|
74
|
+
export type AsObject = {
|
|
75
|
+
day: string,
|
|
76
|
+
workspaceRef: string,
|
|
77
|
+
meter: string,
|
|
78
|
+
unit: string,
|
|
79
|
+
provider: string,
|
|
80
|
+
model: string,
|
|
81
|
+
keySource: string,
|
|
82
|
+
origin: string,
|
|
83
|
+
quantity: number,
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export class GetUsageResponse extends jspb.Message {
|
|
88
|
+
getRowsList(): Array<UsageRow>;
|
|
89
|
+
setRowsList(value: Array<UsageRow>): GetUsageResponse;
|
|
90
|
+
clearRowsList(): GetUsageResponse;
|
|
91
|
+
addRows(value?: UsageRow, index?: number): UsageRow;
|
|
92
|
+
|
|
93
|
+
serializeBinary(): Uint8Array;
|
|
94
|
+
toObject(includeInstance?: boolean): GetUsageResponse.AsObject;
|
|
95
|
+
static toObject(includeInstance: boolean, msg: GetUsageResponse): GetUsageResponse.AsObject;
|
|
96
|
+
static serializeBinaryToWriter(message: GetUsageResponse, writer: jspb.BinaryWriter): void;
|
|
97
|
+
static deserializeBinary(bytes: Uint8Array): GetUsageResponse;
|
|
98
|
+
static deserializeBinaryFromReader(message: GetUsageResponse, reader: jspb.BinaryReader): GetUsageResponse;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export namespace GetUsageResponse {
|
|
102
|
+
export type AsObject = {
|
|
103
|
+
rowsList: Array<UsageRow.AsObject>,
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|