@seamapi/types 1.589.0 → 1.591.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.
@@ -18688,6 +18688,15 @@ export default {
18688
18688
  type: 'string',
18689
18689
  },
18690
18690
  name: { description: 'Name of the space.', type: 'string' },
18691
+ parent_space_id: {
18692
+ format: 'uuid',
18693
+ type: 'string',
18694
+ 'x-undocumented': 'Only used internally.',
18695
+ },
18696
+ parent_space_key: {
18697
+ type: 'string',
18698
+ 'x-undocumented': 'Only used internally.',
18699
+ },
18691
18700
  space_id: {
18692
18701
  description: 'ID of the space.',
18693
18702
  format: 'uuid',
@@ -35770,7 +35779,7 @@ export default {
35770
35779
  type: 'string',
35771
35780
  },
35772
35781
  customer_key: {
35773
- description: 'Optional unique string key that can be used to identify the customer. If provided, the customer will be created or retrieved based on this key.',
35782
+ description: 'Associate the Connect Webview, the connected account, and all resources under the connected account with a customer. If the connected account already exists, it will be associated with the customer. If the connected account already exists, but is already associated with a customer, the Connect Webview will show an error.',
35774
35783
  type: 'string',
35775
35784
  },
35776
35785
  device_selection_mode: {
@@ -36675,6 +36684,93 @@ export default {
36675
36684
  },
36676
36685
  },
36677
36686
  '/connected_accounts/update': {
36687
+ patch: {
36688
+ description: 'Updates a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
36689
+ operationId: 'connectedAccountsUpdatePatch',
36690
+ requestBody: {
36691
+ content: {
36692
+ 'application/json': {
36693
+ schema: {
36694
+ properties: {
36695
+ accepted_capabilities: {
36696
+ description: 'List of accepted device capabilities that restrict the types of devices that can be connected through this connected account. Valid values are `lock`, `thermostat`, `noise_sensor`, and `access_control`.',
36697
+ items: {
36698
+ description: '\n High-level device capabilities that can be restricted in connect webviews.\n These represent the main device categories that customers can opt into.\n',
36699
+ enum: [
36700
+ 'lock',
36701
+ 'thermostat',
36702
+ 'noise_sensor',
36703
+ 'access_control',
36704
+ ],
36705
+ type: 'string',
36706
+ },
36707
+ type: 'array',
36708
+ },
36709
+ automatically_manage_new_devices: {
36710
+ description: 'Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices).',
36711
+ type: 'boolean',
36712
+ },
36713
+ connected_account_id: {
36714
+ description: 'ID of the connected account that you want to update.',
36715
+ format: 'uuid',
36716
+ type: 'string',
36717
+ },
36718
+ custom_metadata: {
36719
+ additionalProperties: {
36720
+ nullable: true,
36721
+ oneOf: [
36722
+ { maxLength: 500, type: 'string' },
36723
+ { type: 'boolean' },
36724
+ ],
36725
+ },
36726
+ description: 'Custom metadata that you want to associate with the connected account. Entirely replaces the existing custom metadata object. If a new Connect Webview contains custom metadata and is used to reconnect a connected account, the custom metadata from the Connect Webview will entirely replace the entire custom metadata object on the connected account. Supports up to 50 JSON key:value pairs. [Adding custom metadata to a connected account](https://docs.seam.co/latest/core-concepts/connected-accounts/adding-custom-metadata-to-a-connected-account) enables you to store custom information, like customer details or internal IDs from your application. Then, you can [filter connected accounts by the desired metadata](https://docs.seam.co/latest/core-concepts/connected-accounts/filtering-connected-accounts-by-custom-metadata).',
36727
+ type: 'object',
36728
+ },
36729
+ customer_key: {
36730
+ description: 'The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer.',
36731
+ minLength: 1,
36732
+ type: 'string',
36733
+ },
36734
+ },
36735
+ required: ['connected_account_id'],
36736
+ type: 'object',
36737
+ },
36738
+ },
36739
+ },
36740
+ },
36741
+ responses: {
36742
+ 200: {
36743
+ content: {
36744
+ 'application/json': {
36745
+ schema: {
36746
+ properties: {
36747
+ connected_account: {
36748
+ $ref: '#/components/schemas/connected_account',
36749
+ },
36750
+ ok: { type: 'boolean' },
36751
+ },
36752
+ required: ['connected_account', 'ok'],
36753
+ type: 'object',
36754
+ },
36755
+ },
36756
+ },
36757
+ description: 'OK',
36758
+ },
36759
+ 400: { description: 'Bad Request' },
36760
+ 401: { description: 'Unauthorized' },
36761
+ },
36762
+ security: [
36763
+ { pat_with_workspace: [] },
36764
+ { console_session_with_workspace: [] },
36765
+ { api_key: [] },
36766
+ ],
36767
+ summary: '/connected_accounts/update',
36768
+ tags: ['/connected_accounts'],
36769
+ 'x-fern-sdk-group-name': ['connected_accounts'],
36770
+ 'x-fern-sdk-method-name': 'update',
36771
+ 'x-response-key': null,
36772
+ 'x-title': 'Update a Connected Account',
36773
+ },
36678
36774
  post: {
36679
36775
  description: 'Updates a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
36680
36776
  operationId: 'connectedAccountsUpdatePost',
@@ -36718,7 +36814,7 @@ export default {
36718
36814
  type: 'object',
36719
36815
  },
36720
36816
  customer_key: {
36721
- description: 'The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. ',
36817
+ description: 'The customer key to associate with this connected account. If provided, the connected account and all resources under the connected account will be moved to this customer. May only be provided if the connected account is not already associated with a customer.',
36722
36818
  minLength: 1,
36723
36819
  type: 'string',
36724
36820
  },
@@ -48566,6 +48662,78 @@ export default {
48566
48662
  'x-undocumented': 'Internal endpoint for customer portals.',
48567
48663
  },
48568
48664
  },
48665
+ '/seam/customer/v1/spaces/create': {
48666
+ post: {
48667
+ description: 'Creates a new space with optional parent space support.',
48668
+ operationId: 'seamCustomerV1SpacesCreatePost',
48669
+ requestBody: {
48670
+ content: {
48671
+ 'application/json': {
48672
+ schema: {
48673
+ properties: {
48674
+ acs_entrance_ids: {
48675
+ description: 'IDs of the entrances that you want to add to the new space.',
48676
+ items: { format: 'uuid', type: 'string' },
48677
+ type: 'array',
48678
+ },
48679
+ device_ids: {
48680
+ description: 'IDs of the devices that you want to add to the new space.',
48681
+ items: { format: 'uuid', type: 'string' },
48682
+ type: 'array',
48683
+ },
48684
+ name: {
48685
+ description: 'Name of the space that you want to create.',
48686
+ type: 'string',
48687
+ },
48688
+ parent_space_key: {
48689
+ description: 'Space key of the parent space for this space.',
48690
+ type: 'string',
48691
+ },
48692
+ parent_space_name: {
48693
+ description: 'Name of the parent space for this space.',
48694
+ type: 'string',
48695
+ },
48696
+ space_key: {
48697
+ description: 'Unique key for the space within the workspace.',
48698
+ type: 'string',
48699
+ },
48700
+ },
48701
+ required: ['name'],
48702
+ type: 'object',
48703
+ },
48704
+ },
48705
+ },
48706
+ },
48707
+ responses: {
48708
+ 200: {
48709
+ content: {
48710
+ 'application/json': {
48711
+ schema: {
48712
+ properties: {
48713
+ ok: { type: 'boolean' },
48714
+ space: { $ref: '#/components/schemas/space' },
48715
+ },
48716
+ required: ['space', 'ok'],
48717
+ type: 'object',
48718
+ },
48719
+ },
48720
+ },
48721
+ description: 'OK',
48722
+ },
48723
+ 400: { description: 'Bad Request' },
48724
+ 401: { description: 'Unauthorized' },
48725
+ },
48726
+ security: [{ client_session_with_customer: [] }],
48727
+ summary: '/seam/customer/v1/spaces/create',
48728
+ tags: [],
48729
+ 'x-draft': 'Early access.',
48730
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'],
48731
+ 'x-fern-sdk-method-name': 'create',
48732
+ 'x-fern-sdk-return-value': 'space',
48733
+ 'x-response-key': 'space',
48734
+ 'x-title': 'Create a Space',
48735
+ },
48736
+ },
48569
48737
  '/seam/instant_key/v1/client_sessions/exchange_short_code': {
48570
48738
  post: {
48571
48739
  description: 'Exchanges a short code for a client session token. Mobile apps use this endpoint to retrieve a client session token securely using a short code obtained from an Instant Key URL.',