@seamapi/types 1.792.0 → 1.794.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.
package/dist/connect.cjs CHANGED
@@ -2126,6 +2126,79 @@ var unmanaged_device = device.pick({
2126
2126
  ---
2127
2127
  Represents an [unmanaged device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices). An unmanaged device has a limited set of visible properties and a subset of supported events. You cannot control an unmanaged device. Any [access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes/migrating-existing-access-codes) on an unmanaged device are unmanaged. To control an unmanaged device with Seam, [convert it to a managed device](https://docs.seam.co/latest/core-concepts/devices/managed-and-unmanaged-devices#convert-an-unmanaged-device-to-managed).
2128
2128
  `);
2129
+ var common_pending_mutation = zod.z.object({
2130
+ created_at: zod.z.string().datetime().describe("Date and time at which the mutation was created."),
2131
+ message: zod.z.string().describe("Detailed description of the mutation.")
2132
+ });
2133
+ var creating = common_pending_mutation.extend({
2134
+ mutation_code: zod.z.literal("creating").describe(
2135
+ "Mutation code to indicate that Seam is in the process of setting an access code on the device."
2136
+ )
2137
+ }).describe("Seam is in the process of setting an access code on the device.");
2138
+ var deleting = common_pending_mutation.extend({
2139
+ mutation_code: zod.z.literal("deleting").describe(
2140
+ "Mutation code to indicate that Seam is in the process of removing an access code from the device."
2141
+ )
2142
+ }).describe(
2143
+ "Seam is in the process of removing an access code from the device."
2144
+ );
2145
+ var updating_code = common_pending_mutation.extend({
2146
+ mutation_code: zod.z.literal("updating_code").describe(
2147
+ "Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device."
2148
+ ),
2149
+ from: zod.z.object({
2150
+ code: zod.z.string().nullable().describe("Previous PIN code.")
2151
+ }).describe("Previous code configuration."),
2152
+ to: zod.z.object({
2153
+ code: zod.z.string().nullable().describe("New PIN code.")
2154
+ }).describe("New code configuration.")
2155
+ }).describe(
2156
+ "Seam is in the process of pushing an updated PIN code to the device."
2157
+ );
2158
+ var updating_name = common_pending_mutation.extend({
2159
+ mutation_code: zod.z.literal("updating_name").describe(
2160
+ "Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device."
2161
+ ),
2162
+ from: zod.z.object({
2163
+ name: zod.z.string().nullable().describe("Previous access code name.")
2164
+ }).describe("Previous name configuration."),
2165
+ to: zod.z.object({
2166
+ name: zod.z.string().nullable().describe("New access code name.")
2167
+ }).describe("New name configuration.")
2168
+ }).describe(
2169
+ "Seam is in the process of pushing an updated access code name to the device."
2170
+ );
2171
+ var updating_time_frame = common_pending_mutation.extend({
2172
+ mutation_code: zod.z.literal("updating_time_frame").describe(
2173
+ "Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device."
2174
+ ),
2175
+ from: zod.z.object({
2176
+ starts_at: zod.z.string().datetime().nullable().describe("Previous start time for the access code."),
2177
+ ends_at: zod.z.string().datetime().nullable().describe("Previous end time for the access code.")
2178
+ }).describe("Previous time frame configuration."),
2179
+ to: zod.z.object({
2180
+ starts_at: zod.z.string().datetime().nullable().describe("New start time for the access code."),
2181
+ ends_at: zod.z.string().datetime().nullable().describe("New end time for the access code.")
2182
+ }).describe("New time frame configuration.")
2183
+ }).describe(
2184
+ "Seam is in the process of pushing an updated time frame to the device."
2185
+ );
2186
+ var access_code_pending_mutations = zod.z.discriminatedUnion(
2187
+ "mutation_code",
2188
+ [creating, deleting, updating_code, updating_name, updating_time_frame]
2189
+ );
2190
+ var internal_recreate_fields = zod.z.object({
2191
+ must_be_recreated_on_device: zod.z.boolean().optional(),
2192
+ is_being_removed: zod.z.boolean().optional(),
2193
+ is_being_created: zod.z.boolean().optional()
2194
+ });
2195
+ zod.z.object({
2196
+ creating: creating.optional().nullable(),
2197
+ deleting: deleting.optional().nullable(),
2198
+ updating_code: updating_code.merge(internal_recreate_fields).optional().nullable(),
2199
+ updating_name: updating_name.merge(internal_recreate_fields).optional().nullable(),
2200
+ updating_time_frame: updating_time_frame.merge(internal_recreate_fields).optional().nullable()
2201
+ });
2129
2202
 
2130
2203
  // src/lib/seam/connect/models/access-codes/managed-access-code.ts
2131
2204
  var common_access_code_error = zod.z.object({
@@ -2480,6 +2553,9 @@ var access_code = zod.z.object({
2480
2553
  ),
2481
2554
  dormakaba_oracode_metadata: dormakaba_oracode_access_code_metadata.nullable().optional().describe(
2482
2555
  "Metadata for a dormakaba Oracode managed access code. Only present for access codes from dormakaba Oracode devices."
2556
+ ),
2557
+ pending_mutations: zod.z.array(access_code_pending_mutations).describe(
2558
+ "Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device."
2483
2559
  )
2484
2560
  }).describe(`
2485
2561
  ---
@@ -2530,11 +2606,11 @@ var unmanaged_access_code = access_code.pick({
2530
2606
 
2531
2607
  - [Kwikset](https://docs.seam.co/latest/device-and-system-integration-guides/kwikset-locks)
2532
2608
  `);
2533
- var common_pending_mutation = zod.z.object({
2609
+ var common_pending_mutation2 = zod.z.object({
2534
2610
  created_at: zod.z.string().datetime().describe("Date and time at which the mutation was created."),
2535
2611
  message: zod.z.string().describe("Detailed description of the mutation.")
2536
2612
  });
2537
- var updating_spaces_mutation = common_pending_mutation.extend({
2613
+ var updating_spaces_mutation = common_pending_mutation2.extend({
2538
2614
  mutation_code: zod.z.literal("updating_spaces").describe(
2539
2615
  "Mutation code to indicate that Seam is in the process of updating the spaces (devices) associated with this access grant."
2540
2616
  ),
@@ -2548,7 +2624,7 @@ var updating_spaces_mutation = common_pending_mutation.extend({
2548
2624
  }).describe(
2549
2625
  "Seam is in the process of updating the devices/spaces associated with this access grant."
2550
2626
  );
2551
- var updating_access_times_mutation = common_pending_mutation.extend({
2627
+ var updating_access_times_mutation = common_pending_mutation2.extend({
2552
2628
  mutation_code: zod.z.literal("updating_access_times").describe(
2553
2629
  "Mutation code to indicate that Seam is in the process of updating the access times for this access grant."
2554
2630
  ),
@@ -2766,11 +2842,11 @@ zod.z.object({
2766
2842
  updating_access_times: updating_access_times_warning.optional().nullable(),
2767
2843
  pulled_backup_access_code: pulled_backup_access_code_warning.optional().nullable()
2768
2844
  });
2769
- var common_pending_mutation2 = zod.z.object({
2845
+ var common_pending_mutation3 = zod.z.object({
2770
2846
  created_at: zod.z.string().datetime().describe("Date and time at which the mutation was created."),
2771
2847
  message: zod.z.string().describe("Detailed description of the mutation.")
2772
2848
  });
2773
- var provisioning_access_mutation = common_pending_mutation2.extend({
2849
+ var provisioning_access_mutation = common_pending_mutation3.extend({
2774
2850
  mutation_code: zod.z.literal("provisioning_access").describe(
2775
2851
  "Mutation code to indicate that Seam is in the process of provisioning access for this access method on new devices."
2776
2852
  ),
@@ -2783,7 +2859,7 @@ var provisioning_access_mutation = common_pending_mutation2.extend({
2783
2859
  }).describe(
2784
2860
  "Seam is in the process of provisioning access for this access method on new devices."
2785
2861
  );
2786
- var revoking_access_mutation = common_pending_mutation2.extend({
2862
+ var revoking_access_mutation = common_pending_mutation3.extend({
2787
2863
  mutation_code: zod.z.literal("revoking_access").describe(
2788
2864
  "Mutation code to indicate that Seam is in the process of revoking access for this access method from devices."
2789
2865
  ),
@@ -2796,7 +2872,7 @@ var revoking_access_mutation = common_pending_mutation2.extend({
2796
2872
  }).describe(
2797
2873
  "Seam is in the process of revoking access for this access method from devices."
2798
2874
  );
2799
- var updating_access_times_mutation2 = common_pending_mutation2.extend({
2875
+ var updating_access_times_mutation2 = common_pending_mutation3.extend({
2800
2876
  mutation_code: zod.z.literal("updating_access_times").describe(
2801
2877
  "Mutation code to indicate that Seam is in the process of updating the access times for this access method."
2802
2878
  ),
@@ -2811,7 +2887,7 @@ var updating_access_times_mutation2 = common_pending_mutation2.extend({
2811
2887
  }).describe(
2812
2888
  "Seam is in the process of updating the access times for this access method."
2813
2889
  );
2814
- var notifying_connector_mutation = common_pending_mutation2.extend({
2890
+ var notifying_connector_mutation = common_pending_mutation3.extend({
2815
2891
  mutation_code: zod.z.literal("notifying_connector").describe(
2816
2892
  "Mutation code to indicate that Seam is in the process of notifying the connector about this access method's issuance."
2817
2893
  ),
@@ -2892,18 +2968,18 @@ var start_end_schedule = zod.z.object({
2892
2968
  "Schedule with starting and ending dates and times, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format."
2893
2969
  );
2894
2970
  var schedule = start_end_schedule;
2895
- var common_pending_mutation3 = zod.z.object({
2971
+ var common_pending_mutation4 = zod.z.object({
2896
2972
  created_at: zod.z.string().datetime().describe("Date and time at which the mutation was created."),
2897
2973
  message: zod.z.string().describe("Detailed description of the mutation.")
2898
2974
  });
2899
- var creating = common_pending_mutation3.extend({
2975
+ var creating2 = common_pending_mutation4.extend({
2900
2976
  mutation_code: zod.z.literal("creating").describe(
2901
2977
  "Mutation code to indicate that Seam is in the process of pushing an access group creation to the integrated access system."
2902
2978
  )
2903
2979
  }).describe(
2904
2980
  "Seam is in the process of pushing an access group creation to the integrated access system."
2905
2981
  );
2906
- var deleting = common_pending_mutation3.extend({
2982
+ var deleting2 = common_pending_mutation4.extend({
2907
2983
  mutation_code: zod.z.literal("deleting").describe(
2908
2984
  "Mutation code to indicate that Seam is in the process of pushing an access group deletion to the integrated access system."
2909
2985
  )
@@ -2913,7 +2989,7 @@ var deleting = common_pending_mutation3.extend({
2913
2989
  var acs_access_group_info = zod.z.object({
2914
2990
  name: zod.z.string().nullable().describe("Name of the access group.")
2915
2991
  });
2916
- var updating_group_information = common_pending_mutation3.extend({
2992
+ var updating_group_information = common_pending_mutation4.extend({
2917
2993
  mutation_code: zod.z.literal("updating_group_information").describe(
2918
2994
  "Mutation code to indicate that Seam is in the process of pushing updated access group information to the integrated access system."
2919
2995
  ),
@@ -2926,7 +3002,7 @@ var access_schedule = zod.z.object({
2926
3002
  starts_at: zod.z.string().datetime().nullable().describe("Starting time for the access schedule."),
2927
3003
  ends_at: zod.z.string().datetime().nullable().describe("Ending time for the access schedule.")
2928
3004
  }).describe("Access schedule involved in the mutation.");
2929
- var updating_access_schedule = common_pending_mutation3.extend({
3005
+ var updating_access_schedule = common_pending_mutation4.extend({
2930
3006
  mutation_code: zod.z.literal("updating_access_schedule").describe(
2931
3007
  "Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system."
2932
3008
  ),
@@ -2935,7 +3011,7 @@ var updating_access_schedule = common_pending_mutation3.extend({
2935
3011
  }).describe(
2936
3012
  "Seam is in the process of pushing an access schedule update to the integrated access system."
2937
3013
  );
2938
- var updating_user_membership = common_pending_mutation3.extend({
3014
+ var updating_user_membership = common_pending_mutation4.extend({
2939
3015
  mutation_code: zod.z.literal("updating_user_membership").describe(
2940
3016
  "Mutation code to indicate that Seam is in the process of pushing updated user membership information to the integrated access system."
2941
3017
  ),
@@ -2948,7 +3024,7 @@ var updating_user_membership = common_pending_mutation3.extend({
2948
3024
  }).describe(
2949
3025
  "Seam is in the process of pushing a user membership update to the integrated access system."
2950
3026
  );
2951
- var updating_entrance_membership = common_pending_mutation3.extend({
3027
+ var updating_entrance_membership = common_pending_mutation4.extend({
2952
3028
  mutation_code: zod.z.literal("updating_entrance_membership").describe(
2953
3029
  "Mutation code to indicate that Seam is in the process of pushing updated entrance membership information to the integrated access system."
2954
3030
  ),
@@ -2961,14 +3037,14 @@ var updating_entrance_membership = common_pending_mutation3.extend({
2961
3037
  }).describe(
2962
3038
  "Seam is in the process of pushing an entrance membership update to the integrated access system."
2963
3039
  );
2964
- var deferring_deletion = common_pending_mutation3.extend({
3040
+ var deferring_deletion = common_pending_mutation4.extend({
2965
3041
  mutation_code: zod.z.literal("deferring_deletion").describe(
2966
3042
  "Mutation code to indicate that this access group is scheduled for automatic deletion when its access window expires."
2967
3043
  )
2968
3044
  }).describe(
2969
3045
  "This access group is scheduled for automatic deletion when its access window expires."
2970
3046
  );
2971
- var deferring_user_membership_update = common_pending_mutation3.extend({
3047
+ var deferring_user_membership_update = common_pending_mutation4.extend({
2972
3048
  mutation_code: zod.z.literal("deferring_user_membership_update").describe(
2973
3049
  "Mutation code to indicate that a scheduled user membership change is pending for this access group."
2974
3050
  ),
@@ -2982,8 +3058,8 @@ var deferring_user_membership_update = common_pending_mutation3.extend({
2982
3058
  var acs_access_group_pending_mutations = zod.z.discriminatedUnion(
2983
3059
  "mutation_code",
2984
3060
  [
2985
- creating,
2986
- deleting,
3061
+ creating2,
3062
+ deleting2,
2987
3063
  deferring_deletion,
2988
3064
  updating_group_information,
2989
3065
  updating_access_schedule,
@@ -2993,8 +3069,8 @@ var acs_access_group_pending_mutations = zod.z.discriminatedUnion(
2993
3069
  ]
2994
3070
  );
2995
3071
  zod.z.object({
2996
- creating: creating.optional().nullable(),
2997
- deleting: deleting.optional().nullable(),
3072
+ creating: creating2.optional().nullable(),
3073
+ deleting: deleting2.optional().nullable(),
2998
3074
  deferring_deletion: deferring_deletion.optional().nullable(),
2999
3075
  updating_name: updating_group_information.optional().nullable(),
3000
3076
  updating_access_schedule: updating_access_schedule.optional().nullable(),
@@ -3812,25 +3888,25 @@ var phone_number = zod.z.coerce.string().trim().refine(
3812
3888
  message: "Phone number must be in E.164 format: +14155552671"
3813
3889
  }
3814
3890
  );
3815
- var common_pending_mutation4 = zod.z.object({
3891
+ var common_pending_mutation5 = zod.z.object({
3816
3892
  created_at: zod.z.string().datetime().describe("Date and time at which the mutation was created."),
3817
3893
  message: zod.z.string().describe("Detailed description of the mutation.")
3818
3894
  });
3819
- var creating2 = common_pending_mutation4.extend({
3895
+ var creating3 = common_pending_mutation5.extend({
3820
3896
  mutation_code: zod.z.literal("creating").describe(
3821
3897
  "Mutation code to indicate that Seam is in the process of pushing a user creation to the integrated access system."
3822
3898
  )
3823
3899
  }).describe(
3824
3900
  "Seam is in the process of pushing a user creation to the integrated access system."
3825
3901
  );
3826
- var deleting2 = common_pending_mutation4.extend({
3902
+ var deleting3 = common_pending_mutation5.extend({
3827
3903
  mutation_code: zod.z.literal("deleting").describe(
3828
3904
  "Mutation code to indicate that Seam is in the process of pushing a user deletion to the integrated access system."
3829
3905
  )
3830
3906
  }).describe(
3831
3907
  "Seam is in the process of pushing a user deletion to the integrated access system."
3832
3908
  );
3833
- var deferring_creation = common_pending_mutation4.extend({
3909
+ var deferring_creation = common_pending_mutation5.extend({
3834
3910
  mutation_code: zod.z.literal("deferring_creation").describe(
3835
3911
  "Mutation code to indicate that Seam is intentionally deferring the creation of the user on the access control system until the appropriate time."
3836
3912
  ),
@@ -3843,7 +3919,7 @@ var acs_user_info = zod.z.object({
3843
3919
  full_name: zod.z.string().nullable().describe("Full name of the access system user."),
3844
3920
  phone_number: phone_number.optional().nullable().describe("Phone number of the access system user.")
3845
3921
  });
3846
- var updating_user_information_mutation = common_pending_mutation4.extend({
3922
+ var updating_user_information_mutation = common_pending_mutation5.extend({
3847
3923
  mutation_code: zod.z.literal("updating_user_information").describe(
3848
3924
  "Mutation code to indicate that Seam is in the process of pushing updated user information to the integrated access system."
3849
3925
  ),
@@ -3854,7 +3930,7 @@ var access_schedule2 = zod.z.object({
3854
3930
  starts_at: zod.z.string().datetime().nullable().describe("Starting time for the access schedule."),
3855
3931
  ends_at: zod.z.string().datetime().nullable().describe("Starting time for the access schedule.")
3856
3932
  }).describe("Access schedule involved in the mutation.");
3857
- var updating_access_schedule_mutation = common_pending_mutation4.extend({
3933
+ var updating_access_schedule_mutation = common_pending_mutation5.extend({
3858
3934
  mutation_code: zod.z.literal("updating_access_schedule").describe(
3859
3935
  "Mutation code to indicate that Seam is in the process of pushing updated access schedule information to the integrated access system."
3860
3936
  ),
@@ -3863,7 +3939,7 @@ var updating_access_schedule_mutation = common_pending_mutation4.extend({
3863
3939
  }).describe(
3864
3940
  "Seam is in the process of pushing an access schedule update to the integrated access system."
3865
3941
  );
3866
- var updating_suspension_state_mutation = common_pending_mutation4.extend({
3942
+ var updating_suspension_state_mutation = common_pending_mutation5.extend({
3867
3943
  mutation_code: zod.z.literal("updating_suspension_state").describe(
3868
3944
  "Mutation code to indicate that Seam is in the process of pushing updated user suspension state information to the integrated access system."
3869
3945
  ),
@@ -3872,7 +3948,7 @@ var updating_suspension_state_mutation = common_pending_mutation4.extend({
3872
3948
  }).describe(
3873
3949
  "Seam is in the process of pushing a suspension state update to the integrated access system."
3874
3950
  );
3875
- var updating_group_membership_mutation = common_pending_mutation4.extend({
3951
+ var updating_group_membership_mutation = common_pending_mutation5.extend({
3876
3952
  mutation_code: zod.z.literal("updating_group_membership").describe(
3877
3953
  "Mutation code to indicate that Seam is in the process of pushing updated access group membership information to the integrated access system."
3878
3954
  ),
@@ -3885,7 +3961,7 @@ var updating_group_membership_mutation = common_pending_mutation4.extend({
3885
3961
  }).describe(
3886
3962
  "Seam is in the process of pushing an access group membership update to the integrated access system."
3887
3963
  );
3888
- var deferring_group_membership_update_mutation = common_pending_mutation4.extend({
3964
+ var deferring_group_membership_update_mutation = common_pending_mutation5.extend({
3889
3965
  mutation_code: zod.z.literal("deferring_group_membership_update").describe(
3890
3966
  "Mutation code to indicate that a scheduled access group membership change is pending for this user."
3891
3967
  ),
@@ -3899,8 +3975,8 @@ var deferring_group_membership_update_mutation = common_pending_mutation4.extend
3899
3975
  var acs_user_pending_mutations = zod.z.discriminatedUnion(
3900
3976
  "mutation_code",
3901
3977
  [
3902
- creating2,
3903
- deleting2,
3978
+ creating3,
3979
+ deleting3,
3904
3980
  deferring_creation,
3905
3981
  updating_user_information_mutation,
3906
3982
  updating_access_schedule_mutation,
@@ -3910,14 +3986,14 @@ var acs_user_pending_mutations = zod.z.discriminatedUnion(
3910
3986
  ]
3911
3987
  );
3912
3988
  zod.z.object({
3913
- creating: creating2.optional().nullable(),
3914
- deleting: deleting2.optional().nullable(),
3989
+ creating: creating3.optional().nullable(),
3990
+ deleting: deleting3.optional().nullable(),
3915
3991
  deferring_creation: deferring_creation.optional().nullable(),
3916
3992
  updating_access_schedule: updating_access_schedule_mutation.optional().nullable(),
3917
3993
  updating_group_membership: zod.z.record(zod.z.string().uuid(), updating_group_membership_mutation).optional().nullable(),
3918
3994
  deferring_group_membership_update: zod.z.record(zod.z.string().uuid(), deferring_group_membership_update_mutation).optional().nullable(),
3919
3995
  updating_suspension_state: updating_suspension_state_mutation.optional().nullable(),
3920
- "updating_user_information.full_name": common_pending_mutation4.extend({
3996
+ "updating_user_information.full_name": common_pending_mutation5.extend({
3921
3997
  mutation_code: zod.z.literal("updating_user_information"),
3922
3998
  from: zod.z.object({
3923
3999
  full_name: zod.z.string().nullable()
@@ -3926,7 +4002,7 @@ zod.z.object({
3926
4002
  full_name: zod.z.string().nullable()
3927
4003
  })
3928
4004
  }).optional().nullable(),
3929
- "updating_user_information.email_address": common_pending_mutation4.extend({
4005
+ "updating_user_information.email_address": common_pending_mutation5.extend({
3930
4006
  mutation_code: zod.z.literal("updating_user_information"),
3931
4007
  from: zod.z.object({
3932
4008
  email_address: zod.z.string().email().nullable()
@@ -3935,7 +4011,7 @@ zod.z.object({
3935
4011
  email_address: zod.z.string().email().nullable()
3936
4012
  })
3937
4013
  }).optional().nullable(),
3938
- "updating_user_information.phone_number": common_pending_mutation4.extend({
4014
+ "updating_user_information.phone_number": common_pending_mutation5.extend({
3939
4015
  mutation_code: zod.z.literal("updating_user_information"),
3940
4016
  from: zod.z.object({
3941
4017
  phone_number: phone_number.nullable()
@@ -7897,6 +7973,224 @@ var openapi_default = {
7897
7973
  nullable: true,
7898
7974
  type: "string"
7899
7975
  },
7976
+ pending_mutations: {
7977
+ description: "Collection of pending mutations for the access code. Indicates changes that Seam is in the process of pushing to the device.",
7978
+ items: {
7979
+ discriminator: { propertyName: "mutation_code" },
7980
+ oneOf: [
7981
+ {
7982
+ description: "Seam is in the process of setting an access code on the device.",
7983
+ properties: {
7984
+ created_at: {
7985
+ description: "Date and time at which the mutation was created.",
7986
+ format: "date-time",
7987
+ type: "string"
7988
+ },
7989
+ message: {
7990
+ description: "Detailed description of the mutation.",
7991
+ type: "string"
7992
+ },
7993
+ mutation_code: {
7994
+ description: "Mutation code to indicate that Seam is in the process of setting an access code on the device.",
7995
+ enum: ["creating"],
7996
+ type: "string"
7997
+ }
7998
+ },
7999
+ required: ["created_at", "message", "mutation_code"],
8000
+ type: "object"
8001
+ },
8002
+ {
8003
+ description: "Seam is in the process of removing an access code from the device.",
8004
+ properties: {
8005
+ created_at: {
8006
+ description: "Date and time at which the mutation was created.",
8007
+ format: "date-time",
8008
+ type: "string"
8009
+ },
8010
+ message: {
8011
+ description: "Detailed description of the mutation.",
8012
+ type: "string"
8013
+ },
8014
+ mutation_code: {
8015
+ description: "Mutation code to indicate that Seam is in the process of removing an access code from the device.",
8016
+ enum: ["deleting"],
8017
+ type: "string"
8018
+ }
8019
+ },
8020
+ required: ["created_at", "message", "mutation_code"],
8021
+ type: "object"
8022
+ },
8023
+ {
8024
+ description: "Seam is in the process of pushing an updated PIN code to the device.",
8025
+ properties: {
8026
+ created_at: {
8027
+ description: "Date and time at which the mutation was created.",
8028
+ format: "date-time",
8029
+ type: "string"
8030
+ },
8031
+ from: {
8032
+ description: "Previous code configuration.",
8033
+ properties: {
8034
+ code: {
8035
+ description: "Previous PIN code.",
8036
+ nullable: true,
8037
+ type: "string"
8038
+ }
8039
+ },
8040
+ required: ["code"],
8041
+ type: "object"
8042
+ },
8043
+ message: {
8044
+ description: "Detailed description of the mutation.",
8045
+ type: "string"
8046
+ },
8047
+ mutation_code: {
8048
+ description: "Mutation code to indicate that Seam is in the process of pushing an updated PIN code to the device.",
8049
+ enum: ["updating_code"],
8050
+ type: "string"
8051
+ },
8052
+ to: {
8053
+ description: "New code configuration.",
8054
+ properties: {
8055
+ code: {
8056
+ description: "New PIN code.",
8057
+ nullable: true,
8058
+ type: "string"
8059
+ }
8060
+ },
8061
+ required: ["code"],
8062
+ type: "object"
8063
+ }
8064
+ },
8065
+ required: [
8066
+ "created_at",
8067
+ "message",
8068
+ "mutation_code",
8069
+ "from",
8070
+ "to"
8071
+ ],
8072
+ type: "object"
8073
+ },
8074
+ {
8075
+ description: "Seam is in the process of pushing an updated access code name to the device.",
8076
+ properties: {
8077
+ created_at: {
8078
+ description: "Date and time at which the mutation was created.",
8079
+ format: "date-time",
8080
+ type: "string"
8081
+ },
8082
+ from: {
8083
+ description: "Previous name configuration.",
8084
+ properties: {
8085
+ name: {
8086
+ description: "Previous access code name.",
8087
+ nullable: true,
8088
+ type: "string"
8089
+ }
8090
+ },
8091
+ required: ["name"],
8092
+ type: "object"
8093
+ },
8094
+ message: {
8095
+ description: "Detailed description of the mutation.",
8096
+ type: "string"
8097
+ },
8098
+ mutation_code: {
8099
+ description: "Mutation code to indicate that Seam is in the process of pushing an updated access code name to the device.",
8100
+ enum: ["updating_name"],
8101
+ type: "string"
8102
+ },
8103
+ to: {
8104
+ description: "New name configuration.",
8105
+ properties: {
8106
+ name: {
8107
+ description: "New access code name.",
8108
+ nullable: true,
8109
+ type: "string"
8110
+ }
8111
+ },
8112
+ required: ["name"],
8113
+ type: "object"
8114
+ }
8115
+ },
8116
+ required: [
8117
+ "created_at",
8118
+ "message",
8119
+ "mutation_code",
8120
+ "from",
8121
+ "to"
8122
+ ],
8123
+ type: "object"
8124
+ },
8125
+ {
8126
+ description: "Seam is in the process of pushing an updated time frame to the device.",
8127
+ properties: {
8128
+ created_at: {
8129
+ description: "Date and time at which the mutation was created.",
8130
+ format: "date-time",
8131
+ type: "string"
8132
+ },
8133
+ from: {
8134
+ description: "Previous time frame configuration.",
8135
+ properties: {
8136
+ ends_at: {
8137
+ description: "Previous end time for the access code.",
8138
+ format: "date-time",
8139
+ nullable: true,
8140
+ type: "string"
8141
+ },
8142
+ starts_at: {
8143
+ description: "Previous start time for the access code.",
8144
+ format: "date-time",
8145
+ nullable: true,
8146
+ type: "string"
8147
+ }
8148
+ },
8149
+ required: ["starts_at", "ends_at"],
8150
+ type: "object"
8151
+ },
8152
+ message: {
8153
+ description: "Detailed description of the mutation.",
8154
+ type: "string"
8155
+ },
8156
+ mutation_code: {
8157
+ description: "Mutation code to indicate that Seam is in the process of pushing updated access code time frame to the device.",
8158
+ enum: ["updating_time_frame"],
8159
+ type: "string"
8160
+ },
8161
+ to: {
8162
+ description: "New time frame configuration.",
8163
+ properties: {
8164
+ ends_at: {
8165
+ description: "New end time for the access code.",
8166
+ format: "date-time",
8167
+ nullable: true,
8168
+ type: "string"
8169
+ },
8170
+ starts_at: {
8171
+ description: "New start time for the access code.",
8172
+ format: "date-time",
8173
+ nullable: true,
8174
+ type: "string"
8175
+ }
8176
+ },
8177
+ required: ["starts_at", "ends_at"],
8178
+ type: "object"
8179
+ }
8180
+ },
8181
+ required: [
8182
+ "created_at",
8183
+ "message",
8184
+ "mutation_code",
8185
+ "from",
8186
+ "to"
8187
+ ],
8188
+ type: "object"
8189
+ }
8190
+ ]
8191
+ },
8192
+ type: "array"
8193
+ },
7900
8194
  pulled_backup_access_code_id: {
7901
8195
  description: "Identifier of the pulled backup access code. Used to associate the pulled backup access code with the original access code.",
7902
8196
  format: "uuid",
@@ -8275,7 +8569,8 @@ var openapi_default = {
8275
8569
  "is_backup_access_code_available",
8276
8570
  "is_external_modification_allowed",
8277
8571
  "is_one_time_use",
8278
- "is_offline_access_code"
8572
+ "is_offline_access_code",
8573
+ "pending_mutations"
8279
8574
  ],
8280
8575
  type: "object",
8281
8576
  "x-route-path": "/access_codes"
@@ -79340,7 +79635,7 @@ var openapi_default = {
79340
79635
  },
79341
79636
  "/user_identities/list_accessible_devices": {
79342
79637
  get: {
79343
- description: "Returns a list of all [devices](https://docs.seam.co/latest/core-concepts/devices) associated with a specified [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).",
79638
+ description: "Returns a list of all [devices](https://docs.seam.co/latest/core-concepts/devices) associated with a specified [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity). This includes devices derived from the access grants assigned to the user identity and devices directly linked to the user identity.",
79344
79639
  operationId: "userIdentitiesListAccessibleDevicesGet",
79345
79640
  parameters: [
79346
79641
  {
@@ -79383,6 +79678,7 @@ var openapi_default = {
79383
79678
  401: { description: "Unauthorized" }
79384
79679
  },
79385
79680
  security: [
79681
+ { client_session: [] },
79386
79682
  { api_key: [] },
79387
79683
  { pat_with_workspace: [] },
79388
79684
  { console_session_with_workspace: [] }
@@ -79396,7 +79692,7 @@ var openapi_default = {
79396
79692
  "x-title": "List Accessible Devices for a User Identity"
79397
79693
  },
79398
79694
  post: {
79399
- description: "Returns a list of all [devices](https://docs.seam.co/latest/core-concepts/devices) associated with a specified [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).",
79695
+ description: "Returns a list of all [devices](https://docs.seam.co/latest/core-concepts/devices) associated with a specified [user identity](https://docs.seam.co/latest/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity). This includes devices derived from the access grants assigned to the user identity and devices directly linked to the user identity.",
79400
79696
  operationId: "userIdentitiesListAccessibleDevicesPost",
79401
79697
  requestBody: {
79402
79698
  content: {
@@ -79444,6 +79740,7 @@ var openapi_default = {
79444
79740
  401: { description: "Unauthorized" }
79445
79741
  },
79446
79742
  security: [
79743
+ { client_session: [] },
79447
79744
  { api_key: [] },
79448
79745
  { pat_with_workspace: [] },
79449
79746
  { console_session_with_workspace: [] }