From 76db0a8c4b076e93e7b32c87695346131928c490 Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Tue, 15 Oct 2024 19:20:35 +0000 Subject: [PATCH] Release 0.0.6 --- README.md | 2 +- package.json | 2 +- reference.md | 1727 +++++++++++++---- src/Client.ts | 21 +- src/api/resources/accounts/client/Client.ts | 12 +- src/api/resources/articles/client/Client.ts | 12 +- src/api/resources/artifacts/client/Client.ts | 10 +- .../resources/authConnection/client/Client.ts | 12 +- src/api/resources/authTokens/client/Client.ts | 12 +- .../resources/codeChanges/client/Client.ts | 10 +- .../resources/conversations/client/Client.ts | 12 +- .../requests/ConversationsCreateRequest.ts | 2 + .../requests/ConversationsUpdateRequest.ts | 1 + .../resources/customization/client/Client.ts | 893 ++++++++- .../requests/CustomObjectsCountRequest.ts | 16 + .../requests/CustomObjectsCreateRequest.ts | 36 + .../requests/CustomObjectsDeleteRequest.ts | 14 + .../requests/CustomObjectsGetRequest.ts | 12 + .../requests/CustomObjectsListRequest.ts | 32 + .../requests/CustomObjectsUpdateRequest.ts | 29 + .../CustomSchemaFragmentsListRequest.ts | 2 + .../customization/client/requests/index.ts | 6 + src/api/resources/devUsers/client/Client.ts | 14 +- src/api/resources/directory/client/Client.ts | 912 +++++++++ src/api/resources/directory/client/index.ts | 1 + .../requests/DirectoriesCountRequest.ts | 20 + .../requests/DirectoriesCreateRequest.ts | 28 + .../requests/DirectoriesDeleteRequest.ts | 14 + .../client/requests/DirectoriesGetRequest.ts | 14 + .../client/requests/DirectoriesListRequest.ts | 34 + .../requests/DirectoriesUpdateRequest.ts | 30 + .../directory/client/requests/index.ts | 6 + src/api/resources/directory/index.ts | 1 + .../resources/engagements/client/Client.ts | 13 +- .../requests/EngagementsCreateRequest.ts | 9 +- .../requests/EngagementsUpdateRequest.ts | 1 + .../resources/eventSource/client/Client.ts | 8 +- src/api/resources/groups/client/Client.ts | 14 +- src/api/resources/index.ts | 6 +- src/api/resources/keyring/client/Client.ts | 2 +- src/api/resources/links/client/Client.ts | 8 +- .../resources/notifications/client/Client.ts | 8 +- src/api/resources/operate/client/Client.ts | 12 +- src/api/resources/parts/client/Client.ts | 10 +- .../resources/preferences/client/Client.ts | 2 +- .../resources/productUsage/client/Client.ts | 14 +- .../questionAnswers/client/Client.ts | 10 +- src/api/resources/revOrgs/client/Client.ts | 10 +- src/api/resources/revUsers/client/Client.ts | 167 +- .../client/requests/RevUsersMergeRequest.ts | 21 + .../revUsers/client/requests/index.ts | 1 + src/api/resources/schedules/client/Client.ts | 18 +- src/api/resources/search/client/Client.ts | 4 +- .../serviceAccounts/client/Client.ts | 2 +- src/api/resources/slas/client/Client.ts | 153 +- .../client/requests/SlaTrackersListRequest.ts | 30 + .../resources/slas/client/requests/index.ts | 1 + src/api/resources/snapIns/client/Client.ts | 4 +- .../resources/snapWidgets/client/Client.ts | 2 +- src/api/resources/surveys/client/Client.ts | 12 +- src/api/resources/sysUsers/client/Client.ts | 4 +- src/api/resources/tags/client/Client.ts | 10 +- .../timelineEntries/client/Client.ts | 10 +- src/api/resources/webhooks/client/Client.ts | 12 +- src/api/resources/works/client/Client.ts | 12 +- .../ConversationsUpdateRequestOwnedBy.ts | 11 + src/api/types/CustomObject.ts | 16 + src/api/types/CustomObjectsCountResponse.ts | 8 + src/api/types/CustomObjectsCreateResponse.ts | 9 + src/api/types/CustomObjectsDeleteResponse.ts | 5 + src/api/types/CustomObjectsGetResponse.ts | 9 + src/api/types/CustomObjectsListResponse.ts | 20 + src/api/types/CustomObjectsUpdateResponse.ts | 9 + src/api/types/DirectoriesCountResponse.ts | 8 + src/api/types/DirectoriesCreateResponse.ts | 12 + src/api/types/DirectoriesDeleteResponse.ts | 5 + src/api/types/DirectoriesGetResponse.ts | 12 + src/api/types/DirectoriesListResponse.ts | 23 + .../types/DirectoriesUpdateRequestReorder.ts | 10 + src/api/types/DirectoriesUpdateRequestTags.ts | 10 + src/api/types/DirectoriesUpdateResponse.ts | 12 + src/api/types/Directory.ts | 23 + .../types/EngagementsUpdateRequestParents.ts | 8 + .../GeneralPreferencesGroupPreferredLocale.ts | 5 +- src/api/types/LinkType.ts | 2 + src/api/types/RevUsersMergeResponse.ts | 9 + src/api/types/SlaTrackersListResponse.ts | 20 + src/api/types/TimelineEntryBase.ts | 2 + src/api/types/index.ts | 20 + .../requests/ConversationsCreateRequest.ts | 2 + .../requests/ConversationsUpdateRequest.ts | 3 + .../requests/CustomObjectsCountRequest.ts | 22 + .../requests/CustomObjectsCreateRequest.ts | 40 + .../requests/CustomObjectsDeleteRequest.ts | 20 + .../requests/CustomObjectsGetRequest.ts | 20 + .../requests/CustomObjectsListRequest.ts | 31 + .../requests/CustomObjectsUpdateRequest.ts | 38 + .../CustomSchemaFragmentsListRequest.ts | 2 + .../customization/client/requests/index.ts | 6 + .../resources/directory/client/index.ts | 1 + .../requests/DirectoriesCountRequest.ts | 28 + .../requests/DirectoriesCreateRequest.ts | 33 + .../requests/DirectoriesDeleteRequest.ts | 20 + .../client/requests/DirectoriesGetRequest.ts | 20 + .../client/requests/DirectoriesListRequest.ts | 35 + .../requests/DirectoriesUpdateRequest.ts | 38 + .../directory/client/requests/index.ts | 6 + .../resources/directory/index.ts | 1 + .../requests/EngagementsCreateRequest.ts | 6 +- .../requests/EngagementsUpdateRequest.ts | 3 + src/serialization/resources/index.ts | 6 +- .../client/requests/RevUsersMergeRequest.ts | 22 + .../revUsers/client/requests/index.ts | 1 + .../client/requests/SlaTrackersListRequest.ts | 34 + .../resources/slas/client/requests/index.ts | 1 + .../ConversationsUpdateRequestOwnedBy.ts | 20 + src/serialization/types/CustomObject.ts | 36 + .../types/CustomObjectsCountResponse.ts | 20 + .../types/CustomObjectsCreateResponse.ts | 21 + .../types/CustomObjectsDeleteResponse.ts | 16 + .../types/CustomObjectsGetResponse.ts | 21 + .../types/CustomObjectsListResponse.ts | 25 + .../types/CustomObjectsUpdateResponse.ts | 21 + .../types/DirectoriesCountResponse.ts | 20 + .../types/DirectoriesCreateResponse.ts | 21 + .../types/DirectoriesDeleteResponse.ts | 16 + .../types/DirectoriesGetResponse.ts | 21 + .../types/DirectoriesListResponse.ts | 25 + .../types/DirectoriesUpdateRequestReorder.ts | 22 + .../types/DirectoriesUpdateRequestTags.ts | 21 + .../types/DirectoriesUpdateResponse.ts | 21 + src/serialization/types/Directory.ts | 40 + .../types/EngagementsUpdateRequestParents.ts | 20 + .../GeneralPreferencesGroupPreferredLocale.ts | 4 +- src/serialization/types/LinkType.ts | 2 + .../types/RevUsersMergeResponse.ts | 16 + .../types/SlaTrackersListResponse.ts | 25 + src/serialization/types/TimelineEntryBase.ts | 3 + src/serialization/types/index.ts | 20 + yarn.lock | 340 ++-- 140 files changed, 5279 insertions(+), 784 deletions(-) create mode 100644 src/api/resources/customization/client/requests/CustomObjectsCountRequest.ts create mode 100644 src/api/resources/customization/client/requests/CustomObjectsCreateRequest.ts create mode 100644 src/api/resources/customization/client/requests/CustomObjectsDeleteRequest.ts create mode 100644 src/api/resources/customization/client/requests/CustomObjectsGetRequest.ts create mode 100644 src/api/resources/customization/client/requests/CustomObjectsListRequest.ts create mode 100644 src/api/resources/customization/client/requests/CustomObjectsUpdateRequest.ts create mode 100644 src/api/resources/directory/client/Client.ts create mode 100644 src/api/resources/directory/client/index.ts create mode 100644 src/api/resources/directory/client/requests/DirectoriesCountRequest.ts create mode 100644 src/api/resources/directory/client/requests/DirectoriesCreateRequest.ts create mode 100644 src/api/resources/directory/client/requests/DirectoriesDeleteRequest.ts create mode 100644 src/api/resources/directory/client/requests/DirectoriesGetRequest.ts create mode 100644 src/api/resources/directory/client/requests/DirectoriesListRequest.ts create mode 100644 src/api/resources/directory/client/requests/DirectoriesUpdateRequest.ts create mode 100644 src/api/resources/directory/client/requests/index.ts create mode 100644 src/api/resources/directory/index.ts create mode 100644 src/api/resources/revUsers/client/requests/RevUsersMergeRequest.ts create mode 100644 src/api/resources/slas/client/requests/SlaTrackersListRequest.ts create mode 100644 src/api/types/ConversationsUpdateRequestOwnedBy.ts create mode 100644 src/api/types/CustomObject.ts create mode 100644 src/api/types/CustomObjectsCountResponse.ts create mode 100644 src/api/types/CustomObjectsCreateResponse.ts create mode 100644 src/api/types/CustomObjectsDeleteResponse.ts create mode 100644 src/api/types/CustomObjectsGetResponse.ts create mode 100644 src/api/types/CustomObjectsListResponse.ts create mode 100644 src/api/types/CustomObjectsUpdateResponse.ts create mode 100644 src/api/types/DirectoriesCountResponse.ts create mode 100644 src/api/types/DirectoriesCreateResponse.ts create mode 100644 src/api/types/DirectoriesDeleteResponse.ts create mode 100644 src/api/types/DirectoriesGetResponse.ts create mode 100644 src/api/types/DirectoriesListResponse.ts create mode 100644 src/api/types/DirectoriesUpdateRequestReorder.ts create mode 100644 src/api/types/DirectoriesUpdateRequestTags.ts create mode 100644 src/api/types/DirectoriesUpdateResponse.ts create mode 100644 src/api/types/Directory.ts create mode 100644 src/api/types/EngagementsUpdateRequestParents.ts create mode 100644 src/api/types/RevUsersMergeResponse.ts create mode 100644 src/api/types/SlaTrackersListResponse.ts create mode 100644 src/serialization/resources/customization/client/requests/CustomObjectsCountRequest.ts create mode 100644 src/serialization/resources/customization/client/requests/CustomObjectsCreateRequest.ts create mode 100644 src/serialization/resources/customization/client/requests/CustomObjectsDeleteRequest.ts create mode 100644 src/serialization/resources/customization/client/requests/CustomObjectsGetRequest.ts create mode 100644 src/serialization/resources/customization/client/requests/CustomObjectsListRequest.ts create mode 100644 src/serialization/resources/customization/client/requests/CustomObjectsUpdateRequest.ts create mode 100644 src/serialization/resources/directory/client/index.ts create mode 100644 src/serialization/resources/directory/client/requests/DirectoriesCountRequest.ts create mode 100644 src/serialization/resources/directory/client/requests/DirectoriesCreateRequest.ts create mode 100644 src/serialization/resources/directory/client/requests/DirectoriesDeleteRequest.ts create mode 100644 src/serialization/resources/directory/client/requests/DirectoriesGetRequest.ts create mode 100644 src/serialization/resources/directory/client/requests/DirectoriesListRequest.ts create mode 100644 src/serialization/resources/directory/client/requests/DirectoriesUpdateRequest.ts create mode 100644 src/serialization/resources/directory/client/requests/index.ts create mode 100644 src/serialization/resources/directory/index.ts create mode 100644 src/serialization/resources/revUsers/client/requests/RevUsersMergeRequest.ts create mode 100644 src/serialization/resources/slas/client/requests/SlaTrackersListRequest.ts create mode 100644 src/serialization/types/ConversationsUpdateRequestOwnedBy.ts create mode 100644 src/serialization/types/CustomObject.ts create mode 100644 src/serialization/types/CustomObjectsCountResponse.ts create mode 100644 src/serialization/types/CustomObjectsCreateResponse.ts create mode 100644 src/serialization/types/CustomObjectsDeleteResponse.ts create mode 100644 src/serialization/types/CustomObjectsGetResponse.ts create mode 100644 src/serialization/types/CustomObjectsListResponse.ts create mode 100644 src/serialization/types/CustomObjectsUpdateResponse.ts create mode 100644 src/serialization/types/DirectoriesCountResponse.ts create mode 100644 src/serialization/types/DirectoriesCreateResponse.ts create mode 100644 src/serialization/types/DirectoriesDeleteResponse.ts create mode 100644 src/serialization/types/DirectoriesGetResponse.ts create mode 100644 src/serialization/types/DirectoriesListResponse.ts create mode 100644 src/serialization/types/DirectoriesUpdateRequestReorder.ts create mode 100644 src/serialization/types/DirectoriesUpdateRequestTags.ts create mode 100644 src/serialization/types/DirectoriesUpdateResponse.ts create mode 100644 src/serialization/types/Directory.ts create mode 100644 src/serialization/types/EngagementsUpdateRequestParents.ts create mode 100644 src/serialization/types/RevUsersMergeResponse.ts create mode 100644 src/serialization/types/SlaTrackersListResponse.ts diff --git a/README.md b/README.md index 36a9837..ab8e22b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Devrev TypeScript Library -[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern) +[![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2Fdevrev%2Fsdk-typescript) [![npm shield](https://img.shields.io/npm/v/@devrev/api)](https://www.npmjs.com/package/@devrev/api) The Devrev TypeScript library provides convenient access to the Devrev API from TypeScript. diff --git a/package.json b/package.json index 3f55a12..215fa31 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devrev/api", - "version": "0.0.5", + "version": "0.0.6", "private": false, "repository": "https://github.com/devrev/sdk-typescript", "main": "./index.js", diff --git a/reference.md b/reference.md index 0b23faa..60f374d 100644 --- a/reference.md +++ b/reference.md @@ -2480,9 +2480,9 @@ await client.conversations.update({ -## auth-connection +## customization -
client.authConnection.devOrgAuthConnectionsCreate({ ...params }) -> DevRev.DevOrgAuthConnectionsCreateResponse +
client.customization.customObjectsCountPost({ ...params }) -> DevRev.CustomObjectsCountResponse
@@ -2494,12 +2494,7 @@ await client.conversations.update({
-Creates a new enterprise authentication connection for a Dev -organization. This authentication connection will not be enabled by -default for the organization and the user will need to explicitly -enable this. Keep in mind that at a time, only one authentication -connection can be enabled for a Dev organization. At present, only 5 -enterprise connections can be created by an organization. +Counts custom objects.
@@ -2515,12 +2510,8 @@ enterprise connections can be created by an organization.
```typescript -await client.authConnection.devOrgAuthConnectionsCreate({ - type: "google_apps", - displayName: "string", - clientId: "string", - clientSecret: "string", - tenantDomain: "string", +await client.customization.customObjectsCountPost({ + leafType: "leaf_type", }); ``` @@ -2537,7 +2528,7 @@ await client.authConnection.devOrgAuthConnectionsCreate({
-**request:** `DevRev.DevOrgAuthConnectionsCreateRequest` +**request:** `DevRev.CustomObjectsCountRequest`
@@ -2545,7 +2536,7 @@ await client.authConnection.devOrgAuthConnectionsCreate({
-**requestOptions:** `AuthConnection.RequestOptions` +**requestOptions:** `Customization.RequestOptions`
@@ -2556,7 +2547,7 @@ await client.authConnection.devOrgAuthConnectionsCreate({
-
client.authConnection.devOrgAuthConnectionsDelete({ ...params }) -> void +
client.customization.customObjectsCreate({ ...params }) -> DevRev.CustomObjectsCreateResponse
@@ -2568,9 +2559,7 @@ await client.authConnection.devOrgAuthConnectionsCreate({
-Deletes an authentication connection. Only enterprise connections which -are explicitly set up for a Dev organization can be deleted. Default -connections can not be deleted using this method. +Creates a custom object.
@@ -2586,8 +2575,9 @@ connections can not be deleted using this method.
```typescript -await client.authConnection.devOrgAuthConnectionsDelete({ - id: "id", +await client.customization.customObjectsCreate({ + leafType: "leaf_type", + uniqueKey: "unique_key", }); ``` @@ -2604,7 +2594,7 @@ await client.authConnection.devOrgAuthConnectionsDelete({
-**request:** `DevRev.DevOrgAuthConnectionsDeleteRequest` +**request:** `DevRev.CustomObjectsCreateRequest`
@@ -2612,7 +2602,7 @@ await client.authConnection.devOrgAuthConnectionsDelete({
-**requestOptions:** `AuthConnection.RequestOptions` +**requestOptions:** `Customization.RequestOptions`
@@ -2623,7 +2613,7 @@ await client.authConnection.devOrgAuthConnectionsDelete({
-
client.authConnection.devOrgAuthConnectionsGetPost({ ...params }) -> DevRev.DevOrgAuthConnectionsGetResponse +
client.customization.customObjectsDelete({ ...params }) -> DevRev.CustomObjectsDeleteResponse
@@ -2635,7 +2625,7 @@ await client.authConnection.devOrgAuthConnectionsDelete({
-Retrieves the details for an authentication connection. +Deletes a custom object.
@@ -2651,8 +2641,8 @@ Retrieves the details for an authentication connection.
```typescript -await client.authConnection.devOrgAuthConnectionsGetPost({ - id: "string", +await client.customization.customObjectsDelete({ + id: "id", }); ``` @@ -2669,7 +2659,7 @@ await client.authConnection.devOrgAuthConnectionsGetPost({
-**request:** `DevRev.DevOrgAuthConnectionsGetRequest` +**request:** `DevRev.CustomObjectsDeleteRequest`
@@ -2677,7 +2667,7 @@ await client.authConnection.devOrgAuthConnectionsGetPost({
-**requestOptions:** `AuthConnection.RequestOptions` +**requestOptions:** `Customization.RequestOptions`
@@ -2688,7 +2678,7 @@ await client.authConnection.devOrgAuthConnectionsGetPost({
-
client.authConnection.devOrgAuthConnectionsListPost({ ...params }) -> DevRev.DevOrgAuthConnectionsListResponse +
client.customization.customObjectsGetPost({ ...params }) -> DevRev.CustomObjectsGetResponse
@@ -2700,10 +2690,7 @@ await client.authConnection.devOrgAuthConnectionsGetPost({
-Lists all the authentication connections available for a Dev -organization. This list will include both social and enterprise -connections which are either available by default or are explicitly -created by the user. +Gets a custom object.
@@ -2719,8 +2706,71 @@ created by the user.
```typescript -await client.authConnection.devOrgAuthConnectionsListPost({ - key: "value", +await client.customization.customObjectsGetPost(); +``` + +
+
+ + + +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.CustomObjectsGetRequest` + +
+
+ +
+
+ +**requestOptions:** `Customization.RequestOptions` + +
+
+
+
+ + + +
+ +
client.customization.customObjectsListPost({ ...params }) -> DevRev.CustomObjectsListResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Lists custom objects. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.customization.customObjectsListPost({ + leafType: "leaf_type", }); ``` @@ -2737,7 +2787,7 @@ await client.authConnection.devOrgAuthConnectionsListPost({
-**request:** `DevRev.Empty` +**request:** `DevRev.CustomObjectsListRequest`
@@ -2745,7 +2795,7 @@ await client.authConnection.devOrgAuthConnectionsListPost({
-**requestOptions:** `AuthConnection.RequestOptions` +**requestOptions:** `Customization.RequestOptions`
@@ -2756,7 +2806,7 @@ await client.authConnection.devOrgAuthConnectionsListPost({
-
client.authConnection.devOrgAuthConnectionsToggle({ ...params }) -> void +
client.customization.customObjectsUpdate({ ...params }) -> DevRev.CustomObjectsUpdateResponse
@@ -2768,11 +2818,7 @@ await client.authConnection.devOrgAuthConnectionsListPost({
-Enable or disable an authentication connection for a Dev organization. -Currently, only 1 authentication connection can be enabled at a time. -When a new authentication connection is enabled, the connection which -is currently enabled for the Dev organization is automatically -disabled. +Updates a custom object.
@@ -2788,7 +2834,7 @@ disabled.
```typescript -await client.authConnection.devOrgAuthConnectionsToggle({ +await client.customization.customObjectsUpdate({ id: "id", }); ``` @@ -2806,7 +2852,7 @@ await client.authConnection.devOrgAuthConnectionsToggle({
-**request:** `DevRev.DevOrgAuthConnectionsToggleRequest` +**request:** `DevRev.CustomObjectsUpdateRequest`
@@ -2814,7 +2860,7 @@ await client.authConnection.devOrgAuthConnectionsToggle({
-**requestOptions:** `AuthConnection.RequestOptions` +**requestOptions:** `Customization.RequestOptions`
@@ -2825,7 +2871,7 @@ await client.authConnection.devOrgAuthConnectionsToggle({
-
client.authConnection.devOrgAuthConnectionsUpdate({ ...params }) -> DevRev.DevOrgAuthConnectionsUpdateResponse +
client.customization.customLinkTypeCreate({ ...params }) -> DevRev.CustomLinkTypeCreateResponse
@@ -2837,7 +2883,7 @@ await client.authConnection.devOrgAuthConnectionsToggle({
-Updates an authentication connection. +Creates a custom link type.
@@ -2853,13 +2899,20 @@ Updates an authentication connection.
```typescript -await client.authConnection.devOrgAuthConnectionsUpdate({ - type: "google_apps", - displayName: "string", - id: "string", - clientId: "string", - clientSecret: "string", - tenantDomain: "string", +await client.customization.customLinkTypeCreate({ + backwardName: "backward_name", + forwardName: "forward_name", + name: "name", + sourceTypes: [ + { + key: "value", + }, + ], + targetTypes: [ + { + key: "value", + }, + ], }); ``` @@ -2876,7 +2929,7 @@ await client.authConnection.devOrgAuthConnectionsUpdate({
-**request:** `DevRev.DevOrgAuthConnectionsUpdateRequest` +**request:** `DevRev.CustomLinkTypeCreateRequest`
@@ -2884,7 +2937,7 @@ await client.authConnection.devOrgAuthConnectionsUpdate({
-**requestOptions:** `AuthConnection.RequestOptions` +**requestOptions:** `Customization.RequestOptions`
@@ -2895,9 +2948,7 @@ await client.authConnection.devOrgAuthConnectionsUpdate({
-## dev-users - -
client.devUsers.getPost({ ...params }) -> DevRev.DevUsersGetResponse +
client.customization.customLinkTypeGetPost({ ...params }) -> DevRev.CustomLinkTypeGetResponse
@@ -2909,7 +2960,7 @@ await client.authConnection.devOrgAuthConnectionsUpdate({
-Gets the requested user's information. +Gets a custom link type.
@@ -2925,7 +2976,7 @@ Gets the requested user's information.
```typescript -await client.devUsers.getPost({ +await client.customization.customLinkTypeGetPost({ id: "id", }); ``` @@ -2943,7 +2994,7 @@ await client.devUsers.getPost({
-**request:** `DevRev.DevUsersGetRequest` +**request:** `DevRev.CustomLinkTypeGetRequest`
@@ -2951,7 +3002,7 @@ await client.devUsers.getPost({
-**requestOptions:** `DevUsers.RequestOptions` +**requestOptions:** `Customization.RequestOptions`
@@ -2962,7 +3013,7 @@ await client.devUsers.getPost({
-
client.devUsers.identitiesLink({ ...params }) -> DevRev.DevUsersIdentitiesLinkResponse +
client.customization.customLinkTypeListPost({ ...params }) -> DevRev.CustomLinkTypeListResponse
@@ -2974,7 +3025,7 @@ await client.devUsers.getPost({
-Links an external/secondary identity to the Dev user. +Lists custom link types.
@@ -2990,10 +3041,71 @@ Links an external/secondary identity to the Dev user.
```typescript -await client.devUsers.identitiesLink({ - devUser: "dev_user", +await client.customization.customLinkTypeListPost(); +``` + +
+
+ + + +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.CustomLinkTypeListRequest` + +
+
+ +
+
+ +**requestOptions:** `Customization.RequestOptions` + +
+
+
+
+ + + +
+ +
client.customization.customLinkTypeUpdate({ ...params }) -> DevRev.CustomLinkTypeUpdateResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Updates a custom link type. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.customization.customLinkTypeUpdate({ id: "id", - issuer: "issuer", }); ``` @@ -3010,7 +3122,670 @@ await client.devUsers.identitiesLink({
-**request:** `DevRev.DevUsersIdentitiesLinkRequest` +**request:** `DevRev.CustomLinkTypeUpdateRequest` + +
+
+ +
+
+ +**requestOptions:** `Customization.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.customization.aggregatedSchemaGetPost({ ...params }) -> DevRev.AggregatedSchemaGetResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Gets the aggregated schema. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.customization.aggregatedSchemaGetPost({ + customSchemaFragmentIds: ["custom_schema_fragment_ids"], +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.AggregatedSchemaGetRequest` + +
+
+ +
+
+ +**requestOptions:** `Customization.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.customization.customSchemaFragmentsGetPost({ ...params }) -> DevRev.CustomSchemaFragmentsGetResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Gets a custom schema fragment. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.customization.customSchemaFragmentsGetPost({ + id: "string", +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.CustomSchemaFragmentsGetRequest` + +
+
+ +
+
+ +**requestOptions:** `Customization.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.customization.customSchemaFragmentsListPost({ ...params }) -> DevRev.CustomSchemaFragmentsListResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Lists custom schema fragments. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.customization.customSchemaFragmentsListPost(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.CustomSchemaFragmentsListRequest` + +
+
+ +
+
+ +**requestOptions:** `Customization.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.customization.customSchemaFragmentsSet({ ...params }) -> DevRev.CustomSchemaFragmentsSetResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Creates or updates a custom schema fragment. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.customization.customSchemaFragmentsSet({ + type: "app_fragment", + conditions: [ + { + string: { + key: "value", + }, + }, + ], + deletedFields: ["string"], + deprecated: true, + description: "string", + fields: [ + { + fieldType: "array", + value: { + key: "value", + }, + }, + ], + isCustomLeafType: true, + leafType: "string", + app: "string", +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.CustomSchemaFragmentsSetRequest` + +
+
+ +
+
+ +**requestOptions:** `Customization.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.customization.stockSchemaFragmentsGetPost({ ...params }) -> DevRev.StockSchemaFragmentsGetResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Gets a stock schema fragment. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.customization.stockSchemaFragmentsGetPost(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.StockSchemaFragmentsGetRequest` + +
+
+ +
+
+ +**requestOptions:** `Customization.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.customization.stockSchemaFragmentsListPost({ ...params }) -> DevRev.StockSchemaFragmentsListResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Lists stock schema fragments. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.customization.stockSchemaFragmentsListPost(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.StockSchemaFragmentsListRequest` + +
+
+ +
+
+ +**requestOptions:** `Customization.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.customization.subtypesListPost({ ...params }) -> DevRev.SubtypesListResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Lists subtypes. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.customization.subtypesListPost(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.SubtypesListRequest` + +
+
+ +
+
+ +**requestOptions:** `Customization.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.customization.customStagesCreate({ ...params }) -> DevRev.CustomStagesCreateResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Creates a custom stage. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.customization.customStagesCreate({ + name: "name", + ordinal: 1, + state: "state", +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.CustomStagesCreateRequest` + +
+
+ +
+
+ +**requestOptions:** `Customization.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.customization.customStagesGetPost({ ...params }) -> DevRev.CustomStagesGetResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Gets a custom stage. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.customization.customStagesGetPost({ + id: "id", +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.CustomStagesGetRequest` + +
+
+ +
+
+ +**requestOptions:** `Customization.RequestOptions` + +
+
+
+
+ +
+
+
+ +
client.customization.customStagesListPost({ ...params }) -> DevRev.CustomStagesListResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Lists custom stages. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.customization.customStagesListPost(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.CustomStagesListRequest`
@@ -3018,7 +3793,7 @@ await client.devUsers.identitiesLink({
-**requestOptions:** `DevUsers.RequestOptions` +**requestOptions:** `Customization.RequestOptions`
@@ -3029,7 +3804,7 @@ await client.devUsers.identitiesLink({
-
client.devUsers.identitiesUnlink({ ...params }) -> DevRev.DevUsersIdentitiesUnlinkResponse +
client.customization.customStagesUpdate({ ...params }) -> DevRev.CustomStagesUpdateResponse
@@ -3041,7 +3816,7 @@ await client.devUsers.identitiesLink({
-Unlinks an external/secondary identity from the Dev user. +Updates a custom stage.
@@ -3057,9 +3832,8 @@ Unlinks an external/secondary identity from the Dev user.
```typescript -await client.devUsers.identitiesUnlink({ - devUser: "dev_user", - issuer: "issuer", +await client.customization.customStagesUpdate({ + id: "id", }); ``` @@ -3076,7 +3850,7 @@ await client.devUsers.identitiesUnlink({
-**request:** `DevRev.DevUsersIdentitiesUnlinkRequest` +**request:** `DevRev.CustomStagesUpdateRequest`
@@ -3084,7 +3858,7 @@ await client.devUsers.identitiesUnlink({
-**requestOptions:** `DevUsers.RequestOptions` +**requestOptions:** `Customization.RequestOptions`
@@ -3095,7 +3869,7 @@ await client.devUsers.identitiesUnlink({
-
client.devUsers.listPost({ ...params }) -> DevRev.DevUsersListResponse +
client.customization.customStatesCreate({ ...params }) -> DevRev.CustomStatesCreateResponse
@@ -3107,7 +3881,7 @@ await client.devUsers.identitiesUnlink({
-Lists users within your organization. +Creates a custom state.
@@ -3123,7 +3897,10 @@ Lists users within your organization.
```typescript -await client.devUsers.listPost(); +await client.customization.customStatesCreate({ + name: "name", + ordinal: 1, +}); ```
@@ -3139,7 +3916,7 @@ await client.devUsers.listPost();
-**request:** `DevRev.DevUsersListRequest` +**request:** `DevRev.CustomStatesCreateRequest`
@@ -3147,7 +3924,7 @@ await client.devUsers.listPost();
-**requestOptions:** `DevUsers.RequestOptions` +**requestOptions:** `Customization.RequestOptions`
@@ -3158,7 +3935,7 @@ await client.devUsers.listPost();
-
client.devUsers.selfPost({ ...params }) -> DevRev.DevUsersSelfResponse +
client.customization.customStatesGetPost({ ...params }) -> DevRev.CustomStatesGetResponse
@@ -3170,7 +3947,7 @@ await client.devUsers.listPost();
-Gets the authenticated user's information. +Gets a custom state.
@@ -3186,8 +3963,8 @@ Gets the authenticated user's information.
```typescript -await client.devUsers.selfPost({ - key: "value", +await client.customization.customStatesGetPost({ + id: "id", }); ``` @@ -3204,7 +3981,7 @@ await client.devUsers.selfPost({
-**request:** `DevRev.DevUsersSelfRequest` +**request:** `DevRev.CustomStatesGetRequest`
@@ -3212,7 +3989,7 @@ await client.devUsers.selfPost({
-**requestOptions:** `DevUsers.RequestOptions` +**requestOptions:** `Customization.RequestOptions`
@@ -3223,7 +4000,7 @@ await client.devUsers.selfPost({
-
client.devUsers.selfUpdate({ ...params }) -> DevRev.DevUsersUpdateResponse +
client.customization.customStatesListPost({ ...params }) -> DevRev.CustomStatesListResponse
@@ -3235,7 +4012,7 @@ await client.devUsers.selfPost({
-Updates the authenticated user. +Lists custom states.
@@ -3251,7 +4028,7 @@ Updates the authenticated user.
```typescript -await client.devUsers.selfUpdate(); +await client.customization.customStatesListPost(); ```
@@ -3267,7 +4044,7 @@ await client.devUsers.selfUpdate();
-**request:** `DevRev.DevUsersSelfUpdateRequest` +**request:** `DevRev.CustomStatesListRequest`
@@ -3275,7 +4052,7 @@ await client.devUsers.selfUpdate();
-**requestOptions:** `DevUsers.RequestOptions` +**requestOptions:** `Customization.RequestOptions`
@@ -3286,7 +4063,7 @@ await client.devUsers.selfUpdate();
-
client.devUsers.update({ ...params }) -> DevRev.DevUsersUpdateResponse +
client.customization.customStatesUpdate({ ...params }) -> DevRev.CustomStatesUpdateResponse
@@ -3298,7 +4075,7 @@ await client.devUsers.selfUpdate();
-Updates the user corresponding to the input Id. +Updates a custom state.
@@ -3314,7 +4091,7 @@ Updates the user corresponding to the input Id.
```typescript -await client.devUsers.update({ +await client.customization.customStatesUpdate({ id: "id", }); ``` @@ -3332,7 +4109,7 @@ await client.devUsers.update({
-**request:** `DevRev.DevUsersUpdateRequest` +**request:** `DevRev.CustomStatesUpdateRequest`
@@ -3340,7 +4117,7 @@ await client.devUsers.update({
-**requestOptions:** `DevUsers.RequestOptions` +**requestOptions:** `Customization.RequestOptions`
@@ -3351,9 +4128,9 @@ await client.devUsers.update({
-## engagements +## auth-connection -
client.engagements.countPost({ ...params }) -> DevRev.EngagementsCountResponse +
client.authConnection.devOrgAuthConnectionsCreate({ ...params }) -> DevRev.DevOrgAuthConnectionsCreateResponse
@@ -3365,7 +4142,12 @@ await client.devUsers.update({
-Counts the engagement records. +Creates a new enterprise authentication connection for a Dev +organization. This authentication connection will not be enabled by +default for the organization and the user will need to explicitly +enable this. Keep in mind that at a time, only one authentication +connection can be enabled for a Dev organization. At present, only 5 +enterprise connections can be created by an organization.
@@ -3381,7 +4163,13 @@ Counts the engagement records.
```typescript -await client.engagements.countPost(); +await client.authConnection.devOrgAuthConnectionsCreate({ + type: "google_apps", + displayName: "string", + clientId: "string", + clientSecret: "string", + tenantDomain: "string", +}); ```
@@ -3397,7 +4185,7 @@ await client.engagements.countPost();
-**request:** `DevRev.EngagementsCountRequest` +**request:** `DevRev.DevOrgAuthConnectionsCreateRequest`
@@ -3405,7 +4193,7 @@ await client.engagements.countPost();
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `AuthConnection.RequestOptions`
@@ -3416,7 +4204,7 @@ await client.engagements.countPost();
-
client.engagements.create({ ...params }) -> DevRev.EngagementsCreateResponse +
client.authConnection.devOrgAuthConnectionsDelete({ ...params }) -> void
@@ -3428,7 +4216,9 @@ await client.engagements.countPost();
-Creates a new engagement record. +Deletes an authentication connection. Only enterprise connections which +are explicitly set up for a Dev organization can be deleted. Default +connections can not be deleted using this method.
@@ -3444,11 +4234,8 @@ Creates a new engagement record.
```typescript -await client.engagements.create({ - members: ["DEVU-12345"], - parent: "ACC-12345", - scheduledDate: new Date("2023-01-01T12:00:00.000Z"), - title: "title", +await client.authConnection.devOrgAuthConnectionsDelete({ + id: "id", }); ``` @@ -3465,7 +4252,7 @@ await client.engagements.create({
-**request:** `DevRev.EngagementsCreateRequest` +**request:** `DevRev.DevOrgAuthConnectionsDeleteRequest`
@@ -3473,7 +4260,7 @@ await client.engagements.create({
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `AuthConnection.RequestOptions`
@@ -3484,7 +4271,7 @@ await client.engagements.create({
-
client.engagements.delete({ ...params }) -> DevRev.EngagementsDeleteResponse +
client.authConnection.devOrgAuthConnectionsGetPost({ ...params }) -> DevRev.DevOrgAuthConnectionsGetResponse
@@ -3496,7 +4283,7 @@ await client.engagements.create({
-Deletes the engagement record. +Retrieves the details for an authentication connection.
@@ -3512,8 +4299,8 @@ Deletes the engagement record.
```typescript -await client.engagements.delete({ - id: "id", +await client.authConnection.devOrgAuthConnectionsGetPost({ + id: "string", }); ``` @@ -3530,7 +4317,7 @@ await client.engagements.delete({
-**request:** `DevRev.EngagementsDeleteRequest` +**request:** `DevRev.DevOrgAuthConnectionsGetRequest`
@@ -3538,7 +4325,7 @@ await client.engagements.delete({
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `AuthConnection.RequestOptions`
@@ -3549,7 +4336,7 @@ await client.engagements.delete({
-
client.engagements.getPost({ ...params }) -> DevRev.EngagementsGetResponse +
client.authConnection.devOrgAuthConnectionsListPost({ ...params }) -> DevRev.DevOrgAuthConnectionsListResponse
@@ -3561,7 +4348,10 @@ await client.engagements.delete({
-Gets the engagement record. +Lists all the authentication connections available for a Dev +organization. This list will include both social and enterprise +connections which are either available by default or are explicitly +created by the user.
@@ -3577,8 +4367,8 @@ Gets the engagement record.
```typescript -await client.engagements.getPost({ - id: "id", +await client.authConnection.devOrgAuthConnectionsListPost({ + key: "value", }); ``` @@ -3595,7 +4385,7 @@ await client.engagements.getPost({
-**request:** `DevRev.EngagementsGetRequest` +**request:** `DevRev.Empty`
@@ -3603,7 +4393,7 @@ await client.engagements.getPost({
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `AuthConnection.RequestOptions`
@@ -3614,7 +4404,7 @@ await client.engagements.getPost({
-
client.engagements.listPost({ ...params }) -> DevRev.EngagementsListResponse +
client.authConnection.devOrgAuthConnectionsToggle({ ...params }) -> void
@@ -3626,7 +4416,11 @@ await client.engagements.getPost({
-Lists the engagement records. +Enable or disable an authentication connection for a Dev organization. +Currently, only 1 authentication connection can be enabled at a time. +When a new authentication connection is enabled, the connection which +is currently enabled for the Dev organization is automatically +disabled.
@@ -3642,7 +4436,9 @@ Lists the engagement records.
```typescript -await client.engagements.listPost(); +await client.authConnection.devOrgAuthConnectionsToggle({ + id: "id", +}); ```
@@ -3658,7 +4454,7 @@ await client.engagements.listPost();
-**request:** `DevRev.EngagementsListRequest` +**request:** `DevRev.DevOrgAuthConnectionsToggleRequest`
@@ -3666,7 +4462,7 @@ await client.engagements.listPost();
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `AuthConnection.RequestOptions`
@@ -3677,7 +4473,7 @@ await client.engagements.listPost();
-
client.engagements.update({ ...params }) -> DevRev.EngagementsUpdateResponse +
client.authConnection.devOrgAuthConnectionsUpdate({ ...params }) -> DevRev.DevOrgAuthConnectionsUpdateResponse
@@ -3689,7 +4485,7 @@ await client.engagements.listPost();
-Updates the engagement record. +Updates an authentication connection.
@@ -3705,8 +4501,13 @@ Updates the engagement record.
```typescript -await client.engagements.update({ - id: "id", +await client.authConnection.devOrgAuthConnectionsUpdate({ + type: "google_apps", + displayName: "string", + id: "string", + clientId: "string", + clientSecret: "string", + tenantDomain: "string", }); ``` @@ -3723,7 +4524,7 @@ await client.engagements.update({
-**request:** `DevRev.EngagementsUpdateRequest` +**request:** `DevRev.DevOrgAuthConnectionsUpdateRequest`
@@ -3731,7 +4532,7 @@ await client.engagements.update({
-**requestOptions:** `Engagements.RequestOptions` +**requestOptions:** `AuthConnection.RequestOptions`
@@ -3742,9 +4543,9 @@ await client.engagements.update({
-## event-source +## dev-users -
client.eventSource.eventSourcesGetPost({ ...params }) -> DevRev.EventSourceGetResponse +
client.devUsers.getPost({ ...params }) -> DevRev.DevUsersGetResponse
@@ -3756,7 +4557,7 @@ await client.engagements.update({
-Gets an event source. +Gets the requested user's information.
@@ -3772,7 +4573,7 @@ Gets an event source.
```typescript -await client.eventSource.eventSourcesGetPost({ +await client.devUsers.getPost({ id: "id", }); ``` @@ -3790,7 +4591,7 @@ await client.eventSource.eventSourcesGetPost({
-**request:** `DevRev.EventSourceGetRequest` +**request:** `DevRev.DevUsersGetRequest`
@@ -3798,7 +4599,7 @@ await client.eventSource.eventSourcesGetPost({
-**requestOptions:** `EventSource.RequestOptions` +**requestOptions:** `DevUsers.RequestOptions`
@@ -3809,7 +4610,7 @@ await client.eventSource.eventSourcesGetPost({
-
client.eventSource.eventSourcesScheduleEvent({ ...params }) -> DevRev.EventSourcesScheduleEventResponse +
client.devUsers.identitiesLink({ ...params }) -> DevRev.DevUsersIdentitiesLinkResponse
@@ -3821,7 +4622,7 @@ await client.eventSource.eventSourcesGetPost({
-Schedules an event to be published to the specified event source. +Links an external/secondary identity to the Dev user.
@@ -3837,10 +4638,10 @@ Schedules an event to be published to the specified event source.
```typescript -await client.eventSource.eventSourcesScheduleEvent({ - eventType: "event_type", +await client.devUsers.identitiesLink({ + devUser: "dev_user", id: "id", - payload: "payload", + issuer: "issuer", }); ``` @@ -3857,7 +4658,7 @@ await client.eventSource.eventSourcesScheduleEvent({
-**request:** `DevRev.EventSourcesScheduleEventRequest` +**request:** `DevRev.DevUsersIdentitiesLinkRequest`
@@ -3865,7 +4666,7 @@ await client.eventSource.eventSourcesScheduleEvent({
-**requestOptions:** `EventSource.RequestOptions` +**requestOptions:** `DevUsers.RequestOptions`
@@ -3876,7 +4677,7 @@ await client.eventSource.eventSourcesScheduleEvent({
-
client.eventSource.eventSourcesDeleteScheduledEvent({ ...params }) -> void +
client.devUsers.identitiesUnlink({ ...params }) -> DevRev.DevUsersIdentitiesUnlinkResponse
@@ -3888,7 +4689,7 @@ await client.eventSource.eventSourcesScheduleEvent({
-Deletes an event scheduled for the specified event source. +Unlinks an external/secondary identity from the Dev user.
@@ -3904,9 +4705,9 @@ Deletes an event scheduled for the specified event source.
```typescript -await client.eventSource.eventSourcesDeleteScheduledEvent({ - eventKey: "event_key", - id: "id", +await client.devUsers.identitiesUnlink({ + devUser: "dev_user", + issuer: "issuer", }); ``` @@ -3923,7 +4724,7 @@ await client.eventSource.eventSourcesDeleteScheduledEvent({
-**request:** `DevRev.EventSourcesDeleteScheduledEventRequest` +**request:** `DevRev.DevUsersIdentitiesUnlinkRequest`
@@ -3931,7 +4732,7 @@ await client.eventSource.eventSourcesDeleteScheduledEvent({
-**requestOptions:** `EventSource.RequestOptions` +**requestOptions:** `DevUsers.RequestOptions`
@@ -3942,7 +4743,7 @@ await client.eventSource.eventSourcesDeleteScheduledEvent({
-
client.eventSource.trackEventsPublish({ ...params }) -> DevRev.TrackEventsPublishResponse +
client.devUsers.listPost({ ...params }) -> DevRev.DevUsersListResponse
@@ -3954,7 +4755,7 @@ await client.eventSource.eventSourcesDeleteScheduledEvent({
-Allows publishing of events (example from plug widget). +Lists users within your organization.
@@ -3970,16 +4771,7 @@ Allows publishing of events (example from plug widget).
```typescript -await client.eventSource.trackEventsPublish({ - eventsList: [ - { - name: "name", - payload: { - key: "value", - }, - }, - ], -}); +await client.devUsers.listPost(); ```
@@ -3995,7 +4787,7 @@ await client.eventSource.trackEventsPublish({
-**request:** `DevRev.TrackEventsPublishRequest` +**request:** `DevRev.DevUsersListRequest`
@@ -4003,7 +4795,7 @@ await client.eventSource.trackEventsPublish({
-**requestOptions:** `EventSource.RequestOptions` +**requestOptions:** `DevUsers.RequestOptions`
@@ -4014,9 +4806,7 @@ await client.eventSource.trackEventsPublish({
-## groups - -
client.groups.create({ ...params }) -> DevRev.GroupsCreateResponse +
client.devUsers.selfPost({ ...params }) -> DevRev.DevUsersSelfResponse
@@ -4028,7 +4818,7 @@ await client.eventSource.trackEventsPublish({
-Creates a new group. A group is a collection of users. +Gets the authenticated user's information.
@@ -4044,9 +4834,8 @@ Creates a new group. A group is a collection of users.
```typescript -await client.groups.create({ - description: "description", - name: "name", +await client.devUsers.selfPost({ + key: "value", }); ``` @@ -4063,7 +4852,7 @@ await client.groups.create({
-**request:** `DevRev.GroupsCreateRequest` +**request:** `DevRev.DevUsersSelfRequest`
@@ -4071,7 +4860,7 @@ await client.groups.create({
-**requestOptions:** `Groups.RequestOptions` +**requestOptions:** `DevUsers.RequestOptions`
@@ -4082,7 +4871,7 @@ await client.groups.create({
-
client.groups.getPost({ ...params }) -> DevRev.GroupsGetResponse +
client.devUsers.selfUpdate({ ...params }) -> DevRev.DevUsersUpdateResponse
@@ -4094,7 +4883,7 @@ await client.groups.create({
-Gets the requested group. +Updates the authenticated user.
@@ -4110,9 +4899,7 @@ Gets the requested group.
```typescript -await client.groups.getPost({ - id: "id", -}); +await client.devUsers.selfUpdate(); ```
@@ -4128,7 +4915,7 @@ await client.groups.getPost({
-**request:** `DevRev.GroupsGetRequest` +**request:** `DevRev.DevUsersSelfUpdateRequest`
@@ -4136,7 +4923,7 @@ await client.groups.getPost({
-**requestOptions:** `Groups.RequestOptions` +**requestOptions:** `DevUsers.RequestOptions`
@@ -4147,7 +4934,7 @@ await client.groups.getPost({
-
client.groups.listPost({ ...params }) -> DevRev.GroupsListResponse +
client.devUsers.update({ ...params }) -> DevRev.DevUsersUpdateResponse
@@ -4159,7 +4946,7 @@ await client.groups.getPost({
-Lists the available groups. +Updates the user corresponding to the input Id.
@@ -4175,7 +4962,9 @@ Lists the available groups.
```typescript -await client.groups.listPost(); +await client.devUsers.update({ + id: "id", +}); ```
@@ -4191,7 +4980,7 @@ await client.groups.listPost();
-**request:** `DevRev.GroupsListRequest` +**request:** `DevRev.DevUsersUpdateRequest`
@@ -4199,7 +4988,7 @@ await client.groups.listPost();
-**requestOptions:** `Groups.RequestOptions` +**requestOptions:** `DevUsers.RequestOptions`
@@ -4210,7 +4999,9 @@ await client.groups.listPost();
-
client.groups.groupMembersAdd({ ...params }) -> DevRev.GroupMembersAddResponse +## directory + +
client.directory.directoriesCountPost({ ...params }) -> DevRev.DirectoriesCountResponse
@@ -4222,7 +5013,7 @@ await client.groups.listPost();
-Adds a member to a group. +Get count of directories matching given filter.
@@ -4238,10 +5029,7 @@ Adds a member to a group.
```typescript -await client.groups.groupMembersAdd({ - group: "group", - member: "DEVU-12345", -}); +await client.directory.directoriesCountPost(); ```
@@ -4257,7 +5045,7 @@ await client.groups.groupMembersAdd({
-**request:** `DevRev.GroupMembersAddRequest` +**request:** `DevRev.DirectoriesCountRequest`
@@ -4265,7 +5053,7 @@ await client.groups.groupMembersAdd({
-**requestOptions:** `Groups.RequestOptions` +**requestOptions:** `Directory.RequestOptions`
@@ -4276,7 +5064,7 @@ await client.groups.groupMembersAdd({
-
client.groups.groupMembersListPost({ ...params }) -> DevRev.GroupMembersListResponse +
client.directory.directoriesCreate({ ...params }) -> DevRev.DirectoriesCreateResponse
@@ -4288,7 +5076,7 @@ await client.groups.groupMembersAdd({
-Lists the members in a group. +Creates a directory for the specified inputs.
@@ -4304,8 +5092,8 @@ Lists the members in a group.
```typescript -await client.groups.groupMembersListPost({ - group: "group", +await client.directory.directoriesCreate({ + title: "title", }); ``` @@ -4322,7 +5110,7 @@ await client.groups.groupMembersListPost({
-**request:** `DevRev.GroupMembersListRequest` +**request:** `DevRev.DirectoriesCreateRequest`
@@ -4330,7 +5118,7 @@ await client.groups.groupMembersListPost({
-**requestOptions:** `Groups.RequestOptions` +**requestOptions:** `Directory.RequestOptions`
@@ -4341,7 +5129,7 @@ await client.groups.groupMembersListPost({
-
client.groups.groupMembersRemove({ ...params }) -> DevRev.GroupMembersRemoveResponse +
client.directory.directoriesDelete({ ...params }) -> DevRev.DirectoriesDeleteResponse
@@ -4353,7 +5141,7 @@ await client.groups.groupMembersListPost({
-Removes a member from a group. +Delete the specified directory.
@@ -4369,9 +5157,8 @@ Removes a member from a group.
```typescript -await client.groups.groupMembersRemove({ - group: "group", - member: "DEVU-12345", +await client.directory.directoriesDelete({ + id: "id", }); ``` @@ -4388,7 +5175,7 @@ await client.groups.groupMembersRemove({
-**request:** `DevRev.GroupMembersRemoveRequest` +**request:** `DevRev.DirectoriesDeleteRequest`
@@ -4396,7 +5183,7 @@ await client.groups.groupMembersRemove({
-**requestOptions:** `Groups.RequestOptions` +**requestOptions:** `Directory.RequestOptions`
@@ -4407,7 +5194,7 @@ await client.groups.groupMembersRemove({
-
client.groups.update({ ...params }) -> DevRev.GroupsUpdateResponse +
client.directory.directoriesGetPost({ ...params }) -> DevRev.DirectoriesGetResponse
@@ -4419,7 +5206,7 @@ await client.groups.groupMembersRemove({
-Updates the requested group. +Gets the specified directory.
@@ -4435,7 +5222,7 @@ Updates the requested group.
```typescript -await client.groups.update({ +await client.directory.directoriesGetPost({ id: "id", }); ``` @@ -4453,7 +5240,7 @@ await client.groups.update({
-**request:** `DevRev.GroupsUpdateRequest` +**request:** `DevRev.DirectoriesGetRequest`
@@ -4461,7 +5248,7 @@ await client.groups.update({
-**requestOptions:** `Groups.RequestOptions` +**requestOptions:** `Directory.RequestOptions`
@@ -4472,9 +5259,7 @@ await client.groups.update({
-## operate - -
client.operate.incidentsCreate({ ...params }) -> DevRev.IncidentsCreateResponse +
client.directory.directoriesListPost({ ...params }) -> DevRev.DirectoriesListResponse
@@ -4486,7 +5271,7 @@ await client.groups.update({
-Creates an incident. +Lists directories matching the request.
@@ -4502,9 +5287,7 @@ Creates an incident.
```typescript -await client.operate.incidentsCreate({ - title: "title", -}); +await client.directory.directoriesListPost(); ```
@@ -4520,7 +5303,7 @@ await client.operate.incidentsCreate({
-**request:** `DevRev.IncidentsCreateRequest` +**request:** `DevRev.DirectoriesListRequest`
@@ -4528,7 +5311,7 @@ await client.operate.incidentsCreate({
-**requestOptions:** `Operate.RequestOptions` +**requestOptions:** `Directory.RequestOptions`
@@ -4539,7 +5322,7 @@ await client.operate.incidentsCreate({
-
client.operate.incidentsDelete({ ...params }) -> DevRev.IncidentsDeleteResponse +
client.directory.directoriesUpdate({ ...params }) -> DevRev.DirectoriesUpdateResponse
@@ -4551,7 +5334,7 @@ await client.operate.incidentsCreate({
-Deletes an incident. +Updates the specified directory.
@@ -4567,7 +5350,7 @@ Deletes an incident.
```typescript -await client.operate.incidentsDelete({ +await client.directory.directoriesUpdate({ id: "id", }); ``` @@ -4585,7 +5368,7 @@ await client.operate.incidentsDelete({
-**request:** `DevRev.IncidentsDeleteRequest` +**request:** `DevRev.DirectoriesUpdateRequest`
@@ -4593,7 +5376,7 @@ await client.operate.incidentsDelete({
-**requestOptions:** `Operate.RequestOptions` +**requestOptions:** `Directory.RequestOptions`
@@ -4604,7 +5387,9 @@ await client.operate.incidentsDelete({
-
client.operate.incidentsGetPost({ ...params }) -> DevRev.IncidentsGetResponse +## engagements + +
client.engagements.countPost({ ...params }) -> DevRev.EngagementsCountResponse
@@ -4616,7 +5401,7 @@ await client.operate.incidentsDelete({
-Gets an incident. +Counts the engagement records.
@@ -4632,9 +5417,7 @@ Gets an incident.
```typescript -await client.operate.incidentsGetPost({ - id: "id", -}); +await client.engagements.countPost(); ```
@@ -4650,7 +5433,7 @@ await client.operate.incidentsGetPost({
-**request:** `DevRev.IncidentsGetRequest` +**request:** `DevRev.EngagementsCountRequest`
@@ -4658,7 +5441,7 @@ await client.operate.incidentsGetPost({
-**requestOptions:** `Operate.RequestOptions` +**requestOptions:** `Engagements.RequestOptions`
@@ -4669,7 +5452,7 @@ await client.operate.incidentsGetPost({
-
client.operate.incidentsGroupPost({ ...params }) -> DevRev.IncidentsGroupResponse +
client.engagements.create({ ...params }) -> DevRev.EngagementsCreateResponse
@@ -4681,7 +5464,7 @@ await client.operate.incidentsGetPost({
-Lists collections of incidents by groups. +Creates a new engagement record.
@@ -4697,8 +5480,10 @@ Lists collections of incidents by groups.
```typescript -await client.operate.incidentsGroupPost({ - groupBy: "group_by", +await client.engagements.create({ + members: ["DEVU-12345"], + scheduledDate: new Date("2023-01-01T12:00:00.000Z"), + title: "title", }); ``` @@ -4715,7 +5500,7 @@ await client.operate.incidentsGroupPost({
-**request:** `DevRev.IncidentsGroupRequest` +**request:** `DevRev.EngagementsCreateRequest`
@@ -4723,7 +5508,7 @@ await client.operate.incidentsGroupPost({
-**requestOptions:** `Operate.RequestOptions` +**requestOptions:** `Engagements.RequestOptions`
@@ -4734,7 +5519,7 @@ await client.operate.incidentsGroupPost({
-
client.operate.incidentsListPost({ ...params }) -> DevRev.IncidentsListResponse +
client.engagements.delete({ ...params }) -> DevRev.EngagementsDeleteResponse
@@ -4746,7 +5531,7 @@ await client.operate.incidentsGroupPost({
-Lists incidents. +Deletes the engagement record.
@@ -4762,7 +5547,9 @@ Lists incidents.
```typescript -await client.operate.incidentsListPost(); +await client.engagements.delete({ + id: "id", +}); ```
@@ -4778,7 +5565,7 @@ await client.operate.incidentsListPost();
-**request:** `DevRev.IncidentsListRequest` +**request:** `DevRev.EngagementsDeleteRequest`
@@ -4786,7 +5573,7 @@ await client.operate.incidentsListPost();
-**requestOptions:** `Operate.RequestOptions` +**requestOptions:** `Engagements.RequestOptions`
@@ -4797,7 +5584,7 @@ await client.operate.incidentsListPost();
-
client.operate.incidentsUpdate({ ...params }) -> DevRev.IncidentsUpdateResponse +
client.engagements.getPost({ ...params }) -> DevRev.EngagementsGetResponse
@@ -4809,7 +5596,7 @@ await client.operate.incidentsListPost();
-Updates an incident. +Gets the engagement record.
@@ -4825,7 +5612,7 @@ Updates an incident.
```typescript -await client.operate.incidentsUpdate({ +await client.engagements.getPost({ id: "id", }); ``` @@ -4843,7 +5630,7 @@ await client.operate.incidentsUpdate({
-**request:** `DevRev.IncidentsUpdateRequest` +**request:** `DevRev.EngagementsGetRequest`
@@ -4851,7 +5638,7 @@ await client.operate.incidentsUpdate({
-**requestOptions:** `Operate.RequestOptions` +**requestOptions:** `Engagements.RequestOptions`
@@ -4862,9 +5649,7 @@ await client.operate.incidentsUpdate({
-## keyring - -
client.keyring.keyringsCreateCallbackPost({ ...params }) -> void +
client.engagements.listPost({ ...params }) -> DevRev.EngagementsListResponse
@@ -4876,7 +5661,7 @@ await client.operate.incidentsUpdate({
-OAuth2 authorization callback. +Lists the engagement records.
@@ -4892,10 +5677,7 @@ OAuth2 authorization callback.
```typescript -await client.keyring.keyringsCreateCallbackPost({ - code: "code", - state: "state", -}); +await client.engagements.listPost(); ```
@@ -4911,7 +5693,7 @@ await client.keyring.keyringsCreateCallbackPost({
-**request:** `DevRev.KeyringsCreateCallbackRequest` +**request:** `DevRev.EngagementsListRequest`
@@ -4919,7 +5701,7 @@ await client.keyring.keyringsCreateCallbackPost({
-**requestOptions:** `Keyring.RequestOptions` +**requestOptions:** `Engagements.RequestOptions`
@@ -4930,9 +5712,7 @@ await client.keyring.keyringsCreateCallbackPost({
-## customization - -
client.customization.customLinkTypeCreate({ ...params }) -> DevRev.CustomLinkTypeCreateResponse +
client.engagements.update({ ...params }) -> DevRev.EngagementsUpdateResponse
@@ -4944,7 +5724,7 @@ await client.keyring.keyringsCreateCallbackPost({
-Creates a custom link type. +Updates the engagement record.
@@ -4960,20 +5740,8 @@ Creates a custom link type.
```typescript -await client.customization.customLinkTypeCreate({ - backwardName: "backward_name", - forwardName: "forward_name", - name: "name", - sourceTypes: [ - { - key: "value", - }, - ], - targetTypes: [ - { - key: "value", - }, - ], +await client.engagements.update({ + id: "id", }); ``` @@ -4990,7 +5758,7 @@ await client.customization.customLinkTypeCreate({
-**request:** `DevRev.CustomLinkTypeCreateRequest` +**request:** `DevRev.EngagementsUpdateRequest`
@@ -4998,7 +5766,7 @@ await client.customization.customLinkTypeCreate({
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Engagements.RequestOptions`
@@ -5009,7 +5777,9 @@ await client.customization.customLinkTypeCreate({
-
client.customization.customLinkTypeGetPost({ ...params }) -> DevRev.CustomLinkTypeGetResponse +## event-source + +
client.eventSource.eventSourcesGetPost({ ...params }) -> DevRev.EventSourceGetResponse
@@ -5021,7 +5791,7 @@ await client.customization.customLinkTypeCreate({
-Gets a custom link type. +Gets an event source.
@@ -5037,7 +5807,7 @@ Gets a custom link type.
```typescript -await client.customization.customLinkTypeGetPost({ +await client.eventSource.eventSourcesGetPost({ id: "id", }); ``` @@ -5055,7 +5825,7 @@ await client.customization.customLinkTypeGetPost({
-**request:** `DevRev.CustomLinkTypeGetRequest` +**request:** `DevRev.EventSourceGetRequest`
@@ -5063,7 +5833,7 @@ await client.customization.customLinkTypeGetPost({
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `EventSource.RequestOptions`
@@ -5074,7 +5844,7 @@ await client.customization.customLinkTypeGetPost({
-
client.customization.customLinkTypeListPost({ ...params }) -> DevRev.CustomLinkTypeListResponse +
client.eventSource.eventSourcesScheduleEvent({ ...params }) -> DevRev.EventSourcesScheduleEventResponse
@@ -5086,7 +5856,7 @@ await client.customization.customLinkTypeGetPost({
-Lists custom link types. +Schedules an event to be published to the specified event source.
@@ -5102,7 +5872,11 @@ Lists custom link types.
```typescript -await client.customization.customLinkTypeListPost(); +await client.eventSource.eventSourcesScheduleEvent({ + eventType: "event_type", + id: "id", + payload: "payload", +}); ```
@@ -5118,7 +5892,7 @@ await client.customization.customLinkTypeListPost();
-**request:** `DevRev.CustomLinkTypeListRequest` +**request:** `DevRev.EventSourcesScheduleEventRequest`
@@ -5126,7 +5900,7 @@ await client.customization.customLinkTypeListPost();
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `EventSource.RequestOptions`
@@ -5137,7 +5911,7 @@ await client.customization.customLinkTypeListPost();
-
client.customization.customLinkTypeUpdate({ ...params }) -> DevRev.CustomLinkTypeUpdateResponse +
client.eventSource.eventSourcesDeleteScheduledEvent({ ...params }) -> void
@@ -5149,7 +5923,7 @@ await client.customization.customLinkTypeListPost();
-Updates a custom link type. +Deletes an event scheduled for the specified event source.
@@ -5165,7 +5939,8 @@ Updates a custom link type.
```typescript -await client.customization.customLinkTypeUpdate({ +await client.eventSource.eventSourcesDeleteScheduledEvent({ + eventKey: "event_key", id: "id", }); ``` @@ -5183,7 +5958,7 @@ await client.customization.customLinkTypeUpdate({
-**request:** `DevRev.CustomLinkTypeUpdateRequest` +**request:** `DevRev.EventSourcesDeleteScheduledEventRequest`
@@ -5191,7 +5966,7 @@ await client.customization.customLinkTypeUpdate({
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `EventSource.RequestOptions`
@@ -5202,7 +5977,7 @@ await client.customization.customLinkTypeUpdate({
-
client.customization.aggregatedSchemaGetPost({ ...params }) -> DevRev.AggregatedSchemaGetResponse +
client.eventSource.trackEventsPublish({ ...params }) -> DevRev.TrackEventsPublishResponse
@@ -5214,7 +5989,7 @@ await client.customization.customLinkTypeUpdate({
-Gets the aggregated schema. +Allows publishing of events (example from plug widget).
@@ -5230,8 +6005,15 @@ Gets the aggregated schema.
```typescript -await client.customization.aggregatedSchemaGetPost({ - customSchemaFragmentIds: ["custom_schema_fragment_ids"], +await client.eventSource.trackEventsPublish({ + eventsList: [ + { + name: "name", + payload: { + key: "value", + }, + }, + ], }); ``` @@ -5248,7 +6030,7 @@ await client.customization.aggregatedSchemaGetPost({
-**request:** `DevRev.AggregatedSchemaGetRequest` +**request:** `DevRev.TrackEventsPublishRequest`
@@ -5256,7 +6038,7 @@ await client.customization.aggregatedSchemaGetPost({
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `EventSource.RequestOptions`
@@ -5267,7 +6049,9 @@ await client.customization.aggregatedSchemaGetPost({
-
client.customization.customSchemaFragmentsGetPost({ ...params }) -> DevRev.CustomSchemaFragmentsGetResponse +## groups + +
client.groups.create({ ...params }) -> DevRev.GroupsCreateResponse
@@ -5279,7 +6063,7 @@ await client.customization.aggregatedSchemaGetPost({
-Gets a custom schema fragment. +Creates a new group. A group is a collection of users.
@@ -5295,8 +6079,9 @@ Gets a custom schema fragment.
```typescript -await client.customization.customSchemaFragmentsGetPost({ - id: "string", +await client.groups.create({ + description: "description", + name: "name", }); ``` @@ -5313,7 +6098,7 @@ await client.customization.customSchemaFragmentsGetPost({
-**request:** `DevRev.CustomSchemaFragmentsGetRequest` +**request:** `DevRev.GroupsCreateRequest`
@@ -5321,7 +6106,7 @@ await client.customization.customSchemaFragmentsGetPost({
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Groups.RequestOptions`
@@ -5332,7 +6117,7 @@ await client.customization.customSchemaFragmentsGetPost({
-
client.customization.customSchemaFragmentsListPost({ ...params }) -> DevRev.CustomSchemaFragmentsListResponse +
client.groups.getPost({ ...params }) -> DevRev.GroupsGetResponse
@@ -5344,7 +6129,7 @@ await client.customization.customSchemaFragmentsGetPost({
-Lists custom schema fragments. +Gets the requested group.
@@ -5360,7 +6145,9 @@ Lists custom schema fragments.
```typescript -await client.customization.customSchemaFragmentsListPost(); +await client.groups.getPost({ + id: "id", +}); ```
@@ -5376,7 +6163,7 @@ await client.customization.customSchemaFragmentsListPost();
-**request:** `DevRev.CustomSchemaFragmentsListRequest` +**request:** `DevRev.GroupsGetRequest`
@@ -5384,7 +6171,7 @@ await client.customization.customSchemaFragmentsListPost();
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Groups.RequestOptions`
@@ -5395,7 +6182,7 @@ await client.customization.customSchemaFragmentsListPost();
-
client.customization.customSchemaFragmentsSet({ ...params }) -> DevRev.CustomSchemaFragmentsSetResponse +
client.groups.listPost({ ...params }) -> DevRev.GroupsListResponse
@@ -5407,7 +6194,7 @@ await client.customization.customSchemaFragmentsListPost();
-Creates or updates a custom schema fragment. +Lists the available groups.
@@ -5423,30 +6210,7 @@ Creates or updates a custom schema fragment.
```typescript -await client.customization.customSchemaFragmentsSet({ - type: "app_fragment", - conditions: [ - { - string: { - key: "value", - }, - }, - ], - deletedFields: ["string"], - deprecated: true, - description: "string", - fields: [ - { - fieldType: "array", - value: { - key: "value", - }, - }, - ], - isCustomLeafType: true, - leafType: "string", - app: "string", -}); +await client.groups.listPost(); ```
@@ -5462,7 +6226,7 @@ await client.customization.customSchemaFragmentsSet({
-**request:** `DevRev.CustomSchemaFragmentsSetRequest` +**request:** `DevRev.GroupsListRequest`
@@ -5470,7 +6234,7 @@ await client.customization.customSchemaFragmentsSet({
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Groups.RequestOptions`
@@ -5481,7 +6245,7 @@ await client.customization.customSchemaFragmentsSet({
-
client.customization.stockSchemaFragmentsGetPost({ ...params }) -> DevRev.StockSchemaFragmentsGetResponse +
client.groups.groupMembersAdd({ ...params }) -> DevRev.GroupMembersAddResponse
@@ -5493,7 +6257,7 @@ await client.customization.customSchemaFragmentsSet({
-Gets a stock schema fragment. +Adds a member to a group.
@@ -5509,7 +6273,10 @@ Gets a stock schema fragment.
```typescript -await client.customization.stockSchemaFragmentsGetPost(); +await client.groups.groupMembersAdd({ + group: "group", + member: "DEVU-12345", +}); ```
@@ -5525,7 +6292,7 @@ await client.customization.stockSchemaFragmentsGetPost();
-**request:** `DevRev.StockSchemaFragmentsGetRequest` +**request:** `DevRev.GroupMembersAddRequest`
@@ -5533,7 +6300,7 @@ await client.customization.stockSchemaFragmentsGetPost();
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Groups.RequestOptions`
@@ -5544,7 +6311,7 @@ await client.customization.stockSchemaFragmentsGetPost();
-
client.customization.stockSchemaFragmentsListPost({ ...params }) -> DevRev.StockSchemaFragmentsListResponse +
client.groups.groupMembersListPost({ ...params }) -> DevRev.GroupMembersListResponse
@@ -5556,7 +6323,7 @@ await client.customization.stockSchemaFragmentsGetPost();
-Lists stock schema fragments. +Lists the members in a group.
@@ -5572,7 +6339,9 @@ Lists stock schema fragments.
```typescript -await client.customization.stockSchemaFragmentsListPost(); +await client.groups.groupMembersListPost({ + group: "group", +}); ```
@@ -5588,7 +6357,7 @@ await client.customization.stockSchemaFragmentsListPost();
-**request:** `DevRev.StockSchemaFragmentsListRequest` +**request:** `DevRev.GroupMembersListRequest`
@@ -5596,7 +6365,7 @@ await client.customization.stockSchemaFragmentsListPost();
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Groups.RequestOptions`
@@ -5607,7 +6376,7 @@ await client.customization.stockSchemaFragmentsListPost();
-
client.customization.subtypesListPost({ ...params }) -> DevRev.SubtypesListResponse +
client.groups.groupMembersRemove({ ...params }) -> DevRev.GroupMembersRemoveResponse
@@ -5619,7 +6388,7 @@ await client.customization.stockSchemaFragmentsListPost();
-Lists subtypes. +Removes a member from a group.
@@ -5635,7 +6404,10 @@ Lists subtypes.
```typescript -await client.customization.subtypesListPost(); +await client.groups.groupMembersRemove({ + group: "group", + member: "DEVU-12345", +}); ```
@@ -5651,7 +6423,7 @@ await client.customization.subtypesListPost();
-**request:** `DevRev.SubtypesListRequest` +**request:** `DevRev.GroupMembersRemoveRequest`
@@ -5659,7 +6431,7 @@ await client.customization.subtypesListPost();
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Groups.RequestOptions`
@@ -5670,7 +6442,7 @@ await client.customization.subtypesListPost();
-
client.customization.customStagesCreate({ ...params }) -> DevRev.CustomStagesCreateResponse +
client.groups.update({ ...params }) -> DevRev.GroupsUpdateResponse
@@ -5682,7 +6454,7 @@ await client.customization.subtypesListPost();
-Creates a custom stage. +Updates the requested group.
@@ -5698,10 +6470,8 @@ Creates a custom stage.
```typescript -await client.customization.customStagesCreate({ - name: "name", - ordinal: 1, - state: "state", +await client.groups.update({ + id: "id", }); ``` @@ -5718,7 +6488,7 @@ await client.customization.customStagesCreate({
-**request:** `DevRev.CustomStagesCreateRequest` +**request:** `DevRev.GroupsUpdateRequest`
@@ -5726,7 +6496,7 @@ await client.customization.customStagesCreate({
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Groups.RequestOptions`
@@ -5737,7 +6507,9 @@ await client.customization.customStagesCreate({
-
client.customization.customStagesGetPost({ ...params }) -> DevRev.CustomStagesGetResponse +## operate + +
client.operate.incidentsCreate({ ...params }) -> DevRev.IncidentsCreateResponse
@@ -5749,7 +6521,7 @@ await client.customization.customStagesCreate({
-Gets a custom stage. +Creates an incident.
@@ -5765,8 +6537,8 @@ Gets a custom stage.
```typescript -await client.customization.customStagesGetPost({ - id: "id", +await client.operate.incidentsCreate({ + title: "title", }); ``` @@ -5783,7 +6555,7 @@ await client.customization.customStagesGetPost({
-**request:** `DevRev.CustomStagesGetRequest` +**request:** `DevRev.IncidentsCreateRequest`
@@ -5791,7 +6563,7 @@ await client.customization.customStagesGetPost({
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Operate.RequestOptions`
@@ -5802,7 +6574,7 @@ await client.customization.customStagesGetPost({
-
client.customization.customStagesListPost({ ...params }) -> DevRev.CustomStagesListResponse +
client.operate.incidentsDelete({ ...params }) -> DevRev.IncidentsDeleteResponse
@@ -5814,7 +6586,7 @@ await client.customization.customStagesGetPost({
-Lists custom stages. +Deletes an incident.
@@ -5830,7 +6602,9 @@ Lists custom stages.
```typescript -await client.customization.customStagesListPost(); +await client.operate.incidentsDelete({ + id: "id", +}); ```
@@ -5846,7 +6620,7 @@ await client.customization.customStagesListPost();
-**request:** `DevRev.CustomStagesListRequest` +**request:** `DevRev.IncidentsDeleteRequest`
@@ -5854,7 +6628,7 @@ await client.customization.customStagesListPost();
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Operate.RequestOptions`
@@ -5865,7 +6639,7 @@ await client.customization.customStagesListPost();
-
client.customization.customStagesUpdate({ ...params }) -> DevRev.CustomStagesUpdateResponse +
client.operate.incidentsGetPost({ ...params }) -> DevRev.IncidentsGetResponse
@@ -5877,7 +6651,7 @@ await client.customization.customStagesListPost();
-Updates a custom stage. +Gets an incident.
@@ -5893,7 +6667,7 @@ Updates a custom stage.
```typescript -await client.customization.customStagesUpdate({ +await client.operate.incidentsGetPost({ id: "id", }); ``` @@ -5911,7 +6685,7 @@ await client.customization.customStagesUpdate({
-**request:** `DevRev.CustomStagesUpdateRequest` +**request:** `DevRev.IncidentsGetRequest`
@@ -5919,7 +6693,7 @@ await client.customization.customStagesUpdate({
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Operate.RequestOptions`
@@ -5930,7 +6704,7 @@ await client.customization.customStagesUpdate({
-
client.customization.customStatesCreate({ ...params }) -> DevRev.CustomStatesCreateResponse +
client.operate.incidentsGroupPost({ ...params }) -> DevRev.IncidentsGroupResponse
@@ -5942,7 +6716,7 @@ await client.customization.customStagesUpdate({
-Creates a custom state. +Lists collections of incidents by groups.
@@ -5958,9 +6732,8 @@ Creates a custom state.
```typescript -await client.customization.customStatesCreate({ - name: "name", - ordinal: 1, +await client.operate.incidentsGroupPost({ + groupBy: "group_by", }); ``` @@ -5977,7 +6750,7 @@ await client.customization.customStatesCreate({
-**request:** `DevRev.CustomStatesCreateRequest` +**request:** `DevRev.IncidentsGroupRequest`
@@ -5985,7 +6758,7 @@ await client.customization.customStatesCreate({
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Operate.RequestOptions`
@@ -5996,7 +6769,7 @@ await client.customization.customStatesCreate({
-
client.customization.customStatesGetPost({ ...params }) -> DevRev.CustomStatesGetResponse +
client.operate.incidentsListPost({ ...params }) -> DevRev.IncidentsListResponse
@@ -6008,7 +6781,7 @@ await client.customization.customStatesCreate({
-Gets a custom state. +Lists incidents.
@@ -6024,9 +6797,7 @@ Gets a custom state.
```typescript -await client.customization.customStatesGetPost({ - id: "id", -}); +await client.operate.incidentsListPost(); ```
@@ -6042,7 +6813,7 @@ await client.customization.customStatesGetPost({
-**request:** `DevRev.CustomStatesGetRequest` +**request:** `DevRev.IncidentsListRequest`
@@ -6050,7 +6821,7 @@ await client.customization.customStatesGetPost({
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Operate.RequestOptions`
@@ -6061,7 +6832,7 @@ await client.customization.customStatesGetPost({
-
client.customization.customStatesListPost({ ...params }) -> DevRev.CustomStatesListResponse +
client.operate.incidentsUpdate({ ...params }) -> DevRev.IncidentsUpdateResponse
@@ -6073,7 +6844,7 @@ await client.customization.customStatesGetPost({
-Lists custom states. +Updates an incident.
@@ -6089,7 +6860,9 @@ Lists custom states.
```typescript -await client.customization.customStatesListPost(); +await client.operate.incidentsUpdate({ + id: "id", +}); ```
@@ -6105,7 +6878,7 @@ await client.customization.customStatesListPost();
-**request:** `DevRev.CustomStatesListRequest` +**request:** `DevRev.IncidentsUpdateRequest`
@@ -6113,7 +6886,7 @@ await client.customization.customStatesListPost();
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Operate.RequestOptions`
@@ -6124,7 +6897,9 @@ await client.customization.customStatesListPost();
-
client.customization.customStatesUpdate({ ...params }) -> DevRev.CustomStatesUpdateResponse +## keyring + +
client.keyring.keyringsCreateCallbackPost({ ...params }) -> void
@@ -6136,7 +6911,7 @@ await client.customization.customStatesListPost();
-Updates a custom state. +OAuth2 authorization callback.
@@ -6152,8 +6927,9 @@ Updates a custom state.
```typescript -await client.customization.customStatesUpdate({ - id: "id", +await client.keyring.keyringsCreateCallbackPost({ + code: "code", + state: "state", }); ``` @@ -6170,7 +6946,7 @@ await client.customization.customStatesUpdate({
-**request:** `DevRev.CustomStatesUpdateRequest` +**request:** `DevRev.KeyringsCreateCallbackRequest`
@@ -6178,7 +6954,7 @@ await client.customization.customStatesUpdate({
-**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `Keyring.RequestOptions`
@@ -6583,6 +7359,69 @@ await client.slas.slaTrackersGetPost({
+
client.slas.slaTrackersListPost({ ...params }) -> DevRev.SlaTrackersListResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Lists SLA trackers matching a filter. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.slas.slaTrackersListPost(); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.SlaTrackersListRequest` + +
+
+ +
+
+ +**requestOptions:** `Slas.RequestOptions` + +
+
+
+
+ +
+
+
+
client.slas.assign({ ...params }) -> DevRev.SlasAssignResponse
@@ -9447,6 +10286,72 @@ await client.revUsers.listPost();
+
client.revUsers.merge({ ...params }) -> DevRev.RevUsersMergeResponse +
+
+ +#### 📝 Description + +
+
+ +
+
+ +Merges the secondary Rev user into the primary Rev user. + +
+
+
+
+ +#### 🔌 Usage + +
+
+ +
+
+ +```typescript +await client.revUsers.merge({ + primaryUser: "primary_user", + secondaryUser: "secondary_user", +}); +``` + +
+
+
+
+ +#### ⚙️ Parameters + +
+
+ +
+
+ +**request:** `DevRev.RevUsersMergeRequest` + +
+
+ +
+
+ +**requestOptions:** `RevUsers.RequestOptions` + +
+
+
+
+ +
+
+
+
client.revUsers.scanPost({ ...params }) -> DevRev.RevUsersScanResponse
diff --git a/src/Client.ts b/src/Client.ts index 7fe99f3..2be83f3 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -11,14 +11,15 @@ import { AuthTokens } from "./api/resources/authTokens/client/Client"; import { CodeChanges } from "./api/resources/codeChanges/client/Client"; import { Notifications } from "./api/resources/notifications/client/Client"; import { Conversations } from "./api/resources/conversations/client/Client"; +import { Customization } from "./api/resources/customization/client/Client"; import { AuthConnection } from "./api/resources/authConnection/client/Client"; import { DevUsers } from "./api/resources/devUsers/client/Client"; +import { Directory } from "./api/resources/directory/client/Client"; import { Engagements } from "./api/resources/engagements/client/Client"; import { EventSource } from "./api/resources/eventSource/client/Client"; import { Groups } from "./api/resources/groups/client/Client"; import { Operate } from "./api/resources/operate/client/Client"; import { Keyring } from "./api/resources/keyring/client/Client"; -import { Customization } from "./api/resources/customization/client/Client"; import { Links } from "./api/resources/links/client/Client"; import { Slas } from "./api/resources/slas/client/Client"; import { ProductUsage } from "./api/resources/productUsage/client/Client"; @@ -105,6 +106,12 @@ export class DevRevClient { return (this._conversations ??= new Conversations(this._options)); } + protected _customization: Customization | undefined; + + public get customization(): Customization { + return (this._customization ??= new Customization(this._options)); + } + protected _authConnection: AuthConnection | undefined; public get authConnection(): AuthConnection { @@ -117,6 +124,12 @@ export class DevRevClient { return (this._devUsers ??= new DevUsers(this._options)); } + protected _directory: Directory | undefined; + + public get directory(): Directory { + return (this._directory ??= new Directory(this._options)); + } + protected _engagements: Engagements | undefined; public get engagements(): Engagements { @@ -147,12 +160,6 @@ export class DevRevClient { return (this._keyring ??= new Keyring(this._options)); } - protected _customization: Customization | undefined; - - public get customization(): Customization { - return (this._customization ??= new Customization(this._options)); - } - protected _links: Links | undefined; public get links(): Links { diff --git a/src/api/resources/accounts/client/Client.ts b/src/api/resources/accounts/client/Client.ts index bbeab6c..ae74319 100644 --- a/src/api/resources/accounts/client/Client.ts +++ b/src/api/resources/accounts/client/Client.ts @@ -70,7 +70,7 @@ export class Accounts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -220,7 +220,7 @@ export class Accounts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -367,7 +367,7 @@ export class Accounts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -507,7 +507,7 @@ export class Accounts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -655,7 +655,7 @@ export class Accounts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -806,7 +806,7 @@ export class Accounts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/articles/client/Client.ts b/src/api/resources/articles/client/Client.ts index 11ee4be..53dd888 100644 --- a/src/api/resources/articles/client/Client.ts +++ b/src/api/resources/articles/client/Client.ts @@ -66,7 +66,7 @@ export class Articles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -210,7 +210,7 @@ export class Articles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -350,7 +350,7 @@ export class Articles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -500,7 +500,7 @@ export class Articles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -647,7 +647,7 @@ export class Articles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -787,7 +787,7 @@ export class Articles { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/artifacts/client/Client.ts b/src/api/resources/artifacts/client/Client.ts index 0e44797..eda398a 100644 --- a/src/api/resources/artifacts/client/Client.ts +++ b/src/api/resources/artifacts/client/Client.ts @@ -69,7 +69,7 @@ export class Artifacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -217,7 +217,7 @@ export class Artifacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -367,7 +367,7 @@ export class Artifacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -516,7 +516,7 @@ export class Artifacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -656,7 +656,7 @@ export class Artifacts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/authConnection/client/Client.ts b/src/api/resources/authConnection/client/Client.ts index ef8bb12..b4b40b7 100644 --- a/src/api/resources/authConnection/client/Client.ts +++ b/src/api/resources/authConnection/client/Client.ts @@ -77,7 +77,7 @@ export class AuthConnection { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -221,7 +221,7 @@ export class AuthConnection { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -367,7 +367,7 @@ export class AuthConnection { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -519,7 +519,7 @@ export class AuthConnection { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -663,7 +663,7 @@ export class AuthConnection { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -814,7 +814,7 @@ export class AuthConnection { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/authTokens/client/Client.ts b/src/api/resources/authTokens/client/Client.ts index 18ddb44..0bd4eb1 100644 --- a/src/api/resources/authTokens/client/Client.ts +++ b/src/api/resources/authTokens/client/Client.ts @@ -68,7 +68,7 @@ export class AuthTokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -217,7 +217,7 @@ export class AuthTokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -362,7 +362,7 @@ export class AuthTokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -511,7 +511,7 @@ export class AuthTokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -660,7 +660,7 @@ export class AuthTokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -806,7 +806,7 @@ export class AuthTokens { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/codeChanges/client/Client.ts b/src/api/resources/codeChanges/client/Client.ts index e937348..affff13 100644 --- a/src/api/resources/codeChanges/client/Client.ts +++ b/src/api/resources/codeChanges/client/Client.ts @@ -66,7 +66,7 @@ export class CodeChanges { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -205,7 +205,7 @@ export class CodeChanges { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -344,7 +344,7 @@ export class CodeChanges { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -481,7 +481,7 @@ export class CodeChanges { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -620,7 +620,7 @@ export class CodeChanges { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/conversations/client/Client.ts b/src/api/resources/conversations/client/Client.ts index 9004ee0..c506bb1 100644 --- a/src/api/resources/conversations/client/Client.ts +++ b/src/api/resources/conversations/client/Client.ts @@ -68,7 +68,7 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -211,7 +211,7 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -358,7 +358,7 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -498,7 +498,7 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -645,7 +645,7 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -785,7 +785,7 @@ export class Conversations { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/conversations/client/requests/ConversationsCreateRequest.ts b/src/api/resources/conversations/client/requests/ConversationsCreateRequest.ts index 78978f1..f0a73cf 100644 --- a/src/api/resources/conversations/client/requests/ConversationsCreateRequest.ts +++ b/src/api/resources/conversations/client/requests/ConversationsCreateRequest.ts @@ -22,6 +22,8 @@ export interface ConversationsCreateRequest { /** Initial messages on the conversation. */ messages?: DevRev.ConversationsCreateRequestMessage[]; metadata?: DevRev.ConversationsCreateRequestMetadata; + /** The users that own the conversation. */ + ownedBy?: string[]; /** Whether the conversation is from a source channel. */ sourceChannel?: string; stage?: DevRev.StageInit; diff --git a/src/api/resources/conversations/client/requests/ConversationsUpdateRequest.ts b/src/api/resources/conversations/client/requests/ConversationsUpdateRequest.ts index 3c9d4a1..a7f2fd5 100644 --- a/src/api/resources/conversations/client/requests/ConversationsUpdateRequest.ts +++ b/src/api/resources/conversations/client/requests/ConversationsUpdateRequest.ts @@ -21,6 +21,7 @@ export interface ConversationsUpdateRequest { /** Whether the conversation is spam. */ isSpam?: boolean; metadata?: DevRev.ConversationsUpdateRequestMetadata; + ownedBy?: DevRev.ConversationsUpdateRequestOwnedBy; stage?: DevRev.StageUpdate; /** The updated status of the conversation. */ status?: string; diff --git a/src/api/resources/customization/client/Client.ts b/src/api/resources/customization/client/Client.ts index d580265..0587898 100644 --- a/src/api/resources/customization/client/Client.ts +++ b/src/api/resources/customization/client/Client.ts @@ -36,6 +36,861 @@ export declare namespace Customization { export class Customization { constructor(protected readonly _options: Customization.Options = {}) {} + /** + * Counts custom objects. + * + * @param {DevRev.CustomObjectsCountRequest} request + * @param {Customization.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.customization.customObjectsCountPost({ + * leafType: "leaf_type" + * }) + */ + public async customObjectsCountPost( + request: DevRev.CustomObjectsCountRequest, + requestOptions?: Customization.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "custom-objects.count" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.CustomObjectsCountRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.CustomObjectsCountResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Creates a custom object. + * + * @param {DevRev.CustomObjectsCreateRequest} request + * @param {Customization.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.customization.customObjectsCreate({ + * leafType: "leaf_type", + * uniqueKey: "unique_key" + * }) + */ + public async customObjectsCreate( + request: DevRev.CustomObjectsCreateRequest, + requestOptions?: Customization.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "custom-objects.create" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.CustomObjectsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.CustomObjectsCreateResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Deletes a custom object. + * + * @param {DevRev.CustomObjectsDeleteRequest} request + * @param {Customization.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.customization.customObjectsDelete({ + * id: "id" + * }) + */ + public async customObjectsDelete( + request: DevRev.CustomObjectsDeleteRequest, + requestOptions?: Customization.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "custom-objects.delete" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.CustomObjectsDeleteRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.CustomObjectsDeleteResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Gets a custom object. + * + * @param {DevRev.CustomObjectsGetRequest} request + * @param {Customization.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.NotFoundError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.customization.customObjectsGetPost() + */ + public async customObjectsGetPost( + request: DevRev.CustomObjectsGetRequest = {}, + requestOptions?: Customization.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "custom-objects.get" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.CustomObjectsGetRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.CustomObjectsGetResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 404: + throw new DevRev.NotFoundError( + serializers.ErrorNotFound.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Lists custom objects. + * + * @param {DevRev.CustomObjectsListRequest} request + * @param {Customization.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.customization.customObjectsListPost({ + * leafType: "leaf_type" + * }) + */ + public async customObjectsListPost( + request: DevRev.CustomObjectsListRequest, + requestOptions?: Customization.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "custom-objects.list" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.CustomObjectsListRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.CustomObjectsListResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Updates a custom object. + * + * @param {DevRev.CustomObjectsUpdateRequest} request + * @param {Customization.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.NotFoundError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.customization.customObjectsUpdate({ + * id: "id" + * }) + */ + public async customObjectsUpdate( + request: DevRev.CustomObjectsUpdateRequest, + requestOptions?: Customization.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "custom-objects.update" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.CustomObjectsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.CustomObjectsUpdateResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 404: + throw new DevRev.NotFoundError( + serializers.ErrorNotFound.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + /** * Creates a custom link type. * @@ -76,7 +931,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -216,7 +1071,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -363,7 +1218,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -503,7 +1358,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -653,7 +1508,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -803,7 +1658,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -950,7 +1805,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1108,7 +1963,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1246,7 +2101,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1393,7 +2248,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1530,7 +2385,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1671,7 +2526,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1811,7 +2666,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1958,7 +2813,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -2098,7 +2953,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -2248,7 +3103,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -2388,7 +3243,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -2535,7 +3390,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -2675,7 +3530,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/customization/client/requests/CustomObjectsCountRequest.ts b/src/api/resources/customization/client/requests/CustomObjectsCountRequest.ts new file mode 100644 index 0000000..b770ca0 --- /dev/null +++ b/src/api/resources/customization/client/requests/CustomObjectsCountRequest.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * leafType: "leaf_type" + * } + */ +export interface CustomObjectsCountRequest { + /** List of filters to apply. */ + filters?: unknown[]; + /** Leaf type to filter. */ + leafType: string; +} diff --git a/src/api/resources/customization/client/requests/CustomObjectsCreateRequest.ts b/src/api/resources/customization/client/requests/CustomObjectsCreateRequest.ts new file mode 100644 index 0000000..983d7b3 --- /dev/null +++ b/src/api/resources/customization/client/requests/CustomObjectsCreateRequest.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../../../../index"; + +/** + * @example + * { + * leafType: "leaf_type", + * uniqueKey: "unique_key" + * } + */ +export interface CustomObjectsCreateRequest { + /** Custom fields of the custom object. */ + customFields?: Record; + customSchemaSpec?: DevRev.CustomSchemaSpec; + /** Leaf type of the custom object. */ + leafType: string; + /** The stage of the custom object. */ + stage?: string; + /** + * The type of stage validations options when creating a custom + * object. + * + */ + stageValidationOptions?: DevRev.StageValidationOptionForCreate[]; + /** Title of the custom object. */ + title?: string; + /** + * The unique key of the custom object.This can be used to hold an + * external reference to another object. + * + */ + uniqueKey: string; +} diff --git a/src/api/resources/customization/client/requests/CustomObjectsDeleteRequest.ts b/src/api/resources/customization/client/requests/CustomObjectsDeleteRequest.ts new file mode 100644 index 0000000..3752747 --- /dev/null +++ b/src/api/resources/customization/client/requests/CustomObjectsDeleteRequest.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * id: "id" + * } + */ +export interface CustomObjectsDeleteRequest { + /** The ID of the custom object to get. */ + id: string; +} diff --git a/src/api/resources/customization/client/requests/CustomObjectsGetRequest.ts b/src/api/resources/customization/client/requests/CustomObjectsGetRequest.ts new file mode 100644 index 0000000..9d97e7f --- /dev/null +++ b/src/api/resources/customization/client/requests/CustomObjectsGetRequest.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface CustomObjectsGetRequest { + /** The ID of the custom object to get. */ + id?: string; +} diff --git a/src/api/resources/customization/client/requests/CustomObjectsListRequest.ts b/src/api/resources/customization/client/requests/CustomObjectsListRequest.ts new file mode 100644 index 0000000..507a400 --- /dev/null +++ b/src/api/resources/customization/client/requests/CustomObjectsListRequest.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../../../../index"; + +/** + * @example + * { + * leafType: "leaf_type" + * } + */ +export interface CustomObjectsListRequest { + /** + * The cursor to resume iteration from. If not provided, then + * iteration starts from the beginning. + * + */ + cursor?: string; + /** List of filters to apply. */ + filter?: unknown[]; + /** Leaf type to filter. */ + leafType: string; + /** The maximum number of items. */ + limit?: number; + mode?: DevRev.ListMode; + /** + * The list of fields to sort the items by and how to sort them. + * + */ + sortBy?: string[]; +} diff --git a/src/api/resources/customization/client/requests/CustomObjectsUpdateRequest.ts b/src/api/resources/customization/client/requests/CustomObjectsUpdateRequest.ts new file mode 100644 index 0000000..dd23930 --- /dev/null +++ b/src/api/resources/customization/client/requests/CustomObjectsUpdateRequest.ts @@ -0,0 +1,29 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../../../../index"; + +/** + * @example + * { + * id: "id" + * } + */ +export interface CustomObjectsUpdateRequest { + /** Custom fields of the custom object. */ + customFields?: Record; + customSchemaSpec?: DevRev.CustomSchemaSpec; + /** The ID of the custom object to update. */ + id: string; + /** Updates the stage of the custom object. */ + stage?: string; + /** + * The type of stage validations options when updating the stage of a + * custom object. + * + */ + stageValidationOptions?: DevRev.StageValidationOptionForUpdate[]; + /** Updates the title of the custom object. */ + title?: string; +} diff --git a/src/api/resources/customization/client/requests/CustomSchemaFragmentsListRequest.ts b/src/api/resources/customization/client/requests/CustomSchemaFragmentsListRequest.ts index 904c586..cf8325e 100644 --- a/src/api/resources/customization/client/requests/CustomSchemaFragmentsListRequest.ts +++ b/src/api/resources/customization/client/requests/CustomSchemaFragmentsListRequest.ts @@ -19,6 +19,8 @@ export interface CustomSchemaFragmentsListRequest { cursor?: string; /** Whether only deprecated fragments should be filtered. */ deprecated?: boolean; + /** Whether the leaf type corresponds to a custom object */ + isCustomLeafType?: boolean; /** The list of leaf types. */ leafType?: string[]; /** The maximum number of items. */ diff --git a/src/api/resources/customization/client/requests/index.ts b/src/api/resources/customization/client/requests/index.ts index 12fa924..6f1be55 100644 --- a/src/api/resources/customization/client/requests/index.ts +++ b/src/api/resources/customization/client/requests/index.ts @@ -1,3 +1,9 @@ +export { type CustomObjectsCountRequest } from "./CustomObjectsCountRequest"; +export { type CustomObjectsCreateRequest } from "./CustomObjectsCreateRequest"; +export { type CustomObjectsDeleteRequest } from "./CustomObjectsDeleteRequest"; +export { type CustomObjectsGetRequest } from "./CustomObjectsGetRequest"; +export { type CustomObjectsListRequest } from "./CustomObjectsListRequest"; +export { type CustomObjectsUpdateRequest } from "./CustomObjectsUpdateRequest"; export { type CustomLinkTypeCreateRequest } from "./CustomLinkTypeCreateRequest"; export { type CustomLinkTypeGetRequest } from "./CustomLinkTypeGetRequest"; export { type CustomLinkTypeListRequest } from "./CustomLinkTypeListRequest"; diff --git a/src/api/resources/devUsers/client/Client.ts b/src/api/resources/devUsers/client/Client.ts index faf130b..22c95f6 100644 --- a/src/api/resources/devUsers/client/Client.ts +++ b/src/api/resources/devUsers/client/Client.ts @@ -69,7 +69,7 @@ export class DevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -221,7 +221,7 @@ export class DevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -372,7 +372,7 @@ export class DevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -519,7 +519,7 @@ export class DevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -658,7 +658,7 @@ export class DevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -795,7 +795,7 @@ export class DevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -934,7 +934,7 @@ export class DevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/directory/client/Client.ts b/src/api/resources/directory/client/Client.ts new file mode 100644 index 0000000..00553cc --- /dev/null +++ b/src/api/resources/directory/client/Client.ts @@ -0,0 +1,912 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as environments from "../../../../environments"; +import * as core from "../../../../core"; +import * as DevRev from "../../../index"; +import * as serializers from "../../../../serialization/index"; +import urlJoin from "url-join"; +import * as errors from "../../../../errors/index"; + +export declare namespace Directory { + interface Options { + environment?: core.Supplier; + token?: core.Supplier; + /** Override the x-devrev-version header */ + xDevrevVersion?: "2024-01-24"; + fetcher?: core.FetchFunction; + } + + interface RequestOptions { + /** The maximum time to wait for a response in seconds. */ + timeoutInSeconds?: number; + /** The number of times to retry the request. Defaults to 2. */ + maxRetries?: number; + /** A hook to abort the request. */ + abortSignal?: AbortSignal; + /** Override the x-devrev-version header */ + xDevrevVersion?: "2024-01-24"; + } +} + +/** + * Directory APIs + */ +export class Directory { + constructor(protected readonly _options: Directory.Options = {}) {} + + /** + * Get count of directories matching given filter. + * + * @param {DevRev.DirectoriesCountRequest} request + * @param {Directory.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.directory.directoriesCountPost() + */ + public async directoriesCountPost( + request: DevRev.DirectoriesCountRequest = {}, + requestOptions?: Directory.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "directories.count" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.DirectoriesCountRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.DirectoriesCountResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Creates a directory for the specified inputs. + * + * @param {DevRev.DirectoriesCreateRequest} request + * @param {Directory.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.directory.directoriesCreate({ + * title: "title" + * }) + */ + public async directoriesCreate( + request: DevRev.DirectoriesCreateRequest, + requestOptions?: Directory.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "directories.create" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.DirectoriesCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.DirectoriesCreateResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Delete the specified directory. + * + * @param {DevRev.DirectoriesDeleteRequest} request + * @param {Directory.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.NotFoundError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.directory.directoriesDelete({ + * id: "id" + * }) + */ + public async directoriesDelete( + request: DevRev.DirectoriesDeleteRequest, + requestOptions?: Directory.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "directories.delete" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.DirectoriesDeleteRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.DirectoriesDeleteResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 404: + throw new DevRev.NotFoundError( + serializers.ErrorNotFound.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Gets the specified directory. + * + * @param {DevRev.DirectoriesGetRequest} request + * @param {Directory.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.NotFoundError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.directory.directoriesGetPost({ + * id: "id" + * }) + */ + public async directoriesGetPost( + request: DevRev.DirectoriesGetRequest, + requestOptions?: Directory.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "directories.get" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.DirectoriesGetRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.DirectoriesGetResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 404: + throw new DevRev.NotFoundError( + serializers.ErrorNotFound.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Lists directories matching the request. + * + * @param {DevRev.DirectoriesListRequest} request + * @param {Directory.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.directory.directoriesListPost() + */ + public async directoriesListPost( + request: DevRev.DirectoriesListRequest = {}, + requestOptions?: Directory.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "directories.list" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.DirectoriesListRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.DirectoriesListResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + + /** + * Updates the specified directory. + * + * @param {DevRev.DirectoriesUpdateRequest} request + * @param {Directory.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.NotFoundError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.directory.directoriesUpdate({ + * id: "id" + * }) + */ + public async directoriesUpdate( + request: DevRev.DirectoriesUpdateRequest, + requestOptions?: Directory.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "directories.update" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.DirectoriesUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.DirectoriesUpdateResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 404: + throw new DevRev.NotFoundError( + serializers.ErrorNotFound.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + + protected async _getAuthorizationHeader(): Promise { + const bearer = (await core.Supplier.get(this._options.token)) ?? process?.env["DEVREV_TOKEN"]; + if (bearer == null) { + throw new errors.DevRevError({ + message: "Please specify DEVREV_TOKEN when instantiating the client.", + }); + } + + return `Bearer ${bearer}`; + } +} diff --git a/src/api/resources/directory/client/index.ts b/src/api/resources/directory/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/api/resources/directory/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/api/resources/directory/client/requests/DirectoriesCountRequest.ts b/src/api/resources/directory/client/requests/DirectoriesCountRequest.ts new file mode 100644 index 0000000..83a93b6 --- /dev/null +++ b/src/api/resources/directory/client/requests/DirectoriesCountRequest.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface DirectoriesCountRequest { + /** + * Filters for directories created by any of the provided users. + * + */ + createdBy?: string[]; + /** + * Filters for directories modified by any of the provided users. + * + */ + modifiedBy?: string[]; +} diff --git a/src/api/resources/directory/client/requests/DirectoriesCreateRequest.ts b/src/api/resources/directory/client/requests/DirectoriesCreateRequest.ts new file mode 100644 index 0000000..12db9be --- /dev/null +++ b/src/api/resources/directory/client/requests/DirectoriesCreateRequest.ts @@ -0,0 +1,28 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../../../../index"; + +/** + * @example + * { + * title: "title" + * } + */ +export interface DirectoriesCreateRequest { + /** Description for the directory. */ + description?: string; + /** Icon for the directory. */ + icon?: string; + /** Parent directory of the directory. */ + parent?: string; + /** Whether the directory is published. */ + published?: boolean; + /** Tags associated with the directory. */ + tags?: DevRev.SetTagWithValue[]; + /** ID of the thumbnail artifact. */ + thumbnail?: string; + /** Title of the directory. */ + title: string; +} diff --git a/src/api/resources/directory/client/requests/DirectoriesDeleteRequest.ts b/src/api/resources/directory/client/requests/DirectoriesDeleteRequest.ts new file mode 100644 index 0000000..d22d6f8 --- /dev/null +++ b/src/api/resources/directory/client/requests/DirectoriesDeleteRequest.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * id: "id" + * } + */ +export interface DirectoriesDeleteRequest { + /** The ID of the directory to delete. */ + id: string; +} diff --git a/src/api/resources/directory/client/requests/DirectoriesGetRequest.ts b/src/api/resources/directory/client/requests/DirectoriesGetRequest.ts new file mode 100644 index 0000000..2b80e25 --- /dev/null +++ b/src/api/resources/directory/client/requests/DirectoriesGetRequest.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * id: "id" + * } + */ +export interface DirectoriesGetRequest { + /** The ID of the requested directory. */ + id: string; +} diff --git a/src/api/resources/directory/client/requests/DirectoriesListRequest.ts b/src/api/resources/directory/client/requests/DirectoriesListRequest.ts new file mode 100644 index 0000000..f08db09 --- /dev/null +++ b/src/api/resources/directory/client/requests/DirectoriesListRequest.ts @@ -0,0 +1,34 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../../../../index"; + +/** + * @example + * {} + */ +export interface DirectoriesListRequest { + /** + * Filters for directories created by any of the provided users. + * + */ + createdBy?: string[]; + /** + * The cursor to resume iteration from. If not provided, then + * iteration starts from the beginning. + * + */ + cursor?: string; + /** + * The maximum number of directories to return. The default is '50'. + * + */ + limit?: number; + mode?: DevRev.ListMode; + /** + * Filters for directories modified by any of the provided users. + * + */ + modifiedBy?: string[]; +} diff --git a/src/api/resources/directory/client/requests/DirectoriesUpdateRequest.ts b/src/api/resources/directory/client/requests/DirectoriesUpdateRequest.ts new file mode 100644 index 0000000..034a8e9 --- /dev/null +++ b/src/api/resources/directory/client/requests/DirectoriesUpdateRequest.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../../../../index"; + +/** + * @example + * { + * id: "id" + * } + */ +export interface DirectoriesUpdateRequest { + /** The updated description for the directory. */ + description?: string; + /** The updated icon for the directory. */ + icon?: string; + /** The ID of the directory to update. */ + id: string; + /** The updated parent directory for the directory. */ + parent?: string; + /** Whether the directory is published. */ + published?: boolean; + reorder?: DevRev.DirectoriesUpdateRequestReorder; + tags?: DevRev.DirectoriesUpdateRequestTags; + /** ID of the thumbnail artifact. */ + thumbnail?: string; + /** The updated title for the directory. */ + title?: string; +} diff --git a/src/api/resources/directory/client/requests/index.ts b/src/api/resources/directory/client/requests/index.ts new file mode 100644 index 0000000..fd0316f --- /dev/null +++ b/src/api/resources/directory/client/requests/index.ts @@ -0,0 +1,6 @@ +export { type DirectoriesCountRequest } from "./DirectoriesCountRequest"; +export { type DirectoriesCreateRequest } from "./DirectoriesCreateRequest"; +export { type DirectoriesDeleteRequest } from "./DirectoriesDeleteRequest"; +export { type DirectoriesGetRequest } from "./DirectoriesGetRequest"; +export { type DirectoriesListRequest } from "./DirectoriesListRequest"; +export { type DirectoriesUpdateRequest } from "./DirectoriesUpdateRequest"; diff --git a/src/api/resources/directory/index.ts b/src/api/resources/directory/index.ts new file mode 100644 index 0000000..5ec7692 --- /dev/null +++ b/src/api/resources/directory/index.ts @@ -0,0 +1 @@ +export * from "./client"; diff --git a/src/api/resources/engagements/client/Client.ts b/src/api/resources/engagements/client/Client.ts index 1a29419..8a32ff2 100644 --- a/src/api/resources/engagements/client/Client.ts +++ b/src/api/resources/engagements/client/Client.ts @@ -66,7 +66,7 @@ export class Engagements { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -189,7 +189,6 @@ export class Engagements { * @example * await client.engagements.create({ * members: ["DEVU-12345"], - * parent: "ACC-12345", * scheduledDate: new Date("2023-01-01T12:00:00.000Z"), * title: "title" * }) @@ -208,7 +207,7 @@ export class Engagements { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -348,7 +347,7 @@ export class Engagements { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -498,7 +497,7 @@ export class Engagements { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -645,7 +644,7 @@ export class Engagements { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -785,7 +784,7 @@ export class Engagements { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/engagements/client/requests/EngagementsCreateRequest.ts b/src/api/resources/engagements/client/requests/EngagementsCreateRequest.ts index ff8d60f..7f013ac 100644 --- a/src/api/resources/engagements/client/requests/EngagementsCreateRequest.ts +++ b/src/api/resources/engagements/client/requests/EngagementsCreateRequest.ts @@ -8,7 +8,6 @@ import * as DevRev from "../../../../index"; * @example * { * members: ["DEVU-12345"], - * parent: "ACC-12345", * scheduledDate: new Date("2023-01-01T12:00:00.000Z"), * title: "title" * } @@ -33,7 +32,13 @@ export interface EngagementsCreateRequest { * Currently, only accounts and opportunities are supported. * */ - parent: string; + parent?: string; + /** + * The parent object IDs to which the engagement is associated. + * Currently, only accounts and opportunities are supported. + * + */ + parents?: string[]; /** The date and time when the engagement was scheduled. */ scheduledDate: Date; /** Tags associated with the engagement. */ diff --git a/src/api/resources/engagements/client/requests/EngagementsUpdateRequest.ts b/src/api/resources/engagements/client/requests/EngagementsUpdateRequest.ts index d96f521..5669b06 100644 --- a/src/api/resources/engagements/client/requests/EngagementsUpdateRequest.ts +++ b/src/api/resources/engagements/client/requests/EngagementsUpdateRequest.ts @@ -21,6 +21,7 @@ export interface EngagementsUpdateRequest { /** The engagement ID. */ id: string; members?: DevRev.EngagementsUpdateRequestMembers; + parents?: DevRev.EngagementsUpdateRequestParents; /** * Updates the date and time when the engagement was scheduled. * diff --git a/src/api/resources/eventSource/client/Client.ts b/src/api/resources/eventSource/client/Client.ts index 428c520..7fc5760 100644 --- a/src/api/resources/eventSource/client/Client.ts +++ b/src/api/resources/eventSource/client/Client.ts @@ -69,7 +69,7 @@ export class EventSource { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -221,7 +221,7 @@ export class EventSource { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -374,7 +374,7 @@ export class EventSource { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -524,7 +524,7 @@ export class EventSource { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/groups/client/Client.ts b/src/api/resources/groups/client/Client.ts index 62d1ca3..3c968cb 100644 --- a/src/api/resources/groups/client/Client.ts +++ b/src/api/resources/groups/client/Client.ts @@ -69,7 +69,7 @@ export class Groups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -209,7 +209,7 @@ export class Groups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -356,7 +356,7 @@ export class Groups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -497,7 +497,7 @@ export class Groups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -646,7 +646,7 @@ export class Groups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -787,7 +787,7 @@ export class Groups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -937,7 +937,7 @@ export class Groups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 05f4283..1d4cc60 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -5,14 +5,15 @@ export * as authTokens from "./authTokens"; export * as codeChanges from "./codeChanges"; export * as notifications from "./notifications"; export * as conversations from "./conversations"; +export * as customization from "./customization"; export * as authConnection from "./authConnection"; export * as devUsers from "./devUsers"; +export * as directory from "./directory"; export * as engagements from "./engagements"; export * as eventSource from "./eventSource"; export * as groups from "./groups"; export * as operate from "./operate"; export * as keyring from "./keyring"; -export * as customization from "./customization"; export * as links from "./links"; export * as slas from "./slas"; export * as productUsage from "./productUsage"; @@ -39,14 +40,15 @@ export * from "./authTokens/client/requests"; export * from "./codeChanges/client/requests"; export * from "./notifications/client/requests"; export * from "./conversations/client/requests"; +export * from "./customization/client/requests"; export * from "./authConnection/client/requests"; export * from "./devUsers/client/requests"; +export * from "./directory/client/requests"; export * from "./engagements/client/requests"; export * from "./eventSource/client/requests"; export * from "./groups/client/requests"; export * from "./operate/client/requests"; export * from "./keyring/client/requests"; -export * from "./customization/client/requests"; export * from "./links/client/requests"; export * from "./slas/client/requests"; export * from "./productUsage/client/requests"; diff --git a/src/api/resources/keyring/client/Client.ts b/src/api/resources/keyring/client/Client.ts index 7c8ccfb..cb223d8 100644 --- a/src/api/resources/keyring/client/Client.ts +++ b/src/api/resources/keyring/client/Client.ts @@ -69,7 +69,7 @@ export class Keyring { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/links/client/Client.ts b/src/api/resources/links/client/Client.ts index 101c434..c6a165c 100644 --- a/src/api/resources/links/client/Client.ts +++ b/src/api/resources/links/client/Client.ts @@ -70,7 +70,7 @@ export class Links { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -210,7 +210,7 @@ export class Links { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -360,7 +360,7 @@ export class Links { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -509,7 +509,7 @@ export class Links { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/notifications/client/Client.ts b/src/api/resources/notifications/client/Client.ts index f262b28..c8d3d0f 100644 --- a/src/api/resources/notifications/client/Client.ts +++ b/src/api/resources/notifications/client/Client.ts @@ -76,7 +76,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -215,7 +215,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -352,7 +352,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -491,7 +491,7 @@ export class Notifications { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/operate/client/Client.ts b/src/api/resources/operate/client/Client.ts index b872a2f..b35af46 100644 --- a/src/api/resources/operate/client/Client.ts +++ b/src/api/resources/operate/client/Client.ts @@ -68,7 +68,7 @@ export class Operate { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -208,7 +208,7 @@ export class Operate { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -358,7 +358,7 @@ export class Operate { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -507,7 +507,7 @@ export class Operate { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -644,7 +644,7 @@ export class Operate { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -784,7 +784,7 @@ export class Operate { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/parts/client/Client.ts b/src/api/resources/parts/client/Client.ts index 5b7cb4c..0266bf5 100644 --- a/src/api/resources/parts/client/Client.ts +++ b/src/api/resources/parts/client/Client.ts @@ -79,7 +79,7 @@ export class Parts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -219,7 +219,7 @@ export class Parts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -369,7 +369,7 @@ export class Parts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -516,7 +516,7 @@ export class Parts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -661,7 +661,7 @@ export class Parts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/preferences/client/Client.ts b/src/api/resources/preferences/client/Client.ts index 5459673..841da1c 100644 --- a/src/api/resources/preferences/client/Client.ts +++ b/src/api/resources/preferences/client/Client.ts @@ -70,7 +70,7 @@ export class Preferences { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/productUsage/client/Client.ts b/src/api/resources/productUsage/client/Client.ts index c2970dc..ccb6677 100644 --- a/src/api/resources/productUsage/client/Client.ts +++ b/src/api/resources/productUsage/client/Client.ts @@ -75,7 +75,7 @@ export class ProductUsage { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -206,7 +206,7 @@ export class ProductUsage { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -358,7 +358,7 @@ export class ProductUsage { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -498,7 +498,7 @@ export class ProductUsage { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -642,7 +642,7 @@ export class ProductUsage { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -789,7 +789,7 @@ export class ProductUsage { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -940,7 +940,7 @@ export class ProductUsage { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/questionAnswers/client/Client.ts b/src/api/resources/questionAnswers/client/Client.ts index 0a0d2f5..9a45662 100644 --- a/src/api/resources/questionAnswers/client/Client.ts +++ b/src/api/resources/questionAnswers/client/Client.ts @@ -72,7 +72,7 @@ export class QuestionAnswers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -212,7 +212,7 @@ export class QuestionAnswers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -356,7 +356,7 @@ export class QuestionAnswers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -503,7 +503,7 @@ export class QuestionAnswers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -643,7 +643,7 @@ export class QuestionAnswers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/revOrgs/client/Client.ts b/src/api/resources/revOrgs/client/Client.ts index 52b4eff..686ad7a 100644 --- a/src/api/resources/revOrgs/client/Client.ts +++ b/src/api/resources/revOrgs/client/Client.ts @@ -71,7 +71,7 @@ export class RevOrgs { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -221,7 +221,7 @@ export class RevOrgs { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -369,7 +369,7 @@ export class RevOrgs { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -519,7 +519,7 @@ export class RevOrgs { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -670,7 +670,7 @@ export class RevOrgs { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/revUsers/client/Client.ts b/src/api/resources/revUsers/client/Client.ts index d7f9249..d3a6644 100644 --- a/src/api/resources/revUsers/client/Client.ts +++ b/src/api/resources/revUsers/client/Client.ts @@ -68,7 +68,7 @@ export class RevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -218,7 +218,7 @@ export class RevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -368,7 +368,7 @@ export class RevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -516,7 +516,7 @@ export class RevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -665,7 +665,7 @@ export class RevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -782,6 +782,157 @@ export class RevUsers { } } + /** + * Merges the secondary Rev user into the primary Rev user. + * + * @param {DevRev.RevUsersMergeRequest} request + * @param {RevUsers.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.NotFoundError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.revUsers.merge({ + * primaryUser: "primary_user", + * secondaryUser: "secondary_user" + * }) + */ + public async merge( + request: DevRev.RevUsersMergeRequest, + requestOptions?: RevUsers.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "rev-users.merge" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.RevUsersMergeRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.RevUsersMergeResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 404: + throw new DevRev.NotFoundError( + serializers.ErrorNotFound.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + /** * Scans through all Rev users. * @@ -813,7 +964,7 @@ export class RevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -961,7 +1112,7 @@ export class RevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1112,7 +1263,7 @@ export class RevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/revUsers/client/requests/RevUsersMergeRequest.ts b/src/api/resources/revUsers/client/requests/RevUsersMergeRequest.ts new file mode 100644 index 0000000..a1e524f --- /dev/null +++ b/src/api/resources/revUsers/client/requests/RevUsersMergeRequest.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * primaryUser: "primary_user", + * secondaryUser: "secondary_user" + * } + */ +export interface RevUsersMergeRequest { + /** The ID of the primary Rev user, which will be retained. */ + primaryUser: string; + /** + * The ID of the secondary Rev user, which will be merged into the + * Primary Rev user. + * + */ + secondaryUser: string; +} diff --git a/src/api/resources/revUsers/client/requests/index.ts b/src/api/resources/revUsers/client/requests/index.ts index 9fc57aa..8ee2ca5 100644 --- a/src/api/resources/revUsers/client/requests/index.ts +++ b/src/api/resources/revUsers/client/requests/index.ts @@ -3,6 +3,7 @@ export { type RevUsersDeleteRequest } from "./RevUsersDeleteRequest"; export { type RevUsersGetRequest } from "./RevUsersGetRequest"; export { type LinkRevUserToRevOrgRequest } from "./LinkRevUserToRevOrgRequest"; export { type RevUsersListRequest } from "./RevUsersListRequest"; +export { type RevUsersMergeRequest } from "./RevUsersMergeRequest"; export { type RevUsersScanRequest } from "./RevUsersScanRequest"; export { type UnlinkRevUserFromRevOrgRequest } from "./UnlinkRevUserFromRevOrgRequest"; export { type RevUsersUpdateRequest } from "./RevUsersUpdateRequest"; diff --git a/src/api/resources/schedules/client/Client.ts b/src/api/resources/schedules/client/Client.ts index 95301b0..c29fb35 100644 --- a/src/api/resources/schedules/client/Client.ts +++ b/src/api/resources/schedules/client/Client.ts @@ -74,7 +74,7 @@ export class Schedules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -215,7 +215,7 @@ export class Schedules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -355,7 +355,7 @@ export class Schedules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -498,7 +498,7 @@ export class Schedules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -637,7 +637,7 @@ export class Schedules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -774,7 +774,7 @@ export class Schedules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -915,7 +915,7 @@ export class Schedules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1055,7 +1055,7 @@ export class Schedules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1195,7 +1195,7 @@ export class Schedules { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/search/client/Client.ts b/src/api/resources/search/client/Client.ts index 4babee5..9a9311f 100644 --- a/src/api/resources/search/client/Client.ts +++ b/src/api/resources/search/client/Client.ts @@ -68,7 +68,7 @@ export class Search { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -208,7 +208,7 @@ export class Search { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/serviceAccounts/client/Client.ts b/src/api/resources/serviceAccounts/client/Client.ts index 668bf42..f70461e 100644 --- a/src/api/resources/serviceAccounts/client/Client.ts +++ b/src/api/resources/serviceAccounts/client/Client.ts @@ -69,7 +69,7 @@ export class ServiceAccounts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/slas/client/Client.ts b/src/api/resources/slas/client/Client.ts index 2594e4b..29d2bf9 100644 --- a/src/api/resources/slas/client/Client.ts +++ b/src/api/resources/slas/client/Client.ts @@ -66,7 +66,7 @@ export class Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -206,7 +206,7 @@ export class Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -323,6 +323,143 @@ export class Slas { } } + /** + * Lists SLA trackers matching a filter. + * + * @param {DevRev.SlaTrackersListRequest} request + * @param {Slas.RequestOptions} requestOptions - Request-specific configuration. + * + * @throws {@link DevRev.BadRequestError} + * @throws {@link DevRev.UnauthorizedError} + * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.TooManyRequestsError} + * @throws {@link DevRev.InternalServerError} + * @throws {@link DevRev.ServiceUnavailableError} + * + * @example + * await client.slas.slaTrackersListPost() + */ + public async slaTrackersListPost( + request: DevRev.SlaTrackersListRequest = {}, + requestOptions?: Slas.RequestOptions + ): Promise { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "sla-trackers.list" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.6", + "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", + "X-Fern-Runtime": core.RUNTIME.type, + "X-Fern-Runtime-Version": core.RUNTIME.version, + }, + contentType: "application/json", + requestType: "json", + body: serializers.SlaTrackersListRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.SlaTrackersListResponse.parseOrThrow(_response.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }); + } + + if (_response.error.reason === "status-code") { + switch (_response.error.statusCode) { + case 400: + throw new DevRev.BadRequestError( + serializers.ErrorBadRequest.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 401: + throw new DevRev.UnauthorizedError( + serializers.ErrorUnauthorized.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 403: + throw new DevRev.ForbiddenError( + serializers.ErrorForbidden.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 429: + throw new DevRev.TooManyRequestsError( + serializers.ErrorTooManyRequests.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 500: + throw new DevRev.InternalServerError( + serializers.ErrorInternalServerError.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + case 503: + throw new DevRev.ServiceUnavailableError( + serializers.ErrorServiceUnavailable.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); + default: + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.body, + }); + } + } + + switch (_response.error.reason) { + case "non-json": + throw new errors.DevRevError({ + statusCode: _response.error.statusCode, + body: _response.error.rawBody, + }); + case "timeout": + throw new errors.DevRevTimeoutError(); + case "unknown": + throw new errors.DevRevError({ + message: _response.error.errorMessage, + }); + } + } + /** * Assigns the SLA to a set of Rev organizations. * @@ -356,7 +493,7 @@ export class Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -505,7 +642,7 @@ export class Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -645,7 +782,7 @@ export class Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -792,7 +929,7 @@ export class Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -933,7 +1070,7 @@ export class Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1083,7 +1220,7 @@ export class Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/slas/client/requests/SlaTrackersListRequest.ts b/src/api/resources/slas/client/requests/SlaTrackersListRequest.ts new file mode 100644 index 0000000..9afa2b9 --- /dev/null +++ b/src/api/resources/slas/client/requests/SlaTrackersListRequest.ts @@ -0,0 +1,30 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../../../../index"; + +/** + * @example + * {} + */ +export interface SlaTrackersListRequest { + createdDate?: DevRev.DateTimeFilter; + /** + * The cursor to resume iteration from. If not provided, then + * iteration starts from the beginning. + * + */ + cursor?: string; + /** + * The maximum number of SLA trackers to return. The default is '50'. + * + */ + limit?: number; + mode?: DevRev.ListMode; + modifiedDate?: DevRev.DateTimeFilter; + /** The SLA tracker stages the filter matches. */ + stage?: string[]; + /** The SLA tracker statuses the filter matches. */ + status?: string[]; +} diff --git a/src/api/resources/slas/client/requests/index.ts b/src/api/resources/slas/client/requests/index.ts index e352841..686ae37 100644 --- a/src/api/resources/slas/client/requests/index.ts +++ b/src/api/resources/slas/client/requests/index.ts @@ -1,5 +1,6 @@ export { type MetricDefinitionsListRequest } from "./MetricDefinitionsListRequest"; export { type SlaTrackersGetRequest } from "./SlaTrackersGetRequest"; +export { type SlaTrackersListRequest } from "./SlaTrackersListRequest"; export { type SlasAssignRequest } from "./SlasAssignRequest"; export { type SlasCreateRequest } from "./SlasCreateRequest"; export { type SlasGetRequest } from "./SlasGetRequest"; diff --git a/src/api/resources/snapIns/client/Client.ts b/src/api/resources/snapIns/client/Client.ts index b27449b..37453aa 100644 --- a/src/api/resources/snapIns/client/Client.ts +++ b/src/api/resources/snapIns/client/Client.ts @@ -69,7 +69,7 @@ export class SnapIns { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -209,7 +209,7 @@ export class SnapIns { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/snapWidgets/client/Client.ts b/src/api/resources/snapWidgets/client/Client.ts index d9b357d..61f084a 100644 --- a/src/api/resources/snapWidgets/client/Client.ts +++ b/src/api/resources/snapWidgets/client/Client.ts @@ -109,7 +109,7 @@ export class SnapWidgets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/surveys/client/Client.ts b/src/api/resources/surveys/client/Client.ts index fea4ae6..4df052e 100644 --- a/src/api/resources/surveys/client/Client.ts +++ b/src/api/resources/surveys/client/Client.ts @@ -69,7 +69,7 @@ export class Surveys { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -209,7 +209,7 @@ export class Surveys { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -356,7 +356,7 @@ export class Surveys { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -493,7 +493,7 @@ export class Surveys { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -637,7 +637,7 @@ export class Surveys { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -777,7 +777,7 @@ export class Surveys { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/sysUsers/client/Client.ts b/src/api/resources/sysUsers/client/Client.ts index ecaf741..1388d4b 100644 --- a/src/api/resources/sysUsers/client/Client.ts +++ b/src/api/resources/sysUsers/client/Client.ts @@ -66,7 +66,7 @@ export class SysUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -206,7 +206,7 @@ export class SysUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/tags/client/Client.ts b/src/api/resources/tags/client/Client.ts index 545c83b..15bbc53 100644 --- a/src/api/resources/tags/client/Client.ts +++ b/src/api/resources/tags/client/Client.ts @@ -69,7 +69,7 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -209,7 +209,7 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -359,7 +359,7 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -506,7 +506,7 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -646,7 +646,7 @@ export class Tags { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/timelineEntries/client/Client.ts b/src/api/resources/timelineEntries/client/Client.ts index 8a9ed9a..050ac8a 100644 --- a/src/api/resources/timelineEntries/client/Client.ts +++ b/src/api/resources/timelineEntries/client/Client.ts @@ -82,7 +82,7 @@ export class TimelineEntries { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -231,7 +231,7 @@ export class TimelineEntries { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -372,7 +372,7 @@ export class TimelineEntries { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -522,7 +522,7 @@ export class TimelineEntries { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -679,7 +679,7 @@ export class TimelineEntries { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/webhooks/client/Client.ts b/src/api/resources/webhooks/client/Client.ts index c94ca92..aac4696 100644 --- a/src/api/resources/webhooks/client/Client.ts +++ b/src/api/resources/webhooks/client/Client.ts @@ -68,7 +68,7 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -208,7 +208,7 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -359,7 +359,7 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -509,7 +509,7 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -658,7 +658,7 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -798,7 +798,7 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/resources/works/client/Client.ts b/src/api/resources/works/client/Client.ts index fa64931..bf979bc 100644 --- a/src/api/resources/works/client/Client.ts +++ b/src/api/resources/works/client/Client.ts @@ -104,7 +104,7 @@ export class Works { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -244,7 +244,7 @@ export class Works { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -391,7 +391,7 @@ export class Works { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -531,7 +531,7 @@ export class Works { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -678,7 +678,7 @@ export class Works { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -850,7 +850,7 @@ export class Works { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.5", + "X-Fern-SDK-Version": "0.0.6", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, diff --git a/src/api/types/ConversationsUpdateRequestOwnedBy.ts b/src/api/types/ConversationsUpdateRequestOwnedBy.ts new file mode 100644 index 0000000..1b0db10 --- /dev/null +++ b/src/api/types/ConversationsUpdateRequestOwnedBy.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ConversationsUpdateRequestOwnedBy { + /** + * Sets the owner IDs to the provided user IDs. This must not be + * empty. + */ + set?: string[]; +} diff --git a/src/api/types/CustomObject.ts b/src/api/types/CustomObject.ts new file mode 100644 index 0000000..cca47ec --- /dev/null +++ b/src/api/types/CustomObject.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface CustomObject extends DevRev.AtomBase { + /** Custom fields. */ + customFields?: Record; + /** Custom schema fragments. */ + customSchemaFragments?: string[]; + /** Stock schema fragment. */ + stockSchemaFragment?: string; + /** Subtype corresponding to the custom type fragment. */ + subtype?: string; +} diff --git a/src/api/types/CustomObjectsCountResponse.ts b/src/api/types/CustomObjectsCountResponse.ts new file mode 100644 index 0000000..ec43186 --- /dev/null +++ b/src/api/types/CustomObjectsCountResponse.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CustomObjectsCountResponse { + /** The count of custom objects. */ + count: number; +} diff --git a/src/api/types/CustomObjectsCreateResponse.ts b/src/api/types/CustomObjectsCreateResponse.ts new file mode 100644 index 0000000..c7d2d9e --- /dev/null +++ b/src/api/types/CustomObjectsCreateResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface CustomObjectsCreateResponse { + customObject: DevRev.CustomObject; +} diff --git a/src/api/types/CustomObjectsDeleteResponse.ts b/src/api/types/CustomObjectsDeleteResponse.ts new file mode 100644 index 0000000..14f21e1 --- /dev/null +++ b/src/api/types/CustomObjectsDeleteResponse.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type CustomObjectsDeleteResponse = Record; diff --git a/src/api/types/CustomObjectsGetResponse.ts b/src/api/types/CustomObjectsGetResponse.ts new file mode 100644 index 0000000..b8dc62a --- /dev/null +++ b/src/api/types/CustomObjectsGetResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface CustomObjectsGetResponse { + customObject: DevRev.CustomObject; +} diff --git a/src/api/types/CustomObjectsListResponse.ts b/src/api/types/CustomObjectsListResponse.ts new file mode 100644 index 0000000..ca65607 --- /dev/null +++ b/src/api/types/CustomObjectsListResponse.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface CustomObjectsListResponse { + /** + * The cursor used to iterate subsequent results in accordance to the + * sort order. If not set, then no later elements exist. + */ + nextCursor?: string; + /** + * The cursor used to iterate preceding results in accordance to the + * sort order. If not set, then no prior elements exist. + */ + prevCursor?: string; + /** The custom objects. */ + result: DevRev.CustomObject[]; +} diff --git a/src/api/types/CustomObjectsUpdateResponse.ts b/src/api/types/CustomObjectsUpdateResponse.ts new file mode 100644 index 0000000..19f42e8 --- /dev/null +++ b/src/api/types/CustomObjectsUpdateResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface CustomObjectsUpdateResponse { + customObject: DevRev.CustomObject; +} diff --git a/src/api/types/DirectoriesCountResponse.ts b/src/api/types/DirectoriesCountResponse.ts new file mode 100644 index 0000000..cae6fe9 --- /dev/null +++ b/src/api/types/DirectoriesCountResponse.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface DirectoriesCountResponse { + /** The total number of directories matching the filter. */ + count: number; +} diff --git a/src/api/types/DirectoriesCreateResponse.ts b/src/api/types/DirectoriesCreateResponse.ts new file mode 100644 index 0000000..b7dc286 --- /dev/null +++ b/src/api/types/DirectoriesCreateResponse.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +/** + * Create directory response. + */ +export interface DirectoriesCreateResponse { + directory: DevRev.Directory; +} diff --git a/src/api/types/DirectoriesDeleteResponse.ts b/src/api/types/DirectoriesDeleteResponse.ts new file mode 100644 index 0000000..af9ae09 --- /dev/null +++ b/src/api/types/DirectoriesDeleteResponse.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type DirectoriesDeleteResponse = Record; diff --git a/src/api/types/DirectoriesGetResponse.ts b/src/api/types/DirectoriesGetResponse.ts new file mode 100644 index 0000000..aa9d96f --- /dev/null +++ b/src/api/types/DirectoriesGetResponse.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +/** + * Get directory response. + */ +export interface DirectoriesGetResponse { + directory: DevRev.Directory; +} diff --git a/src/api/types/DirectoriesListResponse.ts b/src/api/types/DirectoriesListResponse.ts new file mode 100644 index 0000000..61e2c41 --- /dev/null +++ b/src/api/types/DirectoriesListResponse.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +/** + * List directory response. + */ +export interface DirectoriesListResponse { + /** The list of directories. */ + directories: DevRev.Directory[]; + /** + * The cursor used to iterate subsequent results in accordance to the + * sort order. If not set, then no later elements exist. + */ + nextCursor?: string; + /** + * The cursor used to iterate preceding results in accordance to the + * sort order. If not set, then no prior elements exist. + */ + prevCursor?: string; +} diff --git a/src/api/types/DirectoriesUpdateRequestReorder.ts b/src/api/types/DirectoriesUpdateRequestReorder.ts new file mode 100644 index 0000000..5b55ed9 --- /dev/null +++ b/src/api/types/DirectoriesUpdateRequestReorder.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface DirectoriesUpdateRequestReorder { + /** The directory after which the reordered directory is placed. */ + after?: string; + /** The directory before which the reordered directory is placed. */ + before?: string; +} diff --git a/src/api/types/DirectoriesUpdateRequestTags.ts b/src/api/types/DirectoriesUpdateRequestTags.ts new file mode 100644 index 0000000..389826c --- /dev/null +++ b/src/api/types/DirectoriesUpdateRequestTags.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface DirectoriesUpdateRequestTags { + /** Sets the provided tags on the directory. */ + set?: DevRev.SetTagWithValue[]; +} diff --git a/src/api/types/DirectoriesUpdateResponse.ts b/src/api/types/DirectoriesUpdateResponse.ts new file mode 100644 index 0000000..d71d97f --- /dev/null +++ b/src/api/types/DirectoriesUpdateResponse.ts @@ -0,0 +1,12 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +/** + * Update directory response. + */ +export interface DirectoriesUpdateResponse { + directory: DevRev.Directory; +} diff --git a/src/api/types/Directory.ts b/src/api/types/Directory.ts new file mode 100644 index 0000000..b25cffe --- /dev/null +++ b/src/api/types/Directory.ts @@ -0,0 +1,23 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface Directory extends DevRev.AtomBase { + body?: DevRev.ArtifactSummary; + /** Description of the directory. */ + description?: string; + /** Icon of the directory. */ + icon?: string; + parent?: DevRev.DirectorySummary; + /** Whether the directory is published. */ + published?: boolean; + /** Rank of the directory. */ + rank?: string; + /** Tags associated with the directory. */ + tags?: DevRev.TagWithValue[]; + thumbnail?: DevRev.ArtifactSummary; + /** Title of the directory. */ + title?: string; +} diff --git a/src/api/types/EngagementsUpdateRequestParents.ts b/src/api/types/EngagementsUpdateRequestParents.ts new file mode 100644 index 0000000..e93144b --- /dev/null +++ b/src/api/types/EngagementsUpdateRequestParents.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface EngagementsUpdateRequestParents { + /** Sets the parent IDs. */ + set?: string[]; +} diff --git a/src/api/types/GeneralPreferencesGroupPreferredLocale.ts b/src/api/types/GeneralPreferencesGroupPreferredLocale.ts index 75e4025..bb59e8d 100644 --- a/src/api/types/GeneralPreferencesGroupPreferredLocale.ts +++ b/src/api/types/GeneralPreferencesGroupPreferredLocale.ts @@ -5,9 +5,12 @@ /** * Preferred locale of the user. */ -export type GeneralPreferencesGroupPreferredLocale = "en_us" | "ja_jp"; +export type GeneralPreferencesGroupPreferredLocale = "en_us" | "es_ar" | "ja_jp" | "nl_aw" | "nl_sx"; export const GeneralPreferencesGroupPreferredLocale = { EnUs: "en_us", + EsAr: "es_ar", JaJp: "ja_jp", + NlAw: "nl_aw", + NlSx: "nl_sx", } as const; diff --git a/src/api/types/LinkType.ts b/src/api/types/LinkType.ts index dcbe24f..5c9278c 100644 --- a/src/api/types/LinkType.ts +++ b/src/api/types/LinkType.ts @@ -13,6 +13,7 @@ export type LinkType = | "is_converted_to" | "is_dependent_on" | "is_duplicate_of" + | "is_follow_up_of" | "is_merged_into" | "is_parent_of" | "is_part_of" @@ -27,6 +28,7 @@ export const LinkType = { IsConvertedTo: "is_converted_to", IsDependentOn: "is_dependent_on", IsDuplicateOf: "is_duplicate_of", + IsFollowUpOf: "is_follow_up_of", IsMergedInto: "is_merged_into", IsParentOf: "is_parent_of", IsPartOf: "is_part_of", diff --git a/src/api/types/RevUsersMergeResponse.ts b/src/api/types/RevUsersMergeResponse.ts new file mode 100644 index 0000000..759d493 --- /dev/null +++ b/src/api/types/RevUsersMergeResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Acknowledgment response indicating that the merge request has been + * received for processing asynchronously. + */ +export type RevUsersMergeResponse = Record; diff --git a/src/api/types/SlaTrackersListResponse.ts b/src/api/types/SlaTrackersListResponse.ts new file mode 100644 index 0000000..e774cd8 --- /dev/null +++ b/src/api/types/SlaTrackersListResponse.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface SlaTrackersListResponse { + /** + * The cursor used to iterate subsequent results in accordance to the + * sort order. If not set, then no later elements exist. + */ + nextCursor?: string; + /** + * The cursor used to iterate preceding results in accordance to the + * sort order. If not set, then no prior elements exist. + */ + prevCursor?: string; + /** The list of SLA trackers. */ + slaTrackers: DevRev.SlaTracker[]; +} diff --git a/src/api/types/TimelineEntryBase.ts b/src/api/types/TimelineEntryBase.ts index e024969..b284502 100644 --- a/src/api/types/TimelineEntryBase.ts +++ b/src/api/types/TimelineEntryBase.ts @@ -17,6 +17,8 @@ export interface TimelineEntryBase extends DevRev.AtomBase { /** The display ID of the object that the Timeline entry belongs to. */ objectDisplayId: string; objectType?: DevRev.TimelineEntryObjectType; + /** Display panels for the Timeline entry. */ + panels?: DevRev.TimelineEntryPanel[]; /** The reactions to the entry. */ reactions?: DevRev.TimelineReaction[]; thread?: DevRev.TimelineThread; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index d94e1ec..4748d7a 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -120,6 +120,7 @@ export * from "./ConversationsGetResponse"; export * from "./ConversationsListResponse"; export * from "./ConversationsUpdateRequestAppliesToParts"; export * from "./ConversationsUpdateRequestMetadata"; +export * from "./ConversationsUpdateRequestOwnedBy"; export * from "./ConversationsUpdateRequestTags"; export * from "./ConversationsUpdateRequestUserSessions"; export * from "./ConversationsUpdateResponse"; @@ -137,8 +138,15 @@ export * from "./CustomLinkTypeCreateResponse"; export * from "./CustomLinkTypeGetResponse"; export * from "./CustomLinkTypeListResponse"; export * from "./CustomLinkTypeUpdateResponse"; +export * from "./CustomObject"; export * from "./CustomObjectSearchSummary"; export * from "./CustomObjectSummary"; +export * from "./CustomObjectsCountResponse"; +export * from "./CustomObjectsCreateResponse"; +export * from "./CustomObjectsDeleteResponse"; +export * from "./CustomObjectsGetResponse"; +export * from "./CustomObjectsListResponse"; +export * from "./CustomObjectsUpdateResponse"; export * from "./CustomSchemaFragment"; export * from "./CustomSchemaFragmentBaseSummary"; export * from "./CustomSchemaFragmentCondition"; @@ -194,6 +202,15 @@ export * from "./DevUsersSelfRequest"; export * from "./DevUsersSelfResponse"; export * from "./DevUsersUpdateJobHistoryItem"; export * from "./DevUsersUpdateResponse"; +export * from "./DirectoriesCountResponse"; +export * from "./DirectoriesCreateResponse"; +export * from "./DirectoriesDeleteResponse"; +export * from "./DirectoriesGetResponse"; +export * from "./DirectoriesListResponse"; +export * from "./DirectoriesUpdateRequestReorder"; +export * from "./DirectoriesUpdateRequestTags"; +export * from "./DirectoriesUpdateResponse"; +export * from "./Directory"; export * from "./DirectorySummary"; export * from "./DynamicGroupInfo"; export * from "./DynamicVistaSummary"; @@ -213,6 +230,7 @@ export * from "./EngagementsGetResponse"; export * from "./EngagementsListResponse"; export * from "./EngagementsUpdateRequestArtifactIds"; export * from "./EngagementsUpdateRequestMembers"; +export * from "./EngagementsUpdateRequestParents"; export * from "./EngagementsUpdateRequestTags"; export * from "./EngagementsUpdateResponse"; export * from "./Enhancement"; @@ -415,6 +433,7 @@ export * from "./RevUsersCreateResponse"; export * from "./RevUsersDeleteResponse"; export * from "./RevUsersGetResponse"; export * from "./RevUsersListResponse"; +export * from "./RevUsersMergeResponse"; export * from "./RevUsersScanResponse"; export * from "./RevUsersUpdateRequestArtifacts"; export * from "./RevUsersUpdateRequestCustomSchemaFragments"; @@ -499,6 +518,7 @@ export * from "./SlaSummaryStage"; export * from "./SlaTracker"; export * from "./SlaTrackerSummary"; export * from "./SlaTrackersGetResponse"; +export * from "./SlaTrackersListResponse"; export * from "./SlaType"; export * from "./SlasAssignResponse"; export * from "./SlasCreateResponse"; diff --git a/src/serialization/resources/conversations/client/requests/ConversationsCreateRequest.ts b/src/serialization/resources/conversations/client/requests/ConversationsCreateRequest.ts index 63ec3af..299ed04 100644 --- a/src/serialization/resources/conversations/client/requests/ConversationsCreateRequest.ts +++ b/src/serialization/resources/conversations/client/requests/ConversationsCreateRequest.ts @@ -20,6 +20,7 @@ export const ConversationsCreateRequest: core.serialization.Schema< members: core.serialization.list(core.serialization.string()).optional(), messages: core.serialization.list(ConversationsCreateRequestMessage).optional(), metadata: ConversationsCreateRequestMetadata.optional(), + ownedBy: core.serialization.property("owned_by", core.serialization.list(core.serialization.string()).optional()), sourceChannel: core.serialization.property("source_channel", core.serialization.string().optional()), stage: StageInit.optional(), tags: core.serialization.list(SetTagWithValue).optional(), @@ -38,6 +39,7 @@ export declare namespace ConversationsCreateRequest { members?: string[] | null; messages?: ConversationsCreateRequestMessage.Raw[] | null; metadata?: ConversationsCreateRequestMetadata.Raw | null; + owned_by?: string[] | null; source_channel?: string | null; stage?: StageInit.Raw | null; tags?: SetTagWithValue.Raw[] | null; diff --git a/src/serialization/resources/conversations/client/requests/ConversationsUpdateRequest.ts b/src/serialization/resources/conversations/client/requests/ConversationsUpdateRequest.ts index b75740e..cc49b8b 100644 --- a/src/serialization/resources/conversations/client/requests/ConversationsUpdateRequest.ts +++ b/src/serialization/resources/conversations/client/requests/ConversationsUpdateRequest.ts @@ -7,6 +7,7 @@ import * as DevRev from "../../../../../api/index"; import * as core from "../../../../../core"; import { ConversationsUpdateRequestAppliesToParts } from "../../../../types/ConversationsUpdateRequestAppliesToParts"; import { ConversationsUpdateRequestMetadata } from "../../../../types/ConversationsUpdateRequestMetadata"; +import { ConversationsUpdateRequestOwnedBy } from "../../../../types/ConversationsUpdateRequestOwnedBy"; import { StageUpdate } from "../../../../types/StageUpdate"; import { ConversationsUpdateRequestTags } from "../../../../types/ConversationsUpdateRequestTags"; import { ConversationsUpdateRequestUserSessions } from "../../../../types/ConversationsUpdateRequestUserSessions"; @@ -24,6 +25,7 @@ export const ConversationsUpdateRequest: core.serialization.Schema< id: core.serialization.string(), isSpam: core.serialization.property("is_spam", core.serialization.boolean().optional()), metadata: ConversationsUpdateRequestMetadata.optional(), + ownedBy: core.serialization.property("owned_by", ConversationsUpdateRequestOwnedBy.optional()), stage: StageUpdate.optional(), status: core.serialization.string().optional(), tags: ConversationsUpdateRequestTags.optional(), @@ -39,6 +41,7 @@ export declare namespace ConversationsUpdateRequest { id: string; is_spam?: boolean | null; metadata?: ConversationsUpdateRequestMetadata.Raw | null; + owned_by?: ConversationsUpdateRequestOwnedBy.Raw | null; stage?: StageUpdate.Raw | null; status?: string | null; tags?: ConversationsUpdateRequestTags.Raw | null; diff --git a/src/serialization/resources/customization/client/requests/CustomObjectsCountRequest.ts b/src/serialization/resources/customization/client/requests/CustomObjectsCountRequest.ts new file mode 100644 index 0000000..e76f2ad --- /dev/null +++ b/src/serialization/resources/customization/client/requests/CustomObjectsCountRequest.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; + +export const CustomObjectsCountRequest: core.serialization.Schema< + serializers.CustomObjectsCountRequest.Raw, + DevRev.CustomObjectsCountRequest +> = core.serialization.object({ + filters: core.serialization.list(core.serialization.unknown()).optional(), + leafType: core.serialization.property("leaf_type", core.serialization.string()), +}); + +export declare namespace CustomObjectsCountRequest { + interface Raw { + filters?: unknown[] | null; + leaf_type: string; + } +} diff --git a/src/serialization/resources/customization/client/requests/CustomObjectsCreateRequest.ts b/src/serialization/resources/customization/client/requests/CustomObjectsCreateRequest.ts new file mode 100644 index 0000000..98423ed --- /dev/null +++ b/src/serialization/resources/customization/client/requests/CustomObjectsCreateRequest.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { CustomSchemaSpec } from "../../../../types/CustomSchemaSpec"; +import { StageValidationOptionForCreate } from "../../../../types/StageValidationOptionForCreate"; + +export const CustomObjectsCreateRequest: core.serialization.Schema< + serializers.CustomObjectsCreateRequest.Raw, + DevRev.CustomObjectsCreateRequest +> = core.serialization.object({ + customFields: core.serialization.property( + "custom_fields", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() + ), + customSchemaSpec: core.serialization.property("custom_schema_spec", CustomSchemaSpec.optional()), + leafType: core.serialization.property("leaf_type", core.serialization.string()), + stage: core.serialization.string().optional(), + stageValidationOptions: core.serialization.property( + "stage_validation_options", + core.serialization.list(StageValidationOptionForCreate).optional() + ), + title: core.serialization.string().optional(), + uniqueKey: core.serialization.property("unique_key", core.serialization.string()), +}); + +export declare namespace CustomObjectsCreateRequest { + interface Raw { + custom_fields?: Record | null; + custom_schema_spec?: CustomSchemaSpec.Raw | null; + leaf_type: string; + stage?: string | null; + stage_validation_options?: StageValidationOptionForCreate.Raw[] | null; + title?: string | null; + unique_key: string; + } +} diff --git a/src/serialization/resources/customization/client/requests/CustomObjectsDeleteRequest.ts b/src/serialization/resources/customization/client/requests/CustomObjectsDeleteRequest.ts new file mode 100644 index 0000000..6c8812b --- /dev/null +++ b/src/serialization/resources/customization/client/requests/CustomObjectsDeleteRequest.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; + +export const CustomObjectsDeleteRequest: core.serialization.Schema< + serializers.CustomObjectsDeleteRequest.Raw, + DevRev.CustomObjectsDeleteRequest +> = core.serialization.object({ + id: core.serialization.string(), +}); + +export declare namespace CustomObjectsDeleteRequest { + interface Raw { + id: string; + } +} diff --git a/src/serialization/resources/customization/client/requests/CustomObjectsGetRequest.ts b/src/serialization/resources/customization/client/requests/CustomObjectsGetRequest.ts new file mode 100644 index 0000000..d28e544 --- /dev/null +++ b/src/serialization/resources/customization/client/requests/CustomObjectsGetRequest.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; + +export const CustomObjectsGetRequest: core.serialization.Schema< + serializers.CustomObjectsGetRequest.Raw, + DevRev.CustomObjectsGetRequest +> = core.serialization.object({ + id: core.serialization.string().optional(), +}); + +export declare namespace CustomObjectsGetRequest { + interface Raw { + id?: string | null; + } +} diff --git a/src/serialization/resources/customization/client/requests/CustomObjectsListRequest.ts b/src/serialization/resources/customization/client/requests/CustomObjectsListRequest.ts new file mode 100644 index 0000000..65f089a --- /dev/null +++ b/src/serialization/resources/customization/client/requests/CustomObjectsListRequest.ts @@ -0,0 +1,31 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { ListMode } from "../../../../types/ListMode"; + +export const CustomObjectsListRequest: core.serialization.Schema< + serializers.CustomObjectsListRequest.Raw, + DevRev.CustomObjectsListRequest +> = core.serialization.object({ + cursor: core.serialization.string().optional(), + filter: core.serialization.list(core.serialization.unknown()).optional(), + leafType: core.serialization.property("leaf_type", core.serialization.string()), + limit: core.serialization.number().optional(), + mode: ListMode.optional(), + sortBy: core.serialization.property("sort_by", core.serialization.list(core.serialization.string()).optional()), +}); + +export declare namespace CustomObjectsListRequest { + interface Raw { + cursor?: string | null; + filter?: unknown[] | null; + leaf_type: string; + limit?: number | null; + mode?: ListMode.Raw | null; + sort_by?: string[] | null; + } +} diff --git a/src/serialization/resources/customization/client/requests/CustomObjectsUpdateRequest.ts b/src/serialization/resources/customization/client/requests/CustomObjectsUpdateRequest.ts new file mode 100644 index 0000000..659bc68 --- /dev/null +++ b/src/serialization/resources/customization/client/requests/CustomObjectsUpdateRequest.ts @@ -0,0 +1,38 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { CustomSchemaSpec } from "../../../../types/CustomSchemaSpec"; +import { StageValidationOptionForUpdate } from "../../../../types/StageValidationOptionForUpdate"; + +export const CustomObjectsUpdateRequest: core.serialization.Schema< + serializers.CustomObjectsUpdateRequest.Raw, + DevRev.CustomObjectsUpdateRequest +> = core.serialization.object({ + customFields: core.serialization.property( + "custom_fields", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() + ), + customSchemaSpec: core.serialization.property("custom_schema_spec", CustomSchemaSpec.optional()), + id: core.serialization.string(), + stage: core.serialization.string().optional(), + stageValidationOptions: core.serialization.property( + "stage_validation_options", + core.serialization.list(StageValidationOptionForUpdate).optional() + ), + title: core.serialization.string().optional(), +}); + +export declare namespace CustomObjectsUpdateRequest { + interface Raw { + custom_fields?: Record | null; + custom_schema_spec?: CustomSchemaSpec.Raw | null; + id: string; + stage?: string | null; + stage_validation_options?: StageValidationOptionForUpdate.Raw[] | null; + title?: string | null; + } +} diff --git a/src/serialization/resources/customization/client/requests/CustomSchemaFragmentsListRequest.ts b/src/serialization/resources/customization/client/requests/CustomSchemaFragmentsListRequest.ts index 2d25106..0791883 100644 --- a/src/serialization/resources/customization/client/requests/CustomSchemaFragmentsListRequest.ts +++ b/src/serialization/resources/customization/client/requests/CustomSchemaFragmentsListRequest.ts @@ -16,6 +16,7 @@ export const CustomSchemaFragmentsListRequest: core.serialization.Schema< app: core.serialization.list(core.serialization.string()).optional(), cursor: core.serialization.string().optional(), deprecated: core.serialization.boolean().optional(), + isCustomLeafType: core.serialization.property("is_custom_leaf_type", core.serialization.boolean().optional()), leafType: core.serialization.property("leaf_type", core.serialization.list(core.serialization.string()).optional()), limit: core.serialization.number().optional(), mode: ListMode.optional(), @@ -30,6 +31,7 @@ export declare namespace CustomSchemaFragmentsListRequest { app?: string[] | null; cursor?: string | null; deprecated?: boolean | null; + is_custom_leaf_type?: boolean | null; leaf_type?: string[] | null; limit?: number | null; mode?: ListMode.Raw | null; diff --git a/src/serialization/resources/customization/client/requests/index.ts b/src/serialization/resources/customization/client/requests/index.ts index 32179ed..abd98ae 100644 --- a/src/serialization/resources/customization/client/requests/index.ts +++ b/src/serialization/resources/customization/client/requests/index.ts @@ -1,3 +1,9 @@ +export { CustomObjectsCountRequest } from "./CustomObjectsCountRequest"; +export { CustomObjectsCreateRequest } from "./CustomObjectsCreateRequest"; +export { CustomObjectsDeleteRequest } from "./CustomObjectsDeleteRequest"; +export { CustomObjectsGetRequest } from "./CustomObjectsGetRequest"; +export { CustomObjectsListRequest } from "./CustomObjectsListRequest"; +export { CustomObjectsUpdateRequest } from "./CustomObjectsUpdateRequest"; export { CustomLinkTypeCreateRequest } from "./CustomLinkTypeCreateRequest"; export { CustomLinkTypeGetRequest } from "./CustomLinkTypeGetRequest"; export { CustomLinkTypeListRequest } from "./CustomLinkTypeListRequest"; diff --git a/src/serialization/resources/directory/client/index.ts b/src/serialization/resources/directory/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/serialization/resources/directory/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/serialization/resources/directory/client/requests/DirectoriesCountRequest.ts b/src/serialization/resources/directory/client/requests/DirectoriesCountRequest.ts new file mode 100644 index 0000000..b2f7bbb --- /dev/null +++ b/src/serialization/resources/directory/client/requests/DirectoriesCountRequest.ts @@ -0,0 +1,28 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; + +export const DirectoriesCountRequest: core.serialization.Schema< + serializers.DirectoriesCountRequest.Raw, + DevRev.DirectoriesCountRequest +> = core.serialization.object({ + createdBy: core.serialization.property( + "created_by", + core.serialization.list(core.serialization.string()).optional() + ), + modifiedBy: core.serialization.property( + "modified_by", + core.serialization.list(core.serialization.string()).optional() + ), +}); + +export declare namespace DirectoriesCountRequest { + interface Raw { + created_by?: string[] | null; + modified_by?: string[] | null; + } +} diff --git a/src/serialization/resources/directory/client/requests/DirectoriesCreateRequest.ts b/src/serialization/resources/directory/client/requests/DirectoriesCreateRequest.ts new file mode 100644 index 0000000..1bfe5d5 --- /dev/null +++ b/src/serialization/resources/directory/client/requests/DirectoriesCreateRequest.ts @@ -0,0 +1,33 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { SetTagWithValue } from "../../../../types/SetTagWithValue"; + +export const DirectoriesCreateRequest: core.serialization.Schema< + serializers.DirectoriesCreateRequest.Raw, + DevRev.DirectoriesCreateRequest +> = core.serialization.object({ + description: core.serialization.string().optional(), + icon: core.serialization.string().optional(), + parent: core.serialization.string().optional(), + published: core.serialization.boolean().optional(), + tags: core.serialization.list(SetTagWithValue).optional(), + thumbnail: core.serialization.string().optional(), + title: core.serialization.string(), +}); + +export declare namespace DirectoriesCreateRequest { + interface Raw { + description?: string | null; + icon?: string | null; + parent?: string | null; + published?: boolean | null; + tags?: SetTagWithValue.Raw[] | null; + thumbnail?: string | null; + title: string; + } +} diff --git a/src/serialization/resources/directory/client/requests/DirectoriesDeleteRequest.ts b/src/serialization/resources/directory/client/requests/DirectoriesDeleteRequest.ts new file mode 100644 index 0000000..afd8851 --- /dev/null +++ b/src/serialization/resources/directory/client/requests/DirectoriesDeleteRequest.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; + +export const DirectoriesDeleteRequest: core.serialization.Schema< + serializers.DirectoriesDeleteRequest.Raw, + DevRev.DirectoriesDeleteRequest +> = core.serialization.object({ + id: core.serialization.string(), +}); + +export declare namespace DirectoriesDeleteRequest { + interface Raw { + id: string; + } +} diff --git a/src/serialization/resources/directory/client/requests/DirectoriesGetRequest.ts b/src/serialization/resources/directory/client/requests/DirectoriesGetRequest.ts new file mode 100644 index 0000000..fb8ae1b --- /dev/null +++ b/src/serialization/resources/directory/client/requests/DirectoriesGetRequest.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; + +export const DirectoriesGetRequest: core.serialization.Schema< + serializers.DirectoriesGetRequest.Raw, + DevRev.DirectoriesGetRequest +> = core.serialization.object({ + id: core.serialization.string(), +}); + +export declare namespace DirectoriesGetRequest { + interface Raw { + id: string; + } +} diff --git a/src/serialization/resources/directory/client/requests/DirectoriesListRequest.ts b/src/serialization/resources/directory/client/requests/DirectoriesListRequest.ts new file mode 100644 index 0000000..e50b6f7 --- /dev/null +++ b/src/serialization/resources/directory/client/requests/DirectoriesListRequest.ts @@ -0,0 +1,35 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { ListMode } from "../../../../types/ListMode"; + +export const DirectoriesListRequest: core.serialization.Schema< + serializers.DirectoriesListRequest.Raw, + DevRev.DirectoriesListRequest +> = core.serialization.object({ + createdBy: core.serialization.property( + "created_by", + core.serialization.list(core.serialization.string()).optional() + ), + cursor: core.serialization.string().optional(), + limit: core.serialization.number().optional(), + mode: ListMode.optional(), + modifiedBy: core.serialization.property( + "modified_by", + core.serialization.list(core.serialization.string()).optional() + ), +}); + +export declare namespace DirectoriesListRequest { + interface Raw { + created_by?: string[] | null; + cursor?: string | null; + limit?: number | null; + mode?: ListMode.Raw | null; + modified_by?: string[] | null; + } +} diff --git a/src/serialization/resources/directory/client/requests/DirectoriesUpdateRequest.ts b/src/serialization/resources/directory/client/requests/DirectoriesUpdateRequest.ts new file mode 100644 index 0000000..4c023dd --- /dev/null +++ b/src/serialization/resources/directory/client/requests/DirectoriesUpdateRequest.ts @@ -0,0 +1,38 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { DirectoriesUpdateRequestReorder } from "../../../../types/DirectoriesUpdateRequestReorder"; +import { DirectoriesUpdateRequestTags } from "../../../../types/DirectoriesUpdateRequestTags"; + +export const DirectoriesUpdateRequest: core.serialization.Schema< + serializers.DirectoriesUpdateRequest.Raw, + DevRev.DirectoriesUpdateRequest +> = core.serialization.object({ + description: core.serialization.string().optional(), + icon: core.serialization.string().optional(), + id: core.serialization.string(), + parent: core.serialization.string().optional(), + published: core.serialization.boolean().optional(), + reorder: DirectoriesUpdateRequestReorder.optional(), + tags: DirectoriesUpdateRequestTags.optional(), + thumbnail: core.serialization.string().optional(), + title: core.serialization.string().optional(), +}); + +export declare namespace DirectoriesUpdateRequest { + interface Raw { + description?: string | null; + icon?: string | null; + id: string; + parent?: string | null; + published?: boolean | null; + reorder?: DirectoriesUpdateRequestReorder.Raw | null; + tags?: DirectoriesUpdateRequestTags.Raw | null; + thumbnail?: string | null; + title?: string | null; + } +} diff --git a/src/serialization/resources/directory/client/requests/index.ts b/src/serialization/resources/directory/client/requests/index.ts new file mode 100644 index 0000000..eb37645 --- /dev/null +++ b/src/serialization/resources/directory/client/requests/index.ts @@ -0,0 +1,6 @@ +export { DirectoriesCountRequest } from "./DirectoriesCountRequest"; +export { DirectoriesCreateRequest } from "./DirectoriesCreateRequest"; +export { DirectoriesDeleteRequest } from "./DirectoriesDeleteRequest"; +export { DirectoriesGetRequest } from "./DirectoriesGetRequest"; +export { DirectoriesListRequest } from "./DirectoriesListRequest"; +export { DirectoriesUpdateRequest } from "./DirectoriesUpdateRequest"; diff --git a/src/serialization/resources/directory/index.ts b/src/serialization/resources/directory/index.ts new file mode 100644 index 0000000..5ec7692 --- /dev/null +++ b/src/serialization/resources/directory/index.ts @@ -0,0 +1 @@ +export * from "./client"; diff --git a/src/serialization/resources/engagements/client/requests/EngagementsCreateRequest.ts b/src/serialization/resources/engagements/client/requests/EngagementsCreateRequest.ts index 3e9e88c..e8a8cce 100644 --- a/src/serialization/resources/engagements/client/requests/EngagementsCreateRequest.ts +++ b/src/serialization/resources/engagements/client/requests/EngagementsCreateRequest.ts @@ -18,7 +18,8 @@ export const EngagementsCreateRequest: core.serialization.Schema< externalRef: core.serialization.property("external_ref", core.serialization.string().optional()), externalUrl: core.serialization.property("external_url", core.serialization.string().optional()), members: core.serialization.list(core.serialization.string()), - parent: core.serialization.string(), + parent: core.serialization.string().optional(), + parents: core.serialization.list(core.serialization.string()).optional(), scheduledDate: core.serialization.property("scheduled_date", core.serialization.date()), tags: core.serialization.list(SetTagWithValue).optional(), title: core.serialization.string(), @@ -32,7 +33,8 @@ export declare namespace EngagementsCreateRequest { external_ref?: string | null; external_url?: string | null; members: string[]; - parent: string; + parent?: string | null; + parents?: string[] | null; scheduled_date: string; tags?: SetTagWithValue.Raw[] | null; title: string; diff --git a/src/serialization/resources/engagements/client/requests/EngagementsUpdateRequest.ts b/src/serialization/resources/engagements/client/requests/EngagementsUpdateRequest.ts index 1d48397..0f409c4 100644 --- a/src/serialization/resources/engagements/client/requests/EngagementsUpdateRequest.ts +++ b/src/serialization/resources/engagements/client/requests/EngagementsUpdateRequest.ts @@ -7,6 +7,7 @@ import * as DevRev from "../../../../../api/index"; import * as core from "../../../../../core"; import { EngagementsUpdateRequestArtifactIds } from "../../../../types/EngagementsUpdateRequestArtifactIds"; import { EngagementsUpdateRequestMembers } from "../../../../types/EngagementsUpdateRequestMembers"; +import { EngagementsUpdateRequestParents } from "../../../../types/EngagementsUpdateRequestParents"; import { EngagementsUpdateRequestTags } from "../../../../types/EngagementsUpdateRequestTags"; export const EngagementsUpdateRequest: core.serialization.Schema< @@ -19,6 +20,7 @@ export const EngagementsUpdateRequest: core.serialization.Schema< externalUrl: core.serialization.property("external_url", core.serialization.string().optional()), id: core.serialization.string(), members: EngagementsUpdateRequestMembers.optional(), + parents: EngagementsUpdateRequestParents.optional(), scheduledDate: core.serialization.property("scheduled_date", core.serialization.date().optional()), tags: EngagementsUpdateRequestTags.optional(), title: core.serialization.string().optional(), @@ -32,6 +34,7 @@ export declare namespace EngagementsUpdateRequest { external_url?: string | null; id: string; members?: EngagementsUpdateRequestMembers.Raw | null; + parents?: EngagementsUpdateRequestParents.Raw | null; scheduled_date?: string | null; tags?: EngagementsUpdateRequestTags.Raw | null; title?: string | null; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index 101d804..e6e32cb 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -12,10 +12,14 @@ export * as notifications from "./notifications"; export * from "./notifications/client/requests"; export * as conversations from "./conversations"; export * from "./conversations/client/requests"; +export * as customization from "./customization"; +export * from "./customization/client/requests"; export * as authConnection from "./authConnection"; export * from "./authConnection/client/requests"; export * as devUsers from "./devUsers"; export * from "./devUsers/client/requests"; +export * as directory from "./directory"; +export * from "./directory/client/requests"; export * as engagements from "./engagements"; export * from "./engagements/client/requests"; export * as eventSource from "./eventSource"; @@ -26,8 +30,6 @@ export * as operate from "./operate"; export * from "./operate/client/requests"; export * as keyring from "./keyring"; export * from "./keyring/client/requests"; -export * as customization from "./customization"; -export * from "./customization/client/requests"; export * as links from "./links"; export * from "./links/client/requests"; export * as slas from "./slas"; diff --git a/src/serialization/resources/revUsers/client/requests/RevUsersMergeRequest.ts b/src/serialization/resources/revUsers/client/requests/RevUsersMergeRequest.ts new file mode 100644 index 0000000..54e8149 --- /dev/null +++ b/src/serialization/resources/revUsers/client/requests/RevUsersMergeRequest.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; + +export const RevUsersMergeRequest: core.serialization.Schema< + serializers.RevUsersMergeRequest.Raw, + DevRev.RevUsersMergeRequest +> = core.serialization.object({ + primaryUser: core.serialization.property("primary_user", core.serialization.string()), + secondaryUser: core.serialization.property("secondary_user", core.serialization.string()), +}); + +export declare namespace RevUsersMergeRequest { + interface Raw { + primary_user: string; + secondary_user: string; + } +} diff --git a/src/serialization/resources/revUsers/client/requests/index.ts b/src/serialization/resources/revUsers/client/requests/index.ts index 2b54e57..82d23a4 100644 --- a/src/serialization/resources/revUsers/client/requests/index.ts +++ b/src/serialization/resources/revUsers/client/requests/index.ts @@ -3,6 +3,7 @@ export { RevUsersDeleteRequest } from "./RevUsersDeleteRequest"; export { RevUsersGetRequest } from "./RevUsersGetRequest"; export { LinkRevUserToRevOrgRequest } from "./LinkRevUserToRevOrgRequest"; export { RevUsersListRequest } from "./RevUsersListRequest"; +export { RevUsersMergeRequest } from "./RevUsersMergeRequest"; export { RevUsersScanRequest } from "./RevUsersScanRequest"; export { UnlinkRevUserFromRevOrgRequest } from "./UnlinkRevUserFromRevOrgRequest"; export { RevUsersUpdateRequest } from "./RevUsersUpdateRequest"; diff --git a/src/serialization/resources/slas/client/requests/SlaTrackersListRequest.ts b/src/serialization/resources/slas/client/requests/SlaTrackersListRequest.ts new file mode 100644 index 0000000..9f04b4a --- /dev/null +++ b/src/serialization/resources/slas/client/requests/SlaTrackersListRequest.ts @@ -0,0 +1,34 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../../../../index"; +import * as DevRev from "../../../../../api/index"; +import * as core from "../../../../../core"; +import { DateTimeFilter } from "../../../../types/DateTimeFilter"; +import { ListMode } from "../../../../types/ListMode"; + +export const SlaTrackersListRequest: core.serialization.Schema< + serializers.SlaTrackersListRequest.Raw, + DevRev.SlaTrackersListRequest +> = core.serialization.object({ + createdDate: core.serialization.property("created_date", DateTimeFilter.optional()), + cursor: core.serialization.string().optional(), + limit: core.serialization.number().optional(), + mode: ListMode.optional(), + modifiedDate: core.serialization.property("modified_date", DateTimeFilter.optional()), + stage: core.serialization.list(core.serialization.string()).optional(), + status: core.serialization.list(core.serialization.string()).optional(), +}); + +export declare namespace SlaTrackersListRequest { + interface Raw { + created_date?: DateTimeFilter.Raw | null; + cursor?: string | null; + limit?: number | null; + mode?: ListMode.Raw | null; + modified_date?: DateTimeFilter.Raw | null; + stage?: string[] | null; + status?: string[] | null; + } +} diff --git a/src/serialization/resources/slas/client/requests/index.ts b/src/serialization/resources/slas/client/requests/index.ts index 0da5c6c..094e66d 100644 --- a/src/serialization/resources/slas/client/requests/index.ts +++ b/src/serialization/resources/slas/client/requests/index.ts @@ -1,5 +1,6 @@ export { MetricDefinitionsListRequest } from "./MetricDefinitionsListRequest"; export { SlaTrackersGetRequest } from "./SlaTrackersGetRequest"; +export { SlaTrackersListRequest } from "./SlaTrackersListRequest"; export { SlasAssignRequest } from "./SlasAssignRequest"; export { SlasCreateRequest } from "./SlasCreateRequest"; export { SlasGetRequest } from "./SlasGetRequest"; diff --git a/src/serialization/types/ConversationsUpdateRequestOwnedBy.ts b/src/serialization/types/ConversationsUpdateRequestOwnedBy.ts new file mode 100644 index 0000000..284527b --- /dev/null +++ b/src/serialization/types/ConversationsUpdateRequestOwnedBy.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; + +export const ConversationsUpdateRequestOwnedBy: core.serialization.ObjectSchema< + serializers.ConversationsUpdateRequestOwnedBy.Raw, + DevRev.ConversationsUpdateRequestOwnedBy +> = core.serialization.object({ + set: core.serialization.list(core.serialization.string()).optional(), +}); + +export declare namespace ConversationsUpdateRequestOwnedBy { + interface Raw { + set?: string[] | null; + } +} diff --git a/src/serialization/types/CustomObject.ts b/src/serialization/types/CustomObject.ts new file mode 100644 index 0000000..18b11b1 --- /dev/null +++ b/src/serialization/types/CustomObject.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; +import { AtomBase } from "./AtomBase"; + +export const CustomObject: core.serialization.ObjectSchema = + core.serialization + .object({ + customFields: core.serialization.property( + "custom_fields", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() + ), + customSchemaFragments: core.serialization.property( + "custom_schema_fragments", + core.serialization.list(core.serialization.string()).optional() + ), + stockSchemaFragment: core.serialization.property( + "stock_schema_fragment", + core.serialization.string().optional() + ), + subtype: core.serialization.string().optional(), + }) + .extend(AtomBase); + +export declare namespace CustomObject { + interface Raw extends AtomBase.Raw { + custom_fields?: Record | null; + custom_schema_fragments?: string[] | null; + stock_schema_fragment?: string | null; + subtype?: string | null; + } +} diff --git a/src/serialization/types/CustomObjectsCountResponse.ts b/src/serialization/types/CustomObjectsCountResponse.ts new file mode 100644 index 0000000..b6dda1d --- /dev/null +++ b/src/serialization/types/CustomObjectsCountResponse.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; + +export const CustomObjectsCountResponse: core.serialization.ObjectSchema< + serializers.CustomObjectsCountResponse.Raw, + DevRev.CustomObjectsCountResponse +> = core.serialization.object({ + count: core.serialization.number(), +}); + +export declare namespace CustomObjectsCountResponse { + interface Raw { + count: number; + } +} diff --git a/src/serialization/types/CustomObjectsCreateResponse.ts b/src/serialization/types/CustomObjectsCreateResponse.ts new file mode 100644 index 0000000..6301023 --- /dev/null +++ b/src/serialization/types/CustomObjectsCreateResponse.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; +import { CustomObject } from "./CustomObject"; + +export const CustomObjectsCreateResponse: core.serialization.ObjectSchema< + serializers.CustomObjectsCreateResponse.Raw, + DevRev.CustomObjectsCreateResponse +> = core.serialization.object({ + customObject: core.serialization.property("custom_object", CustomObject), +}); + +export declare namespace CustomObjectsCreateResponse { + interface Raw { + custom_object: CustomObject.Raw; + } +} diff --git a/src/serialization/types/CustomObjectsDeleteResponse.ts b/src/serialization/types/CustomObjectsDeleteResponse.ts new file mode 100644 index 0000000..31d84bc --- /dev/null +++ b/src/serialization/types/CustomObjectsDeleteResponse.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; + +export const CustomObjectsDeleteResponse: core.serialization.Schema< + serializers.CustomObjectsDeleteResponse.Raw, + DevRev.CustomObjectsDeleteResponse +> = core.serialization.record(core.serialization.string(), core.serialization.unknown()); + +export declare namespace CustomObjectsDeleteResponse { + type Raw = Record; +} diff --git a/src/serialization/types/CustomObjectsGetResponse.ts b/src/serialization/types/CustomObjectsGetResponse.ts new file mode 100644 index 0000000..7b00a9c --- /dev/null +++ b/src/serialization/types/CustomObjectsGetResponse.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; +import { CustomObject } from "./CustomObject"; + +export const CustomObjectsGetResponse: core.serialization.ObjectSchema< + serializers.CustomObjectsGetResponse.Raw, + DevRev.CustomObjectsGetResponse +> = core.serialization.object({ + customObject: core.serialization.property("custom_object", CustomObject), +}); + +export declare namespace CustomObjectsGetResponse { + interface Raw { + custom_object: CustomObject.Raw; + } +} diff --git a/src/serialization/types/CustomObjectsListResponse.ts b/src/serialization/types/CustomObjectsListResponse.ts new file mode 100644 index 0000000..642870c --- /dev/null +++ b/src/serialization/types/CustomObjectsListResponse.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; +import { CustomObject } from "./CustomObject"; + +export const CustomObjectsListResponse: core.serialization.ObjectSchema< + serializers.CustomObjectsListResponse.Raw, + DevRev.CustomObjectsListResponse +> = core.serialization.object({ + nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()), + prevCursor: core.serialization.property("prev_cursor", core.serialization.string().optional()), + result: core.serialization.list(CustomObject), +}); + +export declare namespace CustomObjectsListResponse { + interface Raw { + next_cursor?: string | null; + prev_cursor?: string | null; + result: CustomObject.Raw[]; + } +} diff --git a/src/serialization/types/CustomObjectsUpdateResponse.ts b/src/serialization/types/CustomObjectsUpdateResponse.ts new file mode 100644 index 0000000..5f4638a --- /dev/null +++ b/src/serialization/types/CustomObjectsUpdateResponse.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; +import { CustomObject } from "./CustomObject"; + +export const CustomObjectsUpdateResponse: core.serialization.ObjectSchema< + serializers.CustomObjectsUpdateResponse.Raw, + DevRev.CustomObjectsUpdateResponse +> = core.serialization.object({ + customObject: core.serialization.property("custom_object", CustomObject), +}); + +export declare namespace CustomObjectsUpdateResponse { + interface Raw { + custom_object: CustomObject.Raw; + } +} diff --git a/src/serialization/types/DirectoriesCountResponse.ts b/src/serialization/types/DirectoriesCountResponse.ts new file mode 100644 index 0000000..51902a0 --- /dev/null +++ b/src/serialization/types/DirectoriesCountResponse.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; + +export const DirectoriesCountResponse: core.serialization.ObjectSchema< + serializers.DirectoriesCountResponse.Raw, + DevRev.DirectoriesCountResponse +> = core.serialization.object({ + count: core.serialization.number(), +}); + +export declare namespace DirectoriesCountResponse { + interface Raw { + count: number; + } +} diff --git a/src/serialization/types/DirectoriesCreateResponse.ts b/src/serialization/types/DirectoriesCreateResponse.ts new file mode 100644 index 0000000..fc2f4ee --- /dev/null +++ b/src/serialization/types/DirectoriesCreateResponse.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; +import { Directory } from "./Directory"; + +export const DirectoriesCreateResponse: core.serialization.ObjectSchema< + serializers.DirectoriesCreateResponse.Raw, + DevRev.DirectoriesCreateResponse +> = core.serialization.object({ + directory: Directory, +}); + +export declare namespace DirectoriesCreateResponse { + interface Raw { + directory: Directory.Raw; + } +} diff --git a/src/serialization/types/DirectoriesDeleteResponse.ts b/src/serialization/types/DirectoriesDeleteResponse.ts new file mode 100644 index 0000000..66f03f9 --- /dev/null +++ b/src/serialization/types/DirectoriesDeleteResponse.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; + +export const DirectoriesDeleteResponse: core.serialization.Schema< + serializers.DirectoriesDeleteResponse.Raw, + DevRev.DirectoriesDeleteResponse +> = core.serialization.record(core.serialization.string(), core.serialization.unknown()); + +export declare namespace DirectoriesDeleteResponse { + type Raw = Record; +} diff --git a/src/serialization/types/DirectoriesGetResponse.ts b/src/serialization/types/DirectoriesGetResponse.ts new file mode 100644 index 0000000..9acfd48 --- /dev/null +++ b/src/serialization/types/DirectoriesGetResponse.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; +import { Directory } from "./Directory"; + +export const DirectoriesGetResponse: core.serialization.ObjectSchema< + serializers.DirectoriesGetResponse.Raw, + DevRev.DirectoriesGetResponse +> = core.serialization.object({ + directory: Directory, +}); + +export declare namespace DirectoriesGetResponse { + interface Raw { + directory: Directory.Raw; + } +} diff --git a/src/serialization/types/DirectoriesListResponse.ts b/src/serialization/types/DirectoriesListResponse.ts new file mode 100644 index 0000000..9933d60 --- /dev/null +++ b/src/serialization/types/DirectoriesListResponse.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; +import { Directory } from "./Directory"; + +export const DirectoriesListResponse: core.serialization.ObjectSchema< + serializers.DirectoriesListResponse.Raw, + DevRev.DirectoriesListResponse +> = core.serialization.object({ + directories: core.serialization.list(Directory), + nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()), + prevCursor: core.serialization.property("prev_cursor", core.serialization.string().optional()), +}); + +export declare namespace DirectoriesListResponse { + interface Raw { + directories: Directory.Raw[]; + next_cursor?: string | null; + prev_cursor?: string | null; + } +} diff --git a/src/serialization/types/DirectoriesUpdateRequestReorder.ts b/src/serialization/types/DirectoriesUpdateRequestReorder.ts new file mode 100644 index 0000000..e5fd638 --- /dev/null +++ b/src/serialization/types/DirectoriesUpdateRequestReorder.ts @@ -0,0 +1,22 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; + +export const DirectoriesUpdateRequestReorder: core.serialization.ObjectSchema< + serializers.DirectoriesUpdateRequestReorder.Raw, + DevRev.DirectoriesUpdateRequestReorder +> = core.serialization.object({ + after: core.serialization.string().optional(), + before: core.serialization.string().optional(), +}); + +export declare namespace DirectoriesUpdateRequestReorder { + interface Raw { + after?: string | null; + before?: string | null; + } +} diff --git a/src/serialization/types/DirectoriesUpdateRequestTags.ts b/src/serialization/types/DirectoriesUpdateRequestTags.ts new file mode 100644 index 0000000..97d7104 --- /dev/null +++ b/src/serialization/types/DirectoriesUpdateRequestTags.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; +import { SetTagWithValue } from "./SetTagWithValue"; + +export const DirectoriesUpdateRequestTags: core.serialization.ObjectSchema< + serializers.DirectoriesUpdateRequestTags.Raw, + DevRev.DirectoriesUpdateRequestTags +> = core.serialization.object({ + set: core.serialization.list(SetTagWithValue).optional(), +}); + +export declare namespace DirectoriesUpdateRequestTags { + interface Raw { + set?: SetTagWithValue.Raw[] | null; + } +} diff --git a/src/serialization/types/DirectoriesUpdateResponse.ts b/src/serialization/types/DirectoriesUpdateResponse.ts new file mode 100644 index 0000000..b2631da --- /dev/null +++ b/src/serialization/types/DirectoriesUpdateResponse.ts @@ -0,0 +1,21 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; +import { Directory } from "./Directory"; + +export const DirectoriesUpdateResponse: core.serialization.ObjectSchema< + serializers.DirectoriesUpdateResponse.Raw, + DevRev.DirectoriesUpdateResponse +> = core.serialization.object({ + directory: Directory, +}); + +export declare namespace DirectoriesUpdateResponse { + interface Raw { + directory: Directory.Raw; + } +} diff --git a/src/serialization/types/Directory.ts b/src/serialization/types/Directory.ts new file mode 100644 index 0000000..c490640 --- /dev/null +++ b/src/serialization/types/Directory.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; +import { ArtifactSummary } from "./ArtifactSummary"; +import { DirectorySummary } from "./DirectorySummary"; +import { TagWithValue } from "./TagWithValue"; +import { AtomBase } from "./AtomBase"; + +export const Directory: core.serialization.ObjectSchema = + core.serialization + .object({ + body: ArtifactSummary.optional(), + description: core.serialization.string().optional(), + icon: core.serialization.string().optional(), + parent: DirectorySummary.optional(), + published: core.serialization.boolean().optional(), + rank: core.serialization.string().optional(), + tags: core.serialization.list(TagWithValue).optional(), + thumbnail: ArtifactSummary.optional(), + title: core.serialization.string().optional(), + }) + .extend(AtomBase); + +export declare namespace Directory { + interface Raw extends AtomBase.Raw { + body?: ArtifactSummary.Raw | null; + description?: string | null; + icon?: string | null; + parent?: DirectorySummary.Raw | null; + published?: boolean | null; + rank?: string | null; + tags?: TagWithValue.Raw[] | null; + thumbnail?: ArtifactSummary.Raw | null; + title?: string | null; + } +} diff --git a/src/serialization/types/EngagementsUpdateRequestParents.ts b/src/serialization/types/EngagementsUpdateRequestParents.ts new file mode 100644 index 0000000..2328fa9 --- /dev/null +++ b/src/serialization/types/EngagementsUpdateRequestParents.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; + +export const EngagementsUpdateRequestParents: core.serialization.ObjectSchema< + serializers.EngagementsUpdateRequestParents.Raw, + DevRev.EngagementsUpdateRequestParents +> = core.serialization.object({ + set: core.serialization.list(core.serialization.string()).optional(), +}); + +export declare namespace EngagementsUpdateRequestParents { + interface Raw { + set?: string[] | null; + } +} diff --git a/src/serialization/types/GeneralPreferencesGroupPreferredLocale.ts b/src/serialization/types/GeneralPreferencesGroupPreferredLocale.ts index ea8948a..ca97231 100644 --- a/src/serialization/types/GeneralPreferencesGroupPreferredLocale.ts +++ b/src/serialization/types/GeneralPreferencesGroupPreferredLocale.ts @@ -9,8 +9,8 @@ import * as core from "../../core"; export const GeneralPreferencesGroupPreferredLocale: core.serialization.Schema< serializers.GeneralPreferencesGroupPreferredLocale.Raw, DevRev.GeneralPreferencesGroupPreferredLocale -> = core.serialization.enum_(["en_us", "ja_jp"]); +> = core.serialization.enum_(["en_us", "es_ar", "ja_jp", "nl_aw", "nl_sx"]); export declare namespace GeneralPreferencesGroupPreferredLocale { - type Raw = "en_us" | "ja_jp"; + type Raw = "en_us" | "es_ar" | "ja_jp" | "nl_aw" | "nl_sx"; } diff --git a/src/serialization/types/LinkType.ts b/src/serialization/types/LinkType.ts index 33a7a0a..5ab98f2 100644 --- a/src/serialization/types/LinkType.ts +++ b/src/serialization/types/LinkType.ts @@ -14,6 +14,7 @@ export const LinkType: core.serialization.Schema = core.serialization.record(core.serialization.string(), core.serialization.unknown()); + +export declare namespace RevUsersMergeResponse { + type Raw = Record; +} diff --git a/src/serialization/types/SlaTrackersListResponse.ts b/src/serialization/types/SlaTrackersListResponse.ts new file mode 100644 index 0000000..f1f3e80 --- /dev/null +++ b/src/serialization/types/SlaTrackersListResponse.ts @@ -0,0 +1,25 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import * as core from "../../core"; +import { SlaTracker } from "./SlaTracker"; + +export const SlaTrackersListResponse: core.serialization.ObjectSchema< + serializers.SlaTrackersListResponse.Raw, + DevRev.SlaTrackersListResponse +> = core.serialization.object({ + nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()), + prevCursor: core.serialization.property("prev_cursor", core.serialization.string().optional()), + slaTrackers: core.serialization.property("sla_trackers", core.serialization.list(SlaTracker)), +}); + +export declare namespace SlaTrackersListResponse { + interface Raw { + next_cursor?: string | null; + prev_cursor?: string | null; + sla_trackers: SlaTracker.Raw[]; + } +} diff --git a/src/serialization/types/TimelineEntryBase.ts b/src/serialization/types/TimelineEntryBase.ts index 31894c7..60531a2 100644 --- a/src/serialization/types/TimelineEntryBase.ts +++ b/src/serialization/types/TimelineEntryBase.ts @@ -6,6 +6,7 @@ import * as serializers from "../index"; import * as DevRev from "../../api/index"; import * as core from "../../core"; import { TimelineEntryObjectType } from "./TimelineEntryObjectType"; +import { TimelineEntryPanel } from "./TimelineEntryPanel"; import { TimelineReaction } from "./TimelineReaction"; import { TimelineThread } from "./TimelineThread"; import { TimelineEntryVisibility } from "./TimelineEntryVisibility"; @@ -21,6 +22,7 @@ export const TimelineEntryBase: core.serialization.ObjectSchema< object: core.serialization.string(), objectDisplayId: core.serialization.property("object_display_id", core.serialization.string()), objectType: core.serialization.property("object_type", TimelineEntryObjectType.optional()), + panels: core.serialization.list(TimelineEntryPanel).optional(), reactions: core.serialization.list(TimelineReaction).optional(), thread: TimelineThread.optional(), visibility: TimelineEntryVisibility.optional(), @@ -34,6 +36,7 @@ export declare namespace TimelineEntryBase { object: string; object_display_id: string; object_type?: TimelineEntryObjectType.Raw | null; + panels?: TimelineEntryPanel.Raw[] | null; reactions?: TimelineReaction.Raw[] | null; thread?: TimelineThread.Raw | null; visibility?: TimelineEntryVisibility.Raw | null; diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index d94e1ec..4748d7a 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -120,6 +120,7 @@ export * from "./ConversationsGetResponse"; export * from "./ConversationsListResponse"; export * from "./ConversationsUpdateRequestAppliesToParts"; export * from "./ConversationsUpdateRequestMetadata"; +export * from "./ConversationsUpdateRequestOwnedBy"; export * from "./ConversationsUpdateRequestTags"; export * from "./ConversationsUpdateRequestUserSessions"; export * from "./ConversationsUpdateResponse"; @@ -137,8 +138,15 @@ export * from "./CustomLinkTypeCreateResponse"; export * from "./CustomLinkTypeGetResponse"; export * from "./CustomLinkTypeListResponse"; export * from "./CustomLinkTypeUpdateResponse"; +export * from "./CustomObject"; export * from "./CustomObjectSearchSummary"; export * from "./CustomObjectSummary"; +export * from "./CustomObjectsCountResponse"; +export * from "./CustomObjectsCreateResponse"; +export * from "./CustomObjectsDeleteResponse"; +export * from "./CustomObjectsGetResponse"; +export * from "./CustomObjectsListResponse"; +export * from "./CustomObjectsUpdateResponse"; export * from "./CustomSchemaFragment"; export * from "./CustomSchemaFragmentBaseSummary"; export * from "./CustomSchemaFragmentCondition"; @@ -194,6 +202,15 @@ export * from "./DevUsersSelfRequest"; export * from "./DevUsersSelfResponse"; export * from "./DevUsersUpdateJobHistoryItem"; export * from "./DevUsersUpdateResponse"; +export * from "./DirectoriesCountResponse"; +export * from "./DirectoriesCreateResponse"; +export * from "./DirectoriesDeleteResponse"; +export * from "./DirectoriesGetResponse"; +export * from "./DirectoriesListResponse"; +export * from "./DirectoriesUpdateRequestReorder"; +export * from "./DirectoriesUpdateRequestTags"; +export * from "./DirectoriesUpdateResponse"; +export * from "./Directory"; export * from "./DirectorySummary"; export * from "./DynamicGroupInfo"; export * from "./DynamicVistaSummary"; @@ -213,6 +230,7 @@ export * from "./EngagementsGetResponse"; export * from "./EngagementsListResponse"; export * from "./EngagementsUpdateRequestArtifactIds"; export * from "./EngagementsUpdateRequestMembers"; +export * from "./EngagementsUpdateRequestParents"; export * from "./EngagementsUpdateRequestTags"; export * from "./EngagementsUpdateResponse"; export * from "./Enhancement"; @@ -415,6 +433,7 @@ export * from "./RevUsersCreateResponse"; export * from "./RevUsersDeleteResponse"; export * from "./RevUsersGetResponse"; export * from "./RevUsersListResponse"; +export * from "./RevUsersMergeResponse"; export * from "./RevUsersScanResponse"; export * from "./RevUsersUpdateRequestArtifacts"; export * from "./RevUsersUpdateRequestCustomSchemaFragments"; @@ -499,6 +518,7 @@ export * from "./SlaSummaryStage"; export * from "./SlaTracker"; export * from "./SlaTrackerSummary"; export * from "./SlaTrackersGetResponse"; +export * from "./SlaTrackersListResponse"; export * from "./SlaType"; export * from "./SlasAssignResponse"; export * from "./SlasCreateResponse"; diff --git a/yarn.lock b/yarn.lock index ce67c39..df4b033 100644 --- a/yarn.lock +++ b/yarn.lock @@ -10,131 +10,131 @@ "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.24" -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465" - integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA== +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.25.7.tgz#438f2c524071531d643c6f0188e1e28f130cebc7" + integrity sha512-0xZJFNE5XMpENsgfHYTw8FbX4kv53mFLn2i3XPoq69LyhYSCBJtitaHx9QnsVTrsogI4Z3+HtEfZ2/GFPOtf5g== dependencies: - "@babel/highlight" "^7.24.7" + "@babel/highlight" "^7.25.7" picocolors "^1.0.0" -"@babel/compat-data@^7.25.2": - version "7.25.4" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.4.tgz#7d2a80ce229890edcf4cc259d4d696cb4dae2fcb" - integrity sha512-+LGRog6RAsCJrrrg/IO6LGmpphNe5DiK30dGjCoxxeGv49B10/3XYGxPsAwrDlMFcFEvdAUavDT8r9k/hSyQqQ== +"@babel/compat-data@^7.25.7": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.8.tgz#0376e83df5ab0eb0da18885c0140041f0747a402" + integrity sha512-ZsysZyXY4Tlx+Q53XdnOFmqwfB9QDTHYxaZYajWRoBLuLEAwI2UIbtxOjWh/cFaa9IKUlcB+DDuoskLuKu56JA== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": - version "7.25.2" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.25.2.tgz#ed8eec275118d7613e77a352894cd12ded8eba77" - integrity sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA== + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.25.8.tgz#a57137d2a51bbcffcfaeba43cb4dd33ae3e0e1c6" + integrity sha512-Oixnb+DzmRT30qu9d3tJSQkxuygWm32DFykT4bRoORPa9hZ/L4KhVB/XiRm6KG+roIEM7DBQlmg27kw2HZkdZg== dependencies: "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.25.0" - "@babel/helper-compilation-targets" "^7.25.2" - "@babel/helper-module-transforms" "^7.25.2" - "@babel/helpers" "^7.25.0" - "@babel/parser" "^7.25.0" - "@babel/template" "^7.25.0" - "@babel/traverse" "^7.25.2" - "@babel/types" "^7.25.2" + "@babel/code-frame" "^7.25.7" + "@babel/generator" "^7.25.7" + "@babel/helper-compilation-targets" "^7.25.7" + "@babel/helper-module-transforms" "^7.25.7" + "@babel/helpers" "^7.25.7" + "@babel/parser" "^7.25.8" + "@babel/template" "^7.25.7" + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.8" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.25.0", "@babel/generator@^7.25.6", "@babel/generator@^7.7.2": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.6.tgz#0df1ad8cb32fe4d2b01d8bf437f153d19342a87c" - integrity sha512-VPC82gr1seXOpkjAAKoLhP50vx4vGNlF4msF64dSFq1P8RfB+QAuJWGHPXXPc8QyfVWwwB/TNNU4+ayZmHNbZw== +"@babel/generator@^7.25.7", "@babel/generator@^7.7.2": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.7.tgz#de86acbeb975a3e11ee92dd52223e6b03b479c56" + integrity sha512-5Dqpl5fyV9pIAD62yK9P7fcA768uVPUyrQmqpqstHWgMma4feF1x/oFysBCVZLY5wJ2GkMUCdsNDnGZrPoR6rA== dependencies: - "@babel/types" "^7.25.6" + "@babel/types" "^7.25.7" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" - jsesc "^2.5.1" + jsesc "^3.0.2" -"@babel/helper-compilation-targets@^7.25.2": - version "7.25.2" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz#e1d9410a90974a3a5a66e84ff55ef62e3c02d06c" - integrity sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw== +"@babel/helper-compilation-targets@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.7.tgz#11260ac3322dda0ef53edfae6e97b961449f5fa4" + integrity sha512-DniTEax0sv6isaw6qSQSfV4gVRNtw2rte8HHM45t9ZR0xILaufBRNkpMifCRiAPyvL4ACD6v0gfCwCmtOQaV4A== dependencies: - "@babel/compat-data" "^7.25.2" - "@babel/helper-validator-option" "^7.24.8" - browserslist "^4.23.1" + "@babel/compat-data" "^7.25.7" + "@babel/helper-validator-option" "^7.25.7" + browserslist "^4.24.0" lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-module-imports@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz#f2f980392de5b84c3328fc71d38bd81bbb83042b" - integrity sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA== - dependencies: - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-module-transforms@^7.25.2": - version "7.25.2" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz#ee713c29768100f2776edf04d4eb23b8d27a66e6" - integrity sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ== - dependencies: - "@babel/helper-module-imports" "^7.24.7" - "@babel/helper-simple-access" "^7.24.7" - "@babel/helper-validator-identifier" "^7.24.7" - "@babel/traverse" "^7.25.2" - -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.24.8", "@babel/helper-plugin-utils@^7.8.0": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz#94ee67e8ec0e5d44ea7baeb51e571bd26af07878" - integrity sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg== - -"@babel/helper-simple-access@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz#bcade8da3aec8ed16b9c4953b74e506b51b5edb3" - integrity sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg== - dependencies: - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-string-parser@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" - integrity sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ== - -"@babel/helper-validator-identifier@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db" - integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w== - -"@babel/helper-validator-option@^7.24.8": - version "7.24.8" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz#3725cdeea8b480e86d34df15304806a06975e33d" - integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== - -"@babel/helpers@^7.25.0": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.6.tgz#57ee60141829ba2e102f30711ffe3afab357cc60" - integrity sha512-Xg0tn4HcfTijTwfDwYlvVCl43V6h4KyVVX2aEm4qdO/PC6L2YvzLHFdmxhoeSA3eslcE6+ZVXHgWwopXYLNq4Q== - dependencies: - "@babel/template" "^7.25.0" - "@babel/types" "^7.25.6" - -"@babel/highlight@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.7.tgz#a05ab1df134b286558aae0ed41e6c5f731bf409d" - integrity sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw== - dependencies: - "@babel/helper-validator-identifier" "^7.24.7" +"@babel/helper-module-imports@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.25.7.tgz#dba00d9523539152906ba49263e36d7261040472" + integrity sha512-o0xCgpNmRohmnoWKQ0Ij8IdddjyBFE4T2kagL/x6M3+4zUgc+4qTOUBoNe4XxDskt1HPKO007ZPiMgLDq2s7Kw== + dependencies: + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/helper-module-transforms@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.7.tgz#2ac9372c5e001b19bc62f1fe7d96a18cb0901d1a" + integrity sha512-k/6f8dKG3yDz/qCwSM+RKovjMix563SLxQFo0UhRNo239SP6n9u5/eLtKD6EAjwta2JHJ49CsD8pms2HdNiMMQ== + dependencies: + "@babel/helper-module-imports" "^7.25.7" + "@babel/helper-simple-access" "^7.25.7" + "@babel/helper-validator-identifier" "^7.25.7" + "@babel/traverse" "^7.25.7" + +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.25.7", "@babel/helper-plugin-utils@^7.8.0": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.25.7.tgz#8ec5b21812d992e1ef88a9b068260537b6f0e36c" + integrity sha512-eaPZai0PiqCi09pPs3pAFfl/zYgGaE6IdXtYvmf0qlcDTd3WCtO7JWCcRd64e0EQrcYgiHibEZnOGsSY4QSgaw== + +"@babel/helper-simple-access@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.25.7.tgz#5eb9f6a60c5d6b2e0f76057004f8dacbddfae1c0" + integrity sha512-FPGAkJmyoChQeM+ruBGIDyrT2tKfZJO8NcxdC+CWNJi7N8/rZpSxK7yvBJ5O/nF1gfu5KzN7VKG3YVSLFfRSxQ== + dependencies: + "@babel/traverse" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/helper-string-parser@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.25.7.tgz#d50e8d37b1176207b4fe9acedec386c565a44a54" + integrity sha512-CbkjYdsJNHFk8uqpEkpCvRs3YRp9tY6FmFY7wLMSYuGYkrdUi7r2lc4/wqsvlHoMznX3WJ9IP8giGPq68T/Y6g== + +"@babel/helper-validator-identifier@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.7.tgz#77b7f60c40b15c97df735b38a66ba1d7c3e93da5" + integrity sha512-AM6TzwYqGChO45oiuPqwL2t20/HdMC1rTPAesnBCgPCSF1x3oN9MVUwQV2iyz4xqWrctwK5RNC8LV22kaQCNYg== + +"@babel/helper-validator-option@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.25.7.tgz#97d1d684448228b30b506d90cace495d6f492729" + integrity sha512-ytbPLsm+GjArDYXJ8Ydr1c/KJuutjF2besPNbIZnZ6MKUxi/uTA22t2ymmA4WFjZFpjiAMO0xuuJPqK2nvDVfQ== + +"@babel/helpers@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.7.tgz#091b52cb697a171fe0136ab62e54e407211f09c2" + integrity sha512-Sv6pASx7Esm38KQpF/U/OXLwPPrdGHNKoeblRxgZRLXnAtnkEe4ptJPDtAZM7fBLadbc1Q07kQpSiGQ0Jg6tRA== + dependencies: + "@babel/template" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/highlight@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.25.7.tgz#20383b5f442aa606e7b5e3043b0b1aafe9f37de5" + integrity sha512-iYyACpW3iW8Fw+ZybQK+drQre+ns/tKpXbNESfrhNnPLIklLbXr7MYJ6gPEd0iETGLOK+SxMjVvKb/ffmk+FEw== + dependencies: + "@babel/helper-validator-identifier" "^7.25.7" chalk "^2.4.2" js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.0", "@babel/parser@^7.25.6": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.6.tgz#85660c5ef388cbbf6e3d2a694ee97a38f18afe2f" - integrity sha512-trGdfBdbD0l1ZPmcJ83eNxB9rbEax4ALFTF7fN386TMYbeCQbyme5cOEXQhbGXKebwGaB/J52w1mrklMcbgy6Q== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.7", "@babel/parser@^7.25.8": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.8.tgz#f6aaf38e80c36129460c1657c0762db584c9d5e2" + integrity sha512-HcttkxzdPucv3nNFmfOOMfFf64KgdJVqm1KaCm25dPGMLElo9nsLvXeJECQg8UzPuBGLyTSA0ZzqCtDSzKTEoQ== dependencies: - "@babel/types" "^7.25.6" + "@babel/types" "^7.25.8" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -165,11 +165,11 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-import-attributes@^7.24.7": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.6.tgz#6d4c78f042db0e82fd6436cd65fec5dc78ad2bde" - integrity sha512-sXaDXaJN9SNLymBdlWFA+bjzBhFD617ZaFiY13dGt7TVslVvVgA6fkZOP7Ki3IGElC45lwHdOTrCtKZGVAWeLQ== + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.25.7.tgz#d78dd0499d30df19a598e63ab895e21b909bc43f" + integrity sha512-AqVo+dguCgmpi/3mYBdu9lkngOBlQ2w2vnNpa6gfiCxQZLzV4ZbhsXitJ2Yblkoe1VQwtHSaNmIaGll/26YWRw== dependencies: - "@babel/helper-plugin-utils" "^7.24.8" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-import-meta@^7.10.4": version "7.10.4" @@ -186,11 +186,11 @@ "@babel/helper-plugin-utils" "^7.8.0" "@babel/plugin-syntax-jsx@^7.7.2": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.24.7.tgz#39a1fa4a7e3d3d7f34e2acc6be585b718d30e02d" - integrity sha512-6ddciUPe/mpMnOKv/U+RSd2vvVy+Yw/JfBB0ZHYjEZt9NLHmCUylNYlsbqCCS1Bffjlb0fCwC9Vqz+sBz6PsiQ== + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.7.tgz#5352d398d11ea5e7ef330c854dea1dae0bf18165" + integrity sha512-ruZOnKO+ajVL/MVx+PwNBPOkrnXTXoWMtte1MBpegfCArhqOe3Bj52avVj1huLLxNKYKXYaSxZ2F+woK1ekXfw== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.25.7" "@babel/plugin-syntax-logical-assignment-operators@^7.10.4": version "7.10.4" @@ -249,41 +249,41 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript@^7.7.2": - version "7.25.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.4.tgz#04db9ce5a9043d9c635e75ae7969a2cd50ca97ff" - integrity sha512-uMOCoHVU52BsSWxPOMVv5qKRdeSlPuImUCB2dlPuBSU+W2/ROE7/Zg8F2Kepbk+8yBa68LlRKxO+xgEVWorsDg== - dependencies: - "@babel/helper-plugin-utils" "^7.24.8" - -"@babel/template@^7.25.0", "@babel/template@^7.3.3": - version "7.25.0" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.0.tgz#e733dc3134b4fede528c15bc95e89cb98c52592a" - integrity sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q== - dependencies: - "@babel/code-frame" "^7.24.7" - "@babel/parser" "^7.25.0" - "@babel/types" "^7.25.0" - -"@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.6.tgz#04fad980e444f182ecf1520504941940a90fea41" - integrity sha512-9Vrcx5ZW6UwK5tvqsj0nGpp/XzqthkT0dqIc9g1AdtygFToNtTF67XzYS//dm+SAK9cp3B9R4ZO/46p63SCjlQ== - dependencies: - "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.25.6" - "@babel/parser" "^7.25.6" - "@babel/template" "^7.25.0" - "@babel/types" "^7.25.6" + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.7.tgz#bfc05b0cc31ebd8af09964650cee723bb228108b" + integrity sha512-rR+5FDjpCHqqZN2bzZm18bVYGaejGq5ZkpVCJLXor/+zlSrSoc4KWcHI0URVWjl/68Dyr1uwZUz/1njycEAv9g== + dependencies: + "@babel/helper-plugin-utils" "^7.25.7" + +"@babel/template@^7.25.7", "@babel/template@^7.3.3": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.7.tgz#27f69ce382855d915b14ab0fe5fb4cbf88fa0769" + integrity sha512-wRwtAgI3bAS+JGU2upWNL9lSlDcRCqD05BZ1n3X2ONLH1WilFP6O1otQjeMK/1g0pvYcXC7b/qVUB1keofjtZA== + dependencies: + "@babel/code-frame" "^7.25.7" + "@babel/parser" "^7.25.7" + "@babel/types" "^7.25.7" + +"@babel/traverse@^7.25.7": + version "7.25.7" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.7.tgz#83e367619be1cab8e4f2892ef30ba04c26a40fa8" + integrity sha512-jatJPT1Zjqvh/1FyJs6qAHL+Dzb7sTb+xr7Q+gM1b+1oBsMsQQ4FkVKb6dFlJvLlVssqkRzV05Jzervt9yhnzg== + dependencies: + "@babel/code-frame" "^7.25.7" + "@babel/generator" "^7.25.7" + "@babel/parser" "^7.25.7" + "@babel/template" "^7.25.7" + "@babel/types" "^7.25.7" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.25.6", "@babel/types@^7.3.3": - version "7.25.6" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.6.tgz#893942ddb858f32ae7a004ec9d3a76b3463ef8e6" - integrity sha512-/l42B1qxpG6RdfYf343Uw1vmDjeNhneUXtzhojE7pDgfpEypmRhI6j1kr17XCVv4Cgl9HdAiQY2x0GwKm7rWCw== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.25.7", "@babel/types@^7.25.8", "@babel/types@^7.3.3": + version "7.25.8" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.8.tgz#5cf6037258e8a9bcad533f4979025140cb9993e1" + integrity sha512-JWtuCu8VQsMladxVz/P4HzHUGCAwpuqacmowgXFs5XjxIgKuNjnLokQzuVjlTvIzODaDmpjT3oxcC48vyk9EWg== dependencies: - "@babel/helper-string-parser" "^7.24.8" - "@babel/helper-validator-identifier" "^7.24.7" + "@babel/helper-string-parser" "^7.25.7" + "@babel/helper-validator-identifier" "^7.25.7" to-fast-properties "^2.0.0" "@bcoe/v8-coverage@^0.2.3": @@ -640,9 +640,9 @@ form-data "^4.0.0" "@types/node@*": - version "22.7.0" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.0.tgz#670aa1874bc836863e5c116f9f2c32416ff27e1f" - integrity sha512-MOdOibwBs6KW1vfqz2uKMlxq5xAfAZ98SZjO8e3XnAbFnTJtAspqhWk7hrdSAs9/Y14ZWMiy7/MxMUzAOadYEw== + version "22.7.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.5.tgz#cfde981727a7ab3611a481510b473ae54442b92b" + integrity sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ== dependencies: undici-types "~6.19.2" @@ -849,7 +849,7 @@ braces@^3.0.3: dependencies: fill-range "^7.1.1" -browserslist@^4.23.1: +browserslist@^4.24.0: version "4.24.0" resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.0.tgz#a1325fe4bc80b64fda169629fc01b3d6cecd38d4" integrity sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A== @@ -905,9 +905,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001663: - version "1.0.30001663" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001663.tgz#1529a723505e429fdfd49532e9fc42273ba7fed7" - integrity sha512-o9C3X27GLKbLeTYZ6HBOLU1tsAcBZsLis28wrVzddShCS16RujjHp9GDHKZqrB3meE0YjhawvMFsGb/igqiPzA== + version "1.0.30001668" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001668.tgz#98e214455329f54bf7a4d70b49c9794f0fbedbed" + integrity sha512-nWLrdxqCdblixUO+27JtGJJE/txpJlyUy5YN1u53wLZkP0emYCo5zgS6QYft7VUYR42LGgi/S5hdLZTrnyIddw== chalk@^2.4.2: version "2.4.2" @@ -1103,9 +1103,9 @@ domexception@^4.0.0: webidl-conversions "^7.0.0" electron-to-chromium@^1.5.28: - version "1.5.28" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.28.tgz#aee074e202c6ee8a0030a9c2ef0b3fe9f967d576" - integrity sha512-VufdJl+rzaKZoYVUijN13QcXVF5dWPZANeFTLNy+OSpHdDL5ynXTF35+60RSBbaQYB1ae723lQXHCrf4pyLsMw== + version "1.5.38" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.38.tgz#c6a14e1506717c5a46d439580d7424d8d5860180" + integrity sha512-VbeVexmZ1IFh+5EfrYz1I0HTzHVIlJa112UEWhciPyeOcKJGeTv6N8WnG4wsQB81DGCaVEGhpSb6o6a8WYFXXg== emittery@^0.13.1: version "0.13.1" @@ -1117,7 +1117,7 @@ emoji-regex@^8.0.0: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== -entities@^4.4.0: +entities@^4.5.0: version "4.5.0" resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48" integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== @@ -1141,7 +1141,7 @@ es-errors@^1.3.0: resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== -escalade@^3.1.1, escalade@^3.1.2: +escalade@^3.1.1, escalade@^3.2.0: version "3.2.0" resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== @@ -1241,9 +1241,9 @@ find-up@^4.0.0, find-up@^4.1.0: path-exists "^4.0.0" form-data@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" - integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== + version "4.0.1" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.1.tgz#ba1076daaaa5bfd7e99c1a6cb02aa0a5cff90d48" + integrity sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw== dependencies: asynckit "^0.4.0" combined-stream "^1.0.8" @@ -1947,10 +1947,10 @@ jsdom@^20.0.0: ws "^8.11.0" xml-name-validator "^4.0.0" -jsesc@^2.5.1: - version "2.5.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" - integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== +jsesc@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-3.0.2.tgz#bb8b09a6597ba426425f2e4a07245c3d00b9343e" + integrity sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g== json-parse-even-better-errors@^2.3.0: version "2.3.1" @@ -2092,9 +2092,9 @@ npm-run-path@^4.0.1: path-key "^3.0.0" nwsapi@^2.2.2: - version "2.2.12" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.12.tgz#fb6af5c0ec35b27b4581eb3bbad34ec9e5c696f8" - integrity sha512-qXDmcVlZV4XRtKFzddidpfVP4oMSGhga+xdMc25mv8kaLUHtgzCDhUxkrN8exkGdTlLNaXj7CV3GtON7zuGZ+w== + version "2.2.13" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.13.tgz#e56b4e98960e7a040e5474536587e599c4ff4655" + integrity sha512-cTGB9ptp9dY9A5VbMSe7fQBcl/tt22Vcqdq8+eN93rblOuE0aCFu4aZ2vMwct/2t+lFnosm8RkQW1I0Omb1UtQ== object-inspect@^1.13.1: version "1.13.2" @@ -2152,11 +2152,11 @@ parse-json@^5.2.0: lines-and-columns "^1.1.6" parse5@^7.0.0, parse5@^7.1.1: - version "7.1.2" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.1.2.tgz#0736bebbfd77793823240a23b7fc5e010b7f8e32" - integrity sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw== + version "7.2.0" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.2.0.tgz#8a0591ce9b7c5e2027173ab737d4d3fc3d826fab" + integrity sha512-ZkDsAOcxsUMZ4Lz5fVciOehNcJ+Gb8gTzcA4yl3wnc273BAybYWrQ+Ks/OjCjSEpjvQkDSeZbybK9qj2VHHdGA== dependencies: - entities "^4.4.0" + entities "^4.5.0" path-exists@^4.0.0: version "4.0.0" @@ -2178,7 +2178,7 @@ path-parse@^1.0.7: resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== -picocolors@^1.0.0, picocolors@^1.0.1: +picocolors@^1.0.0, picocolors@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw== @@ -2544,12 +2544,12 @@ universalify@^0.2.0: integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== update-browserslist-db@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e" - integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ== + version "1.1.1" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz#80846fba1d79e82547fb661f8d141e0945755fe5" + integrity sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A== dependencies: - escalade "^3.1.2" - picocolors "^1.0.1" + escalade "^3.2.0" + picocolors "^1.1.0" url-join@4.0.1: version "4.0.1"