@seamapi/types 1.235.1 → 1.237.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
@@ -1301,14 +1301,22 @@ var common_acs_users_warning = zod.z.object({
1301
1301
  var acs_users_being_deleted = common_acs_users_warning.extend({
1302
1302
  warning_code: zod.z.literal("being_deleted")
1303
1303
  });
1304
+ var acs_users_salto_ks_user_not_subscribed = common_acs_users_warning.extend({
1305
+ warning_code: zod.z.literal("salto_ks_user_not_subscribed")
1306
+ });
1307
+ var acs_users_salto_site_user_suspended = common_acs_users_warning.extend({
1308
+ warning_code: zod.z.literal("salto_site_user_suspended")
1309
+ });
1304
1310
  zod.z.object({
1305
- being_deleted: acs_users_being_deleted.optional().nullable()
1311
+ being_deleted: acs_users_being_deleted.optional().nullable(),
1312
+ salto_ks_user_not_subscribed: acs_users_salto_ks_user_not_subscribed.optional().nullable(),
1313
+ salto_site_user_suspended: acs_users_salto_site_user_suspended.optional().nullable()
1306
1314
  });
1307
- var acs_users_warning = (
1308
- // TODO: once we have more than one warning we should use z.union
1309
- // z.union([
1310
- acs_users_being_deleted
1311
- );
1315
+ var acs_users_warning = zod.z.union([
1316
+ acs_users_being_deleted,
1317
+ acs_users_salto_ks_user_not_subscribed,
1318
+ acs_users_salto_site_user_suspended
1319
+ ]);
1312
1320
  var user_fields = zod.z.object({
1313
1321
  full_name: zod.z.string().optional(),
1314
1322
  email: zod.z.string().email().optional().describe(`
@@ -1336,7 +1344,8 @@ var common_acs_user = zod.z.object({
1336
1344
  user_identity_phone_number: zod.z.string().nullable().optional(),
1337
1345
  latest_desired_state_synced_with_provider_at: zod.z.string().datetime().optional(),
1338
1346
  is_latest_desired_state_synced_with_provider: zod.z.boolean().optional(),
1339
- warnings: zod.z.array(acs_users_warning)
1347
+ warnings: zod.z.array(acs_users_warning),
1348
+ errors: zod.z.any()
1340
1349
  }).merge(user_fields);
1341
1350
  var acs_user = common_acs_user.merge(
1342
1351
  zod.z.object({
@@ -2893,6 +2902,7 @@ var openapi_default = {
2893
2902
  "x-deprecated": "use email_address."
2894
2903
  },
2895
2904
  email_address: { format: "email", type: "string" },
2905
+ errors: {},
2896
2906
  external_type: {
2897
2907
  enum: [
2898
2908
  "pti_user",
@@ -2920,13 +2930,41 @@ var openapi_default = {
2920
2930
  user_identity_phone_number: { nullable: true, type: "string" },
2921
2931
  warnings: {
2922
2932
  items: {
2923
- properties: {
2924
- created_at: { format: "date-time", type: "string" },
2925
- message: { type: "string" },
2926
- warning_code: { enum: ["being_deleted"], type: "string" }
2927
- },
2928
- required: ["created_at", "message", "warning_code"],
2929
- type: "object"
2933
+ oneOf: [
2934
+ {
2935
+ properties: {
2936
+ created_at: { format: "date-time", type: "string" },
2937
+ message: { type: "string" },
2938
+ warning_code: { enum: ["being_deleted"], type: "string" }
2939
+ },
2940
+ required: ["created_at", "message", "warning_code"],
2941
+ type: "object"
2942
+ },
2943
+ {
2944
+ properties: {
2945
+ created_at: { format: "date-time", type: "string" },
2946
+ message: { type: "string" },
2947
+ warning_code: {
2948
+ enum: ["salto_ks_user_not_subscribed"],
2949
+ type: "string"
2950
+ }
2951
+ },
2952
+ required: ["created_at", "message", "warning_code"],
2953
+ type: "object"
2954
+ },
2955
+ {
2956
+ properties: {
2957
+ created_at: { format: "date-time", type: "string" },
2958
+ message: { type: "string" },
2959
+ warning_code: {
2960
+ enum: ["salto_site_user_suspended"],
2961
+ type: "string"
2962
+ }
2963
+ },
2964
+ required: ["created_at", "message", "warning_code"],
2965
+ type: "object"
2966
+ }
2967
+ ]
2930
2968
  },
2931
2969
  type: "array"
2932
2970
  },
@@ -6198,6 +6236,7 @@ var openapi_default = {
6198
6236
  },
6199
6237
  name: { type: "string" },
6200
6238
  prefer_native_scheduling: { type: "boolean" },
6239
+ preferred_code_length: { format: "float", type: "number" },
6201
6240
  starts_at: { type: "string" },
6202
6241
  sync: { default: false, type: "boolean" },
6203
6242
  use_backup_access_code_pool: { type: "boolean" },
@@ -7094,6 +7133,7 @@ var openapi_default = {
7094
7133
  },
7095
7134
  name: { type: "string" },
7096
7135
  prefer_native_scheduling: { type: "boolean" },
7136
+ preferred_code_length: { format: "float", type: "number" },
7097
7137
  starts_at: { type: "string" },
7098
7138
  sync: { default: false, type: "boolean" },
7099
7139
  type: { enum: ["ongoing", "time_bound"], type: "string" },
@@ -7169,6 +7209,7 @@ var openapi_default = {
7169
7209
  },
7170
7210
  name: { type: "string" },
7171
7211
  prefer_native_scheduling: { type: "boolean" },
7212
+ preferred_code_length: { format: "float", type: "number" },
7172
7213
  starts_at: { type: "string" },
7173
7214
  sync: { default: false, type: "boolean" },
7174
7215
  type: { enum: ["ongoing", "time_bound"], type: "string" },
@@ -7245,6 +7286,7 @@ var openapi_default = {
7245
7286
  },
7246
7287
  name: { type: "string" },
7247
7288
  prefer_native_scheduling: { type: "boolean" },
7289
+ preferred_code_length: { format: "float", type: "number" },
7248
7290
  starts_at: { type: "string" },
7249
7291
  sync: { default: false, type: "boolean" },
7250
7292
  type: { enum: ["ongoing", "time_bound"], type: "string" },
@@ -9756,6 +9798,7 @@ var openapi_default = {
9756
9798
  "x-deprecated": "use email_address."
9757
9799
  },
9758
9800
  email_address: { format: "email", type: "string" },
9801
+ errors: { $ref: "#/components/schemas/access_code" },
9759
9802
  external_type: {
9760
9803
  enum: [
9761
9804
  "pti_user",
@@ -9794,19 +9837,65 @@ var openapi_default = {
9794
9837
  },
9795
9838
  warnings: {
9796
9839
  items: {
9797
- properties: {
9798
- created_at: {
9799
- format: "date-time",
9800
- type: "string"
9840
+ oneOf: [
9841
+ {
9842
+ properties: {
9843
+ created_at: {
9844
+ format: "date-time",
9845
+ type: "string"
9846
+ },
9847
+ message: { type: "string" },
9848
+ warning_code: {
9849
+ enum: ["being_deleted"],
9850
+ type: "string"
9851
+ }
9852
+ },
9853
+ required: [
9854
+ "created_at",
9855
+ "message",
9856
+ "warning_code"
9857
+ ],
9858
+ type: "object"
9801
9859
  },
9802
- message: { type: "string" },
9803
- warning_code: {
9804
- enum: ["being_deleted"],
9805
- type: "string"
9860
+ {
9861
+ properties: {
9862
+ created_at: {
9863
+ format: "date-time",
9864
+ type: "string"
9865
+ },
9866
+ message: { type: "string" },
9867
+ warning_code: {
9868
+ enum: ["salto_ks_user_not_subscribed"],
9869
+ type: "string"
9870
+ }
9871
+ },
9872
+ required: [
9873
+ "created_at",
9874
+ "message",
9875
+ "warning_code"
9876
+ ],
9877
+ type: "object"
9878
+ },
9879
+ {
9880
+ properties: {
9881
+ created_at: {
9882
+ format: "date-time",
9883
+ type: "string"
9884
+ },
9885
+ message: { type: "string" },
9886
+ warning_code: {
9887
+ enum: ["salto_site_user_suspended"],
9888
+ type: "string"
9889
+ }
9890
+ },
9891
+ required: [
9892
+ "created_at",
9893
+ "message",
9894
+ "warning_code"
9895
+ ],
9896
+ type: "object"
9806
9897
  }
9807
- },
9808
- required: ["created_at", "message", "warning_code"],
9809
- type: "object"
9898
+ ]
9810
9899
  },
9811
9900
  type: "array"
9812
9901
  },
@@ -9898,6 +9987,7 @@ var openapi_default = {
9898
9987
  "x-deprecated": "use email_address."
9899
9988
  },
9900
9989
  email_address: { format: "email", type: "string" },
9990
+ errors: { $ref: "#/components/schemas/access_code" },
9901
9991
  external_type: {
9902
9992
  enum: [
9903
9993
  "pti_user",
@@ -9936,23 +10026,65 @@ var openapi_default = {
9936
10026
  },
9937
10027
  warnings: {
9938
10028
  items: {
9939
- properties: {
9940
- created_at: {
9941
- format: "date-time",
9942
- type: "string"
10029
+ oneOf: [
10030
+ {
10031
+ properties: {
10032
+ created_at: {
10033
+ format: "date-time",
10034
+ type: "string"
10035
+ },
10036
+ message: { type: "string" },
10037
+ warning_code: {
10038
+ enum: ["being_deleted"],
10039
+ type: "string"
10040
+ }
10041
+ },
10042
+ required: [
10043
+ "created_at",
10044
+ "message",
10045
+ "warning_code"
10046
+ ],
10047
+ type: "object"
9943
10048
  },
9944
- message: { type: "string" },
9945
- warning_code: {
9946
- enum: ["being_deleted"],
9947
- type: "string"
10049
+ {
10050
+ properties: {
10051
+ created_at: {
10052
+ format: "date-time",
10053
+ type: "string"
10054
+ },
10055
+ message: { type: "string" },
10056
+ warning_code: {
10057
+ enum: ["salto_ks_user_not_subscribed"],
10058
+ type: "string"
10059
+ }
10060
+ },
10061
+ required: [
10062
+ "created_at",
10063
+ "message",
10064
+ "warning_code"
10065
+ ],
10066
+ type: "object"
10067
+ },
10068
+ {
10069
+ properties: {
10070
+ created_at: {
10071
+ format: "date-time",
10072
+ type: "string"
10073
+ },
10074
+ message: { type: "string" },
10075
+ warning_code: {
10076
+ enum: ["salto_site_user_suspended"],
10077
+ type: "string"
10078
+ }
10079
+ },
10080
+ required: [
10081
+ "created_at",
10082
+ "message",
10083
+ "warning_code"
10084
+ ],
10085
+ type: "object"
9948
10086
  }
9949
- },
9950
- required: [
9951
- "created_at",
9952
- "message",
9953
- "warning_code"
9954
- ],
9955
- type: "object"
10087
+ ]
9956
10088
  },
9957
10089
  type: "array"
9958
10090
  },