Skip to content

Commit ba0784b

Browse files
authored
chore: generated php (#937)
* [Librarian] Regenerated @ f443c9dfa233e41d0e61c9ed6ca2b162467a08b5 89762bc866ded0b2ca596431610a8ad4bc2b215c
1 parent 1eba2d2 commit ba0784b

302 files changed

Lines changed: 8210 additions & 7168 deletions

File tree

Some content is hidden

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

.github/workflows/test-and-deploy.yml

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
tags:
66
- '[0-9]+.[0-9]+.[0-9]+'
7+
- '[0-9]+.[0-9]+.[0-9]+-*'
78
workflow_dispatch:
89

910
permissions:
@@ -31,7 +32,7 @@ jobs:
3132
strategy:
3233
fail-fast: false
3334
matrix:
34-
php: ["8.0", "8.1", "8.2", "8.3", "8.4"]
35+
php: ["8.2", "8.3", "8.4"]
3536
steps:
3637
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3738
with:
@@ -69,9 +70,41 @@ jobs:
6970
- name: Run tests
7071
run: make test
7172

73+
validate-release:
74+
name: Validate Release
75+
needs: [verify]
76+
runs-on: ubuntu-x64
77+
if: success() && github.ref_type == 'tag' && github.repository_owner == 'twilio'
78+
steps:
79+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
80+
81+
- uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2
82+
with:
83+
php-version: "8.3"
84+
85+
- name: Validate tag matches VersionInfo
86+
run: |
87+
TAG="${GITHUB_REF#refs/tags/}"
88+
PKG_VERSION=$(php -r "require 'src/Twilio/VersionInfo.php'; echo Twilio\VersionInfo::string();")
89+
echo "Tag: $TAG"
90+
echo "Package version: $PKG_VERSION"
91+
if [ "$TAG" != "$PKG_VERSION" ]; then
92+
echo "::error::Tag $TAG does not match VersionInfo.php version $PKG_VERSION"
93+
exit 1
94+
fi
95+
echo "TAG=$TAG" >> "$GITHUB_ENV"
96+
97+
- name: Verify release type
98+
run: |
99+
TAG="${GITHUB_REF#refs/tags/}"
100+
case "$TAG" in
101+
*-*) echo "::notice::Release type: PRE-RELEASE ($TAG)" ;;
102+
*) echo "::notice::Release type: STABLE ($TAG)" ;;
103+
esac
104+
72105
publish:
73106
name: Publish to Packagist
74-
needs: [verify]
107+
needs: [validate-release]
75108
runs-on: ubuntu-x64
76109
if: success() && github.repository_owner == 'twilio'
77110
environment: production
@@ -115,7 +148,7 @@ jobs:
115148
subject-path: release.zip
116149

117150
- name: Create GitHub Release
118-
uses: twilio/sdk-actions/github-release@23b656b843d2a3461cf38e4fd466c07a822d5fc0 # v1
151+
uses: twilio/sdk-actions/github-release@f293ed2cd776fd9476360826a78b7b33e692b261 # main (pending v1 tag update)
119152
with:
120153
changelog-file: CHANGES.md
121154

CHANGES.md

Lines changed: 232 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,238 @@
11
twilio-php Changelog
22
====================
33

4+
[2026-08-14] Version 8.12.0
5+
---------------------------
6+
**Library - Chore**
7+
- [PR #934](https://github.com/twilio/twilio-php/pull/934): Oss publish pipeline. Thanks to [@sbansla](https://github.com/sbansla)!
8+
9+
**Library - Fix**
10+
- [PR #928](https://github.com/twilio/twilio-php/pull/928): lock the deps. Thanks to [@shrutiburman](https://github.com/shrutiburman)!
11+
- [PR #927](https://github.com/twilio/twilio-php/pull/927): use mocked tests instead of actual network calls. Thanks to [@shrutiburman](https://github.com/shrutiburman)!
12+
13+
**Twiml**
14+
- Remove `<Assistant>` noun from `<Connect>` verb as part of the AI Assistants deprecation **(breaking change)**
15+
- Add `passports` attribute to `<Dial>` verb for SHAKEN/STIR passport passthrough
16+
17+
**Accounts**
18+
- Add `SuppressEmailNotification` parameter to the Secondary Auth Token and Auth Token promotion endpoints. Set it to `true` to suppress the email notification sent to account owners and administrators. Defaults to `false`, preserving existing behavior.
19+
- Add SMS Pumping Protection GET and POST API
20+
21+
**Ai**
22+
- Removing ai workbench apis
23+
24+
**Api**
25+
- Add missing `uri` property to the `twiml_session` resource
26+
27+
**Data-ingress**
28+
- ## 2026-08-07
29+
- **Removed 1 API path**:
30+
- `/v1/DataQuery` (Realtime DataQuery)
31+
- ## 2026-07-07
32+
- **Added 1 new API path (data plane)**:
33+
- `/v1/DataQuery` (Realtime DataQuery)
34+
- ## 2026-06-17
35+
- **Content updates**:
36+
- Added properties to `OAuthJWTBearerCredentials`: privateKey, privateKeyPassphrase
37+
- ## 2026-06-12
38+
- **Added 16 new path(s)**:
39+
- `/v1/DataSyncs/{syncId}` (FetchDataSync)
40+
- `/v1/CloudAppSources/{sourceId}/Objects` (ListCloudAppObjects)
41+
- `/v1/WarehouseSources/{sourceId}/Preview` (CreateWarehousePreview)
42+
- `/v1/WarehouseSources/{sourceId}/Preview/{operationId}` (FetchWarehousePreview)
43+
- `/v1/DataSample/{operationId}` (FetchDataSample)
44+
- `/v1/ControlPlane/CloudAppSources/{sourceId}` (FetchCloudAppSource, PatchCloudAppSource, DeleteCloudAppSource)
45+
- `/v1/ControlPlane/CloudAppSources/{sourceId}/Datasets` (ListCloudAppDatasets, CreateCloudAppDataset)
46+
- `/v1/ControlPlane/CloudAppSources/{sourceId}/Datasets/{datasetId}` (FetchCloudAppDataset, PatchCloudAppDataset, DeleteCloudAppDataset)
47+
- `/v1/ControlPlane/WarehouseSources/{sourceId}` (FetchWarehouseSource, PatchWarehouseSource, DeleteWarehouseSource)
48+
- `/v1/ControlPlane/WarehouseSources/{sourceId}/Datasets` (ListWarehouseDatasets, CreateWarehouseDataset)
49+
- ...and 6 more paths
50+
- **Removed 16 path(s)**:
51+
- `/v1/DataSyncs/{SyncId}` (FetchDataSync)
52+
- `/v1/CloudAppSources/{SourceId}/Objects` (ListCloudAppObjects)
53+
- `/v1/WarehouseSources/{SourceId}/Preview` (CreateWarehousePreview)
54+
- `/v1/WarehouseSources/{SourceId}/Preview/{OperationId}` (FetchWarehousePreview)
55+
- `/v1/DataSample/{OperationId}` (FetchDataSample)
56+
- `/v1/ControlPlane/CloudAppSources/{SourceId}` (FetchCloudAppSource, PatchCloudAppSource, DeleteCloudAppSource)
57+
- `/v1/ControlPlane/CloudAppSources/{SourceId}/Datasets` (ListCloudAppDatasets, CreateCloudAppDataset)
58+
- `/v1/ControlPlane/CloudAppSources/{SourceId}/Datasets/{DatasetId}` (FetchCloudAppDataset, PatchCloudAppDataset, DeleteCloudAppDataset)
59+
- `/v1/ControlPlane/WarehouseSources/{SourceId}` (FetchWarehouseSource, PatchWarehouseSource, DeleteWarehouseSource)
60+
- `/v1/ControlPlane/WarehouseSources/{SourceId}/Datasets` (ListWarehouseDatasets, CreateWarehouseDataset)
61+
- ...and 6 more paths
62+
- ## 2026-06-11
63+
- **Added 3 new Signal API path(s) for public exposure (data plane)**:
64+
- `/v1/EventSources/{sourceId}/Signals` (ListSignals)
65+
- `/v1/EventSources/{sourceId}/Signals/{signalKey}` (GetSignalBySignalKey)
66+
- `/v1/EventSources/{sourceId}/SignalStats` (ListSignalStats)
67+
- **Added new Signal API schemas**:
68+
- Signal, SignalListResponse, HourlyStats, SignalStatsResponse
69+
- ## 2026-05-26
70+
- **Added 12 new path(s) for public exposure**:
71+
- `/v1/ControlPlane/EventSources` (CreateEventSource, ListEventSources)
72+
- `/v1/ControlPlane/EventSources/{SourceId}` (FetchEventSource, PatchEventSource, DeleteEventSource)
73+
- `/v1/ControlPlane/EventSources/{SourceId}/WriteKeys` (CreateWriteKey, ListWriteKeys)
74+
- `/v1/ControlPlane/EventSources/{SourceId}/WriteKeys/{WriteKey}` (DeleteWriteKey)
75+
- `/v1/ControlPlane/EventSources/{SourceId}/Datasets` (CreateEventSourceDataset, ListEventSourceDatasets)
76+
- `/v1/ControlPlane/EventSources/{SourceId}/Datasets/{DatasetId}` (FetchEventSourceDataset, PatchEventSourceDataset, DeleteEventSourceDataset)
77+
- `/v1/ControlPlane/EventSources/{SourceId}/EventSchemas` (CreateEventSchema, ListEventSchemas)
78+
- `/v1/ControlPlane/EventSources/{SourceId}/EventSchemas/{SchemaId}` (FetchEventSchema, PatchEventSchema, DeleteEventSchema)
79+
- `/v1/ControlPlane/AutoInstrumentationRule` (CreateAutoInstrumentationRule, ListAutoInstrumentationRules)
80+
- `/v1/ControlPlane/AutoInstrumentationRule/{AutoInstrumentationRuleId}` (FetchAutoInstrumentationRule, PatchAutoInstrumentationRule, DeleteAutoInstrumentationRule)
81+
- `/v1/ControlPlane/AutoInstrumentationRule/{AutoInstrumentationRuleId}/Versions` (ListAutoInstrumentationRuleVersions)
82+
- `/v1/ControlPlane/AutoInstrumentationRule/{AutoInstrumentationRuleId}/Versions/{Version}` (FetchAutoInstrumentationRuleVersion)
83+
- **Added new schemas**:
84+
- EventSource, EventSourceCreate, EventSourceUpdate
85+
- WriteKey, WriteKeyCreate
86+
- EventSourceDataset, EventSourceDatasetCreate, EventSourceDatasetUpdate
87+
- EventSchema, EventSchemaCreate, EventSchemaUpdate, EventSchemaField, EventSchemaProperty
88+
- AutoInstrumentationRule, AutoInstrumentationRuleCreate, AutoInstrumentationRuleUpdate
89+
- AutoInstrumentationRuleVersion, AutoInstrumentationRuleVersionsResponse
90+
- ## 2026-06-12
91+
- **Added 16 new path(s)**:
92+
- `/v1/DataSyncs/{syncId}` (FetchDataSync)
93+
- `/v1/CloudAppSources/{sourceId}/Objects` (ListCloudAppObjects)
94+
- `/v1/WarehouseSources/{sourceId}/Preview` (CreateWarehousePreview)
95+
- `/v1/WarehouseSources/{sourceId}/Preview/{operationId}` (FetchWarehousePreview)
96+
- `/v1/DataSample/{operationId}` (FetchDataSample)
97+
- `/v1/ControlPlane/CloudAppSources/{sourceId}` (FetchCloudAppSource, PatchCloudAppSource, DeleteCloudAppSource)
98+
- `/v1/ControlPlane/CloudAppSources/{sourceId}/Datasets` (ListCloudAppDatasets, CreateCloudAppDataset)
99+
- `/v1/ControlPlane/CloudAppSources/{sourceId}/Datasets/{datasetId}` (FetchCloudAppDataset, PatchCloudAppDataset, DeleteCloudAppDataset)
100+
- `/v1/ControlPlane/WarehouseSources/{sourceId}` (FetchWarehouseSource, PatchWarehouseSource, DeleteWarehouseSource)
101+
- `/v1/ControlPlane/WarehouseSources/{sourceId}/Datasets` (ListWarehouseDatasets, CreateWarehouseDataset)
102+
- ...and 6 more paths
103+
- **Removed 16 path(s)**:
104+
- `/v1/DataSyncs/{SyncId}` (FetchDataSync)
105+
- `/v1/CloudAppSources/{SourceId}/Objects` (ListCloudAppObjects)
106+
- `/v1/WarehouseSources/{SourceId}/Preview` (CreateWarehousePreview)
107+
- `/v1/WarehouseSources/{SourceId}/Preview/{OperationId}` (FetchWarehousePreview)
108+
- `/v1/DataSample/{OperationId}` (FetchDataSample)
109+
- `/v1/ControlPlane/CloudAppSources/{SourceId}` (FetchCloudAppSource, PatchCloudAppSource, DeleteCloudAppSource)
110+
- `/v1/ControlPlane/CloudAppSources/{SourceId}/Datasets` (ListCloudAppDatasets, CreateCloudAppDataset)
111+
- `/v1/ControlPlane/CloudAppSources/{SourceId}/Datasets/{DatasetId}` (FetchCloudAppDataset, PatchCloudAppDataset, DeleteCloudAppDataset)
112+
- `/v1/ControlPlane/WarehouseSources/{SourceId}` (FetchWarehouseSource, PatchWarehouseSource, DeleteWarehouseSource)
113+
- `/v1/ControlPlane/WarehouseSources/{SourceId}/Datasets` (ListWarehouseDatasets, CreateWarehouseDataset)
114+
- ...and 6 more paths
115+
116+
**Deletions**
117+
- # API Changes
118+
- ## 2026-06-23
119+
- Initial public Rest Proxy registration for the User Data Deletions API
120+
- (`POST` / `GET /v1/UserDataDeletions`, `GET /v1/UserDataDeletions/{deletionId}`,
121+
- `GET /v1/Operations/{operationId}`).
122+
- A single request may mix identifier formats: E.164 phone numbers, email
123+
- addresses, and profile IDs.
124+
125+
**Destinations**
126+
- # API Changes
127+
- ## 2026-08-07
128+
- **Content updates**:
129+
- Updated summary for `ListDestinationSupportedEventTypes`
130+
- ## 2026-08-07
131+
- **Content updates**:
132+
- Updated summary for `ListDestinationSupportedEventTypes`
133+
- ## 2026-08-07
134+
- **Added 3 new path(s)**:
135+
- `/v1/Catalog/DestinationSupportedEventTypes` (ListDestinationSupportedEventTypes)
136+
- `/v1/ControlPlane/Subscriptions/{subscriptionId}/EventTypes` (ListSubscribedEvents, CreateSubscribedEvent)
137+
- `/v1/ControlPlane/Subscriptions/{subscriptionId}/EventTypes/{eventType}` (GetSubscribedEvent, UpdateSubscribedEvent, DeleteSubscribedEvent)
138+
- **Removed 3 path(s)**:
139+
- `/v1/ControlPlane/Subscriptions/{subscriptionId}/SubscribedEvents` (ListSubscribedEvents, CreateSubscribedEvent)
140+
- `/v1/ControlPlane/Subscriptions/{subscriptionId}/SubscribedEvents/{eventType}` (GetSubscribedEvent, UpdateSubscribedEvent, DeleteSubscribedEvent)
141+
- `/v1/Catalog/DestinationEventTypes` (ListDestinationEventTypes)
142+
- ## 2026-08-04
143+
- Minor updates (formatting, metadata)
144+
- ## 2026-08-04
145+
- Minor updates (formatting, metadata)
146+
- ## 2026-08-04
147+
- Minor updates (formatting, metadata)
148+
- ## 2026-08-04
149+
- Minor updates (formatting, metadata)
150+
- ## 2026-08-04
151+
- **Content updates**:
152+
- Added properties to `SubscriptionResponse`: eventTypes
153+
- ## 2026-08-03
154+
- **Content updates**:
155+
- Added properties to `DestinationType`: documentationUrl, maturity, tier, categories
156+
- ## 2026-07-27
157+
- Minor updates (formatting, metadata)
158+
- ## 2026-07-23
159+
- **Content updates**:
160+
- `meta` is now a required property in the response of `ListDestinations`, `ListSubscriptions`, and `ListSubscribedEvents`
161+
- `CreateSubscribedEvent` request body schema consolidated onto `SubscribedEventInput` (previously `SubscribedEventCreate`, a duplicate schema)
162+
- Added response examples for `ListDestinations`, `ListSubscriptions`, and `ListSubscribedEvents`
163+
- ## 2026-07-23
164+
- **Added 1 new path(s)**:
165+
- `/v1/Catalog/DestinationEventTypes` (ListDestinationEventTypes)
166+
- ## 2026-07-22
167+
- **Content updates**:
168+
- Added parameter(s) to `ListDestinations`: namePrefix
169+
- Updated description for `UpdateSubscription`
170+
- Added properties to `SubscriptionUpdate`: eventTypes
171+
- ## 2026-07-16
172+
- Initial release with 9 paths and 18 operations
173+
174+
**Events**
175+
- Add `stage-ie1` realm support for EventTypes and Schemas endpoints (datataps-catalog)
176+
177+
**Memory**
178+
- ## 2026-08-10
179+
- Removed `Events` endpoints from the spec, as they were hidden, never implemented, and are not part of the public API
180+
- ## 2026-08-07
181+
- **New functionality**:
182+
- Added `pageSize`, `pageToken`, and `orderBy` query parameters to `ListProfileImportsV2`, plus a `meta` object in its response, to support pagination.
183+
- **Content updates**:
184+
- Updated the `ListProfileImportsV2` description to document the new pagination behavior.
185+
- Corrected the example presigned upload URL on `CreateProfilesImportV2` to match the real S3 bucket naming convention.
186+
- Corrected the `meta.key` example on `ListProfileTraits`'s response (was `profiles`, now `traits`) to accurately describe which response field it points to.
187+
- ## 2026-08-07
188+
- **Content updates**:
189+
- Updated `matchingRules` description in `IdentityResolutionSettingsCore` to remove compound `AND` rule documentation
190+
- ## 2026-07-30
191+
- **Content updates**:
192+
- Increased the maximum value for the Twilio error `code` from `99999` to `999999`
193+
- ## 2026-07-28
194+
- **Content updates**:
195+
- Updated the `pageSize` description on the pagination `Meta` schema to clarify it reflects the number of items actually returned, not the requested or default page size.
196+
- ## 2026-07-13
197+
- **Content updates**:
198+
- Renamed `ListProfiles` response schema references from `ProfileID`/`ProfilesMeta` to `IdentityProfileID`/`IdentityProfilesMeta` (new `IdentityProfilesMeta` schema added; `ProfileID`/`ProfilesMeta` retained for other operations).
199+
- ## 2026-07-08
200+
- **Content updates**:
201+
- Updated description for `CreateDataMappingSuggestion`
202+
- Updated description for `FetchDataMappingSuggestion`
203+
- ## 2026-07-06
204+
- **Added 2 new path(s)**:
205+
- `/v1/ControlPlane/Stores/{storeId}/DataMappings/Suggestions` (ListDataMappingSuggestions, CreateDataMappingSuggestion)
206+
- `/v1/ControlPlane/Stores/{storeId}/DataMappings/Suggestions/{suggestionId}` (FetchDataMappingSuggestion)
207+
- ## 2026-06-26
208+
- **Content updates**:
209+
- Minor updates (formatting, metadata)
210+
- Updated x-twilio location parameter from `instance` to `list` for all endpoints that don't end with a /{param}
211+
- Updated description for `UpdateProfileTraits`
212+
- Updated summary for `UpdateProfileTraits`
213+
- Removed properties from `MappingTraitItem`: fieldName
214+
- Removed `additionalProperties` from `allof` schemas since it isn't supported and causes invalid lint errors on example blocks.
215+
- matruity ga and libraryVisibility public
216+
- ## 2026-06-24
217+
- **Content updates**:
218+
- Add ConversationID as an optional query parameter for ListObservations and ListConversationSummaries
219+
- ## 2026-05-01
220+
- **Content updates**:
221+
- Updated description & summary for `UpdateProfileTraits`
222+
- Updated description for `FetchIdentityResolutionSettings`
223+
- Removed properties from `MappingTraitItem`: fieldName
224+
- Updated patch Observations to not require `occurredAt`, `content`, or `source`
225+
- ## 2026-04-28
226+
- **Content updates**:
227+
- Updated description for `UpdateProfileTraits`
228+
- Updated summary for `UpdateProfileTraits`
229+
- Added properties to `TraitDefinition`: validationRule
230+
- Removed properties from `MappingTraitItem`: fieldName
231+
232+
**Messaging_admin**
233+
- Add Intelligent Alerts endpoints at `/v1/Messaging/IntelligentAlertsEvents/*`, routing to intelligent-alerts-api via messaging-monkey-backend. Account SID is a required query parameter (`accountSid`) on all three endpoints.
234+
235+
4236
[2026-05-07] Version 8.11.6
5237
---------------------------
6238
**Conversations**

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ The PHP library documentation can be found [here][libdocs].
2020

2121
This library supports the following PHP implementations:
2222

23-
- PHP 8.0
24-
- PHP 8.1
2523
- PHP 8.2
2624
- PHP 8.3
2725
- PHP 8.4

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"php": ">=7.1.0"
1616
},
1717
"require-dev": {
18-
"guzzlehttp/guzzle": "7.11.1",
18+
"guzzlehttp/guzzle": "7.15.3",
1919
"phpunit/phpunit": "9.6.34",
2020
"friendsofphp/php-cs-fixer": "3.94.2"
2121
},
@@ -38,5 +38,10 @@
3838
"@putenv PHP_CS_FIXER_IGNORE_ENV=1",
3939
"vendor/bin/php-cs-fixer -vvv fix --using-cache=no ."
4040
]
41+
},
42+
"config": {
43+
"platform": {
44+
"php": "8.2.0"
45+
}
4146
}
4247
}

0 commit comments

Comments
 (0)