@fern-api/venus-api-sdk 0.0.18 → 0.0.20
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/core.d.ts +1 -0
- package/dist/browser/cjs/core.js +702 -167
- package/dist/browser/cjs/index.js +996 -391
- package/dist/browser/cjs/serialization.js +930 -329
- package/dist/browser/esm/core.js +702 -167
- package/dist/browser/esm/index.js +996 -391
- package/dist/browser/esm/serialization.js +936 -329
- package/dist/node/core.js +702 -167
- package/dist/node/index.js +996 -391
- package/dist/node/serialization.js +1002 -391
- package/package.json +2 -2
- package/serialization.d.ts +1 -0
- package/types/api/resources/organization/client/Client.d.ts +6 -6
- package/types/api/resources/organization/client/addUser.d.ts +0 -1
- package/types/api/resources/organization/client/create.d.ts +0 -1
- package/types/api/resources/organization/client/get.d.ts +0 -1
- package/types/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +0 -1
- package/types/api/resources/organization/client/isMember.d.ts +0 -1
- package/types/api/resources/organization/client/update.d.ts +0 -1
- package/types/api/resources/registry/client/Client.d.ts +3 -3
- package/types/api/resources/registry/client/generateRegistryTokens.d.ts +0 -1
- package/types/api/resources/registry/client/hasRegistryPermission.d.ts +0 -1
- package/types/api/resources/registry/client/revokeToken.d.ts +0 -1
- package/types/api/resources/user/client/Client.d.ts +2 -2
- package/types/api/resources/user/client/getMyOrganizations.d.ts +0 -1
- package/types/api/resources/user/client/getMyself.d.ts +0 -1
- package/types/core/fetcher/Fetcher.d.ts +1 -1
- package/types/core/schemas/Schema.d.ts +35 -7
- package/types/core/schemas/builders/enum/enum.d.ts +1 -1
- package/types/core/schemas/builders/index.d.ts +0 -1
- package/types/core/schemas/builders/literals/stringLiteral.d.ts +1 -1
- package/types/core/schemas/builders/object/types.d.ts +5 -4
- package/types/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +4 -3
- package/types/core/schemas/builders/object-like/index.d.ts +2 -2
- package/types/core/schemas/builders/object-like/types.d.ts +2 -8
- package/types/core/schemas/builders/primitives/any.d.ts +1 -1
- package/types/core/schemas/builders/primitives/boolean.d.ts +1 -1
- package/types/core/schemas/builders/primitives/number.d.ts +1 -1
- package/types/core/schemas/builders/primitives/string.d.ts +1 -1
- package/types/core/schemas/builders/primitives/unknown.d.ts +1 -1
- package/types/core/schemas/builders/record/index.d.ts +1 -0
- package/types/core/schemas/builders/record/record.d.ts +2 -1
- package/types/core/schemas/builders/record/types.d.ts +5 -0
- package/types/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/types/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/types/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +11 -6
- package/types/core/schemas/builders/schema-utils/index.d.ts +2 -1
- package/types/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/types/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/types/core/schemas/utils/OptionalRecord.d.ts +1 -0
- package/types/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +3 -3
- package/types/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/types/core/schemas/utils/isPlainObject.d.ts +2 -0
- package/types/serialization/resources/index.d.ts +2 -0
- package/types/serialization/resources/organization/client/addUser.d.ts +0 -7
- package/types/serialization/resources/organization/client/create.d.ts +0 -7
- package/types/serialization/resources/organization/client/get.d.ts +0 -4
- package/types/serialization/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +0 -4
- package/types/serialization/resources/organization/client/index.d.ts +1 -0
- package/types/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.ts +13 -0
- package/types/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +13 -0
- package/types/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +12 -0
- package/types/serialization/resources/organization/client/requests/index.d.ts +3 -0
- package/types/serialization/resources/organization/client/update.d.ts +0 -6
- package/types/serialization/resources/registry/client/generateRegistryTokens.d.ts +0 -10
- package/types/serialization/resources/registry/client/hasRegistryPermission.d.ts +1 -8
- package/types/serialization/resources/registry/client/index.d.ts +1 -0
- package/types/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +13 -0
- package/types/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +12 -0
- package/types/serialization/resources/registry/client/requests/RevokeTokenRequest.d.ts +13 -0
- package/types/serialization/resources/registry/client/requests/index.d.ts +3 -0
- package/types/serialization/resources/registry/client/revokeToken.d.ts +0 -7
- package/types/serialization/resources/user/index.d.ts +0 -1
- package/types/core/schemas/builders/identity/createIdentitySchemaCreator.d.ts +0 -2
- package/types/core/schemas/builders/identity/identity.d.ts +0 -2
- package/types/core/schemas/builders/identity/index.d.ts +0 -2
- package/types/core/schemas/builders/schema-utils/types.d.ts +0 -7
- package/types/serialization/resources/user/client/getMyOrganizations.d.ts +0 -10
- package/types/serialization/resources/user/client/getMyself.d.ts +0 -10
- package/types/serialization/resources/user/client/index.d.ts +0 -2
package/types/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../..";
|
|
5
|
+
import { FernVenusApi } from "../../../../..";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
export declare const CheckRegistryPermissionRequest: core.serialization.Schema<serializers.CheckRegistryPermissionRequest.Raw, FernVenusApi.CheckRegistryPermissionRequest>;
|
|
8
|
+
export declare namespace CheckRegistryPermissionRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
organizationId: serializers.OrganizationId.Raw;
|
|
11
|
+
token?: serializers.RegistryToken.Raw | null;
|
|
12
|
+
}
|
|
13
|
+
}
|
package/types/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../..";
|
|
5
|
+
import { FernVenusApi } from "../../../../..";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
export declare const GenerateRegistryTokensRequest: core.serialization.Schema<serializers.GenerateRegistryTokensRequest.Raw, FernVenusApi.GenerateRegistryTokensRequest>;
|
|
8
|
+
export declare namespace GenerateRegistryTokensRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
organizationId: serializers.OrganizationId.Raw;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../..";
|
|
5
|
+
import { FernVenusApi } from "../../../../..";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
export declare const RevokeTokenRequest: core.serialization.Schema<serializers.RevokeTokenRequest.Raw, FernVenusApi.RevokeTokenRequest>;
|
|
8
|
+
export declare namespace RevokeTokenRequest {
|
|
9
|
+
interface Raw {
|
|
10
|
+
organizationId: serializers.OrganizationId.Raw;
|
|
11
|
+
token: string;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -4,13 +4,6 @@
|
|
|
4
4
|
import * as serializers from "../../..";
|
|
5
5
|
import { FernVenusApi } from "../../../..";
|
|
6
6
|
import * as core from "../../../../core";
|
|
7
|
-
export declare const Request: core.serialization.Schema<serializers.registry.revokeToken.Request.Raw, FernVenusApi.RevokeTokenRequest>;
|
|
8
|
-
export declare namespace Request {
|
|
9
|
-
interface Raw {
|
|
10
|
-
organizationId: serializers.OrganizationId.Raw;
|
|
11
|
-
token: string;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
7
|
export declare const Error: core.serialization.Schema<serializers.registry.revokeToken.Error.Raw, FernVenusApi.registry.revokeToken.Error>;
|
|
15
8
|
export declare namespace Error {
|
|
16
9
|
type Raw = Error.UnauthorizedError | Error.OrganizationNotFoundError;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../..";
|
|
5
|
-
import { FernVenusApi } from "../../../..";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const Response: core.serialization.Schema<serializers.user.getMyOrganizations.Response.Raw, FernVenusApi.OrganizationsPage>;
|
|
8
|
-
export declare namespace Response {
|
|
9
|
-
type Raw = serializers.OrganizationsPage.Raw;
|
|
10
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
-
*/
|
|
4
|
-
import * as serializers from "../../..";
|
|
5
|
-
import { FernVenusApi } from "../../../..";
|
|
6
|
-
import * as core from "../../../../core";
|
|
7
|
-
export declare const Response: core.serialization.Schema<serializers.user.getMyself.Response.Raw, FernVenusApi.User>;
|
|
8
|
-
export declare namespace Response {
|
|
9
|
-
type Raw = serializers.User.Raw;
|
|
10
|
-
}
|