Skip to content

Commit 4b2819f

Browse files
feat(api): manual updates
1 parent ff241d2 commit 4b2819f

17 files changed

+31
-156
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: 12
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-dm-a02f66b4c3837ff1b6d38b924856b9afad2b3bfbc3152c1b4dfbe1ee895008a5.yml
33
openapi_spec_hash: 30e666a2b17c0768213eaa74e0aec11b
4-
config_hash: ef54ea47c53cc13e90f7867076693e83
4+
config_hash: 804a43c36c8e58c8d0ff2e57dd6545ec

src/Client.php

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use SentDm\Services\ContactsService;
1212
use SentDm\Services\MessagesService;
1313
use SentDm\Services\NumberLookupService;
14-
use SentDm\Services\OrganizationsService;
1514
use SentDm\Services\TemplatesService;
1615

1716
/**
@@ -24,11 +23,6 @@ class Client extends BaseClient
2423

2524
public string $senderID;
2625

27-
/**
28-
* @api
29-
*/
30-
public TemplatesService $templates;
31-
3226
/**
3327
* @api
3428
*/
@@ -42,12 +36,12 @@ class Client extends BaseClient
4236
/**
4337
* @api
4438
*/
45-
public NumberLookupService $numberLookup;
39+
public TemplatesService $templates;
4640

4741
/**
4842
* @api
4943
*/
50-
public OrganizationsService $organizations;
44+
public NumberLookupService $numberLookup;
5145

5246
/**
5347
* @param RequestOpts|null $requestOptions
@@ -89,11 +83,10 @@ public function __construct(
8983
options: $options
9084
);
9185

92-
$this->templates = new TemplatesService($this);
9386
$this->contacts = new ContactsService($this);
9487
$this->messages = new MessagesService($this);
88+
$this->templates = new TemplatesService($this);
9589
$this->numberLookup = new NumberLookupService($this);
96-
$this->organizations = new OrganizationsService($this);
9790
}
9891

9992
/** @return array<string,string> */

src/ServiceContracts/Organizations/UsersContract.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/ServiceContracts/Organizations/UsersRawContract.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/ServiceContracts/OrganizationsContract.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/ServiceContracts/OrganizationsRawContract.php

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/ServiceContracts/TemplatesContract.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use SentDm\RequestOptions;
99
use SentDm\Templates\TemplateDefinition;
1010
use SentDm\Templates\TemplateListResponse;
11-
use SentDm\Templates\TemplateResponse;
11+
use SentDm\Templates\TemplateResponseV2;
1212

1313
/**
1414
* @phpstan-import-type TemplateDefinitionShape from \SentDm\Templates\TemplateDefinition
@@ -34,7 +34,7 @@ public function create(
3434
?string $language = null,
3535
?bool $submitForReview = null,
3636
RequestOptions|array|null $requestOptions = null,
37-
): TemplateResponse;
37+
): TemplateResponseV2;
3838

3939
/**
4040
* @api
@@ -46,7 +46,7 @@ public function create(
4646
public function retrieve(
4747
string $id,
4848
RequestOptions|array|null $requestOptions = null
49-
): TemplateResponse;
49+
): TemplateResponseV2;
5050

5151
/**
5252
* @api

src/ServiceContracts/TemplatesRawContract.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use SentDm\Templates\TemplateCreateParams;
1111
use SentDm\Templates\TemplateListParams;
1212
use SentDm\Templates\TemplateListResponse;
13-
use SentDm\Templates\TemplateResponse;
13+
use SentDm\Templates\TemplateResponseV2;
1414

1515
/**
1616
* @phpstan-import-type RequestOpts from \SentDm\RequestOptions
@@ -23,7 +23,7 @@ interface TemplatesRawContract
2323
* @param array<string,mixed>|TemplateCreateParams $params
2424
* @param RequestOpts|null $requestOptions
2525
*
26-
* @return BaseResponse<TemplateResponse>
26+
* @return BaseResponse<TemplateResponseV2>
2727
*
2828
* @throws APIException
2929
*/
@@ -37,7 +37,7 @@ public function create(
3737
*
3838
* @param RequestOpts|null $requestOptions
3939
*
40-
* @return BaseResponse<TemplateResponse>
40+
* @return BaseResponse<TemplateResponseV2>
4141
*
4242
* @throws APIException
4343
*/

src/Services/Organizations/UsersRawService.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Services/Organizations/UsersService.php

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)