@fern-api/venus-api-sdk 0.19.9-1-gbb50a9f → 0.19.9
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/Client.d.ts +0 -3
- package/dist/cjs/Client.js +7 -12
- package/dist/cjs/api/resources/index.d.ts +0 -3
- package/dist/cjs/api/resources/index.js +1 -4
- package/dist/cjs/serialization/resources/index.d.ts +0 -3
- package/dist/cjs/serialization/resources/index.js +1 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +0 -3
- package/dist/esm/Client.mjs +1 -6
- package/dist/esm/api/resources/index.d.mts +0 -3
- package/dist/esm/api/resources/index.mjs +0 -3
- package/dist/esm/serialization/resources/index.d.mts +0 -3
- package/dist/esm/serialization/resources/index.mjs +0 -3
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +0 -105
- package/dist/cjs/api/resources/apiKeys/client/Client.js +0 -451
- package/dist/cjs/api/resources/apiKeys/client/create.d.ts +0 -32
- package/dist/cjs/api/resources/apiKeys/client/create.js +0 -77
- package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.d.ts +0 -32
- package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.js +0 -77
- package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.d.ts +0 -32
- package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.js +0 -77
- package/dist/cjs/api/resources/apiKeys/client/index.d.ts +0 -6
- package/dist/cjs/api/resources/apiKeys/client/index.js +0 -45
- package/dist/cjs/api/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +0 -21
- package/dist/cjs/api/resources/apiKeys/client/requests/CreateApiKeyRequest.js +0 -5
- package/dist/cjs/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.ts +0 -17
- package/dist/cjs/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.js +0 -5
- package/dist/cjs/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.ts +0 -17
- package/dist/cjs/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.js +0 -5
- package/dist/cjs/api/resources/apiKeys/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/apiKeys/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/apiKeys/client/revokeToken.d.ts +0 -32
- package/dist/cjs/api/resources/apiKeys/client/revokeToken.js +0 -77
- package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.d.ts +0 -32
- package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.js +0 -77
- package/dist/cjs/api/resources/apiKeys/index.d.ts +0 -2
- package/dist/cjs/api/resources/apiKeys/index.js +0 -18
- package/dist/cjs/api/resources/apiKeys/types/CreateTokenResponse.d.ts +0 -15
- package/dist/cjs/api/resources/apiKeys/types/CreateTokenResponse.js +0 -5
- package/dist/cjs/api/resources/apiKeys/types/TokenId.d.ts +0 -12
- package/dist/cjs/api/resources/apiKeys/types/TokenId.js +0 -9
- package/dist/cjs/api/resources/apiKeys/types/TokenMetadata.d.ts +0 -22
- package/dist/cjs/api/resources/apiKeys/types/TokenMetadata.js +0 -5
- package/dist/cjs/api/resources/apiKeys/types/TokenStatus.d.ts +0 -32
- package/dist/cjs/api/resources/apiKeys/types/TokenStatus.js +0 -5
- package/dist/cjs/api/resources/apiKeys/types/index.d.ts +0 -4
- package/dist/cjs/api/resources/apiKeys/types/index.js +0 -20
- package/dist/cjs/serialization/resources/apiKeys/client/create.d.ts +0 -16
- package/dist/cjs/serialization/resources/apiKeys/client/create.js +0 -71
- package/dist/cjs/serialization/resources/apiKeys/client/getTokenMetadata.d.ts +0 -16
- package/dist/cjs/serialization/resources/apiKeys/client/getTokenMetadata.js +0 -71
- package/dist/cjs/serialization/resources/apiKeys/client/getTokensForOrganization.d.ts +0 -21
- package/dist/cjs/serialization/resources/apiKeys/client/getTokensForOrganization.js +0 -73
- package/dist/cjs/serialization/resources/apiKeys/client/index.d.ts +0 -6
- package/dist/cjs/serialization/resources/apiKeys/client/index.js +0 -45
- package/dist/cjs/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +0 -15
- package/dist/cjs/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.js +0 -46
- package/dist/cjs/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.ts +0 -12
- package/dist/cjs/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.js +0 -43
- package/dist/cjs/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.ts +0 -12
- package/dist/cjs/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.js +0 -43
- package/dist/cjs/serialization/resources/apiKeys/client/requests/index.d.ts +0 -3
- package/dist/cjs/serialization/resources/apiKeys/client/requests/index.js +0 -9
- package/dist/cjs/serialization/resources/apiKeys/client/revokeToken.d.ts +0 -16
- package/dist/cjs/serialization/resources/apiKeys/client/revokeToken.js +0 -71
- package/dist/cjs/serialization/resources/apiKeys/client/revokeTokenById.d.ts +0 -16
- package/dist/cjs/serialization/resources/apiKeys/client/revokeTokenById.js +0 -71
- package/dist/cjs/serialization/resources/apiKeys/index.d.ts +0 -2
- package/dist/cjs/serialization/resources/apiKeys/index.js +0 -18
- package/dist/cjs/serialization/resources/apiKeys/types/CreateTokenResponse.d.ts +0 -14
- package/dist/cjs/serialization/resources/apiKeys/types/CreateTokenResponse.js +0 -45
- package/dist/cjs/serialization/resources/apiKeys/types/TokenId.d.ts +0 -10
- package/dist/cjs/serialization/resources/apiKeys/types/TokenId.js +0 -47
- package/dist/cjs/serialization/resources/apiKeys/types/TokenMetadata.d.ts +0 -19
- package/dist/cjs/serialization/resources/apiKeys/types/TokenMetadata.js +0 -50
- package/dist/cjs/serialization/resources/apiKeys/types/TokenStatus.d.ts +0 -19
- package/dist/cjs/serialization/resources/apiKeys/types/TokenStatus.js +0 -50
- package/dist/cjs/serialization/resources/apiKeys/types/index.d.ts +0 -4
- package/dist/cjs/serialization/resources/apiKeys/types/index.js +0 -20
- package/dist/esm/api/resources/apiKeys/client/Client.d.mts +0 -105
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +0 -414
- package/dist/esm/api/resources/apiKeys/client/create.d.mts +0 -32
- package/dist/esm/api/resources/apiKeys/client/create.mjs +0 -41
- package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.d.mts +0 -32
- package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.mjs +0 -41
- package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.d.mts +0 -32
- package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.mjs +0 -41
- package/dist/esm/api/resources/apiKeys/client/index.d.mts +0 -6
- package/dist/esm/api/resources/apiKeys/client/index.mjs +0 -6
- package/dist/esm/api/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +0 -21
- package/dist/esm/api/resources/apiKeys/client/requests/CreateApiKeyRequest.mjs +0 -4
- package/dist/esm/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +0 -17
- package/dist/esm/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.mjs +0 -4
- package/dist/esm/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +0 -17
- package/dist/esm/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.mjs +0 -4
- package/dist/esm/api/resources/apiKeys/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/apiKeys/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/apiKeys/client/revokeToken.d.mts +0 -32
- package/dist/esm/api/resources/apiKeys/client/revokeToken.mjs +0 -41
- package/dist/esm/api/resources/apiKeys/client/revokeTokenById.d.mts +0 -32
- package/dist/esm/api/resources/apiKeys/client/revokeTokenById.mjs +0 -41
- package/dist/esm/api/resources/apiKeys/index.d.mts +0 -2
- package/dist/esm/api/resources/apiKeys/index.mjs +0 -2
- package/dist/esm/api/resources/apiKeys/types/CreateTokenResponse.d.mts +0 -15
- package/dist/esm/api/resources/apiKeys/types/CreateTokenResponse.mjs +0 -4
- package/dist/esm/api/resources/apiKeys/types/TokenId.d.mts +0 -12
- package/dist/esm/api/resources/apiKeys/types/TokenId.mjs +0 -6
- package/dist/esm/api/resources/apiKeys/types/TokenMetadata.d.mts +0 -22
- package/dist/esm/api/resources/apiKeys/types/TokenMetadata.mjs +0 -4
- package/dist/esm/api/resources/apiKeys/types/TokenStatus.d.mts +0 -32
- package/dist/esm/api/resources/apiKeys/types/TokenStatus.mjs +0 -4
- package/dist/esm/api/resources/apiKeys/types/index.d.mts +0 -4
- package/dist/esm/api/resources/apiKeys/types/index.mjs +0 -4
- package/dist/esm/serialization/resources/apiKeys/client/create.d.mts +0 -16
- package/dist/esm/serialization/resources/apiKeys/client/create.mjs +0 -35
- package/dist/esm/serialization/resources/apiKeys/client/getTokenMetadata.d.mts +0 -16
- package/dist/esm/serialization/resources/apiKeys/client/getTokenMetadata.mjs +0 -35
- package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.d.mts +0 -21
- package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.mjs +0 -37
- package/dist/esm/serialization/resources/apiKeys/client/index.d.mts +0 -6
- package/dist/esm/serialization/resources/apiKeys/client/index.mjs +0 -6
- package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +0 -15
- package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.mjs +0 -10
- package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +0 -12
- package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.mjs +0 -7
- package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +0 -12
- package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.mjs +0 -7
- package/dist/esm/serialization/resources/apiKeys/client/requests/index.d.mts +0 -3
- package/dist/esm/serialization/resources/apiKeys/client/requests/index.mjs +0 -3
- package/dist/esm/serialization/resources/apiKeys/client/revokeToken.d.mts +0 -16
- package/dist/esm/serialization/resources/apiKeys/client/revokeToken.mjs +0 -35
- package/dist/esm/serialization/resources/apiKeys/client/revokeTokenById.d.mts +0 -16
- package/dist/esm/serialization/resources/apiKeys/client/revokeTokenById.mjs +0 -35
- package/dist/esm/serialization/resources/apiKeys/index.d.mts +0 -2
- package/dist/esm/serialization/resources/apiKeys/index.mjs +0 -2
- package/dist/esm/serialization/resources/apiKeys/types/CreateTokenResponse.d.mts +0 -14
- package/dist/esm/serialization/resources/apiKeys/types/CreateTokenResponse.mjs +0 -9
- package/dist/esm/serialization/resources/apiKeys/types/TokenId.d.mts +0 -10
- package/dist/esm/serialization/resources/apiKeys/types/TokenId.mjs +0 -11
- package/dist/esm/serialization/resources/apiKeys/types/TokenMetadata.d.mts +0 -19
- package/dist/esm/serialization/resources/apiKeys/types/TokenMetadata.mjs +0 -14
- package/dist/esm/serialization/resources/apiKeys/types/TokenStatus.d.mts +0 -19
- package/dist/esm/serialization/resources/apiKeys/types/TokenStatus.mjs +0 -14
- package/dist/esm/serialization/resources/apiKeys/types/index.d.mts +0 -4
- package/dist/esm/serialization/resources/apiKeys/types/index.mjs +0 -4
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
39
|
-
var t = {};
|
|
40
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
41
|
-
t[p] = s[p];
|
|
42
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
43
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
44
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
45
|
-
t[p[i]] = s[p[i]];
|
|
46
|
-
}
|
|
47
|
-
return t;
|
|
48
|
-
};
|
|
49
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
|
-
exports.Error = void 0;
|
|
51
|
-
const FernVenusApi = __importStar(require("../../../../api/index.js"));
|
|
52
|
-
const core = __importStar(require("../../../../core/index.js"));
|
|
53
|
-
exports.Error = core.serialization
|
|
54
|
-
.union("error", {
|
|
55
|
-
UnauthorizedError: core.serialization.object({}),
|
|
56
|
-
TokenNotFoundError: core.serialization.object({}),
|
|
57
|
-
})
|
|
58
|
-
.transform({
|
|
59
|
-
transform: (value) => {
|
|
60
|
-
switch (value.error) {
|
|
61
|
-
case "UnauthorizedError":
|
|
62
|
-
return FernVenusApi.apiKeys.revokeTokenById.Error.unauthorizedError();
|
|
63
|
-
case "TokenNotFoundError":
|
|
64
|
-
return FernVenusApi.apiKeys.revokeTokenById.Error.tokenNotFoundError();
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
untransform: (_a) => {
|
|
68
|
-
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
69
|
-
return value;
|
|
70
|
-
},
|
|
71
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
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("./types/index.js"), exports);
|
|
18
|
-
__exportStar(require("./client/index.js"), exports);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index.js";
|
|
5
|
-
import * as FernVenusApi from "../../../../api/index.js";
|
|
6
|
-
import * as core from "../../../../core/index.js";
|
|
7
|
-
import { TokenId } from "./TokenId.js";
|
|
8
|
-
export declare const CreateTokenResponse: core.serialization.ObjectSchema<serializers.CreateTokenResponse.Raw, FernVenusApi.CreateTokenResponse>;
|
|
9
|
-
export declare namespace CreateTokenResponse {
|
|
10
|
-
interface Raw {
|
|
11
|
-
token: string;
|
|
12
|
-
tokenId: TokenId.Raw;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.CreateTokenResponse = void 0;
|
|
40
|
-
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
-
const TokenId_js_1 = require("./TokenId.js");
|
|
42
|
-
exports.CreateTokenResponse = core.serialization.object({
|
|
43
|
-
token: core.serialization.string(),
|
|
44
|
-
tokenId: TokenId_js_1.TokenId,
|
|
45
|
-
});
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index.js";
|
|
5
|
-
import * as FernVenusApi from "../../../../api/index.js";
|
|
6
|
-
import * as core from "../../../../core/index.js";
|
|
7
|
-
export declare const TokenId: core.serialization.Schema<serializers.TokenId.Raw, FernVenusApi.TokenId>;
|
|
8
|
-
export declare namespace TokenId {
|
|
9
|
-
type Raw = string;
|
|
10
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.TokenId = void 0;
|
|
40
|
-
const FernVenusApi = __importStar(require("../../../../api/index.js"));
|
|
41
|
-
const core = __importStar(require("../../../../core/index.js"));
|
|
42
|
-
exports.TokenId = core.serialization
|
|
43
|
-
.string()
|
|
44
|
-
.transform({
|
|
45
|
-
transform: FernVenusApi.TokenId,
|
|
46
|
-
untransform: (value) => value,
|
|
47
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index.js";
|
|
5
|
-
import * as FernVenusApi from "../../../../api/index.js";
|
|
6
|
-
import * as core from "../../../../core/index.js";
|
|
7
|
-
import { TokenId } from "./TokenId.js";
|
|
8
|
-
import { OrganizationId } from "../../commons/types/OrganizationId.js";
|
|
9
|
-
import { TokenStatus } from "./TokenStatus.js";
|
|
10
|
-
export declare const TokenMetadata: core.serialization.ObjectSchema<serializers.TokenMetadata.Raw, FernVenusApi.TokenMetadata>;
|
|
11
|
-
export declare namespace TokenMetadata {
|
|
12
|
-
interface Raw {
|
|
13
|
-
tokenId: TokenId.Raw;
|
|
14
|
-
organizationId: OrganizationId.Raw;
|
|
15
|
-
description?: string | null;
|
|
16
|
-
createdTime: string;
|
|
17
|
-
status: TokenStatus.Raw;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.TokenMetadata = void 0;
|
|
40
|
-
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
-
const TokenId_js_1 = require("./TokenId.js");
|
|
42
|
-
const OrganizationId_js_1 = require("../../commons/types/OrganizationId.js");
|
|
43
|
-
const TokenStatus_js_1 = require("./TokenStatus.js");
|
|
44
|
-
exports.TokenMetadata = core.serialization.object({
|
|
45
|
-
tokenId: TokenId_js_1.TokenId,
|
|
46
|
-
organizationId: OrganizationId_js_1.OrganizationId,
|
|
47
|
-
description: core.serialization.string().optional(),
|
|
48
|
-
createdTime: core.serialization.date(),
|
|
49
|
-
status: TokenStatus_js_1.TokenStatus,
|
|
50
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../../index.js";
|
|
5
|
-
import * as FernVenusApi from "../../../../api/index.js";
|
|
6
|
-
import * as core from "../../../../core/index.js";
|
|
7
|
-
export declare const TokenStatus: core.serialization.Schema<serializers.TokenStatus.Raw, FernVenusApi.TokenStatus>;
|
|
8
|
-
export declare namespace TokenStatus {
|
|
9
|
-
type Raw = TokenStatus.Active | TokenStatus.Expired | TokenStatus.Revoked;
|
|
10
|
-
interface Active {
|
|
11
|
-
type: "active";
|
|
12
|
-
}
|
|
13
|
-
interface Expired {
|
|
14
|
-
type: "expired";
|
|
15
|
-
}
|
|
16
|
-
interface Revoked {
|
|
17
|
-
type: "revoked";
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.TokenStatus = void 0;
|
|
40
|
-
const core = __importStar(require("../../../../core/index.js"));
|
|
41
|
-
exports.TokenStatus = core.serialization
|
|
42
|
-
.union("type", {
|
|
43
|
-
active: core.serialization.object({}),
|
|
44
|
-
expired: core.serialization.object({}),
|
|
45
|
-
revoked: core.serialization.object({}),
|
|
46
|
-
})
|
|
47
|
-
.transform({
|
|
48
|
-
transform: (value) => value,
|
|
49
|
-
untransform: (value) => value,
|
|
50
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
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("./TokenId.js"), exports);
|
|
18
|
-
__exportStar(require("./CreateTokenResponse.js"), exports);
|
|
19
|
-
__exportStar(require("./TokenMetadata.js"), exports);
|
|
20
|
-
__exportStar(require("./TokenStatus.js"), exports);
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as environments from "../../../../environments.mjs";
|
|
5
|
-
import * as core from "../../../../core/index.mjs";
|
|
6
|
-
import * as FernVenusApi from "../../../index.mjs";
|
|
7
|
-
export declare namespace ApiKeys {
|
|
8
|
-
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.FernVenusApiEnvironment | string>;
|
|
10
|
-
/** Specify a custom URL to connect the client to. */
|
|
11
|
-
baseUrl?: core.Supplier<string>;
|
|
12
|
-
token?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
-
/** Additional headers to include in requests. */
|
|
14
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
|
-
}
|
|
16
|
-
interface RequestOptions {
|
|
17
|
-
/** The maximum time to wait for a response in seconds. */
|
|
18
|
-
timeoutInSeconds?: number;
|
|
19
|
-
/** The number of times to retry the request. Defaults to 2. */
|
|
20
|
-
maxRetries?: number;
|
|
21
|
-
/** A hook to abort the request. */
|
|
22
|
-
abortSignal?: AbortSignal;
|
|
23
|
-
/** Additional query string parameters to include in the request. */
|
|
24
|
-
queryParams?: Record<string, unknown>;
|
|
25
|
-
/** Additional headers to include in the request. */
|
|
26
|
-
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export declare class ApiKeys {
|
|
30
|
-
protected readonly _options: ApiKeys.Options;
|
|
31
|
-
constructor(_options?: ApiKeys.Options);
|
|
32
|
-
/**
|
|
33
|
-
* @param {FernVenusApi.CreateApiKeyRequest} request
|
|
34
|
-
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
35
|
-
*
|
|
36
|
-
* @example
|
|
37
|
-
* await client.apiKeys.create({
|
|
38
|
-
* organizationId: FernVenusApi.OrganizationId("some-org-id")
|
|
39
|
-
* })
|
|
40
|
-
*
|
|
41
|
-
* @example
|
|
42
|
-
* await client.apiKeys.create({
|
|
43
|
-
* organizationId: FernVenusApi.OrganizationId("missing-org-id")
|
|
44
|
-
* })
|
|
45
|
-
*/
|
|
46
|
-
create(request: FernVenusApi.CreateApiKeyRequest, requestOptions?: ApiKeys.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.CreateTokenResponse, FernVenusApi.apiKeys.create.Error>>;
|
|
47
|
-
private __create;
|
|
48
|
-
/**
|
|
49
|
-
* @param {FernVenusApi.GetTokenMetadataRequest} request
|
|
50
|
-
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* await client.apiKeys.getTokenMetadata({
|
|
54
|
-
* token: "token-value"
|
|
55
|
-
* })
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* await client.apiKeys.getTokenMetadata({
|
|
59
|
-
* token: "missing-token-value"
|
|
60
|
-
* })
|
|
61
|
-
*/
|
|
62
|
-
getTokenMetadata(request: FernVenusApi.GetTokenMetadataRequest, requestOptions?: ApiKeys.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.TokenMetadata, FernVenusApi.apiKeys.getTokenMetadata.Error>>;
|
|
63
|
-
private __getTokenMetadata;
|
|
64
|
-
/**
|
|
65
|
-
* @param {FernVenusApi.OrganizationId} organizationId
|
|
66
|
-
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* await client.apiKeys.getTokensForOrganization(FernVenusApi.OrganizationId("some-org-id"))
|
|
70
|
-
*
|
|
71
|
-
* @example
|
|
72
|
-
* await client.apiKeys.getTokensForOrganization(FernVenusApi.OrganizationId("missing-org-id"))
|
|
73
|
-
*/
|
|
74
|
-
getTokensForOrganization(organizationId: FernVenusApi.OrganizationId, requestOptions?: ApiKeys.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.TokenMetadata[], FernVenusApi.apiKeys.getTokensForOrganization.Error>>;
|
|
75
|
-
private __getTokensForOrganization;
|
|
76
|
-
/**
|
|
77
|
-
* @param {FernVenusApi.TokenId} tokenId
|
|
78
|
-
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* await client.apiKeys.revokeTokenById(FernVenusApi.TokenId("some-token-id"))
|
|
82
|
-
*
|
|
83
|
-
* @example
|
|
84
|
-
* await client.apiKeys.revokeTokenById(FernVenusApi.TokenId("missing-token-id"))
|
|
85
|
-
*/
|
|
86
|
-
revokeTokenById(tokenId: FernVenusApi.TokenId, requestOptions?: ApiKeys.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.apiKeys.revokeTokenById.Error>>;
|
|
87
|
-
private __revokeTokenById;
|
|
88
|
-
/**
|
|
89
|
-
* @param {FernVenusApi.RevokeApiKeyRequest} request
|
|
90
|
-
* @param {ApiKeys.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
|
-
*
|
|
92
|
-
* @example
|
|
93
|
-
* await client.apiKeys.revokeToken({
|
|
94
|
-
* token: "some-token-value"
|
|
95
|
-
* })
|
|
96
|
-
*
|
|
97
|
-
* @example
|
|
98
|
-
* await client.apiKeys.revokeToken({
|
|
99
|
-
* token: "missing-token-value"
|
|
100
|
-
* })
|
|
101
|
-
*/
|
|
102
|
-
revokeToken(request: FernVenusApi.RevokeApiKeyRequest, requestOptions?: ApiKeys.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, FernVenusApi.apiKeys.revokeToken.Error>>;
|
|
103
|
-
private __revokeToken;
|
|
104
|
-
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
105
|
-
}
|