@fonoster/common 0.6.1 → 0.6.2-alpha.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.
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/protos/identity.proto +1 -0
- package/dist/protos/trunks.proto +2 -2
- package/package.json +2 -2
- package/dist/types/applications.d.ts +0 -57
- package/dist/types/applications.js +0 -7
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.js +0 -35
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -39,6 +39,5 @@ __exportStar(require("./constants"), exports);
|
|
|
39
39
|
__exportStar(require("./grpcStatusMap"), exports);
|
|
40
40
|
__exportStar(require("./voice"), exports);
|
|
41
41
|
__exportStar(require("./tts"), exports);
|
|
42
|
-
__exportStar(require("./types/"), exports);
|
|
43
42
|
__exportStar(require("./types"), exports);
|
|
44
43
|
__exportStar(require("./GrpcError"), exports);
|
|
@@ -35,6 +35,7 @@ service Identity {
|
|
|
35
35
|
|
|
36
36
|
// User specific actions
|
|
37
37
|
rpc CreateUser (CreateUserRequest) returns (CreateUserResponse) {}
|
|
38
|
+
// TODO: Should get the User instead of GetUserResponse (renaming)
|
|
38
39
|
rpc GetUser (GetUserRequest) returns (GetUserResponse) {}
|
|
39
40
|
rpc UpdateUser (UpdateUserRequest) returns (UpdateUserResponse) {}
|
|
40
41
|
rpc DeleteUser (DeleteUserRequest) returns (DeleteUserResponse) {}
|
package/dist/protos/trunks.proto
CHANGED
|
@@ -34,7 +34,7 @@ service Trunks {
|
|
|
34
34
|
// Delete a Trunk by reference
|
|
35
35
|
rpc DeleteTrunk (DeleteTrunkRequest) returns (DeleteTrunkResponse) {}
|
|
36
36
|
// List all Trunks
|
|
37
|
-
rpc ListTrunks (
|
|
37
|
+
rpc ListTrunks (ListTrunksRequest) returns (ListTrunksResponse) {}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
// The message for the Trunk URIs
|
|
@@ -148,7 +148,7 @@ message DeleteTrunkResponse {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
// The message for the Trunk.ListTrunk request
|
|
151
|
-
message
|
|
151
|
+
message ListTrunksRequest {
|
|
152
152
|
// The maximum number of items in the list
|
|
153
153
|
int32 page_size = 1;
|
|
154
154
|
// The next_page_token value returned from the previous request, if any
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/common",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2-alpha.0",
|
|
4
4
|
"description": "Common library for Fonoster projects",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/nodemailer": "^6.4.14"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "16ee05408eb3680afbf5ad2d313e889e89e3ef6d"
|
|
46
46
|
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { BaseApiObject } from "../types";
|
|
2
|
-
declare enum ApplicationType {
|
|
3
|
-
PROGRAMMABLE_VOICE = "PROGRAMMABLE_VOICE"
|
|
4
|
-
}
|
|
5
|
-
type Application = {
|
|
6
|
-
ref: string;
|
|
7
|
-
name: string;
|
|
8
|
-
type: ApplicationType;
|
|
9
|
-
appEndpoint: string;
|
|
10
|
-
textToSpeech: {
|
|
11
|
-
productRef: string;
|
|
12
|
-
config: Record<string, unknown>;
|
|
13
|
-
};
|
|
14
|
-
speechToText: {
|
|
15
|
-
productRef: string;
|
|
16
|
-
config: Record<string, unknown>;
|
|
17
|
-
};
|
|
18
|
-
intelligence: {
|
|
19
|
-
productRef: string;
|
|
20
|
-
config: Record<string, unknown>;
|
|
21
|
-
};
|
|
22
|
-
createdAt: Date;
|
|
23
|
-
updatedAt: Date;
|
|
24
|
-
};
|
|
25
|
-
type CreateApplicationRequest = {
|
|
26
|
-
name: string;
|
|
27
|
-
type: ApplicationType;
|
|
28
|
-
appEndpoint?: string;
|
|
29
|
-
textToSpeech?: {
|
|
30
|
-
productRef: string;
|
|
31
|
-
config: Record<string, unknown>;
|
|
32
|
-
};
|
|
33
|
-
speechToText?: {
|
|
34
|
-
productRef: string;
|
|
35
|
-
config: Record<string, unknown>;
|
|
36
|
-
};
|
|
37
|
-
intelligence?: {
|
|
38
|
-
productRef: string;
|
|
39
|
-
credentials: Record<string, unknown>;
|
|
40
|
-
config: Record<string, unknown>;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
type CreateApplicationResponse = BaseApiObject;
|
|
44
|
-
type UpdateApplicationRequest = BaseApiObject & Partial<CreateApplicationRequest>;
|
|
45
|
-
type GetApplicationRequest = BaseApiObject;
|
|
46
|
-
type UpdateApplicationResponse = BaseApiObject;
|
|
47
|
-
type DeleteApplicationRequest = BaseApiObject;
|
|
48
|
-
type DeleteApplicationResponse = BaseApiObject;
|
|
49
|
-
type ListApplicationsRequest = {
|
|
50
|
-
pageSize: number;
|
|
51
|
-
pageToken: string;
|
|
52
|
-
};
|
|
53
|
-
type ListApplicationsResponse = {
|
|
54
|
-
nextPageToken?: string;
|
|
55
|
-
items: Application[];
|
|
56
|
-
};
|
|
57
|
-
export { Application, CreateApplicationRequest, CreateApplicationResponse, UpdateApplicationRequest, UpdateApplicationResponse, DeleteApplicationRequest, DeleteApplicationResponse, ListApplicationsRequest, ListApplicationsResponse, GetApplicationRequest, ApplicationType };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApplicationType = void 0;
|
|
4
|
-
var ApplicationType;
|
|
5
|
-
(function (ApplicationType) {
|
|
6
|
-
ApplicationType["PROGRAMMABLE_VOICE"] = "PROGRAMMABLE_VOICE";
|
|
7
|
-
})(ApplicationType || (exports.ApplicationType = ApplicationType = {}));
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./applications";
|
package/dist/types/index.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
/*
|
|
18
|
-
* Copyright (C) 2024 by Fonoster Inc (https://fonoster.com)
|
|
19
|
-
* http://github.com/fonoster/fonoster
|
|
20
|
-
*
|
|
21
|
-
* This file is part of Fonoster
|
|
22
|
-
*
|
|
23
|
-
* Licensed under the MIT License (the "License");
|
|
24
|
-
* you may not use this file except in compliance with
|
|
25
|
-
* the License. You may obtain a copy of the License at
|
|
26
|
-
*
|
|
27
|
-
* https://opensource.org/licenses/MIT
|
|
28
|
-
*
|
|
29
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
30
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
31
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
32
|
-
* See the License for the specific language governing permissions and
|
|
33
|
-
* limitations under the License.
|
|
34
|
-
*/
|
|
35
|
-
__exportStar(require("./applications"), exports);
|