@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
|
@@ -28,6 +28,7 @@ goog.object.extend(proto, google_protobuf_empty_pb);
|
|
|
28
28
|
goog.exportSymbol('proto.fonoster.applications.v1beta2.AmdSettings', null, global);
|
|
29
29
|
goog.exportSymbol('proto.fonoster.applications.v1beta2.Application', null, global);
|
|
30
30
|
goog.exportSymbol('proto.fonoster.applications.v1beta2.ApplicationType', null, global);
|
|
31
|
+
goog.exportSymbol('proto.fonoster.applications.v1beta2.AudioFilter', null, global);
|
|
31
32
|
goog.exportSymbol('proto.fonoster.applications.v1beta2.AudioFormat', null, global);
|
|
32
33
|
goog.exportSymbol('proto.fonoster.applications.v1beta2.CreateApplicationRequest', null, global);
|
|
33
34
|
goog.exportSymbol('proto.fonoster.applications.v1beta2.CreateApplicationResponse', null, global);
|
|
@@ -201,6 +202,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
201
202
|
*/
|
|
202
203
|
proto.fonoster.applications.v1beta2.ProductContainer.displayName = 'proto.fonoster.applications.v1beta2.ProductContainer';
|
|
203
204
|
}
|
|
205
|
+
/**
|
|
206
|
+
* Generated by JsPbCodeGenerator.
|
|
207
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
208
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
209
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
210
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
211
|
+
* valid.
|
|
212
|
+
* @extends {jspb.Message}
|
|
213
|
+
* @constructor
|
|
214
|
+
*/
|
|
215
|
+
proto.fonoster.applications.v1beta2.AudioFilter = function(opt_data) {
|
|
216
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
217
|
+
};
|
|
218
|
+
goog.inherits(proto.fonoster.applications.v1beta2.AudioFilter, jspb.Message);
|
|
219
|
+
if (goog.DEBUG && !COMPILED) {
|
|
220
|
+
/**
|
|
221
|
+
* @public
|
|
222
|
+
* @override
|
|
223
|
+
*/
|
|
224
|
+
proto.fonoster.applications.v1beta2.AudioFilter.displayName = 'proto.fonoster.applications.v1beta2.AudioFilter';
|
|
225
|
+
}
|
|
204
226
|
/**
|
|
205
227
|
* Generated by JsPbCodeGenerator.
|
|
206
228
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1913,12 +1935,193 @@ proto.fonoster.applications.v1beta2.ProductContainer.prototype.hasCredentials =
|
|
|
1913
1935
|
|
|
1914
1936
|
|
|
1915
1937
|
|
|
1938
|
+
|
|
1939
|
+
|
|
1940
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1941
|
+
/**
|
|
1942
|
+
* Creates an object representation of this proto.
|
|
1943
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1944
|
+
* Optional fields that are not set will be set to undefined.
|
|
1945
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1946
|
+
* For the list of reserved names please see:
|
|
1947
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
1948
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
1949
|
+
* JSPB instance for transitional soy proto support:
|
|
1950
|
+
* http://goto/soy-param-migration
|
|
1951
|
+
* @return {!Object}
|
|
1952
|
+
*/
|
|
1953
|
+
proto.fonoster.applications.v1beta2.AudioFilter.prototype.toObject = function(opt_includeInstance) {
|
|
1954
|
+
return proto.fonoster.applications.v1beta2.AudioFilter.toObject(opt_includeInstance, this);
|
|
1955
|
+
};
|
|
1956
|
+
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* Static version of the {@see toObject} method.
|
|
1960
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
1961
|
+
* the JSPB instance for transitional soy proto support:
|
|
1962
|
+
* http://goto/soy-param-migration
|
|
1963
|
+
* @param {!proto.fonoster.applications.v1beta2.AudioFilter} msg The msg instance to transform.
|
|
1964
|
+
* @return {!Object}
|
|
1965
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
1966
|
+
*/
|
|
1967
|
+
proto.fonoster.applications.v1beta2.AudioFilter.toObject = function(includeInstance, msg) {
|
|
1968
|
+
var f, obj = {
|
|
1969
|
+
name: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1970
|
+
options: (f = msg.getOptions()) && google_protobuf_struct_pb.Struct.toObject(includeInstance, f)
|
|
1971
|
+
};
|
|
1972
|
+
|
|
1973
|
+
if (includeInstance) {
|
|
1974
|
+
obj.$jspbMessageInstance = msg;
|
|
1975
|
+
}
|
|
1976
|
+
return obj;
|
|
1977
|
+
};
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
/**
|
|
1982
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1983
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1984
|
+
* @return {!proto.fonoster.applications.v1beta2.AudioFilter}
|
|
1985
|
+
*/
|
|
1986
|
+
proto.fonoster.applications.v1beta2.AudioFilter.deserializeBinary = function(bytes) {
|
|
1987
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1988
|
+
var msg = new proto.fonoster.applications.v1beta2.AudioFilter;
|
|
1989
|
+
return proto.fonoster.applications.v1beta2.AudioFilter.deserializeBinaryFromReader(msg, reader);
|
|
1990
|
+
};
|
|
1991
|
+
|
|
1992
|
+
|
|
1993
|
+
/**
|
|
1994
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1995
|
+
* given reader into the given message object.
|
|
1996
|
+
* @param {!proto.fonoster.applications.v1beta2.AudioFilter} msg The message object to deserialize into.
|
|
1997
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1998
|
+
* @return {!proto.fonoster.applications.v1beta2.AudioFilter}
|
|
1999
|
+
*/
|
|
2000
|
+
proto.fonoster.applications.v1beta2.AudioFilter.deserializeBinaryFromReader = function(msg, reader) {
|
|
2001
|
+
while (reader.nextField()) {
|
|
2002
|
+
if (reader.isEndGroup()) {
|
|
2003
|
+
break;
|
|
2004
|
+
}
|
|
2005
|
+
var field = reader.getFieldNumber();
|
|
2006
|
+
switch (field) {
|
|
2007
|
+
case 1:
|
|
2008
|
+
var value = /** @type {string} */ (reader.readString());
|
|
2009
|
+
msg.setName(value);
|
|
2010
|
+
break;
|
|
2011
|
+
case 2:
|
|
2012
|
+
var value = new google_protobuf_struct_pb.Struct;
|
|
2013
|
+
reader.readMessage(value,google_protobuf_struct_pb.Struct.deserializeBinaryFromReader);
|
|
2014
|
+
msg.setOptions(value);
|
|
2015
|
+
break;
|
|
2016
|
+
default:
|
|
2017
|
+
reader.skipField();
|
|
2018
|
+
break;
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
return msg;
|
|
2022
|
+
};
|
|
2023
|
+
|
|
2024
|
+
|
|
2025
|
+
/**
|
|
2026
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
2027
|
+
* @return {!Uint8Array}
|
|
2028
|
+
*/
|
|
2029
|
+
proto.fonoster.applications.v1beta2.AudioFilter.prototype.serializeBinary = function() {
|
|
2030
|
+
var writer = new jspb.BinaryWriter();
|
|
2031
|
+
proto.fonoster.applications.v1beta2.AudioFilter.serializeBinaryToWriter(this, writer);
|
|
2032
|
+
return writer.getResultBuffer();
|
|
2033
|
+
};
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
/**
|
|
2037
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
2038
|
+
* format), writing to the given BinaryWriter.
|
|
2039
|
+
* @param {!proto.fonoster.applications.v1beta2.AudioFilter} message
|
|
2040
|
+
* @param {!jspb.BinaryWriter} writer
|
|
2041
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
2042
|
+
*/
|
|
2043
|
+
proto.fonoster.applications.v1beta2.AudioFilter.serializeBinaryToWriter = function(message, writer) {
|
|
2044
|
+
var f = undefined;
|
|
2045
|
+
f = message.getName();
|
|
2046
|
+
if (f.length > 0) {
|
|
2047
|
+
writer.writeString(
|
|
2048
|
+
1,
|
|
2049
|
+
f
|
|
2050
|
+
);
|
|
2051
|
+
}
|
|
2052
|
+
f = message.getOptions();
|
|
2053
|
+
if (f != null) {
|
|
2054
|
+
writer.writeMessage(
|
|
2055
|
+
2,
|
|
2056
|
+
f,
|
|
2057
|
+
google_protobuf_struct_pb.Struct.serializeBinaryToWriter
|
|
2058
|
+
);
|
|
2059
|
+
}
|
|
2060
|
+
};
|
|
2061
|
+
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* optional string name = 1;
|
|
2065
|
+
* @return {string}
|
|
2066
|
+
*/
|
|
2067
|
+
proto.fonoster.applications.v1beta2.AudioFilter.prototype.getName = function() {
|
|
2068
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
2069
|
+
};
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
/**
|
|
2073
|
+
* @param {string} value
|
|
2074
|
+
* @return {!proto.fonoster.applications.v1beta2.AudioFilter} returns this
|
|
2075
|
+
*/
|
|
2076
|
+
proto.fonoster.applications.v1beta2.AudioFilter.prototype.setName = function(value) {
|
|
2077
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
2078
|
+
};
|
|
2079
|
+
|
|
2080
|
+
|
|
2081
|
+
/**
|
|
2082
|
+
* optional google.protobuf.Struct options = 2;
|
|
2083
|
+
* @return {?proto.google.protobuf.Struct}
|
|
2084
|
+
*/
|
|
2085
|
+
proto.fonoster.applications.v1beta2.AudioFilter.prototype.getOptions = function() {
|
|
2086
|
+
return /** @type{?proto.google.protobuf.Struct} */ (
|
|
2087
|
+
jspb.Message.getWrapperField(this, google_protobuf_struct_pb.Struct, 2));
|
|
2088
|
+
};
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
/**
|
|
2092
|
+
* @param {?proto.google.protobuf.Struct|undefined} value
|
|
2093
|
+
* @return {!proto.fonoster.applications.v1beta2.AudioFilter} returns this
|
|
2094
|
+
*/
|
|
2095
|
+
proto.fonoster.applications.v1beta2.AudioFilter.prototype.setOptions = function(value) {
|
|
2096
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
2097
|
+
};
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
/**
|
|
2101
|
+
* Clears the message field making it undefined.
|
|
2102
|
+
* @return {!proto.fonoster.applications.v1beta2.AudioFilter} returns this
|
|
2103
|
+
*/
|
|
2104
|
+
proto.fonoster.applications.v1beta2.AudioFilter.prototype.clearOptions = function() {
|
|
2105
|
+
return this.setOptions(undefined);
|
|
2106
|
+
};
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
/**
|
|
2110
|
+
* Returns whether this field is set.
|
|
2111
|
+
* @return {boolean}
|
|
2112
|
+
*/
|
|
2113
|
+
proto.fonoster.applications.v1beta2.AudioFilter.prototype.hasOptions = function() {
|
|
2114
|
+
return jspb.Message.getField(this, 2) != null;
|
|
2115
|
+
};
|
|
2116
|
+
|
|
2117
|
+
|
|
2118
|
+
|
|
1916
2119
|
/**
|
|
1917
2120
|
* List of repeated fields within this message type.
|
|
1918
2121
|
* @private {!Array<number>}
|
|
1919
2122
|
* @const
|
|
1920
2123
|
*/
|
|
1921
|
-
proto.fonoster.applications.v1beta2.Application.repeatedFields_ = [17];
|
|
2124
|
+
proto.fonoster.applications.v1beta2.Application.repeatedFields_ = [17,20];
|
|
1922
2125
|
|
|
1923
2126
|
|
|
1924
2127
|
|
|
@@ -1970,7 +2173,9 @@ fallbackMessage: jspb.Message.getFieldWithDefault(msg, 16, ""),
|
|
|
1970
2173
|
listenersList: jspb.Message.toObjectList(msg.getListenersList(),
|
|
1971
2174
|
proto.fonoster.applications.v1beta2.Listener.toObject, includeInstance),
|
|
1972
2175
|
recording: jspb.Message.getFieldWithDefault(msg, 18, ""),
|
|
1973
|
-
amd: (f = msg.getAmd()) && proto.fonoster.applications.v1beta2.AmdSettings.toObject(includeInstance, f)
|
|
2176
|
+
amd: (f = msg.getAmd()) && proto.fonoster.applications.v1beta2.AmdSettings.toObject(includeInstance, f),
|
|
2177
|
+
filtersList: jspb.Message.toObjectList(msg.getFiltersList(),
|
|
2178
|
+
proto.fonoster.applications.v1beta2.AudioFilter.toObject, includeInstance)
|
|
1974
2179
|
};
|
|
1975
2180
|
|
|
1976
2181
|
if (includeInstance) {
|
|
@@ -2090,6 +2295,11 @@ proto.fonoster.applications.v1beta2.Application.deserializeBinaryFromReader = fu
|
|
|
2090
2295
|
reader.readMessage(value,proto.fonoster.applications.v1beta2.AmdSettings.deserializeBinaryFromReader);
|
|
2091
2296
|
msg.setAmd(value);
|
|
2092
2297
|
break;
|
|
2298
|
+
case 20:
|
|
2299
|
+
var value = new proto.fonoster.applications.v1beta2.AudioFilter;
|
|
2300
|
+
reader.readMessage(value,proto.fonoster.applications.v1beta2.AudioFilter.deserializeBinaryFromReader);
|
|
2301
|
+
msg.addFilters(value);
|
|
2302
|
+
break;
|
|
2093
2303
|
default:
|
|
2094
2304
|
reader.skipField();
|
|
2095
2305
|
break;
|
|
@@ -2259,6 +2469,14 @@ proto.fonoster.applications.v1beta2.Application.serializeBinaryToWriter = functi
|
|
|
2259
2469
|
proto.fonoster.applications.v1beta2.AmdSettings.serializeBinaryToWriter
|
|
2260
2470
|
);
|
|
2261
2471
|
}
|
|
2472
|
+
f = message.getFiltersList();
|
|
2473
|
+
if (f.length > 0) {
|
|
2474
|
+
writer.writeRepeatedMessage(
|
|
2475
|
+
20,
|
|
2476
|
+
f,
|
|
2477
|
+
proto.fonoster.applications.v1beta2.AudioFilter.serializeBinaryToWriter
|
|
2478
|
+
);
|
|
2479
|
+
}
|
|
2262
2480
|
};
|
|
2263
2481
|
|
|
2264
2482
|
|
|
@@ -2738,13 +2956,51 @@ proto.fonoster.applications.v1beta2.Application.prototype.hasAmd = function() {
|
|
|
2738
2956
|
};
|
|
2739
2957
|
|
|
2740
2958
|
|
|
2959
|
+
/**
|
|
2960
|
+
* repeated AudioFilter filters = 20;
|
|
2961
|
+
* @return {!Array<!proto.fonoster.applications.v1beta2.AudioFilter>}
|
|
2962
|
+
*/
|
|
2963
|
+
proto.fonoster.applications.v1beta2.Application.prototype.getFiltersList = function() {
|
|
2964
|
+
return /** @type{!Array<!proto.fonoster.applications.v1beta2.AudioFilter>} */ (
|
|
2965
|
+
jspb.Message.getRepeatedWrapperField(this, proto.fonoster.applications.v1beta2.AudioFilter, 20));
|
|
2966
|
+
};
|
|
2967
|
+
|
|
2968
|
+
|
|
2969
|
+
/**
|
|
2970
|
+
* @param {!Array<!proto.fonoster.applications.v1beta2.AudioFilter>} value
|
|
2971
|
+
* @return {!proto.fonoster.applications.v1beta2.Application} returns this
|
|
2972
|
+
*/
|
|
2973
|
+
proto.fonoster.applications.v1beta2.Application.prototype.setFiltersList = function(value) {
|
|
2974
|
+
return jspb.Message.setRepeatedWrapperField(this, 20, value);
|
|
2975
|
+
};
|
|
2976
|
+
|
|
2977
|
+
|
|
2978
|
+
/**
|
|
2979
|
+
* @param {!proto.fonoster.applications.v1beta2.AudioFilter=} opt_value
|
|
2980
|
+
* @param {number=} opt_index
|
|
2981
|
+
* @return {!proto.fonoster.applications.v1beta2.AudioFilter}
|
|
2982
|
+
*/
|
|
2983
|
+
proto.fonoster.applications.v1beta2.Application.prototype.addFilters = function(opt_value, opt_index) {
|
|
2984
|
+
return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.fonoster.applications.v1beta2.AudioFilter, opt_index);
|
|
2985
|
+
};
|
|
2986
|
+
|
|
2987
|
+
|
|
2988
|
+
/**
|
|
2989
|
+
* Clears the list making it empty but non-null.
|
|
2990
|
+
* @return {!proto.fonoster.applications.v1beta2.Application} returns this
|
|
2991
|
+
*/
|
|
2992
|
+
proto.fonoster.applications.v1beta2.Application.prototype.clearFiltersList = function() {
|
|
2993
|
+
return this.setFiltersList([]);
|
|
2994
|
+
};
|
|
2995
|
+
|
|
2996
|
+
|
|
2741
2997
|
|
|
2742
2998
|
/**
|
|
2743
2999
|
* List of repeated fields within this message type.
|
|
2744
3000
|
* @private {!Array<number>}
|
|
2745
3001
|
* @const
|
|
2746
3002
|
*/
|
|
2747
|
-
proto.fonoster.applications.v1beta2.CreateApplicationRequest.repeatedFields_ = [13];
|
|
3003
|
+
proto.fonoster.applications.v1beta2.CreateApplicationRequest.repeatedFields_ = [13,20];
|
|
2748
3004
|
|
|
2749
3005
|
|
|
2750
3006
|
|
|
@@ -2792,7 +3048,9 @@ fallbackMessage: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
|
2792
3048
|
listenersList: jspb.Message.toObjectList(msg.getListenersList(),
|
|
2793
3049
|
proto.fonoster.applications.v1beta2.Listener.toObject, includeInstance),
|
|
2794
3050
|
recording: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
2795
|
-
amd: (f = msg.getAmd()) && proto.fonoster.applications.v1beta2.AmdSettings.toObject(includeInstance, f)
|
|
3051
|
+
amd: (f = msg.getAmd()) && proto.fonoster.applications.v1beta2.AmdSettings.toObject(includeInstance, f),
|
|
3052
|
+
filtersList: jspb.Message.toObjectList(msg.getFiltersList(),
|
|
3053
|
+
proto.fonoster.applications.v1beta2.AudioFilter.toObject, includeInstance)
|
|
2796
3054
|
};
|
|
2797
3055
|
|
|
2798
3056
|
if (includeInstance) {
|
|
@@ -2896,6 +3154,11 @@ proto.fonoster.applications.v1beta2.CreateApplicationRequest.deserializeBinaryFr
|
|
|
2896
3154
|
reader.readMessage(value,proto.fonoster.applications.v1beta2.AmdSettings.deserializeBinaryFromReader);
|
|
2897
3155
|
msg.setAmd(value);
|
|
2898
3156
|
break;
|
|
3157
|
+
case 20:
|
|
3158
|
+
var value = new proto.fonoster.applications.v1beta2.AudioFilter;
|
|
3159
|
+
reader.readMessage(value,proto.fonoster.applications.v1beta2.AudioFilter.deserializeBinaryFromReader);
|
|
3160
|
+
msg.addFilters(value);
|
|
3161
|
+
break;
|
|
2899
3162
|
default:
|
|
2900
3163
|
reader.skipField();
|
|
2901
3164
|
break;
|
|
@@ -3037,6 +3300,14 @@ proto.fonoster.applications.v1beta2.CreateApplicationRequest.serializeBinaryToWr
|
|
|
3037
3300
|
proto.fonoster.applications.v1beta2.AmdSettings.serializeBinaryToWriter
|
|
3038
3301
|
);
|
|
3039
3302
|
}
|
|
3303
|
+
f = message.getFiltersList();
|
|
3304
|
+
if (f.length > 0) {
|
|
3305
|
+
writer.writeRepeatedMessage(
|
|
3306
|
+
20,
|
|
3307
|
+
f,
|
|
3308
|
+
proto.fonoster.applications.v1beta2.AudioFilter.serializeBinaryToWriter
|
|
3309
|
+
);
|
|
3310
|
+
}
|
|
3040
3311
|
};
|
|
3041
3312
|
|
|
3042
3313
|
|
|
@@ -3444,6 +3715,44 @@ proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.hasAmd =
|
|
|
3444
3715
|
};
|
|
3445
3716
|
|
|
3446
3717
|
|
|
3718
|
+
/**
|
|
3719
|
+
* repeated AudioFilter filters = 20;
|
|
3720
|
+
* @return {!Array<!proto.fonoster.applications.v1beta2.AudioFilter>}
|
|
3721
|
+
*/
|
|
3722
|
+
proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.getFiltersList = function() {
|
|
3723
|
+
return /** @type{!Array<!proto.fonoster.applications.v1beta2.AudioFilter>} */ (
|
|
3724
|
+
jspb.Message.getRepeatedWrapperField(this, proto.fonoster.applications.v1beta2.AudioFilter, 20));
|
|
3725
|
+
};
|
|
3726
|
+
|
|
3727
|
+
|
|
3728
|
+
/**
|
|
3729
|
+
* @param {!Array<!proto.fonoster.applications.v1beta2.AudioFilter>} value
|
|
3730
|
+
* @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} returns this
|
|
3731
|
+
*/
|
|
3732
|
+
proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.setFiltersList = function(value) {
|
|
3733
|
+
return jspb.Message.setRepeatedWrapperField(this, 20, value);
|
|
3734
|
+
};
|
|
3735
|
+
|
|
3736
|
+
|
|
3737
|
+
/**
|
|
3738
|
+
* @param {!proto.fonoster.applications.v1beta2.AudioFilter=} opt_value
|
|
3739
|
+
* @param {number=} opt_index
|
|
3740
|
+
* @return {!proto.fonoster.applications.v1beta2.AudioFilter}
|
|
3741
|
+
*/
|
|
3742
|
+
proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.addFilters = function(opt_value, opt_index) {
|
|
3743
|
+
return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.fonoster.applications.v1beta2.AudioFilter, opt_index);
|
|
3744
|
+
};
|
|
3745
|
+
|
|
3746
|
+
|
|
3747
|
+
/**
|
|
3748
|
+
* Clears the list making it empty but non-null.
|
|
3749
|
+
* @return {!proto.fonoster.applications.v1beta2.CreateApplicationRequest} returns this
|
|
3750
|
+
*/
|
|
3751
|
+
proto.fonoster.applications.v1beta2.CreateApplicationRequest.prototype.clearFiltersList = function() {
|
|
3752
|
+
return this.setFiltersList([]);
|
|
3753
|
+
};
|
|
3754
|
+
|
|
3755
|
+
|
|
3447
3756
|
|
|
3448
3757
|
|
|
3449
3758
|
|
|
@@ -4120,7 +4429,7 @@ proto.fonoster.applications.v1beta2.ListApplicationsResponse.prototype.setNextPa
|
|
|
4120
4429
|
* @private {!Array<number>}
|
|
4121
4430
|
* @const
|
|
4122
4431
|
*/
|
|
4123
|
-
proto.fonoster.applications.v1beta2.UpdateApplicationRequest.repeatedFields_ = [14];
|
|
4432
|
+
proto.fonoster.applications.v1beta2.UpdateApplicationRequest.repeatedFields_ = [14,20];
|
|
4124
4433
|
|
|
4125
4434
|
|
|
4126
4435
|
|
|
@@ -4169,7 +4478,9 @@ fallbackMessage: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
|
4169
4478
|
listenersList: jspb.Message.toObjectList(msg.getListenersList(),
|
|
4170
4479
|
proto.fonoster.applications.v1beta2.Listener.toObject, includeInstance),
|
|
4171
4480
|
recording: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
4172
|
-
amd: (f = msg.getAmd()) && proto.fonoster.applications.v1beta2.AmdSettings.toObject(includeInstance, f)
|
|
4481
|
+
amd: (f = msg.getAmd()) && proto.fonoster.applications.v1beta2.AmdSettings.toObject(includeInstance, f),
|
|
4482
|
+
filtersList: jspb.Message.toObjectList(msg.getFiltersList(),
|
|
4483
|
+
proto.fonoster.applications.v1beta2.AudioFilter.toObject, includeInstance)
|
|
4173
4484
|
};
|
|
4174
4485
|
|
|
4175
4486
|
if (includeInstance) {
|
|
@@ -4277,6 +4588,11 @@ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.deserializeBinaryFr
|
|
|
4277
4588
|
reader.readMessage(value,proto.fonoster.applications.v1beta2.AmdSettings.deserializeBinaryFromReader);
|
|
4278
4589
|
msg.setAmd(value);
|
|
4279
4590
|
break;
|
|
4591
|
+
case 20:
|
|
4592
|
+
var value = new proto.fonoster.applications.v1beta2.AudioFilter;
|
|
4593
|
+
reader.readMessage(value,proto.fonoster.applications.v1beta2.AudioFilter.deserializeBinaryFromReader);
|
|
4594
|
+
msg.addFilters(value);
|
|
4595
|
+
break;
|
|
4280
4596
|
default:
|
|
4281
4597
|
reader.skipField();
|
|
4282
4598
|
break;
|
|
@@ -4425,6 +4741,14 @@ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.serializeBinaryToWr
|
|
|
4425
4741
|
proto.fonoster.applications.v1beta2.AmdSettings.serializeBinaryToWriter
|
|
4426
4742
|
);
|
|
4427
4743
|
}
|
|
4744
|
+
f = message.getFiltersList();
|
|
4745
|
+
if (f.length > 0) {
|
|
4746
|
+
writer.writeRepeatedMessage(
|
|
4747
|
+
20,
|
|
4748
|
+
f,
|
|
4749
|
+
proto.fonoster.applications.v1beta2.AudioFilter.serializeBinaryToWriter
|
|
4750
|
+
);
|
|
4751
|
+
}
|
|
4428
4752
|
};
|
|
4429
4753
|
|
|
4430
4754
|
|
|
@@ -4850,6 +5174,44 @@ proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.hasAmd =
|
|
|
4850
5174
|
};
|
|
4851
5175
|
|
|
4852
5176
|
|
|
5177
|
+
/**
|
|
5178
|
+
* repeated AudioFilter filters = 20;
|
|
5179
|
+
* @return {!Array<!proto.fonoster.applications.v1beta2.AudioFilter>}
|
|
5180
|
+
*/
|
|
5181
|
+
proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.getFiltersList = function() {
|
|
5182
|
+
return /** @type{!Array<!proto.fonoster.applications.v1beta2.AudioFilter>} */ (
|
|
5183
|
+
jspb.Message.getRepeatedWrapperField(this, proto.fonoster.applications.v1beta2.AudioFilter, 20));
|
|
5184
|
+
};
|
|
5185
|
+
|
|
5186
|
+
|
|
5187
|
+
/**
|
|
5188
|
+
* @param {!Array<!proto.fonoster.applications.v1beta2.AudioFilter>} value
|
|
5189
|
+
* @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} returns this
|
|
5190
|
+
*/
|
|
5191
|
+
proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.setFiltersList = function(value) {
|
|
5192
|
+
return jspb.Message.setRepeatedWrapperField(this, 20, value);
|
|
5193
|
+
};
|
|
5194
|
+
|
|
5195
|
+
|
|
5196
|
+
/**
|
|
5197
|
+
* @param {!proto.fonoster.applications.v1beta2.AudioFilter=} opt_value
|
|
5198
|
+
* @param {number=} opt_index
|
|
5199
|
+
* @return {!proto.fonoster.applications.v1beta2.AudioFilter}
|
|
5200
|
+
*/
|
|
5201
|
+
proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.addFilters = function(opt_value, opt_index) {
|
|
5202
|
+
return jspb.Message.addToRepeatedWrapperField(this, 20, opt_value, proto.fonoster.applications.v1beta2.AudioFilter, opt_index);
|
|
5203
|
+
};
|
|
5204
|
+
|
|
5205
|
+
|
|
5206
|
+
/**
|
|
5207
|
+
* Clears the list making it empty but non-null.
|
|
5208
|
+
* @return {!proto.fonoster.applications.v1beta2.UpdateApplicationRequest} returns this
|
|
5209
|
+
*/
|
|
5210
|
+
proto.fonoster.applications.v1beta2.UpdateApplicationRequest.prototype.clearFiltersList = function() {
|
|
5211
|
+
return this.setFiltersList([]);
|
|
5212
|
+
};
|
|
5213
|
+
|
|
5214
|
+
|
|
4853
5215
|
|
|
4854
5216
|
|
|
4855
5217
|
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import * as jspb from 'google-protobuf'
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class GetBillingRequest extends jspb.Message {
|
|
6
|
+
getOwnerRef(): string;
|
|
7
|
+
setOwnerRef(value: string): GetBillingRequest;
|
|
8
|
+
|
|
9
|
+
serializeBinary(): Uint8Array;
|
|
10
|
+
toObject(includeInstance?: boolean): GetBillingRequest.AsObject;
|
|
11
|
+
static toObject(includeInstance: boolean, msg: GetBillingRequest): GetBillingRequest.AsObject;
|
|
12
|
+
static serializeBinaryToWriter(message: GetBillingRequest, writer: jspb.BinaryWriter): void;
|
|
13
|
+
static deserializeBinary(bytes: Uint8Array): GetBillingRequest;
|
|
14
|
+
static deserializeBinaryFromReader(message: GetBillingRequest, reader: jspb.BinaryReader): GetBillingRequest;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export namespace GetBillingRequest {
|
|
18
|
+
export type AsObject = {
|
|
19
|
+
ownerRef: string,
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class CreditSource extends jspb.Message {
|
|
24
|
+
getKind(): string;
|
|
25
|
+
setKind(value: string): CreditSource;
|
|
26
|
+
|
|
27
|
+
getCredits(): number;
|
|
28
|
+
setCredits(value: number): CreditSource;
|
|
29
|
+
|
|
30
|
+
getExpiresAt(): string;
|
|
31
|
+
setExpiresAt(value: string): CreditSource;
|
|
32
|
+
|
|
33
|
+
serializeBinary(): Uint8Array;
|
|
34
|
+
toObject(includeInstance?: boolean): CreditSource.AsObject;
|
|
35
|
+
static toObject(includeInstance: boolean, msg: CreditSource): CreditSource.AsObject;
|
|
36
|
+
static serializeBinaryToWriter(message: CreditSource, writer: jspb.BinaryWriter): void;
|
|
37
|
+
static deserializeBinary(bytes: Uint8Array): CreditSource;
|
|
38
|
+
static deserializeBinaryFromReader(message: CreditSource, reader: jspb.BinaryReader): CreditSource;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export namespace CreditSource {
|
|
42
|
+
export type AsObject = {
|
|
43
|
+
kind: string,
|
|
44
|
+
credits: number,
|
|
45
|
+
expiresAt: string,
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class BillingSummary extends jspb.Message {
|
|
50
|
+
getPlan(): string;
|
|
51
|
+
setPlan(value: string): BillingSummary;
|
|
52
|
+
|
|
53
|
+
getStatus(): string;
|
|
54
|
+
setStatus(value: string): BillingSummary;
|
|
55
|
+
|
|
56
|
+
getBalance(): number;
|
|
57
|
+
setBalance(value: number): BillingSummary;
|
|
58
|
+
|
|
59
|
+
getOverdraft(): number;
|
|
60
|
+
setOverdraft(value: number): BillingSummary;
|
|
61
|
+
|
|
62
|
+
getSourcesList(): Array<CreditSource>;
|
|
63
|
+
setSourcesList(value: Array<CreditSource>): BillingSummary;
|
|
64
|
+
clearSourcesList(): BillingSummary;
|
|
65
|
+
addSources(value?: CreditSource, index?: number): CreditSource;
|
|
66
|
+
|
|
67
|
+
getPeriodEnd(): string;
|
|
68
|
+
setPeriodEnd(value: string): BillingSummary;
|
|
69
|
+
|
|
70
|
+
getAutoRecharge(): boolean;
|
|
71
|
+
setAutoRecharge(value: boolean): BillingSummary;
|
|
72
|
+
|
|
73
|
+
getRechargeThreshold(): number;
|
|
74
|
+
setRechargeThreshold(value: number): BillingSummary;
|
|
75
|
+
|
|
76
|
+
getRechargeAmount(): number;
|
|
77
|
+
setRechargeAmount(value: number): BillingSummary;
|
|
78
|
+
|
|
79
|
+
serializeBinary(): Uint8Array;
|
|
80
|
+
toObject(includeInstance?: boolean): BillingSummary.AsObject;
|
|
81
|
+
static toObject(includeInstance: boolean, msg: BillingSummary): BillingSummary.AsObject;
|
|
82
|
+
static serializeBinaryToWriter(message: BillingSummary, writer: jspb.BinaryWriter): void;
|
|
83
|
+
static deserializeBinary(bytes: Uint8Array): BillingSummary;
|
|
84
|
+
static deserializeBinaryFromReader(message: BillingSummary, reader: jspb.BinaryReader): BillingSummary;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export namespace BillingSummary {
|
|
88
|
+
export type AsObject = {
|
|
89
|
+
plan: string,
|
|
90
|
+
status: string,
|
|
91
|
+
balance: number,
|
|
92
|
+
overdraft: number,
|
|
93
|
+
sourcesList: Array<CreditSource.AsObject>,
|
|
94
|
+
periodEnd: string,
|
|
95
|
+
autoRecharge: boolean,
|
|
96
|
+
rechargeThreshold: number,
|
|
97
|
+
rechargeAmount: number,
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export class UpdateAutoRechargeRequest extends jspb.Message {
|
|
102
|
+
getOwnerRef(): string;
|
|
103
|
+
setOwnerRef(value: string): UpdateAutoRechargeRequest;
|
|
104
|
+
|
|
105
|
+
getEnabled(): boolean;
|
|
106
|
+
setEnabled(value: boolean): UpdateAutoRechargeRequest;
|
|
107
|
+
|
|
108
|
+
getThreshold(): number;
|
|
109
|
+
setThreshold(value: number): UpdateAutoRechargeRequest;
|
|
110
|
+
|
|
111
|
+
getAmount(): number;
|
|
112
|
+
setAmount(value: number): UpdateAutoRechargeRequest;
|
|
113
|
+
|
|
114
|
+
serializeBinary(): Uint8Array;
|
|
115
|
+
toObject(includeInstance?: boolean): UpdateAutoRechargeRequest.AsObject;
|
|
116
|
+
static toObject(includeInstance: boolean, msg: UpdateAutoRechargeRequest): UpdateAutoRechargeRequest.AsObject;
|
|
117
|
+
static serializeBinaryToWriter(message: UpdateAutoRechargeRequest, writer: jspb.BinaryWriter): void;
|
|
118
|
+
static deserializeBinary(bytes: Uint8Array): UpdateAutoRechargeRequest;
|
|
119
|
+
static deserializeBinaryFromReader(message: UpdateAutoRechargeRequest, reader: jspb.BinaryReader): UpdateAutoRechargeRequest;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export namespace UpdateAutoRechargeRequest {
|
|
123
|
+
export type AsObject = {
|
|
124
|
+
ownerRef: string,
|
|
125
|
+
enabled: boolean,
|
|
126
|
+
threshold: number,
|
|
127
|
+
amount: number,
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export class CreateTopUpRequest extends jspb.Message {
|
|
132
|
+
getOwnerRef(): string;
|
|
133
|
+
setOwnerRef(value: string): CreateTopUpRequest;
|
|
134
|
+
|
|
135
|
+
getCredits(): number;
|
|
136
|
+
setCredits(value: number): CreateTopUpRequest;
|
|
137
|
+
|
|
138
|
+
serializeBinary(): Uint8Array;
|
|
139
|
+
toObject(includeInstance?: boolean): CreateTopUpRequest.AsObject;
|
|
140
|
+
static toObject(includeInstance: boolean, msg: CreateTopUpRequest): CreateTopUpRequest.AsObject;
|
|
141
|
+
static serializeBinaryToWriter(message: CreateTopUpRequest, writer: jspb.BinaryWriter): void;
|
|
142
|
+
static deserializeBinary(bytes: Uint8Array): CreateTopUpRequest;
|
|
143
|
+
static deserializeBinaryFromReader(message: CreateTopUpRequest, reader: jspb.BinaryReader): CreateTopUpRequest;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export namespace CreateTopUpRequest {
|
|
147
|
+
export type AsObject = {
|
|
148
|
+
ownerRef: string,
|
|
149
|
+
credits: number,
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export class SubscribeRequest extends jspb.Message {
|
|
154
|
+
getOwnerRef(): string;
|
|
155
|
+
setOwnerRef(value: string): SubscribeRequest;
|
|
156
|
+
|
|
157
|
+
serializeBinary(): Uint8Array;
|
|
158
|
+
toObject(includeInstance?: boolean): SubscribeRequest.AsObject;
|
|
159
|
+
static toObject(includeInstance: boolean, msg: SubscribeRequest): SubscribeRequest.AsObject;
|
|
160
|
+
static serializeBinaryToWriter(message: SubscribeRequest, writer: jspb.BinaryWriter): void;
|
|
161
|
+
static deserializeBinary(bytes: Uint8Array): SubscribeRequest;
|
|
162
|
+
static deserializeBinaryFromReader(message: SubscribeRequest, reader: jspb.BinaryReader): SubscribeRequest;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export namespace SubscribeRequest {
|
|
166
|
+
export type AsObject = {
|
|
167
|
+
ownerRef: string,
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export class CreatePortalSessionRequest extends jspb.Message {
|
|
172
|
+
getOwnerRef(): string;
|
|
173
|
+
setOwnerRef(value: string): CreatePortalSessionRequest;
|
|
174
|
+
|
|
175
|
+
getReturnUrl(): string;
|
|
176
|
+
setReturnUrl(value: string): CreatePortalSessionRequest;
|
|
177
|
+
|
|
178
|
+
serializeBinary(): Uint8Array;
|
|
179
|
+
toObject(includeInstance?: boolean): CreatePortalSessionRequest.AsObject;
|
|
180
|
+
static toObject(includeInstance: boolean, msg: CreatePortalSessionRequest): CreatePortalSessionRequest.AsObject;
|
|
181
|
+
static serializeBinaryToWriter(message: CreatePortalSessionRequest, writer: jspb.BinaryWriter): void;
|
|
182
|
+
static deserializeBinary(bytes: Uint8Array): CreatePortalSessionRequest;
|
|
183
|
+
static deserializeBinaryFromReader(message: CreatePortalSessionRequest, reader: jspb.BinaryReader): CreatePortalSessionRequest;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export namespace CreatePortalSessionRequest {
|
|
187
|
+
export type AsObject = {
|
|
188
|
+
ownerRef: string,
|
|
189
|
+
returnUrl: string,
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export class CreatePortalSessionResponse extends jspb.Message {
|
|
194
|
+
getUrl(): string;
|
|
195
|
+
setUrl(value: string): CreatePortalSessionResponse;
|
|
196
|
+
|
|
197
|
+
serializeBinary(): Uint8Array;
|
|
198
|
+
toObject(includeInstance?: boolean): CreatePortalSessionResponse.AsObject;
|
|
199
|
+
static toObject(includeInstance: boolean, msg: CreatePortalSessionResponse): CreatePortalSessionResponse.AsObject;
|
|
200
|
+
static serializeBinaryToWriter(message: CreatePortalSessionResponse, writer: jspb.BinaryWriter): void;
|
|
201
|
+
static deserializeBinary(bytes: Uint8Array): CreatePortalSessionResponse;
|
|
202
|
+
static deserializeBinaryFromReader(message: CreatePortalSessionResponse, reader: jspb.BinaryReader): CreatePortalSessionResponse;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export namespace CreatePortalSessionResponse {
|
|
206
|
+
export type AsObject = {
|
|
207
|
+
url: string,
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|