diff --git a/codegen/layouts/partials/request-object.hbs b/codegen/layouts/partials/request-object.hbs index 303e011a..5b0e1d83 100644 --- a/codegen/layouts/partials/request-object.hbs +++ b/codegen/layouts/partials/request-object.hbs @@ -1,6 +1,6 @@ { {{#each parameters}} {{> doc}} - {{json name}}{{#unless isRequired}}?{{/unless}}: {{> request-parameter-type }}{{#unless isRequired}} | undefined{{/unless}} + {{json name}}{{#unless isRequired}}?{{/unless}}: {{> request-parameter-type }}{{#if isNullable}} | null{{/if}}{{#unless isRequired}} | undefined{{/unless}} {{/each}} } diff --git a/package-lock.json b/package-lock.json index aa38d564..41aefe95 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,10 +14,10 @@ "axios-retry": "^4.4.2" }, "devDependencies": { - "@seamapi/blueprint": "^1.1.0", + "@seamapi/blueprint": "^1.5.1", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.983.0", + "@seamapi/types": "1.1001.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", "ava": "^8.0.1", @@ -102,9 +102,9 @@ } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.1.tgz", - "integrity": "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.28.2.tgz", + "integrity": "sha512-XExcO+dvLKvVtNTibSTBej1NCAbaGhWn9Ww1ZPx80qsahhPFe/8jgWP0IchNe0F3HwkU7n8ejhH8bjonqht8mQ==", "cpu": [ "ppc64" ], @@ -119,9 +119,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.1.tgz", - "integrity": "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.28.2.tgz", + "integrity": "sha512-kXXoiPVVGQcnIYGOeaovwOURpniDBpSq4A03qkQ+BMQqtGG6HYap3xne9C1O1yo4TR3qxlCX5IqqmX6fFo2Lqg==", "cpu": [ "arm" ], @@ -136,9 +136,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.1.tgz", - "integrity": "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.28.2.tgz", + "integrity": "sha512-5YfKeeI8qWfBZIX+u2xZC3Zlb3Os/gLS2sbEKM+I4ZOcsWmHS2WLysCcQZDAFRslDUU5Oiq44gf6PYN1vGwG5A==", "cpu": [ "arm64" ], @@ -153,9 +153,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.1.tgz", - "integrity": "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.28.2.tgz", + "integrity": "sha512-O387ite7SzUyCcy3JQX4P4bLtEA7bLLkx+esve5JHnyYfNTxcVpXZo9jhdB0lTKN44gztELTdU7nS8Nr16Fs1Q==", "cpu": [ "x64" ], @@ -170,9 +170,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.1.tgz", - "integrity": "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.28.2.tgz", + "integrity": "sha512-n4KqkOQrraxHJcgjM1RvwbigfQKIKJVpM7xp+KsxiyUSrRdIXnt73VhrPAx0fV44hgfmIVKjxMN9J1t5jySVkw==", "cpu": [ "arm64" ], @@ -187,9 +187,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.1.tgz", - "integrity": "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.28.2.tgz", + "integrity": "sha512-uq6suIWYP37qzGddBKPw5QEQPi6HiLGsO7UmkpfyaYNQ3D+rN6w6WfwH+nuqcGXWvawGwxOEroO4YGnFh95azw==", "cpu": [ "x64" ], @@ -204,9 +204,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.1.tgz", - "integrity": "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.28.2.tgz", + "integrity": "sha512-n+I0BTSRIoy+d6RPKnEVwql5UwBJolytvY4mAOIEJorKlqgPII8ix6slVVrfZ5Tnj7glIZvloylbB/EJPMWEXw==", "cpu": [ "arm64" ], @@ -221,9 +221,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.1.tgz", - "integrity": "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.28.2.tgz", + "integrity": "sha512-78XJTJkvPs0kz2w61301PJjXl4g7q3JqiYMZ/M/yVI73EHBrCRTgkhu9oqG7vPqq+a/yadEW8aD+agKlk5xrmg==", "cpu": [ "x64" ], @@ -238,9 +238,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.1.tgz", - "integrity": "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.28.2.tgz", + "integrity": "sha512-XlDnu2q5yoqems+xay6wSAcg9DDD7K9RLKZEBOMZm3ckNpJBvOX20tSfby8KfrrhINDyv9V2YVZKY/SpoGJI8w==", "cpu": [ "arm" ], @@ -255,9 +255,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.1.tgz", - "integrity": "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.28.2.tgz", + "integrity": "sha512-pW4AC0P3it8c7do9MVM4p51FzHzdM/TZrerurgRcHJ2WTa1VQ1CIq18xncfpBJw4ojkiZZrKW2yIBWBP92j6Ug==", "cpu": [ "arm64" ], @@ -272,9 +272,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.1.tgz", - "integrity": "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.28.2.tgz", + "integrity": "sha512-CYbnj78HsIeA+DhgUKgFCfvNsTHFhMMrinUrMZpDXJXKN8T3XViTZ/+wtHeVxEWY8ewSzTFN+nRmSwO2tZaLUQ==", "cpu": [ "ia32" ], @@ -289,9 +289,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.1.tgz", - "integrity": "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.28.2.tgz", + "integrity": "sha512-buwkd8nsph4R+ajRvw0qM5Hja/TXQow3ptzWO2EbG/cqcIkHloRrdlBtQlshyYGTNFvfkfJ5tpPLVkY4DtsPfQ==", "cpu": [ "loong64" ], @@ -306,9 +306,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.1.tgz", - "integrity": "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.28.2.tgz", + "integrity": "sha512-ZVykbDyk7519VwiNb9Lcj9m8XM6v5V9uKPvrEMkkEedVewf+0itkhahp4HDpgERXhwLRpWFypsGbG/J8s0QjJA==", "cpu": [ "mips64el" ], @@ -323,9 +323,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.1.tgz", - "integrity": "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.28.2.tgz", + "integrity": "sha512-CAXl+Dtd9UUuJd8pKKdwh6MLm3MUMiqMPmhZ3tTSXPqfyQ3vDl6R5hZdZ/kYojK4ofXtdfSv1tFq8XzWx3heNQ==", "cpu": [ "ppc64" ], @@ -340,9 +340,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.1.tgz", - "integrity": "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.28.2.tgz", + "integrity": "sha512-GeXCej4IQtU1B+QlDV8W/RRvbzI3O/Stss+/bCXv4lZls5WGRtu2a+3JkA3i4qIUlMXpcHebWpF8AkJhATowuA==", "cpu": [ "riscv64" ], @@ -357,9 +357,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.1.tgz", - "integrity": "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.28.2.tgz", + "integrity": "sha512-3H1weTYZPxt/WOhByszQZybS9w5lKzUn1FDMsgEChbHWQwHYQQRfBxgCcZvPhjHfKyJjIievvMmEUawJrdY9Dg==", "cpu": [ "s390x" ], @@ -374,9 +374,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.1.tgz", - "integrity": "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.28.2.tgz", + "integrity": "sha512-4xTZr1FUmSoQW4XIWmit3tzQrUTZM+N3P0XV8xROKYF50XfI7xeO90+1bZvNwxIufQ9hDQVRJH5YhgPVF8A/HQ==", "cpu": [ "x64" ], @@ -391,9 +391,9 @@ } }, "node_modules/@esbuild/netbsd-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.1.tgz", - "integrity": "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.28.2.tgz", + "integrity": "sha512-sSATRjPeDBg3pdgHoQfoYBob11Kk1FGa9lui5RIHZCoCkJa9QKlvl3/vKz2usCmYYjs7ymJR/2Nnsqe+Hjt5nw==", "cpu": [ "arm64" ], @@ -408,9 +408,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.1.tgz", - "integrity": "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.28.2.tgz", + "integrity": "sha512-lqnzCV+mM0gIADaKihiCg6ifgfU2L3h5E33rNQBN1Y4MaVGnzryzmvvf7UHxprpQdE8hpqLolJ9Rl+SkIRDpyw==", "cpu": [ "x64" ], @@ -425,9 +425,9 @@ } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.1.tgz", - "integrity": "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.28.2.tgz", + "integrity": "sha512-AL2qJILH7lNjrDmCQDvdxMfAUIv8KMNZOvrwAQ8i8//ntL9FflhOyMJ8OZSMBb8/AWXe3/5v5S20y3zCoZWKoQ==", "cpu": [ "arm64" ], @@ -442,9 +442,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.1.tgz", - "integrity": "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.28.2.tgz", + "integrity": "sha512-QtiuPytchRyC4rwUKhexJdQKvDuZ6hWloi3igqPQNUJCS1/v9EiO3UTOXR6A3FoMo4fnAKbWJdqaIwhOzh8qEw==", "cpu": [ "x64" ], @@ -459,9 +459,9 @@ } }, "node_modules/@esbuild/openharmony-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.1.tgz", - "integrity": "sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.28.2.tgz", + "integrity": "sha512-WkhYDmpTjLvGlScA1rwjRUmhl4k8oXR3cIbtqWmELgU/dFeHHlEllxDvdWcNJV9rbzCexB5vz8gtNewWLgCT7Q==", "cpu": [ "arm64" ], @@ -476,9 +476,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.1.tgz", - "integrity": "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.28.2.tgz", + "integrity": "sha512-GPMSkTOtMnv2U2F8gxe4Io6qmVs+YKyp832Etqqxr0hFngmXQ3rzwytelm3GIn7T4VviRUlf3sOgBOiTdvaf7g==", "cpu": [ "x64" ], @@ -493,9 +493,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.1.tgz", - "integrity": "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.28.2.tgz", + "integrity": "sha512-PIhhEkE9uPBleRBrQEJpUn7MBnibZzbGzYWPmY3x+YoVg/95zbjB4CxPPOQ8l5tYYM4mMaCthF8/1DIfBQQyWQ==", "cpu": [ "arm64" ], @@ -510,9 +510,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.1.tgz", - "integrity": "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.28.2.tgz", + "integrity": "sha512-YmJbfTlvU7Sdn9BB+4PRES4oB6pxgS37MAONj+hBr/cpXS1aBPKXxNnDbu+QCWPj0o9dgyxeq79g6c5P8KeuYA==", "cpu": [ "ia32" ], @@ -527,9 +527,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.1.tgz", - "integrity": "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.28.2.tgz", + "integrity": "sha512-5ebpxr3nWMzrL/rnUI755Jkuee0bHL/Gq0WTF9lvcpv73wAp5eu8MfBUgWK9bhWvZjj7yX8etf/8tI8Ney695g==", "cpu": [ "x64" ], @@ -910,9 +910,9 @@ } }, "node_modules/@napi-rs/wasm-runtime": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.2.tgz", - "integrity": "sha512-JfB4kuJQjaoHuCTseIINHtHWeJnvgEcxjwA5t/Y00ZgaOO1Crz3fjT/p8kT28zA/Caz7oiUMn3d6H2yOVCVwuw==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.3.tgz", + "integrity": "sha512-UMduMbqO5s5zF2NkNacMT/yK5Y5QiKvWr2+50bzIIxFDwVJ2h49b+oyjaCGPhJxd2/gC2x39EHv/gHVuu36x2Q==", "dev": true, "license": "MIT", "optional": true, @@ -927,8 +927,8 @@ "url": "https://github.com/sponsors/Brooooooklyn" }, "peerDependencies": { - "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.3", - "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.3" + "@emnapi/core": "^1.7.1 || ^2.0.0-alpha.4", + "@emnapi/runtime": "^1.7.1 || ^2.0.0-alpha.4" } }, "node_modules/@nodelib/fs.scandir": { @@ -1025,9 +1025,9 @@ "license": "MIT" }, "node_modules/@seamapi/blueprint": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.1.0.tgz", - "integrity": "sha512-wX1HZkA/IK9hDQ6Qdxw5Mo+Ysfh82p9IEXQJafakO9VMbszW6n1U02eEhZHVY3CfzN/duk6t9h1veX0zRlhWBQ==", + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@seamapi/blueprint/-/blueprint-1.5.1.tgz", + "integrity": "sha512-rXHMNDGmaE7OK+tg3e64DnpMHQypN4BuSS+PkVqGUoYc9f+xBMONqPscsHAGi9iU/iyZOJZKEOKOXvMmWaLoLA==", "dev": true, "license": "MIT", "dependencies": { @@ -1035,8 +1035,8 @@ "zod": "^3.23.8" }, "engines": { - "node": ">=22.11.0", - "npm": ">=10.9.4" + "node": ">=22.12.0", + "npm": ">=10.0.0" } }, "node_modules/@seamapi/fake-devicedb": { @@ -1109,27 +1109,27 @@ } }, "node_modules/@seamapi/types": { - "version": "1.983.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.983.0.tgz", - "integrity": "sha512-SMkfn1SVC70x67mtRAvLMJtpFh/0zaStLatb6LA+kz9n/rV1gBS/UlH8SzBFg7iStE22f/VPjkdltHTIY1paoA==", + "version": "1.1001.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.1001.0.tgz", + "integrity": "sha512-pwIEqMYCdOLlIHUzzLlMq/4K6QwAM3kWXooSxNWOlPyCeWk21SvrbTN/joXwZtky504g3unLPKMbFad1mlQyfQ==", "dev": true, "license": "MIT", "engines": { - "node": ">=22.11.0", - "npm": ">=10.9.4" + "node": ">=22.12.0", + "npm": ">=10.0.0" }, "peerDependencies": { "zod": "^3.24.0" } }, "node_modules/@seamapi/url-search-params-serializer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@seamapi/url-search-params-serializer/-/url-search-params-serializer-3.0.0.tgz", - "integrity": "sha512-YCIeXduVh6pAUBGImTShnPKlz79wr0GnTlI7vp6DDhDNRI8EhOFHzYd1+8qQKeul1QmIckKBE3Nz5E0Prg2saQ==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@seamapi/url-search-params-serializer/-/url-search-params-serializer-3.0.3.tgz", + "integrity": "sha512-orquLaJ0mtrZvKRpobkXza0vRDqzkKcOszlswkWYYQKNpdolXE3+msD63757s6jodeypbHXpMlC4UZQe8WmPlQ==", "license": "MIT", "engines": { - "node": ">=20.9.0", - "npm": ">=10.1.0" + "node": ">=22.12.0", + "npm": ">=10.0.0" } }, "node_modules/@sec-ant/readable-stream": { @@ -1323,17 +1323,17 @@ "license": "MIT" }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.65.0.tgz", - "integrity": "sha512-IEgob78X12rHpUmtcwFsXhZdVGJtwTVP8FiCLZkR6GlYVrl2PcuB+KhCE5BlVC/eQpQnu8WXRtkHZuPar+gCRA==", + "version": "8.67.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.67.0.tgz", + "integrity": "sha512-Un7Heoyj65NREbKAyIrFxeM143NZpExWmy1Nep4DLeQOeLlTeumPjoNKnBrU5D5moWXbPJgRa5Uwcdu0faVNGQ==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/regexpp": "^4.12.2", - "@typescript-eslint/scope-manager": "8.65.0", - "@typescript-eslint/type-utils": "8.65.0", - "@typescript-eslint/utils": "8.65.0", - "@typescript-eslint/visitor-keys": "8.65.0", + "@typescript-eslint/scope-manager": "8.67.0", + "@typescript-eslint/type-utils": "8.67.0", + "@typescript-eslint/utils": "8.67.0", + "@typescript-eslint/visitor-keys": "8.67.0", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" @@ -1346,7 +1346,7 @@ "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "@typescript-eslint/parser": "^8.65.0", + "@typescript-eslint/parser": "^8.67.0", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } @@ -1362,16 +1362,16 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.65.0.tgz", - "integrity": "sha512-CZ4nMxWwgu1HEEFNkeaCptra9QCtkmKdgf3sWh1rl1trIhmxLilgTV4cwcbQ4wemnT4sWQN8CaKOmdYx+g2gMA==", + "version": "8.67.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.67.0.tgz", + "integrity": "sha512-fUBfTuuEulWqX6V8+O3PtScV01tzYYRUDTAirHFKoRAt7nOzoGiPt0M/bB47wWNy0coOOcgEwAMUtBpykMxl6w==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/scope-manager": "8.65.0", - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/typescript-estree": "8.65.0", - "@typescript-eslint/visitor-keys": "8.65.0", + "@typescript-eslint/scope-manager": "8.67.0", + "@typescript-eslint/types": "8.67.0", + "@typescript-eslint/typescript-estree": "8.67.0", + "@typescript-eslint/visitor-keys": "8.67.0", "debug": "^4.4.3" }, "engines": { @@ -1387,14 +1387,14 @@ } }, "node_modules/@typescript-eslint/project-service": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.65.0.tgz", - "integrity": "sha512-SxnPhbTsGahizDgbu7oqFH/xVtzIqMd/s+WtnSxNxJZJpLbdT5IPdzg8EZxO3+PoKahXmwJLeNQOpKJb3/bi7Q==", + "version": "8.67.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.67.0.tgz", + "integrity": "sha512-cvE8c7ulYeXN9fYuszhCeCsbzyVEXuhrRCybnBre7TUmqb5nRmBfQAwCj0O3WJFDeyAZt4VYv51vMCC9LHSdYw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/tsconfig-utils": "^8.65.0", - "@typescript-eslint/types": "^8.65.0", + "@typescript-eslint/tsconfig-utils": "^8.67.0", + "@typescript-eslint/types": "^8.67.0", "debug": "^4.4.3" }, "engines": { @@ -1409,14 +1409,14 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.65.0.tgz", - "integrity": "sha512-Esbl8OSYiVxBokYgWPf7VVWg/BE798wXhimnn9ML9Pt5qoDf8bfQlgjlKXR/k98+AcNzlLKYrpCcrcuZ9DZLgg==", + "version": "8.67.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.67.0.tgz", + "integrity": "sha512-EgvsleTwS4E+WzzSvem8fAUubLwatMNF1B5hHSLQxcvs7q2dtRhGyujHwLJSYlG41niJ7GP24Aha2+0mb1b2kg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/visitor-keys": "8.65.0" + "@typescript-eslint/types": "8.67.0", + "@typescript-eslint/visitor-keys": "8.67.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1427,9 +1427,9 @@ } }, "node_modules/@typescript-eslint/tsconfig-utils": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.65.0.tgz", - "integrity": "sha512-j6GzGqCiRdA7Qhur2VVmKZAkBLfnHFQfx4TaJGL9RMveZqCo48jSHHO0DTgizEnGhtWnqmbtCUSrqSkdiY/0Hg==", + "version": "8.67.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.67.0.tgz", + "integrity": "sha512-vV+LUSv5njUWsknE71fqKTlXUva+R76SaeORd6Zojcunk/6DvKFXONU3BrAs2H49mbygUXt6gbYunzwqNwlhdg==", "dev": true, "license": "MIT", "engines": { @@ -1444,15 +1444,15 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.65.0.tgz", - "integrity": "sha512-YjaZ7PRI5qY7ax2L3PbvX0rRyGtipAReCWs0mhhDBHjH/vl0g0BonaGXrKdKpMbIIsMIwDgbk/xzkBTyAltS5g==", + "version": "8.67.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.67.0.tgz", + "integrity": "sha512-aVWDXbRmdXO9siTfX4ditQI1T9+zVcNazT48EJCD0v40/9RIFoUgZ05CmGEq9H2gixRpjUn/iplwvlcvutJW/Q==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/typescript-estree": "8.65.0", - "@typescript-eslint/utils": "8.65.0", + "@typescript-eslint/types": "8.67.0", + "@typescript-eslint/typescript-estree": "8.67.0", + "@typescript-eslint/utils": "8.67.0", "debug": "^4.4.3", "ts-api-utils": "^2.5.0" }, @@ -1469,9 +1469,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.65.0.tgz", - "integrity": "sha512-JSSwWNy+H0E/01jJEM+hrX6N0OFDzFzeIhHFSAS01tlVaevpG8cFyYRPhS5yjGOvBUx3sqQHVMjCL1CAZZMxBg==", + "version": "8.67.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.67.0.tgz", + "integrity": "sha512-sBtgslww8nsMYUjhdPBiSyUqSzT8uR6g93A2QXnQC8+cGdjz0CyaOdqHDRJb1AtORbZCNUJBBeFA/tNR2uQmww==", "dev": true, "license": "MIT", "engines": { @@ -1483,16 +1483,16 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.65.0.tgz", - "integrity": "sha512-JboAE2swaYt4tb1fHhHTABE2K+OLy09XfcTbhnk4Pw96f9dd2e9iYsJ28gBggHlo5z5x1rkyWvcPoTuNTd4oGg==", + "version": "8.67.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.67.0.tgz", + "integrity": "sha512-EKQBCE9yNlRJYm7jdTW5AhDacDUmSwQb0FAJAmK2EKYrNXIsa2vxcSZx6PvJ/dEdI6lS+Y9W+EXckLj0iPFGcw==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/project-service": "8.65.0", - "@typescript-eslint/tsconfig-utils": "8.65.0", - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/visitor-keys": "8.65.0", + "@typescript-eslint/project-service": "8.67.0", + "@typescript-eslint/tsconfig-utils": "8.67.0", + "@typescript-eslint/types": "8.67.0", + "@typescript-eslint/visitor-keys": "8.67.0", "debug": "^4.4.3", "minimatch": "^10.2.2", "semver": "^7.7.3", @@ -1521,9 +1521,9 @@ } }, "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz", - "integrity": "sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==", + "version": "5.0.9", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz", + "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==", "dev": true, "license": "MIT", "dependencies": { @@ -1550,16 +1550,16 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.65.0.tgz", - "integrity": "sha512-gXiwIHsYreboxeJucHKPvgwl7dXt50mF8s1/c00cP/WoVTyWKFdtfhRWwZiXYFU5H2O8vVoSLNrexFZjYS/SGA==", + "version": "8.67.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.67.0.tgz", + "integrity": "sha512-U9D1FdwEWBwok3hxxSdhclMb0twvt9QnjIQ0VfQ1AiX2epnpSgv2ubVDsayOFyY8K6FX+AQ7E0FKWVG3iKsj1A==", "dev": true, "license": "MIT", "dependencies": { "@eslint-community/eslint-utils": "^4.9.1", - "@typescript-eslint/scope-manager": "8.65.0", - "@typescript-eslint/types": "8.65.0", - "@typescript-eslint/typescript-estree": "8.65.0" + "@typescript-eslint/scope-manager": "8.67.0", + "@typescript-eslint/types": "8.67.0", + "@typescript-eslint/typescript-estree": "8.67.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" @@ -1574,13 +1574,13 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.65.0.tgz", - "integrity": "sha512-8C71BQkGjiMmXtop7pHVJu1l2NNShFdkCyD6a2ezzs5vU/L3LRtb69EtcteFwz0mYMPzIgOw0n6OV4VBUWZd7A==", + "version": "8.67.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.67.0.tgz", + "integrity": "sha512-fkv8dHRDqfGtTHuJeebdrQ7cX6Ad4WAS00rgHh9UGvMycF1mjBfsxry1XsLIFhWZ6Judlh6UdzK+TYlbpCXgnA==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/types": "8.65.0", + "@typescript-eslint/types": "8.67.0", "eslint-visitor-keys": "^5.0.0" }, "engines": { @@ -1998,9 +1998,9 @@ } }, "node_modules/acorn": { - "version": "8.17.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.17.0.tgz", - "integrity": "sha512-xRQbDb9BnwDafYNn6Vwl839DYVjqXYb1XVGtWAZ1kcDc6iwAL4hg3B1dZlRiuENFeO2H53gFG3in621AdERVAg==", + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.18.0.tgz", + "integrity": "sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==", "dev": true, "license": "MIT", "bin": { @@ -2071,9 +2071,9 @@ } }, "node_modules/ansi-regex": { - "version": "6.2.2", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz", - "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.3.0.tgz", + "integrity": "sha512-WpDfL7NO6j7tH88IDBNVdUJxDh9nmCteAVW9dsep846XdwF4naCBK+/tGLX3KJgcpgMRXCFlTM2hKGoK9FsdrQ==", "dev": true, "license": "MIT", "engines": { @@ -2454,13 +2454,13 @@ } }, "node_modules/axios": { - "version": "1.18.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.18.1.tgz", - "integrity": "sha512-3nTvFlvpn9Zu/RkHUqtc7/+al4UpRW5az71ap5zccp6e8RAYEzhMTecX8Dz1wWDYrPpUoB1HAQEGEAEvUr7S9g==", + "version": "1.19.0", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.19.0.tgz", + "integrity": "sha512-ht/iuYZXEjFxLH/Hkezgd7m6JKlHHXEUSneaDz8uZe1Gj5QZtCnpyDsckvAiEnT89OEbCLmnte4R4sn7P0EKFw==", "license": "MIT", "dependencies": { "follow-redirects": "^1.16.0", - "form-data": "^4.0.5", + "form-data": "^4.0.6", "https-proxy-agent": "^5.0.1", "proxy-from-env": "^2.1.0" } @@ -2561,9 +2561,9 @@ "license": "MIT" }, "node_modules/brace-expansion": { - "version": "1.1.16", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.16.tgz", - "integrity": "sha512-IDw48K2/2kRkg9LdJxurvq3lV3aBgq0REY89duEqFRthjlPdXHKMj7EnQOXVckxzgisinf3nHfrcE2FufFLXMw==", + "version": "1.1.18", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.18.tgz", + "integrity": "sha512-Edep/X9fGqVNmzKBVsDYIOtD+z1tuezV70LBjdCst9Tqu76lsnvRiZ6oTic1n+/BIwX6QDGAO94PN4N2SADvtw==", "dev": true, "license": "MIT", "dependencies": { @@ -3370,9 +3370,9 @@ } }, "node_modules/enhanced-resolve": { - "version": "5.24.3", - "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.24.3.tgz", - "integrity": "sha512-PwKooW9JUzh5chmYfHM3IQl5OkK2u2Nm011MgeZrss3JmFraUx/fqrf78kk8GUMYoibx/14MdwTl/1WKkG7TpQ==", + "version": "5.24.5", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.24.5.tgz", + "integrity": "sha512-L1l8TNvomm6UVW5B253AGxQagSQr+vGwhMlrrfRS2qmhx46AMpMVJKQYLvWYbysTMY8VoicOvzHzoHMbyzB+4A==", "dev": true, "license": "MIT", "dependencies": { @@ -3592,9 +3592,9 @@ } }, "node_modules/esbuild": { - "version": "0.28.1", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.1.tgz", - "integrity": "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==", + "version": "0.28.2", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.28.2.tgz", + "integrity": "sha512-HKVLS8dvII+xoKW9kmqxbRKrnWEXfJJr/FZhhJmiqIB0e053QNYFqOBouTMO/k5sID4MvCiUCvv8b9M4h32wIA==", "dev": true, "hasInstallScript": true, "license": "MIT", @@ -3605,32 +3605,32 @@ "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.28.1", - "@esbuild/android-arm": "0.28.1", - "@esbuild/android-arm64": "0.28.1", - "@esbuild/android-x64": "0.28.1", - "@esbuild/darwin-arm64": "0.28.1", - "@esbuild/darwin-x64": "0.28.1", - "@esbuild/freebsd-arm64": "0.28.1", - "@esbuild/freebsd-x64": "0.28.1", - "@esbuild/linux-arm": "0.28.1", - "@esbuild/linux-arm64": "0.28.1", - "@esbuild/linux-ia32": "0.28.1", - "@esbuild/linux-loong64": "0.28.1", - "@esbuild/linux-mips64el": "0.28.1", - "@esbuild/linux-ppc64": "0.28.1", - "@esbuild/linux-riscv64": "0.28.1", - "@esbuild/linux-s390x": "0.28.1", - "@esbuild/linux-x64": "0.28.1", - "@esbuild/netbsd-arm64": "0.28.1", - "@esbuild/netbsd-x64": "0.28.1", - "@esbuild/openbsd-arm64": "0.28.1", - "@esbuild/openbsd-x64": "0.28.1", - "@esbuild/openharmony-arm64": "0.28.1", - "@esbuild/sunos-x64": "0.28.1", - "@esbuild/win32-arm64": "0.28.1", - "@esbuild/win32-ia32": "0.28.1", - "@esbuild/win32-x64": "0.28.1" + "@esbuild/aix-ppc64": "0.28.2", + "@esbuild/android-arm": "0.28.2", + "@esbuild/android-arm64": "0.28.2", + "@esbuild/android-x64": "0.28.2", + "@esbuild/darwin-arm64": "0.28.2", + "@esbuild/darwin-x64": "0.28.2", + "@esbuild/freebsd-arm64": "0.28.2", + "@esbuild/freebsd-x64": "0.28.2", + "@esbuild/linux-arm": "0.28.2", + "@esbuild/linux-arm64": "0.28.2", + "@esbuild/linux-ia32": "0.28.2", + "@esbuild/linux-loong64": "0.28.2", + "@esbuild/linux-mips64el": "0.28.2", + "@esbuild/linux-ppc64": "0.28.2", + "@esbuild/linux-riscv64": "0.28.2", + "@esbuild/linux-s390x": "0.28.2", + "@esbuild/linux-x64": "0.28.2", + "@esbuild/netbsd-arm64": "0.28.2", + "@esbuild/netbsd-x64": "0.28.2", + "@esbuild/openbsd-arm64": "0.28.2", + "@esbuild/openbsd-x64": "0.28.2", + "@esbuild/openharmony-arm64": "0.28.2", + "@esbuild/sunos-x64": "0.28.2", + "@esbuild/win32-arm64": "0.28.2", + "@esbuild/win32-ia32": "0.28.2", + "@esbuild/win32-x64": "0.28.2" } }, "node_modules/escalade": { @@ -4109,19 +4109,6 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/eslint/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/espree": { "version": "10.4.0", "resolved": "https://registry.npmjs.org/espree/-/espree-10.4.0.tgz", @@ -4228,9 +4215,9 @@ } }, "node_modules/execa": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-10.0.0.tgz", - "integrity": "sha512-Cxl6MKxB1dr1H0FHmiizJ+lavKF7pV+fcDZFyqMB8d5m7qUPm/OtZYcD5vPWePKxSnTQ57KuBd9mtdZ3oNCvyQ==", + "version": "10.0.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-10.0.1.tgz", + "integrity": "sha512-ge98qjkRK4IB7tL7Ju/6qmm5LHoH1eEMt5FNZrz3f4UIYhF28lggX20z3FaX1sgc67msLEn0N0BscOs29iuwyw==", "dev": true, "license": "MIT", "dependencies": { @@ -4241,7 +4228,6 @@ "is-plain-obj": "^4.1.0", "is-stream": "^4.0.1", "npm-run-path": "^6.0.0", - "path-key": "^4.0.0", "pretty-ms": "^9.3.0", "signal-exit": "^4.1.0", "strip-final-newline": "^4.0.0", @@ -4255,19 +4241,6 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/execa/node_modules/path-key": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-4.0.0.tgz", - "integrity": "sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/extend-shallow": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", @@ -4510,9 +4483,9 @@ } }, "node_modules/flatted": { - "version": "3.4.3", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.3.tgz", - "integrity": "sha512-/zipXxyO6rGvuNGDiULY9MvEGSkb2gaG4GGH4ygMi0ZZzyMHdUZBmntJmx5x1G2VuPytCwGN4xsJP6cw+sK+vQ==", + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", + "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", "dev": true, "license": "ISC" }, @@ -4769,9 +4742,9 @@ } }, "node_modules/get-tsconfig": { - "version": "4.14.0", - "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.0.tgz", - "integrity": "sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==", + "version": "4.14.2", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.2.tgz", + "integrity": "sha512-XpwZALwwl/BaKTAyC6+c5T8y6kCg2jk+XGqOVrKIQmW49pNypYLMRjCUXqa28tQgJlhS2RlzP7sc+Rx7W6qsfw==", "dev": true, "license": "MIT", "dependencies": { @@ -4823,9 +4796,9 @@ } }, "node_modules/glob/node_modules/brace-expansion": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz", - "integrity": "sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==", + "version": "5.0.9", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz", + "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==", "dev": true, "license": "MIT", "dependencies": { @@ -4882,9 +4855,9 @@ } }, "node_modules/globby": { - "version": "16.2.2", - "resolved": "https://registry.npmjs.org/globby/-/globby-16.2.2.tgz", - "integrity": "sha512-NLvV9ubZ6NDsJaOpKPy3cQeJpKi9DcWiyCiFUpJPA0YihRqiE6RWaLUmgNNPr8MgPpLZjnBjSmou7uZBRJv9wA==", + "version": "16.2.3", + "resolved": "https://registry.npmjs.org/globby/-/globby-16.2.3.tgz", + "integrity": "sha512-VZX7TV7jmd/pn71vdnLKtgwy1IWqc3KjI9x1/UtPkwoKk5fKrNLY30ltDe3cAM5xruIN7YuuaulFt133jRrKZg==", "dev": true, "license": "MIT", "dependencies": { @@ -4967,9 +4940,9 @@ } }, "node_modules/gray-matter/node_modules/js-yaml": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.0.tgz", - "integrity": "sha512-ttBQIIQPDeLjpPOohtUdXuXUVoA2uIB6fEH9HyJ7234s5mBJ5wTx20njxplLZQgLaOfpmPQA7X2t5AX6tIPbog==", + "version": "3.15.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.1.tgz", + "integrity": "sha512-S99WuO3HlhO3XN41EtYUNl9zzXjoJx7QvmipxsJVxtCBT0YHEFy+iOJhjSvrmV12nYhWpZaM8lPHkJm0yUMbag==", "dev": true, "license": "MIT", "peer": true, @@ -5107,9 +5080,9 @@ } }, "node_modules/help-me/node_modules/brace-expansion": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.2.tgz", - "integrity": "sha512-w5JZcKgdhDOgOwm8H+KgbosopHMuGcl6qbulwjtz3SM7I7P3yW1eAjzMPLrIE+NQ9vjgANKHWeMHnrT0OXW1oA==", + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.1.4.tgz", + "integrity": "sha512-hGfVzPxthbf3+2yjg/RBs60cB0FhqBS/zvdV/4wn4/BmN0bNMMHPc4V/BbFieqf1TKAGGAHnY4eSjajCl0f2Xg==", "dev": true, "license": "MIT", "dependencies": { @@ -5954,19 +5927,6 @@ "node": ">=10" } }, - "node_modules/istanbul-lib-report/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "license": "MIT", - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/istanbul-reports": { "version": "3.2.0", "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", @@ -6037,9 +5997,9 @@ "license": "MIT" }, "node_modules/js-yaml": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.0.tgz", - "integrity": "sha512-1td788aAnnZ5qs7V2QIRl1owjtYpbKt749Y3xauqQgwIIGF/xXWz1wMTEBx5O3LK3lXLVuqXPdPxj2BoFHaW9Q==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.3.1.tgz", + "integrity": "sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ==", "dev": true, "funding": [ { @@ -6907,9 +6867,9 @@ } }, "node_modules/neostandard/node_modules/globals": { - "version": "17.8.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-17.8.0.tgz", - "integrity": "sha512-Zz/LMDZScFmkakeL2cTHzf+PbWKdpU3uclqkZT7TjDG58j5WPt0PpA+n9uPI24fZtlw07q0OtEi84K+umsRzqQ==", + "version": "17.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-17.11.0.tgz", + "integrity": "sha512-Z2I8hM+PbJDXQDq3Icgpzv+mPdwr68iZUU9d5WW4FuXfDUQfkZaZuvjMv42/5crNyw154+9+VWXbYrUgDXbxNw==", "dev": true, "license": "MIT", "engines": { @@ -6994,9 +6954,9 @@ } }, "node_modules/nock": { - "version": "14.0.16", - "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.16.tgz", - "integrity": "sha512-8r4KEc6nT1D/fdLD/R1BO1CPaVEL8o40u/guFRJlXabN7vr3RmMqyjsY5Krt0nMwhsOAwXQ/mtN5vy5Jh3aErg==", + "version": "14.0.17", + "resolved": "https://registry.npmjs.org/nock/-/nock-14.0.17.tgz", + "integrity": "sha512-EjRr1weMa4ALQX35AgZTEnP+weJJjlW1KGDiNM2IQC2069YDHas4f4B4UUYR+TTLyKWxJvOz2wObDKQs/LNreA==", "dev": true, "license": "MIT", "dependencies": { @@ -8675,9 +8635,9 @@ } }, "node_modules/supertap/node_modules/js-yaml": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.0.tgz", - "integrity": "sha512-ttBQIIQPDeLjpPOohtUdXuXUVoA2uIB6fEH9HyJ7234s5mBJ5wTx20njxplLZQgLaOfpmPQA7X2t5AX6tIPbog==", + "version": "3.15.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.15.1.tgz", + "integrity": "sha512-S99WuO3HlhO3XN41EtYUNl9zzXjoJx7QvmipxsJVxtCBT0YHEFy+iOJhjSvrmV12nYhWpZaM8lPHkJm0yUMbag==", "dev": true, "license": "MIT", "dependencies": { @@ -8688,6 +8648,19 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", @@ -8768,9 +8741,9 @@ } }, "node_modules/test-exclude/node_modules/brace-expansion": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz", - "integrity": "sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==", + "version": "5.0.9", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz", + "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==", "dev": true, "license": "MIT", "dependencies": { @@ -9038,9 +9011,9 @@ "optional": true }, "node_modules/tsx": { - "version": "4.23.1", - "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.1.tgz", - "integrity": "sha512-GQHnkIfxyx1wYCOS/wonik5MVRZU9hi1TEZmzGZSCJB1y9YgoZ8H6itNE/u4suE+yLmOzuE4E5S4TZ/ZX2wcWQ==", + "version": "4.23.12", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.23.12.tgz", + "integrity": "sha512-FDf4L4sYzKtzWYhU/Xm0AQFdTjdIxNo9ElTf2mxXM6k8YMHXzYUe4yODVaXP4V9uMFbVg8c0qyBccK2OOxb45Q==", "dev": true, "license": "MIT", "dependencies": { @@ -9195,9 +9168,9 @@ } }, "node_modules/typedoc/node_modules/brace-expansion": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.8.tgz", - "integrity": "sha512-JZyDyq3D4AUifKTPOB7DELf6XsB3WdPuNxCtob1vFXPsSXhdAiHBWJ/tJ8HAc9aH84BK+5JFZLNkJKx3G9kzQg==", + "version": "5.0.9", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.9.tgz", + "integrity": "sha512-ScQ4IuvIEF1TMlP7Zt+vjJ//9zlPb2SDcxWxM3bk8s6t6GGdJ7KO1dCcTidOPJKePW30LE/2cT7wCyPho9/Wxg==", "dev": true, "license": "MIT", "dependencies": { @@ -9238,16 +9211,16 @@ } }, "node_modules/typescript-eslint": { - "version": "8.65.0", - "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.65.0.tgz", - "integrity": "sha512-/ggrHAwyjENDusvyxbuqxAC2dTnZg/Z8F+fgQtYIz+L6n/9HfSlEZcFGV/NsMNa6CkGk0xUjUAFwC0vHOflvIA==", + "version": "8.67.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.67.0.tgz", + "integrity": "sha512-S2udFs8tCKEKffuJ4TB1idGUZiXdCPGi3IPBGWXarbLQ5UPXORV8QEVzJ4gCRduURMb5EkpNCdjbk0eDIuI8Yg==", "dev": true, "license": "MIT", "dependencies": { - "@typescript-eslint/eslint-plugin": "8.65.0", - "@typescript-eslint/parser": "8.65.0", - "@typescript-eslint/typescript-estree": "8.65.0", - "@typescript-eslint/utils": "8.65.0" + "@typescript-eslint/eslint-plugin": "8.67.0", + "@typescript-eslint/parser": "8.67.0", + "@typescript-eslint/typescript-estree": "8.67.0", + "@typescript-eslint/utils": "8.67.0" }, "engines": { "node": "^18.18.0 || ^20.9.0 || >=21.1.0" diff --git a/package.json b/package.json index 4b54f9d6..b25b4640 100644 --- a/package.json +++ b/package.json @@ -84,10 +84,10 @@ "axios-retry": "^4.4.2" }, "devDependencies": { - "@seamapi/blueprint": "^1.1.0", + "@seamapi/blueprint": "^1.5.1", "@seamapi/fake-seam-connect": "^1.77.0", "@seamapi/smith": "^1.1.0", - "@seamapi/types": "1.983.0", + "@seamapi/types": "1.1001.0", "@types/jsonwebtoken": "^9.0.6", "@types/node": "^24.10.9", "ava": "^8.0.1", diff --git a/src/lib/resources/access-code.ts b/src/lib/resources/access-code.ts index 6b4a1065..b156c55f 100644 --- a/src/lib/resources/access-code.ts +++ b/src/lib/resources/access-code.ts @@ -275,29 +275,35 @@ export type AccessCode = { */ message: string } /** - * Admin role required—insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN. + * Indicates that the account is disconnected. */ | { /** * Date and time at which Seam created the error. */ - created_at?: string | undefined + created_at: string + /** * Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'insufficient_permissions' + error_code: 'account_disconnected' /** - * Indicates that this is an access code error. + * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */ - is_access_code_error: boolean + is_connected_account_error: boolean + + /** + * Indicates that the error is not a device error. + */ + is_device_error: boolean /** * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string } /** - * Indicates that the account is disconnected. + * Indicates that the Salto site user limit has been reached. */ | { /** @@ -308,7 +314,7 @@ export type AccessCode = { /** * Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'account_disconnected' + error_code: 'salto_ks_subscription_limit_exceeded' /** * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. @@ -325,7 +331,7 @@ export type AccessCode = { */ message: string } /** - * Indicates that the Salto site user limit has been reached. + * Indicates that Seam's integration user does not have sufficient permissions on the provider's system to which this device belongs, so Seam cannot manage access codes or unlock the device. See the error message for specifics, then either reauthorize the connected account in Seam or grant the integration user the required permissions in the provider's system. */ | { /** @@ -336,7 +342,7 @@ export type AccessCode = { /** * Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'salto_ks_subscription_limit_exceeded' + error_code: 'insufficient_permissions' /** * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. diff --git a/src/lib/resources/acs-credential.ts b/src/lib/resources/acs-credential.ts index 83d573b8..4e927e64 100644 --- a/src/lib/resources/acs-credential.ts +++ b/src/lib/resources/acs-credential.ts @@ -36,6 +36,17 @@ export type AcsCredential = { * ID of the [ACS user](https://docs.seam.co/low-level-apis/access-systems/user-management) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs. */ acs_user_id?: string | undefined + /** + * Akiles-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). + */ + akiles_metadata?: + | { + /** + * ID of the Akiles member PIN. + */ + member_pin_id?: string | undefined + } + | undefined /** * Vostio-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). */ @@ -125,6 +136,7 @@ export type AcsCredential = { | 'salto_ks_tag' | 'avigilon_alta_credential' | 'kisi_credential' + | 'akiles_credential' | undefined /** * Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type. @@ -322,6 +334,34 @@ export type AcsCredential = { * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'needs_to_be_reissued' + } /** + * Indicates that the requested PIN code could not be used, so the access system assigned a different code. Give the guest the assigned code. + */ + | { + /** + * Date and time at which Seam created the warning. + */ + created_at: string + + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + message: string + + /** + * The PIN code that was assigned instead. + */ + new_code: string + + /** + * The originally requested PIN code that could not be used. + */ + original_code: string + + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + */ + warning_code: 'requested_code_unavailable' } > diff --git a/src/lib/resources/acs-entrance.ts b/src/lib/resources/acs-entrance.ts index e82a0e92..3e9e69f5 100644 --- a/src/lib/resources/acs-entrance.ts +++ b/src/lib/resources/acs-entrance.ts @@ -429,7 +429,7 @@ export type AcsEntrance = { */ warning_code: 'entrance_setup_required' } /** - * deprecated: Use `privacy_mode` instead. Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access. + * Indicates that this entrance is in privacy mode. When privacy mode is enabled, access codes, mobile keys, and remote unlocks will not work unless the user has admin access. */ | { /** diff --git a/src/lib/resources/acs-system.ts b/src/lib/resources/acs-system.ts index 00336a48..9237ece2 100644 --- a/src/lib/resources/acs-system.ts +++ b/src/lib/resources/acs-system.ts @@ -125,6 +125,24 @@ export type AcsSystem = { */ error_code: 'salto_ks_subscription_limit_exceeded' + /** + * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. + */ + message: string + } /** + * Indicates that Seam's integration user does not have sufficient permissions on the provider's system backing this [access control system](https://docs.seam.co/low-level-apis/access-systems). Access cannot be managed until permissions are restored. See the error message for specifics, then either reauthorize the connected account in Seam or grant the integration user the required permissions in the provider's system. + */ + | { + /** + * Date and time at which Seam created the error. + */ + created_at: string + + /** + * Unique identifier of the type of error. Enables quick recognition and categorization of the issue. + */ + error_code: 'insufficient_permissions' + /** * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -367,6 +385,24 @@ export type AcsSystem = { * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'setup_required' + } /** + * Indicates that Seam encountered an unexpected error while syncing this [access control system](https://docs.seam.co/low-level-apis/access-systems), so its users, credentials, and access groups may be out of date. Seam retries on every sync cycle and clears this warning once a sync succeeds; if it persists, contact [support](mailto:support@seam.co). + */ + | { + /** + * Date and time at which Seam created the warning. + */ + created_at: string + + /** + * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. + */ + message: string + + /** + * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. + */ + warning_code: 'unknown_issue_with_acs_system' } > diff --git a/src/lib/resources/action-attempt.ts b/src/lib/resources/action-attempt.ts index 9f6b776d..56c207a8 100644 --- a/src/lib/resources/action-attempt.ts +++ b/src/lib/resources/action-attempt.ts @@ -223,6 +223,17 @@ export type ActionAttempt = * ID of the [ACS user](https://docs.seam.co/low-level-apis/access-systems/user-management) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs. */ acs_user_id?: string | undefined + /** + * Akiles-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). + */ + akiles_metadata?: + | { + /** + * ID of the Akiles member PIN. + */ + member_pin_id?: string | undefined + } + | undefined /** * Vostio-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). */ @@ -312,6 +323,7 @@ export type ActionAttempt = | 'salto_ks_tag' | 'avigilon_alta_credential' | 'kisi_credential' + | 'akiles_credential' | undefined /** * Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type. @@ -421,14 +433,23 @@ export type ActionAttempt = | 'being_deleted' | 'unknown_issue_with_acs_credential' | 'needs_to_be_reissued' + | 'requested_code_unavailable' + + /** + * The PIN code that was assigned instead. + */ + new_code?: string | undefined + /** + * The originally requested PIN code that could not be used. + */ + original_code?: string | undefined }> /** * ID of the workspace that contains the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). */ workspace_id: string - } - + } | null /** * Warnings related to scanning the credential, such as mismatches between the credential data currently encoded on the card and the corresponding data stored on Seam and the access system. */ @@ -509,6 +530,17 @@ export type ActionAttempt = * ID of the [ACS user](https://docs.seam.co/low-level-apis/access-systems/user-management) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs. */ acs_user_id?: string | undefined + /** + * Akiles-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). + */ + akiles_metadata?: + | { + /** + * ID of the Akiles member PIN. + */ + member_pin_id?: string | undefined + } + | undefined /** * Vostio-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). */ @@ -598,6 +630,7 @@ export type ActionAttempt = | 'salto_ks_tag' | 'avigilon_alta_credential' | 'kisi_credential' + | 'akiles_credential' | undefined /** * Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type. @@ -706,6 +739,16 @@ export type ActionAttempt = | 'being_deleted' | 'unknown_issue_with_acs_credential' | 'needs_to_be_reissued' + | 'requested_code_unavailable' + + /** + * The PIN code that was assigned instead. + */ + new_code?: string | undefined + /** + * The originally requested PIN code that could not be used. + */ + original_code?: string | undefined }> /** @@ -769,6 +812,17 @@ export type ActionAttempt = * ID of the [ACS user](https://docs.seam.co/low-level-apis/access-systems/user-management) to whom the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) belongs. */ acs_user_id?: string | undefined + /** + * Akiles-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). + */ + akiles_metadata?: + | { + /** + * ID of the Akiles member PIN. + */ + member_pin_id?: string | undefined + } + | undefined /** * Vostio-specific metadata for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials). */ @@ -858,6 +912,7 @@ export type ActionAttempt = | 'salto_ks_tag' | 'avigilon_alta_credential' | 'kisi_credential' + | 'akiles_credential' | undefined /** * Display name that corresponds to the brand-specific terminology for the [credential](https://docs.seam.co/low-level-apis/access-systems/managing-credentials) type. @@ -968,6 +1023,16 @@ export type ActionAttempt = | 'being_deleted' | 'unknown_issue_with_acs_credential' | 'needs_to_be_reissued' + | 'requested_code_unavailable' + + /** + * The PIN code that was assigned instead. + */ + new_code?: string | undefined + /** + * The originally requested PIN code that could not be used. + */ + original_code?: string | undefined }> /** @@ -1501,7 +1566,12 @@ export type ActionAttempt = /** * Result of the action. */ - result: {} + result: { + /** + * Created access code. + */ + access_code: Record + } status: 'success' | 'pending' | 'error' } @@ -1567,7 +1637,12 @@ export type ActionAttempt = /** * Result of the action. */ - result: {} + result: { + /** + * Updated access code. + */ + access_code?: Record | undefined + } status: 'success' | 'pending' | 'error' } @@ -1600,7 +1675,12 @@ export type ActionAttempt = /** * Result of the action. */ - result: {} + result: { + /** + * Created noise threshold. + */ + noise_threshold: Record + } status: 'success' | 'pending' | 'error' } @@ -1666,7 +1746,12 @@ export type ActionAttempt = /** * Result of the action. */ - result: {} + result: { + /** + * Updated noise threshold. + */ + noise_threshold: Record + } status: 'success' | 'pending' | 'error' } diff --git a/src/lib/resources/device-provider.ts b/src/lib/resources/device-provider.ts index c3c37131..242e24a3 100644 --- a/src/lib/resources/device-provider.ts +++ b/src/lib/resources/device-provider.ts @@ -139,6 +139,7 @@ export type DeviceProvider = { | 'keyincode' | 'dormakaba_ambiance' | 'ultraloq' + | 'yacan' | 'dusaw' | 'sifely' | 'thirty_three_lock' diff --git a/src/lib/resources/device.ts b/src/lib/resources/device.ts index 53781964..37a0bccf 100644 --- a/src/lib/resources/device.ts +++ b/src/lib/resources/device.ts @@ -194,6 +194,7 @@ export type Device = { | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' + | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' @@ -272,6 +273,34 @@ export type Device = { */ is_device_error: boolean + /** + * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. + */ + message: string + } /** + * Indicates that Seam's integration user does not have sufficient permissions on the provider's system to which this device belongs, so Seam cannot manage access codes or unlock the device. See the error message for specifics, then either reauthorize the connected account in Seam or grant the integration user the required permissions in the provider's system. + */ + | { + /** + * Date and time at which Seam created the error. + */ + created_at: string + + /** + * Unique identifier of the type of error. Enables quick recognition and categorization of the issue. + */ + error_code: 'insufficient_permissions' + + /** + * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. + */ + is_connected_account_error: boolean + + /** + * Indicates that the error is not a device error. + */ + is_device_error: boolean + /** * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -554,6 +583,10 @@ export type Device = { * Name of the device location. */ location_name?: string | undefined + /** + * Name of the room within the device location, when the provider reports one. + */ + room_name?: string | undefined /** * Time zone of the device location. */ @@ -937,7 +970,7 @@ export type Device = { /** * Device ID for a dormakaba Oracode device. */ - device_id?: {} | undefined + device_id?: string | undefined /** * Door ID for a dormakaba Oracode device. */ @@ -1431,6 +1464,14 @@ export type Device = { * Device ID for a Google Nest device. */ nest_device_id?: string | undefined + /** + * ID of the Google Nest structure containing the device. + */ + nest_structure_id?: string | undefined + /** + * Name of the Google Nest structure containing the device. The device owner sets this value. + */ + structure_name?: string | undefined } | undefined /** @@ -1582,7 +1623,7 @@ export type Device = { | undefined /** * Metada for a Salto device. - * @deprecated Use `salto_ks_metadata ` instead. + * @deprecated Use `salto_ks_metadata` instead. */ salto_metadata?: | { @@ -1675,6 +1716,10 @@ export type Device = { * Set to true when the device does not support the /dual-setpoints API endpoint. */ dual_setpoints_not_supported?: boolean | undefined + /** + * Enforced setpoint range in Celsius for a Sensi device, derived from an OutOfRange API error. + */ + enforced_setpoint_range_celsius?: Array | undefined /** * Product type for a Sensi device. */ @@ -1919,6 +1964,29 @@ export type Device = { product_type?: string | undefined } | undefined + /** + * Metadata for a Yacan device. + */ + yacan_metadata?: + | { + /** + * Device ID for a Yacan device. + */ + device_id?: string | undefined + /** + * Device name for a Yacan device. + */ + device_name?: string | undefined + /** + * Device type for a Yacan device. + */ + device_type?: string | undefined + /** + * Serial number for a Yacan device. + */ + serial_number?: string | undefined + } + | undefined /** * The delay in seconds before the lock automatically locks after being unlocked. */ @@ -3189,24 +3257,6 @@ export type Device = { * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached' - } /** - * Indicates that the connected Kwikset account has member-level access to this lock's home. Admin or owner access is required to manage access codes and control the lock remotely. - */ - | { - /** - * Date and time at which Seam created the warning. - */ - created_at: string - - /** - * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. - */ - message: string - - /** - * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. - */ - warning_code: 'insufficient_permissions' } > diff --git a/src/lib/resources/event.ts b/src/lib/resources/event.ts index b0f598c1..c554cd97 100644 --- a/src/lib/resources/event.ts +++ b/src/lib/resources/event.ts @@ -3457,10 +3457,6 @@ export type SeamEvent = */ connected_account_id: string - /** - * undocumented: Unreleased. - */ - connected_account_type?: string | undefined /** * Date and time at which the event was created. */ @@ -5671,24 +5667,6 @@ export type SeamEvent = * Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */ access_code_is_managed?: boolean | undefined - /** - * undocumented: Unreleased. - * --- - * ID of the ACS entrance associated with the lock event. - */ - acs_entrance_id?: string | undefined - /** - * undocumented: Unreleased. - * --- - * ID of the ACS system associated with the lock event. - */ - acs_system_id?: string | undefined - /** - * undocumented: Unreleased. - * --- - * ID of the ACS user associated with the lock event. - */ - acs_user_id?: string | undefined /** * ID of the Seam action attempt that triggered this lock. Present only when the lock was initiated through Seam (via a `LOCK_DOOR` action attempt). */ @@ -5753,12 +5731,6 @@ export type SeamEvent = */ occurred_at: string - /** - * undocumented: Unreleased. - * --- - * ID of the user identity associated with the lock event. - */ - user_identity_id?: string | undefined /** * ID of the workspace associated with the event. */ @@ -5773,24 +5745,6 @@ export type SeamEvent = * Whether the access code is managed by Seam (true) or unmanaged (false). Only present when access_code_id is set. */ access_code_is_managed?: boolean | undefined - /** - * undocumented: Unreleased. - * --- - * ID of the ACS entrance associated with the unlock event. - */ - acs_entrance_id?: string | undefined - /** - * undocumented: Unreleased. - * --- - * ID of the ACS system associated with the unlock event. - */ - acs_system_id?: string | undefined - /** - * undocumented: Unreleased. - * --- - * ID of the ACS user associated with the unlock event. - */ - acs_user_id?: string | undefined /** * ID of the Seam action attempt that triggered this unlock. Present only when the unlock was initiated through Seam (via an `UNLOCK_DOOR` action attempt). */ @@ -5854,12 +5808,6 @@ export type SeamEvent = */ occurred_at: string - /** - * undocumented: Unreleased. - * --- - * ID of the user identity associated with the unlock event. - */ - user_identity_id?: string | undefined /** * ID of the workspace associated with the event. */ @@ -5870,24 +5818,6 @@ export type SeamEvent = * ID of the access code that was used in the unlock attempts. */ access_code_id?: string | undefined - /** - * undocumented: Unreleased. - * --- - * ID of the ACS entrance associated with the access-denied event. - */ - acs_entrance_id?: string | undefined - /** - * undocumented: Unreleased. - * --- - * ID of the ACS system associated with the access-denied event. - */ - acs_system_id?: string | undefined - /** - * undocumented: Unreleased. - * --- - * ID of the ACS user associated with the access-denied event. - */ - acs_user_id?: string | undefined /** * Custom metadata of the connected account, present when connected_account_id is provided. */ @@ -5952,12 +5882,6 @@ export type SeamEvent = | 'credential_error' } | undefined - /** - * undocumented: Unreleased. - * --- - * ID of the user identity associated with the access-denied event. - */ - user_identity_id?: string | undefined /** * ID of the workspace associated with the event. */ diff --git a/src/lib/resources/unmanaged-access-code.ts b/src/lib/resources/unmanaged-access-code.ts index 2cbd7a6f..e281b5a7 100644 --- a/src/lib/resources/unmanaged-access-code.ts +++ b/src/lib/resources/unmanaged-access-code.ts @@ -281,29 +281,35 @@ export type UnmanagedAccessCode = { */ message: string } /** - * Admin role required—insufficient permissions to manage PINs on this device. Please have an admin update your role, or ask them to set the PIN. + * Indicates that the account is disconnected. */ | { /** * Date and time at which Seam created the error. */ - created_at?: string | undefined + created_at: string + /** * Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'insufficient_permissions' + error_code: 'account_disconnected' /** - * Indicates that this is an access code error. + * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. */ - is_access_code_error: boolean + is_connected_account_error: boolean + + /** + * Indicates that the error is not a device error. + */ + is_device_error: boolean /** * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ message: string } /** - * Indicates that the account is disconnected. + * Indicates that the Salto site user limit has been reached. */ | { /** @@ -314,7 +320,7 @@ export type UnmanagedAccessCode = { /** * Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'account_disconnected' + error_code: 'salto_ks_subscription_limit_exceeded' /** * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. @@ -331,7 +337,7 @@ export type UnmanagedAccessCode = { */ message: string } /** - * Indicates that the Salto site user limit has been reached. + * Indicates that Seam's integration user does not have sufficient permissions on the provider's system to which this device belongs, so Seam cannot manage access codes or unlock the device. See the error message for specifics, then either reauthorize the connected account in Seam or grant the integration user the required permissions in the provider's system. */ | { /** @@ -342,7 +348,7 @@ export type UnmanagedAccessCode = { /** * Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */ - error_code: 'salto_ks_subscription_limit_exceeded' + error_code: 'insufficient_permissions' /** * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. diff --git a/src/lib/resources/unmanaged-device.ts b/src/lib/resources/unmanaged-device.ts index 23874fc3..101d2384 100644 --- a/src/lib/resources/unmanaged-device.ts +++ b/src/lib/resources/unmanaged-device.ts @@ -149,6 +149,7 @@ export type UnmanagedDevice = { | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' + | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' @@ -222,6 +223,34 @@ export type UnmanagedDevice = { */ is_device_error: boolean + /** + * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. + */ + message: string + } /** + * Indicates that Seam's integration user does not have sufficient permissions on the provider's system to which this device belongs, so Seam cannot manage access codes or unlock the device. See the error message for specifics, then either reauthorize the connected account in Seam or grant the integration user the required permissions in the provider's system. + */ + | { + /** + * Date and time at which Seam created the error. + */ + created_at: string + + /** + * Unique identifier of the type of error. Enables quick recognition and categorization of the issue. + */ + error_code: 'insufficient_permissions' + + /** + * Indicates that the error is a [connected account](https://docs.seam.co/api/connected_accounts) error. + */ + is_connected_account_error: boolean + + /** + * Indicates that the error is not a device error. + */ + is_device_error: boolean + /** * Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */ @@ -504,6 +533,10 @@ export type UnmanagedDevice = { * Name of the device location. */ location_name?: string | undefined + /** + * Name of the room within the device location, when the provider reports one. + */ + room_name?: string | undefined /** * Time zone of the device location. */ @@ -1129,24 +1162,6 @@ export type UnmanagedDevice = { * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */ warning_code: 'max_access_codes_reached' - } /** - * Indicates that the connected Kwikset account has member-level access to this lock's home. Admin or owner access is required to manage access codes and control the lock remotely. - */ - | { - /** - * Date and time at which Seam created the warning. - */ - created_at: string - - /** - * Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. - */ - message: string - - /** - * Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. - */ - warning_code: 'insufficient_permissions' } > diff --git a/src/lib/routes/access-codes/access-codes.ts b/src/lib/routes/access-codes/access-codes.ts index 0ab64e75..972fbf57 100644 --- a/src/lib/routes/access-codes/access-codes.ts +++ b/src/lib/routes/access-codes/access-codes.ts @@ -220,8 +220,8 @@ export class SeamHttpAccessCodes { ): AccessCodesDeleteRequest { return new SeamHttpRequest(this, { pathname: '/access_codes/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -236,8 +236,8 @@ export class SeamHttpAccessCodes { ): AccessCodesGenerateCodeRequest { return new SeamHttpRequest(this, { pathname: '/access_codes/generate_code', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'generated_code', options, }) @@ -254,8 +254,8 @@ export class SeamHttpAccessCodes { ): AccessCodesGetRequest { return new SeamHttpRequest(this, { pathname: '/access_codes/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'access_code', options, }) @@ -614,7 +614,7 @@ export type AccessCodesListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * String for which to search. Filters returned access codes to include all records that satisfy a partial match using `name`, `code` or `access_code_id`. */ @@ -722,18 +722,6 @@ export type AccessCodesUpdateParameters = { * Indicates whether the access code is managed through Seam. Note that to convert an unmanaged access code into a managed access code, use `/access_codes/unmanaged/convert_to_managed`. */ is_managed?: boolean | undefined - /** - * Indicates whether the access code is an [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes). - */ - is_offline_access_code?: boolean | undefined - /** - * Indicates whether the [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) is a single-use access code. - */ - is_one_time_use?: boolean | undefined - /** - * Maximum rounding adjustment. To create a daily-bound [offline access code](https://docs.seam.co/low-level-apis/smart-locks/access-codes/offline-access-codes) for devices that support this feature, set this parameter to `1d`. - */ - max_time_rounding?: '1hour' | '1day' | '1h' | '1d' | undefined /** * Name of the new access code. Enables administrators and users to identify the access code easily, especially when there are numerous access codes. * @@ -744,14 +732,6 @@ export type AccessCodesUpdateParameters = { * To help your users identify codes set by Seam, Seam provides the name exactly as it appears on the lock provider's app or on the device as a separate property called `appearance`. This is an object with a `name` property and, optionally, `first_name` and `last_name` properties (for providers that break down a name into components). */ name?: string | undefined - /** - * Indicates whether [native scheduling](https://docs.seam.co/low-level-apis/smart-locks/access-codes#native-scheduling) should be used for time-bound codes when supported by the provider. Default: `true`. - */ - prefer_native_scheduling?: boolean | undefined - /** - * Preferred code length. Only applicable if you do not specify a `code`. If the affected device does not support the preferred code length, Seam reverts to using the shortest supported code length. - */ - preferred_code_length?: number | undefined /** * Date and time at which the validity of the new access code starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ @@ -760,14 +740,6 @@ export type AccessCodesUpdateParameters = { * Type to which you want to convert the access code. To convert a time-bound access code to an ongoing access code, set `type` to `ongoing`. See also [Changing a time-bound access code to permanent access](https://docs.seam.co/low-level-apis/smart-locks/access-codes/modifying-access-codes#special-case-2-changing-a-time-bound-access-code-to-permanent-access). */ type?: 'ongoing' | 'time_bound' | undefined - /** - * Indicates whether to use a [backup access code pool](https://docs.seam.co/low-level-apis/smart-locks/access-codes/backup-access-codes) provided by Seam. If `true`, you can use [`/access_codes/pull_backup_access_code`](https://docs.seam.co/api/access_codes/pull_backup_access_code). - */ - use_backup_access_code_pool?: boolean | undefined - /** - * @deprecated Use `is_offline_access_code` instead. - */ - use_offline_access_code?: boolean | undefined } /** diff --git a/src/lib/routes/access-codes/unmanaged/unmanaged.ts b/src/lib/routes/access-codes/unmanaged/unmanaged.ts index 5a31988d..9b6914f2 100644 --- a/src/lib/routes/access-codes/unmanaged/unmanaged.ts +++ b/src/lib/routes/access-codes/unmanaged/unmanaged.ts @@ -187,8 +187,8 @@ export class SeamHttpAccessCodesUnmanaged { ): AccessCodesUnmanagedDeleteRequest { return new SeamHttpRequest(this, { pathname: '/access_codes/unmanaged/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -205,8 +205,8 @@ export class SeamHttpAccessCodesUnmanaged { ): AccessCodesUnmanagedGetRequest { return new SeamHttpRequest(this, { pathname: '/access_codes/unmanaged/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'access_code', options, }) @@ -221,8 +221,8 @@ export class SeamHttpAccessCodesUnmanaged { ): AccessCodesUnmanagedListRequest { return new SeamHttpRequest(this, { pathname: '/access_codes/unmanaged/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'access_codes', options, }) @@ -335,7 +335,7 @@ export type AccessCodesUnmanagedListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * String for which to search. Filters returned access codes to include all records that satisfy a partial match using `name`, `code` or `access_code_id`. */ diff --git a/src/lib/routes/access-grants/access-grants.ts b/src/lib/routes/access-grants/access-grants.ts index ba5a5e46..043e32c2 100644 --- a/src/lib/routes/access-grants/access-grants.ts +++ b/src/lib/routes/access-grants/access-grants.ts @@ -190,8 +190,8 @@ export class SeamHttpAccessGrants { ): AccessGrantsDeleteRequest { return new SeamHttpRequest(this, { pathname: '/access_grants/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -291,19 +291,19 @@ export type AccessGrantsCreateParameters = { /** * Unique email address for the user identity. */ - email_address?: string | undefined + email_address?: string | null | undefined /** * Full name of the user associated with the user identity. */ - full_name?: string | undefined + full_name?: string | null | undefined /** * Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100). */ - phone_number?: string | undefined + phone_number?: string | null | undefined /** * Unique key for the user identity. */ - user_identity_key?: string | undefined + user_identity_key?: string | null | undefined } | undefined /** @@ -325,7 +325,7 @@ export type AccessGrantsCreateParameters = { /** * Date and time at which the validity of the new grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`. */ - ends_at?: string | undefined + ends_at?: string | null | undefined /** * @deprecated Create a space first, then reference it using `space_ids`. */ @@ -352,7 +352,7 @@ export type AccessGrantsCreateParameters = { /** * Name for the access grant. */ - name?: string | undefined + name?: string | null | undefined requested_access_methods: Array<{ /** @@ -510,7 +510,7 @@ export type AccessGrantsListParameters = { /** * Filter Access Grants by access_grant_key. Use null to filter for Access Grants without an access_grant_key. */ - access_grant_key?: string | undefined + access_grant_key?: string | null | undefined /** * ID of the entrance by which you want to filter the list of Access Grants. */ @@ -538,7 +538,7 @@ export type AccessGrantsListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * Filter Access Grants by reservation_key. */ @@ -616,11 +616,11 @@ export type AccessGrantsUpdateParameters = { /** * Date and time at which the validity of the grant ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Must be a time in the future and after `starts_at`. */ - ends_at?: string | undefined + ends_at?: string | null | undefined /** * Display name for the access grant. */ - name?: string | undefined + name?: string | null | undefined /** * Date and time at which the validity of the grant starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. */ diff --git a/src/lib/routes/access-grants/unmanaged/unmanaged.ts b/src/lib/routes/access-grants/unmanaged/unmanaged.ts index 5c0f9d42..f2306f53 100644 --- a/src/lib/routes/access-grants/unmanaged/unmanaged.ts +++ b/src/lib/routes/access-grants/unmanaged/unmanaged.ts @@ -167,8 +167,8 @@ export class SeamHttpAccessGrantsUnmanaged { ): AccessGrantsUnmanagedGetRequest { return new SeamHttpRequest(this, { pathname: '/access_grants/unmanaged/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'access_grant', options, }) @@ -183,8 +183,8 @@ export class SeamHttpAccessGrantsUnmanaged { ): AccessGrantsUnmanagedListRequest { return new SeamHttpRequest(this, { pathname: '/access_grants/unmanaged/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'access_grants', options, }) @@ -248,7 +248,7 @@ export type AccessGrantsUnmanagedListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * Filter unmanaged Access Grants by reservation_key. */ diff --git a/src/lib/routes/access-methods/access-methods.ts b/src/lib/routes/access-methods/access-methods.ts index 8d2cba83..459a80d7 100644 --- a/src/lib/routes/access-methods/access-methods.ts +++ b/src/lib/routes/access-methods/access-methods.ts @@ -232,8 +232,8 @@ export class SeamHttpAccessMethods { ): AccessMethodsGetRequest { return new SeamHttpRequest(this, { pathname: '/access_methods/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'access_method', options, }) @@ -264,8 +264,8 @@ export class SeamHttpAccessMethods { ): AccessMethodsListRequest { return new SeamHttpRequest(this, { pathname: '/access_methods/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'access_methods', options, }) @@ -473,7 +473,7 @@ export type AccessMethodsListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * ID of the space by which to filter the returned access methods. Must be combined with `access_grant_id`, `access_grant_key`, or `acs_entrance_id`. */ diff --git a/src/lib/routes/access-methods/unmanaged/unmanaged.ts b/src/lib/routes/access-methods/unmanaged/unmanaged.ts index d72b3dd3..cbbcbd61 100644 --- a/src/lib/routes/access-methods/unmanaged/unmanaged.ts +++ b/src/lib/routes/access-methods/unmanaged/unmanaged.ts @@ -167,8 +167,8 @@ export class SeamHttpAccessMethodsUnmanaged { ): AccessMethodsUnmanagedGetRequest { return new SeamHttpRequest(this, { pathname: '/access_methods/unmanaged/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'access_method', options, }) @@ -183,8 +183,8 @@ export class SeamHttpAccessMethodsUnmanaged { ): AccessMethodsUnmanagedListRequest { return new SeamHttpRequest(this, { pathname: '/access_methods/unmanaged/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'access_methods', options, }) diff --git a/src/lib/routes/acs/access-groups/access-groups.ts b/src/lib/routes/acs/access-groups/access-groups.ts index 43300572..44f7cfa9 100644 --- a/src/lib/routes/acs/access-groups/access-groups.ts +++ b/src/lib/routes/acs/access-groups/access-groups.ts @@ -185,8 +185,8 @@ export class SeamHttpAcsAccessGroups { ): AcsAccessGroupsDeleteRequest { return new SeamHttpRequest(this, { pathname: '/acs/access_groups/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -201,8 +201,8 @@ export class SeamHttpAcsAccessGroups { ): AcsAccessGroupsGetRequest { return new SeamHttpRequest(this, { pathname: '/acs/access_groups/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_access_group', options, }) @@ -217,8 +217,8 @@ export class SeamHttpAcsAccessGroups { ): AcsAccessGroupsListRequest { return new SeamHttpRequest(this, { pathname: '/acs/access_groups/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_access_groups', options, }) @@ -233,8 +233,8 @@ export class SeamHttpAcsAccessGroups { ): AcsAccessGroupsListAccessibleEntrancesRequest { return new SeamHttpRequest(this, { pathname: '/acs/access_groups/list_accessible_entrances', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_entrances', options, }) @@ -249,8 +249,8 @@ export class SeamHttpAcsAccessGroups { ): AcsAccessGroupsListUsersRequest { return new SeamHttpRequest(this, { pathname: '/acs/access_groups/list_users', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_users', options, }) @@ -265,8 +265,8 @@ export class SeamHttpAcsAccessGroups { ): AcsAccessGroupsRemoveUserRequest { return new SeamHttpRequest(this, { pathname: '/acs/access_groups/remove_user', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) diff --git a/src/lib/routes/acs/credentials/credentials.ts b/src/lib/routes/acs/credentials/credentials.ts index 747c593d..58acb1ab 100644 --- a/src/lib/routes/acs/credentials/credentials.ts +++ b/src/lib/routes/acs/credentials/credentials.ts @@ -200,8 +200,8 @@ export class SeamHttpAcsCredentials { ): AcsCredentialsDeleteRequest { return new SeamHttpRequest(this, { pathname: '/acs/credentials/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -216,8 +216,8 @@ export class SeamHttpAcsCredentials { ): AcsCredentialsGetRequest { return new SeamHttpRequest(this, { pathname: '/acs/credentials/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_credential', options, }) @@ -248,8 +248,8 @@ export class SeamHttpAcsCredentials { ): AcsCredentialsListAccessibleEntrancesRequest { return new SeamHttpRequest(this, { pathname: '/acs/credentials/list_accessible_entrances', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_entrances', options, }) @@ -473,7 +473,7 @@ export type AcsCredentialsListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * String for which to search. Filters returned credentials to include all records that satisfy a partial match using `display_name`, `code`, `card_number`, `acs_user_id` or `acs_credential_id`. */ diff --git a/src/lib/routes/acs/encoders/encoders.ts b/src/lib/routes/acs/encoders/encoders.ts index 73d472f6..c875ec8f 100644 --- a/src/lib/routes/acs/encoders/encoders.ts +++ b/src/lib/routes/acs/encoders/encoders.ts @@ -195,8 +195,8 @@ export class SeamHttpAcsEncoders { ): AcsEncodersGetRequest { return new SeamHttpRequest(this, { pathname: '/acs/encoders/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_encoder', options, }) @@ -211,8 +211,8 @@ export class SeamHttpAcsEncoders { ): AcsEncodersListRequest { return new SeamHttpRequest(this, { pathname: '/acs/encoders/list', - method: 'GET', - params: parameters, + method: 'POST', + body: parameters, responseKey: 'acs_encoders', options, }) @@ -330,7 +330,7 @@ export type AcsEncodersListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined } /** diff --git a/src/lib/routes/acs/entrances/entrances.ts b/src/lib/routes/acs/entrances/entrances.ts index c343ab16..32a55745 100644 --- a/src/lib/routes/acs/entrances/entrances.ts +++ b/src/lib/routes/acs/entrances/entrances.ts @@ -170,8 +170,8 @@ export class SeamHttpAcsEntrances { ): AcsEntrancesGetRequest { return new SeamHttpRequest(this, { pathname: '/acs/entrances/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_entrance', options, }) @@ -322,11 +322,11 @@ export type AcsEntrancesListParameters = { /** * @deprecated Use `space_id`. */ - location_id?: string | undefined + location_id?: string | null | undefined /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * String for which to search. Filters returned entrances to include all records that satisfy a partial match using `display_name`. */ diff --git a/src/lib/routes/acs/systems/systems.ts b/src/lib/routes/acs/systems/systems.ts index b9a5dbbb..279aee5c 100644 --- a/src/lib/routes/acs/systems/systems.ts +++ b/src/lib/routes/acs/systems/systems.ts @@ -167,8 +167,8 @@ export class SeamHttpAcsSystems { ): AcsSystemsGetRequest { return new SeamHttpRequest(this, { pathname: '/acs/systems/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_system', options, }) @@ -185,8 +185,8 @@ export class SeamHttpAcsSystems { ): AcsSystemsListRequest { return new SeamHttpRequest(this, { pathname: '/acs/systems/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_systems', options, }) @@ -203,8 +203,8 @@ export class SeamHttpAcsSystems { ): AcsSystemsListCompatibleCredentialManagerAcsSystemsRequest { return new SeamHttpRequest(this, { pathname: '/acs/systems/list_compatible_credential_manager_acs_systems', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_systems', options, }) diff --git a/src/lib/routes/acs/users/users.ts b/src/lib/routes/acs/users/users.ts index 914ee3f1..3a74aa99 100644 --- a/src/lib/routes/acs/users/users.ts +++ b/src/lib/routes/acs/users/users.ts @@ -200,8 +200,8 @@ export class SeamHttpAcsUsers { ): AcsUsersDeleteRequest { return new SeamHttpRequest(this, { pathname: '/acs/users/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -216,8 +216,8 @@ export class SeamHttpAcsUsers { ): AcsUsersGetRequest { return new SeamHttpRequest(this, { pathname: '/acs/users/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_user', options, }) @@ -232,8 +232,8 @@ export class SeamHttpAcsUsers { ): AcsUsersListRequest { return new SeamHttpRequest(this, { pathname: '/acs/users/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_users', options, }) @@ -248,8 +248,8 @@ export class SeamHttpAcsUsers { ): AcsUsersListAccessibleEntrancesRequest { return new SeamHttpRequest(this, { pathname: '/acs/users/list_accessible_entrances', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_entrances', options, }) @@ -264,8 +264,8 @@ export class SeamHttpAcsUsers { ): AcsUsersRemoveFromAccessGroupRequest { return new SeamHttpRequest(this, { pathname: '/acs/users/remove_from_access_group', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -366,7 +366,7 @@ export type AcsUsersCreateParameters = { /** * Ending timestamp for the new access system user's access. */ - ends_at?: string | undefined + ends_at?: string | null | undefined /** * Starting timestamp for the new access system user's access. */ @@ -484,7 +484,7 @@ export type AcsUsersListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * String for which to search. Filters returned access system users to include all records that satisfy a partial match using `full_name`, `phone_number`, `email_address`, `acs_user_id`, `user_identity_id`, `user_identity_full_name` or `user_identity_phone_number`. */ @@ -662,6 +662,7 @@ export type AcsUsersUpdateParameters = { */ starts_at?: string | undefined } + | null | undefined /** * ID of the access system that you want to update. You can only provide acs_system_id with user_identity_id. diff --git a/src/lib/routes/action-attempts/action-attempts.ts b/src/lib/routes/action-attempts/action-attempts.ts index 2a8e2072..8775e64f 100644 --- a/src/lib/routes/action-attempts/action-attempts.ts +++ b/src/lib/routes/action-attempts/action-attempts.ts @@ -167,8 +167,8 @@ export class SeamHttpActionAttempts { ): ActionAttemptsGetRequest { return new SeamHttpRequest(this, { pathname: '/action_attempts/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'action_attempt', options, actionAttempts: SeamHttpActionAttempts.fromClient(this.client, { @@ -233,7 +233,7 @@ export type ActionAttemptsListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined } /** diff --git a/src/lib/routes/client-sessions/client-sessions.ts b/src/lib/routes/client-sessions/client-sessions.ts index 1ab7b029..74222b20 100644 --- a/src/lib/routes/client-sessions/client-sessions.ts +++ b/src/lib/routes/client-sessions/client-sessions.ts @@ -182,8 +182,8 @@ export class SeamHttpClientSessions { ): ClientSessionsDeleteRequest { return new SeamHttpRequest(this, { pathname: '/client_sessions/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -198,8 +198,8 @@ export class SeamHttpClientSessions { ): ClientSessionsGetRequest { return new SeamHttpRequest(this, { pathname: '/client_sessions/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'client_session', options, }) @@ -246,8 +246,8 @@ export class SeamHttpClientSessions { ): ClientSessionsListRequest { return new SeamHttpRequest(this, { pathname: '/client_sessions/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'client_sessions', options, }) diff --git a/src/lib/routes/connect-webviews/connect-webviews.ts b/src/lib/routes/connect-webviews/connect-webviews.ts index 306e5179..b28a4cb7 100644 --- a/src/lib/routes/connect-webviews/connect-webviews.ts +++ b/src/lib/routes/connect-webviews/connect-webviews.ts @@ -191,8 +191,8 @@ export class SeamHttpConnectWebviews { ): ConnectWebviewsDeleteRequest { return new SeamHttpRequest(this, { pathname: '/connect_webviews/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -209,8 +209,8 @@ export class SeamHttpConnectWebviews { ): ConnectWebviewsGetRequest { return new SeamHttpRequest(this, { pathname: '/connect_webviews/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'connect_webview', options, }) @@ -298,6 +298,7 @@ export type ConnectWebviewsCreateParameters = { | 'keyincode' | 'dormakaba_ambiance' | 'ultraloq' + | 'yacan' | 'dusaw' | 'sifely' | 'thirty_three_lock' @@ -423,7 +424,7 @@ export type ConnectWebviewsListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * String for which to search. Filters returned Connect Webviews to include all records that satisfy a partial match using `connect_webview_id`, `accepted_providers`, `custom_metadata`, or `customer_key`. */ diff --git a/src/lib/routes/connected-accounts/connected-accounts.ts b/src/lib/routes/connected-accounts/connected-accounts.ts index c0fcbf84..4b899c74 100644 --- a/src/lib/routes/connected-accounts/connected-accounts.ts +++ b/src/lib/routes/connected-accounts/connected-accounts.ts @@ -180,8 +180,8 @@ export class SeamHttpConnectedAccounts { ): ConnectedAccountsDeleteRequest { return new SeamHttpRequest(this, { pathname: '/connected_accounts/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -309,7 +309,7 @@ export type ConnectedAccountsListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * String for which to search. Filters returned connected accounts to include all records that satisfy a partial match using `connected_account_id`, `account_type`, `customer_key`, `custom_metadata`, `user_identifier.username`, `user_identifier.email` or `user_identifier.phone`. */ diff --git a/src/lib/routes/customers/customers.ts b/src/lib/routes/customers/customers.ts index c7543e86..33cfec51 100644 --- a/src/lib/routes/customers/customers.ts +++ b/src/lib/routes/customers/customers.ts @@ -225,7 +225,7 @@ export type CustomersCreatePortalParameters = { /** * The value to compare against. */ - value?: {} | undefined + value?: string | undefined }> | undefined /** @@ -883,19 +883,19 @@ export type CustomersCreatePortalParameters = { /** * Postal address for the space. */ - address?: string | undefined + address?: string | null | undefined /** * Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ - default_checkin_time?: string | undefined + default_checkin_time?: string | null | undefined /** * Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ - default_checkout_time?: string | undefined + default_checkout_time?: string | null | undefined /** * IANA time zone for the space, e.g. America/Los_Angeles. */ - time_zone?: string | undefined + time_zone?: string | null | undefined } | undefined /** @@ -1624,19 +1624,19 @@ export type CustomersPushDataParameters = { /** * Postal address for the space. */ - address?: string | undefined + address?: string | null | undefined /** * Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ - default_checkin_time?: string | undefined + default_checkin_time?: string | null | undefined /** * Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ - default_checkout_time?: string | undefined + default_checkout_time?: string | null | undefined /** * IANA time zone for the space, e.g. America/Los_Angeles. */ - time_zone?: string | undefined + time_zone?: string | null | undefined } | undefined /** diff --git a/src/lib/routes/devices/devices.ts b/src/lib/routes/devices/devices.ts index e8cd242a..b014d969 100644 --- a/src/lib/routes/devices/devices.ts +++ b/src/lib/routes/devices/devices.ts @@ -181,8 +181,8 @@ export class SeamHttpDevices { ): DevicesGetRequest { return new SeamHttpRequest(this, { pathname: '/devices/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'device', options, }) @@ -217,8 +217,8 @@ export class SeamHttpDevices { ): DevicesListDeviceProvidersRequest { return new SeamHttpRequest(this, { pathname: '/devices/list_device_providers', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'device_providers', options, }) @@ -338,6 +338,7 @@ export type DevicesListParameters = { | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' + | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' @@ -386,6 +387,7 @@ export type DevicesListParameters = { | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' + | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' @@ -463,11 +465,12 @@ export type DevicesListParameters = { | 'omnitec' | 'kisi' | 'slack' + | 'yacan' | undefined /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id` (full or partial UUID prefix, minimum 4 characters), `connected_account_id`, `display_name`, `custom_metadata` or `location.location_name`. */ @@ -479,7 +482,7 @@ export type DevicesListParameters = { /** * @deprecated Use `space_id`. */ - unstable_location_id?: string | undefined + unstable_location_id?: string | null | undefined /** * Your own internal user ID for the user for which you want to list devices. */ @@ -1893,14 +1896,14 @@ export type DevicesUpdateParameters = { /** * Name for the device. */ - name?: string | undefined + name?: string | null | undefined properties?: | { /** * Name for the device. */ - name?: string | undefined + name?: string | null | undefined } | undefined } diff --git a/src/lib/routes/devices/unmanaged/unmanaged.ts b/src/lib/routes/devices/unmanaged/unmanaged.ts index 828b6d60..3a782be7 100644 --- a/src/lib/routes/devices/unmanaged/unmanaged.ts +++ b/src/lib/routes/devices/unmanaged/unmanaged.ts @@ -171,8 +171,8 @@ export class SeamHttpDevicesUnmanaged { ): DevicesUnmanagedGetRequest { return new SeamHttpRequest(this, { pathname: '/devices/unmanaged/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'device', options, }) @@ -255,10 +255,6 @@ export type DevicesUnmanagedListParameters = { * Timestamp by which to limit returned devices. Returns devices created before this timestamp. */ created_before?: string | undefined - /** - * Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. - */ - custom_metadata_has?: Record | undefined /** * Customer key for which you want to list devices. */ @@ -297,6 +293,7 @@ export type DevicesUnmanagedListParameters = { | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' + | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' @@ -345,6 +342,7 @@ export type DevicesUnmanagedListParameters = { | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' + | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' @@ -422,27 +420,16 @@ export type DevicesUnmanagedListParameters = { | 'omnitec' | 'kisi' | 'slack' + | 'yacan' | undefined /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id` (full or partial UUID prefix, minimum 4 characters), `connected_account_id`, `display_name`, `custom_metadata` or `location.location_name`. */ search?: string | undefined - /** - * ID of the space for which you want to list devices. - */ - space_id?: string | undefined - /** - * @deprecated Use `space_id`. - */ - unstable_location_id?: string | undefined - /** - * Your own internal user ID for the user for which you want to list devices. - */ - user_identifier_key?: string | undefined } /** diff --git a/src/lib/routes/events/events.ts b/src/lib/routes/events/events.ts index 81747461..072c3309 100644 --- a/src/lib/routes/events/events.ts +++ b/src/lib/routes/events/events.ts @@ -167,8 +167,8 @@ export class SeamHttpEvents { ): EventsGetRequest { return new SeamHttpRequest(this, { pathname: '/events/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'event', options, }) @@ -271,7 +271,7 @@ export type EventsListParameters = { /** * Lower and upper timestamps to define an exclusive interval containing the events that you want to list. You must include `since` or `between`. */ - between?: Array<{}> | undefined + between?: Array | undefined /** * ID of the Connect Webview for which you want to list events. */ diff --git a/src/lib/routes/instant-keys/instant-keys.ts b/src/lib/routes/instant-keys/instant-keys.ts index 19afde09..32dc2eee 100644 --- a/src/lib/routes/instant-keys/instant-keys.ts +++ b/src/lib/routes/instant-keys/instant-keys.ts @@ -167,8 +167,8 @@ export class SeamHttpInstantKeys { ): InstantKeysDeleteRequest { return new SeamHttpRequest(this, { pathname: '/instant_keys/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -183,8 +183,8 @@ export class SeamHttpInstantKeys { ): InstantKeysGetRequest { return new SeamHttpRequest(this, { pathname: '/instant_keys/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'instant_key', options, }) @@ -199,8 +199,8 @@ export class SeamHttpInstantKeys { ): InstantKeysListRequest { return new SeamHttpRequest(this, { pathname: '/instant_keys/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'instant_keys', options, }) diff --git a/src/lib/routes/locks/locks.ts b/src/lib/routes/locks/locks.ts index 9038685f..ef903c4f 100644 --- a/src/lib/routes/locks/locks.ts +++ b/src/lib/routes/locks/locks.ts @@ -196,8 +196,8 @@ export class SeamHttpLocks { ): LocksGetRequest { return new SeamHttpRequest(this, { pathname: '/locks/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'device', options, }) @@ -320,26 +320,10 @@ export type LocksListParameters = { * ID of the connected account for which you want to list devices. */ connected_account_id?: string | undefined - /** - * Array of IDs of the connected accounts for which you want to list devices. - */ - connected_account_ids?: Array | undefined - /** - * Timestamp by which to limit returned devices. Returns devices created before this timestamp. - */ - created_before?: string | undefined - /** - * Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. - */ - custom_metadata_has?: Record | undefined /** * Customer key for which you want to list devices. */ customer_key?: string | undefined - /** - * Array of device IDs for which you want to list devices. - */ - device_ids?: Array | undefined /** * Device type of the locks that you want to list. */ @@ -370,6 +354,7 @@ export type LocksListParameters = { | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' + | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' @@ -406,16 +391,13 @@ export type LocksListParameters = { | 'tedee_lock' | 'akiles_lock' | 'ultraloq_lock' + | 'yacan_lock' | 'keyincode_lock' | 'omnitec_lock' | 'kisi_lock' | 'aqara_lock' > | undefined - /** - * Numerical limit on the number of devices to return. - */ - limit?: number | undefined /** * Manufacturer of the locks that you want to list. */ @@ -452,27 +434,8 @@ export type LocksListParameters = { | 'ultraloq' | 'omnitec' | 'kisi' + | 'yacan' | undefined - /** - * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. - */ - page_cursor?: string | undefined - /** - * String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id` (full or partial UUID prefix, minimum 4 characters), `connected_account_id`, `display_name`, `custom_metadata` or `location.location_name`. - */ - search?: string | undefined - /** - * ID of the space for which you want to list devices. - */ - space_id?: string | undefined - /** - * @deprecated Use `space_id`. - */ - unstable_location_id?: string | undefined - /** - * Your own internal user ID for the user for which you want to list devices. - */ - user_identifier_key?: string | undefined } /** diff --git a/src/lib/routes/noise-sensors/noise-sensors.ts b/src/lib/routes/noise-sensors/noise-sensors.ts index eeb77a07..b12a6e30 100644 --- a/src/lib/routes/noise-sensors/noise-sensors.ts +++ b/src/lib/routes/noise-sensors/noise-sensors.ts @@ -198,26 +198,10 @@ export type NoiseSensorsListParameters = { * ID of the connected account for which you want to list devices. */ connected_account_id?: string | undefined - /** - * Array of IDs of the connected accounts for which you want to list devices. - */ - connected_account_ids?: Array | undefined - /** - * Timestamp by which to limit returned devices. Returns devices created before this timestamp. - */ - created_before?: string | undefined - /** - * Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. - */ - custom_metadata_has?: Record | undefined /** * Customer key for which you want to list devices. */ customer_key?: string | undefined - /** - * Array of device IDs for which you want to list devices. - */ - device_ids?: Array | undefined /** * Device type of the noise sensors that you want to list. */ @@ -226,34 +210,10 @@ export type NoiseSensorsListParameters = { * Device types of the noise sensors that you want to list. */ device_types?: Array<'noiseaware_activity_zone' | 'minut_sensor'> | undefined - /** - * Numerical limit on the number of devices to return. - */ - limit?: number | undefined /** * Manufacturers of the noise sensors that you want to list. */ manufacturer?: 'minut' | 'noiseaware' | undefined - /** - * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. - */ - page_cursor?: string | undefined - /** - * String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id` (full or partial UUID prefix, minimum 4 characters), `connected_account_id`, `display_name`, `custom_metadata` or `location.location_name`. - */ - search?: string | undefined - /** - * ID of the space for which you want to list devices. - */ - space_id?: string | undefined - /** - * @deprecated Use `space_id`. - */ - unstable_location_id?: string | undefined - /** - * Your own internal user ID for the user for which you want to list devices. - */ - user_identifier_key?: string | undefined } /** diff --git a/src/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.ts b/src/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.ts index 947656f0..4525401e 100644 --- a/src/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.ts +++ b/src/lib/routes/noise-sensors/noise-thresholds/noise-thresholds.ts @@ -186,8 +186,8 @@ export class SeamHttpNoiseSensorsNoiseThresholds { ): NoiseSensorsNoiseThresholdsDeleteRequest { return new SeamHttpRequest(this, { pathname: '/noise_sensors/noise_thresholds/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -202,8 +202,8 @@ export class SeamHttpNoiseSensorsNoiseThresholds { ): NoiseSensorsNoiseThresholdsGetRequest { return new SeamHttpRequest(this, { pathname: '/noise_sensors/noise_thresholds/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'noise_threshold', options, }) @@ -218,8 +218,8 @@ export class SeamHttpNoiseSensorsNoiseThresholds { ): NoiseSensorsNoiseThresholdsListRequest { return new SeamHttpRequest(this, { pathname: '/noise_sensors/noise_thresholds/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'noise_thresholds', options, }) diff --git a/src/lib/routes/phones/phones.ts b/src/lib/routes/phones/phones.ts index a7a4a76c..e3297939 100644 --- a/src/lib/routes/phones/phones.ts +++ b/src/lib/routes/phones/phones.ts @@ -173,8 +173,8 @@ export class SeamHttpPhones { ): PhonesDeactivateRequest { return new SeamHttpRequest(this, { pathname: '/phones/deactivate', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -189,8 +189,8 @@ export class SeamHttpPhones { ): PhonesGetRequest { return new SeamHttpRequest(this, { pathname: '/phones/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'phone', options, }) @@ -205,8 +205,8 @@ export class SeamHttpPhones { ): PhonesListRequest { return new SeamHttpRequest(this, { pathname: '/phones/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'phones', options, }) diff --git a/src/lib/routes/spaces/spaces.ts b/src/lib/routes/spaces/spaces.ts index 9dfa430d..767261ae 100644 --- a/src/lib/routes/spaces/spaces.ts +++ b/src/lib/routes/spaces/spaces.ts @@ -232,8 +232,8 @@ export class SeamHttpSpaces { ): SpacesDeleteRequest { return new SeamHttpRequest(this, { pathname: '/spaces/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -280,8 +280,8 @@ export class SeamHttpSpaces { ): SpacesListRequest { return new SeamHttpRequest(this, { pathname: '/spaces/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'spaces', options, }) @@ -312,8 +312,8 @@ export class SeamHttpSpaces { ): SpacesRemoveConnectedAccountRequest { return new SeamHttpRequest(this, { pathname: '/spaces/remove_connected_account', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -432,19 +432,19 @@ export type SpacesCreateParameters = { /** * Postal address for the space. */ - address?: string | undefined + address?: string | null | undefined /** * Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ - default_checkin_time?: string | undefined + default_checkin_time?: string | null | undefined /** * Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ - default_checkout_time?: string | undefined + default_checkout_time?: string | null | undefined /** * IANA time zone for the space, e.g. America/Los_Angeles. */ - time_zone?: string | undefined + time_zone?: string | null | undefined } | undefined /** @@ -576,7 +576,7 @@ export type SpacesListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * String for which to search. Filters returned spaces to include all records that satisfy a partial match using `name`, `space_key`, or `customer_key`. */ @@ -675,19 +675,19 @@ export type SpacesUpdateParameters = { /** * Postal address for the space. */ - address?: string | undefined + address?: string | null | undefined /** * Default check-in time for reservations at the space, as HH:mm or HH:mm:ss. */ - default_checkin_time?: string | undefined + default_checkin_time?: string | null | undefined /** * Default check-out time for reservations at the space, as HH:mm or HH:mm:ss. */ - default_checkout_time?: string | undefined + default_checkout_time?: string | null | undefined /** * IANA time zone for the space, e.g. America/Los_Angeles. */ - time_zone?: string | undefined + time_zone?: string | null | undefined } | undefined /** diff --git a/src/lib/routes/thermostats/daily-programs/daily-programs.ts b/src/lib/routes/thermostats/daily-programs/daily-programs.ts index 528221bf..2b380a36 100644 --- a/src/lib/routes/thermostats/daily-programs/daily-programs.ts +++ b/src/lib/routes/thermostats/daily-programs/daily-programs.ts @@ -188,8 +188,8 @@ export class SeamHttpThermostatsDailyPrograms { ): ThermostatsDailyProgramsDeleteRequest { return new SeamHttpRequest(this, { pathname: '/thermostats/daily_programs/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) diff --git a/src/lib/routes/thermostats/schedules/schedules.ts b/src/lib/routes/thermostats/schedules/schedules.ts index 12c4f001..31a89446 100644 --- a/src/lib/routes/thermostats/schedules/schedules.ts +++ b/src/lib/routes/thermostats/schedules/schedules.ts @@ -183,8 +183,8 @@ export class SeamHttpThermostatsSchedules { ): ThermostatsSchedulesDeleteRequest { return new SeamHttpRequest(this, { pathname: '/thermostats/schedules/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -199,8 +199,8 @@ export class SeamHttpThermostatsSchedules { ): ThermostatsSchedulesGetRequest { return new SeamHttpRequest(this, { pathname: '/thermostats/schedules/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'thermostat_schedule', options, }) @@ -215,8 +215,8 @@ export class SeamHttpThermostatsSchedules { ): ThermostatsSchedulesListRequest { return new SeamHttpRequest(this, { pathname: '/thermostats/schedules/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'thermostat_schedules', options, }) @@ -262,7 +262,7 @@ export type ThermostatsSchedulesCreateParameters = { /** * Number of minutes for which a person at the thermostat or using the API can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). */ - max_override_period_minutes?: number | undefined + max_override_period_minutes?: number | null | undefined /** * Name of the thermostat schedule. */ @@ -366,7 +366,7 @@ export type ThermostatsSchedulesUpdateParameters = { /** * Number of minutes for which a person at the thermostat or using the API can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions). */ - max_override_period_minutes?: number | undefined + max_override_period_minutes?: number | null | undefined /** * Name of the thermostat schedule. */ diff --git a/src/lib/routes/thermostats/thermostats.ts b/src/lib/routes/thermostats/thermostats.ts index db8d1a5d..908b130d 100644 --- a/src/lib/routes/thermostats/thermostats.ts +++ b/src/lib/routes/thermostats/thermostats.ts @@ -244,8 +244,8 @@ export class SeamHttpThermostats { ): ThermostatsDeleteClimatePresetRequest { return new SeamHttpRequest(this, { pathname: '/thermostats/delete_climate_preset', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -562,7 +562,7 @@ export type ThermostatsCreateClimatePresetParameters = { /** * User-friendly name to identify the [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets). */ - name?: string | undefined + name?: string | null | undefined } /** @@ -680,26 +680,10 @@ export type ThermostatsListParameters = { * ID of the connected account for which you want to list devices. */ connected_account_id?: string | undefined - /** - * Array of IDs of the connected accounts for which you want to list devices. - */ - connected_account_ids?: Array | undefined - /** - * Timestamp by which to limit returned devices. Returns devices created before this timestamp. - */ - created_before?: string | undefined - /** - * Set of key:value [custom metadata](https://docs.seam.co/core-concepts/devices/adding-custom-metadata-to-a-device) pairs for which you want to list devices. - */ - custom_metadata_has?: Record | undefined /** * Customer key for which you want to list devices. */ customer_key?: string | undefined - /** - * Array of device IDs for which you want to list devices. - */ - device_ids?: Array | undefined /** * Device type by which you want to filter thermostat devices. */ @@ -724,10 +708,6 @@ export type ThermostatsListParameters = { | 'smartthings_thermostat' > | undefined - /** - * Numerical limit on the number of devices to return. - */ - limit?: number | undefined /** * Manufacturer by which you want to filter thermostat devices. */ @@ -739,26 +719,6 @@ export type ThermostatsListParameters = { | 'smartthings' | 'tado' | undefined - /** - * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. - */ - page_cursor?: string | undefined - /** - * String for which to search. Filters returned devices to include all records that satisfy a partial match using `device_id` (full or partial UUID prefix, minimum 4 characters), `connected_account_id`, `display_name`, `custom_metadata` or `location.location_name`. - */ - search?: string | undefined - /** - * ID of the space for which you want to list devices. - */ - space_id?: string | undefined - /** - * @deprecated Use `space_id`. - */ - unstable_location_id?: string | undefined - /** - * Your own internal user ID for the user for which you want to list devices. - */ - user_identifier_key?: string | undefined } /** @@ -901,19 +861,19 @@ export type ThermostatsSetTemperatureThresholdParameters = { /** * Lower temperature limit in in °C. Seam alerts you if the reported temperature is lower than this value. You can specify either `lower_limit` but not both. */ - lower_limit_celsius?: number | undefined + lower_limit_celsius?: number | null | undefined /** * Lower temperature limit in in °F. Seam alerts you if the reported temperature is lower than this value. You can specify either `lower_limit` but not both. */ - lower_limit_fahrenheit?: number | undefined + lower_limit_fahrenheit?: number | null | undefined /** * Upper temperature limit in in °C. Seam alerts you if the reported temperature is higher than this value. You can specify either `upper_limit` but not both. */ - upper_limit_celsius?: number | undefined + upper_limit_celsius?: number | null | undefined /** * Upper temperature limit in in °C. Seam alerts you if the reported temperature is higher than this value. You can specify either `upper_limit` but not both. */ - upper_limit_fahrenheit?: number | undefined + upper_limit_fahrenheit?: number | null | undefined } /** @@ -995,7 +955,7 @@ export type ThermostatsUpdateClimatePresetParameters = { /** * User-friendly name to identify the [climate preset](https://docs.seam.co/capability-guides/thermostats/creating-and-managing-climate-presets). */ - name?: string | undefined + name?: string | null | undefined } /** @@ -1019,31 +979,31 @@ export type ThermostatsUpdateWeeklyProgramParameters = { /** * ID of the thermostat daily program to run on Fridays. */ - friday_program_id?: string | undefined + friday_program_id?: string | null | undefined /** * ID of the thermostat daily program to run on Mondays. */ - monday_program_id?: string | undefined + monday_program_id?: string | null | undefined /** * ID of the thermostat daily program to run on Saturdays. */ - saturday_program_id?: string | undefined + saturday_program_id?: string | null | undefined /** * ID of the thermostat daily program to run on Sundays. */ - sunday_program_id?: string | undefined + sunday_program_id?: string | null | undefined /** * ID of the thermostat daily program to run on Thursdays. */ - thursday_program_id?: string | undefined + thursday_program_id?: string | null | undefined /** * ID of the thermostat daily program to run on Tuesdays. */ - tuesday_program_id?: string | undefined + tuesday_program_id?: string | null | undefined /** * ID of the thermostat daily program to run on Wednesdays. */ - wednesday_program_id?: string | undefined + wednesday_program_id?: string | null | undefined } /** diff --git a/src/lib/routes/user-identities/unmanaged/unmanaged.ts b/src/lib/routes/user-identities/unmanaged/unmanaged.ts index 6c58c6a1..a401e0e9 100644 --- a/src/lib/routes/user-identities/unmanaged/unmanaged.ts +++ b/src/lib/routes/user-identities/unmanaged/unmanaged.ts @@ -170,8 +170,8 @@ export class SeamHttpUserIdentitiesUnmanaged { ): UserIdentitiesUnmanagedGetRequest { return new SeamHttpRequest(this, { pathname: '/user_identities/unmanaged/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'user_identity', options, }) @@ -186,8 +186,8 @@ export class SeamHttpUserIdentitiesUnmanaged { ): UserIdentitiesUnmanagedListRequest { return new SeamHttpRequest(this, { pathname: '/user_identities/unmanaged/list', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'user_identities', options, }) @@ -245,7 +245,7 @@ export type UserIdentitiesUnmanagedListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * String for which to search. Filters returned unmanaged user identities to include all records that satisfy a partial match using `full_name`, `phone_number`, `email_address`, `user_identity_id` or `acs_system_id`. */ diff --git a/src/lib/routes/user-identities/user-identities.ts b/src/lib/routes/user-identities/user-identities.ts index 4aec2c35..e5f9de1b 100644 --- a/src/lib/routes/user-identities/user-identities.ts +++ b/src/lib/routes/user-identities/user-identities.ts @@ -217,8 +217,8 @@ export class SeamHttpUserIdentities { ): UserIdentitiesDeleteRequest { return new SeamHttpRequest(this, { pathname: '/user_identities/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -297,8 +297,8 @@ export class SeamHttpUserIdentities { ): UserIdentitiesListAccessibleDevicesRequest { return new SeamHttpRequest(this, { pathname: '/user_identities/list_accessible_devices', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'devices', options, }) @@ -313,8 +313,8 @@ export class SeamHttpUserIdentities { ): UserIdentitiesListAccessibleEntrancesRequest { return new SeamHttpRequest(this, { pathname: '/user_identities/list_accessible_entrances', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_entrances', options, }) @@ -329,8 +329,8 @@ export class SeamHttpUserIdentities { ): UserIdentitiesListAcsSystemsRequest { return new SeamHttpRequest(this, { pathname: '/user_identities/list_acs_systems', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_systems', options, }) @@ -345,8 +345,8 @@ export class SeamHttpUserIdentities { ): UserIdentitiesListAcsUsersRequest { return new SeamHttpRequest(this, { pathname: '/user_identities/list_acs_users', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'acs_users', options, }) @@ -361,8 +361,8 @@ export class SeamHttpUserIdentities { ): UserIdentitiesRemoveAcsUserRequest { return new SeamHttpRequest(this, { pathname: '/user_identities/remove_acs_user', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -377,8 +377,8 @@ export class SeamHttpUserIdentities { ): UserIdentitiesRevokeAccessToDeviceRequest { return new SeamHttpRequest(this, { pathname: '/user_identities/revoke_access_to_device', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -434,19 +434,19 @@ export type UserIdentitiesCreateParameters = { /** * Unique email address for the new user identity. */ - email_address?: string | undefined + email_address?: string | null | undefined /** * Full name of the user associated with the new user identity. */ - full_name?: string | undefined + full_name?: string | null | undefined /** * Unique phone number for the new user identity in E.164 format (for example, +15555550100). */ - phone_number?: string | undefined + phone_number?: string | null | undefined /** * Unique key for the new user identity. */ - user_identity_key?: string | undefined + user_identity_key?: string | null | undefined } /** @@ -564,7 +564,7 @@ export type UserIdentitiesListParameters = { /** * Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */ - page_cursor?: string | undefined + page_cursor?: string | null | undefined /** * String for which to search. Filters returned user identities to include all records that satisfy a partial match using `full_name`, `phone_number`, `email_address` or `user_identity_id`. */ @@ -723,15 +723,15 @@ export type UserIdentitiesUpdateParameters = { /** * Unique email address for the user identity. */ - email_address?: string | undefined + email_address?: string | null | undefined /** * Full name of the user associated with the user identity. */ - full_name?: string | undefined + full_name?: string | null | undefined /** * Unique phone number for the user identity. */ - phone_number?: string | undefined + phone_number?: string | null | undefined /** * ID of the user identity that you want to update. */ @@ -740,7 +740,7 @@ export type UserIdentitiesUpdateParameters = { /** * Unique key for the user identity. */ - user_identity_key?: string | undefined + user_identity_key?: string | null | undefined } /** diff --git a/src/lib/routes/webhooks/webhooks.ts b/src/lib/routes/webhooks/webhooks.ts index 98fa0a27..bf30e3e5 100644 --- a/src/lib/routes/webhooks/webhooks.ts +++ b/src/lib/routes/webhooks/webhooks.ts @@ -183,8 +183,8 @@ export class SeamHttpWebhooks { ): WebhooksDeleteRequest { return new SeamHttpRequest(this, { pathname: '/webhooks/delete', - method: 'POST', - body: parameters, + method: 'DELETE', + params: parameters, responseKey: undefined, options, }) @@ -199,8 +199,8 @@ export class SeamHttpWebhooks { ): WebhooksGetRequest { return new SeamHttpRequest(this, { pathname: '/webhooks/get', - method: 'POST', - body: parameters, + method: 'GET', + params: parameters, responseKey: 'webhook', options, }) diff --git a/src/lib/routes/workspaces/workspaces.ts b/src/lib/routes/workspaces/workspaces.ts index 1223cc75..c2c08ea2 100644 --- a/src/lib/routes/workspaces/workspaces.ts +++ b/src/lib/routes/workspaces/workspaces.ts @@ -254,7 +254,7 @@ export type WorkspacesCreateParameters = { * Connect partner name for the new workspace. * @deprecated Use `company_name` instead. */ - connect_partner_name?: string | undefined + connect_partner_name?: string | null | undefined /** * [Connect Webview](https://docs.seam.co/core-concepts/connect-webviews) customizations for the new workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews). */ @@ -263,19 +263,19 @@ export type WorkspacesCreateParameters = { /** * Logo shape for [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) in the new workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews). */ - logo_shape?: 'circle' | 'square' | undefined + logo_shape?: 'circle' | 'square' | null | undefined /** * Primary button color for [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) in the new workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews). */ - primary_button_color?: string | undefined + primary_button_color?: string | null | undefined /** * Primary button text color for [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) in the new workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews). */ - primary_button_text_color?: string | undefined + primary_button_text_color?: string | null | undefined /** * Success message for [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) in the new workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews). */ - success_message?: string | undefined + success_message?: string | null | undefined } | undefined /** @@ -379,19 +379,19 @@ export type WorkspacesUpdateParameters = { /** * Logo shape for [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews). */ - logo_shape?: 'circle' | 'square' | undefined + logo_shape?: 'circle' | 'square' | null | undefined /** * Primary button color for [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews). */ - primary_button_color?: string | undefined + primary_button_color?: string | null | undefined /** * Primary button text color for [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews). */ - primary_button_text_color?: string | undefined + primary_button_text_color?: string | null | undefined /** * Success message for [Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews) in the workspace. See also [Customize the Look and Feel of Your Connect Webviews](https://docs.seam.co/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-look-and-feel-of-your-connect-webviews). */ - success_message?: string | undefined + success_message?: string | null | undefined } | undefined /** diff --git a/test/seam/connect/headers.test.ts b/test/seam/connect/headers.test.ts index c477bdb8..cf005640 100644 --- a/test/seam/connect/headers.test.ts +++ b/test/seam/connect/headers.test.ts @@ -16,7 +16,8 @@ test('SeamHttp: sends default headers', async (t) => { 'seam-sdk-version': seamapiJavascriptHttpVersion, }, }) - .post('/devices/get', { device_id: deviceId }) + .get('/devices/get') + .query({ device_id: deviceId }) .reply(200, { device: { device_id: deviceId } }) const seam = new SeamHttp({ apiKey: seed.seam_apikey1_token, endpoint }) const device = await seam.devices.get({ diff --git a/test/seam/connect/seam-http-request.test.ts b/test/seam/connect/seam-http-request.test.ts index 8d1842e0..b5b72506 100644 --- a/test/seam/connect/seam-http-request.test.ts +++ b/test/seam/connect/seam-http-request.test.ts @@ -13,7 +13,7 @@ test('SeamHttp: returns a SeamHttpRequest', async (t) => { t.true(request instanceof SeamHttpRequest) t.truthy(request.url) t.is(request.responseKey, 'device') - t.deepEqual(request.body, { + t.deepEqual(request.params, { device_id: seed.august_device_1, }) @@ -83,7 +83,9 @@ test('SeamHttpRequest: url is a URL when endpoint is a url without a path', asyn t.true(url instanceof URL) t.deepEqual( toPlainUrlObject(url), - toPlainUrlObject(new URL('https://example.com/devices/get')), + toPlainUrlObject( + new URL('https://example.com/devices/get?device_id=abc123'), + ), ) }) @@ -98,7 +100,9 @@ test('SeamHttpRequest: url is a URL when endpoint is a url with a path', async ( t.true(url instanceof URL) t.deepEqual( toPlainUrlObject(url), - toPlainUrlObject(new URL('https://example.com/some/sub/path/devices/get')), + toPlainUrlObject( + new URL('https://example.com/some/sub/path/devices/get?device_id=abc123'), + ), ) })