Skip to content

Commit bd897b7

Browse files
authored
feat: Sync with Seam API via 88dc959c434587537e9e56034eb045226e65dd33 (#2564)
1 parent 78c3ced commit bd897b7

File tree

2 files changed

+70
-5
lines changed

2 files changed

+70
-5
lines changed

src/lib/seam/connect/openapi.ts

Lines changed: 54 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38760,14 +38760,43 @@ export default {
3876038760
{
3876138761
in: 'query',
3876238762
name: 'action_attempt_ids',
38763-
required: true,
3876438763
schema: {
3876538764
description:
3876638765
'IDs of the action attempts that you want to retrieve.',
3876738766
items: { format: 'uuid', type: 'string' },
3876838767
type: 'array',
3876938768
},
3877038769
},
38770+
{
38771+
in: 'query',
38772+
name: 'device_id',
38773+
schema: {
38774+
description: 'ID of the device to filter action attempts by.',
38775+
format: 'uuid',
38776+
type: 'string',
38777+
},
38778+
},
38779+
{
38780+
in: 'query',
38781+
name: 'limit',
38782+
schema: {
38783+
default: 500,
38784+
description: 'Maximum number of records to return per page.',
38785+
exclusiveMinimum: true,
38786+
minimum: 0,
38787+
type: 'integer',
38788+
},
38789+
},
38790+
{
38791+
in: 'query',
38792+
name: 'page_cursor',
38793+
schema: {
38794+
description:
38795+
"Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
38796+
nullable: true,
38797+
type: 'string',
38798+
},
38799+
},
3877138800
],
3877238801
responses: {
3877338802
200: {
@@ -38780,8 +38809,9 @@ export default {
3878038809
type: 'array',
3878138810
},
3878238811
ok: { type: 'boolean' },
38812+
pagination: { $ref: '#/components/schemas/pagination' },
3878338813
},
38784-
required: ['action_attempts', 'ok'],
38814+
required: ['action_attempts', 'pagination', 'ok'],
3878538815
type: 'object',
3878638816
},
3878738817
},
@@ -38819,8 +38849,27 @@ export default {
3881938849
items: { format: 'uuid', type: 'string' },
3882038850
type: 'array',
3882138851
},
38852+
device_id: {
38853+
description:
38854+
'ID of the device to filter action attempts by.',
38855+
format: 'uuid',
38856+
type: 'string',
38857+
},
38858+
limit: {
38859+
default: 500,
38860+
description:
38861+
'Maximum number of records to return per page.',
38862+
exclusiveMinimum: true,
38863+
minimum: 0,
38864+
type: 'integer',
38865+
},
38866+
page_cursor: {
38867+
description:
38868+
"Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
38869+
nullable: true,
38870+
type: 'string',
38871+
},
3882238872
},
38823-
required: ['action_attempt_ids'],
3882438873
type: 'object',
3882538874
},
3882638875
},
@@ -38837,8 +38886,9 @@ export default {
3883738886
type: 'array',
3883838887
},
3883938888
ok: { type: 'boolean' },
38889+
pagination: { $ref: '#/components/schemas/pagination' },
3884038890
},
38841-
required: ['action_attempts', 'ok'],
38891+
required: ['action_attempts', 'pagination', 'ok'],
3884238892
type: 'object',
3884338893
},
3884438894
},

src/lib/seam/connect/route-types.ts

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28019,7 +28019,13 @@ export type Routes = {
2801928019
jsonBody: {}
2802028020
commonParams: {
2802128021
/** IDs of the action attempts that you want to retrieve. */
28022-
action_attempt_ids: string[]
28022+
action_attempt_ids?: string[] | undefined
28023+
/** ID of the device to filter action attempts by. */
28024+
device_id?: string | undefined
28025+
/** Maximum number of records to return per page. */
28026+
limit?: number
28027+
/** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
28028+
page_cursor?: ((string | undefined) | null) | undefined
2802328029
}
2802428030
formData: {}
2802528031
jsonResponse: {
@@ -29465,6 +29471,15 @@ export type Routes = {
2946529471
}
2946629472
}
2946729473
)[]
29474+
/** Information about the current page of results. */
29475+
pagination: {
29476+
/** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */
29477+
next_page_cursor: string | null
29478+
/** Indicates whether there is another page of results after this one. */
29479+
has_next_page: boolean
29480+
/** URL to get the next page of results. */
29481+
next_page_url: string | null
29482+
}
2946829483
}
2946929484
maxDuration: undefined
2947029485
}

0 commit comments

Comments
 (0)