@seamapi/types 1.837.0 → 1.839.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.
@@ -19021,6 +19021,23 @@ export type Routes = {
19021
19021
  acs_access_group_id: string;
19022
19022
  /** Whether the user is scheduled to be added to or removed from the access group. */
19023
19023
  variant: 'adding' | 'removing';
19024
+ } | {
19025
+ /** Date and time at which the mutation was created. */
19026
+ created_at: string;
19027
+ /** Detailed description of the mutation. */
19028
+ message: string;
19029
+ /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */
19030
+ mutation_code: 'updating_credential_assignment';
19031
+ /** Previous credential assignment. */
19032
+ from: {
19033
+ /** Previous credential ID. */
19034
+ acs_credential_id: string | null;
19035
+ };
19036
+ /** New credential assignment. */
19037
+ to: {
19038
+ /** New credential ID. */
19039
+ acs_credential_id: string | null;
19040
+ };
19024
19041
  })[] | undefined;
19025
19042
  /** The last time an internal sync job completed for this access system user. */
19026
19043
  last_successful_sync_at: string | null;
@@ -26546,6 +26563,23 @@ export type Routes = {
26546
26563
  acs_access_group_id: string;
26547
26564
  /** Whether the user is scheduled to be added to or removed from the access group. */
26548
26565
  variant: 'adding' | 'removing';
26566
+ } | {
26567
+ /** Date and time at which the mutation was created. */
26568
+ created_at: string;
26569
+ /** Detailed description of the mutation. */
26570
+ message: string;
26571
+ /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */
26572
+ mutation_code: 'updating_credential_assignment';
26573
+ /** Previous credential assignment. */
26574
+ from: {
26575
+ /** Previous credential ID. */
26576
+ acs_credential_id: string | null;
26577
+ };
26578
+ /** New credential assignment. */
26579
+ to: {
26580
+ /** New credential ID. */
26581
+ acs_credential_id: string | null;
26582
+ };
26549
26583
  })[] | undefined;
26550
26584
  /** The last time an internal sync job completed for this access system user. */
26551
26585
  last_successful_sync_at: string | null;
@@ -26821,6 +26855,23 @@ export type Routes = {
26821
26855
  acs_access_group_id: string;
26822
26856
  /** Whether the user is scheduled to be added to or removed from the access group. */
26823
26857
  variant: 'adding' | 'removing';
26858
+ } | {
26859
+ /** Date and time at which the mutation was created. */
26860
+ created_at: string;
26861
+ /** Detailed description of the mutation. */
26862
+ message: string;
26863
+ /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */
26864
+ mutation_code: 'updating_credential_assignment';
26865
+ /** Previous credential assignment. */
26866
+ from: {
26867
+ /** Previous credential ID. */
26868
+ acs_credential_id: string | null;
26869
+ };
26870
+ /** New credential assignment. */
26871
+ to: {
26872
+ /** New credential ID. */
26873
+ acs_credential_id: string | null;
26874
+ };
26824
26875
  })[] | undefined;
26825
26876
  /** The last time an internal sync job completed for this access system user. */
26826
26877
  last_successful_sync_at: string | null;
@@ -27084,6 +27135,23 @@ export type Routes = {
27084
27135
  acs_access_group_id: string;
27085
27136
  /** Whether the user is scheduled to be added to or removed from the access group. */
27086
27137
  variant: 'adding' | 'removing';
27138
+ } | {
27139
+ /** Date and time at which the mutation was created. */
27140
+ created_at: string;
27141
+ /** Detailed description of the mutation. */
27142
+ message: string;
27143
+ /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */
27144
+ mutation_code: 'updating_credential_assignment';
27145
+ /** Previous credential assignment. */
27146
+ from: {
27147
+ /** Previous credential ID. */
27148
+ acs_credential_id: string | null;
27149
+ };
27150
+ /** New credential assignment. */
27151
+ to: {
27152
+ /** New credential ID. */
27153
+ acs_credential_id: string | null;
27154
+ };
27087
27155
  })[] | undefined;
27088
27156
  /** The last time an internal sync job completed for this access system user. */
27089
27157
  last_successful_sync_at: string | null;
@@ -27560,6 +27628,23 @@ export type Routes = {
27560
27628
  acs_access_group_id: string;
27561
27629
  /** Whether the user is scheduled to be added to or removed from the access group. */
27562
27630
  variant: 'adding' | 'removing';
27631
+ } | {
27632
+ /** Date and time at which the mutation was created. */
27633
+ created_at: string;
27634
+ /** Detailed description of the mutation. */
27635
+ message: string;
27636
+ /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */
27637
+ mutation_code: 'updating_credential_assignment';
27638
+ /** Previous credential assignment. */
27639
+ from: {
27640
+ /** Previous credential ID. */
27641
+ acs_credential_id: string | null;
27642
+ };
27643
+ /** New credential assignment. */
27644
+ to: {
27645
+ /** New credential ID. */
27646
+ acs_credential_id: string | null;
27647
+ };
27563
27648
  })[] | undefined;
27564
27649
  /** The last time an internal sync job completed for this access system user. */
27565
27650
  last_successful_sync_at: string | null;
@@ -27819,6 +27904,23 @@ export type Routes = {
27819
27904
  acs_access_group_id: string;
27820
27905
  /** Whether the user is scheduled to be added to or removed from the access group. */
27821
27906
  variant: 'adding' | 'removing';
27907
+ } | {
27908
+ /** Date and time at which the mutation was created. */
27909
+ created_at: string;
27910
+ /** Detailed description of the mutation. */
27911
+ message: string;
27912
+ /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */
27913
+ mutation_code: 'updating_credential_assignment';
27914
+ /** Previous credential assignment. */
27915
+ from: {
27916
+ /** Previous credential ID. */
27917
+ acs_credential_id: string | null;
27918
+ };
27919
+ /** New credential assignment. */
27920
+ to: {
27921
+ /** New credential ID. */
27922
+ acs_credential_id: string | null;
27923
+ };
27822
27924
  })[] | undefined;
27823
27925
  /** The last time an internal sync job completed for this access system user. */
27824
27926
  last_successful_sync_at: string | null;
@@ -67910,6 +68012,8 @@ export type Routes = {
67910
68012
  device_ids?: string[] | undefined;
67911
68013
  /** IDs of the entrances that you want to add to the new space. */
67912
68014
  acs_entrance_ids?: string[] | undefined;
68015
+ /** IDs of connected accounts (third-party accounts) to associate with the new space. Persisted on seam.location_third_party_account so the UI can show which provider account a space came from. */
68016
+ connected_account_ids?: string[] | undefined;
67913
68017
  /** Space key of the parent space for this space. */
67914
68018
  parent_space_key?: string | undefined;
67915
68019
  /** Name of the parent space for this space. */
@@ -68989,6 +69093,7 @@ export type Routes = {
68989
69093
  needs_review?: boolean | undefined;
68990
69094
  is_draft?: boolean | undefined;
68991
69095
  is_common_area?: boolean | undefined;
69096
+ connected_account_ids: string[];
68992
69097
  }[];
68993
69098
  };
68994
69099
  maxDuration: undefined;
@@ -69051,6 +69156,8 @@ export type Routes = {
69051
69156
  device_ids?: string[] | undefined;
69052
69157
  /** IDs of the entrances that you want to add to the new space. */
69053
69158
  acs_entrance_ids?: string[] | undefined;
69159
+ /** IDs of connected accounts to associate with the new space. Persisted on seam.location_third_party_account so the UI can show which provider account(s) a space came from. */
69160
+ connected_account_ids?: string[] | undefined;
69054
69161
  /** Customer key for which you want to create the space. */
69055
69162
  customer_key?: string | undefined;
69056
69163
  /** Reservation/stay-related defaults for the space. */
@@ -91664,6 +91771,23 @@ export type Routes = {
91664
91771
  acs_access_group_id: string;
91665
91772
  /** Whether the user is scheduled to be added to or removed from the access group. */
91666
91773
  variant: 'adding' | 'removing';
91774
+ } | {
91775
+ /** Date and time at which the mutation was created. */
91776
+ created_at: string;
91777
+ /** Detailed description of the mutation. */
91778
+ message: string;
91779
+ /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */
91780
+ mutation_code: 'updating_credential_assignment';
91781
+ /** Previous credential assignment. */
91782
+ from: {
91783
+ /** Previous credential ID. */
91784
+ acs_credential_id: string | null;
91785
+ };
91786
+ /** New credential assignment. */
91787
+ to: {
91788
+ /** New credential ID. */
91789
+ acs_credential_id: string | null;
91790
+ };
91667
91791
  })[] | undefined;
91668
91792
  /** The last time an internal sync job completed for this access system user. */
91669
91793
  last_successful_sync_at: string | null;
@@ -94097,6 +94221,23 @@ export type Routes = {
94097
94221
  acs_access_group_id: string;
94098
94222
  /** Whether the user is scheduled to be added to or removed from the access group. */
94099
94223
  variant: 'adding' | 'removing';
94224
+ } | {
94225
+ /** Date and time at which the mutation was created. */
94226
+ created_at: string;
94227
+ /** Detailed description of the mutation. */
94228
+ message: string;
94229
+ /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */
94230
+ mutation_code: 'updating_credential_assignment';
94231
+ /** Previous credential assignment. */
94232
+ from: {
94233
+ /** Previous credential ID. */
94234
+ acs_credential_id: string | null;
94235
+ };
94236
+ /** New credential assignment. */
94237
+ to: {
94238
+ /** New credential ID. */
94239
+ acs_credential_id: string | null;
94240
+ };
94100
94241
  })[] | undefined;
94101
94242
  /** The last time an internal sync job completed for this access system user. */
94102
94243
  last_successful_sync_at: string | null;
@@ -95867,6 +96008,23 @@ export type Routes = {
95867
96008
  acs_access_group_id: string;
95868
96009
  /** Whether the user is scheduled to be added to or removed from the access group. */
95869
96010
  variant: 'adding' | 'removing';
96011
+ } | {
96012
+ /** Date and time at which the mutation was created. */
96013
+ created_at: string;
96014
+ /** Detailed description of the mutation. */
96015
+ message: string;
96016
+ /** Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system. */
96017
+ mutation_code: 'updating_credential_assignment';
96018
+ /** Previous credential assignment. */
96019
+ from: {
96020
+ /** Previous credential ID. */
96021
+ acs_credential_id: string | null;
96022
+ };
96023
+ /** New credential assignment. */
96024
+ to: {
96025
+ /** New credential ID. */
96026
+ acs_credential_id: string | null;
96027
+ };
95870
96028
  })[] | undefined;
95871
96029
  /** The last time an internal sync job completed for this access system user. */
95872
96030
  last_successful_sync_at: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.837.0",
3
+ "version": "1.839.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -32,9 +32,31 @@ const deleting = common_pending_mutation
32
32
  'Seam is in the process of pushing a credential deletion to the integrated access system.',
33
33
  )
34
34
 
35
+ const updating_user_assignment = common_pending_mutation
36
+ .extend({
37
+ mutation_code: z
38
+ .literal('updating_user_assignment')
39
+ .describe(
40
+ 'Mutation code to indicate that Seam is in the process of assigning or unassigning the credential to a user on the integrated access system.',
41
+ ),
42
+ from: z
43
+ .object({
44
+ acs_user_id: z.string().uuid().nullable().describe('Previous user ID.'),
45
+ })
46
+ .describe('Previous user assignment.'),
47
+ to: z
48
+ .object({
49
+ acs_user_id: z.string().uuid().nullable().describe('New user ID.'),
50
+ })
51
+ .describe('New user assignment.'),
52
+ })
53
+ .describe(
54
+ 'Seam is in the process of assigning or unassigning the credential to a user on the integrated access system.',
55
+ )
56
+
35
57
  export const acs_credential_pending_mutations = z.discriminatedUnion(
36
58
  'mutation_code',
37
- [creating, deleting],
59
+ [creating, deleting, updating_user_assignment],
38
60
  )
39
61
 
40
62
  export type AcsCredentialPendingMutation = z.infer<
@@ -44,6 +66,7 @@ export type AcsCredentialPendingMutation = z.infer<
44
66
  const _acs_credential_pending_mutations_map = z.object({
45
67
  creating: creating.optional().nullable(),
46
68
  deleting: deleting.optional().nullable(),
69
+ updating_user_assignment: updating_user_assignment.optional().nullable(),
47
70
  })
48
71
 
49
72
  export type AcsCredentialPendingMutationsMap = z.infer<
@@ -179,6 +179,36 @@ const deferring_group_membership_update_mutation = common_pending_mutation
179
179
  'A scheduled access group membership change is pending for this user.',
180
180
  )
181
181
 
182
+ const updating_credential_assignment_mutation = common_pending_mutation
183
+ .extend({
184
+ mutation_code: z
185
+ .literal('updating_credential_assignment')
186
+ .describe(
187
+ 'Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.',
188
+ ),
189
+ from: z
190
+ .object({
191
+ acs_credential_id: z
192
+ .string()
193
+ .uuid()
194
+ .nullable()
195
+ .describe('Previous credential ID.'),
196
+ })
197
+ .describe('Previous credential assignment.'),
198
+ to: z
199
+ .object({
200
+ acs_credential_id: z
201
+ .string()
202
+ .uuid()
203
+ .nullable()
204
+ .describe('New credential ID.'),
205
+ })
206
+ .describe('New credential assignment.'),
207
+ })
208
+ .describe(
209
+ 'Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.',
210
+ )
211
+
182
212
  export const acs_user_pending_mutations = z.discriminatedUnion(
183
213
  'mutation_code',
184
214
  [
@@ -190,6 +220,7 @@ export const acs_user_pending_mutations = z.discriminatedUnion(
190
220
  updating_suspension_state_mutation,
191
221
  updating_group_membership_mutation,
192
222
  deferring_group_membership_update_mutation,
223
+ updating_credential_assignment_mutation,
193
224
  ],
194
225
  )
195
226
 
@@ -210,6 +241,10 @@ const _acs_user_pending_mutations_map = z.object({
210
241
  .record(z.string().uuid(), deferring_group_membership_update_mutation)
211
242
  .optional()
212
243
  .nullable(),
244
+ updating_credential_assignment: z
245
+ .record(z.string().uuid(), updating_credential_assignment_mutation)
246
+ .optional()
247
+ .nullable(),
213
248
  updating_suspension_state: updating_suspension_state_mutation
214
249
  .optional()
215
250
  .nullable(),
@@ -5716,6 +5716,62 @@ const openapi: OpenAPISpec = {
5716
5716
  ],
5717
5717
  type: 'object',
5718
5718
  },
5719
+ {
5720
+ description:
5721
+ 'Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.',
5722
+ properties: {
5723
+ created_at: {
5724
+ description:
5725
+ 'Date and time at which the mutation was created.',
5726
+ format: 'date-time',
5727
+ type: 'string',
5728
+ },
5729
+ from: {
5730
+ description: 'Previous credential assignment.',
5731
+ properties: {
5732
+ acs_credential_id: {
5733
+ description: 'Previous credential ID.',
5734
+ format: 'uuid',
5735
+ nullable: true,
5736
+ type: 'string',
5737
+ },
5738
+ },
5739
+ required: ['acs_credential_id'],
5740
+ type: 'object',
5741
+ },
5742
+ message: {
5743
+ description: 'Detailed description of the mutation.',
5744
+ type: 'string',
5745
+ },
5746
+ mutation_code: {
5747
+ description:
5748
+ 'Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.',
5749
+ enum: ['updating_credential_assignment'],
5750
+ type: 'string',
5751
+ },
5752
+ to: {
5753
+ description: 'New credential assignment.',
5754
+ properties: {
5755
+ acs_credential_id: {
5756
+ description: 'New credential ID.',
5757
+ format: 'uuid',
5758
+ nullable: true,
5759
+ type: 'string',
5760
+ },
5761
+ },
5762
+ required: ['acs_credential_id'],
5763
+ type: 'object',
5764
+ },
5765
+ },
5766
+ required: [
5767
+ 'created_at',
5768
+ 'message',
5769
+ 'mutation_code',
5770
+ 'from',
5771
+ 'to',
5772
+ ],
5773
+ type: 'object',
5774
+ },
5719
5775
  ],
5720
5776
  },
5721
5777
  type: 'array',
@@ -29801,6 +29857,62 @@ const openapi: OpenAPISpec = {
29801
29857
  ],
29802
29858
  type: 'object',
29803
29859
  },
29860
+ {
29861
+ description:
29862
+ 'Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.',
29863
+ properties: {
29864
+ created_at: {
29865
+ description:
29866
+ 'Date and time at which the mutation was created.',
29867
+ format: 'date-time',
29868
+ type: 'string',
29869
+ },
29870
+ from: {
29871
+ description: 'Previous credential assignment.',
29872
+ properties: {
29873
+ acs_credential_id: {
29874
+ description: 'Previous credential ID.',
29875
+ format: 'uuid',
29876
+ nullable: true,
29877
+ type: 'string',
29878
+ },
29879
+ },
29880
+ required: ['acs_credential_id'],
29881
+ type: 'object',
29882
+ },
29883
+ message: {
29884
+ description: 'Detailed description of the mutation.',
29885
+ type: 'string',
29886
+ },
29887
+ mutation_code: {
29888
+ description:
29889
+ 'Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.',
29890
+ enum: ['updating_credential_assignment'],
29891
+ type: 'string',
29892
+ },
29893
+ to: {
29894
+ description: 'New credential assignment.',
29895
+ properties: {
29896
+ acs_credential_id: {
29897
+ description: 'New credential ID.',
29898
+ format: 'uuid',
29899
+ nullable: true,
29900
+ type: 'string',
29901
+ },
29902
+ },
29903
+ required: ['acs_credential_id'],
29904
+ type: 'object',
29905
+ },
29906
+ },
29907
+ required: [
29908
+ 'created_at',
29909
+ 'message',
29910
+ 'mutation_code',
29911
+ 'from',
29912
+ 'to',
29913
+ ],
29914
+ type: 'object',
29915
+ },
29804
29916
  ],
29805
29917
  },
29806
29918
  type: 'array',
@@ -71913,6 +72025,12 @@ const openapi: OpenAPISpec = {
71913
72025
  items: { format: 'uuid', type: 'string' },
71914
72026
  type: 'array',
71915
72027
  },
72028
+ connected_account_ids: {
72029
+ description:
72030
+ 'IDs of connected accounts (third-party accounts) to associate with the new space. Persisted on seam.location_third_party_account so the UI can show which provider account a space came from.',
72031
+ items: { format: 'uuid', type: 'string' },
72032
+ type: 'array',
72033
+ },
71916
72034
  device_ids: {
71917
72035
  description:
71918
72036
  'IDs of the devices that you want to add to the new space.',
@@ -73519,6 +73637,10 @@ const openapi: OpenAPISpec = {
73519
73637
  },
73520
73638
  type: 'array',
73521
73639
  },
73640
+ connected_account_ids: {
73641
+ items: { format: 'uuid', type: 'string' },
73642
+ type: 'array',
73643
+ },
73522
73644
  devices: {
73523
73645
  items: {
73524
73646
  properties: {
@@ -73552,6 +73674,7 @@ const openapi: OpenAPISpec = {
73552
73674
  'partner_resource_key',
73553
73675
  'devices',
73554
73676
  'acs_entrances',
73677
+ 'connected_account_ids',
73555
73678
  ],
73556
73679
  type: 'object',
73557
73680
  },
@@ -73649,6 +73772,10 @@ const openapi: OpenAPISpec = {
73649
73772
  },
73650
73773
  type: 'array',
73651
73774
  },
73775
+ connected_account_ids: {
73776
+ items: { format: 'uuid', type: 'string' },
73777
+ type: 'array',
73778
+ },
73652
73779
  devices: {
73653
73780
  items: {
73654
73781
  properties: {
@@ -73682,6 +73809,7 @@ const openapi: OpenAPISpec = {
73682
73809
  'partner_resource_key',
73683
73810
  'devices',
73684
73811
  'acs_entrances',
73812
+ 'connected_account_ids',
73685
73813
  ],
73686
73814
  type: 'object',
73687
73815
  },
@@ -74084,6 +74212,12 @@ const openapi: OpenAPISpec = {
74084
74212
  items: { format: 'uuid', type: 'string' },
74085
74213
  type: 'array',
74086
74214
  },
74215
+ connected_account_ids: {
74216
+ description:
74217
+ 'IDs of connected accounts to associate with the new space. Persisted on seam.location_third_party_account so the UI can show which provider account(s) a space came from.',
74218
+ items: { format: 'uuid', type: 'string' },
74219
+ type: 'array',
74220
+ },
74087
74221
  customer_data: {
74088
74222
  description:
74089
74223
  'Reservation/stay-related defaults for the space.',