Skip to content

Commit 4512d4b

Browse files
committed
ci: regenerated with OpenAPI Doc 1.0.0, Speakeasy CLI 1.296.1
1 parent 3f8dc01 commit 4512d4b

File tree

12 files changed

+74
-12
lines changed

12 files changed

+74
-12
lines changed

.speakeasy/gen.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: c921ac1f-7be5-423b-b385-7f3f7aaa6ba4
33
management:
4-
docChecksum: ae16b62a3e75707dc8c8098ef538764b
4+
docChecksum: 85248a8dd6a5cd6fea1b82dfc30249e9
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.295.0
7-
generationVersion: 2.333.3
8-
releaseVersion: 0.10.1
9-
configChecksum: 4fff35b2b12c7e7f1291de58185e9746
6+
speakeasyVersion: 1.296.1
7+
generationVersion: 2.338.1
8+
releaseVersion: 0.10.2
9+
configChecksum: ef7b1405b793b71861ec5248426ebd50
1010
repoURL: https://github.com/ding-live/ding-php.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/ding-live/ding-php

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ try {
4444
$request->appRealm = '<value>';
4545
$request->appVersion = '<value>';
4646
$request->callbackUrl = 'https://piercing-volcano.name';
47+
$request->correlationId = '<value>';
4748
$request->customerUuid = '26e0deca-1ec4-471f-acd6-e8efeb46fdea';
4849
$request->deviceId = '<value>';
4950
$request->deviceModel = '<value>';

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,4 +298,14 @@ Based on:
298298
### Generated
299299
- [php v0.10.1] .
300300
### Releases
301-
- [Composer v0.10.1] https://packagist.org/packages/ding-live/ding-php#v0.10.1 - .
301+
- [Composer v0.10.1] https://packagist.org/packages/ding-live/ding-php#v0.10.1 - .
302+
303+
## 2024-05-28 10:03:44
304+
### Changes
305+
Based on:
306+
- OpenAPI Doc 1.0.0
307+
- Speakeasy CLI 1.296.1 (2.338.1) https://github.com/speakeasy-api/speakeasy
308+
### Generated
309+
- [php v0.10.2] .
310+
### Releases
311+
- [Composer v0.10.2] https://packagist.org/packages/ding-live/ding-php#v0.10.2 - .

USAGE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ try {
2626
$request->appRealm = '<value>';
2727
$request->appVersion = '<value>';
2828
$request->callbackUrl = 'https://piercing-volcano.name';
29+
$request->correlationId = '<value>';
2930
$request->customerUuid = '26e0deca-1ec4-471f-acd6-e8efeb46fdea';
3031
$request->deviceId = '<value>';
3132
$request->deviceModel = '<value>';

docs/Models/Shared/CreateAuthenticationRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
| `appRealm` | *?string* | :heavy_minus_sign: | The Android SMS Retriever API hash code that identifies your app. This allows you to automatically retrieve and fill the OTP code on Android devices. | |
99
| `appVersion` | *?string* | :heavy_minus_sign: | The version of your application. | |
1010
| `callbackUrl` | *?string* | :heavy_minus_sign: | A webhook URL to which delivery statuses will be sent. | |
11+
| `correlationId` | *?string* | :heavy_minus_sign: | A unique, user-defined identifier that will be included in webhook events | |
1112
| `customerUuid` | *string* | :heavy_check_mark: | Your customer UUID, which can be found in the API settings in the dashboard. | |
1213
| `deviceId` | *?string* | :heavy_minus_sign: | Unique identifier for the user's device. For Android, this corresponds to the `ANDROID_ID` and for iOS, this corresponds to the `identifierForVendor`. | |
1314
| `deviceModel` | *?string* | :heavy_minus_sign: | The model of the user's device. | |

docs/sdks/otp/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ try {
8787
$request->appRealm = '<value>';
8888
$request->appVersion = '<value>';
8989
$request->callbackUrl = 'https://piercing-volcano.name';
90+
$request->correlationId = '<value>';
9091
$request->customerUuid = '26e0deca-1ec4-471f-acd6-e8efeb46fdea';
9192
$request->deviceId = '<value>';
9293
$request->deviceModel = '<value>';

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generation:
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
php:
13-
version: 0.10.1
13+
version: 0.10.2
1414
flattenGlobalSecurity: true
1515
imports:
1616
option: openapi

src/DingBuilder.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,20 @@ public function setSecurity(string $apiKey): DingBuilder
4646
return $this;
4747
}
4848

49+
/**
50+
* setSecuritySource is usd to configure the security required for the SDK.
51+
* unlike setSecurity, setSecuritySource accepts a closure that will be called to retrieve the security information.
52+
*
53+
* @param pure-Closure(): string $securitySource
54+
* @return DingBuilder
55+
*/
56+
public function setSecuritySource(\Closure $securitySource): DingBuilder
57+
{
58+
$this->sdkConfig->securitySource = $securitySource;
59+
60+
return $this;
61+
}
62+
4963
/**
5064
* setServerUrl is used to configure the server URL for the SDK, and optionally template any parameters in the URL.
5165
*
@@ -85,8 +99,8 @@ public function build(): Ding
8599
'timeout' => 60,
86100
]);
87101
}
88-
if ($this->sdkConfig->security !== null) {
89-
$this->sdkConfig->securityClient = Utils\Utils::configureSecurityClient($this->sdkConfig->defaultClient, $this->sdkConfig->security);
102+
if ($this->sdkConfig->hasSecurity()) {
103+
$this->sdkConfig->securityClient = Utils\Utils::configureSecurityClient($this->sdkConfig->defaultClient, $this->sdkConfig->getSecurity());
90104
}
91105
if ($this->sdkConfig->securityClient === null) {
92106
$this->sdkConfig->securityClient = $this->sdkConfig->defaultClient;

src/Lookup.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function lookup(
4343
}
4444
$options['headers']['Accept'] = 'application/json';
4545
$options['headers']['user-agent'] = $this->sdkConfiguration->userAgent;
46+
4647
$httpResponse = $this->sdkConfiguration->securityClient->request('GET', $url, $options);
4748
$contentType = $httpResponse->getHeader('Content-Type')[0] ?? '';
4849

src/Models/Shared/CreateAuthenticationRequest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ class CreateAuthenticationRequest
4141
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
4242
public ?string $callbackUrl = null;
4343

44+
/**
45+
* A unique, user-defined identifier that will be included in webhook events
46+
*
47+
* @var ?string $correlationId
48+
*/
49+
#[\JMS\Serializer\Annotation\SerializedName('correlation_id')]
50+
#[\JMS\Serializer\Annotation\Type('string')]
51+
#[\JMS\Serializer\Annotation\SkipWhenEmpty]
52+
public ?string $correlationId = null;
53+
4454
/**
4555
* Your customer UUID, which can be found in the API settings in the dashboard.
4656
*
@@ -134,6 +144,7 @@ public function __construct()
134144
$this->appRealm = null;
135145
$this->appVersion = null;
136146
$this->callbackUrl = null;
147+
$this->correlationId = null;
137148
$this->customerUuid = '';
138149
$this->deviceId = null;
139150
$this->deviceModel = null;

0 commit comments

Comments
 (0)