@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,43 @@
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.SettleRequest = void 0;
38
+ const core = __importStar(require("../../../../../core/index.js"));
39
+ const SettleRequestOutcome_js_1 = require("../../types/SettleRequestOutcome.js");
40
+ exports.SettleRequest = core.serialization.object({
41
+ reservationId: core.serialization.string(),
42
+ outcome: SettleRequestOutcome_js_1.SettleRequestOutcome,
43
+ });
@@ -0,0 +1,2 @@
1
+ export { ReserveRequest } from "./ReserveRequest.js";
2
+ export { SettleRequest } from "./SettleRequest.js";
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SettleRequest = exports.ReserveRequest = void 0;
4
+ var ReserveRequest_js_1 = require("./ReserveRequest.js");
5
+ Object.defineProperty(exports, "ReserveRequest", { enumerable: true, get: function () { return ReserveRequest_js_1.ReserveRequest; } });
6
+ var SettleRequest_js_1 = require("./SettleRequest.js");
7
+ Object.defineProperty(exports, "SettleRequest", { enumerable: true, get: function () { return SettleRequest_js_1.SettleRequest; } });
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.js";
2
+ export * from "./types/index.js";
@@ -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("./client/index.js"), exports);
18
+ __exportStar(require("./types/index.js"), exports);
@@ -0,0 +1,7 @@
1
+ import type * as FernVenusApi from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const ReserveRequestKind: core.serialization.Schema<serializers.ReserveRequestKind.Raw, FernVenusApi.ReserveRequestKind>;
5
+ export declare namespace ReserveRequestKind {
6
+ type Raw = "sdkBuild" | "docsPublish";
7
+ }
@@ -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.ReserveRequestKind = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.ReserveRequestKind = core.serialization.enum_(["sdkBuild", "docsPublish"]);
@@ -0,0 +1,7 @@
1
+ import type * as FernVenusApi from "../../../../api/index.js";
2
+ import * as core from "../../../../core/index.js";
3
+ import type * as serializers from "../../../index.js";
4
+ export declare const SettleRequestOutcome: core.serialization.Schema<serializers.SettleRequestOutcome.Raw, FernVenusApi.SettleRequestOutcome>;
5
+ export declare namespace SettleRequestOutcome {
6
+ type Raw = "succeeded" | "failed";
7
+ }
@@ -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.SettleRequestOutcome = void 0;
38
+ const core = __importStar(require("../../../../core/index.js"));
39
+ exports.SettleRequestOutcome = core.serialization.enum_(["succeeded", "failed"]);
@@ -0,0 +1,2 @@
1
+ export * from "./ReserveRequestKind.js";
2
+ export * from "./SettleRequestOutcome.js";
@@ -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("./ReserveRequestKind.js"), exports);
18
+ __exportStar(require("./SettleRequestOutcome.js"), exports);
@@ -0,0 +1,16 @@
1
+ import type * as FernVenusApi from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { InternalGuestSessionResponseStatus } from "./InternalGuestSessionResponseStatus.js";
5
+ export declare const InternalGuestSessionResponse: core.serialization.ObjectSchema<serializers.InternalGuestSessionResponse.Raw, FernVenusApi.InternalGuestSessionResponse>;
6
+ export declare namespace InternalGuestSessionResponse {
7
+ interface Raw {
8
+ sessionId: string;
9
+ organizationId: string;
10
+ status: InternalGuestSessionResponseStatus.Raw;
11
+ createdAt: string;
12
+ expiresAt: string;
13
+ claimedAt?: string | null;
14
+ claimedOrganizationId?: string | null;
15
+ }
16
+ }
@@ -0,0 +1,48 @@
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.InternalGuestSessionResponse = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const InternalGuestSessionResponseStatus_js_1 = require("./InternalGuestSessionResponseStatus.js");
40
+ exports.InternalGuestSessionResponse = core.serialization.object({
41
+ sessionId: core.serialization.string(),
42
+ organizationId: core.serialization.string(),
43
+ status: InternalGuestSessionResponseStatus_js_1.InternalGuestSessionResponseStatus,
44
+ createdAt: core.serialization.date(),
45
+ expiresAt: core.serialization.date(),
46
+ claimedAt: core.serialization.date().nullable(),
47
+ claimedOrganizationId: core.serialization.string().nullable(),
48
+ });
@@ -0,0 +1,7 @@
1
+ import type * as FernVenusApi from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const InternalGuestSessionResponseStatus: core.serialization.Schema<serializers.InternalGuestSessionResponseStatus.Raw, FernVenusApi.InternalGuestSessionResponseStatus>;
5
+ export declare namespace InternalGuestSessionResponseStatus {
6
+ type Raw = "active" | "claiming" | "claimed" | "expired" | "deleted" | "takenDown";
7
+ }
@@ -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.InternalGuestSessionResponseStatus = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.InternalGuestSessionResponseStatus = core.serialization.enum_(["active", "claiming", "claimed", "expired", "deleted", "takenDown"]);
@@ -0,0 +1,12 @@
1
+ import type * as FernVenusApi from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const Limit: core.serialization.ObjectSchema<serializers.Limit.Raw, FernVenusApi.Limit>;
5
+ export declare namespace Limit {
6
+ interface Raw {
7
+ name: string;
8
+ max: number;
9
+ used: number;
10
+ sessionExpiresAt: string;
11
+ }
12
+ }
@@ -0,0 +1,44 @@
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.Limit = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.Limit = core.serialization.object({
40
+ name: core.serialization.string(),
41
+ max: core.serialization.number(),
42
+ used: core.serialization.number(),
43
+ sessionExpiresAt: core.serialization.date(),
44
+ });
@@ -0,0 +1,20 @@
1
+ import type * as FernVenusApi from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { Limit } from "./Limit.js";
5
+ import { ReserveResponseKind } from "./ReserveResponseKind.js";
6
+ import { ReserveResponseState } from "./ReserveResponseState.js";
7
+ export declare const ReserveResponse: core.serialization.ObjectSchema<serializers.ReserveResponse.Raw, FernVenusApi.ReserveResponse>;
8
+ export declare namespace ReserveResponse {
9
+ interface Raw {
10
+ reservationId: string;
11
+ sessionId: string;
12
+ organizationId: string;
13
+ kind: ReserveResponseKind.Raw;
14
+ replayed: boolean;
15
+ state: ReserveResponseState.Raw;
16
+ leaseExpiresAt: string;
17
+ leaseExpired: boolean;
18
+ limit: Limit.Raw;
19
+ }
20
+ }
@@ -0,0 +1,52 @@
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.ReserveResponse = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const Limit_js_1 = require("./Limit.js");
40
+ const ReserveResponseKind_js_1 = require("./ReserveResponseKind.js");
41
+ const ReserveResponseState_js_1 = require("./ReserveResponseState.js");
42
+ exports.ReserveResponse = core.serialization.object({
43
+ reservationId: core.serialization.string(),
44
+ sessionId: core.serialization.string(),
45
+ organizationId: core.serialization.string(),
46
+ kind: ReserveResponseKind_js_1.ReserveResponseKind,
47
+ replayed: core.serialization.boolean(),
48
+ state: ReserveResponseState_js_1.ReserveResponseState,
49
+ leaseExpiresAt: core.serialization.date(),
50
+ leaseExpired: core.serialization.boolean(),
51
+ limit: Limit_js_1.Limit,
52
+ });
@@ -0,0 +1,7 @@
1
+ import type * as FernVenusApi from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const ReserveResponseKind: core.serialization.Schema<serializers.ReserveResponseKind.Raw, FernVenusApi.ReserveResponseKind>;
5
+ export declare namespace ReserveResponseKind {
6
+ type Raw = "sdkBuild" | "docsPublish";
7
+ }
@@ -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.ReserveResponseKind = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.ReserveResponseKind = core.serialization.enum_(["sdkBuild", "docsPublish"]);
@@ -0,0 +1,7 @@
1
+ import type * as FernVenusApi from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const ReserveResponseState: core.serialization.Schema<serializers.ReserveResponseState.Raw, FernVenusApi.ReserveResponseState>;
5
+ export declare namespace ReserveResponseState {
6
+ type Raw = "reserved" | "charged" | "released";
7
+ }
@@ -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.ReserveResponseState = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ exports.ReserveResponseState = core.serialization.enum_(["reserved", "charged", "released"]);
@@ -0,0 +1,11 @@
1
+ import type * as FernVenusApi from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ import { SettleResponseReason } from "./SettleResponseReason.js";
5
+ export declare const SettleResponse: core.serialization.ObjectSchema<serializers.SettleResponse.Raw, FernVenusApi.SettleResponse>;
6
+ export declare namespace SettleResponse {
7
+ interface Raw {
8
+ settled: boolean;
9
+ reason?: (SettleResponseReason.Raw | null | undefined) | null;
10
+ }
11
+ }
@@ -0,0 +1,43 @@
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.SettleResponse = void 0;
38
+ const core = __importStar(require("../../core/index.js"));
39
+ const SettleResponseReason_js_1 = require("./SettleResponseReason.js");
40
+ exports.SettleResponse = core.serialization.object({
41
+ settled: core.serialization.boolean(),
42
+ reason: SettleResponseReason_js_1.SettleResponseReason.optionalNullable(),
43
+ });
@@ -0,0 +1,7 @@
1
+ import type * as FernVenusApi from "../../api/index.js";
2
+ import * as core from "../../core/index.js";
3
+ import type * as serializers from "../index.js";
4
+ export declare const SettleResponseReason: core.serialization.Schema<serializers.SettleResponseReason.Raw, FernVenusApi.SettleResponseReason>;
5
+ export declare namespace SettleResponseReason {
6
+ type Raw = "alreadySettled" | "leaseExpired";
7
+ }