@seamapi/types 1.404.0 → 1.404.2
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 +504 -143
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +516 -23
- package/lib/seam/connect/models/connect-webviews/connect-webview.js +55 -15
- package/lib/seam/connect/models/connect-webviews/connect-webview.js.map +1 -1
- package/lib/seam/connect/models/connected-accounts/connected-account.js +121 -41
- package/lib/seam/connect/models/connected-accounts/connected-account.js.map +1 -1
- package/lib/seam/connect/models/custom-metadata.js +5 -2
- package/lib/seam/connect/models/custom-metadata.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +148 -9
- package/lib/seam/connect/openapi.js +378 -89
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +368 -14
- package/package.json +1 -1
- package/src/lib/seam/connect/models/connect-webviews/connect-webview.ts +79 -15
- package/src/lib/seam/connect/models/connected-accounts/connected-account.ts +172 -44
- package/src/lib/seam/connect/models/custom-metadata.ts +8 -4
- package/src/lib/seam/connect/openapi.ts +471 -89
- package/src/lib/seam/connect/route-types.ts +368 -14
|
@@ -6,14 +6,29 @@ export const connect_webview_device_selection_mode = z.enum([
|
|
|
6
6
|
'multiple',
|
|
7
7
|
]);
|
|
8
8
|
export const connect_webview = z.object({
|
|
9
|
-
connect_webview_id: z.string().uuid(),
|
|
10
|
-
workspace_id: z
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
connect_webview_id: z.string().uuid().describe('ID of the Connect Webview.'),
|
|
10
|
+
workspace_id: z
|
|
11
|
+
.string()
|
|
12
|
+
.uuid()
|
|
13
|
+
.describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the Connect Webview.'),
|
|
14
|
+
created_at: z
|
|
15
|
+
.string()
|
|
16
|
+
.datetime()
|
|
17
|
+
.describe('Date and time at which the Connect Webview was created.'),
|
|
18
|
+
connected_account_id: z
|
|
19
|
+
.string()
|
|
20
|
+
.uuid()
|
|
21
|
+
.nullable()
|
|
22
|
+
.describe('ID of the [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts) associated with the Connect Webview.'),
|
|
23
|
+
url: z
|
|
24
|
+
.string()
|
|
25
|
+
.url()
|
|
26
|
+
.describe('URL for the Connect Webview. You use the URL to display the Connect Webview flow to your user.'),
|
|
14
27
|
device_selection_mode: connect_webview_device_selection_mode,
|
|
15
28
|
// TODO: Use enum value.
|
|
16
|
-
accepted_providers: z
|
|
29
|
+
accepted_providers: z
|
|
30
|
+
.array(z.string())
|
|
31
|
+
.describe('List of accepted [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).'),
|
|
17
32
|
accepted_devices: z.array(z.string()).describe(`
|
|
18
33
|
---
|
|
19
34
|
undocumented: Unused. Will be removed.
|
|
@@ -26,16 +41,41 @@ export const connect_webview = z.object({
|
|
|
26
41
|
deprecated: Unused. Will be removed.
|
|
27
42
|
---
|
|
28
43
|
`),
|
|
29
|
-
any_provider_allowed: z
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
44
|
+
any_provider_allowed: z
|
|
45
|
+
.boolean()
|
|
46
|
+
.describe('Indicates whether any provider is allowed.'),
|
|
47
|
+
login_successful: z
|
|
48
|
+
.boolean()
|
|
49
|
+
.describe('Indicates whether the user logged in successfully using the Connect Webview.'),
|
|
50
|
+
status: z
|
|
51
|
+
.enum(['pending', 'failed', 'authorized'])
|
|
52
|
+
.describe('Status of the Connect Webview. `authorized` indicates that the user has successfully logged into their device or system account, thereby completing the Connect Webview.'),
|
|
53
|
+
custom_redirect_url: z
|
|
54
|
+
.string()
|
|
55
|
+
.url()
|
|
56
|
+
.nullable()
|
|
57
|
+
.describe('URL to which the Connect Webview should redirect when the user successfully pairs a device or system. If you do not set the `custom_redirect_failure_url`, the Connect Webview redirects to the `custom_redirect_url` when an unexpected error occurs.'),
|
|
58
|
+
custom_redirect_failure_url: z
|
|
59
|
+
.string()
|
|
60
|
+
.url()
|
|
61
|
+
.nullable()
|
|
62
|
+
.describe('URL to which the Connect Webview should redirect when an unexpected error occurs.'),
|
|
34
63
|
custom_metadata,
|
|
35
|
-
automatically_manage_new_devices: z
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
64
|
+
automatically_manage_new_devices: z
|
|
65
|
+
.boolean()
|
|
66
|
+
.describe('Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API.'),
|
|
67
|
+
wait_for_device_creation: z
|
|
68
|
+
.boolean()
|
|
69
|
+
.describe('Indicates whether Seam should [finish syncing all devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#wait_for_device_creation) in a newly-connected account before completing the associated Connect Webview.'),
|
|
70
|
+
authorized_at: z
|
|
71
|
+
.string()
|
|
72
|
+
.datetime()
|
|
73
|
+
.nullable()
|
|
74
|
+
.describe('Date and time at which the user authorized (through the Connect Webview) the management of their devices.'),
|
|
75
|
+
selected_provider: z
|
|
76
|
+
.string()
|
|
77
|
+
.nullable()
|
|
78
|
+
.describe('Selected provider of the Connect Webview, one of the [provider keys](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).'),
|
|
39
79
|
}).describe(`
|
|
40
80
|
---
|
|
41
81
|
route_path: /connect_webviews
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connect-webview.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connect-webviews/connect-webview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC1D,MAAM;IACN,QAAQ;IACR,UAAU;CACX,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"connect-webview.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/connect-webviews/connect-webview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,MAAM,CAAC,MAAM,qCAAqC,GAAG,CAAC,CAAC,IAAI,CAAC;IAC1D,MAAM;IACN,QAAQ;IACR,UAAU;CACX,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,4BAA4B,CAAC;IAC5E,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,gHAAgH,CACjH;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,kIAAkI,CACnI;IACH,GAAG,EAAE,CAAC;SACH,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,CACP,gGAAgG,CACjG;IACH,qBAAqB,EAAE,qCAAqC;IAE5D,wBAAwB;IACxB,kBAAkB,EAAE,CAAC;SAClB,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,CACP,qLAAqL,CACtL;IAEH,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,CAC5C;;;;;OAKG,CACJ;IACD,kBAAkB,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CACtC;;;;;OAKG,CACJ;IAED,oBAAoB,EAAE,CAAC;SACpB,OAAO,EAAE;SACT,QAAQ,CAAC,4CAA4C,CAAC;IACzD,gBAAgB,EAAE,CAAC;SAChB,OAAO,EAAE;SACT,QAAQ,CACP,8EAA8E,CAC/E;IACH,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,SAAS,EAAE,QAAQ,EAAE,YAAY,CAAC,CAAC;SACzC,QAAQ,CACP,0KAA0K,CAC3K;IACH,mBAAmB,EAAE,CAAC;SACnB,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CACP,wPAAwP,CACzP;IACH,2BAA2B,EAAE,CAAC;SAC3B,MAAM,EAAE;SACR,GAAG,EAAE;SACL,QAAQ,EAAE;SACV,QAAQ,CACP,mFAAmF,CACpF;IACH,eAAe;IACf,gCAAgC,EAAE,CAAC;SAChC,OAAO,EAAE;SACT,QAAQ,CACP,oRAAoR,CACrR;IACH,wBAAwB,EAAE,CAAC;SACxB,OAAO,EAAE;SACT,QAAQ,CACP,6PAA6P,CAC9P;IACH,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,EAAE;SACV,QAAQ,CACP,2GAA2G,CAC5G;IACH,iBAAiB,EAAE,CAAC;SACjB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,yNAAyN,CAC1N;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;;;;;;;CAeX,CAAC,CAAA"}
|
|
@@ -5,9 +5,17 @@ const common_connected_account_error = z.object({
|
|
|
5
5
|
.string()
|
|
6
6
|
.datetime()
|
|
7
7
|
.describe('Date and time at which Seam created the error.'),
|
|
8
|
-
message: z
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
message: z
|
|
9
|
+
.string()
|
|
10
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
11
|
+
is_connected_account_error: z
|
|
12
|
+
.boolean()
|
|
13
|
+
.optional()
|
|
14
|
+
.describe('Indicates whether the error is related specifically to the connected account.'),
|
|
15
|
+
is_bridge_error: z
|
|
16
|
+
.boolean()
|
|
17
|
+
.optional()
|
|
18
|
+
.describe('Indicates whether the error is related to Seam Bridge.'),
|
|
11
19
|
});
|
|
12
20
|
const error_code_description = 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.';
|
|
13
21
|
const warning_code_description = 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.';
|
|
@@ -16,7 +24,9 @@ const common_connected_account_warning = z.object({
|
|
|
16
24
|
.string()
|
|
17
25
|
.datetime()
|
|
18
26
|
.describe('Date and time at which Seam created the warning.'),
|
|
19
|
-
message: z
|
|
27
|
+
message: z
|
|
28
|
+
.string()
|
|
29
|
+
.describe('Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.'),
|
|
20
30
|
});
|
|
21
31
|
export const account_disconnected = common_connected_account_error
|
|
22
32
|
.extend({
|
|
@@ -32,24 +42,44 @@ export const invalid_credentials = common_connected_account_error
|
|
|
32
42
|
.describe(error_code_description),
|
|
33
43
|
})
|
|
34
44
|
.describe('Credentials provided were invalid.');
|
|
35
|
-
export const bridge_disconnected = common_connected_account_error
|
|
36
|
-
|
|
45
|
+
export const bridge_disconnected = common_connected_account_error
|
|
46
|
+
.extend({
|
|
47
|
+
error_code: z
|
|
48
|
+
.literal('bridge_disconnected')
|
|
49
|
+
.describe(error_code_description),
|
|
37
50
|
})
|
|
38
|
-
.describe(
|
|
39
|
-
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).`);
|
|
51
|
+
.describe('Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if 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).');
|
|
40
52
|
export const salto_ks_subscription_limit_exceeded = common_connected_account_error
|
|
41
53
|
.extend({
|
|
42
54
|
error_code: z
|
|
43
55
|
.literal('salto_ks_subscription_limit_exceeded')
|
|
44
56
|
.describe(error_code_description),
|
|
45
|
-
salto_ks_metadata: z
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
salto_ks_metadata: z
|
|
58
|
+
.object({
|
|
59
|
+
sites: z
|
|
60
|
+
.array(z
|
|
61
|
+
.object({
|
|
62
|
+
site_id: z
|
|
63
|
+
.string()
|
|
64
|
+
.describe('ID of a Salto site associated with the connected account that has an error.'),
|
|
65
|
+
site_name: z
|
|
66
|
+
.string()
|
|
67
|
+
.describe('Name of a Salto site associated with the connected account that has an error.'),
|
|
68
|
+
subscribed_site_user_count: z
|
|
69
|
+
.number()
|
|
70
|
+
.int()
|
|
71
|
+
.min(0)
|
|
72
|
+
.describe('Count of subscribed site users for a Salto site associated with the connected account that has an error.'),
|
|
73
|
+
site_user_subscription_limit: z
|
|
74
|
+
.number()
|
|
75
|
+
.int()
|
|
76
|
+
.min(0)
|
|
77
|
+
.describe('Subscription limit of site users for a Salto site associated with the connected account that has an error.'),
|
|
78
|
+
})
|
|
79
|
+
.describe('Salto site associated with the connected account that has an error.'))
|
|
80
|
+
.describe('Salto sites associated with the connected account that has an error.'),
|
|
81
|
+
})
|
|
82
|
+
.describe('Salto KS metadata associated with the connected account that has an error.'),
|
|
53
83
|
})
|
|
54
84
|
.describe('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.');
|
|
55
85
|
export const connected_account_error = z.discriminatedUnion('error_code', [
|
|
@@ -72,36 +102,54 @@ export const unknown_issue_with_connected_account = common_connected_account_war
|
|
|
72
102
|
.literal('unknown_issue_with_connected_account')
|
|
73
103
|
.describe(warning_code_description),
|
|
74
104
|
})
|
|
75
|
-
.describe('An unknown issue occurred while syncing the state of
|
|
105
|
+
.describe('An unknown issue occurred while syncing the state of the connected account with the provider. This issue may affect the proper functioning of one or more resources in the account.');
|
|
76
106
|
const scheduled_maintenance_window = common_connected_account_warning
|
|
77
107
|
.extend({
|
|
78
108
|
warning_code: z
|
|
79
109
|
.literal('scheduled_maintenance_window')
|
|
80
110
|
.describe(warning_code_description),
|
|
81
111
|
})
|
|
82
|
-
.describe('Scheduled downtime for account
|
|
112
|
+
.describe('Scheduled downtime planned for the connected account.');
|
|
83
113
|
const salto_ks_subscription_limit_almost_reached = common_connected_account_warning
|
|
84
114
|
.extend({
|
|
85
115
|
warning_code: z
|
|
86
116
|
.literal('salto_ks_subscription_limit_almost_reached')
|
|
87
117
|
.describe(warning_code_description),
|
|
88
|
-
salto_ks_metadata: z
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
118
|
+
salto_ks_metadata: z
|
|
119
|
+
.object({
|
|
120
|
+
sites: z
|
|
121
|
+
.array(z
|
|
122
|
+
.object({
|
|
123
|
+
site_id: z
|
|
124
|
+
.string()
|
|
125
|
+
.describe('ID of a Salto site associated with the connected account that has a warning.'),
|
|
126
|
+
site_name: z
|
|
127
|
+
.string()
|
|
128
|
+
.describe('Name of a Salto site associated with the connected account that has a warning.'),
|
|
129
|
+
site_user_subscription_limit: z
|
|
130
|
+
.number()
|
|
131
|
+
.int()
|
|
132
|
+
.min(0)
|
|
133
|
+
.describe('Subscription limit of site users for a Salto site associated with the connected account that has a warning.'),
|
|
134
|
+
subscribed_site_user_count: z
|
|
135
|
+
.number()
|
|
136
|
+
.int()
|
|
137
|
+
.min(0)
|
|
138
|
+
.describe('Count of subscribed site users for a Salto site associated with the connected account that has a warning.'),
|
|
139
|
+
})
|
|
140
|
+
.describe('Salto site associated with the connected account that has a warning.'))
|
|
141
|
+
.describe('Salto sites associated with the connected account that has a warning.'),
|
|
142
|
+
})
|
|
143
|
+
.describe('Salto KS metadata associated with the connected account that has a warning.'),
|
|
96
144
|
})
|
|
97
|
-
.describe('Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users.
|
|
145
|
+
.describe('Indicates that the Salto KS site has exceeded 80% of the maximum number of allowed users. Increase your subscription limit or delete some users from your site.');
|
|
98
146
|
const connected_account_warning = z
|
|
99
147
|
.discriminatedUnion('warning_code', [
|
|
100
148
|
scheduled_maintenance_window,
|
|
101
149
|
unknown_issue_with_connected_account,
|
|
102
150
|
salto_ks_subscription_limit_almost_reached,
|
|
103
151
|
])
|
|
104
|
-
.describe('Warning associated with the
|
|
152
|
+
.describe('Warning associated with the connected account.');
|
|
105
153
|
const connected_account_warning_map = z.object({
|
|
106
154
|
scheduled_maintenance_window: scheduled_maintenance_window
|
|
107
155
|
.nullable()
|
|
@@ -112,23 +160,55 @@ const connected_account_warning_map = z.object({
|
|
|
112
160
|
salto_ks_subscription_limit_almost_reached: salto_ks_subscription_limit_almost_reached.nullable().optional(),
|
|
113
161
|
});
|
|
114
162
|
export const connected_account = z.object({
|
|
115
|
-
connected_account_id: z
|
|
116
|
-
|
|
163
|
+
connected_account_id: z
|
|
164
|
+
.string()
|
|
165
|
+
.uuid()
|
|
166
|
+
.optional()
|
|
167
|
+
.describe('Unique identifier for the connected account.'),
|
|
168
|
+
created_at: z
|
|
169
|
+
.string()
|
|
170
|
+
.datetime()
|
|
171
|
+
.optional()
|
|
172
|
+
.describe('Date and time at which the connected account was created.'),
|
|
117
173
|
user_identifier: z
|
|
118
174
|
.object({
|
|
119
|
-
username: z
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
175
|
+
username: z
|
|
176
|
+
.string()
|
|
177
|
+
.optional()
|
|
178
|
+
.describe('Username of the user identifier associated with the connected account.'),
|
|
179
|
+
api_url: z
|
|
180
|
+
.string()
|
|
181
|
+
.optional()
|
|
182
|
+
.describe('API URL for the user identifier associated with the connected account.'),
|
|
183
|
+
email: z
|
|
184
|
+
.string()
|
|
185
|
+
.optional()
|
|
186
|
+
.describe('Email address of the user identifier associated with the connected account.'),
|
|
187
|
+
phone: z
|
|
188
|
+
.string()
|
|
189
|
+
.optional()
|
|
190
|
+
.describe('Phone number of the user identifier associated with the connected account.'),
|
|
191
|
+
exclusive: z
|
|
192
|
+
.boolean()
|
|
193
|
+
.optional()
|
|
194
|
+
.describe('Indicates whether the user identifier associated with the connected account is exclusive.'),
|
|
124
195
|
})
|
|
125
|
-
.optional()
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
196
|
+
.optional()
|
|
197
|
+
.describe('User identifier associated with the connected account.'),
|
|
198
|
+
account_type: z.string().optional().describe('Type of connected account.'),
|
|
199
|
+
account_type_display_name: z
|
|
200
|
+
.string()
|
|
201
|
+
.describe('Display name for the connected account type.'),
|
|
202
|
+
errors: z
|
|
203
|
+
.array(connected_account_error)
|
|
204
|
+
.describe('Errors associated with the connected account.'),
|
|
205
|
+
warnings: z
|
|
206
|
+
.array(connected_account_warning)
|
|
207
|
+
.describe('Warnings associated with the connected account.'),
|
|
130
208
|
custom_metadata,
|
|
131
|
-
automatically_manage_new_devices: z
|
|
209
|
+
automatically_manage_new_devices: z
|
|
210
|
+
.boolean()
|
|
211
|
+
.describe('Indicates whether Seam should [import all new devices](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#automatically_manage_new_devices) for the connected account to make these devices available for use and management by the Seam API.'),
|
|
132
212
|
}).describe(`
|
|
133
213
|
---
|
|
134
214
|
route_path: /connected_accounts
|
|
@@ -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,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,OAAO,EAAE,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,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;IACH,0BAA0B,EAAE,CAAC;SAC1B,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CACP,+EAA+E,CAChF;IACH,eAAe,EAAE,CAAC;SACf,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,wDAAwD,CAAC;CACtE,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAC1B,oGAAoG,CAAA;AAEtG,MAAM,wBAAwB,GAC5B,sGAAsG,CAAA;AAExG,MAAM,gCAAgC,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,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,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C,CAAA"}
|
|
@@ -3,6 +3,9 @@ export const custom_metadata_input = z
|
|
|
3
3
|
.record(z.string().max(40), z.union([z.string().max(500), z.boolean(), z.null()]))
|
|
4
4
|
.refine((val) => Object.keys(val).length <= 50, {
|
|
5
5
|
message: 'Custom metadata is limited to a maximum of 50 keys',
|
|
6
|
-
})
|
|
7
|
-
|
|
6
|
+
})
|
|
7
|
+
.describe('Set of up to 50 key:value pairs, with key names up to 40 characters long. Accepts string or Boolean values. Strings are limited to 500 characters. 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.');
|
|
8
|
+
export const custom_metadata = z
|
|
9
|
+
.record(z.string(), z.union([z.string(), z.boolean()]))
|
|
10
|
+
.describe('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.');
|
|
8
11
|
//# sourceMappingURL=custom-metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-metadata.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/custom-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACnC,MAAM,CACL,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAClB,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAA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