Skip to content

Commit c987f17

Browse files
committed
New spec, new code
1 parent 9df887d commit c987f17

383 files changed

Lines changed: 1444 additions & 928 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.

code-generator/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
"lower-case-first": "^3.0.0",
1313
"openapi-types": "^12.1.3",
1414
"ramda": "^0.30.1",
15-
"ringcentral-open-api-parser": "^0.15.3"
15+
"ringcentral-open-api-parser": "^0.15.5"
1616
},
1717
"devDependencies": {
1818
"@types/js-yaml": "^4.0.9",
19-
"@types/node": "^22.13.1",
19+
"@types/node": "^22.13.10",
2020
"@types/ramda": "^0.30.2",
2121
"dotenv-override-true": "^6.2.2",
2222
"ts-node": "^10.9.2",
23-
"typescript": "^5.7.3",
24-
"yarn-upgrade-all": "^0.7.4"
23+
"typescript": "^5.8.2",
24+
"yarn-upgrade-all": "^0.7.5"
2525
},
2626
"yarn-upgrade-all": {
2727
"ignore": [

code-generator/yarn.lock

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
resolved "https://registry.yarnpkg.com/@types/js-yaml/-/js-yaml-4.0.9.tgz#cd82382c4f902fed9691a2ed79ec68c5898af4c2"
5353
integrity sha512-k4MGaQl5TGo/iipqb2UDG2UwjXziSWkh0uysQelTlJpX1qGlpUZYm8PnO4DxG1qBomtJUdYJ6qR6xdIah10JLg==
5454

55-
"@types/node@^22.13.1":
56-
version "22.13.1"
57-
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.13.1.tgz#a2a3fefbdeb7ba6b89f40371842162fac0934f33"
58-
integrity sha512-jK8uzQlrvXqEU91UxiK5J7pKHyzgnI1Qnl0QDHIgVGuolJhRb9EEl28Cj9b3rGR8B2lhFCtvIm5os8lFnO/1Ew==
55+
"@types/node@^22.13.10":
56+
version "22.13.10"
57+
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.13.10.tgz#df9ea358c5ed991266becc3109dc2dc9125d77e4"
58+
integrity sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==
5959
dependencies:
6060
undici-types "~6.20.0"
6161

@@ -121,7 +121,7 @@ change-case@4.1.2:
121121
snake-case "^3.0.4"
122122
tslib "^2.0.3"
123123

124-
color-loggers@^0.3.1:
124+
color-loggers@^0.3.2:
125125
version "0.3.2"
126126
resolved "https://registry.yarnpkg.com/color-loggers/-/color-loggers-0.3.2.tgz#04b12224f4ef3f78c1bdfb238f2cee50f72d7e51"
127127
integrity sha512-asfXyY1/9N+Cxt30jb0PFy5tccybuMnWVc9J8EJuYoJVlcsUshn+pt2QuyUB3BWKMXVvEH8jgLrCFs11Am8QZA==
@@ -237,10 +237,10 @@ ramda@^0.30.1:
237237
resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.30.1.tgz#7108ac95673062b060025052cd5143ae8fc605bf"
238238
integrity sha512-tEF5I22zJnuclswcZMc8bDIrwRHRzf+NqVEmqg50ShAZMP7MWeR/RGDthfM/p+BlqvF2fXAzpn8i+SJcYD3alw==
239239

240-
ringcentral-open-api-parser@^0.15.3:
241-
version "0.15.3"
242-
resolved "https://registry.yarnpkg.com/ringcentral-open-api-parser/-/ringcentral-open-api-parser-0.15.3.tgz#13e9fe2eadaa7c110ca1c0d6dfe5d070e0bb26d0"
243-
integrity sha512-3jnsXcqRJdZP/s2nuXowYJhpHpufGnB/Md1L5LGJTig6xk+ZX1V3utBXrzzRBzdRpmC8orqKC+VVvYe5z88kgw==
240+
ringcentral-open-api-parser@^0.15.5:
241+
version "0.15.5"
242+
resolved "https://registry.yarnpkg.com/ringcentral-open-api-parser/-/ringcentral-open-api-parser-0.15.5.tgz#e4b116eeec45268490c9b41663a490d4e0805b46"
243+
integrity sha512-uRD+V9FZX0ZuMylO+0Y1aelbPtoZzePnsR3heiGhLqiql5zG5J7vkkkIIzROkGAyzlIREF+b5kVuAWcNsNQ5bA==
244244
dependencies:
245245
js-yaml "^4.1.0"
246246
lodash "^4.17.21"
@@ -299,10 +299,10 @@ types-ramda@^0.30.1:
299299
dependencies:
300300
ts-toolbelt "^9.6.0"
301301

302-
typescript@^5.7.3:
303-
version "5.7.3"
304-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.3.tgz#919b44a7dbb8583a9b856d162be24a54bf80073e"
305-
integrity sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw==
302+
typescript@^5.8.2:
303+
version "5.8.2"
304+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.8.2.tgz#8170b3702f74b79db2e5a96207c15e65807999e4"
305+
integrity sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==
306306

307307
undici-types@~6.20.0:
308308
version "6.20.0"
@@ -328,12 +328,12 @@ v8-compile-cache-lib@^3.0.1:
328328
resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf"
329329
integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==
330330

331-
yarn-upgrade-all@^0.7.4:
332-
version "0.7.4"
333-
resolved "https://registry.yarnpkg.com/yarn-upgrade-all/-/yarn-upgrade-all-0.7.4.tgz#bb23ca31e2b7028ef973fe48c882b24288988ad6"
334-
integrity sha512-poqeMyl5LD+xkw9YN322UHqctTf/N6FLpLsAVUllZqGcntEYkDuKL5r4p+zB67z5MaLs8F3qpPNlc9jNjXSABw==
331+
yarn-upgrade-all@^0.7.5:
332+
version "0.7.5"
333+
resolved "https://registry.yarnpkg.com/yarn-upgrade-all/-/yarn-upgrade-all-0.7.5.tgz#dc0a8335234298a6d548d0956d78c45471aa34e8"
334+
integrity sha512-yC2DgKX2Vzeb4LznSHukF/U5AapE7i/A4cBoh8P2FsEy1RBPaXEdd320ZK5Phgj6/Y/1pmFkP36S7GxS0YrzCg==
335335
dependencies:
336-
color-loggers "^0.3.1"
336+
color-loggers "^0.3.2"
337337

338338
yn@3.1.1:
339339
version "3.1.1"

samples.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10635,6 +10635,32 @@ rc.revoke();
1063510635

1063610636
[Try it out](https://developer.ringcentral.com/api-reference#RingSense-getRecordingInsights) in API Explorer.
1063710637

10638+
## getSessionInsights
10639+
10640+
Get Session Insights
10641+
10642+
Name|Value
10643+
-|-
10644+
HTTP Method|`GET`
10645+
Endpoint|`/ai/ringsense/v1/public/accounts/{accountId}/domains/{domain}/sessions/{sourceSessionId}/insights`
10646+
Rate Limit Group|`Light`
10647+
App Permission|`RingSense`
10648+
User Permission|`N/A`
10649+
10650+
```java
10651+
RestClient rc = new RestClient(clientID, clientSecret, serverURL);
10652+
rc.authorize(jwtToken);
10653+
GetSessionInsightsResponse result = rc.ai().ringsense().v1().public().accounts(accountId).domains(domain).sessions(sourceSessionId).insights().get(getSessionInsightsParameters);
10654+
rc.revoke();
10655+
```
10656+
10657+
- `getSessionInsightsParameters` is of
10658+
type [GetSessionInsightsParameters](./src/main/java/com/ringcentral/definitions/GetSessionInsightsParameters.java)
10659+
- `result` is of
10660+
type [GetSessionInsightsResponse](./src/main/java/com/ringcentral/definitions/GetSessionInsightsResponse.java)
10661+
10662+
[Try it out](https://developer.ringcentral.com/api-reference#RingSense-getSessionInsights) in API Explorer.
10663+
1063810664
## readCallFlipSettings
1063910665

1064010666
Get Call Flip Settings
@@ -11705,6 +11731,33 @@ rc.revoke();
1170511731

1170611732
[Try it out](https://developer.ringcentral.com/api-reference#SMS-Templates-deleteUserMessageTemplate) in API Explorer.
1170711733

11734+
## smsConfigurationInfo
11735+
11736+
Get SMS Configuration
11737+
11738+
Name|Value
11739+
-|-
11740+
HTTP Method|`GET`
11741+
Endpoint|`/restapi/{apiVersion}/account/{accountId}/extension/{extensionId}/phone-number/{phoneNumberId}/sms-configuration`
11742+
Rate Limit Group|`Light`
11743+
App Permission|`ReadAccounts`
11744+
User Permission|`N/A`
11745+
11746+
```java
11747+
RestClient rc = new RestClient(clientID, clientSecret, serverURL);
11748+
rc.authorize(jwtToken);
11749+
SmsConfigurationResource result = rc.restapi(apiVersion).account(accountId).extension(extensionId).phoneNumber(phoneNumberId).smsConfiguration().get();
11750+
rc.revoke();
11751+
```
11752+
11753+
- Parameter `apiVersion` is optional with default value `v1.0`
11754+
- Parameter `accountId` is optional with default value `~`
11755+
- Parameter `extensionId` is optional with default value `~`
11756+
- `result` is of
11757+
type [SmsConfigurationResource](./src/main/java/com/ringcentral/definitions/SmsConfigurationResource.java)
11758+
11759+
[Try it out](https://developer.ringcentral.com/api-reference#Phone-Numbers-smsConfigurationInfo) in API Explorer.
11760+
1170811761
## readMultichannelCallRecordingContent
1170911762

1171011763
Get Multichannel Call Recording Content

src/main/java/com/ringcentral/definitions/AIInsights.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ public class AIInsights {
2626
*
2727
*/
2828
public AIScoreInsightUnit[] AIScore;
29+
/**
30+
*
31+
*/
32+
public CallNotesInsightUnit[] CallNotes;
2933

3034
public AIInsights Transcript(TranscriptInsightUnit[] Transcript) {
3135
this.Transcript = Transcript;
@@ -56,4 +60,9 @@ public AIInsights AIScore(AIScoreInsightUnit[] AIScore) {
5660
this.AIScore = AIScore;
5761
return this;
5862
}
63+
64+
public AIInsights CallNotes(CallNotesInsightUnit[] CallNotes) {
65+
this.CallNotes = CallNotes;
66+
return this;
67+
}
5968
}

src/main/java/com/ringcentral/definitions/ASGErrorResponse.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ public class ASGErrorResponse {
1717
* Example: AccountId 1234 is invalid
1818
*/
1919
public String message;
20+
/**
21+
*
22+
*/
23+
public ErrorEntry[] errors;
2024

2125
public ASGErrorResponse errorCode(String errorCode) {
2226
this.errorCode = errorCode;
@@ -27,4 +31,9 @@ public ASGErrorResponse message(String message) {
2731
this.message = message;
2832
return this;
2933
}
34+
35+
public ASGErrorResponse errors(ErrorEntry[] errors) {
36+
this.errors = errors;
37+
return this;
38+
}
3039
}

src/main/java/com/ringcentral/definitions/AccountHistorySearchPublicRequest.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ public class AccountHistorySearchPublicRequest {
4141
/**
4242
* List of action IDs (exact keys) to search for (alternatively "excludeActionIds" option can be used).
4343
* Example: CHANGE_SECRET_INFO,CHANGE_USER_INFO
44-
* Enum: CHANGE_SECRET_INFO, CHANGE_USER_INFO
4544
*/
4645
public String[] actionIds;
4746
/**
@@ -59,7 +58,6 @@ public class AccountHistorySearchPublicRequest {
5958
/**
6059
* List of action IDs (exact keys) to exclude from your search (alternatively "actionIds" option can be used).
6160
* Example: CHANGE_SECRET_INFO,CHANGE_USER_INFO
62-
* Enum: CHANGE_SECRET_INFO, CHANGE_USER_INFO
6361
*/
6462
public String[] excludeActionIds;
6563

src/main/java/com/ringcentral/definitions/AccountPhoneNumberInfo.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ public class AccountPhoneNumberInfo {
2727
*/
2828
public String tollType;
2929
/**
30-
* Usage type of phone number
30+
* Usage type of a phone number
3131
* Required
32-
* Enum: MainCompanyNumber, DirectNumber, Inventory, InventoryPartnerBusinessMobileNumber, PartnerBusinessMobileNumber, AdditionalCompanyNumber, CompanyNumber, PhoneLine, CompanyFaxNumber, ForwardedNumber, ForwardedCompanyNumber, ContactCenterNumber, ConferencingNumber, MeetingsNumber, BusinessMobileNumber, ELIN
32+
* Enum: MainCompanyNumber, DirectNumber, Inventory, InventoryPartnerBusinessMobileNumber, PartnerBusinessMobileNumber, AdditionalCompanyNumber, CompanyNumber, PhoneLine, CompanyFaxNumber, ForwardedNumber, ForwardedCompanyNumber, ContactCenterNumber, ConferencingNumber, MeetingsNumber, NumberStorage, BusinessMobileNumber, ELIN
3333
*/
3434
public String usageType;
3535
/**

src/main/java/com/ringcentral/definitions/AggregateA2PSMSStatusesParameters.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ public class AggregateA2PSMSStatusesParameters {
1111
*/
1212
public String batchId;
1313
/**
14-
* Direction of the SMS message
14+
* Direction of a message to filter the message list result.
15+
* By default, there is no filter applied - both Inbound and Outbound messages are returned
1516
* Example: Inbound
1617
* Enum: Inbound, Outbound
1718
*/
18-
public String direction;
19+
public String[] direction;
1920
/**
2021
* The end of the time range to filter the results in ISO 8601 format including timezone. Default is the 'dateTo' minus 24 hours
2122
* Format: date-time
@@ -39,7 +40,7 @@ public AggregateA2PSMSStatusesParameters batchId(String batchId) {
3940
return this;
4041
}
4142

42-
public AggregateA2PSMSStatusesParameters direction(String direction) {
43+
public AggregateA2PSMSStatusesParameters direction(String[] direction) {
4344
this.direction = direction;
4445
return this;
4546
}

src/main/java/com/ringcentral/definitions/BaseCallLogRecord.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public class BaseCallLogRecord {
2929
* Internal Identifier of Participant
3030
*/
3131
public String partyId;
32+
/**
33+
* List of metadata categories applied to the call
34+
*/
35+
public String[] metadataCategories;
3236
/**
3337
* The type of call transport. 'PSTN' indicates that a call leg was initiated
3438
* from the PSTN network provider; 'VoIP' - from an RC phone.
@@ -190,6 +194,11 @@ public BaseCallLogRecord partyId(String partyId) {
190194
return this;
191195
}
192196

197+
public BaseCallLogRecord metadataCategories(String[] metadataCategories) {
198+
this.metadataCategories = metadataCategories;
199+
return this;
200+
}
201+
193202
public BaseCallLogRecord transport(String transport) {
194203
this.transport = transport;
195204
return this;

src/main/java/com/ringcentral/definitions/CallLogRecord.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public class CallLogRecord {
2929
* Internal Identifier of Participant
3030
*/
3131
public String partyId;
32+
/**
33+
* List of metadata categories applied to the call
34+
*/
35+
public String[] metadataCategories;
3236
/**
3337
* The type of call transport. 'PSTN' indicates that a call leg was initiated
3438
* from the PSTN network provider; 'VoIP' - from an RC phone.
@@ -221,6 +225,11 @@ public CallLogRecord partyId(String partyId) {
221225
return this;
222226
}
223227

228+
public CallLogRecord metadataCategories(String[] metadataCategories) {
229+
this.metadataCategories = metadataCategories;
230+
return this;
231+
}
232+
224233
public CallLogRecord transport(String transport) {
225234
this.transport = transport;
226235
return this;

0 commit comments

Comments
 (0)