@seamapi/types 1.1153.0 → 1.1155.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.
@@ -49092,6 +49092,8 @@ export type Routes = {
49092
49092
  preferred_code?: (string | null) | undefined;
49093
49093
  /** Your identifier for the sub-reservation. Must be unique within its reservation. */
49094
49094
  sub_reservation_key: string;
49095
+ /** Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary. */
49096
+ is_primary?: boolean | undefined;
49095
49097
  /** Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata. */
49096
49098
  custom_metadata?: {
49097
49099
  [x: string]: string | boolean | null;
@@ -49546,6 +49548,8 @@ export type Routes = {
49546
49548
  preferred_code?: (string | null) | undefined;
49547
49549
  /** Your identifier for the sub-reservation. Must be unique within its reservation. */
49548
49550
  sub_reservation_key: string;
49551
+ /** Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary. */
49552
+ is_primary?: boolean | undefined;
49549
49553
  /** Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata. */
49550
49554
  custom_metadata?: {
49551
49555
  [x: string]: string | boolean | null;
@@ -100247,6 +100251,8 @@ export type Routes = {
100247
100251
  instant_key_url?: string | undefined;
100248
100252
  }[];
100249
100253
  connected_account_id: string | null;
100254
+ /** Key of the customer the reservation belongs to, or null when it belongs to none. */
100255
+ customer_key: string | null;
100250
100256
  last_automation_result: {
100251
100257
  success: boolean;
100252
100258
  rule: string;
@@ -100265,10 +100271,14 @@ export type Routes = {
100265
100271
  parent_reservation_id: string | null;
100266
100272
  /** Key of the parent reservation when this reservation is a sub-reservation. Its `reservation_key` is then `<parent_reservation_key>::<sub-reservation key>`. Null otherwise. */
100267
100273
  parent_reservation_key: string | null;
100274
+ /** Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation. */
100275
+ is_primary: boolean | null;
100268
100276
  /** Parts of the reservation that each hold their own access, for example one per room. When present, the reservation's spaces are the union of its sub-reservations' spaces. */
100269
100277
  sub_reservations: {
100270
100278
  sub_reservation_id: string;
100271
100279
  sub_reservation_key: string;
100280
+ /** Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user. */
100281
+ is_primary: boolean;
100272
100282
  name: string | null;
100273
100283
  starts_at: string | null;
100274
100284
  ends_at: string | null;
@@ -100360,6 +100370,8 @@ export type Routes = {
100360
100370
  name: string | null;
100361
100371
  }[];
100362
100372
  connected_account_id: string | null;
100373
+ /** Key of the customer the reservation belongs to, or null when it belongs to none. */
100374
+ customer_key: string | null;
100363
100375
  last_automation_result: {
100364
100376
  success: boolean;
100365
100377
  rule: string;
@@ -100378,6 +100390,8 @@ export type Routes = {
100378
100390
  sub_reservations: {
100379
100391
  sub_reservation_id: string;
100380
100392
  sub_reservation_key: string;
100393
+ /** Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user. */
100394
+ is_primary: boolean;
100381
100395
  name: string | null;
100382
100396
  starts_at: string | null;
100383
100397
  ends_at: string | null;
@@ -100945,6 +100959,8 @@ export type Routes = {
100945
100959
  parent_reservation_id: string | null;
100946
100960
  /** Key of the parent reservation when this reservation is a sub-reservation. Its `reservation_key` is then `<parent_reservation_key>::<sub-reservation key>`. Null otherwise. */
100947
100961
  parent_reservation_key: string | null;
100962
+ /** Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation. */
100963
+ is_primary: boolean | null;
100948
100964
  }[];
100949
100965
  };
100950
100966
  maxDuration: undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.1153.0",
3
+ "version": "1.1155.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -92,6 +92,12 @@ export const sub_reservation_resource = base_access_grant_resource
92
92
  .describe(
93
93
  'Your identifier for the sub-reservation. Must be unique within its reservation.',
94
94
  ),
95
+ is_primary: z
96
+ .boolean()
97
+ .optional()
98
+ .describe(
99
+ "Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary.",
100
+ ),
95
101
  custom_metadata: custom_metadata_input
96
102
  .optional()
97
103
  .describe(
@@ -53735,6 +53735,11 @@ const openapi: OpenAPISpec = {
53735
53735
  'Guest key associated with the access grant.',
53736
53736
  type: 'string',
53737
53737
  },
53738
+ is_primary: {
53739
+ description:
53740
+ "Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary.",
53741
+ type: 'boolean',
53742
+ },
53738
53743
  listing_keys: {
53739
53744
  description:
53740
53745
  'Listing keys associated with the access grant.',
@@ -55052,6 +55057,11 @@ const openapi: OpenAPISpec = {
55052
55057
  'Guest key associated with the access grant.',
55053
55058
  type: 'string',
55054
55059
  },
55060
+ is_primary: {
55061
+ description:
55062
+ "Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary.",
55063
+ type: 'boolean',
55064
+ },
55055
55065
  listing_keys: {
55056
55066
  description:
55057
55067
  'Listing keys associated with the access grant.',
@@ -70009,6 +70019,12 @@ const openapi: OpenAPISpec = {
70009
70019
  type: 'string',
70010
70020
  },
70011
70021
  created_at: { format: 'date-time', type: 'string' },
70022
+ customer_key: {
70023
+ description:
70024
+ 'Key of the customer the reservation belongs to, or null when it belongs to none.',
70025
+ nullable: true,
70026
+ type: 'string',
70027
+ },
70012
70028
  ends_at: {
70013
70029
  format: 'date-time',
70014
70030
  nullable: true,
@@ -70039,6 +70055,12 @@ const openapi: OpenAPISpec = {
70039
70055
  type: 'object',
70040
70056
  },
70041
70057
  guest_name: { nullable: true, type: 'string' },
70058
+ is_primary: {
70059
+ description:
70060
+ "Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation.",
70061
+ nullable: true,
70062
+ type: 'boolean',
70063
+ },
70042
70064
  is_resource_syncing: { type: 'boolean' },
70043
70065
  last_automation_result: {
70044
70066
  nullable: true,
@@ -70140,6 +70162,11 @@ const openapi: OpenAPISpec = {
70140
70162
  nullable: true,
70141
70163
  type: 'string',
70142
70164
  },
70165
+ is_primary: {
70166
+ description:
70167
+ "Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user.",
70168
+ type: 'boolean',
70169
+ },
70143
70170
  is_resource_syncing: { type: 'boolean' },
70144
70171
  name: { nullable: true, type: 'string' },
70145
70172
  spaces: {
@@ -70172,6 +70199,7 @@ const openapi: OpenAPISpec = {
70172
70199
  required: [
70173
70200
  'sub_reservation_id',
70174
70201
  'sub_reservation_key',
70202
+ 'is_primary',
70175
70203
  'name',
70176
70204
  'starts_at',
70177
70205
  'ends_at',
@@ -70199,9 +70227,11 @@ const openapi: OpenAPISpec = {
70199
70227
  'access_grant_id',
70200
70228
  'access_methods',
70201
70229
  'connected_account_id',
70230
+ 'customer_key',
70202
70231
  'last_automation_result',
70203
70232
  'parent_reservation_id',
70204
70233
  'parent_reservation_key',
70234
+ 'is_primary',
70205
70235
  'sub_reservations',
70206
70236
  ],
70207
70237
  type: 'object',
@@ -70426,6 +70456,12 @@ const openapi: OpenAPISpec = {
70426
70456
  type: 'string',
70427
70457
  },
70428
70458
  created_at: { format: 'date-time', type: 'string' },
70459
+ customer_key: {
70460
+ description:
70461
+ 'Key of the customer the reservation belongs to, or null when it belongs to none.',
70462
+ nullable: true,
70463
+ type: 'string',
70464
+ },
70429
70465
  ends_at: {
70430
70466
  format: 'date-time',
70431
70467
  nullable: true,
@@ -70538,6 +70574,11 @@ const openapi: OpenAPISpec = {
70538
70574
  nullable: true,
70539
70575
  type: 'string',
70540
70576
  },
70577
+ is_primary: {
70578
+ description:
70579
+ "Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user.",
70580
+ type: 'boolean',
70581
+ },
70541
70582
  is_resource_syncing: { type: 'boolean' },
70542
70583
  name: { nullable: true, type: 'string' },
70543
70584
  spaces: {
@@ -70570,6 +70611,7 @@ const openapi: OpenAPISpec = {
70570
70611
  required: [
70571
70612
  'sub_reservation_id',
70572
70613
  'sub_reservation_key',
70614
+ 'is_primary',
70573
70615
  'name',
70574
70616
  'starts_at',
70575
70617
  'ends_at',
@@ -70616,6 +70658,7 @@ const openapi: OpenAPISpec = {
70616
70658
  'access_methods',
70617
70659
  'spaces',
70618
70660
  'connected_account_id',
70661
+ 'customer_key',
70619
70662
  'last_automation_result',
70620
70663
  'sub_reservations',
70621
70664
  ],
@@ -71333,6 +71376,12 @@ const openapi: OpenAPISpec = {
71333
71376
  },
71334
71377
  guest_name: { nullable: true, type: 'string' },
71335
71378
  has_issued_access: { type: 'boolean' },
71379
+ is_primary: {
71380
+ description:
71381
+ "Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation.",
71382
+ nullable: true,
71383
+ type: 'boolean',
71384
+ },
71336
71385
  last_automation_result: {
71337
71386
  nullable: true,
71338
71387
  properties: {
@@ -71413,6 +71462,7 @@ const openapi: OpenAPISpec = {
71413
71462
  'last_automation_result',
71414
71463
  'parent_reservation_id',
71415
71464
  'parent_reservation_key',
71465
+ 'is_primary',
71416
71466
  ],
71417
71467
  type: 'object',
71418
71468
  },
@@ -57266,6 +57266,8 @@ export type Routes = {
57266
57266
  preferred_code?: (string | null) | undefined
57267
57267
  /** Your identifier for the sub-reservation. Must be unique within its reservation. */
57268
57268
  sub_reservation_key: string
57269
+ /** Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary. */
57270
+ is_primary?: boolean | undefined
57269
57271
  /** Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata. */
57270
57272
  custom_metadata?:
57271
57273
  | {
@@ -57771,6 +57773,8 @@ export type Routes = {
57771
57773
  preferred_code?: (string | null) | undefined
57772
57774
  /** Your identifier for the sub-reservation. Must be unique within its reservation. */
57773
57775
  sub_reservation_key: string
57776
+ /** Whether this is the reservation's primary sub-reservation, for example the room the guest stays in. Only the primary sub-reservation passes the guest's phone number to access systems that require a phone number to be unique per user. At most one sub-reservation of a reservation can be primary. If none is, the first sub-reservation in the list is primary. */
57777
+ is_primary?: boolean | undefined
57774
57778
  /** Set key:value pairs for filtering sub-reservations by custom criteria. Merged over the reservation's custom metadata. Set a key to `null` or to an empty string to remove that key from the custom metadata. */
57775
57779
  custom_metadata?:
57776
57780
  | {
@@ -119505,6 +119509,8 @@ export type Routes = {
119505
119509
  instant_key_url?: string | undefined
119506
119510
  }[]
119507
119511
  connected_account_id: string | null
119512
+ /** Key of the customer the reservation belongs to, or null when it belongs to none. */
119513
+ customer_key: string | null
119508
119514
  last_automation_result: {
119509
119515
  success: boolean
119510
119516
  rule: string
@@ -119523,10 +119529,14 @@ export type Routes = {
119523
119529
  parent_reservation_id: string | null
119524
119530
  /** Key of the parent reservation when this reservation is a sub-reservation. Its `reservation_key` is then `<parent_reservation_key>::<sub-reservation key>`. Null otherwise. */
119525
119531
  parent_reservation_key: string | null
119532
+ /** Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation. */
119533
+ is_primary: boolean | null
119526
119534
  /** Parts of the reservation that each hold their own access, for example one per room. When present, the reservation's spaces are the union of its sub-reservations' spaces. */
119527
119535
  sub_reservations: {
119528
119536
  sub_reservation_id: string
119529
119537
  sub_reservation_key: string
119538
+ /** Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user. */
119539
+ is_primary: boolean
119530
119540
  name: string | null
119531
119541
  starts_at: string | null
119532
119542
  ends_at: string | null
@@ -119618,6 +119628,8 @@ export type Routes = {
119618
119628
  name: string | null
119619
119629
  }[]
119620
119630
  connected_account_id: string | null
119631
+ /** Key of the customer the reservation belongs to, or null when it belongs to none. */
119632
+ customer_key: string | null
119621
119633
  last_automation_result: {
119622
119634
  success: boolean
119623
119635
  rule: string
@@ -119636,6 +119648,8 @@ export type Routes = {
119636
119648
  sub_reservations: {
119637
119649
  sub_reservation_id: string
119638
119650
  sub_reservation_key: string
119651
+ /** Whether this is the reservation's primary sub-reservation, the only one that passes the guest's phone number to access systems that require it to be unique per user. */
119652
+ is_primary: boolean
119639
119653
  name: string | null
119640
119654
  starts_at: string | null
119641
119655
  ends_at: string | null
@@ -120264,6 +120278,8 @@ export type Routes = {
120264
120278
  parent_reservation_id: string | null
120265
120279
  /** Key of the parent reservation when this reservation is a sub-reservation. Its `reservation_key` is then `<parent_reservation_key>::<sub-reservation key>`. Null otherwise. */
120266
120280
  parent_reservation_key: string | null
120281
+ /** Whether this sub-reservation is its reservation's primary one, the only one that passes the guest's phone number to access systems that require it to be unique per user. Null when this reservation is not a sub-reservation. */
120282
+ is_primary: boolean | null
120267
120283
  }[]
120268
120284
  }
120269
120285
  maxDuration: undefined