@seamapi/types 1.456.0 → 1.457.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/dist/connect.cjs CHANGED
@@ -3993,6 +3993,12 @@ var access_grants_batch = zod.z.object({
3993
3993
  devices: device.array().optional(),
3994
3994
  acs_entrances: acs_entrance.array().optional()
3995
3995
  });
3996
+ var access_methods_batch = zod.z.object({
3997
+ batch_type: zod.z.literal("access_methods"),
3998
+ spaces: space.array().optional(),
3999
+ devices: device.array().optional(),
4000
+ acs_entrances: acs_entrance.array().optional()
4001
+ });
3996
4002
  var spaces_batch = zod.z.object({
3997
4003
  batch_type: zod.z.literal("spaces"),
3998
4004
  spaces: space.array().optional(),
@@ -4001,7 +4007,11 @@ var spaces_batch = zod.z.object({
4001
4007
  }).describe("ID of the affected access system user.");
4002
4008
 
4003
4009
  // src/lib/seam/connect/models/batches/batch.ts
4004
- var batch = zod.z.union([spaces_batch, access_grants_batch]).describe(`
4010
+ var batch = zod.z.union([
4011
+ spaces_batch,
4012
+ access_grants_batch,
4013
+ access_methods_batch
4014
+ ]).describe(`
4005
4015
  ---
4006
4016
  route_path: /
4007
4017
  ---
@@ -30767,6 +30777,30 @@ var openapi_default = {
30767
30777
  },
30768
30778
  required: ["batch_type"],
30769
30779
  type: "object"
30780
+ },
30781
+ {
30782
+ properties: {
30783
+ acs_entrances: {
30784
+ items: {
30785
+ $ref: "#/components/schemas/acs_entrance"
30786
+ },
30787
+ type: "array"
30788
+ },
30789
+ batch_type: {
30790
+ enum: ["access_methods"],
30791
+ type: "string"
30792
+ },
30793
+ devices: {
30794
+ items: { $ref: "#/components/schemas/device" },
30795
+ type: "array"
30796
+ },
30797
+ spaces: {
30798
+ items: { $ref: "#/components/schemas/space" },
30799
+ type: "array"
30800
+ }
30801
+ },
30802
+ required: ["batch_type"],
30803
+ type: "object"
30770
30804
  }
30771
30805
  ],
30772
30806
  "x-route-path": "/"
@@ -30886,6 +30920,30 @@ var openapi_default = {
30886
30920
  },
30887
30921
  required: ["batch_type"],
30888
30922
  type: "object"
30923
+ },
30924
+ {
30925
+ properties: {
30926
+ acs_entrances: {
30927
+ items: {
30928
+ $ref: "#/components/schemas/acs_entrance"
30929
+ },
30930
+ type: "array"
30931
+ },
30932
+ batch_type: {
30933
+ enum: ["access_methods"],
30934
+ type: "string"
30935
+ },
30936
+ devices: {
30937
+ items: { $ref: "#/components/schemas/device" },
30938
+ type: "array"
30939
+ },
30940
+ spaces: {
30941
+ items: { $ref: "#/components/schemas/space" },
30942
+ type: "array"
30943
+ }
30944
+ },
30945
+ required: ["batch_type"],
30946
+ type: "object"
30889
30947
  }
30890
30948
  ],
30891
30949
  "x-route-path": "/"
@@ -31497,6 +31555,299 @@ var openapi_default = {
31497
31555
  "x-title": "Get an Access Method"
31498
31556
  }
31499
31557
  },
31558
+ "/access_methods/get_related": {
31559
+ get: {
31560
+ description: "Gets all related resources for one or more Access Methods.",
31561
+ operationId: "accessMethodsGetRelatedGet",
31562
+ parameters: [
31563
+ {
31564
+ in: "query",
31565
+ name: "access_method_ids",
31566
+ required: true,
31567
+ schema: {
31568
+ description: "IDs of the access methods that you want to get along with their related resources.",
31569
+ items: { format: "uuid", type: "string" },
31570
+ type: "array"
31571
+ }
31572
+ },
31573
+ {
31574
+ in: "query",
31575
+ name: "include",
31576
+ required: false,
31577
+ schema: {
31578
+ items: {
31579
+ enum: ["spaces", "devices", "acs_entrances"],
31580
+ type: "string"
31581
+ },
31582
+ type: "array"
31583
+ }
31584
+ },
31585
+ {
31586
+ in: "query",
31587
+ name: "exclude",
31588
+ required: false,
31589
+ schema: {
31590
+ items: {
31591
+ enum: ["spaces", "devices", "acs_entrances"],
31592
+ type: "string"
31593
+ },
31594
+ type: "array"
31595
+ }
31596
+ }
31597
+ ],
31598
+ responses: {
31599
+ 200: {
31600
+ content: {
31601
+ "application/json": {
31602
+ schema: {
31603
+ properties: {
31604
+ batch: {
31605
+ description: "Represents a resource batch.",
31606
+ oneOf: [
31607
+ {
31608
+ description: "ID of the affected access system user.",
31609
+ properties: {
31610
+ acs_entrances: {
31611
+ items: {
31612
+ $ref: "#/components/schemas/acs_entrance"
31613
+ },
31614
+ type: "array"
31615
+ },
31616
+ batch_type: { enum: ["spaces"], type: "string" },
31617
+ devices: {
31618
+ items: { $ref: "#/components/schemas/device" },
31619
+ type: "array"
31620
+ },
31621
+ spaces: {
31622
+ items: { $ref: "#/components/schemas/space" },
31623
+ type: "array"
31624
+ }
31625
+ },
31626
+ required: ["batch_type"],
31627
+ type: "object"
31628
+ },
31629
+ {
31630
+ properties: {
31631
+ acs_entrances: {
31632
+ items: {
31633
+ $ref: "#/components/schemas/acs_entrance"
31634
+ },
31635
+ type: "array"
31636
+ },
31637
+ batch_type: {
31638
+ enum: ["access_grants"],
31639
+ type: "string"
31640
+ },
31641
+ devices: {
31642
+ items: { $ref: "#/components/schemas/device" },
31643
+ type: "array"
31644
+ },
31645
+ spaces: {
31646
+ items: { $ref: "#/components/schemas/space" },
31647
+ type: "array"
31648
+ }
31649
+ },
31650
+ required: ["batch_type"],
31651
+ type: "object"
31652
+ },
31653
+ {
31654
+ properties: {
31655
+ acs_entrances: {
31656
+ items: {
31657
+ $ref: "#/components/schemas/acs_entrance"
31658
+ },
31659
+ type: "array"
31660
+ },
31661
+ batch_type: {
31662
+ enum: ["access_methods"],
31663
+ type: "string"
31664
+ },
31665
+ devices: {
31666
+ items: { $ref: "#/components/schemas/device" },
31667
+ type: "array"
31668
+ },
31669
+ spaces: {
31670
+ items: { $ref: "#/components/schemas/space" },
31671
+ type: "array"
31672
+ }
31673
+ },
31674
+ required: ["batch_type"],
31675
+ type: "object"
31676
+ }
31677
+ ],
31678
+ "x-route-path": "/"
31679
+ },
31680
+ ok: { type: "boolean" }
31681
+ },
31682
+ required: ["batch", "ok"],
31683
+ type: "object"
31684
+ }
31685
+ }
31686
+ },
31687
+ description: "OK"
31688
+ },
31689
+ 400: { description: "Bad Request" },
31690
+ 401: { description: "Unauthorized" }
31691
+ },
31692
+ security: [
31693
+ { pat_with_workspace: [] },
31694
+ { console_session_with_workspace: [] },
31695
+ { api_key: [] }
31696
+ ],
31697
+ summary: "/access_methods/get_related",
31698
+ tags: [],
31699
+ "x-batch-type": "access_methods",
31700
+ "x-draft": "Early access.",
31701
+ "x-fern-sdk-group-name": ["access_methods"],
31702
+ "x-fern-sdk-method-name": "get_related",
31703
+ "x-fern-sdk-return-value": "batch",
31704
+ "x-response-key": "batch",
31705
+ "x-title": "Get related Access Method resources"
31706
+ },
31707
+ post: {
31708
+ description: "Gets all related resources for one or more Access Methods.",
31709
+ operationId: "accessMethodsGetRelatedPost",
31710
+ requestBody: {
31711
+ content: {
31712
+ "application/json": {
31713
+ schema: {
31714
+ properties: {
31715
+ access_method_ids: {
31716
+ description: "IDs of the access methods that you want to get along with their related resources.",
31717
+ items: { format: "uuid", type: "string" },
31718
+ type: "array"
31719
+ },
31720
+ exclude: {
31721
+ items: {
31722
+ enum: ["spaces", "devices", "acs_entrances"],
31723
+ type: "string"
31724
+ },
31725
+ type: "array"
31726
+ },
31727
+ include: {
31728
+ items: {
31729
+ enum: ["spaces", "devices", "acs_entrances"],
31730
+ type: "string"
31731
+ },
31732
+ type: "array"
31733
+ }
31734
+ },
31735
+ required: ["access_method_ids"],
31736
+ type: "object"
31737
+ }
31738
+ }
31739
+ }
31740
+ },
31741
+ responses: {
31742
+ 200: {
31743
+ content: {
31744
+ "application/json": {
31745
+ schema: {
31746
+ properties: {
31747
+ batch: {
31748
+ description: "Represents a resource batch.",
31749
+ oneOf: [
31750
+ {
31751
+ description: "ID of the affected access system user.",
31752
+ properties: {
31753
+ acs_entrances: {
31754
+ items: {
31755
+ $ref: "#/components/schemas/acs_entrance"
31756
+ },
31757
+ type: "array"
31758
+ },
31759
+ batch_type: { enum: ["spaces"], type: "string" },
31760
+ devices: {
31761
+ items: { $ref: "#/components/schemas/device" },
31762
+ type: "array"
31763
+ },
31764
+ spaces: {
31765
+ items: { $ref: "#/components/schemas/space" },
31766
+ type: "array"
31767
+ }
31768
+ },
31769
+ required: ["batch_type"],
31770
+ type: "object"
31771
+ },
31772
+ {
31773
+ properties: {
31774
+ acs_entrances: {
31775
+ items: {
31776
+ $ref: "#/components/schemas/acs_entrance"
31777
+ },
31778
+ type: "array"
31779
+ },
31780
+ batch_type: {
31781
+ enum: ["access_grants"],
31782
+ type: "string"
31783
+ },
31784
+ devices: {
31785
+ items: { $ref: "#/components/schemas/device" },
31786
+ type: "array"
31787
+ },
31788
+ spaces: {
31789
+ items: { $ref: "#/components/schemas/space" },
31790
+ type: "array"
31791
+ }
31792
+ },
31793
+ required: ["batch_type"],
31794
+ type: "object"
31795
+ },
31796
+ {
31797
+ properties: {
31798
+ acs_entrances: {
31799
+ items: {
31800
+ $ref: "#/components/schemas/acs_entrance"
31801
+ },
31802
+ type: "array"
31803
+ },
31804
+ batch_type: {
31805
+ enum: ["access_methods"],
31806
+ type: "string"
31807
+ },
31808
+ devices: {
31809
+ items: { $ref: "#/components/schemas/device" },
31810
+ type: "array"
31811
+ },
31812
+ spaces: {
31813
+ items: { $ref: "#/components/schemas/space" },
31814
+ type: "array"
31815
+ }
31816
+ },
31817
+ required: ["batch_type"],
31818
+ type: "object"
31819
+ }
31820
+ ],
31821
+ "x-route-path": "/"
31822
+ },
31823
+ ok: { type: "boolean" }
31824
+ },
31825
+ required: ["batch", "ok"],
31826
+ type: "object"
31827
+ }
31828
+ }
31829
+ },
31830
+ description: "OK"
31831
+ },
31832
+ 400: { description: "Bad Request" },
31833
+ 401: { description: "Unauthorized" }
31834
+ },
31835
+ security: [
31836
+ { pat_with_workspace: [] },
31837
+ { console_session_with_workspace: [] },
31838
+ { api_key: [] }
31839
+ ],
31840
+ summary: "/access_methods/get_related",
31841
+ tags: [],
31842
+ "x-batch-type": "access_methods",
31843
+ "x-draft": "Early access.",
31844
+ "x-fern-sdk-group-name": ["access_methods"],
31845
+ "x-fern-sdk-method-name": "get_related",
31846
+ "x-fern-sdk-return-value": "batch",
31847
+ "x-response-key": "batch",
31848
+ "x-title": "Get related Access Method resources"
31849
+ }
31850
+ },
31500
31851
  "/access_methods/list": {
31501
31852
  get: {
31502
31853
  description: "Lists all access methods, usually filtered by Access Grant.",
@@ -49444,6 +49795,30 @@ var openapi_default = {
49444
49795
  },
49445
49796
  required: ["batch_type"],
49446
49797
  type: "object"
49798
+ },
49799
+ {
49800
+ properties: {
49801
+ acs_entrances: {
49802
+ items: {
49803
+ $ref: "#/components/schemas/acs_entrance"
49804
+ },
49805
+ type: "array"
49806
+ },
49807
+ batch_type: {
49808
+ enum: ["access_methods"],
49809
+ type: "string"
49810
+ },
49811
+ devices: {
49812
+ items: { $ref: "#/components/schemas/device" },
49813
+ type: "array"
49814
+ },
49815
+ spaces: {
49816
+ items: { $ref: "#/components/schemas/space" },
49817
+ type: "array"
49818
+ }
49819
+ },
49820
+ required: ["batch_type"],
49821
+ type: "object"
49447
49822
  }
49448
49823
  ],
49449
49824
  "x-route-path": "/"
@@ -49563,6 +49938,30 @@ var openapi_default = {
49563
49938
  },
49564
49939
  required: ["batch_type"],
49565
49940
  type: "object"
49941
+ },
49942
+ {
49943
+ properties: {
49944
+ acs_entrances: {
49945
+ items: {
49946
+ $ref: "#/components/schemas/acs_entrance"
49947
+ },
49948
+ type: "array"
49949
+ },
49950
+ batch_type: {
49951
+ enum: ["access_methods"],
49952
+ type: "string"
49953
+ },
49954
+ devices: {
49955
+ items: { $ref: "#/components/schemas/device" },
49956
+ type: "array"
49957
+ },
49958
+ spaces: {
49959
+ items: { $ref: "#/components/schemas/space" },
49960
+ type: "array"
49961
+ }
49962
+ },
49963
+ required: ["batch_type"],
49964
+ type: "object"
49566
49965
  }
49567
49966
  ],
49568
49967
  "x-route-path": "/"