@seamapi/types 1.455.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.
Files changed (33) hide show
  1. package/dist/connect.cjs +408 -2
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +63342 -50965
  4. package/dist/index.cjs +408 -2
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/access-grants/access-method.d.ts +6 -3
  7. package/lib/seam/connect/models/access-grants/access-method.js +4 -1
  8. package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
  9. package/lib/seam/connect/models/acs/acs-credential.d.ts +6 -6
  10. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +26 -26
  11. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +8 -8
  12. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +18 -18
  13. package/lib/seam/connect/models/batches/access_methods.d.ts +5682 -0
  14. package/lib/seam/connect/models/batches/access_methods.js +11 -0
  15. package/lib/seam/connect/models/batches/access_methods.js.map +1 -0
  16. package/lib/seam/connect/models/batches/batch.d.ts +5679 -0
  17. package/lib/seam/connect/models/batches/batch.js +6 -1
  18. package/lib/seam/connect/models/batches/batch.js.map +1 -1
  19. package/lib/seam/connect/models/batches/index.d.ts +1 -0
  20. package/lib/seam/connect/models/batches/index.js +1 -0
  21. package/lib/seam/connect/models/batches/index.js.map +1 -1
  22. package/lib/seam/connect/models/phones/phone-session.d.ts +10 -10
  23. package/lib/seam/connect/openapi.d.ts +290 -0
  24. package/lib/seam/connect/openapi.js +396 -0
  25. package/lib/seam/connect/openapi.js.map +1 -1
  26. package/lib/seam/connect/route-types.d.ts +9312 -2907
  27. package/package.json +1 -1
  28. package/src/lib/seam/connect/models/access-grants/access-method.ts +4 -1
  29. package/src/lib/seam/connect/models/batches/access_methods.ts +14 -0
  30. package/src/lib/seam/connect/models/batches/batch.ts +6 -1
  31. package/src/lib/seam/connect/models/batches/index.ts +1 -0
  32. package/src/lib/seam/connect/openapi.ts +400 -0
  33. package/src/lib/seam/connect/route-types.ts +9280 -1025
package/dist/index.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
  ---
@@ -7262,9 +7272,14 @@ var openapi_default = {
7262
7272
  description: "Indicates whether encoding with an card encoder is required to issue or reissue the plastic card associated with the access method.",
7263
7273
  type: "boolean"
7264
7274
  },
7275
+ is_issued: {
7276
+ description: "Indicates whether the access method has been issued.",
7277
+ type: "boolean"
7278
+ },
7265
7279
  issued_at: {
7266
7280
  description: "Date and time at which the access method was issued.",
7267
7281
  format: "date-time",
7282
+ nullable: true,
7268
7283
  type: "string"
7269
7284
  },
7270
7285
  mode: {
@@ -7283,7 +7298,9 @@ var openapi_default = {
7283
7298
  "access_method_id",
7284
7299
  "display_name",
7285
7300
  "mode",
7286
- "created_at"
7301
+ "created_at",
7302
+ "issued_at",
7303
+ "is_issued"
7287
7304
  ],
7288
7305
  type: "object",
7289
7306
  "x-draft": "Early access.",
@@ -30760,6 +30777,30 @@ var openapi_default = {
30760
30777
  },
30761
30778
  required: ["batch_type"],
30762
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"
30763
30804
  }
30764
30805
  ],
30765
30806
  "x-route-path": "/"
@@ -30879,6 +30920,30 @@ var openapi_default = {
30879
30920
  },
30880
30921
  required: ["batch_type"],
30881
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"
30882
30947
  }
30883
30948
  ],
30884
30949
  "x-route-path": "/"
@@ -31490,6 +31555,299 @@ var openapi_default = {
31490
31555
  "x-title": "Get an Access Method"
31491
31556
  }
31492
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
+ },
31493
31851
  "/access_methods/list": {
31494
31852
  get: {
31495
31853
  description: "Lists all access methods, usually filtered by Access Grant.",
@@ -49437,6 +49795,30 @@ var openapi_default = {
49437
49795
  },
49438
49796
  required: ["batch_type"],
49439
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"
49440
49822
  }
49441
49823
  ],
49442
49824
  "x-route-path": "/"
@@ -49556,6 +49938,30 @@ var openapi_default = {
49556
49938
  },
49557
49939
  required: ["batch_type"],
49558
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"
49559
49965
  }
49560
49966
  ],
49561
49967
  "x-route-path": "/"