Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Mar 27, 2024
1 parent 70b23eb commit d3e8a75
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

Types:

- <code><a href="./src/resources/call.ts">CallDetailResponse</a></code>
- <code><a href="./src/resources/call.ts">CallResponse</a></code>
- <code><a href="./src/resources/call.ts">CallCreateResponse</a></code>
- <code><a href="./src/resources/call.ts">CallListResponse</a></code>
- <code><a href="./src/resources/call.ts">CallRegisterResponse</a></code>

Methods:

- <code title="post /create-phone-call">client.call.<a href="./src/resources/call.ts">create</a>({ ...params }) -> CallCreateResponse</code>
- <code title="get /get-call/{call_id}">client.call.<a href="./src/resources/call.ts">retrieve</a>(callId) -> CallDetailResponse</code>
- <code title="get /get-call/{call_id}">client.call.<a href="./src/resources/call.ts">retrieve</a>(callId) -> CallResponse</code>
- <code title="get /list-calls">client.call.<a href="./src/resources/call.ts">list</a>({ ...params }) -> CallListResponse</code>
- <code title="post /register-call">client.call.<a href="./src/resources/call.ts">register</a>({ ...params }) -> CallRegisterResponse</code>

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export namespace Retell {
export import RequestOptions = Core.RequestOptions;

export import Call = API.Call;
export import CallDetailResponse = API.CallDetailResponse;
export import CallResponse = API.CallResponse;
export import CallCreateResponse = API.CallCreateResponse;
export import CallListResponse = API.CallListResponse;
export import CallRegisterResponse = API.CallRegisterResponse;
Expand Down
8 changes: 4 additions & 4 deletions src/resources/call.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class Call extends APIResource {
/**
* Retrieve details of a specific call
*/
retrieve(callId: string, options?: Core.RequestOptions): Core.APIPromise<CallDetailResponse> {
retrieve(callId: string, options?: Core.RequestOptions): Core.APIPromise<CallResponse> {
return this._client.get(`/get-call/${callId}`, options);
}

Expand All @@ -43,7 +43,7 @@ export class Call extends APIResource {
}
}

export interface CallDetailResponse {
export interface CallResponse {
/**
* Corresponding agent id of this call.
*/
Expand Down Expand Up @@ -261,7 +261,7 @@ export interface CallCreateResponse {
to_number?: string;
}

export type CallListResponse = Array<CallDetailResponse>;
export type CallListResponse = Array<CallResponse>;

export interface CallRegisterResponse {
/**
Expand Down Expand Up @@ -532,7 +532,7 @@ export interface CallRegisterParams {
}

export namespace Call {
export import CallDetailResponse = CallAPI.CallDetailResponse;
export import CallResponse = CallAPI.CallResponse;
export import CallCreateResponse = CallAPI.CallCreateResponse;
export import CallListResponse = CallAPI.CallListResponse;
export import CallRegisterResponse = CallAPI.CallRegisterResponse;
Expand Down
2 changes: 1 addition & 1 deletion src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

export { AgentResponse, AgentListResponse, AgentCreateParams, AgentUpdateParams, Agent } from './agent';
export {
CallDetailResponse,
CallResponse,
CallCreateResponse,
CallListResponse,
CallRegisterResponse,
Expand Down

0 comments on commit d3e8a75

Please sign in to comment.