@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.
@@ -10373,6 +10373,8 @@ declare const batch: z.ZodObject<{
10373
10373
  created_at: z.ZodString;
10374
10374
  device_count: z.ZodNumber;
10375
10375
  acs_entrance_count: z.ZodNumber;
10376
+ parent_space_id: z.ZodOptional<z.ZodString>;
10377
+ parent_space_key: z.ZodOptional<z.ZodString>;
10376
10378
  }, "strip", z.ZodTypeAny, {
10377
10379
  name: string;
10378
10380
  display_name: string;
@@ -10382,6 +10384,8 @@ declare const batch: z.ZodObject<{
10382
10384
  space_id: string;
10383
10385
  acs_entrance_count: number;
10384
10386
  space_key?: string | undefined;
10387
+ parent_space_id?: string | undefined;
10388
+ parent_space_key?: string | undefined;
10385
10389
  }, {
10386
10390
  name: string;
10387
10391
  display_name: string;
@@ -10391,6 +10395,8 @@ declare const batch: z.ZodObject<{
10391
10395
  space_id: string;
10392
10396
  acs_entrance_count: number;
10393
10397
  space_key?: string | undefined;
10398
+ parent_space_id?: string | undefined;
10399
+ parent_space_key?: string | undefined;
10394
10400
  }>, "many">>;
10395
10401
  devices: z.ZodOptional<z.ZodArray<z.ZodObject<{
10396
10402
  device_id: z.ZodString;
@@ -30889,6 +30895,8 @@ declare const batch: z.ZodObject<{
30889
30895
  space_id: string;
30890
30896
  acs_entrance_count: number;
30891
30897
  space_key?: string | undefined;
30898
+ parent_space_id?: string | undefined;
30899
+ parent_space_key?: string | undefined;
30892
30900
  }[] | undefined;
30893
30901
  devices?: {
30894
30902
  display_name: string;
@@ -34786,6 +34794,8 @@ declare const batch: z.ZodObject<{
34786
34794
  space_id: string;
34787
34795
  acs_entrance_count: number;
34788
34796
  space_key?: string | undefined;
34797
+ parent_space_id?: string | undefined;
34798
+ parent_space_key?: string | undefined;
34789
34799
  }[] | undefined;
34790
34800
  devices?: {
34791
34801
  display_name: string;
@@ -50852,6 +50862,8 @@ declare const space: z.ZodObject<{
50852
50862
  created_at: z.ZodString;
50853
50863
  device_count: z.ZodNumber;
50854
50864
  acs_entrance_count: z.ZodNumber;
50865
+ parent_space_id: z.ZodOptional<z.ZodString>;
50866
+ parent_space_key: z.ZodOptional<z.ZodString>;
50855
50867
  }, "strip", z.ZodTypeAny, {
50856
50868
  name: string;
50857
50869
  display_name: string;
@@ -50861,6 +50873,8 @@ declare const space: z.ZodObject<{
50861
50873
  space_id: string;
50862
50874
  acs_entrance_count: number;
50863
50875
  space_key?: string | undefined;
50876
+ parent_space_id?: string | undefined;
50877
+ parent_space_key?: string | undefined;
50864
50878
  }, {
50865
50879
  name: string;
50866
50880
  display_name: string;
@@ -50870,6 +50884,8 @@ declare const space: z.ZodObject<{
50870
50884
  space_id: string;
50871
50885
  acs_entrance_count: number;
50872
50886
  space_key?: string | undefined;
50887
+ parent_space_id?: string | undefined;
50888
+ parent_space_key?: string | undefined;
50873
50889
  }>;
50874
50890
  type Space = z.infer<typeof space>;
50875
50891
 
@@ -63469,6 +63485,15 @@ declare const _default: {
63469
63485
  description: string;
63470
63486
  type: string;
63471
63487
  };
63488
+ parent_space_id: {
63489
+ format: string;
63490
+ type: string;
63491
+ 'x-undocumented': string;
63492
+ };
63493
+ parent_space_key: {
63494
+ type: string;
63495
+ 'x-undocumented': string;
63496
+ };
63472
63497
  space_id: {
63473
63498
  description: string;
63474
63499
  format: string;
@@ -82365,6 +82390,105 @@ declare const _default: {
82365
82390
  };
82366
82391
  };
82367
82392
  '/connected_accounts/update': {
82393
+ patch: {
82394
+ description: string;
82395
+ operationId: string;
82396
+ requestBody: {
82397
+ content: {
82398
+ 'application/json': {
82399
+ schema: {
82400
+ properties: {
82401
+ accepted_capabilities: {
82402
+ description: string;
82403
+ items: {
82404
+ description: string;
82405
+ enum: string[];
82406
+ type: string;
82407
+ };
82408
+ type: string;
82409
+ };
82410
+ automatically_manage_new_devices: {
82411
+ description: string;
82412
+ type: string;
82413
+ };
82414
+ connected_account_id: {
82415
+ description: string;
82416
+ format: string;
82417
+ type: string;
82418
+ };
82419
+ custom_metadata: {
82420
+ additionalProperties: {
82421
+ nullable: boolean;
82422
+ oneOf: ({
82423
+ maxLength: number;
82424
+ type: string;
82425
+ } | {
82426
+ type: string;
82427
+ maxLength?: never;
82428
+ })[];
82429
+ };
82430
+ description: string;
82431
+ type: string;
82432
+ };
82433
+ customer_key: {
82434
+ description: string;
82435
+ minLength: number;
82436
+ type: string;
82437
+ };
82438
+ };
82439
+ required: string[];
82440
+ type: string;
82441
+ };
82442
+ };
82443
+ };
82444
+ };
82445
+ responses: {
82446
+ 200: {
82447
+ content: {
82448
+ 'application/json': {
82449
+ schema: {
82450
+ properties: {
82451
+ connected_account: {
82452
+ $ref: string;
82453
+ };
82454
+ ok: {
82455
+ type: string;
82456
+ };
82457
+ };
82458
+ required: string[];
82459
+ type: string;
82460
+ };
82461
+ };
82462
+ };
82463
+ description: string;
82464
+ };
82465
+ 400: {
82466
+ description: string;
82467
+ };
82468
+ 401: {
82469
+ description: string;
82470
+ };
82471
+ };
82472
+ security: ({
82473
+ pat_with_workspace: never[];
82474
+ console_session_with_workspace?: never;
82475
+ api_key?: never;
82476
+ } | {
82477
+ console_session_with_workspace: never[];
82478
+ pat_with_workspace?: never;
82479
+ api_key?: never;
82480
+ } | {
82481
+ api_key: never[];
82482
+ pat_with_workspace?: never;
82483
+ console_session_with_workspace?: never;
82484
+ })[];
82485
+ summary: string;
82486
+ tags: string[];
82487
+ 'x-fern-sdk-group-name': string[];
82488
+ 'x-fern-sdk-method-name': string;
82489
+ 'x-response-key': null;
82490
+ 'x-title': string;
82491
+ };
82368
82492
  post: {
82369
82493
  description: string;
82370
82494
  operationId: string;
@@ -94687,6 +94811,94 @@ declare const _default: {
94687
94811
  'x-undocumented': string;
94688
94812
  };
94689
94813
  };
94814
+ '/seam/customer/v1/spaces/create': {
94815
+ post: {
94816
+ description: string;
94817
+ operationId: string;
94818
+ requestBody: {
94819
+ content: {
94820
+ 'application/json': {
94821
+ schema: {
94822
+ properties: {
94823
+ acs_entrance_ids: {
94824
+ description: string;
94825
+ items: {
94826
+ format: string;
94827
+ type: string;
94828
+ };
94829
+ type: string;
94830
+ };
94831
+ device_ids: {
94832
+ description: string;
94833
+ items: {
94834
+ format: string;
94835
+ type: string;
94836
+ };
94837
+ type: string;
94838
+ };
94839
+ name: {
94840
+ description: string;
94841
+ type: string;
94842
+ };
94843
+ parent_space_key: {
94844
+ description: string;
94845
+ type: string;
94846
+ };
94847
+ parent_space_name: {
94848
+ description: string;
94849
+ type: string;
94850
+ };
94851
+ space_key: {
94852
+ description: string;
94853
+ type: string;
94854
+ };
94855
+ };
94856
+ required: string[];
94857
+ type: string;
94858
+ };
94859
+ };
94860
+ };
94861
+ };
94862
+ responses: {
94863
+ 200: {
94864
+ content: {
94865
+ 'application/json': {
94866
+ schema: {
94867
+ properties: {
94868
+ ok: {
94869
+ type: string;
94870
+ };
94871
+ space: {
94872
+ $ref: string;
94873
+ };
94874
+ };
94875
+ required: string[];
94876
+ type: string;
94877
+ };
94878
+ };
94879
+ };
94880
+ description: string;
94881
+ };
94882
+ 400: {
94883
+ description: string;
94884
+ };
94885
+ 401: {
94886
+ description: string;
94887
+ };
94888
+ };
94889
+ security: {
94890
+ client_session_with_customer: never[];
94891
+ }[];
94892
+ summary: string;
94893
+ tags: never[];
94894
+ 'x-draft': string;
94895
+ 'x-fern-sdk-group-name': string[];
94896
+ 'x-fern-sdk-method-name': string;
94897
+ 'x-fern-sdk-return-value': string;
94898
+ 'x-response-key': string;
94899
+ 'x-title': string;
94900
+ };
94901
+ };
94690
94902
  '/seam/instant_key/v1/client_sessions/exchange_short_code': {
94691
94903
  post: {
94692
94904
  description: string;
@@ -116889,6 +117101,10 @@ type Routes = {
116889
117101
  device_count: number;
116890
117102
  /** Number of entrances in the space. */
116891
117103
  acs_entrance_count: number;
117104
+ /** */
117105
+ parent_space_id?: string | undefined;
117106
+ /** */
117107
+ parent_space_key?: string | undefined;
116892
117108
  }[] | undefined;
116893
117109
  devices?: {
116894
117110
  /** ID of the device. */
@@ -120200,6 +120416,10 @@ type Routes = {
120200
120416
  device_count: number;
120201
120417
  /** Number of entrances in the space. */
120202
120418
  acs_entrance_count: number;
120419
+ /** */
120420
+ parent_space_id?: string | undefined;
120421
+ /** */
120422
+ parent_space_key?: string | undefined;
120203
120423
  }[] | undefined;
120204
120424
  devices?: {
120205
120425
  /** ID of the device. */
@@ -137410,7 +137630,7 @@ type Routes = {
137410
137630
  custom_redirect_url?: string | undefined;
137411
137631
  /** Alternative URL that you want to redirect the user to on an error. If you do not set this parameter, the Connect Webview falls back to the `custom_redirect_url`. */
137412
137632
  custom_redirect_failure_url?: string | undefined;
137413
- /** 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. */
137633
+ /** 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. */
137414
137634
  customer_key?: string | undefined;
137415
137635
  /** Accepted device provider keys as an alternative to `provider_category`. Use this parameter to specify accepted providers explicitly. See [Customize the Brands to Display in Your Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews). To list all provider keys, use [`/devices/list_device_providers`](https://docs.seam.co/latest/api/devices/list_device_providers) with no filters. */
137416
137636
  accepted_providers?: ('hotek' | 'dormakaba_community' | 'legic_connect' | 'akuvox' | 'august' | 'avigilon_alta' | 'brivo' | 'butterflymx' | 'schlage' | 'smartthings' | 'yale' | 'genie' | 'doorking' | 'salto' | 'salto_ks' | 'lockly' | 'ttlock' | 'linear' | 'noiseaware' | 'nuki' | 'seam_relay_admin' | 'igloo' | 'kwikset' | 'minut' | 'my_2n' | 'controlbyweb' | 'nest' | 'igloohome' | 'ecobee' | 'hubitat' | 'four_suites' | 'dormakaba_oracode' | 'pti' | 'wyze' | 'seam_passport' | 'visionline' | 'assa_abloy_credential_service' | 'tedee' | 'honeywell_resideo' | 'latch' | 'akiles' | 'assa_abloy_vostio' | 'assa_abloy_vostio_credential_service' | 'tado' | 'salto_space' | 'sensi' | 'kwikset2' | 'keynest' | 'dormakaba_ambiance' | 'yale_access' | 'hid_cm' | 'google_nest')[] | undefined;
@@ -137985,7 +138205,7 @@ type Routes = {
137985
138205
  };
137986
138206
  '/connected_accounts/update': {
137987
138207
  route: '/connected_accounts/update';
137988
- method: 'POST';
138208
+ method: 'PATCH' | 'POST';
137989
138209
  queryParams: {};
137990
138210
  jsonBody: {
137991
138211
  /** ID of the connected account that you want to update. */
@@ -137998,7 +138218,7 @@ type Routes = {
137998
138218
  } | undefined;
137999
138219
  /** 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`. */
138000
138220
  accepted_capabilities?: ('lock' | 'thermostat' | 'noise_sensor' | 'access_control')[] | undefined;
138001
- /** 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. */
138221
+ /** 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. */
138002
138222
  customer_key?: string | undefined;
138003
138223
  };
138004
138224
  commonParams: {};
@@ -165396,6 +165616,52 @@ type Routes = {
165396
165616
  formData: {};
165397
165617
  jsonResponse: {};
165398
165618
  };
165619
+ '/seam/customer/v1/spaces/create': {
165620
+ route: '/seam/customer/v1/spaces/create';
165621
+ method: 'POST';
165622
+ queryParams: {};
165623
+ jsonBody: {
165624
+ /** Name of the space that you want to create. */
165625
+ name: string;
165626
+ /** Unique key for the space within the workspace. */
165627
+ space_key?: string | undefined;
165628
+ /** IDs of the devices that you want to add to the new space. */
165629
+ device_ids?: string[] | undefined;
165630
+ /** IDs of the entrances that you want to add to the new space. */
165631
+ acs_entrance_ids?: string[] | undefined;
165632
+ /** Space key of the parent space for this space. */
165633
+ parent_space_key?: string | undefined;
165634
+ /** Name of the parent space for this space. */
165635
+ parent_space_name?: string | undefined;
165636
+ };
165637
+ commonParams: {};
165638
+ formData: {};
165639
+ jsonResponse: {
165640
+ /** Represents a space that is a logical grouping of devices and entrances. You can assign access to an entire space, thereby making granting access more efficient. */
165641
+ space: {
165642
+ /** ID of the space. */
165643
+ space_id: string;
165644
+ /** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the space. */
165645
+ workspace_id: string;
165646
+ /** Unique key for the space within the workspace. */
165647
+ space_key?: string | undefined;
165648
+ /** Name of the space. */
165649
+ name: string;
165650
+ /** Display name for the space. */
165651
+ display_name: string;
165652
+ /** Date and time at which the space was created. */
165653
+ created_at: string;
165654
+ /** Number of devices in the space. */
165655
+ device_count: number;
165656
+ /** Number of entrances in the space. */
165657
+ acs_entrance_count: number;
165658
+ /** */
165659
+ parent_space_id?: string | undefined;
165660
+ /** */
165661
+ parent_space_key?: string | undefined;
165662
+ };
165663
+ };
165664
+ };
165399
165665
  '/seam/instant_key/v1/client_sessions/exchange_short_code': {
165400
165666
  route: '/seam/instant_key/v1/client_sessions/exchange_short_code';
165401
165667
  method: 'POST';
@@ -166069,6 +166335,10 @@ type Routes = {
166069
166335
  device_count: number;
166070
166336
  /** Number of entrances in the space. */
166071
166337
  acs_entrance_count: number;
166338
+ /** */
166339
+ parent_space_id?: string | undefined;
166340
+ /** */
166341
+ parent_space_key?: string | undefined;
166072
166342
  };
166073
166343
  };
166074
166344
  };
@@ -166116,6 +166386,10 @@ type Routes = {
166116
166386
  device_count: number;
166117
166387
  /** Number of entrances in the space. */
166118
166388
  acs_entrance_count: number;
166389
+ /** */
166390
+ parent_space_id?: string | undefined;
166391
+ /** */
166392
+ parent_space_key?: string | undefined;
166119
166393
  };
166120
166394
  };
166121
166395
  };
@@ -166154,6 +166428,10 @@ type Routes = {
166154
166428
  device_count: number;
166155
166429
  /** Number of entrances in the space. */
166156
166430
  acs_entrance_count: number;
166431
+ /** */
166432
+ parent_space_id?: string | undefined;
166433
+ /** */
166434
+ parent_space_key?: string | undefined;
166157
166435
  }[] | undefined;
166158
166436
  devices?: {
166159
166437
  /** ID of the device. */
@@ -167761,6 +168039,10 @@ type Routes = {
167761
168039
  device_count: number;
167762
168040
  /** Number of entrances in the space. */
167763
168041
  acs_entrance_count: number;
168042
+ /** */
168043
+ parent_space_id?: string | undefined;
168044
+ /** */
168045
+ parent_space_key?: string | undefined;
167764
168046
  }[];
167765
168047
  };
167766
168048
  };
@@ -167831,6 +168113,10 @@ type Routes = {
167831
168113
  device_count: number;
167832
168114
  /** Number of entrances in the space. */
167833
168115
  acs_entrance_count: number;
168116
+ /** */
168117
+ parent_space_id?: string | undefined;
168118
+ /** */
168119
+ parent_space_key?: string | undefined;
167834
168120
  };
167835
168121
  };
167836
168122
  };
@@ -187198,6 +187484,10 @@ type Routes = {
187198
187484
  device_count: number;
187199
187485
  /** Number of entrances in the space. */
187200
187486
  acs_entrance_count: number;
187487
+ /** */
187488
+ parent_space_id?: string | undefined;
187489
+ /** */
187490
+ parent_space_key?: string | undefined;
187201
187491
  }[] | undefined;
187202
187492
  devices?: {
187203
187493
  /** ID of the device. */
package/dist/index.cjs CHANGED
@@ -5347,7 +5347,17 @@ var space = zod.z.object({
5347
5347
  display_name: zod.z.string().describe("Display name for the space."),
5348
5348
  created_at: zod.z.string().datetime().describe("Date and time at which the space was created."),
5349
5349
  device_count: zod.z.number().describe("Number of devices in the space."),
5350
- acs_entrance_count: zod.z.number().describe("Number of entrances in the space.")
5350
+ acs_entrance_count: zod.z.number().describe("Number of entrances in the space."),
5351
+ parent_space_id: zod.z.string().uuid().optional().describe(`
5352
+ ---
5353
+ undocumented: Only used internally.
5354
+ ---
5355
+ `),
5356
+ parent_space_key: zod.z.string().optional().describe(`
5357
+ ---
5358
+ undocumented: Only used internally.
5359
+ ---
5360
+ `)
5351
5361
  }).describe(`
5352
5362
  ---
5353
5363
  draft: Early access.
@@ -24415,6 +24425,15 @@ var openapi_default = {
24415
24425
  type: "string"
24416
24426
  },
24417
24427
  name: { description: "Name of the space.", type: "string" },
24428
+ parent_space_id: {
24429
+ format: "uuid",
24430
+ type: "string",
24431
+ "x-undocumented": "Only used internally."
24432
+ },
24433
+ parent_space_key: {
24434
+ type: "string",
24435
+ "x-undocumented": "Only used internally."
24436
+ },
24418
24437
  space_id: {
24419
24438
  description: "ID of the space.",
24420
24439
  format: "uuid",
@@ -41497,7 +41516,7 @@ var openapi_default = {
41497
41516
  type: "string"
41498
41517
  },
41499
41518
  customer_key: {
41500
- 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.",
41519
+ 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.",
41501
41520
  type: "string"
41502
41521
  },
41503
41522
  device_selection_mode: {
@@ -42402,6 +42421,93 @@ var openapi_default = {
42402
42421
  }
42403
42422
  },
42404
42423
  "/connected_accounts/update": {
42424
+ patch: {
42425
+ description: "Updates a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
42426
+ operationId: "connectedAccountsUpdatePatch",
42427
+ requestBody: {
42428
+ content: {
42429
+ "application/json": {
42430
+ schema: {
42431
+ properties: {
42432
+ accepted_capabilities: {
42433
+ 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`.",
42434
+ items: {
42435
+ 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",
42436
+ enum: [
42437
+ "lock",
42438
+ "thermostat",
42439
+ "noise_sensor",
42440
+ "access_control"
42441
+ ],
42442
+ type: "string"
42443
+ },
42444
+ type: "array"
42445
+ },
42446
+ automatically_manage_new_devices: {
42447
+ description: "Indicates whether newly-added devices should appear as [managed devices](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices).",
42448
+ type: "boolean"
42449
+ },
42450
+ connected_account_id: {
42451
+ description: "ID of the connected account that you want to update.",
42452
+ format: "uuid",
42453
+ type: "string"
42454
+ },
42455
+ custom_metadata: {
42456
+ additionalProperties: {
42457
+ nullable: true,
42458
+ oneOf: [
42459
+ { maxLength: 500, type: "string" },
42460
+ { type: "boolean" }
42461
+ ]
42462
+ },
42463
+ 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).",
42464
+ type: "object"
42465
+ },
42466
+ customer_key: {
42467
+ 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.",
42468
+ minLength: 1,
42469
+ type: "string"
42470
+ }
42471
+ },
42472
+ required: ["connected_account_id"],
42473
+ type: "object"
42474
+ }
42475
+ }
42476
+ }
42477
+ },
42478
+ responses: {
42479
+ 200: {
42480
+ content: {
42481
+ "application/json": {
42482
+ schema: {
42483
+ properties: {
42484
+ connected_account: {
42485
+ $ref: "#/components/schemas/connected_account"
42486
+ },
42487
+ ok: { type: "boolean" }
42488
+ },
42489
+ required: ["connected_account", "ok"],
42490
+ type: "object"
42491
+ }
42492
+ }
42493
+ },
42494
+ description: "OK"
42495
+ },
42496
+ 400: { description: "Bad Request" },
42497
+ 401: { description: "Unauthorized" }
42498
+ },
42499
+ security: [
42500
+ { pat_with_workspace: [] },
42501
+ { console_session_with_workspace: [] },
42502
+ { api_key: [] }
42503
+ ],
42504
+ summary: "/connected_accounts/update",
42505
+ tags: ["/connected_accounts"],
42506
+ "x-fern-sdk-group-name": ["connected_accounts"],
42507
+ "x-fern-sdk-method-name": "update",
42508
+ "x-response-key": null,
42509
+ "x-title": "Update a Connected Account"
42510
+ },
42405
42511
  post: {
42406
42512
  description: "Updates a [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).",
42407
42513
  operationId: "connectedAccountsUpdatePost",
@@ -42445,7 +42551,7 @@ var openapi_default = {
42445
42551
  type: "object"
42446
42552
  },
42447
42553
  customer_key: {
42448
- 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. ",
42554
+ 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.",
42449
42555
  minLength: 1,
42450
42556
  type: "string"
42451
42557
  }
@@ -54293,6 +54399,78 @@ var openapi_default = {
54293
54399
  "x-undocumented": "Internal endpoint for customer portals."
54294
54400
  }
54295
54401
  },
54402
+ "/seam/customer/v1/spaces/create": {
54403
+ post: {
54404
+ description: "Creates a new space with optional parent space support.",
54405
+ operationId: "seamCustomerV1SpacesCreatePost",
54406
+ requestBody: {
54407
+ content: {
54408
+ "application/json": {
54409
+ schema: {
54410
+ properties: {
54411
+ acs_entrance_ids: {
54412
+ description: "IDs of the entrances that you want to add to the new space.",
54413
+ items: { format: "uuid", type: "string" },
54414
+ type: "array"
54415
+ },
54416
+ device_ids: {
54417
+ description: "IDs of the devices that you want to add to the new space.",
54418
+ items: { format: "uuid", type: "string" },
54419
+ type: "array"
54420
+ },
54421
+ name: {
54422
+ description: "Name of the space that you want to create.",
54423
+ type: "string"
54424
+ },
54425
+ parent_space_key: {
54426
+ description: "Space key of the parent space for this space.",
54427
+ type: "string"
54428
+ },
54429
+ parent_space_name: {
54430
+ description: "Name of the parent space for this space.",
54431
+ type: "string"
54432
+ },
54433
+ space_key: {
54434
+ description: "Unique key for the space within the workspace.",
54435
+ type: "string"
54436
+ }
54437
+ },
54438
+ required: ["name"],
54439
+ type: "object"
54440
+ }
54441
+ }
54442
+ }
54443
+ },
54444
+ responses: {
54445
+ 200: {
54446
+ content: {
54447
+ "application/json": {
54448
+ schema: {
54449
+ properties: {
54450
+ ok: { type: "boolean" },
54451
+ space: { $ref: "#/components/schemas/space" }
54452
+ },
54453
+ required: ["space", "ok"],
54454
+ type: "object"
54455
+ }
54456
+ }
54457
+ },
54458
+ description: "OK"
54459
+ },
54460
+ 400: { description: "Bad Request" },
54461
+ 401: { description: "Unauthorized" }
54462
+ },
54463
+ security: [{ client_session_with_customer: [] }],
54464
+ summary: "/seam/customer/v1/spaces/create",
54465
+ tags: [],
54466
+ "x-draft": "Early access.",
54467
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "spaces"],
54468
+ "x-fern-sdk-method-name": "create",
54469
+ "x-fern-sdk-return-value": "space",
54470
+ "x-response-key": "space",
54471
+ "x-title": "Create a Space"
54472
+ }
54473
+ },
54296
54474
  "/seam/instant_key/v1/client_sessions/exchange_short_code": {
54297
54475
  post: {
54298
54476
  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.",