Skip to content

Commit a1fa2bb

Browse files
committed
New spec, new code
1 parent 65f0436 commit a1fa2bb

1,923 files changed

Lines changed: 20759 additions & 28688 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/core/src/definitions/ADGError.ts

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,11 @@
11
/**
22
* Description of an error occurred during request processing. This data type can be used only in readonly mode, no writing is allowed
3-
*/
3+
*/
44
interface ADGError {
5-
/**
5+
/**
66
* Code that characterizes this error. Code uniquely identifies the source of the error.
77
*/
8-
errorCode?:
9-
| "ErrorCode{code='ADG-000', httpStatus=503, description='Service temporary unavailable.'}"
10-
| "ErrorCode{code='ADG-010', httpStatus=503, description='Federation data temporary unavailable.'}"
11-
| "ErrorCode{code='ADG-001', httpStatus=500, description='Service internal error.'}"
12-
| "ErrorCode{code='ADG-100', httpStatus=403, description='Insufficient permissions.'}"
13-
| "ErrorCode{code='ADG-101', httpStatus=403, description='Unauthorized access.'}"
14-
| "ErrorCode{code='ADG-102', httpStatus=405, description='Method not allowed.'}"
15-
| "ErrorCode{code='ADG-111', httpStatus=400, description='Need Content-Type header.'}"
16-
| "ErrorCode{code='ADG-112', httpStatus=400, description='Request body is invalid.'}"
17-
| "ErrorCode{code='ADG-121', httpStatus=400, description='Parameter [${paramName}] is invalid. ${additionalInfo:-}'}"
18-
| "ErrorCode{code='ADG-115', httpStatus=415, description='Unsupported Media Type.'}"
19-
| "ErrorCode{code='ADG-105', httpStatus=404, description='Current account is not linked to any federation.'}"
20-
| "ErrorCode{code='ADG-107', httpStatus=404, description='Account not found.'}"
21-
| "ErrorCode{code='ADG-122', httpStatus=404, description='Contact not found.'}"
22-
| "ErrorCode{code='ADG-200', httpStatus=404, description='Invalid URI'}";
8+
errorCode?: ('ErrorCode{code=\'ADG-000\', httpStatus=503, description=\'Service temporary unavailable.\'}' | 'ErrorCode{code=\'ADG-010\', httpStatus=503, description=\'Federation data temporary unavailable.\'}' | 'ErrorCode{code=\'ADG-001\', httpStatus=500, description=\'Service internal error.\'}' | 'ErrorCode{code=\'ADG-100\', httpStatus=403, description=\'Insufficient permissions.\'}' | 'ErrorCode{code=\'ADG-101\', httpStatus=403, description=\'Unauthorized access.\'}' | 'ErrorCode{code=\'ADG-102\', httpStatus=405, description=\'Method not allowed.\'}' | 'ErrorCode{code=\'ADG-111\', httpStatus=400, description=\'Need Content-Type header.\'}' | 'ErrorCode{code=\'ADG-112\', httpStatus=400, description=\'Request body is invalid.\'}' | 'ErrorCode{code=\'ADG-121\', httpStatus=400, description=\'Parameter [${paramName}] is invalid. ${additionalInfo:-}\'}' | 'ErrorCode{code=\'ADG-115\', httpStatus=415, description=\'Unsupported Media Type.\'}' | 'ErrorCode{code=\'ADG-105\', httpStatus=404, description=\'Current account is not linked to any federation.\'}' | 'ErrorCode{code=\'ADG-107\', httpStatus=404, description=\'Account not found.\'}' | 'ErrorCode{code=\'ADG-122\', httpStatus=404, description=\'Contact not found.\'}' | 'ErrorCode{code=\'ADG-200\', httpStatus=404, description=\'Invalid URI\'}');
239

2410
/**
2511
* Message that describes the error. This message can be used in UI.

packages/core/src/definitions/ADGErrorResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import ADGError from "./ADGError.js";
22

33
/**
44
* Format of response in case that any error occurred during request processing
5-
*/
5+
*/
66
interface ADGErrorResponse {
7-
/**
7+
/**
88
* Collection of all gathered errors
99
*/
1010
errors?: ADGError[];

packages/core/src/definitions/AIInsights.ts

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,40 @@ import NextStepsInsightUnit from "./NextStepsInsightUnit.js";
55
import BulletedSummaryInsightUnit from "./BulletedSummaryInsightUnit.js";
66
import AIScoreInsightUnit from "./AIScoreInsightUnit.js";
77
import CallNotesInsightUnit from "./CallNotesInsightUnit.js";
8+
import SentimentInsightUnit from "./SentimentInsightUnit.js";
89

910
interface AIInsights {
10-
/** */
11+
/**
12+
*/
1113
Transcript?: TranscriptInsightUnit[];
1214

13-
/** */
15+
/**
16+
*/
1417
Summary?: SummaryInsightUnit[];
1518

16-
/** */
19+
/**
20+
*/
1721
Highlights?: HighlightsInsightUnit[];
1822

19-
/** */
23+
/**
24+
*/
2025
NextSteps?: NextStepsInsightUnit[];
2126

22-
/** */
27+
/**
28+
*/
2329
BulletedSummary?: BulletedSummaryInsightUnit[];
2430

25-
/** */
31+
/**
32+
*/
2633
AIScore?: AIScoreInsightUnit[];
2734

28-
/** */
35+
/**
36+
*/
2937
CallNotes?: CallNotesInsightUnit[];
38+
39+
/**
40+
*/
41+
Sentiment?: SentimentInsightUnit[];
3042
}
3143

3244
export default AIInsights;

packages/core/src/definitions/AIScoreInsightUnit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
interface AIScoreInsightUnit {
2-
/**
2+
/**
33
* Value of the score
44
* Required
55
* Example: 7

packages/core/src/definitions/APNSInfo.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import APSInfo from "./APSInfo.js";
22

33
/**
44
* APNS (Apple Push Notification Service) information
5-
*/
5+
*/
66
interface APNSInfo {
7-
/** */
7+
/**
8+
*/
89
aps?: APSInfo;
910
}
1011

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/**
22
* APS (Apple Push Service) information/ priority data
3-
*/
3+
*/
44
interface APSInfo {
5-
/**
5+
/**
66
* If the value is '1' then notification is turned on even if the application is in background
77
* Format: int32
88
*/
9-
"content-available"?: number;
9+
'content-available'?: number;
1010
}
1111

1212
export default APSInfo;

packages/core/src/definitions/ASGErrorResponse.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import ErrorEntry from "./ErrorEntry.js";
22

33
/**
44
* Error response
5-
*/
5+
*/
66
interface ASGErrorResponse {
7-
/**
7+
/**
88
* Error code
99
* Required
1010
* Example: CMN-101
@@ -18,7 +18,8 @@ interface ASGErrorResponse {
1818
*/
1919
message?: string;
2020

21-
/** */
21+
/**
22+
*/
2223
errors?: ErrorEntry[];
2324
}
2425

packages/core/src/definitions/AccountBusinessAddressResource.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import ContactBusinessAddressInfo from "./ContactBusinessAddressInfo.js";
22

33
interface AccountBusinessAddressResource {
4-
/**
4+
/**
55
* Format: uri
66
*/
77
uri?: string;
88

9-
/** */
9+
/**
10+
*/
1011
businessAddress?: ContactBusinessAddressInfo;
1112

1213
/**

packages/core/src/definitions/AccountCountryInfoRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
interface AccountCountryInfoRequest {
2-
/**
2+
/**
33
* Internal identifier of a country
44
* Required
55
*/

packages/core/src/definitions/AccountDeviceUpdate.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,25 @@ import DeviceUpdateExtensionInfo from "./DeviceUpdateExtensionInfo.js";
44
import DeviceUpdatePhoneLinesInfo from "./DeviceUpdatePhoneLinesInfo.js";
55

66
interface AccountDeviceUpdate {
7-
/** */
7+
/**
8+
*/
89
emergencyServiceAddress?: EmergencyServiceAddressResourceRequest;
910

10-
/** */
11+
/**
12+
*/
1113
emergency?: DeviceEmergencyInfo;
1214

13-
/** */
15+
/**
16+
*/
1417
extension?: DeviceUpdateExtensionInfo;
1518

16-
/** */
19+
/**
20+
*/
1721
phoneLines?: DeviceUpdatePhoneLinesInfo;
1822

1923
/**
2024
* Supported only for devices assigned to Limited extensions.
21-
* If true, enables users to log in to this phone as a common phone
25+
* If true, enables users to log in to this phone as a common phone
2226
*/
2327
useAsCommonPhone?: boolean;
2428

0 commit comments

Comments
 (0)