@seamapi/types 1.761.0 → 1.763.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.
@@ -110724,6 +110724,7 @@ declare const _default: {
110724
110724
  type: string;
110725
110725
  };
110726
110726
  errors?: never;
110727
+ properties_before?: never;
110727
110728
  properties_updated?: never;
110728
110729
  warnings?: never;
110729
110730
  event_id?: never;
@@ -110756,6 +110757,12 @@ declare const _default: {
110756
110757
  };
110757
110758
  type: string;
110758
110759
  };
110760
+ properties_before: {
110761
+ additionalProperties: {
110762
+ $ref: string;
110763
+ };
110764
+ type: string;
110765
+ };
110759
110766
  properties_updated: {
110760
110767
  additionalProperties: {
110761
110768
  $ref: string;
@@ -110797,6 +110804,7 @@ declare const _default: {
110797
110804
  };
110798
110805
  description?: never;
110799
110806
  errors?: never;
110807
+ properties_before?: never;
110800
110808
  properties_updated?: never;
110801
110809
  warnings?: never;
110802
110810
  response_body?: never;
@@ -110832,6 +110840,7 @@ declare const _default: {
110832
110840
  type: string;
110833
110841
  };
110834
110842
  errors?: never;
110843
+ properties_before?: never;
110835
110844
  properties_updated?: never;
110836
110845
  warnings?: never;
110837
110846
  event_id?: never;
@@ -110872,6 +110881,7 @@ declare const _default: {
110872
110881
  };
110873
110882
  description?: never;
110874
110883
  errors?: never;
110884
+ properties_before?: never;
110875
110885
  properties_updated?: never;
110876
110886
  warnings?: never;
110877
110887
  event_id?: never;
@@ -110920,6 +110930,7 @@ declare const _default: {
110920
110930
  };
110921
110931
  description?: never;
110922
110932
  errors?: never;
110933
+ properties_before?: never;
110923
110934
  properties_updated?: never;
110924
110935
  warnings?: never;
110925
110936
  event_id?: never;
@@ -111173,6 +111184,7 @@ declare const _default: {
111173
111184
  type: string;
111174
111185
  };
111175
111186
  errors?: never;
111187
+ properties_before?: never;
111176
111188
  properties_updated?: never;
111177
111189
  warnings?: never;
111178
111190
  event_id?: never;
@@ -111205,6 +111217,12 @@ declare const _default: {
111205
111217
  };
111206
111218
  type: string;
111207
111219
  };
111220
+ properties_before: {
111221
+ additionalProperties: {
111222
+ $ref: string;
111223
+ };
111224
+ type: string;
111225
+ };
111208
111226
  properties_updated: {
111209
111227
  additionalProperties: {
111210
111228
  $ref: string;
@@ -111246,6 +111264,7 @@ declare const _default: {
111246
111264
  };
111247
111265
  description?: never;
111248
111266
  errors?: never;
111267
+ properties_before?: never;
111249
111268
  properties_updated?: never;
111250
111269
  warnings?: never;
111251
111270
  response_body?: never;
@@ -111281,6 +111300,7 @@ declare const _default: {
111281
111300
  type: string;
111282
111301
  };
111283
111302
  errors?: never;
111303
+ properties_before?: never;
111284
111304
  properties_updated?: never;
111285
111305
  warnings?: never;
111286
111306
  event_id?: never;
@@ -111321,6 +111341,7 @@ declare const _default: {
111321
111341
  };
111322
111342
  description?: never;
111323
111343
  errors?: never;
111344
+ properties_before?: never;
111324
111345
  properties_updated?: never;
111325
111346
  warnings?: never;
111326
111347
  event_id?: never;
@@ -111369,6 +111390,7 @@ declare const _default: {
111369
111390
  };
111370
111391
  description?: never;
111371
111392
  errors?: never;
111393
+ properties_before?: never;
111372
111394
  properties_updated?: never;
111373
111395
  warnings?: never;
111374
111396
  event_id?: never;
@@ -118558,6 +118580,135 @@ declare const _default: {
118558
118580
  'x-undocumented': string;
118559
118581
  };
118560
118582
  };
118583
+ '/seam/customer/v1/reservations/list_access_grants': {
118584
+ get: {
118585
+ description: string;
118586
+ operationId: string;
118587
+ parameters: {
118588
+ in: string;
118589
+ name: string;
118590
+ required: boolean;
118591
+ schema: {
118592
+ description: string;
118593
+ type: string;
118594
+ };
118595
+ }[];
118596
+ responses: {
118597
+ 200: {
118598
+ content: {
118599
+ 'application/json': {
118600
+ schema: {
118601
+ properties: {
118602
+ access_grants: {
118603
+ items: {
118604
+ $ref: string;
118605
+ };
118606
+ type: string;
118607
+ };
118608
+ ok: {
118609
+ type: string;
118610
+ };
118611
+ };
118612
+ required: string[];
118613
+ type: string;
118614
+ };
118615
+ };
118616
+ };
118617
+ description: string;
118618
+ };
118619
+ 400: {
118620
+ description: string;
118621
+ };
118622
+ 401: {
118623
+ description: string;
118624
+ };
118625
+ };
118626
+ security: ({
118627
+ client_session_with_customer: never[];
118628
+ console_session_with_workspace?: never;
118629
+ } | {
118630
+ console_session_with_workspace: never[];
118631
+ client_session_with_customer?: never;
118632
+ })[];
118633
+ summary: string;
118634
+ tags: never[];
118635
+ 'x-fern-sdk-group-name': string[];
118636
+ 'x-fern-sdk-method-name': string;
118637
+ 'x-fern-sdk-return-value': string;
118638
+ 'x-response-key': string;
118639
+ 'x-title': string;
118640
+ 'x-undocumented': string;
118641
+ };
118642
+ post: {
118643
+ description: string;
118644
+ operationId: string;
118645
+ requestBody: {
118646
+ content: {
118647
+ 'application/json': {
118648
+ schema: {
118649
+ properties: {
118650
+ customer_key: {
118651
+ description: string;
118652
+ type: string;
118653
+ };
118654
+ reservation_key: {
118655
+ description: string;
118656
+ type: string;
118657
+ };
118658
+ };
118659
+ required: string[];
118660
+ type: string;
118661
+ };
118662
+ };
118663
+ };
118664
+ };
118665
+ responses: {
118666
+ 200: {
118667
+ content: {
118668
+ 'application/json': {
118669
+ schema: {
118670
+ properties: {
118671
+ access_grants: {
118672
+ items: {
118673
+ $ref: string;
118674
+ };
118675
+ type: string;
118676
+ };
118677
+ ok: {
118678
+ type: string;
118679
+ };
118680
+ };
118681
+ required: string[];
118682
+ type: string;
118683
+ };
118684
+ };
118685
+ };
118686
+ description: string;
118687
+ };
118688
+ 400: {
118689
+ description: string;
118690
+ };
118691
+ 401: {
118692
+ description: string;
118693
+ };
118694
+ };
118695
+ security: ({
118696
+ client_session_with_customer: never[];
118697
+ console_session_with_workspace?: never;
118698
+ } | {
118699
+ console_session_with_workspace: never[];
118700
+ client_session_with_customer?: never;
118701
+ })[];
118702
+ summary: string;
118703
+ tags: never[];
118704
+ 'x-fern-sdk-group-name': string[];
118705
+ 'x-fern-sdk-method-name': string;
118706
+ 'x-fern-sdk-return-value': string;
118707
+ 'x-response-key': string;
118708
+ 'x-title': string;
118709
+ 'x-undocumented': string;
118710
+ };
118711
+ };
118561
118712
  '/seam/customer/v1/settings/business_verticals/list': {
118562
118713
  get: {
118563
118714
  description: string;
@@ -191131,6 +191282,9 @@ type Routes = {
191131
191282
  properties_updated?: {
191132
191283
  [x: string]: any;
191133
191284
  } | undefined;
191285
+ properties_before?: {
191286
+ [x: string]: any;
191287
+ } | undefined;
191134
191288
  errors?: string[] | undefined;
191135
191289
  warnings?: string[] | undefined;
191136
191290
  } | {
@@ -196428,6 +196582,179 @@ type Routes = {
196428
196582
  };
196429
196583
  maxDuration: undefined;
196430
196584
  };
196585
+ '/seam/customer/v1/reservations/list_access_grants': {
196586
+ route: '/seam/customer/v1/reservations/list_access_grants';
196587
+ method: 'GET' | 'POST';
196588
+ queryParams: {};
196589
+ jsonBody: {};
196590
+ commonParams: {
196591
+ /** The customer_key identifying the customer. Required when not using client_session_with_customer auth. */
196592
+ customer_key?: string | undefined;
196593
+ /** The reservation_key to filter access grants by. */
196594
+ reservation_key: string;
196595
+ };
196596
+ formData: {};
196597
+ jsonResponse: {
196598
+ access_grants: {
196599
+ /** ID of the Seam workspace associated with the Access Grant. */
196600
+ workspace_id: string;
196601
+ /** ID of the Access Grant. */
196602
+ access_grant_id: string;
196603
+ /** Unique key for the access grant within the workspace. */
196604
+ access_grant_key?: string | undefined;
196605
+ /** Reservation key for the access grant. */
196606
+ reservation_key?: string | undefined;
196607
+ /** ID of user identity to which the Access Grant gives access. */
196608
+ user_identity_id: string;
196609
+ /**
196610
+ * @deprecated Use `space_ids`.*/
196611
+ location_ids: string[];
196612
+ /** IDs of the spaces to which the Access Grant gives access. */
196613
+ space_ids: string[];
196614
+ /** Access methods that the user requested for the Access Grant. */
196615
+ requested_access_methods: {
196616
+ /** Display name of the access method. */
196617
+ display_name: string;
196618
+ /** Access method mode. Supported values: `code`, `card`, `mobile_key`. */
196619
+ mode: 'code' | 'card' | 'mobile_key';
196620
+ /** Specific PIN code to use for this access method. Only applicable when mode is 'code'. */
196621
+ code?: string | undefined;
196622
+ /** Maximum number of times the instant key can be used. Only applicable when mode is 'mobile_key'. Defaults to 1 if not specified. */
196623
+ instant_key_max_use_count?: number | undefined;
196624
+ /** Date and time at which the requested access method was added to the Access Grant. */
196625
+ created_at: string;
196626
+ /** IDs of the access methods created for the requested access method. */
196627
+ created_access_method_ids: string[];
196628
+ }[];
196629
+ /** IDs of the access methods created for the Access Grant. */
196630
+ access_method_ids: string[];
196631
+ /** Client Session Token. Only returned if the Access Grant has a mobile_key access method. */
196632
+ client_session_token?: string | undefined;
196633
+ /** Name of the Access Grant. If not provided, the display name will be computed. */
196634
+ name: string | null;
196635
+ /** Display name of the Access Grant. */
196636
+ display_name: string;
196637
+ /** Instant Key URL. Only returned if the Access Grant has a single mobile_key access_method. */
196638
+ instant_key_url?: string | undefined;
196639
+ /** Date and time at which the Access Grant was created. */
196640
+ created_at: string;
196641
+ /** Date and time at which the Access Grant starts. */
196642
+ starts_at: string;
196643
+ /** Date and time at which the Access Grant ends. */
196644
+ ends_at: string | null;
196645
+ /** Warnings associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
196646
+ warnings: ({
196647
+ /** Date and time at which Seam created the warning. */
196648
+ created_at: string;
196649
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
196650
+ message: string;
196651
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
196652
+ warning_code: 'being_deleted';
196653
+ } | {
196654
+ /** Date and time at which Seam created the warning. */
196655
+ created_at: string;
196656
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
196657
+ message: string;
196658
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
196659
+ warning_code: 'underprovisioned_access';
196660
+ } | {
196661
+ /** Date and time at which Seam created the warning. */
196662
+ created_at: string;
196663
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
196664
+ message: string;
196665
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
196666
+ warning_code: 'overprovisioned_access';
196667
+ } | {
196668
+ /** Date and time at which Seam created the warning. */
196669
+ created_at: string;
196670
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
196671
+ message: string;
196672
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
196673
+ warning_code: 'updating_access_times';
196674
+ /** IDs of the access methods being updated. */
196675
+ access_method_ids: string[];
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: 'requested_code_unavailable';
196683
+ /** ID of the device where the requested code was unavailable. */
196684
+ device_id: string;
196685
+ /** The originally requested PIN code that was unavailable. */
196686
+ original_code: string;
196687
+ /** The new PIN code that was assigned instead. */
196688
+ new_code: string;
196689
+ } | {
196690
+ /** Date and time at which Seam created the warning. */
196691
+ created_at: string;
196692
+ /** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
196693
+ message: string;
196694
+ /** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
196695
+ warning_code: 'device_does_not_support_access_codes';
196696
+ /** ID of the device that does not support access codes. */
196697
+ device_id: string;
196698
+ })[];
196699
+ /** Errors associated with the [access grant](https://docs.seam.co/latest/capability-guides/access-grants). */
196700
+ errors: {
196701
+ /** Date and time at which Seam created the error. */
196702
+ created_at: string;
196703
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
196704
+ message: string;
196705
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
196706
+ error_code: 'cannot_create_requested_access_methods';
196707
+ }[];
196708
+ /** ID of the customization profile associated with the Access Grant. */
196709
+ customization_profile_id?: string | undefined;
196710
+ /** List of pending mutations for the access grant. This shows updates that are in progress. */
196711
+ pending_mutations: ({
196712
+ /** Date and time at which the mutation was created. */
196713
+ created_at: string;
196714
+ /** Detailed description of the mutation. */
196715
+ message: string;
196716
+ /** Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant. */
196717
+ mutation_code: 'updating_spaces';
196718
+ /** Previous location configuration. */
196719
+ from: {
196720
+ /** Previous device IDs where access codes existed. */
196721
+ device_ids: string[];
196722
+ };
196723
+ /** New location configuration. */
196724
+ to: {
196725
+ /** New device IDs where access codes should be created. */
196726
+ device_ids: string[];
196727
+ /** Common code key to ensure PIN code reuse across devices. */
196728
+ common_code_key?: (string | null) | undefined;
196729
+ };
196730
+ } | {
196731
+ /** Date and time at which the mutation was created. */
196732
+ created_at: string;
196733
+ /** Detailed description of the mutation. */
196734
+ message: string;
196735
+ /** Mutation code to indicate that Seam is in the process of updating the access times for this access grant. */
196736
+ mutation_code: 'updating_access_times';
196737
+ /** IDs of the access methods being updated. */
196738
+ access_method_ids: string[];
196739
+ /** Previous access time configuration. */
196740
+ from: {
196741
+ /** Previous start time for access. */
196742
+ starts_at: string | null;
196743
+ /** Previous end time for access. */
196744
+ ends_at: string | null;
196745
+ };
196746
+ /** New access time configuration. */
196747
+ to: {
196748
+ /** New start time for access. */
196749
+ starts_at: string | null;
196750
+ /** New end time for access. */
196751
+ ends_at: string | null;
196752
+ };
196753
+ })[];
196754
+ }[];
196755
+ };
196756
+ maxDuration: undefined;
196757
+ };
196431
196758
  '/seam/customer/v1/settings/business_verticals/list': {
196432
196759
  route: '/seam/customer/v1/settings/business_verticals/list';
196433
196760
  method: 'GET' | 'POST';
package/dist/index.cjs CHANGED
@@ -61627,6 +61627,12 @@ var openapi_default = {
61627
61627
  items: { type: "string" },
61628
61628
  type: "array"
61629
61629
  },
61630
+ properties_before: {
61631
+ additionalProperties: {
61632
+ $ref: "#/components/schemas/access_code"
61633
+ },
61634
+ type: "object"
61635
+ },
61630
61636
  properties_updated: {
61631
61637
  additionalProperties: {
61632
61638
  $ref: "#/components/schemas/access_code"
@@ -62012,6 +62018,12 @@ var openapi_default = {
62012
62018
  items: { type: "string" },
62013
62019
  type: "array"
62014
62020
  },
62021
+ properties_before: {
62022
+ additionalProperties: {
62023
+ $ref: "#/components/schemas/access_code"
62024
+ },
62025
+ type: "object"
62026
+ },
62015
62027
  properties_updated: {
62016
62028
  additionalProperties: {
62017
62029
  $ref: "#/components/schemas/access_code"
@@ -68855,6 +68867,124 @@ var openapi_default = {
68855
68867
  "x-undocumented": "Internal endpoint for customer portals."
68856
68868
  }
68857
68869
  },
68870
+ "/seam/customer/v1/reservations/list_access_grants": {
68871
+ get: {
68872
+ description: "Lists access grants linked to a reservation by reservation_key.",
68873
+ operationId: "seamCustomerV1ReservationsListAccessGrantsGet",
68874
+ parameters: [
68875
+ {
68876
+ in: "query",
68877
+ name: "customer_key",
68878
+ required: false,
68879
+ schema: {
68880
+ description: "The customer_key identifying the customer. Required when not using client_session_with_customer auth.",
68881
+ type: "string"
68882
+ }
68883
+ },
68884
+ {
68885
+ in: "query",
68886
+ name: "reservation_key",
68887
+ required: true,
68888
+ schema: {
68889
+ description: "The reservation_key to filter access grants by.",
68890
+ type: "string"
68891
+ }
68892
+ }
68893
+ ],
68894
+ responses: {
68895
+ 200: {
68896
+ content: {
68897
+ "application/json": {
68898
+ schema: {
68899
+ properties: {
68900
+ access_grants: {
68901
+ items: { $ref: "#/components/schemas/access_grant" },
68902
+ type: "array"
68903
+ },
68904
+ ok: { type: "boolean" }
68905
+ },
68906
+ required: ["access_grants", "ok"],
68907
+ type: "object"
68908
+ }
68909
+ }
68910
+ },
68911
+ description: "OK"
68912
+ },
68913
+ 400: { description: "Bad Request" },
68914
+ 401: { description: "Unauthorized" }
68915
+ },
68916
+ security: [
68917
+ { client_session_with_customer: [] },
68918
+ { console_session_with_workspace: [] }
68919
+ ],
68920
+ summary: "/seam/customer/v1/reservations/list_access_grants",
68921
+ tags: [],
68922
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "reservations"],
68923
+ "x-fern-sdk-method-name": "list_access_grants",
68924
+ "x-fern-sdk-return-value": "access_grants",
68925
+ "x-response-key": "access_grants",
68926
+ "x-title": "List Access Grants for Reservation",
68927
+ "x-undocumented": "Internal endpoint for customer portals."
68928
+ },
68929
+ post: {
68930
+ description: "Lists access grants linked to a reservation by reservation_key.",
68931
+ operationId: "seamCustomerV1ReservationsListAccessGrantsPost",
68932
+ requestBody: {
68933
+ content: {
68934
+ "application/json": {
68935
+ schema: {
68936
+ properties: {
68937
+ customer_key: {
68938
+ description: "The customer_key identifying the customer. Required when not using client_session_with_customer auth.",
68939
+ type: "string"
68940
+ },
68941
+ reservation_key: {
68942
+ description: "The reservation_key to filter access grants by.",
68943
+ type: "string"
68944
+ }
68945
+ },
68946
+ required: ["reservation_key"],
68947
+ type: "object"
68948
+ }
68949
+ }
68950
+ }
68951
+ },
68952
+ responses: {
68953
+ 200: {
68954
+ content: {
68955
+ "application/json": {
68956
+ schema: {
68957
+ properties: {
68958
+ access_grants: {
68959
+ items: { $ref: "#/components/schemas/access_grant" },
68960
+ type: "array"
68961
+ },
68962
+ ok: { type: "boolean" }
68963
+ },
68964
+ required: ["access_grants", "ok"],
68965
+ type: "object"
68966
+ }
68967
+ }
68968
+ },
68969
+ description: "OK"
68970
+ },
68971
+ 400: { description: "Bad Request" },
68972
+ 401: { description: "Unauthorized" }
68973
+ },
68974
+ security: [
68975
+ { client_session_with_customer: [] },
68976
+ { console_session_with_workspace: [] }
68977
+ ],
68978
+ summary: "/seam/customer/v1/reservations/list_access_grants",
68979
+ tags: [],
68980
+ "x-fern-sdk-group-name": ["seam", "customer", "v1", "reservations"],
68981
+ "x-fern-sdk-method-name": "list_access_grants",
68982
+ "x-fern-sdk-return-value": "access_grants",
68983
+ "x-response-key": "access_grants",
68984
+ "x-title": "List Access Grants for Reservation",
68985
+ "x-undocumented": "Internal endpoint for customer portals."
68986
+ }
68987
+ },
68858
68988
  "/seam/customer/v1/settings/business_verticals/list": {
68859
68989
  get: {
68860
68990
  description: "Returns all available business verticals.",