@seamapi/types 1.406.8 → 1.407.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.
@@ -23073,6 +23073,18 @@ export interface Routes {
23073
23073
  /** ID of the affected access method. */
23074
23074
  access_method_id: string;
23075
23075
  event_type: 'access_method.card_encoding_required';
23076
+ } | {
23077
+ /** ID of the event. */
23078
+ event_id: string;
23079
+ /** ID of the workspace associated with the event. */
23080
+ workspace_id: string;
23081
+ /** Date and time at which the event was created. */
23082
+ created_at: string;
23083
+ /** Date and time at which the event occurred. */
23084
+ occurred_at: string;
23085
+ /** ID of the affected access method. */
23086
+ access_method_id: string;
23087
+ event_type: 'access_method.deleted';
23076
23088
  } | {
23077
23089
  /** ID of the event. */
23078
23090
  event_id: string;
@@ -24088,9 +24100,9 @@ export interface Routes {
24088
24100
  /** IDs of the access codes for which you want to list events. */
24089
24101
  access_code_ids?: string[] | undefined;
24090
24102
  /** Type of the events that you want to list. */
24091
- event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
24103
+ event_type?: ('access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated') | undefined;
24092
24104
  /** Types of the events that you want to list. */
24093
- event_types?: Array<'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated'> | undefined;
24105
+ event_types?: Array<'access_code.created' | 'access_code.changed' | 'access_code.scheduled_on_device' | 'access_code.set_on_device' | 'access_code.removed_from_device' | 'access_code.delay_in_setting_on_device' | 'access_code.failed_to_set_on_device' | 'access_code.deleted' | 'access_code.delay_in_removing_from_device' | 'access_code.failed_to_remove_from_device' | 'access_code.modified_external_to_seam' | 'access_code.deleted_external_to_seam' | 'access_code.backup_access_code_pulled' | 'access_code.unmanaged.converted_to_managed' | 'access_code.unmanaged.failed_to_convert_to_managed' | 'access_code.unmanaged.created' | 'access_code.unmanaged.removed' | 'access_grant.created' | 'access_grant.deleted' | 'access_grant.access_granted_to_all_doors' | 'access_grant.access_granted_to_door' | 'access_grant.access_to_door_lost' | 'access_method.issued' | 'access_method.revoked' | 'access_method.card_encoding_required' | 'access_method.deleted' | 'acs_system.connected' | 'acs_system.added' | 'acs_system.disconnected' | 'acs_credential.deleted' | 'acs_credential.issued' | 'acs_credential.reissued' | 'acs_credential.invalidated' | 'acs_user.created' | 'acs_user.deleted' | 'acs_encoder.added' | 'acs_encoder.removed' | 'acs_access_group.deleted' | 'acs_entrance.added' | 'acs_entrance.removed' | 'client_session.deleted' | 'connected_account.connected' | 'connected_account.created' | 'connected_account.successful_login' | 'connected_account.disconnected' | 'connected_account.completed_first_sync' | 'connected_account.deleted' | 'connected_account.completed_first_sync_after_reconnection' | 'action_attempt.lock_door.succeeded' | 'action_attempt.lock_door.failed' | 'action_attempt.unlock_door.succeeded' | 'action_attempt.unlock_door.failed' | 'connect_webview.login_succeeded' | 'connect_webview.login_failed' | 'device.connected' | 'device.added' | 'device.converted_to_unmanaged' | 'device.unmanaged.converted_to_managed' | 'device.unmanaged.connected' | 'device.disconnected' | 'device.unmanaged.disconnected' | 'device.tampered' | 'device.low_battery' | 'device.battery_status_changed' | 'device.removed' | 'device.deleted' | 'device.third_party_integration_detected' | 'device.third_party_integration_no_longer_detected' | 'device.salto.privacy_mode_activated' | 'device.salto.privacy_mode_deactivated' | 'device.connection_became_flaky' | 'device.connection_stabilized' | 'device.error.subscription_required' | 'device.error.subscription_required.resolved' | 'device.accessory_keypad_connected' | 'device.accessory_keypad_disconnected' | 'noise_sensor.noise_threshold_triggered' | 'lock.locked' | 'lock.unlocked' | 'lock.access_denied' | 'thermostat.climate_preset_activated' | 'thermostat.manually_adjusted' | 'thermostat.temperature_threshold_exceeded' | 'thermostat.temperature_threshold_no_longer_exceeded' | 'thermostat.temperature_reached_set_point' | 'thermostat.temperature_changed' | 'device.name_changed' | 'enrollment_automation.deleted' | 'phone.deactivated'> | undefined;
24094
24106
  /** ID of the connected account for which you want to list events. */
24095
24107
  connected_account_id?: string | undefined;
24096
24108
  /** IDs of the connected accounts for which you want to list events. */
@@ -24483,6 +24495,18 @@ export interface Routes {
24483
24495
  /** ID of the affected access method. */
24484
24496
  access_method_id: string;
24485
24497
  event_type: 'access_method.card_encoding_required';
24498
+ } | {
24499
+ /** ID of the event. */
24500
+ event_id: string;
24501
+ /** ID of the workspace associated with the event. */
24502
+ workspace_id: string;
24503
+ /** Date and time at which the event was created. */
24504
+ created_at: string;
24505
+ /** Date and time at which the event occurred. */
24506
+ occurred_at: string;
24507
+ /** ID of the affected access method. */
24508
+ access_method_id: string;
24509
+ event_type: 'access_method.deleted';
24486
24510
  } | {
24487
24511
  /** ID of the event. */
24488
24512
  event_id: string;
@@ -56289,19 +56313,83 @@ export interface Routes {
56289
56313
  };
56290
56314
  };
56291
56315
  };
56316
+ '/unstable_partner/building_blocks/connect_accounts': {
56317
+ route: '/unstable_partner/building_blocks/connect_accounts';
56318
+ method: 'POST';
56319
+ queryParams: {};
56320
+ jsonBody: {};
56321
+ commonParams: {
56322
+ customer_key: string;
56323
+ };
56324
+ formData: {};
56325
+ jsonResponse: {
56326
+ /** */
56327
+ magic_link: {
56328
+ url: string;
56329
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
56330
+ customer_key: string;
56331
+ expires_at: string;
56332
+ workspace_id: string;
56333
+ created_at: string;
56334
+ };
56335
+ };
56336
+ };
56292
56337
  '/unstable_partner/building_blocks/generate_magic_link': {
56293
56338
  route: '/unstable_partner/building_blocks/generate_magic_link';
56294
56339
  method: 'POST' | 'GET';
56295
56340
  queryParams: {};
56296
56341
  jsonBody: {};
56297
56342
  commonParams: {
56298
- building_block_type: 'connect_account';
56343
+ building_block_type: 'connect_accounts';
56299
56344
  customer_key: string;
56300
56345
  } | {
56301
56346
  building_block_type: 'manage_devices';
56302
56347
  customer_key: string;
56303
56348
  } | {
56304
56349
  building_block_type: 'organize_spaces';
56350
+ customer_key: string;
56351
+ collection_key: string;
56352
+ };
56353
+ formData: {};
56354
+ jsonResponse: {
56355
+ /** */
56356
+ magic_link: {
56357
+ url: string;
56358
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
56359
+ customer_key: string;
56360
+ expires_at: string;
56361
+ workspace_id: string;
56362
+ created_at: string;
56363
+ };
56364
+ };
56365
+ };
56366
+ '/unstable_partner/building_blocks/manage_devices': {
56367
+ route: '/unstable_partner/building_blocks/manage_devices';
56368
+ method: 'POST';
56369
+ queryParams: {};
56370
+ jsonBody: {};
56371
+ commonParams: {
56372
+ customer_key: string;
56373
+ };
56374
+ formData: {};
56375
+ jsonResponse: {
56376
+ /** */
56377
+ magic_link: {
56378
+ url: string;
56379
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
56380
+ customer_key: string;
56381
+ expires_at: string;
56382
+ workspace_id: string;
56383
+ created_at: string;
56384
+ };
56385
+ };
56386
+ };
56387
+ '/unstable_partner/building_blocks/organize_spaces': {
56388
+ route: '/unstable_partner/building_blocks/organize_spaces';
56389
+ method: 'POST';
56390
+ queryParams: {};
56391
+ jsonBody: {};
56392
+ commonParams: {
56305
56393
  customer_key: string;
56306
56394
  partner_resources: Array<{
56307
56395
  partner_resource_key: string;
@@ -56315,7 +56403,7 @@ export interface Routes {
56315
56403
  /** */
56316
56404
  magic_link: {
56317
56405
  url: string;
56318
- building_block_type: 'connect_account' | 'manage_devices' | 'organize_spaces';
56406
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
56319
56407
  customer_key: string;
56320
56408
  expires_at: string;
56321
56409
  workspace_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.406.8",
3
+ "version": "1.407.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -92,7 +92,7 @@
92
92
  "zod": "^3.24.0"
93
93
  },
94
94
  "devDependencies": {
95
- "@seamapi/blueprint": "^0.43.5",
95
+ "@seamapi/blueprint": "^0.44.0",
96
96
  "@types/node": "^20.8.10",
97
97
  "concurrently": "^8.2.0",
98
98
  "del-cli": "^5.0.0",
@@ -21,6 +21,7 @@ export {
21
21
  bridge,
22
22
  bridge_client_session,
23
23
  bridge_connected_system,
24
+ building_block_type,
24
25
  capabilities,
25
26
  climate_preset,
26
27
  climate_setting,
@@ -43,6 +43,15 @@ export const access_method_revoked_event = access_method_event.extend({
43
43
  An access method was revoked.
44
44
  `)
45
45
 
46
+ export const access_method_deleted_event = access_method_event.extend({
47
+ event_type: z.literal('access_method.deleted'),
48
+ }).describe(`
49
+ ---
50
+ route_path: /unstable_access_methods
51
+ ---
52
+ An access method was deleted.
53
+ `)
54
+
46
55
  export type AccessMethodRevokedEvent = z.infer<
47
56
  typeof access_method_revoked_event
48
57
  >
@@ -51,4 +60,5 @@ export const access_method_events = [
51
60
  access_method_issued_event,
52
61
  access_method_revoked_event,
53
62
  access_method_card_encoding_required_event,
63
+ access_method_deleted_event,
54
64
  ] as const
@@ -1,12 +1,16 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ export const building_block_type = z.enum([
4
+ 'connect_accounts',
5
+ 'manage_devices',
6
+ 'organize_spaces',
7
+ ])
8
+
9
+ export type BuildingBlockType = z.infer<typeof building_block_type>
10
+
3
11
  export const magic_link = z.object({
4
12
  url: z.string().url(),
5
- building_block_type: z.enum([
6
- 'connect_account',
7
- 'manage_devices',
8
- 'organize_spaces',
9
- ]),
13
+ building_block_type,
10
14
  customer_key: z.string(),
11
15
  expires_at: z.string().datetime(),
12
16
  workspace_id: z.string().uuid(),
@@ -12399,6 +12399,47 @@ export default {
12399
12399
  type: 'object',
12400
12400
  'x-route-path': '/unstable_access_methods',
12401
12401
  },
12402
+ {
12403
+ description: 'An access method was deleted.',
12404
+ properties: {
12405
+ access_method_id: {
12406
+ description: 'ID of the affected access method.',
12407
+ format: 'uuid',
12408
+ type: 'string',
12409
+ },
12410
+ created_at: {
12411
+ description: 'Date and time at which the event was created.',
12412
+ format: 'date-time',
12413
+ type: 'string',
12414
+ },
12415
+ event_id: {
12416
+ description: 'ID of the event.',
12417
+ format: 'uuid',
12418
+ type: 'string',
12419
+ },
12420
+ event_type: { enum: ['access_method.deleted'], type: 'string' },
12421
+ occurred_at: {
12422
+ description: 'Date and time at which the event occurred.',
12423
+ format: 'date-time',
12424
+ type: 'string',
12425
+ },
12426
+ workspace_id: {
12427
+ description: 'ID of the workspace associated with the event.',
12428
+ format: 'uuid',
12429
+ type: 'string',
12430
+ },
12431
+ },
12432
+ required: [
12433
+ 'event_id',
12434
+ 'workspace_id',
12435
+ 'created_at',
12436
+ 'occurred_at',
12437
+ 'access_method_id',
12438
+ 'event_type',
12439
+ ],
12440
+ type: 'object',
12441
+ 'x-route-path': '/unstable_access_methods',
12442
+ },
12402
12443
  {
12403
12444
  description:
12404
12445
  'An [access system](https://docs.seam.co/latest/capability-guides/access-systems) was connected.',
@@ -15917,7 +15958,7 @@ export default {
15917
15958
  magic_link: {
15918
15959
  properties: {
15919
15960
  building_block_type: {
15920
- enum: ['connect_account', 'manage_devices', 'organize_spaces'],
15961
+ enum: ['connect_accounts', 'manage_devices', 'organize_spaces'],
15921
15962
  type: 'string',
15922
15963
  },
15923
15964
  created_at: { format: 'date-time', type: 'string' },
@@ -29835,6 +29876,7 @@ export default {
29835
29876
  'access_method.issued',
29836
29877
  'access_method.revoked',
29837
29878
  'access_method.card_encoding_required',
29879
+ 'access_method.deleted',
29838
29880
  'acs_system.connected',
29839
29881
  'acs_system.added',
29840
29882
  'acs_system.disconnected',
@@ -29930,6 +29972,7 @@ export default {
29930
29972
  'access_method.issued',
29931
29973
  'access_method.revoked',
29932
29974
  'access_method.card_encoding_required',
29975
+ 'access_method.deleted',
29933
29976
  'acs_system.connected',
29934
29977
  'acs_system.added',
29935
29978
  'acs_system.disconnected',
@@ -37813,6 +37856,56 @@ export default {
37813
37856
  'x-undocumented': 'Experimental locations.',
37814
37857
  },
37815
37858
  },
37859
+ '/unstable_partner/building_blocks/connect_accounts': {
37860
+ post: {
37861
+ description:
37862
+ 'Creates a new building block magic link to connect accounts.',
37863
+ operationId: 'unstablePartnerBuildingBlocksConnectAccountsPost',
37864
+ requestBody: {
37865
+ content: {
37866
+ 'application/json': {
37867
+ schema: {
37868
+ properties: { customer_key: { type: 'string' } },
37869
+ required: ['customer_key'],
37870
+ type: 'object',
37871
+ },
37872
+ },
37873
+ },
37874
+ },
37875
+ responses: {
37876
+ 200: {
37877
+ content: {
37878
+ 'application/json': {
37879
+ schema: {
37880
+ properties: {
37881
+ magic_link: { $ref: '#/components/schemas/magic_link' },
37882
+ ok: { type: 'boolean' },
37883
+ },
37884
+ required: ['magic_link', 'ok'],
37885
+ type: 'object',
37886
+ },
37887
+ },
37888
+ },
37889
+ description: 'OK',
37890
+ },
37891
+ 400: { description: 'Bad Request' },
37892
+ 401: { description: 'Unauthorized' },
37893
+ },
37894
+ security: [
37895
+ { pat_with_workspace: [] },
37896
+ { console_session_with_workspace: [] },
37897
+ { api_key: [] },
37898
+ ],
37899
+ summary: '/unstable_partner/building_blocks/connect_accounts',
37900
+ tags: [],
37901
+ 'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'],
37902
+ 'x-fern-sdk-method-name': 'connect_accounts',
37903
+ 'x-fern-sdk-return-value': 'magic_link',
37904
+ 'x-response-key': 'magic_link',
37905
+ 'x-title': 'Connect Accounts',
37906
+ 'x-undocumented': 'Experimental partner building blocks.',
37907
+ },
37908
+ },
37816
37909
  '/unstable_partner/building_blocks/generate_magic_link': {
37817
37910
  post: {
37818
37911
  description: 'Creates a new building block magic link.',
@@ -37821,12 +37914,11 @@ export default {
37821
37914
  content: {
37822
37915
  'application/json': {
37823
37916
  schema: {
37824
- discriminator: { propertyName: 'building_block_type' },
37825
37917
  oneOf: [
37826
37918
  {
37827
37919
  properties: {
37828
37920
  building_block_type: {
37829
- enum: ['connect_account'],
37921
+ enum: ['connect_accounts'],
37830
37922
  type: 'string',
37831
37923
  },
37832
37924
  customer_key: { type: 'string' },
@@ -37851,30 +37943,13 @@ export default {
37851
37943
  enum: ['organize_spaces'],
37852
37944
  type: 'string',
37853
37945
  },
37946
+ collection_key: { type: 'string' },
37854
37947
  customer_key: { type: 'string' },
37855
- partner_resources: {
37856
- items: {
37857
- properties: {
37858
- custom_metadata: {
37859
- additionalProperties: { type: 'string' },
37860
- type: 'object',
37861
- },
37862
- description: { type: 'string' },
37863
- name: { type: 'string' },
37864
- partner_resource_key: { type: 'string' },
37865
- },
37866
- required: ['partner_resource_key', 'name'],
37867
- type: 'object',
37868
- 'x-route-path': '/unstable_partner/resources',
37869
- 'x-undocumented': 'Unreleased.',
37870
- },
37871
- type: 'array',
37872
- },
37873
37948
  },
37874
37949
  required: [
37875
37950
  'building_block_type',
37876
37951
  'customer_key',
37877
- 'partner_resources',
37952
+ 'collection_key',
37878
37953
  ],
37879
37954
  type: 'object',
37880
37955
  },
@@ -37902,7 +37977,11 @@ export default {
37902
37977
  400: { description: 'Bad Request' },
37903
37978
  401: { description: 'Unauthorized' },
37904
37979
  },
37905
- security: [{ api_key: [] }],
37980
+ security: [
37981
+ { pat_with_workspace: [] },
37982
+ { console_session_with_workspace: [] },
37983
+ { api_key: [] },
37984
+ ],
37906
37985
  summary: '/unstable_partner/building_blocks/generate_magic_link',
37907
37986
  tags: [],
37908
37987
  'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'],
@@ -37913,6 +37992,127 @@ export default {
37913
37992
  'x-undocumented': 'Experimental partner building blocks.',
37914
37993
  },
37915
37994
  },
37995
+ '/unstable_partner/building_blocks/manage_devices': {
37996
+ post: {
37997
+ description:
37998
+ 'Creates a new building block magic link to manage devices.',
37999
+ operationId: 'unstablePartnerBuildingBlocksManageDevicesPost',
38000
+ requestBody: {
38001
+ content: {
38002
+ 'application/json': {
38003
+ schema: {
38004
+ properties: { customer_key: { type: 'string' } },
38005
+ required: ['customer_key'],
38006
+ type: 'object',
38007
+ },
38008
+ },
38009
+ },
38010
+ },
38011
+ responses: {
38012
+ 200: {
38013
+ content: {
38014
+ 'application/json': {
38015
+ schema: {
38016
+ properties: {
38017
+ magic_link: { $ref: '#/components/schemas/magic_link' },
38018
+ ok: { type: 'boolean' },
38019
+ },
38020
+ required: ['magic_link', 'ok'],
38021
+ type: 'object',
38022
+ },
38023
+ },
38024
+ },
38025
+ description: 'OK',
38026
+ },
38027
+ 400: { description: 'Bad Request' },
38028
+ 401: { description: 'Unauthorized' },
38029
+ },
38030
+ security: [
38031
+ { pat_with_workspace: [] },
38032
+ { console_session_with_workspace: [] },
38033
+ { api_key: [] },
38034
+ ],
38035
+ summary: '/unstable_partner/building_blocks/manage_devices',
38036
+ tags: [],
38037
+ 'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'],
38038
+ 'x-fern-sdk-method-name': 'manage_devices',
38039
+ 'x-fern-sdk-return-value': 'magic_link',
38040
+ 'x-response-key': 'magic_link',
38041
+ 'x-title': 'Manage Devices',
38042
+ 'x-undocumented': 'Experimental partner building blocks.',
38043
+ },
38044
+ },
38045
+ '/unstable_partner/building_blocks/organize_spaces': {
38046
+ post: {
38047
+ description:
38048
+ 'Creates a new building block magic link to organize spaces.',
38049
+ operationId: 'unstablePartnerBuildingBlocksOrganizeSpacesPost',
38050
+ requestBody: {
38051
+ content: {
38052
+ 'application/json': {
38053
+ schema: {
38054
+ properties: {
38055
+ customer_key: { type: 'string' },
38056
+ partner_resources: {
38057
+ items: {
38058
+ properties: {
38059
+ custom_metadata: {
38060
+ additionalProperties: { type: 'string' },
38061
+ type: 'object',
38062
+ },
38063
+ description: { type: 'string' },
38064
+ name: { type: 'string' },
38065
+ partner_resource_key: { type: 'string' },
38066
+ },
38067
+ required: ['partner_resource_key', 'name'],
38068
+ type: 'object',
38069
+ 'x-route-path': '/unstable_partner/resources',
38070
+ 'x-undocumented': 'Unreleased.',
38071
+ },
38072
+ minItems: 1,
38073
+ type: 'array',
38074
+ },
38075
+ },
38076
+ required: ['customer_key', 'partner_resources'],
38077
+ type: 'object',
38078
+ },
38079
+ },
38080
+ },
38081
+ },
38082
+ responses: {
38083
+ 200: {
38084
+ content: {
38085
+ 'application/json': {
38086
+ schema: {
38087
+ properties: {
38088
+ magic_link: { $ref: '#/components/schemas/magic_link' },
38089
+ ok: { type: 'boolean' },
38090
+ },
38091
+ required: ['magic_link', 'ok'],
38092
+ type: 'object',
38093
+ },
38094
+ },
38095
+ },
38096
+ description: 'OK',
38097
+ },
38098
+ 400: { description: 'Bad Request' },
38099
+ 401: { description: 'Unauthorized' },
38100
+ },
38101
+ security: [
38102
+ { pat_with_workspace: [] },
38103
+ { console_session_with_workspace: [] },
38104
+ { api_key: [] },
38105
+ ],
38106
+ summary: '/unstable_partner/building_blocks/organize_spaces',
38107
+ tags: [],
38108
+ 'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'],
38109
+ 'x-fern-sdk-method-name': 'organize_spaces',
38110
+ 'x-fern-sdk-return-value': 'magic_link',
38111
+ 'x-response-key': 'magic_link',
38112
+ 'x-title': 'Organize Spaces',
38113
+ 'x-undocumented': 'Experimental partner building blocks.',
38114
+ },
38115
+ },
37916
38116
  '/unstable_partner/resources/push': {
37917
38117
  post: {
37918
38118
  description: 'Send Seam some of your resources.',