@seamapi/types 1.836.0 → 1.838.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.
Files changed (32) hide show
  1. package/dist/connect.cjs +144 -12
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +661 -232
  4. package/dist/index.cjs +144 -12
  5. package/dist/index.cjs.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-credential.d.ts +7 -7
  7. package/lib/seam/connect/models/acs/acs-credential.js +1 -0
  8. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  9. package/lib/seam/connect/models/acs/acs-credentials/pending-mutations.d.ts +101 -0
  10. package/lib/seam/connect/models/acs/acs-credentials/pending-mutations.js +19 -1
  11. package/lib/seam/connect/models/acs/acs-credentials/pending-mutations.js.map +1 -1
  12. package/lib/seam/connect/models/acs/acs-users/acs-user.d.ts +125 -7
  13. package/lib/seam/connect/models/acs/acs-users/acs-user.js +1 -0
  14. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -1
  15. package/lib/seam/connect/models/acs/acs-users/pending-mutations.d.ts +101 -0
  16. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js +30 -0
  17. package/lib/seam/connect/models/acs/acs-users/pending-mutations.js.map +1 -1
  18. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +24 -24
  19. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +10 -10
  20. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +14 -14
  21. package/lib/seam/connect/models/batch.d.ts +210 -52
  22. package/lib/seam/connect/models/phones/phone-session.d.ts +12 -12
  23. package/lib/seam/connect/openapi.js +115 -0
  24. package/lib/seam/connect/openapi.js.map +1 -1
  25. package/lib/seam/connect/route-types.d.ts +297 -144
  26. package/package.json +1 -1
  27. package/src/lib/seam/connect/models/acs/acs-credential.ts +1 -0
  28. package/src/lib/seam/connect/models/acs/acs-credentials/pending-mutations.ts +24 -1
  29. package/src/lib/seam/connect/models/acs/acs-users/acs-user.ts +1 -0
  30. package/src/lib/seam/connect/models/acs/acs-users/pending-mutations.ts +35 -0
  31. package/src/lib/seam/connect/openapi.ts +121 -0
  32. package/src/lib/seam/connect/route-types.ts +306 -0
package/dist/index.cjs CHANGED
@@ -3397,7 +3397,8 @@ var acs_credential_external_type = zod.z.enum([
3397
3397
  "latch_access",
3398
3398
  "dormakaba_ambiance_credential",
3399
3399
  "hotek_card",
3400
- "salto_ks_tag"
3400
+ "salto_ks_tag",
3401
+ "avigilon_alta_credential"
3401
3402
  ]);
3402
3403
  var acs_credential_access_method_type = zod.z.enum([
3403
3404
  "code",
@@ -4076,6 +4077,19 @@ var deferring_group_membership_update_mutation = common_pending_mutation5.extend
4076
4077
  }).describe(
4077
4078
  "A scheduled access group membership change is pending for this user."
4078
4079
  );
4080
+ var updating_credential_assignment_mutation = common_pending_mutation5.extend({
4081
+ mutation_code: zod.z.literal("updating_credential_assignment").describe(
4082
+ "Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system."
4083
+ ),
4084
+ from: zod.z.object({
4085
+ acs_credential_id: zod.z.string().uuid().nullable().describe("Previous credential ID.")
4086
+ }).describe("Previous credential assignment."),
4087
+ to: zod.z.object({
4088
+ acs_credential_id: zod.z.string().uuid().nullable().describe("New credential ID.")
4089
+ }).describe("New credential assignment.")
4090
+ }).describe(
4091
+ "Seam is in the process of assigning or unassigning a credential to the user on the integrated access system."
4092
+ );
4079
4093
  var acs_user_pending_mutations = zod.z.discriminatedUnion(
4080
4094
  "mutation_code",
4081
4095
  [
@@ -4086,7 +4100,8 @@ var acs_user_pending_mutations = zod.z.discriminatedUnion(
4086
4100
  updating_access_schedule_mutation,
4087
4101
  updating_suspension_state_mutation,
4088
4102
  updating_group_membership_mutation,
4089
- deferring_group_membership_update_mutation
4103
+ deferring_group_membership_update_mutation,
4104
+ updating_credential_assignment_mutation
4090
4105
  ]
4091
4106
  );
4092
4107
  zod.z.object({
@@ -4096,6 +4111,7 @@ zod.z.object({
4096
4111
  updating_access_schedule: updating_access_schedule_mutation.optional().nullable(),
4097
4112
  updating_group_membership: zod.z.record(zod.z.string().uuid(), updating_group_membership_mutation).optional().nullable(),
4098
4113
  deferring_group_membership_update: zod.z.record(zod.z.string().uuid(), deferring_group_membership_update_mutation).optional().nullable(),
4114
+ updating_credential_assignment: zod.z.record(zod.z.string().uuid(), updating_credential_assignment_mutation).optional().nullable(),
4099
4115
  updating_suspension_state: updating_suspension_state_mutation.optional().nullable(),
4100
4116
  "updating_user_information.full_name": common_pending_mutation5.extend({
4101
4117
  mutation_code: zod.z.literal("updating_user_information"),
@@ -4134,7 +4150,8 @@ var acs_user_external_type = zod.z.enum([
4134
4150
  "salto_site_user",
4135
4151
  "latch_user",
4136
4152
  "dormakaba_community_user",
4137
- "salto_space_user"
4153
+ "salto_space_user",
4154
+ "avigilon_alta_user"
4138
4155
  ]);
4139
4156
  var common_acs_user_error = zod.z.object({
4140
4157
  created_at: zod.z.string().datetime().describe("Date and time at which Seam created the error."),
@@ -10311,7 +10328,8 @@ var openapi = {
10311
10328
  "latch_access",
10312
10329
  "dormakaba_ambiance_credential",
10313
10330
  "hotek_card",
10314
- "salto_ks_tag"
10331
+ "salto_ks_tag",
10332
+ "avigilon_alta_credential"
10315
10333
  ],
10316
10334
  type: "string"
10317
10335
  },
@@ -11610,7 +11628,8 @@ var openapi = {
11610
11628
  "salto_site_user",
11611
11629
  "latch_user",
11612
11630
  "dormakaba_community_user",
11613
- "salto_space_user"
11631
+ "salto_space_user",
11632
+ "avigilon_alta_user"
11614
11633
  ],
11615
11634
  type: "string"
11616
11635
  },
@@ -11973,6 +11992,59 @@ var openapi = {
11973
11992
  "variant"
11974
11993
  ],
11975
11994
  type: "object"
11995
+ },
11996
+ {
11997
+ description: "Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.",
11998
+ properties: {
11999
+ created_at: {
12000
+ description: "Date and time at which the mutation was created.",
12001
+ format: "date-time",
12002
+ type: "string"
12003
+ },
12004
+ from: {
12005
+ description: "Previous credential assignment.",
12006
+ properties: {
12007
+ acs_credential_id: {
12008
+ description: "Previous credential ID.",
12009
+ format: "uuid",
12010
+ nullable: true,
12011
+ type: "string"
12012
+ }
12013
+ },
12014
+ required: ["acs_credential_id"],
12015
+ type: "object"
12016
+ },
12017
+ message: {
12018
+ description: "Detailed description of the mutation.",
12019
+ type: "string"
12020
+ },
12021
+ mutation_code: {
12022
+ description: "Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.",
12023
+ enum: ["updating_credential_assignment"],
12024
+ type: "string"
12025
+ },
12026
+ to: {
12027
+ description: "New credential assignment.",
12028
+ properties: {
12029
+ acs_credential_id: {
12030
+ description: "New credential ID.",
12031
+ format: "uuid",
12032
+ nullable: true,
12033
+ type: "string"
12034
+ }
12035
+ },
12036
+ required: ["acs_credential_id"],
12037
+ type: "object"
12038
+ }
12039
+ },
12040
+ required: [
12041
+ "created_at",
12042
+ "message",
12043
+ "mutation_code",
12044
+ "from",
12045
+ "to"
12046
+ ],
12047
+ type: "object"
11976
12048
  }
11977
12049
  ]
11978
12050
  },
@@ -12621,7 +12693,8 @@ var openapi = {
12621
12693
  "latch_access",
12622
12694
  "dormakaba_ambiance_credential",
12623
12695
  "hotek_card",
12624
- "salto_ks_tag"
12696
+ "salto_ks_tag",
12697
+ "avigilon_alta_credential"
12625
12698
  ],
12626
12699
  type: "string"
12627
12700
  },
@@ -13012,7 +13085,8 @@ var openapi = {
13012
13085
  "latch_access",
13013
13086
  "dormakaba_ambiance_credential",
13014
13087
  "hotek_card",
13015
- "salto_ks_tag"
13088
+ "salto_ks_tag",
13089
+ "avigilon_alta_credential"
13016
13090
  ],
13017
13091
  type: "string"
13018
13092
  },
@@ -13629,7 +13703,8 @@ var openapi = {
13629
13703
  "latch_access",
13630
13704
  "dormakaba_ambiance_credential",
13631
13705
  "hotek_card",
13632
- "salto_ks_tag"
13706
+ "salto_ks_tag",
13707
+ "avigilon_alta_credential"
13633
13708
  ],
13634
13709
  type: "string"
13635
13710
  },
@@ -14018,7 +14093,8 @@ var openapi = {
14018
14093
  "latch_access",
14019
14094
  "dormakaba_ambiance_credential",
14020
14095
  "hotek_card",
14021
- "salto_ks_tag"
14096
+ "salto_ks_tag",
14097
+ "avigilon_alta_credential"
14022
14098
  ],
14023
14099
  type: "string"
14024
14100
  },
@@ -29834,7 +29910,8 @@ var openapi = {
29834
29910
  "latch_access",
29835
29911
  "dormakaba_ambiance_credential",
29836
29912
  "hotek_card",
29837
- "salto_ks_tag"
29913
+ "salto_ks_tag",
29914
+ "avigilon_alta_credential"
29838
29915
  ],
29839
29916
  type: "string"
29840
29917
  },
@@ -32810,7 +32887,8 @@ var openapi = {
32810
32887
  "latch_access",
32811
32888
  "dormakaba_ambiance_credential",
32812
32889
  "hotek_card",
32813
- "salto_ks_tag"
32890
+ "salto_ks_tag",
32891
+ "avigilon_alta_credential"
32814
32892
  ],
32815
32893
  type: "string"
32816
32894
  },
@@ -33258,7 +33336,8 @@ var openapi = {
33258
33336
  "salto_site_user",
33259
33337
  "latch_user",
33260
33338
  "dormakaba_community_user",
33261
- "salto_space_user"
33339
+ "salto_space_user",
33340
+ "avigilon_alta_user"
33262
33341
  ],
33263
33342
  type: "string"
33264
33343
  },
@@ -33621,6 +33700,59 @@ var openapi = {
33621
33700
  "variant"
33622
33701
  ],
33623
33702
  type: "object"
33703
+ },
33704
+ {
33705
+ description: "Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.",
33706
+ properties: {
33707
+ created_at: {
33708
+ description: "Date and time at which the mutation was created.",
33709
+ format: "date-time",
33710
+ type: "string"
33711
+ },
33712
+ from: {
33713
+ description: "Previous credential assignment.",
33714
+ properties: {
33715
+ acs_credential_id: {
33716
+ description: "Previous credential ID.",
33717
+ format: "uuid",
33718
+ nullable: true,
33719
+ type: "string"
33720
+ }
33721
+ },
33722
+ required: ["acs_credential_id"],
33723
+ type: "object"
33724
+ },
33725
+ message: {
33726
+ description: "Detailed description of the mutation.",
33727
+ type: "string"
33728
+ },
33729
+ mutation_code: {
33730
+ description: "Mutation code to indicate that Seam is in the process of assigning or unassigning a credential to the user on the integrated access system.",
33731
+ enum: ["updating_credential_assignment"],
33732
+ type: "string"
33733
+ },
33734
+ to: {
33735
+ description: "New credential assignment.",
33736
+ properties: {
33737
+ acs_credential_id: {
33738
+ description: "New credential ID.",
33739
+ format: "uuid",
33740
+ nullable: true,
33741
+ type: "string"
33742
+ }
33743
+ },
33744
+ required: ["acs_credential_id"],
33745
+ type: "object"
33746
+ }
33747
+ },
33748
+ required: [
33749
+ "created_at",
33750
+ "message",
33751
+ "mutation_code",
33752
+ "from",
33753
+ "to"
33754
+ ],
33755
+ type: "object"
33624
33756
  }
33625
33757
  ]
33626
33758
  },