@seamapi/types 1.870.0 → 1.871.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 +137 -2
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +646 -0
- package/dist/index.cjs +137 -2
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/access-codes/managed-access-code.d.ts +204 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js +23 -0
- package/lib/seam/connect/models/access-codes/managed-access-code.js.map +1 -1
- package/lib/seam/connect/models/access-codes/unmanaged-access-code.d.ts +76 -0
- package/lib/seam/connect/models/batch.d.ts +200 -0
- package/lib/seam/connect/openapi.js +116 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +242 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-codes/managed-access-code.ts +34 -0
- package/src/lib/seam/connect/openapi.ts +128 -0
- package/src/lib/seam/connect/route-types.ts +286 -0
package/dist/connect.cjs
CHANGED
|
@@ -2312,8 +2312,21 @@ var smartthings_failed_to_set_access_code_error = common_access_code_error.exten
|
|
|
2312
2312
|
var smartthings_failed_to_set_after_multiple_retries = common_access_code_error.extend({
|
|
2313
2313
|
error_code: zod.z.literal("smartthings_failed_to_set_after_multiple_retries").describe(error_code_description3)
|
|
2314
2314
|
}).describe("Failed to set code after multiple retries.");
|
|
2315
|
+
var modified_field = zod.z.object({
|
|
2316
|
+
field: zod.z.string().describe(
|
|
2317
|
+
"The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`)."
|
|
2318
|
+
),
|
|
2319
|
+
from: zod.z.string().nullable().describe("The previous value of the field."),
|
|
2320
|
+
to: zod.z.string().nullable().describe("The new value of the field.")
|
|
2321
|
+
});
|
|
2315
2322
|
var code_modified_external_to_seam_error = common_access_code_error.extend({
|
|
2316
|
-
error_code: zod.z.literal("code_modified_external_to_seam").describe(error_code_description3)
|
|
2323
|
+
error_code: zod.z.literal("code_modified_external_to_seam").describe(error_code_description3),
|
|
2324
|
+
change_type: zod.z.enum(["modified", "removed"]).optional().describe(
|
|
2325
|
+
"Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device."
|
|
2326
|
+
),
|
|
2327
|
+
modified_fields: zod.z.array(modified_field).optional().describe(
|
|
2328
|
+
"List of fields that were changed externally, with their previous and new values."
|
|
2329
|
+
)
|
|
2317
2330
|
}).describe(
|
|
2318
2331
|
"Code was modified or removed externally after Seam successfully set it on the device."
|
|
2319
2332
|
);
|
|
@@ -2475,7 +2488,13 @@ var august_lock_temporarily_offline_warning = common_access_code_warning.extend(
|
|
|
2475
2488
|
warning_code: zod.z.literal("august_lock_temporarily_offline").describe(error_code_description3)
|
|
2476
2489
|
}).describe("August lock is temporarily offline.");
|
|
2477
2490
|
var code_modified_external_to_seam_warning = common_access_code_warning.extend({
|
|
2478
|
-
warning_code: zod.z.literal("code_modified_external_to_seam").describe(warning_code_description3)
|
|
2491
|
+
warning_code: zod.z.literal("code_modified_external_to_seam").describe(warning_code_description3),
|
|
2492
|
+
change_type: zod.z.enum(["modified", "removed"]).optional().describe(
|
|
2493
|
+
"Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device."
|
|
2494
|
+
),
|
|
2495
|
+
modified_fields: zod.z.array(modified_field).optional().describe(
|
|
2496
|
+
"List of fields that were changed externally, with their previous and new values."
|
|
2497
|
+
)
|
|
2479
2498
|
}).describe(
|
|
2480
2499
|
"Code was modified or removed externally after Seam successfully set it on the device."
|
|
2481
2500
|
);
|
|
@@ -7495,6 +7514,11 @@ var openapi = {
|
|
|
7495
7514
|
{
|
|
7496
7515
|
description: "Code was modified or removed externally after Seam successfully set it on the device.",
|
|
7497
7516
|
properties: {
|
|
7517
|
+
change_type: {
|
|
7518
|
+
description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
7519
|
+
enum: ["modified", "removed"],
|
|
7520
|
+
type: "string"
|
|
7521
|
+
},
|
|
7498
7522
|
created_at: {
|
|
7499
7523
|
description: "Date and time at which Seam created the error.",
|
|
7500
7524
|
format: "date-time",
|
|
@@ -7513,6 +7537,30 @@ var openapi = {
|
|
|
7513
7537
|
message: {
|
|
7514
7538
|
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
7515
7539
|
type: "string"
|
|
7540
|
+
},
|
|
7541
|
+
modified_fields: {
|
|
7542
|
+
description: "List of fields that were changed externally, with their previous and new values.",
|
|
7543
|
+
items: {
|
|
7544
|
+
properties: {
|
|
7545
|
+
field: {
|
|
7546
|
+
description: "The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).",
|
|
7547
|
+
type: "string"
|
|
7548
|
+
},
|
|
7549
|
+
from: {
|
|
7550
|
+
description: "The previous value of the field.",
|
|
7551
|
+
nullable: true,
|
|
7552
|
+
type: "string"
|
|
7553
|
+
},
|
|
7554
|
+
to: {
|
|
7555
|
+
description: "The new value of the field.",
|
|
7556
|
+
nullable: true,
|
|
7557
|
+
type: "string"
|
|
7558
|
+
}
|
|
7559
|
+
},
|
|
7560
|
+
required: ["field", "from", "to"],
|
|
7561
|
+
type: "object"
|
|
7562
|
+
},
|
|
7563
|
+
type: "array"
|
|
7516
7564
|
}
|
|
7517
7565
|
},
|
|
7518
7566
|
required: ["message", "is_access_code_error", "error_code"],
|
|
@@ -8687,6 +8735,11 @@ var openapi = {
|
|
|
8687
8735
|
{
|
|
8688
8736
|
description: "Code was modified or removed externally after Seam successfully set it on the device.",
|
|
8689
8737
|
properties: {
|
|
8738
|
+
change_type: {
|
|
8739
|
+
description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
8740
|
+
enum: ["modified", "removed"],
|
|
8741
|
+
type: "string"
|
|
8742
|
+
},
|
|
8690
8743
|
created_at: {
|
|
8691
8744
|
description: "Date and time at which Seam created the warning.",
|
|
8692
8745
|
format: "date-time",
|
|
@@ -8696,6 +8749,30 @@ var openapi = {
|
|
|
8696
8749
|
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
8697
8750
|
type: "string"
|
|
8698
8751
|
},
|
|
8752
|
+
modified_fields: {
|
|
8753
|
+
description: "List of fields that were changed externally, with their previous and new values.",
|
|
8754
|
+
items: {
|
|
8755
|
+
properties: {
|
|
8756
|
+
field: {
|
|
8757
|
+
description: "The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).",
|
|
8758
|
+
type: "string"
|
|
8759
|
+
},
|
|
8760
|
+
from: {
|
|
8761
|
+
description: "The previous value of the field.",
|
|
8762
|
+
nullable: true,
|
|
8763
|
+
type: "string"
|
|
8764
|
+
},
|
|
8765
|
+
to: {
|
|
8766
|
+
description: "The new value of the field.",
|
|
8767
|
+
nullable: true,
|
|
8768
|
+
type: "string"
|
|
8769
|
+
}
|
|
8770
|
+
},
|
|
8771
|
+
required: ["field", "from", "to"],
|
|
8772
|
+
type: "object"
|
|
8773
|
+
},
|
|
8774
|
+
type: "array"
|
|
8775
|
+
},
|
|
8699
8776
|
warning_code: {
|
|
8700
8777
|
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
8701
8778
|
enum: ["code_modified_external_to_seam"],
|
|
@@ -31997,6 +32074,11 @@ var openapi = {
|
|
|
31997
32074
|
{
|
|
31998
32075
|
description: "Code was modified or removed externally after Seam successfully set it on the device.",
|
|
31999
32076
|
properties: {
|
|
32077
|
+
change_type: {
|
|
32078
|
+
description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
32079
|
+
enum: ["modified", "removed"],
|
|
32080
|
+
type: "string"
|
|
32081
|
+
},
|
|
32000
32082
|
created_at: {
|
|
32001
32083
|
description: "Date and time at which Seam created the error.",
|
|
32002
32084
|
format: "date-time",
|
|
@@ -32015,6 +32097,30 @@ var openapi = {
|
|
|
32015
32097
|
message: {
|
|
32016
32098
|
description: "Detailed description of the error. Provides insights into the issue and potentially how to rectify it.",
|
|
32017
32099
|
type: "string"
|
|
32100
|
+
},
|
|
32101
|
+
modified_fields: {
|
|
32102
|
+
description: "List of fields that were changed externally, with their previous and new values.",
|
|
32103
|
+
items: {
|
|
32104
|
+
properties: {
|
|
32105
|
+
field: {
|
|
32106
|
+
description: "The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).",
|
|
32107
|
+
type: "string"
|
|
32108
|
+
},
|
|
32109
|
+
from: {
|
|
32110
|
+
description: "The previous value of the field.",
|
|
32111
|
+
nullable: true,
|
|
32112
|
+
type: "string"
|
|
32113
|
+
},
|
|
32114
|
+
to: {
|
|
32115
|
+
description: "The new value of the field.",
|
|
32116
|
+
nullable: true,
|
|
32117
|
+
type: "string"
|
|
32118
|
+
}
|
|
32119
|
+
},
|
|
32120
|
+
required: ["field", "from", "to"],
|
|
32121
|
+
type: "object"
|
|
32122
|
+
},
|
|
32123
|
+
type: "array"
|
|
32018
32124
|
}
|
|
32019
32125
|
},
|
|
32020
32126
|
required: ["message", "is_access_code_error", "error_code"],
|
|
@@ -32906,6 +33012,11 @@ var openapi = {
|
|
|
32906
33012
|
{
|
|
32907
33013
|
description: "Code was modified or removed externally after Seam successfully set it on the device.",
|
|
32908
33014
|
properties: {
|
|
33015
|
+
change_type: {
|
|
33016
|
+
description: "Indicates the type of external modification. `modified` means the code's PIN or schedule was changed. `removed` means the code was deleted from the device.",
|
|
33017
|
+
enum: ["modified", "removed"],
|
|
33018
|
+
type: "string"
|
|
33019
|
+
},
|
|
32909
33020
|
created_at: {
|
|
32910
33021
|
description: "Date and time at which Seam created the warning.",
|
|
32911
33022
|
format: "date-time",
|
|
@@ -32915,6 +33026,30 @@ var openapi = {
|
|
|
32915
33026
|
description: "Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.",
|
|
32916
33027
|
type: "string"
|
|
32917
33028
|
},
|
|
33029
|
+
modified_fields: {
|
|
33030
|
+
description: "List of fields that were changed externally, with their previous and new values.",
|
|
33031
|
+
items: {
|
|
33032
|
+
properties: {
|
|
33033
|
+
field: {
|
|
33034
|
+
description: "The name of the field that was changed (e.g. `code`, `starts_at`, `ends_at`).",
|
|
33035
|
+
type: "string"
|
|
33036
|
+
},
|
|
33037
|
+
from: {
|
|
33038
|
+
description: "The previous value of the field.",
|
|
33039
|
+
nullable: true,
|
|
33040
|
+
type: "string"
|
|
33041
|
+
},
|
|
33042
|
+
to: {
|
|
33043
|
+
description: "The new value of the field.",
|
|
33044
|
+
nullable: true,
|
|
33045
|
+
type: "string"
|
|
33046
|
+
}
|
|
33047
|
+
},
|
|
33048
|
+
required: ["field", "from", "to"],
|
|
33049
|
+
type: "object"
|
|
33050
|
+
},
|
|
33051
|
+
type: "array"
|
|
33052
|
+
},
|
|
32918
33053
|
warning_code: {
|
|
32919
33054
|
description: "Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.",
|
|
32920
33055
|
enum: ["code_modified_external_to_seam"],
|