Skip to content

Commit 466a9d0

Browse files
committed
## Php SDK Changes Detected:
* `novu->translations->create()`: * `request.createTranslationRequestDto->content` **Changed** **Breaking** ⚠️ * `response.content` **Changed** **Breaking** ⚠️ * `novu->translations->retrieve()`: `response.content` **Changed** **Breaking** ⚠️ * `novu->translations->upload()`: `request` **Changed** **Breaking** ⚠️ * `novu->translations->master->retrieve()`: `response` **Changed** **Breaking** ⚠️ * `novu->translations->master->import()`: * `request.importMasterJsonRequestDto->masterJson` **Changed** **Breaking** ⚠️ * `novu->translations->master->upload()`: `requestBody` **Added** **Breaking** ⚠️ * `novu->trigger()`: `response.jobData` **Added** * `novu->triggerbroadcast()`: * `request.triggerEventToAllRequestDto->context` **Added** * `response.jobData` **Added** * `novu->triggerbulk()`: `response.[]->jobData` **Added**
1 parent 6401d7d commit 466a9d0

File tree

60 files changed

+472
-284
lines changed

Some content is hidden

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

60 files changed

+472
-284
lines changed

.speakeasy/gen.lock

Lines changed: 29 additions & 26 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ generation:
2525
generateNewTests: false
2626
skipResponseBodyAssertions: false
2727
php:
28-
version: 3.11.0
28+
version: 3.11.1
2929
additionalDependencies:
3030
autoload: {}
3131
autoload-dev: {}

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.658.2
1+
speakeasyVersion: 1.659.0
22
sources:
33
novu-OAS:
44
sourceNamespace: novu-oas
5-
sourceRevisionDigest: sha256:850d77fe30f5f80b923b5f80f8836a5680f37fe23f9760b817af26687c161858
6-
sourceBlobDigest: sha256:070b4a9c33c58a3ccf2df058737d70d25262f79a0c9b4d3dccd7f4dfec1fb13e
5+
sourceRevisionDigest: sha256:8bd03eb850f8c56651a6263de47497087c9097d2a11fbc8bce5fa771f07f372e
6+
sourceBlobDigest: sha256:79691ade39d8017bb22f503aca2112af3561da26b5f401aa39f929f07bb037cc
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1758759250
9+
- speakeasy-sdk-regen-1763597720
1010
- 3.11.0
1111
targets:
1212
novu:
1313
source: novu-OAS
1414
sourceNamespace: novu-oas
15-
sourceRevisionDigest: sha256:850d77fe30f5f80b923b5f80f8836a5680f37fe23f9760b817af26687c161858
16-
sourceBlobDigest: sha256:070b4a9c33c58a3ccf2df058737d70d25262f79a0c9b4d3dccd7f4dfec1fb13e
15+
sourceRevisionDigest: sha256:8bd03eb850f8c56651a6263de47497087c9097d2a11fbc8bce5fa771f07f372e
16+
sourceBlobDigest: sha256:79691ade39d8017bb22f503aca2112af3561da26b5f401aa39f929f07bb037cc
1717
codeSamplesNamespace: novu-oas-php-code-samples
18-
codeSamplesRevisionDigest: sha256:45340b1be74817aef25652f96636a48c45e70bbfb535abc8bd41521eeaddd8dc
18+
codeSamplesRevisionDigest: sha256:bb4a85fada1f4dbf4359e38cc25c9b3d7e11b42e58de54ea887691452104346e
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,9 @@ $triggerEventToAllRequestDto = new Components\TriggerEventToAllRequestDto(
201201
timezone: 'America/New_York',
202202
subscriberId: '<id>',
203203
),
204+
context: [
205+
'key' => 'org-acme',
206+
],
204207
);
205208

206209
$response = $sdk->triggerBroadcast(

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,14 @@ Based on:
8888
### Generated
8989
- [php v3.11.0] .
9090
### Releases
91-
- [Composer v3.11.0] https://packagist.org/packages/novuhq/novu#v3.11.0 - .
91+
- [Composer v3.11.0] https://packagist.org/packages/novuhq/novu#v3.11.0 - .
92+
93+
## 2025-11-21 00:14:46
94+
### Changes
95+
Based on:
96+
- OpenAPI Doc
97+
- Speakeasy CLI 1.659.0 (2.755.9) https://github.com/speakeasy-api/speakeasy
98+
### Generated
99+
- [php v3.11.1] .
100+
### Releases
101+
- [Composer v3.11.1] https://packagist.org/packages/novuhq/novu#v3.11.1 - .

USAGE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,9 @@ $triggerEventToAllRequestDto = new Components\TriggerEventToAllRequestDto(
109109
timezone: 'America/New_York',
110110
subscriberId: '<id>',
111111
),
112+
context: [
113+
'key' => 'org-acme',
114+
],
112115
);
113116

114117
$response = $sdk->triggerBroadcast(

docs/Models/Components/Content.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
# Content
22

3-
Translation content as JSON object
3+
Content of the message, can be an email block or a string
44

55

6-
## Fields
6+
## Supported Types
7+
8+
### `array`
9+
10+
```php
11+
/**
12+
* @var array<Components\EmailBlock>
13+
*/
14+
array $value = /* values here */
15+
```
16+
17+
### `string`
18+
19+
```php
20+
/**
21+
* @var string
22+
*/
23+
string $value = /* values here */
24+
```
725

8-
| Field | Type | Required | Description |
9-
| ----------- | ----------- | ----------- | ----------- |

docs/Models/Components/Context2.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Context2
2+
3+
Rich context object with id and optional data
4+
5+
6+
## Fields
7+
8+
| Field | Type | Required | Description | Example |
9+
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
10+
| `id` | *string* | :heavy_check_mark: | N/A | org-acme |
11+
| `data` | array<string, *mixed*> | :heavy_minus_sign: | Optional additional context data | {<br/>"name": "Acme Corp",<br/>"region": "us-east-1"<br/>} |

docs/Models/Components/CreateTranslationRequestDto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
| `resourceId` | *string* | :heavy_check_mark: | The resource ID to associate translation with. Accepts identifier or slug format | welcome-email |
99
| `resourceType` | [Components\ResourceType](../../Models/Components/ResourceType.md) | :heavy_check_mark: | The resource type to associate translation with | |
1010
| `locale` | *string* | :heavy_check_mark: | Locale code (e.g., en_US, es_ES) | en_US |
11-
| `content` | [Components\Content](../../Models/Components/Content.md) | :heavy_check_mark: | Translation content as JSON object | {<br/>"welcome.title": "Welcome",<br/>"welcome.message": "Hello there!"<br/>} |
11+
| `content` | array<string, *mixed*> | :heavy_check_mark: | Translation content as JSON object | {<br/>"welcome.title": "Welcome",<br/>"welcome.message": "Hello there!"<br/>} |

docs/Models/Components/GetMasterJsonResponseDto.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
| Field | Type | Required | Description | Example |
77
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8-
| `workflows` | [Components\Workflows](../../Models/Components/Workflows.md) | :heavy_check_mark: | All translations for given locale organized by workflow identifier | {<br/>"welcome-email": {<br/>"welcome.title": "Welcome to our platform",<br/>"welcome.message": "Hello there!"<br/>},<br/>"password-reset": {<br/>"reset.title": "Reset your password",<br/>"reset.message": "Click the link to reset"<br/>}<br/>} |
9-
| `layouts` | [Components\Layouts](../../Models/Components/Layouts.md) | :heavy_check_mark: | All translations for given locale organized by layout identifier | {<br/>"default-layout": {<br/>"layout.title": "Default layout",<br/>"layout.message": "Hello there!"<br/>}<br/>} |
8+
| `workflows` | array<string, *mixed*> | :heavy_check_mark: | All translations for given locale organized by workflow identifier | {<br/>"welcome-email": {<br/>"welcome.title": "Welcome to our platform",<br/>"welcome.message": "Hello there!"<br/>},<br/>"password-reset": {<br/>"reset.title": "Reset your password",<br/>"reset.message": "Click the link to reset"<br/>}<br/>} |
9+
| `layouts` | array<string, *mixed*> | :heavy_check_mark: | All translations for given locale organized by layout identifier | {<br/>"default-layout": {<br/>"layout.title": "Default layout",<br/>"layout.message": "Hello there!"<br/>}<br/>} |

0 commit comments

Comments
 (0)