@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,25 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as FernVenusApi from "../../../index.mjs";
3
+ export type Error = FernVenusApi.internalGuestSession.reserve.Error.UnprocessableEntityError | FernVenusApi.internalGuestSession.reserve.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.reserve.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.reserve.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.internalGuestSession.reserve.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.internalGuestSession.reserve.Error, visitor: FernVenusApi.internalGuestSession.reserve.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.reserve.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.reserve.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,25 @@
1
+ import type * as core from "../../../../core/index.mjs";
2
+ import * as FernVenusApi from "../../../index.mjs";
3
+ export type Error = FernVenusApi.internalGuestSession.settle.Error.UnprocessableEntityError | FernVenusApi.internalGuestSession.settle.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.settle.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.settle.Error.UnprocessableEntityError;
23
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.internalGuestSession.settle.Error._Unknown;
24
+ readonly _visit: <_Result>(value: FernVenusApi.internalGuestSession.settle.Error, visitor: FernVenusApi.internalGuestSession.settle.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.settle.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.settle.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,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,5 @@
1
+ export declare const ReserveRequestKind: {
2
+ readonly SdkBuild: "sdkBuild";
3
+ readonly DocsPublish: "docsPublish";
4
+ };
5
+ export type ReserveRequestKind = (typeof ReserveRequestKind)[keyof typeof ReserveRequestKind];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const ReserveRequestKind = {
3
+ SdkBuild: "sdkBuild",
4
+ DocsPublish: "docsPublish",
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare const SettleRequestOutcome: {
2
+ readonly Succeeded: "succeeded";
3
+ readonly Failed: "failed";
4
+ };
5
+ export type SettleRequestOutcome = (typeof SettleRequestOutcome)[keyof typeof SettleRequestOutcome];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const SettleRequestOutcome = {
3
+ Succeeded: "succeeded",
4
+ Failed: "failed",
5
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./ReserveRequestKind.mjs";
2
+ export * from "./SettleRequestOutcome.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./ReserveRequestKind.mjs";
2
+ export * from "./SettleRequestOutcome.mjs";
@@ -0,0 +1,22 @@
1
+ import type * as FernVenusApi from "../index.mjs";
2
+ /**
3
+ * What FDR and Fiddle need to know about the session behind a
4
+ * ``guest-<id>`` organization they hold work for (RFC FERN-2 section 4.2).
5
+ *
6
+ * Unlike ``GET /guest-sessions/{id}``, this names every status, terminal
7
+ * ones included: ``claimed`` with a ``claimedOrganizationId`` other than
8
+ * ``organizationId`` means "re-home the work there"; ``expired``,
9
+ * ``deleted`` and ``takenDown`` mean "remove it". ``expired`` is said
10
+ * only once a claim is no longer possible -- ``expiresAt`` plus the
11
+ * 15-minute claim grace -- so work finished at the last minute is still
12
+ * there to be claimed. Nothing here is secret.
13
+ */
14
+ export interface InternalGuestSessionResponse {
15
+ sessionId: string;
16
+ organizationId: string;
17
+ status: FernVenusApi.InternalGuestSessionResponseStatus;
18
+ createdAt: Date;
19
+ expiresAt: Date;
20
+ claimedAt: Date | null;
21
+ claimedOrganizationId: string | null;
22
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ export declare const InternalGuestSessionResponseStatus: {
2
+ readonly Active: "active";
3
+ readonly Claiming: "claiming";
4
+ readonly Claimed: "claimed";
5
+ readonly Expired: "expired";
6
+ readonly Deleted: "deleted";
7
+ readonly TakenDown: "takenDown";
8
+ };
9
+ export type InternalGuestSessionResponseStatus = (typeof InternalGuestSessionResponseStatus)[keyof typeof InternalGuestSessionResponseStatus];
@@ -0,0 +1,9 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const InternalGuestSessionResponseStatus = {
3
+ Active: "active",
4
+ Claiming: "claiming",
5
+ Claimed: "claimed",
6
+ Expired: "expired",
7
+ Deleted: "deleted",
8
+ TakenDown: "takenDown",
9
+ };
@@ -0,0 +1,6 @@
1
+ export interface Limit {
2
+ name: string;
3
+ max: number;
4
+ used: number;
5
+ sessionExpiresAt: Date;
6
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,12 @@
1
+ import type * as FernVenusApi from "../index.mjs";
2
+ export interface ReserveResponse {
3
+ reservationId: string;
4
+ sessionId: string;
5
+ organizationId: string;
6
+ kind: FernVenusApi.ReserveResponseKind;
7
+ replayed: boolean;
8
+ state: FernVenusApi.ReserveResponseState;
9
+ leaseExpiresAt: Date;
10
+ leaseExpired: boolean;
11
+ limit: FernVenusApi.Limit;
12
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const ReserveResponseKind: {
2
+ readonly SdkBuild: "sdkBuild";
3
+ readonly DocsPublish: "docsPublish";
4
+ };
5
+ export type ReserveResponseKind = (typeof ReserveResponseKind)[keyof typeof ReserveResponseKind];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const ReserveResponseKind = {
3
+ SdkBuild: "sdkBuild",
4
+ DocsPublish: "docsPublish",
5
+ };
@@ -0,0 +1,6 @@
1
+ export declare const ReserveResponseState: {
2
+ readonly Reserved: "reserved";
3
+ readonly Charged: "charged";
4
+ readonly Released: "released";
5
+ };
6
+ export type ReserveResponseState = (typeof ReserveResponseState)[keyof typeof ReserveResponseState];
@@ -0,0 +1,6 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const ReserveResponseState = {
3
+ Reserved: "reserved",
4
+ Charged: "charged",
5
+ Released: "released",
6
+ };
@@ -0,0 +1,5 @@
1
+ import type * as FernVenusApi from "../index.mjs";
2
+ export interface SettleResponse {
3
+ settled: boolean;
4
+ reason?: FernVenusApi.SettleResponseReason | null;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const SettleResponseReason: {
2
+ readonly AlreadySettled: "alreadySettled";
3
+ readonly LeaseExpired: "leaseExpired";
4
+ };
5
+ export type SettleResponseReason = (typeof SettleResponseReason)[keyof typeof SettleResponseReason];
@@ -0,0 +1,5 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export const SettleResponseReason = {
3
+ AlreadySettled: "alreadySettled",
4
+ LeaseExpired: "leaseExpired",
5
+ };
@@ -21,8 +21,11 @@ export * from "./GoneErrorBodyContentCode.mjs";
21
21
  export * from "./GuestSessionLimits.mjs";
22
22
  export * from "./GuestSessionUsage.mjs";
23
23
  export * from "./HttpValidationError.mjs";
24
+ export * from "./InternalGuestSessionResponse.mjs";
25
+ export * from "./InternalGuestSessionResponseStatus.mjs";
24
26
  export * from "./JwtResponse.mjs";
25
27
  export * from "./LightweightUser.mjs";
28
+ export * from "./Limit.mjs";
26
29
  export * from "./LinkAccountsResponse.mjs";
27
30
  export * from "./Maven.mjs";
28
31
  export * from "./MavenRegistryToken.mjs";
@@ -38,10 +41,15 @@ export * from "./Pypi.mjs";
38
41
  export * from "./PypiRegistryToken.mjs";
39
42
  export * from "./RegistryToken.mjs";
40
43
  export * from "./RegistryTokens.mjs";
44
+ export * from "./ReserveResponse.mjs";
45
+ export * from "./ReserveResponseKind.mjs";
46
+ export * from "./ReserveResponseState.mjs";
41
47
  export * from "./Revoked.mjs";
42
48
  export * from "./ServiceUnavailableErrorBody.mjs";
43
49
  export * from "./ServiceUnavailableErrorBodyContent.mjs";
44
50
  export * from "./ServiceUnavailableErrorBodyContentCode.mjs";
51
+ export * from "./SettleResponse.mjs";
52
+ export * from "./SettleResponseReason.mjs";
45
53
  export * from "./TokenMetadata.mjs";
46
54
  export * from "./TokenStatus.mjs";
47
55
  export * from "./TooManyRequestsErrorBody.mjs";
@@ -21,8 +21,11 @@ export * from "./GoneErrorBodyContentCode.mjs";
21
21
  export * from "./GuestSessionLimits.mjs";
22
22
  export * from "./GuestSessionUsage.mjs";
23
23
  export * from "./HttpValidationError.mjs";
24
+ export * from "./InternalGuestSessionResponse.mjs";
25
+ export * from "./InternalGuestSessionResponseStatus.mjs";
24
26
  export * from "./JwtResponse.mjs";
25
27
  export * from "./LightweightUser.mjs";
28
+ export * from "./Limit.mjs";
26
29
  export * from "./LinkAccountsResponse.mjs";
27
30
  export * from "./Maven.mjs";
28
31
  export * from "./MavenRegistryToken.mjs";
@@ -38,10 +41,15 @@ export * from "./Pypi.mjs";
38
41
  export * from "./PypiRegistryToken.mjs";
39
42
  export * from "./RegistryToken.mjs";
40
43
  export * from "./RegistryTokens.mjs";
44
+ export * from "./ReserveResponse.mjs";
45
+ export * from "./ReserveResponseKind.mjs";
46
+ export * from "./ReserveResponseState.mjs";
41
47
  export * from "./Revoked.mjs";
42
48
  export * from "./ServiceUnavailableErrorBody.mjs";
43
49
  export * from "./ServiceUnavailableErrorBodyContent.mjs";
44
50
  export * from "./ServiceUnavailableErrorBodyContentCode.mjs";
51
+ export * from "./SettleResponse.mjs";
52
+ export * from "./SettleResponseReason.mjs";
45
53
  export * from "./TokenMetadata.mjs";
46
54
  export * from "./TokenStatus.mjs";
47
55
  export * from "./TooManyRequestsErrorBody.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";
@@ -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 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1 @@
1
+ export * from "./requests/index.mjs";
@@ -0,0 +1,12 @@
1
+ import type * as FernVenusApi from "../../../../../api/index.mjs";
2
+ import * as core from "../../../../../core/index.mjs";
3
+ import type * as serializers from "../../../../index.mjs";
4
+ import { ReserveRequestKind } from "../../types/ReserveRequestKind.mjs";
5
+ export declare const ReserveRequest: core.serialization.Schema<serializers.ReserveRequest.Raw, Omit<FernVenusApi.ReserveRequest, "sessionId">>;
6
+ export declare namespace ReserveRequest {
7
+ interface Raw {
8
+ kind: ReserveRequestKind.Raw;
9
+ idempotencyKey?: (string | null | undefined) | null;
10
+ leaseSeconds?: number | null;
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../../core/index.mjs";
3
+ import { ReserveRequestKind } from "../../types/ReserveRequestKind.mjs";
4
+ export const ReserveRequest = core.serialization.object({
5
+ kind: ReserveRequestKind,
6
+ idempotencyKey: core.serialization.string().optionalNullable(),
7
+ leaseSeconds: core.serialization.number().optional(),
8
+ });
@@ -0,0 +1,11 @@
1
+ import type * as FernVenusApi from "../../../../../api/index.mjs";
2
+ import * as core from "../../../../../core/index.mjs";
3
+ import type * as serializers from "../../../../index.mjs";
4
+ import { SettleRequestOutcome } from "../../types/SettleRequestOutcome.mjs";
5
+ export declare const SettleRequest: core.serialization.Schema<serializers.SettleRequest.Raw, Omit<FernVenusApi.SettleRequest, "sessionId">>;
6
+ export declare namespace SettleRequest {
7
+ interface Raw {
8
+ reservationId: string;
9
+ outcome: SettleRequestOutcome.Raw;
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../../core/index.mjs";
3
+ import { SettleRequestOutcome } from "../../types/SettleRequestOutcome.mjs";
4
+ export const SettleRequest = core.serialization.object({
5
+ reservationId: core.serialization.string(),
6
+ outcome: SettleRequestOutcome,
7
+ });
@@ -0,0 +1,2 @@
1
+ export { ReserveRequest } from "./ReserveRequest.mjs";
2
+ export { SettleRequest } from "./SettleRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export { ReserveRequest } from "./ReserveRequest.mjs";
2
+ export { SettleRequest } from "./SettleRequest.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./client/index.mjs";
2
+ export * from "./types/index.mjs";
@@ -0,0 +1,7 @@
1
+ import type * as FernVenusApi from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
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,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const ReserveRequestKind = core.serialization.enum_(["sdkBuild", "docsPublish"]);
@@ -0,0 +1,7 @@
1
+ import type * as FernVenusApi from "../../../../api/index.mjs";
2
+ import * as core from "../../../../core/index.mjs";
3
+ import type * as serializers from "../../../index.mjs";
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,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../../../core/index.mjs";
3
+ export const SettleRequestOutcome = core.serialization.enum_(["succeeded", "failed"]);
@@ -0,0 +1,2 @@
1
+ export * from "./ReserveRequestKind.mjs";
2
+ export * from "./SettleRequestOutcome.mjs";
@@ -0,0 +1,2 @@
1
+ export * from "./ReserveRequestKind.mjs";
2
+ export * from "./SettleRequestOutcome.mjs";
@@ -0,0 +1,16 @@
1
+ import type * as FernVenusApi from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { InternalGuestSessionResponseStatus } from "./InternalGuestSessionResponseStatus.mjs";
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,12 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { InternalGuestSessionResponseStatus } from "./InternalGuestSessionResponseStatus.mjs";
4
+ export const InternalGuestSessionResponse = core.serialization.object({
5
+ sessionId: core.serialization.string(),
6
+ organizationId: core.serialization.string(),
7
+ status: InternalGuestSessionResponseStatus,
8
+ createdAt: core.serialization.date(),
9
+ expiresAt: core.serialization.date(),
10
+ claimedAt: core.serialization.date().nullable(),
11
+ claimedOrganizationId: core.serialization.string().nullable(),
12
+ });
@@ -0,0 +1,7 @@
1
+ import type * as FernVenusApi from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
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,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const InternalGuestSessionResponseStatus = core.serialization.enum_(["active", "claiming", "claimed", "expired", "deleted", "takenDown"]);
@@ -0,0 +1,12 @@
1
+ import type * as FernVenusApi from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
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,8 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const Limit = core.serialization.object({
4
+ name: core.serialization.string(),
5
+ max: core.serialization.number(),
6
+ used: core.serialization.number(),
7
+ sessionExpiresAt: core.serialization.date(),
8
+ });
@@ -0,0 +1,20 @@
1
+ import type * as FernVenusApi from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
4
+ import { Limit } from "./Limit.mjs";
5
+ import { ReserveResponseKind } from "./ReserveResponseKind.mjs";
6
+ import { ReserveResponseState } from "./ReserveResponseState.mjs";
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,16 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ import { Limit } from "./Limit.mjs";
4
+ import { ReserveResponseKind } from "./ReserveResponseKind.mjs";
5
+ import { ReserveResponseState } from "./ReserveResponseState.mjs";
6
+ export const ReserveResponse = core.serialization.object({
7
+ reservationId: core.serialization.string(),
8
+ sessionId: core.serialization.string(),
9
+ organizationId: core.serialization.string(),
10
+ kind: ReserveResponseKind,
11
+ replayed: core.serialization.boolean(),
12
+ state: ReserveResponseState,
13
+ leaseExpiresAt: core.serialization.date(),
14
+ leaseExpired: core.serialization.boolean(),
15
+ limit: Limit,
16
+ });
@@ -0,0 +1,7 @@
1
+ import type * as FernVenusApi from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
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,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const ReserveResponseKind = core.serialization.enum_(["sdkBuild", "docsPublish"]);
@@ -0,0 +1,7 @@
1
+ import type * as FernVenusApi from "../../api/index.mjs";
2
+ import * as core from "../../core/index.mjs";
3
+ import type * as serializers from "../index.mjs";
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,3 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ import * as core from "../../core/index.mjs";
3
+ export const ReserveResponseState = core.serialization.enum_(["reserved", "charged", "released"]);