@fern-api/venus-api-sdk 15.3.0 → 15.5.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 +6 -0
- package/dist/cjs/Client.js +24 -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 +4 -0
- package/dist/cjs/api/resources/index.js +5 -1
- package/dist/cjs/api/resources/oidc/client/Client.d.ts +62 -0
- package/dist/cjs/api/resources/oidc/client/Client.js +378 -0
- package/dist/cjs/api/resources/oidc/client/exchangeGithubOidcToken.d.ts +25 -0
- package/dist/cjs/api/resources/oidc/client/exchangeGithubOidcToken.js +66 -0
- package/dist/cjs/api/resources/oidc/client/index.d.ts +5 -0
- package/dist/cjs/api/resources/oidc/client/index.js +44 -0
- package/dist/cjs/api/resources/oidc/client/listTrustedRepos.d.ts +25 -0
- package/dist/cjs/api/resources/oidc/client/listTrustedRepos.js +66 -0
- package/dist/cjs/api/resources/oidc/client/requests/GithubOidcExchangeRequest.d.ts +11 -0
- package/dist/cjs/api/resources/oidc/client/requests/GithubOidcExchangeRequest.js +3 -0
- package/dist/cjs/api/resources/oidc/client/requests/ListTrustedReposOrganizationsOrganizationIdOidcGithubTrustedReposGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/oidc/client/requests/ListTrustedReposOrganizationsOrganizationIdOidcGithubTrustedReposGetRequest.js +3 -0
- package/dist/cjs/api/resources/oidc/client/requests/TrustRepoRequest.d.ts +15 -0
- package/dist/cjs/api/resources/oidc/client/requests/TrustRepoRequest.js +3 -0
- package/dist/cjs/api/resources/oidc/client/requests/UntrustRepoOrganizationsOrganizationIdOidcGithubTrustedReposRepositoryIdDeleteRequest.d.ts +11 -0
- package/dist/cjs/api/resources/oidc/client/requests/UntrustRepoOrganizationsOrganizationIdOidcGithubTrustedReposRepositoryIdDeleteRequest.js +3 -0
- package/dist/cjs/api/resources/oidc/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/oidc/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/oidc/client/trustRepo.d.ts +25 -0
- package/dist/cjs/api/resources/oidc/client/trustRepo.js +66 -0
- package/dist/cjs/api/resources/oidc/client/untrustRepo.d.ts +25 -0
- package/dist/cjs/api/resources/oidc/client/untrustRepo.js +66 -0
- package/dist/cjs/api/resources/oidc/index.d.ts +1 -0
- package/dist/cjs/api/resources/oidc/index.js +17 -0
- 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/TrustedRepo.d.ts +8 -0
- package/dist/cjs/api/types/TrustedRepo.js +3 -0
- package/dist/cjs/api/types/TrustedRepos.d.ts +4 -0
- package/dist/cjs/api/types/TrustedRepos.js +3 -0
- package/dist/cjs/api/types/index.d.ts +5 -0
- package/dist/cjs/api/types/index.js +5 -0
- package/dist/cjs/serialization/resources/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/index.js +3 -1
- package/dist/cjs/serialization/resources/oidc/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/oidc/client/index.js +17 -0
- package/dist/cjs/serialization/resources/oidc/client/requests/GithubOidcExchangeRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/oidc/client/requests/GithubOidcExchangeRequest.js +42 -0
- package/dist/cjs/serialization/resources/oidc/client/requests/TrustRepoRequest.d.ts +10 -0
- package/dist/cjs/serialization/resources/oidc/client/requests/TrustRepoRequest.js +42 -0
- package/dist/cjs/serialization/resources/oidc/client/requests/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/oidc/client/requests/index.js +7 -0
- package/dist/cjs/serialization/resources/oidc/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/oidc/index.js +17 -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/TrustedRepo.d.ts +14 -0
- package/dist/cjs/serialization/types/TrustedRepo.js +46 -0
- package/dist/cjs/serialization/types/TrustedRepos.d.ts +10 -0
- package/dist/cjs/serialization/types/TrustedRepos.js +42 -0
- package/dist/cjs/serialization/types/index.d.ts +5 -0
- package/dist/cjs/serialization/types/index.js +5 -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 +6 -0
- package/dist/esm/Client.mjs +10 -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 +4 -0
- package/dist/esm/api/resources/index.mjs +4 -0
- package/dist/esm/api/resources/oidc/client/Client.d.mts +62 -0
- package/dist/esm/api/resources/oidc/client/Client.mjs +341 -0
- package/dist/esm/api/resources/oidc/client/exchangeGithubOidcToken.d.mts +25 -0
- package/dist/esm/api/resources/oidc/client/exchangeGithubOidcToken.mjs +30 -0
- package/dist/esm/api/resources/oidc/client/index.d.mts +5 -0
- package/dist/esm/api/resources/oidc/client/index.mjs +5 -0
- package/dist/esm/api/resources/oidc/client/listTrustedRepos.d.mts +25 -0
- package/dist/esm/api/resources/oidc/client/listTrustedRepos.mjs +30 -0
- package/dist/esm/api/resources/oidc/client/requests/GithubOidcExchangeRequest.d.mts +11 -0
- package/dist/esm/api/resources/oidc/client/requests/GithubOidcExchangeRequest.mjs +2 -0
- package/dist/esm/api/resources/oidc/client/requests/ListTrustedReposOrganizationsOrganizationIdOidcGithubTrustedReposGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/oidc/client/requests/ListTrustedReposOrganizationsOrganizationIdOidcGithubTrustedReposGetRequest.mjs +2 -0
- package/dist/esm/api/resources/oidc/client/requests/TrustRepoRequest.d.mts +15 -0
- package/dist/esm/api/resources/oidc/client/requests/TrustRepoRequest.mjs +2 -0
- package/dist/esm/api/resources/oidc/client/requests/UntrustRepoOrganizationsOrganizationIdOidcGithubTrustedReposRepositoryIdDeleteRequest.d.mts +11 -0
- package/dist/esm/api/resources/oidc/client/requests/UntrustRepoOrganizationsOrganizationIdOidcGithubTrustedReposRepositoryIdDeleteRequest.mjs +2 -0
- package/dist/esm/api/resources/oidc/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/oidc/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/oidc/client/trustRepo.d.mts +25 -0
- package/dist/esm/api/resources/oidc/client/trustRepo.mjs +30 -0
- package/dist/esm/api/resources/oidc/client/untrustRepo.d.mts +25 -0
- package/dist/esm/api/resources/oidc/client/untrustRepo.mjs +30 -0
- package/dist/esm/api/resources/oidc/index.d.mts +1 -0
- package/dist/esm/api/resources/oidc/index.mjs +1 -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/TrustedRepo.d.mts +8 -0
- package/dist/esm/api/types/TrustedRepo.mjs +2 -0
- package/dist/esm/api/types/TrustedRepos.d.mts +4 -0
- package/dist/esm/api/types/TrustedRepos.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +5 -0
- package/dist/esm/api/types/index.mjs +5 -0
- package/dist/esm/serialization/resources/index.d.mts +2 -0
- package/dist/esm/serialization/resources/index.mjs +2 -0
- package/dist/esm/serialization/resources/oidc/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/oidc/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/oidc/client/requests/GithubOidcExchangeRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/oidc/client/requests/GithubOidcExchangeRequest.mjs +6 -0
- package/dist/esm/serialization/resources/oidc/client/requests/TrustRepoRequest.d.mts +10 -0
- package/dist/esm/serialization/resources/oidc/client/requests/TrustRepoRequest.mjs +6 -0
- package/dist/esm/serialization/resources/oidc/client/requests/index.d.mts +2 -0
- package/dist/esm/serialization/resources/oidc/client/requests/index.mjs +2 -0
- package/dist/esm/serialization/resources/oidc/index.d.mts +1 -0
- package/dist/esm/serialization/resources/oidc/index.mjs +1 -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/TrustedRepo.d.mts +14 -0
- package/dist/esm/serialization/types/TrustedRepo.mjs +10 -0
- package/dist/esm/serialization/types/TrustedRepos.d.mts +10 -0
- package/dist/esm/serialization/types/TrustedRepos.mjs +6 -0
- package/dist/esm/serialization/types/index.d.mts +5 -0
- package/dist/esm/serialization/types/index.mjs +5 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +260 -0
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "15.
|
|
47
|
-
"User-Agent": "@fern-api/venus-api-sdk/15.
|
|
46
|
+
"X-Fern-SDK-Version": "15.5.0",
|
|
47
|
+
"User-Agent": "@fern-api/venus-api-sdk/15.5.0",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as FernVenusApi from "./api/index.js";
|
|
2
|
+
import { AdminClient } from "./api/resources/admin/client/Client.js";
|
|
2
3
|
import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.js";
|
|
3
4
|
import { AuthClient } from "./api/resources/auth/client/Client.js";
|
|
4
5
|
import { GuestSessionClient } from "./api/resources/guestSession/client/Client.js";
|
|
5
6
|
import { InternalGuestSessionClient } from "./api/resources/internalGuestSession/client/Client.js";
|
|
7
|
+
import { OidcClient } from "./api/resources/oidc/client/Client.js";
|
|
6
8
|
import { OrganizationClient } from "./api/resources/organization/client/Client.js";
|
|
7
9
|
import { RegistryClient } from "./api/resources/registry/client/Client.js";
|
|
8
10
|
import { UserClient } from "./api/resources/user/client/Client.js";
|
|
@@ -23,6 +25,8 @@ export declare class FernVenusApiClient {
|
|
|
23
25
|
protected _registry: RegistryClient | undefined;
|
|
24
26
|
protected _user: UserClient | undefined;
|
|
25
27
|
protected _internalGuestSession: InternalGuestSessionClient | undefined;
|
|
28
|
+
protected _admin: AdminClient | undefined;
|
|
29
|
+
protected _oidc: OidcClient | undefined;
|
|
26
30
|
constructor(options: FernVenusApiClient.Options);
|
|
27
31
|
get apiKeys(): ApiKeysClient;
|
|
28
32
|
get auth(): AuthClient;
|
|
@@ -31,6 +35,8 @@ export declare class FernVenusApiClient {
|
|
|
31
35
|
get registry(): RegistryClient;
|
|
32
36
|
get user(): UserClient;
|
|
33
37
|
get internalGuestSession(): InternalGuestSessionClient;
|
|
38
|
+
get admin(): AdminClient;
|
|
39
|
+
get oidc(): OidcClient;
|
|
34
40
|
/**
|
|
35
41
|
* @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
42
|
*
|
package/dist/cjs/Client.js
CHANGED
|
@@ -45,13 +45,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.FernVenusApiClient = void 0;
|
|
47
47
|
const FernVenusApi = __importStar(require("./api/index.js"));
|
|
48
|
-
const Client_js_1 = require("./api/resources/
|
|
49
|
-
const Client_js_2 = require("./api/resources/
|
|
50
|
-
const Client_js_3 = require("./api/resources/
|
|
51
|
-
const Client_js_4 = require("./api/resources/
|
|
52
|
-
const Client_js_5 = require("./api/resources/
|
|
53
|
-
const Client_js_6 = require("./api/resources/
|
|
54
|
-
const Client_js_7 = require("./api/resources/
|
|
48
|
+
const Client_js_1 = require("./api/resources/admin/client/Client.js");
|
|
49
|
+
const Client_js_2 = require("./api/resources/apiKeys/client/Client.js");
|
|
50
|
+
const Client_js_3 = require("./api/resources/auth/client/Client.js");
|
|
51
|
+
const Client_js_4 = require("./api/resources/guestSession/client/Client.js");
|
|
52
|
+
const Client_js_5 = require("./api/resources/internalGuestSession/client/Client.js");
|
|
53
|
+
const Client_js_6 = require("./api/resources/oidc/client/Client.js");
|
|
54
|
+
const Client_js_7 = require("./api/resources/organization/client/Client.js");
|
|
55
|
+
const Client_js_8 = require("./api/resources/registry/client/Client.js");
|
|
56
|
+
const Client_js_9 = require("./api/resources/user/client/Client.js");
|
|
55
57
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
56
58
|
const headers_js_1 = require("./core/headers.js");
|
|
57
59
|
const core = __importStar(require("./core/index.js"));
|
|
@@ -61,31 +63,39 @@ class FernVenusApiClient {
|
|
|
61
63
|
}
|
|
62
64
|
get apiKeys() {
|
|
63
65
|
var _a;
|
|
64
|
-
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new
|
|
66
|
+
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_js_2.ApiKeysClient(this._options)));
|
|
65
67
|
}
|
|
66
68
|
get auth() {
|
|
67
69
|
var _a;
|
|
68
|
-
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new
|
|
70
|
+
return ((_a = this._auth) !== null && _a !== void 0 ? _a : (this._auth = new Client_js_3.AuthClient(this._options)));
|
|
69
71
|
}
|
|
70
72
|
get guestSession() {
|
|
71
73
|
var _a;
|
|
72
|
-
return ((_a = this._guestSession) !== null && _a !== void 0 ? _a : (this._guestSession = new
|
|
74
|
+
return ((_a = this._guestSession) !== null && _a !== void 0 ? _a : (this._guestSession = new Client_js_4.GuestSessionClient(this._options)));
|
|
73
75
|
}
|
|
74
76
|
get organization() {
|
|
75
77
|
var _a;
|
|
76
|
-
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new
|
|
78
|
+
return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_js_7.OrganizationClient(this._options)));
|
|
77
79
|
}
|
|
78
80
|
get registry() {
|
|
79
81
|
var _a;
|
|
80
|
-
return ((_a = this._registry) !== null && _a !== void 0 ? _a : (this._registry = new
|
|
82
|
+
return ((_a = this._registry) !== null && _a !== void 0 ? _a : (this._registry = new Client_js_8.RegistryClient(this._options)));
|
|
81
83
|
}
|
|
82
84
|
get user() {
|
|
83
85
|
var _a;
|
|
84
|
-
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new
|
|
86
|
+
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_js_9.UserClient(this._options)));
|
|
85
87
|
}
|
|
86
88
|
get internalGuestSession() {
|
|
87
89
|
var _a;
|
|
88
|
-
return ((_a = this._internalGuestSession) !== null && _a !== void 0 ? _a : (this._internalGuestSession = new
|
|
90
|
+
return ((_a = this._internalGuestSession) !== null && _a !== void 0 ? _a : (this._internalGuestSession = new Client_js_5.InternalGuestSessionClient(this._options)));
|
|
91
|
+
}
|
|
92
|
+
get admin() {
|
|
93
|
+
var _a;
|
|
94
|
+
return ((_a = this._admin) !== null && _a !== void 0 ? _a : (this._admin = new Client_js_1.AdminClient(this._options)));
|
|
95
|
+
}
|
|
96
|
+
get oidc() {
|
|
97
|
+
var _a;
|
|
98
|
+
return ((_a = this._oidc) !== null && _a !== void 0 ? _a : (this._oidc = new Client_js_6.OidcClient(this._options)));
|
|
89
99
|
}
|
|
90
100
|
/**
|
|
91
101
|
* @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as FernVenusApi from "../../../index.js";
|
|
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,134 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.AdminClient = void 0;
|
|
47
|
+
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
48
|
+
const headers_js_1 = require("../../../../core/headers.js");
|
|
49
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
50
|
+
const serializers = __importStar(require("../../../../serialization/index.js"));
|
|
51
|
+
const FernVenusApi = __importStar(require("../../../index.js"));
|
|
52
|
+
class AdminClient {
|
|
53
|
+
constructor(options) {
|
|
54
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @param {FernVenusApi.ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest} request
|
|
58
|
+
* @param {AdminClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* await client.admin.listClaimableOrganizations()
|
|
62
|
+
*/
|
|
63
|
+
listClaimableOrganizations(request = {}, requestOptions) {
|
|
64
|
+
return core.HttpResponsePromise.fromPromise(this.__listClaimableOrganizations(request, requestOptions));
|
|
65
|
+
}
|
|
66
|
+
__listClaimableOrganizations() {
|
|
67
|
+
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
68
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
69
|
+
const { after, limit } = request;
|
|
70
|
+
const _queryParams = {
|
|
71
|
+
after,
|
|
72
|
+
limit,
|
|
73
|
+
};
|
|
74
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
75
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
76
|
+
const _response = yield core.fetcher({
|
|
77
|
+
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"),
|
|
78
|
+
method: "GET",
|
|
79
|
+
headers: _headers,
|
|
80
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
81
|
+
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,
|
|
82
|
+
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,
|
|
83
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
|
+
fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
|
|
85
|
+
logging: this._options.logging,
|
|
86
|
+
});
|
|
87
|
+
if (_response.ok) {
|
|
88
|
+
return {
|
|
89
|
+
data: {
|
|
90
|
+
ok: true,
|
|
91
|
+
body: serializers.ClaimableOrganizationsPage.parseOrThrow(_response.body, {
|
|
92
|
+
unrecognizedObjectKeys: "passthrough",
|
|
93
|
+
allowUnrecognizedUnionMembers: true,
|
|
94
|
+
allowUnrecognizedEnumValues: true,
|
|
95
|
+
skipValidation: true,
|
|
96
|
+
breadcrumbsPrefix: ["response"],
|
|
97
|
+
}),
|
|
98
|
+
headers: _response.headers,
|
|
99
|
+
rawResponse: _response.rawResponse,
|
|
100
|
+
},
|
|
101
|
+
rawResponse: _response.rawResponse,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
if (_response.error.reason === "status-code") {
|
|
105
|
+
switch (_response.error.statusCode) {
|
|
106
|
+
case 422:
|
|
107
|
+
return {
|
|
108
|
+
data: {
|
|
109
|
+
ok: false,
|
|
110
|
+
error: FernVenusApi.admin.listClaimableOrganizations.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
111
|
+
unrecognizedObjectKeys: "passthrough",
|
|
112
|
+
allowUnrecognizedUnionMembers: true,
|
|
113
|
+
allowUnrecognizedEnumValues: true,
|
|
114
|
+
skipValidation: true,
|
|
115
|
+
breadcrumbsPrefix: ["response"],
|
|
116
|
+
})),
|
|
117
|
+
rawResponse: _response.rawResponse,
|
|
118
|
+
},
|
|
119
|
+
rawResponse: _response.rawResponse,
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
data: {
|
|
125
|
+
ok: false,
|
|
126
|
+
error: FernVenusApi.admin.listClaimableOrganizations.Error._unknown(_response.error),
|
|
127
|
+
rawResponse: _response.rawResponse,
|
|
128
|
+
},
|
|
129
|
+
rawResponse: _response.rawResponse,
|
|
130
|
+
};
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
exports.AdminClient = AdminClient;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.listClaimableOrganizations = void 0;
|
|
40
|
+
exports.listClaimableOrganizations = __importStar(require("./listClaimableOrganizations.js"));
|
|
41
|
+
__exportStar(require("./requests/index.js"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as core from "../../../../core/index.js";
|
|
2
|
+
import * as FernVenusApi from "../../../index.js";
|
|
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,66 @@
|
|
|
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.Error = void 0;
|
|
38
|
+
const FernVenusApi = __importStar(require("../../../index.js"));
|
|
39
|
+
exports.Error = {
|
|
40
|
+
unprocessableEntityError: (value) => {
|
|
41
|
+
return {
|
|
42
|
+
content: value,
|
|
43
|
+
statusCode: 422,
|
|
44
|
+
_visit: function (visitor) {
|
|
45
|
+
return FernVenusApi.admin.listClaimableOrganizations.Error._visit(this, visitor);
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
_unknown: (fetcherError) => {
|
|
50
|
+
return {
|
|
51
|
+
statusCode: undefined,
|
|
52
|
+
content: fetcherError,
|
|
53
|
+
_visit: function (visitor) {
|
|
54
|
+
return FernVenusApi.admin.listClaimableOrganizations.Error._visit(this, visitor);
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
_visit: (value, visitor) => {
|
|
59
|
+
switch (value.statusCode) {
|
|
60
|
+
case 422:
|
|
61
|
+
return visitor.unprocessableEntityError(value.content);
|
|
62
|
+
default:
|
|
63
|
+
return visitor._other(value.content);
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest } from "./ListClaimableOrganizationsAdminClaimableOrganizationsGetRequest.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from "./admin/client/requests/index.js";
|
|
2
|
+
export * as admin from "./admin/index.js";
|
|
1
3
|
export * from "./apiKeys/client/requests/index.js";
|
|
2
4
|
export * as apiKeys from "./apiKeys/index.js";
|
|
3
5
|
export * from "./auth/client/requests/index.js";
|
|
@@ -7,6 +9,8 @@ export * as guestSession from "./guestSession/index.js";
|
|
|
7
9
|
export * from "./internalGuestSession/client/requests/index.js";
|
|
8
10
|
export * as internalGuestSession from "./internalGuestSession/index.js";
|
|
9
11
|
export * from "./internalGuestSession/types/index.js";
|
|
12
|
+
export * from "./oidc/client/requests/index.js";
|
|
13
|
+
export * as oidc from "./oidc/index.js";
|
|
10
14
|
export * from "./organization/client/requests/index.js";
|
|
11
15
|
export * as organization from "./organization/index.js";
|
|
12
16
|
export * from "./registry/client/requests/index.js";
|
|
@@ -36,7 +36,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.user = exports.registry = exports.organization = exports.internalGuestSession = exports.guestSession = exports.auth = exports.apiKeys = void 0;
|
|
39
|
+
exports.user = exports.registry = exports.organization = exports.oidc = exports.internalGuestSession = exports.guestSession = exports.auth = exports.apiKeys = exports.admin = void 0;
|
|
40
|
+
__exportStar(require("./admin/client/requests/index.js"), exports);
|
|
41
|
+
exports.admin = __importStar(require("./admin/index.js"));
|
|
40
42
|
__exportStar(require("./apiKeys/client/requests/index.js"), exports);
|
|
41
43
|
exports.apiKeys = __importStar(require("./apiKeys/index.js"));
|
|
42
44
|
__exportStar(require("./auth/client/requests/index.js"), exports);
|
|
@@ -46,6 +48,8 @@ exports.guestSession = __importStar(require("./guestSession/index.js"));
|
|
|
46
48
|
__exportStar(require("./internalGuestSession/client/requests/index.js"), exports);
|
|
47
49
|
exports.internalGuestSession = __importStar(require("./internalGuestSession/index.js"));
|
|
48
50
|
__exportStar(require("./internalGuestSession/types/index.js"), exports);
|
|
51
|
+
__exportStar(require("./oidc/client/requests/index.js"), exports);
|
|
52
|
+
exports.oidc = __importStar(require("./oidc/index.js"));
|
|
49
53
|
__exportStar(require("./organization/client/requests/index.js"), exports);
|
|
50
54
|
exports.organization = __importStar(require("./organization/index.js"));
|
|
51
55
|
__exportStar(require("./registry/client/requests/index.js"), exports);
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
|
+
import * as core from "../../../../core/index.js";
|
|
4
|
+
import * as FernVenusApi from "../../../index.js";
|
|
5
|
+
export declare namespace OidcClient {
|
|
6
|
+
type Options = BaseClientOptions;
|
|
7
|
+
interface RequestOptions extends BaseRequestOptions {
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare class OidcClient {
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<OidcClient.Options>;
|
|
12
|
+
constructor(options: OidcClient.Options);
|
|
13
|
+
/**
|
|
14
|
+
* @param {FernVenusApi.TrustRepoRequest} request
|
|
15
|
+
* @param {OidcClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* await client.oidc.trustRepo({
|
|
19
|
+
* organizationId: "organization_id",
|
|
20
|
+
* repositoryId: "repository_id",
|
|
21
|
+
* repositoryOwnerId: "repositoryOwnerId",
|
|
22
|
+
* repositoryFullName: "repositoryFullName"
|
|
23
|
+
* })
|
|
24
|
+
*/
|
|
25
|
+
trustRepo(request: FernVenusApi.TrustRepoRequest, requestOptions?: OidcClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.TrustedRepo, FernVenusApi.oidc.trustRepo.Error>>;
|
|
26
|
+
private __trustRepo;
|
|
27
|
+
/**
|
|
28
|
+
* @param {FernVenusApi.UntrustRepoOrganizationsOrganizationIdOidcGithubTrustedReposRepositoryIdDeleteRequest} request
|
|
29
|
+
* @param {OidcClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* await client.oidc.untrustRepo({
|
|
33
|
+
* organizationId: "organization_id",
|
|
34
|
+
* repositoryId: "repository_id"
|
|
35
|
+
* })
|
|
36
|
+
*/
|
|
37
|
+
untrustRepo(request: FernVenusApi.UntrustRepoOrganizationsOrganizationIdOidcGithubTrustedReposRepositoryIdDeleteRequest, requestOptions?: OidcClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.oidc.untrustRepo.Error>>;
|
|
38
|
+
private __untrustRepo;
|
|
39
|
+
/**
|
|
40
|
+
* @param {FernVenusApi.ListTrustedReposOrganizationsOrganizationIdOidcGithubTrustedReposGetRequest} request
|
|
41
|
+
* @param {OidcClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* await client.oidc.listTrustedRepos({
|
|
45
|
+
* organizationId: "organization_id"
|
|
46
|
+
* })
|
|
47
|
+
*/
|
|
48
|
+
listTrustedRepos(request: FernVenusApi.ListTrustedReposOrganizationsOrganizationIdOidcGithubTrustedReposGetRequest, requestOptions?: OidcClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.TrustedRepos, FernVenusApi.oidc.listTrustedRepos.Error>>;
|
|
49
|
+
private __listTrustedRepos;
|
|
50
|
+
/**
|
|
51
|
+
* @param {FernVenusApi.GithubOidcExchangeRequest} request
|
|
52
|
+
* @param {OidcClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* await client.oidc.exchangeGithubOidcToken({
|
|
56
|
+
* token: "token",
|
|
57
|
+
* organizationId: "organizationId"
|
|
58
|
+
* })
|
|
59
|
+
*/
|
|
60
|
+
exchangeGithubOidcToken(request: FernVenusApi.GithubOidcExchangeRequest, requestOptions?: OidcClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.JwtResponse, FernVenusApi.oidc.exchangeGithubOidcToken.Error>>;
|
|
61
|
+
private __exchangeGithubOidcToken;
|
|
62
|
+
}
|