@seamapi/types 1.624.0 → 1.626.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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.624.0",
3
+ "version": "1.626.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -52769,6 +52769,7 @@ export default {
52769
52769
  'x-fern-sdk-return-value': 'connector_sync',
52770
52770
  'x-response-key': 'connector_sync',
52771
52771
  'x-title': 'Sync Connector Data',
52772
+ 'x-undocumented': 'Only used internally.',
52772
52773
  },
52773
52774
  },
52774
52775
  '/seam/customer/v1/events/list': {
@@ -54733,6 +54734,7 @@ export default {
54733
54734
  'x-fern-sdk-return-value': 'space',
54734
54735
  'x-response-key': 'space',
54735
54736
  'x-title': 'Create a Space',
54737
+ 'x-undocumented': 'Only used internally.',
54736
54738
  },
54737
54739
  },
54738
54740
  '/seam/customer/v1/spaces/list': {
@@ -54802,6 +54804,7 @@ export default {
54802
54804
  'x-fern-sdk-return-value': 'spaces',
54803
54805
  'x-response-key': 'spaces',
54804
54806
  'x-title': 'List Spaces',
54807
+ 'x-undocumented': 'Only used internally.',
54805
54808
  },
54806
54809
  post: {
54807
54810
  description: 'Returns a list of all spaces.',
@@ -54866,6 +54869,198 @@ export default {
54866
54869
  'x-fern-sdk-return-value': 'spaces',
54867
54870
  'x-response-key': 'spaces',
54868
54871
  'x-title': 'List Spaces',
54872
+ 'x-undocumented': 'Only used internally.',
54873
+ },
54874
+ },
54875
+ '/seam/customer/v1/staff_members/get': {
54876
+ get: {
54877
+ description: 'Returns a staff member for a specific customer.',
54878
+ operationId: 'seamCustomerV1StaffMembersGetGet',
54879
+ parameters: [
54880
+ {
54881
+ in: 'query',
54882
+ name: 'staff_member_key',
54883
+ required: true,
54884
+ schema: {
54885
+ description: 'Key of staff member to get.',
54886
+ type: 'string',
54887
+ },
54888
+ },
54889
+ ],
54890
+ responses: {
54891
+ 200: {
54892
+ content: {
54893
+ 'application/json': {
54894
+ schema: {
54895
+ properties: {
54896
+ access_grant: { $ref: '#/components/schemas/access_grant' },
54897
+ ok: { type: 'boolean' },
54898
+ spaces: {
54899
+ items: {
54900
+ properties: {
54901
+ child_space_keys: {
54902
+ items: { type: 'string' },
54903
+ type: 'array',
54904
+ },
54905
+ space_key: { type: 'string' },
54906
+ },
54907
+ required: ['space_key'],
54908
+ type: 'object',
54909
+ },
54910
+ type: 'array',
54911
+ },
54912
+ staff_member: {
54913
+ description:
54914
+ 'Represents a staff member for a specific customer.',
54915
+ properties: {
54916
+ email_address: {
54917
+ description:
54918
+ 'Email address associated with the user identity.',
54919
+ type: 'string',
54920
+ },
54921
+ name: {
54922
+ description:
54923
+ 'Your display name for this user identity resource.',
54924
+ type: 'string',
54925
+ },
54926
+ phone_number: {
54927
+ description:
54928
+ 'Phone number associated with the user identity.',
54929
+ type: 'string',
54930
+ },
54931
+ space_keys: {
54932
+ description:
54933
+ 'List of unique identifiers for the spaces the staff member is associated with.',
54934
+ items: { type: 'string' },
54935
+ type: 'array',
54936
+ },
54937
+ staff_member_key: {
54938
+ description: 'Your unique identifier for the staff.',
54939
+ type: 'string',
54940
+ },
54941
+ user_identity_id: { format: 'uuid', type: 'string' },
54942
+ },
54943
+ required: ['staff_member_key', 'name'],
54944
+ type: 'object',
54945
+ 'x-route-path': '/seam/customer/v1/staff_members',
54946
+ },
54947
+ },
54948
+ required: ['access_grant', 'spaces', 'staff_member', 'ok'],
54949
+ type: 'object',
54950
+ },
54951
+ },
54952
+ },
54953
+ description: 'OK',
54954
+ },
54955
+ 400: { description: 'Bad Request' },
54956
+ 401: { description: 'Unauthorized' },
54957
+ },
54958
+ security: [{ client_session_with_customer: [] }],
54959
+ summary: '/seam/customer/v1/staff_members/get',
54960
+ tags: [],
54961
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'],
54962
+ 'x-fern-sdk-method-name': 'get',
54963
+ 'x-fern-sdk-return-value': 'staff_member',
54964
+ 'x-response-key': 'staff_member',
54965
+ 'x-title': 'Get Staff Member',
54966
+ 'x-undocumented': 'Internal endpoint for customer portals.',
54967
+ },
54968
+ post: {
54969
+ description: 'Returns a staff member for a specific customer.',
54970
+ operationId: 'seamCustomerV1StaffMembersGetPost',
54971
+ requestBody: {
54972
+ content: {
54973
+ 'application/json': {
54974
+ schema: {
54975
+ properties: {
54976
+ staff_member_key: {
54977
+ description: 'Key of staff member to get.',
54978
+ type: 'string',
54979
+ },
54980
+ },
54981
+ required: ['staff_member_key'],
54982
+ type: 'object',
54983
+ },
54984
+ },
54985
+ },
54986
+ },
54987
+ responses: {
54988
+ 200: {
54989
+ content: {
54990
+ 'application/json': {
54991
+ schema: {
54992
+ properties: {
54993
+ access_grant: { $ref: '#/components/schemas/access_grant' },
54994
+ ok: { type: 'boolean' },
54995
+ spaces: {
54996
+ items: {
54997
+ properties: {
54998
+ child_space_keys: {
54999
+ items: { type: 'string' },
55000
+ type: 'array',
55001
+ },
55002
+ space_key: { type: 'string' },
55003
+ },
55004
+ required: ['space_key'],
55005
+ type: 'object',
55006
+ },
55007
+ type: 'array',
55008
+ },
55009
+ staff_member: {
55010
+ description:
55011
+ 'Represents a staff member for a specific customer.',
55012
+ properties: {
55013
+ email_address: {
55014
+ description:
55015
+ 'Email address associated with the user identity.',
55016
+ type: 'string',
55017
+ },
55018
+ name: {
55019
+ description:
55020
+ 'Your display name for this user identity resource.',
55021
+ type: 'string',
55022
+ },
55023
+ phone_number: {
55024
+ description:
55025
+ 'Phone number associated with the user identity.',
55026
+ type: 'string',
55027
+ },
55028
+ space_keys: {
55029
+ description:
55030
+ 'List of unique identifiers for the spaces the staff member is associated with.',
55031
+ items: { type: 'string' },
55032
+ type: 'array',
55033
+ },
55034
+ staff_member_key: {
55035
+ description: 'Your unique identifier for the staff.',
55036
+ type: 'string',
55037
+ },
55038
+ user_identity_id: { format: 'uuid', type: 'string' },
55039
+ },
55040
+ required: ['staff_member_key', 'name'],
55041
+ type: 'object',
55042
+ 'x-route-path': '/seam/customer/v1/staff_members',
55043
+ },
55044
+ },
55045
+ required: ['access_grant', 'spaces', 'staff_member', 'ok'],
55046
+ type: 'object',
55047
+ },
55048
+ },
55049
+ },
55050
+ description: 'OK',
55051
+ },
55052
+ 400: { description: 'Bad Request' },
55053
+ 401: { description: 'Unauthorized' },
55054
+ },
55055
+ security: [{ client_session_with_customer: [] }],
55056
+ summary: '/seam/customer/v1/staff_members/get',
55057
+ tags: [],
55058
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'],
55059
+ 'x-fern-sdk-method-name': 'get',
55060
+ 'x-fern-sdk-return-value': 'staff_member',
55061
+ 'x-response-key': 'staff_member',
55062
+ 'x-title': 'Get Staff Member',
55063
+ 'x-undocumented': 'Internal endpoint for customer portals.',
54869
55064
  },
54870
55065
  },
54871
55066
  '/seam/customer/v1/staff_members/list': {
@@ -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'