@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
@@ -0,0 +1,258 @@
1
+ /**
2
+ * @fileoverview gRPC-Web generated client stub for fonoster.billing.v1beta2
3
+ * @enhanceable
4
+ * @public
5
+ */
6
+
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.5.0
10
+ // protoc v5.29.3
11
+ // source: billing.proto
12
+
13
+
14
+ /* eslint-disable */
15
+ // @ts-nocheck
16
+
17
+
18
+ import * as grpcWeb from 'grpc-web';
19
+
20
+ import * as billing_pb from './billing_pb'; // proto import: "billing.proto"
21
+
22
+
23
+ export class BillingClient {
24
+ client_: grpcWeb.AbstractClientBase;
25
+ hostname_: string;
26
+ credentials_: null | { [index: string]: string; };
27
+ options_: null | { [index: string]: any; };
28
+
29
+ constructor (hostname: string,
30
+ credentials?: null | { [index: string]: string; },
31
+ options?: null | { [index: string]: any; }) {
32
+ if (!options) options = {};
33
+ if (!credentials) credentials = {};
34
+ options['format'] = 'text';
35
+
36
+ this.client_ = new grpcWeb.GrpcWebClientBase(options);
37
+ this.hostname_ = hostname.replace(/\/+$/, '');
38
+ this.credentials_ = credentials;
39
+ this.options_ = options;
40
+ }
41
+
42
+ methodDescriptorGetBilling = new grpcWeb.MethodDescriptor(
43
+ '/fonoster.billing.v1beta2.Billing/GetBilling',
44
+ grpcWeb.MethodType.UNARY,
45
+ billing_pb.GetBillingRequest,
46
+ billing_pb.BillingSummary,
47
+ (request: billing_pb.GetBillingRequest) => {
48
+ return request.serializeBinary();
49
+ },
50
+ billing_pb.BillingSummary.deserializeBinary
51
+ );
52
+
53
+ getBilling(
54
+ request: billing_pb.GetBillingRequest,
55
+ metadata?: grpcWeb.Metadata | null): Promise<billing_pb.BillingSummary>;
56
+
57
+ getBilling(
58
+ request: billing_pb.GetBillingRequest,
59
+ metadata: grpcWeb.Metadata | null,
60
+ callback: (err: grpcWeb.RpcError,
61
+ response: billing_pb.BillingSummary) => void): grpcWeb.ClientReadableStream<billing_pb.BillingSummary>;
62
+
63
+ getBilling(
64
+ request: billing_pb.GetBillingRequest,
65
+ metadata?: grpcWeb.Metadata | null,
66
+ callback?: (err: grpcWeb.RpcError,
67
+ response: billing_pb.BillingSummary) => void) {
68
+ if (callback !== undefined) {
69
+ return this.client_.rpcCall(
70
+ this.hostname_ +
71
+ '/fonoster.billing.v1beta2.Billing/GetBilling',
72
+ request,
73
+ metadata || {},
74
+ this.methodDescriptorGetBilling,
75
+ callback);
76
+ }
77
+ return this.client_.unaryCall(
78
+ this.hostname_ +
79
+ '/fonoster.billing.v1beta2.Billing/GetBilling',
80
+ request,
81
+ metadata || {},
82
+ this.methodDescriptorGetBilling);
83
+ }
84
+
85
+ methodDescriptorUpdateAutoRecharge = new grpcWeb.MethodDescriptor(
86
+ '/fonoster.billing.v1beta2.Billing/UpdateAutoRecharge',
87
+ grpcWeb.MethodType.UNARY,
88
+ billing_pb.UpdateAutoRechargeRequest,
89
+ billing_pb.BillingSummary,
90
+ (request: billing_pb.UpdateAutoRechargeRequest) => {
91
+ return request.serializeBinary();
92
+ },
93
+ billing_pb.BillingSummary.deserializeBinary
94
+ );
95
+
96
+ updateAutoRecharge(
97
+ request: billing_pb.UpdateAutoRechargeRequest,
98
+ metadata?: grpcWeb.Metadata | null): Promise<billing_pb.BillingSummary>;
99
+
100
+ updateAutoRecharge(
101
+ request: billing_pb.UpdateAutoRechargeRequest,
102
+ metadata: grpcWeb.Metadata | null,
103
+ callback: (err: grpcWeb.RpcError,
104
+ response: billing_pb.BillingSummary) => void): grpcWeb.ClientReadableStream<billing_pb.BillingSummary>;
105
+
106
+ updateAutoRecharge(
107
+ request: billing_pb.UpdateAutoRechargeRequest,
108
+ metadata?: grpcWeb.Metadata | null,
109
+ callback?: (err: grpcWeb.RpcError,
110
+ response: billing_pb.BillingSummary) => void) {
111
+ if (callback !== undefined) {
112
+ return this.client_.rpcCall(
113
+ this.hostname_ +
114
+ '/fonoster.billing.v1beta2.Billing/UpdateAutoRecharge',
115
+ request,
116
+ metadata || {},
117
+ this.methodDescriptorUpdateAutoRecharge,
118
+ callback);
119
+ }
120
+ return this.client_.unaryCall(
121
+ this.hostname_ +
122
+ '/fonoster.billing.v1beta2.Billing/UpdateAutoRecharge',
123
+ request,
124
+ metadata || {},
125
+ this.methodDescriptorUpdateAutoRecharge);
126
+ }
127
+
128
+ methodDescriptorCreateTopUp = new grpcWeb.MethodDescriptor(
129
+ '/fonoster.billing.v1beta2.Billing/CreateTopUp',
130
+ grpcWeb.MethodType.UNARY,
131
+ billing_pb.CreateTopUpRequest,
132
+ billing_pb.BillingSummary,
133
+ (request: billing_pb.CreateTopUpRequest) => {
134
+ return request.serializeBinary();
135
+ },
136
+ billing_pb.BillingSummary.deserializeBinary
137
+ );
138
+
139
+ createTopUp(
140
+ request: billing_pb.CreateTopUpRequest,
141
+ metadata?: grpcWeb.Metadata | null): Promise<billing_pb.BillingSummary>;
142
+
143
+ createTopUp(
144
+ request: billing_pb.CreateTopUpRequest,
145
+ metadata: grpcWeb.Metadata | null,
146
+ callback: (err: grpcWeb.RpcError,
147
+ response: billing_pb.BillingSummary) => void): grpcWeb.ClientReadableStream<billing_pb.BillingSummary>;
148
+
149
+ createTopUp(
150
+ request: billing_pb.CreateTopUpRequest,
151
+ metadata?: grpcWeb.Metadata | null,
152
+ callback?: (err: grpcWeb.RpcError,
153
+ response: billing_pb.BillingSummary) => void) {
154
+ if (callback !== undefined) {
155
+ return this.client_.rpcCall(
156
+ this.hostname_ +
157
+ '/fonoster.billing.v1beta2.Billing/CreateTopUp',
158
+ request,
159
+ metadata || {},
160
+ this.methodDescriptorCreateTopUp,
161
+ callback);
162
+ }
163
+ return this.client_.unaryCall(
164
+ this.hostname_ +
165
+ '/fonoster.billing.v1beta2.Billing/CreateTopUp',
166
+ request,
167
+ metadata || {},
168
+ this.methodDescriptorCreateTopUp);
169
+ }
170
+
171
+ methodDescriptorSubscribe = new grpcWeb.MethodDescriptor(
172
+ '/fonoster.billing.v1beta2.Billing/Subscribe',
173
+ grpcWeb.MethodType.UNARY,
174
+ billing_pb.SubscribeRequest,
175
+ billing_pb.BillingSummary,
176
+ (request: billing_pb.SubscribeRequest) => {
177
+ return request.serializeBinary();
178
+ },
179
+ billing_pb.BillingSummary.deserializeBinary
180
+ );
181
+
182
+ subscribe(
183
+ request: billing_pb.SubscribeRequest,
184
+ metadata?: grpcWeb.Metadata | null): Promise<billing_pb.BillingSummary>;
185
+
186
+ subscribe(
187
+ request: billing_pb.SubscribeRequest,
188
+ metadata: grpcWeb.Metadata | null,
189
+ callback: (err: grpcWeb.RpcError,
190
+ response: billing_pb.BillingSummary) => void): grpcWeb.ClientReadableStream<billing_pb.BillingSummary>;
191
+
192
+ subscribe(
193
+ request: billing_pb.SubscribeRequest,
194
+ metadata?: grpcWeb.Metadata | null,
195
+ callback?: (err: grpcWeb.RpcError,
196
+ response: billing_pb.BillingSummary) => void) {
197
+ if (callback !== undefined) {
198
+ return this.client_.rpcCall(
199
+ this.hostname_ +
200
+ '/fonoster.billing.v1beta2.Billing/Subscribe',
201
+ request,
202
+ metadata || {},
203
+ this.methodDescriptorSubscribe,
204
+ callback);
205
+ }
206
+ return this.client_.unaryCall(
207
+ this.hostname_ +
208
+ '/fonoster.billing.v1beta2.Billing/Subscribe',
209
+ request,
210
+ metadata || {},
211
+ this.methodDescriptorSubscribe);
212
+ }
213
+
214
+ methodDescriptorCreatePortalSession = new grpcWeb.MethodDescriptor(
215
+ '/fonoster.billing.v1beta2.Billing/CreatePortalSession',
216
+ grpcWeb.MethodType.UNARY,
217
+ billing_pb.CreatePortalSessionRequest,
218
+ billing_pb.CreatePortalSessionResponse,
219
+ (request: billing_pb.CreatePortalSessionRequest) => {
220
+ return request.serializeBinary();
221
+ },
222
+ billing_pb.CreatePortalSessionResponse.deserializeBinary
223
+ );
224
+
225
+ createPortalSession(
226
+ request: billing_pb.CreatePortalSessionRequest,
227
+ metadata?: grpcWeb.Metadata | null): Promise<billing_pb.CreatePortalSessionResponse>;
228
+
229
+ createPortalSession(
230
+ request: billing_pb.CreatePortalSessionRequest,
231
+ metadata: grpcWeb.Metadata | null,
232
+ callback: (err: grpcWeb.RpcError,
233
+ response: billing_pb.CreatePortalSessionResponse) => void): grpcWeb.ClientReadableStream<billing_pb.CreatePortalSessionResponse>;
234
+
235
+ createPortalSession(
236
+ request: billing_pb.CreatePortalSessionRequest,
237
+ metadata?: grpcWeb.Metadata | null,
238
+ callback?: (err: grpcWeb.RpcError,
239
+ response: billing_pb.CreatePortalSessionResponse) => void) {
240
+ if (callback !== undefined) {
241
+ return this.client_.rpcCall(
242
+ this.hostname_ +
243
+ '/fonoster.billing.v1beta2.Billing/CreatePortalSession',
244
+ request,
245
+ metadata || {},
246
+ this.methodDescriptorCreatePortalSession,
247
+ callback);
248
+ }
249
+ return this.client_.unaryCall(
250
+ this.hostname_ +
251
+ '/fonoster.billing.v1beta2.Billing/CreatePortalSession',
252
+ request,
253
+ metadata || {},
254
+ this.methodDescriptorCreatePortalSession);
255
+ }
256
+
257
+ }
258
+
@@ -0,0 +1,86 @@
1
+ /**
2
+ * @fileoverview gRPC-Web generated client stub for fonoster.usage.v1beta2
3
+ * @enhanceable
4
+ * @public
5
+ */
6
+
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.5.0
10
+ // protoc v5.29.3
11
+ // source: usage.proto
12
+
13
+
14
+ /* eslint-disable */
15
+ // @ts-nocheck
16
+
17
+
18
+ import * as grpcWeb from 'grpc-web';
19
+
20
+ import * as usage_pb from './usage_pb'; // proto import: "usage.proto"
21
+
22
+
23
+ export class UsageClient {
24
+ client_: grpcWeb.AbstractClientBase;
25
+ hostname_: string;
26
+ credentials_: null | { [index: string]: string; };
27
+ options_: null | { [index: string]: any; };
28
+
29
+ constructor (hostname: string,
30
+ credentials?: null | { [index: string]: string; },
31
+ options?: null | { [index: string]: any; }) {
32
+ if (!options) options = {};
33
+ if (!credentials) credentials = {};
34
+ options['format'] = 'text';
35
+
36
+ this.client_ = new grpcWeb.GrpcWebClientBase(options);
37
+ this.hostname_ = hostname.replace(/\/+$/, '');
38
+ this.credentials_ = credentials;
39
+ this.options_ = options;
40
+ }
41
+
42
+ methodDescriptorGetUsage = new grpcWeb.MethodDescriptor(
43
+ '/fonoster.usage.v1beta2.Usage/GetUsage',
44
+ grpcWeb.MethodType.UNARY,
45
+ usage_pb.GetUsageRequest,
46
+ usage_pb.GetUsageResponse,
47
+ (request: usage_pb.GetUsageRequest) => {
48
+ return request.serializeBinary();
49
+ },
50
+ usage_pb.GetUsageResponse.deserializeBinary
51
+ );
52
+
53
+ getUsage(
54
+ request: usage_pb.GetUsageRequest,
55
+ metadata?: grpcWeb.Metadata | null): Promise<usage_pb.GetUsageResponse>;
56
+
57
+ getUsage(
58
+ request: usage_pb.GetUsageRequest,
59
+ metadata: grpcWeb.Metadata | null,
60
+ callback: (err: grpcWeb.RpcError,
61
+ response: usage_pb.GetUsageResponse) => void): grpcWeb.ClientReadableStream<usage_pb.GetUsageResponse>;
62
+
63
+ getUsage(
64
+ request: usage_pb.GetUsageRequest,
65
+ metadata?: grpcWeb.Metadata | null,
66
+ callback?: (err: grpcWeb.RpcError,
67
+ response: usage_pb.GetUsageResponse) => void) {
68
+ if (callback !== undefined) {
69
+ return this.client_.rpcCall(
70
+ this.hostname_ +
71
+ '/fonoster.usage.v1beta2.Usage/GetUsage',
72
+ request,
73
+ metadata || {},
74
+ this.methodDescriptorGetUsage,
75
+ callback);
76
+ }
77
+ return this.client_.unaryCall(
78
+ this.hostname_ +
79
+ '/fonoster.usage.v1beta2.Usage/GetUsage',
80
+ request,
81
+ metadata || {},
82
+ this.methodDescriptorGetUsage);
83
+ }
84
+
85
+ }
86
+
@@ -182,6 +182,30 @@ export namespace ProductContainer {
182
182
  }
183
183
  }
184
184
 
185
+ export class AudioFilter extends jspb.Message {
186
+ getName(): string;
187
+ setName(value: string): AudioFilter;
188
+
189
+ getOptions(): google_protobuf_struct_pb.Struct | undefined;
190
+ setOptions(value?: google_protobuf_struct_pb.Struct): AudioFilter;
191
+ hasOptions(): boolean;
192
+ clearOptions(): AudioFilter;
193
+
194
+ serializeBinary(): Uint8Array;
195
+ toObject(includeInstance?: boolean): AudioFilter.AsObject;
196
+ static toObject(includeInstance: boolean, msg: AudioFilter): AudioFilter.AsObject;
197
+ static serializeBinaryToWriter(message: AudioFilter, writer: jspb.BinaryWriter): void;
198
+ static deserializeBinary(bytes: Uint8Array): AudioFilter;
199
+ static deserializeBinaryFromReader(message: AudioFilter, reader: jspb.BinaryReader): AudioFilter;
200
+ }
201
+
202
+ export namespace AudioFilter {
203
+ export type AsObject = {
204
+ name: string,
205
+ options?: google_protobuf_struct_pb.Struct.AsObject,
206
+ }
207
+ }
208
+
185
209
  export class Application extends jspb.Message {
186
210
  getRef(): string;
187
211
  setRef(value: string): Application;
@@ -254,6 +278,11 @@ export class Application extends jspb.Message {
254
278
  hasAmd(): boolean;
255
279
  clearAmd(): Application;
256
280
 
281
+ getFiltersList(): Array<AudioFilter>;
282
+ setFiltersList(value: Array<AudioFilter>): Application;
283
+ clearFiltersList(): Application;
284
+ addFilters(value?: AudioFilter, index?: number): AudioFilter;
285
+
257
286
  serializeBinary(): Uint8Array;
258
287
  toObject(includeInstance?: boolean): Application.AsObject;
259
288
  static toObject(includeInstance: boolean, msg: Application): Application.AsObject;
@@ -283,6 +312,7 @@ export namespace Application {
283
312
  listenersList: Array<Listener.AsObject>,
284
313
  recording: string,
285
314
  amd?: AmdSettings.AsObject,
315
+ filtersList: Array<AudioFilter.AsObject>,
286
316
  }
287
317
  }
288
318
 
@@ -346,6 +376,11 @@ export class CreateApplicationRequest extends jspb.Message {
346
376
  hasAmd(): boolean;
347
377
  clearAmd(): CreateApplicationRequest;
348
378
 
379
+ getFiltersList(): Array<AudioFilter>;
380
+ setFiltersList(value: Array<AudioFilter>): CreateApplicationRequest;
381
+ clearFiltersList(): CreateApplicationRequest;
382
+ addFilters(value?: AudioFilter, index?: number): AudioFilter;
383
+
349
384
  serializeBinary(): Uint8Array;
350
385
  toObject(includeInstance?: boolean): CreateApplicationRequest.AsObject;
351
386
  static toObject(includeInstance: boolean, msg: CreateApplicationRequest): CreateApplicationRequest.AsObject;
@@ -371,6 +406,7 @@ export namespace CreateApplicationRequest {
371
406
  listenersList: Array<Listener.AsObject>,
372
407
  recording: string,
373
408
  amd?: AmdSettings.AsObject,
409
+ filtersList: Array<AudioFilter.AsObject>,
374
410
  }
375
411
  }
376
412
 
@@ -527,6 +563,11 @@ export class UpdateApplicationRequest extends jspb.Message {
527
563
  hasAmd(): boolean;
528
564
  clearAmd(): UpdateApplicationRequest;
529
565
 
566
+ getFiltersList(): Array<AudioFilter>;
567
+ setFiltersList(value: Array<AudioFilter>): UpdateApplicationRequest;
568
+ clearFiltersList(): UpdateApplicationRequest;
569
+ addFilters(value?: AudioFilter, index?: number): AudioFilter;
570
+
530
571
  serializeBinary(): Uint8Array;
531
572
  toObject(includeInstance?: boolean): UpdateApplicationRequest.AsObject;
532
573
  static toObject(includeInstance: boolean, msg: UpdateApplicationRequest): UpdateApplicationRequest.AsObject;
@@ -553,6 +594,7 @@ export namespace UpdateApplicationRequest {
553
594
  listenersList: Array<Listener.AsObject>,
554
595
  recording: string,
555
596
  amd?: AmdSettings.AsObject,
597
+ filtersList: Array<AudioFilter.AsObject>,
556
598
  }
557
599
  }
558
600