@seamapi/types 1.318.1 → 1.320.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/connect.cjs +65 -68
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +143 -88
- package/lib/seam/connect/models/acs/acs-credential.d.ts +14 -0
- package/lib/seam/connect/models/acs/acs-credential.js +1 -1
- package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +45 -8
- package/lib/seam/connect/models/connected-accounts/connected-account.js +17 -3
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +96 -79
- package/lib/seam/connect/openapi.js +47 -59
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +13 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-credential.ts +1 -1
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +23 -3
- package/src/lib/seam/connect/openapi.ts +49 -59
- package/src/lib/seam/connect/route-types.ts +34 -13
|
@@ -10184,7 +10184,7 @@ export interface Routes {
|
|
|
10184
10184
|
};
|
|
10185
10185
|
'/client_sessions/get_or_create': {
|
|
10186
10186
|
route: '/client_sessions/get_or_create';
|
|
10187
|
-
method: 'POST'
|
|
10187
|
+
method: 'POST';
|
|
10188
10188
|
queryParams: {};
|
|
10189
10189
|
jsonBody: {
|
|
10190
10190
|
user_identifier_key?: string | undefined;
|
|
@@ -10454,6 +10454,10 @@ export interface Routes {
|
|
|
10454
10454
|
warnings: Array<{
|
|
10455
10455
|
message: string;
|
|
10456
10456
|
warning_code: string;
|
|
10457
|
+
} | {
|
|
10458
|
+
message: string;
|
|
10459
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
10460
|
+
warning_code: 'unknown_issue_with_connected_account';
|
|
10457
10461
|
}>;
|
|
10458
10462
|
custom_metadata: Record<string, string | boolean>;
|
|
10459
10463
|
automatically_manage_new_devices: boolean;
|
|
@@ -10493,6 +10497,10 @@ export interface Routes {
|
|
|
10493
10497
|
warnings: Array<{
|
|
10494
10498
|
message: string;
|
|
10495
10499
|
warning_code: string;
|
|
10500
|
+
} | {
|
|
10501
|
+
message: string;
|
|
10502
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
10503
|
+
warning_code: 'unknown_issue_with_connected_account';
|
|
10496
10504
|
}>;
|
|
10497
10505
|
custom_metadata: Record<string, string | boolean>;
|
|
10498
10506
|
automatically_manage_new_devices: boolean;
|
|
@@ -10531,6 +10539,10 @@ export interface Routes {
|
|
|
10531
10539
|
warnings: Array<{
|
|
10532
10540
|
message: string;
|
|
10533
10541
|
warning_code: string;
|
|
10542
|
+
} | {
|
|
10543
|
+
message: string;
|
|
10544
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
10545
|
+
warning_code: 'unknown_issue_with_connected_account';
|
|
10534
10546
|
}>;
|
|
10535
10547
|
custom_metadata: Record<string, string | boolean>;
|
|
10536
10548
|
automatically_manage_new_devices: boolean;
|
package/package.json
CHANGED
|
@@ -70,7 +70,7 @@ const being_deleted = common_acs_credential_warning
|
|
|
70
70
|
})
|
|
71
71
|
.describe('Indicates that this credential is being deleted.')
|
|
72
72
|
|
|
73
|
-
const unknown_issue_with_credential = common_acs_credential_warning
|
|
73
|
+
export const unknown_issue_with_credential = common_acs_credential_warning
|
|
74
74
|
.extend({
|
|
75
75
|
warning_code: z
|
|
76
76
|
.literal('unknown_issue_with_credential')
|
|
@@ -7,6 +7,9 @@ const common_connected_account_error = z.object({
|
|
|
7
7
|
is_connected_account_error: z.literal(true),
|
|
8
8
|
})
|
|
9
9
|
|
|
10
|
+
const warning_code_description =
|
|
11
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.'
|
|
12
|
+
|
|
10
13
|
const common_connected_account_warning = z.object({
|
|
11
14
|
message: z.string(),
|
|
12
15
|
})
|
|
@@ -17,9 +20,26 @@ export const connected_account_error = common_connected_account_error.extend({
|
|
|
17
20
|
|
|
18
21
|
export type ConnectedAccountError = z.infer<typeof connected_account_error>
|
|
19
22
|
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
export const unknown_issue_with_connected_account =
|
|
24
|
+
common_connected_account_warning
|
|
25
|
+
.extend({
|
|
26
|
+
warning_code: z
|
|
27
|
+
.literal('unknown_issue_with_connected_account')
|
|
28
|
+
.describe(warning_code_description),
|
|
29
|
+
})
|
|
30
|
+
.describe(
|
|
31
|
+
'An unknown issue occurred while syncing the state of this connected account with the provider. ' +
|
|
32
|
+
'This issue may affect the proper functioning of one or more resources in this account.',
|
|
33
|
+
)
|
|
34
|
+
|
|
35
|
+
const connected_account_warning = z
|
|
36
|
+
.union([
|
|
37
|
+
common_connected_account_warning.extend({
|
|
38
|
+
warning_code: z.string(),
|
|
39
|
+
}),
|
|
40
|
+
unknown_issue_with_connected_account,
|
|
41
|
+
])
|
|
42
|
+
.describe('Warning associated with the `connected_account`.')
|
|
23
43
|
|
|
24
44
|
export type ConnectedAccountWarning = z.infer<typeof connected_account_warning>
|
|
25
45
|
|
|
@@ -4220,12 +4220,32 @@ export default {
|
|
|
4220
4220
|
},
|
|
4221
4221
|
warnings: {
|
|
4222
4222
|
items: {
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4223
|
+
description: 'Warning associated with the `connected_account`.',
|
|
4224
|
+
oneOf: [
|
|
4225
|
+
{
|
|
4226
|
+
properties: {
|
|
4227
|
+
message: { type: 'string' },
|
|
4228
|
+
warning_code: { type: 'string' },
|
|
4229
|
+
},
|
|
4230
|
+
required: ['message', 'warning_code'],
|
|
4231
|
+
type: 'object',
|
|
4232
|
+
},
|
|
4233
|
+
{
|
|
4234
|
+
description:
|
|
4235
|
+
'An unknown issue occurred while syncing the state of this connected account with the provider. This issue may affect the proper functioning of one or more resources in this account.',
|
|
4236
|
+
properties: {
|
|
4237
|
+
message: { type: 'string' },
|
|
4238
|
+
warning_code: {
|
|
4239
|
+
description:
|
|
4240
|
+
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
4241
|
+
enum: ['unknown_issue_with_connected_account'],
|
|
4242
|
+
type: 'string',
|
|
4243
|
+
},
|
|
4244
|
+
},
|
|
4245
|
+
required: ['message', 'warning_code'],
|
|
4246
|
+
type: 'object',
|
|
4247
|
+
},
|
|
4248
|
+
],
|
|
4229
4249
|
},
|
|
4230
4250
|
type: 'array',
|
|
4231
4251
|
},
|
|
@@ -10700,6 +10720,11 @@ export default {
|
|
|
10700
10720
|
scheme: 'bearer',
|
|
10701
10721
|
type: 'http',
|
|
10702
10722
|
},
|
|
10723
|
+
publishable_key: {
|
|
10724
|
+
in: 'header',
|
|
10725
|
+
name: 'seam-publishable-key',
|
|
10726
|
+
type: 'apiKey',
|
|
10727
|
+
},
|
|
10703
10728
|
seam_client_session_token: {
|
|
10704
10729
|
in: 'header',
|
|
10705
10730
|
name: 'seam-client-session-token',
|
|
@@ -17169,6 +17194,12 @@ export default {
|
|
|
17169
17194
|
400: { description: 'Bad Request' },
|
|
17170
17195
|
401: { description: 'Unauthorized' },
|
|
17171
17196
|
},
|
|
17197
|
+
security: [
|
|
17198
|
+
{ publishable_key: [] },
|
|
17199
|
+
{ api_key: [] },
|
|
17200
|
+
{ pat_with_workspace: [] },
|
|
17201
|
+
{ console_session_with_workspace: [] },
|
|
17202
|
+
],
|
|
17172
17203
|
summary: '/client_sessions/create',
|
|
17173
17204
|
tags: ['/client_sessions'],
|
|
17174
17205
|
'x-fern-sdk-group-name': ['client_sessions'],
|
|
@@ -17224,6 +17255,12 @@ export default {
|
|
|
17224
17255
|
400: { description: 'Bad Request' },
|
|
17225
17256
|
401: { description: 'Unauthorized' },
|
|
17226
17257
|
},
|
|
17258
|
+
security: [
|
|
17259
|
+
{ publishable_key: [] },
|
|
17260
|
+
{ api_key: [] },
|
|
17261
|
+
{ pat_with_workspace: [] },
|
|
17262
|
+
{ console_session_with_workspace: [] },
|
|
17263
|
+
],
|
|
17227
17264
|
summary: '/client_sessions/create',
|
|
17228
17265
|
tags: ['/client_sessions'],
|
|
17229
17266
|
'x-fern-ignore': true,
|
|
@@ -17374,6 +17411,12 @@ export default {
|
|
|
17374
17411
|
400: { description: 'Bad Request' },
|
|
17375
17412
|
401: { description: 'Unauthorized' },
|
|
17376
17413
|
},
|
|
17414
|
+
security: [
|
|
17415
|
+
{ publishable_key: [] },
|
|
17416
|
+
{ api_key: [] },
|
|
17417
|
+
{ pat_with_workspace: [] },
|
|
17418
|
+
{ console_session_with_workspace: [] },
|
|
17419
|
+
],
|
|
17377
17420
|
summary: '/client_sessions/get_or_create',
|
|
17378
17421
|
tags: ['/client_sessions'],
|
|
17379
17422
|
'x-fern-sdk-group-name': ['client_sessions'],
|
|
@@ -17381,59 +17424,6 @@ export default {
|
|
|
17381
17424
|
'x-fern-sdk-return-value': 'client_session',
|
|
17382
17425
|
'x-response-key': 'client_session',
|
|
17383
17426
|
},
|
|
17384
|
-
put: {
|
|
17385
|
-
operationId: 'clientSessionsGetOrCreatePut',
|
|
17386
|
-
requestBody: {
|
|
17387
|
-
content: {
|
|
17388
|
-
'application/json': {
|
|
17389
|
-
schema: {
|
|
17390
|
-
properties: {
|
|
17391
|
-
connect_webview_ids: {
|
|
17392
|
-
items: { type: 'string' },
|
|
17393
|
-
type: 'array',
|
|
17394
|
-
},
|
|
17395
|
-
connected_account_ids: {
|
|
17396
|
-
items: { type: 'string' },
|
|
17397
|
-
type: 'array',
|
|
17398
|
-
},
|
|
17399
|
-
expires_at: { format: 'date-time', type: 'string' },
|
|
17400
|
-
user_identifier_key: { minLength: 1, type: 'string' },
|
|
17401
|
-
user_identity_ids: {
|
|
17402
|
-
items: { type: 'string' },
|
|
17403
|
-
type: 'array',
|
|
17404
|
-
},
|
|
17405
|
-
},
|
|
17406
|
-
type: 'object',
|
|
17407
|
-
},
|
|
17408
|
-
},
|
|
17409
|
-
},
|
|
17410
|
-
},
|
|
17411
|
-
responses: {
|
|
17412
|
-
200: {
|
|
17413
|
-
content: {
|
|
17414
|
-
'application/json': {
|
|
17415
|
-
schema: {
|
|
17416
|
-
properties: {
|
|
17417
|
-
client_session: {
|
|
17418
|
-
$ref: '#/components/schemas/client_session',
|
|
17419
|
-
},
|
|
17420
|
-
ok: { type: 'boolean' },
|
|
17421
|
-
},
|
|
17422
|
-
required: ['client_session', 'ok'],
|
|
17423
|
-
type: 'object',
|
|
17424
|
-
},
|
|
17425
|
-
},
|
|
17426
|
-
},
|
|
17427
|
-
description: 'OK',
|
|
17428
|
-
},
|
|
17429
|
-
400: { description: 'Bad Request' },
|
|
17430
|
-
401: { description: 'Unauthorized' },
|
|
17431
|
-
},
|
|
17432
|
-
summary: '/client_sessions/get_or_create',
|
|
17433
|
-
tags: ['/client_sessions'],
|
|
17434
|
-
'x-fern-ignore': true,
|
|
17435
|
-
'x-response-key': 'client_session',
|
|
17436
|
-
},
|
|
17437
17427
|
},
|
|
17438
17428
|
'/client_sessions/grant_access': {
|
|
17439
17429
|
patch: {
|
|
@@ -11963,7 +11963,7 @@ export interface Routes {
|
|
|
11963
11963
|
}
|
|
11964
11964
|
'/client_sessions/get_or_create': {
|
|
11965
11965
|
route: '/client_sessions/get_or_create'
|
|
11966
|
-
method: 'POST'
|
|
11966
|
+
method: 'POST'
|
|
11967
11967
|
queryParams: {}
|
|
11968
11968
|
jsonBody: {
|
|
11969
11969
|
user_identifier_key?: string | undefined
|
|
@@ -12294,10 +12294,17 @@ export interface Routes {
|
|
|
12294
12294
|
is_connected_account_error: true
|
|
12295
12295
|
error_code: string
|
|
12296
12296
|
}>
|
|
12297
|
-
warnings: Array<
|
|
12298
|
-
|
|
12299
|
-
|
|
12300
|
-
|
|
12297
|
+
warnings: Array<
|
|
12298
|
+
| {
|
|
12299
|
+
message: string
|
|
12300
|
+
warning_code: string
|
|
12301
|
+
}
|
|
12302
|
+
| {
|
|
12303
|
+
message: string
|
|
12304
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
12305
|
+
warning_code: 'unknown_issue_with_connected_account'
|
|
12306
|
+
}
|
|
12307
|
+
>
|
|
12301
12308
|
custom_metadata: Record<string, string | boolean>
|
|
12302
12309
|
automatically_manage_new_devices: boolean
|
|
12303
12310
|
}
|
|
@@ -12335,10 +12342,17 @@ export interface Routes {
|
|
|
12335
12342
|
is_connected_account_error: true
|
|
12336
12343
|
error_code: string
|
|
12337
12344
|
}>
|
|
12338
|
-
warnings: Array<
|
|
12339
|
-
|
|
12340
|
-
|
|
12341
|
-
|
|
12345
|
+
warnings: Array<
|
|
12346
|
+
| {
|
|
12347
|
+
message: string
|
|
12348
|
+
warning_code: string
|
|
12349
|
+
}
|
|
12350
|
+
| {
|
|
12351
|
+
message: string
|
|
12352
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
12353
|
+
warning_code: 'unknown_issue_with_connected_account'
|
|
12354
|
+
}
|
|
12355
|
+
>
|
|
12342
12356
|
custom_metadata: Record<string, string | boolean>
|
|
12343
12357
|
automatically_manage_new_devices: boolean
|
|
12344
12358
|
}>
|
|
@@ -12375,10 +12389,17 @@ export interface Routes {
|
|
|
12375
12389
|
is_connected_account_error: true
|
|
12376
12390
|
error_code: string
|
|
12377
12391
|
}>
|
|
12378
|
-
warnings: Array<
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
12392
|
+
warnings: Array<
|
|
12393
|
+
| {
|
|
12394
|
+
message: string
|
|
12395
|
+
warning_code: string
|
|
12396
|
+
}
|
|
12397
|
+
| {
|
|
12398
|
+
message: string
|
|
12399
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
12400
|
+
warning_code: 'unknown_issue_with_connected_account'
|
|
12401
|
+
}
|
|
12402
|
+
>
|
|
12382
12403
|
custom_metadata: Record<string, string | boolean>
|
|
12383
12404
|
automatically_manage_new_devices: boolean
|
|
12384
12405
|
}
|