@fern-api/venus-api-sdk 0.13.2 → 0.13.4-2-g24f34d1
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 +7 -3
- package/api/resources/commons/types/OrganizationId.d.ts +1 -1
- package/api/resources/commons/types/OrganizationId.js +1 -2
- package/api/resources/commons/types/UserId.d.ts +1 -1
- package/api/resources/commons/types/UserId.js +1 -2
- package/api/resources/index.js +17 -7
- package/api/resources/organization/client/Client.d.ts +5 -1
- package/api/resources/organization/client/Client.js +63 -109
- package/api/resources/organization/client/addUser.d.ts +1 -1
- package/api/resources/organization/client/addUser.js +17 -7
- package/api/resources/organization/client/create.d.ts +1 -1
- package/api/resources/organization/client/create.js +17 -7
- package/api/resources/organization/client/get.d.ts +1 -1
- package/api/resources/organization/client/get.js +17 -7
- package/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +1 -1
- package/api/resources/organization/client/getMyOrganizationFromScopedToken.js +17 -7
- package/api/resources/organization/client/getOrgIdsFromToken.d.ts +1 -1
- package/api/resources/organization/client/getOrgIdsFromToken.js +17 -7
- package/api/resources/organization/client/index.js +17 -7
- package/api/resources/organization/client/inviteUser.d.ts +1 -1
- package/api/resources/organization/client/inviteUser.js +17 -7
- package/api/resources/organization/client/isMember.d.ts +1 -1
- package/api/resources/organization/client/isMember.js +17 -7
- package/api/resources/organization/client/removeUser.d.ts +1 -1
- package/api/resources/organization/client/removeUser.js +17 -7
- package/api/resources/organization/client/update.d.ts +1 -1
- package/api/resources/organization/client/update.js +17 -7
- package/api/resources/organization/types/CreateOrganizationResponse.d.ts +12 -0
- package/api/resources/organization/types/CreateOrganizationResponse.js +5 -0
- package/api/resources/organization/types/index.d.ts +1 -0
- package/api/resources/organization/types/index.js +1 -0
- package/api/resources/registry/client/Client.d.ts +4 -0
- package/api/resources/registry/client/Client.js +29 -40
- package/api/resources/registry/client/generateRegistryTokens.d.ts +1 -1
- package/api/resources/registry/client/generateRegistryTokens.js +17 -7
- package/api/resources/registry/client/hasRegistryPermission.d.ts +1 -1
- package/api/resources/registry/client/hasRegistryPermission.js +17 -7
- package/api/resources/registry/client/index.js +17 -7
- package/api/resources/registry/client/revokeToken.d.ts +1 -1
- package/api/resources/registry/client/revokeToken.js +17 -7
- package/api/resources/registry/types/RegistryToken.d.ts +1 -1
- package/api/resources/user/client/Client.d.ts +4 -0
- package/api/resources/user/client/Client.js +23 -25
- package/api/resources/user/client/getMyOrganizations.d.ts +1 -1
- package/api/resources/user/client/getMyOrganizations.js +17 -7
- package/api/resources/user/client/getMyself.d.ts +1 -1
- package/api/resources/user/client/getMyself.js +17 -7
- package/api/resources/user/client/index.js +17 -7
- package/core/auth/BearerToken.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +1 -1
- package/core/fetcher/Fetcher.d.ts +3 -3
- package/core/fetcher/Fetcher.js +6 -5
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -1
- package/core/fetcher/createRequestUrl.js +1 -2
- package/core/fetcher/getFetchFn.js +18 -9
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.js +5 -5
- package/core/fetcher/getResponseBody.js +4 -2
- package/core/fetcher/makeRequest.d.ts +1 -1
- package/core/fetcher/requestWithRetries.js +17 -9
- package/core/fetcher/signals.d.ts +0 -1
- package/core/fetcher/signals.js +2 -3
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/core/index.js +17 -7
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +51 -41
- package/core/schemas/Schema.d.ts +7 -5
- package/core/schemas/Schema.js +2 -0
- package/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/core/schemas/builders/bigint/bigint.js +22 -19
- package/core/schemas/builders/date/date.js +1 -2
- package/core/schemas/builders/enum/enum.js +1 -2
- package/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/core/schemas/builders/lazy/lazy.js +3 -4
- package/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/core/schemas/builders/list/list.js +1 -2
- package/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/core/schemas/builders/object/object.d.ts +1 -1
- package/core/schemas/builders/object/object.js +31 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/core/schemas/builders/object/property.js +2 -3
- package/core/schemas/builders/object/types.d.ts +16 -11
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/core/schemas/builders/object-like/types.d.ts +1 -1
- package/core/schemas/builders/record/record.js +2 -4
- package/core/schemas/builders/record/types.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/core/schemas/builders/set/set.js +1 -2
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/core/schemas/builders/union/discriminant.js +1 -2
- package/core/schemas/builders/union/types.d.ts +6 -6
- package/core/schemas/builders/union/union.d.ts +1 -1
- package/core/schemas/builders/union/union.js +1 -2
- package/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/core/schemas/utils/entries.d.ts +1 -1
- package/core/schemas/utils/entries.js +1 -2
- package/core/schemas/utils/filterObject.d.ts +1 -1
- package/core/schemas/utils/filterObject.js +1 -2
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/keys.d.ts +1 -1
- package/core/schemas/utils/keys.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/core/schemas/utils/partition.js +1 -2
- package/dist/Client.d.ts +7 -3
- package/dist/api/resources/commons/types/OrganizationId.d.ts +1 -1
- package/dist/api/resources/commons/types/OrganizationId.js +1 -2
- package/dist/api/resources/commons/types/UserId.d.ts +1 -1
- package/dist/api/resources/commons/types/UserId.js +1 -2
- package/dist/api/resources/index.js +17 -7
- package/dist/api/resources/organization/client/Client.d.ts +5 -1
- package/dist/api/resources/organization/client/Client.js +63 -109
- package/dist/api/resources/organization/client/addUser.d.ts +1 -1
- package/dist/api/resources/organization/client/addUser.js +17 -7
- package/dist/api/resources/organization/client/create.d.ts +1 -1
- package/dist/api/resources/organization/client/create.js +17 -7
- package/dist/api/resources/organization/client/get.d.ts +1 -1
- package/dist/api/resources/organization/client/get.js +17 -7
- package/dist/api/resources/organization/client/getMyOrganizationFromScopedToken.d.ts +1 -1
- package/dist/api/resources/organization/client/getMyOrganizationFromScopedToken.js +17 -7
- package/dist/api/resources/organization/client/getOrgIdsFromToken.d.ts +1 -1
- package/dist/api/resources/organization/client/getOrgIdsFromToken.js +17 -7
- package/dist/api/resources/organization/client/index.js +17 -7
- package/dist/api/resources/organization/client/inviteUser.d.ts +1 -1
- package/dist/api/resources/organization/client/inviteUser.js +17 -7
- package/dist/api/resources/organization/client/isMember.d.ts +1 -1
- package/dist/api/resources/organization/client/isMember.js +17 -7
- package/dist/api/resources/organization/client/removeUser.d.ts +1 -1
- package/dist/api/resources/organization/client/removeUser.js +17 -7
- package/dist/api/resources/organization/client/update.d.ts +1 -1
- package/dist/api/resources/organization/client/update.js +17 -7
- package/dist/api/resources/organization/types/CreateOrganizationResponse.d.ts +12 -0
- package/dist/api/resources/organization/types/CreateOrganizationResponse.js +5 -0
- package/dist/api/resources/organization/types/index.d.ts +1 -0
- package/dist/api/resources/organization/types/index.js +1 -0
- package/dist/api/resources/registry/client/Client.d.ts +4 -0
- package/dist/api/resources/registry/client/Client.js +29 -40
- package/dist/api/resources/registry/client/generateRegistryTokens.d.ts +1 -1
- package/dist/api/resources/registry/client/generateRegistryTokens.js +17 -7
- package/dist/api/resources/registry/client/hasRegistryPermission.d.ts +1 -1
- package/dist/api/resources/registry/client/hasRegistryPermission.js +17 -7
- package/dist/api/resources/registry/client/index.js +17 -7
- package/dist/api/resources/registry/client/revokeToken.d.ts +1 -1
- package/dist/api/resources/registry/client/revokeToken.js +17 -7
- package/dist/api/resources/registry/types/RegistryToken.d.ts +1 -1
- package/dist/api/resources/user/client/Client.d.ts +4 -0
- package/dist/api/resources/user/client/Client.js +23 -25
- package/dist/api/resources/user/client/getMyOrganizations.d.ts +1 -1
- package/dist/api/resources/user/client/getMyOrganizations.js +17 -7
- package/dist/api/resources/user/client/getMyself.d.ts +1 -1
- package/dist/api/resources/user/client/getMyself.js +17 -7
- package/dist/api/resources/user/client/index.js +17 -7
- package/dist/core/auth/BearerToken.d.ts +1 -1
- package/dist/core/fetcher/APIResponse.d.ts +1 -1
- package/dist/core/fetcher/Fetcher.d.ts +3 -3
- package/dist/core/fetcher/Fetcher.js +6 -5
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.js +1 -2
- package/dist/core/fetcher/getFetchFn.js +18 -9
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.js +5 -5
- package/dist/core/fetcher/getResponseBody.js +4 -2
- package/dist/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/core/fetcher/requestWithRetries.js +17 -9
- package/dist/core/fetcher/signals.d.ts +0 -1
- package/dist/core/fetcher/signals.js +2 -3
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/dist/core/index.js +17 -7
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +51 -41
- package/dist/core/schemas/Schema.d.ts +7 -5
- package/dist/core/schemas/Schema.js +2 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/dist/core/schemas/builders/bigint/bigint.js +22 -19
- package/dist/core/schemas/builders/date/date.js +1 -2
- package/dist/core/schemas/builders/enum/enum.js +1 -2
- package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/dist/core/schemas/builders/lazy/lazy.js +3 -4
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/dist/core/schemas/builders/list/list.js +1 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/dist/core/schemas/builders/object/object.d.ts +1 -1
- package/dist/core/schemas/builders/object/object.js +31 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/dist/core/schemas/builders/object/property.js +2 -3
- package/dist/core/schemas/builders/object/types.d.ts +16 -11
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
- package/dist/core/schemas/builders/record/record.js +2 -4
- package/dist/core/schemas/builders/record/types.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/dist/core/schemas/builders/set/set.js +1 -2
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/dist/core/schemas/builders/union/discriminant.js +1 -2
- package/dist/core/schemas/builders/union/types.d.ts +6 -6
- package/dist/core/schemas/builders/union/union.d.ts +1 -1
- package/dist/core/schemas/builders/union/union.js +1 -2
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/dist/core/schemas/utils/entries.d.ts +1 -1
- package/dist/core/schemas/utils/entries.js +1 -2
- package/dist/core/schemas/utils/filterObject.d.ts +1 -1
- package/dist/core/schemas/utils/filterObject.js +1 -2
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/dist/core/schemas/utils/isPlainObject.js +1 -2
- package/dist/core/schemas/utils/keys.d.ts +1 -1
- package/dist/core/schemas/utils/keys.js +1 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/dist/core/schemas/utils/partition.js +1 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +19 -8
- package/dist/serialization/resources/commons/types/OrganizationId.js +17 -7
- package/dist/serialization/resources/commons/types/UserId.js +17 -7
- package/dist/serialization/resources/index.js +17 -7
- package/dist/serialization/resources/organization/client/addUser.js +17 -7
- package/dist/serialization/resources/organization/client/create.js +17 -7
- package/dist/serialization/resources/organization/client/get.js +17 -7
- package/dist/serialization/resources/organization/client/getMyOrganizationFromScopedToken.js +17 -7
- package/dist/serialization/resources/organization/client/getOrgIdsFromToken.js +17 -7
- package/dist/serialization/resources/organization/client/index.js +17 -7
- package/dist/serialization/resources/organization/client/inviteUser.js +17 -7
- package/dist/serialization/resources/organization/client/isMember.js +17 -7
- package/dist/serialization/resources/organization/client/removeUser.js +17 -7
- package/dist/serialization/resources/organization/client/requests/AddUserToOrgRequest.js +17 -7
- package/dist/serialization/resources/organization/client/requests/CreateOrganizationRequest.js +17 -7
- package/dist/serialization/resources/organization/client/requests/InviteUserToOrgRequest.js +17 -7
- package/dist/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.js +17 -7
- package/dist/serialization/resources/organization/client/requests/UpdateOrganizationRequest.js +17 -7
- package/dist/serialization/resources/organization/client/update.js +17 -7
- package/dist/serialization/resources/organization/types/CreateOrganizationResponse.d.ts +13 -0
- package/dist/serialization/resources/organization/types/CreateOrganizationResponse.js +44 -0
- package/dist/serialization/resources/organization/types/LightweightUser.js +17 -7
- package/dist/serialization/resources/organization/types/Organization.js +17 -7
- package/dist/serialization/resources/organization/types/index.d.ts +1 -0
- package/dist/serialization/resources/organization/types/index.js +1 -0
- package/dist/serialization/resources/registry/client/generateRegistryTokens.js +17 -7
- package/dist/serialization/resources/registry/client/hasRegistryPermission.js +17 -7
- package/dist/serialization/resources/registry/client/index.js +17 -7
- package/dist/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.js +17 -7
- package/dist/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.js +17 -7
- package/dist/serialization/resources/registry/client/requests/RevokeTokenRequest.js +17 -7
- package/dist/serialization/resources/registry/client/revokeToken.js +17 -7
- package/dist/serialization/resources/registry/types/MavenRegistryToken.js +17 -7
- package/dist/serialization/resources/registry/types/NpmRegistryToken.js +17 -7
- package/dist/serialization/resources/registry/types/PypiRegistryToken.js +17 -7
- package/dist/serialization/resources/registry/types/RegistryToken.js +17 -7
- package/dist/serialization/resources/registry/types/RegistryTokens.js +17 -7
- package/dist/serialization/resources/user/types/OrganizationsPage.js +17 -7
- package/dist/serialization/resources/user/types/User.js +17 -7
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/index.d.ts +1 -0
- package/index.js +19 -8
- package/{jest.config.js → jest.config.mjs} +4 -1
- package/package.json +16 -17
- package/scripts/rename-to-esm-files.js +115 -0
- package/serialization/resources/commons/types/OrganizationId.js +17 -7
- package/serialization/resources/commons/types/UserId.js +17 -7
- package/serialization/resources/index.js +17 -7
- package/serialization/resources/organization/client/addUser.js +17 -7
- package/serialization/resources/organization/client/create.js +17 -7
- package/serialization/resources/organization/client/get.js +17 -7
- package/serialization/resources/organization/client/getMyOrganizationFromScopedToken.js +17 -7
- package/serialization/resources/organization/client/getOrgIdsFromToken.js +17 -7
- package/serialization/resources/organization/client/index.js +17 -7
- package/serialization/resources/organization/client/inviteUser.js +17 -7
- package/serialization/resources/organization/client/isMember.js +17 -7
- package/serialization/resources/organization/client/removeUser.js +17 -7
- package/serialization/resources/organization/client/requests/AddUserToOrgRequest.js +17 -7
- package/serialization/resources/organization/client/requests/CreateOrganizationRequest.js +17 -7
- package/serialization/resources/organization/client/requests/InviteUserToOrgRequest.js +17 -7
- package/serialization/resources/organization/client/requests/RemoveUserFromOrgRequest.js +17 -7
- package/serialization/resources/organization/client/requests/UpdateOrganizationRequest.js +17 -7
- package/serialization/resources/organization/client/update.js +17 -7
- package/serialization/resources/organization/types/CreateOrganizationResponse.d.ts +13 -0
- package/serialization/resources/organization/types/CreateOrganizationResponse.js +44 -0
- package/serialization/resources/organization/types/LightweightUser.js +17 -7
- package/serialization/resources/organization/types/Organization.js +17 -7
- package/serialization/resources/organization/types/index.d.ts +1 -0
- package/serialization/resources/organization/types/index.js +1 -0
- package/serialization/resources/registry/client/generateRegistryTokens.js +17 -7
- package/serialization/resources/registry/client/hasRegistryPermission.js +17 -7
- package/serialization/resources/registry/client/index.js +17 -7
- package/serialization/resources/registry/client/requests/CheckRegistryPermissionRequest.js +17 -7
- package/serialization/resources/registry/client/requests/GenerateRegistryTokensRequest.js +17 -7
- package/serialization/resources/registry/client/requests/RevokeTokenRequest.js +17 -7
- package/serialization/resources/registry/client/revokeToken.js +17 -7
- package/serialization/resources/registry/types/MavenRegistryToken.js +17 -7
- package/serialization/resources/registry/types/NpmRegistryToken.js +17 -7
- package/serialization/resources/registry/types/PypiRegistryToken.js +17 -7
- package/serialization/resources/registry/types/RegistryToken.js +17 -7
- package/serialization/resources/registry/types/RegistryTokens.js +17 -7
- package/serialization/resources/user/types/OrganizationsPage.js +17 -7
- package/serialization/resources/user/types/User.js +17 -7
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.Error = void 0;
|
|
30
40
|
const FernVenusApi = __importStar(require("../../../index"));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as FernVenusApi from "../../../index";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
export
|
|
6
|
+
export type Error = FernVenusApi.organization.removeUser.Error.UnauthorizedError | FernVenusApi.organization.removeUser.Error.UserIdDoesNotExistError | FernVenusApi.organization.removeUser.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface UnauthorizedError extends _Utils {
|
|
9
9
|
error: "UnauthorizedError";
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.Error = void 0;
|
|
30
40
|
const FernVenusApi = __importStar(require("../../../index"));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as FernVenusApi from "../../../index";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
export
|
|
6
|
+
export type Error = FernVenusApi.organization.update.Error.UnauthorizedError | FernVenusApi.organization.update.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface UnauthorizedError extends _Utils {
|
|
9
9
|
error: "UnauthorizedError";
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.Error = void 0;
|
|
30
40
|
const FernVenusApi = __importStar(require("../../../index"));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as FernVenusApi from "../../../index";
|
|
5
|
+
export interface CreateOrganizationResponse {
|
|
6
|
+
/**
|
|
7
|
+
* the ID of the organization. (This may be different from the
|
|
8
|
+
* organizationId passed in with the create request because auth0 has
|
|
9
|
+
* strict requirements on organization names)
|
|
10
|
+
*/
|
|
11
|
+
organizationId: FernVenusApi.OrganizationId;
|
|
12
|
+
}
|
|
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Organization"), exports);
|
|
18
18
|
__exportStar(require("./LightweightUser"), exports);
|
|
19
|
+
__exportStar(require("./CreateOrganizationResponse"), exports);
|
|
@@ -6,6 +6,8 @@ import * as FernVenusApi from "../../../index";
|
|
|
6
6
|
export declare namespace Registry {
|
|
7
7
|
interface Options {
|
|
8
8
|
environment: core.Supplier<string>;
|
|
9
|
+
/** Specify a custom URL to connect the client to. */
|
|
10
|
+
baseUrl?: core.Supplier<string>;
|
|
9
11
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
10
12
|
}
|
|
11
13
|
interface RequestOptions {
|
|
@@ -15,6 +17,8 @@ export declare namespace Registry {
|
|
|
15
17
|
maxRetries?: number;
|
|
16
18
|
/** A hook to abort the request. */
|
|
17
19
|
abortSignal?: AbortSignal;
|
|
20
|
+
/** Additional headers to include in the request. */
|
|
21
|
+
headers?: Record<string, string>;
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
export declare class Registry {
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -57,19 +67,12 @@ class Registry {
|
|
|
57
67
|
* })
|
|
58
68
|
*/
|
|
59
69
|
generateRegistryTokens(request, requestOptions) {
|
|
60
|
-
var _a;
|
|
61
70
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
var _a, _b;
|
|
62
72
|
const _response = yield core.fetcher({
|
|
63
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/registry/generate-tokens"),
|
|
73
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/registry/generate-tokens"),
|
|
64
74
|
method: "POST",
|
|
65
|
-
headers: {
|
|
66
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
67
|
-
"X-Fern-Language": "JavaScript",
|
|
68
|
-
"X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
|
|
69
|
-
"X-Fern-SDK-Version": "0.13.2",
|
|
70
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
71
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
72
|
-
},
|
|
75
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.13.4-2-g24f34d1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
73
76
|
contentType: "application/json",
|
|
74
77
|
requestType: "json",
|
|
75
78
|
body: serializers.GenerateRegistryTokensRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -89,7 +92,7 @@ class Registry {
|
|
|
89
92
|
};
|
|
90
93
|
}
|
|
91
94
|
if (_response.error.reason === "status-code") {
|
|
92
|
-
switch ((
|
|
95
|
+
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.error) {
|
|
93
96
|
case "UnauthorizedError":
|
|
94
97
|
case "OrganizationNotFoundError":
|
|
95
98
|
return {
|
|
@@ -123,19 +126,12 @@ class Registry {
|
|
|
123
126
|
* })
|
|
124
127
|
*/
|
|
125
128
|
hasRegistryPermission(request, requestOptions) {
|
|
126
|
-
var _a;
|
|
127
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
130
|
+
var _a, _b;
|
|
128
131
|
const _response = yield core.fetcher({
|
|
129
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/registry/check-permissions"),
|
|
132
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/registry/check-permissions"),
|
|
130
133
|
method: "POST",
|
|
131
|
-
headers: {
|
|
132
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
133
|
-
"X-Fern-Language": "JavaScript",
|
|
134
|
-
"X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
|
|
135
|
-
"X-Fern-SDK-Version": "0.13.2",
|
|
136
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
137
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
138
|
-
},
|
|
134
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.13.4-2-g24f34d1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
139
135
|
contentType: "application/json",
|
|
140
136
|
requestType: "json",
|
|
141
137
|
body: serializers.CheckRegistryPermissionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -155,7 +151,7 @@ class Registry {
|
|
|
155
151
|
};
|
|
156
152
|
}
|
|
157
153
|
if (_response.error.reason === "status-code") {
|
|
158
|
-
switch ((
|
|
154
|
+
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.error) {
|
|
159
155
|
case "UnauthorizedError":
|
|
160
156
|
case "OrganizationNotFoundError":
|
|
161
157
|
return {
|
|
@@ -186,19 +182,12 @@ class Registry {
|
|
|
186
182
|
* })
|
|
187
183
|
*/
|
|
188
184
|
revokeToken(request, requestOptions) {
|
|
189
|
-
var _a;
|
|
190
185
|
return __awaiter(this, void 0, void 0, function* () {
|
|
186
|
+
var _a, _b;
|
|
191
187
|
const _response = yield core.fetcher({
|
|
192
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/registry/revoke-token"),
|
|
188
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/registry/revoke-token"),
|
|
193
189
|
method: "POST",
|
|
194
|
-
headers: {
|
|
195
|
-
Authorization: yield this._getAuthorizationHeader(),
|
|
196
|
-
"X-Fern-Language": "JavaScript",
|
|
197
|
-
"X-Fern-SDK-Name": "@fern-api/venus-api-sdk",
|
|
198
|
-
"X-Fern-SDK-Version": "0.13.2",
|
|
199
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
200
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
201
|
-
},
|
|
190
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.13.4-2-g24f34d1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
202
191
|
contentType: "application/json",
|
|
203
192
|
requestType: "json",
|
|
204
193
|
body: serializers.RevokeTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -213,7 +202,7 @@ class Registry {
|
|
|
213
202
|
};
|
|
214
203
|
}
|
|
215
204
|
if (_response.error.reason === "status-code") {
|
|
216
|
-
switch ((
|
|
205
|
+
switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.error) {
|
|
217
206
|
case "UnauthorizedError":
|
|
218
207
|
case "OrganizationNotFoundError":
|
|
219
208
|
return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as FernVenusApi from "../../../index";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
export
|
|
6
|
+
export type Error = FernVenusApi.registry.generateRegistryTokens.Error.UnauthorizedError | FernVenusApi.registry.generateRegistryTokens.Error.OrganizationNotFoundError | FernVenusApi.registry.generateRegistryTokens.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface UnauthorizedError extends _Utils {
|
|
9
9
|
error: "UnauthorizedError";
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.Error = void 0;
|
|
30
40
|
const FernVenusApi = __importStar(require("../../../index"));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as FernVenusApi from "../../../index";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
export
|
|
6
|
+
export type Error = FernVenusApi.registry.hasRegistryPermission.Error.UnauthorizedError | FernVenusApi.registry.hasRegistryPermission.Error.OrganizationNotFoundError | FernVenusApi.registry.hasRegistryPermission.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface UnauthorizedError extends _Utils {
|
|
9
9
|
error: "UnauthorizedError";
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.Error = void 0;
|
|
30
40
|
const FernVenusApi = __importStar(require("../../../index"));
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
20
|
};
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.revokeToken = exports.hasRegistryPermission = exports.generateRegistryTokens = void 0;
|
|
30
40
|
__exportStar(require("./requests"), exports);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as FernVenusApi from "../../../index";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
export
|
|
6
|
+
export type Error = FernVenusApi.registry.revokeToken.Error.UnauthorizedError | FernVenusApi.registry.revokeToken.Error.OrganizationNotFoundError | FernVenusApi.registry.revokeToken.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface UnauthorizedError extends _Utils {
|
|
9
9
|
error: "UnauthorizedError";
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.Error = void 0;
|
|
30
40
|
const FernVenusApi = __importStar(require("../../../index"));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as FernVenusApi from "../../../index";
|
|
5
|
-
export
|
|
5
|
+
export type RegistryToken = FernVenusApi.RegistryToken.Npm | FernVenusApi.RegistryToken.Maven | FernVenusApi.RegistryToken.Pypi;
|
|
6
6
|
export declare namespace RegistryToken {
|
|
7
7
|
interface Npm extends FernVenusApi.NpmRegistryToken {
|
|
8
8
|
type: "npm";
|
|
@@ -6,6 +6,8 @@ import * as FernVenusApi from "../../../index";
|
|
|
6
6
|
export declare namespace User {
|
|
7
7
|
interface Options {
|
|
8
8
|
environment: core.Supplier<string>;
|
|
9
|
+
/** Specify a custom URL to connect the client to. */
|
|
10
|
+
baseUrl?: core.Supplier<string>;
|
|
9
11
|
token?: core.Supplier<core.BearerToken | undefined>;
|
|
10
12
|
}
|
|
11
13
|
interface RequestOptions {
|
|
@@ -15,6 +17,8 @@ export declare namespace User {
|
|
|
15
17
|
maxRetries?: number;
|
|
16
18
|
/** A hook to abort the request. */
|
|
17
19
|
abortSignal?: AbortSignal;
|
|
20
|
+
/** Additional headers to include in the request. */
|
|
21
|
+
headers?: Record<string, string>;
|
|
18
22
|
}
|
|
19
23
|
}
|
|
20
24
|
export declare class User {
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -55,17 +65,11 @@ class User {
|
|
|
55
65
|
*/
|
|
56
66
|
getMyself(requestOptions) {
|
|
57
67
|
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
var _a;
|
|
58
69
|
const _response = yield core.fetcher({
|
|
59
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/users"),
|
|
70
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/users"),
|
|
60
71
|
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.13.2",
|
|
66
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
67
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
68
|
-
},
|
|
72
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.13.4-2-g24f34d1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
69
73
|
contentType: "application/json",
|
|
70
74
|
requestType: "json",
|
|
71
75
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -100,20 +104,14 @@ class User {
|
|
|
100
104
|
*/
|
|
101
105
|
getMyOrganizations(request, requestOptions) {
|
|
102
106
|
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
var _a;
|
|
103
108
|
const { pageId } = request;
|
|
104
109
|
const _queryParams = {};
|
|
105
110
|
_queryParams["pageId"] = pageId.toString();
|
|
106
111
|
const _response = yield core.fetcher({
|
|
107
|
-
url: (0, url_join_1.default)(yield core.Supplier.get(this._options.environment), "/users/organizations"),
|
|
112
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : (yield core.Supplier.get(this._options.environment)), "/users/organizations"),
|
|
108
113
|
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.13.2",
|
|
114
|
-
"X-Fern-Runtime": core.RUNTIME.type,
|
|
115
|
-
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
116
|
-
},
|
|
114
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@fern-api/venus-api-sdk", "X-Fern-SDK-Version": "0.13.4-2-g24f34d1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
117
115
|
contentType: "application/json",
|
|
118
116
|
queryParameters: _queryParams,
|
|
119
117
|
requestType: "json",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as FernVenusApi from "../../../index";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
export
|
|
6
|
+
export type Error = FernVenusApi.user.getMyOrganizations.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface _Unknown extends _Utils {
|
|
9
9
|
error: void;
|
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.Error = void 0;
|
|
30
40
|
const FernVenusApi = __importStar(require("../../../index"));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as FernVenusApi from "../../../index";
|
|
5
5
|
import * as core from "../../../../core";
|
|
6
|
-
export
|
|
6
|
+
export type Error = FernVenusApi.user.getMyself.Error._Unknown;
|
|
7
7
|
export declare namespace Error {
|
|
8
8
|
interface _Unknown extends _Utils {
|
|
9
9
|
error: void;
|