fork of hey-api/openapi-ts because I need some additional things

fix: revert license to MIT

Lubos 200821b3 aae0f90e

+24 -230
+6
.changeset/twenty-apes-eat.md
··· 1 + --- 2 + '@hey-api/openapi-ts': minor 3 + '@hey-api/docs': minor 4 + --- 5 + 6 + fix: revert license to MIT
+8 -97
LICENSE.md
··· 1 - # Functional Source License, Version 1.1, MIT Future License 2 - 3 - ## Abbreviation 1 + MIT License 4 2 5 - FSL-1.1-MIT 6 - 7 - ## Notice 3 + Copyright (c) Hey API 8 4 9 - Copyright 2024 Hey API 10 - 11 - ## Terms and Conditions 12 - 13 - ### Licensor ("We") 14 - 15 - The party offering the Software under these Terms and Conditions. 16 - 17 - ### The Software 18 - 19 - The "Software" is each version of the software that we make available under 20 - these Terms and Conditions, as indicated by our inclusion of these Terms and 21 - Conditions with the Software. 22 - 23 - ### License Grant 24 - 25 - Subject to your compliance with this License Grant and the Patents, 26 - Redistribution and Trademark clauses below, we hereby grant you the right to 27 - use, copy, modify, create derivative works, publicly perform, publicly display 28 - and redistribute the Software for any Permitted Purpose identified below. 29 - 30 - ### Permitted Purpose 31 - 32 - A Permitted Purpose is any purpose other than a Competing Use. A Competing Use 33 - means making the Software available to others in a commercial product or 34 - service that: 35 - 36 - 1. substitutes for the Software; 37 - 38 - 2. substitutes for any other product or service we offer using the Software 39 - that exists as of the date we make the Software available; or 40 - 41 - 3. offers the same or substantially similar functionality as the Software. 42 - 43 - Permitted Purposes specifically include using the Software: 44 - 45 - 1. for your internal use and access; 46 - 47 - 2. for non-commercial education; 48 - 49 - 3. for non-commercial research; and 50 - 51 - 4. in connection with professional services that you provide to a licensee 52 - using the Software in accordance with these Terms and Conditions. 53 - 54 - ### Patents 55 - 56 - To the extent your use for a Permitted Purpose would necessarily infringe our 57 - patents, the license grant above includes a license under our patents. If you 58 - make a claim against any party that the Software infringes or contributes to 59 - the infringement of any patent, then your patent license to the Software ends 60 - immediately. 61 - 62 - ### Redistribution 63 - 64 - The Terms and Conditions apply to all copies, modifications and derivatives of 65 - the Software. 66 - 67 - If you redistribute any copies, modifications or derivatives of the Software, 68 - you must include a copy of or a link to these Terms and Conditions and not 69 - remove any copyright notices provided in or with the Software. 70 - 71 - ### Disclaimer 72 - 73 - THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR 74 - IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR 75 - PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT. 76 - 77 - IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE 78 - SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, 79 - EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE. 80 - 81 - ### Trademarks 82 - 83 - Except for displaying the License Details and identifying us as the origin of 84 - the Software, you have no right under these Terms and Conditions to use our 85 - trademarks, trade names, service marks or product names. 86 - 87 - ## Grant of Future License 88 - 89 - We hereby irrevocably grant you an additional license to use the Software under 90 - the MIT license that is effective on the second anniversary of the date we make 91 - the Software available. On or after that date, you may use the Software under 92 - the MIT license, in which case the following will apply: 93 - 94 - Permission is hereby granted, free of charge, to any person obtaining a copy of 95 - this software and associated documentation files (the "Software"), to deal in 96 - the Software without restriction, including without limitation the rights to 97 - use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 98 - of the Software, and to permit persons to whom the Software is furnished to do 99 - so, subject to the following conditions: 5 + Permission is hereby granted, free of charge, to any person obtaining a copy 6 + of this software and associated documentation files (the "Software"), to deal 7 + in the Software without restriction, including without limitation the rights 8 + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 + copies of the Software, and to permit persons to whom the Software is 10 + furnished to do so, subject to the following conditions: 100 11 101 12 The above copyright notice and this permission notice shall be included in all 102 13 copies or substantial portions of the Software.
-4
docs/.vitepress/config/en.ts
··· 101 101 text: 'Migrating', 102 102 }, 103 103 { 104 - link: '/license', 105 - text: 'License', 106 - }, 107 - { 108 104 link: '/about', 109 105 text: 'Philosophy', 110 106 },
-30
docs/license.md
··· 1 - --- 2 - title: License 3 - description: License FAQ. 4 - --- 5 - 6 - # License 7 - 8 - While our client packages use the standard MIT license, [openapi-ts](https://github.com/hey-api/openapi-ts/blob/main/LICENSE.md) uses the FSL license pioneered by Sentry. This page explains the motivation behind the change and attempts to answer the most commonly asked questions. If your question isn't answered here, please join the [discussion](https://github.com/orgs/hey-api/discussions/1141). 9 - 10 - ## FAQ 11 - 12 - ### Why does openapi-ts use the FSL license? 13 - 14 - The main motivation behind using the FSL license for openapi-ts is to protect it from being sold by other companies. We have invested hundreds of hours into development, support, and maintenance to create a high quality product publicly available to everyone. It would not be fair for another company to come and monetize this work without giving back. The MIT license does not offer any protection if this ever happens. 15 - 16 - ### What's a permitted usage? 17 - 18 - You are free to generate code with openapi-ts and use the generated code in commercial and non-commercial projects, as long as you do not charge your customers for the code generation. Prior to the license change from MIT on Sep 4th 2024, every use case fell under the permitted usage. 19 - 20 - ### What's NOT a permitted usage? 21 - 22 - If you're using openapi-ts to sell competing services related to API tooling such as SDK generation, documentation generation, or API breaking change detection, these are excluded from permitted usage. Feel free to contact us if you're unsure about your use case! 23 - 24 - ### Which license does the generated code use? 25 - 26 - The code generated by openapi-ts must follow the permitted usage outlined above. For example, it's fine to consume or publish the generated clients, but you cannot charge your customers for doing so. 27 - 28 - ## Feedback 29 - 30 - We understand that your life would be easier if every package used the MIT license. At the same time, it's important to protect our work, so we can keep maintaining it without fear of being exploited by predatory companies. If you have any feedback about licensing, we would love to hear your thoughts in the [discussion](https://github.com/orgs/hey-api/discussions/1141).
+1 -1
package.json
··· 11 11 "bugs": { 12 12 "url": "https://github.com/hey-api/openapi-ts/issues" 13 13 }, 14 - "license": "FSL-1.1-MIT", 14 + "license": "MIT", 15 15 "author": { 16 16 "email": "lubos@heyapi.dev", 17 17 "name": "Lubos Menus",
+8 -97
packages/openapi-ts/LICENSE.md
··· 1 - # Functional Source License, Version 1.1, MIT Future License 2 - 3 - ## Abbreviation 1 + MIT License 4 2 5 - FSL-1.1-MIT 6 - 7 - ## Notice 3 + Copyright (c) Hey API 8 4 9 - Copyright 2024 Hey API 10 - 11 - ## Terms and Conditions 12 - 13 - ### Licensor ("We") 14 - 15 - The party offering the Software under these Terms and Conditions. 16 - 17 - ### The Software 18 - 19 - The "Software" is each version of the software that we make available under 20 - these Terms and Conditions, as indicated by our inclusion of these Terms and 21 - Conditions with the Software. 22 - 23 - ### License Grant 24 - 25 - Subject to your compliance with this License Grant and the Patents, 26 - Redistribution and Trademark clauses below, we hereby grant you the right to 27 - use, copy, modify, create derivative works, publicly perform, publicly display 28 - and redistribute the Software for any Permitted Purpose identified below. 29 - 30 - ### Permitted Purpose 31 - 32 - A Permitted Purpose is any purpose other than a Competing Use. A Competing Use 33 - means making the Software available to others in a commercial product or 34 - service that: 35 - 36 - 1. substitutes for the Software; 37 - 38 - 2. substitutes for any other product or service we offer using the Software 39 - that exists as of the date we make the Software available; or 40 - 41 - 3. offers the same or substantially similar functionality as the Software. 42 - 43 - Permitted Purposes specifically include using the Software: 44 - 45 - 1. for your internal use and access; 46 - 47 - 2. for non-commercial education; 48 - 49 - 3. for non-commercial research; and 50 - 51 - 4. in connection with professional services that you provide to a licensee 52 - using the Software in accordance with these Terms and Conditions. 53 - 54 - ### Patents 55 - 56 - To the extent your use for a Permitted Purpose would necessarily infringe our 57 - patents, the license grant above includes a license under our patents. If you 58 - make a claim against any party that the Software infringes or contributes to 59 - the infringement of any patent, then your patent license to the Software ends 60 - immediately. 61 - 62 - ### Redistribution 63 - 64 - The Terms and Conditions apply to all copies, modifications and derivatives of 65 - the Software. 66 - 67 - If you redistribute any copies, modifications or derivatives of the Software, 68 - you must include a copy of or a link to these Terms and Conditions and not 69 - remove any copyright notices provided in or with the Software. 70 - 71 - ### Disclaimer 72 - 73 - THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR 74 - IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR 75 - PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT. 76 - 77 - IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE 78 - SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, 79 - EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE. 80 - 81 - ### Trademarks 82 - 83 - Except for displaying the License Details and identifying us as the origin of 84 - the Software, you have no right under these Terms and Conditions to use our 85 - trademarks, trade names, service marks or product names. 86 - 87 - ## Grant of Future License 88 - 89 - We hereby irrevocably grant you an additional license to use the Software under 90 - the MIT license that is effective on the second anniversary of the date we make 91 - the Software available. On or after that date, you may use the Software under 92 - the MIT license, in which case the following will apply: 93 - 94 - Permission is hereby granted, free of charge, to any person obtaining a copy of 95 - this software and associated documentation files (the "Software"), to deal in 96 - the Software without restriction, including without limitation the rights to 97 - use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 98 - of the Software, and to permit persons to whom the Software is furnished to do 99 - so, subject to the following conditions: 5 + Permission is hereby granted, free of charge, to any person obtaining a copy 6 + of this software and associated documentation files (the "Software"), to deal 7 + in the Software without restriction, including without limitation the rights 8 + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 + copies of the Software, and to permit persons to whom the Software is 10 + furnished to do so, subject to the following conditions: 100 11 101 12 The above copyright notice and this permission notice shall be included in all 102 13 copies or substantial portions of the Software.
+1 -1
packages/openapi-ts/package.json
··· 10 10 "bugs": { 11 11 "url": "https://github.com/hey-api/openapi-ts/issues" 12 12 }, 13 - "license": "FSL-1.1-MIT", 13 + "license": "MIT", 14 14 "author": { 15 15 "email": "lubos@heyapi.dev", 16 16 "name": "Lubos Menus",