@seamapi/types 1.605.0 → 1.606.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.
@@ -18770,6 +18770,35 @@ export default {
18770
18770
  'x-draft': 'Early access.',
18771
18771
  'x-route-path': '/spaces',
18772
18772
  },
18773
+ staff_member: {
18774
+ description: 'Represents a staff member for a specific customer.',
18775
+ properties: {
18776
+ email_address: {
18777
+ description: 'Email address associated with the user identity.',
18778
+ type: 'string',
18779
+ },
18780
+ name: {
18781
+ description: 'Your display name for this user identity resource.',
18782
+ type: 'string',
18783
+ },
18784
+ phone_number: {
18785
+ description: 'Phone number associated with the user identity.',
18786
+ type: 'string',
18787
+ },
18788
+ site_keys: {
18789
+ description: 'List of unique identifiers for the sites the staff member is associated with.',
18790
+ items: { type: 'string' },
18791
+ type: 'array',
18792
+ },
18793
+ staff_member_key: {
18794
+ description: 'Your unique identifier for the staff.',
18795
+ type: 'string',
18796
+ },
18797
+ },
18798
+ required: ['name', 'staff_member_key', 'site_keys'],
18799
+ type: 'object',
18800
+ 'x-route-path': '/seam/customer/v1/staff_members',
18801
+ },
18773
18802
  thermostat_daily_program: {
18774
18803
  description: 'Represents a thermostat daily program, consisting of a set of periods, each of which has a starting time and the key that identifies the climate preset to apply at the starting time.',
18775
18804
  properties: {
@@ -37972,6 +38001,43 @@ export default {
37972
38001
  },
37973
38002
  type: 'array',
37974
38003
  },
38004
+ staff_members: {
38005
+ description: 'List of staff members.',
38006
+ items: {
38007
+ description: 'Represents a staff member for a specific customer.',
38008
+ properties: {
38009
+ email_address: {
38010
+ description: 'Email address associated with the user identity.',
38011
+ type: 'string',
38012
+ },
38013
+ name: {
38014
+ description: 'Your display name for this user identity resource.',
38015
+ type: 'string',
38016
+ },
38017
+ phone_number: {
38018
+ description: 'Phone number associated with the user identity.',
38019
+ type: 'string',
38020
+ },
38021
+ site_keys: {
38022
+ description: 'List of unique identifiers for the sites the staff member is associated with.',
38023
+ items: { type: 'string' },
38024
+ type: 'array',
38025
+ },
38026
+ staff_member_key: {
38027
+ description: 'Your unique identifier for the staff.',
38028
+ type: 'string',
38029
+ },
38030
+ },
38031
+ required: [
38032
+ 'name',
38033
+ 'staff_member_key',
38034
+ 'site_keys',
38035
+ ],
38036
+ type: 'object',
38037
+ 'x-route-path': '/seam/customer/v1/staff_members',
38038
+ },
38039
+ type: 'array',
38040
+ },
37975
38041
  tenants: {
37976
38042
  description: 'List of tenants.',
37977
38043
  items: {
@@ -38951,6 +39017,39 @@ export default {
38951
39017
  },
38952
39018
  type: 'array',
38953
39019
  },
39020
+ staff_members: {
39021
+ description: 'List of staff members.',
39022
+ items: {
39023
+ description: 'Represents a staff member for a specific customer.',
39024
+ properties: {
39025
+ email_address: {
39026
+ description: 'Email address associated with the user identity.',
39027
+ type: 'string',
39028
+ },
39029
+ name: {
39030
+ description: 'Your display name for this user identity resource.',
39031
+ type: 'string',
39032
+ },
39033
+ phone_number: {
39034
+ description: 'Phone number associated with the user identity.',
39035
+ type: 'string',
39036
+ },
39037
+ site_keys: {
39038
+ description: 'List of unique identifiers for the sites the staff member is associated with.',
39039
+ items: { type: 'string' },
39040
+ type: 'array',
39041
+ },
39042
+ staff_member_key: {
39043
+ description: 'Your unique identifier for the staff.',
39044
+ type: 'string',
39045
+ },
39046
+ },
39047
+ required: ['name', 'staff_member_key', 'site_keys'],
39048
+ type: 'object',
39049
+ 'x-route-path': '/seam/customer/v1/staff_members',
39050
+ },
39051
+ type: 'array',
39052
+ },
38954
39053
  tenants: {
38955
39054
  description: 'List of tenants.',
38956
39055
  items: {
@@ -49590,6 +49689,165 @@ export default {
49590
49689
  'x-title': 'List Spaces',
49591
49690
  },
49592
49691
  },
49692
+ '/seam/customer/v1/staff_members/list': {
49693
+ get: {
49694
+ description: 'Returns a list of staff members for a specific customer. This endpoint is designed for customer portals and supports filtering by space_key.\nProvided space_key or space_id can be a child space, in which case the staff members for the parent space will be returned.',
49695
+ operationId: 'seamCustomerV1StaffMembersListGet',
49696
+ parameters: [
49697
+ {
49698
+ in: 'query',
49699
+ name: 'space_key',
49700
+ schema: {
49701
+ description: 'Filter staff members by space key.',
49702
+ type: 'string',
49703
+ },
49704
+ },
49705
+ {
49706
+ in: 'query',
49707
+ name: 'space_id',
49708
+ schema: {
49709
+ description: 'Filter staff members by space ID (UUID).',
49710
+ format: 'uuid',
49711
+ type: 'string',
49712
+ },
49713
+ },
49714
+ {
49715
+ in: 'query',
49716
+ name: 'limit',
49717
+ schema: {
49718
+ default: 500,
49719
+ description: 'Maximum number of records to return per page.',
49720
+ exclusiveMinimum: true,
49721
+ minimum: 0,
49722
+ type: 'integer',
49723
+ },
49724
+ },
49725
+ {
49726
+ in: 'query',
49727
+ name: 'created_before',
49728
+ schema: {
49729
+ description: 'Timestamp by which to limit returned staff members. Returns staff members created before this timestamp.',
49730
+ format: 'date-time',
49731
+ type: 'string',
49732
+ },
49733
+ },
49734
+ {
49735
+ in: 'query',
49736
+ name: 'page_cursor',
49737
+ schema: {
49738
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
49739
+ nullable: true,
49740
+ type: 'string',
49741
+ },
49742
+ },
49743
+ ],
49744
+ responses: {
49745
+ 200: {
49746
+ content: {
49747
+ 'application/json': {
49748
+ schema: {
49749
+ properties: {
49750
+ ok: { type: 'boolean' },
49751
+ pagination: { $ref: '#/components/schemas/pagination' },
49752
+ staff_members: {
49753
+ items: { $ref: '#/components/schemas/staff_member' },
49754
+ type: 'array',
49755
+ },
49756
+ },
49757
+ required: ['staff_members', 'pagination', 'ok'],
49758
+ type: 'object',
49759
+ },
49760
+ },
49761
+ },
49762
+ description: 'OK',
49763
+ },
49764
+ 400: { description: 'Bad Request' },
49765
+ 401: { description: 'Unauthorized' },
49766
+ },
49767
+ security: [{ client_session_with_customer: [] }],
49768
+ summary: '/seam/customer/v1/staff_members/list',
49769
+ tags: [],
49770
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'],
49771
+ 'x-fern-sdk-method-name': 'list',
49772
+ 'x-fern-sdk-return-value': 'staff_members',
49773
+ 'x-response-key': 'staff_members',
49774
+ 'x-title': 'List Staff Members for Customer Space',
49775
+ 'x-undocumented': 'Internal endpoint for customer portals.',
49776
+ },
49777
+ post: {
49778
+ description: 'Returns a list of staff members for a specific customer. This endpoint is designed for customer portals and supports filtering by space_key.\nProvided space_key or space_id can be a child space, in which case the staff members for the parent space will be returned.',
49779
+ operationId: 'seamCustomerV1StaffMembersListPost',
49780
+ requestBody: {
49781
+ content: {
49782
+ 'application/json': {
49783
+ schema: {
49784
+ properties: {
49785
+ created_before: {
49786
+ description: 'Timestamp by which to limit returned staff members. Returns staff members created before this timestamp.',
49787
+ format: 'date-time',
49788
+ type: 'string',
49789
+ },
49790
+ limit: {
49791
+ default: 500,
49792
+ description: 'Maximum number of records to return per page.',
49793
+ exclusiveMinimum: true,
49794
+ minimum: 0,
49795
+ type: 'integer',
49796
+ },
49797
+ page_cursor: {
49798
+ description: "Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`.",
49799
+ nullable: true,
49800
+ type: 'string',
49801
+ },
49802
+ space_id: {
49803
+ description: 'Filter staff members by space ID (UUID).',
49804
+ format: 'uuid',
49805
+ type: 'string',
49806
+ },
49807
+ space_key: {
49808
+ description: 'Filter staff members by space key.',
49809
+ type: 'string',
49810
+ },
49811
+ },
49812
+ type: 'object',
49813
+ },
49814
+ },
49815
+ },
49816
+ },
49817
+ responses: {
49818
+ 200: {
49819
+ content: {
49820
+ 'application/json': {
49821
+ schema: {
49822
+ properties: {
49823
+ ok: { type: 'boolean' },
49824
+ pagination: { $ref: '#/components/schemas/pagination' },
49825
+ staff_members: {
49826
+ items: { $ref: '#/components/schemas/staff_member' },
49827
+ type: 'array',
49828
+ },
49829
+ },
49830
+ required: ['staff_members', 'pagination', 'ok'],
49831
+ type: 'object',
49832
+ },
49833
+ },
49834
+ },
49835
+ description: 'OK',
49836
+ },
49837
+ 400: { description: 'Bad Request' },
49838
+ 401: { description: 'Unauthorized' },
49839
+ },
49840
+ security: [{ client_session_with_customer: [] }],
49841
+ summary: '/seam/customer/v1/staff_members/list',
49842
+ tags: [],
49843
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'staff_members'],
49844
+ 'x-fern-sdk-method-name': 'list',
49845
+ 'x-fern-sdk-return-value': 'staff_members',
49846
+ 'x-response-key': 'staff_members',
49847
+ 'x-title': 'List Staff Members for Customer Space',
49848
+ 'x-undocumented': 'Internal endpoint for customer portals.',
49849
+ },
49850
+ },
49593
49851
  '/seam/customer/v1/webhooks/connectors/[workspace_id]/[connector_id]': {
49594
49852
  post: {
49595
49853
  description: 'Receives webhook events from external connector APIs and processes them into partner resources.',