@fern-api/venus-api-sdk 11.6.0 → 12.0.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/api/resources/apiKeys/client/Client.d.ts +9 -0
- package/dist/cjs/api/resources/apiKeys/client/Client.js +14 -2
- package/dist/cjs/api/resources/apiKeys/client/requests/RevokeTokenByIdApiKeysRevokeTokenIdPostRequest.d.ts +1 -0
- package/dist/cjs/api/resources/guestSession/client/Client.d.ts +53 -0
- package/dist/cjs/api/resources/guestSession/client/Client.js +325 -0
- package/dist/cjs/api/resources/guestSession/client/claim.d.ts +25 -0
- package/dist/cjs/api/resources/guestSession/client/claim.js +66 -0
- package/dist/cjs/api/resources/guestSession/client/create.d.ts +13 -1
- package/dist/cjs/api/resources/guestSession/client/create.js +22 -0
- package/dist/cjs/api/resources/guestSession/client/delete.d.ts +25 -0
- package/dist/cjs/api/resources/guestSession/client/delete.js +66 -0
- package/dist/cjs/api/resources/guestSession/client/get.d.ts +43 -0
- package/dist/cjs/api/resources/guestSession/client/get.js +99 -0
- package/dist/cjs/api/resources/guestSession/client/index.d.ts +3 -0
- package/dist/cjs/api/resources/guestSession/client/index.js +4 -1
- package/dist/cjs/api/resources/guestSession/client/requests/ClaimGuestSessionRequest.d.ts +10 -0
- package/dist/cjs/api/resources/guestSession/client/requests/ClaimGuestSessionRequest.js +3 -0
- package/dist/cjs/api/resources/guestSession/client/requests/DeleteGuestSessionsSessionIdDeleteRequest.d.ts +9 -0
- package/dist/cjs/api/resources/guestSession/client/requests/DeleteGuestSessionsSessionIdDeleteRequest.js +3 -0
- package/dist/cjs/api/resources/guestSession/client/requests/GetGuestSessionsSessionIdGetRequest.d.ts +11 -0
- package/dist/cjs/api/resources/guestSession/client/requests/GetGuestSessionsSessionIdGetRequest.js +3 -0
- package/dist/cjs/api/resources/guestSession/client/requests/index.d.ts +3 -0
- package/dist/cjs/api/resources/organization/client/Client.d.ts +3 -0
- package/dist/cjs/api/resources/organization/client/Client.js +3 -0
- package/dist/cjs/api/types/ClaimGuestSessionResponse.d.ts +10 -0
- package/dist/cjs/api/types/ClaimGuestSessionResponse.js +3 -0
- package/dist/cjs/api/types/ClaimGuestSessionResponseStatus.d.ts +9 -0
- package/dist/cjs/api/types/ClaimGuestSessionResponseStatus.js +12 -0
- package/dist/cjs/api/types/CreateGuestSessionResponse.d.ts +2 -0
- package/dist/cjs/api/types/DeleteGuestSessionResponse.d.ts +7 -0
- package/dist/cjs/api/types/DeleteGuestSessionResponse.js +3 -0
- package/dist/cjs/api/types/DeleteGuestSessionResponseStatus.d.ts +9 -0
- package/dist/cjs/api/types/DeleteGuestSessionResponseStatus.js +12 -0
- package/dist/cjs/api/types/GetGuestSessionResponse.d.ts +13 -0
- package/dist/cjs/api/types/GetGuestSessionResponse.js +3 -0
- package/dist/cjs/api/types/GetGuestSessionResponseStatus.d.ts +9 -0
- package/dist/cjs/api/types/GetGuestSessionResponseStatus.js +12 -0
- package/dist/cjs/api/types/GoneErrorBody.d.ts +5 -0
- package/dist/cjs/api/types/GoneErrorBody.js +3 -0
- package/dist/cjs/api/types/GoneErrorBodyContent.d.ts +8 -0
- package/dist/cjs/api/types/GoneErrorBodyContent.js +3 -0
- package/dist/cjs/api/types/GoneErrorBodyContentCode.d.ts +5 -0
- package/dist/cjs/api/types/GoneErrorBodyContentCode.js +8 -0
- package/dist/cjs/api/types/GuestSessionLimits.d.ts +2 -0
- package/dist/cjs/api/types/GuestSessionUsage.d.ts +4 -0
- package/dist/cjs/api/types/GuestSessionUsage.js +3 -0
- package/dist/cjs/api/types/NotFoundErrorBody.d.ts +5 -0
- package/dist/cjs/api/types/NotFoundErrorBody.js +3 -0
- package/dist/cjs/api/types/NotFoundErrorBodyContent.d.ts +8 -0
- package/dist/cjs/api/types/NotFoundErrorBodyContent.js +3 -0
- package/dist/cjs/api/types/NotFoundErrorBodyContentCode.d.ts +4 -0
- package/dist/cjs/api/types/NotFoundErrorBodyContentCode.js +7 -0
- package/dist/cjs/api/types/ServiceUnavailableErrorBody.d.ts +5 -0
- package/dist/cjs/api/types/ServiceUnavailableErrorBody.js +3 -0
- package/dist/cjs/api/types/ServiceUnavailableErrorBodyContent.d.ts +8 -0
- package/dist/cjs/api/types/ServiceUnavailableErrorBodyContent.js +3 -0
- package/dist/cjs/api/types/ServiceUnavailableErrorBodyContentCode.d.ts +6 -0
- package/dist/cjs/api/types/ServiceUnavailableErrorBodyContentCode.js +9 -0
- package/dist/cjs/api/types/TooManyRequestsErrorBody.d.ts +5 -0
- package/dist/cjs/api/types/TooManyRequestsErrorBody.js +3 -0
- package/dist/cjs/api/types/TooManyRequestsErrorBodyContent.d.ts +8 -0
- package/dist/cjs/api/types/TooManyRequestsErrorBodyContent.js +3 -0
- package/dist/cjs/api/types/TooManyRequestsErrorBodyContentCode.d.ts +4 -0
- package/dist/cjs/api/types/TooManyRequestsErrorBodyContentCode.js +7 -0
- package/dist/cjs/api/types/index.d.ts +19 -0
- package/dist/cjs/api/types/index.js +19 -0
- package/dist/cjs/serialization/resources/guestSession/client/requests/ClaimGuestSessionRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/guestSession/client/requests/ClaimGuestSessionRequest.js +41 -0
- package/dist/cjs/serialization/resources/guestSession/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/guestSession/client/requests/index.js +3 -1
- package/dist/cjs/serialization/types/ClaimGuestSessionResponse.d.ts +15 -0
- package/dist/cjs/serialization/types/ClaimGuestSessionResponse.js +48 -0
- package/dist/cjs/serialization/types/ClaimGuestSessionResponseStatus.d.ts +7 -0
- package/dist/cjs/serialization/types/ClaimGuestSessionResponseStatus.js +39 -0
- package/dist/cjs/serialization/types/CreateGuestSessionResponse.d.ts +2 -0
- package/dist/cjs/serialization/types/CreateGuestSessionResponse.js +2 -0
- package/dist/cjs/serialization/types/DeleteGuestSessionResponse.d.ts +12 -0
- package/dist/cjs/serialization/types/DeleteGuestSessionResponse.js +45 -0
- package/dist/cjs/serialization/types/DeleteGuestSessionResponseStatus.d.ts +7 -0
- package/dist/cjs/serialization/types/DeleteGuestSessionResponseStatus.js +39 -0
- package/dist/cjs/serialization/types/GetGuestSessionResponse.d.ts +20 -0
- package/dist/cjs/serialization/types/GetGuestSessionResponse.js +52 -0
- package/dist/cjs/serialization/types/GetGuestSessionResponseStatus.d.ts +7 -0
- package/dist/cjs/serialization/types/GetGuestSessionResponseStatus.js +39 -0
- package/dist/cjs/serialization/types/GoneErrorBody.d.ts +11 -0
- package/dist/cjs/serialization/types/GoneErrorBody.js +43 -0
- package/dist/cjs/serialization/types/GoneErrorBodyContent.d.ts +14 -0
- package/dist/cjs/serialization/types/GoneErrorBodyContent.js +46 -0
- package/dist/cjs/serialization/types/GoneErrorBodyContentCode.d.ts +7 -0
- package/dist/cjs/serialization/types/GoneErrorBodyContentCode.js +39 -0
- package/dist/cjs/serialization/types/GuestSessionLimits.d.ts +2 -0
- package/dist/cjs/serialization/types/GuestSessionLimits.js +2 -0
- package/dist/cjs/serialization/types/GuestSessionUsage.d.ts +10 -0
- package/dist/cjs/serialization/types/GuestSessionUsage.js +42 -0
- package/dist/cjs/serialization/types/NotFoundErrorBody.d.ts +11 -0
- package/dist/cjs/serialization/types/NotFoundErrorBody.js +43 -0
- package/dist/cjs/serialization/types/NotFoundErrorBodyContent.d.ts +14 -0
- package/dist/cjs/serialization/types/NotFoundErrorBodyContent.js +46 -0
- package/dist/cjs/serialization/types/NotFoundErrorBodyContentCode.d.ts +7 -0
- package/dist/cjs/serialization/types/NotFoundErrorBodyContentCode.js +39 -0
- package/dist/cjs/serialization/types/ServiceUnavailableErrorBody.d.ts +11 -0
- package/dist/cjs/serialization/types/ServiceUnavailableErrorBody.js +43 -0
- package/dist/cjs/serialization/types/ServiceUnavailableErrorBodyContent.d.ts +14 -0
- package/dist/cjs/serialization/types/ServiceUnavailableErrorBodyContent.js +46 -0
- package/dist/cjs/serialization/types/ServiceUnavailableErrorBodyContentCode.d.ts +7 -0
- package/dist/cjs/serialization/types/ServiceUnavailableErrorBodyContentCode.js +39 -0
- package/dist/cjs/serialization/types/TooManyRequestsErrorBody.d.ts +11 -0
- package/dist/cjs/serialization/types/TooManyRequestsErrorBody.js +43 -0
- package/dist/cjs/serialization/types/TooManyRequestsErrorBodyContent.d.ts +14 -0
- package/dist/cjs/serialization/types/TooManyRequestsErrorBodyContent.js +46 -0
- package/dist/cjs/serialization/types/TooManyRequestsErrorBodyContentCode.d.ts +7 -0
- package/dist/cjs/serialization/types/TooManyRequestsErrorBodyContentCode.js +39 -0
- package/dist/cjs/serialization/types/index.d.ts +19 -0
- package/dist/cjs/serialization/types/index.js +19 -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/api/resources/apiKeys/client/Client.d.mts +9 -0
- package/dist/esm/api/resources/apiKeys/client/Client.mjs +14 -2
- package/dist/esm/api/resources/apiKeys/client/requests/RevokeTokenByIdApiKeysRevokeTokenIdPostRequest.d.mts +1 -0
- package/dist/esm/api/resources/guestSession/client/Client.d.mts +53 -0
- package/dist/esm/api/resources/guestSession/client/Client.mjs +326 -1
- package/dist/esm/api/resources/guestSession/client/claim.d.mts +25 -0
- package/dist/esm/api/resources/guestSession/client/claim.mjs +30 -0
- package/dist/esm/api/resources/guestSession/client/create.d.mts +13 -1
- package/dist/esm/api/resources/guestSession/client/create.mjs +22 -0
- package/dist/esm/api/resources/guestSession/client/delete.d.mts +25 -0
- package/dist/esm/api/resources/guestSession/client/delete.mjs +30 -0
- package/dist/esm/api/resources/guestSession/client/get.d.mts +43 -0
- package/dist/esm/api/resources/guestSession/client/get.mjs +63 -0
- package/dist/esm/api/resources/guestSession/client/index.d.mts +3 -0
- package/dist/esm/api/resources/guestSession/client/index.mjs +3 -0
- package/dist/esm/api/resources/guestSession/client/requests/ClaimGuestSessionRequest.d.mts +10 -0
- package/dist/esm/api/resources/guestSession/client/requests/ClaimGuestSessionRequest.mjs +2 -0
- package/dist/esm/api/resources/guestSession/client/requests/DeleteGuestSessionsSessionIdDeleteRequest.d.mts +9 -0
- package/dist/esm/api/resources/guestSession/client/requests/DeleteGuestSessionsSessionIdDeleteRequest.mjs +2 -0
- package/dist/esm/api/resources/guestSession/client/requests/GetGuestSessionsSessionIdGetRequest.d.mts +11 -0
- package/dist/esm/api/resources/guestSession/client/requests/GetGuestSessionsSessionIdGetRequest.mjs +2 -0
- package/dist/esm/api/resources/guestSession/client/requests/index.d.mts +3 -0
- package/dist/esm/api/resources/organization/client/Client.d.mts +3 -0
- package/dist/esm/api/resources/organization/client/Client.mjs +3 -0
- package/dist/esm/api/types/ClaimGuestSessionResponse.d.mts +10 -0
- package/dist/esm/api/types/ClaimGuestSessionResponse.mjs +2 -0
- package/dist/esm/api/types/ClaimGuestSessionResponseStatus.d.mts +9 -0
- package/dist/esm/api/types/ClaimGuestSessionResponseStatus.mjs +9 -0
- package/dist/esm/api/types/CreateGuestSessionResponse.d.mts +2 -0
- package/dist/esm/api/types/DeleteGuestSessionResponse.d.mts +7 -0
- package/dist/esm/api/types/DeleteGuestSessionResponse.mjs +2 -0
- package/dist/esm/api/types/DeleteGuestSessionResponseStatus.d.mts +9 -0
- package/dist/esm/api/types/DeleteGuestSessionResponseStatus.mjs +9 -0
- package/dist/esm/api/types/GetGuestSessionResponse.d.mts +13 -0
- package/dist/esm/api/types/GetGuestSessionResponse.mjs +2 -0
- package/dist/esm/api/types/GetGuestSessionResponseStatus.d.mts +9 -0
- package/dist/esm/api/types/GetGuestSessionResponseStatus.mjs +9 -0
- package/dist/esm/api/types/GoneErrorBody.d.mts +5 -0
- package/dist/esm/api/types/GoneErrorBody.mjs +2 -0
- package/dist/esm/api/types/GoneErrorBodyContent.d.mts +8 -0
- package/dist/esm/api/types/GoneErrorBodyContent.mjs +2 -0
- package/dist/esm/api/types/GoneErrorBodyContentCode.d.mts +5 -0
- package/dist/esm/api/types/GoneErrorBodyContentCode.mjs +5 -0
- package/dist/esm/api/types/GuestSessionLimits.d.mts +2 -0
- package/dist/esm/api/types/GuestSessionUsage.d.mts +4 -0
- package/dist/esm/api/types/GuestSessionUsage.mjs +2 -0
- package/dist/esm/api/types/NotFoundErrorBody.d.mts +5 -0
- package/dist/esm/api/types/NotFoundErrorBody.mjs +2 -0
- package/dist/esm/api/types/NotFoundErrorBodyContent.d.mts +8 -0
- package/dist/esm/api/types/NotFoundErrorBodyContent.mjs +2 -0
- package/dist/esm/api/types/NotFoundErrorBodyContentCode.d.mts +4 -0
- package/dist/esm/api/types/NotFoundErrorBodyContentCode.mjs +4 -0
- package/dist/esm/api/types/ServiceUnavailableErrorBody.d.mts +5 -0
- package/dist/esm/api/types/ServiceUnavailableErrorBody.mjs +2 -0
- package/dist/esm/api/types/ServiceUnavailableErrorBodyContent.d.mts +8 -0
- package/dist/esm/api/types/ServiceUnavailableErrorBodyContent.mjs +2 -0
- package/dist/esm/api/types/ServiceUnavailableErrorBodyContentCode.d.mts +6 -0
- package/dist/esm/api/types/ServiceUnavailableErrorBodyContentCode.mjs +6 -0
- package/dist/esm/api/types/TooManyRequestsErrorBody.d.mts +5 -0
- package/dist/esm/api/types/TooManyRequestsErrorBody.mjs +2 -0
- package/dist/esm/api/types/TooManyRequestsErrorBodyContent.d.mts +8 -0
- package/dist/esm/api/types/TooManyRequestsErrorBodyContent.mjs +2 -0
- package/dist/esm/api/types/TooManyRequestsErrorBodyContentCode.d.mts +4 -0
- package/dist/esm/api/types/TooManyRequestsErrorBodyContentCode.mjs +4 -0
- package/dist/esm/api/types/index.d.mts +19 -0
- package/dist/esm/api/types/index.mjs +19 -0
- package/dist/esm/serialization/resources/guestSession/client/requests/ClaimGuestSessionRequest.d.mts +9 -0
- package/dist/esm/serialization/resources/guestSession/client/requests/ClaimGuestSessionRequest.mjs +5 -0
- package/dist/esm/serialization/resources/guestSession/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/guestSession/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/types/ClaimGuestSessionResponse.d.mts +15 -0
- package/dist/esm/serialization/types/ClaimGuestSessionResponse.mjs +12 -0
- package/dist/esm/serialization/types/ClaimGuestSessionResponseStatus.d.mts +7 -0
- package/dist/esm/serialization/types/ClaimGuestSessionResponseStatus.mjs +3 -0
- package/dist/esm/serialization/types/CreateGuestSessionResponse.d.mts +2 -0
- package/dist/esm/serialization/types/CreateGuestSessionResponse.mjs +2 -0
- package/dist/esm/serialization/types/DeleteGuestSessionResponse.d.mts +12 -0
- package/dist/esm/serialization/types/DeleteGuestSessionResponse.mjs +9 -0
- package/dist/esm/serialization/types/DeleteGuestSessionResponseStatus.d.mts +7 -0
- package/dist/esm/serialization/types/DeleteGuestSessionResponseStatus.mjs +3 -0
- package/dist/esm/serialization/types/GetGuestSessionResponse.d.mts +20 -0
- package/dist/esm/serialization/types/GetGuestSessionResponse.mjs +16 -0
- package/dist/esm/serialization/types/GetGuestSessionResponseStatus.d.mts +7 -0
- package/dist/esm/serialization/types/GetGuestSessionResponseStatus.mjs +3 -0
- package/dist/esm/serialization/types/GoneErrorBody.d.mts +11 -0
- package/dist/esm/serialization/types/GoneErrorBody.mjs +7 -0
- package/dist/esm/serialization/types/GoneErrorBodyContent.d.mts +14 -0
- package/dist/esm/serialization/types/GoneErrorBodyContent.mjs +10 -0
- package/dist/esm/serialization/types/GoneErrorBodyContentCode.d.mts +7 -0
- package/dist/esm/serialization/types/GoneErrorBodyContentCode.mjs +3 -0
- package/dist/esm/serialization/types/GuestSessionLimits.d.mts +2 -0
- package/dist/esm/serialization/types/GuestSessionLimits.mjs +2 -0
- package/dist/esm/serialization/types/GuestSessionUsage.d.mts +10 -0
- package/dist/esm/serialization/types/GuestSessionUsage.mjs +6 -0
- package/dist/esm/serialization/types/NotFoundErrorBody.d.mts +11 -0
- package/dist/esm/serialization/types/NotFoundErrorBody.mjs +7 -0
- package/dist/esm/serialization/types/NotFoundErrorBodyContent.d.mts +14 -0
- package/dist/esm/serialization/types/NotFoundErrorBodyContent.mjs +10 -0
- package/dist/esm/serialization/types/NotFoundErrorBodyContentCode.d.mts +7 -0
- package/dist/esm/serialization/types/NotFoundErrorBodyContentCode.mjs +3 -0
- package/dist/esm/serialization/types/ServiceUnavailableErrorBody.d.mts +11 -0
- package/dist/esm/serialization/types/ServiceUnavailableErrorBody.mjs +7 -0
- package/dist/esm/serialization/types/ServiceUnavailableErrorBodyContent.d.mts +14 -0
- package/dist/esm/serialization/types/ServiceUnavailableErrorBodyContent.mjs +10 -0
- package/dist/esm/serialization/types/ServiceUnavailableErrorBodyContentCode.d.mts +7 -0
- package/dist/esm/serialization/types/ServiceUnavailableErrorBodyContentCode.mjs +3 -0
- package/dist/esm/serialization/types/TooManyRequestsErrorBody.d.mts +11 -0
- package/dist/esm/serialization/types/TooManyRequestsErrorBody.mjs +7 -0
- package/dist/esm/serialization/types/TooManyRequestsErrorBodyContent.d.mts +14 -0
- package/dist/esm/serialization/types/TooManyRequestsErrorBodyContent.mjs +10 -0
- package/dist/esm/serialization/types/TooManyRequestsErrorBodyContentCode.d.mts +7 -0
- package/dist/esm/serialization/types/TooManyRequestsErrorBodyContentCode.mjs +3 -0
- package/dist/esm/serialization/types/index.d.mts +19 -0
- package/dist/esm/serialization/types/index.mjs +19 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +245 -0
|
@@ -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.guestSession.delete.Error.UnprocessableEntityError | FernVenusApi.guestSession.delete.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.guestSession.delete.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.guestSession.delete.Error.UnprocessableEntityError;
|
|
23
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.guestSession.delete.Error._Unknown;
|
|
24
|
+
readonly _visit: <_Result>(value: FernVenusApi.guestSession.delete.Error, visitor: FernVenusApi.guestSession.delete.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.guestSession.delete.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.guestSession.delete.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,43 @@
|
|
|
1
|
+
import type * as core from "../../../../core/index.js";
|
|
2
|
+
import * as FernVenusApi from "../../../index.js";
|
|
3
|
+
export type Error = FernVenusApi.guestSession.get.Error.NotFoundError | FernVenusApi.guestSession.get.Error.GoneError | FernVenusApi.guestSession.get.Error.UnprocessableEntityError | FernVenusApi.guestSession.get.Error.ServiceUnavailableError | FernVenusApi.guestSession.get.Error._Unknown;
|
|
4
|
+
export declare namespace Error {
|
|
5
|
+
interface NotFoundError extends _Utils {
|
|
6
|
+
statusCode: 404;
|
|
7
|
+
content: FernVenusApi.NotFoundErrorBody;
|
|
8
|
+
}
|
|
9
|
+
interface GoneError extends _Utils {
|
|
10
|
+
statusCode: 410;
|
|
11
|
+
content: FernVenusApi.GoneErrorBody;
|
|
12
|
+
}
|
|
13
|
+
interface UnprocessableEntityError extends _Utils {
|
|
14
|
+
statusCode: 422;
|
|
15
|
+
content: FernVenusApi.HttpValidationError;
|
|
16
|
+
}
|
|
17
|
+
interface ServiceUnavailableError extends _Utils {
|
|
18
|
+
statusCode: 503;
|
|
19
|
+
content?: unknown;
|
|
20
|
+
}
|
|
21
|
+
interface _Unknown extends _Utils {
|
|
22
|
+
statusCode: void;
|
|
23
|
+
content: core.Fetcher.Error;
|
|
24
|
+
}
|
|
25
|
+
interface _Utils {
|
|
26
|
+
_visit: <_Result>(visitor: FernVenusApi.guestSession.get.Error._Visitor<_Result>) => _Result;
|
|
27
|
+
}
|
|
28
|
+
interface _Visitor<_Result> {
|
|
29
|
+
notFoundError: (value: FernVenusApi.NotFoundErrorBody) => _Result;
|
|
30
|
+
goneError: (value: FernVenusApi.GoneErrorBody) => _Result;
|
|
31
|
+
unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => _Result;
|
|
32
|
+
serviceUnavailableError: (value: unknown) => _Result;
|
|
33
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export declare const Error: {
|
|
37
|
+
readonly notFoundError: (value: FernVenusApi.NotFoundErrorBody) => FernVenusApi.guestSession.get.Error.NotFoundError;
|
|
38
|
+
readonly goneError: (value: FernVenusApi.GoneErrorBody) => FernVenusApi.guestSession.get.Error.GoneError;
|
|
39
|
+
readonly unprocessableEntityError: (value: FernVenusApi.HttpValidationError) => FernVenusApi.guestSession.get.Error.UnprocessableEntityError;
|
|
40
|
+
readonly serviceUnavailableError: (value?: unknown) => FernVenusApi.guestSession.get.Error.ServiceUnavailableError;
|
|
41
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.guestSession.get.Error._Unknown;
|
|
42
|
+
readonly _visit: <_Result>(value: FernVenusApi.guestSession.get.Error, visitor: FernVenusApi.guestSession.get.Error._Visitor<_Result>) => _Result;
|
|
43
|
+
};
|
|
@@ -0,0 +1,99 @@
|
|
|
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
|
+
notFoundError: (value) => {
|
|
41
|
+
return {
|
|
42
|
+
content: value,
|
|
43
|
+
statusCode: 404,
|
|
44
|
+
_visit: function (visitor) {
|
|
45
|
+
return FernVenusApi.guestSession.get.Error._visit(this, visitor);
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
goneError: (value) => {
|
|
50
|
+
return {
|
|
51
|
+
content: value,
|
|
52
|
+
statusCode: 410,
|
|
53
|
+
_visit: function (visitor) {
|
|
54
|
+
return FernVenusApi.guestSession.get.Error._visit(this, visitor);
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
unprocessableEntityError: (value) => {
|
|
59
|
+
return {
|
|
60
|
+
content: value,
|
|
61
|
+
statusCode: 422,
|
|
62
|
+
_visit: function (visitor) {
|
|
63
|
+
return FernVenusApi.guestSession.get.Error._visit(this, visitor);
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
},
|
|
67
|
+
serviceUnavailableError: (value) => {
|
|
68
|
+
return {
|
|
69
|
+
content: value,
|
|
70
|
+
statusCode: 503,
|
|
71
|
+
_visit: function (visitor) {
|
|
72
|
+
return FernVenusApi.guestSession.get.Error._visit(this, visitor);
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
_unknown: (fetcherError) => {
|
|
77
|
+
return {
|
|
78
|
+
statusCode: undefined,
|
|
79
|
+
content: fetcherError,
|
|
80
|
+
_visit: function (visitor) {
|
|
81
|
+
return FernVenusApi.guestSession.get.Error._visit(this, visitor);
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
},
|
|
85
|
+
_visit: (value, visitor) => {
|
|
86
|
+
switch (value.statusCode) {
|
|
87
|
+
case 404:
|
|
88
|
+
return visitor.notFoundError(value.content);
|
|
89
|
+
case 410:
|
|
90
|
+
return visitor.goneError(value.content);
|
|
91
|
+
case 422:
|
|
92
|
+
return visitor.unprocessableEntityError(value.content);
|
|
93
|
+
case 503:
|
|
94
|
+
return visitor.serviceUnavailableError(value.content);
|
|
95
|
+
default:
|
|
96
|
+
return visitor._other(value.content);
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
};
|
|
@@ -36,6 +36,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
36
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.create = void 0;
|
|
39
|
+
exports.get = exports.delete = exports.create = exports.claim = void 0;
|
|
40
|
+
exports.claim = __importStar(require("./claim.js"));
|
|
40
41
|
exports.create = __importStar(require("./create.js"));
|
|
42
|
+
exports.delete = __importStar(require("./delete.js"));
|
|
43
|
+
exports.get = __importStar(require("./get.js"));
|
|
41
44
|
__exportStar(require("./requests/index.js"), exports);
|
package/dist/cjs/api/resources/guestSession/client/requests/GetGuestSessionsSessionIdGetRequest.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* sessionId: "session_id"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface GetGuestSessionsSessionIdGetRequest {
|
|
8
|
+
sessionId: string;
|
|
9
|
+
/** The session's claim secret, from the fragment of its claimUrl. Opens the session without a token, for the claim page. */
|
|
10
|
+
fernClaimSecret?: string;
|
|
11
|
+
}
|
|
@@ -1 +1,4 @@
|
|
|
1
|
+
export type { ClaimGuestSessionRequest } from "./ClaimGuestSessionRequest.js";
|
|
1
2
|
export type { CreateGuestSessionRequest } from "./CreateGuestSessionRequest.js";
|
|
3
|
+
export type { DeleteGuestSessionsSessionIdDeleteRequest } from "./DeleteGuestSessionsSessionIdDeleteRequest.js";
|
|
4
|
+
export type { GetGuestSessionsSessionIdGetRequest } from "./GetGuestSessionsSessionIdGetRequest.js";
|
|
@@ -52,6 +52,9 @@ export declare class OrganizationClient {
|
|
|
52
52
|
private __get;
|
|
53
53
|
/**
|
|
54
54
|
* Deletes an organization. Only users with admin role can delete organizations.
|
|
55
|
+
* Called with the provisioner token, it only works for an unclaimed
|
|
56
|
+
* organization that was created with that token, and returns 403 for any
|
|
57
|
+
* other. It also revokes that organization's API keys.
|
|
55
58
|
*
|
|
56
59
|
* @param {FernVenusApi.DeleteOrganizationsOrgIdDeleteRequest} request
|
|
57
60
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -306,6 +306,9 @@ class OrganizationClient {
|
|
|
306
306
|
}
|
|
307
307
|
/**
|
|
308
308
|
* Deletes an organization. Only users with admin role can delete organizations.
|
|
309
|
+
* Called with the provisioner token, it only works for an unclaimed
|
|
310
|
+
* organization that was created with that token, and returns 403 for any
|
|
311
|
+
* other. It also revokes that organization's API keys.
|
|
309
312
|
*
|
|
310
313
|
* @param {FernVenusApi.DeleteOrganizationsOrgIdDeleteRequest} request
|
|
311
314
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../index.js";
|
|
2
|
+
export interface ClaimGuestSessionResponse {
|
|
3
|
+
sessionId: string;
|
|
4
|
+
organizationId: string;
|
|
5
|
+
status: FernVenusApi.ClaimGuestSessionResponseStatus;
|
|
6
|
+
claimedAt: Date;
|
|
7
|
+
nextSteps: string[];
|
|
8
|
+
/** Accepts any additional properties */
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const ClaimGuestSessionResponseStatus: {
|
|
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 ClaimGuestSessionResponseStatus = (typeof ClaimGuestSessionResponseStatus)[keyof typeof ClaimGuestSessionResponseStatus];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ClaimGuestSessionResponseStatus = void 0;
|
|
5
|
+
exports.ClaimGuestSessionResponseStatus = {
|
|
6
|
+
Active: "active",
|
|
7
|
+
Claiming: "claiming",
|
|
8
|
+
Claimed: "claimed",
|
|
9
|
+
Expired: "expired",
|
|
10
|
+
Deleted: "deleted",
|
|
11
|
+
TakenDown: "takenDown",
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const DeleteGuestSessionResponseStatus: {
|
|
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 DeleteGuestSessionResponseStatus = (typeof DeleteGuestSessionResponseStatus)[keyof typeof DeleteGuestSessionResponseStatus];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.DeleteGuestSessionResponseStatus = void 0;
|
|
5
|
+
exports.DeleteGuestSessionResponseStatus = {
|
|
6
|
+
Active: "active",
|
|
7
|
+
Claiming: "claiming",
|
|
8
|
+
Claimed: "claimed",
|
|
9
|
+
Expired: "expired",
|
|
10
|
+
Deleted: "deleted",
|
|
11
|
+
TakenDown: "takenDown",
|
|
12
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../index.js";
|
|
2
|
+
export interface GetGuestSessionResponse {
|
|
3
|
+
sessionId: string;
|
|
4
|
+
organizationId: string;
|
|
5
|
+
status: FernVenusApi.GetGuestSessionResponseStatus;
|
|
6
|
+
createdAt: Date;
|
|
7
|
+
expiresAt: Date;
|
|
8
|
+
claimedAt?: Date | null;
|
|
9
|
+
claimedOrganizationId?: string | null;
|
|
10
|
+
requestedOrgName?: string | null;
|
|
11
|
+
limits: FernVenusApi.GuestSessionLimits;
|
|
12
|
+
operations: string[];
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const GetGuestSessionResponseStatus: {
|
|
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 GetGuestSessionResponseStatus = (typeof GetGuestSessionResponseStatus)[keyof typeof GetGuestSessionResponseStatus];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.GetGuestSessionResponseStatus = void 0;
|
|
5
|
+
exports.GetGuestSessionResponseStatus = {
|
|
6
|
+
Active: "active",
|
|
7
|
+
Claiming: "claiming",
|
|
8
|
+
Claimed: "claimed",
|
|
9
|
+
Expired: "expired",
|
|
10
|
+
Deleted: "deleted",
|
|
11
|
+
TakenDown: "takenDown",
|
|
12
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const GoneErrorBodyContentCode: {
|
|
2
|
+
readonly GuestSessionExpired: "GUEST_SESSION_EXPIRED";
|
|
3
|
+
readonly GuestSessionTakenDown: "GUEST_SESSION_TAKEN_DOWN";
|
|
4
|
+
};
|
|
5
|
+
export type GoneErrorBodyContentCode = (typeof GoneErrorBodyContentCode)[keyof typeof GoneErrorBodyContentCode];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.GoneErrorBodyContentCode = void 0;
|
|
5
|
+
exports.GoneErrorBodyContentCode = {
|
|
6
|
+
GuestSessionExpired: "GUEST_SESSION_EXPIRED",
|
|
7
|
+
GuestSessionTakenDown: "GUEST_SESSION_TAKEN_DOWN",
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.NotFoundErrorBodyContentCode = void 0;
|
|
5
|
+
exports.NotFoundErrorBodyContentCode = {
|
|
6
|
+
GuestSessionNotFound: "GUEST_SESSION_NOT_FOUND",
|
|
7
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../index.js";
|
|
2
|
+
export interface ServiceUnavailableErrorBodyContent {
|
|
3
|
+
code: FernVenusApi.ServiceUnavailableErrorBodyContentCode;
|
|
4
|
+
retryable: boolean;
|
|
5
|
+
suggestedFix: string;
|
|
6
|
+
nextSteps?: string[];
|
|
7
|
+
limit?: Record<string, unknown>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ServiceUnavailableErrorBodyContentCode: {
|
|
2
|
+
readonly GuestSessionsDisabled: "GUEST_SESSIONS_DISABLED";
|
|
3
|
+
readonly GuestSessionNotIssued: "GUEST_SESSION_NOT_ISSUED";
|
|
4
|
+
readonly GuestSessionCheckFailed: "GUEST_SESSION_CHECK_FAILED";
|
|
5
|
+
};
|
|
6
|
+
export type ServiceUnavailableErrorBodyContentCode = (typeof ServiceUnavailableErrorBodyContentCode)[keyof typeof ServiceUnavailableErrorBodyContentCode];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ServiceUnavailableErrorBodyContentCode = void 0;
|
|
5
|
+
exports.ServiceUnavailableErrorBodyContentCode = {
|
|
6
|
+
GuestSessionsDisabled: "GUEST_SESSIONS_DISABLED",
|
|
7
|
+
GuestSessionNotIssued: "GUEST_SESSION_NOT_ISSUED",
|
|
8
|
+
GuestSessionCheckFailed: "GUEST_SESSION_CHECK_FAILED",
|
|
9
|
+
};
|