@seamapi/types 1.624.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 +181 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +306 -0
- package/dist/index.cjs +181 -0
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/openapi.d.ts +217 -0
- package/lib/seam/connect/openapi.js +181 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +89 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +191 -0
- package/src/lib/seam/connect/route-types.ts +89 -0
|
@@ -59571,6 +59571,95 @@ export type Routes = {
|
|
|
59571
59571
|
}[];
|
|
59572
59572
|
};
|
|
59573
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
|
+
};
|
|
59574
59663
|
'/seam/customer/v1/staff_members/list': {
|
|
59575
59664
|
route: '/seam/customer/v1/staff_members/list';
|
|
59576
59665
|
method: 'GET' | 'POST';
|
package/package.json
CHANGED
|
@@ -54868,6 +54868,197 @@ export default {
|
|
|
54868
54868
|
'x-title': 'List Spaces',
|
|
54869
54869
|
},
|
|
54870
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
|
+
},
|
|
54871
55062
|
'/seam/customer/v1/staff_members/list': {
|
|
54872
55063
|
get: {
|
|
54873
55064
|
description:
|
|
@@ -70955,6 +70955,95 @@ export type Routes = {
|
|
|
70955
70955
|
}[]
|
|
70956
70956
|
}
|
|
70957
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
|
+
}
|
|
70958
71047
|
'/seam/customer/v1/staff_members/list': {
|
|
70959
71048
|
route: '/seam/customer/v1/staff_members/list'
|
|
70960
71049
|
method: 'GET' | 'POST'
|