@seamapi/types 1.322.3 → 1.323.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
@@ -1738,6 +1738,24 @@ zod.z.object({
1738
1738
  salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed.optional().nullable()
1739
1739
  });
1740
1740
  var acs_users_warnings = zod.z.union([acs_users_being_deleted, acs_users_salto_ks_user_not_subscribed]).describe("Warning associated with the `acs_user`.");
1741
+ var common_acs_user_modification = zod.z.object({
1742
+ created_at: zod.z.string().datetime().describe("Date and time at which this modification was requested."),
1743
+ message: zod.z.string().describe("Detailed description of the modification.")
1744
+ });
1745
+ var acs_user_suspension_state_modification = common_acs_user_modification.extend({
1746
+ modification_code: zod.z.literal("suspension_state")
1747
+ }).describe(
1748
+ "Indicates that the acs_user's is_suspended state was updated on Seam and will soon be applied on the user on the ACS System"
1749
+ );
1750
+ var acs_user_profile_modification = common_acs_user_modification.extend({
1751
+ modification_code: zod.z.literal("profile")
1752
+ }).describe(
1753
+ "Indicates that the acs_user's profile details (name, email, phone) were updated on Seam and will soon be applied on the user on the ACS System"
1754
+ );
1755
+ zod.z.object({
1756
+ suspension_state: acs_user_suspension_state_modification.optional().nullable(),
1757
+ profile: acs_user_profile_modification.optional().nullable()
1758
+ });
1741
1759
  var user_fields = zod.z.object({
1742
1760
  full_name: zod.z.string().optional().describe("Full name of the `acs_user`."),
1743
1761
  email: zod.z.string().email().optional().describe(`
@@ -16743,6 +16761,7 @@ var openapi_default = {
16743
16761
  },
16744
16762
  "/acs/encoders/encode_credential": {
16745
16763
  post: {
16764
+ description: "Encodes an existing [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) onto a plastic card placed on the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).",
16746
16765
  operationId: "acsEncodersEncodeCredentialPost",
16747
16766
  requestBody: {
16748
16767
  content: {
@@ -16750,12 +16769,12 @@ var openapi_default = {
16750
16769
  schema: {
16751
16770
  properties: {
16752
16771
  acs_credential_id: {
16753
- description: "ID of the acs_credential to encode on a physical card.",
16772
+ description: "ID of the `acs_credential` to encode onto a card.",
16754
16773
  format: "uuid",
16755
16774
  type: "string"
16756
16775
  },
16757
16776
  acs_encoder_id: {
16758
- description: "ID of the acs_encoder to use for the encoding.",
16777
+ description: "ID of the `acs_encoder` to use to encode the `acs_credential`.",
16759
16778
  format: "uuid",
16760
16779
  type: "string"
16761
16780
  }
@@ -16798,11 +16817,12 @@ var openapi_default = {
16798
16817
  "x-fern-sdk-method-name": "encode_credential",
16799
16818
  "x-fern-sdk-return-value": "action_attempt",
16800
16819
  "x-response-key": "action_attempt",
16801
- "x-undocumented": "Encoders are in alpha."
16820
+ "x-title": "Encode a Credential"
16802
16821
  }
16803
16822
  },
16804
16823
  "/acs/encoders/list": {
16805
16824
  post: {
16825
+ description: "Returns a list of all [encoders](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).",
16806
16826
  operationId: "acsEncodersListPost",
16807
16827
  requestBody: {
16808
16828
  content: {
@@ -16811,8 +16831,17 @@ var openapi_default = {
16811
16831
  oneOf: [
16812
16832
  {
16813
16833
  properties: {
16814
- acs_system_id: { format: "uuid", type: "string" },
16815
- limit: { default: 500, format: "float", type: "number" }
16834
+ acs_system_id: {
16835
+ description: "ID of the `acs_system` for which you want to retrieve all `acs_encoder`s.",
16836
+ format: "uuid",
16837
+ type: "string"
16838
+ },
16839
+ limit: {
16840
+ default: 500,
16841
+ description: "Number of `acs_encoders` to return.",
16842
+ format: "float",
16843
+ type: "number"
16844
+ }
16816
16845
  },
16817
16846
  required: ["acs_system_id"],
16818
16847
  type: "object"
@@ -16820,10 +16849,16 @@ var openapi_default = {
16820
16849
  {
16821
16850
  properties: {
16822
16851
  acs_system_ids: {
16852
+ description: "IDs of the `acs_system`s for which you want to retrieve all `acs_encoder`s.",
16823
16853
  items: { format: "uuid", type: "string" },
16824
16854
  type: "array"
16825
16855
  },
16826
- limit: { default: 500, format: "float", type: "number" }
16856
+ limit: {
16857
+ default: 500,
16858
+ description: "Number of `acs_encoders` to return.",
16859
+ format: "float",
16860
+ type: "number"
16861
+ }
16827
16862
  },
16828
16863
  required: ["acs_system_ids"],
16829
16864
  type: "object"
@@ -16831,10 +16866,16 @@ var openapi_default = {
16831
16866
  {
16832
16867
  properties: {
16833
16868
  acs_encoder_ids: {
16869
+ description: "IDs of the `acs_encoder`s that you want to retrieve.",
16834
16870
  items: { format: "uuid", type: "string" },
16835
16871
  type: "array"
16836
16872
  },
16837
- limit: { default: 500, format: "float", type: "number" }
16873
+ limit: {
16874
+ default: 500,
16875
+ description: "Number of `acs_encoders` to return.",
16876
+ format: "float",
16877
+ type: "number"
16878
+ }
16838
16879
  },
16839
16880
  required: ["acs_encoder_ids"],
16840
16881
  type: "object"
@@ -16938,11 +16979,12 @@ var openapi_default = {
16938
16979
  "x-fern-sdk-method-name": "list",
16939
16980
  "x-fern-sdk-return-value": "acs_encoders",
16940
16981
  "x-response-key": "acs_encoders",
16941
- "x-undocumented": "Encoders are in alpha."
16982
+ "x-title": "List Encoders"
16942
16983
  }
16943
16984
  },
16944
16985
  "/acs/encoders/scan_credential": {
16945
16986
  post: {
16987
+ description: "Scans an encoded [acs_credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) from a plastic card placed on the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners).",
16946
16988
  operationId: "acsEncodersScanCredentialPost",
16947
16989
  requestBody: {
16948
16990
  content: {
@@ -16950,7 +16992,7 @@ var openapi_default = {
16950
16992
  schema: {
16951
16993
  properties: {
16952
16994
  acs_encoder_id: {
16953
- description: "ID of the acs_encoder to use for the scan.",
16995
+ description: "ID of the `acs_encoder` to use for the scan.",
16954
16996
  format: "uuid",
16955
16997
  type: "string"
16956
16998
  }
@@ -16993,11 +17035,12 @@ var openapi_default = {
16993
17035
  "x-fern-sdk-method-name": "scan_credential",
16994
17036
  "x-fern-sdk-return-value": "action_attempt",
16995
17037
  "x-response-key": "action_attempt",
16996
- "x-undocumented": "Encoders are in alpha."
17038
+ "x-title": "Scan a Credential"
16997
17039
  }
16998
17040
  },
16999
17041
  "/acs/encoders/simulate/next_credential_encode_will_fail": {
17000
17042
  post: {
17043
+ description: "Simulates that the next attempt to encode a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces).",
17001
17044
  operationId: "acsEncodersSimulateNextCredentialEncodeWillFailPost",
17002
17045
  requestBody: {
17003
17046
  content: {
@@ -17007,9 +17050,14 @@ var openapi_default = {
17007
17050
  {
17008
17051
  additionalProperties: false,
17009
17052
  properties: {
17010
- acs_encoder_id: { format: "uuid", type: "string" },
17053
+ acs_encoder_id: {
17054
+ description: "ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.",
17055
+ format: "uuid",
17056
+ type: "string"
17057
+ },
17011
17058
  error_code: {
17012
17059
  default: "no_credential_on_encoder",
17060
+ description: "Code of the error to simulate.",
17013
17061
  enum: ["no_credential_on_encoder"],
17014
17062
  type: "string"
17015
17063
  }
@@ -17020,9 +17068,18 @@ var openapi_default = {
17020
17068
  {
17021
17069
  additionalProperties: false,
17022
17070
  properties: {
17023
- acs_credential_id: { format: "uuid", type: "string" },
17024
- acs_encoder_id: { format: "uuid", type: "string" },
17071
+ acs_credential_id: {
17072
+ description: "ID of the `acs_credential` that will fail to be encoded onto a card in the next request.",
17073
+ format: "uuid",
17074
+ type: "string"
17075
+ },
17076
+ acs_encoder_id: {
17077
+ description: "ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.",
17078
+ format: "uuid",
17079
+ type: "string"
17080
+ },
17025
17081
  error_code: {
17082
+ description: "Code of the error to simulate.",
17026
17083
  enum: ["uncategorized_error", "action_attempt_expired"],
17027
17084
  type: "string"
17028
17085
  }
@@ -17061,11 +17118,12 @@ var openapi_default = {
17061
17118
  "x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
17062
17119
  "x-fern-sdk-method-name": "next_credential_encode_will_fail",
17063
17120
  "x-response-key": null,
17064
- "x-undocumented": "Encoder simulations are in alpha."
17121
+ "x-title": "Simulate that the Next Credential Encoding Will Fail"
17065
17122
  }
17066
17123
  },
17067
17124
  "/acs/encoders/simulate/next_credential_encode_will_succeed": {
17068
17125
  post: {
17126
+ description: "Simulates that the next attempt to encode a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces).",
17069
17127
  operationId: "acsEncodersSimulateNextCredentialEncodeWillSucceedPost",
17070
17128
  requestBody: {
17071
17129
  content: {
@@ -17073,9 +17131,14 @@ var openapi_default = {
17073
17131
  schema: {
17074
17132
  additionalProperties: false,
17075
17133
  properties: {
17076
- acs_encoder_id: { format: "uuid", type: "string" },
17134
+ acs_encoder_id: {
17135
+ description: "ID of the `acs_encoder` that will be used in the next request to encode the `acs_credential`.",
17136
+ format: "uuid",
17137
+ type: "string"
17138
+ },
17077
17139
  scenario: {
17078
17140
  default: "credential_is_issued",
17141
+ description: "Scenario to simulate.",
17079
17142
  enum: ["credential_is_issued"],
17080
17143
  type: "string"
17081
17144
  }
@@ -17112,11 +17175,12 @@ var openapi_default = {
17112
17175
  "x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
17113
17176
  "x-fern-sdk-method-name": "next_credential_encode_will_succeed",
17114
17177
  "x-response-key": null,
17115
- "x-undocumented": "Encoder simulations are in alpha."
17178
+ "x-title": "Simulate that the Next Credential Encoding Will Succeed"
17116
17179
  }
17117
17180
  },
17118
17181
  "/acs/encoders/simulate/next_credential_scan_will_fail": {
17119
17182
  post: {
17183
+ description: "Simulates that the next attempt to scan a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) will fail. You can only perform this action within a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces).",
17120
17184
  operationId: "acsEncodersSimulateNextCredentialScanWillFailPost",
17121
17185
  requestBody: {
17122
17186
  content: {
@@ -17126,7 +17190,11 @@ var openapi_default = {
17126
17190
  {
17127
17191
  additionalProperties: false,
17128
17192
  properties: {
17129
- acs_encoder_id: { format: "uuid", type: "string" },
17193
+ acs_encoder_id: {
17194
+ description: "ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request.",
17195
+ format: "uuid",
17196
+ type: "string"
17197
+ },
17130
17198
  error_code: {
17131
17199
  default: "no_credential_on_encoder",
17132
17200
  enum: ["no_credential_on_encoder"],
@@ -17143,7 +17211,11 @@ var openapi_default = {
17143
17211
  format: "uuid",
17144
17212
  type: "string"
17145
17213
  },
17146
- acs_encoder_id: { format: "uuid", type: "string" },
17214
+ acs_encoder_id: {
17215
+ description: "ID of the `acs_encoder` that will fail to scan the `acs_credential` in the next request.",
17216
+ format: "uuid",
17217
+ type: "string"
17218
+ },
17147
17219
  error_code: {
17148
17220
  enum: ["uncategorized_error", "action_attempt_expired"],
17149
17221
  type: "string"
@@ -17183,11 +17255,12 @@ var openapi_default = {
17183
17255
  "x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
17184
17256
  "x-fern-sdk-method-name": "next_credential_scan_will_fail",
17185
17257
  "x-response-key": null,
17186
- "x-undocumented": "Encoder simulations are in alpha."
17258
+ "x-title": "Simulate that the Next Credential Scan Will Fail"
17187
17259
  }
17188
17260
  },
17189
17261
  "/acs/encoders/simulate/next_credential_scan_will_succeed": {
17190
17262
  post: {
17263
+ description: "Simulates that the next attempt to scan a [credential](https://docs.seam.co/latest/capability-guides/access-systems/managing-credentials) using the specified [encoder](https://docs.seam.co/latest/capability-guides/access-systems/working-with-card-encoders-and-scanners) will succeed. You can only perform this action within a [sandbox workspace](https://docs.seam.co/latest/core-concepts/workspaces#sandbox-workspaces).",
17191
17264
  operationId: "acsEncodersSimulateNextCredentialScanWillSucceedPost",
17192
17265
  requestBody: {
17193
17266
  content: {
@@ -17198,12 +17271,18 @@ var openapi_default = {
17198
17271
  additionalProperties: false,
17199
17272
  properties: {
17200
17273
  acs_credential_id_on_seam: {
17274
+ description: "ID of the Seam `acs_credential` that matches the `acs_credential` on the encoder in this simulation.",
17275
+ format: "uuid",
17276
+ type: "string"
17277
+ },
17278
+ acs_encoder_id: {
17279
+ description: "ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.",
17201
17280
  format: "uuid",
17202
17281
  type: "string"
17203
17282
  },
17204
- acs_encoder_id: { format: "uuid", type: "string" },
17205
17283
  scenario: {
17206
17284
  default: "credential_exists_on_seam",
17285
+ description: "Scenario to simulate.",
17207
17286
  enum: [
17208
17287
  "credential_exists_on_seam",
17209
17288
  "credential_on_encoder_needs_update"
@@ -17217,8 +17296,13 @@ var openapi_default = {
17217
17296
  {
17218
17297
  additionalProperties: false,
17219
17298
  properties: {
17220
- acs_encoder_id: { format: "uuid", type: "string" },
17299
+ acs_encoder_id: {
17300
+ description: "ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.",
17301
+ format: "uuid",
17302
+ type: "string"
17303
+ },
17221
17304
  scenario: {
17305
+ description: "Scenario to simulate.",
17222
17306
  enum: ["credential_does_not_exist_on_seam"],
17223
17307
  type: "string"
17224
17308
  }
@@ -17229,8 +17313,13 @@ var openapi_default = {
17229
17313
  {
17230
17314
  additionalProperties: false,
17231
17315
  properties: {
17232
- acs_encoder_id: { format: "uuid", type: "string" },
17316
+ acs_encoder_id: {
17317
+ description: "ID of the `acs_encoder` that will be used in the next request to scan the `acs_credential`.",
17318
+ format: "uuid",
17319
+ type: "string"
17320
+ },
17233
17321
  scenario: {
17322
+ description: "Scenario to simulate.",
17234
17323
  enum: ["credential_on_encoder_is_empty"],
17235
17324
  type: "string"
17236
17325
  }
@@ -17269,7 +17358,7 @@ var openapi_default = {
17269
17358
  "x-fern-sdk-group-name": ["acs", "encoders", "simulate"],
17270
17359
  "x-fern-sdk-method-name": "next_credential_scan_will_succeed",
17271
17360
  "x-response-key": null,
17272
- "x-undocumented": "Encoder simulations are in alpha."
17361
+ "x-title": "Simulate that the Next Credential Scan Will Succeed"
17273
17362
  }
17274
17363
  },
17275
17364
  "/acs/entrances/get": {