github.com/safedep/dry@v0.0.0-20241016050132-a15651f0548b/api/api.gen.go (about)

     1  // Package api provides primitives to interact with the openapi HTTP API.
     2  //
     3  // Code generated by github.com/deepmap/oapi-codegen version v1.10.1 DO NOT EDIT.
     4  package api
     5  
     6  import (
     7  	"encoding/json"
     8  	"fmt"
     9  )
    10  
    11  // Defines values for ApiErrorCode.
    12  const (
    13  	ApiErrorCodeApiGuardError ApiErrorCode = "api_guard_error"
    14  
    15  	ApiErrorCodeApiGuardInvalidCredentials ApiErrorCode = "api_guard_invalid_credentials"
    16  
    17  	ApiErrorCodeApiGuardRateLimitExceeded ApiErrorCode = "api_guard_rate_limit_exceeded"
    18  
    19  	ApiErrorCodeApiGuardUnauthorized ApiErrorCode = "api_guard_unauthorized"
    20  
    21  	ApiErrorCodeAppGenericError ApiErrorCode = "app_generic_error"
    22  
    23  	ApiErrorCodeAppPackageVersionNotFound ApiErrorCode = "app_package_version_not_found"
    24  )
    25  
    26  // Defines values for ApiErrorType.
    27  const (
    28  	ApiErrorTypeInternalError ApiErrorType = "internal_error"
    29  
    30  	ApiErrorTypeInvalidRequest ApiErrorType = "invalid_request"
    31  
    32  	ApiErrorTypeOperationFailed ApiErrorType = "operation_failed"
    33  )
    34  
    35  // Defines values for License.
    36  const (
    37  	LicenseAAL License = "AAL"
    38  
    39  	LicenseADSL License = "ADSL"
    40  
    41  	LicenseAFL11 License = "AFL-1.1"
    42  
    43  	LicenseAFL12 License = "AFL-1.2"
    44  
    45  	LicenseAFL20 License = "AFL-2.0"
    46  
    47  	LicenseAFL21 License = "AFL-2.1"
    48  
    49  	LicenseAFL30 License = "AFL-3.0"
    50  
    51  	LicenseAGPL10 License = "AGPL-1.0"
    52  
    53  	LicenseAGPL10Only License = "AGPL-1.0-only"
    54  
    55  	LicenseAGPL10OrLater License = "AGPL-1.0-or-later"
    56  
    57  	LicenseAGPL30 License = "AGPL-3.0"
    58  
    59  	LicenseAGPL30Only License = "AGPL-3.0-only"
    60  
    61  	LicenseAGPL30OrLater License = "AGPL-3.0-or-later"
    62  
    63  	LicenseAMDPLPA License = "AMDPLPA"
    64  
    65  	LicenseAML License = "AML"
    66  
    67  	LicenseAMPAS License = "AMPAS"
    68  
    69  	LicenseANTLRPD License = "ANTLR-PD"
    70  
    71  	LicenseANTLRPDFallback License = "ANTLR-PD-fallback"
    72  
    73  	LicenseAPAFML License = "APAFML"
    74  
    75  	LicenseAPL10 License = "APL-1.0"
    76  
    77  	LicenseAPSL10 License = "APSL-1.0"
    78  
    79  	LicenseAPSL11 License = "APSL-1.1"
    80  
    81  	LicenseAPSL12 License = "APSL-1.2"
    82  
    83  	LicenseAPSL20 License = "APSL-2.0"
    84  
    85  	LicenseAbstyles License = "Abstyles"
    86  
    87  	LicenseAdobe2006 License = "Adobe-2006"
    88  
    89  	LicenseAdobeGlyph License = "Adobe-Glyph"
    90  
    91  	LicenseAfmparse License = "Afmparse"
    92  
    93  	LicenseAladdin License = "Aladdin"
    94  
    95  	LicenseApache10 License = "Apache-1.0"
    96  
    97  	LicenseApache11 License = "Apache-1.1"
    98  
    99  	LicenseApache20 License = "Apache-2.0"
   100  
   101  	LicenseAppS2p License = "App-s2p"
   102  
   103  	LicenseArphic1999 License = "Arphic-1999"
   104  
   105  	LicenseArtistic10 License = "Artistic-1.0"
   106  
   107  	LicenseArtistic10Cl8 License = "Artistic-1.0-cl8"
   108  
   109  	LicenseArtistic10Perl License = "Artistic-1.0-Perl"
   110  
   111  	LicenseArtistic20 License = "Artistic-2.0"
   112  
   113  	LicenseBSD1Clause License = "BSD-1-Clause"
   114  
   115  	LicenseBSD2Clause License = "BSD-2-Clause"
   116  
   117  	LicenseBSD2ClauseFreeBSD License = "BSD-2-Clause-FreeBSD"
   118  
   119  	LicenseBSD2ClauseNetBSD License = "BSD-2-Clause-NetBSD"
   120  
   121  	LicenseBSD2ClausePatent License = "BSD-2-Clause-Patent"
   122  
   123  	LicenseBSD2ClauseViews License = "BSD-2-Clause-Views"
   124  
   125  	LicenseBSD3Clause License = "BSD-3-Clause"
   126  
   127  	LicenseBSD3ClauseAttribution License = "BSD-3-Clause-Attribution"
   128  
   129  	LicenseBSD3ClauseClear License = "BSD-3-Clause-Clear"
   130  
   131  	LicenseBSD3ClauseLBNL License = "BSD-3-Clause-LBNL"
   132  
   133  	LicenseBSD3ClauseModification License = "BSD-3-Clause-Modification"
   134  
   135  	LicenseBSD3ClauseNoMilitaryLicense License = "BSD-3-Clause-No-Military-License"
   136  
   137  	LicenseBSD3ClauseNoNuclearLicense License = "BSD-3-Clause-No-Nuclear-License"
   138  
   139  	LicenseBSD3ClauseNoNuclearLicense2014 License = "BSD-3-Clause-No-Nuclear-License-2014"
   140  
   141  	LicenseBSD3ClauseNoNuclearWarranty License = "BSD-3-Clause-No-Nuclear-Warranty"
   142  
   143  	LicenseBSD3ClauseOpenMPI License = "BSD-3-Clause-Open-MPI"
   144  
   145  	LicenseBSD4Clause License = "BSD-4-Clause"
   146  
   147  	LicenseBSD4ClauseShortened License = "BSD-4-Clause-Shortened"
   148  
   149  	LicenseBSD4ClauseUC License = "BSD-4-Clause-UC"
   150  
   151  	LicenseBSDProtection License = "BSD-Protection"
   152  
   153  	LicenseBSDSourceCode License = "BSD-Source-Code"
   154  
   155  	LicenseBSL10 License = "BSL-1.0"
   156  
   157  	LicenseBUSL11 License = "BUSL-1.1"
   158  
   159  	LicenseBaekmuk License = "Baekmuk"
   160  
   161  	LicenseBahyph License = "Bahyph"
   162  
   163  	LicenseBarr License = "Barr"
   164  
   165  	LicenseBeerware License = "Beerware"
   166  
   167  	LicenseBitTorrent10 License = "BitTorrent-1.0"
   168  
   169  	LicenseBitTorrent11 License = "BitTorrent-1.1"
   170  
   171  	LicenseBitstreamVera License = "Bitstream-Vera"
   172  
   173  	LicenseBlessing License = "blessing"
   174  
   175  	LicenseBlueOak100 License = "BlueOak-1.0.0"
   176  
   177  	LicenseBorceux License = "Borceux"
   178  
   179  	LicenseBzip2105 License = "bzip2-1.0.5"
   180  
   181  	LicenseBzip2106 License = "bzip2-1.0.6"
   182  
   183  	LicenseCAL10 License = "CAL-1.0"
   184  
   185  	LicenseCAL10CombinedWorkException License = "CAL-1.0-Combined-Work-Exception"
   186  
   187  	LicenseCATOSL11 License = "CATOSL-1.1"
   188  
   189  	LicenseCC010 License = "CC0-1.0"
   190  
   191  	LicenseCCBY10 License = "CC-BY-1.0"
   192  
   193  	LicenseCCBY20 License = "CC-BY-2.0"
   194  
   195  	LicenseCCBY25 License = "CC-BY-2.5"
   196  
   197  	LicenseCCBY25AU License = "CC-BY-2.5-AU"
   198  
   199  	LicenseCCBY30 License = "CC-BY-3.0"
   200  
   201  	LicenseCCBY30AT License = "CC-BY-3.0-AT"
   202  
   203  	LicenseCCBY30DE License = "CC-BY-3.0-DE"
   204  
   205  	LicenseCCBY30IGO License = "CC-BY-3.0-IGO"
   206  
   207  	LicenseCCBY30NL License = "CC-BY-3.0-NL"
   208  
   209  	LicenseCCBY30US License = "CC-BY-3.0-US"
   210  
   211  	LicenseCCBY40 License = "CC-BY-4.0"
   212  
   213  	LicenseCCBYNC10 License = "CC-BY-NC-1.0"
   214  
   215  	LicenseCCBYNC20 License = "CC-BY-NC-2.0"
   216  
   217  	LicenseCCBYNC25 License = "CC-BY-NC-2.5"
   218  
   219  	LicenseCCBYNC30 License = "CC-BY-NC-3.0"
   220  
   221  	LicenseCCBYNC30DE License = "CC-BY-NC-3.0-DE"
   222  
   223  	LicenseCCBYNC40 License = "CC-BY-NC-4.0"
   224  
   225  	LicenseCCBYNCND10 License = "CC-BY-NC-ND-1.0"
   226  
   227  	LicenseCCBYNCND20 License = "CC-BY-NC-ND-2.0"
   228  
   229  	LicenseCCBYNCND25 License = "CC-BY-NC-ND-2.5"
   230  
   231  	LicenseCCBYNCND30 License = "CC-BY-NC-ND-3.0"
   232  
   233  	LicenseCCBYNCND30DE License = "CC-BY-NC-ND-3.0-DE"
   234  
   235  	LicenseCCBYNCND30IGO License = "CC-BY-NC-ND-3.0-IGO"
   236  
   237  	LicenseCCBYNCND40 License = "CC-BY-NC-ND-4.0"
   238  
   239  	LicenseCCBYNCSA10 License = "CC-BY-NC-SA-1.0"
   240  
   241  	LicenseCCBYNCSA20 License = "CC-BY-NC-SA-2.0"
   242  
   243  	LicenseCCBYNCSA20FR License = "CC-BY-NC-SA-2.0-FR"
   244  
   245  	LicenseCCBYNCSA20UK License = "CC-BY-NC-SA-2.0-UK"
   246  
   247  	LicenseCCBYNCSA25 License = "CC-BY-NC-SA-2.5"
   248  
   249  	LicenseCCBYNCSA30 License = "CC-BY-NC-SA-3.0"
   250  
   251  	LicenseCCBYNCSA30DE License = "CC-BY-NC-SA-3.0-DE"
   252  
   253  	LicenseCCBYNCSA30IGO License = "CC-BY-NC-SA-3.0-IGO"
   254  
   255  	LicenseCCBYNCSA40 License = "CC-BY-NC-SA-4.0"
   256  
   257  	LicenseCCBYND10 License = "CC-BY-ND-1.0"
   258  
   259  	LicenseCCBYND20 License = "CC-BY-ND-2.0"
   260  
   261  	LicenseCCBYND25 License = "CC-BY-ND-2.5"
   262  
   263  	LicenseCCBYND30 License = "CC-BY-ND-3.0"
   264  
   265  	LicenseCCBYND30DE License = "CC-BY-ND-3.0-DE"
   266  
   267  	LicenseCCBYND40 License = "CC-BY-ND-4.0"
   268  
   269  	LicenseCCBYSA10 License = "CC-BY-SA-1.0"
   270  
   271  	LicenseCCBYSA20 License = "CC-BY-SA-2.0"
   272  
   273  	LicenseCCBYSA20UK License = "CC-BY-SA-2.0-UK"
   274  
   275  	LicenseCCBYSA21JP License = "CC-BY-SA-2.1-JP"
   276  
   277  	LicenseCCBYSA25 License = "CC-BY-SA-2.5"
   278  
   279  	LicenseCCBYSA30 License = "CC-BY-SA-3.0"
   280  
   281  	LicenseCCBYSA30AT License = "CC-BY-SA-3.0-AT"
   282  
   283  	LicenseCCBYSA30DE License = "CC-BY-SA-3.0-DE"
   284  
   285  	LicenseCCBYSA40 License = "CC-BY-SA-4.0"
   286  
   287  	LicenseCCPDDC License = "CC-PDDC"
   288  
   289  	LicenseCDDL10 License = "CDDL-1.0"
   290  
   291  	LicenseCDDL11 License = "CDDL-1.1"
   292  
   293  	LicenseCDL10 License = "CDL-1.0"
   294  
   295  	LicenseCDLAPermissive10 License = "CDLA-Permissive-1.0"
   296  
   297  	LicenseCDLAPermissive20 License = "CDLA-Permissive-2.0"
   298  
   299  	LicenseCDLASharing10 License = "CDLA-Sharing-1.0"
   300  
   301  	LicenseCECILL10 License = "CECILL-1.0"
   302  
   303  	LicenseCECILL11 License = "CECILL-1.1"
   304  
   305  	LicenseCECILL20 License = "CECILL-2.0"
   306  
   307  	LicenseCECILL21 License = "CECILL-2.1"
   308  
   309  	LicenseCECILLB License = "CECILL-B"
   310  
   311  	LicenseCECILLC License = "CECILL-C"
   312  
   313  	LicenseCERNOHL11 License = "CERN-OHL-1.1"
   314  
   315  	LicenseCERNOHL12 License = "CERN-OHL-1.2"
   316  
   317  	LicenseCERNOHLP20 License = "CERN-OHL-P-2.0"
   318  
   319  	LicenseCERNOHLS20 License = "CERN-OHL-S-2.0"
   320  
   321  	LicenseCERNOHLW20 License = "CERN-OHL-W-2.0"
   322  
   323  	LicenseCNRIJython License = "CNRI-Jython"
   324  
   325  	LicenseCNRIPython License = "CNRI-Python"
   326  
   327  	LicenseCNRIPythonGPLCompatible License = "CNRI-Python-GPL-Compatible"
   328  
   329  	LicenseCOIL10 License = "COIL-1.0"
   330  
   331  	LicenseCPAL10 License = "CPAL-1.0"
   332  
   333  	LicenseCPL10 License = "CPL-1.0"
   334  
   335  	LicenseCPOL102 License = "CPOL-1.02"
   336  
   337  	LicenseCUAOPL10 License = "CUA-OPL-1.0"
   338  
   339  	LicenseCUDA10 License = "C-UDA-1.0"
   340  
   341  	LicenseCaldera License = "Caldera"
   342  
   343  	LicenseCheckmk License = "checkmk"
   344  
   345  	LicenseClArtistic License = "ClArtistic"
   346  
   347  	LicenseCommunitySpec10 License = "Community-Spec-1.0"
   348  
   349  	LicenseCondor11 License = "Condor-1.1"
   350  
   351  	LicenseCopyleftNext030 License = "copyleft-next-0.3.0"
   352  
   353  	LicenseCopyleftNext031 License = "copyleft-next-0.3.1"
   354  
   355  	LicenseCrossword License = "Crossword"
   356  
   357  	LicenseCrystalStacker License = "CrystalStacker"
   358  
   359  	LicenseCube License = "Cube"
   360  
   361  	LicenseCurl License = "curl"
   362  
   363  	LicenseDFSL10 License = "D-FSL-1.0"
   364  
   365  	LicenseDLDEBY20 License = "DL-DE-BY-2.0"
   366  
   367  	LicenseDOC License = "DOC"
   368  
   369  	LicenseDRL10 License = "DRL-1.0"
   370  
   371  	LicenseDSDP License = "DSDP"
   372  
   373  	LicenseDiffmark License = "diffmark"
   374  
   375  	LicenseDotseqn License = "Dotseqn"
   376  
   377  	LicenseDvipdfm License = "dvipdfm"
   378  
   379  	LicenseECL10 License = "ECL-1.0"
   380  
   381  	LicenseECL20 License = "ECL-2.0"
   382  
   383  	LicenseECos20 License = "eCos-2.0"
   384  
   385  	LicenseEFL10 License = "EFL-1.0"
   386  
   387  	LicenseEFL20 License = "EFL-2.0"
   388  
   389  	LicenseEGenix License = "eGenix"
   390  
   391  	LicenseEPICS License = "EPICS"
   392  
   393  	LicenseEPL10 License = "EPL-1.0"
   394  
   395  	LicenseEPL20 License = "EPL-2.0"
   396  
   397  	LicenseEUDatagrid License = "EUDatagrid"
   398  
   399  	LicenseEUPL10 License = "EUPL-1.0"
   400  
   401  	LicenseEUPL11 License = "EUPL-1.1"
   402  
   403  	LicenseEUPL12 License = "EUPL-1.2"
   404  
   405  	LicenseElastic20 License = "Elastic-2.0"
   406  
   407  	LicenseEntessa License = "Entessa"
   408  
   409  	LicenseErlPL11 License = "ErlPL-1.1"
   410  
   411  	LicenseEtalab20 License = "etalab-2.0"
   412  
   413  	LicenseEurosym License = "Eurosym"
   414  
   415  	LicenseFDKAAC License = "FDK-AAC"
   416  
   417  	LicenseFSFAP License = "FSFAP"
   418  
   419  	LicenseFSFUL License = "FSFUL"
   420  
   421  	LicenseFSFULLR License = "FSFULLR"
   422  
   423  	LicenseFSFULLRWD License = "FSFULLRWD"
   424  
   425  	LicenseFTL License = "FTL"
   426  
   427  	LicenseFair License = "Fair"
   428  
   429  	LicenseFrameworx10 License = "Frameworx-1.0"
   430  
   431  	LicenseFreeBSDDOC License = "FreeBSD-DOC"
   432  
   433  	LicenseFreeImage License = "FreeImage"
   434  
   435  	LicenseGD License = "GD"
   436  
   437  	LicenseGFDL11 License = "GFDL-1.1"
   438  
   439  	LicenseGFDL11InvariantsOnly License = "GFDL-1.1-invariants-only"
   440  
   441  	LicenseGFDL11InvariantsOrLater License = "GFDL-1.1-invariants-or-later"
   442  
   443  	LicenseGFDL11NoInvariantsOnly License = "GFDL-1.1-no-invariants-only"
   444  
   445  	LicenseGFDL11NoInvariantsOrLater License = "GFDL-1.1-no-invariants-or-later"
   446  
   447  	LicenseGFDL11Only License = "GFDL-1.1-only"
   448  
   449  	LicenseGFDL11OrLater License = "GFDL-1.1-or-later"
   450  
   451  	LicenseGFDL12 License = "GFDL-1.2"
   452  
   453  	LicenseGFDL12InvariantsOnly License = "GFDL-1.2-invariants-only"
   454  
   455  	LicenseGFDL12InvariantsOrLater License = "GFDL-1.2-invariants-or-later"
   456  
   457  	LicenseGFDL12NoInvariantsOnly License = "GFDL-1.2-no-invariants-only"
   458  
   459  	LicenseGFDL12NoInvariantsOrLater License = "GFDL-1.2-no-invariants-or-later"
   460  
   461  	LicenseGFDL12Only License = "GFDL-1.2-only"
   462  
   463  	LicenseGFDL12OrLater License = "GFDL-1.2-or-later"
   464  
   465  	LicenseGFDL13 License = "GFDL-1.3"
   466  
   467  	LicenseGFDL13InvariantsOnly License = "GFDL-1.3-invariants-only"
   468  
   469  	LicenseGFDL13InvariantsOrLater License = "GFDL-1.3-invariants-or-later"
   470  
   471  	LicenseGFDL13NoInvariantsOnly License = "GFDL-1.3-no-invariants-only"
   472  
   473  	LicenseGFDL13NoInvariantsOrLater License = "GFDL-1.3-no-invariants-or-later"
   474  
   475  	LicenseGFDL13Only License = "GFDL-1.3-only"
   476  
   477  	LicenseGFDL13OrLater License = "GFDL-1.3-or-later"
   478  
   479  	LicenseGL2PS License = "GL2PS"
   480  
   481  	LicenseGLWTPL License = "GLWTPL"
   482  
   483  	LicenseGPL10 License = "GPL-1.0"
   484  
   485  	LicenseGPL101 License = "GPL-1.0+"
   486  
   487  	LicenseGPL10Only License = "GPL-1.0-only"
   488  
   489  	LicenseGPL10OrLater License = "GPL-1.0-or-later"
   490  
   491  	LicenseGPL20 License = "GPL-2.0"
   492  
   493  	LicenseGPL201 License = "GPL-2.0+"
   494  
   495  	LicenseGPL20Only License = "GPL-2.0-only"
   496  
   497  	LicenseGPL20OrLater License = "GPL-2.0-or-later"
   498  
   499  	LicenseGPL20WithAutoconfException License = "GPL-2.0-with-autoconf-exception"
   500  
   501  	LicenseGPL20WithBisonException License = "GPL-2.0-with-bison-exception"
   502  
   503  	LicenseGPL20WithClasspathException License = "GPL-2.0-with-classpath-exception"
   504  
   505  	LicenseGPL20WithFontException License = "GPL-2.0-with-font-exception"
   506  
   507  	LicenseGPL20WithGCCException License = "GPL-2.0-with-GCC-exception"
   508  
   509  	LicenseGPL30 License = "GPL-3.0"
   510  
   511  	LicenseGPL301 License = "GPL-3.0+"
   512  
   513  	LicenseGPL30Only License = "GPL-3.0-only"
   514  
   515  	LicenseGPL30OrLater License = "GPL-3.0-or-later"
   516  
   517  	LicenseGPL30WithAutoconfException License = "GPL-3.0-with-autoconf-exception"
   518  
   519  	LicenseGPL30WithGCCException License = "GPL-3.0-with-GCC-exception"
   520  
   521  	LicenseGSOAP13b License = "gSOAP-1.3b"
   522  
   523  	LicenseGiftware License = "Giftware"
   524  
   525  	LicenseGlide License = "Glide"
   526  
   527  	LicenseGlulxe License = "Glulxe"
   528  
   529  	LicenseGnuplot License = "gnuplot"
   530  
   531  	LicenseHPND License = "HPND"
   532  
   533  	LicenseHPNDSellVariant License = "HPND-sell-variant"
   534  
   535  	LicenseHTMLTIDY License = "HTMLTIDY"
   536  
   537  	LicenseHaskellReport License = "HaskellReport"
   538  
   539  	LicenseHippocratic21 License = "Hippocratic-2.1"
   540  
   541  	LicenseIBMPibs License = "IBM-pibs"
   542  
   543  	LicenseICU License = "ICU"
   544  
   545  	LicenseIJG License = "IJG"
   546  
   547  	LicenseIMatix License = "iMatix"
   548  
   549  	LicenseIPA License = "IPA"
   550  
   551  	LicenseIPL10 License = "IPL-1.0"
   552  
   553  	LicenseISC License = "ISC"
   554  
   555  	LicenseImageMagick License = "ImageMagick"
   556  
   557  	LicenseImlib2 License = "Imlib2"
   558  
   559  	LicenseInfoZIP License = "Info-ZIP"
   560  
   561  	LicenseIntel License = "Intel"
   562  
   563  	LicenseIntelACPI License = "Intel-ACPI"
   564  
   565  	LicenseInterbase10 License = "Interbase-1.0"
   566  
   567  	LicenseJPNIC License = "JPNIC"
   568  
   569  	LicenseJSON License = "JSON"
   570  
   571  	LicenseJam License = "Jam"
   572  
   573  	LicenseJasPer20 License = "JasPer-2.0"
   574  
   575  	LicenseKnuthCTAN License = "Knuth-CTAN"
   576  
   577  	LicenseLAL12 License = "LAL-1.2"
   578  
   579  	LicenseLAL13 License = "LAL-1.3"
   580  
   581  	LicenseLGPL20 License = "LGPL-2.0"
   582  
   583  	LicenseLGPL201 License = "LGPL-2.0+"
   584  
   585  	LicenseLGPL20Only License = "LGPL-2.0-only"
   586  
   587  	LicenseLGPL20OrLater License = "LGPL-2.0-or-later"
   588  
   589  	LicenseLGPL21 License = "LGPL-2.1"
   590  
   591  	LicenseLGPL211 License = "LGPL-2.1+"
   592  
   593  	LicenseLGPL21Only License = "LGPL-2.1-only"
   594  
   595  	LicenseLGPL21OrLater License = "LGPL-2.1-or-later"
   596  
   597  	LicenseLGPL30 License = "LGPL-3.0"
   598  
   599  	LicenseLGPL301 License = "LGPL-3.0+"
   600  
   601  	LicenseLGPL30Only License = "LGPL-3.0-only"
   602  
   603  	LicenseLGPL30OrLater License = "LGPL-3.0-or-later"
   604  
   605  	LicenseLGPLLR License = "LGPLLR"
   606  
   607  	LicenseLOOP License = "LOOP"
   608  
   609  	LicenseLPL10 License = "LPL-1.0"
   610  
   611  	LicenseLPL102 License = "LPL-1.02"
   612  
   613  	LicenseLPPL10 License = "LPPL-1.0"
   614  
   615  	LicenseLPPL11 License = "LPPL-1.1"
   616  
   617  	LicenseLPPL12 License = "LPPL-1.2"
   618  
   619  	LicenseLPPL13a License = "LPPL-1.3a"
   620  
   621  	LicenseLPPL13c License = "LPPL-1.3c"
   622  
   623  	LicenseLZMASDK911To920 License = "LZMA-SDK-9.11-to-9.20"
   624  
   625  	LicenseLZMASDK922 License = "LZMA-SDK-9.22"
   626  
   627  	LicenseLatex2e License = "Latex2e"
   628  
   629  	LicenseLeptonica License = "Leptonica"
   630  
   631  	LicenseLiLiQP11 License = "LiLiQ-P-1.1"
   632  
   633  	LicenseLiLiQR11 License = "LiLiQ-R-1.1"
   634  
   635  	LicenseLiLiQRplus11 License = "LiLiQ-Rplus-1.1"
   636  
   637  	LicenseLibpng License = "Libpng"
   638  
   639  	LicenseLibpng20 License = "libpng-2.0"
   640  
   641  	LicenseLibselinux10 License = "libselinux-1.0"
   642  
   643  	LicenseLibtiff License = "libtiff"
   644  
   645  	LicenseLibutilDavidNugent License = "libutil-David-Nugent"
   646  
   647  	LicenseLinuxManPagesCopyleft License = "Linux-man-pages-copyleft"
   648  
   649  	LicenseLinuxOpenIB License = "Linux-OpenIB"
   650  
   651  	LicenseMIT License = "MIT"
   652  
   653  	LicenseMIT0 License = "MIT-0"
   654  
   655  	LicenseMITAdvertising License = "MIT-advertising"
   656  
   657  	LicenseMITCMU License = "MIT-CMU"
   658  
   659  	LicenseMITEnna License = "MIT-enna"
   660  
   661  	LicenseMITFeh License = "MIT-feh"
   662  
   663  	LicenseMITModernVariant License = "MIT-Modern-Variant"
   664  
   665  	LicenseMITNFA License = "MITNFA"
   666  
   667  	LicenseMITOpenGroup License = "MIT-open-group"
   668  
   669  	LicenseMPL10 License = "MPL-1.0"
   670  
   671  	LicenseMPL11 License = "MPL-1.1"
   672  
   673  	LicenseMPL20 License = "MPL-2.0"
   674  
   675  	LicenseMPL20NoCopyleftException License = "MPL-2.0-no-copyleft-exception"
   676  
   677  	LicenseMSLPL License = "MS-LPL"
   678  
   679  	LicenseMSPL License = "MS-PL"
   680  
   681  	LicenseMSRL License = "MS-RL"
   682  
   683  	LicenseMTLL License = "MTLL"
   684  
   685  	LicenseMakeIndex License = "MakeIndex"
   686  
   687  	LicenseMinpack License = "Minpack"
   688  
   689  	LicenseMirOS License = "MirOS"
   690  
   691  	LicenseMotosoto License = "Motosoto"
   692  
   693  	LicenseMpiPermissive License = "mpi-permissive"
   694  
   695  	LicenseMpich2 License = "mpich2"
   696  
   697  	LicenseMplus License = "mplus"
   698  
   699  	LicenseMulanPSL10 License = "MulanPSL-1.0"
   700  
   701  	LicenseMulanPSL20 License = "MulanPSL-2.0"
   702  
   703  	LicenseMultics License = "Multics"
   704  
   705  	LicenseMup License = "Mup"
   706  
   707  	LicenseN0BSD License = "0BSD"
   708  
   709  	LicenseNAIST2003 License = "NAIST-2003"
   710  
   711  	LicenseNASA13 License = "NASA-1.3"
   712  
   713  	LicenseNBPL10 License = "NBPL-1.0"
   714  
   715  	LicenseNCGLUK20 License = "NCGL-UK-2.0"
   716  
   717  	LicenseNCSA License = "NCSA"
   718  
   719  	LicenseNGPL License = "NGPL"
   720  
   721  	LicenseNICTA10 License = "NICTA-1.0"
   722  
   723  	LicenseNISTPD License = "NIST-PD"
   724  
   725  	LicenseNISTPDFallback License = "NIST-PD-fallback"
   726  
   727  	LicenseNLOD10 License = "NLOD-1.0"
   728  
   729  	LicenseNLOD20 License = "NLOD-2.0"
   730  
   731  	LicenseNLPL License = "NLPL"
   732  
   733  	LicenseNOSL License = "NOSL"
   734  
   735  	LicenseNPL10 License = "NPL-1.0"
   736  
   737  	LicenseNPL11 License = "NPL-1.1"
   738  
   739  	LicenseNPOSL30 License = "NPOSL-3.0"
   740  
   741  	LicenseNRL License = "NRL"
   742  
   743  	LicenseNTP License = "NTP"
   744  
   745  	LicenseNTP0 License = "NTP-0"
   746  
   747  	LicenseNaumen License = "Naumen"
   748  
   749  	LicenseNetCDF License = "NetCDF"
   750  
   751  	LicenseNetSNMP License = "Net-SNMP"
   752  
   753  	LicenseNewsletr License = "Newsletr"
   754  
   755  	LicenseNokia License = "Nokia"
   756  
   757  	LicenseNoweb License = "Noweb"
   758  
   759  	LicenseNunit License = "Nunit"
   760  
   761  	LicenseOCCTPL License = "OCCT-PL"
   762  
   763  	LicenseOCLC20 License = "OCLC-2.0"
   764  
   765  	LicenseODCBy10 License = "ODC-By-1.0"
   766  
   767  	LicenseODbL10 License = "ODbL-1.0"
   768  
   769  	LicenseOFL10 License = "OFL-1.0"
   770  
   771  	LicenseOFL10NoRFN License = "OFL-1.0-no-RFN"
   772  
   773  	LicenseOFL10RFN License = "OFL-1.0-RFN"
   774  
   775  	LicenseOFL11 License = "OFL-1.1"
   776  
   777  	LicenseOFL11NoRFN License = "OFL-1.1-no-RFN"
   778  
   779  	LicenseOFL11RFN License = "OFL-1.1-RFN"
   780  
   781  	LicenseOGC10 License = "OGC-1.0"
   782  
   783  	LicenseOGDLTaiwan10 License = "OGDL-Taiwan-1.0"
   784  
   785  	LicenseOGLCanada20 License = "OGL-Canada-2.0"
   786  
   787  	LicenseOGLUK10 License = "OGL-UK-1.0"
   788  
   789  	LicenseOGLUK20 License = "OGL-UK-2.0"
   790  
   791  	LicenseOGLUK30 License = "OGL-UK-3.0"
   792  
   793  	LicenseOGTSL License = "OGTSL"
   794  
   795  	LicenseOLDAP11 License = "OLDAP-1.1"
   796  
   797  	LicenseOLDAP12 License = "OLDAP-1.2"
   798  
   799  	LicenseOLDAP13 License = "OLDAP-1.3"
   800  
   801  	LicenseOLDAP14 License = "OLDAP-1.4"
   802  
   803  	LicenseOLDAP20 License = "OLDAP-2.0"
   804  
   805  	LicenseOLDAP201 License = "OLDAP-2.0.1"
   806  
   807  	LicenseOLDAP21 License = "OLDAP-2.1"
   808  
   809  	LicenseOLDAP22 License = "OLDAP-2.2"
   810  
   811  	LicenseOLDAP221 License = "OLDAP-2.2.1"
   812  
   813  	LicenseOLDAP222 License = "OLDAP-2.2.2"
   814  
   815  	LicenseOLDAP23 License = "OLDAP-2.3"
   816  
   817  	LicenseOLDAP24 License = "OLDAP-2.4"
   818  
   819  	LicenseOLDAP25 License = "OLDAP-2.5"
   820  
   821  	LicenseOLDAP26 License = "OLDAP-2.6"
   822  
   823  	LicenseOLDAP27 License = "OLDAP-2.7"
   824  
   825  	LicenseOLDAP28 License = "OLDAP-2.8"
   826  
   827  	LicenseOML License = "OML"
   828  
   829  	LicenseOPL10 License = "OPL-1.0"
   830  
   831  	LicenseOPUBL10 License = "OPUBL-1.0"
   832  
   833  	LicenseOSETPL21 License = "OSET-PL-2.1"
   834  
   835  	LicenseOSL10 License = "OSL-1.0"
   836  
   837  	LicenseOSL11 License = "OSL-1.1"
   838  
   839  	LicenseOSL20 License = "OSL-2.0"
   840  
   841  	LicenseOSL21 License = "OSL-2.1"
   842  
   843  	LicenseOSL30 License = "OSL-3.0"
   844  
   845  	LicenseOUDA10 License = "O-UDA-1.0"
   846  
   847  	LicenseOpenSSL License = "OpenSSL"
   848  
   849  	LicensePDDL10 License = "PDDL-1.0"
   850  
   851  	LicensePHP30 License = "PHP-3.0"
   852  
   853  	LicensePHP301 License = "PHP-3.01"
   854  
   855  	LicensePSF20 License = "PSF-2.0"
   856  
   857  	LicenseParity600 License = "Parity-6.0.0"
   858  
   859  	LicenseParity700 License = "Parity-7.0.0"
   860  
   861  	LicensePlexus License = "Plexus"
   862  
   863  	LicensePolyFormNoncommercial100 License = "PolyForm-Noncommercial-1.0.0"
   864  
   865  	LicensePolyFormSmallBusiness100 License = "PolyForm-Small-Business-1.0.0"
   866  
   867  	LicensePostgreSQL License = "PostgreSQL"
   868  
   869  	LicensePsfrag License = "psfrag"
   870  
   871  	LicensePsutils License = "psutils"
   872  
   873  	LicensePython20 License = "Python-2.0"
   874  
   875  	LicensePython201 License = "Python-2.0.1"
   876  
   877  	LicenseQPL10 License = "QPL-1.0"
   878  
   879  	LicenseQhull License = "Qhull"
   880  
   881  	LicenseRHeCos11 License = "RHeCos-1.1"
   882  
   883  	LicenseRPL11 License = "RPL-1.1"
   884  
   885  	LicenseRPL15 License = "RPL-1.5"
   886  
   887  	LicenseRPSL10 License = "RPSL-1.0"
   888  
   889  	LicenseRSAMD License = "RSA-MD"
   890  
   891  	LicenseRSCPL License = "RSCPL"
   892  
   893  	LicenseRdisc License = "Rdisc"
   894  
   895  	LicenseRuby License = "Ruby"
   896  
   897  	LicenseSAXPD License = "SAX-PD"
   898  
   899  	LicenseSCEA License = "SCEA"
   900  
   901  	LicenseSGIB10 License = "SGI-B-1.0"
   902  
   903  	LicenseSGIB11 License = "SGI-B-1.1"
   904  
   905  	LicenseSGIB20 License = "SGI-B-2.0"
   906  
   907  	LicenseSHL05 License = "SHL-0.5"
   908  
   909  	LicenseSHL051 License = "SHL-0.51"
   910  
   911  	LicenseSISSL License = "SISSL"
   912  
   913  	LicenseSISSL12 License = "SISSL-1.2"
   914  
   915  	LicenseSMLNJ License = "SMLNJ"
   916  
   917  	LicenseSMPPL License = "SMPPL"
   918  
   919  	LicenseSNIA License = "SNIA"
   920  
   921  	LicenseSPL10 License = "SPL-1.0"
   922  
   923  	LicenseSSHOpenSSH License = "SSH-OpenSSH"
   924  
   925  	LicenseSSHShort License = "SSH-short"
   926  
   927  	LicenseSSPL10 License = "SSPL-1.0"
   928  
   929  	LicenseSWL License = "SWL"
   930  
   931  	LicenseSaxpath License = "Saxpath"
   932  
   933  	LicenseSchemeReport License = "SchemeReport"
   934  
   935  	LicenseSendmail License = "Sendmail"
   936  
   937  	LicenseSendmail823 License = "Sendmail-8.23"
   938  
   939  	LicenseSimPL20 License = "SimPL-2.0"
   940  
   941  	LicenseSleepycat License = "Sleepycat"
   942  
   943  	LicenseSpencer86 License = "Spencer-86"
   944  
   945  	LicenseSpencer94 License = "Spencer-94"
   946  
   947  	LicenseSpencer99 License = "Spencer-99"
   948  
   949  	LicenseStandardMLNJ License = "StandardML-NJ"
   950  
   951  	LicenseSugarCRM113 License = "SugarCRM-1.1.3"
   952  
   953  	LicenseSymlinks License = "Symlinks"
   954  
   955  	LicenseTAPROHL10 License = "TAPR-OHL-1.0"
   956  
   957  	LicenseTCL License = "TCL"
   958  
   959  	LicenseTCPWrappers License = "TCP-wrappers"
   960  
   961  	LicenseTMate License = "TMate"
   962  
   963  	LicenseTORQUE11 License = "TORQUE-1.1"
   964  
   965  	LicenseTOSL License = "TOSL"
   966  
   967  	LicenseTUBerlin10 License = "TU-Berlin-1.0"
   968  
   969  	LicenseTUBerlin20 License = "TU-Berlin-2.0"
   970  
   971  	LicenseUCL10 License = "UCL-1.0"
   972  
   973  	LicenseUPL10 License = "UPL-1.0"
   974  
   975  	LicenseUnicodeDFS2015 License = "Unicode-DFS-2015"
   976  
   977  	LicenseUnicodeDFS2016 License = "Unicode-DFS-2016"
   978  
   979  	LicenseUnicodeTOU License = "Unicode-TOU"
   980  
   981  	LicenseUnlicense License = "Unlicense"
   982  
   983  	LicenseVOSTROM License = "VOSTROM"
   984  
   985  	LicenseVSL10 License = "VSL-1.0"
   986  
   987  	LicenseVim License = "Vim"
   988  
   989  	LicenseW3C License = "W3C"
   990  
   991  	LicenseW3C19980720 License = "W3C-19980720"
   992  
   993  	LicenseW3C20150513 License = "W3C-20150513"
   994  
   995  	LicenseWTFPL License = "WTFPL"
   996  
   997  	LicenseWatcom10 License = "Watcom-1.0"
   998  
   999  	LicenseWsuipa License = "Wsuipa"
  1000  
  1001  	LicenseWxWindows License = "wxWindows"
  1002  
  1003  	LicenseX11 License = "X11"
  1004  
  1005  	LicenseX11DistributeModificationsVariant License = "X11-distribute-modifications-variant"
  1006  
  1007  	LicenseXFree8611 License = "XFree86-1.1"
  1008  
  1009  	LicenseXSkat License = "XSkat"
  1010  
  1011  	LicenseXerox License = "Xerox"
  1012  
  1013  	LicenseXinetd License = "xinetd"
  1014  
  1015  	LicenseXnet License = "Xnet"
  1016  
  1017  	LicenseXpp License = "xpp"
  1018  
  1019  	LicenseYPL10 License = "YPL-1.0"
  1020  
  1021  	LicenseYPL11 License = "YPL-1.1"
  1022  
  1023  	LicenseZPL11 License = "ZPL-1.1"
  1024  
  1025  	LicenseZPL20 License = "ZPL-2.0"
  1026  
  1027  	LicenseZPL21 License = "ZPL-2.1"
  1028  
  1029  	LicenseZed License = "Zed"
  1030  
  1031  	LicenseZend20 License = "Zend-2.0"
  1032  
  1033  	LicenseZimbra13 License = "Zimbra-1.3"
  1034  
  1035  	LicenseZimbra14 License = "Zimbra-1.4"
  1036  
  1037  	LicenseZlib License = "Zlib"
  1038  
  1039  	LicenseZlibAcknowledgement License = "zlib-acknowledgement"
  1040  )
  1041  
  1042  // Defines values for PackageVersionEcosystem.
  1043  const (
  1044  	PackageVersionEcosystemCargo PackageVersionEcosystem = "Cargo"
  1045  
  1046  	PackageVersionEcosystemDebian PackageVersionEcosystem = "Debian"
  1047  
  1048  	PackageVersionEcosystemGithubActions PackageVersionEcosystem = "Github Actions"
  1049  
  1050  	PackageVersionEcosystemGo PackageVersionEcosystem = "Go"
  1051  
  1052  	PackageVersionEcosystemLinux PackageVersionEcosystem = "Linux"
  1053  
  1054  	PackageVersionEcosystemMaven PackageVersionEcosystem = "Maven"
  1055  
  1056  	PackageVersionEcosystemNpm PackageVersionEcosystem = "npm"
  1057  
  1058  	PackageVersionEcosystemNuGet PackageVersionEcosystem = "NuGet"
  1059  
  1060  	PackageVersionEcosystemPyPI PackageVersionEcosystem = "PyPI"
  1061  
  1062  	PackageVersionEcosystemRubyGems PackageVersionEcosystem = "RubyGems"
  1063  )
  1064  
  1065  // ApiError defines model for ApiError.
  1066  type ApiError struct {
  1067  	// An error code identifying the error
  1068  	Code *ApiErrorCode `json:"code,omitempty"`
  1069  
  1070  	// A descriptive message about the error meant for developer consumption
  1071  	Message *string `json:"message,omitempty"`
  1072  
  1073  	// Optional error specific attributes
  1074  	Params *ApiError_Params `json:"params,omitempty"`
  1075  
  1076  	// An optional service or domain specific error group
  1077  	Type *ApiErrorType `json:"type,omitempty"`
  1078  }
  1079  
  1080  // An error code identifying the error
  1081  type ApiErrorCode string
  1082  
  1083  // Optional error specific attributes
  1084  type ApiError_Params struct {
  1085  	AdditionalProperties map[string]struct {
  1086  		Key   *string `json:"key,omitempty"`
  1087  		Value *string `json:"value,omitempty"`
  1088  	} `json:"-"`
  1089  }
  1090  
  1091  // An optional service or domain specific error group
  1092  type ApiErrorType string
  1093  
  1094  // References to other models
  1095  type Dry struct {
  1096  	ApiError *ApiError `json:"api_error,omitempty"`
  1097  
  1098  	// License SPDX code
  1099  	License        *License        `json:"license,omitempty"`
  1100  	PackageVersion *PackageVersion `json:"package_version,omitempty"`
  1101  }
  1102  
  1103  // License SPDX code
  1104  type License string
  1105  
  1106  // PackageVersion defines model for PackageVersion.
  1107  type PackageVersion struct {
  1108  	// The ecosystem where this package belongs to
  1109  	Ecosystem PackageVersionEcosystem `json:"ecosystem"`
  1110  
  1111  	// The name of the package
  1112  	Name string `json:"name"`
  1113  
  1114  	// The version of the package
  1115  	Version string `json:"version"`
  1116  }
  1117  
  1118  // The ecosystem where this package belongs to
  1119  type PackageVersionEcosystem string
  1120  
  1121  // Getter for additional properties for ApiError_Params. Returns the specified
  1122  // element and whether it was found
  1123  func (a ApiError_Params) Get(fieldName string) (value struct {
  1124  	Key   *string `json:"key,omitempty"`
  1125  	Value *string `json:"value,omitempty"`
  1126  }, found bool) {
  1127  	if a.AdditionalProperties != nil {
  1128  		value, found = a.AdditionalProperties[fieldName]
  1129  	}
  1130  	return
  1131  }
  1132  
  1133  // Setter for additional properties for ApiError_Params
  1134  func (a *ApiError_Params) Set(fieldName string, value struct {
  1135  	Key   *string `json:"key,omitempty"`
  1136  	Value *string `json:"value,omitempty"`
  1137  }) {
  1138  	if a.AdditionalProperties == nil {
  1139  		a.AdditionalProperties = make(map[string]struct {
  1140  			Key   *string `json:"key,omitempty"`
  1141  			Value *string `json:"value,omitempty"`
  1142  		})
  1143  	}
  1144  	a.AdditionalProperties[fieldName] = value
  1145  }
  1146  
  1147  // Override default JSON handling for ApiError_Params to handle AdditionalProperties
  1148  func (a *ApiError_Params) UnmarshalJSON(b []byte) error {
  1149  	object := make(map[string]json.RawMessage)
  1150  	err := json.Unmarshal(b, &object)
  1151  	if err != nil {
  1152  		return err
  1153  	}
  1154  
  1155  	if len(object) != 0 {
  1156  		a.AdditionalProperties = make(map[string]struct {
  1157  			Key   *string `json:"key,omitempty"`
  1158  			Value *string `json:"value,omitempty"`
  1159  		})
  1160  		for fieldName, fieldBuf := range object {
  1161  			var fieldVal struct {
  1162  				Key   *string `json:"key,omitempty"`
  1163  				Value *string `json:"value,omitempty"`
  1164  			}
  1165  			err := json.Unmarshal(fieldBuf, &fieldVal)
  1166  			if err != nil {
  1167  				return fmt.Errorf("error unmarshaling field %s: %w", fieldName, err)
  1168  			}
  1169  			a.AdditionalProperties[fieldName] = fieldVal
  1170  		}
  1171  	}
  1172  	return nil
  1173  }
  1174  
  1175  // Override default JSON handling for ApiError_Params to handle AdditionalProperties
  1176  func (a ApiError_Params) MarshalJSON() ([]byte, error) {
  1177  	var err error
  1178  	object := make(map[string]json.RawMessage)
  1179  
  1180  	for fieldName, field := range a.AdditionalProperties {
  1181  		object[fieldName], err = json.Marshal(field)
  1182  		if err != nil {
  1183  			return nil, fmt.Errorf("error marshaling '%s': %w", fieldName, err)
  1184  		}
  1185  	}
  1186  	return json.Marshal(object)
  1187  }