@fern-api/venus-api-sdk 0.10.0 → 0.10.1-2-g8c943d4
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/Client.d.ts +14 -6
- package/Client.js +8 -9
- package/api/resources/commons/types/OrganizationId.d.ts +1 -1
- package/api/resources/commons/types/UserId.d.ts +1 -1
- package/api/resources/organization/client/Client.d.ts +116 -13
- package/api/resources/organization/client/Client.js +513 -236
- package/api/resources/organization/client/addUser.d.ts +1 -1
- package/api/resources/organization/client/addUser.js +27 -4
- package/api/resources/organization/client/create.d.ts +1 -1
- package/api/resources/organization/client/create.js +27 -4
- package/api/resources/organization/client/get.d.ts +1 -1
- package/api/resources/organization/client/get.js +26 -3
- package/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +1 -1
- package/api/resources/organization/client/getMyOrganizationFromScopedToken.js +26 -3
- package/api/resources/organization/client/getOrgIdsFromToken.d.ts +1 -1
- package/api/resources/organization/client/getOrgIdsFromToken.js +25 -2
- package/api/resources/organization/client/inviteUser.d.ts +1 -1
- package/api/resources/organization/client/inviteUser.js +27 -4
- package/api/resources/organization/client/isMember.d.ts +1 -1
- package/api/resources/organization/client/isMember.js +25 -2
- package/api/resources/organization/client/removeUser.d.ts +1 -1
- package/api/resources/organization/client/removeUser.js +27 -4
- package/api/resources/organization/client/requests/AddUserToOrgRequest.d.ts +8 -1
- package/api/resources/organization/client/requests/CreateOrganizationRequest.d.ts +15 -1
- package/api/resources/organization/client/requests/GetMyOrganizationFromScopedToken.d.ts +6 -0
- package/api/resources/organization/client/requests/GetOrganizationRequest.d.ts +6 -0
- package/api/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +8 -1
- package/api/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +8 -1
- package/api/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +31 -0
- package/api/resources/organization/client/requests/index.d.ts +7 -7
- package/api/resources/organization/client/update.d.ts +1 -1
- package/api/resources/organization/client/update.js +26 -3
- package/api/resources/organization/types/Organization.d.ts +1 -1
- package/api/resources/registry/client/Client.d.ts +48 -7
- package/api/resources/registry/client/Client.js +198 -87
- package/api/resources/registry/client/generateRegistryTokens.d.ts +1 -1
- package/api/resources/registry/client/generateRegistryTokens.js +27 -4
- package/api/resources/registry/client/hasRegistryPermission.d.ts +1 -1
- package/api/resources/registry/client/hasRegistryPermission.js +27 -4
- package/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +11 -1
- package/api/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +7 -1
- package/api/resources/registry/client/requests/RevokeTokenRequest.d.ts +8 -1
- package/api/resources/registry/client/requests/index.d.ts +3 -3
- package/api/resources/registry/client/revokeToken.d.ts +1 -1
- package/api/resources/registry/client/revokeToken.js +27 -4
- package/api/resources/registry/types/RegistryToken.d.ts +5 -28
- package/api/resources/registry/types/RegistryToken.js +0 -51
- package/api/resources/registry/types/RegistryTokens.d.ts +1 -1
- package/api/resources/user/client/Client.d.ts +30 -6
- package/api/resources/user/client/Client.js +107 -43
- package/api/resources/user/client/getMyOrganizations.d.ts +1 -1
- package/api/resources/user/client/getMyOrganizations.js +25 -2
- package/api/resources/user/client/getMyself.d.ts +1 -1
- package/api/resources/user/client/getMyself.js +25 -2
- package/api/resources/user/client/requests/GetUserOrganizationsRequest.d.ts +6 -0
- package/api/resources/user/client/requests/index.d.ts +1 -1
- package/api/resources/user/types/OrganizationsPage.d.ts +1 -1
- package/api/resources/user/types/User.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +1 -0
- package/core/fetcher/Fetcher.d.ts +9 -2
- package/core/fetcher/Fetcher.js +78 -64
- package/core/fetcher/Supplier.js +11 -2
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +13 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +59 -0
- package/core/fetcher/getHeader.d.ts +1 -0
- package/core/fetcher/getHeader.js +12 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +52 -0
- package/core/fetcher/index.d.ts +4 -2
- package/core/fetcher/index.js +3 -1
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +32 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +37 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/core/index.d.ts +3 -2
- package/core/index.js +6 -5
- package/core/runtime/index.d.ts +1 -0
- package/core/runtime/index.js +5 -0
- package/core/runtime/runtime.d.ts +9 -0
- package/core/runtime/runtime.js +93 -0
- package/core/schemas/Schema.d.ts +44 -5
- package/core/schemas/Schema.js +3 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/date/date.js +22 -14
- package/core/schemas/builders/enum/enum.js +17 -7
- package/core/schemas/builders/index.d.ts +2 -0
- package/core/schemas/builders/index.js +2 -0
- package/core/schemas/builders/lazy/index.d.ts +2 -1
- package/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/core/schemas/builders/lazy/lazy.js +6 -9
- package/core/schemas/builders/lazy/lazyObject.js +2 -11
- package/core/schemas/builders/list/list.js +16 -14
- package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/core/schemas/builders/literals/index.d.ts +1 -0
- package/core/schemas/builders/literals/index.js +3 -1
- package/core/schemas/builders/literals/stringLiteral.js +4 -3
- package/core/schemas/builders/object/index.d.ts +5 -2
- package/core/schemas/builders/object/index.js +3 -1
- package/core/schemas/builders/object/object.js +65 -63
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/core/schemas/builders/object/types.d.ts +2 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +9 -17
- package/core/schemas/builders/object-like/index.d.ts +1 -1
- package/core/schemas/builders/primitives/boolean.js +4 -3
- package/core/schemas/builders/primitives/number.js +4 -3
- package/core/schemas/builders/primitives/string.js +4 -3
- package/core/schemas/builders/record/index.d.ts +1 -1
- package/core/schemas/builders/record/record.js +36 -32
- package/core/schemas/builders/record/types.d.ts +2 -3
- package/core/schemas/builders/schema-utils/JsonError.js +0 -1
- package/core/schemas/builders/schema-utils/ParseError.js +0 -1
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +16 -16
- package/core/schemas/builders/schema-utils/index.d.ts +2 -1
- package/core/schemas/builders/set/set.js +10 -10
- package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
- package/core/schemas/builders/union/index.d.ts +3 -2
- package/core/schemas/builders/union/union.js +61 -31
- package/core/schemas/index.d.ts +1 -1
- package/core/schemas/utils/createIdentitySchemaCreator.js +2 -4
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +28 -0
- package/core/schemas/utils/isPlainObject.d.ts +0 -1
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/core/schemas/utils/maybeSkipValidation.js +28 -0
- package/dist/Client.d.ts +31 -0
- package/dist/Client.js +27 -0
- package/dist/api/index.d.ts +1 -0
- package/dist/api/index.js +17 -0
- package/dist/api/resources/commons/index.d.ts +1 -0
- package/dist/api/resources/commons/index.js +17 -0
- package/dist/api/resources/commons/types/OrganizationId.d.ts +8 -0
- package/dist/api/resources/commons/types/OrganizationId.js +10 -0
- package/dist/api/resources/commons/types/UserId.d.ts +8 -0
- package/dist/api/resources/commons/types/UserId.js +10 -0
- package/dist/api/resources/commons/types/index.d.ts +2 -0
- package/dist/api/resources/commons/types/index.js +18 -0
- package/dist/api/resources/index.d.ts +11 -0
- package/dist/api/resources/index.js +40 -0
- package/dist/api/resources/organization/client/Client.d.ts +130 -0
- package/dist/api/resources/organization/client/Client.js +582 -0
- package/dist/api/resources/organization/client/addUser.d.ts +32 -0
- package/dist/api/resources/organization/client/addUser.js +67 -0
- package/dist/api/resources/organization/client/create.d.ts +32 -0
- package/dist/api/resources/organization/client/create.js +67 -0
- package/dist/api/resources/organization/client/get.d.ts +27 -0
- package/dist/api/resources/organization/client/get.js +57 -0
- package/dist/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +27 -0
- package/dist/api/resources/organization/client/getMyOrganizationFromScopedToken.js +57 -0
- package/dist/api/resources/organization/client/getOrgIdsFromToken.d.ts +22 -0
- package/dist/api/resources/organization/client/getOrgIdsFromToken.js +47 -0
- package/dist/api/resources/organization/client/index.d.ts +10 -0
- package/dist/api/resources/organization/client/index.js +39 -0
- package/dist/api/resources/organization/client/inviteUser.d.ts +32 -0
- package/dist/api/resources/organization/client/inviteUser.js +67 -0
- package/dist/api/resources/organization/client/isMember.d.ts +22 -0
- package/dist/api/resources/organization/client/isMember.js +47 -0
- package/dist/api/resources/organization/client/removeUser.d.ts +32 -0
- package/dist/api/resources/organization/client/removeUser.js +67 -0
- package/dist/api/resources/organization/client/requests/AddUserToOrgRequest.d.ts +15 -0
- package/dist/api/resources/organization/client/requests/AddUserToOrgRequest.js +5 -0
- package/dist/api/resources/organization/client/requests/CreateOrganizationRequest.d.ts +23 -0
- package/dist/api/resources/organization/client/requests/CreateOrganizationRequest.js +5 -0
- package/dist/api/resources/organization/client/requests/GetMyOrganizationFromScopedToken.d.ts +12 -0
- package/dist/api/resources/organization/client/requests/GetMyOrganizationFromScopedToken.js +5 -0
- package/dist/api/resources/organization/client/requests/GetOrganizationRequest.d.ts +12 -0
- package/dist/api/resources/organization/client/requests/GetOrganizationRequest.js +5 -0
- package/dist/api/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +15 -0
- package/dist/api/resources/organization/client/requests/InviteUserToOrgRequest.js +5 -0
- package/dist/api/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +15 -0
- package/dist/api/resources/organization/client/requests/RemoveUserFromOrgRequest.js +5 -0
- package/dist/api/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +49 -0
- package/dist/api/resources/organization/client/requests/UpdateOrganizationRequest.js +5 -0
- package/dist/api/resources/organization/client/requests/index.d.ts +7 -0
- package/dist/api/resources/organization/client/requests/index.js +2 -0
- package/dist/api/resources/organization/client/update.d.ts +27 -0
- package/dist/api/resources/organization/client/update.js +57 -0
- package/dist/api/resources/organization/index.d.ts +2 -0
- package/dist/api/resources/organization/index.js +18 -0
- package/dist/api/resources/organization/types/LightweightUser.d.ts +9 -0
- package/dist/api/resources/organization/types/LightweightUser.js +5 -0
- package/dist/api/resources/organization/types/Organization.d.ts +35 -0
- package/dist/api/resources/organization/types/Organization.js +5 -0
- package/dist/api/resources/organization/types/index.d.ts +2 -0
- package/dist/api/resources/organization/types/index.js +18 -0
- package/dist/api/resources/registry/client/Client.d.ts +59 -0
- package/dist/api/resources/registry/client/Client.js +246 -0
- package/dist/api/resources/registry/client/generateRegistryTokens.d.ts +32 -0
- package/dist/api/resources/registry/client/generateRegistryTokens.js +67 -0
- package/dist/api/resources/registry/client/hasRegistryPermission.d.ts +32 -0
- package/dist/api/resources/registry/client/hasRegistryPermission.js +67 -0
- package/dist/api/resources/registry/client/index.d.ts +4 -0
- package/dist/api/resources/registry/client/index.js +33 -0
- package/dist/api/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +18 -0
- package/dist/api/resources/registry/client/requests/CheckRegistryPermissionRequest.js +5 -0
- package/dist/api/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +13 -0
- package/dist/api/resources/registry/client/requests/GenerateRegistryTokensRequest.js +5 -0
- package/dist/api/resources/registry/client/requests/RevokeTokenRequest.d.ts +15 -0
- package/dist/api/resources/registry/client/requests/RevokeTokenRequest.js +5 -0
- package/dist/api/resources/registry/client/requests/index.d.ts +3 -0
- package/dist/api/resources/registry/client/requests/index.js +2 -0
- package/dist/api/resources/registry/client/revokeToken.d.ts +32 -0
- package/dist/api/resources/registry/client/revokeToken.js +67 -0
- package/dist/api/resources/registry/index.d.ts +2 -0
- package/dist/api/resources/registry/index.js +18 -0
- package/dist/api/resources/registry/types/MavenRegistryToken.d.ts +7 -0
- package/dist/api/resources/registry/types/MavenRegistryToken.js +5 -0
- package/dist/api/resources/registry/types/NpmRegistryToken.d.ts +6 -0
- package/dist/api/resources/registry/types/NpmRegistryToken.js +5 -0
- package/dist/api/resources/registry/types/PypiRegistryToken.d.ts +7 -0
- package/dist/api/resources/registry/types/PypiRegistryToken.js +5 -0
- package/dist/api/resources/registry/types/RegistryToken.d.ts +16 -0
- package/dist/api/resources/registry/types/RegistryToken.js +5 -0
- package/dist/api/resources/registry/types/RegistryTokens.d.ts +9 -0
- package/dist/api/resources/registry/types/RegistryTokens.js +5 -0
- package/dist/api/resources/registry/types/index.d.ts +5 -0
- package/dist/api/resources/registry/types/index.js +21 -0
- package/dist/api/resources/user/client/Client.d.ts +41 -0
- package/dist/api/resources/user/client/Client.js +151 -0
- package/dist/api/resources/user/client/getMyOrganizations.d.ts +22 -0
- package/dist/api/resources/user/client/getMyOrganizations.js +47 -0
- package/dist/api/resources/user/client/getMyself.d.ts +22 -0
- package/dist/api/resources/user/client/getMyself.js +47 -0
- package/dist/api/resources/user/client/index.d.ts +3 -0
- package/dist/api/resources/user/client/index.js +32 -0
- package/dist/api/resources/user/client/requests/GetUserOrganizationsRequest.d.ts +12 -0
- package/dist/api/resources/user/client/requests/GetUserOrganizationsRequest.js +5 -0
- package/dist/api/resources/user/client/requests/index.d.ts +1 -0
- package/dist/api/resources/user/client/requests/index.js +2 -0
- package/dist/api/resources/user/index.d.ts +2 -0
- package/dist/api/resources/user/index.js +18 -0
- package/dist/api/resources/user/types/OrganizationsPage.d.ts +8 -0
- package/dist/api/resources/user/types/OrganizationsPage.js +5 -0
- package/dist/api/resources/user/types/User.d.ts +10 -0
- package/dist/api/resources/user/types/User.js +5 -0
- package/dist/api/resources/user/types/index.d.ts +2 -0
- package/dist/api/resources/user/types/index.js +18 -0
- package/dist/core/auth/BasicAuth.d.ts +8 -0
- package/dist/core/auth/BasicAuth.js +26 -0
- package/dist/core/auth/BearerToken.d.ts +5 -0
- package/dist/core/auth/BearerToken.js +15 -0
- package/dist/core/auth/index.d.ts +2 -0
- package/dist/core/auth/index.js +7 -0
- package/dist/core/fetcher/APIResponse.d.ts +10 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +39 -0
- package/dist/core/fetcher/Fetcher.js +99 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +22 -0
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +13 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +59 -0
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/dist/core/fetcher/getHeader.js +12 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +52 -0
- package/dist/core/fetcher/index.d.ts +5 -0
- package/dist/core/fetcher/index.js +9 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +32 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +37 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/index.js +33 -0
- package/dist/core/runtime/index.d.ts +1 -0
- package/dist/core/runtime/index.js +5 -0
- package/dist/core/runtime/runtime.d.ts +9 -0
- package/dist/core/runtime/runtime.js +93 -0
- package/dist/core/schemas/Schema.d.ts +85 -0
- package/dist/core/schemas/Schema.js +22 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/date/date.d.ts +2 -0
- package/dist/core/schemas/builders/date/date.js +63 -0
- package/dist/core/schemas/builders/date/index.d.ts +1 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
- package/dist/core/schemas/builders/enum/enum.js +39 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +14 -0
- package/dist/core/schemas/builders/index.js +30 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/lazy.js +25 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +12 -0
- package/dist/core/schemas/builders/list/index.d.ts +1 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.d.ts +2 -0
- package/dist/core/schemas/builders/list/list.js +55 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/dist/core/schemas/builders/literals/index.d.ts +2 -0
- package/dist/core/schemas/builders/literals/index.js +7 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/dist/core/schemas/builders/object/index.d.ts +6 -0
- package/dist/core/schemas/builders/object/index.js +11 -0
- package/dist/core/schemas/builders/object/object.d.ts +3 -0
- package/dist/core/schemas/builders/object/object.js +233 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/dist/core/schemas/builders/object/property.d.ts +8 -0
- package/dist/core/schemas/builders/object/property.js +16 -0
- package/dist/core/schemas/builders/object/types.d.ts +26 -0
- package/dist/core/schemas/builders/object/types.js +2 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +54 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
- package/dist/core/schemas/builders/object-like/types.js +2 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/any.js +6 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/boolean.js +25 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
- package/dist/core/schemas/builders/primitives/index.js +13 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/number.js +25 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/string.js +25 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.d.ts +2 -0
- package/dist/core/schemas/builders/record/index.js +5 -0
- package/dist/core/schemas/builders/record/record.d.ts +3 -0
- package/dist/core/schemas/builders/record/record.js +95 -0
- package/dist/core/schemas/builders/record/types.d.ts +4 -0
- package/dist/core/schemas/builders/record/types.js +2 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +82 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/index.js +11 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/dist/core/schemas/builders/set/index.d.ts +1 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.d.ts +2 -0
- package/dist/core/schemas/builders/set/set.js +44 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +40 -0
- package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/dist/core/schemas/builders/union/discriminant.js +10 -0
- package/dist/core/schemas/builders/union/index.d.ts +4 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.d.ts +13 -0
- package/dist/core/schemas/builders/union/types.js +2 -0
- package/dist/core/schemas/builders/union/union.d.ts +4 -0
- package/dist/core/schemas/builders/union/union.js +130 -0
- package/dist/core/schemas/index.d.ts +2 -0
- package/dist/core/schemas/index.js +17 -0
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/dist/core/schemas/utils/MaybePromise.js +2 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/dist/core/schemas/utils/entries.d.ts +1 -0
- package/dist/core/schemas/utils/entries.js +7 -0
- package/dist/core/schemas/utils/filterObject.d.ts +1 -0
- package/dist/core/schemas/utils/filterObject.js +14 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +28 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/dist/core/schemas/utils/isPlainObject.js +18 -0
- package/dist/core/schemas/utils/keys.d.ts +1 -0
- package/dist/core/schemas/utils/keys.js +7 -0
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +28 -0
- package/dist/core/schemas/utils/partition.d.ts +1 -0
- package/dist/core/schemas/utils/partition.js +16 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +29 -0
- package/dist/serialization/index.d.ts +1 -0
- package/dist/serialization/index.js +17 -0
- package/dist/serialization/resources/commons/index.d.ts +1 -0
- package/dist/serialization/resources/commons/index.js +17 -0
- package/dist/serialization/resources/commons/types/OrganizationId.d.ts +10 -0
- package/dist/serialization/resources/commons/types/OrganizationId.js +35 -0
- package/dist/serialization/resources/commons/types/UserId.d.ts +10 -0
- package/dist/serialization/resources/commons/types/UserId.js +37 -0
- package/dist/serialization/resources/commons/types/index.d.ts +2 -0
- package/dist/serialization/resources/commons/types/index.js +18 -0
- package/dist/serialization/resources/index.d.ts +10 -0
- package/dist/serialization/resources/index.js +39 -0
- package/dist/serialization/resources/organization/client/addUser.d.ts +16 -0
- package/dist/serialization/resources/organization/client/addUser.js +61 -0
- package/dist/serialization/resources/organization/client/create.d.ts +16 -0
- package/dist/serialization/resources/organization/client/create.js +61 -0
- package/dist/serialization/resources/organization/client/get.d.ts +13 -0
- package/dist/serialization/resources/organization/client/get.js +58 -0
- package/dist/serialization/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +13 -0
- package/dist/serialization/resources/organization/client/getMyOrganizationFromScopedToken.js +58 -0
- package/dist/serialization/resources/organization/client/getOrgIdsFromToken.d.ts +11 -0
- package/dist/serialization/resources/organization/client/getOrgIdsFromToken.js +32 -0
- package/dist/serialization/resources/organization/client/index.d.ts +10 -0
- package/dist/serialization/resources/organization/client/index.js +39 -0
- package/dist/serialization/resources/organization/client/inviteUser.d.ts +16 -0
- package/dist/serialization/resources/organization/client/inviteUser.js +61 -0
- package/dist/serialization/resources/organization/client/isMember.d.ts +9 -0
- package/dist/serialization/resources/organization/client/isMember.js +31 -0
- package/dist/serialization/resources/organization/client/removeUser.d.ts +16 -0
- package/dist/serialization/resources/organization/client/removeUser.js +61 -0
- package/dist/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.ts +15 -0
- package/dist/serialization/resources/organization/client/requests/AddUserToOrgRequest.js +36 -0
- package/dist/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +15 -0
- package/dist/serialization/resources/organization/client/requests/CreateOrganizationRequest.js +36 -0
- package/dist/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +14 -0
- package/dist/serialization/resources/organization/client/requests/InviteUserToOrgRequest.js +35 -0
- package/dist/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +14 -0
- package/dist/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.js +35 -0
- package/dist/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +24 -0
- package/dist/serialization/resources/organization/client/requests/UpdateOrganizationRequest.js +45 -0
- package/dist/serialization/resources/organization/client/requests/index.d.ts +5 -0
- package/dist/serialization/resources/organization/client/requests/index.js +13 -0
- package/dist/serialization/resources/organization/client/update.d.ts +13 -0
- package/dist/serialization/resources/organization/client/update.js +58 -0
- package/dist/serialization/resources/organization/index.d.ts +2 -0
- package/dist/serialization/resources/organization/index.js +18 -0
- package/dist/serialization/resources/organization/types/LightweightUser.d.ts +15 -0
- package/dist/serialization/resources/organization/types/LightweightUser.js +36 -0
- package/dist/serialization/resources/organization/types/Organization.d.ts +30 -0
- package/dist/serialization/resources/organization/types/Organization.js +51 -0
- package/dist/serialization/resources/organization/types/index.d.ts +2 -0
- package/dist/serialization/resources/organization/types/index.js +18 -0
- package/dist/serialization/resources/registry/client/generateRegistryTokens.d.ts +16 -0
- package/dist/serialization/resources/registry/client/generateRegistryTokens.js +61 -0
- package/dist/serialization/resources/registry/client/hasRegistryPermission.d.ts +20 -0
- package/dist/serialization/resources/registry/client/hasRegistryPermission.js +62 -0
- package/dist/serialization/resources/registry/client/index.d.ts +4 -0
- package/dist/serialization/resources/registry/client/index.js +33 -0
- package/dist/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +15 -0
- package/dist/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.js +36 -0
- package/dist/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +13 -0
- package/dist/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.js +34 -0
- package/dist/serialization/resources/registry/client/requests/RevokeTokenRequest.d.ts +14 -0
- package/dist/serialization/resources/registry/client/requests/RevokeTokenRequest.js +35 -0
- package/dist/serialization/resources/registry/client/requests/index.d.ts +3 -0
- package/dist/serialization/resources/registry/client/requests/index.js +9 -0
- package/dist/serialization/resources/registry/client/revokeToken.d.ts +16 -0
- package/dist/serialization/resources/registry/client/revokeToken.js +61 -0
- package/dist/serialization/resources/registry/index.d.ts +2 -0
- package/dist/serialization/resources/registry/index.js +18 -0
- package/dist/serialization/resources/registry/types/MavenRegistryToken.d.ts +13 -0
- package/dist/serialization/resources/registry/types/MavenRegistryToken.js +34 -0
- package/dist/serialization/resources/registry/types/NpmRegistryToken.d.ts +12 -0
- package/dist/serialization/resources/registry/types/NpmRegistryToken.js +33 -0
- package/dist/serialization/resources/registry/types/PypiRegistryToken.d.ts +13 -0
- package/dist/serialization/resources/registry/types/PypiRegistryToken.js +34 -0
- package/dist/serialization/resources/registry/types/RegistryToken.d.ts +22 -0
- package/dist/serialization/resources/registry/types/RegistryToken.js +43 -0
- package/dist/serialization/resources/registry/types/RegistryTokens.d.ts +17 -0
- package/dist/serialization/resources/registry/types/RegistryTokens.js +38 -0
- package/dist/serialization/resources/registry/types/index.d.ts +5 -0
- package/dist/serialization/resources/registry/types/index.js +21 -0
- package/dist/serialization/resources/user/index.d.ts +1 -0
- package/dist/serialization/resources/user/index.js +17 -0
- package/dist/serialization/resources/user/types/OrganizationsPage.d.ts +14 -0
- package/dist/serialization/resources/user/types/OrganizationsPage.js +35 -0
- package/dist/serialization/resources/user/types/User.d.ts +16 -0
- package/dist/serialization/resources/user/types/User.js +37 -0
- package/dist/serialization/resources/user/types/index.d.ts +2 -0
- package/dist/serialization/resources/user/types/index.js +18 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/jest.config.js +5 -0
- package/package.json +28 -18
- package/serialization/resources/commons/types/OrganizationId.d.ts +2 -2
- package/serialization/resources/commons/types/OrganizationId.js +2 -2
- package/serialization/resources/commons/types/UserId.d.ts +2 -2
- package/serialization/resources/commons/types/UserId.js +2 -2
- package/serialization/resources/organization/client/addUser.d.ts +2 -2
- package/serialization/resources/organization/client/addUser.js +18 -4
- package/serialization/resources/organization/client/create.d.ts +2 -2
- package/serialization/resources/organization/client/create.js +18 -4
- package/serialization/resources/organization/client/get.d.ts +2 -2
- package/serialization/resources/organization/client/get.js +17 -3
- package/serialization/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +2 -2
- package/serialization/resources/organization/client/getMyOrganizationFromScopedToken.js +17 -3
- package/serialization/resources/organization/client/getOrgIdsFromToken.d.ts +4 -3
- package/serialization/resources/organization/client/getOrgIdsFromToken.js +2 -1
- package/serialization/resources/organization/client/inviteUser.d.ts +2 -2
- package/serialization/resources/organization/client/inviteUser.js +18 -4
- package/serialization/resources/organization/client/isMember.d.ts +1 -1
- package/serialization/resources/organization/client/removeUser.d.ts +2 -2
- package/serialization/resources/organization/client/removeUser.js +18 -4
- package/serialization/resources/organization/client/requests/AddUserToOrgRequest.d.ts +6 -4
- package/serialization/resources/organization/client/requests/AddUserToOrgRequest.js +4 -2
- package/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts +4 -3
- package/serialization/resources/organization/client/requests/CreateOrganizationRequest.js +2 -1
- package/serialization/resources/organization/client/requests/InviteUserToOrgRequest.d.ts +4 -3
- package/serialization/resources/organization/client/requests/InviteUserToOrgRequest.js +2 -1
- package/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.d.ts +4 -3
- package/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.js +2 -1
- package/serialization/resources/organization/client/requests/UpdateOrganizationRequest.d.ts +2 -2
- package/serialization/resources/organization/client/update.d.ts +2 -2
- package/serialization/resources/organization/client/update.js +17 -3
- package/serialization/resources/organization/types/LightweightUser.d.ts +2 -2
- package/serialization/resources/organization/types/Organization.d.ts +6 -4
- package/serialization/resources/organization/types/Organization.js +4 -2
- package/serialization/resources/registry/client/generateRegistryTokens.d.ts +2 -2
- package/serialization/resources/registry/client/generateRegistryTokens.js +18 -4
- package/serialization/resources/registry/client/hasRegistryPermission.d.ts +2 -2
- package/serialization/resources/registry/client/hasRegistryPermission.js +18 -4
- package/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.d.ts +6 -4
- package/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.js +4 -2
- package/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.d.ts +4 -3
- package/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.js +2 -1
- package/serialization/resources/registry/client/requests/RevokeTokenRequest.d.ts +4 -3
- package/serialization/resources/registry/client/requests/RevokeTokenRequest.js +2 -1
- package/serialization/resources/registry/client/revokeToken.d.ts +2 -2
- package/serialization/resources/registry/client/revokeToken.js +18 -4
- package/serialization/resources/registry/types/MavenRegistryToken.d.ts +2 -2
- package/serialization/resources/registry/types/NpmRegistryToken.d.ts +2 -2
- package/serialization/resources/registry/types/PypiRegistryToken.d.ts +2 -2
- package/serialization/resources/registry/types/RegistryToken.d.ts +8 -5
- package/serialization/resources/registry/types/RegistryToken.js +8 -17
- package/serialization/resources/registry/types/RegistryTokens.d.ts +8 -5
- package/serialization/resources/registry/types/RegistryTokens.js +6 -3
- package/serialization/resources/user/types/OrganizationsPage.d.ts +4 -3
- package/serialization/resources/user/types/OrganizationsPage.js +2 -1
- package/serialization/resources/user/types/User.d.ts +4 -3
- package/serialization/resources/user/types/User.js +2 -1
- package/version.d.ts +1 -0
- package/version.js +4 -0
- package/core/schemas/utils/OptionalRecord.d.ts +0 -1
- /package/core/schemas/{utils/OptionalRecord.js → builders/undiscriminated-union/types.js} +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Error = void 0;
|
|
41
|
+
const FernVenusApi = __importStar(require("../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../core"));
|
|
43
|
+
exports.Error = core.serialization
|
|
44
|
+
.union("error", {
|
|
45
|
+
UnauthorizedError: core.serialization.object({}),
|
|
46
|
+
UserIdDoesNotExistError: core.serialization.object({}),
|
|
47
|
+
})
|
|
48
|
+
.transform({
|
|
49
|
+
transform: (value) => {
|
|
50
|
+
switch (value.error) {
|
|
51
|
+
case "UnauthorizedError":
|
|
52
|
+
return FernVenusApi.organization.addUser.Error.unauthorizedError();
|
|
53
|
+
case "UserIdDoesNotExistError":
|
|
54
|
+
return FernVenusApi.organization.addUser.Error.userIdDoesNotExistError();
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
untransform: (_a) => {
|
|
58
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
59
|
+
return value;
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as FernVenusApi from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const Error: core.serialization.Schema<serializers.organization.create.Error.Raw, FernVenusApi.organization.create.Error>;
|
|
8
|
+
export declare namespace Error {
|
|
9
|
+
type Raw = Error.UnauthorizedError | Error.OrganizationAlreadyExistsError;
|
|
10
|
+
interface UnauthorizedError {
|
|
11
|
+
error: "UnauthorizedError";
|
|
12
|
+
}
|
|
13
|
+
interface OrganizationAlreadyExistsError {
|
|
14
|
+
error: "OrganizationAlreadyExistsError";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Error = void 0;
|
|
41
|
+
const FernVenusApi = __importStar(require("../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../core"));
|
|
43
|
+
exports.Error = core.serialization
|
|
44
|
+
.union("error", {
|
|
45
|
+
UnauthorizedError: core.serialization.object({}),
|
|
46
|
+
OrganizationAlreadyExistsError: core.serialization.object({}),
|
|
47
|
+
})
|
|
48
|
+
.transform({
|
|
49
|
+
transform: (value) => {
|
|
50
|
+
switch (value.error) {
|
|
51
|
+
case "UnauthorizedError":
|
|
52
|
+
return FernVenusApi.organization.create.Error.unauthorizedError();
|
|
53
|
+
case "OrganizationAlreadyExistsError":
|
|
54
|
+
return FernVenusApi.organization.create.Error.organizationAlreadyExistsError();
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
untransform: (_a) => {
|
|
58
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
59
|
+
return value;
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as FernVenusApi from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const Error: core.serialization.Schema<serializers.organization.get.Error.Raw, FernVenusApi.organization.get.Error>;
|
|
8
|
+
export declare namespace Error {
|
|
9
|
+
type Raw = Error.UnauthorizedError;
|
|
10
|
+
interface UnauthorizedError {
|
|
11
|
+
error: "UnauthorizedError";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Error = void 0;
|
|
41
|
+
const FernVenusApi = __importStar(require("../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../core"));
|
|
43
|
+
exports.Error = core.serialization
|
|
44
|
+
.union("error", {
|
|
45
|
+
UnauthorizedError: core.serialization.object({}),
|
|
46
|
+
})
|
|
47
|
+
.transform({
|
|
48
|
+
transform: (value) => {
|
|
49
|
+
switch (value.error) {
|
|
50
|
+
case "UnauthorizedError":
|
|
51
|
+
return FernVenusApi.organization.get.Error.unauthorizedError();
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
untransform: (_a) => {
|
|
55
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
56
|
+
return value;
|
|
57
|
+
},
|
|
58
|
+
});
|
package/dist/serialization/resources/organization/client/getMyOrganizationFromScopedToken.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 "../../../index";
|
|
5
|
+
import * as FernVenusApi from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const Error: core.serialization.Schema<serializers.organization.getMyOrganizationFromScopedToken.Error.Raw, FernVenusApi.organization.getMyOrganizationFromScopedToken.Error>;
|
|
8
|
+
export declare namespace Error {
|
|
9
|
+
type Raw = Error.UnauthorizedError;
|
|
10
|
+
interface UnauthorizedError {
|
|
11
|
+
error: "UnauthorizedError";
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Error = void 0;
|
|
41
|
+
const FernVenusApi = __importStar(require("../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../core"));
|
|
43
|
+
exports.Error = core.serialization
|
|
44
|
+
.union("error", {
|
|
45
|
+
UnauthorizedError: core.serialization.object({}),
|
|
46
|
+
})
|
|
47
|
+
.transform({
|
|
48
|
+
transform: (value) => {
|
|
49
|
+
switch (value.error) {
|
|
50
|
+
case "UnauthorizedError":
|
|
51
|
+
return FernVenusApi.organization.getMyOrganizationFromScopedToken.Error.unauthorizedError();
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
untransform: (_a) => {
|
|
55
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
56
|
+
return value;
|
|
57
|
+
},
|
|
58
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as FernVenusApi from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
import { OrganizationId } from "../../commons/types/OrganizationId";
|
|
8
|
+
export declare const Response: core.serialization.Schema<serializers.organization.getOrgIdsFromToken.Response.Raw, FernVenusApi.OrganizationId[]>;
|
|
9
|
+
export declare namespace Response {
|
|
10
|
+
type Raw = OrganizationId.Raw[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Response = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
const OrganizationId_1 = require("../../commons/types/OrganizationId");
|
|
32
|
+
exports.Response = core.serialization.list(OrganizationId_1.OrganizationId);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * as create from "./create";
|
|
2
|
+
export * as update from "./update";
|
|
3
|
+
export * as get from "./get";
|
|
4
|
+
export * as isMember from "./isMember";
|
|
5
|
+
export * as getMyOrganizationFromScopedToken from "./getMyOrganizationFromScopedToken";
|
|
6
|
+
export * as getOrgIdsFromToken from "./getOrgIdsFromToken";
|
|
7
|
+
export * as addUser from "./addUser";
|
|
8
|
+
export * as inviteUser from "./inviteUser";
|
|
9
|
+
export * as removeUser from "./removeUser";
|
|
10
|
+
export * from "./requests";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.removeUser = exports.inviteUser = exports.addUser = exports.getOrgIdsFromToken = exports.getMyOrganizationFromScopedToken = exports.isMember = exports.get = exports.update = exports.create = void 0;
|
|
30
|
+
exports.create = __importStar(require("./create"));
|
|
31
|
+
exports.update = __importStar(require("./update"));
|
|
32
|
+
exports.get = __importStar(require("./get"));
|
|
33
|
+
exports.isMember = __importStar(require("./isMember"));
|
|
34
|
+
exports.getMyOrganizationFromScopedToken = __importStar(require("./getMyOrganizationFromScopedToken"));
|
|
35
|
+
exports.getOrgIdsFromToken = __importStar(require("./getOrgIdsFromToken"));
|
|
36
|
+
exports.addUser = __importStar(require("./addUser"));
|
|
37
|
+
exports.inviteUser = __importStar(require("./inviteUser"));
|
|
38
|
+
exports.removeUser = __importStar(require("./removeUser"));
|
|
39
|
+
__exportStar(require("./requests"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as FernVenusApi from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const Error: core.serialization.Schema<serializers.organization.inviteUser.Error.Raw, FernVenusApi.organization.inviteUser.Error>;
|
|
8
|
+
export declare namespace Error {
|
|
9
|
+
type Raw = Error.UnauthorizedError | Error.UserIdDoesNotExistError;
|
|
10
|
+
interface UnauthorizedError {
|
|
11
|
+
error: "UnauthorizedError";
|
|
12
|
+
}
|
|
13
|
+
interface UserIdDoesNotExistError {
|
|
14
|
+
error: "UserIdDoesNotExistError";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Error = void 0;
|
|
41
|
+
const FernVenusApi = __importStar(require("../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../core"));
|
|
43
|
+
exports.Error = core.serialization
|
|
44
|
+
.union("error", {
|
|
45
|
+
UnauthorizedError: core.serialization.object({}),
|
|
46
|
+
UserIdDoesNotExistError: core.serialization.object({}),
|
|
47
|
+
})
|
|
48
|
+
.transform({
|
|
49
|
+
transform: (value) => {
|
|
50
|
+
switch (value.error) {
|
|
51
|
+
case "UnauthorizedError":
|
|
52
|
+
return FernVenusApi.organization.inviteUser.Error.unauthorizedError();
|
|
53
|
+
case "UserIdDoesNotExistError":
|
|
54
|
+
return FernVenusApi.organization.inviteUser.Error.userIdDoesNotExistError();
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
untransform: (_a) => {
|
|
58
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
59
|
+
return value;
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare const Response: core.serialization.Schema<serializers.organization.isMember.Response.Raw, boolean>;
|
|
7
|
+
export declare namespace Response {
|
|
8
|
+
type Raw = boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.Response = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../core"));
|
|
31
|
+
exports.Response = core.serialization.boolean();
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../index";
|
|
5
|
+
import * as FernVenusApi from "../../../../api/index";
|
|
6
|
+
import * as core from "../../../../core";
|
|
7
|
+
export declare const Error: core.serialization.Schema<serializers.organization.removeUser.Error.Raw, FernVenusApi.organization.removeUser.Error>;
|
|
8
|
+
export declare namespace Error {
|
|
9
|
+
type Raw = Error.UnauthorizedError | Error.UserIdDoesNotExistError;
|
|
10
|
+
interface UnauthorizedError {
|
|
11
|
+
error: "UnauthorizedError";
|
|
12
|
+
}
|
|
13
|
+
interface UserIdDoesNotExistError {
|
|
14
|
+
error: "UserIdDoesNotExistError";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
29
|
+
var t = {};
|
|
30
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
31
|
+
t[p] = s[p];
|
|
32
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
33
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
34
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
35
|
+
t[p[i]] = s[p[i]];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.Error = void 0;
|
|
41
|
+
const FernVenusApi = __importStar(require("../../../../api/index"));
|
|
42
|
+
const core = __importStar(require("../../../../core"));
|
|
43
|
+
exports.Error = core.serialization
|
|
44
|
+
.union("error", {
|
|
45
|
+
UnauthorizedError: core.serialization.object({}),
|
|
46
|
+
UserIdDoesNotExistError: core.serialization.object({}),
|
|
47
|
+
})
|
|
48
|
+
.transform({
|
|
49
|
+
transform: (value) => {
|
|
50
|
+
switch (value.error) {
|
|
51
|
+
case "UnauthorizedError":
|
|
52
|
+
return FernVenusApi.organization.removeUser.Error.unauthorizedError();
|
|
53
|
+
case "UserIdDoesNotExistError":
|
|
54
|
+
return FernVenusApi.organization.removeUser.Error.userIdDoesNotExistError();
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
untransform: (_a) => {
|
|
58
|
+
var { _visit } = _a, value = __rest(_a, ["_visit"]);
|
|
59
|
+
return value;
|
|
60
|
+
},
|
|
61
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as FernVenusApi from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
import { UserId } from "../../../commons/types/UserId";
|
|
8
|
+
import { OrganizationId } from "../../../commons/types/OrganizationId";
|
|
9
|
+
export declare const AddUserToOrgRequest: core.serialization.Schema<serializers.AddUserToOrgRequest.Raw, FernVenusApi.AddUserToOrgRequest>;
|
|
10
|
+
export declare namespace AddUserToOrgRequest {
|
|
11
|
+
interface Raw {
|
|
12
|
+
userId: UserId.Raw;
|
|
13
|
+
orgId: OrganizationId.Raw;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.AddUserToOrgRequest = void 0;
|
|
30
|
+
const core = __importStar(require("../../../../../core"));
|
|
31
|
+
const UserId_1 = require("../../../commons/types/UserId");
|
|
32
|
+
const OrganizationId_1 = require("../../../commons/types/OrganizationId");
|
|
33
|
+
exports.AddUserToOrgRequest = core.serialization.object({
|
|
34
|
+
userId: UserId_1.UserId,
|
|
35
|
+
orgId: OrganizationId_1.OrganizationId,
|
|
36
|
+
});
|
package/dist/serialization/resources/organization/client/requests/CreateOrganizationRequest.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as serializers from "../../../../index";
|
|
5
|
+
import * as FernVenusApi from "../../../../../api/index";
|
|
6
|
+
import * as core from "../../../../../core";
|
|
7
|
+
import { OrganizationId } from "../../../commons/types/OrganizationId";
|
|
8
|
+
export declare const CreateOrganizationRequest: core.serialization.Schema<serializers.CreateOrganizationRequest.Raw, FernVenusApi.CreateOrganizationRequest>;
|
|
9
|
+
export declare namespace CreateOrganizationRequest {
|
|
10
|
+
interface Raw {
|
|
11
|
+
organizationId: OrganizationId.Raw;
|
|
12
|
+
artifactReadRequiresToken?: boolean | null;
|
|
13
|
+
enableGithubConnection?: boolean | null;
|
|
14
|
+
}
|
|
15
|
+
}
|