@fern-api/venus-api-sdk 0.19.9 → 0.19.10

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