@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,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,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index";
|
|
5
|
+
export declare type RegistryToken = FernVenusApi.RegistryToken.Npm | FernVenusApi.RegistryToken.Maven | FernVenusApi.RegistryToken.Pypi;
|
|
6
|
+
export declare namespace RegistryToken {
|
|
7
|
+
interface Npm extends FernVenusApi.NpmRegistryToken {
|
|
8
|
+
type: "npm";
|
|
9
|
+
}
|
|
10
|
+
interface Maven extends FernVenusApi.MavenRegistryToken {
|
|
11
|
+
type: "maven";
|
|
12
|
+
}
|
|
13
|
+
interface Pypi extends FernVenusApi.PypiRegistryToken {
|
|
14
|
+
type: "pypi";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index";
|
|
5
|
+
export interface RegistryTokens {
|
|
6
|
+
npm: FernVenusApi.NpmRegistryToken;
|
|
7
|
+
maven: FernVenusApi.MavenRegistryToken;
|
|
8
|
+
pypi: FernVenusApi.PypiRegistryToken;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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("./RegistryTokens"), exports);
|
|
18
|
+
__exportStar(require("./NpmRegistryToken"), exports);
|
|
19
|
+
__exportStar(require("./MavenRegistryToken"), exports);
|
|
20
|
+
__exportStar(require("./PypiRegistryToken"), exports);
|
|
21
|
+
__exportStar(require("./RegistryToken"), exports);
|
|
@@ -0,0 +1,41 @@
|
|
|
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 User {
|
|
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 User {
|
|
21
|
+
protected readonly _options: User.Options;
|
|
22
|
+
constructor(_options: User.Options);
|
|
23
|
+
/**
|
|
24
|
+
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* await client.user.getMyself()
|
|
28
|
+
*/
|
|
29
|
+
getMyself(requestOptions?: User.RequestOptions): Promise<core.APIResponse<FernVenusApi.User, FernVenusApi.user.getMyself.Error>>;
|
|
30
|
+
/**
|
|
31
|
+
* @param {FernVenusApi.GetUserOrganizationsRequest} request
|
|
32
|
+
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* await client.user.getMyOrganizations({
|
|
36
|
+
* pageId: 1
|
|
37
|
+
* })
|
|
38
|
+
*/
|
|
39
|
+
getMyOrganizations(request: FernVenusApi.GetUserOrganizationsRequest, requestOptions?: User.RequestOptions): Promise<core.APIResponse<FernVenusApi.OrganizationsPage, FernVenusApi.user.getMyOrganizations.Error>>;
|
|
40
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
39
|
+
};
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.User = void 0;
|
|
42
|
+
const core = __importStar(require("../../../../core"));
|
|
43
|
+
const FernVenusApi = __importStar(require("../../../index"));
|
|
44
|
+
const url_join_1 = __importDefault(require("url-join"));
|
|
45
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
|
46
|
+
class User {
|
|
47
|
+
constructor(_options) {
|
|
48
|
+
this._options = _options;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* await client.user.getMyself()
|
|
55
|
+
*/
|
|
56
|
+
getMyself(requestOptions) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
const _response = yield core.fetcher({
|
|
59
|
+
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/users"),
|
|
60
|
+
method: "GET",
|
|
61
|
+
headers: {
|
|
62
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
63
|
+
"X-Fern-Language": "JavaScript",
|
|
64
|
+
"X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
|
|
65
|
+
"X-Fern-SDK-Version": "0.10.1-2-g8c943d4",
|
|
66
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
67
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
68
|
+
},
|
|
69
|
+
contentType: "application/json",
|
|
70
|
+
requestType: "json",
|
|
71
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
72
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
73
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
74
|
+
});
|
|
75
|
+
if (_response.ok) {
|
|
76
|
+
return {
|
|
77
|
+
ok: true,
|
|
78
|
+
body: serializers.User.parseOrThrow(_response.body, {
|
|
79
|
+
unrecognizedObjectKeys: "passthrough",
|
|
80
|
+
allowUnrecognizedUnionMembers: true,
|
|
81
|
+
allowUnrecognizedEnumValues: true,
|
|
82
|
+
breadcrumbsPrefix: ["response"],
|
|
83
|
+
}),
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
ok: false,
|
|
88
|
+
error: FernVenusApi.user.getMyself.Error._unknown(_response.error),
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @param {FernVenusApi.GetUserOrganizationsRequest} request
|
|
94
|
+
* @param {User.RequestOptions} requestOptions - Request-specific configuration.
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* await client.user.getMyOrganizations({
|
|
98
|
+
* pageId: 1
|
|
99
|
+
* })
|
|
100
|
+
*/
|
|
101
|
+
getMyOrganizations(request, requestOptions) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const { pageId } = request;
|
|
104
|
+
const _queryParams = {};
|
|
105
|
+
_queryParams["pageId"] = pageId.toString();
|
|
106
|
+
const _response = yield core.fetcher({
|
|
107
|
+
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/users/organizations"),
|
|
108
|
+
method: "GET",
|
|
109
|
+
headers: {
|
|
110
|
+
Authorization: yield this._getAuthorizationHeader(),
|
|
111
|
+
"X-Fern-Language": "JavaScript",
|
|
112
|
+
"X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
|
|
113
|
+
"X-Fern-SDK-Version": "0.10.1-2-g8c943d4",
|
|
114
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
115
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
116
|
+
},
|
|
117
|
+
contentType: "application/json",
|
|
118
|
+
queryParameters: _queryParams,
|
|
119
|
+
requestType: "json",
|
|
120
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
121
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
122
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
123
|
+
});
|
|
124
|
+
if (_response.ok) {
|
|
125
|
+
return {
|
|
126
|
+
ok: true,
|
|
127
|
+
body: serializers.OrganizationsPage.parseOrThrow(_response.body, {
|
|
128
|
+
unrecognizedObjectKeys: "passthrough",
|
|
129
|
+
allowUnrecognizedUnionMembers: true,
|
|
130
|
+
allowUnrecognizedEnumValues: true,
|
|
131
|
+
breadcrumbsPrefix: ["response"],
|
|
132
|
+
}),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
return {
|
|
136
|
+
ok: false,
|
|
137
|
+
error: FernVenusApi.user.getMyOrganizations.Error._unknown(_response.error),
|
|
138
|
+
};
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
_getAuthorizationHeader() {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
const bearer = yield core.Supplier.get(this._options.token);
|
|
144
|
+
if (bearer != null) {
|
|
145
|
+
return `Bearer ${bearer}`;
|
|
146
|
+
}
|
|
147
|
+
return undefined;
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
exports.User = User;
|
|
@@ -0,0 +1,22 @@
|
|
|
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.user.getMyOrganizations.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface _Unknown extends _Utils {
|
|
9
|
+
error: void;
|
|
10
|
+
content: core.Fetcher.Error;
|
|
11
|
+
}
|
|
12
|
+
interface _Utils {
|
|
13
|
+
_visit: <_Result>(visitor: FernVenusApi.user.getMyOrganizations.Error._Visitor<_Result>) => _Result;
|
|
14
|
+
}
|
|
15
|
+
interface _Visitor<_Result> {
|
|
16
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare const Error: {
|
|
20
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.user.getMyOrganizations.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: FernVenusApi.user.getMyOrganizations.Error, visitor: FernVenusApi.user.getMyOrganizations.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
_unknown: (fetcherError) => {
|
|
33
|
+
return {
|
|
34
|
+
error: undefined,
|
|
35
|
+
content: fetcherError,
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return FernVenusApi.user.getMyOrganizations.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_visit: (value, visitor) => {
|
|
42
|
+
switch (value.error) {
|
|
43
|
+
default:
|
|
44
|
+
return visitor._other(value);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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.user.getMyself.Error._Unknown;
|
|
7
|
+
export declare namespace Error {
|
|
8
|
+
interface _Unknown extends _Utils {
|
|
9
|
+
error: void;
|
|
10
|
+
content: core.Fetcher.Error;
|
|
11
|
+
}
|
|
12
|
+
interface _Utils {
|
|
13
|
+
_visit: <_Result>(visitor: FernVenusApi.user.getMyself.Error._Visitor<_Result>) => _Result;
|
|
14
|
+
}
|
|
15
|
+
interface _Visitor<_Result> {
|
|
16
|
+
_other: (value: core.Fetcher.Error) => _Result;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export declare const Error: {
|
|
20
|
+
readonly _unknown: (fetcherError: core.Fetcher.Error) => FernVenusApi.user.getMyself.Error._Unknown;
|
|
21
|
+
readonly _visit: <_Result>(value: FernVenusApi.user.getMyself.Error, visitor: FernVenusApi.user.getMyself.Error._Visitor<_Result>) => _Result;
|
|
22
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
_unknown: (fetcherError) => {
|
|
33
|
+
return {
|
|
34
|
+
error: undefined,
|
|
35
|
+
content: fetcherError,
|
|
36
|
+
_visit: function (visitor) {
|
|
37
|
+
return FernVenusApi.user.getMyself.Error._visit(this, visitor);
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
_visit: (value, visitor) => {
|
|
42
|
+
switch (value.error) {
|
|
43
|
+
default:
|
|
44
|
+
return visitor._other(value);
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
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.getMyOrganizations = exports.getMyself = void 0;
|
|
30
|
+
__exportStar(require("./requests"), exports);
|
|
31
|
+
exports.getMyself = __importStar(require("./getMyself"));
|
|
32
|
+
exports.getMyOrganizations = __importStar(require("./getMyOrganizations"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type GetUserOrganizationsRequest } from "./GetUserOrganizationsRequest";
|
|
@@ -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,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("./User"), exports);
|
|
18
|
+
__exportStar(require("./OrganizationsPage"), exports);
|