diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 9c129f51..6dfd4873 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 79567c4a-05f9-4d65-864d-dfe107aa4e9d management: - docChecksum: 628b4f56b64c28e8bd87583ce431885d + docChecksum: 11fb5ff377bc99bfc4c21c0612f8614c docVersion: 0.0.1 - speakeasyVersion: 1.700.2 - generationVersion: 2.801.2 - releaseVersion: 1.18.10 - configChecksum: eba48df5e969b9c45caa700ba4f56de5 + speakeasyVersion: 1.701.0 + generationVersion: 2.803.3 + releaseVersion: 1.19.0 + configChecksum: f6e5458036515c6c1e40c4bacecd5e23 repoURL: https://github.com/vercel/sdk.git installationURL: https://github.com/vercel/sdk published: true persistentEdits: - generation_id: ead52ce9-d3bc-49f8-b3e8-29182388fe34 - pristine_commit_hash: 23b0fb02745ab4b937951f1f38fdee7283548687 - pristine_tree_hash: 8f839a16afffb3ad2a046fb97d4565707aa944cb + generation_id: 5f9c5bb8-73bd-4079-a128-6d1668916761 + pristine_commit_hash: e147b964ae7094eee1f8eedbb04a2daabe3e0e56 + pristine_tree_hash: 8b3e7a9fabf37a515a8e3594f72ff8387f1011ca features: typescript: acceptHeaders: 2.81.2 @@ -33,11 +33,12 @@ features: globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 globalServerURLs: 2.83.0 + jsonlResponses: 0.2.1 mcpServer: 0.9.4 mockServer: 0.1.1 nameOverrides: 2.81.2 nullables: 0.1.1 - responseFormat: 0.2.3 + responseFormat: 0.3.0 retries: 2.83.0 sdkHooks: 0.4.0 tests: 0.17.4 @@ -502,8 +503,8 @@ trackedFiles: pristine_git_object: a8372962c8cc2ac3d02b4ce9884730c0cbb3f108 docs/models/authuserdefault.md: id: 2599192dca34 - last_write_checksum: sha1:ecff6ee370c674ca8700ca22a750c30bbf0c795d - pristine_git_object: 224a1f23f960da2534e1dd90efd2310bbff256bf + last_write_checksum: sha1:e3a3cd1f76c3d7b3777c1fbf48ffb4d797195c3e + pristine_git_object: 7f03b414bd79ffc0d51cd8c73f572fb36954cfda docs/models/authuserlimited.md: id: e1631e96bda0 last_write_checksum: sha1:aad06c58c0241c760ee93b0f8dc7b5dc8d72b654 @@ -580,6 +581,10 @@ trackedFiles: id: d9dab99af558 last_write_checksum: sha1:82046e8f6ab5b38b2bf6ebb5d32b307b90e9e5a5 pristine_git_object: b3550a0ecd31f4ed24a4666bde00cabd37939b6d + docs/models/billingcurrency.md: + id: c9d9df2e5358 + last_write_checksum: sha1:6390006c39822b41b3642f170b1a5db228b6ca6c + pristine_git_object: 67f5458382416526046c5dc57bebbcb52d1b1281 docs/models/billingitems.md: id: c0834483eaed last_write_checksum: sha1:bfea8ea4843684123c3c913f9c93ea35619204f7 @@ -854,8 +859,8 @@ trackedFiles: pristine_git_object: 86ce63425dd7ff1e70b2a725d59e3f29a413fe1e docs/models/canceldeploymentdefault.md: id: 56c67ac37f62 - last_write_checksum: sha1:35756aa93bd59c6b539ec62d9ca74e37340aba8a - pristine_git_object: cf19f81489723934fd82c50fe60c57ff75fe90c7 + last_write_checksum: sha1:15514311b3862475144f6eed9ced9f7bf57421b2 + pristine_git_object: 7ee57d5e2fe679e851906fbcf3f61ac2537320e2 docs/models/canceldeploymentdeploymentalias.md: id: d6befe131b47 last_write_checksum: sha1:e67f06dbd61ca291822370ff78aa6e03bc705954 @@ -1170,8 +1175,8 @@ trackedFiles: pristine_git_object: 5d2ca7be07dee78d7f5714fe31f6ac3828ec4b59 docs/models/canceldeploymentpurchasetype.md: id: 20efbc559765 - last_write_checksum: sha1:ff22cb4fa418328cfad48c9a683fc93c71838035 - pristine_git_object: 4ad3bec7fda4a00432109b910b6d257cc06eedef + last_write_checksum: sha1:42ddff6cd184d0c873c3ae70c0e594faa815f1e2 + pristine_git_object: 3d78b27be625875ccf426b4a0ffe553754e2c057 docs/models/canceldeploymentreadystate.md: id: bae696c1eaf4 last_write_checksum: sha1:47e98078aef9889248d896c6e2bc7f0239613557 @@ -1300,6 +1305,10 @@ trackedFiles: id: 20e53f95ed13 last_write_checksum: sha1:c9c7352debcb4b5273075230596e24b94a522cb2 pristine_git_object: 56a22fffc9841092f52f4cb2c9798772f17da369 + docs/models/chargecategory.md: + id: 7833f6dbd0d0 + last_write_checksum: sha1:7400e3252c0aefc6aaceab01ea34fd73918a4a7a + pristine_git_object: 99bca82ebb27e871d62aa87e12b0f33bd46d8279 docs/models/checks.md: id: d48a6943fe95 last_write_checksum: sha1:a40e8b7586fd691196e53a249334273c8087d480 @@ -1540,6 +1549,10 @@ trackedFiles: id: a7240a335f53 last_write_checksum: sha1:7d7f985f9f790b196ca5898184c7e920cc78443a pristine_git_object: 01258ea76b9d48cdee214ed3b95d08133f1c15bc + docs/models/contractcommitmentcategory.md: + id: b6844dbefb44 + last_write_checksum: sha1:e0610b7e3a4f3bc9cec8684beef04bf67e9a2844 + pristine_git_object: a0e5bc7fea11f428f620debcc3bd5daa0ddc14ff docs/models/country.md: id: a9be7df1a5df last_write_checksum: sha1:f261cce209f267bc76236d2f262553edde4f8884 @@ -1770,8 +1783,8 @@ trackedFiles: pristine_git_object: 40829a6ef954513b6ac4056562e53700e1aa5edd docs/models/createdeploymentdefault.md: id: 0f6552de298d - last_write_checksum: sha1:41cdded3049d7a8c62fdf3019029b37b01bcb73b - pristine_git_object: 94a415e37a9e5d30581aa01285a1cacc30e889c2 + last_write_checksum: sha1:d0206c0b04cd37c8deabfb8bf1ec0cb6b20ee92f + pristine_git_object: 9a0d62db4d0771fcb8171bc8f3c19573a62d73f2 docs/models/createdeploymentdeploymentsnodeversion.md: id: 0b5a1eaf7704 last_write_checksum: sha1:c7e457ba84bc91648218d06e722ad7db0ca015d7 @@ -2010,8 +2023,8 @@ trackedFiles: pristine_git_object: 784404b1600bbc15a86c63e3e0845a48e36284ed docs/models/createdeploymentpurchasetype.md: id: 749f1f4acb7d - last_write_checksum: sha1:d833bcb1f41417573f3b0b31218017e8538552d4 - pristine_git_object: 23649db7f101110b76b261bfcd4d018a305a677e + last_write_checksum: sha1:7b8529016be9e8e2343e20019faaf262b8a5f0d2 + pristine_git_object: 509fca1f1eacc8d735cf70cb93da9be1cc54306c docs/models/createdeploymentreadystate.md: id: a5104cabbb4a last_write_checksum: sha1:06335e2590520e2bbf505cc750b4da23e61fd050 @@ -12480,10 +12493,18 @@ trackedFiles: id: ea0522602ee2 last_write_checksum: sha1:99ff775ede07d8521812f8ac5e8af7ecdb9fff71 pristine_git_object: 1334dce8bb1c85d136eb295748408418cb6a8c55 + docs/models/listbillingchargesresponsebody.md: + id: dab6fc36c1b9 + last_write_checksum: sha1:6212afe682dd5744ac59aa9545c6def72e76db20 + pristine_git_object: e0ddf8e6d91471c2621b4911bdea8d9ab87f72d4 docs/models/listcontractcommitmentsrequest.md: id: cf60704a3ac4 last_write_checksum: sha1:18c432712b3d3f4af2207a2bd7de82802c8e6e36 pristine_git_object: dc8f8a08eeec7176be3cabae53bf6f2bebbe342e + docs/models/listcontractcommitmentsresponsebody.md: + id: a3fd9fb51036 + last_write_checksum: sha1:ae8af07a4d3b03539140b8af34ec18bf3a68cf15 + pristine_git_object: 0e693392b5da8b1b9e6d511bf4e49b39d3fc9d73 docs/models/listdeploymentaliasesprotectionbypass.md: id: e262a4ac6c36 last_write_checksum: sha1:6ac9ee518327b1af0660c49a8dbc5d4eb164df74 @@ -13834,8 +13855,8 @@ trackedFiles: pristine_git_object: 4088664f28800c96c0cdee6ab84e709c20a11fbc docs/models/payloaddefault.md: id: cb44d74f983e - last_write_checksum: sha1:601b99245378f5a1c81131857c54b6e33e54eb36 - pristine_git_object: 093a74098c91cd1d05f27ffd692de38a4ef9f2ab + last_write_checksum: sha1:a0074f38650279f6f9e47f5178cb99c38bd48c5f + pristine_git_object: fa6e4423d6adb9e87b237c47fae2ceccd7b9d82b docs/models/payloaddeployment.md: id: e335cac90500 last_write_checksum: sha1:61e05f260ab7cd58df7b411463cacaa964ed0436 @@ -14014,8 +14035,8 @@ trackedFiles: pristine_git_object: d32e2166651275acd3d1f8df129b2c72280b0c63 docs/models/payloadpurchasetype.md: id: c6461e36d129 - last_write_checksum: sha1:489d0bc8f2c3a490a09f0d3d76f0ecfaffee6821 - pristine_git_object: ea98a6c5c8a14e6fe3794390371bf59b8d6fc58f + last_write_checksum: sha1:29e6d4be32c26b63d7eb745b6f56a78aca9923be + pristine_git_object: 535d9deb147cd66d4ad6cf52dbc24894deb3a065 docs/models/payloadreason.md: id: cdedcf8be32b last_write_checksum: sha1:60907c25755fff45e753bdc25e220499561913f7 @@ -14236,6 +14257,14 @@ trackedFiles: id: 57bf6ff09a97 last_write_checksum: sha1:27079ff46572a7440f3ea6d2a5c49f7ed40f36ec pristine_git_object: c3622bc77e7eeb3f71f8482834bd8c1ffacaf214 + docs/models/pricingcategory.md: + id: 2a0dfec6f075 + last_write_checksum: sha1:b9e28c847b8ceb6c8577faf25da5eb99c406d821 + pristine_git_object: 80bf84d77af312b6dc8f6ed10c3b7c3f1fcaedab + docs/models/pricingcurrency.md: + id: 8e553c61e394 + last_write_checksum: sha1:49265bd9407c8bdbe2c61ac54ff5ed6d695306a9 + pristine_git_object: 8cbf7146890e1ecd7e5f44e11ac3079d612a2733 docs/models/pricingplan.md: id: add702e1ee39 last_write_checksum: sha1:b2afde92b5fc01445c75d0ce43505b529a10fced @@ -14498,8 +14527,8 @@ trackedFiles: pristine_git_object: ec726c16136341b81458232ed35b032047dd7267 docs/models/purchasetype.md: id: 6d6027588d89 - last_write_checksum: sha1:9a796670e359df1262fdbc0a0da3c4cbc39c0437 - pristine_git_object: 1d82251ef22692a028993d8cd83d64ff7cb32ac4 + last_write_checksum: sha1:93e4a61a3d0844cfe17b373e127afb3110496554 + pristine_git_object: 6cfcdb30b885b6c7aa23c110a7c2704037579fe9 docs/models/purpose.md: id: 911feb51081e last_write_checksum: sha1:71c1090d2a4b4665fd0043c119436680cc21765a @@ -15850,8 +15879,8 @@ trackedFiles: pristine_git_object: 70254b2a02c44696aec93fc2e7a00e437ad8c2b6 docs/models/responsebodydefault.md: id: d2ff5a8c79f4 - last_write_checksum: sha1:68439834cf87fd492139bacfdd8d57baf8db7843 - pristine_git_object: 8841e45d091d1e848250a22222f1d44ae2043404 + last_write_checksum: sha1:85302404ccf9ec1252fd0a64604355be37051135 + pristine_git_object: e9addf9e13d7d0b40f3e409496654d02dc8aa2d5 docs/models/responsebodydefaultresourceconfig.md: id: d865fce18ef3 last_write_checksum: sha1:cce16dc3189bd169c33f3e070fa911b847b05416 @@ -16210,8 +16239,8 @@ trackedFiles: pristine_git_object: 318e16e6fc254eea3d274c7588f6e7347f778c5f docs/models/responsebodypurchasetype.md: id: 6fe19855e45e - last_write_checksum: sha1:2a671f41a6d8148b9fdc70bc712f2a77c0a24f5f - pristine_git_object: 55b5ac8b9e7e1a7797c7c582e7e78bde989241a6 + last_write_checksum: sha1:cf2cdecc7d0528b6e7d9ca4522bd3777c470c3d8 + pristine_git_object: 895eaecc4eab9f4d1bbf8267c7aa50213e0f491f docs/models/responsebodyreadystate.md: id: bc181a863e00 last_write_checksum: sha1:eee951b647f3232f5363aa6edb8b0cbf3762ba5d @@ -16716,6 +16745,10 @@ trackedFiles: id: 880a131bdd41 last_write_checksum: sha1:e83cf54fc0da3d25864ad26a29847dcbd24e9a63 pristine_git_object: 938033378929d9089cea2e5b5084d058353ee048 + docs/models/servicecategory.md: + id: c0a18c2359ce + last_write_checksum: sha1:a8f07672e1367b8df6c69bd60376980bd50b8f56 + pristine_git_object: 4e43815ab3f9f165133957b368bd5d173d85d4eb docs/models/servicetype.md: id: afc4e9b3ac89 last_write_checksum: sha1:7defe5a1764f7b0d49979799dcd8471bc469d5cd @@ -20558,8 +20591,8 @@ trackedFiles: pristine_git_object: 7c15ad0a868cd04286db9835cb58eb1aff50e04e docs/sdks/billing/README.md: id: dc915331dd9d - last_write_checksum: sha1:2798241de2bd04250dbb8c1a3b5aade0356e12a4 - pristine_git_object: ca1641c296f858c943d42cf46c654455456bc53c + last_write_checksum: sha1:348e6c6fff61252e3cf8213320de7eee8d6b4ea7 + pristine_git_object: e6fd899310dd9d6e30e86b3bad4f2e855baea843 docs/sdks/bulkredirects/README.md: id: fecaf63eebc9 last_write_checksum: sha1:7913f1ee160b9e93fef238381bc0468c17e23e7d @@ -20682,12 +20715,12 @@ trackedFiles: pristine_git_object: f85048c5faf67c6dced61a8b4bb1083b0c33ffe9 jsr.json: id: 7f6ab7767282 - last_write_checksum: sha1:fcfae96f184835bd5db8b6fa9e9cb5c862805b05 - pristine_git_object: 2b6a037100ca2fdff3ba5830482e72121d2cd510 + last_write_checksum: sha1:6314b79ceb103d40a0573a105385d05a50e2085c + pristine_git_object: 6e87d62e9d13ca158220aa99857674339ac010e1 package.json: id: 7030d0b2f71b - last_write_checksum: sha1:86432ab9d9e3162574f57880ae0732f226c3da3b - pristine_git_object: 8bc0be25b7648a82e683f28524b851d41735672f + last_write_checksum: sha1:a341b4dceea2ac8fa06d2f9c95a185927ad6eac6 + pristine_git_object: 41f879893334dd10354131a34a941d4713285368 src/__tests__/accessgroups.test.ts: id: ab047c52d3c4 last_write_checksum: sha1:c67a4e8270ed54ea4ba74e245ae955b02e3120dd @@ -20734,8 +20767,8 @@ trackedFiles: pristine_git_object: f6b127145c50d6869f3fd348bd7c2379eaa448be src/__tests__/domains.test.ts: id: 0ca156252a69 - last_write_checksum: sha1:c87d06fe7005a00e041295dae77d35bb04b81434 - pristine_git_object: c2eb896524b5f1f42473ca1df47fc23ce8fba640 + last_write_checksum: sha1:f317f663d606793185384e25adf80f618404981f + pristine_git_object: 22c177da09fd39d0a59980aaea534b926cf362c6 src/__tests__/domainsregistrar.test.ts: id: df9425302388 last_write_checksum: sha1:86fa0520a9fc5217c8ae23fd0b719de8837cfe3a @@ -20746,8 +20779,8 @@ trackedFiles: pristine_git_object: ede2adb8f73f27d1a559a9407e948e949aeda695 src/__tests__/edgeconfig.test.ts: id: f2e0ab81fbc5 - last_write_checksum: sha1:0d22cb84ba5e010522b8eb428f57a18ccdb923ec - pristine_git_object: c0484841835e882e7020846bd4b4e6901c5ec745 + last_write_checksum: sha1:61821db7a99852b0b2e65c820aef6b45a986b883 + pristine_git_object: 33ef3272edc7a9d6ea9ad19c749941bcd4b63207 src/__tests__/environment.test.ts: id: dafcf617e031 last_write_checksum: sha1:b10aacd0ad978885ebd2d648f8d11a0a244844f9 @@ -20762,16 +20795,16 @@ trackedFiles: pristine_git_object: 72d8294f5ec8e0c1fc0b8205d0d754ae1e49cc09 src/__tests__/logdrains.test.ts: id: 3cb0dbf6f654 - last_write_checksum: sha1:ff280c3ab181bcee4fd82231a67bce766fa127c9 - pristine_git_object: a3613a55eaeec0ed58176a959bb4b8ceb43f3934 + last_write_checksum: sha1:fc3b93e704493403e59ab118722a1c6ba5d5b14b + pristine_git_object: 1f564503a37c21dd82b0241bcbc6f632b1ddad13 src/__tests__/logs.test.ts: id: 3a0425d21e7e last_write_checksum: sha1:b333d11cc514feebad79577fca0bbe043d0242cd pristine_git_object: f9da7338932cde3b1ccfc64a1252b5dd7c629609 src/__tests__/marketplace.test.ts: id: 20dcdfb6a189 - last_write_checksum: sha1:ad3505dbebf2a9566ab208ba1fcdf4ae8255054d - pristine_git_object: bd3cacd4ef819cea68ea1b379f21760d96bdd838 + last_write_checksum: sha1:3568cd43654185a86dea24c27be79f6f5cdf7aad + pristine_git_object: 491100f909d9b18f13cbb7c0f05e18a1fd8f8aee src/__tests__/mockserver/.gitignore: last_write_checksum: sha1:228e1b05712a973948fd771323a2140a3b355ff4 src/__tests__/mockserver/Dockerfile: @@ -20893,7 +20926,7 @@ trackedFiles: src/__tests__/mockserver/internal/handler/pathgetv1edgeconfig.go: last_write_checksum: sha1:91b045e2c3d8a4a7dd42068ad76201ca959b51f9 src/__tests__/mockserver/internal/handler/pathgetv1edgeconfigedgeconfigid.go: - last_write_checksum: sha1:94d4fd6591f9150aed682d6efe0938eb98f066b7 + last_write_checksum: sha1:ad09cf79726285693924e6611bfd8c6f39cebd79 src/__tests__/mockserver/internal/handler/pathgetv1edgeconfigedgeconfigidbackups.go: last_write_checksum: sha1:9511e139d2c0f3aaebb8e2c2993acf0da75f81a6 src/__tests__/mockserver/internal/handler/pathgetv1edgeconfigedgeconfigiditemedgeconfigitemkey.go: @@ -20965,7 +20998,7 @@ trackedFiles: src/__tests__/mockserver/internal/handler/pathgetv1registrartldstldprice.go: last_write_checksum: sha1:c3723a4a49d3786f2cae6d302b84d9308e0dd411 src/__tests__/mockserver/internal/handler/pathgetv1securityfirewallbypass.go: - last_write_checksum: sha1:1a7ce9902709514848ab0777b05f273ecb4bf948 + last_write_checksum: sha1:bf0ca75f852458459c7b11861625876a33167a0e src/__tests__/mockserver/internal/handler/pathgetv1securityfirewallconfigconfigversion.go: last_write_checksum: sha1:aa8e5188085da2cad93d677f714bac5d82f3c3b6 src/__tests__/mockserver/internal/handler/pathgetv1securityfirewallevents.go: @@ -20979,7 +21012,7 @@ trackedFiles: src/__tests__/mockserver/internal/handler/pathgetv2deploymentsidaliases.go: last_write_checksum: sha1:d087c362dacec292d71a45d421f639a2016e70a2 src/__tests__/mockserver/internal/handler/pathgetv2integrationslogdrains.go: - last_write_checksum: sha1:213b6ce21f78b553a924153cd902af3d922226c1 + last_write_checksum: sha1:d1d9af9d586ee3b86d4281637a03b0ff16827923 src/__tests__/mockserver/internal/handler/pathgetv2teams.go: last_write_checksum: sha1:3c039265985db4714335be2053691cfe94e05524 src/__tests__/mockserver/internal/handler/pathgetv2teamsteamid.go: @@ -21005,7 +21038,7 @@ trackedFiles: src/__tests__/mockserver/internal/handler/pathgetv6deploymentsidfiles.go: last_write_checksum: sha1:29583ada1feafff8eeaf6416b2721ee0205e22ce src/__tests__/mockserver/internal/handler/pathgetv6domainsdomainconfig.go: - last_write_checksum: sha1:267e48f6412179b91d43d01b17d620e419f18ebd + last_write_checksum: sha1:52affe1b6fe51b2f135c4ab8e6a1788a215c7e0f src/__tests__/mockserver/internal/handler/pathgetv8artifactshash.go: last_write_checksum: sha1:5cd94fdc3e1b19e6f25d519a901b47b179781124 src/__tests__/mockserver/internal/handler/pathgetv8artifactsstatus.go: @@ -21083,7 +21116,7 @@ trackedFiles: src/__tests__/mockserver/internal/handler/pathpostv13deployments.go: last_write_checksum: sha1:8d5c72e9e74be06ae98c0d9c050aab1f58c1b513 src/__tests__/mockserver/internal/handler/pathpostv1accessgroups.go: - last_write_checksum: sha1:d241996c25078f813e79831aa65917cc15583019 + last_write_checksum: sha1:31bd435fab4b602d1df154cdb93315e642cae3da src/__tests__/mockserver/internal/handler/pathpostv1accessgroupsaccessgroupidornameprojects.go: last_write_checksum: sha1:414153c102c83b683d5936d48548a4064fac3221 src/__tests__/mockserver/internal/handler/pathpostv1accessgroupsidorname.go: @@ -21169,7 +21202,7 @@ trackedFiles: src/__tests__/mockserver/internal/handler/pathpostv2files.go: last_write_checksum: sha1:8843b9510786bc0859d26b235b3611a6ec42163a src/__tests__/mockserver/internal/handler/pathpostv2integrationslogdrains.go: - last_write_checksum: sha1:debcca02ce7c80ba57d7886a6122c65a34d63797 + last_write_checksum: sha1:3fcb3af098cee9874075e0775a72e2120d23ddc7 src/__tests__/mockserver/internal/handler/pathpostv2teamsteamidmembers.go: last_write_checksum: sha1:9289df325a5a1ee76f26dc36961b72e6a5705d17 src/__tests__/mockserver/internal/handler/pathpostv3usertokens.go: @@ -21189,7 +21222,7 @@ trackedFiles: src/__tests__/mockserver/internal/handler/pathputv1bulkredirects.go: last_write_checksum: sha1:53d3355fd3e66c77c3414f1791a6d9dc0e9022e4 src/__tests__/mockserver/internal/handler/pathputv1edgeconfigedgeconfigid.go: - last_write_checksum: sha1:563beae4655c978770ba707f00955a75ccd4a603 + last_write_checksum: sha1:6f761b250de7a2b4e74f9db8adfd003828990983 ? src/__tests__/mockserver/internal/handler/pathputv1installationsintegrationconfigurationidproductsintegrationproductidorslugresourcesresourceidsecrets.go : last_write_checksum: sha1:e6d20cb02db6b4cc025f673653ea5a965f3f43a8 src/__tests__/mockserver/internal/handler/pathputv1installationsintegrationconfigurationidresourcesresourceid.go: @@ -21199,7 +21232,7 @@ trackedFiles: src/__tests__/mockserver/internal/handler/pathputv1installationsintegrationconfigurationidresourcesresourceidsecrets.go: last_write_checksum: sha1:c8beb85f9bf246183a589fda5198045497bce9b9 src/__tests__/mockserver/internal/handler/pathputv1securityfirewallconfig.go: - last_write_checksum: sha1:edaedced5a631532d17d748c350ea06a6e8a9d03 + last_write_checksum: sha1:8461b337d33943d58006c4c8131bbf7089ba28e0 src/__tests__/mockserver/internal/handler/pathputv8certs.go: last_write_checksum: sha1:de5df0a100484470db4aa74110adf3fdc3ab72a6 src/__tests__/mockserver/internal/handler/values/files.go: @@ -21227,7 +21260,7 @@ trackedFiles: src/__tests__/mockserver/internal/sdk/models/components/authtoken.go: last_write_checksum: sha1:1a7e81e7f0e8ed5f3c2f21c96aff98ef869774cb src/__tests__/mockserver/internal/sdk/models/components/authuser.go: - last_write_checksum: sha1:0900765c5a7299af18388835bdc2bc48060f1863 + last_write_checksum: sha1:e7d6297fffd4318715a3566c15430dc0a2f0b050 src/__tests__/mockserver/internal/sdk/models/components/authuserlimited.go: last_write_checksum: sha1:e8568693cec50db8423c3f74ff03fd6d14e28084 src/__tests__/mockserver/internal/sdk/models/components/badrequesterror.go: @@ -21303,7 +21336,7 @@ trackedFiles: src/__tests__/mockserver/internal/sdk/models/components/unauthorizederror.go: last_write_checksum: sha1:43d31aa78a88709d3001496b51dff29ee0219b77 src/__tests__/mockserver/internal/sdk/models/components/userevent.go: - last_write_checksum: sha1:cb0b02fe0280303010b5dbb66c1ff5dada24c36e + last_write_checksum: sha1:412850db33fddbbf898ae483417a49904a565c91 src/__tests__/mockserver/internal/sdk/models/operations/acceptprojecttransferrequest.go: last_write_checksum: sha1:38e697e5828fede454b110c2dca483ce97bd7752 src/__tests__/mockserver/internal/sdk/models/operations/addbypassip.go: @@ -21327,7 +21360,7 @@ trackedFiles: src/__tests__/mockserver/internal/sdk/models/operations/buysingledomain.go: last_write_checksum: sha1:271d5a051f3b70dbd050c43c2a3a1877ff39475b src/__tests__/mockserver/internal/sdk/models/operations/canceldeployment.go: - last_write_checksum: sha1:3e93defcfbecb8f6ccaac76751ffaec39ab64107 + last_write_checksum: sha1:1cb3d46d282f4331883401181361cda8a7f0dcb0 src/__tests__/mockserver/internal/sdk/models/operations/completerollingrelease.go: last_write_checksum: sha1:d03b63a60a4a4c1377066ca6e54c35325a1d62d9 src/__tests__/mockserver/internal/sdk/models/operations/connectintegrationresourcetoproject.go: @@ -21345,7 +21378,7 @@ trackedFiles: src/__tests__/mockserver/internal/sdk/models/operations/createcustomenvironment.go: last_write_checksum: sha1:48b43acc90fb3da19dfd4cccbd2f0ac86fb62ddc src/__tests__/mockserver/internal/sdk/models/operations/createdeployment.go: - last_write_checksum: sha1:72c4d82f9450e9ea6ac16d87c4f62df0b24d00fe + last_write_checksum: sha1:2f2eb6afc530c0938b4f7e5d13072912f34c15f9 src/__tests__/mockserver/internal/sdk/models/operations/createdrain.go: last_write_checksum: sha1:d0aa9718efc23b0012f1a5725cad01c739452c91 src/__tests__/mockserver/internal/sdk/models/operations/createedgeconfig.go: @@ -21473,7 +21506,7 @@ trackedFiles: src/__tests__/mockserver/internal/sdk/models/operations/getcustomenvironment.go: last_write_checksum: sha1:aa5803298e0aa4f2cce39afba677ecb1dceb3c5c src/__tests__/mockserver/internal/sdk/models/operations/getdeployment.go: - last_write_checksum: sha1:2d913d7671c14e8080e70105a97aebad7d7dd945 + last_write_checksum: sha1:707404c16c46dbaedc1beaacd4334c02e0cbe7ba src/__tests__/mockserver/internal/sdk/models/operations/getdeploymentevents.go: last_write_checksum: sha1:5d701cca0cf218af1e7d9382d0ed5c6e42ed9e3d src/__tests__/mockserver/internal/sdk/models/operations/getdeploymentfilecontents.go: @@ -21604,10 +21637,6 @@ trackedFiles: last_write_checksum: sha1:cf63486dd3b5a2a447661dddc32bf9a1ceb20604 src/__tests__/mockserver/internal/sdk/models/operations/listauthtokens.go: last_write_checksum: sha1:9cadfb791ae9431cf02aa59262434b3318da8331 - src/__tests__/mockserver/internal/sdk/models/operations/listbillingcharges.go: - last_write_checksum: sha1:59ff5e9dabe16b3db52e5771cdcf80adf72fd3af - src/__tests__/mockserver/internal/sdk/models/operations/listcontractcommitments.go: - last_write_checksum: sha1:5d047b0d3f57b5eefb10ac594a0cbef28ec5f0c6 src/__tests__/mockserver/internal/sdk/models/operations/listdeploymentaliases.go: last_write_checksum: sha1:3bae82e2deb8bfcaffebf41caaf717826a051678 src/__tests__/mockserver/internal/sdk/models/operations/listdeploymentfiles.go: @@ -21880,16 +21909,16 @@ trackedFiles: pristine_git_object: 79e2cde9a8cbb3a41b7b50ff963a2534262ab440 src/__tests__/projects.test.ts: id: c3efd228934b - last_write_checksum: sha1:7f6b932ee9a438ea59ee2e324aa741eeaf3e3691 - pristine_git_object: d35dffc8ae2a2394f5325ce221a80e9a6696c551 + last_write_checksum: sha1:32a611b48c2a5001d8cbb6597fdb44a94fb82222 + pristine_git_object: ef88dfe18d7a542c84623197599183f3950945e0 src/__tests__/rollingrelease.test.ts: id: 9cbf4f3e70f8 last_write_checksum: sha1:b7010037f72e6824922681dbc9621df914c3f1f6 pristine_git_object: 5aa7915ac7cb2d9dfbf95cffd5fdcddd87e7d5e1 src/__tests__/security.test.ts: id: bafa3abb6ed1 - last_write_checksum: sha1:71bfcbadc0d0d701c43453d36652d412fb24e5e1 - pristine_git_object: d0d7267e024fd18f8ab91ad7a10d44605c7851a5 + last_write_checksum: sha1:122efb423c61a367c0c2813714b062847f52b34f + pristine_git_object: 91a474fa5eab0b59ace48397c10d6d2d7e116e19 src/__tests__/teams.test.ts: id: af4aa38e263e last_write_checksum: sha1:770df316a73838604888dc2ee95875dba092f150 @@ -22024,12 +22053,12 @@ trackedFiles: pristine_git_object: 68a2a3d197c3fbfe6ecaaaaeeb4d98c1a923b2fc src/funcs/billingListBillingCharges.ts: id: 45d5a2550cbd - last_write_checksum: sha1:fc45662bae4c6983b79c7de2c58d06ea7fa39120 - pristine_git_object: d355aa6bb9d2b50119a02bf66427a278d1293cc7 + last_write_checksum: sha1:08beda64908f277518e819d1c26e37f7eeb929ae + pristine_git_object: cbbbd64bae6c3400374c28112b1a8c0d294af521 src/funcs/billingListContractCommitments.ts: id: 7b144849846d - last_write_checksum: sha1:efa31afb1dc30a1ce99c4bb452631f24676742e0 - pristine_git_object: 851ad2c96515ceb55c44e9548c88623d9183aabe + last_write_checksum: sha1:79cec528f003b45f1b48ac9a8e34aaf44ba4efba + pristine_git_object: 0fc4d98f6e9f72f0a71d5eaa99678555cd82c0a2 src/funcs/bulkRedirectsDeleteRedirects.ts: id: 421c395040f3 last_write_checksum: sha1:615d79a05fd05ab2a30495d6c9f409c0f8647644 @@ -22852,8 +22881,8 @@ trackedFiles: pristine_git_object: 0aebd8b0a4867e35cb3348fc52921c3c0b4725b7 src/lib/config.ts: id: 320761608fb3 - last_write_checksum: sha1:2ce163e08cbc2fbaf643b956872834153c2b013c - pristine_git_object: db3720ff91d15de317e7e95bd7759d2a05ce33d0 + last_write_checksum: sha1:253a8e13431cf9cc5f130de740606744c70717b6 + pristine_git_object: 5f9022c09f74f33f0c0ae71c0f33f8ccd14a840e src/lib/dlv.ts: id: b1988214835a last_write_checksum: sha1:1dd3e3fbb4550c4bf31f5ef997faff355d6f3250 @@ -22874,6 +22903,10 @@ trackedFiles: id: b9862591096a last_write_checksum: sha1:df687f25a9590b6fd95d39df41a652ae3fd4e517 pristine_git_object: 61070d3d7c7e5e95b1ed7e7ea21869eb0767db77 + src/lib/jsonl.ts: + id: ab14e387f86f + last_write_checksum: sha1:a121145e7996c7f9331c63bec366f858ff02a73f + pristine_git_object: 566c4408171c28609c453fb499c8797ae4de2f5a src/lib/logger.ts: id: 7ee7741a02bf last_write_checksum: sha1:0ec9d3a2a34c362746b767e4f9a746c055d57a7b @@ -22932,8 +22965,8 @@ trackedFiles: pristine_git_object: 0955a573c2ce989d63c737410ab8cc28706d9f74 src/mcp-server/mcp-server.ts: id: aabbc4ab07c1 - last_write_checksum: sha1:afea3706d1d6f117abdf8c575bd693f48f04aebd - pristine_git_object: f1526a80d94604728bf541a88d4455fcc4280ce1 + last_write_checksum: sha1:11478c6cac81cc68b6e23de7169a402847a629ca + pristine_git_object: db47a24add6f1481fb4b6212d2e0522c4a96fd78 src/mcp-server/prompts.ts: id: 26f3d73cbf31 last_write_checksum: sha1:376b46be0e4c514c7d6af5102dc03e1c4ccfe24b @@ -22948,8 +22981,8 @@ trackedFiles: pristine_git_object: c25696d4c4f70e081fa5d87ad6891874c509a577 src/mcp-server/server.ts: id: 2784dd48e82a - last_write_checksum: sha1:63c0af86451d370dce9208fc695f689dd7f25ca9 - pristine_git_object: 6c54418338d853ae8f3b368040db96aeb3257094 + last_write_checksum: sha1:6e70549f0c70c6cee85cecbdef5e430e58056d10 + pristine_git_object: f2e824980f163fcf5e795ee1efde3cde184b8d09 src/mcp-server/shared.ts: id: 074e80d4be1e last_write_checksum: sha1:56c73d4429691516e35541825e759a0285747a2b @@ -23068,12 +23101,12 @@ trackedFiles: pristine_git_object: 09e72a76b8a6c8601d687413a801c3c02d2f431a src/mcp-server/tools/billingListBillingCharges.ts: id: 661088a706e3 - last_write_checksum: sha1:97ed94b7080a128e81aab662d418e095647e86d5 - pristine_git_object: 07d0dfdc7b9227ed9bae9c01a9973467607f2b73 + last_write_checksum: sha1:215b100b7f8412eb382f70e33b4d5833ffd38345 + pristine_git_object: 188b05a92d85628f8a8ee31f50f87c2f444daaa9 src/mcp-server/tools/billingListContractCommitments.ts: id: 7de0f0b6a0b0 - last_write_checksum: sha1:b18bdb1d5729483e7c24dfe91976ccb14aa8b7e0 - pristine_git_object: ae4532e7ad1a5c18ba28a25692b2128fc6f7c3ed + last_write_checksum: sha1:d71a1d134d9428553cff9f1a77f7d3defabd8fab + pristine_git_object: 41d6f83f05666a14d5476f614f9a903cbe6e3d0f src/mcp-server/tools/bulkRedirectsDeleteRedirects.ts: id: 6ee927ed4911 last_write_checksum: sha1:fbc4d5d98a137f2e2b21d977d7d54676cae0646d @@ -23924,8 +23957,8 @@ trackedFiles: pristine_git_object: 906e7f50412c603e37accaaa5901a63b736e8f8f src/models/authuser.ts: id: b63edebaa2d6 - last_write_checksum: sha1:87487cc3a8ecac9ae6167f51200bdfabb8570694 - pristine_git_object: b0ff209d5308fbc1902bb642bb6f20257ca6a3e3 + last_write_checksum: sha1:df222129849d8579257fb91de89dbb7ba8d00600 + pristine_git_object: 4d39a7b1c32fbbc2e5ab16fd0b3e5ec7a59e2c20 src/models/authuserlimited.ts: id: b2b1f9fb9258 last_write_checksum: sha1:cbd1f6ec3244354bf5e8cdb6c2fe6d4a35a5ea15 @@ -23948,8 +23981,8 @@ trackedFiles: pristine_git_object: 51e81a1d29f0c2c00cdc5f861f36ed507299e6f3 src/models/canceldeploymentop.ts: id: 46d238d93fc5 - last_write_checksum: sha1:aa27bd3db07e67c19f92278f8244441267cf7b98 - pristine_git_object: 3e78d828a07c38c635102ce9d7a1273913c75be4 + last_write_checksum: sha1:4838974f512aea5417f4c1566ecd41f716199486 + pristine_git_object: 2e6fc5f8be9ecc9f34c1fd607aab7a99cb829a15 src/models/completerollingreleaseop.ts: id: 2bfaf5ec9941 last_write_checksum: sha1:2437775b8b3d0b524927ee438769d4b8fe084979 @@ -23984,8 +24017,8 @@ trackedFiles: pristine_git_object: b632db2b3f2f22d7968222a28b735f93f9fd18b7 src/models/createdeploymentop.ts: id: 7479eab76e9a - last_write_checksum: sha1:3bb8e0947c2bf05bfc86c5fb45f6d2cf5a3dd638 - pristine_git_object: 7add40de46b059a7ece53fca1506f0135dffebf5 + last_write_checksum: sha1:3335047a2c3d3e3055bde0507796367ffefa38c9 + pristine_git_object: 27103c7fba6a494269a4045933285c3b56d6a0a1 src/models/createdrainop.ts: id: c8cc05eb1602 last_write_checksum: sha1:c168547c8e15a9f082ad6c75a6165d0801ad1b3d @@ -24316,8 +24349,8 @@ trackedFiles: pristine_git_object: 5ae0b8f324e22c38ad6a18eda0b4b2086c7728fb src/models/getdeploymentop.ts: id: 3cc9776802f8 - last_write_checksum: sha1:4828d54a2625084094360529d751971546c3cb75 - pristine_git_object: 4c933373fc5628f1036eac646bf0b067b8a5a8b9 + last_write_checksum: sha1:40bc32de1bb000099070334099842cb5a491c480 + pristine_git_object: f87a859fd26b1b76cdde9a3e575678753c3a2d5e src/models/getdeploymentsop.ts: id: 51c6ebed6c62 last_write_checksum: sha1:43101fde7591de47938cb53593c728dbd1da0b3c @@ -24596,12 +24629,12 @@ trackedFiles: pristine_git_object: ef0b80bc6ba4edc7b423c7f8efed854391925671 src/models/listbillingchargesop.ts: id: b0a2c289ee49 - last_write_checksum: sha1:4e4307ff90497b1817ab5c4aed50523bc8632bfe - pristine_git_object: df050ac5531635571bbc50ddd7d17f2b39315f0a + last_write_checksum: sha1:899dc418662bcfb1e20a7769284b2298411d9952 + pristine_git_object: 5048fa53229176fed515d3b33024a668e5630914 src/models/listcontractcommitmentsop.ts: id: f2a759471325 - last_write_checksum: sha1:4677e21c0cfdbc9d072c7f33a8d5c5d16d12a40f - pristine_git_object: 3f9daadb50958d43508b6b0505dd2c3399a9e388 + last_write_checksum: sha1:64eab9aa2fe48bd527333d521236df02dcb68eee + pristine_git_object: 777e96ec4c792e2b39e4176fb02bb695b2e80a6f src/models/listdeploymentaliasesop.ts: id: 6ff71a556264 last_write_checksum: sha1:dc6e6a87068c9fdc9206d4efeb0b582993d381e8 @@ -24976,8 +25009,8 @@ trackedFiles: pristine_git_object: a736554ae5882d47132e97e7e152edce0de31345 src/models/userevent.ts: id: b4ca51647dbd - last_write_checksum: sha1:bc1a4eb7de3e415ec7f1ca34dc57d1eaa2ef5d04 - pristine_git_object: 39e92e2510203933da1cac6d234a56f8119ec6d1 + last_write_checksum: sha1:40dcaeebbd2d8565f8718a32bd37cb5c417353b4 + pristine_git_object: 506ed3f7135105da4642dd569ff5c420d70d48b1 src/models/vercelerror.ts: id: 499c3e00b8f9 last_write_checksum: sha1:d90ceb470a342bbccb11a2162037771dd91fc678 @@ -25004,8 +25037,8 @@ trackedFiles: pristine_git_object: 83316218d43357289cb9a6ee65256bbb056c08b4 src/sdk/billing.ts: id: 10905058c4ad - last_write_checksum: sha1:d01f666c989c5db772385223815ec8a0f5d40036 - pristine_git_object: 002cb949f46f5b07f1fc43b5c8cc3ab404c25190 + last_write_checksum: sha1:3a1674d02d20f240d8758a90fc4276796bd62673 + pristine_git_object: 495f663d44cb80c3532575212b9bcda62bb11032 src/sdk/bulkredirects.ts: id: dbfd3e75ea9b last_write_checksum: sha1:ba3ebae904f2daa542138c2a394dc65fbc2384db @@ -29476,7 +29509,15 @@ generatedTests: updateNetwork: "2026-01-09T23:06:03Z" readNetwork: "2026-01-09T23:06:03Z" get_/v1/installations/{integrationConfigurationId}/resources/{resourceId}/experimentation/edge-config: "2026-01-27T00:12:26Z" -releaseNotes: "## Typescript SDK Changes:\n* `vercel.integrations.createIntegrationStoreDirect()`: `response.store.product.tags[].enum(mcp)` **Added** **Breaking** ⚠️\n* `vercel.user.listUserEvents()`: `response.events[].payload.union(76).newOwner.resourceConfig.buildMachine.default` **Added**\n* `vercel.projects.createProject()`: `response.permissions.buildMachineDefault` **Added**\n* `vercel.apiBilling.get/v1/billing/contractCommitments()`: **Removed** **Breaking** ⚠️\n* `vercel.deployments.getDeployment()`: `response.union(1).config.resourceConfig.buildMachine.default` **Added**\n* `vercel.deployments.createDeployment()`: `response.config.resourceConfig.buildMachine.default` **Added**\n* `vercel.deployments.cancelDeployment()`: `response.config.resourceConfig.buildMachine.default` **Added**\n* `vercel.apiBilling.get/v1/billing/charges()`: **Removed** **Breaking** ⚠️\n* `vercel.user.getAuthUser()`: `response.user.union(AuthUser).resourceConfig.buildMachine.default` **Added**\n* `vercel.billing.listContractCommitments()`: **Added**\n* `vercel.projects.getProjects()`: `response.union(3).projects[].permissions.buildMachineDefault` **Added**\n* `vercel.billing.listBillingCharges()`: **Added**\n* `vercel.projects.updateProject()`: `response.permissions.buildMachineDefault` **Added**\n* `vercel.teams.getTeam()`: `response.resourceConfig.buildMachine` **Added**\n* `vercel.teams.patchTeam()`: \n * `request.requestBody.resourceConfig` **Added**\n * `response.resourceConfig.buildMachine` **Added**\n* `vercel.teams.getTeams()`: `response.teams[].union(Team).resourceConfig.buildMachine` **Added**\n" +releaseNotes: | + ## Typescript SDK Changes: + * `vercel.billing.listBillingCharges()`: `response` **Changed** **Breaking** ⚠️ + * `vercel.billing.listContractCommitments()`: `response` **Changed** **Breaking** ⚠️ + * `vercel.deployments.getDeployment()`: `response.union(1).config.resourceConfig.buildMachine.purchaseType.enum(standard)` **Added** **Breaking** ⚠️ + * `vercel.deployments.createDeployment()`: `response.config.resourceConfig.buildMachine.purchaseType.enum(standard)` **Added** **Breaking** ⚠️ + * `vercel.deployments.cancelDeployment()`: `response.config.resourceConfig.buildMachine.purchaseType.enum(standard)` **Added** **Breaking** ⚠️ + * `vercel.user.listUserEvents()`: `response.events[].payload.union(76).newOwner.resourceConfig.buildMachine.purchaseType.enum(standard)` **Added** **Breaking** ⚠️ + * `vercel.user.getAuthUser()`: `response.user.union(AuthUser).resourceConfig.buildMachine.purchaseType.enum(standard)` **Added** **Breaking** ⚠️ generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 9f1dba31..f2648949 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -24,13 +24,14 @@ generation: schemas: allOfMergeStrategy: shallowMerge requestBodyFieldName: "" + versioningStrategy: automatic persistentEdits: {} tests: generateTests: true generateNewTests: true skipResponseBodyAssertions: false typescript: - version: 1.18.10 + version: 1.19.0 acceptHeaderEnum: true additionalDependencies: dependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 6ed6590b..22e39db0 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.700.2 +speakeasyVersion: 1.701.0 sources: vercel-OAS: sourceNamespace: vercel-oas - sourceRevisionDigest: sha256:faf5f54213d282605ca8be089cd202e2b3c552ddda1798bc422d548918294b26 - sourceBlobDigest: sha256:61ab3cbad492d95b68a399c2584fac2150612a1bd36c8e1172c135b106c35f99 + sourceRevisionDigest: sha256:6551c3557b2e28b024811ded22fc7ad7eb19db1b952858e10ce0a5844f9f8eef + sourceBlobDigest: sha256:b7450cbf8fdfa65dfd7fb1f38c7c6d5d1ed9ddca22714d732b1856b32639bf14 tags: - latest - - speakeasy-sdk-regen-1769904768 + - speakeasy-sdk-regen-1770163817 - 0.0.1 targets: vercel: source: vercel-OAS sourceNamespace: vercel-oas - sourceRevisionDigest: sha256:faf5f54213d282605ca8be089cd202e2b3c552ddda1798bc422d548918294b26 - sourceBlobDigest: sha256:61ab3cbad492d95b68a399c2584fac2150612a1bd36c8e1172c135b106c35f99 + sourceRevisionDigest: sha256:6551c3557b2e28b024811ded22fc7ad7eb19db1b952858e10ce0a5844f9f8eef + sourceBlobDigest: sha256:b7450cbf8fdfa65dfd7fb1f38c7c6d5d1ed9ddca22714d732b1856b32639bf14 codeSamplesNamespace: vercel-oas-typescript-code-samples - codeSamplesRevisionDigest: sha256:adc760120ed1655173747b6ba7bdf4fdcae929f83611b62db5565df5b0b0bb78 + codeSamplesRevisionDigest: sha256:8bc8d7cfc2182337054656e703fb7e577a148e0160470d54dec0758e3a8f2744 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index fdbe7e24..8b7e901e 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ The `@vercel/sdk` is a type-safe Typescript SDK that gives you full control over * [SDK Example Usage](#sdk-example-usage) * [Available Resources and Operations](#available-resources-and-operations) * [Standalone functions](#standalone-functions) + * [Json Streaming](#json-streaming) * [File uploads](#file-uploads) * [Retries](#retries) * [Error Handling](#error-handling) @@ -860,6 +861,43 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). + +## Json Streaming + +Json Streaming ([jsonl][jsonl-format] / [x-ndjson][x-ndjson]) content type can be used to stream content from certain operations. These operations expose the stream as an [AsyncGenerator][async-generator] that can be consumed using a `for await...of` loop in TypeScript/JavaScript. The loop will terminate when the server no longer has any events to send and closes the underlying connection. + +Here's an example of consuming a JSONL stream: + +```typescript +import { Vercel } from "@vercel/sdk"; + +const vercel = new Vercel({ + bearerToken: "", +}); + +async function run() { + const result = await vercel.billing.listBillingCharges({ + from: "2025-01-01T00:00:00.000Z", + to: "2025-01-31T00:00:00.000Z", + teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", + slug: "my-team-url-slug", + }); + + for await (const event of result) { + // Handle the event + console.log(event); + } +} + +run(); + +``` + +[jsonl-format]: https://jsonlines.org/ +[x-ndjson]: https://github.com/ndjson/ndjson-spec +[async-generator]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncGenerator + + ## File uploads diff --git a/RELEASES.md b/RELEASES.md index c4942d89..f9e1a7a5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -918,4 +918,14 @@ Based on: ### Generated - [typescript v1.18.10] . ### Releases -- [NPM v1.18.10] https://www.npmjs.com/package/@vercel/sdk/v/1.18.10 - . \ No newline at end of file +- [NPM v1.18.10] https://www.npmjs.com/package/@vercel/sdk/v/1.18.10 - . + +## 2026-02-04 00:09:38 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.701.0 (2.803.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v1.19.0] . +### Releases +- [NPM v1.19.0] https://www.npmjs.com/package/@vercel/sdk/v/1.19.0 - . \ No newline at end of file diff --git a/docs/models/authuserdefault.md b/docs/models/authuserdefault.md index 224a1f23..7f03b414 100644 --- a/docs/models/authuserdefault.md +++ b/docs/models/authuserdefault.md @@ -7,11 +7,11 @@ An object containing infomation related to the amount of platform resources may ```typescript import { AuthUserDefault } from "@vercel/sdk/models/authuser.js"; -let value: AuthUserDefault = "enhanced"; +let value: AuthUserDefault = "standard"; ``` ## Values ```typescript -"enhanced" | "turbo" | "standard" +"standard" | "enhanced" | "turbo" ``` \ No newline at end of file diff --git a/docs/models/billingcurrency.md b/docs/models/billingcurrency.md new file mode 100644 index 00000000..67f54583 --- /dev/null +++ b/docs/models/billingcurrency.md @@ -0,0 +1,17 @@ +# BillingCurrency + +Currency used for billing (ISO 4217) + +## Example Usage + +```typescript +import { BillingCurrency } from "@vercel/sdk/models/listbillingchargesop.js"; + +let value: BillingCurrency = "USD"; +``` + +## Values + +```typescript +"USD" +``` \ No newline at end of file diff --git a/docs/models/canceldeploymentdefault.md b/docs/models/canceldeploymentdefault.md index cf19f814..7ee57d5e 100644 --- a/docs/models/canceldeploymentdefault.md +++ b/docs/models/canceldeploymentdefault.md @@ -7,11 +7,11 @@ Build resource configuration snapshot for this deployment. ```typescript import { CancelDeploymentDefault } from "@vercel/sdk/models/canceldeploymentop.js"; -let value: CancelDeploymentDefault = "enhanced"; +let value: CancelDeploymentDefault = "standard"; ``` ## Values ```typescript -"enhanced" | "turbo" | "standard" +"standard" | "enhanced" | "turbo" ``` \ No newline at end of file diff --git a/docs/models/canceldeploymentpurchasetype.md b/docs/models/canceldeploymentpurchasetype.md index 4ad3bec7..3d78b27b 100644 --- a/docs/models/canceldeploymentpurchasetype.md +++ b/docs/models/canceldeploymentpurchasetype.md @@ -13,5 +13,5 @@ let value: CancelDeploymentPurchaseType = "enhanced"; ## Values ```typescript -"enhanced" | "turbo" +"standard" | "enhanced" | "turbo" ``` \ No newline at end of file diff --git a/docs/models/chargecategory.md b/docs/models/chargecategory.md new file mode 100644 index 00000000..99bca82e --- /dev/null +++ b/docs/models/chargecategory.md @@ -0,0 +1,17 @@ +# ChargeCategory + +Classification of the charge + +## Example Usage + +```typescript +import { ChargeCategory } from "@vercel/sdk/models/listbillingchargesop.js"; + +let value: ChargeCategory = "Tax"; +``` + +## Values + +```typescript +"Adjustment" | "Credit" | "Purchase" | "Tax" | "Usage" +``` \ No newline at end of file diff --git a/docs/models/contractcommitmentcategory.md b/docs/models/contractcommitmentcategory.md new file mode 100644 index 00000000..a0e5bc7f --- /dev/null +++ b/docs/models/contractcommitmentcategory.md @@ -0,0 +1,17 @@ +# ContractCommitmentCategory + +Highest-level classification of the contract commitment. 'Spend' for Pro ($20/month), 'Usage' for Enterprise (MIU allocation). + +## Example Usage + +```typescript +import { ContractCommitmentCategory } from "@vercel/sdk/models/listcontractcommitmentsop.js"; + +let value: ContractCommitmentCategory = "Spend"; +``` + +## Values + +```typescript +"Usage" | "Spend" +``` \ No newline at end of file diff --git a/docs/models/createdeploymentdefault.md b/docs/models/createdeploymentdefault.md index 94a415e3..9a0d62db 100644 --- a/docs/models/createdeploymentdefault.md +++ b/docs/models/createdeploymentdefault.md @@ -7,11 +7,11 @@ Build resource configuration snapshot for this deployment. ```typescript import { CreateDeploymentDefault } from "@vercel/sdk/models/createdeploymentop.js"; -let value: CreateDeploymentDefault = "standard"; +let value: CreateDeploymentDefault = "turbo"; ``` ## Values ```typescript -"enhanced" | "turbo" | "standard" +"standard" | "enhanced" | "turbo" ``` \ No newline at end of file diff --git a/docs/models/createdeploymentpurchasetype.md b/docs/models/createdeploymentpurchasetype.md index 23649db7..509fca1f 100644 --- a/docs/models/createdeploymentpurchasetype.md +++ b/docs/models/createdeploymentpurchasetype.md @@ -7,11 +7,11 @@ Build resource configuration snapshot for this deployment. ```typescript import { CreateDeploymentPurchaseType } from "@vercel/sdk/models/createdeploymentop.js"; -let value: CreateDeploymentPurchaseType = "enhanced"; +let value: CreateDeploymentPurchaseType = "standard"; ``` ## Values ```typescript -"enhanced" | "turbo" +"standard" | "enhanced" | "turbo" ``` \ No newline at end of file diff --git a/docs/models/listbillingchargesresponsebody.md b/docs/models/listbillingchargesresponsebody.md new file mode 100644 index 00000000..e0ddf8e6 --- /dev/null +++ b/docs/models/listbillingchargesresponsebody.md @@ -0,0 +1,53 @@ +# ListBillingChargesResponseBody + +Extension of the base schema for Focus charges. Includes pricing information for all customers. + +## Example Usage + +```typescript +import { ListBillingChargesResponseBody } from "@vercel/sdk/models/listbillingchargesop.js"; + +let value: ListBillingChargesResponseBody = { + billedCost: 5918.14, + billingCurrency: "USD", + chargeCategory: "Adjustment", + chargePeriodStart: "", + chargePeriodEnd: "", + consumedQuantity: 9008.03, + consumedUnit: "", + effectiveCost: 8630.21, + serviceName: "", + serviceProviderName: "", + tags: { + "key": "", + "key1": "", + }, + pricingCategory: "Other", + pricingCurrency: "USD", + pricingQuantity: 7629.01, + pricingUnit: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | +| `billedCost` | *number* | :heavy_check_mark: | Charge amount serving as the basis for invoicing | +| `billingCurrency` | [models.BillingCurrency](../models/billingcurrency.md) | :heavy_check_mark: | Currency used for billing (ISO 4217) | +| `chargeCategory` | [models.ChargeCategory](../models/chargecategory.md) | :heavy_check_mark: | Classification of the charge | +| `chargePeriodStart` | *string* | :heavy_check_mark: | Inclusive start of the charge period (ISO 8601 UTC) | +| `chargePeriodEnd` | *string* | :heavy_check_mark: | Exclusive end of the charge period (ISO 8601 UTC) - Required in v1.3 | +| `consumedQuantity` | *number* | :heavy_check_mark: | Volume of resource consumed | +| `consumedUnit` | *string* | :heavy_check_mark: | Unit of measurement for consumed quantity | +| `effectiveCost` | *number* | :heavy_check_mark: | Amortized cost representation including discounts, pre-commitment credit purchase amount, etc. | +| `regionId` | *string* | :heavy_minus_sign: | Provider-assigned region identifier | +| `regionName` | *string* | :heavy_minus_sign: | Display name for the region | +| `serviceName` | *string* | :heavy_check_mark: | Display name for the service/product | +| `serviceCategory` | [models.ServiceCategory](../models/servicecategory.md) | :heavy_minus_sign: | High-level category of the service | +| `serviceProviderName` | *string* | :heavy_check_mark: | Entity making the resource/service available for purchase (v1.3) | +| `tags` | Record | :heavy_check_mark: | Custom key-value metadata (ProjectId, ProjectName) | +| `pricingCategory` | [models.PricingCategory](../models/pricingcategory.md) | :heavy_check_mark: | Pricing model used for the charge. | +| `pricingCurrency` | [models.PricingCurrency](../models/pricingcurrency.md) | :heavy_check_mark: | N/A | +| `pricingQuantity` | *number* | :heavy_check_mark: | N/A | +| `pricingUnit` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/listcontractcommitmentsresponsebody.md b/docs/models/listcontractcommitmentsresponsebody.md new file mode 100644 index 00000000..0e693392 --- /dev/null +++ b/docs/models/listcontractcommitmentsresponsebody.md @@ -0,0 +1,40 @@ +# ListContractCommitmentsResponseBody + +Contract commitment information describing terms within a contract. New in FOCUS v1.3 - tracks commitment terms separate from cost/usage rows. For Vercel: - Pro: $20 monthly spend commitment - Enterprise: MIU allocation per period (usage commitment) + +## Example Usage + +```typescript +import { ListContractCommitmentsResponseBody } from "@vercel/sdk/models/listcontractcommitmentsop.js"; + +let value: ListContractCommitmentsResponseBody = { + contractCommitmentCategory: "Spend", + contractCommitmentId: "", + contractCommitmentPeriodStart: "", + contractCommitmentPeriodEnd: "", + contractCommitmentType: "", + contractCommitmentUnit: "", + contractId: "", + contractPeriodStart: "", + contractPeriodEnd: "", + billingCurrency: "", +}; +``` + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `contractCommitmentCategory` | [models.ContractCommitmentCategory](../models/contractcommitmentcategory.md) | :heavy_check_mark: | Highest-level classification of the contract commitment. 'Spend' for Pro ($20/month), 'Usage' for Enterprise (MIU allocation). | +| `contractCommitmentCost` | *number* | :heavy_minus_sign: | Monetary value of the contract commitment (in BillingCurrency). Required when ContractCommitmentCategory is 'Spend'. For Pro: 20 (USD) | +| `contractCommitmentDescription` | *string* | :heavy_minus_sign: | Self-contained summary of the contract commitment's terms | +| `contractCommitmentId` | *string* | :heavy_check_mark: | Unique identifier for a single contract term within a contract. Maps to specific commitment period or allocation ID. | +| `contractCommitmentPeriodStart` | *string* | :heavy_check_mark: | Inclusive start of the commitment term period (ISO 8601 UTC) | +| `contractCommitmentPeriodEnd` | *string* | :heavy_check_mark: | Exclusive end of the commitment term period (ISO 8601 UTC) | +| `contractCommitmentQuantity` | *number* | :heavy_minus_sign: | Amount associated with the commitment (in ContractCommitmentUnit). Required when ContractCommitmentCategory is 'Usage'. For Enterprise: MIU allocation amount. | +| `contractCommitmentType` | *string* | :heavy_check_mark: | Service-provider-assigned name identifying the commitment type. 'Pro' or 'Enterprise' for Vercel. | +| `contractCommitmentUnit` | *string* | :heavy_check_mark: | Measurement unit for ContractCommitmentQuantity. 'MIUs' for Enterprise, 'USD' for Pro spend commitments. | +| `contractId` | *string* | :heavy_check_mark: | Service-provider-assigned identifier for a contract. Maps to Orb Subscription ID for Vercel. | +| `contractPeriodStart` | *string* | :heavy_check_mark: | Inclusive start of the overall contract period (ISO 8601 UTC) | +| `contractPeriodEnd` | *string* | :heavy_check_mark: | Exclusive end of the overall contract period (ISO 8601 UTC) | +| `billingCurrency` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payloaddefault.md b/docs/models/payloaddefault.md index 093a7409..fa6e4423 100644 --- a/docs/models/payloaddefault.md +++ b/docs/models/payloaddefault.md @@ -5,11 +5,11 @@ ```typescript import { PayloadDefault } from "@vercel/sdk/models/userevent.js"; -let value: PayloadDefault = "turbo"; +let value: PayloadDefault = "enhanced"; ``` ## Values ```typescript -"enhanced" | "turbo" | "standard" +"standard" | "enhanced" | "turbo" ``` \ No newline at end of file diff --git a/docs/models/payloadpurchasetype.md b/docs/models/payloadpurchasetype.md index ea98a6c5..535d9deb 100644 --- a/docs/models/payloadpurchasetype.md +++ b/docs/models/payloadpurchasetype.md @@ -5,11 +5,11 @@ ```typescript import { PayloadPurchaseType } from "@vercel/sdk/models/userevent.js"; -let value: PayloadPurchaseType = "enhanced"; +let value: PayloadPurchaseType = "standard"; ``` ## Values ```typescript -"enhanced" | "turbo" +"standard" | "enhanced" | "turbo" ``` \ No newline at end of file diff --git a/docs/models/pricingcategory.md b/docs/models/pricingcategory.md new file mode 100644 index 00000000..80bf84d7 --- /dev/null +++ b/docs/models/pricingcategory.md @@ -0,0 +1,17 @@ +# PricingCategory + +Pricing model used for the charge. + +## Example Usage + +```typescript +import { PricingCategory } from "@vercel/sdk/models/listbillingchargesop.js"; + +let value: PricingCategory = "Dynamic"; +``` + +## Values + +```typescript +"Other" | "Standard" | "Dynamic" | "Committed" +``` \ No newline at end of file diff --git a/docs/models/pricingcurrency.md b/docs/models/pricingcurrency.md new file mode 100644 index 00000000..8cbf7146 --- /dev/null +++ b/docs/models/pricingcurrency.md @@ -0,0 +1,15 @@ +# PricingCurrency + +## Example Usage + +```typescript +import { PricingCurrency } from "@vercel/sdk/models/listbillingchargesop.js"; + +let value: PricingCurrency = "USD"; +``` + +## Values + +```typescript +"USD" +``` \ No newline at end of file diff --git a/docs/models/purchasetype.md b/docs/models/purchasetype.md index 1d82251e..6cfcdb30 100644 --- a/docs/models/purchasetype.md +++ b/docs/models/purchasetype.md @@ -7,11 +7,11 @@ An object containing infomation related to the amount of platform resources may ```typescript import { PurchaseType } from "@vercel/sdk/models/authuser.js"; -let value: PurchaseType = "turbo"; +let value: PurchaseType = "enhanced"; ``` ## Values ```typescript -"enhanced" | "turbo" +"standard" | "enhanced" | "turbo" ``` \ No newline at end of file diff --git a/docs/models/responsebodydefault.md b/docs/models/responsebodydefault.md index 8841e45d..e9addf9e 100644 --- a/docs/models/responsebodydefault.md +++ b/docs/models/responsebodydefault.md @@ -7,11 +7,11 @@ Build resource configuration snapshot for this deployment. ```typescript import { ResponseBodyDefault } from "@vercel/sdk/models/getdeploymentop.js"; -let value: ResponseBodyDefault = "standard"; +let value: ResponseBodyDefault = "turbo"; ``` ## Values ```typescript -"enhanced" | "turbo" | "standard" +"standard" | "enhanced" | "turbo" ``` \ No newline at end of file diff --git a/docs/models/responsebodypurchasetype.md b/docs/models/responsebodypurchasetype.md index 55b5ac8b..895eaecc 100644 --- a/docs/models/responsebodypurchasetype.md +++ b/docs/models/responsebodypurchasetype.md @@ -7,11 +7,11 @@ Build resource configuration snapshot for this deployment. ```typescript import { ResponseBodyPurchaseType } from "@vercel/sdk/models/getdeploymentop.js"; -let value: ResponseBodyPurchaseType = "enhanced"; +let value: ResponseBodyPurchaseType = "standard"; ``` ## Values ```typescript -"enhanced" | "turbo" +"standard" | "enhanced" | "turbo" ``` \ No newline at end of file diff --git a/docs/models/servicecategory.md b/docs/models/servicecategory.md new file mode 100644 index 00000000..4e43815a --- /dev/null +++ b/docs/models/servicecategory.md @@ -0,0 +1,17 @@ +# ServiceCategory + +High-level category of the service + +## Example Usage + +```typescript +import { ServiceCategory } from "@vercel/sdk/models/listbillingchargesop.js"; + +let value: ServiceCategory = "Media"; +``` + +## Values + +```typescript +"AI and Machine Learning" | "Analytics" | "Business Applications" | "Compute" | "Databases" | "Developer Tools" | "Multicloud" | "Identity" | "Integration" | "Internet of Things" | "Management and Governance" | "Media" | "Migration" | "Mobile" | "Networking" | "Security" | "Storage" | "Web" | "Other" +``` \ No newline at end of file diff --git a/docs/sdks/billing/README.md b/docs/sdks/billing/README.md index ca1641c2..e6fd8993 100644 --- a/docs/sdks/billing/README.md +++ b/docs/sdks/billing/README.md @@ -22,14 +22,17 @@ const vercel = new Vercel({ }); async function run() { - await vercel.billing.listBillingCharges({ + const result = await vercel.billing.listBillingCharges({ from: "2025-01-01T00:00:00.000Z", to: "2025-01-31T00:00:00.000Z", teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", }); - + for await (const event of result) { + // Handle the event + console.log(event); + } } run(); @@ -58,7 +61,10 @@ async function run() { }); if (res.ok) { const { value: result } = res; - + for await (const event of result) { + // Handle the event + console.log(event); + } } else { console.log("billingListBillingCharges failed:", res.error); } @@ -78,7 +84,7 @@ run(); ### Response -**Promise\** +**Promise\<[JsonLStream](../../models/.md)\>** ### Errors @@ -101,12 +107,15 @@ const vercel = new Vercel({ }); async function run() { - await vercel.billing.listContractCommitments({ + const result = await vercel.billing.listContractCommitments({ teamId: "team_1a2b3c4d5e6f7g8h9i0j1k2l", slug: "my-team-url-slug", }); - + for await (const event of result) { + // Handle the event + console.log(event); + } } run(); @@ -133,7 +142,10 @@ async function run() { }); if (res.ok) { const { value: result } = res; - + for await (const event of result) { + // Handle the event + console.log(event); + } } else { console.log("billingListContractCommitments failed:", res.error); } @@ -153,7 +165,7 @@ run(); ### Response -**Promise\** +**Promise\<[JsonLStream](../../models/.md)\>** ### Errors diff --git a/examples/package-lock.json b/examples/package-lock.json index 62251732..71192f29 100644 --- a/examples/package-lock.json +++ b/examples/package-lock.json @@ -18,7 +18,7 @@ }, "..": { "name": "@vercel/sdk", - "version": "1.18.10", + "version": "1.19.0", "dependencies": { "@modelcontextprotocol/sdk": "^1.25.2", "zod": "^3.25.0 || ^4.0.0" diff --git a/jsr.json b/jsr.json index 2b6a0371..6e87d62e 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@vercel/sdk", - "version": "1.18.10", + "version": "1.19.0", "exports": { ".": "./src/index.ts", "./models": "./src/models/index.ts", diff --git a/package-lock.json b/package-lock.json index fc315705..c56c115f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vercel/sdk", - "version": "1.18.10", + "version": "1.19.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@vercel/sdk", - "version": "1.18.10", + "version": "1.19.0", "dependencies": { "@modelcontextprotocol/sdk": "^1.25.2", "zod": "^3.25.0 || ^4.0.0" diff --git a/package.json b/package.json index 8bc0be25..41f87989 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vercel/sdk", - "version": "1.18.10", + "version": "1.19.0", "author": "Speakeasy", "type": "module", "bin": { diff --git a/src/__tests__/domains.test.ts b/src/__tests__/domains.test.ts index c2eb8965..22c177da 100644 --- a/src/__tests__/domains.test.ts +++ b/src/__tests__/domains.test.ts @@ -46,21 +46,21 @@ test("Domains Get Domain Config", async () => { }); expect(result).toBeDefined(); expect(result).toEqual({ - configuredBy: "http", - acceptedChallenges: [], + configuredBy: "A", + acceptedChallenges: [ + "dns-01", + ], recommendedIPv4: [ { - rank: 4375.87, + rank: 9636.63, value: [ "", - "", - "", ], }, ], recommendedCNAME: [ { - rank: 3834.41, + rank: 5288.95, value: "", }, ], diff --git a/src/__tests__/edgeconfig.test.ts b/src/__tests__/edgeconfig.test.ts index c0484841..33ef3272 100644 --- a/src/__tests__/edgeconfig.test.ts +++ b/src/__tests__/edgeconfig.test.ts @@ -51,10 +51,10 @@ test("Edge Config Create Edge Config", async () => { expect(result).toBeDefined(); expect(result).toEqual({ id: "", - createdAt: 5488.14, + createdAt: 827.44, ownerId: "", slug: "", - updatedAt: 7151.9, + updatedAt: 8692.49, digest: "", sizeInBytes: 9972.06, itemCount: 9113.46, @@ -78,10 +78,10 @@ test("Edge Config Get Edge Config", async () => { expect(result).toBeDefined(); expect(result).toEqual({ id: "", - createdAt: 6027.63, + createdAt: 9685.26, ownerId: "", slug: "", - updatedAt: 5448.83, + updatedAt: 3884.97, digest: "", sizeInBytes: 3866.06, itemCount: 4529.9, @@ -108,10 +108,10 @@ test("Edge Config Update Edge Config", async () => { expect(result).toBeDefined(); expect(result).toEqual({ id: "", - createdAt: 4236.55, + createdAt: 4064.3, ownerId: "", slug: "", - updatedAt: 6458.94, + updatedAt: 1351.77, digest: "", sizeInBytes: 7731.03, itemCount: 3563.67, diff --git a/src/__tests__/logdrains.test.ts b/src/__tests__/logdrains.test.ts index a3613a55..1f564503 100644 --- a/src/__tests__/logdrains.test.ts +++ b/src/__tests__/logdrains.test.ts @@ -66,7 +66,9 @@ test("Logdrains Get Integration Log Drains", async () => { branch: "feature/*", samplingRate: 0.5, source: { - kind: "self-served", + kind: "integration", + integrationId: "", + integrationConfigurationId: "", }, }, { @@ -98,7 +100,9 @@ test("Logdrains Get Integration Log Drains", async () => { branch: "feature/*", samplingRate: 0.5, source: { - kind: "self-served", + kind: "integration", + integrationId: "", + integrationConfigurationId: "", }, }, ]); diff --git a/src/__tests__/marketplace.test.ts b/src/__tests__/marketplace.test.ts index bd3cacd4..491100f9 100644 --- a/src/__tests__/marketplace.test.ts +++ b/src/__tests__/marketplace.test.ts @@ -304,10 +304,10 @@ test("Marketplace Exchange Sso Token", async () => { }); const result = await vercel.marketplace.exchangeSsoToken({ - code: "", + refreshToken: "", clientId: "", clientSecret: "", - grantType: "authorization_code", + grantType: "refresh_token", }); expect(result).toBeDefined(); expect(result).toEqual({ diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1edgeconfigedgeconfigid.go b/src/__tests__/mockserver/internal/handler/pathgetv1edgeconfigedgeconfigid.go index e525fe85..6467f732 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv1edgeconfigedgeconfigid.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv1edgeconfigedgeconfigid.go @@ -47,10 +47,10 @@ func testGetEdgeConfigGetEdgeConfig0(w http.ResponseWriter, req *http.Request) { } var respBody *operations.GetEdgeConfigResponseBody = &operations.GetEdgeConfigResponseBody{ ID: "", - CreatedAt: 8700.13, + CreatedAt: 9446.69, OwnerID: "", Slug: "", - UpdatedAt: 9786.19, + UpdatedAt: 5218.48, Digest: "", SizeInBytes: 3866.06, ItemCount: 4529.9, diff --git a/src/__tests__/mockserver/internal/handler/pathgetv1securityfirewallbypass.go b/src/__tests__/mockserver/internal/handler/pathgetv1securityfirewallbypass.go index 5099049e..5e5ca16c 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv1securityfirewallbypass.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv1securityfirewallbypass.go @@ -50,10 +50,10 @@ func testGetBypassIPGetBypassIp0(w http.ResponseWriter, req *http.Request) { operations.GetBypassIPResult{ OwnerID: "", ID: "", - Domain: "leading-scaffold.com", - IP: "3eb9:5bac:0ddd:ef79:f1ee:4268:c9f2:43e5", - CreatedAt: "1718859176066", - UpdatedAt: "1735624318126", + Domain: "second-newsletter.name", + IP: "165.112.228.246", + CreatedAt: "1716245811354", + UpdatedAt: "1735671604252", UpdatedAtHour: "", }, }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetv2integrationslogdrains.go b/src/__tests__/mockserver/internal/handler/pathgetv2integrationslogdrains.go index de930a9a..2f132f25 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv2integrationslogdrains.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv2integrationslogdrains.go @@ -75,9 +75,11 @@ func testGetIntegrationLogDrainsGetIntegrationLogDrains0(w http.ResponseWriter, }, Branch: types.String("feature/*"), SamplingRate: types.Float64(0.5), - Source: operations.CreateGetIntegrationLogDrainsSourceUnionSelfServed( - operations.GetIntegrationLogDrainsSourceSelfServed{ - Kind: operations.GetIntegrationLogDrainsKindSelfServedSelfServed, + Source: operations.CreateGetIntegrationLogDrainsSourceUnionIntegration( + operations.GetIntegrationLogDrainsSourceIntegration{ + Kind: operations.GetIntegrationLogDrainsKindIntegrationIntegration, + IntegrationID: "", + IntegrationConfigurationID: "", }, ), }, @@ -109,11 +111,9 @@ func testGetIntegrationLogDrainsGetIntegrationLogDrains0(w http.ResponseWriter, }, Branch: types.String("feature/*"), SamplingRate: types.Float64(0.5), - Source: operations.CreateGetIntegrationLogDrainsSourceUnionIntegration( - operations.GetIntegrationLogDrainsSourceIntegration{ - Kind: operations.GetIntegrationLogDrainsKindIntegrationIntegration, - IntegrationID: "", - IntegrationConfigurationID: "", + Source: operations.CreateGetIntegrationLogDrainsSourceUnionSelfServed( + operations.GetIntegrationLogDrainsSourceSelfServed{ + Kind: operations.GetIntegrationLogDrainsKindSelfServedSelfServed, }, ), }, diff --git a/src/__tests__/mockserver/internal/handler/pathgetv6domainsdomainconfig.go b/src/__tests__/mockserver/internal/handler/pathgetv6domainsdomainconfig.go index 170af66c..381952b3 100644 --- a/src/__tests__/mockserver/internal/handler/pathgetv6domainsdomainconfig.go +++ b/src/__tests__/mockserver/internal/handler/pathgetv6domainsdomainconfig.go @@ -46,16 +46,11 @@ func testGetDomainConfigGetDomainConfig0(w http.ResponseWriter, req *http.Reques return } var respBody *operations.GetDomainConfigResponseBody = &operations.GetDomainConfigResponseBody{ - ConfiguredBy: operations.GetDomainConfigConfiguredByDns01.ToPointer(), + ConfiguredBy: operations.GetDomainConfigConfiguredByHTTP.ToPointer(), AcceptedChallenges: []operations.AcceptedChallenge{ operations.AcceptedChallengeHttp01, }, - RecommendedIPv4: []operations.RecommendedIPv4{ - operations.RecommendedIPv4{ - Rank: 710.36, - Value: []string{}, - }, - }, + RecommendedIPv4: []operations.RecommendedIPv4{}, RecommendedCNAME: []operations.RecommendedCNAME{}, Misconfigured: false, } diff --git a/src/__tests__/mockserver/internal/handler/pathpostv1accessgroups.go b/src/__tests__/mockserver/internal/handler/pathpostv1accessgroups.go index ea283c4f..2595e7d3 100644 --- a/src/__tests__/mockserver/internal/handler/pathpostv1accessgroups.go +++ b/src/__tests__/mockserver/internal/handler/pathpostv1accessgroups.go @@ -51,9 +51,7 @@ func testCreateAccessGroupCreateAccessGroup0(w http.ResponseWriter, req *http.Re return } var respBody *operations.CreateAccessGroupResponseBody = &operations.CreateAccessGroupResponseBody{ - Entitlements: []operations.CreateAccessGroupEntitlement{ - operations.CreateAccessGroupEntitlementV0, - }, + Entitlements: []operations.CreateAccessGroupEntitlement{}, MembersCount: 446.92, ProjectsCount: 5113.22, Name: "my-access-group", diff --git a/src/__tests__/mockserver/internal/handler/pathpostv2integrationslogdrains.go b/src/__tests__/mockserver/internal/handler/pathpostv2integrationslogdrains.go index cf65d199..cfd2a5f5 100644 --- a/src/__tests__/mockserver/internal/handler/pathpostv2integrationslogdrains.go +++ b/src/__tests__/mockserver/internal/handler/pathpostv2integrationslogdrains.go @@ -77,11 +77,9 @@ func testCreateLogDrainCreateLogDrain0(w http.ResponseWriter, req *http.Request) }, Branch: types.String("feature/*"), SamplingRate: types.Float64(0.5), - Source: operations.CreateCreateLogDrainSourceUnionIntegration( - operations.CreateLogDrainSourceIntegration{ - Kind: operations.CreateLogDrainKindIntegrationIntegration, - IntegrationID: "", - IntegrationConfigurationID: "", + Source: operations.CreateCreateLogDrainSourceUnionSelfServed( + operations.CreateLogDrainSourceSelfServed{ + Kind: operations.CreateLogDrainKindSelfServedSelfServed, }, ), } diff --git a/src/__tests__/mockserver/internal/handler/pathputv1edgeconfigedgeconfigid.go b/src/__tests__/mockserver/internal/handler/pathputv1edgeconfigedgeconfigid.go index a652b4b6..079c72be 100644 --- a/src/__tests__/mockserver/internal/handler/pathputv1edgeconfigedgeconfigid.go +++ b/src/__tests__/mockserver/internal/handler/pathputv1edgeconfigedgeconfigid.go @@ -52,10 +52,10 @@ func testUpdateEdgeConfigUpdateEdgeConfig0(w http.ResponseWriter, req *http.Requ } var respBody *operations.UpdateEdgeConfigResponseBody = &operations.UpdateEdgeConfigResponseBody{ ID: "", - CreatedAt: 8326.2, + CreatedAt: 9255.97, OwnerID: "", Slug: "", - UpdatedAt: 7781.57, + UpdatedAt: 710.36, Digest: "", SizeInBytes: 7731.03, ItemCount: 3563.67, diff --git a/src/__tests__/mockserver/internal/handler/pathputv1securityfirewallconfig.go b/src/__tests__/mockserver/internal/handler/pathputv1securityfirewallconfig.go index 34ea8a33..be76e0b6 100644 --- a/src/__tests__/mockserver/internal/handler/pathputv1securityfirewallconfig.go +++ b/src/__tests__/mockserver/internal/handler/pathputv1securityfirewallconfig.go @@ -8,6 +8,7 @@ import ( "mockserver/internal/handler/assert" "mockserver/internal/logging" "mockserver/internal/sdk/models/operations" + "mockserver/internal/sdk/types" "mockserver/internal/sdk/utils" "mockserver/internal/tracking" "net/http" @@ -109,48 +110,40 @@ func testPutFirewallConfigPutFirewallConfig0(w http.ResponseWriter, req *http.Re operations.RuleActive2{ ID: "", Name: "", - Active: false, + Active: true, ConditionGroup: []operations.ActiveConditionGroup2{ operations.ActiveConditionGroup2{ Conditions: []operations.ActiveCondition2{ operations.ActiveCondition2{ - Type: operations.ActiveType2Region, - Op: operations.ActiveOp2Lt, + Type: operations.ActiveType2UserAgent, + Op: operations.ActiveOp2Ninc, }, }, }, }, - Action: operations.RuleActiveAction2{}, - Valid: true, - ValidationErrors: []string{ - "", - "", - "", - }, + Action: operations.RuleActiveAction2{}, + Valid: true, + ValidationErrors: []string{}, }, ), - operations.CreateActiveRuleUnionRuleActive2( - operations.RuleActive2{ + operations.CreateActiveRuleUnionRuleActive1( + operations.RuleActive1{ ID: "", Name: "", Active: false, - ConditionGroup: []operations.ActiveConditionGroup2{ - operations.ActiveConditionGroup2{ - Conditions: []operations.ActiveCondition2{ - operations.ActiveCondition2{ - Type: operations.ActiveType2Region, - Op: operations.ActiveOp2Lt, + ConditionGroup: []operations.ActiveConditionGroup1{ + operations.ActiveConditionGroup1{ + Conditions: []operations.ActiveCondition1{ + operations.ActiveCondition1{ + Type: operations.ActiveType1BotCategory, + Op: operations.ActiveOp1Nex, }, }, }, }, - Action: operations.RuleActiveAction2{}, - Valid: true, - ValidationErrors: []string{ - "", - "", - "", - }, + Action: operations.RuleActiveAction1{}, + Valid: true, + ValidationErrors: types.String(""), }, ), }, diff --git a/src/__tests__/mockserver/internal/sdk/models/components/authuser.go b/src/__tests__/mockserver/internal/sdk/models/components/authuser.go index 78e80c4d..5f09f5fb 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/authuser.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/authuser.go @@ -317,9 +317,9 @@ func (o *AuthUserBuildQueue) GetConfiguration() *AuthUserConfiguration { type AuthUserDefault string const ( + AuthUserDefaultStandard AuthUserDefault = "standard" AuthUserDefaultEnhanced AuthUserDefault = "enhanced" AuthUserDefaultTurbo AuthUserDefault = "turbo" - AuthUserDefaultStandard AuthUserDefault = "standard" ) func (e AuthUserDefault) ToPointer() *AuthUserDefault { @@ -331,11 +331,11 @@ func (e *AuthUserDefault) UnmarshalJSON(data []byte) error { return err } switch v { + case "standard": + fallthrough case "enhanced": fallthrough case "turbo": - fallthrough - case "standard": *e = AuthUserDefault(v) return nil default: @@ -347,6 +347,7 @@ func (e *AuthUserDefault) UnmarshalJSON(data []byte) error { type AuthUserPurchaseType string const ( + AuthUserPurchaseTypeStandard AuthUserPurchaseType = "standard" AuthUserPurchaseTypeEnhanced AuthUserPurchaseType = "enhanced" AuthUserPurchaseTypeTurbo AuthUserPurchaseType = "turbo" ) @@ -360,6 +361,8 @@ func (e *AuthUserPurchaseType) UnmarshalJSON(data []byte) error { return err } switch v { + case "standard": + fallthrough case "enhanced": fallthrough case "turbo": diff --git a/src/__tests__/mockserver/internal/sdk/models/components/userevent.go b/src/__tests__/mockserver/internal/sdk/models/components/userevent.go index cbf72ee2..c8686806 100644 --- a/src/__tests__/mockserver/internal/sdk/models/components/userevent.go +++ b/src/__tests__/mockserver/internal/sdk/models/components/userevent.go @@ -16768,9 +16768,9 @@ func (o *UserEventBuildQueue) GetConfiguration() *ConfigurationUser { type UserEventDefault string const ( + UserEventDefaultStandard UserEventDefault = "standard" UserEventDefaultEnhanced UserEventDefault = "enhanced" UserEventDefaultTurbo UserEventDefault = "turbo" - UserEventDefaultStandard UserEventDefault = "standard" ) func (e UserEventDefault) ToPointer() *UserEventDefault { @@ -16782,11 +16782,11 @@ func (e *UserEventDefault) UnmarshalJSON(data []byte) error { return err } switch v { + case "standard": + fallthrough case "enhanced": fallthrough case "turbo": - fallthrough - case "standard": *e = UserEventDefault(v) return nil default: @@ -16797,6 +16797,7 @@ func (e *UserEventDefault) UnmarshalJSON(data []byte) error { type UserEventPurchaseType string const ( + UserEventPurchaseTypeStandard UserEventPurchaseType = "standard" UserEventPurchaseTypeEnhanced UserEventPurchaseType = "enhanced" UserEventPurchaseTypeTurbo UserEventPurchaseType = "turbo" ) @@ -16810,6 +16811,8 @@ func (e *UserEventPurchaseType) UnmarshalJSON(data []byte) error { return err } switch v { + case "standard": + fallthrough case "enhanced": fallthrough case "turbo": diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/canceldeployment.go b/src/__tests__/mockserver/internal/sdk/models/operations/canceldeployment.go index 53a0e849..451ad9f2 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/canceldeployment.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/canceldeployment.go @@ -7391,9 +7391,9 @@ func (o *CancelDeploymentBuildQueue) GetConfiguration() *CancelDeploymentConfigu type CancelDeploymentDefault string const ( + CancelDeploymentDefaultStandard CancelDeploymentDefault = "standard" CancelDeploymentDefaultEnhanced CancelDeploymentDefault = "enhanced" CancelDeploymentDefaultTurbo CancelDeploymentDefault = "turbo" - CancelDeploymentDefaultStandard CancelDeploymentDefault = "standard" ) func (e CancelDeploymentDefault) ToPointer() *CancelDeploymentDefault { @@ -7405,11 +7405,11 @@ func (e *CancelDeploymentDefault) UnmarshalJSON(data []byte) error { return err } switch v { + case "standard": + fallthrough case "enhanced": fallthrough case "turbo": - fallthrough - case "standard": *e = CancelDeploymentDefault(v) return nil default: @@ -7421,6 +7421,7 @@ func (e *CancelDeploymentDefault) UnmarshalJSON(data []byte) error { type CancelDeploymentPurchaseType string const ( + CancelDeploymentPurchaseTypeStandard CancelDeploymentPurchaseType = "standard" CancelDeploymentPurchaseTypeEnhanced CancelDeploymentPurchaseType = "enhanced" CancelDeploymentPurchaseTypeTurbo CancelDeploymentPurchaseType = "turbo" ) @@ -7434,6 +7435,8 @@ func (e *CancelDeploymentPurchaseType) UnmarshalJSON(data []byte) error { return err } switch v { + case "standard": + fallthrough case "enhanced": fallthrough case "turbo": diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/createdeployment.go b/src/__tests__/mockserver/internal/sdk/models/operations/createdeployment.go index aa1448c8..f6f3840b 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/createdeployment.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/createdeployment.go @@ -9090,9 +9090,9 @@ func (o *CreateDeploymentBuildQueue) GetConfiguration() *CreateDeploymentConfigu type CreateDeploymentDefault string const ( + CreateDeploymentDefaultStandard CreateDeploymentDefault = "standard" CreateDeploymentDefaultEnhanced CreateDeploymentDefault = "enhanced" CreateDeploymentDefaultTurbo CreateDeploymentDefault = "turbo" - CreateDeploymentDefaultStandard CreateDeploymentDefault = "standard" ) func (e CreateDeploymentDefault) ToPointer() *CreateDeploymentDefault { @@ -9104,11 +9104,11 @@ func (e *CreateDeploymentDefault) UnmarshalJSON(data []byte) error { return err } switch v { + case "standard": + fallthrough case "enhanced": fallthrough case "turbo": - fallthrough - case "standard": *e = CreateDeploymentDefault(v) return nil default: @@ -9120,6 +9120,7 @@ func (e *CreateDeploymentDefault) UnmarshalJSON(data []byte) error { type CreateDeploymentPurchaseType string const ( + CreateDeploymentPurchaseTypeStandard CreateDeploymentPurchaseType = "standard" CreateDeploymentPurchaseTypeEnhanced CreateDeploymentPurchaseType = "enhanced" CreateDeploymentPurchaseTypeTurbo CreateDeploymentPurchaseType = "turbo" ) @@ -9133,6 +9134,8 @@ func (e *CreateDeploymentPurchaseType) UnmarshalJSON(data []byte) error { return err } switch v { + case "standard": + fallthrough case "enhanced": fallthrough case "turbo": diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/getdeployment.go b/src/__tests__/mockserver/internal/sdk/models/operations/getdeployment.go index 2d253d55..6df53469 100644 --- a/src/__tests__/mockserver/internal/sdk/models/operations/getdeployment.go +++ b/src/__tests__/mockserver/internal/sdk/models/operations/getdeployment.go @@ -11235,9 +11235,9 @@ func (o *GetDeploymentBuildQueue) GetConfiguration() *GetDeploymentConfiguration type GetDeploymentDefault string const ( + GetDeploymentDefaultStandard GetDeploymentDefault = "standard" GetDeploymentDefaultEnhanced GetDeploymentDefault = "enhanced" GetDeploymentDefaultTurbo GetDeploymentDefault = "turbo" - GetDeploymentDefaultStandard GetDeploymentDefault = "standard" ) func (e GetDeploymentDefault) ToPointer() *GetDeploymentDefault { @@ -11249,11 +11249,11 @@ func (e *GetDeploymentDefault) UnmarshalJSON(data []byte) error { return err } switch v { + case "standard": + fallthrough case "enhanced": fallthrough case "turbo": - fallthrough - case "standard": *e = GetDeploymentDefault(v) return nil default: @@ -11265,6 +11265,7 @@ func (e *GetDeploymentDefault) UnmarshalJSON(data []byte) error { type GetDeploymentPurchaseType string const ( + GetDeploymentPurchaseTypeStandard GetDeploymentPurchaseType = "standard" GetDeploymentPurchaseTypeEnhanced GetDeploymentPurchaseType = "enhanced" GetDeploymentPurchaseTypeTurbo GetDeploymentPurchaseType = "turbo" ) @@ -11278,6 +11279,8 @@ func (e *GetDeploymentPurchaseType) UnmarshalJSON(data []byte) error { return err } switch v { + case "standard": + fallthrough case "enhanced": fallthrough case "turbo": diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listbillingcharges.go b/src/__tests__/mockserver/internal/sdk/models/operations/listbillingcharges.go deleted file mode 100644 index a2227a3e..00000000 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listbillingcharges.go +++ /dev/null @@ -1,57 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type ListBillingChargesRequest struct { - // Inclusive start of the date range as an ISO 8601 date-time string in UTC. - From string `queryParam:"style=form,explode=true,name=from"` - // Exclusive end of the date range as an ISO 8601 date-time string in UTC. - To string `queryParam:"style=form,explode=true,name=to"` - // The Team identifier to perform the request on behalf of. - TeamID *string `queryParam:"style=form,explode=true,name=teamId"` - // The Team slug to perform the request on behalf of. - Slug *string `queryParam:"style=form,explode=true,name=slug"` -} - -func (o *ListBillingChargesRequest) GetFrom() string { - if o == nil { - return "" - } - return o.From -} - -func (o *ListBillingChargesRequest) GetTo() string { - if o == nil { - return "" - } - return o.To -} - -func (o *ListBillingChargesRequest) GetTeamID() *string { - if o == nil { - return nil - } - return o.TeamID -} - -func (o *ListBillingChargesRequest) GetSlug() *string { - if o == nil { - return nil - } - return o.Slug -} - -type ListBillingChargesResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *ListBillingChargesResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/src/__tests__/mockserver/internal/sdk/models/operations/listcontractcommitments.go b/src/__tests__/mockserver/internal/sdk/models/operations/listcontractcommitments.go deleted file mode 100644 index 46af9450..00000000 --- a/src/__tests__/mockserver/internal/sdk/models/operations/listcontractcommitments.go +++ /dev/null @@ -1,39 +0,0 @@ -// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - -package operations - -import ( - "mockserver/internal/sdk/models/components" -) - -type ListContractCommitmentsRequest struct { - // The Team identifier to perform the request on behalf of. - TeamID *string `queryParam:"style=form,explode=true,name=teamId"` - // The Team slug to perform the request on behalf of. - Slug *string `queryParam:"style=form,explode=true,name=slug"` -} - -func (o *ListContractCommitmentsRequest) GetTeamID() *string { - if o == nil { - return nil - } - return o.TeamID -} - -func (o *ListContractCommitmentsRequest) GetSlug() *string { - if o == nil { - return nil - } - return o.Slug -} - -type ListContractCommitmentsResponse struct { - HTTPMeta components.HTTPMetadata `json:"-"` -} - -func (o *ListContractCommitmentsResponse) GetHTTPMeta() components.HTTPMetadata { - if o == nil { - return components.HTTPMetadata{} - } - return o.HTTPMeta -} diff --git a/src/__tests__/projects.test.ts b/src/__tests__/projects.test.ts index d35dffc8..ef88dfe1 100644 --- a/src/__tests__/projects.test.ts +++ b/src/__tests__/projects.test.ts @@ -35,49 +35,40 @@ test("Projects Get Projects", async () => { alias: [ { deployment: { - createdAt: 7917.25, + createdAt: 4236.55, createdIn: "", creator: { - email: "Tianna83@yahoo.com", + email: "Sim56@yahoo.com", uid: "", - username: "Sarah_Schmidt-Koepp", + username: "Antonetta77", }, deploymentHostname: "", name: "", id: "", plan: "", - private: true, + private: false, readyState: "", type: "", - url: "https://misguided-hawk.biz", + url: "https://leading-scaffold.com", userId: "", }, - domain: "sorrowful-import.name", - environment: "production", + domain: "productive-charm.org", + environment: "preview", target: "STAGING", }, ], - directoryListing: false, + directoryListing: true, id: "", name: "", - nodeVersion: "14.x", + nodeVersion: "12.x", resourceConfig: { functionDefaultRegions: [ "", - "", - "", ], }, rollingRelease: { target: "production", - stages: [ - { - targetPercentage: 25, - requireApproval: false, - duration: 600, - linearShift: false, - }, - ], + stages: null, canaryResponseHeader: false, }, serverlessFunctionRegion: "", @@ -85,7 +76,8 @@ test("Projects Get Projects", async () => { ], pagination: { count: 20, - next: "JBSWY3DPEHPK3PXP", + next: 1540095775951, + prev: 1540095775951, }, }); }); diff --git a/src/__tests__/security.test.ts b/src/__tests__/security.test.ts index d0d7267e..91a474fa 100644 --- a/src/__tests__/security.test.ts +++ b/src/__tests__/security.test.ts @@ -109,38 +109,24 @@ test("Security Put Firewall Config", async () => { active: true, conditionGroup: [ { - conditions: [ - { - type: "cookie", - op: "re", - }, - ], + conditions: [], }, ], action: {}, - valid: true, - validationErrors: [ - "", - ], + valid: false, + validationErrors: "", }, { id: "", name: "", active: true, - conditionGroup: [ - { - conditions: [ - { - type: "cookie", - op: "re", - }, - ], - }, - ], + conditionGroup: [], action: {}, valid: true, validationErrors: [ "", + "", + "", ], }, ], @@ -248,10 +234,21 @@ test("Security Get Firewall Config", async () => { id: "", name: "", active: false, - conditionGroup: [], + conditionGroup: [ + { + conditions: [ + { + type: "cookie", + op: "ninc", + }, + ], + }, + ], action: {}, valid: true, - validationErrors: "", + validationErrors: [ + "", + ], }, ], ips: [ @@ -299,17 +296,7 @@ test("Security Get Bypass Ip", async () => { }); expect(result).toBeDefined(); expect(result).toEqual({ - result: [ - { - ownerId: "", - id: "", - domain: "fair-insolence.biz", - ip: "28.168.35.50", - createdAt: "1715781716613", - updatedAt: "1735674132994", - updatedAtHour: "", - }, - ], + result: [], }); }); diff --git a/src/funcs/billingListBillingCharges.ts b/src/funcs/billingListBillingCharges.ts index d355aa6b..cbbbd64b 100644 --- a/src/funcs/billingListBillingCharges.ts +++ b/src/funcs/billingListBillingCharges.ts @@ -5,6 +5,7 @@ import * as z from "zod/v3"; import { VercelCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { JsonLStream } from "../lib/jsonl.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -21,6 +22,8 @@ import { import { ListBillingChargesRequest, ListBillingChargesRequest$outboundSchema, + ListBillingChargesResponseBody, + ListBillingChargesResponseBody$inboundSchema, } from "../models/listbillingchargesop.js"; import { ResponseValidationError } from "../models/responsevalidationerror.js"; import { SDKValidationError } from "../models/sdkvalidationerror.js"; @@ -40,7 +43,7 @@ export function billingListBillingCharges( options?: RequestOptions, ): APIPromise< Result< - void, + JsonLStream, | VercelError | ResponseValidationError | ConnectionError @@ -65,7 +68,7 @@ async function $do( ): Promise< [ Result< - void, + JsonLStream, | VercelError | ResponseValidationError | ConnectionError @@ -99,7 +102,7 @@ async function $do( }); const headers = new Headers(compactMap({ - Accept: "*/*", + Accept: "application/jsonl", })); const secConfig = await extractSecurity(client._options.bearerToken); @@ -149,7 +152,7 @@ async function $do( const response = doResult.value; const [result] = await M.match< - void, + JsonLStream, | VercelError | ResponseValidationError | ConnectionError @@ -159,7 +162,19 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil("2XX", z.void()), + M.jsonl( + 200, + z.instanceof(ReadableStream).transform(stream => { + return new JsonLStream({ + stream, + decoder(rawEvent) { + const schema = ListBillingChargesResponseBody$inboundSchema; + return schema.parse(rawEvent); + }, + }); + }), + { ctype: "application/jsonl" }, + ), M.fail([400, 401, 403, 404, "4XX"]), M.fail([500, 503, "5XX"]), )(response, req); diff --git a/src/funcs/billingListContractCommitments.ts b/src/funcs/billingListContractCommitments.ts index 851ad2c9..0fc4d98f 100644 --- a/src/funcs/billingListContractCommitments.ts +++ b/src/funcs/billingListContractCommitments.ts @@ -5,6 +5,7 @@ import * as z from "zod/v3"; import { VercelCore } from "../core.js"; import { encodeFormQuery } from "../lib/encodings.js"; +import { JsonLStream } from "../lib/jsonl.js"; import * as M from "../lib/matchers.js"; import { compactMap } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; @@ -21,6 +22,8 @@ import { import { ListContractCommitmentsRequest, ListContractCommitmentsRequest$outboundSchema, + ListContractCommitmentsResponseBody, + ListContractCommitmentsResponseBody$inboundSchema, } from "../models/listcontractcommitmentsop.js"; import { ResponseValidationError } from "../models/responsevalidationerror.js"; import { SDKValidationError } from "../models/sdkvalidationerror.js"; @@ -40,7 +43,7 @@ export function billingListContractCommitments( options?: RequestOptions, ): APIPromise< Result< - void, + JsonLStream, | VercelError | ResponseValidationError | ConnectionError @@ -65,7 +68,7 @@ async function $do( ): Promise< [ Result< - void, + JsonLStream, | VercelError | ResponseValidationError | ConnectionError @@ -97,7 +100,7 @@ async function $do( }); const headers = new Headers(compactMap({ - Accept: "*/*", + Accept: "application/jsonl", })); const secConfig = await extractSecurity(client._options.bearerToken); @@ -147,7 +150,7 @@ async function $do( const response = doResult.value; const [result] = await M.match< - void, + JsonLStream, | VercelError | ResponseValidationError | ConnectionError @@ -157,7 +160,19 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.nil("2XX", z.void()), + M.jsonl( + 200, + z.instanceof(ReadableStream).transform(stream => { + return new JsonLStream({ + stream, + decoder(rawEvent) { + const schema = ListContractCommitmentsResponseBody$inboundSchema; + return schema.parse(rawEvent); + }, + }); + }), + { ctype: "application/jsonl" }, + ), M.fail([400, 401, 403, 404, "4XX"]), M.fail("5XX"), )(response, req); diff --git a/src/lib/config.ts b/src/lib/config.ts index db3720ff..5f9022c0 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.0.1", - sdkVersion: "1.18.10", - genVersion: "2.801.2", - userAgent: "speakeasy-sdk/typescript 1.18.10 2.801.2 0.0.1 @vercel/sdk", + sdkVersion: "1.19.0", + genVersion: "2.803.3", + userAgent: "speakeasy-sdk/typescript 1.19.0 2.803.3 0.0.1 @vercel/sdk", } as const; diff --git a/src/lib/jsonl.ts b/src/lib/jsonl.ts new file mode 100644 index 00000000..566c4408 --- /dev/null +++ b/src/lib/jsonl.ts @@ -0,0 +1,127 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ + +const LF = 0x0a; +const CR = 0x0d; +const RIGHT_BRACE = 0x7d; +const MESSAGE_BOUNDARIES = [ + new Uint8Array([RIGHT_BRACE, CR, LF]), + new Uint8Array([RIGHT_BRACE, LF]), +]; + +export class JsonLStream { + private readonly stream: ReadableStream; + private readonly decoder: (rawEvent: string) => Event; + + constructor(init: { + stream: ReadableStream; + decoder: (rawEvent: string) => Event; + }) { + this.stream = init.stream; + this.decoder = init.decoder; + } + + async *[Symbol.asyncIterator](): AsyncGenerator { + const reader = this.stream.getReader(); + let buffer = new Uint8Array([]); + let position = 0; + + try { + while (true) { + const { done, value } = await reader.read(); + if (done) { + break; + } + + const newBuffer = new Uint8Array(buffer.length + value.length); + newBuffer.set(buffer); + newBuffer.set(value, buffer.length); + buffer = newBuffer; + + for (let i = position; i < buffer.length; i++) { + const boundary = findBoundary(buffer, i); + if (boundary == null) { + continue; + } + + const chunk = buffer.slice(position, i + 1); + position = i + boundary.length; + const event = parseEvent(chunk, this.decoder); + if (event != null) { + yield event; + } + } + + if (position > 0) { + buffer = buffer.slice(position); + position = 0; + } + } + + if (buffer.length > 0) { + const event = parseEvent(buffer, this.decoder); + if (event != null) { + yield event; + } + } + } catch (e: unknown) { + if (e instanceof Error && e.name === "AbortError") { + return; + } + + throw e; + } finally { + reader.releaseLock(); + } + } +} + +function findBoundary(buffer: Uint8Array, start: number): Uint8Array | null { + for (const s of MESSAGE_BOUNDARIES) { + const seq = peekSequence(start, buffer, s); + if (seq != null) { + return seq; + } + } + + return null; +} + +function peekSequence( + position: number, + buffer: Uint8Array, + sequence: Uint8Array, +): Uint8Array | null { + if (sequence.length > buffer.length - position) { + return null; + } + + for (let i = 0; i < sequence.length; i++) { + if (buffer[position + i] !== sequence[i]) { + return null; + } + } + + return sequence; +} + +function parseEvent( + chunk: Uint8Array, + decoder: (rawEvent: string) => Event, +) { + if (!chunk.length) { + return null; + } + + const td = new TextDecoder(); + const raw = td.decode(chunk); + + try { + const parsed = JSON.parse(raw); + return decoder(parsed); + } catch (e) { + console.error("Error parsing JSON:", e); + return null; + } +} diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index f1526a80..db47a24a 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.18.10", + currentVersion: "1.19.0", }, }); diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 6c544183..f2e82498 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -256,7 +256,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "Vercel", - version: "1.18.10", + version: "1.19.0", }); const client = new VercelCore({ diff --git a/src/mcp-server/tools/billingListBillingCharges.ts b/src/mcp-server/tools/billingListBillingCharges.ts index 07d0dfdc..188b05a9 100644 --- a/src/mcp-server/tools/billingListBillingCharges.ts +++ b/src/mcp-server/tools/billingListBillingCharges.ts @@ -30,6 +30,8 @@ Returns the billing charge data in FOCUS v1.3 JSONL format for a specified Verce }; } - return formatResult(void 0, apiCall); + const value = result.value; + + return formatResult(value, apiCall); }, }; diff --git a/src/mcp-server/tools/billingListContractCommitments.ts b/src/mcp-server/tools/billingListContractCommitments.ts index ae4532e7..41d6f83f 100644 --- a/src/mcp-server/tools/billingListContractCommitments.ts +++ b/src/mcp-server/tools/billingListContractCommitments.ts @@ -31,6 +31,8 @@ Returns commitment allocations per contract period in FOCUS v1.3 JSONL format fo }; } - return formatResult(void 0, apiCall); + const value = result.value; + + return formatResult(value, apiCall); }, }; diff --git a/src/models/authuser.ts b/src/models/authuser.ts index b0ff209d..4d39a7b1 100644 --- a/src/models/authuser.ts +++ b/src/models/authuser.ts @@ -116,9 +116,9 @@ export type BuildQueue = { * An object containing infomation related to the amount of platform resources may be allocated to the User account. */ export const AuthUserDefault = { + Standard: "standard", Enhanced: "enhanced", Turbo: "turbo", - Standard: "standard", } as const; /** * An object containing infomation related to the amount of platform resources may be allocated to the User account. @@ -129,6 +129,7 @@ export type AuthUserDefault = ClosedEnum; * An object containing infomation related to the amount of platform resources may be allocated to the User account. */ export const PurchaseType = { + Standard: "standard", Enhanced: "enhanced", Turbo: "turbo", } as const; diff --git a/src/models/canceldeploymentop.ts b/src/models/canceldeploymentop.ts index 3e78d828..2e6fc5f8 100644 --- a/src/models/canceldeploymentop.ts +++ b/src/models/canceldeploymentop.ts @@ -1467,9 +1467,9 @@ export type CancelDeploymentBuildQueue = { * Build resource configuration snapshot for this deployment. */ export const CancelDeploymentDefault = { + Standard: "standard", Enhanced: "enhanced", Turbo: "turbo", - Standard: "standard", } as const; /** * Build resource configuration snapshot for this deployment. @@ -1482,6 +1482,7 @@ export type CancelDeploymentDefault = ClosedEnum< * Build resource configuration snapshot for this deployment. */ export const CancelDeploymentPurchaseType = { + Standard: "standard", Enhanced: "enhanced", Turbo: "turbo", } as const; diff --git a/src/models/createdeploymentop.ts b/src/models/createdeploymentop.ts index 7add40de..27103c7f 100644 --- a/src/models/createdeploymentop.ts +++ b/src/models/createdeploymentop.ts @@ -1879,9 +1879,9 @@ export type CreateDeploymentBuildQueue = { * Build resource configuration snapshot for this deployment. */ export const CreateDeploymentDefault = { + Standard: "standard", Enhanced: "enhanced", Turbo: "turbo", - Standard: "standard", } as const; /** * Build resource configuration snapshot for this deployment. @@ -1894,6 +1894,7 @@ export type CreateDeploymentDefault = ClosedEnum< * Build resource configuration snapshot for this deployment. */ export const CreateDeploymentPurchaseType = { + Standard: "standard", Enhanced: "enhanced", Turbo: "turbo", } as const; diff --git a/src/models/getdeploymentop.ts b/src/models/getdeploymentop.ts index 4c933373..f87a859f 100644 --- a/src/models/getdeploymentop.ts +++ b/src/models/getdeploymentop.ts @@ -2335,9 +2335,9 @@ export type GetDeploymentResponseBodyBuildQueue = { * Build resource configuration snapshot for this deployment. */ export const ResponseBodyDefault = { + Standard: "standard", Enhanced: "enhanced", Turbo: "turbo", - Standard: "standard", } as const; /** * Build resource configuration snapshot for this deployment. @@ -2348,6 +2348,7 @@ export type ResponseBodyDefault = ClosedEnum; * Build resource configuration snapshot for this deployment. */ export const ResponseBodyPurchaseType = { + Standard: "standard", Enhanced: "enhanced", Turbo: "turbo", } as const; diff --git a/src/models/listbillingchargesop.ts b/src/models/listbillingchargesop.ts index df050ac5..5048fa53 100644 --- a/src/models/listbillingchargesop.ts +++ b/src/models/listbillingchargesop.ts @@ -3,7 +3,9 @@ */ import * as z from "zod/v3"; +import { remap as remap$ } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; +import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import * as types from "../types/primitives.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; @@ -27,6 +29,149 @@ export type ListBillingChargesRequest = { slug?: string | undefined; }; +/** + * Currency used for billing (ISO 4217) + */ +export const BillingCurrency = { + Usd: "USD", +} as const; +/** + * Currency used for billing (ISO 4217) + */ +export type BillingCurrency = ClosedEnum; + +/** + * Classification of the charge + */ +export const ChargeCategory = { + Adjustment: "Adjustment", + Credit: "Credit", + Purchase: "Purchase", + Tax: "Tax", + Usage: "Usage", +} as const; +/** + * Classification of the charge + */ +export type ChargeCategory = ClosedEnum; + +/** + * High-level category of the service + */ +export const ServiceCategory = { + AIAndMachineLearning: "AI and Machine Learning", + Analytics: "Analytics", + BusinessApplications: "Business Applications", + Compute: "Compute", + Databases: "Databases", + DeveloperTools: "Developer Tools", + Multicloud: "Multicloud", + Identity: "Identity", + Integration: "Integration", + InternetOfThings: "Internet of Things", + ManagementAndGovernance: "Management and Governance", + Media: "Media", + Migration: "Migration", + Mobile: "Mobile", + Networking: "Networking", + Security: "Security", + Storage: "Storage", + Web: "Web", + Other: "Other", +} as const; +/** + * High-level category of the service + */ +export type ServiceCategory = ClosedEnum; + +/** + * Pricing model used for the charge. + */ +export const PricingCategory = { + Other: "Other", + Standard: "Standard", + Dynamic: "Dynamic", + Committed: "Committed", +} as const; +/** + * Pricing model used for the charge. + */ +export type PricingCategory = ClosedEnum; + +export const PricingCurrency = { + Usd: "USD", +} as const; +export type PricingCurrency = ClosedEnum; + +/** + * Extension of the base schema for Focus charges. Includes pricing information for all customers. + */ +export type ListBillingChargesResponseBody = { + /** + * Charge amount serving as the basis for invoicing + */ + billedCost: number; + /** + * Currency used for billing (ISO 4217) + */ + billingCurrency: BillingCurrency; + /** + * Classification of the charge + */ + chargeCategory: ChargeCategory; + /** + * Inclusive start of the charge period (ISO 8601 UTC) + */ + chargePeriodStart: string; + /** + * Exclusive end of the charge period (ISO 8601 UTC) - Required in v1.3 + */ + chargePeriodEnd: string; + /** + * Volume of resource consumed + */ + consumedQuantity: number; + /** + * Unit of measurement for consumed quantity + */ + consumedUnit: string; + /** + * Amortized cost representation including discounts, pre-commitment credit purchase amount, etc. + */ + effectiveCost: number; + /** + * Provider-assigned region identifier + */ + regionId?: string | undefined; + /** + * Display name for the region + */ + regionName?: string | undefined; + /** + * Display name for the service/product + */ + serviceName: string; + /** + * High-level category of the service + */ + serviceCategory?: ServiceCategory | undefined; + /** + * Entity making the resource/service available for purchase (v1.3) + */ + serviceProviderName: string; + /** + * Custom key-value metadata (ProjectId, ProjectName) + */ + tags: { [k: string]: string }; + /** + * Pricing model used for the charge. + */ + pricingCategory: PricingCategory; + pricingCurrency: PricingCurrency; + pricingQuantity: number; + pricingUnit: string; +}; + /** @internal */ export const ListBillingChargesRequest$inboundSchema: z.ZodType< ListBillingChargesRequest, @@ -74,3 +219,182 @@ export function listBillingChargesRequestFromJSON( `Failed to parse 'ListBillingChargesRequest' from JSON`, ); } + +/** @internal */ +export const BillingCurrency$inboundSchema: z.ZodNativeEnum< + typeof BillingCurrency +> = z.nativeEnum(BillingCurrency); +/** @internal */ +export const BillingCurrency$outboundSchema: z.ZodNativeEnum< + typeof BillingCurrency +> = BillingCurrency$inboundSchema; + +/** @internal */ +export const ChargeCategory$inboundSchema: z.ZodNativeEnum< + typeof ChargeCategory +> = z.nativeEnum(ChargeCategory); +/** @internal */ +export const ChargeCategory$outboundSchema: z.ZodNativeEnum< + typeof ChargeCategory +> = ChargeCategory$inboundSchema; + +/** @internal */ +export const ServiceCategory$inboundSchema: z.ZodNativeEnum< + typeof ServiceCategory +> = z.nativeEnum(ServiceCategory); +/** @internal */ +export const ServiceCategory$outboundSchema: z.ZodNativeEnum< + typeof ServiceCategory +> = ServiceCategory$inboundSchema; + +/** @internal */ +export const PricingCategory$inboundSchema: z.ZodNativeEnum< + typeof PricingCategory +> = z.nativeEnum(PricingCategory); +/** @internal */ +export const PricingCategory$outboundSchema: z.ZodNativeEnum< + typeof PricingCategory +> = PricingCategory$inboundSchema; + +/** @internal */ +export const PricingCurrency$inboundSchema: z.ZodNativeEnum< + typeof PricingCurrency +> = z.nativeEnum(PricingCurrency); +/** @internal */ +export const PricingCurrency$outboundSchema: z.ZodNativeEnum< + typeof PricingCurrency +> = PricingCurrency$inboundSchema; + +/** @internal */ +export const ListBillingChargesResponseBody$inboundSchema: z.ZodType< + ListBillingChargesResponseBody, + z.ZodTypeDef, + unknown +> = z.object({ + BilledCost: types.number(), + BillingCurrency: BillingCurrency$inboundSchema, + ChargeCategory: ChargeCategory$inboundSchema, + ChargePeriodStart: types.string(), + ChargePeriodEnd: types.string(), + ConsumedQuantity: types.number(), + ConsumedUnit: types.string(), + EffectiveCost: types.number(), + RegionId: types.optional(types.string()), + RegionName: types.optional(types.string()), + ServiceName: types.string(), + ServiceCategory: types.optional(ServiceCategory$inboundSchema), + ServiceProviderName: types.string(), + Tags: z.record(types.string()), + PricingCategory: PricingCategory$inboundSchema, + PricingCurrency: PricingCurrency$inboundSchema, + PricingQuantity: types.number(), + PricingUnit: types.string(), +}).transform((v) => { + return remap$(v, { + "BilledCost": "billedCost", + "BillingCurrency": "billingCurrency", + "ChargeCategory": "chargeCategory", + "ChargePeriodStart": "chargePeriodStart", + "ChargePeriodEnd": "chargePeriodEnd", + "ConsumedQuantity": "consumedQuantity", + "ConsumedUnit": "consumedUnit", + "EffectiveCost": "effectiveCost", + "RegionId": "regionId", + "RegionName": "regionName", + "ServiceName": "serviceName", + "ServiceCategory": "serviceCategory", + "ServiceProviderName": "serviceProviderName", + "Tags": "tags", + "PricingCategory": "pricingCategory", + "PricingCurrency": "pricingCurrency", + "PricingQuantity": "pricingQuantity", + "PricingUnit": "pricingUnit", + }); +}); +/** @internal */ +export type ListBillingChargesResponseBody$Outbound = { + BilledCost: number; + BillingCurrency: string; + ChargeCategory: string; + ChargePeriodStart: string; + ChargePeriodEnd: string; + ConsumedQuantity: number; + ConsumedUnit: string; + EffectiveCost: number; + RegionId?: string | undefined; + RegionName?: string | undefined; + ServiceName: string; + ServiceCategory?: string | undefined; + ServiceProviderName: string; + Tags: { [k: string]: string }; + PricingCategory: string; + PricingCurrency: string; + PricingQuantity: number; + PricingUnit: string; +}; + +/** @internal */ +export const ListBillingChargesResponseBody$outboundSchema: z.ZodType< + ListBillingChargesResponseBody$Outbound, + z.ZodTypeDef, + ListBillingChargesResponseBody +> = z.object({ + billedCost: z.number(), + billingCurrency: BillingCurrency$outboundSchema, + chargeCategory: ChargeCategory$outboundSchema, + chargePeriodStart: z.string(), + chargePeriodEnd: z.string(), + consumedQuantity: z.number(), + consumedUnit: z.string(), + effectiveCost: z.number(), + regionId: z.string().optional(), + regionName: z.string().optional(), + serviceName: z.string(), + serviceCategory: ServiceCategory$outboundSchema.optional(), + serviceProviderName: z.string(), + tags: z.record(z.string()), + pricingCategory: PricingCategory$outboundSchema, + pricingCurrency: PricingCurrency$outboundSchema, + pricingQuantity: z.number(), + pricingUnit: z.string(), +}).transform((v) => { + return remap$(v, { + billedCost: "BilledCost", + billingCurrency: "BillingCurrency", + chargeCategory: "ChargeCategory", + chargePeriodStart: "ChargePeriodStart", + chargePeriodEnd: "ChargePeriodEnd", + consumedQuantity: "ConsumedQuantity", + consumedUnit: "ConsumedUnit", + effectiveCost: "EffectiveCost", + regionId: "RegionId", + regionName: "RegionName", + serviceName: "ServiceName", + serviceCategory: "ServiceCategory", + serviceProviderName: "ServiceProviderName", + tags: "Tags", + pricingCategory: "PricingCategory", + pricingCurrency: "PricingCurrency", + pricingQuantity: "PricingQuantity", + pricingUnit: "PricingUnit", + }); +}); + +export function listBillingChargesResponseBodyToJSON( + listBillingChargesResponseBody: ListBillingChargesResponseBody, +): string { + return JSON.stringify( + ListBillingChargesResponseBody$outboundSchema.parse( + listBillingChargesResponseBody, + ), + ); +} +export function listBillingChargesResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => ListBillingChargesResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListBillingChargesResponseBody' from JSON`, + ); +} diff --git a/src/models/listcontractcommitmentsop.ts b/src/models/listcontractcommitmentsop.ts index 3f9daadb..777e96ec 100644 --- a/src/models/listcontractcommitmentsop.ts +++ b/src/models/listcontractcommitmentsop.ts @@ -3,7 +3,9 @@ */ import * as z from "zod/v3"; +import { remap as remap$ } from "../lib/primitives.js"; import { safeParse } from "../lib/schemas.js"; +import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import * as types from "../types/primitives.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; @@ -19,6 +21,75 @@ export type ListContractCommitmentsRequest = { slug?: string | undefined; }; +/** + * Highest-level classification of the contract commitment. 'Spend' for Pro ($20/month), 'Usage' for Enterprise (MIU allocation). + */ +export const ContractCommitmentCategory = { + Usage: "Usage", + Spend: "Spend", +} as const; +/** + * Highest-level classification of the contract commitment. 'Spend' for Pro ($20/month), 'Usage' for Enterprise (MIU allocation). + */ +export type ContractCommitmentCategory = ClosedEnum< + typeof ContractCommitmentCategory +>; + +/** + * Contract commitment information describing terms within a contract. New in FOCUS v1.3 - tracks commitment terms separate from cost/usage rows. For Vercel: - Pro: $20 monthly spend commitment - Enterprise: MIU allocation per period (usage commitment) + */ +export type ListContractCommitmentsResponseBody = { + /** + * Highest-level classification of the contract commitment. 'Spend' for Pro ($20/month), 'Usage' for Enterprise (MIU allocation). + */ + contractCommitmentCategory: ContractCommitmentCategory; + /** + * Monetary value of the contract commitment (in BillingCurrency). Required when ContractCommitmentCategory is 'Spend'. For Pro: 20 (USD) + */ + contractCommitmentCost?: number | undefined; + /** + * Self-contained summary of the contract commitment's terms + */ + contractCommitmentDescription?: string | undefined; + /** + * Unique identifier for a single contract term within a contract. Maps to specific commitment period or allocation ID. + */ + contractCommitmentId: string; + /** + * Inclusive start of the commitment term period (ISO 8601 UTC) + */ + contractCommitmentPeriodStart: string; + /** + * Exclusive end of the commitment term period (ISO 8601 UTC) + */ + contractCommitmentPeriodEnd: string; + /** + * Amount associated with the commitment (in ContractCommitmentUnit). Required when ContractCommitmentCategory is 'Usage'. For Enterprise: MIU allocation amount. + */ + contractCommitmentQuantity?: number | undefined; + /** + * Service-provider-assigned name identifying the commitment type. 'Pro' or 'Enterprise' for Vercel. + */ + contractCommitmentType: string; + /** + * Measurement unit for ContractCommitmentQuantity. 'MIUs' for Enterprise, 'USD' for Pro spend commitments. + */ + contractCommitmentUnit: string; + /** + * Service-provider-assigned identifier for a contract. Maps to Orb Subscription ID for Vercel. + */ + contractId: string; + /** + * Inclusive start of the overall contract period (ISO 8601 UTC) + */ + contractPeriodStart: string; + /** + * Exclusive end of the overall contract period (ISO 8601 UTC) + */ + contractPeriodEnd: string; + billingCurrency: string; +}; + /** @internal */ export const ListContractCommitmentsRequest$inboundSchema: z.ZodType< ListContractCommitmentsRequest, @@ -62,3 +133,122 @@ export function listContractCommitmentsRequestFromJSON( `Failed to parse 'ListContractCommitmentsRequest' from JSON`, ); } + +/** @internal */ +export const ContractCommitmentCategory$inboundSchema: z.ZodNativeEnum< + typeof ContractCommitmentCategory +> = z.nativeEnum(ContractCommitmentCategory); +/** @internal */ +export const ContractCommitmentCategory$outboundSchema: z.ZodNativeEnum< + typeof ContractCommitmentCategory +> = ContractCommitmentCategory$inboundSchema; + +/** @internal */ +export const ListContractCommitmentsResponseBody$inboundSchema: z.ZodType< + ListContractCommitmentsResponseBody, + z.ZodTypeDef, + unknown +> = z.object({ + ContractCommitmentCategory: ContractCommitmentCategory$inboundSchema, + ContractCommitmentCost: types.optional(types.number()), + ContractCommitmentDescription: types.optional(types.string()), + ContractCommitmentId: types.string(), + ContractCommitmentPeriodStart: types.string(), + ContractCommitmentPeriodEnd: types.string(), + ContractCommitmentQuantity: types.optional(types.number()), + ContractCommitmentType: types.string(), + ContractCommitmentUnit: types.string(), + ContractId: types.string(), + ContractPeriodStart: types.string(), + ContractPeriodEnd: types.string(), + BillingCurrency: types.string(), +}).transform((v) => { + return remap$(v, { + "ContractCommitmentCategory": "contractCommitmentCategory", + "ContractCommitmentCost": "contractCommitmentCost", + "ContractCommitmentDescription": "contractCommitmentDescription", + "ContractCommitmentId": "contractCommitmentId", + "ContractCommitmentPeriodStart": "contractCommitmentPeriodStart", + "ContractCommitmentPeriodEnd": "contractCommitmentPeriodEnd", + "ContractCommitmentQuantity": "contractCommitmentQuantity", + "ContractCommitmentType": "contractCommitmentType", + "ContractCommitmentUnit": "contractCommitmentUnit", + "ContractId": "contractId", + "ContractPeriodStart": "contractPeriodStart", + "ContractPeriodEnd": "contractPeriodEnd", + "BillingCurrency": "billingCurrency", + }); +}); +/** @internal */ +export type ListContractCommitmentsResponseBody$Outbound = { + ContractCommitmentCategory: string; + ContractCommitmentCost?: number | undefined; + ContractCommitmentDescription?: string | undefined; + ContractCommitmentId: string; + ContractCommitmentPeriodStart: string; + ContractCommitmentPeriodEnd: string; + ContractCommitmentQuantity?: number | undefined; + ContractCommitmentType: string; + ContractCommitmentUnit: string; + ContractId: string; + ContractPeriodStart: string; + ContractPeriodEnd: string; + BillingCurrency: string; +}; + +/** @internal */ +export const ListContractCommitmentsResponseBody$outboundSchema: z.ZodType< + ListContractCommitmentsResponseBody$Outbound, + z.ZodTypeDef, + ListContractCommitmentsResponseBody +> = z.object({ + contractCommitmentCategory: ContractCommitmentCategory$outboundSchema, + contractCommitmentCost: z.number().optional(), + contractCommitmentDescription: z.string().optional(), + contractCommitmentId: z.string(), + contractCommitmentPeriodStart: z.string(), + contractCommitmentPeriodEnd: z.string(), + contractCommitmentQuantity: z.number().optional(), + contractCommitmentType: z.string(), + contractCommitmentUnit: z.string(), + contractId: z.string(), + contractPeriodStart: z.string(), + contractPeriodEnd: z.string(), + billingCurrency: z.string(), +}).transform((v) => { + return remap$(v, { + contractCommitmentCategory: "ContractCommitmentCategory", + contractCommitmentCost: "ContractCommitmentCost", + contractCommitmentDescription: "ContractCommitmentDescription", + contractCommitmentId: "ContractCommitmentId", + contractCommitmentPeriodStart: "ContractCommitmentPeriodStart", + contractCommitmentPeriodEnd: "ContractCommitmentPeriodEnd", + contractCommitmentQuantity: "ContractCommitmentQuantity", + contractCommitmentType: "ContractCommitmentType", + contractCommitmentUnit: "ContractCommitmentUnit", + contractId: "ContractId", + contractPeriodStart: "ContractPeriodStart", + contractPeriodEnd: "ContractPeriodEnd", + billingCurrency: "BillingCurrency", + }); +}); + +export function listContractCommitmentsResponseBodyToJSON( + listContractCommitmentsResponseBody: ListContractCommitmentsResponseBody, +): string { + return JSON.stringify( + ListContractCommitmentsResponseBody$outboundSchema.parse( + listContractCommitmentsResponseBody, + ), + ); +} +export function listContractCommitmentsResponseBodyFromJSON( + jsonString: string, +): SafeParseResult { + return safeParse( + jsonString, + (x) => + ListContractCommitmentsResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'ListContractCommitmentsResponseBody' from JSON`, + ); +} diff --git a/src/models/userevent.ts b/src/models/userevent.ts index 39e92e25..506ed3f7 100644 --- a/src/models/userevent.ts +++ b/src/models/userevent.ts @@ -3618,13 +3618,14 @@ export type PayloadBuildQueue = { }; export const PayloadDefault = { + Standard: "standard", Enhanced: "enhanced", Turbo: "turbo", - Standard: "standard", } as const; export type PayloadDefault = ClosedEnum; export const PayloadPurchaseType = { + Standard: "standard", Enhanced: "enhanced", Turbo: "turbo", } as const; diff --git a/src/sdk/billing.ts b/src/sdk/billing.ts index 002cb949..495f663d 100644 --- a/src/sdk/billing.ts +++ b/src/sdk/billing.ts @@ -4,9 +4,16 @@ import { billingListBillingCharges } from "../funcs/billingListBillingCharges.js"; import { billingListContractCommitments } from "../funcs/billingListContractCommitments.js"; +import { JsonLStream } from "../lib/jsonl.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import { ListBillingChargesRequest } from "../models/listbillingchargesop.js"; -import { ListContractCommitmentsRequest } from "../models/listcontractcommitmentsop.js"; +import { + ListBillingChargesRequest, + ListBillingChargesResponseBody, +} from "../models/listbillingchargesop.js"; +import { + ListContractCommitmentsRequest, + ListContractCommitmentsResponseBody, +} from "../models/listcontractcommitmentsop.js"; import { unwrapAsync } from "../types/fp.js"; export class Billing extends ClientSDK { @@ -19,7 +26,7 @@ export class Billing extends ClientSDK { async listBillingCharges( request: ListBillingChargesRequest, options?: RequestOptions, - ): Promise { + ): Promise> { return unwrapAsync(billingListBillingCharges( this, request, @@ -36,7 +43,7 @@ export class Billing extends ClientSDK { async listContractCommitments( request: ListContractCommitmentsRequest, options?: RequestOptions, - ): Promise { + ): Promise> { return unwrapAsync(billingListContractCommitments( this, request, diff --git a/vercel-spec.json b/vercel-spec.json index 08b73b22..709c55e1 100644 --- a/vercel-spec.json +++ b/vercel-spec.json @@ -2333,6 +2333,148 @@ "billing" ], "responses": { + "200": { + "description": "", + "content": { + "application/jsonl": { + "schema": { + "properties": { + "BilledCost": { + "type": "number", + "description": "Charge amount serving as the basis for invoicing" + }, + "BillingCurrency": { + "type": "string", + "enum": [ + "USD" + ], + "description": "Currency used for billing (ISO 4217)" + }, + "ChargeCategory": { + "type": "string", + "enum": [ + "Adjustment", + "Credit", + "Purchase", + "Tax", + "Usage" + ], + "description": "Classification of the charge" + }, + "ChargePeriodStart": { + "type": "string", + "description": "Inclusive start of the charge period (ISO 8601 UTC)" + }, + "ChargePeriodEnd": { + "type": "string", + "description": "Exclusive end of the charge period (ISO 8601 UTC) - Required in v1.3" + }, + "ConsumedQuantity": { + "type": "number", + "description": "Volume of resource consumed" + }, + "ConsumedUnit": { + "type": "string", + "description": "Unit of measurement for consumed quantity" + }, + "EffectiveCost": { + "type": "number", + "description": "Amortized cost representation including discounts, pre-commitment credit purchase amount, etc." + }, + "RegionId": { + "type": "string", + "description": "Provider-assigned region identifier" + }, + "RegionName": { + "type": "string", + "description": "Display name for the region" + }, + "ServiceName": { + "type": "string", + "description": "Display name for the service/product" + }, + "ServiceCategory": { + "type": "string", + "enum": [ + "AI and Machine Learning", + "Analytics", + "Business Applications", + "Compute", + "Databases", + "Developer Tools", + "Multicloud", + "Identity", + "Integration", + "Internet of Things", + "Management and Governance", + "Media", + "Migration", + "Mobile", + "Networking", + "Security", + "Storage", + "Web", + "Other" + ], + "description": "High-level category of the service" + }, + "ServiceProviderName": { + "type": "string", + "description": "Entity making the resource/service available for purchase (v1.3)" + }, + "Tags": { + "additionalProperties": { + "type": "string" + }, + "type": "object", + "description": "Custom key-value metadata (ProjectId, ProjectName)" + }, + "PricingCategory": { + "type": "string", + "enum": [ + "Other", + "Standard", + "Dynamic", + "Committed" + ], + "description": "Pricing model used for the charge." + }, + "PricingCurrency": { + "type": "string", + "enum": [ + "USD" + ] + }, + "PricingQuantity": { + "type": "number" + }, + "PricingUnit": { + "type": "string" + } + }, + "required": [ + "BilledCost", + "BillingCurrency", + "ChargeCategory", + "ChargePeriodEnd", + "ChargePeriodStart", + "ConsumedQuantity", + "ConsumedUnit", + "EffectiveCost", + "PricingCategory", + "PricingCurrency", + "PricingQuantity", + "PricingUnit", + "ServiceName", + "ServiceProviderName", + "Tags" + ], + "type": "object", + "description": "Extension of the base schema for Focus charges. Includes pricing information for all customers." + } + } + } + }, "400": { "description": "One of the provided values in the request query is invalid." }, @@ -2410,6 +2552,86 @@ "billing" ], "responses": { + "200": { + "description": "", + "content": { + "application/jsonl": { + "schema": { + "properties": { + "ContractCommitmentCategory": { + "type": "string", + "enum": [ + "Usage", + "Spend" + ], + "description": "Highest-level classification of the contract commitment. 'Spend' for Pro ($20/month), 'Usage' for Enterprise (MIU allocation)." + }, + "ContractCommitmentCost": { + "type": "number", + "description": "Monetary value of the contract commitment (in BillingCurrency). Required when ContractCommitmentCategory is 'Spend'. For Pro: 20 (USD)" + }, + "ContractCommitmentDescription": { + "type": "string", + "description": "Self-contained summary of the contract commitment's terms" + }, + "ContractCommitmentId": { + "type": "string", + "description": "Unique identifier for a single contract term within a contract. Maps to specific commitment period or allocation ID." + }, + "ContractCommitmentPeriodStart": { + "type": "string", + "description": "Inclusive start of the commitment term period (ISO 8601 UTC)" + }, + "ContractCommitmentPeriodEnd": { + "type": "string", + "description": "Exclusive end of the commitment term period (ISO 8601 UTC)" + }, + "ContractCommitmentQuantity": { + "type": "number", + "description": "Amount associated with the commitment (in ContractCommitmentUnit). Required when ContractCommitmentCategory is 'Usage'. For Enterprise: MIU allocation amount." + }, + "ContractCommitmentType": { + "type": "string", + "description": "Service-provider-assigned name identifying the commitment type. 'Pro' or 'Enterprise' for Vercel." + }, + "ContractCommitmentUnit": { + "type": "string", + "description": "Measurement unit for ContractCommitmentQuantity. 'MIUs' for Enterprise, 'USD' for Pro spend commitments." + }, + "ContractId": { + "type": "string", + "description": "Service-provider-assigned identifier for a contract. Maps to Orb Subscription ID for Vercel." + }, + "ContractPeriodStart": { + "type": "string", + "description": "Inclusive start of the overall contract period (ISO 8601 UTC)" + }, + "ContractPeriodEnd": { + "type": "string", + "description": "Exclusive end of the overall contract period (ISO 8601 UTC)" + }, + "BillingCurrency": { + "type": "string" + } + }, + "required": [ + "BillingCurrency", + "ContractCommitmentCategory", + "ContractCommitmentId", + "ContractCommitmentPeriodEnd", + "ContractCommitmentPeriodStart", + "ContractCommitmentType", + "ContractCommitmentUnit", + "ContractId", + "ContractPeriodEnd", + "ContractPeriodStart" + ], + "type": "object", + "description": "Contract commitment information describing terms within a contract. New in FOCUS v1.3 - tracks commitment terms separate from cost/usage rows. For Vercel: - Pro: $20 monthly spend commitment - Enterprise: MIU allocation per period (usage commitment)" + } + } + } + }, "400": { "description": "" }, @@ -9282,15 +9504,16 @@ "default": { "type": "string", "enum": [ + "standard", "enhanced", - "turbo", - "standard" + "turbo" ], "description": "Build resource configuration snapshot for this deployment." }, "purchaseType": { "type": "string", "enum": [ + "standard", "enhanced", "turbo" ], @@ -13456,15 +13679,16 @@ "default": { "type": "string", "enum": [ + "standard", "enhanced", - "turbo", - "standard" + "turbo" ], "description": "Build resource configuration snapshot for this deployment." }, "purchaseType": { "type": "string", "enum": [ + "standard", "enhanced", "turbo" ], @@ -16962,15 +17186,16 @@ "default": { "type": "string", "enum": [ + "standard", "enhanced", - "turbo", - "standard" + "turbo" ], "description": "Build resource configuration snapshot for this deployment." }, "purchaseType": { "type": "string", "enum": [ + "standard", "enhanced", "turbo" ], @@ -102060,14 +102285,15 @@ "default": { "type": "string", "enum": [ + "standard", "enhanced", - "turbo", - "standard" + "turbo" ] }, "purchaseType": { "type": "string", "enum": [ + "standard", "enhanced", "turbo" ] @@ -111754,15 +111980,16 @@ "default": { "type": "string", "enum": [ + "standard", "enhanced", - "turbo", - "standard" + "turbo" ], "description": "An object containing infomation related to the amount of platform resources may be allocated to the User account." }, "purchaseType": { "type": "string", "enum": [ + "standard", "enhanced", "turbo" ],