Skip to content

Commit 2810a32

Browse files
feat(api): manual updates
1 parent 7638384 commit 2810a32

23 files changed

+166
-166
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 40
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-294831f61f7890b2cdb89d181f26297732387d5e1288f446c0138e46fb1a4608.yml
33
openapi_spec_hash: a7f20451621ee678fbe09ff7a297b3ea
4-
config_hash: 497506d9e2e66cd0573bd9c1f1242462
4+
config_hash: 478a49d5520c8bb64b43272de11c2872

src/Contacts/APIResponseOfContact.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
use SentDm\Core\Attributes\Optional;
88
use SentDm\Core\Concerns\SdkModel;
99
use SentDm\Core\Contracts\BaseModel;
10-
use SentDm\Webhooks\APIError;
1110
use SentDm\Webhooks\APIMeta;
11+
use SentDm\Webhooks\ErrorDetail;
1212

1313
/**
1414
* Standard API response envelope for all v3 endpoints.
1515
*
1616
* @phpstan-import-type ContactResponseShape from \SentDm\Contacts\ContactResponse
17-
* @phpstan-import-type APIErrorShape from \SentDm\Webhooks\APIError
17+
* @phpstan-import-type ErrorDetailShape from \SentDm\Webhooks\ErrorDetail
1818
* @phpstan-import-type APIMetaShape from \SentDm\Webhooks\APIMeta
1919
*
2020
* @phpstan-type APIResponseOfContactShape = array{
2121
* data?: null|ContactResponse|ContactResponseShape,
22-
* error?: null|APIError|APIErrorShape,
22+
* error?: null|ErrorDetail|ErrorDetailShape,
2323
* meta?: null|APIMeta|APIMetaShape,
2424
* success?: bool|null,
2525
* }
@@ -40,7 +40,7 @@ final class APIResponseOfContact implements BaseModel
4040
* Error information.
4141
*/
4242
#[Optional(nullable: true)]
43-
public ?APIError $error;
43+
public ?ErrorDetail $error;
4444

4545
/**
4646
* Request and response metadata.
@@ -65,12 +65,12 @@ public function __construct()
6565
* You must use named parameters to construct any parameters with a default value.
6666
*
6767
* @param ContactResponse|ContactResponseShape|null $data
68-
* @param APIError|APIErrorShape|null $error
68+
* @param ErrorDetail|ErrorDetailShape|null $error
6969
* @param APIMeta|APIMetaShape|null $meta
7070
*/
7171
public static function with(
7272
ContactResponse|array|null $data = null,
73-
APIError|array|null $error = null,
73+
ErrorDetail|array|null $error = null,
7474
APIMeta|array|null $meta = null,
7575
?bool $success = null,
7676
): self {
@@ -101,9 +101,9 @@ public function withData(ContactResponse|array|null $data): self
101101
/**
102102
* Error information.
103103
*
104-
* @param APIError|APIErrorShape|null $error
104+
* @param ErrorDetail|ErrorDetailShape|null $error
105105
*/
106-
public function withError(APIError|array|null $error): self
106+
public function withError(ErrorDetail|array|null $error): self
107107
{
108108
$self = clone $this;
109109
$self['error'] = $error;

src/Contacts/ContactListResponse.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
use SentDm\Core\Attributes\Optional;
99
use SentDm\Core\Concerns\SdkModel;
1010
use SentDm\Core\Contracts\BaseModel;
11-
use SentDm\Webhooks\APIError;
1211
use SentDm\Webhooks\APIMeta;
12+
use SentDm\Webhooks\ErrorDetail;
1313

1414
/**
1515
* Standard API response envelope for all v3 endpoints.
1616
*
1717
* @phpstan-import-type DataShape from \SentDm\Contacts\ContactListResponse\Data
18-
* @phpstan-import-type APIErrorShape from \SentDm\Webhooks\APIError
18+
* @phpstan-import-type ErrorDetailShape from \SentDm\Webhooks\ErrorDetail
1919
* @phpstan-import-type APIMetaShape from \SentDm\Webhooks\APIMeta
2020
*
2121
* @phpstan-type ContactListResponseShape = array{
2222
* data?: null|Data|DataShape,
23-
* error?: null|APIError|APIErrorShape,
23+
* error?: null|ErrorDetail|ErrorDetailShape,
2424
* meta?: null|APIMeta|APIMetaShape,
2525
* success?: bool|null,
2626
* }
@@ -40,7 +40,7 @@ final class ContactListResponse implements BaseModel
4040
* Error information.
4141
*/
4242
#[Optional(nullable: true)]
43-
public ?APIError $error;
43+
public ?ErrorDetail $error;
4444

4545
/**
4646
* Request and response metadata.
@@ -65,12 +65,12 @@ public function __construct()
6565
* You must use named parameters to construct any parameters with a default value.
6666
*
6767
* @param Data|DataShape|null $data
68-
* @param APIError|APIErrorShape|null $error
68+
* @param ErrorDetail|ErrorDetailShape|null $error
6969
* @param APIMeta|APIMetaShape|null $meta
7070
*/
7171
public static function with(
7272
Data|array|null $data = null,
73-
APIError|array|null $error = null,
73+
ErrorDetail|array|null $error = null,
7474
APIMeta|array|null $meta = null,
7575
?bool $success = null,
7676
): self {
@@ -100,9 +100,9 @@ public function withData(Data|array|null $data): self
100100
/**
101101
* Error information.
102102
*
103-
* @param APIError|APIErrorShape|null $error
103+
* @param ErrorDetail|ErrorDetailShape|null $error
104104
*/
105-
public function withError(APIError|array|null $error): self
105+
public function withError(ErrorDetail|array|null $error): self
106106
{
107107
$self = clone $this;
108108
$self['error'] = $error;

src/Me/MeGetResponse.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
use SentDm\Core\Concerns\SdkModel;
99
use SentDm\Core\Contracts\BaseModel;
1010
use SentDm\Me\MeGetResponse\Data;
11-
use SentDm\Webhooks\APIError;
1211
use SentDm\Webhooks\APIMeta;
12+
use SentDm\Webhooks\ErrorDetail;
1313

1414
/**
1515
* Standard API response envelope for all v3 endpoints.
1616
*
1717
* @phpstan-import-type DataShape from \SentDm\Me\MeGetResponse\Data
18-
* @phpstan-import-type APIErrorShape from \SentDm\Webhooks\APIError
18+
* @phpstan-import-type ErrorDetailShape from \SentDm\Webhooks\ErrorDetail
1919
* @phpstan-import-type APIMetaShape from \SentDm\Webhooks\APIMeta
2020
*
2121
* @phpstan-type MeGetResponseShape = array{
2222
* data?: null|Data|DataShape,
23-
* error?: null|APIError|APIErrorShape,
23+
* error?: null|ErrorDetail|ErrorDetailShape,
2424
* meta?: null|APIMeta|APIMetaShape,
2525
* success?: bool|null,
2626
* }
@@ -42,7 +42,7 @@ final class MeGetResponse implements BaseModel
4242
* Error information.
4343
*/
4444
#[Optional(nullable: true)]
45-
public ?APIError $error;
45+
public ?ErrorDetail $error;
4646

4747
/**
4848
* Request and response metadata.
@@ -67,12 +67,12 @@ public function __construct()
6767
* You must use named parameters to construct any parameters with a default value.
6868
*
6969
* @param Data|DataShape|null $data
70-
* @param APIError|APIErrorShape|null $error
70+
* @param ErrorDetail|ErrorDetailShape|null $error
7171
* @param APIMeta|APIMetaShape|null $meta
7272
*/
7373
public static function with(
7474
Data|array|null $data = null,
75-
APIError|array|null $error = null,
75+
ErrorDetail|array|null $error = null,
7676
APIMeta|array|null $meta = null,
7777
?bool $success = null,
7878
): self {
@@ -104,9 +104,9 @@ public function withData(Data|array|null $data): self
104104
/**
105105
* Error information.
106106
*
107-
* @param APIError|APIErrorShape|null $error
107+
* @param ErrorDetail|ErrorDetailShape|null $error
108108
*/
109-
public function withError(APIError|array|null $error): self
109+
public function withError(ErrorDetail|array|null $error): self
110110
{
111111
$self = clone $this;
112112
$self['error'] = $error;

src/Messages/MessageGetActivitiesResponse.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
use SentDm\Core\Concerns\SdkModel;
99
use SentDm\Core\Contracts\BaseModel;
1010
use SentDm\Messages\MessageGetActivitiesResponse\Data;
11-
use SentDm\Webhooks\APIError;
1211
use SentDm\Webhooks\APIMeta;
12+
use SentDm\Webhooks\ErrorDetail;
1313

1414
/**
1515
* Standard API response envelope for all v3 endpoints.
1616
*
1717
* @phpstan-import-type DataShape from \SentDm\Messages\MessageGetActivitiesResponse\Data
18-
* @phpstan-import-type APIErrorShape from \SentDm\Webhooks\APIError
18+
* @phpstan-import-type ErrorDetailShape from \SentDm\Webhooks\ErrorDetail
1919
* @phpstan-import-type APIMetaShape from \SentDm\Webhooks\APIMeta
2020
*
2121
* @phpstan-type MessageGetActivitiesResponseShape = array{
2222
* data?: null|Data|DataShape,
23-
* error?: null|APIError|APIErrorShape,
23+
* error?: null|ErrorDetail|ErrorDetailShape,
2424
* meta?: null|APIMeta|APIMetaShape,
2525
* success?: bool|null,
2626
* }
@@ -40,7 +40,7 @@ final class MessageGetActivitiesResponse implements BaseModel
4040
* Error information.
4141
*/
4242
#[Optional(nullable: true)]
43-
public ?APIError $error;
43+
public ?ErrorDetail $error;
4444

4545
/**
4646
* Request and response metadata.
@@ -65,12 +65,12 @@ public function __construct()
6565
* You must use named parameters to construct any parameters with a default value.
6666
*
6767
* @param Data|DataShape|null $data
68-
* @param APIError|APIErrorShape|null $error
68+
* @param ErrorDetail|ErrorDetailShape|null $error
6969
* @param APIMeta|APIMetaShape|null $meta
7070
*/
7171
public static function with(
7272
Data|array|null $data = null,
73-
APIError|array|null $error = null,
73+
ErrorDetail|array|null $error = null,
7474
APIMeta|array|null $meta = null,
7575
?bool $success = null,
7676
): self {
@@ -100,9 +100,9 @@ public function withData(Data|array|null $data): self
100100
/**
101101
* Error information.
102102
*
103-
* @param APIError|APIErrorShape|null $error
103+
* @param ErrorDetail|ErrorDetailShape|null $error
104104
*/
105-
public function withError(APIError|array|null $error): self
105+
public function withError(ErrorDetail|array|null $error): self
106106
{
107107
$self = clone $this;
108108
$self['error'] = $error;

src/Messages/MessageGetStatusResponse.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
use SentDm\Core\Concerns\SdkModel;
99
use SentDm\Core\Contracts\BaseModel;
1010
use SentDm\Messages\MessageGetStatusResponse\Data;
11-
use SentDm\Webhooks\APIError;
1211
use SentDm\Webhooks\APIMeta;
12+
use SentDm\Webhooks\ErrorDetail;
1313

1414
/**
1515
* Standard API response envelope for all v3 endpoints.
1616
*
1717
* @phpstan-import-type DataShape from \SentDm\Messages\MessageGetStatusResponse\Data
18-
* @phpstan-import-type APIErrorShape from \SentDm\Webhooks\APIError
18+
* @phpstan-import-type ErrorDetailShape from \SentDm\Webhooks\ErrorDetail
1919
* @phpstan-import-type APIMetaShape from \SentDm\Webhooks\APIMeta
2020
*
2121
* @phpstan-type MessageGetStatusResponseShape = array{
2222
* data?: null|Data|DataShape,
23-
* error?: null|APIError|APIErrorShape,
23+
* error?: null|ErrorDetail|ErrorDetailShape,
2424
* meta?: null|APIMeta|APIMetaShape,
2525
* success?: bool|null,
2626
* }
@@ -40,7 +40,7 @@ final class MessageGetStatusResponse implements BaseModel
4040
* Error information.
4141
*/
4242
#[Optional(nullable: true)]
43-
public ?APIError $error;
43+
public ?ErrorDetail $error;
4444

4545
/**
4646
* Request and response metadata.
@@ -65,12 +65,12 @@ public function __construct()
6565
* You must use named parameters to construct any parameters with a default value.
6666
*
6767
* @param Data|DataShape|null $data
68-
* @param APIError|APIErrorShape|null $error
68+
* @param ErrorDetail|ErrorDetailShape|null $error
6969
* @param APIMeta|APIMetaShape|null $meta
7070
*/
7171
public static function with(
7272
Data|array|null $data = null,
73-
APIError|array|null $error = null,
73+
ErrorDetail|array|null $error = null,
7474
APIMeta|array|null $meta = null,
7575
?bool $success = null,
7676
): self {
@@ -100,9 +100,9 @@ public function withData(Data|array|null $data): self
100100
/**
101101
* Error information.
102102
*
103-
* @param APIError|APIErrorShape|null $error
103+
* @param ErrorDetail|ErrorDetailShape|null $error
104104
*/
105-
public function withError(APIError|array|null $error): self
105+
public function withError(ErrorDetail|array|null $error): self
106106
{
107107
$self = clone $this;
108108
$self['error'] = $error;

src/Messages/MessageSendResponse.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
use SentDm\Core\Concerns\SdkModel;
99
use SentDm\Core\Contracts\BaseModel;
1010
use SentDm\Messages\MessageSendResponse\Data;
11-
use SentDm\Webhooks\APIError;
1211
use SentDm\Webhooks\APIMeta;
12+
use SentDm\Webhooks\ErrorDetail;
1313

1414
/**
1515
* Standard API response envelope for all v3 endpoints.
1616
*
1717
* @phpstan-import-type DataShape from \SentDm\Messages\MessageSendResponse\Data
18-
* @phpstan-import-type APIErrorShape from \SentDm\Webhooks\APIError
18+
* @phpstan-import-type ErrorDetailShape from \SentDm\Webhooks\ErrorDetail
1919
* @phpstan-import-type APIMetaShape from \SentDm\Webhooks\APIMeta
2020
*
2121
* @phpstan-type MessageSendResponseShape = array{
2222
* data?: null|Data|DataShape,
23-
* error?: null|APIError|APIErrorShape,
23+
* error?: null|ErrorDetail|ErrorDetailShape,
2424
* meta?: null|APIMeta|APIMetaShape,
2525
* success?: bool|null,
2626
* }
@@ -40,7 +40,7 @@ final class MessageSendResponse implements BaseModel
4040
* Error information.
4141
*/
4242
#[Optional(nullable: true)]
43-
public ?APIError $error;
43+
public ?ErrorDetail $error;
4444

4545
/**
4646
* Request and response metadata.
@@ -65,12 +65,12 @@ public function __construct()
6565
* You must use named parameters to construct any parameters with a default value.
6666
*
6767
* @param Data|DataShape|null $data
68-
* @param APIError|APIErrorShape|null $error
68+
* @param ErrorDetail|ErrorDetailShape|null $error
6969
* @param APIMeta|APIMetaShape|null $meta
7070
*/
7171
public static function with(
7272
Data|array|null $data = null,
73-
APIError|array|null $error = null,
73+
ErrorDetail|array|null $error = null,
7474
APIMeta|array|null $meta = null,
7575
?bool $success = null,
7676
): self {
@@ -100,9 +100,9 @@ public function withData(Data|array|null $data): self
100100
/**
101101
* Error information.
102102
*
103-
* @param APIError|APIErrorShape|null $error
103+
* @param ErrorDetail|ErrorDetailShape|null $error
104104
*/
105-
public function withError(APIError|array|null $error): self
105+
public function withError(ErrorDetail|array|null $error): self
106106
{
107107
$self = clone $this;
108108
$self['error'] = $error;

0 commit comments

Comments
 (0)