@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
@@ -1,7 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  import { access_grants_batch } from './access_grants.js';
3
+ import { access_methods_batch } from './access_methods.js';
3
4
  import { spaces_batch } from './spaces.js';
4
- export const batch = z.union([spaces_batch, access_grants_batch]).describe(`
5
+ export const batch = z.union([
6
+ spaces_batch,
7
+ access_grants_batch,
8
+ access_methods_batch,
9
+ ]).describe(`
5
10
  ---
6
11
  route_path: /
7
12
  ---
@@ -1 +1 @@
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
+ {"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,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IAC3B,YAAY;IACZ,mBAAmB;IACnB,oBAAoB;CACrB,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
@@ -1,3 +1,4 @@
1
1
  export * from './access_grants.js';
2
+ export * from './access_methods.js';
2
3
  export * from './batch.js';
3
4
  export * from './spaces.js';
@@ -1,4 +1,5 @@
1
1
  export * from './access_grants.js';
2
+ export * from './access_methods.js';
2
3
  export * from './batch.js';
3
4
  export * from './spaces.js';
4
5
  //# 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,oBAAoB,CAAA;AAClC,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,qBAAqB,CAAA;AACnC,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA"}
@@ -534,13 +534,13 @@ declare const phone_provider_session: z.ZodObject<{
534
534
  is_one_time_use?: boolean | undefined;
535
535
  user_identity_id?: string | undefined;
536
536
  issued_at?: string | null | undefined;
537
+ is_issued?: boolean | undefined;
537
538
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
538
539
  external_type_display_name?: string | undefined;
539
540
  acs_user_id?: string | undefined;
540
541
  acs_credential_pool_id?: string | undefined;
541
542
  parent_acs_credential_id?: string | undefined;
542
543
  card_number?: string | null | undefined;
543
- is_issued?: boolean | undefined;
544
544
  is_multi_phone_sync_credential?: boolean | undefined;
545
545
  is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
546
546
  latest_desired_state_synced_with_provider_at?: string | null | undefined;
@@ -659,13 +659,13 @@ declare const phone_provider_session: z.ZodObject<{
659
659
  is_one_time_use?: boolean | undefined;
660
660
  user_identity_id?: string | undefined;
661
661
  issued_at?: string | null | undefined;
662
+ is_issued?: boolean | undefined;
662
663
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
663
664
  external_type_display_name?: string | undefined;
664
665
  acs_user_id?: string | undefined;
665
666
  acs_credential_pool_id?: string | undefined;
666
667
  parent_acs_credential_id?: string | undefined;
667
668
  card_number?: string | null | undefined;
668
- is_issued?: boolean | undefined;
669
669
  is_multi_phone_sync_credential?: boolean | undefined;
670
670
  is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
671
671
  latest_desired_state_synced_with_provider_at?: string | null | undefined;
@@ -792,13 +792,13 @@ declare const phone_provider_session: z.ZodObject<{
792
792
  is_one_time_use?: boolean | undefined;
793
793
  user_identity_id?: string | undefined;
794
794
  issued_at?: string | null | undefined;
795
+ is_issued?: boolean | undefined;
795
796
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
796
797
  external_type_display_name?: string | undefined;
797
798
  acs_user_id?: string | undefined;
798
799
  acs_credential_pool_id?: string | undefined;
799
800
  parent_acs_credential_id?: string | undefined;
800
801
  card_number?: string | null | undefined;
801
- is_issued?: boolean | undefined;
802
802
  is_multi_phone_sync_credential?: boolean | undefined;
803
803
  is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
804
804
  latest_desired_state_synced_with_provider_at?: string | null | undefined;
@@ -925,13 +925,13 @@ declare const phone_provider_session: z.ZodObject<{
925
925
  is_one_time_use?: boolean | undefined;
926
926
  user_identity_id?: string | undefined;
927
927
  issued_at?: string | null | undefined;
928
+ is_issued?: boolean | undefined;
928
929
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
929
930
  external_type_display_name?: string | undefined;
930
931
  acs_user_id?: string | undefined;
931
932
  acs_credential_pool_id?: string | undefined;
932
933
  parent_acs_credential_id?: string | undefined;
933
934
  card_number?: string | null | undefined;
934
- is_issued?: boolean | undefined;
935
935
  is_multi_phone_sync_credential?: boolean | undefined;
936
936
  is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
937
937
  latest_desired_state_synced_with_provider_at?: string | null | undefined;
@@ -1473,13 +1473,13 @@ export declare const phone_session: z.ZodObject<{
1473
1473
  is_one_time_use?: boolean | undefined;
1474
1474
  user_identity_id?: string | undefined;
1475
1475
  issued_at?: string | null | undefined;
1476
+ is_issued?: boolean | undefined;
1476
1477
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1477
1478
  external_type_display_name?: string | undefined;
1478
1479
  acs_user_id?: string | undefined;
1479
1480
  acs_credential_pool_id?: string | undefined;
1480
1481
  parent_acs_credential_id?: string | undefined;
1481
1482
  card_number?: string | null | undefined;
1482
- is_issued?: boolean | undefined;
1483
1483
  is_multi_phone_sync_credential?: boolean | undefined;
1484
1484
  is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1485
1485
  latest_desired_state_synced_with_provider_at?: string | null | undefined;
@@ -1598,13 +1598,13 @@ export declare const phone_session: z.ZodObject<{
1598
1598
  is_one_time_use?: boolean | undefined;
1599
1599
  user_identity_id?: string | undefined;
1600
1600
  issued_at?: string | null | undefined;
1601
+ is_issued?: boolean | undefined;
1601
1602
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1602
1603
  external_type_display_name?: string | undefined;
1603
1604
  acs_user_id?: string | undefined;
1604
1605
  acs_credential_pool_id?: string | undefined;
1605
1606
  parent_acs_credential_id?: string | undefined;
1606
1607
  card_number?: string | null | undefined;
1607
- is_issued?: boolean | undefined;
1608
1608
  is_multi_phone_sync_credential?: boolean | undefined;
1609
1609
  is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1610
1610
  latest_desired_state_synced_with_provider_at?: string | null | undefined;
@@ -1731,13 +1731,13 @@ export declare const phone_session: z.ZodObject<{
1731
1731
  is_one_time_use?: boolean | undefined;
1732
1732
  user_identity_id?: string | undefined;
1733
1733
  issued_at?: string | null | undefined;
1734
+ is_issued?: boolean | undefined;
1734
1735
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1735
1736
  external_type_display_name?: string | undefined;
1736
1737
  acs_user_id?: string | undefined;
1737
1738
  acs_credential_pool_id?: string | undefined;
1738
1739
  parent_acs_credential_id?: string | undefined;
1739
1740
  card_number?: string | null | undefined;
1740
- is_issued?: boolean | undefined;
1741
1741
  is_multi_phone_sync_credential?: boolean | undefined;
1742
1742
  is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1743
1743
  latest_desired_state_synced_with_provider_at?: string | null | undefined;
@@ -1864,13 +1864,13 @@ export declare const phone_session: z.ZodObject<{
1864
1864
  is_one_time_use?: boolean | undefined;
1865
1865
  user_identity_id?: string | undefined;
1866
1866
  issued_at?: string | null | undefined;
1867
+ is_issued?: boolean | undefined;
1867
1868
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
1868
1869
  external_type_display_name?: string | undefined;
1869
1870
  acs_user_id?: string | undefined;
1870
1871
  acs_credential_pool_id?: string | undefined;
1871
1872
  parent_acs_credential_id?: string | undefined;
1872
1873
  card_number?: string | null | undefined;
1873
- is_issued?: boolean | undefined;
1874
1874
  is_multi_phone_sync_credential?: boolean | undefined;
1875
1875
  is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
1876
1876
  latest_desired_state_synced_with_provider_at?: string | null | undefined;
@@ -1999,13 +1999,13 @@ export declare const phone_session: z.ZodObject<{
1999
1999
  is_one_time_use?: boolean | undefined;
2000
2000
  user_identity_id?: string | undefined;
2001
2001
  issued_at?: string | null | undefined;
2002
+ is_issued?: boolean | undefined;
2002
2003
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
2003
2004
  external_type_display_name?: string | undefined;
2004
2005
  acs_user_id?: string | undefined;
2005
2006
  acs_credential_pool_id?: string | undefined;
2006
2007
  parent_acs_credential_id?: string | undefined;
2007
2008
  card_number?: string | null | undefined;
2008
- is_issued?: boolean | undefined;
2009
2009
  is_multi_phone_sync_credential?: boolean | undefined;
2010
2010
  is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
2011
2011
  latest_desired_state_synced_with_provider_at?: string | null | undefined;
@@ -2134,13 +2134,13 @@ export declare const phone_session: z.ZodObject<{
2134
2134
  is_one_time_use?: boolean | undefined;
2135
2135
  user_identity_id?: string | undefined;
2136
2136
  issued_at?: string | null | undefined;
2137
+ is_issued?: boolean | undefined;
2137
2138
  external_type?: "pti_card" | "brivo_credential" | "hid_credential" | "visionline_card" | "salto_ks_credential" | "assa_abloy_vostio_key" | "salto_space_key" | "latch_access" | undefined;
2138
2139
  external_type_display_name?: string | undefined;
2139
2140
  acs_user_id?: string | undefined;
2140
2141
  acs_credential_pool_id?: string | undefined;
2141
2142
  parent_acs_credential_id?: string | undefined;
2142
2143
  card_number?: string | null | undefined;
2143
- is_issued?: boolean | undefined;
2144
2144
  is_multi_phone_sync_credential?: boolean | undefined;
2145
2145
  is_latest_desired_state_synced_with_provider?: boolean | null | undefined;
2146
2146
  latest_desired_state_synced_with_provider_at?: string | null | undefined;
@@ -524,9 +524,14 @@ declare const _default: {
524
524
  description: string;
525
525
  type: string;
526
526
  };
527
+ is_issued: {
528
+ description: string;
529
+ type: string;
530
+ };
527
531
  issued_at: {
528
532
  description: string;
529
533
  format: string;
534
+ nullable: boolean;
530
535
  type: string;
531
536
  };
532
537
  mode: {
@@ -17824,6 +17829,291 @@ declare const _default: {
17824
17829
  'x-title': string;
17825
17830
  };
17826
17831
  };
17832
+ '/access_methods/get_related': {
17833
+ get: {
17834
+ description: string;
17835
+ operationId: string;
17836
+ parameters: ({
17837
+ in: string;
17838
+ name: string;
17839
+ required: boolean;
17840
+ schema: {
17841
+ description: string;
17842
+ items: {
17843
+ format: string;
17844
+ type: string;
17845
+ enum?: never;
17846
+ };
17847
+ type: string;
17848
+ };
17849
+ } | {
17850
+ in: string;
17851
+ name: string;
17852
+ required: boolean;
17853
+ schema: {
17854
+ items: {
17855
+ enum: string[];
17856
+ type: string;
17857
+ format?: never;
17858
+ };
17859
+ type: string;
17860
+ description?: never;
17861
+ };
17862
+ })[];
17863
+ responses: {
17864
+ 200: {
17865
+ content: {
17866
+ 'application/json': {
17867
+ schema: {
17868
+ properties: {
17869
+ batch: {
17870
+ description: string;
17871
+ oneOf: ({
17872
+ description: string;
17873
+ properties: {
17874
+ acs_entrances: {
17875
+ items: {
17876
+ $ref: string;
17877
+ };
17878
+ type: string;
17879
+ };
17880
+ batch_type: {
17881
+ enum: string[];
17882
+ type: string;
17883
+ };
17884
+ devices: {
17885
+ items: {
17886
+ $ref: string;
17887
+ };
17888
+ type: string;
17889
+ };
17890
+ spaces: {
17891
+ items: {
17892
+ $ref: string;
17893
+ };
17894
+ type: string;
17895
+ };
17896
+ };
17897
+ required: string[];
17898
+ type: string;
17899
+ } | {
17900
+ properties: {
17901
+ acs_entrances: {
17902
+ items: {
17903
+ $ref: string;
17904
+ };
17905
+ type: string;
17906
+ };
17907
+ batch_type: {
17908
+ enum: string[];
17909
+ type: string;
17910
+ };
17911
+ devices: {
17912
+ items: {
17913
+ $ref: string;
17914
+ };
17915
+ type: string;
17916
+ };
17917
+ spaces: {
17918
+ items: {
17919
+ $ref: string;
17920
+ };
17921
+ type: string;
17922
+ };
17923
+ };
17924
+ required: string[];
17925
+ type: string;
17926
+ description?: never;
17927
+ })[];
17928
+ 'x-route-path': string;
17929
+ };
17930
+ ok: {
17931
+ type: string;
17932
+ };
17933
+ };
17934
+ required: string[];
17935
+ type: string;
17936
+ };
17937
+ };
17938
+ };
17939
+ description: string;
17940
+ };
17941
+ 400: {
17942
+ description: string;
17943
+ };
17944
+ 401: {
17945
+ description: string;
17946
+ };
17947
+ };
17948
+ security: ({
17949
+ pat_with_workspace: never[];
17950
+ console_session_with_workspace?: never;
17951
+ api_key?: never;
17952
+ } | {
17953
+ console_session_with_workspace: never[];
17954
+ pat_with_workspace?: never;
17955
+ api_key?: never;
17956
+ } | {
17957
+ api_key: never[];
17958
+ pat_with_workspace?: never;
17959
+ console_session_with_workspace?: never;
17960
+ })[];
17961
+ summary: string;
17962
+ tags: never[];
17963
+ 'x-batch-type': string;
17964
+ 'x-draft': string;
17965
+ 'x-fern-sdk-group-name': string[];
17966
+ 'x-fern-sdk-method-name': string;
17967
+ 'x-fern-sdk-return-value': string;
17968
+ 'x-response-key': string;
17969
+ 'x-title': string;
17970
+ };
17971
+ post: {
17972
+ description: string;
17973
+ operationId: string;
17974
+ requestBody: {
17975
+ content: {
17976
+ 'application/json': {
17977
+ schema: {
17978
+ properties: {
17979
+ access_method_ids: {
17980
+ description: string;
17981
+ items: {
17982
+ format: string;
17983
+ type: string;
17984
+ };
17985
+ type: string;
17986
+ };
17987
+ exclude: {
17988
+ items: {
17989
+ enum: string[];
17990
+ type: string;
17991
+ };
17992
+ type: string;
17993
+ };
17994
+ include: {
17995
+ items: {
17996
+ enum: string[];
17997
+ type: string;
17998
+ };
17999
+ type: string;
18000
+ };
18001
+ };
18002
+ required: string[];
18003
+ type: string;
18004
+ };
18005
+ };
18006
+ };
18007
+ };
18008
+ responses: {
18009
+ 200: {
18010
+ content: {
18011
+ 'application/json': {
18012
+ schema: {
18013
+ properties: {
18014
+ batch: {
18015
+ description: string;
18016
+ oneOf: ({
18017
+ description: string;
18018
+ properties: {
18019
+ acs_entrances: {
18020
+ items: {
18021
+ $ref: string;
18022
+ };
18023
+ type: string;
18024
+ };
18025
+ batch_type: {
18026
+ enum: string[];
18027
+ type: string;
18028
+ };
18029
+ devices: {
18030
+ items: {
18031
+ $ref: string;
18032
+ };
18033
+ type: string;
18034
+ };
18035
+ spaces: {
18036
+ items: {
18037
+ $ref: string;
18038
+ };
18039
+ type: string;
18040
+ };
18041
+ };
18042
+ required: string[];
18043
+ type: string;
18044
+ } | {
18045
+ properties: {
18046
+ acs_entrances: {
18047
+ items: {
18048
+ $ref: string;
18049
+ };
18050
+ type: string;
18051
+ };
18052
+ batch_type: {
18053
+ enum: string[];
18054
+ type: string;
18055
+ };
18056
+ devices: {
18057
+ items: {
18058
+ $ref: string;
18059
+ };
18060
+ type: string;
18061
+ };
18062
+ spaces: {
18063
+ items: {
18064
+ $ref: string;
18065
+ };
18066
+ type: string;
18067
+ };
18068
+ };
18069
+ required: string[];
18070
+ type: string;
18071
+ description?: never;
18072
+ })[];
18073
+ 'x-route-path': string;
18074
+ };
18075
+ ok: {
18076
+ type: string;
18077
+ };
18078
+ };
18079
+ required: string[];
18080
+ type: string;
18081
+ };
18082
+ };
18083
+ };
18084
+ description: string;
18085
+ };
18086
+ 400: {
18087
+ description: string;
18088
+ };
18089
+ 401: {
18090
+ description: string;
18091
+ };
18092
+ };
18093
+ security: ({
18094
+ pat_with_workspace: never[];
18095
+ console_session_with_workspace?: never;
18096
+ api_key?: never;
18097
+ } | {
18098
+ console_session_with_workspace: never[];
18099
+ pat_with_workspace?: never;
18100
+ api_key?: never;
18101
+ } | {
18102
+ api_key: never[];
18103
+ pat_with_workspace?: never;
18104
+ console_session_with_workspace?: never;
18105
+ })[];
18106
+ summary: string;
18107
+ tags: never[];
18108
+ 'x-batch-type': string;
18109
+ 'x-draft': string;
18110
+ 'x-fern-sdk-group-name': string[];
18111
+ 'x-fern-sdk-method-name': string;
18112
+ 'x-fern-sdk-return-value': string;
18113
+ 'x-response-key': string;
18114
+ 'x-title': string;
18115
+ };
18116
+ };
17827
18117
  '/access_methods/list': {
17828
18118
  get: {
17829
18119
  description: string;