@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,18 @@
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);
@@ -0,0 +1,15 @@
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
+ }
@@ -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,12 @@
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;
@@ -0,0 +1,9 @@
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
+ }
@@ -0,0 +1,22 @@
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
+ }
@@ -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,32 @@
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
+ }
@@ -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,4 @@
1
+ export * from "./TokenId.js";
2
+ export * from "./CreateTokenResponse.js";
3
+ export * from "./TokenMetadata.js";
4
+ export * from "./TokenStatus.js";
@@ -0,0 +1,20 @@
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,3 +1,5 @@
1
+ export * as apiKeys from "./apiKeys/index.js";
2
+ export * from "./apiKeys/types/index.js";
1
3
  export * as commons from "./commons/index.js";
2
4
  export * from "./commons/types/index.js";
3
5
  export * as organization from "./organization/index.js";
@@ -6,6 +8,7 @@ export * as registry from "./registry/index.js";
6
8
  export * from "./registry/types/index.js";
7
9
  export * as user from "./user/index.js";
8
10
  export * from "./user/types/index.js";
11
+ export * from "./apiKeys/client/requests/index.js";
9
12
  export * from "./organization/client/requests/index.js";
10
13
  export * from "./registry/client/requests/index.js";
11
14
  export * from "./user/client/requests/index.js";
@@ -36,7 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
36
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.user = exports.registry = exports.organization = exports.commons = void 0;
39
+ exports.user = exports.registry = exports.organization = exports.commons = exports.apiKeys = void 0;
40
+ exports.apiKeys = __importStar(require("./apiKeys/index.js"));
41
+ __exportStar(require("./apiKeys/types/index.js"), exports);
40
42
  exports.commons = __importStar(require("./commons/index.js"));
41
43
  __exportStar(require("./commons/types/index.js"), exports);
42
44
  exports.organization = __importStar(require("./organization/index.js"));
@@ -45,6 +47,7 @@ exports.registry = __importStar(require("./registry/index.js"));
45
47
  __exportStar(require("./registry/types/index.js"), exports);
46
48
  exports.user = __importStar(require("./user/index.js"));
47
49
  __exportStar(require("./user/types/index.js"), exports);
50
+ __exportStar(require("./apiKeys/client/requests/index.js"), exports);
48
51
  __exportStar(require("./organization/client/requests/index.js"), exports);
49
52
  __exportStar(require("./registry/client/requests/index.js"), exports);
50
53
  __exportStar(require("./user/client/requests/index.js"), exports);
@@ -0,0 +1,16 @@
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
+ }
@@ -0,0 +1,71 @@
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
+ OrganizationNotFoundError: core.serialization.object({}),
57
+ })
58
+ .transform({
59
+ transform: (value) => {
60
+ switch (value.error) {
61
+ case "UnauthorizedError":
62
+ return FernVenusApi.apiKeys.create.Error.unauthorizedError();
63
+ case "OrganizationNotFoundError":
64
+ return FernVenusApi.apiKeys.create.Error.organizationNotFoundError();
65
+ }
66
+ },
67
+ untransform: (_a) => {
68
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
69
+ return value;
70
+ },
71
+ });
@@ -0,0 +1,16 @@
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.getTokenMetadata.Error.Raw, FernVenusApi.apiKeys.getTokenMetadata.Error>;
8
+ export declare namespace Error {
9
+ type Raw = Error.UnauthorizedError | Error.TokenNotFoundError;
10
+ interface UnauthorizedError {
11
+ error: "UnauthorizedError";
12
+ }
13
+ interface TokenNotFoundError {
14
+ error: "TokenNotFoundError";
15
+ }
16
+ }
@@ -0,0 +1,71 @@
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.getTokenMetadata.Error.unauthorizedError();
63
+ case "TokenNotFoundError":
64
+ return FernVenusApi.apiKeys.getTokenMetadata.Error.tokenNotFoundError();
65
+ }
66
+ },
67
+ untransform: (_a) => {
68
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
69
+ return value;
70
+ },
71
+ });
@@ -0,0 +1,21 @@
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 { TokenMetadata } from "../types/TokenMetadata.js";
8
+ export declare const Response: core.serialization.Schema<serializers.apiKeys.getTokensForOrganization.Response.Raw, FernVenusApi.TokenMetadata[]>;
9
+ export declare namespace Response {
10
+ type Raw = TokenMetadata.Raw[];
11
+ }
12
+ export declare const Error: core.serialization.Schema<serializers.apiKeys.getTokensForOrganization.Error.Raw, FernVenusApi.apiKeys.getTokensForOrganization.Error>;
13
+ export declare namespace Error {
14
+ type Raw = Error.UnauthorizedError | Error.OrganizationNotFoundError;
15
+ interface UnauthorizedError {
16
+ error: "UnauthorizedError";
17
+ }
18
+ interface OrganizationNotFoundError {
19
+ error: "OrganizationNotFoundError";
20
+ }
21
+ }
@@ -0,0 +1,73 @@
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 = exports.Response = void 0;
51
+ const FernVenusApi = __importStar(require("../../../../api/index.js"));
52
+ const core = __importStar(require("../../../../core/index.js"));
53
+ const TokenMetadata_js_1 = require("../types/TokenMetadata.js");
54
+ exports.Response = core.serialization.list(TokenMetadata_js_1.TokenMetadata);
55
+ exports.Error = core.serialization
56
+ .union("error", {
57
+ UnauthorizedError: core.serialization.object({}),
58
+ OrganizationNotFoundError: core.serialization.object({}),
59
+ })
60
+ .transform({
61
+ transform: (value) => {
62
+ switch (value.error) {
63
+ case "UnauthorizedError":
64
+ return FernVenusApi.apiKeys.getTokensForOrganization.Error.unauthorizedError();
65
+ case "OrganizationNotFoundError":
66
+ return FernVenusApi.apiKeys.getTokensForOrganization.Error.organizationNotFoundError();
67
+ }
68
+ },
69
+ untransform: (_a) => {
70
+ var { _visit } = _a, value = __rest(_a, ["_visit"]);
71
+ return value;
72
+ },
73
+ });
@@ -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,15 @@
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 { OrganizationId } from "../../../commons/types/OrganizationId.js";
8
+ export declare const CreateApiKeyRequest: core.serialization.Schema<serializers.CreateApiKeyRequest.Raw, FernVenusApi.CreateApiKeyRequest>;
9
+ export declare namespace CreateApiKeyRequest {
10
+ interface Raw {
11
+ organizationId: OrganizationId.Raw;
12
+ prefix?: string | null;
13
+ description?: string | null;
14
+ }
15
+ }
@@ -0,0 +1,46 @@
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.CreateApiKeyRequest = void 0;
40
+ const core = __importStar(require("../../../../../core/index.js"));
41
+ const OrganizationId_js_1 = require("../../../commons/types/OrganizationId.js");
42
+ exports.CreateApiKeyRequest = core.serialization.object({
43
+ organizationId: OrganizationId_js_1.OrganizationId,
44
+ prefix: core.serialization.string().optional(),
45
+ description: core.serialization.string().optional(),
46
+ });
@@ -0,0 +1,12 @@
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 GetTokenMetadataRequest: core.serialization.Schema<serializers.GetTokenMetadataRequest.Raw, FernVenusApi.GetTokenMetadataRequest>;
8
+ export declare namespace GetTokenMetadataRequest {
9
+ interface Raw {
10
+ token: string;
11
+ }
12
+ }
@@ -0,0 +1,43 @@
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.GetTokenMetadataRequest = void 0;
40
+ const core = __importStar(require("../../../../../core/index.js"));
41
+ exports.GetTokenMetadataRequest = core.serialization.object({
42
+ token: core.serialization.string(),
43
+ });