@seamapi/types 1.452.0 → 1.454.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.
@@ -1,5 +1,7 @@
1
+ import { z } from 'zod';
2
+ import { access_grants_batch } from './access_grants.js';
1
3
  import { spaces_batch } from './spaces.js';
2
- export const batch = spaces_batch.describe(`
4
+ export const batch = z.union([spaces_batch, access_grants_batch]).describe(`
3
5
  ---
4
6
  route_path: /
5
7
  ---
@@ -1 +1 @@
1
- {"version":3,"file":"batch.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/batches/batch.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,CAAC,MAAM,KAAK,GAAG,YAAY,CAAC,QAAQ,CAAC;;;;;CAK1C,CAAC,CAAA"}
1
+ {"version":3,"file":"batch.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/batches/batch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,EAAE,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC;;;;;CAK1E,CAAC,CAAA"}
@@ -1,2 +1,3 @@
1
+ export * from './access_grants.js';
1
2
  export * from './batch.js';
2
3
  export * from './spaces.js';
@@ -1,3 +1,4 @@
1
+ export * from './access_grants.js';
1
2
  export * from './batch.js';
2
3
  export * from './spaces.js';
3
4
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/batches/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/batches/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
@@ -365,6 +365,25 @@ export declare const customer_data: z.ZodObject<{
365
365
  name: string;
366
366
  property_key: string;
367
367
  }[] | undefined;
368
+ access_grants?: {
369
+ name: string;
370
+ access_grant_key: string;
371
+ starts_at?: string | undefined;
372
+ ends_at?: string | undefined;
373
+ guest_key?: string | undefined;
374
+ tenant_key?: string | undefined;
375
+ resident_key?: string | undefined;
376
+ user_key?: string | undefined;
377
+ user_identity_key?: string | undefined;
378
+ space_keys?: string[] | undefined;
379
+ property_keys?: string[] | undefined;
380
+ room_keys?: string[] | undefined;
381
+ common_area_keys?: string[] | undefined;
382
+ unit_keys?: string[] | undefined;
383
+ facility_keys?: string[] | undefined;
384
+ building_keys?: string[] | undefined;
385
+ listing_keys?: string[] | undefined;
386
+ }[] | undefined;
368
387
  spaces?: {
369
388
  name: string;
370
389
  space_key: string;
@@ -465,6 +484,12 @@ export declare const customer_data: z.ZodObject<{
465
484
  building_keys?: string[] | undefined;
466
485
  listing_keys?: string[] | undefined;
467
486
  }[] | undefined;
487
+ }, {
488
+ customer_key: string;
489
+ properties?: {
490
+ name: string;
491
+ property_key: string;
492
+ }[] | undefined;
468
493
  access_grants?: {
469
494
  name: string;
470
495
  access_grant_key: string;
@@ -484,12 +509,6 @@ export declare const customer_data: z.ZodObject<{
484
509
  building_keys?: string[] | undefined;
485
510
  listing_keys?: string[] | undefined;
486
511
  }[] | undefined;
487
- }, {
488
- customer_key: string;
489
- properties?: {
490
- name: string;
491
- property_key: string;
492
- }[] | undefined;
493
512
  spaces?: {
494
513
  name: string;
495
514
  space_key: string;
@@ -590,25 +609,6 @@ export declare const customer_data: z.ZodObject<{
590
609
  building_keys?: string[] | undefined;
591
610
  listing_keys?: string[] | undefined;
592
611
  }[] | undefined;
593
- access_grants?: {
594
- name: string;
595
- access_grant_key: string;
596
- starts_at?: string | undefined;
597
- ends_at?: string | undefined;
598
- guest_key?: string | undefined;
599
- tenant_key?: string | undefined;
600
- resident_key?: string | undefined;
601
- user_key?: string | undefined;
602
- user_identity_key?: string | undefined;
603
- space_keys?: string[] | undefined;
604
- property_keys?: string[] | undefined;
605
- room_keys?: string[] | undefined;
606
- common_area_keys?: string[] | undefined;
607
- unit_keys?: string[] | undefined;
608
- facility_keys?: string[] | undefined;
609
- building_keys?: string[] | undefined;
610
- listing_keys?: string[] | undefined;
611
- }[] | undefined;
612
612
  }>;
613
613
  export type CustomerData = z.infer<typeof customer_data>;
614
614
  export * from './access-grant-resources.js';
@@ -15266,6 +15266,30 @@ declare const _default: {
15266
15266
  description: string;
15267
15267
  format: string;
15268
15268
  type: string;
15269
+ default?: never;
15270
+ nullable?: never;
15271
+ };
15272
+ } | {
15273
+ in: string;
15274
+ name: string;
15275
+ required: boolean;
15276
+ schema: {
15277
+ description: string;
15278
+ type: string;
15279
+ format?: never;
15280
+ default?: never;
15281
+ nullable?: never;
15282
+ };
15283
+ } | {
15284
+ in: string;
15285
+ name: string;
15286
+ required: boolean;
15287
+ schema: {
15288
+ default: number;
15289
+ description: string;
15290
+ format: string;
15291
+ type: string;
15292
+ nullable?: never;
15269
15293
  };
15270
15294
  } | {
15271
15295
  in: string;
@@ -15273,8 +15297,10 @@ declare const _default: {
15273
15297
  required: boolean;
15274
15298
  schema: {
15275
15299
  description: string;
15300
+ nullable: boolean;
15276
15301
  type: string;
15277
15302
  format?: never;
15303
+ default?: never;
15278
15304
  };
15279
15305
  })[];
15280
15306
  responses: {
@@ -15292,6 +15318,9 @@ declare const _default: {
15292
15318
  ok: {
15293
15319
  type: string;
15294
15320
  };
15321
+ pagination: {
15322
+ $ref: string;
15323
+ };
15295
15324
  };
15296
15325
  required: string[];
15297
15326
  type: string;
@@ -15349,6 +15378,17 @@ declare const _default: {
15349
15378
  format: string;
15350
15379
  type: string;
15351
15380
  };
15381
+ limit: {
15382
+ default: number;
15383
+ description: string;
15384
+ format: string;
15385
+ type: string;
15386
+ };
15387
+ page_cursor: {
15388
+ description: string;
15389
+ nullable: boolean;
15390
+ type: string;
15391
+ };
15352
15392
  user_identifier_key: {
15353
15393
  description: string;
15354
15394
  type: string;
@@ -15375,6 +15415,9 @@ declare const _default: {
15375
15415
  ok: {
15376
15416
  type: string;
15377
15417
  };
15418
+ pagination: {
15419
+ $ref: string;
15420
+ };
15378
15421
  };
15379
15422
  required: string[];
15380
15423
  type: string;
@@ -16780,6 +16823,291 @@ declare const _default: {
16780
16823
  'x-title': string;
16781
16824
  };
16782
16825
  };
16826
+ '/access_grants/get_related': {
16827
+ get: {
16828
+ description: string;
16829
+ operationId: string;
16830
+ parameters: ({
16831
+ in: string;
16832
+ name: string;
16833
+ required: boolean;
16834
+ schema: {
16835
+ description: string;
16836
+ items: {
16837
+ format: string;
16838
+ type: string;
16839
+ enum?: never;
16840
+ };
16841
+ type: string;
16842
+ };
16843
+ } | {
16844
+ in: string;
16845
+ name: string;
16846
+ required: boolean;
16847
+ schema: {
16848
+ items: {
16849
+ enum: string[];
16850
+ type: string;
16851
+ format?: never;
16852
+ };
16853
+ type: string;
16854
+ description?: never;
16855
+ };
16856
+ })[];
16857
+ responses: {
16858
+ 200: {
16859
+ content: {
16860
+ 'application/json': {
16861
+ schema: {
16862
+ properties: {
16863
+ batch: {
16864
+ description: string;
16865
+ oneOf: ({
16866
+ description: string;
16867
+ properties: {
16868
+ acs_entrances: {
16869
+ items: {
16870
+ $ref: string;
16871
+ };
16872
+ type: string;
16873
+ };
16874
+ batch_type: {
16875
+ enum: string[];
16876
+ type: string;
16877
+ };
16878
+ devices: {
16879
+ items: {
16880
+ $ref: string;
16881
+ };
16882
+ type: string;
16883
+ };
16884
+ spaces: {
16885
+ items: {
16886
+ $ref: string;
16887
+ };
16888
+ type: string;
16889
+ };
16890
+ };
16891
+ required: string[];
16892
+ type: string;
16893
+ } | {
16894
+ properties: {
16895
+ acs_entrances: {
16896
+ items: {
16897
+ $ref: string;
16898
+ };
16899
+ type: string;
16900
+ };
16901
+ batch_type: {
16902
+ enum: string[];
16903
+ type: string;
16904
+ };
16905
+ devices: {
16906
+ items: {
16907
+ $ref: string;
16908
+ };
16909
+ type: string;
16910
+ };
16911
+ spaces: {
16912
+ items: {
16913
+ $ref: string;
16914
+ };
16915
+ type: string;
16916
+ };
16917
+ };
16918
+ required: string[];
16919
+ type: string;
16920
+ description?: never;
16921
+ })[];
16922
+ 'x-route-path': string;
16923
+ };
16924
+ ok: {
16925
+ type: string;
16926
+ };
16927
+ };
16928
+ required: string[];
16929
+ type: string;
16930
+ };
16931
+ };
16932
+ };
16933
+ description: string;
16934
+ };
16935
+ 400: {
16936
+ description: string;
16937
+ };
16938
+ 401: {
16939
+ description: string;
16940
+ };
16941
+ };
16942
+ security: ({
16943
+ pat_with_workspace: never[];
16944
+ console_session_with_workspace?: never;
16945
+ api_key?: never;
16946
+ } | {
16947
+ console_session_with_workspace: never[];
16948
+ pat_with_workspace?: never;
16949
+ api_key?: never;
16950
+ } | {
16951
+ api_key: never[];
16952
+ pat_with_workspace?: never;
16953
+ console_session_with_workspace?: never;
16954
+ })[];
16955
+ summary: string;
16956
+ tags: never[];
16957
+ 'x-batch-type': string;
16958
+ 'x-draft': string;
16959
+ 'x-fern-sdk-group-name': string[];
16960
+ 'x-fern-sdk-method-name': string;
16961
+ 'x-fern-sdk-return-value': string;
16962
+ 'x-response-key': string;
16963
+ 'x-title': string;
16964
+ };
16965
+ post: {
16966
+ description: string;
16967
+ operationId: string;
16968
+ requestBody: {
16969
+ content: {
16970
+ 'application/json': {
16971
+ schema: {
16972
+ properties: {
16973
+ access_grant_ids: {
16974
+ description: string;
16975
+ items: {
16976
+ format: string;
16977
+ type: string;
16978
+ };
16979
+ type: string;
16980
+ };
16981
+ exclude: {
16982
+ items: {
16983
+ enum: string[];
16984
+ type: string;
16985
+ };
16986
+ type: string;
16987
+ };
16988
+ include: {
16989
+ items: {
16990
+ enum: string[];
16991
+ type: string;
16992
+ };
16993
+ type: string;
16994
+ };
16995
+ };
16996
+ required: string[];
16997
+ type: string;
16998
+ };
16999
+ };
17000
+ };
17001
+ };
17002
+ responses: {
17003
+ 200: {
17004
+ content: {
17005
+ 'application/json': {
17006
+ schema: {
17007
+ properties: {
17008
+ batch: {
17009
+ description: string;
17010
+ oneOf: ({
17011
+ description: string;
17012
+ properties: {
17013
+ acs_entrances: {
17014
+ items: {
17015
+ $ref: string;
17016
+ };
17017
+ type: string;
17018
+ };
17019
+ batch_type: {
17020
+ enum: string[];
17021
+ type: string;
17022
+ };
17023
+ devices: {
17024
+ items: {
17025
+ $ref: string;
17026
+ };
17027
+ type: string;
17028
+ };
17029
+ spaces: {
17030
+ items: {
17031
+ $ref: string;
17032
+ };
17033
+ type: string;
17034
+ };
17035
+ };
17036
+ required: string[];
17037
+ type: string;
17038
+ } | {
17039
+ properties: {
17040
+ acs_entrances: {
17041
+ items: {
17042
+ $ref: string;
17043
+ };
17044
+ type: string;
17045
+ };
17046
+ batch_type: {
17047
+ enum: string[];
17048
+ type: string;
17049
+ };
17050
+ devices: {
17051
+ items: {
17052
+ $ref: string;
17053
+ };
17054
+ type: string;
17055
+ };
17056
+ spaces: {
17057
+ items: {
17058
+ $ref: string;
17059
+ };
17060
+ type: string;
17061
+ };
17062
+ };
17063
+ required: string[];
17064
+ type: string;
17065
+ description?: never;
17066
+ })[];
17067
+ 'x-route-path': string;
17068
+ };
17069
+ ok: {
17070
+ type: string;
17071
+ };
17072
+ };
17073
+ required: string[];
17074
+ type: string;
17075
+ };
17076
+ };
17077
+ };
17078
+ description: string;
17079
+ };
17080
+ 400: {
17081
+ description: string;
17082
+ };
17083
+ 401: {
17084
+ description: string;
17085
+ };
17086
+ };
17087
+ security: ({
17088
+ pat_with_workspace: never[];
17089
+ console_session_with_workspace?: never;
17090
+ api_key?: never;
17091
+ } | {
17092
+ console_session_with_workspace: never[];
17093
+ pat_with_workspace?: never;
17094
+ api_key?: never;
17095
+ } | {
17096
+ api_key: never[];
17097
+ pat_with_workspace?: never;
17098
+ console_session_with_workspace?: never;
17099
+ })[];
17100
+ summary: string;
17101
+ tags: never[];
17102
+ 'x-batch-type': string;
17103
+ 'x-draft': string;
17104
+ 'x-fern-sdk-group-name': string[];
17105
+ 'x-fern-sdk-method-name': string;
17106
+ 'x-fern-sdk-return-value': string;
17107
+ 'x-response-key': string;
17108
+ 'x-title': string;
17109
+ };
17110
+ };
16783
17111
  '/access_grants/list': {
16784
17112
  get: {
16785
17113
  description: string;
@@ -38000,32 +38328,63 @@ declare const _default: {
38000
38328
  properties: {
38001
38329
  batch: {
38002
38330
  description: string;
38003
- properties: {
38004
- acs_entrances: {
38005
- items: {
38006
- $ref: string;
38331
+ oneOf: ({
38332
+ description: string;
38333
+ properties: {
38334
+ acs_entrances: {
38335
+ items: {
38336
+ $ref: string;
38337
+ };
38338
+ type: string;
38007
38339
  };
38008
- type: string;
38009
- };
38010
- batch_type: {
38011
- enum: string[];
38012
- type: string;
38013
- };
38014
- devices: {
38015
- items: {
38016
- $ref: string;
38340
+ batch_type: {
38341
+ enum: string[];
38342
+ type: string;
38343
+ };
38344
+ devices: {
38345
+ items: {
38346
+ $ref: string;
38347
+ };
38348
+ type: string;
38349
+ };
38350
+ spaces: {
38351
+ items: {
38352
+ $ref: string;
38353
+ };
38354
+ type: string;
38017
38355
  };
38018
- type: string;
38019
38356
  };
38020
- spaces: {
38021
- items: {
38022
- $ref: string;
38357
+ required: string[];
38358
+ type: string;
38359
+ } | {
38360
+ properties: {
38361
+ acs_entrances: {
38362
+ items: {
38363
+ $ref: string;
38364
+ };
38365
+ type: string;
38366
+ };
38367
+ batch_type: {
38368
+ enum: string[];
38369
+ type: string;
38370
+ };
38371
+ devices: {
38372
+ items: {
38373
+ $ref: string;
38374
+ };
38375
+ type: string;
38376
+ };
38377
+ spaces: {
38378
+ items: {
38379
+ $ref: string;
38380
+ };
38381
+ type: string;
38023
38382
  };
38024
- type: string;
38025
38383
  };
38026
- };
38027
- required: string[];
38028
- type: string;
38384
+ required: string[];
38385
+ type: string;
38386
+ description?: never;
38387
+ })[];
38029
38388
  'x-route-path': string;
38030
38389
  };
38031
38390
  ok: {
@@ -38114,32 +38473,63 @@ declare const _default: {
38114
38473
  properties: {
38115
38474
  batch: {
38116
38475
  description: string;
38117
- properties: {
38118
- acs_entrances: {
38119
- items: {
38120
- $ref: string;
38476
+ oneOf: ({
38477
+ description: string;
38478
+ properties: {
38479
+ acs_entrances: {
38480
+ items: {
38481
+ $ref: string;
38482
+ };
38483
+ type: string;
38121
38484
  };
38122
- type: string;
38123
- };
38124
- batch_type: {
38125
- enum: string[];
38126
- type: string;
38127
- };
38128
- devices: {
38129
- items: {
38130
- $ref: string;
38485
+ batch_type: {
38486
+ enum: string[];
38487
+ type: string;
38488
+ };
38489
+ devices: {
38490
+ items: {
38491
+ $ref: string;
38492
+ };
38493
+ type: string;
38494
+ };
38495
+ spaces: {
38496
+ items: {
38497
+ $ref: string;
38498
+ };
38499
+ type: string;
38131
38500
  };
38132
- type: string;
38133
38501
  };
38134
- spaces: {
38135
- items: {
38136
- $ref: string;
38502
+ required: string[];
38503
+ type: string;
38504
+ } | {
38505
+ properties: {
38506
+ acs_entrances: {
38507
+ items: {
38508
+ $ref: string;
38509
+ };
38510
+ type: string;
38511
+ };
38512
+ batch_type: {
38513
+ enum: string[];
38514
+ type: string;
38515
+ };
38516
+ devices: {
38517
+ items: {
38518
+ $ref: string;
38519
+ };
38520
+ type: string;
38521
+ };
38522
+ spaces: {
38523
+ items: {
38524
+ $ref: string;
38525
+ };
38526
+ type: string;
38137
38527
  };
38138
- type: string;
38139
38528
  };
38140
- };
38141
- required: string[];
38142
- type: string;
38529
+ required: string[];
38530
+ type: string;
38531
+ description?: never;
38532
+ })[];
38143
38533
  'x-route-path': string;
38144
38534
  };
38145
38535
  ok: {