diff --git a/CHANGES.md b/CHANGES.md index 9e6921de89..2a4a510039 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,134 @@ twilio-java changelog ===================== +[2025-06-12] Version 10.9.2 +--------------------------- +**Library - Chore** +- [PR #858](https://github.com/twilio/twilio-java/pull/858): handle any Type with object datatype. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)! + +**Api** +- Change DependentPhoneNumber `capabilities` type `object` and `date_created`, `date_updated` to `date_time` +- Updated the `Default` value from 0 to 1 in the Recordings Resource `channels` property + +**Serverless** +- Update `ienum` type level in Logs api + +**Verify** +- Update Channel list in Verify Attempst API +- Update `ienum` type for Conversion_Status in Verify Attempts API + +**Twiml** +- Add `us2` to the list of supported values for the region attribute in the `` TwiML noun. + + +[2025-05-29] Version 10.9.1 +--------------------------- +**Library - Chore** +- [PR #860](https://github.com/twilio/twilio-java/pull/860): update dependency version. Thanks to [@manisha1997](https://github.com/manisha1997)! +- [PR #857](https://github.com/twilio/twilio-java/pull/857): use iam token endpoint. Thanks to [@manisha1997](https://github.com/manisha1997)! + +**Api** +- Added several usage category enums to `usage_record` API + +**Numbers** +- Update the porting documentation + +**Verify** +- Update `ienum` type for Channels in Verify Attempts API + + +[2025-05-13] Version 10.9.0 +--------------------------- +**Library - Feature** +- [PR #844](https://github.com/twilio/twilio-java/pull/844): Support custom ObjectMappers, with singleton defaults. Thanks to [@egoodhall](https://github.com/egoodhall)! + +**Library - Chore** +- [PR #853](https://github.com/twilio/twilio-java/pull/853): add changelog for jwt. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)! + +**Accounts** +- Changes to add date_of_consent param in Bulk Consent API + +**Api** +- Change `friendly_name`, `date_created` and `date_updated` properties to type `string`. + +**Twiml** +- Update twiml definition for `` and `` + + +[2025-05-05] Version 10.8.0 +--------------------------- +**Library - Chore** +- [PR #852](https://github.com/twilio/twilio-java/pull/852): removing jwt changelog. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)! +- [PR #849](https://github.com/twilio/twilio-java/pull/849): Add example for using multi region setup in a single application. Thanks to [@manisha1997](https://github.com/manisha1997)! +- [PR #847](https://github.com/twilio/twilio-java/pull/847): bump com.google.code.gson:gson from 2.8.6 to 2.8.9. Thanks to [@dependabot](https://github.com/dependabot)! + +**Library - Fix** +- [PR #846](https://github.com/twilio/twilio-java/pull/846): update jjwt version. Thanks to [@manisha1997](https://github.com/manisha1997)! +- **AccessToken** + - **Breaking Change**: Updated `AccessTokenBuilder` to use `byte[]` for the `secret` instead of `String`. + - Updated method signatures: + - `AccessTokenBuilder(String accountSid, String keySid, byte[] secret)` + - Example usage: + ```java + byte[] secret = “your_secret”.getBytes(); + AccessTokenBuilder builder = new AccessTokenBuilder(accountSid, keySid, secret); + ``` + **ClientCapability** + - **Breaking Change**: Updated `ClientCapability.Builder` to use `byte[]` for the `authToken` instead of `String`. + - Updated method signatures: + - `ClientCapability.Builder(String accountSid, byte[] authToken)` + - Example usage: + ```java + byte[] authToken = “your_auth_token”.getBytes(); + ClientCapability.Builder builder = new ClientCapability.Builder(accountSid, authToken); + ``` + **TaskRouterCapability** + - **Breaking Change**: Updated `TaskRouterCapability.Builder` to use `byte[]` for the `authToken` instead of `String`. + - Updated method signatures: + - `TaskRouterCapability.Builder(String accountSid, byte[] authToken)` + - Example usage: + ```java + byte[] authToken = “your_auth_token”.getBytes(); + TaskRouterCapability.Builder builder = new TaskRouterCapability.Builder(accountSid, authToken); + ``` + +**Api** +- Add `response_key` for `Usage Triggers` fetch endpoint. + +**Flex** +- Add Update Interaction API +- Adding `webhook_ttid` as optional parameter in Interactions API + +**Serverless** +- Add node22 as a valid Build runtime +- Add node20 as a valid Build runtime + +**Video** +- removed `transcribe_participants_on_connect` and `transcriptions_configuration` from the room resource **(breaking change)** +- Added `transcribe_participants_on_connect` and `transcriptions_configuration` to the room resource + + +[2025-04-07] Version 10.7.2 +--------------------------- +**Library - Chore** +- [PR #842](https://github.com/twilio/twilio-java/pull/842): added patch method. Thanks to [@sbansla](https://github.com/sbansla)! + +**Studio** +- Add documentation for parent_step_sid field in Step resource + + +[2025-03-20] Version 10.7.1 +--------------------------- +**Accounts** +- Update Safelist API docs as part of prefix supoort + +**Flex** +- Removing `first_name`, `last_name`, and `friendly_name` from the Flex User API + +**Messaging** +- Add missing tests under transaction/phone_numbers and transaction/short_code + + [2025-03-11] Version 10.7.0 --------------------------- **Library - Chore** diff --git a/README.md b/README.md index b91657b869..dbd9f1c804 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![Tests](https://github.com/twilio/twilio-java/actions/workflows/test-and-deploy.yml/badge.svg)](https://github.com/twilio/twilio-java/actions/workflows/test-and-deploy.yml) [![Maven Central](https://img.shields.io/maven-central/v/com.twilio.sdk/twilio.svg)](https://mvnrepository.com/artifact/com.twilio.sdk/twilio) [![Learn with TwilioQuest](https://img.shields.io/static/v1?label=TwilioQuest&message=Learn%20to%20contribute%21&color=F22F46&labelColor=1f243c&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAASFBMVEUAAAAZGRkcHBwjIyMoKCgAAABgYGBoaGiAgICMjIyzs7PJycnMzMzNzc3UoBfd3d3m5ubqrhfrMEDu7u739/f4vSb/3AD///9tbdyEAAAABXRSTlMAAAAAAMJrBrEAAAKoSURBVHgB7ZrRcuI6EESdyxXGYoNFvMD//+l2bSszRgyUYpFAsXOeiJGmj4NkuWx1Qeh+Ekl9DgEXOBwOx+Px5xyQhDykfgq4wG63MxxaR4ddIkg6Ul3g84vCIcjPBA5gmUMeXESrlukuoK33+33uID8TWeLAdOWsKpJYzwVMB7bOzYSGOciyUlXSn0/ABXTosJ1M1SbypZ4O4MbZuIDMU02PMbauhhHMHXbmebmALIiEbbbbbUrpF1gwE9kFfRNAJaP+FQEXCCTGyJ4ngDrjOFo3jEL5JdqjF/pueR4cCeCGgAtwmuRS6gDwaRiGvu+DMFwSBLTE3+jF8JyuV1okPZ+AC4hDFhCHyHQjdjPHUKFDlHSJkHQXMB3KpSwXNGJPcwwTdZiXlRN0gSp0zpWxNtM0beYE0nRH6QIbO7rawwXaBYz0j78gxjokDuv12gVeUuBD0MDi0OQCLvDaAho4juP1Q/jkAncXqIcCfd+7gAu4QLMACCLxpRsSuQh0igu0C9Svhi7weAGZg50L3IE3cai4IfkNZAC8dfdhsUD3CgKBVC9JE5ABAFzg4QL/taYPAAWrHdYcgfLaIgAXWJ7OV38n1LEF8tt2TH29E+QAoDoO5Ve/LtCQDmKM9kPbvCEBApK+IXzbcSJ0cIGF6e8gpcRhUDogWZ8JnaWjPXc/fNnBBUKRngiHgTUSivSzDRDgHZQOLvBQgf8rRt+VdBUUhwkU6VpJ+xcOwQUqZr+mR0kvBUgv6cB4+37hQAkXqE8PwGisGhJtN4xAHMzrsgvI7rccXqSvKh6jltGlrOHA3Xk1At3LC4QiPdX9/0ndHpGVvTjR4bZA1ypAKgVcwE5vx74ulwIugDt8e/X7JgfkucBMIAr26ndnB4UCLnDOqvteQsHlgX9N4A+c4cW3DXSPbwAAAABJRU5ErkJggg==)](https://twil.io/learn-open-source) +[![libs.tech recommends](https://libs.tech/project/307476/badge.svg)](https://libs.tech/project/307476/twilio-java) ## Documentation @@ -265,6 +266,8 @@ Twilio.setEdge("sydney"); This will result in the `hostname` transforming from `api.twilio.com` to `api.sydney.au1.twilio.com`. +To use multiple region within same application, refer [MultiRegionClient.md](https://github.com/twilio/twilio-java/blob/main/examples/MultiRegionClient.md) + ### Enable Debug Logging This library uses SLF4J for logging. Consult the [SFL4J documentation](http://slf4j.org/docs.html) for information about logging configuration. diff --git a/UPGRADE.md b/UPGRADE.md index 8e7fe12cfb..b2307cc617 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -703,4 +703,4 @@ Task.reader("WS123").setAssignmentStatus(Lists.newArrayList( Task.Status.ASSIGNED.toString(), Task.Status.CANCELED.toString() )).read(); -``` \ No newline at end of file +``` diff --git a/examples/MultiRegionClient.md b/examples/MultiRegionClient.md new file mode 100644 index 0000000000..a5080a6e2c --- /dev/null +++ b/examples/MultiRegionClient.md @@ -0,0 +1,41 @@ +```java +package com.twilio.example; + +import com.twilio.http.TwilioRestClient; +import com.twilio.rest.api.v2010.account.Message; +import com.twilio.type.PhoneNumber; + +public class MultiRegionExample { + public static final String ACCOUNT_SID = System.getenv("TWILIO_ACCOUNT_SID"); + public static final String AUTH_TOKEN = System.getenv("TWILIO_AUTH_TOKEN"); + + public static void main(String[] args) { + + TwilioRestClient client = new TwilioRestClient.Builder(ACCOUNT_SID, AUTH_TOKEN).region("us1").build(); + + Message message = Message + .creator( + new PhoneNumber("+1XXXXXXXXXX"), + new PhoneNumber("+1XXXXXXXXXX"), + "This is the ship that made the Kessel Run in fourteen parsecs?" + ) + .create(client); + + System.out.println(message.getSid()); + + TwilioRestClient client2 = new TwilioRestClient.Builder(ACCOUNT_SID, AUTH_TOKEN).region("au1").build(); + + Message message2 = Message + .creator( + new PhoneNumber("+1XXXXXXXXXX"), + new PhoneNumber("+1XXXXXXXXXX"), + "This is the ship that made the Kessel Run in fourteen parsecs?" + ) + .create(client2); + + System.out.println(message2.getSid()); + } +} + + +``` diff --git a/pom.xml b/pom.xml index 1b26d0de9f..adbd3f78dc 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ twilio jar twilio - 10.7.0 + 10.9.2 Twilio Java Helper Library https://www.twilio.com @@ -19,7 +19,7 @@ git@github.com:twilio/twilio-java.git scm:git:git@github.com:twilio/twilio-java.git scm:git:git@github.com:twilio/twilio-java.git - 10.7.0 + 10.9.2 @@ -169,7 +169,7 @@ 2.15.0 3.3.1 - 0.11.2 + 0.12.6 false false twilio @@ -337,6 +337,11 @@ + + com.google.code.gson + gson + 2.10.1 + diff --git a/src/main/java/com/twilio/Domains.java b/src/main/java/com/twilio/Domains.java index 4cea2a4672..956b8080b9 100644 --- a/src/main/java/com/twilio/Domains.java +++ b/src/main/java/com/twilio/Domains.java @@ -26,6 +26,7 @@ public enum Domains { INSIGHTS("insights"), INTELLIGENCE("intelligence"), IPMESSAGING("ip-messaging"), + KNOWLEDGE("knowledge"), LOOKUPS("lookups"), MARKETPLACE("marketplace"), MESSAGING("messaging"), diff --git a/src/main/java/com/twilio/Twilio.java b/src/main/java/com/twilio/Twilio.java index 5bcb206ade..7ed3da168a 100644 --- a/src/main/java/com/twilio/Twilio.java +++ b/src/main/java/com/twilio/Twilio.java @@ -24,7 +24,7 @@ */ public class Twilio { - public static final String VERSION = "10.7.0"; + public static final String VERSION = "10.9.2"; public static final String JAVA_VERSION = System.getProperty("java.version"); public static final String OS_NAME = System.getProperty("os.name"); public static final String OS_ARCH = System.getProperty("os.arch"); diff --git a/src/main/java/com/twilio/converter/Converter.java b/src/main/java/com/twilio/converter/Converter.java index 9ee29e0e3d..2a9a5befbf 100644 --- a/src/main/java/com/twilio/converter/Converter.java +++ b/src/main/java/com/twilio/converter/Converter.java @@ -5,6 +5,8 @@ import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; +import java.util.Arrays; +import java.util.Collection; import java.util.HashMap; import java.util.Map; @@ -12,6 +14,52 @@ public class Converter { private static final ObjectMapper MAPPER = new ObjectMapper(); + /** + * Convert a generic object to a JSON String. + * + * @param value object to convert + * @return converted JSON string + */ + public static String objectToJson(Object value) { + if (value == null) { + return "null"; + } + + // Primitive wrappers + if (value instanceof String || value instanceof Number || value instanceof Boolean || value instanceof Character) { + return value.toString(); + } + // Arrays: handle any arrays (primitive or object) + if (value.getClass().isArray()) { + // For primitive arrays, handle differently + if (value instanceof int[]) return Arrays.toString((int[]) value); + if (value instanceof long[]) return Arrays.toString((long[]) value); + if (value instanceof double[]) return Arrays.toString((double[]) value); + if (value instanceof float[]) return Arrays.toString((float[]) value); + if (value instanceof boolean[]) return Arrays.toString((boolean[]) value); + if (value instanceof byte[]) return Arrays.toString((byte[]) value); + if (value instanceof short[]) return Arrays.toString((short[]) value); + if (value instanceof char[]) return Arrays.toString((char[]) value); + // Object array + return Arrays.deepToString((Object[]) value); + } + + // Collection (List, Set, etc.) + if (value instanceof Collection || value instanceof Map) { + try { + return MAPPER.writeValueAsString(value); + } catch (JsonProcessingException e) { + return value.toString(); + } + } + // Fallback: Try JSON, else toString + try { + return MAPPER.writeValueAsString(value); + } catch (JsonProcessingException e) { + return value.toString(); + } + } + /** * Convert a map to a JSON String. * diff --git a/src/main/java/com/twilio/example/AccessTokenExample.java b/src/main/java/com/twilio/example/AccessTokenExample.java new file mode 100644 index 0000000000..a46977768f --- /dev/null +++ b/src/main/java/com/twilio/example/AccessTokenExample.java @@ -0,0 +1,38 @@ +package com.twilio.example; + +import com.twilio.jwt.accesstoken.AccessToken; +import com.twilio.jwt.accesstoken.VoiceGrant; +import java.util.HashMap; +import com.google.gson.Gson; + +public class AccessTokenExample { + public static void main(String args[]){ + String acctSid = System.getenv("TWILIO_ACCOUNT_SID"); + String applicationSid = System.getenv("TWILIO_TWIML_APP_SID"); + String apiKey = System.getenv("API_KEY"); + String apiSecret = System.getenv("API_SECRET"); + // Create Voice grant + VoiceGrant grant = new VoiceGrant(); + grant.setOutgoingApplicationSid(applicationSid); + + // Optional: add to allow incoming calls + grant.setIncomingAllow(true); + + String randomIdentity = "random-identity"; + // Create access token + AccessToken accessToken = new AccessToken.Builder(acctSid, apiKey, apiSecret.getBytes()) + .identity(randomIdentity) + .grant(grant) + .build(); + + String token = accessToken.toJwt(); + + // create JSON response payload + HashMap json = new HashMap<>(); + json.put("identity", randomIdentity); + json.put("token", token); + + Gson gson = new Gson(); + System.out.println(gson.toJson(json)); + } +} diff --git a/src/main/java/com/twilio/http/HttpMethod.java b/src/main/java/com/twilio/http/HttpMethod.java index cd5961b9e6..6c3c8e7b13 100644 --- a/src/main/java/com/twilio/http/HttpMethod.java +++ b/src/main/java/com/twilio/http/HttpMethod.java @@ -7,6 +7,7 @@ public enum HttpMethod { GET("GET"), POST("POST"), PUT("PUT"), + PATCH("PATCH"), DELETE("DELETE"), HEAD("HEAD"), OPTIONS("OPTIONS"); diff --git a/src/main/java/com/twilio/http/TwilioRestClient.java b/src/main/java/com/twilio/http/TwilioRestClient.java index 612e9f61e3..a902f0fee6 100644 --- a/src/main/java/com/twilio/http/TwilioRestClient.java +++ b/src/main/java/com/twilio/http/TwilioRestClient.java @@ -3,20 +3,46 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; import com.twilio.auth_strategy.AuthStrategy; -import com.twilio.auth_strategy.BasicAuthStrategy; -import com.twilio.auth_strategy.TokenAuthStrategy; import com.twilio.constant.EnumConstants; -import com.twilio.credential.ClientCredentialProvider; -import lombok.Getter; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.function.Predicate; +import lombok.Getter; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; - +/** + * The `TwilioRestClient` class is responsible for making HTTP requests to the Twilio API. + * It provides methods to configure authentication, region, edge, and other settings + * required to interact with Twilio's services. + * + *

Features:

+ *
    + *
  • Supports basic authentication and token-based authentication strategies.
  • + *
  • Allows configuration of custom HTTP clients and ObjectMapper for JSON processing.
  • + *
  • Handles request retries for specific HTTP status codes (e.g., 401 Unauthorized).
  • + *
  • Logs detailed request and response information for debugging purposes.
  • + *
+ * + *

Usage Example:

+ *
+ * {@code
+ * TwilioRestClient client = new TwilioRestClient.Builder(ACCOUNT_SID, AUTH_TOKEN)
+ *           .objectMapper(customMapper)
+ *           .build();
+ *
+ * Message message = Message
+ *           .creator(
+ *               new PhoneNumber("+1xxxxxxxxxx"),
+ *               new PhoneNumber("+1xxxxxxxxxx"),
+ *               "This is the ship that made the Kessel Run in fourteen parsecs?"
+ *           ).create(client);
+ * }
+ * 
+ * + *

Note: This class is designed to be thread-safe and reusable.

+ */ public class TwilioRestClient { public static final int HTTP_STATUS_CODE_CREATED = 201; @@ -51,14 +77,8 @@ protected TwilioRestClient(Builder b) { this.region = b.region; this.edge = b.edge; this.httpClient = b.httpClient; - this.objectMapper = new ObjectMapper(); + this.objectMapper = b.objectMapper; this.userAgentExtensions = b.userAgentExtensions; - - // This module configures the ObjectMapper to use - // public API methods for manipulating java.time.* - // classes. The alternative is to use reflection which - // generates warnings from the module system on Java 9+ - objectMapper.registerModule(new JavaTimeModule()); } /** @@ -71,7 +91,7 @@ public Response request(final Request request) { if (username != null && password != null) { request.setAuth(username, password); } else if (authStrategy != null) { - request.setAuth(authStrategy); + request.setAuth(authStrategy); } if (region != null) @@ -104,8 +124,15 @@ public Response request(final Request request) { return response; } - + public static class Builder { + // This module configures the ObjectMapper to use + // public API methods for manipulating java.time.* + // classes. The alternative is to use reflection which + // generates warnings from the module system on Java 9+ + private static final ObjectMapper DEFAULT_OBJECT_MAPPER = new ObjectMapper() + .registerModule(new JavaTimeModule()); + private String username; private String password; private AuthStrategy authStrategy; @@ -114,6 +141,7 @@ public static class Builder { private String edge; private HttpClient httpClient; private List userAgentExtensions; + private ObjectMapper objectMapper = DEFAULT_OBJECT_MAPPER; /** * Create a new Twilio Rest Client. @@ -163,6 +191,11 @@ public Builder userAgentExtensions(final List userAgentExtensions) { return this; } + public Builder objectMapper(final ObjectMapper objectMapper) { + this.objectMapper = objectMapper; + return this; + } + /** * Build new TwilioRestClient. * diff --git a/src/main/java/com/twilio/http/bearertoken/ApiTokenManager.java b/src/main/java/com/twilio/http/bearertoken/ApiTokenManager.java index 38ca3129be..263533afdd 100644 --- a/src/main/java/com/twilio/http/bearertoken/ApiTokenManager.java +++ b/src/main/java/com/twilio/http/bearertoken/ApiTokenManager.java @@ -1,8 +1,8 @@ package com.twilio.http.bearertoken; import com.twilio.annotations.Beta; -import com.twilio.rest.previewiam.v1.Token; -import com.twilio.rest.previewiam.v1.TokenCreator; +import com.twilio.rest.iam.v1.Token; +import com.twilio.rest.iam.v1.TokenCreator; import java.util.Objects; @@ -17,7 +17,7 @@ public class ApiTokenManager implements TokenManager { private String audience; private String refreshToken; private String scope; - + @Override public String fetchAccessToken() { TokenCreator tokenCreator = Token.creator(grantType, clientId).setClientSecret(clientSecret); diff --git a/src/main/java/com/twilio/http/bearertoken/BearerTokenTwilioRestClient.java b/src/main/java/com/twilio/http/bearertoken/BearerTokenTwilioRestClient.java index 0562c72534..f3ba9fac59 100644 --- a/src/main/java/com/twilio/http/bearertoken/BearerTokenTwilioRestClient.java +++ b/src/main/java/com/twilio/http/bearertoken/BearerTokenTwilioRestClient.java @@ -44,23 +44,25 @@ private BearerTokenTwilioRestClient(BearerTokenTwilioRestClient.Builder b) { this.region = b.region; this.edge = b.edge; this.httpClient = b.httpClient; - this.objectMapper = new ObjectMapper(); + this.objectMapper = b.objectMapper; this.userAgentExtensions = b.userAgentExtensions; this.tokenManager = b.tokenManager; + } + public static class Builder { // This module configures the ObjectMapper to use // public API methods for manipulating java.time.* // classes. The alternative is to use reflection which // generates warnings from the module system on Java 9+ - objectMapper.registerModule(new JavaTimeModule()); - } - - public static class Builder { + private static final ObjectMapper DEFAULT_OBJECT_MAPPER = new ObjectMapper() + .registerModule(new JavaTimeModule()); + private String region; private String edge; private BearerTokenHttpClient httpClient; private List userAgentExtensions; private TokenManager tokenManager; + private ObjectMapper objectMapper = DEFAULT_OBJECT_MAPPER; public Builder() { this.region = System.getenv("TWILIO_REGION"); @@ -95,6 +97,11 @@ public BearerTokenTwilioRestClient.Builder userAgentExtensions(final List userAgentExtensions; + private ObjectMapper objectMapper = DEFAULT_OBJECT_MAPPER; public Builder() { this.region = System.getenv("TWILIO_REGION"); @@ -82,6 +84,11 @@ public NoAuthTwilioRestClient.Builder userAgentExtensions(final List use return this; } + public NoAuthTwilioRestClient.Builder objectMapper(final ObjectMapper objectMapper) { + this.objectMapper = objectMapper; + return this; + } + public NoAuthTwilioRestClient build() { if (this.httpClient == null) { this.httpClient = new NoAuthNetworkHttpClient(); diff --git a/src/main/java/com/twilio/jwt/Jwt.java b/src/main/java/com/twilio/jwt/Jwt.java index da8349312e..f0e77618ea 100644 --- a/src/main/java/com/twilio/jwt/Jwt.java +++ b/src/main/java/com/twilio/jwt/Jwt.java @@ -30,13 +30,13 @@ public abstract class Jwt { */ public Jwt( SignatureAlgorithm algorithm, - String secret, + byte[] secret, String issuer, Date expiration ) { this( algorithm, - new SecretKeySpec(secret.getBytes(), algorithm.getJcaName()), + new SecretKeySpec(secret, algorithm.getJcaName()), issuer, expiration ); diff --git a/src/main/java/com/twilio/jwt/accesstoken/AccessToken.java b/src/main/java/com/twilio/jwt/accesstoken/AccessToken.java index da1215aea4..da6d86329f 100644 --- a/src/main/java/com/twilio/jwt/accesstoken/AccessToken.java +++ b/src/main/java/com/twilio/jwt/accesstoken/AccessToken.java @@ -94,7 +94,7 @@ public Map getClaims() { public static class Builder { private String accountSid; private String keySid; - private String secret; + private byte[] secret; private String identity; private String region; private Date nbf = null; @@ -108,7 +108,7 @@ public static class Builder { * @param keySid key to use * @param secret secret key */ - public Builder(String accountSid, String keySid, String secret) { + public Builder(String accountSid, String keySid, byte[] secret) { this.accountSid = accountSid; this.keySid = keySid; this.secret = secret; diff --git a/src/main/java/com/twilio/jwt/client/ClientCapability.java b/src/main/java/com/twilio/jwt/client/ClientCapability.java index f3f9a6b5c4..6c93165185 100644 --- a/src/main/java/com/twilio/jwt/client/ClientCapability.java +++ b/src/main/java/com/twilio/jwt/client/ClientCapability.java @@ -57,7 +57,7 @@ public Map getClaims() { /** Builder used to construct a Client Capability. */ public static class Builder { private String accountSid; - private String authToken; + private byte[] authToken; private int ttl = 3600; private List scopes = new ArrayList<>(); @@ -67,7 +67,7 @@ public static class Builder { * @param accountSid account to use * @param authToken auth token */ - public Builder(String accountSid, String authToken) { + public Builder(String accountSid, byte[] authToken) { this.accountSid = accountSid; this.authToken = authToken; } diff --git a/src/main/java/com/twilio/jwt/taskrouter/TaskRouterCapability.java b/src/main/java/com/twilio/jwt/taskrouter/TaskRouterCapability.java index 4d1fd7e74e..c0f1545a27 100644 --- a/src/main/java/com/twilio/jwt/taskrouter/TaskRouterCapability.java +++ b/src/main/java/com/twilio/jwt/taskrouter/TaskRouterCapability.java @@ -66,7 +66,7 @@ public Map getClaims() { public static class Builder { private String accountSid; - private String authToken; + private byte[] authToken; private String workspaceSid; private String channelId; private String friendlyName; @@ -81,7 +81,7 @@ public static class Builder { * @param workspaceSid workspace sid to use * @param channelId channel ID to use */ - public Builder(String accountSid, String authToken, String workspaceSid, String channelId) { + public Builder(String accountSid, byte[] authToken, String workspaceSid, String channelId) { this.accountSid = accountSid; this.authToken = authToken; this.workspaceSid = workspaceSid; diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Call.java b/src/main/java/com/twilio/rest/api/v2010/account/Call.java index 22698956f9..8eaf7c203d 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Call.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Call.java @@ -446,13 +446,19 @@ public int hashCode() { ); } - public enum UpdateStatus { - CANCELED("canceled"), - COMPLETED("completed"); + public enum Status { + QUEUED("queued"), + RINGING("ringing"), + IN_PROGRESS("in-progress"), + COMPLETED("completed"), + BUSY("busy"), + FAILED("failed"), + NO_ANSWER("no-answer"), + CANCELED("canceled"); private final String value; - private UpdateStatus(final String value) { + private Status(final String value) { this.value = value; } @@ -461,24 +467,18 @@ public String toString() { } @JsonCreator - public static UpdateStatus forValue(final String value) { - return Promoter.enumFromString(value, UpdateStatus.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } - public enum Status { - QUEUED("queued"), - RINGING("ringing"), - IN_PROGRESS("in-progress"), - COMPLETED("completed"), - BUSY("busy"), - FAILED("failed"), - NO_ANSWER("no-answer"), - CANCELED("canceled"); + public enum UpdateStatus { + CANCELED("canceled"), + COMPLETED("completed"); private final String value; - private Status(final String value) { + private UpdateStatus(final String value) { this.value = value; } @@ -487,8 +487,8 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static UpdateStatus forValue(final String value) { + return Promoter.enumFromString(value, UpdateStatus.values()); } } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Conference.java b/src/main/java/com/twilio/rest/api/v2010/account/Conference.java index f13fdba556..bcb13ce3df 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Conference.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Conference.java @@ -262,6 +262,25 @@ public int hashCode() { ); } + public enum UpdateStatus { + COMPLETED("completed"); + + private final String value; + + private UpdateStatus(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static UpdateStatus forValue(final String value) { + return Promoter.enumFromString(value, UpdateStatus.values()); + } + } + public enum ReasonConferenceEnded { CONFERENCE_ENDED_VIA_API("conference-ended-via-api"), PARTICIPANT_WITH_END_CONFERENCE_ON_EXIT_LEFT( @@ -312,23 +331,4 @@ public static Status forValue(final String value) { return Promoter.enumFromString(value, Status.values()); } } - - public enum UpdateStatus { - COMPLETED("completed"); - - private final String value; - - private UpdateStatus(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static UpdateStatus forValue(final String value) { - return Promoter.enumFromString(value, UpdateStatus.values()); - } - } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/IncomingPhoneNumber.java b/src/main/java/com/twilio/rest/api/v2010/account/IncomingPhoneNumber.java index 8be0025d60..6c202374e5 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/IncomingPhoneNumber.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/IncomingPhoneNumber.java @@ -506,15 +506,17 @@ public int hashCode() { ); } - public enum AddressRequirement { - NONE("none"), - ANY("any"), - LOCAL("local"), - FOREIGN("foreign"); + public enum EmergencyAddressStatus { + REGISTERED("registered"), + UNREGISTERED("unregistered"), + PENDING_REGISTRATION("pending-registration"), + REGISTRATION_FAILURE("registration-failure"), + PENDING_UNREGISTRATION("pending-unregistration"), + UNREGISTRATION_FAILURE("unregistration-failure"); private final String value; - private AddressRequirement(final String value) { + private EmergencyAddressStatus(final String value) { this.value = value; } @@ -523,18 +525,21 @@ public String toString() { } @JsonCreator - public static AddressRequirement forValue(final String value) { - return Promoter.enumFromString(value, AddressRequirement.values()); + public static EmergencyAddressStatus forValue(final String value) { + return Promoter.enumFromString( + value, + EmergencyAddressStatus.values() + ); } } - public enum EmergencyStatus { - ACTIVE("Active"), - INACTIVE("Inactive"); + public enum VoiceReceiveMode { + VOICE("voice"), + FAX("fax"); private final String value; - private EmergencyStatus(final String value) { + private VoiceReceiveMode(final String value) { this.value = value; } @@ -543,18 +548,20 @@ public String toString() { } @JsonCreator - public static EmergencyStatus forValue(final String value) { - return Promoter.enumFromString(value, EmergencyStatus.values()); + public static VoiceReceiveMode forValue(final String value) { + return Promoter.enumFromString(value, VoiceReceiveMode.values()); } } - public enum VoiceReceiveMode { - VOICE("voice"), - FAX("fax"); + public enum AddressRequirement { + NONE("none"), + ANY("any"), + LOCAL("local"), + FOREIGN("foreign"); private final String value; - private VoiceReceiveMode(final String value) { + private AddressRequirement(final String value) { this.value = value; } @@ -563,22 +570,18 @@ public String toString() { } @JsonCreator - public static VoiceReceiveMode forValue(final String value) { - return Promoter.enumFromString(value, VoiceReceiveMode.values()); + public static AddressRequirement forValue(final String value) { + return Promoter.enumFromString(value, AddressRequirement.values()); } } - public enum EmergencyAddressStatus { - REGISTERED("registered"), - UNREGISTERED("unregistered"), - PENDING_REGISTRATION("pending-registration"), - REGISTRATION_FAILURE("registration-failure"), - PENDING_UNREGISTRATION("pending-unregistration"), - UNREGISTRATION_FAILURE("unregistration-failure"); + public enum EmergencyStatus { + ACTIVE("Active"), + INACTIVE("Inactive"); private final String value; - private EmergencyAddressStatus(final String value) { + private EmergencyStatus(final String value) { this.value = value; } @@ -587,11 +590,8 @@ public String toString() { } @JsonCreator - public static EmergencyAddressStatus forValue(final String value) { - return Promoter.enumFromString( - value, - EmergencyAddressStatus.values() - ); + public static EmergencyStatus forValue(final String value) { + return Promoter.enumFromString(value, EmergencyStatus.values()); } } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/Message.java b/src/main/java/com/twilio/rest/api/v2010/account/Message.java index 63fe3088f1..548b52b068 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/Message.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/Message.java @@ -440,12 +440,13 @@ public static AddressRetention forValue(final String value) { } } - public enum ScheduleType { - FIXED("fixed"); + public enum RiskCheck { + ENABLE("enable"), + DISABLE("disable"); private final String value; - private ScheduleType(final String value) { + private RiskCheck(final String value) { this.value = value; } @@ -454,20 +455,17 @@ public String toString() { } @JsonCreator - public static ScheduleType forValue(final String value) { - return Promoter.enumFromString(value, ScheduleType.values()); + public static RiskCheck forValue(final String value) { + return Promoter.enumFromString(value, RiskCheck.values()); } } - public enum Direction { - INBOUND("inbound"), - OUTBOUND_API("outbound-api"), - OUTBOUND_CALL("outbound-call"), - OUTBOUND_REPLY("outbound-reply"); + public enum TrafficType { + FREE("free"); private final String value; - private Direction(final String value) { + private TrafficType(final String value) { this.value = value; } @@ -476,18 +474,17 @@ public String toString() { } @JsonCreator - public static Direction forValue(final String value) { - return Promoter.enumFromString(value, Direction.values()); + public static TrafficType forValue(final String value) { + return Promoter.enumFromString(value, TrafficType.values()); } } - public enum RiskCheck { - ENABLE("enable"), - DISABLE("disable"); + public enum UpdateStatus { + CANCELED("canceled"); private final String value; - private RiskCheck(final String value) { + private UpdateStatus(final String value) { this.value = value; } @@ -496,18 +493,20 @@ public String toString() { } @JsonCreator - public static RiskCheck forValue(final String value) { - return Promoter.enumFromString(value, RiskCheck.values()); + public static UpdateStatus forValue(final String value) { + return Promoter.enumFromString(value, UpdateStatus.values()); } } - public enum ContentRetention { - RETAIN("retain"), - DISCARD("discard"); + public enum Direction { + INBOUND("inbound"), + OUTBOUND_API("outbound-api"), + OUTBOUND_CALL("outbound-call"), + OUTBOUND_REPLY("outbound-reply"); private final String value; - private ContentRetention(final String value) { + private Direction(final String value) { this.value = value; } @@ -516,17 +515,17 @@ public String toString() { } @JsonCreator - public static ContentRetention forValue(final String value) { - return Promoter.enumFromString(value, ContentRetention.values()); + public static Direction forValue(final String value) { + return Promoter.enumFromString(value, Direction.values()); } } - public enum UpdateStatus { - CANCELED("canceled"); + public enum ScheduleType { + FIXED("fixed"); private final String value; - private UpdateStatus(final String value) { + private ScheduleType(final String value) { this.value = value; } @@ -535,8 +534,28 @@ public String toString() { } @JsonCreator - public static UpdateStatus forValue(final String value) { - return Promoter.enumFromString(value, UpdateStatus.values()); + public static ScheduleType forValue(final String value) { + return Promoter.enumFromString(value, ScheduleType.values()); + } + } + + public enum ContentRetention { + RETAIN("retain"), + DISCARD("discard"); + + private final String value; + + private ContentRetention(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static ContentRetention forValue(final String value) { + return Promoter.enumFromString(value, ContentRetention.values()); } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/MessageCreator.java b/src/main/java/com/twilio/rest/api/v2010/account/MessageCreator.java index 9e765896b0..4ee0387373 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/MessageCreator.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/MessageCreator.java @@ -48,6 +48,7 @@ public class MessageCreator extends Creator { private Message.AddressRetention addressRetention; private Boolean smartEncoded; private List persistentAction; + private Message.TrafficType trafficType; private Boolean shortenUrls; private Message.ScheduleType scheduleType; private ZonedDateTime sendAt; @@ -226,6 +227,13 @@ public MessageCreator setPersistentAction(final String persistentAction) { return setPersistentAction(Promoter.listOfOne(persistentAction)); } + public MessageCreator setTrafficType( + final Message.TrafficType trafficType + ) { + this.trafficType = trafficType; + return this; + } + public MessageCreator setShortenUrls(final Boolean shortenUrls) { this.shortenUrls = shortenUrls; return this; @@ -386,6 +394,9 @@ private void addPostParams(final Request request) { request.addPostParam("PersistentAction", prop); } } + if (trafficType != null) { + request.addPostParam("TrafficType", trafficType.toString()); + } if (shortenUrls != null) { request.addPostParam("ShortenUrls", shortenUrls.toString()); } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/address/DependentPhoneNumber.java b/src/main/java/com/twilio/rest/api/v2010/account/address/DependentPhoneNumber.java index 9c0f8eb1fa..3c65422d55 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/address/DependentPhoneNumber.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/address/DependentPhoneNumber.java @@ -40,7 +40,7 @@ @ToString public class DependentPhoneNumber extends Resource { - private static final long serialVersionUID = 170982689441309L; + private static final long serialVersionUID = 279811089031324L; public static DependentPhoneNumberReader reader( final String pathAddressSid @@ -100,7 +100,7 @@ public static DependentPhoneNumber fromJson( private final String sid; private final String accountSid; - private final com.twilio.type.PhoneNumber friendlyName; + private final String friendlyName; private final com.twilio.type.PhoneNumber phoneNumber; private final URI voiceUrl; private final HttpMethod voiceMethod; @@ -129,9 +129,7 @@ public static DependentPhoneNumber fromJson( private DependentPhoneNumber( @JsonProperty("sid") final String sid, @JsonProperty("account_sid") final String accountSid, - @JsonProperty( - "friendly_name" - ) final com.twilio.type.PhoneNumber friendlyName, + @JsonProperty("friendly_name") final String friendlyName, @JsonProperty( "phone_number" ) final com.twilio.type.PhoneNumber phoneNumber, @@ -204,7 +202,7 @@ public final String getAccountSid() { return this.accountSid; } - public final com.twilio.type.PhoneNumber getFriendlyName() { + public final String getFriendlyName() { return this.friendlyName; } @@ -374,13 +372,15 @@ public int hashCode() { ); } - public enum EmergencyStatus { - ACTIVE("Active"), - INACTIVE("Inactive"); + public enum AddressRequirement { + NONE("none"), + ANY("any"), + LOCAL("local"), + FOREIGN("foreign"); private final String value; - private EmergencyStatus(final String value) { + private AddressRequirement(final String value) { this.value = value; } @@ -389,20 +389,18 @@ public String toString() { } @JsonCreator - public static EmergencyStatus forValue(final String value) { - return Promoter.enumFromString(value, EmergencyStatus.values()); + public static AddressRequirement forValue(final String value) { + return Promoter.enumFromString(value, AddressRequirement.values()); } } - public enum AddressRequirement { - NONE("none"), - ANY("any"), - LOCAL("local"), - FOREIGN("foreign"); + public enum EmergencyStatus { + ACTIVE("Active"), + INACTIVE("Inactive"); private final String value; - private AddressRequirement(final String value) { + private EmergencyStatus(final String value) { this.value = value; } @@ -411,8 +409,8 @@ public String toString() { } @JsonCreator - public static AddressRequirement forValue(final String value) { - return Promoter.enumFromString(value, AddressRequirement.values()); + public static EmergencyStatus forValue(final String value) { + return Promoter.enumFromString(value, EmergencyStatus.values()); } } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/call/Payment.java b/src/main/java/com/twilio/rest/api/v2010/account/call/Payment.java index 67de22b7d8..648ce5f217 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/call/Payment.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/call/Payment.java @@ -257,26 +257,6 @@ public static TokenType forValue(final String value) { } } - public enum Status { - COMPLETE("complete"), - CANCEL("cancel"); - - private final String value; - - private Status(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); - } - } - public enum BankAccountType { CONSUMER_CHECKING("consumer-checking"), CONSUMER_SAVINGS("consumer-savings"), @@ -321,4 +301,24 @@ public static Capture forValue(final String value) { return Promoter.enumFromString(value, Capture.values()); } } + + public enum Status { + COMPLETE("complete"), + CANCEL("cancel"); + + private final String value; + + private Status(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); + } + } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/call/Siprec.java b/src/main/java/com/twilio/rest/api/v2010/account/call/Siprec.java index 4ea6611bcb..376b870d65 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/call/Siprec.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/call/Siprec.java @@ -200,14 +200,12 @@ public int hashCode() { ); } - public enum Track { - INBOUND_TRACK("inbound_track"), - OUTBOUND_TRACK("outbound_track"), - BOTH_TRACKS("both_tracks"); + public enum UpdateStatus { + STOPPED("stopped"); private final String value; - private Track(final String value) { + private UpdateStatus(final String value) { this.value = value; } @@ -216,18 +214,19 @@ public String toString() { } @JsonCreator - public static Track forValue(final String value) { - return Promoter.enumFromString(value, Track.values()); + public static UpdateStatus forValue(final String value) { + return Promoter.enumFromString(value, UpdateStatus.values()); } } - public enum Status { - IN_PROGRESS("in-progress"), - STOPPED("stopped"); + public enum Track { + INBOUND_TRACK("inbound_track"), + OUTBOUND_TRACK("outbound_track"), + BOTH_TRACKS("both_tracks"); private final String value; - private Status(final String value) { + private Track(final String value) { this.value = value; } @@ -236,17 +235,18 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static Track forValue(final String value) { + return Promoter.enumFromString(value, Track.values()); } } - public enum UpdateStatus { + public enum Status { + IN_PROGRESS("in-progress"), STOPPED("stopped"); private final String value; - private UpdateStatus(final String value) { + private Status(final String value) { this.value = value; } @@ -255,8 +255,8 @@ public String toString() { } @JsonCreator - public static UpdateStatus forValue(final String value) { - return Promoter.enumFromString(value, UpdateStatus.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/call/Transcription.java b/src/main/java/com/twilio/rest/api/v2010/account/call/Transcription.java index a65a7162b0..1f1083335a 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/call/Transcription.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/call/Transcription.java @@ -205,12 +205,14 @@ public int hashCode() { ); } - public enum UpdateStatus { - STOPPED("stopped"); + public enum Track { + INBOUND_TRACK("inbound_track"), + OUTBOUND_TRACK("outbound_track"), + BOTH_TRACKS("both_tracks"); private final String value; - private UpdateStatus(final String value) { + private Track(final String value) { this.value = value; } @@ -219,18 +221,17 @@ public String toString() { } @JsonCreator - public static UpdateStatus forValue(final String value) { - return Promoter.enumFromString(value, UpdateStatus.values()); + public static Track forValue(final String value) { + return Promoter.enumFromString(value, Track.values()); } } - public enum Status { - IN_PROGRESS("in-progress"), + public enum UpdateStatus { STOPPED("stopped"); private final String value; - private Status(final String value) { + private UpdateStatus(final String value) { this.value = value; } @@ -239,19 +240,18 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static UpdateStatus forValue(final String value) { + return Promoter.enumFromString(value, UpdateStatus.values()); } } - public enum Track { - INBOUND_TRACK("inbound_track"), - OUTBOUND_TRACK("outbound_track"), - BOTH_TRACKS("both_tracks"); + public enum Status { + IN_PROGRESS("in-progress"), + STOPPED("stopped"); private final String value; - private Track(final String value) { + private Status(final String value) { this.value = value; } @@ -260,8 +260,8 @@ public String toString() { } @JsonCreator - public static Track forValue(final String value) { - return Promoter.enumFromString(value, Track.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Local.java b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Local.java index 0f442d0c1b..801ff7fc75 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Local.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Local.java @@ -502,13 +502,17 @@ public static AddressRequirement forValue(final String value) { } } - public enum VoiceReceiveMode { - VOICE("voice"), - FAX("fax"); + public enum EmergencyAddressStatus { + REGISTERED("registered"), + UNREGISTERED("unregistered"), + PENDING_REGISTRATION("pending-registration"), + REGISTRATION_FAILURE("registration-failure"), + PENDING_UNREGISTRATION("pending-unregistration"), + UNREGISTRATION_FAILURE("unregistration-failure"); private final String value; - private VoiceReceiveMode(final String value) { + private EmergencyAddressStatus(final String value) { this.value = value; } @@ -517,22 +521,21 @@ public String toString() { } @JsonCreator - public static VoiceReceiveMode forValue(final String value) { - return Promoter.enumFromString(value, VoiceReceiveMode.values()); + public static EmergencyAddressStatus forValue(final String value) { + return Promoter.enumFromString( + value, + EmergencyAddressStatus.values() + ); } } - public enum EmergencyAddressStatus { - REGISTERED("registered"), - UNREGISTERED("unregistered"), - PENDING_REGISTRATION("pending-registration"), - REGISTRATION_FAILURE("registration-failure"), - PENDING_UNREGISTRATION("pending-unregistration"), - UNREGISTRATION_FAILURE("unregistration-failure"); + public enum VoiceReceiveMode { + VOICE("voice"), + FAX("fax"); private final String value; - private EmergencyAddressStatus(final String value) { + private VoiceReceiveMode(final String value) { this.value = value; } @@ -541,11 +544,8 @@ public String toString() { } @JsonCreator - public static EmergencyAddressStatus forValue(final String value) { - return Promoter.enumFromString( - value, - EmergencyAddressStatus.values() - ); + public static VoiceReceiveMode forValue(final String value) { + return Promoter.enumFromString(value, VoiceReceiveMode.values()); } } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Mobile.java b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Mobile.java index b5fb764c93..62c6156f9e 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Mobile.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/Mobile.java @@ -460,13 +460,17 @@ public int hashCode() { ); } - public enum VoiceReceiveMode { - VOICE("voice"), - FAX("fax"); + public enum EmergencyAddressStatus { + REGISTERED("registered"), + UNREGISTERED("unregistered"), + PENDING_REGISTRATION("pending-registration"), + REGISTRATION_FAILURE("registration-failure"), + PENDING_UNREGISTRATION("pending-unregistration"), + UNREGISTRATION_FAILURE("unregistration-failure"); private final String value; - private VoiceReceiveMode(final String value) { + private EmergencyAddressStatus(final String value) { this.value = value; } @@ -475,22 +479,23 @@ public String toString() { } @JsonCreator - public static VoiceReceiveMode forValue(final String value) { - return Promoter.enumFromString(value, VoiceReceiveMode.values()); + public static EmergencyAddressStatus forValue(final String value) { + return Promoter.enumFromString( + value, + EmergencyAddressStatus.values() + ); } } - public enum EmergencyAddressStatus { - REGISTERED("registered"), - UNREGISTERED("unregistered"), - PENDING_REGISTRATION("pending-registration"), - REGISTRATION_FAILURE("registration-failure"), - PENDING_UNREGISTRATION("pending-unregistration"), - UNREGISTRATION_FAILURE("unregistration-failure"); + public enum AddressRequirement { + NONE("none"), + ANY("any"), + LOCAL("local"), + FOREIGN("foreign"); private final String value; - private EmergencyAddressStatus(final String value) { + private AddressRequirement(final String value) { this.value = value; } @@ -499,11 +504,8 @@ public String toString() { } @JsonCreator - public static EmergencyAddressStatus forValue(final String value) { - return Promoter.enumFromString( - value, - EmergencyAddressStatus.values() - ); + public static AddressRequirement forValue(final String value) { + return Promoter.enumFromString(value, AddressRequirement.values()); } } @@ -527,15 +529,13 @@ public static EmergencyStatus forValue(final String value) { } } - public enum AddressRequirement { - NONE("none"), - ANY("any"), - LOCAL("local"), - FOREIGN("foreign"); + public enum VoiceReceiveMode { + VOICE("voice"), + FAX("fax"); private final String value; - private AddressRequirement(final String value) { + private VoiceReceiveMode(final String value) { this.value = value; } @@ -544,8 +544,8 @@ public String toString() { } @JsonCreator - public static AddressRequirement forValue(final String value) { - return Promoter.enumFromString(value, AddressRequirement.values()); + public static VoiceReceiveMode forValue(final String value) { + return Promoter.enumFromString(value, VoiceReceiveMode.values()); } } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/TollFree.java b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/TollFree.java index 4f6292d9a0..4e1e3cf74c 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/TollFree.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/incomingphonenumber/TollFree.java @@ -460,13 +460,13 @@ public int hashCode() { ); } - public enum EmergencyStatus { - ACTIVE("Active"), - INACTIVE("Inactive"); + public enum VoiceReceiveMode { + VOICE("voice"), + FAX("fax"); private final String value; - private EmergencyStatus(final String value) { + private VoiceReceiveMode(final String value) { this.value = value; } @@ -475,18 +475,20 @@ public String toString() { } @JsonCreator - public static EmergencyStatus forValue(final String value) { - return Promoter.enumFromString(value, EmergencyStatus.values()); + public static VoiceReceiveMode forValue(final String value) { + return Promoter.enumFromString(value, VoiceReceiveMode.values()); } } - public enum VoiceReceiveMode { - VOICE("voice"), - FAX("fax"); + public enum AddressRequirement { + NONE("none"), + ANY("any"), + LOCAL("local"), + FOREIGN("foreign"); private final String value; - private VoiceReceiveMode(final String value) { + private AddressRequirement(final String value) { this.value = value; } @@ -495,22 +497,18 @@ public String toString() { } @JsonCreator - public static VoiceReceiveMode forValue(final String value) { - return Promoter.enumFromString(value, VoiceReceiveMode.values()); + public static AddressRequirement forValue(final String value) { + return Promoter.enumFromString(value, AddressRequirement.values()); } } - public enum EmergencyAddressStatus { - REGISTERED("registered"), - UNREGISTERED("unregistered"), - PENDING_REGISTRATION("pending-registration"), - REGISTRATION_FAILURE("registration-failure"), - PENDING_UNREGISTRATION("pending-unregistration"), - UNREGISTRATION_FAILURE("unregistration-failure"); + public enum EmergencyStatus { + ACTIVE("Active"), + INACTIVE("Inactive"); private final String value; - private EmergencyAddressStatus(final String value) { + private EmergencyStatus(final String value) { this.value = value; } @@ -519,23 +517,22 @@ public String toString() { } @JsonCreator - public static EmergencyAddressStatus forValue(final String value) { - return Promoter.enumFromString( - value, - EmergencyAddressStatus.values() - ); + public static EmergencyStatus forValue(final String value) { + return Promoter.enumFromString(value, EmergencyStatus.values()); } } - public enum AddressRequirement { - NONE("none"), - ANY("any"), - LOCAL("local"), - FOREIGN("foreign"); + public enum EmergencyAddressStatus { + REGISTERED("registered"), + UNREGISTERED("unregistered"), + PENDING_REGISTRATION("pending-registration"), + REGISTRATION_FAILURE("registration-failure"), + PENDING_UNREGISTRATION("pending-unregistration"), + UNREGISTRATION_FAILURE("unregistration-failure"); private final String value; - private AddressRequirement(final String value) { + private EmergencyAddressStatus(final String value) { this.value = value; } @@ -544,8 +541,11 @@ public String toString() { } @JsonCreator - public static AddressRequirement forValue(final String value) { - return Promoter.enumFromString(value, AddressRequirement.values()); + public static EmergencyAddressStatus forValue(final String value) { + return Promoter.enumFromString( + value, + EmergencyAddressStatus.values() + ); } } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/Record.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/Record.java index 910bd9713f..5c05e36626 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/Record.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/Record.java @@ -264,33 +264,107 @@ public int hashCode() { } public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), AMAZON_POLLY("amazon-polly"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), AUTHY_AUTHENTICATIONS("authy-authentications"), AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), CALL_PROGESS_EVENTS("call-progess-events"), CALLERIDLOOKUPS("calleridlookups"), CALLS("calls"), CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), CALLS_GLOBALCONFERENCE("calls-globalconference"), CALLS_INBOUND("calls-inbound"), CALLS_INBOUND_LOCAL("calls-inbound-local"), CALLS_INBOUND_MOBILE("calls-inbound-mobile"), CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), CALLS_OUTBOUND("calls-outbound"), CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), CALLS_RECORDINGS("calls-recordings"), CALLS_SIP("calls-sip"), CALLS_SIP_INBOUND("calls-sip-inbound"), CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), CALLS_TRANSFERS("calls-transfers"), CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), CONVERSATIONS("conversations"), CONVERSATIONS_API_REQUESTS("conversations-api-requests"), CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), @@ -301,8 +375,42 @@ public enum Category { CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), CONVERSATIONS_PARTICIPANTS("conversations-participants"), CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), GROUP_ROOMS("group-rooms"), GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( @@ -314,9 +422,19 @@ public enum Category { GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), - IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), LOOKUPS("lookups"), MARKETPLACE("marketplace"), MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( @@ -329,6 +447,15 @@ public enum Category { MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( "marketplace-deepgram-phrase-detector" ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( "marketplace-digital-segment-business-info" ), @@ -356,6 +483,9 @@ public enum Category { "marketplace-keen-io-contact-center-analytics" ), MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( "marketplace-marchex-sentiment-analysis-for-sms" ), @@ -372,16 +502,46 @@ public enum Category { "marketplace-nextcaller-advanced-caller-identification" ), MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( "marketplace-payfone-tcpa-compliance" ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( "marketplace-remeeting-automatic-speech-recognition" ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( "marketplace-tcpa-defense-solutions-blacklist-feed" ), MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( "marketplace-twilio-caller-name-lookup-us" @@ -396,6 +556,9 @@ public enum Category { MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( "marketplace-voicebase-transcription-custom-vocabulary" ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( "marketplace-whitepages-pro-caller-identification" ), @@ -412,15 +575,23 @@ public enum Category { MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( "marketplace-ytica-contact-center-reporting-analytics" ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), MMS("mms"), MMS_INBOUND("mms-inbound"), MMS_INBOUND_LONGCODE("mms-inbound-longcode"), MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), MMS_OUTBOUND("mms-outbound"), MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), MONITOR_READS("monitor-reads"), MONITOR_STORAGE("monitor-storage"), MONITOR_WRITES("monitor-writes"), @@ -429,6 +600,12 @@ public enum Category { NOTIFY_CHANNELS("notify-channels"), NUMBER_FORMAT_LOOKUPS("number-format-lookups"), PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), PCHAT_USERS("pchat-users"), PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( "peer-to-peer-rooms-participant-minutes" @@ -438,18 +615,47 @@ public enum Category { PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), PHONENUMBERS("phonenumbers"), PHONENUMBERS_CPS("phonenumbers-cps"), PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), PHONENUMBERS_LOCAL("phonenumbers-local"), PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), PHONENUMBERS_SETUPS("phonenumbers-setups"), PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), PROXY("proxy"), PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), @@ -465,18 +671,20 @@ public enum Category { PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), PV_ROOMS("pv-rooms"), PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), RECORDINGS("recordings"), RECORDINGSTORAGE("recordingstorage"), - ROOMS_GROUP_BANDWIDTH("rooms-group-bandwidth"), - ROOMS_GROUP_MINUTES("rooms-group-minutes"), - ROOMS_PEER_TO_PEER_MINUTES("rooms-peer-to-peer-minutes"), SHORTCODES("shortcodes"), SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), SHORTCODES_MPS("shortcodes-mps"), SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), SHORTCODES_UK("shortcodes-uk"), SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), SMALL_GROUP_ROOMS("small-group-rooms"), SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( @@ -486,13 +694,32 @@ public enum Category { SMS_INBOUND("sms-inbound"), SMS_INBOUND_LONGCODE("sms-inbound-longcode"), SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), SMS_OUTBOUND("sms-outbound"), SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), SPEECH_RECOGNITION("speech-recognition"), STUDIO_ENGAGEMENTS("studio-engagements"), SYNC("sync"), @@ -524,13 +751,29 @@ public enum Category { TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), TURNMEGABYTES_USEAST("turnmegabytes-useast"), TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( "verify-whatsapp-conversations-business-initiated" ), VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), VIRTUAL_AGENT("virtual-agent"), VOICE_INSIGHTS("voice-insights"), VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( @@ -546,14 +789,119 @@ public enum Category { "voice-insights-sip-trunking-insights-on-demand-minute" ), VOICE_INTELLIGENCE("voice-intelligence"), - VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), WIRELESS_ORDERS("wireless-orders"), WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), WIRELESS_ORDERS_BULK("wireless-orders-bulk"), WIRELESS_ORDERS_ESIM("wireless-orders-esim"), WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), WIRELESS_USAGE("wireless-usage"), WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), @@ -612,7 +960,217 @@ public enum Category { WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), WIRELESS_USAGE_SMS("wireless-usage-sms"), - WIRELESS_USAGE_VOICE("wireless-usage-voice"); + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); private final String value; diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/Trigger.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/Trigger.java index f55d09ee3c..e18017d6e6 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/Trigger.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/Trigger.java @@ -320,55 +320,108 @@ public int hashCode() { ); } - public enum TriggerField { - COUNT("count"), - USAGE("usage"), - PRICE("price"); - - private final String value; - - private TriggerField(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static TriggerField forValue(final String value) { - return Promoter.enumFromString(value, TriggerField.values()); - } - } - public enum UsageCategory { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), AMAZON_POLLY("amazon-polly"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), AUTHY_AUTHENTICATIONS("authy-authentications"), AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), CALL_PROGESS_EVENTS("call-progess-events"), CALLERIDLOOKUPS("calleridlookups"), CALLS("calls"), CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), CALLS_GLOBALCONFERENCE("calls-globalconference"), CALLS_INBOUND("calls-inbound"), CALLS_INBOUND_LOCAL("calls-inbound-local"), CALLS_INBOUND_MOBILE("calls-inbound-mobile"), CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), CALLS_OUTBOUND("calls-outbound"), CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), CALLS_RECORDINGS("calls-recordings"), CALLS_SIP("calls-sip"), CALLS_SIP_INBOUND("calls-sip-inbound"), CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), CALLS_TRANSFERS("calls-transfers"), CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), CONVERSATIONS("conversations"), CONVERSATIONS_API_REQUESTS("conversations-api-requests"), CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), @@ -379,8 +432,42 @@ public enum UsageCategory { CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), CONVERSATIONS_PARTICIPANTS("conversations-participants"), CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), GROUP_ROOMS("group-rooms"), GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( @@ -392,9 +479,19 @@ public enum UsageCategory { GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), - IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), LOOKUPS("lookups"), MARKETPLACE("marketplace"), MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( @@ -407,6 +504,15 @@ public enum UsageCategory { MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( "marketplace-deepgram-phrase-detector" ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( "marketplace-digital-segment-business-info" ), @@ -434,6 +540,9 @@ public enum UsageCategory { "marketplace-keen-io-contact-center-analytics" ), MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( "marketplace-marchex-sentiment-analysis-for-sms" ), @@ -450,16 +559,46 @@ public enum UsageCategory { "marketplace-nextcaller-advanced-caller-identification" ), MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( "marketplace-payfone-tcpa-compliance" ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( "marketplace-remeeting-automatic-speech-recognition" ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( "marketplace-tcpa-defense-solutions-blacklist-feed" ), MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( "marketplace-twilio-caller-name-lookup-us" @@ -474,6 +613,9 @@ public enum UsageCategory { MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( "marketplace-voicebase-transcription-custom-vocabulary" ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( "marketplace-whitepages-pro-caller-identification" ), @@ -490,15 +632,23 @@ public enum UsageCategory { MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( "marketplace-ytica-contact-center-reporting-analytics" ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), MMS("mms"), MMS_INBOUND("mms-inbound"), MMS_INBOUND_LONGCODE("mms-inbound-longcode"), MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), MMS_OUTBOUND("mms-outbound"), MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), MONITOR_READS("monitor-reads"), MONITOR_STORAGE("monitor-storage"), MONITOR_WRITES("monitor-writes"), @@ -507,6 +657,12 @@ public enum UsageCategory { NOTIFY_CHANNELS("notify-channels"), NUMBER_FORMAT_LOOKUPS("number-format-lookups"), PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), PCHAT_USERS("pchat-users"), PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( "peer-to-peer-rooms-participant-minutes" @@ -516,18 +672,47 @@ public enum UsageCategory { PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), PHONENUMBERS("phonenumbers"), PHONENUMBERS_CPS("phonenumbers-cps"), PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), PHONENUMBERS_LOCAL("phonenumbers-local"), PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), PHONENUMBERS_SETUPS("phonenumbers-setups"), PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), PROXY("proxy"), PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), @@ -543,18 +728,20 @@ public enum UsageCategory { PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), PV_ROOMS("pv-rooms"), PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), RECORDINGS("recordings"), RECORDINGSTORAGE("recordingstorage"), - ROOMS_GROUP_BANDWIDTH("rooms-group-bandwidth"), - ROOMS_GROUP_MINUTES("rooms-group-minutes"), - ROOMS_PEER_TO_PEER_MINUTES("rooms-peer-to-peer-minutes"), SHORTCODES("shortcodes"), SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), SHORTCODES_MPS("shortcodes-mps"), SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), SHORTCODES_UK("shortcodes-uk"), SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), SMALL_GROUP_ROOMS("small-group-rooms"), SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( @@ -564,13 +751,32 @@ public enum UsageCategory { SMS_INBOUND("sms-inbound"), SMS_INBOUND_LONGCODE("sms-inbound-longcode"), SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), SMS_OUTBOUND("sms-outbound"), SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), SPEECH_RECOGNITION("speech-recognition"), STUDIO_ENGAGEMENTS("studio-engagements"), SYNC("sync"), @@ -602,13 +808,29 @@ public enum UsageCategory { TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), TURNMEGABYTES_USEAST("turnmegabytes-useast"), TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( "verify-whatsapp-conversations-business-initiated" ), VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), VIRTUAL_AGENT("virtual-agent"), VOICE_INSIGHTS("voice-insights"), VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( @@ -624,14 +846,119 @@ public enum UsageCategory { "voice-insights-sip-trunking-insights-on-demand-minute" ), VOICE_INTELLIGENCE("voice-intelligence"), - VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), WIRELESS_ORDERS("wireless-orders"), WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), WIRELESS_ORDERS_BULK("wireless-orders-bulk"), WIRELESS_ORDERS_ESIM("wireless-orders-esim"), WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), WIRELESS_USAGE("wireless-usage"), WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), @@ -690,7 +1017,217 @@ public enum UsageCategory { WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), WIRELESS_USAGE_SMS("wireless-usage-sms"), - WIRELESS_USAGE_VOICE("wireless-usage-voice"); + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); private final String value; @@ -729,4 +1266,25 @@ public static Recurring forValue(final String value) { return Promoter.enumFromString(value, Recurring.values()); } } + + public enum TriggerField { + COUNT("count"), + USAGE("usage"), + PRICE("price"); + + private final String value; + + private TriggerField(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static TriggerField forValue(final String value) { + return Promoter.enumFromString(value, TriggerField.values()); + } + } } diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTime.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTime.java index fd8722d8a9..2e5e8e1938 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTime.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/AllTime.java @@ -264,33 +264,107 @@ public int hashCode() { } public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), AMAZON_POLLY("amazon-polly"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), AUTHY_AUTHENTICATIONS("authy-authentications"), AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), CALL_PROGESS_EVENTS("call-progess-events"), CALLERIDLOOKUPS("calleridlookups"), CALLS("calls"), CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), CALLS_GLOBALCONFERENCE("calls-globalconference"), CALLS_INBOUND("calls-inbound"), CALLS_INBOUND_LOCAL("calls-inbound-local"), CALLS_INBOUND_MOBILE("calls-inbound-mobile"), CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), CALLS_OUTBOUND("calls-outbound"), CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), CALLS_RECORDINGS("calls-recordings"), CALLS_SIP("calls-sip"), CALLS_SIP_INBOUND("calls-sip-inbound"), CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), CALLS_TRANSFERS("calls-transfers"), CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), CONVERSATIONS("conversations"), CONVERSATIONS_API_REQUESTS("conversations-api-requests"), CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), @@ -301,8 +375,42 @@ public enum Category { CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), CONVERSATIONS_PARTICIPANTS("conversations-participants"), CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), GROUP_ROOMS("group-rooms"), GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( @@ -314,9 +422,19 @@ public enum Category { GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), - IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), LOOKUPS("lookups"), MARKETPLACE("marketplace"), MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( @@ -329,6 +447,15 @@ public enum Category { MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( "marketplace-deepgram-phrase-detector" ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( "marketplace-digital-segment-business-info" ), @@ -356,6 +483,9 @@ public enum Category { "marketplace-keen-io-contact-center-analytics" ), MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( "marketplace-marchex-sentiment-analysis-for-sms" ), @@ -372,16 +502,46 @@ public enum Category { "marketplace-nextcaller-advanced-caller-identification" ), MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( "marketplace-payfone-tcpa-compliance" ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( "marketplace-remeeting-automatic-speech-recognition" ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( "marketplace-tcpa-defense-solutions-blacklist-feed" ), MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( "marketplace-twilio-caller-name-lookup-us" @@ -396,6 +556,9 @@ public enum Category { MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( "marketplace-voicebase-transcription-custom-vocabulary" ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( "marketplace-whitepages-pro-caller-identification" ), @@ -412,15 +575,23 @@ public enum Category { MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( "marketplace-ytica-contact-center-reporting-analytics" ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), MMS("mms"), MMS_INBOUND("mms-inbound"), MMS_INBOUND_LONGCODE("mms-inbound-longcode"), MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), MMS_OUTBOUND("mms-outbound"), MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), MONITOR_READS("monitor-reads"), MONITOR_STORAGE("monitor-storage"), MONITOR_WRITES("monitor-writes"), @@ -429,6 +600,12 @@ public enum Category { NOTIFY_CHANNELS("notify-channels"), NUMBER_FORMAT_LOOKUPS("number-format-lookups"), PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), PCHAT_USERS("pchat-users"), PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( "peer-to-peer-rooms-participant-minutes" @@ -438,18 +615,47 @@ public enum Category { PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), PHONENUMBERS("phonenumbers"), PHONENUMBERS_CPS("phonenumbers-cps"), PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), PHONENUMBERS_LOCAL("phonenumbers-local"), PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), PHONENUMBERS_SETUPS("phonenumbers-setups"), PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), PROXY("proxy"), PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), @@ -465,18 +671,20 @@ public enum Category { PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), PV_ROOMS("pv-rooms"), PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), RECORDINGS("recordings"), RECORDINGSTORAGE("recordingstorage"), - ROOMS_GROUP_BANDWIDTH("rooms-group-bandwidth"), - ROOMS_GROUP_MINUTES("rooms-group-minutes"), - ROOMS_PEER_TO_PEER_MINUTES("rooms-peer-to-peer-minutes"), SHORTCODES("shortcodes"), SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), SHORTCODES_MPS("shortcodes-mps"), SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), SHORTCODES_UK("shortcodes-uk"), SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), SMALL_GROUP_ROOMS("small-group-rooms"), SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( @@ -486,13 +694,32 @@ public enum Category { SMS_INBOUND("sms-inbound"), SMS_INBOUND_LONGCODE("sms-inbound-longcode"), SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), SMS_OUTBOUND("sms-outbound"), SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), SPEECH_RECOGNITION("speech-recognition"), STUDIO_ENGAGEMENTS("studio-engagements"), SYNC("sync"), @@ -524,13 +751,29 @@ public enum Category { TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), TURNMEGABYTES_USEAST("turnmegabytes-useast"), TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( "verify-whatsapp-conversations-business-initiated" ), VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), VIRTUAL_AGENT("virtual-agent"), VOICE_INSIGHTS("voice-insights"), VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( @@ -546,14 +789,119 @@ public enum Category { "voice-insights-sip-trunking-insights-on-demand-minute" ), VOICE_INTELLIGENCE("voice-intelligence"), - VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), WIRELESS_ORDERS("wireless-orders"), WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), WIRELESS_ORDERS_BULK("wireless-orders-bulk"), WIRELESS_ORDERS_ESIM("wireless-orders-esim"), WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), WIRELESS_USAGE("wireless-usage"), WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), @@ -612,7 +960,217 @@ public enum Category { WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), WIRELESS_USAGE_SMS("wireless-usage-sms"), - WIRELESS_USAGE_VOICE("wireless-usage-voice"); + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); private final String value; diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Daily.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Daily.java index c7c5d74ee4..c562e8b219 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Daily.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Daily.java @@ -264,33 +264,107 @@ public int hashCode() { } public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), AMAZON_POLLY("amazon-polly"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), AUTHY_AUTHENTICATIONS("authy-authentications"), AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), CALL_PROGESS_EVENTS("call-progess-events"), CALLERIDLOOKUPS("calleridlookups"), CALLS("calls"), CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), CALLS_GLOBALCONFERENCE("calls-globalconference"), CALLS_INBOUND("calls-inbound"), CALLS_INBOUND_LOCAL("calls-inbound-local"), CALLS_INBOUND_MOBILE("calls-inbound-mobile"), CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), CALLS_OUTBOUND("calls-outbound"), CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), CALLS_RECORDINGS("calls-recordings"), CALLS_SIP("calls-sip"), CALLS_SIP_INBOUND("calls-sip-inbound"), CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), CALLS_TRANSFERS("calls-transfers"), CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), CONVERSATIONS("conversations"), CONVERSATIONS_API_REQUESTS("conversations-api-requests"), CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), @@ -301,8 +375,42 @@ public enum Category { CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), CONVERSATIONS_PARTICIPANTS("conversations-participants"), CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), GROUP_ROOMS("group-rooms"), GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( @@ -314,9 +422,19 @@ public enum Category { GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), - IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), LOOKUPS("lookups"), MARKETPLACE("marketplace"), MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( @@ -329,6 +447,15 @@ public enum Category { MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( "marketplace-deepgram-phrase-detector" ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( "marketplace-digital-segment-business-info" ), @@ -356,6 +483,9 @@ public enum Category { "marketplace-keen-io-contact-center-analytics" ), MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( "marketplace-marchex-sentiment-analysis-for-sms" ), @@ -372,16 +502,46 @@ public enum Category { "marketplace-nextcaller-advanced-caller-identification" ), MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( "marketplace-payfone-tcpa-compliance" ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( "marketplace-remeeting-automatic-speech-recognition" ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( "marketplace-tcpa-defense-solutions-blacklist-feed" ), MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( "marketplace-twilio-caller-name-lookup-us" @@ -396,6 +556,9 @@ public enum Category { MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( "marketplace-voicebase-transcription-custom-vocabulary" ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( "marketplace-whitepages-pro-caller-identification" ), @@ -412,15 +575,23 @@ public enum Category { MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( "marketplace-ytica-contact-center-reporting-analytics" ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), MMS("mms"), MMS_INBOUND("mms-inbound"), MMS_INBOUND_LONGCODE("mms-inbound-longcode"), MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), MMS_OUTBOUND("mms-outbound"), MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), MONITOR_READS("monitor-reads"), MONITOR_STORAGE("monitor-storage"), MONITOR_WRITES("monitor-writes"), @@ -429,6 +600,12 @@ public enum Category { NOTIFY_CHANNELS("notify-channels"), NUMBER_FORMAT_LOOKUPS("number-format-lookups"), PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), PCHAT_USERS("pchat-users"), PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( "peer-to-peer-rooms-participant-minutes" @@ -438,18 +615,47 @@ public enum Category { PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), PHONENUMBERS("phonenumbers"), PHONENUMBERS_CPS("phonenumbers-cps"), PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), PHONENUMBERS_LOCAL("phonenumbers-local"), PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), PHONENUMBERS_SETUPS("phonenumbers-setups"), PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), PROXY("proxy"), PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), @@ -465,18 +671,20 @@ public enum Category { PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), PV_ROOMS("pv-rooms"), PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), RECORDINGS("recordings"), RECORDINGSTORAGE("recordingstorage"), - ROOMS_GROUP_BANDWIDTH("rooms-group-bandwidth"), - ROOMS_GROUP_MINUTES("rooms-group-minutes"), - ROOMS_PEER_TO_PEER_MINUTES("rooms-peer-to-peer-minutes"), SHORTCODES("shortcodes"), SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), SHORTCODES_MPS("shortcodes-mps"), SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), SHORTCODES_UK("shortcodes-uk"), SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), SMALL_GROUP_ROOMS("small-group-rooms"), SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( @@ -486,13 +694,32 @@ public enum Category { SMS_INBOUND("sms-inbound"), SMS_INBOUND_LONGCODE("sms-inbound-longcode"), SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), SMS_OUTBOUND("sms-outbound"), SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), SPEECH_RECOGNITION("speech-recognition"), STUDIO_ENGAGEMENTS("studio-engagements"), SYNC("sync"), @@ -524,13 +751,29 @@ public enum Category { TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), TURNMEGABYTES_USEAST("turnmegabytes-useast"), TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( "verify-whatsapp-conversations-business-initiated" ), VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), VIRTUAL_AGENT("virtual-agent"), VOICE_INSIGHTS("voice-insights"), VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( @@ -546,14 +789,119 @@ public enum Category { "voice-insights-sip-trunking-insights-on-demand-minute" ), VOICE_INTELLIGENCE("voice-intelligence"), - VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), WIRELESS_ORDERS("wireless-orders"), WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), WIRELESS_ORDERS_BULK("wireless-orders-bulk"), WIRELESS_ORDERS_ESIM("wireless-orders-esim"), WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), WIRELESS_USAGE("wireless-usage"), WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), @@ -612,7 +960,217 @@ public enum Category { WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), WIRELESS_USAGE_SMS("wireless-usage-sms"), - WIRELESS_USAGE_VOICE("wireless-usage-voice"); + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); private final String value; diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonth.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonth.java index ba3d37df82..471a20a4d8 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonth.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/LastMonth.java @@ -264,33 +264,107 @@ public int hashCode() { } public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), AMAZON_POLLY("amazon-polly"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), AUTHY_AUTHENTICATIONS("authy-authentications"), AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), CALL_PROGESS_EVENTS("call-progess-events"), CALLERIDLOOKUPS("calleridlookups"), CALLS("calls"), CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), CALLS_GLOBALCONFERENCE("calls-globalconference"), CALLS_INBOUND("calls-inbound"), CALLS_INBOUND_LOCAL("calls-inbound-local"), CALLS_INBOUND_MOBILE("calls-inbound-mobile"), CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), CALLS_OUTBOUND("calls-outbound"), CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), CALLS_RECORDINGS("calls-recordings"), CALLS_SIP("calls-sip"), CALLS_SIP_INBOUND("calls-sip-inbound"), CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), CALLS_TRANSFERS("calls-transfers"), CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), CONVERSATIONS("conversations"), CONVERSATIONS_API_REQUESTS("conversations-api-requests"), CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), @@ -301,8 +375,42 @@ public enum Category { CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), CONVERSATIONS_PARTICIPANTS("conversations-participants"), CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), GROUP_ROOMS("group-rooms"), GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( @@ -314,9 +422,19 @@ public enum Category { GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), - IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), LOOKUPS("lookups"), MARKETPLACE("marketplace"), MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( @@ -329,6 +447,15 @@ public enum Category { MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( "marketplace-deepgram-phrase-detector" ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( "marketplace-digital-segment-business-info" ), @@ -356,6 +483,9 @@ public enum Category { "marketplace-keen-io-contact-center-analytics" ), MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( "marketplace-marchex-sentiment-analysis-for-sms" ), @@ -372,16 +502,46 @@ public enum Category { "marketplace-nextcaller-advanced-caller-identification" ), MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( "marketplace-payfone-tcpa-compliance" ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( "marketplace-remeeting-automatic-speech-recognition" ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( "marketplace-tcpa-defense-solutions-blacklist-feed" ), MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( "marketplace-twilio-caller-name-lookup-us" @@ -396,6 +556,9 @@ public enum Category { MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( "marketplace-voicebase-transcription-custom-vocabulary" ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( "marketplace-whitepages-pro-caller-identification" ), @@ -412,15 +575,23 @@ public enum Category { MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( "marketplace-ytica-contact-center-reporting-analytics" ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), MMS("mms"), MMS_INBOUND("mms-inbound"), MMS_INBOUND_LONGCODE("mms-inbound-longcode"), MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), MMS_OUTBOUND("mms-outbound"), MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), MONITOR_READS("monitor-reads"), MONITOR_STORAGE("monitor-storage"), MONITOR_WRITES("monitor-writes"), @@ -429,6 +600,12 @@ public enum Category { NOTIFY_CHANNELS("notify-channels"), NUMBER_FORMAT_LOOKUPS("number-format-lookups"), PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), PCHAT_USERS("pchat-users"), PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( "peer-to-peer-rooms-participant-minutes" @@ -438,18 +615,47 @@ public enum Category { PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), PHONENUMBERS("phonenumbers"), PHONENUMBERS_CPS("phonenumbers-cps"), PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), PHONENUMBERS_LOCAL("phonenumbers-local"), PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), PHONENUMBERS_SETUPS("phonenumbers-setups"), PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), PROXY("proxy"), PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), @@ -465,18 +671,20 @@ public enum Category { PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), PV_ROOMS("pv-rooms"), PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), RECORDINGS("recordings"), RECORDINGSTORAGE("recordingstorage"), - ROOMS_GROUP_BANDWIDTH("rooms-group-bandwidth"), - ROOMS_GROUP_MINUTES("rooms-group-minutes"), - ROOMS_PEER_TO_PEER_MINUTES("rooms-peer-to-peer-minutes"), SHORTCODES("shortcodes"), SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), SHORTCODES_MPS("shortcodes-mps"), SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), SHORTCODES_UK("shortcodes-uk"), SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), SMALL_GROUP_ROOMS("small-group-rooms"), SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( @@ -486,13 +694,32 @@ public enum Category { SMS_INBOUND("sms-inbound"), SMS_INBOUND_LONGCODE("sms-inbound-longcode"), SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), SMS_OUTBOUND("sms-outbound"), SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), SPEECH_RECOGNITION("speech-recognition"), STUDIO_ENGAGEMENTS("studio-engagements"), SYNC("sync"), @@ -524,13 +751,29 @@ public enum Category { TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), TURNMEGABYTES_USEAST("turnmegabytes-useast"), TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( "verify-whatsapp-conversations-business-initiated" ), VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), VIRTUAL_AGENT("virtual-agent"), VOICE_INSIGHTS("voice-insights"), VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( @@ -546,14 +789,119 @@ public enum Category { "voice-insights-sip-trunking-insights-on-demand-minute" ), VOICE_INTELLIGENCE("voice-intelligence"), - VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), WIRELESS_ORDERS("wireless-orders"), WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), WIRELESS_ORDERS_BULK("wireless-orders-bulk"), WIRELESS_ORDERS_ESIM("wireless-orders-esim"), WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), WIRELESS_USAGE("wireless-usage"), WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), @@ -612,7 +960,217 @@ public enum Category { WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), WIRELESS_USAGE_SMS("wireless-usage-sms"), - WIRELESS_USAGE_VOICE("wireless-usage-voice"); + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); private final String value; diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Monthly.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Monthly.java index 9c206841cc..315837e39e 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Monthly.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Monthly.java @@ -264,33 +264,107 @@ public int hashCode() { } public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), AMAZON_POLLY("amazon-polly"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), AUTHY_AUTHENTICATIONS("authy-authentications"), AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), CALL_PROGESS_EVENTS("call-progess-events"), CALLERIDLOOKUPS("calleridlookups"), CALLS("calls"), CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), CALLS_GLOBALCONFERENCE("calls-globalconference"), CALLS_INBOUND("calls-inbound"), CALLS_INBOUND_LOCAL("calls-inbound-local"), CALLS_INBOUND_MOBILE("calls-inbound-mobile"), CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), CALLS_OUTBOUND("calls-outbound"), CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), CALLS_RECORDINGS("calls-recordings"), CALLS_SIP("calls-sip"), CALLS_SIP_INBOUND("calls-sip-inbound"), CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), CALLS_TRANSFERS("calls-transfers"), CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), CONVERSATIONS("conversations"), CONVERSATIONS_API_REQUESTS("conversations-api-requests"), CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), @@ -301,8 +375,42 @@ public enum Category { CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), CONVERSATIONS_PARTICIPANTS("conversations-participants"), CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), GROUP_ROOMS("group-rooms"), GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( @@ -314,9 +422,19 @@ public enum Category { GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), - IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), LOOKUPS("lookups"), MARKETPLACE("marketplace"), MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( @@ -329,6 +447,15 @@ public enum Category { MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( "marketplace-deepgram-phrase-detector" ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( "marketplace-digital-segment-business-info" ), @@ -356,6 +483,9 @@ public enum Category { "marketplace-keen-io-contact-center-analytics" ), MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( "marketplace-marchex-sentiment-analysis-for-sms" ), @@ -372,16 +502,46 @@ public enum Category { "marketplace-nextcaller-advanced-caller-identification" ), MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( "marketplace-payfone-tcpa-compliance" ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( "marketplace-remeeting-automatic-speech-recognition" ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( "marketplace-tcpa-defense-solutions-blacklist-feed" ), MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( "marketplace-twilio-caller-name-lookup-us" @@ -396,6 +556,9 @@ public enum Category { MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( "marketplace-voicebase-transcription-custom-vocabulary" ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( "marketplace-whitepages-pro-caller-identification" ), @@ -412,15 +575,23 @@ public enum Category { MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( "marketplace-ytica-contact-center-reporting-analytics" ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), MMS("mms"), MMS_INBOUND("mms-inbound"), MMS_INBOUND_LONGCODE("mms-inbound-longcode"), MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), MMS_OUTBOUND("mms-outbound"), MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), MONITOR_READS("monitor-reads"), MONITOR_STORAGE("monitor-storage"), MONITOR_WRITES("monitor-writes"), @@ -429,6 +600,12 @@ public enum Category { NOTIFY_CHANNELS("notify-channels"), NUMBER_FORMAT_LOOKUPS("number-format-lookups"), PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), PCHAT_USERS("pchat-users"), PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( "peer-to-peer-rooms-participant-minutes" @@ -438,18 +615,47 @@ public enum Category { PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), PHONENUMBERS("phonenumbers"), PHONENUMBERS_CPS("phonenumbers-cps"), PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), PHONENUMBERS_LOCAL("phonenumbers-local"), PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), PHONENUMBERS_SETUPS("phonenumbers-setups"), PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), PROXY("proxy"), PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), @@ -465,18 +671,20 @@ public enum Category { PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), PV_ROOMS("pv-rooms"), PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), RECORDINGS("recordings"), RECORDINGSTORAGE("recordingstorage"), - ROOMS_GROUP_BANDWIDTH("rooms-group-bandwidth"), - ROOMS_GROUP_MINUTES("rooms-group-minutes"), - ROOMS_PEER_TO_PEER_MINUTES("rooms-peer-to-peer-minutes"), SHORTCODES("shortcodes"), SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), SHORTCODES_MPS("shortcodes-mps"), SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), SHORTCODES_UK("shortcodes-uk"), SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), SMALL_GROUP_ROOMS("small-group-rooms"), SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( @@ -486,13 +694,32 @@ public enum Category { SMS_INBOUND("sms-inbound"), SMS_INBOUND_LONGCODE("sms-inbound-longcode"), SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), SMS_OUTBOUND("sms-outbound"), SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), SPEECH_RECOGNITION("speech-recognition"), STUDIO_ENGAGEMENTS("studio-engagements"), SYNC("sync"), @@ -524,13 +751,29 @@ public enum Category { TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), TURNMEGABYTES_USEAST("turnmegabytes-useast"), TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( "verify-whatsapp-conversations-business-initiated" ), VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), VIRTUAL_AGENT("virtual-agent"), VOICE_INSIGHTS("voice-insights"), VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( @@ -546,14 +789,119 @@ public enum Category { "voice-insights-sip-trunking-insights-on-demand-minute" ), VOICE_INTELLIGENCE("voice-intelligence"), - VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), WIRELESS_ORDERS("wireless-orders"), WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), WIRELESS_ORDERS_BULK("wireless-orders-bulk"), WIRELESS_ORDERS_ESIM("wireless-orders-esim"), WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), WIRELESS_USAGE("wireless-usage"), WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), @@ -612,7 +960,217 @@ public enum Category { WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), WIRELESS_USAGE_SMS("wireless-usage-sms"), - WIRELESS_USAGE_VOICE("wireless-usage-voice"); + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); private final String value; diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonth.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonth.java index 27854116a2..f0799a55f9 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonth.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/ThisMonth.java @@ -264,33 +264,107 @@ public int hashCode() { } public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), AMAZON_POLLY("amazon-polly"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), AUTHY_AUTHENTICATIONS("authy-authentications"), AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), CALL_PROGESS_EVENTS("call-progess-events"), CALLERIDLOOKUPS("calleridlookups"), CALLS("calls"), CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), CALLS_GLOBALCONFERENCE("calls-globalconference"), CALLS_INBOUND("calls-inbound"), CALLS_INBOUND_LOCAL("calls-inbound-local"), CALLS_INBOUND_MOBILE("calls-inbound-mobile"), CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), CALLS_OUTBOUND("calls-outbound"), CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), CALLS_RECORDINGS("calls-recordings"), CALLS_SIP("calls-sip"), CALLS_SIP_INBOUND("calls-sip-inbound"), CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), CALLS_TRANSFERS("calls-transfers"), CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), CONVERSATIONS("conversations"), CONVERSATIONS_API_REQUESTS("conversations-api-requests"), CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), @@ -301,8 +375,42 @@ public enum Category { CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), CONVERSATIONS_PARTICIPANTS("conversations-participants"), CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), GROUP_ROOMS("group-rooms"), GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( @@ -314,9 +422,19 @@ public enum Category { GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), - IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), LOOKUPS("lookups"), MARKETPLACE("marketplace"), MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( @@ -329,6 +447,15 @@ public enum Category { MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( "marketplace-deepgram-phrase-detector" ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( "marketplace-digital-segment-business-info" ), @@ -356,6 +483,9 @@ public enum Category { "marketplace-keen-io-contact-center-analytics" ), MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( "marketplace-marchex-sentiment-analysis-for-sms" ), @@ -372,16 +502,46 @@ public enum Category { "marketplace-nextcaller-advanced-caller-identification" ), MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( "marketplace-payfone-tcpa-compliance" ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( "marketplace-remeeting-automatic-speech-recognition" ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( "marketplace-tcpa-defense-solutions-blacklist-feed" ), MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( "marketplace-twilio-caller-name-lookup-us" @@ -396,6 +556,9 @@ public enum Category { MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( "marketplace-voicebase-transcription-custom-vocabulary" ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( "marketplace-whitepages-pro-caller-identification" ), @@ -412,15 +575,23 @@ public enum Category { MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( "marketplace-ytica-contact-center-reporting-analytics" ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), MMS("mms"), MMS_INBOUND("mms-inbound"), MMS_INBOUND_LONGCODE("mms-inbound-longcode"), MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), MMS_OUTBOUND("mms-outbound"), MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), MONITOR_READS("monitor-reads"), MONITOR_STORAGE("monitor-storage"), MONITOR_WRITES("monitor-writes"), @@ -429,6 +600,12 @@ public enum Category { NOTIFY_CHANNELS("notify-channels"), NUMBER_FORMAT_LOOKUPS("number-format-lookups"), PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), PCHAT_USERS("pchat-users"), PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( "peer-to-peer-rooms-participant-minutes" @@ -438,18 +615,47 @@ public enum Category { PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), PHONENUMBERS("phonenumbers"), PHONENUMBERS_CPS("phonenumbers-cps"), PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), PHONENUMBERS_LOCAL("phonenumbers-local"), PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), PHONENUMBERS_SETUPS("phonenumbers-setups"), PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), PROXY("proxy"), PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), @@ -465,18 +671,20 @@ public enum Category { PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), PV_ROOMS("pv-rooms"), PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), RECORDINGS("recordings"), RECORDINGSTORAGE("recordingstorage"), - ROOMS_GROUP_BANDWIDTH("rooms-group-bandwidth"), - ROOMS_GROUP_MINUTES("rooms-group-minutes"), - ROOMS_PEER_TO_PEER_MINUTES("rooms-peer-to-peer-minutes"), SHORTCODES("shortcodes"), SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), SHORTCODES_MPS("shortcodes-mps"), SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), SHORTCODES_UK("shortcodes-uk"), SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), SMALL_GROUP_ROOMS("small-group-rooms"), SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( @@ -486,13 +694,32 @@ public enum Category { SMS_INBOUND("sms-inbound"), SMS_INBOUND_LONGCODE("sms-inbound-longcode"), SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), SMS_OUTBOUND("sms-outbound"), SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), SPEECH_RECOGNITION("speech-recognition"), STUDIO_ENGAGEMENTS("studio-engagements"), SYNC("sync"), @@ -524,13 +751,29 @@ public enum Category { TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), TURNMEGABYTES_USEAST("turnmegabytes-useast"), TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( "verify-whatsapp-conversations-business-initiated" ), VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), VIRTUAL_AGENT("virtual-agent"), VOICE_INSIGHTS("voice-insights"), VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( @@ -546,14 +789,119 @@ public enum Category { "voice-insights-sip-trunking-insights-on-demand-minute" ), VOICE_INTELLIGENCE("voice-intelligence"), - VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), WIRELESS_ORDERS("wireless-orders"), WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), WIRELESS_ORDERS_BULK("wireless-orders-bulk"), WIRELESS_ORDERS_ESIM("wireless-orders-esim"), WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), WIRELESS_USAGE("wireless-usage"), WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), @@ -612,7 +960,217 @@ public enum Category { WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), WIRELESS_USAGE_SMS("wireless-usage-sms"), - WIRELESS_USAGE_VOICE("wireless-usage-voice"); + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); private final String value; diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Today.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Today.java index 932f55601d..38c0f84024 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Today.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Today.java @@ -264,33 +264,107 @@ public int hashCode() { } public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), AMAZON_POLLY("amazon-polly"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), AUTHY_AUTHENTICATIONS("authy-authentications"), AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), CALL_PROGESS_EVENTS("call-progess-events"), CALLERIDLOOKUPS("calleridlookups"), CALLS("calls"), CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), CALLS_GLOBALCONFERENCE("calls-globalconference"), CALLS_INBOUND("calls-inbound"), CALLS_INBOUND_LOCAL("calls-inbound-local"), CALLS_INBOUND_MOBILE("calls-inbound-mobile"), CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), CALLS_OUTBOUND("calls-outbound"), CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), CALLS_RECORDINGS("calls-recordings"), CALLS_SIP("calls-sip"), CALLS_SIP_INBOUND("calls-sip-inbound"), CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), CALLS_TRANSFERS("calls-transfers"), CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), CONVERSATIONS("conversations"), CONVERSATIONS_API_REQUESTS("conversations-api-requests"), CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), @@ -301,8 +375,42 @@ public enum Category { CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), CONVERSATIONS_PARTICIPANTS("conversations-participants"), CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), GROUP_ROOMS("group-rooms"), GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( @@ -314,9 +422,19 @@ public enum Category { GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), - IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), LOOKUPS("lookups"), MARKETPLACE("marketplace"), MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( @@ -329,6 +447,15 @@ public enum Category { MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( "marketplace-deepgram-phrase-detector" ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( "marketplace-digital-segment-business-info" ), @@ -356,6 +483,9 @@ public enum Category { "marketplace-keen-io-contact-center-analytics" ), MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( "marketplace-marchex-sentiment-analysis-for-sms" ), @@ -372,16 +502,46 @@ public enum Category { "marketplace-nextcaller-advanced-caller-identification" ), MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( "marketplace-payfone-tcpa-compliance" ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( "marketplace-remeeting-automatic-speech-recognition" ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( "marketplace-tcpa-defense-solutions-blacklist-feed" ), MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( "marketplace-twilio-caller-name-lookup-us" @@ -396,6 +556,9 @@ public enum Category { MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( "marketplace-voicebase-transcription-custom-vocabulary" ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( "marketplace-whitepages-pro-caller-identification" ), @@ -412,15 +575,23 @@ public enum Category { MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( "marketplace-ytica-contact-center-reporting-analytics" ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), MMS("mms"), MMS_INBOUND("mms-inbound"), MMS_INBOUND_LONGCODE("mms-inbound-longcode"), MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), MMS_OUTBOUND("mms-outbound"), MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), MONITOR_READS("monitor-reads"), MONITOR_STORAGE("monitor-storage"), MONITOR_WRITES("monitor-writes"), @@ -429,6 +600,12 @@ public enum Category { NOTIFY_CHANNELS("notify-channels"), NUMBER_FORMAT_LOOKUPS("number-format-lookups"), PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), PCHAT_USERS("pchat-users"), PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( "peer-to-peer-rooms-participant-minutes" @@ -438,18 +615,47 @@ public enum Category { PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), PHONENUMBERS("phonenumbers"), PHONENUMBERS_CPS("phonenumbers-cps"), PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), PHONENUMBERS_LOCAL("phonenumbers-local"), PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), PHONENUMBERS_SETUPS("phonenumbers-setups"), PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), PROXY("proxy"), PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), @@ -465,18 +671,20 @@ public enum Category { PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), PV_ROOMS("pv-rooms"), PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), RECORDINGS("recordings"), RECORDINGSTORAGE("recordingstorage"), - ROOMS_GROUP_BANDWIDTH("rooms-group-bandwidth"), - ROOMS_GROUP_MINUTES("rooms-group-minutes"), - ROOMS_PEER_TO_PEER_MINUTES("rooms-peer-to-peer-minutes"), SHORTCODES("shortcodes"), SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), SHORTCODES_MPS("shortcodes-mps"), SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), SHORTCODES_UK("shortcodes-uk"), SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), SMALL_GROUP_ROOMS("small-group-rooms"), SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( @@ -486,13 +694,32 @@ public enum Category { SMS_INBOUND("sms-inbound"), SMS_INBOUND_LONGCODE("sms-inbound-longcode"), SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), SMS_OUTBOUND("sms-outbound"), SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), SPEECH_RECOGNITION("speech-recognition"), STUDIO_ENGAGEMENTS("studio-engagements"), SYNC("sync"), @@ -524,13 +751,29 @@ public enum Category { TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), TURNMEGABYTES_USEAST("turnmegabytes-useast"), TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( "verify-whatsapp-conversations-business-initiated" ), VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), VIRTUAL_AGENT("virtual-agent"), VOICE_INSIGHTS("voice-insights"), VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( @@ -546,14 +789,119 @@ public enum Category { "voice-insights-sip-trunking-insights-on-demand-minute" ), VOICE_INTELLIGENCE("voice-intelligence"), - VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), WIRELESS_ORDERS("wireless-orders"), WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), WIRELESS_ORDERS_BULK("wireless-orders-bulk"), WIRELESS_ORDERS_ESIM("wireless-orders-esim"), WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), WIRELESS_USAGE("wireless-usage"), WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), @@ -612,7 +960,217 @@ public enum Category { WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), WIRELESS_USAGE_SMS("wireless-usage-sms"), - WIRELESS_USAGE_VOICE("wireless-usage-voice"); + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); private final String value; diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yearly.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yearly.java index 15493d09c2..bc447957ac 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yearly.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yearly.java @@ -264,33 +264,107 @@ public int hashCode() { } public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), AMAZON_POLLY("amazon-polly"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), AUTHY_AUTHENTICATIONS("authy-authentications"), AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), CALL_PROGESS_EVENTS("call-progess-events"), CALLERIDLOOKUPS("calleridlookups"), CALLS("calls"), CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), CALLS_GLOBALCONFERENCE("calls-globalconference"), CALLS_INBOUND("calls-inbound"), CALLS_INBOUND_LOCAL("calls-inbound-local"), CALLS_INBOUND_MOBILE("calls-inbound-mobile"), CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), CALLS_OUTBOUND("calls-outbound"), CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), CALLS_RECORDINGS("calls-recordings"), CALLS_SIP("calls-sip"), CALLS_SIP_INBOUND("calls-sip-inbound"), CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), CALLS_TRANSFERS("calls-transfers"), CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), CONVERSATIONS("conversations"), CONVERSATIONS_API_REQUESTS("conversations-api-requests"), CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), @@ -301,8 +375,42 @@ public enum Category { CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), CONVERSATIONS_PARTICIPANTS("conversations-participants"), CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), GROUP_ROOMS("group-rooms"), GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( @@ -314,9 +422,19 @@ public enum Category { GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), - IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), LOOKUPS("lookups"), MARKETPLACE("marketplace"), MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( @@ -329,6 +447,15 @@ public enum Category { MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( "marketplace-deepgram-phrase-detector" ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( "marketplace-digital-segment-business-info" ), @@ -356,6 +483,9 @@ public enum Category { "marketplace-keen-io-contact-center-analytics" ), MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( "marketplace-marchex-sentiment-analysis-for-sms" ), @@ -372,16 +502,46 @@ public enum Category { "marketplace-nextcaller-advanced-caller-identification" ), MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( "marketplace-payfone-tcpa-compliance" ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( "marketplace-remeeting-automatic-speech-recognition" ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( "marketplace-tcpa-defense-solutions-blacklist-feed" ), MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( "marketplace-twilio-caller-name-lookup-us" @@ -396,6 +556,9 @@ public enum Category { MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( "marketplace-voicebase-transcription-custom-vocabulary" ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( "marketplace-whitepages-pro-caller-identification" ), @@ -412,15 +575,23 @@ public enum Category { MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( "marketplace-ytica-contact-center-reporting-analytics" ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), MMS("mms"), MMS_INBOUND("mms-inbound"), MMS_INBOUND_LONGCODE("mms-inbound-longcode"), MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), MMS_OUTBOUND("mms-outbound"), MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), MONITOR_READS("monitor-reads"), MONITOR_STORAGE("monitor-storage"), MONITOR_WRITES("monitor-writes"), @@ -429,6 +600,12 @@ public enum Category { NOTIFY_CHANNELS("notify-channels"), NUMBER_FORMAT_LOOKUPS("number-format-lookups"), PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), PCHAT_USERS("pchat-users"), PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( "peer-to-peer-rooms-participant-minutes" @@ -438,18 +615,47 @@ public enum Category { PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), PHONENUMBERS("phonenumbers"), PHONENUMBERS_CPS("phonenumbers-cps"), PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), PHONENUMBERS_LOCAL("phonenumbers-local"), PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), PHONENUMBERS_SETUPS("phonenumbers-setups"), PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), PROXY("proxy"), PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), @@ -465,18 +671,20 @@ public enum Category { PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), PV_ROOMS("pv-rooms"), PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), RECORDINGS("recordings"), RECORDINGSTORAGE("recordingstorage"), - ROOMS_GROUP_BANDWIDTH("rooms-group-bandwidth"), - ROOMS_GROUP_MINUTES("rooms-group-minutes"), - ROOMS_PEER_TO_PEER_MINUTES("rooms-peer-to-peer-minutes"), SHORTCODES("shortcodes"), SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), SHORTCODES_MPS("shortcodes-mps"), SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), SHORTCODES_UK("shortcodes-uk"), SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), SMALL_GROUP_ROOMS("small-group-rooms"), SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( @@ -486,13 +694,32 @@ public enum Category { SMS_INBOUND("sms-inbound"), SMS_INBOUND_LONGCODE("sms-inbound-longcode"), SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), SMS_OUTBOUND("sms-outbound"), SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), SPEECH_RECOGNITION("speech-recognition"), STUDIO_ENGAGEMENTS("studio-engagements"), SYNC("sync"), @@ -524,13 +751,29 @@ public enum Category { TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), TURNMEGABYTES_USEAST("turnmegabytes-useast"), TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( "verify-whatsapp-conversations-business-initiated" ), VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), VIRTUAL_AGENT("virtual-agent"), VOICE_INSIGHTS("voice-insights"), VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( @@ -546,14 +789,119 @@ public enum Category { "voice-insights-sip-trunking-insights-on-demand-minute" ), VOICE_INTELLIGENCE("voice-intelligence"), - VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), WIRELESS_ORDERS("wireless-orders"), WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), WIRELESS_ORDERS_BULK("wireless-orders-bulk"), WIRELESS_ORDERS_ESIM("wireless-orders-esim"), WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), WIRELESS_USAGE("wireless-usage"), WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), @@ -612,7 +960,217 @@ public enum Category { WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), WIRELESS_USAGE_SMS("wireless-usage-sms"), - WIRELESS_USAGE_VOICE("wireless-usage-voice"); + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); private final String value; diff --git a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yesterday.java b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yesterday.java index 78d22d0180..f271504c4b 100644 --- a/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yesterday.java +++ b/src/main/java/com/twilio/rest/api/v2010/account/usage/record/Yesterday.java @@ -264,33 +264,107 @@ public int hashCode() { } public enum Category { + A2P_10DLC_REGISTRATIONFEES_BRANDREGISTRATION( + "a2p-10dlc-registrationfees-brandregistration" + ), + A2P_10DLC_REGISTRATIONFEES_BV("a2p-10dlc-registrationfees-bv"), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNCHARGES( + "a2p-10dlc-registrationfees-campaigncharges" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNREGISTRATION( + "a2p-10dlc-registrationfees-campaignregistration" + ), + A2P_10DLC_REGISTRATIONFEES_CAMPAIGNVETTING( + "a2p-10dlc-registrationfees-campaignvetting" + ), + A2P_10DLC_REGISTRATIONFEES_MONTHLY( + "a2p-10dlc-registrationfees-monthly" + ), + A2P_10DLC_REGISTRATIONFEES_ONETIME( + "a2p-10dlc-registrationfees-onetime" + ), A2P_REGISTRATION_FEES("a2p-registration-fees"), + ACCOUNT_SECURITY("account-security"), AGENT_CONFERENCE("agent-conference"), + AGENT_COPILOT("agent-copilot"), + AGENT_COPILOT_MESSAGES("agent-copilot-messages"), + AGENT_COPILOT_PARTICIPANT_MINUTES("agent-copilot-participant-minutes"), + AI_ASSISTANTS("ai-assistants"), + AI_ASSISTANTS_VOICE("ai-assistants-voice"), AMAZON_POLLY("amazon-polly"), ANSWERING_MACHINE_DETECTION("answering-machine-detection"), + ASSETS("assets"), + AUDIENCE_MINUTES("audience-minutes"), + AUDIENCE_MINUTES_AUDIO("audience-minutes-audio"), AUTHY_AUTHENTICATIONS("authy-authentications"), AUTHY_CALLS_OUTBOUND("authy-calls-outbound"), + AUTHY_EMAIL_AUTHENTICATIONS("authy-email-authentications"), AUTHY_MONTHLY_FEES("authy-monthly-fees"), + AUTHY_OUTBOUND_EMAIL("authy-outbound-email"), AUTHY_PHONE_INTELLIGENCE("authy-phone-intelligence"), AUTHY_PHONE_VERIFICATIONS("authy-phone-verifications"), AUTHY_SMS_OUTBOUND("authy-sms-outbound"), + AUTHY_VERIFY_EMAIL_VERIFICATIONS("authy-verify-email-verifications"), + AUTHY_VERIFY_OUTBOUND_EMAIL("authy-verify-outbound-email"), + AUTOPILOT("autopilot"), + AUTOPILOT_HOME_ASSISTANTS("autopilot-home-assistants"), + AUTOPILOT_MESSAGING("autopilot-messaging"), + AUTOPILOT_OTHER("autopilot-other"), + AUTOPILOT_VOICE("autopilot-voice"), + BASIC_PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( + "basic-peer-to-peer-rooms-participant-minutes" + ), + BRANDED_CALLING("branded-calling"), + BUNDLE_SMS_BUCKET("bundle-sms-bucket"), + BUNDLE_SUBSCRIPTION_FEES("bundle-subscription-fees"), + CALL_FORWARDING_LOOKUPS("call-forwarding-lookups"), CALL_PROGESS_EVENTS("call-progess-events"), CALLERIDLOOKUPS("calleridlookups"), CALLS("calls"), CALLS_CLIENT("calls-client"), + CALLS_EMERGENCY("calls-emergency"), CALLS_GLOBALCONFERENCE("calls-globalconference"), CALLS_INBOUND("calls-inbound"), CALLS_INBOUND_LOCAL("calls-inbound-local"), CALLS_INBOUND_MOBILE("calls-inbound-mobile"), CALLS_INBOUND_TOLLFREE("calls-inbound-tollfree"), + CALLS_INBOUND_TOLLFREE_LOCAL("calls-inbound-tollfree-local"), + CALLS_INBOUND_TOLLFREE_MOBILE("calls-inbound-tollfree-mobile"), + CALLS_MEDIA_STREAM_MINUTES("calls-media-stream-minutes"), CALLS_OUTBOUND("calls-outbound"), CALLS_PAY_VERB_TRANSACTIONS("calls-pay-verb-transactions"), CALLS_RECORDINGS("calls-recordings"), CALLS_SIP("calls-sip"), CALLS_SIP_INBOUND("calls-sip-inbound"), CALLS_SIP_OUTBOUND("calls-sip-outbound"), + CALLS_TEXT_TO_SPEECH("calls-text-to-speech"), CALLS_TRANSFERS("calls-transfers"), CARRIER_LOOKUPS("carrier-lookups"), + CATEGORY("category"), + CHANNELS("channels"), + CHANNELS_MESSAGING("channels-messaging"), + CHANNELS_MESSAGING_INBOUND("channels-messaging-inbound"), + CHANNELS_MESSAGING_OUTBOUND("channels-messaging-outbound"), + CHANNELS_WHATSAPP("channels-whatsapp"), + CHANNELS_WHATSAPP_CONVERSATION_AUTHENTICATION( + "channels-whatsapp-conversation-authentication" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE( + "channels-whatsapp-conversation-free" + ), + CHANNELS_WHATSAPP_CONVERSATION_MARKETING( + "channels-whatsapp-conversation-marketing" + ), + CHANNELS_WHATSAPP_CONVERSATION_SERVICE( + "channels-whatsapp-conversation-service" + ), + CHANNELS_WHATSAPP_CONVERSATION_UTILITY( + "channels-whatsapp-conversation-utility" + ), + CHANNELS_WHATSAPP_INBOUND("channels-whatsapp-inbound"), + CHANNELS_WHATSAPP_OUTBOUND("channels-whatsapp-outbound"), + CHAT_VIRTUAL_AGENT("chat-virtual-agent"), + CONVERSATION_RELAY("conversation-relay"), CONVERSATIONS("conversations"), CONVERSATIONS_API_REQUESTS("conversations-api-requests"), CONVERSATIONS_CONVERSATION_EVENTS("conversations-conversation-events"), @@ -301,8 +375,42 @@ public enum Category { CONVERSATIONS_PARTICIPANT_EVENTS("conversations-participant-events"), CONVERSATIONS_PARTICIPANTS("conversations-participants"), CPS("cps"), + CREDIT_TRANSFER("credit-transfer"), + EMAIL("email"), + EMERGING_TECH("emerging-tech"), + ENGAGEMENT_SUITE_PACKAGED_PLANS("engagement-suite-packaged-plans"), + ENHANCED_LINE_TYPE_LOOKUPS("enhanced-line-type-lookups"), + ENTERPRISE("enterprise"), + EVENTS("events"), + EXPERIMENT_FRANCE_SMS("experiment-france-sms"), + EXPERIMENT_INDIA_SMS("experiment-india-sms"), + EXPERIMENT_UK_SMS("experiment-uk-sms"), + FAILED_MESSAGE_PROCESSING_FEE("failed-message-processing-fee"), + FLEX("flex"), + FLEX_ACTIVE_USER_HOURS("flex-active-user-hours"), + FLEX_CONCURRENT_USERS("flex-concurrent-users"), + FLEX_CONVERSATIONAL_INSIGHTS("flex-conversational-insights"), + FLEX_CONVERSATIONAL_INSIGHTS_MESSAGES( + "flex-conversational-insights-messages" + ), + FLEX_CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "flex-conversational-insights-voice-minutes" + ), + FLEX_EMAIL_USAGE("flex-email-usage"), + FLEX_MESSAGING_USAGE("flex-messaging-usage"), + FLEX_PARTNER_SPINSCI("flex-partner-spinsci"), + FLEX_PARTNER_XCELERATE("flex-partner-xcelerate"), + FLEX_RESELLER_ECOSYSTEM("flex-reseller-ecosystem"), + FLEX_UNIQUE_USER("flex-unique-user"), FLEX_USAGE("flex-usage"), + FLEX_USERS("flex-users"), + FLEX_VOICE_MINUTE("flex-voice-minute"), + FLEX_YTICA("flex-ytica"), FRAUD_LOOKUPS("fraud-lookups"), + FRONTLINE("frontline"), + FRONTLINE_USERS("frontline-users"), + FUNCTIONS("functions"), + GENERIC_PAY_TRANSACTIONS("generic-pay-transactions"), GROUP_ROOMS("group-rooms"), GROUP_ROOMS_DATA_TRACK("group-rooms-data-track"), GROUP_ROOMS_ENCRYPTED_MEDIA_RECORDED( @@ -314,9 +422,19 @@ public enum Category { GROUP_ROOMS_MEDIA_STORED("group-rooms-media-stored"), GROUP_ROOMS_PARTICIPANT_MINUTES("group-rooms-participant-minutes"), GROUP_ROOMS_RECORDED_MINUTES("group-rooms-recorded-minutes"), - IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING("ip-messaging"), + IP_MESSAGING_COMMANDS("ip-messaging-commands"), + IP_MESSAGING_DATA_STORAGE("ip-messaging-data-storage"), + IP_MESSAGING_DATA_TRANSFER("ip-messaging-data-transfer"), + IP_MESSAGING_ENDPOINT_CONNECTIVITY( + "ip-messaging-endpoint-connectivity" + ), IVR_VIRTUAL_AGENT_CUSTOM_VOICES("ivr-virtual-agent-custom-voices"), IVR_VIRTUAL_AGENT_GENAI("ivr-virtual-agent-genai"), + LINE_STATUS_LOOKUPS("line-status-lookups"), + LIVE_ACTIVITY_LOOKUPS("live-activity-lookups"), + LOOKUP_BUCKET_ADJUSTMENT("lookup-bucket-adjustment"), + LOOKUP_IDENTITY_MATCH("lookup-identity-match"), LOOKUPS("lookups"), MARKETPLACE("marketplace"), MARKETPLACE_ALGORITHMIA_NAMED_ENTITY_RECOGNITION( @@ -329,6 +447,15 @@ public enum Category { MARKETPLACE_DEEPGRAM_PHRASE_DETECTOR( "marketplace-deepgram-phrase-detector" ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION( + "marketplace-deepgram-transcription" + ), + MARKETPLACE_DEEPGRAM_TRANSCRIPTION_BASE( + "marketplace-deepgram-transcription-base" + ), + MARKETPLACE_DEEPGRAM_TRANSSCRIPTION_ENHANCED( + "marketplace-deepgram-transscription-enhanced" + ), MARKETPLACE_DIGITAL_SEGMENT_BUSINESS_INFO( "marketplace-digital-segment-business-info" ), @@ -356,6 +483,9 @@ public enum Category { "marketplace-keen-io-contact-center-analytics" ), MARKETPLACE_MARCHEX_CLEANCALL("marketplace-marchex-cleancall"), + MARKETPLACE_MARCHEX_RECORDING_ANALYSIS( + "marketplace-marchex-recording-analysis" + ), MARKETPLACE_MARCHEX_SENTIMENT_ANALYSIS_FOR_SMS( "marketplace-marchex-sentiment-analysis-for-sms" ), @@ -372,16 +502,46 @@ public enum Category { "marketplace-nextcaller-advanced-caller-identification" ), MARKETPLACE_NOMOROBO_SPAM_SCORE("marketplace-nomorobo-spam-score"), + MARKETPLACE_PAY_ADDONS("marketplace-pay-addons"), + MARKETPLACE_PAY_ADDONS_BASECOMMERCE_PAY_CONNECTOR( + "marketplace-pay-addons-basecommerce-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_BRAINTREE_PAY_CONNECTOR( + "marketplace-pay-addons-braintree-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CARDCONNECT_PAY_CONNECTOR( + "marketplace-pay-addons-cardconnect-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_CHASE_PAY_CONNECTOR( + "marketplace-pay-addons-chase-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplace-pay-addons-shuttle-pay-connector" + ), + MARKETPLACE_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplace-pay-addons-stripe-pay-connector" + ), MARKETPLACE_PAYFONE_TCPA_COMPLIANCE( "marketplace-payfone-tcpa-compliance" ), + MARKETPLACE_POLY_AI_CONNECTOR("marketplace-poly-ai-connector"), + MARKETPLACE_REALPHONEVALIDATION("marketplace-realphonevalidation"), MARKETPLACE_REMEETING_AUTOMATIC_SPEECH_RECOGNITION( "marketplace-remeeting-automatic-speech-recognition" ), + MARKETPLACE_SPOKE_PHONE_LICENSE_PRO( + "marketplace-spoke-phone-license-pro" + ), + MARKETPLACE_SPOKE_PHONE_LICENSE_STANDARD( + "marketplace-spoke-phone-license-standard" + ), MARKETPLACE_TCPA_DEFENSE_SOLUTIONS_BLACKLIST_FEED( "marketplace-tcpa-defense-solutions-blacklist-feed" ), MARKETPLACE_TELO_OPENCNAM("marketplace-telo-opencnam"), + MARKETPLACE_TRESTLE_SOLUTIONS_CALLER_IDENTIFICATION( + "marketplace-trestle-solutions-caller-identification" + ), MARKETPLACE_TRUECNAM_TRUE_SPAM("marketplace-truecnam-true-spam"), MARKETPLACE_TWILIO_CALLER_NAME_LOOKUP_US( "marketplace-twilio-caller-name-lookup-us" @@ -396,6 +556,9 @@ public enum Category { MARKETPLACE_VOICEBASE_TRANSCRIPTION_CUSTOM_VOCABULARY( "marketplace-voicebase-transcription-custom-vocabulary" ), + MARKETPLACE_WEB_PURIFY_PROFANITY_FILTER( + "marketplace-web-purify-profanity-filter" + ), MARKETPLACE_WHITEPAGES_PRO_CALLER_IDENTIFICATION( "marketplace-whitepages-pro-caller-identification" ), @@ -412,15 +575,23 @@ public enum Category { MARKETPLACE_YTICA_CONTACT_CENTER_REPORTING_ANALYTICS( "marketplace-ytica-contact-center-reporting-analytics" ), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR( + "marketplay-pay-addons-shuttle-pay-connector" + ), + MEDIA_COMPOSER_MINUTES("media-composer-minutes"), MEDIASTORAGE("mediastorage"), + MIN_SPEND_ADJUSTMENTS("min-spend-adjustments"), MMS("mms"), MMS_INBOUND("mms-inbound"), MMS_INBOUND_LONGCODE("mms-inbound-longcode"), MMS_INBOUND_SHORTCODE("mms-inbound-shortcode"), + MMS_INBOUND_TOLL_FREE("mms-inbound-toll-free"), MMS_MESSAGES_CARRIERFEES("mms-messages-carrierfees"), MMS_OUTBOUND("mms-outbound"), MMS_OUTBOUND_LONGCODE("mms-outbound-longcode"), MMS_OUTBOUND_SHORTCODE("mms-outbound-shortcode"), + MMS_OUTBOUND_TOLLFREE("mms-outbound-tollfree"), + MONITOR("monitor"), MONITOR_READS("monitor-reads"), MONITOR_STORAGE("monitor-storage"), MONITOR_WRITES("monitor-writes"), @@ -429,6 +600,12 @@ public enum Category { NOTIFY_CHANNELS("notify-channels"), NUMBER_FORMAT_LOOKUPS("number-format-lookups"), PCHAT("pchat"), + PCHAT_ACTIONS("pchat-actions"), + PCHAT_APS("pchat-aps"), + PCHAT_CONV_MED_STORAGE("pchat-conv-med-storage"), + PCHAT_MESSAGES("pchat-messages"), + PCHAT_NOTIFICATIONS("pchat-notifications"), + PCHAT_READS("pchat-reads"), PCHAT_USERS("pchat-users"), PEER_TO_PEER_ROOMS_PARTICIPANT_MINUTES( "peer-to-peer-rooms-participant-minutes" @@ -438,18 +615,47 @@ public enum Category { PFAX_MINUTES_INBOUND("pfax-minutes-inbound"), PFAX_MINUTES_OUTBOUND("pfax-minutes-outbound"), PFAX_PAGES("pfax-pages"), + PHONE_QUALITY_SCORE_LOOKUPS("phone-quality-score-lookups"), PHONENUMBERS("phonenumbers"), PHONENUMBERS_CPS("phonenumbers-cps"), PHONENUMBERS_EMERGENCY("phonenumbers-emergency"), PHONENUMBERS_LOCAL("phonenumbers-local"), PHONENUMBERS_MOBILE("phonenumbers-mobile"), + PHONENUMBERS_PORTING("phonenumbers-porting"), PHONENUMBERS_SETUPS("phonenumbers-setups"), PHONENUMBERS_TOLLFREE("phonenumbers-tollfree"), PREMIUMSUPPORT("premiumsupport"), + PREMIUMSUPPORT_PERCENTAGE_SPEND("premiumsupport-percentage-spend"), + PROGRAMMABLEVOICE_PLATFORM("programmablevoice-platform"), + PROGRAMMABLEVOICECONN_CLIENTSDK("programmablevoiceconn-clientsdk"), + PROGRAMMABLEVOICECONN_CLIENTSDK_INBOUND( + "programmablevoiceconn-clientsdk-inbound" + ), + PROGRAMMABLEVOICECONN_CLIENTSDK_OUTBOUND( + "programmablevoiceconn-clientsdk-outbound" + ), + PROGRAMMABLEVOICECONN_ONNET("programmablevoiceconn-onnet"), + PROGRAMMABLEVOICECONN_ONNET_INBOUND( + "programmablevoiceconn-onnet-inbound" + ), + PROGRAMMABLEVOICECONN_ONNET_OUTBOUND( + "programmablevoiceconn-onnet-outbound" + ), + PROGRAMMABLEVOICECONN_SIP("programmablevoiceconn-sip"), + PROGRAMMABLEVOICECONN_SIP_INBOUND("programmablevoiceconn-sip-inbound"), + PROGRAMMABLEVOICECONN_SIP_OUTBOUND( + "programmablevoiceconn-sip-outbound" + ), + PROGRAMMABLEVOICECONNECTIVITY("programmablevoiceconnectivity"), PROXY("proxy"), PROXY_ACTIVE_SESSIONS("proxy-active-sessions"), + PROXY_BUCKET_ADJUSTMENT("proxy-bucket-adjustment"), + PROXY_LICENSES("proxy-licenses"), PSTNCONNECTIVITY("pstnconnectivity"), + PSTNCONNECTIVITY_INBOUND("pstnconnectivity-inbound"), + PSTNCONNECTIVITY_OUTBOUND("pstnconnectivity-outbound"), PV("pv"), + PV_BASIC_ROOMS("pv-basic-rooms"), PV_COMPOSITION_MEDIA_DOWNLOADED("pv-composition-media-downloaded"), PV_COMPOSITION_MEDIA_ENCRYPTED("pv-composition-media-encrypted"), PV_COMPOSITION_MEDIA_STORED("pv-composition-media-stored"), @@ -465,18 +671,20 @@ public enum Category { PV_ROOM_PARTICIPANTS_US2("pv-room-participants-us2"), PV_ROOMS("pv-rooms"), PV_SIP_ENDPOINT_REGISTRATIONS("pv-sip-endpoint-registrations"), + RCS_MESSAGES("rcs-messages"), + REASSIGNED_NUMBER("reassigned-number"), RECORDINGS("recordings"), RECORDINGSTORAGE("recordingstorage"), - ROOMS_GROUP_BANDWIDTH("rooms-group-bandwidth"), - ROOMS_GROUP_MINUTES("rooms-group-minutes"), - ROOMS_PEER_TO_PEER_MINUTES("rooms-peer-to-peer-minutes"), SHORTCODES("shortcodes"), SHORTCODES_CUSTOMEROWNED("shortcodes-customerowned"), SHORTCODES_MMS_ENABLEMENT("shortcodes-mms-enablement"), SHORTCODES_MPS("shortcodes-mps"), SHORTCODES_RANDOM("shortcodes-random"), + SHORTCODES_SETUP_FEES("shortcodes-setup-fees"), SHORTCODES_UK("shortcodes-uk"), SHORTCODES_VANITY("shortcodes-vanity"), + SIM_SWAP_LOOKUPS("sim-swap-lookups"), + SIP_SECURE_MEDIA("sip-secure-media"), SMALL_GROUP_ROOMS("small-group-rooms"), SMALL_GROUP_ROOMS_DATA_TRACK("small-group-rooms-data-track"), SMALL_GROUP_ROOMS_PARTICIPANT_MINUTES( @@ -486,13 +694,32 @@ public enum Category { SMS_INBOUND("sms-inbound"), SMS_INBOUND_LONGCODE("sms-inbound-longcode"), SMS_INBOUND_SHORTCODE("sms-inbound-shortcode"), + SMS_INBOUND_TOLLFREE("sms-inbound-tollfree"), SMS_MESSAGES_CARRIERFEES("sms-messages-carrierfees"), SMS_MESSAGES_FEATURES("sms-messages-features"), + SMS_MESSAGES_FEATURES_ENGAGEMENT_SUITE( + "sms-messages-features-engagement-suite" + ), + SMS_MESSAGES_FEATURES_MESSAGE_REDACTION( + "sms-messages-features-message-redaction" + ), SMS_MESSAGES_FEATURES_SENDERID("sms-messages-features-senderid"), + SMS_MPS("sms-mps"), + SMS_MPS_SHORTCODE("sms-mps-shortcode"), + SMS_MPS_TOLLFREE("sms-mps-tollfree"), + SMS_MPS_TOLLFREE_SETUP("sms-mps-tollfree-setup"), + SMS_NATIONAL_REGULATORY_PROTECTION( + "sms-national-regulatory-protection" + ), SMS_OUTBOUND("sms-outbound"), SMS_OUTBOUND_CONTENT_INSPECTION("sms-outbound-content-inspection"), SMS_OUTBOUND_LONGCODE("sms-outbound-longcode"), SMS_OUTBOUND_SHORTCODE("sms-outbound-shortcode"), + SMS_OUTBOUND_TOLLFREE("sms-outbound-tollfree"), + SMS_PUMPING_PROTECTION("sms-pumping-protection"), + SMS_PUMPING_RISK("sms-pumping-risk"), + SMSMESSAGES_BUCKET_ADJUSTMENTS("smsmessages-bucket-adjustments"), + SMSMESSAGES_OUTBOUND_DOMESTIC("smsmessages-outbound-domestic"), SPEECH_RECOGNITION("speech-recognition"), STUDIO_ENGAGEMENTS("studio-engagements"), SYNC("sync"), @@ -524,13 +751,29 @@ public enum Category { TURNMEGABYTES_SINGAPORE("turnmegabytes-singapore"), TURNMEGABYTES_USEAST("turnmegabytes-useast"), TURNMEGABYTES_USWEST("turnmegabytes-uswest"), + TWILIO_FOR_SALESFORCE("twilio-for-salesforce"), + TWILIO_FOR_SALESFORCE_LICENSES("twilio-for-salesforce-licenses"), TWILIO_INTERCONNECT("twilio-interconnect"), + TWIML("twiml"), + USAGE_FLEX_VIDEO("usage-flex-video"), + USAGE_FUNCTIONS("usage-functions"), + USAGE_RCS_BASIC_MESSAGES_OUTBOUND("usage-rcs-basic-messages-outbound"), + USAGE_RCS_MESSAGES("usage-rcs-messages"), + USAGE_RCS_MESSAGES_INBOUND("usage-rcs-messages-inbound"), + USAGE_RCS_MESSAGING_CARRIER_FEES("usage-rcs-messaging-carrier-fees"), + USAGE_RCS_SINGLE_MESSAGES_OUTBOUND( + "usage-rcs-single-messages-outbound" + ), + VERIFY_PACKAGE_PLANS("verify-package-plans"), VERIFY_PUSH("verify-push"), + VERIFY_SNA("verify-sna"), VERIFY_TOTP("verify-totp"), + VERIFY_VOICE_SMS("verify-voice-sms"), VERIFY_WHATSAPP_CONVERSATIONS_BUSINESS_INITIATED( "verify-whatsapp-conversations-business-initiated" ), VIDEO_RECORDINGS("video-recordings"), + VIDEO_ROOMS_TURN_MEGABYTES("video-rooms-turn-megabytes"), VIRTUAL_AGENT("virtual-agent"), VOICE_INSIGHTS("voice-insights"), VOICE_INSIGHTS_CLIENT_INSIGHTS_ON_DEMAND_MINUTE( @@ -546,14 +789,119 @@ public enum Category { "voice-insights-sip-trunking-insights-on-demand-minute" ), VOICE_INTELLIGENCE("voice-intelligence"), - VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + VOICE_INTELLIGENCE_EIP_OPERATORS("voice-intelligence-eip-operators"), VOICE_INTELLIGENCE_OPERATORS("voice-intelligence-operators"), + VOICE_INTELLIGENCE_TRANSCRIPTION("voice-intelligence-transcription"), + WDS("wds"), WIRELESS("wireless"), + WIRELESS_DATA("wireless-data"), + WIRELESS_DATA_PAYG("wireless-data-payg"), + WIRELESS_DATA_PAYG_AFRICA("wireless-data-payg-africa"), + WIRELESS_DATA_PAYG_ASIA("wireless-data-payg-asia"), + WIRELESS_DATA_PAYG_CENTRALANDSOUTHAMERICA( + "wireless-data-payg-centralandsouthamerica" + ), + WIRELESS_DATA_PAYG_EUROPE("wireless-data-payg-europe"), + WIRELESS_DATA_PAYG_NORTHAMERICA("wireless-data-payg-northamerica"), + WIRELESS_DATA_PAYG_OCEANIA("wireless-data-payg-oceania"), + WIRELESS_DATA_QUOTA1("wireless-data-quota1"), + WIRELESS_DATA_QUOTA1_AFRICA("wireless-data-quota1-africa"), + WIRELESS_DATA_QUOTA1_ASIA("wireless-data-quota1-asia"), + WIRELESS_DATA_QUOTA1_CENTRALANDSOUTHAMERICA( + "wireless-data-quota1-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA1_EUROPE("wireless-data-quota1-europe"), + WIRELESS_DATA_QUOTA1_NORTHAMERICA("wireless-data-quota1-northamerica"), + WIRELESS_DATA_QUOTA1_OCEANIA("wireless-data-quota1-oceania"), + WIRELESS_DATA_QUOTA10("wireless-data-quota10"), + WIRELESS_DATA_QUOTA10_AFRICA("wireless-data-quota10-africa"), + WIRELESS_DATA_QUOTA10_ASIA("wireless-data-quota10-asia"), + WIRELESS_DATA_QUOTA10_CENTRALANDSOUTHAMERICA( + "wireless-data-quota10-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA10_EUROPE("wireless-data-quota10-europe"), + WIRELESS_DATA_QUOTA10_NORTHAMERICA( + "wireless-data-quota10-northamerica" + ), + WIRELESS_DATA_QUOTA10_OCEANIA("wireless-data-quota10-oceania"), + WIRELESS_DATA_QUOTA50("wireless-data-quota50"), + WIRELESS_DATA_QUOTA50_AFRICA("wireless-data-quota50-africa"), + WIRELESS_DATA_QUOTA50_ASIA("wireless-data-quota50-asia"), + WIRELESS_DATA_QUOTA50_CENTRALANDSOUTHAMERICA( + "wireless-data-quota50-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTA50_EUROPE("wireless-data-quota50-europe"), + WIRELESS_DATA_QUOTA50_NORTHAMERICA( + "wireless-data-quota50-northamerica" + ), + WIRELESS_DATA_QUOTA50_OCEANIA("wireless-data-quota50-oceania"), + WIRELESS_DATA_QUOTACUSTOM("wireless-data-quotacustom"), + WIRELESS_DATA_QUOTACUSTOM_AFRICA("wireless-data-quotacustom-africa"), + WIRELESS_DATA_QUOTACUSTOM_ASIA("wireless-data-quotacustom-asia"), + WIRELESS_DATA_QUOTACUSTOM_CENTRALANDSOUTHAMERICA( + "wireless-data-quotacustom-centralandsouthamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_EUROPE("wireless-data-quotacustom-europe"), + WIRELESS_DATA_QUOTACUSTOM_NORTHAMERICA( + "wireless-data-quotacustom-northamerica" + ), + WIRELESS_DATA_QUOTACUSTOM_OCEANIA("wireless-data-quotacustom-oceania"), + WIRELESS_MRC_PAYG("wireless-mrc-payg"), + WIRELESS_MRC_QUOTA1("wireless-mrc-quota1"), + WIRELESS_MRC_QUOTA10("wireless-mrc-quota10"), + WIRELESS_MRC_QUOTA50("wireless-mrc-quota50"), + WIRELESS_MRC_QUOTACUSTOM("wireless-mrc-quotacustom"), WIRELESS_ORDERS("wireless-orders"), WIRELESS_ORDERS_ARTWORK("wireless-orders-artwork"), WIRELESS_ORDERS_BULK("wireless-orders-bulk"), WIRELESS_ORDERS_ESIM("wireless-orders-esim"), WIRELESS_ORDERS_STARTER("wireless-orders-starter"), + WIRELESS_QUOTAS("wireless-quotas"), + WIRELESS_SMS_AFRICA("wireless-sms-africa"), + WIRELESS_SMS_ASIA("wireless-sms-asia"), + WIRELESS_SMS_CENTRALANDSOUTHAMERICA( + "wireless-sms-centralandsouthamerica" + ), + WIRELESS_SMS_EUROPE("wireless-sms-europe"), + WIRELESS_SMS_NORTHAMERICA("wireless-sms-northamerica"), + WIRELESS_SMS_OCEANIA("wireless-sms-oceania"), + WIRELESS_SUPER_SIM("wireless-super-sim"), + WIRELESS_SUPER_SIM_DATA("wireless-super-sim-data"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA_USA( + "wireless-super-sim-data-north-america-usa" + ), + WIRELESS_SUPER_SIM_DATA_PAYG("wireless-super-sim-data-payg"), + WIRELESS_SUPER_SIM_DATA_PAYG_EUROPE( + "wireless-super-sim-data-payg-europe" + ), + WIRELESS_SUPER_SIM_DATA_PAYG_NORTH_AMERICA( + "wireless-super-sim-data-payg-north-america" + ), + WIRELESS_SUPER_SIM_HARDWARE("wireless-super-sim-hardware"), + WIRELESS_SUPER_SIM_HARDWARE_BULK("wireless-super-sim-hardware-bulk"), + WIRELESS_SUPER_SIM_SMSCOMMANDS("wireless-super-sim-smscommands"), + WIRELESS_SUPER_SIM_SMSCOMMANDS_AFRICA( + "wireless-super-sim-smscommands-africa" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_ASIA( + "wireless-super-sim-smscommands-asia" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_CENT_AND_SOUTH_AMERICA( + "wireless-super-sim-smscommands-cent-and-south-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_EUROPE( + "wireless-super-sim-smscommands-europe" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_NORTH_AMERICA( + "wireless-super-sim-smscommands-north-america" + ), + WIRELESS_SUPER_SIM_SMSCOMMANDS_OCEANIA( + "wireless-super-sim-smscommands-oceania" + ), + WIRELESS_SUPER_SIM_SUBSCRIPTION("wireless-super-sim-subscription"), + WIRELESS_SUPER_SIM_SUBSCRIPTION_PAYG( + "wireless-super-sim-subscription-payg" + ), WIRELESS_USAGE("wireless-usage"), WIRELESS_USAGE_COMMANDS("wireless-usage-commands"), WIRELESS_USAGE_COMMANDS_AFRICA("wireless-usage-commands-africa"), @@ -612,7 +960,217 @@ public enum Category { WIRELESS_USAGE_MRC_POOLED("wireless-usage-mrc-pooled"), WIRELESS_USAGE_MRC_SUSPENDED("wireless-usage-mrc-suspended"), WIRELESS_USAGE_SMS("wireless-usage-sms"), - WIRELESS_USAGE_VOICE("wireless-usage-voice"); + WIRELESS_USAGE_VOICE("wireless-usage-voice"), + A2P_FAST_TRACK_ONBOARDING("a2p-fast-track-onboarding"), + ADVISORY_SERVICES("advisory-services"), + ADVISORY_SERVICES_BILLED("advisory-services-billed"), + ADVISORY_SERVICES_CALL_TRACKING("advisory-services-call-tracking"), + ADVISORY_SERVICES_DATA_SERVICES("advisory-services-data-services"), + ADVISORY_SERVICES_EXPENSES("advisory-services-expenses"), + ADVISORY_SERVICES_SIP_TRUNKING("advisory-services-sip-trunking"), + ASSETS_REQUESTS("assets-requests"), + AUDIENCE_MINUTES_VIDEO("audience-minutes-video"), + AUTHY_BUCKET_ADJUSTMENT("authy-bucket-adjustment"), + AUTHY_SOFTWARE("authy-software"), + CALLERIDLOOKUPS_API("calleridlookups-api"), + CALLERIDLOOKUPS_PROGRAMMABLEVOICE("calleridlookups-programmablevoice"), + CALLERIDLOOKUPS_TRUNKING("calleridlookups-trunking"), + CALLS_TRUNKING_INBOUND_TOLLFREE_LOCAL( + "calls-trunking-inbound-tollfree-local" + ), + CALLS_TRUNKING_INBOUND_TOLLFREE_MOBILE( + "calls-trunking-inbound-tollfree-mobile" + ), + CHANNELS_WHATSAPP_CONVERSATION_FREE_1( + "channels-whatsapp-conversation-free-1" + ), + CONFERENCE("conference"), + CONVERSATIONAL_INSIGHTS("conversational-insights"), + CONVERSATIONAL_INSIGHTS_MESSAGES("conversational-insights-messages"), + CONVERSATIONAL_INSIGHTS_VOICE_MINUTES( + "conversational-insights-voice-minutes" + ), + DEMO("demo"), + DEMO_UC_SCRIPT_TEST("demo-uc-script-test"), + ELASTIC_SIP_TRUNKING("elastic-sip-trunking"), + ELASTIC_SIP_TRUNKING_CALL_TRANSFERS( + "elastic-sip-trunking-call-transfers" + ), + ENTERPRISE_HIPPA("enterprise-hippa"), + FLEX_NAMED_USERS("flex-named-users"), + FLEX_SPINSCI("flex-spinsci"), + FLEX_USERS_1("flex-users-1"), + FLEX_WFO_PREMIUM_SPEECH_ANALYTICS("flex-wfo-premium-speech-analytics"), + FLEX_XCELERATE("flex-xcelerate"), + FUNCTIONS_ROLLUP("functions-rollup"), + IMP_V1_USAGE("imp-v1-usage"), + IP_MESSAGING_ADDONS("ip-messaging-addons"), + IVR("ivr"), + IVR_CONVERSATIONAL("ivr-conversational"), + IVR_DTMF("ivr-dtmf"), + IVR_VIRTUALAGENT("ivr-virtualagent"), + LIVE("live"), + LIVE_MEDIA_RECORDING_MINUTES("live-media-recording-minutes"), + LONGCODE_MPS("longcode-mps"), + MARKETPLACE_ANALYTICS_ADDONS("marketplace-analytics-addons"), + MARKETPLACE_ISV_ADDONS("marketplace-isv-addons"), + MARKETPLACE_MESSAGING_ADDONS("marketplace-messaging-addons"), + MARKETPLACE_PHONENUMBERS_ADDONS("marketplace-phonenumbers-addons"), + MARKETPLACE_RECORDING_ADDONS("marketplace-recording-addons"), + MARKETPLACE_VIRTUALAGENT_ADDONS("marketplace-virtualagent-addons"), + MARKETPLAY_PAY_ADDONS_SHUTTLE_PAY_CONNECTOR_1( + "marketplay-pay-addons-shuttle-pay-connector-1" + ), + MARKETPLAY_PAY_ADDONS_STRIPE_PAY_CONNECTOR( + "marketplay-pay-addons-stripe-pay-connector" + ), + MMS_INBOUND_LONGCODE_CANADA("mms-inbound-longcode-canada"), + MMS_INBOUND_LONGCODE_UNITEDSTATES("mms-inbound-longcode-unitedstates"), + MMS_OUTBOUND_LONGCODE_CANADA("mms-outbound-longcode-canada"), + MMS_OUTBOUND_LONGCODE_UNITEDSTATES( + "mms-outbound-longcode-unitedstates" + ), + MMS_OUTBOUND_TOLL_FREE("mms-outbound-toll-free"), + NOTIFY_CHATAPPSANDOTHERCHANNELS("notify-chatappsandotherchannels"), + NOTIFY_NOTIFYSERVICES("notify-notifyservices"), + NOTIFY_PUSHNOTIFICATIONS("notify-pushnotifications"), + PAYMENT_GATEWAY_CONNECTORS("payment-gateway-connectors"), + PAYMENT_SOLUTIONS("payment-solutions"), + PCHAT_BUCKET_ADJUSTMENT("pchat-bucket-adjustment"), + PHONENUMBERS_NUMBERS("phonenumbers-numbers"), + PROG_VOICE_CLIENT_ANDROID("prog-voice-client-android"), + PROG_VOICE_CLIENT_ANDROID_INBOUND("prog-voice-client-android-inbound"), + PROG_VOICE_CLIENT_ANDROID_OUTBOUND( + "prog-voice-client-android-outbound" + ), + PROG_VOICE_CLIENT_IOS("prog-voice-client-ios"), + PROG_VOICE_CLIENT_IOS_INBOUND("prog-voice-client-ios-inbound"), + PROG_VOICE_CLIENT_IOS_OUTBOUND("prog-voice-client-ios-outbound"), + PROG_VOICE_CLIENT_SDK("prog-voice-client-sdk"), + PROG_VOICE_CLIENT_WEB("prog-voice-client-web"), + PROG_VOICE_CLIENT_WEB_INBOUND("prog-voice-client-web-inbound"), + PROG_VOICE_CLIENT_WEB_OUTBOUND("prog-voice-client-web-outbound"), + PROGRAMMABLEVOICECONNECTIVITY_MEDIA_STREAMS( + "programmablevoiceconnectivity-media-streams" + ), + PSTNCONNECTIVITY_BYOC("pstnconnectivity-byoc"), + PSTNCONNECTIVITY_EMERGENCY("pstnconnectivity-emergency"), + PSTNCONNECTIVITY_MINUTES("pstnconnectivity-minutes"), + PSTNCONNECTIVITY_MINUTES_1("pstnconnectivity-minutes-1"), + PSTNCONNECTIVITY_MINUTESINBOUNDLOCAL( + "pstnconnectivity-minutesinboundlocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDMOBILE( + "pstnconnectivity-minutesinboundmobile" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREE( + "pstnconnectivity-minutesinboundtollfree" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREELOCAL( + "pstnconnectivity-minutesinboundtollfreelocal" + ), + PSTNCONNECTIVITY_MINUTESINBOUNDTOLLFREEMOBILE( + "pstnconnectivity-minutesinboundtollfreemobile" + ), + PV_ROOM_HOURS("pv-room-hours"), + PV_ROOM_SIMULTANEOUS_PARTICIPANT_CONNECTIONS( + "pv-room-simultaneous-participant-connections" + ), + PVIDEO_ROOM_HOURS_AU1("pvideo-room-hours-au1"), + PVIDEO_ROOM_HOURS_BR1("pvideo-room-hours-br1"), + PVIDEO_ROOM_HOURS_IE1("pvideo-room-hours-ie1"), + PVIDEO_ROOM_HOURS_JP1("pvideo-room-hours-jp1"), + PVIDEO_ROOM_HOURS_SG1("pvideo-room-hours-sg1"), + PVIDEO_ROOM_HOURS_US1("pvideo-room-hours-us1"), + PVIDEO_ROOM_HOURS_US2("pvideo-room-hours-us2"), + RECORDINGS_ENCRYPTED("recordings-encrypted"), + SHORT_CODE_SETUP_FEES("short-code-setup-fees"), + SHORTCODES_MESSAGES_INBOUND("shortcodes-messages-inbound"), + SHORTCODES_MESSAGES_OUTBOUND("shortcodes-messages-outbound"), + SMS_MESSAGES_REGISTRATIONFEES("sms-messages-registrationfees"), + SMS_MMS_PENALTY_FEES("sms-mms-penalty-fees"), + SMS_MMS_PENALTY_FEES_1("sms-mms-penalty-fees-1"), + SMS_PUMPING_PROTECTION_NON_USCA("sms-pumping-protection-non-usca"), + SMS_PUMPING_PROTECTION_USCA("sms-pumping-protection-usca"), + STUDIO("studio"), + STUDIO_MONTHLY_FEES("studio-monthly-fees"), + SUPERSIM("supersim"), + TASK_ROUTER("task-router"), + TASK_ROUTER_WORKERS("task-router-workers"), + TEST_QUOTA_BUCKETS("test-quota-buckets"), + TEST_UC_SCRIPT_1("test-uc-script-1"), + TEST_UC_SCRIPT_DEMO_2("test-uc-script-demo-2"), + TEXT_TO_SPEECH("text-to-speech"), + TME("tme"), + TTS_BASIC("tts-basic"), + TWILIO_EDITIONS("twilio-editions"), + TWILIO_INTERCONNECT_CALIFORNIA("twilio-interconnect-california"), + TWILIO_INTERCONNECT_CALIFORNIA_MONTHLY( + "twilio-interconnect-california-monthly" + ), + TWILIO_INTERCONNECT_CALIFORNIA_SETUP( + "twilio-interconnect-california-setup" + ), + TWILIO_INTERCONNECT_FRANKFURT("twilio-interconnect-frankfurt"), + TWILIO_INTERCONNECT_FRANKFURT_MO("twilio-interconnect-frankfurt-mo"), + TWILIO_INTERCONNECT_FRANKFURT_SETUP( + "twilio-interconnect-frankfurt-setup" + ), + TWILIO_INTERCONNECT_LONDON("twilio-interconnect-london"), + TWILIO_INTERCONNECT_LONDON_MO("twilio-interconnect-london-mo"), + TWILIO_INTERCONNECT_LONDON_SETUP("twilio-interconnect-london-setup"), + TWILIO_INTERCONNECT_SAO_PAULO("twilio-interconnect-sao-paulo"), + TWILIO_INTERCONNECT_SAO_PAULO_MONTHLY( + "twilio-interconnect-sao-paulo-monthly" + ), + TWILIO_INTERCONNECT_SAO_PAULO_SETUP( + "twilio-interconnect-sao-paulo-setup" + ), + TWILIO_INTERCONNECT_SINGAPORE("twilio-interconnect-singapore"), + TWILIO_INTERCONNECT_SINGAPORE_MO("twilio-interconnect-singapore-mo"), + TWILIO_INTERCONNECT_SINGAPORE_SETUP( + "twilio-interconnect-singapore-setup" + ), + TWILIO_INTERCONNECT_SYDNEY("twilio-interconnect-sydney"), + TWILIO_INTERCONNECT_SYDNEY_MO("twilio-interconnect-sydney-mo"), + TWILIO_INTERCONNECT_SYDNEY_SETUP("twilio-interconnect-sydney-setup"), + TWILIO_INTERCONNECT_TOKYO("twilio-interconnect-tokyo"), + TWILIO_INTERCONNECT_TOKYO_MO("twilio-interconnect-tokyo-mo"), + TWILIO_INTERCONNECT_TOKYO_SETUP("twilio-interconnect-tokyo-setup"), + TWILIO_INTERCONNECT_VA("twilio-interconnect-va"), + TWILIO_INTERCONNECT_VA_MO("twilio-interconnect-va-mo"), + TWILIO_INTERCONNECT_VA_SETUP("twilio-interconnect-va-setup"), + TWIML_VERBS("twiml-verbs"), + TWIML_VERBS_SAY("twiml-verbs-say"), + USAGE_PROGRAMMABLE_MESSAGING_ENGAGEMENT_SUITE( + "usage-programmable-messaging-engagement-suite" + ), + USAGE_PROGRAMMABLE_MESSAGING_FEES_SERVICES( + "usage-programmable-messaging-fees-services" + ), + VERIFY_OUTBOUND_EMAIL("verify-outbound-email"), + VERIFY_PACKAGED_PLANS("verify-packaged-plans"), + VERIFY_SILENT_NETWORK_AUTH("verify-silent-network-auth"), + VERIFY_VOICE_AND_SMS("verify-voice-and-sms"), + VOICE_INSIGHTS_CLIENT_INSIGHTS_MONTHY_COMMIT( + "voice-insights-client-insights-monthy-commit" + ), + WIRELESS_DATA_PAYG_ASIA_AFG("wireless-data-payg-asia-afg"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS("wireless-multi-imsi-sim-commands"), + WIRELESS_MULTI_IMSI_SIM_COMMANDS_USA( + "wireless-multi-imsi-sim-commands-usa" + ), + WIRELESS_MULTI_IMSI_SIM_DATA("wireless-multi-imsi-sim-data"), + WIRELESS_MULTI_IMSI_SIM_DATA_EU28("wireless-multi-imsi-sim-data-eu28"), + WIRELESS_MULTI_IMSI_SIM_DATA_USA("wireless-multi-imsi-sim-data-usa"), + WIRELESS_MULTI_IMSI_SIM_MONTHLY_FEES( + "wireless-multi-imsi-sim-monthly-fees" + ), + WIRELESS_MULTI_IMSI_SIM_USAGE("wireless-multi-imsi-sim-usage"), + WIRELESS_SUPER_SIM_DATA_NORTH_AMERICA( + "wireless-super-sim-data-north-america" + ), + WIRELESS_SUPER_SIM_USAGE("wireless-super-sim-usage"); private final String value; diff --git a/src/main/java/com/twilio/rest/assistants/v1/Knowledge.java b/src/main/java/com/twilio/rest/assistants/v1/Knowledge.java index 613ee5323c..0f5b469bb2 100644 --- a/src/main/java/com/twilio/rest/assistants/v1/Knowledge.java +++ b/src/main/java/com/twilio/rest/assistants/v1/Knowledge.java @@ -69,10 +69,10 @@ public static class AssistantsV1ServiceCreatePolicyRequest { @JsonProperty("policy_details") @Getter @Setter - private Map policyDetails; + private Object policyDetails; public String getPolicyDetails() { - return Converter.mapToJson(policyDetails); + return Converter.objectToJson(policyDetails); } @JsonInclude(JsonInclude.Include.NON_EMPTY) diff --git a/src/main/java/com/twilio/rest/assistants/v1/Tool.java b/src/main/java/com/twilio/rest/assistants/v1/Tool.java index 1744594cd6..c4dbbf3be2 100644 --- a/src/main/java/com/twilio/rest/assistants/v1/Tool.java +++ b/src/main/java/com/twilio/rest/assistants/v1/Tool.java @@ -70,10 +70,10 @@ public static class AssistantsV1ServiceCreatePolicyRequest { @JsonProperty("policy_details") @Getter @Setter - private Map policyDetails; + private Object policyDetails; public String getPolicyDetails() { - return Converter.mapToJson(policyDetails); + return Converter.objectToJson(policyDetails); } @JsonInclude(JsonInclude.Include.NON_EMPTY) diff --git a/src/main/java/com/twilio/rest/chat/v2/service/channel/Message.java b/src/main/java/com/twilio/rest/chat/v2/service/channel/Message.java index c641ad4f08..e0dcdaae58 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/channel/Message.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/channel/Message.java @@ -294,13 +294,13 @@ public int hashCode() { ); } - public enum OrderType { - ASC("asc"), - DESC("desc"); + public enum WebhookEnabledType { + TRUE("true"), + FALSE("false"); private final String value; - private OrderType(final String value) { + private WebhookEnabledType(final String value) { this.value = value; } @@ -309,18 +309,18 @@ public String toString() { } @JsonCreator - public static OrderType forValue(final String value) { - return Promoter.enumFromString(value, OrderType.values()); + public static WebhookEnabledType forValue(final String value) { + return Promoter.enumFromString(value, WebhookEnabledType.values()); } } - public enum WebhookEnabledType { - TRUE("true"), - FALSE("false"); + public enum OrderType { + ASC("asc"), + DESC("desc"); private final String value; - private WebhookEnabledType(final String value) { + private OrderType(final String value) { this.value = value; } @@ -329,8 +329,8 @@ public String toString() { } @JsonCreator - public static WebhookEnabledType forValue(final String value) { - return Promoter.enumFromString(value, WebhookEnabledType.values()); + public static OrderType forValue(final String value) { + return Promoter.enumFromString(value, OrderType.values()); } } } diff --git a/src/main/java/com/twilio/rest/chat/v2/service/channel/Webhook.java b/src/main/java/com/twilio/rest/chat/v2/service/channel/Webhook.java index dba90ca372..969a28cc11 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/channel/Webhook.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/channel/Webhook.java @@ -232,13 +232,14 @@ public int hashCode() { ); } - public enum Method { - GET("GET"), - POST("POST"); + public enum Type { + WEBHOOK("webhook"), + TRIGGER("trigger"), + STUDIO("studio"); private final String value; - private Method(final String value) { + private Type(final String value) { this.value = value; } @@ -247,19 +248,18 @@ public String toString() { } @JsonCreator - public static Method forValue(final String value) { - return Promoter.enumFromString(value, Method.values()); + public static Type forValue(final String value) { + return Promoter.enumFromString(value, Type.values()); } } - public enum Type { - WEBHOOK("webhook"), - TRIGGER("trigger"), - STUDIO("studio"); + public enum Method { + GET("GET"), + POST("POST"); private final String value; - private Type(final String value) { + private Method(final String value) { this.value = value; } @@ -268,8 +268,8 @@ public String toString() { } @JsonCreator - public static Type forValue(final String value) { - return Promoter.enumFromString(value, Type.values()); + public static Method forValue(final String value) { + return Promoter.enumFromString(value, Method.values()); } } } diff --git a/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannel.java b/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannel.java index 5ff8d0d296..ebe37d60ac 100644 --- a/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannel.java +++ b/src/main/java/com/twilio/rest/chat/v2/service/user/UserChannel.java @@ -261,14 +261,13 @@ public int hashCode() { ); } - public enum ChannelStatus { - JOINED("joined"), - INVITED("invited"), - NOT_PARTICIPATING("not_participating"); + public enum WebhookEnabledType { + TRUE("true"), + FALSE("false"); private final String value; - private ChannelStatus(final String value) { + private WebhookEnabledType(final String value) { this.value = value; } @@ -277,18 +276,19 @@ public String toString() { } @JsonCreator - public static ChannelStatus forValue(final String value) { - return Promoter.enumFromString(value, ChannelStatus.values()); + public static WebhookEnabledType forValue(final String value) { + return Promoter.enumFromString(value, WebhookEnabledType.values()); } } - public enum WebhookEnabledType { - TRUE("true"), - FALSE("false"); + public enum ChannelStatus { + JOINED("joined"), + INVITED("invited"), + NOT_PARTICIPATING("not_participating"); private final String value; - private WebhookEnabledType(final String value) { + private ChannelStatus(final String value) { this.value = value; } @@ -297,8 +297,8 @@ public String toString() { } @JsonCreator - public static WebhookEnabledType forValue(final String value) { - return Promoter.enumFromString(value, WebhookEnabledType.values()); + public static ChannelStatus forValue(final String value) { + return Promoter.enumFromString(value, ChannelStatus.values()); } } diff --git a/src/main/java/com/twilio/rest/content/v1/Content.java b/src/main/java/com/twilio/rest/content/v1/Content.java index 3c34f28ae2..addc44ae73 100644 --- a/src/main/java/com/twilio/rest/content/v1/Content.java +++ b/src/main/java/com/twilio/rest/content/v1/Content.java @@ -108,6 +108,18 @@ public static class TwilioLocation { @Setter private String label; + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("id") + @Getter + @Setter + private String id; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("address") + @Getter + @Setter + private String address; + public static TwilioLocation fromJson( String jsonString, ObjectMapper mapper @@ -179,7 +191,7 @@ public static class CallToActionAction { @JsonProperty("type") @Getter @Setter - private Content.CallToActionActionType type; + private CallToActionActionType type; @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("title") @@ -205,6 +217,12 @@ public static class CallToActionAction { @Setter private String code; + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("id") + @Getter + @Setter + private String id; + public static CallToActionAction fromJson( String jsonString, ObjectMapper mapper @@ -243,7 +261,7 @@ public static class QuickReplyAction { @JsonProperty("type") @Getter @Setter - private Content.QuickReplyActionType type; + private QuickReplyActionType type; @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("title") @@ -295,7 +313,7 @@ public static class CardAction { @JsonProperty("type") @Getter @Setter - private Content.CardActionType type; + private CardActionType type; @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("title") @@ -471,7 +489,7 @@ public static class CarouselAction { @JsonProperty("type") @Getter @Setter - private Content.CarouselActionType type; + private CarouselActionType type; @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("title") @@ -751,7 +769,7 @@ public static class AuthenticationAction { @JsonProperty("type") @Getter @Setter - private Content.AuthenticationActionType type; + private AuthenticationActionType type; @JsonInclude(JsonInclude.Include.NON_EMPTY) @JsonProperty("copy_code_text") diff --git a/src/main/java/com/twilio/rest/conversations/v1/AddressConfiguration.java b/src/main/java/com/twilio/rest/conversations/v1/AddressConfiguration.java index cd3f44a587..e621325249 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/AddressConfiguration.java +++ b/src/main/java/com/twilio/rest/conversations/v1/AddressConfiguration.java @@ -246,13 +246,19 @@ public static AutoCreationType forValue(final String value) { } } - public enum Method { - GET("GET"), - POST("POST"); + public enum Type { + SMS("sms"), + WHATSAPP("whatsapp"), + MESSENGER("messenger"), + GBM("gbm"), + EMAIL("email"), + RCS("rcs"), + APPLE("apple"), + CHAT("chat"); private final String value; - private Method(final String value) { + private Type(final String value) { this.value = value; } @@ -261,24 +267,18 @@ public String toString() { } @JsonCreator - public static Method forValue(final String value) { - return Promoter.enumFromString(value, Method.values()); + public static Type forValue(final String value) { + return Promoter.enumFromString(value, Type.values()); } } - public enum Type { - SMS("sms"), - WHATSAPP("whatsapp"), - MESSENGER("messenger"), - GBM("gbm"), - EMAIL("email"), - RCS("rcs"), - APPLE("apple"), - CHAT("chat"); + public enum Method { + GET("GET"), + POST("POST"); private final String value; - private Type(final String value) { + private Method(final String value) { this.value = value; } @@ -287,8 +287,8 @@ public String toString() { } @JsonCreator - public static Type forValue(final String value) { - return Promoter.enumFromString(value, Type.values()); + public static Method forValue(final String value) { + return Promoter.enumFromString(value, Method.values()); } } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/conversation/Message.java b/src/main/java/com/twilio/rest/conversations/v1/conversation/Message.java index 4ec320f8d0..1b09716740 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/conversation/Message.java +++ b/src/main/java/com/twilio/rest/conversations/v1/conversation/Message.java @@ -277,13 +277,13 @@ public int hashCode() { ); } - public enum WebhookEnabledType { - TRUE("true"), - FALSE("false"); + public enum OrderType { + ASC("asc"), + DESC("desc"); private final String value; - private WebhookEnabledType(final String value) { + private OrderType(final String value) { this.value = value; } @@ -292,18 +292,18 @@ public String toString() { } @JsonCreator - public static WebhookEnabledType forValue(final String value) { - return Promoter.enumFromString(value, WebhookEnabledType.values()); + public static OrderType forValue(final String value) { + return Promoter.enumFromString(value, OrderType.values()); } } - public enum OrderType { - ASC("asc"), - DESC("desc"); + public enum WebhookEnabledType { + TRUE("true"), + FALSE("false"); private final String value; - private OrderType(final String value) { + private WebhookEnabledType(final String value) { this.value = value; } @@ -312,8 +312,8 @@ public String toString() { } @JsonCreator - public static OrderType forValue(final String value) { - return Promoter.enumFromString(value, OrderType.values()); + public static WebhookEnabledType forValue(final String value) { + return Promoter.enumFromString(value, WebhookEnabledType.values()); } } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/conversation/Webhook.java b/src/main/java/com/twilio/rest/conversations/v1/conversation/Webhook.java index 020f4b28a2..f6da62268d 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/conversation/Webhook.java +++ b/src/main/java/com/twilio/rest/conversations/v1/conversation/Webhook.java @@ -216,13 +216,14 @@ public int hashCode() { ); } - public enum Method { - GET("GET"), - POST("POST"); + public enum Target { + WEBHOOK("webhook"), + TRIGGER("trigger"), + STUDIO("studio"); private final String value; - private Method(final String value) { + private Target(final String value) { this.value = value; } @@ -231,19 +232,18 @@ public String toString() { } @JsonCreator - public static Method forValue(final String value) { - return Promoter.enumFromString(value, Method.values()); + public static Target forValue(final String value) { + return Promoter.enumFromString(value, Target.values()); } } - public enum Target { - WEBHOOK("webhook"), - TRIGGER("trigger"), - STUDIO("studio"); + public enum Method { + GET("GET"), + POST("POST"); private final String value; - private Target(final String value) { + private Method(final String value) { this.value = value; } @@ -252,8 +252,8 @@ public String toString() { } @JsonCreator - public static Target forValue(final String value) { - return Promoter.enumFromString(value, Target.values()); + public static Method forValue(final String value) { + return Promoter.enumFromString(value, Method.values()); } } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/Conversation.java b/src/main/java/com/twilio/rest/conversations/v1/service/Conversation.java index a3557a6f84..181767e7e6 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/Conversation.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/Conversation.java @@ -267,13 +267,14 @@ public int hashCode() { ); } - public enum WebhookEnabledType { - TRUE("true"), - FALSE("false"); + public enum State { + INACTIVE("inactive"), + ACTIVE("active"), + CLOSED("closed"); private final String value; - private WebhookEnabledType(final String value) { + private State(final String value) { this.value = value; } @@ -282,19 +283,18 @@ public String toString() { } @JsonCreator - public static WebhookEnabledType forValue(final String value) { - return Promoter.enumFromString(value, WebhookEnabledType.values()); + public static State forValue(final String value) { + return Promoter.enumFromString(value, State.values()); } } - public enum State { - INACTIVE("inactive"), - ACTIVE("active"), - CLOSED("closed"); + public enum WebhookEnabledType { + TRUE("true"), + FALSE("false"); private final String value; - private State(final String value) { + private WebhookEnabledType(final String value) { this.value = value; } @@ -303,8 +303,8 @@ public String toString() { } @JsonCreator - public static State forValue(final String value) { - return Promoter.enumFromString(value, State.values()); + public static WebhookEnabledType forValue(final String value) { + return Promoter.enumFromString(value, WebhookEnabledType.values()); } } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/ConversationWithParticipants.java b/src/main/java/com/twilio/rest/conversations/v1/service/ConversationWithParticipants.java index 8c646f0a9a..939f0389d7 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/ConversationWithParticipants.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/ConversationWithParticipants.java @@ -250,13 +250,14 @@ public int hashCode() { ); } - public enum WebhookEnabledType { - TRUE("true"), - FALSE("false"); + public enum State { + INACTIVE("inactive"), + ACTIVE("active"), + CLOSED("closed"); private final String value; - private WebhookEnabledType(final String value) { + private State(final String value) { this.value = value; } @@ -265,19 +266,18 @@ public String toString() { } @JsonCreator - public static WebhookEnabledType forValue(final String value) { - return Promoter.enumFromString(value, WebhookEnabledType.values()); + public static State forValue(final String value) { + return Promoter.enumFromString(value, State.values()); } } - public enum State { - INACTIVE("inactive"), - ACTIVE("active"), - CLOSED("closed"); + public enum WebhookEnabledType { + TRUE("true"), + FALSE("false"); private final String value; - private State(final String value) { + private WebhookEnabledType(final String value) { this.value = value; } @@ -286,8 +286,8 @@ public String toString() { } @JsonCreator - public static State forValue(final String value) { - return Promoter.enumFromString(value, State.values()); + public static WebhookEnabledType forValue(final String value) { + return Promoter.enumFromString(value, WebhookEnabledType.values()); } } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Message.java b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Message.java index f1387fc086..f2cb2f7e5f 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Message.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/conversation/Message.java @@ -307,13 +307,13 @@ public int hashCode() { ); } - public enum WebhookEnabledType { - TRUE("true"), - FALSE("false"); + public enum OrderType { + ASC("asc"), + DESC("desc"); private final String value; - private WebhookEnabledType(final String value) { + private OrderType(final String value) { this.value = value; } @@ -322,18 +322,18 @@ public String toString() { } @JsonCreator - public static WebhookEnabledType forValue(final String value) { - return Promoter.enumFromString(value, WebhookEnabledType.values()); + public static OrderType forValue(final String value) { + return Promoter.enumFromString(value, OrderType.values()); } } - public enum OrderType { - ASC("asc"), - DESC("desc"); + public enum WebhookEnabledType { + TRUE("true"), + FALSE("false"); private final String value; - private OrderType(final String value) { + private WebhookEnabledType(final String value) { this.value = value; } @@ -342,8 +342,8 @@ public String toString() { } @JsonCreator - public static OrderType forValue(final String value) { - return Promoter.enumFromString(value, OrderType.values()); + public static WebhookEnabledType forValue(final String value) { + return Promoter.enumFromString(value, WebhookEnabledType.values()); } } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/service/user/UserConversation.java b/src/main/java/com/twilio/rest/conversations/v1/service/user/UserConversation.java index 7085fd1d84..555ae5a2c6 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/service/user/UserConversation.java +++ b/src/main/java/com/twilio/rest/conversations/v1/service/user/UserConversation.java @@ -325,14 +325,13 @@ public int hashCode() { ); } - public enum State { - INACTIVE("inactive"), - ACTIVE("active"), - CLOSED("closed"); + public enum NotificationLevel { + DEFAULT("default"), + MUTED("muted"); private final String value; - private State(final String value) { + private NotificationLevel(final String value) { this.value = value; } @@ -341,18 +340,19 @@ public String toString() { } @JsonCreator - public static State forValue(final String value) { - return Promoter.enumFromString(value, State.values()); + public static NotificationLevel forValue(final String value) { + return Promoter.enumFromString(value, NotificationLevel.values()); } } - public enum NotificationLevel { - DEFAULT("default"), - MUTED("muted"); + public enum State { + INACTIVE("inactive"), + ACTIVE("active"), + CLOSED("closed"); private final String value; - private NotificationLevel(final String value) { + private State(final String value) { this.value = value; } @@ -361,8 +361,8 @@ public String toString() { } @JsonCreator - public static NotificationLevel forValue(final String value) { - return Promoter.enumFromString(value, NotificationLevel.values()); + public static State forValue(final String value) { + return Promoter.enumFromString(value, State.values()); } } } diff --git a/src/main/java/com/twilio/rest/conversations/v1/user/UserConversation.java b/src/main/java/com/twilio/rest/conversations/v1/user/UserConversation.java index 8f3237e074..2b21907430 100644 --- a/src/main/java/com/twilio/rest/conversations/v1/user/UserConversation.java +++ b/src/main/java/com/twilio/rest/conversations/v1/user/UserConversation.java @@ -307,13 +307,14 @@ public int hashCode() { ); } - public enum NotificationLevel { - DEFAULT("default"), - MUTED("muted"); + public enum State { + INACTIVE("inactive"), + ACTIVE("active"), + CLOSED("closed"); private final String value; - private NotificationLevel(final String value) { + private State(final String value) { this.value = value; } @@ -322,19 +323,18 @@ public String toString() { } @JsonCreator - public static NotificationLevel forValue(final String value) { - return Promoter.enumFromString(value, NotificationLevel.values()); + public static State forValue(final String value) { + return Promoter.enumFromString(value, State.values()); } } - public enum State { - INACTIVE("inactive"), - ACTIVE("active"), - CLOSED("closed"); + public enum NotificationLevel { + DEFAULT("default"), + MUTED("muted"); private final String value; - private State(final String value) { + private NotificationLevel(final String value) { this.value = value; } @@ -343,8 +343,8 @@ public String toString() { } @JsonCreator - public static State forValue(final String value) { - return Promoter.enumFromString(value, State.values()); + public static NotificationLevel forValue(final String value) { + return Promoter.enumFromString(value, NotificationLevel.values()); } } } diff --git a/src/main/java/com/twilio/rest/events/v1/Sink.java b/src/main/java/com/twilio/rest/events/v1/Sink.java index 3fd1308c37..1a0f0eb112 100644 --- a/src/main/java/com/twilio/rest/events/v1/Sink.java +++ b/src/main/java/com/twilio/rest/events/v1/Sink.java @@ -223,15 +223,15 @@ public int hashCode() { ); } - public enum SinkType { - KINESIS("kinesis"), - WEBHOOK("webhook"), - SEGMENT("segment"), - EMAIL("email"); + public enum Status { + INITIALIZED("initialized"), + VALIDATING("validating"), + ACTIVE("active"), + FAILED("failed"); private final String value; - private SinkType(final String value) { + private Status(final String value) { this.value = value; } @@ -240,20 +240,20 @@ public String toString() { } @JsonCreator - public static SinkType forValue(final String value) { - return Promoter.enumFromString(value, SinkType.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } - public enum Status { - INITIALIZED("initialized"), - VALIDATING("validating"), - ACTIVE("active"), - FAILED("failed"); + public enum SinkType { + KINESIS("kinesis"), + WEBHOOK("webhook"), + SEGMENT("segment"), + EMAIL("email"); private final String value; - private Status(final String value) { + private SinkType(final String value) { this.value = value; } @@ -262,8 +262,8 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static SinkType forValue(final String value) { + return Promoter.enumFromString(value, SinkType.values()); } } } diff --git a/src/main/java/com/twilio/rest/events/v1/Subscription.java b/src/main/java/com/twilio/rest/events/v1/Subscription.java index ce86db6e50..0a37de2b4a 100644 --- a/src/main/java/com/twilio/rest/events/v1/Subscription.java +++ b/src/main/java/com/twilio/rest/events/v1/Subscription.java @@ -39,7 +39,7 @@ @ToString public class Subscription extends Resource { - private static final long serialVersionUID = 97790115204936L; + private static final long serialVersionUID = 198248500185102L; public static SubscriptionCreator creator( final String description, @@ -116,7 +116,6 @@ public static Subscription fromJson( private final String sinkSid; private final URI url; private final Map links; - private final Boolean receiveEventsFromSubaccounts; @JsonCreator private Subscription( @@ -127,10 +126,7 @@ private Subscription( @JsonProperty("description") final String description, @JsonProperty("sink_sid") final String sinkSid, @JsonProperty("url") final URI url, - @JsonProperty("links") final Map links, - @JsonProperty( - "receive_events_from_subaccounts" - ) final Boolean receiveEventsFromSubaccounts + @JsonProperty("links") final Map links ) { this.accountSid = accountSid; this.sid = sid; @@ -140,7 +136,6 @@ private Subscription( this.sinkSid = sinkSid; this.url = url; this.links = links; - this.receiveEventsFromSubaccounts = receiveEventsFromSubaccounts; } public final String getAccountSid() { @@ -175,10 +170,6 @@ public final Map getLinks() { return this.links; } - public final Boolean getReceiveEventsFromSubaccounts() { - return this.receiveEventsFromSubaccounts; - } - @Override public boolean equals(final Object o) { if (this == o) { @@ -199,11 +190,7 @@ public boolean equals(final Object o) { Objects.equals(description, other.description) && Objects.equals(sinkSid, other.sinkSid) && Objects.equals(url, other.url) && - Objects.equals(links, other.links) && - Objects.equals( - receiveEventsFromSubaccounts, - other.receiveEventsFromSubaccounts - ) + Objects.equals(links, other.links) ); } @@ -217,8 +204,7 @@ public int hashCode() { description, sinkSid, url, - links, - receiveEventsFromSubaccounts + links ); } } diff --git a/src/main/java/com/twilio/rest/events/v1/SubscriptionCreator.java b/src/main/java/com/twilio/rest/events/v1/SubscriptionCreator.java index 32b0fa95aa..449e4aa7cd 100644 --- a/src/main/java/com/twilio/rest/events/v1/SubscriptionCreator.java +++ b/src/main/java/com/twilio/rest/events/v1/SubscriptionCreator.java @@ -37,7 +37,6 @@ public class SubscriptionCreator extends Creator { private String description; private String sinkSid; private List> types; - private Boolean receiveEventsFromSubaccounts; public SubscriptionCreator( final String description, @@ -68,13 +67,6 @@ public SubscriptionCreator setTypes(final Map types) { return setTypes(Promoter.listOfOne(types)); } - public SubscriptionCreator setReceiveEventsFromSubaccounts( - final Boolean receiveEventsFromSubaccounts - ) { - this.receiveEventsFromSubaccounts = receiveEventsFromSubaccounts; - return this; - } - @Override public Subscription create(final TwilioRestClient client) { String path = "/v1/Subscriptions"; @@ -131,11 +123,5 @@ private void addPostParams(final Request request) { request.addPostParam("Types", Converter.mapToJson(prop)); } } - if (receiveEventsFromSubaccounts != null) { - request.addPostParam( - "ReceiveEventsFromSubaccounts", - receiveEventsFromSubaccounts.toString() - ); - } } } diff --git a/src/main/java/com/twilio/rest/events/v1/SubscriptionUpdater.java b/src/main/java/com/twilio/rest/events/v1/SubscriptionUpdater.java index ddd4867f2a..adefd8eab6 100644 --- a/src/main/java/com/twilio/rest/events/v1/SubscriptionUpdater.java +++ b/src/main/java/com/twilio/rest/events/v1/SubscriptionUpdater.java @@ -30,7 +30,6 @@ public class SubscriptionUpdater extends Updater { private String pathSid; private String description; private String sinkSid; - private Boolean receiveEventsFromSubaccounts; public SubscriptionUpdater(final String pathSid) { this.pathSid = pathSid; @@ -46,13 +45,6 @@ public SubscriptionUpdater setSinkSid(final String sinkSid) { return this; } - public SubscriptionUpdater setReceiveEventsFromSubaccounts( - final Boolean receiveEventsFromSubaccounts - ) { - this.receiveEventsFromSubaccounts = receiveEventsFromSubaccounts; - return this; - } - @Override public Subscription update(final TwilioRestClient client) { String path = "/v1/Subscriptions/{Sid}"; @@ -98,11 +90,5 @@ private void addPostParams(final Request request) { if (sinkSid != null) { request.addPostParam("SinkSid", sinkSid); } - if (receiveEventsFromSubaccounts != null) { - request.addPostParam( - "ReceiveEventsFromSubaccounts", - receiveEventsFromSubaccounts.toString() - ); - } } } diff --git a/src/main/java/com/twilio/rest/flexapi/v1/Interaction.java b/src/main/java/com/twilio/rest/flexapi/v1/Interaction.java index fd69658745..9bce2d74ec 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/Interaction.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/Interaction.java @@ -36,7 +36,7 @@ @ToString public class Interaction extends Resource { - private static final long serialVersionUID = 1684368631913L; + private static final long serialVersionUID = 256485735361091L; public static InteractionCreator creator( final Map channel @@ -48,6 +48,10 @@ public static InteractionFetcher fetcher(final String pathSid) { return new InteractionFetcher(pathSid); } + public static InteractionUpdater updater(final String pathSid) { + return new InteractionUpdater(pathSid); + } + /** * Converts a JSON String into a Interaction object using the provided ObjectMapper. * @@ -97,6 +101,7 @@ public static Interaction fromJson( private final URI url; private final Map links; private final String interactionContextSid; + private final String webhookTtid; @JsonCreator private Interaction( @@ -107,7 +112,8 @@ private Interaction( @JsonProperty("links") final Map links, @JsonProperty( "interaction_context_sid" - ) final String interactionContextSid + ) final String interactionContextSid, + @JsonProperty("webhook_ttid") final String webhookTtid ) { this.sid = sid; this.channel = channel; @@ -115,6 +121,7 @@ private Interaction( this.url = url; this.links = links; this.interactionContextSid = interactionContextSid; + this.webhookTtid = webhookTtid; } public final String getSid() { @@ -141,6 +148,10 @@ public final String getInteractionContextSid() { return this.interactionContextSid; } + public final String getWebhookTtid() { + return this.webhookTtid; + } + @Override public boolean equals(final Object o) { if (this == o) { @@ -159,7 +170,11 @@ public boolean equals(final Object o) { Objects.equals(routing, other.routing) && Objects.equals(url, other.url) && Objects.equals(links, other.links) && - Objects.equals(interactionContextSid, other.interactionContextSid) + Objects.equals( + interactionContextSid, + other.interactionContextSid + ) && + Objects.equals(webhookTtid, other.webhookTtid) ); } @@ -171,7 +186,8 @@ public int hashCode() { routing, url, links, - interactionContextSid + interactionContextSid, + webhookTtid ); } } diff --git a/src/main/java/com/twilio/rest/flexapi/v1/InteractionCreator.java b/src/main/java/com/twilio/rest/flexapi/v1/InteractionCreator.java index 5b7a7d3f11..fa70c4a23e 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/InteractionCreator.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/InteractionCreator.java @@ -34,6 +34,7 @@ public class InteractionCreator extends Creator { private Map channel; private Map routing; private String interactionContextSid; + private String webhookTtid; public InteractionCreator(final Map channel) { this.channel = channel; @@ -56,6 +57,11 @@ public InteractionCreator setInteractionContextSid( return this; } + public InteractionCreator setWebhookTtid(final String webhookTtid) { + this.webhookTtid = webhookTtid; + return this; + } + @Override public Interaction create(final TwilioRestClient client) { String path = "/v1/Interactions"; @@ -107,5 +113,8 @@ private void addPostParams(final Request request) { interactionContextSid ); } + if (webhookTtid != null) { + request.addPostParam("WebhookTtid", webhookTtid); + } } } diff --git a/src/main/java/com/twilio/rest/preview/sync/service/DocumentFetcher.java b/src/main/java/com/twilio/rest/flexapi/v1/InteractionUpdater.java similarity index 68% rename from src/main/java/com/twilio/rest/preview/sync/service/DocumentFetcher.java rename to src/main/java/com/twilio/rest/flexapi/v1/InteractionUpdater.java index 20f362eaec..56c6dd4842 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/DocumentFetcher.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/InteractionUpdater.java @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Preview + * Twilio - Flex * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -12,9 +12,9 @@ * Do not edit the class manually. */ -package com.twilio.rest.preview.sync.service; +package com.twilio.rest.flexapi.v1; -import com.twilio.base.Fetcher; +import com.twilio.base.Updater; import com.twilio.constant.EnumConstants; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; @@ -25,38 +25,37 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -public class DocumentFetcher extends Fetcher { +public class InteractionUpdater extends Updater { - private String pathServiceSid; private String pathSid; + private String webhookTtid; - public DocumentFetcher(final String pathServiceSid, final String pathSid) { - this.pathServiceSid = pathServiceSid; + public InteractionUpdater(final String pathSid) { this.pathSid = pathSid; } + public InteractionUpdater setWebhookTtid(final String webhookTtid) { + this.webhookTtid = webhookTtid; + return this; + } + @Override - public Document fetch(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Documents/{Sid}"; + public Interaction update(final TwilioRestClient client) { + String path = "/v1/Interactions/{Sid}"; - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); Request request = new Request( - HttpMethod.GET, - Domains.PREVIEW.toString(), + HttpMethod.POST, + Domains.FLEXAPI.toString(), path ); request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); + addPostParams(request); Response response = client.request(request); - if (response == null) { throw new ApiConnectionException( - "Document fetch failed: Unable to connect to server" + "Interaction update failed: Unable to connect to server" ); } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { RestException restException = RestException.fromJson( @@ -72,9 +71,15 @@ public Document fetch(final TwilioRestClient client) { throw new ApiException(restException); } - return Document.fromJson( + return Interaction.fromJson( response.getStream(), client.getObjectMapper() ); } + + private void addPostParams(final Request request) { + if (webhookTtid != null) { + request.addPostParam("WebhookTtid", webhookTtid); + } + } } diff --git a/src/main/java/com/twilio/rest/flexapi/v1/interaction/InteractionChannel.java b/src/main/java/com/twilio/rest/flexapi/v1/interaction/InteractionChannel.java index bba5c50098..9c1d778e34 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/interaction/InteractionChannel.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/interaction/InteractionChannel.java @@ -233,16 +233,13 @@ public static Type forValue(final String value) { } } - public enum ChannelStatus { - SETUP("setup"), - ACTIVE("active"), - FAILED("failed"), + public enum UpdateChannelStatus { CLOSED("closed"), INACTIVE("inactive"); private final String value; - private ChannelStatus(final String value) { + private UpdateChannelStatus(final String value) { this.value = value; } @@ -251,18 +248,21 @@ public String toString() { } @JsonCreator - public static ChannelStatus forValue(final String value) { - return Promoter.enumFromString(value, ChannelStatus.values()); + public static UpdateChannelStatus forValue(final String value) { + return Promoter.enumFromString(value, UpdateChannelStatus.values()); } } - public enum UpdateChannelStatus { + public enum ChannelStatus { + SETUP("setup"), + ACTIVE("active"), + FAILED("failed"), CLOSED("closed"), INACTIVE("inactive"); private final String value; - private UpdateChannelStatus(final String value) { + private ChannelStatus(final String value) { this.value = value; } @@ -271,8 +271,8 @@ public String toString() { } @JsonCreator - public static UpdateChannelStatus forValue(final String value) { - return Promoter.enumFromString(value, UpdateChannelStatus.values()); + public static ChannelStatus forValue(final String value) { + return Promoter.enumFromString(value, ChannelStatus.values()); } } } diff --git a/src/main/java/com/twilio/rest/flexapi/v1/interaction/interactionchannel/InteractionChannelParticipant.java b/src/main/java/com/twilio/rest/flexapi/v1/interaction/interactionchannel/InteractionChannelParticipant.java index bfe8819ded..390638a66e 100644 --- a/src/main/java/com/twilio/rest/flexapi/v1/interaction/interactionchannel/InteractionChannelParticipant.java +++ b/src/main/java/com/twilio/rest/flexapi/v1/interaction/interactionchannel/InteractionChannelParticipant.java @@ -211,16 +211,13 @@ public int hashCode() { ); } - public enum Type { - SUPERVISOR("supervisor"), - CUSTOMER("customer"), - EXTERNAL("external"), - AGENT("agent"), - UNKNOWN("unknown"); + public enum Status { + CLOSED("closed"), + WRAPUP("wrapup"); private final String value; - private Type(final String value) { + private Status(final String value) { this.value = value; } @@ -229,18 +226,21 @@ public String toString() { } @JsonCreator - public static Type forValue(final String value) { - return Promoter.enumFromString(value, Type.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } - public enum Status { - CLOSED("closed"), - WRAPUP("wrapup"); + public enum Type { + SUPERVISOR("supervisor"), + CUSTOMER("customer"), + EXTERNAL("external"), + AGENT("agent"), + UNKNOWN("unknown"); private final String value; - private Status(final String value) { + private Type(final String value) { this.value = value; } @@ -249,8 +249,8 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static Type forValue(final String value) { + return Promoter.enumFromString(value, Type.values()); } } } diff --git a/src/main/java/com/twilio/rest/flexapi/v2/FlexUser.java b/src/main/java/com/twilio/rest/flexapi/v2/FlexUser.java index 7d82edfc22..6c24fef3c1 100644 --- a/src/main/java/com/twilio/rest/flexapi/v2/FlexUser.java +++ b/src/main/java/com/twilio/rest/flexapi/v2/FlexUser.java @@ -37,7 +37,7 @@ @ToString public class FlexUser extends Resource { - private static final long serialVersionUID = 135272975110546L; + private static final long serialVersionUID = 33792747593719L; public static FlexUserFetcher fetcher( final String pathInstanceSid, @@ -103,11 +103,8 @@ public static FlexUser fromJson( private final String workerSid; private final String workspaceSid; private final String flexTeamSid; - private final String firstName; - private final String lastName; private final String username; private final String email; - private final String friendlyName; private final String locale; private final List roles; private final ZonedDateTime createdDate; @@ -124,11 +121,8 @@ private FlexUser( @JsonProperty("worker_sid") final String workerSid, @JsonProperty("workspace_sid") final String workspaceSid, @JsonProperty("flex_team_sid") final String flexTeamSid, - @JsonProperty("first_name") final String firstName, - @JsonProperty("last_name") final String lastName, @JsonProperty("username") final String username, @JsonProperty("email") final String email, - @JsonProperty("friendly_name") final String friendlyName, @JsonProperty("locale") final String locale, @JsonProperty("roles") final List roles, @JsonProperty("created_date") final String createdDate, @@ -143,11 +137,8 @@ private FlexUser( this.workerSid = workerSid; this.workspaceSid = workspaceSid; this.flexTeamSid = flexTeamSid; - this.firstName = firstName; - this.lastName = lastName; this.username = username; this.email = email; - this.friendlyName = friendlyName; this.locale = locale; this.roles = roles; this.createdDate = DateConverter.iso8601DateTimeFromString(createdDate); @@ -184,14 +175,6 @@ public final String getFlexTeamSid() { return this.flexTeamSid; } - public final String getFirstName() { - return this.firstName; - } - - public final String getLastName() { - return this.lastName; - } - public final String getUsername() { return this.username; } @@ -200,10 +183,6 @@ public final String getEmail() { return this.email; } - public final String getFriendlyName() { - return this.friendlyName; - } - public final String getLocale() { return this.locale; } @@ -248,11 +227,8 @@ public boolean equals(final Object o) { Objects.equals(workerSid, other.workerSid) && Objects.equals(workspaceSid, other.workspaceSid) && Objects.equals(flexTeamSid, other.flexTeamSid) && - Objects.equals(firstName, other.firstName) && - Objects.equals(lastName, other.lastName) && Objects.equals(username, other.username) && Objects.equals(email, other.email) && - Objects.equals(friendlyName, other.friendlyName) && Objects.equals(locale, other.locale) && Objects.equals(roles, other.roles) && Objects.equals(createdDate, other.createdDate) && @@ -272,11 +248,8 @@ public int hashCode() { workerSid, workspaceSid, flexTeamSid, - firstName, - lastName, username, email, - friendlyName, locale, roles, createdDate, diff --git a/src/main/java/com/twilio/rest/flexapi/v2/FlexUserUpdater.java b/src/main/java/com/twilio/rest/flexapi/v2/FlexUserUpdater.java index 9729b3d2ce..342550ec0f 100644 --- a/src/main/java/com/twilio/rest/flexapi/v2/FlexUserUpdater.java +++ b/src/main/java/com/twilio/rest/flexapi/v2/FlexUserUpdater.java @@ -29,10 +29,7 @@ public class FlexUserUpdater extends Updater { private String pathInstanceSid; private String pathFlexUserSid; - private String firstName; - private String lastName; private String email; - private String friendlyName; private String userSid; private String locale; @@ -44,26 +41,11 @@ public FlexUserUpdater( this.pathFlexUserSid = pathFlexUserSid; } - public FlexUserUpdater setFirstName(final String firstName) { - this.firstName = firstName; - return this; - } - - public FlexUserUpdater setLastName(final String lastName) { - this.lastName = lastName; - return this; - } - public FlexUserUpdater setEmail(final String email) { this.email = email; return this; } - public FlexUserUpdater setFriendlyName(final String friendlyName) { - this.friendlyName = friendlyName; - return this; - } - public FlexUserUpdater setUserSid(final String userSid) { this.userSid = userSid; return this; @@ -122,18 +104,9 @@ public FlexUser update(final TwilioRestClient client) { } private void addPostParams(final Request request) { - if (firstName != null) { - request.addPostParam("FirstName", firstName); - } - if (lastName != null) { - request.addPostParam("LastName", lastName); - } if (email != null) { request.addPostParam("Email", email); } - if (friendlyName != null) { - request.addPostParam("FriendlyName", friendlyName); - } if (userSid != null) { request.addPostParam("UserSid", userSid); } diff --git a/src/main/java/com/twilio/rest/iam/v1/ApiKeyUpdater.java b/src/main/java/com/twilio/rest/iam/v1/ApiKeyUpdater.java index edc001f805..4d33ce3945 100644 --- a/src/main/java/com/twilio/rest/iam/v1/ApiKeyUpdater.java +++ b/src/main/java/com/twilio/rest/iam/v1/ApiKeyUpdater.java @@ -25,13 +25,12 @@ import com.twilio.http.Response; import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -import java.util.Map; public class ApiKeyUpdater extends Updater { private String pathSid; private String friendlyName; - private Map policy; + private Object policy; public ApiKeyUpdater(final String pathSid) { this.pathSid = pathSid; @@ -42,7 +41,7 @@ public ApiKeyUpdater setFriendlyName(final String friendlyName) { return this; } - public ApiKeyUpdater setPolicy(final Map policy) { + public ApiKeyUpdater setPolicy(final Object policy) { this.policy = policy; return this; } @@ -87,7 +86,7 @@ private void addPostParams(final Request request) { request.addPostParam("FriendlyName", friendlyName); } if (policy != null) { - request.addPostParam("Policy", Converter.mapToJson(policy)); + request.addPostParam("Policy", Converter.objectToJson(policy)); } } } diff --git a/src/main/java/com/twilio/rest/iam/v1/NewApiKeyCreator.java b/src/main/java/com/twilio/rest/iam/v1/NewApiKeyCreator.java index bad41944a6..df5c0c2a42 100644 --- a/src/main/java/com/twilio/rest/iam/v1/NewApiKeyCreator.java +++ b/src/main/java/com/twilio/rest/iam/v1/NewApiKeyCreator.java @@ -26,15 +26,13 @@ import com.twilio.http.Response; import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -import java.util.Map; -import java.util.Map; public class NewApiKeyCreator extends Creator { private String accountSid; private String friendlyName; private NewApiKey.Keytype keyType; - private Map policy; + private Object policy; public NewApiKeyCreator(final String accountSid) { this.accountSid = accountSid; @@ -55,7 +53,7 @@ public NewApiKeyCreator setKeyType(final NewApiKey.Keytype keyType) { return this; } - public NewApiKeyCreator setPolicy(final Map policy) { + public NewApiKeyCreator setPolicy(final Object policy) { this.policy = policy; return this; } @@ -110,7 +108,7 @@ private void addPostParams(final Request request) { request.addPostParam("KeyType", keyType.toString()); } if (policy != null) { - request.addPostParam("Policy", Converter.mapToJson(policy)); + request.addPostParam("Policy", Converter.objectToJson(policy)); } } } diff --git a/src/main/java/com/twilio/rest/iam/v1/Token.java b/src/main/java/com/twilio/rest/iam/v1/Token.java new file mode 100644 index 0000000000..c3d454f14a --- /dev/null +++ b/src/main/java/com/twilio/rest/iam/v1/Token.java @@ -0,0 +1,160 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Iam + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.twilio.rest.iam.v1; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.twilio.base.noauth.Resource; +import com.twilio.exception.ApiConnectionException; +import com.twilio.exception.ApiException; +import java.io.IOException; +import java.io.InputStream; +import java.util.Objects; +import lombok.ToString; +import lombok.ToString; + +@JsonIgnoreProperties(ignoreUnknown = true) +@ToString +public class Token extends Resource { + + private static final long serialVersionUID = 258139119277894L; + + public static TokenCreator creator( + final String grantType, + final String clientId + ) { + return new TokenCreator(grantType, clientId); + } + + /** + * Converts a JSON String into a Token object using the provided ObjectMapper. + * + * @param json Raw JSON String + * @param objectMapper Jackson ObjectMapper + * @return Token object represented by the provided JSON + */ + public static Token fromJson( + final String json, + final ObjectMapper objectMapper + ) { + // Convert all checked exceptions to Runtime + try { + return objectMapper.readValue(json, Token.class); + } catch (final JsonMappingException | JsonParseException e) { + throw new ApiException(e.getMessage(), e); + } catch (final IOException e) { + throw new ApiConnectionException(e.getMessage(), e); + } + } + + /** + * Converts a JSON InputStream into a Token object using the provided + * ObjectMapper. + * + * @param json Raw JSON InputStream + * @param objectMapper Jackson ObjectMapper + * @return Token object represented by the provided JSON + */ + public static Token fromJson( + final InputStream json, + final ObjectMapper objectMapper + ) { + // Convert all checked exceptions to Runtime + try { + return objectMapper.readValue(json, Token.class); + } catch (final JsonMappingException | JsonParseException e) { + throw new ApiException(e.getMessage(), e); + } catch (final IOException e) { + throw new ApiConnectionException(e.getMessage(), e); + } + } + + private final String accessToken; + private final String refreshToken; + private final String idToken; + private final String tokenType; + private final Long expiresIn; + + @JsonCreator + private Token( + @JsonProperty("access_token") final String accessToken, + @JsonProperty("refresh_token") final String refreshToken, + @JsonProperty("id_token") final String idToken, + @JsonProperty("token_type") final String tokenType, + @JsonProperty("expires_in") final Long expiresIn + ) { + this.accessToken = accessToken; + this.refreshToken = refreshToken; + this.idToken = idToken; + this.tokenType = tokenType; + this.expiresIn = expiresIn; + } + + public final String getAccessToken() { + return this.accessToken; + } + + public final String getRefreshToken() { + return this.refreshToken; + } + + public final String getIdToken() { + return this.idToken; + } + + public final String getTokenType() { + return this.tokenType; + } + + public final Long getExpiresIn() { + return this.expiresIn; + } + + @Override + public boolean equals(final Object o) { + if (this == o) { + return true; + } + + if (o == null || getClass() != o.getClass()) { + return false; + } + + Token other = (Token) o; + + return ( + Objects.equals(accessToken, other.accessToken) && + Objects.equals(refreshToken, other.refreshToken) && + Objects.equals(idToken, other.idToken) && + Objects.equals(tokenType, other.tokenType) && + Objects.equals(expiresIn, other.expiresIn) + ); + } + + @Override + public int hashCode() { + return Objects.hash( + accessToken, + refreshToken, + idToken, + tokenType, + expiresIn + ); + } +} diff --git a/src/main/java/com/twilio/rest/iam/v1/TokenCreator.java b/src/main/java/com/twilio/rest/iam/v1/TokenCreator.java new file mode 100644 index 0000000000..eed268b64f --- /dev/null +++ b/src/main/java/com/twilio/rest/iam/v1/TokenCreator.java @@ -0,0 +1,149 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Iam + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.twilio.rest.iam.v1; + +import com.twilio.base.noauth.Creator; +import com.twilio.constant.EnumConstants; +import com.twilio.exception.ApiConnectionException; +import com.twilio.exception.ApiException; +import com.twilio.exception.RestException; +import com.twilio.http.HttpMethod; +import com.twilio.http.Response; +import com.twilio.http.noauth.NoAuthRequest; +import com.twilio.http.noauth.NoAuthTwilioRestClient; +import com.twilio.rest.Domains; + +public class TokenCreator extends Creator { + + private String grantType; + private String clientId; + private String clientSecret; + private String code; + private String redirectUri; + private String audience; + private String refreshToken; + private String scope; + + public TokenCreator(final String grantType, final String clientId) { + this.grantType = grantType; + this.clientId = clientId; + } + + public TokenCreator setGrantType(final String grantType) { + this.grantType = grantType; + return this; + } + + public TokenCreator setClientId(final String clientId) { + this.clientId = clientId; + return this; + } + + public TokenCreator setClientSecret(final String clientSecret) { + this.clientSecret = clientSecret; + return this; + } + + public TokenCreator setCode(final String code) { + this.code = code; + return this; + } + + public TokenCreator setRedirectUri(final String redirectUri) { + this.redirectUri = redirectUri; + return this; + } + + public TokenCreator setAudience(final String audience) { + this.audience = audience; + return this; + } + + public TokenCreator setRefreshToken(final String refreshToken) { + this.refreshToken = refreshToken; + return this; + } + + public TokenCreator setScope(final String scope) { + this.scope = scope; + return this; + } + + @Override + public Token create(final NoAuthTwilioRestClient client) { + String path = "/v1/token"; + + path = + path.replace("{" + "grant_type" + "}", this.grantType.toString()); + path = path.replace("{" + "client_id" + "}", this.clientId.toString()); + + NoAuthRequest request = new NoAuthRequest( + HttpMethod.POST, + Domains.IAM.toString(), + path + ); + request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); + addPostParams(request); + Response response = client.request(request); + if (response == null) { + throw new ApiConnectionException( + "Token creation failed: Unable to connect to server" + ); + } else if ( + !NoAuthTwilioRestClient.SUCCESS.test(response.getStatusCode()) + ) { + RestException restException = RestException.fromJson( + response.getStream(), + client.getObjectMapper() + ); + if (restException == null) { + throw new ApiException( + "Server Error, no content", + response.getStatusCode() + ); + } + throw new ApiException(restException); + } + + return Token.fromJson(response.getStream(), client.getObjectMapper()); + } + + private void addPostParams(final NoAuthRequest request) { + if (grantType != null) { + request.addPostParam("grant_type", grantType); + } + if (clientId != null) { + request.addPostParam("client_id", clientId); + } + if (clientSecret != null) { + request.addPostParam("client_secret", clientSecret); + } + if (code != null) { + request.addPostParam("code", code); + } + if (redirectUri != null) { + request.addPostParam("redirect_uri", redirectUri); + } + if (audience != null) { + request.addPostParam("audience", audience); + } + if (refreshToken != null) { + request.addPostParam("refresh_token", refreshToken); + } + if (scope != null) { + request.addPostParam("scope", scope); + } + } +} diff --git a/src/main/java/com/twilio/rest/insights/v1/Room.java b/src/main/java/com/twilio/rest/insights/v1/Room.java index 207874fd12..32a1fb2ece 100644 --- a/src/main/java/com/twilio/rest/insights/v1/Room.java +++ b/src/main/java/com/twilio/rest/insights/v1/Room.java @@ -407,7 +407,9 @@ public static EndReason forValue(final String value) { public enum ProcessingState { COMPLETE("complete"), - IN_PROGRESS("in_progress"); + IN_PROGRESS("in_progress"), + TIMEOUT("timeout"), + NOT_STARTED("not_started"); private final String value; @@ -437,7 +439,17 @@ public enum TwilioRealm { DE1("de1"), GLL("gll"), STAGE_US1("stage_us1"), - DEV_US1("dev_us1"); + STAGE_US2("stage_us2"), + DEV_US1("dev_us1"), + DEV_US2("dev_us2"), + STAGE_DE1("stage_de1"), + STAGE_IN1("stage_in1"), + STAGE_IE1("stage_ie1"), + STAGE_BR1("stage_br1"), + STAGE_AU1("stage_au1"), + STAGE_SG1("stage_sg1"), + STAGE_JP1("stage_jp1"), + OUTSIDE("outside"); private final String value; diff --git a/src/main/java/com/twilio/rest/insights/v1/room/Participant.java b/src/main/java/com/twilio/rest/insights/v1/room/Participant.java index 372136f174..db0b8b2325 100644 --- a/src/main/java/com/twilio/rest/insights/v1/room/Participant.java +++ b/src/main/java/com/twilio/rest/insights/v1/room/Participant.java @@ -281,7 +281,9 @@ public int hashCode() { public enum RoomStatus { IN_PROGRESS("in_progress"), - COMPLETED("completed"); + CONNECTED("connected"), + COMPLETED("completed"), + DISCONNECTED("disconnected"); private final String value; @@ -299,6 +301,46 @@ public static RoomStatus forValue(final String value) { } } + public enum TwilioRealm { + US1("us1"), + US2("us2"), + AU1("au1"), + BR1("br1"), + IE1("ie1"), + JP1("jp1"), + SG1("sg1"), + IN1("in1"), + DE1("de1"), + GLL("gll"), + STAGE_US1("stage_us1"), + DEV_US1("dev_us1"), + STAGE_AU1("stage_au1"), + STAGE_SG1("stage_sg1"), + STAGE_BR1("stage_br1"), + STAGE_IN1("stage_in1"), + STAGE_JP1("stage_jp1"), + STAGE_DE1("stage_de1"), + STAGE_IE1("stage_ie1"), + STAGE_US2("stage_us2"), + DEV_US2("dev_us2"), + OUTSIDE("outside"); + + private final String value; + + private TwilioRealm(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static TwilioRealm forValue(final String value) { + return Promoter.enumFromString(value, TwilioRealm.values()); + } + } + public enum Codec { VP8("VP8"), H264("H264"), @@ -347,34 +389,4 @@ public static EdgeLocation forValue(final String value) { return Promoter.enumFromString(value, EdgeLocation.values()); } } - - public enum TwilioRealm { - US1("us1"), - US2("us2"), - AU1("au1"), - BR1("br1"), - IE1("ie1"), - JP1("jp1"), - SG1("sg1"), - IN1("in1"), - DE1("de1"), - GLL("gll"), - STAGE_US1("stage_us1"), - DEV_US1("dev_us1"); - - private final String value; - - private TwilioRealm(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static TwilioRealm forValue(final String value) { - return Promoter.enumFromString(value, TwilioRealm.values()); - } - } } diff --git a/src/main/java/com/twilio/rest/intelligence/v2/OperatorType.java b/src/main/java/com/twilio/rest/intelligence/v2/OperatorType.java index 2142f4f135..566ab5cb66 100644 --- a/src/main/java/com/twilio/rest/intelligence/v2/OperatorType.java +++ b/src/main/java/com/twilio/rest/intelligence/v2/OperatorType.java @@ -251,14 +251,16 @@ public int hashCode() { ); } - public enum Provider { - TWILIO("twilio"), - AMAZON("amazon"), - OPENAI("openai"); + public enum Availability { + INTERNAL("internal"), + BETA("beta"), + GENERAL_AVAILABILITY("general-availability"), + RETIRED("retired"), + DEPRECATED("deprecated"); private final String value; - private Provider(final String value) { + private Availability(final String value) { this.value = value; } @@ -267,8 +269,8 @@ public String toString() { } @JsonCreator - public static Provider forValue(final String value) { - return Promoter.enumFromString(value, Provider.values()); + public static Availability forValue(final String value) { + return Promoter.enumFromString(value, Availability.values()); } } @@ -294,16 +296,14 @@ public static OutputType forValue(final String value) { } } - public enum Availability { - INTERNAL("internal"), - BETA("beta"), - GENERAL_AVAILABILITY("general-availability"), - RETIRED("retired"), - DEPRECATED("deprecated"); + public enum Provider { + TWILIO("twilio"), + AMAZON("amazon"), + OPENAI("openai"); private final String value; - private Availability(final String value) { + private Provider(final String value) { this.value = value; } @@ -312,8 +312,8 @@ public String toString() { } @JsonCreator - public static Availability forValue(final String value) { - return Promoter.enumFromString(value, Availability.values()); + public static Provider forValue(final String value) { + return Promoter.enumFromString(value, Provider.values()); } } } diff --git a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Webhook.java b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Webhook.java index a085266fe2..e4202e4268 100644 --- a/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Webhook.java +++ b/src/main/java/com/twilio/rest/ipmessaging/v2/service/channel/Webhook.java @@ -232,13 +232,14 @@ public int hashCode() { ); } - public enum Method { - GET("GET"), - POST("POST"); + public enum Type { + WEBHOOK("webhook"), + TRIGGER("trigger"), + STUDIO("studio"); private final String value; - private Method(final String value) { + private Type(final String value) { this.value = value; } @@ -247,19 +248,18 @@ public String toString() { } @JsonCreator - public static Method forValue(final String value) { - return Promoter.enumFromString(value, Method.values()); + public static Type forValue(final String value) { + return Promoter.enumFromString(value, Type.values()); } } - public enum Type { - WEBHOOK("webhook"), - TRIGGER("trigger"), - STUDIO("studio"); + public enum Method { + GET("GET"), + POST("POST"); private final String value; - private Type(final String value) { + private Method(final String value) { this.value = value; } @@ -268,8 +268,8 @@ public String toString() { } @JsonCreator - public static Type forValue(final String value) { - return Promoter.enumFromString(value, Type.values()); + public static Method forValue(final String value) { + return Promoter.enumFromString(value, Method.values()); } } } diff --git a/src/main/java/com/twilio/rest/knowledge/v1/Knowledge.java b/src/main/java/com/twilio/rest/knowledge/v1/Knowledge.java new file mode 100644 index 0000000000..a2a7a572e3 --- /dev/null +++ b/src/main/java/com/twilio/rest/knowledge/v1/Knowledge.java @@ -0,0 +1,416 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Knowledge + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.twilio.rest.knowledge.v1; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.twilio.base.Resource; +import com.twilio.converter.Converter; +import com.twilio.converter.DateConverter; +import com.twilio.exception.ApiConnectionException; +import com.twilio.exception.ApiException; +import java.io.IOException; +import java.io.InputStream; +import java.time.ZonedDateTime; +import java.util.Map; +import java.util.Map; +import java.util.Objects; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import lombok.ToString; + +@JsonIgnoreProperties(ignoreUnknown = true) +@ToString +public class Knowledge extends Resource { + + private static final long serialVersionUID = 142704301669097L; + + @ToString + public static class KnowledgeV1ServiceCreatePolicyRequest { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("description") + @Getter + @Setter + private String description; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("id") + @Getter + @Setter + private String id; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("name") + @Getter + @Setter + private String name; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("policy_details") + @Getter + @Setter + private Object policyDetails; + + public String getPolicyDetails() { + return Converter.objectToJson(policyDetails); + } + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("type") + @Getter + @Setter + private String type; + + public static KnowledgeV1ServiceCreatePolicyRequest fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue( + jsonString, + KnowledgeV1ServiceCreatePolicyRequest.class + ); + } + } + + @ToString + public static class KnowledgeV1ServiceCreateKnowledgeRequest { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("description") + @Getter + @Setter + private String description; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("knowledge_source_details") + @Getter + @Setter + private Map knowledgeSourceDetails; + + public String getKnowledgeSourceDetails() { + return Converter.mapToJson(knowledgeSourceDetails); + } + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("name") + @Getter + @Setter + private String name; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("policy") + @Getter + @Setter + private KnowledgeV1ServiceCreatePolicyRequest policy; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("type") + @Getter + @Setter + private String type; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("embedding_model") + @Getter + @Setter + private String embeddingModel; + + public KnowledgeV1ServiceCreateKnowledgeRequest() {} + + public static KnowledgeV1ServiceCreateKnowledgeRequest fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue( + jsonString, + KnowledgeV1ServiceCreateKnowledgeRequest.class + ); + } + } + + @ToString + public static class KnowledgeV1ServiceUpdateKnowledgeRequest { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("description") + @Getter + @Setter + private String description; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("knowledge_source_details") + @Getter + @Setter + private Map knowledgeSourceDetails; + + public String getKnowledgeSourceDetails() { + return Converter.mapToJson(knowledgeSourceDetails); + } + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("name") + @Getter + @Setter + private String name; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("policy") + @Getter + @Setter + private KnowledgeV1ServiceCreatePolicyRequest policy; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("type") + @Getter + @Setter + private String type; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("embedding_model") + @Getter + @Setter + private String embeddingModel; + + public KnowledgeV1ServiceUpdateKnowledgeRequest() {} + + public static KnowledgeV1ServiceUpdateKnowledgeRequest fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue( + jsonString, + KnowledgeV1ServiceUpdateKnowledgeRequest.class + ); + } + } + + public static KnowledgeCreator creator( + final Knowledge.KnowledgeV1ServiceCreateKnowledgeRequest knowledgeV1ServiceCreateKnowledgeRequest + ) { + return new KnowledgeCreator(knowledgeV1ServiceCreateKnowledgeRequest); + } + + public static KnowledgeDeleter deleter(final String pathId) { + return new KnowledgeDeleter(pathId); + } + + public static KnowledgeFetcher fetcher(final String pathId) { + return new KnowledgeFetcher(pathId); + } + + public static KnowledgeReader reader() { + return new KnowledgeReader(); + } + + public static KnowledgeUpdater updater(final String pathId) { + return new KnowledgeUpdater(pathId); + } + + /** + * Converts a JSON String into a Knowledge object using the provided ObjectMapper. + * + * @param json Raw JSON String + * @param objectMapper Jackson ObjectMapper + * @return Knowledge object represented by the provided JSON + */ + public static Knowledge fromJson( + final String json, + final ObjectMapper objectMapper + ) { + // Convert all checked exceptions to Runtime + try { + return objectMapper.readValue(json, Knowledge.class); + } catch (final JsonMappingException | JsonParseException e) { + throw new ApiException(e.getMessage(), e); + } catch (final IOException e) { + throw new ApiConnectionException(e.getMessage(), e); + } + } + + /** + * Converts a JSON InputStream into a Knowledge object using the provided + * ObjectMapper. + * + * @param json Raw JSON InputStream + * @param objectMapper Jackson ObjectMapper + * @return Knowledge object represented by the provided JSON + */ + public static Knowledge fromJson( + final InputStream json, + final ObjectMapper objectMapper + ) { + // Convert all checked exceptions to Runtime + try { + return objectMapper.readValue(json, Knowledge.class); + } catch (final JsonMappingException | JsonParseException e) { + throw new ApiException(e.getMessage(), e); + } catch (final IOException e) { + throw new ApiConnectionException(e.getMessage(), e); + } + } + + public static String toJson(Object object, ObjectMapper mapper) { + try { + return mapper.writeValueAsString(object); + } catch (final JsonMappingException e) { + throw new ApiException(e.getMessage(), e); + } catch (JsonProcessingException e) { + throw new ApiException(e.getMessage(), e); + } catch (final IOException e) { + throw new ApiConnectionException(e.getMessage(), e); + } + } + + private final String description; + private final String id; + private final String accountSid; + private final Map knowledgeSourceDetails; + private final String name; + private final String status; + private final String type; + private final String url; + private final String embeddingModel; + private final ZonedDateTime dateCreated; + private final ZonedDateTime dateUpdated; + + @JsonCreator + private Knowledge( + @JsonProperty("description") final String description, + @JsonProperty("id") final String id, + @JsonProperty("account_sid") final String accountSid, + @JsonProperty("knowledge_source_details") final Map< + String, + Object + > knowledgeSourceDetails, + @JsonProperty("name") final String name, + @JsonProperty("status") final String status, + @JsonProperty("type") final String type, + @JsonProperty("url") final String url, + @JsonProperty("embedding_model") final String embeddingModel, + @JsonProperty("date_created") final String dateCreated, + @JsonProperty("date_updated") final String dateUpdated + ) { + this.description = description; + this.id = id; + this.accountSid = accountSid; + this.knowledgeSourceDetails = knowledgeSourceDetails; + this.name = name; + this.status = status; + this.type = type; + this.url = url; + this.embeddingModel = embeddingModel; + this.dateCreated = DateConverter.iso8601DateTimeFromString(dateCreated); + this.dateUpdated = DateConverter.iso8601DateTimeFromString(dateUpdated); + } + + public final String getDescription() { + return this.description; + } + + public final String getId() { + return this.id; + } + + public final String getAccountSid() { + return this.accountSid; + } + + public final Map getKnowledgeSourceDetails() { + return this.knowledgeSourceDetails; + } + + public final String getName() { + return this.name; + } + + public final String getStatus() { + return this.status; + } + + public final String getType() { + return this.type; + } + + public final String getUrl() { + return this.url; + } + + public final String getEmbeddingModel() { + return this.embeddingModel; + } + + public final ZonedDateTime getDateCreated() { + return this.dateCreated; + } + + public final ZonedDateTime getDateUpdated() { + return this.dateUpdated; + } + + @Override + public boolean equals(final Object o) { + if (this == o) { + return true; + } + + if (o == null || getClass() != o.getClass()) { + return false; + } + + Knowledge other = (Knowledge) o; + + return ( + Objects.equals(description, other.description) && + Objects.equals(id, other.id) && + Objects.equals(accountSid, other.accountSid) && + Objects.equals( + knowledgeSourceDetails, + other.knowledgeSourceDetails + ) && + Objects.equals(name, other.name) && + Objects.equals(status, other.status) && + Objects.equals(type, other.type) && + Objects.equals(url, other.url) && + Objects.equals(embeddingModel, other.embeddingModel) && + Objects.equals(dateCreated, other.dateCreated) && + Objects.equals(dateUpdated, other.dateUpdated) + ); + } + + @Override + public int hashCode() { + return Objects.hash( + description, + id, + accountSid, + knowledgeSourceDetails, + name, + status, + type, + url, + embeddingModel, + dateCreated, + dateUpdated + ); + } +} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemCreator.java b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeCreator.java similarity index 51% rename from src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemCreator.java rename to src/main/java/com/twilio/rest/knowledge/v1/KnowledgeCreator.java index a13cbb5e4f..943ed52437 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemCreator.java +++ b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeCreator.java @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Preview + * Twilio - Knowledge * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -12,12 +12,11 @@ * Do not edit the class manually. */ -package com.twilio.rest.preview.sync.service.synclist; +package com.twilio.rest.knowledge.v1; +import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Creator; import com.twilio.constant.EnumConstants; -import com.twilio.converter.Converter; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.exception.RestException; @@ -26,53 +25,47 @@ import com.twilio.http.Response; import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -import java.util.Map; -import java.util.Map; -public class SyncListItemCreator extends Creator { +public class KnowledgeCreator extends Creator { - private String pathServiceSid; - private String pathListSid; - private Map data; + private Knowledge.KnowledgeV1ServiceCreateKnowledgeRequest knowledgeV1ServiceCreateKnowledgeRequest; - public SyncListItemCreator( - final String pathServiceSid, - final String pathListSid, - final Map data + public KnowledgeCreator( + final Knowledge.KnowledgeV1ServiceCreateKnowledgeRequest knowledgeV1ServiceCreateKnowledgeRequest ) { - this.pathServiceSid = pathServiceSid; - this.pathListSid = pathListSid; - this.data = data; + this.knowledgeV1ServiceCreateKnowledgeRequest = + knowledgeV1ServiceCreateKnowledgeRequest; } - public SyncListItemCreator setData(final Map data) { - this.data = data; + public KnowledgeCreator setKnowledgeV1ServiceCreateKnowledgeRequest( + final Knowledge.KnowledgeV1ServiceCreateKnowledgeRequest knowledgeV1ServiceCreateKnowledgeRequest + ) { + this.knowledgeV1ServiceCreateKnowledgeRequest = + knowledgeV1ServiceCreateKnowledgeRequest; return this; } @Override - public SyncListItem create(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items"; + public Knowledge create(final TwilioRestClient client) { + String path = "/v1/Knowledge"; path = path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() + "{" + "KnowledgeV1ServiceCreateKnowledgeRequest" + "}", + this.knowledgeV1ServiceCreateKnowledgeRequest.toString() ); - path = path.replace("{" + "ListSid" + "}", this.pathListSid.toString()); - path = path.replace("{" + "Data" + "}", this.data.toString()); Request request = new Request( HttpMethod.POST, - Domains.PREVIEW.toString(), + Domains.KNOWLEDGE.toString(), path ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addPostParams(request); + request.setContentType(EnumConstants.ContentType.JSON); + addPostParams(request, client); Response response = client.request(request); if (response == null) { throw new ApiConnectionException( - "SyncListItem creation failed: Unable to connect to server" + "Knowledge creation failed: Unable to connect to server" ); } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { RestException restException = RestException.fromJson( @@ -88,15 +81,21 @@ public SyncListItem create(final TwilioRestClient client) { throw new ApiException(restException); } - return SyncListItem.fromJson( + return Knowledge.fromJson( response.getStream(), client.getObjectMapper() ); } - private void addPostParams(final Request request) { - if (data != null) { - request.addPostParam("Data", Converter.mapToJson(data)); + private void addPostParams(final Request request, TwilioRestClient client) { + ObjectMapper objectMapper = client.getObjectMapper(); + if (knowledgeV1ServiceCreateKnowledgeRequest != null) { + request.setBody( + Knowledge.toJson( + knowledgeV1ServiceCreateKnowledgeRequest, + objectMapper + ) + ); } } } diff --git a/src/main/java/com/twilio/rest/preview/sync/service/SyncMapDeleter.java b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeDeleter.java similarity index 71% rename from src/main/java/com/twilio/rest/preview/sync/service/SyncMapDeleter.java rename to src/main/java/com/twilio/rest/knowledge/v1/KnowledgeDeleter.java index 79364efa1c..59804cdc4e 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/SyncMapDeleter.java +++ b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeDeleter.java @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Preview + * Twilio - Knowledge * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -12,7 +12,7 @@ * Do not edit the class manually. */ -package com.twilio.rest.preview.sync.service; +package com.twilio.rest.knowledge.v1; import com.twilio.base.Deleter; import com.twilio.constant.EnumConstants; @@ -25,30 +25,23 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -public class SyncMapDeleter extends Deleter { +public class KnowledgeDeleter extends Deleter { - private String pathServiceSid; - private String pathSid; + private String pathId; - public SyncMapDeleter(final String pathServiceSid, final String pathSid) { - this.pathServiceSid = pathServiceSid; - this.pathSid = pathSid; + public KnowledgeDeleter(final String pathId) { + this.pathId = pathId; } @Override public boolean delete(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Maps/{Sid}"; + String path = "/v1/Knowledge/{id}"; - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + path = path.replace("{" + "id" + "}", this.pathId.toString()); Request request = new Request( HttpMethod.DELETE, - Domains.PREVIEW.toString(), + Domains.KNOWLEDGE.toString(), path ); request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); @@ -56,7 +49,7 @@ public boolean delete(final TwilioRestClient client) { if (response == null) { throw new ApiConnectionException( - "SyncMap delete failed: Unable to connect to server" + "Knowledge delete failed: Unable to connect to server" ); } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { RestException restException = RestException.fromJson( diff --git a/src/main/java/com/twilio/rest/preview/sync/service/SyncListFetcher.java b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeFetcher.java similarity index 68% rename from src/main/java/com/twilio/rest/preview/sync/service/SyncListFetcher.java rename to src/main/java/com/twilio/rest/knowledge/v1/KnowledgeFetcher.java index 3a9752dcee..5e7aea48b0 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/SyncListFetcher.java +++ b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeFetcher.java @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Preview + * Twilio - Knowledge * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -12,7 +12,7 @@ * Do not edit the class manually. */ -package com.twilio.rest.preview.sync.service; +package com.twilio.rest.knowledge.v1; import com.twilio.base.Fetcher; import com.twilio.constant.EnumConstants; @@ -25,30 +25,23 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -public class SyncListFetcher extends Fetcher { +public class KnowledgeFetcher extends Fetcher { - private String pathServiceSid; - private String pathSid; + private String pathId; - public SyncListFetcher(final String pathServiceSid, final String pathSid) { - this.pathServiceSid = pathServiceSid; - this.pathSid = pathSid; + public KnowledgeFetcher(final String pathId) { + this.pathId = pathId; } @Override - public SyncList fetch(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Lists/{Sid}"; + public Knowledge fetch(final TwilioRestClient client) { + String path = "/v1/Knowledge/{id}"; - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); + path = path.replace("{" + "id" + "}", this.pathId.toString()); Request request = new Request( HttpMethod.GET, - Domains.PREVIEW.toString(), + Domains.KNOWLEDGE.toString(), path ); request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); @@ -56,7 +49,7 @@ public SyncList fetch(final TwilioRestClient client) { if (response == null) { throw new ApiConnectionException( - "SyncList fetch failed: Unable to connect to server" + "Knowledge fetch failed: Unable to connect to server" ); } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { RestException restException = RestException.fromJson( @@ -72,7 +65,7 @@ public SyncList fetch(final TwilioRestClient client) { throw new ApiException(restException); } - return SyncList.fromJson( + return Knowledge.fromJson( response.getStream(), client.getObjectMapper() ); diff --git a/src/main/java/com/twilio/rest/preview/sync/service/SyncMapReader.java b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeReader.java similarity index 72% rename from src/main/java/com/twilio/rest/preview/sync/service/SyncMapReader.java rename to src/main/java/com/twilio/rest/knowledge/v1/KnowledgeReader.java index 2e5ab2cd17..f0d8abd0f5 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/SyncMapReader.java +++ b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeReader.java @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Preview + * Twilio - Knowledge * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -12,7 +12,7 @@ * Do not edit the class manually. */ -package com.twilio.rest.preview.sync.service; +package com.twilio.rest.knowledge.v1; import com.twilio.base.Page; import com.twilio.base.Reader; @@ -27,36 +27,34 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -public class SyncMapReader extends Reader { +public class KnowledgeReader extends Reader { - private String pathServiceSid; - private Long pageSize; + private Integer pageSize; + private String tags; - public SyncMapReader(final String pathServiceSid) { - this.pathServiceSid = pathServiceSid; - } + public KnowledgeReader() {} - public SyncMapReader setPageSize(final Long pageSize) { + public KnowledgeReader setPageSize(final Integer pageSize) { this.pageSize = pageSize; return this; } + public KnowledgeReader setTags(final String tags) { + this.tags = tags; + return this; + } + @Override - public ResourceSet read(final TwilioRestClient client) { + public ResourceSet read(final TwilioRestClient client) { return new ResourceSet<>(this, client, firstPage(client)); } - public Page firstPage(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Maps"; - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); + public Page firstPage(final TwilioRestClient client) { + String path = "/v1/Knowledge"; Request request = new Request( HttpMethod.GET, - Domains.PREVIEW.toString(), + Domains.KNOWLEDGE.toString(), path ); @@ -65,7 +63,7 @@ public Page firstPage(final TwilioRestClient client) { return pageForRequest(client, request); } - private Page pageForRequest( + private Page pageForRequest( final TwilioRestClient client, final Request request ) { @@ -73,7 +71,7 @@ private Page pageForRequest( if (response == null) { throw new ApiConnectionException( - "SyncMap read failed: Unable to connect to server" + "Knowledge read failed: Unable to connect to server" ); } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { RestException restException = RestException.fromJson( @@ -90,39 +88,39 @@ private Page pageForRequest( } return Page.fromJson( - "maps", + "knowledge", response.getContent(), - SyncMap.class, + Knowledge.class, client.getObjectMapper() ); } @Override - public Page previousPage( - final Page page, + public Page previousPage( + final Page page, final TwilioRestClient client ) { Request request = new Request( HttpMethod.GET, - page.getPreviousPageUrl(Domains.PREVIEW.toString()) + page.getPreviousPageUrl(Domains.KNOWLEDGE.toString()) ); return pageForRequest(client, request); } @Override - public Page nextPage( - final Page page, + public Page nextPage( + final Page page, final TwilioRestClient client ) { Request request = new Request( HttpMethod.GET, - page.getNextPageUrl(Domains.PREVIEW.toString()) + page.getNextPageUrl(Domains.KNOWLEDGE.toString()) ); return pageForRequest(client, request); } @Override - public Page getPage( + public Page getPage( final String targetUrl, final TwilioRestClient client ) { @@ -135,6 +133,9 @@ private void addQueryParams(final Request request) { if (pageSize != null) { request.addQueryParam("PageSize", pageSize.toString()); } + if (tags != null) { + request.addQueryParam("Tags", tags); + } if (getPageSize() != null) { request.addQueryParam("PageSize", Integer.toString(getPageSize())); diff --git a/src/main/java/com/twilio/rest/preview/sync/service/SyncListCreator.java b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeUpdater.java similarity index 52% rename from src/main/java/com/twilio/rest/preview/sync/service/SyncListCreator.java rename to src/main/java/com/twilio/rest/knowledge/v1/KnowledgeUpdater.java index 7b61dde07d..bfa6ca6ee5 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/SyncListCreator.java +++ b/src/main/java/com/twilio/rest/knowledge/v1/KnowledgeUpdater.java @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Preview + * Twilio - Knowledge * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -12,9 +12,10 @@ * Do not edit the class manually. */ -package com.twilio.rest.preview.sync.service; +package com.twilio.rest.knowledge.v1; -import com.twilio.base.Creator; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.twilio.base.Updater; import com.twilio.constant.EnumConstants; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; @@ -25,41 +26,40 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -public class SyncListCreator extends Creator { +public class KnowledgeUpdater extends Updater { - private String pathServiceSid; - private String uniqueName; + private String pathId; + private Knowledge.KnowledgeV1ServiceUpdateKnowledgeRequest knowledgeV1ServiceUpdateKnowledgeRequest; - public SyncListCreator(final String pathServiceSid) { - this.pathServiceSid = pathServiceSid; + public KnowledgeUpdater(final String pathId) { + this.pathId = pathId; } - public SyncListCreator setUniqueName(final String uniqueName) { - this.uniqueName = uniqueName; + public KnowledgeUpdater setKnowledgeV1ServiceUpdateKnowledgeRequest( + final Knowledge.KnowledgeV1ServiceUpdateKnowledgeRequest knowledgeV1ServiceUpdateKnowledgeRequest + ) { + this.knowledgeV1ServiceUpdateKnowledgeRequest = + knowledgeV1ServiceUpdateKnowledgeRequest; return this; } @Override - public SyncList create(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Lists"; + public Knowledge update(final TwilioRestClient client) { + String path = "/v1/Knowledge/{id}"; - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); + path = path.replace("{" + "id" + "}", this.pathId.toString()); Request request = new Request( - HttpMethod.POST, - Domains.PREVIEW.toString(), + HttpMethod.PUT, + Domains.KNOWLEDGE.toString(), path ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addPostParams(request); + request.setContentType(EnumConstants.ContentType.JSON); + addPostParams(request, client); Response response = client.request(request); if (response == null) { throw new ApiConnectionException( - "SyncList creation failed: Unable to connect to server" + "Knowledge update failed: Unable to connect to server" ); } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { RestException restException = RestException.fromJson( @@ -75,15 +75,21 @@ public SyncList create(final TwilioRestClient client) { throw new ApiException(restException); } - return SyncList.fromJson( + return Knowledge.fromJson( response.getStream(), client.getObjectMapper() ); } - private void addPostParams(final Request request) { - if (uniqueName != null) { - request.addPostParam("UniqueName", uniqueName); + private void addPostParams(final Request request, TwilioRestClient client) { + ObjectMapper objectMapper = client.getObjectMapper(); + if (knowledgeV1ServiceUpdateKnowledgeRequest != null) { + request.setBody( + Knowledge.toJson( + knowledgeV1ServiceUpdateKnowledgeRequest, + objectMapper + ) + ); } } } diff --git a/src/main/java/com/twilio/rest/preview/sync/service/SyncMap.java b/src/main/java/com/twilio/rest/knowledge/v1/knowledge/Chunk.java similarity index 50% rename from src/main/java/com/twilio/rest/preview/sync/service/SyncMap.java rename to src/main/java/com/twilio/rest/knowledge/v1/knowledge/Chunk.java index 9bb7084867..b0336d7aa9 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/SyncMap.java +++ b/src/main/java/com/twilio/rest/knowledge/v1/knowledge/Chunk.java @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Preview + * Twilio - Knowledge * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -12,7 +12,7 @@ * Do not edit the class manually. */ -package com.twilio.rest.preview.sync.service; +package com.twilio.rest.knowledge.v1.knowledge; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -26,7 +26,6 @@ import com.twilio.exception.ApiException; import java.io.IOException; import java.io.InputStream; -import java.net.URI; import java.time.ZonedDateTime; import java.util.Map; import java.util.Map; @@ -36,46 +35,28 @@ @JsonIgnoreProperties(ignoreUnknown = true) @ToString -public class SyncMap extends Resource { +public class Chunk extends Resource { - private static final long serialVersionUID = 90485787612091L; + private static final long serialVersionUID = 152804488582909L; - public static SyncMapCreator creator(final String pathServiceSid) { - return new SyncMapCreator(pathServiceSid); - } - - public static SyncMapDeleter deleter( - final String pathServiceSid, - final String pathSid - ) { - return new SyncMapDeleter(pathServiceSid, pathSid); - } - - public static SyncMapFetcher fetcher( - final String pathServiceSid, - final String pathSid - ) { - return new SyncMapFetcher(pathServiceSid, pathSid); - } - - public static SyncMapReader reader(final String pathServiceSid) { - return new SyncMapReader(pathServiceSid); + public static ChunkReader reader(final String pathId) { + return new ChunkReader(pathId); } /** - * Converts a JSON String into a SyncMap object using the provided ObjectMapper. + * Converts a JSON String into a Chunk object using the provided ObjectMapper. * * @param json Raw JSON String * @param objectMapper Jackson ObjectMapper - * @return SyncMap object represented by the provided JSON + * @return Chunk object represented by the provided JSON */ - public static SyncMap fromJson( + public static Chunk fromJson( final String json, final ObjectMapper objectMapper ) { // Convert all checked exceptions to Runtime try { - return objectMapper.readValue(json, SyncMap.class); + return objectMapper.readValue(json, Chunk.class); } catch (final JsonMappingException | JsonParseException e) { throw new ApiException(e.getMessage(), e); } catch (final IOException e) { @@ -84,20 +65,20 @@ public static SyncMap fromJson( } /** - * Converts a JSON InputStream into a SyncMap object using the provided + * Converts a JSON InputStream into a Chunk object using the provided * ObjectMapper. * * @param json Raw JSON InputStream * @param objectMapper Jackson ObjectMapper - * @return SyncMap object represented by the provided JSON + * @return Chunk object represented by the provided JSON */ - public static SyncMap fromJson( + public static Chunk fromJson( final InputStream json, final ObjectMapper objectMapper ) { // Convert all checked exceptions to Runtime try { - return objectMapper.readValue(json, SyncMap.class); + return objectMapper.readValue(json, Chunk.class); } catch (final JsonMappingException | JsonParseException e) { throw new ApiException(e.getMessage(), e); } catch (final IOException e) { @@ -105,68 +86,37 @@ public static SyncMap fromJson( } } - private final String sid; - private final String uniqueName; private final String accountSid; - private final String serviceSid; - private final URI url; - private final Map links; - private final String revision; + private final String content; + private final Map metadata; private final ZonedDateTime dateCreated; private final ZonedDateTime dateUpdated; - private final String createdBy; @JsonCreator - private SyncMap( - @JsonProperty("sid") final String sid, - @JsonProperty("unique_name") final String uniqueName, + private Chunk( @JsonProperty("account_sid") final String accountSid, - @JsonProperty("service_sid") final String serviceSid, - @JsonProperty("url") final URI url, - @JsonProperty("links") final Map links, - @JsonProperty("revision") final String revision, + @JsonProperty("content") final String content, + @JsonProperty("metadata") final Map metadata, @JsonProperty("date_created") final String dateCreated, - @JsonProperty("date_updated") final String dateUpdated, - @JsonProperty("created_by") final String createdBy + @JsonProperty("date_updated") final String dateUpdated ) { - this.sid = sid; - this.uniqueName = uniqueName; this.accountSid = accountSid; - this.serviceSid = serviceSid; - this.url = url; - this.links = links; - this.revision = revision; + this.content = content; + this.metadata = metadata; this.dateCreated = DateConverter.iso8601DateTimeFromString(dateCreated); this.dateUpdated = DateConverter.iso8601DateTimeFromString(dateUpdated); - this.createdBy = createdBy; - } - - public final String getSid() { - return this.sid; - } - - public final String getUniqueName() { - return this.uniqueName; } public final String getAccountSid() { return this.accountSid; } - public final String getServiceSid() { - return this.serviceSid; - } - - public final URI getUrl() { - return this.url; + public final String getContent() { + return this.content; } - public final Map getLinks() { - return this.links; - } - - public final String getRevision() { - return this.revision; + public final Map getMetadata() { + return this.metadata; } public final ZonedDateTime getDateCreated() { @@ -177,10 +127,6 @@ public final ZonedDateTime getDateUpdated() { return this.dateUpdated; } - public final String getCreatedBy() { - return this.createdBy; - } - @Override public boolean equals(final Object o) { if (this == o) { @@ -191,35 +137,25 @@ public boolean equals(final Object o) { return false; } - SyncMap other = (SyncMap) o; + Chunk other = (Chunk) o; return ( - Objects.equals(sid, other.sid) && - Objects.equals(uniqueName, other.uniqueName) && Objects.equals(accountSid, other.accountSid) && - Objects.equals(serviceSid, other.serviceSid) && - Objects.equals(url, other.url) && - Objects.equals(links, other.links) && - Objects.equals(revision, other.revision) && + Objects.equals(content, other.content) && + Objects.equals(metadata, other.metadata) && Objects.equals(dateCreated, other.dateCreated) && - Objects.equals(dateUpdated, other.dateUpdated) && - Objects.equals(createdBy, other.createdBy) + Objects.equals(dateUpdated, other.dateUpdated) ); } @Override public int hashCode() { return Objects.hash( - sid, - uniqueName, accountSid, - serviceSid, - url, - links, - revision, + content, + metadata, dateCreated, - dateUpdated, - createdBy + dateUpdated ); } } diff --git a/src/main/java/com/twilio/rest/preview/sync/ServiceReader.java b/src/main/java/com/twilio/rest/knowledge/v1/knowledge/ChunkReader.java similarity index 74% rename from src/main/java/com/twilio/rest/preview/sync/ServiceReader.java rename to src/main/java/com/twilio/rest/knowledge/v1/knowledge/ChunkReader.java index 2101148268..bceed7b7f8 100644 --- a/src/main/java/com/twilio/rest/preview/sync/ServiceReader.java +++ b/src/main/java/com/twilio/rest/knowledge/v1/knowledge/ChunkReader.java @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Preview + * Twilio - Knowledge * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -12,7 +12,7 @@ * Do not edit the class manually. */ -package com.twilio.rest.preview.sync; +package com.twilio.rest.knowledge.v1.knowledge; import com.twilio.base.Page; import com.twilio.base.Reader; @@ -27,28 +27,32 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -public class ServiceReader extends Reader { +public class ChunkReader extends Reader { - private Long pageSize; + private String pathId; + private Integer pageSize; - public ServiceReader() {} + public ChunkReader(final String pathId) { + this.pathId = pathId; + } - public ServiceReader setPageSize(final Long pageSize) { + public ChunkReader setPageSize(final Integer pageSize) { this.pageSize = pageSize; return this; } @Override - public ResourceSet read(final TwilioRestClient client) { + public ResourceSet read(final TwilioRestClient client) { return new ResourceSet<>(this, client, firstPage(client)); } - public Page firstPage(final TwilioRestClient client) { - String path = "/Sync/Services"; + public Page firstPage(final TwilioRestClient client) { + String path = "/v1/Knowledge/{id}/Chunks"; + path = path.replace("{" + "id" + "}", this.pathId.toString()); Request request = new Request( HttpMethod.GET, - Domains.PREVIEW.toString(), + Domains.KNOWLEDGE.toString(), path ); @@ -57,7 +61,7 @@ public Page firstPage(final TwilioRestClient client) { return pageForRequest(client, request); } - private Page pageForRequest( + private Page pageForRequest( final TwilioRestClient client, final Request request ) { @@ -65,7 +69,7 @@ private Page pageForRequest( if (response == null) { throw new ApiConnectionException( - "Service read failed: Unable to connect to server" + "Chunk read failed: Unable to connect to server" ); } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { RestException restException = RestException.fromJson( @@ -82,39 +86,39 @@ private Page pageForRequest( } return Page.fromJson( - "services", + "chunks", response.getContent(), - Service.class, + Chunk.class, client.getObjectMapper() ); } @Override - public Page previousPage( - final Page page, + public Page previousPage( + final Page page, final TwilioRestClient client ) { Request request = new Request( HttpMethod.GET, - page.getPreviousPageUrl(Domains.PREVIEW.toString()) + page.getPreviousPageUrl(Domains.KNOWLEDGE.toString()) ); return pageForRequest(client, request); } @Override - public Page nextPage( - final Page page, + public Page nextPage( + final Page page, final TwilioRestClient client ) { Request request = new Request( HttpMethod.GET, - page.getNextPageUrl(Domains.PREVIEW.toString()) + page.getNextPageUrl(Domains.KNOWLEDGE.toString()) ); return pageForRequest(client, request); } @Override - public Page getPage( + public Page getPage( final String targetUrl, final TwilioRestClient client ) { diff --git a/src/main/java/com/twilio/rest/knowledge/v1/knowledge/KnowledgeStatus.java b/src/main/java/com/twilio/rest/knowledge/v1/knowledge/KnowledgeStatus.java new file mode 100644 index 0000000000..ded378b2d8 --- /dev/null +++ b/src/main/java/com/twilio/rest/knowledge/v1/knowledge/KnowledgeStatus.java @@ -0,0 +1,145 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Knowledge + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.twilio.rest.knowledge.v1.knowledge; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.twilio.base.Resource; +import com.twilio.converter.DateConverter; +import com.twilio.exception.ApiConnectionException; +import com.twilio.exception.ApiException; +import java.io.IOException; +import java.io.InputStream; +import java.time.ZonedDateTime; +import java.util.Objects; +import lombok.ToString; +import lombok.ToString; + +@JsonIgnoreProperties(ignoreUnknown = true) +@ToString +public class KnowledgeStatus extends Resource { + + private static final long serialVersionUID = 178959927465400L; + + public static KnowledgeStatusFetcher fetcher(final String pathId) { + return new KnowledgeStatusFetcher(pathId); + } + + /** + * Converts a JSON String into a KnowledgeStatus object using the provided ObjectMapper. + * + * @param json Raw JSON String + * @param objectMapper Jackson ObjectMapper + * @return KnowledgeStatus object represented by the provided JSON + */ + public static KnowledgeStatus fromJson( + final String json, + final ObjectMapper objectMapper + ) { + // Convert all checked exceptions to Runtime + try { + return objectMapper.readValue(json, KnowledgeStatus.class); + } catch (final JsonMappingException | JsonParseException e) { + throw new ApiException(e.getMessage(), e); + } catch (final IOException e) { + throw new ApiConnectionException(e.getMessage(), e); + } + } + + /** + * Converts a JSON InputStream into a KnowledgeStatus object using the provided + * ObjectMapper. + * + * @param json Raw JSON InputStream + * @param objectMapper Jackson ObjectMapper + * @return KnowledgeStatus object represented by the provided JSON + */ + public static KnowledgeStatus fromJson( + final InputStream json, + final ObjectMapper objectMapper + ) { + // Convert all checked exceptions to Runtime + try { + return objectMapper.readValue(json, KnowledgeStatus.class); + } catch (final JsonMappingException | JsonParseException e) { + throw new ApiException(e.getMessage(), e); + } catch (final IOException e) { + throw new ApiConnectionException(e.getMessage(), e); + } + } + + private final String accountSid; + private final String status; + private final String lastStatus; + private final ZonedDateTime dateUpdated; + + @JsonCreator + private KnowledgeStatus( + @JsonProperty("account_sid") final String accountSid, + @JsonProperty("status") final String status, + @JsonProperty("last_status") final String lastStatus, + @JsonProperty("date_updated") final String dateUpdated + ) { + this.accountSid = accountSid; + this.status = status; + this.lastStatus = lastStatus; + this.dateUpdated = DateConverter.iso8601DateTimeFromString(dateUpdated); + } + + public final String getAccountSid() { + return this.accountSid; + } + + public final String getStatus() { + return this.status; + } + + public final String getLastStatus() { + return this.lastStatus; + } + + public final ZonedDateTime getDateUpdated() { + return this.dateUpdated; + } + + @Override + public boolean equals(final Object o) { + if (this == o) { + return true; + } + + if (o == null || getClass() != o.getClass()) { + return false; + } + + KnowledgeStatus other = (KnowledgeStatus) o; + + return ( + Objects.equals(accountSid, other.accountSid) && + Objects.equals(status, other.status) && + Objects.equals(lastStatus, other.lastStatus) && + Objects.equals(dateUpdated, other.dateUpdated) + ); + } + + @Override + public int hashCode() { + return Objects.hash(accountSid, status, lastStatus, dateUpdated); + } +} diff --git a/src/main/java/com/twilio/rest/knowledge/v1/knowledge/KnowledgeStatusFetcher.java b/src/main/java/com/twilio/rest/knowledge/v1/knowledge/KnowledgeStatusFetcher.java new file mode 100644 index 0000000000..93c2e7bfb6 --- /dev/null +++ b/src/main/java/com/twilio/rest/knowledge/v1/knowledge/KnowledgeStatusFetcher.java @@ -0,0 +1,73 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Knowledge + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.twilio.rest.knowledge.v1.knowledge; + +import com.twilio.base.Fetcher; +import com.twilio.constant.EnumConstants; +import com.twilio.exception.ApiConnectionException; +import com.twilio.exception.ApiException; +import com.twilio.exception.RestException; +import com.twilio.http.HttpMethod; +import com.twilio.http.Request; +import com.twilio.http.Response; +import com.twilio.http.TwilioRestClient; +import com.twilio.rest.Domains; + +public class KnowledgeStatusFetcher extends Fetcher { + + private String pathId; + + public KnowledgeStatusFetcher(final String pathId) { + this.pathId = pathId; + } + + @Override + public KnowledgeStatus fetch(final TwilioRestClient client) { + String path = "/v1/Knowledge/{id}/Status"; + + path = path.replace("{" + "id" + "}", this.pathId.toString()); + + Request request = new Request( + HttpMethod.GET, + Domains.KNOWLEDGE.toString(), + path + ); + request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); + Response response = client.request(request); + + if (response == null) { + throw new ApiConnectionException( + "KnowledgeStatus fetch failed: Unable to connect to server" + ); + } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { + RestException restException = RestException.fromJson( + response.getStream(), + client.getObjectMapper() + ); + if (restException == null) { + throw new ApiException( + "Server Error, no content", + response.getStatusCode() + ); + } + throw new ApiException(restException); + } + + return KnowledgeStatus.fromJson( + response.getStream(), + client.getObjectMapper() + ); + } +} diff --git a/src/main/java/com/twilio/rest/marketplace/v1/InstalledAddOnCreator.java b/src/main/java/com/twilio/rest/marketplace/v1/InstalledAddOnCreator.java index ee0f998762..daafa5c509 100644 --- a/src/main/java/com/twilio/rest/marketplace/v1/InstalledAddOnCreator.java +++ b/src/main/java/com/twilio/rest/marketplace/v1/InstalledAddOnCreator.java @@ -26,14 +26,12 @@ import com.twilio.http.Response; import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -import java.util.Map; -import java.util.Map; public class InstalledAddOnCreator extends Creator { private String availableAddOnSid; private Boolean acceptTermsOfService; - private Map configuration; + private Object configuration; private String uniqueName; public InstalledAddOnCreator( @@ -58,9 +56,7 @@ public InstalledAddOnCreator setAcceptTermsOfService( return this; } - public InstalledAddOnCreator setConfiguration( - final Map configuration - ) { + public InstalledAddOnCreator setConfiguration(final Object configuration) { this.configuration = configuration; return this; } @@ -130,7 +126,7 @@ private void addPostParams(final Request request) { if (configuration != null) { request.addPostParam( "Configuration", - Converter.mapToJson(configuration) + Converter.objectToJson(configuration) ); } if (uniqueName != null) { diff --git a/src/main/java/com/twilio/rest/marketplace/v1/InstalledAddOnUpdater.java b/src/main/java/com/twilio/rest/marketplace/v1/InstalledAddOnUpdater.java index 4ed526bbea..4863943fb4 100644 --- a/src/main/java/com/twilio/rest/marketplace/v1/InstalledAddOnUpdater.java +++ b/src/main/java/com/twilio/rest/marketplace/v1/InstalledAddOnUpdater.java @@ -25,21 +25,18 @@ import com.twilio.http.Response; import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -import java.util.Map; public class InstalledAddOnUpdater extends Updater { private String pathSid; - private Map configuration; + private Object configuration; private String uniqueName; public InstalledAddOnUpdater(final String pathSid) { this.pathSid = pathSid; } - public InstalledAddOnUpdater setConfiguration( - final Map configuration - ) { + public InstalledAddOnUpdater setConfiguration(final Object configuration) { this.configuration = configuration; return this; } @@ -91,7 +88,7 @@ private void addPostParams(final Request request) { if (configuration != null) { request.addPostParam( "Configuration", - Converter.mapToJson(configuration) + Converter.objectToJson(configuration) ); } if (uniqueName != null) { diff --git a/src/main/java/com/twilio/rest/messaging/v1/BrandRegistration.java b/src/main/java/com/twilio/rest/messaging/v1/BrandRegistration.java index de184067e7..1f04545099 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/BrandRegistration.java +++ b/src/main/java/com/twilio/rest/messaging/v1/BrandRegistration.java @@ -337,18 +337,16 @@ public int hashCode() { ); } - public enum Status { - PENDING("PENDING"), - APPROVED("APPROVED"), - FAILED("FAILED"), - IN_REVIEW("IN_REVIEW"), - DELETION_PENDING("DELETION_PENDING"), - DELETION_FAILED("DELETION_FAILED"), - SUSPENDED("SUSPENDED"); + public enum BrandFeedback { + TAX_ID("TAX_ID"), + STOCK_SYMBOL("STOCK_SYMBOL"), + NONPROFIT("NONPROFIT"), + GOVERNMENT_ENTITY("GOVERNMENT_ENTITY"), + OTHERS("OTHERS"); private final String value; - private Status(final String value) { + private BrandFeedback(final String value) { this.value = value; } @@ -357,21 +355,23 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static BrandFeedback forValue(final String value) { + return Promoter.enumFromString(value, BrandFeedback.values()); } } - public enum BrandFeedback { - TAX_ID("TAX_ID"), - STOCK_SYMBOL("STOCK_SYMBOL"), - NONPROFIT("NONPROFIT"), - GOVERNMENT_ENTITY("GOVERNMENT_ENTITY"), - OTHERS("OTHERS"); + public enum Status { + PENDING("PENDING"), + APPROVED("APPROVED"), + FAILED("FAILED"), + IN_REVIEW("IN_REVIEW"), + DELETION_PENDING("DELETION_PENDING"), + DELETION_FAILED("DELETION_FAILED"), + SUSPENDED("SUSPENDED"); private final String value; - private BrandFeedback(final String value) { + private Status(final String value) { this.value = value; } @@ -380,8 +380,8 @@ public String toString() { } @JsonCreator - public static BrandFeedback forValue(final String value) { - return Promoter.enumFromString(value, BrandFeedback.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } diff --git a/src/main/java/com/twilio/rest/messaging/v1/brandregistration/BrandVettingReader.java b/src/main/java/com/twilio/rest/messaging/v1/brandregistration/BrandVettingReader.java index 2b9902f0bd..db8f3b9487 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/brandregistration/BrandVettingReader.java +++ b/src/main/java/com/twilio/rest/messaging/v1/brandregistration/BrandVettingReader.java @@ -31,7 +31,6 @@ public class BrandVettingReader extends Reader { private String pathBrandSid; private BrandVetting.VettingProvider vettingProvider; - private Long pageSize; public BrandVettingReader(final String pathBrandSid) { this.pathBrandSid = pathBrandSid; @@ -44,11 +43,6 @@ public BrandVettingReader setVettingProvider( return this; } - public BrandVettingReader setPageSize(final Long pageSize) { - this.pageSize = pageSize; - return this; - } - @Override public ResourceSet read(final TwilioRestClient client) { return new ResourceSet<>(this, client, firstPage(client)); @@ -143,9 +137,6 @@ private void addQueryParams(final Request request) { vettingProvider.toString() ); } - if (pageSize != null) { - request.addQueryParam("PageSize", pageSize.toString()); - } if (getPageSize() != null) { request.addQueryParam("PageSize", Integer.toString(getPageSize())); diff --git a/src/main/java/com/twilio/rest/messaging/v1/service/DestinationAlphaSenderReader.java b/src/main/java/com/twilio/rest/messaging/v1/service/DestinationAlphaSenderReader.java index 1c89f7ecfa..c521f523ca 100644 --- a/src/main/java/com/twilio/rest/messaging/v1/service/DestinationAlphaSenderReader.java +++ b/src/main/java/com/twilio/rest/messaging/v1/service/DestinationAlphaSenderReader.java @@ -31,12 +31,20 @@ public class DestinationAlphaSenderReader extends Reader { private String pathServiceSid; + private String isoCountryCode; private Long pageSize; public DestinationAlphaSenderReader(final String pathServiceSid) { this.pathServiceSid = pathServiceSid; } + public DestinationAlphaSenderReader setIsoCountryCode( + final String isoCountryCode + ) { + this.isoCountryCode = isoCountryCode; + return this; + } + public DestinationAlphaSenderReader setPageSize(final Long pageSize) { this.pageSize = pageSize; return this; @@ -137,6 +145,9 @@ public Page getPage( } private void addQueryParams(final Request request) { + if (isoCountryCode != null) { + request.addQueryParam("IsoCountryCode", isoCountryCode); + } if (pageSize != null) { request.addQueryParam("PageSize", pageSize.toString()); } diff --git a/src/main/java/com/twilio/rest/messaging/v2/ChannelsSender.java b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSender.java new file mode 100644 index 0000000000..0560e1d4ce --- /dev/null +++ b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSender.java @@ -0,0 +1,621 @@ +/* + * This code was generated by + * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ + * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ + * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ + * + * Twilio - Messaging + * This is the public Twilio REST API. + * + * NOTE: This class is auto generated by OpenAPI Generator. + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +package com.twilio.rest.messaging.v2; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.core.JsonParseException; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.twilio.base.Resource; +import com.twilio.converter.Converter; +import com.twilio.converter.Promoter; +import com.twilio.exception.ApiConnectionException; +import com.twilio.exception.ApiException; +import java.io.IOException; +import java.io.InputStream; +import java.net.URI; +import java.util.List; +import java.util.Objects; +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import lombok.ToString; + +@JsonIgnoreProperties(ignoreUnknown = true) +@ToString +public class ChannelsSender extends Resource { + + private static final long serialVersionUID = 42075077215889L; + + @ToString + public static class MessagingV2ChannelsSenderConfiguration { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("waba_id") + @Getter + @Setter + private String wabaId; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("verification_method") + @Getter + @Setter + private VerificationMethodEnum verificationMethod; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("verification_code") + @Getter + @Setter + private String verificationCode; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("voice_application_sid") + @Getter + @Setter + private String voiceApplicationSid; + + public static MessagingV2ChannelsSenderConfiguration fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue( + jsonString, + MessagingV2ChannelsSenderConfiguration.class + ); + } + } + + @ToString + public static class MessagingV2ChannelsSenderWebhook { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("callback_url") + @Getter + @Setter + private String callbackUrl; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("callback_method") + @Getter + @Setter + private CallbackMethodEnum callbackMethod; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("fallback_url") + @Getter + @Setter + private String fallbackUrl; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("fallback_method") + @Getter + @Setter + private FallbackMethodEnum fallbackMethod; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("status_callback_url") + @Getter + @Setter + private String statusCallbackUrl; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("status_callback_method") + @Getter + @Setter + private String statusCallbackMethod; + + public static MessagingV2ChannelsSenderWebhook fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue( + jsonString, + MessagingV2ChannelsSenderWebhook.class + ); + } + } + + @ToString + public static class MessagingV2ChannelsSenderProfile { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("name") + @Getter + @Setter + private String name; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("about") + @Getter + @Setter + private String about; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("address") + @Getter + @Setter + private String address; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("description") + @Getter + @Setter + private String description; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("emails") + @Getter + @Setter + private Object emails; + + public String getEmails() { + return Converter.objectToJson(emails); + } + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("logo_url") + @Getter + @Setter + private String logoUrl; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("vertical") + @Getter + @Setter + private String vertical; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("websites") + @Getter + @Setter + private Object websites; + + public String getWebsites() { + return Converter.objectToJson(websites); + } + + public static MessagingV2ChannelsSenderProfile fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue( + jsonString, + MessagingV2ChannelsSenderProfile.class + ); + } + } + + @ToString + public static class MessagingV2ChannelsSenderRequestsCreate { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("sender_id") + @Getter + @Setter + private String senderId; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("configuration") + @Getter + @Setter + private MessagingV2ChannelsSenderConfiguration configuration; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("webhook") + @Getter + @Setter + private MessagingV2ChannelsSenderWebhook webhook; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("profile") + @Getter + @Setter + private MessagingV2ChannelsSenderProfile profile; + + public MessagingV2ChannelsSenderRequestsCreate() {} + + public static MessagingV2ChannelsSenderRequestsCreate fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue( + jsonString, + MessagingV2ChannelsSenderRequestsCreate.class + ); + } + } + + @ToString + public static class MessagingV2ChannelsSenderRequestsUpdate { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("configuration") + @Getter + @Setter + private MessagingV2ChannelsSenderConfiguration configuration; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("webhook") + @Getter + @Setter + private MessagingV2ChannelsSenderWebhook webhook; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("profile") + @Getter + @Setter + private MessagingV2ChannelsSenderProfile profile; + + public MessagingV2ChannelsSenderRequestsUpdate() {} + + public static MessagingV2ChannelsSenderRequestsUpdate fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue( + jsonString, + MessagingV2ChannelsSenderRequestsUpdate.class + ); + } + } + + @ToString + public static class MessagingV2ChannelsSenderProperties { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("quality_rating") + @Getter + @Setter + private String qualityRating; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("messaging_limit") + @Getter + @Setter + private String messagingLimit; + + public static MessagingV2ChannelsSenderProperties fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue( + jsonString, + MessagingV2ChannelsSenderProperties.class + ); + } + } + + @ToString + public static class MessagingV2ChannelsSenderOfflineReasonsItems { + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("code") + @Getter + @Setter + private String code; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("message") + @Getter + @Setter + private String message; + + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("more_info") + @Getter + @Setter + private URI moreInfo; + + public static MessagingV2ChannelsSenderOfflineReasonsItems fromJson( + String jsonString, + ObjectMapper mapper + ) throws IOException { + return mapper.readValue( + jsonString, + MessagingV2ChannelsSenderOfflineReasonsItems.class + ); + } + } + + public static ChannelsSenderCreator creator( + final ChannelsSender.MessagingV2ChannelsSenderRequestsCreate messagingV2ChannelsSenderRequestsCreate + ) { + return new ChannelsSenderCreator( + messagingV2ChannelsSenderRequestsCreate + ); + } + + public static ChannelsSenderDeleter deleter(final String pathSid) { + return new ChannelsSenderDeleter(pathSid); + } + + public static ChannelsSenderFetcher fetcher(final String pathSid) { + return new ChannelsSenderFetcher(pathSid); + } + + public static ChannelsSenderReader reader(final String channel) { + return new ChannelsSenderReader(channel); + } + + public static ChannelsSenderUpdater updater(final String pathSid) { + return new ChannelsSenderUpdater(pathSid); + } + + /** + * Converts a JSON String into a ChannelsSender object using the provided ObjectMapper. + * + * @param json Raw JSON String + * @param objectMapper Jackson ObjectMapper + * @return ChannelsSender object represented by the provided JSON + */ + public static ChannelsSender fromJson( + final String json, + final ObjectMapper objectMapper + ) { + // Convert all checked exceptions to Runtime + try { + return objectMapper.readValue(json, ChannelsSender.class); + } catch (final JsonMappingException | JsonParseException e) { + throw new ApiException(e.getMessage(), e); + } catch (final IOException e) { + throw new ApiConnectionException(e.getMessage(), e); + } + } + + /** + * Converts a JSON InputStream into a ChannelsSender object using the provided + * ObjectMapper. + * + * @param json Raw JSON InputStream + * @param objectMapper Jackson ObjectMapper + * @return ChannelsSender object represented by the provided JSON + */ + public static ChannelsSender fromJson( + final InputStream json, + final ObjectMapper objectMapper + ) { + // Convert all checked exceptions to Runtime + try { + return objectMapper.readValue(json, ChannelsSender.class); + } catch (final JsonMappingException | JsonParseException e) { + throw new ApiException(e.getMessage(), e); + } catch (final IOException e) { + throw new ApiConnectionException(e.getMessage(), e); + } + } + + public static String toJson(Object object, ObjectMapper mapper) { + try { + return mapper.writeValueAsString(object); + } catch (final JsonMappingException e) { + throw new ApiException(e.getMessage(), e); + } catch (JsonProcessingException e) { + throw new ApiException(e.getMessage(), e); + } catch (final IOException e) { + throw new ApiConnectionException(e.getMessage(), e); + } + } + + private final String sid; + private final ChannelsSender.Status status; + private final String senderId; + private final MessagingV2ChannelsSenderConfiguration configuration; + private final MessagingV2ChannelsSenderWebhook webhook; + private final MessagingV2ChannelsSenderProfile profile; + private final MessagingV2ChannelsSenderProperties properties; + private final List< + MessagingV2ChannelsSenderOfflineReasonsItems + > offlineReasons; + private final URI url; + + @JsonCreator + private ChannelsSender( + @JsonProperty("sid") final String sid, + @JsonProperty("status") final ChannelsSender.Status status, + @JsonProperty("sender_id") final String senderId, + @JsonProperty( + "configuration" + ) final MessagingV2ChannelsSenderConfiguration configuration, + @JsonProperty("webhook") final MessagingV2ChannelsSenderWebhook webhook, + @JsonProperty("profile") final MessagingV2ChannelsSenderProfile profile, + @JsonProperty( + "properties" + ) final MessagingV2ChannelsSenderProperties properties, + @JsonProperty("offline_reasons") final List< + MessagingV2ChannelsSenderOfflineReasonsItems + > offlineReasons, + @JsonProperty("url") final URI url + ) { + this.sid = sid; + this.status = status; + this.senderId = senderId; + this.configuration = configuration; + this.webhook = webhook; + this.profile = profile; + this.properties = properties; + this.offlineReasons = offlineReasons; + this.url = url; + } + + public final String getSid() { + return this.sid; + } + + public final ChannelsSender.Status getStatus() { + return this.status; + } + + public final String getSenderId() { + return this.senderId; + } + + public final MessagingV2ChannelsSenderConfiguration getConfiguration() { + return this.configuration; + } + + public final MessagingV2ChannelsSenderWebhook getWebhook() { + return this.webhook; + } + + public final MessagingV2ChannelsSenderProfile getProfile() { + return this.profile; + } + + public final MessagingV2ChannelsSenderProperties getProperties() { + return this.properties; + } + + public final List< + MessagingV2ChannelsSenderOfflineReasonsItems + > getOfflineReasons() { + return this.offlineReasons; + } + + public final URI getUrl() { + return this.url; + } + + @Override + public boolean equals(final Object o) { + if (this == o) { + return true; + } + + if (o == null || getClass() != o.getClass()) { + return false; + } + + ChannelsSender other = (ChannelsSender) o; + + return ( + Objects.equals(sid, other.sid) && + Objects.equals(status, other.status) && + Objects.equals(senderId, other.senderId) && + Objects.equals(configuration, other.configuration) && + Objects.equals(webhook, other.webhook) && + Objects.equals(profile, other.profile) && + Objects.equals(properties, other.properties) && + Objects.equals(offlineReasons, other.offlineReasons) && + Objects.equals(url, other.url) + ); + } + + @Override + public int hashCode() { + return Objects.hash( + sid, + status, + senderId, + configuration, + webhook, + profile, + properties, + offlineReasons, + url + ); + } + + public enum VerificationMethodEnum { + SMS("sms"), + VOICE("voice"); + + private final String value; + + private VerificationMethodEnum(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static VerificationMethodEnum forValue(final String value) { + return Promoter.enumFromString( + value, + VerificationMethodEnum.values() + ); + } + } + + public enum FallbackMethodEnum { + POST("POST"), + PUT("PUT"); + + private final String value; + + private FallbackMethodEnum(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static FallbackMethodEnum forValue(final String value) { + return Promoter.enumFromString(value, FallbackMethodEnum.values()); + } + } + + public enum Status { + CREATING("CREATING"), + ONLINE("ONLINE"), + OFFLINE("OFFLINE"), + PENDING_VERIFICATION("PENDING_VERIFICATION"), + VERIFYING("VERIFYING"), + ONLINE_UPDATING("ONLINE:UPDATING"), + STUBBED("STUBBED"); + + private final String value; + + private Status(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); + } + } + + public enum CallbackMethodEnum { + POST("POST"), + PUT("PUT"); + + private final String value; + + private CallbackMethodEnum(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static CallbackMethodEnum forValue(final String value) { + return Promoter.enumFromString(value, CallbackMethodEnum.values()); + } + } +} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/DocumentCreator.java b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderCreator.java similarity index 50% rename from src/main/java/com/twilio/rest/preview/sync/service/DocumentCreator.java rename to src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderCreator.java index e6e3aedca0..f63eac8ede 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/DocumentCreator.java +++ b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderCreator.java @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Preview + * Twilio - Messaging * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -12,12 +12,11 @@ * Do not edit the class manually. */ -package com.twilio.rest.preview.sync.service; +package com.twilio.rest.messaging.v2; +import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Creator; import com.twilio.constant.EnumConstants; -import com.twilio.converter.Converter; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.exception.RestException; @@ -26,50 +25,47 @@ import com.twilio.http.Response; import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -import java.util.Map; -import java.util.Map; -public class DocumentCreator extends Creator { +public class ChannelsSenderCreator extends Creator { - private String pathServiceSid; - private String uniqueName; - private Map data; + private ChannelsSender.MessagingV2ChannelsSenderRequestsCreate messagingV2ChannelsSenderRequestsCreate; - public DocumentCreator(final String pathServiceSid) { - this.pathServiceSid = pathServiceSid; + public ChannelsSenderCreator( + final ChannelsSender.MessagingV2ChannelsSenderRequestsCreate messagingV2ChannelsSenderRequestsCreate + ) { + this.messagingV2ChannelsSenderRequestsCreate = + messagingV2ChannelsSenderRequestsCreate; } - public DocumentCreator setUniqueName(final String uniqueName) { - this.uniqueName = uniqueName; - return this; - } - - public DocumentCreator setData(final Map data) { - this.data = data; + public ChannelsSenderCreator setMessagingV2ChannelsSenderRequestsCreate( + final ChannelsSender.MessagingV2ChannelsSenderRequestsCreate messagingV2ChannelsSenderRequestsCreate + ) { + this.messagingV2ChannelsSenderRequestsCreate = + messagingV2ChannelsSenderRequestsCreate; return this; } @Override - public Document create(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Documents"; + public ChannelsSender create(final TwilioRestClient client) { + String path = "/v2/Channels/Senders"; path = path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() + "{" + "MessagingV2ChannelsSenderRequestsCreate" + "}", + this.messagingV2ChannelsSenderRequestsCreate.toString() ); Request request = new Request( HttpMethod.POST, - Domains.PREVIEW.toString(), + Domains.MESSAGING.toString(), path ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addPostParams(request); + request.setContentType(EnumConstants.ContentType.JSON); + addPostParams(request, client); Response response = client.request(request); if (response == null) { throw new ApiConnectionException( - "Document creation failed: Unable to connect to server" + "ChannelsSender creation failed: Unable to connect to server" ); } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { RestException restException = RestException.fromJson( @@ -85,18 +81,21 @@ public Document create(final TwilioRestClient client) { throw new ApiException(restException); } - return Document.fromJson( + return ChannelsSender.fromJson( response.getStream(), client.getObjectMapper() ); } - private void addPostParams(final Request request) { - if (uniqueName != null) { - request.addPostParam("UniqueName", uniqueName); - } - if (data != null) { - request.addPostParam("Data", Converter.mapToJson(data)); + private void addPostParams(final Request request, TwilioRestClient client) { + ObjectMapper objectMapper = client.getObjectMapper(); + if (messagingV2ChannelsSenderRequestsCreate != null) { + request.setBody( + ChannelsSender.toJson( + messagingV2ChannelsSenderRequestsCreate, + objectMapper + ) + ); } } } diff --git a/src/main/java/com/twilio/rest/preview/sync/ServiceDeleter.java b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderDeleter.java similarity index 84% rename from src/main/java/com/twilio/rest/preview/sync/ServiceDeleter.java rename to src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderDeleter.java index 2b29fc0063..7b6870d0df 100644 --- a/src/main/java/com/twilio/rest/preview/sync/ServiceDeleter.java +++ b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderDeleter.java @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Preview + * Twilio - Messaging * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -12,7 +12,7 @@ * Do not edit the class manually. */ -package com.twilio.rest.preview.sync; +package com.twilio.rest.messaging.v2; import com.twilio.base.Deleter; import com.twilio.constant.EnumConstants; @@ -25,23 +25,23 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -public class ServiceDeleter extends Deleter { +public class ChannelsSenderDeleter extends Deleter { private String pathSid; - public ServiceDeleter(final String pathSid) { + public ChannelsSenderDeleter(final String pathSid) { this.pathSid = pathSid; } @Override public boolean delete(final TwilioRestClient client) { - String path = "/Sync/Services/{Sid}"; + String path = "/v2/Channels/Senders/{Sid}"; path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); Request request = new Request( HttpMethod.DELETE, - Domains.PREVIEW.toString(), + Domains.MESSAGING.toString(), path ); request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); @@ -49,7 +49,7 @@ public boolean delete(final TwilioRestClient client) { if (response == null) { throw new ApiConnectionException( - "Service delete failed: Unable to connect to server" + "ChannelsSender delete failed: Unable to connect to server" ); } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { RestException restException = RestException.fromJson( diff --git a/src/main/java/com/twilio/rest/preview/sync/ServiceFetcher.java b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderFetcher.java similarity index 77% rename from src/main/java/com/twilio/rest/preview/sync/ServiceFetcher.java rename to src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderFetcher.java index 9a3c4f014d..7b17d3c38e 100644 --- a/src/main/java/com/twilio/rest/preview/sync/ServiceFetcher.java +++ b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderFetcher.java @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Preview + * Twilio - Messaging * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -12,7 +12,7 @@ * Do not edit the class manually. */ -package com.twilio.rest.preview.sync; +package com.twilio.rest.messaging.v2; import com.twilio.base.Fetcher; import com.twilio.constant.EnumConstants; @@ -25,23 +25,23 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -public class ServiceFetcher extends Fetcher { +public class ChannelsSenderFetcher extends Fetcher { private String pathSid; - public ServiceFetcher(final String pathSid) { + public ChannelsSenderFetcher(final String pathSid) { this.pathSid = pathSid; } @Override - public Service fetch(final TwilioRestClient client) { - String path = "/Sync/Services/{Sid}"; + public ChannelsSender fetch(final TwilioRestClient client) { + String path = "/v2/Channels/Senders/{Sid}"; path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); Request request = new Request( HttpMethod.GET, - Domains.PREVIEW.toString(), + Domains.MESSAGING.toString(), path ); request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); @@ -49,7 +49,7 @@ public Service fetch(final TwilioRestClient client) { if (response == null) { throw new ApiConnectionException( - "Service fetch failed: Unable to connect to server" + "ChannelsSender fetch failed: Unable to connect to server" ); } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { RestException restException = RestException.fromJson( @@ -65,6 +65,9 @@ public Service fetch(final TwilioRestClient client) { throw new ApiException(restException); } - return Service.fromJson(response.getStream(), client.getObjectMapper()); + return ChannelsSender.fromJson( + response.getStream(), + client.getObjectMapper() + ); } } diff --git a/src/main/java/com/twilio/rest/preview/sync/service/SyncListReader.java b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderReader.java similarity index 69% rename from src/main/java/com/twilio/rest/preview/sync/service/SyncListReader.java rename to src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderReader.java index fcec8d0f37..1a316d899d 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/SyncListReader.java +++ b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderReader.java @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Preview + * Twilio - Messaging * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -12,7 +12,7 @@ * Do not edit the class manually. */ -package com.twilio.rest.preview.sync.service; +package com.twilio.rest.messaging.v2; import com.twilio.base.Page; import com.twilio.base.Reader; @@ -27,36 +27,37 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -public class SyncListReader extends Reader { +public class ChannelsSenderReader extends Reader { - private String pathServiceSid; + private String channel; private Long pageSize; - public SyncListReader(final String pathServiceSid) { - this.pathServiceSid = pathServiceSid; + public ChannelsSenderReader(final String channel) { + this.channel = channel; } - public SyncListReader setPageSize(final Long pageSize) { + public ChannelsSenderReader setChannel(final String channel) { + this.channel = channel; + return this; + } + + public ChannelsSenderReader setPageSize(final Long pageSize) { this.pageSize = pageSize; return this; } @Override - public ResourceSet read(final TwilioRestClient client) { + public ResourceSet read(final TwilioRestClient client) { return new ResourceSet<>(this, client, firstPage(client)); } - public Page firstPage(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Lists"; - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); + public Page firstPage(final TwilioRestClient client) { + String path = "/v2/Channels/Senders"; + path = path.replace("{" + "Channel" + "}", this.channel.toString()); Request request = new Request( HttpMethod.GET, - Domains.PREVIEW.toString(), + Domains.MESSAGING.toString(), path ); @@ -65,7 +66,7 @@ public Page firstPage(final TwilioRestClient client) { return pageForRequest(client, request); } - private Page pageForRequest( + private Page pageForRequest( final TwilioRestClient client, final Request request ) { @@ -73,7 +74,7 @@ private Page pageForRequest( if (response == null) { throw new ApiConnectionException( - "SyncList read failed: Unable to connect to server" + "ChannelsSender read failed: Unable to connect to server" ); } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { RestException restException = RestException.fromJson( @@ -90,39 +91,39 @@ private Page pageForRequest( } return Page.fromJson( - "lists", + "senders", response.getContent(), - SyncList.class, + ChannelsSender.class, client.getObjectMapper() ); } @Override - public Page previousPage( - final Page page, + public Page previousPage( + final Page page, final TwilioRestClient client ) { Request request = new Request( HttpMethod.GET, - page.getPreviousPageUrl(Domains.PREVIEW.toString()) + page.getPreviousPageUrl(Domains.MESSAGING.toString()) ); return pageForRequest(client, request); } @Override - public Page nextPage( - final Page page, + public Page nextPage( + final Page page, final TwilioRestClient client ) { Request request = new Request( HttpMethod.GET, - page.getNextPageUrl(Domains.PREVIEW.toString()) + page.getNextPageUrl(Domains.MESSAGING.toString()) ); return pageForRequest(client, request); } @Override - public Page getPage( + public Page getPage( final String targetUrl, final TwilioRestClient client ) { @@ -132,6 +133,9 @@ public Page getPage( } private void addQueryParams(final Request request) { + if (channel != null) { + request.addQueryParam("Channel", channel); + } if (pageSize != null) { request.addQueryParam("PageSize", pageSize.toString()); } diff --git a/src/main/java/com/twilio/rest/preview/sync/service/DocumentUpdater.java b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderUpdater.java similarity index 54% rename from src/main/java/com/twilio/rest/preview/sync/service/DocumentUpdater.java rename to src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderUpdater.java index 6d2f0b35c1..27315f96ae 100644 --- a/src/main/java/com/twilio/rest/preview/sync/service/DocumentUpdater.java +++ b/src/main/java/com/twilio/rest/messaging/v2/ChannelsSenderUpdater.java @@ -4,7 +4,7 @@ * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ * - * Twilio - Preview + * Twilio - Messaging * This is the public Twilio REST API. * * NOTE: This class is auto generated by OpenAPI Generator. @@ -12,11 +12,11 @@ * Do not edit the class manually. */ -package com.twilio.rest.preview.sync.service; +package com.twilio.rest.messaging.v2; +import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Updater; import com.twilio.constant.EnumConstants; -import com.twilio.converter.Converter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import com.twilio.exception.RestException; @@ -25,59 +25,41 @@ import com.twilio.http.Response; import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -import java.util.Map; -public class DocumentUpdater extends Updater { +public class ChannelsSenderUpdater extends Updater { - private String pathServiceSid; private String pathSid; - private Map data; - private String ifMatch; + private ChannelsSender.MessagingV2ChannelsSenderRequestsUpdate messagingV2ChannelsSenderRequestsUpdate; - public DocumentUpdater( - final String pathServiceSid, - final String pathSid, - final Map data - ) { - this.pathServiceSid = pathServiceSid; + public ChannelsSenderUpdater(final String pathSid) { this.pathSid = pathSid; - this.data = data; } - public DocumentUpdater setData(final Map data) { - this.data = data; - return this; - } - - public DocumentUpdater setIfMatch(final String ifMatch) { - this.ifMatch = ifMatch; + public ChannelsSenderUpdater setMessagingV2ChannelsSenderRequestsUpdate( + final ChannelsSender.MessagingV2ChannelsSenderRequestsUpdate messagingV2ChannelsSenderRequestsUpdate + ) { + this.messagingV2ChannelsSenderRequestsUpdate = + messagingV2ChannelsSenderRequestsUpdate; return this; } @Override - public Document update(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Documents/{Sid}"; + public ChannelsSender update(final TwilioRestClient client) { + String path = "/v2/Channels/Senders/{Sid}"; - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); - path = path.replace("{" + "Data" + "}", this.data.toString()); Request request = new Request( HttpMethod.POST, - Domains.PREVIEW.toString(), + Domains.MESSAGING.toString(), path ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addPostParams(request); - addHeaderParams(request); + request.setContentType(EnumConstants.ContentType.JSON); + addPostParams(request, client); Response response = client.request(request); if (response == null) { throw new ApiConnectionException( - "Document update failed: Unable to connect to server" + "ChannelsSender update failed: Unable to connect to server" ); } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { RestException restException = RestException.fromJson( @@ -93,21 +75,21 @@ public Document update(final TwilioRestClient client) { throw new ApiException(restException); } - return Document.fromJson( + return ChannelsSender.fromJson( response.getStream(), client.getObjectMapper() ); } - private void addPostParams(final Request request) { - if (data != null) { - request.addPostParam("Data", Converter.mapToJson(data)); - } - } - - private void addHeaderParams(final Request request) { - if (ifMatch != null) { - request.addHeaderParam("If-Match", ifMatch); + private void addPostParams(final Request request, TwilioRestClient client) { + ObjectMapper objectMapper = client.getObjectMapper(); + if (messagingV2ChannelsSenderRequestsUpdate != null) { + request.setBody( + ChannelsSender.toJson( + messagingV2ChannelsSenderRequestsUpdate, + objectMapper + ) + ); } } } diff --git a/src/main/java/com/twilio/rest/numbers/v1/Webhook.java b/src/main/java/com/twilio/rest/numbers/v1/PortingWebhookConfigurationFetch.java similarity index 82% rename from src/main/java/com/twilio/rest/numbers/v1/Webhook.java rename to src/main/java/com/twilio/rest/numbers/v1/PortingWebhookConfigurationFetch.java index 6e9c6921dd..53c0f02a23 100644 --- a/src/main/java/com/twilio/rest/numbers/v1/Webhook.java +++ b/src/main/java/com/twilio/rest/numbers/v1/PortingWebhookConfigurationFetch.java @@ -35,28 +35,31 @@ @JsonIgnoreProperties(ignoreUnknown = true) @ToString -public class Webhook extends Resource { +public class PortingWebhookConfigurationFetch extends Resource { private static final long serialVersionUID = 270526030240961L; - public static WebhookFetcher fetcher() { - return new WebhookFetcher(); + public static PortingWebhookConfigurationFetchFetcher fetcher() { + return new PortingWebhookConfigurationFetchFetcher(); } /** - * Converts a JSON String into a Webhook object using the provided ObjectMapper. + * Converts a JSON String into a PortingWebhookConfigurationFetch object using the provided ObjectMapper. * * @param json Raw JSON String * @param objectMapper Jackson ObjectMapper - * @return Webhook object represented by the provided JSON + * @return PortingWebhookConfigurationFetch object represented by the provided JSON */ - public static Webhook fromJson( + public static PortingWebhookConfigurationFetch fromJson( final String json, final ObjectMapper objectMapper ) { // Convert all checked exceptions to Runtime try { - return objectMapper.readValue(json, Webhook.class); + return objectMapper.readValue( + json, + PortingWebhookConfigurationFetch.class + ); } catch (final JsonMappingException | JsonParseException e) { throw new ApiException(e.getMessage(), e); } catch (final IOException e) { @@ -65,20 +68,23 @@ public static Webhook fromJson( } /** - * Converts a JSON InputStream into a Webhook object using the provided + * Converts a JSON InputStream into a PortingWebhookConfigurationFetch object using the provided * ObjectMapper. * * @param json Raw JSON InputStream * @param objectMapper Jackson ObjectMapper - * @return Webhook object represented by the provided JSON + * @return PortingWebhookConfigurationFetch object represented by the provided JSON */ - public static Webhook fromJson( + public static PortingWebhookConfigurationFetch fromJson( final InputStream json, final ObjectMapper objectMapper ) { // Convert all checked exceptions to Runtime try { - return objectMapper.readValue(json, Webhook.class); + return objectMapper.readValue( + json, + PortingWebhookConfigurationFetch.class + ); } catch (final JsonMappingException | JsonParseException e) { throw new ApiException(e.getMessage(), e); } catch (final IOException e) { @@ -94,7 +100,7 @@ public static Webhook fromJson( private final ZonedDateTime portOutTargetDateCreated; @JsonCreator - private Webhook( + private PortingWebhookConfigurationFetch( @JsonProperty("url") final URI url, @JsonProperty("port_in_target_url") final URI portInTargetUrl, @JsonProperty("port_out_target_url") final URI portOutTargetUrl, @@ -150,7 +156,8 @@ public boolean equals(final Object o) { return false; } - Webhook other = (Webhook) o; + PortingWebhookConfigurationFetch other = + (PortingWebhookConfigurationFetch) o; return ( Objects.equals(url, other.url) && diff --git a/src/main/java/com/twilio/rest/numbers/v1/WebhookFetcher.java b/src/main/java/com/twilio/rest/numbers/v1/PortingWebhookConfigurationFetchFetcher.java similarity index 79% rename from src/main/java/com/twilio/rest/numbers/v1/WebhookFetcher.java rename to src/main/java/com/twilio/rest/numbers/v1/PortingWebhookConfigurationFetchFetcher.java index ccffc00624..59d0dc599f 100644 --- a/src/main/java/com/twilio/rest/numbers/v1/WebhookFetcher.java +++ b/src/main/java/com/twilio/rest/numbers/v1/PortingWebhookConfigurationFetchFetcher.java @@ -25,12 +25,15 @@ import com.twilio.http.TwilioRestClient; import com.twilio.rest.Domains; -public class WebhookFetcher extends Fetcher { +public class PortingWebhookConfigurationFetchFetcher + extends Fetcher { - public WebhookFetcher() {} + public PortingWebhookConfigurationFetchFetcher() {} @Override - public Webhook fetch(final TwilioRestClient client) { + public PortingWebhookConfigurationFetch fetch( + final TwilioRestClient client + ) { String path = "/v1/Porting/Configuration/Webhook"; Request request = new Request( @@ -43,7 +46,7 @@ public Webhook fetch(final TwilioRestClient client) { if (response == null) { throw new ApiConnectionException( - "Webhook fetch failed: Unable to connect to server" + "PortingWebhookConfigurationFetch fetch failed: Unable to connect to server" ); } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { RestException restException = RestException.fromJson( @@ -59,6 +62,9 @@ public Webhook fetch(final TwilioRestClient client) { throw new ApiException(restException); } - return Webhook.fromJson(response.getStream(), client.getObjectMapper()); + return PortingWebhookConfigurationFetch.fromJson( + response.getStream(), + client.getObjectMapper() + ); } } diff --git a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/Bundle.java b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/Bundle.java index 054e3aa65b..9371ac3164 100644 --- a/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/Bundle.java +++ b/src/main/java/com/twilio/rest/numbers/v2/regulatorycompliance/Bundle.java @@ -243,13 +243,13 @@ public int hashCode() { ); } - public enum SortBy { - VALID_UNTIL("valid-until"), - DATE_UPDATED("date-updated"); + public enum EndUserType { + INDIVIDUAL("individual"), + BUSINESS("business"); private final String value; - private SortBy(final String value) { + private EndUserType(final String value) { this.value = value; } @@ -258,18 +258,22 @@ public String toString() { } @JsonCreator - public static SortBy forValue(final String value) { - return Promoter.enumFromString(value, SortBy.values()); + public static EndUserType forValue(final String value) { + return Promoter.enumFromString(value, EndUserType.values()); } } - public enum SortDirection { - ASC("ASC"), - DESC("DESC"); + public enum Status { + DRAFT("draft"), + PENDING_REVIEW("pending-review"), + IN_REVIEW("in-review"), + TWILIO_REJECTED("twilio-rejected"), + TWILIO_APPROVED("twilio-approved"), + PROVISIONALLY_APPROVED("provisionally-approved"); private final String value; - private SortDirection(final String value) { + private Status(final String value) { this.value = value; } @@ -278,18 +282,18 @@ public String toString() { } @JsonCreator - public static SortDirection forValue(final String value) { - return Promoter.enumFromString(value, SortDirection.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } - public enum EndUserType { - INDIVIDUAL("individual"), - BUSINESS("business"); + public enum SortBy { + VALID_UNTIL("valid-until"), + DATE_UPDATED("date-updated"); private final String value; - private EndUserType(final String value) { + private SortBy(final String value) { this.value = value; } @@ -298,22 +302,18 @@ public String toString() { } @JsonCreator - public static EndUserType forValue(final String value) { - return Promoter.enumFromString(value, EndUserType.values()); + public static SortBy forValue(final String value) { + return Promoter.enumFromString(value, SortBy.values()); } } - public enum Status { - DRAFT("draft"), - PENDING_REVIEW("pending-review"), - IN_REVIEW("in-review"), - TWILIO_REJECTED("twilio-rejected"), - TWILIO_APPROVED("twilio-approved"), - PROVISIONALLY_APPROVED("provisionally-approved"); + public enum SortDirection { + ASC("ASC"), + DESC("DESC"); private final String value; - private Status(final String value) { + private SortDirection(final String value) { this.value = value; } @@ -322,8 +322,8 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static SortDirection forValue(final String value) { + return Promoter.enumFromString(value, SortDirection.values()); } } } diff --git a/src/main/java/com/twilio/rest/preview/hostedNumbers/HostedNumberOrder.java b/src/main/java/com/twilio/rest/preview/hostedNumbers/HostedNumberOrder.java index 6354a23e15..1accd8a6ea 100644 --- a/src/main/java/com/twilio/rest/preview/hostedNumbers/HostedNumberOrder.java +++ b/src/main/java/com/twilio/rest/preview/hostedNumbers/HostedNumberOrder.java @@ -362,13 +362,20 @@ public int hashCode() { ); } - public enum VerificationType { - PHONE_CALL("phone-call"), - PHONE_BILL("phone-bill"); + public enum Status { + RECEIVED("received"), + PENDING_VERIFICATION("pending-verification"), + VERIFIED("verified"), + PENDING_LOA("pending-loa"), + CARRIER_PROCESSING("carrier-processing"), + TESTING("testing"), + COMPLETED("completed"), + FAILED("failed"), + ACTION_REQUIRED("action-required"); private final String value; - private VerificationType(final String value) { + private Status(final String value) { this.value = value; } @@ -377,25 +384,18 @@ public String toString() { } @JsonCreator - public static VerificationType forValue(final String value) { - return Promoter.enumFromString(value, VerificationType.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } - public enum Status { - RECEIVED("received"), - PENDING_VERIFICATION("pending-verification"), - VERIFIED("verified"), - PENDING_LOA("pending-loa"), - CARRIER_PROCESSING("carrier-processing"), - TESTING("testing"), - COMPLETED("completed"), - FAILED("failed"), - ACTION_REQUIRED("action-required"); + public enum VerificationType { + PHONE_CALL("phone-call"), + PHONE_BILL("phone-bill"); private final String value; - private Status(final String value) { + private VerificationType(final String value) { this.value = value; } @@ -404,8 +404,8 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static VerificationType forValue(final String value) { + return Promoter.enumFromString(value, VerificationType.values()); } } } diff --git a/src/main/java/com/twilio/rest/preview/hostedNumbers/authorizationdocument/DependentHostedNumberOrder.java b/src/main/java/com/twilio/rest/preview/hostedNumbers/authorizationdocument/DependentHostedNumberOrder.java index b2eba5ae47..a568b081d8 100644 --- a/src/main/java/com/twilio/rest/preview/hostedNumbers/authorizationdocument/DependentHostedNumberOrder.java +++ b/src/main/java/com/twilio/rest/preview/hostedNumbers/authorizationdocument/DependentHostedNumberOrder.java @@ -341,20 +341,13 @@ public int hashCode() { ); } - public enum Status { - RECEIVED("received"), - PENDING_VERIFICATION("pending-verification"), - VERIFIED("verified"), - PENDING_LOA("pending-loa"), - CARRIER_PROCESSING("carrier-processing"), - TESTING("testing"), - COMPLETED("completed"), - FAILED("failed"), - ACTION_REQUIRED("action-required"); + public enum VerificationType { + PHONE_CALL("phone-call"), + PHONE_BILL("phone-bill"); private final String value; - private Status(final String value) { + private VerificationType(final String value) { this.value = value; } @@ -363,18 +356,25 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static VerificationType forValue(final String value) { + return Promoter.enumFromString(value, VerificationType.values()); } } - public enum VerificationType { - PHONE_CALL("phone-call"), - PHONE_BILL("phone-bill"); + public enum Status { + RECEIVED("received"), + PENDING_VERIFICATION("pending-verification"), + VERIFIED("verified"), + PENDING_LOA("pending-loa"), + CARRIER_PROCESSING("carrier-processing"), + TESTING("testing"), + COMPLETED("completed"), + FAILED("failed"), + ACTION_REQUIRED("action-required"); private final String value; - private VerificationType(final String value) { + private Status(final String value) { this.value = value; } @@ -383,8 +383,8 @@ public String toString() { } @JsonCreator - public static VerificationType forValue(final String value) { - return Promoter.enumFromString(value, VerificationType.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } } diff --git a/src/main/java/com/twilio/rest/preview/sync/Service.java b/src/main/java/com/twilio/rest/preview/sync/Service.java deleted file mode 100644 index bfd9848b1a..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/Service.java +++ /dev/null @@ -1,228 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.twilio.base.Resource; -import com.twilio.converter.DateConverter; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.time.ZonedDateTime; -import java.util.Map; -import java.util.Map; -import java.util.Objects; -import lombok.ToString; -import lombok.ToString; - -@JsonIgnoreProperties(ignoreUnknown = true) -@ToString -public class Service extends Resource { - - private static final long serialVersionUID = 175206360832156L; - - public static ServiceCreator creator() { - return new ServiceCreator(); - } - - public static ServiceDeleter deleter(final String pathSid) { - return new ServiceDeleter(pathSid); - } - - public static ServiceFetcher fetcher(final String pathSid) { - return new ServiceFetcher(pathSid); - } - - public static ServiceReader reader() { - return new ServiceReader(); - } - - public static ServiceUpdater updater(final String pathSid) { - return new ServiceUpdater(pathSid); - } - - /** - * Converts a JSON String into a Service object using the provided ObjectMapper. - * - * @param json Raw JSON String - * @param objectMapper Jackson ObjectMapper - * @return Service object represented by the provided JSON - */ - public static Service fromJson( - final String json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, Service.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - /** - * Converts a JSON InputStream into a Service object using the provided - * ObjectMapper. - * - * @param json Raw JSON InputStream - * @param objectMapper Jackson ObjectMapper - * @return Service object represented by the provided JSON - */ - public static Service fromJson( - final InputStream json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, Service.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - private final String sid; - private final String accountSid; - private final String friendlyName; - private final ZonedDateTime dateCreated; - private final ZonedDateTime dateUpdated; - private final URI url; - private final URI webhookUrl; - private final Boolean reachabilityWebhooksEnabled; - private final Boolean aclEnabled; - private final Map links; - - @JsonCreator - private Service( - @JsonProperty("sid") final String sid, - @JsonProperty("account_sid") final String accountSid, - @JsonProperty("friendly_name") final String friendlyName, - @JsonProperty("date_created") final String dateCreated, - @JsonProperty("date_updated") final String dateUpdated, - @JsonProperty("url") final URI url, - @JsonProperty("webhook_url") final URI webhookUrl, - @JsonProperty( - "reachability_webhooks_enabled" - ) final Boolean reachabilityWebhooksEnabled, - @JsonProperty("acl_enabled") final Boolean aclEnabled, - @JsonProperty("links") final Map links - ) { - this.sid = sid; - this.accountSid = accountSid; - this.friendlyName = friendlyName; - this.dateCreated = DateConverter.iso8601DateTimeFromString(dateCreated); - this.dateUpdated = DateConverter.iso8601DateTimeFromString(dateUpdated); - this.url = url; - this.webhookUrl = webhookUrl; - this.reachabilityWebhooksEnabled = reachabilityWebhooksEnabled; - this.aclEnabled = aclEnabled; - this.links = links; - } - - public final String getSid() { - return this.sid; - } - - public final String getAccountSid() { - return this.accountSid; - } - - public final String getFriendlyName() { - return this.friendlyName; - } - - public final ZonedDateTime getDateCreated() { - return this.dateCreated; - } - - public final ZonedDateTime getDateUpdated() { - return this.dateUpdated; - } - - public final URI getUrl() { - return this.url; - } - - public final URI getWebhookUrl() { - return this.webhookUrl; - } - - public final Boolean getReachabilityWebhooksEnabled() { - return this.reachabilityWebhooksEnabled; - } - - public final Boolean getAclEnabled() { - return this.aclEnabled; - } - - public final Map getLinks() { - return this.links; - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - Service other = (Service) o; - - return ( - Objects.equals(sid, other.sid) && - Objects.equals(accountSid, other.accountSid) && - Objects.equals(friendlyName, other.friendlyName) && - Objects.equals(dateCreated, other.dateCreated) && - Objects.equals(dateUpdated, other.dateUpdated) && - Objects.equals(url, other.url) && - Objects.equals(webhookUrl, other.webhookUrl) && - Objects.equals( - reachabilityWebhooksEnabled, - other.reachabilityWebhooksEnabled - ) && - Objects.equals(aclEnabled, other.aclEnabled) && - Objects.equals(links, other.links) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - sid, - accountSid, - friendlyName, - dateCreated, - dateUpdated, - url, - webhookUrl, - reachabilityWebhooksEnabled, - aclEnabled, - links - ); - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/ServiceCreator.java b/src/main/java/com/twilio/rest/preview/sync/ServiceCreator.java deleted file mode 100644 index 86ecba5eaa..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/ServiceCreator.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync; - -import com.twilio.base.Creator; -import com.twilio.constant.EnumConstants; -import com.twilio.converter.Promoter; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import java.net.URI; -import java.net.URI; - -public class ServiceCreator extends Creator { - - private String friendlyName; - private URI webhookUrl; - private Boolean reachabilityWebhooksEnabled; - private Boolean aclEnabled; - - public ServiceCreator() {} - - public ServiceCreator setFriendlyName(final String friendlyName) { - this.friendlyName = friendlyName; - return this; - } - - public ServiceCreator setWebhookUrl(final URI webhookUrl) { - this.webhookUrl = webhookUrl; - return this; - } - - public ServiceCreator setWebhookUrl(final String webhookUrl) { - return setWebhookUrl(Promoter.uriFromString(webhookUrl)); - } - - public ServiceCreator setReachabilityWebhooksEnabled( - final Boolean reachabilityWebhooksEnabled - ) { - this.reachabilityWebhooksEnabled = reachabilityWebhooksEnabled; - return this; - } - - public ServiceCreator setAclEnabled(final Boolean aclEnabled) { - this.aclEnabled = aclEnabled; - return this; - } - - @Override - public Service create(final TwilioRestClient client) { - String path = "/Sync/Services"; - - Request request = new Request( - HttpMethod.POST, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addPostParams(request); - Response response = client.request(request); - if (response == null) { - throw new ApiConnectionException( - "Service creation failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return Service.fromJson(response.getStream(), client.getObjectMapper()); - } - - private void addPostParams(final Request request) { - if (friendlyName != null) { - request.addPostParam("FriendlyName", friendlyName); - } - if (webhookUrl != null) { - request.addPostParam("WebhookUrl", webhookUrl.toString()); - } - if (reachabilityWebhooksEnabled != null) { - request.addPostParam( - "ReachabilityWebhooksEnabled", - reachabilityWebhooksEnabled.toString() - ); - } - if (aclEnabled != null) { - request.addPostParam("AclEnabled", aclEnabled.toString()); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/ServiceUpdater.java b/src/main/java/com/twilio/rest/preview/sync/ServiceUpdater.java deleted file mode 100644 index 7d0026c99e..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/ServiceUpdater.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync; - -import com.twilio.base.Updater; -import com.twilio.constant.EnumConstants; -import com.twilio.converter.Promoter; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import java.net.URI; - -public class ServiceUpdater extends Updater { - - private String pathSid; - private URI webhookUrl; - private String friendlyName; - private Boolean reachabilityWebhooksEnabled; - private Boolean aclEnabled; - - public ServiceUpdater(final String pathSid) { - this.pathSid = pathSid; - } - - public ServiceUpdater setWebhookUrl(final URI webhookUrl) { - this.webhookUrl = webhookUrl; - return this; - } - - public ServiceUpdater setWebhookUrl(final String webhookUrl) { - return setWebhookUrl(Promoter.uriFromString(webhookUrl)); - } - - public ServiceUpdater setFriendlyName(final String friendlyName) { - this.friendlyName = friendlyName; - return this; - } - - public ServiceUpdater setReachabilityWebhooksEnabled( - final Boolean reachabilityWebhooksEnabled - ) { - this.reachabilityWebhooksEnabled = reachabilityWebhooksEnabled; - return this; - } - - public ServiceUpdater setAclEnabled(final Boolean aclEnabled) { - this.aclEnabled = aclEnabled; - return this; - } - - @Override - public Service update(final TwilioRestClient client) { - String path = "/Sync/Services/{Sid}"; - - path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); - - Request request = new Request( - HttpMethod.POST, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addPostParams(request); - Response response = client.request(request); - if (response == null) { - throw new ApiConnectionException( - "Service update failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return Service.fromJson(response.getStream(), client.getObjectMapper()); - } - - private void addPostParams(final Request request) { - if (webhookUrl != null) { - request.addPostParam("WebhookUrl", webhookUrl.toString()); - } - if (friendlyName != null) { - request.addPostParam("FriendlyName", friendlyName); - } - if (reachabilityWebhooksEnabled != null) { - request.addPostParam( - "ReachabilityWebhooksEnabled", - reachabilityWebhooksEnabled.toString() - ); - } - if (aclEnabled != null) { - request.addPostParam("AclEnabled", aclEnabled.toString()); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/Document.java b/src/main/java/com/twilio/rest/preview/sync/service/Document.java deleted file mode 100644 index 38c90de038..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/Document.java +++ /dev/null @@ -1,242 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.twilio.base.Resource; -import com.twilio.converter.DateConverter; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.time.ZonedDateTime; -import java.util.Map; -import java.util.Map; -import java.util.Objects; -import lombok.ToString; -import lombok.ToString; - -@JsonIgnoreProperties(ignoreUnknown = true) -@ToString -public class Document extends Resource { - - private static final long serialVersionUID = 115316298329366L; - - public static DocumentCreator creator(final String pathServiceSid) { - return new DocumentCreator(pathServiceSid); - } - - public static DocumentDeleter deleter( - final String pathServiceSid, - final String pathSid - ) { - return new DocumentDeleter(pathServiceSid, pathSid); - } - - public static DocumentFetcher fetcher( - final String pathServiceSid, - final String pathSid - ) { - return new DocumentFetcher(pathServiceSid, pathSid); - } - - public static DocumentReader reader(final String pathServiceSid) { - return new DocumentReader(pathServiceSid); - } - - public static DocumentUpdater updater( - final String pathServiceSid, - final String pathSid, - final Map data - ) { - return new DocumentUpdater(pathServiceSid, pathSid, data); - } - - /** - * Converts a JSON String into a Document object using the provided ObjectMapper. - * - * @param json Raw JSON String - * @param objectMapper Jackson ObjectMapper - * @return Document object represented by the provided JSON - */ - public static Document fromJson( - final String json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, Document.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - /** - * Converts a JSON InputStream into a Document object using the provided - * ObjectMapper. - * - * @param json Raw JSON InputStream - * @param objectMapper Jackson ObjectMapper - * @return Document object represented by the provided JSON - */ - public static Document fromJson( - final InputStream json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, Document.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - private final String sid; - private final String uniqueName; - private final String accountSid; - private final String serviceSid; - private final URI url; - private final Map links; - private final String revision; - private final Map data; - private final ZonedDateTime dateCreated; - private final ZonedDateTime dateUpdated; - private final String createdBy; - - @JsonCreator - private Document( - @JsonProperty("sid") final String sid, - @JsonProperty("unique_name") final String uniqueName, - @JsonProperty("account_sid") final String accountSid, - @JsonProperty("service_sid") final String serviceSid, - @JsonProperty("url") final URI url, - @JsonProperty("links") final Map links, - @JsonProperty("revision") final String revision, - @JsonProperty("data") final Map data, - @JsonProperty("date_created") final String dateCreated, - @JsonProperty("date_updated") final String dateUpdated, - @JsonProperty("created_by") final String createdBy - ) { - this.sid = sid; - this.uniqueName = uniqueName; - this.accountSid = accountSid; - this.serviceSid = serviceSid; - this.url = url; - this.links = links; - this.revision = revision; - this.data = data; - this.dateCreated = DateConverter.iso8601DateTimeFromString(dateCreated); - this.dateUpdated = DateConverter.iso8601DateTimeFromString(dateUpdated); - this.createdBy = createdBy; - } - - public final String getSid() { - return this.sid; - } - - public final String getUniqueName() { - return this.uniqueName; - } - - public final String getAccountSid() { - return this.accountSid; - } - - public final String getServiceSid() { - return this.serviceSid; - } - - public final URI getUrl() { - return this.url; - } - - public final Map getLinks() { - return this.links; - } - - public final String getRevision() { - return this.revision; - } - - public final Map getData() { - return this.data; - } - - public final ZonedDateTime getDateCreated() { - return this.dateCreated; - } - - public final ZonedDateTime getDateUpdated() { - return this.dateUpdated; - } - - public final String getCreatedBy() { - return this.createdBy; - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - Document other = (Document) o; - - return ( - Objects.equals(sid, other.sid) && - Objects.equals(uniqueName, other.uniqueName) && - Objects.equals(accountSid, other.accountSid) && - Objects.equals(serviceSid, other.serviceSid) && - Objects.equals(url, other.url) && - Objects.equals(links, other.links) && - Objects.equals(revision, other.revision) && - Objects.equals(data, other.data) && - Objects.equals(dateCreated, other.dateCreated) && - Objects.equals(dateUpdated, other.dateUpdated) && - Objects.equals(createdBy, other.createdBy) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - sid, - uniqueName, - accountSid, - serviceSid, - url, - links, - revision, - data, - dateCreated, - dateUpdated, - createdBy - ); - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/DocumentDeleter.java b/src/main/java/com/twilio/rest/preview/sync/service/DocumentDeleter.java deleted file mode 100644 index bc8d8b0cd8..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/DocumentDeleter.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service; - -import com.twilio.base.Deleter; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class DocumentDeleter extends Deleter { - - private String pathServiceSid; - private String pathSid; - - public DocumentDeleter(final String pathServiceSid, final String pathSid) { - this.pathServiceSid = pathServiceSid; - this.pathSid = pathSid; - } - - @Override - public boolean delete(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Documents/{Sid}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); - - Request request = new Request( - HttpMethod.DELETE, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "Document delete failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - return response.getStatusCode() == 204; - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/DocumentReader.java b/src/main/java/com/twilio/rest/preview/sync/service/DocumentReader.java deleted file mode 100644 index 05542e8edc..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/DocumentReader.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service; - -import com.twilio.base.Page; -import com.twilio.base.Reader; -import com.twilio.base.ResourceSet; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class DocumentReader extends Reader { - - private String pathServiceSid; - private Long pageSize; - - public DocumentReader(final String pathServiceSid) { - this.pathServiceSid = pathServiceSid; - } - - public DocumentReader setPageSize(final Long pageSize) { - this.pageSize = pageSize; - return this; - } - - @Override - public ResourceSet read(final TwilioRestClient client) { - return new ResourceSet<>(this, client, firstPage(client)); - } - - public Page firstPage(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Documents"; - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - - Request request = new Request( - HttpMethod.GET, - Domains.PREVIEW.toString(), - path - ); - - addQueryParams(request); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - return pageForRequest(client, request); - } - - private Page pageForRequest( - final TwilioRestClient client, - final Request request - ) { - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "Document read failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return Page.fromJson( - "documents", - response.getContent(), - Document.class, - client.getObjectMapper() - ); - } - - @Override - public Page previousPage( - final Page page, - final TwilioRestClient client - ) { - Request request = new Request( - HttpMethod.GET, - page.getPreviousPageUrl(Domains.PREVIEW.toString()) - ); - return pageForRequest(client, request); - } - - @Override - public Page nextPage( - final Page page, - final TwilioRestClient client - ) { - Request request = new Request( - HttpMethod.GET, - page.getNextPageUrl(Domains.PREVIEW.toString()) - ); - return pageForRequest(client, request); - } - - @Override - public Page getPage( - final String targetUrl, - final TwilioRestClient client - ) { - Request request = new Request(HttpMethod.GET, targetUrl); - - return pageForRequest(client, request); - } - - private void addQueryParams(final Request request) { - if (pageSize != null) { - request.addQueryParam("PageSize", pageSize.toString()); - } - - if (getPageSize() != null) { - request.addQueryParam("PageSize", Integer.toString(getPageSize())); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/SyncList.java b/src/main/java/com/twilio/rest/preview/sync/service/SyncList.java deleted file mode 100644 index 2f42577a80..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/SyncList.java +++ /dev/null @@ -1,225 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.twilio.base.Resource; -import com.twilio.converter.DateConverter; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.time.ZonedDateTime; -import java.util.Map; -import java.util.Map; -import java.util.Objects; -import lombok.ToString; -import lombok.ToString; - -@JsonIgnoreProperties(ignoreUnknown = true) -@ToString -public class SyncList extends Resource { - - private static final long serialVersionUID = 90485787612091L; - - public static SyncListCreator creator(final String pathServiceSid) { - return new SyncListCreator(pathServiceSid); - } - - public static SyncListDeleter deleter( - final String pathServiceSid, - final String pathSid - ) { - return new SyncListDeleter(pathServiceSid, pathSid); - } - - public static SyncListFetcher fetcher( - final String pathServiceSid, - final String pathSid - ) { - return new SyncListFetcher(pathServiceSid, pathSid); - } - - public static SyncListReader reader(final String pathServiceSid) { - return new SyncListReader(pathServiceSid); - } - - /** - * Converts a JSON String into a SyncList object using the provided ObjectMapper. - * - * @param json Raw JSON String - * @param objectMapper Jackson ObjectMapper - * @return SyncList object represented by the provided JSON - */ - public static SyncList fromJson( - final String json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, SyncList.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - /** - * Converts a JSON InputStream into a SyncList object using the provided - * ObjectMapper. - * - * @param json Raw JSON InputStream - * @param objectMapper Jackson ObjectMapper - * @return SyncList object represented by the provided JSON - */ - public static SyncList fromJson( - final InputStream json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, SyncList.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - private final String sid; - private final String uniqueName; - private final String accountSid; - private final String serviceSid; - private final URI url; - private final Map links; - private final String revision; - private final ZonedDateTime dateCreated; - private final ZonedDateTime dateUpdated; - private final String createdBy; - - @JsonCreator - private SyncList( - @JsonProperty("sid") final String sid, - @JsonProperty("unique_name") final String uniqueName, - @JsonProperty("account_sid") final String accountSid, - @JsonProperty("service_sid") final String serviceSid, - @JsonProperty("url") final URI url, - @JsonProperty("links") final Map links, - @JsonProperty("revision") final String revision, - @JsonProperty("date_created") final String dateCreated, - @JsonProperty("date_updated") final String dateUpdated, - @JsonProperty("created_by") final String createdBy - ) { - this.sid = sid; - this.uniqueName = uniqueName; - this.accountSid = accountSid; - this.serviceSid = serviceSid; - this.url = url; - this.links = links; - this.revision = revision; - this.dateCreated = DateConverter.iso8601DateTimeFromString(dateCreated); - this.dateUpdated = DateConverter.iso8601DateTimeFromString(dateUpdated); - this.createdBy = createdBy; - } - - public final String getSid() { - return this.sid; - } - - public final String getUniqueName() { - return this.uniqueName; - } - - public final String getAccountSid() { - return this.accountSid; - } - - public final String getServiceSid() { - return this.serviceSid; - } - - public final URI getUrl() { - return this.url; - } - - public final Map getLinks() { - return this.links; - } - - public final String getRevision() { - return this.revision; - } - - public final ZonedDateTime getDateCreated() { - return this.dateCreated; - } - - public final ZonedDateTime getDateUpdated() { - return this.dateUpdated; - } - - public final String getCreatedBy() { - return this.createdBy; - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - SyncList other = (SyncList) o; - - return ( - Objects.equals(sid, other.sid) && - Objects.equals(uniqueName, other.uniqueName) && - Objects.equals(accountSid, other.accountSid) && - Objects.equals(serviceSid, other.serviceSid) && - Objects.equals(url, other.url) && - Objects.equals(links, other.links) && - Objects.equals(revision, other.revision) && - Objects.equals(dateCreated, other.dateCreated) && - Objects.equals(dateUpdated, other.dateUpdated) && - Objects.equals(createdBy, other.createdBy) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - sid, - uniqueName, - accountSid, - serviceSid, - url, - links, - revision, - dateCreated, - dateUpdated, - createdBy - ); - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/SyncListDeleter.java b/src/main/java/com/twilio/rest/preview/sync/service/SyncListDeleter.java deleted file mode 100644 index e950b491b6..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/SyncListDeleter.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service; - -import com.twilio.base.Deleter; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncListDeleter extends Deleter { - - private String pathServiceSid; - private String pathSid; - - public SyncListDeleter(final String pathServiceSid, final String pathSid) { - this.pathServiceSid = pathServiceSid; - this.pathSid = pathSid; - } - - @Override - public boolean delete(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Lists/{Sid}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); - - Request request = new Request( - HttpMethod.DELETE, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncList delete failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - return response.getStatusCode() == 204; - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/SyncMapCreator.java b/src/main/java/com/twilio/rest/preview/sync/service/SyncMapCreator.java deleted file mode 100644 index 65d87bf341..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/SyncMapCreator.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service; - -import com.twilio.base.Creator; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncMapCreator extends Creator { - - private String pathServiceSid; - private String uniqueName; - - public SyncMapCreator(final String pathServiceSid) { - this.pathServiceSid = pathServiceSid; - } - - public SyncMapCreator setUniqueName(final String uniqueName) { - this.uniqueName = uniqueName; - return this; - } - - @Override - public SyncMap create(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Maps"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - - Request request = new Request( - HttpMethod.POST, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addPostParams(request); - Response response = client.request(request); - if (response == null) { - throw new ApiConnectionException( - "SyncMap creation failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return SyncMap.fromJson(response.getStream(), client.getObjectMapper()); - } - - private void addPostParams(final Request request) { - if (uniqueName != null) { - request.addPostParam("UniqueName", uniqueName); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/SyncMapFetcher.java b/src/main/java/com/twilio/rest/preview/sync/service/SyncMapFetcher.java deleted file mode 100644 index 0a760656a0..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/SyncMapFetcher.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service; - -import com.twilio.base.Fetcher; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncMapFetcher extends Fetcher { - - private String pathServiceSid; - private String pathSid; - - public SyncMapFetcher(final String pathServiceSid, final String pathSid) { - this.pathServiceSid = pathServiceSid; - this.pathSid = pathSid; - } - - @Override - public SyncMap fetch(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Maps/{Sid}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "Sid" + "}", this.pathSid.toString()); - - Request request = new Request( - HttpMethod.GET, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncMap fetch failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return SyncMap.fromJson(response.getStream(), client.getObjectMapper()); - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermission.java b/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermission.java deleted file mode 100644 index cca948c3b6..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermission.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.document; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.twilio.base.Resource; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.util.Objects; -import lombok.ToString; -import lombok.ToString; - -@JsonIgnoreProperties(ignoreUnknown = true) -@ToString -public class DocumentPermission extends Resource { - - private static final long serialVersionUID = 90173038651529L; - - public static DocumentPermissionDeleter deleter( - final String pathServiceSid, - final String pathDocumentSid, - final String pathIdentity - ) { - return new DocumentPermissionDeleter( - pathServiceSid, - pathDocumentSid, - pathIdentity - ); - } - - public static DocumentPermissionFetcher fetcher( - final String pathServiceSid, - final String pathDocumentSid, - final String pathIdentity - ) { - return new DocumentPermissionFetcher( - pathServiceSid, - pathDocumentSid, - pathIdentity - ); - } - - public static DocumentPermissionReader reader( - final String pathServiceSid, - final String pathDocumentSid - ) { - return new DocumentPermissionReader(pathServiceSid, pathDocumentSid); - } - - public static DocumentPermissionUpdater updater( - final String pathServiceSid, - final String pathDocumentSid, - final String pathIdentity, - final Boolean read, - final Boolean write, - final Boolean manage - ) { - return new DocumentPermissionUpdater( - pathServiceSid, - pathDocumentSid, - pathIdentity, - read, - write, - manage - ); - } - - /** - * Converts a JSON String into a DocumentPermission object using the provided ObjectMapper. - * - * @param json Raw JSON String - * @param objectMapper Jackson ObjectMapper - * @return DocumentPermission object represented by the provided JSON - */ - public static DocumentPermission fromJson( - final String json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, DocumentPermission.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - /** - * Converts a JSON InputStream into a DocumentPermission object using the provided - * ObjectMapper. - * - * @param json Raw JSON InputStream - * @param objectMapper Jackson ObjectMapper - * @return DocumentPermission object represented by the provided JSON - */ - public static DocumentPermission fromJson( - final InputStream json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, DocumentPermission.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - private final String accountSid; - private final String serviceSid; - private final String documentSid; - private final String identity; - private final Boolean read; - private final Boolean write; - private final Boolean manage; - private final URI url; - - @JsonCreator - private DocumentPermission( - @JsonProperty("account_sid") final String accountSid, - @JsonProperty("service_sid") final String serviceSid, - @JsonProperty("document_sid") final String documentSid, - @JsonProperty("identity") final String identity, - @JsonProperty("read") final Boolean read, - @JsonProperty("write") final Boolean write, - @JsonProperty("manage") final Boolean manage, - @JsonProperty("url") final URI url - ) { - this.accountSid = accountSid; - this.serviceSid = serviceSid; - this.documentSid = documentSid; - this.identity = identity; - this.read = read; - this.write = write; - this.manage = manage; - this.url = url; - } - - public final String getAccountSid() { - return this.accountSid; - } - - public final String getServiceSid() { - return this.serviceSid; - } - - public final String getDocumentSid() { - return this.documentSid; - } - - public final String getIdentity() { - return this.identity; - } - - public final Boolean getRead() { - return this.read; - } - - public final Boolean getWrite() { - return this.write; - } - - public final Boolean getManage() { - return this.manage; - } - - public final URI getUrl() { - return this.url; - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - DocumentPermission other = (DocumentPermission) o; - - return ( - Objects.equals(accountSid, other.accountSid) && - Objects.equals(serviceSid, other.serviceSid) && - Objects.equals(documentSid, other.documentSid) && - Objects.equals(identity, other.identity) && - Objects.equals(read, other.read) && - Objects.equals(write, other.write) && - Objects.equals(manage, other.manage) && - Objects.equals(url, other.url) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - accountSid, - serviceSid, - documentSid, - identity, - read, - write, - manage, - url - ); - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermissionDeleter.java b/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermissionDeleter.java deleted file mode 100644 index 90a6aac4ce..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermissionDeleter.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.document; - -import com.twilio.base.Deleter; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class DocumentPermissionDeleter extends Deleter { - - private String pathServiceSid; - private String pathDocumentSid; - private String pathIdentity; - - public DocumentPermissionDeleter( - final String pathServiceSid, - final String pathDocumentSid, - final String pathIdentity - ) { - this.pathServiceSid = pathServiceSid; - this.pathDocumentSid = pathDocumentSid; - this.pathIdentity = pathIdentity; - } - - @Override - public boolean delete(final TwilioRestClient client) { - String path = - "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = - path.replace( - "{" + "DocumentSid" + "}", - this.pathDocumentSid.toString() - ); - path = - path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); - - Request request = new Request( - HttpMethod.DELETE, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "DocumentPermission delete failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - return response.getStatusCode() == 204; - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermissionFetcher.java b/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermissionFetcher.java deleted file mode 100644 index 9538af22ae..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermissionFetcher.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.document; - -import com.twilio.base.Fetcher; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class DocumentPermissionFetcher extends Fetcher { - - private String pathServiceSid; - private String pathDocumentSid; - private String pathIdentity; - - public DocumentPermissionFetcher( - final String pathServiceSid, - final String pathDocumentSid, - final String pathIdentity - ) { - this.pathServiceSid = pathServiceSid; - this.pathDocumentSid = pathDocumentSid; - this.pathIdentity = pathIdentity; - } - - @Override - public DocumentPermission fetch(final TwilioRestClient client) { - String path = - "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = - path.replace( - "{" + "DocumentSid" + "}", - this.pathDocumentSid.toString() - ); - path = - path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); - - Request request = new Request( - HttpMethod.GET, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "DocumentPermission fetch failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return DocumentPermission.fromJson( - response.getStream(), - client.getObjectMapper() - ); - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermissionReader.java b/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermissionReader.java deleted file mode 100644 index c41082f766..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermissionReader.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.document; - -import com.twilio.base.Page; -import com.twilio.base.Reader; -import com.twilio.base.ResourceSet; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class DocumentPermissionReader extends Reader { - - private String pathServiceSid; - private String pathDocumentSid; - private Long pageSize; - - public DocumentPermissionReader( - final String pathServiceSid, - final String pathDocumentSid - ) { - this.pathServiceSid = pathServiceSid; - this.pathDocumentSid = pathDocumentSid; - } - - public DocumentPermissionReader setPageSize(final Long pageSize) { - this.pageSize = pageSize; - return this; - } - - @Override - public ResourceSet read(final TwilioRestClient client) { - return new ResourceSet<>(this, client, firstPage(client)); - } - - public Page firstPage(final TwilioRestClient client) { - String path = - "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions"; - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = - path.replace( - "{" + "DocumentSid" + "}", - this.pathDocumentSid.toString() - ); - - Request request = new Request( - HttpMethod.GET, - Domains.PREVIEW.toString(), - path - ); - - addQueryParams(request); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - return pageForRequest(client, request); - } - - private Page pageForRequest( - final TwilioRestClient client, - final Request request - ) { - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "DocumentPermission read failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return Page.fromJson( - "permissions", - response.getContent(), - DocumentPermission.class, - client.getObjectMapper() - ); - } - - @Override - public Page previousPage( - final Page page, - final TwilioRestClient client - ) { - Request request = new Request( - HttpMethod.GET, - page.getPreviousPageUrl(Domains.PREVIEW.toString()) - ); - return pageForRequest(client, request); - } - - @Override - public Page nextPage( - final Page page, - final TwilioRestClient client - ) { - Request request = new Request( - HttpMethod.GET, - page.getNextPageUrl(Domains.PREVIEW.toString()) - ); - return pageForRequest(client, request); - } - - @Override - public Page getPage( - final String targetUrl, - final TwilioRestClient client - ) { - Request request = new Request(HttpMethod.GET, targetUrl); - - return pageForRequest(client, request); - } - - private void addQueryParams(final Request request) { - if (pageSize != null) { - request.addQueryParam("PageSize", pageSize.toString()); - } - - if (getPageSize() != null) { - request.addQueryParam("PageSize", Integer.toString(getPageSize())); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermissionUpdater.java b/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermissionUpdater.java deleted file mode 100644 index e817c17c93..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/document/DocumentPermissionUpdater.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.document; - -import com.twilio.base.Updater; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class DocumentPermissionUpdater extends Updater { - - private String pathServiceSid; - private String pathDocumentSid; - private String pathIdentity; - private Boolean read; - private Boolean write; - private Boolean manage; - - public DocumentPermissionUpdater( - final String pathServiceSid, - final String pathDocumentSid, - final String pathIdentity, - final Boolean read, - final Boolean write, - final Boolean manage - ) { - this.pathServiceSid = pathServiceSid; - this.pathDocumentSid = pathDocumentSid; - this.pathIdentity = pathIdentity; - this.read = read; - this.write = write; - this.manage = manage; - } - - public DocumentPermissionUpdater setRead(final Boolean read) { - this.read = read; - return this; - } - - public DocumentPermissionUpdater setWrite(final Boolean write) { - this.write = write; - return this; - } - - public DocumentPermissionUpdater setManage(final Boolean manage) { - this.manage = manage; - return this; - } - - @Override - public DocumentPermission update(final TwilioRestClient client) { - String path = - "/Sync/Services/{ServiceSid}/Documents/{DocumentSid}/Permissions/{Identity}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = - path.replace( - "{" + "DocumentSid" + "}", - this.pathDocumentSid.toString() - ); - path = - path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); - path = path.replace("{" + "Read" + "}", this.read.toString()); - path = path.replace("{" + "Write" + "}", this.write.toString()); - path = path.replace("{" + "Manage" + "}", this.manage.toString()); - - Request request = new Request( - HttpMethod.POST, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addPostParams(request); - Response response = client.request(request); - if (response == null) { - throw new ApiConnectionException( - "DocumentPermission update failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return DocumentPermission.fromJson( - response.getStream(), - client.getObjectMapper() - ); - } - - private void addPostParams(final Request request) { - if (read != null) { - request.addPostParam("Read", read.toString()); - } - if (write != null) { - request.addPostParam("Write", write.toString()); - } - if (manage != null) { - request.addPostParam("Manage", manage.toString()); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItem.java b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItem.java deleted file mode 100644 index de5aeb1ce7..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItem.java +++ /dev/null @@ -1,289 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.synclist; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.twilio.base.Resource; -import com.twilio.converter.DateConverter; -import com.twilio.converter.Promoter; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.time.ZonedDateTime; -import java.util.Map; -import java.util.Map; -import java.util.Objects; -import lombok.ToString; -import lombok.ToString; - -@JsonIgnoreProperties(ignoreUnknown = true) -@ToString -public class SyncListItem extends Resource { - - private static final long serialVersionUID = 44561675896318L; - - public static SyncListItemCreator creator( - final String pathServiceSid, - final String pathListSid, - final Map data - ) { - return new SyncListItemCreator(pathServiceSid, pathListSid, data); - } - - public static SyncListItemDeleter deleter( - final String pathServiceSid, - final String pathListSid, - final Integer pathIndex - ) { - return new SyncListItemDeleter(pathServiceSid, pathListSid, pathIndex); - } - - public static SyncListItemFetcher fetcher( - final String pathServiceSid, - final String pathListSid, - final Integer pathIndex - ) { - return new SyncListItemFetcher(pathServiceSid, pathListSid, pathIndex); - } - - public static SyncListItemReader reader( - final String pathServiceSid, - final String pathListSid - ) { - return new SyncListItemReader(pathServiceSid, pathListSid); - } - - public static SyncListItemUpdater updater( - final String pathServiceSid, - final String pathListSid, - final Integer pathIndex, - final Map data - ) { - return new SyncListItemUpdater( - pathServiceSid, - pathListSid, - pathIndex, - data - ); - } - - /** - * Converts a JSON String into a SyncListItem object using the provided ObjectMapper. - * - * @param json Raw JSON String - * @param objectMapper Jackson ObjectMapper - * @return SyncListItem object represented by the provided JSON - */ - public static SyncListItem fromJson( - final String json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, SyncListItem.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - /** - * Converts a JSON InputStream into a SyncListItem object using the provided - * ObjectMapper. - * - * @param json Raw JSON InputStream - * @param objectMapper Jackson ObjectMapper - * @return SyncListItem object represented by the provided JSON - */ - public static SyncListItem fromJson( - final InputStream json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, SyncListItem.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - private final Integer index; - private final String accountSid; - private final String serviceSid; - private final String listSid; - private final URI url; - private final String revision; - private final Map data; - private final ZonedDateTime dateCreated; - private final ZonedDateTime dateUpdated; - private final String createdBy; - - @JsonCreator - private SyncListItem( - @JsonProperty("index") final Integer index, - @JsonProperty("account_sid") final String accountSid, - @JsonProperty("service_sid") final String serviceSid, - @JsonProperty("list_sid") final String listSid, - @JsonProperty("url") final URI url, - @JsonProperty("revision") final String revision, - @JsonProperty("data") final Map data, - @JsonProperty("date_created") final String dateCreated, - @JsonProperty("date_updated") final String dateUpdated, - @JsonProperty("created_by") final String createdBy - ) { - this.index = index; - this.accountSid = accountSid; - this.serviceSid = serviceSid; - this.listSid = listSid; - this.url = url; - this.revision = revision; - this.data = data; - this.dateCreated = DateConverter.iso8601DateTimeFromString(dateCreated); - this.dateUpdated = DateConverter.iso8601DateTimeFromString(dateUpdated); - this.createdBy = createdBy; - } - - public final Integer getIndex() { - return this.index; - } - - public final String getAccountSid() { - return this.accountSid; - } - - public final String getServiceSid() { - return this.serviceSid; - } - - public final String getListSid() { - return this.listSid; - } - - public final URI getUrl() { - return this.url; - } - - public final String getRevision() { - return this.revision; - } - - public final Map getData() { - return this.data; - } - - public final ZonedDateTime getDateCreated() { - return this.dateCreated; - } - - public final ZonedDateTime getDateUpdated() { - return this.dateUpdated; - } - - public final String getCreatedBy() { - return this.createdBy; - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - SyncListItem other = (SyncListItem) o; - - return ( - Objects.equals(index, other.index) && - Objects.equals(accountSid, other.accountSid) && - Objects.equals(serviceSid, other.serviceSid) && - Objects.equals(listSid, other.listSid) && - Objects.equals(url, other.url) && - Objects.equals(revision, other.revision) && - Objects.equals(data, other.data) && - Objects.equals(dateCreated, other.dateCreated) && - Objects.equals(dateUpdated, other.dateUpdated) && - Objects.equals(createdBy, other.createdBy) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - index, - accountSid, - serviceSid, - listSid, - url, - revision, - data, - dateCreated, - dateUpdated, - createdBy - ); - } - - public enum QueryResultOrder { - ASC("asc"), - DESC("desc"); - - private final String value; - - private QueryResultOrder(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static QueryResultOrder forValue(final String value) { - return Promoter.enumFromString(value, QueryResultOrder.values()); - } - } - - public enum QueryFromBoundType { - INCLUSIVE("inclusive"), - EXCLUSIVE("exclusive"); - - private final String value; - - private QueryFromBoundType(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static QueryFromBoundType forValue(final String value) { - return Promoter.enumFromString(value, QueryFromBoundType.values()); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemDeleter.java b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemDeleter.java deleted file mode 100644 index b3d5cc84e3..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemDeleter.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.synclist; - -import com.twilio.base.Deleter; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncListItemDeleter extends Deleter { - - private String pathServiceSid; - private String pathListSid; - private Integer pathIndex; - private String ifMatch; - - public SyncListItemDeleter( - final String pathServiceSid, - final String pathListSid, - final Integer pathIndex - ) { - this.pathServiceSid = pathServiceSid; - this.pathListSid = pathListSid; - this.pathIndex = pathIndex; - } - - public SyncListItemDeleter setIfMatch(final String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - @Override - public boolean delete(final TwilioRestClient client) { - String path = - "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "ListSid" + "}", this.pathListSid.toString()); - path = path.replace("{" + "Index" + "}", this.pathIndex.toString()); - - Request request = new Request( - HttpMethod.DELETE, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addHeaderParams(request); - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncListItem delete failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - return response.getStatusCode() == 204; - } - - private void addHeaderParams(final Request request) { - if (ifMatch != null) { - request.addHeaderParam("If-Match", ifMatch); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemFetcher.java b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemFetcher.java deleted file mode 100644 index f6775f620c..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemFetcher.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.synclist; - -import com.twilio.base.Fetcher; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncListItemFetcher extends Fetcher { - - private String pathServiceSid; - private String pathListSid; - private Integer pathIndex; - - public SyncListItemFetcher( - final String pathServiceSid, - final String pathListSid, - final Integer pathIndex - ) { - this.pathServiceSid = pathServiceSid; - this.pathListSid = pathListSid; - this.pathIndex = pathIndex; - } - - @Override - public SyncListItem fetch(final TwilioRestClient client) { - String path = - "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "ListSid" + "}", this.pathListSid.toString()); - path = path.replace("{" + "Index" + "}", this.pathIndex.toString()); - - Request request = new Request( - HttpMethod.GET, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncListItem fetch failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return SyncListItem.fromJson( - response.getStream(), - client.getObjectMapper() - ); - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemReader.java b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemReader.java deleted file mode 100644 index 06eee2a166..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemReader.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.synclist; - -import com.twilio.base.Page; -import com.twilio.base.Reader; -import com.twilio.base.ResourceSet; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncListItemReader extends Reader { - - private String pathServiceSid; - private String pathListSid; - private SyncListItem.QueryResultOrder order; - private String from; - private SyncListItem.QueryFromBoundType bounds; - private Long pageSize; - - public SyncListItemReader( - final String pathServiceSid, - final String pathListSid - ) { - this.pathServiceSid = pathServiceSid; - this.pathListSid = pathListSid; - } - - public SyncListItemReader setOrder( - final SyncListItem.QueryResultOrder order - ) { - this.order = order; - return this; - } - - public SyncListItemReader setFrom(final String from) { - this.from = from; - return this; - } - - public SyncListItemReader setBounds( - final SyncListItem.QueryFromBoundType bounds - ) { - this.bounds = bounds; - return this; - } - - public SyncListItemReader setPageSize(final Long pageSize) { - this.pageSize = pageSize; - return this; - } - - @Override - public ResourceSet read(final TwilioRestClient client) { - return new ResourceSet<>(this, client, firstPage(client)); - } - - public Page firstPage(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items"; - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "ListSid" + "}", this.pathListSid.toString()); - - Request request = new Request( - HttpMethod.GET, - Domains.PREVIEW.toString(), - path - ); - - addQueryParams(request); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - return pageForRequest(client, request); - } - - private Page pageForRequest( - final TwilioRestClient client, - final Request request - ) { - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncListItem read failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return Page.fromJson( - "items", - response.getContent(), - SyncListItem.class, - client.getObjectMapper() - ); - } - - @Override - public Page previousPage( - final Page page, - final TwilioRestClient client - ) { - Request request = new Request( - HttpMethod.GET, - page.getPreviousPageUrl(Domains.PREVIEW.toString()) - ); - return pageForRequest(client, request); - } - - @Override - public Page nextPage( - final Page page, - final TwilioRestClient client - ) { - Request request = new Request( - HttpMethod.GET, - page.getNextPageUrl(Domains.PREVIEW.toString()) - ); - return pageForRequest(client, request); - } - - @Override - public Page getPage( - final String targetUrl, - final TwilioRestClient client - ) { - Request request = new Request(HttpMethod.GET, targetUrl); - - return pageForRequest(client, request); - } - - private void addQueryParams(final Request request) { - if (order != null) { - request.addQueryParam("Order", order.toString()); - } - if (from != null) { - request.addQueryParam("From", from); - } - if (bounds != null) { - request.addQueryParam("Bounds", bounds.toString()); - } - if (pageSize != null) { - request.addQueryParam("PageSize", pageSize.toString()); - } - - if (getPageSize() != null) { - request.addQueryParam("PageSize", Integer.toString(getPageSize())); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemUpdater.java b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemUpdater.java deleted file mode 100644 index 019f260575..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListItemUpdater.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.synclist; - -import com.twilio.base.Updater; -import com.twilio.constant.EnumConstants; -import com.twilio.converter.Converter; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import java.util.Map; - -public class SyncListItemUpdater extends Updater { - - private String pathServiceSid; - private String pathListSid; - private Integer pathIndex; - private Map data; - private String ifMatch; - - public SyncListItemUpdater( - final String pathServiceSid, - final String pathListSid, - final Integer pathIndex, - final Map data - ) { - this.pathServiceSid = pathServiceSid; - this.pathListSid = pathListSid; - this.pathIndex = pathIndex; - this.data = data; - } - - public SyncListItemUpdater setData(final Map data) { - this.data = data; - return this; - } - - public SyncListItemUpdater setIfMatch(final String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - @Override - public SyncListItem update(final TwilioRestClient client) { - String path = - "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Items/{Index}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "ListSid" + "}", this.pathListSid.toString()); - path = path.replace("{" + "Index" + "}", this.pathIndex.toString()); - path = path.replace("{" + "Data" + "}", this.data.toString()); - - Request request = new Request( - HttpMethod.POST, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addPostParams(request); - addHeaderParams(request); - Response response = client.request(request); - if (response == null) { - throw new ApiConnectionException( - "SyncListItem update failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return SyncListItem.fromJson( - response.getStream(), - client.getObjectMapper() - ); - } - - private void addPostParams(final Request request) { - if (data != null) { - request.addPostParam("Data", Converter.mapToJson(data)); - } - } - - private void addHeaderParams(final Request request) { - if (ifMatch != null) { - request.addHeaderParam("If-Match", ifMatch); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermission.java b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermission.java deleted file mode 100644 index 7aba8fabda..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermission.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.synclist; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.twilio.base.Resource; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.util.Objects; -import lombok.ToString; -import lombok.ToString; - -@JsonIgnoreProperties(ignoreUnknown = true) -@ToString -public class SyncListPermission extends Resource { - - private static final long serialVersionUID = 225550881347017L; - - public static SyncListPermissionDeleter deleter( - final String pathServiceSid, - final String pathListSid, - final String pathIdentity - ) { - return new SyncListPermissionDeleter( - pathServiceSid, - pathListSid, - pathIdentity - ); - } - - public static SyncListPermissionFetcher fetcher( - final String pathServiceSid, - final String pathListSid, - final String pathIdentity - ) { - return new SyncListPermissionFetcher( - pathServiceSid, - pathListSid, - pathIdentity - ); - } - - public static SyncListPermissionReader reader( - final String pathServiceSid, - final String pathListSid - ) { - return new SyncListPermissionReader(pathServiceSid, pathListSid); - } - - public static SyncListPermissionUpdater updater( - final String pathServiceSid, - final String pathListSid, - final String pathIdentity, - final Boolean read, - final Boolean write, - final Boolean manage - ) { - return new SyncListPermissionUpdater( - pathServiceSid, - pathListSid, - pathIdentity, - read, - write, - manage - ); - } - - /** - * Converts a JSON String into a SyncListPermission object using the provided ObjectMapper. - * - * @param json Raw JSON String - * @param objectMapper Jackson ObjectMapper - * @return SyncListPermission object represented by the provided JSON - */ - public static SyncListPermission fromJson( - final String json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, SyncListPermission.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - /** - * Converts a JSON InputStream into a SyncListPermission object using the provided - * ObjectMapper. - * - * @param json Raw JSON InputStream - * @param objectMapper Jackson ObjectMapper - * @return SyncListPermission object represented by the provided JSON - */ - public static SyncListPermission fromJson( - final InputStream json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, SyncListPermission.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - private final String accountSid; - private final String serviceSid; - private final String listSid; - private final String identity; - private final Boolean read; - private final Boolean write; - private final Boolean manage; - private final URI url; - - @JsonCreator - private SyncListPermission( - @JsonProperty("account_sid") final String accountSid, - @JsonProperty("service_sid") final String serviceSid, - @JsonProperty("list_sid") final String listSid, - @JsonProperty("identity") final String identity, - @JsonProperty("read") final Boolean read, - @JsonProperty("write") final Boolean write, - @JsonProperty("manage") final Boolean manage, - @JsonProperty("url") final URI url - ) { - this.accountSid = accountSid; - this.serviceSid = serviceSid; - this.listSid = listSid; - this.identity = identity; - this.read = read; - this.write = write; - this.manage = manage; - this.url = url; - } - - public final String getAccountSid() { - return this.accountSid; - } - - public final String getServiceSid() { - return this.serviceSid; - } - - public final String getListSid() { - return this.listSid; - } - - public final String getIdentity() { - return this.identity; - } - - public final Boolean getRead() { - return this.read; - } - - public final Boolean getWrite() { - return this.write; - } - - public final Boolean getManage() { - return this.manage; - } - - public final URI getUrl() { - return this.url; - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - SyncListPermission other = (SyncListPermission) o; - - return ( - Objects.equals(accountSid, other.accountSid) && - Objects.equals(serviceSid, other.serviceSid) && - Objects.equals(listSid, other.listSid) && - Objects.equals(identity, other.identity) && - Objects.equals(read, other.read) && - Objects.equals(write, other.write) && - Objects.equals(manage, other.manage) && - Objects.equals(url, other.url) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - accountSid, - serviceSid, - listSid, - identity, - read, - write, - manage, - url - ); - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermissionDeleter.java b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermissionDeleter.java deleted file mode 100644 index bd6fe8d7b5..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermissionDeleter.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.synclist; - -import com.twilio.base.Deleter; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncListPermissionDeleter extends Deleter { - - private String pathServiceSid; - private String pathListSid; - private String pathIdentity; - - public SyncListPermissionDeleter( - final String pathServiceSid, - final String pathListSid, - final String pathIdentity - ) { - this.pathServiceSid = pathServiceSid; - this.pathListSid = pathListSid; - this.pathIdentity = pathIdentity; - } - - @Override - public boolean delete(final TwilioRestClient client) { - String path = - "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "ListSid" + "}", this.pathListSid.toString()); - path = - path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); - - Request request = new Request( - HttpMethod.DELETE, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncListPermission delete failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - return response.getStatusCode() == 204; - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermissionFetcher.java b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermissionFetcher.java deleted file mode 100644 index 3926fbc59f..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermissionFetcher.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.synclist; - -import com.twilio.base.Fetcher; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncListPermissionFetcher extends Fetcher { - - private String pathServiceSid; - private String pathListSid; - private String pathIdentity; - - public SyncListPermissionFetcher( - final String pathServiceSid, - final String pathListSid, - final String pathIdentity - ) { - this.pathServiceSid = pathServiceSid; - this.pathListSid = pathListSid; - this.pathIdentity = pathIdentity; - } - - @Override - public SyncListPermission fetch(final TwilioRestClient client) { - String path = - "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "ListSid" + "}", this.pathListSid.toString()); - path = - path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); - - Request request = new Request( - HttpMethod.GET, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncListPermission fetch failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return SyncListPermission.fromJson( - response.getStream(), - client.getObjectMapper() - ); - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermissionReader.java b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermissionReader.java deleted file mode 100644 index 4a9ad5e54d..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermissionReader.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.synclist; - -import com.twilio.base.Page; -import com.twilio.base.Reader; -import com.twilio.base.ResourceSet; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncListPermissionReader extends Reader { - - private String pathServiceSid; - private String pathListSid; - private Long pageSize; - - public SyncListPermissionReader( - final String pathServiceSid, - final String pathListSid - ) { - this.pathServiceSid = pathServiceSid; - this.pathListSid = pathListSid; - } - - public SyncListPermissionReader setPageSize(final Long pageSize) { - this.pageSize = pageSize; - return this; - } - - @Override - public ResourceSet read(final TwilioRestClient client) { - return new ResourceSet<>(this, client, firstPage(client)); - } - - public Page firstPage(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions"; - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "ListSid" + "}", this.pathListSid.toString()); - - Request request = new Request( - HttpMethod.GET, - Domains.PREVIEW.toString(), - path - ); - - addQueryParams(request); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - return pageForRequest(client, request); - } - - private Page pageForRequest( - final TwilioRestClient client, - final Request request - ) { - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncListPermission read failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return Page.fromJson( - "permissions", - response.getContent(), - SyncListPermission.class, - client.getObjectMapper() - ); - } - - @Override - public Page previousPage( - final Page page, - final TwilioRestClient client - ) { - Request request = new Request( - HttpMethod.GET, - page.getPreviousPageUrl(Domains.PREVIEW.toString()) - ); - return pageForRequest(client, request); - } - - @Override - public Page nextPage( - final Page page, - final TwilioRestClient client - ) { - Request request = new Request( - HttpMethod.GET, - page.getNextPageUrl(Domains.PREVIEW.toString()) - ); - return pageForRequest(client, request); - } - - @Override - public Page getPage( - final String targetUrl, - final TwilioRestClient client - ) { - Request request = new Request(HttpMethod.GET, targetUrl); - - return pageForRequest(client, request); - } - - private void addQueryParams(final Request request) { - if (pageSize != null) { - request.addQueryParam("PageSize", pageSize.toString()); - } - - if (getPageSize() != null) { - request.addQueryParam("PageSize", Integer.toString(getPageSize())); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermissionUpdater.java b/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermissionUpdater.java deleted file mode 100644 index 0151f48d67..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/synclist/SyncListPermissionUpdater.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.synclist; - -import com.twilio.base.Updater; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncListPermissionUpdater extends Updater { - - private String pathServiceSid; - private String pathListSid; - private String pathIdentity; - private Boolean read; - private Boolean write; - private Boolean manage; - - public SyncListPermissionUpdater( - final String pathServiceSid, - final String pathListSid, - final String pathIdentity, - final Boolean read, - final Boolean write, - final Boolean manage - ) { - this.pathServiceSid = pathServiceSid; - this.pathListSid = pathListSid; - this.pathIdentity = pathIdentity; - this.read = read; - this.write = write; - this.manage = manage; - } - - public SyncListPermissionUpdater setRead(final Boolean read) { - this.read = read; - return this; - } - - public SyncListPermissionUpdater setWrite(final Boolean write) { - this.write = write; - return this; - } - - public SyncListPermissionUpdater setManage(final Boolean manage) { - this.manage = manage; - return this; - } - - @Override - public SyncListPermission update(final TwilioRestClient client) { - String path = - "/Sync/Services/{ServiceSid}/Lists/{ListSid}/Permissions/{Identity}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "ListSid" + "}", this.pathListSid.toString()); - path = - path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); - path = path.replace("{" + "Read" + "}", this.read.toString()); - path = path.replace("{" + "Write" + "}", this.write.toString()); - path = path.replace("{" + "Manage" + "}", this.manage.toString()); - - Request request = new Request( - HttpMethod.POST, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addPostParams(request); - Response response = client.request(request); - if (response == null) { - throw new ApiConnectionException( - "SyncListPermission update failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return SyncListPermission.fromJson( - response.getStream(), - client.getObjectMapper() - ); - } - - private void addPostParams(final Request request) { - if (read != null) { - request.addPostParam("Read", read.toString()); - } - if (write != null) { - request.addPostParam("Write", write.toString()); - } - if (manage != null) { - request.addPostParam("Manage", manage.toString()); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItem.java b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItem.java deleted file mode 100644 index 2596ccda3e..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItem.java +++ /dev/null @@ -1,290 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.syncmap; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.twilio.base.Resource; -import com.twilio.converter.DateConverter; -import com.twilio.converter.Promoter; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.time.ZonedDateTime; -import java.util.Map; -import java.util.Map; -import java.util.Objects; -import lombok.ToString; -import lombok.ToString; - -@JsonIgnoreProperties(ignoreUnknown = true) -@ToString -public class SyncMapItem extends Resource { - - private static final long serialVersionUID = 40990956939472L; - - public static SyncMapItemCreator creator( - final String pathServiceSid, - final String pathMapSid, - final String key, - final Map data - ) { - return new SyncMapItemCreator(pathServiceSid, pathMapSid, key, data); - } - - public static SyncMapItemDeleter deleter( - final String pathServiceSid, - final String pathMapSid, - final String pathKey - ) { - return new SyncMapItemDeleter(pathServiceSid, pathMapSid, pathKey); - } - - public static SyncMapItemFetcher fetcher( - final String pathServiceSid, - final String pathMapSid, - final String pathKey - ) { - return new SyncMapItemFetcher(pathServiceSid, pathMapSid, pathKey); - } - - public static SyncMapItemReader reader( - final String pathServiceSid, - final String pathMapSid - ) { - return new SyncMapItemReader(pathServiceSid, pathMapSid); - } - - public static SyncMapItemUpdater updater( - final String pathServiceSid, - final String pathMapSid, - final String pathKey, - final Map data - ) { - return new SyncMapItemUpdater( - pathServiceSid, - pathMapSid, - pathKey, - data - ); - } - - /** - * Converts a JSON String into a SyncMapItem object using the provided ObjectMapper. - * - * @param json Raw JSON String - * @param objectMapper Jackson ObjectMapper - * @return SyncMapItem object represented by the provided JSON - */ - public static SyncMapItem fromJson( - final String json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, SyncMapItem.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - /** - * Converts a JSON InputStream into a SyncMapItem object using the provided - * ObjectMapper. - * - * @param json Raw JSON InputStream - * @param objectMapper Jackson ObjectMapper - * @return SyncMapItem object represented by the provided JSON - */ - public static SyncMapItem fromJson( - final InputStream json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, SyncMapItem.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - private final String key; - private final String accountSid; - private final String serviceSid; - private final String mapSid; - private final URI url; - private final String revision; - private final Map data; - private final ZonedDateTime dateCreated; - private final ZonedDateTime dateUpdated; - private final String createdBy; - - @JsonCreator - private SyncMapItem( - @JsonProperty("key") final String key, - @JsonProperty("account_sid") final String accountSid, - @JsonProperty("service_sid") final String serviceSid, - @JsonProperty("map_sid") final String mapSid, - @JsonProperty("url") final URI url, - @JsonProperty("revision") final String revision, - @JsonProperty("data") final Map data, - @JsonProperty("date_created") final String dateCreated, - @JsonProperty("date_updated") final String dateUpdated, - @JsonProperty("created_by") final String createdBy - ) { - this.key = key; - this.accountSid = accountSid; - this.serviceSid = serviceSid; - this.mapSid = mapSid; - this.url = url; - this.revision = revision; - this.data = data; - this.dateCreated = DateConverter.iso8601DateTimeFromString(dateCreated); - this.dateUpdated = DateConverter.iso8601DateTimeFromString(dateUpdated); - this.createdBy = createdBy; - } - - public final String getKey() { - return this.key; - } - - public final String getAccountSid() { - return this.accountSid; - } - - public final String getServiceSid() { - return this.serviceSid; - } - - public final String getMapSid() { - return this.mapSid; - } - - public final URI getUrl() { - return this.url; - } - - public final String getRevision() { - return this.revision; - } - - public final Map getData() { - return this.data; - } - - public final ZonedDateTime getDateCreated() { - return this.dateCreated; - } - - public final ZonedDateTime getDateUpdated() { - return this.dateUpdated; - } - - public final String getCreatedBy() { - return this.createdBy; - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - SyncMapItem other = (SyncMapItem) o; - - return ( - Objects.equals(key, other.key) && - Objects.equals(accountSid, other.accountSid) && - Objects.equals(serviceSid, other.serviceSid) && - Objects.equals(mapSid, other.mapSid) && - Objects.equals(url, other.url) && - Objects.equals(revision, other.revision) && - Objects.equals(data, other.data) && - Objects.equals(dateCreated, other.dateCreated) && - Objects.equals(dateUpdated, other.dateUpdated) && - Objects.equals(createdBy, other.createdBy) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - key, - accountSid, - serviceSid, - mapSid, - url, - revision, - data, - dateCreated, - dateUpdated, - createdBy - ); - } - - public enum QueryFromBoundType { - INCLUSIVE("inclusive"), - EXCLUSIVE("exclusive"); - - private final String value; - - private QueryFromBoundType(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static QueryFromBoundType forValue(final String value) { - return Promoter.enumFromString(value, QueryFromBoundType.values()); - } - } - - public enum QueryResultOrder { - ASC("asc"), - DESC("desc"); - - private final String value; - - private QueryResultOrder(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static QueryResultOrder forValue(final String value) { - return Promoter.enumFromString(value, QueryResultOrder.values()); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemCreator.java b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemCreator.java deleted file mode 100644 index 4455ab3bb6..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemCreator.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.syncmap; - -import com.twilio.base.Creator; -import com.twilio.constant.EnumConstants; -import com.twilio.converter.Converter; -import com.twilio.converter.Converter; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import java.util.Map; -import java.util.Map; - -public class SyncMapItemCreator extends Creator { - - private String pathServiceSid; - private String pathMapSid; - private String key; - private Map data; - - public SyncMapItemCreator( - final String pathServiceSid, - final String pathMapSid, - final String key, - final Map data - ) { - this.pathServiceSid = pathServiceSid; - this.pathMapSid = pathMapSid; - this.key = key; - this.data = data; - } - - public SyncMapItemCreator setKey(final String key) { - this.key = key; - return this; - } - - public SyncMapItemCreator setData(final Map data) { - this.data = data; - return this; - } - - @Override - public SyncMapItem create(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "MapSid" + "}", this.pathMapSid.toString()); - path = path.replace("{" + "Key" + "}", this.key.toString()); - path = path.replace("{" + "Data" + "}", this.data.toString()); - - Request request = new Request( - HttpMethod.POST, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addPostParams(request); - Response response = client.request(request); - if (response == null) { - throw new ApiConnectionException( - "SyncMapItem creation failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return SyncMapItem.fromJson( - response.getStream(), - client.getObjectMapper() - ); - } - - private void addPostParams(final Request request) { - if (key != null) { - request.addPostParam("Key", key); - } - if (data != null) { - request.addPostParam("Data", Converter.mapToJson(data)); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemDeleter.java b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemDeleter.java deleted file mode 100644 index 8cf679fcd3..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemDeleter.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.syncmap; - -import com.twilio.base.Deleter; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncMapItemDeleter extends Deleter { - - private String pathServiceSid; - private String pathMapSid; - private String pathKey; - private String ifMatch; - - public SyncMapItemDeleter( - final String pathServiceSid, - final String pathMapSid, - final String pathKey - ) { - this.pathServiceSid = pathServiceSid; - this.pathMapSid = pathMapSid; - this.pathKey = pathKey; - } - - public SyncMapItemDeleter setIfMatch(final String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - @Override - public boolean delete(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "MapSid" + "}", this.pathMapSid.toString()); - path = path.replace("{" + "Key" + "}", this.pathKey.toString()); - - Request request = new Request( - HttpMethod.DELETE, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addHeaderParams(request); - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncMapItem delete failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - return response.getStatusCode() == 204; - } - - private void addHeaderParams(final Request request) { - if (ifMatch != null) { - request.addHeaderParam("If-Match", ifMatch); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemFetcher.java b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemFetcher.java deleted file mode 100644 index 6f67445e6d..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemFetcher.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.syncmap; - -import com.twilio.base.Fetcher; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncMapItemFetcher extends Fetcher { - - private String pathServiceSid; - private String pathMapSid; - private String pathKey; - - public SyncMapItemFetcher( - final String pathServiceSid, - final String pathMapSid, - final String pathKey - ) { - this.pathServiceSid = pathServiceSid; - this.pathMapSid = pathMapSid; - this.pathKey = pathKey; - } - - @Override - public SyncMapItem fetch(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "MapSid" + "}", this.pathMapSid.toString()); - path = path.replace("{" + "Key" + "}", this.pathKey.toString()); - - Request request = new Request( - HttpMethod.GET, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncMapItem fetch failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return SyncMapItem.fromJson( - response.getStream(), - client.getObjectMapper() - ); - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemReader.java b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemReader.java deleted file mode 100644 index c9e46ee1cc..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemReader.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.syncmap; - -import com.twilio.base.Page; -import com.twilio.base.Reader; -import com.twilio.base.ResourceSet; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncMapItemReader extends Reader { - - private String pathServiceSid; - private String pathMapSid; - private SyncMapItem.QueryResultOrder order; - private String from; - private SyncMapItem.QueryFromBoundType bounds; - private Long pageSize; - - public SyncMapItemReader( - final String pathServiceSid, - final String pathMapSid - ) { - this.pathServiceSid = pathServiceSid; - this.pathMapSid = pathMapSid; - } - - public SyncMapItemReader setOrder( - final SyncMapItem.QueryResultOrder order - ) { - this.order = order; - return this; - } - - public SyncMapItemReader setFrom(final String from) { - this.from = from; - return this; - } - - public SyncMapItemReader setBounds( - final SyncMapItem.QueryFromBoundType bounds - ) { - this.bounds = bounds; - return this; - } - - public SyncMapItemReader setPageSize(final Long pageSize) { - this.pageSize = pageSize; - return this; - } - - @Override - public ResourceSet read(final TwilioRestClient client) { - return new ResourceSet<>(this, client, firstPage(client)); - } - - public Page firstPage(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items"; - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "MapSid" + "}", this.pathMapSid.toString()); - - Request request = new Request( - HttpMethod.GET, - Domains.PREVIEW.toString(), - path - ); - - addQueryParams(request); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - return pageForRequest(client, request); - } - - private Page pageForRequest( - final TwilioRestClient client, - final Request request - ) { - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncMapItem read failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return Page.fromJson( - "items", - response.getContent(), - SyncMapItem.class, - client.getObjectMapper() - ); - } - - @Override - public Page previousPage( - final Page page, - final TwilioRestClient client - ) { - Request request = new Request( - HttpMethod.GET, - page.getPreviousPageUrl(Domains.PREVIEW.toString()) - ); - return pageForRequest(client, request); - } - - @Override - public Page nextPage( - final Page page, - final TwilioRestClient client - ) { - Request request = new Request( - HttpMethod.GET, - page.getNextPageUrl(Domains.PREVIEW.toString()) - ); - return pageForRequest(client, request); - } - - @Override - public Page getPage( - final String targetUrl, - final TwilioRestClient client - ) { - Request request = new Request(HttpMethod.GET, targetUrl); - - return pageForRequest(client, request); - } - - private void addQueryParams(final Request request) { - if (order != null) { - request.addQueryParam("Order", order.toString()); - } - if (from != null) { - request.addQueryParam("From", from); - } - if (bounds != null) { - request.addQueryParam("Bounds", bounds.toString()); - } - if (pageSize != null) { - request.addQueryParam("PageSize", pageSize.toString()); - } - - if (getPageSize() != null) { - request.addQueryParam("PageSize", Integer.toString(getPageSize())); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemUpdater.java b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemUpdater.java deleted file mode 100644 index ed8d746d17..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapItemUpdater.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.syncmap; - -import com.twilio.base.Updater; -import com.twilio.constant.EnumConstants; -import com.twilio.converter.Converter; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; -import java.util.Map; - -public class SyncMapItemUpdater extends Updater { - - private String pathServiceSid; - private String pathMapSid; - private String pathKey; - private Map data; - private String ifMatch; - - public SyncMapItemUpdater( - final String pathServiceSid, - final String pathMapSid, - final String pathKey, - final Map data - ) { - this.pathServiceSid = pathServiceSid; - this.pathMapSid = pathMapSid; - this.pathKey = pathKey; - this.data = data; - } - - public SyncMapItemUpdater setData(final Map data) { - this.data = data; - return this; - } - - public SyncMapItemUpdater setIfMatch(final String ifMatch) { - this.ifMatch = ifMatch; - return this; - } - - @Override - public SyncMapItem update(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Items/{Key}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "MapSid" + "}", this.pathMapSid.toString()); - path = path.replace("{" + "Key" + "}", this.pathKey.toString()); - path = path.replace("{" + "Data" + "}", this.data.toString()); - - Request request = new Request( - HttpMethod.POST, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addPostParams(request); - addHeaderParams(request); - Response response = client.request(request); - if (response == null) { - throw new ApiConnectionException( - "SyncMapItem update failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return SyncMapItem.fromJson( - response.getStream(), - client.getObjectMapper() - ); - } - - private void addPostParams(final Request request) { - if (data != null) { - request.addPostParam("Data", Converter.mapToJson(data)); - } - } - - private void addHeaderParams(final Request request) { - if (ifMatch != null) { - request.addHeaderParam("If-Match", ifMatch); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermission.java b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermission.java deleted file mode 100644 index bbe717a0ee..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermission.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.syncmap; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.core.JsonParseException; -import com.fasterxml.jackson.databind.JsonMappingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.twilio.base.Resource; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import java.io.IOException; -import java.io.InputStream; -import java.net.URI; -import java.util.Objects; -import lombok.ToString; -import lombok.ToString; - -@JsonIgnoreProperties(ignoreUnknown = true) -@ToString -public class SyncMapPermission extends Resource { - - private static final long serialVersionUID = 55149075645678L; - - public static SyncMapPermissionDeleter deleter( - final String pathServiceSid, - final String pathMapSid, - final String pathIdentity - ) { - return new SyncMapPermissionDeleter( - pathServiceSid, - pathMapSid, - pathIdentity - ); - } - - public static SyncMapPermissionFetcher fetcher( - final String pathServiceSid, - final String pathMapSid, - final String pathIdentity - ) { - return new SyncMapPermissionFetcher( - pathServiceSid, - pathMapSid, - pathIdentity - ); - } - - public static SyncMapPermissionReader reader( - final String pathServiceSid, - final String pathMapSid - ) { - return new SyncMapPermissionReader(pathServiceSid, pathMapSid); - } - - public static SyncMapPermissionUpdater updater( - final String pathServiceSid, - final String pathMapSid, - final String pathIdentity, - final Boolean read, - final Boolean write, - final Boolean manage - ) { - return new SyncMapPermissionUpdater( - pathServiceSid, - pathMapSid, - pathIdentity, - read, - write, - manage - ); - } - - /** - * Converts a JSON String into a SyncMapPermission object using the provided ObjectMapper. - * - * @param json Raw JSON String - * @param objectMapper Jackson ObjectMapper - * @return SyncMapPermission object represented by the provided JSON - */ - public static SyncMapPermission fromJson( - final String json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, SyncMapPermission.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - /** - * Converts a JSON InputStream into a SyncMapPermission object using the provided - * ObjectMapper. - * - * @param json Raw JSON InputStream - * @param objectMapper Jackson ObjectMapper - * @return SyncMapPermission object represented by the provided JSON - */ - public static SyncMapPermission fromJson( - final InputStream json, - final ObjectMapper objectMapper - ) { - // Convert all checked exceptions to Runtime - try { - return objectMapper.readValue(json, SyncMapPermission.class); - } catch (final JsonMappingException | JsonParseException e) { - throw new ApiException(e.getMessage(), e); - } catch (final IOException e) { - throw new ApiConnectionException(e.getMessage(), e); - } - } - - private final String accountSid; - private final String serviceSid; - private final String mapSid; - private final String identity; - private final Boolean read; - private final Boolean write; - private final Boolean manage; - private final URI url; - - @JsonCreator - private SyncMapPermission( - @JsonProperty("account_sid") final String accountSid, - @JsonProperty("service_sid") final String serviceSid, - @JsonProperty("map_sid") final String mapSid, - @JsonProperty("identity") final String identity, - @JsonProperty("read") final Boolean read, - @JsonProperty("write") final Boolean write, - @JsonProperty("manage") final Boolean manage, - @JsonProperty("url") final URI url - ) { - this.accountSid = accountSid; - this.serviceSid = serviceSid; - this.mapSid = mapSid; - this.identity = identity; - this.read = read; - this.write = write; - this.manage = manage; - this.url = url; - } - - public final String getAccountSid() { - return this.accountSid; - } - - public final String getServiceSid() { - return this.serviceSid; - } - - public final String getMapSid() { - return this.mapSid; - } - - public final String getIdentity() { - return this.identity; - } - - public final Boolean getRead() { - return this.read; - } - - public final Boolean getWrite() { - return this.write; - } - - public final Boolean getManage() { - return this.manage; - } - - public final URI getUrl() { - return this.url; - } - - @Override - public boolean equals(final Object o) { - if (this == o) { - return true; - } - - if (o == null || getClass() != o.getClass()) { - return false; - } - - SyncMapPermission other = (SyncMapPermission) o; - - return ( - Objects.equals(accountSid, other.accountSid) && - Objects.equals(serviceSid, other.serviceSid) && - Objects.equals(mapSid, other.mapSid) && - Objects.equals(identity, other.identity) && - Objects.equals(read, other.read) && - Objects.equals(write, other.write) && - Objects.equals(manage, other.manage) && - Objects.equals(url, other.url) - ); - } - - @Override - public int hashCode() { - return Objects.hash( - accountSid, - serviceSid, - mapSid, - identity, - read, - write, - manage, - url - ); - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermissionDeleter.java b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermissionDeleter.java deleted file mode 100644 index f57b326bac..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermissionDeleter.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.syncmap; - -import com.twilio.base.Deleter; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncMapPermissionDeleter extends Deleter { - - private String pathServiceSid; - private String pathMapSid; - private String pathIdentity; - - public SyncMapPermissionDeleter( - final String pathServiceSid, - final String pathMapSid, - final String pathIdentity - ) { - this.pathServiceSid = pathServiceSid; - this.pathMapSid = pathMapSid; - this.pathIdentity = pathIdentity; - } - - @Override - public boolean delete(final TwilioRestClient client) { - String path = - "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "MapSid" + "}", this.pathMapSid.toString()); - path = - path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); - - Request request = new Request( - HttpMethod.DELETE, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncMapPermission delete failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - return response.getStatusCode() == 204; - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermissionFetcher.java b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermissionFetcher.java deleted file mode 100644 index 38f9662761..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermissionFetcher.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.syncmap; - -import com.twilio.base.Fetcher; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncMapPermissionFetcher extends Fetcher { - - private String pathServiceSid; - private String pathMapSid; - private String pathIdentity; - - public SyncMapPermissionFetcher( - final String pathServiceSid, - final String pathMapSid, - final String pathIdentity - ) { - this.pathServiceSid = pathServiceSid; - this.pathMapSid = pathMapSid; - this.pathIdentity = pathIdentity; - } - - @Override - public SyncMapPermission fetch(final TwilioRestClient client) { - String path = - "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "MapSid" + "}", this.pathMapSid.toString()); - path = - path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); - - Request request = new Request( - HttpMethod.GET, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncMapPermission fetch failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return SyncMapPermission.fromJson( - response.getStream(), - client.getObjectMapper() - ); - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermissionReader.java b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermissionReader.java deleted file mode 100644 index 109ab528fa..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermissionReader.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.syncmap; - -import com.twilio.base.Page; -import com.twilio.base.Reader; -import com.twilio.base.ResourceSet; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncMapPermissionReader extends Reader { - - private String pathServiceSid; - private String pathMapSid; - private Long pageSize; - - public SyncMapPermissionReader( - final String pathServiceSid, - final String pathMapSid - ) { - this.pathServiceSid = pathServiceSid; - this.pathMapSid = pathMapSid; - } - - public SyncMapPermissionReader setPageSize(final Long pageSize) { - this.pageSize = pageSize; - return this; - } - - @Override - public ResourceSet read(final TwilioRestClient client) { - return new ResourceSet<>(this, client, firstPage(client)); - } - - public Page firstPage(final TwilioRestClient client) { - String path = "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions"; - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "MapSid" + "}", this.pathMapSid.toString()); - - Request request = new Request( - HttpMethod.GET, - Domains.PREVIEW.toString(), - path - ); - - addQueryParams(request); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - return pageForRequest(client, request); - } - - private Page pageForRequest( - final TwilioRestClient client, - final Request request - ) { - Response response = client.request(request); - - if (response == null) { - throw new ApiConnectionException( - "SyncMapPermission read failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return Page.fromJson( - "permissions", - response.getContent(), - SyncMapPermission.class, - client.getObjectMapper() - ); - } - - @Override - public Page previousPage( - final Page page, - final TwilioRestClient client - ) { - Request request = new Request( - HttpMethod.GET, - page.getPreviousPageUrl(Domains.PREVIEW.toString()) - ); - return pageForRequest(client, request); - } - - @Override - public Page nextPage( - final Page page, - final TwilioRestClient client - ) { - Request request = new Request( - HttpMethod.GET, - page.getNextPageUrl(Domains.PREVIEW.toString()) - ); - return pageForRequest(client, request); - } - - @Override - public Page getPage( - final String targetUrl, - final TwilioRestClient client - ) { - Request request = new Request(HttpMethod.GET, targetUrl); - - return pageForRequest(client, request); - } - - private void addQueryParams(final Request request) { - if (pageSize != null) { - request.addQueryParam("PageSize", pageSize.toString()); - } - - if (getPageSize() != null) { - request.addQueryParam("PageSize", Integer.toString(getPageSize())); - } - } -} diff --git a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermissionUpdater.java b/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermissionUpdater.java deleted file mode 100644 index 7ebed0ab40..0000000000 --- a/src/main/java/com/twilio/rest/preview/sync/service/syncmap/SyncMapPermissionUpdater.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - * This code was generated by - * ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __ - * | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/ - * | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \ - * - * Twilio - Preview - * This is the public Twilio REST API. - * - * NOTE: This class is auto generated by OpenAPI Generator. - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -package com.twilio.rest.preview.sync.service.syncmap; - -import com.twilio.base.Updater; -import com.twilio.constant.EnumConstants; -import com.twilio.exception.ApiConnectionException; -import com.twilio.exception.ApiException; -import com.twilio.exception.RestException; -import com.twilio.http.HttpMethod; -import com.twilio.http.Request; -import com.twilio.http.Response; -import com.twilio.http.TwilioRestClient; -import com.twilio.rest.Domains; - -public class SyncMapPermissionUpdater extends Updater { - - private String pathServiceSid; - private String pathMapSid; - private String pathIdentity; - private Boolean read; - private Boolean write; - private Boolean manage; - - public SyncMapPermissionUpdater( - final String pathServiceSid, - final String pathMapSid, - final String pathIdentity, - final Boolean read, - final Boolean write, - final Boolean manage - ) { - this.pathServiceSid = pathServiceSid; - this.pathMapSid = pathMapSid; - this.pathIdentity = pathIdentity; - this.read = read; - this.write = write; - this.manage = manage; - } - - public SyncMapPermissionUpdater setRead(final Boolean read) { - this.read = read; - return this; - } - - public SyncMapPermissionUpdater setWrite(final Boolean write) { - this.write = write; - return this; - } - - public SyncMapPermissionUpdater setManage(final Boolean manage) { - this.manage = manage; - return this; - } - - @Override - public SyncMapPermission update(final TwilioRestClient client) { - String path = - "/Sync/Services/{ServiceSid}/Maps/{MapSid}/Permissions/{Identity}"; - - path = - path.replace( - "{" + "ServiceSid" + "}", - this.pathServiceSid.toString() - ); - path = path.replace("{" + "MapSid" + "}", this.pathMapSid.toString()); - path = - path.replace("{" + "Identity" + "}", this.pathIdentity.toString()); - path = path.replace("{" + "Read" + "}", this.read.toString()); - path = path.replace("{" + "Write" + "}", this.write.toString()); - path = path.replace("{" + "Manage" + "}", this.manage.toString()); - - Request request = new Request( - HttpMethod.POST, - Domains.PREVIEW.toString(), - path - ); - request.setContentType(EnumConstants.ContentType.FORM_URLENCODED); - addPostParams(request); - Response response = client.request(request); - if (response == null) { - throw new ApiConnectionException( - "SyncMapPermission update failed: Unable to connect to server" - ); - } else if (!TwilioRestClient.SUCCESS.test(response.getStatusCode())) { - RestException restException = RestException.fromJson( - response.getStream(), - client.getObjectMapper() - ); - if (restException == null) { - throw new ApiException( - "Server Error, no content", - response.getStatusCode() - ); - } - throw new ApiException(restException); - } - - return SyncMapPermission.fromJson( - response.getStream(), - client.getObjectMapper() - ); - } - - private void addPostParams(final Request request) { - if (read != null) { - request.addPostParam("Read", read.toString()); - } - if (write != null) { - request.addPostParam("Write", write.toString()); - } - if (manage != null) { - request.addPostParam("Manage", manage.toString()); - } - } -} diff --git a/src/main/java/com/twilio/rest/proxy/v1/service/Session.java b/src/main/java/com/twilio/rest/proxy/v1/service/Session.java index 754ebf8f8b..2c8db7c6ad 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/service/Session.java +++ b/src/main/java/com/twilio/rest/proxy/v1/service/Session.java @@ -286,14 +286,16 @@ public int hashCode() { ); } - public enum Mode { - MESSAGE_ONLY("message-only"), - VOICE_ONLY("voice-only"), - VOICE_AND_MESSAGE("voice-and-message"); + public enum Status { + OPEN("open"), + IN_PROGRESS("in-progress"), + CLOSED("closed"), + FAILED("failed"), + UNKNOWN("unknown"); private final String value; - private Mode(final String value) { + private Status(final String value) { this.value = value; } @@ -302,21 +304,19 @@ public String toString() { } @JsonCreator - public static Mode forValue(final String value) { - return Promoter.enumFromString(value, Mode.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } - public enum Status { - OPEN("open"), - IN_PROGRESS("in-progress"), - CLOSED("closed"), - FAILED("failed"), - UNKNOWN("unknown"); + public enum Mode { + MESSAGE_ONLY("message-only"), + VOICE_ONLY("voice-only"), + VOICE_AND_MESSAGE("voice-and-message"); private final String value; - private Status(final String value) { + private Mode(final String value) { this.value = value; } @@ -325,8 +325,8 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static Mode forValue(final String value) { + return Promoter.enumFromString(value, Mode.values()); } } } diff --git a/src/main/java/com/twilio/rest/proxy/v1/service/session/Interaction.java b/src/main/java/com/twilio/rest/proxy/v1/service/session/Interaction.java index f8dc35f436..9167ddc0a9 100644 --- a/src/main/java/com/twilio/rest/proxy/v1/service/session/Interaction.java +++ b/src/main/java/com/twilio/rest/proxy/v1/service/session/Interaction.java @@ -326,27 +326,6 @@ public int hashCode() { ); } - public enum Type { - MESSAGE("message"), - VOICE("voice"), - UNKNOWN("unknown"); - - private final String value; - - private Type(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static Type forValue(final String value) { - return Promoter.enumFromString(value, Type.values()); - } - } - public enum ResourceStatus { ACCEPTED("accepted"), ANSWERED("answered"), @@ -385,4 +364,25 @@ public static ResourceStatus forValue(final String value) { return Promoter.enumFromString(value, ResourceStatus.values()); } } + + public enum Type { + MESSAGE("message"), + VOICE("voice"), + UNKNOWN("unknown"); + + private final String value; + + private Type(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Type forValue(final String value) { + return Promoter.enumFromString(value, Type.values()); + } + } } diff --git a/src/main/java/com/twilio/rest/serverless/v1/service/Build.java b/src/main/java/com/twilio/rest/serverless/v1/service/Build.java index 8a304a61c4..30dfe72cf9 100644 --- a/src/main/java/com/twilio/rest/serverless/v1/service/Build.java +++ b/src/main/java/com/twilio/rest/serverless/v1/service/Build.java @@ -255,7 +255,9 @@ public enum Runtime { NODE12("node12"), NODE14("node14"), NODE16("node16"), - NODE18("node18"); + NODE18("node18"), + NODE20("node20"), + NODE22("node22"); private final String value; diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/engagement/Step.java b/src/main/java/com/twilio/rest/studio/v1/flow/engagement/Step.java index 9a8f158131..a0b2dcbf54 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/engagement/Step.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/engagement/Step.java @@ -38,7 +38,7 @@ @ToString public class Step extends Resource { - private static final long serialVersionUID = 7112234025465L; + private static final long serialVersionUID = 84557375462184L; public static StepFetcher fetcher( final String pathFlowSid, @@ -104,6 +104,7 @@ public static Step fromJson( private final String engagementSid; private final String name; private final Map context; + private final String parentStepSid; private final String transitionedFrom; private final String transitionedTo; private final ZonedDateTime dateCreated; @@ -119,6 +120,7 @@ private Step( @JsonProperty("engagement_sid") final String engagementSid, @JsonProperty("name") final String name, @JsonProperty("context") final Map context, + @JsonProperty("parent_step_sid") final String parentStepSid, @JsonProperty("transitioned_from") final String transitionedFrom, @JsonProperty("transitioned_to") final String transitionedTo, @JsonProperty("date_created") final String dateCreated, @@ -132,6 +134,7 @@ private Step( this.engagementSid = engagementSid; this.name = name; this.context = context; + this.parentStepSid = parentStepSid; this.transitionedFrom = transitionedFrom; this.transitionedTo = transitionedTo; this.dateCreated = DateConverter.iso8601DateTimeFromString(dateCreated); @@ -164,6 +167,10 @@ public final Map getContext() { return this.context; } + public final String getParentStepSid() { + return this.parentStepSid; + } + public final String getTransitionedFrom() { return this.transitionedFrom; } @@ -207,6 +214,7 @@ public boolean equals(final Object o) { Objects.equals(engagementSid, other.engagementSid) && Objects.equals(name, other.name) && Objects.equals(context, other.context) && + Objects.equals(parentStepSid, other.parentStepSid) && Objects.equals(transitionedFrom, other.transitionedFrom) && Objects.equals(transitionedTo, other.transitionedTo) && Objects.equals(dateCreated, other.dateCreated) && @@ -225,6 +233,7 @@ public int hashCode() { engagementSid, name, context, + parentStepSid, transitionedFrom, transitionedTo, dateCreated, diff --git a/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionStep.java b/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionStep.java index 9b69e0f303..198f6d6067 100644 --- a/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionStep.java +++ b/src/main/java/com/twilio/rest/studio/v1/flow/execution/ExecutionStep.java @@ -38,7 +38,7 @@ @ToString public class ExecutionStep extends Resource { - private static final long serialVersionUID = 271983635262130L; + private static final long serialVersionUID = 56382327963536L; public static ExecutionStepFetcher fetcher( final String pathFlowSid, @@ -102,6 +102,7 @@ public static ExecutionStep fromJson( private final String accountSid; private final String flowSid; private final String executionSid; + private final String parentStepSid; private final String name; private final Map context; private final String transitionedFrom; @@ -117,6 +118,7 @@ private ExecutionStep( @JsonProperty("account_sid") final String accountSid, @JsonProperty("flow_sid") final String flowSid, @JsonProperty("execution_sid") final String executionSid, + @JsonProperty("parent_step_sid") final String parentStepSid, @JsonProperty("name") final String name, @JsonProperty("context") final Map context, @JsonProperty("transitioned_from") final String transitionedFrom, @@ -130,6 +132,7 @@ private ExecutionStep( this.accountSid = accountSid; this.flowSid = flowSid; this.executionSid = executionSid; + this.parentStepSid = parentStepSid; this.name = name; this.context = context; this.transitionedFrom = transitionedFrom; @@ -156,6 +159,10 @@ public final String getExecutionSid() { return this.executionSid; } + public final String getParentStepSid() { + return this.parentStepSid; + } + public final String getName() { return this.name; } @@ -205,6 +212,7 @@ public boolean equals(final Object o) { Objects.equals(accountSid, other.accountSid) && Objects.equals(flowSid, other.flowSid) && Objects.equals(executionSid, other.executionSid) && + Objects.equals(parentStepSid, other.parentStepSid) && Objects.equals(name, other.name) && Objects.equals(context, other.context) && Objects.equals(transitionedFrom, other.transitionedFrom) && @@ -223,6 +231,7 @@ public int hashCode() { accountSid, flowSid, executionSid, + parentStepSid, name, context, transitionedFrom, diff --git a/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionStep.java b/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionStep.java index d3a7801bbd..c6d8c0acce 100644 --- a/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionStep.java +++ b/src/main/java/com/twilio/rest/studio/v2/flow/execution/ExecutionStep.java @@ -38,7 +38,7 @@ @ToString public class ExecutionStep extends Resource { - private static final long serialVersionUID = 271983635262130L; + private static final long serialVersionUID = 56382327963536L; public static ExecutionStepFetcher fetcher( final String pathFlowSid, @@ -102,6 +102,7 @@ public static ExecutionStep fromJson( private final String accountSid; private final String flowSid; private final String executionSid; + private final String parentStepSid; private final String name; private final Map context; private final String transitionedFrom; @@ -117,6 +118,7 @@ private ExecutionStep( @JsonProperty("account_sid") final String accountSid, @JsonProperty("flow_sid") final String flowSid, @JsonProperty("execution_sid") final String executionSid, + @JsonProperty("parent_step_sid") final String parentStepSid, @JsonProperty("name") final String name, @JsonProperty("context") final Map context, @JsonProperty("transitioned_from") final String transitionedFrom, @@ -130,6 +132,7 @@ private ExecutionStep( this.accountSid = accountSid; this.flowSid = flowSid; this.executionSid = executionSid; + this.parentStepSid = parentStepSid; this.name = name; this.context = context; this.transitionedFrom = transitionedFrom; @@ -156,6 +159,10 @@ public final String getExecutionSid() { return this.executionSid; } + public final String getParentStepSid() { + return this.parentStepSid; + } + public final String getName() { return this.name; } @@ -205,6 +212,7 @@ public boolean equals(final Object o) { Objects.equals(accountSid, other.accountSid) && Objects.equals(flowSid, other.flowSid) && Objects.equals(executionSid, other.executionSid) && + Objects.equals(parentStepSid, other.parentStepSid) && Objects.equals(name, other.name) && Objects.equals(context, other.context) && Objects.equals(transitionedFrom, other.transitionedFrom) && @@ -223,6 +231,7 @@ public int hashCode() { accountSid, flowSid, executionSid, + parentStepSid, name, context, transitionedFrom, diff --git a/src/main/java/com/twilio/rest/supersim/v1/IpCommand.java b/src/main/java/com/twilio/rest/supersim/v1/IpCommand.java index 1304f050be..da34f019a3 100644 --- a/src/main/java/com/twilio/rest/supersim/v1/IpCommand.java +++ b/src/main/java/com/twilio/rest/supersim/v1/IpCommand.java @@ -243,26 +243,6 @@ public int hashCode() { ); } - public enum Direction { - TO_SIM("to_sim"), - FROM_SIM("from_sim"); - - private final String value; - - private Direction(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static Direction forValue(final String value) { - return Promoter.enumFromString(value, Direction.values()); - } - } - public enum PayloadType { TEXT("text"), BINARY("binary"); @@ -304,4 +284,24 @@ public static Status forValue(final String value) { return Promoter.enumFromString(value, Status.values()); } } + + public enum Direction { + TO_SIM("to_sim"), + FROM_SIM("from_sim"); + + private final String value; + + private Direction(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Direction forValue(final String value) { + return Promoter.enumFromString(value, Direction.values()); + } + } } diff --git a/src/main/java/com/twilio/rest/supersim/v1/UsageRecord.java b/src/main/java/com/twilio/rest/supersim/v1/UsageRecord.java index c631e9db48..2b7510e170 100644 --- a/src/main/java/com/twilio/rest/supersim/v1/UsageRecord.java +++ b/src/main/java/com/twilio/rest/supersim/v1/UsageRecord.java @@ -218,14 +218,15 @@ public int hashCode() { ); } - public enum Granularity { - HOUR("hour"), - DAY("day"), - ALL("all"); + public enum Group { + SIM("sim"), + FLEET("fleet"), + NETWORK("network"), + ISOCOUNTRY("isoCountry"); private final String value; - private Granularity(final String value) { + private Group(final String value) { this.value = value; } @@ -234,20 +235,19 @@ public String toString() { } @JsonCreator - public static Granularity forValue(final String value) { - return Promoter.enumFromString(value, Granularity.values()); + public static Group forValue(final String value) { + return Promoter.enumFromString(value, Group.values()); } } - public enum Group { - SIM("sim"), - FLEET("fleet"), - NETWORK("network"), - ISOCOUNTRY("isoCountry"); + public enum Granularity { + HOUR("hour"), + DAY("day"), + ALL("all"); private final String value; - private Group(final String value) { + private Granularity(final String value) { this.value = value; } @@ -256,8 +256,8 @@ public String toString() { } @JsonCreator - public static Group forValue(final String value) { - return Promoter.enumFromString(value, Group.values()); + public static Granularity forValue(final String value) { + return Promoter.enumFromString(value, Granularity.values()); } } } diff --git a/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapItem.java b/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapItem.java index 31352a25ba..e2c25935cf 100644 --- a/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapItem.java +++ b/src/main/java/com/twilio/rest/sync/v1/service/syncmap/SyncMapItem.java @@ -251,13 +251,13 @@ public int hashCode() { ); } - public enum QueryResultOrder { - ASC("asc"), - DESC("desc"); + public enum QueryFromBoundType { + INCLUSIVE("inclusive"), + EXCLUSIVE("exclusive"); private final String value; - private QueryResultOrder(final String value) { + private QueryFromBoundType(final String value) { this.value = value; } @@ -266,18 +266,18 @@ public String toString() { } @JsonCreator - public static QueryResultOrder forValue(final String value) { - return Promoter.enumFromString(value, QueryResultOrder.values()); + public static QueryFromBoundType forValue(final String value) { + return Promoter.enumFromString(value, QueryFromBoundType.values()); } } - public enum QueryFromBoundType { - INCLUSIVE("inclusive"), - EXCLUSIVE("exclusive"); + public enum QueryResultOrder { + ASC("asc"), + DESC("desc"); private final String value; - private QueryFromBoundType(final String value) { + private QueryResultOrder(final String value) { this.value = value; } @@ -286,8 +286,8 @@ public String toString() { } @JsonCreator - public static QueryFromBoundType forValue(final String value) { - return Promoter.enumFromString(value, QueryFromBoundType.values()); + public static QueryResultOrder forValue(final String value) { + return Promoter.enumFromString(value, QueryResultOrder.values()); } } } diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/task/Reservation.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/task/Reservation.java index ce8e498d89..e3755218cc 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/task/Reservation.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/task/Reservation.java @@ -236,19 +236,14 @@ public int hashCode() { ); } - public enum Status { - PENDING("pending"), - ACCEPTED("accepted"), - REJECTED("rejected"), - TIMEOUT("timeout"), - CANCELED("canceled"), - RESCINDED("rescinded"), - WRAPPING("wrapping"), - COMPLETED("completed"); + public enum SupervisorMode { + MONITOR("monitor"), + WHISPER("whisper"), + BARGE("barge"); private final String value; - private Status(final String value) { + private SupervisorMode(final String value) { this.value = value; } @@ -257,19 +252,24 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static SupervisorMode forValue(final String value) { + return Promoter.enumFromString(value, SupervisorMode.values()); } } - public enum SupervisorMode { - MONITOR("monitor"), - WHISPER("whisper"), - BARGE("barge"); + public enum Status { + PENDING("pending"), + ACCEPTED("accepted"), + REJECTED("rejected"), + TIMEOUT("timeout"), + CANCELED("canceled"), + RESCINDED("rescinded"), + WRAPPING("wrapping"), + COMPLETED("completed"); private final String value; - private SupervisorMode(final String value) { + private Status(final String value) { this.value = value; } @@ -278,8 +278,8 @@ public String toString() { } @JsonCreator - public static SupervisorMode forValue(final String value) { - return Promoter.enumFromString(value, SupervisorMode.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } diff --git a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/Reservation.java b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/Reservation.java index 9925cb9fa3..3c6c7d48d6 100644 --- a/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/Reservation.java +++ b/src/main/java/com/twilio/rest/taskrouter/v1/workspace/worker/Reservation.java @@ -236,6 +236,32 @@ public int hashCode() { ); } + public enum Status { + PENDING("pending"), + ACCEPTED("accepted"), + REJECTED("rejected"), + TIMEOUT("timeout"), + CANCELED("canceled"), + RESCINDED("rescinded"), + WRAPPING("wrapping"), + COMPLETED("completed"); + + private final String value; + + private Status(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); + } + } + public enum ConferenceEvent { START("start"), END("end"), @@ -282,30 +308,4 @@ public static CallStatus forValue(final String value) { return Promoter.enumFromString(value, CallStatus.values()); } } - - public enum Status { - PENDING("pending"), - ACCEPTED("accepted"), - REJECTED("rejected"), - TIMEOUT("timeout"), - CANCELED("canceled"), - RESCINDED("rescinded"), - WRAPPING("wrapping"), - COMPLETED("completed"); - - private final String value; - - private Status(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); - } - } } diff --git a/src/main/java/com/twilio/rest/trunking/v1/Trunk.java b/src/main/java/com/twilio/rest/trunking/v1/Trunk.java index 2f74adb851..2d77f12579 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/Trunk.java +++ b/src/main/java/com/twilio/rest/trunking/v1/Trunk.java @@ -294,14 +294,13 @@ public int hashCode() { ); } - public enum TransferSetting { - DISABLE_ALL("disable-all"), - ENABLE_ALL("enable-all"), - SIP_ONLY("sip-only"); + public enum TransferCallerId { + FROM_TRANSFEREE("from-transferee"), + FROM_TRANSFEROR("from-transferor"); private final String value; - private TransferSetting(final String value) { + private TransferCallerId(final String value) { this.value = value; } @@ -310,18 +309,19 @@ public String toString() { } @JsonCreator - public static TransferSetting forValue(final String value) { - return Promoter.enumFromString(value, TransferSetting.values()); + public static TransferCallerId forValue(final String value) { + return Promoter.enumFromString(value, TransferCallerId.values()); } } - public enum TransferCallerId { - FROM_TRANSFEREE("from-transferee"), - FROM_TRANSFEROR("from-transferor"); + public enum TransferSetting { + DISABLE_ALL("disable-all"), + ENABLE_ALL("enable-all"), + SIP_ONLY("sip-only"); private final String value; - private TransferCallerId(final String value) { + private TransferSetting(final String value) { this.value = value; } @@ -330,8 +330,8 @@ public String toString() { } @JsonCreator - public static TransferCallerId forValue(final String value) { - return Promoter.enumFromString(value, TransferCallerId.values()); + public static TransferSetting forValue(final String value) { + return Promoter.enumFromString(value, TransferSetting.values()); } } } diff --git a/src/main/java/com/twilio/rest/trunking/v1/trunk/Recording.java b/src/main/java/com/twilio/rest/trunking/v1/trunk/Recording.java index 867c1d762f..022e65d0b9 100644 --- a/src/main/java/com/twilio/rest/trunking/v1/trunk/Recording.java +++ b/src/main/java/com/twilio/rest/trunking/v1/trunk/Recording.java @@ -129,13 +129,16 @@ public int hashCode() { return Objects.hash(mode, trim); } - public enum RecordingTrim { - TRIM_SILENCE("trim-silence"), - DO_NOT_TRIM("do-not-trim"); + public enum RecordingMode { + DO_NOT_RECORD("do-not-record"), + RECORD_FROM_RINGING("record-from-ringing"), + RECORD_FROM_ANSWER("record-from-answer"), + RECORD_FROM_RINGING_DUAL("record-from-ringing-dual"), + RECORD_FROM_ANSWER_DUAL("record-from-answer-dual"); private final String value; - private RecordingTrim(final String value) { + private RecordingMode(final String value) { this.value = value; } @@ -144,21 +147,18 @@ public String toString() { } @JsonCreator - public static RecordingTrim forValue(final String value) { - return Promoter.enumFromString(value, RecordingTrim.values()); + public static RecordingMode forValue(final String value) { + return Promoter.enumFromString(value, RecordingMode.values()); } } - public enum RecordingMode { - DO_NOT_RECORD("do-not-record"), - RECORD_FROM_RINGING("record-from-ringing"), - RECORD_FROM_ANSWER("record-from-answer"), - RECORD_FROM_RINGING_DUAL("record-from-ringing-dual"), - RECORD_FROM_ANSWER_DUAL("record-from-answer-dual"); + public enum RecordingTrim { + TRIM_SILENCE("trim-silence"), + DO_NOT_TRIM("do-not-trim"); private final String value; - private RecordingMode(final String value) { + private RecordingTrim(final String value) { this.value = value; } @@ -167,8 +167,8 @@ public String toString() { } @JsonCreator - public static RecordingMode forValue(final String value) { - return Promoter.enumFromString(value, RecordingMode.values()); + public static RecordingTrim forValue(final String value) { + return Promoter.enumFromString(value, RecordingTrim.values()); } } } diff --git a/src/main/java/com/twilio/rest/trusthub/v1/ComplianceRegistrationInquiries.java b/src/main/java/com/twilio/rest/trusthub/v1/ComplianceRegistrationInquiries.java index c87ca11657..b633de24f7 100644 --- a/src/main/java/com/twilio/rest/trusthub/v1/ComplianceRegistrationInquiries.java +++ b/src/main/java/com/twilio/rest/trusthub/v1/ComplianceRegistrationInquiries.java @@ -191,6 +191,28 @@ public static BusinessIdentityType forValue(final String value) { } } + public enum PhoneNumberType { + LOCAL("local"), + NATIONAL("national"), + MOBILE("mobile"), + TOLL_FREE("toll-free"); + + private final String value; + + private PhoneNumberType(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static PhoneNumberType forValue(final String value) { + return Promoter.enumFromString(value, PhoneNumberType.values()); + } + } + public enum BusinessRegistrationAuthority { UK_CRN("UK:CRN"), US_EIN("US:EIN"), @@ -238,26 +260,4 @@ public static EndUserType forValue(final String value) { return Promoter.enumFromString(value, EndUserType.values()); } } - - public enum PhoneNumberType { - LOCAL("local"), - NATIONAL("national"), - MOBILE("mobile"), - TOLL_FREE("toll-free"); - - private final String value; - - private PhoneNumberType(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static PhoneNumberType forValue(final String value) { - return Promoter.enumFromString(value, PhoneNumberType.values()); - } - } } diff --git a/src/main/java/com/twilio/rest/verify/v2/VerificationAttempt.java b/src/main/java/com/twilio/rest/verify/v2/VerificationAttempt.java index c682a8d4ed..9058afe690 100644 --- a/src/main/java/com/twilio/rest/verify/v2/VerificationAttempt.java +++ b/src/main/java/com/twilio/rest/verify/v2/VerificationAttempt.java @@ -245,7 +245,9 @@ public enum Channels { SMS("sms"), CALL("call"), EMAIL("email"), - WHATSAPP("whatsapp"); + WHATSAPP("whatsapp"), + RBM("rbm"), + SNA("sna"); private final String value; diff --git a/src/main/java/com/twilio/rest/verify/v2/VerificationAttemptsSummary.java b/src/main/java/com/twilio/rest/verify/v2/VerificationAttemptsSummary.java index 14e16e42a9..5566ca5174 100644 --- a/src/main/java/com/twilio/rest/verify/v2/VerificationAttemptsSummary.java +++ b/src/main/java/com/twilio/rest/verify/v2/VerificationAttemptsSummary.java @@ -26,7 +26,6 @@ import com.twilio.exception.ApiException; import java.io.IOException; import java.io.InputStream; -import java.math.BigDecimal; import java.net.URI; import java.util.Objects; import lombok.ToString; @@ -36,7 +35,7 @@ @ToString public class VerificationAttemptsSummary extends Resource { - private static final long serialVersionUID = 224637081616234L; + private static final long serialVersionUID = 99139871813599L; public static VerificationAttemptsSummaryFetcher fetcher() { return new VerificationAttemptsSummaryFetcher(); @@ -94,7 +93,7 @@ public static VerificationAttemptsSummary fromJson( private final Integer totalAttempts; private final Integer totalConverted; private final Integer totalUnconverted; - private final BigDecimal conversionRatePercentage; + private final String conversionRatePercentage; private final URI url; @JsonCreator @@ -104,7 +103,7 @@ private VerificationAttemptsSummary( @JsonProperty("total_unconverted") final Integer totalUnconverted, @JsonProperty( "conversion_rate_percentage" - ) final BigDecimal conversionRatePercentage, + ) final String conversionRatePercentage, @JsonProperty("url") final URI url ) { this.totalAttempts = totalAttempts; @@ -126,7 +125,7 @@ public final Integer getTotalUnconverted() { return this.totalUnconverted; } - public final BigDecimal getConversionRatePercentage() { + public final String getConversionRatePercentage() { return this.conversionRatePercentage; } diff --git a/src/main/java/com/twilio/rest/verify/v2/service/Verification.java b/src/main/java/com/twilio/rest/verify/v2/service/Verification.java index 47d3cff219..913b0b4db9 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/Verification.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/Verification.java @@ -273,13 +273,16 @@ public int hashCode() { ); } - public enum RiskCheck { - ENABLE("enable"), - DISABLE("disable"); + public enum Channel { + SMS("sms"), + CALL("call"), + EMAIL("email"), + WHATSAPP("whatsapp"), + SNA("sna"); private final String value; - private RiskCheck(final String value) { + private Channel(final String value) { this.value = value; } @@ -288,8 +291,8 @@ public String toString() { } @JsonCreator - public static RiskCheck forValue(final String value) { - return Promoter.enumFromString(value, RiskCheck.values()); + public static Channel forValue(final String value) { + return Promoter.enumFromString(value, Channel.values()); } } @@ -313,16 +316,13 @@ public static Status forValue(final String value) { } } - public enum Channel { - SMS("sms"), - CALL("call"), - EMAIL("email"), - WHATSAPP("whatsapp"), - SNA("sna"); + public enum RiskCheck { + ENABLE("enable"), + DISABLE("disable"); private final String value; - private Channel(final String value) { + private RiskCheck(final String value) { this.value = value; } @@ -331,8 +331,8 @@ public String toString() { } @JsonCreator - public static Channel forValue(final String value) { - return Promoter.enumFromString(value, Channel.values()); + public static RiskCheck forValue(final String value) { + return Promoter.enumFromString(value, RiskCheck.values()); } } } diff --git a/src/main/java/com/twilio/rest/verify/v2/service/Webhook.java b/src/main/java/com/twilio/rest/verify/v2/service/Webhook.java index 0541db385d..16a7742d11 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/Webhook.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/Webhook.java @@ -258,13 +258,13 @@ public int hashCode() { ); } - public enum Version { - V1("v1"), - V2("v2"); + public enum Status { + ENABLED("enabled"), + DISABLED("disabled"); private final String value; - private Version(final String value) { + private Status(final String value) { this.value = value; } @@ -273,18 +273,18 @@ public String toString() { } @JsonCreator - public static Version forValue(final String value) { - return Promoter.enumFromString(value, Version.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } - public enum Methods { - GET("GET"), - POST("POST"); + public enum Version { + V1("v1"), + V2("v2"); private final String value; - private Methods(final String value) { + private Version(final String value) { this.value = value; } @@ -293,18 +293,18 @@ public String toString() { } @JsonCreator - public static Methods forValue(final String value) { - return Promoter.enumFromString(value, Methods.values()); + public static Version forValue(final String value) { + return Promoter.enumFromString(value, Version.values()); } } - public enum Status { - ENABLED("enabled"), - DISABLED("disabled"); + public enum Methods { + GET("GET"), + POST("POST"); private final String value; - private Status(final String value) { + private Methods(final String value) { this.value = value; } @@ -313,8 +313,8 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static Methods forValue(final String value) { + return Promoter.enumFromString(value, Methods.values()); } } } diff --git a/src/main/java/com/twilio/rest/verify/v2/service/entity/Challenge.java b/src/main/java/com/twilio/rest/verify/v2/service/entity/Challenge.java index 4ec35ee066..0d62df7622 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/entity/Challenge.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/entity/Challenge.java @@ -309,6 +309,27 @@ public int hashCode() { ); } + public enum ChallengeReasons { + NONE("none"), + NOT_NEEDED("not_needed"), + NOT_REQUESTED("not_requested"); + + private final String value; + + private ChallengeReasons(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static ChallengeReasons forValue(final String value) { + return Promoter.enumFromString(value, ChallengeReasons.values()); + } + } + public enum ListOrders { ASC("asc"), DESC("desc"); @@ -370,25 +391,4 @@ public static FactorTypes forValue(final String value) { return Promoter.enumFromString(value, FactorTypes.values()); } } - - public enum ChallengeReasons { - NONE("none"), - NOT_NEEDED("not_needed"), - NOT_REQUESTED("not_requested"); - - private final String value; - - private ChallengeReasons(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static ChallengeReasons forValue(final String value) { - return Promoter.enumFromString(value, ChallengeReasons.values()); - } - } } diff --git a/src/main/java/com/twilio/rest/verify/v2/service/entity/NewFactor.java b/src/main/java/com/twilio/rest/verify/v2/service/entity/NewFactor.java index c537086837..308d23c721 100644 --- a/src/main/java/com/twilio/rest/verify/v2/service/entity/NewFactor.java +++ b/src/main/java/com/twilio/rest/verify/v2/service/entity/NewFactor.java @@ -252,14 +252,13 @@ public int hashCode() { ); } - public enum TotpAlgorithms { - SHA1("sha1"), - SHA256("sha256"), - SHA512("sha512"); + public enum FactorTypes { + PUSH("push"), + TOTP("totp"); private final String value; - private TotpAlgorithms(final String value) { + private FactorTypes(final String value) { this.value = value; } @@ -268,18 +267,18 @@ public String toString() { } @JsonCreator - public static TotpAlgorithms forValue(final String value) { - return Promoter.enumFromString(value, TotpAlgorithms.values()); + public static FactorTypes forValue(final String value) { + return Promoter.enumFromString(value, FactorTypes.values()); } } - public enum FactorTypes { - PUSH("push"), - TOTP("totp"); + public enum FactorStatuses { + UNVERIFIED("unverified"), + VERIFIED("verified"); private final String value; - private FactorTypes(final String value) { + private FactorStatuses(final String value) { this.value = value; } @@ -288,19 +287,19 @@ public String toString() { } @JsonCreator - public static FactorTypes forValue(final String value) { - return Promoter.enumFromString(value, FactorTypes.values()); + public static FactorStatuses forValue(final String value) { + return Promoter.enumFromString(value, FactorStatuses.values()); } } - public enum NotificationPlatforms { - APN("apn"), - FCM("fcm"), - NONE("none"); + public enum TotpAlgorithms { + SHA1("sha1"), + SHA256("sha256"), + SHA512("sha512"); private final String value; - private NotificationPlatforms(final String value) { + private TotpAlgorithms(final String value) { this.value = value; } @@ -309,21 +308,19 @@ public String toString() { } @JsonCreator - public static NotificationPlatforms forValue(final String value) { - return Promoter.enumFromString( - value, - NotificationPlatforms.values() - ); + public static TotpAlgorithms forValue(final String value) { + return Promoter.enumFromString(value, TotpAlgorithms.values()); } } - public enum FactorStatuses { - UNVERIFIED("unverified"), - VERIFIED("verified"); + public enum NotificationPlatforms { + APN("apn"), + FCM("fcm"), + NONE("none"); private final String value; - private FactorStatuses(final String value) { + private NotificationPlatforms(final String value) { this.value = value; } @@ -332,8 +329,11 @@ public String toString() { } @JsonCreator - public static FactorStatuses forValue(final String value) { - return Promoter.enumFromString(value, FactorStatuses.values()); + public static NotificationPlatforms forValue(final String value) { + return Promoter.enumFromString( + value, + NotificationPlatforms.values() + ); } } } diff --git a/src/main/java/com/twilio/rest/video/v1/Composition.java b/src/main/java/com/twilio/rest/video/v1/Composition.java index 96f08b5cdc..c58d12e102 100644 --- a/src/main/java/com/twilio/rest/video/v1/Composition.java +++ b/src/main/java/com/twilio/rest/video/v1/Composition.java @@ -329,13 +329,16 @@ public int hashCode() { ); } - public enum Format { - MP4("mp4"), - WEBM("webm"); + public enum Status { + ENQUEUED("enqueued"), + PROCESSING("processing"), + COMPLETED("completed"), + DELETED("deleted"), + FAILED("failed"); private final String value; - private Format(final String value) { + private Status(final String value) { this.value = value; } @@ -344,21 +347,18 @@ public String toString() { } @JsonCreator - public static Format forValue(final String value) { - return Promoter.enumFromString(value, Format.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } - public enum Status { - ENQUEUED("enqueued"), - PROCESSING("processing"), - COMPLETED("completed"), - DELETED("deleted"), - FAILED("failed"); + public enum Format { + MP4("mp4"), + WEBM("webm"); private final String value; - private Status(final String value) { + private Format(final String value) { this.value = value; } @@ -367,8 +367,8 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static Format forValue(final String value) { + return Promoter.enumFromString(value, Format.values()); } } } diff --git a/src/main/java/com/twilio/rest/video/v1/Recording.java b/src/main/java/com/twilio/rest/video/v1/Recording.java index 352586e981..4f21119419 100644 --- a/src/main/java/com/twilio/rest/video/v1/Recording.java +++ b/src/main/java/com/twilio/rest/video/v1/Recording.java @@ -296,13 +296,15 @@ public int hashCode() { ); } - public enum Format { - MKA("mka"), - MKV("mkv"); + public enum Status { + PROCESSING("processing"), + COMPLETED("completed"), + DELETED("deleted"), + FAILED("failed"); private final String value; - private Format(final String value) { + private Status(final String value) { this.value = value; } @@ -311,8 +313,8 @@ public String toString() { } @JsonCreator - public static Format forValue(final String value) { - return Promoter.enumFromString(value, Format.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } @@ -337,15 +339,15 @@ public static Type forValue(final String value) { } } - public enum Status { - PROCESSING("processing"), - COMPLETED("completed"), - DELETED("deleted"), - FAILED("failed"); + public enum Codec { + VP8("VP8"), + H264("H264"), + OPUS("OPUS"), + PCMU("PCMU"); private final String value; - private Status(final String value) { + private Codec(final String value) { this.value = value; } @@ -354,20 +356,18 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static Codec forValue(final String value) { + return Promoter.enumFromString(value, Codec.values()); } } - public enum Codec { - VP8("VP8"), - H264("H264"), - OPUS("OPUS"), - PCMU("PCMU"); + public enum Format { + MKA("mka"), + MKV("mkv"); private final String value; - private Codec(final String value) { + private Format(final String value) { this.value = value; } @@ -376,8 +376,8 @@ public String toString() { } @JsonCreator - public static Codec forValue(final String value) { - return Promoter.enumFromString(value, Codec.values()); + public static Format forValue(final String value) { + return Promoter.enumFromString(value, Format.values()); } } } diff --git a/src/main/java/com/twilio/rest/video/v1/Room.java b/src/main/java/com/twilio/rest/video/v1/Room.java index 2a6cd4d93e..77a513b610 100644 --- a/src/main/java/com/twilio/rest/video/v1/Room.java +++ b/src/main/java/com/twilio/rest/video/v1/Room.java @@ -366,15 +366,14 @@ public int hashCode() { ); } - public enum RoomType { - GO("go"), - PEER_TO_PEER("peer-to-peer"), - GROUP("group"), - GROUP_SMALL("group-small"); + public enum RoomStatus { + IN_PROGRESS("in-progress"), + COMPLETED("completed"), + FAILED("failed"); private final String value; - private RoomType(final String value) { + private RoomStatus(final String value) { this.value = value; } @@ -383,18 +382,20 @@ public String toString() { } @JsonCreator - public static RoomType forValue(final String value) { - return Promoter.enumFromString(value, RoomType.values()); + public static RoomStatus forValue(final String value) { + return Promoter.enumFromString(value, RoomStatus.values()); } } - public enum VideoCodec { - VP8("VP8"), - H264("H264"); + public enum RoomType { + GO("go"), + PEER_TO_PEER("peer-to-peer"), + GROUP("group"), + GROUP_SMALL("group-small"); private final String value; - private VideoCodec(final String value) { + private RoomType(final String value) { this.value = value; } @@ -403,19 +404,18 @@ public String toString() { } @JsonCreator - public static VideoCodec forValue(final String value) { - return Promoter.enumFromString(value, VideoCodec.values()); + public static RoomType forValue(final String value) { + return Promoter.enumFromString(value, RoomType.values()); } } - public enum RoomStatus { - IN_PROGRESS("in-progress"), - COMPLETED("completed"), - FAILED("failed"); + public enum VideoCodec { + VP8("VP8"), + H264("H264"); private final String value; - private RoomStatus(final String value) { + private VideoCodec(final String value) { this.value = value; } @@ -424,8 +424,8 @@ public String toString() { } @JsonCreator - public static RoomStatus forValue(final String value) { - return Promoter.enumFromString(value, RoomStatus.values()); + public static VideoCodec forValue(final String value) { + return Promoter.enumFromString(value, VideoCodec.values()); } } } diff --git a/src/main/java/com/twilio/rest/video/v1/RoomCreator.java b/src/main/java/com/twilio/rest/video/v1/RoomCreator.java index ef1b041f9e..01acec6599 100644 --- a/src/main/java/com/twilio/rest/video/v1/RoomCreator.java +++ b/src/main/java/com/twilio/rest/video/v1/RoomCreator.java @@ -43,9 +43,11 @@ public class RoomCreator extends Creator { private HttpMethod statusCallbackMethod; private Integer maxParticipants; private Boolean recordParticipantsOnConnect; + private Boolean transcribeParticipantsOnConnect; private List videoCodecs; private String mediaRegion; private Map recordingRules; + private Map transcriptionsConfiguration; private Boolean audioOnly; private Integer maxParticipantDuration; private Integer emptyRoomTimeout; @@ -97,6 +99,13 @@ public RoomCreator setRecordParticipantsOnConnect( return this; } + public RoomCreator setTranscribeParticipantsOnConnect( + final Boolean transcribeParticipantsOnConnect + ) { + this.transcribeParticipantsOnConnect = transcribeParticipantsOnConnect; + return this; + } + public RoomCreator setVideoCodecs(final List videoCodecs) { this.videoCodecs = videoCodecs; return this; @@ -118,6 +127,13 @@ public RoomCreator setRecordingRules( return this; } + public RoomCreator setTranscriptionsConfiguration( + final Map transcriptionsConfiguration + ) { + this.transcriptionsConfiguration = transcriptionsConfiguration; + return this; + } + public RoomCreator setAudioOnly(final Boolean audioOnly) { this.audioOnly = audioOnly; return this; @@ -206,6 +222,12 @@ private void addPostParams(final Request request) { recordParticipantsOnConnect.toString() ); } + if (transcribeParticipantsOnConnect != null) { + request.addPostParam( + "TranscribeParticipantsOnConnect", + transcribeParticipantsOnConnect.toString() + ); + } if (videoCodecs != null) { for (Room.VideoCodec prop : videoCodecs) { request.addPostParam("VideoCodecs", prop.toString()); @@ -220,6 +242,12 @@ private void addPostParams(final Request request) { Converter.mapToJson(recordingRules) ); } + if (transcriptionsConfiguration != null) { + request.addPostParam( + "TranscriptionsConfiguration", + Converter.mapToJson(transcriptionsConfiguration) + ); + } if (audioOnly != null) { request.addPostParam("AudioOnly", audioOnly.toString()); } diff --git a/src/main/java/com/twilio/rest/video/v1/room/Participant.java b/src/main/java/com/twilio/rest/video/v1/room/Participant.java index 9b46964aff..e424615a76 100644 --- a/src/main/java/com/twilio/rest/video/v1/room/Participant.java +++ b/src/main/java/com/twilio/rest/video/v1/room/Participant.java @@ -240,7 +240,8 @@ public int hashCode() { public enum Status { CONNECTED("connected"), - DISCONNECTED("disconnected"); + DISCONNECTED("disconnected"), + RECONNECTING("reconnecting"); private final String value; diff --git a/src/main/java/com/twilio/rest/video/v1/room/RoomRecording.java b/src/main/java/com/twilio/rest/video/v1/room/RoomRecording.java index 48f0e281af..7a37f4e2ad 100644 --- a/src/main/java/com/twilio/rest/video/v1/room/RoomRecording.java +++ b/src/main/java/com/twilio/rest/video/v1/room/RoomRecording.java @@ -311,28 +311,6 @@ public static Type forValue(final String value) { } } - public enum Status { - PROCESSING("processing"), - COMPLETED("completed"), - DELETED("deleted"), - FAILED("failed"); - - private final String value; - - private Status(final String value) { - this.value = value; - } - - public String toString() { - return value; - } - - @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); - } - } - public enum Codec { VP8("VP8"), H264("H264"), @@ -374,4 +352,26 @@ public static Format forValue(final String value) { return Promoter.enumFromString(value, Format.values()); } } + + public enum Status { + PROCESSING("processing"), + COMPLETED("completed"), + DELETED("deleted"), + FAILED("failed"); + + private final String value; + + private Status(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); + } + } } diff --git a/src/main/java/com/twilio/rest/wireless/v1/Command.java b/src/main/java/com/twilio/rest/wireless/v1/Command.java index 1f546acf2f..e1c79cb63b 100644 --- a/src/main/java/com/twilio/rest/wireless/v1/Command.java +++ b/src/main/java/com/twilio/rest/wireless/v1/Command.java @@ -239,16 +239,13 @@ public int hashCode() { ); } - public enum Status { - QUEUED("queued"), - SENT("sent"), - DELIVERED("delivered"), - RECEIVED("received"), - FAILED("failed"); + public enum Direction { + FROM_SIM("from_sim"), + TO_SIM("to_sim"); private final String value; - private Status(final String value) { + private Direction(final String value) { this.value = value; } @@ -257,18 +254,21 @@ public String toString() { } @JsonCreator - public static Status forValue(final String value) { - return Promoter.enumFromString(value, Status.values()); + public static Direction forValue(final String value) { + return Promoter.enumFromString(value, Direction.values()); } } - public enum Direction { - FROM_SIM("from_sim"), - TO_SIM("to_sim"); + public enum Status { + QUEUED("queued"), + SENT("sent"), + DELIVERED("delivered"), + RECEIVED("received"), + FAILED("failed"); private final String value; - private Direction(final String value) { + private Status(final String value) { this.value = value; } @@ -277,8 +277,8 @@ public String toString() { } @JsonCreator - public static Direction forValue(final String value) { - return Promoter.enumFromString(value, Direction.values()); + public static Status forValue(final String value) { + return Promoter.enumFromString(value, Status.values()); } } diff --git a/src/main/java/com/twilio/rest/wireless/v1/RatePlan.java b/src/main/java/com/twilio/rest/wireless/v1/RatePlan.java index 6017fff2d8..adcacdadf9 100644 --- a/src/main/java/com/twilio/rest/wireless/v1/RatePlan.java +++ b/src/main/java/com/twilio/rest/wireless/v1/RatePlan.java @@ -22,6 +22,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.base.Resource; import com.twilio.converter.DateConverter; +import com.twilio.converter.Promoter; import com.twilio.exception.ApiConnectionException; import com.twilio.exception.ApiException; import java.io.IOException; @@ -290,4 +291,24 @@ public int hashCode() { url ); } + + public enum DataLimitStrategy { + BLOCK("block"), + THROTTLE("throttle"); + + private final String value; + + private DataLimitStrategy(final String value) { + this.value = value; + } + + public String toString() { + return value; + } + + @JsonCreator + public static DataLimitStrategy forValue(final String value) { + return Promoter.enumFromString(value, DataLimitStrategy.values()); + } + } } diff --git a/src/main/java/com/twilio/rest/wireless/v1/RatePlanCreator.java b/src/main/java/com/twilio/rest/wireless/v1/RatePlanCreator.java index c44b1fd99d..8a072fe0e0 100644 --- a/src/main/java/com/twilio/rest/wireless/v1/RatePlanCreator.java +++ b/src/main/java/com/twilio/rest/wireless/v1/RatePlanCreator.java @@ -41,6 +41,7 @@ public class RatePlanCreator extends Creator { private List internationalRoaming; private Integer nationalRoamingDataLimit; private Integer internationalRoamingDataLimit; + private RatePlan.DataLimitStrategy dataLimitStrategy; public RatePlanCreator() {} @@ -115,6 +116,13 @@ public RatePlanCreator setInternationalRoamingDataLimit( return this; } + public RatePlanCreator setDataLimitStrategy( + final RatePlan.DataLimitStrategy dataLimitStrategy + ) { + this.dataLimitStrategy = dataLimitStrategy; + return this; + } + @Override public RatePlan create(final TwilioRestClient client) { String path = "/v1/RatePlans"; @@ -199,5 +207,11 @@ private void addPostParams(final Request request) { internationalRoamingDataLimit.toString() ); } + if (dataLimitStrategy != null) { + request.addPostParam( + "DataLimitStrategy", + dataLimitStrategy.toString() + ); + } } } diff --git a/src/main/java/com/twilio/twiml/voice/Assistant.java b/src/main/java/com/twilio/twiml/voice/Assistant.java index 9a8e64487a..f74f3a658c 100644 --- a/src/main/java/com/twilio/twiml/voice/Assistant.java +++ b/src/main/java/com/twilio/twiml/voice/Assistant.java @@ -34,10 +34,15 @@ public class Assistant extends TwiML { private final Boolean dtmfDetection; private final String welcomeGreeting; private final Boolean partialPrompts; - private final Boolean interruptible; - private final Boolean interruptByDtmf; - private final Boolean welcomeGreetingInterruptible; - private final Boolean debug; + private final String welcomeGreetingInterruptible; + private final String interruptible; + private final Boolean preemptible; + private final String hints; + private final String intelligenceService; + private final Boolean reportInputDuringAgentSpeech; + private final String elevenlabsTextNormalization; + private final String interruptSensitivity; + private final String debug; /** * For XML Serialization/Deserialization @@ -63,9 +68,14 @@ private Assistant(Builder b) { this.dtmfDetection = b.dtmfDetection; this.welcomeGreeting = b.welcomeGreeting; this.partialPrompts = b.partialPrompts; - this.interruptible = b.interruptible; - this.interruptByDtmf = b.interruptByDtmf; this.welcomeGreetingInterruptible = b.welcomeGreetingInterruptible; + this.interruptible = b.interruptible; + this.preemptible = b.preemptible; + this.hints = b.hints; + this.intelligenceService = b.intelligenceService; + this.reportInputDuringAgentSpeech = b.reportInputDuringAgentSpeech; + this.elevenlabsTextNormalization = b.elevenlabsTextNormalization; + this.interruptSensitivity = b.interruptSensitivity; this.debug = b.debug; } @@ -114,17 +124,32 @@ protected Map getElementAttributes() { if (this.isPartialPrompts() != null) { attrs.put("partialPrompts", this.isPartialPrompts().toString()); } - if (this.isInterruptible() != null) { - attrs.put("interruptible", this.isInterruptible().toString()); + if (this.getWelcomeGreetingInterruptible() != null) { + attrs.put("welcomeGreetingInterruptible", this.getWelcomeGreetingInterruptible()); + } + if (this.getInterruptible() != null) { + attrs.put("interruptible", this.getInterruptible()); + } + if (this.isPreemptible() != null) { + attrs.put("preemptible", this.isPreemptible().toString()); } - if (this.isInterruptByDtmf() != null) { - attrs.put("interruptByDtmf", this.isInterruptByDtmf().toString()); + if (this.getHints() != null) { + attrs.put("hints", this.getHints()); } - if (this.isWelcomeGreetingInterruptible() != null) { - attrs.put("welcomeGreetingInterruptible", this.isWelcomeGreetingInterruptible().toString()); + if (this.getIntelligenceService() != null) { + attrs.put("intelligenceService", this.getIntelligenceService()); } - if (this.isDebug() != null) { - attrs.put("debug", this.isDebug().toString()); + if (this.isReportInputDuringAgentSpeech() != null) { + attrs.put("reportInputDuringAgentSpeech", this.isReportInputDuringAgentSpeech().toString()); + } + if (this.getElevenlabsTextNormalization() != null) { + attrs.put("elevenlabsTextNormalization", this.getElevenlabsTextNormalization()); + } + if (this.getInterruptSensitivity() != null) { + attrs.put("interruptSensitivity", this.getInterruptSensitivity()); + } + if (this.getDebug() != null) { + attrs.put("debug", this.getDebug()); } return attrs; @@ -243,38 +268,98 @@ public Boolean isPartialPrompts() { } /** - * Whether caller's speaking can interrupt the play of text-to-speech + * "Whether and how the input from a caller, such as speaking or DTMF can + * interrupt the welcome greeting + * + * @return "Whether and how the input from a caller, such as speaking or DTMF + * can interrupt the welcome greeting + */ + public String getWelcomeGreetingInterruptible() { + return welcomeGreetingInterruptible; + } + + /** + * Whether and how the input from a caller, such as speaking or DTMF can + * interrupt the play of text-to-speech * - * @return Whether caller's speaking can interrupt the play of text-to-speech + * @return Whether and how the input from a caller, such as speaking or DTMF + * can interrupt the play of text-to-speech */ - public Boolean isInterruptible() { + public String getInterruptible() { return interruptible; } /** - * Whether DTMF tone can interrupt the play of text-to-speech + * Whether subsequent text-to-speech or play media can interrupt the on-going + * play of text-to-speech or media * - * @return Whether DTMF tone can interrupt the play of text-to-speech + * @return Whether subsequent text-to-speech or play media can interrupt the + * on-going play of text-to-speech or media */ - public Boolean isInterruptByDtmf() { - return interruptByDtmf; + public Boolean isPreemptible() { + return preemptible; } /** - * Whether caller's speaking can interrupt the welcome greeting + * Phrases to help better accuracy in speech recognition of these pharases * - * @return Whether caller's speaking can interrupt the welcome greeting + * @return Phrases to help better accuracy in speech recognition of these + * pharases */ - public Boolean isWelcomeGreetingInterruptible() { - return welcomeGreetingInterruptible; + public String getHints() { + return hints; + } + + /** + * The Conversational Intelligence Service id or unique name to be used for the + * session + * + * @return The Conversational Intelligence Service id or unique name to be used + * for the session + */ + public String getIntelligenceService() { + return intelligenceService; + } + + /** + * Whether prompts should be reported to WebSocket server when text-to-speech + * playing and interrupt is disabled + * + * @return Whether prompts should be reported to WebSocket server when + * text-to-speech playing and interrupt is disabled + */ + public Boolean isReportInputDuringAgentSpeech() { + return reportInputDuringAgentSpeech; } /** - * Whether debugging on the session is enabled + * When using ElevenLabs as TTS provider, this parameter allows you to enable or + * disable its text normalization feature * - * @return Whether debugging on the session is enabled + * @return When using ElevenLabs as TTS provider, this parameter allows you to + * enable or disable its text normalization feature */ - public Boolean isDebug() { + public String getElevenlabsTextNormalization() { + return elevenlabsTextNormalization; + } + + /** + * Set the sensitivity of the interrupt feature for speech. The value can be + * low, medium, or high + * + * @return Set the sensitivity of the interrupt feature for speech. The value + * can be low, medium, or high + */ + public String getInterruptSensitivity() { + return interruptSensitivity; + } + + /** + * Multiple debug options to be used for troubleshooting + * + * @return Multiple debug options to be used for troubleshooting + */ + public String getDebug() { return debug; } @@ -309,10 +394,15 @@ public static Builder fromXml(final String xml) throws TwiMLException { private Boolean dtmfDetection; private String welcomeGreeting; private Boolean partialPrompts; - private Boolean interruptible; - private Boolean interruptByDtmf; - private Boolean welcomeGreetingInterruptible; - private Boolean debug; + private String welcomeGreetingInterruptible; + private String interruptible; + private Boolean preemptible; + private String hints; + private String intelligenceService; + private Boolean reportInputDuringAgentSpeech; + private String elevenlabsTextNormalization; + private String interruptSensitivity; + private String debug; /** * The assistant ID of the AI Assistant @@ -424,37 +514,89 @@ public Builder partialPrompts(Boolean partialPrompts) { } /** - * Whether caller's speaking can interrupt the play of text-to-speech + * "Whether and how the input from a caller, such as speaking or DTMF can + * interrupt the welcome greeting + */ + @JacksonXmlProperty(isAttribute = true, localName = "welcomeGreetingInterruptible") + public Builder welcomeGreetingInterruptible(String welcomeGreetingInterruptible) { + this.welcomeGreetingInterruptible = welcomeGreetingInterruptible; + return this; + } + + /** + * Whether and how the input from a caller, such as speaking or DTMF can + * interrupt the play of text-to-speech */ @JacksonXmlProperty(isAttribute = true, localName = "interruptible") - public Builder interruptible(Boolean interruptible) { + public Builder interruptible(String interruptible) { this.interruptible = interruptible; return this; } /** - * Whether DTMF tone can interrupt the play of text-to-speech + * Whether subsequent text-to-speech or play media can interrupt the on-going + * play of text-to-speech or media */ - @JacksonXmlProperty(isAttribute = true, localName = "interruptByDtmf") - public Builder interruptByDtmf(Boolean interruptByDtmf) { - this.interruptByDtmf = interruptByDtmf; + @JacksonXmlProperty(isAttribute = true, localName = "preemptible") + public Builder preemptible(Boolean preemptible) { + this.preemptible = preemptible; return this; } /** - * Whether caller's speaking can interrupt the welcome greeting + * Phrases to help better accuracy in speech recognition of these pharases */ - @JacksonXmlProperty(isAttribute = true, localName = "welcomeGreetingInterruptible") - public Builder welcomeGreetingInterruptible(Boolean welcomeGreetingInterruptible) { - this.welcomeGreetingInterruptible = welcomeGreetingInterruptible; + @JacksonXmlProperty(isAttribute = true, localName = "hints") + public Builder hints(String hints) { + this.hints = hints; + return this; + } + + /** + * The Conversational Intelligence Service id or unique name to be used for the + * session + */ + @JacksonXmlProperty(isAttribute = true, localName = "intelligenceService") + public Builder intelligenceService(String intelligenceService) { + this.intelligenceService = intelligenceService; + return this; + } + + /** + * Whether prompts should be reported to WebSocket server when text-to-speech + * playing and interrupt is disabled + */ + @JacksonXmlProperty(isAttribute = true, localName = "reportInputDuringAgentSpeech") + public Builder reportInputDuringAgentSpeech(Boolean reportInputDuringAgentSpeech) { + this.reportInputDuringAgentSpeech = reportInputDuringAgentSpeech; + return this; + } + + /** + * When using ElevenLabs as TTS provider, this parameter allows you to enable or + * disable its text normalization feature + */ + @JacksonXmlProperty(isAttribute = true, localName = "elevenlabsTextNormalization") + public Builder elevenlabsTextNormalization(String elevenlabsTextNormalization) { + this.elevenlabsTextNormalization = elevenlabsTextNormalization; + return this; + } + + /** + * Set the sensitivity of the interrupt feature for speech. The value can be + * low, medium, or high + */ + @JacksonXmlProperty(isAttribute = true, localName = "interruptSensitivity") + public Builder interruptSensitivity(String interruptSensitivity) { + this.interruptSensitivity = interruptSensitivity; return this; } /** - * Whether debugging on the session is enabled + * Multiple debug options to be used for troubleshooting */ @JacksonXmlProperty(isAttribute = true, localName = "debug") - public Builder debug(Boolean debug) { + public Builder debug(String debug) { this.debug = debug; return this; } diff --git a/src/main/java/com/twilio/twiml/voice/Conference.java b/src/main/java/com/twilio/twiml/voice/Conference.java index 5b9fda6878..fd5a414376 100644 --- a/src/main/java/com/twilio/twiml/voice/Conference.java +++ b/src/main/java/com/twilio/twiml/voice/Conference.java @@ -61,6 +61,7 @@ public String toString() { public enum Region { US1("us1"), + US2("us2"), IE1("ie1"), SG1("sg1"), BR1("br1"), diff --git a/src/main/java/com/twilio/twiml/voice/ConversationRelay.java b/src/main/java/com/twilio/twiml/voice/ConversationRelay.java index 087ae84245..40d8e050fa 100644 --- a/src/main/java/com/twilio/twiml/voice/ConversationRelay.java +++ b/src/main/java/com/twilio/twiml/voice/ConversationRelay.java @@ -34,10 +34,15 @@ public class ConversationRelay extends TwiML { private final Boolean dtmfDetection; private final String welcomeGreeting; private final Boolean partialPrompts; - private final Boolean interruptible; - private final Boolean interruptByDtmf; - private final Boolean welcomeGreetingInterruptible; - private final Boolean debug; + private final String welcomeGreetingInterruptible; + private final String interruptible; + private final Boolean preemptible; + private final String hints; + private final String intelligenceService; + private final Boolean reportInputDuringAgentSpeech; + private final String elevenlabsTextNormalization; + private final String interruptSensitivity; + private final String debug; /** * For XML Serialization/Deserialization @@ -63,9 +68,14 @@ private ConversationRelay(Builder b) { this.dtmfDetection = b.dtmfDetection; this.welcomeGreeting = b.welcomeGreeting; this.partialPrompts = b.partialPrompts; - this.interruptible = b.interruptible; - this.interruptByDtmf = b.interruptByDtmf; this.welcomeGreetingInterruptible = b.welcomeGreetingInterruptible; + this.interruptible = b.interruptible; + this.preemptible = b.preemptible; + this.hints = b.hints; + this.intelligenceService = b.intelligenceService; + this.reportInputDuringAgentSpeech = b.reportInputDuringAgentSpeech; + this.elevenlabsTextNormalization = b.elevenlabsTextNormalization; + this.interruptSensitivity = b.interruptSensitivity; this.debug = b.debug; } @@ -114,17 +124,32 @@ protected Map getElementAttributes() { if (this.isPartialPrompts() != null) { attrs.put("partialPrompts", this.isPartialPrompts().toString()); } - if (this.isInterruptible() != null) { - attrs.put("interruptible", this.isInterruptible().toString()); + if (this.getWelcomeGreetingInterruptible() != null) { + attrs.put("welcomeGreetingInterruptible", this.getWelcomeGreetingInterruptible()); + } + if (this.getInterruptible() != null) { + attrs.put("interruptible", this.getInterruptible()); + } + if (this.isPreemptible() != null) { + attrs.put("preemptible", this.isPreemptible().toString()); } - if (this.isInterruptByDtmf() != null) { - attrs.put("interruptByDtmf", this.isInterruptByDtmf().toString()); + if (this.getHints() != null) { + attrs.put("hints", this.getHints()); } - if (this.isWelcomeGreetingInterruptible() != null) { - attrs.put("welcomeGreetingInterruptible", this.isWelcomeGreetingInterruptible().toString()); + if (this.getIntelligenceService() != null) { + attrs.put("intelligenceService", this.getIntelligenceService()); } - if (this.isDebug() != null) { - attrs.put("debug", this.isDebug().toString()); + if (this.isReportInputDuringAgentSpeech() != null) { + attrs.put("reportInputDuringAgentSpeech", this.isReportInputDuringAgentSpeech().toString()); + } + if (this.getElevenlabsTextNormalization() != null) { + attrs.put("elevenlabsTextNormalization", this.getElevenlabsTextNormalization()); + } + if (this.getInterruptSensitivity() != null) { + attrs.put("interruptSensitivity", this.getInterruptSensitivity()); + } + if (this.getDebug() != null) { + attrs.put("debug", this.getDebug()); } return attrs; @@ -243,38 +268,98 @@ public Boolean isPartialPrompts() { } /** - * Whether caller's speaking can interrupt the play of text-to-speech + * "Whether and how the input from a caller, such as speaking or DTMF can + * interrupt the welcome greeting + * + * @return "Whether and how the input from a caller, such as speaking or DTMF + * can interrupt the welcome greeting + */ + public String getWelcomeGreetingInterruptible() { + return welcomeGreetingInterruptible; + } + + /** + * Whether and how the input from a caller, such as speaking or DTMF can + * interrupt the play of text-to-speech * - * @return Whether caller's speaking can interrupt the play of text-to-speech + * @return Whether and how the input from a caller, such as speaking or DTMF + * can interrupt the play of text-to-speech */ - public Boolean isInterruptible() { + public String getInterruptible() { return interruptible; } /** - * Whether DTMF tone can interrupt the play of text-to-speech + * Whether subsequent text-to-speech or play media can interrupt the on-going + * play of text-to-speech or media * - * @return Whether DTMF tone can interrupt the play of text-to-speech + * @return Whether subsequent text-to-speech or play media can interrupt the + * on-going play of text-to-speech or media */ - public Boolean isInterruptByDtmf() { - return interruptByDtmf; + public Boolean isPreemptible() { + return preemptible; } /** - * Whether caller's speaking can interrupt the welcome greeting + * Phrases to help better accuracy in speech recognition of these pharases * - * @return Whether caller's speaking can interrupt the welcome greeting + * @return Phrases to help better accuracy in speech recognition of these + * pharases */ - public Boolean isWelcomeGreetingInterruptible() { - return welcomeGreetingInterruptible; + public String getHints() { + return hints; + } + + /** + * The Conversational Intelligence Service id or unique name to be used for the + * session + * + * @return The Conversational Intelligence Service id or unique name to be used + * for the session + */ + public String getIntelligenceService() { + return intelligenceService; + } + + /** + * Whether prompts should be reported to WebSocket server when text-to-speech + * playing and interrupt is disabled + * + * @return Whether prompts should be reported to WebSocket server when + * text-to-speech playing and interrupt is disabled + */ + public Boolean isReportInputDuringAgentSpeech() { + return reportInputDuringAgentSpeech; } /** - * Whether debugging on the session is enabled + * When using ElevenLabs as TTS provider, this parameter allows you to enable or + * disable its text normalization feature * - * @return Whether debugging on the session is enabled + * @return When using ElevenLabs as TTS provider, this parameter allows you to + * enable or disable its text normalization feature */ - public Boolean isDebug() { + public String getElevenlabsTextNormalization() { + return elevenlabsTextNormalization; + } + + /** + * Set the sensitivity of the interrupt feature for speech. The value can be + * low, medium, or high + * + * @return Set the sensitivity of the interrupt feature for speech. The value + * can be low, medium, or high + */ + public String getInterruptSensitivity() { + return interruptSensitivity; + } + + /** + * Multiple debug options to be used for troubleshooting + * + * @return Multiple debug options to be used for troubleshooting + */ + public String getDebug() { return debug; } @@ -309,10 +394,15 @@ public static Builder fromXml(final String xml) throws TwiMLException { private Boolean dtmfDetection; private String welcomeGreeting; private Boolean partialPrompts; - private Boolean interruptible; - private Boolean interruptByDtmf; - private Boolean welcomeGreetingInterruptible; - private Boolean debug; + private String welcomeGreetingInterruptible; + private String interruptible; + private Boolean preemptible; + private String hints; + private String intelligenceService; + private Boolean reportInputDuringAgentSpeech; + private String elevenlabsTextNormalization; + private String interruptSensitivity; + private String debug; /** * URL of the remote service where the session is connected to @@ -424,37 +514,89 @@ public Builder partialPrompts(Boolean partialPrompts) { } /** - * Whether caller's speaking can interrupt the play of text-to-speech + * "Whether and how the input from a caller, such as speaking or DTMF can + * interrupt the welcome greeting + */ + @JacksonXmlProperty(isAttribute = true, localName = "welcomeGreetingInterruptible") + public Builder welcomeGreetingInterruptible(String welcomeGreetingInterruptible) { + this.welcomeGreetingInterruptible = welcomeGreetingInterruptible; + return this; + } + + /** + * Whether and how the input from a caller, such as speaking or DTMF can + * interrupt the play of text-to-speech */ @JacksonXmlProperty(isAttribute = true, localName = "interruptible") - public Builder interruptible(Boolean interruptible) { + public Builder interruptible(String interruptible) { this.interruptible = interruptible; return this; } /** - * Whether DTMF tone can interrupt the play of text-to-speech + * Whether subsequent text-to-speech or play media can interrupt the on-going + * play of text-to-speech or media */ - @JacksonXmlProperty(isAttribute = true, localName = "interruptByDtmf") - public Builder interruptByDtmf(Boolean interruptByDtmf) { - this.interruptByDtmf = interruptByDtmf; + @JacksonXmlProperty(isAttribute = true, localName = "preemptible") + public Builder preemptible(Boolean preemptible) { + this.preemptible = preemptible; return this; } /** - * Whether caller's speaking can interrupt the welcome greeting + * Phrases to help better accuracy in speech recognition of these pharases */ - @JacksonXmlProperty(isAttribute = true, localName = "welcomeGreetingInterruptible") - public Builder welcomeGreetingInterruptible(Boolean welcomeGreetingInterruptible) { - this.welcomeGreetingInterruptible = welcomeGreetingInterruptible; + @JacksonXmlProperty(isAttribute = true, localName = "hints") + public Builder hints(String hints) { + this.hints = hints; + return this; + } + + /** + * The Conversational Intelligence Service id or unique name to be used for the + * session + */ + @JacksonXmlProperty(isAttribute = true, localName = "intelligenceService") + public Builder intelligenceService(String intelligenceService) { + this.intelligenceService = intelligenceService; + return this; + } + + /** + * Whether prompts should be reported to WebSocket server when text-to-speech + * playing and interrupt is disabled + */ + @JacksonXmlProperty(isAttribute = true, localName = "reportInputDuringAgentSpeech") + public Builder reportInputDuringAgentSpeech(Boolean reportInputDuringAgentSpeech) { + this.reportInputDuringAgentSpeech = reportInputDuringAgentSpeech; + return this; + } + + /** + * When using ElevenLabs as TTS provider, this parameter allows you to enable or + * disable its text normalization feature + */ + @JacksonXmlProperty(isAttribute = true, localName = "elevenlabsTextNormalization") + public Builder elevenlabsTextNormalization(String elevenlabsTextNormalization) { + this.elevenlabsTextNormalization = elevenlabsTextNormalization; + return this; + } + + /** + * Set the sensitivity of the interrupt feature for speech. The value can be + * low, medium, or high + */ + @JacksonXmlProperty(isAttribute = true, localName = "interruptSensitivity") + public Builder interruptSensitivity(String interruptSensitivity) { + this.interruptSensitivity = interruptSensitivity; return this; } /** - * Whether debugging on the session is enabled + * Multiple debug options to be used for troubleshooting */ @JacksonXmlProperty(isAttribute = true, localName = "debug") - public Builder debug(Boolean debug) { + public Builder debug(String debug) { this.debug = debug; return this; } diff --git a/src/test/java/com/twilio/converter/ConverterTest.java b/src/test/java/com/twilio/converter/ConverterTest.java new file mode 100644 index 0000000000..cef54fd7a0 --- /dev/null +++ b/src/test/java/com/twilio/converter/ConverterTest.java @@ -0,0 +1,134 @@ +package com.twilio.converter; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import lombok.Getter; +import lombok.Setter; +import org.junit.Assert; +import org.junit.Test; + +import java.io.IOException; +import java.util.*; + +/** + * Test class for {@link Converter}. + */ +public class ConverterTest { + + private static class Container { + @JsonInclude(JsonInclude.Include.NON_EMPTY) + @JsonProperty("emails") + @Getter + @Setter + private Object emails; + + public String getEmails() { + return Converter.objectToJson(emails); + } + + public Container(Object emails) { + this.emails = emails; + } + } + + @Test + public void testAnyTypeNull() throws IOException { + Container c = new Container(null); + Assert.assertEquals("null", c.getEmails()); + } + + @Test + public void testAnyTypeString() throws IOException { + Container c = new Container("emails"); + Assert.assertEquals("emails", c.getEmails()); + } + + @Test + public void testAnyTypeInteger() throws IOException { + Container c = new Container(2); + Assert.assertEquals("2", c.getEmails()); + } + + @Test + public void testAnyTypeBoolean() { + Container c = new Container(true); + Assert.assertEquals("true", c.getEmails()); + } + + @Test + public void testAnyTypeIntArray() { + Container c = new Container(new int[]{1, 2, 3}); + Assert.assertEquals("[1, 2, 3]", c.getEmails()); + } + + @Test + public void testAnyTypeLongArray() { + Container c = new Container(new long[]{1L, 2L, 3L}); + Assert.assertEquals("[1, 2, 3]", c.getEmails()); + } + + @Test + public void testAnyTypeDoubleArray() { + Container c = new Container(new double[]{1.1, 2.2, 3.3}); + Assert.assertEquals("[1.1, 2.2, 3.3]", c.getEmails()); + } + + @Test + public void testAnyTypeFloatArray() { + Container c = new Container(new float[]{1.1f, 2.2f, 3.3f}); + Assert.assertEquals("[1.1, 2.2, 3.3]", c.getEmails()); + } + + @Test + public void testAnyTypeBooleanArray() { + Container c = new Container(new boolean[]{true, false}); + Assert.assertEquals("[true, false]", c.getEmails()); + } + + @Test + public void testAnyTypeByteArray() { + Container c = new Container(new byte[]{1, 2, 3}); + Assert.assertEquals("[1, 2, 3]", c.getEmails()); + } + + @Test + public void testAnyTypeShortArray() { + Container c = new Container(new short[]{1, 2, 3}); + Assert.assertEquals("[1, 2, 3]", c.getEmails()); + } + + @Test + public void testAnyTypeCharArray() { + Container c = new Container(new char[]{'a', 'b', 'c'}); + Assert.assertEquals("[a, b, c]", c.getEmails()); + } + + @Test + public void testAnyTypeStringArray() { + Container c = new Container(new String[]{"a", "b", "c"}); + Assert.assertEquals("[a, b, c]", c.getEmails()); + } + + @Test + public void testAnyTypeList() { + Container c = new Container(Arrays.asList("test@example.com", "admin@example.com")); + Assert.assertEquals("[\"test@example.com\",\"admin@example.com\"]", c.getEmails()); + } + + @Test + public void testAnyTypeSet() { + Container c = new Container(new HashSet<>(Arrays.asList(5, 6))); + // Sets have no order, so either possibility is allowed + String result = c.getEmails(); + Assert.assertTrue(result.equals("[5,6]") || result.equals("[6,5]")); + } + + @Test + public void testAnyTypeMap() { + Map emails = new LinkedHashMap<>(); + emails.put("a", 1); + emails.put("b", "two"); + Container c = new Container(emails); + Assert.assertEquals("{\"a\":1,\"b\":\"two\"}", c.getEmails()); + } +} diff --git a/src/test/java/com/twilio/http/TwilioRestClientTest.java b/src/test/java/com/twilio/http/TwilioRestClientTest.java index 862d72add2..f2bdfc466d 100644 --- a/src/test/java/com/twilio/http/TwilioRestClientTest.java +++ b/src/test/java/com/twilio/http/TwilioRestClientTest.java @@ -1,19 +1,22 @@ package com.twilio.http; -import com.twilio.rest.Domains; -import org.junit.Before; -import org.junit.Test; -import org.mockito.Mock; -import org.mockito.MockitoAnnotations; - -import java.util.Arrays; -import java.util.Collections; -import java.util.List; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; +import static org.junit.Assert.assertTrue; import static org.mockito.Mockito.when; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule; +import com.twilio.rest.Domains; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import org.junit.Before; +import org.junit.Test; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + public class TwilioRestClientTest { private TwilioRestClient twilioRestClient; @Mock @@ -48,6 +51,34 @@ public void testRequest() { assertNotNull(resp); } + @Test + public void testRequestWithCustomObjectMapper() { + Request request = new Request( + HttpMethod.GET, + Domains.API.toString(), + URI + ); + TwilioRestClient client = new TwilioRestClient.Builder(USER_NAME, TOKEN) + .objectMapper(new ObjectMapper().registerModule(new JavaTimeModule())) + .httpClient(httpClient) + .build(); + + when(httpClient.reliableRequest(request)).thenReturn(new Response("", 200)); + + Response resp = client.request(request); + assertNotNull(resp); + } + + @Test + public void testUsesSingletonDefaultObjectMapper() { + TwilioRestClient client1 = new TwilioRestClient.Builder(USER_NAME, TOKEN) + .build(); + TwilioRestClient client2 = new TwilioRestClient.Builder(USER_NAME, TOKEN) + .build(); + + assertTrue(client1.getObjectMapper() == client2.getObjectMapper()); + } + @Test public void testRequestWithExtension() { Request request = new Request( @@ -57,6 +88,7 @@ public void testRequestWithExtension() { ); twilioRestClientExtension = new TwilioRestClient.Builder(USER_NAME, TOKEN) .userAgentExtensions(userAgentStringExtensions) + .httpClient(httpClient) .build(); twilioRestClientExtension.request(request); assertEquals(userAgentStringExtensions, request.getUserAgentExtensions()); @@ -71,6 +103,7 @@ public void testRequestWithExtensionEmpty() { ); twilioRestClientExtension = new TwilioRestClient.Builder(USER_NAME, TOKEN) .userAgentExtensions(Collections.emptyList()) + .httpClient(httpClient) .build(); twilioRestClientExtension.request(request); assertNull(request.getUserAgentExtensions()); @@ -85,6 +118,7 @@ public void testRequestWithExtensionNull() { ); twilioRestClientExtension = new TwilioRestClient.Builder(USER_NAME, TOKEN) .userAgentExtensions(null) + .httpClient(httpClient) .build(); twilioRestClientExtension.request(request); assertNull(request.getUserAgentExtensions()); diff --git a/src/test/java/com/twilio/jwt/accesstoken/AccessTokenTest.java b/src/test/java/com/twilio/jwt/accesstoken/AccessTokenTest.java index 1cb6d868f8..f829590422 100644 --- a/src/test/java/com/twilio/jwt/accesstoken/AccessTokenTest.java +++ b/src/test/java/com/twilio/jwt/accesstoken/AccessTokenTest.java @@ -1,9 +1,20 @@ package com.twilio.jwt.accesstoken; +import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.jwt.Jwt; import io.jsonwebtoken.Claims; +import io.jsonwebtoken.Jws; import io.jsonwebtoken.JwsHeader; +import io.jsonwebtoken.JwtParser; +import io.jsonwebtoken.JwtParserBuilder; import io.jsonwebtoken.Jwts; +import io.jsonwebtoken.security.Keys; +import java.io.IOException; +import java.security.KeyPair; +import java.security.KeyPairGenerator; +import java.security.NoSuchAlgorithmException; +import javax.crypto.KeyGenerator; +import javax.crypto.SecretKey; import org.junit.Assert; import org.junit.Test; @@ -18,7 +29,19 @@ public class AccessTokenTest { private static final String ACCOUNT_SID = "AC123"; private static final String SIGNING_KEY_SID = "SK123"; - private static final String SECRET = "secretsecretsecretsecretsecret00"; + private static byte[] SECRET; + + static { + KeyGenerator keyGen = null; + try { + keyGen = KeyGenerator.getInstance("HmacSHA256"); + keyGen.init(2048); // Use 2048 bits for stronger security + SecretKey pair = keyGen.generateKey(); + SECRET = pair.getEncoded(); + } catch (NoSuchAlgorithmException e) { + throw new RuntimeException(e); + } + } private void validateToken(Claims claims) { Assert.assertEquals(SIGNING_KEY_SID, claims.getIssuer()); @@ -32,14 +55,17 @@ private void validateToken(Claims claims) { Assert.assertTrue(claims.getExpiration().getTime() > new Date().getTime()); } - private Claims getClaimFromJwtToken(Jwt token) { - return Jwts.parserBuilder() - .setSigningKey(SECRET.getBytes()).build() - .parseClaimsJws(token.toJwt()) - .getBody(); + private Claims getClaimFromJwtToken(Jwt token) throws IOException { + io.jsonwebtoken.Jwt claims = Jwts.parser() + .verifyWith(Keys.hmacShaKeyFor(SECRET)) + .build() + .parse(token.toJwt()); + ObjectMapper objectMapper = new ObjectMapper(); + Map map = (Map)objectMapper.readValue((byte[])claims.getPayload(), Map.class); + return Jwts.claims().add(map).build(); } - private void testVoiceToken(Boolean allow) { + private void testVoiceToken(Boolean allow) throws IOException { Map params = new HashMap<>(); params.put("foo", "bar"); @@ -70,7 +96,7 @@ private void testVoiceToken(Boolean allow) { } @Test - public void testEmptyToken() { + public void testEmptyToken() throws IOException { Jwt token = new AccessToken.Builder(ACCOUNT_SID, SIGNING_KEY_SID, SECRET) .build(); @@ -81,7 +107,7 @@ public void testEmptyToken() { } @Test - public void testOptionalValues() { + public void testOptionalValues() throws IOException { Jwt token = new AccessToken.Builder(ACCOUNT_SID, SIGNING_KEY_SID, SECRET) .identity(ACCOUNT_SID) @@ -100,28 +126,28 @@ public void testRegion() { .region("foo") .build(); - JwsHeader header = Jwts.parserBuilder() - .setSigningKey(SECRET.getBytes()).build() - .parseClaimsJws(token.toJwt()) - .getHeader(); + io.jsonwebtoken.Jwt jwts = Jwts.parser() + .verifyWith(Keys.hmacShaKeyFor(SECRET)) + .build() + .parse(token.toJwt()); - Assert.assertEquals("foo", header.get("twr")); + Assert.assertEquals("foo", jwts.getHeader().get("twr")); } @Test public void testEmptyRegion() { Jwt token = new AccessToken.Builder(ACCOUNT_SID, SIGNING_KEY_SID, SECRET).build(); - JwsHeader header = Jwts.parserBuilder() - .setSigningKey(SECRET.getBytes()).build() - .parseClaimsJws(token.toJwt()) - .getHeader(); + io.jsonwebtoken.Jwt jwts = Jwts.parser() + .verifyWith(Keys.hmacShaKeyFor(SECRET)) + .build() + .parse(token.toJwt()); - Assert.assertEquals(null, header.get("twr")); + Assert.assertEquals(null, jwts.getHeader().get("twr")); } @Test - public void testVideoGrant() { + public void testVideoGrant() throws IOException { VideoGrant cg = new VideoGrant().setRoom("RM123"); Jwt token = new AccessToken.Builder(ACCOUNT_SID, SIGNING_KEY_SID, SECRET) @@ -140,7 +166,7 @@ public void testVideoGrant() { } @Test - public void testChatGrant() { + public void testChatGrant() throws IOException { ChatGrant cg = new ChatGrant() .setDeploymentRoleSid("RL123") .setEndpointId("foobar") @@ -166,7 +192,7 @@ public void testChatGrant() { } @Test - public void testSyncGrant() { + public void testSyncGrant() throws IOException { SyncGrant sg = new SyncGrant() .setEndpointId("foobar") .setServiceSid("IS123"); @@ -188,7 +214,7 @@ public void testSyncGrant() { } @Test - public void testPlaybackGrant() { + public void testPlaybackGrant() throws IOException { Map grantPayload = new HashMap<>(); grantPayload.put("requestCredentials", null); grantPayload.put("playbackUrl", "https://000.us-east-1.playback.live-video.net/api/video/v1/us-east-000.channel.000?token=xxxxx"); @@ -214,7 +240,7 @@ public void testPlaybackGrant() { } @Test - public void testTaskRouterGrant() { + public void testTaskRouterGrant() throws IOException { TaskRouterGrant trg = new TaskRouterGrant() .setWorkspaceSid("WS123") .setWorkerSid("WK123") @@ -239,13 +265,13 @@ public void testTaskRouterGrant() { } @Test - public void testVoiceTokenWithIncoming() { + public void testVoiceTokenWithIncoming() throws IOException { testVoiceToken(true); testVoiceToken(false); } @Test - public void testVoiceTokenWithoutIncoming() { + public void testVoiceTokenWithoutIncoming() throws IOException { Map params = new HashMap<>(); params.put("foo", "bar"); @@ -274,7 +300,7 @@ public void testVoiceTokenWithoutIncoming() { } @Test() - public void testNullValues() { + public void testNullValues() throws IOException { ChatGrant cg = new ChatGrant().setDeploymentRoleSid("RL123"); Jwt token = new AccessToken.Builder(ACCOUNT_SID, SIGNING_KEY_SID, SECRET) diff --git a/src/test/java/com/twilio/jwt/client/ClientCapabilityTest.java b/src/test/java/com/twilio/jwt/client/ClientCapabilityTest.java index 7a63abb49e..3d6319faaa 100644 --- a/src/test/java/com/twilio/jwt/client/ClientCapabilityTest.java +++ b/src/test/java/com/twilio/jwt/client/ClientCapabilityTest.java @@ -3,6 +3,12 @@ import com.twilio.jwt.Jwt; import io.jsonwebtoken.Claims; import io.jsonwebtoken.Jwts; +import io.jsonwebtoken.impl.DefaultClaims; +import io.jsonwebtoken.security.Keys; +import java.io.IOException; +import java.security.NoSuchAlgorithmException; +import javax.crypto.KeyGenerator; +import javax.crypto.SecretKey; import org.junit.Assert; import org.junit.Test; @@ -16,24 +22,40 @@ public class ClientCapabilityTest { private static final String ACCOUNT_SID = "AC123"; - private static final String SECRET = "secretsecretsecretsecretsecret00"; + private static byte[] SECRET; + + static { + KeyGenerator keyGen = null; + try { + keyGen = KeyGenerator.getInstance("HmacSHA256"); + keyGen.init(2048); // Use 2048 bits for stronger security + SecretKey pair = keyGen.generateKey(); + SECRET = pair.getEncoded(); + } catch (NoSuchAlgorithmException e) { + throw new RuntimeException(e); + } + } + public Claims getClaims(Jwt token) throws IOException { + io.jsonwebtoken.Jwt claims = Jwts.parser() + .verifyWith(Keys.hmacShaKeyFor(SECRET)) + .build() + .parse(token.toJwt()); + + return (DefaultClaims)claims.getPayload(); + } @Test - public void testEmptyToken() { + public void testEmptyToken() throws IOException { Jwt jwt = new ClientCapability.Builder(ACCOUNT_SID, SECRET).build(); - Claims claims = - Jwts.parserBuilder() - .setSigningKey(SECRET.getBytes()).build() - .parseClaimsJws(jwt.toJwt()) - .getBody(); + Claims claims = getClaims(jwt); Assert.assertEquals(ACCOUNT_SID, claims.getIssuer()); Assert.assertTrue(claims.getExpiration().getTime() > new Date().getTime()); } @Test - public void testToken() { + public void testToken() throws IOException { List scopes = Arrays.asList( new IncomingClientScope("incomingClient"), new EventStreamScope.Builder().build(), @@ -41,11 +63,7 @@ public void testToken() { ); Jwt jwt = new ClientCapability.Builder(ACCOUNT_SID, SECRET).scopes(scopes).build(); - Claims claims = - Jwts.parser() - .setSigningKey(SECRET.getBytes()) - .parseClaimsJws(jwt.toJwt()) - .getBody(); + Claims claims = getClaims(jwt); Assert.assertEquals(ACCOUNT_SID, claims.getIssuer()); Assert.assertTrue(claims.getExpiration().getTime() > new Date().getTime()); diff --git a/src/test/java/com/twilio/jwt/taskrouter/TaskRouterCapabilityTest.java b/src/test/java/com/twilio/jwt/taskrouter/TaskRouterCapabilityTest.java index f084174841..40498b57cc 100644 --- a/src/test/java/com/twilio/jwt/taskrouter/TaskRouterCapabilityTest.java +++ b/src/test/java/com/twilio/jwt/taskrouter/TaskRouterCapabilityTest.java @@ -1,11 +1,17 @@ package com.twilio.jwt.taskrouter; +import io.jsonwebtoken.impl.DefaultClaims; +import io.jsonwebtoken.security.Keys; +import java.io.IOException; +import java.security.NoSuchAlgorithmException; import java.util.Arrays; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; +import javax.crypto.KeyGenerator; +import javax.crypto.SecretKey; import org.junit.Assert; import org.junit.Test; @@ -21,12 +27,34 @@ public class TaskRouterCapabilityTest { private static final String ACCOUNT_SID = "AC123"; - private static final String AUTH_TOKEN = "secretsecretsecretsecretsecret00"; + private static byte[] AUTH_TOKEN ; private static final String WORKSPACE_SID = "WS123"; private static final String WORKER_SID = "WK123"; + static { + KeyGenerator keyGen = null; + try { + keyGen = KeyGenerator.getInstance("HmacSHA256"); + keyGen.init(2048); // Use 2048 bits for stronger security + SecretKey pair = keyGen.generateKey(); + AUTH_TOKEN = pair.getEncoded(); + } catch (NoSuchAlgorithmException e) { + throw new RuntimeException(e); + } + } + + + public Claims getClaims(Jwt token) throws IOException { + io.jsonwebtoken.Jwt claims = Jwts.parser() + .verifyWith(Keys.hmacShaKeyFor(AUTH_TOKEN)) + .build() + .parse(token.toJwt()); + + return (DefaultClaims)claims.getPayload(); + } + @Test - public void testToken() { + public void testToken() throws IOException { List policies = Arrays.asList( new Policy.Builder().url(UrlUtils.workspaces()).build() ); @@ -34,11 +62,7 @@ public void testToken() { new TaskRouterCapability.Builder(ACCOUNT_SID, AUTH_TOKEN, WORKSPACE_SID, WORKER_SID) .policies(policies) .build(); - Claims claims = - Jwts.parserBuilder() - .setSigningKey(AUTH_TOKEN.getBytes()).build() - .parseClaimsJws(jwt.toJwt()) - .getBody(); + Claims claims = getClaims(jwt); Assert.assertEquals(WORKSPACE_SID, claims.get("workspace_sid")); Assert.assertEquals(WORKER_SID, claims.get("channel")); @@ -48,7 +72,7 @@ public void testToken() { } @Test - public void testWorkerToken() { + public void testWorkerToken() throws IOException { final List policies = PolicyUtils.defaultWorkerPolicies(WORKSPACE_SID, WORKER_SID); final Map activityUpdateFilter = new HashMap<>(); @@ -77,11 +101,7 @@ public void testWorkerToken() { new TaskRouterCapability.Builder(ACCOUNT_SID, AUTH_TOKEN, WORKSPACE_SID, WORKER_SID) .policies(policies) .build(); - final Claims claims = - Jwts.parserBuilder() - .setSigningKey(AUTH_TOKEN.getBytes()).build() - .parseClaimsJws(jwt.toJwt()) - .getBody(); + final Claims claims = getClaims(jwt); Assert.assertEquals(WORKSPACE_SID, claims.get("workspace_sid")); Assert.assertEquals(WORKER_SID, claims.get("channel")); diff --git a/src/test/java/com/twilio/jwt/validation/ValidationTokenTest.java b/src/test/java/com/twilio/jwt/validation/ValidationTokenTest.java index a1dc059534..fc312b256d 100644 --- a/src/test/java/com/twilio/jwt/validation/ValidationTokenTest.java +++ b/src/test/java/com/twilio/jwt/validation/ValidationTokenTest.java @@ -1,11 +1,13 @@ package com.twilio.jwt.validation; +import com.fasterxml.jackson.databind.ObjectMapper; import com.twilio.http.ValidationInterceptor; import com.twilio.jwt.Jwt; import io.jsonwebtoken.Claims; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; import io.jsonwebtoken.security.InvalidKeyException; +import io.jsonwebtoken.security.Keys; import org.apache.http.*; import org.apache.http.client.protocol.HttpClientContext; import org.apache.http.message.BasicHeader; @@ -76,8 +78,18 @@ public void setup() throws Exception { publicKey = pair.getPublic(); } + private Claims getClaimFromJwtToken(Jwt token) throws IOException { + io.jsonwebtoken.Jwt claims = Jwts.parser() + .verifyWith(publicKey) // Claims are extracted using public key + .build() + .parse(token.toJwt()); + ObjectMapper objectMapper = new ObjectMapper(); + Map map = (Map)objectMapper.readValue((byte[])claims.getPayload(), Map.class); + return Jwts.claims().add(map).build(); + } + @Test - public void testTokenBuilder() { + public void testTokenBuilder() throws IOException { Jwt jwt = new ValidationToken.Builder(ACCOUNT_SID, CREDENTIAL_SID, SIGNING_KEY_SID, privateKey) .method("GET") .uri("/Messages") @@ -87,11 +99,7 @@ public void testTokenBuilder() { .requestBody("foobar") .build(); - Claims claims = - Jwts.parserBuilder() - .setSigningKey(privateKey).build() - .parseClaimsJws(jwt.toJwt()) - .getBody(); + Claims claims = getClaimFromJwtToken(jwt); this.validateToken(claims); Assert.assertEquals("authorization;host", claims.get("hrh")); @@ -99,7 +107,7 @@ public void testTokenBuilder() { } @Test - public void testTokenValidAlgorithms() { + public void testTokenValidAlgorithms() throws IOException { List validAlgorithms = Arrays.asList(RS256, PS256); for (SignatureAlgorithm alg : validAlgorithms) { Jwt jwt = new ValidationToken.Builder(ACCOUNT_SID, CREDENTIAL_SID, SIGNING_KEY_SID, privateKey) @@ -112,16 +120,13 @@ public void testTokenValidAlgorithms() { .requestBody("foobar") .build(); - Claims claims = - Jwts.parserBuilder().setSigningKey(publicKey).build() - .parseClaimsJws(jwt.toJwt()) - .getBody(); + Claims claims = getClaimFromJwtToken(jwt); validateToken(claims); } } @Test(expected = IllegalArgumentException.class) - public void testTokenInvalidAlgorithms() { + public void testTokenInvalidAlgorithms() throws IOException { List validAlgorithms = Arrays.asList(SignatureAlgorithm.HS256, SignatureAlgorithm.ES256, RS384, RS512, PS384, PS512); for (SignatureAlgorithm alg : validAlgorithms) { Jwt jwt = new ValidationToken.Builder(ACCOUNT_SID, CREDENTIAL_SID, SIGNING_KEY_SID, privateKey) @@ -135,9 +140,7 @@ public void testTokenInvalidAlgorithms() { .build(); - Jwts.parserBuilder().setSigningKey(publicKey).build() - .parseClaimsJws(jwt.toJwt()) - .getBody(); + getClaimFromJwtToken(jwt); } } @@ -150,10 +153,7 @@ public void testTokenFromHttpRequest() throws IOException { Jwt jwt = ValidationToken.fromHttpRequest(ACCOUNT_SID, CREDENTIAL_SID, SIGNING_KEY_SID, privateKey, request, SIGNED_HEADERS); - Claims claims = - Jwts.parserBuilder().setSigningKey(privateKey).build() - .parseClaimsJws(jwt.toJwt()) - .getBody(); + Claims claims = getClaimFromJwtToken(jwt); this.validateToken(claims); Assert.assertEquals("authorization;host", claims.get("hrh")); @@ -171,11 +171,7 @@ public void testTokenFromEntityRequest() throws IOException { when(requestLine.getUri()).thenReturn("/Messages"); Jwt jwt = ValidationToken.fromHttpRequest(ACCOUNT_SID, CREDENTIAL_SID, SIGNING_KEY_SID, privateKey, requestWithEntity, SIGNED_HEADERS); - Claims claims = - Jwts.parserBuilder() - .setSigningKey(privateKey).build() - .parseClaimsJws(jwt.toJwt()) - .getBody(); + Claims claims = getClaimFromJwtToken(jwt); this.validateToken(claims); Assert.assertEquals("authorization;host", claims.get("hrh")); @@ -192,11 +188,7 @@ public void testTokenFromHttpRequestWithHostPort() throws IOException { when(request.getAllHeaders()).thenReturn(headers); Jwt jwt = ValidationToken.fromHttpRequest(ACCOUNT_SID, CREDENTIAL_SID, SIGNING_KEY_SID, privateKey, request, SIGNED_HEADERS); - Claims claims = - Jwts.parserBuilder() - .setSigningKey(privateKey).build() - .parseClaimsJws(jwt.toJwt()) - .getBody(); + Claims claims = getClaimFromJwtToken(jwt); this.validateToken(claims); diff --git a/src/test/java/com/twilio/twiml/voice/AssistantTest.java b/src/test/java/com/twilio/twiml/voice/AssistantTest.java index dd25c4bf62..a1668374f9 100644 --- a/src/test/java/com/twilio/twiml/voice/AssistantTest.java +++ b/src/test/java/com/twilio/twiml/voice/AssistantTest.java @@ -48,15 +48,20 @@ public void testElementWithParams() { .dtmfDetection(true) .welcomeGreeting("welcome_greeting") .partialPrompts(true) - .interruptible(true) - .interruptByDtmf(true) - .welcomeGreetingInterruptible(true) - .debug(true) + .welcomeGreetingInterruptible("welcome_greeting_interruptible") + .interruptible("interruptible") + .preemptible(true) + .hints("hints") + .intelligenceService("intelligence_service") + .reportInputDuringAgentSpeech(true) + .elevenlabsTextNormalization("elevenlabs_text_normalization") + .interruptSensitivity("interrupt_sensitivity") + .debug("debug") .build(); Assert.assertEquals( "" + - "", + "", elem.toXml() ); } @@ -191,14 +196,19 @@ public void testXmlAttributesDeserialization() { .dtmfDetection(true) .welcomeGreeting("welcome_greeting") .partialPrompts(true) - .interruptible(true) - .interruptByDtmf(true) - .welcomeGreetingInterruptible(true) - .debug(true) + .welcomeGreetingInterruptible("welcome_greeting_interruptible") + .interruptible("interruptible") + .preemptible(true) + .hints("hints") + .intelligenceService("intelligence_service") + .reportInputDuringAgentSpeech(true) + .elevenlabsTextNormalization("elevenlabs_text_normalization") + .interruptSensitivity("interrupt_sensitivity") + .debug("debug") .build(); Assert.assertEquals( - Assistant.Builder.fromXml("").build().toXml(), + Assistant.Builder.fromXml("").build().toXml(), elem.toXml() ); } diff --git a/src/test/java/com/twilio/twiml/voice/ConnectTest.java b/src/test/java/com/twilio/twiml/voice/ConnectTest.java index a612d244c4..e8178cb0d4 100644 --- a/src/test/java/com/twilio/twiml/voice/ConnectTest.java +++ b/src/test/java/com/twilio/twiml/voice/ConnectTest.java @@ -115,10 +115,15 @@ public void testElementWithChildren() { .dtmfDetection(true) .welcomeGreeting("welcome_greeting") .partialPrompts(true) - .interruptible(true) - .interruptByDtmf(true) - .welcomeGreetingInterruptible(true) - .debug(true) + .welcomeGreetingInterruptible("welcome_greeting_interruptible") + .interruptible("interruptible") + .preemptible(true) + .hints("hints") + .intelligenceService("intelligence_service") + .reportInputDuringAgentSpeech(true) + .elevenlabsTextNormalization("elevenlabs_text_normalization") + .interruptSensitivity("interrupt_sensitivity") + .debug("debug") .build()); builder.assistant(new Assistant.Builder() @@ -134,10 +139,15 @@ public void testElementWithChildren() { .dtmfDetection(true) .welcomeGreeting("welcome_greeting") .partialPrompts(true) - .interruptible(true) - .interruptByDtmf(true) - .welcomeGreetingInterruptible(true) - .debug(true) + .welcomeGreetingInterruptible("welcome_greeting_interruptible") + .interruptible("interruptible") + .preemptible(true) + .hints("hints") + .intelligenceService("intelligence_service") + .reportInputDuringAgentSpeech(true) + .elevenlabsTextNormalization("elevenlabs_text_normalization") + .interruptSensitivity("interrupt_sensitivity") + .debug("debug") .build()); Connect elem = builder.build(); @@ -150,8 +160,8 @@ public void testElementWithChildren() { "" + "" + "" + - "" + - "" + + "" + + "" + "", elem.toXml() ); @@ -300,10 +310,15 @@ public void testXmlChildrenDeserialization() { .dtmfDetection(true) .welcomeGreeting("welcome_greeting") .partialPrompts(true) - .interruptible(true) - .interruptByDtmf(true) - .welcomeGreetingInterruptible(true) - .debug(true) + .welcomeGreetingInterruptible("welcome_greeting_interruptible") + .interruptible("interruptible") + .preemptible(true) + .hints("hints") + .intelligenceService("intelligence_service") + .reportInputDuringAgentSpeech(true) + .elevenlabsTextNormalization("elevenlabs_text_normalization") + .interruptSensitivity("interrupt_sensitivity") + .debug("debug") .build()); builder.assistant(new Assistant.Builder() @@ -319,10 +334,15 @@ public void testXmlChildrenDeserialization() { .dtmfDetection(true) .welcomeGreeting("welcome_greeting") .partialPrompts(true) - .interruptible(true) - .interruptByDtmf(true) - .welcomeGreetingInterruptible(true) - .debug(true) + .welcomeGreetingInterruptible("welcome_greeting_interruptible") + .interruptible("interruptible") + .preemptible(true) + .hints("hints") + .intelligenceService("intelligence_service") + .reportInputDuringAgentSpeech(true) + .elevenlabsTextNormalization("elevenlabs_text_normalization") + .interruptSensitivity("interrupt_sensitivity") + .debug("debug") .build()); final Connect elem = builder.build(); @@ -334,8 +354,8 @@ public void testXmlChildrenDeserialization() { "" + "" + "" + - "" + - "" + + "" + + "" + "").build().toXml(), elem.toXml() ); diff --git a/src/test/java/com/twilio/twiml/voice/ConversationRelayTest.java b/src/test/java/com/twilio/twiml/voice/ConversationRelayTest.java index 6b219cbdd2..221724597c 100644 --- a/src/test/java/com/twilio/twiml/voice/ConversationRelayTest.java +++ b/src/test/java/com/twilio/twiml/voice/ConversationRelayTest.java @@ -48,15 +48,20 @@ public void testElementWithParams() { .dtmfDetection(true) .welcomeGreeting("welcome_greeting") .partialPrompts(true) - .interruptible(true) - .interruptByDtmf(true) - .welcomeGreetingInterruptible(true) - .debug(true) + .welcomeGreetingInterruptible("welcome_greeting_interruptible") + .interruptible("interruptible") + .preemptible(true) + .hints("hints") + .intelligenceService("intelligence_service") + .reportInputDuringAgentSpeech(true) + .elevenlabsTextNormalization("elevenlabs_text_normalization") + .interruptSensitivity("interrupt_sensitivity") + .debug("debug") .build(); Assert.assertEquals( "" + - "", + "", elem.toXml() ); } @@ -191,14 +196,19 @@ public void testXmlAttributesDeserialization() { .dtmfDetection(true) .welcomeGreeting("welcome_greeting") .partialPrompts(true) - .interruptible(true) - .interruptByDtmf(true) - .welcomeGreetingInterruptible(true) - .debug(true) + .welcomeGreetingInterruptible("welcome_greeting_interruptible") + .interruptible("interruptible") + .preemptible(true) + .hints("hints") + .intelligenceService("intelligence_service") + .reportInputDuringAgentSpeech(true) + .elevenlabsTextNormalization("elevenlabs_text_normalization") + .interruptSensitivity("interrupt_sensitivity") + .debug("debug") .build(); Assert.assertEquals( - ConversationRelay.Builder.fromXml("").build().toXml(), + ConversationRelay.Builder.fromXml("").build().toXml(), elem.toXml() ); }