@fern-api/venus-api-sdk 12.0.0 → 12.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/Client.d.ts +3 -0
  3. package/dist/cjs/Client.js +11 -6
  4. package/dist/cjs/api/resources/index.d.ts +3 -0
  5. package/dist/cjs/api/resources/index.js +4 -1
  6. package/dist/cjs/api/resources/internalGuestSession/client/Client.d.ts +55 -0
  7. package/dist/cjs/api/resources/internalGuestSession/client/Client.js +314 -0
  8. package/dist/cjs/api/resources/internalGuestSession/client/index.d.ts +4 -0
  9. package/dist/cjs/api/resources/internalGuestSession/client/index.js +43 -0
  10. package/dist/cjs/api/resources/internalGuestSession/client/readByOrg.d.ts +25 -0
  11. package/dist/cjs/api/resources/internalGuestSession/client/readByOrg.js +66 -0
  12. package/dist/cjs/api/resources/internalGuestSession/client/requests/ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest.d.ts +9 -0
  13. package/dist/cjs/api/resources/internalGuestSession/client/requests/ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest.js +3 -0
  14. package/dist/cjs/api/resources/internalGuestSession/client/requests/ReserveRequest.d.ts +14 -0
  15. package/dist/cjs/api/resources/internalGuestSession/client/requests/ReserveRequest.js +3 -0
  16. package/dist/cjs/api/resources/internalGuestSession/client/requests/SettleRequest.d.ts +14 -0
  17. package/dist/cjs/api/resources/internalGuestSession/client/requests/SettleRequest.js +3 -0
  18. package/dist/cjs/api/resources/internalGuestSession/client/requests/index.d.ts +3 -0
  19. package/dist/cjs/api/resources/internalGuestSession/client/requests/index.js +2 -0
  20. package/dist/cjs/api/resources/internalGuestSession/client/reserve.d.ts +25 -0
  21. package/dist/cjs/api/resources/internalGuestSession/client/reserve.js +66 -0
  22. package/dist/cjs/api/resources/internalGuestSession/client/settle.d.ts +25 -0
  23. package/dist/cjs/api/resources/internalGuestSession/client/settle.js +66 -0
  24. package/dist/cjs/api/resources/internalGuestSession/index.d.ts +2 -0
  25. package/dist/cjs/api/resources/internalGuestSession/index.js +18 -0
  26. package/dist/cjs/api/resources/internalGuestSession/types/ReserveRequestKind.d.ts +5 -0
  27. package/dist/cjs/api/resources/internalGuestSession/types/ReserveRequestKind.js +8 -0
  28. package/dist/cjs/api/resources/internalGuestSession/types/SettleRequestOutcome.d.ts +5 -0
  29. package/dist/cjs/api/resources/internalGuestSession/types/SettleRequestOutcome.js +8 -0
  30. package/dist/cjs/api/resources/internalGuestSession/types/index.d.ts +2 -0
  31. package/dist/cjs/api/resources/internalGuestSession/types/index.js +18 -0
  32. package/dist/cjs/api/types/InternalGuestSessionResponse.d.ts +22 -0
  33. package/dist/cjs/api/types/InternalGuestSessionResponse.js +3 -0
  34. package/dist/cjs/api/types/InternalGuestSessionResponseStatus.d.ts +9 -0
  35. package/dist/cjs/api/types/InternalGuestSessionResponseStatus.js +12 -0
  36. package/dist/cjs/api/types/Limit.d.ts +6 -0
  37. package/dist/cjs/api/types/Limit.js +3 -0
  38. package/dist/cjs/api/types/ReserveResponse.d.ts +12 -0
  39. package/dist/cjs/api/types/ReserveResponse.js +3 -0
  40. package/dist/cjs/api/types/ReserveResponseKind.d.ts +5 -0
  41. package/dist/cjs/api/types/ReserveResponseKind.js +8 -0
  42. package/dist/cjs/api/types/ReserveResponseState.d.ts +6 -0
  43. package/dist/cjs/api/types/ReserveResponseState.js +9 -0
  44. package/dist/cjs/api/types/SettleResponse.d.ts +5 -0
  45. package/dist/cjs/api/types/SettleResponse.js +3 -0
  46. package/dist/cjs/api/types/SettleResponseReason.d.ts +5 -0
  47. package/dist/cjs/api/types/SettleResponseReason.js +8 -0
  48. package/dist/cjs/api/types/index.d.ts +8 -0
  49. package/dist/cjs/api/types/index.js +8 -0
  50. package/dist/cjs/serialization/resources/index.d.ts +3 -0
  51. package/dist/cjs/serialization/resources/index.js +4 -1
  52. package/dist/cjs/serialization/resources/internalGuestSession/client/index.d.ts +1 -0
  53. package/dist/cjs/serialization/resources/internalGuestSession/client/index.js +17 -0
  54. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/ReserveRequest.d.ts +12 -0
  55. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/ReserveRequest.js +44 -0
  56. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/SettleRequest.d.ts +11 -0
  57. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/SettleRequest.js +43 -0
  58. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/index.d.ts +2 -0
  59. package/dist/cjs/serialization/resources/internalGuestSession/client/requests/index.js +7 -0
  60. package/dist/cjs/serialization/resources/internalGuestSession/index.d.ts +2 -0
  61. package/dist/cjs/serialization/resources/internalGuestSession/index.js +18 -0
  62. package/dist/cjs/serialization/resources/internalGuestSession/types/ReserveRequestKind.d.ts +7 -0
  63. package/dist/cjs/serialization/resources/internalGuestSession/types/ReserveRequestKind.js +39 -0
  64. package/dist/cjs/serialization/resources/internalGuestSession/types/SettleRequestOutcome.d.ts +7 -0
  65. package/dist/cjs/serialization/resources/internalGuestSession/types/SettleRequestOutcome.js +39 -0
  66. package/dist/cjs/serialization/resources/internalGuestSession/types/index.d.ts +2 -0
  67. package/dist/cjs/serialization/resources/internalGuestSession/types/index.js +18 -0
  68. package/dist/cjs/serialization/types/InternalGuestSessionResponse.d.ts +16 -0
  69. package/dist/cjs/serialization/types/InternalGuestSessionResponse.js +48 -0
  70. package/dist/cjs/serialization/types/InternalGuestSessionResponseStatus.d.ts +7 -0
  71. package/dist/cjs/serialization/types/InternalGuestSessionResponseStatus.js +39 -0
  72. package/dist/cjs/serialization/types/Limit.d.ts +12 -0
  73. package/dist/cjs/serialization/types/Limit.js +44 -0
  74. package/dist/cjs/serialization/types/ReserveResponse.d.ts +20 -0
  75. package/dist/cjs/serialization/types/ReserveResponse.js +52 -0
  76. package/dist/cjs/serialization/types/ReserveResponseKind.d.ts +7 -0
  77. package/dist/cjs/serialization/types/ReserveResponseKind.js +39 -0
  78. package/dist/cjs/serialization/types/ReserveResponseState.d.ts +7 -0
  79. package/dist/cjs/serialization/types/ReserveResponseState.js +39 -0
  80. package/dist/cjs/serialization/types/SettleResponse.d.ts +11 -0
  81. package/dist/cjs/serialization/types/SettleResponse.js +43 -0
  82. package/dist/cjs/serialization/types/SettleResponseReason.d.ts +7 -0
  83. package/dist/cjs/serialization/types/SettleResponseReason.js +39 -0
  84. package/dist/cjs/serialization/types/index.d.ts +8 -0
  85. package/dist/cjs/serialization/types/index.js +8 -0
  86. package/dist/cjs/version.d.ts +1 -1
  87. package/dist/cjs/version.js +1 -1
  88. package/dist/esm/BaseClient.mjs +2 -2
  89. package/dist/esm/Client.d.mts +3 -0
  90. package/dist/esm/Client.mjs +5 -0
  91. package/dist/esm/api/resources/index.d.mts +3 -0
  92. package/dist/esm/api/resources/index.mjs +3 -0
  93. package/dist/esm/api/resources/internalGuestSession/client/Client.d.mts +55 -0
  94. package/dist/esm/api/resources/internalGuestSession/client/Client.mjs +277 -0
  95. package/dist/esm/api/resources/internalGuestSession/client/index.d.mts +4 -0
  96. package/dist/esm/api/resources/internalGuestSession/client/index.mjs +4 -0
  97. package/dist/esm/api/resources/internalGuestSession/client/readByOrg.d.mts +25 -0
  98. package/dist/esm/api/resources/internalGuestSession/client/readByOrg.mjs +30 -0
  99. package/dist/esm/api/resources/internalGuestSession/client/requests/ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest.d.mts +9 -0
  100. package/dist/esm/api/resources/internalGuestSession/client/requests/ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest.mjs +2 -0
  101. package/dist/esm/api/resources/internalGuestSession/client/requests/ReserveRequest.d.mts +14 -0
  102. package/dist/esm/api/resources/internalGuestSession/client/requests/ReserveRequest.mjs +2 -0
  103. package/dist/esm/api/resources/internalGuestSession/client/requests/SettleRequest.d.mts +14 -0
  104. package/dist/esm/api/resources/internalGuestSession/client/requests/SettleRequest.mjs +2 -0
  105. package/dist/esm/api/resources/internalGuestSession/client/requests/index.d.mts +3 -0
  106. package/dist/esm/api/resources/internalGuestSession/client/requests/index.mjs +1 -0
  107. package/dist/esm/api/resources/internalGuestSession/client/reserve.d.mts +25 -0
  108. package/dist/esm/api/resources/internalGuestSession/client/reserve.mjs +30 -0
  109. package/dist/esm/api/resources/internalGuestSession/client/settle.d.mts +25 -0
  110. package/dist/esm/api/resources/internalGuestSession/client/settle.mjs +30 -0
  111. package/dist/esm/api/resources/internalGuestSession/index.d.mts +2 -0
  112. package/dist/esm/api/resources/internalGuestSession/index.mjs +2 -0
  113. package/dist/esm/api/resources/internalGuestSession/types/ReserveRequestKind.d.mts +5 -0
  114. package/dist/esm/api/resources/internalGuestSession/types/ReserveRequestKind.mjs +5 -0
  115. package/dist/esm/api/resources/internalGuestSession/types/SettleRequestOutcome.d.mts +5 -0
  116. package/dist/esm/api/resources/internalGuestSession/types/SettleRequestOutcome.mjs +5 -0
  117. package/dist/esm/api/resources/internalGuestSession/types/index.d.mts +2 -0
  118. package/dist/esm/api/resources/internalGuestSession/types/index.mjs +2 -0
  119. package/dist/esm/api/types/InternalGuestSessionResponse.d.mts +22 -0
  120. package/dist/esm/api/types/InternalGuestSessionResponse.mjs +2 -0
  121. package/dist/esm/api/types/InternalGuestSessionResponseStatus.d.mts +9 -0
  122. package/dist/esm/api/types/InternalGuestSessionResponseStatus.mjs +9 -0
  123. package/dist/esm/api/types/Limit.d.mts +6 -0
  124. package/dist/esm/api/types/Limit.mjs +2 -0
  125. package/dist/esm/api/types/ReserveResponse.d.mts +12 -0
  126. package/dist/esm/api/types/ReserveResponse.mjs +2 -0
  127. package/dist/esm/api/types/ReserveResponseKind.d.mts +5 -0
  128. package/dist/esm/api/types/ReserveResponseKind.mjs +5 -0
  129. package/dist/esm/api/types/ReserveResponseState.d.mts +6 -0
  130. package/dist/esm/api/types/ReserveResponseState.mjs +6 -0
  131. package/dist/esm/api/types/SettleResponse.d.mts +5 -0
  132. package/dist/esm/api/types/SettleResponse.mjs +2 -0
  133. package/dist/esm/api/types/SettleResponseReason.d.mts +5 -0
  134. package/dist/esm/api/types/SettleResponseReason.mjs +5 -0
  135. package/dist/esm/api/types/index.d.mts +8 -0
  136. package/dist/esm/api/types/index.mjs +8 -0
  137. package/dist/esm/serialization/resources/index.d.mts +3 -0
  138. package/dist/esm/serialization/resources/index.mjs +3 -0
  139. package/dist/esm/serialization/resources/internalGuestSession/client/index.d.mts +1 -0
  140. package/dist/esm/serialization/resources/internalGuestSession/client/index.mjs +1 -0
  141. package/dist/esm/serialization/resources/internalGuestSession/client/requests/ReserveRequest.d.mts +12 -0
  142. package/dist/esm/serialization/resources/internalGuestSession/client/requests/ReserveRequest.mjs +8 -0
  143. package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.d.mts +11 -0
  144. package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.mjs +7 -0
  145. package/dist/esm/serialization/resources/internalGuestSession/client/requests/index.d.mts +2 -0
  146. package/dist/esm/serialization/resources/internalGuestSession/client/requests/index.mjs +2 -0
  147. package/dist/esm/serialization/resources/internalGuestSession/index.d.mts +2 -0
  148. package/dist/esm/serialization/resources/internalGuestSession/index.mjs +2 -0
  149. package/dist/esm/serialization/resources/internalGuestSession/types/ReserveRequestKind.d.mts +7 -0
  150. package/dist/esm/serialization/resources/internalGuestSession/types/ReserveRequestKind.mjs +3 -0
  151. package/dist/esm/serialization/resources/internalGuestSession/types/SettleRequestOutcome.d.mts +7 -0
  152. package/dist/esm/serialization/resources/internalGuestSession/types/SettleRequestOutcome.mjs +3 -0
  153. package/dist/esm/serialization/resources/internalGuestSession/types/index.d.mts +2 -0
  154. package/dist/esm/serialization/resources/internalGuestSession/types/index.mjs +2 -0
  155. package/dist/esm/serialization/types/InternalGuestSessionResponse.d.mts +16 -0
  156. package/dist/esm/serialization/types/InternalGuestSessionResponse.mjs +12 -0
  157. package/dist/esm/serialization/types/InternalGuestSessionResponseStatus.d.mts +7 -0
  158. package/dist/esm/serialization/types/InternalGuestSessionResponseStatus.mjs +3 -0
  159. package/dist/esm/serialization/types/Limit.d.mts +12 -0
  160. package/dist/esm/serialization/types/Limit.mjs +8 -0
  161. package/dist/esm/serialization/types/ReserveResponse.d.mts +20 -0
  162. package/dist/esm/serialization/types/ReserveResponse.mjs +16 -0
  163. package/dist/esm/serialization/types/ReserveResponseKind.d.mts +7 -0
  164. package/dist/esm/serialization/types/ReserveResponseKind.mjs +3 -0
  165. package/dist/esm/serialization/types/ReserveResponseState.d.mts +7 -0
  166. package/dist/esm/serialization/types/ReserveResponseState.mjs +3 -0
  167. package/dist/esm/serialization/types/SettleResponse.d.mts +11 -0
  168. package/dist/esm/serialization/types/SettleResponse.mjs +7 -0
  169. package/dist/esm/serialization/types/SettleResponseReason.d.mts +7 -0
  170. package/dist/esm/serialization/types/SettleResponseReason.mjs +3 -0
  171. package/dist/esm/serialization/types/index.d.mts +8 -0
  172. package/dist/esm/serialization/types/index.mjs +8 -0
  173. package/dist/esm/version.d.mts +1 -1
  174. package/dist/esm/version.mjs +1 -1
  175. package/package.json +1 -1
  176. package/reference.md +175 -0
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.SettleResponseReason = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.SettleResponseReason = core.serialization.enum_(["alreadySettled", "leaseExpired"]);
@@ -21,8 +21,11 @@ export * from "./GoneErrorBodyContentCode.js";
21
21
  export * from "./GuestSessionLimits.js";
22
22
  export * from "./GuestSessionUsage.js";
23
23
  export * from "./HttpValidationError.js";
24
+ export * from "./InternalGuestSessionResponse.js";
25
+ export * from "./InternalGuestSessionResponseStatus.js";
24
26
  export * from "./JwtResponse.js";
25
27
  export * from "./LightweightUser.js";
28
+ export * from "./Limit.js";
26
29
  export * from "./LinkAccountsResponse.js";
27
30
  export * from "./Maven.js";
28
31
  export * from "./MavenRegistryToken.js";
@@ -38,10 +41,15 @@ export * from "./Pypi.js";
38
41
  export * from "./PypiRegistryToken.js";
39
42
  export * from "./RegistryToken.js";
40
43
  export * from "./RegistryTokens.js";
44
+ export * from "./ReserveResponse.js";
45
+ export * from "./ReserveResponseKind.js";
46
+ export * from "./ReserveResponseState.js";
41
47
  export * from "./Revoked.js";
42
48
  export * from "./ServiceUnavailableErrorBody.js";
43
49
  export * from "./ServiceUnavailableErrorBodyContent.js";
44
50
  export * from "./ServiceUnavailableErrorBodyContentCode.js";
51
+ export * from "./SettleResponse.js";
52
+ export * from "./SettleResponseReason.js";
45
53
  export * from "./TokenMetadata.js";
46
54
  export * from "./TokenStatus.js";
47
55
  export * from "./TooManyRequestsErrorBody.js";
@@ -37,8 +37,11 @@ __exportStar(require("./GoneErrorBodyContentCode.js"), exports);
37
37
  __exportStar(require("./GuestSessionLimits.js"), exports);
38
38
  __exportStar(require("./GuestSessionUsage.js"), exports);
39
39
  __exportStar(require("./HttpValidationError.js"), exports);
40
+ __exportStar(require("./InternalGuestSessionResponse.js"), exports);
41
+ __exportStar(require("./InternalGuestSessionResponseStatus.js"), exports);
40
42
  __exportStar(require("./JwtResponse.js"), exports);
41
43
  __exportStar(require("./LightweightUser.js"), exports);
44
+ __exportStar(require("./Limit.js"), exports);
42
45
  __exportStar(require("./LinkAccountsResponse.js"), exports);
43
46
  __exportStar(require("./Maven.js"), exports);
44
47
  __exportStar(require("./MavenRegistryToken.js"), exports);
@@ -54,10 +57,15 @@ __exportStar(require("./Pypi.js"), exports);
54
57
  __exportStar(require("./PypiRegistryToken.js"), exports);
55
58
  __exportStar(require("./RegistryToken.js"), exports);
56
59
  __exportStar(require("./RegistryTokens.js"), exports);
60
+ __exportStar(require("./ReserveResponse.js"), exports);
61
+ __exportStar(require("./ReserveResponseKind.js"), exports);
62
+ __exportStar(require("./ReserveResponseState.js"), exports);
57
63
  __exportStar(require("./Revoked.js"), exports);
58
64
  __exportStar(require("./ServiceUnavailableErrorBody.js"), exports);
59
65
  __exportStar(require("./ServiceUnavailableErrorBodyContent.js"), exports);
60
66
  __exportStar(require("./ServiceUnavailableErrorBodyContentCode.js"), exports);
67
+ __exportStar(require("./SettleResponse.js"), exports);
68
+ __exportStar(require("./SettleResponseReason.js"), exports);
61
69
  __exportStar(require("./TokenMetadata.js"), exports);
62
70
  __exportStar(require("./TokenStatus.js"), exports);
63
71
  __exportStar(require("./TooManyRequestsErrorBody.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "12.0.0";
1
+ export declare const SDK_VERSION = "12.1.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "12.0.0";
4
+ exports.SDK_VERSION = "12.1.0";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
9
- "X-Fern-SDK-Version": "12.0.0",
10
- "User-Agent": "@fern-api/venus-api-sdk/12.0.0",
9
+ "X-Fern-SDK-Version": "12.1.0",
10
+ "User-Agent": "@fern-api/venus-api-sdk/12.1.0",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -2,6 +2,7 @@ import * as FernVenusApi from "./api/index.mjs";
2
2
  import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
3
3
  import { AuthClient } from "./api/resources/auth/client/Client.mjs";
4
4
  import { GuestSessionClient } from "./api/resources/guestSession/client/Client.mjs";
5
+ import { InternalGuestSessionClient } from "./api/resources/internalGuestSession/client/Client.mjs";
5
6
  import { OrganizationClient } from "./api/resources/organization/client/Client.mjs";
6
7
  import { RegistryClient } from "./api/resources/registry/client/Client.mjs";
7
8
  import { UserClient } from "./api/resources/user/client/Client.mjs";
@@ -21,6 +22,7 @@ export declare class FernVenusApiClient {
21
22
  protected _organization: OrganizationClient | undefined;
22
23
  protected _registry: RegistryClient | undefined;
23
24
  protected _user: UserClient | undefined;
25
+ protected _internalGuestSession: InternalGuestSessionClient | undefined;
24
26
  constructor(options: FernVenusApiClient.Options);
25
27
  get apiKeys(): ApiKeysClient;
26
28
  get auth(): AuthClient;
@@ -28,6 +30,7 @@ export declare class FernVenusApiClient {
28
30
  get organization(): OrganizationClient;
29
31
  get registry(): RegistryClient;
30
32
  get user(): UserClient;
33
+ get internalGuestSession(): InternalGuestSessionClient;
31
34
  /**
32
35
  * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
33
36
  *
@@ -12,6 +12,7 @@ import * as FernVenusApi from "./api/index.mjs";
12
12
  import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.mjs";
13
13
  import { AuthClient } from "./api/resources/auth/client/Client.mjs";
14
14
  import { GuestSessionClient } from "./api/resources/guestSession/client/Client.mjs";
15
+ import { InternalGuestSessionClient } from "./api/resources/internalGuestSession/client/Client.mjs";
15
16
  import { OrganizationClient } from "./api/resources/organization/client/Client.mjs";
16
17
  import { RegistryClient } from "./api/resources/registry/client/Client.mjs";
17
18
  import { UserClient } from "./api/resources/user/client/Client.mjs";
@@ -46,6 +47,10 @@ export class FernVenusApiClient {
46
47
  var _a;
47
48
  return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new UserClient(this._options)));
48
49
  }
50
+ get internalGuestSession() {
51
+ var _a;
52
+ return ((_a = this._internalGuestSession) !== null && _a !== void 0 ? _a : (this._internalGuestSession = new InternalGuestSessionClient(this._options)));
53
+ }
49
54
  /**
50
55
  * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
51
56
  *
@@ -4,6 +4,9 @@ export * from "./auth/client/requests/index.mjs";
4
4
  export * as auth from "./auth/index.mjs";
5
5
  export * from "./guestSession/client/requests/index.mjs";
6
6
  export * as guestSession from "./guestSession/index.mjs";
7
+ export * from "./internalGuestSession/client/requests/index.mjs";
8
+ export * as internalGuestSession from "./internalGuestSession/index.mjs";
9
+ export * from "./internalGuestSession/types/index.mjs";
7
10
  export * from "./organization/client/requests/index.mjs";
8
11
  export * as organization from "./organization/index.mjs";
9
12
  export * from "./registry/client/requests/index.mjs";
@@ -4,6 +4,9 @@ export * from "./auth/client/requests/index.mjs";
4
4
  export * as auth from "./auth/index.mjs";
5
5
  export * from "./guestSession/client/requests/index.mjs";
6
6
  export * as guestSession from "./guestSession/index.mjs";
7
+ export * from "./internalGuestSession/client/requests/index.mjs";
8
+ export * as internalGuestSession from "./internalGuestSession/index.mjs";
9
+ export * from "./internalGuestSession/types/index.mjs";
7
10
  export * from "./organization/client/requests/index.mjs";
8
11
  export * as organization from "./organization/index.mjs";
9
12
  export * from "./registry/client/requests/index.mjs";
@@ -0,0 +1,55 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
3
+ import * as core from "../../../../core/index.mjs";
4
+ import * as FernVenusApi from "../../../index.mjs";
5
+ export declare namespace InternalGuestSessionClient {
6
+ type Options = BaseClientOptions;
7
+ interface RequestOptions extends BaseRequestOptions {
8
+ }
9
+ }
10
+ export declare class InternalGuestSessionClient {
11
+ protected readonly _options: NormalizedClientOptionsWithAuth<InternalGuestSessionClient.Options>;
12
+ constructor(options: InternalGuestSessionClient.Options);
13
+ /**
14
+ * The session behind a guest organization, for the service holding
15
+ * its work. This is the read the pull model in ``guest_resources`` rests
16
+ * on: FDR and Fiddle know the ``guest-<id>`` org their rows belong to, not
17
+ * the session ID, token or claim secret, so this is keyed by the org and
18
+ * opened by the service credential alone.
19
+ *
20
+ * @param {FernVenusApi.ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest} request
21
+ * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
22
+ *
23
+ * @example
24
+ * await client.internalGuestSession.readByOrg({
25
+ * orgId: "org_id"
26
+ * })
27
+ */
28
+ readByOrg(request: FernVenusApi.ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest, requestOptions?: InternalGuestSessionClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.InternalGuestSessionResponse, FernVenusApi.internalGuestSession.readByOrg.Error>>;
29
+ private __readByOrg;
30
+ /**
31
+ * @param {FernVenusApi.ReserveRequest} request
32
+ * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
33
+ *
34
+ * @example
35
+ * await client.internalGuestSession.reserve({
36
+ * sessionId: "session_id",
37
+ * kind: "sdkBuild"
38
+ * })
39
+ */
40
+ reserve(request: FernVenusApi.ReserveRequest, requestOptions?: InternalGuestSessionClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.ReserveResponse, FernVenusApi.internalGuestSession.reserve.Error>>;
41
+ private __reserve;
42
+ /**
43
+ * @param {FernVenusApi.SettleRequest} request
44
+ * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
45
+ *
46
+ * @example
47
+ * await client.internalGuestSession.settle({
48
+ * sessionId: "session_id",
49
+ * reservationId: "reservationId",
50
+ * outcome: "succeeded"
51
+ * })
52
+ */
53
+ settle(request: FernVenusApi.SettleRequest, requestOptions?: InternalGuestSessionClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.SettleResponse, FernVenusApi.internalGuestSession.settle.Error>>;
54
+ private __settle;
55
+ }
@@ -0,0 +1,277 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
22
+ import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
23
+ import { mergeHeaders } from "../../../../core/headers.mjs";
24
+ import * as core from "../../../../core/index.mjs";
25
+ import * as serializers from "../../../../serialization/index.mjs";
26
+ import * as FernVenusApi from "../../../index.mjs";
27
+ export class InternalGuestSessionClient {
28
+ constructor(options) {
29
+ this._options = normalizeClientOptionsWithAuth(options);
30
+ }
31
+ /**
32
+ * The session behind a guest organization, for the service holding
33
+ * its work. This is the read the pull model in ``guest_resources`` rests
34
+ * on: FDR and Fiddle know the ``guest-<id>`` org their rows belong to, not
35
+ * the session ID, token or claim secret, so this is keyed by the org and
36
+ * opened by the service credential alone.
37
+ *
38
+ * @param {FernVenusApi.ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest} request
39
+ * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
40
+ *
41
+ * @example
42
+ * await client.internalGuestSession.readByOrg({
43
+ * orgId: "org_id"
44
+ * })
45
+ */
46
+ readByOrg(request, requestOptions) {
47
+ return core.HttpResponsePromise.fromPromise(this.__readByOrg(request, requestOptions));
48
+ }
49
+ __readByOrg(request, requestOptions) {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ var _a, _b, _c, _d, _e, _f, _g, _h;
52
+ const { orgId } = request;
53
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
54
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
55
+ const _response = yield core.fetcher({
56
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `internal/guest-sessions/by-org/${core.url.encodePathParam(orgId)}`),
57
+ method: "GET",
58
+ headers: _headers,
59
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
60
+ timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
61
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
62
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
63
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
64
+ logging: this._options.logging,
65
+ });
66
+ if (_response.ok) {
67
+ return {
68
+ data: {
69
+ ok: true,
70
+ body: serializers.InternalGuestSessionResponse.parseOrThrow(_response.body, {
71
+ unrecognizedObjectKeys: "passthrough",
72
+ allowUnrecognizedUnionMembers: true,
73
+ allowUnrecognizedEnumValues: true,
74
+ skipValidation: true,
75
+ breadcrumbsPrefix: ["response"],
76
+ }),
77
+ headers: _response.headers,
78
+ rawResponse: _response.rawResponse,
79
+ },
80
+ rawResponse: _response.rawResponse,
81
+ };
82
+ }
83
+ if (_response.error.reason === "status-code") {
84
+ switch (_response.error.statusCode) {
85
+ case 422:
86
+ return {
87
+ data: {
88
+ ok: false,
89
+ error: FernVenusApi.internalGuestSession.readByOrg.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
90
+ unrecognizedObjectKeys: "passthrough",
91
+ allowUnrecognizedUnionMembers: true,
92
+ allowUnrecognizedEnumValues: true,
93
+ skipValidation: true,
94
+ breadcrumbsPrefix: ["response"],
95
+ })),
96
+ rawResponse: _response.rawResponse,
97
+ },
98
+ rawResponse: _response.rawResponse,
99
+ };
100
+ }
101
+ }
102
+ return {
103
+ data: {
104
+ ok: false,
105
+ error: FernVenusApi.internalGuestSession.readByOrg.Error._unknown(_response.error),
106
+ rawResponse: _response.rawResponse,
107
+ },
108
+ rawResponse: _response.rawResponse,
109
+ };
110
+ });
111
+ }
112
+ /**
113
+ * @param {FernVenusApi.ReserveRequest} request
114
+ * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
115
+ *
116
+ * @example
117
+ * await client.internalGuestSession.reserve({
118
+ * sessionId: "session_id",
119
+ * kind: "sdkBuild"
120
+ * })
121
+ */
122
+ reserve(request, requestOptions) {
123
+ return core.HttpResponsePromise.fromPromise(this.__reserve(request, requestOptions));
124
+ }
125
+ __reserve(request, requestOptions) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ var _a, _b, _c, _d, _e, _f, _g, _h;
128
+ const { sessionId } = request, _body = __rest(request, ["sessionId"]);
129
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
130
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
131
+ const _response = yield core.fetcher({
132
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `internal/guest-sessions/${core.url.encodePathParam(sessionId)}/quota/reserve`),
133
+ method: "POST",
134
+ headers: _headers,
135
+ contentType: "application/json",
136
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
137
+ requestType: "json",
138
+ body: serializers.ReserveRequest.jsonOrThrow(_body, {
139
+ unrecognizedObjectKeys: "strip",
140
+ omitUndefined: true,
141
+ }),
142
+ timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
143
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
144
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
145
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
146
+ logging: this._options.logging,
147
+ });
148
+ if (_response.ok) {
149
+ return {
150
+ data: {
151
+ ok: true,
152
+ body: serializers.ReserveResponse.parseOrThrow(_response.body, {
153
+ unrecognizedObjectKeys: "passthrough",
154
+ allowUnrecognizedUnionMembers: true,
155
+ allowUnrecognizedEnumValues: true,
156
+ skipValidation: true,
157
+ breadcrumbsPrefix: ["response"],
158
+ }),
159
+ headers: _response.headers,
160
+ rawResponse: _response.rawResponse,
161
+ },
162
+ rawResponse: _response.rawResponse,
163
+ };
164
+ }
165
+ if (_response.error.reason === "status-code") {
166
+ switch (_response.error.statusCode) {
167
+ case 422:
168
+ return {
169
+ data: {
170
+ ok: false,
171
+ error: FernVenusApi.internalGuestSession.reserve.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
172
+ unrecognizedObjectKeys: "passthrough",
173
+ allowUnrecognizedUnionMembers: true,
174
+ allowUnrecognizedEnumValues: true,
175
+ skipValidation: true,
176
+ breadcrumbsPrefix: ["response"],
177
+ })),
178
+ rawResponse: _response.rawResponse,
179
+ },
180
+ rawResponse: _response.rawResponse,
181
+ };
182
+ }
183
+ }
184
+ return {
185
+ data: {
186
+ ok: false,
187
+ error: FernVenusApi.internalGuestSession.reserve.Error._unknown(_response.error),
188
+ rawResponse: _response.rawResponse,
189
+ },
190
+ rawResponse: _response.rawResponse,
191
+ };
192
+ });
193
+ }
194
+ /**
195
+ * @param {FernVenusApi.SettleRequest} request
196
+ * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
197
+ *
198
+ * @example
199
+ * await client.internalGuestSession.settle({
200
+ * sessionId: "session_id",
201
+ * reservationId: "reservationId",
202
+ * outcome: "succeeded"
203
+ * })
204
+ */
205
+ settle(request, requestOptions) {
206
+ return core.HttpResponsePromise.fromPromise(this.__settle(request, requestOptions));
207
+ }
208
+ __settle(request, requestOptions) {
209
+ return __awaiter(this, void 0, void 0, function* () {
210
+ var _a, _b, _c, _d, _e, _f, _g, _h;
211
+ const { sessionId } = request, _body = __rest(request, ["sessionId"]);
212
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
213
+ const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
214
+ const _response = yield core.fetcher({
215
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment)), `internal/guest-sessions/${core.url.encodePathParam(sessionId)}/quota/settle`),
216
+ method: "POST",
217
+ headers: _headers,
218
+ contentType: "application/json",
219
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
220
+ requestType: "json",
221
+ body: serializers.SettleRequest.jsonOrThrow(_body, {
222
+ unrecognizedObjectKeys: "strip",
223
+ omitUndefined: true,
224
+ }),
225
+ timeoutMs: ((_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.timeoutInSeconds) !== null && _e !== void 0 ? _e : 60) * 1000,
226
+ maxRetries: (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.maxRetries,
227
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
228
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
229
+ logging: this._options.logging,
230
+ });
231
+ if (_response.ok) {
232
+ return {
233
+ data: {
234
+ ok: true,
235
+ body: serializers.SettleResponse.parseOrThrow(_response.body, {
236
+ unrecognizedObjectKeys: "passthrough",
237
+ allowUnrecognizedUnionMembers: true,
238
+ allowUnrecognizedEnumValues: true,
239
+ skipValidation: true,
240
+ breadcrumbsPrefix: ["response"],
241
+ }),
242
+ headers: _response.headers,
243
+ rawResponse: _response.rawResponse,
244
+ },
245
+ rawResponse: _response.rawResponse,
246
+ };
247
+ }
248
+ if (_response.error.reason === "status-code") {
249
+ switch (_response.error.statusCode) {
250
+ case 422:
251
+ return {
252
+ data: {
253
+ ok: false,
254
+ error: FernVenusApi.internalGuestSession.settle.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
255
+ unrecognizedObjectKeys: "passthrough",
256
+ allowUnrecognizedUnionMembers: true,
257
+ allowUnrecognizedEnumValues: true,
258
+ skipValidation: true,
259
+ breadcrumbsPrefix: ["response"],
260
+ })),
261
+ rawResponse: _response.rawResponse,
262
+ },
263
+ rawResponse: _response.rawResponse,
264
+ };
265
+ }
266
+ }
267
+ return {
268
+ data: {
269
+ ok: false,
270
+ error: FernVenusApi.internalGuestSession.settle.Error._unknown(_response.error),
271
+ rawResponse: _response.rawResponse,
272
+ },
273
+ rawResponse: _response.rawResponse,
274
+ };
275
+ });
276
+ }
277
+ }
@@ -0,0 +1,4 @@
1
+ export * as readByOrg from "./readByOrg.mjs";
2
+ export * from "./requests/index.mjs";
3
+ export * as reserve from "./reserve.mjs";
4
+ export * as settle from "./settle.mjs";
@@ -0,0 +1,4 @@
1
+ export * as readByOrg from "./readByOrg.mjs";
2
+ export * from "./requests/index.mjs";
3
+ export * as reserve from "./reserve.mjs";
4
+ export * as settle from "./settle.mjs";
@@ -0,0 +1,25 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as FernVenusApi from "../../../index.mjs";
3
+ export type Error = FernVenusApi.internalGuestSession.readByOrg.Error.UnprocessableEntityError | FernVenusApi.internalGuestSession.readByOrg.Error._Unknown;
4
+ export declare namespace Error {
5
+ interface UnprocessableEntityError extends _Utils {
6
+ statusCode: 422;
7
+ content: FernVenusApi.HttpValidationError;
8
+ }
9
+ interface _Unknown extends _Utils {
10
+ statusCode: void;
11
+ content: core.Fetcher.Error;
12
+ }
13
+ interface _Utils {
14
+ _visit: <_Result>(visitor: FernVenusApi.internalGuestSession.readByOrg.Error._Visitor<_Result>) => _Result;
15
+ }
16
+ interface _Visitor<_Result> {
17
+ unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
18
+ _other: (value: core.Fetcher.Error) => _Result;
19
+ }
20
+ }
21
+ export declare const Error: {
22
+ readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.internalGuestSession.readByOrg.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.internalGuestSession.readByOrg.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.internalGuestSession.readByOrg.Error, visitor: FernVenusApi.internalGuestSession.readByOrg.Error._Visitor<_Result>) => _Result;
25
+ };
@@ -0,0 +1,30 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as FernVenusApi from "../../../index.mjs";
3
+ export const Error = {
4
+ unprocessableEntityError: (value) => {
5
+ return {
6
+ content: value,
7
+ statusCode: 422,
8
+ _visit: function (visitor) {
9
+ return FernVenusApi.internalGuestSession.readByOrg.Error._visit(this, visitor);
10
+ },
11
+ };
12
+ },
13
+ _unknown: (fetcherError) => {
14
+ return {
15
+ statusCode: undefined,
16
+ content: fetcherError,
17
+ _visit: function (visitor) {
18
+ return FernVenusApi.internalGuestSession.readByOrg.Error._visit(this, visitor);
19
+ },
20
+ };
21
+ },
22
+ _visit: (value, visitor) => {
23
+ switch (value.statusCode) {
24
+ case 422:
25
+ return visitor.unprocessableEntityError(value.content);
26
+ default:
27
+ return visitor._other(value.content);
28
+ }
29
+ },
30
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @example
3
+ * {
4
+ * orgId: "org_id"
5
+ * }
6
+ */
7
+ export interface ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest {
8
+ orgId: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,14 @@
1
+ import type * as FernVenusApi from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * sessionId: "session_id",
6
+ * kind: "sdkBuild"
7
+ * }
8
+ */
9
+ export interface ReserveRequest {
10
+ sessionId: string;
11
+ kind: FernVenusApi.ReserveRequestKind;
12
+ idempotencyKey?: string | null;
13
+ leaseSeconds?: number;
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,14 @@
1
+ import type * as FernVenusApi from "../../../../index.mjs";
2
+ /**
3
+ * @example
4
+ * {
5
+ * sessionId: "session_id",
6
+ * reservationId: "reservationId",
7
+ * outcome: "succeeded"
8
+ * }
9
+ */
10
+ export interface SettleRequest {
11
+ sessionId: string;
12
+ reservationId: string;
13
+ outcome: FernVenusApi.SettleRequestOutcome;
14
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,3 @@
1
+ export type { ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest } from "./ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest.mjs";
2
+ export type { ReserveRequest } from "./ReserveRequest.mjs";
3
+ export type { SettleRequest } from "./SettleRequest.mjs";