Skip to content

Commit 32f323e

Browse files
committed
feat(api): update via SDK Studio
1 parent fcc19bb commit 32f323e

File tree

5 files changed

+5
-41
lines changed

5 files changed

+5
-41
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 15
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-b360b4f9139959a439894d92d41ba2a411296de6e2632079e00bd1feb3fc31e4.yml
1+
configured_endpoints: 13
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/sent%2Fsent-5276b9a8b8ff6771c5bb1a8310d0be63ddafa9e4806f0d81de21dd7a7a673c1b.yml

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ It is generated with [Stainless](https://www.stainlessapi.com/).
1010

1111
## Documentation
1212

13-
The REST API documentation can be found on [docs.sent.com](https://docs.sent.com). The full API of this library can be found in [api.md](api.md).
13+
The REST API documentation can be found on [sent.dm](https://sent.dm/docs). The full API of this library can be found in [api.md](api.md).
1414

1515
## Installation
1616

api.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,6 @@
44
from sent.types import SentDmServicesContractsDataContactDto
55
```
66

7-
# Contact
8-
9-
## ID
10-
11-
Methods:
12-
13-
- <code title="get /contact/{customerId}/id/{id}">client.contact.id.<a href="./src/sent/resources/contact/id.py">retrieve</a>(id, \*, customer_id) -> <a href="./src/sent/types/shared/sent_dm_services_contracts_data_contact_dto.py">SentDmServicesContractsDataContactDto</a></code>
14-
15-
## Phone
16-
17-
Methods:
18-
19-
- <code title="get /contact/{customerId}/phone/{phoneNumber}">client.contact.phone.<a href="./src/sent/resources/contact/phone.py">retrieve</a>(phone_number, \*, customer_id) -> <a href="./src/sent/types/shared/sent_dm_services_contracts_data_contact_dto.py">SentDmServicesContractsDataContactDto</a></code>
20-
217
# Contacts
228

239
Types:

src/sent/_client.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646

4747

4848
class Sent(SyncAPIClient):
49-
contact: resources.ContactResource
5049
contacts: resources.ContactsResource
5150
messages: resources.MessagesResource
5251
sms: resources.SMSResource
@@ -97,7 +96,7 @@ def __init__(
9796
if base_url is None:
9897
base_url = os.environ.get("SENT_BASE_URL")
9998
if base_url is None:
100-
base_url = f"https://sent-dm-dev.azurewebsites.net"
99+
base_url = f"https://sent.dm"
101100

102101
super().__init__(
103102
version=__version__,
@@ -110,7 +109,6 @@ def __init__(
110109
_strict_response_validation=_strict_response_validation,
111110
)
112111

113-
self.contact = resources.ContactResource(self)
114112
self.contacts = resources.ContactsResource(self)
115113
self.messages = resources.MessagesResource(self)
116114
self.sms = resources.SMSResource(self)
@@ -226,7 +224,6 @@ def _make_status_error(
226224

227225

228226
class AsyncSent(AsyncAPIClient):
229-
contact: resources.AsyncContactResource
230227
contacts: resources.AsyncContactsResource
231228
messages: resources.AsyncMessagesResource
232229
sms: resources.AsyncSMSResource
@@ -277,7 +274,7 @@ def __init__(
277274
if base_url is None:
278275
base_url = os.environ.get("SENT_BASE_URL")
279276
if base_url is None:
280-
base_url = f"https://sent-dm-dev.azurewebsites.net"
277+
base_url = f"https://sent.dm"
281278

282279
super().__init__(
283280
version=__version__,
@@ -290,7 +287,6 @@ def __init__(
290287
_strict_response_validation=_strict_response_validation,
291288
)
292289

293-
self.contact = resources.AsyncContactResource(self)
294290
self.contacts = resources.AsyncContactsResource(self)
295291
self.messages = resources.AsyncMessagesResource(self)
296292
self.sms = resources.AsyncSMSResource(self)
@@ -407,7 +403,6 @@ def _make_status_error(
407403

408404
class SentWithRawResponse:
409405
def __init__(self, client: Sent) -> None:
410-
self.contact = resources.ContactResourceWithRawResponse(client.contact)
411406
self.contacts = resources.ContactsResourceWithRawResponse(client.contacts)
412407
self.messages = resources.MessagesResourceWithRawResponse(client.messages)
413408
self.sms = resources.SMSResourceWithRawResponse(client.sms)
@@ -418,7 +413,6 @@ def __init__(self, client: Sent) -> None:
418413

419414
class AsyncSentWithRawResponse:
420415
def __init__(self, client: AsyncSent) -> None:
421-
self.contact = resources.AsyncContactResourceWithRawResponse(client.contact)
422416
self.contacts = resources.AsyncContactsResourceWithRawResponse(client.contacts)
423417
self.messages = resources.AsyncMessagesResourceWithRawResponse(client.messages)
424418
self.sms = resources.AsyncSMSResourceWithRawResponse(client.sms)
@@ -429,7 +423,6 @@ def __init__(self, client: AsyncSent) -> None:
429423

430424
class SentWithStreamedResponse:
431425
def __init__(self, client: Sent) -> None:
432-
self.contact = resources.ContactResourceWithStreamingResponse(client.contact)
433426
self.contacts = resources.ContactsResourceWithStreamingResponse(client.contacts)
434427
self.messages = resources.MessagesResourceWithStreamingResponse(client.messages)
435428
self.sms = resources.SMSResourceWithStreamingResponse(client.sms)
@@ -440,7 +433,6 @@ def __init__(self, client: Sent) -> None:
440433

441434
class AsyncSentWithStreamedResponse:
442435
def __init__(self, client: AsyncSent) -> None:
443-
self.contact = resources.AsyncContactResourceWithStreamingResponse(client.contact)
444436
self.contacts = resources.AsyncContactsResourceWithStreamingResponse(client.contacts)
445437
self.messages = resources.AsyncMessagesResourceWithStreamingResponse(client.messages)
446438
self.sms = resources.AsyncSMSResourceWithStreamingResponse(client.sms)

src/sent/resources/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
SMSResourceWithStreamingResponse,
99
AsyncSMSResourceWithStreamingResponse,
1010
)
11-
from .contact import (
12-
ContactResource,
13-
AsyncContactResource,
14-
ContactResourceWithRawResponse,
15-
AsyncContactResourceWithRawResponse,
16-
ContactResourceWithStreamingResponse,
17-
AsyncContactResourceWithStreamingResponse,
18-
)
1911
from .contacts import (
2012
ContactsResource,
2113
AsyncContactsResource,
@@ -58,12 +50,6 @@
5850
)
5951

6052
__all__ = [
61-
"ContactResource",
62-
"AsyncContactResource",
63-
"ContactResourceWithRawResponse",
64-
"AsyncContactResourceWithRawResponse",
65-
"ContactResourceWithStreamingResponse",
66-
"AsyncContactResourceWithStreamingResponse",
6753
"ContactsResource",
6854
"AsyncContactsResource",
6955
"ContactsResourceWithRawResponse",

0 commit comments

Comments
 (0)