@usepylon/sdk 0.1.0-alpha.3 → 0.1.0-alpha.5

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 (171) hide show
  1. package/dist/cjs/BaseClient.js +1 -0
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +7 -2
  4. package/dist/cjs/api/resources/accounts/client/Client.d.ts +3 -0
  5. package/dist/cjs/api/resources/accounts/client/Client.js +11 -6
  6. package/dist/cjs/api/resources/accounts/resources/emailActivities/client/Client.d.ts +39 -0
  7. package/dist/cjs/api/resources/accounts/resources/emailActivities/client/Client.js +159 -0
  8. package/dist/cjs/api/resources/accounts/resources/emailActivities/client/index.d.ts +1 -0
  9. package/dist/cjs/api/resources/accounts/resources/emailActivities/client/index.js +17 -0
  10. package/dist/cjs/api/resources/accounts/resources/emailActivities/client/requests/AccountsEmailActivitiesListRequest.d.ts +18 -0
  11. package/dist/cjs/api/resources/accounts/resources/emailActivities/client/requests/AccountsEmailActivitiesListRequest.js +3 -0
  12. package/dist/cjs/api/resources/accounts/resources/emailActivities/client/requests/index.d.ts +1 -0
  13. package/dist/cjs/api/resources/accounts/resources/emailActivities/client/requests/index.js +2 -0
  14. package/dist/cjs/api/resources/accounts/resources/emailActivities/exports.d.ts +2 -0
  15. package/dist/cjs/api/resources/accounts/resources/emailActivities/exports.js +21 -0
  16. package/dist/cjs/api/resources/accounts/resources/emailActivities/index.d.ts +1 -0
  17. package/dist/cjs/api/resources/accounts/resources/emailActivities/index.js +17 -0
  18. package/dist/cjs/api/resources/accounts/resources/index.d.ts +2 -0
  19. package/dist/cjs/api/resources/accounts/resources/index.js +3 -1
  20. package/dist/cjs/api/resources/contacts/client/Client.d.ts +25 -0
  21. package/dist/cjs/api/resources/contacts/client/Client.js +73 -0
  22. package/dist/cjs/api/resources/contacts/client/requests/ContactsMergeRequest.d.ts +13 -0
  23. package/dist/cjs/api/resources/contacts/client/requests/ContactsMergeRequest.js +3 -0
  24. package/dist/cjs/api/resources/contacts/client/requests/index.d.ts +1 -0
  25. package/dist/cjs/api/resources/index.d.ts +1 -0
  26. package/dist/cjs/api/resources/index.js +2 -1
  27. package/dist/cjs/api/resources/issues/client/requests/IssuesCreateDraftReplyRequest.d.ts +6 -0
  28. package/dist/cjs/api/resources/issues/client/requests/IssuesCreateRequest.d.ts +2 -0
  29. package/dist/cjs/api/resources/knowledgeBases/resources/articles/client/Client.d.ts +0 -1
  30. package/dist/cjs/api/resources/knowledgeBases/resources/articles/client/Client.js +0 -1
  31. package/dist/cjs/api/resources/knowledgeBases/resources/articles/client/requests/KnowledgeBasesArticlesCreateRequest.d.ts +6 -3
  32. package/dist/cjs/api/resources/knowledgeBases/resources/articles/client/requests/KnowledgeBasesArticlesUpdateRequest.d.ts +4 -0
  33. package/dist/cjs/api/resources/projects/client/Client.d.ts +1 -1
  34. package/dist/cjs/api/resources/projects/client/Client.js +1 -1
  35. package/dist/cjs/api/resources/projects/client/requests/ProjectsCreateRequest.d.ts +3 -1
  36. package/dist/cjs/api/resources/projects/client/requests/ProjectsUpdateRequest.d.ts +2 -0
  37. package/dist/cjs/api/resources/tasks/client/requests/TasksCreateRequest.d.ts +4 -0
  38. package/dist/cjs/api/resources/tasks/client/requests/TasksUpdateRequest.d.ts +4 -0
  39. package/dist/cjs/api/resources/userStatuses/client/Client.d.ts +33 -0
  40. package/dist/cjs/api/resources/userStatuses/client/Client.js +122 -0
  41. package/dist/cjs/api/resources/userStatuses/client/index.d.ts +1 -0
  42. package/dist/cjs/api/resources/userStatuses/client/index.js +2 -0
  43. package/dist/cjs/api/resources/userStatuses/exports.d.ts +2 -0
  44. package/dist/cjs/api/resources/userStatuses/exports.js +21 -0
  45. package/dist/cjs/api/resources/userStatuses/index.d.ts +1 -0
  46. package/dist/cjs/api/resources/userStatuses/index.js +17 -0
  47. package/dist/cjs/api/resources/users/client/requests/UsersUpdateRequest.d.ts +10 -11
  48. package/dist/cjs/api/resources/users/client/requests/UsersUpdateRequest.js +0 -10
  49. package/dist/cjs/api/resources/users/client/requests/index.d.ts +1 -1
  50. package/dist/cjs/api/resources/users/client/requests/index.js +0 -3
  51. package/dist/cjs/api/types/Account.d.ts +2 -0
  52. package/dist/cjs/api/types/Article.d.ts +4 -0
  53. package/dist/cjs/api/types/ArticleTranslationInput.d.ts +4 -2
  54. package/dist/cjs/api/types/EmailActivity.d.ts +11 -0
  55. package/dist/cjs/api/types/EmailActivity.js +3 -0
  56. package/dist/cjs/api/types/EmailActivityMessage.d.ts +18 -0
  57. package/dist/cjs/api/types/EmailActivityMessage.js +3 -0
  58. package/dist/cjs/api/types/GetEmailActivitiesResponseBody.d.ts +8 -0
  59. package/dist/cjs/api/types/GetEmailActivitiesResponseBody.js +3 -0
  60. package/dist/cjs/api/types/GetUserStatusesResponseBody.d.ts +7 -0
  61. package/dist/cjs/api/types/GetUserStatusesResponseBody.js +3 -0
  62. package/dist/cjs/api/types/ImportIssueRequest.d.ts +1 -1
  63. package/dist/cjs/api/types/Issue.d.ts +12 -0
  64. package/dist/cjs/api/types/MergeContactsResponseBody.d.ts +6 -0
  65. package/dist/cjs/api/types/MergeContactsResponseBody.js +3 -0
  66. package/dist/cjs/api/types/Message.d.ts +3 -0
  67. package/dist/cjs/api/types/MessageReaction.d.ts +6 -0
  68. package/dist/cjs/api/types/MessageReaction.js +3 -0
  69. package/dist/cjs/api/types/Project.d.ts +2 -0
  70. package/dist/cjs/api/types/SlaTimes.d.ts +6 -2
  71. package/dist/cjs/api/types/SlackMessageInfo.d.ts +10 -0
  72. package/dist/cjs/api/types/SlackMessageInfo.js +3 -0
  73. package/dist/cjs/api/types/Task.d.ts +6 -0
  74. package/dist/cjs/api/types/TeamAssignmentConfiguration.d.ts +10 -1
  75. package/dist/cjs/api/types/TeamAssignmentConfigurationInput.d.ts +10 -1
  76. package/dist/cjs/api/types/TeamSla.d.ts +2 -0
  77. package/dist/cjs/api/types/User.d.ts +3 -5
  78. package/dist/cjs/api/types/UserSkill.d.ts +13 -0
  79. package/dist/cjs/api/types/UserSkill.js +3 -0
  80. package/dist/cjs/api/types/UserSkillValue.d.ts +6 -0
  81. package/dist/cjs/api/types/UserSkillValue.js +3 -0
  82. package/dist/cjs/api/types/UserStatus.d.ts +12 -0
  83. package/dist/cjs/api/types/UserStatus.js +3 -0
  84. package/dist/cjs/api/types/index.d.ts +10 -0
  85. package/dist/cjs/api/types/index.js +10 -0
  86. package/dist/esm/BaseClient.js +1 -0
  87. package/dist/esm/Client.d.ts +3 -0
  88. package/dist/esm/Client.js +5 -0
  89. package/dist/esm/api/resources/accounts/client/Client.d.ts +3 -0
  90. package/dist/esm/api/resources/accounts/client/Client.js +5 -0
  91. package/dist/esm/api/resources/accounts/resources/emailActivities/client/Client.d.ts +39 -0
  92. package/dist/esm/api/resources/accounts/resources/emailActivities/client/Client.js +122 -0
  93. package/dist/esm/api/resources/accounts/resources/emailActivities/client/index.d.ts +1 -0
  94. package/dist/esm/api/resources/accounts/resources/emailActivities/client/index.js +1 -0
  95. package/dist/esm/api/resources/accounts/resources/emailActivities/client/requests/AccountsEmailActivitiesListRequest.d.ts +18 -0
  96. package/dist/esm/api/resources/accounts/resources/emailActivities/client/requests/AccountsEmailActivitiesListRequest.js +2 -0
  97. package/dist/esm/api/resources/accounts/resources/emailActivities/client/requests/index.d.ts +1 -0
  98. package/dist/esm/api/resources/accounts/resources/emailActivities/client/requests/index.js +1 -0
  99. package/dist/esm/api/resources/accounts/resources/emailActivities/exports.d.ts +2 -0
  100. package/dist/esm/api/resources/accounts/resources/emailActivities/exports.js +3 -0
  101. package/dist/esm/api/resources/accounts/resources/emailActivities/index.d.ts +1 -0
  102. package/dist/esm/api/resources/accounts/resources/emailActivities/index.js +1 -0
  103. package/dist/esm/api/resources/accounts/resources/index.d.ts +2 -0
  104. package/dist/esm/api/resources/accounts/resources/index.js +2 -0
  105. package/dist/esm/api/resources/contacts/client/Client.d.ts +25 -0
  106. package/dist/esm/api/resources/contacts/client/Client.js +73 -0
  107. package/dist/esm/api/resources/contacts/client/requests/ContactsMergeRequest.d.ts +13 -0
  108. package/dist/esm/api/resources/contacts/client/requests/ContactsMergeRequest.js +2 -0
  109. package/dist/esm/api/resources/contacts/client/requests/index.d.ts +1 -0
  110. package/dist/esm/api/resources/index.d.ts +1 -0
  111. package/dist/esm/api/resources/index.js +1 -0
  112. package/dist/esm/api/resources/issues/client/requests/IssuesCreateDraftReplyRequest.d.ts +6 -0
  113. package/dist/esm/api/resources/issues/client/requests/IssuesCreateRequest.d.ts +2 -0
  114. package/dist/esm/api/resources/knowledgeBases/resources/articles/client/Client.d.ts +0 -1
  115. package/dist/esm/api/resources/knowledgeBases/resources/articles/client/Client.js +0 -1
  116. package/dist/esm/api/resources/knowledgeBases/resources/articles/client/requests/KnowledgeBasesArticlesCreateRequest.d.ts +6 -3
  117. package/dist/esm/api/resources/knowledgeBases/resources/articles/client/requests/KnowledgeBasesArticlesUpdateRequest.d.ts +4 -0
  118. package/dist/esm/api/resources/projects/client/Client.d.ts +1 -1
  119. package/dist/esm/api/resources/projects/client/Client.js +1 -1
  120. package/dist/esm/api/resources/projects/client/requests/ProjectsCreateRequest.d.ts +3 -1
  121. package/dist/esm/api/resources/projects/client/requests/ProjectsUpdateRequest.d.ts +2 -0
  122. package/dist/esm/api/resources/tasks/client/requests/TasksCreateRequest.d.ts +4 -0
  123. package/dist/esm/api/resources/tasks/client/requests/TasksUpdateRequest.d.ts +4 -0
  124. package/dist/esm/api/resources/userStatuses/client/Client.d.ts +33 -0
  125. package/dist/esm/api/resources/userStatuses/client/Client.js +85 -0
  126. package/dist/esm/api/resources/userStatuses/client/index.d.ts +1 -0
  127. package/dist/esm/api/resources/userStatuses/client/index.js +1 -0
  128. package/dist/esm/api/resources/userStatuses/exports.d.ts +2 -0
  129. package/dist/esm/api/resources/userStatuses/exports.js +3 -0
  130. package/dist/esm/api/resources/userStatuses/index.d.ts +1 -0
  131. package/dist/esm/api/resources/userStatuses/index.js +1 -0
  132. package/dist/esm/api/resources/users/client/requests/UsersUpdateRequest.d.ts +10 -11
  133. package/dist/esm/api/resources/users/client/requests/UsersUpdateRequest.js +1 -9
  134. package/dist/esm/api/resources/users/client/requests/index.d.ts +1 -1
  135. package/dist/esm/api/resources/users/client/requests/index.js +1 -1
  136. package/dist/esm/api/types/Account.d.ts +2 -0
  137. package/dist/esm/api/types/Article.d.ts +4 -0
  138. package/dist/esm/api/types/ArticleTranslationInput.d.ts +4 -2
  139. package/dist/esm/api/types/EmailActivity.d.ts +11 -0
  140. package/dist/esm/api/types/EmailActivity.js +2 -0
  141. package/dist/esm/api/types/EmailActivityMessage.d.ts +18 -0
  142. package/dist/esm/api/types/EmailActivityMessage.js +2 -0
  143. package/dist/esm/api/types/GetEmailActivitiesResponseBody.d.ts +8 -0
  144. package/dist/esm/api/types/GetEmailActivitiesResponseBody.js +2 -0
  145. package/dist/esm/api/types/GetUserStatusesResponseBody.d.ts +7 -0
  146. package/dist/esm/api/types/GetUserStatusesResponseBody.js +2 -0
  147. package/dist/esm/api/types/ImportIssueRequest.d.ts +1 -1
  148. package/dist/esm/api/types/Issue.d.ts +12 -0
  149. package/dist/esm/api/types/MergeContactsResponseBody.d.ts +6 -0
  150. package/dist/esm/api/types/MergeContactsResponseBody.js +2 -0
  151. package/dist/esm/api/types/Message.d.ts +3 -0
  152. package/dist/esm/api/types/MessageReaction.d.ts +6 -0
  153. package/dist/esm/api/types/MessageReaction.js +2 -0
  154. package/dist/esm/api/types/Project.d.ts +2 -0
  155. package/dist/esm/api/types/SlaTimes.d.ts +6 -2
  156. package/dist/esm/api/types/SlackMessageInfo.d.ts +10 -0
  157. package/dist/esm/api/types/SlackMessageInfo.js +2 -0
  158. package/dist/esm/api/types/Task.d.ts +6 -0
  159. package/dist/esm/api/types/TeamAssignmentConfiguration.d.ts +10 -1
  160. package/dist/esm/api/types/TeamAssignmentConfigurationInput.d.ts +10 -1
  161. package/dist/esm/api/types/TeamSla.d.ts +2 -0
  162. package/dist/esm/api/types/User.d.ts +3 -5
  163. package/dist/esm/api/types/UserSkill.d.ts +13 -0
  164. package/dist/esm/api/types/UserSkill.js +2 -0
  165. package/dist/esm/api/types/UserSkillValue.d.ts +6 -0
  166. package/dist/esm/api/types/UserSkillValue.js +2 -0
  167. package/dist/esm/api/types/UserStatus.d.ts +12 -0
  168. package/dist/esm/api/types/UserStatus.js +2 -0
  169. package/dist/esm/api/types/index.d.ts +10 -0
  170. package/dist/esm/api/types/index.js +10 -0
  171. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -26,7 +26,7 @@ export interface ImportIssueRequest {
26
26
  messages: Pylon.ImportIssueMessage[];
27
27
  /** The ID of a partner account that serves account_id. Requires account_id. */
28
28
  partner_account_id?: string | undefined;
29
- /** ContactID that the issue should be on behalf of. */
29
+ /** ContactID that the issue should be on behalf of. If omitted, the issue has no requester. */
30
30
  requester_id?: string | undefined;
31
31
  /** ResolutionTime is the time the issue was resolved (RFC3339). */
32
32
  resolution_time?: string | undefined;
@@ -37,12 +37,17 @@ export interface Issue {
37
37
  external_issues?: Pylon.ExternalIssue[] | undefined;
38
38
  /** The time of the first resolution of the issue, if any. Frozen at the issue's first resolution and never updated on reopen/re-resolve. */
39
39
  first_resolution_time?: (string | null) | undefined;
40
+ /** The ID of the user the issue was assigned to when its first response SLA breached, if it breached. */
41
+ first_response_assignee_id_at_breach?: string | undefined;
40
42
  /** The time by which the issue's first response SLA will breach, if any. Only present for issues with an active first response SLA. */
41
43
  first_response_breach_time?: string | undefined;
44
+ /** The ID of the user whose action resolved the issue's first response SLA. Absent when resolved by a contact or automation. */
45
+ first_response_resolving_user_id?: string | undefined;
42
46
  /** The time in seconds it took for the first response to the issue, if any. */
43
47
  first_response_seconds?: number | undefined;
44
48
  /** The time of the first response to the issue, if any. */
45
49
  first_response_time?: (string | null) | undefined;
50
+ follow_up?: Pylon.SlaTimes | undefined;
46
51
  /** The ID of the issue. */
47
52
  id: string;
48
53
  /** Whether this issue is an issue group. */
@@ -51,14 +56,19 @@ export interface Issue {
51
56
  latest_message_time?: (string | null) | undefined;
52
57
  /** The link to the issue in Pylon. */
53
58
  link: string;
59
+ next_reply?: Pylon.SlaTimes | undefined;
54
60
  /** The number of the issue. */
55
61
  number: number;
56
62
  /** The number of times the issue has been touched. */
57
63
  number_of_touches: number;
58
64
  parent_issue_group?: Pylon.MiniIssue | undefined;
59
65
  requester?: (Pylon.MiniContact | null) | undefined;
66
+ /** The ID of the user the issue was assigned to when its resolution SLA breached, if it breached. */
67
+ resolution_assignee_id_at_breach?: string | undefined;
60
68
  /** The time by which the issue's resolution SLA will breach, if any. Only present for open issues with an active resolution SLA. */
61
69
  resolution_breach_time?: string | undefined;
70
+ /** The ID of the user whose action resolved the issue's resolution SLA. Absent when resolved by a contact or automation. */
71
+ resolution_resolving_user_id?: string | undefined;
62
72
  /** The time in seconds it took for the issue to be resolved, if any. */
63
73
  resolution_seconds?: number | undefined;
64
74
  /** The time of the resolution of the issue, if any. */
@@ -93,4 +103,6 @@ export interface Issue {
93
103
  updated_at: string;
94
104
  /** The email address connected to the Pylon workspace through which the issue's email conversation is routed. For inbound issues, this is the address that received the original email. */
95
105
  workspace_email?: string | undefined;
106
+ /** The WhatsApp, SMS, or voice phone number connected to the Pylon workspace through which the issue's conversation is routed. For inbound issues, this is the number the customer messaged or called. */
107
+ workspace_phone_number?: string | undefined;
96
108
  }
@@ -0,0 +1,6 @@
1
+ import type * as Pylon from "../index.js";
2
+ export interface MergeContactsResponseBody {
3
+ data: Pylon.Contact;
4
+ /** The request ID for tracking. */
5
+ request_id: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -12,6 +12,9 @@ export interface Message {
12
12
  is_private: boolean;
13
13
  /** The HTML body of the message. */
14
14
  message_html: string;
15
+ /** The emoji reactions currently on the message, grouped by emoji. */
16
+ reactions?: (Pylon.MessageReaction[] | null) | undefined;
17
+ slack_info?: Pylon.SlackMessageInfo | undefined;
15
18
  /** The source of the message. */
16
19
  source: string;
17
20
  /** The Pylon internal thread ID. This is set only for internal notes and can be passed as thread_id when creating an internal note. */
@@ -0,0 +1,6 @@
1
+ export interface MessageReaction {
2
+ /** The number of people who reacted with this emoji. */
3
+ count: number;
4
+ /** The emoji's Slack-style shortcode name without colons, such as thumbsup. */
5
+ name: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,6 +1,8 @@
1
1
  import type * as Pylon from "../index.js";
2
2
  export interface Project {
3
3
  account?: Pylon.MiniAccount | undefined;
4
+ /** Instructions the AI follows when keeping this smart project up to date. */
5
+ ai_instructions: string;
4
6
  /** The archived at time of the project in RFC3339 format. */
5
7
  archived_at?: string | undefined;
6
8
  /** The created at time of the project. */
@@ -1,9 +1,13 @@
1
1
  export interface SlaTimes {
2
+ /** The ID of the user the issue was assigned to when the breach was detected, if it breached. */
3
+ assignee_id_at_breach?: string | undefined;
2
4
  /** The time at which it breaches (or has breached), if any. */
3
5
  breach_time?: string | undefined;
4
- /** The elapsed business-hours time in seconds, if any. */
6
+ /** The part of `seconds` that falls within support hours, if any. */
5
7
  business_hours_seconds?: number | undefined;
6
- /** The elapsed time in seconds, if any. */
8
+ /** The ID of the user whose action resolved it, if any. Absent when it was resolved by a contact or automation. */
9
+ resolving_user_id?: string | undefined;
10
+ /** The elapsed time in seconds, counting only time the issue spent in states that count toward this SLA. May be less than the time between the SLA's start and `time`. */
7
11
  seconds?: number | undefined;
8
12
  /** The time it was reached, if any. */
9
13
  time?: (string | null) | undefined;
@@ -0,0 +1,10 @@
1
+ export interface SlackMessageInfo {
2
+ /** The Slack channel ID the message was posted in. */
3
+ channel_id: string;
4
+ /** The Slack timestamp of this message, which is its Slack message ID. */
5
+ message_ts: string;
6
+ /** A link that opens this specific message in Slack. Omitted when the workspace's Slack domain is unknown. */
7
+ permalink?: string | undefined;
8
+ /** The timestamp of the thread's root message. Equal to message_ts for the root message itself. */
9
+ thread_ts: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -1,7 +1,13 @@
1
1
  import type * as Pylon from "../index.js";
2
2
  export interface Task {
3
3
  account?: Pylon.MiniAccount | undefined;
4
+ /** Instructions the AI follows when evaluating this task in a smart project. */
5
+ ai_instructions: string;
4
6
  assignee?: Pylon.Actor | undefined;
7
+ /** The IDs of tasks that block this task. */
8
+ blocked_by_task_ids?: (string[] | null) | undefined;
9
+ /** The IDs of tasks that this task blocks. */
10
+ blocks_task_ids?: (string[] | null) | undefined;
5
11
  /** The body of the task in HTML format. */
6
12
  body_html: string;
7
13
  /** The completion time of the task in RFC3339 format. */
@@ -1,7 +1,16 @@
1
1
  export interface TeamAssignmentConfiguration {
2
+ /**
3
+ * The slugs of the user statuses members must show to be assigned. See GET /user-statuses.
4
+ * Empty defers to only_assign_if_user_active.
5
+ */
6
+ assignable_user_statuses?: (string[] | null) | undefined;
2
7
  /** How issues are routed to team members. One of routing, schedule, manual, pull_queue. */
3
8
  assignment_method: string;
4
- /** Whether issues are only assigned to members who are currently active. */
9
+ /**
10
+ * Whether automatic assignment is restricted by user status. When assignable_user_statuses
11
+ * is empty, true means only members with an Active status; when it is non-empty, this is
12
+ * always true and the list decides.
13
+ */
5
14
  only_assign_if_user_active: boolean;
6
15
  /** Whether assignment replaces an existing assignee. */
7
16
  override_existing_assignee: boolean;
@@ -1,10 +1,19 @@
1
1
  export interface TeamAssignmentConfigurationInput {
2
+ /**
3
+ * The slugs of the user statuses members must show to be assigned. See GET /user-statuses.
4
+ * A non-empty list takes precedence over only_assign_if_user_active; an empty list clears
5
+ * the allow-list so only_assign_if_user_active decides.
6
+ */
7
+ assignable_user_statuses?: string[] | undefined;
2
8
  /**
3
9
  * How issues are routed to team members. Setting schedule routes from this team's own
4
10
  * schedule, so the team must already have one or be given one in the same request.
5
11
  */
6
12
  assignment_method?: TeamAssignmentConfigurationInput.AssignmentMethod | undefined;
7
- /** Whether issues are only assigned to members who are currently active. */
13
+ /**
14
+ * Whether issues are only assigned to members with an Active status. Setting this without
15
+ * assignable_user_statuses clears any status allow-list.
16
+ */
8
17
  only_assign_if_user_active?: boolean | undefined;
9
18
  /** Whether assignment replaces an existing assignee. */
10
19
  override_existing_assignee?: boolean | undefined;
@@ -2,6 +2,8 @@ import type * as Pylon from "../index.js";
2
2
  export interface TeamSla {
3
3
  first_resolution?: Pylon.SlaTimes | undefined;
4
4
  first_response?: Pylon.SlaTimes | undefined;
5
+ follow_up?: Pylon.SlaTimes | undefined;
6
+ next_reply?: Pylon.SlaTimes | undefined;
5
7
  resolution?: Pylon.SlaTimes | undefined;
6
8
  /** The ID of the team these are scoped to. */
7
9
  team_id: string;
@@ -20,10 +20,8 @@ export interface User {
20
20
  role_ids?: (string[] | null) | undefined;
21
21
  /** All assigned roles, including SCIM-derived roles, sorted by ID. Empty when no roles are assigned. */
22
22
  roles?: (Pylon.MiniRole[] | null) | undefined;
23
- /**
24
- * The status of the user.
25
- *
26
- * Known values: ``, `active`, `away`, `out_of_office`. This list is not exhaustive.
27
- */
23
+ /** The user's routing skills. Null when the caller lacks permission to read team settings. */
24
+ skills?: (Pylon.UserSkill[] | null) | undefined;
25
+ /** The status of the user. Standard values are `active`, `away`, and `out_of_office`; custom status slugs are also supported. See GET /user-statuses for each status's category. */
28
26
  status: string;
29
27
  }
@@ -0,0 +1,13 @@
1
+ import type * as Pylon from "../index.js";
2
+ export interface UserSkill {
3
+ /** The issue custom field ID when attribute_type is `custom_field`, or the issue property, such as `language`, when attribute_type is `default_field`. */
4
+ attribute: string;
5
+ /**
6
+ * The kind of attribute the skill routes on.
7
+ *
8
+ * Known values: `custom_field`, `default_field`. This list is not exhaustive.
9
+ */
10
+ attribute_type: string;
11
+ /** The attribute values the user is skilled in, with their levels. */
12
+ values?: (Pylon.UserSkillValue[] | null) | undefined;
13
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface UserSkillValue {
2
+ /** The skill level, where 1 is the lowest. Pylon assigns levels 1 to 3. */
3
+ level: number;
4
+ /** The attribute value, such as a select option slug, a user ID, or a language code. */
5
+ value: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,12 @@
1
+ export interface UserStatus {
2
+ /** The category of the user status. One of active, away, out_of_office. */
3
+ category: string;
4
+ /** Indicates if the user status is archived. */
5
+ is_archived: boolean;
6
+ /** Indicates if the user status is a built-in status. */
7
+ is_default_status: boolean;
8
+ /** The label of the user status. */
9
+ label: string;
10
+ /** The slug of the user status. Use it in a team's assignment_configuration.assignable_user_statuses. */
11
+ slug: string;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -89,6 +89,8 @@ export * from "./DeleteTaskCommentResponseBody.js";
89
89
  export * from "./DeleteTaskResponseBody.js";
90
90
  export * from "./DeleteTrainingDataDocumentsResponseBody.js";
91
91
  export * from "./DestinationMetadata.js";
92
+ export * from "./EmailActivity.js";
93
+ export * from "./EmailActivityMessage.js";
92
94
  export * from "./EmailEvent.js";
93
95
  export * from "./EmailMessageInfo.js";
94
96
  export * from "./EmailSuppression.js";
@@ -120,6 +122,7 @@ export * from "./GetCustomFieldResponseBody.js";
120
122
  export * from "./GetCustomFieldsResponseBody.js";
121
123
  export * from "./GetCustomObjectResponseBody.js";
122
124
  export * from "./GetCustomObjectsResponseBody.js";
125
+ export * from "./GetEmailActivitiesResponseBody.js";
123
126
  export * from "./GetEmailSuppressionsResponseBody.js";
124
127
  export * from "./GetFeatureRequestResponseBody.js";
125
128
  export * from "./GetIssueFollowersResponseBody.js";
@@ -155,6 +158,7 @@ export * from "./GetTicketFormsResponseBody.js";
155
158
  export * from "./GetTrainingDataResponseBody.js";
156
159
  export * from "./GetUserResponseBody.js";
157
160
  export * from "./GetUserRolesResponseBody.js";
161
+ export * from "./GetUserStatusesResponseBody.js";
158
162
  export * from "./GetUsersResponseBody.js";
159
163
  export * from "./ImportContactRequestBody.js";
160
164
  export * from "./ImportContactResponseBody.js";
@@ -191,10 +195,12 @@ export * from "./MacroGroup.js";
191
195
  export * from "./MarkIssuesAsSpamResponseBody.js";
192
196
  export * from "./Me.js";
193
197
  export * from "./MergeAccountsResponseBody.js";
198
+ export * from "./MergeContactsResponseBody.js";
194
199
  export * from "./MergeFeatureRequestsResponseBody.js";
195
200
  export * from "./MergeIssuesResponseBody.js";
196
201
  export * from "./Message.js";
197
202
  export * from "./MessageAuthor.js";
203
+ export * from "./MessageReaction.js";
198
204
  export * from "./MeUser.js";
199
205
  export * from "./Milestone.js";
200
206
  export * from "./MiniAccount.js";
@@ -231,6 +237,7 @@ export * from "./SelectMetadata.js";
231
237
  export * from "./SetFeatureRequestPortalVisibilityResponseBody.js";
232
238
  export * from "./SkippedIssue.js";
233
239
  export * from "./SlackInfo.js";
240
+ export * from "./SlackMessageInfo.js";
234
241
  export * from "./SlaTimes.js";
235
242
  export * from "./SnoozeIssueResponseBody.js";
236
243
  export * from "./SubmitTicketFormField.js";
@@ -288,6 +295,9 @@ export * from "./UpdateUserResponseBody.js";
288
295
  export * from "./UploadAccountFileResponseBody.js";
289
296
  export * from "./User.js";
290
297
  export * from "./UserRole.js";
298
+ export * from "./UserSkill.js";
299
+ export * from "./UserSkillValue.js";
300
+ export * from "./UserStatus.js";
291
301
  export * from "./Visibility.js";
292
302
  export * from "./VisibilityInput.js";
293
303
  export * from "./VoiceCall.js";
@@ -89,6 +89,8 @@ export * from "./DeleteTaskCommentResponseBody.js";
89
89
  export * from "./DeleteTaskResponseBody.js";
90
90
  export * from "./DeleteTrainingDataDocumentsResponseBody.js";
91
91
  export * from "./DestinationMetadata.js";
92
+ export * from "./EmailActivity.js";
93
+ export * from "./EmailActivityMessage.js";
92
94
  export * from "./EmailEvent.js";
93
95
  export * from "./EmailMessageInfo.js";
94
96
  export * from "./EmailSuppression.js";
@@ -120,6 +122,7 @@ export * from "./GetCustomFieldResponseBody.js";
120
122
  export * from "./GetCustomFieldsResponseBody.js";
121
123
  export * from "./GetCustomObjectResponseBody.js";
122
124
  export * from "./GetCustomObjectsResponseBody.js";
125
+ export * from "./GetEmailActivitiesResponseBody.js";
123
126
  export * from "./GetEmailSuppressionsResponseBody.js";
124
127
  export * from "./GetFeatureRequestResponseBody.js";
125
128
  export * from "./GetIssueFollowersResponseBody.js";
@@ -155,6 +158,7 @@ export * from "./GetTicketFormsResponseBody.js";
155
158
  export * from "./GetTrainingDataResponseBody.js";
156
159
  export * from "./GetUserResponseBody.js";
157
160
  export * from "./GetUserRolesResponseBody.js";
161
+ export * from "./GetUserStatusesResponseBody.js";
158
162
  export * from "./GetUsersResponseBody.js";
159
163
  export * from "./ImportContactRequestBody.js";
160
164
  export * from "./ImportContactResponseBody.js";
@@ -191,10 +195,12 @@ export * from "./MacroGroup.js";
191
195
  export * from "./MarkIssuesAsSpamResponseBody.js";
192
196
  export * from "./Me.js";
193
197
  export * from "./MergeAccountsResponseBody.js";
198
+ export * from "./MergeContactsResponseBody.js";
194
199
  export * from "./MergeFeatureRequestsResponseBody.js";
195
200
  export * from "./MergeIssuesResponseBody.js";
196
201
  export * from "./Message.js";
197
202
  export * from "./MessageAuthor.js";
203
+ export * from "./MessageReaction.js";
198
204
  export * from "./MeUser.js";
199
205
  export * from "./Milestone.js";
200
206
  export * from "./MiniAccount.js";
@@ -231,6 +237,7 @@ export * from "./SelectMetadata.js";
231
237
  export * from "./SetFeatureRequestPortalVisibilityResponseBody.js";
232
238
  export * from "./SkippedIssue.js";
233
239
  export * from "./SlackInfo.js";
240
+ export * from "./SlackMessageInfo.js";
234
241
  export * from "./SlaTimes.js";
235
242
  export * from "./SnoozeIssueResponseBody.js";
236
243
  export * from "./SubmitTicketFormField.js";
@@ -288,6 +295,9 @@ export * from "./UpdateUserResponseBody.js";
288
295
  export * from "./UploadAccountFileResponseBody.js";
289
296
  export * from "./User.js";
290
297
  export * from "./UserRole.js";
298
+ export * from "./UserSkill.js";
299
+ export * from "./UserSkillValue.js";
300
+ export * from "./UserStatus.js";
291
301
  export * from "./Visibility.js";
292
302
  export * from "./VisibilityInput.js";
293
303
  export * from "./VoiceCall.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usepylon/sdk",
3
- "version": "0.1.0-alpha.3",
3
+ "version": "0.1.0-alpha.5",
4
4
  "description": "Official TypeScript SDK for the Pylon API",
5
5
  "license": "MIT",
6
6
  "homepage": "https://docs.usepylon.com",