Skip to content

Commit 399a5c0

Browse files
committed
## Php SDK Changes:
* `novu->translations->create()`: * `request.createTranslationRequestDto->content` **Changed** **Breaking** ⚠️ * `response.content` **Changed** **Breaking** ⚠️ * `novu->translations->master->upload()`: `requestBody` **Added** **Breaking** ⚠️ * `novu->translations->master->import()`: * `request.importMasterJsonRequestDto->masterJson` **Changed** **Breaking** ⚠️ * `novu->translations->master->retrieve()`: `response` **Changed** **Breaking** ⚠️ * `novu->translations->upload()`: `request` **Changed** **Breaking** ⚠️ * `novu->translations->retrieve()`: `response.content` **Changed** **Breaking** ⚠️ * `novu->topics->subscriptions->create()`: * `request.createTopicSubscriptionsRequestDto` **Changed** * `response.data->[]` **Changed** * `novu->topics->subscriptions->delete()`: `response.data->[]->identifier` **Added** * `novu->topics->subscriptions->update()`: **Added** * `novu->triggerbulk()`: `response.[]->jobData` **Added** * `novu->triggerbroadcast()`: * `request.triggerEventToAllRequestDto->context` **Added** * `response.jobData` **Added** * `novu->trigger()`: `response.jobData` **Added** * `novu->integrations->list()`: `response.[]->credentials->tenantId` **Added** * `novu->integrations->create()`: * `request.createIntegrationRequestDto->credentials->tenantId` **Added** * `response.credentials->tenantId` **Added** * `novu->integrations->update()`: * `request.updateIntegrationRequestDto->credentials->tenantId` **Added** * `response.credentials->tenantId` **Added** * `novu->integrations->delete()`: `response.[]->credentials->tenantId` **Added** * `novu->integrations->setAsPrimary()`: `response.credentials->tenantId` **Added** * `novu->integrations->listActive()`: `response.[]->credentials->tenantId` **Added**
1 parent 6401d7d commit 399a5c0

File tree

99 files changed

+1834
-321
lines changed

Some content is hidden

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

99 files changed

+1834
-321
lines changed

.speakeasy/gen.lock

Lines changed: 80 additions & 31 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 3 additions & 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: {}
@@ -43,12 +43,14 @@ php:
4343
operations: Models/Operations
4444
shared: Models/Components
4545
webhooks: Models/Webhooks
46+
inferUnionDiscriminators: false
4647
inputModelSuffix: input
4748
laravelServiceProvider:
4849
enabled: false
4950
svcName: openapi
5051
maxMethodParams: 4
5152
methodArguments: infer-optional-args
53+
multipartArrayFormat: legacy
5254
namespace: novu
5355
outputModelSuffix: output
5456
packageName: novuhq/novu

.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.666.0
22
sources:
33
novu-OAS:
44
sourceNamespace: novu-oas
5-
sourceRevisionDigest: sha256:850d77fe30f5f80b923b5f80f8836a5680f37fe23f9760b817af26687c161858
6-
sourceBlobDigest: sha256:070b4a9c33c58a3ccf2df058737d70d25262f79a0c9b4d3dccd7f4dfec1fb13e
5+
sourceRevisionDigest: sha256:023514cca5e869f3c233c83f9abfdc3336e2ca3112f36501cdc9a2eaa3623e7f
6+
sourceBlobDigest: sha256:cd37c8f3e2217ff7d37d6de17ce5b8f4faa1439efbefecd0738e201c8f6bb9df
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:023514cca5e869f3c233c83f9abfdc3336e2ca3112f36501cdc9a2eaa3623e7f
16+
sourceBlobDigest: sha256:cd37c8f3e2217ff7d37d6de17ce5b8f4faa1439efbefecd0738e201c8f6bb9df
1717
codeSamplesNamespace: novu-oas-php-code-samples
18-
codeSamplesRevisionDigest: sha256:45340b1be74817aef25652f96636a48c45e70bbfb535abc8bd41521eeaddd8dc
18+
codeSamplesRevisionDigest: sha256:6af0c862ca8c2c279101156096a640fbea3a5a3e97ec9573766bd294a0653926
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 4 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(
@@ -452,6 +455,7 @@ if ($response->triggerEventResponseDto !== null) {
452455
* [list](docs/sdks/subscriptions/README.md#list) - List topic subscriptions
453456
* [create](docs/sdks/subscriptions/README.md#create) - Create topic subscriptions
454457
* [delete](docs/sdks/subscriptions/README.md#delete) - Delete topic subscriptions
458+
* [update](docs/sdks/subscriptions/README.md#update) - Update a topic subscription
455459

456460
### [topicsSubscribers](docs/sdks/topicssubscribers/README.md)
457461

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-12-02 00:15:16
94+
### Changes
95+
Based on:
96+
- OpenAPI Doc
97+
- Speakeasy CLI 1.666.0 (2.768.0) 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/>} |
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# CreateSubscriptionsResponseDto
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
8+
| `data` | array<[Components\SubscriptionResponseDto](../../Models/Components/SubscriptionResponseDto.md)> | :heavy_check_mark: | The list of successfully created subscriptions |
9+
| `meta` | [Components\MetaDto](../../Models/Components/MetaDto.md) | :heavy_check_mark: | Metadata about the operation |
10+
| `errors` | array<[Components\SubscriptionErrorDto](../../Models/Components/SubscriptionErrorDto.md)> | :heavy_minus_sign: | The list of errors for failed subscription attempts |

docs/Models/Components/CreateTopicSubscriptionsRequestDto.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description | Example |
7-
| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- |
8-
| `subscriberIds` | array<*string*> | :heavy_check_mark: | List of subscriber identifiers to subscribe to the topic (max: 100) | [<br/>"subscriberId1",<br/>"subscriberId2"<br/>] |
6+
| Field | Type | Required | Description | Example |
7+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
8+
| ~~`subscriberIds`~~ | array<*string*> | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.<br/><br/>List of subscriber IDs to subscribe to the topic (max: 100). @deprecated Use the "subscriptions" property instead. | [<br/>"subscriberId1",<br/>"subscriberId2"<br/>] |
9+
| `subscriptions` | array<[string\|Components\TopicSubscriberIdentifierDto](../../Models/Components/Subscriptions.md)> | :heavy_minus_sign: | List of subscriptions to subscribe to the topic (max: 100). Can be either a string array of subscriber IDs or an array of objects with identifier and subscriberId | [<br/>{<br/>"identifier": "subscriber-123-subscription-a",<br/>"subscriberId": "subscriber-123"<br/>},<br/>{<br/>"identifier": "subscriber-456-subscription-b",<br/>"subscriberId": "subscriber-456"<br/>}<br/>] |
10+
| `name` | *?string* | :heavy_minus_sign: | The name of the topic | My Topic |
11+
| `preferences` | array<[string\|Components\WorkflowPreferenceRequestDto\|Components\GroupPreferenceFilterDto](../../Models/Components/Preferences.md)> | :heavy_minus_sign: | The preferences of the topic. Can be a simple workflow ID string, workflow preference object, or group filter object | [<br/>{<br/>"workflowId": "workflow-123",<br/>"condition": {<br/>"===": [<br/>{<br/>"var": "tier"<br/>},<br/>"premium"<br/>]<br/>}<br/>}<br/>] |

0 commit comments

Comments
 (0)