Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
230 changes: 226 additions & 4 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57301,8 +57301,9 @@ export default {
schema: {
default: 50,
description:
'Maximum number of timeline entry groups to return per page.',
'Maximum number of timeline entry groups to return per page. Maximum 100.',
exclusiveMinimum: true,
maximum: 100,
minimum: 0,
type: 'integer',
},
Expand All @@ -57318,6 +57319,58 @@ export default {
type: 'string',
},
},
{
in: 'query',
name: 'created_after',
required: false,
schema: {
description:
'Timestamp by which to limit returned timeline entries. Returns entries created after this timestamp.',
format: 'date-time',
type: 'string',
},
},
{
in: 'query',
name: 'created_between',
required: false,
schema: {
description:
'Time range to filter timeline entries. Returns entries created between the two timestamps [start, end].',
},
},
{
in: 'query',
name: 'entry_types',
required: false,
schema: {
description:
'Filter timeline entries by entry type. If not specified, all entry types are returned.',
items: {
enum: [
'resource_created',
'resource_updated',
'resource_deleted',
'event',
'provider_call',
'automation_run',
],
type: 'string',
},
type: 'array',
},
},
{
in: 'query',
name: 'context_type',
required: false,
schema: {
description:
"Filter timeline entries by context type. 'request' for API requests, 'job' for background jobs.",
enum: ['request', 'job'],
type: 'string',
},
},
{
in: 'query',
name: 'page_cursor',
Expand All @@ -57336,7 +57389,45 @@ export default {
schema: {
properties: {
ok: { type: 'boolean' },
pagination: { $ref: '#/components/schemas/pagination' },
pagination: {
description:
'Information about the current page of results.',
properties: {
has_next_page: {
description:
'Indicates whether there is another page of results after this one.',
type: 'boolean',
},
next_page_cursor: {
description:
'Opaque value that can be used to select the next page of results via the `page_cursor` parameter.',
nullable: true,
type: 'string',
},
next_page_url: {
description: 'URL to get the next page of results.',
format: 'uri',
nullable: true,
type: 'string',
},
page_size: {
description: 'Number of items per page',
type: 'integer',
},
total_count: {
description: 'Total number of timeline entry groups',
type: 'integer',
},
},
required: [
'next_page_cursor',
'has_next_page',
'next_page_url',
'total_count',
'page_size',
],
type: 'object',
},
timeline: {
properties: {
groups: {
Expand Down Expand Up @@ -57488,6 +57579,36 @@ export default {
],
type: 'object',
},
{
properties: {
duration_ms: {
format: 'float',
type: 'number',
},
entry_type: {
enum: ['automation_run'],
type: 'string',
},
error_message: { type: 'string' },
rule_name: { type: 'string' },
skip_reason: { type: 'string' },
status: {
enum: [
'started',
'completed',
'failed',
'skipped',
],
type: 'string',
},
},
required: [
'entry_type',
'rule_name',
'status',
],
type: 'object',
},
],
},
created_at: { type: 'string' },
Expand Down Expand Up @@ -57553,17 +57674,50 @@ export default {
'application/json': {
schema: {
properties: {
context_type: {
description:
"Filter timeline entries by context type. 'request' for API requests, 'job' for background jobs.",
enum: ['request', 'job'],
type: 'string',
},
created_after: {
description:
'Timestamp by which to limit returned timeline entries. Returns entries created after this timestamp.',
format: 'date-time',
type: 'string',
},
created_before: {
description:
'Timestamp by which to limit returned timeline entries. Returns entries created before this timestamp.',
format: 'date-time',
type: 'string',
},
created_between: {
description:
'Time range to filter timeline entries. Returns entries created between the two timestamps [start, end].',
},
entry_types: {
description:
'Filter timeline entries by entry type. If not specified, all entry types are returned.',
items: {
enum: [
'resource_created',
'resource_updated',
'resource_deleted',
'event',
'provider_call',
'automation_run',
],
type: 'string',
},
type: 'array',
},
limit: {
default: 50,
description:
'Maximum number of timeline entry groups to return per page.',
'Maximum number of timeline entry groups to return per page. Maximum 100.',
exclusiveMinimum: true,
maximum: 100,
minimum: 0,
type: 'integer',
},
Expand Down Expand Up @@ -57591,7 +57745,45 @@ export default {
schema: {
properties: {
ok: { type: 'boolean' },
pagination: { $ref: '#/components/schemas/pagination' },
pagination: {
description:
'Information about the current page of results.',
properties: {
has_next_page: {
description:
'Indicates whether there is another page of results after this one.',
type: 'boolean',
},
next_page_cursor: {
description:
'Opaque value that can be used to select the next page of results via the `page_cursor` parameter.',
nullable: true,
type: 'string',
},
next_page_url: {
description: 'URL to get the next page of results.',
format: 'uri',
nullable: true,
type: 'string',
},
page_size: {
description: 'Number of items per page',
type: 'integer',
},
total_count: {
description: 'Total number of timeline entry groups',
type: 'integer',
},
},
required: [
'next_page_cursor',
'has_next_page',
'next_page_url',
'total_count',
'page_size',
],
type: 'object',
},
timeline: {
properties: {
groups: {
Expand Down Expand Up @@ -57743,6 +57935,36 @@ export default {
],
type: 'object',
},
{
properties: {
duration_ms: {
format: 'float',
type: 'number',
},
entry_type: {
enum: ['automation_run'],
type: 'string',
},
error_message: { type: 'string' },
rule_name: { type: 'string' },
skip_reason: { type: 'string' },
status: {
enum: [
'started',
'completed',
'failed',
'skipped',
],
type: 'string',
},
},
required: [
'entry_type',
'rule_name',
'status',
],
type: 'object',
},
],
},
created_at: { type: 'string' },
Expand Down
31 changes: 30 additions & 1 deletion src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65495,10 +65495,27 @@ export type Routes = {
commonParams: {
/** ID of the resource to get timelines for. */
resource_id: string
/** Maximum number of timeline entry groups to return per page. */
/** Maximum number of timeline entry groups to return per page. Maximum 100. */
limit?: number
/** Timestamp by which to limit returned timeline entries. Returns entries created before this timestamp. */
created_before?: Date | undefined
/** Timestamp by which to limit returned timeline entries. Returns entries created after this timestamp. */
created_after?: Date | undefined
/** Time range to filter timeline entries. Returns entries created between the two timestamps [start, end]. */
created_between?: [Date, Date] | undefined
/** Filter timeline entries by entry type. If not specified, all entry types are returned. */
entry_types?:
| (
| 'resource_created'
| 'resource_updated'
| 'resource_deleted'
| 'event'
| 'provider_call'
| 'automation_run'
)[]
| undefined
/** Filter timeline entries by context type. 'request' for API requests, 'job' for background jobs. */
context_type?: ('request' | 'job') | undefined
/** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
page_cursor?: string | undefined
}
Expand Down Expand Up @@ -65562,6 +65579,14 @@ export type Routes = {
}
| undefined
}
| {
entry_type: 'automation_run'
rule_name: string
status: 'started' | 'completed' | 'failed' | 'skipped'
skip_reason?: string | undefined
error_message?: string | undefined
duration_ms?: number | undefined
}
created_at: string
}[]
created_at: string
Expand All @@ -65575,6 +65600,10 @@ export type Routes = {
has_next_page: boolean
/** URL to get the next page of results. */
next_page_url: string | null
/** Total number of timeline entry groups */
total_count: number
/** Number of items per page */
page_size: number
}
}
maxDuration: undefined
Expand Down