@seamapi/types 1.848.0 → 1.849.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 +30 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +99 -0
- package/dist/index.cjs +30 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/acs/acs-system.d.ts +45 -0
- package/lib/seam/connect/models/acs/acs-system.js +11 -0
- package/lib/seam/connect/models/acs/acs-system.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +29 -0
- package/lib/seam/connect/openapi.js +21 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +49 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/acs/acs-system.ts +14 -0
- package/src/lib/seam/connect/openapi.ts +25 -0
- package/src/lib/seam/connect/route-types.ts +56 -0
package/dist/connect.d.cts
CHANGED
|
@@ -6908,6 +6908,19 @@ declare const acs_system: z.ZodObject<{
|
|
|
6908
6908
|
message: string;
|
|
6909
6909
|
created_at: string;
|
|
6910
6910
|
error_code: "salto_ks_certification_expired";
|
|
6911
|
+
}>, z.ZodObject<{
|
|
6912
|
+
created_at: z.ZodString;
|
|
6913
|
+
message: z.ZodString;
|
|
6914
|
+
} & {
|
|
6915
|
+
error_code: z.ZodLiteral<"provider_service_unavailable">;
|
|
6916
|
+
}, "strip", z.ZodTypeAny, {
|
|
6917
|
+
message: string;
|
|
6918
|
+
created_at: string;
|
|
6919
|
+
error_code: "provider_service_unavailable";
|
|
6920
|
+
}, {
|
|
6921
|
+
message: string;
|
|
6922
|
+
created_at: string;
|
|
6923
|
+
error_code: "provider_service_unavailable";
|
|
6911
6924
|
}>]>, "many">;
|
|
6912
6925
|
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
|
|
6913
6926
|
created_at: z.ZodString;
|
|
@@ -6972,6 +6985,10 @@ declare const acs_system: z.ZodObject<{
|
|
|
6972
6985
|
message: string;
|
|
6973
6986
|
created_at: string;
|
|
6974
6987
|
error_code: "salto_ks_certification_expired";
|
|
6988
|
+
} | {
|
|
6989
|
+
message: string;
|
|
6990
|
+
created_at: string;
|
|
6991
|
+
error_code: "provider_service_unavailable";
|
|
6975
6992
|
})[];
|
|
6976
6993
|
connected_account_id: string;
|
|
6977
6994
|
image_url: string;
|
|
@@ -7037,6 +7054,10 @@ declare const acs_system: z.ZodObject<{
|
|
|
7037
7054
|
message: string;
|
|
7038
7055
|
created_at: string;
|
|
7039
7056
|
error_code: "salto_ks_certification_expired";
|
|
7057
|
+
} | {
|
|
7058
|
+
message: string;
|
|
7059
|
+
created_at: string;
|
|
7060
|
+
error_code: "provider_service_unavailable";
|
|
7040
7061
|
})[];
|
|
7041
7062
|
connected_account_id: string;
|
|
7042
7063
|
image_url: string;
|
|
@@ -18386,6 +18407,19 @@ declare const batch: z.ZodObject<{
|
|
|
18386
18407
|
message: string;
|
|
18387
18408
|
created_at: string;
|
|
18388
18409
|
error_code: "salto_ks_certification_expired";
|
|
18410
|
+
}>, z.ZodObject<{
|
|
18411
|
+
created_at: z.ZodString;
|
|
18412
|
+
message: z.ZodString;
|
|
18413
|
+
} & {
|
|
18414
|
+
error_code: z.ZodLiteral<"provider_service_unavailable">;
|
|
18415
|
+
}, "strip", z.ZodTypeAny, {
|
|
18416
|
+
message: string;
|
|
18417
|
+
created_at: string;
|
|
18418
|
+
error_code: "provider_service_unavailable";
|
|
18419
|
+
}, {
|
|
18420
|
+
message: string;
|
|
18421
|
+
created_at: string;
|
|
18422
|
+
error_code: "provider_service_unavailable";
|
|
18389
18423
|
}>]>, "many">;
|
|
18390
18424
|
warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<{
|
|
18391
18425
|
created_at: z.ZodString;
|
|
@@ -18450,6 +18484,10 @@ declare const batch: z.ZodObject<{
|
|
|
18450
18484
|
message: string;
|
|
18451
18485
|
created_at: string;
|
|
18452
18486
|
error_code: "salto_ks_certification_expired";
|
|
18487
|
+
} | {
|
|
18488
|
+
message: string;
|
|
18489
|
+
created_at: string;
|
|
18490
|
+
error_code: "provider_service_unavailable";
|
|
18453
18491
|
})[];
|
|
18454
18492
|
connected_account_id: string;
|
|
18455
18493
|
image_url: string;
|
|
@@ -18515,6 +18553,10 @@ declare const batch: z.ZodObject<{
|
|
|
18515
18553
|
message: string;
|
|
18516
18554
|
created_at: string;
|
|
18517
18555
|
error_code: "salto_ks_certification_expired";
|
|
18556
|
+
} | {
|
|
18557
|
+
message: string;
|
|
18558
|
+
created_at: string;
|
|
18559
|
+
error_code: "provider_service_unavailable";
|
|
18518
18560
|
})[];
|
|
18519
18561
|
connected_account_id: string;
|
|
18520
18562
|
image_url: string;
|
|
@@ -39847,6 +39889,10 @@ declare const batch: z.ZodObject<{
|
|
|
39847
39889
|
message: string;
|
|
39848
39890
|
created_at: string;
|
|
39849
39891
|
error_code: "salto_ks_certification_expired";
|
|
39892
|
+
} | {
|
|
39893
|
+
message: string;
|
|
39894
|
+
created_at: string;
|
|
39895
|
+
error_code: "provider_service_unavailable";
|
|
39850
39896
|
})[];
|
|
39851
39897
|
connected_account_id: string;
|
|
39852
39898
|
image_url: string;
|
|
@@ -44861,6 +44907,10 @@ declare const batch: z.ZodObject<{
|
|
|
44861
44907
|
message: string;
|
|
44862
44908
|
created_at: string;
|
|
44863
44909
|
error_code: "salto_ks_certification_expired";
|
|
44910
|
+
} | {
|
|
44911
|
+
message: string;
|
|
44912
|
+
created_at: string;
|
|
44913
|
+
error_code: "provider_service_unavailable";
|
|
44864
44914
|
})[];
|
|
44865
44915
|
connected_account_id: string;
|
|
44866
44916
|
image_url: string;
|
|
@@ -77626,6 +77676,13 @@ type Routes = {
|
|
|
77626
77676
|
message: string;
|
|
77627
77677
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
77628
77678
|
error_code: 'salto_ks_certification_expired';
|
|
77679
|
+
} | {
|
|
77680
|
+
/** Date and time at which Seam created the error. */
|
|
77681
|
+
created_at: string;
|
|
77682
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
77683
|
+
message: string;
|
|
77684
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
77685
|
+
error_code: 'provider_service_unavailable';
|
|
77629
77686
|
})[];
|
|
77630
77687
|
/** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */
|
|
77631
77688
|
warnings: ({
|
|
@@ -90509,6 +90566,13 @@ type Routes = {
|
|
|
90509
90566
|
message: string;
|
|
90510
90567
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
90511
90568
|
error_code: 'salto_ks_certification_expired';
|
|
90569
|
+
} | {
|
|
90570
|
+
/** Date and time at which Seam created the error. */
|
|
90571
|
+
created_at: string;
|
|
90572
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
90573
|
+
message: string;
|
|
90574
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
90575
|
+
error_code: 'provider_service_unavailable';
|
|
90512
90576
|
})[];
|
|
90513
90577
|
/** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */
|
|
90514
90578
|
warnings: ({
|
|
@@ -90645,6 +90709,13 @@ type Routes = {
|
|
|
90645
90709
|
message: string;
|
|
90646
90710
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
90647
90711
|
error_code: 'salto_ks_certification_expired';
|
|
90712
|
+
} | {
|
|
90713
|
+
/** Date and time at which Seam created the error. */
|
|
90714
|
+
created_at: string;
|
|
90715
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
90716
|
+
message: string;
|
|
90717
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
90718
|
+
error_code: 'provider_service_unavailable';
|
|
90648
90719
|
})[];
|
|
90649
90720
|
/** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */
|
|
90650
90721
|
warnings: ({
|
|
@@ -90777,6 +90848,13 @@ type Routes = {
|
|
|
90777
90848
|
message: string;
|
|
90778
90849
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
90779
90850
|
error_code: 'salto_ks_certification_expired';
|
|
90851
|
+
} | {
|
|
90852
|
+
/** Date and time at which Seam created the error. */
|
|
90853
|
+
created_at: string;
|
|
90854
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
90855
|
+
message: string;
|
|
90856
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
90857
|
+
error_code: 'provider_service_unavailable';
|
|
90780
90858
|
})[];
|
|
90781
90859
|
/** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */
|
|
90782
90860
|
warnings: ({
|
|
@@ -135685,6 +135763,13 @@ type Routes = {
|
|
|
135685
135763
|
message: string;
|
|
135686
135764
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
135687
135765
|
error_code: 'salto_ks_certification_expired';
|
|
135766
|
+
} | {
|
|
135767
|
+
/** Date and time at which Seam created the error. */
|
|
135768
|
+
created_at: string;
|
|
135769
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
135770
|
+
message: string;
|
|
135771
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
135772
|
+
error_code: 'provider_service_unavailable';
|
|
135688
135773
|
})[];
|
|
135689
135774
|
/** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */
|
|
135690
135775
|
warnings: ({
|
|
@@ -156180,6 +156265,13 @@ type Routes = {
|
|
|
156180
156265
|
message: string;
|
|
156181
156266
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
156182
156267
|
error_code: 'salto_ks_certification_expired';
|
|
156268
|
+
} | {
|
|
156269
|
+
/** Date and time at which Seam created the error. */
|
|
156270
|
+
created_at: string;
|
|
156271
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
156272
|
+
message: string;
|
|
156273
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
156274
|
+
error_code: 'provider_service_unavailable';
|
|
156183
156275
|
})[];
|
|
156184
156276
|
/** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */
|
|
156185
156277
|
warnings: ({
|
|
@@ -158660,6 +158752,13 @@ type Routes = {
|
|
|
158660
158752
|
message: string;
|
|
158661
158753
|
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
158662
158754
|
error_code: 'salto_ks_certification_expired';
|
|
158755
|
+
} | {
|
|
158756
|
+
/** Date and time at which Seam created the error. */
|
|
158757
|
+
created_at: string;
|
|
158758
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
158759
|
+
message: string;
|
|
158760
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
158761
|
+
error_code: 'provider_service_unavailable';
|
|
158663
158762
|
})[];
|
|
158664
158763
|
/** Warnings associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems). */
|
|
158665
158764
|
warnings: ({
|
package/dist/index.cjs
CHANGED
|
@@ -3899,6 +3899,11 @@ var salto_ks_certification_expired = common_acs_system_error.extend({
|
|
|
3899
3899
|
}).describe(
|
|
3900
3900
|
"Indicates that the [access control system](https://docs.seam.co/latest/capability-guides/access-systems) has lost its Salto KS certification. Contact [support](mailto:support@seam.co) to regain access."
|
|
3901
3901
|
);
|
|
3902
|
+
var provider_service_unavailable2 = common_acs_system_error.extend({
|
|
3903
|
+
error_code: zod.z.literal("provider_service_unavailable").describe(error_code_description7)
|
|
3904
|
+
}).describe(
|
|
3905
|
+
"Indicates that the access control system provider's service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again."
|
|
3906
|
+
);
|
|
3902
3907
|
var acs_system_error = zod.z.discriminatedUnion("error_code", [
|
|
3903
3908
|
seam_bridge_disconnected,
|
|
3904
3909
|
bridge_disconnected2,
|
|
@@ -3906,7 +3911,8 @@ var acs_system_error = zod.z.discriminatedUnion("error_code", [
|
|
|
3906
3911
|
salto_ks_subscription_limit_exceeded3,
|
|
3907
3912
|
acs_system_disconnected,
|
|
3908
3913
|
account_disconnected3,
|
|
3909
|
-
salto_ks_certification_expired
|
|
3914
|
+
salto_ks_certification_expired,
|
|
3915
|
+
provider_service_unavailable2
|
|
3910
3916
|
]).describe(
|
|
3911
3917
|
"Error associated with the [access control system](https://docs.seam.co/latest/capability-guides/access-systems)."
|
|
3912
3918
|
);
|
|
@@ -3917,7 +3923,8 @@ zod.z.object({
|
|
|
3917
3923
|
salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded3.optional().nullable(),
|
|
3918
3924
|
acs_system_disconnected: acs_system_disconnected.optional().nullable(),
|
|
3919
3925
|
account_disconnected: account_disconnected3.optional().nullable(),
|
|
3920
|
-
salto_ks_certification_expired: salto_ks_certification_expired.optional().nullable()
|
|
3926
|
+
salto_ks_certification_expired: salto_ks_certification_expired.optional().nullable(),
|
|
3927
|
+
provider_service_unavailable: provider_service_unavailable2.optional().nullable()
|
|
3921
3928
|
});
|
|
3922
3929
|
var common_acs_system_warning = zod.z.object({
|
|
3923
3930
|
created_at: zod.z.string().datetime().describe("Date and time at which Seam created the warning."),
|
|
@@ -11352,6 +11359,27 @@ var openapi = {
|
|
|
11352
11359
|
},
|
|
11353
11360
|
required: ["created_at", "message", "error_code"],
|
|
11354
11361
|
type: "object"
|
|
11362
|
+
},
|
|
11363
|
+
{
|
|
11364
|
+
description: "Indicates that the access control system provider's service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.",
|
|
11365
|
+
properties: {
|
|
11366
|
+
created_at: {
|
|
11367
|
+
description: "Date and time at which Seam created the error.",
|
|
11368
|
+
format: "date-time",
|
|
11369
|
+
type: "string"
|
|
11370
|
+
},
|
|
11371
|
+
error_code: {
|
|
11372
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
11373
|
+
enum: ["provider_service_unavailable"],
|
|
11374
|
+
type: "string"
|
|
11375
|
+
},
|
|
11376
|
+
message: {
|
|
11377
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
11378
|
+
type: "string"
|
|
11379
|
+
}
|
|
11380
|
+
},
|
|
11381
|
+
required: ["created_at", "message", "error_code"],
|
|
11382
|
+
type: "object"
|
|
11355
11383
|
}
|
|
11356
11384
|
]
|
|
11357
11385
|
},
|