@fern-api/venus-api-sdk 15.3.0 → 15.4.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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +19 -14
- package/dist/cjs/api/resources/admin/client/Client.d.ts +22 -0
- package/dist/cjs/api/resources/admin/client/Client.js +134 -0
- package/dist/cjs/api/resources/admin/client/index.d.ts +2 -0
- package/dist/cjs/api/resources/admin/client/index.js +41 -0
- package/dist/cjs/api/resources/admin/client/listClaimableOrganizations.d.ts +25 -0
- package/dist/cjs/api/resources/admin/client/listClaimableOrganizations.js +66 -0
- package/dist/cjs/api/resources/admin/client/requests/ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest.d.ts +8 -0
- package/dist/cjs/api/resources/admin/client/requests/ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest.js +3 -0
- package/dist/cjs/api/resources/admin/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/admin/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/admin/index.d.ts +1 -0
- package/dist/cjs/api/resources/admin/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +3 -1
- package/dist/cjs/api/types/ClaimableOrganizationItem.d.ts +8 -0
- package/dist/cjs/api/types/ClaimableOrganizationItem.js +3 -0
- package/dist/cjs/api/types/ClaimableOrganizationItemPublisherType.d.ts +6 -0
- package/dist/cjs/api/types/ClaimableOrganizationItemPublisherType.js +9 -0
- package/dist/cjs/api/types/ClaimableOrganizationsPage.d.ts +5 -0
- package/dist/cjs/api/types/ClaimableOrganizationsPage.js +3 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- package/dist/cjs/serialization/types/ClaimableOrganizationItem.d.ts +14 -0
- package/dist/cjs/serialization/types/ClaimableOrganizationItem.js +46 -0
- package/dist/cjs/serialization/types/ClaimableOrganizationItemPublisherType.d.ts +7 -0
- package/dist/cjs/serialization/types/ClaimableOrganizationItemPublisherType.js +39 -0
- package/dist/cjs/serialization/types/ClaimableOrganizationsPage.d.ts +11 -0
- package/dist/cjs/serialization/types/ClaimableOrganizationsPage.js +43 -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/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/admin/client/Client.d.mts +22 -0
- package/dist/esm/api/resources/admin/client/Client.mjs +97 -0
- package/dist/esm/api/resources/admin/client/index.d.mts +2 -0
- package/dist/esm/api/resources/admin/client/index.mjs +2 -0
- package/dist/esm/api/resources/admin/client/listClaimableOrganizations.d.mts +25 -0
- package/dist/esm/api/resources/admin/client/listClaimableOrganizations.mjs +30 -0
- package/dist/esm/api/resources/admin/client/requests/ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest.d.mts +8 -0
- package/dist/esm/api/resources/admin/client/requests/ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest.mjs +2 -0
- package/dist/esm/api/resources/admin/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/admin/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/admin/index.d.mts +1 -0
- package/dist/esm/api/resources/admin/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/types/ClaimableOrganizationItem.d.mts +8 -0
- package/dist/esm/api/types/ClaimableOrganizationItem.mjs +2 -0
- package/dist/esm/api/types/ClaimableOrganizationItemPublisherType.d.mts +6 -0
- package/dist/esm/api/types/ClaimableOrganizationItemPublisherType.mjs +6 -0
- package/dist/esm/api/types/ClaimableOrganizationsPage.d.mts +5 -0
- package/dist/esm/api/types/ClaimableOrganizationsPage.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/serialization/types/ClaimableOrganizationItem.d.mts +14 -0
- package/dist/esm/serialization/types/ClaimableOrganizationItem.mjs +10 -0
- package/dist/esm/serialization/types/ClaimableOrganizationItemPublisherType.d.mts +7 -0
- package/dist/esm/serialization/types/ClaimableOrganizationItemPublisherType.mjs +3 -0
- package/dist/esm/serialization/types/ClaimableOrganizationsPage.d.mts +11 -0
- package/dist/esm/serialization/types/ClaimableOrganizationsPage.mjs +7 -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 +50 -0
|
@@ -0,0 +1,11 @@
|
|
|
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 { ClaimableOrganizationItem } from "./ClaimableOrganizationItem.js";
|
|
5
|
+
export declare const ClaimableOrganizationsPage: core.serialization.ObjectSchema<serializers.ClaimableOrganizationsPage.Raw, FernVenusApi.ClaimableOrganizationsPage>;
|
|
6
|
+
export declare namespace ClaimableOrganizationsPage {
|
|
7
|
+
interface Raw {
|
|
8
|
+
organizations: ClaimableOrganizationItem.Raw[];
|
|
9
|
+
nextAfter?: string | null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -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.ClaimableOrganizationsPage = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const ClaimableOrganizationItem_js_1 = require("./ClaimableOrganizationItem.js");
|
|
40
|
+
exports.ClaimableOrganizationsPage = core.serialization.object({
|
|
41
|
+
organizations: core.serialization.list(ClaimableOrganizationItem_js_1.ClaimableOrganizationItem),
|
|
42
|
+
nextAfter: core.serialization.string().nullable(),
|
|
43
|
+
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from "./Active.js";
|
|
2
|
+
export * from "./ClaimableOrganizationItem.js";
|
|
3
|
+
export * from "./ClaimableOrganizationItemPublisherType.js";
|
|
4
|
+
export * from "./ClaimableOrganizationsPage.js";
|
|
2
5
|
export * from "./ClaimGuestSessionResponse.js";
|
|
3
6
|
export * from "./ClaimGuestSessionResponseStatus.js";
|
|
4
7
|
export * from "./ClaimOrganizationRequest.js";
|
|
@@ -15,6 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Active.js"), exports);
|
|
18
|
+
__exportStar(require("./ClaimableOrganizationItem.js"), exports);
|
|
19
|
+
__exportStar(require("./ClaimableOrganizationItemPublisherType.js"), exports);
|
|
20
|
+
__exportStar(require("./ClaimableOrganizationsPage.js"), exports);
|
|
18
21
|
__exportStar(require("./ClaimGuestSessionResponse.js"), exports);
|
|
19
22
|
__exportStar(require("./ClaimGuestSessionResponseStatus.js"), exports);
|
|
20
23
|
__exportStar(require("./ClaimOrganizationRequest.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "15.
|
|
1
|
+
export declare const SDK_VERSION = "15.4.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": "15.
|
|
10
|
-
"User-Agent": "@fern-api/venus-api-sdk/15.
|
|
9
|
+
"X-Fern-SDK-Version": "15.4.0",
|
|
10
|
+
"User-Agent": "@fern-api/venus-api-sdk/15.4.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);
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as FernVenusApi from "./api/index.mjs";
|
|
2
|
+
import { AdminClient } from "./api/resources/admin/client/Client.mjs";
|
|
2
3
|
import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
|
|
3
4
|
import { AuthClient } from "./api/resources/auth/client/Client.mjs";
|
|
4
5
|
import { GuestSessionClient } from "./api/resources/guestSession/client/Client.mjs";
|
|
@@ -23,6 +24,7 @@ export declare class FernVenusApiClient {
|
|
|
23
24
|
protected _registry: RegistryClient | undefined;
|
|
24
25
|
protected _user: UserClient | undefined;
|
|
25
26
|
protected _internalGuestSession: InternalGuestSessionClient | undefined;
|
|
27
|
+
protected _admin: AdminClient | undefined;
|
|
26
28
|
constructor(options: FernVenusApiClient.Options);
|
|
27
29
|
get apiKeys(): ApiKeysClient;
|
|
28
30
|
get auth(): AuthClient;
|
|
@@ -31,6 +33,7 @@ export declare class FernVenusApiClient {
|
|
|
31
33
|
get registry(): RegistryClient;
|
|
32
34
|
get user(): UserClient;
|
|
33
35
|
get internalGuestSession(): InternalGuestSessionClient;
|
|
36
|
+
get admin(): AdminClient;
|
|
34
37
|
/**
|
|
35
38
|
* @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
39
|
*
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
import * as FernVenusApi from "./api/index.mjs";
|
|
12
|
+
import { AdminClient } from "./api/resources/admin/client/Client.mjs";
|
|
12
13
|
import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
|
|
13
14
|
import { AuthClient } from "./api/resources/auth/client/Client.mjs";
|
|
14
15
|
import { GuestSessionClient } from "./api/resources/guestSession/client/Client.mjs";
|
|
@@ -51,6 +52,10 @@ export class FernVenusApiClient {
|
|
|
51
52
|
var _a;
|
|
52
53
|
return ((_a = this._internalGuestSession) !== null && _a !== void 0 ? _a : (this._internalGuestSession = new InternalGuestSessionClient(this._options)));
|
|
53
54
|
}
|
|
55
|
+
get admin() {
|
|
56
|
+
var _a;
|
|
57
|
+
return ((_a = this._admin) !== null && _a !== void 0 ? _a : (this._admin = new AdminClient(this._options)));
|
|
58
|
+
}
|
|
54
59
|
/**
|
|
55
60
|
* @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
56
61
|
*
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
|
+
import * as core from "../../../../core/index.mjs";
|
|
4
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
5
|
+
export declare namespace AdminClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class AdminClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<AdminClient.Options>;
|
|
12
|
+
constructor(options: AdminClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {FernVenusApi.ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest} request
|
|
15
|
+
* @param {AdminClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* await client.admin.listClaimableOrganizations()
|
|
19
|
+
*/
|
|
20
|
+
listClaimableOrganizations(request?: FernVenusApi.ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest, requestOptions?: AdminClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.ClaimableOrganizationsPage, FernVenusApi.admin.listClaimableOrganizations.Error>>;
|
|
21
|
+
private __listClaimableOrganizations;
|
|
22
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
|
+
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
13
|
+
import * as core from "../../../../core/index.mjs";
|
|
14
|
+
import * as serializers from "../../../../serialization/index.mjs";
|
|
15
|
+
import * as FernVenusApi from "../../../index.mjs";
|
|
16
|
+
export class AdminClient {
|
|
17
|
+
constructor(options) {
|
|
18
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* @param {FernVenusApi.ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest} request
|
|
22
|
+
* @param {AdminClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* await client.admin.listClaimableOrganizations()
|
|
26
|
+
*/
|
|
27
|
+
listClaimableOrganizations(request = {}, requestOptions) {
|
|
28
|
+
return core.HttpResponsePromise.fromPromise(this.__listClaimableOrganizations(request, requestOptions));
|
|
29
|
+
}
|
|
30
|
+
__listClaimableOrganizations() {
|
|
31
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
32
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
33
|
+
const { after, limit } = request;
|
|
34
|
+
const _queryParams = {
|
|
35
|
+
after,
|
|
36
|
+
limit,
|
|
37
|
+
};
|
|
38
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
39
|
+
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);
|
|
40
|
+
const _response = yield core.fetcher({
|
|
41
|
+
url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), "admin/claimable-organizations"),
|
|
42
|
+
method: "GET",
|
|
43
|
+
headers: _headers,
|
|
44
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
45
|
+
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,
|
|
46
|
+
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,
|
|
47
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
48
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
49
|
+
logging: this._options.logging,
|
|
50
|
+
});
|
|
51
|
+
if (_response.ok) {
|
|
52
|
+
return {
|
|
53
|
+
data: {
|
|
54
|
+
ok: true,
|
|
55
|
+
body: serializers.ClaimableOrganizationsPage.parseOrThrow(_response.body, {
|
|
56
|
+
unrecognizedObjectKeys: "passthrough",
|
|
57
|
+
allowUnrecognizedUnionMembers: true,
|
|
58
|
+
allowUnrecognizedEnumValues: true,
|
|
59
|
+
skipValidation: true,
|
|
60
|
+
breadcrumbsPrefix: ["response"],
|
|
61
|
+
}),
|
|
62
|
+
headers: _response.headers,
|
|
63
|
+
rawResponse: _response.rawResponse,
|
|
64
|
+
},
|
|
65
|
+
rawResponse: _response.rawResponse,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
if (_response.error.reason === "status-code") {
|
|
69
|
+
switch (_response.error.statusCode) {
|
|
70
|
+
case 422:
|
|
71
|
+
return {
|
|
72
|
+
data: {
|
|
73
|
+
ok: false,
|
|
74
|
+
error: FernVenusApi.admin.listClaimableOrganizations.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
75
|
+
unrecognizedObjectKeys: "passthrough",
|
|
76
|
+
allowUnrecognizedUnionMembers: true,
|
|
77
|
+
allowUnrecognizedEnumValues: true,
|
|
78
|
+
skipValidation: true,
|
|
79
|
+
breadcrumbsPrefix: ["response"],
|
|
80
|
+
})),
|
|
81
|
+
rawResponse: _response.rawResponse,
|
|
82
|
+
},
|
|
83
|
+
rawResponse: _response.rawResponse,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
data: {
|
|
89
|
+
ok: false,
|
|
90
|
+
error: FernVenusApi.admin.listClaimableOrganizations.Error._unknown(_response.error),
|
|
91
|
+
rawResponse: _response.rawResponse,
|
|
92
|
+
},
|
|
93
|
+
rawResponse: _response.rawResponse,
|
|
94
|
+
};
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -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.admin.listClaimableOrganizations.Error.UnprocessableEntityError | FernVenusApi.admin.listClaimableOrganizations.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.admin.listClaimableOrganizations.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.admin.listClaimableOrganizations.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.admin.listClaimableOrganizations.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.admin.listClaimableOrganizations.Error, visitor: FernVenusApi.admin.listClaimableOrganizations.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.admin.listClaimableOrganizations.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.admin.listClaimableOrganizations.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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest } from "./ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ClaimableOrganizationItemPublisherType: {
|
|
2
|
+
readonly PostmanTeam: "postman_team";
|
|
3
|
+
readonly PostmanUser: "postman_user";
|
|
4
|
+
readonly GithubRepo: "github_repo";
|
|
5
|
+
};
|
|
6
|
+
export type ClaimableOrganizationItemPublisherType = (typeof ClaimableOrganizationItemPublisherType)[keyof typeof ClaimableOrganizationItemPublisherType];
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from "./Active.mjs";
|
|
2
|
+
export * from "./ClaimableOrganizationItem.mjs";
|
|
3
|
+
export * from "./ClaimableOrganizationItemPublisherType.mjs";
|
|
4
|
+
export * from "./ClaimableOrganizationsPage.mjs";
|
|
2
5
|
export * from "./ClaimGuestSessionResponse.mjs";
|
|
3
6
|
export * from "./ClaimGuestSessionResponseStatus.mjs";
|
|
4
7
|
export * from "./ClaimOrganizationRequest.mjs";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from "./Active.mjs";
|
|
2
|
+
export * from "./ClaimableOrganizationItem.mjs";
|
|
3
|
+
export * from "./ClaimableOrganizationItemPublisherType.mjs";
|
|
4
|
+
export * from "./ClaimableOrganizationsPage.mjs";
|
|
2
5
|
export * from "./ClaimGuestSessionResponse.mjs";
|
|
3
6
|
export * from "./ClaimGuestSessionResponseStatus.mjs";
|
|
4
7
|
export * from "./ClaimOrganizationRequest.mjs";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
import { ClaimableOrganizationItemPublisherType } from "./ClaimableOrganizationItemPublisherType.mjs";
|
|
5
|
+
export declare const ClaimableOrganizationItem: core.serialization.ObjectSchema<serializers.ClaimableOrganizationItem.Raw, FernVenusApi.ClaimableOrganizationItem>;
|
|
6
|
+
export declare namespace ClaimableOrganizationItem {
|
|
7
|
+
interface Raw {
|
|
8
|
+
orgId: string;
|
|
9
|
+
status: string;
|
|
10
|
+
publisherType?: ClaimableOrganizationItemPublisherType.Raw | null;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
claimedAt?: string | null;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { ClaimableOrganizationItemPublisherType } from "./ClaimableOrganizationItemPublisherType.mjs";
|
|
4
|
+
export const ClaimableOrganizationItem = core.serialization.object({
|
|
5
|
+
orgId: core.serialization.string(),
|
|
6
|
+
status: core.serialization.string(),
|
|
7
|
+
publisherType: ClaimableOrganizationItemPublisherType.nullable(),
|
|
8
|
+
createdAt: core.serialization.date(),
|
|
9
|
+
claimedAt: core.serialization.date().nullable(),
|
|
10
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
export declare const ClaimableOrganizationItemPublisherType: core.serialization.Schema<serializers.ClaimableOrganizationItemPublisherType.Raw, FernVenusApi.ClaimableOrganizationItemPublisherType>;
|
|
5
|
+
export declare namespace ClaimableOrganizationItemPublisherType {
|
|
6
|
+
type Raw = "postman_team" | "postman_user" | "github_repo";
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.mjs";
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import type * as serializers from "../index.mjs";
|
|
4
|
+
import { ClaimableOrganizationItem } from "./ClaimableOrganizationItem.mjs";
|
|
5
|
+
export declare const ClaimableOrganizationsPage: core.serialization.ObjectSchema<serializers.ClaimableOrganizationsPage.Raw, FernVenusApi.ClaimableOrganizationsPage>;
|
|
6
|
+
export declare namespace ClaimableOrganizationsPage {
|
|
7
|
+
interface Raw {
|
|
8
|
+
organizations: ClaimableOrganizationItem.Raw[];
|
|
9
|
+
nextAfter?: string | null;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
import * as core from "../../core/index.mjs";
|
|
3
|
+
import { ClaimableOrganizationItem } from "./ClaimableOrganizationItem.mjs";
|
|
4
|
+
export const ClaimableOrganizationsPage = core.serialization.object({
|
|
5
|
+
organizations: core.serialization.list(ClaimableOrganizationItem),
|
|
6
|
+
nextAfter: core.serialization.string().nullable(),
|
|
7
|
+
});
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from "./Active.mjs";
|
|
2
|
+
export * from "./ClaimableOrganizationItem.mjs";
|
|
3
|
+
export * from "./ClaimableOrganizationItemPublisherType.mjs";
|
|
4
|
+
export * from "./ClaimableOrganizationsPage.mjs";
|
|
2
5
|
export * from "./ClaimGuestSessionResponse.mjs";
|
|
3
6
|
export * from "./ClaimGuestSessionResponseStatus.mjs";
|
|
4
7
|
export * from "./ClaimOrganizationRequest.mjs";
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from "./Active.mjs";
|
|
2
|
+
export * from "./ClaimableOrganizationItem.mjs";
|
|
3
|
+
export * from "./ClaimableOrganizationItemPublisherType.mjs";
|
|
4
|
+
export * from "./ClaimableOrganizationsPage.mjs";
|
|
2
5
|
export * from "./ClaimGuestSessionResponse.mjs";
|
|
3
6
|
export * from "./ClaimGuestSessionResponseStatus.mjs";
|
|
4
7
|
export * from "./ClaimOrganizationRequest.mjs";
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "15.
|
|
1
|
+
export declare const SDK_VERSION = "15.4.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "15.
|
|
1
|
+
export const SDK_VERSION = "15.4.0";
|
package/package.json
CHANGED
package/reference.md
CHANGED
|
@@ -2845,6 +2845,56 @@ await client.internalGuestSession.settle({
|
|
|
2845
2845
|
</dl>
|
|
2846
2846
|
|
|
2847
2847
|
|
|
2848
|
+
</dd>
|
|
2849
|
+
</dl>
|
|
2850
|
+
</details>
|
|
2851
|
+
|
|
2852
|
+
## Admin
|
|
2853
|
+
<details><summary><code>client.admin.<a href="/src/api/resources/admin/client/Client.ts">listClaimableOrganizations</a>({ ...params }) -> core.APIResponse<FernVenusApi.ClaimableOrganizationsPage, FernVenusApi.admin.listClaimableOrganizations.Error></code></summary>
|
|
2854
|
+
<dl>
|
|
2855
|
+
<dd>
|
|
2856
|
+
|
|
2857
|
+
#### 🔌 Usage
|
|
2858
|
+
|
|
2859
|
+
<dl>
|
|
2860
|
+
<dd>
|
|
2861
|
+
|
|
2862
|
+
<dl>
|
|
2863
|
+
<dd>
|
|
2864
|
+
|
|
2865
|
+
```typescript
|
|
2866
|
+
await client.admin.listClaimableOrganizations();
|
|
2867
|
+
|
|
2868
|
+
```
|
|
2869
|
+
</dd>
|
|
2870
|
+
</dl>
|
|
2871
|
+
</dd>
|
|
2872
|
+
</dl>
|
|
2873
|
+
|
|
2874
|
+
#### ⚙️ Parameters
|
|
2875
|
+
|
|
2876
|
+
<dl>
|
|
2877
|
+
<dd>
|
|
2878
|
+
|
|
2879
|
+
<dl>
|
|
2880
|
+
<dd>
|
|
2881
|
+
|
|
2882
|
+
**request:** `FernVenusApi.ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest`
|
|
2883
|
+
|
|
2884
|
+
</dd>
|
|
2885
|
+
</dl>
|
|
2886
|
+
|
|
2887
|
+
<dl>
|
|
2888
|
+
<dd>
|
|
2889
|
+
|
|
2890
|
+
**requestOptions:** `AdminClient.RequestOptions`
|
|
2891
|
+
|
|
2892
|
+
</dd>
|
|
2893
|
+
</dl>
|
|
2894
|
+
</dd>
|
|
2895
|
+
</dl>
|
|
2896
|
+
|
|
2897
|
+
|
|
2848
2898
|
</dd>
|
|
2849
2899
|
</dl>
|
|
2850
2900
|
</details>
|