@fern-api/venus-api-sdk 11.2.0 → 11.4.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/organization/client/Client.d.ts +46 -0
- package/dist/cjs/api/resources/organization/client/Client.js +254 -0
- package/dist/cjs/api/resources/organization/client/claim.d.ts +25 -0
- package/dist/cjs/api/resources/organization/client/claim.js +66 -0
- package/dist/cjs/api/resources/organization/client/createClaimToken.d.ts +25 -0
- package/dist/cjs/api/resources/organization/client/createClaimToken.js +66 -0
- package/dist/cjs/api/resources/organization/client/index.d.ts +3 -0
- package/dist/cjs/api/resources/organization/client/index.js +4 -1
- package/dist/cjs/api/resources/organization/client/previewClaim.d.ts +25 -0
- package/dist/cjs/api/resources/organization/client/previewClaim.js +66 -0
- package/dist/cjs/api/resources/organization/client/requests/CreateClaimTokenRequest.d.ts +11 -0
- package/dist/cjs/api/resources/organization/client/requests/CreateClaimTokenRequest.js +3 -0
- package/dist/cjs/api/resources/organization/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/types/ClaimOrganizationRequest.d.ts +3 -0
- package/dist/cjs/api/types/ClaimOrganizationRequest.js +3 -0
- package/dist/cjs/api/types/ClaimOrganizationResponse.d.ts +5 -0
- package/dist/cjs/api/types/ClaimOrganizationResponse.js +3 -0
- package/dist/cjs/api/types/ClaimPreviewResponse.d.ts +8 -0
- package/dist/cjs/api/types/ClaimPreviewResponse.js +3 -0
- package/dist/cjs/api/types/ClaimTokenResponse.d.ts +4 -0
- package/dist/cjs/api/types/ClaimTokenResponse.js +3 -0
- package/dist/cjs/api/types/index.d.ts +4 -0
- package/dist/cjs/api/types/index.js +4 -0
- package/dist/cjs/serialization/resources/organization/client/requests/CreateClaimTokenRequest.d.ts +9 -0
- package/dist/cjs/serialization/resources/organization/client/requests/CreateClaimTokenRequest.js +41 -0
- package/dist/cjs/serialization/resources/organization/client/requests/index.d.ts +1 -0
- package/dist/cjs/serialization/resources/organization/client/requests/index.js +3 -1
- package/dist/cjs/serialization/types/ClaimOrganizationRequest.d.ts +9 -0
- package/dist/cjs/serialization/types/ClaimOrganizationRequest.js +41 -0
- package/dist/cjs/serialization/types/ClaimOrganizationResponse.d.ts +11 -0
- package/dist/cjs/serialization/types/ClaimOrganizationResponse.js +43 -0
- package/dist/cjs/serialization/types/ClaimPreviewResponse.d.ts +14 -0
- package/dist/cjs/serialization/types/ClaimPreviewResponse.js +46 -0
- package/dist/cjs/serialization/types/ClaimTokenResponse.d.ts +10 -0
- package/dist/cjs/serialization/types/ClaimTokenResponse.js +42 -0
- package/dist/cjs/serialization/types/index.d.ts +4 -0
- package/dist/cjs/serialization/types/index.js +4 -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/organization/client/Client.d.mts +46 -0
- package/dist/esm/api/resources/organization/client/Client.mjs +254 -0
- package/dist/esm/api/resources/organization/client/claim.d.mts +25 -0
- package/dist/esm/api/resources/organization/client/claim.mjs +30 -0
- package/dist/esm/api/resources/organization/client/createClaimToken.d.mts +25 -0
- package/dist/esm/api/resources/organization/client/createClaimToken.mjs +30 -0
- package/dist/esm/api/resources/organization/client/index.d.mts +3 -0
- package/dist/esm/api/resources/organization/client/index.mjs +3 -0
- package/dist/esm/api/resources/organization/client/previewClaim.d.mts +25 -0
- package/dist/esm/api/resources/organization/client/previewClaim.mjs +30 -0
- package/dist/esm/api/resources/organization/client/requests/CreateClaimTokenRequest.d.mts +11 -0
- package/dist/esm/api/resources/organization/client/requests/CreateClaimTokenRequest.mjs +2 -0
- package/dist/esm/api/resources/organization/client/requests/index.d.mts +1 -0
- package/dist/esm/api/types/ClaimOrganizationRequest.d.mts +3 -0
- package/dist/esm/api/types/ClaimOrganizationRequest.mjs +2 -0
- package/dist/esm/api/types/ClaimOrganizationResponse.d.mts +5 -0
- package/dist/esm/api/types/ClaimOrganizationResponse.mjs +2 -0
- package/dist/esm/api/types/ClaimPreviewResponse.d.mts +8 -0
- package/dist/esm/api/types/ClaimPreviewResponse.mjs +2 -0
- package/dist/esm/api/types/ClaimTokenResponse.d.mts +4 -0
- package/dist/esm/api/types/ClaimTokenResponse.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +4 -0
- package/dist/esm/api/types/index.mjs +4 -0
- package/dist/esm/serialization/resources/organization/client/requests/CreateClaimTokenRequest.d.mts +9 -0
- package/dist/esm/serialization/resources/organization/client/requests/CreateClaimTokenRequest.mjs +5 -0
- package/dist/esm/serialization/resources/organization/client/requests/index.d.mts +1 -0
- package/dist/esm/serialization/resources/organization/client/requests/index.mjs +1 -0
- package/dist/esm/serialization/types/ClaimOrganizationRequest.d.mts +9 -0
- package/dist/esm/serialization/types/ClaimOrganizationRequest.mjs +5 -0
- package/dist/esm/serialization/types/ClaimOrganizationResponse.d.mts +11 -0
- package/dist/esm/serialization/types/ClaimOrganizationResponse.mjs +7 -0
- package/dist/esm/serialization/types/ClaimPreviewResponse.d.mts +14 -0
- package/dist/esm/serialization/types/ClaimPreviewResponse.mjs +10 -0
- package/dist/esm/serialization/types/ClaimTokenResponse.d.mts +10 -0
- package/dist/esm/serialization/types/ClaimTokenResponse.mjs +6 -0
- package/dist/esm/serialization/types/index.d.mts +4 -0
- package/dist/esm/serialization/types/index.mjs +4 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +202 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { AddUserToOrgRequest } from "./AddUserToOrgRequest.js";
|
|
2
|
+
export type { CreateClaimTokenRequest } from "./CreateClaimTokenRequest.js";
|
|
2
3
|
export type { CreateOrganizationRequest } from "./CreateOrganizationRequest.js";
|
|
3
4
|
export type { DeleteOrganizationsOrgIdDeleteRequest } from "./DeleteOrganizationsOrgIdDeleteRequest.js";
|
|
4
5
|
export type { GetClaimStatusOrganizationsOrgIdClaimStatusGetRequest } from "./GetClaimStatusOrganizationsOrgIdClaimStatusGetRequest.js";
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export * from "./Active.js";
|
|
2
|
+
export * from "./ClaimOrganizationRequest.js";
|
|
3
|
+
export * from "./ClaimOrganizationResponse.js";
|
|
4
|
+
export * from "./ClaimPreviewResponse.js";
|
|
2
5
|
export * from "./ClaimStatus.js";
|
|
3
6
|
export * from "./ClaimStatusResponse.js";
|
|
7
|
+
export * from "./ClaimTokenResponse.js";
|
|
4
8
|
export * from "./CreateOrganizationResponse.js";
|
|
5
9
|
export * from "./CreateTokenResponse.js";
|
|
6
10
|
export * from "./Expired.js";
|
|
@@ -15,8 +15,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Active.js"), exports);
|
|
18
|
+
__exportStar(require("./ClaimOrganizationRequest.js"), exports);
|
|
19
|
+
__exportStar(require("./ClaimOrganizationResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./ClaimPreviewResponse.js"), exports);
|
|
18
21
|
__exportStar(require("./ClaimStatus.js"), exports);
|
|
19
22
|
__exportStar(require("./ClaimStatusResponse.js"), exports);
|
|
23
|
+
__exportStar(require("./ClaimTokenResponse.js"), exports);
|
|
20
24
|
__exportStar(require("./CreateOrganizationResponse.js"), exports);
|
|
21
25
|
__exportStar(require("./CreateTokenResponse.js"), exports);
|
|
22
26
|
__exportStar(require("./Expired.js"), exports);
|
package/dist/cjs/serialization/resources/organization/client/requests/CreateClaimTokenRequest.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../../index.js";
|
|
4
|
+
export declare const CreateClaimTokenRequest: core.serialization.Schema<serializers.CreateClaimTokenRequest.Raw, Omit<FernVenusApi.CreateClaimTokenRequest, "orgId">>;
|
|
5
|
+
export declare namespace CreateClaimTokenRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
postmanUserId: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
package/dist/cjs/serialization/resources/organization/client/requests/CreateClaimTokenRequest.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
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.CreateClaimTokenRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../../core/index.js"));
|
|
39
|
+
exports.CreateClaimTokenRequest = core.serialization.object({
|
|
40
|
+
postmanUserId: core.serialization.string(),
|
|
41
|
+
});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { AddUserToOrgRequest } from "./AddUserToOrgRequest.js";
|
|
2
|
+
export { CreateClaimTokenRequest } from "./CreateClaimTokenRequest.js";
|
|
2
3
|
export { CreateOrganizationRequest } from "./CreateOrganizationRequest.js";
|
|
3
4
|
export { InviteUserToOrgRequest } from "./InviteUserToOrgRequest.js";
|
|
4
5
|
export { RemoveUserFromOrgRequest } from "./RemoveUserFromOrgRequest.js";
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateOrganizationRequest = exports.RemoveUserFromOrgRequest = exports.InviteUserToOrgRequest = exports.CreateOrganizationRequest = exports.AddUserToOrgRequest = void 0;
|
|
3
|
+
exports.UpdateOrganizationRequest = exports.RemoveUserFromOrgRequest = exports.InviteUserToOrgRequest = exports.CreateOrganizationRequest = exports.CreateClaimTokenRequest = exports.AddUserToOrgRequest = void 0;
|
|
4
4
|
var AddUserToOrgRequest_js_1 = require("./AddUserToOrgRequest.js");
|
|
5
5
|
Object.defineProperty(exports, "AddUserToOrgRequest", { enumerable: true, get: function () { return AddUserToOrgRequest_js_1.AddUserToOrgRequest; } });
|
|
6
|
+
var CreateClaimTokenRequest_js_1 = require("./CreateClaimTokenRequest.js");
|
|
7
|
+
Object.defineProperty(exports, "CreateClaimTokenRequest", { enumerable: true, get: function () { return CreateClaimTokenRequest_js_1.CreateClaimTokenRequest; } });
|
|
6
8
|
var CreateOrganizationRequest_js_1 = require("./CreateOrganizationRequest.js");
|
|
7
9
|
Object.defineProperty(exports, "CreateOrganizationRequest", { enumerable: true, get: function () { return CreateOrganizationRequest_js_1.CreateOrganizationRequest; } });
|
|
8
10
|
var InviteUserToOrgRequest_js_1 = require("./InviteUserToOrgRequest.js");
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
export declare const ClaimOrganizationRequest: core.serialization.ObjectSchema<serializers.ClaimOrganizationRequest.Raw, FernVenusApi.ClaimOrganizationRequest>;
|
|
5
|
+
export declare namespace ClaimOrganizationRequest {
|
|
6
|
+
interface Raw {
|
|
7
|
+
claimToken: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.ClaimOrganizationRequest = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.ClaimOrganizationRequest = core.serialization.object({
|
|
40
|
+
claimToken: core.serialization.string(),
|
|
41
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
export declare const ClaimOrganizationResponse: core.serialization.ObjectSchema<serializers.ClaimOrganizationResponse.Raw, FernVenusApi.ClaimOrganizationResponse>;
|
|
5
|
+
export declare namespace ClaimOrganizationResponse {
|
|
6
|
+
interface Raw {
|
|
7
|
+
organizationId: string;
|
|
8
|
+
auth0Id: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ClaimOrganizationResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.ClaimOrganizationResponse = core.serialization.object({
|
|
40
|
+
organizationId: core.serialization.string(),
|
|
41
|
+
auth0Id: core.serialization.string(),
|
|
42
|
+
displayName: core.serialization.string(),
|
|
43
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
import { ClaimStatus } from "./ClaimStatus.js";
|
|
5
|
+
export declare const ClaimPreviewResponse: core.serialization.ObjectSchema<serializers.ClaimPreviewResponse.Raw, FernVenusApi.ClaimPreviewResponse>;
|
|
6
|
+
export declare namespace ClaimPreviewResponse {
|
|
7
|
+
interface Raw {
|
|
8
|
+
organizationId: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
claimStatus: ClaimStatus.Raw;
|
|
11
|
+
expiresAt: string;
|
|
12
|
+
redeemed: boolean;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.ClaimPreviewResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const ClaimStatus_js_1 = require("./ClaimStatus.js");
|
|
40
|
+
exports.ClaimPreviewResponse = core.serialization.object({
|
|
41
|
+
organizationId: core.serialization.string(),
|
|
42
|
+
displayName: core.serialization.string(),
|
|
43
|
+
claimStatus: ClaimStatus_js_1.ClaimStatus,
|
|
44
|
+
expiresAt: core.serialization.date(),
|
|
45
|
+
redeemed: core.serialization.boolean(),
|
|
46
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as FernVenusApi from "../../api/index.js";
|
|
2
|
+
import * as core from "../../core/index.js";
|
|
3
|
+
import type * as serializers from "../index.js";
|
|
4
|
+
export declare const ClaimTokenResponse: core.serialization.ObjectSchema<serializers.ClaimTokenResponse.Raw, FernVenusApi.ClaimTokenResponse>;
|
|
5
|
+
export declare namespace ClaimTokenResponse {
|
|
6
|
+
interface Raw {
|
|
7
|
+
claimUrl: string;
|
|
8
|
+
expiresAt: string;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.ClaimTokenResponse = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.ClaimTokenResponse = core.serialization.object({
|
|
40
|
+
claimUrl: core.serialization.string(),
|
|
41
|
+
expiresAt: core.serialization.date(),
|
|
42
|
+
});
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export * from "./Active.js";
|
|
2
|
+
export * from "./ClaimOrganizationRequest.js";
|
|
3
|
+
export * from "./ClaimOrganizationResponse.js";
|
|
4
|
+
export * from "./ClaimPreviewResponse.js";
|
|
2
5
|
export * from "./ClaimStatus.js";
|
|
3
6
|
export * from "./ClaimStatusResponse.js";
|
|
7
|
+
export * from "./ClaimTokenResponse.js";
|
|
4
8
|
export * from "./CreateOrganizationResponse.js";
|
|
5
9
|
export * from "./CreateTokenResponse.js";
|
|
6
10
|
export * from "./Expired.js";
|
|
@@ -15,8 +15,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Active.js"), exports);
|
|
18
|
+
__exportStar(require("./ClaimOrganizationRequest.js"), exports);
|
|
19
|
+
__exportStar(require("./ClaimOrganizationResponse.js"), exports);
|
|
20
|
+
__exportStar(require("./ClaimPreviewResponse.js"), exports);
|
|
18
21
|
__exportStar(require("./ClaimStatus.js"), exports);
|
|
19
22
|
__exportStar(require("./ClaimStatusResponse.js"), exports);
|
|
23
|
+
__exportStar(require("./ClaimTokenResponse.js"), exports);
|
|
20
24
|
__exportStar(require("./CreateOrganizationResponse.js"), exports);
|
|
21
25
|
__exportStar(require("./CreateTokenResponse.js"), exports);
|
|
22
26
|
__exportStar(require("./Expired.js"), exports);
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "11.
|
|
1
|
+
export declare const SDK_VERSION = "11.4.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "11.
|
|
10
|
-
"User-Agent": "@fern-api/venus-api-sdk/11.
|
|
9
|
+
"X-Fern-SDK-Version": "11.4.0",
|
|
10
|
+
"User-Agent": "@fern-api/venus-api-sdk/11.4.0",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
|
@@ -104,6 +104,52 @@ export declare class OrganizationClient {
|
|
|
104
104
|
*/
|
|
105
105
|
getClaimStatus(request: FernVenusApi.GetClaimStatusOrganizationsOrgIdClaimStatusGetRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.ClaimStatusResponse, FernVenusApi.organization.getClaimStatus.Error>>;
|
|
106
106
|
private __getClaimStatus;
|
|
107
|
+
/**
|
|
108
|
+
* Issues a claim link for an unclaimed organization, bound to one Postman
|
|
109
|
+
* user and valid for 15 minutes. Only the provisioner token can call it.
|
|
110
|
+
*
|
|
111
|
+
* @param {FernVenusApi.CreateClaimTokenRequest} request
|
|
112
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* await client.organization.createClaimToken({
|
|
116
|
+
* orgId: "org_id",
|
|
117
|
+
* postmanUserId: "postmanUserId"
|
|
118
|
+
* })
|
|
119
|
+
*/
|
|
120
|
+
createClaimToken(request: FernVenusApi.CreateClaimTokenRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.ClaimTokenResponse, FernVenusApi.organization.createClaimToken.Error>>;
|
|
121
|
+
private __createClaimToken;
|
|
122
|
+
/**
|
|
123
|
+
* Redeems a claim link. The caller, signed in as the Postman user the link
|
|
124
|
+
* is for, becomes the admin of the organization. The first claim wins, and
|
|
125
|
+
* a retry by the same user finishes a claim that failed partway.
|
|
126
|
+
*
|
|
127
|
+
* @param {FernVenusApi.ClaimOrganizationRequest} request
|
|
128
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* await client.organization.claim({
|
|
132
|
+
* claimToken: "claimToken"
|
|
133
|
+
* })
|
|
134
|
+
*/
|
|
135
|
+
claim(request: FernVenusApi.ClaimOrganizationRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.ClaimOrganizationResponse, FernVenusApi.organization.claim.Error>>;
|
|
136
|
+
private __claim;
|
|
137
|
+
/**
|
|
138
|
+
* What a claim link is for, without redeeming it, so the dashboard can show
|
|
139
|
+
* the organization and the link's state before the user signs in. Public:
|
|
140
|
+
* the link is the secret. The token is in the body to keep it out of
|
|
141
|
+
* request logs.
|
|
142
|
+
*
|
|
143
|
+
* @param {FernVenusApi.ClaimOrganizationRequest} request
|
|
144
|
+
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* await client.organization.previewClaim({
|
|
148
|
+
* claimToken: "claimToken"
|
|
149
|
+
* })
|
|
150
|
+
*/
|
|
151
|
+
previewClaim(request: FernVenusApi.ClaimOrganizationRequest, requestOptions?: OrganizationClient.RequestOptions): core.HttpResponsePromise<core.APIResponse<FernVenusApi.ClaimPreviewResponse, FernVenusApi.organization.previewClaim.Error>>;
|
|
152
|
+
private __previewClaim;
|
|
107
153
|
/**
|
|
108
154
|
* @param {FernVenusApi.IsMemberOrganizationsBelongsToOrganizationOrganizationIdPostRequest} request
|
|
109
155
|
* @param {OrganizationClient.RequestOptions} requestOptions - Request-specific configuration.
|