Skip to content
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
7584a5b
wip
stephmilovic May 1, 2025
cebb4db
anon updates
stephmilovic May 1, 2025
6202850
chat complete examples
stephmilovic May 1, 2025
b66f58c
conversations
stephmilovic May 1, 2025
810b9f2
prompts
stephmilovic May 1, 2025
0d4cf90
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine May 1, 2025
b1f5584
fix required additions
stephmilovic May 1, 2025
cb34348
Merge branch 'doc_openapi_updates' of github.com:stephmilovic/kibana …
stephmilovic May 1, 2025
f763b32
Merge branch 'main' into doc_openapi_updates
elasticmachine May 1, 2025
344055c
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine May 1, 2025
7d12f94
fix incorrect required field
stephmilovic May 2, 2025
9e02e7c
Merge branch 'doc_openapi_updates' of github.com:stephmilovic/kibana …
stephmilovic May 2, 2025
d8a57aa
add kb schemas
stephmilovic May 2, 2025
18b1f21
update fieldnames to make more sense
stephmilovic May 2, 2025
72f6a6a
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine May 2, 2025
927882d
pr feedback
stephmilovic May 2, 2025
7f45ea3
Merge branch 'doc_openapi_updates' of github.com:stephmilovic/kibana …
stephmilovic May 2, 2025
bc76186
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine May 2, 2025
b67fcbd
Merge branch 'main' into doc_openapi_updates
elasticmachine May 5, 2025
6037de4
Merge branch 'main' into doc_openapi_updates
stephmilovic May 7, 2025
5d17ac4
fix timestamp examples
stephmilovic May 7, 2025
4137dd7
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine May 8, 2025
3c2cabb
consolidate definitions
stephmilovic May 8, 2025
976ff44
fix imports
stephmilovic May 8, 2025
5ab996a
Merge branch 'doc_openapi_updates' of github.com:stephmilovic/kibana …
stephmilovic May 8, 2025
54c5dfd
update properties
stephmilovic May 8, 2025
38cb046
[CI] Auto-commit changed files from 'yarn openapi:bundle'
kibanamachine May 8, 2025
5b61994
[CI] Auto-commit changed files from 'make api-docs'
kibanamachine May 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,056 changes: 922 additions & 134 deletions oas_docs/output/kibana.serverless.yaml

Large diffs are not rendered by default.

1,056 changes: 922 additions & 134 deletions oas_docs/output/kibana.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const ExecuteConnectorRequestBody = z.object({
langSmithApiKey: z.string().optional(),
screenContext: ScreenContext.optional(),
/**
* optional system prompt, will be appended to default system prompt. Different from conversation system prompt, which is retrieved on the server
* System prompt, will be appended to default system prompt. Different from conversation system prompt, which is retrieved on the server
*/
promptIds: PromptIds.optional(),
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ paths:
$ref: '../common_attributes.schema.yaml#/components/schemas/ScreenContext'
promptIds:
$ref: '../common_attributes.schema.yaml#/components/schemas/PromptIds'
description: optional system prompt, will be appended to default system prompt. Different from conversation system prompt, which is retrieved on the server
description: System prompt, will be appended to default system prompt. Different from conversation system prompt, which is retrieved on the server
responses:
'200':
description: Successful static response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

import { z } from '@kbn/zod';

import { NonEmptyString, User } from '../common_attributes.gen';
import { NonEmptyString, NonEmptyTimestamp, User } from '../common_attributes.gen';
import { Replacements } from '../conversations/common_attributes.gen';

export type AlertSummaryBulkActionSkipReason = z.infer<typeof AlertSummaryBulkActionSkipReason>;
Expand Down Expand Up @@ -47,7 +47,7 @@ export type AlertSummaryResponse = z.infer<typeof AlertSummaryResponse>;
export const AlertSummaryResponse = z.object({
id: NonEmptyString,
alertId: NonEmptyString,
timestamp: NonEmptyString.optional(),
timestamp: NonEmptyTimestamp.optional(),
summary: z.string(),
recommendedActions: z.string().optional(),
replacements: Replacements,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ components:
alertId:
$ref: '../common_attributes.schema.yaml#/components/schemas/NonEmptyString'
'timestamp':
$ref: '../common_attributes.schema.yaml#/components/schemas/NonEmptyString'
$ref: '../common_attributes.schema.yaml#/components/schemas/NonEmptyTimestamp'
summary:
type: string
recommendedActions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@

import { z } from '@kbn/zod';

import { NonEmptyString } from '../common_attributes.gen';
import { NonEmptyString, NonEmptyTimestamp } from '../common_attributes.gen';

/**
* Reason why the anonymization field was not modified
*/
export type AnonymizationFieldsBulkActionSkipReason = z.infer<
typeof AnonymizationFieldsBulkActionSkipReason
>;
Expand All @@ -29,35 +32,89 @@ export type AnonymizationFieldsBulkActionSkipResult = z.infer<
typeof AnonymizationFieldsBulkActionSkipResult
>;
export const AnonymizationFieldsBulkActionSkipResult = z.object({
/**
* The id of the anonymization field that was not modified
*/
id: z.string(),
/**
* Name of the anonymization field that was not modified
*/
name: z.string().optional(),
/**
* Reason why the anonymization field was not modified
*/
skip_reason: AnonymizationFieldsBulkActionSkipReason,
});

export type AnonymizationFieldDetailsInError = z.infer<typeof AnonymizationFieldDetailsInError>;
export const AnonymizationFieldDetailsInError = z.object({
/**
* The id of the anonymization field
*/
id: z.string(),
/**
* Name of the anonymization field
*/
name: z.string().optional(),
});

export type NormalizedAnonymizationFieldError = z.infer<typeof NormalizedAnonymizationFieldError>;
export const NormalizedAnonymizationFieldError = z.object({
/**
* Error message
*/
message: z.string(),
/**
* Status code of the response
*/
status_code: z.number().int(),
/**
* Error code
*/
err_code: z.string().optional(),
/**
* array of anonymization fields that caused the error
*/
anonymization_fields: z.array(AnonymizationFieldDetailsInError),
});

export type AnonymizationFieldResponse = z.infer<typeof AnonymizationFieldResponse>;
export const AnonymizationFieldResponse = z.object({
/**
* The id of the anonymization field
*/
id: NonEmptyString,
timestamp: NonEmptyString.optional(),
/**
* Timestamp of the field creation
*/
timestamp: NonEmptyTimestamp.optional(),
/**
* Field name
*/
field: z.string(),
/**
* Whether field is allowed to be sent to the model
*/
allowed: z.boolean().optional(),
/**
* Whether field is anonymized
*/
anonymized: z.boolean().optional(),
/**
* Timestamp of the last update
*/
updatedAt: z.string().optional(),
/**
* User who last updated the field
*/
updatedBy: z.string().optional(),
/**
* Timestamp of the creation
*/
createdAt: z.string().optional(),
/**
* User who created the field
*/
createdBy: z.string().optional(),
/**
* Kibana space
Expand Down Expand Up @@ -100,13 +157,7 @@ export const AnonymizationFieldsBulkCrudActionResponse = z.object({

export type BulkActionBase = z.infer<typeof BulkActionBase>;
export const BulkActionBase = z.object({
/**
* Query to filter anonymization fields
*/
query: z.string().optional(),
/**
* Array of anonymization fields IDs
*/
ids: z.array(z.string()).min(1).optional(),
});

Expand All @@ -128,8 +179,17 @@ export type PerformAnonymizationFieldsBulkActionRequestBody = z.infer<
typeof PerformAnonymizationFieldsBulkActionRequestBody
>;
export const PerformAnonymizationFieldsBulkActionRequestBody = z.object({
/**
* Object with query to filter anonymization fields and array of anonymization fields IDs
*/
delete: BulkActionBase.optional(),
/**
* Array of objects with anonymization fields to create
*/
create: z.array(AnonymizationFieldCreateProps).optional(),
/**
* Array of objects with anonymization fields to update
*/
update: z.array(AnonymizationFieldUpdateProps).optional(),
});
export type PerformAnonymizationFieldsBulkActionRequestBodyInput = z.input<
Expand Down
Loading