owasp-nest 0.2.0 → 0.2.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.
- package/FUNCTIONS.md +3 -6
- package/README.md +31 -37
- package/dist/commonjs/funcs/{chaptersGetChapter.d.ts → chaptersAppsApiRestV0ChapterGetChapter.d.ts} +2 -2
- package/dist/commonjs/funcs/chaptersAppsApiRestV0ChapterGetChapter.d.ts.map +1 -0
- package/dist/commonjs/funcs/{chaptersGetChapter.js → chaptersAppsApiRestV0ChapterGetChapter.js} +7 -7
- package/dist/commonjs/funcs/chaptersAppsApiRestV0ChapterGetChapter.js.map +1 -0
- package/dist/{esm/funcs/chaptersListChapters.d.ts → commonjs/funcs/chaptersAppsApiRestV0ChapterListChapters.d.ts} +2 -2
- package/dist/commonjs/funcs/chaptersAppsApiRestV0ChapterListChapters.d.ts.map +1 -0
- package/dist/commonjs/funcs/{chaptersListChapters.js → chaptersAppsApiRestV0ChapterListChapters.js} +6 -5
- package/dist/commonjs/funcs/chaptersAppsApiRestV0ChapterListChapters.js.map +1 -0
- package/dist/commonjs/funcs/committeesAppsApiRestV0CommitteeGetChapter.d.ts +19 -0
- package/dist/commonjs/funcs/committeesAppsApiRestV0CommitteeGetChapter.d.ts.map +1 -0
- package/dist/commonjs/funcs/committeesAppsApiRestV0CommitteeGetChapter.js +124 -0
- package/dist/commonjs/funcs/committeesAppsApiRestV0CommitteeGetChapter.js.map +1 -0
- package/dist/commonjs/funcs/{communityGetMember.d.ts → communityAppsApiRestV0MemberGetMember.d.ts} +4 -4
- package/dist/commonjs/funcs/communityAppsApiRestV0MemberGetMember.d.ts.map +1 -0
- package/dist/commonjs/funcs/{communityGetMember.js → communityAppsApiRestV0MemberGetMember.js} +9 -9
- package/dist/commonjs/funcs/communityAppsApiRestV0MemberGetMember.js.map +1 -0
- package/dist/commonjs/funcs/communityAppsApiRestV0OrganizationGetOrganization.d.ts +19 -0
- package/dist/commonjs/funcs/communityAppsApiRestV0OrganizationGetOrganization.d.ts.map +1 -0
- package/dist/commonjs/funcs/communityAppsApiRestV0OrganizationGetOrganization.js +125 -0
- package/dist/commonjs/funcs/communityAppsApiRestV0OrganizationGetOrganization.js.map +1 -0
- package/dist/commonjs/funcs/{projectsListProjects.d.ts → communityAppsApiRestV0OrganizationListOrganization.d.ts} +4 -4
- package/dist/commonjs/funcs/communityAppsApiRestV0OrganizationListOrganization.d.ts.map +1 -0
- package/dist/commonjs/funcs/{communityListOrganizations.js → communityAppsApiRestV0OrganizationListOrganization.js} +6 -5
- package/dist/commonjs/funcs/communityAppsApiRestV0OrganizationListOrganization.js.map +1 -0
- package/dist/{esm/funcs/eventsListEvents.d.ts → commonjs/funcs/eventsAppsApiRestV0EventListEvents.d.ts} +2 -2
- package/dist/commonjs/funcs/eventsAppsApiRestV0EventListEvents.d.ts.map +1 -0
- package/dist/commonjs/funcs/{eventsListEvents.js → eventsAppsApiRestV0EventListEvents.js} +6 -5
- package/dist/commonjs/funcs/eventsAppsApiRestV0EventListEvents.js.map +1 -0
- package/dist/commonjs/funcs/projectsAppsApiRestV0ProjectGetProject.d.ts +19 -0
- package/dist/commonjs/funcs/projectsAppsApiRestV0ProjectGetProject.d.ts.map +1 -0
- package/dist/commonjs/funcs/projectsAppsApiRestV0ProjectGetProject.js +124 -0
- package/dist/commonjs/funcs/projectsAppsApiRestV0ProjectGetProject.js.map +1 -0
- package/dist/{esm/funcs/projectsListProjects.d.ts → commonjs/funcs/projectsAppsApiRestV0ProjectListProjects.d.ts} +2 -2
- package/dist/commonjs/funcs/projectsAppsApiRestV0ProjectListProjects.d.ts.map +1 -0
- package/dist/commonjs/funcs/{projectsListProjects.js → projectsAppsApiRestV0ProjectListProjects.js} +6 -5
- package/dist/commonjs/funcs/projectsAppsApiRestV0ProjectListProjects.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +4 -4
- package/dist/commonjs/lib/config.js +4 -4
- package/dist/commonjs/models/errors/committeeerrorresponse.d.ts +41 -0
- package/dist/commonjs/models/errors/committeeerrorresponse.d.ts.map +1 -0
- package/dist/commonjs/models/{operations/getchapter.js → errors/committeeerrorresponse.js} +39 -23
- package/dist/commonjs/models/errors/committeeerrorresponse.js.map +1 -0
- package/dist/commonjs/models/errors/index.d.ts +3 -0
- package/dist/commonjs/models/errors/index.d.ts.map +1 -1
- package/dist/commonjs/models/errors/index.js +3 -0
- package/dist/commonjs/models/errors/index.js.map +1 -1
- package/dist/commonjs/models/errors/organizationerrorresponse.d.ts +41 -0
- package/dist/commonjs/models/errors/organizationerrorresponse.d.ts.map +1 -0
- package/dist/commonjs/models/errors/organizationerrorresponse.js +85 -0
- package/dist/commonjs/models/errors/organizationerrorresponse.js.map +1 -0
- package/dist/commonjs/models/errors/projecterrorresponse.d.ts +41 -0
- package/dist/commonjs/models/errors/projecterrorresponse.d.ts.map +1 -0
- package/dist/commonjs/models/{operations/getmember.js → errors/projecterrorresponse.js} +39 -23
- package/dist/commonjs/models/errors/projecterrorresponse.js.map +1 -0
- package/dist/commonjs/models/memberschema.d.ts +0 -2
- package/dist/commonjs/models/memberschema.d.ts.map +1 -1
- package/dist/commonjs/models/memberschema.js +0 -2
- package/dist/commonjs/models/memberschema.js.map +1 -1
- package/dist/commonjs/models/operations/appsapirestv0chaptergetchapter.d.ts +29 -0
- package/dist/commonjs/models/operations/appsapirestv0chaptergetchapter.d.ts.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0chaptergetchapter.js +78 -0
- package/dist/commonjs/models/operations/appsapirestv0chaptergetchapter.js.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0chapterlistchapters.d.ts +84 -0
- package/dist/commonjs/models/operations/appsapirestv0chapterlistchapters.d.ts.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0chapterlistchapters.js +113 -0
- package/dist/commonjs/models/operations/appsapirestv0chapterlistchapters.js.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0committeegetchapter.d.ts +29 -0
- package/dist/commonjs/models/operations/appsapirestv0committeegetchapter.d.ts.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0committeegetchapter.js +78 -0
- package/dist/commonjs/models/operations/appsapirestv0committeegetchapter.js.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0eventlistevents.d.ts +74 -0
- package/dist/commonjs/models/operations/appsapirestv0eventlistevents.d.ts.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0eventlistevents.js +108 -0
- package/dist/commonjs/models/operations/appsapirestv0eventlistevents.js.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0membergetmember.d.ts +29 -0
- package/dist/commonjs/models/operations/appsapirestv0membergetmember.d.ts.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0membergetmember.js +78 -0
- package/dist/commonjs/models/operations/appsapirestv0membergetmember.js.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0organizationgetorganization.d.ts +29 -0
- package/dist/commonjs/models/operations/appsapirestv0organizationgetorganization.d.ts.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0organizationgetorganization.js +78 -0
- package/dist/commonjs/models/operations/appsapirestv0organizationgetorganization.js.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0organizationlistorganization.d.ts +79 -0
- package/dist/commonjs/models/operations/appsapirestv0organizationlistorganization.d.ts.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0organizationlistorganization.js +109 -0
- package/dist/commonjs/models/operations/appsapirestv0organizationlistorganization.js.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0projectgetproject.d.ts +29 -0
- package/dist/commonjs/models/operations/appsapirestv0projectgetproject.d.ts.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0projectgetproject.js +78 -0
- package/dist/commonjs/models/operations/appsapirestv0projectgetproject.js.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0projectlistprojects.d.ts +80 -0
- package/dist/commonjs/models/operations/appsapirestv0projectlistprojects.d.ts.map +1 -0
- package/dist/commonjs/models/operations/appsapirestv0projectlistprojects.js +112 -0
- package/dist/commonjs/models/operations/appsapirestv0projectlistprojects.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +9 -6
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +9 -6
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/chapters.d.ts +2 -2
- package/dist/commonjs/sdk/chapters.d.ts.map +1 -1
- package/dist/commonjs/sdk/chapters.js +6 -6
- package/dist/commonjs/sdk/chapters.js.map +1 -1
- package/dist/commonjs/sdk/committees.d.ts +7 -0
- package/dist/commonjs/sdk/committees.d.ts.map +1 -1
- package/dist/commonjs/sdk/committees.js +10 -0
- package/dist/commonjs/sdk/committees.js.map +1 -1
- package/dist/commonjs/sdk/community.d.ts +11 -4
- package/dist/commonjs/sdk/community.d.ts.map +1 -1
- package/dist/commonjs/sdk/community.js +18 -8
- package/dist/commonjs/sdk/community.js.map +1 -1
- package/dist/commonjs/sdk/events.d.ts +1 -1
- package/dist/commonjs/sdk/events.d.ts.map +1 -1
- package/dist/commonjs/sdk/events.js +3 -3
- package/dist/commonjs/sdk/events.js.map +1 -1
- package/dist/commonjs/sdk/projects.d.ts +8 -1
- package/dist/commonjs/sdk/projects.d.ts.map +1 -1
- package/dist/commonjs/sdk/projects.js +13 -3
- package/dist/commonjs/sdk/projects.js.map +1 -1
- package/dist/esm/funcs/{chaptersGetChapter.d.ts → chaptersAppsApiRestV0ChapterGetChapter.d.ts} +2 -2
- package/dist/esm/funcs/chaptersAppsApiRestV0ChapterGetChapter.d.ts.map +1 -0
- package/dist/esm/funcs/{chaptersGetChapter.js → chaptersAppsApiRestV0ChapterGetChapter.js} +6 -6
- package/dist/esm/funcs/chaptersAppsApiRestV0ChapterGetChapter.js.map +1 -0
- package/dist/{commonjs/funcs/communityListOrganizations.d.ts → esm/funcs/chaptersAppsApiRestV0ChapterListChapters.d.ts} +4 -4
- package/dist/esm/funcs/chaptersAppsApiRestV0ChapterListChapters.d.ts.map +1 -0
- package/dist/esm/funcs/{chaptersListChapters.js → chaptersAppsApiRestV0ChapterListChapters.js} +5 -4
- package/dist/esm/funcs/chaptersAppsApiRestV0ChapterListChapters.js.map +1 -0
- package/dist/esm/funcs/committeesAppsApiRestV0CommitteeGetChapter.d.ts +19 -0
- package/dist/esm/funcs/committeesAppsApiRestV0CommitteeGetChapter.d.ts.map +1 -0
- package/dist/esm/funcs/committeesAppsApiRestV0CommitteeGetChapter.js +88 -0
- package/dist/esm/funcs/committeesAppsApiRestV0CommitteeGetChapter.js.map +1 -0
- package/dist/esm/funcs/{communityGetMember.d.ts → communityAppsApiRestV0MemberGetMember.d.ts} +4 -4
- package/dist/esm/funcs/communityAppsApiRestV0MemberGetMember.d.ts.map +1 -0
- package/dist/esm/funcs/{communityGetMember.js → communityAppsApiRestV0MemberGetMember.js} +8 -8
- package/dist/esm/funcs/communityAppsApiRestV0MemberGetMember.js.map +1 -0
- package/dist/esm/funcs/communityAppsApiRestV0OrganizationGetOrganization.d.ts +19 -0
- package/dist/esm/funcs/communityAppsApiRestV0OrganizationGetOrganization.d.ts.map +1 -0
- package/dist/esm/funcs/communityAppsApiRestV0OrganizationGetOrganization.js +89 -0
- package/dist/esm/funcs/communityAppsApiRestV0OrganizationGetOrganization.js.map +1 -0
- package/dist/{commonjs/funcs/chaptersListChapters.d.ts → esm/funcs/communityAppsApiRestV0OrganizationListOrganization.d.ts} +4 -4
- package/dist/esm/funcs/communityAppsApiRestV0OrganizationListOrganization.d.ts.map +1 -0
- package/dist/esm/funcs/{communityListOrganizations.js → communityAppsApiRestV0OrganizationListOrganization.js} +5 -4
- package/dist/esm/funcs/communityAppsApiRestV0OrganizationListOrganization.js.map +1 -0
- package/dist/{commonjs/funcs/eventsListEvents.d.ts → esm/funcs/eventsAppsApiRestV0EventListEvents.d.ts} +2 -2
- package/dist/esm/funcs/eventsAppsApiRestV0EventListEvents.d.ts.map +1 -0
- package/dist/esm/funcs/{eventsListEvents.js → eventsAppsApiRestV0EventListEvents.js} +5 -4
- package/dist/esm/funcs/eventsAppsApiRestV0EventListEvents.js.map +1 -0
- package/dist/esm/funcs/projectsAppsApiRestV0ProjectGetProject.d.ts +19 -0
- package/dist/esm/funcs/projectsAppsApiRestV0ProjectGetProject.d.ts.map +1 -0
- package/dist/esm/funcs/projectsAppsApiRestV0ProjectGetProject.js +88 -0
- package/dist/esm/funcs/projectsAppsApiRestV0ProjectGetProject.js.map +1 -0
- package/dist/esm/funcs/projectsAppsApiRestV0ProjectListProjects.d.ts +18 -0
- package/dist/esm/funcs/projectsAppsApiRestV0ProjectListProjects.d.ts.map +1 -0
- package/dist/esm/funcs/{projectsListProjects.js → projectsAppsApiRestV0ProjectListProjects.js} +5 -4
- package/dist/esm/funcs/projectsAppsApiRestV0ProjectListProjects.js.map +1 -0
- package/dist/esm/lib/config.d.ts +4 -4
- package/dist/esm/lib/config.js +4 -4
- package/dist/esm/models/errors/committeeerrorresponse.d.ts +41 -0
- package/dist/esm/models/errors/committeeerrorresponse.d.ts.map +1 -0
- package/dist/esm/models/errors/committeeerrorresponse.js +48 -0
- package/dist/esm/models/errors/committeeerrorresponse.js.map +1 -0
- package/dist/esm/models/errors/index.d.ts +3 -0
- package/dist/esm/models/errors/index.d.ts.map +1 -1
- package/dist/esm/models/errors/index.js +3 -0
- package/dist/esm/models/errors/index.js.map +1 -1
- package/dist/esm/models/errors/organizationerrorresponse.d.ts +41 -0
- package/dist/esm/models/errors/organizationerrorresponse.d.ts.map +1 -0
- package/dist/esm/models/errors/organizationerrorresponse.js +48 -0
- package/dist/esm/models/errors/organizationerrorresponse.js.map +1 -0
- package/dist/esm/models/errors/projecterrorresponse.d.ts +41 -0
- package/dist/esm/models/errors/projecterrorresponse.d.ts.map +1 -0
- package/dist/esm/models/errors/projecterrorresponse.js +48 -0
- package/dist/esm/models/errors/projecterrorresponse.js.map +1 -0
- package/dist/esm/models/memberschema.d.ts +0 -2
- package/dist/esm/models/memberschema.d.ts.map +1 -1
- package/dist/esm/models/memberschema.js +0 -2
- package/dist/esm/models/memberschema.js.map +1 -1
- package/dist/esm/models/operations/appsapirestv0chaptergetchapter.d.ts +29 -0
- package/dist/esm/models/operations/appsapirestv0chaptergetchapter.d.ts.map +1 -0
- package/dist/esm/models/operations/appsapirestv0chaptergetchapter.js +40 -0
- package/dist/esm/models/operations/appsapirestv0chaptergetchapter.js.map +1 -0
- package/dist/esm/models/operations/appsapirestv0chapterlistchapters.d.ts +84 -0
- package/dist/esm/models/operations/appsapirestv0chapterlistchapters.d.ts.map +1 -0
- package/dist/esm/models/operations/appsapirestv0chapterlistchapters.js +75 -0
- package/dist/esm/models/operations/appsapirestv0chapterlistchapters.js.map +1 -0
- package/dist/esm/models/operations/appsapirestv0committeegetchapter.d.ts +29 -0
- package/dist/esm/models/operations/appsapirestv0committeegetchapter.d.ts.map +1 -0
- package/dist/esm/models/operations/appsapirestv0committeegetchapter.js +40 -0
- package/dist/esm/models/operations/appsapirestv0committeegetchapter.js.map +1 -0
- package/dist/esm/models/operations/appsapirestv0eventlistevents.d.ts +74 -0
- package/dist/esm/models/operations/appsapirestv0eventlistevents.d.ts.map +1 -0
- package/dist/esm/models/operations/appsapirestv0eventlistevents.js +70 -0
- package/dist/esm/models/operations/appsapirestv0eventlistevents.js.map +1 -0
- package/dist/esm/models/operations/appsapirestv0membergetmember.d.ts +29 -0
- package/dist/esm/models/operations/appsapirestv0membergetmember.d.ts.map +1 -0
- package/dist/esm/models/operations/appsapirestv0membergetmember.js +40 -0
- package/dist/esm/models/operations/appsapirestv0membergetmember.js.map +1 -0
- package/dist/esm/models/operations/appsapirestv0organizationgetorganization.d.ts +29 -0
- package/dist/esm/models/operations/appsapirestv0organizationgetorganization.d.ts.map +1 -0
- package/dist/esm/models/operations/appsapirestv0organizationgetorganization.js +40 -0
- package/dist/esm/models/operations/appsapirestv0organizationgetorganization.js.map +1 -0
- package/dist/esm/models/operations/appsapirestv0organizationlistorganization.d.ts +79 -0
- package/dist/esm/models/operations/appsapirestv0organizationlistorganization.d.ts.map +1 -0
- package/dist/esm/models/operations/appsapirestv0organizationlistorganization.js +71 -0
- package/dist/esm/models/operations/appsapirestv0organizationlistorganization.js.map +1 -0
- package/dist/esm/models/operations/appsapirestv0projectgetproject.d.ts +29 -0
- package/dist/esm/models/operations/appsapirestv0projectgetproject.d.ts.map +1 -0
- package/dist/esm/models/operations/appsapirestv0projectgetproject.js +40 -0
- package/dist/esm/models/operations/appsapirestv0projectgetproject.js.map +1 -0
- package/dist/esm/models/operations/appsapirestv0projectlistprojects.d.ts +80 -0
- package/dist/esm/models/operations/appsapirestv0projectlistprojects.d.ts.map +1 -0
- package/dist/esm/models/operations/appsapirestv0projectlistprojects.js +74 -0
- package/dist/esm/models/operations/appsapirestv0projectlistprojects.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +9 -6
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +9 -6
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/chapters.d.ts +2 -2
- package/dist/esm/sdk/chapters.d.ts.map +1 -1
- package/dist/esm/sdk/chapters.js +6 -6
- package/dist/esm/sdk/chapters.js.map +1 -1
- package/dist/esm/sdk/committees.d.ts +7 -0
- package/dist/esm/sdk/committees.d.ts.map +1 -1
- package/dist/esm/sdk/committees.js +10 -0
- package/dist/esm/sdk/committees.js.map +1 -1
- package/dist/esm/sdk/community.d.ts +11 -4
- package/dist/esm/sdk/community.d.ts.map +1 -1
- package/dist/esm/sdk/community.js +18 -8
- package/dist/esm/sdk/community.js.map +1 -1
- package/dist/esm/sdk/events.d.ts +1 -1
- package/dist/esm/sdk/events.d.ts.map +1 -1
- package/dist/esm/sdk/events.js +3 -3
- package/dist/esm/sdk/events.js.map +1 -1
- package/dist/esm/sdk/projects.d.ts +8 -1
- package/dist/esm/sdk/projects.d.ts.map +1 -1
- package/dist/esm/sdk/projects.js +13 -3
- package/dist/esm/sdk/projects.js.map +1 -1
- package/docs/sdks/chapters/README.md +18 -24
- package/docs/sdks/committees/README.md +76 -1
- package/docs/sdks/community/README.md +95 -20
- package/docs/sdks/events/README.md +8 -8
- package/docs/sdks/projects/README.md +88 -9
- package/examples/{chaptersListChapters.example.ts → chaptersAppsApiRestV0ChapterListChapters.example.ts} +2 -5
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/{chaptersGetChapter.ts → chaptersAppsApiRestV0ChapterGetChapter.ts} +10 -7
- package/src/funcs/{chaptersListChapters.ts → chaptersAppsApiRestV0ChapterListChapters.ts} +6 -5
- package/src/funcs/committeesAppsApiRestV0CommitteeGetChapter.ts +179 -0
- package/src/funcs/{communityGetMember.ts → communityAppsApiRestV0MemberGetMember.ts} +12 -9
- package/src/funcs/communityAppsApiRestV0OrganizationGetOrganization.ts +180 -0
- package/src/funcs/{communityListOrganizations.ts → communityAppsApiRestV0OrganizationListOrganization.ts} +10 -7
- package/src/funcs/{eventsListEvents.ts → eventsAppsApiRestV0EventListEvents.ts} +6 -5
- package/src/funcs/projectsAppsApiRestV0ProjectGetProject.ts +179 -0
- package/src/funcs/{projectsListProjects.ts → projectsAppsApiRestV0ProjectListProjects.ts} +6 -5
- package/src/lib/config.ts +4 -4
- package/src/models/errors/committeeerrorresponse.ts +80 -0
- package/src/models/errors/index.ts +3 -0
- package/src/models/errors/organizationerrorresponse.ts +80 -0
- package/src/models/errors/projecterrorresponse.ts +80 -0
- package/src/models/memberschema.ts +0 -4
- package/src/models/operations/appsapirestv0chaptergetchapter.ts +80 -0
- package/src/models/operations/appsapirestv0chapterlistchapters.ts +153 -0
- package/src/models/operations/appsapirestv0committeegetchapter.ts +86 -0
- package/src/models/operations/appsapirestv0eventlistevents.ts +134 -0
- package/src/models/operations/appsapirestv0membergetmember.ts +80 -0
- package/src/models/operations/appsapirestv0organizationgetorganization.ts +89 -0
- package/src/models/operations/appsapirestv0organizationlistorganization.ts +154 -0
- package/src/models/operations/appsapirestv0projectgetproject.ts +80 -0
- package/src/models/operations/appsapirestv0projectlistprojects.ts +147 -0
- package/src/models/operations/index.ts +9 -6
- package/src/sdk/chapters.ts +8 -8
- package/src/sdk/committees.ts +18 -0
- package/src/sdk/community.ts +30 -10
- package/src/sdk/events.ts +4 -4
- package/src/sdk/projects.ts +22 -4
- package/dist/commonjs/funcs/chaptersGetChapter.d.ts.map +0 -1
- package/dist/commonjs/funcs/chaptersGetChapter.js.map +0 -1
- package/dist/commonjs/funcs/chaptersListChapters.d.ts.map +0 -1
- package/dist/commonjs/funcs/chaptersListChapters.js.map +0 -1
- package/dist/commonjs/funcs/communityGetMember.d.ts.map +0 -1
- package/dist/commonjs/funcs/communityGetMember.js.map +0 -1
- package/dist/commonjs/funcs/communityListOrganizations.d.ts.map +0 -1
- package/dist/commonjs/funcs/communityListOrganizations.js.map +0 -1
- package/dist/commonjs/funcs/eventsListEvents.d.ts.map +0 -1
- package/dist/commonjs/funcs/eventsListEvents.js.map +0 -1
- package/dist/commonjs/funcs/projectsListProjects.d.ts.map +0 -1
- package/dist/commonjs/funcs/projectsListProjects.js.map +0 -1
- package/dist/commonjs/models/operations/getchapter.d.ts +0 -29
- package/dist/commonjs/models/operations/getchapter.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getchapter.js.map +0 -1
- package/dist/commonjs/models/operations/getmember.d.ts +0 -29
- package/dist/commonjs/models/operations/getmember.d.ts.map +0 -1
- package/dist/commonjs/models/operations/getmember.js.map +0 -1
- package/dist/commonjs/models/operations/listchapters.d.ts +0 -84
- package/dist/commonjs/models/operations/listchapters.d.ts.map +0 -1
- package/dist/commonjs/models/operations/listchapters.js +0 -110
- package/dist/commonjs/models/operations/listchapters.js.map +0 -1
- package/dist/commonjs/models/operations/listevents.d.ts +0 -74
- package/dist/commonjs/models/operations/listevents.d.ts.map +0 -1
- package/dist/commonjs/models/operations/listevents.js +0 -106
- package/dist/commonjs/models/operations/listevents.js.map +0 -1
- package/dist/commonjs/models/operations/listorganizations.d.ts +0 -79
- package/dist/commonjs/models/operations/listorganizations.d.ts.map +0 -1
- package/dist/commonjs/models/operations/listorganizations.js +0 -108
- package/dist/commonjs/models/operations/listorganizations.js.map +0 -1
- package/dist/commonjs/models/operations/listprojects.d.ts +0 -80
- package/dist/commonjs/models/operations/listprojects.d.ts.map +0 -1
- package/dist/commonjs/models/operations/listprojects.js +0 -109
- package/dist/commonjs/models/operations/listprojects.js.map +0 -1
- package/dist/esm/funcs/chaptersGetChapter.d.ts.map +0 -1
- package/dist/esm/funcs/chaptersGetChapter.js.map +0 -1
- package/dist/esm/funcs/chaptersListChapters.d.ts.map +0 -1
- package/dist/esm/funcs/chaptersListChapters.js.map +0 -1
- package/dist/esm/funcs/communityGetMember.d.ts.map +0 -1
- package/dist/esm/funcs/communityGetMember.js.map +0 -1
- package/dist/esm/funcs/communityListOrganizations.d.ts +0 -18
- package/dist/esm/funcs/communityListOrganizations.d.ts.map +0 -1
- package/dist/esm/funcs/communityListOrganizations.js.map +0 -1
- package/dist/esm/funcs/eventsListEvents.d.ts.map +0 -1
- package/dist/esm/funcs/eventsListEvents.js.map +0 -1
- package/dist/esm/funcs/projectsListProjects.d.ts.map +0 -1
- package/dist/esm/funcs/projectsListProjects.js.map +0 -1
- package/dist/esm/models/operations/getchapter.d.ts +0 -29
- package/dist/esm/models/operations/getchapter.d.ts.map +0 -1
- package/dist/esm/models/operations/getchapter.js +0 -31
- package/dist/esm/models/operations/getchapter.js.map +0 -1
- package/dist/esm/models/operations/getmember.d.ts +0 -29
- package/dist/esm/models/operations/getmember.d.ts.map +0 -1
- package/dist/esm/models/operations/getmember.js +0 -31
- package/dist/esm/models/operations/getmember.js.map +0 -1
- package/dist/esm/models/operations/listchapters.d.ts +0 -84
- package/dist/esm/models/operations/listchapters.d.ts.map +0 -1
- package/dist/esm/models/operations/listchapters.js +0 -72
- package/dist/esm/models/operations/listchapters.js.map +0 -1
- package/dist/esm/models/operations/listevents.d.ts +0 -74
- package/dist/esm/models/operations/listevents.d.ts.map +0 -1
- package/dist/esm/models/operations/listevents.js +0 -68
- package/dist/esm/models/operations/listevents.js.map +0 -1
- package/dist/esm/models/operations/listorganizations.d.ts +0 -79
- package/dist/esm/models/operations/listorganizations.d.ts.map +0 -1
- package/dist/esm/models/operations/listorganizations.js +0 -70
- package/dist/esm/models/operations/listorganizations.js.map +0 -1
- package/dist/esm/models/operations/listprojects.d.ts +0 -80
- package/dist/esm/models/operations/listprojects.d.ts.map +0 -1
- package/dist/esm/models/operations/listprojects.js +0 -71
- package/dist/esm/models/operations/listprojects.js.map +0 -1
- package/src/models/operations/getchapter.ts +0 -66
- package/src/models/operations/getmember.ts +0 -66
- package/src/models/operations/listchapters.ts +0 -136
- package/src/models/operations/listevents.ts +0 -122
- package/src/models/operations/listorganizations.ts +0 -131
- package/src/models/operations/listprojects.ts +0 -130
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { NestCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { NestError } from "../models/errors/nesterror.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as models from "../models/index.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Get organization
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Retrieve project details.
|
|
34
|
+
*/
|
|
35
|
+
export function communityAppsApiRestV0OrganizationGetOrganization(
|
|
36
|
+
client: NestCore,
|
|
37
|
+
request: operations.AppsApiRestV0OrganizationGetOrganizationRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
models.OrganizationSchema,
|
|
42
|
+
| errors.OrganizationErrorResponse
|
|
43
|
+
| NestError
|
|
44
|
+
| ResponseValidationError
|
|
45
|
+
| ConnectionError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| InvalidRequestError
|
|
49
|
+
| UnexpectedClientError
|
|
50
|
+
| SDKValidationError
|
|
51
|
+
>
|
|
52
|
+
> {
|
|
53
|
+
return new APIPromise($do(
|
|
54
|
+
client,
|
|
55
|
+
request,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function $do(
|
|
61
|
+
client: NestCore,
|
|
62
|
+
request: operations.AppsApiRestV0OrganizationGetOrganizationRequest,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
models.OrganizationSchema,
|
|
68
|
+
| errors.OrganizationErrorResponse
|
|
69
|
+
| NestError
|
|
70
|
+
| ResponseValidationError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
| RequestAbortedError
|
|
73
|
+
| RequestTimeoutError
|
|
74
|
+
| InvalidRequestError
|
|
75
|
+
| UnexpectedClientError
|
|
76
|
+
| SDKValidationError
|
|
77
|
+
>,
|
|
78
|
+
APICall,
|
|
79
|
+
]
|
|
80
|
+
> {
|
|
81
|
+
const parsed = safeParse(
|
|
82
|
+
request,
|
|
83
|
+
(value) =>
|
|
84
|
+
operations.AppsApiRestV0OrganizationGetOrganizationRequest$outboundSchema
|
|
85
|
+
.parse(value),
|
|
86
|
+
"Input validation failed",
|
|
87
|
+
);
|
|
88
|
+
if (!parsed.ok) {
|
|
89
|
+
return [parsed, { status: "invalid" }];
|
|
90
|
+
}
|
|
91
|
+
const payload = parsed.value;
|
|
92
|
+
const body = null;
|
|
93
|
+
|
|
94
|
+
const pathParams = {
|
|
95
|
+
organization_id: encodeSimple("organization_id", payload.organization_id, {
|
|
96
|
+
explode: false,
|
|
97
|
+
charEncoding: "percent",
|
|
98
|
+
}),
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const path = pathToFunc("/api/v0/organizations/{organization_id}")(
|
|
102
|
+
pathParams,
|
|
103
|
+
);
|
|
104
|
+
|
|
105
|
+
const headers = new Headers(compactMap({
|
|
106
|
+
Accept: "application/json",
|
|
107
|
+
}));
|
|
108
|
+
|
|
109
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
110
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
111
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
112
|
+
|
|
113
|
+
const context = {
|
|
114
|
+
options: client._options,
|
|
115
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
116
|
+
operationID: "apps_api_rest_v0_organization_get_organization",
|
|
117
|
+
oAuth2Scopes: [],
|
|
118
|
+
|
|
119
|
+
resolvedSecurity: requestSecurity,
|
|
120
|
+
|
|
121
|
+
securitySource: client._options.apiKeyHeader,
|
|
122
|
+
retryConfig: options?.retries
|
|
123
|
+
|| client._options.retryConfig
|
|
124
|
+
|| { strategy: "none" },
|
|
125
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
const requestRes = client._createRequest(context, {
|
|
129
|
+
security: requestSecurity,
|
|
130
|
+
method: "GET",
|
|
131
|
+
baseURL: options?.serverURL,
|
|
132
|
+
path: path,
|
|
133
|
+
headers: headers,
|
|
134
|
+
body: body,
|
|
135
|
+
userAgent: client._options.userAgent,
|
|
136
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
137
|
+
}, options);
|
|
138
|
+
if (!requestRes.ok) {
|
|
139
|
+
return [requestRes, { status: "invalid" }];
|
|
140
|
+
}
|
|
141
|
+
const req = requestRes.value;
|
|
142
|
+
|
|
143
|
+
const doResult = await client._do(req, {
|
|
144
|
+
context,
|
|
145
|
+
errorCodes: ["404", "4XX", "5XX"],
|
|
146
|
+
retryConfig: context.retryConfig,
|
|
147
|
+
retryCodes: context.retryCodes,
|
|
148
|
+
});
|
|
149
|
+
if (!doResult.ok) {
|
|
150
|
+
return [doResult, { status: "request-error", request: req }];
|
|
151
|
+
}
|
|
152
|
+
const response = doResult.value;
|
|
153
|
+
|
|
154
|
+
const responseFields = {
|
|
155
|
+
HttpMeta: { Response: response, Request: req },
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
const [result] = await M.match<
|
|
159
|
+
models.OrganizationSchema,
|
|
160
|
+
| errors.OrganizationErrorResponse
|
|
161
|
+
| NestError
|
|
162
|
+
| ResponseValidationError
|
|
163
|
+
| ConnectionError
|
|
164
|
+
| RequestAbortedError
|
|
165
|
+
| RequestTimeoutError
|
|
166
|
+
| InvalidRequestError
|
|
167
|
+
| UnexpectedClientError
|
|
168
|
+
| SDKValidationError
|
|
169
|
+
>(
|
|
170
|
+
M.json(200, models.OrganizationSchema$inboundSchema),
|
|
171
|
+
M.jsonErr(404, errors.OrganizationErrorResponse$inboundSchema),
|
|
172
|
+
M.fail("4XX"),
|
|
173
|
+
M.fail("5XX"),
|
|
174
|
+
)(response, req, { extraFields: responseFields });
|
|
175
|
+
if (!result.ok) {
|
|
176
|
+
return [result, { status: "complete", request: req, response }];
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return [result, { status: "complete", request: req, response }];
|
|
180
|
+
}
|
|
@@ -31,9 +31,11 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* @remarks
|
|
32
32
|
* Retrieve a paginated list of GitHub organizations.
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function communityAppsApiRestV0OrganizationListOrganization(
|
|
35
35
|
client: NestCore,
|
|
36
|
-
request?:
|
|
36
|
+
request?:
|
|
37
|
+
| operations.AppsApiRestV0OrganizationListOrganizationRequest
|
|
38
|
+
| undefined,
|
|
37
39
|
options?: RequestOptions,
|
|
38
40
|
): APIPromise<
|
|
39
41
|
Result<
|
|
@@ -57,7 +59,9 @@ export function communityListOrganizations(
|
|
|
57
59
|
|
|
58
60
|
async function $do(
|
|
59
61
|
client: NestCore,
|
|
60
|
-
request?:
|
|
62
|
+
request?:
|
|
63
|
+
| operations.AppsApiRestV0OrganizationListOrganizationRequest
|
|
64
|
+
| undefined,
|
|
61
65
|
options?: RequestOptions,
|
|
62
66
|
): Promise<
|
|
63
67
|
[
|
|
@@ -78,9 +82,8 @@ async function $do(
|
|
|
78
82
|
const parsed = safeParse(
|
|
79
83
|
request,
|
|
80
84
|
(value) =>
|
|
81
|
-
operations.
|
|
82
|
-
value,
|
|
83
|
-
),
|
|
85
|
+
operations.AppsApiRestV0OrganizationListOrganizationRequest$outboundSchema
|
|
86
|
+
.optional().parse(value),
|
|
84
87
|
"Input validation failed",
|
|
85
88
|
);
|
|
86
89
|
if (!parsed.ok) {
|
|
@@ -109,7 +112,7 @@ async function $do(
|
|
|
109
112
|
const context = {
|
|
110
113
|
options: client._options,
|
|
111
114
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
|
-
operationID: "
|
|
115
|
+
operationID: "apps_api_rest_v0_organization_list_organization",
|
|
113
116
|
oAuth2Scopes: [],
|
|
114
117
|
|
|
115
118
|
resolvedSecurity: requestSecurity,
|
|
@@ -31,9 +31,9 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* @remarks
|
|
32
32
|
* Retrieve a paginated list of OWASP events.
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function eventsAppsApiRestV0EventListEvents(
|
|
35
35
|
client: NestCore,
|
|
36
|
-
request?: operations.
|
|
36
|
+
request?: operations.AppsApiRestV0EventListEventsRequest | undefined,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
@@ -57,7 +57,7 @@ export function eventsListEvents(
|
|
|
57
57
|
|
|
58
58
|
async function $do(
|
|
59
59
|
client: NestCore,
|
|
60
|
-
request?: operations.
|
|
60
|
+
request?: operations.AppsApiRestV0EventListEventsRequest | undefined,
|
|
61
61
|
options?: RequestOptions,
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
@@ -78,7 +78,8 @@ async function $do(
|
|
|
78
78
|
const parsed = safeParse(
|
|
79
79
|
request,
|
|
80
80
|
(value) =>
|
|
81
|
-
operations.
|
|
81
|
+
operations.AppsApiRestV0EventListEventsRequest$outboundSchema.optional()
|
|
82
|
+
.parse(value),
|
|
82
83
|
"Input validation failed",
|
|
83
84
|
);
|
|
84
85
|
if (!parsed.ok) {
|
|
@@ -106,7 +107,7 @@ async function $do(
|
|
|
106
107
|
const context = {
|
|
107
108
|
options: client._options,
|
|
108
109
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
109
|
-
operationID: "
|
|
110
|
+
operationID: "apps_api_rest_v0_event_list_events",
|
|
110
111
|
oAuth2Scopes: [],
|
|
111
112
|
|
|
112
113
|
resolvedSecurity: requestSecurity,
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { NestCore } from "../core.js";
|
|
6
|
+
import { encodeSimple } from "../lib/encodings.js";
|
|
7
|
+
import * as M from "../lib/matchers.js";
|
|
8
|
+
import { compactMap } from "../lib/primitives.js";
|
|
9
|
+
import { safeParse } from "../lib/schemas.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import * as errors from "../models/errors/index.js";
|
|
21
|
+
import { NestError } from "../models/errors/nesterror.js";
|
|
22
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
23
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
24
|
+
import * as models from "../models/index.js";
|
|
25
|
+
import * as operations from "../models/operations/index.js";
|
|
26
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
27
|
+
import { Result } from "../types/fp.js";
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Get project
|
|
31
|
+
*
|
|
32
|
+
* @remarks
|
|
33
|
+
* Retrieve project details.
|
|
34
|
+
*/
|
|
35
|
+
export function projectsAppsApiRestV0ProjectGetProject(
|
|
36
|
+
client: NestCore,
|
|
37
|
+
request: operations.AppsApiRestV0ProjectGetProjectRequest,
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<
|
|
40
|
+
Result<
|
|
41
|
+
models.ProjectSchema,
|
|
42
|
+
| errors.ProjectErrorResponse
|
|
43
|
+
| NestError
|
|
44
|
+
| ResponseValidationError
|
|
45
|
+
| ConnectionError
|
|
46
|
+
| RequestAbortedError
|
|
47
|
+
| RequestTimeoutError
|
|
48
|
+
| InvalidRequestError
|
|
49
|
+
| UnexpectedClientError
|
|
50
|
+
| SDKValidationError
|
|
51
|
+
>
|
|
52
|
+
> {
|
|
53
|
+
return new APIPromise($do(
|
|
54
|
+
client,
|
|
55
|
+
request,
|
|
56
|
+
options,
|
|
57
|
+
));
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
async function $do(
|
|
61
|
+
client: NestCore,
|
|
62
|
+
request: operations.AppsApiRestV0ProjectGetProjectRequest,
|
|
63
|
+
options?: RequestOptions,
|
|
64
|
+
): Promise<
|
|
65
|
+
[
|
|
66
|
+
Result<
|
|
67
|
+
models.ProjectSchema,
|
|
68
|
+
| errors.ProjectErrorResponse
|
|
69
|
+
| NestError
|
|
70
|
+
| ResponseValidationError
|
|
71
|
+
| ConnectionError
|
|
72
|
+
| RequestAbortedError
|
|
73
|
+
| RequestTimeoutError
|
|
74
|
+
| InvalidRequestError
|
|
75
|
+
| UnexpectedClientError
|
|
76
|
+
| SDKValidationError
|
|
77
|
+
>,
|
|
78
|
+
APICall,
|
|
79
|
+
]
|
|
80
|
+
> {
|
|
81
|
+
const parsed = safeParse(
|
|
82
|
+
request,
|
|
83
|
+
(value) =>
|
|
84
|
+
operations.AppsApiRestV0ProjectGetProjectRequest$outboundSchema.parse(
|
|
85
|
+
value,
|
|
86
|
+
),
|
|
87
|
+
"Input validation failed",
|
|
88
|
+
);
|
|
89
|
+
if (!parsed.ok) {
|
|
90
|
+
return [parsed, { status: "invalid" }];
|
|
91
|
+
}
|
|
92
|
+
const payload = parsed.value;
|
|
93
|
+
const body = null;
|
|
94
|
+
|
|
95
|
+
const pathParams = {
|
|
96
|
+
project_id: encodeSimple("project_id", payload.project_id, {
|
|
97
|
+
explode: false,
|
|
98
|
+
charEncoding: "percent",
|
|
99
|
+
}),
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
const path = pathToFunc("/api/v0/projects/{project_id}")(pathParams);
|
|
103
|
+
|
|
104
|
+
const headers = new Headers(compactMap({
|
|
105
|
+
Accept: "application/json",
|
|
106
|
+
}));
|
|
107
|
+
|
|
108
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
109
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
110
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
111
|
+
|
|
112
|
+
const context = {
|
|
113
|
+
options: client._options,
|
|
114
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
115
|
+
operationID: "apps_api_rest_v0_project_get_project",
|
|
116
|
+
oAuth2Scopes: [],
|
|
117
|
+
|
|
118
|
+
resolvedSecurity: requestSecurity,
|
|
119
|
+
|
|
120
|
+
securitySource: client._options.apiKeyHeader,
|
|
121
|
+
retryConfig: options?.retries
|
|
122
|
+
|| client._options.retryConfig
|
|
123
|
+
|| { strategy: "none" },
|
|
124
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
const requestRes = client._createRequest(context, {
|
|
128
|
+
security: requestSecurity,
|
|
129
|
+
method: "GET",
|
|
130
|
+
baseURL: options?.serverURL,
|
|
131
|
+
path: path,
|
|
132
|
+
headers: headers,
|
|
133
|
+
body: body,
|
|
134
|
+
userAgent: client._options.userAgent,
|
|
135
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
136
|
+
}, options);
|
|
137
|
+
if (!requestRes.ok) {
|
|
138
|
+
return [requestRes, { status: "invalid" }];
|
|
139
|
+
}
|
|
140
|
+
const req = requestRes.value;
|
|
141
|
+
|
|
142
|
+
const doResult = await client._do(req, {
|
|
143
|
+
context,
|
|
144
|
+
errorCodes: ["404", "4XX", "5XX"],
|
|
145
|
+
retryConfig: context.retryConfig,
|
|
146
|
+
retryCodes: context.retryCodes,
|
|
147
|
+
});
|
|
148
|
+
if (!doResult.ok) {
|
|
149
|
+
return [doResult, { status: "request-error", request: req }];
|
|
150
|
+
}
|
|
151
|
+
const response = doResult.value;
|
|
152
|
+
|
|
153
|
+
const responseFields = {
|
|
154
|
+
HttpMeta: { Response: response, Request: req },
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
const [result] = await M.match<
|
|
158
|
+
models.ProjectSchema,
|
|
159
|
+
| errors.ProjectErrorResponse
|
|
160
|
+
| NestError
|
|
161
|
+
| ResponseValidationError
|
|
162
|
+
| ConnectionError
|
|
163
|
+
| RequestAbortedError
|
|
164
|
+
| RequestTimeoutError
|
|
165
|
+
| InvalidRequestError
|
|
166
|
+
| UnexpectedClientError
|
|
167
|
+
| SDKValidationError
|
|
168
|
+
>(
|
|
169
|
+
M.json(200, models.ProjectSchema$inboundSchema),
|
|
170
|
+
M.jsonErr(404, errors.ProjectErrorResponse$inboundSchema),
|
|
171
|
+
M.fail("4XX"),
|
|
172
|
+
M.fail("5XX"),
|
|
173
|
+
)(response, req, { extraFields: responseFields });
|
|
174
|
+
if (!result.ok) {
|
|
175
|
+
return [result, { status: "complete", request: req, response }];
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
return [result, { status: "complete", request: req, response }];
|
|
179
|
+
}
|
|
@@ -31,9 +31,9 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* @remarks
|
|
32
32
|
* Retrieve a paginated list of OWASP projects.
|
|
33
33
|
*/
|
|
34
|
-
export function
|
|
34
|
+
export function projectsAppsApiRestV0ProjectListProjects(
|
|
35
35
|
client: NestCore,
|
|
36
|
-
request?: operations.
|
|
36
|
+
request?: operations.AppsApiRestV0ProjectListProjectsRequest | undefined,
|
|
37
37
|
options?: RequestOptions,
|
|
38
38
|
): APIPromise<
|
|
39
39
|
Result<
|
|
@@ -57,7 +57,7 @@ export function projectsListProjects(
|
|
|
57
57
|
|
|
58
58
|
async function $do(
|
|
59
59
|
client: NestCore,
|
|
60
|
-
request?: operations.
|
|
60
|
+
request?: operations.AppsApiRestV0ProjectListProjectsRequest | undefined,
|
|
61
61
|
options?: RequestOptions,
|
|
62
62
|
): Promise<
|
|
63
63
|
[
|
|
@@ -78,7 +78,8 @@ async function $do(
|
|
|
78
78
|
const parsed = safeParse(
|
|
79
79
|
request,
|
|
80
80
|
(value) =>
|
|
81
|
-
operations.
|
|
81
|
+
operations.AppsApiRestV0ProjectListProjectsRequest$outboundSchema
|
|
82
|
+
.optional().parse(value),
|
|
82
83
|
"Input validation failed",
|
|
83
84
|
);
|
|
84
85
|
if (!parsed.ok) {
|
|
@@ -107,7 +108,7 @@ async function $do(
|
|
|
107
108
|
const context = {
|
|
108
109
|
options: client._options,
|
|
109
110
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
110
|
-
operationID: "
|
|
111
|
+
operationID: "apps_api_rest_v0_project_list_projects",
|
|
111
112
|
oAuth2Scopes: [],
|
|
112
113
|
|
|
113
114
|
resolvedSecurity: requestSecurity,
|
package/src/lib/config.ts
CHANGED
|
@@ -60,8 +60,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
60
60
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
|
-
openapiDocVersion: "0.2.
|
|
64
|
-
sdkVersion: "0.2.
|
|
65
|
-
genVersion: "2.698.
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 0.2.
|
|
63
|
+
openapiDocVersion: "0.2.1",
|
|
64
|
+
sdkVersion: "0.2.1",
|
|
65
|
+
genVersion: "2.698.4",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 0.2.1 2.698.4 0.2.1 owasp-nest",
|
|
67
67
|
} as const;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { NestError } from "./nesterror.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Committee error response schema.
|
|
10
|
+
*/
|
|
11
|
+
export type CommitteeErrorResponseData = {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Committee error response schema.
|
|
17
|
+
*/
|
|
18
|
+
export class CommitteeErrorResponse extends NestError {
|
|
19
|
+
/** The original data that was passed to this error instance. */
|
|
20
|
+
data$: CommitteeErrorResponseData;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
err: CommitteeErrorResponseData,
|
|
24
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
25
|
+
) {
|
|
26
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
27
|
+
super(message, httpMeta);
|
|
28
|
+
this.data$ = err;
|
|
29
|
+
|
|
30
|
+
this.name = "CommitteeErrorResponse";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const CommitteeErrorResponse$inboundSchema: z.ZodType<
|
|
36
|
+
CommitteeErrorResponse,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.object({
|
|
40
|
+
message: z.string(),
|
|
41
|
+
request$: z.instanceof(Request),
|
|
42
|
+
response$: z.instanceof(Response),
|
|
43
|
+
body$: z.string(),
|
|
44
|
+
})
|
|
45
|
+
.transform((v) => {
|
|
46
|
+
return new CommitteeErrorResponse(v, {
|
|
47
|
+
request: v.request$,
|
|
48
|
+
response: v.response$,
|
|
49
|
+
body: v.body$,
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type CommitteeErrorResponse$Outbound = {
|
|
55
|
+
message: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const CommitteeErrorResponse$outboundSchema: z.ZodType<
|
|
60
|
+
CommitteeErrorResponse$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
CommitteeErrorResponse
|
|
63
|
+
> = z.instanceof(CommitteeErrorResponse)
|
|
64
|
+
.transform(v => v.data$)
|
|
65
|
+
.pipe(z.object({
|
|
66
|
+
message: z.string(),
|
|
67
|
+
}));
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export namespace CommitteeErrorResponse$ {
|
|
74
|
+
/** @deprecated use `CommitteeErrorResponse$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = CommitteeErrorResponse$inboundSchema;
|
|
76
|
+
/** @deprecated use `CommitteeErrorResponse$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = CommitteeErrorResponse$outboundSchema;
|
|
78
|
+
/** @deprecated use `CommitteeErrorResponse$Outbound` instead. */
|
|
79
|
+
export type Outbound = CommitteeErrorResponse$Outbound;
|
|
80
|
+
}
|
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
export * from "./chaptererrorresponse.js";
|
|
6
|
+
export * from "./committeeerrorresponse.js";
|
|
6
7
|
export * from "./httpclienterrors.js";
|
|
7
8
|
export * from "./membererrorresponse.js";
|
|
8
9
|
export * from "./nestapierror.js";
|
|
10
|
+
export * from "./organizationerrorresponse.js";
|
|
11
|
+
export * from "./projecterrorresponse.js";
|
|
9
12
|
export * from "./responsevalidationerror.js";
|
|
10
13
|
export * from "./sdkvalidationerror.js";
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { NestError } from "./nesterror.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Organization error response schema.
|
|
10
|
+
*/
|
|
11
|
+
export type OrganizationErrorResponseData = {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Organization error response schema.
|
|
17
|
+
*/
|
|
18
|
+
export class OrganizationErrorResponse extends NestError {
|
|
19
|
+
/** The original data that was passed to this error instance. */
|
|
20
|
+
data$: OrganizationErrorResponseData;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
err: OrganizationErrorResponseData,
|
|
24
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
25
|
+
) {
|
|
26
|
+
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
27
|
+
super(message, httpMeta);
|
|
28
|
+
this.data$ = err;
|
|
29
|
+
|
|
30
|
+
this.name = "OrganizationErrorResponse";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const OrganizationErrorResponse$inboundSchema: z.ZodType<
|
|
36
|
+
OrganizationErrorResponse,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
unknown
|
|
39
|
+
> = z.object({
|
|
40
|
+
message: z.string(),
|
|
41
|
+
request$: z.instanceof(Request),
|
|
42
|
+
response$: z.instanceof(Response),
|
|
43
|
+
body$: z.string(),
|
|
44
|
+
})
|
|
45
|
+
.transform((v) => {
|
|
46
|
+
return new OrganizationErrorResponse(v, {
|
|
47
|
+
request: v.request$,
|
|
48
|
+
response: v.response$,
|
|
49
|
+
body: v.body$,
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type OrganizationErrorResponse$Outbound = {
|
|
55
|
+
message: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const OrganizationErrorResponse$outboundSchema: z.ZodType<
|
|
60
|
+
OrganizationErrorResponse$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
OrganizationErrorResponse
|
|
63
|
+
> = z.instanceof(OrganizationErrorResponse)
|
|
64
|
+
.transform(v => v.data$)
|
|
65
|
+
.pipe(z.object({
|
|
66
|
+
message: z.string(),
|
|
67
|
+
}));
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* @internal
|
|
71
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
|
+
*/
|
|
73
|
+
export namespace OrganizationErrorResponse$ {
|
|
74
|
+
/** @deprecated use `OrganizationErrorResponse$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = OrganizationErrorResponse$inboundSchema;
|
|
76
|
+
/** @deprecated use `OrganizationErrorResponse$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = OrganizationErrorResponse$outboundSchema;
|
|
78
|
+
/** @deprecated use `OrganizationErrorResponse$Outbound` instead. */
|
|
79
|
+
export type Outbound = OrganizationErrorResponse$Outbound;
|
|
80
|
+
}
|