@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.
- package/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/Client.d.ts +3 -0
- package/dist/cjs/Client.js +11 -6
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/internalGuestSession/client/Client.d.ts +55 -0
- package/dist/cjs/api/resources/internalGuestSession/client/Client.js +314 -0
- package/dist/cjs/api/resources/internalGuestSession/client/index.d.ts +4 -0
- package/dist/cjs/api/resources/internalGuestSession/client/index.js +43 -0
- package/dist/cjs/api/resources/internalGuestSession/client/readByOrg.d.ts +25 -0
- package/dist/cjs/api/resources/internalGuestSession/client/readByOrg.js +66 -0
- package/dist/cjs/api/resources/internalGuestSession/client/requests/ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest.d.ts +9 -0
- package/dist/cjs/api/resources/internalGuestSession/client/requests/ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest.js +3 -0
- package/dist/cjs/api/resources/internalGuestSession/client/requests/ReserveRequest.d.ts +14 -0
- package/dist/cjs/api/resources/internalGuestSession/client/requests/ReserveRequest.js +3 -0
- package/dist/cjs/api/resources/internalGuestSession/client/requests/SettleRequest.d.ts +14 -0
- package/dist/cjs/api/resources/internalGuestSession/client/requests/SettleRequest.js +3 -0
- package/dist/cjs/api/resources/internalGuestSession/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/internalGuestSession/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/internalGuestSession/client/reserve.d.ts +25 -0
- package/dist/cjs/api/resources/internalGuestSession/client/reserve.js +66 -0
- package/dist/cjs/api/resources/internalGuestSession/client/settle.d.ts +25 -0
- package/dist/cjs/api/resources/internalGuestSession/client/settle.js +66 -0
- package/dist/cjs/api/resources/internalGuestSession/index.d.ts +2 -0
- package/dist/cjs/api/resources/internalGuestSession/index.js +18 -0
- package/dist/cjs/api/resources/internalGuestSession/types/ReserveRequestKind.d.ts +5 -0
- package/dist/cjs/api/resources/internalGuestSession/types/ReserveRequestKind.js +8 -0
- package/dist/cjs/api/resources/internalGuestSession/types/SettleRequestOutcome.d.ts +5 -0
- package/dist/cjs/api/resources/internalGuestSession/types/SettleRequestOutcome.js +8 -0
- package/dist/cjs/api/resources/internalGuestSession/types/index.d.ts +2 -0
- package/dist/cjs/api/resources/internalGuestSession/types/index.js +18 -0
- package/dist/cjs/api/types/InternalGuestSessionResponse.d.ts +22 -0
- package/dist/cjs/api/types/InternalGuestSessionResponse.js +3 -0
- package/dist/cjs/api/types/InternalGuestSessionResponseStatus.d.ts +9 -0
- package/dist/cjs/api/types/InternalGuestSessionResponseStatus.js +12 -0
- package/dist/cjs/api/types/Limit.d.ts +6 -0
- package/dist/cjs/api/types/Limit.js +3 -0
- package/dist/cjs/api/types/ReserveResponse.d.ts +12 -0
- package/dist/cjs/api/types/ReserveResponse.js +3 -0
- package/dist/cjs/api/types/ReserveResponseKind.d.ts +5 -0
- package/dist/cjs/api/types/ReserveResponseKind.js +8 -0
- package/dist/cjs/api/types/ReserveResponseState.d.ts +6 -0
- package/dist/cjs/api/types/ReserveResponseState.js +9 -0
- package/dist/cjs/api/types/SettleResponse.d.ts +5 -0
- package/dist/cjs/api/types/SettleResponse.js +3 -0
- package/dist/cjs/api/types/SettleResponseReason.d.ts +5 -0
- package/dist/cjs/api/types/SettleResponseReason.js +8 -0
- package/dist/cjs/api/types/index.d.ts +8 -0
- package/dist/cjs/api/types/index.js +8 -0
- package/dist/cjs/serialization/resources/index.d.ts +3 -0
- package/dist/cjs/serialization/resources/index.js +4 -1
- package/dist/cjs/serialization/resources/internalGuestSession/client/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/internalGuestSession/client/index.js +17 -0
- package/dist/cjs/serialization/resources/internalGuestSession/client/requests/ReserveRequest.d.ts +12 -0
- package/dist/cjs/serialization/resources/internalGuestSession/client/requests/ReserveRequest.js +44 -0
- package/dist/cjs/serialization/resources/internalGuestSession/client/requests/SettleRequest.d.ts +11 -0
- package/dist/cjs/serialization/resources/internalGuestSession/client/requests/SettleRequest.js +43 -0
- package/dist/cjs/serialization/resources/internalGuestSession/client/requests/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/internalGuestSession/client/requests/index.js +7 -0
- package/dist/cjs/serialization/resources/internalGuestSession/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/internalGuestSession/index.js +18 -0
- package/dist/cjs/serialization/resources/internalGuestSession/types/ReserveRequestKind.d.ts +7 -0
- package/dist/cjs/serialization/resources/internalGuestSession/types/ReserveRequestKind.js +39 -0
- package/dist/cjs/serialization/resources/internalGuestSession/types/SettleRequestOutcome.d.ts +7 -0
- package/dist/cjs/serialization/resources/internalGuestSession/types/SettleRequestOutcome.js +39 -0
- package/dist/cjs/serialization/resources/internalGuestSession/types/index.d.ts +2 -0
- package/dist/cjs/serialization/resources/internalGuestSession/types/index.js +18 -0
- package/dist/cjs/serialization/types/InternalGuestSessionResponse.d.ts +16 -0
- package/dist/cjs/serialization/types/InternalGuestSessionResponse.js +48 -0
- package/dist/cjs/serialization/types/InternalGuestSessionResponseStatus.d.ts +7 -0
- package/dist/cjs/serialization/types/InternalGuestSessionResponseStatus.js +39 -0
- package/dist/cjs/serialization/types/Limit.d.ts +12 -0
- package/dist/cjs/serialization/types/Limit.js +44 -0
- package/dist/cjs/serialization/types/ReserveResponse.d.ts +20 -0
- package/dist/cjs/serialization/types/ReserveResponse.js +52 -0
- package/dist/cjs/serialization/types/ReserveResponseKind.d.ts +7 -0
- package/dist/cjs/serialization/types/ReserveResponseKind.js +39 -0
- package/dist/cjs/serialization/types/ReserveResponseState.d.ts +7 -0
- package/dist/cjs/serialization/types/ReserveResponseState.js +39 -0
- package/dist/cjs/serialization/types/SettleResponse.d.ts +11 -0
- package/dist/cjs/serialization/types/SettleResponse.js +43 -0
- package/dist/cjs/serialization/types/SettleResponseReason.d.ts +7 -0
- package/dist/cjs/serialization/types/SettleResponseReason.js +39 -0
- package/dist/cjs/serialization/types/index.d.ts +8 -0
- package/dist/cjs/serialization/types/index.js +8 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/Client.d.mts +3 -0
- package/dist/esm/Client.mjs +5 -0
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/internalGuestSession/client/Client.d.mts +55 -0
- package/dist/esm/api/resources/internalGuestSession/client/Client.mjs +277 -0
- package/dist/esm/api/resources/internalGuestSession/client/index.d.mts +4 -0
- package/dist/esm/api/resources/internalGuestSession/client/index.mjs +4 -0
- package/dist/esm/api/resources/internalGuestSession/client/readByOrg.d.mts +25 -0
- package/dist/esm/api/resources/internalGuestSession/client/readByOrg.mjs +30 -0
- package/dist/esm/api/resources/internalGuestSession/client/requests/ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest.d.mts +9 -0
- package/dist/esm/api/resources/internalGuestSession/client/requests/ReadByOrgInternalGuestSessionsByOrgOrgIdGetRequest.mjs +2 -0
- package/dist/esm/api/resources/internalGuestSession/client/requests/ReserveRequest.d.mts +14 -0
- package/dist/esm/api/resources/internalGuestSession/client/requests/ReserveRequest.mjs +2 -0
- package/dist/esm/api/resources/internalGuestSession/client/requests/SettleRequest.d.mts +14 -0
- package/dist/esm/api/resources/internalGuestSession/client/requests/SettleRequest.mjs +2 -0
- package/dist/esm/api/resources/internalGuestSession/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/internalGuestSession/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/internalGuestSession/client/reserve.d.mts +25 -0
- package/dist/esm/api/resources/internalGuestSession/client/reserve.mjs +30 -0
- package/dist/esm/api/resources/internalGuestSession/client/settle.d.mts +25 -0
- package/dist/esm/api/resources/internalGuestSession/client/settle.mjs +30 -0
- package/dist/esm/api/resources/internalGuestSession/index.d.mts +2 -0
- package/dist/esm/api/resources/internalGuestSession/index.mjs +2 -0
- package/dist/esm/api/resources/internalGuestSession/types/ReserveRequestKind.d.mts +5 -0
- package/dist/esm/api/resources/internalGuestSession/types/ReserveRequestKind.mjs +5 -0
- package/dist/esm/api/resources/internalGuestSession/types/SettleRequestOutcome.d.mts +5 -0
- package/dist/esm/api/resources/internalGuestSession/types/SettleRequestOutcome.mjs +5 -0
- package/dist/esm/api/resources/internalGuestSession/types/index.d.mts +2 -0
- package/dist/esm/api/resources/internalGuestSession/types/index.mjs +2 -0
- package/dist/esm/api/types/InternalGuestSessionResponse.d.mts +22 -0
- package/dist/esm/api/types/InternalGuestSessionResponse.mjs +2 -0
- package/dist/esm/api/types/InternalGuestSessionResponseStatus.d.mts +9 -0
- package/dist/esm/api/types/InternalGuestSessionResponseStatus.mjs +9 -0
- package/dist/esm/api/types/Limit.d.mts +6 -0
- package/dist/esm/api/types/Limit.mjs +2 -0
- package/dist/esm/api/types/ReserveResponse.d.mts +12 -0
- package/dist/esm/api/types/ReserveResponse.mjs +2 -0
- package/dist/esm/api/types/ReserveResponseKind.d.mts +5 -0
- package/dist/esm/api/types/ReserveResponseKind.mjs +5 -0
- package/dist/esm/api/types/ReserveResponseState.d.mts +6 -0
- package/dist/esm/api/types/ReserveResponseState.mjs +6 -0
- package/dist/esm/api/types/SettleResponse.d.mts +5 -0
- package/dist/esm/api/types/SettleResponse.mjs +2 -0
- package/dist/esm/api/types/SettleResponseReason.d.mts +5 -0
- package/dist/esm/api/types/SettleResponseReason.mjs +5 -0
- package/dist/esm/api/types/index.d.mts +8 -0
- package/dist/esm/api/types/index.mjs +8 -0
- package/dist/esm/serialization/resources/index.d.mts +3 -0
- package/dist/esm/serialization/resources/index.mjs +3 -0
- package/dist/esm/serialization/resources/internalGuestSession/client/index.d.mts +1 -0
- package/dist/esm/serialization/resources/internalGuestSession/client/index.mjs +1 -0
- package/dist/esm/serialization/resources/internalGuestSession/client/requests/ReserveRequest.d.mts +12 -0
- package/dist/esm/serialization/resources/internalGuestSession/client/requests/ReserveRequest.mjs +8 -0
- package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.d.mts +11 -0
- package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.mjs +7 -0
- package/dist/esm/serialization/resources/internalGuestSession/client/requests/index.d.mts +2 -0
- package/dist/esm/serialization/resources/internalGuestSession/client/requests/index.mjs +2 -0
- package/dist/esm/serialization/resources/internalGuestSession/index.d.mts +2 -0
- package/dist/esm/serialization/resources/internalGuestSession/index.mjs +2 -0
- package/dist/esm/serialization/resources/internalGuestSession/types/ReserveRequestKind.d.mts +7 -0
- package/dist/esm/serialization/resources/internalGuestSession/types/ReserveRequestKind.mjs +3 -0
- package/dist/esm/serialization/resources/internalGuestSession/types/SettleRequestOutcome.d.mts +7 -0
- package/dist/esm/serialization/resources/internalGuestSession/types/SettleRequestOutcome.mjs +3 -0
- package/dist/esm/serialization/resources/internalGuestSession/types/index.d.mts +2 -0
- package/dist/esm/serialization/resources/internalGuestSession/types/index.mjs +2 -0
- package/dist/esm/serialization/types/InternalGuestSessionResponse.d.mts +16 -0
- package/dist/esm/serialization/types/InternalGuestSessionResponse.mjs +12 -0
- package/dist/esm/serialization/types/InternalGuestSessionResponseStatus.d.mts +7 -0
- package/dist/esm/serialization/types/InternalGuestSessionResponseStatus.mjs +3 -0
- package/dist/esm/serialization/types/Limit.d.mts +12 -0
- package/dist/esm/serialization/types/Limit.mjs +8 -0
- package/dist/esm/serialization/types/ReserveResponse.d.mts +20 -0
- package/dist/esm/serialization/types/ReserveResponse.mjs +16 -0
- package/dist/esm/serialization/types/ReserveResponseKind.d.mts +7 -0
- package/dist/esm/serialization/types/ReserveResponseKind.mjs +3 -0
- package/dist/esm/serialization/types/ReserveResponseState.d.mts +7 -0
- package/dist/esm/serialization/types/ReserveResponseState.mjs +3 -0
- package/dist/esm/serialization/types/SettleResponse.d.mts +11 -0
- package/dist/esm/serialization/types/SettleResponse.mjs +7 -0
- package/dist/esm/serialization/types/SettleResponseReason.d.mts +7 -0
- package/dist/esm/serialization/types/SettleResponseReason.mjs +3 -0
- package/dist/esm/serialization/types/index.d.mts +8 -0
- package/dist/esm/serialization/types/index.mjs +8 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +175 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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,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,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,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
|
+
}
|
|
@@ -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";
|
package/dist/esm/serialization/resources/internalGuestSession/client/requests/ReserveRequest.d.mts
ADDED
|
@@ -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
|
+
}
|
package/dist/esm/serialization/resources/internalGuestSession/client/requests/ReserveRequest.mjs
ADDED
|
@@ -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
|
+
});
|
package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.d.mts
ADDED
|
@@ -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
|
+
}
|
package/dist/esm/serialization/resources/internalGuestSession/client/requests/SettleRequest.mjs
ADDED
|
@@ -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,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
|
+
}
|
package/dist/esm/serialization/resources/internalGuestSession/types/SettleRequestOutcome.d.mts
ADDED
|
@@ -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,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,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,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
|
+
}
|