@seamapi/types 1.438.0 → 1.440.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.
- package/README.md +2 -1
- package/dist/connect.cjs +216 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +7321 -141
- package/dist/index.cjs +57327 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -3
- package/index.d.ts +1 -2
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/lib/seam/connect/internal/schemas.d.ts +1 -1
- package/lib/seam/connect/internal/schemas.js +1 -1
- package/lib/seam/connect/internal/schemas.js.map +1 -1
- package/lib/seam/connect/model-types.d.ts +1 -1
- package/lib/seam/connect/models/batches/batch.d.ts +5669 -0
- package/lib/seam/connect/models/batches/batch.js +8 -0
- package/lib/seam/connect/models/batches/batch.js.map +1 -0
- package/lib/seam/connect/models/batches/index.d.ts +2 -0
- package/lib/seam/connect/models/batches/index.js +3 -0
- package/lib/seam/connect/models/batches/index.js.map +1 -0
- package/lib/seam/connect/models/batches/spaces.d.ts +5669 -0
- package/lib/seam/connect/models/batches/spaces.js +13 -0
- package/lib/seam/connect/models/batches/spaces.js.map +1 -0
- package/lib/seam/connect/models/events/seam-event.js +1 -1
- package/lib/seam/connect/models/index.d.ts +1 -0
- package/lib/seam/connect/models/index.js +1 -0
- package/lib/seam/connect/models/index.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +223 -0
- package/lib/seam/connect/openapi.js +183 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1287 -0
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/lib/index.ts +1 -0
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/model-types.ts +1 -0
- package/src/lib/seam/connect/models/batches/batch.ts +12 -0
- package/src/lib/seam/connect/models/batches/index.ts +2 -0
- package/src/lib/seam/connect/models/batches/spaces.ts +16 -0
- package/src/lib/seam/connect/models/events/seam-event.ts +1 -1
- package/src/lib/seam/connect/models/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +185 -0
- package/src/lib/seam/connect/route-types.ts +1632 -0
- package/src/lib/seam/connect/schemas.ts +1 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { acs_entrance } from '../acs/index.js';
|
|
3
|
+
import { device } from '../devices/index.js';
|
|
4
|
+
import { space } from '../spaces/index.js';
|
|
5
|
+
export const spaces_batch = z
|
|
6
|
+
.object({
|
|
7
|
+
batch_type: z.literal('spaces'),
|
|
8
|
+
spaces: space.array().optional(),
|
|
9
|
+
devices: device.array().optional(),
|
|
10
|
+
acs_entrances: acs_entrance.array().optional(),
|
|
11
|
+
})
|
|
12
|
+
.describe('ID of the affected access system user.');
|
|
13
|
+
//# sourceMappingURL=spaces.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spaces.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/batches/spaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAA;AAE1C,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC;KAC1B,MAAM,CAAC;IACN,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC/B,MAAM,EAAE,KAAK,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAChC,OAAO,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;IAClC,aAAa,EAAE,YAAY,CAAC,KAAK,EAAE,CAAC,QAAQ,EAAE;CAC/C,CAAC;KACD,QAAQ,CAAC,wCAAwC,CAAC,CAAA"}
|
|
@@ -27,7 +27,7 @@ export const seam_event = z.discriminatedUnion('event_type', [
|
|
|
27
27
|
route_path: /events
|
|
28
28
|
---
|
|
29
29
|
Represents an event. Events let you know when something interesting happens in your workspace. For example, when a lock is unlocked, Seam creates a \`lock.unlocked\` event. When a device's battery level is low, Seam creates a \`device.battery_low\` event.
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
As with other API resources, you can retrieve an individual event or a list of events. Seam also provides a separate [webhook](https://docs.seam.co/latest/developer-tools/webhooks) system for sending the event objects directly to an endpoint on your sever. Manage webhooks through [Seam Console](https://console.seam.co). You can also use the webhooks sandbox in Seam Console to see the different payloads for each event and test them against your own endpoints.
|
|
32
32
|
`);
|
|
33
33
|
const event_types = seam_event.options.map((schema) => schema.shape.event_type.value);
|
|
@@ -2,6 +2,7 @@ export * from './access-codes/index.js';
|
|
|
2
2
|
export * from './access-grants/index.js';
|
|
3
3
|
export * from './acs/index.js';
|
|
4
4
|
export * from './action-attempts/index.js';
|
|
5
|
+
export * from './batches/index.js';
|
|
5
6
|
export * from './bridges/index.js';
|
|
6
7
|
export * from './bridges/index.js';
|
|
7
8
|
export * from './client-sessions/index.js';
|
|
@@ -2,6 +2,7 @@ export * from './access-codes/index.js';
|
|
|
2
2
|
export * from './access-grants/index.js';
|
|
3
3
|
export * from './acs/index.js';
|
|
4
4
|
export * from './action-attempts/index.js';
|
|
5
|
+
export * from './batches/index.js';
|
|
5
6
|
export * from './bridges/index.js';
|
|
6
7
|
export * from './bridges/index.js';
|
|
7
8
|
export * from './client-sessions/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,sCAAsC,CAAA;AACpD,cAAc,qBAAqB,CAAA;AACnC,cAAc,kCAAkC,CAAA;AAChD,cAAc,uCAAuC,CAAA;AACrD,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,0BAA0B,CAAA;AACxC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,4BAA4B,CAAA;AAC1C,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,sCAAsC,CAAA;AACpD,cAAc,qBAAqB,CAAA;AACnC,cAAc,kCAAkC,CAAA;AAChD,cAAc,uCAAuC,CAAA;AACrD,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,0BAA0B,CAAA;AACxC,cAAc,mBAAmB,CAAA;AACjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA"}
|
|
@@ -37797,6 +37797,229 @@ declare const _default: {
|
|
|
37797
37797
|
'x-title': string;
|
|
37798
37798
|
};
|
|
37799
37799
|
};
|
|
37800
|
+
'/spaces/get_related': {
|
|
37801
|
+
get: {
|
|
37802
|
+
description: string;
|
|
37803
|
+
operationId: string;
|
|
37804
|
+
parameters: ({
|
|
37805
|
+
in: string;
|
|
37806
|
+
name: string;
|
|
37807
|
+
required: boolean;
|
|
37808
|
+
schema: {
|
|
37809
|
+
description: string;
|
|
37810
|
+
items: {
|
|
37811
|
+
format: string;
|
|
37812
|
+
type: string;
|
|
37813
|
+
enum?: never;
|
|
37814
|
+
};
|
|
37815
|
+
type: string;
|
|
37816
|
+
};
|
|
37817
|
+
} | {
|
|
37818
|
+
in: string;
|
|
37819
|
+
name: string;
|
|
37820
|
+
required: boolean;
|
|
37821
|
+
schema: {
|
|
37822
|
+
items: {
|
|
37823
|
+
enum: string[];
|
|
37824
|
+
type: string;
|
|
37825
|
+
format?: never;
|
|
37826
|
+
};
|
|
37827
|
+
type: string;
|
|
37828
|
+
description?: never;
|
|
37829
|
+
};
|
|
37830
|
+
})[];
|
|
37831
|
+
responses: {
|
|
37832
|
+
200: {
|
|
37833
|
+
content: {
|
|
37834
|
+
'application/json': {
|
|
37835
|
+
schema: {
|
|
37836
|
+
properties: {
|
|
37837
|
+
batch: {
|
|
37838
|
+
description: string;
|
|
37839
|
+
properties: {
|
|
37840
|
+
acs_entrances: {
|
|
37841
|
+
items: {
|
|
37842
|
+
$ref: string;
|
|
37843
|
+
};
|
|
37844
|
+
type: string;
|
|
37845
|
+
};
|
|
37846
|
+
batch_type: {
|
|
37847
|
+
enum: string[];
|
|
37848
|
+
type: string;
|
|
37849
|
+
};
|
|
37850
|
+
devices: {
|
|
37851
|
+
items: {
|
|
37852
|
+
$ref: string;
|
|
37853
|
+
};
|
|
37854
|
+
type: string;
|
|
37855
|
+
};
|
|
37856
|
+
spaces: {
|
|
37857
|
+
items: {
|
|
37858
|
+
$ref: string;
|
|
37859
|
+
};
|
|
37860
|
+
type: string;
|
|
37861
|
+
};
|
|
37862
|
+
};
|
|
37863
|
+
required: string[];
|
|
37864
|
+
type: string;
|
|
37865
|
+
'x-route-path': string;
|
|
37866
|
+
};
|
|
37867
|
+
ok: {
|
|
37868
|
+
type: string;
|
|
37869
|
+
};
|
|
37870
|
+
};
|
|
37871
|
+
required: string[];
|
|
37872
|
+
type: string;
|
|
37873
|
+
};
|
|
37874
|
+
};
|
|
37875
|
+
};
|
|
37876
|
+
description: string;
|
|
37877
|
+
};
|
|
37878
|
+
400: {
|
|
37879
|
+
description: string;
|
|
37880
|
+
};
|
|
37881
|
+
401: {
|
|
37882
|
+
description: string;
|
|
37883
|
+
};
|
|
37884
|
+
};
|
|
37885
|
+
security: ({
|
|
37886
|
+
pat_with_workspace: never[];
|
|
37887
|
+
console_session_with_workspace?: never;
|
|
37888
|
+
api_key?: never;
|
|
37889
|
+
} | {
|
|
37890
|
+
console_session_with_workspace: never[];
|
|
37891
|
+
pat_with_workspace?: never;
|
|
37892
|
+
api_key?: never;
|
|
37893
|
+
} | {
|
|
37894
|
+
api_key: never[];
|
|
37895
|
+
pat_with_workspace?: never;
|
|
37896
|
+
console_session_with_workspace?: never;
|
|
37897
|
+
})[];
|
|
37898
|
+
summary: string;
|
|
37899
|
+
tags: never[];
|
|
37900
|
+
'x-batch-type': string;
|
|
37901
|
+
'x-draft': string;
|
|
37902
|
+
'x-fern-sdk-group-name': string[];
|
|
37903
|
+
'x-fern-sdk-method-name': string;
|
|
37904
|
+
'x-fern-sdk-return-value': string;
|
|
37905
|
+
'x-response-key': string;
|
|
37906
|
+
'x-title': string;
|
|
37907
|
+
};
|
|
37908
|
+
post: {
|
|
37909
|
+
description: string;
|
|
37910
|
+
operationId: string;
|
|
37911
|
+
requestBody: {
|
|
37912
|
+
content: {
|
|
37913
|
+
'application/json': {
|
|
37914
|
+
schema: {
|
|
37915
|
+
properties: {
|
|
37916
|
+
exclude: {
|
|
37917
|
+
items: {
|
|
37918
|
+
enum: string[];
|
|
37919
|
+
type: string;
|
|
37920
|
+
};
|
|
37921
|
+
type: string;
|
|
37922
|
+
};
|
|
37923
|
+
include: {
|
|
37924
|
+
items: {
|
|
37925
|
+
enum: string[];
|
|
37926
|
+
type: string;
|
|
37927
|
+
};
|
|
37928
|
+
type: string;
|
|
37929
|
+
};
|
|
37930
|
+
space_ids: {
|
|
37931
|
+
description: string;
|
|
37932
|
+
items: {
|
|
37933
|
+
format: string;
|
|
37934
|
+
type: string;
|
|
37935
|
+
};
|
|
37936
|
+
type: string;
|
|
37937
|
+
};
|
|
37938
|
+
};
|
|
37939
|
+
required: string[];
|
|
37940
|
+
type: string;
|
|
37941
|
+
};
|
|
37942
|
+
};
|
|
37943
|
+
};
|
|
37944
|
+
};
|
|
37945
|
+
responses: {
|
|
37946
|
+
200: {
|
|
37947
|
+
content: {
|
|
37948
|
+
'application/json': {
|
|
37949
|
+
schema: {
|
|
37950
|
+
properties: {
|
|
37951
|
+
batch: {
|
|
37952
|
+
description: string;
|
|
37953
|
+
properties: {
|
|
37954
|
+
acs_entrances: {
|
|
37955
|
+
items: {
|
|
37956
|
+
$ref: string;
|
|
37957
|
+
};
|
|
37958
|
+
type: string;
|
|
37959
|
+
};
|
|
37960
|
+
batch_type: {
|
|
37961
|
+
enum: string[];
|
|
37962
|
+
type: string;
|
|
37963
|
+
};
|
|
37964
|
+
devices: {
|
|
37965
|
+
items: {
|
|
37966
|
+
$ref: string;
|
|
37967
|
+
};
|
|
37968
|
+
type: string;
|
|
37969
|
+
};
|
|
37970
|
+
spaces: {
|
|
37971
|
+
items: {
|
|
37972
|
+
$ref: string;
|
|
37973
|
+
};
|
|
37974
|
+
type: string;
|
|
37975
|
+
};
|
|
37976
|
+
};
|
|
37977
|
+
required: string[];
|
|
37978
|
+
type: string;
|
|
37979
|
+
'x-route-path': string;
|
|
37980
|
+
};
|
|
37981
|
+
ok: {
|
|
37982
|
+
type: string;
|
|
37983
|
+
};
|
|
37984
|
+
};
|
|
37985
|
+
required: string[];
|
|
37986
|
+
type: string;
|
|
37987
|
+
};
|
|
37988
|
+
};
|
|
37989
|
+
};
|
|
37990
|
+
description: string;
|
|
37991
|
+
};
|
|
37992
|
+
400: {
|
|
37993
|
+
description: string;
|
|
37994
|
+
};
|
|
37995
|
+
401: {
|
|
37996
|
+
description: string;
|
|
37997
|
+
};
|
|
37998
|
+
};
|
|
37999
|
+
security: ({
|
|
38000
|
+
pat_with_workspace: never[];
|
|
38001
|
+
console_session_with_workspace?: never;
|
|
38002
|
+
api_key?: never;
|
|
38003
|
+
} | {
|
|
38004
|
+
console_session_with_workspace: never[];
|
|
38005
|
+
pat_with_workspace?: never;
|
|
38006
|
+
api_key?: never;
|
|
38007
|
+
} | {
|
|
38008
|
+
api_key: never[];
|
|
38009
|
+
pat_with_workspace?: never;
|
|
38010
|
+
console_session_with_workspace?: never;
|
|
38011
|
+
})[];
|
|
38012
|
+
summary: string;
|
|
38013
|
+
tags: never[];
|
|
38014
|
+
'x-batch-type': string;
|
|
38015
|
+
'x-draft': string;
|
|
38016
|
+
'x-fern-sdk-group-name': string[];
|
|
38017
|
+
'x-fern-sdk-method-name': string;
|
|
38018
|
+
'x-fern-sdk-return-value': string;
|
|
38019
|
+
'x-response-key': string;
|
|
38020
|
+
'x-title': string;
|
|
38021
|
+
};
|
|
38022
|
+
};
|
|
37800
38023
|
'/spaces/list': {
|
|
37801
38024
|
get: {
|
|
37802
38025
|
description: string;
|
|
@@ -43310,6 +43310,189 @@ export default {
|
|
|
43310
43310
|
'x-title': 'Get a Space',
|
|
43311
43311
|
},
|
|
43312
43312
|
},
|
|
43313
|
+
'/spaces/get_related': {
|
|
43314
|
+
get: {
|
|
43315
|
+
description: 'Gets all related resources for one or more Spaces.',
|
|
43316
|
+
operationId: 'spacesGetRelatedGet',
|
|
43317
|
+
parameters: [
|
|
43318
|
+
{
|
|
43319
|
+
in: 'query',
|
|
43320
|
+
name: 'space_ids',
|
|
43321
|
+
required: true,
|
|
43322
|
+
schema: {
|
|
43323
|
+
description: 'IDs of the spaces that you want to get along with their related resources.',
|
|
43324
|
+
items: { format: 'uuid', type: 'string' },
|
|
43325
|
+
type: 'array',
|
|
43326
|
+
},
|
|
43327
|
+
},
|
|
43328
|
+
{
|
|
43329
|
+
in: 'query',
|
|
43330
|
+
name: 'include',
|
|
43331
|
+
required: false,
|
|
43332
|
+
schema: {
|
|
43333
|
+
items: {
|
|
43334
|
+
enum: ['spaces', 'devices', 'acs_entrances'],
|
|
43335
|
+
type: 'string',
|
|
43336
|
+
},
|
|
43337
|
+
type: 'array',
|
|
43338
|
+
},
|
|
43339
|
+
},
|
|
43340
|
+
{
|
|
43341
|
+
in: 'query',
|
|
43342
|
+
name: 'exclude',
|
|
43343
|
+
required: false,
|
|
43344
|
+
schema: {
|
|
43345
|
+
items: {
|
|
43346
|
+
enum: ['spaces', 'devices', 'acs_entrances'],
|
|
43347
|
+
type: 'string',
|
|
43348
|
+
},
|
|
43349
|
+
type: 'array',
|
|
43350
|
+
},
|
|
43351
|
+
},
|
|
43352
|
+
],
|
|
43353
|
+
responses: {
|
|
43354
|
+
200: {
|
|
43355
|
+
content: {
|
|
43356
|
+
'application/json': {
|
|
43357
|
+
schema: {
|
|
43358
|
+
properties: {
|
|
43359
|
+
batch: {
|
|
43360
|
+
description: 'Represents a resource batch.',
|
|
43361
|
+
properties: {
|
|
43362
|
+
acs_entrances: {
|
|
43363
|
+
items: { $ref: '#/components/schemas/acs_entrance' },
|
|
43364
|
+
type: 'array',
|
|
43365
|
+
},
|
|
43366
|
+
batch_type: { enum: ['spaces'], type: 'string' },
|
|
43367
|
+
devices: {
|
|
43368
|
+
items: { $ref: '#/components/schemas/device' },
|
|
43369
|
+
type: 'array',
|
|
43370
|
+
},
|
|
43371
|
+
spaces: {
|
|
43372
|
+
items: { $ref: '#/components/schemas/space' },
|
|
43373
|
+
type: 'array',
|
|
43374
|
+
},
|
|
43375
|
+
},
|
|
43376
|
+
required: ['batch_type'],
|
|
43377
|
+
type: 'object',
|
|
43378
|
+
'x-route-path': '/',
|
|
43379
|
+
},
|
|
43380
|
+
ok: { type: 'boolean' },
|
|
43381
|
+
},
|
|
43382
|
+
required: ['batch', 'ok'],
|
|
43383
|
+
type: 'object',
|
|
43384
|
+
},
|
|
43385
|
+
},
|
|
43386
|
+
},
|
|
43387
|
+
description: 'OK',
|
|
43388
|
+
},
|
|
43389
|
+
400: { description: 'Bad Request' },
|
|
43390
|
+
401: { description: 'Unauthorized' },
|
|
43391
|
+
},
|
|
43392
|
+
security: [
|
|
43393
|
+
{ pat_with_workspace: [] },
|
|
43394
|
+
{ console_session_with_workspace: [] },
|
|
43395
|
+
{ api_key: [] },
|
|
43396
|
+
],
|
|
43397
|
+
summary: '/spaces/get_related',
|
|
43398
|
+
tags: [],
|
|
43399
|
+
'x-batch-type': 'spaces',
|
|
43400
|
+
'x-draft': 'Early access.',
|
|
43401
|
+
'x-fern-sdk-group-name': ['spaces'],
|
|
43402
|
+
'x-fern-sdk-method-name': 'get_related',
|
|
43403
|
+
'x-fern-sdk-return-value': 'batch',
|
|
43404
|
+
'x-response-key': 'batch',
|
|
43405
|
+
'x-title': 'Get related Space resources',
|
|
43406
|
+
},
|
|
43407
|
+
post: {
|
|
43408
|
+
description: 'Gets all related resources for one or more Spaces.',
|
|
43409
|
+
operationId: 'spacesGetRelatedPost',
|
|
43410
|
+
requestBody: {
|
|
43411
|
+
content: {
|
|
43412
|
+
'application/json': {
|
|
43413
|
+
schema: {
|
|
43414
|
+
properties: {
|
|
43415
|
+
exclude: {
|
|
43416
|
+
items: {
|
|
43417
|
+
enum: ['spaces', 'devices', 'acs_entrances'],
|
|
43418
|
+
type: 'string',
|
|
43419
|
+
},
|
|
43420
|
+
type: 'array',
|
|
43421
|
+
},
|
|
43422
|
+
include: {
|
|
43423
|
+
items: {
|
|
43424
|
+
enum: ['spaces', 'devices', 'acs_entrances'],
|
|
43425
|
+
type: 'string',
|
|
43426
|
+
},
|
|
43427
|
+
type: 'array',
|
|
43428
|
+
},
|
|
43429
|
+
space_ids: {
|
|
43430
|
+
description: 'IDs of the spaces that you want to get along with their related resources.',
|
|
43431
|
+
items: { format: 'uuid', type: 'string' },
|
|
43432
|
+
type: 'array',
|
|
43433
|
+
},
|
|
43434
|
+
},
|
|
43435
|
+
required: ['space_ids'],
|
|
43436
|
+
type: 'object',
|
|
43437
|
+
},
|
|
43438
|
+
},
|
|
43439
|
+
},
|
|
43440
|
+
},
|
|
43441
|
+
responses: {
|
|
43442
|
+
200: {
|
|
43443
|
+
content: {
|
|
43444
|
+
'application/json': {
|
|
43445
|
+
schema: {
|
|
43446
|
+
properties: {
|
|
43447
|
+
batch: {
|
|
43448
|
+
description: 'Represents a resource batch.',
|
|
43449
|
+
properties: {
|
|
43450
|
+
acs_entrances: {
|
|
43451
|
+
items: { $ref: '#/components/schemas/acs_entrance' },
|
|
43452
|
+
type: 'array',
|
|
43453
|
+
},
|
|
43454
|
+
batch_type: { enum: ['spaces'], type: 'string' },
|
|
43455
|
+
devices: {
|
|
43456
|
+
items: { $ref: '#/components/schemas/device' },
|
|
43457
|
+
type: 'array',
|
|
43458
|
+
},
|
|
43459
|
+
spaces: {
|
|
43460
|
+
items: { $ref: '#/components/schemas/space' },
|
|
43461
|
+
type: 'array',
|
|
43462
|
+
},
|
|
43463
|
+
},
|
|
43464
|
+
required: ['batch_type'],
|
|
43465
|
+
type: 'object',
|
|
43466
|
+
'x-route-path': '/',
|
|
43467
|
+
},
|
|
43468
|
+
ok: { type: 'boolean' },
|
|
43469
|
+
},
|
|
43470
|
+
required: ['batch', 'ok'],
|
|
43471
|
+
type: 'object',
|
|
43472
|
+
},
|
|
43473
|
+
},
|
|
43474
|
+
},
|
|
43475
|
+
description: 'OK',
|
|
43476
|
+
},
|
|
43477
|
+
400: { description: 'Bad Request' },
|
|
43478
|
+
401: { description: 'Unauthorized' },
|
|
43479
|
+
},
|
|
43480
|
+
security: [
|
|
43481
|
+
{ pat_with_workspace: [] },
|
|
43482
|
+
{ console_session_with_workspace: [] },
|
|
43483
|
+
{ api_key: [] },
|
|
43484
|
+
],
|
|
43485
|
+
summary: '/spaces/get_related',
|
|
43486
|
+
tags: [],
|
|
43487
|
+
'x-batch-type': 'spaces',
|
|
43488
|
+
'x-draft': 'Early access.',
|
|
43489
|
+
'x-fern-sdk-group-name': ['spaces'],
|
|
43490
|
+
'x-fern-sdk-method-name': 'get_related',
|
|
43491
|
+
'x-fern-sdk-return-value': 'batch',
|
|
43492
|
+
'x-response-key': 'batch',
|
|
43493
|
+
'x-title': 'Get related Space resources',
|
|
43494
|
+
},
|
|
43495
|
+
},
|
|
43313
43496
|
'/spaces/list': {
|
|
43314
43497
|
get: {
|
|
43315
43498
|
description: 'Returns a list of all spaces.',
|