@fern-api/venus-api-sdk 0.0.36 → 0.0.37
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/api/resources/organization/client/Client.d.ts +1 -1
- package/api/resources/organization/client/Client.js +1 -1
- package/api/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +4 -1
- package/api/resources/organization/types/Organization.d.ts +6 -0
- package/package.json +1 -1
- package/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +4 -1
- package/serialization/resources/organization/client/requests/UpdateOrganizationRequest.js +4 -1
- package/serialization/resources/organization/types/Organization.d.ts +3 -0
- package/serialization/resources/organization/types/Organization.js +3 -0
|
@@ -13,7 +13,7 @@ export declare class Organization {
|
|
|
13
13
|
private readonly options;
|
|
14
14
|
constructor(options: Organization.Options);
|
|
15
15
|
create(request: FernVenusApi.CreateOrganizationRequest): Promise<core.APIResponse<void, FernVenusApi.organization.create.Error>>;
|
|
16
|
-
update(orgId: FernVenusApi.OrganizationId, request
|
|
16
|
+
update(orgId: FernVenusApi.OrganizationId, request?: FernVenusApi.UpdateOrganizationRequest): Promise<core.APIResponse<void, FernVenusApi.organization.update.Error>>;
|
|
17
17
|
get(orgId: FernVenusApi.OrganizationId): Promise<core.APIResponse<FernVenusApi.Organization, FernVenusApi.organization.get.Error>>;
|
|
18
18
|
isMember(organizationId: FernVenusApi.OrganizationId): Promise<core.APIResponse<boolean, FernVenusApi.organization.isMember.Error>>;
|
|
19
19
|
/**
|
|
@@ -69,7 +69,7 @@ class Organization {
|
|
|
69
69
|
error: venus_api_sdk_1.FernVenusApi.organization.create.Error._unknown(_response.error),
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
|
-
async update(orgId, request) {
|
|
72
|
+
async update(orgId, request = {}) {
|
|
73
73
|
const _response = await core.fetcher({
|
|
74
74
|
url: (0, url_join_1.default)(this.options.environment, `/organizations/${await serializers.OrganizationId.jsonOrThrow(orgId)}/update`),
|
|
75
75
|
method: "POST",
|
|
@@ -2,5 +2,8 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
export interface UpdateOrganizationRequest {
|
|
5
|
-
artifactReadRequiresToken
|
|
5
|
+
artifactReadRequiresToken?: boolean;
|
|
6
|
+
isWhitelabeled?: boolean;
|
|
7
|
+
apiPlaygroundEnabled?: boolean;
|
|
8
|
+
workosOrganizationId?: string;
|
|
6
9
|
}
|
|
@@ -7,4 +7,10 @@ export interface Organization {
|
|
|
7
7
|
displayName: string;
|
|
8
8
|
artifactReadRequiresToken: boolean;
|
|
9
9
|
users: FernVenusApi.LightweightUser[];
|
|
10
|
+
/** If the organization has paid for whitelabelling. */
|
|
11
|
+
isWhitelabled: boolean;
|
|
12
|
+
/** If the organization has paid for api playground. */
|
|
13
|
+
apiPlaygroundEnabled: boolean;
|
|
14
|
+
/** If the organization has sso enabled. */
|
|
15
|
+
workosOrganizationId?: string;
|
|
10
16
|
}
|
package/package.json
CHANGED
|
@@ -7,6 +7,9 @@ import * as core from "../../../../../core";
|
|
|
7
7
|
export declare const UpdateOrganizationRequest: core.serialization.Schema<serializers.UpdateOrganizationRequest.Raw, FernVenusApi.UpdateOrganizationRequest>;
|
|
8
8
|
export declare namespace UpdateOrganizationRequest {
|
|
9
9
|
interface Raw {
|
|
10
|
-
artifactReadRequiresToken
|
|
10
|
+
artifactReadRequiresToken?: boolean | null;
|
|
11
|
+
isWhitelabeled?: boolean | null;
|
|
12
|
+
apiPlaygroundEnabled?: boolean | null;
|
|
13
|
+
workosOrganizationId?: string | null;
|
|
11
14
|
}
|
|
12
15
|
}
|
|
@@ -29,5 +29,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.UpdateOrganizationRequest = void 0;
|
|
30
30
|
const core = __importStar(require("../../../../../core"));
|
|
31
31
|
exports.UpdateOrganizationRequest = core.serialization.object({
|
|
32
|
-
artifactReadRequiresToken: core.serialization.boolean(),
|
|
32
|
+
artifactReadRequiresToken: core.serialization.boolean().optional(),
|
|
33
|
+
isWhitelabeled: core.serialization.boolean().optional(),
|
|
34
|
+
apiPlaygroundEnabled: core.serialization.boolean().optional(),
|
|
35
|
+
workosOrganizationId: core.serialization.string().optional(),
|
|
33
36
|
});
|
|
@@ -33,4 +33,7 @@ exports.Organization = core.serialization.object({
|
|
|
33
33
|
displayName: core.serialization.string(),
|
|
34
34
|
artifactReadRequiresToken: core.serialization.boolean(),
|
|
35
35
|
users: core.serialization.list(core.serialization.lazyObject(async () => (await Promise.resolve().then(() => __importStar(require("../../..")))).LightweightUser)),
|
|
36
|
+
isWhitelabled: core.serialization.boolean(),
|
|
37
|
+
apiPlaygroundEnabled: core.serialization.boolean(),
|
|
38
|
+
workosOrganizationId: core.serialization.string().optional(),
|
|
36
39
|
});
|