|
6592 | 6592 | "description": "Parameters for creating an incident work item.", |
6593 | 6593 | "properties": { |
6594 | 6594 | "assignee_ids": { |
6595 | | - "description": "Initial assignee member IDs. Assignees must be active members who can already read the anchor; assignment never grants access.", |
| 6595 | + "description": "Legacy alias for the initial assignees. Equivalent to `assignees` with every entry `type` `person`. Mutually exclusive with `assignees`: sending both returns an error. Assignees must be active members who can already read the anchor; assignment never grants access.", |
6596 | 6596 | "items": { |
6597 | 6597 | "format": "int64", |
6598 | 6598 | "type": "integer" |
6599 | 6599 | }, |
6600 | 6600 | "type": "array" |
6601 | 6601 | }, |
| 6602 | + "assignees": { |
| 6603 | + "description": "Initial assignees. Each entry is `{type, id?}`. `type` is `person` or `ai_sre`; an `ai_sre` entry omits `id`. Mutually exclusive with `assignee_ids`: sending both returns an error. `assignee_ids` is the legacy alias and is equivalent to an all-`person` list. At most 20 entries. Person assignees must be active members who can already read the anchor; assignment never grants access.", |
| 6604 | + "items": { |
| 6605 | + "$ref": "#/components/schemas/WorkItemAssignee" |
| 6606 | + }, |
| 6607 | + "maxItems": 20, |
| 6608 | + "type": "array" |
| 6609 | + }, |
6602 | 6610 | "description": { |
6603 | 6611 | "description": "Optional longer description (max 65,535 characters).", |
6604 | 6612 | "maxLength": 65535, |
@@ -14456,13 +14464,21 @@ |
14456 | 14464 | "type": "object" |
14457 | 14465 | }, |
14458 | 14466 | "ListWorkItemRequest": { |
14459 | | - "description": "Filters for listing work items. At least one of `incident_id`, `post_mortem_id`, or `assignee_id` is required.", |
| 14467 | + "description": "Filters for listing work items. At least one of `incident_id`, `post_mortem_id`, `assignee_id`, or `assignee_type` = `ai_sre` is required.", |
14460 | 14468 | "properties": { |
14461 | 14469 | "assignee_id": { |
14462 | | - "description": "Restrict results to items assigned to this member ID. Listing by assignee alone requires being that assignee or an account admin.", |
| 14470 | + "description": "Restrict results to items assigned to this member ID. Listing by assignee alone requires being that assignee or an account admin. Ignored when `assignee_type` is `ai_sre`.", |
14463 | 14471 | "format": "int64", |
14464 | 14472 | "type": "integer" |
14465 | 14473 | }, |
| 14474 | + "assignee_type": { |
| 14475 | + "description": "Filter by assignee type: `person` or `ai_sre`. `ai_sre` returns items assigned to AI SRE (an AI caller uses this to list its own tasks) and does not require `assignee_id`. `person` together with `assignee_id` restricts results to that member. Omitted with a positive `assignee_id` means `person`.", |
| 14476 | + "enum": [ |
| 14477 | + "person", |
| 14478 | + "ai_sre" |
| 14479 | + ], |
| 14480 | + "type": "string" |
| 14481 | + }, |
14466 | 14482 | "cursor": { |
14467 | 14483 | "description": "Pagination cursor from a previous response's `next_cursor`.", |
14468 | 14484 | "type": "string" |
@@ -18130,13 +18146,21 @@ |
18130 | 18146 | "description": "Full replacement of a work item's assignee set.", |
18131 | 18147 | "properties": { |
18132 | 18148 | "assignee_ids": { |
18133 | | - "description": "New assignee member IDs, replacing the current set. An empty array clears all assignees.", |
| 18149 | + "description": "Legacy alias for the replacement assignee set. Equivalent to `assignees` with every entry `type` `person`. Mutually exclusive with `assignees`: sending both returns an error. An empty array clears all assignees.", |
18134 | 18150 | "items": { |
18135 | 18151 | "format": "int64", |
18136 | 18152 | "type": "integer" |
18137 | 18153 | }, |
18138 | 18154 | "type": "array" |
18139 | 18155 | }, |
| 18156 | + "assignees": { |
| 18157 | + "description": "Replacement assignee set. Each entry is `{type, id?}`. `type` is `person` or `ai_sre`; an `ai_sre` entry omits `id`. Mutually exclusive with `assignee_ids`: sending both returns an error. `assignee_ids` is the legacy alias and is equivalent to an all-`person` list. At most 20 entries. An empty array clears all assignees.", |
| 18158 | + "items": { |
| 18159 | + "$ref": "#/components/schemas/WorkItemAssignee" |
| 18160 | + }, |
| 18161 | + "maxItems": 20, |
| 18162 | + "type": "array" |
| 18163 | + }, |
18140 | 18164 | "version": { |
18141 | 18165 | "description": "Current item version for optimistic locking. Must match the stored version.", |
18142 | 18166 | "format": "int64", |
|
28429 | 28453 | ], |
28430 | 28454 | "type": "object" |
28431 | 28455 | }, |
| 28456 | + "WorkItemAssignee": { |
| 28457 | + "description": "One assignee on a work item.", |
| 28458 | + "properties": { |
| 28459 | + "id": { |
| 28460 | + "description": "Member ID. Required when `type` is `person`. Omitted when `type` is `ai_sre`.", |
| 28461 | + "format": "int64", |
| 28462 | + "type": "integer" |
| 28463 | + }, |
| 28464 | + "type": { |
| 28465 | + "description": "Assignee kind: `person` (a member) or `ai_sre` (the account AI SRE).", |
| 28466 | + "enum": [ |
| 28467 | + "person", |
| 28468 | + "ai_sre" |
| 28469 | + ], |
| 28470 | + "type": "string" |
| 28471 | + } |
| 28472 | + }, |
| 28473 | + "required": [ |
| 28474 | + "type" |
| 28475 | + ], |
| 28476 | + "type": "object" |
| 28477 | + }, |
28432 | 28478 | "WorkItemCreateResult": { |
28433 | 28479 | "description": "Result of creating a work item.", |
28434 | 28480 | "properties": { |
@@ -28456,14 +28502,33 @@ |
28456 | 28502 | "WorkItemItem": { |
28457 | 28503 | "description": "A structured incident work item (action or post-mortem follow-up) with its assignees.", |
28458 | 28504 | "properties": { |
| 28505 | + "agent_session_id": { |
| 28506 | + "description": "ID of the AI SRE session executing this item. Omitted when no session is recorded.", |
| 28507 | + "type": "string" |
| 28508 | + }, |
| 28509 | + "agent_session_venue": { |
| 28510 | + "description": "Where that AI SRE session runs: `web` or `im`. Omitted when no session is recorded.", |
| 28511 | + "enum": [ |
| 28512 | + "web", |
| 28513 | + "im" |
| 28514 | + ], |
| 28515 | + "type": "string" |
| 28516 | + }, |
28459 | 28517 | "assignee_ids": { |
28460 | | - "description": "Member IDs of the current assignees. Never null; an empty array means unassigned.", |
| 28518 | + "description": "Member IDs of the current person assignees. AI SRE is not included. Never null; an empty array means no person assignee.", |
28461 | 28519 | "items": { |
28462 | 28520 | "format": "int64", |
28463 | 28521 | "type": "integer" |
28464 | 28522 | }, |
28465 | 28523 | "type": "array" |
28466 | 28524 | }, |
| 28525 | + "assignees": { |
| 28526 | + "description": "Current assignees. Each entry is `{type, id?}`. `type` is `person` or `ai_sre`; an `ai_sre` entry omits `id`. Never null; an empty array means unassigned. `assignee_ids` is the person-only subset of this list.", |
| 28527 | + "items": { |
| 28528 | + "$ref": "#/components/schemas/WorkItemAssignee" |
| 28529 | + }, |
| 28530 | + "type": "array" |
| 28531 | + }, |
28467 | 28532 | "converted_at_seconds": { |
28468 | 28533 | "description": "Conversion time as a Unix timestamp in seconds. Present only after conversion.", |
28469 | 28534 | "format": "int64", |
|
28563 | 28628 | "source_kind", |
28564 | 28629 | "version", |
28565 | 28630 | "assignee_ids", |
| 28631 | + "assignees", |
28566 | 28632 | "created_by", |
28567 | 28633 | "updated_by", |
28568 | 28634 | "created_at_seconds", |
|
40265 | 40331 | 4756301322131, |
40266 | 40332 | 5068740052131 |
40267 | 40333 | ], |
| 40334 | + "assignees": [ |
| 40335 | + { |
| 40336 | + "id": 3790925372131, |
| 40337 | + "type": "person" |
| 40338 | + }, |
| 40339 | + { |
| 40340 | + "id": 4756301322131, |
| 40341 | + "type": "person" |
| 40342 | + }, |
| 40343 | + { |
| 40344 | + "id": 5068740052131, |
| 40345 | + "type": "person" |
| 40346 | + } |
| 40347 | + ], |
40268 | 40348 | "created_at_seconds": 1785495329, |
40269 | 40349 | "created_by": 5329873302131, |
40270 | 40350 | "incident_id": "6a5f1e28807515413b384bce", |
|
40321 | 40401 | "On-call/Incidents" |
40322 | 40402 | ], |
40323 | 40403 | "x-mint": { |
40324 | | - "content": "## Restrictions\n\n| Aspect | Value |\n| ------ | ----- |\n| Rate limits | **1,000 requests/minute**; **50 requests/second** per account |\n| Permissions | **Incidents Manage** (`on-call`) |\n\n## Usage\n\n- Requires the On-call Pro license.\n- Full replacement of the assignee set — an empty array clears all assignees.\n- Only newly added assignees are notified; removals never notify.\n- Audited — changes are recorded in the audit log.", |
| 40404 | + "content": "## Restrictions\n\n| Aspect | Value |\n| ------ | ----- |\n| Rate limits | **1,000 requests/minute**; **50 requests/second** per account |\n| Permissions | **Incidents Manage** (`on-call`) |\n\n## Usage\n\n- Requires the On-call Pro license.\n- Full replacement of the assignee set — an empty array clears all assignees.\n- Set either `assignees` or the legacy `assignee_ids`, not both (sending both returns an error). An `ai_sre` entry omits `id`.\n- Only newly added assignees are notified; removals never notify.\n- Audited — changes are recorded in the audit log.", |
40325 | 40405 | "href": "/en/api-reference/on-call/incidents/incident-work-item-reset-assignees", |
40326 | 40406 | "metadata": { |
40327 | 40407 | "sidebarTitle": "Reset work item assignees" |
|
40361 | 40441 | 4756301322131, |
40362 | 40442 | 5068740052131 |
40363 | 40443 | ], |
| 40444 | + "assignees": [ |
| 40445 | + { |
| 40446 | + "id": 3790925372131, |
| 40447 | + "type": "person" |
| 40448 | + }, |
| 40449 | + { |
| 40450 | + "id": 4756301322131, |
| 40451 | + "type": "person" |
| 40452 | + }, |
| 40453 | + { |
| 40454 | + "id": 5068740052131, |
| 40455 | + "type": "person" |
| 40456 | + } |
| 40457 | + ], |
40364 | 40458 | "created_at_seconds": 1785495329, |
40365 | 40459 | "created_by": 5329873302131, |
40366 | 40460 | "incident_id": "6a5f1e28807515413b384bce", |
|
40454 | 40548 | 4756301322131, |
40455 | 40549 | 5068740052131 |
40456 | 40550 | ], |
| 40551 | + "assignees": [ |
| 40552 | + { |
| 40553 | + "id": 3790925372131, |
| 40554 | + "type": "person" |
| 40555 | + }, |
| 40556 | + { |
| 40557 | + "id": 4756301322131, |
| 40558 | + "type": "person" |
| 40559 | + }, |
| 40560 | + { |
| 40561 | + "id": 5068740052131, |
| 40562 | + "type": "person" |
| 40563 | + } |
| 40564 | + ], |
40457 | 40565 | "created_at_seconds": 1785495329, |
40458 | 40566 | "created_by": 5329873302131, |
40459 | 40567 | "incident_id": "6a5f1e28807515413b384bce", |
|
40554 | 40662 | "assignee_ids": [ |
40555 | 40663 | 3790925372131 |
40556 | 40664 | ], |
| 40665 | + "assignees": [ |
| 40666 | + { |
| 40667 | + "id": 3790925372131, |
| 40668 | + "type": "person" |
| 40669 | + } |
| 40670 | + ], |
40557 | 40671 | "created_at_seconds": 1785496400, |
40558 | 40672 | "created_by": 3790925372131, |
40559 | 40673 | "incident_id": "6a5f1e28807515413b384bce", |
|
40606 | 40720 | "On-call/Incidents" |
40607 | 40721 | ], |
40608 | 40722 | "x-mint": { |
40609 | | - "content": "## Restrictions\n\n| Aspect | Value |\n| ------ | ----- |\n| Rate limits | **1,000 requests/minute**; **50 requests/second** per account |\n| Permissions | **Incidents Manage** (`on-call`) |\n\n## Usage\n\n- Requires the On-call Pro license.\n- An `action` anchors to an active incident and must NOT set `post_mortem_id`; a `follow_up` REQUIRES the `post_mortem_id` of a post-mortem linked to `incident_id`.\n- Assignees must be active members who can already read the anchor incident or post-mortem — assignment never grants access.\n- Newly added assignees are notified.\n- Retrying with the same (`creator`, `idempotency_key`) replays the original item with `idempotent_replay: true` instead of creating a duplicate.\n- Audited — changes are recorded in the audit log.", |
| 40723 | + "content": "## Restrictions\n\n| Aspect | Value |\n| ------ | ----- |\n| Rate limits | **1,000 requests/minute**; **50 requests/second** per account |\n| Permissions | **Incidents Manage** (`on-call`) |\n\n## Usage\n\n- Requires the On-call Pro license.\n- An `action` anchors to an active incident and must NOT set `post_mortem_id`; a `follow_up` REQUIRES the `post_mortem_id` of a post-mortem linked to `incident_id`.\n- Set either `assignees` or the legacy `assignee_ids`, not both. `assignees` entries are `{type, id?}` with `type` `person` or `ai_sre`; an `ai_sre` entry omits `id`. `assignee_ids` is equivalent to an all-`person` list. Sending both returns an error.\n- Person assignees must be active members who can already read the anchor incident or post-mortem — assignment never grants access.\n- Newly added assignees are notified.\n- Retrying with the same (`creator`, `idempotency_key`) replays the original item with `idempotent_replay: true` instead of creating a duplicate.\n- Audited — changes are recorded in the audit log.", |
40610 | 40724 | "href": "/en/api-reference/on-call/incidents/incident-work-item-create", |
40611 | 40725 | "metadata": { |
40612 | 40726 | "sidebarTitle": "Create a work item" |
|
40717 | 40831 | 4756301322131, |
40718 | 40832 | 5068740052131 |
40719 | 40833 | ], |
| 40834 | + "assignees": [ |
| 40835 | + { |
| 40836 | + "id": 3790925372131, |
| 40837 | + "type": "person" |
| 40838 | + }, |
| 40839 | + { |
| 40840 | + "id": 4756301322131, |
| 40841 | + "type": "person" |
| 40842 | + }, |
| 40843 | + { |
| 40844 | + "id": 5068740052131, |
| 40845 | + "type": "person" |
| 40846 | + } |
| 40847 | + ], |
40720 | 40848 | "created_at_seconds": 1785495329, |
40721 | 40849 | "created_by": 5329873302131, |
40722 | 40850 | "incident_id": "6a5f1e28807515413b384bce", |
|
40734 | 40862 | "assignee_ids": [ |
40735 | 40863 | 5068740052131 |
40736 | 40864 | ], |
| 40865 | + "assignees": [ |
| 40866 | + { |
| 40867 | + "id": 5068740052131, |
| 40868 | + "type": "person" |
| 40869 | + } |
| 40870 | + ], |
40737 | 40871 | "created_at_seconds": 1785495164, |
40738 | 40872 | "created_by": 3790925372131, |
40739 | 40873 | "incident_id": "6a5f1e28807515413b384bce", |
|
40789 | 40923 | "On-call/Incidents" |
40790 | 40924 | ], |
40791 | 40925 | "x-mint": { |
40792 | | - "content": "## Restrictions\n\n| Aspect | Value |\n| ------ | ----- |\n| Rate limits | **1,000 requests/minute**; **50 requests/second** per account |\n| Permissions | **Incidents Read** (`on-call`) |\n\n## Usage\n\n- At least one of `incident_id`, `post_mortem_id`, or `assignee_id` is required.\n- Cursor pagination sorted by `updated_at_seconds` descending — pass the previous response's `next_cursor` as `cursor` until `has_more` is false.\n- Listing by `incident_id` also includes follow-ups anchored on the incident's post-mortem.\n- Listing by `assignee_id` alone requires being that assignee or an account admin.", |
| 40926 | + "content": "## Restrictions\n\n| Aspect | Value |\n| ------ | ----- |\n| Rate limits | **1,000 requests/minute**; **50 requests/second** per account |\n| Permissions | **Incidents Read** (`on-call`) |\n\n## Usage\n\n- At least one of `incident_id`, `post_mortem_id`, `assignee_id`, or `assignee_type` = `ai_sre` is required.\n- `assignee_type` = `ai_sre` lists items assigned to AI SRE and can be used on its own.\n- Cursor pagination sorted by `updated_at_seconds` descending — pass the previous response's `next_cursor` as `cursor` until `has_more` is false.\n- Listing by `incident_id` also includes follow-ups anchored on the incident's post-mortem.\n- Listing by `assignee_id` alone requires being that assignee or an account admin.", |
40793 | 40927 | "href": "/en/api-reference/on-call/incidents/incident-work-item-list", |
40794 | 40928 | "metadata": { |
40795 | 40929 | "sidebarTitle": "List work items" |
|
40830 | 40964 | 4756301322131, |
40831 | 40965 | 5068740052131 |
40832 | 40966 | ], |
| 40967 | + "assignees": [ |
| 40968 | + { |
| 40969 | + "id": 3790925372131, |
| 40970 | + "type": "person" |
| 40971 | + }, |
| 40972 | + { |
| 40973 | + "id": 4756301322131, |
| 40974 | + "type": "person" |
| 40975 | + }, |
| 40976 | + { |
| 40977 | + "id": 5068740052131, |
| 40978 | + "type": "person" |
| 40979 | + } |
| 40980 | + ], |
40833 | 40981 | "created_at_seconds": 1785495329, |
40834 | 40982 | "created_by": 5329873302131, |
40835 | 40983 | "incident_id": "6a5f1e28807515413b384bce", |
|
40847 | 40995 | "assignee_ids": [ |
40848 | 40996 | 5068740052131 |
40849 | 40997 | ], |
| 40998 | + "assignees": [ |
| 40999 | + { |
| 41000 | + "id": 5068740052131, |
| 41001 | + "type": "person" |
| 41002 | + } |
| 41003 | + ], |
40850 | 41004 | "created_at_seconds": 1785495164, |
40851 | 41005 | "created_by": 3790925372131, |
40852 | 41006 | "incident_id": "6a5f1e28807515413b384bce", |
|
40941 | 41095 | 4756301322131, |
40942 | 41096 | 5068740052131 |
40943 | 41097 | ], |
| 41098 | + "assignees": [ |
| 41099 | + { |
| 41100 | + "id": 3790925372131, |
| 41101 | + "type": "person" |
| 41102 | + }, |
| 41103 | + { |
| 41104 | + "id": 4756301322131, |
| 41105 | + "type": "person" |
| 41106 | + }, |
| 41107 | + { |
| 41108 | + "id": 5068740052131, |
| 41109 | + "type": "person" |
| 41110 | + } |
| 41111 | + ], |
40944 | 41112 | "created_at_seconds": 1785495329, |
40945 | 41113 | "created_by": 5329873302131, |
40946 | 41114 | "incident_id": "6a5f1e28807515413b384bce", |
|
0 commit comments