diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 8b470ce5..e6deab3b 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,24 +1,24 @@ lockVersion: 2.0.0 id: 6a2d7b70-1321-499a-8677-a99a42c2e4b6 management: - docChecksum: c01c92b92cf5b471cebf2f958cb848a2 + docChecksum: 226363c99508c2f6c1f010e084a5e142 docVersion: 0.0.1 - speakeasyVersion: 1.680.0 - generationVersion: 2.788.4 - releaseVersion: 1.2.1 - configChecksum: 873e9da112919ddcf6af66a0243bbd0f + speakeasyVersion: 1.685.2 + generationVersion: 2.795.6 + releaseVersion: 1.2.2 + configChecksum: e2899cdf9f7e2e656c50ce83e6a7308f repoURL: https://github.com/firehydrant/firehydrant-typescript-sdk.git installationURL: https://github.com/firehydrant/firehydrant-typescript-sdk published: true persistentEdits: - generation_id: a42d51fd-3800-4895-8c14-fabd933d9480 - pristine_commit_hash: c017c9e8efa329b4844a205b7908e4f094533da6 - pristine_tree_hash: 5cd72b1c2771b96bb318898aea03c64b46576e63 + generation_id: 3af61004-3c4f-4032-b7d1-cf03b93e1f5b + pristine_commit_hash: bf538e5ec5be6b7da71d8a5d445cbe5842e0d9ed + pristine_tree_hash: 1bc9e63d052384d58de933a6bc2aa49319ec3110 features: typescript: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.12 - core: 3.26.16 + core: 3.26.21 defaultEnabledRetries: 0.1.0 devContainers: 2.90.1 enumUnions: 0.1.0 @@ -27,7 +27,7 @@ features: globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 globalServerURLs: 2.83.0 - mcpServer: 0.9.3 + mcpServer: 0.9.4 nullables: 0.1.1 responseFormat: 0.2.3 retries: 2.83.0 @@ -180,12 +180,12 @@ trackedFiles: pristine_git_object: e6d692fe2cf64535493a66a2963b9b1e7d04514b docs/models/components/bulkupdateincidentmilestones.md: id: 56481b90b2a1 - last_write_checksum: sha1:e61b4960c87481bcedd3168debbbc01468c1a738 - pristine_git_object: d0b5570d25bb978f840982a346af641f83095438 + last_write_checksum: sha1:f9ee965369cc40f540885eb25801e65180b4d9fe + pristine_git_object: 7613fc1a85d3fe0a4a6866b37279478834dd0362 docs/models/components/bulkupdateincidentmilestonesmilestone.md: id: f9dc6aa135e8 - last_write_checksum: sha1:fb83264f4c45de00558ea48a5310b68507ae0aca - pristine_git_object: a57341402b3fe46c44ef2c0ba3937d03e22e85f5 + last_write_checksum: sha1:9cec185987230f3c5cd0281c4d9411948d483050 + pristine_git_object: 562671e71f98dd04f6c8dd0daff4f1053f5a7217 docs/models/components/changeentity.md: id: 7b9a752c439d last_write_checksum: sha1:06eba7478463d703c49a04915038c1991764ef60 @@ -258,6 +258,10 @@ trackedFiles: id: cc913f06df0d last_write_checksum: sha1:a95896800d92790e65214a6c532b7b7072d7a44a pristine_git_object: 62fdec395bd734d8f1e12ac30c0b493ecce9db7c + docs/models/components/content.md: + id: 171de262e3cc + last_write_checksum: sha1:e0e4daaa0f0c253b8e148e6063dc6992b94018d1 + pristine_git_object: 59443942fc0a5860ebdbaca7b41599fd8a32ba1d docs/models/components/context.md: id: 9354f6221a1b last_write_checksum: sha1:d9629157aedcd3a6f6d5f20486af851b85341a38 @@ -324,12 +328,24 @@ trackedFiles: pristine_git_object: f576fed69bfe0e06653f865174415d6c2870bf38 docs/models/components/createenvironment.md: id: b13b0c36eb30 - last_write_checksum: sha1:8540eb701e495ce5fcbc1b317e9825495c74a62f - pristine_git_object: 77be449815ed073f693bdc39caf2b096731a06f7 + last_write_checksum: sha1:9159a0c2f2d53c83043433dfdbfdcfe616c4be80 + pristine_git_object: 0a1641d856139b4ff9d6da8f30ea33252a8b3766 + docs/models/components/createenvironmentfunctionality.md: + id: 6d80e63fd656 + last_write_checksum: sha1:656bc6ae8c969cd787b7cd95b7a1354aeee4eeee + pristine_git_object: 1b6ccf58d81e480961bde0465ca67364e66417d4 + docs/models/components/createenvironmentservice.md: + id: c6e26ff9efed + last_write_checksum: sha1:a9ba9084c5af654784a664bcfcca70f41f7885e3 + pristine_git_object: 91e3e3a3c050a382bfc0c8a72d4a171648046464 docs/models/components/createfunctionality.md: id: 34f06cb9e54e - last_write_checksum: sha1:125265f96ea12ed4bc84d3ade1a2800e6b49780e - pristine_git_object: 9dc94ef825e0bed3958cd10fa130c611cfc51756 + last_write_checksum: sha1:53d259925cfed18d718715d650987876648f7cf1 + pristine_git_object: 667313986680230c2453ed05eaeaee318533240e + docs/models/components/createfunctionalityenvironment.md: + id: 1561f3edc884 + last_write_checksum: sha1:19db8180f4b8291336058af7506ca63aea994081 + pristine_git_object: cace264094f9a33086d0c7b2565aeecf17439812 docs/models/components/createfunctionalityexternalresource.md: id: 0f8f8ff1ec8d last_write_checksum: sha1:6fe26b91a281593f5ed0d550e6d3992cf1e54457 @@ -388,8 +404,8 @@ trackedFiles: pristine_git_object: 2fe86df81dcbf4e8b3257ea5438825c1afad1e22 docs/models/components/createincidentmilestone.md: id: 87b9ce5eedeb - last_write_checksum: sha1:d2da64b1886d434aabdca847c13257cc532d40d4 - pristine_git_object: 3a1aa8c70c5fe8fc2d746eb09e7b170ffad53675 + last_write_checksum: sha1:fcead76f233ccfc15dbc5eec941191739dec2b13 + pristine_git_object: 98d62ef2cd78f1ad7995ece809abef81122bbce9 docs/models/components/createincidentnote.md: id: 6b123f72fc27 last_write_checksum: sha1:a3c5654b7fa38567cc330edbff68ea5bcfa6529f @@ -476,8 +492,8 @@ trackedFiles: pristine_git_object: 7b0bb33adc56bc5e740d275a35240df46d5693fe docs/models/components/createoncallshift.md: id: c702b7507a02 - last_write_checksum: sha1:750d184f8f4983e95da30a86afdf9289f78089d6 - pristine_git_object: ae116b20381e5f25a76da18641e4f7896579a6bb + last_write_checksum: sha1:3bac69f0cd49048b5c5c7d6b7447b60e78e793ae + pristine_git_object: eb706e5760e1857873922c0c1017e74d5b31e20a docs/models/components/createpostmortemreason.md: id: 385b1bc15f8c last_write_checksum: sha1:4e2e504aa0cc07b12cff42124dfd816bfcaae429 @@ -532,8 +548,8 @@ trackedFiles: pristine_git_object: a008333aeb92f41428aa5bf467d70e0c29009a06 docs/models/components/createscheduledmaintenance.md: id: cbea695e097e - last_write_checksum: sha1:62b50447b6a99d0db77c5bbbb1394f7f457b8838 - pristine_git_object: d1395b7299b3f635d9236cd91e90a159861be07e + last_write_checksum: sha1:d3925145abeb1c46951b2a1d4f6741b48321ad69 + pristine_git_object: b63a0847169189238770c7be6ff1dbc616a3c91b docs/models/components/createscheduledmaintenanceimpact.md: id: 434ed56454ea last_write_checksum: sha1:403b648ae1938abdba057db6840d0421b25c49b2 @@ -572,8 +588,8 @@ trackedFiles: pristine_git_object: a985f9d21061ecf172fa6866d6498e25d958455a docs/models/components/createservice.md: id: e5e19a764178 - last_write_checksum: sha1:ab890aef0c4ea2cc48795d63d16617bcd29f87dc - pristine_git_object: 365740c9681d4529a5ff133cd873c2cb555c8fd6 + last_write_checksum: sha1:e2e8490b7f7b07e142f56fe0f2099afe308d12fa + pristine_git_object: fa1cec4b6cc55c25ab20f9219bc75a98e30ca1eb docs/models/components/createservicechecklistresponse.md: id: 4238e75f1519 last_write_checksum: sha1:45d92b8434551f9acbf004e4051e3e433bb528b6 @@ -582,6 +598,10 @@ trackedFiles: id: 52b03332a9dc last_write_checksum: sha1:0f98c28383d70b63406d3592a81c4bf0d07a342e pristine_git_object: 495382a2bb29eaf0112ed62fd03bd73d505982a0 + docs/models/components/createserviceenvironment.md: + id: 2144d057ff00 + last_write_checksum: sha1:c716461f86fc593d7f705f1fc3508cad716c32ab + pristine_git_object: 8ce8137290815269e73210362396c1f87a0085d9 docs/models/components/createserviceexternalresource.md: id: c6656f20dff3 last_write_checksum: sha1:6e94db4eb5ec8b260f6d775c444b488aff553508 @@ -954,14 +974,10 @@ trackedFiles: id: c9c0a4a72670 last_write_checksum: sha1:e8377d01c7dfbd00d9e12fd9e532a91142e90b86 pristine_git_object: bd52d06aba48f15dcec26df1bfd602ff2e7378b0 - docs/models/components/environment.md: - id: 2bbd505fcb39 - last_write_checksum: sha1:8ba0a062687770b780739cfdc450b1c5ddf1dbb8 - pristine_git_object: 103bd632efd7db5b887444f701389a66fc24dea2 docs/models/components/environmententryentity.md: id: df7b8a639301 - last_write_checksum: sha1:75ac9d75b3e309c01ae3aa31aa316d4c9cae3edf - pristine_git_object: 50124e45f70d79d052e43b7845b456d4f2b97a21 + last_write_checksum: sha1:6dc54ddc06f63d9dfe8e839df959dc021ef0d1de + pristine_git_object: 71ce370466b3adbb38b826db4d26350ad8750e1e docs/models/components/environmententryentitypaginated.md: id: 522a240ddbdb last_write_checksum: sha1:4db538be04673bae7a8fd8bf2aeae46e8a4d3a23 @@ -992,12 +1008,16 @@ trackedFiles: pristine_git_object: 08737b4582e0b1850dfb317cb9e5a8c3236690e9 docs/models/components/functionalityentity.md: id: d29cce3da588 - last_write_checksum: sha1:a4cd85502ad6668c15f0b2c3f7b03fec706b202e - pristine_git_object: 914a08cdf804a4e9e1386307f38e935ba7130cb3 + last_write_checksum: sha1:ed0cb8786d97a53d539181254ecfddeb1df35f17 + pristine_git_object: f780250bf6776244d4b8218d3cb8972c108ae6fb docs/models/components/functionalityentitylite.md: id: ca05b915f9e2 last_write_checksum: sha1:961679baa3ff8ac9e4aa6026c8c82c2d5d95d2e7 pristine_git_object: a0cdd0cabee010a42663c591a947630b38604fed + docs/models/components/functionalityentitylitepaginated.md: + id: "02158960e072" + last_write_checksum: sha1:755722c6d0d6a2cb39e830f7518d5b4f1453da3e + pristine_git_object: a506556063189009687be2b47da37338752f85ce docs/models/components/functionalityentitypaginated.md: id: c3dc24786fcb last_write_checksum: sha1:5dfef10930dc6aa77c6301ba70bb3aa8b3d63818 @@ -1180,8 +1200,8 @@ trackedFiles: pristine_git_object: ebe376ddbe6138b2892dde775ccb83d76a6fb95a docs/models/components/incidentsretrospectivefieldentity.md: id: 5bf345114448 - last_write_checksum: sha1:a35b742aaf953b88701234f7b34a35c39b8baa1e - pristine_git_object: 46058e12957901bae23ec1836ef9b9e88938818c + last_write_checksum: sha1:3702681d370704b48dc995295058bfcb9d79de9f + pristine_git_object: 43b9d875c716ed8c2adc7f04c22eb2c6ba27a038 docs/models/components/incidentsretrospectivefieldentitytype.md: id: edcde60fcbd1 last_write_checksum: sha1:b195e99bc6c29a492f9887d962bfb4fa1e20bc1d @@ -1684,8 +1704,8 @@ trackedFiles: pristine_git_object: dd67166214cf51c27cf76fca4e8440fb7d02657a docs/models/components/nullableserviceentity.md: id: feeb9e846982 - last_write_checksum: sha1:2dea4dd47300c479c82b9e84a583f9958297e4af - pristine_git_object: 98aea562e24129cd4c66cc1e156ec6cd61247478 + last_write_checksum: sha1:a1986906a70c0943c109501a92490eee4aeb5cd8 + pristine_git_object: b380e8806ea134e57b63d217f5abe2099628303c docs/models/components/nullableserviceentitymanagedbysettings.md: id: "934771077556" last_write_checksum: sha1:be965022e3a5e16e16decf0f3a1ab0c63f6605c5 @@ -2070,18 +2090,6 @@ trackedFiles: id: 478c1cdc1555 last_write_checksum: sha1:8e338be703d73a1a3006732007cd97a069226c75 pristine_git_object: b9065478392327087b8d3bd38acccea488e9b600 - docs/models/components/retrospectivesreporttemplateentity.md: - id: 80cf68d284bf - last_write_checksum: sha1:74c65cc8465d421cc6b93142a5ca11ea5992dcaf - pristine_git_object: f6a0ce1795098d14f4d75464f728dfe7943df330 - docs/models/components/retrospectivesreporttemplateentityelemententity.md: - id: 1d6e310c82b5 - last_write_checksum: sha1:cacf730e27dacdf1479e978021783f35cf91f863 - pristine_git_object: aa14cab37e026fed9a854313351aa1f10e1581bd - docs/models/components/retrospectivesreporttemplateentityelemententitycontent.md: - id: a25803918650 - last_write_checksum: sha1:4f0d9af08dcfa4d463798b5bbe14d35945370595 - pristine_git_object: 11b973079f7a9c96ab4501c0a1af17203a485d78 docs/models/components/retrospectivestemplateentity.md: id: 936c0f1b18af last_write_checksum: sha1:5a615e47db7eafedc2c4dd2c1980fda244905586 @@ -2092,12 +2100,8 @@ trackedFiles: pristine_git_object: 28ebb9136b3642b8ec444854ab86b39347dc9aed docs/models/components/retrospectivestemplateentityreportelemententity.md: id: 21f95858e1bb - last_write_checksum: sha1:39b64b4dfd5ef100e42fc1eda9f99547eee7c9e2 - pristine_git_object: 264423f0d6c99791add35910d286f05e8e8a24da - docs/models/components/retrospectivestemplateentityreportelemententitycontent.md: - id: d1f78e996f8d - last_write_checksum: sha1:71c8d20a111cabcd0c9176db65fceb204dac5f44 - pristine_git_object: 9c0761eb95e00764022278172be5e1d630a2f35a + last_write_checksum: sha1:708dd98f84dee6f88a9668a3bb96d9650a2bee89 + pristine_git_object: a6251846ce98f15bf4ca9baf32c03c9d76f9ad58 docs/models/components/roleentitypaginated.md: id: c0c462503db7 last_write_checksum: sha1:fd1e5ce46189b1cc09dce5f84503ce85cb8670f3 @@ -2208,8 +2212,8 @@ trackedFiles: pristine_git_object: 515d089960d2bfdbcd1e6136a844e67dfee44ebc docs/models/components/serviceentity.md: id: 010fe7869fec - last_write_checksum: sha1:9ffaa6882e3c8a650dd88cd1725f35e869d5efac - pristine_git_object: de102504c316c0d55dc72fcf7acd9a6299692ecd + last_write_checksum: sha1:d93fbe6af571a9b84b5234827744cf7e62e7effd + pristine_git_object: 76253c783e31749f7be1afd2fc7031f4c48dfce9 docs/models/components/serviceentitychecklist.md: id: fbc59242d626 last_write_checksum: sha1:ddee9583d14ac62ca524f5db88580dc73d012883 @@ -2218,6 +2222,10 @@ trackedFiles: id: 1c078210bdac last_write_checksum: sha1:6bc0bd936cc0b8edde9afc92a5dff2a8ab881a84 pristine_git_object: 2ee9b44c36bc96d38bf980ad2456b16869354195 + docs/models/components/serviceentitylitepaginated.md: + id: 8aaaf4bacf11 + last_write_checksum: sha1:9b8068bce194056d7aa1164f958dd228153f05f9 + pristine_git_object: e050a67e83051a21655962c181d3721c13be5eb9 docs/models/components/serviceentitymanagedbysettings.md: id: 4c62f617c548 last_write_checksum: sha1:d87c9556aa2c3560628d8c2226e16450335b0e63 @@ -2652,12 +2660,24 @@ trackedFiles: pristine_git_object: 905201c58f0da8958032276e08235a393aa0530a docs/models/components/updateenvironment.md: id: 90cecf0d60ef - last_write_checksum: sha1:2455f788f99ef3e2428e0fec25f481661a78322e - pristine_git_object: 347f6314974eff4449ab96f8a415e9968cdc9886 + last_write_checksum: sha1:3cb41223d550a4186ae827624122b7496b54f65f + pristine_git_object: 9b502a5d55540454eb7ed15a08303d8f3e35622d + docs/models/components/updateenvironmentfunctionality.md: + id: c8b604b2baaf + last_write_checksum: sha1:03f9d72a3870880767cb38ce7baa26478947b3fd + pristine_git_object: 7fa57ac8902a892b95b084fb78de4fa76090b347 + docs/models/components/updateenvironmentservice.md: + id: b20ba042ccc1 + last_write_checksum: sha1:7ebf568b00190401115de67e6c4abacd6468e9c9 + pristine_git_object: f749cb585edac81565f94bcc22a058bab77098f9 docs/models/components/updatefunctionality.md: id: 173c4e78200b - last_write_checksum: sha1:a30625ce68383984162b204ac71282567b22d9fa - pristine_git_object: 38e504b2f9d0dc95484dc0d1f6327ebf5bdd7622 + last_write_checksum: sha1:ac089e747da54fa5282468d31d302f32590c4ca6 + pristine_git_object: 36397d7a6e0679cdb4b82edd616eef94f5cd9c09 + docs/models/components/updatefunctionalityenvironment.md: + id: 76b0bbfe9b94 + last_write_checksum: sha1:76246de538ec2613757c36a0e31014eb4385beb6 + pristine_git_object: 7d6c2f73c7e28c823c286ad748834bdd61bb3e23 docs/models/components/updatefunctionalityexternalresource.md: id: 220175f40157 last_write_checksum: sha1:d1f0bcdeeb365f71c2bb26f4e64cb8df1ecea58e @@ -2844,12 +2864,16 @@ trackedFiles: pristine_git_object: 42f1157a131470b0e5a44bdc64f3d3d42c14f2fe docs/models/components/updaterunbook.md: id: ba309d4089fb - last_write_checksum: sha1:879c679c528433e62232720f3c3511a47173132f - pristine_git_object: 01df3beb19f285ef27587487d7df6fd695246248 + last_write_checksum: sha1:7233e736692bdf60afeb6298744085ba7e6d6c86 + pristine_git_object: 18be55a133ee5451bcd278d4ef27dcec4ad0c222 docs/models/components/updaterunbookattachmentrule.md: id: ea8545eb1850 last_write_checksum: sha1:ad2b4a63dfd4cde07e056bb09f1c1d52ae3d1879 pristine_git_object: 46155b6eadcf70f508e7a12ef551744d47fb8fab + docs/models/components/updaterunbookenvironment.md: + id: 1d64dc2f90b4 + last_write_checksum: sha1:108f54384f540ec8cc11168e307fbc46429575f2 + pristine_git_object: bde95e66c25a0d350d978066a81842fbd4a493c3 docs/models/components/updaterunbookexecutionstep.md: id: 7c93dffe2656 last_write_checksum: sha1:edefdb032610291f3734f61b4151fb5b4e0988f7 @@ -2920,12 +2944,16 @@ trackedFiles: pristine_git_object: 998e2ef99bbc77563cfd673e4b7d767ec970b625 docs/models/components/updateservice.md: id: 5942669fe270 - last_write_checksum: sha1:8b1971114186f73b785adf3157774099d381ce8e - pristine_git_object: 4c195c8fb436902d30a0181aafff304dac882369 + last_write_checksum: sha1:12719bdc1f939d4516d27e3566f2b54f253d4158 + pristine_git_object: 2cb74c73833f72ab44417224b90281bc22cddec5 docs/models/components/updateservicedependency.md: id: 567e82353882 last_write_checksum: sha1:396c1c0af6ab5fc758ec62294ecdc328ea996f68 pristine_git_object: 687c26cea487cfd3739a530d6b1b654fbf610fac + docs/models/components/updateserviceenvironment.md: + id: a644efd5a245 + last_write_checksum: sha1:b575c3e6159c5393ae40260222815877dad6b819 + pristine_git_object: d52a6d3d7556f479ee5c057faa1c0e66fcbdff00 docs/models/components/updateserviceexternalresource.md: id: e9d497416dc1 last_write_checksum: sha1:f6fd08b5641ee7df7836b36e655a1d8a84deb04d @@ -3264,8 +3292,8 @@ trackedFiles: pristine_git_object: ade4c202413876b4fbc8494b9645e5eab9a00d76 docs/models/operations/bulkupdateincidentmilestonesrequest.md: id: b874ee53fa89 - last_write_checksum: sha1:d582b1e0828d9d769d29aa6409275ef37d1144f6 - pristine_git_object: bacad6aa28e4b368c1f81414ed352a2452fc7627 + last_write_checksum: sha1:022373004e471708d9df0d3daf08c4351c82fea2 + pristine_git_object: 3ac4643d7699ed36ed8fa71b9c5eb5fe6d060bf4 docs/models/operations/by.md: id: 8a4ef2637176 last_write_checksum: sha1:67600c360ba690da5e37be3eb5533f799d78aa14 @@ -3440,8 +3468,8 @@ trackedFiles: pristine_git_object: 919739ee2b398383160cca1cb0b3bbafbb052ce9 docs/models/operations/createoncallshiftrequest.md: id: c83c79b11b0a - last_write_checksum: sha1:e8339299370ca84a07dad9e15da7fcd39ee4cbb7 - pristine_git_object: 2e26818f04aa87150172c1fb0f2a354b54a5a90f + last_write_checksum: sha1:37c47a331c6c2eb933b71ac4aef42c3de3bc2c42 + pristine_git_object: debd7ef43714d5408947b0829b2e5db7a1bb7549 docs/models/operations/createpostmortemreasonrequest.md: id: 0b4753de2745 last_write_checksum: sha1:36c9a168911268ee0981201f33a64231842c96f1 @@ -3966,10 +3994,6 @@ trackedFiles: id: b91087c54a04 last_write_checksum: sha1:85deaee0e649e02d1a1a155fec3be8ccee98c57f pristine_git_object: fab025bb5acfcd21fa25f16e38c171eb87b9f987 - docs/models/operations/getretrospectivereporttemplaterequest.md: - id: a01881a335d0 - last_write_checksum: sha1:73c08fcc7261f4d6b4ad3cf09d34fee3aa1fb2a1 - pristine_git_object: 7079507c96cb0110dfd31cca90b5e909ce75c166 docs/models/operations/getretrospectivetemplaterequest.md: id: bdcb9850d4c7 last_write_checksum: sha1:252e22e962e6b003cc186df2c8f3c5157c32e608 @@ -4310,6 +4334,14 @@ trackedFiles: id: b90f4059c554 last_write_checksum: sha1:04d96dcde2d3f987092dd2ed7436197c3fb2b7b1 pristine_git_object: 21882f71db53417950469af7b75c6a0c605d3f3c + docs/models/operations/listenvironmentfunctionalitiesrequest.md: + id: 00b4212e4c4f + last_write_checksum: sha1:37ae7b7962d618247b423ce84d66b529b9dfe791 + pristine_git_object: f4436cc4dc4f1e98a080411019668441a24dc0b2 + docs/models/operations/listenvironmentservicesrequest.md: + id: f02740af71ed + last_write_checksum: sha1:b46c9904fa782fd302d04b71e293088760f51174 + pristine_git_object: 9bf746f2e4e22e1247dba7b2eff89278d587e91e docs/models/operations/listenvironmentsrequest.md: id: c676b4aaf7af last_write_checksum: sha1:e7401af5f1bf51418be70813cb0bd1e3191f801d @@ -4322,6 +4354,10 @@ trackedFiles: id: ea5b7a9251d3 last_write_checksum: sha1:2a9d6c32bb2e1f592fd8a31d49cc13f3ab24c811 pristine_git_object: 122f41ba341ffde9ffbd2cd58ff4608a0cd5f55f + docs/models/operations/listfunctionalityenvironmentsrequest.md: + id: 438082e88ff7 + last_write_checksum: sha1:1dd7f5be2e92fe28298a0e81728bbd69723b85ef + pristine_git_object: f9e10aac161ab32bcdc63964a23c6d3593f45ec6 docs/models/operations/listfunctionalityservicesrequest.md: id: 65a635928d8c last_write_checksum: sha1:1fcebcea1e6737999c91ba81d9d37f2f9dba52cc @@ -4538,6 +4574,10 @@ trackedFiles: id: 6218749d8aeb last_write_checksum: sha1:8ec2be11a61490905d482adee7fad8d971a8c75b pristine_git_object: 9ee7fcc0b20212fc0f124671f3e6950e35330875 + docs/models/operations/listserviceenvironmentsrequest.md: + id: fc311c9f9c3a + last_write_checksum: sha1:7a83f472e695d095fd959ff9884f7d5eb86b8b73 + pristine_git_object: c40d1ced3d8518d3017ea4f3a2e0738904eab0a2 docs/models/operations/listservicesrequest.md: id: bb1e54e3c5ca last_write_checksum: sha1:a6a76146fe7a12b7bff370f6290009b182dd31b7 @@ -4844,8 +4884,8 @@ trackedFiles: pristine_git_object: a9422f2224de9d55abdcbb6f592fb3b103684e9e docs/models/operations/updateenvironmentrequest.md: id: cc9cad06e455 - last_write_checksum: sha1:564cf3a8d80fa82f8257942231049503bf0f5601 - pristine_git_object: d461401fc637c05ef1dbd29ccf0bbafd2515c180 + last_write_checksum: sha1:70c6caeb5af3cef41f35330ae8950fabfc5de3f4 + pristine_git_object: 1142aa1716d72ed825e8f72744673178af09de8b docs/models/operations/updatefieldmaprequest.md: id: 3843e847f795 last_write_checksum: sha1:daa95b74f389e9950e8e81a19eb473f67df6ebca @@ -5196,8 +5236,8 @@ trackedFiles: pristine_git_object: ba0189d53ff3c06d4cd0c7bb25b402817dfa2d71 docs/sdks/catalogentries/README.md: id: 99cd29e7b534 - last_write_checksum: sha1:0a3344b3e25bc7a46b06536f6c443364453cf938 - pristine_git_object: 1b018372e96d04fe517047dbf94c4465f9ad8e04 + last_write_checksum: sha1:21ae2729efe6d8b725b9c2a1d5fb8ddfe7ddea33 + pristine_git_object: 9650bb42229aa053887a6a39aed3a4f1d9e1f60b docs/sdks/changes/README.md: id: 408d4e899aad last_write_checksum: sha1:45ffcdc7a108f951a55f087b576b95dcb8e72ccd @@ -5236,8 +5276,8 @@ trackedFiles: pristine_git_object: 7c76f8909984df44f517d7f508837db6caa45df5 docs/sdks/retrospectives/README.md: id: bb67e68da091 - last_write_checksum: sha1:83914bd3501a70f8e04684ab2b0d46fab97d34af - pristine_git_object: 29b6c5a55bdfb80ee969ff101f223af45352d290 + last_write_checksum: sha1:730e88342f58f3d461ca9ad336a2d88272bbbad0 + pristine_git_object: a3b41e438ad7c02e9784af6f1ceb0050c76aadd3 docs/sdks/roles/README.md: id: 69204c99730f last_write_checksum: sha1:67f740bbe7367580a9802e46eb36664a6f3be797 @@ -5304,12 +5344,12 @@ trackedFiles: pristine_git_object: 011e2d35ddfa8d3789d10ac73e6f69367fa41304 jsr.json: id: 7f6ab7767282 - last_write_checksum: sha1:56dbaba43fcd1660fa5c9a25a2dd6df5d5b5f367 - pristine_git_object: dc8afd5b80b4dd39457b9d350926b883959cd818 + last_write_checksum: sha1:55195e0407f111621515b680f85b0d338d1ef780 + pristine_git_object: a700df79d2d6749bc16143f7494b5cac7092bc64 package.json: id: 7030d0b2f71b - last_write_checksum: sha1:fce5604922d2a591648bc2bb98b8580187964ab7 - pristine_git_object: ccafef8d73aee426621f2d48cd8b8a640a671722 + last_write_checksum: sha1:0cd14116cfb4fb4b3484768c6a818c2113839c58 + pristine_git_object: e72325569dbf19f53c65a196cd72d265a6860db7 src/core.ts: id: f431fdbcd144 last_write_checksum: sha1:08155b1540ecfe2a03e77acd91f1cf8a4690a6f7 @@ -5514,6 +5554,14 @@ trackedFiles: id: 30c66dcb57e6 last_write_checksum: sha1:9d371ba215ff7a04e7e299e5df6f5c4241664100 pristine_git_object: 003b532c766bf26fcc5dd47cbb5a76786c4613ba + src/funcs/catalogEntriesListEnvironmentFunctionalities.ts: + id: 67d5cab99fb9 + last_write_checksum: sha1:a5fafd49c96b23e5d8317ff666be6f903474cdaa + pristine_git_object: 711ffa709f9ba926fc2b86890b1e2a3bc5f7bb68 + src/funcs/catalogEntriesListEnvironmentServices.ts: + id: 8aaf7c726ce8 + last_write_checksum: sha1:0edfc32febd0b8bfecac00a86519830ff435e23f + pristine_git_object: fb928226ab6ac5bd24bb2652b8bcf838542e7faa src/funcs/catalogEntriesListEnvironments.ts: id: bf4773219de7 last_write_checksum: sha1:768d3d87187c7e67bb55f33fe3c6ff704a5b1605 @@ -5522,6 +5570,10 @@ trackedFiles: id: 747428bac05a last_write_checksum: sha1:4f187f8072996dfa404cc37677c5043a2e762961 pristine_git_object: 935662a96b7eaa0d9b9469fc456015a180d94858 + src/funcs/catalogEntriesListFunctionalityEnvironments.ts: + id: e98069295173 + last_write_checksum: sha1:15d1429f5cb374a03ffde06df19bdecea6cdf394 + pristine_git_object: 497c8e53e45ec7bd25bdefb6940c64b705fc6be3 src/funcs/catalogEntriesListFunctionalityServices.ts: id: 837a26a3b462 last_write_checksum: sha1:bcc978bd19a053811cdc034bc3ab9925dcef2964 @@ -5538,6 +5590,10 @@ trackedFiles: id: 2a559a1df3b0 last_write_checksum: sha1:c66aab92e624a979f515248d9f67a3daa58262cd pristine_git_object: 91a7c1eb70927db19ef2083f50bb04f4b81cd20e + src/funcs/catalogEntriesListServiceEnvironments.ts: + id: 013b9213e93b + last_write_checksum: sha1:73f7dd966fd0b7a84f751f31c59bd1e2abc24926 + pristine_git_object: 89ffdbcf06a06b060f03475fea44fda8795f5ad5 src/funcs/catalogEntriesListServices.ts: id: 30da23a30d4f last_write_checksum: sha1:ffa23470c37d23c6f1e63bd9c9afb3de58284ae6 @@ -6370,10 +6426,6 @@ trackedFiles: id: 8b0dd0bc5418 last_write_checksum: sha1:5b7a1b272a2dadb68ebb3240cebd296a8d2548ab pristine_git_object: 7caa4cca1c7cbf388f5f49fa818cb7812b05b1ea - src/funcs/retrospectivesGetRetrospectiveReportTemplate.ts: - id: 38ff436b746b - last_write_checksum: sha1:aa2f8b875bd309850972a58907e8a9b8551da661 - pristine_git_object: 50d931767fd78f5ce3faccbe4bc8fc0c2aabb829 src/funcs/retrospectivesGetRetrospectiveTemplate.ts: id: 2ce01d1e500c last_write_checksum: sha1:1be11c38f9931de98012a39f5af36c29673b7524 @@ -7168,8 +7220,8 @@ trackedFiles: pristine_git_object: 0aebd8b0a4867e35cb3348fc52921c3c0b4725b7 src/lib/config.ts: id: 320761608fb3 - last_write_checksum: sha1:ef595c5a3088c126977dc139c478ad9ff136cc21 - pristine_git_object: 15afaf54e63990e082f2a76d5b71cdb9057d8a2e + last_write_checksum: sha1:6c5335cdf84f7e598e4e547d0293b75f0fc655af + pristine_git_object: 0aef28f3f308661cdaf8ec9e7e4e30775b446fa3 src/lib/dlv.ts: id: b1988214835a last_write_checksum: sha1:1dd3e3fbb4550c4bf31f5ef997faff355d6f3250 @@ -7216,8 +7268,8 @@ trackedFiles: pristine_git_object: 47edb9725c2482c667e2ddc8a56b1fec4285c492 src/lib/sdks.ts: id: 8a6d91f1218d - last_write_checksum: sha1:c52907300f56c8d89d78a256d24b3651123c26c4 - pristine_git_object: 3e4562e7f22b332941b2a9830c6760bcca660af8 + last_write_checksum: sha1:7fb30e1dc23f6fd16d4eeb260b6bb48f155983f2 + pristine_git_object: 801ec54d218d9ea99a8a9a00d6e849f52327f5da src/lib/security.ts: id: 0502afa7922e last_write_checksum: sha1:a464105a9902115853d0bd0d5b56a09d2c889b52 @@ -7252,32 +7304,32 @@ trackedFiles: pristine_git_object: 0955a573c2ce989d63c737410ab8cc28706d9f74 src/mcp-server/mcp-server.ts: id: aabbc4ab07c1 - last_write_checksum: sha1:49cda7717d3a941d440748f7613c3cf977a0fde7 - pristine_git_object: f64973eac3e4d757b5362c6763a4033791c59b17 + last_write_checksum: sha1:b28df4c40e16159da14994281cb5332250b26170 + pristine_git_object: 5340edde2828ab41059f35f1056e21d5d2b3a344 src/mcp-server/prompts.ts: id: 26f3d73cbf31 - last_write_checksum: sha1:dac1290ca5ae82072cf9331431111f1d2b1b6067 - pristine_git_object: 4f19c23a0566fc287eccc355194f248c8fe19c4b + last_write_checksum: sha1:b77c7df03862852a51c676eb62bfa761b854c26b + pristine_git_object: af39cd60757fd6b8286762c6723afab9fa28f39d src/mcp-server/resources.ts: id: cb0c57ebeaea - last_write_checksum: sha1:bfc2a4efb6024344207e0f15173aa163e6c1b979 - pristine_git_object: cbdf6b7e469c6f8193d319c06d2f5b2d4ce3e04e + last_write_checksum: sha1:21d72da7f835097a61683ed1a6dcba2f30ed1cf5 + pristine_git_object: ce0980f1876a00b7dedf996e9d4d281fac66a245 src/mcp-server/scopes.ts: id: 8966d24256b2 last_write_checksum: sha1:77d0eb95785e84f9fd0b27c4612f8c6470489fe4 pristine_git_object: c25696d4c4f70e081fa5d87ad6891874c509a577 src/mcp-server/server.ts: id: 2784dd48e82a - last_write_checksum: sha1:3bc4a0537bdd9f24cd0c19a84537228c94aaddc3 - pristine_git_object: 69426223d2b3920bb8eb48c7a8ffe2da22979022 + last_write_checksum: sha1:64f062db20d30710d84d80d931ff3c3ffb3d64f6 + pristine_git_object: 289c5724dc6d03f0995b8d7fc2ba9d074a8c55ce src/mcp-server/shared.ts: id: 074e80d4be1e last_write_checksum: sha1:56c73d4429691516e35541825e759a0285747a2b pristine_git_object: 3e94144d13f0707bc300183ebb4325b367c297dd src/mcp-server/tools.ts: id: 654d5d1f2062 - last_write_checksum: sha1:5bedf56c036cda549d401d3cbecff731576e0d11 - pristine_git_object: c7d93c0cda0aebf9953a99fe96f9a5cafb9d0bc2 + last_write_checksum: sha1:81ce4d0b61829a0397855c222b10a64699f0fc7b + pristine_git_object: 5204fef7d729630feae412f07fe14e00ed986dfa src/mcp-server/tools/accountSettingsGetAiPreferences.ts: id: 503048e4ec77 last_write_checksum: sha1:af5cb806f6699ff73d24698e831ebfc5bd691def @@ -7478,6 +7530,14 @@ trackedFiles: id: 4e4058f26e9e last_write_checksum: sha1:6bbbc6411e50ad45f920970731213f8bc09515bc pristine_git_object: 54114531558c41b51a782334e03e68ca8a94e7e3 + src/mcp-server/tools/catalogEntriesListEnvironmentFunctionalities.ts: + id: 2c68fc53a2d9 + last_write_checksum: sha1:c0d226043edc7e0178001575da36014bf2858131 + pristine_git_object: 334f89a467fb2515ee0857d7a25c787f439e6a43 + src/mcp-server/tools/catalogEntriesListEnvironmentServices.ts: + id: 59234f65d122 + last_write_checksum: sha1:cf06415222d104d3d2c60e4bc50b8a6ffeb9ac91 + pristine_git_object: 0bfd2137b3a924973f4380347fc3d9667848943b src/mcp-server/tools/catalogEntriesListEnvironments.ts: id: df4f0ac5a6f5 last_write_checksum: sha1:a28de4ad8b9b86611c845a43b6419b6986e241a7 @@ -7486,6 +7546,10 @@ trackedFiles: id: 5b5842cc00ef last_write_checksum: sha1:4e284acacc0d5fb58da105ba298ad8dcfb5fc4d0 pristine_git_object: ee24c6bec8ffd792b4ef423b12667ec493b664eb + src/mcp-server/tools/catalogEntriesListFunctionalityEnvironments.ts: + id: 509564786f76 + last_write_checksum: sha1:51b8d88ac82c8cc9b1c0ee1b198a6db14c4ec2a9 + pristine_git_object: d8818bb1dce1bd6fc510eac65b617dcc63debfce src/mcp-server/tools/catalogEntriesListFunctionalityServices.ts: id: aeb7c3b708e2 last_write_checksum: sha1:8242daa7a29ac646b6ccdc7da4d430d730480109 @@ -7502,6 +7566,10 @@ trackedFiles: id: e39a43fa8d4e last_write_checksum: sha1:7026a5d1c768af18a30378c10a7437ad099271d1 pristine_git_object: 82fd124f685db6ae691df32d9c764039dd73b375 + src/mcp-server/tools/catalogEntriesListServiceEnvironments.ts: + id: e5ef68cad476 + last_write_checksum: sha1:db45ea9b1c5e7b730a84df932542e93cbcaa6b13 + pristine_git_object: 5e4a11938fdc25af96a4af6b2ff15801b40ea178 src/mcp-server/tools/catalogEntriesListServices.ts: id: e9f19be65ad0 last_write_checksum: sha1:ca6d97b09ea1b79ef5c69564741c5996fb8943f0 @@ -8334,10 +8402,6 @@ trackedFiles: id: bdd3c6e9a4c9 last_write_checksum: sha1:36e2ab051dca608fb433dd1f296bb2033f71d808 pristine_git_object: dd180d614f2871be716eac5d218f3cfacb70bf46 - src/mcp-server/tools/retrospectivesGetRetrospectiveReportTemplate.ts: - id: aaf9ec7dd40e - last_write_checksum: sha1:3767073a3bb6b953ad9f91ce6f327a70dfc70b29 - pristine_git_object: ecbda723e80eef7142a6fb1720ea9496ce07b380 src/mcp-server/tools/retrospectivesGetRetrospectiveTemplate.ts: id: ff51f00d7035 last_write_checksum: sha1:d74114023e10fd6cf221d12124295561c2858241 @@ -9272,12 +9336,12 @@ trackedFiles: pristine_git_object: 0ef4829c310f4cc75f34f47dab14deab992b69df src/models/components/createenvironment.ts: id: 2938829a6f30 - last_write_checksum: sha1:d3cc57f6af4dc15334fec9b7e4f3cfe6dc55e9a1 - pristine_git_object: bc5e376c5d3c6283929684e68f6b41433d0aad75 + last_write_checksum: sha1:6d994e4d22c6b2b1ce44e6c898a8f078bf3e70be + pristine_git_object: 15fbb2bdae84e5f16a5749bf83b34e50090d1ae7 src/models/components/createfunctionality.ts: id: f094c296477b - last_write_checksum: sha1:7fbe45063938d63dbec492350d40096a2df6da5a - pristine_git_object: e7249434f8b328fc8b48e1fbea40567fb64180c6 + last_write_checksum: sha1:12a2097b13e8e4eb92873f3820997c893f56c4a8 + pristine_git_object: f4a4127832b4dcfc45af7d5d53df2f50cf9547c9 src/models/components/createincident.ts: id: 781bd1f8abf8 last_write_checksum: sha1:2f8f2eeb8589ab734cd07657b63f6651376c1197 @@ -9384,8 +9448,8 @@ trackedFiles: pristine_git_object: 0c41b2546f1d5c72be6aebf42383e9b73bf948f4 src/models/components/createservice.ts: id: 1d5e99cab027 - last_write_checksum: sha1:68da5d4bb138f89342ba0e24d8a78048155ddb28 - pristine_git_object: 3a82fb4933e18382cc7931885ef04496a8c808c9 + last_write_checksum: sha1:4eb72302ef15ac80e284b974407b21a81e877e09 + pristine_git_object: 8462bdd4f6cb1e942b586d07fbaab1be5105368b src/models/components/createservicechecklistresponse.ts: id: fc55aae3ec14 last_write_checksum: sha1:6d635f1e9e82f59375374e720ebb1b1cdbaeefc6 @@ -9496,8 +9560,8 @@ trackedFiles: pristine_git_object: e22820fac7d324ec509f8b3339e641a315757705 src/models/components/environmententryentity.ts: id: 316bc9fbcbcc - last_write_checksum: sha1:94262f73f5b8378d8800662e137a603788a63cac - pristine_git_object: e7a819d6b3132105d9ee2834ec8d256c06e36a75 + last_write_checksum: sha1:959e157d2b2c2f95cbfd9015e502d2b7468a622b + pristine_git_object: 8612a618aaffbe95a63489c62d2505bfa0d95607 src/models/components/environmententryentitypaginated.ts: id: 5788ef0b2047 last_write_checksum: sha1:166935db40555b70ed470b37d2a8fce857eed380 @@ -9528,12 +9592,16 @@ trackedFiles: pristine_git_object: e235dd11b34817e5aa0a751e16e19f2057b014ab src/models/components/functionalityentity.ts: id: feff0714a4a0 - last_write_checksum: sha1:4db5a8e35878184bfe07aa22bb3be959a40df113 - pristine_git_object: 7a5ed69e9341b2413be3aefbaf51ce4dc58a14e4 + last_write_checksum: sha1:b6794f90f0df728b59e502bdd570f97e0f8c6a01 + pristine_git_object: 3516e6e50e92dfaf96d8fd1d6498c1ab1b48fa17 src/models/components/functionalityentitylite.ts: id: c1c36e4b057b last_write_checksum: sha1:6c14bc8d50c8ef178fcac477715fd7727055c5d2 pristine_git_object: a389247964aa412907938deee3602f94e50f16d3 + src/models/components/functionalityentitylitepaginated.ts: + id: ca61158518d7 + last_write_checksum: sha1:a5e1aa09953f7769d6d2bb1bcb03ecdadd8927e8 + pristine_git_object: 19cc7dbb5634bfaacbfd79801d29afcf2af0660d src/models/components/functionalityentitypaginated.ts: id: 5c2fab551010 last_write_checksum: sha1:c0bd3c020dff0183d5eb6987e94f6e1c891dd351 @@ -9664,8 +9732,8 @@ trackedFiles: pristine_git_object: cebbf78f6f2ed0dd28b19ea946bb3b7fa19a2777 src/models/components/incidentsretrospectivefieldentity.ts: id: d4cd79c8cb0d - last_write_checksum: sha1:51ca282728b76f6c7ef16a1532c9bd8b7d96fd33 - pristine_git_object: d62d9596c290b8b7e5616e1da19c7390d53ba92f + last_write_checksum: sha1:7e7aa5db37fc3d7420c9d1cdca7e234d9c5d5d2e + pristine_git_object: 177ad37c27f8ee1c97bd22732d07b751608f3b91 src/models/components/incidentsroleassignmententity.ts: id: 7a7702f06b6b last_write_checksum: sha1:74bf227d553b4a45449c5ab49aa57cc3351706f6 @@ -9704,8 +9772,8 @@ trackedFiles: pristine_git_object: e05562e8a7ace26170ce4b4855fbdaa113066354 src/models/components/index.ts: id: 0aa842dce54d - last_write_checksum: sha1:91625e736fbac89c46a3937d1c12e0606675ba03 - pristine_git_object: 260ff17e6f9b80ce7f078c211eb6fd789438aea1 + last_write_checksum: sha1:8afbac7810537178b4e11e8c54fd9f4e2955ce56 + pristine_git_object: 37ccccf06de07b801194115e075f7896f7b2cac7 src/models/components/infrastructuresearchentity.ts: id: 5c4e8595c0c0 last_write_checksum: sha1:ec56204e6e0d5e6f7998632e2f6e0bf677fd3725 @@ -10044,8 +10112,8 @@ trackedFiles: pristine_git_object: 80cd7ed85fa399a70adc147ea1ffad24ee472a27 src/models/components/nullableserviceentity.ts: id: c049dc5dc631 - last_write_checksum: sha1:fe10d41d2e7d2043015250d3dab2f95c08ff474d - pristine_git_object: 8a751d7d76fa5a44bff2a04a7596a0dafb4aa180 + last_write_checksum: sha1:0698cc31d5e040111c740c79f90ea478ff4e963c + pristine_git_object: fe2c8c1e0243c423ddaf0e54cf9cd632a9b0db32 src/models/components/nullableseveritymatrixconditionentity.ts: id: a13933f99493 last_write_checksum: sha1:516d3560ba96f38f3cb6017ac341691c44742631 @@ -10306,14 +10374,6 @@ trackedFiles: id: ef1214d57557 last_write_checksum: sha1:06f2bd64f44e14172c908bec5fe2169acda2d30b pristine_git_object: 066d791c7fc0d2bc50ddfc7ef62985ba44ffeae3 - src/models/components/retrospectivesreporttemplateentity.ts: - id: 8b01edf31950 - last_write_checksum: sha1:a63e68a61bf63eaf30fe1137a8f84bcb6169821f - pristine_git_object: cf271e7c384441fff88d3fdf1de7d0f66c412229 - src/models/components/retrospectivesreporttemplateentityelemententity.ts: - id: 5f95790584b9 - last_write_checksum: sha1:a8f6a8f3e0c1faa103eb885f95fe821c69eb70ea - pristine_git_object: 00ca465c237669102bdef7ea545e219ab21c818e src/models/components/retrospectivestemplateentity.ts: id: d8f3ed39f8aa last_write_checksum: sha1:ce1e6b3fcfe8de0692f1ad9ee53c1f1e4649ba34 @@ -10324,8 +10384,8 @@ trackedFiles: pristine_git_object: a1f7f17dbcc54ba6af1a9c3b0ede0ef49c456cf8 src/models/components/retrospectivestemplateentityreportelemententity.ts: id: 337146d79867 - last_write_checksum: sha1:d74e4b6ccb0f3a67f9a0d810e9dc62efad17a90f - pristine_git_object: 9bc5c9bc753e87041ebb829866f37b8b436673ee + last_write_checksum: sha1:e770376239d35d2eeac8bf16b305a42b138fcfe8 + pristine_git_object: fdfae8f021d9a6e2f485725b98305803fd0a18e6 src/models/components/roleentitypaginated.ts: id: 4794c53e339a last_write_checksum: sha1:ca267f24135c782e9b3c661a5021e0f8b1eaef97 @@ -10400,8 +10460,8 @@ trackedFiles: pristine_git_object: d6bc16a46525449ca8bafbe102baac2696a4737e src/models/components/serviceentity.ts: id: 844cf37db656 - last_write_checksum: sha1:eaf6af302d75792847cd4ab633935c6d33a2b7e0 - pristine_git_object: e026a37d6a3e839b2ca2d3185bc386a4e66729ad + last_write_checksum: sha1:9ad6100585f4c3d7e7d589da29b87c750d9b917c + pristine_git_object: f862d696db68661cfd4d3fac6ff89e865a11c3f5 src/models/components/serviceentitychecklist.ts: id: 07b12254ac5b last_write_checksum: sha1:5fbad4f81382d4731259c63038ade09ba1f23579 @@ -10410,6 +10470,10 @@ trackedFiles: id: ae45ec4e2d8f last_write_checksum: sha1:4761bb2189b569c7be9e185bdcf5feee488e2988 pristine_git_object: 9fa09d42ff2bc76ab157a6a29fa281f0a359bb6d + src/models/components/serviceentitylitepaginated.ts: + id: 5a9fad297f47 + last_write_checksum: sha1:447c918e8772ce0e3d479f417aee64fbfa662c77 + pristine_git_object: 510734e56405ef35f18bc67c5e6330bd9e46256b src/models/components/serviceentitypaginated.ts: id: ffb72235f00c last_write_checksum: sha1:d0f19d10070c8412d5e06781e808addd5f2da3d7 @@ -10736,12 +10800,12 @@ trackedFiles: pristine_git_object: b675c709251bb8d0031d3a1dd2d56a1ce20e6b7b src/models/components/updateenvironment.ts: id: d3726370271a - last_write_checksum: sha1:6a5b985e63bf954143a4b68105c4e4ec8fa63544 - pristine_git_object: f1f099f852d03b3aad1199dea54d0ded04614d74 + last_write_checksum: sha1:d62cb729cf4cae7131c552083ea2a82fca1c235e + pristine_git_object: 01f254737114baa7d06af4cd4953e743850fcf67 src/models/components/updatefunctionality.ts: id: 07f160674669 - last_write_checksum: sha1:0a7d1f8c22a031e0db623a631caf7f8eba26db3a - pristine_git_object: 413f9f15c6ec5cd935f362f479f35af0f034eba7 + last_write_checksum: sha1:9956ac1cb978d336a72af947dc85a0413c55edd1 + pristine_git_object: 9c6e62d87eb0a314f3ed47827a0d842572b92910 src/models/components/updateincident.ts: id: 99aa0e74f957 last_write_checksum: sha1:fb25c6d6ef7db4670c79620896aa34df4b109b06 @@ -10832,8 +10896,8 @@ trackedFiles: pristine_git_object: 014e370b964915f81346df0689f7be88ff898914 src/models/components/updaterunbook.ts: id: 1389664f2c82 - last_write_checksum: sha1:83a75ae152549758ab144880329cafd88cd04335 - pristine_git_object: 6ea9d66564eba0c80e8e981481175714eefb6816 + last_write_checksum: sha1:7b5b6990fe7edf01b57798316b5b10b9442e424b + pristine_git_object: 4591f196c596da559705662189b130a51cfc5e49 src/models/components/updaterunbookexecutionstep.ts: id: 3a281ea5fe60 last_write_checksum: sha1:2423276dade6a7f777ab622b9b4b0c3cbb9b8c56 @@ -10856,8 +10920,8 @@ trackedFiles: pristine_git_object: 18af6e13cf7efad6350183388b2a9adf104aae6f src/models/components/updateservice.ts: id: 11ba6b3f0ec7 - last_write_checksum: sha1:24af8e0f1f26969e69efdc667f7cf89d22ab2127 - pristine_git_object: 551f6ae90ff57b466106e7fbe828775d1d23f604 + last_write_checksum: sha1:2119fa26674cd732e2102d835f62c231a9bf509b + pristine_git_object: 4e75f08e13067aa8c5293d360d1db2e98720e275 src/models/components/updateservicedependency.ts: id: 7868a7fc4a33 last_write_checksum: sha1:bace860c92b478469c076d2f55230d0d2641b238 @@ -11610,10 +11674,6 @@ trackedFiles: id: ad1cdaaa27dd last_write_checksum: sha1:63d6a9a2a273afa3124ce89a46c40f27a9214d27 pristine_git_object: 439ab75e003072e4586678d70adce08adcc9fc9d - src/models/operations/getretrospectivereporttemplate.ts: - id: 30f18db4cdc3 - last_write_checksum: sha1:5e105dd7c07907739982b4c7b146cd89ea80cc39 - pristine_git_object: 948e5d5588b41cc2c2045f3eed226750050ea77c src/models/operations/getretrospectivetemplate.ts: id: fb1c79444fc8 last_write_checksum: sha1:a4cf7694e4dbd4d649723b0d183296790bd5d066 @@ -11780,8 +11840,8 @@ trackedFiles: pristine_git_object: deb12e14f3fba4988eb6c8d7ece79657aa8eb0ed src/models/operations/index.ts: id: 0d9ffaf774d2 - last_write_checksum: sha1:dd6f3d3952dd6ef9bc772854cf80adb1b17f66e4 - pristine_git_object: b185e7af04204215bedbb32ca6223e4cade49b8b + last_write_checksum: sha1:2f7d62851350d62dbaee9c1953f2c8cbac900943 + pristine_git_object: f2c19b084e5a8ccc0e655a45f29f9ff8fd53a9ce src/models/operations/ingestcatalogdata.ts: id: c511734f64a0 last_write_checksum: sha1:fe1283871f529a4960a70a7a13e9dd850ef421d0 @@ -11882,10 +11942,18 @@ trackedFiles: id: 5165f066adaa last_write_checksum: sha1:dee90ffcc87aec02bfe596be53a94a7c31775754 pristine_git_object: e93dac92266ffd03ed5e2c0a14de8345283d5ca9 + src/models/operations/listenvironmentfunctionalities.ts: + id: 6ee810906ab0 + last_write_checksum: sha1:7e0e60e09d8ced049afd3f3daa1d553c49a9900a + pristine_git_object: b55f1de67840b35d1d52f98c15cb656006399cef src/models/operations/listenvironments.ts: id: 4d1c7e9a8a5d last_write_checksum: sha1:aa10daa82772646fda44410d13b922a3bd3ec12c pristine_git_object: 0dff59be2db3fa36097c7b3e8c69f4ba0fbc5f84 + src/models/operations/listenvironmentservices.ts: + id: e21c93838014 + last_write_checksum: sha1:130105b8940c399c56d01b6ae251b51e083d46ba + pristine_git_object: 753ebcbafe15562724dda0340fbefe265d8a1e11 src/models/operations/listfieldmapavailablefields.ts: id: 6d41c32176ed last_write_checksum: sha1:8d719e9dd67348e8c66807373e6d85b66e4a7bd3 @@ -11894,6 +11962,10 @@ trackedFiles: id: f8254ba279e0 last_write_checksum: sha1:f52454b6f2aa22614d71f341dbe07c021ccfa39e pristine_git_object: ccec16aceeab394b29b08b6b090b125c090698c5 + src/models/operations/listfunctionalityenvironments.ts: + id: 1adcf842b534 + last_write_checksum: sha1:96baee7eac312b5cd86143280348e02849fce244 + pristine_git_object: c8c91a1e00a83425298db6240778e7766786173c src/models/operations/listfunctionalityservices.ts: id: 8fe2bec49273 last_write_checksum: sha1:f677b6a217f631931cd9c5e08ba3b7abd3c6ffee @@ -12074,6 +12146,10 @@ trackedFiles: id: 9084b7bac8de last_write_checksum: sha1:2a8905bd722296554d9db4c508cf995cd7a1928c pristine_git_object: 0c61dbbc96349235213c1b3a171b6d0ba547c399 + src/models/operations/listserviceenvironments.ts: + id: aacca62f8097 + last_write_checksum: sha1:dd828087f0620bf696dbea4aa267f9d16708521e + pristine_git_object: de131eea5df66f210effa867f023fd580b8d863b src/models/operations/listservices.ts: id: fabd1ff3b18b last_write_checksum: sha1:dd50dfec0809677fb20d0c131ee17de244f196af @@ -12596,8 +12672,8 @@ trackedFiles: pristine_git_object: 24308681a98f9cc4ea54029c12416e8eb11af965 src/sdk/catalogentries.ts: id: "4124292837e9" - last_write_checksum: sha1:714a25f10aa91430b8739357053cfe065d177eb5 - pristine_git_object: 96bb3a564f2312790975f73036197b2f9fbdb7ff + last_write_checksum: sha1:0d6b8c19a8b0e4796d6577b53875842a48e0c888 + pristine_git_object: 9005ba36a6bac7961b4a7e9ca6519ba66d230df4 src/sdk/changes.ts: id: 8594fbe4a8eb last_write_checksum: sha1:540747e097acb3a52062bff70cb6a7d80b140ab5 @@ -12640,8 +12716,8 @@ trackedFiles: pristine_git_object: cbc41e9896a92ff0603d40ca422a144f974ffb27 src/sdk/retrospectives.ts: id: 0b5cdcbcf4b4 - last_write_checksum: sha1:c38705cc0c5d2243228c5348f8983321dd939896 - pristine_git_object: 6bf17cb5aa1b8eaab79dda0093fc46676a6a8cac + last_write_checksum: sha1:3d7225e93a2b824fc809452a10430230b5688de3 + pristine_git_object: 9c71d7474e0757ee93de4f952c15e0241268df38 src/sdk/roles.ts: id: 438f2f8703b8 last_write_checksum: sha1:18a6bb2ff32272f5d02a69def43ac144f4c984ce @@ -12795,7 +12871,7 @@ examples: path: environment_id: "" requestBody: - application/json: {"name": ""} + application/json: {"remove_remaining_functionalities": false, "remove_remaining_services": false} responses: "200": application/json: {} @@ -12842,7 +12918,7 @@ examples: path: service_id: "" requestBody: - application/json: {} + application/json: {"remove_remaining_environments": false} responses: "200": application/json: {} @@ -12951,7 +13027,7 @@ examples: path: functionality_id: "" requestBody: - application/json: {"remove_remaining_services": false} + application/json: {"remove_remaining_services": false, "remove_remaining_environments": false} responses: "200": application/json: {} @@ -16243,6 +16319,38 @@ examples: responses: "200": application/json: {} + list_environment_services: + speakeasy-default-list-environment-services: + parameters: + path: + environment_id: "" + responses: + "200": + application/json: {} + list_environment_functionalities: + speakeasy-default-list-environment-functionalities: + parameters: + path: + environment_id: "" + responses: + "200": + application/json: {} + list_service_environments: + speakeasy-default-list-service-environments: + parameters: + path: + service_id: "" + responses: + "200": + application/json: {} + list_functionality_environments: + speakeasy-default-list-functionality-environments: + parameters: + path: + functionality_id: "" + responses: + "200": + application/json: {} examplesVersion: 1.0.2 generatedTests: {} generatedFiles: diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 455bcc4a..6f69187b 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -29,7 +29,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false typescript: - version: 1.2.1 + version: 1.2.2 acceptHeaderEnum: true additionalDependencies: dependencies: {} @@ -49,6 +49,7 @@ typescript: enumFormat: union envVarPrefix: FIREHYDRANT exportZodModelNamespace: false + flatAdditionalProperties: false flattenGlobalSecurity: true flattenSdk: true flattenSpecOptions: @@ -78,6 +79,7 @@ typescript: outputModelSuffix: output packageName: firehydrant-typescript-sdk preApplyUnionDiscriminators: true + preserveModelFieldNames: false responseFormat: flat sseFlatResponse: false templateVersion: v2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index eb4323ac..c5aed7f2 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.680.0 +speakeasyVersion: 1.685.2 sources: firehydrant-oas: sourceNamespace: firehydrant-oas - sourceRevisionDigest: sha256:c64171a8ede22682e99faf43521037dfe52edd8772bbe7b39eb0d4c0006da265 - sourceBlobDigest: sha256:6387d519d156ca1bb637eecad25876fafa3833f3cc8a24d515dd29b0cb8d11dd + sourceRevisionDigest: sha256:1f3d4e2a981c6ccf4403457c0d9127c42ddf641f81b3fec72144f008ab048d3c + sourceBlobDigest: sha256:4ec09d5ca2830f2b4460c1efc6be27ae960c68d80bf20475eb5c89b64591a0c3 tags: - latest - - speakeasy-sdk-regen-1766014254 + - speakeasy-sdk-regen-1767917347 - 0.0.1 firehydrant-typescript-sdk-OAS: sourceNamespace: firehydrant-typescript-sdk-oas @@ -19,10 +19,10 @@ targets: firehydrant-typescript-sdk: source: firehydrant-oas sourceNamespace: firehydrant-oas - sourceRevisionDigest: sha256:c64171a8ede22682e99faf43521037dfe52edd8772bbe7b39eb0d4c0006da265 - sourceBlobDigest: sha256:6387d519d156ca1bb637eecad25876fafa3833f3cc8a24d515dd29b0cb8d11dd + sourceRevisionDigest: sha256:1f3d4e2a981c6ccf4403457c0d9127c42ddf641f81b3fec72144f008ab048d3c + sourceBlobDigest: sha256:4ec09d5ca2830f2b4460c1efc6be27ae960c68d80bf20475eb5c89b64591a0c3 codeSamplesNamespace: firehydrant-typescript-sdk-oas-code-samples - codeSamplesRevisionDigest: sha256:244f78f04a4c37629e76321f971b504ec8b1672584dc59a8b6ffab48b1d9036f + codeSamplesRevisionDigest: sha256:175b371852ba4e925528248b5a4f36af58133cc61f2e8522e1fccf3a821d78a9 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 1fe19ee8..483e1363 100644 --- a/README.md +++ b/README.md @@ -375,12 +375,15 @@ run(); * [getEnvironment](docs/sdks/catalogentries/README.md#getenvironment) - Get an environment * [deleteEnvironment](docs/sdks/catalogentries/README.md#deleteenvironment) - Archive an environment * [updateEnvironment](docs/sdks/catalogentries/README.md#updateenvironment) - Update an environment +* [listEnvironmentServices](docs/sdks/catalogentries/README.md#listenvironmentservices) - List services for an environment +* [listEnvironmentFunctionalities](docs/sdks/catalogentries/README.md#listenvironmentfunctionalities) - List functionalities for an environment * [listServices](docs/sdks/catalogentries/README.md#listservices) - List services * [createService](docs/sdks/catalogentries/README.md#createservice) - Create a service * [createServiceLinks](docs/sdks/catalogentries/README.md#createservicelinks) - Create multiple services linked to external services * [getService](docs/sdks/catalogentries/README.md#getservice) - Get a service * [deleteService](docs/sdks/catalogentries/README.md#deleteservice) - Delete a service * [updateService](docs/sdks/catalogentries/README.md#updateservice) - Update a service +* [listServiceEnvironments](docs/sdks/catalogentries/README.md#listserviceenvironments) - List environments for a service * [getServiceDependencies](docs/sdks/catalogentries/README.md#getservicedependencies) - List dependencies for a service * [listServiceAvailableUpstreamDependencies](docs/sdks/catalogentries/README.md#listserviceavailableupstreamdependencies) - List available upstream service dependencies * [listServiceAvailableDownstreamDependencies](docs/sdks/catalogentries/README.md#listserviceavailabledownstreamdependencies) - List available downstream service dependencies @@ -395,6 +398,7 @@ run(); * [getFunctionality](docs/sdks/catalogentries/README.md#getfunctionality) - Get a functionality * [deleteFunctionality](docs/sdks/catalogentries/README.md#deletefunctionality) - Archive a functionality * [updateFunctionality](docs/sdks/catalogentries/README.md#updatefunctionality) - Update a functionality +* [listFunctionalityEnvironments](docs/sdks/catalogentries/README.md#listfunctionalityenvironments) - List environments for a functionality * [listFunctionalityServices](docs/sdks/catalogentries/README.md#listfunctionalityservices) - List services for a functionality * [listUserOwnedServices](docs/sdks/catalogentries/README.md#listuserownedservices) - List services owned by a user's teams * [listInfrastructures](docs/sdks/catalogentries/README.md#listinfrastructures) - Lists functionality, service and environment objects @@ -648,7 +652,6 @@ run(); * [getRetrospectiveTemplate](docs/sdks/retrospectives/README.md#getretrospectivetemplate) - Get a retrospective template * [deleteRetrospectiveTemplate](docs/sdks/retrospectives/README.md#deleteretrospectivetemplate) - Delete a retrospective template * [updateRetrospectiveTemplate](docs/sdks/retrospectives/README.md#updateretrospectivetemplate) - Update a retrospective template -* [getRetrospectiveReportTemplate](docs/sdks/retrospectives/README.md#getretrospectivereporttemplate) - Get a retrospective report template ### [Roles](docs/sdks/roles/README.md) @@ -924,12 +927,16 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`catalogEntriesGetServiceDependencies`](docs/sdks/catalogentries/README.md#getservicedependencies) - List dependencies for a service - [`catalogEntriesGetServiceDependency`](docs/sdks/catalogentries/README.md#getservicedependency) - Get a service dependency - [`catalogEntriesIngestCatalogData`](docs/sdks/catalogentries/README.md#ingestcatalogdata) - Ingest service catalog data +- [`catalogEntriesListEnvironmentFunctionalities`](docs/sdks/catalogentries/README.md#listenvironmentfunctionalities) - List functionalities for an environment - [`catalogEntriesListEnvironments`](docs/sdks/catalogentries/README.md#listenvironments) - List environments +- [`catalogEntriesListEnvironmentServices`](docs/sdks/catalogentries/README.md#listenvironmentservices) - List services for an environment - [`catalogEntriesListFunctionalities`](docs/sdks/catalogentries/README.md#listfunctionalities) - List functionalities +- [`catalogEntriesListFunctionalityEnvironments`](docs/sdks/catalogentries/README.md#listfunctionalityenvironments) - List environments for a functionality - [`catalogEntriesListFunctionalityServices`](docs/sdks/catalogentries/README.md#listfunctionalityservices) - List services for a functionality - [`catalogEntriesListInfrastructures`](docs/sdks/catalogentries/README.md#listinfrastructures) - Lists functionality, service and environment objects - [`catalogEntriesListServiceAvailableDownstreamDependencies`](docs/sdks/catalogentries/README.md#listserviceavailabledownstreamdependencies) - List available downstream service dependencies - [`catalogEntriesListServiceAvailableUpstreamDependencies`](docs/sdks/catalogentries/README.md#listserviceavailableupstreamdependencies) - List available upstream service dependencies +- [`catalogEntriesListServiceEnvironments`](docs/sdks/catalogentries/README.md#listserviceenvironments) - List environments for a service - [`catalogEntriesListServices`](docs/sdks/catalogentries/README.md#listservices) - List services - [`catalogEntriesListUserOwnedServices`](docs/sdks/catalogentries/README.md#listuserownedservices) - List services owned by a user's teams - [`catalogEntriesRefreshCatalog`](docs/sdks/catalogentries/README.md#refreshcatalog) - Refresh a service catalog @@ -1138,7 +1145,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`retrospectivesGetIncidentRetrospectiveField`](docs/sdks/retrospectives/README.md#getincidentretrospectivefield) - Get a retrospective field - [`retrospectivesGetPostMortemQuestion`](docs/sdks/retrospectives/README.md#getpostmortemquestion) - Get a retrospective question - [`retrospectivesGetPostMortemReport`](docs/sdks/retrospectives/README.md#getpostmortemreport) - Get a retrospective report -- [`retrospectivesGetRetrospectiveReportTemplate`](docs/sdks/retrospectives/README.md#getretrospectivereporttemplate) - Get a retrospective report template - [`retrospectivesGetRetrospectiveTemplate`](docs/sdks/retrospectives/README.md#getretrospectivetemplate) - Get a retrospective template - [`retrospectivesListIncidentRetrospectives`](docs/sdks/retrospectives/README.md#listincidentretrospectives) - All attached retrospectives for an incident - [`retrospectivesListPostMortemQuestions`](docs/sdks/retrospectives/README.md#listpostmortemquestions) - List retrospective questions @@ -1507,7 +1513,7 @@ run(); **Inherit from [`FirehydrantError`](./src/models/errors/firehydranterror.ts)**: -* [`ErrorEntity`](./src/models/errors/errorentity.ts): ErrorEntity model. Applicable to 12 of 458 methods.* +* [`ErrorEntity`](./src/models/errors/errorentity.ts): ErrorEntity model. Applicable to 12 of 461 methods.* * [`ResponseValidationError`](./src/models/errors/responsevalidationerror.ts): Type mismatch between the data returned from the server and the structure expected by the SDK. See `error.rawValue` for the raw value and `error.pretty()` for a nicely formatted multi-line string. diff --git a/RELEASES.md b/RELEASES.md index fe5d2b36..01a7aa7c 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -266,4 +266,14 @@ Based on: ### Generated - [typescript v1.2.1] . ### Releases -- [NPM v1.2.1] https://www.npmjs.com/package/firehydrant-typescript-sdk/v/1.2.1 - . \ No newline at end of file +- [NPM v1.2.1] https://www.npmjs.com/package/firehydrant-typescript-sdk/v/1.2.1 - . + +## 2026-01-15 00:09:01 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.685.2 (2.795.6) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v1.2.2] . +### Releases +- [NPM v1.2.2] https://www.npmjs.com/package/firehydrant-typescript-sdk/v/1.2.2 - . \ No newline at end of file diff --git a/docs/models/components/bulkupdateincidentmilestones.md b/docs/models/components/bulkupdateincidentmilestones.md index d0b5570d..7613fc1a 100644 --- a/docs/models/components/bulkupdateincidentmilestones.md +++ b/docs/models/components/bulkupdateincidentmilestones.md @@ -17,7 +17,7 @@ let value: BulkUpdateIncidentMilestones = { milestones: [ { type: "", - occurredAt: new Date("2025-10-01T23:28:44.501Z"), + occurredAt: new Date("2026-10-01T23:28:44.501Z"), }, ], }; diff --git a/docs/models/components/bulkupdateincidentmilestonesmilestone.md b/docs/models/components/bulkupdateincidentmilestonesmilestone.md index a5734140..562671e7 100644 --- a/docs/models/components/bulkupdateincidentmilestonesmilestone.md +++ b/docs/models/components/bulkupdateincidentmilestonesmilestone.md @@ -7,7 +7,7 @@ import { BulkUpdateIncidentMilestonesMilestone } from "firehydrant-typescript-sd let value: BulkUpdateIncidentMilestonesMilestone = { type: "", - occurredAt: new Date("2025-10-08T05:09:58.072Z"), + occurredAt: new Date("2026-10-08T05:09:58.072Z"), }; ``` diff --git a/docs/models/components/content.md b/docs/models/components/content.md new file mode 100644 index 00000000..59443942 --- /dev/null +++ b/docs/models/components/content.md @@ -0,0 +1,14 @@ +# Content + +## Example Usage + +```typescript +import { Content } from "firehydrant-typescript-sdk/models/components"; + +let value: Content = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/createenvironment.md b/docs/models/components/createenvironment.md index 77be4498..0a1641d8 100644 --- a/docs/models/components/createenvironment.md +++ b/docs/models/components/createenvironment.md @@ -14,7 +14,9 @@ let value: CreateEnvironment = { ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `name` | *string* | :heavy_check_mark: | N/A | -| `description` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | +| `name` | *string* | :heavy_check_mark: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `functionalities` | [components.CreateEnvironmentFunctionality](../../models/components/createenvironmentfunctionality.md)[] | :heavy_minus_sign: | N/A | +| `services` | [components.CreateEnvironmentService](../../models/components/createenvironmentservice.md)[] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/createenvironmentfunctionality.md b/docs/models/components/createenvironmentfunctionality.md new file mode 100644 index 00000000..1b6ccf58 --- /dev/null +++ b/docs/models/components/createenvironmentfunctionality.md @@ -0,0 +1,17 @@ +# CreateEnvironmentFunctionality + +## Example Usage + +```typescript +import { CreateEnvironmentFunctionality } from "firehydrant-typescript-sdk/models/components"; + +let value: CreateEnvironmentFunctionality = { + id: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| --------------------- | --------------------- | --------------------- | --------------------- | +| `id` | *string* | :heavy_check_mark: | ID of a functionality | \ No newline at end of file diff --git a/docs/models/operations/getretrospectivereporttemplaterequest.md b/docs/models/components/createenvironmentservice.md similarity index 58% rename from docs/models/operations/getretrospectivereporttemplaterequest.md rename to docs/models/components/createenvironmentservice.md index 7079507c..91e3e3a3 100644 --- a/docs/models/operations/getretrospectivereporttemplaterequest.md +++ b/docs/models/components/createenvironmentservice.md @@ -1,11 +1,11 @@ -# GetRetrospectiveReportTemplateRequest +# CreateEnvironmentService ## Example Usage ```typescript -import { GetRetrospectiveReportTemplateRequest } from "firehydrant-typescript-sdk/models/operations"; +import { CreateEnvironmentService } from "firehydrant-typescript-sdk/models/components"; -let value: GetRetrospectiveReportTemplateRequest = { +let value: CreateEnvironmentService = { id: "", }; ``` @@ -14,4 +14,4 @@ let value: GetRetrospectiveReportTemplateRequest = { | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `id` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| `id` | *string* | :heavy_check_mark: | ID of a service | \ No newline at end of file diff --git a/docs/models/components/createfunctionality.md b/docs/models/components/createfunctionality.md index 9dc94ef8..66731398 100644 --- a/docs/models/components/createfunctionality.md +++ b/docs/models/components/createfunctionality.md @@ -19,6 +19,7 @@ let value: CreateFunctionality = { | `name` | *string* | :heavy_check_mark: | N/A | | `description` | *string* | :heavy_minus_sign: | N/A | | `services` | [components.CreateFunctionalityService](../../models/components/createfunctionalityservice.md)[] | :heavy_minus_sign: | N/A | +| `environments` | [components.CreateFunctionalityEnvironment](../../models/components/createfunctionalityenvironment.md)[] | :heavy_minus_sign: | N/A | | `labels` | Record | :heavy_minus_sign: | A hash of label keys and values | | `serviceTier` | [components.CreateFunctionalityServiceTier](../../models/components/createfunctionalityservicetier.md) | :heavy_minus_sign: | Integer representing functionality tier. Lower values represent higher criticality. Default is 5. | | `alertOnAdd` | *boolean* | :heavy_minus_sign: | N/A | diff --git a/docs/models/components/createfunctionalityenvironment.md b/docs/models/components/createfunctionalityenvironment.md new file mode 100644 index 00000000..cace2640 --- /dev/null +++ b/docs/models/components/createfunctionalityenvironment.md @@ -0,0 +1,17 @@ +# CreateFunctionalityEnvironment + +## Example Usage + +```typescript +import { CreateFunctionalityEnvironment } from "firehydrant-typescript-sdk/models/components"; + +let value: CreateFunctionalityEnvironment = { + id: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------- | -------------------- | -------------------- | -------------------- | +| `id` | *string* | :heavy_check_mark: | ID of an environment | \ No newline at end of file diff --git a/docs/models/components/createincidentmilestone.md b/docs/models/components/createincidentmilestone.md index 3a1aa8c7..98d62ef2 100644 --- a/docs/models/components/createincidentmilestone.md +++ b/docs/models/components/createincidentmilestone.md @@ -7,7 +7,7 @@ import { CreateIncidentMilestone } from "firehydrant-typescript-sdk/models/compo let value: CreateIncidentMilestone = { type: "", - occurredAt: new Date("2024-04-24T13:05:36.106Z"), + occurredAt: new Date("2025-04-24T13:05:36.106Z"), }; ``` diff --git a/docs/models/components/createoncallshift.md b/docs/models/components/createoncallshift.md index ae116b20..eb706e57 100644 --- a/docs/models/components/createoncallshift.md +++ b/docs/models/components/createoncallshift.md @@ -8,8 +8,8 @@ Create a Signals on-call shift in a schedule. import { CreateOnCallShift } from "firehydrant-typescript-sdk/models/components"; let value: CreateOnCallShift = { - startTime: new Date("2024-08-17T02:34:49.567Z"), - endTime: new Date("2023-06-01T00:39:49.630Z"), + startTime: new Date("2025-08-17T02:34:49.567Z"), + endTime: new Date("2024-05-31T00:39:49.630Z"), }; ``` diff --git a/docs/models/components/createscheduledmaintenance.md b/docs/models/components/createscheduledmaintenance.md index d1395b72..b63a0847 100644 --- a/docs/models/components/createscheduledmaintenance.md +++ b/docs/models/components/createscheduledmaintenance.md @@ -9,8 +9,8 @@ import { CreateScheduledMaintenance } from "firehydrant-typescript-sdk/models/co let value: CreateScheduledMaintenance = { name: "", - startsAt: new Date("2023-04-13T10:47:11.279Z"), - endsAt: new Date("2025-10-18T12:37:20.450Z"), + startsAt: new Date("2024-04-12T10:47:11.279Z"), + endsAt: new Date("2026-10-18T12:37:20.450Z"), }; ``` diff --git a/docs/models/components/createservice.md b/docs/models/components/createservice.md index 365740c9..fa1cec4b 100644 --- a/docs/models/components/createservice.md +++ b/docs/models/components/createservice.md @@ -21,6 +21,7 @@ let value: CreateService = { | `labels` | Record | :heavy_minus_sign: | A hash of label keys and values | | `serviceTier` | [components.CreateServiceServiceTier](../../models/components/createserviceservicetier.md) | :heavy_minus_sign: | Integer representing service tier. Lower values represent higher criticality. If not specified the default value will be 5. | | `functionalities` | [components.CreateServiceFunctionality](../../models/components/createservicefunctionality.md)[] | :heavy_minus_sign: | An array of functionalities | +| `environments` | [components.CreateServiceEnvironment](../../models/components/createserviceenvironment.md)[] | :heavy_minus_sign: | N/A | | `links` | [components.CreateServiceLink](../../models/components/createservicelink.md)[] | :heavy_minus_sign: | An array of links to associate with this service | | `owner` | [components.CreateServiceOwner](../../models/components/createserviceowner.md) | :heavy_minus_sign: | An object representing a Team that owns the service | | `teams` | [components.CreateServiceTeam](../../models/components/createserviceteam.md)[] | :heavy_minus_sign: | An array of teams to attach to this service. | diff --git a/docs/models/components/createserviceenvironment.md b/docs/models/components/createserviceenvironment.md new file mode 100644 index 00000000..8ce81372 --- /dev/null +++ b/docs/models/components/createserviceenvironment.md @@ -0,0 +1,17 @@ +# CreateServiceEnvironment + +## Example Usage + +```typescript +import { CreateServiceEnvironment } from "firehydrant-typescript-sdk/models/components"; + +let value: CreateServiceEnvironment = { + id: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------- | -------------------- | -------------------- | -------------------- | +| `id` | *string* | :heavy_check_mark: | ID of an environment | \ No newline at end of file diff --git a/docs/models/components/environmententryentity.md b/docs/models/components/environmententryentity.md index 50124e45..71ce3704 100644 --- a/docs/models/components/environmententryentity.md +++ b/docs/models/components/environmententryentity.md @@ -21,4 +21,6 @@ let value: EnvironmentEntryEntity = {}; | `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The time the environment was updated | | `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | The time the environment was created | | `activeIncidents` | *string*[] | :heavy_minus_sign: | List of active incident guids | -| `externalResources` | [components.ExternalResourceEntity](../../models/components/externalresourceentity.md)[] | :heavy_minus_sign: | Information about known linkages to representations of services outside of FireHydrant. | \ No newline at end of file +| `externalResources` | [components.ExternalResourceEntity](../../models/components/externalresourceentity.md)[] | :heavy_minus_sign: | Information about known linkages to representations of services outside of FireHydrant. | +| `functionalities` | [components.FunctionalityEntityLite](../../models/components/functionalityentitylite.md)[] | :heavy_minus_sign: | Functionalities related to this environment | +| `services` | [components.ServiceEntityLite](../../models/components/serviceentitylite.md)[] | :heavy_minus_sign: | Services related to this environment | \ No newline at end of file diff --git a/docs/models/components/functionalityentity.md b/docs/models/components/functionalityentity.md index 914a08cd..f780250b 100644 --- a/docs/models/components/functionalityentity.md +++ b/docs/models/components/functionalityentity.md @@ -29,5 +29,6 @@ let value: FunctionalityEntity = {}; | `autoAddRespondingTeam` | *boolean* | :heavy_minus_sign: | N/A | | `updatedBy` | [components.NullableAuthorEntity](../../models/components/nullableauthorentity.md) | :heavy_minus_sign: | N/A | | `services` | [components.ServiceEntityLite](../../models/components/serviceentitylite.md)[] | :heavy_minus_sign: | Services this functionality provides | +| `environments` | [components.EnvironmentEntryEntity](../../models/components/environmententryentity.md)[] | :heavy_minus_sign: | Environments related to this functionality | | `externalResources` | [components.ExternalResourceEntity](../../models/components/externalresourceentity.md)[] | :heavy_minus_sign: | Information about known linkages to representations of services outside of FireHydrant. | | `teams` | [components.TeamEntityLite](../../models/components/teamentitylite.md)[] | :heavy_minus_sign: | List of teams attached to the functionality | \ No newline at end of file diff --git a/docs/models/components/functionalityentitylitepaginated.md b/docs/models/components/functionalityentitylitepaginated.md new file mode 100644 index 00000000..a5065560 --- /dev/null +++ b/docs/models/components/functionalityentitylitepaginated.md @@ -0,0 +1,18 @@ +# FunctionalityEntityLitePaginated + +FunctionalityEntityLitePaginated model + +## Example Usage + +```typescript +import { FunctionalityEntityLitePaginated } from "firehydrant-typescript-sdk/models/components"; + +let value: FunctionalityEntityLitePaginated = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `data` | [components.FunctionalityEntityLite](../../models/components/functionalityentitylite.md)[] | :heavy_minus_sign: | N/A | +| `pagination` | [components.NullablePaginationEntity](../../models/components/nullablepaginationentity.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/incidentsretrospectivefieldentity.md b/docs/models/components/incidentsretrospectivefieldentity.md index 46058e12..43b9d875 100644 --- a/docs/models/components/incidentsretrospectivefieldentity.md +++ b/docs/models/components/incidentsretrospectivefieldentity.md @@ -21,5 +21,6 @@ let value: IncidentsRetrospectiveFieldEntity = {}; | `permissibleValues` | *string*[] | :heavy_minus_sign: | N/A | | `isRequired` | *boolean* | :heavy_minus_sign: | N/A | | `value` | *string* | :heavy_minus_sign: | N/A | +| `retrospectiveFieldId` | *string* | :heavy_minus_sign: | N/A | | `schema` | [components.Schema](../../models/components/schema.md)[] | :heavy_minus_sign: | N/A | | `requiredAtMilestoneId` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/nullableserviceentity.md b/docs/models/components/nullableserviceentity.md index 98aea562..b380e880 100644 --- a/docs/models/components/nullableserviceentity.md +++ b/docs/models/components/nullableserviceentity.md @@ -30,6 +30,7 @@ let value: NullableServiceEntity = {}; | `completedChecks` | *number* | :heavy_minus_sign: | N/A | | `externalResources` | [components.ExternalResourceEntity](../../models/components/externalresourceentity.md)[] | :heavy_minus_sign: | Information about known linkages to representations of services outside of FireHydrant. | | `functionalities` | [components.FunctionalityEntity](../../models/components/functionalityentity.md)[] | :heavy_minus_sign: | List of functionalities attached to the service | +| `environments` | [components.EnvironmentEntryEntity](../../models/components/environmententryentity.md)[] | :heavy_minus_sign: | Environments related to this service | | `lastImport` | [components.NullableImportsImportableResourceEntity](../../models/components/nullableimportsimportableresourceentity.md) | :heavy_minus_sign: | N/A | | `links` | [components.LinksEntity](../../models/components/linksentity.md)[] | :heavy_minus_sign: | List of links attached to this service. | | `managedBy` | *string* | :heavy_minus_sign: | If set, this field indicates that the service is managed by an integration and thus cannot be set manually | diff --git a/docs/models/components/retrospectivesreporttemplateentity.md b/docs/models/components/retrospectivesreporttemplateentity.md deleted file mode 100644 index f6a0ce17..00000000 --- a/docs/models/components/retrospectivesreporttemplateentity.md +++ /dev/null @@ -1,24 +0,0 @@ -# RetrospectivesReportTemplateEntity - -Retrospectives_ReportTemplateEntity model - -## Example Usage - -```typescript -import { RetrospectivesReportTemplateEntity } from "firehydrant-typescript-sdk/models/components"; - -let value: RetrospectivesReportTemplateEntity = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `name` | *string* | :heavy_minus_sign: | N/A | -| `description` | *string* | :heavy_minus_sign: | N/A | -| `isDefault` | *boolean* | :heavy_minus_sign: | N/A | -| `elements` | [components.RetrospectivesReportTemplateEntityElementEntity](../../models/components/retrospectivesreporttemplateentityelemententity.md)[] | :heavy_minus_sign: | N/A | -| `retrospectiveTemplateId` | *string* | :heavy_minus_sign: | N/A | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/retrospectivesreporttemplateentityelemententity.md b/docs/models/components/retrospectivesreporttemplateentityelemententity.md deleted file mode 100644 index aa14cab3..00000000 --- a/docs/models/components/retrospectivesreporttemplateentityelemententity.md +++ /dev/null @@ -1,19 +0,0 @@ -# RetrospectivesReportTemplateEntityElementEntity - -## Example Usage - -```typescript -import { RetrospectivesReportTemplateEntityElementEntity } from "firehydrant-typescript-sdk/models/components"; - -let value: RetrospectivesReportTemplateEntityElementEntity = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | *string* | :heavy_minus_sign: | N/A | -| `data` | *string* | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `label` | *string* | :heavy_minus_sign: | N/A | -| `content` | [components.RetrospectivesReportTemplateEntityElementEntityContent](../../models/components/retrospectivesreporttemplateentityelemententitycontent.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/retrospectivesreporttemplateentityelemententitycontent.md b/docs/models/components/retrospectivesreporttemplateentityelemententitycontent.md deleted file mode 100644 index 11b97307..00000000 --- a/docs/models/components/retrospectivesreporttemplateentityelemententitycontent.md +++ /dev/null @@ -1,14 +0,0 @@ -# RetrospectivesReportTemplateEntityElementEntityContent - -## Example Usage - -```typescript -import { RetrospectivesReportTemplateEntityElementEntityContent } from "firehydrant-typescript-sdk/models/components"; - -let value: RetrospectivesReportTemplateEntityElementEntityContent = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/retrospectivestemplateentityreportelemententity.md b/docs/models/components/retrospectivestemplateentityreportelemententity.md index 264423f0..a6251846 100644 --- a/docs/models/components/retrospectivestemplateentityreportelemententity.md +++ b/docs/models/components/retrospectivestemplateentityreportelemententity.md @@ -10,10 +10,10 @@ let value: RetrospectivesTemplateEntityReportElementEntity = {}; ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `type` | *string* | :heavy_minus_sign: | N/A | -| `data` | *string* | :heavy_minus_sign: | N/A | -| `id` | *string* | :heavy_minus_sign: | N/A | -| `label` | *string* | :heavy_minus_sign: | N/A | -| `content` | [components.RetrospectivesTemplateEntityReportElementEntityContent](../../models/components/retrospectivestemplateentityreportelemententitycontent.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `type` | *string* | :heavy_minus_sign: | N/A | +| `data` | *string* | :heavy_minus_sign: | N/A | +| `id` | *string* | :heavy_minus_sign: | N/A | +| `label` | *string* | :heavy_minus_sign: | N/A | +| `content` | [components.Content](../../models/components/content.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/retrospectivestemplateentityreportelemententitycontent.md b/docs/models/components/retrospectivestemplateentityreportelemententitycontent.md deleted file mode 100644 index 9c0761eb..00000000 --- a/docs/models/components/retrospectivestemplateentityreportelemententitycontent.md +++ /dev/null @@ -1,14 +0,0 @@ -# RetrospectivesTemplateEntityReportElementEntityContent - -## Example Usage - -```typescript -import { RetrospectivesTemplateEntityReportElementEntityContent } from "firehydrant-typescript-sdk/models/components"; - -let value: RetrospectivesTemplateEntityReportElementEntityContent = {}; -``` - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/serviceentity.md b/docs/models/components/serviceentity.md index de102504..76253c78 100644 --- a/docs/models/components/serviceentity.md +++ b/docs/models/components/serviceentity.md @@ -30,6 +30,7 @@ let value: ServiceEntity = {}; | `completedChecks` | *number* | :heavy_minus_sign: | N/A | | `externalResources` | [components.ExternalResourceEntity](../../models/components/externalresourceentity.md)[] | :heavy_minus_sign: | Information about known linkages to representations of services outside of FireHydrant. | | `functionalities` | [components.FunctionalityEntity](../../models/components/functionalityentity.md)[] | :heavy_minus_sign: | List of functionalities attached to the service | +| `environments` | [components.EnvironmentEntryEntity](../../models/components/environmententryentity.md)[] | :heavy_minus_sign: | Environments related to this service | | `lastImport` | [components.NullableImportsImportableResourceEntity](../../models/components/nullableimportsimportableresourceentity.md) | :heavy_minus_sign: | N/A | | `links` | [components.LinksEntity](../../models/components/linksentity.md)[] | :heavy_minus_sign: | List of links attached to this service. | | `managedBy` | *string* | :heavy_minus_sign: | If set, this field indicates that the service is managed by an integration and thus cannot be set manually | diff --git a/docs/models/components/serviceentitylitepaginated.md b/docs/models/components/serviceentitylitepaginated.md new file mode 100644 index 00000000..e050a67e --- /dev/null +++ b/docs/models/components/serviceentitylitepaginated.md @@ -0,0 +1,18 @@ +# ServiceEntityLitePaginated + +ServiceEntityLitePaginated model + +## Example Usage + +```typescript +import { ServiceEntityLitePaginated } from "firehydrant-typescript-sdk/models/components"; + +let value: ServiceEntityLitePaginated = {}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `data` | [components.ServiceEntityLite](../../models/components/serviceentitylite.md)[] | :heavy_minus_sign: | N/A | +| `pagination` | [components.NullablePaginationEntity](../../models/components/nullablepaginationentity.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/updateenvironment.md b/docs/models/components/updateenvironment.md index 347f6314..9b502a5d 100644 --- a/docs/models/components/updateenvironment.md +++ b/docs/models/components/updateenvironment.md @@ -7,14 +7,16 @@ Update a environments attributes ```typescript import { UpdateEnvironment } from "firehydrant-typescript-sdk/models/components"; -let value: UpdateEnvironment = { - name: "", -}; +let value: UpdateEnvironment = {}; ``` ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `name` | *string* | :heavy_check_mark: | N/A | -| `description` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `name` | *string* | :heavy_minus_sign: | N/A | +| `description` | *string* | :heavy_minus_sign: | N/A | +| `functionalities` | [components.UpdateEnvironmentFunctionality](../../models/components/updateenvironmentfunctionality.md)[] | :heavy_minus_sign: | N/A | +| `removeRemainingFunctionalities` | *boolean* | :heavy_minus_sign: | Set this to true if you want to remove all of the functionalities that are not included in the functionalities array from the environment | +| `services` | [components.UpdateEnvironmentService](../../models/components/updateenvironmentservice.md)[] | :heavy_minus_sign: | N/A | +| `removeRemainingServices` | *boolean* | :heavy_minus_sign: | Set this to true if you want to remove all of the services that are not included in the services array from the environment | \ No newline at end of file diff --git a/docs/models/components/updateenvironmentfunctionality.md b/docs/models/components/updateenvironmentfunctionality.md new file mode 100644 index 00000000..7fa57ac8 --- /dev/null +++ b/docs/models/components/updateenvironmentfunctionality.md @@ -0,0 +1,18 @@ +# UpdateEnvironmentFunctionality + +## Example Usage + +```typescript +import { UpdateEnvironmentFunctionality } from "firehydrant-typescript-sdk/models/components"; + +let value: UpdateEnvironmentFunctionality = { + id: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `id` | *string* | :heavy_check_mark: | ID of a functionality | +| `remove` | *boolean* | :heavy_minus_sign: | Set to true if you want to remove the given functionality from the environment | \ No newline at end of file diff --git a/docs/models/components/updateenvironmentservice.md b/docs/models/components/updateenvironmentservice.md new file mode 100644 index 00000000..f749cb58 --- /dev/null +++ b/docs/models/components/updateenvironmentservice.md @@ -0,0 +1,18 @@ +# UpdateEnvironmentService + +## Example Usage + +```typescript +import { UpdateEnvironmentService } from "firehydrant-typescript-sdk/models/components"; + +let value: UpdateEnvironmentService = { + id: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `id` | *string* | :heavy_check_mark: | ID of a service | +| `remove` | *boolean* | :heavy_minus_sign: | Set to true if you want to remove the given service from the environment | \ No newline at end of file diff --git a/docs/models/components/updatefunctionality.md b/docs/models/components/updatefunctionality.md index 38e504b2..36397d7a 100644 --- a/docs/models/components/updatefunctionality.md +++ b/docs/models/components/updatefunctionality.md @@ -18,6 +18,9 @@ let value: UpdateFunctionality = {}; | `description` | *string* | :heavy_minus_sign: | N/A | | `serviceTier` | [components.UpdateFunctionalityServiceTier](../../models/components/updatefunctionalityservicetier.md) | :heavy_minus_sign: | Integer representing functionality tier | | `services` | [components.UpdateFunctionalityService](../../models/components/updatefunctionalityservice.md)[] | :heavy_minus_sign: | N/A | +| `removeRemainingServices` | *boolean* | :heavy_minus_sign: | Set this to true if you want to remove all of the services that are not included in the services array from the functionality | +| `environments` | [components.UpdateFunctionalityEnvironment](../../models/components/updatefunctionalityenvironment.md)[] | :heavy_minus_sign: | N/A | +| `removeRemainingEnvironments` | *boolean* | :heavy_minus_sign: | Set this to true if you want to remove all of the environments that are not included in the environments array from the functionality | | `links` | [components.UpdateFunctionalityLink](../../models/components/updatefunctionalitylink.md)[] | :heavy_minus_sign: | An array of links to associate with this functionality. This will remove all links not present in the patch. Only acts if 'links' key is included in the payload. | | `owner` | [components.UpdateFunctionalityOwner](../../models/components/updatefunctionalityowner.md) | :heavy_minus_sign: | An object representing a Team that owns the functionality | | `removeOwner` | *boolean* | :heavy_minus_sign: | If you are trying to remove a team as an owner from a functionality, set this to 'true' | @@ -27,5 +30,4 @@ let value: UpdateFunctionality = {}; | `removeRemainingExternalResources` | *boolean* | :heavy_minus_sign: | If set to true, any external_resources tagged on the service that are not included in the given array will be removed. Set this to true if you want to do a replacement operation for the external_resources | | `labels` | Record | :heavy_minus_sign: | A hash of label keys and values | | `alertOnAdd` | *boolean* | :heavy_minus_sign: | N/A | -| `autoAddRespondingTeam` | *boolean* | :heavy_minus_sign: | N/A | -| `removeRemainingServices` | *boolean* | :heavy_minus_sign: | Set this to true if you want to remove all of the services that are not included in the services array from the functionality | \ No newline at end of file +| `autoAddRespondingTeam` | *boolean* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/updatefunctionalityenvironment.md b/docs/models/components/updatefunctionalityenvironment.md new file mode 100644 index 00000000..7d6c2f73 --- /dev/null +++ b/docs/models/components/updatefunctionalityenvironment.md @@ -0,0 +1,18 @@ +# UpdateFunctionalityEnvironment + +## Example Usage + +```typescript +import { UpdateFunctionalityEnvironment } from "firehydrant-typescript-sdk/models/components"; + +let value: UpdateFunctionalityEnvironment = { + id: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | +| `id` | *string* | :heavy_check_mark: | ID of an environment | +| `remove` | *boolean* | :heavy_minus_sign: | Set to true if you want to remove the given environment from the functionality | \ No newline at end of file diff --git a/docs/models/components/updaterunbook.md b/docs/models/components/updaterunbook.md index 01df3beb..18be55a1 100644 --- a/docs/models/components/updaterunbook.md +++ b/docs/models/components/updaterunbook.md @@ -23,7 +23,7 @@ let value: UpdateRunbook = {}; | `owner` | [components.UpdateRunbookOwner](../../models/components/updaterunbookowner.md) | :heavy_minus_sign: | An object representing a Team that owns the runbook | | `severities` | [components.UpdateRunbookSeverity](../../models/components/updaterunbookseverity.md)[] | :heavy_minus_sign: | N/A | | `services` | [components.UpdateRunbookService](../../models/components/updaterunbookservice.md)[] | :heavy_minus_sign: | N/A | -| `environments` | [components.Environment](../../models/components/environment.md)[] | :heavy_minus_sign: | N/A | +| `environments` | [components.UpdateRunbookEnvironment](../../models/components/updaterunbookenvironment.md)[] | :heavy_minus_sign: | N/A | | `attachmentRule` | [components.UpdateRunbookAttachmentRule](../../models/components/updaterunbookattachmentrule.md) | :heavy_minus_sign: | N/A | | `steps` | [components.UpdateRunbookStep](../../models/components/updaterunbookstep.md)[] | :heavy_minus_sign: | N/A | | `autoAttachToRestrictedIncidents` | *boolean* | :heavy_minus_sign: | Whether or not this runbook should be automatically attached to restricted incidents. Note that setting this to `true` will prevent it from being attached to public incidents, even manually. Defaults to `false`. | \ No newline at end of file diff --git a/docs/models/components/environment.md b/docs/models/components/updaterunbookenvironment.md similarity index 66% rename from docs/models/components/environment.md rename to docs/models/components/updaterunbookenvironment.md index 103bd632..bde95e66 100644 --- a/docs/models/components/environment.md +++ b/docs/models/components/updaterunbookenvironment.md @@ -1,11 +1,11 @@ -# Environment +# UpdateRunbookEnvironment ## Example Usage ```typescript -import { Environment } from "firehydrant-typescript-sdk/models/components"; +import { UpdateRunbookEnvironment } from "firehydrant-typescript-sdk/models/components"; -let value: Environment = {}; +let value: UpdateRunbookEnvironment = {}; ``` ## Fields diff --git a/docs/models/components/updateservice.md b/docs/models/components/updateservice.md index 4c195c8f..2cb74c73 100644 --- a/docs/models/components/updateservice.md +++ b/docs/models/components/updateservice.md @@ -22,6 +22,9 @@ let value: UpdateService = {}; | `description` | *string* | :heavy_minus_sign: | N/A | | `externalResources` | [components.UpdateServiceExternalResource](../../models/components/updateserviceexternalresource.md)[] | :heavy_minus_sign: | An array of external resources to attach to this service. | | `functionalities` | [components.UpdateServiceFunctionality](../../models/components/updateservicefunctionality.md)[] | :heavy_minus_sign: | An array of functionalities | +| `removeRemainingFunctionalities` | *boolean* | :heavy_minus_sign: | If set to true, any functionalities tagged on the service that are not included in the given array will be removed. Set this to true if you want to do a replacement operation for the functionalities | +| `environments` | [components.UpdateServiceEnvironment](../../models/components/updateserviceenvironment.md)[] | :heavy_minus_sign: | N/A | +| `removeRemainingEnvironments` | *boolean* | :heavy_minus_sign: | Set this to true if you want to remove all of the environments that are not included in the environments array from the service | | `labels` | Record | :heavy_minus_sign: | A hash of label keys and values | | `links` | [components.UpdateServiceLink](../../models/components/updateservicelink.md)[] | :heavy_minus_sign: | An array of links to associate with this service. This will remove all links not present in the patch. Only acts if 'links' key is included in the payload. | | `name` | *string* | :heavy_minus_sign: | N/A | @@ -29,7 +32,6 @@ let value: UpdateService = {}; | `removeOwner` | *boolean* | :heavy_minus_sign: | If you are trying to remove a team as an owner from a service, set this to 'true' | | `removeRemainingChecklists` | *boolean* | :heavy_minus_sign: | If set to true, any checklists tagged on the service that are not included in the given array will be removed. Set this to true if you want to do a replacement operation for the checklists | | `removeRemainingExternalResources` | *boolean* | :heavy_minus_sign: | If set to true, any external_resources tagged on the service that are not included in the given array will be removed. Set this to true if you want to do a replacement operation for the external_resources | -| `removeRemainingFunctionalities` | *boolean* | :heavy_minus_sign: | If set to true, any functionalities tagged on the service that are not included in the given array will be removed. Set this to true if you want to do a replacement operation for the functionalities | | `removeRemainingTeams` | *boolean* | :heavy_minus_sign: | If set to true, any teams tagged on the service that are not included in the given array will be removed. Set this to true if you want to do a replacement operation for the teams | | `serviceTier` | [components.UpdateServiceServiceTier](../../models/components/updateserviceservicetier.md) | :heavy_minus_sign: | Integer representing service tier | | `teams` | [components.UpdateServiceTeam](../../models/components/updateserviceteam.md)[] | :heavy_minus_sign: | An array of teams to attach to this service. | \ No newline at end of file diff --git a/docs/models/components/updateserviceenvironment.md b/docs/models/components/updateserviceenvironment.md new file mode 100644 index 00000000..d52a6d3d --- /dev/null +++ b/docs/models/components/updateserviceenvironment.md @@ -0,0 +1,18 @@ +# UpdateServiceEnvironment + +## Example Usage + +```typescript +import { UpdateServiceEnvironment } from "firehydrant-typescript-sdk/models/components"; + +let value: UpdateServiceEnvironment = { + id: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `id` | *string* | :heavy_check_mark: | ID of an environment | +| `remove` | *boolean* | :heavy_minus_sign: | Set to true if you want to remove the given environment from the service | \ No newline at end of file diff --git a/docs/models/operations/bulkupdateincidentmilestonesrequest.md b/docs/models/operations/bulkupdateincidentmilestonesrequest.md index bacad6aa..3ac4643d 100644 --- a/docs/models/operations/bulkupdateincidentmilestonesrequest.md +++ b/docs/models/operations/bulkupdateincidentmilestonesrequest.md @@ -11,7 +11,7 @@ let value: BulkUpdateIncidentMilestonesRequest = { milestones: [ { type: "", - occurredAt: new Date("2025-10-01T23:28:44.501Z"), + occurredAt: new Date("2026-10-01T23:28:44.501Z"), }, ], }, diff --git a/docs/models/operations/createoncallshiftrequest.md b/docs/models/operations/createoncallshiftrequest.md index 2e26818f..debd7ef4 100644 --- a/docs/models/operations/createoncallshiftrequest.md +++ b/docs/models/operations/createoncallshiftrequest.md @@ -9,8 +9,8 @@ let value: CreateOnCallShiftRequest = { teamId: "", scheduleId: "", createOnCallShift: { - startTime: new Date("2024-06-15T16:48:29.406Z"), - endTime: new Date("2025-01-24T05:13:18.654Z"), + startTime: new Date("2025-06-15T16:48:29.406Z"), + endTime: new Date("2026-01-24T05:13:18.654Z"), }, }; ``` diff --git a/docs/models/operations/listenvironmentfunctionalitiesrequest.md b/docs/models/operations/listenvironmentfunctionalitiesrequest.md new file mode 100644 index 00000000..f4436cc4 --- /dev/null +++ b/docs/models/operations/listenvironmentfunctionalitiesrequest.md @@ -0,0 +1,19 @@ +# ListEnvironmentFunctionalitiesRequest + +## Example Usage + +```typescript +import { ListEnvironmentFunctionalitiesRequest } from "firehydrant-typescript-sdk/models/operations"; + +let value: ListEnvironmentFunctionalitiesRequest = { + environmentId: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `environmentId` | *string* | :heavy_check_mark: | N/A | +| `page` | *number* | :heavy_minus_sign: | N/A | +| `perPage` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listenvironmentservicesrequest.md b/docs/models/operations/listenvironmentservicesrequest.md new file mode 100644 index 00000000..9bf746f2 --- /dev/null +++ b/docs/models/operations/listenvironmentservicesrequest.md @@ -0,0 +1,19 @@ +# ListEnvironmentServicesRequest + +## Example Usage + +```typescript +import { ListEnvironmentServicesRequest } from "firehydrant-typescript-sdk/models/operations"; + +let value: ListEnvironmentServicesRequest = { + environmentId: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `environmentId` | *string* | :heavy_check_mark: | N/A | +| `page` | *number* | :heavy_minus_sign: | N/A | +| `perPage` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listfunctionalityenvironmentsrequest.md b/docs/models/operations/listfunctionalityenvironmentsrequest.md new file mode 100644 index 00000000..f9e10aac --- /dev/null +++ b/docs/models/operations/listfunctionalityenvironmentsrequest.md @@ -0,0 +1,19 @@ +# ListFunctionalityEnvironmentsRequest + +## Example Usage + +```typescript +import { ListFunctionalityEnvironmentsRequest } from "firehydrant-typescript-sdk/models/operations"; + +let value: ListFunctionalityEnvironmentsRequest = { + functionalityId: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `functionalityId` | *string* | :heavy_check_mark: | N/A | +| `page` | *number* | :heavy_minus_sign: | N/A | +| `perPage` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listserviceenvironmentsrequest.md b/docs/models/operations/listserviceenvironmentsrequest.md new file mode 100644 index 00000000..c40d1ced --- /dev/null +++ b/docs/models/operations/listserviceenvironmentsrequest.md @@ -0,0 +1,19 @@ +# ListServiceEnvironmentsRequest + +## Example Usage + +```typescript +import { ListServiceEnvironmentsRequest } from "firehydrant-typescript-sdk/models/operations"; + +let value: ListServiceEnvironmentsRequest = { + serviceId: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `serviceId` | *string* | :heavy_check_mark: | N/A | +| `page` | *number* | :heavy_minus_sign: | N/A | +| `perPage` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updateenvironmentrequest.md b/docs/models/operations/updateenvironmentrequest.md index d461401f..1142aa17 100644 --- a/docs/models/operations/updateenvironmentrequest.md +++ b/docs/models/operations/updateenvironmentrequest.md @@ -7,9 +7,7 @@ import { UpdateEnvironmentRequest } from "firehydrant-typescript-sdk/models/oper let value: UpdateEnvironmentRequest = { environmentId: "", - updateEnvironment: { - name: "", - }, + updateEnvironment: {}, }; ``` diff --git a/docs/sdks/catalogentries/README.md b/docs/sdks/catalogentries/README.md index 1b018372..9650bb42 100644 --- a/docs/sdks/catalogentries/README.md +++ b/docs/sdks/catalogentries/README.md @@ -11,12 +11,15 @@ Operations related to Catalog Entries * [getEnvironment](#getenvironment) - Get an environment * [deleteEnvironment](#deleteenvironment) - Archive an environment * [updateEnvironment](#updateenvironment) - Update an environment +* [listEnvironmentServices](#listenvironmentservices) - List services for an environment +* [listEnvironmentFunctionalities](#listenvironmentfunctionalities) - List functionalities for an environment * [listServices](#listservices) - List services * [createService](#createservice) - Create a service * [createServiceLinks](#createservicelinks) - Create multiple services linked to external services * [getService](#getservice) - Get a service * [deleteService](#deleteservice) - Delete a service * [updateService](#updateservice) - Update a service +* [listServiceEnvironments](#listserviceenvironments) - List environments for a service * [getServiceDependencies](#getservicedependencies) - List dependencies for a service * [listServiceAvailableUpstreamDependencies](#listserviceavailableupstreamdependencies) - List available upstream service dependencies * [listServiceAvailableDownstreamDependencies](#listserviceavailabledownstreamdependencies) - List available downstream service dependencies @@ -31,6 +34,7 @@ Operations related to Catalog Entries * [getFunctionality](#getfunctionality) - Get a functionality * [deleteFunctionality](#deletefunctionality) - Archive a functionality * [updateFunctionality](#updatefunctionality) - Update a functionality +* [listFunctionalityEnvironments](#listfunctionalityenvironments) - List environments for a functionality * [listFunctionalityServices](#listfunctionalityservices) - List services for a functionality * [listUserOwnedServices](#listuserownedservices) - List services owned by a user's teams * [listInfrastructures](#listinfrastructures) - Lists functionality, service and environment objects @@ -342,9 +346,7 @@ const firehydrant = new Firehydrant({ async function run() { const result = await firehydrant.catalogEntries.updateEnvironment({ environmentId: "", - updateEnvironment: { - name: "", - }, + updateEnvironment: {}, }); console.log(result); @@ -370,9 +372,7 @@ const firehydrant = new FirehydrantCore({ async function run() { const res = await catalogEntriesUpdateEnvironment(firehydrant, { environmentId: "", - updateEnvironment: { - name: "", - }, + updateEnvironment: {}, }); if (res.ok) { const { value: result } = res; @@ -404,6 +404,152 @@ run(); | --------------- | --------------- | --------------- | | errors.APIError | 4XX, 5XX | \*/\* | +## listEnvironmentServices + +List services for an environment + +### Example Usage + + +```typescript +import { Firehydrant } from "firehydrant-typescript-sdk"; + +const firehydrant = new Firehydrant({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const result = await firehydrant.catalogEntries.listEnvironmentServices({ + environmentId: "", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { FirehydrantCore } from "firehydrant-typescript-sdk/core.js"; +import { catalogEntriesListEnvironmentServices } from "firehydrant-typescript-sdk/funcs/catalogEntriesListEnvironmentServices.js"; + +// Use `FirehydrantCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const firehydrant = new FirehydrantCore({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const res = await catalogEntriesListEnvironmentServices(firehydrant, { + environmentId: "", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("catalogEntriesListEnvironmentServices failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.ListEnvironmentServicesRequest](../../models/operations/listenvironmentservicesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.ServiceEntityLitePaginated](../../models/components/serviceentitylitepaginated.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + +## listEnvironmentFunctionalities + +List functionalities for an environment + +### Example Usage + + +```typescript +import { Firehydrant } from "firehydrant-typescript-sdk"; + +const firehydrant = new Firehydrant({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const result = await firehydrant.catalogEntries.listEnvironmentFunctionalities({ + environmentId: "", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { FirehydrantCore } from "firehydrant-typescript-sdk/core.js"; +import { catalogEntriesListEnvironmentFunctionalities } from "firehydrant-typescript-sdk/funcs/catalogEntriesListEnvironmentFunctionalities.js"; + +// Use `FirehydrantCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const firehydrant = new FirehydrantCore({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const res = await catalogEntriesListEnvironmentFunctionalities(firehydrant, { + environmentId: "", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("catalogEntriesListEnvironmentFunctionalities failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.ListEnvironmentFunctionalitiesRequest](../../models/operations/listenvironmentfunctionalitiesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.FunctionalityEntityLitePaginated](../../models/components/functionalityentitylitepaginated.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + ## listServices List all of the services that have been added to the organization. @@ -847,6 +993,79 @@ run(); | --------------- | --------------- | --------------- | | errors.APIError | 4XX, 5XX | \*/\* | +## listServiceEnvironments + +List environments for a service + +### Example Usage + + +```typescript +import { Firehydrant } from "firehydrant-typescript-sdk"; + +const firehydrant = new Firehydrant({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const result = await firehydrant.catalogEntries.listServiceEnvironments({ + serviceId: "", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { FirehydrantCore } from "firehydrant-typescript-sdk/core.js"; +import { catalogEntriesListServiceEnvironments } from "firehydrant-typescript-sdk/funcs/catalogEntriesListServiceEnvironments.js"; + +// Use `FirehydrantCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const firehydrant = new FirehydrantCore({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const res = await catalogEntriesListServiceEnvironments(firehydrant, { + serviceId: "", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("catalogEntriesListServiceEnvironments failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.ListServiceEnvironmentsRequest](../../models/operations/listserviceenvironmentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.EnvironmentEntryEntityPaginated](../../models/components/environmententryentitypaginated.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + ## getServiceDependencies Retrieves a service's dependencies @@ -1883,6 +2102,79 @@ run(); | --------------- | --------------- | --------------- | | errors.APIError | 4XX, 5XX | \*/\* | +## listFunctionalityEnvironments + +List environments for a functionality + +### Example Usage + + +```typescript +import { Firehydrant } from "firehydrant-typescript-sdk"; + +const firehydrant = new Firehydrant({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const result = await firehydrant.catalogEntries.listFunctionalityEnvironments({ + functionalityId: "", + }); + + console.log(result); +} + +run(); +``` + +### Standalone function + +The standalone function version of this method: + +```typescript +import { FirehydrantCore } from "firehydrant-typescript-sdk/core.js"; +import { catalogEntriesListFunctionalityEnvironments } from "firehydrant-typescript-sdk/funcs/catalogEntriesListFunctionalityEnvironments.js"; + +// Use `FirehydrantCore` for best tree-shaking performance. +// You can create one instance of it to use across an application. +const firehydrant = new FirehydrantCore({ + apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", +}); + +async function run() { + const res = await catalogEntriesListFunctionalityEnvironments(firehydrant, { + functionalityId: "", + }); + if (res.ok) { + const { value: result } = res; + console.log(result); + } else { + console.log("catalogEntriesListFunctionalityEnvironments failed:", res.error); + } +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.ListFunctionalityEnvironmentsRequest](../../models/operations/listfunctionalityenvironmentsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + +### Response + +**Promise\<[components.EnvironmentEntryEntityPaginated](../../models/components/environmententryentitypaginated.md)\>** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.APIError | 4XX, 5XX | \*/\* | + ## listFunctionalityServices List services for a functionality diff --git a/docs/sdks/retrospectives/README.md b/docs/sdks/retrospectives/README.md index 29b6c5a5..a3b41e43 100644 --- a/docs/sdks/retrospectives/README.md +++ b/docs/sdks/retrospectives/README.md @@ -36,7 +36,6 @@ Operations related to Retrospectives * [getRetrospectiveTemplate](#getretrospectivetemplate) - Get a retrospective template * [deleteRetrospectiveTemplate](#deleteretrospectivetemplate) - Delete a retrospective template * [updateRetrospectiveTemplate](#updateretrospectivetemplate) - Update a retrospective template -* [getRetrospectiveReportTemplate](#getretrospectivereporttemplate) - Get a retrospective report template ## shareIncidentRetrospectives @@ -2355,79 +2354,6 @@ run(); ### Errors -| Error Type | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.APIError | 4XX, 5XX | \*/\* | - -## getRetrospectiveReportTemplate - -Retrieve a single retrospective report template by ID - -### Example Usage - - -```typescript -import { Firehydrant } from "firehydrant-typescript-sdk"; - -const firehydrant = new Firehydrant({ - apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", -}); - -async function run() { - const result = await firehydrant.retrospectives.getRetrospectiveReportTemplate({ - id: "", - }); - - console.log(result); -} - -run(); -``` - -### Standalone function - -The standalone function version of this method: - -```typescript -import { FirehydrantCore } from "firehydrant-typescript-sdk/core.js"; -import { retrospectivesGetRetrospectiveReportTemplate } from "firehydrant-typescript-sdk/funcs/retrospectivesGetRetrospectiveReportTemplate.js"; - -// Use `FirehydrantCore` for best tree-shaking performance. -// You can create one instance of it to use across an application. -const firehydrant = new FirehydrantCore({ - apiKey: process.env["FIREHYDRANT_API_KEY"] ?? "", -}); - -async function run() { - const res = await retrospectivesGetRetrospectiveReportTemplate(firehydrant, { - id: "", - }); - if (res.ok) { - const { value: result } = res; - console.log(result); - } else { - console.log("retrospectivesGetRetrospectiveReportTemplate failed:", res.error); - } -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetRetrospectiveReportTemplateRequest](../../models/operations/getretrospectivereporttemplaterequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | - -### Response - -**Promise\<[components.RetrospectivesReportTemplateEntity](../../models/components/retrospectivesreporttemplateentity.md)\>** - -### Errors - | Error Type | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.APIError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/examples/package-lock.json b/examples/package-lock.json index 1f760cff..ffd44d20 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,9 +18,9 @@ }, "..": { "name": "firehydrant-typescript-sdk", - "version": "1.2.1", + "version": "1.2.2", "dependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", + "@modelcontextprotocol/sdk": "^1.25.2", "zod": "^3.25.0 || ^4.0.0" }, "bin": { diff --git a/jsr.json b/jsr.json index dc8afd5b..a700df79 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "firehydrant-typescript-sdk", - "version": "1.2.1", + "version": "1.2.2", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index b2de4ca7..416c76c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,14 @@ { "name": "firehydrant-typescript-sdk", - "version": "1.2.1", + "version": "1.2.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "firehydrant-typescript-sdk", - "version": "1.2.1", + "version": "1.2.2", "dependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", + "@modelcontextprotocol/sdk": "^1.25.2", "zod": "^3.25.0 || ^4.0.0" }, "bin": { @@ -214,6 +214,18 @@ "node": "^18.18.0 || ^20.9.0 || >=21.1.0" } }, + "node_modules/@hono/node-server": { + "version": "1.19.9", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.9.tgz", + "integrity": "sha512-vHL6w3ecZsky+8P5MD+eFfaGTyCeOHUIFYMGpQGbrBTSmNNoxv0if69rEZ5giu36weC5saFuznL411gRX7bJDw==", + "license": "MIT", + "engines": { + "node": ">=18.14.1" + }, + "peerDependencies": { + "hono": "^4" + } + }, "node_modules/@humanfs/core": { "version": "0.19.1", "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz", @@ -299,24 +311,42 @@ } }, "node_modules/@modelcontextprotocol/sdk": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.9.0.tgz", - "integrity": "sha512-Jq2EUCQpe0iyO5FGpzVYDNFR6oR53AIrwph9yWl7uSc7IWUMsrmpmSaTGra5hQNunXpM+9oit85p924jWuHzUA==", + "version": "1.25.2", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.25.2.tgz", + "integrity": "sha512-LZFeo4F9M5qOhC/Uc1aQSrBHxMrvxett+9KLHt7OhcExtoiRN9DKgbZffMP/nxjutWDQpfMDfP3nkHI4X9ijww==", "license": "MIT", "dependencies": { + "@hono/node-server": "^1.19.7", + "ajv": "^8.17.1", + "ajv-formats": "^3.0.1", "content-type": "^1.0.5", "cors": "^2.8.5", - "cross-spawn": "^7.0.3", + "cross-spawn": "^7.0.5", "eventsource": "^3.0.2", + "eventsource-parser": "^3.0.0", "express": "^5.0.1", "express-rate-limit": "^7.5.0", + "jose": "^6.1.1", + "json-schema-typed": "^8.0.2", "pkce-challenge": "^5.0.0", "raw-body": "^3.0.0", - "zod": "^3.23.8", - "zod-to-json-schema": "^3.24.1" + "zod": "^3.25 || ^4.0", + "zod-to-json-schema": "^3.25.0" }, "engines": { "node": ">=18" + }, + "peerDependencies": { + "@cfworker/json-schema": "^4.1.1", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "@cfworker/json-schema": { + "optional": true + }, + "zod": { + "optional": false + } } }, "node_modules/@modelcontextprotocol/sdk/node_modules/accepts": { @@ -332,6 +362,22 @@ "node": ">= 0.6" } }, + "node_modules/@modelcontextprotocol/sdk/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, "node_modules/@modelcontextprotocol/sdk/node_modules/body-parser": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.0.tgz", @@ -453,6 +499,12 @@ "node": ">=0.10.0" } }, + "node_modules/@modelcontextprotocol/sdk/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, "node_modules/@modelcontextprotocol/sdk/node_modules/media-typer": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", @@ -1191,6 +1243,45 @@ "url": "https://github.com/sponsors/epoberezkin" } }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": true + } + } + }, + "node_modules/ajv-formats/node_modules/ajv": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", + "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats/node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, "node_modules/ansi-regex": { "version": "6.1.0", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", @@ -2034,7 +2125,6 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true, "license": "MIT" }, "node_modules/fast-glob": { @@ -2081,6 +2171,22 @@ "dev": true, "license": "MIT" }, + "node_modules/fast-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, "node_modules/fastq": { "version": "1.18.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.18.0.tgz", @@ -2371,6 +2477,16 @@ "node": ">= 0.4" } }, + "node_modules/hono": { + "version": "4.11.4", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.11.4.tgz", + "integrity": "sha512-U7tt8JsyrxSRKspfhtLET79pU8K+tInj5QZXs1jSugO1Vq5dFj3kmZsRldo29mTBfcjDRVRXrEZ6LS63Cog9ZA==", + "license": "MIT", + "peer": true, + "engines": { + "node": ">=16.9.0" + } + }, "node_modules/http-errors": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", @@ -2535,6 +2651,15 @@ "@pkgjs/parseargs": "^0.11.0" } }, + "node_modules/jose": { + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.1.3.tgz", + "integrity": "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -2562,6 +2687,12 @@ "dev": true, "license": "MIT" }, + "node_modules/json-schema-typed": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", + "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", + "license": "BSD-2-Clause" + }, "node_modules/json-stable-stringify-without-jsonify": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", @@ -3106,6 +3237,15 @@ "node": ">=8.10.0" } }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/resolve-from": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", @@ -4066,12 +4206,12 @@ } }, "node_modules/zod-to-json-schema": { - "version": "3.24.5", - "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.24.5.tgz", - "integrity": "sha512-/AuWwMP+YqiPbsJx5D6TfgRTc4kTLjsh5SOcd4bLsfUg2RcEXrFMJl1DGgdHy2aCfsIA/cr/1JM0xcB2GZji8g==", + "version": "3.25.1", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.1.tgz", + "integrity": "sha512-pM/SU9d3YAggzi6MtR4h7ruuQlqKtad8e9S0fmxcMi+ueAK5Korys/aWcV9LIIHTVbj01NdzxcnXSN+O74ZIVA==", "license": "ISC", "peerDependencies": { - "zod": "^3.24.1" + "zod": "^3.25 || ^4" } } } diff --git a/package.json b/package.json index ccafef8d..e7232556 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "firehydrant-typescript-sdk", - "version": "1.2.1", + "version": "1.2.2", "author": "Firehydrant", "type": "module", "bin": { @@ -47,7 +47,7 @@ "typescript-eslint": "^8.26.0" }, "dependencies": { - "@modelcontextprotocol/sdk": ">=1.5.0 <1.10.0", + "@modelcontextprotocol/sdk": "^1.25.2", "zod": "^3.25.0 || ^4.0.0" }, "exports": { diff --git a/src/funcs/catalogEntriesListEnvironmentFunctionalities.ts b/src/funcs/catalogEntriesListEnvironmentFunctionalities.ts new file mode 100644 index 00000000..711ffa70 --- /dev/null +++ b/src/funcs/catalogEntriesListEnvironmentFunctionalities.ts @@ -0,0 +1,178 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { FirehydrantCore } from "../core.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { FirehydrantError } from "../models/errors/firehydranterror.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * List functionalities for an environment + * + * @remarks + * List functionalities for an environment + */ +export function catalogEntriesListEnvironmentFunctionalities( + client: FirehydrantCore, + request: operations.ListEnvironmentFunctionalitiesRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.FunctionalityEntityLitePaginated, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: FirehydrantCore, + request: operations.ListEnvironmentFunctionalitiesRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.FunctionalityEntityLitePaginated, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.ListEnvironmentFunctionalitiesRequest$outboundSchema.parse( + value, + ), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + environment_id: encodeSimple("environment_id", payload.environment_id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/v1/environments/{environment_id}/functionalities")( + pathParams, + ); + + const query = encodeFormQuery({ + "page": payload.page, + "per_page": payload.per_page, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "list_environment_functionalities", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.FunctionalityEntityLitePaginated, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.FunctionalityEntityLitePaginated$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/retrospectivesGetRetrospectiveReportTemplate.ts b/src/funcs/catalogEntriesListEnvironmentServices.ts similarity index 81% rename from src/funcs/retrospectivesGetRetrospectiveReportTemplate.ts rename to src/funcs/catalogEntriesListEnvironmentServices.ts index 50d93176..fb928226 100644 --- a/src/funcs/retrospectivesGetRetrospectiveReportTemplate.ts +++ b/src/funcs/catalogEntriesListEnvironmentServices.ts @@ -3,7 +3,7 @@ */ import { FirehydrantCore } from "../core.js"; -import { encodeSimple } from "../lib/encodings.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -26,18 +26,18 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** - * Get a retrospective report template + * List services for an environment * * @remarks - * Retrieve a single retrospective report template by ID + * List services for an environment */ -export function retrospectivesGetRetrospectiveReportTemplate( +export function catalogEntriesListEnvironmentServices( client: FirehydrantCore, - request: operations.GetRetrospectiveReportTemplateRequest, + request: operations.ListEnvironmentServicesRequest, options?: RequestOptions, ): APIPromise< Result< - components.RetrospectivesReportTemplateEntity, + components.ServiceEntityLitePaginated, | FirehydrantError | ResponseValidationError | ConnectionError @@ -57,12 +57,12 @@ export function retrospectivesGetRetrospectiveReportTemplate( async function $do( client: FirehydrantCore, - request: operations.GetRetrospectiveReportTemplateRequest, + request: operations.ListEnvironmentServicesRequest, options?: RequestOptions, ): Promise< [ Result< - components.RetrospectivesReportTemplateEntity, + components.ServiceEntityLitePaginated, | FirehydrantError | ResponseValidationError | ConnectionError @@ -78,9 +78,7 @@ async function $do( const parsed = safeParse( request, (value) => - operations.GetRetrospectiveReportTemplateRequest$outboundSchema.parse( - value, - ), + operations.ListEnvironmentServicesRequest$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { @@ -90,16 +88,21 @@ async function $do( const body = null; const pathParams = { - id: encodeSimple("id", payload.id, { + environment_id: encodeSimple("environment_id", payload.environment_id, { explode: false, charEncoding: "percent", }), }; - const path = pathToFunc("/v1/retrospective_report_templates/{id}")( + const path = pathToFunc("/v1/environments/{environment_id}/services")( pathParams, ); + const query = encodeFormQuery({ + "page": payload.page, + "per_page": payload.per_page, + }); + const headers = new Headers(compactMap({ Accept: "application/json", })); @@ -111,7 +114,7 @@ async function $do( const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "get_retrospective_report_template", + operationID: "list_environment_services", oAuth2Scopes: null, resolvedSecurity: requestSecurity, @@ -129,6 +132,7 @@ async function $do( baseURL: options?.serverURL, path: path, headers: headers, + query: query, body: body, userAgent: client._options.userAgent, timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, @@ -150,7 +154,7 @@ async function $do( const response = doResult.value; const [result] = await M.match< - components.RetrospectivesReportTemplateEntity, + components.ServiceEntityLitePaginated, | FirehydrantError | ResponseValidationError | ConnectionError @@ -160,7 +164,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, components.RetrospectivesReportTemplateEntity$inboundSchema), + M.json(200, components.ServiceEntityLitePaginated$inboundSchema), M.fail("4XX"), M.fail("5XX"), )(response, req); diff --git a/src/funcs/catalogEntriesListFunctionalityEnvironments.ts b/src/funcs/catalogEntriesListFunctionalityEnvironments.ts new file mode 100644 index 00000000..497c8e53 --- /dev/null +++ b/src/funcs/catalogEntriesListFunctionalityEnvironments.ts @@ -0,0 +1,179 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { FirehydrantCore } from "../core.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { FirehydrantError } from "../models/errors/firehydranterror.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * List environments for a functionality + * + * @remarks + * List environments for a functionality + */ +export function catalogEntriesListFunctionalityEnvironments( + client: FirehydrantCore, + request: operations.ListFunctionalityEnvironmentsRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.EnvironmentEntryEntityPaginated, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: FirehydrantCore, + request: operations.ListFunctionalityEnvironmentsRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.EnvironmentEntryEntityPaginated, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.ListFunctionalityEnvironmentsRequest$outboundSchema.parse( + value, + ), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + functionality_id: encodeSimple( + "functionality_id", + payload.functionality_id, + { explode: false, charEncoding: "percent" }, + ), + }; + + const path = pathToFunc( + "/v1/functionalities/{functionality_id}/environments", + )(pathParams); + + const query = encodeFormQuery({ + "page": payload.page, + "per_page": payload.per_page, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "list_functionality_environments", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.EnvironmentEntryEntityPaginated, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.EnvironmentEntryEntityPaginated$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/funcs/catalogEntriesListServiceEnvironments.ts b/src/funcs/catalogEntriesListServiceEnvironments.ts new file mode 100644 index 00000000..89ffdbcf --- /dev/null +++ b/src/funcs/catalogEntriesListServiceEnvironments.ts @@ -0,0 +1,174 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { FirehydrantCore } from "../core.js"; +import { encodeFormQuery, encodeSimple } from "../lib/encodings.js"; +import * as M from "../lib/matchers.js"; +import { compactMap } from "../lib/primitives.js"; +import { safeParse } from "../lib/schemas.js"; +import { RequestOptions } from "../lib/sdks.js"; +import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js"; +import { pathToFunc } from "../lib/url.js"; +import * as components from "../models/components/index.js"; +import { FirehydrantError } from "../models/errors/firehydranterror.js"; +import { + ConnectionError, + InvalidRequestError, + RequestAbortedError, + RequestTimeoutError, + UnexpectedClientError, +} from "../models/errors/httpclienterrors.js"; +import { ResponseValidationError } from "../models/errors/responsevalidationerror.js"; +import { SDKValidationError } from "../models/errors/sdkvalidationerror.js"; +import * as operations from "../models/operations/index.js"; +import { APICall, APIPromise } from "../types/async.js"; +import { Result } from "../types/fp.js"; + +/** + * List environments for a service + * + * @remarks + * List environments for a service + */ +export function catalogEntriesListServiceEnvironments( + client: FirehydrantCore, + request: operations.ListServiceEnvironmentsRequest, + options?: RequestOptions, +): APIPromise< + Result< + components.EnvironmentEntryEntityPaginated, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + > +> { + return new APIPromise($do( + client, + request, + options, + )); +} + +async function $do( + client: FirehydrantCore, + request: operations.ListServiceEnvironmentsRequest, + options?: RequestOptions, +): Promise< + [ + Result< + components.EnvironmentEntryEntityPaginated, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >, + APICall, + ] +> { + const parsed = safeParse( + request, + (value) => + operations.ListServiceEnvironmentsRequest$outboundSchema.parse(value), + "Input validation failed", + ); + if (!parsed.ok) { + return [parsed, { status: "invalid" }]; + } + const payload = parsed.value; + const body = null; + + const pathParams = { + service_id: encodeSimple("service_id", payload.service_id, { + explode: false, + charEncoding: "percent", + }), + }; + + const path = pathToFunc("/v1/services/{service_id}/environments")(pathParams); + + const query = encodeFormQuery({ + "page": payload.page, + "per_page": payload.per_page, + }); + + const headers = new Headers(compactMap({ + Accept: "application/json", + })); + + const secConfig = await extractSecurity(client._options.apiKey); + const securityInput = secConfig == null ? {} : { apiKey: secConfig }; + const requestSecurity = resolveGlobalSecurity(securityInput); + + const context = { + options: client._options, + baseURL: options?.serverURL ?? client._baseURL ?? "", + operationID: "list_service_environments", + oAuth2Scopes: null, + + resolvedSecurity: requestSecurity, + + securitySource: client._options.apiKey, + retryConfig: options?.retries + || client._options.retryConfig + || { strategy: "none" }, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }; + + const requestRes = client._createRequest(context, { + security: requestSecurity, + method: "GET", + baseURL: options?.serverURL, + path: path, + headers: headers, + query: query, + body: body, + userAgent: client._options.userAgent, + timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1, + }, options); + if (!requestRes.ok) { + return [requestRes, { status: "invalid" }]; + } + const req = requestRes.value; + + const doResult = await client._do(req, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: context.retryConfig, + retryCodes: context.retryCodes, + }); + if (!doResult.ok) { + return [doResult, { status: "request-error", request: req }]; + } + const response = doResult.value; + + const [result] = await M.match< + components.EnvironmentEntryEntityPaginated, + | FirehydrantError + | ResponseValidationError + | ConnectionError + | RequestAbortedError + | RequestTimeoutError + | InvalidRequestError + | UnexpectedClientError + | SDKValidationError + >( + M.json(200, components.EnvironmentEntryEntityPaginated$inboundSchema), + M.fail("4XX"), + M.fail("5XX"), + )(response, req); + if (!result.ok) { + return [result, { status: "complete", request: req, response }]; + } + + return [result, { status: "complete", request: req, response }]; +} diff --git a/src/lib/config.ts b/src/lib/config.ts index 15afaf54..0aef28f3 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.1", - sdkVersion: "1.2.1", - genVersion: "2.788.4", + sdkVersion: "1.2.2", + genVersion: "2.795.6", userAgent: - "speakeasy-sdk/typescript 1.2.1 2.788.4 0.0.1 firehydrant-typescript-sdk", + "speakeasy-sdk/typescript 1.2.2 2.795.6 0.0.1 firehydrant-typescript-sdk", } as const; diff --git a/src/lib/sdks.ts b/src/lib/sdks.ts index 3e4562e7..801ec54d 100644 --- a/src/lib/sdks.ts +++ b/src/lib/sdks.ts @@ -308,9 +308,9 @@ export class ClientSDK { } } -const jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/; +const jsonLikeContentTypeRE = /^(application|text)\/([^+]+\+)*json.*/; const jsonlLikeContentTypeRE = - /(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/; + /^(application|text)\/([^+]+\+)*(jsonl|x-ndjson)\b.*/; async function logRequest(logger: Logger | undefined, req: Request) { if (!logger) { return; diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index f64973ea..5340edde 100644 --- a/src/mcp-server/mcp-server.ts +++ b/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "1.2.1", + currentVersion: "1.2.2", }, }); diff --git a/src/mcp-server/prompts.ts b/src/mcp-server/prompts.ts index 4f19c23a..af39cd60 100644 --- a/src/mcp-server/prompts.ts +++ b/src/mcp-server/prompts.ts @@ -4,7 +4,11 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { GetPromptResult } from "@modelcontextprotocol/sdk/types.js"; +import { + GetPromptResult, + ServerNotification, + ServerRequest, +} from "@modelcontextprotocol/sdk/types.js"; import { objectOutputType, ZodOptional, @@ -33,7 +37,7 @@ export type PromptDefinition< prompt: ( client: FirehydrantCore, args: objectOutputType, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => GetPromptResult | Promise; } : { @@ -43,7 +47,7 @@ export type PromptDefinition< args?: undefined; prompt: ( client: FirehydrantCore, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => GetPromptResult | Promise; }; diff --git a/src/mcp-server/resources.ts b/src/mcp-server/resources.ts index cbdf6b7e..ce0980f1 100644 --- a/src/mcp-server/resources.ts +++ b/src/mcp-server/resources.ts @@ -9,7 +9,11 @@ import { } from "@modelcontextprotocol/sdk/server/mcp.js"; import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; import { Variables } from "@modelcontextprotocol/sdk/shared/uriTemplate.js"; -import { ReadResourceResult } from "@modelcontextprotocol/sdk/types.js"; +import { + ReadResourceResult, + ServerNotification, + ServerRequest, +} from "@modelcontextprotocol/sdk/types.js"; import { FirehydrantCore } from "../core.js"; import { ConsoleLogger } from "./console-logger.js"; import { MCPScope } from "./scopes.js"; @@ -18,7 +22,7 @@ import { isAsyncIterable, isBinaryData, valueToBase64 } from "./shared.js"; export type ReadResourceCallback = ( client: FirehydrantCore, uri: URL, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => ReadResourceResult | Promise; export type ResourceDefinition = { @@ -34,7 +38,7 @@ export type ReadResourceTemplateCallback = ( client: FirehydrantCore, uri: URL, vars: Variables, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => ReadResourceResult | Promise; export type ResourceTemplateDefinition = { diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 69426223..289c5724 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -63,12 +63,16 @@ import { tool$catalogEntriesGetService } from "./tools/catalogEntriesGetService. import { tool$catalogEntriesGetServiceDependencies } from "./tools/catalogEntriesGetServiceDependencies.js"; import { tool$catalogEntriesGetServiceDependency } from "./tools/catalogEntriesGetServiceDependency.js"; import { tool$catalogEntriesIngestCatalogData } from "./tools/catalogEntriesIngestCatalogData.js"; +import { tool$catalogEntriesListEnvironmentFunctionalities } from "./tools/catalogEntriesListEnvironmentFunctionalities.js"; import { tool$catalogEntriesListEnvironments } from "./tools/catalogEntriesListEnvironments.js"; +import { tool$catalogEntriesListEnvironmentServices } from "./tools/catalogEntriesListEnvironmentServices.js"; import { tool$catalogEntriesListFunctionalities } from "./tools/catalogEntriesListFunctionalities.js"; +import { tool$catalogEntriesListFunctionalityEnvironments } from "./tools/catalogEntriesListFunctionalityEnvironments.js"; import { tool$catalogEntriesListFunctionalityServices } from "./tools/catalogEntriesListFunctionalityServices.js"; import { tool$catalogEntriesListInfrastructures } from "./tools/catalogEntriesListInfrastructures.js"; import { tool$catalogEntriesListServiceAvailableDownstreamDependencies } from "./tools/catalogEntriesListServiceAvailableDownstreamDependencies.js"; import { tool$catalogEntriesListServiceAvailableUpstreamDependencies } from "./tools/catalogEntriesListServiceAvailableUpstreamDependencies.js"; +import { tool$catalogEntriesListServiceEnvironments } from "./tools/catalogEntriesListServiceEnvironments.js"; import { tool$catalogEntriesListServices } from "./tools/catalogEntriesListServices.js"; import { tool$catalogEntriesListUserOwnedServices } from "./tools/catalogEntriesListUserOwnedServices.js"; import { tool$catalogEntriesRefreshCatalog } from "./tools/catalogEntriesRefreshCatalog.js"; @@ -277,7 +281,6 @@ import { tool$retrospectivesExportIncidentRetrospectives } from "./tools/retrosp import { tool$retrospectivesGetIncidentRetrospectiveField } from "./tools/retrospectivesGetIncidentRetrospectiveField.js"; import { tool$retrospectivesGetPostMortemQuestion } from "./tools/retrospectivesGetPostMortemQuestion.js"; import { tool$retrospectivesGetPostMortemReport } from "./tools/retrospectivesGetPostMortemReport.js"; -import { tool$retrospectivesGetRetrospectiveReportTemplate } from "./tools/retrospectivesGetRetrospectiveReportTemplate.js"; import { tool$retrospectivesGetRetrospectiveTemplate } from "./tools/retrospectivesGetRetrospectiveTemplate.js"; import { tool$retrospectivesListIncidentRetrospectives } from "./tools/retrospectivesListIncidentRetrospectives.js"; import { tool$retrospectivesListPostMortemQuestions } from "./tools/retrospectivesListPostMortemQuestions.js"; @@ -482,7 +485,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "Firehydrant", - version: "1.2.1", + version: "1.2.2", }); const client = new FirehydrantCore({ @@ -523,12 +526,15 @@ export function createMCPServer(deps: { tool(tool$catalogEntriesGetEnvironment); tool(tool$catalogEntriesDeleteEnvironment); tool(tool$catalogEntriesUpdateEnvironment); + tool(tool$catalogEntriesListEnvironmentServices); + tool(tool$catalogEntriesListEnvironmentFunctionalities); tool(tool$catalogEntriesListServices); tool(tool$catalogEntriesCreateService); tool(tool$catalogEntriesCreateServiceLinks); tool(tool$catalogEntriesGetService); tool(tool$catalogEntriesDeleteService); tool(tool$catalogEntriesUpdateService); + tool(tool$catalogEntriesListServiceEnvironments); tool(tool$catalogEntriesGetServiceDependencies); tool(tool$catalogEntriesListServiceAvailableUpstreamDependencies); tool(tool$catalogEntriesListServiceAvailableDownstreamDependencies); @@ -543,6 +549,7 @@ export function createMCPServer(deps: { tool(tool$catalogEntriesGetFunctionality); tool(tool$catalogEntriesDeleteFunctionality); tool(tool$catalogEntriesUpdateFunctionality); + tool(tool$catalogEntriesListFunctionalityEnvironments); tool(tool$catalogEntriesListFunctionalityServices); tool(tool$catalogEntriesListUserOwnedServices); tool(tool$catalogEntriesListInfrastructures); @@ -772,7 +779,6 @@ export function createMCPServer(deps: { tool(tool$retrospectivesGetRetrospectiveTemplate); tool(tool$retrospectivesDeleteRetrospectiveTemplate); tool(tool$retrospectivesUpdateRetrospectiveTemplate); - tool(tool$retrospectivesGetRetrospectiveReportTemplate); tool(tool$incidentSettingsListIncidentRoles); tool(tool$incidentSettingsCreateIncidentRole); tool(tool$incidentSettingsGetIncidentRole); diff --git a/src/mcp-server/tools.ts b/src/mcp-server/tools.ts index c7d93c0c..5204fef7 100644 --- a/src/mcp-server/tools.ts +++ b/src/mcp-server/tools.ts @@ -4,7 +4,11 @@ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { RequestHandlerExtra } from "@modelcontextprotocol/sdk/shared/protocol.js"; -import { CallToolResult } from "@modelcontextprotocol/sdk/types.js"; +import { + CallToolResult, + ServerNotification, + ServerRequest, +} from "@modelcontextprotocol/sdk/types.js"; import { objectOutputType, ZodRawShape, ZodTypeAny } from "zod/v3"; import { FirehydrantCore } from "../core.js"; import { ConsoleLogger } from "./console-logger.js"; @@ -20,7 +24,7 @@ export type ToolDefinition = tool: ( client: FirehydrantCore, args: objectOutputType, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => CallToolResult | Promise; } : { @@ -30,7 +34,7 @@ export type ToolDefinition = args?: undefined; tool: ( client: FirehydrantCore, - extra: RequestHandlerExtra, + extra: RequestHandlerExtra, ) => CallToolResult | Promise; }; diff --git a/src/mcp-server/tools/retrospectivesGetRetrospectiveReportTemplate.ts b/src/mcp-server/tools/catalogEntriesListEnvironmentFunctionalities.ts similarity index 58% rename from src/mcp-server/tools/retrospectivesGetRetrospectiveReportTemplate.ts rename to src/mcp-server/tools/catalogEntriesListEnvironmentFunctionalities.ts index ecbda723..334f89a4 100644 --- a/src/mcp-server/tools/retrospectivesGetRetrospectiveReportTemplate.ts +++ b/src/mcp-server/tools/catalogEntriesListEnvironmentFunctionalities.ts @@ -2,25 +2,25 @@ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -import { retrospectivesGetRetrospectiveReportTemplate } from "../../funcs/retrospectivesGetRetrospectiveReportTemplate.js"; +import { catalogEntriesListEnvironmentFunctionalities } from "../../funcs/catalogEntriesListEnvironmentFunctionalities.js"; import * as operations from "../../models/operations/index.js"; import { formatResult, ToolDefinition } from "../tools.js"; const args = { - request: operations.GetRetrospectiveReportTemplateRequest$inboundSchema, + request: operations.ListEnvironmentFunctionalitiesRequest$inboundSchema, }; -export const tool$retrospectivesGetRetrospectiveReportTemplate: ToolDefinition< +export const tool$catalogEntriesListEnvironmentFunctionalities: ToolDefinition< typeof args > = { - name: "retrospectives-get-retrospective-report-template", - description: `Get a retrospective report template + name: "catalog-entries-list-environment-functionalities", + description: `List functionalities for an environment -Retrieve a single retrospective report template by ID`, +List functionalities for an environment`, args, tool: async (client, args, ctx) => { const [result, apiCall] = - await retrospectivesGetRetrospectiveReportTemplate( + await catalogEntriesListEnvironmentFunctionalities( client, args.request, { fetchOptions: { signal: ctx.signal } }, diff --git a/src/mcp-server/tools/catalogEntriesListEnvironmentServices.ts b/src/mcp-server/tools/catalogEntriesListEnvironmentServices.ts new file mode 100644 index 00000000..0bfd2137 --- /dev/null +++ b/src/mcp-server/tools/catalogEntriesListEnvironmentServices.ts @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { catalogEntriesListEnvironmentServices } from "../../funcs/catalogEntriesListEnvironmentServices.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.ListEnvironmentServicesRequest$inboundSchema, +}; + +export const tool$catalogEntriesListEnvironmentServices: ToolDefinition< + typeof args +> = { + name: "catalog-entries-list-environment-services", + description: `List services for an environment + +List services for an environment`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await catalogEntriesListEnvironmentServices( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/catalogEntriesListFunctionalityEnvironments.ts b/src/mcp-server/tools/catalogEntriesListFunctionalityEnvironments.ts new file mode 100644 index 00000000..d8818bb1 --- /dev/null +++ b/src/mcp-server/tools/catalogEntriesListFunctionalityEnvironments.ts @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { catalogEntriesListFunctionalityEnvironments } from "../../funcs/catalogEntriesListFunctionalityEnvironments.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.ListFunctionalityEnvironmentsRequest$inboundSchema, +}; + +export const tool$catalogEntriesListFunctionalityEnvironments: ToolDefinition< + typeof args +> = { + name: "catalog-entries-list-functionality-environments", + description: `List environments for a functionality + +List environments for a functionality`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await catalogEntriesListFunctionalityEnvironments( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/mcp-server/tools/catalogEntriesListServiceEnvironments.ts b/src/mcp-server/tools/catalogEntriesListServiceEnvironments.ts new file mode 100644 index 00000000..5e4a1193 --- /dev/null +++ b/src/mcp-server/tools/catalogEntriesListServiceEnvironments.ts @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import { catalogEntriesListServiceEnvironments } from "../../funcs/catalogEntriesListServiceEnvironments.js"; +import * as operations from "../../models/operations/index.js"; +import { formatResult, ToolDefinition } from "../tools.js"; + +const args = { + request: operations.ListServiceEnvironmentsRequest$inboundSchema, +}; + +export const tool$catalogEntriesListServiceEnvironments: ToolDefinition< + typeof args +> = { + name: "catalog-entries-list-service-environments", + description: `List environments for a service + +List environments for a service`, + args, + tool: async (client, args, ctx) => { + const [result, apiCall] = await catalogEntriesListServiceEnvironments( + client, + args.request, + { fetchOptions: { signal: ctx.signal } }, + ).$inspect(); + + if (!result.ok) { + return { + content: [{ type: "text", text: result.error.message }], + isError: true, + }; + } + + const value = result.value; + + return formatResult(value, apiCall); + }, +}; diff --git a/src/models/components/createenvironment.ts b/src/models/components/createenvironment.ts index bc5e376c..15fbb2bd 100644 --- a/src/models/components/createenvironment.ts +++ b/src/models/components/createenvironment.ts @@ -7,14 +7,110 @@ import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +export type CreateEnvironmentFunctionality = { + /** + * ID of a functionality + */ + id: string; +}; + +export type CreateEnvironmentService = { + /** + * ID of a service + */ + id: string; +}; + /** * Creates an environment for the organization */ export type CreateEnvironment = { name: string; description?: string | null | undefined; + functionalities?: Array | null | undefined; + services?: Array | null | undefined; +}; + +/** @internal */ +export const CreateEnvironmentFunctionality$inboundSchema: z.ZodType< + CreateEnvironmentFunctionality, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), +}); +/** @internal */ +export type CreateEnvironmentFunctionality$Outbound = { + id: string; +}; + +/** @internal */ +export const CreateEnvironmentFunctionality$outboundSchema: z.ZodType< + CreateEnvironmentFunctionality$Outbound, + z.ZodTypeDef, + CreateEnvironmentFunctionality +> = z.object({ + id: z.string(), +}); + +export function createEnvironmentFunctionalityToJSON( + createEnvironmentFunctionality: CreateEnvironmentFunctionality, +): string { + return JSON.stringify( + CreateEnvironmentFunctionality$outboundSchema.parse( + createEnvironmentFunctionality, + ), + ); +} +export function createEnvironmentFunctionalityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateEnvironmentFunctionality$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateEnvironmentFunctionality' from JSON`, + ); +} + +/** @internal */ +export const CreateEnvironmentService$inboundSchema: z.ZodType< + CreateEnvironmentService, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), +}); +/** @internal */ +export type CreateEnvironmentService$Outbound = { + id: string; }; +/** @internal */ +export const CreateEnvironmentService$outboundSchema: z.ZodType< + CreateEnvironmentService$Outbound, + z.ZodTypeDef, + CreateEnvironmentService +> = z.object({ + id: z.string(), +}); + +export function createEnvironmentServiceToJSON( + createEnvironmentService: CreateEnvironmentService, +): string { + return JSON.stringify( + CreateEnvironmentService$outboundSchema.parse(createEnvironmentService), + ); +} +export function createEnvironmentServiceFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateEnvironmentService$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateEnvironmentService' from JSON`, + ); +} + /** @internal */ export const CreateEnvironment$inboundSchema: z.ZodType< CreateEnvironment, @@ -23,11 +119,22 @@ export const CreateEnvironment$inboundSchema: z.ZodType< > = z.object({ name: z.string(), description: z.nullable(z.string()).optional(), + functionalities: z.nullable( + z.array(z.lazy(() => CreateEnvironmentFunctionality$inboundSchema)), + ).optional(), + services: z.nullable( + z.array(z.lazy(() => CreateEnvironmentService$inboundSchema)), + ).optional(), }); /** @internal */ export type CreateEnvironment$Outbound = { name: string; description?: string | null | undefined; + functionalities?: + | Array + | null + | undefined; + services?: Array | null | undefined; }; /** @internal */ @@ -38,6 +145,12 @@ export const CreateEnvironment$outboundSchema: z.ZodType< > = z.object({ name: z.string(), description: z.nullable(z.string()).optional(), + functionalities: z.nullable( + z.array(z.lazy(() => CreateEnvironmentFunctionality$outboundSchema)), + ).optional(), + services: z.nullable( + z.array(z.lazy(() => CreateEnvironmentService$outboundSchema)), + ).optional(), }); export function createEnvironmentToJSON( diff --git a/src/models/components/createfunctionality.ts b/src/models/components/createfunctionality.ts index e7249434..f4a41278 100644 --- a/src/models/components/createfunctionality.ts +++ b/src/models/components/createfunctionality.ts @@ -16,6 +16,13 @@ export type CreateFunctionalityService = { id: string; }; +export type CreateFunctionalityEnvironment = { + /** + * ID of an environment + */ + id: string; +}; + /** * Integer representing functionality tier. Lower values represent higher criticality. Default is 5. */ @@ -75,6 +82,7 @@ export type CreateFunctionality = { name: string; description?: string | null | undefined; services?: Array | null | undefined; + environments?: Array | null | undefined; /** * A hash of label keys and values */ @@ -145,6 +153,47 @@ export function createFunctionalityServiceFromJSON( ); } +/** @internal */ +export const CreateFunctionalityEnvironment$inboundSchema: z.ZodType< + CreateFunctionalityEnvironment, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), +}); +/** @internal */ +export type CreateFunctionalityEnvironment$Outbound = { + id: string; +}; + +/** @internal */ +export const CreateFunctionalityEnvironment$outboundSchema: z.ZodType< + CreateFunctionalityEnvironment$Outbound, + z.ZodTypeDef, + CreateFunctionalityEnvironment +> = z.object({ + id: z.string(), +}); + +export function createFunctionalityEnvironmentToJSON( + createFunctionalityEnvironment: CreateFunctionalityEnvironment, +): string { + return JSON.stringify( + CreateFunctionalityEnvironment$outboundSchema.parse( + createFunctionalityEnvironment, + ), + ); +} +export function createFunctionalityEnvironmentFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateFunctionalityEnvironment$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateFunctionalityEnvironment' from JSON`, + ); +} + /** @internal */ export const CreateFunctionalityServiceTier$inboundSchema: z.ZodNativeEnum< typeof CreateFunctionalityServiceTier @@ -353,6 +402,9 @@ export const CreateFunctionality$inboundSchema: z.ZodType< services: z.nullable( z.array(z.lazy(() => CreateFunctionalityService$inboundSchema)), ).optional(), + environments: z.nullable( + z.array(z.lazy(() => CreateFunctionalityEnvironment$inboundSchema)), + ).optional(), labels: z.nullable(z.record(z.string())).optional(), service_tier: z.nullable(CreateFunctionalityServiceTier$inboundSchema) .optional(), @@ -382,6 +434,10 @@ export type CreateFunctionality$Outbound = { name: string; description?: string | null | undefined; services?: Array | null | undefined; + environments?: + | Array + | null + | undefined; labels?: { [k: string]: string } | null | undefined; service_tier?: number | null | undefined; alert_on_add?: boolean | null | undefined; @@ -406,6 +462,9 @@ export const CreateFunctionality$outboundSchema: z.ZodType< services: z.nullable( z.array(z.lazy(() => CreateFunctionalityService$outboundSchema)), ).optional(), + environments: z.nullable( + z.array(z.lazy(() => CreateFunctionalityEnvironment$outboundSchema)), + ).optional(), labels: z.nullable(z.record(z.string())).optional(), serviceTier: z.nullable(CreateFunctionalityServiceTier$outboundSchema) .optional(), diff --git a/src/models/components/createservice.ts b/src/models/components/createservice.ts index 3a82fb49..8462bdd4 100644 --- a/src/models/components/createservice.ts +++ b/src/models/components/createservice.ts @@ -38,6 +38,13 @@ export type CreateServiceFunctionality = { id?: string | null | undefined; }; +export type CreateServiceEnvironment = { + /** + * ID of an environment + */ + id: string; +}; + export type CreateServiceLink = { /** * Short name used to display and identify this link @@ -90,6 +97,7 @@ export type CreateService = { * An array of functionalities */ functionalities?: Array | null | undefined; + environments?: Array | null | undefined; /** * An array of links to associate with this service */ @@ -161,6 +169,45 @@ export function createServiceFunctionalityFromJSON( ); } +/** @internal */ +export const CreateServiceEnvironment$inboundSchema: z.ZodType< + CreateServiceEnvironment, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), +}); +/** @internal */ +export type CreateServiceEnvironment$Outbound = { + id: string; +}; + +/** @internal */ +export const CreateServiceEnvironment$outboundSchema: z.ZodType< + CreateServiceEnvironment$Outbound, + z.ZodTypeDef, + CreateServiceEnvironment +> = z.object({ + id: z.string(), +}); + +export function createServiceEnvironmentToJSON( + createServiceEnvironment: CreateServiceEnvironment, +): string { + return JSON.stringify( + CreateServiceEnvironment$outboundSchema.parse(createServiceEnvironment), + ); +} +export function createServiceEnvironmentFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => CreateServiceEnvironment$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'CreateServiceEnvironment' from JSON`, + ); +} + /** @internal */ export const CreateServiceLink$inboundSchema: z.ZodType< CreateServiceLink, @@ -361,6 +408,9 @@ export const CreateService$inboundSchema: z.ZodType< functionalities: z.nullable( z.array(z.lazy(() => CreateServiceFunctionality$inboundSchema)), ).optional(), + environments: z.nullable( + z.array(z.lazy(() => CreateServiceEnvironment$inboundSchema)), + ).optional(), links: z.nullable(z.array(z.lazy(() => CreateServiceLink$inboundSchema))) .optional(), owner: z.nullable(z.lazy(() => CreateServiceOwner$inboundSchema)).optional(), @@ -389,6 +439,7 @@ export type CreateService$Outbound = { | Array | null | undefined; + environments?: Array | null | undefined; links?: Array | null | undefined; owner?: CreateServiceOwner$Outbound | null | undefined; teams?: Array | null | undefined; @@ -413,6 +464,9 @@ export const CreateService$outboundSchema: z.ZodType< functionalities: z.nullable( z.array(z.lazy(() => CreateServiceFunctionality$outboundSchema)), ).optional(), + environments: z.nullable( + z.array(z.lazy(() => CreateServiceEnvironment$outboundSchema)), + ).optional(), links: z.nullable(z.array(z.lazy(() => CreateServiceLink$outboundSchema))) .optional(), owner: z.nullable(z.lazy(() => CreateServiceOwner$outboundSchema)).optional(), diff --git a/src/models/components/environmententryentity.ts b/src/models/components/environmententryentity.ts index e7a819d6..8612a618 100644 --- a/src/models/components/environmententryentity.ts +++ b/src/models/components/environmententryentity.ts @@ -13,6 +13,18 @@ import { ExternalResourceEntity$Outbound, ExternalResourceEntity$outboundSchema, } from "./externalresourceentity.js"; +import { + FunctionalityEntityLite, + FunctionalityEntityLite$inboundSchema, + FunctionalityEntityLite$Outbound, + FunctionalityEntityLite$outboundSchema, +} from "./functionalityentitylite.js"; +import { + ServiceEntityLite, + ServiceEntityLite$inboundSchema, + ServiceEntityLite$Outbound, + ServiceEntityLite$outboundSchema, +} from "./serviceentitylite.js"; /** * EnvironmentEntryEntity model @@ -50,6 +62,14 @@ export type EnvironmentEntryEntity = { * Information about known linkages to representations of services outside of FireHydrant. */ externalResources?: Array | null | undefined; + /** + * Functionalities related to this environment + */ + functionalities?: Array | null | undefined; + /** + * Services related to this environment + */ + services?: Array | null | undefined; }; /** @internal */ @@ -71,6 +91,9 @@ export const EnvironmentEntryEntity$inboundSchema: z.ZodType< active_incidents: z.nullable(z.array(z.string())).optional(), external_resources: z.nullable(z.array(ExternalResourceEntity$inboundSchema)) .optional(), + functionalities: z.nullable(z.array(FunctionalityEntityLite$inboundSchema)) + .optional(), + services: z.nullable(z.array(ServiceEntityLite$inboundSchema)).optional(), }).transform((v) => { return remap$(v, { "updated_at": "updatedAt", @@ -92,6 +115,8 @@ export type EnvironmentEntryEntity$Outbound = { | Array | null | undefined; + functionalities?: Array | null | undefined; + services?: Array | null | undefined; }; /** @internal */ @@ -109,6 +134,9 @@ export const EnvironmentEntryEntity$outboundSchema: z.ZodType< activeIncidents: z.nullable(z.array(z.string())).optional(), externalResources: z.nullable(z.array(ExternalResourceEntity$outboundSchema)) .optional(), + functionalities: z.nullable(z.array(FunctionalityEntityLite$outboundSchema)) + .optional(), + services: z.nullable(z.array(ServiceEntityLite$outboundSchema)).optional(), }).transform((v) => { return remap$(v, { updatedAt: "updated_at", diff --git a/src/models/components/functionalityentity.ts b/src/models/components/functionalityentity.ts index 7a5ed69e..3516e6e5 100644 --- a/src/models/components/functionalityentity.ts +++ b/src/models/components/functionalityentity.ts @@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + EnvironmentEntryEntity, + EnvironmentEntryEntity$inboundSchema, + EnvironmentEntryEntity$Outbound, + EnvironmentEntryEntity$outboundSchema, +} from "./environmententryentity.js"; import { ExternalResourceEntity, ExternalResourceEntity$inboundSchema, @@ -78,6 +84,10 @@ export type FunctionalityEntity = { * Services this functionality provides */ services?: Array | null | undefined; + /** + * Environments related to this functionality + */ + environments?: Array | null | undefined; /** * Information about known linkages to representations of services outside of FireHydrant. */ @@ -113,6 +123,8 @@ export const FunctionalityEntity$inboundSchema: z.ZodType< auto_add_responding_team: z.nullable(z.boolean()).optional(), updated_by: z.nullable(NullableAuthorEntity$inboundSchema).optional(), services: z.nullable(z.array(ServiceEntityLite$inboundSchema)).optional(), + environments: z.nullable(z.array(EnvironmentEntryEntity$inboundSchema)) + .optional(), external_resources: z.nullable(z.array(ExternalResourceEntity$inboundSchema)) .optional(), teams: z.nullable(z.array(TeamEntityLite$inboundSchema)).optional(), @@ -145,6 +157,7 @@ export type FunctionalityEntity$Outbound = { auto_add_responding_team?: boolean | null | undefined; updated_by?: NullableAuthorEntity$Outbound | null | undefined; services?: Array | null | undefined; + environments?: Array | null | undefined; external_resources?: | Array | null @@ -173,6 +186,8 @@ export const FunctionalityEntity$outboundSchema: z.ZodType< autoAddRespondingTeam: z.nullable(z.boolean()).optional(), updatedBy: z.nullable(NullableAuthorEntity$outboundSchema).optional(), services: z.nullable(z.array(ServiceEntityLite$outboundSchema)).optional(), + environments: z.nullable(z.array(EnvironmentEntryEntity$outboundSchema)) + .optional(), externalResources: z.nullable(z.array(ExternalResourceEntity$outboundSchema)) .optional(), teams: z.nullable(z.array(TeamEntityLite$outboundSchema)).optional(), diff --git a/src/models/components/functionalityentitylitepaginated.ts b/src/models/components/functionalityentitylitepaginated.ts new file mode 100644 index 00000000..19cc7dbb --- /dev/null +++ b/src/models/components/functionalityentitylitepaginated.ts @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + FunctionalityEntityLite, + FunctionalityEntityLite$inboundSchema, + FunctionalityEntityLite$Outbound, + FunctionalityEntityLite$outboundSchema, +} from "./functionalityentitylite.js"; +import { + NullablePaginationEntity, + NullablePaginationEntity$inboundSchema, + NullablePaginationEntity$Outbound, + NullablePaginationEntity$outboundSchema, +} from "./nullablepaginationentity.js"; + +/** + * FunctionalityEntityLitePaginated model + */ +export type FunctionalityEntityLitePaginated = { + data?: Array | null | undefined; + pagination?: NullablePaginationEntity | null | undefined; +}; + +/** @internal */ +export const FunctionalityEntityLitePaginated$inboundSchema: z.ZodType< + FunctionalityEntityLitePaginated, + z.ZodTypeDef, + unknown +> = z.object({ + data: z.nullable(z.array(FunctionalityEntityLite$inboundSchema)).optional(), + pagination: z.nullable(NullablePaginationEntity$inboundSchema).optional(), +}); +/** @internal */ +export type FunctionalityEntityLitePaginated$Outbound = { + data?: Array | null | undefined; + pagination?: NullablePaginationEntity$Outbound | null | undefined; +}; + +/** @internal */ +export const FunctionalityEntityLitePaginated$outboundSchema: z.ZodType< + FunctionalityEntityLitePaginated$Outbound, + z.ZodTypeDef, + FunctionalityEntityLitePaginated +> = z.object({ + data: z.nullable(z.array(FunctionalityEntityLite$outboundSchema)).optional(), + pagination: z.nullable(NullablePaginationEntity$outboundSchema).optional(), +}); + +export function functionalityEntityLitePaginatedToJSON( + functionalityEntityLitePaginated: FunctionalityEntityLitePaginated, +): string { + return JSON.stringify( + FunctionalityEntityLitePaginated$outboundSchema.parse( + functionalityEntityLitePaginated, + ), + ); +} +export function functionalityEntityLitePaginatedFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => FunctionalityEntityLitePaginated$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'FunctionalityEntityLitePaginated' from JSON`, + ); +} diff --git a/src/models/components/incidentsretrospectivefieldentity.ts b/src/models/components/incidentsretrospectivefieldentity.ts index d62d9596..177ad37c 100644 --- a/src/models/components/incidentsretrospectivefieldentity.ts +++ b/src/models/components/incidentsretrospectivefieldentity.ts @@ -36,6 +36,7 @@ export type IncidentsRetrospectiveFieldEntity = { permissibleValues?: Array | null | undefined; isRequired?: boolean | null | undefined; value?: string | null | undefined; + retrospectiveFieldId?: string | null | undefined; schema?: Array | null | undefined; requiredAtMilestoneId?: string | null | undefined; }; @@ -90,6 +91,7 @@ export const IncidentsRetrospectiveFieldEntity$inboundSchema: z.ZodType< permissible_values: z.nullable(z.array(z.string())).optional(), is_required: z.nullable(z.boolean()).optional(), value: z.nullable(z.string()).optional(), + retrospective_field_id: z.nullable(z.string()).optional(), schema: z.nullable(z.array(z.lazy(() => Schema$inboundSchema))).optional(), required_at_milestone_id: z.nullable(z.string()).optional(), }).transform((v) => { @@ -97,6 +99,7 @@ export const IncidentsRetrospectiveFieldEntity$inboundSchema: z.ZodType< "help_text": "helpText", "permissible_values": "permissibleValues", "is_required": "isRequired", + "retrospective_field_id": "retrospectiveFieldId", "required_at_milestone_id": "requiredAtMilestoneId", }); }); @@ -109,6 +112,7 @@ export type IncidentsRetrospectiveFieldEntity$Outbound = { permissible_values?: Array | null | undefined; is_required?: boolean | null | undefined; value?: string | null | undefined; + retrospective_field_id?: string | null | undefined; schema?: Array | null | undefined; required_at_milestone_id?: string | null | undefined; }; @@ -127,6 +131,7 @@ export const IncidentsRetrospectiveFieldEntity$outboundSchema: z.ZodType< permissibleValues: z.nullable(z.array(z.string())).optional(), isRequired: z.nullable(z.boolean()).optional(), value: z.nullable(z.string()).optional(), + retrospectiveFieldId: z.nullable(z.string()).optional(), schema: z.nullable(z.array(z.lazy(() => Schema$outboundSchema))).optional(), requiredAtMilestoneId: z.nullable(z.string()).optional(), }).transform((v) => { @@ -134,6 +139,7 @@ export const IncidentsRetrospectiveFieldEntity$outboundSchema: z.ZodType< helpText: "help_text", permissibleValues: "permissible_values", isRequired: "is_required", + retrospectiveFieldId: "retrospective_field_id", requiredAtMilestoneId: "required_at_milestone_id", }); }); diff --git a/src/models/components/index.ts b/src/models/components/index.ts index 260ff17e..37ccccf0 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -108,6 +108,7 @@ export * from "./fieldmappingmappablefieldentity.js"; export * from "./formconfigurationentity.js"; export * from "./functionalityentity.js"; export * from "./functionalityentitylite.js"; +export * from "./functionalityentitylitepaginated.js"; export * from "./functionalityentitypaginated.js"; export * from "./functionalitywithallservicesentity.js"; export * from "./importsimportentity.js"; @@ -300,8 +301,6 @@ export * from "./reportsdatapointentity.js"; export * from "./retrospectivesfieldentity.js"; export * from "./retrospectivesindextemplateentity.js"; export * from "./retrospectivesindextemplateentitypaginated.js"; -export * from "./retrospectivesreporttemplateentity.js"; -export * from "./retrospectivesreporttemplateentityelemententity.js"; export * from "./retrospectivestemplateentity.js"; export * from "./retrospectivestemplateentityincidentsectionentity.js"; export * from "./retrospectivestemplateentityreportelemententity.js"; @@ -326,6 +325,7 @@ export * from "./servicedependencyentity.js"; export * from "./serviceentity.js"; export * from "./serviceentitychecklist.js"; export * from "./serviceentitylite.js"; +export * from "./serviceentitylitepaginated.js"; export * from "./serviceentitypaginated.js"; export * from "./servicelinkentity.js"; export * from "./serviceparentdependencyentity.js"; diff --git a/src/models/components/nullableserviceentity.ts b/src/models/components/nullableserviceentity.ts index 8a751d7d..fe2c8c1e 100644 --- a/src/models/components/nullableserviceentity.ts +++ b/src/models/components/nullableserviceentity.ts @@ -13,6 +13,12 @@ import { ChecklistTemplateEntity$Outbound, ChecklistTemplateEntity$outboundSchema, } from "./checklisttemplateentity.js"; +import { + EnvironmentEntryEntity, + EnvironmentEntryEntity$inboundSchema, + EnvironmentEntryEntity$Outbound, + EnvironmentEntryEntity$outboundSchema, +} from "./environmententryentity.js"; import { ExternalResourceEntity, ExternalResourceEntity$inboundSchema, @@ -96,6 +102,10 @@ export type NullableServiceEntity = { * List of functionalities attached to the service */ functionalities?: Array | null | undefined; + /** + * Environments related to this service + */ + environments?: Array | null | undefined; lastImport?: NullableImportsImportableResourceEntity | null | undefined; /** * List of links attached to this service. @@ -184,6 +194,8 @@ export const NullableServiceEntity$inboundSchema: z.ZodType< .optional(), functionalities: z.nullable(z.array(FunctionalityEntity$inboundSchema)) .optional(), + environments: z.nullable(z.array(EnvironmentEntryEntity$inboundSchema)) + .optional(), last_import: z.nullable(NullableImportsImportableResourceEntity$inboundSchema) .optional(), links: z.nullable(z.array(LinksEntity$inboundSchema)).optional(), @@ -236,6 +248,7 @@ export type NullableServiceEntity$Outbound = { | null | undefined; functionalities?: Array | null | undefined; + environments?: Array | null | undefined; last_import?: | NullableImportsImportableResourceEntity$Outbound | null @@ -277,6 +290,8 @@ export const NullableServiceEntity$outboundSchema: z.ZodType< .optional(), functionalities: z.nullable(z.array(FunctionalityEntity$outboundSchema)) .optional(), + environments: z.nullable(z.array(EnvironmentEntryEntity$outboundSchema)) + .optional(), lastImport: z.nullable(NullableImportsImportableResourceEntity$outboundSchema) .optional(), links: z.nullable(z.array(LinksEntity$outboundSchema)).optional(), diff --git a/src/models/components/retrospectivesreporttemplateentity.ts b/src/models/components/retrospectivesreporttemplateentity.ts deleted file mode 100644 index cf271e7c..00000000 --- a/src/models/components/retrospectivesreporttemplateentity.ts +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -import { remap as remap$ } from "../../lib/primitives.js"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -import { - RetrospectivesReportTemplateEntityElementEntity, - RetrospectivesReportTemplateEntityElementEntity$inboundSchema, - RetrospectivesReportTemplateEntityElementEntity$Outbound, - RetrospectivesReportTemplateEntityElementEntity$outboundSchema, -} from "./retrospectivesreporttemplateentityelemententity.js"; - -/** - * Retrospectives_ReportTemplateEntity model - */ -export type RetrospectivesReportTemplateEntity = { - id?: string | null | undefined; - name?: string | null | undefined; - description?: string | null | undefined; - isDefault?: boolean | null | undefined; - elements?: - | Array - | null - | undefined; - retrospectiveTemplateId?: string | null | undefined; - createdAt?: Date | null | undefined; - updatedAt?: Date | null | undefined; -}; - -/** @internal */ -export const RetrospectivesReportTemplateEntity$inboundSchema: z.ZodType< - RetrospectivesReportTemplateEntity, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - is_default: z.nullable(z.boolean()).optional(), - elements: z.nullable( - z.array(RetrospectivesReportTemplateEntityElementEntity$inboundSchema), - ).optional(), - retrospective_template_id: z.nullable(z.string()).optional(), - created_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - updated_at: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), -}).transform((v) => { - return remap$(v, { - "is_default": "isDefault", - "retrospective_template_id": "retrospectiveTemplateId", - "created_at": "createdAt", - "updated_at": "updatedAt", - }); -}); -/** @internal */ -export type RetrospectivesReportTemplateEntity$Outbound = { - id?: string | null | undefined; - name?: string | null | undefined; - description?: string | null | undefined; - is_default?: boolean | null | undefined; - elements?: - | Array - | null - | undefined; - retrospective_template_id?: string | null | undefined; - created_at?: string | null | undefined; - updated_at?: string | null | undefined; -}; - -/** @internal */ -export const RetrospectivesReportTemplateEntity$outboundSchema: z.ZodType< - RetrospectivesReportTemplateEntity$Outbound, - z.ZodTypeDef, - RetrospectivesReportTemplateEntity -> = z.object({ - id: z.nullable(z.string()).optional(), - name: z.nullable(z.string()).optional(), - description: z.nullable(z.string()).optional(), - isDefault: z.nullable(z.boolean()).optional(), - elements: z.nullable( - z.array(RetrospectivesReportTemplateEntityElementEntity$outboundSchema), - ).optional(), - retrospectiveTemplateId: z.nullable(z.string()).optional(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), -}).transform((v) => { - return remap$(v, { - isDefault: "is_default", - retrospectiveTemplateId: "retrospective_template_id", - createdAt: "created_at", - updatedAt: "updated_at", - }); -}); - -export function retrospectivesReportTemplateEntityToJSON( - retrospectivesReportTemplateEntity: RetrospectivesReportTemplateEntity, -): string { - return JSON.stringify( - RetrospectivesReportTemplateEntity$outboundSchema.parse( - retrospectivesReportTemplateEntity, - ), - ); -} -export function retrospectivesReportTemplateEntityFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - RetrospectivesReportTemplateEntity$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'RetrospectivesReportTemplateEntity' from JSON`, - ); -} diff --git a/src/models/components/retrospectivesreporttemplateentityelemententity.ts b/src/models/components/retrospectivesreporttemplateentityelemententity.ts deleted file mode 100644 index 00ca465c..00000000 --- a/src/models/components/retrospectivesreporttemplateentityelemententity.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type RetrospectivesReportTemplateEntityElementEntityContent = {}; - -export type RetrospectivesReportTemplateEntityElementEntity = { - type?: string | null | undefined; - data?: string | null | undefined; - id?: string | null | undefined; - label?: string | null | undefined; - content?: - | RetrospectivesReportTemplateEntityElementEntityContent - | null - | undefined; -}; - -/** @internal */ -export const RetrospectivesReportTemplateEntityElementEntityContent$inboundSchema: - z.ZodType< - RetrospectivesReportTemplateEntityElementEntityContent, - z.ZodTypeDef, - unknown - > = z.object({}); -/** @internal */ -export type RetrospectivesReportTemplateEntityElementEntityContent$Outbound = - {}; - -/** @internal */ -export const RetrospectivesReportTemplateEntityElementEntityContent$outboundSchema: - z.ZodType< - RetrospectivesReportTemplateEntityElementEntityContent$Outbound, - z.ZodTypeDef, - RetrospectivesReportTemplateEntityElementEntityContent - > = z.object({}); - -export function retrospectivesReportTemplateEntityElementEntityContentToJSON( - retrospectivesReportTemplateEntityElementEntityContent: - RetrospectivesReportTemplateEntityElementEntityContent, -): string { - return JSON.stringify( - RetrospectivesReportTemplateEntityElementEntityContent$outboundSchema.parse( - retrospectivesReportTemplateEntityElementEntityContent, - ), - ); -} -export function retrospectivesReportTemplateEntityElementEntityContentFromJSON( - jsonString: string, -): SafeParseResult< - RetrospectivesReportTemplateEntityElementEntityContent, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - RetrospectivesReportTemplateEntityElementEntityContent$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'RetrospectivesReportTemplateEntityElementEntityContent' from JSON`, - ); -} - -/** @internal */ -export const RetrospectivesReportTemplateEntityElementEntity$inboundSchema: - z.ZodType< - RetrospectivesReportTemplateEntityElementEntity, - z.ZodTypeDef, - unknown - > = z.object({ - type: z.nullable(z.string()).optional(), - data: z.nullable(z.string()).optional(), - id: z.nullable(z.string()).optional(), - label: z.nullable(z.string()).optional(), - content: z.nullable( - z.lazy(() => - RetrospectivesReportTemplateEntityElementEntityContent$inboundSchema - ), - ).optional(), - }); -/** @internal */ -export type RetrospectivesReportTemplateEntityElementEntity$Outbound = { - type?: string | null | undefined; - data?: string | null | undefined; - id?: string | null | undefined; - label?: string | null | undefined; - content?: - | RetrospectivesReportTemplateEntityElementEntityContent$Outbound - | null - | undefined; -}; - -/** @internal */ -export const RetrospectivesReportTemplateEntityElementEntity$outboundSchema: - z.ZodType< - RetrospectivesReportTemplateEntityElementEntity$Outbound, - z.ZodTypeDef, - RetrospectivesReportTemplateEntityElementEntity - > = z.object({ - type: z.nullable(z.string()).optional(), - data: z.nullable(z.string()).optional(), - id: z.nullable(z.string()).optional(), - label: z.nullable(z.string()).optional(), - content: z.nullable( - z.lazy(() => - RetrospectivesReportTemplateEntityElementEntityContent$outboundSchema - ), - ).optional(), - }); - -export function retrospectivesReportTemplateEntityElementEntityToJSON( - retrospectivesReportTemplateEntityElementEntity: - RetrospectivesReportTemplateEntityElementEntity, -): string { - return JSON.stringify( - RetrospectivesReportTemplateEntityElementEntity$outboundSchema.parse( - retrospectivesReportTemplateEntityElementEntity, - ), - ); -} -export function retrospectivesReportTemplateEntityElementEntityFromJSON( - jsonString: string, -): SafeParseResult< - RetrospectivesReportTemplateEntityElementEntity, - SDKValidationError -> { - return safeParse( - jsonString, - (x) => - RetrospectivesReportTemplateEntityElementEntity$inboundSchema.parse( - JSON.parse(x), - ), - `Failed to parse 'RetrospectivesReportTemplateEntityElementEntity' from JSON`, - ); -} diff --git a/src/models/components/retrospectivestemplateentityreportelemententity.ts b/src/models/components/retrospectivestemplateentityreportelemententity.ts index 9bc5c9bc..fdfae8f0 100644 --- a/src/models/components/retrospectivestemplateentityreportelemententity.ts +++ b/src/models/components/retrospectivestemplateentityreportelemententity.ts @@ -7,60 +7,39 @@ import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; -export type RetrospectivesTemplateEntityReportElementEntityContent = {}; +export type Content = {}; export type RetrospectivesTemplateEntityReportElementEntity = { type?: string | null | undefined; data?: string | null | undefined; id?: string | null | undefined; label?: string | null | undefined; - content?: - | RetrospectivesTemplateEntityReportElementEntityContent - | null - | undefined; + content?: Content | null | undefined; }; /** @internal */ -export const RetrospectivesTemplateEntityReportElementEntityContent$inboundSchema: - z.ZodType< - RetrospectivesTemplateEntityReportElementEntityContent, - z.ZodTypeDef, - unknown - > = z.object({}); +export const Content$inboundSchema: z.ZodType = + z.object({}); /** @internal */ -export type RetrospectivesTemplateEntityReportElementEntityContent$Outbound = - {}; +export type Content$Outbound = {}; /** @internal */ -export const RetrospectivesTemplateEntityReportElementEntityContent$outboundSchema: - z.ZodType< - RetrospectivesTemplateEntityReportElementEntityContent$Outbound, - z.ZodTypeDef, - RetrospectivesTemplateEntityReportElementEntityContent - > = z.object({}); +export const Content$outboundSchema: z.ZodType< + Content$Outbound, + z.ZodTypeDef, + Content +> = z.object({}); -export function retrospectivesTemplateEntityReportElementEntityContentToJSON( - retrospectivesTemplateEntityReportElementEntityContent: - RetrospectivesTemplateEntityReportElementEntityContent, -): string { - return JSON.stringify( - RetrospectivesTemplateEntityReportElementEntityContent$outboundSchema.parse( - retrospectivesTemplateEntityReportElementEntityContent, - ), - ); +export function contentToJSON(content: Content): string { + return JSON.stringify(Content$outboundSchema.parse(content)); } -export function retrospectivesTemplateEntityReportElementEntityContentFromJSON( +export function contentFromJSON( jsonString: string, -): SafeParseResult< - RetrospectivesTemplateEntityReportElementEntityContent, - SDKValidationError -> { +): SafeParseResult { return safeParse( jsonString, - (x) => - RetrospectivesTemplateEntityReportElementEntityContent$inboundSchema - .parse(JSON.parse(x)), - `Failed to parse 'RetrospectivesTemplateEntityReportElementEntityContent' from JSON`, + (x) => Content$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'Content' from JSON`, ); } @@ -75,11 +54,7 @@ export const RetrospectivesTemplateEntityReportElementEntity$inboundSchema: data: z.nullable(z.string()).optional(), id: z.nullable(z.string()).optional(), label: z.nullable(z.string()).optional(), - content: z.nullable( - z.lazy(() => - RetrospectivesTemplateEntityReportElementEntityContent$inboundSchema - ), - ).optional(), + content: z.nullable(z.lazy(() => Content$inboundSchema)).optional(), }); /** @internal */ export type RetrospectivesTemplateEntityReportElementEntity$Outbound = { @@ -87,10 +62,7 @@ export type RetrospectivesTemplateEntityReportElementEntity$Outbound = { data?: string | null | undefined; id?: string | null | undefined; label?: string | null | undefined; - content?: - | RetrospectivesTemplateEntityReportElementEntityContent$Outbound - | null - | undefined; + content?: Content$Outbound | null | undefined; }; /** @internal */ @@ -104,11 +76,7 @@ export const RetrospectivesTemplateEntityReportElementEntity$outboundSchema: data: z.nullable(z.string()).optional(), id: z.nullable(z.string()).optional(), label: z.nullable(z.string()).optional(), - content: z.nullable( - z.lazy(() => - RetrospectivesTemplateEntityReportElementEntityContent$outboundSchema - ), - ).optional(), + content: z.nullable(z.lazy(() => Content$outboundSchema)).optional(), }); export function retrospectivesTemplateEntityReportElementEntityToJSON( diff --git a/src/models/components/serviceentity.ts b/src/models/components/serviceentity.ts index e026a37d..f862d696 100644 --- a/src/models/components/serviceentity.ts +++ b/src/models/components/serviceentity.ts @@ -13,6 +13,12 @@ import { ChecklistTemplateEntity$Outbound, ChecklistTemplateEntity$outboundSchema, } from "./checklisttemplateentity.js"; +import { + EnvironmentEntryEntity, + EnvironmentEntryEntity$inboundSchema, + EnvironmentEntryEntity$Outbound, + EnvironmentEntryEntity$outboundSchema, +} from "./environmententryentity.js"; import { ExternalResourceEntity, ExternalResourceEntity$inboundSchema, @@ -96,6 +102,10 @@ export type ServiceEntity = { * List of functionalities attached to the service */ functionalities?: Array | null | undefined; + /** + * Environments related to this service + */ + environments?: Array | null | undefined; lastImport?: NullableImportsImportableResourceEntity | null | undefined; /** * List of links attached to this service. @@ -182,6 +192,8 @@ export const ServiceEntity$inboundSchema: z.ZodType< .optional(), functionalities: z.nullable(z.array(FunctionalityEntity$inboundSchema)) .optional(), + environments: z.nullable(z.array(EnvironmentEntryEntity$inboundSchema)) + .optional(), last_import: z.nullable(NullableImportsImportableResourceEntity$inboundSchema) .optional(), links: z.nullable(z.array(LinksEntity$inboundSchema)).optional(), @@ -234,6 +246,7 @@ export type ServiceEntity$Outbound = { | null | undefined; functionalities?: Array | null | undefined; + environments?: Array | null | undefined; last_import?: | NullableImportsImportableResourceEntity$Outbound | null @@ -275,6 +288,8 @@ export const ServiceEntity$outboundSchema: z.ZodType< .optional(), functionalities: z.nullable(z.array(FunctionalityEntity$outboundSchema)) .optional(), + environments: z.nullable(z.array(EnvironmentEntryEntity$outboundSchema)) + .optional(), lastImport: z.nullable(NullableImportsImportableResourceEntity$outboundSchema) .optional(), links: z.nullable(z.array(LinksEntity$outboundSchema)).optional(), diff --git a/src/models/components/serviceentitylitepaginated.ts b/src/models/components/serviceentitylitepaginated.ts new file mode 100644 index 00000000..510734e5 --- /dev/null +++ b/src/models/components/serviceentitylitepaginated.ts @@ -0,0 +1,70 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +import { + NullablePaginationEntity, + NullablePaginationEntity$inboundSchema, + NullablePaginationEntity$Outbound, + NullablePaginationEntity$outboundSchema, +} from "./nullablepaginationentity.js"; +import { + ServiceEntityLite, + ServiceEntityLite$inboundSchema, + ServiceEntityLite$Outbound, + ServiceEntityLite$outboundSchema, +} from "./serviceentitylite.js"; + +/** + * ServiceEntityLitePaginated model + */ +export type ServiceEntityLitePaginated = { + data?: Array | null | undefined; + pagination?: NullablePaginationEntity | null | undefined; +}; + +/** @internal */ +export const ServiceEntityLitePaginated$inboundSchema: z.ZodType< + ServiceEntityLitePaginated, + z.ZodTypeDef, + unknown +> = z.object({ + data: z.nullable(z.array(ServiceEntityLite$inboundSchema)).optional(), + pagination: z.nullable(NullablePaginationEntity$inboundSchema).optional(), +}); +/** @internal */ +export type ServiceEntityLitePaginated$Outbound = { + data?: Array | null | undefined; + pagination?: NullablePaginationEntity$Outbound | null | undefined; +}; + +/** @internal */ +export const ServiceEntityLitePaginated$outboundSchema: z.ZodType< + ServiceEntityLitePaginated$Outbound, + z.ZodTypeDef, + ServiceEntityLitePaginated +> = z.object({ + data: z.nullable(z.array(ServiceEntityLite$outboundSchema)).optional(), + pagination: z.nullable(NullablePaginationEntity$outboundSchema).optional(), +}); + +export function serviceEntityLitePaginatedToJSON( + serviceEntityLitePaginated: ServiceEntityLitePaginated, +): string { + return JSON.stringify( + ServiceEntityLitePaginated$outboundSchema.parse(serviceEntityLitePaginated), + ); +} +export function serviceEntityLitePaginatedFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ServiceEntityLitePaginated$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ServiceEntityLitePaginated' from JSON`, + ); +} diff --git a/src/models/components/updateenvironment.ts b/src/models/components/updateenvironment.ts index f1f099f8..01f25473 100644 --- a/src/models/components/updateenvironment.ts +++ b/src/models/components/updateenvironment.ts @@ -3,31 +3,170 @@ */ import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; import { safeParse } from "../../lib/schemas.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; +export type UpdateEnvironmentFunctionality = { + /** + * ID of a functionality + */ + id: string; + /** + * Set to true if you want to remove the given functionality from the environment + */ + remove?: boolean | null | undefined; +}; + +export type UpdateEnvironmentService = { + /** + * ID of a service + */ + id: string; + /** + * Set to true if you want to remove the given service from the environment + */ + remove?: boolean | null | undefined; +}; + /** * Update a environments attributes */ export type UpdateEnvironment = { - name: string; + name?: string | null | undefined; description?: string | null | undefined; + functionalities?: Array | null | undefined; + /** + * Set this to true if you want to remove all of the functionalities that are not included in the functionalities array from the environment + */ + removeRemainingFunctionalities?: boolean | null | undefined; + services?: Array | null | undefined; + /** + * Set this to true if you want to remove all of the services that are not included in the services array from the environment + */ + removeRemainingServices?: boolean | null | undefined; +}; + +/** @internal */ +export const UpdateEnvironmentFunctionality$inboundSchema: z.ZodType< + UpdateEnvironmentFunctionality, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + remove: z.nullable(z.boolean()).optional(), +}); +/** @internal */ +export type UpdateEnvironmentFunctionality$Outbound = { + id: string; + remove?: boolean | null | undefined; +}; + +/** @internal */ +export const UpdateEnvironmentFunctionality$outboundSchema: z.ZodType< + UpdateEnvironmentFunctionality$Outbound, + z.ZodTypeDef, + UpdateEnvironmentFunctionality +> = z.object({ + id: z.string(), + remove: z.nullable(z.boolean()).optional(), +}); + +export function updateEnvironmentFunctionalityToJSON( + updateEnvironmentFunctionality: UpdateEnvironmentFunctionality, +): string { + return JSON.stringify( + UpdateEnvironmentFunctionality$outboundSchema.parse( + updateEnvironmentFunctionality, + ), + ); +} +export function updateEnvironmentFunctionalityFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateEnvironmentFunctionality$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateEnvironmentFunctionality' from JSON`, + ); +} + +/** @internal */ +export const UpdateEnvironmentService$inboundSchema: z.ZodType< + UpdateEnvironmentService, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + remove: z.nullable(z.boolean()).optional(), +}); +/** @internal */ +export type UpdateEnvironmentService$Outbound = { + id: string; + remove?: boolean | null | undefined; }; +/** @internal */ +export const UpdateEnvironmentService$outboundSchema: z.ZodType< + UpdateEnvironmentService$Outbound, + z.ZodTypeDef, + UpdateEnvironmentService +> = z.object({ + id: z.string(), + remove: z.nullable(z.boolean()).optional(), +}); + +export function updateEnvironmentServiceToJSON( + updateEnvironmentService: UpdateEnvironmentService, +): string { + return JSON.stringify( + UpdateEnvironmentService$outboundSchema.parse(updateEnvironmentService), + ); +} +export function updateEnvironmentServiceFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateEnvironmentService$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateEnvironmentService' from JSON`, + ); +} + /** @internal */ export const UpdateEnvironment$inboundSchema: z.ZodType< UpdateEnvironment, z.ZodTypeDef, unknown > = z.object({ - name: z.string(), + name: z.nullable(z.string()).optional(), description: z.nullable(z.string()).optional(), + functionalities: z.nullable( + z.array(z.lazy(() => UpdateEnvironmentFunctionality$inboundSchema)), + ).optional(), + remove_remaining_functionalities: z.nullable(z.boolean().default(false)), + services: z.nullable( + z.array(z.lazy(() => UpdateEnvironmentService$inboundSchema)), + ).optional(), + remove_remaining_services: z.nullable(z.boolean().default(false)), +}).transform((v) => { + return remap$(v, { + "remove_remaining_functionalities": "removeRemainingFunctionalities", + "remove_remaining_services": "removeRemainingServices", + }); }); /** @internal */ export type UpdateEnvironment$Outbound = { - name: string; + name?: string | null | undefined; description?: string | null | undefined; + functionalities?: + | Array + | null + | undefined; + remove_remaining_functionalities: boolean | null; + services?: Array | null | undefined; + remove_remaining_services: boolean | null; }; /** @internal */ @@ -36,8 +175,21 @@ export const UpdateEnvironment$outboundSchema: z.ZodType< z.ZodTypeDef, UpdateEnvironment > = z.object({ - name: z.string(), + name: z.nullable(z.string()).optional(), description: z.nullable(z.string()).optional(), + functionalities: z.nullable( + z.array(z.lazy(() => UpdateEnvironmentFunctionality$outboundSchema)), + ).optional(), + removeRemainingFunctionalities: z.nullable(z.boolean().default(false)), + services: z.nullable( + z.array(z.lazy(() => UpdateEnvironmentService$outboundSchema)), + ).optional(), + removeRemainingServices: z.nullable(z.boolean().default(false)), +}).transform((v) => { + return remap$(v, { + removeRemainingFunctionalities: "remove_remaining_functionalities", + removeRemainingServices: "remove_remaining_services", + }); }); export function updateEnvironmentToJSON( diff --git a/src/models/components/updatefunctionality.ts b/src/models/components/updatefunctionality.ts index 413f9f15..9c6e62d8 100644 --- a/src/models/components/updatefunctionality.ts +++ b/src/models/components/updatefunctionality.ts @@ -38,6 +38,17 @@ export type UpdateFunctionalityService = { remove?: boolean | null | undefined; }; +export type UpdateFunctionalityEnvironment = { + /** + * ID of an environment + */ + id: string; + /** + * Set to true if you want to remove the given environment from the functionality + */ + remove?: boolean | null | undefined; +}; + export type UpdateFunctionalityLink = { /** * URL @@ -99,6 +110,15 @@ export type UpdateFunctionality = { */ serviceTier?: UpdateFunctionalityServiceTier | null | undefined; services?: Array | null | undefined; + /** + * Set this to true if you want to remove all of the services that are not included in the services array from the functionality + */ + removeRemainingServices?: boolean | null | undefined; + environments?: Array | null | undefined; + /** + * Set this to true if you want to remove all of the environments that are not included in the environments array from the functionality + */ + removeRemainingEnvironments?: boolean | null | undefined; /** * An array of links to associate with this functionality. This will remove all links not present in the patch. Only acts if 'links' key is included in the payload. */ @@ -136,10 +156,6 @@ export type UpdateFunctionality = { labels?: { [k: string]: string } | null | undefined; alertOnAdd?: boolean | null | undefined; autoAddRespondingTeam?: boolean | null | undefined; - /** - * Set this to true if you want to remove all of the services that are not included in the services array from the functionality - */ - removeRemainingServices?: boolean | null | undefined; }; /** @internal */ @@ -193,6 +209,50 @@ export function updateFunctionalityServiceFromJSON( ); } +/** @internal */ +export const UpdateFunctionalityEnvironment$inboundSchema: z.ZodType< + UpdateFunctionalityEnvironment, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + remove: z.nullable(z.boolean()).optional(), +}); +/** @internal */ +export type UpdateFunctionalityEnvironment$Outbound = { + id: string; + remove?: boolean | null | undefined; +}; + +/** @internal */ +export const UpdateFunctionalityEnvironment$outboundSchema: z.ZodType< + UpdateFunctionalityEnvironment$Outbound, + z.ZodTypeDef, + UpdateFunctionalityEnvironment +> = z.object({ + id: z.string(), + remove: z.nullable(z.boolean()).optional(), +}); + +export function updateFunctionalityEnvironmentToJSON( + updateFunctionalityEnvironment: UpdateFunctionalityEnvironment, +): string { + return JSON.stringify( + UpdateFunctionalityEnvironment$outboundSchema.parse( + updateFunctionalityEnvironment, + ), + ); +} +export function updateFunctionalityEnvironmentFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateFunctionalityEnvironment$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateFunctionalityEnvironment' from JSON`, + ); +} + /** @internal */ export const UpdateFunctionalityLink$inboundSchema: z.ZodType< UpdateFunctionalityLink, @@ -406,6 +466,11 @@ export const UpdateFunctionality$inboundSchema: z.ZodType< services: z.nullable( z.array(z.lazy(() => UpdateFunctionalityService$inboundSchema)), ).optional(), + remove_remaining_services: z.nullable(z.boolean().default(false)), + environments: z.nullable( + z.array(z.lazy(() => UpdateFunctionalityEnvironment$inboundSchema)), + ).optional(), + remove_remaining_environments: z.nullable(z.boolean().default(false)), links: z.nullable( z.array(z.lazy(() => UpdateFunctionalityLink$inboundSchema)), ).optional(), @@ -423,17 +488,17 @@ export const UpdateFunctionality$inboundSchema: z.ZodType< labels: z.nullable(z.record(z.string())).optional(), alert_on_add: z.nullable(z.boolean()).optional(), auto_add_responding_team: z.nullable(z.boolean()).optional(), - remove_remaining_services: z.nullable(z.boolean().default(false)), }).transform((v) => { return remap$(v, { "service_tier": "serviceTier", + "remove_remaining_services": "removeRemainingServices", + "remove_remaining_environments": "removeRemainingEnvironments", "remove_owner": "removeOwner", "remove_remaining_teams": "removeRemainingTeams", "external_resources": "externalResources", "remove_remaining_external_resources": "removeRemainingExternalResources", "alert_on_add": "alertOnAdd", "auto_add_responding_team": "autoAddRespondingTeam", - "remove_remaining_services": "removeRemainingServices", }); }); /** @internal */ @@ -442,6 +507,12 @@ export type UpdateFunctionality$Outbound = { description?: string | null | undefined; service_tier?: number | null | undefined; services?: Array | null | undefined; + remove_remaining_services: boolean | null; + environments?: + | Array + | null + | undefined; + remove_remaining_environments: boolean | null; links?: Array | null | undefined; owner?: UpdateFunctionalityOwner$Outbound | null | undefined; remove_owner?: boolean | null | undefined; @@ -455,7 +526,6 @@ export type UpdateFunctionality$Outbound = { labels?: { [k: string]: string } | null | undefined; alert_on_add?: boolean | null | undefined; auto_add_responding_team?: boolean | null | undefined; - remove_remaining_services: boolean | null; }; /** @internal */ @@ -471,6 +541,11 @@ export const UpdateFunctionality$outboundSchema: z.ZodType< services: z.nullable( z.array(z.lazy(() => UpdateFunctionalityService$outboundSchema)), ).optional(), + removeRemainingServices: z.nullable(z.boolean().default(false)), + environments: z.nullable( + z.array(z.lazy(() => UpdateFunctionalityEnvironment$outboundSchema)), + ).optional(), + removeRemainingEnvironments: z.nullable(z.boolean().default(false)), links: z.nullable( z.array(z.lazy(() => UpdateFunctionalityLink$outboundSchema)), ).optional(), @@ -488,17 +563,17 @@ export const UpdateFunctionality$outboundSchema: z.ZodType< labels: z.nullable(z.record(z.string())).optional(), alertOnAdd: z.nullable(z.boolean()).optional(), autoAddRespondingTeam: z.nullable(z.boolean()).optional(), - removeRemainingServices: z.nullable(z.boolean().default(false)), }).transform((v) => { return remap$(v, { serviceTier: "service_tier", + removeRemainingServices: "remove_remaining_services", + removeRemainingEnvironments: "remove_remaining_environments", removeOwner: "remove_owner", removeRemainingTeams: "remove_remaining_teams", externalResources: "external_resources", removeRemainingExternalResources: "remove_remaining_external_resources", alertOnAdd: "alert_on_add", autoAddRespondingTeam: "auto_add_responding_team", - removeRemainingServices: "remove_remaining_services", }); }); diff --git a/src/models/components/updaterunbook.ts b/src/models/components/updaterunbook.ts index 6ea9d665..4591f196 100644 --- a/src/models/components/updaterunbook.ts +++ b/src/models/components/updaterunbook.ts @@ -23,7 +23,7 @@ export type UpdateRunbookService = { id?: string | null | undefined; }; -export type Environment = { +export type UpdateRunbookEnvironment = { id?: string | null | undefined; }; @@ -85,7 +85,7 @@ export type UpdateRunbook = { owner?: UpdateRunbookOwner | null | undefined; severities?: Array | null | undefined; services?: Array | null | undefined; - environments?: Array | null | undefined; + environments?: Array | null | undefined; attachmentRule?: UpdateRunbookAttachmentRule | null | undefined; steps?: Array | null | undefined; /** @@ -212,37 +212,41 @@ export function updateRunbookServiceFromJSON( } /** @internal */ -export const Environment$inboundSchema: z.ZodType< - Environment, +export const UpdateRunbookEnvironment$inboundSchema: z.ZodType< + UpdateRunbookEnvironment, z.ZodTypeDef, unknown > = z.object({ id: z.nullable(z.string()).optional(), }); /** @internal */ -export type Environment$Outbound = { +export type UpdateRunbookEnvironment$Outbound = { id?: string | null | undefined; }; /** @internal */ -export const Environment$outboundSchema: z.ZodType< - Environment$Outbound, +export const UpdateRunbookEnvironment$outboundSchema: z.ZodType< + UpdateRunbookEnvironment$Outbound, z.ZodTypeDef, - Environment + UpdateRunbookEnvironment > = z.object({ id: z.nullable(z.string()).optional(), }); -export function environmentToJSON(environment: Environment): string { - return JSON.stringify(Environment$outboundSchema.parse(environment)); +export function updateRunbookEnvironmentToJSON( + updateRunbookEnvironment: UpdateRunbookEnvironment, +): string { + return JSON.stringify( + UpdateRunbookEnvironment$outboundSchema.parse(updateRunbookEnvironment), + ); } -export function environmentFromJSON( +export function updateRunbookEnvironmentFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => Environment$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'Environment' from JSON`, + (x) => UpdateRunbookEnvironment$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateRunbookEnvironment' from JSON`, ); } @@ -423,8 +427,9 @@ export const UpdateRunbook$inboundSchema: z.ZodType< services: z.nullable( z.array(z.lazy(() => UpdateRunbookService$inboundSchema)), ).optional(), - environments: z.nullable(z.array(z.lazy(() => Environment$inboundSchema))) - .optional(), + environments: z.nullable( + z.array(z.lazy(() => UpdateRunbookEnvironment$inboundSchema)), + ).optional(), attachment_rule: z.nullable( z.lazy(() => UpdateRunbookAttachmentRule$inboundSchema), ).optional(), @@ -446,7 +451,7 @@ export type UpdateRunbook$Outbound = { owner?: UpdateRunbookOwner$Outbound | null | undefined; severities?: Array | null | undefined; services?: Array | null | undefined; - environments?: Array | null | undefined; + environments?: Array | null | undefined; attachment_rule?: UpdateRunbookAttachmentRule$Outbound | null | undefined; steps?: Array | null | undefined; auto_attach_to_restricted_incidents?: boolean | null | undefined; @@ -469,8 +474,9 @@ export const UpdateRunbook$outboundSchema: z.ZodType< services: z.nullable( z.array(z.lazy(() => UpdateRunbookService$outboundSchema)), ).optional(), - environments: z.nullable(z.array(z.lazy(() => Environment$outboundSchema))) - .optional(), + environments: z.nullable( + z.array(z.lazy(() => UpdateRunbookEnvironment$outboundSchema)), + ).optional(), attachmentRule: z.nullable( z.lazy(() => UpdateRunbookAttachmentRule$outboundSchema), ).optional(), diff --git a/src/models/components/updateservice.ts b/src/models/components/updateservice.ts index 551f6ae9..4e75f08e 100644 --- a/src/models/components/updateservice.ts +++ b/src/models/components/updateservice.ts @@ -44,6 +44,17 @@ export type UpdateServiceFunctionality = { summary?: string | null | undefined; }; +export type UpdateServiceEnvironment = { + /** + * ID of an environment + */ + id: string; + /** + * Set to true if you want to remove the given environment from the service + */ + remove?: boolean | null | undefined; +}; + export type UpdateServiceLink = { /** * URL @@ -122,6 +133,15 @@ export type UpdateService = { * An array of functionalities */ functionalities?: Array | null | undefined; + /** + * If set to true, any functionalities tagged on the service that are not included in the given array will be removed. Set this to true if you want to do a replacement operation for the functionalities + */ + removeRemainingFunctionalities?: boolean | null | undefined; + environments?: Array | null | undefined; + /** + * Set this to true if you want to remove all of the environments that are not included in the environments array from the service + */ + removeRemainingEnvironments?: boolean | null | undefined; /** * A hash of label keys and values */ @@ -147,10 +167,6 @@ export type UpdateService = { * If set to true, any external_resources tagged on the service that are not included in the given array will be removed. Set this to true if you want to do a replacement operation for the external_resources */ removeRemainingExternalResources?: boolean | null | undefined; - /** - * If set to true, any functionalities tagged on the service that are not included in the given array will be removed. Set this to true if you want to do a replacement operation for the functionalities - */ - removeRemainingFunctionalities?: boolean | null | undefined; /** * If set to true, any teams tagged on the service that are not included in the given array will be removed. Set this to true if you want to do a replacement operation for the teams */ @@ -305,6 +321,48 @@ export function updateServiceFunctionalityFromJSON( ); } +/** @internal */ +export const UpdateServiceEnvironment$inboundSchema: z.ZodType< + UpdateServiceEnvironment, + z.ZodTypeDef, + unknown +> = z.object({ + id: z.string(), + remove: z.nullable(z.boolean()).optional(), +}); +/** @internal */ +export type UpdateServiceEnvironment$Outbound = { + id: string; + remove?: boolean | null | undefined; +}; + +/** @internal */ +export const UpdateServiceEnvironment$outboundSchema: z.ZodType< + UpdateServiceEnvironment$Outbound, + z.ZodTypeDef, + UpdateServiceEnvironment +> = z.object({ + id: z.string(), + remove: z.nullable(z.boolean()).optional(), +}); + +export function updateServiceEnvironmentToJSON( + updateServiceEnvironment: UpdateServiceEnvironment, +): string { + return JSON.stringify( + UpdateServiceEnvironment$outboundSchema.parse(updateServiceEnvironment), + ); +} +export function updateServiceEnvironmentFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => UpdateServiceEnvironment$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'UpdateServiceEnvironment' from JSON`, + ); +} + /** @internal */ export const UpdateServiceLink$inboundSchema: z.ZodType< UpdateServiceLink, @@ -473,6 +531,11 @@ export const UpdateService$inboundSchema: z.ZodType< functionalities: z.nullable( z.array(z.lazy(() => UpdateServiceFunctionality$inboundSchema)), ).optional(), + remove_remaining_functionalities: z.nullable(z.boolean()).optional(), + environments: z.nullable( + z.array(z.lazy(() => UpdateServiceEnvironment$inboundSchema)), + ).optional(), + remove_remaining_environments: z.nullable(z.boolean().default(false)), labels: z.nullable(z.record(z.string())).optional(), links: z.nullable(z.array(z.lazy(() => UpdateServiceLink$inboundSchema))) .optional(), @@ -481,7 +544,6 @@ export const UpdateService$inboundSchema: z.ZodType< remove_owner: z.nullable(z.boolean()).optional(), remove_remaining_checklists: z.nullable(z.boolean()).optional(), remove_remaining_external_resources: z.nullable(z.boolean()).optional(), - remove_remaining_functionalities: z.nullable(z.boolean()).optional(), remove_remaining_teams: z.nullable(z.boolean()).optional(), service_tier: z.nullable(UpdateServiceServiceTier$inboundSchema).optional(), teams: z.nullable(z.array(z.lazy(() => UpdateServiceTeam$inboundSchema))) @@ -491,10 +553,11 @@ export const UpdateService$inboundSchema: z.ZodType< "alert_on_add": "alertOnAdd", "auto_add_responding_team": "autoAddRespondingTeam", "external_resources": "externalResources", + "remove_remaining_functionalities": "removeRemainingFunctionalities", + "remove_remaining_environments": "removeRemainingEnvironments", "remove_owner": "removeOwner", "remove_remaining_checklists": "removeRemainingChecklists", "remove_remaining_external_resources": "removeRemainingExternalResources", - "remove_remaining_functionalities": "removeRemainingFunctionalities", "remove_remaining_teams": "removeRemainingTeams", "service_tier": "serviceTier", }); @@ -513,6 +576,9 @@ export type UpdateService$Outbound = { | Array | null | undefined; + remove_remaining_functionalities?: boolean | null | undefined; + environments?: Array | null | undefined; + remove_remaining_environments: boolean | null; labels?: { [k: string]: string } | null | undefined; links?: Array | null | undefined; name?: string | null | undefined; @@ -520,7 +586,6 @@ export type UpdateService$Outbound = { remove_owner?: boolean | null | undefined; remove_remaining_checklists?: boolean | null | undefined; remove_remaining_external_resources?: boolean | null | undefined; - remove_remaining_functionalities?: boolean | null | undefined; remove_remaining_teams?: boolean | null | undefined; service_tier?: number | null | undefined; teams?: Array | null | undefined; @@ -543,6 +608,11 @@ export const UpdateService$outboundSchema: z.ZodType< functionalities: z.nullable( z.array(z.lazy(() => UpdateServiceFunctionality$outboundSchema)), ).optional(), + removeRemainingFunctionalities: z.nullable(z.boolean()).optional(), + environments: z.nullable( + z.array(z.lazy(() => UpdateServiceEnvironment$outboundSchema)), + ).optional(), + removeRemainingEnvironments: z.nullable(z.boolean().default(false)), labels: z.nullable(z.record(z.string())).optional(), links: z.nullable(z.array(z.lazy(() => UpdateServiceLink$outboundSchema))) .optional(), @@ -551,7 +621,6 @@ export const UpdateService$outboundSchema: z.ZodType< removeOwner: z.nullable(z.boolean()).optional(), removeRemainingChecklists: z.nullable(z.boolean()).optional(), removeRemainingExternalResources: z.nullable(z.boolean()).optional(), - removeRemainingFunctionalities: z.nullable(z.boolean()).optional(), removeRemainingTeams: z.nullable(z.boolean()).optional(), serviceTier: z.nullable(UpdateServiceServiceTier$outboundSchema).optional(), teams: z.nullable(z.array(z.lazy(() => UpdateServiceTeam$outboundSchema))) @@ -561,10 +630,11 @@ export const UpdateService$outboundSchema: z.ZodType< alertOnAdd: "alert_on_add", autoAddRespondingTeam: "auto_add_responding_team", externalResources: "external_resources", + removeRemainingFunctionalities: "remove_remaining_functionalities", + removeRemainingEnvironments: "remove_remaining_environments", removeOwner: "remove_owner", removeRemainingChecklists: "remove_remaining_checklists", removeRemainingExternalResources: "remove_remaining_external_resources", - removeRemainingFunctionalities: "remove_remaining_functionalities", removeRemainingTeams: "remove_remaining_teams", serviceTier: "service_tier", }); diff --git a/src/models/operations/getretrospectivereporttemplate.ts b/src/models/operations/getretrospectivereporttemplate.ts deleted file mode 100644 index 948e5d55..00000000 --- a/src/models/operations/getretrospectivereporttemplate.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod/v3"; -import { safeParse } from "../../lib/schemas.js"; -import { Result as SafeParseResult } from "../../types/fp.js"; -import { SDKValidationError } from "../errors/sdkvalidationerror.js"; - -export type GetRetrospectiveReportTemplateRequest = { - id: string; -}; - -/** @internal */ -export const GetRetrospectiveReportTemplateRequest$inboundSchema: z.ZodType< - GetRetrospectiveReportTemplateRequest, - z.ZodTypeDef, - unknown -> = z.object({ - id: z.string(), -}); -/** @internal */ -export type GetRetrospectiveReportTemplateRequest$Outbound = { - id: string; -}; - -/** @internal */ -export const GetRetrospectiveReportTemplateRequest$outboundSchema: z.ZodType< - GetRetrospectiveReportTemplateRequest$Outbound, - z.ZodTypeDef, - GetRetrospectiveReportTemplateRequest -> = z.object({ - id: z.string(), -}); - -export function getRetrospectiveReportTemplateRequestToJSON( - getRetrospectiveReportTemplateRequest: GetRetrospectiveReportTemplateRequest, -): string { - return JSON.stringify( - GetRetrospectiveReportTemplateRequest$outboundSchema.parse( - getRetrospectiveReportTemplateRequest, - ), - ); -} -export function getRetrospectiveReportTemplateRequestFromJSON( - jsonString: string, -): SafeParseResult { - return safeParse( - jsonString, - (x) => - GetRetrospectiveReportTemplateRequest$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'GetRetrospectiveReportTemplateRequest' from JSON`, - ); -} diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index b185e7af..f2c19b08 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -158,7 +158,6 @@ export * from "./getoptionsforfield.js"; export * from "./getpostmortemquestion.js"; export * from "./getpostmortemreport.js"; export * from "./getpriority.js"; -export * from "./getretrospectivereporttemplate.js"; export * from "./getretrospectivetemplate.js"; export * from "./getrole.js"; export * from "./getrunbook.js"; @@ -225,9 +224,12 @@ export * from "./listconnectionstatusesbyslugandid.js"; export * from "./listcustomfieldselectoptions.js"; export * from "./listemailsubscribers.js"; export * from "./listentitlements.js"; +export * from "./listenvironmentfunctionalities.js"; export * from "./listenvironments.js"; +export * from "./listenvironmentservices.js"; export * from "./listfieldmapavailablefields.js"; export * from "./listfunctionalities.js"; +export * from "./listfunctionalityenvironments.js"; export * from "./listfunctionalityservices.js"; export * from "./listinboundfieldmaps.js"; export * from "./listincidentalerts.js"; @@ -273,6 +275,7 @@ export * from "./listscimgroups.js"; export * from "./listscimusers.js"; export * from "./listserviceavailabledownstreamdependencies.js"; export * from "./listserviceavailableupstreamdependencies.js"; +export * from "./listserviceenvironments.js"; export * from "./listservices.js"; export * from "./listseverities.js"; export * from "./listseveritymatrixconditions.js"; diff --git a/src/models/operations/listenvironmentfunctionalities.ts b/src/models/operations/listenvironmentfunctionalities.ts new file mode 100644 index 00000000..b55f1de6 --- /dev/null +++ b/src/models/operations/listenvironmentfunctionalities.ts @@ -0,0 +1,73 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type ListEnvironmentFunctionalitiesRequest = { + environmentId: string; + page?: number | null | undefined; + perPage?: number | null | undefined; +}; + +/** @internal */ +export const ListEnvironmentFunctionalitiesRequest$inboundSchema: z.ZodType< + ListEnvironmentFunctionalitiesRequest, + z.ZodTypeDef, + unknown +> = z.object({ + environment_id: z.string(), + page: z.nullable(z.number().int()).optional(), + per_page: z.nullable(z.number().int()).optional(), +}).transform((v) => { + return remap$(v, { + "environment_id": "environmentId", + "per_page": "perPage", + }); +}); +/** @internal */ +export type ListEnvironmentFunctionalitiesRequest$Outbound = { + environment_id: string; + page?: number | null | undefined; + per_page?: number | null | undefined; +}; + +/** @internal */ +export const ListEnvironmentFunctionalitiesRequest$outboundSchema: z.ZodType< + ListEnvironmentFunctionalitiesRequest$Outbound, + z.ZodTypeDef, + ListEnvironmentFunctionalitiesRequest +> = z.object({ + environmentId: z.string(), + page: z.nullable(z.number().int()).optional(), + perPage: z.nullable(z.number().int()).optional(), +}).transform((v) => { + return remap$(v, { + environmentId: "environment_id", + perPage: "per_page", + }); +}); + +export function listEnvironmentFunctionalitiesRequestToJSON( + listEnvironmentFunctionalitiesRequest: ListEnvironmentFunctionalitiesRequest, +): string { + return JSON.stringify( + ListEnvironmentFunctionalitiesRequest$outboundSchema.parse( + listEnvironmentFunctionalitiesRequest, + ), + ); +} +export function listEnvironmentFunctionalitiesRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListEnvironmentFunctionalitiesRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEnvironmentFunctionalitiesRequest' from JSON`, + ); +} diff --git a/src/models/operations/listenvironmentservices.ts b/src/models/operations/listenvironmentservices.ts new file mode 100644 index 00000000..753ebcba --- /dev/null +++ b/src/models/operations/listenvironmentservices.ts @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type ListEnvironmentServicesRequest = { + environmentId: string; + page?: number | null | undefined; + perPage?: number | null | undefined; +}; + +/** @internal */ +export const ListEnvironmentServicesRequest$inboundSchema: z.ZodType< + ListEnvironmentServicesRequest, + z.ZodTypeDef, + unknown +> = z.object({ + environment_id: z.string(), + page: z.nullable(z.number().int()).optional(), + per_page: z.nullable(z.number().int()).optional(), +}).transform((v) => { + return remap$(v, { + "environment_id": "environmentId", + "per_page": "perPage", + }); +}); +/** @internal */ +export type ListEnvironmentServicesRequest$Outbound = { + environment_id: string; + page?: number | null | undefined; + per_page?: number | null | undefined; +}; + +/** @internal */ +export const ListEnvironmentServicesRequest$outboundSchema: z.ZodType< + ListEnvironmentServicesRequest$Outbound, + z.ZodTypeDef, + ListEnvironmentServicesRequest +> = z.object({ + environmentId: z.string(), + page: z.nullable(z.number().int()).optional(), + perPage: z.nullable(z.number().int()).optional(), +}).transform((v) => { + return remap$(v, { + environmentId: "environment_id", + perPage: "per_page", + }); +}); + +export function listEnvironmentServicesRequestToJSON( + listEnvironmentServicesRequest: ListEnvironmentServicesRequest, +): string { + return JSON.stringify( + ListEnvironmentServicesRequest$outboundSchema.parse( + listEnvironmentServicesRequest, + ), + ); +} +export function listEnvironmentServicesRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListEnvironmentServicesRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListEnvironmentServicesRequest' from JSON`, + ); +} diff --git a/src/models/operations/listfunctionalityenvironments.ts b/src/models/operations/listfunctionalityenvironments.ts new file mode 100644 index 00000000..c8c91a1e --- /dev/null +++ b/src/models/operations/listfunctionalityenvironments.ts @@ -0,0 +1,73 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type ListFunctionalityEnvironmentsRequest = { + functionalityId: string; + page?: number | null | undefined; + perPage?: number | null | undefined; +}; + +/** @internal */ +export const ListFunctionalityEnvironmentsRequest$inboundSchema: z.ZodType< + ListFunctionalityEnvironmentsRequest, + z.ZodTypeDef, + unknown +> = z.object({ + functionality_id: z.string(), + page: z.nullable(z.number().int()).optional(), + per_page: z.nullable(z.number().int()).optional(), +}).transform((v) => { + return remap$(v, { + "functionality_id": "functionalityId", + "per_page": "perPage", + }); +}); +/** @internal */ +export type ListFunctionalityEnvironmentsRequest$Outbound = { + functionality_id: string; + page?: number | null | undefined; + per_page?: number | null | undefined; +}; + +/** @internal */ +export const ListFunctionalityEnvironmentsRequest$outboundSchema: z.ZodType< + ListFunctionalityEnvironmentsRequest$Outbound, + z.ZodTypeDef, + ListFunctionalityEnvironmentsRequest +> = z.object({ + functionalityId: z.string(), + page: z.nullable(z.number().int()).optional(), + perPage: z.nullable(z.number().int()).optional(), +}).transform((v) => { + return remap$(v, { + functionalityId: "functionality_id", + perPage: "per_page", + }); +}); + +export function listFunctionalityEnvironmentsRequestToJSON( + listFunctionalityEnvironmentsRequest: ListFunctionalityEnvironmentsRequest, +): string { + return JSON.stringify( + ListFunctionalityEnvironmentsRequest$outboundSchema.parse( + listFunctionalityEnvironmentsRequest, + ), + ); +} +export function listFunctionalityEnvironmentsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListFunctionalityEnvironmentsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListFunctionalityEnvironmentsRequest' from JSON`, + ); +} diff --git a/src/models/operations/listserviceenvironments.ts b/src/models/operations/listserviceenvironments.ts new file mode 100644 index 00000000..de131eea --- /dev/null +++ b/src/models/operations/listserviceenvironments.ts @@ -0,0 +1,72 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +import * as z from "zod/v3"; +import { remap as remap$ } from "../../lib/primitives.js"; +import { safeParse } from "../../lib/schemas.js"; +import { Result as SafeParseResult } from "../../types/fp.js"; +import { SDKValidationError } from "../errors/sdkvalidationerror.js"; + +export type ListServiceEnvironmentsRequest = { + serviceId: string; + page?: number | null | undefined; + perPage?: number | null | undefined; +}; + +/** @internal */ +export const ListServiceEnvironmentsRequest$inboundSchema: z.ZodType< + ListServiceEnvironmentsRequest, + z.ZodTypeDef, + unknown +> = z.object({ + service_id: z.string(), + page: z.nullable(z.number().int()).optional(), + per_page: z.nullable(z.number().int()).optional(), +}).transform((v) => { + return remap$(v, { + "service_id": "serviceId", + "per_page": "perPage", + }); +}); +/** @internal */ +export type ListServiceEnvironmentsRequest$Outbound = { + service_id: string; + page?: number | null | undefined; + per_page?: number | null | undefined; +}; + +/** @internal */ +export const ListServiceEnvironmentsRequest$outboundSchema: z.ZodType< + ListServiceEnvironmentsRequest$Outbound, + z.ZodTypeDef, + ListServiceEnvironmentsRequest +> = z.object({ + serviceId: z.string(), + page: z.nullable(z.number().int()).optional(), + perPage: z.nullable(z.number().int()).optional(), +}).transform((v) => { + return remap$(v, { + serviceId: "service_id", + perPage: "per_page", + }); +}); + +export function listServiceEnvironmentsRequestToJSON( + listServiceEnvironmentsRequest: ListServiceEnvironmentsRequest, +): string { + return JSON.stringify( + ListServiceEnvironmentsRequest$outboundSchema.parse( + listServiceEnvironmentsRequest, + ), + ); +} +export function listServiceEnvironmentsRequestFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListServiceEnvironmentsRequest$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListServiceEnvironmentsRequest' from JSON`, + ); +} diff --git a/src/sdk/catalogentries.ts b/src/sdk/catalogentries.ts index 96bb3a56..9005ba36 100644 --- a/src/sdk/catalogentries.ts +++ b/src/sdk/catalogentries.ts @@ -19,12 +19,16 @@ import { catalogEntriesGetService } from "../funcs/catalogEntriesGetService.js"; import { catalogEntriesGetServiceDependencies } from "../funcs/catalogEntriesGetServiceDependencies.js"; import { catalogEntriesGetServiceDependency } from "../funcs/catalogEntriesGetServiceDependency.js"; import { catalogEntriesIngestCatalogData } from "../funcs/catalogEntriesIngestCatalogData.js"; +import { catalogEntriesListEnvironmentFunctionalities } from "../funcs/catalogEntriesListEnvironmentFunctionalities.js"; import { catalogEntriesListEnvironments } from "../funcs/catalogEntriesListEnvironments.js"; +import { catalogEntriesListEnvironmentServices } from "../funcs/catalogEntriesListEnvironmentServices.js"; import { catalogEntriesListFunctionalities } from "../funcs/catalogEntriesListFunctionalities.js"; +import { catalogEntriesListFunctionalityEnvironments } from "../funcs/catalogEntriesListFunctionalityEnvironments.js"; import { catalogEntriesListFunctionalityServices } from "../funcs/catalogEntriesListFunctionalityServices.js"; import { catalogEntriesListInfrastructures } from "../funcs/catalogEntriesListInfrastructures.js"; import { catalogEntriesListServiceAvailableDownstreamDependencies } from "../funcs/catalogEntriesListServiceAvailableDownstreamDependencies.js"; import { catalogEntriesListServiceAvailableUpstreamDependencies } from "../funcs/catalogEntriesListServiceAvailableUpstreamDependencies.js"; +import { catalogEntriesListServiceEnvironments } from "../funcs/catalogEntriesListServiceEnvironments.js"; import { catalogEntriesListServices } from "../funcs/catalogEntriesListServices.js"; import { catalogEntriesListUserOwnedServices } from "../funcs/catalogEntriesListUserOwnedServices.js"; import { catalogEntriesRefreshCatalog } from "../funcs/catalogEntriesRefreshCatalog.js"; @@ -123,6 +127,40 @@ export class CatalogEntries extends ClientSDK { )); } + /** + * List services for an environment + * + * @remarks + * List services for an environment + */ + async listEnvironmentServices( + request: operations.ListEnvironmentServicesRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(catalogEntriesListEnvironmentServices( + this, + request, + options, + )); + } + + /** + * List functionalities for an environment + * + * @remarks + * List functionalities for an environment + */ + async listEnvironmentFunctionalities( + request: operations.ListEnvironmentFunctionalitiesRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(catalogEntriesListEnvironmentFunctionalities( + this, + request, + options, + )); + } + /** * List services * @@ -226,6 +264,23 @@ export class CatalogEntries extends ClientSDK { )); } + /** + * List environments for a service + * + * @remarks + * List environments for a service + */ + async listServiceEnvironments( + request: operations.ListServiceEnvironmentsRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(catalogEntriesListServiceEnvironments( + this, + request, + options, + )); + } + /** * List dependencies for a service * @@ -464,6 +519,23 @@ export class CatalogEntries extends ClientSDK { )); } + /** + * List environments for a functionality + * + * @remarks + * List environments for a functionality + */ + async listFunctionalityEnvironments( + request: operations.ListFunctionalityEnvironmentsRequest, + options?: RequestOptions, + ): Promise { + return unwrapAsync(catalogEntriesListFunctionalityEnvironments( + this, + request, + options, + )); + } + /** * List services for a functionality * diff --git a/src/sdk/retrospectives.ts b/src/sdk/retrospectives.ts index 6bf17cb5..9c71d747 100644 --- a/src/sdk/retrospectives.ts +++ b/src/sdk/retrospectives.ts @@ -15,7 +15,6 @@ import { retrospectivesExportIncidentRetrospectives } from "../funcs/retrospecti import { retrospectivesGetIncidentRetrospectiveField } from "../funcs/retrospectivesGetIncidentRetrospectiveField.js"; import { retrospectivesGetPostMortemQuestion } from "../funcs/retrospectivesGetPostMortemQuestion.js"; import { retrospectivesGetPostMortemReport } from "../funcs/retrospectivesGetPostMortemReport.js"; -import { retrospectivesGetRetrospectiveReportTemplate } from "../funcs/retrospectivesGetRetrospectiveReportTemplate.js"; import { retrospectivesGetRetrospectiveTemplate } from "../funcs/retrospectivesGetRetrospectiveTemplate.js"; import { retrospectivesListIncidentRetrospectives } from "../funcs/retrospectivesListIncidentRetrospectives.js"; import { retrospectivesListPostMortemQuestions } from "../funcs/retrospectivesListPostMortemQuestions.js"; @@ -548,21 +547,4 @@ export class Retrospectives extends ClientSDK { options, )); } - - /** - * Get a retrospective report template - * - * @remarks - * Retrieve a single retrospective report template by ID - */ - async getRetrospectiveReportTemplate( - request: operations.GetRetrospectiveReportTemplateRequest, - options?: RequestOptions, - ): Promise { - return unwrapAsync(retrospectivesGetRetrospectiveReportTemplate( - this, - request, - options, - )); - } }