@seamapi/types 1.406.8 → 1.406.9

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.
@@ -56289,19 +56289,83 @@ export interface Routes {
56289
56289
  };
56290
56290
  };
56291
56291
  };
56292
+ '/unstable_partner/building_blocks/connect_accounts': {
56293
+ route: '/unstable_partner/building_blocks/connect_accounts';
56294
+ method: 'POST';
56295
+ queryParams: {};
56296
+ jsonBody: {};
56297
+ commonParams: {
56298
+ customer_key: string;
56299
+ };
56300
+ formData: {};
56301
+ jsonResponse: {
56302
+ /** */
56303
+ magic_link: {
56304
+ url: string;
56305
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
56306
+ customer_key: string;
56307
+ expires_at: string;
56308
+ workspace_id: string;
56309
+ created_at: string;
56310
+ };
56311
+ };
56312
+ };
56292
56313
  '/unstable_partner/building_blocks/generate_magic_link': {
56293
56314
  route: '/unstable_partner/building_blocks/generate_magic_link';
56294
56315
  method: 'POST' | 'GET';
56295
56316
  queryParams: {};
56296
56317
  jsonBody: {};
56297
56318
  commonParams: {
56298
- building_block_type: 'connect_account';
56319
+ building_block_type: 'connect_accounts';
56299
56320
  customer_key: string;
56300
56321
  } | {
56301
56322
  building_block_type: 'manage_devices';
56302
56323
  customer_key: string;
56303
56324
  } | {
56304
56325
  building_block_type: 'organize_spaces';
56326
+ customer_key: string;
56327
+ collection_key: string;
56328
+ };
56329
+ formData: {};
56330
+ jsonResponse: {
56331
+ /** */
56332
+ magic_link: {
56333
+ url: string;
56334
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
56335
+ customer_key: string;
56336
+ expires_at: string;
56337
+ workspace_id: string;
56338
+ created_at: string;
56339
+ };
56340
+ };
56341
+ };
56342
+ '/unstable_partner/building_blocks/manage_devices': {
56343
+ route: '/unstable_partner/building_blocks/manage_devices';
56344
+ method: 'POST';
56345
+ queryParams: {};
56346
+ jsonBody: {};
56347
+ commonParams: {
56348
+ customer_key: string;
56349
+ };
56350
+ formData: {};
56351
+ jsonResponse: {
56352
+ /** */
56353
+ magic_link: {
56354
+ url: string;
56355
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
56356
+ customer_key: string;
56357
+ expires_at: string;
56358
+ workspace_id: string;
56359
+ created_at: string;
56360
+ };
56361
+ };
56362
+ };
56363
+ '/unstable_partner/building_blocks/organize_spaces': {
56364
+ route: '/unstable_partner/building_blocks/organize_spaces';
56365
+ method: 'POST';
56366
+ queryParams: {};
56367
+ jsonBody: {};
56368
+ commonParams: {
56305
56369
  customer_key: string;
56306
56370
  partner_resources: Array<{
56307
56371
  partner_resource_key: string;
@@ -56315,7 +56379,7 @@ export interface Routes {
56315
56379
  /** */
56316
56380
  magic_link: {
56317
56381
  url: string;
56318
- building_block_type: 'connect_account' | 'manage_devices' | 'organize_spaces';
56382
+ building_block_type: 'connect_accounts' | 'manage_devices' | 'organize_spaces';
56319
56383
  customer_key: string;
56320
56384
  expires_at: string;
56321
56385
  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.406.9",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -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,
@@ -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(),
@@ -15917,7 +15917,7 @@ export default {
15917
15917
  magic_link: {
15918
15918
  properties: {
15919
15919
  building_block_type: {
15920
- enum: ['connect_account', 'manage_devices', 'organize_spaces'],
15920
+ enum: ['connect_accounts', 'manage_devices', 'organize_spaces'],
15921
15921
  type: 'string',
15922
15922
  },
15923
15923
  created_at: { format: 'date-time', type: 'string' },
@@ -37813,6 +37813,56 @@ export default {
37813
37813
  'x-undocumented': 'Experimental locations.',
37814
37814
  },
37815
37815
  },
37816
+ '/unstable_partner/building_blocks/connect_accounts': {
37817
+ post: {
37818
+ description:
37819
+ 'Creates a new building block magic link to connect accounts.',
37820
+ operationId: 'unstablePartnerBuildingBlocksConnectAccountsPost',
37821
+ requestBody: {
37822
+ content: {
37823
+ 'application/json': {
37824
+ schema: {
37825
+ properties: { customer_key: { type: 'string' } },
37826
+ required: ['customer_key'],
37827
+ type: 'object',
37828
+ },
37829
+ },
37830
+ },
37831
+ },
37832
+ responses: {
37833
+ 200: {
37834
+ content: {
37835
+ 'application/json': {
37836
+ schema: {
37837
+ properties: {
37838
+ magic_link: { $ref: '#/components/schemas/magic_link' },
37839
+ ok: { type: 'boolean' },
37840
+ },
37841
+ required: ['magic_link', 'ok'],
37842
+ type: 'object',
37843
+ },
37844
+ },
37845
+ },
37846
+ description: 'OK',
37847
+ },
37848
+ 400: { description: 'Bad Request' },
37849
+ 401: { description: 'Unauthorized' },
37850
+ },
37851
+ security: [
37852
+ { pat_with_workspace: [] },
37853
+ { console_session_with_workspace: [] },
37854
+ { api_key: [] },
37855
+ ],
37856
+ summary: '/unstable_partner/building_blocks/connect_accounts',
37857
+ tags: [],
37858
+ 'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'],
37859
+ 'x-fern-sdk-method-name': 'connect_accounts',
37860
+ 'x-fern-sdk-return-value': 'magic_link',
37861
+ 'x-response-key': 'magic_link',
37862
+ 'x-title': 'Connect Accounts',
37863
+ 'x-undocumented': 'Experimental partner building blocks.',
37864
+ },
37865
+ },
37816
37866
  '/unstable_partner/building_blocks/generate_magic_link': {
37817
37867
  post: {
37818
37868
  description: 'Creates a new building block magic link.',
@@ -37821,12 +37871,11 @@ export default {
37821
37871
  content: {
37822
37872
  'application/json': {
37823
37873
  schema: {
37824
- discriminator: { propertyName: 'building_block_type' },
37825
37874
  oneOf: [
37826
37875
  {
37827
37876
  properties: {
37828
37877
  building_block_type: {
37829
- enum: ['connect_account'],
37878
+ enum: ['connect_accounts'],
37830
37879
  type: 'string',
37831
37880
  },
37832
37881
  customer_key: { type: 'string' },
@@ -37851,30 +37900,13 @@ export default {
37851
37900
  enum: ['organize_spaces'],
37852
37901
  type: 'string',
37853
37902
  },
37903
+ collection_key: { type: 'string' },
37854
37904
  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
37905
  },
37874
37906
  required: [
37875
37907
  'building_block_type',
37876
37908
  'customer_key',
37877
- 'partner_resources',
37909
+ 'collection_key',
37878
37910
  ],
37879
37911
  type: 'object',
37880
37912
  },
@@ -37902,7 +37934,11 @@ export default {
37902
37934
  400: { description: 'Bad Request' },
37903
37935
  401: { description: 'Unauthorized' },
37904
37936
  },
37905
- security: [{ api_key: [] }],
37937
+ security: [
37938
+ { pat_with_workspace: [] },
37939
+ { console_session_with_workspace: [] },
37940
+ { api_key: [] },
37941
+ ],
37906
37942
  summary: '/unstable_partner/building_blocks/generate_magic_link',
37907
37943
  tags: [],
37908
37944
  'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'],
@@ -37913,6 +37949,127 @@ export default {
37913
37949
  'x-undocumented': 'Experimental partner building blocks.',
37914
37950
  },
37915
37951
  },
37952
+ '/unstable_partner/building_blocks/manage_devices': {
37953
+ post: {
37954
+ description:
37955
+ 'Creates a new building block magic link to manage devices.',
37956
+ operationId: 'unstablePartnerBuildingBlocksManageDevicesPost',
37957
+ requestBody: {
37958
+ content: {
37959
+ 'application/json': {
37960
+ schema: {
37961
+ properties: { customer_key: { type: 'string' } },
37962
+ required: ['customer_key'],
37963
+ type: 'object',
37964
+ },
37965
+ },
37966
+ },
37967
+ },
37968
+ responses: {
37969
+ 200: {
37970
+ content: {
37971
+ 'application/json': {
37972
+ schema: {
37973
+ properties: {
37974
+ magic_link: { $ref: '#/components/schemas/magic_link' },
37975
+ ok: { type: 'boolean' },
37976
+ },
37977
+ required: ['magic_link', 'ok'],
37978
+ type: 'object',
37979
+ },
37980
+ },
37981
+ },
37982
+ description: 'OK',
37983
+ },
37984
+ 400: { description: 'Bad Request' },
37985
+ 401: { description: 'Unauthorized' },
37986
+ },
37987
+ security: [
37988
+ { pat_with_workspace: [] },
37989
+ { console_session_with_workspace: [] },
37990
+ { api_key: [] },
37991
+ ],
37992
+ summary: '/unstable_partner/building_blocks/manage_devices',
37993
+ tags: [],
37994
+ 'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'],
37995
+ 'x-fern-sdk-method-name': 'manage_devices',
37996
+ 'x-fern-sdk-return-value': 'magic_link',
37997
+ 'x-response-key': 'magic_link',
37998
+ 'x-title': 'Manage Devices',
37999
+ 'x-undocumented': 'Experimental partner building blocks.',
38000
+ },
38001
+ },
38002
+ '/unstable_partner/building_blocks/organize_spaces': {
38003
+ post: {
38004
+ description:
38005
+ 'Creates a new building block magic link to organize spaces.',
38006
+ operationId: 'unstablePartnerBuildingBlocksOrganizeSpacesPost',
38007
+ requestBody: {
38008
+ content: {
38009
+ 'application/json': {
38010
+ schema: {
38011
+ properties: {
38012
+ customer_key: { type: 'string' },
38013
+ partner_resources: {
38014
+ items: {
38015
+ properties: {
38016
+ custom_metadata: {
38017
+ additionalProperties: { type: 'string' },
38018
+ type: 'object',
38019
+ },
38020
+ description: { type: 'string' },
38021
+ name: { type: 'string' },
38022
+ partner_resource_key: { type: 'string' },
38023
+ },
38024
+ required: ['partner_resource_key', 'name'],
38025
+ type: 'object',
38026
+ 'x-route-path': '/unstable_partner/resources',
38027
+ 'x-undocumented': 'Unreleased.',
38028
+ },
38029
+ minItems: 1,
38030
+ type: 'array',
38031
+ },
38032
+ },
38033
+ required: ['customer_key', 'partner_resources'],
38034
+ type: 'object',
38035
+ },
38036
+ },
38037
+ },
38038
+ },
38039
+ responses: {
38040
+ 200: {
38041
+ content: {
38042
+ 'application/json': {
38043
+ schema: {
38044
+ properties: {
38045
+ magic_link: { $ref: '#/components/schemas/magic_link' },
38046
+ ok: { type: 'boolean' },
38047
+ },
38048
+ required: ['magic_link', 'ok'],
38049
+ type: 'object',
38050
+ },
38051
+ },
38052
+ },
38053
+ description: 'OK',
38054
+ },
38055
+ 400: { description: 'Bad Request' },
38056
+ 401: { description: 'Unauthorized' },
38057
+ },
38058
+ security: [
38059
+ { pat_with_workspace: [] },
38060
+ { console_session_with_workspace: [] },
38061
+ { api_key: [] },
38062
+ ],
38063
+ summary: '/unstable_partner/building_blocks/organize_spaces',
38064
+ tags: [],
38065
+ 'x-fern-sdk-group-name': ['unstable_partner', 'building_blocks'],
38066
+ 'x-fern-sdk-method-name': 'organize_spaces',
38067
+ 'x-fern-sdk-return-value': 'magic_link',
38068
+ 'x-response-key': 'magic_link',
38069
+ 'x-title': 'Organize Spaces',
38070
+ 'x-undocumented': 'Experimental partner building blocks.',
38071
+ },
38072
+ },
37916
38073
  '/unstable_partner/resources/push': {
37917
38074
  post: {
37918
38075
  description: 'Send Seam some of your resources.',
@@ -66241,6 +66241,30 @@ export interface Routes {
66241
66241
  }
66242
66242
  }
66243
66243
  }
66244
+ '/unstable_partner/building_blocks/connect_accounts': {
66245
+ route: '/unstable_partner/building_blocks/connect_accounts'
66246
+ method: 'POST'
66247
+ queryParams: {}
66248
+ jsonBody: {}
66249
+ commonParams: {
66250
+ customer_key: string
66251
+ }
66252
+ formData: {}
66253
+ jsonResponse: {
66254
+ /** */
66255
+ magic_link: {
66256
+ url: string
66257
+ building_block_type:
66258
+ | 'connect_accounts'
66259
+ | 'manage_devices'
66260
+ | 'organize_spaces'
66261
+ customer_key: string
66262
+ expires_at: string
66263
+ workspace_id: string
66264
+ created_at: string
66265
+ }
66266
+ }
66267
+ }
66244
66268
  '/unstable_partner/building_blocks/generate_magic_link': {
66245
66269
  route: '/unstable_partner/building_blocks/generate_magic_link'
66246
66270
  method: 'POST' | 'GET'
@@ -66248,7 +66272,7 @@ export interface Routes {
66248
66272
  jsonBody: {}
66249
66273
  commonParams:
66250
66274
  | {
66251
- building_block_type: 'connect_account'
66275
+ building_block_type: 'connect_accounts'
66252
66276
  customer_key: string
66253
66277
  }
66254
66278
  | {
@@ -66258,12 +66282,7 @@ export interface Routes {
66258
66282
  | {
66259
66283
  building_block_type: 'organize_spaces'
66260
66284
  customer_key: string
66261
- partner_resources: Array<{
66262
- partner_resource_key: string
66263
- name: string
66264
- description?: string | undefined
66265
- custom_metadata?: Record<string, string> | undefined
66266
- }>
66285
+ collection_key: string
66267
66286
  }
66268
66287
  formData: {}
66269
66288
  jsonResponse: {
@@ -66271,7 +66290,61 @@ export interface Routes {
66271
66290
  magic_link: {
66272
66291
  url: string
66273
66292
  building_block_type:
66274
- | 'connect_account'
66293
+ | 'connect_accounts'
66294
+ | 'manage_devices'
66295
+ | 'organize_spaces'
66296
+ customer_key: string
66297
+ expires_at: string
66298
+ workspace_id: string
66299
+ created_at: string
66300
+ }
66301
+ }
66302
+ }
66303
+ '/unstable_partner/building_blocks/manage_devices': {
66304
+ route: '/unstable_partner/building_blocks/manage_devices'
66305
+ method: 'POST'
66306
+ queryParams: {}
66307
+ jsonBody: {}
66308
+ commonParams: {
66309
+ customer_key: string
66310
+ }
66311
+ formData: {}
66312
+ jsonResponse: {
66313
+ /** */
66314
+ magic_link: {
66315
+ url: string
66316
+ building_block_type:
66317
+ | 'connect_accounts'
66318
+ | 'manage_devices'
66319
+ | 'organize_spaces'
66320
+ customer_key: string
66321
+ expires_at: string
66322
+ workspace_id: string
66323
+ created_at: string
66324
+ }
66325
+ }
66326
+ }
66327
+ '/unstable_partner/building_blocks/organize_spaces': {
66328
+ route: '/unstable_partner/building_blocks/organize_spaces'
66329
+ method: 'POST'
66330
+ queryParams: {}
66331
+ jsonBody: {}
66332
+ commonParams: {
66333
+ customer_key: string
66334
+ partner_resources: Array<{
66335
+ partner_resource_key: string
66336
+ name: string
66337
+ description?: string | undefined
66338
+ custom_metadata?: Record<string, string> | undefined
66339
+ }>
66340
+ }
66341
+ formData: {}
66342
+ jsonResponse: {
66343
+ /** */
66344
+ magic_link: {
66345
+ url: string
66346
+ building_block_type:
66347
+ | 'connect_accounts'
66275
66348
  | 'manage_devices'
66276
66349
  | 'organize_spaces'
66277
66350
  customer_key: string