@devrev-computer/skills 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -0
- package/bin/install.mjs +158 -0
- package/package.json +33 -0
- package/skills/account-evaluation/account-evaluation.md +64 -0
- package/skills/account-research/account-research.md +323 -0
- package/skills/account-research/references/signals-guide.md +52 -0
- package/skills/create-workflow-template/create-workflow-template.md +1091 -0
- package/skills/create-workflow-template/examples/3592-Generate rca from pia-template.json +1 -0
- package/skills/create-workflow-template/examples/4392-Async opportunity review agent-template.json +1 -0
- package/skills/create-workflow-template/examples/4441-Ticket escalator from customer message-template.json +1 -0
- package/skills/create-workflow-template/examples/4505-Auto-update issue tcd as end of sprint date-template.json +1 -0
- package/skills/create-workflow-template/examples/5040-Devrevu - enablement journey - poc emails-template.json +1 -0
- package/skills/create-workflow-template/examples/5158-Devrevu - enablement journey - mailing for non enablement journey users-template.json +1 -0
- package/skills/create-workflow-template/examples/5216-Account segment missing notification-template.json +1 -0
- package/skills/create-workflow-template/examples/working-csat-score-on-ticket-resolved.json +1 -0
- package/skills/create-workflow-template/examples/working-enhancement-replace-agent.json +1 -0
- package/skills/create-workflow-template/examples/working-invoke-code-sample.json +1 -0
- package/skills/create-workflow-template/examples/working-loop-variable-sample.json +1 -0
- package/skills/create-workflow-template/operations/actions.md +2919 -0
- package/skills/create-workflow-template/operations/blockings.md +38 -0
- package/skills/create-workflow-template/operations/controls.md +108 -0
- package/skills/create-workflow-template/operations/schema-index.md +166 -0
- package/skills/create-workflow-template/operations/schemas/account_created.md +58 -0
- package/skills/create-workflow-template/operations/schemas/account_updated.md +73 -0
- package/skills/create-workflow-template/operations/schemas/add_comment.md +29 -0
- package/skills/create-workflow-template/operations/schemas/airdrop_sync_run_started.md +33 -0
- package/skills/create-workflow-template/operations/schemas/airdrop_sync_run_status_updated.md +35 -0
- package/skills/create-workflow-template/operations/schemas/article_created.md +96 -0
- package/skills/create-workflow-template/operations/schemas/article_updated.md +135 -0
- package/skills/create-workflow-template/operations/schemas/ask_ai.md +11 -0
- package/skills/create-workflow-template/operations/schemas/classify_object.md +22 -0
- package/skills/create-workflow-template/operations/schemas/contact_created.md +43 -0
- package/skills/create-workflow-template/operations/schemas/contact_updated.md +65 -0
- package/skills/create-workflow-template/operations/schemas/conversation_created.md +108 -0
- package/skills/create-workflow-template/operations/schemas/conversation_sla_tracker_updated.md +46 -0
- package/skills/create-workflow-template/operations/schemas/conversation_updated.md +130 -0
- package/skills/create-workflow-template/operations/schemas/convert_conversation_to_ticket.md +13 -0
- package/skills/create-workflow-template/operations/schemas/create_account.md +62 -0
- package/skills/create-workflow-template/operations/schemas/create_article.md +79 -0
- package/skills/create-workflow-template/operations/schemas/create_brand.md +42 -0
- package/skills/create-workflow-template/operations/schemas/create_contact.md +65 -0
- package/skills/create-workflow-template/operations/schemas/create_dm.md +53 -0
- package/skills/create-workflow-template/operations/schemas/create_enhancement.md +63 -0
- package/skills/create-workflow-template/operations/schemas/create_incident.md +136 -0
- package/skills/create-workflow-template/operations/schemas/create_issue.md +150 -0
- package/skills/create-workflow-template/operations/schemas/create_meeting.md +105 -0
- package/skills/create-workflow-template/operations/schemas/create_opportunity.md +123 -0
- package/skills/create-workflow-template/operations/schemas/create_ticket.md +184 -0
- package/skills/create-workflow-template/operations/schemas/csat_response_received.md +73 -0
- package/skills/create-workflow-template/operations/schemas/dev_user_created.md +54 -0
- package/skills/create-workflow-template/operations/schemas/dev_user_updated.md +99 -0
- package/skills/create-workflow-template/operations/schemas/enhancement_created.md +46 -0
- package/skills/create-workflow-template/operations/schemas/enhancement_updated.md +89 -0
- package/skills/create-workflow-template/operations/schemas/evaluate_sentiment.md +14 -0
- package/skills/create-workflow-template/operations/schemas/execute_metric_action.md +11 -0
- package/skills/create-workflow-template/operations/schemas/feature_created.md +40 -0
- package/skills/create-workflow-template/operations/schemas/for_each.md +45 -0
- package/skills/create-workflow-template/operations/schemas/get_account.md +59 -0
- package/skills/create-workflow-template/operations/schemas/get_airdrop_sync_unit.md +32 -0
- package/skills/create-workflow-template/operations/schemas/get_brand.md +40 -0
- package/skills/create-workflow-template/operations/schemas/get_complete_enhancement_details.md +13 -0
- package/skills/create-workflow-template/operations/schemas/get_conversation.md +120 -0
- package/skills/create-workflow-template/operations/schemas/get_customer.md +60 -0
- package/skills/create-workflow-template/operations/schemas/get_enhancement.md +66 -0
- package/skills/create-workflow-template/operations/schemas/get_feature.md +56 -0
- package/skills/create-workflow-template/operations/schemas/get_incident.md +85 -0
- package/skills/create-workflow-template/operations/schemas/get_issue.md +117 -0
- package/skills/create-workflow-template/operations/schemas/get_kg_schema.md +23 -0
- package/skills/create-workflow-template/operations/schemas/get_meeting.md +87 -0
- package/skills/create-workflow-template/operations/schemas/get_metric_trackers.md +20 -0
- package/skills/create-workflow-template/operations/schemas/get_node_schema.md +29 -0
- package/skills/create-workflow-template/operations/schemas/get_opportunity.md +93 -0
- package/skills/create-workflow-template/operations/schemas/get_org_user.md +57 -0
- package/skills/create-workflow-template/operations/schemas/get_org_user_preference.md +40 -0
- package/skills/create-workflow-template/operations/schemas/get_part.md +55 -0
- package/skills/create-workflow-template/operations/schemas/get_self.md +54 -0
- package/skills/create-workflow-template/operations/schemas/get_session_details.md +45 -0
- package/skills/create-workflow-template/operations/schemas/get_sprint_board.md +103 -0
- package/skills/create-workflow-template/operations/schemas/get_ticket.md +136 -0
- package/skills/create-workflow-template/operations/schemas/get_workspace.md +21 -0
- package/skills/create-workflow-template/operations/schemas/go_back.md +13 -0
- package/skills/create-workflow-template/operations/schemas/http.md +38 -0
- package/skills/create-workflow-template/operations/schemas/hybrid_search.md +144 -0
- package/skills/create-workflow-template/operations/schemas/if_else.md +16 -0
- package/skills/create-workflow-template/operations/schemas/incident_created.md +88 -0
- package/skills/create-workflow-template/operations/schemas/incident_updated.md +126 -0
- package/skills/create-workflow-template/operations/schemas/init_variable.md +67 -0
- package/skills/create-workflow-template/operations/schemas/invoice_created.md +21 -0
- package/skills/create-workflow-template/operations/schemas/invoice_updated.md +41 -0
- package/skills/create-workflow-template/operations/schemas/invoke_code.md +132 -0
- package/skills/create-workflow-template/operations/schemas/issue_created.md +105 -0
- package/skills/create-workflow-template/operations/schemas/issue_sla_tracker_updated.md +46 -0
- package/skills/create-workflow-template/operations/schemas/issue_updated.md +172 -0
- package/skills/create-workflow-template/operations/schemas/link_incident_with_issue.md +14 -0
- package/skills/create-workflow-template/operations/schemas/link_ticket_with_issue.md +14 -0
- package/skills/create-workflow-template/operations/schemas/list_enhancements.md +74 -0
- package/skills/create-workflow-template/operations/schemas/list_issues.md +108 -0
- package/skills/create-workflow-template/operations/schemas/list_sessions.md +79 -0
- package/skills/create-workflow-template/operations/schemas/list_sprint.md +29 -0
- package/skills/create-workflow-template/operations/schemas/list_web_sessions.md +87 -0
- package/skills/create-workflow-template/operations/schemas/loop_over_accounts.md +106 -0
- package/skills/create-workflow-template/operations/schemas/loop_over_articles.md +126 -0
- package/skills/create-workflow-template/operations/schemas/loop_over_customers.md +88 -0
- package/skills/create-workflow-template/operations/schemas/loop_over_dev_users.md +75 -0
- package/skills/create-workflow-template/operations/schemas/loop_over_enhancements.md +112 -0
- package/skills/create-workflow-template/operations/schemas/loop_over_incidents.md +113 -0
- package/skills/create-workflow-template/operations/schemas/loop_over_issues.md +217 -0
- package/skills/create-workflow-template/operations/schemas/loop_over_meetings.md +150 -0
- package/skills/create-workflow-template/operations/schemas/loop_over_opportunity.md +161 -0
- package/skills/create-workflow-template/operations/schemas/loop_over_sprints.md +50 -0
- package/skills/create-workflow-template/operations/schemas/loop_over_tickets.md +203 -0
- package/skills/create-workflow-template/operations/schemas/manual_trigger.md +11 -0
- package/skills/create-workflow-template/operations/schemas/meeting_created.md +116 -0
- package/skills/create-workflow-template/operations/schemas/meeting_updated.md +152 -0
- package/skills/create-workflow-template/operations/schemas/oasis_sql_execute.md +11 -0
- package/skills/create-workflow-template/operations/schemas/opportunity_created.md +92 -0
- package/skills/create-workflow-template/operations/schemas/opportunity_updated.md +124 -0
- package/skills/create-workflow-template/operations/schemas/pick_user.md +16 -0
- package/skills/create-workflow-template/operations/schemas/question_answer_created.md +44 -0
- package/skills/create-workflow-template/operations/schemas/question_answer_updated.md +75 -0
- package/skills/create-workflow-template/operations/schemas/recall_chats.md +13 -0
- package/skills/create-workflow-template/operations/schemas/router.md +15 -0
- package/skills/create-workflow-template/operations/schemas/send_notification.md +19 -0
- package/skills/create-workflow-template/operations/schemas/set_variable.md +67 -0
- package/skills/create-workflow-template/operations/schemas/sleep_for.md +12 -0
- package/skills/create-workflow-template/operations/schemas/sleep_until.md +17 -0
- package/skills/create-workflow-template/operations/schemas/sprint_updated.md +37 -0
- package/skills/create-workflow-template/operations/schemas/suggest_part.md +14 -0
- package/skills/create-workflow-template/operations/schemas/task_updated.md +79 -0
- package/skills/create-workflow-template/operations/schemas/test_example.md +16 -0
- package/skills/create-workflow-template/operations/schemas/ticket_created.md +136 -0
- package/skills/create-workflow-template/operations/schemas/ticket_sla_tracker_updated.md +46 -0
- package/skills/create-workflow-template/operations/schemas/ticket_updated.md +198 -0
- package/skills/create-workflow-template/operations/schemas/timeline_comment_created.md +70 -0
- package/skills/create-workflow-template/operations/schemas/update_account.md +68 -0
- package/skills/create-workflow-template/operations/schemas/update_article.md +95 -0
- package/skills/create-workflow-template/operations/schemas/update_brand.md +44 -0
- package/skills/create-workflow-template/operations/schemas/update_contact.md +53 -0
- package/skills/create-workflow-template/operations/schemas/update_conversation.md +149 -0
- package/skills/create-workflow-template/operations/schemas/update_enhancement.md +64 -0
- package/skills/create-workflow-template/operations/schemas/update_incident.md +156 -0
- package/skills/create-workflow-template/operations/schemas/update_issue.md +173 -0
- package/skills/create-workflow-template/operations/schemas/update_meeting.md +114 -0
- package/skills/create-workflow-template/operations/schemas/update_opportunity.md +137 -0
- package/skills/create-workflow-template/operations/schemas/update_question_answer.md +60 -0
- package/skills/create-workflow-template/operations/schemas/update_ticket.md +188 -0
- package/skills/create-workflow-template/operations/schemas/watch_ticket_for_updates.md +225 -0
- package/skills/create-workflow-template/operations/schemas/web_search.md +17 -0
- package/skills/create-workflow-template/operations/schemas/while.md +24 -0
- package/skills/create-workflow-template/operations/schemas/widget_created.md +75 -0
- package/skills/create-workflow-template/operations/schemas/widget_updated.md +98 -0
- package/skills/create-workflow-template/operations/schemas/workspace_created.md +20 -0
- package/skills/create-workflow-template/operations/triggers.md +1583 -0
- package/skills/customer-brief/customer-brief.md +66 -0
- package/skills/deal-review-meddpicc/deal-review-meddpicc.md +58 -0
- package/skills/next-step-for-opportunity/next-step-for-opportunity.md +55 -0
- package/skills/opportunity-feature-prioritizer/SKILL.md +183 -0
- package/skills/sales-call-plan-coach/sales-call-plan-coach.md +73 -0
- package/skills/sales-context/sales-context.md +44 -0
- package/skills/sales-search-and-lookup/sales-search-and-lookup.md +58 -0
- package/skills/skill-creator/SKILL.md +570 -0
- package/skills/skill-creator/agents/analyzer.md +274 -0
- package/skills/skill-creator/agents/comparator.md +202 -0
- package/skills/skill-creator/agents/grader.md +223 -0
- package/skills/skill-creator/assets/eval_review.html +146 -0
- package/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/skills/skill-creator/references/schemas.md +430 -0
- package/skills/skill-creator/references/tool-patterns.md +290 -0
- package/skills/skill-creator/scripts/__init__.py +0 -0
- package/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/skills/skill-creator/scripts/generate_report.py +326 -0
- package/skills/skill-creator/scripts/improve_description.py +247 -0
- package/skills/skill-creator/scripts/package_skill.py +136 -0
- package/skills/skill-creator/scripts/quick_validate.py +103 -0
- package/skills/skill-creator/scripts/run_eval.py +310 -0
- package/skills/skill-creator/scripts/run_loop.py +328 -0
- package/skills/skill-creator/scripts/utils.py +47 -0
- package/skills/trace-diagnosis/trace-diagnosis.md +186 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# `incident_created` — Schema Reference
|
|
2
|
+
|
|
3
|
+
## Input Port: `input`
|
|
4
|
+
|
|
5
|
+
_No input fields (trigger or system-provided)._
|
|
6
|
+
|
|
7
|
+
## Output Port: `output`
|
|
8
|
+
|
|
9
|
+
- **`acknowledged_date`** (`timestamp`) — Timestamp when the incident was acknowledged.
|
|
10
|
+
- **`actual_close_date`** (`timestamp`) — Timestamp when the incident was actually resolved.
|
|
11
|
+
- **`applies_to_parts`** (`[]composite`) — Parts to which the incident is applicable to.
|
|
12
|
+
- Composite: `_gen:part-summary`
|
|
13
|
+
- **`name`** (`text`) **REQUIRED** — Name of the part.
|
|
14
|
+
- **`owned_by`** (`[]composite`) **REQUIRED**
|
|
15
|
+
- Composite: `_gen:user-summary`
|
|
16
|
+
- **`type`** (`enum`) **REQUIRED**
|
|
17
|
+
- Allowed: `capability`, `enhancement`, `feature`, `linkable`, `product`, `runnable`
|
|
18
|
+
- **`id`** (`id`) **REQUIRED** — ID of the part attached to the incident.
|
|
19
|
+
- ID type: `capability`, `feature`, `product`, `runnable`, `linkable`, `enhancement`
|
|
20
|
+
- **`body`** (`text`) — Body of the incident.
|
|
21
|
+
- **`created_by`** (`composite`)
|
|
22
|
+
- Composite: `_gen:created_by`
|
|
23
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
24
|
+
- **`display_name`** (`text`) — The user's display name. The name is non-unique and mutable.
|
|
25
|
+
- **`email`** (`text`) — Email address of the user.
|
|
26
|
+
- **`full_name`** (`text`) — Full name of the user.
|
|
27
|
+
- **`state`** (`enum`) — State of the user.
|
|
28
|
+
- Allowed: `active`, `deactivated`, `deleted`, `locked`, `shadow`, `unassigned`
|
|
29
|
+
- **`id`** (`id`) **REQUIRED** — The id of the user.
|
|
30
|
+
- ID type: `devu`, `sysu`, `svcacc`
|
|
31
|
+
- **`type`** (`enum`) **REQUIRED**
|
|
32
|
+
- Allowed: `dev_user`, `sys_user`, `service_account`
|
|
33
|
+
- **`created_date`** (`timestamp`) — Timestamp when the incident was created.
|
|
34
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
35
|
+
- **`identified_date`** (`timestamp`) — Time when the incident was identified/reported.
|
|
36
|
+
- **`impact`** (`composite`) — Details of the impact due to the incident.
|
|
37
|
+
- Composite: `_gen:impact`
|
|
38
|
+
- **`mitigated_date`** (`timestamp`) — Timestamp when the incident was mitigated.
|
|
39
|
+
- **`modified_date`** (`timestamp`) — Timestamp when the incident was last modified.
|
|
40
|
+
- **`owned_by`** (`[]composite`)
|
|
41
|
+
- Composite: `_gen:user-summary`
|
|
42
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
43
|
+
- **`display_name`** (`text`) — The user's display name. The name is non-unique and mutable.
|
|
44
|
+
- **`email`** (`text`) — Email address of the user.
|
|
45
|
+
- **`id`** (`id`) **REQUIRED** — ID of the user.
|
|
46
|
+
- ID type: `devu`, `sysu`, `svcacc`
|
|
47
|
+
- **`pia`** (`[]composite`)
|
|
48
|
+
- Composite: `_gen:article-summary`
|
|
49
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
50
|
+
- **`resource`** (`composite`) — Resource details.
|
|
51
|
+
- Composite: `_gen:resource`
|
|
52
|
+
- **`title`** (`text`) — Title of the article.
|
|
53
|
+
- **`id`** (`id`) **REQUIRED** — ID of the article.
|
|
54
|
+
- ID type: `article`
|
|
55
|
+
- **`playbooks`** (`[]composite`)
|
|
56
|
+
- Composite: `_gen:article-summary_95fca9c7`
|
|
57
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
58
|
+
- **`resource`** (`composite`) — Resource details.
|
|
59
|
+
- Composite: `_gen:resource`
|
|
60
|
+
- **`title`** (`text`) — Title of the article.
|
|
61
|
+
- **`id`** (`id`) **REQUIRED** — ID of the article.
|
|
62
|
+
- ID type: `article`
|
|
63
|
+
- **`reported_by`** (`composite`) — The properties of an enum value.
|
|
64
|
+
- Composite: `_gen:reported_by`
|
|
65
|
+
- **`id`** (`int`) **REQUIRED** — The unique ID of the enum value.
|
|
66
|
+
- **`label`** (`text`) **REQUIRED** — The display label of the enum value.
|
|
67
|
+
- **`ordinal`** (`int`) **REQUIRED** — Used for determining the relative order of the enum value.
|
|
68
|
+
- **`severity`** (`composite`) — Severity of the incident.
|
|
69
|
+
- Composite: `_gen:severity`
|
|
70
|
+
- **`id`** (`int`) **REQUIRED** — The unique ID of the enum value.
|
|
71
|
+
- **`label`** (`text`) **REQUIRED** — The label for the severity. Use id instead as labels can change overtime.
|
|
72
|
+
- **`value`** (`json_value`) — The actual value of the enum value.
|
|
73
|
+
- **`source`** (`composite`) — The properties of an enum value.
|
|
74
|
+
- Composite: `_gen:source`
|
|
75
|
+
- **`stage`** (`composite`) — Stage of the incident.
|
|
76
|
+
- Composite: `_gen:stage`
|
|
77
|
+
- **`stage`** (`composite`) — The stage of the incident.
|
|
78
|
+
- Composite: `stage.stage`
|
|
79
|
+
- **`state`** (`composite`) — The state of the incident
|
|
80
|
+
- Composite: `_gen:state`
|
|
81
|
+
- **`tags`** (`[]composite`) — Tags associated with the object.
|
|
82
|
+
- Composite: `_gen:tags`
|
|
83
|
+
- **`tag`** (`composite`)
|
|
84
|
+
- Composite: `_gen:tag`
|
|
85
|
+
- **`target_close_date`** (`timestamp`) — Timestamp when the incident is expected to be resolved.
|
|
86
|
+
- **`title`** (`text`) **REQUIRED** — Title of the incident.
|
|
87
|
+
- **`id`** (`id`) **REQUIRED** — ID of the incident.
|
|
88
|
+
- ID type: `incident`
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# `incident_updated` — Schema Reference
|
|
2
|
+
|
|
3
|
+
## Input Port: `input`
|
|
4
|
+
|
|
5
|
+
- **`fields_to_watch`** (`[]enum`) **REQUIRED** — Fields to watch for changes. The trigger will only be fired if any of these fields are updated.
|
|
6
|
+
- Allowed: `title`, `body`, `applies_to_part`, `owned_by`, `target_close_date`, `identified_date`, `acknowledged_date`, `mitigated_date`, `actual_close_date`, `severity`... (17 total)
|
|
7
|
+
|
|
8
|
+
## Output Port: `output`
|
|
9
|
+
|
|
10
|
+
- **`acknowledged_date`** (`timestamp`) — Timestamp when the incident was acknowledged.
|
|
11
|
+
- **`actual_close_date`** (`timestamp`) — Timestamp when the incident was actually resolved.
|
|
12
|
+
- **`applies_to_parts`** (`[]composite`) — Parts to which the incident is applicable to.
|
|
13
|
+
- Composite: `_gen:part-summary`
|
|
14
|
+
- **`name`** (`text`) **REQUIRED** — Name of the part.
|
|
15
|
+
- **`owned_by`** (`[]composite`) **REQUIRED**
|
|
16
|
+
- Composite: `_gen:user-summary`
|
|
17
|
+
- **`type`** (`enum`) **REQUIRED**
|
|
18
|
+
- Allowed: `capability`, `enhancement`, `feature`, `linkable`, `product`, `runnable`
|
|
19
|
+
- **`id`** (`id`) **REQUIRED** — ID of the part attached to the incident.
|
|
20
|
+
- ID type: `capability`, `feature`, `product`, `runnable`, `linkable`, `enhancement`
|
|
21
|
+
- **`body`** (`text`) — Body of the incident.
|
|
22
|
+
- **`created_by`** (`composite`)
|
|
23
|
+
- Composite: `_gen:created_by`
|
|
24
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
25
|
+
- **`display_name`** (`text`) — The user's display name. The name is non-unique and mutable.
|
|
26
|
+
- **`email`** (`text`) — Email address of the user.
|
|
27
|
+
- **`full_name`** (`text`) — Full name of the user.
|
|
28
|
+
- **`state`** (`enum`) — State of the user.
|
|
29
|
+
- Allowed: `active`, `deactivated`, `deleted`, `locked`, `shadow`, `unassigned`
|
|
30
|
+
- **`id`** (`id`) **REQUIRED** — The id of the user.
|
|
31
|
+
- ID type: `devu`, `sysu`, `svcacc`
|
|
32
|
+
- **`type`** (`enum`) **REQUIRED**
|
|
33
|
+
- Allowed: `dev_user`, `sys_user`, `service_account`
|
|
34
|
+
- **`created_date`** (`timestamp`) — Timestamp when the object was created.
|
|
35
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
36
|
+
- **`identified_date`** (`timestamp`) — Time when the incident was identified/reported.
|
|
37
|
+
- **`impact`** (`composite`) — Details of the impact due to the incident.
|
|
38
|
+
- Composite: `_gen:impact`
|
|
39
|
+
- **`mitigated_date`** (`timestamp`) — Timestamp when the incident was mitigated.
|
|
40
|
+
- **`modified_date`** (`timestamp`) — Timestamp when the object was last modified.
|
|
41
|
+
- **`owned_by`** (`[]composite`)
|
|
42
|
+
- Composite: `_gen:user-summary`
|
|
43
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
44
|
+
- **`display_name`** (`text`) — The user's display name. The name is non-unique and mutable.
|
|
45
|
+
- **`email`** (`text`) — Email address of the user.
|
|
46
|
+
- **`full_name`** (`text`) — Full name of the user.
|
|
47
|
+
- **`state`** (`enum`) — State of the user.
|
|
48
|
+
- Allowed: `active`, `deactivated`, `deleted`, `locked`, `shadow`, `unassigned`
|
|
49
|
+
- **`id`** (`id`) **REQUIRED** — The id of the user.
|
|
50
|
+
- ID type: `devu`, `sysu`, `svcacc`
|
|
51
|
+
- **`type`** (`enum`) **REQUIRED**
|
|
52
|
+
- Allowed: `dev_user`, `sys_user`, `service_account`
|
|
53
|
+
- **`pia`** (`[]composite`)
|
|
54
|
+
- Composite: `_gen:article-summary`
|
|
55
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
56
|
+
- **`resource`** (`composite`) — Resource details.
|
|
57
|
+
- Composite: `_gen:resource`
|
|
58
|
+
- **`title`** (`text`) — Title of the article.
|
|
59
|
+
- **`id`** (`id`) **REQUIRED** — ID of the article.
|
|
60
|
+
- ID type: `article`
|
|
61
|
+
- **`playbooks`** (`[]composite`)
|
|
62
|
+
- Composite: `_gen:article-summary_95fca9c7`
|
|
63
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
64
|
+
- **`resource`** (`composite`) — Resource details.
|
|
65
|
+
- Composite: `_gen:resource`
|
|
66
|
+
- **`title`** (`text`) — Title of the article.
|
|
67
|
+
- **`id`** (`id`) **REQUIRED** — ID of the article.
|
|
68
|
+
- ID type: `article`
|
|
69
|
+
- **`reported_by`** (`composite`) — The properties of an enum value.
|
|
70
|
+
- Composite: `_gen:reported_by`
|
|
71
|
+
- **`id`** (`int`) **REQUIRED** — The unique ID of the enum value.
|
|
72
|
+
- **`label`** (`text`) **REQUIRED** — The display label of the enum value.
|
|
73
|
+
- **`ordinal`** (`int`) **REQUIRED** — Used for determining the relative order of the enum value.
|
|
74
|
+
- **`severity`** (`composite`) — Severity of the incident.
|
|
75
|
+
- Composite: `_gen:severity`
|
|
76
|
+
- **`id`** (`int`) **REQUIRED** — The unique ID of the enum value.
|
|
77
|
+
- **`label`** (`text`) **REQUIRED** — The label for the severity. Use id instead as labels can change overtime.
|
|
78
|
+
- **`value`** (`json_value`) — The actual value of the enum value.
|
|
79
|
+
- **`source`** (`composite`) — The properties of an enum value.
|
|
80
|
+
- Composite: `_gen:source`
|
|
81
|
+
- **`stage`** (`composite`) — Stage of the incident.
|
|
82
|
+
- Composite: `_gen:stage`
|
|
83
|
+
- **`stage`** (`composite`) — The stage of the incident.
|
|
84
|
+
- Composite: `stage.stage`
|
|
85
|
+
- **`state`** (`composite`) — The state of the incident
|
|
86
|
+
- Composite: `_gen:state`
|
|
87
|
+
- **`tags`** (`[]composite`) — Tags associated with the object.
|
|
88
|
+
- Composite: `_gen:tags`
|
|
89
|
+
- **`tag`** (`composite`)
|
|
90
|
+
- Composite: `_gen:tag`
|
|
91
|
+
- **`target_close_date`** (`timestamp`) — Timestamp when the incident is expected to be resolved.
|
|
92
|
+
- **`title`** (`text`) **REQUIRED** — Title of the incident.
|
|
93
|
+
- **`old_incident`** (`composite`) — Old incident object
|
|
94
|
+
- Composite: `_gen:implicit:incident`
|
|
95
|
+
- **`acknowledged_date`** (`timestamp`) — Timestamp when the incident was acknowledged.
|
|
96
|
+
- **`actual_close_date`** (`timestamp`) — Timestamp when the incident was actually resolved.
|
|
97
|
+
- **`applies_to_parts`** (`[]composite`)
|
|
98
|
+
- Composite: `_gen:part-summary`
|
|
99
|
+
- **`body`** (`text`) — Body of the incident.
|
|
100
|
+
- **`created_date`** (`timestamp`) — Timestamp when the object was created.
|
|
101
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
102
|
+
- **`identified_date`** (`timestamp`) — Time when the incident was identified/reported.
|
|
103
|
+
- **`impact`** (`composite`) — Details of the impact due to the incident.
|
|
104
|
+
- Composite: `_gen:impact`
|
|
105
|
+
- **`mitigated_date`** (`timestamp`) — Timestamp when the incident was mitigated.
|
|
106
|
+
- **`modified_date`** (`timestamp`) — Timestamp when the object was last modified.
|
|
107
|
+
- **`owned_by`** (`[]composite`)
|
|
108
|
+
- Composite: `_gen:user-summary`
|
|
109
|
+
- **`pia`** (`[]composite`)
|
|
110
|
+
- Composite: `_gen:article-summary`
|
|
111
|
+
- **`playbooks`** (`[]composite`)
|
|
112
|
+
- Composite: `_gen:article-summary_95fca9c7`
|
|
113
|
+
- **`reported_by`** (`composite`) — The properties of an enum value.
|
|
114
|
+
- Composite: `_gen:reported_by`
|
|
115
|
+
- **`severity`** (`composite`) — The properties of an enum value.
|
|
116
|
+
- Composite: `_gen:severity`
|
|
117
|
+
- **`source`** (`composite`) — The properties of an enum value.
|
|
118
|
+
- Composite: `_gen:source`
|
|
119
|
+
- **`tags`** (`[]composite`) — Tags associated with the object.
|
|
120
|
+
- Composite: `_gen:tags`
|
|
121
|
+
- **`target_close_date`** (`timestamp`) — Timestamp when the incident is expected to be resolved.
|
|
122
|
+
- **`title`** (`text`) **REQUIRED** — Title of the incident.
|
|
123
|
+
- **`id`** (`id`) **REQUIRED** — ID of the updated incident.
|
|
124
|
+
- ID type: `incident`
|
|
125
|
+
- **`id`** (`id`) **REQUIRED** — ID of the udpated incident.
|
|
126
|
+
- ID type: `incident`
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# `init_variable` — Schema Reference
|
|
2
|
+
|
|
3
|
+
Initializes a variable of a given type. Used to create scope variables that can be modified by `set_variable` steps (typically inside loops) and read later by `$get_variable()`.
|
|
4
|
+
|
|
5
|
+
## Input Port: `input`
|
|
6
|
+
|
|
7
|
+
Schema is **dynamic** (Overridden by schema handler), but the template pattern is well-defined:
|
|
8
|
+
|
|
9
|
+
```json
|
|
10
|
+
"input_ports": [{"name": "input", "schema": {"field_descriptors": [
|
|
11
|
+
{"field_type": "composite", "composite_type": "devrev:schema", "data_name": "variables", "db_name": "variables",
|
|
12
|
+
"description": "The variables to initialize.", "name": "variables", "oasis": {"name": "variables"}}
|
|
13
|
+
], "invalidate_on_field_update": ["variables"], "type": "field_descriptor"}, "type": "default"}]
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Input Values
|
|
17
|
+
|
|
18
|
+
Define the variable(s) as a schema with fields:
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
"input_values": [{"port_name": "input", "fields": [{"name": "variables", "value": {"type": "literal", "value": {
|
|
22
|
+
"fields": [{
|
|
23
|
+
"description": "",
|
|
24
|
+
"field_type": "text",
|
|
25
|
+
"is_filterable": false,
|
|
26
|
+
"name": "summary",
|
|
27
|
+
"ui": {
|
|
28
|
+
"create_view": {},
|
|
29
|
+
"detail_view": {"is_hidden": true},
|
|
30
|
+
"display_name": "summary",
|
|
31
|
+
"summary_view": {"is_hidden": true}
|
|
32
|
+
}
|
|
33
|
+
}]
|
|
34
|
+
}}}]}]
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Supported `field_type` values: `text`, `int`, `double`, `bool`, `timestamp`, `id`
|
|
38
|
+
|
|
39
|
+
## Output Port: `output`
|
|
40
|
+
|
|
41
|
+
The output port MUST include `scope_variables` — an array of field descriptors matching the variables defined in input_values:
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
"output_ports": [
|
|
45
|
+
{"name": "output", "schema": {"type": "field_descriptor"},
|
|
46
|
+
"scope_variables": [{"field_descriptor": {
|
|
47
|
+
"field_type": "text", "data_name": "summary", "db_name": "summary", "description": "",
|
|
48
|
+
"is_filterable": false, "name": "summary", "oasis": {"name": "summary"},
|
|
49
|
+
"ui": {"create_view": {}, "detail_view": {"is_hidden": true}, "display_name": "summary", "summary_view": {"is_hidden": true}}
|
|
50
|
+
}}],
|
|
51
|
+
"type": "default"},
|
|
52
|
+
{"name": "error", "schema": {"field_descriptors": [
|
|
53
|
+
{"field_type": "text", "data_name": "message", "db_name": "message", "description": "Error message with more details about the error", "name": "message", "oasis": {"name": "message"}, "ui": {"display_name": "Error Message"}},
|
|
54
|
+
{"field_type": "enum", "allowed_values": ["bad_request", "not_found", "internal"], "data_name": "type", "db_name": "type", "description": "Type of the error", "name": "type", "oasis": {"name": "type"}, "ui": {"display_name": "Error Type"}}
|
|
55
|
+
], "type": "field_descriptor"}, "type": "error"}
|
|
56
|
+
]
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Reading Variables After Loop
|
|
60
|
+
|
|
61
|
+
Use `$get_variable()` (NOT `$get()`) to read accumulated variable values after the loop:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
{% expr $get_variable('init_variable_1','summary',{'output_port_name' : 'output'}) %}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Syntax: `$get_variable('<init_step_ref>', '<variable_name>', {'output_port_name': 'output'})`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# `invoice_created` — Schema Reference
|
|
2
|
+
|
|
3
|
+
## Input Port: `input`
|
|
4
|
+
|
|
5
|
+
_No input fields (trigger or system-provided)._
|
|
6
|
+
|
|
7
|
+
## Output Port: `output`
|
|
8
|
+
|
|
9
|
+
- **`status`** (`enum`) **REQUIRED** — Status of the invoice
|
|
10
|
+
- Allowed: `draft`, `finalized_pending`, `open`, `paid`, `posted`, `uncollectible`, `void`
|
|
11
|
+
- **`due_date`** (`timestamp`) — Due date of the invoice
|
|
12
|
+
- **`billing_email`** (`text`) **REQUIRED** — Email address for billing
|
|
13
|
+
- **`total`** (`double`) **REQUIRED** — Total amount of the invoice
|
|
14
|
+
- **`pdf_url`** (`text`) — URL to the invoice PDF
|
|
15
|
+
- **`account`** (`composite`) — The account of the customer
|
|
16
|
+
- Composite: `account`
|
|
17
|
+
- **`display_name`** (`text`) — Display name of the account
|
|
18
|
+
- **`id`** (`id`) **REQUIRED** — ID of the account
|
|
19
|
+
- ID type: `account`
|
|
20
|
+
- **`id`** (`id`) **REQUIRED** — The ID of the invoice
|
|
21
|
+
- ID type: `invoice`
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# `invoice_updated` — Schema Reference
|
|
2
|
+
|
|
3
|
+
## Input Port: `input`
|
|
4
|
+
|
|
5
|
+
- **`fields_to_watch`** (`[]enum`) **REQUIRED** — Fields to watch for changes. The trigger will only be fired if any of these fields are updated. Only applicable in case of update events.
|
|
6
|
+
- Allowed: `pdf_url`, `due_date`, `total`, `items`, `status`
|
|
7
|
+
|
|
8
|
+
## Output Port: `output`
|
|
9
|
+
|
|
10
|
+
- **`status`** (`enum`) **REQUIRED** — Status of the invoice
|
|
11
|
+
- Allowed: `draft`, `finalized_pending`, `open`, `paid`, `posted`, `uncollectible`, `void`
|
|
12
|
+
- **`due_date`** (`timestamp`) — Due date of the invoice
|
|
13
|
+
- **`billing_email`** (`text`) **REQUIRED** — Email address for billing
|
|
14
|
+
- **`total`** (`double`) **REQUIRED** — Total amount of the invoice
|
|
15
|
+
- **`pdf_url`** (`text`) — URL to the invoice PDF
|
|
16
|
+
- **`account`** (`composite`) — The account of the customer
|
|
17
|
+
- Composite: `account`
|
|
18
|
+
- **`display_name`** (`text`) — Display name of the account
|
|
19
|
+
- **`id`** (`id`) **REQUIRED** — ID of the account
|
|
20
|
+
- ID type: `account`
|
|
21
|
+
- **`id`** (`id`) **REQUIRED** — The ID of the invoice
|
|
22
|
+
- ID type: `invoice`
|
|
23
|
+
- **`items`** (`composite`) — Line items in the invoice
|
|
24
|
+
- Composite: `invoice_line_item`
|
|
25
|
+
- **`id`** (`id`) — ID of the line item
|
|
26
|
+
- ID type: `invoice_line_item`
|
|
27
|
+
- **`total`** (`double`) — Total amount for this line item
|
|
28
|
+
- **`old_invoice`** (`composite`) — The previous state of the invoice
|
|
29
|
+
- Composite: `invoice`
|
|
30
|
+
- **`status`** (`enum`) **REQUIRED** — Status of the invoice
|
|
31
|
+
- Allowed: `draft`, `finalized_pending`, `open`, `paid`, `posted`, `uncollectible`, `void`
|
|
32
|
+
- **`due_date`** (`timestamp`) — Due date of the invoice
|
|
33
|
+
- **`billing_email`** (`text`) **REQUIRED** — Email address for billing
|
|
34
|
+
- **`total`** (`double`) **REQUIRED** — Total amount of the invoice
|
|
35
|
+
- **`pdf_url`** (`text`) — URL to the invoice PDF
|
|
36
|
+
- **`account`** (`composite`) — The account of the customer
|
|
37
|
+
- Composite: `account`
|
|
38
|
+
- **`id`** (`id`) **REQUIRED** — The ID of the invoice
|
|
39
|
+
- ID type: `invoice`
|
|
40
|
+
- **`items`** (`composite`) — Line items in the invoice
|
|
41
|
+
- Composite: `invoice_line_item`
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# `invoke_code` — Schema Reference
|
|
2
|
+
|
|
3
|
+
Executes custom Python code within a workflow. Secure sandbox: 30s default timeout (max 120s), 256MB memory, 512KB output limit.
|
|
4
|
+
|
|
5
|
+
**Template requirements:** Must include `input_ports`, `output_ports`, AND `input_values` with all three fields configured.
|
|
6
|
+
|
|
7
|
+
## Input Port: `input`
|
|
8
|
+
|
|
9
|
+
Standard input_ports schema (same for all invoke_code steps):
|
|
10
|
+
|
|
11
|
+
```json
|
|
12
|
+
"input_ports": [{
|
|
13
|
+
"name": "input",
|
|
14
|
+
"schema": {
|
|
15
|
+
"composite_schemas": [{
|
|
16
|
+
"description": "A variable",
|
|
17
|
+
"fields": [
|
|
18
|
+
{"field_type": "tokens", "data_name": "name", "db_name": "name", "description": "The name of the variable", "is_required": true, "name": "name", "oasis": {"name": "name"}},
|
|
19
|
+
{"field_type": "json_value", "data_name": "value", "db_name": "value", "description": "The value of the variable", "name": "value", "oasis": {"name": "value"}}
|
|
20
|
+
],
|
|
21
|
+
"name": "variable"
|
|
22
|
+
}],
|
|
23
|
+
"field_descriptors": [
|
|
24
|
+
{"field_type": "array", "base_type": "composite", "composite_type": "variable", "data_name": "input_values", "db_name": "input_values", "description": "The input variables to pass to the code. The inputs will be passed to run(...) as a dictionary.", "name": "input_values", "oasis": {"name": "input_values"}},
|
|
25
|
+
{"field_type": "composite", "composite_type": "devrev:schema", "data_name": "output_schema", "db_name": "output_schema", "description": "The schema of the output variables to return from the code. The outputs should be returned from run(...) as a dictionary.", "name": "output_schema", "oasis": {"name": "output_schema"}},
|
|
26
|
+
{"field_type": "text", "data_name": "code", "db_name": "code", "default_value": "def run(inputs):\n return {}", "description": "Write your code here. Do not update the run function signature.", "is_required": true, "name": "code", "oasis": {"name": "code"}, "ui": {}}
|
|
27
|
+
],
|
|
28
|
+
"invalidate_on_field_update": ["output_schema", "input_values"],
|
|
29
|
+
"type": "field_descriptor"
|
|
30
|
+
},
|
|
31
|
+
"type": "default"
|
|
32
|
+
}]
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Output Ports
|
|
36
|
+
|
|
37
|
+
The `output` port must include resolved `field_descriptors` matching the `output_schema` fields. Plus the standard `error` port.
|
|
38
|
+
|
|
39
|
+
```json
|
|
40
|
+
"output_ports": [
|
|
41
|
+
{"name": "output", "schema": {"field_descriptors": [
|
|
42
|
+
{"field_type": "text", "data_name": "my_output", "db_name": "my_output", "description": "my_output", "name": "my_output", "oasis": {"name": "my_output"}}
|
|
43
|
+
], "type": "field_descriptor"}, "type": "default"},
|
|
44
|
+
{"name": "error", "schema": {"field_descriptors": [
|
|
45
|
+
{"field_type": "text", "data_name": "message", "db_name": "message", "description": "Error message with more details about the error", "name": "message", "oasis": {"name": "message"}, "ui": {"display_name": "Error Message"}},
|
|
46
|
+
{"field_type": "enum", "allowed_values": ["bad_request", "not_found", "internal"], "data_name": "type", "db_name": "type", "description": "Type of the error", "name": "type", "oasis": {"name": "type"}, "ui": {"display_name": "Error Type"}}
|
|
47
|
+
], "type": "field_descriptor"}, "type": "error"}
|
|
48
|
+
]
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Input Values Pattern
|
|
52
|
+
|
|
53
|
+
All three fields must be set in `input_values`:
|
|
54
|
+
|
|
55
|
+
### `code` — uses `text_template` type (NOT `literal`)
|
|
56
|
+
|
|
57
|
+
```json
|
|
58
|
+
{
|
|
59
|
+
"name": "code",
|
|
60
|
+
"value": {
|
|
61
|
+
"type": "text_template",
|
|
62
|
+
"value": "import re\n\ndef run(inputs):\n text = inputs.get('description', '')\n cleaned = re.sub(r'\\bagent\\b', 'computer', text, flags=re.IGNORECASE)\n return {'cleaned': cleaned}"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### `input_values` — uses `composite_value_list` (NOT `composite_value`)
|
|
68
|
+
|
|
69
|
+
```json
|
|
70
|
+
{
|
|
71
|
+
"name": "input_values",
|
|
72
|
+
"value": {
|
|
73
|
+
"type": "list_value",
|
|
74
|
+
"value": {
|
|
75
|
+
"items": [{
|
|
76
|
+
"type": "composite_value_list",
|
|
77
|
+
"value": [{
|
|
78
|
+
"fields": [
|
|
79
|
+
{"name": "value", "value": {"type": "jsonata_expression", "value": "$get('trigger_1', 'output').description"}},
|
|
80
|
+
{"name": "name", "value": {"type": "literal", "value": "description"}}
|
|
81
|
+
]
|
|
82
|
+
}]
|
|
83
|
+
}]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### `output_schema` — literal with field definitions including UI metadata
|
|
90
|
+
|
|
91
|
+
```json
|
|
92
|
+
{
|
|
93
|
+
"name": "output_schema",
|
|
94
|
+
"value": {
|
|
95
|
+
"type": "literal",
|
|
96
|
+
"value": {
|
|
97
|
+
"fields": [{
|
|
98
|
+
"description": "",
|
|
99
|
+
"field_type": "text",
|
|
100
|
+
"is_filterable": false,
|
|
101
|
+
"name": "cleaned",
|
|
102
|
+
"ui": {
|
|
103
|
+
"create_view": {},
|
|
104
|
+
"detail_view": {"is_hidden": true},
|
|
105
|
+
"display_name": "cleaned",
|
|
106
|
+
"summary_view": {"is_hidden": true}
|
|
107
|
+
}
|
|
108
|
+
}]
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## Complete Working Example
|
|
115
|
+
|
|
116
|
+
From production template "Knowledge Gaps Workflow V1":
|
|
117
|
+
|
|
118
|
+
- Input: `object_ids` (array from hybrid_search output)
|
|
119
|
+
- Code: extracts article ID from object IDs array
|
|
120
|
+
- Output: `objectid` (text)
|
|
121
|
+
|
|
122
|
+
```python
|
|
123
|
+
def run(inputs):
|
|
124
|
+
object_ids = inputs.get("object_ids", [])
|
|
125
|
+
return {"objectid": f"ART-{object_ids[0].split('/')[-1]}" if object_ids else ""}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
## Available Python Libraries
|
|
129
|
+
|
|
130
|
+
`json`, `re`, `math`, `datetime`, `requests`, `collections`, `itertools`, `functools`, `string`, `random`, `decimal`, `statistics`, `typing`, `copy`, `textwrap`, `hashlib`, `hmac`, `secrets`, `base64`, `uuid`, `urllib`, `html`, `xml`, `csv`, `zipfile`, `gzip`, `zoneinfo`, `io`, `dataclasses`, `operator`
|
|
131
|
+
|
|
132
|
+
**Blocked:** `os`, `sys`, `subprocess`, `shutil`, `pathlib`, `multiprocessing`, `threading`, `concurrent`, `pickle`
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# `issue_created` — Schema Reference
|
|
2
|
+
|
|
3
|
+
## Input Port: `input`
|
|
4
|
+
|
|
5
|
+
_No input fields (trigger or system-provided)._
|
|
6
|
+
|
|
7
|
+
## Output Port: `output`
|
|
8
|
+
|
|
9
|
+
- **`actual_close_date`** (`timestamp`) — Timestamp when the issue was actually completed.
|
|
10
|
+
- **`actual_start_date`** (`timestamp`) — Actual start date for the issue.
|
|
11
|
+
- **`applies_to_part`** (`composite`)
|
|
12
|
+
- Composite: `_gen:applies_to_part`
|
|
13
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
14
|
+
- **`name`** (`text`) **REQUIRED** — Name of the part.
|
|
15
|
+
- **`owned_by`** (`[]composite`) **REQUIRED**
|
|
16
|
+
- Composite: `_gen:user-summary`
|
|
17
|
+
- **`type`** (`enum`) **REQUIRED**
|
|
18
|
+
- Allowed: `capability`, `enhancement`, `feature`, `linkable`, `product`, `runnable`
|
|
19
|
+
- **`id`** (`id`) **REQUIRED** — The id of the parts associated with issue.
|
|
20
|
+
- ID type: `capability`, `feature`, `product`, `runnable`, `linkable`, `enhancement`
|
|
21
|
+
- **`body`** (`text`) — The body of the issue.
|
|
22
|
+
- **`created_by`** (`composite`)
|
|
23
|
+
- Composite: `_gen:created_by`
|
|
24
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
25
|
+
- **`display_name`** (`text`) — The user's display name. The name is non-unique and mutable.
|
|
26
|
+
- **`email`** (`text`) — Email address of the user.
|
|
27
|
+
- **`full_name`** (`text`) — Full name of the user.
|
|
28
|
+
- **`state`** (`enum`) — State of the user.
|
|
29
|
+
- Allowed: `active`, `deactivated`, `deleted`, `locked`, `shadow`, `unassigned`
|
|
30
|
+
- **`id`** (`id`) **REQUIRED** — The id of the user.
|
|
31
|
+
- ID type: `devu`, `sysu`, `svcacc`
|
|
32
|
+
- **`type`** (`enum`) **REQUIRED**
|
|
33
|
+
- Allowed: `dev_user`, `sys_user`, `service_account`
|
|
34
|
+
- **`created_date`** (`timestamp`) — Timestamp when the issue was created.
|
|
35
|
+
- **`developed_with`** (`[]composite`)
|
|
36
|
+
- Composite: `_gen:part-summary`
|
|
37
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
38
|
+
- **`name`** (`text`) **REQUIRED** — Name of the part.
|
|
39
|
+
- **`owned_by`** (`[]composite`) **REQUIRED**
|
|
40
|
+
- Composite: `_gen:user-summary`
|
|
41
|
+
- **`type`** (`enum`) **REQUIRED**
|
|
42
|
+
- Allowed: `capability`, `enhancement`, `feature`, `linkable`, `product`, `runnable`
|
|
43
|
+
- **`id`** (`id`) **REQUIRED** — The id of the part.
|
|
44
|
+
- ID type: `capability`, `feature`, `product`, `runnable`, `linkable`, `enhancement`
|
|
45
|
+
- **`display_id`** (`text`) — Human-readable ID of the issue.
|
|
46
|
+
- **`estimated_effort`** (`double`) — Estimated effort to complete the issue.
|
|
47
|
+
- **`external_ref`** (`text`) — An opaque key that's associated with the work item that's guaranteed to be unique across all work items of same type (issue, ticket, etc).
|
|
48
|
+
- **`modified_by`** (`composite`)
|
|
49
|
+
- Composite: `_gen:modified_by`
|
|
50
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
51
|
+
- **`display_name`** (`text`) — The user's display name. The name is non-unique and mutable.
|
|
52
|
+
- **`email`** (`text`) — Email address of the user.
|
|
53
|
+
- **`full_name`** (`text`) — Full name of the user.
|
|
54
|
+
- **`state`** (`enum`) — State of the user.
|
|
55
|
+
- Allowed: `active`, `deactivated`, `deleted`, `locked`, `shadow`, `unassigned`
|
|
56
|
+
- **`id`** (`id`) **REQUIRED** — The id of the user.
|
|
57
|
+
- ID type: `devu`, `sysu`, `svcacc`
|
|
58
|
+
- **`type`** (`enum`) **REQUIRED**
|
|
59
|
+
- Allowed: `dev_user`, `sys_user`, `service_account`
|
|
60
|
+
- **`modified_date`** (`timestamp`) — Timestamp when the issue was last modified.
|
|
61
|
+
- **`owned_by`** (`[]composite`) **REQUIRED**
|
|
62
|
+
- Composite: `_gen:user-summary`
|
|
63
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
64
|
+
- **`display_name`** (`text`) — The user's display name. The name is non-unique and mutable.
|
|
65
|
+
- **`email`** (`text`) — Email address of the user.
|
|
66
|
+
- **`full_name`** (`text`) — Full name of the user.
|
|
67
|
+
- **`rev_org`** (`composite`)
|
|
68
|
+
- Composite: `_gen:rev_org`
|
|
69
|
+
- **`state`** (`enum`) — State of the user.
|
|
70
|
+
- Allowed: `active`, `deactivated`, `deleted`, `locked`, `shadow`, `unassigned`
|
|
71
|
+
- **`id`** (`id`) **REQUIRED** — The id of the user.
|
|
72
|
+
- ID type: `devu`, `sysu`, `svcacc`
|
|
73
|
+
- **`type`** (`enum`) **REQUIRED**
|
|
74
|
+
- Allowed: `dev_user`, `sys_user`, `service_account`
|
|
75
|
+
- **`priority`** (`enum`) — The priority of the issue.
|
|
76
|
+
- Allowed: `p0`, `p1`, `p2`, `p3`
|
|
77
|
+
- **`reported_by`** (`[]composite`)
|
|
78
|
+
- Composite: `_gen:user-summary`
|
|
79
|
+
- **`display_id`** (`text`) — Human-readable object ID unique to the Dev organization.
|
|
80
|
+
- **`display_name`** (`text`) — The user's display name. The name is non-unique and mutable.
|
|
81
|
+
- **`email`** (`text`) — Email address of the user.
|
|
82
|
+
- **`full_name`** (`text`) — Full name of the user.
|
|
83
|
+
- **`rev_org`** (`composite`)
|
|
84
|
+
- Composite: `_gen:rev_org`
|
|
85
|
+
- **`state`** (`enum`) — State of the user.
|
|
86
|
+
- Allowed: `active`, `deactivated`, `deleted`, `locked`, `shadow`, `unassigned`
|
|
87
|
+
- **`id`** (`id`) **REQUIRED** — The id of the user.
|
|
88
|
+
- ID type: `devu`, `sysu`, `svcacc`
|
|
89
|
+
- **`type`** (`enum`) **REQUIRED**
|
|
90
|
+
- Allowed: `dev_user`, `sys_user`, `service_account`
|
|
91
|
+
- **`stage`** (`composite`) — The stage of the issue.
|
|
92
|
+
- Composite: `_gen:stage`
|
|
93
|
+
- **`name`** (`text`) **REQUIRED** — Current stage name of the work item.
|
|
94
|
+
- **`stage`** (`composite`) — The stage of the issue.
|
|
95
|
+
- Composite: `stage.stage`
|
|
96
|
+
- **`state_display_name`** (`text`) — Display name for current state.
|
|
97
|
+
- **`tags`** (`[]composite`) — The tags associated with the issue.
|
|
98
|
+
- Composite: `_gen:tags`
|
|
99
|
+
- **`tag`** (`composite`)
|
|
100
|
+
- Composite: `_gen:tag`
|
|
101
|
+
- **`target_close_date`** (`timestamp`) — The target close date of the issue.
|
|
102
|
+
- **`target_start_date`** (`timestamp`) — The target start date of the issue.
|
|
103
|
+
- **`title`** (`text`) **REQUIRED** — The title of the issue.
|
|
104
|
+
- **`id`** (`id`) **REQUIRED** — The id of the issue.
|
|
105
|
+
- ID type: `issue`
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# `issue_sla_tracker_updated` — Schema Reference
|
|
2
|
+
|
|
3
|
+
## Input Port: `input`
|
|
4
|
+
|
|
5
|
+
- **`fields_to_watch`** (`[]enum`) **REQUIRED** — Fields to watch for changes. The trigger will only be fired if any of these fields are updated.
|
|
6
|
+
- Allowed: `stage`
|
|
7
|
+
|
|
8
|
+
## Output Port: `output`
|
|
9
|
+
|
|
10
|
+
- **`metric_target_summaries`** (`[]composite`) **REQUIRED** — Summary of the metrics target being tracked in the SLA tracker.
|
|
11
|
+
- Composite: `_gen:metric_target_summaries`
|
|
12
|
+
- **`breached_at`** (`timestamp`) — For breached metrics the time they entered into breach. This is the same as what the target date was, unless the breach happened due to a different policy starting to apply.
|
|
13
|
+
- **`completed_in`** (`int`) — For completed metrics the time (in minutes) it took to complete them. (Taking into account the schedule if any).
|
|
14
|
+
- **`completed_in_seconds`** (`int`) — For completed metrics the time (in seconds) it took to complete them. (Taking into account the schedule if any).
|
|
15
|
+
- **`is_out_of_schedule`** (`bool`) — If true, the schedule attached to this metric is out of schedule at the time of the query. It is not set for metrics in *completed* stage.
|
|
16
|
+
- **`metric_definition`** (`composite`)
|
|
17
|
+
- Composite: `_gen:metric_definition`
|
|
18
|
+
- **`next_schedule_transition`** (`timestamp`) — The next time the schedule will change its state, if such is known.
|
|
19
|
+
- **`org_schedule`** (`composite`)
|
|
20
|
+
- Composite: `_gen:org_schedule`
|
|
21
|
+
- **`org_schedule_version`** (`int`) — The version of the org schedule at the time this tracker was created.
|
|
22
|
+
- **`remaining_time`** (`int`) — Time in minutes that remains on a paused metric.
|
|
23
|
+
- **`target_time`** (`timestamp`) — Time at which the metric would breach SLA if no action taken.
|
|
24
|
+
- **`warning_target_time`** (`timestamp`) — Time at which the metric would reach the SLA warning limit if no action taken.
|
|
25
|
+
- **`stage`** (`enum`) **REQUIRED** — SLA stage of the object being tracked.
|
|
26
|
+
- Allowed: `active`, `breached`, `completed`, `paused`, `warning`
|
|
27
|
+
- **`status`** (`enum`) **REQUIRED** — Status of the object being tracked.
|
|
28
|
+
- Allowed: `hit`, `in_progress`, `miss`
|
|
29
|
+
- **`modified_date`** (`timestamp`) — Timestamp when the object was last modified.
|
|
30
|
+
- **`sla`** (`composite`)
|
|
31
|
+
- Composite: `_gen:sla`
|
|
32
|
+
- **`name`** (`text`) **REQUIRED** — Human-readable name.
|
|
33
|
+
- **`status`** (`enum`) **REQUIRED** — Status determines how an item can be used. In 'draft' status an item can be edited but can't be used. When 'published' the item can longer be edited but can be used. 'Archived' is read-only.
|
|
34
|
+
- Allowed: `archived`, `draft`, `published`
|
|
35
|
+
- **`id`** (`id`) **REQUIRED** — Globally unique object ID.
|
|
36
|
+
- ID type: `sla`
|
|
37
|
+
- **`sla_type`** (`enum`) **REQUIRED** — Type of the SLA. Internal - for internal objects (issues, etc) external - for customer facing objects (tickets, conversations etc)
|
|
38
|
+
- Allowed: `external`, `internal`
|
|
39
|
+
- **`id`** (`id`) **REQUIRED** — Globally unique object ID.
|
|
40
|
+
- ID type: `sla_tracker`
|
|
41
|
+
- **`applies_to_id`** (`id`) **REQUIRED** — The id of the issue.
|
|
42
|
+
- ID type: `issue`
|
|
43
|
+
- **`stage`** (`enum`) **REQUIRED** — SLA stage of the object being tracked.
|
|
44
|
+
- Allowed: `active`, `breached`, `completed`, `paused`, `warning`
|
|
45
|
+
- **`status`** (`enum`) **REQUIRED** — Status of the object being tracked.
|
|
46
|
+
- Allowed: `hit`, `in_progress`, `miss`
|