@sentdm/sentdm 0.35.0 → 0.37.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 (108) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/client.d.mts +14 -14
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +14 -14
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/contacts.d.mts +85 -589
  10. package/resources/contacts.d.mts.map +1 -1
  11. package/resources/contacts.d.ts +85 -589
  12. package/resources/contacts.d.ts.map +1 -1
  13. package/resources/contacts.js +4 -4
  14. package/resources/contacts.js.map +1 -1
  15. package/resources/contacts.mjs +4 -4
  16. package/resources/contacts.mjs.map +1 -1
  17. package/resources/conversations.d.mts +69 -328
  18. package/resources/conversations.d.mts.map +1 -1
  19. package/resources/conversations.d.ts +69 -328
  20. package/resources/conversations.d.ts.map +1 -1
  21. package/resources/conversations.js +10 -8
  22. package/resources/conversations.js.map +1 -1
  23. package/resources/conversations.mjs +10 -8
  24. package/resources/conversations.mjs.map +1 -1
  25. package/resources/index.d.mts +7 -7
  26. package/resources/index.d.mts.map +1 -1
  27. package/resources/index.d.ts +7 -7
  28. package/resources/index.d.ts.map +1 -1
  29. package/resources/index.js.map +1 -1
  30. package/resources/index.mjs.map +1 -1
  31. package/resources/me.d.mts +81 -129
  32. package/resources/me.d.mts.map +1 -1
  33. package/resources/me.d.ts +81 -129
  34. package/resources/me.d.ts.map +1 -1
  35. package/resources/me.js +11 -0
  36. package/resources/me.js.map +1 -1
  37. package/resources/me.mjs +11 -0
  38. package/resources/me.mjs.map +1 -1
  39. package/resources/messages.d.mts +8 -171
  40. package/resources/messages.d.mts.map +1 -1
  41. package/resources/messages.d.ts +8 -171
  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/numbers.d.mts +3 -42
  46. package/resources/numbers.d.mts.map +1 -1
  47. package/resources/numbers.d.ts +3 -42
  48. package/resources/numbers.d.ts.map +1 -1
  49. package/resources/numbers.js.map +1 -1
  50. package/resources/numbers.mjs.map +1 -1
  51. package/resources/profiles/campaigns.d.mts +149 -544
  52. package/resources/profiles/campaigns.d.mts.map +1 -1
  53. package/resources/profiles/campaigns.d.ts +149 -544
  54. package/resources/profiles/campaigns.d.ts.map +1 -1
  55. package/resources/profiles/index.d.mts +2 -2
  56. package/resources/profiles/index.d.mts.map +1 -1
  57. package/resources/profiles/index.d.ts +2 -2
  58. package/resources/profiles/index.d.ts.map +1 -1
  59. package/resources/profiles/index.js.map +1 -1
  60. package/resources/profiles/index.mjs.map +1 -1
  61. package/resources/profiles/profiles.d.mts +411 -1821
  62. package/resources/profiles/profiles.d.mts.map +1 -1
  63. package/resources/profiles/profiles.d.ts +411 -1821
  64. package/resources/profiles/profiles.d.ts.map +1 -1
  65. package/resources/profiles/profiles.js.map +1 -1
  66. package/resources/profiles/profiles.mjs.map +1 -1
  67. package/resources/templates.d.mts +84 -486
  68. package/resources/templates.d.mts.map +1 -1
  69. package/resources/templates.d.ts +84 -486
  70. package/resources/templates.d.ts.map +1 -1
  71. package/resources/templates.js +3 -3
  72. package/resources/templates.js.map +1 -1
  73. package/resources/templates.mjs +3 -3
  74. package/resources/templates.mjs.map +1 -1
  75. package/resources/users.d.mts +47 -437
  76. package/resources/users.d.mts.map +1 -1
  77. package/resources/users.d.ts +47 -437
  78. package/resources/users.d.ts.map +1 -1
  79. package/resources/users.js +3 -3
  80. package/resources/users.js.map +1 -1
  81. package/resources/users.mjs +3 -3
  82. package/resources/users.mjs.map +1 -1
  83. package/resources/webhooks.d.mts +189 -768
  84. package/resources/webhooks.d.mts.map +1 -1
  85. package/resources/webhooks.d.ts +189 -768
  86. package/resources/webhooks.d.ts.map +1 -1
  87. package/resources/webhooks.js +7 -6
  88. package/resources/webhooks.js.map +1 -1
  89. package/resources/webhooks.mjs +7 -6
  90. package/resources/webhooks.mjs.map +1 -1
  91. package/src/client.ts +52 -39
  92. package/src/resources/contacts.ts +88 -678
  93. package/src/resources/conversations.ts +77 -393
  94. package/src/resources/index.ts +26 -20
  95. package/src/resources/me.ts +94 -148
  96. package/src/resources/messages.ts +8 -194
  97. package/src/resources/numbers.ts +3 -47
  98. package/src/resources/profiles/campaigns.ts +174 -673
  99. package/src/resources/profiles/index.ts +14 -6
  100. package/src/resources/profiles/profiles.ts +529 -2216
  101. package/src/resources/templates.ts +100 -572
  102. package/src/resources/users.ts +48 -505
  103. package/src/resources/webhooks.ts +297 -996
  104. package/src/version.ts +1 -1
  105. package/version.d.mts +1 -1
  106. package/version.d.ts +1 -1
  107. package/version.js +1 -1
  108. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAaoB;AAZlB,oGAAA,QAAQ,OAAA;AAaV,oDAMyB;AALvB,8GAAA,aAAa,OAAA;AAMf,8BAA0E;AAAjE,wFAAA,EAAE,OAAA;AACX,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,wCAAwF;AAA/E,kGAAA,OAAO,OAAA;AAChB,mDAgB6B;AAf3B,oGAAA,QAAQ,OAAA;AAgBV,4CAoBqB;AAnBnB,sGAAA,SAAS,OAAA;AAoBX,oCAWiB;AAVf,8FAAA,KAAK,OAAA;AAWP,0CA2BoB;AA1BlB,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAaoB;AAZlB,oGAAA,QAAQ,OAAA;AAaV,oDAMyB;AALvB,8GAAA,aAAa,OAAA;AAMf,8BAAgG;AAAvF,wFAAA,EAAE,OAAA;AACX,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA;AAQV,wCAAwF;AAA/E,kGAAA,OAAO,OAAA;AAChB,mDAqB6B;AApB3B,oGAAA,QAAQ,OAAA;AAqBV,4CAmBqB;AAlBnB,sGAAA,SAAS,OAAA;AAmBX,oCAUiB;AATf,8FAAA,KAAK,OAAA;AAUP,0CA8BoB;AA7BlB,oGAAA,QAAQ,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,QAAQ,GAYT,uBAAmB;AACpB,OAAO,EACL,aAAa,GAKd,4BAAwB;AACzB,OAAO,EAAE,EAAE,EAAkD,iBAAa;AAC1E,OAAO,EACL,QAAQ,GAOT,uBAAmB;AACpB,OAAO,EAAE,OAAO,EAAsD,sBAAkB;AACxF,OAAO,EACL,QAAQ,GAeT,gCAA4B;AAC7B,OAAO,EACL,SAAS,GAmBV,wBAAoB;AACrB,OAAO,EACL,KAAK,GAUN,oBAAgB;AACjB,OAAO,EACL,QAAQ,GA0BT,uBAAmB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,QAAQ,GAYT,uBAAmB;AACpB,OAAO,EACL,aAAa,GAKd,4BAAwB;AACzB,OAAO,EAAE,EAAE,EAAwE,iBAAa;AAChG,OAAO,EACL,QAAQ,GAOT,uBAAmB;AACpB,OAAO,EAAE,OAAO,EAAsD,sBAAkB;AACxF,OAAO,EACL,QAAQ,GAoBT,gCAA4B;AAC7B,OAAO,EACL,SAAS,GAkBV,wBAAoB;AACrB,OAAO,EACL,KAAK,GASN,oBAAgB;AACjB,OAAO,EACL,QAAQ,GA6BT,uBAAmB"}
@@ -1,4 +1,6 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
+ import * as MeAPI from "./me.mjs";
3
+ import * as WebhooksAPI from "./webhooks.mjs";
2
4
  import { APIPromise } from "../core/api-promise.mjs";
3
5
  import { RequestOptions } from "../internal/request-options.mjs";
4
6
  /**
@@ -23,9 +25,61 @@ export declare class Me extends APIResource {
23
25
  * **Channels:** The `channels` object always includes `sms`, `whatsapp`, and
24
26
  * `rcs`. Each channel has a `configured` boolean. Configured channels expose
25
27
  * additional details such as `phone_number`.
28
+ *
29
+ * **Sending number:** `sending_phone_number` is the account's US SMS sender. It is
30
+ * intentionally the same value as `channels.sms.phone_number` — the two are kept
31
+ * in step, and it is published under both names because `sending_phone_number` is
32
+ * what this value is called on `GET /v3/profiles`. Read either. One difference:
33
+ * `sending_phone_number` is always present, including as `null`, while
34
+ * `channels.sms.phone_number` is omitted when there is no sender.
35
+ *
36
+ * `sending_phone_number_profile_id` names the account that holds that number in
37
+ * inventory — normally this account, and a different one where a number is shared.
38
+ * Both are `null` when the account has no US SMS sender.
26
39
  */
27
40
  retrieve(params?: MeRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<MeRetrieveResponse>;
28
41
  }
42
+ /**
43
+ * Profile configuration settings
44
+ */
45
+ export interface ProfileSettings {
46
+ /**
47
+ * @deprecated Always false. A profile no longer shares contacts with sibling
48
+ * profiles — it sees only what it owns. Retained so existing v3 clients reading
49
+ * allow_contact_sharing keep deserializing; it carries no information.
50
+ */
51
+ allow_contact_sharing?: boolean | null;
52
+ /**
53
+ * @deprecated Always false. A profile no longer shares templates with sibling
54
+ * profiles. Retained so existing v3 clients reading allow_template_sharing keep
55
+ * deserializing; it carries no information.
56
+ */
57
+ allow_template_sharing?: boolean | null;
58
+ /**
59
+ * Billing model: profile, organization, or profile_and_organization
60
+ */
61
+ billing_model?: string | null;
62
+ /**
63
+ * @deprecated Always false. A profile no longer inherits its organization's
64
+ * contacts. Retained so existing v3 clients reading inherit_contacts keep
65
+ * deserializing; it carries no information.
66
+ */
67
+ inherit_contacts?: boolean | null;
68
+ /**
69
+ * Whether this profile inherits TCR brand from the organization
70
+ */
71
+ inherit_tcr_brand?: boolean | null;
72
+ /**
73
+ * Whether this profile inherits TCR campaign from the organization
74
+ */
75
+ inherit_tcr_campaign?: boolean | null;
76
+ /**
77
+ * @deprecated Always false. A profile no longer inherits its organization's
78
+ * templates. Retained so existing v3 clients reading inherit_templates keep
79
+ * deserializing; it carries no information.
80
+ */
81
+ inherit_templates?: boolean | null;
82
+ }
29
83
  /**
30
84
  * Standard API response envelope for all v3 endpoints
31
85
  */
@@ -39,11 +93,11 @@ export interface MeRetrieveResponse {
39
93
  /**
40
94
  * Error information
41
95
  */
42
- error?: MeRetrieveResponse.Error | null;
96
+ error?: WebhooksAPI.ErrorDetail | null;
43
97
  /**
44
98
  * Request and response metadata
45
99
  */
46
- meta?: MeRetrieveResponse.Meta;
100
+ meta?: WebhooksAPI.APIMeta;
47
101
  /**
48
102
  * Indicates whether the request was successful
49
103
  */
@@ -94,10 +148,32 @@ export declare namespace MeRetrieveResponse {
94
148
  * types)
95
149
  */
96
150
  profiles?: Array<Data.Profile>;
151
+ /**
152
+ * The SMS sender this account sends from in the United States, in E.164 form. Null
153
+ * when the account has no US SMS sender.
154
+ *
155
+ * The same value as channels.sms.phone_number, published under both names on
156
+ * purpose: sending_phone_number is what this value is already called on GET
157
+ * /v3/profiles, so the same key answers the same question whichever of the two
158
+ * endpoints you ask. Neither name is preferred over the other and neither is
159
+ * deprecated.
160
+ *
161
+ * The same value, not the same presence: this key is always written, including as
162
+ * null, whereas channels.sms.phone_number is left out entirely when there is no
163
+ * sender.
164
+ */
165
+ sending_phone_number?: string | null;
166
+ /**
167
+ * The account that holds sending_phone_number in number inventory: normally this
168
+ * account itself, and a different account when the number is held elsewhere. Null
169
+ * when there is no US sender, or when the sender is not a number drawn from
170
+ * inventory — an alphanumeric sender ID or a short code.
171
+ */
172
+ sending_phone_number_profile_id?: string | null;
97
173
  /**
98
174
  * Profile configuration settings
99
175
  */
100
- settings?: Data.Settings | null;
176
+ settings?: MeAPI.ProfileSettings | null;
101
177
  /**
102
178
  * Short name / abbreviation (only for profile type)
103
179
  */
@@ -211,7 +287,7 @@ export declare namespace MeRetrieveResponse {
211
287
  /**
212
288
  * Profile configuration settings
213
289
  */
214
- settings?: Profile.Settings;
290
+ settings?: MeAPI.ProfileSettings;
215
291
  /**
216
292
  * Profile short name (abbreviation)
217
293
  */
@@ -221,130 +297,6 @@ export declare namespace MeRetrieveResponse {
221
297
  */
222
298
  status?: string | null;
223
299
  }
224
- namespace Profile {
225
- /**
226
- * Profile configuration settings
227
- */
228
- interface Settings {
229
- /**
230
- * @deprecated Always false. A profile no longer shares contacts with sibling
231
- * profiles — it sees only what it owns. Retained so existing v3 clients reading
232
- * allow_contact_sharing keep deserializing; it carries no information.
233
- */
234
- allow_contact_sharing?: boolean | null;
235
- /**
236
- * @deprecated Always false. A profile no longer shares templates with sibling
237
- * profiles. Retained so existing v3 clients reading allow_template_sharing keep
238
- * deserializing; it carries no information.
239
- */
240
- allow_template_sharing?: boolean | null;
241
- /**
242
- * Billing model: profile, organization, or profile_and_organization
243
- */
244
- billing_model?: string | null;
245
- /**
246
- * @deprecated Always false. A profile no longer inherits its organization's
247
- * contacts. Retained so existing v3 clients reading inherit_contacts keep
248
- * deserializing; it carries no information.
249
- */
250
- inherit_contacts?: boolean | null;
251
- /**
252
- * Whether this profile inherits TCR brand from the organization
253
- */
254
- inherit_tcr_brand?: boolean | null;
255
- /**
256
- * Whether this profile inherits TCR campaign from the organization
257
- */
258
- inherit_tcr_campaign?: boolean | null;
259
- /**
260
- * @deprecated Always false. A profile no longer inherits its organization's
261
- * templates. Retained so existing v3 clients reading inherit_templates keep
262
- * deserializing; it carries no information.
263
- */
264
- inherit_templates?: boolean | null;
265
- }
266
- }
267
- /**
268
- * Profile configuration settings
269
- */
270
- interface Settings {
271
- /**
272
- * @deprecated Always false. A profile no longer shares contacts with sibling
273
- * profiles — it sees only what it owns. Retained so existing v3 clients reading
274
- * allow_contact_sharing keep deserializing; it carries no information.
275
- */
276
- allow_contact_sharing?: boolean | null;
277
- /**
278
- * @deprecated Always false. A profile no longer shares templates with sibling
279
- * profiles. Retained so existing v3 clients reading allow_template_sharing keep
280
- * deserializing; it carries no information.
281
- */
282
- allow_template_sharing?: boolean | null;
283
- /**
284
- * Billing model: profile, organization, or profile_and_organization
285
- */
286
- billing_model?: string | null;
287
- /**
288
- * @deprecated Always false. A profile no longer inherits its organization's
289
- * contacts. Retained so existing v3 clients reading inherit_contacts keep
290
- * deserializing; it carries no information.
291
- */
292
- inherit_contacts?: boolean | null;
293
- /**
294
- * Whether this profile inherits TCR brand from the organization
295
- */
296
- inherit_tcr_brand?: boolean | null;
297
- /**
298
- * Whether this profile inherits TCR campaign from the organization
299
- */
300
- inherit_tcr_campaign?: boolean | null;
301
- /**
302
- * @deprecated Always false. A profile no longer inherits its organization's
303
- * templates. Retained so existing v3 clients reading inherit_templates keep
304
- * deserializing; it carries no information.
305
- */
306
- inherit_templates?: boolean | null;
307
- }
308
- }
309
- /**
310
- * Error information
311
- */
312
- interface Error {
313
- /**
314
- * Machine-readable error code (e.g., "RESOURCE_001")
315
- */
316
- code?: string;
317
- /**
318
- * Additional validation error details (field-level errors)
319
- */
320
- details?: {
321
- [key: string]: Array<string>;
322
- } | null;
323
- /**
324
- * URL to documentation about this error
325
- */
326
- doc_url?: string | null;
327
- /**
328
- * Human-readable error message
329
- */
330
- message?: string;
331
- }
332
- /**
333
- * Request and response metadata
334
- */
335
- interface Meta {
336
- /**
337
- * Unique identifier for this request (for tracing and support)
338
- */
339
- request_id?: string;
340
- /**
341
- * Server timestamp when the response was generated
342
- */
343
- timestamp?: string;
344
- /**
345
- * API version used for this request
346
- */
347
- version?: string;
348
300
  }
349
301
  }
350
302
  export interface MeRetrieveParams {
@@ -355,6 +307,6 @@ export interface MeRetrieveParams {
355
307
  'x-profile-id'?: string;
356
308
  }
357
309
  export declare namespace Me {
358
- export { type MeRetrieveResponse as MeRetrieveResponse, type MeRetrieveParams as MeRetrieveParams };
310
+ export { type ProfileSettings as ProfileSettings, type MeRetrieveResponse as MeRetrieveResponse, type MeRetrieveParams as MeRetrieveParams, };
359
311
  }
360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
package/resources/me.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { APIResource } from "../core/resource.js";
2
+ import * as MeAPI from "./me.js";
3
+ import * as WebhooksAPI from "./webhooks.js";
2
4
  import { APIPromise } from "../core/api-promise.js";
3
5
  import { RequestOptions } from "../internal/request-options.js";
4
6
  /**
@@ -23,9 +25,61 @@ export declare class Me extends APIResource {
23
25
  * **Channels:** The `channels` object always includes `sms`, `whatsapp`, and
24
26
  * `rcs`. Each channel has a `configured` boolean. Configured channels expose
25
27
  * additional details such as `phone_number`.
28
+ *
29
+ * **Sending number:** `sending_phone_number` is the account's US SMS sender. It is
30
+ * intentionally the same value as `channels.sms.phone_number` — the two are kept
31
+ * in step, and it is published under both names because `sending_phone_number` is
32
+ * what this value is called on `GET /v3/profiles`. Read either. One difference:
33
+ * `sending_phone_number` is always present, including as `null`, while
34
+ * `channels.sms.phone_number` is omitted when there is no sender.
35
+ *
36
+ * `sending_phone_number_profile_id` names the account that holds that number in
37
+ * inventory — normally this account, and a different one where a number is shared.
38
+ * Both are `null` when the account has no US SMS sender.
26
39
  */
27
40
  retrieve(params?: MeRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<MeRetrieveResponse>;
28
41
  }
42
+ /**
43
+ * Profile configuration settings
44
+ */
45
+ export interface ProfileSettings {
46
+ /**
47
+ * @deprecated Always false. A profile no longer shares contacts with sibling
48
+ * profiles — it sees only what it owns. Retained so existing v3 clients reading
49
+ * allow_contact_sharing keep deserializing; it carries no information.
50
+ */
51
+ allow_contact_sharing?: boolean | null;
52
+ /**
53
+ * @deprecated Always false. A profile no longer shares templates with sibling
54
+ * profiles. Retained so existing v3 clients reading allow_template_sharing keep
55
+ * deserializing; it carries no information.
56
+ */
57
+ allow_template_sharing?: boolean | null;
58
+ /**
59
+ * Billing model: profile, organization, or profile_and_organization
60
+ */
61
+ billing_model?: string | null;
62
+ /**
63
+ * @deprecated Always false. A profile no longer inherits its organization's
64
+ * contacts. Retained so existing v3 clients reading inherit_contacts keep
65
+ * deserializing; it carries no information.
66
+ */
67
+ inherit_contacts?: boolean | null;
68
+ /**
69
+ * Whether this profile inherits TCR brand from the organization
70
+ */
71
+ inherit_tcr_brand?: boolean | null;
72
+ /**
73
+ * Whether this profile inherits TCR campaign from the organization
74
+ */
75
+ inherit_tcr_campaign?: boolean | null;
76
+ /**
77
+ * @deprecated Always false. A profile no longer inherits its organization's
78
+ * templates. Retained so existing v3 clients reading inherit_templates keep
79
+ * deserializing; it carries no information.
80
+ */
81
+ inherit_templates?: boolean | null;
82
+ }
29
83
  /**
30
84
  * Standard API response envelope for all v3 endpoints
31
85
  */
@@ -39,11 +93,11 @@ export interface MeRetrieveResponse {
39
93
  /**
40
94
  * Error information
41
95
  */
42
- error?: MeRetrieveResponse.Error | null;
96
+ error?: WebhooksAPI.ErrorDetail | null;
43
97
  /**
44
98
  * Request and response metadata
45
99
  */
46
- meta?: MeRetrieveResponse.Meta;
100
+ meta?: WebhooksAPI.APIMeta;
47
101
  /**
48
102
  * Indicates whether the request was successful
49
103
  */
@@ -94,10 +148,32 @@ export declare namespace MeRetrieveResponse {
94
148
  * types)
95
149
  */
96
150
  profiles?: Array<Data.Profile>;
151
+ /**
152
+ * The SMS sender this account sends from in the United States, in E.164 form. Null
153
+ * when the account has no US SMS sender.
154
+ *
155
+ * The same value as channels.sms.phone_number, published under both names on
156
+ * purpose: sending_phone_number is what this value is already called on GET
157
+ * /v3/profiles, so the same key answers the same question whichever of the two
158
+ * endpoints you ask. Neither name is preferred over the other and neither is
159
+ * deprecated.
160
+ *
161
+ * The same value, not the same presence: this key is always written, including as
162
+ * null, whereas channels.sms.phone_number is left out entirely when there is no
163
+ * sender.
164
+ */
165
+ sending_phone_number?: string | null;
166
+ /**
167
+ * The account that holds sending_phone_number in number inventory: normally this
168
+ * account itself, and a different account when the number is held elsewhere. Null
169
+ * when there is no US sender, or when the sender is not a number drawn from
170
+ * inventory — an alphanumeric sender ID or a short code.
171
+ */
172
+ sending_phone_number_profile_id?: string | null;
97
173
  /**
98
174
  * Profile configuration settings
99
175
  */
100
- settings?: Data.Settings | null;
176
+ settings?: MeAPI.ProfileSettings | null;
101
177
  /**
102
178
  * Short name / abbreviation (only for profile type)
103
179
  */
@@ -211,7 +287,7 @@ export declare namespace MeRetrieveResponse {
211
287
  /**
212
288
  * Profile configuration settings
213
289
  */
214
- settings?: Profile.Settings;
290
+ settings?: MeAPI.ProfileSettings;
215
291
  /**
216
292
  * Profile short name (abbreviation)
217
293
  */
@@ -221,130 +297,6 @@ export declare namespace MeRetrieveResponse {
221
297
  */
222
298
  status?: string | null;
223
299
  }
224
- namespace Profile {
225
- /**
226
- * Profile configuration settings
227
- */
228
- interface Settings {
229
- /**
230
- * @deprecated Always false. A profile no longer shares contacts with sibling
231
- * profiles — it sees only what it owns. Retained so existing v3 clients reading
232
- * allow_contact_sharing keep deserializing; it carries no information.
233
- */
234
- allow_contact_sharing?: boolean | null;
235
- /**
236
- * @deprecated Always false. A profile no longer shares templates with sibling
237
- * profiles. Retained so existing v3 clients reading allow_template_sharing keep
238
- * deserializing; it carries no information.
239
- */
240
- allow_template_sharing?: boolean | null;
241
- /**
242
- * Billing model: profile, organization, or profile_and_organization
243
- */
244
- billing_model?: string | null;
245
- /**
246
- * @deprecated Always false. A profile no longer inherits its organization's
247
- * contacts. Retained so existing v3 clients reading inherit_contacts keep
248
- * deserializing; it carries no information.
249
- */
250
- inherit_contacts?: boolean | null;
251
- /**
252
- * Whether this profile inherits TCR brand from the organization
253
- */
254
- inherit_tcr_brand?: boolean | null;
255
- /**
256
- * Whether this profile inherits TCR campaign from the organization
257
- */
258
- inherit_tcr_campaign?: boolean | null;
259
- /**
260
- * @deprecated Always false. A profile no longer inherits its organization's
261
- * templates. Retained so existing v3 clients reading inherit_templates keep
262
- * deserializing; it carries no information.
263
- */
264
- inherit_templates?: boolean | null;
265
- }
266
- }
267
- /**
268
- * Profile configuration settings
269
- */
270
- interface Settings {
271
- /**
272
- * @deprecated Always false. A profile no longer shares contacts with sibling
273
- * profiles — it sees only what it owns. Retained so existing v3 clients reading
274
- * allow_contact_sharing keep deserializing; it carries no information.
275
- */
276
- allow_contact_sharing?: boolean | null;
277
- /**
278
- * @deprecated Always false. A profile no longer shares templates with sibling
279
- * profiles. Retained so existing v3 clients reading allow_template_sharing keep
280
- * deserializing; it carries no information.
281
- */
282
- allow_template_sharing?: boolean | null;
283
- /**
284
- * Billing model: profile, organization, or profile_and_organization
285
- */
286
- billing_model?: string | null;
287
- /**
288
- * @deprecated Always false. A profile no longer inherits its organization's
289
- * contacts. Retained so existing v3 clients reading inherit_contacts keep
290
- * deserializing; it carries no information.
291
- */
292
- inherit_contacts?: boolean | null;
293
- /**
294
- * Whether this profile inherits TCR brand from the organization
295
- */
296
- inherit_tcr_brand?: boolean | null;
297
- /**
298
- * Whether this profile inherits TCR campaign from the organization
299
- */
300
- inherit_tcr_campaign?: boolean | null;
301
- /**
302
- * @deprecated Always false. A profile no longer inherits its organization's
303
- * templates. Retained so existing v3 clients reading inherit_templates keep
304
- * deserializing; it carries no information.
305
- */
306
- inherit_templates?: boolean | null;
307
- }
308
- }
309
- /**
310
- * Error information
311
- */
312
- interface Error {
313
- /**
314
- * Machine-readable error code (e.g., "RESOURCE_001")
315
- */
316
- code?: string;
317
- /**
318
- * Additional validation error details (field-level errors)
319
- */
320
- details?: {
321
- [key: string]: Array<string>;
322
- } | null;
323
- /**
324
- * URL to documentation about this error
325
- */
326
- doc_url?: string | null;
327
- /**
328
- * Human-readable error message
329
- */
330
- message?: string;
331
- }
332
- /**
333
- * Request and response metadata
334
- */
335
- interface Meta {
336
- /**
337
- * Unique identifier for this request (for tracing and support)
338
- */
339
- request_id?: string;
340
- /**
341
- * Server timestamp when the response was generated
342
- */
343
- timestamp?: string;
344
- /**
345
- * API version used for this request
346
- */
347
- version?: string;
348
300
  }
349
301
  }
350
302
  export interface MeRetrieveParams {
@@ -355,6 +307,6 @@ export interface MeRetrieveParams {
355
307
  'x-profile-id'?: string;
356
308
  }
357
309
  export declare namespace Me {
358
- export { type MeRetrieveResponse as MeRetrieveResponse, type MeRetrieveParams as MeRetrieveParams };
310
+ export { type ProfileSettings as ProfileSettings, type MeRetrieveResponse as MeRetrieveResponse, type MeRetrieveParams as MeRetrieveParams, };
359
311
  }
360
312
  //# sourceMappingURL=me.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"me.d.ts","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D;;;;GAIG;AACH,qBAAa,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CACN,MAAM,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;CAUlC;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;;;OAIG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,IAAI,GAAG,IAAI,CAAC;IAEtC;;OAEG;IACH,KAAK,CAAC,EAAE,kBAAkB,CAAC,KAAK,GAAG,IAAI,CAAC;IAExC;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC;IAE/B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,yBAAiB,kBAAkB,CAAC;IAClC;;;;OAIG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,CAAC,EAAE,MAAM,CAAC;QAEZ;;;WAGG;QACH,QAAQ,CAAC,EAAE,IAAI,CAAC,QAAQ,CAAC;QAEzB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE5B;;WAEG;QACH,KAAK,C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AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
package/resources/me.js CHANGED
@@ -26,6 +26,17 @@ class Me extends resource_1.APIResource {
26
26
  * **Channels:** The `channels` object always includes `sms`, `whatsapp`, and
27
27
  * `rcs`. Each channel has a `configured` boolean. Configured channels expose
28
28
  * additional details such as `phone_number`.
29
+ *
30
+ * **Sending number:** `sending_phone_number` is the account's US SMS sender. It is
31
+ * intentionally the same value as `channels.sms.phone_number` — the two are kept
32
+ * in step, and it is published under both names because `sending_phone_number` is
33
+ * what this value is called on `GET /v3/profiles`. Read either. One difference:
34
+ * `sending_phone_number` is always present, including as `null`, while
35
+ * `channels.sms.phone_number` is omitted when there is no sender.
36
+ *
37
+ * `sending_phone_number_profile_id` names the account that holds that number in
38
+ * inventory — normally this account, and a different one where a number is shared.
39
+ * Both are `null` when the account has no US SMS sender.
29
40
  */
30
41
  retrieve(params = {}, options) {
31
42
  const { 'x-profile-id': xProfileID } = params ?? {};
@@ -1 +1 @@
1
- {"version":3,"file":"me.js","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAGnD;;;;GAIG;AACH,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CACN,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;YAChC,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA/BD,gBA+BC"}
1
+ {"version":3,"file":"me.js","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAAmD;AAGnD;;;;GAIG;AACH,MAAa,EAAG,SAAQ,sBAAW;IACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,QAAQ,CACN,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;YAChC,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AA1CD,gBA0CC"}
package/resources/me.mjs CHANGED
@@ -23,6 +23,17 @@ export class Me extends APIResource {
23
23
  * **Channels:** The `channels` object always includes `sms`, `whatsapp`, and
24
24
  * `rcs`. Each channel has a `configured` boolean. Configured channels expose
25
25
  * additional details such as `phone_number`.
26
+ *
27
+ * **Sending number:** `sending_phone_number` is the account's US SMS sender. It is
28
+ * intentionally the same value as `channels.sms.phone_number` — the two are kept
29
+ * in step, and it is published under both names because `sending_phone_number` is
30
+ * what this value is called on `GET /v3/profiles`. Read either. One difference:
31
+ * `sending_phone_number` is always present, including as `null`, while
32
+ * `channels.sms.phone_number` is omitted when there is no sender.
33
+ *
34
+ * `sending_phone_number_profile_id` names the account that holds that number in
35
+ * inventory — normally this account, and a different one where a number is shared.
36
+ * Both are `null` when the account has no US SMS sender.
26
37
  */
27
38
  retrieve(params = {}, options) {
28
39
  const { 'x-profile-id': xProfileID } = params ?? {};
@@ -1 +1 @@
1
- {"version":3,"file":"me.mjs","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAGnD;;;;GAIG;AACH,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;;;;;;;OAgBG;IACH,QAAQ,CACN,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;YAChC,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB,EAAE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE;gBACxE,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"me.mjs","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAGnD;;;;GAIG;AACH,MAAM,OAAO,EAAG,SAAQ,WAAW;IACjC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,QAAQ,CACN,SAA8C,EAAE,EAChD,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,GAAG,MAAM,IAAI,EAAE,CAAC;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,Q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