owasp-nest 0.2.0 → 0.2.2
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 +25 -16
- package/dist/commonjs/funcs/chaptersGetChapter.js +5 -5
- package/dist/commonjs/funcs/chaptersGetChapter.js.map +1 -1
- package/dist/commonjs/funcs/chaptersListChapters.js +3 -3
- package/dist/commonjs/funcs/chaptersListChapters.js.map +1 -1
- package/dist/commonjs/funcs/committeesGetCommittee.d.ts +19 -0
- package/dist/commonjs/funcs/committeesGetCommittee.d.ts.map +1 -0
- package/dist/commonjs/funcs/committeesGetCommittee.js +124 -0
- package/dist/commonjs/funcs/committeesGetCommittee.js.map +1 -0
- package/dist/commonjs/funcs/committeesListCommittees.js +3 -3
- package/dist/commonjs/funcs/committeesListCommittees.js.map +1 -1
- package/dist/commonjs/funcs/communityGetMember.d.ts +2 -2
- package/dist/commonjs/funcs/communityGetMember.js +7 -7
- package/dist/commonjs/funcs/communityGetMember.js.map +1 -1
- package/dist/commonjs/funcs/communityGetOrganization.d.ts +19 -0
- package/dist/commonjs/funcs/communityGetOrganization.d.ts.map +1 -0
- package/dist/commonjs/funcs/communityGetOrganization.js +124 -0
- package/dist/commonjs/funcs/communityGetOrganization.js.map +1 -0
- package/dist/commonjs/funcs/communityListMembers.js +3 -3
- package/dist/commonjs/funcs/communityListMembers.js.map +1 -1
- package/dist/commonjs/funcs/communityListOrganizations.js +3 -3
- package/dist/commonjs/funcs/communityListOrganizations.js.map +1 -1
- package/dist/commonjs/funcs/eventsListEvents.js +3 -3
- package/dist/commonjs/funcs/eventsListEvents.js.map +1 -1
- package/dist/commonjs/funcs/issuesListIssues.js +3 -3
- package/dist/commonjs/funcs/issuesListIssues.js.map +1 -1
- package/dist/commonjs/funcs/projectsGetProject.d.ts +19 -0
- package/dist/commonjs/funcs/projectsGetProject.d.ts.map +1 -0
- package/dist/commonjs/funcs/projectsGetProject.js +124 -0
- package/dist/commonjs/funcs/projectsGetProject.js.map +1 -0
- package/dist/commonjs/funcs/projectsListProjects.js +3 -3
- package/dist/commonjs/funcs/projectsListProjects.js.map +1 -1
- package/dist/commonjs/funcs/releasesListReleases.js +3 -3
- package/dist/commonjs/funcs/releasesListReleases.js.map +1 -1
- package/dist/commonjs/funcs/repositoriesListRepositories.js +3 -3
- package/dist/commonjs/funcs/repositoriesListRepositories.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +5 -5
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +4 -4
- 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/errors/committeeerrorresponse.d.ts +41 -0
- package/dist/commonjs/models/errors/committeeerrorresponse.d.ts.map +1 -0
- package/dist/commonjs/models/errors/committeeerrorresponse.js +85 -0
- 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/errors/projecterrorresponse.js +85 -0
- 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/getchapter.d.ts +2 -2
- package/dist/commonjs/models/operations/getchapter.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getchapter.js +11 -2
- package/dist/commonjs/models/operations/getchapter.js.map +1 -1
- package/dist/commonjs/models/operations/getcommittee.d.ts +29 -0
- package/dist/commonjs/models/operations/getcommittee.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getcommittee.js +78 -0
- package/dist/commonjs/models/operations/getcommittee.js.map +1 -0
- package/dist/commonjs/models/operations/getmember.d.ts +2 -2
- package/dist/commonjs/models/operations/getmember.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmember.js +11 -2
- package/dist/commonjs/models/operations/getmember.js.map +1 -1
- package/dist/commonjs/models/operations/getorganization.d.ts +29 -0
- package/dist/commonjs/models/operations/getorganization.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getorganization.js +78 -0
- package/dist/commonjs/models/operations/getorganization.js.map +1 -0
- package/dist/commonjs/models/operations/getproject.d.ts +29 -0
- package/dist/commonjs/models/operations/getproject.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getproject.js +78 -0
- package/dist/commonjs/models/operations/getproject.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +3 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +3 -0
- package/dist/commonjs/models/operations/index.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/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 +9 -2
- package/dist/commonjs/sdk/community.d.ts.map +1 -1
- package/dist/commonjs/sdk/community.js +12 -2
- package/dist/commonjs/sdk/community.js.map +1 -1
- package/dist/commonjs/sdk/projects.d.ts +7 -0
- package/dist/commonjs/sdk/projects.d.ts.map +1 -1
- package/dist/commonjs/sdk/projects.js +10 -0
- package/dist/commonjs/sdk/projects.js.map +1 -1
- package/dist/esm/funcs/chaptersGetChapter.js +5 -5
- package/dist/esm/funcs/chaptersGetChapter.js.map +1 -1
- package/dist/esm/funcs/chaptersListChapters.js +3 -3
- package/dist/esm/funcs/chaptersListChapters.js.map +1 -1
- package/dist/esm/funcs/committeesGetCommittee.d.ts +19 -0
- package/dist/esm/funcs/committeesGetCommittee.d.ts.map +1 -0
- package/dist/esm/funcs/committeesGetCommittee.js +88 -0
- package/dist/esm/funcs/committeesGetCommittee.js.map +1 -0
- package/dist/esm/funcs/committeesListCommittees.js +3 -3
- package/dist/esm/funcs/committeesListCommittees.js.map +1 -1
- package/dist/esm/funcs/communityGetMember.d.ts +2 -2
- package/dist/esm/funcs/communityGetMember.js +7 -7
- package/dist/esm/funcs/communityGetMember.js.map +1 -1
- package/dist/esm/funcs/communityGetOrganization.d.ts +19 -0
- package/dist/esm/funcs/communityGetOrganization.d.ts.map +1 -0
- package/dist/esm/funcs/communityGetOrganization.js +88 -0
- package/dist/esm/funcs/communityGetOrganization.js.map +1 -0
- package/dist/esm/funcs/communityListMembers.js +3 -3
- package/dist/esm/funcs/communityListMembers.js.map +1 -1
- package/dist/esm/funcs/communityListOrganizations.js +3 -3
- package/dist/esm/funcs/communityListOrganizations.js.map +1 -1
- package/dist/esm/funcs/eventsListEvents.js +3 -3
- package/dist/esm/funcs/eventsListEvents.js.map +1 -1
- package/dist/esm/funcs/issuesListIssues.js +3 -3
- package/dist/esm/funcs/issuesListIssues.js.map +1 -1
- package/dist/esm/funcs/projectsGetProject.d.ts +19 -0
- package/dist/esm/funcs/projectsGetProject.d.ts.map +1 -0
- package/dist/esm/funcs/projectsGetProject.js +88 -0
- package/dist/esm/funcs/projectsGetProject.js.map +1 -0
- package/dist/esm/funcs/projectsListProjects.js +3 -3
- package/dist/esm/funcs/projectsListProjects.js.map +1 -1
- package/dist/esm/funcs/releasesListReleases.js +3 -3
- package/dist/esm/funcs/releasesListReleases.js.map +1 -1
- package/dist/esm/funcs/repositoriesListRepositories.js +3 -3
- package/dist/esm/funcs/repositoriesListRepositories.js.map +1 -1
- package/dist/esm/lib/config.d.ts +5 -5
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +4 -4
- 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/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/getchapter.d.ts +2 -2
- package/dist/esm/models/operations/getchapter.d.ts.map +1 -1
- package/dist/esm/models/operations/getchapter.js +11 -2
- package/dist/esm/models/operations/getchapter.js.map +1 -1
- package/dist/esm/models/operations/getcommittee.d.ts +29 -0
- package/dist/esm/models/operations/getcommittee.d.ts.map +1 -0
- package/dist/esm/models/operations/getcommittee.js +40 -0
- package/dist/esm/models/operations/getcommittee.js.map +1 -0
- package/dist/esm/models/operations/getmember.d.ts +2 -2
- package/dist/esm/models/operations/getmember.d.ts.map +1 -1
- package/dist/esm/models/operations/getmember.js +11 -2
- package/dist/esm/models/operations/getmember.js.map +1 -1
- package/dist/esm/models/operations/getorganization.d.ts +29 -0
- package/dist/esm/models/operations/getorganization.d.ts.map +1 -0
- package/dist/esm/models/operations/getorganization.js +40 -0
- package/dist/esm/models/operations/getorganization.js.map +1 -0
- package/dist/esm/models/operations/getproject.d.ts +29 -0
- package/dist/esm/models/operations/getproject.d.ts.map +1 -0
- package/dist/esm/models/operations/getproject.js +40 -0
- package/dist/esm/models/operations/getproject.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +3 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +3 -0
- package/dist/esm/models/operations/index.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/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 +9 -2
- package/dist/esm/sdk/community.d.ts.map +1 -1
- package/dist/esm/sdk/community.js +12 -2
- package/dist/esm/sdk/community.js.map +1 -1
- package/dist/esm/sdk/projects.d.ts +7 -0
- package/dist/esm/sdk/projects.d.ts.map +1 -1
- package/dist/esm/sdk/projects.js +10 -0
- package/dist/esm/sdk/projects.js.map +1 -1
- package/docs/sdks/chapters/README.md +7 -7
- package/docs/sdks/committees/README.md +78 -3
- package/docs/sdks/community/README.md +87 -12
- package/docs/sdks/events/README.md +2 -2
- package/docs/sdks/issues/README.md +2 -2
- package/docs/sdks/projects/README.md +84 -5
- package/docs/sdks/releases/README.md +2 -2
- package/docs/sdks/repositories/README.md +2 -2
- 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 +5 -5
- package/src/funcs/chaptersListChapters.ts +3 -3
- package/src/funcs/committeesGetCommittee.ts +176 -0
- package/src/funcs/committeesListCommittees.ts +3 -3
- package/src/funcs/communityGetMember.ts +7 -7
- package/src/funcs/communityGetOrganization.ts +178 -0
- package/src/funcs/communityListMembers.ts +3 -3
- package/src/funcs/communityListOrganizations.ts +3 -3
- package/src/funcs/eventsListEvents.ts +3 -3
- package/src/funcs/issuesListIssues.ts +3 -3
- package/src/funcs/projectsGetProject.ts +176 -0
- package/src/funcs/projectsListProjects.ts +3 -3
- package/src/funcs/releasesListReleases.ts +3 -3
- package/src/funcs/repositoriesListRepositories.ts +3 -3
- package/src/lib/config.ts +5 -5
- package/src/lib/env.ts +2 -2
- package/src/lib/security.ts +1 -1
- 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/getchapter.ts +13 -4
- package/src/models/operations/getcommittee.ts +75 -0
- package/src/models/operations/getmember.ts +13 -4
- package/src/models/operations/getorganization.ts +75 -0
- package/src/models/operations/getproject.ts +75 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/security.ts +6 -6
- package/src/sdk/committees.ts +18 -0
- package/src/sdk/community.ts +20 -2
- package/src/sdk/projects.ts +18 -0
|
@@ -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.apiKey);
|
|
105
|
+
const securityInput = secConfig == null ? {} : { apiKey: 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.apiKey,
|
|
117
117
|
retryConfig: options?.retries
|
|
118
118
|
|| client._options.retryConfig
|
|
119
119
|
|| { strategy: "none" },
|
|
@@ -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.apiKey);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { apiKey: 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.apiKey,
|
|
118
118
|
retryConfig: options?.retries
|
|
119
119
|
|| client._options.retryConfig
|
|
120
120
|
|| { strategy: "none" },
|
|
@@ -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.apiKey);
|
|
103
|
+
const securityInput = secConfig == null ? {} : { apiKey: 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.apiKey,
|
|
115
115
|
retryConfig: options?.retries
|
|
116
116
|
|| client._options.retryConfig
|
|
117
117
|
|| { strategy: "none" },
|
|
@@ -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.apiKey);
|
|
104
|
+
const securityInput = secConfig == null ? {} : { apiKey: 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.apiKey,
|
|
116
116
|
retryConfig: options?.retries
|
|
117
117
|
|| client._options.retryConfig
|
|
118
118
|
|| { strategy: "none" },
|
|
@@ -0,0 +1,176 @@
|
|
|
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 projectsGetProject(
|
|
36
|
+
client: NestCore,
|
|
37
|
+
request: operations.GetProjectRequest,
|
|
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.GetProjectRequest,
|
|
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) => operations.GetProjectRequest$outboundSchema.parse(value),
|
|
84
|
+
"Input validation failed",
|
|
85
|
+
);
|
|
86
|
+
if (!parsed.ok) {
|
|
87
|
+
return [parsed, { status: "invalid" }];
|
|
88
|
+
}
|
|
89
|
+
const payload = parsed.value;
|
|
90
|
+
const body = null;
|
|
91
|
+
|
|
92
|
+
const pathParams = {
|
|
93
|
+
project_id: encodeSimple("project_id", payload.project_id, {
|
|
94
|
+
explode: false,
|
|
95
|
+
charEncoding: "percent",
|
|
96
|
+
}),
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
const path = pathToFunc("/api/v0/projects/{project_id}")(pathParams);
|
|
100
|
+
|
|
101
|
+
const headers = new Headers(compactMap({
|
|
102
|
+
Accept: "application/json",
|
|
103
|
+
}));
|
|
104
|
+
|
|
105
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
106
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
107
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
108
|
+
|
|
109
|
+
const context = {
|
|
110
|
+
options: client._options,
|
|
111
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
112
|
+
operationID: "get_project",
|
|
113
|
+
oAuth2Scopes: [],
|
|
114
|
+
|
|
115
|
+
resolvedSecurity: requestSecurity,
|
|
116
|
+
|
|
117
|
+
securitySource: client._options.apiKey,
|
|
118
|
+
retryConfig: options?.retries
|
|
119
|
+
|| client._options.retryConfig
|
|
120
|
+
|| { strategy: "none" },
|
|
121
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const requestRes = client._createRequest(context, {
|
|
125
|
+
security: requestSecurity,
|
|
126
|
+
method: "GET",
|
|
127
|
+
baseURL: options?.serverURL,
|
|
128
|
+
path: path,
|
|
129
|
+
headers: headers,
|
|
130
|
+
body: body,
|
|
131
|
+
userAgent: client._options.userAgent,
|
|
132
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
133
|
+
}, options);
|
|
134
|
+
if (!requestRes.ok) {
|
|
135
|
+
return [requestRes, { status: "invalid" }];
|
|
136
|
+
}
|
|
137
|
+
const req = requestRes.value;
|
|
138
|
+
|
|
139
|
+
const doResult = await client._do(req, {
|
|
140
|
+
context,
|
|
141
|
+
errorCodes: ["404", "4XX", "5XX"],
|
|
142
|
+
retryConfig: context.retryConfig,
|
|
143
|
+
retryCodes: context.retryCodes,
|
|
144
|
+
});
|
|
145
|
+
if (!doResult.ok) {
|
|
146
|
+
return [doResult, { status: "request-error", request: req }];
|
|
147
|
+
}
|
|
148
|
+
const response = doResult.value;
|
|
149
|
+
|
|
150
|
+
const responseFields = {
|
|
151
|
+
HttpMeta: { Response: response, Request: req },
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
const [result] = await M.match<
|
|
155
|
+
models.ProjectSchema,
|
|
156
|
+
| errors.ProjectErrorResponse
|
|
157
|
+
| NestError
|
|
158
|
+
| ResponseValidationError
|
|
159
|
+
| ConnectionError
|
|
160
|
+
| RequestAbortedError
|
|
161
|
+
| RequestTimeoutError
|
|
162
|
+
| InvalidRequestError
|
|
163
|
+
| UnexpectedClientError
|
|
164
|
+
| SDKValidationError
|
|
165
|
+
>(
|
|
166
|
+
M.json(200, models.ProjectSchema$inboundSchema),
|
|
167
|
+
M.jsonErr(404, errors.ProjectErrorResponse$inboundSchema),
|
|
168
|
+
M.fail("4XX"),
|
|
169
|
+
M.fail("5XX"),
|
|
170
|
+
)(response, req, { extraFields: responseFields });
|
|
171
|
+
if (!result.ok) {
|
|
172
|
+
return [result, { status: "complete", request: req, response }];
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
return [result, { status: "complete", request: req, response }];
|
|
176
|
+
}
|
|
@@ -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.apiKey);
|
|
104
|
+
const securityInput = secConfig == null ? {} : { apiKey: 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.apiKey,
|
|
116
116
|
retryConfig: options?.retries
|
|
117
117
|
|| client._options.retryConfig
|
|
118
118
|
|| { strategy: "none" },
|
|
@@ -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.apiKey);
|
|
104
|
+
const securityInput = secConfig == null ? {} : { apiKey: 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.apiKey,
|
|
116
116
|
retryConfig: options?.retries
|
|
117
117
|
|| client._options.retryConfig
|
|
118
118
|
|| { strategy: "none" },
|
|
@@ -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.apiKey);
|
|
103
|
+
const securityInput = secConfig == null ? {} : { apiKey: 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.apiKey,
|
|
115
115
|
retryConfig: options?.retries
|
|
116
116
|
|| client._options.retryConfig
|
|
117
117
|
|| { strategy: "none" },
|
package/src/lib/config.ts
CHANGED
|
@@ -18,7 +18,7 @@ export const ServerList = [
|
|
|
18
18
|
] as const;
|
|
19
19
|
|
|
20
20
|
export type SDKOptions = {
|
|
21
|
-
|
|
21
|
+
apiKey?: 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: "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.2",
|
|
65
|
+
genVersion: "2.698.4",
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 0.2.2 2.698.4 0.2.1 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?: 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: z.string().optional(),
|
|
17
17
|
|
|
18
18
|
NEST_DEBUG: z.coerce.boolean().optional(),
|
|
19
19
|
});
|
package/src/lib/security.ts
CHANGED
|
@@ -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
|
+
}
|
|
@@ -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
|
+
* Project error response schema.
|
|
10
|
+
*/
|
|
11
|
+
export type ProjectErrorResponseData = {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Project error response schema.
|
|
17
|
+
*/
|
|
18
|
+
export class ProjectErrorResponse extends NestError {
|
|
19
|
+
/** The original data that was passed to this error instance. */
|
|
20
|
+
data$: ProjectErrorResponseData;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
err: ProjectErrorResponseData,
|
|
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 = "ProjectErrorResponse";
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const ProjectErrorResponse$inboundSchema: z.ZodType<
|
|
36
|
+
ProjectErrorResponse,
|
|
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 ProjectErrorResponse(v, {
|
|
47
|
+
request: v.request$,
|
|
48
|
+
response: v.response$,
|
|
49
|
+
body: v.body$,
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
/** @internal */
|
|
54
|
+
export type ProjectErrorResponse$Outbound = {
|
|
55
|
+
message: string;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/** @internal */
|
|
59
|
+
export const ProjectErrorResponse$outboundSchema: z.ZodType<
|
|
60
|
+
ProjectErrorResponse$Outbound,
|
|
61
|
+
z.ZodTypeDef,
|
|
62
|
+
ProjectErrorResponse
|
|
63
|
+
> = z.instanceof(ProjectErrorResponse)
|
|
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 ProjectErrorResponse$ {
|
|
74
|
+
/** @deprecated use `ProjectErrorResponse$inboundSchema` instead. */
|
|
75
|
+
export const inboundSchema = ProjectErrorResponse$inboundSchema;
|
|
76
|
+
/** @deprecated use `ProjectErrorResponse$outboundSchema` instead. */
|
|
77
|
+
export const outboundSchema = ProjectErrorResponse$outboundSchema;
|
|
78
|
+
/** @deprecated use `ProjectErrorResponse$Outbound` instead. */
|
|
79
|
+
export type Outbound = ProjectErrorResponse$Outbound;
|
|
80
|
+
}
|
|
@@ -16,7 +16,6 @@ export type MemberSchema = {
|
|
|
16
16
|
bio: string;
|
|
17
17
|
company: string;
|
|
18
18
|
createdAt: Date;
|
|
19
|
-
email: string;
|
|
20
19
|
followersCount: number;
|
|
21
20
|
followingCount: number;
|
|
22
21
|
location: string;
|
|
@@ -39,7 +38,6 @@ export const MemberSchema$inboundSchema: z.ZodType<
|
|
|
39
38
|
bio: z.string(),
|
|
40
39
|
company: z.string(),
|
|
41
40
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
42
|
-
email: z.string(),
|
|
43
41
|
followers_count: z.number().int(),
|
|
44
42
|
following_count: z.number().int(),
|
|
45
43
|
location: z.string(),
|
|
@@ -68,7 +66,6 @@ export type MemberSchema$Outbound = {
|
|
|
68
66
|
bio: string;
|
|
69
67
|
company: string;
|
|
70
68
|
created_at: string;
|
|
71
|
-
email: string;
|
|
72
69
|
followers_count: number;
|
|
73
70
|
following_count: number;
|
|
74
71
|
location: string;
|
|
@@ -91,7 +88,6 @@ export const MemberSchema$outboundSchema: z.ZodType<
|
|
|
91
88
|
bio: z.string(),
|
|
92
89
|
company: z.string(),
|
|
93
90
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
94
|
-
email: z.string(),
|
|
95
91
|
followersCount: z.number().int(),
|
|
96
92
|
followingCount: z.number().int(),
|
|
97
93
|
location: z.string(),
|