owasp-nest 0.0.3 → 0.2.0
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 +1 -1
- package/README.md +13 -18
- package/dist/commonjs/funcs/chaptersGetChapter.js +4 -4
- package/dist/commonjs/funcs/chaptersGetChapter.js.map +1 -1
- package/dist/commonjs/funcs/chaptersListChapters.js +4 -4
- package/dist/commonjs/funcs/chaptersListChapters.js.map +1 -1
- package/dist/commonjs/funcs/committeesListCommittees.js +4 -4
- package/dist/commonjs/funcs/committeesListCommittees.js.map +1 -1
- package/dist/commonjs/funcs/communityGetMember.js +4 -4
- package/dist/commonjs/funcs/communityGetMember.js.map +1 -1
- package/dist/commonjs/funcs/communityListMembers.js +4 -4
- package/dist/commonjs/funcs/communityListMembers.js.map +1 -1
- package/dist/commonjs/funcs/communityListOrganizations.js +4 -4
- package/dist/commonjs/funcs/communityListOrganizations.js.map +1 -1
- package/dist/commonjs/funcs/eventsListEvents.js +4 -4
- package/dist/commonjs/funcs/eventsListEvents.js.map +1 -1
- package/dist/commonjs/funcs/issuesListIssues.js +4 -4
- package/dist/commonjs/funcs/issuesListIssues.js.map +1 -1
- package/dist/commonjs/funcs/projectsListProjects.js +4 -4
- package/dist/commonjs/funcs/projectsListProjects.js.map +1 -1
- package/dist/commonjs/funcs/releasesListReleases.js +4 -4
- package/dist/commonjs/funcs/releasesListReleases.js.map +1 -1
- package/dist/commonjs/funcs/repositoriesListRepositories.js +4 -4
- package/dist/commonjs/funcs/repositoriesListRepositories.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +6 -6
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +6 -6
- package/dist/commonjs/lib/env.d.ts +1 -1
- package/dist/commonjs/lib/env.d.ts.map +1 -1
- package/dist/commonjs/lib/env.js +1 -1
- package/dist/commonjs/lib/env.js.map +1 -1
- package/dist/commonjs/lib/security.js +1 -1
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/models/security.d.ts +2 -2
- package/dist/commonjs/models/security.d.ts.map +1 -1
- package/dist/commonjs/models/security.js +4 -4
- package/dist/commonjs/models/security.js.map +1 -1
- package/dist/esm/funcs/chaptersGetChapter.js +4 -4
- package/dist/esm/funcs/chaptersGetChapter.js.map +1 -1
- package/dist/esm/funcs/chaptersListChapters.js +4 -4
- package/dist/esm/funcs/chaptersListChapters.js.map +1 -1
- package/dist/esm/funcs/committeesListCommittees.js +4 -4
- package/dist/esm/funcs/committeesListCommittees.js.map +1 -1
- package/dist/esm/funcs/communityGetMember.js +4 -4
- package/dist/esm/funcs/communityGetMember.js.map +1 -1
- package/dist/esm/funcs/communityListMembers.js +4 -4
- package/dist/esm/funcs/communityListMembers.js.map +1 -1
- package/dist/esm/funcs/communityListOrganizations.js +4 -4
- package/dist/esm/funcs/communityListOrganizations.js.map +1 -1
- package/dist/esm/funcs/eventsListEvents.js +4 -4
- package/dist/esm/funcs/eventsListEvents.js.map +1 -1
- package/dist/esm/funcs/issuesListIssues.js +4 -4
- package/dist/esm/funcs/issuesListIssues.js.map +1 -1
- package/dist/esm/funcs/projectsListProjects.js +4 -4
- package/dist/esm/funcs/projectsListProjects.js.map +1 -1
- package/dist/esm/funcs/releasesListReleases.js +4 -4
- package/dist/esm/funcs/releasesListReleases.js.map +1 -1
- package/dist/esm/funcs/repositoriesListRepositories.js +4 -4
- package/dist/esm/funcs/repositoriesListRepositories.js.map +1 -1
- package/dist/esm/lib/config.d.ts +6 -6
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +6 -6
- package/dist/esm/lib/env.d.ts +1 -1
- package/dist/esm/lib/env.d.ts.map +1 -1
- package/dist/esm/lib/env.js +1 -1
- package/dist/esm/lib/env.js.map +1 -1
- package/dist/esm/lib/security.js +1 -1
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/models/security.d.ts +2 -2
- package/dist/esm/models/security.d.ts.map +1 -1
- package/dist/esm/models/security.js +4 -4
- package/dist/esm/models/security.js.map +1 -1
- package/docs/sdks/chapters/README.md +6 -6
- package/docs/sdks/committees/README.md +3 -3
- package/docs/sdks/community/README.md +9 -9
- package/docs/sdks/events/README.md +3 -3
- package/docs/sdks/issues/README.md +3 -3
- package/docs/sdks/projects/README.md +3 -3
- package/docs/sdks/releases/README.md +3 -3
- package/docs/sdks/repositories/README.md +3 -3
- package/examples/chaptersListChapters.example.ts +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/chaptersGetChapter.ts +4 -4
- package/src/funcs/chaptersListChapters.ts +4 -4
- package/src/funcs/committeesListCommittees.ts +4 -4
- package/src/funcs/communityGetMember.ts +4 -4
- package/src/funcs/communityListMembers.ts +4 -4
- package/src/funcs/communityListOrganizations.ts +4 -4
- package/src/funcs/eventsListEvents.ts +4 -4
- package/src/funcs/issuesListIssues.ts +4 -4
- package/src/funcs/projectsListProjects.ts +4 -4
- package/src/funcs/releasesListReleases.ts +4 -4
- package/src/funcs/repositoriesListRepositories.ts +4 -4
- package/src/lib/config.ts +7 -7
- package/src/lib/env.ts +2 -2
- package/src/lib/security.ts +1 -1
- package/src/models/security.ts +6 -6
package/package.json
CHANGED
|
@@ -96,14 +96,14 @@ async function $do(
|
|
|
96
96
|
}),
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
const path = pathToFunc("/api/
|
|
99
|
+
const path = pathToFunc("/api/v0/chapters/{key}")(pathParams);
|
|
100
100
|
|
|
101
101
|
const headers = new Headers(compactMap({
|
|
102
102
|
Accept: "application/json",
|
|
103
103
|
}));
|
|
104
104
|
|
|
105
|
-
const secConfig = await extractSecurity(client._options.
|
|
106
|
-
const securityInput = secConfig == null ? {} : {
|
|
105
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
107
107
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
108
|
|
|
109
109
|
const context = {
|
|
@@ -114,7 +114,7 @@ async function $do(
|
|
|
114
114
|
|
|
115
115
|
resolvedSecurity: requestSecurity,
|
|
116
116
|
|
|
117
|
-
securitySource: client._options.
|
|
117
|
+
securitySource: client._options.apiKeyHeader,
|
|
118
118
|
retryConfig: options?.retries
|
|
119
119
|
|| client._options.retryConfig
|
|
120
120
|
|| { strategy: "none" },
|
|
@@ -87,7 +87,7 @@ async function $do(
|
|
|
87
87
|
const payload = parsed.value;
|
|
88
88
|
const body = null;
|
|
89
89
|
|
|
90
|
-
const path = pathToFunc("/api/
|
|
90
|
+
const path = pathToFunc("/api/v0/chapters/")();
|
|
91
91
|
|
|
92
92
|
const query = encodeFormQuery({
|
|
93
93
|
"country": payload?.country,
|
|
@@ -101,8 +101,8 @@ async function $do(
|
|
|
101
101
|
Accept: "application/json",
|
|
102
102
|
}));
|
|
103
103
|
|
|
104
|
-
const secConfig = await extractSecurity(client._options.
|
|
105
|
-
const securityInput = secConfig == null ? {} : {
|
|
104
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
105
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
106
106
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
107
|
|
|
108
108
|
const context = {
|
|
@@ -113,7 +113,7 @@ async function $do(
|
|
|
113
113
|
|
|
114
114
|
resolvedSecurity: requestSecurity,
|
|
115
115
|
|
|
116
|
-
securitySource: client._options.
|
|
116
|
+
securitySource: client._options.apiKeyHeader,
|
|
117
117
|
retryConfig: options?.retries
|
|
118
118
|
|| client._options.retryConfig
|
|
119
119
|
|| { strategy: "none" },
|
|
@@ -87,7 +87,7 @@ async function $do(
|
|
|
87
87
|
const payload = parsed.value;
|
|
88
88
|
const body = null;
|
|
89
89
|
|
|
90
|
-
const path = pathToFunc("/api/
|
|
90
|
+
const path = pathToFunc("/api/v0/committees/")();
|
|
91
91
|
|
|
92
92
|
const query = encodeFormQuery({
|
|
93
93
|
"ordering": payload?.ordering,
|
|
@@ -99,8 +99,8 @@ async function $do(
|
|
|
99
99
|
Accept: "application/json",
|
|
100
100
|
}));
|
|
101
101
|
|
|
102
|
-
const secConfig = await extractSecurity(client._options.
|
|
103
|
-
const securityInput = secConfig == null ? {} : {
|
|
102
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
103
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
104
104
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
105
105
|
|
|
106
106
|
const context = {
|
|
@@ -111,7 +111,7 @@ async function $do(
|
|
|
111
111
|
|
|
112
112
|
resolvedSecurity: requestSecurity,
|
|
113
113
|
|
|
114
|
-
securitySource: client._options.
|
|
114
|
+
securitySource: client._options.apiKeyHeader,
|
|
115
115
|
retryConfig: options?.retries
|
|
116
116
|
|| client._options.retryConfig
|
|
117
117
|
|| { strategy: "none" },
|
|
@@ -96,14 +96,14 @@ async function $do(
|
|
|
96
96
|
}),
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
const path = pathToFunc("/api/
|
|
99
|
+
const path = pathToFunc("/api/v0/members/{login}")(pathParams);
|
|
100
100
|
|
|
101
101
|
const headers = new Headers(compactMap({
|
|
102
102
|
Accept: "application/json",
|
|
103
103
|
}));
|
|
104
104
|
|
|
105
|
-
const secConfig = await extractSecurity(client._options.
|
|
106
|
-
const securityInput = secConfig == null ? {} : {
|
|
105
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
107
107
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
108
|
|
|
109
109
|
const context = {
|
|
@@ -114,7 +114,7 @@ async function $do(
|
|
|
114
114
|
|
|
115
115
|
resolvedSecurity: requestSecurity,
|
|
116
116
|
|
|
117
|
-
securitySource: client._options.
|
|
117
|
+
securitySource: client._options.apiKeyHeader,
|
|
118
118
|
retryConfig: options?.retries
|
|
119
119
|
|| client._options.retryConfig
|
|
120
120
|
|| { strategy: "none" },
|
|
@@ -87,7 +87,7 @@ async function $do(
|
|
|
87
87
|
const payload = parsed.value;
|
|
88
88
|
const body = null;
|
|
89
89
|
|
|
90
|
-
const path = pathToFunc("/api/
|
|
90
|
+
const path = pathToFunc("/api/v0/members/")();
|
|
91
91
|
|
|
92
92
|
const query = encodeFormQuery({
|
|
93
93
|
"company": payload?.company,
|
|
@@ -101,8 +101,8 @@ async function $do(
|
|
|
101
101
|
Accept: "application/json",
|
|
102
102
|
}));
|
|
103
103
|
|
|
104
|
-
const secConfig = await extractSecurity(client._options.
|
|
105
|
-
const securityInput = secConfig == null ? {} : {
|
|
104
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
105
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
106
106
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
107
107
|
|
|
108
108
|
const context = {
|
|
@@ -113,7 +113,7 @@ async function $do(
|
|
|
113
113
|
|
|
114
114
|
resolvedSecurity: requestSecurity,
|
|
115
115
|
|
|
116
|
-
securitySource: client._options.
|
|
116
|
+
securitySource: client._options.apiKeyHeader,
|
|
117
117
|
retryConfig: options?.retries
|
|
118
118
|
|| client._options.retryConfig
|
|
119
119
|
|| { strategy: "none" },
|
|
@@ -89,7 +89,7 @@ async function $do(
|
|
|
89
89
|
const payload = parsed.value;
|
|
90
90
|
const body = null;
|
|
91
91
|
|
|
92
|
-
const path = pathToFunc("/api/
|
|
92
|
+
const path = pathToFunc("/api/v0/organizations/")();
|
|
93
93
|
|
|
94
94
|
const query = encodeFormQuery({
|
|
95
95
|
"location": payload?.location,
|
|
@@ -102,8 +102,8 @@ async function $do(
|
|
|
102
102
|
Accept: "application/json",
|
|
103
103
|
}));
|
|
104
104
|
|
|
105
|
-
const secConfig = await extractSecurity(client._options.
|
|
106
|
-
const securityInput = secConfig == null ? {} : {
|
|
105
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
107
107
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
108
|
|
|
109
109
|
const context = {
|
|
@@ -114,7 +114,7 @@ async function $do(
|
|
|
114
114
|
|
|
115
115
|
resolvedSecurity: requestSecurity,
|
|
116
116
|
|
|
117
|
-
securitySource: client._options.
|
|
117
|
+
securitySource: client._options.apiKeyHeader,
|
|
118
118
|
retryConfig: options?.retries
|
|
119
119
|
|| client._options.retryConfig
|
|
120
120
|
|| { strategy: "none" },
|
|
@@ -87,7 +87,7 @@ async function $do(
|
|
|
87
87
|
const payload = parsed.value;
|
|
88
88
|
const body = null;
|
|
89
89
|
|
|
90
|
-
const path = pathToFunc("/api/
|
|
90
|
+
const path = pathToFunc("/api/v0/events/")();
|
|
91
91
|
|
|
92
92
|
const query = encodeFormQuery({
|
|
93
93
|
"ordering": payload?.ordering,
|
|
@@ -99,8 +99,8 @@ async function $do(
|
|
|
99
99
|
Accept: "application/json",
|
|
100
100
|
}));
|
|
101
101
|
|
|
102
|
-
const secConfig = await extractSecurity(client._options.
|
|
103
|
-
const securityInput = secConfig == null ? {} : {
|
|
102
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
103
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
104
104
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
105
105
|
|
|
106
106
|
const context = {
|
|
@@ -111,7 +111,7 @@ async function $do(
|
|
|
111
111
|
|
|
112
112
|
resolvedSecurity: requestSecurity,
|
|
113
113
|
|
|
114
|
-
securitySource: client._options.
|
|
114
|
+
securitySource: client._options.apiKeyHeader,
|
|
115
115
|
retryConfig: options?.retries
|
|
116
116
|
|| client._options.retryConfig
|
|
117
117
|
|| { strategy: "none" },
|
|
@@ -87,7 +87,7 @@ async function $do(
|
|
|
87
87
|
const payload = parsed.value;
|
|
88
88
|
const body = null;
|
|
89
89
|
|
|
90
|
-
const path = pathToFunc("/api/
|
|
90
|
+
const path = pathToFunc("/api/v0/issues/")();
|
|
91
91
|
|
|
92
92
|
const query = encodeFormQuery({
|
|
93
93
|
"ordering": payload?.ordering,
|
|
@@ -100,8 +100,8 @@ async function $do(
|
|
|
100
100
|
Accept: "application/json",
|
|
101
101
|
}));
|
|
102
102
|
|
|
103
|
-
const secConfig = await extractSecurity(client._options.
|
|
104
|
-
const securityInput = secConfig == null ? {} : {
|
|
103
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
104
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
105
105
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
106
106
|
|
|
107
107
|
const context = {
|
|
@@ -112,7 +112,7 @@ async function $do(
|
|
|
112
112
|
|
|
113
113
|
resolvedSecurity: requestSecurity,
|
|
114
114
|
|
|
115
|
-
securitySource: client._options.
|
|
115
|
+
securitySource: client._options.apiKeyHeader,
|
|
116
116
|
retryConfig: options?.retries
|
|
117
117
|
|| client._options.retryConfig
|
|
118
118
|
|| { strategy: "none" },
|
|
@@ -87,7 +87,7 @@ async function $do(
|
|
|
87
87
|
const payload = parsed.value;
|
|
88
88
|
const body = null;
|
|
89
89
|
|
|
90
|
-
const path = pathToFunc("/api/
|
|
90
|
+
const path = pathToFunc("/api/v0/projects/")();
|
|
91
91
|
|
|
92
92
|
const query = encodeFormQuery({
|
|
93
93
|
"level": payload?.level,
|
|
@@ -100,8 +100,8 @@ async function $do(
|
|
|
100
100
|
Accept: "application/json",
|
|
101
101
|
}));
|
|
102
102
|
|
|
103
|
-
const secConfig = await extractSecurity(client._options.
|
|
104
|
-
const securityInput = secConfig == null ? {} : {
|
|
103
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
104
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
105
105
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
106
106
|
|
|
107
107
|
const context = {
|
|
@@ -112,7 +112,7 @@ async function $do(
|
|
|
112
112
|
|
|
113
113
|
resolvedSecurity: requestSecurity,
|
|
114
114
|
|
|
115
|
-
securitySource: client._options.
|
|
115
|
+
securitySource: client._options.apiKeyHeader,
|
|
116
116
|
retryConfig: options?.retries
|
|
117
117
|
|| client._options.retryConfig
|
|
118
118
|
|| { strategy: "none" },
|
|
@@ -87,7 +87,7 @@ async function $do(
|
|
|
87
87
|
const payload = parsed.value;
|
|
88
88
|
const body = null;
|
|
89
89
|
|
|
90
|
-
const path = pathToFunc("/api/
|
|
90
|
+
const path = pathToFunc("/api/v0/releases/")();
|
|
91
91
|
|
|
92
92
|
const query = encodeFormQuery({
|
|
93
93
|
"ordering": payload?.ordering,
|
|
@@ -100,8 +100,8 @@ async function $do(
|
|
|
100
100
|
Accept: "application/json",
|
|
101
101
|
}));
|
|
102
102
|
|
|
103
|
-
const secConfig = await extractSecurity(client._options.
|
|
104
|
-
const securityInput = secConfig == null ? {} : {
|
|
103
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
104
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
105
105
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
106
106
|
|
|
107
107
|
const context = {
|
|
@@ -112,7 +112,7 @@ async function $do(
|
|
|
112
112
|
|
|
113
113
|
resolvedSecurity: requestSecurity,
|
|
114
114
|
|
|
115
|
-
securitySource: client._options.
|
|
115
|
+
securitySource: client._options.apiKeyHeader,
|
|
116
116
|
retryConfig: options?.retries
|
|
117
117
|
|| client._options.retryConfig
|
|
118
118
|
|| { strategy: "none" },
|
|
@@ -87,7 +87,7 @@ async function $do(
|
|
|
87
87
|
const payload = parsed.value;
|
|
88
88
|
const body = null;
|
|
89
89
|
|
|
90
|
-
const path = pathToFunc("/api/
|
|
90
|
+
const path = pathToFunc("/api/v0/repositories/")();
|
|
91
91
|
|
|
92
92
|
const query = encodeFormQuery({
|
|
93
93
|
"ordering": payload?.ordering,
|
|
@@ -99,8 +99,8 @@ async function $do(
|
|
|
99
99
|
Accept: "application/json",
|
|
100
100
|
}));
|
|
101
101
|
|
|
102
|
-
const secConfig = await extractSecurity(client._options.
|
|
103
|
-
const securityInput = secConfig == null ? {} : {
|
|
102
|
+
const secConfig = await extractSecurity(client._options.apiKeyHeader);
|
|
103
|
+
const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
|
|
104
104
|
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
105
105
|
|
|
106
106
|
const context = {
|
|
@@ -111,7 +111,7 @@ async function $do(
|
|
|
111
111
|
|
|
112
112
|
resolvedSecurity: requestSecurity,
|
|
113
113
|
|
|
114
|
-
securitySource: client._options.
|
|
114
|
+
securitySource: client._options.apiKeyHeader,
|
|
115
115
|
retryConfig: options?.retries
|
|
116
116
|
|| client._options.retryConfig
|
|
117
117
|
|| { strategy: "none" },
|
package/src/lib/config.ts
CHANGED
|
@@ -12,13 +12,13 @@ import { Params, pathToFunc } from "./url.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export const ServerList = [
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Staging
|
|
16
16
|
*/
|
|
17
|
-
"https://nest.owasp.
|
|
17
|
+
"https://nest.owasp.dev",
|
|
18
18
|
] as const;
|
|
19
19
|
|
|
20
20
|
export type SDKOptions = {
|
|
21
|
-
|
|
21
|
+
apiKeyHeader?: string | (() => Promise<string>) | undefined;
|
|
22
22
|
|
|
23
23
|
httpClient?: HTTPClient;
|
|
24
24
|
/**
|
|
@@ -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: "
|
|
64
|
-
sdkVersion: "0.0
|
|
65
|
-
genVersion: "2.
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 0.0
|
|
63
|
+
openapiDocVersion: "0.2.0",
|
|
64
|
+
sdkVersion: "0.2.0",
|
|
65
|
+
genVersion: "2.698.0",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 0.2.0 2.698.0 0.2.0 owasp-nest",
|
|
67
67
|
} as const;
|
package/src/lib/env.ts
CHANGED
|
@@ -7,13 +7,13 @@ import { dlv } from "./dlv.js";
|
|
|
7
7
|
import * as z from "zod";
|
|
8
8
|
|
|
9
9
|
export interface Env {
|
|
10
|
-
|
|
10
|
+
NEST_API_KEY_HEADER?: string | undefined;
|
|
11
11
|
|
|
12
12
|
NEST_DEBUG?: boolean | undefined;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export const envSchema: z.ZodType<Env, z.ZodTypeDef, unknown> = z.object({
|
|
16
|
-
|
|
16
|
+
NEST_API_KEY_HEADER: z.string().optional(),
|
|
17
17
|
|
|
18
18
|
NEST_DEBUG: z.coerce.boolean().optional(),
|
|
19
19
|
});
|
package/src/lib/security.ts
CHANGED
package/src/models/security.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { Result as SafeParseResult } from "../types/fp.js";
|
|
|
9
9
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
11
|
export type Security = {
|
|
12
|
-
|
|
12
|
+
apiKeyHeader?: string | undefined;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
/** @internal */
|
|
@@ -18,16 +18,16 @@ export const Security$inboundSchema: z.ZodType<
|
|
|
18
18
|
z.ZodTypeDef,
|
|
19
19
|
unknown
|
|
20
20
|
> = z.object({
|
|
21
|
-
|
|
21
|
+
ApiKeyHeader: z.string().optional(),
|
|
22
22
|
}).transform((v) => {
|
|
23
23
|
return remap$(v, {
|
|
24
|
-
"
|
|
24
|
+
"ApiKeyHeader": "apiKeyHeader",
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
/** @internal */
|
|
29
29
|
export type Security$Outbound = {
|
|
30
|
-
|
|
30
|
+
ApiKeyHeader?: string | undefined;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
/** @internal */
|
|
@@ -36,10 +36,10 @@ export const Security$outboundSchema: z.ZodType<
|
|
|
36
36
|
z.ZodTypeDef,
|
|
37
37
|
Security
|
|
38
38
|
> = z.object({
|
|
39
|
-
|
|
39
|
+
apiKeyHeader: z.string().optional(),
|
|
40
40
|
}).transform((v) => {
|
|
41
41
|
return remap$(v, {
|
|
42
|
-
|
|
42
|
+
apiKeyHeader: "ApiKeyHeader",
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
|