@seamapi/types 1.835.0 → 1.836.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 +105 -0
- package/dist/index.cjs +30 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +29 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.d.ts +58 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js +11 -0
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- 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 +42 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +14 -0
- package/src/lib/seam/connect/openapi.ts +25 -0
- package/src/lib/seam/connect/route-types.ts +48 -0
package/dist/connect.d.cts
CHANGED
|
@@ -17495,6 +17495,19 @@ declare const batch: z.ZodObject<{
|
|
|
17495
17495
|
message: string;
|
|
17496
17496
|
created_at: string;
|
|
17497
17497
|
warning_code: "being_deleted";
|
|
17498
|
+
}>, z.ZodObject<{
|
|
17499
|
+
created_at: z.ZodString;
|
|
17500
|
+
message: z.ZodString;
|
|
17501
|
+
} & {
|
|
17502
|
+
warning_code: z.ZodLiteral<"provider_service_unavailable">;
|
|
17503
|
+
}, "strip", z.ZodTypeAny, {
|
|
17504
|
+
message: string;
|
|
17505
|
+
created_at: string;
|
|
17506
|
+
warning_code: "provider_service_unavailable";
|
|
17507
|
+
}, {
|
|
17508
|
+
message: string;
|
|
17509
|
+
created_at: string;
|
|
17510
|
+
warning_code: "provider_service_unavailable";
|
|
17498
17511
|
}>]>, "many">;
|
|
17499
17512
|
custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
17500
17513
|
automatically_manage_new_devices: z.ZodBoolean;
|
|
@@ -17559,6 +17572,10 @@ declare const batch: z.ZodObject<{
|
|
|
17559
17572
|
message: string;
|
|
17560
17573
|
created_at: string;
|
|
17561
17574
|
warning_code: "being_deleted";
|
|
17575
|
+
} | {
|
|
17576
|
+
message: string;
|
|
17577
|
+
created_at: string;
|
|
17578
|
+
warning_code: "provider_service_unavailable";
|
|
17562
17579
|
})[];
|
|
17563
17580
|
custom_metadata: Record<string, string | boolean>;
|
|
17564
17581
|
automatically_manage_new_devices: boolean;
|
|
@@ -17633,6 +17650,10 @@ declare const batch: z.ZodObject<{
|
|
|
17633
17650
|
message: string;
|
|
17634
17651
|
created_at: string;
|
|
17635
17652
|
warning_code: "being_deleted";
|
|
17653
|
+
} | {
|
|
17654
|
+
message: string;
|
|
17655
|
+
created_at: string;
|
|
17656
|
+
warning_code: "provider_service_unavailable";
|
|
17636
17657
|
})[];
|
|
17637
17658
|
custom_metadata: Record<string, string | boolean>;
|
|
17638
17659
|
automatically_manage_new_devices: boolean;
|
|
@@ -39333,6 +39354,10 @@ declare const batch: z.ZodObject<{
|
|
|
39333
39354
|
message: string;
|
|
39334
39355
|
created_at: string;
|
|
39335
39356
|
warning_code: "being_deleted";
|
|
39357
|
+
} | {
|
|
39358
|
+
message: string;
|
|
39359
|
+
created_at: string;
|
|
39360
|
+
warning_code: "provider_service_unavailable";
|
|
39336
39361
|
})[];
|
|
39337
39362
|
custom_metadata: Record<string, string | boolean>;
|
|
39338
39363
|
automatically_manage_new_devices: boolean;
|
|
@@ -44309,6 +44334,10 @@ declare const batch: z.ZodObject<{
|
|
|
44309
44334
|
message: string;
|
|
44310
44335
|
created_at: string;
|
|
44311
44336
|
warning_code: "being_deleted";
|
|
44337
|
+
} | {
|
|
44338
|
+
message: string;
|
|
44339
|
+
created_at: string;
|
|
44340
|
+
warning_code: "provider_service_unavailable";
|
|
44312
44341
|
})[];
|
|
44313
44342
|
custom_metadata: Record<string, string | boolean>;
|
|
44314
44343
|
automatically_manage_new_devices: boolean;
|
|
@@ -48887,6 +48916,19 @@ declare const connected_account_warning: z.ZodDiscriminatedUnion<"warning_code",
|
|
|
48887
48916
|
message: string;
|
|
48888
48917
|
created_at: string;
|
|
48889
48918
|
warning_code: "being_deleted";
|
|
48919
|
+
}>, z.ZodObject<{
|
|
48920
|
+
created_at: z.ZodString;
|
|
48921
|
+
message: z.ZodString;
|
|
48922
|
+
} & {
|
|
48923
|
+
warning_code: z.ZodLiteral<"provider_service_unavailable">;
|
|
48924
|
+
}, "strip", z.ZodTypeAny, {
|
|
48925
|
+
message: string;
|
|
48926
|
+
created_at: string;
|
|
48927
|
+
warning_code: "provider_service_unavailable";
|
|
48928
|
+
}, {
|
|
48929
|
+
message: string;
|
|
48930
|
+
created_at: string;
|
|
48931
|
+
warning_code: "provider_service_unavailable";
|
|
48890
48932
|
}>]>;
|
|
48891
48933
|
declare const connected_account: z.ZodObject<{
|
|
48892
48934
|
connected_account_id: z.ZodString;
|
|
@@ -49133,6 +49175,19 @@ declare const connected_account: z.ZodObject<{
|
|
|
49133
49175
|
message: string;
|
|
49134
49176
|
created_at: string;
|
|
49135
49177
|
warning_code: "being_deleted";
|
|
49178
|
+
}>, z.ZodObject<{
|
|
49179
|
+
created_at: z.ZodString;
|
|
49180
|
+
message: z.ZodString;
|
|
49181
|
+
} & {
|
|
49182
|
+
warning_code: z.ZodLiteral<"provider_service_unavailable">;
|
|
49183
|
+
}, "strip", z.ZodTypeAny, {
|
|
49184
|
+
message: string;
|
|
49185
|
+
created_at: string;
|
|
49186
|
+
warning_code: "provider_service_unavailable";
|
|
49187
|
+
}, {
|
|
49188
|
+
message: string;
|
|
49189
|
+
created_at: string;
|
|
49190
|
+
warning_code: "provider_service_unavailable";
|
|
49136
49191
|
}>]>, "many">;
|
|
49137
49192
|
custom_metadata: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodBoolean]>>;
|
|
49138
49193
|
automatically_manage_new_devices: z.ZodBoolean;
|
|
@@ -49197,6 +49252,10 @@ declare const connected_account: z.ZodObject<{
|
|
|
49197
49252
|
message: string;
|
|
49198
49253
|
created_at: string;
|
|
49199
49254
|
warning_code: "being_deleted";
|
|
49255
|
+
} | {
|
|
49256
|
+
message: string;
|
|
49257
|
+
created_at: string;
|
|
49258
|
+
warning_code: "provider_service_unavailable";
|
|
49200
49259
|
})[];
|
|
49201
49260
|
custom_metadata: Record<string, string | boolean>;
|
|
49202
49261
|
automatically_manage_new_devices: boolean;
|
|
@@ -49271,6 +49330,10 @@ declare const connected_account: z.ZodObject<{
|
|
|
49271
49330
|
message: string;
|
|
49272
49331
|
created_at: string;
|
|
49273
49332
|
warning_code: "being_deleted";
|
|
49333
|
+
} | {
|
|
49334
|
+
message: string;
|
|
49335
|
+
created_at: string;
|
|
49336
|
+
warning_code: "provider_service_unavailable";
|
|
49274
49337
|
})[];
|
|
49275
49338
|
custom_metadata: Record<string, string | boolean>;
|
|
49276
49339
|
automatically_manage_new_devices: boolean;
|
|
@@ -76988,6 +77051,13 @@ type Routes = {
|
|
|
76988
77051
|
message: string;
|
|
76989
77052
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
76990
77053
|
warning_code: 'being_deleted';
|
|
77054
|
+
} | {
|
|
77055
|
+
/** Date and time at which Seam created the warning. */
|
|
77056
|
+
created_at: string;
|
|
77057
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
77058
|
+
message: string;
|
|
77059
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
77060
|
+
warning_code: 'provider_service_unavailable';
|
|
76991
77061
|
})[];
|
|
76992
77062
|
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
|
|
76993
77063
|
custom_metadata: {
|
|
@@ -95287,6 +95357,13 @@ type Routes = {
|
|
|
95287
95357
|
message: string;
|
|
95288
95358
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
95289
95359
|
warning_code: 'being_deleted';
|
|
95360
|
+
} | {
|
|
95361
|
+
/** Date and time at which Seam created the warning. */
|
|
95362
|
+
created_at: string;
|
|
95363
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
95364
|
+
message: string;
|
|
95365
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
95366
|
+
warning_code: 'provider_service_unavailable';
|
|
95290
95367
|
})[];
|
|
95291
95368
|
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
|
|
95292
95369
|
custom_metadata: {
|
|
@@ -95453,6 +95530,13 @@ type Routes = {
|
|
|
95453
95530
|
message: string;
|
|
95454
95531
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
95455
95532
|
warning_code: 'being_deleted';
|
|
95533
|
+
} | {
|
|
95534
|
+
/** Date and time at which Seam created the warning. */
|
|
95535
|
+
created_at: string;
|
|
95536
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
95537
|
+
message: string;
|
|
95538
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
95539
|
+
warning_code: 'provider_service_unavailable';
|
|
95456
95540
|
})[];
|
|
95457
95541
|
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
|
|
95458
95542
|
custom_metadata: {
|
|
@@ -95651,6 +95735,13 @@ type Routes = {
|
|
|
95651
95735
|
message: string;
|
|
95652
95736
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
95653
95737
|
warning_code: 'being_deleted';
|
|
95738
|
+
} | {
|
|
95739
|
+
/** Date and time at which Seam created the warning. */
|
|
95740
|
+
created_at: string;
|
|
95741
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
95742
|
+
message: string;
|
|
95743
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
95744
|
+
warning_code: 'provider_service_unavailable';
|
|
95654
95745
|
})[];
|
|
95655
95746
|
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
|
|
95656
95747
|
custom_metadata: {
|
|
@@ -134729,6 +134820,13 @@ type Routes = {
|
|
|
134729
134820
|
message: string;
|
|
134730
134821
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
134731
134822
|
warning_code: 'being_deleted';
|
|
134823
|
+
} | {
|
|
134824
|
+
/** Date and time at which Seam created the warning. */
|
|
134825
|
+
created_at: string;
|
|
134826
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
134827
|
+
message: string;
|
|
134828
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
134829
|
+
warning_code: 'provider_service_unavailable';
|
|
134732
134830
|
})[];
|
|
134733
134831
|
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
|
|
134734
134832
|
custom_metadata: {
|
|
@@ -160889,6 +160987,13 @@ type Routes = {
|
|
|
160889
160987
|
message: string;
|
|
160890
160988
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
160891
160989
|
warning_code: 'being_deleted';
|
|
160990
|
+
} | {
|
|
160991
|
+
/** Date and time at which Seam created the warning. */
|
|
160992
|
+
created_at: string;
|
|
160993
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
160994
|
+
message: string;
|
|
160995
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
160996
|
+
warning_code: 'provider_service_unavailable';
|
|
160892
160997
|
})[];
|
|
160893
160998
|
/** Set of key:value pairs. Adding custom metadata to a resource, such as a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews/attaching-custom-data-to-the-connect-webview), [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account), or [device](https://docs.seam.co/latest/core-concepts/devices/adding-custom-metadata-to-a-device), enables you to store custom information, like customer details or internal IDs from your application. */
|
|
160894
160999
|
custom_metadata: {
|
package/dist/index.cjs
CHANGED
|
@@ -695,19 +695,26 @@ var being_deleted = common_connected_account_warning.extend({
|
|
|
695
695
|
}).describe(
|
|
696
696
|
"Indicates that the connected account is currently being deleted. All devices, access codes, and other resources associated with this account are in the process of being removed from Seam."
|
|
697
697
|
);
|
|
698
|
+
var provider_service_unavailable = common_connected_account_warning.extend({
|
|
699
|
+
warning_code: zod.z.literal("provider_service_unavailable").describe(warning_code_description)
|
|
700
|
+
}).describe(
|
|
701
|
+
"Indicates that the connected account's provider service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again."
|
|
702
|
+
);
|
|
698
703
|
var connected_account_warning = zod.z.discriminatedUnion("warning_code", [
|
|
699
704
|
scheduled_maintenance_window,
|
|
700
705
|
unknown_issue_with_connected_account,
|
|
701
706
|
salto_ks_subscription_limit_almost_reached,
|
|
702
707
|
account_reauthorization_requested,
|
|
703
|
-
being_deleted
|
|
708
|
+
being_deleted,
|
|
709
|
+
provider_service_unavailable
|
|
704
710
|
]).describe("Warning associated with the connected account.");
|
|
705
711
|
zod.z.object({
|
|
706
712
|
scheduled_maintenance_window: scheduled_maintenance_window.nullable().optional(),
|
|
707
713
|
unknown_issue_with_connected_account: unknown_issue_with_connected_account.nullable().optional(),
|
|
708
714
|
salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached.nullable().optional(),
|
|
709
715
|
account_reauthorization_requested: account_reauthorization_requested.nullable().optional(),
|
|
710
|
-
being_deleted: being_deleted.nullable().optional()
|
|
716
|
+
being_deleted: being_deleted.nullable().optional(),
|
|
717
|
+
provider_service_unavailable: provider_service_unavailable.nullable().optional()
|
|
711
718
|
});
|
|
712
719
|
var connected_account = zod.z.object({
|
|
713
720
|
connected_account_id: zod.z.string().uuid().describe("ID of the connected account."),
|
|
@@ -17017,6 +17024,27 @@ var openapi = {
|
|
|
17017
17024
|
},
|
|
17018
17025
|
required: ["created_at", "message", "warning_code"],
|
|
17019
17026
|
type: "object"
|
|
17027
|
+
},
|
|
17028
|
+
{
|
|
17029
|
+
description: "Indicates that the connected account's provider service is temporarily unavailable. Seam will automatically retry and reconnect when the service becomes available again.",
|
|
17030
|
+
properties: {
|
|
17031
|
+
created_at: {
|
|
17032
|
+
description: "Date and time at which Seam created the warning.",
|
|
17033
|
+
format: "date-time",
|
|
17034
|
+
type: "string"
|
|
17035
|
+
},
|
|
17036
|
+
message: {
|
|
17037
|
+
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
17038
|
+
type: "string"
|
|
17039
|
+
},
|
|
17040
|
+
warning_code: {
|
|
17041
|
+
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
17042
|
+
enum: ["provider_service_unavailable"],
|
|
17043
|
+
type: "string"
|
|
17044
|
+
}
|
|
17045
|
+
},
|
|
17046
|
+
required: ["created_at", "message", "warning_code"],
|
|
17047
|
+
type: "object"
|
|
17020
17048
|
}
|
|
17021
17049
|
]
|
|
17022
17050
|
},
|