@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.
Files changed (80) hide show
  1. package/core.d.ts +1 -0
  2. package/dist/browser/cjs/core.js +702 -167
  3. package/dist/browser/cjs/index.js +996 -391
  4. package/dist/browser/cjs/serialization.js +930 -329
  5. package/dist/browser/esm/core.js +702 -167
  6. package/dist/browser/esm/index.js +996 -391
  7. package/dist/browser/esm/serialization.js +936 -329
  8. package/dist/node/core.js +702 -167
  9. package/dist/node/index.js +996 -391
  10. package/dist/node/serialization.js +1002 -391
  11. package/package.json +2 -2
  12. package/serialization.d.ts +1 -0
  13. package/types/api/resources/organization/client/Client.d.ts +6 -6
  14. package/types/api/resources/organization/client/addUser.d.ts +0 -1
  15. package/types/api/resources/organization/client/create.d.ts +0 -1
  16. package/types/api/resources/organization/client/get.d.ts +0 -1
  17. package/types/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +0 -1
  18. package/types/api/resources/organization/client/isMember.d.ts +0 -1
  19. package/types/api/resources/organization/client/update.d.ts +0 -1
  20. package/types/api/resources/registry/client/Client.d.ts +3 -3
  21. package/types/api/resources/registry/client/generateRegistryTokens.d.ts +0 -1
  22. package/types/api/resources/registry/client/hasRegistryPermission.d.ts +0 -1
  23. package/types/api/resources/registry/client/revokeToken.d.ts +0 -1
  24. package/types/api/resources/user/client/Client.d.ts +2 -2
  25. package/types/api/resources/user/client/getMyOrganizations.d.ts +0 -1
  26. package/types/api/resources/user/client/getMyself.d.ts +0 -1
  27. package/types/core/fetcher/Fetcher.d.ts +1 -1
  28. package/types/core/schemas/Schema.d.ts +35 -7
  29. package/types/core/schemas/builders/enum/enum.d.ts +1 -1
  30. package/types/core/schemas/builders/index.d.ts +0 -1
  31. package/types/core/schemas/builders/literals/stringLiteral.d.ts +1 -1
  32. package/types/core/schemas/builders/object/types.d.ts +5 -4
  33. package/types/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +4 -3
  34. package/types/core/schemas/builders/object-like/index.d.ts +2 -2
  35. package/types/core/schemas/builders/object-like/types.d.ts +2 -8
  36. package/types/core/schemas/builders/primitives/any.d.ts +1 -1
  37. package/types/core/schemas/builders/primitives/boolean.d.ts +1 -1
  38. package/types/core/schemas/builders/primitives/number.d.ts +1 -1
  39. package/types/core/schemas/builders/primitives/string.d.ts +1 -1
  40. package/types/core/schemas/builders/primitives/unknown.d.ts +1 -1
  41. package/types/core/schemas/builders/record/index.d.ts +1 -0
  42. package/types/core/schemas/builders/record/record.d.ts +2 -1
  43. package/types/core/schemas/builders/record/types.d.ts +5 -0
  44. package/types/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
  45. package/types/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
  46. package/types/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +11 -6
  47. package/types/core/schemas/builders/schema-utils/index.d.ts +2 -1
  48. package/types/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
  49. package/types/core/schemas/utils/MaybePromise.d.ts +1 -0
  50. package/types/core/schemas/utils/OptionalRecord.d.ts +1 -0
  51. package/types/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +3 -3
  52. package/types/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
  53. package/types/core/schemas/utils/isPlainObject.d.ts +2 -0
  54. package/types/serialization/resources/index.d.ts +2 -0
  55. package/types/serialization/resources/organization/client/addUser.d.ts +0 -7
  56. package/types/serialization/resources/organization/client/create.d.ts +0 -7
  57. package/types/serialization/resources/organization/client/get.d.ts +0 -4
  58. package/types/serialization/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +0 -4
  59. package/types/serialization/resources/organization/client/index.d.ts +1 -0
  60. package/types/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.ts +13 -0
  61. package/types/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +13 -0
  62. package/types/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +12 -0
  63. package/types/serialization/resources/organization/client/requests/index.d.ts +3 -0
  64. package/types/serialization/resources/organization/client/update.d.ts +0 -6
  65. package/types/serialization/resources/registry/client/generateRegistryTokens.d.ts +0 -10
  66. package/types/serialization/resources/registry/client/hasRegistryPermission.d.ts +1 -8
  67. package/types/serialization/resources/registry/client/index.d.ts +1 -0
  68. package/types/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +13 -0
  69. package/types/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +12 -0
  70. package/types/serialization/resources/registry/client/requests/RevokeTokenRequest.d.ts +13 -0
  71. package/types/serialization/resources/registry/client/requests/index.d.ts +3 -0
  72. package/types/serialization/resources/registry/client/revokeToken.d.ts +0 -7
  73. package/types/serialization/resources/user/index.d.ts +0 -1
  74. package/types/core/schemas/builders/identity/createIdentitySchemaCreator.d.ts +0 -2
  75. package/types/core/schemas/builders/identity/identity.d.ts +0 -2
  76. package/types/core/schemas/builders/identity/index.d.ts +0 -2
  77. package/types/core/schemas/builders/schema-utils/types.d.ts +0 -7
  78. package/types/serialization/resources/user/client/getMyOrganizations.d.ts +0 -10
  79. package/types/serialization/resources/user/client/getMyself.d.ts +0 -10
  80. package/types/serialization/resources/user/client/index.d.ts +0 -2
@@ -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
+ }
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ export { GenerateRegistryTokensRequest } from "./GenerateRegistryTokensRequest";
2
+ export { CheckRegistryPermissionRequest } from "./CheckRegistryPermissionRequest";
3
+ export { RevokeTokenRequest } from "./RevokeTokenRequest";
@@ -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,2 +1 @@
1
1
  export * from "./types";
2
- export * from "./client";
@@ -1,2 +0,0 @@
1
- import { Schema } from "../../Schema";
2
- export declare function createIdentitySchemaCreator<T>(): () => Schema<T, T>;
@@ -1,2 +0,0 @@
1
- import { Schema } from "../../Schema";
2
- export declare function identity<T>(): Schema<T, T>;
@@ -1,2 +0,0 @@
1
- export { createIdentitySchemaCreator } from "./createIdentitySchemaCreator";
2
- export { identity } from "./identity";
@@ -1,7 +0,0 @@
1
- import { Schema } from "../../Schema";
2
- export declare const OPTIONAL_BRAND: {
3
- _isOptional: void;
4
- };
5
- export declare type OptionalSchema<Raw, Parsed> = Schema<Raw | null | undefined, Parsed | undefined> & {
6
- _isOptional: void;
7
- };
@@ -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
- }
@@ -1,2 +0,0 @@
1
- export * as getMyself from "./getMyself";
2
- export * as getMyOrganizations from "./getMyOrganizations";