@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,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* userId: FernVenusApi.UserId("string"),
|
|
9
|
+
* orgId: FernVenusApi.OrganizationId("string")
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface AddUserToOrgRequest {
|
|
13
|
+
userId: FernVenusApi.UserId;
|
|
14
|
+
orgId: FernVenusApi.OrganizationId;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* organizationId: FernVenusApi.OrganizationId("string"),
|
|
9
|
+
* artifactReadRequiresToken: true,
|
|
10
|
+
* enableGithubConnection: true
|
|
11
|
+
* }
|
|
12
|
+
*/
|
|
13
|
+
export interface CreateOrganizationRequest {
|
|
14
|
+
organizationId: FernVenusApi.OrganizationId;
|
|
15
|
+
/** Defaults to False */
|
|
16
|
+
artifactReadRequiresToken?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Allow users to log into the organization with their GitHub account, necessary for accepting organizations today.
|
|
19
|
+
* This is a field to allow for us to create organizations without this in the future if necessary.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
enableGithubConnection?: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* emailAddress: "string",
|
|
9
|
+
* auth0OrgId: FernVenusApi.OrganizationId("string")
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface InviteUserToOrgRequest {
|
|
13
|
+
emailAddress: string;
|
|
14
|
+
auth0OrgId: FernVenusApi.OrganizationId;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../../index";
|
|
5
|
+
/**
|
|
6
|
+
* @example
|
|
7
|
+
* {
|
|
8
|
+
* userId: "string",
|
|
9
|
+
* auth0OrgId: FernVenusApi.OrganizationId("string")
|
|
10
|
+
* }
|
|
11
|
+
*/
|
|
12
|
+
export interface RemoveUserFromOrgRequest {
|
|
13
|
+
userId: string;
|
|
14
|
+
auth0OrgId: FernVenusApi.OrganizationId;
|
|
15
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* artifactReadRequiresToken: true,
|
|
8
|
+
* isWhitelabeled: true,
|
|
9
|
+
* previewEnabled: true,
|
|
10
|
+
* snippetsEnabled: true,
|
|
11
|
+
* snippetUnitTestsEnabled: true,
|
|
12
|
+
* snippetsApiAccessEnabled: true,
|
|
13
|
+
* snippetTemplatesAccessEnabled: true,
|
|
14
|
+
* paginationEnabled: true,
|
|
15
|
+
* changeLogEnabled: true,
|
|
16
|
+
* isFernbotCanary: true,
|
|
17
|
+
* oauthClientEnabled: true,
|
|
18
|
+
* apiPlaygroundEnabled: true,
|
|
19
|
+
* workosOrganizationId: "string"
|
|
20
|
+
* }
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateOrganizationRequest {
|
|
23
|
+
/** If not present, does not update value. */
|
|
24
|
+
artifactReadRequiresToken?: boolean;
|
|
25
|
+
/** If not present, does not update value. */
|
|
26
|
+
isWhitelabeled?: boolean;
|
|
27
|
+
/** If not present, does not update value. */
|
|
28
|
+
previewEnabled?: boolean;
|
|
29
|
+
/** If not present, does not update value. */
|
|
30
|
+
snippetsEnabled?: boolean;
|
|
31
|
+
/** If not present, does not update value. */
|
|
32
|
+
snippetUnitTestsEnabled?: boolean;
|
|
33
|
+
/** If not present, does not update value. */
|
|
34
|
+
snippetsApiAccessEnabled?: boolean;
|
|
35
|
+
/** If not present, does not update value. */
|
|
36
|
+
snippetTemplatesAccessEnabled?: boolean;
|
|
37
|
+
/** If not present, does not update value. */
|
|
38
|
+
paginationEnabled?: boolean;
|
|
39
|
+
/** If not present, does not update value. */
|
|
40
|
+
changeLogEnabled?: boolean;
|
|
41
|
+
/** If not present, does not update value. */
|
|
42
|
+
isFernbotCanary?: boolean;
|
|
43
|
+
/** If not present, does not update value. */
|
|
44
|
+
oauthClientEnabled?: boolean;
|
|
45
|
+
/** If not present, does not update value. */
|
|
46
|
+
apiPlaygroundEnabled?: boolean;
|
|
47
|
+
/** If not present, does not update value. */
|
|
48
|
+
workosOrganizationId?: string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { type CreateOrganizationRequest } from "./CreateOrganizationRequest";
|
|
2
|
+
export { type UpdateOrganizationRequest } from "./UpdateOrganizationRequest";
|
|
3
|
+
export { type GetOrganizationRequest } from "./GetOrganizationRequest";
|
|
4
|
+
export { type GetMyOrganizationFromScopedToken } from "./GetMyOrganizationFromScopedToken";
|
|
5
|
+
export { type AddUserToOrgRequest } from "./AddUserToOrgRequest";
|
|
6
|
+
export { type InviteUserToOrgRequest } from "./InviteUserToOrgRequest";
|
|
7
|
+
export { type RemoveUserFromOrgRequest } from "./RemoveUserFromOrgRequest";
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index";
|
|
5
|
+
import * as core from "../../../../core";
|
|
6
|
+
export declare type Error = FernVenusApi.organization.update.Error.UnauthorizedError | FernVenusApi.organization.update.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface UnauthorizedError extends _Utils {
|
|
9
|
+
error: "UnauthorizedError";
|
|
10
|
+
}
|
|
11
|
+
interface _Unknown extends _Utils {
|
|
12
|
+
error: void;
|
|
13
|
+
content: core.Fetcher.Error;
|
|
14
|
+
}
|
|
15
|
+
interface _Utils {
|
|
16
|
+
_visit: <_Result>(visitor: FernVenusApi.organization.update.Error._Visitor<_Result>) => _Result;
|
|
17
|
+
}
|
|
18
|
+
interface _Visitor<_Result> {
|
|
19
|
+
unauthorizedError: () => _Result;
|
|
20
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
export declare const Error: {
|
|
24
|
+
readonly unauthorizedError: () => FernVenusApi.organization.update.Error.UnauthorizedError;
|
|
25
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.organization.update.Error._Unknown;
|
|
26
|
+
readonly _visit: <_Result>(value: FernVenusApi.organization.update.Error, visitor: FernVenusApi.organization.update.Error._Visitor<_Result>) => _Result;
|
|
27
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
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.Error = void 0;
|
|
30
|
+
const FernVenusApi = __importStar(require("../../../index"));
|
|
31
|
+
exports.Error = {
|
|
32
|
+
unauthorizedError: () => {
|
|
33
|
+
return {
|
|
34
|
+
error: "UnauthorizedError",
|
|
35
|
+
_visit: function (visitor) {
|
|
36
|
+
return FernVenusApi.organization.update.Error._visit(this, visitor);
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
_unknown: (fetcherError) => {
|
|
41
|
+
return {
|
|
42
|
+
error: undefined,
|
|
43
|
+
content: fetcherError,
|
|
44
|
+
_visit: function (visitor) {
|
|
45
|
+
return FernVenusApi.organization.update.Error._visit(this, visitor);
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
},
|
|
49
|
+
_visit: (value, visitor) => {
|
|
50
|
+
switch (value.error) {
|
|
51
|
+
case "UnauthorizedError":
|
|
52
|
+
return visitor.unauthorizedError();
|
|
53
|
+
default:
|
|
54
|
+
return visitor._other(value);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
18
|
+
__exportStar(require("./client"), exports);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index";
|
|
5
|
+
export interface Organization {
|
|
6
|
+
organizationId: FernVenusApi.OrganizationId;
|
|
7
|
+
auth0Id: string;
|
|
8
|
+
displayName: string;
|
|
9
|
+
artifactReadRequiresToken: boolean;
|
|
10
|
+
users: FernVenusApi.LightweightUser[];
|
|
11
|
+
/** If the organization has paid for whitelabelling. */
|
|
12
|
+
isWhitelabled: boolean;
|
|
13
|
+
/** If the organization has paid for previews. */
|
|
14
|
+
previewEnabled: boolean;
|
|
15
|
+
/** If the organization has paid for snippets. */
|
|
16
|
+
snippetsEnabled: boolean;
|
|
17
|
+
/** If the organization has paid for snippet unit tests. */
|
|
18
|
+
snippetUnitTestsEnabled: boolean;
|
|
19
|
+
/** If the organization has paid for the snippets API. */
|
|
20
|
+
snippetsApiAccessEnabled: boolean;
|
|
21
|
+
/** If the organization has paid for dynamic snippet templates. */
|
|
22
|
+
snippetTemplatesAccessEnabled: boolean;
|
|
23
|
+
/** If the organization has paid for the the auto-pagination feature. */
|
|
24
|
+
paginationEnabled: boolean;
|
|
25
|
+
/** If the organization has paid for changelog generation. */
|
|
26
|
+
changeLogEnabled: boolean;
|
|
27
|
+
/** If the organization is canarying fernbot automation features. */
|
|
28
|
+
isFernbotCanary: boolean;
|
|
29
|
+
/** If the organization has paid for automated oauth clients within their SDKs. */
|
|
30
|
+
oauthClientEnabled: boolean;
|
|
31
|
+
/** If the organization has paid for api playground. */
|
|
32
|
+
apiPlaygroundEnabled: boolean;
|
|
33
|
+
/** If the organization has sso enabled. */
|
|
34
|
+
workosOrganizationId?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Organization"), exports);
|
|
18
|
+
__exportStar(require("./LightweightUser"), exports);
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as core from "../../../../core";
|
|
5
|
+
import * as FernVenusApi from "../../../index";
|
|
6
|
+
export declare namespace Registry {
|
|
7
|
+
interface Options {
|
|
8
|
+
environment: core.Supplier<string>;
|
|
9
|
+
token?: core.Supplier<core.BearerToken | undefined>;
|
|
10
|
+
}
|
|
11
|
+
interface RequestOptions {
|
|
12
|
+
/** The maximum time to wait for a response in seconds. */
|
|
13
|
+
timeoutInSeconds?: number;
|
|
14
|
+
/** The number of times to retry the request. Defaults to 2. */
|
|
15
|
+
maxRetries?: number;
|
|
16
|
+
/** A hook to abort the request. */
|
|
17
|
+
abortSignal?: AbortSignal;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export declare class Registry {
|
|
21
|
+
protected readonly _options: Registry.Options;
|
|
22
|
+
constructor(_options: Registry.Options);
|
|
23
|
+
/**
|
|
24
|
+
* @param {FernVenusApi.GenerateRegistryTokensRequest} request
|
|
25
|
+
* @param {Registry.RequestOptions} requestOptions - Request-specific configuration.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* await client.registry.generateRegistryTokens({
|
|
29
|
+
* organizationId: FernVenusApi.OrganizationId("string")
|
|
30
|
+
* })
|
|
31
|
+
*/
|
|
32
|
+
generateRegistryTokens(request: FernVenusApi.GenerateRegistryTokensRequest, requestOptions?: Registry.RequestOptions): Promise<core.APIResponse<FernVenusApi.RegistryTokens, FernVenusApi.registry.generateRegistryTokens.Error>>;
|
|
33
|
+
/**
|
|
34
|
+
* @param {FernVenusApi.CheckRegistryPermissionRequest} request
|
|
35
|
+
* @param {Registry.RequestOptions} requestOptions - Request-specific configuration.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* await client.registry.hasRegistryPermission({
|
|
39
|
+
* organizationId: FernVenusApi.OrganizationId("string"),
|
|
40
|
+
* token: {
|
|
41
|
+
* type: "npm",
|
|
42
|
+
* token: "string"
|
|
43
|
+
* }
|
|
44
|
+
* })
|
|
45
|
+
*/
|
|
46
|
+
hasRegistryPermission(request: FernVenusApi.CheckRegistryPermissionRequest, requestOptions?: Registry.RequestOptions): Promise<core.APIResponse<boolean, FernVenusApi.registry.hasRegistryPermission.Error>>;
|
|
47
|
+
/**
|
|
48
|
+
* @param {FernVenusApi.RevokeTokenRequest} request
|
|
49
|
+
* @param {Registry.RequestOptions} requestOptions - Request-specific configuration.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* await client.registry.revokeToken({
|
|
53
|
+
* organizationId: FernVenusApi.OrganizationId("string"),
|
|
54
|
+
* token: "string"
|
|
55
|
+
* })
|
|
56
|
+
*/
|
|
57
|
+
revokeToken(request: FernVenusApi.RevokeTokenRequest, requestOptions?: Registry.RequestOptions): Promise<core.APIResponse<void, FernVenusApi.registry.revokeToken.Error>>;
|
|
58
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
59
|
+
}
|