@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.
Files changed (149) hide show
  1. package/dist/cjs/Client.d.ts +0 -3
  2. package/dist/cjs/Client.js +7 -12
  3. package/dist/cjs/api/resources/index.d.ts +0 -3
  4. package/dist/cjs/api/resources/index.js +1 -4
  5. package/dist/cjs/serialization/resources/index.d.ts +0 -3
  6. package/dist/cjs/serialization/resources/index.js +1 -4
  7. package/dist/cjs/version.d.ts +1 -1
  8. package/dist/cjs/version.js +1 -1
  9. package/dist/esm/Client.d.mts +0 -3
  10. package/dist/esm/Client.mjs +1 -6
  11. package/dist/esm/api/resources/index.d.mts +0 -3
  12. package/dist/esm/api/resources/index.mjs +0 -3
  13. package/dist/esm/serialization/resources/index.d.mts +0 -3
  14. package/dist/esm/serialization/resources/index.mjs +0 -3
  15. package/dist/esm/version.d.mts +1 -1
  16. package/dist/esm/version.mjs +1 -1
  17. package/package.json +1 -1
  18. package/dist/cjs/api/resources/apiKeys/client/Client.d.ts +0 -105
  19. package/dist/cjs/api/resources/apiKeys/client/Client.js +0 -451
  20. package/dist/cjs/api/resources/apiKeys/client/create.d.ts +0 -32
  21. package/dist/cjs/api/resources/apiKeys/client/create.js +0 -77
  22. package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.d.ts +0 -32
  23. package/dist/cjs/api/resources/apiKeys/client/getTokenMetadata.js +0 -77
  24. package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.d.ts +0 -32
  25. package/dist/cjs/api/resources/apiKeys/client/getTokensForOrganization.js +0 -77
  26. package/dist/cjs/api/resources/apiKeys/client/index.d.ts +0 -6
  27. package/dist/cjs/api/resources/apiKeys/client/index.js +0 -45
  28. package/dist/cjs/api/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +0 -21
  29. package/dist/cjs/api/resources/apiKeys/client/requests/CreateApiKeyRequest.js +0 -5
  30. package/dist/cjs/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.ts +0 -17
  31. package/dist/cjs/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.js +0 -5
  32. package/dist/cjs/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.ts +0 -17
  33. package/dist/cjs/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.js +0 -5
  34. package/dist/cjs/api/resources/apiKeys/client/requests/index.d.ts +0 -3
  35. package/dist/cjs/api/resources/apiKeys/client/requests/index.js +0 -2
  36. package/dist/cjs/api/resources/apiKeys/client/revokeToken.d.ts +0 -32
  37. package/dist/cjs/api/resources/apiKeys/client/revokeToken.js +0 -77
  38. package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.d.ts +0 -32
  39. package/dist/cjs/api/resources/apiKeys/client/revokeTokenById.js +0 -77
  40. package/dist/cjs/api/resources/apiKeys/index.d.ts +0 -2
  41. package/dist/cjs/api/resources/apiKeys/index.js +0 -18
  42. package/dist/cjs/api/resources/apiKeys/types/CreateTokenResponse.d.ts +0 -15
  43. package/dist/cjs/api/resources/apiKeys/types/CreateTokenResponse.js +0 -5
  44. package/dist/cjs/api/resources/apiKeys/types/TokenId.d.ts +0 -12
  45. package/dist/cjs/api/resources/apiKeys/types/TokenId.js +0 -9
  46. package/dist/cjs/api/resources/apiKeys/types/TokenMetadata.d.ts +0 -22
  47. package/dist/cjs/api/resources/apiKeys/types/TokenMetadata.js +0 -5
  48. package/dist/cjs/api/resources/apiKeys/types/TokenStatus.d.ts +0 -32
  49. package/dist/cjs/api/resources/apiKeys/types/TokenStatus.js +0 -5
  50. package/dist/cjs/api/resources/apiKeys/types/index.d.ts +0 -4
  51. package/dist/cjs/api/resources/apiKeys/types/index.js +0 -20
  52. package/dist/cjs/serialization/resources/apiKeys/client/create.d.ts +0 -16
  53. package/dist/cjs/serialization/resources/apiKeys/client/create.js +0 -71
  54. package/dist/cjs/serialization/resources/apiKeys/client/getTokenMetadata.d.ts +0 -16
  55. package/dist/cjs/serialization/resources/apiKeys/client/getTokenMetadata.js +0 -71
  56. package/dist/cjs/serialization/resources/apiKeys/client/getTokensForOrganization.d.ts +0 -21
  57. package/dist/cjs/serialization/resources/apiKeys/client/getTokensForOrganization.js +0 -73
  58. package/dist/cjs/serialization/resources/apiKeys/client/index.d.ts +0 -6
  59. package/dist/cjs/serialization/resources/apiKeys/client/index.js +0 -45
  60. package/dist/cjs/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.ts +0 -15
  61. package/dist/cjs/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.js +0 -46
  62. package/dist/cjs/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.ts +0 -12
  63. package/dist/cjs/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.js +0 -43
  64. package/dist/cjs/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.ts +0 -12
  65. package/dist/cjs/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.js +0 -43
  66. package/dist/cjs/serialization/resources/apiKeys/client/requests/index.d.ts +0 -3
  67. package/dist/cjs/serialization/resources/apiKeys/client/requests/index.js +0 -9
  68. package/dist/cjs/serialization/resources/apiKeys/client/revokeToken.d.ts +0 -16
  69. package/dist/cjs/serialization/resources/apiKeys/client/revokeToken.js +0 -71
  70. package/dist/cjs/serialization/resources/apiKeys/client/revokeTokenById.d.ts +0 -16
  71. package/dist/cjs/serialization/resources/apiKeys/client/revokeTokenById.js +0 -71
  72. package/dist/cjs/serialization/resources/apiKeys/index.d.ts +0 -2
  73. package/dist/cjs/serialization/resources/apiKeys/index.js +0 -18
  74. package/dist/cjs/serialization/resources/apiKeys/types/CreateTokenResponse.d.ts +0 -14
  75. package/dist/cjs/serialization/resources/apiKeys/types/CreateTokenResponse.js +0 -45
  76. package/dist/cjs/serialization/resources/apiKeys/types/TokenId.d.ts +0 -10
  77. package/dist/cjs/serialization/resources/apiKeys/types/TokenId.js +0 -47
  78. package/dist/cjs/serialization/resources/apiKeys/types/TokenMetadata.d.ts +0 -19
  79. package/dist/cjs/serialization/resources/apiKeys/types/TokenMetadata.js +0 -50
  80. package/dist/cjs/serialization/resources/apiKeys/types/TokenStatus.d.ts +0 -19
  81. package/dist/cjs/serialization/resources/apiKeys/types/TokenStatus.js +0 -50
  82. package/dist/cjs/serialization/resources/apiKeys/types/index.d.ts +0 -4
  83. package/dist/cjs/serialization/resources/apiKeys/types/index.js +0 -20
  84. package/dist/esm/api/resources/apiKeys/client/Client.d.mts +0 -105
  85. package/dist/esm/api/resources/apiKeys/client/Client.mjs +0 -414
  86. package/dist/esm/api/resources/apiKeys/client/create.d.mts +0 -32
  87. package/dist/esm/api/resources/apiKeys/client/create.mjs +0 -41
  88. package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.d.mts +0 -32
  89. package/dist/esm/api/resources/apiKeys/client/getTokenMetadata.mjs +0 -41
  90. package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.d.mts +0 -32
  91. package/dist/esm/api/resources/apiKeys/client/getTokensForOrganization.mjs +0 -41
  92. package/dist/esm/api/resources/apiKeys/client/index.d.mts +0 -6
  93. package/dist/esm/api/resources/apiKeys/client/index.mjs +0 -6
  94. package/dist/esm/api/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +0 -21
  95. package/dist/esm/api/resources/apiKeys/client/requests/CreateApiKeyRequest.mjs +0 -4
  96. package/dist/esm/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +0 -17
  97. package/dist/esm/api/resources/apiKeys/client/requests/GetTokenMetadataRequest.mjs +0 -4
  98. package/dist/esm/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +0 -17
  99. package/dist/esm/api/resources/apiKeys/client/requests/RevokeApiKeyRequest.mjs +0 -4
  100. package/dist/esm/api/resources/apiKeys/client/requests/index.d.mts +0 -3
  101. package/dist/esm/api/resources/apiKeys/client/requests/index.mjs +0 -1
  102. package/dist/esm/api/resources/apiKeys/client/revokeToken.d.mts +0 -32
  103. package/dist/esm/api/resources/apiKeys/client/revokeToken.mjs +0 -41
  104. package/dist/esm/api/resources/apiKeys/client/revokeTokenById.d.mts +0 -32
  105. package/dist/esm/api/resources/apiKeys/client/revokeTokenById.mjs +0 -41
  106. package/dist/esm/api/resources/apiKeys/index.d.mts +0 -2
  107. package/dist/esm/api/resources/apiKeys/index.mjs +0 -2
  108. package/dist/esm/api/resources/apiKeys/types/CreateTokenResponse.d.mts +0 -15
  109. package/dist/esm/api/resources/apiKeys/types/CreateTokenResponse.mjs +0 -4
  110. package/dist/esm/api/resources/apiKeys/types/TokenId.d.mts +0 -12
  111. package/dist/esm/api/resources/apiKeys/types/TokenId.mjs +0 -6
  112. package/dist/esm/api/resources/apiKeys/types/TokenMetadata.d.mts +0 -22
  113. package/dist/esm/api/resources/apiKeys/types/TokenMetadata.mjs +0 -4
  114. package/dist/esm/api/resources/apiKeys/types/TokenStatus.d.mts +0 -32
  115. package/dist/esm/api/resources/apiKeys/types/TokenStatus.mjs +0 -4
  116. package/dist/esm/api/resources/apiKeys/types/index.d.mts +0 -4
  117. package/dist/esm/api/resources/apiKeys/types/index.mjs +0 -4
  118. package/dist/esm/serialization/resources/apiKeys/client/create.d.mts +0 -16
  119. package/dist/esm/serialization/resources/apiKeys/client/create.mjs +0 -35
  120. package/dist/esm/serialization/resources/apiKeys/client/getTokenMetadata.d.mts +0 -16
  121. package/dist/esm/serialization/resources/apiKeys/client/getTokenMetadata.mjs +0 -35
  122. package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.d.mts +0 -21
  123. package/dist/esm/serialization/resources/apiKeys/client/getTokensForOrganization.mjs +0 -37
  124. package/dist/esm/serialization/resources/apiKeys/client/index.d.mts +0 -6
  125. package/dist/esm/serialization/resources/apiKeys/client/index.mjs +0 -6
  126. package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.d.mts +0 -15
  127. package/dist/esm/serialization/resources/apiKeys/client/requests/CreateApiKeyRequest.mjs +0 -10
  128. package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.d.mts +0 -12
  129. package/dist/esm/serialization/resources/apiKeys/client/requests/GetTokenMetadataRequest.mjs +0 -7
  130. package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.d.mts +0 -12
  131. package/dist/esm/serialization/resources/apiKeys/client/requests/RevokeApiKeyRequest.mjs +0 -7
  132. package/dist/esm/serialization/resources/apiKeys/client/requests/index.d.mts +0 -3
  133. package/dist/esm/serialization/resources/apiKeys/client/requests/index.mjs +0 -3
  134. package/dist/esm/serialization/resources/apiKeys/client/revokeToken.d.mts +0 -16
  135. package/dist/esm/serialization/resources/apiKeys/client/revokeToken.mjs +0 -35
  136. package/dist/esm/serialization/resources/apiKeys/client/revokeTokenById.d.mts +0 -16
  137. package/dist/esm/serialization/resources/apiKeys/client/revokeTokenById.mjs +0 -35
  138. package/dist/esm/serialization/resources/apiKeys/index.d.mts +0 -2
  139. package/dist/esm/serialization/resources/apiKeys/index.mjs +0 -2
  140. package/dist/esm/serialization/resources/apiKeys/types/CreateTokenResponse.d.mts +0 -14
  141. package/dist/esm/serialization/resources/apiKeys/types/CreateTokenResponse.mjs +0 -9
  142. package/dist/esm/serialization/resources/apiKeys/types/TokenId.d.mts +0 -10
  143. package/dist/esm/serialization/resources/apiKeys/types/TokenId.mjs +0 -11
  144. package/dist/esm/serialization/resources/apiKeys/types/TokenMetadata.d.mts +0 -19
  145. package/dist/esm/serialization/resources/apiKeys/types/TokenMetadata.mjs +0 -14
  146. package/dist/esm/serialization/resources/apiKeys/types/TokenStatus.d.mts +0 -19
  147. package/dist/esm/serialization/resources/apiKeys/types/TokenStatus.mjs +0 -14
  148. package/dist/esm/serialization/resources/apiKeys/types/index.d.mts +0 -4
  149. package/dist/esm/serialization/resources/apiKeys/types/index.mjs +0 -4
@@ -1,32 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as FernVenusApi from "../../../index.js";
5
- import * as core from "../../../../core/index.js";
6
- export type Error = FernVenusApi.apiKeys.getTokensForOrganization.Error.UnauthorizedError | FernVenusApi.apiKeys.getTokensForOrganization.Error.OrganizationNotFoundError | FernVenusApi.apiKeys.getTokensForOrganization.Error._Unknown;
7
- export declare namespace Error {
8
- interface UnauthorizedError extends _Utils {
9
- error: "UnauthorizedError";
10
- }
11
- interface OrganizationNotFoundError extends _Utils {
12
- error: "OrganizationNotFoundError";
13
- }
14
- interface _Unknown extends _Utils {
15
- error: void;
16
- content: core.Fetcher.Error;
17
- }
18
- interface _Utils {
19
- _visit: <_Result>(visitor: FernVenusApi.apiKeys.getTokensForOrganization.Error._Visitor<_Result>) => _Result;
20
- }
21
- interface _Visitor<_Result> {
22
- unauthorizedError: () => _Result;
23
- organizationNotFoundError: () => _Result;
24
- _other: (value: core.Fetcher.Error) => _Result;
25
- }
26
- }
27
- export declare const Error: {
28
- readonly unauthorizedError: () => FernVenusApi.apiKeys.getTokensForOrganization.Error.UnauthorizedError;
29
- readonly organizationNotFoundError: () => FernVenusApi.apiKeys.getTokensForOrganization.Error.OrganizationNotFoundError;
30
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.apiKeys.getTokensForOrganization.Error._Unknown;
31
- readonly _visit: <_Result>(value: FernVenusApi.apiKeys.getTokensForOrganization.Error, visitor: FernVenusApi.apiKeys.getTokensForOrganization.Error._Visitor<_Result>) => _Result;
32
- };
@@ -1,77 +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.Error = void 0;
40
- const FernVenusApi = __importStar(require("../../../index.js"));
41
- exports.Error = {
42
- unauthorizedError: () => {
43
- return {
44
- error: "UnauthorizedError",
45
- _visit: function (visitor) {
46
- return FernVenusApi.apiKeys.getTokensForOrganization.Error._visit(this, visitor);
47
- },
48
- };
49
- },
50
- organizationNotFoundError: () => {
51
- return {
52
- error: "OrganizationNotFoundError",
53
- _visit: function (visitor) {
54
- return FernVenusApi.apiKeys.getTokensForOrganization.Error._visit(this, visitor);
55
- },
56
- };
57
- },
58
- _unknown: (fetcherError) => {
59
- return {
60
- error: undefined,
61
- content: fetcherError,
62
- _visit: function (visitor) {
63
- return FernVenusApi.apiKeys.getTokensForOrganization.Error._visit(this, visitor);
64
- },
65
- };
66
- },
67
- _visit: (value, visitor) => {
68
- switch (value.error) {
69
- case "UnauthorizedError":
70
- return visitor.unauthorizedError();
71
- case "OrganizationNotFoundError":
72
- return visitor.organizationNotFoundError();
73
- default:
74
- return visitor._other(value);
75
- }
76
- },
77
- };
@@ -1,6 +0,0 @@
1
- export * as create from "./create.js";
2
- export * as getTokenMetadata from "./getTokenMetadata.js";
3
- export * as getTokensForOrganization from "./getTokensForOrganization.js";
4
- export * as revokeTokenById from "./revokeTokenById.js";
5
- export * as revokeToken from "./revokeToken.js";
6
- export * from "./requests/index.js";
@@ -1,45 +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 __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.revokeToken = exports.revokeTokenById = exports.getTokensForOrganization = exports.getTokenMetadata = exports.create = void 0;
40
- exports.create = __importStar(require("./create.js"));
41
- exports.getTokenMetadata = __importStar(require("./getTokenMetadata.js"));
42
- exports.getTokensForOrganization = __importStar(require("./getTokensForOrganization.js"));
43
- exports.revokeTokenById = __importStar(require("./revokeTokenById.js"));
44
- exports.revokeToken = __importStar(require("./revokeToken.js"));
45
- __exportStar(require("./requests/index.js"), exports);
@@ -1,21 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as FernVenusApi from "../../../../index.js";
5
- /**
6
- * @example
7
- * {
8
- * organizationId: FernVenusApi.OrganizationId("some-org-id")
9
- * }
10
- *
11
- * @example
12
- * {
13
- * organizationId: FernVenusApi.OrganizationId("missing-org-id")
14
- * }
15
- */
16
- export interface CreateApiKeyRequest {
17
- organizationId: FernVenusApi.OrganizationId;
18
- /** If specified, the token will be <prefix>_<token> */
19
- prefix?: string;
20
- description?: string;
21
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * token: "token-value"
8
- * }
9
- *
10
- * @example
11
- * {
12
- * token: "missing-token-value"
13
- * }
14
- */
15
- export interface GetTokenMetadataRequest {
16
- token: string;
17
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- /**
5
- * @example
6
- * {
7
- * token: "some-token-value"
8
- * }
9
- *
10
- * @example
11
- * {
12
- * token: "missing-token-value"
13
- * }
14
- */
15
- export interface RevokeApiKeyRequest {
16
- token: string;
17
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export { type CreateApiKeyRequest } from "./CreateApiKeyRequest.js";
2
- export { type GetTokenMetadataRequest } from "./GetTokenMetadataRequest.js";
3
- export { type RevokeApiKeyRequest } from "./RevokeApiKeyRequest.js";
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,32 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as FernVenusApi from "../../../index.js";
5
- import * as core from "../../../../core/index.js";
6
- export type Error = FernVenusApi.apiKeys.revokeToken.Error.UnauthorizedError | FernVenusApi.apiKeys.revokeToken.Error.TokenNotFoundError | FernVenusApi.apiKeys.revokeToken.Error._Unknown;
7
- export declare namespace Error {
8
- interface UnauthorizedError extends _Utils {
9
- error: "UnauthorizedError";
10
- }
11
- interface TokenNotFoundError extends _Utils {
12
- error: "TokenNotFoundError";
13
- }
14
- interface _Unknown extends _Utils {
15
- error: void;
16
- content: core.Fetcher.Error;
17
- }
18
- interface _Utils {
19
- _visit: <_Result>(visitor: FernVenusApi.apiKeys.revokeToken.Error._Visitor<_Result>) => _Result;
20
- }
21
- interface _Visitor<_Result> {
22
- unauthorizedError: () => _Result;
23
- tokenNotFoundError: () => _Result;
24
- _other: (value: core.Fetcher.Error) => _Result;
25
- }
26
- }
27
- export declare const Error: {
28
- readonly unauthorizedError: () => FernVenusApi.apiKeys.revokeToken.Error.UnauthorizedError;
29
- readonly tokenNotFoundError: () => FernVenusApi.apiKeys.revokeToken.Error.TokenNotFoundError;
30
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.apiKeys.revokeToken.Error._Unknown;
31
- readonly _visit: <_Result>(value: FernVenusApi.apiKeys.revokeToken.Error, visitor: FernVenusApi.apiKeys.revokeToken.Error._Visitor<_Result>) => _Result;
32
- };
@@ -1,77 +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.Error = void 0;
40
- const FernVenusApi = __importStar(require("../../../index.js"));
41
- exports.Error = {
42
- unauthorizedError: () => {
43
- return {
44
- error: "UnauthorizedError",
45
- _visit: function (visitor) {
46
- return FernVenusApi.apiKeys.revokeToken.Error._visit(this, visitor);
47
- },
48
- };
49
- },
50
- tokenNotFoundError: () => {
51
- return {
52
- error: "TokenNotFoundError",
53
- _visit: function (visitor) {
54
- return FernVenusApi.apiKeys.revokeToken.Error._visit(this, visitor);
55
- },
56
- };
57
- },
58
- _unknown: (fetcherError) => {
59
- return {
60
- error: undefined,
61
- content: fetcherError,
62
- _visit: function (visitor) {
63
- return FernVenusApi.apiKeys.revokeToken.Error._visit(this, visitor);
64
- },
65
- };
66
- },
67
- _visit: (value, visitor) => {
68
- switch (value.error) {
69
- case "UnauthorizedError":
70
- return visitor.unauthorizedError();
71
- case "TokenNotFoundError":
72
- return visitor.tokenNotFoundError();
73
- default:
74
- return visitor._other(value);
75
- }
76
- },
77
- };
@@ -1,32 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as FernVenusApi from "../../../index.js";
5
- import * as core from "../../../../core/index.js";
6
- export type Error = FernVenusApi.apiKeys.revokeTokenById.Error.UnauthorizedError | FernVenusApi.apiKeys.revokeTokenById.Error.TokenNotFoundError | FernVenusApi.apiKeys.revokeTokenById.Error._Unknown;
7
- export declare namespace Error {
8
- interface UnauthorizedError extends _Utils {
9
- error: "UnauthorizedError";
10
- }
11
- interface TokenNotFoundError extends _Utils {
12
- error: "TokenNotFoundError";
13
- }
14
- interface _Unknown extends _Utils {
15
- error: void;
16
- content: core.Fetcher.Error;
17
- }
18
- interface _Utils {
19
- _visit: <_Result>(visitor: FernVenusApi.apiKeys.revokeTokenById.Error._Visitor<_Result>) => _Result;
20
- }
21
- interface _Visitor<_Result> {
22
- unauthorizedError: () => _Result;
23
- tokenNotFoundError: () => _Result;
24
- _other: (value: core.Fetcher.Error) => _Result;
25
- }
26
- }
27
- export declare const Error: {
28
- readonly unauthorizedError: () => FernVenusApi.apiKeys.revokeTokenById.Error.UnauthorizedError;
29
- readonly tokenNotFoundError: () => FernVenusApi.apiKeys.revokeTokenById.Error.TokenNotFoundError;
30
- readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.apiKeys.revokeTokenById.Error._Unknown;
31
- readonly _visit: <_Result>(value: FernVenusApi.apiKeys.revokeTokenById.Error, visitor: FernVenusApi.apiKeys.revokeTokenById.Error._Visitor<_Result>) => _Result;
32
- };
@@ -1,77 +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.Error = void 0;
40
- const FernVenusApi = __importStar(require("../../../index.js"));
41
- exports.Error = {
42
- unauthorizedError: () => {
43
- return {
44
- error: "UnauthorizedError",
45
- _visit: function (visitor) {
46
- return FernVenusApi.apiKeys.revokeTokenById.Error._visit(this, visitor);
47
- },
48
- };
49
- },
50
- tokenNotFoundError: () => {
51
- return {
52
- error: "TokenNotFoundError",
53
- _visit: function (visitor) {
54
- return FernVenusApi.apiKeys.revokeTokenById.Error._visit(this, visitor);
55
- },
56
- };
57
- },
58
- _unknown: (fetcherError) => {
59
- return {
60
- error: undefined,
61
- content: fetcherError,
62
- _visit: function (visitor) {
63
- return FernVenusApi.apiKeys.revokeTokenById.Error._visit(this, visitor);
64
- },
65
- };
66
- },
67
- _visit: (value, visitor) => {
68
- switch (value.error) {
69
- case "UnauthorizedError":
70
- return visitor.unauthorizedError();
71
- case "TokenNotFoundError":
72
- return visitor.tokenNotFoundError();
73
- default:
74
- return visitor._other(value);
75
- }
76
- },
77
- };
@@ -1,2 +0,0 @@
1
- export * from "./types/index.js";
2
- export * from "./client/index.js";
@@ -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,15 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as FernVenusApi from "../../../index.js";
5
- /**
6
- * @example
7
- * {
8
- * token: "some-token-value",
9
- * tokenId: FernVenusApi.TokenId("some-token-id")
10
- * }
11
- */
12
- export interface CreateTokenResponse {
13
- token: string;
14
- tokenId: FernVenusApi.TokenId;
15
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as FernVenusApi from "../../../index.js";
5
- /**
6
- * @example
7
- * FernVenusApi.TokenId("some-token-id")
8
- */
9
- export type TokenId = string & {
10
- TokenId: void;
11
- };
12
- export declare function TokenId(value: string): FernVenusApi.TokenId;
@@ -1,9 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.TokenId = TokenId;
7
- function TokenId(value) {
8
- return value;
9
- }
@@ -1,22 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as FernVenusApi from "../../../index.js";
5
- /**
6
- * @example
7
- * {
8
- * tokenId: FernVenusApi.TokenId("some-token-id"),
9
- * organizationId: FernVenusApi.OrganizationId("some-org-id"),
10
- * createdTime: new Date("2022-12-23T10:43:35.000Z"),
11
- * status: {
12
- * type: "active"
13
- * }
14
- * }
15
- */
16
- export interface TokenMetadata {
17
- tokenId: FernVenusApi.TokenId;
18
- organizationId: FernVenusApi.OrganizationId;
19
- description?: string;
20
- createdTime: Date;
21
- status: FernVenusApi.TokenStatus;
22
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,32 +0,0 @@
1
- /**
2
- * This file was auto-generated by Fern from our API Definition.
3
- */
4
- import * as FernVenusApi from "../../../index.js";
5
- /**
6
- * @example
7
- * {
8
- * type: "active"
9
- * }
10
- *
11
- * @example
12
- * {
13
- * type: "expired"
14
- * }
15
- *
16
- * @example
17
- * {
18
- * type: "revoked"
19
- * }
20
- */
21
- export type TokenStatus = FernVenusApi.TokenStatus.Active | FernVenusApi.TokenStatus.Expired | FernVenusApi.TokenStatus.Revoked;
22
- export declare namespace TokenStatus {
23
- interface Active {
24
- type: "active";
25
- }
26
- interface Expired {
27
- type: "expired";
28
- }
29
- interface Revoked {
30
- type: "revoked";
31
- }
32
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /**
3
- * This file was auto-generated by Fern from our API Definition.
4
- */
5
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +0,0 @@
1
- export * from "./TokenId.js";
2
- export * from "./CreateTokenResponse.js";
3
- export * from "./TokenMetadata.js";
4
- export * from "./TokenStatus.js";
@@ -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,16 +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 Error: core.serialization.Schema<serializers.apiKeys.create.Error.Raw, FernVenusApi.apiKeys.create.Error>;
8
- export declare namespace Error {
9
- type Raw = Error.UnauthorizedError | Error.OrganizationNotFoundError;
10
- interface UnauthorizedError {
11
- error: "UnauthorizedError";
12
- }
13
- interface OrganizationNotFoundError {
14
- error: "OrganizationNotFoundError";
15
- }
16
- }