diff --git a/oas_docs/output/kibana.yaml b/oas_docs/output/kibana.yaml index ded28cf824436..7bc2c289c79a6 100644 --- a/oas_docs/output/kibana.yaml +++ b/oas_docs/output/kibana.yaml @@ -19529,6 +19529,7 @@ paths: - ml /api/note: delete: + description: Delete a note from a Timeline using the note ID. operationId: DeleteNote requestBody: content: @@ -19552,7 +19553,7 @@ paths: type: array required: - noteIds - description: The id of the note to delete. + description: The ID of the note to delete. required: true responses: '200': @@ -19564,11 +19565,11 @@ paths: data: type: object description: Indicates the note was successfully deleted. - summary: Deletes a note from a timeline. + summary: Delete a note tags: - Security Timeline API get: - description: Gets notes + description: Get all notes for a given document. operationId: GetNotes parameters: - in: query @@ -19627,10 +19628,11 @@ paths: - $ref: '#/components/schemas/Security_Timeline_API_GetNotesResult' - type: object description: Indicates the requested notes were returned. - summary: Get all notes for a given document. + summary: Get notes tags: - Security Timeline API patch: + description: Add a note to a Timeline or update an existing note. operationId: PersistNoteRoute requestBody: content: @@ -19660,7 +19662,7 @@ paths: type: string required: - note - description: The note to persist or update along with additional metadata. + description: The note to add or update, along with additional metadata. required: true responses: '200': @@ -19679,7 +19681,7 @@ paths: required: - data description: Indicates the note was successfully created. - summary: Persists a note to a timeline. + summary: Add or update a note tags: - Security Timeline API /api/osquery/live_queries: @@ -19990,6 +19992,7 @@ paths: - Security Osquery API /api/pinned_event: patch: + description: Pin an event to an existing Timeline. operationId: PersistPinnedEventRoute requestBody: content: @@ -20007,7 +20010,7 @@ paths: required: - eventId - timelineId - description: The pinned event to persist or update along with additional metadata. + description: The pinned event to add or update, along with additional metadata. required: true responses: '200': @@ -20025,8 +20028,8 @@ paths: - persistPinnedEventOnTimeline required: - data - description: Indicate the event was successfully pinned in the timeline. - summary: Persists a pinned event to a timeline. + description: Indicates the event was successfully pinned to the Timeline. + summary: Pin an event tags: - Security Timeline API /api/risk_score/engine/dangerously_delete_data: @@ -22406,6 +22409,7 @@ paths: - system /api/timeline: delete: + description: Delete one or more Timelines or Timeline templates. operationId: DeleteTimelines requestBody: content: @@ -22424,7 +22428,7 @@ paths: type: array required: - savedObjectIds - description: The ids of the timelines or timeline templates to delete. + description: The IDs of the Timelines or Timeline templates to delete. required: true responses: '200': @@ -22442,11 +22446,12 @@ paths: - deleteTimeline required: - data - description: Indicates the timeline was successfully deleted. - summary: Deletes one or more timelines or timeline templates. + description: Indicates the Timeline was successfully deleted. + summary: Delete Timelines or Timeline templates tags: - Security Timeline API get: + description: Get the details of an existing saved Timeline or Timeline template. operationId: GetTimeline parameters: - description: The ID of the template timeline to retrieve @@ -22454,7 +22459,7 @@ paths: name: template_timeline_id schema: type: string - - description: The ID of the timeline to retrieve + - description: The ID of the Timeline to retrieve. in: query name: id schema: @@ -22478,12 +22483,12 @@ paths: - data - additionalProperties: false type: object - description: Indicates that the (template) timeline was found and returned. - summary: Get an existing saved timeline or timeline template. This API is used to retrieve an existing saved timeline or timeline template. + description: Indicates that the (template) Timeline was found and returned. + summary: Get Timeline or Timeline template details tags: - Security Timeline API patch: - description: Updates an existing timeline. This API is used to update the title, description, date range, pinned events, pinned queries, and/or pinned saved queries of an existing timeline. + description: Update an existing Timeline. You can update the title, description, date range, pinned events, pinned queries, and/or pinned saved queries of an existing Timeline. operationId: PatchTimeline requestBody: content: @@ -22503,7 +22508,7 @@ paths: - timelineId - version - timeline - description: The timeline updates along with the timeline ID and version. + description: The Timeline updates, along with the Timeline ID and version. required: true responses: '200': @@ -22511,7 +22516,7 @@ paths: application/json; Elastic-Api-Version=2023-10-31: schema: $ref: '#/components/schemas/Security_Timeline_API_PersistTimelineResponse' - description: Indicates that the draft timeline was successfully created. In the event the user already has a draft timeline, the existing draft timeline is cleared and returned. + description: Indicates that the draft Timeline was successfully created. In the event the user already has a draft Timeline, the existing draft Timeline is cleared and returned. '405': content: application/json; Elastic-Api-Version=2023-10-31: @@ -22522,11 +22527,12 @@ paths: type: string statusCode: type: number - description: Indicates that the user does not have the required access to create a draft timeline. - summary: Updates an existing timeline. + description: Indicates that the user does not have the required access to create a draft Timeline. + summary: Update a Timeline tags: - Security Timeline API post: + description: Create a new Timeline or Timeline template. operationId: CreateTimelines requestBody: content: @@ -22556,7 +22562,7 @@ paths: type: string required: - timeline - description: The required timeline fields used to create a new timeline along with optional fields that will be created if not provided. + description: The required Timeline fields used to create a new Timeline, along with optional fields that will be created if not provided. required: true responses: '200': @@ -22564,7 +22570,7 @@ paths: application/json; Elastic-Api-Version=2023-10-31: schema: $ref: '#/components/schemas/Security_Timeline_API_PersistTimelineResponse' - description: Indicates the timeline was successfully created. + description: Indicates the Timeline was successfully created. '405': content: application/json; Elastic-Api-Version=2023-10-31: @@ -22575,8 +22581,8 @@ paths: type: string statusCode: type: number - description: Indicates that there was an error in the timeline creation. - summary: Creates a new timeline. + description: Indicates that there was an error in the Timeline creation. + summary: Create a Timeline or Timeline template tags: - Security Timeline API /api/timeline/_copy: @@ -22610,6 +22616,7 @@ paths: - Security Timeline API /api/timeline/_draft: get: + description: Get the details of the draft Timeline or Timeline template for the current user. If the user doesn't have a draft Timeline, an empty Timeline is returned. operationId: GetDraftTimelines parameters: - in: query @@ -22623,7 +22630,7 @@ paths: application/json; Elastic-Api-Version=2023-10-31: schema: $ref: '#/components/schemas/Security_Timeline_API_PersistTimelineResponse' - description: Indicates that the draft timeline was successfully retrieved. + description: Indicates that the draft Timeline was successfully retrieved. '403': content: application:json; Elastic-Api-Version=2023-10-31: @@ -22634,7 +22641,7 @@ paths: type: string status_code: type: number - description: If a draft timeline was not found and we attempted to create one, it indicates that the user does not have the required permissions to create a draft timeline. + description: If a draft Timeline was not found and we attempted to create one, it indicates that the user does not have the required permissions to create a draft Timeline. '409': content: application:json; Elastic-Api-Version=2023-10-31: @@ -22645,13 +22652,15 @@ paths: type: string status_code: type: number - description: This should never happen, but if a draft timeline was not found and we attempted to create one, it indicates that there is already a draft timeline with the given timelineId. - summary: Retrieves the draft timeline for the current user. If the user does not have a draft timeline, an empty timeline is returned. + description: This should never happen, but if a draft Timeline was not found and we attempted to create one, it indicates that there is already a draft Timeline with the given `timelineId`. + summary: Get draft Timeline or Timeline template details tags: - Security Timeline API post: description: | - Retrieves a clean draft timeline. If a draft timeline does not exist, it is created and returned. + Create a clean draft Timeline or Timeline template for the current user. + > info + > If the user already has a draft Timeline, the existing draft Timeline is cleared and returned. operationId: CleanDraftTimelines requestBody: content: @@ -22663,7 +22672,7 @@ paths: $ref: '#/components/schemas/Security_Timeline_API_TimelineType' required: - timelineType - description: The type of timeline to create. Valid values are `default` and `template`. + description: The type of Timeline to create. Valid values are `default` and `template`. required: true responses: '200': @@ -22671,7 +22680,7 @@ paths: application/json; Elastic-Api-Version=2023-10-31: schema: $ref: '#/components/schemas/Security_Timeline_API_PersistTimelineResponse' - description: Indicates that the draft timeline was successfully created. In the event the user already has a draft timeline, the existing draft timeline is cleared and returned. + description: Indicates that the draft Timeline was successfully created. In the event the user already has a draft Timeline, the existing draft Timeline is cleared and returned. '403': content: application:json; Elastic-Api-Version=2023-10-31: @@ -22682,7 +22691,7 @@ paths: type: string status_code: type: number - description: Indicates that the user does not have the required permissions to create a draft timeline. + description: Indicates that the user does not have the required permissions to create a draft Timeline. '409': content: application:json; Elastic-Api-Version=2023-10-31: @@ -22693,12 +22702,13 @@ paths: type: string status_code: type: number - description: Indicates that there is already a draft timeline with the given timelineId. - summary: Retrieves a draft timeline or timeline template. + description: Indicates that there is already a draft Timeline with the given `timelineId`. + summary: Create a clean draft Timeline or Timeline template tags: - Security Timeline API /api/timeline/_export: post: + description: Export Timelines as an NDJSON file. operationId: ExportTimelines parameters: - description: The name of the file to export @@ -22718,16 +22728,16 @@ paths: type: string nullable: true type: array - description: The ids of the timelines to export + description: The IDs of the Timelines to export. required: true responses: '200': content: application/ndjson; Elastic-Api-Version=2023-10-31: schema: - description: NDJSON of the exported timelines + description: NDJSON of the exported Timelines type: string - description: Indicates the timelines were successfully exported + description: Indicates the Timelines were successfully exported. '400': content: application/ndjson; Elastic-Api-Version=2023-10-31: @@ -22738,12 +22748,13 @@ paths: type: string statusCode: type: number - description: Indicates that the export size limit was exceeded - summary: Exports timelines as an NDJSON file + description: Indicates that the export size limit was exceeded. + summary: Export Timelines tags: - Security Timeline API /api/timeline/_favorite: patch: + description: Favorite a Timeline or Timeline template for the current user. operationId: PersistFavoriteRoute requestBody: content: @@ -22768,7 +22779,7 @@ paths: - templateTimelineId - templateTimelineVersion - timelineType - description: The required fields used to favorite a (template) timeline. + description: The required fields used to favorite a (template) Timeline. required: true responses: '200': @@ -22798,11 +22809,12 @@ paths: statusCode: type: number description: Indicates the user does not have the required permissions to persist the favorite status. - summary: Persists a given users favorite status of a timeline. + summary: Favorite a Timeline or Timeline template tags: - Security Timeline API /api/timeline/_import: post: + description: Import Timelines. operationId: ImportTimelines requestBody: content: @@ -22818,7 +22830,7 @@ paths: type: string required: - file - description: The timelines to import as a readable stream. + description: The Timelines to import as a readable stream. required: true responses: '200': @@ -22826,7 +22838,7 @@ paths: application/json; Elastic-Api-Version=2023-10-31: schema: $ref: '#/components/schemas/Security_Timeline_API_ImportTimelineResult' - description: Indicates the import of timelines was successful. + description: Indicates the import of Timelines was successful. '400': content: application/json; Elastic-Api-Version=2023-10-31: @@ -22839,7 +22851,7 @@ paths: type: string statusCode: type: number - description: Indicates the import of timelines was unsuccessful because of an invalid file extension. + description: Indicates the import of Timelines was unsuccessful because of an invalid file extension. '404': content: application/json; Elastic-Api-Version=2023-10-31: @@ -22863,12 +22875,13 @@ paths: type: string statusCode: type: number - description: Indicates the import of timelines was unsuccessful. - summary: Imports timelines. + description: Indicates the import of Timelines was unsuccessful. + summary: Import Timelines tags: - Security Timeline API /api/timeline/_prepackaged: post: + description: Install or update prepackaged Timelines. operationId: InstallPrepackedTimelines requestBody: content: @@ -22895,7 +22908,7 @@ paths: - timelinesToInstall - timelinesToUpdate - prepackagedTimelines - description: The timelines to install or update. + description: The Timelines to install or update. required: true responses: '200': @@ -22903,7 +22916,7 @@ paths: application/json; Elastic-Api-Version=2023-10-31: schema: $ref: '#/components/schemas/Security_Timeline_API_ImportTimelineResult' - description: Indicates the installation of prepackaged timelines was successful. + description: Indicates the installation of prepackaged Timelines was successful. '500': content: application:json; Elastic-Api-Version=2023-10-31: @@ -22914,8 +22927,8 @@ paths: type: string statusCode: type: number - description: Indicates the installation of prepackaged timelines was unsuccessful. - summary: Installs prepackaged timelines. + description: Indicates the installation of prepackaged Timelines was unsuccessful. + summary: Install prepackaged Timelines tags: - Security Timeline API /api/timeline/resolve: @@ -22946,16 +22959,17 @@ paths: - data - additionalProperties: false type: object - description: The (template) timeline has been found + description: The (template) Timeline has been found '400': description: The request is missing parameters '404': - description: The (template) timeline was not found - summary: Get an existing saved timeline or timeline template. + description: The (template) Timeline was not found + summary: Get an existing saved Timeline or Timeline template tags: - Security Timeline API /api/timelines: get: + description: Get a list of all saved Timelines or Timeline templates. operationId: GetTimelines parameters: - description: If true, only timelines that are marked as favorites by the user are returned. @@ -23029,7 +23043,7 @@ paths: required: - timeline - totalCount - description: Indicates that the (template) timelines were found and returned. + description: Indicates that the (template) Timelines were found and returned. '400': content: application:json; Elastic-Api-Version=2023-10-31: @@ -23041,7 +23055,7 @@ paths: statusCode: type: number description: Bad request. The user supplied invalid data. - summary: This API is used to retrieve a list of existing saved timelines or timeline templates. + summary: Get Timelines or Timeline templates tags: - Security Timeline API /s/{spaceId}/api/observability/slos: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/quickstart_client.gen.ts b/x-pack/solutions/security/plugins/security_solution/common/api/quickstart_client.gen.ts index 1d4d23db4c629..cc79243cd8c70 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/quickstart_client.gen.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/api/quickstart_client.gen.ts @@ -587,7 +587,9 @@ If asset criticality records already exist for the specified entities, those rec .catch(catchAxiosErrorFormatAndThrow); } /** - * Retrieves a clean draft timeline. If a draft timeline does not exist, it is created and returned. + * Create a clean draft Timeline or Timeline template for the current user. +> info +> If the user already has a draft Timeline, the existing draft Timeline is cleared and returned. */ async cleanDraftTimelines(props: CleanDraftTimelinesProps) { @@ -716,6 +718,9 @@ If a record already exists for the specified entity, that record is overwritten }) .catch(catchAxiosErrorFormatAndThrow); } + /** + * Create a new Timeline or Timeline template. + */ async createTimelines(props: CreateTimelinesProps) { this.log.info(`${new Date().toISOString()} Calling API CreateTimelines`); return this.kbnClient @@ -788,6 +793,9 @@ If a record already exists for the specified entity, that record is overwritten }) .catch(catchAxiosErrorFormatAndThrow); } + /** + * Delete a note from a Timeline using the note ID. + */ async deleteNote(props: DeleteNoteProps) { this.log.info(`${new Date().toISOString()} Calling API DeleteNote`); return this.kbnClient @@ -818,6 +826,9 @@ If a record already exists for the specified entity, that record is overwritten }) .catch(catchAxiosErrorFormatAndThrow); } + /** + * Delete one or more Timelines or Timeline templates. + */ async deleteTimelines(props: DeleteTimelinesProps) { this.log.info(`${new Date().toISOString()} Calling API DeleteTimelines`); return this.kbnClient @@ -1184,6 +1195,9 @@ If a record already exists for the specified entity, that record is overwritten }) .catch(catchAxiosErrorFormatAndThrow); } + /** + * Export Timelines as an NDJSON file. + */ async exportTimelines(props: ExportTimelinesProps) { this.log.info(`${new Date().toISOString()} Calling API ExportTimelines`); return this.kbnClient @@ -1309,6 +1323,9 @@ finalize it. }) .catch(catchAxiosErrorFormatAndThrow); } + /** + * Get the details of the draft Timeline or Timeline template for the current user. If the user doesn't have a draft Timeline, an empty Timeline is returned. + */ async getDraftTimelines(props: GetDraftTimelinesProps) { this.log.info(`${new Date().toISOString()} Calling API GetDraftTimelines`); return this.kbnClient @@ -1377,7 +1394,7 @@ finalize it. .catch(catchAxiosErrorFormatAndThrow); } /** - * Gets notes + * Get all notes for a given document. */ async getNotes(props: GetNotesProps) { this.log.info(`${new Date().toISOString()} Calling API GetNotes`); @@ -1577,6 +1594,9 @@ finalize it. }) .catch(catchAxiosErrorFormatAndThrow); } + /** + * Get the details of an existing saved Timeline or Timeline template. + */ async getTimeline(props: GetTimelineProps) { this.log.info(`${new Date().toISOString()} Calling API GetTimeline`); return this.kbnClient @@ -1591,6 +1611,9 @@ finalize it. }) .catch(catchAxiosErrorFormatAndThrow); } + /** + * Get a list of all saved Timelines or Timeline templates. + */ async getTimelines(props: GetTimelinesProps) { this.log.info(`${new Date().toISOString()} Calling API GetTimelines`); return this.kbnClient @@ -1639,6 +1662,9 @@ finalize it. }) .catch(catchAxiosErrorFormatAndThrow); } + /** + * Import Timelines. + */ async importTimelines(props: ImportTimelinesProps) { this.log.info(`${new Date().toISOString()} Calling API ImportTimelines`); return this.kbnClient @@ -1724,6 +1750,9 @@ finalize it. }) .catch(catchAxiosErrorFormatAndThrow); } + /** + * Install or update prepackaged Timelines. + */ async installPrepackedTimelines(props: InstallPrepackedTimelinesProps) { this.log.info(`${new Date().toISOString()} Calling API InstallPrepackedTimelines`); return this.kbnClient @@ -1814,7 +1843,7 @@ finalize it. .catch(catchAxiosErrorFormatAndThrow); } /** - * Updates an existing timeline. This API is used to update the title, description, date range, pinned events, pinned queries, and/or pinned saved queries of an existing timeline. + * Update an existing Timeline. You can update the title, description, date range, pinned events, pinned queries, and/or pinned saved queries of an existing Timeline. */ async patchTimeline(props: PatchTimelineProps) { this.log.info(`${new Date().toISOString()} Calling API PatchTimeline`); @@ -1846,6 +1875,9 @@ finalize it. }) .catch(catchAxiosErrorFormatAndThrow); } + /** + * Favorite a Timeline or Timeline template for the current user. + */ async persistFavoriteRoute(props: PersistFavoriteRouteProps) { this.log.info(`${new Date().toISOString()} Calling API PersistFavoriteRoute`); return this.kbnClient @@ -1859,6 +1891,9 @@ finalize it. }) .catch(catchAxiosErrorFormatAndThrow); } + /** + * Add a note to a Timeline or update an existing note. + */ async persistNoteRoute(props: PersistNoteRouteProps) { this.log.info(`${new Date().toISOString()} Calling API PersistNoteRoute`); return this.kbnClient @@ -1872,6 +1907,9 @@ finalize it. }) .catch(catchAxiosErrorFormatAndThrow); } + /** + * Pin an event to an existing Timeline. + */ async persistPinnedEventRoute(props: PersistPinnedEventRouteProps) { this.log.info(`${new Date().toISOString()} Calling API PersistPinnedEventRoute`); return this.kbnClient diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/clean_draft_timelines/clean_draft_timelines_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/clean_draft_timelines/clean_draft_timelines_route.schema.yaml index 7df51d4ff883d..7ff1e397c1d18 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/clean_draft_timelines/clean_draft_timelines_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/clean_draft_timelines/clean_draft_timelines_route.schema.yaml @@ -8,13 +8,15 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: CleanDraftTimelines - summary: Retrieves a draft timeline or timeline template. + summary: Create a clean draft Timeline or Timeline template description: | - Retrieves a clean draft timeline. If a draft timeline does not exist, it is created and returned. + Create a clean draft Timeline or Timeline template for the current user. + > info + > If the user already has a draft Timeline, the existing draft Timeline is cleared and returned. tags: - access:securitySolution requestBody: - description: The type of timeline to create. Valid values are `default` and `template`. + description: The type of Timeline to create. Valid values are `default` and `template`. required: true content: application/json: @@ -26,13 +28,13 @@ paths: $ref: '../model/components.schema.yaml#/components/schemas/TimelineType' responses: '200': - description: Indicates that the draft timeline was successfully created. In the event the user already has a draft timeline, the existing draft timeline is cleared and returned. + description: Indicates that the draft Timeline was successfully created. In the event the user already has a draft Timeline, the existing draft Timeline is cleared and returned. content: application/json: schema: $ref: '../model/components.schema.yaml#/components/schemas/PersistTimelineResponse' '403': - description: Indicates that the user does not have the required permissions to create a draft timeline. + description: Indicates that the user does not have the required permissions to create a draft Timeline. content: application:json: schema: @@ -43,7 +45,7 @@ paths: status_code: type: number '409': - description: Indicates that there is already a draft timeline with the given timelineId. + description: Indicates that there is already a draft Timeline with the given `timelineId`. content: application:json: schema: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/create_timelines/create_timelines_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/create_timelines/create_timelines_route.schema.yaml index 77296f11188e5..8f369fde6e9e9 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/create_timelines/create_timelines_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/create_timelines/create_timelines_route.schema.yaml @@ -11,11 +11,12 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: CreateTimelines - summary: Creates a new timeline. + summary: Create a Timeline or Timeline template + description: Create a new Timeline or Timeline template. tags: - access:securitySolution requestBody: - description: The required timeline fields used to create a new timeline along with optional fields that will be created if not provided. + description: The required Timeline fields used to create a new Timeline, along with optional fields that will be created if not provided. required: true content: application/json: @@ -45,13 +46,13 @@ paths: nullable: true responses: '200': - description: Indicates the timeline was successfully created. + description: Indicates the Timeline was successfully created. content: application/json: schema: $ref: '../model/components.schema.yaml#/components/schemas/PersistTimelineResponse' '405': - description: Indicates that there was an error in the timeline creation. + description: Indicates that there was an error in the Timeline creation. content: application/json: schema: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/delete_note/delete_note_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/delete_note/delete_note_route.schema.yaml index cf0dcf27fc309..e79cb9aab65ac 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/delete_note/delete_note_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/delete_note/delete_note_route.schema.yaml @@ -8,11 +8,12 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: DeleteNote - summary: Deletes a note from a timeline. + summary: Delete a note + description: Delete a note from a Timeline using the note ID. tags: - access:securitySolution requestBody: - description: The id of the note to delete. + description: The ID of the note to delete. required: true content: application/json: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/delete_timelines/delete_timelines_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/delete_timelines/delete_timelines_route.schema.yaml index 607503238eea1..bb6674fa65877 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/delete_timelines/delete_timelines_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/delete_timelines/delete_timelines_route.schema.yaml @@ -11,11 +11,12 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: DeleteTimelines - summary: Deletes one or more timelines or timeline templates. + summary: Delete Timelines or Timeline templates + description: Delete one or more Timelines or Timeline templates. tags: - access:securitySolution requestBody: - description: The ids of the timelines or timeline templates to delete. + description: The IDs of the Timelines or Timeline templates to delete. required: true content: application/json: @@ -34,7 +35,7 @@ paths: type: string responses: '200': - description: Indicates the timeline was successfully deleted. + description: Indicates the Timeline was successfully deleted. content: application/json: schema: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/export_timelines/export_timelines_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/export_timelines/export_timelines_route.schema.yaml index 64ada73260ed1..24387adf1f2a5 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/export_timelines/export_timelines_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/export_timelines/export_timelines_route.schema.yaml @@ -11,7 +11,8 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: ExportTimelines - summary: Exports timelines as an NDJSON file + summary: Export Timelines + description: Export Timelines as an NDJSON file. tags: - access:securitySolution parameters: @@ -22,7 +23,7 @@ paths: type: string description: The name of the file to export requestBody: - description: The ids of the timelines to export + description: The IDs of the Timelines to export. required: true content: application/json: @@ -36,14 +37,14 @@ paths: type: string responses: '200': - description: Indicates the timelines were successfully exported + description: Indicates the Timelines were successfully exported. content: application/ndjson: schema: type: string - description: NDJSON of the exported timelines + description: NDJSON of the exported Timelines '400': - description: Indicates that the export size limit was exceeded + description: Indicates that the export size limit was exceeded. content: application/ndjson: schema: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_draft_timelines/get_draft_timelines_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_draft_timelines/get_draft_timelines_route.schema.yaml index 79082e20b32da..4a8af1c77f40d 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_draft_timelines/get_draft_timelines_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_draft_timelines/get_draft_timelines_route.schema.yaml @@ -8,7 +8,8 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: GetDraftTimelines - summary: Retrieves the draft timeline for the current user. If the user does not have a draft timeline, an empty timeline is returned. + summary: Get draft Timeline or Timeline template details + description: Get the details of the draft Timeline or Timeline template for the current user. If the user doesn't have a draft Timeline, an empty Timeline is returned. tags: - access:securitySolution parameters: @@ -19,13 +20,13 @@ paths: $ref: '../model/components.schema.yaml#/components/schemas/TimelineType' responses: '200': - description: Indicates that the draft timeline was successfully retrieved. + description: Indicates that the draft Timeline was successfully retrieved. content: application/json: schema: $ref: '../model/components.schema.yaml#/components/schemas/PersistTimelineResponse' '403': - description: If a draft timeline was not found and we attempted to create one, it indicates that the user does not have the required permissions to create a draft timeline. + description: If a draft Timeline was not found and we attempted to create one, it indicates that the user does not have the required permissions to create a draft Timeline. content: application:json: schema: @@ -36,7 +37,7 @@ paths: status_code: type: number '409': - description: This should never happen, but if a draft timeline was not found and we attempted to create one, it indicates that there is already a draft timeline with the given timelineId. + description: This should never happen, but if a draft Timeline was not found and we attempted to create one, it indicates that there is already a draft Timeline with the given `timelineId`. content: application:json: schema: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_notes/get_notes_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_notes/get_notes_route.schema.yaml index 9f7436bc31162..e142126817707 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_notes/get_notes_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_notes/get_notes_route.schema.yaml @@ -8,8 +8,8 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: GetNotes - description: Gets notes - summary: Get all notes for a given document. + description: Get all notes for a given document. + summary: Get notes tags: - access:securitySolution parameters: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_timeline/get_timeline_route.gen.ts b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_timeline/get_timeline_route.gen.ts index fe64508c28c71..7a41788077524 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_timeline/get_timeline_route.gen.ts +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_timeline/get_timeline_route.gen.ts @@ -25,7 +25,7 @@ export const GetTimelineRequestQuery = z.object({ */ template_timeline_id: z.string().optional(), /** - * The ID of the timeline to retrieve + * The ID of the Timeline to retrieve. */ id: z.string().optional(), }); diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_timeline/get_timeline_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_timeline/get_timeline_route.schema.yaml index 1c288ff443b16..9b5d3fedfd59e 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_timeline/get_timeline_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_timeline/get_timeline_route.schema.yaml @@ -11,7 +11,8 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: GetTimeline - summary: Get an existing saved timeline or timeline template. This API is used to retrieve an existing saved timeline or timeline template. + summary: Get Timeline or Timeline template details + description: Get the details of an existing saved Timeline or Timeline template. tags: - access:securitySolution parameters: @@ -24,10 +25,10 @@ paths: name: id schema: type: string - description: The ID of the timeline to retrieve + description: The ID of the Timeline to retrieve. responses: '200': - description: Indicates that the (template) timeline was found and returned. + description: Indicates that the (template) Timeline was found and returned. content: application/json: schema: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_timelines/get_timelines_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_timelines/get_timelines_route.schema.yaml index e8fc107c8f7e0..36a7b853b3823 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_timelines/get_timelines_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/get_timelines/get_timelines_route.schema.yaml @@ -11,7 +11,8 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: GetTimelines - summary: This API is used to retrieve a list of existing saved timelines or timeline templates. + summary: Get Timelines or Timeline templates + description: Get a list of all saved Timelines or Timeline templates. tags: - access:securitySolution parameters: @@ -62,7 +63,7 @@ paths: nullable: true responses: '200': - description: Indicates that the (template) timelines were found and returned. + description: Indicates that the (template) Timelines were found and returned. content: application/json: schema: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/import_timelines/import_timelines_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/import_timelines/import_timelines_route.schema.yaml index 66dba9bb7e5f1..d0d2691f2ac7e 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/import_timelines/import_timelines_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/import_timelines/import_timelines_route.schema.yaml @@ -11,11 +11,12 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: ImportTimelines - summary: Imports timelines. + summary: Import Timelines + description: Import Timelines. tags: - access:securitySolution requestBody: - description: The timelines to import as a readable stream. + description: The Timelines to import as a readable stream. required: true content: application/json: @@ -31,14 +32,14 @@ paths: file: {} responses: '200': - description: Indicates the import of timelines was successful. + description: Indicates the import of Timelines was successful. content: application/json: schema: $ref: '../model/components.schema.yaml#/components/schemas/ImportTimelineResult' '400': - description: Indicates the import of timelines was unsuccessful because of an invalid file extension. + description: Indicates the import of Timelines was unsuccessful because of an invalid file extension. content: application/json: schema: @@ -63,7 +64,7 @@ paths: statusCode: type: number '409': - description: Indicates the import of timelines was unsuccessful. + description: Indicates the import of Timelines was unsuccessful. content: application/json: schema: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/install_prepackaged_timelines/install_prepackaged_timelines_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/install_prepackaged_timelines/install_prepackaged_timelines_route.schema.yaml index db6123b0168a2..876bf499e385b 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/install_prepackaged_timelines/install_prepackaged_timelines_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/install_prepackaged_timelines/install_prepackaged_timelines_route.schema.yaml @@ -8,11 +8,12 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: InstallPrepackedTimelines - summary: Installs prepackaged timelines. + summary: Install prepackaged Timelines + description: Install or update prepackaged Timelines. tags: - access:securitySolution requestBody: - description: The timelines to install or update. + description: The Timelines to install or update. required: true content: application/json: @@ -37,13 +38,13 @@ paths: nullable: true responses: '200': - description: Indicates the installation of prepackaged timelines was successful. + description: Indicates the installation of prepackaged Timelines was successful. content: application/json: schema: $ref: '../model/components.schema.yaml#/components/schemas/ImportTimelineResult' '500': - description: Indicates the installation of prepackaged timelines was unsuccessful. + description: Indicates the installation of prepackaged Timelines was unsuccessful. content: application:json: schema: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/patch_timelines/patch_timeline_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/patch_timelines/patch_timeline_route.schema.yaml index 3ac7e9b748ed7..6b1c05d32995c 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/patch_timelines/patch_timeline_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/patch_timelines/patch_timeline_route.schema.yaml @@ -8,12 +8,12 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: PatchTimeline - summary: Updates an existing timeline. - description: Updates an existing timeline. This API is used to update the title, description, date range, pinned events, pinned queries, and/or pinned saved queries of an existing timeline. + summary: Update a Timeline + description: Update an existing Timeline. You can update the title, description, date range, pinned events, pinned queries, and/or pinned saved queries of an existing Timeline. tags: - access:securitySolution requestBody: - description: The timeline updates along with the timeline ID and version. + description: The Timeline updates, along with the Timeline ID and version. required: true content: application/json: @@ -31,13 +31,13 @@ paths: $ref: '../model/components.schema.yaml#/components/schemas/SavedTimeline' responses: '200': - description: Indicates that the draft timeline was successfully created. In the event the user already has a draft timeline, the existing draft timeline is cleared and returned. + description: Indicates that the draft Timeline was successfully created. In the event the user already has a draft Timeline, the existing draft Timeline is cleared and returned. content: application/json: schema: $ref: '../model/components.schema.yaml#/components/schemas/PersistTimelineResponse' '405': - description: Indicates that the user does not have the required access to create a draft timeline. + description: Indicates that the user does not have the required access to create a draft Timeline. content: application/json: schema: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/persist_favorite/persist_favorite_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/persist_favorite/persist_favorite_route.schema.yaml index c041280fbdc15..3a57dd066d3b3 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/persist_favorite/persist_favorite_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/persist_favorite/persist_favorite_route.schema.yaml @@ -8,11 +8,12 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: PersistFavoriteRoute - summary: Persists a given users favorite status of a timeline. + summary: Favorite a Timeline or Timeline template + description: Favorite a Timeline or Timeline template for the current user. tags: - access:securitySolution requestBody: - description: The required fields used to favorite a (template) timeline. + description: The required fields used to favorite a (template) Timeline. required: true content: application/json: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/persist_note/persist_note_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/persist_note/persist_note_route.schema.yaml index d0129fe39fdab..640e75171c613 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/persist_note/persist_note_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/persist_note/persist_note_route.schema.yaml @@ -11,11 +11,12 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: PersistNoteRoute - summary: Persists a note to a timeline. + summary: Add or update a note + description: Add a note to a Timeline or update an existing note. tags: - access:securitySolution requestBody: - description: The note to persist or update along with additional metadata. + description: The note to add or update, along with additional metadata. required: true content: application/json: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/pinned_events/pinned_events_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/pinned_events/pinned_events_route.schema.yaml index 486b8b5bae390..3b697e957ad89 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/pinned_events/pinned_events_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/pinned_events/pinned_events_route.schema.yaml @@ -11,11 +11,12 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: PersistPinnedEventRoute - summary: Persists a pinned event to a timeline. + summary: Pin an event + description: Pin an event to an existing Timeline. tags: - access:securitySolution requestBody: - description: The pinned event to persist or update along with additional metadata. + description: The pinned event to add or update, along with additional metadata. required: true content: application/json: @@ -32,7 +33,7 @@ paths: type: string responses: '200': - description: Indicate the event was successfully pinned in the timeline. + description: Indicates the event was successfully pinned to the Timeline. content: application/json: schema: diff --git a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/resolve_timeline/resolve_timeline_route.schema.yaml b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/resolve_timeline/resolve_timeline_route.schema.yaml index 8c148be90e062..b06969e28cad4 100644 --- a/x-pack/solutions/security/plugins/security_solution/common/api/timeline/resolve_timeline/resolve_timeline_route.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/common/api/timeline/resolve_timeline/resolve_timeline_route.schema.yaml @@ -8,7 +8,7 @@ paths: x-labels: [serverless, ess] x-codegen-enabled: true operationId: ResolveTimeline - summary: Get an existing saved timeline or timeline template. + summary: Get an existing saved Timeline or Timeline template tags: - access:securitySolution parameters: @@ -24,7 +24,7 @@ paths: description: The ID of the timeline to resolve responses: '200': - description: The (template) timeline has been found + description: The (template) Timeline has been found content: application/json: schema: @@ -40,4 +40,4 @@ paths: '400': description: The request is missing parameters '404': - description: The (template) timeline was not found + description: The (template) Timeline was not found diff --git a/x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_timeline_api_2023_10_31.bundled.schema.yaml b/x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_timeline_api_2023_10_31.bundled.schema.yaml index e0cd03ae54039..c52521a993a29 100644 --- a/x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_timeline_api_2023_10_31.bundled.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/docs/openapi/ess/security_solution_timeline_api_2023_10_31.bundled.schema.yaml @@ -15,6 +15,7 @@ servers: paths: /api/note: delete: + description: Delete a note from a Timeline using the note ID. operationId: DeleteNote requestBody: content: @@ -38,7 +39,7 @@ paths: type: array required: - noteIds - description: The id of the note to delete. + description: The ID of the note to delete. required: true responses: '200': @@ -50,12 +51,12 @@ paths: data: type: object description: Indicates the note was successfully deleted. - summary: Deletes a note from a timeline. + summary: Delete a note tags: - Security Timeline API - 'access:securitySolution' get: - description: Gets notes + description: Get all notes for a given document. operationId: GetNotes parameters: - in: query @@ -114,11 +115,12 @@ paths: - $ref: '#/components/schemas/GetNotesResult' - type: object description: Indicates the requested notes were returned. - summary: Get all notes for a given document. + summary: Get notes tags: - Security Timeline API - 'access:securitySolution' patch: + description: Add a note to a Timeline or update an existing note. operationId: PersistNoteRoute requestBody: content: @@ -148,7 +150,7 @@ paths: type: string required: - note - description: The note to persist or update along with additional metadata. + description: 'The note to add or update, along with additional metadata.' required: true responses: '200': @@ -167,12 +169,13 @@ paths: required: - data description: Indicates the note was successfully created. - summary: Persists a note to a timeline. + summary: Add or update a note tags: - Security Timeline API - 'access:securitySolution' /api/pinned_event: patch: + description: Pin an event to an existing Timeline. operationId: PersistPinnedEventRoute requestBody: content: @@ -190,7 +193,7 @@ paths: required: - eventId - timelineId - description: The pinned event to persist or update along with additional metadata. + description: 'The pinned event to add or update, along with additional metadata.' required: true responses: '200': @@ -208,13 +211,14 @@ paths: - persistPinnedEventOnTimeline required: - data - description: Indicate the event was successfully pinned in the timeline. - summary: Persists a pinned event to a timeline. + description: Indicates the event was successfully pinned to the Timeline. + summary: Pin an event tags: - Security Timeline API - 'access:securitySolution' /api/timeline: delete: + description: Delete one or more Timelines or Timeline templates. operationId: DeleteTimelines requestBody: content: @@ -235,7 +239,7 @@ paths: type: array required: - savedObjectIds - description: The ids of the timelines or timeline templates to delete. + description: The IDs of the Timelines or Timeline templates to delete. required: true responses: '200': @@ -253,12 +257,13 @@ paths: - deleteTimeline required: - data - description: Indicates the timeline was successfully deleted. - summary: Deletes one or more timelines or timeline templates. + description: Indicates the Timeline was successfully deleted. + summary: Delete Timelines or Timeline templates tags: - Security Timeline API - 'access:securitySolution' get: + description: Get the details of an existing saved Timeline or Timeline template. operationId: GetTimeline parameters: - description: The ID of the template timeline to retrieve @@ -266,7 +271,7 @@ paths: name: template_timeline_id schema: type: string - - description: The ID of the timeline to retrieve + - description: The ID of the Timeline to retrieve. in: query name: id schema: @@ -290,18 +295,16 @@ paths: - data - additionalProperties: false type: object - description: Indicates that the (template) timeline was found and returned. - summary: >- - Get an existing saved timeline or timeline template. This API is used to - retrieve an existing saved timeline or timeline template. + description: Indicates that the (template) Timeline was found and returned. + summary: Get Timeline or Timeline template details tags: - Security Timeline API - 'access:securitySolution' patch: description: >- - Updates an existing timeline. This API is used to update the title, - description, date range, pinned events, pinned queries, and/or pinned - saved queries of an existing timeline. + Update an existing Timeline. You can update the title, description, date + range, pinned events, pinned queries, and/or pinned saved queries of an + existing Timeline. operationId: PatchTimeline requestBody: content: @@ -321,7 +324,7 @@ paths: - timelineId - version - timeline - description: The timeline updates along with the timeline ID and version. + description: 'The Timeline updates, along with the Timeline ID and version.' required: true responses: '200': @@ -330,9 +333,9 @@ paths: schema: $ref: '#/components/schemas/PersistTimelineResponse' description: >- - Indicates that the draft timeline was successfully created. In the - event the user already has a draft timeline, the existing draft - timeline is cleared and returned. + Indicates that the draft Timeline was successfully created. In the + event the user already has a draft Timeline, the existing draft + Timeline is cleared and returned. '405': content: application/json: @@ -345,12 +348,13 @@ paths: type: number description: >- Indicates that the user does not have the required access to create - a draft timeline. - summary: Updates an existing timeline. + a draft Timeline. + summary: Update a Timeline tags: - Security Timeline API - 'access:securitySolution' post: + description: Create a new Timeline or Timeline template. operationId: CreateTimelines requestBody: content: @@ -381,7 +385,7 @@ paths: required: - timeline description: >- - The required timeline fields used to create a new timeline along with + The required Timeline fields used to create a new Timeline, along with optional fields that will be created if not provided. required: true responses: @@ -390,7 +394,7 @@ paths: application/json: schema: $ref: '#/components/schemas/PersistTimelineResponse' - description: Indicates the timeline was successfully created. + description: Indicates the Timeline was successfully created. '405': content: application/json: @@ -401,8 +405,8 @@ paths: type: string statusCode: type: number - description: Indicates that there was an error in the timeline creation. - summary: Creates a new timeline. + description: Indicates that there was an error in the Timeline creation. + summary: Create a Timeline or Timeline template tags: - Security Timeline API - 'access:securitySolution' @@ -438,6 +442,10 @@ paths: - 'access:securitySolution' /api/timeline/_draft: get: + description: >- + Get the details of the draft Timeline or Timeline template for the + current user. If the user doesn't have a draft Timeline, an empty + Timeline is returned. operationId: GetDraftTimelines parameters: - in: query @@ -451,7 +459,7 @@ paths: application/json: schema: $ref: '#/components/schemas/PersistTimelineResponse' - description: Indicates that the draft timeline was successfully retrieved. + description: Indicates that the draft Timeline was successfully retrieved. '403': content: 'application:json': @@ -463,9 +471,9 @@ paths: status_code: type: number description: >- - If a draft timeline was not found and we attempted to create one, it + If a draft Timeline was not found and we attempted to create one, it indicates that the user does not have the required permissions to - create a draft timeline. + create a draft Timeline. '409': content: 'application:json': @@ -477,19 +485,21 @@ paths: status_code: type: number description: >- - This should never happen, but if a draft timeline was not found and + This should never happen, but if a draft Timeline was not found and we attempted to create one, it indicates that there is already a - draft timeline with the given timelineId. - summary: >- - Retrieves the draft timeline for the current user. If the user does not - have a draft timeline, an empty timeline is returned. + draft Timeline with the given `timelineId`. + summary: Get draft Timeline or Timeline template details tags: - Security Timeline API - 'access:securitySolution' post: description: > - Retrieves a clean draft timeline. If a draft timeline does not exist, it - is created and returned. + Create a clean draft Timeline or Timeline template for the current user. + + > info + + > If the user already has a draft Timeline, the existing draft Timeline + is cleared and returned. operationId: CleanDraftTimelines requestBody: content: @@ -502,7 +512,7 @@ paths: required: - timelineType description: >- - The type of timeline to create. Valid values are `default` and + The type of Timeline to create. Valid values are `default` and `template`. required: true responses: @@ -512,9 +522,9 @@ paths: schema: $ref: '#/components/schemas/PersistTimelineResponse' description: >- - Indicates that the draft timeline was successfully created. In the - event the user already has a draft timeline, the existing draft - timeline is cleared and returned. + Indicates that the draft Timeline was successfully created. In the + event the user already has a draft Timeline, the existing draft + Timeline is cleared and returned. '403': content: 'application:json': @@ -527,7 +537,7 @@ paths: type: number description: >- Indicates that the user does not have the required permissions to - create a draft timeline. + create a draft Timeline. '409': content: 'application:json': @@ -539,14 +549,15 @@ paths: status_code: type: number description: >- - Indicates that there is already a draft timeline with the given - timelineId. - summary: Retrieves a draft timeline or timeline template. + Indicates that there is already a draft Timeline with the given + `timelineId`. + summary: Create a clean draft Timeline or Timeline template tags: - Security Timeline API - 'access:securitySolution' /api/timeline/_export: post: + description: Export Timelines as an NDJSON file. operationId: ExportTimelines parameters: - description: The name of the file to export @@ -566,16 +577,16 @@ paths: type: string nullable: true type: array - description: The ids of the timelines to export + description: The IDs of the Timelines to export. required: true responses: '200': content: application/ndjson: schema: - description: NDJSON of the exported timelines + description: NDJSON of the exported Timelines type: string - description: Indicates the timelines were successfully exported + description: Indicates the Timelines were successfully exported. '400': content: application/ndjson: @@ -586,13 +597,14 @@ paths: type: string statusCode: type: number - description: Indicates that the export size limit was exceeded - summary: Exports timelines as an NDJSON file + description: Indicates that the export size limit was exceeded. + summary: Export Timelines tags: - Security Timeline API - 'access:securitySolution' /api/timeline/_favorite: patch: + description: Favorite a Timeline or Timeline template for the current user. operationId: PersistFavoriteRoute requestBody: content: @@ -617,7 +629,7 @@ paths: - templateTimelineId - templateTimelineVersion - timelineType - description: The required fields used to favorite a (template) timeline. + description: The required fields used to favorite a (template) Timeline. required: true responses: '200': @@ -649,12 +661,13 @@ paths: description: >- Indicates the user does not have the required permissions to persist the favorite status. - summary: Persists a given users favorite status of a timeline. + summary: Favorite a Timeline or Timeline template tags: - Security Timeline API - 'access:securitySolution' /api/timeline/_import: post: + description: Import Timelines. operationId: ImportTimelines requestBody: content: @@ -670,7 +683,7 @@ paths: type: string required: - file - description: The timelines to import as a readable stream. + description: The Timelines to import as a readable stream. required: true responses: '200': @@ -678,7 +691,7 @@ paths: application/json: schema: $ref: '#/components/schemas/ImportTimelineResult' - description: Indicates the import of timelines was successful. + description: Indicates the import of Timelines was successful. '400': content: application/json: @@ -692,7 +705,7 @@ paths: statusCode: type: number description: >- - Indicates the import of timelines was unsuccessful because of an + Indicates the import of Timelines was unsuccessful because of an invalid file extension. '404': content: @@ -719,13 +732,14 @@ paths: type: string statusCode: type: number - description: Indicates the import of timelines was unsuccessful. - summary: Imports timelines. + description: Indicates the import of Timelines was unsuccessful. + summary: Import Timelines tags: - Security Timeline API - 'access:securitySolution' /api/timeline/_prepackaged: post: + description: Install or update prepackaged Timelines. operationId: InstallPrepackedTimelines requestBody: content: @@ -752,7 +766,7 @@ paths: - timelinesToInstall - timelinesToUpdate - prepackagedTimelines - description: The timelines to install or update. + description: The Timelines to install or update. required: true responses: '200': @@ -760,7 +774,7 @@ paths: application/json: schema: $ref: '#/components/schemas/ImportTimelineResult' - description: Indicates the installation of prepackaged timelines was successful. + description: Indicates the installation of prepackaged Timelines was successful. '500': content: 'application:json': @@ -772,9 +786,9 @@ paths: statusCode: type: number description: >- - Indicates the installation of prepackaged timelines was + Indicates the installation of prepackaged Timelines was unsuccessful. - summary: Installs prepackaged timelines. + summary: Install prepackaged Timelines tags: - Security Timeline API - 'access:securitySolution' @@ -806,17 +820,18 @@ paths: - data - additionalProperties: false type: object - description: The (template) timeline has been found + description: The (template) Timeline has been found '400': description: The request is missing parameters '404': - description: The (template) timeline was not found - summary: Get an existing saved timeline or timeline template. + description: The (template) Timeline was not found + summary: Get an existing saved Timeline or Timeline template tags: - Security Timeline API - 'access:securitySolution' /api/timelines: get: + description: Get a list of all saved Timelines or Timeline templates. operationId: GetTimelines parameters: - description: >- @@ -892,7 +907,7 @@ paths: required: - timeline - totalCount - description: Indicates that the (template) timelines were found and returned. + description: Indicates that the (template) Timelines were found and returned. '400': content: 'application:json': @@ -904,9 +919,7 @@ paths: statusCode: type: number description: Bad request. The user supplied invalid data. - summary: >- - This API is used to retrieve a list of existing saved timelines or - timeline templates. + summary: Get Timelines or Timeline templates tags: - Security Timeline API - 'access:securitySolution' diff --git a/x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_timeline_api_2023_10_31.bundled.schema.yaml b/x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_timeline_api_2023_10_31.bundled.schema.yaml index 49c3ff4644f83..d038860941242 100644 --- a/x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_timeline_api_2023_10_31.bundled.schema.yaml +++ b/x-pack/solutions/security/plugins/security_solution/docs/openapi/serverless/security_solution_timeline_api_2023_10_31.bundled.schema.yaml @@ -15,6 +15,7 @@ servers: paths: /api/note: delete: + description: Delete a note from a Timeline using the note ID. operationId: DeleteNote requestBody: content: @@ -38,7 +39,7 @@ paths: type: array required: - noteIds - description: The id of the note to delete. + description: The ID of the note to delete. required: true responses: '200': @@ -50,12 +51,12 @@ paths: data: type: object description: Indicates the note was successfully deleted. - summary: Deletes a note from a timeline. + summary: Delete a note tags: - Security Timeline API - 'access:securitySolution' get: - description: Gets notes + description: Get all notes for a given document. operationId: GetNotes parameters: - in: query @@ -114,11 +115,12 @@ paths: - $ref: '#/components/schemas/GetNotesResult' - type: object description: Indicates the requested notes were returned. - summary: Get all notes for a given document. + summary: Get notes tags: - Security Timeline API - 'access:securitySolution' patch: + description: Add a note to a Timeline or update an existing note. operationId: PersistNoteRoute requestBody: content: @@ -148,7 +150,7 @@ paths: type: string required: - note - description: The note to persist or update along with additional metadata. + description: 'The note to add or update, along with additional metadata.' required: true responses: '200': @@ -167,12 +169,13 @@ paths: required: - data description: Indicates the note was successfully created. - summary: Persists a note to a timeline. + summary: Add or update a note tags: - Security Timeline API - 'access:securitySolution' /api/pinned_event: patch: + description: Pin an event to an existing Timeline. operationId: PersistPinnedEventRoute requestBody: content: @@ -190,7 +193,7 @@ paths: required: - eventId - timelineId - description: The pinned event to persist or update along with additional metadata. + description: 'The pinned event to add or update, along with additional metadata.' required: true responses: '200': @@ -208,13 +211,14 @@ paths: - persistPinnedEventOnTimeline required: - data - description: Indicate the event was successfully pinned in the timeline. - summary: Persists a pinned event to a timeline. + description: Indicates the event was successfully pinned to the Timeline. + summary: Pin an event tags: - Security Timeline API - 'access:securitySolution' /api/timeline: delete: + description: Delete one or more Timelines or Timeline templates. operationId: DeleteTimelines requestBody: content: @@ -235,7 +239,7 @@ paths: type: array required: - savedObjectIds - description: The ids of the timelines or timeline templates to delete. + description: The IDs of the Timelines or Timeline templates to delete. required: true responses: '200': @@ -253,12 +257,13 @@ paths: - deleteTimeline required: - data - description: Indicates the timeline was successfully deleted. - summary: Deletes one or more timelines or timeline templates. + description: Indicates the Timeline was successfully deleted. + summary: Delete Timelines or Timeline templates tags: - Security Timeline API - 'access:securitySolution' get: + description: Get the details of an existing saved Timeline or Timeline template. operationId: GetTimeline parameters: - description: The ID of the template timeline to retrieve @@ -266,7 +271,7 @@ paths: name: template_timeline_id schema: type: string - - description: The ID of the timeline to retrieve + - description: The ID of the Timeline to retrieve. in: query name: id schema: @@ -290,18 +295,16 @@ paths: - data - additionalProperties: false type: object - description: Indicates that the (template) timeline was found and returned. - summary: >- - Get an existing saved timeline or timeline template. This API is used to - retrieve an existing saved timeline or timeline template. + description: Indicates that the (template) Timeline was found and returned. + summary: Get Timeline or Timeline template details tags: - Security Timeline API - 'access:securitySolution' patch: description: >- - Updates an existing timeline. This API is used to update the title, - description, date range, pinned events, pinned queries, and/or pinned - saved queries of an existing timeline. + Update an existing Timeline. You can update the title, description, date + range, pinned events, pinned queries, and/or pinned saved queries of an + existing Timeline. operationId: PatchTimeline requestBody: content: @@ -321,7 +324,7 @@ paths: - timelineId - version - timeline - description: The timeline updates along with the timeline ID and version. + description: 'The Timeline updates, along with the Timeline ID and version.' required: true responses: '200': @@ -330,9 +333,9 @@ paths: schema: $ref: '#/components/schemas/PersistTimelineResponse' description: >- - Indicates that the draft timeline was successfully created. In the - event the user already has a draft timeline, the existing draft - timeline is cleared and returned. + Indicates that the draft Timeline was successfully created. In the + event the user already has a draft Timeline, the existing draft + Timeline is cleared and returned. '405': content: application/json: @@ -345,12 +348,13 @@ paths: type: number description: >- Indicates that the user does not have the required access to create - a draft timeline. - summary: Updates an existing timeline. + a draft Timeline. + summary: Update a Timeline tags: - Security Timeline API - 'access:securitySolution' post: + description: Create a new Timeline or Timeline template. operationId: CreateTimelines requestBody: content: @@ -381,7 +385,7 @@ paths: required: - timeline description: >- - The required timeline fields used to create a new timeline along with + The required Timeline fields used to create a new Timeline, along with optional fields that will be created if not provided. required: true responses: @@ -390,7 +394,7 @@ paths: application/json: schema: $ref: '#/components/schemas/PersistTimelineResponse' - description: Indicates the timeline was successfully created. + description: Indicates the Timeline was successfully created. '405': content: application/json: @@ -401,8 +405,8 @@ paths: type: string statusCode: type: number - description: Indicates that there was an error in the timeline creation. - summary: Creates a new timeline. + description: Indicates that there was an error in the Timeline creation. + summary: Create a Timeline or Timeline template tags: - Security Timeline API - 'access:securitySolution' @@ -438,6 +442,10 @@ paths: - 'access:securitySolution' /api/timeline/_draft: get: + description: >- + Get the details of the draft Timeline or Timeline template for the + current user. If the user doesn't have a draft Timeline, an empty + Timeline is returned. operationId: GetDraftTimelines parameters: - in: query @@ -451,7 +459,7 @@ paths: application/json: schema: $ref: '#/components/schemas/PersistTimelineResponse' - description: Indicates that the draft timeline was successfully retrieved. + description: Indicates that the draft Timeline was successfully retrieved. '403': content: 'application:json': @@ -463,9 +471,9 @@ paths: status_code: type: number description: >- - If a draft timeline was not found and we attempted to create one, it + If a draft Timeline was not found and we attempted to create one, it indicates that the user does not have the required permissions to - create a draft timeline. + create a draft Timeline. '409': content: 'application:json': @@ -477,19 +485,21 @@ paths: status_code: type: number description: >- - This should never happen, but if a draft timeline was not found and + This should never happen, but if a draft Timeline was not found and we attempted to create one, it indicates that there is already a - draft timeline with the given timelineId. - summary: >- - Retrieves the draft timeline for the current user. If the user does not - have a draft timeline, an empty timeline is returned. + draft Timeline with the given `timelineId`. + summary: Get draft Timeline or Timeline template details tags: - Security Timeline API - 'access:securitySolution' post: description: > - Retrieves a clean draft timeline. If a draft timeline does not exist, it - is created and returned. + Create a clean draft Timeline or Timeline template for the current user. + + > info + + > If the user already has a draft Timeline, the existing draft Timeline + is cleared and returned. operationId: CleanDraftTimelines requestBody: content: @@ -502,7 +512,7 @@ paths: required: - timelineType description: >- - The type of timeline to create. Valid values are `default` and + The type of Timeline to create. Valid values are `default` and `template`. required: true responses: @@ -512,9 +522,9 @@ paths: schema: $ref: '#/components/schemas/PersistTimelineResponse' description: >- - Indicates that the draft timeline was successfully created. In the - event the user already has a draft timeline, the existing draft - timeline is cleared and returned. + Indicates that the draft Timeline was successfully created. In the + event the user already has a draft Timeline, the existing draft + Timeline is cleared and returned. '403': content: 'application:json': @@ -527,7 +537,7 @@ paths: type: number description: >- Indicates that the user does not have the required permissions to - create a draft timeline. + create a draft Timeline. '409': content: 'application:json': @@ -539,14 +549,15 @@ paths: status_code: type: number description: >- - Indicates that there is already a draft timeline with the given - timelineId. - summary: Retrieves a draft timeline or timeline template. + Indicates that there is already a draft Timeline with the given + `timelineId`. + summary: Create a clean draft Timeline or Timeline template tags: - Security Timeline API - 'access:securitySolution' /api/timeline/_export: post: + description: Export Timelines as an NDJSON file. operationId: ExportTimelines parameters: - description: The name of the file to export @@ -566,16 +577,16 @@ paths: type: string nullable: true type: array - description: The ids of the timelines to export + description: The IDs of the Timelines to export. required: true responses: '200': content: application/ndjson: schema: - description: NDJSON of the exported timelines + description: NDJSON of the exported Timelines type: string - description: Indicates the timelines were successfully exported + description: Indicates the Timelines were successfully exported. '400': content: application/ndjson: @@ -586,13 +597,14 @@ paths: type: string statusCode: type: number - description: Indicates that the export size limit was exceeded - summary: Exports timelines as an NDJSON file + description: Indicates that the export size limit was exceeded. + summary: Export Timelines tags: - Security Timeline API - 'access:securitySolution' /api/timeline/_favorite: patch: + description: Favorite a Timeline or Timeline template for the current user. operationId: PersistFavoriteRoute requestBody: content: @@ -617,7 +629,7 @@ paths: - templateTimelineId - templateTimelineVersion - timelineType - description: The required fields used to favorite a (template) timeline. + description: The required fields used to favorite a (template) Timeline. required: true responses: '200': @@ -649,12 +661,13 @@ paths: description: >- Indicates the user does not have the required permissions to persist the favorite status. - summary: Persists a given users favorite status of a timeline. + summary: Favorite a Timeline or Timeline template tags: - Security Timeline API - 'access:securitySolution' /api/timeline/_import: post: + description: Import Timelines. operationId: ImportTimelines requestBody: content: @@ -670,7 +683,7 @@ paths: type: string required: - file - description: The timelines to import as a readable stream. + description: The Timelines to import as a readable stream. required: true responses: '200': @@ -678,7 +691,7 @@ paths: application/json: schema: $ref: '#/components/schemas/ImportTimelineResult' - description: Indicates the import of timelines was successful. + description: Indicates the import of Timelines was successful. '400': content: application/json: @@ -692,7 +705,7 @@ paths: statusCode: type: number description: >- - Indicates the import of timelines was unsuccessful because of an + Indicates the import of Timelines was unsuccessful because of an invalid file extension. '404': content: @@ -719,13 +732,14 @@ paths: type: string statusCode: type: number - description: Indicates the import of timelines was unsuccessful. - summary: Imports timelines. + description: Indicates the import of Timelines was unsuccessful. + summary: Import Timelines tags: - Security Timeline API - 'access:securitySolution' /api/timeline/_prepackaged: post: + description: Install or update prepackaged Timelines. operationId: InstallPrepackedTimelines requestBody: content: @@ -752,7 +766,7 @@ paths: - timelinesToInstall - timelinesToUpdate - prepackagedTimelines - description: The timelines to install or update. + description: The Timelines to install or update. required: true responses: '200': @@ -760,7 +774,7 @@ paths: application/json: schema: $ref: '#/components/schemas/ImportTimelineResult' - description: Indicates the installation of prepackaged timelines was successful. + description: Indicates the installation of prepackaged Timelines was successful. '500': content: 'application:json': @@ -772,9 +786,9 @@ paths: statusCode: type: number description: >- - Indicates the installation of prepackaged timelines was + Indicates the installation of prepackaged Timelines was unsuccessful. - summary: Installs prepackaged timelines. + summary: Install prepackaged Timelines tags: - Security Timeline API - 'access:securitySolution' @@ -806,17 +820,18 @@ paths: - data - additionalProperties: false type: object - description: The (template) timeline has been found + description: The (template) Timeline has been found '400': description: The request is missing parameters '404': - description: The (template) timeline was not found - summary: Get an existing saved timeline or timeline template. + description: The (template) Timeline was not found + summary: Get an existing saved Timeline or Timeline template tags: - Security Timeline API - 'access:securitySolution' /api/timelines: get: + description: Get a list of all saved Timelines or Timeline templates. operationId: GetTimelines parameters: - description: >- @@ -892,7 +907,7 @@ paths: required: - timeline - totalCount - description: Indicates that the (template) timelines were found and returned. + description: Indicates that the (template) Timelines were found and returned. '400': content: 'application:json': @@ -904,9 +919,7 @@ paths: statusCode: type: number description: Bad request. The user supplied invalid data. - summary: >- - This API is used to retrieve a list of existing saved timelines or - timeline templates. + summary: Get Timelines or Timeline templates tags: - Security Timeline API - 'access:securitySolution' diff --git a/x-pack/test/api_integration/services/security_solution_api.gen.ts b/x-pack/test/api_integration/services/security_solution_api.gen.ts index aad0de671b88c..2cadff4728781 100644 --- a/x-pack/test/api_integration/services/security_solution_api.gen.ts +++ b/x-pack/test/api_integration/services/security_solution_api.gen.ts @@ -294,7 +294,9 @@ If asset criticality records already exist for the specified entities, those rec .send(props.body as object); }, /** - * Retrieves a clean draft timeline. If a draft timeline does not exist, it is created and returned. + * Create a clean draft Timeline or Timeline template for the current user. +> info +> If the user already has a draft Timeline, the existing draft Timeline is cleared and returned. */ cleanDraftTimelines(props: CleanDraftTimelinesProps, kibanaSpace: string = 'default') { @@ -391,6 +393,9 @@ If a record already exists for the specified entity, that record is overwritten .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana') .send(props.body as object); }, + /** + * Create a new Timeline or Timeline template. + */ createTimelines(props: CreateTimelinesProps, kibanaSpace: string = 'default') { return supertest .post(routeWithNamespace('/api/timeline', kibanaSpace)) @@ -452,6 +457,9 @@ If a record already exists for the specified entity, that record is overwritten .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana') .query(props.query); }, + /** + * Delete a note from a Timeline using the note ID. + */ deleteNote(props: DeleteNoteProps, kibanaSpace: string = 'default') { return supertest .delete(routeWithNamespace('/api/note', kibanaSpace)) @@ -471,6 +479,9 @@ If a record already exists for the specified entity, that record is overwritten .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana') .query(props.query); }, + /** + * Delete one or more Timelines or Timeline templates. + */ deleteTimelines(props: DeleteTimelinesProps, kibanaSpace: string = 'default') { return supertest .delete(routeWithNamespace('/api/timeline', kibanaSpace)) @@ -753,6 +764,9 @@ If a record already exists for the specified entity, that record is overwritten .send(props.body as object) .query(props.query); }, + /** + * Export Timelines as an NDJSON file. + */ exportTimelines(props: ExportTimelinesProps, kibanaSpace: string = 'default') { return supertest .post(routeWithNamespace('/api/timeline/_export', kibanaSpace)) @@ -840,6 +854,9 @@ finalize it. .set(ELASTIC_HTTP_VERSION_HEADER, '1') .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana'); }, + /** + * Get the details of the draft Timeline or Timeline template for the current user. If the user doesn't have a draft Timeline, an empty Timeline is returned. + */ getDraftTimelines(props: GetDraftTimelinesProps, kibanaSpace: string = 'default') { return supertest .get(routeWithNamespace('/api/timeline/_draft', kibanaSpace)) @@ -890,7 +907,7 @@ finalize it. .query(props.query); }, /** - * Gets notes + * Get all notes for a given document. */ getNotes(props: GetNotesProps, kibanaSpace: string = 'default') { return supertest @@ -1081,6 +1098,9 @@ finalize it. .set(ELASTIC_HTTP_VERSION_HEADER, '1') .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana'); }, + /** + * Get the details of an existing saved Timeline or Timeline template. + */ getTimeline(props: GetTimelineProps, kibanaSpace: string = 'default') { return supertest .get(routeWithNamespace('/api/timeline', kibanaSpace)) @@ -1089,6 +1109,9 @@ finalize it. .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana') .query(props.query); }, + /** + * Get a list of all saved Timelines or Timeline templates. + */ getTimelines(props: GetTimelinesProps, kibanaSpace: string = 'default') { return supertest .get(routeWithNamespace('/api/timelines', kibanaSpace)) @@ -1119,6 +1142,9 @@ finalize it. .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana') .query(props.query); }, + /** + * Import Timelines. + */ importTimelines(props: ImportTimelinesProps, kibanaSpace: string = 'default') { return supertest .post(routeWithNamespace('/api/timeline/_import', kibanaSpace)) @@ -1184,6 +1210,9 @@ finalize it. .set(ELASTIC_HTTP_VERSION_HEADER, '2023-10-31') .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana'); }, + /** + * Install or update prepackaged Timelines. + */ installPrepackedTimelines( props: InstallPrepackedTimelinesProps, kibanaSpace: string = 'default' @@ -1253,7 +1282,7 @@ finalize it. .send(props.body as object); }, /** - * Updates an existing timeline. This API is used to update the title, description, date range, pinned events, pinned queries, and/or pinned saved queries of an existing timeline. + * Update an existing Timeline. You can update the title, description, date range, pinned events, pinned queries, and/or pinned saved queries of an existing Timeline. */ patchTimeline(props: PatchTimelineProps, kibanaSpace: string = 'default') { return supertest @@ -1275,6 +1304,9 @@ finalize it. .send(props.body as object) .query(props.query); }, + /** + * Favorite a Timeline or Timeline template for the current user. + */ persistFavoriteRoute(props: PersistFavoriteRouteProps, kibanaSpace: string = 'default') { return supertest .patch(routeWithNamespace('/api/timeline/_favorite', kibanaSpace)) @@ -1283,6 +1315,9 @@ finalize it. .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana') .send(props.body as object); }, + /** + * Add a note to a Timeline or update an existing note. + */ persistNoteRoute(props: PersistNoteRouteProps, kibanaSpace: string = 'default') { return supertest .patch(routeWithNamespace('/api/note', kibanaSpace)) @@ -1291,6 +1326,9 @@ finalize it. .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana') .send(props.body as object); }, + /** + * Pin an event to an existing Timeline. + */ persistPinnedEventRoute(props: PersistPinnedEventRouteProps, kibanaSpace: string = 'default') { return supertest .patch(routeWithNamespace('/api/pinned_event', kibanaSpace))