@seamapi/types 1.453.0 → 1.455.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';
@@ -16823,6 +16823,291 @@ declare const _default: {
16823
16823
  'x-title': string;
16824
16824
  };
16825
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
+ };
16826
17111
  '/access_grants/list': {
16827
17112
  get: {
16828
17113
  description: string;
@@ -38043,32 +38328,63 @@ declare const _default: {
38043
38328
  properties: {
38044
38329
  batch: {
38045
38330
  description: string;
38046
- properties: {
38047
- acs_entrances: {
38048
- items: {
38049
- $ref: string;
38331
+ oneOf: ({
38332
+ description: string;
38333
+ properties: {
38334
+ acs_entrances: {
38335
+ items: {
38336
+ $ref: string;
38337
+ };
38338
+ type: string;
38050
38339
  };
38051
- type: string;
38052
- };
38053
- batch_type: {
38054
- enum: string[];
38055
- type: string;
38056
- };
38057
- devices: {
38058
- items: {
38059
- $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;
38060
38355
  };
38061
- type: string;
38062
38356
  };
38063
- spaces: {
38064
- items: {
38065
- $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;
38066
38382
  };
38067
- type: string;
38068
38383
  };
38069
- };
38070
- required: string[];
38071
- type: string;
38384
+ required: string[];
38385
+ type: string;
38386
+ description?: never;
38387
+ })[];
38072
38388
  'x-route-path': string;
38073
38389
  };
38074
38390
  ok: {
@@ -38157,32 +38473,63 @@ declare const _default: {
38157
38473
  properties: {
38158
38474
  batch: {
38159
38475
  description: string;
38160
- properties: {
38161
- acs_entrances: {
38162
- items: {
38163
- $ref: string;
38476
+ oneOf: ({
38477
+ description: string;
38478
+ properties: {
38479
+ acs_entrances: {
38480
+ items: {
38481
+ $ref: string;
38482
+ };
38483
+ type: string;
38164
38484
  };
38165
- type: string;
38166
- };
38167
- batch_type: {
38168
- enum: string[];
38169
- type: string;
38170
- };
38171
- devices: {
38172
- items: {
38173
- $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;
38174
38500
  };
38175
- type: string;
38176
38501
  };
38177
- spaces: {
38178
- items: {
38179
- $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;
38180
38527
  };
38181
- type: string;
38182
38528
  };
38183
- };
38184
- required: string[];
38185
- type: string;
38529
+ required: string[];
38530
+ type: string;
38531
+ description?: never;
38532
+ })[];
38186
38533
  'x-route-path': string;
38187
38534
  };
38188
38535
  ok: {