@surgeapi/node 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/client.d.mts +16 -16
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +16 -16
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +2 -2
  8. package/client.mjs.map +1 -1
  9. package/internal/to-file.d.mts +1 -1
  10. package/internal/to-file.d.ts +1 -1
  11. package/internal/to-file.js +1 -1
  12. package/internal/to-file.mjs +1 -1
  13. package/package.json +1 -1
  14. package/resources/accounts.d.mts +292 -191
  15. package/resources/accounts.d.mts.map +1 -1
  16. package/resources/accounts.d.ts +292 -191
  17. package/resources/accounts.d.ts.map +1 -1
  18. package/resources/blasts.d.mts +11 -32
  19. package/resources/blasts.d.mts.map +1 -1
  20. package/resources/blasts.d.ts +11 -32
  21. package/resources/blasts.d.ts.map +1 -1
  22. package/resources/blasts.js.map +1 -1
  23. package/resources/blasts.mjs.map +1 -1
  24. package/resources/campaigns.d.mts +1 -103
  25. package/resources/campaigns.d.mts.map +1 -1
  26. package/resources/campaigns.d.ts +1 -103
  27. package/resources/campaigns.d.ts.map +1 -1
  28. package/resources/contacts.d.mts +1 -28
  29. package/resources/contacts.d.mts.map +1 -1
  30. package/resources/contacts.d.ts +1 -28
  31. package/resources/contacts.d.ts.map +1 -1
  32. package/resources/index.d.mts +8 -8
  33. package/resources/index.d.mts.map +1 -1
  34. package/resources/index.d.ts +8 -8
  35. package/resources/index.d.ts.map +1 -1
  36. package/resources/index.js.map +1 -1
  37. package/resources/index.mjs +2 -2
  38. package/resources/index.mjs.map +1 -1
  39. package/resources/messages.d.mts +49 -81
  40. package/resources/messages.d.mts.map +1 -1
  41. package/resources/messages.d.ts +49 -81
  42. package/resources/messages.d.ts.map +1 -1
  43. package/resources/messages.js.map +1 -1
  44. package/resources/messages.mjs.map +1 -1
  45. package/resources/phone-numbers.d.mts +0 -30
  46. package/resources/phone-numbers.d.mts.map +1 -1
  47. package/resources/phone-numbers.d.ts +0 -30
  48. package/resources/phone-numbers.d.ts.map +1 -1
  49. package/resources/users.d.mts +1 -33
  50. package/resources/users.d.mts.map +1 -1
  51. package/resources/users.d.ts +1 -33
  52. package/resources/users.d.ts.map +1 -1
  53. package/resources/verifications.d.mts +1 -19
  54. package/resources/verifications.d.mts.map +1 -1
  55. package/resources/verifications.d.ts +1 -19
  56. package/resources/verifications.d.ts.map +1 -1
  57. package/resources/webhooks.d.mts +60 -41
  58. package/resources/webhooks.d.mts.map +1 -1
  59. package/resources/webhooks.d.ts +60 -41
  60. package/resources/webhooks.d.ts.map +1 -1
  61. package/src/client.ts +12 -43
  62. package/src/internal/to-file.ts +1 -1
  63. package/src/resources/accounts.ts +475 -284
  64. package/src/resources/blasts.ts +11 -42
  65. package/src/resources/campaigns.ts +1 -127
  66. package/src/resources/contacts.ts +0 -31
  67. package/src/resources/index.ts +8 -23
  68. package/src/resources/messages.ts +54 -99
  69. package/src/resources/phone-numbers.ts +0 -34
  70. package/src/resources/users.ts +0 -37
  71. package/src/resources/verifications.ts +1 -22
  72. package/src/resources/webhooks.ts +72 -39
  73. package/src/version.ts +1 -1
  74. package/version.d.mts +1 -1
  75. package/version.d.ts +1 -1
  76. package/version.js +1 -1
  77. package/version.mjs +1 -1
@@ -1,7 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
- import * as MessagesAPI from './messages';
5
4
  import { APIPromise } from '../core/api-promise';
6
5
  import { RequestOptions } from '../internal/request-options';
7
6
  import { path } from '../internal/utils/path';
@@ -58,11 +57,8 @@ export namespace Blast {
58
57
  }
59
58
  }
60
59
 
61
- /**
62
- * Parameters for creating a Blast
63
- */
64
- export interface BlastParams {
65
- attachments?: Array<MessagesAPI.AttachmentParams>;
60
+ export interface BlastCreateParams {
61
+ attachments?: Array<BlastCreateParams.Attachment>;
66
62
 
67
63
  /**
68
64
  * The message body.
@@ -96,45 +92,18 @@ export interface BlastParams {
96
92
  to?: Array<string>;
97
93
  }
98
94
 
99
- export interface BlastCreateParams {
100
- attachments?: Array<MessagesAPI.AttachmentParams>;
101
-
102
- /**
103
- * The message body.
104
- */
105
- body?: string;
106
-
107
- /**
108
- * @deprecated Deprecated. Use `to` instead.
109
- */
110
- contacts?: Array<string>;
111
-
112
- /**
113
- * Optional name for the blast.
114
- */
115
- name?: string;
116
-
117
- /**
118
- * @deprecated Deprecated. Use `to` instead.
119
- */
120
- segments?: Array<string>;
121
-
95
+ export namespace BlastCreateParams {
122
96
  /**
123
- * When to send the blast. If not provided, sends immediately.
97
+ * Params for creating an attachment
124
98
  */
125
- send_at?: string;
126
-
127
- /**
128
- * List of recipients to whom the blast should be sent. This can be a combination
129
- * of contact IDs, segment IDs, and phone numbers.
130
- */
131
- to?: Array<string>;
99
+ export interface Attachment {
100
+ /**
101
+ * The URL of the attachment.
102
+ */
103
+ url: string;
104
+ }
132
105
  }
133
106
 
134
107
  export declare namespace Blasts {
135
- export {
136
- type Blast as Blast,
137
- type BlastParams as BlastParams,
138
- type BlastCreateParams as BlastCreateParams,
139
- };
108
+ export { type Blast as Blast, type BlastCreateParams as BlastCreateParams };
140
109
  }
@@ -167,128 +167,6 @@ export interface Campaign {
167
167
  terms_and_conditions_url?: string;
168
168
  }
169
169
 
170
- /**
171
- * Parameters for creating a new campaign
172
- */
173
- export interface CampaignParams {
174
- /**
175
- * A string explaining the method through which end users will opt in to receive
176
- * messages from the brand. Typically this should include URLs for opt-in forms or
177
- * screenshots that might be helpful in explaining the flow to someone unfamiliar
178
- * with the organization's purpose.
179
- */
180
- consent_flow: string;
181
-
182
- /**
183
- * An explanation of the organization's purpose and how it will be using text
184
- * messaging to accomplish that purpose.
185
- */
186
- description: string;
187
-
188
- /**
189
- * An array of 2-5 strings with examples of the messages that will be sent from
190
- * this campaign. Typically the first sample should be a compliance message like
191
- * `You are now opted in to messages from {brand name}. Frequency varies. Msg&data rates apply. Reply STOP to opt out.`
192
- * These samples don't necessarily need to be the only templates that will be used
193
- * for the campaign, but they should reflect the purpose of the messages that will
194
- * be sent. Any variable content can be reflected by wrapping it in square brackets
195
- * like `[customer name]`.
196
- */
197
- message_samples: Array<string>;
198
-
199
- /**
200
- * The URL of the privacy policy for the brand in question. This may be a shared
201
- * privacy policy if it's the policy that is displayed to end users when they opt
202
- * in to messaging.
203
- */
204
- privacy_policy_url: string;
205
-
206
- /**
207
- * A list containing 1-5 types of messages that will be sent with this campaign.
208
- *
209
- * The following use cases are typically available to all brands:
210
- *
211
- * - `account_notification` - For sending reminders, alerts, and general
212
- * account-related notifications like booking confirmations or appointment
213
- * reminders.
214
- * - `customer_care` - For account support, troubleshooting, and general customer
215
- * service communication.
216
- * - `delivery_notification` - For notifying customers about the status of product
217
- * or service deliveries.
218
- * - `fraud_alert` - For warning customers about suspicious or potentially
219
- * fraudulent activity.
220
- * - `higher_education` - For messaging related to colleges, universities, and
221
- * school districts outside of K–12.
222
- * - `marketing` - For promotional or advertising messages intended to market
223
- * products or services.
224
- * - `polling_voting` - For conducting surveys, polls, or voting-related messaging.
225
- * - `public_service_announcement` - For raising awareness about social issues or
226
- * important public information.
227
- * - `security_alert` - For alerts related to potential security breaches or
228
- * compromised systems requiring user action.
229
- * - `two_factor_authentication` - For sending one-time passwords or verification
230
- * codes for login or password reset.
231
- *
232
- * For access to special use cases not shown here, reach out to support@surge.app.
233
- */
234
- use_cases: Array<
235
- | 'account_notification'
236
- | 'customer_care'
237
- | 'delivery_notification'
238
- | 'fraud_alert'
239
- | 'higher_education'
240
- | 'marketing'
241
- | 'polling_voting'
242
- | 'public_service_announcement'
243
- | 'security_alert'
244
- | 'two_factor_authentication'
245
- >;
246
-
247
- /**
248
- * This will be one of the following:
249
- *
250
- * - `low` - The campaign will be allowed to send up to 2000 SMS segments to
251
- * T-Mobile customers each day. In this case your platform will be charged for
252
- * the setup fee for a low volume number upon receipt of the API request.
253
- * - `high` - The campaign will be allowed to send up to 200k SMS segments to
254
- * T-Mobile customers each day, depending on the trust score assigned by The
255
- * Campaign Registry. Your platform will be charged for the setup fee for a high
256
- * volume number upon receipt of the API request, and phone numbers will be
257
- * charged as high volume numbers going forward.
258
- */
259
- volume: 'high' | 'low';
260
-
261
- /**
262
- * A list of properties that this campaign should include. These properties can be
263
- * any of the following values:
264
- *
265
- * - `links` - whether the campaign might send links in messages
266
- * - `phone_numbers` - whether the campaign might send phone numbers in messages
267
- * - `age_gated` - whether the campaign contains age gated content (controlled
268
- * substances or adult content)
269
- * - `direct_lending` - whether the campaign contains content related to direct
270
- * lending or other loan arrangements
271
- */
272
- includes?: Array<'links' | 'phone_numbers' | 'age_gated' | 'direct_lending'>;
273
-
274
- /**
275
- * A sample link that might be sent by this campaign. If links from other domains
276
- * are sent through this campaign, they are much more likely to be filtered by the
277
- * carriers. If link shortening is enabled for the account, the link shortener URL
278
- * will be used instead of what is provided. Reach out to support if you would like
279
- * to disable automatic link shortening.
280
- */
281
- link_sample?: string;
282
-
283
- /**
284
- * The URL of the terms and conditions presented to end users when they opt in to
285
- * messaging. These terms and conditions may be shared among all of a platform's
286
- * customers if they're the terms that are presented to end users when they opt in
287
- * to messaging.
288
- */
289
- terms_and_conditions_url?: string;
290
- }
291
-
292
170
  export interface CampaignCreateParams {
293
171
  /**
294
172
  * A string explaining the method through which end users will opt in to receive
@@ -409,9 +287,5 @@ export interface CampaignCreateParams {
409
287
  }
410
288
 
411
289
  export declare namespace Campaigns {
412
- export {
413
- type Campaign as Campaign,
414
- type CampaignParams as CampaignParams,
415
- type CampaignCreateParams as CampaignCreateParams,
416
- };
290
+ export { type Campaign as Campaign, type CampaignCreateParams as CampaignCreateParams };
417
291
  }
@@ -87,36 +87,6 @@ export interface Contact {
87
87
  metadata?: { [key: string]: string };
88
88
  }
89
89
 
90
- /**
91
- * Parameters for creating a contact
92
- */
93
- export interface ContactParams {
94
- /**
95
- * The contact's phone number in E.164 format.
96
- */
97
- phone_number: string;
98
-
99
- /**
100
- * The contact's email address.
101
- */
102
- email?: string;
103
-
104
- /**
105
- * The contact's first name.
106
- */
107
- first_name?: string;
108
-
109
- /**
110
- * The contact's last name.
111
- */
112
- last_name?: string;
113
-
114
- /**
115
- * Set of key-value pairs that will be stored with the object.
116
- */
117
- metadata?: { [key: string]: string };
118
- }
119
-
120
90
  export interface ContactCreateParams {
121
91
  /**
122
92
  * The contact's phone number in E.164 format.
@@ -174,7 +144,6 @@ export interface ContactUpdateParams {
174
144
  export declare namespace Contacts {
175
145
  export {
176
146
  type Contact as Contact,
177
- type ContactParams as ContactParams,
178
147
  type ContactCreateParams as ContactCreateParams,
179
148
  type ContactUpdateParams as ContactUpdateParams,
180
149
  };
@@ -4,36 +4,20 @@ export * from './shared';
4
4
  export {
5
5
  Accounts,
6
6
  type Account,
7
- type AccountParams,
8
7
  type AccountStatus,
9
- type AccountUpdateParams,
10
8
  type Organization,
11
- type OrganizationParams,
12
9
  type AccountCreateParams,
10
+ type AccountUpdateParams,
13
11
  type AccountRetrieveStatusParams,
14
12
  } from './accounts';
15
- export { Blasts, type Blast, type BlastParams, type BlastCreateParams } from './blasts';
16
- export { Campaigns, type Campaign, type CampaignParams, type CampaignCreateParams } from './campaigns';
17
- export {
18
- Contacts,
19
- type Contact,
20
- type ContactParams,
21
- type ContactCreateParams,
22
- type ContactUpdateParams,
23
- } from './contacts';
24
- export {
25
- Messages,
26
- type AttachmentParams,
27
- type Message,
28
- type MessageParams,
29
- type MessageCreateParams,
30
- } from './messages';
13
+ export { Blasts, type Blast, type BlastCreateParams } from './blasts';
14
+ export { Campaigns, type Campaign, type CampaignCreateParams } from './campaigns';
15
+ export { Contacts, type Contact, type ContactCreateParams, type ContactUpdateParams } from './contacts';
16
+ export { Messages, type Message, type MessageCreateParams } from './messages';
31
17
  export { PhoneNumbers, type PhoneNumber, type PhoneNumberPurchaseParams } from './phone-numbers';
32
18
  export {
33
19
  Users,
34
20
  type User,
35
- type UserParams,
36
- type UserTokenParams,
37
21
  type UserTokenResponse,
38
22
  type UserCreateParams,
39
23
  type UserUpdateParams,
@@ -43,14 +27,15 @@ export {
43
27
  Verifications,
44
28
  type Verification,
45
29
  type VerificationCheck,
46
- type VerificationCheckParams,
47
- type VerificationParams,
48
30
  type VerificationCreateParams,
31
+ type VerificationCheckParams,
49
32
  } from './verifications';
50
33
  export {
51
34
  Webhooks,
52
35
  type CallEndedWebhookEvent,
53
36
  type CampaignApprovedWebhookEvent,
37
+ type ContactOptedInWebhookEvent,
38
+ type ContactOptedOutWebhookEvent,
54
39
  type ConversationCreatedWebhookEvent,
55
40
  type MessageDeliveredWebhookEvent,
56
41
  type MessageFailedWebhookEvent,
@@ -1,7 +1,6 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../core/resource';
4
- import * as MessagesAPI from './messages';
5
4
  import * as ContactsAPI from './contacts';
6
5
  import { APIPromise } from '../core/api-promise';
7
6
  import { RequestOptions } from '../internal/request-options';
@@ -52,16 +51,6 @@ export class Messages extends APIResource {
52
51
  }
53
52
  }
54
53
 
55
- /**
56
- * Params for creating an attachment
57
- */
58
- export interface AttachmentParams {
59
- /**
60
- * The URL of the attachment.
61
- */
62
- url: string;
63
- }
64
-
65
54
  /**
66
55
  * A Message is a communication sent to a Contact.
67
56
  */
@@ -148,18 +137,11 @@ export namespace Message {
148
137
  }
149
138
  }
150
139
 
151
- /**
152
- * Payload for creating a message. Either an attachment or the body must be given.
153
- * You can specify the recipient either using the 'conversation' parameter or the
154
- * 'to'/'from' parameters, but not both.
155
- */
156
- export type MessageParams = MessageParams.MessageParamsWithConversation | MessageParams.SimpleMessageParams;
140
+ export type MessageCreateParams =
141
+ | MessageCreateParams.MessageParamsWithConversation
142
+ | MessageCreateParams.SimpleMessageParams;
157
143
 
158
- export namespace MessageParams {
159
- /**
160
- * Create a message while including parameters for the conversation in which the
161
- * message should be sent.
162
- */
144
+ export declare namespace MessageCreateParams {
163
145
  export interface MessageParamsWithConversation {
164
146
  /**
165
147
  * Params for selecting or creating a new conversation. Either the id or the
@@ -167,7 +149,7 @@ export namespace MessageParams {
167
149
  */
168
150
  conversation: MessageParamsWithConversation.Conversation;
169
151
 
170
- attachments?: Array<MessagesAPI.AttachmentParams>;
152
+ attachments?: Array<MessageParamsWithConversation.Attachment>;
171
153
 
172
154
  /**
173
155
  * The message body.
@@ -190,7 +172,7 @@ export namespace MessageParams {
190
172
  /**
191
173
  * Parameters for creating a contact
192
174
  */
193
- contact: ContactsAPI.ContactParams;
175
+ contact: Conversation.Contact;
194
176
 
195
177
  /**
196
178
  * The phone number from which to send the message. This can be either the phone
@@ -198,81 +180,47 @@ export namespace MessageParams {
198
180
  */
199
181
  phone_number?: string;
200
182
  }
201
- }
202
-
203
- /**
204
- * Create a basic message by specifying just the to/from phone numbers.
205
- */
206
- export interface SimpleMessageParams {
207
- /**
208
- * The recipient's phone number in E.164 format. Cannot be used together with
209
- * 'conversation'.
210
- */
211
- to: string;
212
-
213
- attachments?: Array<MessagesAPI.AttachmentParams>;
214
-
215
- /**
216
- * The message body.
217
- */
218
- body?: string;
219
-
220
- /**
221
- * The sender's phone number in E.164 format or phone number ID. If omitted, uses
222
- * the account's default phone number. Cannot be used together with 'conversation'.
223
- */
224
- from?: string;
225
-
226
- /**
227
- * An optional datetime for scheduling message up to a couple of months in the
228
- * future.
229
- */
230
- send_at?: string;
231
- }
232
- }
233
183
 
234
- export type MessageCreateParams =
235
- | MessageCreateParams.MessageParamsWithConversation
236
- | MessageCreateParams.SimpleMessageParams;
237
-
238
- export declare namespace MessageCreateParams {
239
- export interface MessageParamsWithConversation {
240
- /**
241
- * Params for selecting or creating a new conversation. Either the id or the
242
- * Contact must be given.
243
- */
244
- conversation: MessageParamsWithConversation.Conversation;
245
-
246
- attachments?: Array<AttachmentParams>;
247
-
248
- /**
249
- * The message body.
250
- */
251
- body?: string;
252
-
253
- /**
254
- * An optional datetime for scheduling message up to a couple of months in the
255
- * future.
256
- */
257
- send_at?: string;
258
- }
259
-
260
- export namespace MessageParamsWithConversation {
261
- /**
262
- * Params for selecting or creating a new conversation. Either the id or the
263
- * Contact must be given.
264
- */
265
- export interface Conversation {
184
+ export namespace Conversation {
266
185
  /**
267
186
  * Parameters for creating a contact
268
187
  */
269
- contact: ContactsAPI.ContactParams;
188
+ export interface Contact {
189
+ /**
190
+ * The contact's phone number in E.164 format.
191
+ */
192
+ phone_number: string;
193
+
194
+ /**
195
+ * The contact's email address.
196
+ */
197
+ email?: string;
198
+
199
+ /**
200
+ * The contact's first name.
201
+ */
202
+ first_name?: string;
203
+
204
+ /**
205
+ * The contact's last name.
206
+ */
207
+ last_name?: string;
208
+
209
+ /**
210
+ * Set of key-value pairs that will be stored with the object.
211
+ */
212
+ metadata?: { [key: string]: string };
213
+ }
214
+ }
270
215
 
216
+ /**
217
+ * Params for creating an attachment
218
+ */
219
+ export interface Attachment {
271
220
  /**
272
- * The phone number from which to send the message. This can be either the phone
273
- * number in E.164 format or a Surge phone number id.
221
+ * The URL of the attachment.
274
222
  */
275
- phone_number?: string;
223
+ url: string;
276
224
  }
277
225
  }
278
226
 
@@ -283,7 +231,7 @@ export declare namespace MessageCreateParams {
283
231
  */
284
232
  to: string;
285
233
 
286
- attachments?: Array<AttachmentParams>;
234
+ attachments?: Array<SimpleMessageParams.Attachment>;
287
235
 
288
236
  /**
289
237
  * The message body.
@@ -302,13 +250,20 @@ export declare namespace MessageCreateParams {
302
250
  */
303
251
  send_at?: string;
304
252
  }
253
+
254
+ export namespace SimpleMessageParams {
255
+ /**
256
+ * Params for creating an attachment
257
+ */
258
+ export interface Attachment {
259
+ /**
260
+ * The URL of the attachment.
261
+ */
262
+ url: string;
263
+ }
264
+ }
305
265
  }
306
266
 
307
267
  export declare namespace Messages {
308
- export {
309
- type AttachmentParams as AttachmentParams,
310
- type Message as Message,
311
- type MessageParams as MessageParams,
312
- type MessageCreateParams as MessageCreateParams,
313
- };
268
+ export { type Message as Message, type MessageCreateParams as MessageCreateParams };
314
269
  }
@@ -46,40 +46,6 @@ export interface PhoneNumber {
46
46
  type: 'local' | 'toll_free';
47
47
  }
48
48
 
49
- /**
50
- * Parameters for purchasing a new phone number. The system will automatically
51
- * infer the type in certain cases:
52
- *
53
- * - If only area_code is provided, type is inferred from the area code
54
- * - If only latitude/longitude are provided, type is inferred as 'local'
55
- * - Otherwise, type must be explicitly specified
56
- */
57
- export interface PhoneNumberPurchaseParams {
58
- /**
59
- * The desired area code for this phone number. If provided without type, the type
60
- * will be inferred.
61
- */
62
- area_code?: string;
63
-
64
- /**
65
- * Latitude to search for nearby phone numbers. Must be used with longitude. If
66
- * provided without type, type will be inferred as 'local'.
67
- */
68
- latitude?: number;
69
-
70
- /**
71
- * Longitude to search for nearby phone numbers. Must be used with latitude. If
72
- * provided without type, type will be inferred as 'local'.
73
- */
74
- longitude?: number;
75
-
76
- /**
77
- * Whether the phone number is local or toll-free. Can be omitted if area_code or
78
- * latitude/longitude are provided.
79
- */
80
- type?: 'local' | 'toll_free';
81
- }
82
-
83
49
  export interface PhoneNumberPurchaseParams {
84
50
  /**
85
51
  * The desired area code for this phone number. If provided without type, the type
@@ -100,41 +100,6 @@ export interface User {
100
100
  photo_url?: string;
101
101
  }
102
102
 
103
- /**
104
- * POST body for creating a user
105
- */
106
- export interface UserParams {
107
- /**
108
- * The user's first name.
109
- */
110
- first_name: string;
111
-
112
- /**
113
- * The user's last name.
114
- */
115
- last_name?: string;
116
-
117
- /**
118
- * Set of key-value pairs that will be stored with the object.
119
- */
120
- metadata?: { [key: string]: string };
121
-
122
- /**
123
- * URL of a photo to be used as the user's avatar.
124
- */
125
- photo_url?: string;
126
- }
127
-
128
- /**
129
- * A request to create a token
130
- */
131
- export interface UserTokenParams {
132
- /**
133
- * For how many seconds the token should be accepted. Defaults to 15 minutes.
134
- */
135
- duration_seconds?: number;
136
- }
137
-
138
103
  /**
139
104
  * Response when token has been created successfully
140
105
  */
@@ -199,8 +164,6 @@ export interface UserCreateTokenParams {
199
164
  export declare namespace Users {
200
165
  export {
201
166
  type User as User,
202
- type UserParams as UserParams,
203
- type UserTokenParams as UserTokenParams,
204
167
  type UserTokenResponse as UserTokenResponse,
205
168
  type UserCreateParams as UserCreateParams,
206
169
  type UserUpdateParams as UserUpdateParams,
@@ -76,26 +76,6 @@ export interface VerificationCheck {
76
76
  verification?: Verification;
77
77
  }
78
78
 
79
- /**
80
- * Parameters for checking a Verification code
81
- */
82
- export interface VerificationCheckParams {
83
- /**
84
- * The Verification code that was received.
85
- */
86
- code: string;
87
- }
88
-
89
- /**
90
- * Parameters for creating a Verification
91
- */
92
- export interface VerificationParams {
93
- /**
94
- * The phone number to be verified. In E.164 format.
95
- */
96
- phone_number: string;
97
- }
98
-
99
79
  export interface VerificationCreateParams {
100
80
  /**
101
81
  * The phone number to be verified. In E.164 format.
@@ -114,8 +94,7 @@ export declare namespace Verifications {
114
94
  export {
115
95
  type Verification as Verification,
116
96
  type VerificationCheck as VerificationCheck,
117
- type VerificationCheckParams as VerificationCheckParams,
118
- type VerificationParams as VerificationParams,
119
97
  type VerificationCreateParams as VerificationCreateParams,
98
+ type VerificationCheckParams as VerificationCheckParams,
120
99
  };
121
100
  }