@seamapi/types 1.762.0 → 1.764.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.
@@ -89758,14 +89758,22 @@ declare const _default: {
89758
89758
  pat_with_workspace: never[];
89759
89759
  console_session_with_workspace?: never;
89760
89760
  api_key?: never;
89761
+ client_session_with_customer?: never;
89761
89762
  } | {
89762
89763
  console_session_with_workspace: never[];
89763
89764
  pat_with_workspace?: never;
89764
89765
  api_key?: never;
89766
+ client_session_with_customer?: never;
89765
89767
  } | {
89766
89768
  api_key: never[];
89767
89769
  pat_with_workspace?: never;
89768
89770
  console_session_with_workspace?: never;
89771
+ client_session_with_customer?: never;
89772
+ } | {
89773
+ client_session_with_customer: never[];
89774
+ pat_with_workspace?: never;
89775
+ console_session_with_workspace?: never;
89776
+ api_key?: never;
89769
89777
  })[];
89770
89778
  summary: string;
89771
89779
  tags: never[];
@@ -90079,14 +90087,22 @@ declare const _default: {
90079
90087
  pat_with_workspace: never[];
90080
90088
  console_session_with_workspace?: never;
90081
90089
  api_key?: never;
90090
+ client_session_with_customer?: never;
90082
90091
  } | {
90083
90092
  console_session_with_workspace: never[];
90084
90093
  pat_with_workspace?: never;
90085
90094
  api_key?: never;
90095
+ client_session_with_customer?: never;
90086
90096
  } | {
90087
90097
  api_key: never[];
90088
90098
  pat_with_workspace?: never;
90089
90099
  console_session_with_workspace?: never;
90100
+ client_session_with_customer?: never;
90101
+ } | {
90102
+ client_session_with_customer: never[];
90103
+ pat_with_workspace?: never;
90104
+ console_session_with_workspace?: never;
90105
+ api_key?: never;
90090
90106
  })[];
90091
90107
  summary: string;
90092
90108
  tags: never[];
@@ -118580,6 +118596,135 @@ declare const _default: {
118580
118596
  'x-undocumented': string;
118581
118597
  };
118582
118598
  };
118599
+ '/seam/customer/v1/reservations/list_access_grants': {
118600
+ get: {
118601
+ description: string;
118602
+ operationId: string;
118603
+ parameters: {
118604
+ in: string;
118605
+ name: string;
118606
+ required: boolean;
118607
+ schema: {
118608
+ description: string;
118609
+ type: string;
118610
+ };
118611
+ }[];
118612
+ responses: {
118613
+ 200: {
118614
+ content: {
118615
+ 'application/json': {
118616
+ schema: {
118617
+ properties: {
118618
+ access_grants: {
118619
+ items: {
118620
+ $ref: string;
118621
+ };
118622
+ type: string;
118623
+ };
118624
+ ok: {
118625
+ type: string;
118626
+ };
118627
+ };
118628
+ required: string[];
118629
+ type: string;
118630
+ };
118631
+ };
118632
+ };
118633
+ description: string;
118634
+ };
118635
+ 400: {
118636
+ description: string;
118637
+ };
118638
+ 401: {
118639
+ description: string;
118640
+ };
118641
+ };
118642
+ security: ({
118643
+ client_session_with_customer: never[];
118644
+ console_session_with_workspace?: never;
118645
+ } | {
118646
+ console_session_with_workspace: never[];
118647
+ client_session_with_customer?: never;
118648
+ })[];
118649
+ summary: string;
118650
+ tags: never[];
118651
+ 'x-fern-sdk-group-name': string[];
118652
+ 'x-fern-sdk-method-name': string;
118653
+ 'x-fern-sdk-return-value': string;
118654
+ 'x-response-key': string;
118655
+ 'x-title': string;
118656
+ 'x-undocumented': string;
118657
+ };
118658
+ post: {
118659
+ description: string;
118660
+ operationId: string;
118661
+ requestBody: {
118662
+ content: {
118663
+ 'application/json': {
118664
+ schema: {
118665
+ properties: {
118666
+ customer_key: {
118667
+ description: string;
118668
+ type: string;
118669
+ };
118670
+ reservation_key: {
118671
+ description: string;
118672
+ type: string;
118673
+ };
118674
+ };
118675
+ required: string[];
118676
+ type: string;
118677
+ };
118678
+ };
118679
+ };
118680
+ };
118681
+ responses: {
118682
+ 200: {
118683
+ content: {
118684
+ 'application/json': {
118685
+ schema: {
118686
+ properties: {
118687
+ access_grants: {
118688
+ items: {
118689
+ $ref: string;
118690
+ };
118691
+ type: string;
118692
+ };
118693
+ ok: {
118694
+ type: string;
118695
+ };
118696
+ };
118697
+ required: string[];
118698
+ type: string;
118699
+ };
118700
+ };
118701
+ };
118702
+ description: string;
118703
+ };
118704
+ 400: {
118705
+ description: string;
118706
+ };
118707
+ 401: {
118708
+ description: string;
118709
+ };
118710
+ };
118711
+ security: ({
118712
+ client_session_with_customer: never[];
118713
+ console_session_with_workspace?: never;
118714
+ } | {
118715
+ console_session_with_workspace: never[];
118716
+ client_session_with_customer?: never;
118717
+ })[];
118718
+ summary: string;
118719
+ tags: never[];
118720
+ 'x-fern-sdk-group-name': string[];
118721
+ 'x-fern-sdk-method-name': string;
118722
+ 'x-fern-sdk-return-value': string;
118723
+ 'x-response-key': string;
118724
+ 'x-title': string;
118725
+ 'x-undocumented': string;
118726
+ };
118727
+ };
118583
118728
  '/seam/customer/v1/settings/business_verticals/list': {
118584
118729
  get: {
118585
118730
  description: string;
@@ -196453,6 +196598,179 @@ type Routes = {
196453
196598
  };
196454
196599
  maxDuration: undefined;
196455
196600
  };
196601
+ '/seam/customer/v1/reservations/list_access_grants': {
196602
+ route: '/seam/customer/v1/reservations/list_access_grants';
196603
+ method: 'GET' | 'POST';
196604
+ queryParams: {};
196605
+ jsonBody: {};
196606
+ commonParams: {
196607
+ /** The customer_key identifying the customer. Required when not using client_session_with_customer auth. */
196608
+ customer_key?: string | undefined;
196609
+ /** The reservation_key to filter access grants by. */
196610
+ reservation_key: string;
196611
+ };
196612
+ formData: {};
196613
+ jsonResponse: {
196614
+ access_grants: {
196615
+ /** ID of the Seam workspace associated with the Access Grant. */
196616
+ workspace_id: string;
196617
+ /** ID of the Access Grant. */
196618
+ access_grant_id: string;
196619
+ /** Unique key for the access grant within the workspace. */
196620
+ access_grant_key?: string | undefined;
196621
+ /** Reservation key for the access grant. */
196622
+ reservation_key?: string | undefined;
196623
+ /** ID of user identity to which the Access Grant gives access. */
196624
+ user_identity_id: string;
196625
+ /**
196626
+ * @deprecated Use `space_ids`.*/
196627
+ location_ids: string[];
196628
+ /** IDs of the spaces to which the Access Grant gives access. */
196629
+ space_ids: string[];
196630
+ /** Access methods that the user requested for the Access Grant. */
196631
+ requested_access_methods: {
196632
+ /** Display name of the access method. */
196633
+ display_name: string;
196634
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
196635
+ mode: 'code' | 'card' | 'mobile_key';
196636
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
196637
+ code?: string | undefined;
196638
+ /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
196639
+ instant_key_max_use_count?: number | undefined;
196640
+ /** Date and time at which the requested access method was added to the Access Grant. */
196641
+ created_at: string;
196642
+ /** IDs of the access methods created for the requested access method. */
196643
+ created_access_method_ids: string[];
196644
+ }[];
196645
+ /** IDs of the access methods created for the Access Grant. */
196646
+ access_method_ids: string[];
196647
+ /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
196648
+ client_session_token?: string | undefined;
196649
+ /** Name of the Access Grant. If not provided, the display name will be computed. */
196650
+ name: string | null;
196651
+ /** Display name of the Access Grant. */
196652
+ display_name: string;
196653
+ /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
196654
+ instant_key_url?: string | undefined;
196655
+ /** Date and time at which the Access Grant was created. */
196656
+ created_at: string;
196657
+ /** Date and time at which the Access Grant starts. */
196658
+ starts_at: string;
196659
+ /** Date and time at which the Access Grant ends. */
196660
+ ends_at: string | null;
196661
+ /** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
196662
+ warnings: ({
196663
+ /** Date and time at which Seam created the warning. */
196664
+ created_at: string;
196665
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
196666
+ message: string;
196667
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
196668
+ warning_code: 'being_deleted';
196669
+ } | {
196670
+ /** Date and time at which Seam created the warning. */
196671
+ created_at: string;
196672
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
196673
+ message: string;
196674
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
196675
+ warning_code: 'underprovisioned_access';
196676
+ } | {
196677
+ /** Date and time at which Seam created the warning. */
196678
+ created_at: string;
196679
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
196680
+ message: string;
196681
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
196682
+ warning_code: 'overprovisioned_access';
196683
+ } | {
196684
+ /** Date and time at which Seam created the warning. */
196685
+ created_at: string;
196686
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
196687
+ message: string;
196688
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
196689
+ warning_code: 'updating_access_times';
196690
+ /** IDs of the access methods being updated. */
196691
+ access_method_ids: string[];
196692
+ } | {
196693
+ /** Date and time at which Seam created the warning. */
196694
+ created_at: string;
196695
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
196696
+ message: string;
196697
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
196698
+ warning_code: 'requested_code_unavailable';
196699
+ /** ID of the device where the requested code was unavailable. */
196700
+ device_id: string;
196701
+ /** The originally requested PIN code that was unavailable. */
196702
+ original_code: string;
196703
+ /** The new PIN code that was assigned instead. */
196704
+ new_code: string;
196705
+ } | {
196706
+ /** Date and time at which Seam created the warning. */
196707
+ created_at: string;
196708
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
196709
+ message: string;
196710
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
196711
+ warning_code: 'device_does_not_support_access_codes';
196712
+ /** ID of the device that does not support access codes. */
196713
+ device_id: string;
196714
+ })[];
196715
+ /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
196716
+ errors: {
196717
+ /** Date and time at which Seam created the error. */
196718
+ created_at: string;
196719
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
196720
+ message: string;
196721
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
196722
+ error_code: 'cannot_create_requested_access_methods';
196723
+ }[];
196724
+ /** ID of the customization profile associated with the Access Grant. */
196725
+ customization_profile_id?: string | undefined;
196726
+ /** List of pending mutations for the access grant. This shows updates that are in progress. */
196727
+ pending_mutations: ({
196728
+ /** Date and time at which the mutation was created. */
196729
+ created_at: string;
196730
+ /** Detailed description of the mutation. */
196731
+ message: string;
196732
+ /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */
196733
+ mutation_code: 'updating_spaces';
196734
+ /** Previous location configuration. */
196735
+ from: {
196736
+ /** Previous device IDs where access codes existed. */
196737
+ device_ids: string[];
196738
+ };
196739
+ /** New location configuration. */
196740
+ to: {
196741
+ /** New device IDs where access codes should be created. */
196742
+ device_ids: string[];
196743
+ /** Common code key to ensure PIN code reuse across devices. */
196744
+ common_code_key?: (string | null) | undefined;
196745
+ };
196746
+ } | {
196747
+ /** Date and time at which the mutation was created. */
196748
+ created_at: string;
196749
+ /** Detailed description of the mutation. */
196750
+ message: string;
196751
+ /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */
196752
+ mutation_code: 'updating_access_times';
196753
+ /** IDs of the access methods being updated. */
196754
+ access_method_ids: string[];
196755
+ /** Previous access time configuration. */
196756
+ from: {
196757
+ /** Previous start time for access. */
196758
+ starts_at: string | null;
196759
+ /** Previous end time for access. */
196760
+ ends_at: string | null;
196761
+ };
196762
+ /** New access time configuration. */
196763
+ to: {
196764
+ /** New start time for access. */
196765
+ starts_at: string | null;
196766
+ /** New end time for access. */
196767
+ ends_at: string | null;
196768
+ };
196769
+ })[];
196770
+ }[];
196771
+ };
196772
+ maxDuration: undefined;
196773
+ };
196456
196774
  '/seam/customer/v1/settings/business_verticals/list': {
196457
196775
  route: '/seam/customer/v1/settings/business_verticals/list';
196458
196776
  method: 'GET' | 'POST';
package/dist/index.cjs CHANGED
@@ -42416,7 +42416,8 @@ var openapi_default = {
42416
42416
  security: [
42417
42417
  { pat_with_workspace: [] },
42418
42418
  { console_session_with_workspace: [] },
42419
- { api_key: [] }
42419
+ { api_key: [] },
42420
+ { client_session_with_customer: [] }
42420
42421
  ],
42421
42422
  summary: "/access_methods/unmanaged/list",
42422
42423
  tags: [],
@@ -42830,7 +42831,8 @@ var openapi_default = {
42830
42831
  security: [
42831
42832
  { pat_with_workspace: [] },
42832
42833
  { console_session_with_workspace: [] },
42833
- { api_key: [] }
42834
+ { api_key: [] },
42835
+ { client_session_with_customer: [] }
42834
42836
  ],
42835
42837
  summary: "/access_methods/unmanaged/list",
42836
42838
  tags: [],
@@ -68867,6 +68869,124 @@ var openapi_default = {
68867
68869
  "x-undocumented": "Internal endpoint for customer portals."
68868
68870
  }
68869
68871
  },
68872
+ "/seam/customer/v1/reservations/list_access_grants": {
68873
+ get: {
68874
+ description: "Lists access grants linked to a reservation by reservation_key.",
68875
+ operationId: "seamCustomerV1ReservationsListAccessGrantsGet",
68876
+ parameters: [
68877
+ {
68878
+ in: "query",
68879
+ name: "customer_key",
68880
+ required: false,
68881
+ schema: {
68882
+ description: "The customer_key identifying the customer. Required when not using client_session_with_customer auth.",
68883
+ type: "string"
68884
+ }
68885
+ },
68886
+ {
68887
+ in: "query",
68888
+ name: "reservation_key",
68889
+ required: true,
68890
+ schema: {
68891
+ description: "The reservation_key to filter access grants by.",
68892
+ type: "string"
68893
+ }
68894
+ }
68895
+ ],
68896
+ responses: {
68897
+ 200: {
68898
+ content: {
68899
+ "application/json": {
68900
+ schema: {
68901
+ properties: {
68902
+ access_grants: {
68903
+ items: { $ref: "#/components/schemas/access_grant" },
68904
+ type: "array"
68905
+ },
68906
+ ok: { type: "boolean" }
68907
+ },
68908
+ required: ["access_grants", "ok"],
68909
+ type: "object"
68910
+ }
68911
+ }
68912
+ },
68913
+ description: "OK"
68914
+ },
68915
+ 400: { description: "Bad Request" },
68916
+ 401: { description: "Unauthorized" }
68917
+ },
68918
+ security: [
68919
+ { client_session_with_customer: [] },
68920
+ { console_session_with_workspace: [] }
68921
+ ],
68922
+ summary: "/seam/customer/v1/reservations/list_access_grants",
68923
+ tags: [],
68924
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "reservations"],
68925
+ "x-fern-sdk-method-name": "list_access_grants",
68926
+ "x-fern-sdk-return-value": "access_grants",
68927
+ "x-response-key": "access_grants",
68928
+ "x-title": "List Access Grants for Reservation",
68929
+ "x-undocumented": "Internal endpoint for customer portals."
68930
+ },
68931
+ post: {
68932
+ description: "Lists access grants linked to a reservation by reservation_key.",
68933
+ operationId: "seamCustomerV1ReservationsListAccessGrantsPost",
68934
+ requestBody: {
68935
+ content: {
68936
+ "application/json": {
68937
+ schema: {
68938
+ properties: {
68939
+ customer_key: {
68940
+ description: "The customer_key identifying the customer. Required when not using client_session_with_customer auth.",
68941
+ type: "string"
68942
+ },
68943
+ reservation_key: {
68944
+ description: "The reservation_key to filter access grants by.",
68945
+ type: "string"
68946
+ }
68947
+ },
68948
+ required: ["reservation_key"],
68949
+ type: "object"
68950
+ }
68951
+ }
68952
+ }
68953
+ },
68954
+ responses: {
68955
+ 200: {
68956
+ content: {
68957
+ "application/json": {
68958
+ schema: {
68959
+ properties: {
68960
+ access_grants: {
68961
+ items: { $ref: "#/components/schemas/access_grant" },
68962
+ type: "array"
68963
+ },
68964
+ ok: { type: "boolean" }
68965
+ },
68966
+ required: ["access_grants", "ok"],
68967
+ type: "object"
68968
+ }
68969
+ }
68970
+ },
68971
+ description: "OK"
68972
+ },
68973
+ 400: { description: "Bad Request" },
68974
+ 401: { description: "Unauthorized" }
68975
+ },
68976
+ security: [
68977
+ { client_session_with_customer: [] },
68978
+ { console_session_with_workspace: [] }
68979
+ ],
68980
+ summary: "/seam/customer/v1/reservations/list_access_grants",
68981
+ tags: [],
68982
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "reservations"],
68983
+ "x-fern-sdk-method-name": "list_access_grants",
68984
+ "x-fern-sdk-return-value": "access_grants",
68985
+ "x-response-key": "access_grants",
68986
+ "x-title": "List Access Grants for Reservation",
68987
+ "x-undocumented": "Internal endpoint for customer portals."
68988
+ }
68989
+ },
68870
68990
  "/seam/customer/v1/settings/business_verticals/list": {
68871
68991
  get: {
68872
68992
  description: "Returns all available business verticals.",