@fonoster/sdk 0.26.0 → 0.30.0

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 (66) hide show
  1. package/README.md +6 -5
  2. package/dist/node/Applications.d.ts +21 -85
  3. package/dist/node/Applications.js +55 -73
  4. package/dist/node/CallRecords.d.ts +92 -0
  5. package/dist/node/CallRecords.js +124 -0
  6. package/dist/node/Domains.js +4 -2
  7. package/dist/node/Providers.d.ts +49 -0
  8. package/dist/node/Providers.js +107 -0
  9. package/dist/node/Regions.d.ts +91 -0
  10. package/dist/node/Regions.js +124 -0
  11. package/dist/node/Users.d.ts +4 -2
  12. package/dist/node/Users.js +4 -2
  13. package/dist/node/Webhooks.d.ts +56 -0
  14. package/dist/node/Webhooks.js +139 -0
  15. package/dist/node/Workspaces.d.ts +22 -3
  16. package/dist/node/Workspaces.js +29 -2
  17. package/dist/node/client/AbstractClient.d.ts +83 -3
  18. package/dist/node/client/AbstractClient.js +97 -1
  19. package/dist/node/client/Client.d.ts +7 -0
  20. package/dist/node/client/Client.js +21 -0
  21. package/dist/node/client/jsonToObject.js +17 -0
  22. package/dist/node/client/objectToJson.js +35 -0
  23. package/dist/node/client/types/ApplicationsClient.d.ts +2 -1
  24. package/dist/node/client/types/CapabilitiesClient.d.ts +24 -0
  25. package/dist/node/client/types/CapabilitiesClient.js +2 -0
  26. package/dist/node/client/types/FonosterClient.d.ts +8 -0
  27. package/dist/node/client/types/IdentityClient.d.ts +3 -1
  28. package/dist/node/client/types/ProvidersClient.d.ts +28 -0
  29. package/dist/node/client/types/ProvidersClient.js +2 -0
  30. package/dist/node/client/types/WebhooksClient.d.ts +31 -0
  31. package/dist/node/client/types/WebhooksClient.js +2 -0
  32. package/dist/node/client/types/index.d.ts +3 -0
  33. package/dist/node/client/types/index.js +3 -0
  34. package/dist/node/generated/node/applications_grpc_pb.js +34 -0
  35. package/dist/node/generated/node/applications_pb.js +2657 -206
  36. package/dist/node/generated/node/capabilities_grpc_pb.js +66 -0
  37. package/dist/node/generated/node/capabilities_pb.js +2085 -0
  38. package/dist/node/generated/node/identity_grpc_pb.js +34 -0
  39. package/dist/node/generated/node/identity_pb.js +609 -5
  40. package/dist/node/generated/node/providers_grpc_pb.js +200 -0
  41. package/dist/node/generated/node/providers_pb.js +3034 -0
  42. package/dist/node/generated/node/webhooks_grpc_pb.js +302 -0
  43. package/dist/node/generated/node/webhooks_pb.js +3314 -0
  44. package/dist/node/generated/web/ApplicationsServiceClientPb.ts +43 -0
  45. package/dist/node/generated/web/CapabilitiesServiceClientPb.ts +87 -0
  46. package/dist/node/generated/web/IdentityServiceClientPb.ts +43 -0
  47. package/dist/node/generated/web/ProvidersServiceClientPb.ts +258 -0
  48. package/dist/node/generated/web/WebhooksServiceClientPb.ts +387 -0
  49. package/dist/node/generated/web/applications_pb.d.ts +301 -1
  50. package/dist/node/generated/web/applications_pb.js +2657 -206
  51. package/dist/node/generated/web/capabilities_pb.d.ts +249 -0
  52. package/dist/node/generated/web/capabilities_pb.js +2085 -0
  53. package/dist/node/generated/web/identity_pb.d.ts +76 -0
  54. package/dist/node/generated/web/identity_pb.js +609 -5
  55. package/dist/node/generated/web/providers_pb.d.ts +364 -0
  56. package/dist/node/generated/web/providers_pb.js +3034 -0
  57. package/dist/node/generated/web/webhooks_pb.d.ts +398 -0
  58. package/dist/node/generated/web/webhooks_pb.js +3314 -0
  59. package/dist/node/node.d.ts +5 -0
  60. package/dist/node/node.js +4 -0
  61. package/dist/node/tsconfig.tsbuildinfo +1 -1
  62. package/dist/node/utils.d.ts +1 -13
  63. package/dist/node/utils.js +1 -38
  64. package/dist/web/fonoster.min.js +1 -1
  65. package/dist/web/index.esm.js +1 -1
  66. package/package.json +5 -5
@@ -27,6 +27,9 @@ export class Workspace extends jspb.Message {
27
27
  hasOwner(): boolean;
28
28
  clearOwner(): Workspace;
29
29
 
30
+ getRegion(): string;
31
+ setRegion(value: string): Workspace;
32
+
30
33
  serializeBinary(): Uint8Array;
31
34
  toObject(includeInstance?: boolean): Workspace.AsObject;
32
35
  static toObject(includeInstance: boolean, msg: Workspace): Workspace.AsObject;
@@ -44,6 +47,7 @@ export namespace Workspace {
44
47
  createdAt: number,
45
48
  updatedAt: number,
46
49
  owner?: Workspace.Owner.AsObject,
50
+ region: string,
47
51
  }
48
52
 
49
53
  export class Owner extends jspb.Message {
@@ -78,6 +82,9 @@ export class CreateWorkspaceRequest extends jspb.Message {
78
82
  getName(): string;
79
83
  setName(value: string): CreateWorkspaceRequest;
80
84
 
85
+ getRegion(): string;
86
+ setRegion(value: string): CreateWorkspaceRequest;
87
+
81
88
  serializeBinary(): Uint8Array;
82
89
  toObject(includeInstance?: boolean): CreateWorkspaceRequest.AsObject;
83
90
  static toObject(includeInstance: boolean, msg: CreateWorkspaceRequest): CreateWorkspaceRequest.AsObject;
@@ -89,6 +96,7 @@ export class CreateWorkspaceRequest extends jspb.Message {
89
96
  export namespace CreateWorkspaceRequest {
90
97
  export type AsObject = {
91
98
  name: string,
99
+ region: string,
92
100
  }
93
101
  }
94
102
 
@@ -96,6 +104,15 @@ export class CreateWorkspaceResponse extends jspb.Message {
96
104
  getRef(): string;
97
105
  setRef(value: string): CreateWorkspaceResponse;
98
106
 
107
+ getRegion(): string;
108
+ setRegion(value: string): CreateWorkspaceResponse;
109
+
110
+ getEnrollmentToken(): string;
111
+ setEnrollmentToken(value: string): CreateWorkspaceResponse;
112
+
113
+ getExpiresAt(): string;
114
+ setExpiresAt(value: string): CreateWorkspaceResponse;
115
+
99
116
  serializeBinary(): Uint8Array;
100
117
  toObject(includeInstance?: boolean): CreateWorkspaceResponse.AsObject;
101
118
  static toObject(includeInstance: boolean, msg: CreateWorkspaceResponse): CreateWorkspaceResponse.AsObject;
@@ -107,6 +124,9 @@ export class CreateWorkspaceResponse extends jspb.Message {
107
124
  export namespace CreateWorkspaceResponse {
108
125
  export type AsObject = {
109
126
  ref: string,
127
+ region: string,
128
+ enrollmentToken: string,
129
+ expiresAt: string,
110
130
  }
111
131
  }
112
132
 
@@ -217,6 +237,9 @@ export class UpdateWorkspaceRequest extends jspb.Message {
217
237
  getName(): string;
218
238
  setName(value: string): UpdateWorkspaceRequest;
219
239
 
240
+ getRegion(): string;
241
+ setRegion(value: string): UpdateWorkspaceRequest;
242
+
220
243
  serializeBinary(): Uint8Array;
221
244
  toObject(includeInstance?: boolean): UpdateWorkspaceRequest.AsObject;
222
245
  static toObject(includeInstance: boolean, msg: UpdateWorkspaceRequest): UpdateWorkspaceRequest.AsObject;
@@ -229,6 +252,7 @@ export namespace UpdateWorkspaceRequest {
229
252
  export type AsObject = {
230
253
  ref: string,
231
254
  name: string,
255
+ region: string,
232
256
  }
233
257
  }
234
258
 
@@ -604,6 +628,9 @@ export class UpdateUserRequest extends jspb.Message {
604
628
  getPhone(): string;
605
629
  setPhone(value: string): UpdateUserRequest;
606
630
 
631
+ getCurrentPassword(): string;
632
+ setCurrentPassword(value: string): UpdateUserRequest;
633
+
607
634
  serializeBinary(): Uint8Array;
608
635
  toObject(includeInstance?: boolean): UpdateUserRequest.AsObject;
609
636
  static toObject(includeInstance: boolean, msg: UpdateUserRequest): UpdateUserRequest.AsObject;
@@ -619,6 +646,7 @@ export namespace UpdateUserRequest {
619
646
  name: string,
620
647
  avatar: string,
621
648
  phone: string,
649
+ currentPassword: string,
622
650
  }
623
651
  }
624
652
 
@@ -1238,6 +1266,54 @@ export namespace GetPublicKeyResponse {
1238
1266
  }
1239
1267
  }
1240
1268
 
1269
+ export class ExchangeVerificationCodeRequest extends jspb.Message {
1270
+ getEmail(): string;
1271
+ setEmail(value: string): ExchangeVerificationCodeRequest;
1272
+
1273
+ getCode(): string;
1274
+ setCode(value: string): ExchangeVerificationCodeRequest;
1275
+
1276
+ serializeBinary(): Uint8Array;
1277
+ toObject(includeInstance?: boolean): ExchangeVerificationCodeRequest.AsObject;
1278
+ static toObject(includeInstance: boolean, msg: ExchangeVerificationCodeRequest): ExchangeVerificationCodeRequest.AsObject;
1279
+ static serializeBinaryToWriter(message: ExchangeVerificationCodeRequest, writer: jspb.BinaryWriter): void;
1280
+ static deserializeBinary(bytes: Uint8Array): ExchangeVerificationCodeRequest;
1281
+ static deserializeBinaryFromReader(message: ExchangeVerificationCodeRequest, reader: jspb.BinaryReader): ExchangeVerificationCodeRequest;
1282
+ }
1283
+
1284
+ export namespace ExchangeVerificationCodeRequest {
1285
+ export type AsObject = {
1286
+ email: string,
1287
+ code: string,
1288
+ }
1289
+ }
1290
+
1291
+ export class ExchangeVerificationCodeResponse extends jspb.Message {
1292
+ getIdToken(): string;
1293
+ setIdToken(value: string): ExchangeVerificationCodeResponse;
1294
+
1295
+ getAccessToken(): string;
1296
+ setAccessToken(value: string): ExchangeVerificationCodeResponse;
1297
+
1298
+ getRefreshToken(): string;
1299
+ setRefreshToken(value: string): ExchangeVerificationCodeResponse;
1300
+
1301
+ serializeBinary(): Uint8Array;
1302
+ toObject(includeInstance?: boolean): ExchangeVerificationCodeResponse.AsObject;
1303
+ static toObject(includeInstance: boolean, msg: ExchangeVerificationCodeResponse): ExchangeVerificationCodeResponse.AsObject;
1304
+ static serializeBinaryToWriter(message: ExchangeVerificationCodeResponse, writer: jspb.BinaryWriter): void;
1305
+ static deserializeBinary(bytes: Uint8Array): ExchangeVerificationCodeResponse;
1306
+ static deserializeBinaryFromReader(message: ExchangeVerificationCodeResponse, reader: jspb.BinaryReader): ExchangeVerificationCodeResponse;
1307
+ }
1308
+
1309
+ export namespace ExchangeVerificationCodeResponse {
1310
+ export type AsObject = {
1311
+ idToken: string,
1312
+ accessToken: string,
1313
+ refreshToken: string,
1314
+ }
1315
+ }
1316
+
1241
1317
  export enum ContactType {
1242
1318
  EMAIL = 0,
1243
1319
  PHONE = 1,