@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
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
46
- "X-Fern-SDK-Version": "12.0.0",
47
- "User-Agent": "@fern-api/venus-api-sdk/12.0.0",
46
+ "X-Fern-SDK-Version": "12.1.0",
47
+ "User-Agent": "@fern-api/venus-api-sdk/12.1.0",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  }, options === null || options === void 0 ? void 0 : options.headers);
@@ -2,6 +2,7 @@ import * as FernVenusApi from "./api/index.js";
2
2
  import { ApiKeysClient } from "./api/resources/apiKeys/client/Client.js";
3
3
  import { AuthClient } from "./api/resources/auth/client/Client.js";
4
4
  import { GuestSessionClient } from "./api/resources/guestSession/client/Client.js";
5
+ import { InternalGuestSessionClient } from "./api/resources/internalGuestSession/client/Client.js";
5
6
  import { OrganizationClient } from "./api/resources/organization/client/Client.js";
6
7
  import { RegistryClient } from "./api/resources/registry/client/Client.js";
7
8
  import { UserClient } from "./api/resources/user/client/Client.js";
@@ -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
  *
@@ -48,9 +48,10 @@ const FernVenusApi = __importStar(require("./api/index.js"));
48
48
  const Client_js_1 = require("./api/resources/apiKeys/client/Client.js");
49
49
  const Client_js_2 = require("./api/resources/auth/client/Client.js");
50
50
  const Client_js_3 = require("./api/resources/guestSession/client/Client.js");
51
- const Client_js_4 = require("./api/resources/organization/client/Client.js");
52
- const Client_js_5 = require("./api/resources/registry/client/Client.js");
53
- const Client_js_6 = require("./api/resources/user/client/Client.js");
51
+ const Client_js_4 = require("./api/resources/internalGuestSession/client/Client.js");
52
+ const Client_js_5 = require("./api/resources/organization/client/Client.js");
53
+ const Client_js_6 = require("./api/resources/registry/client/Client.js");
54
+ const Client_js_7 = require("./api/resources/user/client/Client.js");
54
55
  const BaseClient_js_1 = require("./BaseClient.js");
55
56
  const headers_js_1 = require("./core/headers.js");
56
57
  const core = __importStar(require("./core/index.js"));
@@ -72,15 +73,19 @@ class FernVenusApiClient {
72
73
  }
73
74
  get organization() {
74
75
  var _a;
75
- return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_js_4.OrganizationClient(this._options)));
76
+ return ((_a = this._organization) !== null && _a !== void 0 ? _a : (this._organization = new Client_js_5.OrganizationClient(this._options)));
76
77
  }
77
78
  get registry() {
78
79
  var _a;
79
- return ((_a = this._registry) !== null && _a !== void 0 ? _a : (this._registry = new Client_js_5.RegistryClient(this._options)));
80
+ return ((_a = this._registry) !== null && _a !== void 0 ? _a : (this._registry = new Client_js_6.RegistryClient(this._options)));
80
81
  }
81
82
  get user() {
82
83
  var _a;
83
- return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_js_6.UserClient(this._options)));
84
+ return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_js_7.UserClient(this._options)));
85
+ }
86
+ get internalGuestSession() {
87
+ var _a;
88
+ return ((_a = this._internalGuestSession) !== null && _a !== void 0 ? _a : (this._internalGuestSession = new Client_js_4.InternalGuestSessionClient(this._options)));
84
89
  }
85
90
  /**
86
91
  * @param {FernVenusApiClient.RequestOptions} requestOptions - Request-specific configuration.
@@ -4,6 +4,9 @@ export * from "./auth/client/requests/index.js";
4
4
  export * as auth from "./auth/index.js";
5
5
  export * from "./guestSession/client/requests/index.js";
6
6
  export * as guestSession from "./guestSession/index.js";
7
+ export * from "./internalGuestSession/client/requests/index.js";
8
+ export * as internalGuestSession from "./internalGuestSession/index.js";
9
+ export * from "./internalGuestSession/types/index.js";
7
10
  export * from "./organization/client/requests/index.js";
8
11
  export * as organization from "./organization/index.js";
9
12
  export * from "./registry/client/requests/index.js";
@@ -36,13 +36,16 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.user = exports.registry = exports.organization = exports.guestSession = exports.auth = exports.apiKeys = void 0;
39
+ exports.user = exports.registry = exports.organization = exports.internalGuestSession = exports.guestSession = exports.auth = exports.apiKeys = void 0;
40
40
  __exportStar(require("./apiKeys/client/requests/index.js"), exports);
41
41
  exports.apiKeys = __importStar(require("./apiKeys/index.js"));
42
42
  __exportStar(require("./auth/client/requests/index.js"), exports);
43
43
  exports.auth = __importStar(require("./auth/index.js"));
44
44
  __exportStar(require("./guestSession/client/requests/index.js"), exports);
45
45
  exports.guestSession = __importStar(require("./guestSession/index.js"));
46
+ __exportStar(require("./internalGuestSession/client/requests/index.js"), exports);
47
+ exports.internalGuestSession = __importStar(require("./internalGuestSession/index.js"));
48
+ __exportStar(require("./internalGuestSession/types/index.js"), exports);
46
49
  __exportStar(require("./organization/client/requests/index.js"), exports);
47
50
  exports.organization = __importStar(require("./organization/index.js"));
48
51
  __exportStar(require("./registry/client/requests/index.js"), exports);
@@ -0,0 +1,55 @@
1
+ import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
2
+ import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
3
+ import * as core from "../../../../core/index.js";
4
+ import * as FernVenusApi from "../../../index.js";
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,314 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
37
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
38
+ return new (P || (P = Promise))(function (resolve, reject) {
39
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
40
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
41
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
42
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
43
+ });
44
+ };
45
+ var __rest = (this && this.__rest) || function (s, e) {
46
+ var t = {};
47
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
48
+ t[p] = s[p];
49
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
50
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
51
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
52
+ t[p[i]] = s[p[i]];
53
+ }
54
+ return t;
55
+ };
56
+ Object.defineProperty(exports, "__esModule", { value: true });
57
+ exports.InternalGuestSessionClient = void 0;
58
+ const BaseClient_js_1 = require("../../../../BaseClient.js");
59
+ const headers_js_1 = require("../../../../core/headers.js");
60
+ const core = __importStar(require("../../../../core/index.js"));
61
+ const serializers = __importStar(require("../../../../serialization/index.js"));
62
+ const FernVenusApi = __importStar(require("../../../index.js"));
63
+ class InternalGuestSessionClient {
64
+ constructor(options) {
65
+ this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
66
+ }
67
+ /**
68
+ * The session behind a guest organization, for the service holding
69
+ * its work. This is the read the pull model in ``guest_resources`` rests
70
+ * on: FDR and Fiddle know the ``guest-<id>`` org their rows belong to, not
71
+ * the session ID, token or claim secret, so this is keyed by the org and
72
+ * opened by the service credential alone.
73
+ *
74
+ * @param {FernVenusApi.ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest} request
75
+ * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
76
+ *
77
+ * @example
78
+ * await client.internalGuestSession.readByOrg({
79
+ * orgId: "org_id"
80
+ * })
81
+ */
82
+ readByOrg(request, requestOptions) {
83
+ return core.HttpResponsePromise.fromPromise(this.__readByOrg(request, requestOptions));
84
+ }
85
+ __readByOrg(request, requestOptions) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ var _a, _b, _c, _d, _e, _f, _g, _h;
88
+ const { orgId } = request;
89
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
90
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
91
+ const _response = yield core.fetcher({
92
+ 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)}`),
93
+ method: "GET",
94
+ headers: _headers,
95
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
96
+ 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,
97
+ 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,
98
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
100
+ logging: this._options.logging,
101
+ });
102
+ if (_response.ok) {
103
+ return {
104
+ data: {
105
+ ok: true,
106
+ body: serializers.InternalGuestSessionResponse.parseOrThrow(_response.body, {
107
+ unrecognizedObjectKeys: "passthrough",
108
+ allowUnrecognizedUnionMembers: true,
109
+ allowUnrecognizedEnumValues: true,
110
+ skipValidation: true,
111
+ breadcrumbsPrefix: ["response"],
112
+ }),
113
+ headers: _response.headers,
114
+ rawResponse: _response.rawResponse,
115
+ },
116
+ rawResponse: _response.rawResponse,
117
+ };
118
+ }
119
+ if (_response.error.reason === "status-code") {
120
+ switch (_response.error.statusCode) {
121
+ case 422:
122
+ return {
123
+ data: {
124
+ ok: false,
125
+ error: FernVenusApi.internalGuestSession.readByOrg.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
126
+ unrecognizedObjectKeys: "passthrough",
127
+ allowUnrecognizedUnionMembers: true,
128
+ allowUnrecognizedEnumValues: true,
129
+ skipValidation: true,
130
+ breadcrumbsPrefix: ["response"],
131
+ })),
132
+ rawResponse: _response.rawResponse,
133
+ },
134
+ rawResponse: _response.rawResponse,
135
+ };
136
+ }
137
+ }
138
+ return {
139
+ data: {
140
+ ok: false,
141
+ error: FernVenusApi.internalGuestSession.readByOrg.Error._unknown(_response.error),
142
+ rawResponse: _response.rawResponse,
143
+ },
144
+ rawResponse: _response.rawResponse,
145
+ };
146
+ });
147
+ }
148
+ /**
149
+ * @param {FernVenusApi.ReserveRequest} request
150
+ * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
151
+ *
152
+ * @example
153
+ * await client.internalGuestSession.reserve({
154
+ * sessionId: "session_id",
155
+ * kind: "sdkBuild"
156
+ * })
157
+ */
158
+ reserve(request, requestOptions) {
159
+ return core.HttpResponsePromise.fromPromise(this.__reserve(request, requestOptions));
160
+ }
161
+ __reserve(request, requestOptions) {
162
+ return __awaiter(this, void 0, void 0, function* () {
163
+ var _a, _b, _c, _d, _e, _f, _g, _h;
164
+ const { sessionId } = request, _body = __rest(request, ["sessionId"]);
165
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
166
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
167
+ const _response = yield core.fetcher({
168
+ 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`),
169
+ method: "POST",
170
+ headers: _headers,
171
+ contentType: "application/json",
172
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
173
+ requestType: "json",
174
+ body: serializers.ReserveRequest.jsonOrThrow(_body, {
175
+ unrecognizedObjectKeys: "strip",
176
+ omitUndefined: true,
177
+ }),
178
+ 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,
179
+ 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,
180
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
181
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
182
+ logging: this._options.logging,
183
+ });
184
+ if (_response.ok) {
185
+ return {
186
+ data: {
187
+ ok: true,
188
+ body: serializers.ReserveResponse.parseOrThrow(_response.body, {
189
+ unrecognizedObjectKeys: "passthrough",
190
+ allowUnrecognizedUnionMembers: true,
191
+ allowUnrecognizedEnumValues: true,
192
+ skipValidation: true,
193
+ breadcrumbsPrefix: ["response"],
194
+ }),
195
+ headers: _response.headers,
196
+ rawResponse: _response.rawResponse,
197
+ },
198
+ rawResponse: _response.rawResponse,
199
+ };
200
+ }
201
+ if (_response.error.reason === "status-code") {
202
+ switch (_response.error.statusCode) {
203
+ case 422:
204
+ return {
205
+ data: {
206
+ ok: false,
207
+ error: FernVenusApi.internalGuestSession.reserve.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
208
+ unrecognizedObjectKeys: "passthrough",
209
+ allowUnrecognizedUnionMembers: true,
210
+ allowUnrecognizedEnumValues: true,
211
+ skipValidation: true,
212
+ breadcrumbsPrefix: ["response"],
213
+ })),
214
+ rawResponse: _response.rawResponse,
215
+ },
216
+ rawResponse: _response.rawResponse,
217
+ };
218
+ }
219
+ }
220
+ return {
221
+ data: {
222
+ ok: false,
223
+ error: FernVenusApi.internalGuestSession.reserve.Error._unknown(_response.error),
224
+ rawResponse: _response.rawResponse,
225
+ },
226
+ rawResponse: _response.rawResponse,
227
+ };
228
+ });
229
+ }
230
+ /**
231
+ * @param {FernVenusApi.SettleRequest} request
232
+ * @param {InternalGuestSessionClient.RequestOptions} requestOptions - Request-specific configuration.
233
+ *
234
+ * @example
235
+ * await client.internalGuestSession.settle({
236
+ * sessionId: "session_id",
237
+ * reservationId: "reservationId",
238
+ * outcome: "succeeded"
239
+ * })
240
+ */
241
+ settle(request, requestOptions) {
242
+ return core.HttpResponsePromise.fromPromise(this.__settle(request, requestOptions));
243
+ }
244
+ __settle(request, requestOptions) {
245
+ return __awaiter(this, void 0, void 0, function* () {
246
+ var _a, _b, _c, _d, _e, _f, _g, _h;
247
+ const { sessionId } = request, _body = __rest(request, ["sessionId"]);
248
+ const _authRequest = yield this._options.authProvider.getAuthRequest();
249
+ const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
250
+ const _response = yield core.fetcher({
251
+ 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`),
252
+ method: "POST",
253
+ headers: _headers,
254
+ contentType: "application/json",
255
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
256
+ requestType: "json",
257
+ body: serializers.SettleRequest.jsonOrThrow(_body, {
258
+ unrecognizedObjectKeys: "strip",
259
+ omitUndefined: true,
260
+ }),
261
+ 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,
262
+ 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,
263
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
264
+ fetchFn: (_h = this._options) === null || _h === void 0 ? void 0 : _h.fetch,
265
+ logging: this._options.logging,
266
+ });
267
+ if (_response.ok) {
268
+ return {
269
+ data: {
270
+ ok: true,
271
+ body: serializers.SettleResponse.parseOrThrow(_response.body, {
272
+ unrecognizedObjectKeys: "passthrough",
273
+ allowUnrecognizedUnionMembers: true,
274
+ allowUnrecognizedEnumValues: true,
275
+ skipValidation: true,
276
+ breadcrumbsPrefix: ["response"],
277
+ }),
278
+ headers: _response.headers,
279
+ rawResponse: _response.rawResponse,
280
+ },
281
+ rawResponse: _response.rawResponse,
282
+ };
283
+ }
284
+ if (_response.error.reason === "status-code") {
285
+ switch (_response.error.statusCode) {
286
+ case 422:
287
+ return {
288
+ data: {
289
+ ok: false,
290
+ error: FernVenusApi.internalGuestSession.settle.Error.unprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
291
+ unrecognizedObjectKeys: "passthrough",
292
+ allowUnrecognizedUnionMembers: true,
293
+ allowUnrecognizedEnumValues: true,
294
+ skipValidation: true,
295
+ breadcrumbsPrefix: ["response"],
296
+ })),
297
+ rawResponse: _response.rawResponse,
298
+ },
299
+ rawResponse: _response.rawResponse,
300
+ };
301
+ }
302
+ }
303
+ return {
304
+ data: {
305
+ ok: false,
306
+ error: FernVenusApi.internalGuestSession.settle.Error._unknown(_response.error),
307
+ rawResponse: _response.rawResponse,
308
+ },
309
+ rawResponse: _response.rawResponse,
310
+ };
311
+ });
312
+ }
313
+ }
314
+ exports.InternalGuestSessionClient = InternalGuestSessionClient;
@@ -0,0 +1,4 @@
1
+ export * as readByOrg from "./readByOrg.js";
2
+ export * from "./requests/index.js";
3
+ export * as reserve from "./reserve.js";
4
+ export * as settle from "./settle.js";
@@ -0,0 +1,43 @@
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.settle = exports.reserve = exports.readByOrg = void 0;
40
+ exports.readByOrg = __importStar(require("./readByOrg.js"));
41
+ __exportStar(require("./requests/index.js"), exports);
42
+ exports.reserve = __importStar(require("./reserve.js"));
43
+ exports.settle = __importStar(require("./settle.js"));
@@ -0,0 +1,25 @@
1
+ import type * as core from "../../../../core/index.js";
2
+ import * as FernVenusApi from "../../../index.js";
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,66 @@
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.Error = void 0;
38
+ const FernVenusApi = __importStar(require("../../../index.js"));
39
+ exports.Error = {
40
+ unprocessableEntityError: (value) => {
41
+ return {
42
+ content: value,
43
+ statusCode: 422,
44
+ _visit: function (visitor) {
45
+ return FernVenusApi.internalGuestSession.readByOrg.Error._visit(this, visitor);
46
+ },
47
+ };
48
+ },
49
+ _unknown: (fetcherError) => {
50
+ return {
51
+ statusCode: undefined,
52
+ content: fetcherError,
53
+ _visit: function (visitor) {
54
+ return FernVenusApi.internalGuestSession.readByOrg.Error._visit(this, visitor);
55
+ },
56
+ };
57
+ },
58
+ _visit: (value, visitor) => {
59
+ switch (value.statusCode) {
60
+ case 422:
61
+ return visitor.unprocessableEntityError(value.content);
62
+ default:
63
+ return visitor._other(value.content);
64
+ }
65
+ },
66
+ };
@@ -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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import type * as FernVenusApi from "../../../../index.js";
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,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });