@seamapi/types 1.630.0 → 1.632.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 +86 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +202 -0
- package/dist/index.cjs +86 -4
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +135 -0
- package/lib/seam/connect/openapi.js +82 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +67 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +82 -0
- package/src/lib/seam/connect/route-types.ts +67 -0
|
@@ -57078,6 +57078,73 @@ export type Routes = {
|
|
|
57078
57078
|
};
|
|
57079
57079
|
};
|
|
57080
57080
|
};
|
|
57081
|
+
'/seam/customer/v1/access_grants/list': {
|
|
57082
|
+
route: '/seam/customer/v1/access_grants/list';
|
|
57083
|
+
method: 'GET' | 'POST';
|
|
57084
|
+
queryParams: {};
|
|
57085
|
+
jsonBody: {};
|
|
57086
|
+
commonParams: {};
|
|
57087
|
+
formData: {};
|
|
57088
|
+
jsonResponse: {
|
|
57089
|
+
access_grants: {
|
|
57090
|
+
/** ID of the Seam workspace associated with the Access Grant. */
|
|
57091
|
+
workspace_id: string;
|
|
57092
|
+
/** ID of the Access Grant. */
|
|
57093
|
+
access_grant_id: string;
|
|
57094
|
+
/** Unique key for the access grant within the workspace. */
|
|
57095
|
+
access_grant_key?: string | undefined;
|
|
57096
|
+
/** Reservation key for the access grant. */
|
|
57097
|
+
reservation_key?: string | undefined;
|
|
57098
|
+
/** ID of user identity to which the Access Grant gives access. */
|
|
57099
|
+
user_identity_id: string;
|
|
57100
|
+
/**
|
|
57101
|
+
* @deprecated Use `space_ids`.*/
|
|
57102
|
+
location_ids: string[];
|
|
57103
|
+
/** IDs of the spaces to which the Access Grant gives access. */
|
|
57104
|
+
space_ids: string[];
|
|
57105
|
+
/** Access methods that the user requested for the Access Grant. */
|
|
57106
|
+
requested_access_methods: {
|
|
57107
|
+
/** Display name of the access method. */
|
|
57108
|
+
display_name: string;
|
|
57109
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
57110
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
57111
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
57112
|
+
code?: string | undefined;
|
|
57113
|
+
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
57114
|
+
created_at: string;
|
|
57115
|
+
/** IDs of the access methods created for the requested access method. */
|
|
57116
|
+
created_access_method_ids: string[];
|
|
57117
|
+
}[];
|
|
57118
|
+
/** IDs of the access methods created for the Access Grant. */
|
|
57119
|
+
access_method_ids: string[];
|
|
57120
|
+
/** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
|
|
57121
|
+
client_session_token?: string | undefined;
|
|
57122
|
+
/** Name of the Access Grant. If not provided, the display name will be computed. */
|
|
57123
|
+
name: string | null;
|
|
57124
|
+
/** Display name of the Access Grant. */
|
|
57125
|
+
display_name: string;
|
|
57126
|
+
/** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
|
|
57127
|
+
instant_key_url?: string | undefined;
|
|
57128
|
+
/** Date and time at which the Access Grant was created. */
|
|
57129
|
+
created_at: string;
|
|
57130
|
+
/** Date and time at which the Access Grant starts. */
|
|
57131
|
+
starts_at: string;
|
|
57132
|
+
/** Date and time at which the Access Grant ends. */
|
|
57133
|
+
ends_at: string | null;
|
|
57134
|
+
/** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
57135
|
+
warnings: {
|
|
57136
|
+
/** Date and time at which Seam created the warning. */
|
|
57137
|
+
created_at: string;
|
|
57138
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
57139
|
+
message: string;
|
|
57140
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
57141
|
+
warning_code: 'being_deleted';
|
|
57142
|
+
}[];
|
|
57143
|
+
/** ID of the customization profile associated with the Access Grant. */
|
|
57144
|
+
customization_profile_id?: string | undefined;
|
|
57145
|
+
}[];
|
|
57146
|
+
};
|
|
57147
|
+
};
|
|
57081
57148
|
'/seam/customer/v1/automation_runs/list': {
|
|
57082
57149
|
route: '/seam/customer/v1/automation_runs/list';
|
|
57083
57150
|
method: 'GET' | 'POST';
|
package/package.json
CHANGED
|
@@ -31292,6 +31292,7 @@ export default {
|
|
|
31292
31292
|
{ pat_with_workspace: [] },
|
|
31293
31293
|
{ console_session_with_workspace: [] },
|
|
31294
31294
|
{ api_key: [] },
|
|
31295
|
+
{ client_session_with_customer: [] },
|
|
31295
31296
|
],
|
|
31296
31297
|
summary: '/access_methods/get_related',
|
|
31297
31298
|
tags: [],
|
|
@@ -31529,6 +31530,7 @@ export default {
|
|
|
31529
31530
|
{ pat_with_workspace: [] },
|
|
31530
31531
|
{ console_session_with_workspace: [] },
|
|
31531
31532
|
{ api_key: [] },
|
|
31533
|
+
{ client_session_with_customer: [] },
|
|
31532
31534
|
],
|
|
31533
31535
|
summary: '/access_methods/get_related',
|
|
31534
31536
|
tags: [],
|
|
@@ -51160,6 +51162,84 @@ export default {
|
|
|
51160
51162
|
'x-undocumented': 'Internal endpoint for Console',
|
|
51161
51163
|
},
|
|
51162
51164
|
},
|
|
51165
|
+
'/seam/customer/v1/access_grants/list': {
|
|
51166
|
+
get: {
|
|
51167
|
+
description: 'Gets an Access Grant.',
|
|
51168
|
+
operationId: 'seamCustomerV1AccessGrantsListGet',
|
|
51169
|
+
parameters: [],
|
|
51170
|
+
responses: {
|
|
51171
|
+
200: {
|
|
51172
|
+
content: {
|
|
51173
|
+
'application/json': {
|
|
51174
|
+
schema: {
|
|
51175
|
+
properties: {
|
|
51176
|
+
access_grants: {
|
|
51177
|
+
items: { $ref: '#/components/schemas/access_grant' },
|
|
51178
|
+
type: 'array',
|
|
51179
|
+
},
|
|
51180
|
+
ok: { type: 'boolean' },
|
|
51181
|
+
},
|
|
51182
|
+
required: ['access_grants', 'ok'],
|
|
51183
|
+
type: 'object',
|
|
51184
|
+
},
|
|
51185
|
+
},
|
|
51186
|
+
},
|
|
51187
|
+
description: 'OK',
|
|
51188
|
+
},
|
|
51189
|
+
400: { description: 'Bad Request' },
|
|
51190
|
+
401: { description: 'Unauthorized' },
|
|
51191
|
+
},
|
|
51192
|
+
security: [{ client_session_with_customer: [] }],
|
|
51193
|
+
summary: '/seam/customer/v1/access_grants/list',
|
|
51194
|
+
tags: [],
|
|
51195
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'access_grants'],
|
|
51196
|
+
'x-fern-sdk-method-name': 'list',
|
|
51197
|
+
'x-fern-sdk-return-value': 'access_grants',
|
|
51198
|
+
'x-response-key': 'access_grants',
|
|
51199
|
+
'x-title': 'List Access Grants (Other Access)',
|
|
51200
|
+
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
51201
|
+
},
|
|
51202
|
+
post: {
|
|
51203
|
+
description: 'Gets an Access Grant.',
|
|
51204
|
+
operationId: 'seamCustomerV1AccessGrantsListPost',
|
|
51205
|
+
requestBody: {
|
|
51206
|
+
content: {
|
|
51207
|
+
'application/json': { schema: { properties: {}, type: 'object' } },
|
|
51208
|
+
},
|
|
51209
|
+
},
|
|
51210
|
+
responses: {
|
|
51211
|
+
200: {
|
|
51212
|
+
content: {
|
|
51213
|
+
'application/json': {
|
|
51214
|
+
schema: {
|
|
51215
|
+
properties: {
|
|
51216
|
+
access_grants: {
|
|
51217
|
+
items: { $ref: '#/components/schemas/access_grant' },
|
|
51218
|
+
type: 'array',
|
|
51219
|
+
},
|
|
51220
|
+
ok: { type: 'boolean' },
|
|
51221
|
+
},
|
|
51222
|
+
required: ['access_grants', 'ok'],
|
|
51223
|
+
type: 'object',
|
|
51224
|
+
},
|
|
51225
|
+
},
|
|
51226
|
+
},
|
|
51227
|
+
description: 'OK',
|
|
51228
|
+
},
|
|
51229
|
+
400: { description: 'Bad Request' },
|
|
51230
|
+
401: { description: 'Unauthorized' },
|
|
51231
|
+
},
|
|
51232
|
+
security: [{ client_session_with_customer: [] }],
|
|
51233
|
+
summary: '/seam/customer/v1/access_grants/list',
|
|
51234
|
+
tags: [],
|
|
51235
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'access_grants'],
|
|
51236
|
+
'x-fern-sdk-method-name': 'list',
|
|
51237
|
+
'x-fern-sdk-return-value': 'access_grants',
|
|
51238
|
+
'x-response-key': 'access_grants',
|
|
51239
|
+
'x-title': 'List Access Grants (Other Access)',
|
|
51240
|
+
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
51241
|
+
},
|
|
51242
|
+
},
|
|
51163
51243
|
'/seam/customer/v1/automation_runs/list': {
|
|
51164
51244
|
get: {
|
|
51165
51245
|
description:
|
|
@@ -61992,6 +62072,7 @@ export default {
|
|
|
61992
62072
|
{ api_key: [] },
|
|
61993
62073
|
{ pat_with_workspace: [] },
|
|
61994
62074
|
{ console_session_with_workspace: [] },
|
|
62075
|
+
{ client_session_with_customer: [] },
|
|
61995
62076
|
],
|
|
61996
62077
|
summary: '/user_identities/get',
|
|
61997
62078
|
tags: ['/user_identities'],
|
|
@@ -62057,6 +62138,7 @@ export default {
|
|
|
62057
62138
|
{ api_key: [] },
|
|
62058
62139
|
{ pat_with_workspace: [] },
|
|
62059
62140
|
{ console_session_with_workspace: [] },
|
|
62141
|
+
{ client_session_with_customer: [] },
|
|
62060
62142
|
],
|
|
62061
62143
|
summary: '/user_identities/get',
|
|
62062
62144
|
tags: ['/user_identities'],
|
|
@@ -67820,6 +67820,73 @@ export type Routes = {
|
|
|
67820
67820
|
}
|
|
67821
67821
|
}
|
|
67822
67822
|
}
|
|
67823
|
+
'/seam/customer/v1/access_grants/list': {
|
|
67824
|
+
route: '/seam/customer/v1/access_grants/list'
|
|
67825
|
+
method: 'GET' | 'POST'
|
|
67826
|
+
queryParams: {}
|
|
67827
|
+
jsonBody: {}
|
|
67828
|
+
commonParams: {}
|
|
67829
|
+
formData: {}
|
|
67830
|
+
jsonResponse: {
|
|
67831
|
+
access_grants: {
|
|
67832
|
+
/** ID of the Seam workspace associated with the Access Grant. */
|
|
67833
|
+
workspace_id: string
|
|
67834
|
+
/** ID of the Access Grant. */
|
|
67835
|
+
access_grant_id: string
|
|
67836
|
+
/** Unique key for the access grant within the workspace. */
|
|
67837
|
+
access_grant_key?: string | undefined
|
|
67838
|
+
/** Reservation key for the access grant. */
|
|
67839
|
+
reservation_key?: string | undefined
|
|
67840
|
+
/** ID of user identity to which the Access Grant gives access. */
|
|
67841
|
+
user_identity_id: string
|
|
67842
|
+
/**
|
|
67843
|
+
* @deprecated Use `space_ids`.*/
|
|
67844
|
+
location_ids: string[]
|
|
67845
|
+
/** IDs of the spaces to which the Access Grant gives access. */
|
|
67846
|
+
space_ids: string[]
|
|
67847
|
+
/** Access methods that the user requested for the Access Grant. */
|
|
67848
|
+
requested_access_methods: {
|
|
67849
|
+
/** Display name of the access method. */
|
|
67850
|
+
display_name: string
|
|
67851
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
67852
|
+
mode: 'code' | 'card' | 'mobile_key'
|
|
67853
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
67854
|
+
code?: string | undefined
|
|
67855
|
+
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
67856
|
+
created_at: string
|
|
67857
|
+
/** IDs of the access methods created for the requested access method. */
|
|
67858
|
+
created_access_method_ids: string[]
|
|
67859
|
+
}[]
|
|
67860
|
+
/** IDs of the access methods created for the Access Grant. */
|
|
67861
|
+
access_method_ids: string[]
|
|
67862
|
+
/** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
|
|
67863
|
+
client_session_token?: string | undefined
|
|
67864
|
+
/** Name of the Access Grant. If not provided, the display name will be computed. */
|
|
67865
|
+
name: string | null
|
|
67866
|
+
/** Display name of the Access Grant. */
|
|
67867
|
+
display_name: string
|
|
67868
|
+
/** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
|
|
67869
|
+
instant_key_url?: string | undefined
|
|
67870
|
+
/** Date and time at which the Access Grant was created. */
|
|
67871
|
+
created_at: string
|
|
67872
|
+
/** Date and time at which the Access Grant starts. */
|
|
67873
|
+
starts_at: string
|
|
67874
|
+
/** Date and time at which the Access Grant ends. */
|
|
67875
|
+
ends_at: string | null
|
|
67876
|
+
/** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
67877
|
+
warnings: {
|
|
67878
|
+
/** Date and time at which Seam created the warning. */
|
|
67879
|
+
created_at: string
|
|
67880
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
67881
|
+
message: string
|
|
67882
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
67883
|
+
warning_code: 'being_deleted'
|
|
67884
|
+
}[]
|
|
67885
|
+
/** ID of the customization profile associated with the Access Grant. */
|
|
67886
|
+
customization_profile_id?: string | undefined
|
|
67887
|
+
}[]
|
|
67888
|
+
}
|
|
67889
|
+
}
|
|
67823
67890
|
'/seam/customer/v1/automation_runs/list': {
|
|
67824
67891
|
route: '/seam/customer/v1/automation_runs/list'
|
|
67825
67892
|
method: 'GET' | 'POST'
|