@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.
@@ -34777,6 +34777,7 @@ export declare const workspaces_batch: z.ZodObject<{
34777
34777
  access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34778
34778
  } & {
34779
34779
  event_type: z.ZodLiteral<"access_method.issued">;
34780
+ code: z.ZodOptional<z.ZodString>;
34780
34781
  }, "strip", z.ZodTypeAny, {
34781
34782
  workspace_id: string;
34782
34783
  created_at: string;
@@ -34785,6 +34786,7 @@ export declare const workspaces_batch: z.ZodObject<{
34785
34786
  occurred_at: string;
34786
34787
  event_type: "access_method.issued";
34787
34788
  access_grant_ids: string[];
34789
+ code?: string | undefined;
34788
34790
  access_grant_keys?: string[] | undefined;
34789
34791
  }, {
34790
34792
  workspace_id: string;
@@ -34794,6 +34796,7 @@ export declare const workspaces_batch: z.ZodObject<{
34794
34796
  occurred_at: string;
34795
34797
  event_type: "access_method.issued";
34796
34798
  access_grant_ids: string[];
34799
+ code?: string | undefined;
34797
34800
  access_grant_keys?: string[] | undefined;
34798
34801
  }>, z.ZodObject<{
34799
34802
  event_id: z.ZodString;
@@ -42811,6 +42814,7 @@ export declare const workspaces_batch: z.ZodObject<{
42811
42814
  occurred_at: string;
42812
42815
  event_type: "access_method.issued";
42813
42816
  access_grant_ids: string[];
42817
+ code?: string | undefined;
42814
42818
  access_grant_keys?: string[] | undefined;
42815
42819
  } | {
42816
42820
  workspace_id: string;
@@ -46733,6 +46737,7 @@ export declare const workspaces_batch: z.ZodObject<{
46733
46737
  occurred_at: string;
46734
46738
  event_type: "access_method.issued";
46735
46739
  access_grant_ids: string[];
46740
+ code?: string | undefined;
46736
46741
  access_grant_keys?: string[] | undefined;
46737
46742
  } | {
46738
46743
  workspace_id: string;
@@ -63004,6 +63009,7 @@ export declare const batch: z.ZodObject<{
63004
63009
  access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
63005
63010
  } & {
63006
63011
  event_type: z.ZodLiteral<"access_method.issued">;
63012
+ code: z.ZodOptional<z.ZodString>;
63007
63013
  }, "strip", z.ZodTypeAny, {
63008
63014
  workspace_id: string;
63009
63015
  created_at: string;
@@ -63012,6 +63018,7 @@ export declare const batch: z.ZodObject<{
63012
63018
  occurred_at: string;
63013
63019
  event_type: "access_method.issued";
63014
63020
  access_grant_ids: string[];
63021
+ code?: string | undefined;
63015
63022
  access_grant_keys?: string[] | undefined;
63016
63023
  }, {
63017
63024
  workspace_id: string;
@@ -63021,6 +63028,7 @@ export declare const batch: z.ZodObject<{
63021
63028
  occurred_at: string;
63022
63029
  event_type: "access_method.issued";
63023
63030
  access_grant_ids: string[];
63031
+ code?: string | undefined;
63024
63032
  access_grant_keys?: string[] | undefined;
63025
63033
  }>, z.ZodObject<{
63026
63034
  event_id: z.ZodString;
@@ -70967,6 +70975,7 @@ export declare const batch: z.ZodObject<{
70967
70975
  occurred_at: string;
70968
70976
  event_type: "access_method.issued";
70969
70977
  access_grant_ids: string[];
70978
+ code?: string | undefined;
70970
70979
  access_grant_keys?: string[] | undefined;
70971
70980
  } | {
70972
70981
  workspace_id: string;
@@ -74818,6 +74827,7 @@ export declare const batch: z.ZodObject<{
74818
74827
  occurred_at: string;
74819
74828
  event_type: "access_method.issued";
74820
74829
  access_grant_ids: string[];
74830
+ code?: string | undefined;
74821
74831
  access_grant_keys?: string[] | undefined;
74822
74832
  } | {
74823
74833
  workspace_id: string;
@@ -10,6 +10,7 @@ export declare const access_method_issued_event: z.ZodObject<{
10
10
  access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
11
11
  } & {
12
12
  event_type: z.ZodLiteral<"access_method.issued">;
13
+ code: z.ZodOptional<z.ZodString>;
13
14
  }, "strip", z.ZodTypeAny, {
14
15
  workspace_id: string;
15
16
  created_at: string;
@@ -18,6 +19,7 @@ export declare const access_method_issued_event: z.ZodObject<{
18
19
  occurred_at: string;
19
20
  event_type: "access_method.issued";
20
21
  access_grant_ids: string[];
22
+ code?: string | undefined;
21
23
  access_grant_keys?: string[] | undefined;
22
24
  }, {
23
25
  workspace_id: string;
@@ -27,6 +29,7 @@ export declare const access_method_issued_event: z.ZodObject<{
27
29
  occurred_at: string;
28
30
  event_type: "access_method.issued";
29
31
  access_grant_ids: string[];
32
+ code?: string | undefined;
30
33
  access_grant_keys?: string[] | undefined;
31
34
  }>;
32
35
  export type AccessMethodIssuedEvent = z.infer<typeof access_method_issued_event>;
@@ -163,6 +166,7 @@ export declare const access_method_events: readonly [z.ZodObject<{
163
166
  access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
164
167
  } & {
165
168
  event_type: z.ZodLiteral<"access_method.issued">;
169
+ code: z.ZodOptional<z.ZodString>;
166
170
  }, "strip", z.ZodTypeAny, {
167
171
  workspace_id: string;
168
172
  created_at: string;
@@ -171,6 +175,7 @@ export declare const access_method_events: readonly [z.ZodObject<{
171
175
  occurred_at: string;
172
176
  event_type: "access_method.issued";
173
177
  access_grant_ids: string[];
178
+ code?: string | undefined;
174
179
  access_grant_keys?: string[] | undefined;
175
180
  }, {
176
181
  workspace_id: string;
@@ -180,6 +185,7 @@ export declare const access_method_events: readonly [z.ZodObject<{
180
185
  occurred_at: string;
181
186
  event_type: "access_method.issued";
182
187
  access_grant_ids: string[];
188
+ code?: string | undefined;
183
189
  access_grant_keys?: string[] | undefined;
184
190
  }>, z.ZodObject<{
185
191
  event_id: z.ZodString;
@@ -15,6 +15,10 @@ const access_method_event = common_event.extend({
15
15
  });
16
16
  export const access_method_issued_event = access_method_event.extend({
17
17
  event_type: z.literal('access_method.issued'),
18
+ code: z
19
+ .string()
20
+ .optional()
21
+ .describe("The actual PIN code for code access methods (only present when mode is 'code')."),
18
22
  }).describe(`
19
23
  ---
20
24
  route_path: /access_methods
@@ -1 +1 @@
1
- {"version":3,"file":"access-methods.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/access-meth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ACrD,mBAAmB,CAAC,MAAM,CAAC;IACzB,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sCAAsC,CAAC;CAC9D,CAAC,CAAC,QAAQ,CAAC;;;;;GAKX,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACpE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAC/C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACpE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAC/C,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,4BAA4B,GAAG,mBAAmB,CAAC,MAAM,CAAC;IACrE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;CAChD,CAAC,CAAC,QAAQ,CAAC;;;;;GAKT,CAAC,CAAA;AAMJ,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,0BAA0B;IAC1B,2BAA2B;IAC3B,0CAA0C;IAC1C,2BAA2B;IAC3B,4BAA4B;CACpB,CAAA"}
@@ -738,6 +738,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
738
738
  access_grant_keys: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
739
739
  } & {
740
740
  event_type: z.ZodLiteral<"access_method.issued">;
741
+ code: z.ZodOptional<z.ZodString>;
741
742
  }, "strip", z.ZodTypeAny, {
742
743
  workspace_id: string;
743
744
  created_at: string;
@@ -746,6 +747,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
746
747
  occurred_at: string;
747
748
  event_type: "access_method.issued";
748
749
  access_grant_ids: string[];
750
+ code?: string | undefined;
749
751
  access_grant_keys?: string[] | undefined;
750
752
  }, {
751
753
  workspace_id: string;
@@ -755,6 +757,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
755
757
  occurred_at: string;
756
758
  event_type: "access_method.issued";
757
759
  access_grant_ids: string[];
760
+ code?: string | undefined;
758
761
  access_grant_keys?: string[] | undefined;
759
762
  }>, z.ZodObject<{
760
763
  event_id: z.ZodString;
@@ -7540,6 +7540,111 @@ declare const _default: {
7540
7540
  'x-route-path': string;
7541
7541
  deprecated?: never;
7542
7542
  'x-deprecated'?: never;
7543
+ } | {
7544
+ description: string;
7545
+ properties: {
7546
+ access_grant_ids: {
7547
+ description: string;
7548
+ items: {
7549
+ format: string;
7550
+ type: string;
7551
+ };
7552
+ type: string;
7553
+ };
7554
+ access_grant_keys: {
7555
+ description: string;
7556
+ items: {
7557
+ type: string;
7558
+ };
7559
+ type: string;
7560
+ };
7561
+ access_method_id: {
7562
+ description: string;
7563
+ format: string;
7564
+ type: string;
7565
+ };
7566
+ code: {
7567
+ description: string;
7568
+ type: string;
7569
+ nullable?: never;
7570
+ };
7571
+ created_at: {
7572
+ description: string;
7573
+ format: string;
7574
+ type: string;
7575
+ };
7576
+ event_id: {
7577
+ description: string;
7578
+ format: string;
7579
+ type: string;
7580
+ };
7581
+ event_type: {
7582
+ enum: string[];
7583
+ type: string;
7584
+ };
7585
+ occurred_at: {
7586
+ description: string;
7587
+ format: string;
7588
+ type: string;
7589
+ };
7590
+ workspace_id: {
7591
+ description: string;
7592
+ format: string;
7593
+ type: string;
7594
+ };
7595
+ access_code_id?: never;
7596
+ connected_account_custom_metadata?: never;
7597
+ connected_account_id?: never;
7598
+ device_custom_metadata?: never;
7599
+ device_id?: never;
7600
+ backup_access_code_id?: never;
7601
+ access_grant_id?: never;
7602
+ acs_entrance_id?: never;
7603
+ acs_system_id?: never;
7604
+ acs_credential_id?: never;
7605
+ acs_user_id?: never;
7606
+ acs_encoder_id?: never;
7607
+ acs_access_group_id?: never;
7608
+ client_session_id?: never;
7609
+ connect_webview_id?: never;
7610
+ action_attempt_id?: never;
7611
+ action_type?: never;
7612
+ status?: never;
7613
+ error_code?: never;
7614
+ battery_level?: never;
7615
+ battery_status?: never;
7616
+ minut_metadata?: never;
7617
+ noise_level_decibels?: never;
7618
+ noise_level_nrs?: never;
7619
+ noise_threshold_id?: never;
7620
+ noise_threshold_name?: never;
7621
+ noiseaware_metadata?: never;
7622
+ method?: never;
7623
+ climate_preset_key?: never;
7624
+ is_fallback_climate_preset?: never;
7625
+ thermostat_schedule_id?: never;
7626
+ cooling_set_point_celsius?: never;
7627
+ cooling_set_point_fahrenheit?: never;
7628
+ fan_mode_setting?: never;
7629
+ heating_set_point_celsius?: never;
7630
+ heating_set_point_fahrenheit?: never;
7631
+ hvac_mode_setting?: never;
7632
+ lower_limit_celsius?: never;
7633
+ lower_limit_fahrenheit?: never;
7634
+ temperature_celsius?: never;
7635
+ temperature_fahrenheit?: never;
7636
+ upper_limit_celsius?: never;
7637
+ upper_limit_fahrenheit?: never;
7638
+ desired_temperature_celsius?: never;
7639
+ desired_temperature_fahrenheit?: never;
7640
+ device_name?: never;
7641
+ enrollment_automation_id?: never;
7642
+ };
7643
+ required: string[];
7644
+ type: string;
7645
+ 'x-route-path': string;
7646
+ deprecated?: never;
7647
+ 'x-deprecated'?: never;
7543
7648
  } | {
7544
7649
  description: string;
7545
7650
  properties: {
@@ -13013,6 +13013,10 @@ export default {
13013
13013
  format: 'uuid',
13014
13014
  type: 'string',
13015
13015
  },
13016
+ code: {
13017
+ description: "The actual PIN code for code access methods (only present when mode is 'code').",
13018
+ type: 'string',
13019
+ },
13016
13020
  created_at: {
13017
13021
  description: 'Date and time at which the event was created.',
13018
13022
  format: 'date-time',