@usepylon/sdk 0.1.0-alpha.5 → 0.1.0-beta.2

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 (201) hide show
  1. package/dist/cjs/BaseClient.js +1 -1
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +51 -46
  4. package/dist/cjs/api/resources/accounts/client/requests/AccountsSearchRequest.d.ts +2 -0
  5. package/dist/cjs/api/resources/contacts/client/Client.d.ts +25 -1
  6. package/dist/cjs/api/resources/contacts/client/Client.js +74 -1
  7. package/dist/cjs/api/resources/contacts/client/requests/ContactsMergeRequest.d.ts +1 -1
  8. package/dist/cjs/api/resources/contacts/client/requests/ContactsPortalInvitationRequest.d.ts +10 -0
  9. package/dist/cjs/api/resources/contacts/client/requests/ContactsPortalInvitationRequest.js +3 -0
  10. package/dist/cjs/api/resources/contacts/client/requests/index.d.ts +1 -0
  11. package/dist/cjs/api/resources/customerPortal/client/Client.d.ts +53 -0
  12. package/dist/cjs/api/resources/customerPortal/client/Client.js +193 -0
  13. package/dist/cjs/api/resources/customerPortal/client/index.d.ts +1 -0
  14. package/dist/cjs/api/resources/customerPortal/client/index.js +17 -0
  15. package/dist/cjs/api/resources/customerPortal/client/requests/CustomerPortalUpdateSettingsRequest.d.ts +15 -0
  16. package/dist/cjs/api/resources/customerPortal/client/requests/CustomerPortalUpdateSettingsRequest.js +3 -0
  17. package/dist/cjs/api/resources/customerPortal/client/requests/index.d.ts +1 -0
  18. package/dist/cjs/api/resources/customerPortal/client/requests/index.js +2 -0
  19. package/dist/cjs/api/resources/customerPortal/exports.d.ts +2 -0
  20. package/dist/cjs/api/resources/customerPortal/exports.js +21 -0
  21. package/dist/cjs/api/resources/customerPortal/index.d.ts +1 -0
  22. package/dist/cjs/api/resources/customerPortal/index.js +17 -0
  23. package/dist/cjs/api/resources/index.d.ts +2 -0
  24. package/dist/cjs/api/resources/index.js +3 -1
  25. package/dist/cjs/api/resources/issues/client/Client.d.ts +11 -0
  26. package/dist/cjs/api/resources/issues/client/Client.js +11 -0
  27. package/dist/cjs/api/resources/issues/client/requests/IssuesCreateRequest.d.ts +11 -0
  28. package/dist/cjs/api/resources/issues/client/requests/IssuesSearchRequest.d.ts +2 -0
  29. package/dist/cjs/api/resources/issues/resources/voiceCalls/client/Client.d.ts +1 -1
  30. package/dist/cjs/api/resources/issues/resources/voiceCalls/client/Client.js +1 -1
  31. package/dist/cjs/api/resources/teams/client/Client.d.ts +26 -0
  32. package/dist/cjs/api/resources/teams/client/Client.js +72 -0
  33. package/dist/cjs/api/resources/teams/client/requests/TeamsDeleteRequest.d.ts +10 -0
  34. package/dist/cjs/api/resources/teams/client/requests/TeamsDeleteRequest.js +3 -0
  35. package/dist/cjs/api/resources/teams/client/requests/index.d.ts +1 -0
  36. package/dist/cjs/api/resources/users/client/Client.d.ts +25 -0
  37. package/dist/cjs/api/resources/users/client/Client.js +71 -0
  38. package/dist/cjs/api/resources/users/client/requests/UsersInviteRequest.d.ts +15 -0
  39. package/dist/cjs/api/resources/users/client/requests/UsersInviteRequest.js +3 -0
  40. package/dist/cjs/api/resources/users/client/requests/index.d.ts +1 -0
  41. package/dist/cjs/api/types/ArticleVisibilityConfig.d.ts +5 -0
  42. package/dist/cjs/api/types/CustomerPortalAccessSettings.d.ts +16 -0
  43. package/dist/cjs/api/types/CustomerPortalAccessSettings.js +3 -0
  44. package/dist/cjs/api/types/CustomerPortalBranding.d.ts +14 -0
  45. package/dist/cjs/api/types/CustomerPortalBranding.js +3 -0
  46. package/dist/cjs/api/types/CustomerPortalDisplaySettings.d.ts +8 -0
  47. package/dist/cjs/api/types/CustomerPortalDisplaySettings.js +3 -0
  48. package/dist/cjs/api/types/CustomerPortalFooterCategory.d.ts +7 -0
  49. package/dist/cjs/api/types/CustomerPortalFooterCategory.js +3 -0
  50. package/dist/cjs/api/types/CustomerPortalInvitationResult.d.ts +4 -0
  51. package/dist/cjs/api/types/CustomerPortalInvitationResult.js +3 -0
  52. package/dist/cjs/api/types/CustomerPortalLink.d.ts +6 -0
  53. package/dist/cjs/api/types/CustomerPortalLink.js +3 -0
  54. package/dist/cjs/api/types/CustomerPortalNavigation.d.ts +7 -0
  55. package/dist/cjs/api/types/CustomerPortalNavigation.js +3 -0
  56. package/dist/cjs/api/types/CustomerPortalSettings.d.ts +11 -0
  57. package/dist/cjs/api/types/CustomerPortalSettings.js +3 -0
  58. package/dist/cjs/api/types/CustomerPortalTabs.d.ts +8 -0
  59. package/dist/cjs/api/types/CustomerPortalTabs.js +3 -0
  60. package/dist/cjs/api/types/CustomerPortalUserPermissions.d.ts +8 -0
  61. package/dist/cjs/api/types/CustomerPortalUserPermissions.js +3 -0
  62. package/dist/cjs/api/types/DeleteTeamResponseBody.d.ts +4 -0
  63. package/dist/cjs/api/types/DeleteTeamResponseBody.js +3 -0
  64. package/dist/cjs/api/types/DestinationMetadata.d.ts +2 -0
  65. package/dist/cjs/api/types/ErrorApiResponseBody.d.ts +7 -1
  66. package/dist/cjs/api/types/ExternalIssue.d.ts +8 -0
  67. package/dist/cjs/api/types/Filter.d.ts +17 -7
  68. package/dist/cjs/api/types/Filter.js +6 -1
  69. package/dist/cjs/api/types/FilterError.d.ts +26 -0
  70. package/dist/cjs/api/types/FilterError.js +3 -0
  71. package/dist/cjs/api/types/FilterRelatedObject.d.ts +14 -0
  72. package/dist/cjs/api/types/FilterRelatedObject.js +3 -0
  73. package/dist/cjs/api/types/GetCustomerPortalSettingsResponseBody.d.ts +6 -0
  74. package/dist/cjs/api/types/GetCustomerPortalSettingsResponseBody.js +3 -0
  75. package/dist/cjs/api/types/IssueThread.d.ts +6 -0
  76. package/dist/cjs/api/types/SearchAccountsSort.d.ts +23 -0
  77. package/dist/cjs/api/types/SearchAccountsSort.js +20 -0
  78. package/dist/cjs/api/types/SearchIssuesSort.d.ts +23 -0
  79. package/dist/cjs/api/types/SearchIssuesSort.js +20 -0
  80. package/dist/cjs/api/types/SendCustomerPortalInvitationResponseBody.d.ts +6 -0
  81. package/dist/cjs/api/types/SendCustomerPortalInvitationResponseBody.js +3 -0
  82. package/dist/cjs/api/types/Task.d.ts +2 -0
  83. package/dist/cjs/api/types/TicketFormLayoutField.d.ts +11 -1
  84. package/dist/cjs/api/types/UpdateCustomerPortalAccessSettings.d.ts +16 -0
  85. package/dist/cjs/api/types/UpdateCustomerPortalAccessSettings.js +3 -0
  86. package/dist/cjs/api/types/UpdateCustomerPortalBranding.d.ts +14 -0
  87. package/dist/cjs/api/types/UpdateCustomerPortalBranding.js +3 -0
  88. package/dist/cjs/api/types/UpdateCustomerPortalDisplaySettings.d.ts +8 -0
  89. package/dist/cjs/api/types/UpdateCustomerPortalDisplaySettings.js +3 -0
  90. package/dist/cjs/api/types/UpdateCustomerPortalNavigation.d.ts +7 -0
  91. package/dist/cjs/api/types/UpdateCustomerPortalNavigation.js +3 -0
  92. package/dist/cjs/api/types/UpdateCustomerPortalTabs.d.ts +8 -0
  93. package/dist/cjs/api/types/UpdateCustomerPortalTabs.js +3 -0
  94. package/dist/cjs/api/types/UpdateCustomerPortalUserPermissions.d.ts +8 -0
  95. package/dist/cjs/api/types/UpdateCustomerPortalUserPermissions.js +3 -0
  96. package/dist/cjs/api/types/VoiceCall.d.ts +2 -0
  97. package/dist/cjs/api/types/VoiceCallParticipant.d.ts +20 -0
  98. package/dist/cjs/api/types/VoiceCallParticipant.js +3 -0
  99. package/dist/cjs/api/types/index.d.ts +24 -0
  100. package/dist/cjs/api/types/index.js +24 -0
  101. package/dist/esm/BaseClient.js +1 -1
  102. package/dist/esm/Client.d.ts +3 -0
  103. package/dist/esm/Client.js +5 -0
  104. package/dist/esm/api/resources/accounts/client/requests/AccountsSearchRequest.d.ts +2 -0
  105. package/dist/esm/api/resources/contacts/client/Client.d.ts +25 -1
  106. package/dist/esm/api/resources/contacts/client/Client.js +74 -1
  107. package/dist/esm/api/resources/contacts/client/requests/ContactsMergeRequest.d.ts +1 -1
  108. package/dist/esm/api/resources/contacts/client/requests/ContactsPortalInvitationRequest.d.ts +10 -0
  109. package/dist/esm/api/resources/contacts/client/requests/ContactsPortalInvitationRequest.js +2 -0
  110. package/dist/esm/api/resources/contacts/client/requests/index.d.ts +1 -0
  111. package/dist/esm/api/resources/customerPortal/client/Client.d.ts +53 -0
  112. package/dist/esm/api/resources/customerPortal/client/Client.js +156 -0
  113. package/dist/esm/api/resources/customerPortal/client/index.d.ts +1 -0
  114. package/dist/esm/api/resources/customerPortal/client/index.js +1 -0
  115. package/dist/esm/api/resources/customerPortal/client/requests/CustomerPortalUpdateSettingsRequest.d.ts +15 -0
  116. package/dist/esm/api/resources/customerPortal/client/requests/CustomerPortalUpdateSettingsRequest.js +2 -0
  117. package/dist/esm/api/resources/customerPortal/client/requests/index.d.ts +1 -0
  118. package/dist/esm/api/resources/customerPortal/client/requests/index.js +1 -0
  119. package/dist/esm/api/resources/customerPortal/exports.d.ts +2 -0
  120. package/dist/esm/api/resources/customerPortal/exports.js +3 -0
  121. package/dist/esm/api/resources/customerPortal/index.d.ts +1 -0
  122. package/dist/esm/api/resources/customerPortal/index.js +1 -0
  123. package/dist/esm/api/resources/index.d.ts +2 -0
  124. package/dist/esm/api/resources/index.js +2 -0
  125. package/dist/esm/api/resources/issues/client/Client.d.ts +11 -0
  126. package/dist/esm/api/resources/issues/client/Client.js +11 -0
  127. package/dist/esm/api/resources/issues/client/requests/IssuesCreateRequest.d.ts +11 -0
  128. package/dist/esm/api/resources/issues/client/requests/IssuesSearchRequest.d.ts +2 -0
  129. package/dist/esm/api/resources/issues/resources/voiceCalls/client/Client.d.ts +1 -1
  130. package/dist/esm/api/resources/issues/resources/voiceCalls/client/Client.js +1 -1
  131. package/dist/esm/api/resources/teams/client/Client.d.ts +26 -0
  132. package/dist/esm/api/resources/teams/client/Client.js +72 -0
  133. package/dist/esm/api/resources/teams/client/requests/TeamsDeleteRequest.d.ts +10 -0
  134. package/dist/esm/api/resources/teams/client/requests/TeamsDeleteRequest.js +2 -0
  135. package/dist/esm/api/resources/teams/client/requests/index.d.ts +1 -0
  136. package/dist/esm/api/resources/users/client/Client.d.ts +25 -0
  137. package/dist/esm/api/resources/users/client/Client.js +71 -0
  138. package/dist/esm/api/resources/users/client/requests/UsersInviteRequest.d.ts +15 -0
  139. package/dist/esm/api/resources/users/client/requests/UsersInviteRequest.js +2 -0
  140. package/dist/esm/api/resources/users/client/requests/index.d.ts +1 -0
  141. package/dist/esm/api/types/ArticleVisibilityConfig.d.ts +5 -0
  142. package/dist/esm/api/types/CustomerPortalAccessSettings.d.ts +16 -0
  143. package/dist/esm/api/types/CustomerPortalAccessSettings.js +2 -0
  144. package/dist/esm/api/types/CustomerPortalBranding.d.ts +14 -0
  145. package/dist/esm/api/types/CustomerPortalBranding.js +2 -0
  146. package/dist/esm/api/types/CustomerPortalDisplaySettings.d.ts +8 -0
  147. package/dist/esm/api/types/CustomerPortalDisplaySettings.js +2 -0
  148. package/dist/esm/api/types/CustomerPortalFooterCategory.d.ts +7 -0
  149. package/dist/esm/api/types/CustomerPortalFooterCategory.js +2 -0
  150. package/dist/esm/api/types/CustomerPortalInvitationResult.d.ts +4 -0
  151. package/dist/esm/api/types/CustomerPortalInvitationResult.js +2 -0
  152. package/dist/esm/api/types/CustomerPortalLink.d.ts +6 -0
  153. package/dist/esm/api/types/CustomerPortalLink.js +2 -0
  154. package/dist/esm/api/types/CustomerPortalNavigation.d.ts +7 -0
  155. package/dist/esm/api/types/CustomerPortalNavigation.js +2 -0
  156. package/dist/esm/api/types/CustomerPortalSettings.d.ts +11 -0
  157. package/dist/esm/api/types/CustomerPortalSettings.js +2 -0
  158. package/dist/esm/api/types/CustomerPortalTabs.d.ts +8 -0
  159. package/dist/esm/api/types/CustomerPortalTabs.js +2 -0
  160. package/dist/esm/api/types/CustomerPortalUserPermissions.d.ts +8 -0
  161. package/dist/esm/api/types/CustomerPortalUserPermissions.js +2 -0
  162. package/dist/esm/api/types/DeleteTeamResponseBody.d.ts +4 -0
  163. package/dist/esm/api/types/DeleteTeamResponseBody.js +2 -0
  164. package/dist/esm/api/types/DestinationMetadata.d.ts +2 -0
  165. package/dist/esm/api/types/ErrorApiResponseBody.d.ts +7 -1
  166. package/dist/esm/api/types/ExternalIssue.d.ts +8 -0
  167. package/dist/esm/api/types/Filter.d.ts +17 -7
  168. package/dist/esm/api/types/Filter.js +6 -1
  169. package/dist/esm/api/types/FilterError.d.ts +26 -0
  170. package/dist/esm/api/types/FilterError.js +2 -0
  171. package/dist/esm/api/types/FilterRelatedObject.d.ts +14 -0
  172. package/dist/esm/api/types/FilterRelatedObject.js +2 -0
  173. package/dist/esm/api/types/GetCustomerPortalSettingsResponseBody.d.ts +6 -0
  174. package/dist/esm/api/types/GetCustomerPortalSettingsResponseBody.js +2 -0
  175. package/dist/esm/api/types/IssueThread.d.ts +6 -0
  176. package/dist/esm/api/types/SearchAccountsSort.d.ts +23 -0
  177. package/dist/esm/api/types/SearchAccountsSort.js +17 -0
  178. package/dist/esm/api/types/SearchIssuesSort.d.ts +23 -0
  179. package/dist/esm/api/types/SearchIssuesSort.js +17 -0
  180. package/dist/esm/api/types/SendCustomerPortalInvitationResponseBody.d.ts +6 -0
  181. package/dist/esm/api/types/SendCustomerPortalInvitationResponseBody.js +2 -0
  182. package/dist/esm/api/types/Task.d.ts +2 -0
  183. package/dist/esm/api/types/TicketFormLayoutField.d.ts +11 -1
  184. package/dist/esm/api/types/UpdateCustomerPortalAccessSettings.d.ts +16 -0
  185. package/dist/esm/api/types/UpdateCustomerPortalAccessSettings.js +2 -0
  186. package/dist/esm/api/types/UpdateCustomerPortalBranding.d.ts +14 -0
  187. package/dist/esm/api/types/UpdateCustomerPortalBranding.js +2 -0
  188. package/dist/esm/api/types/UpdateCustomerPortalDisplaySettings.d.ts +8 -0
  189. package/dist/esm/api/types/UpdateCustomerPortalDisplaySettings.js +2 -0
  190. package/dist/esm/api/types/UpdateCustomerPortalNavigation.d.ts +7 -0
  191. package/dist/esm/api/types/UpdateCustomerPortalNavigation.js +2 -0
  192. package/dist/esm/api/types/UpdateCustomerPortalTabs.d.ts +8 -0
  193. package/dist/esm/api/types/UpdateCustomerPortalTabs.js +2 -0
  194. package/dist/esm/api/types/UpdateCustomerPortalUserPermissions.d.ts +8 -0
  195. package/dist/esm/api/types/UpdateCustomerPortalUserPermissions.js +2 -0
  196. package/dist/esm/api/types/VoiceCall.d.ts +2 -0
  197. package/dist/esm/api/types/VoiceCallParticipant.d.ts +20 -0
  198. package/dist/esm/api/types/VoiceCallParticipant.js +2 -0
  199. package/dist/esm/api/types/index.d.ts +24 -0
  200. package/dist/esm/api/types/index.js +24 -0
  201. package/package.json +1 -1
@@ -78,6 +78,16 @@ __exportStar(require("./CrmDetails.js"), exports);
78
78
  __exportStar(require("./CrmSettings.js"), exports);
79
79
  __exportStar(require("./CsatResponse.js"), exports);
80
80
  __exportStar(require("./CustomActivity.js"), exports);
81
+ __exportStar(require("./CustomerPortalAccessSettings.js"), exports);
82
+ __exportStar(require("./CustomerPortalBranding.js"), exports);
83
+ __exportStar(require("./CustomerPortalDisplaySettings.js"), exports);
84
+ __exportStar(require("./CustomerPortalFooterCategory.js"), exports);
85
+ __exportStar(require("./CustomerPortalInvitationResult.js"), exports);
86
+ __exportStar(require("./CustomerPortalLink.js"), exports);
87
+ __exportStar(require("./CustomerPortalNavigation.js"), exports);
88
+ __exportStar(require("./CustomerPortalSettings.js"), exports);
89
+ __exportStar(require("./CustomerPortalTabs.js"), exports);
90
+ __exportStar(require("./CustomerPortalUserPermissions.js"), exports);
81
91
  __exportStar(require("./CustomFieldDefinition.js"), exports);
82
92
  __exportStar(require("./CustomFieldDefinitionSelectOption.js"), exports);
83
93
  __exportStar(require("./CustomFieldValue.js"), exports);
@@ -103,6 +113,7 @@ __exportStar(require("./DeleteProjectResponseBody.js"), exports);
103
113
  __exportStar(require("./DeleteTagResponseBody.js"), exports);
104
114
  __exportStar(require("./DeleteTaskCommentResponseBody.js"), exports);
105
115
  __exportStar(require("./DeleteTaskResponseBody.js"), exports);
116
+ __exportStar(require("./DeleteTeamResponseBody.js"), exports);
106
117
  __exportStar(require("./DeleteTrainingDataDocumentsResponseBody.js"), exports);
107
118
  __exportStar(require("./DestinationMetadata.js"), exports);
108
119
  __exportStar(require("./EmailActivity.js"), exports);
@@ -118,6 +129,8 @@ __exportStar(require("./FeatureRequest.js"), exports);
118
129
  __exportStar(require("./FeatureRequestEvidence.js"), exports);
119
130
  __exportStar(require("./FeatureRequestSearchResult.js"), exports);
120
131
  __exportStar(require("./Filter.js"), exports);
132
+ __exportStar(require("./FilterError.js"), exports);
133
+ __exportStar(require("./FilterRelatedObject.js"), exports);
121
134
  __exportStar(require("./Follower.js"), exports);
122
135
  __exportStar(require("./GetAccountNotebookNotesResponseBody.js"), exports);
123
136
  __exportStar(require("./GetAccountRelationshipsResponseBody.js"), exports);
@@ -134,6 +147,7 @@ __exportStar(require("./GetCollectionResponseBody.js"), exports);
134
147
  __exportStar(require("./GetCollectionsResponseBody.js"), exports);
135
148
  __exportStar(require("./GetContactResponseBody.js"), exports);
136
149
  __exportStar(require("./GetContactsResponseBody.js"), exports);
150
+ __exportStar(require("./GetCustomerPortalSettingsResponseBody.js"), exports);
137
151
  __exportStar(require("./GetCustomFieldResponseBody.js"), exports);
138
152
  __exportStar(require("./GetCustomFieldsResponseBody.js"), exports);
139
153
  __exportStar(require("./GetCustomObjectResponseBody.js"), exports);
@@ -238,11 +252,13 @@ __exportStar(require("./RequestArticleReviewData.js"), exports);
238
252
  __exportStar(require("./RequestArticleReviewResponseBody.js"), exports);
239
253
  __exportStar(require("./RouteRedirect.js"), exports);
240
254
  __exportStar(require("./SearchAccountsResponseBody.js"), exports);
255
+ __exportStar(require("./SearchAccountsSort.js"), exports);
241
256
  __exportStar(require("./SearchCallRecordingsResponseBody.js"), exports);
242
257
  __exportStar(require("./SearchContactsResponseBody.js"), exports);
243
258
  __exportStar(require("./SearchCustomObjectsResponseBody.js"), exports);
244
259
  __exportStar(require("./SearchFeatureRequestsResponseBody.js"), exports);
245
260
  __exportStar(require("./SearchIssuesResponseBody.js"), exports);
261
+ __exportStar(require("./SearchIssuesSort.js"), exports);
246
262
  __exportStar(require("./SearchMilestonesResponseBody.js"), exports);
247
263
  __exportStar(require("./SearchProjectsResponseBody.js"), exports);
248
264
  __exportStar(require("./SearchSurveysResponseBody.js"), exports);
@@ -250,6 +266,7 @@ __exportStar(require("./SearchTagsResponseBody.js"), exports);
250
266
  __exportStar(require("./SearchTasksResponseBody.js"), exports);
251
267
  __exportStar(require("./SearchUsersResponseBody.js"), exports);
252
268
  __exportStar(require("./SelectMetadata.js"), exports);
269
+ __exportStar(require("./SendCustomerPortalInvitationResponseBody.js"), exports);
253
270
  __exportStar(require("./SetFeatureRequestPortalVisibilityResponseBody.js"), exports);
254
271
  __exportStar(require("./SkippedIssue.js"), exports);
255
272
  __exportStar(require("./SlackInfo.js"), exports);
@@ -290,6 +307,12 @@ __exportStar(require("./UpdateCallRecordingResponseBody.js"), exports);
290
307
  __exportStar(require("./UpdateCollectionResponseBody.js"), exports);
291
308
  __exportStar(require("./UpdateContactEmail.js"), exports);
292
309
  __exportStar(require("./UpdateContactResponseBody.js"), exports);
310
+ __exportStar(require("./UpdateCustomerPortalAccessSettings.js"), exports);
311
+ __exportStar(require("./UpdateCustomerPortalBranding.js"), exports);
312
+ __exportStar(require("./UpdateCustomerPortalDisplaySettings.js"), exports);
313
+ __exportStar(require("./UpdateCustomerPortalNavigation.js"), exports);
314
+ __exportStar(require("./UpdateCustomerPortalTabs.js"), exports);
315
+ __exportStar(require("./UpdateCustomerPortalUserPermissions.js"), exports);
293
316
  __exportStar(require("./UpdateCustomFieldResponseBody.js"), exports);
294
317
  __exportStar(require("./UpdateCustomFieldSelectOptionResponseBody.js"), exports);
295
318
  __exportStar(require("./UpdateCustomObjectResponseBody.js"), exports);
@@ -317,5 +340,6 @@ __exportStar(require("./UserStatus.js"), exports);
317
340
  __exportStar(require("./Visibility.js"), exports);
318
341
  __exportStar(require("./VisibilityInput.js"), exports);
319
342
  __exportStar(require("./VoiceCall.js"), exports);
343
+ __exportStar(require("./VoiceCallParticipant.js"), exports);
320
344
  __exportStar(require("./VoiceCallRecording.js"), exports);
321
345
  __exportStar(require("./VoiceCallTranscriptSegment.js"), exports);
@@ -5,7 +5,7 @@ import * as core from "./core/index.js";
5
5
  export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
- "User-Agent": "@usepylon/sdk/0.1.0-alpha.5",
8
+ "User-Agent": "@usepylon/sdk/0.1.0-beta.2",
9
9
  "X-Fern-Runtime": core.RUNTIME.type,
10
10
  "X-Fern-Runtime-Version": core.RUNTIME.version,
11
11
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -5,6 +5,7 @@ import { AttachmentsClient } from "./api/resources/attachments/client/Client.js"
5
5
  import { AuditLogsClient } from "./api/resources/auditLogs/client/Client.js";
6
6
  import { CallRecordingsClient } from "./api/resources/callRecordings/client/Client.js";
7
7
  import { ContactsClient } from "./api/resources/contacts/client/Client.js";
8
+ import { CustomerPortalClient } from "./api/resources/customerPortal/client/Client.js";
8
9
  import { CustomFieldsClient } from "./api/resources/customFields/client/Client.js";
9
10
  import { CustomObjectsClient } from "./api/resources/customObjects/client/Client.js";
10
11
  import { EmailSuppressionsClient } from "./api/resources/emailSuppressions/client/Client.js";
@@ -47,6 +48,7 @@ export declare class PylonClient {
47
48
  protected _contacts: ContactsClient | undefined;
48
49
  protected _customFields: CustomFieldsClient | undefined;
49
50
  protected _customObjects: CustomObjectsClient | undefined;
51
+ protected _customerPortal: CustomerPortalClient | undefined;
50
52
  protected _emailSuppressions: EmailSuppressionsClient | undefined;
51
53
  protected _featureRequests: FeatureRequestsClient | undefined;
52
54
  protected _issueGroups: IssueGroupsClient | undefined;
@@ -78,6 +80,7 @@ export declare class PylonClient {
78
80
  get contacts(): ContactsClient;
79
81
  get customFields(): CustomFieldsClient;
80
82
  get customObjects(): CustomObjectsClient;
83
+ get customerPortal(): CustomerPortalClient;
81
84
  get emailSuppressions(): EmailSuppressionsClient;
82
85
  get featureRequests(): FeatureRequestsClient;
83
86
  get issueGroups(): IssueGroupsClient;
@@ -15,6 +15,7 @@ import { AttachmentsClient } from "./api/resources/attachments/client/Client.js"
15
15
  import { AuditLogsClient } from "./api/resources/auditLogs/client/Client.js";
16
16
  import { CallRecordingsClient } from "./api/resources/callRecordings/client/Client.js";
17
17
  import { ContactsClient } from "./api/resources/contacts/client/Client.js";
18
+ import { CustomerPortalClient } from "./api/resources/customerPortal/client/Client.js";
18
19
  import { CustomFieldsClient } from "./api/resources/customFields/client/Client.js";
19
20
  import { CustomObjectsClient } from "./api/resources/customObjects/client/Client.js";
20
21
  import { EmailSuppressionsClient } from "./api/resources/emailSuppressions/client/Client.js";
@@ -80,6 +81,10 @@ export class PylonClient {
80
81
  var _a;
81
82
  return ((_a = this._customObjects) !== null && _a !== void 0 ? _a : (this._customObjects = new CustomObjectsClient(this._options)));
82
83
  }
84
+ get customerPortal() {
85
+ var _a;
86
+ return ((_a = this._customerPortal) !== null && _a !== void 0 ? _a : (this._customerPortal = new CustomerPortalClient(this._options)));
87
+ }
83
88
  get emailSuppressions() {
84
89
  var _a;
85
90
  return ((_a = this._emailSuppressions) !== null && _a !== void 0 ? _a : (this._emailSuppressions = new EmailSuppressionsClient(this._options)));
@@ -11,4 +11,6 @@ export interface AccountsSearchRequest {
11
11
  limit?: number;
12
12
  /** Fuzzy text search. Results are intersected with any provided filter. */
13
13
  search_text?: string;
14
+ /** The order of results, as a list of sort keys. Only one sort key is supported right now. Omit for the default order. Send the same sort with every page of a cursor. */
15
+ sort?: Pylon.SearchAccountsSort[];
14
16
  }
@@ -56,7 +56,7 @@ export declare class ContactsClient {
56
56
  create(request: Pylon.ContactsCreateRequest, requestOptions?: ContactsClient.RequestOptions): core.HttpResponsePromise<Pylon.CreateContactResponseBody>;
57
57
  private __create;
58
58
  /**
59
- * Merges a contact into a surviving contact. If the merged contact belongs to a different account, it is first moved to the surviving contact's account. Issues, emails, phone numbers, survey responses, and other associated data are then transferred to the surviving contact, and the merged contact is permanently deleted. This cannot be undone.
59
+ * Merges a contact into a surviving contact. Both contacts must belong to the same account, unless the merged contact has no account, in which case it is first moved to the surviving contact's account. Issues, emails, phone numbers, survey responses, and other associated data are then transferred to the surviving contact, and the merged contact is permanently deleted. This cannot be undone.
60
60
  *
61
61
  * **Rate limit:** 30 requests per minute
62
62
  *
@@ -180,4 +180,28 @@ export declare class ContactsClient {
180
180
  */
181
181
  update(request: Pylon.ContactsUpdateRequest, requestOptions?: ContactsClient.RequestOptions): core.HttpResponsePromise<Pylon.UpdateContactResponseBody>;
182
182
  private __update;
183
+ /**
184
+ * Sends or resends a portal invitation to the contact's primary email. The portal must be enabled and the contact must already have portal access. Does not change the contact's role. Requires customer portal settings write permission and write access to the contact's primary account, if any. Each successful call requests another invitation; success does not guarantee email delivery.
185
+ *
186
+ * **Rate limit:** 30 requests per minute
187
+ *
188
+ * @param {Pylon.ContactsPortalInvitationRequest} request
189
+ * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.
190
+ *
191
+ * @throws {@link Pylon.BadRequestError}
192
+ * @throws {@link Pylon.UnauthorizedError}
193
+ * @throws {@link Pylon.ForbiddenError}
194
+ * @throws {@link Pylon.NotFoundError}
195
+ * @throws {@link Pylon.TooManyRequestsError}
196
+ * @throws {@link Pylon.InternalServerError}
197
+ * @throws {@link errors.PylonError}
198
+ * @throws {@link errors.PylonTimeoutError}
199
+ *
200
+ * @example
201
+ * await client.contacts.portalInvitation({
202
+ * contact_id: "id"
203
+ * })
204
+ */
205
+ portalInvitation(request: Pylon.ContactsPortalInvitationRequest, requestOptions?: ContactsClient.RequestOptions): core.HttpResponsePromise<Pylon.SendCustomerPortalInvitationResponseBody>;
206
+ private __portalInvitation;
183
207
  }
@@ -197,7 +197,7 @@ export class ContactsClient {
197
197
  });
198
198
  }
199
199
  /**
200
- * Merges a contact into a surviving contact. If the merged contact belongs to a different account, it is first moved to the surviving contact's account. Issues, emails, phone numbers, survey responses, and other associated data are then transferred to the surviving contact, and the merged contact is permanently deleted. This cannot be undone.
200
+ * Merges a contact into a surviving contact. Both contacts must belong to the same account, unless the merged contact has no account, in which case it is first moved to the surviving contact's account. Issues, emails, phone numbers, survey responses, and other associated data are then transferred to the surviving contact, and the merged contact is permanently deleted. This cannot be undone.
201
201
  *
202
202
  * **Rate limit:** 30 requests per minute
203
203
  *
@@ -572,4 +572,77 @@ export class ContactsClient {
572
572
  return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/contacts/{id}");
573
573
  });
574
574
  }
575
+ /**
576
+ * Sends or resends a portal invitation to the contact's primary email. The portal must be enabled and the contact must already have portal access. Does not change the contact's role. Requires customer portal settings write permission and write access to the contact's primary account, if any. Each successful call requests another invitation; success does not guarantee email delivery.
577
+ *
578
+ * **Rate limit:** 30 requests per minute
579
+ *
580
+ * @param {Pylon.ContactsPortalInvitationRequest} request
581
+ * @param {ContactsClient.RequestOptions} requestOptions - Request-specific configuration.
582
+ *
583
+ * @throws {@link Pylon.BadRequestError}
584
+ * @throws {@link Pylon.UnauthorizedError}
585
+ * @throws {@link Pylon.ForbiddenError}
586
+ * @throws {@link Pylon.NotFoundError}
587
+ * @throws {@link Pylon.TooManyRequestsError}
588
+ * @throws {@link Pylon.InternalServerError}
589
+ * @throws {@link errors.PylonError}
590
+ * @throws {@link errors.PylonTimeoutError}
591
+ *
592
+ * @example
593
+ * await client.contacts.portalInvitation({
594
+ * contact_id: "id"
595
+ * })
596
+ */
597
+ portalInvitation(request, requestOptions) {
598
+ return core.HttpResponsePromise.fromPromise(this.__portalInvitation(request, requestOptions));
599
+ }
600
+ __portalInvitation(request, requestOptions) {
601
+ return __awaiter(this, void 0, void 0, function* () {
602
+ var _a, _b, _c, _d, _e, _f, _g;
603
+ const { contact_id: contactId } = request;
604
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
605
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
606
+ const _response = yield core.fetcher({
607
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PylonEnvironment.Us, `contacts/${core.url.encodePathParam(contactId)}/portal-invitation`),
608
+ method: "POST",
609
+ headers: _headers,
610
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
611
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
612
+ maxRetries: 0,
613
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
614
+ fetchFn: (_g = this._options) === null || _g === void 0 ? void 0 : _g.fetch,
615
+ logging: this._options.logging,
616
+ });
617
+ if (_response.ok) {
618
+ return {
619
+ data: _response.body,
620
+ rawResponse: _response.rawResponse,
621
+ };
622
+ }
623
+ if (_response.error.reason === "status-code") {
624
+ switch (_response.error.statusCode) {
625
+ case 400:
626
+ throw new Pylon.BadRequestError(_response.error.body, _response.rawResponse);
627
+ case 401:
628
+ throw new Pylon.UnauthorizedError(_response.error.body, _response.rawResponse);
629
+ case 403:
630
+ throw new Pylon.ForbiddenError(_response.error.body, _response.rawResponse);
631
+ case 404:
632
+ throw new Pylon.NotFoundError(_response.error.body, _response.rawResponse);
633
+ case 429:
634
+ throw new Pylon.TooManyRequestsError(_response.error.body, _response.rawResponse);
635
+ case 500:
636
+ throw new Pylon.InternalServerError(_response.error.body, _response.rawResponse);
637
+ default:
638
+ throw new errors.PylonError({
639
+ statusCode: _response.error.statusCode,
640
+ body: _response.error.body,
641
+ rawResponse: _response.rawResponse,
642
+ });
643
+ }
644
+ }
645
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/contacts/{contact_id}/portal-invitation");
646
+ });
647
+ }
575
648
  }
@@ -8,6 +8,6 @@
8
8
  export interface ContactsMergeRequest {
9
9
  /** The ID of the contact to merge into the surviving contact. This contact is permanently deleted after its data is transferred. */
10
10
  merge_contact_id: string;
11
- /** The ID of the contact that will survive the merge and receive the merged data. The contact must belong to an account. */
11
+ /** The ID of the contact that will survive the merge and receive the merged data. If the merged contact belongs to an account, this contact must belong to the same account. */
12
12
  merge_into_contact_id: string;
13
13
  }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * contact_id: "id"
5
+ * }
6
+ */
7
+ export interface ContactsPortalInvitationRequest {
8
+ /** The ID of the contact to invite. */
9
+ contact_id: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -3,5 +3,6 @@ export type { ContactsDeleteRequest } from "./ContactsDeleteRequest.js";
3
3
  export type { ContactsGetRequest } from "./ContactsGetRequest.js";
4
4
  export type { ContactsListRequest } from "./ContactsListRequest.js";
5
5
  export type { ContactsMergeRequest } from "./ContactsMergeRequest.js";
6
+ export type { ContactsPortalInvitationRequest } from "./ContactsPortalInvitationRequest.js";
6
7
  export type { ContactsSearchRequest } from "./ContactsSearchRequest.js";
7
8
  export type { ContactsUpdateRequest } from "./ContactsUpdateRequest.js";
@@ -0,0 +1,53 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as Pylon from "../../../index.js";
5
+ export declare namespace CustomerPortalClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class CustomerPortalClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<CustomerPortalClient.Options>;
12
+ constructor(options: CustomerPortalClient.Options);
13
+ /**
14
+ * Returns the organization's customer portal settings.
15
+ *
16
+ * **Rate limit:** 120 requests per minute
17
+ *
18
+ * @param {CustomerPortalClient.RequestOptions} requestOptions - Request-specific configuration.
19
+ *
20
+ * @throws {@link Pylon.UnauthorizedError}
21
+ * @throws {@link Pylon.ForbiddenError}
22
+ * @throws {@link Pylon.TooManyRequestsError}
23
+ * @throws {@link Pylon.InternalServerError}
24
+ * @throws {@link errors.PylonError}
25
+ * @throws {@link errors.PylonTimeoutError}
26
+ *
27
+ * @example
28
+ * await client.customerPortal.getSettings()
29
+ */
30
+ getSettings(requestOptions?: CustomerPortalClient.RequestOptions): core.HttpResponsePromise<Pylon.GetCustomerPortalSettingsResponseBody>;
31
+ private __getSettings;
32
+ /**
33
+ * Updates the organization's customer portal settings. Only provided fields are modified.
34
+ *
35
+ * **Rate limit:** 30 requests per minute
36
+ *
37
+ * @param {Pylon.CustomerPortalUpdateSettingsRequest} request
38
+ * @param {CustomerPortalClient.RequestOptions} requestOptions - Request-specific configuration.
39
+ *
40
+ * @throws {@link Pylon.BadRequestError}
41
+ * @throws {@link Pylon.UnauthorizedError}
42
+ * @throws {@link Pylon.ForbiddenError}
43
+ * @throws {@link Pylon.TooManyRequestsError}
44
+ * @throws {@link Pylon.InternalServerError}
45
+ * @throws {@link errors.PylonError}
46
+ * @throws {@link errors.PylonTimeoutError}
47
+ *
48
+ * @example
49
+ * await client.customerPortal.updateSettings()
50
+ */
51
+ updateSettings(request?: Pylon.CustomerPortalUpdateSettingsRequest, requestOptions?: CustomerPortalClient.RequestOptions): core.HttpResponsePromise<Pylon.GetCustomerPortalSettingsResponseBody>;
52
+ private __updateSettings;
53
+ }
@@ -0,0 +1,156 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.js";
12
+ import { mergeHeaders } from "../../../../core/headers.js";
13
+ import * as core from "../../../../core/index.js";
14
+ import { mergeAdditionalBodyParameters } from "../../../../core/requestBody.js";
15
+ import * as environments from "../../../../environments.js";
16
+ import { handleNonStatusCodeError } from "../../../../errors/handleNonStatusCodeError.js";
17
+ import * as errors from "../../../../errors/index.js";
18
+ import * as Pylon from "../../../index.js";
19
+ export class CustomerPortalClient {
20
+ constructor(options) {
21
+ this._options = normalizeClientOptionsWithAuth(options);
22
+ }
23
+ /**
24
+ * Returns the organization's customer portal settings.
25
+ *
26
+ * **Rate limit:** 120 requests per minute
27
+ *
28
+ * @param {CustomerPortalClient.RequestOptions} requestOptions - Request-specific configuration.
29
+ *
30
+ * @throws {@link Pylon.UnauthorizedError}
31
+ * @throws {@link Pylon.ForbiddenError}
32
+ * @throws {@link Pylon.TooManyRequestsError}
33
+ * @throws {@link Pylon.InternalServerError}
34
+ * @throws {@link errors.PylonError}
35
+ * @throws {@link errors.PylonTimeoutError}
36
+ *
37
+ * @example
38
+ * await client.customerPortal.getSettings()
39
+ */
40
+ getSettings(requestOptions) {
41
+ return core.HttpResponsePromise.fromPromise(this.__getSettings(requestOptions));
42
+ }
43
+ __getSettings(requestOptions) {
44
+ return __awaiter(this, void 0, void 0, function* () {
45
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
46
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
47
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
48
+ const _response = yield core.fetcher({
49
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PylonEnvironment.Us, "customer-portal/settings"),
50
+ method: "GET",
51
+ headers: _headers,
52
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
53
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
54
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
55
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
56
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
57
+ logging: this._options.logging,
58
+ });
59
+ if (_response.ok) {
60
+ return {
61
+ data: _response.body,
62
+ rawResponse: _response.rawResponse,
63
+ };
64
+ }
65
+ if (_response.error.reason === "status-code") {
66
+ switch (_response.error.statusCode) {
67
+ case 401:
68
+ throw new Pylon.UnauthorizedError(_response.error.body, _response.rawResponse);
69
+ case 403:
70
+ throw new Pylon.ForbiddenError(_response.error.body, _response.rawResponse);
71
+ case 429:
72
+ throw new Pylon.TooManyRequestsError(_response.error.body, _response.rawResponse);
73
+ case 500:
74
+ throw new Pylon.InternalServerError(_response.error.body, _response.rawResponse);
75
+ default:
76
+ throw new errors.PylonError({
77
+ statusCode: _response.error.statusCode,
78
+ body: _response.error.body,
79
+ rawResponse: _response.rawResponse,
80
+ });
81
+ }
82
+ }
83
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/customer-portal/settings");
84
+ });
85
+ }
86
+ /**
87
+ * Updates the organization's customer portal settings. Only provided fields are modified.
88
+ *
89
+ * **Rate limit:** 30 requests per minute
90
+ *
91
+ * @param {Pylon.CustomerPortalUpdateSettingsRequest} request
92
+ * @param {CustomerPortalClient.RequestOptions} requestOptions - Request-specific configuration.
93
+ *
94
+ * @throws {@link Pylon.BadRequestError}
95
+ * @throws {@link Pylon.UnauthorizedError}
96
+ * @throws {@link Pylon.ForbiddenError}
97
+ * @throws {@link Pylon.TooManyRequestsError}
98
+ * @throws {@link Pylon.InternalServerError}
99
+ * @throws {@link errors.PylonError}
100
+ * @throws {@link errors.PylonTimeoutError}
101
+ *
102
+ * @example
103
+ * await client.customerPortal.updateSettings()
104
+ */
105
+ updateSettings(request = {}, requestOptions) {
106
+ return core.HttpResponsePromise.fromPromise(this.__updateSettings(request, requestOptions));
107
+ }
108
+ __updateSettings() {
109
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
110
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
111
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
112
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
113
+ const _response = yield core.fetcher({
114
+ url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PylonEnvironment.Us, "customer-portal/settings"),
115
+ method: "PATCH",
116
+ headers: _headers,
117
+ contentType: "application/json",
118
+ queryString: core.url.queryBuilder().mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams).build(),
119
+ requestType: "json",
120
+ body: mergeAdditionalBodyParameters(request, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.additionalBodyParameters),
121
+ timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
122
+ maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
123
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
124
+ fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
125
+ logging: this._options.logging,
126
+ });
127
+ if (_response.ok) {
128
+ return {
129
+ data: _response.body,
130
+ rawResponse: _response.rawResponse,
131
+ };
132
+ }
133
+ if (_response.error.reason === "status-code") {
134
+ switch (_response.error.statusCode) {
135
+ case 400:
136
+ throw new Pylon.BadRequestError(_response.error.body, _response.rawResponse);
137
+ case 401:
138
+ throw new Pylon.UnauthorizedError(_response.error.body, _response.rawResponse);
139
+ case 403:
140
+ throw new Pylon.ForbiddenError(_response.error.body, _response.rawResponse);
141
+ case 429:
142
+ throw new Pylon.TooManyRequestsError(_response.error.body, _response.rawResponse);
143
+ case 500:
144
+ throw new Pylon.InternalServerError(_response.error.body, _response.rawResponse);
145
+ default:
146
+ throw new errors.PylonError({
147
+ statusCode: _response.error.statusCode,
148
+ body: _response.error.body,
149
+ rawResponse: _response.rawResponse,
150
+ });
151
+ }
152
+ }
153
+ return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/customer-portal/settings");
154
+ });
155
+ }
156
+ }
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.js";
@@ -0,0 +1,15 @@
1
+ import type * as Pylon from "../../../../index.js";
2
+ /**
3
+ * @example
4
+ * {}
5
+ */
6
+ export interface CustomerPortalUpdateSettingsRequest {
7
+ access?: Pylon.UpdateCustomerPortalAccessSettings;
8
+ branding?: Pylon.UpdateCustomerPortalBranding;
9
+ display?: Pylon.UpdateCustomerPortalDisplaySettings;
10
+ /** Whether the customer portal is enabled. Enabling it requires a plan that includes the customer portal. */
11
+ enabled?: boolean;
12
+ navigation?: Pylon.UpdateCustomerPortalNavigation;
13
+ portal_user_permissions?: Pylon.UpdateCustomerPortalUserPermissions;
14
+ tabs?: Pylon.UpdateCustomerPortalTabs;
15
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1 @@
1
+ export type { CustomerPortalUpdateSettingsRequest } from "./CustomerPortalUpdateSettingsRequest.js";
@@ -0,0 +1,2 @@
1
+ export { CustomerPortalClient } from "./client/Client.js";
2
+ export * from "./client/index.js";
@@ -0,0 +1,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export { CustomerPortalClient } from "./client/Client.js";
3
+ export * from "./client/index.js";
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -0,0 +1 @@
1
+ export * from "./client/index.js";
@@ -11,6 +11,8 @@ export * from "./callRecordings/client/requests/index.js";
11
11
  export * as callRecordings from "./callRecordings/index.js";
12
12
  export * from "./contacts/client/requests/index.js";
13
13
  export * as contacts from "./contacts/index.js";
14
+ export * from "./customerPortal/client/requests/index.js";
15
+ export * as customerPortal from "./customerPortal/index.js";
14
16
  export * from "./customFields/client/requests/index.js";
15
17
  export * as customFields from "./customFields/index.js";
16
18
  export * from "./customFields/types/index.js";
@@ -11,6 +11,8 @@ export * from "./callRecordings/client/requests/index.js";
11
11
  export * as callRecordings from "./callRecordings/index.js";
12
12
  export * from "./contacts/client/requests/index.js";
13
13
  export * as contacts from "./contacts/index.js";
14
+ export * from "./customerPortal/client/requests/index.js";
15
+ export * as customerPortal from "./customerPortal/index.js";
14
16
  export * from "./customFields/client/requests/index.js";
15
17
  export * as customFields from "./customFields/index.js";
16
18
  export * from "./customFields/types/index.js";
@@ -99,6 +99,17 @@ export declare class IssuesClient {
99
99
  *
100
100
  * @example
101
101
  * await client.issues.create({
102
+ * account_id: "acc_123",
103
+ * body_html: "<p>We are scheduling maintenance for this weekend.</p>",
104
+ * destination_metadata: {
105
+ * destination: "slack",
106
+ * slack_channel_id: "C0123456789"
107
+ * },
108
+ * title: "Maintenance window"
109
+ * })
110
+ *
111
+ * @example
112
+ * await client.issues.create({
102
113
  * body_html: "<p>Your order is ready.</p>",
103
114
  * destination_metadata: {
104
115
  * destination: "whatsapp",
@@ -201,6 +201,17 @@ export class IssuesClient {
201
201
  *
202
202
  * @example
203
203
  * await client.issues.create({
204
+ * account_id: "acc_123",
205
+ * body_html: "<p>We are scheduling maintenance for this weekend.</p>",
206
+ * destination_metadata: {
207
+ * destination: "slack",
208
+ * slack_channel_id: "C0123456789"
209
+ * },
210
+ * title: "Maintenance window"
211
+ * })
212
+ *
213
+ * @example
214
+ * await client.issues.create({
204
215
  * body_html: "<p>Your order is ready.</p>",
205
216
  * destination_metadata: {
206
217
  * destination: "whatsapp",