@julanzw/ttoolbox-discordjs-framework 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/LICENSE +675 -0
  2. package/README.md +77 -0
  3. package/dist/classes/Command.class.d.ts +169 -0
  4. package/dist/classes/Command.class.js +156 -0
  5. package/dist/classes/CommandManager.class.d.ts +69 -0
  6. package/dist/classes/CommandManager.class.js +149 -0
  7. package/dist/classes/DiscordHandler.class.d.ts +241 -0
  8. package/dist/classes/DiscordHandler.class.js +222 -0
  9. package/dist/classes/InteractionError.class.d.ts +8 -0
  10. package/dist/classes/InteractionError.class.js +11 -0
  11. package/dist/classes/ModalManager.class.d.ts +154 -0
  12. package/dist/classes/ModalManager.class.js +205 -0
  13. package/dist/classes/SubcommandGroup.class.d.ts +127 -0
  14. package/dist/classes/SubcommandGroup.class.js +156 -0
  15. package/dist/index.d.ts +18 -0
  16. package/dist/index.js +17 -0
  17. package/dist/types/button.d.ts +2 -0
  18. package/dist/types/button.js +1 -0
  19. package/dist/types/channel.d.ts +2 -0
  20. package/dist/types/channel.js +1 -0
  21. package/dist/types/logger.d.ts +37 -0
  22. package/dist/types/logger.js +1 -0
  23. package/dist/types/modal.d.ts +77 -0
  24. package/dist/types/modal.js +1 -0
  25. package/dist/types/permission.d.ts +2 -0
  26. package/dist/types/permission.js +1 -0
  27. package/dist/utils/PaginatedEmbed.class.d.ts +25 -0
  28. package/dist/utils/PaginatedEmbed.class.js +102 -0
  29. package/dist/utils/TToolboxLogger.class.d.ts +176 -0
  30. package/dist/utils/TToolboxLogger.class.js +252 -0
  31. package/dist/utils/cooldown.d.ts +13 -0
  32. package/dist/utils/cooldown.js +43 -0
  33. package/dist/utils/editAndReply.d.ts +37 -0
  34. package/dist/utils/editAndReply.js +85 -0
  35. package/dist/utils/embeds.d.ts +55 -0
  36. package/dist/utils/embeds.js +94 -0
  37. package/dist/utils/formatting.d.ts +44 -0
  38. package/dist/utils/formatting.js +87 -0
  39. package/dist/utils/miliseconds.d.ts +10 -0
  40. package/dist/utils/miliseconds.js +11 -0
  41. package/dist/utils/permissions.d.ts +8 -0
  42. package/dist/utils/permissions.js +24 -0
  43. package/dist/utils/slashCommandOptions.d.ts +8 -0
  44. package/dist/utils/slashCommandOptions.js +11 -0
  45. package/package.json +50 -0
package/LICENSE ADDED
@@ -0,0 +1,675 @@
1
+ GNU AFFERO GENERAL PUBLIC LICENSE
2
+
3
+ Copyright (C) 2026 JulanZ
4
+
5
+ Everyone is permitted to copy and distribute verbatim copies of this
6
+ license document, but changing it is not allowed.
7
+
8
+ Preamble
9
+
10
+ The GNU Affero
11
+ General Public License is a free, copyleft license for software and other kinds
12
+ of works, specifically designed to ensure cooperation with the community in the
13
+ case of network server software.
14
+
15
+ The licenses for most software and other
16
+ practical works are designed to take away your freedom to share and change the
17
+ works. By contrast, our General Public Licenses are intended to guarantee your
18
+ freedom to share and change all versions of a program--to make sure it remains
19
+ free software for all its users.
20
+
21
+ When we speak of free software, we are
22
+ referring to freedom, not price. Our General Public Licenses are designed to make
23
+ sure that you have the freedom to distribute copies of free software (and charge
24
+ for them if you wish), that you receive source code or can get it if you want it,
25
+ that you can change the software or use pieces of it in new free programs, and
26
+ that you know you can do these things.
27
+
28
+ Developers that use our General Public
29
+ Licenses protect your rights with two steps: (1) assert copyright on the
30
+ software, and (2) offer you this License which gives you legal permission to
31
+ copy, distribute and/or modify the software.
32
+
33
+ A secondary benefit of defending
34
+ all users' freedom is that improvements made in alternate versions of the
35
+ program, if they receive widespread use, become available for other developers to
36
+ incorporate. Many developers of free software are heartened and encouraged by the
37
+ resulting cooperation. However, in the case of software used on network servers,
38
+ this result may fail to come about. The GNU General Public License permits making
39
+ a modified version and letting the public access it on a server without ever
40
+ releasing its source code to the public.
41
+
42
+ The GNU Affero General Public License
43
+ is designed specifically to ensure that, in such cases, the modified source code
44
+ becomes available to the community. It requires the operator of a network server
45
+ to provide the source code of the modified version running there to the users of
46
+ that server. Therefore, public use of a modified version, on a publicly
47
+ accessible server, gives the public access to the source code of the modified
48
+ version.
49
+
50
+ An older license, called the Affero General Public License and
51
+ published by Affero, was designed to accomplish similar goals. This is a
52
+ different license, not a version of the Affero GPL, but Affero has released a new
53
+ version of the Affero GPL which permits relicensing under this license.
54
+
55
+ The
56
+ precise terms and conditions for copying, distribution and modification
57
+ follow.
58
+
59
+ TERMS AND CONDITIONS
60
+
61
+ 1. Definitions.
62
+
63
+ "This License" refers to
64
+ version 3 of the GNU Affero General Public License.
65
+
66
+ "Copyright" also means
67
+ copyright-like laws that apply to other kinds of works, such as semiconductor
68
+ masks.
69
+
70
+ "The Program" refers to any copyrightable work licensed under this
71
+ License. Each licensee is addressed as "you". "Licensees" and "recipients" may be
72
+ individuals or organizations.
73
+
74
+ To "modify" a work means to copy from or adapt
75
+ all or part of the work in a fashion requiring copyright permission, other than
76
+ the making of an exact copy. The resulting work is called a "modified version" of
77
+ the earlier work or a work "based on" the earlier work.
78
+
79
+ A "covered work"
80
+ means either the unmodified Program or a work based on the Program.
81
+
82
+ To
83
+ "propagate" a work means to do anything with it that, without permission, would
84
+ make you directly or secondarily liable for infringement under applicable
85
+ copyright law, except executing it on a computer or modifying a private copy.
86
+ Propagation includes copying, distribution (with or without modification), making
87
+ available to the public, and in some countries other activities as well.
88
+
89
+ To
90
+ "convey" a work means any kind of propagation that enables other parties to make
91
+ or receive copies. Mere interaction with a user through a computer network, with
92
+ no transfer of a copy, is not conveying.
93
+
94
+ An interactive user interface
95
+ displays "Appropriate Legal Notices" to the extent that it includes a convenient
96
+ and prominently visible feature that (1) displays an appropriate copyright
97
+ notice, and (2) tells the user that there is no warranty for the work (except to
98
+ the extent that warranties are provided), that licensees may convey the work
99
+ under this License, and how to view a copy of this License. If the interface
100
+ presents a list of user commands or options, such as a menu, a prominent item in
101
+ the list meets this criterion.
102
+
103
+ 1. Source Code.
104
+
105
+ The "source code" for a
106
+ work means the preferred form of the work for making modifications to it. "Object
107
+ code" means any non-source form of a work.
108
+
109
+ A "Standard Interface" means an
110
+ interface that either is an official standard defined by a recognized standards
111
+ body, or, in the case of interfaces specified for a particular programming
112
+ language, one that is widely used among developers working in that language.
113
+
114
+
115
+ The "System Libraries" of an executable work include anything, other than the
116
+ work as a whole, that (a) is included in the normal form of packaging a Major
117
+ Component, but which is not part of that Major Component, and (b) serves only to
118
+ enable use of the work with that Major Component, or to implement a Standard
119
+ Interface for which an implementation is available to the public in source code
120
+ form. A "Major Component", in this context, means a major essential component
121
+ (kernel, window system, and so on) of the specific operating system (if any) on
122
+ which the executable work runs, or a compiler used to produce the work, or an
123
+ object code interpreter used to run it.
124
+
125
+ The "Corresponding Source" for a work
126
+ in object code form means all the source code needed to generate, install, and
127
+ (for an executable work) run the object code and to modify the work, including
128
+ scripts to control those activities. However, it does not include the work's
129
+ System Libraries, or general-purpose tools or generally available free programs
130
+ which are used unmodified in performing those activities but which are not part
131
+ of the work. For example, Corresponding Source includes interface definition
132
+ files associated with source files for the work, and the source code for shared
133
+ libraries and dynamically linked subprograms that the work is specifically
134
+ designed to require, such as by intimate data communication or control flow
135
+ between those
136
+
137
+ subprograms and other parts of the work.
138
+
139
+ The Corresponding
140
+ Source need not include anything that users can regenerate automatically from
141
+ other parts of the Corresponding Source.
142
+
143
+ The Corresponding Source for a work
144
+ in source code form is that same work.
145
+
146
+ 2. Basic Permissions.
147
+
148
+ All rights
149
+ granted under this License are granted for the term of copyright on the Program,
150
+ and are irrevocable provided the stated conditions are met. This License
151
+ explicitly affirms your unlimited permission to run the unmodified Program. The
152
+ output from running a covered work is covered by this License only if the output,
153
+ given its content, constitutes a covered work. This License acknowledges your
154
+ rights of fair use or other equivalent, as provided by copyright law.
155
+
156
+ You may
157
+ make, run and propagate covered works that you do not convey, without conditions
158
+ so long as your license otherwise remains in force. You may convey covered works
159
+ to others for the sole purpose of having them make modifications exclusively for
160
+ you, or provide you with facilities for running those works, provided that you
161
+ comply with the terms of this License in conveying all material for which you do
162
+ not control copyright. Those thus making or running the covered works for you
163
+ must do so exclusively on your behalf, under your direction and control, on terms
164
+ that prohibit them from making any copies of your copyrighted material outside
165
+ their relationship with you.
166
+
167
+ Conveying under any other circumstances is
168
+ permitted solely under the conditions stated below. Sublicensing is not allowed;
169
+ section 10 makes it unnecessary.
170
+
171
+ 3. Protecting Users' Legal Rights From
172
+ Anti-Circumvention Law.
173
+
174
+ No covered work shall be deemed part of an effective
175
+ technological measure under any applicable law fulfilling obligations under
176
+ article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar
177
+ laws prohibiting or restricting circumvention of such measures.
178
+
179
+ When you
180
+ convey a covered work, you waive any legal power to forbid circumvention of
181
+ technological measures to the extent such circumvention is effected by exercising
182
+ rights under this License with respect to the covered work, and you disclaim any
183
+ intention to limit operation or modification of the work as a means of enforcing,
184
+ against the work's users, your or third parties' legal rights to forbid
185
+ circumvention of technological measures.
186
+
187
+ 4. Conveying Verbatim Copies.
188
+
189
+
190
+ You may convey verbatim copies of the Program's source code as you receive it, in
191
+ any medium, provided that you conspicuously and appropriately publish on each
192
+ copy an appropriate copyright notice; keep intact all notices stating that this
193
+ License and any non-permissive terms added in accord with section 7 apply to the
194
+ code; keep intact all notices of the absence of any warranty; and give all
195
+ recipients a copy of this License along with the Program.
196
+
197
+ You may charge any
198
+ price or no price for each copy that you convey, and you may offer support or
199
+ warranty protection for a fee.
200
+
201
+ 5. Conveying Modified Source Versions.
202
+
203
+ You
204
+ may convey a work based on the Program, or the modifications to produce it from
205
+ the Program, in the form of source code under the terms of section 4, provided
206
+ that you also meet all of these conditions:
207
+
208
+ a) The work must carry
209
+ prominent notices stating that you modified it, and giving a relevant date.
210
+
211
+
212
+ b) The work must carry prominent notices stating that it is released under this
213
+ License and any conditions added under section 7. This requirement modifies the
214
+ requirement in section 4 to "keep intact all notices".
215
+
216
+ c) You must license
217
+ the entire work, as a whole, under this License to anyone who comes into
218
+ possession of a copy. This License will therefore apply, along with any
219
+ applicable section 7 additional terms, to the whole of the work, and all its
220
+ parts, regardless of how they are packaged. This License gives no permission to
221
+ license the work in any other way, but it does not invalidate such permission if
222
+ you have separately received it.
223
+
224
+ d) If the work has interactive user
225
+ interfaces, each must display Appropriate Legal Notices; however, if the Program
226
+ has interactive interfaces that do not display Appropriate Legal Notices, your
227
+ work need not make them do so.
228
+
229
+ A compilation of a covered work with other
230
+ separate and independent works, which are not by their nature extensions of the
231
+ covered work, and which are not combined with it such as to form a larger
232
+ program, in or on a volume of a storage or distribution medium, is called an
233
+ "aggregate" if the compilation and its resulting copyright are not used to limit
234
+ the access or legal rights of the compilation's users beyond what the individual
235
+ works permit. Inclusion of a covered work in an aggregate does not cause this
236
+ License to apply to the other parts of the aggregate.
237
+
238
+ 6. Conveying Non-Source
239
+ Forms.
240
+
241
+ You may convey a covered work in object code form under the terms of
242
+ sections 4 and 5, provided that you also convey the machine-readable
243
+ Corresponding Source under the terms of this License, in one of these ways:
244
+
245
+
246
+ a) Convey the object code in, or embodied in, a physical product (including a
247
+ physical distribution medium), accompanied by the Corresponding Source fixed on a
248
+ durable physical medium customarily used for software interchange.
249
+
250
+ b)
251
+ Convey the object code in, or embodied in, a physical product (including a
252
+ physical distribution medium), accompanied by a written offer, valid for at least
253
+ three years and valid for as long as you offer spare parts or customer support
254
+ for that product model, to give anyone who possesses the object code either (1) a
255
+ copy of the Corresponding Source for all the software in the product that is
256
+ covered by this License, on a durable physical medium customarily used for
257
+ software interchange, for a price no more than your reasonable cost of physically
258
+ performing this conveying of source, or (2) access to copy the Corresponding
259
+ Source from a network server at no charge.
260
+
261
+ c) Convey individual copies of
262
+ the object code with a copy of the written offer to provide the Corresponding
263
+ Source. This alternative is allowed only occasionally and noncommercially, and
264
+ only if you received the object code with such an offer, in accord with
265
+ subsection 6b.
266
+
267
+ d) Convey the object code by offering access from a
268
+ designated place (gratis or for a charge), and offer equivalent access to the
269
+ Corresponding Source in the same way through the same place at no further charge.
270
+ You need not require recipients to copy the Corresponding Source along with the
271
+ object code. If the place to copy the object code is a network server, the
272
+ Corresponding Source may be on a different server (operated by you or a third
273
+ party) that supports equivalent copying facilities, provided you maintain clear
274
+ directions next to the object code saying where to find the Corresponding Source.
275
+ Regardless of what server hosts the Corresponding Source, you remain obligated to
276
+ ensure that it is available for as long as needed to satisfy these
277
+ requirements.
278
+
279
+ e) Convey the object code using peer-to-peer transmission,
280
+ provided you inform other peers where the object code and Corresponding Source of
281
+ the work are being offered to the general public at no charge under subsection
282
+ 6d.
283
+
284
+ A separable portion of the object code, whose source code is excluded
285
+ from the Corresponding Source as a System Library, need not be included in
286
+ conveying the object code work.
287
+
288
+ A "User Product" is either (1) a "consumer
289
+ product", which means any tangible personal property which is normally used for
290
+ personal, family, or household purposes, or (2) anything designed or sold for
291
+ incorporation into a dwelling. In determining whether a product is a consumer
292
+ product, doubtful cases shall be resolved in favor of coverage. For a particular
293
+ product received by a particular user, "normally used" refers to a typical or
294
+ common use of that class of product, regardless of the status of the particular
295
+ user or of the way in which the particular user actually uses, or expects or is
296
+ expected to use, the product. A product is a consumer product regardless of
297
+ whether the product has substantial commercial, industrial or non-consumer uses,
298
+ unless such uses represent the only significant mode of use of the product.
299
+
300
+
301
+ "Installation Information" for a User Product means any methods, procedures,
302
+ authorization keys, or other information required to install and execute modified
303
+ versions of a covered work in that User Product from a modified version of its
304
+ Corresponding Source. The information must suffice to ensure that the continued
305
+ functioning of the modified object code is in no case prevented or interfered
306
+ with solely because modification has been made.
307
+
308
+ If you convey an object code
309
+ work under this section in, or with, or specifically for use in, a User Product,
310
+ and the conveying occurs as part of a transaction in which the right of
311
+ possession and use of the User Product is transferred to the recipient in
312
+ perpetuity or for a fixed term (regardless of how the transaction is
313
+ characterized), the Corresponding Source conveyed under this section must be
314
+ accompanied by the Installation Information. But this requirement does not apply
315
+ if neither you nor any third party retains the ability to install modified object
316
+ code on the User Product (for example, the work has been installed in ROM).
317
+
318
+
319
+ The requirement to provide Installation Information does not include a
320
+ requirement to continue to provide support service, warranty, or updates for a
321
+ work that has been modified or installed by the recipient, or for the User
322
+ Product in which it has been modified or installed. Access to a network may be
323
+ denied when the modification itself materially and adversely affects the
324
+ operation of the network or violates the rules and protocols for communication
325
+ across the network.
326
+
327
+ Corresponding Source conveyed, and Installation
328
+ Information provided, in accord with this section must be in a format that is
329
+ publicly documented (and with an implementation available to the public in source
330
+ code form), and must require no special password or key for unpacking, reading or
331
+ copying.
332
+
333
+ 7. Additional Terms.
334
+
335
+ "Additional permissions" are terms that
336
+ supplement the terms of this License by making exceptions from one or more of its
337
+ conditions. Additional permissions that are applicable to the entire Program
338
+ shall be treated as though they were included in this License, to the extent that
339
+ they are valid under applicable law. If additional permissions apply only to part
340
+ of the Program, that part may be used separately under those permissions, but the
341
+ entire Program remains governed by this License without regard to the additional
342
+ permissions.
343
+
344
+ When you convey a copy of a covered work, you may at your option
345
+ remove any additional permissions from that copy, or from any part of it.
346
+ (Additional permissions may be written to require their own removal in certain
347
+ cases when you modify the work.) You may place additional permissions on
348
+ material, added by you to a covered work, for which you have or can give
349
+ appropriate copyright permission.
350
+
351
+ Notwithstanding any other provision of this
352
+ License, for material you add to a covered work, you may (if authorized by the
353
+ copyright holders of that material) supplement the terms of this License with
354
+ terms:
355
+
356
+ a) Disclaiming warranty or limiting liability differently from the
357
+ terms of sections 15 and 16 of this License; or
358
+
359
+ b) Requiring preservation
360
+ of specified reasonable legal notices or author attributions in that material or
361
+ in the Appropriate Legal Notices displayed by works containing it; or
362
+
363
+ c)
364
+ Prohibiting misrepresentation of the origin of that material, or requiring that
365
+ modified versions of such material be marked in reasonable ways as different from
366
+ the original version; or
367
+
368
+ d) Limiting the use for publicity purposes of
369
+ names of licensors or authors of the material; or
370
+
371
+ e) Declining to grant
372
+ rights under trademark law for use of some trade names, trademarks, or service
373
+ marks; or
374
+
375
+ f) Requiring indemnification of licensors and authors of that
376
+ material by anyone who conveys the material (or modified versions of it) with
377
+ contractual assumptions of liability to the recipient, for any liability that
378
+ these contractual assumptions directly impose on those licensors and authors.
379
+
380
+
381
+ All other non-permissive additional terms are considered "further restrictions"
382
+ within the meaning of section 10. If the Program as you received it, or any part
383
+ of it, contains a notice stating that it is governed by this License along with a
384
+ term that is a further restriction, you may remove that term. If a license
385
+ document contains a further restriction but permits relicensing or conveying
386
+ under this License, you may add to a covered work material governed by the terms
387
+ of that license document, provided that the further restriction does not survive
388
+ such relicensing or conveying.
389
+
390
+ If you add terms to a covered work in accord
391
+ with this section, you must place, in the relevant source files, a statement of
392
+ the additional terms that apply to those files, or a notice indicating where to
393
+ find the applicable terms.
394
+
395
+ Additional terms, permissive or non-permissive,
396
+ may be stated in the form of a separately written license, or stated as
397
+ exceptions; the above requirements apply either way.
398
+
399
+ 8. Termination.
400
+
401
+ You
402
+ may not propagate or modify a covered work except as expressly provided under
403
+ this License. Any attempt otherwise to propagate or modify it is void, and will
404
+ automatically terminate your rights under this License (including any patent
405
+ licenses granted under the third paragraph of section 11).
406
+
407
+ However, if you
408
+ cease all violation of this License, then your license from a particular
409
+ copyright holder is reinstated (a) provisionally, unless and until the copyright
410
+ holder explicitly and finally terminates your license, and (b) permanently, if
411
+ the copyright holder fails to notify you of the violation by some reasonable
412
+ means prior to 60 days after the cessation.
413
+
414
+ Moreover, your license from a
415
+ particular copyright holder is reinstated permanently if the copyright holder
416
+ notifies you of the violation by some reasonable means, this is the first time
417
+ you have received notice of violation of this License (for any work) from that
418
+ copyright holder, and you cure the violation prior to 30 days after your receipt
419
+ of the notice.
420
+
421
+ Termination of your rights under this section does not
422
+ terminate the licenses of parties who have received copies or rights from you
423
+ under this License. If your rights have been terminated and not permanently
424
+ reinstated, you do not qualify to receive new licenses for the same material
425
+ under section 10.
426
+
427
+ 9. Acceptance Not Required for Having Copies.
428
+
429
+ You are
430
+ not required to accept this License in order to receive or run a copy of the
431
+ Program. Ancillary propagation of a covered work occurring solely as a
432
+ consequence of using peer-to-peer transmission to receive a copy likewise does
433
+ not require acceptance. However, nothing other than this License grants you
434
+ permission to propagate or modify any covered work. These actions infringe
435
+ copyright if you do not accept this License. Therefore, by modifying or
436
+ propagating a covered work, you indicate your acceptance of this License to do
437
+ so.
438
+
439
+ 10. Automatic Licensing of Downstream Recipients.
440
+
441
+ Each time you
442
+ convey a covered work, the recipient automatically receives a license from the
443
+ original licensors, to run, modify and propagate that work, subject to this
444
+ License. You are not responsible for enforcing compliance by third parties with
445
+ this License.
446
+
447
+ An "entity transaction" is a transaction transferring control
448
+ of an organization, or substantially all assets of one, or subdividing an
449
+ organization, or merging organizations. If propagation of a covered work results
450
+ from an entity transaction, each party to that transaction who receives a copy of
451
+ the work also receives whatever licenses to the work the party's predecessor in
452
+ interest had or could give under the previous paragraph, plus a right to
453
+ possession of the Corresponding Source of the work from the predecessor in
454
+ interest, if the predecessor has it or can get it with reasonable efforts.
455
+
456
+
457
+ You may not impose any further restrictions on the exercise of the rights granted
458
+ or affirmed under this License. For example, you may not impose a license fee,
459
+ royalty, or other charge for exercise of rights granted under this License, and
460
+ you may not initiate litigation (including a cross-claim or counterclaim in a
461
+ lawsuit) alleging that any patent claim is infringed by making, using, selling,
462
+ offering for sale, or importing the Program or any portion of it.
463
+
464
+ 11.
465
+ Patents.
466
+
467
+ A "contributor" is a copyright holder who authorizes use under this
468
+ License of the Program or a work on which the Program is based. The work thus
469
+ licensed is called the contributor's "contributor version".
470
+
471
+ A contributor's
472
+ "essential patent claims" are all patent claims owned or controlled by the
473
+ contributor, whether already acquired or hereafter acquired, that would be
474
+ infringed by some manner, permitted by this License, of making, using, or selling
475
+ its contributor version, but do not include claims that would be infringed only
476
+ as a consequence of further modification of the contributor version. For purposes
477
+ of this definition, "control" includes the right to grant patent sublicenses in a
478
+ manner consistent with the requirements of this License.
479
+
480
+ Each contributor
481
+ grants you a non-exclusive, worldwide, royalty-free patent license under the
482
+ contributor's essential patent claims, to make, use, sell, offer for sale, import
483
+ and otherwise run, modify and propagate the contents of its contributor
484
+ version.
485
+
486
+ In the following three paragraphs, a "patent license" is any express
487
+ agreement or commitment, however denominated, not to enforce a patent (such as an
488
+ express permission to practice a patent or covenant not to s ue for patent
489
+ infringement). To "grant" such a patent license to a party means to make such an
490
+ agreement or commitment not to enforce a patent against the party.
491
+
492
+ If you
493
+ convey a covered work, knowingly relying on a patent license, and the
494
+ Corresponding Source of the work is not available for anyone to copy, free of
495
+ charge and under the terms of this License, through a publicly available network
496
+ server or other readily accessible means, then you must either (1) cause the
497
+ Corresponding Source to be so available, or (2) arrange to deprive yourself of
498
+ the benefit of the patent license for this particular work, or (3) arrange, in a
499
+ manner consistent with the requirements of this License, to extend the patent
500
+
501
+
502
+ license to downstream recipients. "Knowingly relying" means you have actual
503
+ knowledge that, but for the patent license, your conveying the covered work in a
504
+ country, or your recipient's use of the covered work in a country, would infringe
505
+ one or more identifiable patents in that country that you have reason to believe
506
+ are valid.
507
+
508
+ If, pursuant to or in connection with a single transaction or
509
+ arrangement, you convey, or propagate by procuring conveyance of, a covered work,
510
+ and grant a patent license to some of the parties receiving the covered work
511
+ authorizing them to use, propagate, modify or convey a specific copy of the
512
+ covered work, then the patent license you grant is automatically extended to all
513
+ recipients of the covered work and works based on it.
514
+
515
+ A patent license is
516
+ "discriminatory" if it does not include within the scope of its coverage,
517
+ prohibits the exercise of, or is conditioned on the non-exercise of one or more
518
+ of the rights that are specifically granted under this License. You may not
519
+ convey a covered work if you are a party to an arrangement with a third party
520
+ that is in the business of distributing software, under which you make payment to
521
+ the third party based on the extent of your activity of conveying the work, and
522
+ under which the third party grants, to any of the parties who would receive the
523
+ covered work from you, a discriminatory patent license (a) in connection with
524
+ copies of the covered work conveyed by you (or copies made from those copies), or
525
+ (b) primarily for and in connection with specific products or compilations that
526
+ contain the covered work, unless you entered into that arrangement, or that
527
+ patent license was granted, prior to 28 March 2007.
528
+
529
+ Nothing in this License
530
+ shall be construed as excluding or limiting any implied license or other defenses
531
+ to infringement that may otherwise be available to you under applicable patent
532
+ law.
533
+
534
+ 12. No Surrender of Others' Freedom.
535
+
536
+ If conditions are imposed on
537
+ you (whether by court order, agreement or otherwise) that contradict the
538
+ conditions of this License, they do not excuse you from the conditions of this
539
+ License. If you cannot convey a covered work so as to satisfy simultaneously your
540
+ obligations under this License and any other pertinent obligations, then as a
541
+ consequence you may
542
+
543
+ not convey it at all. For example, if you agree to terms
544
+ that obligate you to collect a royalty for further conveying from those to whom
545
+ you convey the Program, the only way you could satisfy both those terms and this
546
+ License would be to refrain entirely from conveying the Program.
547
+
548
+ 13. Remote
549
+ Network Interaction; Use with the GNU General Public License.
550
+
551
+ Notwithstanding
552
+ any other provision of this License, if you modify the Program, your modified
553
+ version must prominently offer all users interacting with it remotely through a
554
+ computer network (if your version supports such interaction) an opportunity to
555
+ receive the Corresponding Source of your version by providing access to the
556
+ Corresponding Source from a network server at no charge, through some standard or
557
+ customary means of facilitating copying of software. This Corresponding Source
558
+ shall include the Corresponding Source for any work covered by version 3 of the
559
+ GNU General Public License that is incorporated pursuant to the following
560
+ paragraph.
561
+
562
+ Notwithstanding any other provision of this License, you have
563
+ permission to link or combine any covered work with a work licensed under version
564
+ 3 of the GNU General Public License into a single combined work, and to convey
565
+ the resulting work. The terms of this License will continue to apply to the part
566
+ which is the covered work, but the work with which it is combined will remain
567
+ governed by version 3 of the GNU General Public License.
568
+
569
+ 14. Revised Versions
570
+ of this License.
571
+
572
+ The Free Software Foundation may publish revised and/or new
573
+ versions of the GNU Affero General Public License from time to time. Such new
574
+ versions will be similar in spirit to the present version, but may differ in
575
+ detail to address new problems or concerns.
576
+
577
+ Each version is given a
578
+ distinguishing version number. If the Program specifies that a certain numbered
579
+ version of the GNU Affero General Public License "or any later version" applies
580
+ to it, you have the option of following the terms and conditions either of that
581
+ numbered version or of any later version published by the Free Software
582
+ Foundation. If the Program does not specify a version number of the GNU Affero
583
+ General Public License, you may choose any version ever published by the Free
584
+ Software Foundation.
585
+
586
+ If the Program specifies that a proxy can decide which
587
+ future versions of the GNU Affero General Public License can be used, that
588
+ proxy's public statement of acceptance of a version permanently authorizes you to
589
+ choose that version for the Program.
590
+
591
+ Later license versions may give you
592
+ additional or different permissions. However, no additional obligations are
593
+ imposed on any author or copyright holder as a result of your choosing to follow
594
+ a later version.
595
+
596
+ 15. Disclaimer of Warranty.
597
+
598
+ THERE IS NO WARRANTY FOR THE
599
+ PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED
600
+ IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS"
601
+ WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT
602
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
603
+ PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
604
+ PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
605
+ ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
606
+
607
+ 16. Limitation of Liability.
608
+
609
+
610
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY
611
+ COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS
612
+ PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
613
+ INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
614
+ THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED
615
+ INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE
616
+ PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY
617
+ HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
618
+
619
+ 17. Interpretation of
620
+ Sections 15 and 16.
621
+
622
+ If the disclaimer of warranty and limitation of liability
623
+ provided above cannot be given local legal effect according to their terms,
624
+ reviewing courts shall apply local law that most closely approximates an absolute
625
+ waiver of all civil liability in connection with the Program, unless a warranty
626
+ or assumption of liability accompanies a copy of the Program in return for a fee.
627
+ END OF TERMS AND CONDITIONS
628
+
629
+ How to Apply These Terms to Your New Programs
630
+
631
+ If
632
+ you develop a new program, and you want it to be of the greatest possible use to
633
+ the public, the best way to achieve this is to make it free software which
634
+ everyone can redistribute and change under these terms.
635
+
636
+ To do so, attach the
637
+ following notices to the program. It is safest to attach them to the start of
638
+ each source file to most effectively state the exclusion of warranty; and each
639
+ file should have at least the "copyright" line and a pointer to where the full
640
+ notice is found.
641
+
642
+ <one line to give the program's name and a brief idea of what
643
+ it does.>
644
+
645
+ Copyright (C) 2026 <name of author>
646
+
647
+ This program is free software:
648
+ you can redistribute it and/or modify it under the terms of the GNU Affero
649
+ General Public License as published by the Free Software Foundation, either
650
+ version 3 of the License, or (at your option) any later version.
651
+
652
+ This program is
653
+ distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
654
+ even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
655
+ See the GNU Affero General Public License for more details.
656
+
657
+ You should have
658
+ received a copy of the GNU Affero General Public License along with this program.
659
+ If not, see <https://www.gnu.org/licenses/>.
660
+
661
+ Also add information on how to
662
+ contact you by electronic and paper mail.
663
+
664
+ If your software can interact with
665
+ users remotely through a computer network, you should also make sure that it
666
+ provides a way for users to get its source. For example, if your program is a web
667
+ application, its interface could display a "Source" link that leads users to an
668
+ archive of the code. There are many ways you could offer source, and different
669
+ solutions will be better for different programs; see section 13 for the specific
670
+ requirements.
671
+
672
+ You should also get your employer (if you work as a programmer) or
673
+ school, if any, to sign a "copyright disclaimer" for the program, if necessary.
674
+ For more information on this, and how to apply and follow the GNU AGPL, see
675
+ <https://www.gnu.org/licenses/>.