@fern-api/venus-api-sdk 14.0.0 → 15.0.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/README.md +2 -2
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/guestSession/client/Client.js +14 -2
- package/dist/cjs/api/resources/guestSession/client/create.d.ts +3 -3
- package/dist/cjs/api/resources/guestSession/client/get.d.ts +3 -3
- package/dist/cjs/api/resources/organization/client/Client.d.ts +26 -4
- package/dist/cjs/api/resources/organization/client/Client.js +90 -4
- package/dist/cjs/api/resources/organization/client/getPublisherDocs.d.ts +25 -0
- package/dist/cjs/api/resources/organization/client/getPublisherDocs.js +66 -0
- package/dist/cjs/api/resources/organization/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/organization/client/index.js +2 -1
- package/dist/cjs/api/resources/organization/client/requests/CreateClaimTokenRequest.d.ts +2 -0
- package/dist/cjs/api/resources/organization/client/requests/CreateOrganizationRequest.d.ts +2 -0
- package/dist/cjs/api/resources/organization/client/requests/GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.d.ts +12 -0
- package/dist/cjs/api/resources/organization/client/requests/GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.js +3 -0
- package/dist/cjs/api/resources/organization/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/Publisher.d.ts +10 -0
- package/dist/cjs/api/types/Publisher.js +3 -0
- package/dist/cjs/api/types/PublisherDocsResponse.d.ts +6 -0
- package/dist/cjs/api/types/PublisherDocsResponse.js +3 -0
- package/dist/cjs/api/types/PublisherType.d.ts +5 -0
- package/dist/cjs/api/types/PublisherType.js +8 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- package/dist/cjs/serialization/resources/organization/client/requests/CreateClaimTokenRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/organization/client/requests/CreateClaimTokenRequest.js +2 -0
- package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/organization/client/requests/CreateOrganizationRequest.js +2 -0
- package/dist/cjs/serialization/types/Publisher.d.ts +11 -0
- package/dist/cjs/serialization/types/Publisher.js +43 -0
- package/dist/cjs/serialization/types/PublisherDocsResponse.d.ts +12 -0
- package/dist/cjs/serialization/types/PublisherDocsResponse.js +44 -0
- package/dist/cjs/serialization/types/PublisherType.d.ts +7 -0
- package/dist/cjs/serialization/types/PublisherType.js +39 -0
- package/dist/cjs/serialization/types/index.d.ts +3 -0
- package/dist/cjs/serialization/types/index.js +3 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/guestSession/client/Client.mjs +14 -2
- package/dist/esm/api/resources/guestSession/client/create.d.mts +3 -3
- package/dist/esm/api/resources/guestSession/client/get.d.mts +3 -3
- package/dist/esm/api/resources/organization/client/Client.d.mts +26 -4
- package/dist/esm/api/resources/organization/client/Client.mjs +90 -4
- package/dist/esm/api/resources/organization/client/getPublisherDocs.d.mts +25 -0
- package/dist/esm/api/resources/organization/client/getPublisherDocs.mjs +30 -0
- package/dist/esm/api/resources/organization/client/index.d.mts +1 -0
- package/dist/esm/api/resources/organization/client/index.mjs +1 -0
- package/dist/esm/api/resources/organization/client/requests/CreateClaimTokenRequest.d.mts +2 -0
- package/dist/esm/api/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -0
- package/dist/esm/api/resources/organization/client/requests/GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.d.mts +12 -0
- package/dist/esm/api/resources/organization/client/requests/GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.mjs +2 -0
- package/dist/esm/api/resources/organization/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/Publisher.d.mts +10 -0
- package/dist/esm/api/types/Publisher.mjs +2 -0
- package/dist/esm/api/types/PublisherDocsResponse.d.mts +6 -0
- package/dist/esm/api/types/PublisherDocsResponse.mjs +2 -0
- package/dist/esm/api/types/PublisherType.d.mts +5 -0
- package/dist/esm/api/types/PublisherType.mjs +5 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/serialization/resources/organization/client/requests/CreateClaimTokenRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/organization/client/requests/CreateClaimTokenRequest.mjs +2 -0
- package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/organization/client/requests/CreateOrganizationRequest.mjs +2 -0
- package/dist/esm/serialization/types/Publisher.d.mts +11 -0
- package/dist/esm/serialization/types/Publisher.mjs +7 -0
- package/dist/esm/serialization/types/PublisherDocsResponse.d.mts +12 -0
- package/dist/esm/serialization/types/PublisherDocsResponse.mjs +8 -0
- package/dist/esm/serialization/types/PublisherType.d.mts +7 -0
- package/dist/esm/serialization/types/PublisherType.mjs +3 -0
- package/dist/esm/serialization/types/index.d.mts +3 -0
- package/dist/esm/serialization/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +78 -4
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.Publisher = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const PublisherType_js_1 = require("./PublisherType.js");
|
|
40
|
+
exports.Publisher = core.serialization.object({
|
|
41
|
+
type: PublisherType_js_1.PublisherType,
|
|
42
|
+
id: core.serialization.string(),
|
|
43
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
import { ClaimStatus } from "./ClaimStatus.js";
|
|
5
|
+
export declare const PublisherDocsResponse: core.serialization.ObjectSchema<serializers.PublisherDocsResponse.Raw, FernVenusApi.PublisherDocsResponse>;
|
|
6
|
+
export declare namespace PublisherDocsResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
organizationId: string;
|
|
9
|
+
claimStatus: ClaimStatus.Raw;
|
|
10
|
+
docsUrl: string;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.PublisherDocsResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const ClaimStatus_js_1 = require("./ClaimStatus.js");
|
|
40
|
+
exports.PublisherDocsResponse = core.serialization.object({
|
|
41
|
+
organizationId: core.serialization.string(),
|
|
42
|
+
claimStatus: ClaimStatus_js_1.ClaimStatus,
|
|
43
|
+
docsUrl: core.serialization.string(),
|
|
44
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
export declare const PublisherType: core.serialization.Schema<serializers.PublisherType.Raw, FernVenusApi.PublisherType>;
|
|
5
|
+
export declare namespace PublisherType {
|
|
6
|
+
type Raw = "postman_team" | "postman_user";
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.PublisherType = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.PublisherType = core.serialization.enum_(["postman_team", "postman_user"]);
|
|
@@ -37,6 +37,9 @@ export * from "./NpmRegistryToken.js";
|
|
|
37
37
|
export * from "./Organization.js";
|
|
38
38
|
export * from "./OrganizationsPage.js";
|
|
39
39
|
export * from "./PostmanTeamDocsResponse.js";
|
|
40
|
+
export * from "./Publisher.js";
|
|
41
|
+
export * from "./PublisherDocsResponse.js";
|
|
42
|
+
export * from "./PublisherType.js";
|
|
40
43
|
export * from "./Pypi.js";
|
|
41
44
|
export * from "./PypiRegistryToken.js";
|
|
42
45
|
export * from "./RegistryToken.js";
|
|
@@ -53,6 +53,9 @@ __exportStar(require("./NpmRegistryToken.js"), exports);
|
|
|
53
53
|
__exportStar(require("./Organization.js"), exports);
|
|
54
54
|
__exportStar(require("./OrganizationsPage.js"), exports);
|
|
55
55
|
__exportStar(require("./PostmanTeamDocsResponse.js"), exports);
|
|
56
|
+
__exportStar(require("./Publisher.js"), exports);
|
|
57
|
+
__exportStar(require("./PublisherDocsResponse.js"), exports);
|
|
58
|
+
__exportStar(require("./PublisherType.js"), exports);
|
|
56
59
|
__exportStar(require("./Pypi.js"), exports);
|
|
57
60
|
__exportStar(require("./PypiRegistryToken.js"), exports);
|
|
58
61
|
__exportStar(require("./RegistryToken.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "
|
|
1
|
+
export declare const SDK_VERSION = "15.0.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "
|
|
10
|
-
"User-Agent": "@fern-api/venus-api-sdk/
|
|
9
|
+
"X-Fern-SDK-Version": "15.0.0",
|
|
10
|
+
"User-Agent": "@fern-api/venus-api-sdk/15.0.0",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -122,7 +122,13 @@ export class GuestSessionClient {
|
|
|
122
122
|
return {
|
|
123
123
|
data: {
|
|
124
124
|
ok: false,
|
|
125
|
-
error: FernVenusApi.guestSession.create.Error.serviceUnavailableError(_response.error.body
|
|
125
|
+
error: FernVenusApi.guestSession.create.Error.serviceUnavailableError(serializers.ServiceUnavailableErrorBody.parseOrThrow(_response.error.body, {
|
|
126
|
+
unrecognizedObjectKeys: "passthrough",
|
|
127
|
+
allowUnrecognizedUnionMembers: true,
|
|
128
|
+
allowUnrecognizedEnumValues: true,
|
|
129
|
+
skipValidation: true,
|
|
130
|
+
breadcrumbsPrefix: ["response"],
|
|
131
|
+
})),
|
|
126
132
|
rawResponse: _response.rawResponse,
|
|
127
133
|
},
|
|
128
134
|
rawResponse: _response.rawResponse,
|
|
@@ -242,7 +248,13 @@ export class GuestSessionClient {
|
|
|
242
248
|
return {
|
|
243
249
|
data: {
|
|
244
250
|
ok: false,
|
|
245
|
-
error: FernVenusApi.guestSession.get.Error.serviceUnavailableError(_response.error.body
|
|
251
|
+
error: FernVenusApi.guestSession.get.Error.serviceUnavailableError(serializers.ServiceUnavailableErrorBody.parseOrThrow(_response.error.body, {
|
|
252
|
+
unrecognizedObjectKeys: "passthrough",
|
|
253
|
+
allowUnrecognizedUnionMembers: true,
|
|
254
|
+
allowUnrecognizedEnumValues: true,
|
|
255
|
+
skipValidation: true,
|
|
256
|
+
breadcrumbsPrefix: ["response"],
|
|
257
|
+
})),
|
|
246
258
|
rawResponse: _response.rawResponse,
|
|
247
259
|
},
|
|
248
260
|
rawResponse: _response.rawResponse,
|
|
@@ -12,7 +12,7 @@ export declare namespace Error {
|
|
|
12
12
|
}
|
|
13
13
|
interface ServiceUnavailableError extends _Utils {
|
|
14
14
|
statusCode: 503;
|
|
15
|
-
content
|
|
15
|
+
content: FernVenusApi.ServiceUnavailableErrorBody;
|
|
16
16
|
}
|
|
17
17
|
interface _Unknown extends _Utils {
|
|
18
18
|
statusCode: void;
|
|
@@ -24,14 +24,14 @@ export declare namespace Error {
|
|
|
24
24
|
interface _Visitor<_Result> {
|
|
25
25
|
unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
|
|
26
26
|
tooManyRequestsError: (value: FernVenusApi.TooManyRequestsErrorBody) => _Result;
|
|
27
|
-
serviceUnavailableError: (value:
|
|
27
|
+
serviceUnavailableError: (value: FernVenusApi.ServiceUnavailableErrorBody) => _Result;
|
|
28
28
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
export declare const Error: {
|
|
32
32
|
readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.guestSession.create.Error.UnprocessableEntityError;
|
|
33
33
|
readonly tooManyRequestsError: (value: FernVenusApi.TooManyRequestsErrorBody) => FernVenusApi.guestSession.create.Error.TooManyRequestsError;
|
|
34
|
-
readonly serviceUnavailableError: (value
|
|
34
|
+
readonly serviceUnavailableError: (value: FernVenusApi.ServiceUnavailableErrorBody) => FernVenusApi.guestSession.create.Error.ServiceUnavailableError;
|
|
35
35
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.guestSession.create.Error._Unknown;
|
|
36
36
|
readonly _visit: <_Result>(value: FernVenusApi.guestSession.create.Error, visitor: FernVenusApi.guestSession.create.Error._Visitor<_Result>) => _Result;
|
|
37
37
|
};
|
|
@@ -16,7 +16,7 @@ export declare namespace Error {
|
|
|
16
16
|
}
|
|
17
17
|
interface ServiceUnavailableError extends _Utils {
|
|
18
18
|
statusCode: 503;
|
|
19
|
-
content
|
|
19
|
+
content: FernVenusApi.ServiceUnavailableErrorBody;
|
|
20
20
|
}
|
|
21
21
|
interface _Unknown extends _Utils {
|
|
22
22
|
statusCode: void;
|
|
@@ -29,7 +29,7 @@ export declare namespace Error {
|
|
|
29
29
|
notFoundError: (value: FernVenusApi.NotFoundErrorBody) => _Result;
|
|
30
30
|
goneError: (value: FernVenusApi.GoneErrorBody) => _Result;
|
|
31
31
|
unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
|
|
32
|
-
serviceUnavailableError: (value:
|
|
32
|
+
serviceUnavailableError: (value: FernVenusApi.ServiceUnavailableErrorBody) => _Result;
|
|
33
33
|
_other: (value: core.Fetcher.Error) => _Result;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -37,7 +37,7 @@ export declare const Error: {
|
|
|
37
37
|
readonly notFoundError: (value: FernVenusApi.NotFoundErrorBody) => FernVenusApi.guestSession.get.Error.NotFoundError;
|
|
38
38
|
readonly goneError: (value: FernVenusApi.GoneErrorBody) => FernVenusApi.guestSession.get.Error.GoneError;
|
|
39
39
|
readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.guestSession.get.Error.UnprocessableEntityError;
|
|
40
|
-
readonly serviceUnavailableError: (value
|
|
40
|
+
readonly serviceUnavailableError: (value: FernVenusApi.ServiceUnavailableErrorBody) => FernVenusApi.guestSession.get.Error.ServiceUnavailableError;
|
|
41
41
|
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.guestSession.get.Error._Unknown;
|
|
42
42
|
readonly _visit: <_Result>(value: FernVenusApi.guestSession.get.Error, visitor: FernVenusApi.guestSession.get.Error._Visitor<_Result>) => _Result;
|
|
43
43
|
};
|
|
@@ -13,8 +13,9 @@ export declare class OrganizationClient {
|
|
|
13
13
|
/**
|
|
14
14
|
* Creates an organization with the caller as its admin. Called with the
|
|
15
15
|
* provisioner token, it instead creates an unclaimed organization, with no
|
|
16
|
-
* Auth0 organization or members,
|
|
17
|
-
* Creating it again for the same
|
|
16
|
+
* Auth0 organization or members, held for the required publisher (or
|
|
17
|
+
* postmanTeamId). Creating it again for the same publisher returns the
|
|
18
|
+
* same organization, which may have another ID than the one asked for.
|
|
18
19
|
* A normal signup gets 409 if its postmanTeamId is linked to an unclaimed
|
|
19
20
|
* organization, since that team claims its organization through Postman.
|
|
20
21
|
*
|
|
@@ -95,6 +96,23 @@ export declare class OrganizationClient {
|
|
|
95
96
|
*/
|
|
96
97
|
getPostmanTeamDocs(request: FernVenusApi.GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.PostmanTeamDocsResponse, FernVenusApi.organization.getPostmanTeamDocs.Error>>;
|
|
97
98
|
private __getPostmanTeamDocs;
|
|
99
|
+
/**
|
|
100
|
+
* The claimable organization held for a publisher, with its claim
|
|
101
|
+
* status and the address of its docs site. Only Postman's integration
|
|
102
|
+
* service token can call it. 404 when the publisher has no claimable
|
|
103
|
+
* organization, or its docs address isn't set.
|
|
104
|
+
*
|
|
105
|
+
* @param {FernVenusApi.GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest} request
|
|
106
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* await client.organization.getPublisherDocs({
|
|
110
|
+
* publisherType: "postman_team",
|
|
111
|
+
* publisherId: "publisher_id"
|
|
112
|
+
* })
|
|
113
|
+
*/
|
|
114
|
+
getPublisherDocs(request: FernVenusApi.GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.PublisherDocsResponse, FernVenusApi.organization.getPublisherDocs.Error>>;
|
|
115
|
+
private __getPublisherDocs;
|
|
98
116
|
/**
|
|
99
117
|
* Get the Postman team ID associated with an organization ID.
|
|
100
118
|
*
|
|
@@ -126,7 +144,9 @@ export declare class OrganizationClient {
|
|
|
126
144
|
/**
|
|
127
145
|
* Issues a claim link for an unclaimed organization, bound to one Postman
|
|
128
146
|
* user and valid for 15 minutes. Only the provisioner token and Postman's
|
|
129
|
-
* integration service token can call it.
|
|
147
|
+
* integration service token can call it. For an organization held for a
|
|
148
|
+
* Postman user, the caller must name that user as the publisher, or gets
|
|
149
|
+
* 403 PublisherMismatchError.
|
|
130
150
|
*
|
|
131
151
|
* @param {FernVenusApi.CreateClaimTokenRequest} request
|
|
132
152
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -192,7 +212,9 @@ export declare class OrganizationClient {
|
|
|
192
212
|
* Postman user the link was issued for, who becomes its admin if they
|
|
193
213
|
* already have a Fern account; otherwise the organization starts with
|
|
194
214
|
* no members, and the dashboard adds the team's Postman users when they
|
|
195
|
-
* sign in with Postman.
|
|
215
|
+
* sign in with Postman. An organization with no team would then stay
|
|
216
|
+
* empty, so without a Fern account it gets 403 FernAccountRequiredError
|
|
217
|
+
* and stays unclaimed. Public: the link is the secret, and only the
|
|
196
218
|
* provisioner and Postman's integration service can get one. The first
|
|
197
219
|
* claim wins, and a retry finishes a claim that failed partway.
|
|
198
220
|
*
|
|
@@ -31,8 +31,9 @@ export class OrganizationClient {
|
|
|
31
31
|
/**
|
|
32
32
|
* Creates an organization with the caller as its admin. Called with the
|
|
33
33
|
* provisioner token, it instead creates an unclaimed organization, with no
|
|
34
|
-
* Auth0 organization or members,
|
|
35
|
-
* Creating it again for the same
|
|
34
|
+
* Auth0 organization or members, held for the required publisher (or
|
|
35
|
+
* postmanTeamId). Creating it again for the same publisher returns the
|
|
36
|
+
* same organization, which may have another ID than the one asked for.
|
|
36
37
|
* A normal signup gets 409 if its postmanTeamId is linked to an unclaimed
|
|
37
38
|
* organization, since that team claims its organization through Postman.
|
|
38
39
|
*
|
|
@@ -499,6 +500,87 @@ export class OrganizationClient {
|
|
|
499
500
|
};
|
|
500
501
|
});
|
|
501
502
|
}
|
|
503
|
+
/**
|
|
504
|
+
* The claimable organization held for a publisher, with its claim
|
|
505
|
+
* status and the address of its docs site. Only Postman's integration
|
|
506
|
+
* service token can call it. 404 when the publisher has no claimable
|
|
507
|
+
* organization, or its docs address isn't set.
|
|
508
|
+
*
|
|
509
|
+
* @param {FernVenusApi.GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest} request
|
|
510
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
511
|
+
*
|
|
512
|
+
* @example
|
|
513
|
+
* await client.organization.getPublisherDocs({
|
|
514
|
+
* publisherType: "postman_team",
|
|
515
|
+
* publisherId: "publisher_id"
|
|
516
|
+
* })
|
|
517
|
+
*/
|
|
518
|
+
getPublisherDocs(request, requestOptions) {
|
|
519
|
+
return core.HttpResponsePromise.fromPromise(this.__getPublisherDocs(request, requestOptions));
|
|
520
|
+
}
|
|
521
|
+
__getPublisherDocs(request, requestOptions) {
|
|
522
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
523
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
524
|
+
const { publisherType, publisherId } = request;
|
|
525
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
526
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
527
|
+
const _response = yield core.fetcher({
|
|
528
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `organizations/publishers/${core.url.encodePathParam(serializers.PublisherType.jsonOrThrow(publisherType, { omitUndefined: true }))}/${core.url.encodePathParam(publisherId)}/docs`),
|
|
529
|
+
method: "GET",
|
|
530
|
+
headers: _headers,
|
|
531
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
532
|
+
timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
|
|
533
|
+
maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
|
|
534
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
535
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
536
|
+
logging: this._options.logging,
|
|
537
|
+
});
|
|
538
|
+
if (_response.ok) {
|
|
539
|
+
return {
|
|
540
|
+
data: {
|
|
541
|
+
ok: true,
|
|
542
|
+
body: serializers.PublisherDocsResponse.parseOrThrow(_response.body, {
|
|
543
|
+
unrecognizedObjectKeys: "passthrough",
|
|
544
|
+
allowUnrecognizedUnionMembers: true,
|
|
545
|
+
allowUnrecognizedEnumValues: true,
|
|
546
|
+
skipValidation: true,
|
|
547
|
+
breadcrumbsPrefix: ["response"],
|
|
548
|
+
}),
|
|
549
|
+
headers: _response.headers,
|
|
550
|
+
rawResponse: _response.rawResponse,
|
|
551
|
+
},
|
|
552
|
+
rawResponse: _response.rawResponse,
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
if (_response.error.reason === "status-code") {
|
|
556
|
+
switch (_response.error.statusCode) {
|
|
557
|
+
case 422:
|
|
558
|
+
return {
|
|
559
|
+
data: {
|
|
560
|
+
ok: false,
|
|
561
|
+
error: FernVenusApi.organization.getPublisherDocs.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
562
|
+
unrecognizedObjectKeys: "passthrough",
|
|
563
|
+
allowUnrecognizedUnionMembers: true,
|
|
564
|
+
allowUnrecognizedEnumValues: true,
|
|
565
|
+
skipValidation: true,
|
|
566
|
+
breadcrumbsPrefix: ["response"],
|
|
567
|
+
})),
|
|
568
|
+
rawResponse: _response.rawResponse,
|
|
569
|
+
},
|
|
570
|
+
rawResponse: _response.rawResponse,
|
|
571
|
+
};
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
return {
|
|
575
|
+
data: {
|
|
576
|
+
ok: false,
|
|
577
|
+
error: FernVenusApi.organization.getPublisherDocs.Error._unknown(_response.error),
|
|
578
|
+
rawResponse: _response.rawResponse,
|
|
579
|
+
},
|
|
580
|
+
rawResponse: _response.rawResponse,
|
|
581
|
+
};
|
|
582
|
+
});
|
|
583
|
+
}
|
|
502
584
|
/**
|
|
503
585
|
* Get the Postman team ID associated with an organization ID.
|
|
504
586
|
*
|
|
@@ -658,7 +740,9 @@ export class OrganizationClient {
|
|
|
658
740
|
/**
|
|
659
741
|
* Issues a claim link for an unclaimed organization, bound to one Postman
|
|
660
742
|
* user and valid for 15 minutes. Only the provisioner token and Postman's
|
|
661
|
-
* integration service token can call it.
|
|
743
|
+
* integration service token can call it. For an organization held for a
|
|
744
|
+
* Postman user, the caller must name that user as the publisher, or gets
|
|
745
|
+
* 403 PublisherMismatchError.
|
|
662
746
|
*
|
|
663
747
|
* @param {FernVenusApi.CreateClaimTokenRequest} request
|
|
664
748
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -996,7 +1080,9 @@ export class OrganizationClient {
|
|
|
996
1080
|
* Postman user the link was issued for, who becomes its admin if they
|
|
997
1081
|
* already have a Fern account; otherwise the organization starts with
|
|
998
1082
|
* no members, and the dashboard adds the team's Postman users when they
|
|
999
|
-
* sign in with Postman.
|
|
1083
|
+
* sign in with Postman. An organization with no team would then stay
|
|
1084
|
+
* empty, so without a Fern account it gets 403 FernAccountRequiredError
|
|
1085
|
+
* and stays unclaimed. Public: the link is the secret, and only the
|
|
1000
1086
|
* provisioner and Postman's integration service can get one. The first
|
|
1001
1087
|
* claim wins, and a retry finishes a claim that failed partway.
|
|
1002
1088
|
*
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as core from "../../../../core/index.mjs";
|
|
2
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
3
|
+
export type Error = FernVenusApi.organization.getPublisherDocs.Error.UnprocessableEntityError | FernVenusApi.organization.getPublisherDocs.Error._Unknown;
|
|
4
|
+
export declare namespace Error {
|
|
5
|
+
interface UnprocessableEntityError extends _Utils {
|
|
6
|
+
statusCode: 422;
|
|
7
|
+
content: FernVenusApi.HttpValidationError;
|
|
8
|
+
}
|
|
9
|
+
interface _Unknown extends _Utils {
|
|
10
|
+
statusCode: void;
|
|
11
|
+
content: core.Fetcher.Error;
|
|
12
|
+
}
|
|
13
|
+
interface _Utils {
|
|
14
|
+
_visit: <_Result>(visitor: FernVenusApi.organization.getPublisherDocs.Error._Visitor<_Result>) => _Result;
|
|
15
|
+
}
|
|
16
|
+
interface _Visitor<_Result> {
|
|
17
|
+
unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
|
|
18
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare const Error: {
|
|
22
|
+
readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.organization.getPublisherDocs.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.getPublisherDocs.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.organization.getPublisherDocs.Error, visitor: FernVenusApi.organization.getPublisherDocs.Error._Visitor<_Result>) => _Result;
|
|
25
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
3
|
+
export const Error = {
|
|
4
|
+
unprocessableEntityError: (value) => {
|
|
5
|
+
return {
|
|
6
|
+
content: value,
|
|
7
|
+
statusCode: 422,
|
|
8
|
+
_visit: function (visitor) {
|
|
9
|
+
return FernVenusApi.organization.getPublisherDocs.Error._visit(this, visitor);
|
|
10
|
+
},
|
|
11
|
+
};
|
|
12
|
+
},
|
|
13
|
+
_unknown: (fetcherError) => {
|
|
14
|
+
return {
|
|
15
|
+
statusCode: undefined,
|
|
16
|
+
content: fetcherError,
|
|
17
|
+
_visit: function (visitor) {
|
|
18
|
+
return FernVenusApi.organization.getPublisherDocs.Error._visit(this, visitor);
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
_visit: (value, visitor) => {
|
|
23
|
+
switch (value.statusCode) {
|
|
24
|
+
case 422:
|
|
25
|
+
return visitor.unprocessableEntityError(value.content);
|
|
26
|
+
default:
|
|
27
|
+
return visitor._other(value.content);
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
};
|
|
@@ -11,6 +11,7 @@ export * as getOrgIdsByPostmanTeamId from "./getOrgIdsByPostmanTeamId.mjs";
|
|
|
11
11
|
export * as getOrgIdsFromToken from "./getOrgIdsFromToken.mjs";
|
|
12
12
|
export * as getPostmanTeamDocs from "./getPostmanTeamDocs.mjs";
|
|
13
13
|
export * as getPostmanTeamIdByOrgId from "./getPostmanTeamIdByOrgId.mjs";
|
|
14
|
+
export * as getPublisherDocs from "./getPublisherDocs.mjs";
|
|
14
15
|
export * as inviteUser from "./inviteUser.mjs";
|
|
15
16
|
export * as isMember from "./isMember.mjs";
|
|
16
17
|
export * as previewClaim from "./previewClaim.mjs";
|
|
@@ -11,6 +11,7 @@ export * as getOrgIdsByPostmanTeamId from "./getOrgIdsByPostmanTeamId.mjs";
|
|
|
11
11
|
export * as getOrgIdsFromToken from "./getOrgIdsFromToken.mjs";
|
|
12
12
|
export * as getPostmanTeamDocs from "./getPostmanTeamDocs.mjs";
|
|
13
13
|
export * as getPostmanTeamIdByOrgId from "./getPostmanTeamIdByOrgId.mjs";
|
|
14
|
+
export * as getPublisherDocs from "./getPublisherDocs.mjs";
|
|
14
15
|
export * as inviteUser from "./inviteUser.mjs";
|
|
15
16
|
export * as isMember from "./isMember.mjs";
|
|
16
17
|
export * as previewClaim from "./previewClaim.mjs";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../../../index.mjs";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
@@ -12,4 +13,5 @@ export interface CreateOrganizationRequest {
|
|
|
12
13
|
enableGoogleConnection?: boolean | null;
|
|
13
14
|
enablePostmanConnection?: boolean | null;
|
|
14
15
|
postmanTeamId?: string | null;
|
|
16
|
+
publisher?: FernVenusApi.Publisher | null;
|
|
15
17
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* publisherType: "postman_team",
|
|
6
|
+
* publisherId: "publisher_id"
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest {
|
|
10
|
+
publisherType: FernVenusApi.PublisherType;
|
|
11
|
+
publisherId: string;
|
|
12
|
+
}
|
|
@@ -8,6 +8,7 @@ export type { GetOrganizationsOrgIdGetRequest } from "./GetOrganizationsOrgIdGet
|
|
|
8
8
|
export type { GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest } from "./GetOrgIdsByPostmanTeamIdOrganizationsPostmanTeamPostmanTeamIdGetRequest.mjs";
|
|
9
9
|
export type { GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest } from "./GetPostmanTeamDocsOrganizationsPostmanTeamPostmanTeamIdDocsGetRequest.mjs";
|
|
10
10
|
export type { GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest } from "./GetPostmanTeamIdByOrgIdOrganizationsOrgIdPostmanTeamIdGetRequest.mjs";
|
|
11
|
+
export type { GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest } from "./GetPublisherDocsOrganizationsPublishersPublisherTypePublisherIdDocsGetRequest.mjs";
|
|
11
12
|
export type { InviteUserToOrgRequest } from "./InviteUserToOrgRequest.mjs";
|
|
12
13
|
export type { IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest } from "./IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest.mjs";
|
|
13
14
|
export type { RemoveUserFromOrgRequest } from "./RemoveUserFromOrgRequest.mjs";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Who an unclaimed organization is held for: a Postman team, or a single
|
|
4
|
+
* Postman user. Whoever the calling service verifies as the publisher can
|
|
5
|
+
* get a claim link for it.
|
|
6
|
+
*/
|
|
7
|
+
export interface Publisher {
|
|
8
|
+
type: FernVenusApi.PublisherType;
|
|
9
|
+
id: string;
|
|
10
|
+
}
|