@seamapi/types 1.711.0 → 1.712.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 +146 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +832 -9
- package/dist/index.cjs +146 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +214 -0
- package/lib/seam/connect/models/events/connected-accounts.d.ts +320 -0
- package/lib/seam/connect/models/events/connected-accounts.js +4 -0
- package/lib/seam/connect/models/events/connected-accounts.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +160 -0
- package/lib/seam/connect/openapi.d.ts +253 -0
- package/lib/seam/connect/openapi.js +143 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +196 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/connected-accounts.ts +4 -0
- package/src/lib/seam/connect/openapi.ts +168 -0
- package/src/lib/seam/connect/route-types.ts +212 -0
package/dist/index.cjs
CHANGED
|
@@ -4957,7 +4957,8 @@ var connected_account_successful_login_event = connected_account_event.extend({
|
|
|
4957
4957
|
A [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) had a successful login using a [Connect Webview](https://docs.seam.co/latest/ui-components/connect-webviews).
|
|
4958
4958
|
`);
|
|
4959
4959
|
var connected_account_disconnected_event = connected_account_event.extend({
|
|
4960
|
-
event_type: zod.z.literal("connected_account.disconnected")
|
|
4960
|
+
event_type: zod.z.literal("connected_account.disconnected"),
|
|
4961
|
+
connected_account_errors: zod.z.array(connected_account_error).describe("Errors associated with the connected account.")
|
|
4961
4962
|
}).describe(`
|
|
4962
4963
|
---
|
|
4963
4964
|
route_path: /connected_accounts
|
|
@@ -20894,6 +20895,148 @@ var openapi_default = {
|
|
|
20894
20895
|
description: "Custom metadata of the connected account, present when connected_account_id is provided.",
|
|
20895
20896
|
type: "object"
|
|
20896
20897
|
},
|
|
20898
|
+
connected_account_errors: {
|
|
20899
|
+
description: "Errors associated with the connected account.",
|
|
20900
|
+
items: {
|
|
20901
|
+
discriminator: { propertyName: "error_code" },
|
|
20902
|
+
oneOf: [
|
|
20903
|
+
{
|
|
20904
|
+
description: "Indicates that the account is disconnected.",
|
|
20905
|
+
properties: {
|
|
20906
|
+
created_at: {
|
|
20907
|
+
description: "Date and time at which Seam created the error.",
|
|
20908
|
+
format: "date-time",
|
|
20909
|
+
type: "string"
|
|
20910
|
+
},
|
|
20911
|
+
error_code: {
|
|
20912
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
20913
|
+
enum: ["account_disconnected"],
|
|
20914
|
+
type: "string"
|
|
20915
|
+
},
|
|
20916
|
+
is_bridge_error: {
|
|
20917
|
+
description: "Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).",
|
|
20918
|
+
type: "boolean"
|
|
20919
|
+
},
|
|
20920
|
+
is_connected_account_error: {
|
|
20921
|
+
description: "Indicates whether the error is related specifically to the connected account.",
|
|
20922
|
+
type: "boolean"
|
|
20923
|
+
},
|
|
20924
|
+
message: {
|
|
20925
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
20926
|
+
type: "string"
|
|
20927
|
+
}
|
|
20928
|
+
},
|
|
20929
|
+
required: ["created_at", "message", "error_code"],
|
|
20930
|
+
type: "object"
|
|
20931
|
+
},
|
|
20932
|
+
{
|
|
20933
|
+
description: "Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).",
|
|
20934
|
+
properties: {
|
|
20935
|
+
created_at: {
|
|
20936
|
+
description: "Date and time at which Seam created the error.",
|
|
20937
|
+
format: "date-time",
|
|
20938
|
+
type: "string"
|
|
20939
|
+
},
|
|
20940
|
+
error_code: {
|
|
20941
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
20942
|
+
enum: ["bridge_disconnected"],
|
|
20943
|
+
type: "string"
|
|
20944
|
+
},
|
|
20945
|
+
is_bridge_error: {
|
|
20946
|
+
description: "Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).",
|
|
20947
|
+
type: "boolean"
|
|
20948
|
+
},
|
|
20949
|
+
is_connected_account_error: {
|
|
20950
|
+
description: "Indicates whether the error is related specifically to the connected account.",
|
|
20951
|
+
type: "boolean"
|
|
20952
|
+
},
|
|
20953
|
+
message: {
|
|
20954
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
20955
|
+
type: "string"
|
|
20956
|
+
}
|
|
20957
|
+
},
|
|
20958
|
+
required: ["created_at", "message", "error_code"],
|
|
20959
|
+
type: "object"
|
|
20960
|
+
},
|
|
20961
|
+
{
|
|
20962
|
+
description: "Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.",
|
|
20963
|
+
properties: {
|
|
20964
|
+
created_at: {
|
|
20965
|
+
description: "Date and time at which Seam created the error.",
|
|
20966
|
+
format: "date-time",
|
|
20967
|
+
type: "string"
|
|
20968
|
+
},
|
|
20969
|
+
error_code: {
|
|
20970
|
+
description: "Unique identifier of the type of error. Enables quick recognition and categorization of the issue.",
|
|
20971
|
+
enum: ["salto_ks_subscription_limit_exceeded"],
|
|
20972
|
+
type: "string"
|
|
20973
|
+
},
|
|
20974
|
+
is_bridge_error: {
|
|
20975
|
+
description: "Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).",
|
|
20976
|
+
type: "boolean"
|
|
20977
|
+
},
|
|
20978
|
+
is_connected_account_error: {
|
|
20979
|
+
description: "Indicates whether the error is related specifically to the connected account.",
|
|
20980
|
+
type: "boolean"
|
|
20981
|
+
},
|
|
20982
|
+
message: {
|
|
20983
|
+
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
20984
|
+
type: "string"
|
|
20985
|
+
},
|
|
20986
|
+
salto_ks_metadata: {
|
|
20987
|
+
description: "Salto KS metadata associated with the connected account that has an error.",
|
|
20988
|
+
properties: {
|
|
20989
|
+
sites: {
|
|
20990
|
+
description: "Salto sites associated with the connected account that has an error.",
|
|
20991
|
+
items: {
|
|
20992
|
+
description: "Salto site associated with the connected account that has an error.",
|
|
20993
|
+
properties: {
|
|
20994
|
+
site_id: {
|
|
20995
|
+
description: "ID of a Salto site associated with the connected account that has an error.",
|
|
20996
|
+
type: "string"
|
|
20997
|
+
},
|
|
20998
|
+
site_name: {
|
|
20999
|
+
description: "Name of a Salto site associated with the connected account that has an error.",
|
|
21000
|
+
type: "string"
|
|
21001
|
+
},
|
|
21002
|
+
site_user_subscription_limit: {
|
|
21003
|
+
description: "Subscription limit of site users for a Salto site associated with the connected account that has an error.",
|
|
21004
|
+
minimum: 0,
|
|
21005
|
+
type: "integer"
|
|
21006
|
+
},
|
|
21007
|
+
subscribed_site_user_count: {
|
|
21008
|
+
description: "Count of subscribed site users for a Salto site associated with the connected account that has an error.",
|
|
21009
|
+
minimum: 0,
|
|
21010
|
+
type: "integer"
|
|
21011
|
+
}
|
|
21012
|
+
},
|
|
21013
|
+
required: [
|
|
21014
|
+
"site_id",
|
|
21015
|
+
"site_name",
|
|
21016
|
+
"subscribed_site_user_count",
|
|
21017
|
+
"site_user_subscription_limit"
|
|
21018
|
+
],
|
|
21019
|
+
type: "object"
|
|
21020
|
+
},
|
|
21021
|
+
type: "array"
|
|
21022
|
+
}
|
|
21023
|
+
},
|
|
21024
|
+
required: ["sites"],
|
|
21025
|
+
type: "object"
|
|
21026
|
+
}
|
|
21027
|
+
},
|
|
21028
|
+
required: [
|
|
21029
|
+
"created_at",
|
|
21030
|
+
"message",
|
|
21031
|
+
"error_code",
|
|
21032
|
+
"salto_ks_metadata"
|
|
21033
|
+
],
|
|
21034
|
+
type: "object"
|
|
21035
|
+
}
|
|
21036
|
+
]
|
|
21037
|
+
},
|
|
21038
|
+
type: "array"
|
|
21039
|
+
},
|
|
20897
21040
|
connected_account_id: {
|
|
20898
21041
|
description: "ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
|
|
20899
21042
|
format: "uuid",
|
|
@@ -20930,7 +21073,8 @@ var openapi_default = {
|
|
|
20930
21073
|
"created_at",
|
|
20931
21074
|
"occurred_at",
|
|
20932
21075
|
"connected_account_id",
|
|
20933
|
-
"event_type"
|
|
21076
|
+
"event_type",
|
|
21077
|
+
"connected_account_errors"
|
|
20934
21078
|
],
|
|
20935
21079
|
type: "object",
|
|
20936
21080
|
"x-route-path": "/connected_accounts"
|