@seamapi/types 1.694.0 → 1.696.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 +265 -18
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +394 -0
- package/dist/index.cjs +265 -18
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +92 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +24 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +34 -0
- package/lib/seam/connect/openapi.d.ts +215 -0
- package/lib/seam/connect/openapi.js +228 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +121 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +40 -0
- package/src/lib/seam/connect/openapi.ts +249 -0
- package/src/lib/seam/connect/route-types.ts +121 -0
|
@@ -10166,6 +10166,15 @@ export type Routes = {
|
|
|
10166
10166
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
10167
10167
|
warning_code: 'being_deleted';
|
|
10168
10168
|
}[];
|
|
10169
|
+
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
10170
|
+
errors: {
|
|
10171
|
+
/** Date and time at which Seam created the error. */
|
|
10172
|
+
created_at: string;
|
|
10173
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
10174
|
+
message: string;
|
|
10175
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
10176
|
+
error_code: 'cannot_create_requested_access_methods';
|
|
10177
|
+
}[];
|
|
10169
10178
|
/** ID of the customization profile associated with the Access Grant. */
|
|
10170
10179
|
customization_profile_id?: string | undefined;
|
|
10171
10180
|
};
|
|
@@ -10254,6 +10263,15 @@ export type Routes = {
|
|
|
10254
10263
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
10255
10264
|
warning_code: 'being_deleted';
|
|
10256
10265
|
}[];
|
|
10266
|
+
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
10267
|
+
errors: {
|
|
10268
|
+
/** Date and time at which Seam created the error. */
|
|
10269
|
+
created_at: string;
|
|
10270
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
10271
|
+
message: string;
|
|
10272
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
10273
|
+
error_code: 'cannot_create_requested_access_methods';
|
|
10274
|
+
}[];
|
|
10257
10275
|
/** ID of the customization profile associated with the Access Grant. */
|
|
10258
10276
|
customization_profile_id?: string | undefined;
|
|
10259
10277
|
};
|
|
@@ -12082,6 +12100,15 @@ export type Routes = {
|
|
|
12082
12100
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
12083
12101
|
warning_code: 'being_deleted';
|
|
12084
12102
|
}[];
|
|
12103
|
+
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
12104
|
+
errors: {
|
|
12105
|
+
/** Date and time at which Seam created the error. */
|
|
12106
|
+
created_at: string;
|
|
12107
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
12108
|
+
message: string;
|
|
12109
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
12110
|
+
error_code: 'cannot_create_requested_access_methods';
|
|
12111
|
+
}[];
|
|
12085
12112
|
/** ID of the customization profile associated with the Access Grant. */
|
|
12086
12113
|
customization_profile_id?: string | undefined;
|
|
12087
12114
|
}[];
|
|
@@ -12161,6 +12188,15 @@ export type Routes = {
|
|
|
12161
12188
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
12162
12189
|
warning_code: 'being_deleted';
|
|
12163
12190
|
}[];
|
|
12191
|
+
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
12192
|
+
errors: {
|
|
12193
|
+
/** Date and time at which Seam created the error. */
|
|
12194
|
+
created_at: string;
|
|
12195
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
12196
|
+
message: string;
|
|
12197
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
12198
|
+
error_code: 'cannot_create_requested_access_methods';
|
|
12199
|
+
}[];
|
|
12164
12200
|
/** ID of the customization profile associated with the Access Grant. */
|
|
12165
12201
|
customization_profile_id?: string | undefined;
|
|
12166
12202
|
};
|
|
@@ -12225,6 +12261,15 @@ export type Routes = {
|
|
|
12225
12261
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
12226
12262
|
warning_code: 'being_deleted';
|
|
12227
12263
|
}[];
|
|
12264
|
+
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
12265
|
+
errors: {
|
|
12266
|
+
/** Date and time at which Seam created the error. */
|
|
12267
|
+
created_at: string;
|
|
12268
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
12269
|
+
message: string;
|
|
12270
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
12271
|
+
error_code: 'cannot_create_requested_access_methods';
|
|
12272
|
+
}[];
|
|
12228
12273
|
/** ID of user identity to which the Access Grant gives access. */
|
|
12229
12274
|
user_identity_id?: string | undefined;
|
|
12230
12275
|
};
|
|
@@ -12294,6 +12339,15 @@ export type Routes = {
|
|
|
12294
12339
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
12295
12340
|
warning_code: 'being_deleted';
|
|
12296
12341
|
}[];
|
|
12342
|
+
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
12343
|
+
errors: {
|
|
12344
|
+
/** Date and time at which Seam created the error. */
|
|
12345
|
+
created_at: string;
|
|
12346
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
12347
|
+
message: string;
|
|
12348
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
12349
|
+
error_code: 'cannot_create_requested_access_methods';
|
|
12350
|
+
}[];
|
|
12297
12351
|
/** ID of user identity to which the Access Grant gives access. */
|
|
12298
12352
|
user_identity_id?: string | undefined;
|
|
12299
12353
|
}[];
|
|
@@ -15126,6 +15180,15 @@ export type Routes = {
|
|
|
15126
15180
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
15127
15181
|
warning_code: 'being_deleted';
|
|
15128
15182
|
}[];
|
|
15183
|
+
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
15184
|
+
errors: {
|
|
15185
|
+
/** Date and time at which Seam created the error. */
|
|
15186
|
+
created_at: string;
|
|
15187
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
15188
|
+
message: string;
|
|
15189
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
15190
|
+
error_code: 'cannot_create_requested_access_methods';
|
|
15191
|
+
}[];
|
|
15129
15192
|
/** ID of the customization profile associated with the Access Grant. */
|
|
15130
15193
|
customization_profile_id?: string | undefined;
|
|
15131
15194
|
}[] | undefined;
|
|
@@ -52424,6 +52487,15 @@ export type Routes = {
|
|
|
52424
52487
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
52425
52488
|
warning_code: 'being_deleted';
|
|
52426
52489
|
}[];
|
|
52490
|
+
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
52491
|
+
errors: {
|
|
52492
|
+
/** Date and time at which Seam created the error. */
|
|
52493
|
+
created_at: string;
|
|
52494
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
52495
|
+
message: string;
|
|
52496
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
52497
|
+
error_code: 'cannot_create_requested_access_methods';
|
|
52498
|
+
}[];
|
|
52427
52499
|
/** ID of the customization profile associated with the Access Grant. */
|
|
52428
52500
|
customization_profile_id?: string | undefined;
|
|
52429
52501
|
}[];
|
|
@@ -52892,6 +52964,37 @@ export type Routes = {
|
|
|
52892
52964
|
};
|
|
52893
52965
|
maxDuration: undefined;
|
|
52894
52966
|
};
|
|
52967
|
+
'/seam/customer/v1/customers/open_portal': {
|
|
52968
|
+
route: '/seam/customer/v1/customers/open_portal';
|
|
52969
|
+
method: 'POST';
|
|
52970
|
+
queryParams: {};
|
|
52971
|
+
jsonBody: {};
|
|
52972
|
+
commonParams: {
|
|
52973
|
+
/** The customer key to open a portal for. */
|
|
52974
|
+
customer_key: string;
|
|
52975
|
+
};
|
|
52976
|
+
formData: {};
|
|
52977
|
+
jsonResponse: {
|
|
52978
|
+
/** Represents a Customer Portal. Customer Portal is a hosted, customizable interface for managing device access. It enables you to embed secure, pre-authenticated access flows into your product—either by sharing a link with users or embedding a view in an iframe.
|
|
52979
|
+
|
|
52980
|
+
With Customer Portal, you no longer need to build out frontend experiences for physical access, thermostats, and sensors. Instead, you can ship enterprise-grade access control experiences in a fraction of the time, while maintaining your product's branding and user experience.
|
|
52981
|
+
|
|
52982
|
+
Seam hosts these flows, handling everything from account connection and device mapping to full-featured device control. */
|
|
52983
|
+
magic_link: {
|
|
52984
|
+
/** URL for the magic link. */
|
|
52985
|
+
url: string;
|
|
52986
|
+
/** Customer key for the magic link. */
|
|
52987
|
+
customer_key: string;
|
|
52988
|
+
/** Date and time at which the magic link expires. */
|
|
52989
|
+
expires_at: string;
|
|
52990
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the magic link. */
|
|
52991
|
+
workspace_id: string;
|
|
52992
|
+
/** Date and time at which the magic link was created. */
|
|
52993
|
+
created_at: string;
|
|
52994
|
+
};
|
|
52995
|
+
};
|
|
52996
|
+
maxDuration: undefined;
|
|
52997
|
+
};
|
|
52895
52998
|
'/seam/customer/v1/events/list': {
|
|
52896
52999
|
route: '/seam/customer/v1/events/list';
|
|
52897
53000
|
method: 'GET' | 'POST';
|
|
@@ -55267,6 +55370,15 @@ export type Routes = {
|
|
|
55267
55370
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
55268
55371
|
warning_code: 'being_deleted';
|
|
55269
55372
|
}[];
|
|
55373
|
+
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
55374
|
+
errors: {
|
|
55375
|
+
/** Date and time at which Seam created the error. */
|
|
55376
|
+
created_at: string;
|
|
55377
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
55378
|
+
message: string;
|
|
55379
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
55380
|
+
error_code: 'cannot_create_requested_access_methods';
|
|
55381
|
+
}[];
|
|
55270
55382
|
/** ID of the customization profile associated with the Access Grant. */
|
|
55271
55383
|
customization_profile_id?: string | undefined;
|
|
55272
55384
|
};
|
|
@@ -81508,6 +81620,15 @@ export type Routes = {
|
|
|
81508
81620
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
81509
81621
|
warning_code: 'being_deleted';
|
|
81510
81622
|
}[];
|
|
81623
|
+
/** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
81624
|
+
errors: {
|
|
81625
|
+
/** Date and time at which Seam created the error. */
|
|
81626
|
+
created_at: string;
|
|
81627
|
+
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
|
|
81628
|
+
message: string;
|
|
81629
|
+
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
|
|
81630
|
+
error_code: 'cannot_create_requested_access_methods';
|
|
81631
|
+
}[];
|
|
81511
81632
|
/** ID of the customization profile associated with the Access Grant. */
|
|
81512
81633
|
customization_profile_id?: string | undefined;
|
|
81513
81634
|
}[] | undefined;
|
package/package.json
CHANGED
|
@@ -2,6 +2,28 @@ import { z } from 'zod'
|
|
|
2
2
|
|
|
3
3
|
import { requested_access_method } from './requested-access-method.js'
|
|
4
4
|
|
|
5
|
+
const common_access_grant_error = z.object({
|
|
6
|
+
created_at: z
|
|
7
|
+
.string()
|
|
8
|
+
.datetime()
|
|
9
|
+
.describe('Date and time at which Seam created the error.'),
|
|
10
|
+
message: z
|
|
11
|
+
.string()
|
|
12
|
+
.describe(
|
|
13
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
14
|
+
),
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
const error_code_description =
|
|
18
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.'
|
|
19
|
+
|
|
20
|
+
const cannot_create_requested_access_methods_error =
|
|
21
|
+
common_access_grant_error.extend({
|
|
22
|
+
error_code: z
|
|
23
|
+
.literal('cannot_create_requested_access_methods')
|
|
24
|
+
.describe(error_code_description),
|
|
25
|
+
})
|
|
26
|
+
|
|
5
27
|
const common_access_grant_warning = z.object({
|
|
6
28
|
created_at: z
|
|
7
29
|
.string()
|
|
@@ -17,6 +39,19 @@ const common_access_grant_warning = z.object({
|
|
|
17
39
|
const warning_code_description =
|
|
18
40
|
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.'
|
|
19
41
|
|
|
42
|
+
const access_grant_error = z.discriminatedUnion('error_code', [
|
|
43
|
+
cannot_create_requested_access_methods_error,
|
|
44
|
+
])
|
|
45
|
+
|
|
46
|
+
export type AccessGrantError = z.infer<typeof access_grant_error>
|
|
47
|
+
|
|
48
|
+
export const _access_grant_error_map = z.object({
|
|
49
|
+
cannot_create_requested_access_methods:
|
|
50
|
+
cannot_create_requested_access_methods_error.optional().nullable(),
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
export type AccessGrantErrorMap = z.infer<typeof _access_grant_error_map>
|
|
54
|
+
|
|
20
55
|
const being_deleted = common_access_grant_warning
|
|
21
56
|
.extend({
|
|
22
57
|
warning_code: z.literal('being_deleted').describe(warning_code_description),
|
|
@@ -107,6 +142,11 @@ export const access_grant = z.object({
|
|
|
107
142
|
.describe(
|
|
108
143
|
'Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
|
|
109
144
|
),
|
|
145
|
+
errors: z
|
|
146
|
+
.array(access_grant_error)
|
|
147
|
+
.describe(
|
|
148
|
+
'Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
|
|
149
|
+
),
|
|
110
150
|
customization_profile_id: z
|
|
111
151
|
.string()
|
|
112
152
|
.uuid()
|
|
@@ -1888,6 +1888,39 @@ export default {
|
|
|
1888
1888
|
nullable: true,
|
|
1889
1889
|
type: 'string',
|
|
1890
1890
|
},
|
|
1891
|
+
errors: {
|
|
1892
|
+
description:
|
|
1893
|
+
'Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
|
|
1894
|
+
items: {
|
|
1895
|
+
discriminator: { propertyName: 'error_code' },
|
|
1896
|
+
oneOf: [
|
|
1897
|
+
{
|
|
1898
|
+
properties: {
|
|
1899
|
+
created_at: {
|
|
1900
|
+
description:
|
|
1901
|
+
'Date and time at which Seam created the error.',
|
|
1902
|
+
format: 'date-time',
|
|
1903
|
+
type: 'string',
|
|
1904
|
+
},
|
|
1905
|
+
error_code: {
|
|
1906
|
+
description:
|
|
1907
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
1908
|
+
enum: ['cannot_create_requested_access_methods'],
|
|
1909
|
+
type: 'string',
|
|
1910
|
+
},
|
|
1911
|
+
message: {
|
|
1912
|
+
description:
|
|
1913
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
1914
|
+
type: 'string',
|
|
1915
|
+
},
|
|
1916
|
+
},
|
|
1917
|
+
required: ['created_at', 'message', 'error_code'],
|
|
1918
|
+
type: 'object',
|
|
1919
|
+
},
|
|
1920
|
+
],
|
|
1921
|
+
},
|
|
1922
|
+
type: 'array',
|
|
1923
|
+
},
|
|
1891
1924
|
instant_key_url: {
|
|
1892
1925
|
description:
|
|
1893
1926
|
'Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. ',
|
|
@@ -2031,6 +2064,7 @@ export default {
|
|
|
2031
2064
|
'starts_at',
|
|
2032
2065
|
'ends_at',
|
|
2033
2066
|
'warnings',
|
|
2067
|
+
'errors',
|
|
2034
2068
|
],
|
|
2035
2069
|
type: 'object',
|
|
2036
2070
|
'x-draft': 'Early access.',
|
|
@@ -30156,6 +30190,45 @@ export default {
|
|
|
30156
30190
|
nullable: true,
|
|
30157
30191
|
type: 'string',
|
|
30158
30192
|
},
|
|
30193
|
+
errors: {
|
|
30194
|
+
description:
|
|
30195
|
+
'Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
|
|
30196
|
+
items: {
|
|
30197
|
+
discriminator: { propertyName: 'error_code' },
|
|
30198
|
+
oneOf: [
|
|
30199
|
+
{
|
|
30200
|
+
properties: {
|
|
30201
|
+
created_at: {
|
|
30202
|
+
description:
|
|
30203
|
+
'Date and time at which Seam created the error.',
|
|
30204
|
+
format: 'date-time',
|
|
30205
|
+
type: 'string',
|
|
30206
|
+
},
|
|
30207
|
+
error_code: {
|
|
30208
|
+
description:
|
|
30209
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
30210
|
+
enum: [
|
|
30211
|
+
'cannot_create_requested_access_methods',
|
|
30212
|
+
],
|
|
30213
|
+
type: 'string',
|
|
30214
|
+
},
|
|
30215
|
+
message: {
|
|
30216
|
+
description:
|
|
30217
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
30218
|
+
type: 'string',
|
|
30219
|
+
},
|
|
30220
|
+
},
|
|
30221
|
+
required: [
|
|
30222
|
+
'created_at',
|
|
30223
|
+
'message',
|
|
30224
|
+
'error_code',
|
|
30225
|
+
],
|
|
30226
|
+
type: 'object',
|
|
30227
|
+
},
|
|
30228
|
+
],
|
|
30229
|
+
},
|
|
30230
|
+
type: 'array',
|
|
30231
|
+
},
|
|
30159
30232
|
location_ids: {
|
|
30160
30233
|
deprecated: true,
|
|
30161
30234
|
items: { format: 'uuid', type: 'string' },
|
|
@@ -30298,6 +30371,7 @@ export default {
|
|
|
30298
30371
|
'starts_at',
|
|
30299
30372
|
'ends_at',
|
|
30300
30373
|
'warnings',
|
|
30374
|
+
'errors',
|
|
30301
30375
|
],
|
|
30302
30376
|
type: 'object',
|
|
30303
30377
|
'x-draft': 'Early access.',
|
|
@@ -30389,6 +30463,45 @@ export default {
|
|
|
30389
30463
|
nullable: true,
|
|
30390
30464
|
type: 'string',
|
|
30391
30465
|
},
|
|
30466
|
+
errors: {
|
|
30467
|
+
description:
|
|
30468
|
+
'Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
|
|
30469
|
+
items: {
|
|
30470
|
+
discriminator: { propertyName: 'error_code' },
|
|
30471
|
+
oneOf: [
|
|
30472
|
+
{
|
|
30473
|
+
properties: {
|
|
30474
|
+
created_at: {
|
|
30475
|
+
description:
|
|
30476
|
+
'Date and time at which Seam created the error.',
|
|
30477
|
+
format: 'date-time',
|
|
30478
|
+
type: 'string',
|
|
30479
|
+
},
|
|
30480
|
+
error_code: {
|
|
30481
|
+
description:
|
|
30482
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
30483
|
+
enum: [
|
|
30484
|
+
'cannot_create_requested_access_methods',
|
|
30485
|
+
],
|
|
30486
|
+
type: 'string',
|
|
30487
|
+
},
|
|
30488
|
+
message: {
|
|
30489
|
+
description:
|
|
30490
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
30491
|
+
type: 'string',
|
|
30492
|
+
},
|
|
30493
|
+
},
|
|
30494
|
+
required: [
|
|
30495
|
+
'created_at',
|
|
30496
|
+
'message',
|
|
30497
|
+
'error_code',
|
|
30498
|
+
],
|
|
30499
|
+
type: 'object',
|
|
30500
|
+
},
|
|
30501
|
+
],
|
|
30502
|
+
},
|
|
30503
|
+
type: 'array',
|
|
30504
|
+
},
|
|
30392
30505
|
location_ids: {
|
|
30393
30506
|
deprecated: true,
|
|
30394
30507
|
items: { format: 'uuid', type: 'string' },
|
|
@@ -30531,6 +30644,7 @@ export default {
|
|
|
30531
30644
|
'starts_at',
|
|
30532
30645
|
'ends_at',
|
|
30533
30646
|
'warnings',
|
|
30647
|
+
'errors',
|
|
30534
30648
|
],
|
|
30535
30649
|
type: 'object',
|
|
30536
30650
|
'x-draft': 'Early access.',
|
|
@@ -30647,6 +30761,45 @@ export default {
|
|
|
30647
30761
|
nullable: true,
|
|
30648
30762
|
type: 'string',
|
|
30649
30763
|
},
|
|
30764
|
+
errors: {
|
|
30765
|
+
description:
|
|
30766
|
+
'Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
|
|
30767
|
+
items: {
|
|
30768
|
+
discriminator: { propertyName: 'error_code' },
|
|
30769
|
+
oneOf: [
|
|
30770
|
+
{
|
|
30771
|
+
properties: {
|
|
30772
|
+
created_at: {
|
|
30773
|
+
description:
|
|
30774
|
+
'Date and time at which Seam created the error.',
|
|
30775
|
+
format: 'date-time',
|
|
30776
|
+
type: 'string',
|
|
30777
|
+
},
|
|
30778
|
+
error_code: {
|
|
30779
|
+
description:
|
|
30780
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
30781
|
+
enum: [
|
|
30782
|
+
'cannot_create_requested_access_methods',
|
|
30783
|
+
],
|
|
30784
|
+
type: 'string',
|
|
30785
|
+
},
|
|
30786
|
+
message: {
|
|
30787
|
+
description:
|
|
30788
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
30789
|
+
type: 'string',
|
|
30790
|
+
},
|
|
30791
|
+
},
|
|
30792
|
+
required: [
|
|
30793
|
+
'created_at',
|
|
30794
|
+
'message',
|
|
30795
|
+
'error_code',
|
|
30796
|
+
],
|
|
30797
|
+
type: 'object',
|
|
30798
|
+
},
|
|
30799
|
+
],
|
|
30800
|
+
},
|
|
30801
|
+
type: 'array',
|
|
30802
|
+
},
|
|
30650
30803
|
location_ids: {
|
|
30651
30804
|
deprecated: true,
|
|
30652
30805
|
items: { format: 'uuid', type: 'string' },
|
|
@@ -30790,6 +30943,7 @@ export default {
|
|
|
30790
30943
|
'starts_at',
|
|
30791
30944
|
'ends_at',
|
|
30792
30945
|
'warnings',
|
|
30946
|
+
'errors',
|
|
30793
30947
|
],
|
|
30794
30948
|
type: 'object',
|
|
30795
30949
|
'x-draft': 'Early access.',
|
|
@@ -30900,6 +31054,45 @@ export default {
|
|
|
30900
31054
|
nullable: true,
|
|
30901
31055
|
type: 'string',
|
|
30902
31056
|
},
|
|
31057
|
+
errors: {
|
|
31058
|
+
description:
|
|
31059
|
+
'Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants).',
|
|
31060
|
+
items: {
|
|
31061
|
+
discriminator: { propertyName: 'error_code' },
|
|
31062
|
+
oneOf: [
|
|
31063
|
+
{
|
|
31064
|
+
properties: {
|
|
31065
|
+
created_at: {
|
|
31066
|
+
description:
|
|
31067
|
+
'Date and time at which Seam created the error.',
|
|
31068
|
+
format: 'date-time',
|
|
31069
|
+
type: 'string',
|
|
31070
|
+
},
|
|
31071
|
+
error_code: {
|
|
31072
|
+
description:
|
|
31073
|
+
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
|
|
31074
|
+
enum: [
|
|
31075
|
+
'cannot_create_requested_access_methods',
|
|
31076
|
+
],
|
|
31077
|
+
type: 'string',
|
|
31078
|
+
},
|
|
31079
|
+
message: {
|
|
31080
|
+
description:
|
|
31081
|
+
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
31082
|
+
type: 'string',
|
|
31083
|
+
},
|
|
31084
|
+
},
|
|
31085
|
+
required: [
|
|
31086
|
+
'created_at',
|
|
31087
|
+
'message',
|
|
31088
|
+
'error_code',
|
|
31089
|
+
],
|
|
31090
|
+
type: 'object',
|
|
31091
|
+
},
|
|
31092
|
+
],
|
|
31093
|
+
},
|
|
31094
|
+
type: 'array',
|
|
31095
|
+
},
|
|
30903
31096
|
location_ids: {
|
|
30904
31097
|
deprecated: true,
|
|
30905
31098
|
items: { format: 'uuid', type: 'string' },
|
|
@@ -31043,6 +31236,7 @@ export default {
|
|
|
31043
31236
|
'starts_at',
|
|
31044
31237
|
'ends_at',
|
|
31045
31238
|
'warnings',
|
|
31239
|
+
'errors',
|
|
31046
31240
|
],
|
|
31047
31241
|
type: 'object',
|
|
31048
31242
|
'x-draft': 'Early access.',
|
|
@@ -54937,6 +55131,61 @@ export default {
|
|
|
54937
55131
|
'x-undocumented': 'Internal endpoint for Console.',
|
|
54938
55132
|
},
|
|
54939
55133
|
},
|
|
55134
|
+
'/seam/customer/v1/customers/open_portal': {
|
|
55135
|
+
post: {
|
|
55136
|
+
description:
|
|
55137
|
+
'Opens an existing customer portal or creates a new one if the previous portal has expired.\nReturns an error if no portal was ever created for this customer.',
|
|
55138
|
+
operationId: 'seamCustomerV1CustomersOpenPortalPost',
|
|
55139
|
+
requestBody: {
|
|
55140
|
+
content: {
|
|
55141
|
+
'application/json': {
|
|
55142
|
+
schema: {
|
|
55143
|
+
properties: {
|
|
55144
|
+
customer_key: {
|
|
55145
|
+
description: 'The customer key to open a portal for.',
|
|
55146
|
+
type: 'string',
|
|
55147
|
+
},
|
|
55148
|
+
},
|
|
55149
|
+
required: ['customer_key'],
|
|
55150
|
+
type: 'object',
|
|
55151
|
+
},
|
|
55152
|
+
},
|
|
55153
|
+
},
|
|
55154
|
+
},
|
|
55155
|
+
responses: {
|
|
55156
|
+
200: {
|
|
55157
|
+
content: {
|
|
55158
|
+
'application/json': {
|
|
55159
|
+
schema: {
|
|
55160
|
+
properties: {
|
|
55161
|
+
magic_link: { $ref: '#/components/schemas/magic_link' },
|
|
55162
|
+
ok: { type: 'boolean' },
|
|
55163
|
+
},
|
|
55164
|
+
required: ['magic_link', 'ok'],
|
|
55165
|
+
type: 'object',
|
|
55166
|
+
},
|
|
55167
|
+
},
|
|
55168
|
+
},
|
|
55169
|
+
description: 'OK',
|
|
55170
|
+
},
|
|
55171
|
+
400: { description: 'Bad Request' },
|
|
55172
|
+
401: { description: 'Unauthorized' },
|
|
55173
|
+
},
|
|
55174
|
+
security: [
|
|
55175
|
+
{ pat_with_workspace: [] },
|
|
55176
|
+
{ console_session_with_workspace: [] },
|
|
55177
|
+
{ api_key: [] },
|
|
55178
|
+
],
|
|
55179
|
+
summary: '/seam/customer/v1/customers/open_portal',
|
|
55180
|
+
tags: [],
|
|
55181
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'customers'],
|
|
55182
|
+
'x-fern-sdk-method-name': 'open_portal',
|
|
55183
|
+
'x-fern-sdk-return-value': 'magic_link',
|
|
55184
|
+
'x-response-key': 'magic_link',
|
|
55185
|
+
'x-title': 'Open Customer Portal',
|
|
55186
|
+
'x-undocumented': 'Internal endpoint for Console.',
|
|
55187
|
+
},
|
|
55188
|
+
},
|
|
54940
55189
|
'/seam/customer/v1/events/list': {
|
|
54941
55190
|
get: {
|
|
54942
55191
|
description:
|