@sentdm/sentdm 0.34.0 → 0.35.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 (120) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +53 -22
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +53 -22
  5. package/client.d.ts.map +1 -1
  6. package/client.js +39 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +39 -8
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/contacts.d.mts +606 -89
  12. package/resources/contacts.d.mts.map +1 -1
  13. package/resources/contacts.d.ts +606 -89
  14. package/resources/contacts.d.ts.map +1 -1
  15. package/resources/contacts.js +21 -15
  16. package/resources/contacts.js.map +1 -1
  17. package/resources/contacts.mjs +21 -15
  18. package/resources/contacts.mjs.map +1 -1
  19. package/resources/conversations.d.mts +335 -69
  20. package/resources/conversations.d.mts.map +1 -1
  21. package/resources/conversations.d.ts +335 -69
  22. package/resources/conversations.d.ts.map +1 -1
  23. package/resources/conversations.js +15 -10
  24. package/resources/conversations.js.map +1 -1
  25. package/resources/conversations.mjs +15 -10
  26. package/resources/conversations.mjs.map +1 -1
  27. package/resources/index.d.mts +7 -7
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +7 -7
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js.map +1 -1
  32. package/resources/index.mjs.map +1 -1
  33. package/resources/me.d.mts +132 -41
  34. package/resources/me.d.mts.map +1 -1
  35. package/resources/me.d.ts +132 -41
  36. package/resources/me.d.ts.map +1 -1
  37. package/resources/me.js +3 -1
  38. package/resources/me.js.map +1 -1
  39. package/resources/me.mjs +3 -1
  40. package/resources/me.mjs.map +1 -1
  41. package/resources/messages.d.mts +206 -27
  42. package/resources/messages.d.mts.map +1 -1
  43. package/resources/messages.d.ts +206 -27
  44. package/resources/messages.d.ts.map +1 -1
  45. package/resources/messages.js +5 -1
  46. package/resources/messages.js.map +1 -1
  47. package/resources/messages.mjs +5 -1
  48. package/resources/messages.mjs.map +1 -1
  49. package/resources/numbers.d.mts +45 -4
  50. package/resources/numbers.d.mts.map +1 -1
  51. package/resources/numbers.d.ts +45 -4
  52. package/resources/numbers.d.ts.map +1 -1
  53. package/resources/numbers.js +3 -1
  54. package/resources/numbers.js.map +1 -1
  55. package/resources/numbers.mjs +3 -1
  56. package/resources/numbers.mjs.map +1 -1
  57. package/resources/profiles/campaigns.d.mts +579 -209
  58. package/resources/profiles/campaigns.d.mts.map +1 -1
  59. package/resources/profiles/campaigns.d.ts +579 -209
  60. package/resources/profiles/campaigns.d.ts.map +1 -1
  61. package/resources/profiles/campaigns.js +33 -64
  62. package/resources/profiles/campaigns.js.map +1 -1
  63. package/resources/profiles/campaigns.mjs +33 -64
  64. package/resources/profiles/campaigns.mjs.map +1 -1
  65. package/resources/profiles/index.d.mts +2 -2
  66. package/resources/profiles/index.d.mts.map +1 -1
  67. package/resources/profiles/index.d.ts +2 -2
  68. package/resources/profiles/index.d.ts.map +1 -1
  69. package/resources/profiles/index.js.map +1 -1
  70. package/resources/profiles/index.mjs.map +1 -1
  71. package/resources/profiles/profiles.d.mts +2006 -508
  72. package/resources/profiles/profiles.d.mts.map +1 -1
  73. package/resources/profiles/profiles.d.ts +2006 -508
  74. package/resources/profiles/profiles.d.ts.map +1 -1
  75. package/resources/profiles/profiles.js +98 -75
  76. package/resources/profiles/profiles.js.map +1 -1
  77. package/resources/profiles/profiles.mjs +98 -75
  78. package/resources/profiles/profiles.mjs.map +1 -1
  79. package/resources/templates.d.mts +497 -84
  80. package/resources/templates.d.mts.map +1 -1
  81. package/resources/templates.d.ts +497 -84
  82. package/resources/templates.d.ts.map +1 -1
  83. package/resources/templates.js +6 -4
  84. package/resources/templates.js.map +1 -1
  85. package/resources/templates.mjs +6 -4
  86. package/resources/templates.mjs.map +1 -1
  87. package/resources/users.d.mts +444 -43
  88. package/resources/users.d.mts.map +1 -1
  89. package/resources/users.d.ts +444 -43
  90. package/resources/users.d.ts.map +1 -1
  91. package/resources/users.js +6 -4
  92. package/resources/users.js.map +1 -1
  93. package/resources/users.mjs +6 -4
  94. package/resources/users.mjs.map +1 -1
  95. package/resources/webhooks.d.mts +770 -169
  96. package/resources/webhooks.d.mts.map +1 -1
  97. package/resources/webhooks.d.ts +770 -169
  98. package/resources/webhooks.d.ts.map +1 -1
  99. package/resources/webhooks.js +11 -8
  100. package/resources/webhooks.js.map +1 -1
  101. package/resources/webhooks.mjs +11 -8
  102. package/resources/webhooks.mjs.map +1 -1
  103. package/src/client.ts +78 -60
  104. package/src/resources/contacts.ts +696 -92
  105. package/src/resources/conversations.ts +400 -77
  106. package/src/resources/index.ts +20 -26
  107. package/src/resources/me.ts +151 -52
  108. package/src/resources/messages.ts +230 -27
  109. package/src/resources/numbers.ts +50 -4
  110. package/src/resources/profiles/campaigns.ts +706 -232
  111. package/src/resources/profiles/index.ts +6 -14
  112. package/src/resources/profiles/profiles.ts +2421 -646
  113. package/src/resources/templates.ts +583 -99
  114. package/src/resources/users.ts +514 -44
  115. package/src/resources/webhooks.ts +1006 -283
  116. package/src/version.ts +1 -1
  117. package/version.d.mts +1 -1
  118. package/version.d.ts +1 -1
  119. package/version.js +1 -1
  120. package/version.mjs +1 -1
@@ -1,10 +1,10 @@
1
- export { Contacts, type APIResponseOfContact, type APIResponseOfContactMessageSummary, type ContactMessageSummary, type ContactResponse, type ContactListResponse, type ContactCreateParams, type ContactRetrieveParams, type ContactUpdateParams, type ContactListParams, type ContactDeleteParams, type ContactRetrieveMessageSummaryParams, } from "./contacts.js";
2
- export { Conversations, type APIResponseOfConversationMessagesList, type ConversationMessagesList, type ConversationListParams, type ConversationListMessagesParams, } from "./conversations.js";
3
- export { Me, type ProfileSettings, type MeRetrieveResponse, type MeRetrieveParams } from "./me.js";
1
+ export { Contacts, type ContactCreateResponse, type ContactRetrieveResponse, type ContactUpdateResponse, type ContactListResponse, type ContactRetrieveMessageSummaryResponse, type ContactCreateParams, type ContactRetrieveParams, type ContactUpdateParams, type ContactListParams, type ContactDeleteParams, type ContactRetrieveMessageSummaryParams, } from "./contacts.js";
2
+ export { Conversations, type ConversationListResponse, type ConversationListMessagesResponse, type ConversationListParams, type ConversationListMessagesParams, } from "./conversations.js";
3
+ export { Me, type MeRetrieveResponse, type MeRetrieveParams } from "./me.js";
4
4
  export { Messages, type MessageRetrieveActivitiesResponse, type MessageRetrieveStatusResponse, type MessageSendResponse, type MessageRetrieveActivitiesParams, type MessageRetrieveStatusParams, type MessageSendParams, } from "./messages.js";
5
5
  export { Numbers, type NumberLookupResponse, type NumberLookupParams } from "./numbers.js";
6
- export { Profiles, type APIResponseOfProfileDetail, type BillingContactInfo, type BrandBusinessInfo, type BrandComplianceInfo, type BrandContactInfo, type BrandsBrandData, type DestinationCountry, type PaymentDetails, type ProfileDetail, type TcrBrandRelationship, type TcrVertical, type ProfileListResponse, type ProfileCompleteResponse, type ProfileCreateParams, type ProfileRetrieveParams, type ProfileUpdateParams, type ProfileListParams, type ProfileDeleteParams, type ProfileCompleteParams, } from "./profiles/profiles.js";
7
- export { Templates, type APIResponseTemplate, type AuthenticationConfig, type Template, type TemplateBody, type TemplateBodyContent, type TemplateButton, type TemplateButtonProps, type TemplateDefinition, type TemplateFooter, type TemplateHeader, type TemplateVariable, type TemplateListResponse, type TemplateCreateParams, type TemplateRetrieveParams, type TemplateUpdateParams, type TemplateListParams, type TemplateDeleteParams, } from "./templates.js";
8
- export { Users, type APIResponseOfUser, type UserResponse, type UserListResponse, type UserRetrieveParams, type UserListParams, type UserInviteParams, type UserRemoveParams, type UserUpdateRoleParams, } from "./users.js";
9
- export { Webhooks, type APIMeta, type APIResponseWebhook, type ErrorDetail, type InboundMessageEvent, type InboundMessageEventPayload, type MessageEvent, type MessageEventPayload, type MutationRequest, type PaginationMeta, type TemplateEvent, type TemplateEventPayload, type WebhookEventType, type WebhookResponse, type WebhookListResponse, type WebhookListEventTypesResponse, type WebhookListEventsResponse, type WebhookRotateSecretResponse, type WebhookTestResponse, type WebhookCreateParams, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookListParams, type WebhookDeleteParams, type WebhookListEventTypesParams, type WebhookListEventsParams, type WebhookRotateSecretParams, type WebhookTestParams, type WebhookToggleStatusParams, } from "./webhooks.js";
6
+ export { Profiles, type DestinationCountry, type TcrBrandRelationship, type TcrVertical, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileUpdateResponse, type ProfileListResponse, type ProfileCompleteResponse, type ProfileCreateParams, type ProfileRetrieveParams, type ProfileUpdateParams, type ProfileListParams, type ProfileDeleteParams, type ProfileCompleteParams, } from "./profiles/profiles.js";
7
+ export { Templates, type AuthenticationConfig, type TemplateBody, type TemplateBodyContent, type TemplateButton, type TemplateButtonProps, type TemplateDefinition, type TemplateFooter, type TemplateHeader, type TemplateVariable, type TemplateCreateResponse, type TemplateRetrieveResponse, type TemplateUpdateResponse, type TemplateListResponse, type TemplateCreateParams, type TemplateRetrieveParams, type TemplateUpdateParams, type TemplateListParams, type TemplateDeleteParams, } from "./templates.js";
8
+ export { Users, type UserRetrieveResponse, type UserListResponse, type UserInviteResponse, type UserUpdateRoleResponse, type UserRetrieveParams, type UserListParams, type UserInviteParams, type UserRemoveParams, type UserUpdateRoleParams, } from "./users.js";
9
+ export { Webhooks, type InboundMessageEvent, type InboundMessageEventPayload, type MessageEvent, type MessageEventPayload, type TemplateEvent, type TemplateEventPayload, type WebhookCreateResponse, type WebhookRetrieveResponse, type WebhookUpdateResponse, type WebhookListResponse, type WebhookListEventTypesResponse, type WebhookListEventsResponse, type WebhookRotateSecretResponse, type WebhookTestResponse, type WebhookToggleStatusResponse, type WebhookCreateParams, type WebhookRetrieveParams, type WebhookUpdateParams, type WebhookListParams, type WebhookDeleteParams, type WebhookListEventTypesParams, type WebhookListEventsParams, type WebhookRotateSecretParams, type WebhookTestParams, type WebhookToggleStatusParams, } from "./webhooks.js";
10
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1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AAS,EACT,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,GAC1B,uBAAoB;AACrB,OAAO,EACL,KAAK,EACL,KAAK,iBAAiB,EACtB,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,GAC1B,mBAAgB;AACjB,OAAO,EACL,QAAQ,EACR,KAAK,OAAO,EACZ,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,EAC/B,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,cAAc,EACnB,KAAK,aAAa,EAClB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,GAC/B,sBAAmB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,OA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A;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
+ {"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 +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,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
+ {"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,10 +1,10 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
- import * as MeAPI from "./me.mjs";
3
- import * as WebhooksAPI from "./webhooks.mjs";
4
2
  import { APIPromise } from "../core/api-promise.mjs";
5
3
  import { RequestOptions } from "../internal/request-options.mjs";
6
4
  /**
7
- * Retrieve account details
5
+ * Who the current key is.
6
+ *
7
+ * `GET /v3/me` answers with the account the key authenticates as, which is the quickest way to tell a live key from a test one, an organization key from a sender profile's, and to confirm `x-profile-id` resolved to the profile you meant.
8
8
  */
9
9
  export declare class Me extends APIResource {
10
10
  /**
@@ -26,39 +26,6 @@ export declare class Me extends APIResource {
26
26
  */
27
27
  retrieve(params?: MeRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<MeRetrieveResponse>;
28
28
  }
29
- /**
30
- * Profile configuration settings
31
- */
32
- export interface ProfileSettings {
33
- /**
34
- * Whether contacts are shared across profiles in the organization
35
- */
36
- allow_contact_sharing?: boolean | null;
37
- /**
38
- * Whether templates are shared across profiles in the organization
39
- */
40
- allow_template_sharing?: boolean | null;
41
- /**
42
- * Billing model: profile, organization, or profile_and_organization
43
- */
44
- billing_model?: string | null;
45
- /**
46
- * Whether this profile inherits contacts from the organization
47
- */
48
- inherit_contacts?: boolean | null;
49
- /**
50
- * Whether this profile inherits TCR brand from the organization
51
- */
52
- inherit_tcr_brand?: boolean | null;
53
- /**
54
- * Whether this profile inherits TCR campaign from the organization
55
- */
56
- inherit_tcr_campaign?: boolean | null;
57
- /**
58
- * Whether this profile inherits templates from the organization
59
- */
60
- inherit_templates?: boolean | null;
61
- }
62
29
  /**
63
30
  * Standard API response envelope for all v3 endpoints
64
31
  */
@@ -72,11 +39,11 @@ export interface MeRetrieveResponse {
72
39
  /**
73
40
  * Error information
74
41
  */
75
- error?: WebhooksAPI.ErrorDetail | null;
42
+ error?: MeRetrieveResponse.Error | null;
76
43
  /**
77
44
  * Request and response metadata
78
45
  */
79
- meta?: WebhooksAPI.APIMeta;
46
+ meta?: MeRetrieveResponse.Meta;
80
47
  /**
81
48
  * Indicates whether the request was successful
82
49
  */
@@ -130,7 +97,7 @@ export declare namespace MeRetrieveResponse {
130
97
  /**
131
98
  * Profile configuration settings
132
99
  */
133
- settings?: MeAPI.ProfileSettings | null;
100
+ settings?: Data.Settings | null;
134
101
  /**
135
102
  * Short name / abbreviation (only for profile type)
136
103
  */
@@ -244,7 +211,7 @@ export declare namespace MeRetrieveResponse {
244
211
  /**
245
212
  * Profile configuration settings
246
213
  */
247
- settings?: MeAPI.ProfileSettings;
214
+ settings?: Profile.Settings;
248
215
  /**
249
216
  * Profile short name (abbreviation)
250
217
  */
@@ -254,6 +221,130 @@ export declare namespace MeRetrieveResponse {
254
221
  */
255
222
  status?: string | null;
256
223
  }
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;
257
348
  }
258
349
  }
259
350
  export interface MeRetrieveParams {
@@ -264,6 +355,6 @@ export interface MeRetrieveParams {
264
355
  'x-profile-id'?: string;
265
356
  }
266
357
  export declare namespace Me {
267
- export { type ProfileSettings as ProfileSettings, type MeRetrieveResponse as MeRetrieveResponse, type MeRetrieveParams as MeRetrieveParams, };
358
+ export { type MeRetrieveResponse as MeRetrieveResponse, type MeRetrieveParams as MeRetrieveParams };
268
359
  }
269
360
  //# sourceMappingURL=me.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"me.d.mts","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,KAAK,KAAK,iBAAa;AAC9B,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AAEjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D;;GAEG;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,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AAC,MAAM,CAAC,CAAA;SAAE,GAAG,IAAI,CAAC;QAElD;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAExB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IAED;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
package/resources/me.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { APIResource } from "../core/resource.js";
2
- import * as MeAPI from "./me.js";
3
- import * as WebhooksAPI from "./webhooks.js";
4
2
  import { APIPromise } from "../core/api-promise.js";
5
3
  import { RequestOptions } from "../internal/request-options.js";
6
4
  /**
7
- * Retrieve account details
5
+ * Who the current key is.
6
+ *
7
+ * `GET /v3/me` answers with the account the key authenticates as, which is the quickest way to tell a live key from a test one, an organization key from a sender profile's, and to confirm `x-profile-id` resolved to the profile you meant.
8
8
  */
9
9
  export declare class Me extends APIResource {
10
10
  /**
@@ -26,39 +26,6 @@ export declare class Me extends APIResource {
26
26
  */
27
27
  retrieve(params?: MeRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<MeRetrieveResponse>;
28
28
  }
29
- /**
30
- * Profile configuration settings
31
- */
32
- export interface ProfileSettings {
33
- /**
34
- * Whether contacts are shared across profiles in the organization
35
- */
36
- allow_contact_sharing?: boolean | null;
37
- /**
38
- * Whether templates are shared across profiles in the organization
39
- */
40
- allow_template_sharing?: boolean | null;
41
- /**
42
- * Billing model: profile, organization, or profile_and_organization
43
- */
44
- billing_model?: string | null;
45
- /**
46
- * Whether this profile inherits contacts from the organization
47
- */
48
- inherit_contacts?: boolean | null;
49
- /**
50
- * Whether this profile inherits TCR brand from the organization
51
- */
52
- inherit_tcr_brand?: boolean | null;
53
- /**
54
- * Whether this profile inherits TCR campaign from the organization
55
- */
56
- inherit_tcr_campaign?: boolean | null;
57
- /**
58
- * Whether this profile inherits templates from the organization
59
- */
60
- inherit_templates?: boolean | null;
61
- }
62
29
  /**
63
30
  * Standard API response envelope for all v3 endpoints
64
31
  */
@@ -72,11 +39,11 @@ export interface MeRetrieveResponse {
72
39
  /**
73
40
  * Error information
74
41
  */
75
- error?: WebhooksAPI.ErrorDetail | null;
42
+ error?: MeRetrieveResponse.Error | null;
76
43
  /**
77
44
  * Request and response metadata
78
45
  */
79
- meta?: WebhooksAPI.APIMeta;
46
+ meta?: MeRetrieveResponse.Meta;
80
47
  /**
81
48
  * Indicates whether the request was successful
82
49
  */
@@ -130,7 +97,7 @@ export declare namespace MeRetrieveResponse {
130
97
  /**
131
98
  * Profile configuration settings
132
99
  */
133
- settings?: MeAPI.ProfileSettings | null;
100
+ settings?: Data.Settings | null;
134
101
  /**
135
102
  * Short name / abbreviation (only for profile type)
136
103
  */
@@ -244,7 +211,7 @@ export declare namespace MeRetrieveResponse {
244
211
  /**
245
212
  * Profile configuration settings
246
213
  */
247
- settings?: MeAPI.ProfileSettings;
214
+ settings?: Profile.Settings;
248
215
  /**
249
216
  * Profile short name (abbreviation)
250
217
  */
@@ -254,6 +221,130 @@ export declare namespace MeRetrieveResponse {
254
221
  */
255
222
  status?: string | null;
256
223
  }
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;
257
348
  }
258
349
  }
259
350
  export interface MeRetrieveParams {
@@ -264,6 +355,6 @@ export interface MeRetrieveParams {
264
355
  'x-profile-id'?: string;
265
356
  }
266
357
  export declare namespace Me {
267
- export { type ProfileSettings as ProfileSettings, type MeRetrieveResponse as MeRetrieveResponse, type MeRetrieveParams as MeRetrieveParams, };
358
+ export { type MeRetrieveResponse as MeRetrieveResponse, type MeRetrieveParams as MeRetrieveParams };
268
359
  }
269
360
  //# 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,KAAK,KAAK,gBAAa;AAC9B,OAAO,KAAK,WAAW,sBAAmB;AAC1C,OAAO,EAAE,U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,GAAG,IAAI,CAAC;YAEtC;;;;eAIG;YACH,iBAAiB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;SACpC;KACF;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,OAAO,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;SAAE,GAAG,IAAI,CAAC;QAElD;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAExB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;IAED;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,UAAU,CAAC,EAAE,MAAM,CAAC;QAEpB;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EAAE,KAAK,kBAAkB,IAAI,kBAAkB,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACrG"}
package/resources/me.js CHANGED
@@ -5,7 +5,9 @@ exports.Me = void 0;
5
5
  const resource_1 = require("../core/resource.js");
6
6
  const headers_1 = require("../internal/headers.js");
7
7
  /**
8
- * Retrieve account details
8
+ * Who the current key is.
9
+ *
10
+ * `GET /v3/me` answers with the account the key authenticates as, which is the quickest way to tell a live key from a test one, an organization key from a sender profile's, and to confirm `x-profile-id` resolved to the profile you meant.
9
11
  */
10
12
  class Me extends resource_1.APIResource {
11
13
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"me.js","sourceRoot":"","sources":["../src/resources/me.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,oDAAmD;AAGnD;;GAEG;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;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"}
package/resources/me.mjs CHANGED
@@ -2,7 +2,9 @@
2
2
  import { APIResource } from "../core/resource.mjs";
3
3
  import { buildHeaders } from "../internal/headers.mjs";
4
4
  /**
5
- * Retrieve account details
5
+ * Who the current key is.
6
+ *
7
+ * `GET /v3/me` answers with the account the key authenticates as, which is the quickest way to tell a live key from a test one, an organization key from a sender profile's, and to confirm `x-profile-id` resolved to the profile you meant.
6
8
  */
7
9
  export class Me extends APIResource {
8
10
  /**
@@ -1 +1 @@
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;;GAEG;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;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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