dsh-remote-cluster 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -8
- package/cordis.patch.yml +2 -0
- package/lib/client.js +1520 -2613
- package/lib/contracts.d.ts +84 -389
- package/lib/host/artifacts.d.ts +0 -1
- package/lib/host/artifacts.js +4 -4
- package/lib/host/helper.js +19 -4
- package/lib/host/notification-state.d.ts +2 -2
- package/lib/host/notification-state.js +4 -2
- package/lib/host/notifications.d.ts +4 -2
- package/lib/host/notifications.js +14 -4
- package/lib/host/plugin-upgrade.d.ts +2 -2
- package/lib/host/plugin-upgrade.js +3 -3
- package/lib/host/policy.d.ts +1 -6
- package/lib/host/policy.js +6 -21
- package/lib/host/runtime.d.ts +3 -3
- package/lib/host/runtime.js +16 -17
- package/lib/host/trust-stream.js +4 -4
- package/lib/index.js +1004 -1958
- package/lib/remote-web/assets/{b7f316f5fb0833db75e64ce8b7175fed9f7c183ecde8cbefeed176d486bed045.js → 0084c52f62a385e6094e5dfa889de8c7099e915b1ef0c5119c91745ac29ea890.js} +24 -24
- package/lib/remote-web/assets/{d21d232ead8f68e0e469830b95f6453508ed06591fd6cdb5f0b01f3ea61c24c7.js → 02ea64b75b5ebef3caa1dc974cc4e1e4e524c9cddaf60fd88f058f483bce03be.js} +100 -100
- package/lib/remote-web/assets/{098bde291652f9081cfecf174e69dba72fdf314d723e9e5c3e3b8ef492ef060c.js → 08034715255f7a5edb4b26ddedbad14f7972f25bb1ce9fb3e8740c66bb9ad956.js} +1 -1
- package/lib/remote-web/assets/{0a35520ffc7be23507ad92b1356c324e16e67816207fe53f7148fb129e3f7b16.js → 087bed002531649ed2b202ef468b6bdf42b3ce77848316fc3377741e52fa2f84.js} +1 -1
- package/lib/remote-web/assets/{adfdafc2983dd8062d21830340ae64002b98a0b73112397c1e18b87e50981eb5.js → 08ccb052f1bf6514d581ea35581c796a8b72b119a3ede4c49659569d4ba2b390.js} +14 -14
- package/lib/remote-web/assets/{334885a21328d9e13b7b2a55291f3029eb7e643be2193c72bc1d92b93f5e8124.js → 09d0199543b952650a5fc2822fa3f1f1b11ec40fb6821be4e4a4957a54462fa5.js} +13 -13
- package/lib/remote-web/assets/{15a481b4185010cf0070c1765cff4ae70803c47009b46b969ed23245d47d8d1b.js → 0c7796fb3d285a3e952108018f50ca54f6f9abe12cd5d113abfdda6ca0a9c291.js} +210 -210
- package/lib/remote-web/assets/{3fa1e622c06d545d0397d9294797e08af723cf89efcf27ba0b6a06ab3178b74b.js → 0cde6b99667f8398fc0b93679218518296de65e93c7add4e514fb84b037288fb.js} +1 -1
- package/lib/remote-web/assets/{1c98cd48db7795f939b6f60e34e476c5cdb987b74591c888221bc3cffcd039b9.js → 0d98fb17a975a69e1a44a15a6a7a598f51e4ec7e87d63c5dbba20c937b79b278.js} +536 -536
- package/lib/remote-web/assets/{7e81b7468feb6d690a5ae7bdc9f6d39764372cd64ffac39e5903ccd2de452bb2.js → 0df770f50561c1809781b6df2e39cdd9955bf85a0078b890965e1b5f4a8a644a.js} +35 -35
- package/lib/remote-web/assets/{b96274d6ccca084c0ecddbe2b511899ee8170bdb07f0443b78ed04aee136a9ea.js → 122d30bcfc3f574de9cef4216d1bae603158b8c362157107856a90b224bfa4d6.js} +163 -163
- package/lib/remote-web/assets/{cebafc997b717b6e4129067181e893f3a8789b5b57d22ab0b42ac9228b824281.js → 139b0cb0e366fa40d529e32c7dc7bef81fa9242d5814c77b20399c022b26b657.js} +1 -1
- package/lib/remote-web/assets/{5d58a7f2c9328dff985f169ff9b1d11e19341e1fc195364336c6d19d9944e919.js → 15133b18c27254c4071409497f17ce289290096f02444f776579322822e056fa.js} +11 -11
- package/lib/remote-web/assets/{e9275df5d01fa592536ef387b19c25aebc136aac8e3faa310bca203a43aee10b.js → 18a1bfce18b181785c5722a84fa68c2448c5c293845a54463608c249052231fa.js} +8 -8
- package/lib/remote-web/assets/{1adb6da8d7880db5639471451e8f1a734fd2a3a9366b1564b6d1df7626461b55.js → 18e7fca36248d92ede2e900db36d1caa20a1fc4ef228cff27ce1432a96df4edf.js} +77 -77
- package/lib/remote-web/assets/{01973d1544b193546badc3d3a5b3f3e4ff25c0f97f5dbe31419d8e847dcd1efb.js → 1c14db1f0a14adeb85ae8f71ce1b3c48437014fea4647a28191ec9aeec8e9d64.js} +1 -1
- package/lib/remote-web/assets/{f444d2cee7fc1bdac53f7114a920c659842cdf99e28a24bbd47bb24680bbea9e.js → 1d1aa9c727ce764d8dfdbe2419497486fce7acd87b5208ba38401e51bba343da.js} +43 -43
- package/lib/remote-web/assets/{2c542544e16be5db63d680b340dc54945c5f1c118b9d2bdff9d1cd86e119bccd.js → 1da0fcc4e8c98734daabe0b842ae647c5b31603595932c7679ec0fa5d26530a3.js} +20 -20
- package/lib/remote-web/assets/{e034cf380b694c73636b3b0806ba7373e1801855aacb940f72c15fa229de2b49.js → 1dc4ca74265350d289728f94a067f90af7b0512ff57a11ccc1592cad93b9dc05.js} +1 -1
- package/lib/remote-web/assets/{43a4cc3e142648f4ac9f9be6935c483d45ca25e93509a743ad52893179707a52.js → 2760cb3815b4db58d919c994e60adf195e4cffadbb5a7bb7864e5e38f0e9c4cc.js} +1 -1
- package/lib/remote-web/assets/{f1525fc764d1075eb7e514eef4c8727f861268ca1cd13a7932fe346c783928c1.js → 3b7e8eedc420d0f92c8e02f4f76d2770335cd6886deb43a21c7a055236389ce2.js} +2033 -2018
- package/lib/remote-web/assets/{e02bf19583b6a625934e7a3f186d9501b7643cf66fb8842c112aec334d6c6fb2.js → 3bdb86657b39a44141e195454ff97175c002e6645e854cf5a53e79e14f62d1a7.js} +1 -1
- package/lib/remote-web/assets/{2468f65781a1ed70cba018fd39cc67a752b1bab369a5cea6496979d953469a98.js → 44359122d19e49d937a2479a03fa4b54487ad56333bc8ea3af88ecb93f343a57.js} +56 -56
- package/lib/remote-web/assets/{b951fa440cfa468b10993fc6ab7ff26049c3feeb2555508d3314941ce61d1688.js → 48ee5453fb22d299af902f2f16d392fc3f0fd1c7a61d529af3c8ec2d852d0ef9.js} +1 -1
- package/lib/remote-web/assets/{12e7dcb173cae94664df91583dfee627aff9e6274330cf4ceb8a71848015b1f5.js → 4a9fb8705a24728082865ef72044ed52f7dc8af7958a6c59e2f54a322ea159d3.js} +81 -81
- package/lib/remote-web/assets/{fe588c75b14b5b80a8b1e2ed3d427a018b0478a710ff1158285299a118c68552.js → 4b1f01ce0e6cdf3427082b0ea09f5b4444c5f33becb2e61fcff036be6caecf61.js} +39 -39
- package/lib/remote-web/assets/{94dc298a4c0b13582626b568744d73438379611c70c94f27276de5524a764646.js → 4b5bbd08c07143177017aec55b9c3cfa99f7ac2b7e7df41eb711e5686e8fc45c.js} +1 -1
- package/lib/remote-web/assets/{adb35a440db8d19c4c4259db43a2581dc976973a18c33a21537c7a4f134c3751.js → 4d62ec73c613195dbcc605687437075d9ae69abfff46f2222828ef6552aeb7fb.js} +198 -198
- package/lib/remote-web/assets/{ddfab7b1b5a26429dec5bce358ed59cbfde9abb4163d799cc21dd0c81bbf0039.js → 4fba08815fd76d75051f8cd3a8422efaddaabd35916b782b8c3a6c5efca37df7.js} +1 -1
- package/lib/remote-web/assets/{6b47fdd8a6f11322c7b05295cc13333968713fb6d31afd3aaff2ff472e779899.js → 51df9318706eec62dd9ac25b3e177f27b381b2badd74c9105b4ecd19fd9d8a7f.js} +187 -187
- package/lib/remote-web/assets/{f95c2501d2da00fc152537c126ec680b4ce0d1bbe11439e34d39906400e0d314.js → 5448433f82ecf21d6c836ad57deddf1794ba63eee14e7380d3f61f84e12e5fdb.js} +38 -38
- package/lib/remote-web/assets/{d60e1fc1a4c2fd58f0e8bdba92181866c6a91dbe78f246ff13a7f36f322fe2e0.js → 5513a63c1c3db2570ffc3d4247838e1fdd74720aea7f6fc31ae2e5e7803f55ba.js} +10 -10
- package/lib/remote-web/assets/{a5fbb399f54ed13ab75612b231af21361747b2aa647d74f9643d09ebf6850cf4.js → 61aefa00f389470ac6c115e3235e098fd748b96305383a2d1bd6ce44cea0fec5.js} +17 -17
- package/lib/remote-web/assets/{77466b3f709f3db981e917e814f6a994525b19e6549a9cd39329242cba39a8ec.js → 633253522c4782e41100d66490ce6cdecabeca111378fbc37584a4cfceccfb15.js} +8 -8
- package/lib/remote-web/assets/{859bc5e8483c0b551734cf5b56d293ffac7c6ad861753115ed3e614b7063f875.js → 6e4e15365f3e55613ce8287ad50e74b10b45b9a93e8e3ea0432a84d3339a0814.js} +4 -4
- package/lib/remote-web/assets/{49d4a89c9a9c14f512853f602a6a48677fc2bfaccb285968dbbf7a5bce9cca23.js → 7b45fae07f4e474e34e468c8e2d6ec357ccbd6cfa3874e9f1f16852975bf7b70.js} +28 -28
- package/lib/remote-web/assets/{02fa8868185ded075a4fc747a57779bb44693016716e7f5cf15118d5e277f67d.js → 7b668aebc28b5370196dc974f744a9b73ee22fb64ac86644bbd3f6d35e30a9c3.js} +1 -1
- package/lib/remote-web/assets/{86f233ebd933cc27cd1fd375eadaef756258ec6ef3f1ec6bbc8a74bd749b25cf.js → 81a52db264b358f8a0571c1a21df44d005711d3070edab12b01718962f237daa.js} +19 -19
- package/lib/remote-web/assets/{27049d2062e1559c71c12312b3bd4a3d12b7551aa1cae18d0eabef42b15f22e3.js → 85674b722e9ddd3a7fb57729957619a72c125c6444b8067bedaf736a083e8870.js} +66 -66
- package/lib/remote-web/assets/{7c12a1642113ad6e6fef1215ece81f8119e6eda32c933d0e6d0cdf45b955dcf6.js → 8ec58a658326c139649a5fa4337d716d487a19eb53cefef6ab33a8f170cbb937.js} +12 -12
- package/lib/remote-web/assets/{ac1eeb4080e4ceeb19b90bae0449d11cf3bca7bb10865f75d22234b193e3c71f.js → 8ee1f0abb65b41bdae842afcf92fd5423227ff79190064d16d72e3cf5d663ccb.js} +66 -66
- package/lib/remote-web/assets/{76df7944d9167c8570be01943f4c4fa388c231ce28679391478a621a2b992302.js → 93e5328c86c55d0f5f572c52e301a94edb6ff183e59a088c807cb003acf19b3e.js} +40 -40
- package/lib/remote-web/assets/{af8d8b6d4866268a09ab3fa3a7b4207ee05a679acab4b0fdcb636573d4362cd4.js → 95db94d22c7fbb20288fd23f7300f237a32eef01fb14d080ce2ba5a4056cb58b.js} +5 -2
- package/lib/remote-web/assets/{8d9390f9055cae8f6cb9007160df46e927206e8bc6be2b85ad2cded69c55c258.js → 971050ba209a083dc0f76aae76c920b0cf6f39833caa9eac04d5e7c098b10294.js} +6 -6
- package/lib/remote-web/assets/{65245e000893241e7bb501a9a74f817e7127d3ac52f9498f426729e33b936042.css → 9b651fa4a96aae97c23e1e7774719c275901770622525feddee8982f881d30cb.css} +1 -1
- package/lib/remote-web/assets/{5f7c0da75b7d175568413e9252b489e38e1a105dc5cba4ee2af5c14614b19636.js → 9be52bd9e34016d26eac150a60864792bac13cedeb610134847c3750fe6d7d65.js} +1 -1
- package/lib/remote-web/assets/{fad9547b869d68c968df3a4c6223547dea854d82ba9d03b5bed7cb1b6f5a863a.js → a46ac5f37d4d56a6f3ef55f9d1c22afe79ae6e6486cac58d1a8b5f4aa35e3454.js} +4 -4
- package/lib/remote-web/assets/{b4795c75852caa38530903f2f5c6a068245769ca598519062ef8c84ee952dcbb.js → a902a4629188498d3de6c11bdab9d6331ebc78ac84f1eed1426808e152324eef.js} +1 -1
- package/lib/remote-web/assets/{3c58d660556f04bf959a80a68ceb24f9ca271effa47d4c11bf80a2a7298e094b.js → b14165b5a2b7ea65983dd50bb4d2a812e742902d215ac0838e4acb6e9d2219cb.js} +29 -29
- package/lib/remote-web/assets/{e9c84734488eb05a5046cdadc91c42eead837ebba2c347382afb6b6a928ff453.js → bc71bf8433d22d5044fc0a1d23cf3da7249e1d4d68a28403cdcdeb62f6c06fd0.js} +8 -8
- package/lib/remote-web/assets/{4452b5457ed9ef75852ed655421678a4c9761a8ba665a6acb76a7bee9591f80a.js → c19cad32a941358746573aa8775bfa25bb039ab11c0dbc8609472e4954d99569.js} +1 -1
- package/lib/remote-web/assets/{1dc7a20ec252e349870f557514a7400c40204ec2843b5465f2566fbda4c2c6d7.js → c3c64c8c168f764e3179ddc5756b784bae721d76425f2bed1be8c94c2981c023.js} +105 -105
- package/lib/remote-web/assets/{642d744b2336ffdca7f6ef2142b982d7583dc16a8f0fa6336a3ad342ae2e92bf.js → c9b9443fe4210c5c7e9c473b18516d12972136bc2158944009e64f378d6a0f76.js} +61 -61
- package/lib/remote-web/assets/{9ad4c375e58485513f0bb245c565dde8d9e377daa743973c2ffbd1db6edf5c14.js → ca4eacba163e6456f16b51db159f5bb8022d77f769d997e71542a8a462526f89.js} +1 -1
- package/lib/remote-web/assets/{19fdc5bfa9eb27746a52d4136d82432adad1fc5c05da343375c47e9eb1e0ff6d.js → cb63e257fb5d660613f44875d534ed8b2ca3d84ea23a7c2126a32b48848bb952.js} +1 -1
- package/lib/remote-web/assets/{18be6c6b00a6cebc5d61c987d345c295670aba2c448824b89394ef0225a9ad8f.js → d091b2f2d7a7405446aa3cf3e9222ab01c9108c51d8bdaddac35e1c0787f5d9e.js} +17 -17
- package/lib/remote-web/assets/{a9136a821ffdecfbb7da3181201a294599113fde30a9194d300a0ebd04265777.js → d1702ad9988e1f43af19d6222173fcd19df5eeb818178d0121965cb28c4aac79.js} +32 -32
- package/lib/remote-web/assets/{3ca829260281ebaa7e63eacb26fb5d6f9b3d2536424f17602f43eca797236daf.js → d2214a70ac36fce2f7f9f4fc955d487fdb7b2fac778eb6768bafefbf9d483756.js} +96 -96
- package/lib/remote-web/assets/{32eac0da1495da50f652018ac86c7dfeb5623a5aad823b876f42220667f1e7ed.js → d5a949b16e3425e396fbb9da6c72b7753c712d7a6e2f7cd82ee149ea5dddaf46.js} +19 -19
- package/lib/remote-web/assets/{6381af51cd1f1ff8f74971e145d78efbbb0a91ee04c08b67b0d826807410ce6c.js → d89ab139a3c4c779fcd0f7d90178e1e40b6918df5ff3ee88bf2e21ff4f4a408c.js} +23 -23
- package/lib/remote-web/assets/{52ac36b862f86e3fb3484b4cf739c2814e10c48be9a2ff0628a7ca41fc58286a.js → dad39c89eb29f99a02c2af23d3a8311b91f0b5a6ec46ef82e6e9dccdbb5ee6fc.js} +46 -46
- package/lib/remote-web/assets/{6e976052085dd6ca0696d3a8af15c019d603ffbebd7025e4296adde26392b610.js → dc5ab043cebd5fea48e4986e9702c1e7e80474ff9d9d169ac0cc3e5011d2a577.js} +14 -14
- package/lib/remote-web/assets/{005428c618c289f581815d719452c1d079fde087ab7597f1f4c9612cc9a58a4d.js → e1ae1c76c261fb7942bbcb954a2daf44b19e441c43a1e01bec909e11a0e3a112.js} +17 -17
- package/lib/remote-web/assets/{18f57f2be1c19d9ef485ceb00726357034de63728633c69d63ca2e2308e5958b.js → e2588f4df22316a5592393a5d6a846477deb9a7e61e2bb275bffdbdc2aceeb18.js} +1 -1
- package/lib/remote-web/assets/{c597d36a6b01cd4210733f7646be58b0868d3daa52d99430c5af5d28c89657b4.js → e2b04a76c8759e5147bbdd901106b4c52abdf7a930b50fc1b9db0abfde6943d4.js} +55 -55
- package/lib/remote-web/assets/{a1ec080e7d44c62ef90702af75eeeb076d07fe038c0520cad58bd3dbd423292d.js → e473d6a294c1c3e8dc0de53d575c5dfb819e7ac17276c2a1a6857f00926cca23.js} +248 -236
- package/lib/remote-web/assets/{9e5285630189b8e0b0a05ff063c168a7529bdc050577951adfb83d259211da24.js → e49b263f1d23afca80ae12e6b22bad8160d7af4040e67f651e118716501c9877.js} +7 -7
- package/lib/remote-web/assets/{e199929a866f9546c5f82ffa151f6360c31fae41e50594eb6d581f332a3e6b0c.js → e5c3c7acacaa3a8fe1a751fe18efd6971ed08da4bcfe22552b5ab2acdffbdda0.js} +10 -10
- package/lib/remote-web/assets/{6e8987340a515a088aca1ac7a058497830773028608c13ce2534d879148cd4e1.js → e97c5e1b2d22345551b36963fa0732dd2d3b35b2151c325afa5383a92274a46b.js} +1 -1
- package/lib/remote-web/assets/{64b30fa405d0e970e2cd9965e6885cf0a51d3e9405620cb9b7475dcd201567e8.js → e9dc6f3cb84e3cbbbf89f784935ddb888998996c6a821cdd6034813519d5b805.js} +40 -40
- package/lib/remote-web/assets/{940768cc4030ed48826915533c051037bf0cc7abe1cf7beb848209117e9e1e8c.js → eca547fd17bc209b737202e26038f067f5e7343d03853c03c522a7ffce1478e9.js} +27 -27
- package/lib/remote-web/assets/{cafa7df812524a60fdd7a87a5e2a999d30a3db98020be2215d3911e971b82703.js → eda44f09786da18ba9e1565add234c28dc6ce7921f8015c0d1802d41fab65830.js} +48 -48
- package/lib/remote-web/assets/{a2d62f5423b1fa2be3fa79c3f7242ae5152a993ac5179767aebb5c494eb23a31.js → fad9a550005adba79006e476f4542fb0946734ceaf44963d7dcdf6b671f5366c.js} +1 -1
- package/lib/remote-web/assets/{679ca4f6d055b4e3f42552bc908312a3a2a9639cc0ebdd26559de02051b2d720.js → fbc51e4c027ee369392bf78c535d4713e226dd65e4be60c0e7466205f3cb514f.js} +193 -193
- package/lib/remote-web/assets/{d780f0181c73771dade5f793f0a81fc914cc45cae63d1dc4cb04c2c34f2ddbe4.js → fe91c282e5695c3920bcb5168c49c0038909b22b040269802b348889d07ac6e1.js} +1 -1
- package/lib/remote-web/index.html +2 -2
- package/lib/remote-web/manifest.json +461 -461
- package/package.json +24 -23
- package/lib/host/awake-timeout.d.ts +0 -24
- package/lib/host/awake-timeout.js +0 -45
package/lib/index.js
CHANGED
|
@@ -177,7 +177,7 @@ async function packagedBinaries(directory = void 0, platform = process.platform,
|
|
|
177
177
|
`dsh-remote-cluster ${pluginVersion} has no compatible native artifact for ${target} (IPC 1, etcd 3.6.5)`
|
|
178
178
|
);
|
|
179
179
|
const validate = async (file) => {
|
|
180
|
-
if (!/^[A-Za-z0-9._-]+$/.test(file.file) || !/^[0-9a-f]{64}$/.test(file.sha256))
|
|
180
|
+
if (!file || !/^[A-Za-z0-9._-]+$/.test(file.file) || !/^[0-9a-f]{64}$/.test(file.sha256))
|
|
181
181
|
throw fault("VERSION_UNSUPPORTED", "Invalid packaged native manifest");
|
|
182
182
|
const path = join(directory, target, file.file);
|
|
183
183
|
let bytes;
|
|
@@ -197,8 +197,7 @@ async function packagedBinaries(directory = void 0, platform = process.platform,
|
|
|
197
197
|
return path;
|
|
198
198
|
};
|
|
199
199
|
return {
|
|
200
|
-
helperBinary: await validate(selected.helper)
|
|
201
|
-
etcdBinary: await validate(selected.etcd)
|
|
200
|
+
helperBinary: await validate(selected.helper)
|
|
202
201
|
};
|
|
203
202
|
}
|
|
204
203
|
async function resolvePluginConfig(input, profile) {
|
|
@@ -209,7 +208,7 @@ async function resolvePluginConfig(input, profile) {
|
|
|
209
208
|
process.env.XDG_CONFIG_HOME ?? join(homedir(), ".config"),
|
|
210
209
|
"dsh-remote"
|
|
211
210
|
);
|
|
212
|
-
const native = input.helperBinary
|
|
211
|
+
const native = input.helperBinary ? { helperBinary: input.helperBinary } : await packagedBinaries();
|
|
213
212
|
return {
|
|
214
213
|
...native,
|
|
215
214
|
dataDirectory: join(
|
|
@@ -219,6 +218,7 @@ async function resolvePluginConfig(input, profile) {
|
|
|
219
218
|
),
|
|
220
219
|
deviceDirectory: join(root, "device"),
|
|
221
220
|
credentialNamespace: "dsh-remote",
|
|
221
|
+
notificationGateway: "https://dsh-notification-gateway.cugismyschool.workers.dev",
|
|
222
222
|
maxCallers: 32,
|
|
223
223
|
maxReadBytes: 4 * 1024 * 1024,
|
|
224
224
|
directoryMaxEntries: 1e3,
|
|
@@ -256,11 +256,6 @@ var ipc_schema_default = {
|
|
|
256
256
|
payload: {
|
|
257
257
|
type: "object",
|
|
258
258
|
properties: {
|
|
259
|
-
instanceId: {
|
|
260
|
-
type: "string",
|
|
261
|
-
minLength: 1,
|
|
262
|
-
maxLength: 4096
|
|
263
|
-
},
|
|
264
259
|
dataDirectory: {
|
|
265
260
|
type: "string",
|
|
266
261
|
minLength: 1,
|
|
@@ -366,11 +361,6 @@ var ipc_schema_default = {
|
|
|
366
361
|
type: "string",
|
|
367
362
|
minLength: 1,
|
|
368
363
|
maxLength: 4096
|
|
369
|
-
},
|
|
370
|
-
instanceName: {
|
|
371
|
-
type: "string",
|
|
372
|
-
minLength: 1,
|
|
373
|
-
maxLength: 128
|
|
374
364
|
}
|
|
375
365
|
},
|
|
376
366
|
required: [
|
|
@@ -448,11 +438,6 @@ var ipc_schema_default = {
|
|
|
448
438
|
type: "string",
|
|
449
439
|
minLength: 1,
|
|
450
440
|
maxLength: 4096
|
|
451
|
-
},
|
|
452
|
-
instanceName: {
|
|
453
|
-
type: "string",
|
|
454
|
-
minLength: 1,
|
|
455
|
-
maxLength: 128
|
|
456
441
|
}
|
|
457
442
|
},
|
|
458
443
|
required: [
|
|
@@ -470,41 +455,6 @@ var ipc_schema_default = {
|
|
|
470
455
|
],
|
|
471
456
|
additionalProperties: false
|
|
472
457
|
},
|
|
473
|
-
{
|
|
474
|
-
type: "object",
|
|
475
|
-
properties: {
|
|
476
|
-
ipcVersion: {
|
|
477
|
-
const: 1
|
|
478
|
-
},
|
|
479
|
-
id: {
|
|
480
|
-
type: "string",
|
|
481
|
-
minLength: 1,
|
|
482
|
-
maxLength: 4096
|
|
483
|
-
},
|
|
484
|
-
operation: {
|
|
485
|
-
const: "revoke"
|
|
486
|
-
},
|
|
487
|
-
payload: {
|
|
488
|
-
type: "object",
|
|
489
|
-
properties: {
|
|
490
|
-
principal: {
|
|
491
|
-
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/Principal"
|
|
492
|
-
}
|
|
493
|
-
},
|
|
494
|
-
required: [
|
|
495
|
-
"principal"
|
|
496
|
-
],
|
|
497
|
-
additionalProperties: false
|
|
498
|
-
}
|
|
499
|
-
},
|
|
500
|
-
required: [
|
|
501
|
-
"ipcVersion",
|
|
502
|
-
"id",
|
|
503
|
-
"operation",
|
|
504
|
-
"payload"
|
|
505
|
-
],
|
|
506
|
-
additionalProperties: false
|
|
507
|
-
},
|
|
508
458
|
{
|
|
509
459
|
type: "object",
|
|
510
460
|
properties: {
|
|
@@ -526,12 +476,6 @@ var ipc_schema_default = {
|
|
|
526
476
|
type: "string",
|
|
527
477
|
minLength: 1,
|
|
528
478
|
maxLength: 4096
|
|
529
|
-
},
|
|
530
|
-
resumeCleanupOperationId: {
|
|
531
|
-
type: "string",
|
|
532
|
-
minLength: 1,
|
|
533
|
-
maxLength: 128,
|
|
534
|
-
pattern: "^[A-Za-z0-9_-]+$"
|
|
535
479
|
}
|
|
536
480
|
},
|
|
537
481
|
required: [
|
|
@@ -583,132 +527,6 @@ var ipc_schema_default = {
|
|
|
583
527
|
],
|
|
584
528
|
additionalProperties: false
|
|
585
529
|
},
|
|
586
|
-
{
|
|
587
|
-
type: "object",
|
|
588
|
-
properties: {
|
|
589
|
-
ipcVersion: {
|
|
590
|
-
const: 1
|
|
591
|
-
},
|
|
592
|
-
id: {
|
|
593
|
-
type: "string",
|
|
594
|
-
minLength: 1,
|
|
595
|
-
maxLength: 4096
|
|
596
|
-
},
|
|
597
|
-
operation: {
|
|
598
|
-
const: "setStorageRole"
|
|
599
|
-
},
|
|
600
|
-
payload: {
|
|
601
|
-
type: "object",
|
|
602
|
-
properties: {
|
|
603
|
-
enabled: {
|
|
604
|
-
type: "boolean"
|
|
605
|
-
},
|
|
606
|
-
plannedTargets: {
|
|
607
|
-
type: "array",
|
|
608
|
-
minItems: 1,
|
|
609
|
-
maxItems: 128,
|
|
610
|
-
uniqueItems: true,
|
|
611
|
-
items: {
|
|
612
|
-
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/TargetRef"
|
|
613
|
-
}
|
|
614
|
-
},
|
|
615
|
-
resumePeerRestartOperationId: {
|
|
616
|
-
type: "string",
|
|
617
|
-
minLength: 64,
|
|
618
|
-
maxLength: 64,
|
|
619
|
-
pattern: "^[a-f0-9]+$"
|
|
620
|
-
},
|
|
621
|
-
target: {
|
|
622
|
-
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/TargetRef"
|
|
623
|
-
},
|
|
624
|
-
admissionId: {
|
|
625
|
-
type: "string",
|
|
626
|
-
minLength: 1,
|
|
627
|
-
maxLength: 4096
|
|
628
|
-
}
|
|
629
|
-
},
|
|
630
|
-
required: [
|
|
631
|
-
"enabled"
|
|
632
|
-
],
|
|
633
|
-
additionalProperties: false,
|
|
634
|
-
allOf: [
|
|
635
|
-
{
|
|
636
|
-
if: {
|
|
637
|
-
properties: {
|
|
638
|
-
enabled: {
|
|
639
|
-
const: false
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
},
|
|
643
|
-
then: {
|
|
644
|
-
not: {
|
|
645
|
-
required: [
|
|
646
|
-
"plannedTargets"
|
|
647
|
-
]
|
|
648
|
-
}
|
|
649
|
-
}
|
|
650
|
-
},
|
|
651
|
-
{
|
|
652
|
-
if: {
|
|
653
|
-
required: [
|
|
654
|
-
"resumePeerRestartOperationId"
|
|
655
|
-
]
|
|
656
|
-
},
|
|
657
|
-
then: {
|
|
658
|
-
properties: {
|
|
659
|
-
enabled: {
|
|
660
|
-
const: true
|
|
661
|
-
}
|
|
662
|
-
},
|
|
663
|
-
not: {
|
|
664
|
-
required: [
|
|
665
|
-
"plannedTargets"
|
|
666
|
-
]
|
|
667
|
-
}
|
|
668
|
-
}
|
|
669
|
-
},
|
|
670
|
-
{
|
|
671
|
-
if: {
|
|
672
|
-
required: [
|
|
673
|
-
"target"
|
|
674
|
-
]
|
|
675
|
-
},
|
|
676
|
-
then: {
|
|
677
|
-
not: {
|
|
678
|
-
anyOf: [
|
|
679
|
-
{
|
|
680
|
-
required: [
|
|
681
|
-
"plannedTargets"
|
|
682
|
-
]
|
|
683
|
-
},
|
|
684
|
-
{
|
|
685
|
-
required: [
|
|
686
|
-
"resumePeerRestartOperationId"
|
|
687
|
-
]
|
|
688
|
-
}
|
|
689
|
-
]
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
],
|
|
694
|
-
dependencies: {
|
|
695
|
-
target: [
|
|
696
|
-
"admissionId"
|
|
697
|
-
],
|
|
698
|
-
admissionId: [
|
|
699
|
-
"target"
|
|
700
|
-
]
|
|
701
|
-
}
|
|
702
|
-
}
|
|
703
|
-
},
|
|
704
|
-
required: [
|
|
705
|
-
"ipcVersion",
|
|
706
|
-
"id",
|
|
707
|
-
"operation",
|
|
708
|
-
"payload"
|
|
709
|
-
],
|
|
710
|
-
additionalProperties: false
|
|
711
|
-
},
|
|
712
530
|
{
|
|
713
531
|
type: "object",
|
|
714
532
|
properties: {
|
|
@@ -953,7 +771,7 @@ var ipc_schema_default = {
|
|
|
953
771
|
],
|
|
954
772
|
properties: {
|
|
955
773
|
target: {
|
|
956
|
-
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/
|
|
774
|
+
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/DeviceTargetRef"
|
|
957
775
|
},
|
|
958
776
|
admissionId: {
|
|
959
777
|
type: "string",
|
|
@@ -1003,7 +821,7 @@ var ipc_schema_default = {
|
|
|
1003
821
|
],
|
|
1004
822
|
properties: {
|
|
1005
823
|
target: {
|
|
1006
|
-
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/
|
|
824
|
+
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/DeviceTargetRef"
|
|
1007
825
|
},
|
|
1008
826
|
admissionId: {
|
|
1009
827
|
type: "string",
|
|
@@ -1036,27 +854,23 @@ var ipc_schema_default = {
|
|
|
1036
854
|
maxLength: 4096
|
|
1037
855
|
},
|
|
1038
856
|
operation: {
|
|
1039
|
-
const: "
|
|
857
|
+
const: "renameMember"
|
|
1040
858
|
},
|
|
1041
859
|
payload: {
|
|
1042
860
|
type: "object",
|
|
1043
861
|
properties: {
|
|
1044
|
-
|
|
1045
|
-
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/
|
|
862
|
+
principal: {
|
|
863
|
+
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/Principal"
|
|
1046
864
|
},
|
|
1047
|
-
|
|
865
|
+
displayName: {
|
|
1048
866
|
type: "string",
|
|
1049
867
|
minLength: 1,
|
|
1050
|
-
maxLength:
|
|
1051
|
-
},
|
|
1052
|
-
enabled: {
|
|
1053
|
-
type: "boolean"
|
|
868
|
+
maxLength: 256
|
|
1054
869
|
}
|
|
1055
870
|
},
|
|
1056
871
|
required: [
|
|
1057
|
-
"
|
|
1058
|
-
"
|
|
1059
|
-
"enabled"
|
|
872
|
+
"principal",
|
|
873
|
+
"displayName"
|
|
1060
874
|
],
|
|
1061
875
|
additionalProperties: false
|
|
1062
876
|
}
|
|
@@ -1081,28 +895,30 @@ var ipc_schema_default = {
|
|
|
1081
895
|
maxLength: 4096
|
|
1082
896
|
},
|
|
1083
897
|
operation: {
|
|
1084
|
-
const: "
|
|
898
|
+
const: "setMemberRole"
|
|
1085
899
|
},
|
|
1086
900
|
payload: {
|
|
1087
901
|
type: "object",
|
|
1088
902
|
properties: {
|
|
1089
903
|
target: {
|
|
1090
|
-
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/
|
|
904
|
+
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/DeviceTargetRef"
|
|
1091
905
|
},
|
|
1092
906
|
admissionId: {
|
|
1093
907
|
type: "string",
|
|
1094
908
|
minLength: 1,
|
|
1095
|
-
maxLength:
|
|
909
|
+
maxLength: 128
|
|
1096
910
|
},
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
911
|
+
role: {
|
|
912
|
+
enum: [
|
|
913
|
+
"agent",
|
|
914
|
+
"manager"
|
|
915
|
+
]
|
|
1101
916
|
}
|
|
1102
917
|
},
|
|
1103
918
|
required: [
|
|
1104
919
|
"target",
|
|
1105
|
-
"admissionId"
|
|
920
|
+
"admissionId",
|
|
921
|
+
"role"
|
|
1106
922
|
],
|
|
1107
923
|
additionalProperties: false
|
|
1108
924
|
}
|
|
@@ -1127,23 +943,58 @@ var ipc_schema_default = {
|
|
|
1127
943
|
maxLength: 4096
|
|
1128
944
|
},
|
|
1129
945
|
operation: {
|
|
1130
|
-
const: "
|
|
946
|
+
const: "getMemberRole"
|
|
1131
947
|
},
|
|
1132
948
|
payload: {
|
|
1133
949
|
type: "object",
|
|
1134
950
|
properties: {
|
|
1135
|
-
|
|
1136
|
-
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/
|
|
951
|
+
target: {
|
|
952
|
+
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/DeviceTargetRef"
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
required: [
|
|
956
|
+
"target"
|
|
957
|
+
],
|
|
958
|
+
additionalProperties: false
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
required: [
|
|
962
|
+
"ipcVersion",
|
|
963
|
+
"id",
|
|
964
|
+
"operation",
|
|
965
|
+
"payload"
|
|
966
|
+
],
|
|
967
|
+
additionalProperties: false
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
type: "object",
|
|
971
|
+
properties: {
|
|
972
|
+
ipcVersion: {
|
|
973
|
+
const: 1
|
|
974
|
+
},
|
|
975
|
+
id: {
|
|
976
|
+
type: "string",
|
|
977
|
+
minLength: 1,
|
|
978
|
+
maxLength: 4096
|
|
979
|
+
},
|
|
980
|
+
operation: {
|
|
981
|
+
const: "removeMember"
|
|
982
|
+
},
|
|
983
|
+
payload: {
|
|
984
|
+
type: "object",
|
|
985
|
+
properties: {
|
|
986
|
+
target: {
|
|
987
|
+
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/DeviceTargetRef"
|
|
1137
988
|
},
|
|
1138
|
-
|
|
989
|
+
admissionId: {
|
|
1139
990
|
type: "string",
|
|
1140
991
|
minLength: 1,
|
|
1141
|
-
maxLength:
|
|
992
|
+
maxLength: 128
|
|
1142
993
|
}
|
|
1143
994
|
},
|
|
1144
995
|
required: [
|
|
1145
|
-
"
|
|
1146
|
-
"
|
|
996
|
+
"target",
|
|
997
|
+
"admissionId"
|
|
1147
998
|
],
|
|
1148
999
|
additionalProperties: false
|
|
1149
1000
|
}
|
|
@@ -3082,7 +2933,7 @@ var bridge_schema_default = {
|
|
|
3082
2933
|
type: "object",
|
|
3083
2934
|
properties: {
|
|
3084
2935
|
notice: {
|
|
3085
|
-
$ref: "https://dsh-remote.local/contracts/v1/
|
|
2936
|
+
$ref: "https://dsh-remote.local/contracts/v1/notification.schema.json#/$defs/NotificationLink"
|
|
3086
2937
|
}
|
|
3087
2938
|
},
|
|
3088
2939
|
required: [
|
|
@@ -3457,32 +3308,6 @@ var cluster_schema_default = {
|
|
|
3457
3308
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
3458
3309
|
$id: "https://dsh-remote.local/contracts/v1/cluster.schema.json",
|
|
3459
3310
|
$defs: {
|
|
3460
|
-
TargetRef: {
|
|
3461
|
-
type: "object",
|
|
3462
|
-
properties: {
|
|
3463
|
-
clusterId: {
|
|
3464
|
-
type: "string",
|
|
3465
|
-
minLength: 1,
|
|
3466
|
-
maxLength: 4096
|
|
3467
|
-
},
|
|
3468
|
-
deviceId: {
|
|
3469
|
-
type: "string",
|
|
3470
|
-
minLength: 1,
|
|
3471
|
-
maxLength: 4096
|
|
3472
|
-
},
|
|
3473
|
-
instanceId: {
|
|
3474
|
-
type: "string",
|
|
3475
|
-
minLength: 1,
|
|
3476
|
-
maxLength: 4096
|
|
3477
|
-
}
|
|
3478
|
-
},
|
|
3479
|
-
required: [
|
|
3480
|
-
"clusterId",
|
|
3481
|
-
"deviceId",
|
|
3482
|
-
"instanceId"
|
|
3483
|
-
],
|
|
3484
|
-
additionalProperties: false
|
|
3485
|
-
},
|
|
3486
3311
|
Principal: {
|
|
3487
3312
|
type: "object",
|
|
3488
3313
|
properties: {
|
|
@@ -3601,104 +3426,30 @@ var cluster_schema_default = {
|
|
|
3601
3426
|
],
|
|
3602
3427
|
additionalProperties: false
|
|
3603
3428
|
},
|
|
3604
|
-
|
|
3429
|
+
ApiError: {
|
|
3605
3430
|
type: "object",
|
|
3606
3431
|
properties: {
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3432
|
+
code: {
|
|
3433
|
+
enum: [
|
|
3434
|
+
"IDENTITY_INVALID",
|
|
3435
|
+
"MEMBER_REVOKED",
|
|
3436
|
+
"TRUST_EXPIRED",
|
|
3437
|
+
"REMOTE_DISABLED",
|
|
3438
|
+
"TARGET_OFFLINE",
|
|
3439
|
+
"CLUSTER_UNAVAILABLE",
|
|
3440
|
+
"VERSION_UNSUPPORTED",
|
|
3441
|
+
"FILE_CONFLICT",
|
|
3442
|
+
"SEND_UNKNOWN",
|
|
3443
|
+
"INVALID_REQUEST",
|
|
3444
|
+
"INTERNAL"
|
|
3445
|
+
]
|
|
3614
3446
|
},
|
|
3615
|
-
|
|
3447
|
+
message: {
|
|
3616
3448
|
type: "string",
|
|
3617
3449
|
minLength: 1,
|
|
3618
3450
|
maxLength: 4096
|
|
3619
3451
|
},
|
|
3620
|
-
|
|
3621
|
-
type: "string",
|
|
3622
|
-
minLength: 1,
|
|
3623
|
-
maxLength: 4096
|
|
3624
|
-
},
|
|
3625
|
-
issuerDeviceId: {
|
|
3626
|
-
type: "string",
|
|
3627
|
-
minLength: 1,
|
|
3628
|
-
maxLength: 4096
|
|
3629
|
-
},
|
|
3630
|
-
issuerAdmissionId: {
|
|
3631
|
-
type: "string",
|
|
3632
|
-
minLength: 1,
|
|
3633
|
-
maxLength: 4096
|
|
3634
|
-
},
|
|
3635
|
-
publicKey: {
|
|
3636
|
-
type: "string",
|
|
3637
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
3638
|
-
minLength: 43,
|
|
3639
|
-
maxLength: 43
|
|
3640
|
-
},
|
|
3641
|
-
memberVersion: {
|
|
3642
|
-
type: "integer",
|
|
3643
|
-
minimum: 0,
|
|
3644
|
-
maximum: 9007199254740991
|
|
3645
|
-
},
|
|
3646
|
-
issuedAt: {
|
|
3647
|
-
type: "integer",
|
|
3648
|
-
minimum: 0,
|
|
3649
|
-
maximum: 9007199254740991
|
|
3650
|
-
},
|
|
3651
|
-
expiresAt: {
|
|
3652
|
-
type: "integer",
|
|
3653
|
-
minimum: 0,
|
|
3654
|
-
maximum: 9007199254740991
|
|
3655
|
-
},
|
|
3656
|
-
signature: {
|
|
3657
|
-
type: "string",
|
|
3658
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
3659
|
-
minLength: 86,
|
|
3660
|
-
maxLength: 86
|
|
3661
|
-
}
|
|
3662
|
-
},
|
|
3663
|
-
required: [
|
|
3664
|
-
"version",
|
|
3665
|
-
"clusterId",
|
|
3666
|
-
"deviceId",
|
|
3667
|
-
"admissionId",
|
|
3668
|
-
"issuerDeviceId",
|
|
3669
|
-
"issuerAdmissionId",
|
|
3670
|
-
"publicKey",
|
|
3671
|
-
"memberVersion",
|
|
3672
|
-
"issuedAt",
|
|
3673
|
-
"expiresAt",
|
|
3674
|
-
"signature"
|
|
3675
|
-
],
|
|
3676
|
-
additionalProperties: false
|
|
3677
|
-
},
|
|
3678
|
-
ApiError: {
|
|
3679
|
-
type: "object",
|
|
3680
|
-
properties: {
|
|
3681
|
-
code: {
|
|
3682
|
-
enum: [
|
|
3683
|
-
"IDENTITY_INVALID",
|
|
3684
|
-
"MEMBER_REVOKED",
|
|
3685
|
-
"TRUST_EXPIRED",
|
|
3686
|
-
"REMOTE_DISABLED",
|
|
3687
|
-
"TARGET_OFFLINE",
|
|
3688
|
-
"CLUSTER_UNAVAILABLE",
|
|
3689
|
-
"VERSION_UNSUPPORTED",
|
|
3690
|
-
"FILE_CONFLICT",
|
|
3691
|
-
"SEND_UNKNOWN",
|
|
3692
|
-
"INVALID_REQUEST",
|
|
3693
|
-
"INTERNAL"
|
|
3694
|
-
]
|
|
3695
|
-
},
|
|
3696
|
-
message: {
|
|
3697
|
-
type: "string",
|
|
3698
|
-
minLength: 1,
|
|
3699
|
-
maxLength: 4096
|
|
3700
|
-
},
|
|
3701
|
-
requestId: {
|
|
3452
|
+
requestId: {
|
|
3702
3453
|
type: "string",
|
|
3703
3454
|
minLength: 1,
|
|
3704
3455
|
maxLength: 4096
|
|
@@ -3707,457 +3458,38 @@ var cluster_schema_default = {
|
|
|
3707
3458
|
},
|
|
3708
3459
|
required: [
|
|
3709
3460
|
"code",
|
|
3710
|
-
"message",
|
|
3711
|
-
"requestId"
|
|
3712
|
-
],
|
|
3713
|
-
additionalProperties: false
|
|
3714
|
-
},
|
|
3715
|
-
InviteRequest: {
|
|
3716
|
-
type: "object",
|
|
3717
|
-
properties: {
|
|
3718
|
-
schemaVersion: {
|
|
3719
|
-
const: 1
|
|
3720
|
-
},
|
|
3721
|
-
inviteId: {
|
|
3722
|
-
type: "string",
|
|
3723
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
3724
|
-
minLength: 1,
|
|
3725
|
-
maxLength: 128
|
|
3726
|
-
},
|
|
3727
|
-
secretHash: {
|
|
3728
|
-
type: "string",
|
|
3729
|
-
pattern: "^[A-Za-z0-9_-]{43}$"
|
|
3730
|
-
},
|
|
3731
|
-
expiresAt: {
|
|
3732
|
-
type: "integer",
|
|
3733
|
-
minimum: 0,
|
|
3734
|
-
maximum: 9007199254740991
|
|
3735
|
-
}
|
|
3736
|
-
},
|
|
3737
|
-
required: [
|
|
3738
|
-
"schemaVersion",
|
|
3739
|
-
"inviteId",
|
|
3740
|
-
"secretHash",
|
|
3741
|
-
"expiresAt"
|
|
3742
|
-
],
|
|
3743
|
-
additionalProperties: false
|
|
3744
|
-
},
|
|
3745
|
-
JoinRequest: {
|
|
3746
|
-
type: "object",
|
|
3747
|
-
properties: {
|
|
3748
|
-
schemaVersion: {
|
|
3749
|
-
const: 1
|
|
3750
|
-
},
|
|
3751
|
-
clusterId: {
|
|
3752
|
-
type: "string",
|
|
3753
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
3754
|
-
minLength: 1,
|
|
3755
|
-
maxLength: 128
|
|
3756
|
-
},
|
|
3757
|
-
inviteId: {
|
|
3758
|
-
type: "string",
|
|
3759
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
3760
|
-
minLength: 1,
|
|
3761
|
-
maxLength: 128
|
|
3762
|
-
},
|
|
3763
|
-
secret: {
|
|
3764
|
-
type: "string",
|
|
3765
|
-
pattern: "^[A-Za-z0-9_-]{43,86}$"
|
|
3766
|
-
},
|
|
3767
|
-
deviceId: {
|
|
3768
|
-
type: "string",
|
|
3769
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
3770
|
-
minLength: 1,
|
|
3771
|
-
maxLength: 128
|
|
3772
|
-
},
|
|
3773
|
-
publicKey: {
|
|
3774
|
-
type: "string",
|
|
3775
|
-
pattern: "^[A-Za-z0-9_-]{43}$"
|
|
3776
|
-
},
|
|
3777
|
-
networkKey: {
|
|
3778
|
-
type: "string",
|
|
3779
|
-
pattern: "^nodekey:[a-f0-9]{64}$"
|
|
3780
|
-
},
|
|
3781
|
-
requestId: {
|
|
3782
|
-
type: "string",
|
|
3783
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
3784
|
-
minLength: 1,
|
|
3785
|
-
maxLength: 128
|
|
3786
|
-
},
|
|
3787
|
-
displayName: {
|
|
3788
|
-
type: "string",
|
|
3789
|
-
minLength: 1,
|
|
3790
|
-
maxLength: 256
|
|
3791
|
-
},
|
|
3792
|
-
signature: {
|
|
3793
|
-
type: "string",
|
|
3794
|
-
pattern: "^[A-Za-z0-9_-]{86}$"
|
|
3795
|
-
}
|
|
3796
|
-
},
|
|
3797
|
-
required: [
|
|
3798
|
-
"schemaVersion",
|
|
3799
|
-
"clusterId",
|
|
3800
|
-
"inviteId",
|
|
3801
|
-
"secret",
|
|
3802
|
-
"deviceId",
|
|
3803
|
-
"publicKey",
|
|
3804
|
-
"networkKey",
|
|
3805
|
-
"requestId",
|
|
3806
|
-
"displayName",
|
|
3807
|
-
"signature"
|
|
3808
|
-
],
|
|
3809
|
-
additionalProperties: false
|
|
3810
|
-
},
|
|
3811
|
-
MemberRecord: {
|
|
3812
|
-
type: "object",
|
|
3813
|
-
properties: {
|
|
3814
|
-
deviceId: {
|
|
3815
|
-
type: "string",
|
|
3816
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
3817
|
-
minLength: 1,
|
|
3818
|
-
maxLength: 128
|
|
3819
|
-
},
|
|
3820
|
-
admissionId: {
|
|
3821
|
-
type: "string",
|
|
3822
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
3823
|
-
minLength: 1,
|
|
3824
|
-
maxLength: 128
|
|
3825
|
-
},
|
|
3826
|
-
publicKey: {
|
|
3827
|
-
type: "string",
|
|
3828
|
-
pattern: "^[A-Za-z0-9_-]{43}$"
|
|
3829
|
-
},
|
|
3830
|
-
networkKeys: {
|
|
3831
|
-
type: "array",
|
|
3832
|
-
items: {
|
|
3833
|
-
type: "string",
|
|
3834
|
-
pattern: "^nodekey:[a-f0-9]{64}$"
|
|
3835
|
-
},
|
|
3836
|
-
maxItems: 1e4
|
|
3837
|
-
},
|
|
3838
|
-
displayName: {
|
|
3839
|
-
type: "string",
|
|
3840
|
-
minLength: 1,
|
|
3841
|
-
maxLength: 256
|
|
3842
|
-
},
|
|
3843
|
-
status: {
|
|
3844
|
-
enum: [
|
|
3845
|
-
"active",
|
|
3846
|
-
"revoked"
|
|
3847
|
-
]
|
|
3848
|
-
},
|
|
3849
|
-
memberVersion: {
|
|
3850
|
-
type: "integer",
|
|
3851
|
-
minimum: 0,
|
|
3852
|
-
maximum: 9007199254740991
|
|
3853
|
-
}
|
|
3854
|
-
},
|
|
3855
|
-
required: [
|
|
3856
|
-
"deviceId",
|
|
3857
|
-
"admissionId",
|
|
3858
|
-
"publicKey",
|
|
3859
|
-
"networkKeys",
|
|
3860
|
-
"displayName",
|
|
3861
|
-
"status",
|
|
3862
|
-
"memberVersion"
|
|
3863
|
-
],
|
|
3864
|
-
additionalProperties: false
|
|
3865
|
-
},
|
|
3866
|
-
InstanceRecord: {
|
|
3867
|
-
type: "object",
|
|
3868
|
-
properties: {
|
|
3869
|
-
target: {
|
|
3870
|
-
$ref: "#/$defs/TargetRef"
|
|
3871
|
-
},
|
|
3872
|
-
admissionId: {
|
|
3873
|
-
type: "string",
|
|
3874
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
3875
|
-
minLength: 1,
|
|
3876
|
-
maxLength: 128
|
|
3877
|
-
},
|
|
3878
|
-
protectedAddress: {
|
|
3879
|
-
type: "string",
|
|
3880
|
-
minLength: 1,
|
|
3881
|
-
maxLength: 4096
|
|
3882
|
-
},
|
|
3883
|
-
networkKey: {
|
|
3884
|
-
type: "string",
|
|
3885
|
-
pattern: "^nodekey:[a-f0-9]{64}$"
|
|
3886
|
-
},
|
|
3887
|
-
metadataPort: {
|
|
3888
|
-
type: "integer",
|
|
3889
|
-
minimum: 0,
|
|
3890
|
-
maximum: 65535
|
|
3891
|
-
},
|
|
3892
|
-
businessPort: {
|
|
3893
|
-
type: "integer",
|
|
3894
|
-
minimum: 0,
|
|
3895
|
-
maximum: 65535
|
|
3896
|
-
},
|
|
3897
|
-
capabilities: {
|
|
3898
|
-
type: "array",
|
|
3899
|
-
items: {
|
|
3900
|
-
enum: [
|
|
3901
|
-
"metadata",
|
|
3902
|
-
"business",
|
|
3903
|
-
"peer"
|
|
3904
|
-
]
|
|
3905
|
-
},
|
|
3906
|
-
maxItems: 1e4
|
|
3907
|
-
},
|
|
3908
|
-
remoteEnabled: {
|
|
3909
|
-
type: "boolean"
|
|
3910
|
-
},
|
|
3911
|
-
runId: {
|
|
3912
|
-
type: "string",
|
|
3913
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
3914
|
-
minLength: 1,
|
|
3915
|
-
maxLength: 128
|
|
3916
|
-
},
|
|
3917
|
-
updatedAt: {
|
|
3918
|
-
type: "integer",
|
|
3919
|
-
minimum: 0,
|
|
3920
|
-
maximum: 9007199254740991
|
|
3921
|
-
},
|
|
3922
|
-
displayName: {
|
|
3923
|
-
type: "string",
|
|
3924
|
-
minLength: 1,
|
|
3925
|
-
maxLength: 128
|
|
3926
|
-
},
|
|
3927
|
-
storageRole: {
|
|
3928
|
-
enum: [
|
|
3929
|
-
"remote-only",
|
|
3930
|
-
"prepared",
|
|
3931
|
-
"learner",
|
|
3932
|
-
"voter",
|
|
3933
|
-
"unknown"
|
|
3934
|
-
]
|
|
3935
|
-
},
|
|
3936
|
-
storageCleanupPending: {
|
|
3937
|
-
type: "boolean"
|
|
3938
|
-
},
|
|
3939
|
-
pluginVersion: {
|
|
3940
|
-
$ref: "#/$defs/PluginVersion"
|
|
3941
|
-
},
|
|
3942
|
-
pluginUpdate: {
|
|
3943
|
-
$ref: "#/$defs/PluginUpdateInfo"
|
|
3944
|
-
},
|
|
3945
|
-
storageOperation: {
|
|
3946
|
-
$ref: "#/$defs/StorageOperation"
|
|
3947
|
-
},
|
|
3948
|
-
platform: {
|
|
3949
|
-
type: "string",
|
|
3950
|
-
minLength: 1,
|
|
3951
|
-
maxLength: 128
|
|
3952
|
-
},
|
|
3953
|
-
dshVersion: {
|
|
3954
|
-
type: "string",
|
|
3955
|
-
minLength: 1,
|
|
3956
|
-
maxLength: 128
|
|
3957
|
-
}
|
|
3958
|
-
},
|
|
3959
|
-
required: [
|
|
3960
|
-
"target",
|
|
3961
|
-
"admissionId",
|
|
3962
|
-
"protectedAddress",
|
|
3963
|
-
"networkKey",
|
|
3964
|
-
"metadataPort",
|
|
3965
|
-
"businessPort",
|
|
3966
|
-
"capabilities",
|
|
3967
|
-
"remoteEnabled",
|
|
3968
|
-
"runId",
|
|
3969
|
-
"updatedAt"
|
|
3970
|
-
],
|
|
3971
|
-
additionalProperties: false
|
|
3972
|
-
},
|
|
3973
|
-
Summary: {
|
|
3974
|
-
type: "object",
|
|
3975
|
-
properties: {
|
|
3976
|
-
target: {
|
|
3977
|
-
$ref: "#/$defs/TargetRef"
|
|
3978
|
-
},
|
|
3979
|
-
sessionId: {
|
|
3980
|
-
type: "string",
|
|
3981
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
3982
|
-
minLength: 1,
|
|
3983
|
-
maxLength: 128
|
|
3984
|
-
},
|
|
3985
|
-
runId: {
|
|
3986
|
-
type: "string",
|
|
3987
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
3988
|
-
minLength: 1,
|
|
3989
|
-
maxLength: 128
|
|
3990
|
-
},
|
|
3991
|
-
title: {
|
|
3992
|
-
type: "string",
|
|
3993
|
-
maxLength: 256
|
|
3994
|
-
},
|
|
3995
|
-
status: {
|
|
3996
|
-
enum: [
|
|
3997
|
-
"idle",
|
|
3998
|
-
"busy",
|
|
3999
|
-
"approval-waiting",
|
|
4000
|
-
"failed"
|
|
4001
|
-
]
|
|
4002
|
-
},
|
|
4003
|
-
updatedAt: {
|
|
4004
|
-
type: "integer",
|
|
4005
|
-
minimum: 0,
|
|
4006
|
-
maximum: 9007199254740991
|
|
4007
|
-
}
|
|
4008
|
-
},
|
|
4009
|
-
required: [
|
|
4010
|
-
"target",
|
|
4011
|
-
"sessionId",
|
|
4012
|
-
"runId",
|
|
4013
|
-
"title",
|
|
4014
|
-
"status",
|
|
4015
|
-
"updatedAt"
|
|
4016
|
-
],
|
|
4017
|
-
additionalProperties: false
|
|
4018
|
-
},
|
|
4019
|
-
MemberSnapshot: {
|
|
4020
|
-
type: "object",
|
|
4021
|
-
properties: {
|
|
4022
|
-
schemaVersion: {
|
|
4023
|
-
const: 1
|
|
4024
|
-
},
|
|
4025
|
-
clusterId: {
|
|
4026
|
-
type: "string",
|
|
4027
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
4028
|
-
minLength: 1,
|
|
4029
|
-
maxLength: 128
|
|
4030
|
-
},
|
|
4031
|
-
revision: {
|
|
4032
|
-
type: "integer",
|
|
4033
|
-
minimum: 0,
|
|
4034
|
-
maximum: 9007199254740991
|
|
4035
|
-
},
|
|
4036
|
-
readAt: {
|
|
4037
|
-
type: "integer",
|
|
4038
|
-
minimum: 0,
|
|
4039
|
-
maximum: 9007199254740991
|
|
4040
|
-
},
|
|
4041
|
-
members: {
|
|
4042
|
-
type: "array",
|
|
4043
|
-
items: {
|
|
4044
|
-
$ref: "#/$defs/MemberRecord"
|
|
4045
|
-
},
|
|
4046
|
-
maxItems: 1e4
|
|
4047
|
-
}
|
|
4048
|
-
},
|
|
4049
|
-
required: [
|
|
4050
|
-
"schemaVersion",
|
|
4051
|
-
"clusterId",
|
|
4052
|
-
"revision",
|
|
4053
|
-
"readAt",
|
|
4054
|
-
"members"
|
|
4055
|
-
],
|
|
4056
|
-
additionalProperties: false
|
|
4057
|
-
},
|
|
4058
|
-
DirectorySnapshot: {
|
|
4059
|
-
type: "object",
|
|
4060
|
-
properties: {
|
|
4061
|
-
schemaVersion: {
|
|
4062
|
-
const: 1
|
|
4063
|
-
},
|
|
4064
|
-
clusterId: {
|
|
4065
|
-
type: "string",
|
|
4066
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
4067
|
-
minLength: 1,
|
|
4068
|
-
maxLength: 128
|
|
4069
|
-
},
|
|
4070
|
-
revision: {
|
|
4071
|
-
type: "integer",
|
|
4072
|
-
minimum: 0,
|
|
4073
|
-
maximum: 9007199254740991
|
|
4074
|
-
},
|
|
4075
|
-
readAt: {
|
|
4076
|
-
type: "integer",
|
|
4077
|
-
minimum: 0,
|
|
4078
|
-
maximum: 9007199254740991
|
|
4079
|
-
},
|
|
4080
|
-
instances: {
|
|
4081
|
-
type: "array",
|
|
4082
|
-
items: {
|
|
4083
|
-
$ref: "#/$defs/InstanceRecord"
|
|
4084
|
-
},
|
|
4085
|
-
maxItems: 1e4
|
|
4086
|
-
},
|
|
4087
|
-
summaries: {
|
|
4088
|
-
type: "array",
|
|
4089
|
-
items: {
|
|
4090
|
-
$ref: "#/$defs/Summary"
|
|
4091
|
-
},
|
|
4092
|
-
maxItems: 1e4
|
|
4093
|
-
},
|
|
4094
|
-
onlineInstanceIds: {
|
|
4095
|
-
type: "array",
|
|
4096
|
-
items: {
|
|
4097
|
-
type: "string",
|
|
4098
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
4099
|
-
minLength: 1,
|
|
4100
|
-
maxLength: 128
|
|
4101
|
-
},
|
|
4102
|
-
maxItems: 1e4
|
|
4103
|
-
},
|
|
4104
|
-
nodes: {
|
|
4105
|
-
type: "array",
|
|
4106
|
-
items: {
|
|
4107
|
-
$ref: "#/$defs/NodeRecord"
|
|
4108
|
-
},
|
|
4109
|
-
maxItems: 1e4
|
|
4110
|
-
},
|
|
4111
|
-
onlineDeviceIds: {
|
|
4112
|
-
type: "array",
|
|
4113
|
-
items: {
|
|
4114
|
-
type: "string",
|
|
4115
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
4116
|
-
minLength: 1,
|
|
4117
|
-
maxLength: 128
|
|
4118
|
-
},
|
|
4119
|
-
maxItems: 1e4
|
|
4120
|
-
}
|
|
4121
|
-
},
|
|
4122
|
-
required: [
|
|
4123
|
-
"schemaVersion",
|
|
4124
|
-
"clusterId",
|
|
4125
|
-
"revision",
|
|
4126
|
-
"readAt",
|
|
4127
|
-
"instances",
|
|
4128
|
-
"summaries",
|
|
4129
|
-
"onlineInstanceIds"
|
|
3461
|
+
"message",
|
|
3462
|
+
"requestId"
|
|
4130
3463
|
],
|
|
4131
3464
|
additionalProperties: false
|
|
4132
3465
|
},
|
|
4133
|
-
|
|
3466
|
+
InviteRequest: {
|
|
4134
3467
|
type: "object",
|
|
4135
3468
|
properties: {
|
|
4136
3469
|
schemaVersion: {
|
|
4137
3470
|
const: 1
|
|
4138
3471
|
},
|
|
4139
|
-
|
|
3472
|
+
inviteId: {
|
|
4140
3473
|
type: "string",
|
|
4141
3474
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
4142
3475
|
minLength: 1,
|
|
4143
3476
|
maxLength: 128
|
|
4144
3477
|
},
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
directory: {
|
|
4149
|
-
$ref: "#/$defs/DirectorySnapshot"
|
|
3478
|
+
secretHash: {
|
|
3479
|
+
type: "string",
|
|
3480
|
+
pattern: "^[A-Za-z0-9_-]{43}$"
|
|
4150
3481
|
},
|
|
4151
|
-
|
|
4152
|
-
|
|
3482
|
+
expiresAt: {
|
|
3483
|
+
type: "integer",
|
|
3484
|
+
minimum: 0,
|
|
3485
|
+
maximum: 9007199254740991
|
|
4153
3486
|
}
|
|
4154
3487
|
},
|
|
4155
3488
|
required: [
|
|
4156
3489
|
"schemaVersion",
|
|
4157
|
-
"
|
|
4158
|
-
"
|
|
4159
|
-
"
|
|
4160
|
-
"proof"
|
|
3490
|
+
"inviteId",
|
|
3491
|
+
"secretHash",
|
|
3492
|
+
"expiresAt"
|
|
4161
3493
|
],
|
|
4162
3494
|
additionalProperties: false
|
|
4163
3495
|
},
|
|
@@ -4181,539 +3513,389 @@ var cluster_schema_default = {
|
|
|
4181
3513
|
oneOf: [
|
|
4182
3514
|
{
|
|
4183
3515
|
type: "object",
|
|
4184
|
-
|
|
4185
|
-
method: {
|
|
4186
|
-
const: "GET"
|
|
4187
|
-
},
|
|
4188
|
-
path: {
|
|
4189
|
-
const: "/v1/members"
|
|
4190
|
-
},
|
|
4191
|
-
body: {
|
|
4192
|
-
type: "null"
|
|
4193
|
-
}
|
|
4194
|
-
},
|
|
3516
|
+
additionalProperties: false,
|
|
4195
3517
|
required: [
|
|
4196
3518
|
"method",
|
|
4197
3519
|
"path",
|
|
4198
3520
|
"body"
|
|
4199
3521
|
],
|
|
4200
|
-
additionalProperties: false
|
|
4201
|
-
},
|
|
4202
|
-
{
|
|
4203
|
-
type: "object",
|
|
4204
3522
|
properties: {
|
|
4205
3523
|
method: {
|
|
4206
3524
|
const: "GET"
|
|
4207
3525
|
},
|
|
4208
3526
|
path: {
|
|
4209
|
-
const: "/v1/
|
|
3527
|
+
const: "/v1/members"
|
|
4210
3528
|
},
|
|
4211
3529
|
body: {
|
|
4212
3530
|
type: "null"
|
|
4213
3531
|
}
|
|
4214
|
-
}
|
|
4215
|
-
required: [
|
|
4216
|
-
"method",
|
|
4217
|
-
"path",
|
|
4218
|
-
"body"
|
|
4219
|
-
],
|
|
4220
|
-
additionalProperties: false
|
|
4221
|
-
},
|
|
4222
|
-
{
|
|
4223
|
-
type: "object",
|
|
4224
|
-
properties: {
|
|
4225
|
-
method: {
|
|
4226
|
-
const: "POST"
|
|
4227
|
-
},
|
|
4228
|
-
path: {
|
|
4229
|
-
const: "/v1/invites"
|
|
4230
|
-
},
|
|
4231
|
-
body: {
|
|
4232
|
-
$ref: "#/$defs/InviteRequest"
|
|
4233
|
-
}
|
|
4234
|
-
},
|
|
4235
|
-
required: [
|
|
4236
|
-
"method",
|
|
4237
|
-
"path",
|
|
4238
|
-
"body"
|
|
4239
|
-
],
|
|
4240
|
-
additionalProperties: false
|
|
4241
|
-
},
|
|
4242
|
-
{
|
|
4243
|
-
type: "object",
|
|
4244
|
-
properties: {
|
|
4245
|
-
method: {
|
|
4246
|
-
const: "POST"
|
|
4247
|
-
},
|
|
4248
|
-
path: {
|
|
4249
|
-
const: "/v1/instances"
|
|
4250
|
-
},
|
|
4251
|
-
body: {
|
|
4252
|
-
$ref: "#/$defs/InstanceRecord"
|
|
4253
|
-
}
|
|
4254
|
-
},
|
|
4255
|
-
required: [
|
|
4256
|
-
"method",
|
|
4257
|
-
"path",
|
|
4258
|
-
"body"
|
|
4259
|
-
],
|
|
4260
|
-
additionalProperties: false
|
|
3532
|
+
}
|
|
4261
3533
|
},
|
|
4262
3534
|
{
|
|
4263
3535
|
type: "object",
|
|
4264
|
-
|
|
4265
|
-
method: {
|
|
4266
|
-
const: "POST"
|
|
4267
|
-
},
|
|
4268
|
-
path: {
|
|
4269
|
-
const: "/v1/summaries"
|
|
4270
|
-
},
|
|
4271
|
-
body: {
|
|
4272
|
-
$ref: "#/$defs/Summary"
|
|
4273
|
-
}
|
|
4274
|
-
},
|
|
3536
|
+
additionalProperties: false,
|
|
4275
3537
|
required: [
|
|
4276
3538
|
"method",
|
|
4277
3539
|
"path",
|
|
4278
3540
|
"body"
|
|
4279
3541
|
],
|
|
4280
|
-
additionalProperties: false
|
|
4281
|
-
},
|
|
4282
|
-
{
|
|
4283
|
-
type: "object",
|
|
4284
3542
|
properties: {
|
|
4285
3543
|
method: {
|
|
4286
|
-
const: "
|
|
3544
|
+
const: "GET"
|
|
4287
3545
|
},
|
|
4288
3546
|
path: {
|
|
4289
|
-
const: "/v1/
|
|
3547
|
+
const: "/v1/directory"
|
|
4290
3548
|
},
|
|
4291
3549
|
body: {
|
|
4292
|
-
|
|
3550
|
+
type: "null"
|
|
4293
3551
|
}
|
|
4294
|
-
}
|
|
4295
|
-
required: [
|
|
4296
|
-
"method",
|
|
4297
|
-
"path",
|
|
4298
|
-
"body"
|
|
4299
|
-
],
|
|
4300
|
-
additionalProperties: false
|
|
3552
|
+
}
|
|
4301
3553
|
},
|
|
4302
3554
|
{
|
|
4303
3555
|
type: "object",
|
|
4304
|
-
|
|
4305
|
-
method: {
|
|
4306
|
-
const: "POST"
|
|
4307
|
-
},
|
|
4308
|
-
path: {
|
|
4309
|
-
const: "/v1/revoke"
|
|
4310
|
-
},
|
|
4311
|
-
body: {
|
|
4312
|
-
$ref: "#/$defs/RevokeRequest"
|
|
4313
|
-
}
|
|
4314
|
-
},
|
|
3556
|
+
additionalProperties: false,
|
|
4315
3557
|
required: [
|
|
4316
3558
|
"method",
|
|
4317
3559
|
"path",
|
|
4318
3560
|
"body"
|
|
4319
3561
|
],
|
|
4320
|
-
additionalProperties: false
|
|
4321
|
-
},
|
|
4322
|
-
{
|
|
4323
|
-
type: "object",
|
|
4324
3562
|
properties: {
|
|
4325
3563
|
method: {
|
|
4326
|
-
const: "
|
|
3564
|
+
const: "GET"
|
|
4327
3565
|
},
|
|
4328
3566
|
path: {
|
|
4329
|
-
const: "/v1/
|
|
3567
|
+
const: "/v1/state"
|
|
4330
3568
|
},
|
|
4331
3569
|
body: {
|
|
4332
|
-
|
|
3570
|
+
type: "null"
|
|
4333
3571
|
}
|
|
4334
|
-
}
|
|
4335
|
-
required: [
|
|
4336
|
-
"method",
|
|
4337
|
-
"path",
|
|
4338
|
-
"body"
|
|
4339
|
-
],
|
|
4340
|
-
additionalProperties: false
|
|
3572
|
+
}
|
|
4341
3573
|
},
|
|
4342
3574
|
{
|
|
4343
3575
|
type: "object",
|
|
4344
|
-
|
|
4345
|
-
method: {
|
|
4346
|
-
const: "POST"
|
|
4347
|
-
},
|
|
4348
|
-
path: {
|
|
4349
|
-
const: "/v1/leave/prepare"
|
|
4350
|
-
},
|
|
4351
|
-
body: {
|
|
4352
|
-
$ref: "#/$defs/LeavePrepareRequest"
|
|
4353
|
-
}
|
|
4354
|
-
},
|
|
3576
|
+
additionalProperties: false,
|
|
4355
3577
|
required: [
|
|
4356
3578
|
"method",
|
|
4357
3579
|
"path",
|
|
4358
3580
|
"body"
|
|
4359
3581
|
],
|
|
4360
|
-
additionalProperties: false
|
|
4361
|
-
},
|
|
4362
|
-
{
|
|
4363
|
-
type: "object",
|
|
4364
3582
|
properties: {
|
|
4365
3583
|
method: {
|
|
4366
|
-
const: "
|
|
3584
|
+
const: "GET"
|
|
4367
3585
|
},
|
|
4368
3586
|
path: {
|
|
4369
|
-
const: "/v1/
|
|
3587
|
+
const: "/v1/trust/checkpoint"
|
|
4370
3588
|
},
|
|
4371
3589
|
body: {
|
|
4372
|
-
|
|
3590
|
+
type: "null"
|
|
4373
3591
|
}
|
|
4374
|
-
}
|
|
4375
|
-
required: [
|
|
4376
|
-
"method",
|
|
4377
|
-
"path",
|
|
4378
|
-
"body"
|
|
4379
|
-
],
|
|
4380
|
-
additionalProperties: false
|
|
3592
|
+
}
|
|
4381
3593
|
},
|
|
4382
3594
|
{
|
|
4383
3595
|
type: "object",
|
|
4384
|
-
|
|
4385
|
-
method: {
|
|
4386
|
-
const: "GET"
|
|
4387
|
-
},
|
|
4388
|
-
path: {
|
|
4389
|
-
const: "/v1/notification-membership-proof"
|
|
4390
|
-
},
|
|
4391
|
-
body: {
|
|
4392
|
-
type: "null"
|
|
4393
|
-
}
|
|
4394
|
-
},
|
|
3596
|
+
additionalProperties: false,
|
|
4395
3597
|
required: [
|
|
4396
3598
|
"method",
|
|
4397
3599
|
"path",
|
|
4398
3600
|
"body"
|
|
4399
3601
|
],
|
|
4400
|
-
additionalProperties: false
|
|
4401
|
-
},
|
|
4402
|
-
{
|
|
4403
|
-
type: "object",
|
|
4404
3602
|
properties: {
|
|
4405
3603
|
method: {
|
|
4406
3604
|
const: "POST"
|
|
4407
3605
|
},
|
|
4408
3606
|
path: {
|
|
4409
|
-
const: "/v1/
|
|
3607
|
+
const: "/v1/members/rename"
|
|
4410
3608
|
},
|
|
4411
3609
|
body: {
|
|
4412
|
-
$ref: "#/$defs/
|
|
3610
|
+
$ref: "#/$defs/RenameMemberRequest"
|
|
4413
3611
|
}
|
|
4414
|
-
}
|
|
4415
|
-
required: [
|
|
4416
|
-
"method",
|
|
4417
|
-
"path",
|
|
4418
|
-
"body"
|
|
4419
|
-
],
|
|
4420
|
-
additionalProperties: false
|
|
3612
|
+
}
|
|
4421
3613
|
},
|
|
4422
3614
|
{
|
|
4423
3615
|
type: "object",
|
|
4424
|
-
|
|
4425
|
-
method: {
|
|
4426
|
-
const: "POST"
|
|
4427
|
-
},
|
|
4428
|
-
path: {
|
|
4429
|
-
const: "/v1/notification-recipients/remove"
|
|
4430
|
-
},
|
|
4431
|
-
body: {
|
|
4432
|
-
$ref: "#/$defs/NotificationRecipientRemove"
|
|
4433
|
-
}
|
|
4434
|
-
},
|
|
3616
|
+
additionalProperties: false,
|
|
4435
3617
|
required: [
|
|
4436
3618
|
"method",
|
|
4437
3619
|
"path",
|
|
4438
3620
|
"body"
|
|
4439
3621
|
],
|
|
4440
|
-
additionalProperties: false
|
|
4441
|
-
},
|
|
4442
|
-
{
|
|
4443
|
-
type: "object",
|
|
4444
3622
|
properties: {
|
|
4445
3623
|
method: {
|
|
4446
3624
|
const: "POST"
|
|
4447
3625
|
},
|
|
4448
3626
|
path: {
|
|
4449
|
-
const: "/v1/
|
|
3627
|
+
const: "/v1/members/watch"
|
|
4450
3628
|
},
|
|
4451
3629
|
body: {
|
|
4452
|
-
$ref: "#/$defs/
|
|
3630
|
+
$ref: "#/$defs/WatchMembersRequest"
|
|
4453
3631
|
}
|
|
4454
|
-
}
|
|
4455
|
-
required: [
|
|
4456
|
-
"method",
|
|
4457
|
-
"path",
|
|
4458
|
-
"body"
|
|
4459
|
-
],
|
|
4460
|
-
additionalProperties: false
|
|
3632
|
+
}
|
|
4461
3633
|
},
|
|
4462
3634
|
{
|
|
4463
3635
|
type: "object",
|
|
4464
|
-
|
|
4465
|
-
method: {
|
|
4466
|
-
const: "POST"
|
|
4467
|
-
},
|
|
4468
|
-
path: {
|
|
4469
|
-
const: "/v1/notification-sync/list"
|
|
4470
|
-
},
|
|
4471
|
-
body: {
|
|
4472
|
-
$ref: "#/$defs/NotificationSyncListRequest"
|
|
4473
|
-
}
|
|
4474
|
-
},
|
|
3636
|
+
additionalProperties: false,
|
|
4475
3637
|
required: [
|
|
4476
3638
|
"method",
|
|
4477
3639
|
"path",
|
|
4478
3640
|
"body"
|
|
4479
3641
|
],
|
|
4480
|
-
additionalProperties: false
|
|
4481
|
-
},
|
|
4482
|
-
{
|
|
4483
|
-
type: "object",
|
|
4484
3642
|
properties: {
|
|
4485
3643
|
method: {
|
|
4486
3644
|
const: "POST"
|
|
4487
3645
|
},
|
|
4488
3646
|
path: {
|
|
4489
|
-
const: "/v1/
|
|
3647
|
+
const: "/v1/state/watch"
|
|
4490
3648
|
},
|
|
4491
3649
|
body: {
|
|
4492
|
-
$ref: "#/$defs/
|
|
3650
|
+
$ref: "#/$defs/WatchClusterRequest"
|
|
4493
3651
|
}
|
|
4494
|
-
}
|
|
4495
|
-
required: [
|
|
4496
|
-
"method",
|
|
4497
|
-
"path",
|
|
4498
|
-
"body"
|
|
4499
|
-
],
|
|
4500
|
-
additionalProperties: false
|
|
3652
|
+
}
|
|
4501
3653
|
},
|
|
4502
3654
|
{
|
|
4503
3655
|
type: "object",
|
|
4504
|
-
|
|
4505
|
-
method: {
|
|
4506
|
-
const: "POST"
|
|
4507
|
-
},
|
|
4508
|
-
path: {
|
|
4509
|
-
const: "/v1/notification-sync/ack"
|
|
4510
|
-
},
|
|
4511
|
-
body: {
|
|
4512
|
-
$ref: "#/$defs/NotificationSyncAck"
|
|
4513
|
-
}
|
|
4514
|
-
},
|
|
3656
|
+
additionalProperties: false,
|
|
4515
3657
|
required: [
|
|
4516
3658
|
"method",
|
|
4517
3659
|
"path",
|
|
4518
3660
|
"body"
|
|
4519
3661
|
],
|
|
4520
|
-
additionalProperties: false
|
|
4521
|
-
},
|
|
4522
|
-
{
|
|
4523
|
-
type: "object",
|
|
4524
3662
|
properties: {
|
|
4525
3663
|
method: {
|
|
4526
|
-
const: "
|
|
3664
|
+
const: "POST"
|
|
4527
3665
|
},
|
|
4528
3666
|
path: {
|
|
4529
|
-
const: "/v1/
|
|
3667
|
+
const: "/v1/invites"
|
|
4530
3668
|
},
|
|
4531
3669
|
body: {
|
|
4532
|
-
|
|
3670
|
+
$ref: "#/$defs/InviteRequest"
|
|
4533
3671
|
}
|
|
4534
|
-
}
|
|
3672
|
+
}
|
|
3673
|
+
},
|
|
3674
|
+
{
|
|
3675
|
+
type: "object",
|
|
3676
|
+
additionalProperties: false,
|
|
4535
3677
|
required: [
|
|
4536
3678
|
"method",
|
|
4537
3679
|
"path",
|
|
4538
3680
|
"body"
|
|
4539
3681
|
],
|
|
4540
|
-
additionalProperties: false
|
|
4541
|
-
},
|
|
4542
|
-
{
|
|
4543
|
-
type: "object",
|
|
4544
3682
|
properties: {
|
|
4545
3683
|
method: {
|
|
4546
|
-
const: "
|
|
3684
|
+
const: "POST"
|
|
4547
3685
|
},
|
|
4548
3686
|
path: {
|
|
4549
|
-
const: "/v1/
|
|
3687
|
+
const: "/v1/summaries"
|
|
4550
3688
|
},
|
|
4551
3689
|
body: {
|
|
4552
|
-
|
|
3690
|
+
$ref: "#/$defs/DeviceSummary"
|
|
4553
3691
|
}
|
|
4554
|
-
}
|
|
3692
|
+
}
|
|
3693
|
+
},
|
|
3694
|
+
{
|
|
3695
|
+
type: "object",
|
|
3696
|
+
additionalProperties: false,
|
|
4555
3697
|
required: [
|
|
4556
3698
|
"method",
|
|
4557
3699
|
"path",
|
|
4558
3700
|
"body"
|
|
4559
3701
|
],
|
|
4560
|
-
additionalProperties: false
|
|
4561
|
-
},
|
|
4562
|
-
{
|
|
4563
|
-
type: "object",
|
|
4564
3702
|
properties: {
|
|
4565
3703
|
method: {
|
|
4566
3704
|
const: "POST"
|
|
4567
3705
|
},
|
|
4568
3706
|
path: {
|
|
4569
|
-
const: "/v1/
|
|
3707
|
+
const: "/v1/join"
|
|
4570
3708
|
},
|
|
4571
3709
|
body: {
|
|
4572
|
-
$ref: "#/$defs/
|
|
3710
|
+
$ref: "#/$defs/DeviceJoinRequest"
|
|
4573
3711
|
}
|
|
4574
|
-
}
|
|
3712
|
+
}
|
|
3713
|
+
},
|
|
3714
|
+
{
|
|
3715
|
+
type: "object",
|
|
3716
|
+
additionalProperties: false,
|
|
4575
3717
|
required: [
|
|
4576
3718
|
"method",
|
|
4577
3719
|
"path",
|
|
4578
3720
|
"body"
|
|
4579
3721
|
],
|
|
4580
|
-
additionalProperties: false
|
|
4581
|
-
},
|
|
4582
|
-
{
|
|
4583
|
-
type: "object",
|
|
4584
3722
|
properties: {
|
|
4585
3723
|
method: {
|
|
4586
3724
|
const: "POST"
|
|
4587
3725
|
},
|
|
4588
3726
|
path: {
|
|
4589
|
-
const: "/v1/
|
|
3727
|
+
const: "/v1/alive"
|
|
4590
3728
|
},
|
|
4591
3729
|
body: {
|
|
4592
|
-
$ref: "#/$defs/
|
|
3730
|
+
$ref: "#/$defs/DeviceAliveRequest"
|
|
4593
3731
|
}
|
|
4594
|
-
}
|
|
3732
|
+
}
|
|
3733
|
+
},
|
|
3734
|
+
{
|
|
3735
|
+
type: "object",
|
|
3736
|
+
additionalProperties: false,
|
|
4595
3737
|
required: [
|
|
4596
3738
|
"method",
|
|
4597
3739
|
"path",
|
|
4598
3740
|
"body"
|
|
4599
3741
|
],
|
|
4600
|
-
additionalProperties: false
|
|
4601
|
-
},
|
|
4602
|
-
{
|
|
4603
|
-
type: "object",
|
|
4604
3742
|
properties: {
|
|
4605
3743
|
method: {
|
|
4606
3744
|
const: "POST"
|
|
4607
3745
|
},
|
|
4608
3746
|
path: {
|
|
4609
|
-
const: "/v1/
|
|
3747
|
+
const: "/v1/services"
|
|
4610
3748
|
},
|
|
4611
3749
|
body: {
|
|
4612
|
-
$ref: "#/$defs/
|
|
3750
|
+
$ref: "#/$defs/ServiceRecord"
|
|
4613
3751
|
}
|
|
4614
|
-
}
|
|
4615
|
-
required: [
|
|
4616
|
-
"method",
|
|
4617
|
-
"path",
|
|
4618
|
-
"body"
|
|
4619
|
-
],
|
|
4620
|
-
additionalProperties: false
|
|
3752
|
+
}
|
|
4621
3753
|
}
|
|
4622
3754
|
]
|
|
4623
3755
|
},
|
|
4624
|
-
|
|
3756
|
+
WatchMembersRequest: {
|
|
4625
3757
|
type: "object",
|
|
4626
3758
|
properties: {
|
|
4627
3759
|
schemaVersion: {
|
|
4628
3760
|
const: 1
|
|
4629
3761
|
},
|
|
4630
|
-
|
|
4631
|
-
type: "
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
operationId: {
|
|
4635
|
-
type: "string",
|
|
4636
|
-
pattern: "^[A-Za-z0-9_-]{1,128}$"
|
|
3762
|
+
revision: {
|
|
3763
|
+
type: "integer",
|
|
3764
|
+
minimum: 0,
|
|
3765
|
+
maximum: 9007199254740991
|
|
4637
3766
|
}
|
|
4638
3767
|
},
|
|
4639
3768
|
required: [
|
|
4640
3769
|
"schemaVersion",
|
|
4641
|
-
"
|
|
4642
|
-
"operationId"
|
|
3770
|
+
"revision"
|
|
4643
3771
|
],
|
|
4644
3772
|
additionalProperties: false
|
|
4645
3773
|
},
|
|
4646
|
-
|
|
3774
|
+
ManagementMember: {
|
|
4647
3775
|
type: "object",
|
|
4648
3776
|
properties: {
|
|
4649
|
-
|
|
4650
|
-
|
|
3777
|
+
deviceId: {
|
|
3778
|
+
type: "string",
|
|
3779
|
+
minLength: 1,
|
|
3780
|
+
maxLength: 4096
|
|
4651
3781
|
},
|
|
4652
|
-
|
|
4653
|
-
type: "
|
|
4654
|
-
|
|
4655
|
-
|
|
3782
|
+
admissionId: {
|
|
3783
|
+
type: "string",
|
|
3784
|
+
minLength: 1,
|
|
3785
|
+
maxLength: 4096
|
|
3786
|
+
},
|
|
3787
|
+
displayName: {
|
|
3788
|
+
type: "string",
|
|
3789
|
+
minLength: 1,
|
|
3790
|
+
maxLength: 128
|
|
3791
|
+
},
|
|
3792
|
+
status: {
|
|
3793
|
+
enum: [
|
|
3794
|
+
"active",
|
|
3795
|
+
"revoked"
|
|
3796
|
+
]
|
|
3797
|
+
},
|
|
3798
|
+
online: {
|
|
3799
|
+
type: [
|
|
3800
|
+
"boolean",
|
|
3801
|
+
"null"
|
|
3802
|
+
]
|
|
3803
|
+
},
|
|
3804
|
+
platform: {
|
|
3805
|
+
type: "string",
|
|
3806
|
+
minLength: 1,
|
|
3807
|
+
maxLength: 128
|
|
3808
|
+
},
|
|
3809
|
+
target: {
|
|
3810
|
+
$ref: "#/$defs/DeviceTargetRef"
|
|
3811
|
+
},
|
|
3812
|
+
kind: {
|
|
3813
|
+
enum: [
|
|
3814
|
+
"manager",
|
|
3815
|
+
"agent",
|
|
3816
|
+
"controller"
|
|
3817
|
+
]
|
|
4656
3818
|
},
|
|
4657
|
-
|
|
3819
|
+
role: {
|
|
4658
3820
|
enum: [
|
|
4659
|
-
"
|
|
4660
|
-
"
|
|
3821
|
+
"agent",
|
|
3822
|
+
"manager",
|
|
3823
|
+
"unknown"
|
|
4661
3824
|
]
|
|
3825
|
+
},
|
|
3826
|
+
runId: {
|
|
3827
|
+
type: "string",
|
|
3828
|
+
minLength: 1,
|
|
3829
|
+
maxLength: 128
|
|
3830
|
+
},
|
|
3831
|
+
services: {
|
|
3832
|
+
type: "array",
|
|
3833
|
+
maxItems: 3,
|
|
3834
|
+
items: {
|
|
3835
|
+
$ref: "#/$defs/ManagementService"
|
|
3836
|
+
}
|
|
3837
|
+
},
|
|
3838
|
+
storageUsage: {
|
|
3839
|
+
$ref: "#/$defs/StorageUsage"
|
|
3840
|
+
},
|
|
3841
|
+
roleTransition: {
|
|
3842
|
+
$ref: "#/$defs/RoleTransition"
|
|
3843
|
+
},
|
|
3844
|
+
roleTransitionReceipt: {
|
|
3845
|
+
$ref: "#/$defs/RoleTransition"
|
|
4662
3846
|
}
|
|
4663
3847
|
},
|
|
4664
3848
|
required: [
|
|
4665
|
-
"
|
|
4666
|
-
"
|
|
4667
|
-
"
|
|
3849
|
+
"deviceId",
|
|
3850
|
+
"admissionId",
|
|
3851
|
+
"displayName",
|
|
3852
|
+
"status",
|
|
3853
|
+
"target",
|
|
3854
|
+
"kind",
|
|
3855
|
+
"platform",
|
|
3856
|
+
"online",
|
|
3857
|
+
"role",
|
|
3858
|
+
"services"
|
|
4668
3859
|
],
|
|
4669
3860
|
additionalProperties: false
|
|
4670
3861
|
},
|
|
4671
|
-
|
|
3862
|
+
ManagementCatalog: {
|
|
4672
3863
|
type: "object",
|
|
4673
3864
|
properties: {
|
|
4674
|
-
|
|
4675
|
-
const: 1
|
|
4676
|
-
},
|
|
4677
|
-
operationId: {
|
|
4678
|
-
type: "string",
|
|
4679
|
-
pattern: "^[A-Za-z0-9_-]{1,128}$"
|
|
4680
|
-
},
|
|
4681
|
-
actor: {
|
|
4682
|
-
$ref: "#/$defs/Principal"
|
|
4683
|
-
},
|
|
4684
|
-
target: {
|
|
4685
|
-
$ref: "#/$defs/Principal"
|
|
4686
|
-
},
|
|
4687
|
-
memberVersion: {
|
|
3865
|
+
readAt: {
|
|
4688
3866
|
type: "integer",
|
|
4689
|
-
minimum:
|
|
3867
|
+
minimum: 0,
|
|
4690
3868
|
maximum: 9007199254740991
|
|
4691
3869
|
},
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
"pending",
|
|
4695
|
-
"synced"
|
|
4696
|
-
]
|
|
3870
|
+
cached: {
|
|
3871
|
+
type: "boolean"
|
|
4697
3872
|
},
|
|
4698
|
-
|
|
3873
|
+
members: {
|
|
4699
3874
|
type: "array",
|
|
4700
3875
|
maxItems: 1024,
|
|
4701
3876
|
items: {
|
|
4702
|
-
$ref: "#/$defs/
|
|
3877
|
+
$ref: "#/$defs/ManagementMember"
|
|
4703
3878
|
}
|
|
3879
|
+
},
|
|
3880
|
+
revision: {
|
|
3881
|
+
type: "integer",
|
|
3882
|
+
minimum: 0,
|
|
3883
|
+
maximum: 9007199254740991
|
|
3884
|
+
},
|
|
3885
|
+
leaderDeviceId: {
|
|
3886
|
+
type: "string",
|
|
3887
|
+
minLength: 1,
|
|
3888
|
+
maxLength: 128
|
|
4704
3889
|
}
|
|
4705
3890
|
},
|
|
4706
3891
|
required: [
|
|
4707
|
-
"
|
|
4708
|
-
"
|
|
4709
|
-
"
|
|
4710
|
-
"target",
|
|
4711
|
-
"memberVersion",
|
|
4712
|
-
"notificationState"
|
|
3892
|
+
"readAt",
|
|
3893
|
+
"cached",
|
|
3894
|
+
"members"
|
|
4713
3895
|
],
|
|
4714
3896
|
additionalProperties: false
|
|
4715
3897
|
},
|
|
4716
|
-
|
|
3898
|
+
WatchClusterRequest: {
|
|
4717
3899
|
type: "object",
|
|
4718
3900
|
properties: {
|
|
4719
3901
|
schemaVersion: {
|
|
@@ -4723,862 +3905,940 @@ var cluster_schema_default = {
|
|
|
4723
3905
|
type: "integer",
|
|
4724
3906
|
minimum: 0,
|
|
4725
3907
|
maximum: 9007199254740991
|
|
3908
|
+
},
|
|
3909
|
+
presence: {
|
|
3910
|
+
type: "boolean"
|
|
4726
3911
|
}
|
|
4727
3912
|
},
|
|
4728
3913
|
required: [
|
|
4729
3914
|
"schemaVersion",
|
|
4730
|
-
"revision"
|
|
3915
|
+
"revision",
|
|
3916
|
+
"presence"
|
|
4731
3917
|
],
|
|
4732
3918
|
additionalProperties: false
|
|
4733
3919
|
},
|
|
4734
|
-
|
|
3920
|
+
TrustCheckpointResponse: {
|
|
4735
3921
|
type: "object",
|
|
4736
3922
|
properties: {
|
|
4737
3923
|
schemaVersion: {
|
|
4738
3924
|
const: 1
|
|
4739
3925
|
},
|
|
4740
|
-
|
|
3926
|
+
clusterId: {
|
|
4741
3927
|
type: "string",
|
|
4742
|
-
pattern: "^[A-Za-z0-9_-]
|
|
3928
|
+
pattern: "^[A-Za-z0-9_-]+$",
|
|
3929
|
+
minLength: 1,
|
|
3930
|
+
maxLength: 128
|
|
3931
|
+
},
|
|
3932
|
+
membershipRevision: {
|
|
3933
|
+
type: "integer",
|
|
3934
|
+
minimum: 0,
|
|
3935
|
+
maximum: 9007199254740991
|
|
4743
3936
|
}
|
|
4744
3937
|
},
|
|
4745
3938
|
required: [
|
|
4746
3939
|
"schemaVersion",
|
|
4747
|
-
"
|
|
3940
|
+
"clusterId",
|
|
3941
|
+
"membershipRevision"
|
|
3942
|
+
],
|
|
3943
|
+
additionalProperties: false
|
|
3944
|
+
},
|
|
3945
|
+
PluginVersion: {
|
|
3946
|
+
type: "string",
|
|
3947
|
+
maxLength: 128,
|
|
3948
|
+
pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?(\\+[0-9A-Za-z.-]+)?$"
|
|
3949
|
+
},
|
|
3950
|
+
PluginUpdateInfo: {
|
|
3951
|
+
type: "object",
|
|
3952
|
+
additionalProperties: false,
|
|
3953
|
+
required: [
|
|
3954
|
+
"state"
|
|
3955
|
+
],
|
|
3956
|
+
properties: {
|
|
3957
|
+
state: {
|
|
3958
|
+
enum: [
|
|
3959
|
+
"checking",
|
|
3960
|
+
"current",
|
|
3961
|
+
"available",
|
|
3962
|
+
"unsupported",
|
|
3963
|
+
"unavailable",
|
|
3964
|
+
"upgrading",
|
|
3965
|
+
"restart-required",
|
|
3966
|
+
"failed",
|
|
3967
|
+
"restored"
|
|
3968
|
+
]
|
|
3969
|
+
},
|
|
3970
|
+
targetVersion: {
|
|
3971
|
+
$ref: "#/$defs/PluginVersion"
|
|
3972
|
+
},
|
|
3973
|
+
operationId: {
|
|
3974
|
+
type: "string",
|
|
3975
|
+
minLength: 1,
|
|
3976
|
+
maxLength: 4096
|
|
3977
|
+
},
|
|
3978
|
+
message: {
|
|
3979
|
+
type: "string",
|
|
3980
|
+
maxLength: 512
|
|
3981
|
+
},
|
|
3982
|
+
checkedAt: {
|
|
3983
|
+
type: "integer",
|
|
3984
|
+
minimum: 0,
|
|
3985
|
+
maximum: 9007199254740991
|
|
3986
|
+
}
|
|
3987
|
+
}
|
|
3988
|
+
},
|
|
3989
|
+
PluginReport: {
|
|
3990
|
+
type: "object",
|
|
3991
|
+
additionalProperties: false,
|
|
3992
|
+
required: [
|
|
3993
|
+
"pluginVersion"
|
|
4748
3994
|
],
|
|
4749
|
-
|
|
3995
|
+
properties: {
|
|
3996
|
+
pluginVersion: {
|
|
3997
|
+
$ref: "#/$defs/PluginVersion"
|
|
3998
|
+
},
|
|
3999
|
+
pluginUpdate: {
|
|
4000
|
+
$ref: "#/$defs/PluginUpdateInfo"
|
|
4001
|
+
}
|
|
4002
|
+
}
|
|
4750
4003
|
},
|
|
4751
|
-
|
|
4004
|
+
RenameMemberRequest: {
|
|
4752
4005
|
type: "object",
|
|
4753
4006
|
properties: {
|
|
4754
4007
|
schemaVersion: {
|
|
4755
4008
|
const: 1
|
|
4756
4009
|
},
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
pattern: "^[A-Za-z0-9_-]{1,128}$"
|
|
4010
|
+
principal: {
|
|
4011
|
+
$ref: "#/$defs/Principal"
|
|
4760
4012
|
},
|
|
4761
|
-
|
|
4013
|
+
displayName: {
|
|
4762
4014
|
type: "string",
|
|
4763
|
-
|
|
4015
|
+
minLength: 1,
|
|
4016
|
+
maxLength: 256
|
|
4764
4017
|
}
|
|
4765
4018
|
},
|
|
4766
4019
|
required: [
|
|
4767
4020
|
"schemaVersion",
|
|
4768
|
-
"
|
|
4769
|
-
"
|
|
4021
|
+
"principal",
|
|
4022
|
+
"displayName"
|
|
4770
4023
|
],
|
|
4771
4024
|
additionalProperties: false
|
|
4772
4025
|
},
|
|
4773
|
-
|
|
4026
|
+
ClusterLeader: {
|
|
4774
4027
|
type: "object",
|
|
4775
4028
|
properties: {
|
|
4776
4029
|
schemaVersion: {
|
|
4777
4030
|
const: 1
|
|
4778
4031
|
},
|
|
4779
|
-
|
|
4780
|
-
type: "string",
|
|
4781
|
-
pattern: "^[A-Za-z0-9_-]{1,128}$"
|
|
4782
|
-
},
|
|
4783
|
-
token: {
|
|
4032
|
+
deviceId: {
|
|
4784
4033
|
type: "string",
|
|
4785
|
-
|
|
4034
|
+
minLength: 1,
|
|
4035
|
+
maxLength: 128
|
|
4786
4036
|
}
|
|
4787
4037
|
},
|
|
4788
4038
|
required: [
|
|
4789
|
-
"schemaVersion"
|
|
4790
|
-
"operationId",
|
|
4791
|
-
"token"
|
|
4039
|
+
"schemaVersion"
|
|
4792
4040
|
],
|
|
4793
4041
|
additionalProperties: false
|
|
4794
4042
|
},
|
|
4795
|
-
|
|
4043
|
+
StorageUsage: {
|
|
4796
4044
|
type: "object",
|
|
4797
4045
|
properties: {
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
"not-storage"
|
|
4803
|
-
]
|
|
4804
|
-
},
|
|
4805
|
-
membershipRevocation: {
|
|
4806
|
-
enum: [
|
|
4807
|
-
"pending",
|
|
4808
|
-
"revoked"
|
|
4809
|
-
]
|
|
4810
|
-
},
|
|
4811
|
-
notificationState: {
|
|
4812
|
-
enum: [
|
|
4813
|
-
"not-committed",
|
|
4814
|
-
"pending",
|
|
4815
|
-
"synced"
|
|
4816
|
-
]
|
|
4046
|
+
databaseBytes: {
|
|
4047
|
+
type: "integer",
|
|
4048
|
+
minimum: 0,
|
|
4049
|
+
maximum: 9007199254740991
|
|
4817
4050
|
},
|
|
4818
|
-
|
|
4051
|
+
inUseBytes: {
|
|
4819
4052
|
type: "integer",
|
|
4820
4053
|
minimum: 0,
|
|
4821
4054
|
maximum: 9007199254740991
|
|
4822
4055
|
},
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
]
|
|
4056
|
+
sampledAt: {
|
|
4057
|
+
type: "integer",
|
|
4058
|
+
minimum: 1,
|
|
4059
|
+
maximum: 9007199254740991
|
|
4828
4060
|
}
|
|
4829
4061
|
},
|
|
4830
4062
|
required: [
|
|
4831
|
-
"
|
|
4832
|
-
"
|
|
4833
|
-
"
|
|
4834
|
-
"committedRevision",
|
|
4835
|
-
"trustCleanup"
|
|
4063
|
+
"databaseBytes",
|
|
4064
|
+
"inUseBytes",
|
|
4065
|
+
"sampledAt"
|
|
4836
4066
|
],
|
|
4837
4067
|
additionalProperties: false
|
|
4838
4068
|
},
|
|
4839
|
-
|
|
4069
|
+
DeviceTargetRef: {
|
|
4840
4070
|
type: "object",
|
|
4841
4071
|
properties: {
|
|
4842
|
-
|
|
4843
|
-
type: "string",
|
|
4844
|
-
minLength: 1,
|
|
4845
|
-
maxLength: 4096
|
|
4846
|
-
},
|
|
4847
|
-
admissionId: {
|
|
4848
|
-
type: "string",
|
|
4849
|
-
minLength: 1,
|
|
4850
|
-
maxLength: 4096
|
|
4851
|
-
},
|
|
4852
|
-
displayName: {
|
|
4072
|
+
clusterId: {
|
|
4853
4073
|
type: "string",
|
|
4854
4074
|
minLength: 1,
|
|
4855
|
-
maxLength: 128
|
|
4856
|
-
|
|
4857
|
-
status: {
|
|
4858
|
-
enum: [
|
|
4859
|
-
"active",
|
|
4860
|
-
"revoked"
|
|
4861
|
-
]
|
|
4862
|
-
},
|
|
4863
|
-
nodeKind: {
|
|
4864
|
-
enum: [
|
|
4865
|
-
"agent",
|
|
4866
|
-
"controller"
|
|
4867
|
-
]
|
|
4868
|
-
},
|
|
4869
|
-
online: {
|
|
4870
|
-
type: [
|
|
4871
|
-
"boolean",
|
|
4872
|
-
"null"
|
|
4873
|
-
]
|
|
4075
|
+
maxLength: 128,
|
|
4076
|
+
pattern: "^[A-Za-z0-9_-]{1,128}$"
|
|
4874
4077
|
},
|
|
4875
|
-
|
|
4078
|
+
deviceId: {
|
|
4876
4079
|
type: "string",
|
|
4877
4080
|
minLength: 1,
|
|
4878
|
-
maxLength: 128
|
|
4081
|
+
maxLength: 128,
|
|
4082
|
+
pattern: "^[A-Za-z0-9_-]{1,128}$"
|
|
4879
4083
|
}
|
|
4880
4084
|
},
|
|
4881
4085
|
required: [
|
|
4882
|
-
"
|
|
4883
|
-
"
|
|
4884
|
-
"displayName",
|
|
4885
|
-
"status"
|
|
4086
|
+
"clusterId",
|
|
4087
|
+
"deviceId"
|
|
4886
4088
|
],
|
|
4887
4089
|
additionalProperties: false
|
|
4888
4090
|
},
|
|
4889
|
-
|
|
4091
|
+
DeviceMemberRecord: {
|
|
4890
4092
|
type: "object",
|
|
4891
4093
|
properties: {
|
|
4892
|
-
|
|
4893
|
-
$ref: "#/$defs/TargetRef"
|
|
4894
|
-
},
|
|
4895
|
-
displayName: {
|
|
4094
|
+
deviceId: {
|
|
4896
4095
|
type: "string",
|
|
4897
4096
|
minLength: 1,
|
|
4898
4097
|
maxLength: 128
|
|
4899
4098
|
},
|
|
4900
|
-
|
|
4901
|
-
type: "boolean"
|
|
4902
|
-
},
|
|
4903
|
-
online: {
|
|
4904
|
-
type: [
|
|
4905
|
-
"boolean",
|
|
4906
|
-
"null"
|
|
4907
|
-
]
|
|
4908
|
-
},
|
|
4909
|
-
storageRole: {
|
|
4910
|
-
enum: [
|
|
4911
|
-
"remote-only",
|
|
4912
|
-
"prepared",
|
|
4913
|
-
"learner",
|
|
4914
|
-
"voter",
|
|
4915
|
-
"unknown"
|
|
4916
|
-
]
|
|
4917
|
-
},
|
|
4918
|
-
storageCleanupPending: {
|
|
4919
|
-
type: "boolean"
|
|
4920
|
-
},
|
|
4921
|
-
pluginVersion: {
|
|
4922
|
-
$ref: "#/$defs/PluginVersion"
|
|
4923
|
-
},
|
|
4924
|
-
pluginUpdate: {
|
|
4925
|
-
$ref: "#/$defs/PluginUpdateInfo"
|
|
4926
|
-
},
|
|
4927
|
-
runId: {
|
|
4099
|
+
admissionId: {
|
|
4928
4100
|
type: "string",
|
|
4929
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
4930
4101
|
minLength: 1,
|
|
4931
4102
|
maxLength: 128
|
|
4932
4103
|
},
|
|
4933
|
-
|
|
4934
|
-
|
|
4104
|
+
devicePublicKey: {
|
|
4105
|
+
type: "string",
|
|
4106
|
+
pattern: "^[A-Za-z0-9_-]{43}$"
|
|
4935
4107
|
},
|
|
4936
|
-
|
|
4108
|
+
displayName: {
|
|
4937
4109
|
type: "string",
|
|
4938
4110
|
minLength: 1,
|
|
4939
|
-
maxLength:
|
|
4111
|
+
maxLength: 4096
|
|
4940
4112
|
},
|
|
4941
|
-
|
|
4113
|
+
platform: {
|
|
4942
4114
|
type: "string",
|
|
4943
4115
|
minLength: 1,
|
|
4944
|
-
maxLength:
|
|
4116
|
+
maxLength: 64
|
|
4117
|
+
},
|
|
4118
|
+
kind: {
|
|
4119
|
+
enum: [
|
|
4120
|
+
"manager",
|
|
4121
|
+
"agent",
|
|
4122
|
+
"controller"
|
|
4123
|
+
]
|
|
4124
|
+
},
|
|
4125
|
+
status: {
|
|
4126
|
+
enum: [
|
|
4127
|
+
"active",
|
|
4128
|
+
"revoked"
|
|
4129
|
+
]
|
|
4130
|
+
},
|
|
4131
|
+
memberVersion: {
|
|
4132
|
+
type: "integer",
|
|
4133
|
+
minimum: 0,
|
|
4134
|
+
maximum: 9007199254740991
|
|
4945
4135
|
}
|
|
4946
4136
|
},
|
|
4947
4137
|
required: [
|
|
4948
|
-
"
|
|
4138
|
+
"deviceId",
|
|
4139
|
+
"admissionId",
|
|
4140
|
+
"devicePublicKey",
|
|
4949
4141
|
"displayName",
|
|
4950
|
-
"
|
|
4951
|
-
"
|
|
4142
|
+
"platform",
|
|
4143
|
+
"kind",
|
|
4144
|
+
"status",
|
|
4145
|
+
"memberVersion"
|
|
4952
4146
|
],
|
|
4953
4147
|
additionalProperties: false
|
|
4954
4148
|
},
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4149
|
+
ServiceRecord: {
|
|
4150
|
+
oneOf: [
|
|
4151
|
+
{
|
|
4152
|
+
type: "object",
|
|
4153
|
+
properties: {
|
|
4154
|
+
target: {
|
|
4155
|
+
$ref: "#/$defs/DeviceTargetRef"
|
|
4156
|
+
},
|
|
4157
|
+
serviceName: {
|
|
4158
|
+
const: "dsh"
|
|
4159
|
+
},
|
|
4160
|
+
admissionId: {
|
|
4161
|
+
type: "string",
|
|
4162
|
+
minLength: 1,
|
|
4163
|
+
maxLength: 128
|
|
4164
|
+
},
|
|
4165
|
+
tailcatAddress: {
|
|
4166
|
+
type: "string",
|
|
4167
|
+
minLength: 1,
|
|
4168
|
+
maxLength: 4096
|
|
4169
|
+
},
|
|
4170
|
+
port: {
|
|
4171
|
+
type: "integer",
|
|
4172
|
+
minimum: 1,
|
|
4173
|
+
maximum: 65535
|
|
4174
|
+
},
|
|
4175
|
+
remoteEnabled: {
|
|
4176
|
+
type: "boolean"
|
|
4177
|
+
},
|
|
4178
|
+
dshVersion: {
|
|
4179
|
+
type: "string",
|
|
4180
|
+
minLength: 1,
|
|
4181
|
+
maxLength: 128
|
|
4182
|
+
},
|
|
4183
|
+
pluginVersion: {
|
|
4184
|
+
type: "string",
|
|
4185
|
+
minLength: 1,
|
|
4186
|
+
maxLength: 128
|
|
4187
|
+
}
|
|
4188
|
+
},
|
|
4189
|
+
required: [
|
|
4190
|
+
"target",
|
|
4191
|
+
"serviceName",
|
|
4192
|
+
"admissionId",
|
|
4193
|
+
"tailcatAddress",
|
|
4194
|
+
"port",
|
|
4195
|
+
"remoteEnabled"
|
|
4196
|
+
],
|
|
4197
|
+
additionalProperties: false
|
|
4972
4198
|
},
|
|
4973
|
-
|
|
4974
|
-
type: "
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4199
|
+
{
|
|
4200
|
+
type: "object",
|
|
4201
|
+
properties: {
|
|
4202
|
+
target: {
|
|
4203
|
+
$ref: "#/$defs/DeviceTargetRef"
|
|
4204
|
+
},
|
|
4205
|
+
serviceName: {
|
|
4206
|
+
const: "metadata"
|
|
4207
|
+
},
|
|
4208
|
+
admissionId: {
|
|
4209
|
+
type: "string",
|
|
4210
|
+
minLength: 1,
|
|
4211
|
+
maxLength: 128
|
|
4212
|
+
},
|
|
4213
|
+
tailcatAddress: {
|
|
4214
|
+
type: "string",
|
|
4215
|
+
minLength: 1,
|
|
4216
|
+
maxLength: 4096
|
|
4217
|
+
},
|
|
4218
|
+
port: {
|
|
4219
|
+
type: "integer",
|
|
4220
|
+
minimum: 1,
|
|
4221
|
+
maximum: 65535
|
|
4222
|
+
}
|
|
4223
|
+
},
|
|
4224
|
+
required: [
|
|
4225
|
+
"target",
|
|
4226
|
+
"serviceName",
|
|
4227
|
+
"admissionId",
|
|
4228
|
+
"tailcatAddress",
|
|
4229
|
+
"port"
|
|
4230
|
+
],
|
|
4231
|
+
additionalProperties: false
|
|
4979
4232
|
},
|
|
4980
|
-
|
|
4233
|
+
{
|
|
4981
4234
|
type: "object",
|
|
4982
4235
|
properties: {
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
"pending",
|
|
4986
|
-
"synced",
|
|
4987
|
-
"unavailable"
|
|
4988
|
-
]
|
|
4236
|
+
target: {
|
|
4237
|
+
$ref: "#/$defs/DeviceTargetRef"
|
|
4989
4238
|
},
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4239
|
+
serviceName: {
|
|
4240
|
+
const: "etcd"
|
|
4241
|
+
},
|
|
4242
|
+
admissionId: {
|
|
4243
|
+
type: "string",
|
|
4244
|
+
minLength: 1,
|
|
4245
|
+
maxLength: 128
|
|
4246
|
+
},
|
|
4247
|
+
tailcatAddress: {
|
|
4248
|
+
type: "string",
|
|
4249
|
+
minLength: 1,
|
|
4250
|
+
maxLength: 4096
|
|
4251
|
+
},
|
|
4252
|
+
port: {
|
|
4253
|
+
type: "integer",
|
|
4254
|
+
minimum: 1,
|
|
4255
|
+
maximum: 65535
|
|
4256
|
+
},
|
|
4257
|
+
etcdMemberId: {
|
|
4258
|
+
type: "string",
|
|
4259
|
+
pattern: "^[0-9a-f]{1,16}$"
|
|
4996
4260
|
}
|
|
4997
4261
|
},
|
|
4998
4262
|
required: [
|
|
4999
|
-
"
|
|
4263
|
+
"target",
|
|
4264
|
+
"serviceName",
|
|
4265
|
+
"admissionId",
|
|
4266
|
+
"tailcatAddress",
|
|
4267
|
+
"port",
|
|
4268
|
+
"etcdMemberId"
|
|
5000
4269
|
],
|
|
5001
4270
|
additionalProperties: false
|
|
5002
|
-
},
|
|
5003
|
-
revision: {
|
|
5004
|
-
type: "integer",
|
|
5005
|
-
minimum: 0,
|
|
5006
|
-
maximum: 9007199254740991
|
|
5007
4271
|
}
|
|
5008
|
-
|
|
5009
|
-
required: [
|
|
5010
|
-
"readAt",
|
|
5011
|
-
"cached",
|
|
5012
|
-
"members",
|
|
5013
|
-
"instances",
|
|
5014
|
-
"notificationSync"
|
|
5015
|
-
],
|
|
5016
|
-
additionalProperties: false
|
|
4272
|
+
]
|
|
5017
4273
|
},
|
|
5018
|
-
|
|
4274
|
+
DeviceSummary: {
|
|
5019
4275
|
type: "object",
|
|
5020
4276
|
properties: {
|
|
5021
|
-
|
|
5022
|
-
|
|
4277
|
+
target: {
|
|
4278
|
+
$ref: "#/$defs/DeviceTargetRef"
|
|
5023
4279
|
},
|
|
5024
|
-
|
|
5025
|
-
|
|
4280
|
+
sessionId: {
|
|
4281
|
+
type: "string",
|
|
4282
|
+
minLength: 1,
|
|
4283
|
+
maxLength: 4096
|
|
5026
4284
|
},
|
|
5027
|
-
|
|
4285
|
+
runId: {
|
|
5028
4286
|
type: "string",
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
4287
|
+
minLength: 1,
|
|
4288
|
+
maxLength: 128
|
|
4289
|
+
},
|
|
4290
|
+
title: {
|
|
4291
|
+
type: "string",
|
|
4292
|
+
maxLength: 4096
|
|
4293
|
+
},
|
|
4294
|
+
status: {
|
|
4295
|
+
enum: [
|
|
4296
|
+
"idle",
|
|
4297
|
+
"busy",
|
|
4298
|
+
"approval-waiting",
|
|
4299
|
+
"failed"
|
|
4300
|
+
]
|
|
4301
|
+
},
|
|
4302
|
+
updatedAt: {
|
|
4303
|
+
type: "integer",
|
|
4304
|
+
minimum: 0,
|
|
4305
|
+
maximum: 9007199254740991
|
|
5032
4306
|
}
|
|
5033
4307
|
},
|
|
5034
4308
|
required: [
|
|
5035
|
-
"
|
|
5036
|
-
"
|
|
5037
|
-
"
|
|
4309
|
+
"target",
|
|
4310
|
+
"sessionId",
|
|
4311
|
+
"runId",
|
|
4312
|
+
"title",
|
|
4313
|
+
"status",
|
|
4314
|
+
"updatedAt"
|
|
5038
4315
|
],
|
|
5039
4316
|
additionalProperties: false
|
|
5040
4317
|
},
|
|
5041
|
-
|
|
4318
|
+
DeviceMemberSnapshot: {
|
|
5042
4319
|
type: "object",
|
|
5043
4320
|
properties: {
|
|
5044
4321
|
schemaVersion: {
|
|
5045
4322
|
const: 1
|
|
5046
4323
|
},
|
|
5047
|
-
|
|
5048
|
-
$ref: "#/$defs/Principal"
|
|
5049
|
-
},
|
|
5050
|
-
recipientId: {
|
|
4324
|
+
clusterId: {
|
|
5051
4325
|
type: "string",
|
|
5052
|
-
|
|
4326
|
+
minLength: 1,
|
|
4327
|
+
maxLength: 128
|
|
5053
4328
|
},
|
|
5054
|
-
|
|
4329
|
+
revision: {
|
|
5055
4330
|
type: "integer",
|
|
5056
4331
|
minimum: 0,
|
|
5057
4332
|
maximum: 9007199254740991
|
|
5058
4333
|
},
|
|
5059
|
-
|
|
4334
|
+
readAt: {
|
|
5060
4335
|
type: "integer",
|
|
5061
|
-
minimum:
|
|
4336
|
+
minimum: 0,
|
|
5062
4337
|
maximum: 9007199254740991
|
|
5063
|
-
}
|
|
5064
|
-
},
|
|
5065
|
-
required: [
|
|
5066
|
-
"schemaVersion",
|
|
5067
|
-
"owner",
|
|
5068
|
-
"recipientId",
|
|
5069
|
-
"memberVersion",
|
|
5070
|
-
"bootstrapRevision"
|
|
5071
|
-
],
|
|
5072
|
-
additionalProperties: false
|
|
5073
|
-
},
|
|
5074
|
-
NotificationRecipientRemove: {
|
|
5075
|
-
type: "object",
|
|
5076
|
-
properties: {
|
|
5077
|
-
schemaVersion: {
|
|
5078
|
-
const: 1
|
|
5079
4338
|
},
|
|
5080
|
-
|
|
5081
|
-
type: "
|
|
5082
|
-
|
|
4339
|
+
members: {
|
|
4340
|
+
type: "array",
|
|
4341
|
+
items: {
|
|
4342
|
+
$ref: "#/$defs/DeviceMemberRecord"
|
|
4343
|
+
}
|
|
5083
4344
|
}
|
|
5084
4345
|
},
|
|
5085
4346
|
required: [
|
|
5086
4347
|
"schemaVersion",
|
|
5087
|
-
"
|
|
4348
|
+
"clusterId",
|
|
4349
|
+
"revision",
|
|
4350
|
+
"readAt",
|
|
4351
|
+
"members"
|
|
5088
4352
|
],
|
|
5089
4353
|
additionalProperties: false
|
|
5090
4354
|
},
|
|
5091
|
-
|
|
4355
|
+
DeviceDirectorySnapshot: {
|
|
5092
4356
|
type: "object",
|
|
5093
4357
|
properties: {
|
|
5094
4358
|
schemaVersion: {
|
|
5095
4359
|
const: 1
|
|
5096
4360
|
},
|
|
5097
|
-
|
|
4361
|
+
clusterId: {
|
|
5098
4362
|
type: "string",
|
|
5099
|
-
|
|
4363
|
+
minLength: 1,
|
|
4364
|
+
maxLength: 128
|
|
5100
4365
|
},
|
|
5101
|
-
|
|
4366
|
+
revision: {
|
|
5102
4367
|
type: "integer",
|
|
5103
|
-
minimum:
|
|
5104
|
-
maximum:
|
|
4368
|
+
minimum: 0,
|
|
4369
|
+
maximum: 9007199254740991
|
|
4370
|
+
},
|
|
4371
|
+
readAt: {
|
|
4372
|
+
type: "integer",
|
|
4373
|
+
minimum: 0,
|
|
4374
|
+
maximum: 9007199254740991
|
|
4375
|
+
},
|
|
4376
|
+
services: {
|
|
4377
|
+
type: "array",
|
|
4378
|
+
items: {
|
|
4379
|
+
$ref: "#/$defs/ServiceRecord"
|
|
4380
|
+
}
|
|
4381
|
+
},
|
|
4382
|
+
summaries: {
|
|
4383
|
+
type: "array",
|
|
4384
|
+
items: {
|
|
4385
|
+
$ref: "#/$defs/DeviceSummary"
|
|
4386
|
+
}
|
|
4387
|
+
},
|
|
4388
|
+
onlineDeviceIds: {
|
|
4389
|
+
type: "array",
|
|
4390
|
+
items: {
|
|
4391
|
+
type: "string",
|
|
4392
|
+
minLength: 1,
|
|
4393
|
+
maxLength: 128
|
|
4394
|
+
}
|
|
4395
|
+
},
|
|
4396
|
+
presenceRuns: {
|
|
4397
|
+
type: "object",
|
|
4398
|
+
additionalProperties: {
|
|
4399
|
+
type: "string",
|
|
4400
|
+
minLength: 1,
|
|
4401
|
+
maxLength: 128
|
|
4402
|
+
}
|
|
5105
4403
|
}
|
|
5106
4404
|
},
|
|
5107
4405
|
required: [
|
|
5108
4406
|
"schemaVersion",
|
|
5109
|
-
"
|
|
4407
|
+
"clusterId",
|
|
4408
|
+
"revision",
|
|
4409
|
+
"readAt",
|
|
4410
|
+
"services",
|
|
4411
|
+
"summaries",
|
|
4412
|
+
"onlineDeviceIds"
|
|
5110
4413
|
],
|
|
5111
4414
|
additionalProperties: false
|
|
5112
4415
|
},
|
|
5113
|
-
|
|
4416
|
+
DeviceClusterSnapshot: {
|
|
5114
4417
|
type: "object",
|
|
5115
4418
|
properties: {
|
|
5116
4419
|
schemaVersion: {
|
|
5117
4420
|
const: 1
|
|
5118
4421
|
},
|
|
5119
|
-
|
|
4422
|
+
clusterId: {
|
|
5120
4423
|
type: "string",
|
|
5121
|
-
|
|
4424
|
+
minLength: 1,
|
|
4425
|
+
maxLength: 128
|
|
5122
4426
|
},
|
|
5123
|
-
|
|
4427
|
+
revision: {
|
|
5124
4428
|
type: "integer",
|
|
5125
|
-
minimum:
|
|
5126
|
-
maximum:
|
|
5127
|
-
}
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
additionalProperties: false
|
|
5134
|
-
},
|
|
5135
|
-
NotificationRecipientList: {
|
|
5136
|
-
type: "object",
|
|
5137
|
-
properties: {
|
|
5138
|
-
schemaVersion: {
|
|
5139
|
-
const: 1
|
|
4429
|
+
minimum: 0,
|
|
4430
|
+
maximum: 9007199254740991
|
|
4431
|
+
},
|
|
4432
|
+
members: {
|
|
4433
|
+
$ref: "#/$defs/DeviceMemberSnapshot"
|
|
4434
|
+
},
|
|
4435
|
+
directory: {
|
|
4436
|
+
$ref: "#/$defs/DeviceDirectorySnapshot"
|
|
5140
4437
|
},
|
|
5141
|
-
|
|
4438
|
+
roleTransitions: {
|
|
5142
4439
|
type: "array",
|
|
5143
|
-
maxItems:
|
|
4440
|
+
maxItems: 1024,
|
|
5144
4441
|
items: {
|
|
5145
|
-
$ref: "#/$defs/
|
|
4442
|
+
$ref: "#/$defs/RoleTransition"
|
|
5146
4443
|
}
|
|
5147
|
-
},
|
|
5148
|
-
nextAfterDeviceId: {
|
|
5149
|
-
type: "string",
|
|
5150
|
-
pattern: "^[A-Za-z0-9_-]{1,128}$"
|
|
5151
4444
|
}
|
|
5152
4445
|
},
|
|
5153
4446
|
required: [
|
|
5154
4447
|
"schemaVersion",
|
|
5155
|
-
"
|
|
4448
|
+
"clusterId",
|
|
4449
|
+
"revision",
|
|
4450
|
+
"members",
|
|
4451
|
+
"directory"
|
|
5156
4452
|
],
|
|
5157
4453
|
additionalProperties: false
|
|
5158
4454
|
},
|
|
5159
|
-
|
|
4455
|
+
MemberRoleRequest: {
|
|
5160
4456
|
type: "object",
|
|
5161
4457
|
properties: {
|
|
5162
|
-
|
|
4458
|
+
admissionId: {
|
|
5163
4459
|
type: "string",
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
owner: {
|
|
5167
|
-
$ref: "#/$defs/Principal"
|
|
5168
|
-
},
|
|
5169
|
-
memberVersion: {
|
|
5170
|
-
type: "integer",
|
|
5171
|
-
minimum: 0,
|
|
5172
|
-
maximum: 9007199254740991
|
|
4460
|
+
minLength: 1,
|
|
4461
|
+
maxLength: 128
|
|
5173
4462
|
},
|
|
5174
|
-
|
|
4463
|
+
role: {
|
|
5175
4464
|
enum: [
|
|
5176
|
-
"
|
|
5177
|
-
"
|
|
4465
|
+
"agent",
|
|
4466
|
+
"manager"
|
|
5178
4467
|
]
|
|
5179
4468
|
}
|
|
5180
4469
|
},
|
|
5181
4470
|
required: [
|
|
5182
|
-
"
|
|
5183
|
-
"
|
|
5184
|
-
"memberVersion",
|
|
5185
|
-
"state"
|
|
4471
|
+
"admissionId",
|
|
4472
|
+
"role"
|
|
5186
4473
|
],
|
|
5187
4474
|
additionalProperties: false
|
|
5188
4475
|
},
|
|
5189
|
-
|
|
4476
|
+
MemberRoleResult: {
|
|
5190
4477
|
type: "object",
|
|
5191
4478
|
properties: {
|
|
5192
|
-
schemaVersion: {
|
|
5193
|
-
const: 1
|
|
5194
|
-
},
|
|
5195
|
-
operationId: {
|
|
5196
|
-
type: "string",
|
|
5197
|
-
pattern: "^[A-Za-z0-9_-]{1,128}$"
|
|
5198
|
-
},
|
|
5199
|
-
actor: {
|
|
5200
|
-
$ref: "#/$defs/Principal"
|
|
5201
|
-
},
|
|
5202
4479
|
target: {
|
|
5203
|
-
$ref: "#/$defs/
|
|
4480
|
+
$ref: "#/$defs/DeviceTargetRef"
|
|
5204
4481
|
},
|
|
5205
|
-
|
|
5206
|
-
type: "integer",
|
|
5207
|
-
minimum: 1,
|
|
5208
|
-
maximum: 9007199254740991
|
|
5209
|
-
},
|
|
5210
|
-
notificationState: {
|
|
4482
|
+
currentRole: {
|
|
5211
4483
|
enum: [
|
|
5212
|
-
"
|
|
5213
|
-
"
|
|
4484
|
+
"agent",
|
|
4485
|
+
"manager",
|
|
4486
|
+
"unknown"
|
|
5214
4487
|
]
|
|
5215
4488
|
},
|
|
5216
|
-
|
|
5217
|
-
type: "
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
$ref: "#/$defs/NotificationSyncRecipient"
|
|
5221
|
-
}
|
|
4489
|
+
etcdMemberId: {
|
|
4490
|
+
type: "string",
|
|
4491
|
+
minLength: 1,
|
|
4492
|
+
maxLength: 16
|
|
5222
4493
|
},
|
|
5223
|
-
|
|
5224
|
-
type: "
|
|
5225
|
-
|
|
5226
|
-
|
|
4494
|
+
nativeRemoved: {
|
|
4495
|
+
type: "boolean"
|
|
4496
|
+
},
|
|
4497
|
+
localStopped: {
|
|
4498
|
+
type: "boolean"
|
|
4499
|
+
},
|
|
4500
|
+
error: {
|
|
4501
|
+
$ref: "#/$defs/ApiError"
|
|
5227
4502
|
}
|
|
5228
4503
|
},
|
|
5229
4504
|
required: [
|
|
5230
|
-
"schemaVersion",
|
|
5231
|
-
"operationId",
|
|
5232
|
-
"actor",
|
|
5233
4505
|
"target",
|
|
5234
|
-
"
|
|
5235
|
-
"
|
|
5236
|
-
"
|
|
4506
|
+
"currentRole",
|
|
4507
|
+
"nativeRemoved",
|
|
4508
|
+
"localStopped"
|
|
5237
4509
|
],
|
|
5238
4510
|
additionalProperties: false
|
|
5239
4511
|
},
|
|
5240
|
-
|
|
4512
|
+
DeviceAliveRequest: {
|
|
5241
4513
|
type: "object",
|
|
5242
4514
|
properties: {
|
|
5243
|
-
|
|
5244
|
-
const: 1
|
|
5245
|
-
},
|
|
5246
|
-
records: {
|
|
5247
|
-
type: "array",
|
|
5248
|
-
maxItems: 100,
|
|
5249
|
-
items: {
|
|
5250
|
-
$ref: "#/$defs/NotificationSyncRecord"
|
|
5251
|
-
}
|
|
5252
|
-
},
|
|
5253
|
-
nextAfterOperationId: {
|
|
4515
|
+
runId: {
|
|
5254
4516
|
type: "string",
|
|
5255
|
-
|
|
4517
|
+
minLength: 1,
|
|
4518
|
+
maxLength: 128
|
|
5256
4519
|
}
|
|
5257
4520
|
},
|
|
5258
4521
|
required: [
|
|
5259
|
-
"
|
|
5260
|
-
"records"
|
|
4522
|
+
"runId"
|
|
5261
4523
|
],
|
|
5262
4524
|
additionalProperties: false
|
|
5263
4525
|
},
|
|
5264
|
-
|
|
4526
|
+
DeviceJoinRequest: {
|
|
5265
4527
|
type: "object",
|
|
5266
4528
|
properties: {
|
|
5267
4529
|
schemaVersion: {
|
|
5268
4530
|
const: 1
|
|
5269
4531
|
},
|
|
5270
|
-
|
|
4532
|
+
clusterId: {
|
|
5271
4533
|
type: "string",
|
|
5272
|
-
pattern: "^[A-Za-z0-9_-]
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
|
|
4534
|
+
pattern: "^[A-Za-z0-9_-]+$",
|
|
4535
|
+
minLength: 1,
|
|
4536
|
+
maxLength: 128
|
|
4537
|
+
},
|
|
4538
|
+
inviteId: {
|
|
4539
|
+
type: "string",
|
|
4540
|
+
pattern: "^[A-Za-z0-9_-]+$",
|
|
4541
|
+
minLength: 1,
|
|
4542
|
+
maxLength: 128
|
|
4543
|
+
},
|
|
4544
|
+
secret: {
|
|
4545
|
+
type: "string",
|
|
4546
|
+
pattern: "^[A-Za-z0-9_-]{43,86}$"
|
|
4547
|
+
},
|
|
4548
|
+
deviceId: {
|
|
4549
|
+
type: "string",
|
|
4550
|
+
pattern: "^[A-Za-z0-9_-]+$",
|
|
4551
|
+
minLength: 1,
|
|
4552
|
+
maxLength: 128
|
|
4553
|
+
},
|
|
4554
|
+
requestId: {
|
|
4555
|
+
type: "string",
|
|
4556
|
+
pattern: "^[A-Za-z0-9_-]+$",
|
|
4557
|
+
minLength: 1,
|
|
4558
|
+
maxLength: 128
|
|
4559
|
+
},
|
|
4560
|
+
displayName: {
|
|
4561
|
+
type: "string",
|
|
4562
|
+
minLength: 1,
|
|
4563
|
+
maxLength: 4096
|
|
5286
4564
|
},
|
|
5287
|
-
|
|
4565
|
+
signature: {
|
|
5288
4566
|
type: "string",
|
|
5289
|
-
pattern: "^[A-Za-z0-9_-]{
|
|
4567
|
+
pattern: "^[A-Za-z0-9_-]{86}$"
|
|
5290
4568
|
},
|
|
5291
|
-
|
|
5292
|
-
type: "
|
|
5293
|
-
|
|
5294
|
-
maximum: 9007199254740991
|
|
4569
|
+
devicePublicKey: {
|
|
4570
|
+
type: "string",
|
|
4571
|
+
pattern: "^[A-Za-z0-9_-]{43}$"
|
|
5295
4572
|
},
|
|
5296
|
-
|
|
4573
|
+
platform: {
|
|
5297
4574
|
type: "string",
|
|
5298
|
-
|
|
4575
|
+
minLength: 1,
|
|
4576
|
+
maxLength: 64
|
|
4577
|
+
},
|
|
4578
|
+
kind: {
|
|
4579
|
+
enum: [
|
|
4580
|
+
"agent",
|
|
4581
|
+
"controller"
|
|
4582
|
+
]
|
|
5299
4583
|
}
|
|
5300
4584
|
},
|
|
5301
4585
|
required: [
|
|
5302
4586
|
"schemaVersion",
|
|
5303
|
-
"
|
|
5304
|
-
"
|
|
5305
|
-
"
|
|
4587
|
+
"clusterId",
|
|
4588
|
+
"inviteId",
|
|
4589
|
+
"secret",
|
|
4590
|
+
"deviceId",
|
|
4591
|
+
"devicePublicKey",
|
|
4592
|
+
"requestId",
|
|
4593
|
+
"displayName",
|
|
4594
|
+
"signature",
|
|
4595
|
+
"platform",
|
|
4596
|
+
"kind"
|
|
5306
4597
|
],
|
|
5307
4598
|
additionalProperties: false
|
|
5308
4599
|
},
|
|
5309
|
-
|
|
4600
|
+
DeviceMembershipProof: {
|
|
5310
4601
|
type: "object",
|
|
5311
4602
|
properties: {
|
|
4603
|
+
version: {
|
|
4604
|
+
const: 1
|
|
4605
|
+
},
|
|
4606
|
+
clusterId: {
|
|
4607
|
+
type: "string",
|
|
4608
|
+
minLength: 1,
|
|
4609
|
+
maxLength: 4096
|
|
4610
|
+
},
|
|
5312
4611
|
deviceId: {
|
|
5313
4612
|
type: "string",
|
|
5314
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
5315
4613
|
minLength: 1,
|
|
5316
|
-
maxLength:
|
|
4614
|
+
maxLength: 4096
|
|
5317
4615
|
},
|
|
5318
4616
|
admissionId: {
|
|
5319
4617
|
type: "string",
|
|
5320
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
5321
4618
|
minLength: 1,
|
|
5322
|
-
maxLength:
|
|
4619
|
+
maxLength: 4096
|
|
5323
4620
|
},
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
]
|
|
4621
|
+
issuerDeviceId: {
|
|
4622
|
+
type: "string",
|
|
4623
|
+
minLength: 1,
|
|
4624
|
+
maxLength: 4096
|
|
5329
4625
|
},
|
|
5330
|
-
|
|
4626
|
+
issuerAdmissionId: {
|
|
5331
4627
|
type: "string",
|
|
5332
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
5333
4628
|
minLength: 1,
|
|
5334
|
-
maxLength:
|
|
4629
|
+
maxLength: 4096
|
|
5335
4630
|
},
|
|
5336
|
-
|
|
4631
|
+
memberVersion: {
|
|
5337
4632
|
type: "integer",
|
|
5338
4633
|
minimum: 0,
|
|
5339
4634
|
maximum: 9007199254740991
|
|
5340
4635
|
},
|
|
5341
|
-
|
|
4636
|
+
issuedAt: {
|
|
4637
|
+
type: "integer",
|
|
4638
|
+
minimum: 0,
|
|
4639
|
+
maximum: 9007199254740991
|
|
4640
|
+
},
|
|
4641
|
+
expiresAt: {
|
|
4642
|
+
type: "integer",
|
|
4643
|
+
minimum: 0,
|
|
4644
|
+
maximum: 9007199254740991
|
|
4645
|
+
},
|
|
4646
|
+
signature: {
|
|
5342
4647
|
type: "string",
|
|
5343
|
-
|
|
5344
|
-
|
|
4648
|
+
pattern: "^[A-Za-z0-9_-]+$",
|
|
4649
|
+
minLength: 86,
|
|
4650
|
+
maxLength: 86
|
|
4651
|
+
},
|
|
4652
|
+
devicePublicKey: {
|
|
4653
|
+
type: "string",
|
|
4654
|
+
pattern: "^[A-Za-z0-9_-]+$",
|
|
4655
|
+
minLength: 43,
|
|
4656
|
+
maxLength: 43
|
|
5345
4657
|
}
|
|
5346
4658
|
},
|
|
5347
4659
|
required: [
|
|
4660
|
+
"version",
|
|
4661
|
+
"clusterId",
|
|
5348
4662
|
"deviceId",
|
|
5349
4663
|
"admissionId",
|
|
5350
|
-
"
|
|
5351
|
-
"
|
|
5352
|
-
"
|
|
4664
|
+
"issuerDeviceId",
|
|
4665
|
+
"issuerAdmissionId",
|
|
4666
|
+
"devicePublicKey",
|
|
4667
|
+
"memberVersion",
|
|
4668
|
+
"issuedAt",
|
|
4669
|
+
"expiresAt",
|
|
4670
|
+
"signature"
|
|
5353
4671
|
],
|
|
5354
4672
|
additionalProperties: false
|
|
5355
4673
|
},
|
|
5356
|
-
|
|
4674
|
+
DeviceJoinResult: {
|
|
5357
4675
|
type: "object",
|
|
5358
4676
|
properties: {
|
|
5359
4677
|
schemaVersion: {
|
|
5360
4678
|
const: 1
|
|
5361
4679
|
},
|
|
5362
|
-
|
|
4680
|
+
admissionId: {
|
|
5363
4681
|
type: "string",
|
|
5364
4682
|
pattern: "^[A-Za-z0-9_-]+$",
|
|
5365
4683
|
minLength: 1,
|
|
5366
4684
|
maxLength: 128
|
|
5367
4685
|
},
|
|
5368
|
-
revision: {
|
|
5369
|
-
type: "integer",
|
|
5370
|
-
minimum: 0,
|
|
5371
|
-
maximum: 9007199254740991
|
|
5372
|
-
},
|
|
5373
4686
|
members: {
|
|
5374
|
-
$ref: "#/$defs/
|
|
4687
|
+
$ref: "#/$defs/DeviceMemberSnapshot"
|
|
5375
4688
|
},
|
|
5376
4689
|
directory: {
|
|
5377
|
-
$ref: "#/$defs/
|
|
4690
|
+
$ref: "#/$defs/DeviceDirectorySnapshot"
|
|
4691
|
+
},
|
|
4692
|
+
proof: {
|
|
4693
|
+
$ref: "#/$defs/DeviceMembershipProof"
|
|
5378
4694
|
}
|
|
5379
4695
|
},
|
|
5380
4696
|
required: [
|
|
5381
4697
|
"schemaVersion",
|
|
5382
|
-
"
|
|
5383
|
-
"revision",
|
|
4698
|
+
"admissionId",
|
|
5384
4699
|
"members",
|
|
5385
|
-
"directory"
|
|
4700
|
+
"directory",
|
|
4701
|
+
"proof"
|
|
5386
4702
|
],
|
|
5387
4703
|
additionalProperties: false
|
|
5388
4704
|
},
|
|
5389
|
-
|
|
4705
|
+
MemberRemovalRequest: {
|
|
5390
4706
|
type: "object",
|
|
5391
4707
|
properties: {
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
type: "integer",
|
|
5397
|
-
minimum: 0,
|
|
5398
|
-
maximum: 9007199254740991
|
|
5399
|
-
},
|
|
5400
|
-
presence: {
|
|
5401
|
-
type: "boolean"
|
|
4708
|
+
admissionId: {
|
|
4709
|
+
type: "string",
|
|
4710
|
+
minLength: 1,
|
|
4711
|
+
maxLength: 128
|
|
5402
4712
|
}
|
|
5403
4713
|
},
|
|
5404
4714
|
required: [
|
|
5405
|
-
"
|
|
5406
|
-
"revision",
|
|
5407
|
-
"presence"
|
|
4715
|
+
"admissionId"
|
|
5408
4716
|
],
|
|
5409
4717
|
additionalProperties: false
|
|
5410
4718
|
},
|
|
5411
|
-
|
|
4719
|
+
MemberRemovalResult: {
|
|
5412
4720
|
type: "object",
|
|
5413
4721
|
properties: {
|
|
5414
|
-
|
|
5415
|
-
|
|
4722
|
+
target: {
|
|
4723
|
+
$ref: "#/$defs/DeviceTargetRef"
|
|
5416
4724
|
},
|
|
5417
|
-
|
|
5418
|
-
type: "
|
|
5419
|
-
pattern: "^[A-Za-z0-9_-]+$",
|
|
5420
|
-
minLength: 1,
|
|
5421
|
-
maxLength: 128
|
|
4725
|
+
nativeRemoved: {
|
|
4726
|
+
type: "boolean"
|
|
5422
4727
|
},
|
|
5423
|
-
|
|
5424
|
-
type: "
|
|
5425
|
-
|
|
5426
|
-
|
|
4728
|
+
localStopped: {
|
|
4729
|
+
type: "boolean"
|
|
4730
|
+
},
|
|
4731
|
+
revoked: {
|
|
4732
|
+
type: "boolean"
|
|
4733
|
+
},
|
|
4734
|
+
error: {
|
|
4735
|
+
$ref: "#/$defs/ApiError"
|
|
5427
4736
|
}
|
|
5428
4737
|
},
|
|
5429
4738
|
required: [
|
|
5430
|
-
"
|
|
5431
|
-
"
|
|
5432
|
-
"
|
|
4739
|
+
"target",
|
|
4740
|
+
"nativeRemoved",
|
|
4741
|
+
"localStopped",
|
|
4742
|
+
"revoked"
|
|
5433
4743
|
],
|
|
5434
4744
|
additionalProperties: false
|
|
5435
4745
|
},
|
|
5436
|
-
|
|
5437
|
-
type: "string",
|
|
5438
|
-
maxLength: 128,
|
|
5439
|
-
pattern: "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z.-]+)?(\\+[0-9A-Za-z.-]+)?$"
|
|
5440
|
-
},
|
|
5441
|
-
PluginUpdateInfo: {
|
|
4746
|
+
ManagementService: {
|
|
5442
4747
|
type: "object",
|
|
5443
4748
|
additionalProperties: false,
|
|
5444
|
-
required: [
|
|
5445
|
-
"state"
|
|
5446
|
-
],
|
|
5447
4749
|
properties: {
|
|
5448
|
-
|
|
4750
|
+
serviceName: {
|
|
5449
4751
|
enum: [
|
|
5450
|
-
"
|
|
5451
|
-
"
|
|
5452
|
-
"
|
|
5453
|
-
"unsupported",
|
|
5454
|
-
"unavailable",
|
|
5455
|
-
"upgrading",
|
|
5456
|
-
"restart-required",
|
|
5457
|
-
"failed",
|
|
5458
|
-
"restored"
|
|
4752
|
+
"dsh",
|
|
4753
|
+
"metadata",
|
|
4754
|
+
"etcd"
|
|
5459
4755
|
]
|
|
5460
4756
|
},
|
|
5461
|
-
|
|
5462
|
-
|
|
4757
|
+
remoteEnabled: {
|
|
4758
|
+
type: "boolean"
|
|
5463
4759
|
},
|
|
5464
|
-
|
|
4760
|
+
dshVersion: {
|
|
5465
4761
|
type: "string",
|
|
5466
4762
|
minLength: 1,
|
|
5467
|
-
maxLength:
|
|
5468
|
-
},
|
|
5469
|
-
message: {
|
|
5470
|
-
type: "string",
|
|
5471
|
-
maxLength: 512
|
|
4763
|
+
maxLength: 128
|
|
5472
4764
|
},
|
|
5473
|
-
checkedAt: {
|
|
5474
|
-
type: "integer",
|
|
5475
|
-
minimum: 0,
|
|
5476
|
-
maximum: 9007199254740991
|
|
5477
|
-
}
|
|
5478
|
-
}
|
|
5479
|
-
},
|
|
5480
|
-
PluginReport: {
|
|
5481
|
-
type: "object",
|
|
5482
|
-
additionalProperties: false,
|
|
5483
|
-
required: [
|
|
5484
|
-
"pluginVersion"
|
|
5485
|
-
],
|
|
5486
|
-
properties: {
|
|
5487
4765
|
pluginVersion: {
|
|
5488
4766
|
$ref: "#/$defs/PluginVersion"
|
|
5489
|
-
},
|
|
5490
|
-
pluginUpdate: {
|
|
5491
|
-
$ref: "#/$defs/PluginUpdateInfo"
|
|
5492
4767
|
}
|
|
5493
|
-
}
|
|
4768
|
+
},
|
|
4769
|
+
required: [
|
|
4770
|
+
"serviceName"
|
|
4771
|
+
]
|
|
5494
4772
|
},
|
|
5495
|
-
|
|
4773
|
+
RoleTransition: {
|
|
5496
4774
|
type: "object",
|
|
5497
4775
|
properties: {
|
|
5498
4776
|
operationId: {
|
|
5499
4777
|
type: "string",
|
|
5500
4778
|
minLength: 1,
|
|
5501
|
-
maxLength:
|
|
4779
|
+
maxLength: 128
|
|
5502
4780
|
},
|
|
5503
4781
|
target: {
|
|
5504
|
-
$ref: "#/$defs/
|
|
4782
|
+
$ref: "#/$defs/DeviceTargetRef"
|
|
5505
4783
|
},
|
|
5506
4784
|
admissionId: {
|
|
5507
4785
|
type: "string",
|
|
5508
4786
|
minLength: 1,
|
|
5509
|
-
maxLength:
|
|
5510
|
-
},
|
|
5511
|
-
enabled: {
|
|
5512
|
-
type: "boolean"
|
|
4787
|
+
maxLength: 128
|
|
5513
4788
|
},
|
|
5514
|
-
|
|
4789
|
+
role: {
|
|
5515
4790
|
enum: [
|
|
5516
|
-
"
|
|
5517
|
-
"
|
|
5518
|
-
"waiting",
|
|
5519
|
-
"succeeded",
|
|
5520
|
-
"failed"
|
|
4791
|
+
"agent",
|
|
4792
|
+
"manager"
|
|
5521
4793
|
]
|
|
5522
4794
|
},
|
|
5523
|
-
|
|
4795
|
+
phase: {
|
|
5524
4796
|
enum: [
|
|
5525
4797
|
"accepted",
|
|
5526
4798
|
"preparing",
|
|
5527
|
-
"adding-learner",
|
|
5528
4799
|
"starting",
|
|
5529
4800
|
"syncing",
|
|
4801
|
+
"synced",
|
|
5530
4802
|
"promoting",
|
|
5531
|
-
"verifying",
|
|
5532
4803
|
"removing",
|
|
5533
|
-
"
|
|
5534
|
-
"
|
|
4804
|
+
"stopping",
|
|
4805
|
+
"completed",
|
|
4806
|
+
"failed"
|
|
5535
4807
|
]
|
|
5536
4808
|
},
|
|
5537
|
-
|
|
4809
|
+
startedAt: {
|
|
5538
4810
|
type: "integer",
|
|
5539
|
-
minimum:
|
|
5540
|
-
maximum: 9007199254740991
|
|
4811
|
+
minimum: 0
|
|
5541
4812
|
},
|
|
5542
4813
|
updatedAt: {
|
|
5543
4814
|
type: "integer",
|
|
5544
|
-
minimum: 0
|
|
5545
|
-
|
|
4815
|
+
minimum: 0
|
|
4816
|
+
},
|
|
4817
|
+
elapsedMs: {
|
|
4818
|
+
type: "integer",
|
|
4819
|
+
minimum: 0
|
|
4820
|
+
},
|
|
4821
|
+
result: {
|
|
4822
|
+
$ref: "#/$defs/MemberRoleResult"
|
|
5546
4823
|
},
|
|
5547
4824
|
error: {
|
|
5548
4825
|
$ref: "#/$defs/ApiError"
|
|
4826
|
+
},
|
|
4827
|
+
revision: {
|
|
4828
|
+
type: "integer",
|
|
4829
|
+
minimum: 0,
|
|
4830
|
+
maximum: 9007199254740991
|
|
5549
4831
|
}
|
|
5550
4832
|
},
|
|
5551
4833
|
required: [
|
|
5552
4834
|
"operationId",
|
|
5553
4835
|
"target",
|
|
5554
4836
|
"admissionId",
|
|
5555
|
-
"
|
|
5556
|
-
"
|
|
5557
|
-
"
|
|
5558
|
-
"
|
|
5559
|
-
"
|
|
5560
|
-
],
|
|
5561
|
-
additionalProperties: false
|
|
5562
|
-
},
|
|
5563
|
-
RenameMemberRequest: {
|
|
5564
|
-
type: "object",
|
|
5565
|
-
properties: {
|
|
5566
|
-
schemaVersion: {
|
|
5567
|
-
const: 1
|
|
5568
|
-
},
|
|
5569
|
-
principal: {
|
|
5570
|
-
$ref: "#/$defs/Principal"
|
|
5571
|
-
},
|
|
5572
|
-
displayName: {
|
|
5573
|
-
type: "string",
|
|
5574
|
-
minLength: 1,
|
|
5575
|
-
maxLength: 256
|
|
5576
|
-
}
|
|
5577
|
-
},
|
|
5578
|
-
required: [
|
|
5579
|
-
"schemaVersion",
|
|
5580
|
-
"principal",
|
|
5581
|
-
"displayName"
|
|
4837
|
+
"role",
|
|
4838
|
+
"phase",
|
|
4839
|
+
"startedAt",
|
|
4840
|
+
"updatedAt",
|
|
4841
|
+
"elapsedMs"
|
|
5582
4842
|
],
|
|
5583
4843
|
additionalProperties: false
|
|
5584
4844
|
}
|
|
@@ -5588,7 +4848,7 @@ var cluster_schema_default = {
|
|
|
5588
4848
|
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/Invite"
|
|
5589
4849
|
},
|
|
5590
4850
|
{
|
|
5591
|
-
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/
|
|
4851
|
+
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/DeviceMembershipProof"
|
|
5592
4852
|
}
|
|
5593
4853
|
]
|
|
5594
4854
|
};
|
|
@@ -5607,7 +4867,7 @@ var notice_schema_default = {
|
|
|
5607
4867
|
maxLength: 4096
|
|
5608
4868
|
},
|
|
5609
4869
|
target: {
|
|
5610
|
-
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/
|
|
4870
|
+
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/DeviceTargetRef"
|
|
5611
4871
|
},
|
|
5612
4872
|
sessionId: {
|
|
5613
4873
|
type: "string",
|
|
@@ -5631,6 +4891,10 @@ var notice_schema_default = {
|
|
|
5631
4891
|
type: "string",
|
|
5632
4892
|
minLength: 1,
|
|
5633
4893
|
maxLength: 4096
|
|
4894
|
+
},
|
|
4895
|
+
sessionTitle: {
|
|
4896
|
+
type: "string",
|
|
4897
|
+
maxLength: 256
|
|
5634
4898
|
}
|
|
5635
4899
|
},
|
|
5636
4900
|
required: [
|
|
@@ -5653,7 +4917,7 @@ var notice_schema_default = {
|
|
|
5653
4917
|
maxLength: 4096
|
|
5654
4918
|
},
|
|
5655
4919
|
target: {
|
|
5656
|
-
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/
|
|
4920
|
+
$ref: "https://dsh-remote.local/contracts/v1/cluster.schema.json#/$defs/DeviceTargetRef"
|
|
5657
4921
|
},
|
|
5658
4922
|
sessionId: {
|
|
5659
4923
|
type: "string",
|
|
@@ -5679,6 +4943,10 @@ var notice_schema_default = {
|
|
|
5679
4943
|
"failed",
|
|
5680
4944
|
"cancelled"
|
|
5681
4945
|
]
|
|
4946
|
+
},
|
|
4947
|
+
sessionTitle: {
|
|
4948
|
+
type: "string",
|
|
4949
|
+
maxLength: 256
|
|
5682
4950
|
}
|
|
5683
4951
|
},
|
|
5684
4952
|
required: [
|
|
@@ -5700,121 +4968,9 @@ var notification_schema_default = {
|
|
|
5700
4968
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
5701
4969
|
$id: "https://dsh-remote.local/contracts/v1/notification.schema.json",
|
|
5702
4970
|
$defs: {
|
|
5703
|
-
|
|
4971
|
+
NotificationToken: {
|
|
5704
4972
|
type: "object",
|
|
5705
4973
|
properties: {
|
|
5706
|
-
version: {
|
|
5707
|
-
const: 1
|
|
5708
|
-
},
|
|
5709
|
-
purpose: {
|
|
5710
|
-
const: "notification-phone-register/v1"
|
|
5711
|
-
},
|
|
5712
|
-
actor: {
|
|
5713
|
-
type: "object",
|
|
5714
|
-
properties: {
|
|
5715
|
-
clusterId: {
|
|
5716
|
-
type: "string",
|
|
5717
|
-
minLength: 1,
|
|
5718
|
-
maxLength: 128,
|
|
5719
|
-
pattern: "^[A-Za-z0-9._~-]+$"
|
|
5720
|
-
},
|
|
5721
|
-
deviceId: {
|
|
5722
|
-
type: "string",
|
|
5723
|
-
minLength: 1,
|
|
5724
|
-
maxLength: 128,
|
|
5725
|
-
pattern: "^[A-Za-z0-9._~-]+$"
|
|
5726
|
-
},
|
|
5727
|
-
admissionId: {
|
|
5728
|
-
type: "string",
|
|
5729
|
-
minLength: 1,
|
|
5730
|
-
maxLength: 128,
|
|
5731
|
-
pattern: "^[A-Za-z0-9._~-]+$"
|
|
5732
|
-
}
|
|
5733
|
-
},
|
|
5734
|
-
required: [
|
|
5735
|
-
"clusterId",
|
|
5736
|
-
"deviceId",
|
|
5737
|
-
"admissionId"
|
|
5738
|
-
],
|
|
5739
|
-
additionalProperties: false
|
|
5740
|
-
},
|
|
5741
|
-
phonePublicKey: {
|
|
5742
|
-
type: "string",
|
|
5743
|
-
pattern: "^[A-Za-z0-9_-]{43}$"
|
|
5744
|
-
},
|
|
5745
|
-
initialMembers: {
|
|
5746
|
-
type: "object",
|
|
5747
|
-
properties: {
|
|
5748
|
-
clusterId: {
|
|
5749
|
-
type: "string",
|
|
5750
|
-
minLength: 1,
|
|
5751
|
-
maxLength: 128,
|
|
5752
|
-
pattern: "^[A-Za-z0-9._~-]+$"
|
|
5753
|
-
},
|
|
5754
|
-
revision: {
|
|
5755
|
-
type: "integer",
|
|
5756
|
-
minimum: 1,
|
|
5757
|
-
maximum: 9007199254740991
|
|
5758
|
-
},
|
|
5759
|
-
readAt: {
|
|
5760
|
-
type: "integer",
|
|
5761
|
-
minimum: 1,
|
|
5762
|
-
maximum: 9007199254740991
|
|
5763
|
-
},
|
|
5764
|
-
members: {
|
|
5765
|
-
type: "array",
|
|
5766
|
-
minItems: 1,
|
|
5767
|
-
maxItems: 1024,
|
|
5768
|
-
items: {
|
|
5769
|
-
type: "object",
|
|
5770
|
-
properties: {
|
|
5771
|
-
deviceId: {
|
|
5772
|
-
type: "string",
|
|
5773
|
-
minLength: 1,
|
|
5774
|
-
maxLength: 128,
|
|
5775
|
-
pattern: "^[A-Za-z0-9._~-]+$"
|
|
5776
|
-
},
|
|
5777
|
-
admissionId: {
|
|
5778
|
-
type: "string",
|
|
5779
|
-
minLength: 1,
|
|
5780
|
-
maxLength: 128,
|
|
5781
|
-
pattern: "^[A-Za-z0-9._~-]+$"
|
|
5782
|
-
},
|
|
5783
|
-
publicKey: {
|
|
5784
|
-
type: "string",
|
|
5785
|
-
pattern: "^[A-Za-z0-9_-]{43}$"
|
|
5786
|
-
},
|
|
5787
|
-
memberVersion: {
|
|
5788
|
-
type: "integer",
|
|
5789
|
-
minimum: 1,
|
|
5790
|
-
maximum: 9007199254740991
|
|
5791
|
-
},
|
|
5792
|
-
status: {
|
|
5793
|
-
enum: [
|
|
5794
|
-
"active",
|
|
5795
|
-
"revoked"
|
|
5796
|
-
]
|
|
5797
|
-
}
|
|
5798
|
-
},
|
|
5799
|
-
required: [
|
|
5800
|
-
"deviceId",
|
|
5801
|
-
"admissionId",
|
|
5802
|
-
"publicKey",
|
|
5803
|
-
"memberVersion",
|
|
5804
|
-
"status"
|
|
5805
|
-
],
|
|
5806
|
-
additionalProperties: false
|
|
5807
|
-
}
|
|
5808
|
-
}
|
|
5809
|
-
},
|
|
5810
|
-
required: [
|
|
5811
|
-
"clusterId",
|
|
5812
|
-
"revision",
|
|
5813
|
-
"readAt",
|
|
5814
|
-
"members"
|
|
5815
|
-
],
|
|
5816
|
-
additionalProperties: false
|
|
5817
|
-
},
|
|
5818
4974
|
provider: {
|
|
5819
4975
|
enum: [
|
|
5820
4976
|
"apns",
|
|
@@ -5824,7 +4980,7 @@ var notification_schema_default = {
|
|
|
5824
4980
|
token: {
|
|
5825
4981
|
type: "string",
|
|
5826
4982
|
minLength: 1,
|
|
5827
|
-
maxLength:
|
|
4983
|
+
maxLength: 8192
|
|
5828
4984
|
},
|
|
5829
4985
|
preferences: {
|
|
5830
4986
|
type: "object",
|
|
@@ -5844,18 +5000,13 @@ var notification_schema_default = {
|
|
|
5844
5000
|
}
|
|
5845
5001
|
},
|
|
5846
5002
|
required: [
|
|
5847
|
-
"version",
|
|
5848
|
-
"purpose",
|
|
5849
|
-
"actor",
|
|
5850
|
-
"phonePublicKey",
|
|
5851
|
-
"initialMembers",
|
|
5852
5003
|
"provider",
|
|
5853
5004
|
"token",
|
|
5854
5005
|
"preferences"
|
|
5855
5006
|
],
|
|
5856
5007
|
additionalProperties: false
|
|
5857
5008
|
},
|
|
5858
|
-
|
|
5009
|
+
PushRequest: {
|
|
5859
5010
|
type: "object",
|
|
5860
5011
|
properties: {
|
|
5861
5012
|
provider: {
|
|
@@ -5867,247 +5018,143 @@ var notification_schema_default = {
|
|
|
5867
5018
|
token: {
|
|
5868
5019
|
type: "string",
|
|
5869
5020
|
minLength: 1,
|
|
5870
|
-
maxLength:
|
|
5871
|
-
}
|
|
5872
|
-
},
|
|
5873
|
-
required: [
|
|
5874
|
-
"provider",
|
|
5875
|
-
"token"
|
|
5876
|
-
],
|
|
5877
|
-
additionalProperties: false
|
|
5878
|
-
},
|
|
5879
|
-
PhonePreferences: {
|
|
5880
|
-
type: "object",
|
|
5881
|
-
properties: {
|
|
5882
|
-
approvalWaiting: {
|
|
5883
|
-
type: "boolean"
|
|
5021
|
+
maxLength: 8192
|
|
5884
5022
|
},
|
|
5885
|
-
|
|
5886
|
-
type: "boolean"
|
|
5887
|
-
}
|
|
5888
|
-
},
|
|
5889
|
-
required: [
|
|
5890
|
-
"approvalWaiting",
|
|
5891
|
-
"sessionIdle"
|
|
5892
|
-
],
|
|
5893
|
-
additionalProperties: false
|
|
5894
|
-
},
|
|
5895
|
-
MemberRegistration: {
|
|
5896
|
-
type: "object",
|
|
5897
|
-
properties: {
|
|
5898
|
-
recipientId: {
|
|
5023
|
+
eventId: {
|
|
5899
5024
|
type: "string",
|
|
5900
|
-
|
|
5025
|
+
minLength: 1,
|
|
5026
|
+
maxLength: 128
|
|
5901
5027
|
},
|
|
5902
|
-
|
|
5903
|
-
|
|
5028
|
+
kind: {
|
|
5029
|
+
enum: [
|
|
5030
|
+
"approval-waiting",
|
|
5031
|
+
"session-idle"
|
|
5032
|
+
]
|
|
5904
5033
|
},
|
|
5905
|
-
|
|
5906
|
-
$ref: "
|
|
5034
|
+
source: {
|
|
5035
|
+
$ref: "cluster.schema.json#/$defs/DeviceTargetRef"
|
|
5907
5036
|
},
|
|
5908
|
-
|
|
5037
|
+
sessionId: {
|
|
5909
5038
|
type: "string",
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
},
|
|
5915
|
-
required: [
|
|
5916
|
-
"recipientId",
|
|
5917
|
-
"purpose",
|
|
5918
|
-
"proof",
|
|
5919
|
-
"notificationSignature"
|
|
5920
|
-
],
|
|
5921
|
-
additionalProperties: false
|
|
5922
|
-
},
|
|
5923
|
-
MemberRevocation: {
|
|
5924
|
-
type: "object",
|
|
5925
|
-
properties: {
|
|
5926
|
-
recipientId: {
|
|
5039
|
+
minLength: 1,
|
|
5040
|
+
maxLength: 4096
|
|
5041
|
+
},
|
|
5042
|
+
runId: {
|
|
5927
5043
|
type: "string",
|
|
5928
|
-
|
|
5044
|
+
minLength: 1,
|
|
5045
|
+
maxLength: 128
|
|
5929
5046
|
},
|
|
5930
|
-
|
|
5931
|
-
type: "
|
|
5932
|
-
|
|
5933
|
-
clusterId: {
|
|
5934
|
-
type: "string",
|
|
5935
|
-
minLength: 1,
|
|
5936
|
-
maxLength: 128,
|
|
5937
|
-
pattern: "^[A-Za-z0-9._~-]+$"
|
|
5938
|
-
},
|
|
5939
|
-
deviceId: {
|
|
5940
|
-
type: "string",
|
|
5941
|
-
minLength: 1,
|
|
5942
|
-
maxLength: 128,
|
|
5943
|
-
pattern: "^[A-Za-z0-9._~-]+$"
|
|
5944
|
-
},
|
|
5945
|
-
admissionId: {
|
|
5946
|
-
type: "string",
|
|
5947
|
-
minLength: 1,
|
|
5948
|
-
maxLength: 128,
|
|
5949
|
-
pattern: "^[A-Za-z0-9._~-]+$"
|
|
5950
|
-
}
|
|
5951
|
-
},
|
|
5952
|
-
required: [
|
|
5953
|
-
"clusterId",
|
|
5954
|
-
"deviceId",
|
|
5955
|
-
"admissionId"
|
|
5956
|
-
],
|
|
5957
|
-
additionalProperties: false
|
|
5047
|
+
sessionTitle: {
|
|
5048
|
+
type: "string",
|
|
5049
|
+
maxLength: 256
|
|
5958
5050
|
},
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5051
|
+
outcome: {
|
|
5052
|
+
enum: [
|
|
5053
|
+
"completed",
|
|
5054
|
+
"failed",
|
|
5055
|
+
"cancelled"
|
|
5056
|
+
]
|
|
5963
5057
|
}
|
|
5964
5058
|
},
|
|
5965
5059
|
required: [
|
|
5966
|
-
"
|
|
5967
|
-
"
|
|
5968
|
-
"
|
|
5060
|
+
"provider",
|
|
5061
|
+
"token",
|
|
5062
|
+
"eventId",
|
|
5063
|
+
"kind",
|
|
5064
|
+
"source",
|
|
5065
|
+
"sessionId",
|
|
5066
|
+
"runId"
|
|
5969
5067
|
],
|
|
5970
5068
|
additionalProperties: false
|
|
5971
5069
|
},
|
|
5972
|
-
|
|
5973
|
-
type: "object",
|
|
5974
|
-
properties: {},
|
|
5975
|
-
required: [],
|
|
5976
|
-
additionalProperties: false
|
|
5977
|
-
},
|
|
5978
|
-
NotificationSubmission: {
|
|
5070
|
+
PushResult: {
|
|
5979
5071
|
type: "object",
|
|
5980
5072
|
properties: {
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5073
|
+
status: {
|
|
5074
|
+
enum: [
|
|
5075
|
+
"accepted",
|
|
5076
|
+
"retryable",
|
|
5077
|
+
"invalid-token",
|
|
5078
|
+
"permanent-error"
|
|
5079
|
+
]
|
|
5987
5080
|
}
|
|
5988
5081
|
},
|
|
5989
5082
|
required: [
|
|
5990
|
-
"
|
|
5991
|
-
"notice"
|
|
5083
|
+
"status"
|
|
5992
5084
|
],
|
|
5993
5085
|
additionalProperties: false
|
|
5994
5086
|
},
|
|
5995
|
-
|
|
5087
|
+
NotificationIntentPayload: {
|
|
5996
5088
|
type: "object",
|
|
5997
5089
|
properties: {
|
|
5998
|
-
|
|
5090
|
+
eventId: {
|
|
5999
5091
|
type: "string",
|
|
6000
|
-
|
|
5092
|
+
minLength: 1,
|
|
5093
|
+
maxLength: 128
|
|
6001
5094
|
},
|
|
6002
|
-
|
|
5095
|
+
kind: {
|
|
5096
|
+
enum: [
|
|
5097
|
+
"approval-waiting",
|
|
5098
|
+
"session-idle"
|
|
5099
|
+
]
|
|
5100
|
+
},
|
|
5101
|
+
source: {
|
|
5102
|
+
$ref: "cluster.schema.json#/$defs/DeviceTargetRef"
|
|
5103
|
+
},
|
|
5104
|
+
sessionId: {
|
|
6003
5105
|
type: "string",
|
|
6004
5106
|
minLength: 1,
|
|
6005
5107
|
maxLength: 4096
|
|
5108
|
+
},
|
|
5109
|
+
runId: {
|
|
5110
|
+
type: "string",
|
|
5111
|
+
minLength: 1,
|
|
5112
|
+
maxLength: 128
|
|
6006
5113
|
}
|
|
6007
5114
|
},
|
|
6008
5115
|
required: [
|
|
6009
|
-
"
|
|
6010
|
-
"
|
|
5116
|
+
"eventId",
|
|
5117
|
+
"kind",
|
|
5118
|
+
"source",
|
|
5119
|
+
"sessionId",
|
|
5120
|
+
"runId"
|
|
6011
5121
|
],
|
|
6012
5122
|
additionalProperties: false
|
|
6013
5123
|
},
|
|
6014
|
-
|
|
5124
|
+
NotificationLink: {
|
|
6015
5125
|
type: "object",
|
|
6016
5126
|
properties: {
|
|
6017
5127
|
eventId: {
|
|
6018
5128
|
type: "string",
|
|
6019
5129
|
minLength: 1,
|
|
6020
|
-
maxLength:
|
|
6021
|
-
},
|
|
6022
|
-
state: {
|
|
6023
|
-
enum: [
|
|
6024
|
-
"pending",
|
|
6025
|
-
"accepted",
|
|
6026
|
-
"expired"
|
|
6027
|
-
]
|
|
6028
|
-
},
|
|
6029
|
-
reason: {
|
|
6030
|
-
enum: [
|
|
6031
|
-
"deadline",
|
|
6032
|
-
"preference-disabled"
|
|
6033
|
-
]
|
|
6034
|
-
},
|
|
6035
|
-
provider: {
|
|
6036
|
-
enum: [
|
|
6037
|
-
"apns",
|
|
6038
|
-
"fcm"
|
|
6039
|
-
]
|
|
5130
|
+
maxLength: 128
|
|
6040
5131
|
},
|
|
6041
|
-
|
|
5132
|
+
kind: {
|
|
6042
5133
|
enum: [
|
|
6043
|
-
"
|
|
6044
|
-
"
|
|
6045
|
-
"invalid-token",
|
|
6046
|
-
"permanent-error"
|
|
5134
|
+
"approval-waiting",
|
|
5135
|
+
"session-idle"
|
|
6047
5136
|
]
|
|
6048
5137
|
},
|
|
6049
|
-
|
|
5138
|
+
sessionId: {
|
|
6050
5139
|
type: "string",
|
|
6051
5140
|
minLength: 1,
|
|
6052
|
-
maxLength:
|
|
6053
|
-
pattern: "^[A-Za-z0-9._:%-]+$"
|
|
6054
|
-
}
|
|
6055
|
-
},
|
|
6056
|
-
required: [
|
|
6057
|
-
"eventId",
|
|
6058
|
-
"state"
|
|
6059
|
-
],
|
|
6060
|
-
additionalProperties: false,
|
|
6061
|
-
allOf: [
|
|
6062
|
-
{
|
|
6063
|
-
if: {
|
|
6064
|
-
required: [
|
|
6065
|
-
"reason"
|
|
6066
|
-
]
|
|
6067
|
-
},
|
|
6068
|
-
then: {
|
|
6069
|
-
properties: {
|
|
6070
|
-
state: {
|
|
6071
|
-
const: "expired"
|
|
6072
|
-
}
|
|
6073
|
-
}
|
|
6074
|
-
}
|
|
5141
|
+
maxLength: 4096
|
|
6075
5142
|
},
|
|
6076
|
-
{
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
const: "accepted"
|
|
6081
|
-
}
|
|
6082
|
-
}
|
|
6083
|
-
},
|
|
6084
|
-
then: {
|
|
6085
|
-
required: [
|
|
6086
|
-
"provider",
|
|
6087
|
-
"result"
|
|
6088
|
-
],
|
|
6089
|
-
properties: {
|
|
6090
|
-
result: {
|
|
6091
|
-
const: "accepted"
|
|
6092
|
-
}
|
|
6093
|
-
}
|
|
6094
|
-
}
|
|
6095
|
-
}
|
|
6096
|
-
]
|
|
6097
|
-
},
|
|
6098
|
-
NotificationResolvedNotice: {
|
|
6099
|
-
type: "object",
|
|
6100
|
-
properties: {
|
|
6101
|
-
notice: {
|
|
6102
|
-
$ref: "https://dsh-remote.local/contracts/v1/notice.schema.json"
|
|
5143
|
+
runId: {
|
|
5144
|
+
type: "string",
|
|
5145
|
+
minLength: 1,
|
|
5146
|
+
maxLength: 128
|
|
6103
5147
|
},
|
|
6104
|
-
|
|
6105
|
-
$ref: "#/$defs/
|
|
5148
|
+
target: {
|
|
5149
|
+
$ref: "cluster.schema.json#/$defs/DeviceTargetRef"
|
|
6106
5150
|
}
|
|
6107
5151
|
},
|
|
6108
5152
|
required: [
|
|
6109
|
-
"
|
|
6110
|
-
"
|
|
5153
|
+
"eventId",
|
|
5154
|
+
"kind",
|
|
5155
|
+
"target",
|
|
5156
|
+
"sessionId",
|
|
5157
|
+
"runId"
|
|
6111
5158
|
],
|
|
6112
5159
|
additionalProperties: false
|
|
6113
5160
|
}
|
|
@@ -6137,6 +5184,7 @@ function parseIpc(input) {
|
|
|
6137
5184
|
import { spawn } from "node:child_process";
|
|
6138
5185
|
import { createHash as createHash2, randomUUID as randomUUID2 } from "node:crypto";
|
|
6139
5186
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
5187
|
+
import { Agent } from "undici";
|
|
6140
5188
|
var maxBytes = 1048576;
|
|
6141
5189
|
var resources = {
|
|
6142
5190
|
initialize: "initialize",
|
|
@@ -6148,14 +5196,13 @@ var resources = {
|
|
|
6148
5196
|
createCluster: "cluster/create",
|
|
6149
5197
|
createInvite: "cluster/invites",
|
|
6150
5198
|
join: "cluster/join",
|
|
6151
|
-
|
|
5199
|
+
removeMember: "cluster/members/remove",
|
|
5200
|
+
setMemberRole: "cluster/members/role",
|
|
5201
|
+
getMemberRole: "cluster/members/role/query",
|
|
6152
5202
|
renameMember: "cluster/members/rename",
|
|
6153
5203
|
leave: "cluster/leave",
|
|
6154
5204
|
forgetCluster: "cluster/forget",
|
|
6155
5205
|
setRemoteEnabled: "remote",
|
|
6156
|
-
setStorageRole: "storage/operations",
|
|
6157
|
-
startStorageRole: "storage/operations",
|
|
6158
|
-
getStorageOperation: "storage/operations/query",
|
|
6159
5206
|
backup: "backup",
|
|
6160
5207
|
restore: "restore",
|
|
6161
5208
|
refreshTrust: "trust/refresh"
|
|
@@ -6287,6 +5334,7 @@ var Helper = class {
|
|
|
6287
5334
|
if (Buffer.byteLength(data) > maxBytes) throw new Error("oversized helper request");
|
|
6288
5335
|
const correlationId = createHash2("sha256").update("dsh-remote/ipc-operation/v1\n" + id).digest("hex");
|
|
6289
5336
|
return new Promise((resolve5, reject) => {
|
|
5337
|
+
let initializationAgent;
|
|
6290
5338
|
const controller = new AbortController();
|
|
6291
5339
|
const cancel = () => {
|
|
6292
5340
|
reject(controller.signal.reason);
|
|
@@ -6319,12 +5367,19 @@ var Helper = class {
|
|
|
6319
5367
|
controller.signal.removeEventListener("abort", cancelBootstrap);
|
|
6320
5368
|
}
|
|
6321
5369
|
controller.signal.throwIfAborted();
|
|
5370
|
+
if (operation === "initialize") {
|
|
5371
|
+
clearTimeout(timer);
|
|
5372
|
+
initializationAgent = new Agent().compose((dispatch) => (options, handler) => dispatch({ ...options, headersTimeout: 0, bodyTimeout: 0 }, handler));
|
|
5373
|
+
}
|
|
6322
5374
|
const response = await fetch(ready.localBaseUrl + "/v1/local/" + resources[operation], {
|
|
6323
5375
|
method: read ? "GET" : "POST",
|
|
6324
5376
|
redirect: "error",
|
|
6325
5377
|
signal: controller.signal,
|
|
6326
5378
|
headers: { "X-Dsh-Local-Key": this.key, ...read ? { "X-Dsh-Request-Id": id } : { "Content-Type": "application/json" } },
|
|
6327
|
-
...read ? {} : { body: data }
|
|
5379
|
+
...read ? {} : { body: data },
|
|
5380
|
+
// Node's fetch types track an independently versioned undici-types;
|
|
5381
|
+
// dispatch is the compatible public protocol across these versions.
|
|
5382
|
+
...initializationAgent ? { dispatcher: initializationAgent } : {}
|
|
6328
5383
|
});
|
|
6329
5384
|
const result = await readResponse(response, id);
|
|
6330
5385
|
controller.signal.throwIfAborted();
|
|
@@ -6338,7 +5393,11 @@ var Helper = class {
|
|
|
6338
5393
|
void run().catch((error) => {
|
|
6339
5394
|
cleanup();
|
|
6340
5395
|
reject(error);
|
|
6341
|
-
}).finally(
|
|
5396
|
+
}).finally(() => {
|
|
5397
|
+
cleanup();
|
|
5398
|
+
void initializationAgent?.destroy().catch(() => {
|
|
5399
|
+
});
|
|
5400
|
+
});
|
|
6342
5401
|
});
|
|
6343
5402
|
}
|
|
6344
5403
|
close(reason = "owner-close") {
|
|
@@ -6517,14 +5576,14 @@ function parse2(value) {
|
|
|
6517
5576
|
if (input.action !== "check" && input.action !== "upgrade") throw fault("INVALID_REQUEST");
|
|
6518
5577
|
exact(input, ["action", "target", "admissionId", "runId", "operationId", ...input.action === "upgrade" ? ["version"] : []]);
|
|
6519
5578
|
const target = object(input.target);
|
|
6520
|
-
exact(target, ["clusterId", "deviceId"
|
|
6521
|
-
const identity = { target: { clusterId: identifier(target.clusterId), deviceId: identifier(target.deviceId)
|
|
5579
|
+
exact(target, ["clusterId", "deviceId"]);
|
|
5580
|
+
const identity = { target: { clusterId: identifier(target.clusterId), deviceId: identifier(target.deviceId) }, admissionId: identifier(input.admissionId), runId: identifier(input.runId) };
|
|
6522
5581
|
const version = input.action === "upgrade" ? identifier(input.version) : void 0;
|
|
6523
5582
|
if (version && !stable(version)) throw fault("INVALID_REQUEST");
|
|
6524
5583
|
return { action: input.action, identity, operationId: identifier(input.operationId, 4096), version };
|
|
6525
5584
|
}
|
|
6526
5585
|
function same(a, b, run = true) {
|
|
6527
|
-
return a.target.clusterId === b.target.clusterId && a.target.deviceId === b.target.deviceId && a.
|
|
5586
|
+
return a.target.clusterId === b.target.clusterId && a.target.deviceId === b.target.deviceId && a.admissionId === b.admissionId && (!run || a.runId === b.runId);
|
|
6528
5587
|
}
|
|
6529
5588
|
function manager(value) {
|
|
6530
5589
|
if (!value || typeof value !== "object") return;
|
|
@@ -7150,7 +6209,6 @@ function authenticateHelper(rawHeaders, key) {
|
|
|
7150
6209
|
var principalKey = (p) => JSON.stringify([p.clusterId, p.deviceId, p.admissionId]);
|
|
7151
6210
|
|
|
7152
6211
|
// packages/plugin/src/host/policy.ts
|
|
7153
|
-
import { performance as performance2 } from "node:perf_hooks";
|
|
7154
6212
|
var DevicePolicy = class {
|
|
7155
6213
|
constructor(grants, invalidate, drop) {
|
|
7156
6214
|
this.grants = grants;
|
|
@@ -7163,9 +6221,6 @@ var DevicePolicy = class {
|
|
|
7163
6221
|
frame;
|
|
7164
6222
|
// Clearing current authority must not forget restrictions already observed.
|
|
7165
6223
|
watermark;
|
|
7166
|
-
deadline = 0;
|
|
7167
|
-
budget;
|
|
7168
|
-
timer;
|
|
7169
6224
|
bindings(principal) {
|
|
7170
6225
|
return this.trusted(principal) ? this.grants() : [];
|
|
7171
6226
|
}
|
|
@@ -7176,7 +6231,6 @@ var DevicePolicy = class {
|
|
|
7176
6231
|
const f = this.frame;
|
|
7177
6232
|
if (!f) return "CLUSTER_UNAVAILABLE";
|
|
7178
6233
|
if (!f.enabled) return f.refusalCode ?? "CLUSTER_UNAVAILABLE";
|
|
7179
|
-
if (performance2.now() >= this.deadline || Date.now() >= f.expiresAt) return "TRUST_EXPIRED";
|
|
7180
6234
|
if (f.clusterId !== p.clusterId) return "IDENTITY_INVALID";
|
|
7181
6235
|
if (!f.members?.some((m) => m.deviceId === p.deviceId && m.admissionId === p.admissionId)) return "MEMBER_REVOKED";
|
|
7182
6236
|
}
|
|
@@ -7191,25 +6245,13 @@ var DevicePolicy = class {
|
|
|
7191
6245
|
if (priorFrame && priorFrame.runId === f.runId && priorFrame.generation === f.generation && (f.sequence < priorFrame.sequence || f.fence < priorFrame.fence)) throw new Error("trust sequence regressed");
|
|
7192
6246
|
const changed = !old || old.runId !== f.runId || old.generation !== f.generation || old.fence !== f.fence;
|
|
7193
6247
|
if (changed) this.drop();
|
|
7194
|
-
const proposed = performance2.now() + Math.min(f.remainingMillis, Math.max(0, f.expiresAt - Date.now()));
|
|
7195
|
-
const prior = this.budget;
|
|
7196
|
-
this.deadline = prior?.runId === f.runId && prior.generation === f.generation && prior.expiresAt === f.expiresAt ? Math.min(prior.deadline, proposed) : proposed;
|
|
7197
|
-
if (f.enabled) this.budget = { runId: f.runId, generation: f.generation, expiresAt: f.expiresAt, deadline: this.deadline };
|
|
7198
6248
|
this.watermark = { runId: f.runId, generation: f.generation, sequence: f.sequence, fence: f.fence };
|
|
7199
6249
|
this.frame = f;
|
|
7200
|
-
|
|
7201
|
-
if (f.enabled) this.timer = setTimeout(() => {
|
|
7202
|
-
this.deadline = 0;
|
|
7203
|
-
this.drop();
|
|
7204
|
-
this.invalidate();
|
|
7205
|
-
}, Math.max(0, this.deadline - performance2.now()));
|
|
7206
|
-
else this.drop();
|
|
6250
|
+
if (!f.enabled) this.drop();
|
|
7207
6251
|
this.invalidate();
|
|
7208
6252
|
}
|
|
7209
6253
|
clear() {
|
|
7210
|
-
clearTimeout(this.timer);
|
|
7211
6254
|
this.frame = void 0;
|
|
7212
|
-
this.deadline = 0;
|
|
7213
6255
|
this.drop();
|
|
7214
6256
|
this.invalidate();
|
|
7215
6257
|
}
|
|
@@ -7217,11 +6259,11 @@ var DevicePolicy = class {
|
|
|
7217
6259
|
function parseTrustFrame(value) {
|
|
7218
6260
|
if (!value || typeof value !== "object") throw new Error("invalid trust frame");
|
|
7219
6261
|
const f = value;
|
|
7220
|
-
for (const key of ["generation", "sequence", "fence"
|
|
6262
|
+
for (const key of ["generation", "sequence", "fence"]) if (typeof f[key] !== "number" || !Number.isSafeInteger(f[key]) || f[key] < 0) throw new Error("invalid trust counter");
|
|
7221
6263
|
if (typeof f.runId !== "string" || !f.runId || typeof f.clusterId !== "string" || typeof f.enabled !== "boolean" || f.members !== null && !Array.isArray(f.members)) throw new Error("invalid trust identity");
|
|
7222
|
-
if (
|
|
6264
|
+
if (f.enabled && !f.clusterId) throw new Error("invalid trust cluster");
|
|
7223
6265
|
if (Array.isArray(f.members) && f.members.some((m) => !m || typeof m !== "object" || typeof m.deviceId !== "string" || typeof m.admissionId !== "string")) throw new Error("invalid trust member");
|
|
7224
|
-
if (f.refusalCode !== void 0 && (f.enabled || !["CLUSTER_UNAVAILABLE", "REMOTE_DISABLED", "
|
|
6266
|
+
if (f.refusalCode !== void 0 && (f.enabled || !["CLUSTER_UNAVAILABLE", "REMOTE_DISABLED", "MEMBER_REVOKED"].includes(String(f.refusalCode)))) throw new Error("invalid trust refusal");
|
|
7225
6267
|
return f;
|
|
7226
6268
|
}
|
|
7227
6269
|
|
|
@@ -7486,8 +6528,15 @@ function observeSessionNotices(source, emit) {
|
|
|
7486
6528
|
const sessions = /* @__PURE__ */ new Map();
|
|
7487
6529
|
const approvals = /* @__PURE__ */ new Set();
|
|
7488
6530
|
const id = (...parts) => createHash4("sha256").update(JSON.stringify([source.runId, ...parts])).digest("hex");
|
|
6531
|
+
const title = (value) => value === void 0 ? {} : { sessionTitle: Array.from(value.trim()).slice(0, 256).join("") };
|
|
7489
6532
|
const publish = (notice) => {
|
|
7490
6533
|
if (!closed) void emit(notice).catch(() => {
|
|
6534
|
+
if (!closed) {
|
|
6535
|
+
try {
|
|
6536
|
+
source.unavailable?.("Notice submission failed");
|
|
6537
|
+
} catch {
|
|
6538
|
+
}
|
|
6539
|
+
}
|
|
7491
6540
|
});
|
|
7492
6541
|
};
|
|
7493
6542
|
const remove = source.subscribe((update) => {
|
|
@@ -7500,7 +6549,7 @@ function observeSessionNotices(source, emit) {
|
|
|
7500
6549
|
const eventId = id("approval", update.brokerRunId, update.requestId);
|
|
7501
6550
|
if (approvals.has(eventId) || approvals.size >= 1024) return;
|
|
7502
6551
|
approvals.add(eventId);
|
|
7503
|
-
publish({ eventId, target: source.target, sessionId: update.sessionId, runId: source.runId, kind: "approval-waiting", approvalId: update.requestId, occurredAt: update.occurredAt });
|
|
6552
|
+
publish({ eventId, target: source.target, sessionId: update.sessionId, ...title(update.sessionTitle), runId: source.runId, kind: "approval-waiting", approvalId: update.requestId, occurredAt: update.occurredAt });
|
|
7504
6553
|
return;
|
|
7505
6554
|
}
|
|
7506
6555
|
if (update.type === "dispose") {
|
|
@@ -7527,7 +6576,7 @@ function observeSessionNotices(source, emit) {
|
|
|
7527
6576
|
if (update.type === "state" && !update.running && update.queued === 0 && update.steering === 0 && state.ended) {
|
|
7528
6577
|
sessions.delete(update.sessionId);
|
|
7529
6578
|
if (state.invalid || !state.outcome) return;
|
|
7530
|
-
publish({ eventId: id("idle", update.sessionId, state.turn), target: source.target, sessionId: update.sessionId, runId: source.runId, kind: "session-idle", outcome: state.outcome, occurredAt: Date.now() });
|
|
6579
|
+
publish({ eventId: id("idle", update.sessionId, state.turn), target: source.target, sessionId: update.sessionId, ...title(update.sessionTitle), runId: source.runId, kind: "session-idle", outcome: state.outcome, occurredAt: Date.now() });
|
|
7531
6580
|
}
|
|
7532
6581
|
});
|
|
7533
6582
|
return () => {
|
|
@@ -7539,6 +6588,7 @@ function observeSessionNotices(source, emit) {
|
|
|
7539
6588
|
}
|
|
7540
6589
|
|
|
7541
6590
|
// packages/plugin/src/host/notification-state.ts
|
|
6591
|
+
import { SessionId } from "@deepseek-ai/dsh-session";
|
|
7542
6592
|
function dshSessionNoticeSource(ctx, target, runId, approvals) {
|
|
7543
6593
|
return {
|
|
7544
6594
|
target,
|
|
@@ -7549,7 +6599,8 @@ function dshSessionNoticeSource(ctx, target, runId, approvals) {
|
|
|
7549
6599
|
subscribe(listener) {
|
|
7550
6600
|
let closed = false;
|
|
7551
6601
|
const timers = /* @__PURE__ */ new Set();
|
|
7552
|
-
const
|
|
6602
|
+
const title = (agent) => agent ? ctx.get("sessionTitle")?.get(agent.session)?.title : void 0;
|
|
6603
|
+
const state = (agent) => ({ sessionId: agent.session.id, sessionTitle: title(agent), running: agent.status === "running", queued: agent.inbox.nextTurn.length, steering: agent.inbox.nextStep.length });
|
|
7553
6604
|
const sample = (agent) => {
|
|
7554
6605
|
const timer = setImmediate(() => {
|
|
7555
6606
|
timers.delete(timer);
|
|
@@ -7575,7 +6626,7 @@ function dshSessionNoticeSource(ctx, target, runId, approvals) {
|
|
|
7575
6626
|
ctx.on("agent/disposed", ({ agent }) => listener({ type: "dispose", sessionId: agent.session.id })),
|
|
7576
6627
|
approvals.observePending((frame, occurredAt) => {
|
|
7577
6628
|
const common = { brokerRunId: frame.runId, requestId: frame.requestId };
|
|
7578
|
-
const update = frame.state === "pending" ? { type: "approval", ...common, sessionId: frame.sessionId, occurredAt } : { type: "approval-settled", ...common };
|
|
6629
|
+
const update = frame.state === "pending" ? { type: "approval", ...common, sessionId: frame.sessionId, sessionTitle: title(ctx.agents.get(SessionId(frame.sessionId))), occurredAt } : { type: "approval-settled", ...common };
|
|
7579
6630
|
listener(update);
|
|
7580
6631
|
})
|
|
7581
6632
|
];
|
|
@@ -9425,7 +8476,7 @@ async function startRemotePlugin(ctx, config) {
|
|
|
9425
8476
|
if (!helperBase || lifetime.signal.aborted) return;
|
|
9426
8477
|
const status = record2(await supervisor.request("status", {}));
|
|
9427
8478
|
if (generation !== noticeGeneration || lifetime.signal.aborted || !status.paired) return;
|
|
9428
|
-
const target = { clusterId: text(status.clusterId), deviceId: text(status.deviceId)
|
|
8479
|
+
const target = { clusterId: text(status.clusterId), deviceId: text(status.deviceId) };
|
|
9429
8480
|
const runId = text(status.runId);
|
|
9430
8481
|
const stop = new AbortController();
|
|
9431
8482
|
const remove = observeSessionNotices(dshSessionNoticeSource(ctx, target, runId, approvals), async (notice) => {
|
|
@@ -9460,7 +8511,7 @@ async function startRemotePlugin(ctx, config) {
|
|
|
9460
8511
|
if (!id || id.length > 128) throw new Error();
|
|
9461
8512
|
return id;
|
|
9462
8513
|
};
|
|
9463
|
-
return { target: { clusterId: identifier2(value.clusterId), deviceId: identifier2(value.deviceId)
|
|
8514
|
+
return { target: { clusterId: identifier2(value.clusterId), deviceId: identifier2(value.deviceId) }, admissionId: identifier2(value.admissionId), runId: identifier2(value.runId) };
|
|
9464
8515
|
} catch {
|
|
9465
8516
|
throw fault("CLUSTER_UNAVAILABLE", "Plugin update identity is unavailable");
|
|
9466
8517
|
}
|
|
@@ -9666,7 +8717,7 @@ async function startRemotePlugin(ctx, config) {
|
|
|
9666
8717
|
const generationSignal = generationLifetimes.get(currentGeneration)?.signal;
|
|
9667
8718
|
if (!generationSignal) throw fault("CLUSTER_UNAVAILABLE");
|
|
9668
8719
|
const origin = helperBase;
|
|
9669
|
-
const response = await fetch(origin + "/v1/local/connections", { method: "POST", headers: { "X-Dsh-Local-Key": key.toString("base64url"), "Content-Type": "application/json" }, body: JSON.stringify({ clusterId: target.clusterId, deviceId: target.deviceId
|
|
8720
|
+
const response = await fetch(origin + "/v1/local/connections", { method: "POST", headers: { "X-Dsh-Local-Key": key.toString("base64url"), "Content-Type": "application/json" }, body: JSON.stringify({ clusterId: target.clusterId, deviceId: target.deviceId }), signal: AbortSignal.any([lifetime.signal, generationSignal, AbortSignal.timeout(3e4)]) });
|
|
9670
8721
|
if (!response.ok) {
|
|
9671
8722
|
const failure = record2(await response.json());
|
|
9672
8723
|
throw Object.assign(new Error(text(failure.message)), failure);
|
|
@@ -9714,9 +8765,12 @@ async function startRemotePlugin(ctx, config) {
|
|
|
9714
8765
|
closeTarget,
|
|
9715
8766
|
async managementStatus(options) {
|
|
9716
8767
|
if (supervisor.initialized) {
|
|
8768
|
+
const generation = currentGeneration;
|
|
8769
|
+
const stillReady = () => supervisor.initialized && generation === currentGeneration;
|
|
9717
8770
|
try {
|
|
9718
8771
|
const raw = record2(await supervisor.request("status", {}));
|
|
9719
|
-
|
|
8772
|
+
if (!stillReady()) throw fault("CLUSTER_UNAVAILABLE");
|
|
8773
|
+
const status = Object.fromEntries(["deviceId", "clusterId", "admissionId", "paired", "remoteEnabled", "storageRole", "controlPlane", "deviceName", "recoveryState"].map((k) => [k, raw[k]]));
|
|
9720
8774
|
const pendingBootstrap = raw.pendingBootstrap && typeof raw.pendingBootstrap === "object" && !Array.isArray(raw.pendingBootstrap) ? raw.pendingBootstrap : {};
|
|
9721
8775
|
if (typeof pendingBootstrap.requestId === "string" && pendingBootstrap.requestId.length > 0 && pendingBootstrap.requestId.length <= 4096) status.pendingBootstrap = { requestId: pendingBootstrap.requestId };
|
|
9722
8776
|
if (options?.watchCatalog) {
|
|
@@ -9735,24 +8789,16 @@ async function startRemotePlugin(ctx, config) {
|
|
|
9735
8789
|
...previous,
|
|
9736
8790
|
readAt: previous.readAt ?? 0,
|
|
9737
8791
|
cached: true,
|
|
9738
|
-
members: Array.isArray(previous.members) ? previous.members.map((value) => ({ ...record2(value), online: null })) : []
|
|
9739
|
-
instances: Array.isArray(previous.instances) ? previous.instances.map((value) => ({ ...record2(value), online: null })) : [],
|
|
9740
|
-
notificationSync: { state: "unavailable" }
|
|
8792
|
+
members: Array.isArray(previous.members) ? previous.members.map((value) => ({ ...record2(value), online: null })) : []
|
|
9741
8793
|
};
|
|
9742
8794
|
}
|
|
8795
|
+
if (!stillReady()) throw fault("CLUSTER_UNAVAILABLE");
|
|
9743
8796
|
lastManagement = { status, catalog };
|
|
9744
8797
|
return { initialized: true, ...localInformation(), runtimeHealth: supervisor.health, status, catalog, ...catalogError && { catalogError } };
|
|
9745
8798
|
} catch (error) {
|
|
9746
|
-
if (
|
|
8799
|
+
if (stillReady()) throw error;
|
|
9747
8800
|
}
|
|
9748
8801
|
}
|
|
9749
|
-
if (lastManagement) {
|
|
9750
|
-
if (options?.watchCatalog) return { initialized: true, ...localInformation(), runtimeHealth: supervisor.health, status: lastManagement.status };
|
|
9751
|
-
const catalog = record2(lastManagement.catalog);
|
|
9752
|
-
const instances = Array.isArray(catalog.instances) ? catalog.instances.map((value) => ({ ...record2(value), online: null })) : [];
|
|
9753
|
-
const members = Array.isArray(catalog.members) ? catalog.members.map((value) => ({ ...record2(value), online: null })) : [];
|
|
9754
|
-
return { initialized: true, ...localInformation(), runtimeHealth: supervisor.health, status: lastManagement.status, catalog: { ...catalog, readAt: catalog.readAt ?? 0, notificationSync: { state: "unavailable" }, cached: true, members, instances, onlineInstanceIds: [] } };
|
|
9755
|
-
}
|
|
9756
8802
|
return { initialized: false, ...localInformation(), initializationError: supervisor.initializationError && apiFailure(supervisor.initializationError), runtimeHealth: supervisor.health };
|
|
9757
8803
|
},
|
|
9758
8804
|
async control(operation, payload, requestId) {
|
|
@@ -9826,7 +8872,7 @@ async function startRemotePlugin(ctx, config) {
|
|
|
9826
8872
|
}
|
|
9827
8873
|
try {
|
|
9828
8874
|
const value = record2(await json(req));
|
|
9829
|
-
reply(res, await runtime.openTarget({ clusterId: text(value.clusterId), deviceId: text(value.deviceId)
|
|
8875
|
+
reply(res, await runtime.openTarget({ clusterId: text(value.clusterId), deviceId: text(value.deviceId) }));
|
|
9830
8876
|
} catch (error) {
|
|
9831
8877
|
respondFailure(res, error);
|
|
9832
8878
|
}
|
|
@@ -10009,7 +9055,7 @@ async function startRemotePlugin(ctx, config) {
|
|
|
10009
9055
|
return { helper, initialization };
|
|
10010
9056
|
}
|
|
10011
9057
|
});
|
|
10012
|
-
|
|
9058
|
+
void supervisor.start().catch((error) => ctx.logger.error(error));
|
|
10013
9059
|
return runtime;
|
|
10014
9060
|
} catch (error) {
|
|
10015
9061
|
await runtime.close("startup-failed");
|