twilio-ruby 7.13.1 → 7.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +143 -0
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/accounts/v1/messaging_sms_pumping_protection.rb +253 -0
- data/lib/twilio-ruby/rest/accounts/v1.rb +6 -0
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +6 -0
- data/lib/twilio-ruby/rest/content/v1/content.rb +50 -2
- data/lib/twilio-ruby/rest/conversations/v2/context.rb +629 -0
- data/lib/twilio-ruby/rest/conversations/v2.rb +22 -0
- data/lib/twilio-ruby/rest/insights/v3/query.rb +17 -1
- data/lib/twilio-ruby/rest/insights/v3/query_job.rb +62 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +20 -4
- data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status_detail.rb +316 -0
- data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +19 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +15 -2
- data/lib/twilio-ruby/twiml/voice_response.rb +43 -4
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e35a1e6758dc7b64e8b8ff65fc5f644af20fc181649cdef989405c3361e014c
|
|
4
|
+
data.tar.gz: 85c4e881567e2befca44af0e3042ebf9881e3d05f4a2499a88beafd59618aa9f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fecdb53f49c6c974cea162717707611aa19802c12fb7ad03e140c0075fd578c22471022df34ae180d8d7445088b8eff1471cc32ae283b3d9f1b7a5451fb5f815
|
|
7
|
+
data.tar.gz: 7716681f2eb4851dc0a24c22f343ab8df579bae17fa1234a64a3c0f3bceedca90e556e94a3baea426df68357edfb352c47c1fbfe5d4f8d64171b65e60baea891
|
data/CHANGES.md
CHANGED
|
@@ -1,5 +1,148 @@
|
|
|
1
1
|
twilio-ruby changelog
|
|
2
2
|
=====================
|
|
3
|
+
[2026-12-03] Version 7.14.0
|
|
4
|
+
---------------------------
|
|
5
|
+
**Twiml**
|
|
6
|
+
- Add `callerDisplayName` attribute to `<Dial>` verb for SIP From display name
|
|
7
|
+
- Add support for `<Failover>` noun with `<Language>` children under `<ConversationRelay>`, and `turnMinSilence` attribute to `<ConversationRelay>`
|
|
8
|
+
|
|
9
|
+
**Accounts**
|
|
10
|
+
- Update SMS Pumping Protection API `ProtectionMode` values to `sms-pumping-protection` and `disabled`
|
|
11
|
+
- Change library and docs visibility of the SMS Pumping Protection API to public
|
|
12
|
+
|
|
13
|
+
**Api**
|
|
14
|
+
- Added optional parameter `CallerDisplayName` for create call api
|
|
15
|
+
|
|
16
|
+
**Audiences**
|
|
17
|
+
- ## 2026-11-16
|
|
18
|
+
- **Added 8 new path(s)**:
|
|
19
|
+
- `/preview/Audiences` (AdminListAudiences)
|
|
20
|
+
- `/preview/Audiences/{audienceId}` (AdminFetchAudience)
|
|
21
|
+
- `/preview/Audiences/{audienceId}/AudienceOperations` (AdminListAudienceOperations)
|
|
22
|
+
- `/preview/AudienceSnapshots` (AdminListAudienceSnapshots)
|
|
23
|
+
- `/preview/AudienceSnapshots/{audienceSnapshotId}` (AdminFetchAudienceSnapshot)
|
|
24
|
+
- `/preview/AudienceSnapshots/{audienceSnapshotId}/AudienceOperations` (AdminListAudienceSnapshotOperations)
|
|
25
|
+
- `/preview/AudienceOperations/{audienceOperationId}` (AdminFetchAudienceOperation)
|
|
26
|
+
- `/preview/AudienceOperations` (AdminListAccountAudienceOperations)
|
|
27
|
+
- ## 2026-12-02
|
|
28
|
+
- Schema elements are now identified by `id` instead of `name` + `kind`:
|
|
29
|
+
- `FetchSchema` moves from `/preview/Audiences/Schemas/{name}` to `/preview/Audiences/Schemas/{id}`
|
|
30
|
+
- `SchemaElement`, `SchemaDefinition` and `SchemaRef` drop `kind` and `name`, and gain required `id`, `displayName` and `tags`
|
|
31
|
+
- `ListSchemas` filters by `tags` (for example `tags=category:TRAIT_GROUP`) instead of `kind`
|
|
32
|
+
- Added `SchemaTags` and `SchemaTypeId`, and removed `SchemaElementKind`
|
|
33
|
+
- Removed `storeType` from `Audience`
|
|
34
|
+
- Removed `storeType` from `AudienceSnapshot.source` when the snapshot was taken directly from a store (the source is now `AudienceStoreSource`: `storeId` + `criteria`)
|
|
35
|
+
- Moved `ListSchemas` and `ValidateSchema` under the `Audiences` tag (previously `Schemas`)
|
|
36
|
+
- ## 2026-12-01
|
|
37
|
+
- Removed `stage-us1` from `supportedRealms` of the ComputedTrait operations (they stay dev-only)
|
|
38
|
+
- **Breaking changes**:
|
|
39
|
+
- `ListAudiences`: removed the `storeType` query parameter; filter by `storeId` alone
|
|
40
|
+
- `FetchAudienceSnapshot`: the response is the `AudienceSnapshot` itself, no longer wrapped in `{"audienceSnapshot": ...}` (`AudienceSnapshotDetailResult` is removed)
|
|
41
|
+
- **Content updates**:
|
|
42
|
+
- `ListAudienceSnapshotProfiles`: `profiles` has `maxItems: 1000`
|
|
43
|
+
- Path parameters (`audienceId`, `audienceSnapshotId`, `audienceOperationId`, `cohortId`, `cohortSnapshotId`, `cohortOperationId`, `computedTraitDefinitionId`, `computedTraitId`, `computedTraitOperationId`) reference their ID schema and carry its description, instead of a plain string
|
|
44
|
+
- Updated description for `ListAudiences` and the `StoreId` and `Tags` parameters (no `storeType` pairing)
|
|
45
|
+
- Shared error, pagination and count examples and descriptions use Audience wording (`/preview/Audiences` instances, `audienceNotFound`, `meta.key: audiences`, `ProfileCount` and `PartitionCount`, and `CreateAudienceSnapshot` in the daily rate-limit headers)
|
|
46
|
+
- ## 2026-11-25
|
|
47
|
+
- Added `stage-us1` to `supportedRealms` of the Audiences, AudienceSnapshots and AudienceOperations operations and the ComputedTrait operations (enable the public API in stage)
|
|
48
|
+
- **Content updates**:
|
|
49
|
+
- Added parameter(s) to `UpdateAudience`: Idempotency-Key
|
|
50
|
+
- Added parameter(s) to `DeleteAudience`: Idempotency-Key
|
|
51
|
+
- ## 2026-11-18
|
|
52
|
+
- **Added 3 new path(s)**:
|
|
53
|
+
- `/preview/Audiences/Schemas` (ListSchemaElements)
|
|
54
|
+
- `/preview/Audiences/Schemas/{name}` (FetchSchema)
|
|
55
|
+
- `/preview/Audiences/SchemaValidations` (CreateSchemaValidations)
|
|
56
|
+
- **Added 6 new path(s)**:
|
|
57
|
+
- `/preview/Audiences` (ListAudiences, CreateAudience)
|
|
58
|
+
- `/preview/Audiences/{audienceId}` (FetchAudience, UpdateAudience, DeleteAudience)
|
|
59
|
+
- `/preview/AudienceSnapshots` (ListAudienceSnapshots, CreateAudienceSnapshot)
|
|
60
|
+
- `/preview/AudienceSnapshots/{audienceSnapshotId}` (FetchAudienceSnapshot, DeleteAudienceSnapshot)
|
|
61
|
+
- `/preview/AudienceSnapshots/{audienceSnapshotId}/Profiles` (ListAudienceSnapshotProfiles)
|
|
62
|
+
- `/preview/AudienceOperations/{audienceOperationId}` (FetchAudienceOperation)
|
|
63
|
+
- ## 2026-11-16
|
|
64
|
+
- **Added 6 new path(s)**:
|
|
65
|
+
- `/preview/ComputedTraitDefinitions` (ListComputedTraitDefinitions)
|
|
66
|
+
- `/preview/ComputedTraitDefinitions/{computedTraitDefinitionId}` (FetchComputedTraitDefinition)
|
|
67
|
+
- `/preview/ComputedTraits` (ListComputedTraits, CreateComputedTrait)
|
|
68
|
+
- `/preview/ComputedTraits/{computedTraitId}` (FetchComputedTrait, UpdateComputedTrait, DeleteComputedTrait)
|
|
69
|
+
- `/preview/ComputedTraits/{computedTraitId}/Status` (FetchComputedTraitStatus)
|
|
70
|
+
- `/preview/ComputedTraitOperations/{computedTraitOperationId}` (FetchComputedTraitOperation)
|
|
71
|
+
|
|
72
|
+
**Conversations**
|
|
73
|
+
- Add Contexts endpoints (create, list, fetch, delete) under Conversations v2 (dev-us1, beta)
|
|
74
|
+
|
|
75
|
+
**Destinations**
|
|
76
|
+
- ## 2026-11-30
|
|
77
|
+
- **Added 1 new path(s)**:
|
|
78
|
+
- `/v1/ControlPlane/Subscriptions/{subscriptionId}/Mappings` (FetchSubscriptionMappings, UpdateSubscriptionMappings)
|
|
79
|
+
|
|
80
|
+
**Iam**
|
|
81
|
+
- Added the nullable added_by (the name of the user, looked up when read), added_by_sid and date_added to each account of account_access in the GET and PUT /v1/Organization/AgentsRegistration/Permissions response: who added the account to the selection and when. An account that stays in the selection keeps all three when it is saved again, and an account chosen before this was recorded has null for all three
|
|
82
|
+
- Changed the refusals of POST /v1/Organization/AgentsRegistration to status 400 with code 70001 and an error_type (AGENT_ALREADY_REGISTERED, AGENT_REGISTERED_IN_OTHER_CATEGORY, AGENT_CLIENT_URL_INVALID, AGENT_TYPE_INVALID or AGENT_TYPE_NOT_ALLOWED_FOR_URL), so Console shows the message to the admin. A URL that is already registered was a 409 with code 1308, and the 409 response is removed; the other refusals were a 400 with a generic code, so only their code changes. The messages are unchanged, and 403 and 404 are unchanged. A consumer that matches the 409 or the old code has to match 400 and error_type instead
|
|
83
|
+
- Added accountAccess (mode ALL_ACCOUNTS or SPECIFIC_ACCOUNTS, with up to 20 accountSids) to the PUT /v1/Organization/AgentsRegistration/Permissions request, to limit the agents of a CIMD category to chosen accounts, and account_access (the mode and the accounts, each with its name and type) to the GET and PUT responses, and AGENT_NOT_ENABLED_FOR_ACCOUNT to the error_type of a GET /v1/Account/AuthorizedApps 401. A chosen account covers its subaccounts, so accountSids takes main accounts only (a subaccount is a 400) and a subaccount of a chosen account is not refused
|
|
84
|
+
- Added the GET /v1/Organization/AgentsRegistration/KnownClients route (dev-us1, stage-us1, prod-us1): the agents each CIMD category, MCP and CLI, knows, with each one's name, its CIMD document URL and whether the caller's organization has registered it, so a screen can offer them instead of asking an admin to paste a URL. Not paged. The caller must be an agent admin in the organization, as for the list of registrations
|
|
85
|
+
- Added the nullable is_subaccount to the account of an MCP or CLI connection in GET /v1/Account/AuthorizedApps/{consentSid}, GET /v1/Account/AuthorizedApps/list, GET /v1/Organization/AuthorizedApps/{consentSid} and GET /v1/Organization/AuthorizedApps: true for a subaccount, false for a main account, null when the account could not be read. The Organization endpoints return it once id-oauth-provider runs with the authorizer client that carries it; until then it is null
|
|
86
|
+
- Changed the 404 body of GET /v1/Account/AuthorizedApps, for an oidcLoginState whose auth flow is unknown, expired or already finished (an MCP agent and an OAuth application alike): the code is now 70001 instead of the generic not-found code, the message is "This consent request has expired or was already completed", and the body adds error_type AUTH_FLOW_NOT_FOUND. The status stays 404. A consumer that matches on the old not-found code for this response has to match 70001 or the status instead
|
|
87
|
+
- Added the MCP agent consent fields to GET /v1/Account/AuthorizedApps: agent, account, organization, sections (the offered permissions per context) and redirect, and a 401 body with redirect and client_id when the account is on the Legacy Console, has no organization, or its organization is not in the MCP private beta or has not registered or enabled the agent (code 70001 for all four; error_type says which: ACCOUNT_NOT_ON_ONE_CONSOLE, ACCOUNT_NOT_IN_ORG, AGENT_PRIVATE_BETA_DISABLED or AGENT_NOT_ENABLED_IN_ORG, and the last two also carry organization_sid and organization_friendly_name). oauth_app_sid, client_sid, consent_state and app_permissions are now nullable, since an MCP agent response does not use them
|
|
88
|
+
|
|
89
|
+
**Insights**
|
|
90
|
+
- Added `CONTAINS` and `NOT_CONTAINS` filter operators to Query and QueryJobs.
|
|
91
|
+
|
|
92
|
+
**Instrumentation**
|
|
93
|
+
- ## 2026-12-02
|
|
94
|
+
- **CreateInsightsQueryResults enabled in `stage-us1`**: `POST /v1/Insights/Query` sets its own `supportedRealms` (`dev-us1`, `stage-us1`) and enables IAM in `stage-us1`. Still behind `api.events-ingress.enabled`. The spec default stays `dev-us1`, so no other operation changes
|
|
95
|
+
- ## 2026-12-01
|
|
96
|
+
- **Control Plane and BehavioralEvents enabled in `stage-us1`**: every `/v1/ControlPlane/*` operation, CreateBehavioralEvents and its preflight set their own `supportedRealms` (`dev-us1`, `stage-us1`); the Control Plane operations also enable IAM in `stage-us1`. The spec default stays `dev-us1`, so no other operation changes
|
|
97
|
+
- ## 2026-11-18
|
|
98
|
+
- **Added CreateInsightsQueryResults** (`dev-us1`, behind `api.events-ingress.enabled`): `POST /v1/Insights/Query` queries event counts for an account's event producers with the Insights Platform's DataMart query contract over the `EventCounts` cube. Rest Proxy rewrites it to `/v1/DataMart/Query` on `events-domain`. IAM operation `POST-/v1/Insights/Query`
|
|
99
|
+
- Added the `EventStats` tag, the `BehavioralEventsQueryRequest`, `BehavioralEventsQueryResponse`, `InsightsQueryRequest`, `InsightsQueryResponse`, `QueryDefinition`, `InsightsPaginationMeta` and `InsightsErrorResponse` schemas, and the `BehavioralEventsBadRequestError` and `BehavioralEventsInternalServerError` responses. 400 and 500 return insights-api's error body (`code` is the HTTP status), declared with v0.1's optional `more_info` and `status`
|
|
100
|
+
- Results come back in one page of up to `pageSize` rows (no page token on this route); send `pageSize=1000`. `meta.pageSize` is the size requested
|
|
101
|
+
- ## 2026-11-16
|
|
102
|
+
- **CreateBehavioralEvents CORS preflight allows `Content-Encoding`** (`dev-us1`): the OPTIONS response for `/v1/EventProducers/{producerId}/BehavioralEvents` adds `Content-Encoding` to `Access-Control-Allow-Headers`, so browsers can send gzip bodies, and sets `Access-Control-Max-Age: 600` so browsers cache the preflight for 10 minutes
|
|
103
|
+
- **CreateBehavioralEvents 429s expose `Retry-After` to browsers** (`dev-us1`): `restProxyCorsHeadersOverride: false` on the POST. rest-proxy keeps CORS headers the downstream sends and adds its missing defaults (such as `Access-Control-Allow-Origin`) to every response, including 429s. The gateway's 429 sets `Access-Control-Expose-Headers: ETag, Twilio-Request-Id, Retry-After` (events-domain #229), so this only applies to 429s from the gateway's rate limiter
|
|
104
|
+
|
|
105
|
+
**Intelligence**
|
|
106
|
+
- Added admin `GET /v1/RedactionConfigurations` and `GET /v1/RedactionConfigurations/{id}` (read-only, OneAdmin)
|
|
107
|
+
- Exposed admin `GET /v1/RedactionConfigurations` and `GET /v1/RedactionConfigurations/{id}` in prod-us1
|
|
108
|
+
|
|
109
|
+
**Knowledge**
|
|
110
|
+
- ## 2026-11-18
|
|
111
|
+
- **Content updates**:
|
|
112
|
+
- `AdminCreateKnowledgeMigrationRetry`: optional `kind` (`retry` or `repair`) in the request; with `repair` the dry run returns a `RepairPlan` and the start returns a `RepairRun`; new 422 reasons `NOT_CND_PRIMARY_OR_CND_ONLY` and `NOTHING_TO_REPAIR` (real run only; a dry run with nothing to repair returns the plan with `toRepair` 0)
|
|
113
|
+
- `AdminFetchKnowledgeMigrationRetry`: returns a `RepairRun` for the handle of a repair
|
|
114
|
+
- Added schemas: RepairSkipReason, RepairCounts, RepairRecord, RepairPlanBody, RepairPlan, RepairRunRecord, RepairRun
|
|
115
|
+
- Added properties to `RetryCreate`: kind
|
|
116
|
+
|
|
117
|
+
**Lookups**
|
|
118
|
+
- Replace the `Next` query parameter and `next` response field of `GET /v2/Jobs` with the `PageToken` query parameter and `metadata` (`next_page_token`, `previous_page_token`, `page_size`) in the response **(breaking change)**
|
|
119
|
+
- Add `POST /v2/PhoneNumbers/Query` endpoint to lookup a phone number sending all the inputs in the request body
|
|
120
|
+
|
|
121
|
+
**Memory**
|
|
122
|
+
- ## 2026-11-26
|
|
123
|
+
- **Added 4 new path(s)** for Entities:
|
|
124
|
+
- `/v1/Stores/{storeId}/Entities` (ListEntities, CreateEntities)
|
|
125
|
+
- `/v1/Stores/{storeId}/Entities/Query` (CreateEntitiesQuery)
|
|
126
|
+
- `/v1/Stores/{storeId}/Entities/{entityId}` (FetchEntity, UpdateEntity, DeleteEntity)
|
|
127
|
+
- `/v1/Stores/{storeId}/Entities/{entityId}/ReferencedBy` (ListEntityReferencedBy)
|
|
128
|
+
- The endpoints are in preview, hidden from the helper libraries and gated behind the `api.sierra.enabled` beta feature.
|
|
129
|
+
|
|
130
|
+
**Segment**
|
|
131
|
+
- ## 2026-11-19
|
|
132
|
+
- Add Query Athena routes through the oneadmin-gateway DB service: `POST /v1/Segment/Db/Athena/Queries`, `POST /v1/Segment/Db/Athena/Queries/{QueryId}/Results`, `GET /v1/Segment/Db/Athena/Queries/{QueryId}/Csv`, `GET /v1/Segment/Db/Athena/Stored/ListTables`
|
|
133
|
+
- Warehouse Tool CLI parity: remove `POST /v1/Segment/WarehouseTool/Warehouses/{WarehouseId}/Schemas/DisableCollections` (use `Schemas/UpdateCollections` with `disable`)
|
|
134
|
+
- Warehouse Tool: `run_id` is optional on `GET .../Sync` and `GET .../Sync/Tasks`; `source`, `collection` and `date` are required on `GET /Objects/Get`, `/Objects/Count` and `/Objects/Changes` (`internal_id` also required on Get); `backfill_id` is required on `GET /Backfill`
|
|
135
|
+
- Warehouse Tool: `Backfill/Start` takes `notify` as a boolean and `allowed_tables` as an array of strings; document from/to vs full rules; `Feature/Enable` requires `project` when `profile_sync` is true; document `Schemas/Update` and `Schemas/UpdateCollections` enable/disable/type rules
|
|
136
|
+
|
|
137
|
+
**Serverless**
|
|
138
|
+
- Add Build Status Details endpoint
|
|
139
|
+
|
|
140
|
+
**Verify**
|
|
141
|
+
- Add `Risk.TelemetryId` optional parameter on Verification creation to request a device risk evaluation.
|
|
142
|
+
- Add `risk_response` to the Verification resource, the outcome of the device risk evaluation (`allow`, `block`, `unavailable` or `error`), recorded on Verification creation when an evaluation was requested and returned by create, fetch and update. Omitted when no evaluation was requested.
|
|
143
|
+
- Document the 403 (`60413`) returned on Verification creation when the device risk evaluation blocks it and the service enforces the result.
|
|
144
|
+
|
|
145
|
+
|
|
3
146
|
[2026-11-18] Version 7.13.1
|
|
4
147
|
---------------------------
|
|
5
148
|
**Twiml**
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
twilio-ruby (7.
|
|
4
|
+
twilio-ruby (7.14.0)
|
|
5
5
|
faraday (>= 2.0, < 3.0)
|
|
6
6
|
jwt (>= 1.5, < 4.0)
|
|
7
7
|
nokogiri (>= 1.6, < 2.0)
|
|
@@ -144,7 +144,7 @@ CHECKSUMS
|
|
|
144
144
|
rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
|
|
145
145
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
146
146
|
simplecov (1.0.3) sha256=38ef0514f16ae7562f0d0f4df02610071115103d301b6de7dacbcc000082e39b
|
|
147
|
-
twilio-ruby (7.
|
|
147
|
+
twilio-ruby (7.14.0)
|
|
148
148
|
unicode-display_width (3.2.0) sha256=0cdd96b5681a5949cdbc2c55e7b420facae74c4aaf9a9815eee1087cb1853c42
|
|
149
149
|
unicode-emoji (4.2.0) sha256=519e69150f75652e40bf736106cfbc8f0f73aa3fb6a65afe62fefa7f80b0f80f
|
|
150
150
|
uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6
|
data/README.md
CHANGED
|
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
|
|
|
39
39
|
To install using [Bundler][bundler] grab the latest stable version:
|
|
40
40
|
|
|
41
41
|
```ruby
|
|
42
|
-
gem 'twilio-ruby', '~> 7.
|
|
42
|
+
gem 'twilio-ruby', '~> 7.14.0'
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
|
46
46
|
|
|
47
47
|
```bash
|
|
48
|
-
gem install twilio-ruby -v 7.
|
|
48
|
+
gem install twilio-ruby -v 7.14.0
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
##
|
|
2
|
+
# This code was generated by
|
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
|
6
|
+
#
|
|
7
|
+
# Twilio - Accounts
|
|
8
|
+
# This is the public Twilio REST API.
|
|
9
|
+
#
|
|
10
|
+
# NOTE: This class is auto generated by OpenAPI Generator.
|
|
11
|
+
# https://openapi-generator.tech
|
|
12
|
+
# Do not edit the class manually.
|
|
13
|
+
#
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
module Twilio
|
|
17
|
+
module REST
|
|
18
|
+
class Accounts < AccountsBase
|
|
19
|
+
class V1 < Version
|
|
20
|
+
class MessagingSmsPumpingProtectionList < ListResource
|
|
21
|
+
|
|
22
|
+
##
|
|
23
|
+
# Initialize the MessagingSmsPumpingProtectionList
|
|
24
|
+
# @param [Version] version Version that contains the resource
|
|
25
|
+
# @return [MessagingSmsPumpingProtectionList] MessagingSmsPumpingProtectionList
|
|
26
|
+
def initialize(version)
|
|
27
|
+
super(version)
|
|
28
|
+
|
|
29
|
+
# Path Solution
|
|
30
|
+
@solution = { }
|
|
31
|
+
@uri = "/Messaging/SmsPumpingProtection"
|
|
32
|
+
|
|
33
|
+
end
|
|
34
|
+
##
|
|
35
|
+
# Fetch the MessagingSmsPumpingProtectionInstance
|
|
36
|
+
# @return [MessagingSmsPumpingProtectionInstance] Fetched MessagingSmsPumpingProtectionInstance
|
|
37
|
+
def fetch
|
|
38
|
+
|
|
39
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
payload = @version.fetch('GET', @uri, headers: headers)
|
|
46
|
+
MessagingSmsPumpingProtectionInstance.new(
|
|
47
|
+
@version,
|
|
48
|
+
payload,
|
|
49
|
+
)
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
##
|
|
53
|
+
# Fetch the MessagingSmsPumpingProtectionInstanceMetadata
|
|
54
|
+
# @return [MessagingSmsPumpingProtectionInstance] Fetched MessagingSmsPumpingProtectionInstance
|
|
55
|
+
def fetch_with_metadata
|
|
56
|
+
|
|
57
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
response = @version.fetch_with_metadata('GET', @uri, headers: headers)
|
|
64
|
+
messaging_sms_pumping_protection_instance = MessagingSmsPumpingProtectionInstance.new(
|
|
65
|
+
@version,
|
|
66
|
+
response.body,
|
|
67
|
+
)
|
|
68
|
+
MessagingSmsPumpingProtectionInstanceMetadata.new(
|
|
69
|
+
@version,
|
|
70
|
+
messaging_sms_pumping_protection_instance,
|
|
71
|
+
response.headers,
|
|
72
|
+
response.status_code
|
|
73
|
+
)
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
##
|
|
77
|
+
# Update the MessagingSmsPumpingProtectionInstance
|
|
78
|
+
# @param [String] protection_mode Protection mode for SMS pumping protection. Options: sms-pumping-protection, disabled.
|
|
79
|
+
# @param [String] default_protection_level Required when protection_mode is \\\"sms-pumping-protection\\\". Default SMS pumping protection level. Options: low, medium, high. Must be omitted when protection_mode is \\\"disabled\\\".
|
|
80
|
+
# @param [String] message_intent Required when protection_mode is \\\"sms-pumping-protection\\\". Message intent/purpose for SMS pumping protection. Example: otp, marketing, etc. Options: otp, notifications, fraud, security, customercare, delivery, education, events, polling, announcement, marketing, ai_classification. Must be omitted when protection_mode is \\\"disabled\\\".
|
|
81
|
+
# @param [Object] country_specific_protection_level Required when protection_mode is \\\"sms-pumping-protection\\\". JSON object mapping protection levels to country arrays. Must contain all four keys (low, medium, high, disabled) with their respective country arrays. Must be omitted when protection_mode is \\\"disabled\\\".
|
|
82
|
+
# @return [MessagingSmsPumpingProtectionInstance] Updated MessagingSmsPumpingProtectionInstance
|
|
83
|
+
def update(
|
|
84
|
+
protection_mode: nil,
|
|
85
|
+
default_protection_level: :unset,
|
|
86
|
+
message_intent: :unset,
|
|
87
|
+
country_specific_protection_level: :unset
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
data = Twilio::Values.of({
|
|
91
|
+
'ProtectionMode' => protection_mode,
|
|
92
|
+
'DefaultProtectionLevel' => default_protection_level,
|
|
93
|
+
'MessageIntent' => message_intent,
|
|
94
|
+
'CountrySpecificProtectionLevel' => Twilio.serialize_object(country_specific_protection_level),
|
|
95
|
+
})
|
|
96
|
+
|
|
97
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
payload = @version.update('POST', @uri, data: data, headers: headers)
|
|
104
|
+
MessagingSmsPumpingProtectionInstance.new(
|
|
105
|
+
@version,
|
|
106
|
+
payload,
|
|
107
|
+
)
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
##
|
|
111
|
+
# Update the MessagingSmsPumpingProtectionInstanceMetadata
|
|
112
|
+
# @param [String] protection_mode Protection mode for SMS pumping protection. Options: sms-pumping-protection, disabled.
|
|
113
|
+
# @param [String] default_protection_level Required when protection_mode is \\\"sms-pumping-protection\\\". Default SMS pumping protection level. Options: low, medium, high. Must be omitted when protection_mode is \\\"disabled\\\".
|
|
114
|
+
# @param [String] message_intent Required when protection_mode is \\\"sms-pumping-protection\\\". Message intent/purpose for SMS pumping protection. Example: otp, marketing, etc. Options: otp, notifications, fraud, security, customercare, delivery, education, events, polling, announcement, marketing, ai_classification. Must be omitted when protection_mode is \\\"disabled\\\".
|
|
115
|
+
# @param [Object] country_specific_protection_level Required when protection_mode is \\\"sms-pumping-protection\\\". JSON object mapping protection levels to country arrays. Must contain all four keys (low, medium, high, disabled) with their respective country arrays. Must be omitted when protection_mode is \\\"disabled\\\".
|
|
116
|
+
# @return [MessagingSmsPumpingProtectionInstance] Updated MessagingSmsPumpingProtectionInstance
|
|
117
|
+
def update_with_metadata(
|
|
118
|
+
protection_mode: nil,
|
|
119
|
+
default_protection_level: :unset,
|
|
120
|
+
message_intent: :unset,
|
|
121
|
+
country_specific_protection_level: :unset
|
|
122
|
+
)
|
|
123
|
+
|
|
124
|
+
data = Twilio::Values.of({
|
|
125
|
+
'ProtectionMode' => protection_mode,
|
|
126
|
+
'DefaultProtectionLevel' => default_protection_level,
|
|
127
|
+
'MessageIntent' => message_intent,
|
|
128
|
+
'CountrySpecificProtectionLevel' => Twilio.serialize_object(country_specific_protection_level),
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
response = @version.update_with_metadata('POST', @uri, data: data, headers: headers)
|
|
138
|
+
messaging_sms_pumping_protection_instance = MessagingSmsPumpingProtectionInstance.new(
|
|
139
|
+
@version,
|
|
140
|
+
response.body,
|
|
141
|
+
)
|
|
142
|
+
MessagingSmsPumpingProtectionInstanceMetadata.new(
|
|
143
|
+
@version,
|
|
144
|
+
messaging_sms_pumping_protection_instance,
|
|
145
|
+
response.headers,
|
|
146
|
+
response.status_code
|
|
147
|
+
)
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
# Provide a user friendly representation
|
|
154
|
+
def to_s
|
|
155
|
+
'#<Twilio.Accounts.V1.MessagingSmsPumpingProtectionList>'
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
class MessagingSmsPumpingProtectionPage < Page
|
|
160
|
+
##
|
|
161
|
+
# Initialize the MessagingSmsPumpingProtectionPage
|
|
162
|
+
# @param [Version] version Version that contains the resource
|
|
163
|
+
# @param [Response] response Response from the API
|
|
164
|
+
# @param [Hash] solution Path solution for the resource
|
|
165
|
+
# @return [MessagingSmsPumpingProtectionPage] MessagingSmsPumpingProtectionPage
|
|
166
|
+
def initialize(version, response, solution)
|
|
167
|
+
super(version, response)
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
# Path Solution
|
|
171
|
+
@solution = solution
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
##
|
|
175
|
+
# Build an instance of MessagingSmsPumpingProtectionInstance
|
|
176
|
+
# @param [Hash] payload Payload response from the API
|
|
177
|
+
# @return [MessagingSmsPumpingProtectionInstance] MessagingSmsPumpingProtectionInstance
|
|
178
|
+
def get_instance(payload)
|
|
179
|
+
MessagingSmsPumpingProtectionInstance.new(@version, payload)
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
##
|
|
183
|
+
# Provide a user friendly representation
|
|
184
|
+
def to_s
|
|
185
|
+
'<Twilio.Accounts.V1.MessagingSmsPumpingProtectionPage>'
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
class MessagingSmsPumpingProtectionInstance < InstanceResource
|
|
190
|
+
##
|
|
191
|
+
# Initialize the MessagingSmsPumpingProtectionInstance
|
|
192
|
+
# @param [Version] version Version that contains the resource
|
|
193
|
+
# @param [Hash] payload payload that contains response from Twilio
|
|
194
|
+
# @param [String] account_sid The SID of the
|
|
195
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this MessagingSmsPumpingProtection
|
|
196
|
+
# resource.
|
|
197
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
|
198
|
+
# @return [MessagingSmsPumpingProtectionInstance] MessagingSmsPumpingProtectionInstance
|
|
199
|
+
def initialize(version, payload )
|
|
200
|
+
super(version)
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
# Marshaled Properties
|
|
204
|
+
@properties = {
|
|
205
|
+
'protection_mode' => payload['protection_mode'],
|
|
206
|
+
'default_protection_level' => payload['default_protection_level'],
|
|
207
|
+
'message_intent' => payload['message_intent'],
|
|
208
|
+
'country_specific_protection_level' => payload['country_specific_protection_level'],
|
|
209
|
+
}
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
##
|
|
214
|
+
# @return [String] Protection mode for SMS pumping protection (sms-pumping-protection or disabled).
|
|
215
|
+
def protection_mode
|
|
216
|
+
@properties['protection_mode']
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
##
|
|
220
|
+
# @return [String] Required when protection_mode is \"sms-pumping-protection\". Default SMS pumping protection level. Options: low, medium, high. Must be omitted when protection_mode is \"disabled\".
|
|
221
|
+
def default_protection_level
|
|
222
|
+
@properties['default_protection_level']
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
##
|
|
226
|
+
# @return [String] Required when protection_mode is \"sms-pumping-protection\". Message intent/purpose for SMS pumping protection. Example: otp, marketing, etc. Options: otp, notifications, fraud, security, customercare, delivery, education, events, polling, announcement, marketing, ai_classification. Must be omitted when protection_mode is \"disabled\".
|
|
227
|
+
def message_intent
|
|
228
|
+
@properties['message_intent']
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
##
|
|
232
|
+
# @return [AccountsV1MessagingSmsPumpingProtectionCountrySpecificProtectionLevel]
|
|
233
|
+
def country_specific_protection_level
|
|
234
|
+
@properties['country_specific_protection_level']
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
##
|
|
238
|
+
# Provide a user friendly representation
|
|
239
|
+
def to_s
|
|
240
|
+
"<Twilio.Accounts.V1.MessagingSmsPumpingProtectionInstance>"
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
##
|
|
244
|
+
# Provide a detailed, user friendly representation
|
|
245
|
+
def inspect
|
|
246
|
+
"<Twilio.Accounts.V1.MessagingSmsPumpingProtectionInstance>"
|
|
247
|
+
end
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
end
|
|
@@ -27,6 +27,7 @@ module Twilio
|
|
|
27
27
|
@compliance_signals_check = nil
|
|
28
28
|
@credentials = nil
|
|
29
29
|
@messaging_geopermissions = nil
|
|
30
|
+
@messaging_sms_pumping_protection = nil
|
|
30
31
|
@safelist = nil
|
|
31
32
|
@secondary_auth_token = nil
|
|
32
33
|
end
|
|
@@ -71,6 +72,11 @@ module Twilio
|
|
|
71
72
|
@messaging_geopermissions ||= MessagingGeopermissionsList.new self
|
|
72
73
|
end
|
|
73
74
|
##
|
|
75
|
+
# @return [Twilio::REST::Accounts::V1::MessagingSmsPumpingProtectionList]
|
|
76
|
+
def messaging_sms_pumping_protection
|
|
77
|
+
@messaging_sms_pumping_protection ||= MessagingSmsPumpingProtectionList.new self
|
|
78
|
+
end
|
|
79
|
+
##
|
|
74
80
|
# @return [Twilio::REST::Accounts::V1::SafelistList]
|
|
75
81
|
def safelist
|
|
76
82
|
@safelist ||= SafelistList.new self
|
|
@@ -57,6 +57,7 @@ module Twilio
|
|
|
57
57
|
# @param [Array[String]] recording_status_callback_event The recording status events that will trigger calls to the URL specified in `recording_status_callback`. Can be: `in-progress`, `completed` and `absent`. Defaults to `completed`. Separate multiple values with a space.
|
|
58
58
|
# @param [String] trim Whether to trim any leading and trailing silence from the recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
|
|
59
59
|
# @param [String] caller_id The phone number, SIP address, or Client identifier that made this call. Phone numbers are in [E.164 format](https://wwnw.twilio.com/docs/glossary/what-e164) (e.g., +16175551212). SIP addresses are formatted as `name@company.com`.
|
|
60
|
+
# @param [String] caller_display_name The name that populates the display name in the From header. Must be between 2 and 255 characters after leading and trailing whitespace is removed, and cannot contain control characters or unpaired surrogates. An empty value is treated as not provided. Only applicable for calls to a SIP address; an invalid value returns a 400 error.
|
|
60
61
|
# @param [String] machine_detection_speech_threshold The number of milliseconds that is used as the measuring stick for the length of the speech activity, where durations lower than this value will be interpreted as a human and longer than this value as a machine. Possible Values: 1000-6000. Default: 2400.
|
|
61
62
|
# @param [String] machine_detection_speech_end_threshold The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200.
|
|
62
63
|
# @param [String] machine_detection_silence_timeout The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000.
|
|
@@ -97,6 +98,7 @@ module Twilio
|
|
|
97
98
|
recording_status_callback_event: :unset,
|
|
98
99
|
trim: :unset,
|
|
99
100
|
caller_id: :unset,
|
|
101
|
+
caller_display_name: :unset,
|
|
100
102
|
machine_detection_speech_threshold: :unset,
|
|
101
103
|
machine_detection_speech_end_threshold: :unset,
|
|
102
104
|
machine_detection_silence_timeout: :unset,
|
|
@@ -138,6 +140,7 @@ module Twilio
|
|
|
138
140
|
'RecordingStatusCallbackEvent' => Twilio.serialize_list(recording_status_callback_event) { |e| e },
|
|
139
141
|
'Trim' => trim,
|
|
140
142
|
'CallerId' => caller_id,
|
|
143
|
+
'CallerDisplayName' => caller_display_name,
|
|
141
144
|
'MachineDetectionSpeechThreshold' => machine_detection_speech_threshold,
|
|
142
145
|
'MachineDetectionSpeechEndThreshold' => machine_detection_speech_end_threshold,
|
|
143
146
|
'MachineDetectionSilenceTimeout' => machine_detection_silence_timeout,
|
|
@@ -194,6 +197,7 @@ module Twilio
|
|
|
194
197
|
# @param [Array[String]] recording_status_callback_event The recording status events that will trigger calls to the URL specified in `recording_status_callback`. Can be: `in-progress`, `completed` and `absent`. Defaults to `completed`. Separate multiple values with a space.
|
|
195
198
|
# @param [String] trim Whether to trim any leading and trailing silence from the recording. Can be: `trim-silence` or `do-not-trim` and the default is `trim-silence`.
|
|
196
199
|
# @param [String] caller_id The phone number, SIP address, or Client identifier that made this call. Phone numbers are in [E.164 format](https://wwnw.twilio.com/docs/glossary/what-e164) (e.g., +16175551212). SIP addresses are formatted as `name@company.com`.
|
|
200
|
+
# @param [String] caller_display_name The name that populates the display name in the From header. Must be between 2 and 255 characters after leading and trailing whitespace is removed, and cannot contain control characters or unpaired surrogates. An empty value is treated as not provided. Only applicable for calls to a SIP address; an invalid value returns a 400 error.
|
|
197
201
|
# @param [String] machine_detection_speech_threshold The number of milliseconds that is used as the measuring stick for the length of the speech activity, where durations lower than this value will be interpreted as a human and longer than this value as a machine. Possible Values: 1000-6000. Default: 2400.
|
|
198
202
|
# @param [String] machine_detection_speech_end_threshold The number of milliseconds of silence after speech activity at which point the speech activity is considered complete. Possible Values: 500-5000. Default: 1200.
|
|
199
203
|
# @param [String] machine_detection_silence_timeout The number of milliseconds of initial silence after which an `unknown` AnsweredBy result will be returned. Possible Values: 2000-10000. Default: 5000.
|
|
@@ -234,6 +238,7 @@ module Twilio
|
|
|
234
238
|
recording_status_callback_event: :unset,
|
|
235
239
|
trim: :unset,
|
|
236
240
|
caller_id: :unset,
|
|
241
|
+
caller_display_name: :unset,
|
|
237
242
|
machine_detection_speech_threshold: :unset,
|
|
238
243
|
machine_detection_speech_end_threshold: :unset,
|
|
239
244
|
machine_detection_silence_timeout: :unset,
|
|
@@ -275,6 +280,7 @@ module Twilio
|
|
|
275
280
|
'RecordingStatusCallbackEvent' => Twilio.serialize_list(recording_status_callback_event) { |e| e },
|
|
276
281
|
'Trim' => trim,
|
|
277
282
|
'CallerId' => caller_id,
|
|
283
|
+
'CallerDisplayName' => caller_display_name,
|
|
278
284
|
'MachineDetectionSpeechThreshold' => machine_detection_speech_threshold,
|
|
279
285
|
'MachineDetectionSpeechEndThreshold' => machine_detection_speech_end_threshold,
|
|
280
286
|
'MachineDetectionSilenceTimeout' => machine_detection_silence_timeout,
|
|
@@ -72,7 +72,15 @@ module Twilio
|
|
|
72
72
|
# @param [code]: [String]
|
|
73
73
|
# @param [webview_size]: [WebviewSizeType]
|
|
74
74
|
# @param [digitable_line]: [String]
|
|
75
|
-
|
|
75
|
+
# @param [latitude]: [String]
|
|
76
|
+
# @param [longitude]: [String]
|
|
77
|
+
# @param [label]: [String]
|
|
78
|
+
# @param [start_time]: [String] RFC 3339 timestamp, for CALENDAR_EVENT (RCS only).
|
|
79
|
+
# @param [end_time]: [String] RFC 3339 timestamp, for CALENDAR_EVENT (RCS only).
|
|
80
|
+
# @param [event_title]: [String]
|
|
81
|
+
# @param [event_description]: [String]
|
|
82
|
+
# @param [fallback_url]: [String]
|
|
83
|
+
attr_accessor :type, :title, :url, :phone, :id, :code, :webview_size, :digitable_line, :latitude, :longitude, :label, :start_time, :end_time, :event_title, :event_description, :fallback_url
|
|
76
84
|
def initialize(payload)
|
|
77
85
|
@type = payload["type"]
|
|
78
86
|
@title = payload["title"]
|
|
@@ -82,6 +90,14 @@ module Twilio
|
|
|
82
90
|
@code = payload["code"]
|
|
83
91
|
@webview_size = payload["webview_size"]
|
|
84
92
|
@digitable_line = payload["digitable_line"]
|
|
93
|
+
@latitude = payload["latitude"]
|
|
94
|
+
@longitude = payload["longitude"]
|
|
95
|
+
@label = payload["label"]
|
|
96
|
+
@start_time = payload["start_time"]
|
|
97
|
+
@end_time = payload["end_time"]
|
|
98
|
+
@event_title = payload["event_title"]
|
|
99
|
+
@event_description = payload["event_description"]
|
|
100
|
+
@fallback_url = payload["fallback_url"]
|
|
85
101
|
end
|
|
86
102
|
def to_json(options = {})
|
|
87
103
|
{
|
|
@@ -93,6 +109,14 @@ module Twilio
|
|
|
93
109
|
"code": @code,
|
|
94
110
|
"webview_size": @webview_size,
|
|
95
111
|
"digitable_line": @digitable_line,
|
|
112
|
+
"latitude": @latitude,
|
|
113
|
+
"longitude": @longitude,
|
|
114
|
+
"label": @label,
|
|
115
|
+
"startTime": @start_time,
|
|
116
|
+
"endTime": @end_time,
|
|
117
|
+
"eventTitle": @event_title,
|
|
118
|
+
"eventDescription": @event_description,
|
|
119
|
+
"fallbackURL": @fallback_url,
|
|
96
120
|
}.to_json(options)
|
|
97
121
|
end
|
|
98
122
|
end
|
|
@@ -697,7 +721,15 @@ module Twilio
|
|
|
697
721
|
# @param [code]: [String]
|
|
698
722
|
# @param [webview_size]: [WebviewSizeType]
|
|
699
723
|
# @param [digitable_line]: [String]
|
|
700
|
-
|
|
724
|
+
# @param [latitude]: [String]
|
|
725
|
+
# @param [longitude]: [String]
|
|
726
|
+
# @param [label]: [String]
|
|
727
|
+
# @param [start_time]: [String] RFC 3339 timestamp, for CALENDAR_EVENT (RCS only).
|
|
728
|
+
# @param [end_time]: [String] RFC 3339 timestamp, for CALENDAR_EVENT (RCS only).
|
|
729
|
+
# @param [event_title]: [String]
|
|
730
|
+
# @param [event_description]: [String]
|
|
731
|
+
# @param [fallback_url]: [String]
|
|
732
|
+
attr_accessor :type, :title, :url, :phone, :id, :code, :webview_size, :digitable_line, :latitude, :longitude, :label, :start_time, :end_time, :event_title, :event_description, :fallback_url
|
|
701
733
|
def initialize(payload)
|
|
702
734
|
@type = payload["type"]
|
|
703
735
|
@title = payload["title"]
|
|
@@ -707,6 +739,14 @@ module Twilio
|
|
|
707
739
|
@code = payload["code"]
|
|
708
740
|
@webview_size = payload["webview_size"]
|
|
709
741
|
@digitable_line = payload["digitable_line"]
|
|
742
|
+
@latitude = payload["latitude"]
|
|
743
|
+
@longitude = payload["longitude"]
|
|
744
|
+
@label = payload["label"]
|
|
745
|
+
@start_time = payload["start_time"]
|
|
746
|
+
@end_time = payload["end_time"]
|
|
747
|
+
@event_title = payload["event_title"]
|
|
748
|
+
@event_description = payload["event_description"]
|
|
749
|
+
@fallback_url = payload["fallback_url"]
|
|
710
750
|
end
|
|
711
751
|
def to_json(options = {})
|
|
712
752
|
{
|
|
@@ -718,6 +758,14 @@ module Twilio
|
|
|
718
758
|
"code": @code,
|
|
719
759
|
"webview_size": @webview_size,
|
|
720
760
|
"digitable_line": @digitable_line,
|
|
761
|
+
"latitude": @latitude,
|
|
762
|
+
"longitude": @longitude,
|
|
763
|
+
"label": @label,
|
|
764
|
+
"startTime": @start_time,
|
|
765
|
+
"endTime": @end_time,
|
|
766
|
+
"eventTitle": @event_title,
|
|
767
|
+
"eventDescription": @event_description,
|
|
768
|
+
"fallbackURL": @fallback_url,
|
|
721
769
|
}.to_json(options)
|
|
722
770
|
end
|
|
723
771
|
end
|