@seamapi/types 1.236.0 → 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 +168 -40
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +220 -54
- package/lib/seam/connect/models/acs/acs-user.d.ts +178 -14
- package/lib/seam/connect/models/acs/acs-user.js +19 -4
- package/lib/seam/connect/models/acs/acs-user.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +55 -42
- package/lib/seam/connect/openapi.js +151 -32
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +63 -0
- package/package.json +2 -2
- package/src/lib/seam/connect/models/acs/acs-user.ts +21 -5
- package/src/lib/seam/connect/openapi.ts +151 -32
- package/src/lib/seam/connect/route-types.ts +126 -35
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
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
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
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
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
|
},
|
|
@@ -9760,6 +9798,7 @@ var openapi_default = {
|
|
|
9760
9798
|
"x-deprecated": "use email_address."
|
|
9761
9799
|
},
|
|
9762
9800
|
email_address: { format: "email", type: "string" },
|
|
9801
|
+
errors: { $ref: "#/components/schemas/access_code" },
|
|
9763
9802
|
external_type: {
|
|
9764
9803
|
enum: [
|
|
9765
9804
|
"pti_user",
|
|
@@ -9798,19 +9837,65 @@ var openapi_default = {
|
|
|
9798
9837
|
},
|
|
9799
9838
|
warnings: {
|
|
9800
9839
|
items: {
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
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"
|
|
9805
9859
|
},
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
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"
|
|
9810
9897
|
}
|
|
9811
|
-
|
|
9812
|
-
required: ["created_at", "message", "warning_code"],
|
|
9813
|
-
type: "object"
|
|
9898
|
+
]
|
|
9814
9899
|
},
|
|
9815
9900
|
type: "array"
|
|
9816
9901
|
},
|
|
@@ -9902,6 +9987,7 @@ var openapi_default = {
|
|
|
9902
9987
|
"x-deprecated": "use email_address."
|
|
9903
9988
|
},
|
|
9904
9989
|
email_address: { format: "email", type: "string" },
|
|
9990
|
+
errors: { $ref: "#/components/schemas/access_code" },
|
|
9905
9991
|
external_type: {
|
|
9906
9992
|
enum: [
|
|
9907
9993
|
"pti_user",
|
|
@@ -9940,23 +10026,65 @@ var openapi_default = {
|
|
|
9940
10026
|
},
|
|
9941
10027
|
warnings: {
|
|
9942
10028
|
items: {
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
|
|
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"
|
|
9947
10048
|
},
|
|
9948
|
-
|
|
9949
|
-
|
|
9950
|
-
|
|
9951
|
-
|
|
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"
|
|
9952
10086
|
}
|
|
9953
|
-
|
|
9954
|
-
required: [
|
|
9955
|
-
"created_at",
|
|
9956
|
-
"message",
|
|
9957
|
-
"warning_code"
|
|
9958
|
-
],
|
|
9959
|
-
type: "object"
|
|
10087
|
+
]
|
|
9960
10088
|
},
|
|
9961
10089
|
type: "array"
|
|
9962
10090
|
},
|