@seamapi/types 1.895.0 → 1.897.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.
@@ -24683,16 +24683,16 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
24683
24683
  event_type: z.ZodLiteral<"access_code.changed">;
24684
24684
  changed_properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
24685
24685
  property: z.ZodString;
24686
- previous_value: z.ZodNullable<z.ZodString>;
24687
- new_value: z.ZodNullable<z.ZodString>;
24686
+ from: z.ZodNullable<z.ZodString>;
24687
+ to: z.ZodNullable<z.ZodString>;
24688
24688
  }, "strip", z.ZodTypeAny, {
24689
+ from: string | null;
24690
+ to: string | null;
24689
24691
  property: string;
24690
- previous_value: string | null;
24691
- new_value: string | null;
24692
24692
  }, {
24693
+ from: string | null;
24694
+ to: string | null;
24693
24695
  property: string;
24694
- previous_value: string | null;
24695
- new_value: string | null;
24696
24696
  }>, "many">>;
24697
24697
  change_reason: z.ZodOptional<z.ZodString>;
24698
24698
  }, "strip", z.ZodTypeAny, {
@@ -24707,9 +24707,9 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
24707
24707
  device_custom_metadata?: Record<string, string | boolean> | undefined;
24708
24708
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
24709
24709
  changed_properties?: {
24710
+ from: string | null;
24711
+ to: string | null;
24710
24712
  property: string;
24711
- previous_value: string | null;
24712
- new_value: string | null;
24713
24713
  }[] | undefined;
24714
24714
  change_reason?: string | undefined;
24715
24715
  }, {
@@ -24724,9 +24724,9 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
24724
24724
  device_custom_metadata?: Record<string, string | boolean> | undefined;
24725
24725
  connected_account_custom_metadata?: Record<string, string | boolean> | undefined;
24726
24726
  changed_properties?: {
24727
+ from: string | null;
24728
+ to: string | null;
24727
24729
  property: string;
24728
- previous_value: string | null;
24729
- new_value: string | null;
24730
24730
  }[] | undefined;
24731
24731
  change_reason?: string | undefined;
24732
24732
  }>, z.ZodObject<{
@@ -76321,9 +76321,9 @@ type Routes = {
76321
76321
  /** Name of the property that changed (e.g. `code`). */
76322
76322
  property: string;
76323
76323
  /** Previous value of the property, or null if not set. */
76324
- previous_value: string | null;
76324
+ from: string | null;
76325
76325
  /** New value of the property, or null if cleared. */
76326
- new_value: string | null;
76326
+ to: string | null;
76327
76327
  }[] | undefined;
76328
76328
  /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
76329
76329
  change_reason?: string | undefined;
@@ -79178,9 +79178,9 @@ type Routes = {
79178
79178
  /** Name of the property that changed (e.g. `code`). */
79179
79179
  property: string;
79180
79180
  /** Previous value of the property, or null if not set. */
79181
- previous_value: string | null;
79181
+ from: string | null;
79182
79182
  /** New value of the property, or null if cleared. */
79183
- new_value: string | null;
79183
+ to: string | null;
79184
79184
  }[] | undefined;
79185
79185
  /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
79186
79186
  change_reason?: string | undefined;
@@ -104563,6 +104563,168 @@ type Routes = {
104563
104563
  };
104564
104564
  maxDuration: undefined;
104565
104565
  };
104566
+ '/seam/console/v1/sites/create': {
104567
+ route: '/seam/console/v1/sites/create';
104568
+ method: 'POST';
104569
+ queryParams: {};
104570
+ jsonBody: {
104571
+ /** Name of the site that you want to create. */
104572
+ name: string;
104573
+ /** Unique key for the site within the workspace. */
104574
+ site_key?: string | undefined;
104575
+ };
104576
+ commonParams: {};
104577
+ formData: {};
104578
+ jsonResponse: {
104579
+ /** Represents a space that is a logical grouping of devices and entrances. You can assign access to an entire space, thereby making granting access more efficient. */
104580
+ site: {
104581
+ /** ID of the space. */
104582
+ space_id: string;
104583
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the space. */
104584
+ workspace_id: string;
104585
+ /** Unique key for the space within the workspace. */
104586
+ space_key?: string | undefined;
104587
+ /** Name of the space. */
104588
+ name: string;
104589
+ /** Display name for the space. */
104590
+ display_name: string;
104591
+ /** Date and time at which the space was created. */
104592
+ created_at: string;
104593
+ /** Number of devices in the space. */
104594
+ device_count: number;
104595
+ /** Number of entrances in the space. */
104596
+ acs_entrance_count: number;
104597
+ /** Customer key associated with the space. */
104598
+ customer_key?: string | undefined;
104599
+ /** Reservation/stay-related defaults for the space. */
104600
+ customer_data?: {
104601
+ /** IANA time zone for the space, e.g. America/Los_Angeles. */
104602
+ time_zone?: (string | null) | undefined;
104603
+ /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
104604
+ default_checkin_time?: (string | null) | undefined;
104605
+ /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
104606
+ default_checkout_time?: (string | null) | undefined;
104607
+ } | undefined;
104608
+ /** */
104609
+ parent_space_id?: string | undefined;
104610
+ /** */
104611
+ parent_space_key?: string | undefined;
104612
+ };
104613
+ };
104614
+ maxDuration: undefined;
104615
+ };
104616
+ '/seam/console/v1/sites/delete': {
104617
+ route: '/seam/console/v1/sites/delete';
104618
+ method: 'DELETE' | 'POST';
104619
+ queryParams: {};
104620
+ jsonBody: {
104621
+ /** ID of the site that you want to delete. */
104622
+ site_id: string;
104623
+ };
104624
+ commonParams: {};
104625
+ formData: {};
104626
+ jsonResponse: {};
104627
+ maxDuration: undefined;
104628
+ };
104629
+ '/seam/console/v1/sites/list': {
104630
+ route: '/seam/console/v1/sites/list';
104631
+ method: 'GET' | 'POST';
104632
+ queryParams: {};
104633
+ jsonBody: {};
104634
+ commonParams: {
104635
+ /** String for which to search. Filters sites to those with a partial match on `name` or `site_key`. */
104636
+ search?: string | undefined;
104637
+ };
104638
+ formData: {};
104639
+ jsonResponse: {
104640
+ sites: {
104641
+ /** ID of the space. */
104642
+ space_id: string;
104643
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the space. */
104644
+ workspace_id: string;
104645
+ /** Unique key for the space within the workspace. */
104646
+ space_key?: string | undefined;
104647
+ /** Name of the space. */
104648
+ name: string;
104649
+ /** Display name for the space. */
104650
+ display_name: string;
104651
+ /** Date and time at which the space was created. */
104652
+ created_at: string;
104653
+ /** Number of devices in the space. */
104654
+ device_count: number;
104655
+ /** Number of entrances in the space. */
104656
+ acs_entrance_count: number;
104657
+ /** Customer key associated with the space. */
104658
+ customer_key?: string | undefined;
104659
+ /** Reservation/stay-related defaults for the space. */
104660
+ customer_data?: {
104661
+ /** IANA time zone for the space, e.g. America/Los_Angeles. */
104662
+ time_zone?: (string | null) | undefined;
104663
+ /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
104664
+ default_checkin_time?: (string | null) | undefined;
104665
+ /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
104666
+ default_checkout_time?: (string | null) | undefined;
104667
+ } | undefined;
104668
+ /** */
104669
+ parent_space_id?: string | undefined;
104670
+ /** */
104671
+ parent_space_key?: string | undefined;
104672
+ }[];
104673
+ };
104674
+ maxDuration: undefined;
104675
+ };
104676
+ '/seam/console/v1/sites/update': {
104677
+ route: '/seam/console/v1/sites/update';
104678
+ method: 'POST' | 'PATCH';
104679
+ queryParams: {};
104680
+ jsonBody: {
104681
+ /** ID of the site that you want to update. */
104682
+ site_id: string;
104683
+ /** New name for the site. */
104684
+ name?: string | undefined;
104685
+ /** New unique key for the site within the workspace. */
104686
+ site_key?: string | undefined;
104687
+ };
104688
+ commonParams: {};
104689
+ formData: {};
104690
+ jsonResponse: {
104691
+ /** Represents a space that is a logical grouping of devices and entrances. You can assign access to an entire space, thereby making granting access more efficient. */
104692
+ site: {
104693
+ /** ID of the space. */
104694
+ space_id: string;
104695
+ /** ID of the [workspace](https://docs.seam.co/core-concepts/workspaces) associated with the space. */
104696
+ workspace_id: string;
104697
+ /** Unique key for the space within the workspace. */
104698
+ space_key?: string | undefined;
104699
+ /** Name of the space. */
104700
+ name: string;
104701
+ /** Display name for the space. */
104702
+ display_name: string;
104703
+ /** Date and time at which the space was created. */
104704
+ created_at: string;
104705
+ /** Number of devices in the space. */
104706
+ device_count: number;
104707
+ /** Number of entrances in the space. */
104708
+ acs_entrance_count: number;
104709
+ /** Customer key associated with the space. */
104710
+ customer_key?: string | undefined;
104711
+ /** Reservation/stay-related defaults for the space. */
104712
+ customer_data?: {
104713
+ /** IANA time zone for the space, e.g. America/Los_Angeles. */
104714
+ time_zone?: (string | null) | undefined;
104715
+ /** Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */
104716
+ default_checkin_time?: (string | null) | undefined;
104717
+ /** Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */
104718
+ default_checkout_time?: (string | null) | undefined;
104719
+ } | undefined;
104720
+ /** */
104721
+ parent_space_id?: string | undefined;
104722
+ /** */
104723
+ parent_space_key?: string | undefined;
104724
+ };
104725
+ };
104726
+ maxDuration: undefined;
104727
+ };
104566
104728
  '/seam/console/v1/timelines/get': {
104567
104729
  route: '/seam/console/v1/timelines/get';
104568
104730
  method: 'GET' | 'POST';
@@ -107478,9 +107640,9 @@ type Routes = {
107478
107640
  /** Name of the property that changed (e.g. `code`). */
107479
107641
  property: string;
107480
107642
  /** Previous value of the property, or null if not set. */
107481
- previous_value: string | null;
107643
+ from: string | null;
107482
107644
  /** New value of the property, or null if cleared. */
107483
- new_value: string | null;
107645
+ to: string | null;
107484
107646
  }[] | undefined;
107485
107647
  /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
107486
107648
  change_reason?: string | undefined;
@@ -144013,9 +144175,9 @@ type Routes = {
144013
144175
  /** Name of the property that changed (e.g. `code`). */
144014
144176
  property: string;
144015
144177
  /** Previous value of the property, or null if not set. */
144016
- previous_value: string | null;
144178
+ from: string | null;
144017
144179
  /** New value of the property, or null if cleared. */
144018
- new_value: string | null;
144180
+ to: string | null;
144019
144181
  }[] | undefined;
144020
144182
  /** Human-readable reason for the change (e.g. `ongoing code auto-renewed`). */
144021
144183
  change_reason?: string | undefined;