@seamapi/types 1.319.0 → 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 +42 -15
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +74 -16
- 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 +28 -8
- package/lib/seam/connect/openapi.js +24 -6
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +12 -0
- 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 +26 -6
- package/src/lib/seam/connect/route-types.ts +33 -12
|
@@ -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
|
},
|
|
@@ -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
|
}
|