@seamapi/types 1.623.0 → 1.625.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 +322 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +502 -3
- package/dist/index.cjs +322 -4
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +392 -2
- package/lib/seam/connect/openapi.js +321 -3
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +110 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +333 -3
- package/src/lib/seam/connect/route-types.ts +110 -1
|
@@ -57281,7 +57281,7 @@ export type Routes = {
|
|
|
57281
57281
|
/** Type of connector to create */
|
|
57282
57282
|
connector_type: 'mews' | 'mock';
|
|
57283
57283
|
/** Key identifying the customer */
|
|
57284
|
-
customer_key
|
|
57284
|
+
customer_key?: string | undefined;
|
|
57285
57285
|
/** Instance-specific configuration for the connector */
|
|
57286
57286
|
config: {
|
|
57287
57287
|
client_token?: string | undefined;
|
|
@@ -57308,6 +57308,26 @@ export type Routes = {
|
|
|
57308
57308
|
};
|
|
57309
57309
|
};
|
|
57310
57310
|
};
|
|
57311
|
+
'/seam/customer/v1/connectors/list': {
|
|
57312
|
+
route: '/seam/customer/v1/connectors/list';
|
|
57313
|
+
method: 'GET' | 'POST';
|
|
57314
|
+
queryParams: {};
|
|
57315
|
+
jsonBody: {};
|
|
57316
|
+
commonParams: {};
|
|
57317
|
+
formData: {};
|
|
57318
|
+
jsonResponse: {
|
|
57319
|
+
connectors: {
|
|
57320
|
+
connector_id: string;
|
|
57321
|
+
connector_type: string;
|
|
57322
|
+
status: 'active' | 'inactive' | 'error';
|
|
57323
|
+
config: {
|
|
57324
|
+
[x: string]: any;
|
|
57325
|
+
};
|
|
57326
|
+
created_at: string;
|
|
57327
|
+
updated_at: string;
|
|
57328
|
+
}[];
|
|
57329
|
+
};
|
|
57330
|
+
};
|
|
57311
57331
|
'/seam/customer/v1/connectors/sync': {
|
|
57312
57332
|
route: '/seam/customer/v1/connectors/sync';
|
|
57313
57333
|
method: 'POST';
|
|
@@ -59551,6 +59571,95 @@ export type Routes = {
|
|
|
59551
59571
|
}[];
|
|
59552
59572
|
};
|
|
59553
59573
|
};
|
|
59574
|
+
'/seam/customer/v1/staff_members/get': {
|
|
59575
|
+
route: '/seam/customer/v1/staff_members/get';
|
|
59576
|
+
method: 'GET' | 'POST';
|
|
59577
|
+
queryParams: {};
|
|
59578
|
+
jsonBody: {};
|
|
59579
|
+
commonParams: {
|
|
59580
|
+
/** Key of staff member to get. */
|
|
59581
|
+
staff_member_key: string;
|
|
59582
|
+
};
|
|
59583
|
+
formData: {};
|
|
59584
|
+
jsonResponse: {
|
|
59585
|
+
/** Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant. */
|
|
59586
|
+
access_grant: {
|
|
59587
|
+
/** ID of the Seam workspace associated with the Access Grant. */
|
|
59588
|
+
workspace_id: string;
|
|
59589
|
+
/** ID of the Access Grant. */
|
|
59590
|
+
access_grant_id: string;
|
|
59591
|
+
/** Unique key for the access grant within the workspace. */
|
|
59592
|
+
access_grant_key?: string | undefined;
|
|
59593
|
+
/** Reservation key for the access grant. */
|
|
59594
|
+
reservation_key?: string | undefined;
|
|
59595
|
+
/** ID of user identity to which the Access Grant gives access. */
|
|
59596
|
+
user_identity_id: string;
|
|
59597
|
+
/**
|
|
59598
|
+
* @deprecated Use `space_ids`.*/
|
|
59599
|
+
location_ids: string[];
|
|
59600
|
+
/** IDs of the spaces to which the Access Grant gives access. */
|
|
59601
|
+
space_ids: string[];
|
|
59602
|
+
/** Access methods that the user requested for the Access Grant. */
|
|
59603
|
+
requested_access_methods: {
|
|
59604
|
+
/** Display name of the access method. */
|
|
59605
|
+
display_name: string;
|
|
59606
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
59607
|
+
mode: 'code' | 'card' | 'mobile_key';
|
|
59608
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
59609
|
+
code?: string | undefined;
|
|
59610
|
+
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
59611
|
+
created_at: string;
|
|
59612
|
+
/** IDs of the access methods created for the requested access method. */
|
|
59613
|
+
created_access_method_ids: string[];
|
|
59614
|
+
}[];
|
|
59615
|
+
/** IDs of the access methods created for the Access Grant. */
|
|
59616
|
+
access_method_ids: string[];
|
|
59617
|
+
/** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
|
|
59618
|
+
client_session_token?: string | undefined;
|
|
59619
|
+
/** Name of the Access Grant. If not provided, the display name will be computed. */
|
|
59620
|
+
name: string | null;
|
|
59621
|
+
/** Display name of the Access Grant. */
|
|
59622
|
+
display_name: string;
|
|
59623
|
+
/** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
|
|
59624
|
+
instant_key_url?: string | undefined;
|
|
59625
|
+
/** Date and time at which the Access Grant was created. */
|
|
59626
|
+
created_at: string;
|
|
59627
|
+
/** Date and time at which the Access Grant starts. */
|
|
59628
|
+
starts_at: string;
|
|
59629
|
+
/** Date and time at which the Access Grant ends. */
|
|
59630
|
+
ends_at: string | null;
|
|
59631
|
+
/** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
59632
|
+
warnings: {
|
|
59633
|
+
/** Date and time at which Seam created the warning. */
|
|
59634
|
+
created_at: string;
|
|
59635
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
59636
|
+
message: string;
|
|
59637
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
59638
|
+
warning_code: 'being_deleted';
|
|
59639
|
+
}[];
|
|
59640
|
+
/** ID of the customization profile associated with the Access Grant. */
|
|
59641
|
+
customization_profile_id?: string | undefined;
|
|
59642
|
+
};
|
|
59643
|
+
spaces: {
|
|
59644
|
+
space_key: string;
|
|
59645
|
+
child_space_keys?: string[] | undefined;
|
|
59646
|
+
}[];
|
|
59647
|
+
/** Represents a staff member for a specific customer. */
|
|
59648
|
+
staff_member: {
|
|
59649
|
+
/** Your unique identifier for the staff. */
|
|
59650
|
+
staff_member_key: string;
|
|
59651
|
+
/** Phone number associated with the user identity. */
|
|
59652
|
+
phone_number?: string | undefined;
|
|
59653
|
+
/** Email address associated with the user identity. */
|
|
59654
|
+
email_address?: string | undefined;
|
|
59655
|
+
/** Your display name for this user identity resource. */
|
|
59656
|
+
name: string;
|
|
59657
|
+
/** List of unique identifiers for the spaces the staff member is associated with. */
|
|
59658
|
+
space_keys?: string[] | undefined;
|
|
59659
|
+
user_identity_id?: string | undefined;
|
|
59660
|
+
};
|
|
59661
|
+
};
|
|
59662
|
+
};
|
|
59554
59663
|
'/seam/customer/v1/staff_members/list': {
|
|
59555
59664
|
route: '/seam/customer/v1/staff_members/list';
|
|
59556
59665
|
method: 'GET' | 'POST';
|
package/package.json
CHANGED
|
@@ -52463,7 +52463,7 @@ export default {
|
|
|
52463
52463
|
'/seam/customer/v1/connectors/create': {
|
|
52464
52464
|
post: {
|
|
52465
52465
|
description:
|
|
52466
|
-
'Creates a new connector for a customer in a workspace. The connector will be activated and start syncing data from the external API.',
|
|
52466
|
+
'Creates a new connector for a customer in a workspace. The connector will be activated and start syncing data from the external API.\nIf a connector already exists with the same unique_provider_resource_key, it will be updated instead of creating a new one.',
|
|
52467
52467
|
operationId: 'seamCustomerV1ConnectorsCreatePost',
|
|
52468
52468
|
requestBody: {
|
|
52469
52469
|
content: {
|
|
@@ -52505,7 +52505,7 @@ export default {
|
|
|
52505
52505
|
type: 'string',
|
|
52506
52506
|
},
|
|
52507
52507
|
},
|
|
52508
|
-
required: ['connector_type', '
|
|
52508
|
+
required: ['connector_type', 'config'],
|
|
52509
52509
|
type: 'object',
|
|
52510
52510
|
},
|
|
52511
52511
|
},
|
|
@@ -52563,7 +52563,11 @@ export default {
|
|
|
52563
52563
|
400: { description: 'Bad Request' },
|
|
52564
52564
|
401: { description: 'Unauthorized' },
|
|
52565
52565
|
},
|
|
52566
|
-
security: [
|
|
52566
|
+
security: [
|
|
52567
|
+
{ api_key: [] },
|
|
52568
|
+
{ client_session_with_customer: [] },
|
|
52569
|
+
{ console_session_with_workspace: [] },
|
|
52570
|
+
],
|
|
52567
52571
|
summary: '/seam/customer/v1/connectors/create',
|
|
52568
52572
|
tags: [],
|
|
52569
52573
|
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
|
|
@@ -52571,6 +52575,141 @@ export default {
|
|
|
52571
52575
|
'x-fern-sdk-return-value': 'connector',
|
|
52572
52576
|
'x-response-key': 'connector',
|
|
52573
52577
|
'x-title': 'Create Connector',
|
|
52578
|
+
'x-undocumented': 'Internal endpoint for Console.',
|
|
52579
|
+
},
|
|
52580
|
+
},
|
|
52581
|
+
'/seam/customer/v1/connectors/list': {
|
|
52582
|
+
get: {
|
|
52583
|
+
description:
|
|
52584
|
+
'Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).',
|
|
52585
|
+
operationId: 'seamCustomerV1ConnectorsListGet',
|
|
52586
|
+
responses: {
|
|
52587
|
+
200: {
|
|
52588
|
+
content: {
|
|
52589
|
+
'application/json': {
|
|
52590
|
+
schema: {
|
|
52591
|
+
properties: {
|
|
52592
|
+
connectors: {
|
|
52593
|
+
items: {
|
|
52594
|
+
properties: {
|
|
52595
|
+
config: {
|
|
52596
|
+
additionalProperties: {
|
|
52597
|
+
$ref: '#/components/schemas/access_code',
|
|
52598
|
+
},
|
|
52599
|
+
type: 'object',
|
|
52600
|
+
},
|
|
52601
|
+
connector_id: { type: 'string' },
|
|
52602
|
+
connector_type: { type: 'string' },
|
|
52603
|
+
created_at: { type: 'string' },
|
|
52604
|
+
status: {
|
|
52605
|
+
enum: ['active', 'inactive', 'error'],
|
|
52606
|
+
type: 'string',
|
|
52607
|
+
},
|
|
52608
|
+
updated_at: { type: 'string' },
|
|
52609
|
+
},
|
|
52610
|
+
required: [
|
|
52611
|
+
'connector_id',
|
|
52612
|
+
'connector_type',
|
|
52613
|
+
'status',
|
|
52614
|
+
'config',
|
|
52615
|
+
'created_at',
|
|
52616
|
+
'updated_at',
|
|
52617
|
+
],
|
|
52618
|
+
type: 'object',
|
|
52619
|
+
},
|
|
52620
|
+
type: 'array',
|
|
52621
|
+
},
|
|
52622
|
+
ok: { type: 'boolean' },
|
|
52623
|
+
},
|
|
52624
|
+
required: ['connectors', 'ok'],
|
|
52625
|
+
type: 'object',
|
|
52626
|
+
},
|
|
52627
|
+
},
|
|
52628
|
+
},
|
|
52629
|
+
description: 'OK',
|
|
52630
|
+
},
|
|
52631
|
+
400: { description: 'Bad Request' },
|
|
52632
|
+
401: { description: 'Unauthorized' },
|
|
52633
|
+
},
|
|
52634
|
+
security: [
|
|
52635
|
+
{ api_key: [] },
|
|
52636
|
+
{ client_session_with_customer: [] },
|
|
52637
|
+
{ console_session_with_workspace: [] },
|
|
52638
|
+
],
|
|
52639
|
+
summary: '/seam/customer/v1/connectors/list',
|
|
52640
|
+
tags: [],
|
|
52641
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
|
|
52642
|
+
'x-fern-sdk-method-name': 'list',
|
|
52643
|
+
'x-fern-sdk-return-value': 'connectors',
|
|
52644
|
+
'x-response-key': 'connectors',
|
|
52645
|
+
'x-title': 'List Connectors',
|
|
52646
|
+
'x-undocumented': 'Internal endpoint for Console.',
|
|
52647
|
+
},
|
|
52648
|
+
post: {
|
|
52649
|
+
description:
|
|
52650
|
+
'Lists connectors for a workspace (API key auth) or for a specific customer (customer client session auth).',
|
|
52651
|
+
operationId: 'seamCustomerV1ConnectorsListPost',
|
|
52652
|
+
responses: {
|
|
52653
|
+
200: {
|
|
52654
|
+
content: {
|
|
52655
|
+
'application/json': {
|
|
52656
|
+
schema: {
|
|
52657
|
+
properties: {
|
|
52658
|
+
connectors: {
|
|
52659
|
+
items: {
|
|
52660
|
+
properties: {
|
|
52661
|
+
config: {
|
|
52662
|
+
additionalProperties: {
|
|
52663
|
+
$ref: '#/components/schemas/access_code',
|
|
52664
|
+
},
|
|
52665
|
+
type: 'object',
|
|
52666
|
+
},
|
|
52667
|
+
connector_id: { type: 'string' },
|
|
52668
|
+
connector_type: { type: 'string' },
|
|
52669
|
+
created_at: { type: 'string' },
|
|
52670
|
+
status: {
|
|
52671
|
+
enum: ['active', 'inactive', 'error'],
|
|
52672
|
+
type: 'string',
|
|
52673
|
+
},
|
|
52674
|
+
updated_at: { type: 'string' },
|
|
52675
|
+
},
|
|
52676
|
+
required: [
|
|
52677
|
+
'connector_id',
|
|
52678
|
+
'connector_type',
|
|
52679
|
+
'status',
|
|
52680
|
+
'config',
|
|
52681
|
+
'created_at',
|
|
52682
|
+
'updated_at',
|
|
52683
|
+
],
|
|
52684
|
+
type: 'object',
|
|
52685
|
+
},
|
|
52686
|
+
type: 'array',
|
|
52687
|
+
},
|
|
52688
|
+
ok: { type: 'boolean' },
|
|
52689
|
+
},
|
|
52690
|
+
required: ['connectors', 'ok'],
|
|
52691
|
+
type: 'object',
|
|
52692
|
+
},
|
|
52693
|
+
},
|
|
52694
|
+
},
|
|
52695
|
+
description: 'OK',
|
|
52696
|
+
},
|
|
52697
|
+
400: { description: 'Bad Request' },
|
|
52698
|
+
401: { description: 'Unauthorized' },
|
|
52699
|
+
},
|
|
52700
|
+
security: [
|
|
52701
|
+
{ api_key: [] },
|
|
52702
|
+
{ client_session_with_customer: [] },
|
|
52703
|
+
{ console_session_with_workspace: [] },
|
|
52704
|
+
],
|
|
52705
|
+
summary: '/seam/customer/v1/connectors/list',
|
|
52706
|
+
tags: [],
|
|
52707
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'connectors'],
|
|
52708
|
+
'x-fern-sdk-method-name': 'list',
|
|
52709
|
+
'x-fern-sdk-return-value': 'connectors',
|
|
52710
|
+
'x-response-key': 'connectors',
|
|
52711
|
+
'x-title': 'List Connectors',
|
|
52712
|
+
'x-undocumented': 'Internal endpoint for Console.',
|
|
52574
52713
|
},
|
|
52575
52714
|
},
|
|
52576
52715
|
'/seam/customer/v1/connectors/sync': {
|
|
@@ -54729,6 +54868,197 @@ export default {
|
|
|
54729
54868
|
'x-title': 'List Spaces',
|
|
54730
54869
|
},
|
|
54731
54870
|
},
|
|
54871
|
+
'/seam/customer/v1/staff_members/get': {
|
|
54872
|
+
get: {
|
|
54873
|
+
description: 'Returns a staff member for a specific customer.',
|
|
54874
|
+
operationId: 'seamCustomerV1StaffMembersGetGet',
|
|
54875
|
+
parameters: [
|
|
54876
|
+
{
|
|
54877
|
+
in: 'query',
|
|
54878
|
+
name: 'staff_member_key',
|
|
54879
|
+
required: true,
|
|
54880
|
+
schema: {
|
|
54881
|
+
description: 'Key of staff member to get.',
|
|
54882
|
+
type: 'string',
|
|
54883
|
+
},
|
|
54884
|
+
},
|
|
54885
|
+
],
|
|
54886
|
+
responses: {
|
|
54887
|
+
200: {
|
|
54888
|
+
content: {
|
|
54889
|
+
'application/json': {
|
|
54890
|
+
schema: {
|
|
54891
|
+
properties: {
|
|
54892
|
+
access_grant: { $ref: '#/components/schemas/access_grant' },
|
|
54893
|
+
ok: { type: 'boolean' },
|
|
54894
|
+
spaces: {
|
|
54895
|
+
items: {
|
|
54896
|
+
properties: {
|
|
54897
|
+
child_space_keys: {
|
|
54898
|
+
items: { type: 'string' },
|
|
54899
|
+
type: 'array',
|
|
54900
|
+
},
|
|
54901
|
+
space_key: { type: 'string' },
|
|
54902
|
+
},
|
|
54903
|
+
required: ['space_key'],
|
|
54904
|
+
type: 'object',
|
|
54905
|
+
},
|
|
54906
|
+
type: 'array',
|
|
54907
|
+
},
|
|
54908
|
+
staff_member: {
|
|
54909
|
+
description:
|
|
54910
|
+
'Represents a staff member for a specific customer.',
|
|
54911
|
+
properties: {
|
|
54912
|
+
email_address: {
|
|
54913
|
+
description:
|
|
54914
|
+
'Email address associated with the user identity.',
|
|
54915
|
+
type: 'string',
|
|
54916
|
+
},
|
|
54917
|
+
name: {
|
|
54918
|
+
description:
|
|
54919
|
+
'Your display name for this user identity resource.',
|
|
54920
|
+
type: 'string',
|
|
54921
|
+
},
|
|
54922
|
+
phone_number: {
|
|
54923
|
+
description:
|
|
54924
|
+
'Phone number associated with the user identity.',
|
|
54925
|
+
type: 'string',
|
|
54926
|
+
},
|
|
54927
|
+
space_keys: {
|
|
54928
|
+
description:
|
|
54929
|
+
'List of unique identifiers for the spaces the staff member is associated with.',
|
|
54930
|
+
items: { type: 'string' },
|
|
54931
|
+
type: 'array',
|
|
54932
|
+
},
|
|
54933
|
+
staff_member_key: {
|
|
54934
|
+
description: 'Your unique identifier for the staff.',
|
|
54935
|
+
type: 'string',
|
|
54936
|
+
},
|
|
54937
|
+
user_identity_id: { format: 'uuid', type: 'string' },
|
|
54938
|
+
},
|
|
54939
|
+
required: ['staff_member_key', 'name'],
|
|
54940
|
+
type: 'object',
|
|
54941
|
+
'x-route-path': '/seam/customer/v1/staff_members',
|
|
54942
|
+
},
|
|
54943
|
+
},
|
|
54944
|
+
required: ['access_grant', 'spaces', 'staff_member', 'ok'],
|
|
54945
|
+
type: 'object',
|
|
54946
|
+
},
|
|
54947
|
+
},
|
|
54948
|
+
},
|
|
54949
|
+
description: 'OK',
|
|
54950
|
+
},
|
|
54951
|
+
400: { description: 'Bad Request' },
|
|
54952
|
+
401: { description: 'Unauthorized' },
|
|
54953
|
+
},
|
|
54954
|
+
security: [{ client_session_with_customer: [] }],
|
|
54955
|
+
summary: '/seam/customer/v1/staff_members/get',
|
|
54956
|
+
tags: [],
|
|
54957
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'],
|
|
54958
|
+
'x-fern-sdk-method-name': 'get',
|
|
54959
|
+
'x-fern-sdk-return-value': 'staff_member',
|
|
54960
|
+
'x-response-key': 'staff_member',
|
|
54961
|
+
'x-title': 'Get Staff Member',
|
|
54962
|
+
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
54963
|
+
},
|
|
54964
|
+
post: {
|
|
54965
|
+
description: 'Returns a staff member for a specific customer.',
|
|
54966
|
+
operationId: 'seamCustomerV1StaffMembersGetPost',
|
|
54967
|
+
requestBody: {
|
|
54968
|
+
content: {
|
|
54969
|
+
'application/json': {
|
|
54970
|
+
schema: {
|
|
54971
|
+
properties: {
|
|
54972
|
+
staff_member_key: {
|
|
54973
|
+
description: 'Key of staff member to get.',
|
|
54974
|
+
type: 'string',
|
|
54975
|
+
},
|
|
54976
|
+
},
|
|
54977
|
+
required: ['staff_member_key'],
|
|
54978
|
+
type: 'object',
|
|
54979
|
+
},
|
|
54980
|
+
},
|
|
54981
|
+
},
|
|
54982
|
+
},
|
|
54983
|
+
responses: {
|
|
54984
|
+
200: {
|
|
54985
|
+
content: {
|
|
54986
|
+
'application/json': {
|
|
54987
|
+
schema: {
|
|
54988
|
+
properties: {
|
|
54989
|
+
access_grant: { $ref: '#/components/schemas/access_grant' },
|
|
54990
|
+
ok: { type: 'boolean' },
|
|
54991
|
+
spaces: {
|
|
54992
|
+
items: {
|
|
54993
|
+
properties: {
|
|
54994
|
+
child_space_keys: {
|
|
54995
|
+
items: { type: 'string' },
|
|
54996
|
+
type: 'array',
|
|
54997
|
+
},
|
|
54998
|
+
space_key: { type: 'string' },
|
|
54999
|
+
},
|
|
55000
|
+
required: ['space_key'],
|
|
55001
|
+
type: 'object',
|
|
55002
|
+
},
|
|
55003
|
+
type: 'array',
|
|
55004
|
+
},
|
|
55005
|
+
staff_member: {
|
|
55006
|
+
description:
|
|
55007
|
+
'Represents a staff member for a specific customer.',
|
|
55008
|
+
properties: {
|
|
55009
|
+
email_address: {
|
|
55010
|
+
description:
|
|
55011
|
+
'Email address associated with the user identity.',
|
|
55012
|
+
type: 'string',
|
|
55013
|
+
},
|
|
55014
|
+
name: {
|
|
55015
|
+
description:
|
|
55016
|
+
'Your display name for this user identity resource.',
|
|
55017
|
+
type: 'string',
|
|
55018
|
+
},
|
|
55019
|
+
phone_number: {
|
|
55020
|
+
description:
|
|
55021
|
+
'Phone number associated with the user identity.',
|
|
55022
|
+
type: 'string',
|
|
55023
|
+
},
|
|
55024
|
+
space_keys: {
|
|
55025
|
+
description:
|
|
55026
|
+
'List of unique identifiers for the spaces the staff member is associated with.',
|
|
55027
|
+
items: { type: 'string' },
|
|
55028
|
+
type: 'array',
|
|
55029
|
+
},
|
|
55030
|
+
staff_member_key: {
|
|
55031
|
+
description: 'Your unique identifier for the staff.',
|
|
55032
|
+
type: 'string',
|
|
55033
|
+
},
|
|
55034
|
+
user_identity_id: { format: 'uuid', type: 'string' },
|
|
55035
|
+
},
|
|
55036
|
+
required: ['staff_member_key', 'name'],
|
|
55037
|
+
type: 'object',
|
|
55038
|
+
'x-route-path': '/seam/customer/v1/staff_members',
|
|
55039
|
+
},
|
|
55040
|
+
},
|
|
55041
|
+
required: ['access_grant', 'spaces', 'staff_member', 'ok'],
|
|
55042
|
+
type: 'object',
|
|
55043
|
+
},
|
|
55044
|
+
},
|
|
55045
|
+
},
|
|
55046
|
+
description: 'OK',
|
|
55047
|
+
},
|
|
55048
|
+
400: { description: 'Bad Request' },
|
|
55049
|
+
401: { description: 'Unauthorized' },
|
|
55050
|
+
},
|
|
55051
|
+
security: [{ client_session_with_customer: [] }],
|
|
55052
|
+
summary: '/seam/customer/v1/staff_members/get',
|
|
55053
|
+
tags: [],
|
|
55054
|
+
'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'],
|
|
55055
|
+
'x-fern-sdk-method-name': 'get',
|
|
55056
|
+
'x-fern-sdk-return-value': 'staff_member',
|
|
55057
|
+
'x-response-key': 'staff_member',
|
|
55058
|
+
'x-title': 'Get Staff Member',
|
|
55059
|
+
'x-undocumented': 'Internal endpoint for customer portals.',
|
|
55060
|
+
},
|
|
55061
|
+
},
|
|
54732
55062
|
'/seam/customer/v1/staff_members/list': {
|
|
54733
55063
|
get: {
|
|
54734
55064
|
description:
|
|
@@ -68095,7 +68095,7 @@ export type Routes = {
|
|
|
68095
68095
|
/** Type of connector to create */
|
|
68096
68096
|
connector_type: 'mews' | 'mock'
|
|
68097
68097
|
/** Key identifying the customer */
|
|
68098
|
-
customer_key
|
|
68098
|
+
customer_key?: string | undefined
|
|
68099
68099
|
/** Instance-specific configuration for the connector */
|
|
68100
68100
|
config:
|
|
68101
68101
|
| {
|
|
@@ -68126,6 +68126,26 @@ export type Routes = {
|
|
|
68126
68126
|
}
|
|
68127
68127
|
}
|
|
68128
68128
|
}
|
|
68129
|
+
'/seam/customer/v1/connectors/list': {
|
|
68130
|
+
route: '/seam/customer/v1/connectors/list'
|
|
68131
|
+
method: 'GET' | 'POST'
|
|
68132
|
+
queryParams: {}
|
|
68133
|
+
jsonBody: {}
|
|
68134
|
+
commonParams: {}
|
|
68135
|
+
formData: {}
|
|
68136
|
+
jsonResponse: {
|
|
68137
|
+
connectors: {
|
|
68138
|
+
connector_id: string
|
|
68139
|
+
connector_type: string
|
|
68140
|
+
status: 'active' | 'inactive' | 'error'
|
|
68141
|
+
config: {
|
|
68142
|
+
[x: string]: any
|
|
68143
|
+
}
|
|
68144
|
+
created_at: string
|
|
68145
|
+
updated_at: string
|
|
68146
|
+
}[]
|
|
68147
|
+
}
|
|
68148
|
+
}
|
|
68129
68149
|
'/seam/customer/v1/connectors/sync': {
|
|
68130
68150
|
route: '/seam/customer/v1/connectors/sync'
|
|
68131
68151
|
method: 'POST'
|
|
@@ -70935,6 +70955,95 @@ export type Routes = {
|
|
|
70935
70955
|
}[]
|
|
70936
70956
|
}
|
|
70937
70957
|
}
|
|
70958
|
+
'/seam/customer/v1/staff_members/get': {
|
|
70959
|
+
route: '/seam/customer/v1/staff_members/get'
|
|
70960
|
+
method: 'GET' | 'POST'
|
|
70961
|
+
queryParams: {}
|
|
70962
|
+
jsonBody: {}
|
|
70963
|
+
commonParams: {
|
|
70964
|
+
/** Key of staff member to get. */
|
|
70965
|
+
staff_member_key: string
|
|
70966
|
+
}
|
|
70967
|
+
formData: {}
|
|
70968
|
+
jsonResponse: {
|
|
70969
|
+
/** Represents an Access Grant. Access Grants enable you to grant a user identity access to spaces, entrances, and devices through one or more access methods, such as mobile keys, plastic cards, and PIN codes. You can create an Access Grant for an existing user identity, or you can create a new user identity *while* creating the new Access Grant. */
|
|
70970
|
+
access_grant: {
|
|
70971
|
+
/** ID of the Seam workspace associated with the Access Grant. */
|
|
70972
|
+
workspace_id: string
|
|
70973
|
+
/** ID of the Access Grant. */
|
|
70974
|
+
access_grant_id: string
|
|
70975
|
+
/** Unique key for the access grant within the workspace. */
|
|
70976
|
+
access_grant_key?: string | undefined
|
|
70977
|
+
/** Reservation key for the access grant. */
|
|
70978
|
+
reservation_key?: string | undefined
|
|
70979
|
+
/** ID of user identity to which the Access Grant gives access. */
|
|
70980
|
+
user_identity_id: string
|
|
70981
|
+
/**
|
|
70982
|
+
* @deprecated Use `space_ids`.*/
|
|
70983
|
+
location_ids: string[]
|
|
70984
|
+
/** IDs of the spaces to which the Access Grant gives access. */
|
|
70985
|
+
space_ids: string[]
|
|
70986
|
+
/** Access methods that the user requested for the Access Grant. */
|
|
70987
|
+
requested_access_methods: {
|
|
70988
|
+
/** Display name of the access method. */
|
|
70989
|
+
display_name: string
|
|
70990
|
+
/** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
|
|
70991
|
+
mode: 'code' | 'card' | 'mobile_key'
|
|
70992
|
+
/** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
|
|
70993
|
+
code?: string | undefined
|
|
70994
|
+
/** Date and time at which the requested access method was added to the Access Grant. */
|
|
70995
|
+
created_at: string
|
|
70996
|
+
/** IDs of the access methods created for the requested access method. */
|
|
70997
|
+
created_access_method_ids: string[]
|
|
70998
|
+
}[]
|
|
70999
|
+
/** IDs of the access methods created for the Access Grant. */
|
|
71000
|
+
access_method_ids: string[]
|
|
71001
|
+
/** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
|
|
71002
|
+
client_session_token?: string | undefined
|
|
71003
|
+
/** Name of the Access Grant. If not provided, the display name will be computed. */
|
|
71004
|
+
name: string | null
|
|
71005
|
+
/** Display name of the Access Grant. */
|
|
71006
|
+
display_name: string
|
|
71007
|
+
/** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
|
|
71008
|
+
instant_key_url?: string | undefined
|
|
71009
|
+
/** Date and time at which the Access Grant was created. */
|
|
71010
|
+
created_at: string
|
|
71011
|
+
/** Date and time at which the Access Grant starts. */
|
|
71012
|
+
starts_at: string
|
|
71013
|
+
/** Date and time at which the Access Grant ends. */
|
|
71014
|
+
ends_at: string | null
|
|
71015
|
+
/** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
|
|
71016
|
+
warnings: {
|
|
71017
|
+
/** Date and time at which Seam created the warning. */
|
|
71018
|
+
created_at: string
|
|
71019
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
71020
|
+
message: string
|
|
71021
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
71022
|
+
warning_code: 'being_deleted'
|
|
71023
|
+
}[]
|
|
71024
|
+
/** ID of the customization profile associated with the Access Grant. */
|
|
71025
|
+
customization_profile_id?: string | undefined
|
|
71026
|
+
}
|
|
71027
|
+
spaces: {
|
|
71028
|
+
space_key: string
|
|
71029
|
+
child_space_keys?: string[] | undefined
|
|
71030
|
+
}[]
|
|
71031
|
+
/** Represents a staff member for a specific customer. */
|
|
71032
|
+
staff_member: {
|
|
71033
|
+
/** Your unique identifier for the staff. */
|
|
71034
|
+
staff_member_key: string
|
|
71035
|
+
/** Phone number associated with the user identity. */
|
|
71036
|
+
phone_number?: string | undefined
|
|
71037
|
+
/** Email address associated with the user identity. */
|
|
71038
|
+
email_address?: string | undefined
|
|
71039
|
+
/** Your display name for this user identity resource. */
|
|
71040
|
+
name: string
|
|
71041
|
+
/** List of unique identifiers for the spaces the staff member is associated with. */
|
|
71042
|
+
space_keys?: string[] | undefined
|
|
71043
|
+
user_identity_id?: string | undefined
|
|
71044
|
+
}
|
|
71045
|
+
}
|
|
71046
|
+
}
|
|
70938
71047
|
'/seam/customer/v1/staff_members/list': {
|
|
70939
71048
|
route: '/seam/customer/v1/staff_members/list'
|
|
70940
71049
|
method: 'GET' | 'POST'
|