-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessages.ts
42 lines (30 loc) · 1.25 KB
/
messages.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
import * as MessagesAPI from './messages';
export class Messages extends APIResource {
create(body: MessageCreateParams, options?: Core.RequestOptions): Core.APIPromise<unknown> {
return this._client.post('/messages', { body, ...options });
}
phoneNumber(body: MessagePhoneNumberParams, options?: Core.RequestOptions): Core.APIPromise<unknown> {
return this._client.post('/messages/phone-number', { body, ...options });
}
}
export type MessageCreateResponse = unknown;
export type MessagePhoneNumberResponse = unknown;
export interface MessageCreateParams {
contactId?: string;
customerId?: string;
templateId?: string;
}
export interface MessagePhoneNumberParams {
customerId?: string;
phoneNumber?: string;
templateId?: string;
}
export namespace Messages {
export import MessageCreateResponse = MessagesAPI.MessageCreateResponse;
export import MessagePhoneNumberResponse = MessagesAPI.MessagePhoneNumberResponse;
export import MessageCreateParams = MessagesAPI.MessageCreateParams;
export import MessagePhoneNumberParams = MessagesAPI.MessagePhoneNumberParams;
}