@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
package/dist/connect.d.cts
CHANGED
|
@@ -5245,7 +5245,7 @@ declare const connected_account_error: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5245
5245
|
error_code: string;
|
|
5246
5246
|
}>;
|
|
5247
5247
|
type ConnectedAccountError = z.infer<typeof connected_account_error>;
|
|
5248
|
-
declare const connected_account_warning: z.ZodObject<z.objectUtil.extendShape<{
|
|
5248
|
+
declare const connected_account_warning: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
5249
5249
|
message: z.ZodString;
|
|
5250
5250
|
}, {
|
|
5251
5251
|
warning_code: z.ZodString;
|
|
@@ -5255,7 +5255,17 @@ declare const connected_account_warning: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
5255
5255
|
}, {
|
|
5256
5256
|
message: string;
|
|
5257
5257
|
warning_code: string;
|
|
5258
|
-
}
|
|
5258
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
5259
|
+
message: z.ZodString;
|
|
5260
|
+
}, {
|
|
5261
|
+
warning_code: z.ZodLiteral<"unknown_issue_with_connected_account">;
|
|
5262
|
+
}>, "strip", z.ZodTypeAny, {
|
|
5263
|
+
message: string;
|
|
5264
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
5265
|
+
}, {
|
|
5266
|
+
message: string;
|
|
5267
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
5268
|
+
}>]>;
|
|
5259
5269
|
type ConnectedAccountWarning = z.infer<typeof connected_account_warning>;
|
|
5260
5270
|
declare const connected_account: z.ZodObject<{
|
|
5261
5271
|
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
@@ -5295,7 +5305,7 @@ declare const connected_account: z.ZodObject<{
|
|
|
5295
5305
|
is_connected_account_error: true;
|
|
5296
5306
|
error_code: string;
|
|
5297
5307
|
}>, "many">;
|
|
5298
|
-
warnings: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
5308
|
+
warnings: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
5299
5309
|
message: z.ZodString;
|
|
5300
5310
|
}, {
|
|
5301
5311
|
warning_code: z.ZodString;
|
|
@@ -5305,7 +5315,17 @@ declare const connected_account: z.ZodObject<{
|
|
|
5305
5315
|
}, {
|
|
5306
5316
|
message: string;
|
|
5307
5317
|
warning_code: string;
|
|
5308
|
-
}>,
|
|
5318
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
5319
|
+
message: z.ZodString;
|
|
5320
|
+
}, {
|
|
5321
|
+
warning_code: z.ZodLiteral<"unknown_issue_with_connected_account">;
|
|
5322
|
+
}>, "strip", z.ZodTypeAny, {
|
|
5323
|
+
message: string;
|
|
5324
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
5325
|
+
}, {
|
|
5326
|
+
message: string;
|
|
5327
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
5328
|
+
}>]>, "many">;
|
|
5309
5329
|
custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
5310
5330
|
automatically_manage_new_devices: z.ZodBoolean;
|
|
5311
5331
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -5315,10 +5335,13 @@ declare const connected_account: z.ZodObject<{
|
|
|
5315
5335
|
is_connected_account_error: true;
|
|
5316
5336
|
error_code: string;
|
|
5317
5337
|
}[];
|
|
5318
|
-
warnings: {
|
|
5338
|
+
warnings: ({
|
|
5339
|
+
message: string;
|
|
5340
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
5341
|
+
} | {
|
|
5319
5342
|
message: string;
|
|
5320
5343
|
warning_code: string;
|
|
5321
|
-
}[];
|
|
5344
|
+
})[];
|
|
5322
5345
|
custom_metadata: Record<string, string | boolean>;
|
|
5323
5346
|
automatically_manage_new_devices: boolean;
|
|
5324
5347
|
connected_account_id?: string | undefined;
|
|
@@ -5338,10 +5361,13 @@ declare const connected_account: z.ZodObject<{
|
|
|
5338
5361
|
is_connected_account_error: true;
|
|
5339
5362
|
error_code: string;
|
|
5340
5363
|
}[];
|
|
5341
|
-
warnings: {
|
|
5364
|
+
warnings: ({
|
|
5365
|
+
message: string;
|
|
5366
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
5367
|
+
} | {
|
|
5342
5368
|
message: string;
|
|
5343
5369
|
warning_code: string;
|
|
5344
|
-
}[];
|
|
5370
|
+
})[];
|
|
5345
5371
|
custom_metadata: Record<string, string | boolean>;
|
|
5346
5372
|
automatically_manage_new_devices: boolean;
|
|
5347
5373
|
connected_account_id?: string | undefined;
|
|
@@ -14774,16 +14800,36 @@ declare const _default: {
|
|
|
14774
14800
|
};
|
|
14775
14801
|
warnings: {
|
|
14776
14802
|
items: {
|
|
14777
|
-
|
|
14778
|
-
|
|
14779
|
-
|
|
14803
|
+
description: string;
|
|
14804
|
+
oneOf: ({
|
|
14805
|
+
properties: {
|
|
14806
|
+
message: {
|
|
14807
|
+
type: string;
|
|
14808
|
+
};
|
|
14809
|
+
warning_code: {
|
|
14810
|
+
type: string;
|
|
14811
|
+
description?: never;
|
|
14812
|
+
enum?: never;
|
|
14813
|
+
};
|
|
14780
14814
|
};
|
|
14781
|
-
|
|
14782
|
-
|
|
14815
|
+
required: string[];
|
|
14816
|
+
type: string;
|
|
14817
|
+
description?: never;
|
|
14818
|
+
} | {
|
|
14819
|
+
description: string;
|
|
14820
|
+
properties: {
|
|
14821
|
+
message: {
|
|
14822
|
+
type: string;
|
|
14823
|
+
};
|
|
14824
|
+
warning_code: {
|
|
14825
|
+
description: string;
|
|
14826
|
+
enum: string[];
|
|
14827
|
+
type: string;
|
|
14828
|
+
};
|
|
14783
14829
|
};
|
|
14784
|
-
|
|
14785
|
-
|
|
14786
|
-
|
|
14830
|
+
required: string[];
|
|
14831
|
+
type: string;
|
|
14832
|
+
})[];
|
|
14787
14833
|
};
|
|
14788
14834
|
type: string;
|
|
14789
14835
|
};
|
|
@@ -46438,6 +46484,10 @@ interface Routes {
|
|
|
46438
46484
|
warnings: Array<{
|
|
46439
46485
|
message: string;
|
|
46440
46486
|
warning_code: string;
|
|
46487
|
+
} | {
|
|
46488
|
+
message: string;
|
|
46489
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
46490
|
+
warning_code: 'unknown_issue_with_connected_account';
|
|
46441
46491
|
}>;
|
|
46442
46492
|
custom_metadata: Record<string, string | boolean>;
|
|
46443
46493
|
automatically_manage_new_devices: boolean;
|
|
@@ -46477,6 +46527,10 @@ interface Routes {
|
|
|
46477
46527
|
warnings: Array<{
|
|
46478
46528
|
message: string;
|
|
46479
46529
|
warning_code: string;
|
|
46530
|
+
} | {
|
|
46531
|
+
message: string;
|
|
46532
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
46533
|
+
warning_code: 'unknown_issue_with_connected_account';
|
|
46480
46534
|
}>;
|
|
46481
46535
|
custom_metadata: Record<string, string | boolean>;
|
|
46482
46536
|
automatically_manage_new_devices: boolean;
|
|
@@ -46515,6 +46569,10 @@ interface Routes {
|
|
|
46515
46569
|
warnings: Array<{
|
|
46516
46570
|
message: string;
|
|
46517
46571
|
warning_code: string;
|
|
46572
|
+
} | {
|
|
46573
|
+
message: string;
|
|
46574
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
46575
|
+
warning_code: 'unknown_issue_with_connected_account';
|
|
46518
46576
|
}>;
|
|
46519
46577
|
custom_metadata: Record<string, string | boolean>;
|
|
46520
46578
|
automatically_manage_new_devices: boolean;
|
|
@@ -2,6 +2,20 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const acs_credential_external_type: z.ZodEnum<["pti_card", "brivo_credential", "hid_credential", "visionline_card", "salto_ks_credential"]>;
|
|
3
3
|
export declare const acs_credential_access_method_type: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
4
4
|
export type AcsCredentialExternalType = z.infer<typeof acs_credential_external_type>;
|
|
5
|
+
export declare const unknown_issue_with_credential: z.ZodObject<z.objectUtil.extendShape<{
|
|
6
|
+
created_at: z.ZodString;
|
|
7
|
+
message: z.ZodString;
|
|
8
|
+
}, {
|
|
9
|
+
warning_code: z.ZodLiteral<"unknown_issue_with_credential">;
|
|
10
|
+
}>, "strip", z.ZodTypeAny, {
|
|
11
|
+
message: string;
|
|
12
|
+
warning_code: "unknown_issue_with_credential";
|
|
13
|
+
created_at: string;
|
|
14
|
+
}, {
|
|
15
|
+
message: string;
|
|
16
|
+
warning_code: "unknown_issue_with_credential";
|
|
17
|
+
created_at: string;
|
|
18
|
+
}>;
|
|
5
19
|
declare const acs_credential_warning_map: z.ZodObject<{
|
|
6
20
|
waiting_to_be_issued: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
|
|
7
21
|
created_at: z.ZodString;
|
|
@@ -49,7 +49,7 @@ const being_deleted = common_acs_credential_warning
|
|
|
49
49
|
warning_code: z.literal('being_deleted').describe(warning_code_description),
|
|
50
50
|
})
|
|
51
51
|
.describe('Indicates that this credential is being deleted.');
|
|
52
|
-
const unknown_issue_with_credential = common_acs_credential_warning
|
|
52
|
+
export const unknown_issue_with_credential = common_acs_credential_warning
|
|
53
53
|
.extend({
|
|
54
54
|
warning_code: z
|
|
55
55
|
.literal('unknown_issue_with_credential')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acs-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,kCAAkC,EAAE,MAAM,qBAAqB,CAAA;AAExE,wEAAwE;AACxE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,UAAU;IACV,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;IACjB,qBAAqB;CACtB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,IAAI,CAAC;IACtD,MAAM;IACN,MAAM;IACN,YAAY;CACb,CAAC,CAAA;AAMF,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,0GAA0G,CAC3G;CACJ,CAAC,CAAA;AAEF,MAAM,wBAAwB,GAC5B,sGAAsG,CAAA;AAExG,MAAM,oBAAoB,GAAG,6BAA6B;KACvD,MAAM,CAAC;IACN,YAAY,EAAE,CAAC;SACZ,OAAO,CAAC,sBAAsB,CAAC;SAC/B,QAAQ,CAAC,wBAAwB,CAAC;CACtC,CAAC;KACD,QAAQ,CAAC,wDAAwD,CAAC,CAAA;AAErE,MAAM,4BAA4B,GAAG,6BAA6B;KAC/D,MAAM,CAAC;IACN,YAAY,EAAE,CAAC;SACZ,OAAO,CAAC,8BAA8B,CAAC;SACvC,QAAQ,CAAC,wBAAwB,CAAC;CACtC,CAAC;KACD,QAAQ,CACP,0FAA0F,CAC3F,CAAA;AAEH,MAAM,iBAAiB,GAAG,6BAA6B;KACpD,MAAM,CAAC;IACN,YAAY,EAAE,CAAC;SACZ,OAAO,CAAC,mBAAmB,CAAC;SAC5B,QAAQ,CAAC,wBAAwB,CAAC;CACtC,CAAC;KACD,QAAQ,CACP,2HAA2H,CAC5H,CAAA;AAEH,MAAM,aAAa,GAAG,6BAA6B;KAChD,MAAM,CAAC;IACN,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAC5E,CAAC;KACD,QAAQ,CAAC,kDAAkD,CAAC,CAAA;AAE/D,MAAM,6BAA6B,GAAG,6BAA6B;
|
|
1
|
+
{"version":3,"file":"acs-credential.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/acs-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,kCAAkC,EAAE,MAAM,qBAAqB,CAAA;AAExE,wEAAwE;AACxE,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,UAAU;IACV,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;IACjB,qBAAqB;CACtB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,IAAI,CAAC;IACtD,MAAM;IACN,MAAM;IACN,YAAY;CACb,CAAC,CAAA;AAMF,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,OAAO,EAAE,CAAC;SACP,M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C;CAChE,CAAC,CAAA"}
|
|
@@ -14,7 +14,18 @@ export declare const connected_account_error: z.ZodObject<z.objectUtil.extendSha
|
|
|
14
14
|
error_code: string;
|
|
15
15
|
}>;
|
|
16
16
|
export type ConnectedAccountError = z.infer<typeof connected_account_error>;
|
|
17
|
-
declare const
|
|
17
|
+
export declare const unknown_issue_with_connected_account: z.ZodObject<z.objectUtil.extendShape<{
|
|
18
|
+
message: z.ZodString;
|
|
19
|
+
}, {
|
|
20
|
+
warning_code: z.ZodLiteral<"unknown_issue_with_connected_account">;
|
|
21
|
+
}>, "strip", z.ZodTypeAny, {
|
|
22
|
+
message: string;
|
|
23
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
24
|
+
}, {
|
|
25
|
+
message: string;
|
|
26
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
27
|
+
}>;
|
|
28
|
+
declare const connected_account_warning: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
18
29
|
message: z.ZodString;
|
|
19
30
|
}, {
|
|
20
31
|
warning_code: z.ZodString;
|
|
@@ -24,7 +35,17 @@ declare const connected_account_warning: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
24
35
|
}, {
|
|
25
36
|
message: string;
|
|
26
37
|
warning_code: string;
|
|
27
|
-
}
|
|
38
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
39
|
+
message: z.ZodString;
|
|
40
|
+
}, {
|
|
41
|
+
warning_code: z.ZodLiteral<"unknown_issue_with_connected_account">;
|
|
42
|
+
}>, "strip", z.ZodTypeAny, {
|
|
43
|
+
message: string;
|
|
44
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
45
|
+
}, {
|
|
46
|
+
message: string;
|
|
47
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
48
|
+
}>]>;
|
|
28
49
|
export type ConnectedAccountWarning = z.infer<typeof connected_account_warning>;
|
|
29
50
|
export declare const connected_account: z.ZodObject<{
|
|
30
51
|
connected_account_id: z.ZodOptional<z.ZodString>;
|
|
@@ -64,7 +85,7 @@ export declare const connected_account: z.ZodObject<{
|
|
|
64
85
|
is_connected_account_error: true;
|
|
65
86
|
error_code: string;
|
|
66
87
|
}>, "many">;
|
|
67
|
-
warnings: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
|
88
|
+
warnings: z.ZodArray<z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
|
|
68
89
|
message: z.ZodString;
|
|
69
90
|
}, {
|
|
70
91
|
warning_code: z.ZodString;
|
|
@@ -74,7 +95,17 @@ export declare const connected_account: z.ZodObject<{
|
|
|
74
95
|
}, {
|
|
75
96
|
message: string;
|
|
76
97
|
warning_code: string;
|
|
77
|
-
}>,
|
|
98
|
+
}>, z.ZodObject<z.objectUtil.extendShape<{
|
|
99
|
+
message: z.ZodString;
|
|
100
|
+
}, {
|
|
101
|
+
warning_code: z.ZodLiteral<"unknown_issue_with_connected_account">;
|
|
102
|
+
}>, "strip", z.ZodTypeAny, {
|
|
103
|
+
message: string;
|
|
104
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
105
|
+
}, {
|
|
106
|
+
message: string;
|
|
107
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
108
|
+
}>]>, "many">;
|
|
78
109
|
custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
79
110
|
automatically_manage_new_devices: z.ZodBoolean;
|
|
80
111
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -84,10 +115,13 @@ export declare const connected_account: z.ZodObject<{
|
|
|
84
115
|
is_connected_account_error: true;
|
|
85
116
|
error_code: string;
|
|
86
117
|
}[];
|
|
87
|
-
warnings: {
|
|
118
|
+
warnings: ({
|
|
119
|
+
message: string;
|
|
120
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
121
|
+
} | {
|
|
88
122
|
message: string;
|
|
89
123
|
warning_code: string;
|
|
90
|
-
}[];
|
|
124
|
+
})[];
|
|
91
125
|
custom_metadata: Record<string, string | boolean>;
|
|
92
126
|
automatically_manage_new_devices: boolean;
|
|
93
127
|
connected_account_id?: string | undefined;
|
|
@@ -107,10 +141,13 @@ export declare const connected_account: z.ZodObject<{
|
|
|
107
141
|
is_connected_account_error: true;
|
|
108
142
|
error_code: string;
|
|
109
143
|
}[];
|
|
110
|
-
warnings: {
|
|
144
|
+
warnings: ({
|
|
145
|
+
message: string;
|
|
146
|
+
warning_code: "unknown_issue_with_connected_account";
|
|
147
|
+
} | {
|
|
111
148
|
message: string;
|
|
112
149
|
warning_code: string;
|
|
113
|
-
}[];
|
|
150
|
+
})[];
|
|
114
151
|
custom_metadata: Record<string, string | boolean>;
|
|
115
152
|
automatically_manage_new_devices: boolean;
|
|
116
153
|
connected_account_id?: string | undefined;
|
|
@@ -4,15 +4,29 @@ const common_connected_account_error = z.object({
|
|
|
4
4
|
message: z.string(),
|
|
5
5
|
is_connected_account_error: z.literal(true),
|
|
6
6
|
});
|
|
7
|
+
const warning_code_description = 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.';
|
|
7
8
|
const common_connected_account_warning = z.object({
|
|
8
9
|
message: z.string(),
|
|
9
10
|
});
|
|
10
11
|
export const connected_account_error = common_connected_account_error.extend({
|
|
11
12
|
error_code: z.string(),
|
|
12
13
|
});
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
export const unknown_issue_with_connected_account = common_connected_account_warning
|
|
15
|
+
.extend({
|
|
16
|
+
warning_code: z
|
|
17
|
+
.literal('unknown_issue_with_connected_account')
|
|
18
|
+
.describe(warning_code_description),
|
|
19
|
+
})
|
|
20
|
+
.describe('An unknown issue occurred while syncing the state of this connected account with the provider. ' +
|
|
21
|
+
'This issue may affect the proper functioning of one or more resources in this account.');
|
|
22
|
+
const connected_account_warning = z
|
|
23
|
+
.union([
|
|
24
|
+
common_connected_account_warning.extend({
|
|
25
|
+
warning_code: z.string(),
|
|
26
|
+
}),
|
|
27
|
+
unknown_issue_with_connected_account,
|
|
28
|
+
])
|
|
29
|
+
.describe('Warning associated with the `connected_account`.');
|
|
16
30
|
export const connected_account = z.object({
|
|
17
31
|
connected_account_id: z.string().uuid().optional(),
|
|
18
32
|
created_at: z.string().datetime().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5C,CAAC,CAAA;AAEF,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG,8BAA8B,CAAC,MAAM,CAAC;IAC3E,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAA;AAIF,MAAM,yBAAyB,GAAG,gCAAgC,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"connected-account.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connected-accounts/connected-account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,8BAA8B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC;CAC5C,CAAC,CAAA;AAEF,MAAM,wBAAwB,GAC5B,sGAAsG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C,QAAQ,EAAE;KAClC,CAAC;SACD,QAAQ,EAAE;IACb,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE;IACrC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC;IACxC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC;IAC5C,eAAe;IACf,gCAAgC,EAAE,CAAC,CAAC,OAAO,EAAE;CAC9C,CAAC,CAAA"}
|
|
@@ -2211,16 +2211,36 @@ declare const _default: {
|
|
|
2211
2211
|
};
|
|
2212
2212
|
warnings: {
|
|
2213
2213
|
items: {
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2214
|
+
description: string;
|
|
2215
|
+
oneOf: ({
|
|
2216
|
+
properties: {
|
|
2217
|
+
message: {
|
|
2218
|
+
type: string;
|
|
2219
|
+
};
|
|
2220
|
+
warning_code: {
|
|
2221
|
+
type: string;
|
|
2222
|
+
description?: never;
|
|
2223
|
+
enum?: never;
|
|
2224
|
+
};
|
|
2217
2225
|
};
|
|
2218
|
-
|
|
2219
|
-
|
|
2226
|
+
required: string[];
|
|
2227
|
+
type: string;
|
|
2228
|
+
description?: never;
|
|
2229
|
+
} | {
|
|
2230
|
+
description: string;
|
|
2231
|
+
properties: {
|
|
2232
|
+
message: {
|
|
2233
|
+
type: string;
|
|
2234
|
+
};
|
|
2235
|
+
warning_code: {
|
|
2236
|
+
description: string;
|
|
2237
|
+
enum: string[];
|
|
2238
|
+
type: string;
|
|
2239
|
+
};
|
|
2220
2240
|
};
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2241
|
+
required: string[];
|
|
2242
|
+
type: string;
|
|
2243
|
+
})[];
|
|
2224
2244
|
};
|
|
2225
2245
|
type: string;
|
|
2226
2246
|
};
|
|
@@ -3919,12 +3919,30 @@ export default {
|
|
|
3919
3919
|
},
|
|
3920
3920
|
warnings: {
|
|
3921
3921
|
items: {
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3922
|
+
description: 'Warning associated with the `connected_account`.',
|
|
3923
|
+
oneOf: [
|
|
3924
|
+
{
|
|
3925
|
+
properties: {
|
|
3926
|
+
message: { type: 'string' },
|
|
3927
|
+
warning_code: { type: 'string' },
|
|
3928
|
+
},
|
|
3929
|
+
required: ['message', 'warning_code'],
|
|
3930
|
+
type: 'object',
|
|
3931
|
+
},
|
|
3932
|
+
{
|
|
3933
|
+
description: '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.',
|
|
3934
|
+
properties: {
|
|
3935
|
+
message: { type: 'string' },
|
|
3936
|
+
warning_code: {
|
|
3937
|
+
description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
|
|
3938
|
+
enum: ['unknown_issue_with_connected_account'],
|
|
3939
|
+
type: 'string',
|
|
3940
|
+
},
|
|
3941
|
+
},
|
|
3942
|
+
required: ['message', 'warning_code'],
|
|
3943
|
+
type: 'object',
|
|
3944
|
+
},
|
|
3945
|
+
],
|
|
3928
3946
|
},
|
|
3929
3947
|
type: 'array',
|
|
3930
3948
|
},
|