Skip to content

Commit 33e5709

Browse files
feat(api): manual updates
1 parent 429b8a8 commit 33e5709

13 files changed

Lines changed: 52 additions & 53 deletions

File tree

.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

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Types:
44

5-
- <code><a href="./src/resources/webhooks.ts">APIError</a></code>
65
- <code><a href="./src/resources/webhooks.ts">APIMeta</a></code>
76
- <code><a href="./src/resources/webhooks.ts">APIResponseWebhook</a></code>
7+
- <code><a href="./src/resources/webhooks.ts">ErrorDetail</a></code>
88
- <code><a href="./src/resources/webhooks.ts">MutationRequest</a></code>
99
- <code><a href="./src/resources/webhooks.ts">PaginationMeta</a></code>
1010
- <code><a href="./src/resources/webhooks.ts">WebhookResponse</a></code>

src/client.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
import { APIError } from './core/error';
43
import type { RequestInit, RequestInfo, BodyInit } from './internal/builtin-types';
54
import type { HTTPMethod, PromiseOrValue, MergedRequestInit, FinalizedRequestInit } from './internal/types';
65
import { uuid4 } from './internal/utils/uuid';
@@ -72,9 +71,9 @@ import {
7271
Users,
7372
} from './resources/users';
7473
import {
75-
APIError,
7674
APIMeta,
7775
APIResponseWebhook,
76+
ErrorDetail,
7877
MutationRequest,
7978
PaginationMeta,
8079
WebhookCreateParams,
@@ -865,9 +864,9 @@ export declare namespace SentDm {
865864

866865
export {
867866
Webhooks as Webhooks,
868-
type APIError as APIError,
869867
type APIMeta as APIMeta,
870868
type APIResponseWebhook as APIResponseWebhook,
869+
type ErrorDetail as ErrorDetail,
871870
type MutationRequest as MutationRequest,
872871
type PaginationMeta as PaginationMeta,
873872
type WebhookResponse as WebhookResponse,

src/resources/contacts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export interface APIResponseOfContact {
154154
/**
155155
* Error information
156156
*/
157-
error?: WebhooksAPI.APIError | null;
157+
error?: WebhooksAPI.ErrorDetail | null;
158158

159159
/**
160160
* Request and response metadata
@@ -254,7 +254,7 @@ export interface ContactListResponse {
254254
/**
255255
* Error information
256256
*/
257-
error?: WebhooksAPI.APIError | null;
257+
error?: WebhooksAPI.ErrorDetail | null;
258258

259259
/**
260260
* Request and response metadata

src/resources/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ export {
7777
} from './users';
7878
export {
7979
Webhooks,
80-
type APIError,
8180
type APIMeta,
8281
type APIResponseWebhook,
82+
type ErrorDetail,
8383
type MutationRequest,
8484
type PaginationMeta,
8585
type WebhookResponse,

src/resources/me.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export interface MeRetrieveResponse {
9797
/**
9898
* Error information
9999
*/
100-
error?: WebhooksAPI.APIError | null;
100+
error?: WebhooksAPI.ErrorDetail | null;
101101

102102
/**
103103
* Request and response metadata

src/resources/messages.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export interface MessageRetrieveActivitiesResponse {
103103
/**
104104
* Error information
105105
*/
106-
error?: WebhooksAPI.APIError | null;
106+
error?: WebhooksAPI.ErrorDetail | null;
107107

108108
/**
109109
* Request and response metadata
@@ -179,7 +179,7 @@ export interface MessageRetrieveStatusResponse {
179179
/**
180180
* Error information
181181
*/
182-
error?: WebhooksAPI.APIError | null;
182+
error?: WebhooksAPI.ErrorDetail | null;
183183

184184
/**
185185
* Request and response metadata
@@ -282,7 +282,7 @@ export interface MessageSendResponse {
282282
/**
283283
* Error information
284284
*/
285-
error?: WebhooksAPI.APIError | null;
285+
error?: WebhooksAPI.ErrorDetail | null;
286286

287287
/**
288288
* Request and response metadata

src/resources/numbers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export interface NumberLookupResponse {
5151
/**
5252
* Error information
5353
*/
54-
error?: WebhooksAPI.APIError | null;
54+
error?: WebhooksAPI.ErrorDetail | null;
5555

5656
/**
5757
* Request and response metadata

src/resources/profiles/campaigns.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ export interface APIResponseOfTcrCampaignWithUseCases {
175175
/**
176176
* Error information
177177
*/
178-
error?: WebhooksAPI.APIError | null;
178+
error?: WebhooksAPI.ErrorDetail | null;
179179

180180
/**
181181
* Request and response metadata
@@ -378,7 +378,7 @@ export interface CampaignListResponse {
378378
/**
379379
* Error information
380380
*/
381-
error?: WebhooksAPI.APIError | null;
381+
error?: WebhooksAPI.ErrorDetail | null;
382382

383383
/**
384384
* Request and response metadata

src/resources/profiles/profiles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ export interface APIResponseOfProfileDetail {
264264
/**
265265
* Error information
266266
*/
267-
error?: WebhooksAPI.APIError | null;
267+
error?: WebhooksAPI.ErrorDetail | null;
268268

269269
/**
270270
* Request and response metadata
@@ -886,7 +886,7 @@ export interface ProfileListResponse {
886886
/**
887887
* Error information
888888
*/
889-
error?: WebhooksAPI.APIError | null;
889+
error?: WebhooksAPI.ErrorDetail | null;
890890

891891
/**
892892
* Request and response metadata

0 commit comments

Comments
 (0)