Skip to content

Commit 56d3ab5

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.526.0
1 parent 2560a29 commit 56d3ab5

35 files changed

+145
-101
lines changed

Diff for: .speakeasy/gen.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 4286f3ad-fa54-4c63-a599-e5773b27ae7b
33
management:
4-
docChecksum: 2baf7b7b1013df7ed3dec65b77527e2f
4+
docChecksum: 6b7f05204a6a053018e89bb5f63730d9
55
docVersion: "1.0"
6-
speakeasyVersion: 1.521.0
7-
generationVersion: 2.558.2
8-
releaseVersion: 0.1.0
9-
configChecksum: 99deb2793610bd835828014a768841ba
6+
speakeasyVersion: 1.526.0
7+
generationVersion: 2.563.0
8+
releaseVersion: 0.1.1
9+
configChecksum: 051d18f8fe5f2f8817daca9b817bc1c5
1010
repoURL: https://github.com/novuhq/php-novu.git
1111
installationURL: https://github.com/novuhq/php-novu
1212
published: true

Diff for: .speakeasy/gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ generation:
1515
oAuth2ClientCredentialsEnabled: true
1616
oAuth2PasswordEnabled: true
1717
php:
18-
version: 0.1.0
18+
version: 0.1.1
1919
additionalDependencies:
2020
autoload: {}
2121
autoload-dev: {}

Diff for: .speakeasy/workflow.lock

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.521.0
1+
speakeasyVersion: 1.526.0
22
sources:
33
novu-OAS:
44
sourceNamespace: novu-oas
5-
sourceRevisionDigest: sha256:db132a7c0fa4fa7afc85a30c791f67ecb7c9db21611342c55d4b76fefb1b3e8d
6-
sourceBlobDigest: sha256:1ad751b8cc9aa8375333d9cf6bdf630c8ffa7a26b388d27aa13f75b942971b16
5+
sourceRevisionDigest: sha256:9d68264ab8e5f9fb613838464a3b8b8428c14eb3dcba78f02dec38900d04e3c2
6+
sourceBlobDigest: sha256:db9e19e2d24e34899eb8b171ec6aec4c9e2a6b3ffa4860c4ff565e4032979b72
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1738887190
9+
- speakeasy-sdk-regen-1742516022
1010
- "1.0"
1111
targets:
1212
novu:
1313
source: novu-OAS
1414
sourceNamespace: novu-oas
15-
sourceRevisionDigest: sha256:db132a7c0fa4fa7afc85a30c791f67ecb7c9db21611342c55d4b76fefb1b3e8d
16-
sourceBlobDigest: sha256:1ad751b8cc9aa8375333d9cf6bdf630c8ffa7a26b388d27aa13f75b942971b16
15+
sourceRevisionDigest: sha256:9d68264ab8e5f9fb613838464a3b8b8428c14eb3dcba78f02dec38900d04e3c2
16+
sourceBlobDigest: sha256:db9e19e2d24e34899eb8b171ec6aec4c9e2a6b3ffa4860c4ff565e4032979b72
1717
codeSamplesNamespace: novu-oas-php-code-samples
18-
codeSamplesRevisionDigest: sha256:bd86287151037d649bb2e639b261b377edb4092d12b12422a2b184c616cbee56
18+
codeSamplesRevisionDigest: sha256:e05fb35b2ddacec4100db364d8c26318ba6bcd169b90a25fc285ed854bff6692
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

Diff for: README.md

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ For more information about the API: [Novu Documentation](https://docs.novu.co)
6363
<!-- Start Table of Contents [toc] -->
6464
## Table of Contents
6565
<!-- $toc-max-depth=2 -->
66+
* [Novu PHP SDK](#novu-php-sdk)
6667
* [SDK Installation](#sdk-installation)
6768
* [SDK Example Usage](#sdk-example-usage)
6869
* [Authentication](#authentication)

Diff for: RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,14 @@ Based on:
2828
### Generated
2929
- [php v0.1.0] .
3030
### Releases
31-
- [Composer v0.1.0] https://packagist.org/packages/novuhq/novu#v0.1.0 - .
31+
- [Composer v0.1.0] https://packagist.org/packages/novuhq/novu#v0.1.0 - .
32+
33+
## 2025-03-29 00:13:18
34+
### Changes
35+
Based on:
36+
- OpenAPI Doc
37+
- Speakeasy CLI 1.526.0 (2.563.0) https://github.com/speakeasy-api/speakeasy
38+
### Generated
39+
- [php v0.1.1] .
40+
### Releases
41+
- [Composer v0.1.1] https://packagist.org/packages/novuhq/novu#v0.1.1 - .

Diff for: docs/Models/Components/WorkflowInfoDto.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- |
88
| `slug` | *string* | :heavy_check_mark: | Workflow slug |
99
| `identifier` | *string* | :heavy_check_mark: | Unique identifier of the workflow |
10-
| `name` | *string* | :heavy_check_mark: | Display name of the workflow |
10+
| `name` | *string* | :heavy_check_mark: | Display name of the workflow |
11+
| `updatedAt` | *?string* | :heavy_minus_sign: | last updated date |

Diff for: docs/Models/Operations/OrderDirection.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# OrderDirection
22

3+
Direction of sorting
4+
35

46
## Values
57

Diff for: docs/Models/Operations/SubscribersControllerSearchSubscribersRequest.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- |
88
| `after` | *?string* | :heavy_minus_sign: | Cursor for pagination indicating the starting point after which to fetch results. |
99
| `before` | *?string* | :heavy_minus_sign: | Cursor for pagination indicating the ending point before which to fetch results. |
10+
| `limit` | *?float* | :heavy_minus_sign: | Limit the number of items to return |
11+
| `orderDirection` | [?Operations\OrderDirection](../../Models/Operations/OrderDirection.md) | :heavy_minus_sign: | Direction of sorting |
12+
| `orderBy` | *?string* | :heavy_minus_sign: | Field to order by |
13+
| `includeCursor` | *?bool* | :heavy_minus_sign: | Include cursor item in response |
1014
| `email` | *?string* | :heavy_minus_sign: | Email address of the subscriber to filter results. |
1115
| `name` | *?string* | :heavy_minus_sign: | Name of the subscriber to filter results. |
1216
| `phone` | *?string* | :heavy_minus_sign: | Phone number of the subscriber to filter results. |
1317
| `subscriberId` | *?string* | :heavy_minus_sign: | Unique identifier of the subscriber to filter results. |
14-
| `limit` | *?float* | :heavy_minus_sign: | N/A |
15-
| `orderDirection` | [?Operations\OrderDirection](../../Models/Operations/OrderDirection.md) | :heavy_minus_sign: | N/A |
16-
| `orderBy` | *mixed* | :heavy_minus_sign: | N/A |
1718
| `idempotencyKey` | *?string* | :heavy_minus_sign: | A header for idempotency purposes |

Diff for: src/Authentication.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function handleOauthCallback(Operations\SubscribersV1ControllerChatOauthC
9595
$httpOptions['headers']['Accept'] = 'application/json;q=1, text/html;q=0';
9696
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
9797
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
98-
$hookContext = new HookContext('SubscribersV1Controller_chatOauthCallback', null, $this->sdkConfiguration->securitySource);
98+
$hookContext = new HookContext($baseUrl, 'SubscribersV1Controller_chatOauthCallback', [], $this->sdkConfiguration->securitySource);
9999
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
100100
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
101101
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);

Diff for: src/Hooks/AfterErrorContext.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AfterErrorContext extends HookContext
1313
{
1414
public function __construct(HookContext $hookCtx)
1515
{
16-
parent::__construct($hookCtx->operationID, $hookCtx->oauth2Scopes, $hookCtx->securitySource);
16+
parent::__construct($hookCtx->baseURL, $hookCtx->operationID, $hookCtx->oauth2Scopes, $hookCtx->securitySource);
1717
}
1818

1919
/**

Diff for: src/Hooks/AfterSuccessContext.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ class AfterSuccessContext extends HookContext
1313
{
1414
public function __construct(HookContext $hookCtx)
1515
{
16-
parent::__construct($hookCtx->operationID, $hookCtx->oauth2Scopes, $hookCtx->securitySource);
16+
parent::__construct($hookCtx->baseURL, $hookCtx->operationID, $hookCtx->oauth2Scopes, $hookCtx->securitySource);
1717
}
1818
}

Diff for: src/Hooks/BeforeRequestContext.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class BeforeRequestContext extends HookContext
1313
{
1414
public function __construct(HookContext $hookCtx)
1515
{
16-
parent::__construct($hookCtx->operationID, $hookCtx->oauth2Scopes, $hookCtx->securitySource);
16+
parent::__construct($hookCtx->baseURL, $hookCtx->operationID, $hookCtx->oauth2Scopes, $hookCtx->securitySource);
1717
}
1818

1919
/**

Diff for: src/Hooks/HookContext.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
class HookContext
1313
{
14+
/**
15+
* @var string $baseURL
16+
*/
17+
public string $baseURL;
1418
/**
1519
* @var string $operationID
1620
*/
@@ -29,8 +33,9 @@ class HookContext
2933
* @param ?array<string> $oauth2Scopes
3034
* @param ?\Closure(): ?mixed $securitySource
3135
*/
32-
public function __construct(string $operationID, ?array $oauth2Scopes, ?\Closure $securitySource)
36+
public function __construct(string $baseURL, string $operationID, ?array $oauth2Scopes, ?\Closure $securitySource)
3337
{
38+
$this->baseURL = $baseURL;
3439
$this->operationID = $operationID;
3540
$this->oauth2Scopes = $oauth2Scopes;
3641
$this->securitySource = $securitySource;

Diff for: src/Integrations.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function create(Components\CreateIntegrationRequestDto $createIntegration
109109
$httpOptions['headers']['Accept'] = 'application/json';
110110
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
111111
$httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url);
112-
$hookContext = new HookContext('IntegrationsController_createIntegration', null, $this->sdkConfiguration->securitySource);
112+
$hookContext = new HookContext($baseUrl, 'IntegrationsController_createIntegration', [], $this->sdkConfiguration->securitySource);
113113
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
114114
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
115115
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -253,7 +253,7 @@ public function listActive(?string $idempotencyKey = null, ?Options $options = n
253253
$httpOptions['headers']['Accept'] = 'application/json';
254254
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
255255
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
256-
$hookContext = new HookContext('IntegrationsController_getActiveIntegrations', null, $this->sdkConfiguration->securitySource);
256+
$hookContext = new HookContext($baseUrl, 'IntegrationsController_getActiveIntegrations', [], $this->sdkConfiguration->securitySource);
257257
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
258258
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
259259
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -397,7 +397,7 @@ public function list(?string $idempotencyKey = null, ?Options $options = null):
397397
$httpOptions['headers']['Accept'] = 'application/json';
398398
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
399399
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
400-
$hookContext = new HookContext('IntegrationsController_listIntegrations', null, $this->sdkConfiguration->securitySource);
400+
$hookContext = new HookContext($baseUrl, 'IntegrationsController_listIntegrations', [], $this->sdkConfiguration->securitySource);
401401
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
402402
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
403403
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -541,7 +541,7 @@ public function delete(string $integrationId, ?string $idempotencyKey = null, ?O
541541
$httpOptions['headers']['Accept'] = 'application/json';
542542
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
543543
$httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url);
544-
$hookContext = new HookContext('IntegrationsController_removeIntegration', null, $this->sdkConfiguration->securitySource);
544+
$hookContext = new HookContext($baseUrl, 'IntegrationsController_removeIntegration', [], $this->sdkConfiguration->securitySource);
545545
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
546546
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
547547
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -685,7 +685,7 @@ public function setAsPrimary(string $integrationId, ?string $idempotencyKey = nu
685685
$httpOptions['headers']['Accept'] = 'application/json';
686686
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
687687
$httpRequest = new \GuzzleHttp\Psr7\Request('POST', $url);
688-
$hookContext = new HookContext('IntegrationsController_setIntegrationAsPrimary', null, $this->sdkConfiguration->securitySource);
688+
$hookContext = new HookContext($baseUrl, 'IntegrationsController_setIntegrationAsPrimary', [], $this->sdkConfiguration->securitySource);
689689
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
690690
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
691691
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -836,7 +836,7 @@ public function update(Components\UpdateIntegrationRequestDto $updateIntegration
836836
$httpOptions['headers']['Accept'] = 'application/json';
837837
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
838838
$httpRequest = new \GuzzleHttp\Psr7\Request('PUT', $url);
839-
$hookContext = new HookContext('IntegrationsController_updateIntegrationById', null, $this->sdkConfiguration->securitySource);
839+
$hookContext = new HookContext($baseUrl, 'IntegrationsController_updateIntegrationById', [], $this->sdkConfiguration->securitySource);
840840
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
841841
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
842842
$httpRequest = Utils\Utils::removeHeaders($httpRequest);

Diff for: src/Messages.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function delete(string $messageId, ?string $idempotencyKey = null, ?Optio
100100
$httpOptions['headers']['Accept'] = 'application/json';
101101
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
102102
$httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url);
103-
$hookContext = new HookContext('MessagesController_deleteMessage', null, $this->sdkConfiguration->securitySource);
103+
$hookContext = new HookContext($baseUrl, 'MessagesController_deleteMessage', [], $this->sdkConfiguration->securitySource);
104104
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
105105
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
106106
$httpRequest = Utils\Utils::removeHeaders($httpRequest);
@@ -250,7 +250,7 @@ public function deleteByTransactionId(string $transactionId, ?Operations\Channel
250250
$httpOptions['headers']['Accept'] = 'application/json';
251251
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
252252
$httpRequest = new \GuzzleHttp\Psr7\Request('DELETE', $url);
253-
$hookContext = new HookContext('MessagesController_deleteMessagesByTransactionId', null, $this->sdkConfiguration->securitySource);
253+
$hookContext = new HookContext($baseUrl, 'MessagesController_deleteMessagesByTransactionId', [], $this->sdkConfiguration->securitySource);
254254
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
255255
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
256256
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);
@@ -384,7 +384,7 @@ public function get(?Operations\MessagesControllerGetMessagesRequest $request =
384384
$httpOptions['headers']['Accept'] = 'application/json';
385385
$httpOptions['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
386386
$httpRequest = new \GuzzleHttp\Psr7\Request('GET', $url);
387-
$hookContext = new HookContext('MessagesController_getMessages', null, $this->sdkConfiguration->securitySource);
387+
$hookContext = new HookContext($baseUrl, 'MessagesController_getMessages', [], $this->sdkConfiguration->securitySource);
388388
$httpRequest = $this->sdkConfiguration->hooks->beforeRequest(new Hooks\BeforeRequestContext($hookContext), $httpRequest);
389389
$httpOptions['query'] = Utils\QueryParameters::standardizeQueryParams($httpRequest, $qp);
390390
$httpOptions = Utils\Utils::convertHeadersToOptions($httpRequest, $httpOptions);

0 commit comments

Comments
 (0)