@seamapi/types 1.589.0 → 1.590.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.
@@ -10,6 +10,8 @@ export declare const spaces_batch: z.ZodObject<{
10
10
  created_at: z.ZodString;
11
11
  device_count: z.ZodNumber;
12
12
  acs_entrance_count: z.ZodNumber;
13
+ parent_space_id: z.ZodOptional<z.ZodString>;
14
+ parent_space_key: z.ZodOptional<z.ZodString>;
13
15
  }, "strip", z.ZodTypeAny, {
14
16
  name: string;
15
17
  display_name: string;
@@ -19,6 +21,8 @@ export declare const spaces_batch: z.ZodObject<{
19
21
  space_id: string;
20
22
  acs_entrance_count: number;
21
23
  space_key?: string | undefined;
24
+ parent_space_id?: string | undefined;
25
+ parent_space_key?: string | undefined;
22
26
  }, {
23
27
  name: string;
24
28
  display_name: string;
@@ -28,6 +32,8 @@ export declare const spaces_batch: z.ZodObject<{
28
32
  space_id: string;
29
33
  acs_entrance_count: number;
30
34
  space_key?: string | undefined;
35
+ parent_space_id?: string | undefined;
36
+ parent_space_key?: string | undefined;
31
37
  }>, "many">>;
32
38
  devices: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
39
  device_id: z.ZodString;
@@ -5151,6 +5157,8 @@ export declare const spaces_batch: z.ZodObject<{
5151
5157
  space_id: string;
5152
5158
  acs_entrance_count: number;
5153
5159
  space_key?: string | undefined;
5160
+ parent_space_id?: string | undefined;
5161
+ parent_space_key?: string | undefined;
5154
5162
  }[] | undefined;
5155
5163
  devices?: {
5156
5164
  display_name: string;
@@ -6023,6 +6031,8 @@ export declare const spaces_batch: z.ZodObject<{
6023
6031
  space_id: string;
6024
6032
  acs_entrance_count: number;
6025
6033
  space_key?: string | undefined;
6034
+ parent_space_id?: string | undefined;
6035
+ parent_space_key?: string | undefined;
6026
6036
  }[] | undefined;
6027
6037
  devices?: {
6028
6038
  display_name: string;
@@ -6896,6 +6906,8 @@ export declare const access_grants_batch: z.ZodObject<{
6896
6906
  created_at: z.ZodString;
6897
6907
  device_count: z.ZodNumber;
6898
6908
  acs_entrance_count: z.ZodNumber;
6909
+ parent_space_id: z.ZodOptional<z.ZodString>;
6910
+ parent_space_key: z.ZodOptional<z.ZodString>;
6899
6911
  }, "strip", z.ZodTypeAny, {
6900
6912
  name: string;
6901
6913
  display_name: string;
@@ -6905,6 +6917,8 @@ export declare const access_grants_batch: z.ZodObject<{
6905
6917
  space_id: string;
6906
6918
  acs_entrance_count: number;
6907
6919
  space_key?: string | undefined;
6920
+ parent_space_id?: string | undefined;
6921
+ parent_space_key?: string | undefined;
6908
6922
  }, {
6909
6923
  name: string;
6910
6924
  display_name: string;
@@ -6914,6 +6928,8 @@ export declare const access_grants_batch: z.ZodObject<{
6914
6928
  space_id: string;
6915
6929
  acs_entrance_count: number;
6916
6930
  space_key?: string | undefined;
6931
+ parent_space_id?: string | undefined;
6932
+ parent_space_key?: string | undefined;
6917
6933
  }>, "many">>;
6918
6934
  devices: z.ZodOptional<z.ZodArray<z.ZodObject<{
6919
6935
  device_id: z.ZodString;
@@ -12212,6 +12228,8 @@ export declare const access_grants_batch: z.ZodObject<{
12212
12228
  space_id: string;
12213
12229
  acs_entrance_count: number;
12214
12230
  space_key?: string | undefined;
12231
+ parent_space_id?: string | undefined;
12232
+ parent_space_key?: string | undefined;
12215
12233
  }[] | undefined;
12216
12234
  devices?: {
12217
12235
  display_name: string;
@@ -13130,6 +13148,8 @@ export declare const access_grants_batch: z.ZodObject<{
13130
13148
  space_id: string;
13131
13149
  acs_entrance_count: number;
13132
13150
  space_key?: string | undefined;
13151
+ parent_space_id?: string | undefined;
13152
+ parent_space_key?: string | undefined;
13133
13153
  }[] | undefined;
13134
13154
  devices?: {
13135
13155
  display_name: string;
@@ -14049,6 +14069,8 @@ export declare const access_methods_batch: z.ZodObject<{
14049
14069
  created_at: z.ZodString;
14050
14070
  device_count: z.ZodNumber;
14051
14071
  acs_entrance_count: z.ZodNumber;
14072
+ parent_space_id: z.ZodOptional<z.ZodString>;
14073
+ parent_space_key: z.ZodOptional<z.ZodString>;
14052
14074
  }, "strip", z.ZodTypeAny, {
14053
14075
  name: string;
14054
14076
  display_name: string;
@@ -14058,6 +14080,8 @@ export declare const access_methods_batch: z.ZodObject<{
14058
14080
  space_id: string;
14059
14081
  acs_entrance_count: number;
14060
14082
  space_key?: string | undefined;
14083
+ parent_space_id?: string | undefined;
14084
+ parent_space_key?: string | undefined;
14061
14085
  }, {
14062
14086
  name: string;
14063
14087
  display_name: string;
@@ -14067,6 +14091,8 @@ export declare const access_methods_batch: z.ZodObject<{
14067
14091
  space_id: string;
14068
14092
  acs_entrance_count: number;
14069
14093
  space_key?: string | undefined;
14094
+ parent_space_id?: string | undefined;
14095
+ parent_space_key?: string | undefined;
14070
14096
  }>, "many">>;
14071
14097
  devices: z.ZodOptional<z.ZodArray<z.ZodObject<{
14072
14098
  device_id: z.ZodString;
@@ -18786,6 +18812,8 @@ export declare const access_methods_batch: z.ZodObject<{
18786
18812
  space_id: string;
18787
18813
  acs_entrance_count: number;
18788
18814
  space_key?: string | undefined;
18815
+ parent_space_id?: string | undefined;
18816
+ parent_space_key?: string | undefined;
18789
18817
  }[] | undefined;
18790
18818
  devices?: {
18791
18819
  display_name: string;
@@ -19600,6 +19628,8 @@ export declare const access_methods_batch: z.ZodObject<{
19600
19628
  space_id: string;
19601
19629
  acs_entrance_count: number;
19602
19630
  space_key?: string | undefined;
19631
+ parent_space_id?: string | undefined;
19632
+ parent_space_key?: string | undefined;
19603
19633
  }[] | undefined;
19604
19634
  devices?: {
19605
19635
  display_name: string;
@@ -20586,6 +20616,8 @@ export declare const workspaces_batch: z.ZodObject<{
20586
20616
  created_at: z.ZodString;
20587
20617
  device_count: z.ZodNumber;
20588
20618
  acs_entrance_count: z.ZodNumber;
20619
+ parent_space_id: z.ZodOptional<z.ZodString>;
20620
+ parent_space_key: z.ZodOptional<z.ZodString>;
20589
20621
  }, "strip", z.ZodTypeAny, {
20590
20622
  name: string;
20591
20623
  display_name: string;
@@ -20595,6 +20627,8 @@ export declare const workspaces_batch: z.ZodObject<{
20595
20627
  space_id: string;
20596
20628
  acs_entrance_count: number;
20597
20629
  space_key?: string | undefined;
20630
+ parent_space_id?: string | undefined;
20631
+ parent_space_key?: string | undefined;
20598
20632
  }, {
20599
20633
  name: string;
20600
20634
  display_name: string;
@@ -20604,6 +20638,8 @@ export declare const workspaces_batch: z.ZodObject<{
20604
20638
  space_id: string;
20605
20639
  acs_entrance_count: number;
20606
20640
  space_key?: string | undefined;
20641
+ parent_space_id?: string | undefined;
20642
+ parent_space_key?: string | undefined;
20607
20643
  }>, "many">>;
20608
20644
  devices: z.ZodOptional<z.ZodArray<z.ZodObject<{
20609
20645
  device_id: z.ZodString;
@@ -41474,6 +41510,8 @@ export declare const workspaces_batch: z.ZodObject<{
41474
41510
  space_id: string;
41475
41511
  acs_entrance_count: number;
41476
41512
  space_key?: string | undefined;
41513
+ parent_space_id?: string | undefined;
41514
+ parent_space_key?: string | undefined;
41477
41515
  }[] | undefined;
41478
41516
  devices?: {
41479
41517
  display_name: string;
@@ -45440,6 +45478,8 @@ export declare const workspaces_batch: z.ZodObject<{
45440
45478
  space_id: string;
45441
45479
  acs_entrance_count: number;
45442
45480
  space_key?: string | undefined;
45481
+ parent_space_id?: string | undefined;
45482
+ parent_space_key?: string | undefined;
45443
45483
  }[] | undefined;
45444
45484
  devices?: {
45445
45485
  display_name: string;
@@ -49567,6 +49607,8 @@ export declare const batch: z.ZodObject<{
49567
49607
  created_at: z.ZodString;
49568
49608
  device_count: z.ZodNumber;
49569
49609
  acs_entrance_count: z.ZodNumber;
49610
+ parent_space_id: z.ZodOptional<z.ZodString>;
49611
+ parent_space_key: z.ZodOptional<z.ZodString>;
49570
49612
  }, "strip", z.ZodTypeAny, {
49571
49613
  name: string;
49572
49614
  display_name: string;
@@ -49576,6 +49618,8 @@ export declare const batch: z.ZodObject<{
49576
49618
  space_id: string;
49577
49619
  acs_entrance_count: number;
49578
49620
  space_key?: string | undefined;
49621
+ parent_space_id?: string | undefined;
49622
+ parent_space_key?: string | undefined;
49579
49623
  }, {
49580
49624
  name: string;
49581
49625
  display_name: string;
@@ -49585,6 +49629,8 @@ export declare const batch: z.ZodObject<{
49585
49629
  space_id: string;
49586
49630
  acs_entrance_count: number;
49587
49631
  space_key?: string | undefined;
49632
+ parent_space_id?: string | undefined;
49633
+ parent_space_key?: string | undefined;
49588
49634
  }>, "many">>;
49589
49635
  devices: z.ZodOptional<z.ZodArray<z.ZodObject<{
49590
49636
  device_id: z.ZodString;
@@ -70083,6 +70129,8 @@ export declare const batch: z.ZodObject<{
70083
70129
  space_id: string;
70084
70130
  acs_entrance_count: number;
70085
70131
  space_key?: string | undefined;
70132
+ parent_space_id?: string | undefined;
70133
+ parent_space_key?: string | undefined;
70086
70134
  }[] | undefined;
70087
70135
  devices?: {
70088
70136
  display_name: string;
@@ -73980,6 +74028,8 @@ export declare const batch: z.ZodObject<{
73980
74028
  space_id: string;
73981
74029
  acs_entrance_count: number;
73982
74030
  space_key?: string | undefined;
74031
+ parent_space_id?: string | undefined;
74032
+ parent_space_key?: string | undefined;
73983
74033
  }[] | undefined;
73984
74034
  devices?: {
73985
74035
  display_name: string;
@@ -8,6 +8,8 @@ export declare const space: z.ZodObject<{
8
8
  created_at: z.ZodString;
9
9
  device_count: z.ZodNumber;
10
10
  acs_entrance_count: z.ZodNumber;
11
+ parent_space_id: z.ZodOptional<z.ZodString>;
12
+ parent_space_key: z.ZodOptional<z.ZodString>;
11
13
  }, "strip", z.ZodTypeAny, {
12
14
  name: string;
13
15
  display_name: string;
@@ -17,6 +19,8 @@ export declare const space: z.ZodObject<{
17
19
  space_id: string;
18
20
  acs_entrance_count: number;
19
21
  space_key?: string | undefined;
22
+ parent_space_id?: string | undefined;
23
+ parent_space_key?: string | undefined;
20
24
  }, {
21
25
  name: string;
22
26
  display_name: string;
@@ -26,5 +30,7 @@ export declare const space: z.ZodObject<{
26
30
  space_id: string;
27
31
  acs_entrance_count: number;
28
32
  space_key?: string | undefined;
33
+ parent_space_id?: string | undefined;
34
+ parent_space_key?: string | undefined;
29
35
  }>;
30
36
  export type Space = z.infer<typeof space>;
@@ -17,6 +17,16 @@ export const space = z.object({
17
17
  .describe('Date and time at which the space was created.'),
18
18
  device_count: z.number().describe('Number of devices in the space.'),
19
19
  acs_entrance_count: z.number().describe('Number of entrances in the space.'),
20
+ parent_space_id: z.string().uuid().optional().describe(`
21
+ ---
22
+ undocumented: Only used internally.
23
+ ---
24
+ `),
25
+ parent_space_key: z.string().optional().describe(`
26
+ ---
27
+ undocumented: Only used internally.
28
+ ---
29
+ `),
20
30
  }).describe(`
21
31
  ---
22
32
  draft: Early access.
@@ -1 +1 @@
1
- {"version":3,"file":"space.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/spaces/space.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IACxD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,wGAAwG,CACzG;IACH,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IAChE,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,+CAA+C,CAAC;IAC5D,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC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AAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA"}
@@ -12166,6 +12166,15 @@ declare const _default: {
12166
12166
  description: string;
12167
12167
  type: string;
12168
12168
  };
12169
+ parent_space_id: {
12170
+ format: string;
12171
+ type: string;
12172
+ 'x-undocumented': string;
12173
+ };
12174
+ parent_space_key: {
12175
+ type: string;
12176
+ 'x-undocumented': string;
12177
+ };
12169
12178
  space_id: {
12170
12179
  description: string;
12171
12180
  format: string;
@@ -43384,6 +43393,94 @@ declare const _default: {
43384
43393
  'x-undocumented': string;
43385
43394
  };
43386
43395
  };
43396
+ '/seam/customer/v1/spaces/create': {
43397
+ post: {
43398
+ description: string;
43399
+ operationId: string;
43400
+ requestBody: {
43401
+ content: {
43402
+ 'application/json': {
43403
+ schema: {
43404
+ properties: {
43405
+ acs_entrance_ids: {
43406
+ description: string;
43407
+ items: {
43408
+ format: string;
43409
+ type: string;
43410
+ };
43411
+ type: string;
43412
+ };
43413
+ device_ids: {
43414
+ description: string;
43415
+ items: {
43416
+ format: string;
43417
+ type: string;
43418
+ };
43419
+ type: string;
43420
+ };
43421
+ name: {
43422
+ description: string;
43423
+ type: string;
43424
+ };
43425
+ parent_space_key: {
43426
+ description: string;
43427
+ type: string;
43428
+ };
43429
+ parent_space_name: {
43430
+ description: string;
43431
+ type: string;
43432
+ };
43433
+ space_key: {
43434
+ description: string;
43435
+ type: string;
43436
+ };
43437
+ };
43438
+ required: string[];
43439
+ type: string;
43440
+ };
43441
+ };
43442
+ };
43443
+ };
43444
+ responses: {
43445
+ 200: {
43446
+ content: {
43447
+ 'application/json': {
43448
+ schema: {
43449
+ properties: {
43450
+ ok: {
43451
+ type: string;
43452
+ };
43453
+ space: {
43454
+ $ref: string;
43455
+ };
43456
+ };
43457
+ required: string[];
43458
+ type: string;
43459
+ };
43460
+ };
43461
+ };
43462
+ description: string;
43463
+ };
43464
+ 400: {
43465
+ description: string;
43466
+ };
43467
+ 401: {
43468
+ description: string;
43469
+ };
43470
+ };
43471
+ security: {
43472
+ client_session_with_customer: never[];
43473
+ }[];
43474
+ summary: string;
43475
+ tags: never[];
43476
+ 'x-draft': string;
43477
+ 'x-fern-sdk-group-name': string[];
43478
+ 'x-fern-sdk-method-name': string;
43479
+ 'x-fern-sdk-return-value': string;
43480
+ 'x-response-key': string;
43481
+ 'x-title': string;
43482
+ };
43483
+ };
43387
43484
  '/seam/instant_key/v1/client_sessions/exchange_short_code': {
43388
43485
  post: {
43389
43486
  description: string;
@@ -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',
@@ -48566,6 +48575,78 @@ export default {
48566
48575
  'x-undocumented': 'Internal endpoint for customer portals.',
48567
48576
  },
48568
48577
  },
48578
+ '/seam/customer/v1/spaces/create': {
48579
+ post: {
48580
+ description: 'Creates a new space with optional parent space support.',
48581
+ operationId: 'seamCustomerV1SpacesCreatePost',
48582
+ requestBody: {
48583
+ content: {
48584
+ 'application/json': {
48585
+ schema: {
48586
+ properties: {
48587
+ acs_entrance_ids: {
48588
+ description: 'IDs of the entrances that you want to add to the new space.',
48589
+ items: { format: 'uuid', type: 'string' },
48590
+ type: 'array',
48591
+ },
48592
+ device_ids: {
48593
+ description: 'IDs of the devices that you want to add to the new space.',
48594
+ items: { format: 'uuid', type: 'string' },
48595
+ type: 'array',
48596
+ },
48597
+ name: {
48598
+ description: 'Name of the space that you want to create.',
48599
+ type: 'string',
48600
+ },
48601
+ parent_space_key: {
48602
+ description: 'Space key of the parent space for this space.',
48603
+ type: 'string',
48604
+ },
48605
+ parent_space_name: {
48606
+ description: 'Name of the parent space for this space.',
48607
+ type: 'string',
48608
+ },
48609
+ space_key: {
48610
+ description: 'Unique key for the space within the workspace.',
48611
+ type: 'string',
48612
+ },
48613
+ },
48614
+ required: ['name'],
48615
+ type: 'object',
48616
+ },
48617
+ },
48618
+ },
48619
+ },
48620
+ responses: {
48621
+ 200: {
48622
+ content: {
48623
+ 'application/json': {
48624
+ schema: {
48625
+ properties: {
48626
+ ok: { type: 'boolean' },
48627
+ space: { $ref: '#/components/schemas/space' },
48628
+ },
48629
+ required: ['space', 'ok'],
48630
+ type: 'object',
48631
+ },
48632
+ },
48633
+ },
48634
+ description: 'OK',
48635
+ },
48636
+ 400: { description: 'Bad Request' },
48637
+ 401: { description: 'Unauthorized' },
48638
+ },
48639
+ security: [{ client_session_with_customer: [] }],
48640
+ summary: '/seam/customer/v1/spaces/create',
48641
+ tags: [],
48642
+ 'x-draft': 'Early access.',
48643
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'spaces'],
48644
+ 'x-fern-sdk-method-name': 'create',
48645
+ 'x-fern-sdk-return-value': 'space',
48646
+ 'x-response-key': 'space',
48647
+ 'x-title': 'Create a Space',
48648
+ },
48649
+ },
48569
48650
  '/seam/instant_key/v1/client_sessions/exchange_short_code': {
48570
48651
  post: {
48571
48652
  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.',