@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.
- package/dist/cjs/BaseClient.js +1 -0
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +7 -2
- package/dist/cjs/api/resources/accounts/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/accounts/client/Client.js +11 -6
- package/dist/cjs/api/resources/accounts/resources/emailActivities/client/Client.d.ts +39 -0
- package/dist/cjs/api/resources/accounts/resources/emailActivities/client/Client.js +159 -0
- package/dist/cjs/api/resources/accounts/resources/emailActivities/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/accounts/resources/emailActivities/client/index.js +17 -0
- package/dist/cjs/api/resources/accounts/resources/emailActivities/client/requests/AccountsEmailActivitiesListRequest.d.ts +18 -0
- package/dist/cjs/api/resources/accounts/resources/emailActivities/client/requests/AccountsEmailActivitiesListRequest.js +3 -0
- package/dist/cjs/api/resources/accounts/resources/emailActivities/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/accounts/resources/emailActivities/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/accounts/resources/emailActivities/exports.d.ts +2 -0
- package/dist/cjs/api/resources/accounts/resources/emailActivities/exports.js +21 -0
- package/dist/cjs/api/resources/accounts/resources/emailActivities/index.d.ts +1 -0
- package/dist/cjs/api/resources/accounts/resources/emailActivities/index.js +17 -0
- package/dist/cjs/api/resources/accounts/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/accounts/resources/index.js +3 -1
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +25 -0
- package/dist/cjs/api/resources/contacts/client/Client.js +73 -0
- package/dist/cjs/api/resources/contacts/client/requests/ContactsMergeRequest.d.ts +13 -0
- package/dist/cjs/api/resources/contacts/client/requests/ContactsMergeRequest.js +3 -0
- package/dist/cjs/api/resources/contacts/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.js +2 -1
- package/dist/cjs/api/resources/issues/client/requests/IssuesCreateDraftReplyRequest.d.ts +6 -0
- package/dist/cjs/api/resources/issues/client/requests/IssuesCreateRequest.d.ts +2 -0
- package/dist/cjs/api/resources/knowledgeBases/resources/articles/client/Client.d.ts +0 -1
- package/dist/cjs/api/resources/knowledgeBases/resources/articles/client/Client.js +0 -1
- package/dist/cjs/api/resources/knowledgeBases/resources/articles/client/requests/KnowledgeBasesArticlesCreateRequest.d.ts +6 -3
- package/dist/cjs/api/resources/knowledgeBases/resources/articles/client/requests/KnowledgeBasesArticlesUpdateRequest.d.ts +4 -0
- package/dist/cjs/api/resources/projects/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/projects/client/Client.js +1 -1
- package/dist/cjs/api/resources/projects/client/requests/ProjectsCreateRequest.d.ts +3 -1
- package/dist/cjs/api/resources/projects/client/requests/ProjectsUpdateRequest.d.ts +2 -0
- package/dist/cjs/api/resources/tasks/client/requests/TasksCreateRequest.d.ts +4 -0
- package/dist/cjs/api/resources/tasks/client/requests/TasksUpdateRequest.d.ts +4 -0
- package/dist/cjs/api/resources/userStatuses/client/Client.d.ts +33 -0
- package/dist/cjs/api/resources/userStatuses/client/Client.js +122 -0
- package/dist/cjs/api/resources/userStatuses/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/userStatuses/client/index.js +2 -0
- package/dist/cjs/api/resources/userStatuses/exports.d.ts +2 -0
- package/dist/cjs/api/resources/userStatuses/exports.js +21 -0
- package/dist/cjs/api/resources/userStatuses/index.d.ts +1 -0
- package/dist/cjs/api/resources/userStatuses/index.js +17 -0
- package/dist/cjs/api/resources/users/client/requests/UsersUpdateRequest.d.ts +10 -11
- package/dist/cjs/api/resources/users/client/requests/UsersUpdateRequest.js +0 -10
- package/dist/cjs/api/resources/users/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/users/client/requests/index.js +0 -3
- package/dist/cjs/api/types/Account.d.ts +2 -0
- package/dist/cjs/api/types/Article.d.ts +4 -0
- package/dist/cjs/api/types/ArticleTranslationInput.d.ts +4 -2
- package/dist/cjs/api/types/EmailActivity.d.ts +11 -0
- package/dist/cjs/api/types/EmailActivity.js +3 -0
- package/dist/cjs/api/types/EmailActivityMessage.d.ts +18 -0
- package/dist/cjs/api/types/EmailActivityMessage.js +3 -0
- package/dist/cjs/api/types/GetEmailActivitiesResponseBody.d.ts +8 -0
- package/dist/cjs/api/types/GetEmailActivitiesResponseBody.js +3 -0
- package/dist/cjs/api/types/GetUserStatusesResponseBody.d.ts +7 -0
- package/dist/cjs/api/types/GetUserStatusesResponseBody.js +3 -0
- package/dist/cjs/api/types/ImportIssueRequest.d.ts +1 -1
- package/dist/cjs/api/types/Issue.d.ts +12 -0
- package/dist/cjs/api/types/MergeContactsResponseBody.d.ts +6 -0
- package/dist/cjs/api/types/MergeContactsResponseBody.js +3 -0
- package/dist/cjs/api/types/Message.d.ts +3 -0
- package/dist/cjs/api/types/MessageReaction.d.ts +6 -0
- package/dist/cjs/api/types/MessageReaction.js +3 -0
- package/dist/cjs/api/types/Project.d.ts +2 -0
- package/dist/cjs/api/types/SlaTimes.d.ts +6 -2
- package/dist/cjs/api/types/SlackMessageInfo.d.ts +10 -0
- package/dist/cjs/api/types/SlackMessageInfo.js +3 -0
- package/dist/cjs/api/types/Task.d.ts +6 -0
- package/dist/cjs/api/types/TeamAssignmentConfiguration.d.ts +10 -1
- package/dist/cjs/api/types/TeamAssignmentConfigurationInput.d.ts +10 -1
- package/dist/cjs/api/types/TeamSla.d.ts +2 -0
- package/dist/cjs/api/types/User.d.ts +3 -5
- package/dist/cjs/api/types/UserSkill.d.ts +13 -0
- package/dist/cjs/api/types/UserSkill.js +3 -0
- package/dist/cjs/api/types/UserSkillValue.d.ts +6 -0
- package/dist/cjs/api/types/UserSkillValue.js +3 -0
- package/dist/cjs/api/types/UserStatus.d.ts +12 -0
- package/dist/cjs/api/types/UserStatus.js +3 -0
- package/dist/cjs/api/types/index.d.ts +10 -0
- package/dist/cjs/api/types/index.js +10 -0
- package/dist/esm/BaseClient.js +1 -0
- package/dist/esm/Client.d.ts +3 -0
- package/dist/esm/Client.js +5 -0
- package/dist/esm/api/resources/accounts/client/Client.d.ts +3 -0
- package/dist/esm/api/resources/accounts/client/Client.js +5 -0
- package/dist/esm/api/resources/accounts/resources/emailActivities/client/Client.d.ts +39 -0
- package/dist/esm/api/resources/accounts/resources/emailActivities/client/Client.js +122 -0
- package/dist/esm/api/resources/accounts/resources/emailActivities/client/index.d.ts +1 -0
- package/dist/esm/api/resources/accounts/resources/emailActivities/client/index.js +1 -0
- package/dist/esm/api/resources/accounts/resources/emailActivities/client/requests/AccountsEmailActivitiesListRequest.d.ts +18 -0
- package/dist/esm/api/resources/accounts/resources/emailActivities/client/requests/AccountsEmailActivitiesListRequest.js +2 -0
- package/dist/esm/api/resources/accounts/resources/emailActivities/client/requests/index.d.ts +1 -0
- package/dist/esm/api/resources/accounts/resources/emailActivities/client/requests/index.js +1 -0
- package/dist/esm/api/resources/accounts/resources/emailActivities/exports.d.ts +2 -0
- package/dist/esm/api/resources/accounts/resources/emailActivities/exports.js +3 -0
- package/dist/esm/api/resources/accounts/resources/emailActivities/index.d.ts +1 -0
- package/dist/esm/api/resources/accounts/resources/emailActivities/index.js +1 -0
- package/dist/esm/api/resources/accounts/resources/index.d.ts +2 -0
- package/dist/esm/api/resources/accounts/resources/index.js +2 -0
- package/dist/esm/api/resources/contacts/client/Client.d.ts +25 -0
- package/dist/esm/api/resources/contacts/client/Client.js +73 -0
- package/dist/esm/api/resources/contacts/client/requests/ContactsMergeRequest.d.ts +13 -0
- package/dist/esm/api/resources/contacts/client/requests/ContactsMergeRequest.js +2 -0
- package/dist/esm/api/resources/contacts/client/requests/index.d.ts +1 -0
- package/dist/esm/api/resources/index.d.ts +1 -0
- package/dist/esm/api/resources/index.js +1 -0
- package/dist/esm/api/resources/issues/client/requests/IssuesCreateDraftReplyRequest.d.ts +6 -0
- package/dist/esm/api/resources/issues/client/requests/IssuesCreateRequest.d.ts +2 -0
- package/dist/esm/api/resources/knowledgeBases/resources/articles/client/Client.d.ts +0 -1
- package/dist/esm/api/resources/knowledgeBases/resources/articles/client/Client.js +0 -1
- package/dist/esm/api/resources/knowledgeBases/resources/articles/client/requests/KnowledgeBasesArticlesCreateRequest.d.ts +6 -3
- package/dist/esm/api/resources/knowledgeBases/resources/articles/client/requests/KnowledgeBasesArticlesUpdateRequest.d.ts +4 -0
- package/dist/esm/api/resources/projects/client/Client.d.ts +1 -1
- package/dist/esm/api/resources/projects/client/Client.js +1 -1
- package/dist/esm/api/resources/projects/client/requests/ProjectsCreateRequest.d.ts +3 -1
- package/dist/esm/api/resources/projects/client/requests/ProjectsUpdateRequest.d.ts +2 -0
- package/dist/esm/api/resources/tasks/client/requests/TasksCreateRequest.d.ts +4 -0
- package/dist/esm/api/resources/tasks/client/requests/TasksUpdateRequest.d.ts +4 -0
- package/dist/esm/api/resources/userStatuses/client/Client.d.ts +33 -0
- package/dist/esm/api/resources/userStatuses/client/Client.js +85 -0
- package/dist/esm/api/resources/userStatuses/client/index.d.ts +1 -0
- package/dist/esm/api/resources/userStatuses/client/index.js +1 -0
- package/dist/esm/api/resources/userStatuses/exports.d.ts +2 -0
- package/dist/esm/api/resources/userStatuses/exports.js +3 -0
- package/dist/esm/api/resources/userStatuses/index.d.ts +1 -0
- package/dist/esm/api/resources/userStatuses/index.js +1 -0
- package/dist/esm/api/resources/users/client/requests/UsersUpdateRequest.d.ts +10 -11
- package/dist/esm/api/resources/users/client/requests/UsersUpdateRequest.js +1 -9
- package/dist/esm/api/resources/users/client/requests/index.d.ts +1 -1
- package/dist/esm/api/resources/users/client/requests/index.js +1 -1
- package/dist/esm/api/types/Account.d.ts +2 -0
- package/dist/esm/api/types/Article.d.ts +4 -0
- package/dist/esm/api/types/ArticleTranslationInput.d.ts +4 -2
- package/dist/esm/api/types/EmailActivity.d.ts +11 -0
- package/dist/esm/api/types/EmailActivity.js +2 -0
- package/dist/esm/api/types/EmailActivityMessage.d.ts +18 -0
- package/dist/esm/api/types/EmailActivityMessage.js +2 -0
- package/dist/esm/api/types/GetEmailActivitiesResponseBody.d.ts +8 -0
- package/dist/esm/api/types/GetEmailActivitiesResponseBody.js +2 -0
- package/dist/esm/api/types/GetUserStatusesResponseBody.d.ts +7 -0
- package/dist/esm/api/types/GetUserStatusesResponseBody.js +2 -0
- package/dist/esm/api/types/ImportIssueRequest.d.ts +1 -1
- package/dist/esm/api/types/Issue.d.ts +12 -0
- package/dist/esm/api/types/MergeContactsResponseBody.d.ts +6 -0
- package/dist/esm/api/types/MergeContactsResponseBody.js +2 -0
- package/dist/esm/api/types/Message.d.ts +3 -0
- package/dist/esm/api/types/MessageReaction.d.ts +6 -0
- package/dist/esm/api/types/MessageReaction.js +2 -0
- package/dist/esm/api/types/Project.d.ts +2 -0
- package/dist/esm/api/types/SlaTimes.d.ts +6 -2
- package/dist/esm/api/types/SlackMessageInfo.d.ts +10 -0
- package/dist/esm/api/types/SlackMessageInfo.js +2 -0
- package/dist/esm/api/types/Task.d.ts +6 -0
- package/dist/esm/api/types/TeamAssignmentConfiguration.d.ts +10 -1
- package/dist/esm/api/types/TeamAssignmentConfigurationInput.d.ts +10 -1
- package/dist/esm/api/types/TeamSla.d.ts +2 -0
- package/dist/esm/api/types/User.d.ts +3 -5
- package/dist/esm/api/types/UserSkill.d.ts +13 -0
- package/dist/esm/api/types/UserSkill.js +2 -0
- package/dist/esm/api/types/UserSkillValue.d.ts +6 -0
- package/dist/esm/api/types/UserSkillValue.js +2 -0
- package/dist/esm/api/types/UserStatus.d.ts +12 -0
- package/dist/esm/api/types/UserStatus.js +2 -0
- package/dist/esm/api/types/index.d.ts +10 -0
- package/dist/esm/api/types/index.js +10 -0
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -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. */
|
|
@@ -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
|
|
6
|
+
/** The part of `seconds` that falls within support hours, if any. */
|
|
5
7
|
business_hours_seconds?: number | undefined;
|
|
6
|
-
/** The
|
|
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
|
+
}
|
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
|
|
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,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
|
+
}
|
|
@@ -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";
|