@seamapi/types 1.528.0 → 1.529.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.
@@ -25136,6 +25136,7 @@ declare const batch: z.ZodObject<{
25136
25136
  access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
25137
25137
  } & {
25138
25138
  event_type: z.ZodLiteral<"access_method.issued">;
25139
+ code: z.ZodOptional<z.ZodString>;
25139
25140
  }, "strip", z.ZodTypeAny, {
25140
25141
  workspace_id: string;
25141
25142
  created_at: string;
@@ -25144,6 +25145,7 @@ declare const batch: z.ZodObject<{
25144
25145
  occurred_at: string;
25145
25146
  event_type: "access_method.issued";
25146
25147
  access_grant_ids: string[];
25148
+ code?: string | undefined;
25147
25149
  access_grant_keys?: string[] | undefined;
25148
25150
  }, {
25149
25151
  workspace_id: string;
@@ -25153,6 +25155,7 @@ declare const batch: z.ZodObject<{
25153
25155
  occurred_at: string;
25154
25156
  event_type: "access_method.issued";
25155
25157
  access_grant_ids: string[];
25158
+ code?: string | undefined;
25156
25159
  access_grant_keys?: string[] | undefined;
25157
25160
  }>, z.ZodObject<{
25158
25161
  event_id: z.ZodString;
@@ -33099,6 +33102,7 @@ declare const batch: z.ZodObject<{
33099
33102
  occurred_at: string;
33100
33103
  event_type: "access_method.issued";
33101
33104
  access_grant_ids: string[];
33105
+ code?: string | undefined;
33102
33106
  access_grant_keys?: string[] | undefined;
33103
33107
  } | {
33104
33108
  workspace_id: string;
@@ -36950,6 +36954,7 @@ declare const batch: z.ZodObject<{
36950
36954
  occurred_at: string;
36951
36955
  event_type: "access_method.issued";
36952
36956
  access_grant_ids: string[];
36957
+ code?: string | undefined;
36953
36958
  access_grant_keys?: string[] | undefined;
36954
36959
  } | {
36955
36960
  workspace_id: string;
@@ -47858,6 +47863,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
47858
47863
  access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
47859
47864
  } & {
47860
47865
  event_type: z.ZodLiteral<"access_method.issued">;
47866
+ code: z.ZodOptional<z.ZodString>;
47861
47867
  }, "strip", z.ZodTypeAny, {
47862
47868
  workspace_id: string;
47863
47869
  created_at: string;
@@ -47866,6 +47872,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
47866
47872
  occurred_at: string;
47867
47873
  event_type: "access_method.issued";
47868
47874
  access_grant_ids: string[];
47875
+ code?: string | undefined;
47869
47876
  access_grant_keys?: string[] | undefined;
47870
47877
  }, {
47871
47878
  workspace_id: string;
@@ -47875,6 +47882,7 @@ declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObject<{
47875
47882
  occurred_at: string;
47876
47883
  event_type: "access_method.issued";
47877
47884
  access_grant_ids: string[];
47885
+ code?: string | undefined;
47878
47886
  access_grant_keys?: string[] | undefined;
47879
47887
  }>, z.ZodObject<{
47880
47888
  event_id: z.ZodString;
@@ -58169,6 +58177,111 @@ declare const _default: {
58169
58177
  'x-route-path': string;
58170
58178
  deprecated?: never;
58171
58179
  'x-deprecated'?: never;
58180
+ } | {
58181
+ description: string;
58182
+ properties: {
58183
+ access_grant_ids: {
58184
+ description: string;
58185
+ items: {
58186
+ format: string;
58187
+ type: string;
58188
+ };
58189
+ type: string;
58190
+ };
58191
+ access_grant_keys: {
58192
+ description: string;
58193
+ items: {
58194
+ type: string;
58195
+ };
58196
+ type: string;
58197
+ };
58198
+ access_method_id: {
58199
+ description: string;
58200
+ format: string;
58201
+ type: string;
58202
+ };
58203
+ code: {
58204
+ description: string;
58205
+ type: string;
58206
+ nullable?: never;
58207
+ };
58208
+ created_at: {
58209
+ description: string;
58210
+ format: string;
58211
+ type: string;
58212
+ };
58213
+ event_id: {
58214
+ description: string;
58215
+ format: string;
58216
+ type: string;
58217
+ };
58218
+ event_type: {
58219
+ enum: string[];
58220
+ type: string;
58221
+ };
58222
+ occurred_at: {
58223
+ description: string;
58224
+ format: string;
58225
+ type: string;
58226
+ };
58227
+ workspace_id: {
58228
+ description: string;
58229
+ format: string;
58230
+ type: string;
58231
+ };
58232
+ access_code_id?: never;
58233
+ connected_account_custom_metadata?: never;
58234
+ connected_account_id?: never;
58235
+ device_custom_metadata?: never;
58236
+ device_id?: never;
58237
+ backup_access_code_id?: never;
58238
+ access_grant_id?: never;
58239
+ acs_entrance_id?: never;
58240
+ acs_system_id?: never;
58241
+ acs_credential_id?: never;
58242
+ acs_user_id?: never;
58243
+ acs_encoder_id?: never;
58244
+ acs_access_group_id?: never;
58245
+ client_session_id?: never;
58246
+ connect_webview_id?: never;
58247
+ action_attempt_id?: never;
58248
+ action_type?: never;
58249
+ status?: never;
58250
+ error_code?: never;
58251
+ battery_level?: never;
58252
+ battery_status?: never;
58253
+ minut_metadata?: never;
58254
+ noise_level_decibels?: never;
58255
+ noise_level_nrs?: never;
58256
+ noise_threshold_id?: never;
58257
+ noise_threshold_name?: never;
58258
+ noiseaware_metadata?: never;
58259
+ method?: never;
58260
+ climate_preset_key?: never;
58261
+ is_fallback_climate_preset?: never;
58262
+ thermostat_schedule_id?: never;
58263
+ cooling_set_point_celsius?: never;
58264
+ cooling_set_point_fahrenheit?: never;
58265
+ fan_mode_setting?: never;
58266
+ heating_set_point_celsius?: never;
58267
+ heating_set_point_fahrenheit?: never;
58268
+ hvac_mode_setting?: never;
58269
+ lower_limit_celsius?: never;
58270
+ lower_limit_fahrenheit?: never;
58271
+ temperature_celsius?: never;
58272
+ temperature_fahrenheit?: never;
58273
+ upper_limit_celsius?: never;
58274
+ upper_limit_fahrenheit?: never;
58275
+ desired_temperature_celsius?: never;
58276
+ desired_temperature_fahrenheit?: never;
58277
+ device_name?: never;
58278
+ enrollment_automation_id?: never;
58279
+ };
58280
+ required: string[];
58281
+ type: string;
58282
+ 'x-route-path': string;
58283
+ deprecated?: never;
58284
+ 'x-deprecated'?: never;
58172
58285
  } | {
58173
58286
  description: string;
58174
58287
  properties: {
@@ -118856,6 +118969,8 @@ type Routes = {
118856
118969
  /** Keys of the access grants associated with this access method (if present). */
118857
118970
  access_grant_keys?: string[] | undefined;
118858
118971
  event_type: 'access_method.issued';
118972
+ /** The actual PIN code for code access methods (only present when mode is 'code'). */
118973
+ code?: string | undefined;
118859
118974
  } | {
118860
118975
  /** ID of the event. */
118861
118976
  event_id: string;
@@ -136630,6 +136745,8 @@ type Routes = {
136630
136745
  /** Keys of the access grants associated with this access method (if present). */
136631
136746
  access_grant_keys?: string[] | undefined;
136632
136747
  event_type: 'access_method.issued';
136748
+ /** The actual PIN code for code access methods (only present when mode is 'code'). */
136749
+ code?: string | undefined;
136633
136750
  } | {
136634
136751
  /** ID of the event. */
136635
136752
  event_id: string;
@@ -138524,6 +138641,8 @@ type Routes = {
138524
138641
  /** Keys of the access grants associated with this access method (if present). */
138525
138642
  access_grant_keys?: string[] | undefined;
138526
138643
  event_type: 'access_method.issued';
138644
+ /** The actual PIN code for code access methods (only present when mode is 'code'). */
138645
+ code?: string | undefined;
138527
138646
  } | {
138528
138647
  /** ID of the event. */
138529
138648
  event_id: string;
@@ -157350,6 +157469,8 @@ type Routes = {
157350
157469
  /** Keys of the access grants associated with this access method (if present). */
157351
157470
  access_grant_keys?: string[] | undefined;
157352
157471
  event_type: 'access_method.issued';
157472
+ /** The actual PIN code for code access methods (only present when mode is 'code'). */
157473
+ code?: string | undefined;
157353
157474
  } | {
157354
157475
  /** ID of the event. */
157355
157476
  event_id: string;
@@ -184602,6 +184723,8 @@ type Routes = {
184602
184723
  /** Keys of the access grants associated with this access method (if present). */
184603
184724
  access_grant_keys?: string[] | undefined;
184604
184725
  event_type: 'access_method.issued';
184726
+ /** The actual PIN code for code access methods (only present when mode is 'code'). */
184727
+ code?: string | undefined;
184605
184728
  } | {
184606
184729
  /** ID of the event. */
184607
184730
  event_id: string;
package/dist/index.cjs CHANGED
@@ -4287,7 +4287,10 @@ var access_method_event = common_event.extend({
4287
4287
  )
4288
4288
  });
4289
4289
  var access_method_issued_event = access_method_event.extend({
4290
- event_type: zod.z.literal("access_method.issued")
4290
+ event_type: zod.z.literal("access_method.issued"),
4291
+ code: zod.z.string().optional().describe(
4292
+ "The actual PIN code for code access methods (only present when mode is 'code')."
4293
+ )
4291
4294
  }).describe(`
4292
4295
  ---
4293
4296
  route_path: /access_methods
@@ -18568,6 +18571,10 @@ var openapi_default = {
18568
18571
  format: "uuid",
18569
18572
  type: "string"
18570
18573
  },
18574
+ code: {
18575
+ description: "The actual PIN code for code access methods (only present when mode is 'code').",
18576
+ type: "string"
18577
+ },
18571
18578
  created_at: {
18572
18579
  description: "Date and time at which the event was created.",
18573
18580
  format: "date-time",