diff --git a/package.json b/package.json index f37675d..3f55a12 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devrev/api", - "version": "0.0.4", + "version": "0.0.5", "private": false, "repository": "https://github.com/devrev/sdk-typescript", "main": "./index.js", diff --git a/reference.md b/reference.md index f8f31fe..0b23faa 100644 --- a/reference.md +++ b/reference.md @@ -1822,6 +1822,276 @@ await client.codeChanges.update({ </dl> </details> +## notifications + +<details><summary><code>client.notifications.<a href="/src/api/resources/notifications/client/Client.ts">contentTemplateCreate</a>({ ...params }) -> DevRev.ContentTemplateCreateResponse</code></summary> +<dl> +<dd> + +#### 📝 Description + +<dl> +<dd> + +<dl> +<dd> + +Create the content template. + +</dd> +</dl> +</dd> +</dl> + +#### 🔌 Usage + +<dl> +<dd> + +<dl> +<dd> + +```typescript +await client.notifications.contentTemplateCreate({ + type: "notification_content_template", + inputFieldsSchema: [ + { + fieldType: "array", + value: { + key: "value", + }, + }, + ], + name: "string", + defaults: [{}], +}); +``` + +</dd> +</dl> +</dd> +</dl> + +#### ⚙️ Parameters + +<dl> +<dd> + +<dl> +<dd> + +**request:** `DevRev.ContentTemplateCreateRequest` + +</dd> +</dl> + +<dl> +<dd> + +**requestOptions:** `Notifications.RequestOptions` + +</dd> +</dl> +</dd> +</dl> + +</dd> +</dl> +</details> + +<details><summary><code>client.notifications.<a href="/src/api/resources/notifications/client/Client.ts">contentTemplateGetPost</a>({ ...params }) -> DevRev.ContentTemplateGetResponse</code></summary> +<dl> +<dd> + +#### 📝 Description + +<dl> +<dd> + +<dl> +<dd> + +Get the content template. + +</dd> +</dl> +</dd> +</dl> + +#### 🔌 Usage + +<dl> +<dd> + +<dl> +<dd> + +```typescript +await client.notifications.contentTemplateGetPost({ + id: "id", +}); +``` + +</dd> +</dl> +</dd> +</dl> + +#### ⚙️ Parameters + +<dl> +<dd> + +<dl> +<dd> + +**request:** `DevRev.ContentTemplateGetRequest` + +</dd> +</dl> + +<dl> +<dd> + +**requestOptions:** `Notifications.RequestOptions` + +</dd> +</dl> +</dd> +</dl> + +</dd> +</dl> +</details> + +<details><summary><code>client.notifications.<a href="/src/api/resources/notifications/client/Client.ts">contentTemplateListPost</a>({ ...params }) -> DevRev.ContentTemplateListResponse</code></summary> +<dl> +<dd> + +#### 📝 Description + +<dl> +<dd> + +<dl> +<dd> + +Lists the content templates. + +</dd> +</dl> +</dd> +</dl> + +#### 🔌 Usage + +<dl> +<dd> + +<dl> +<dd> + +```typescript +await client.notifications.contentTemplateListPost(); +``` + +</dd> +</dl> +</dd> +</dl> + +#### ⚙️ Parameters + +<dl> +<dd> + +<dl> +<dd> + +**request:** `DevRev.ContentTemplateListRequest` + +</dd> +</dl> + +<dl> +<dd> + +**requestOptions:** `Notifications.RequestOptions` + +</dd> +</dl> +</dd> +</dl> + +</dd> +</dl> +</details> + +<details><summary><code>client.notifications.<a href="/src/api/resources/notifications/client/Client.ts">send</a>({ ...params }) -> DevRev.NotificationsSendResponse</code></summary> +<dl> +<dd> + +#### 📝 Description + +<dl> +<dd> + +<dl> +<dd> + +Generate a notification. + +</dd> +</dl> +</dd> +</dl> + +#### 🔌 Usage + +<dl> +<dd> + +<dl> +<dd> + +```typescript +await client.notifications.send({ + notifications: [], +}); +``` + +</dd> +</dl> +</dd> +</dl> + +#### ⚙️ Parameters + +<dl> +<dd> + +<dl> +<dd> + +**request:** `DevRev.NotificationsSendRequest` + +</dd> +</dl> + +<dl> +<dd> + +**requestOptions:** `Notifications.RequestOptions` + +</dd> +</dl> +</dd> +</dl> + +</dd> +</dl> +</details> + ## conversations <details><summary><code>client.conversations.<a href="/src/api/resources/conversations/client/Client.ts">create</a>({ ...params }) -> DevRev.ConversationsCreateResponse</code></summary> @@ -4660,9 +4930,9 @@ await client.keyring.keyringsCreateCallbackPost({ </dl> </details> -## links +## customization -<details><summary><code>client.links.<a href="/src/api/resources/links/client/Client.ts">create</a>({ ...params }) -> DevRev.LinksCreateResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customLinkTypeCreate</a>({ ...params }) -> DevRev.CustomLinkTypeCreateResponse</code></summary> <dl> <dd> @@ -4674,7 +4944,7 @@ await client.keyring.keyringsCreateCallbackPost({ <dl> <dd> -Creates a link between two objects to indicate a relationship. +Creates a custom link type. </dd> </dl> @@ -4690,10 +4960,20 @@ Creates a link between two objects to indicate a relationship. <dd> ```typescript -await client.links.create({ - linkType: DevRev.LinkType.CustomLink, - source: "string", - target: "string", +await client.customization.customLinkTypeCreate({ + backwardName: "backward_name", + forwardName: "forward_name", + name: "name", + sourceTypes: [ + { + key: "value", + }, + ], + targetTypes: [ + { + key: "value", + }, + ], }); ``` @@ -4710,7 +4990,7 @@ await client.links.create({ <dl> <dd> -**request:** `DevRev.LinksCreateRequest` +**request:** `DevRev.CustomLinkTypeCreateRequest` </dd> </dl> @@ -4718,7 +4998,7 @@ await client.links.create({ <dl> <dd> -**requestOptions:** `Links.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -4729,7 +5009,7 @@ await client.links.create({ </dl> </details> -<details><summary><code>client.links.<a href="/src/api/resources/links/client/Client.ts">delete</a>({ ...params }) -> DevRev.LinksDeleteResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customLinkTypeGetPost</a>({ ...params }) -> DevRev.CustomLinkTypeGetResponse</code></summary> <dl> <dd> @@ -4741,7 +5021,7 @@ await client.links.create({ <dl> <dd> -Deletes a link. +Gets a custom link type. </dd> </dl> @@ -4757,7 +5037,7 @@ Deletes a link. <dd> ```typescript -await client.links.delete({ +await client.customization.customLinkTypeGetPost({ id: "id", }); ``` @@ -4775,7 +5055,7 @@ await client.links.delete({ <dl> <dd> -**request:** `DevRev.LinksDeleteRequest` +**request:** `DevRev.CustomLinkTypeGetRequest` </dd> </dl> @@ -4783,7 +5063,7 @@ await client.links.delete({ <dl> <dd> -**requestOptions:** `Links.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -4794,7 +5074,7 @@ await client.links.delete({ </dl> </details> -<details><summary><code>client.links.<a href="/src/api/resources/links/client/Client.ts">getPost</a>({ ...params }) -> DevRev.LinksGetResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customLinkTypeListPost</a>({ ...params }) -> DevRev.CustomLinkTypeListResponse</code></summary> <dl> <dd> @@ -4806,7 +5086,7 @@ await client.links.delete({ <dl> <dd> -Gets the requested link's information. +Lists custom link types. </dd> </dl> @@ -4822,9 +5102,7 @@ Gets the requested link's information. <dd> ```typescript -await client.links.getPost({ - id: "string", -}); +await client.customization.customLinkTypeListPost(); ``` </dd> @@ -4840,7 +5118,7 @@ await client.links.getPost({ <dl> <dd> -**request:** `DevRev.LinksGetRequest` +**request:** `DevRev.CustomLinkTypeListRequest` </dd> </dl> @@ -4848,7 +5126,7 @@ await client.links.getPost({ <dl> <dd> -**requestOptions:** `Links.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -4859,7 +5137,7 @@ await client.links.getPost({ </dl> </details> -<details><summary><code>client.links.<a href="/src/api/resources/links/client/Client.ts">listPost</a>({ ...params }) -> DevRev.LinksListResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customLinkTypeUpdate</a>({ ...params }) -> DevRev.CustomLinkTypeUpdateResponse</code></summary> <dl> <dd> @@ -4871,7 +5149,7 @@ await client.links.getPost({ <dl> <dd> -Lists the available links. +Updates a custom link type. </dd> </dl> @@ -4887,8 +5165,8 @@ Lists the available links. <dd> ```typescript -await client.links.listPost({ - object: "object", +await client.customization.customLinkTypeUpdate({ + id: "id", }); ``` @@ -4905,7 +5183,7 @@ await client.links.listPost({ <dl> <dd> -**request:** `DevRev.LinksListRequest` +**request:** `DevRev.CustomLinkTypeUpdateRequest` </dd> </dl> @@ -4913,7 +5191,7 @@ await client.links.listPost({ <dl> <dd> -**requestOptions:** `Links.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -4924,9 +5202,7 @@ await client.links.listPost({ </dl> </details> -## slas - -<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">metricDefinitionsListPost</a>({ ...params }) -> DevRev.MetricDefinitionsListResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">aggregatedSchemaGetPost</a>({ ...params }) -> DevRev.AggregatedSchemaGetResponse</code></summary> <dl> <dd> @@ -4938,7 +5214,7 @@ await client.links.listPost({ <dl> <dd> -Lists metric definitions matching a filter. +Gets the aggregated schema. </dd> </dl> @@ -4954,7 +5230,9 @@ Lists metric definitions matching a filter. <dd> ```typescript -await client.slas.metricDefinitionsListPost(); +await client.customization.aggregatedSchemaGetPost({ + customSchemaFragmentIds: ["custom_schema_fragment_ids"], +}); ``` </dd> @@ -4970,7 +5248,7 @@ await client.slas.metricDefinitionsListPost(); <dl> <dd> -**request:** `DevRev.MetricDefinitionsListRequest` +**request:** `DevRev.AggregatedSchemaGetRequest` </dd> </dl> @@ -4978,7 +5256,7 @@ await client.slas.metricDefinitionsListPost(); <dl> <dd> -**requestOptions:** `Slas.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -4989,7 +5267,7 @@ await client.slas.metricDefinitionsListPost(); </dl> </details> -<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">slaTrackersGetPost</a>({ ...params }) -> DevRev.SlaTrackersGetResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customSchemaFragmentsGetPost</a>({ ...params }) -> DevRev.CustomSchemaFragmentsGetResponse</code></summary> <dl> <dd> @@ -5001,7 +5279,7 @@ await client.slas.metricDefinitionsListPost(); <dl> <dd> -Gets an SLA tracker. +Gets a custom schema fragment. </dd> </dl> @@ -5017,8 +5295,8 @@ Gets an SLA tracker. <dd> ```typescript -await client.slas.slaTrackersGetPost({ - id: "id", +await client.customization.customSchemaFragmentsGetPost({ + id: "string", }); ``` @@ -5035,7 +5313,7 @@ await client.slas.slaTrackersGetPost({ <dl> <dd> -**request:** `DevRev.SlaTrackersGetRequest` +**request:** `DevRev.CustomSchemaFragmentsGetRequest` </dd> </dl> @@ -5043,7 +5321,7 @@ await client.slas.slaTrackersGetPost({ <dl> <dd> -**requestOptions:** `Slas.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -5054,7 +5332,7 @@ await client.slas.slaTrackersGetPost({ </dl> </details> -<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">assign</a>({ ...params }) -> DevRev.SlasAssignResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customSchemaFragmentsListPost</a>({ ...params }) -> DevRev.CustomSchemaFragmentsListResponse</code></summary> <dl> <dd> @@ -5066,7 +5344,7 @@ await client.slas.slaTrackersGetPost({ <dl> <dd> -Assigns the SLA to a set of Rev organizations. +Lists custom schema fragments. </dd> </dl> @@ -5082,9 +5360,7 @@ Assigns the SLA to a set of Rev organizations. <dd> ```typescript -await client.slas.assign({ - revOrgs: ["REV-AbCdEfGh"], -}); +await client.customization.customSchemaFragmentsListPost(); ``` </dd> @@ -5100,7 +5376,7 @@ await client.slas.assign({ <dl> <dd> -**request:** `DevRev.SlasAssignRequest` +**request:** `DevRev.CustomSchemaFragmentsListRequest` </dd> </dl> @@ -5108,7 +5384,7 @@ await client.slas.assign({ <dl> <dd> -**requestOptions:** `Slas.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -5119,7 +5395,7 @@ await client.slas.assign({ </dl> </details> -<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">create</a>({ ...params }) -> DevRev.SlasCreateResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customSchemaFragmentsSet</a>({ ...params }) -> DevRev.CustomSchemaFragmentsSetResponse</code></summary> <dl> <dd> @@ -5131,7 +5407,7 @@ await client.slas.assign({ <dl> <dd> -Creates an SLA in draft status. +Creates or updates a custom schema fragment. </dd> </dl> @@ -5147,8 +5423,29 @@ Creates an SLA in draft status. <dd> ```typescript -await client.slas.create({ - name: "name", +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", }); ``` @@ -5165,7 +5462,7 @@ await client.slas.create({ <dl> <dd> -**request:** `DevRev.SlasCreateRequest` +**request:** `DevRev.CustomSchemaFragmentsSetRequest` </dd> </dl> @@ -5173,7 +5470,7 @@ await client.slas.create({ <dl> <dd> -**requestOptions:** `Slas.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -5184,7 +5481,7 @@ await client.slas.create({ </dl> </details> -<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">getPost</a>({ ...params }) -> DevRev.SlasGetResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">stockSchemaFragmentsGetPost</a>({ ...params }) -> DevRev.StockSchemaFragmentsGetResponse</code></summary> <dl> <dd> @@ -5196,7 +5493,7 @@ await client.slas.create({ <dl> <dd> -Gets an SLA. +Gets a stock schema fragment. </dd> </dl> @@ -5212,9 +5509,7 @@ Gets an SLA. <dd> ```typescript -await client.slas.getPost({ - id: "id", -}); +await client.customization.stockSchemaFragmentsGetPost(); ``` </dd> @@ -5230,7 +5525,7 @@ await client.slas.getPost({ <dl> <dd> -**request:** `DevRev.SlasGetRequest` +**request:** `DevRev.StockSchemaFragmentsGetRequest` </dd> </dl> @@ -5238,7 +5533,7 @@ await client.slas.getPost({ <dl> <dd> -**requestOptions:** `Slas.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -5249,7 +5544,7 @@ await client.slas.getPost({ </dl> </details> -<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">listPost</a>({ ...params }) -> DevRev.SlasListResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">stockSchemaFragmentsListPost</a>({ ...params }) -> DevRev.StockSchemaFragmentsListResponse</code></summary> <dl> <dd> @@ -5261,7 +5556,7 @@ await client.slas.getPost({ <dl> <dd> -Lists SLAs matching a filter. +Lists stock schema fragments. </dd> </dl> @@ -5277,7 +5572,7 @@ Lists SLAs matching a filter. <dd> ```typescript -await client.slas.listPost(); +await client.customization.stockSchemaFragmentsListPost(); ``` </dd> @@ -5293,7 +5588,7 @@ await client.slas.listPost(); <dl> <dd> -**request:** `DevRev.SlasListRequest` +**request:** `DevRev.StockSchemaFragmentsListRequest` </dd> </dl> @@ -5301,7 +5596,7 @@ await client.slas.listPost(); <dl> <dd> -**requestOptions:** `Slas.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -5312,7 +5607,7 @@ await client.slas.listPost(); </dl> </details> -<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">transition</a>({ ...params }) -> DevRev.SlasTransitionResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">subtypesListPost</a>({ ...params }) -> DevRev.SubtypesListResponse</code></summary> <dl> <dd> @@ -5324,7 +5619,7 @@ await client.slas.listPost(); <dl> <dd> -Changes the status of an SLA. +Lists subtypes. </dd> </dl> @@ -5340,10 +5635,7 @@ Changes the status of an SLA. <dd> ```typescript -await client.slas.transition({ - id: "id", - status: DevRev.SlaStatus.Archived, -}); +await client.customization.subtypesListPost(); ``` </dd> @@ -5359,7 +5651,7 @@ await client.slas.transition({ <dl> <dd> -**request:** `DevRev.SlasTransitionRequest` +**request:** `DevRev.SubtypesListRequest` </dd> </dl> @@ -5367,7 +5659,7 @@ await client.slas.transition({ <dl> <dd> -**requestOptions:** `Slas.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -5378,7 +5670,7 @@ await client.slas.transition({ </dl> </details> -<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">update</a>({ ...params }) -> DevRev.SlasUpdateResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStagesCreate</a>({ ...params }) -> DevRev.CustomStagesCreateResponse</code></summary> <dl> <dd> @@ -5390,7 +5682,7 @@ await client.slas.transition({ <dl> <dd> -Updates a draft SLA. +Creates a custom stage. </dd> </dl> @@ -5406,8 +5698,10 @@ Updates a draft SLA. <dd> ```typescript -await client.slas.update({ - id: "id", +await client.customization.customStagesCreate({ + name: "name", + ordinal: 1, + state: "state", }); ``` @@ -5424,7 +5718,7 @@ await client.slas.update({ <dl> <dd> -**request:** `DevRev.SlasUpdateRequest` +**request:** `DevRev.CustomStagesCreateRequest` </dd> </dl> @@ -5432,7 +5726,7 @@ await client.slas.update({ <dl> <dd> -**requestOptions:** `Slas.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -5443,9 +5737,7 @@ await client.slas.update({ </dl> </details> -## product-usage - -<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">metricsDevrevIngest</a>({ ...params }) -> void</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStagesGetPost</a>({ ...params }) -> DevRev.CustomStagesGetResponse</code></summary> <dl> <dd> @@ -5457,7 +5749,7 @@ await client.slas.update({ <dl> <dd> -Ingest endpoint for DevRev metrics data from clients. +Gets a custom stage. </dd> </dl> @@ -5473,19 +5765,8 @@ Ingest endpoint for DevRev metrics data from clients. <dd> ```typescript -await client.productUsage.metricsDevrevIngest({ - metrics: [ - { - accountRef: "account_ref", - dataPoints: [ - { - timestamp: new Date("2023-01-01T12:00:00.000Z"), - value: 1.1, - }, - ], - name: "name", - }, - ], +await client.customization.customStagesGetPost({ + id: "id", }); ``` @@ -5502,7 +5783,7 @@ await client.productUsage.metricsDevrevIngest({ <dl> <dd> -**request:** `DevRev.MetricsDataIngestRequest` +**request:** `DevRev.CustomStagesGetRequest` </dd> </dl> @@ -5510,7 +5791,7 @@ await client.productUsage.metricsDevrevIngest({ <dl> <dd> -**requestOptions:** `ProductUsage.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -5521,7 +5802,7 @@ await client.productUsage.metricsDevrevIngest({ </dl> </details> -<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">uomsCountPost</a>({ ...params }) -> DevRev.UomsCountResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStagesListPost</a>({ ...params }) -> DevRev.CustomStagesListResponse</code></summary> <dl> <dd> @@ -5533,7 +5814,7 @@ await client.productUsage.metricsDevrevIngest({ <dl> <dd> -Counts the number of Unit of Measurements based on the given filters. +Lists custom stages. </dd> </dl> @@ -5549,7 +5830,7 @@ Counts the number of Unit of Measurements based on the given filters. <dd> ```typescript -await client.productUsage.uomsCountPost(); +await client.customization.customStagesListPost(); ``` </dd> @@ -5565,7 +5846,7 @@ await client.productUsage.uomsCountPost(); <dl> <dd> -**request:** `DevRev.UomsCountRequest` +**request:** `DevRev.CustomStagesListRequest` </dd> </dl> @@ -5573,7 +5854,7 @@ await client.productUsage.uomsCountPost(); <dl> <dd> -**requestOptions:** `ProductUsage.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -5584,7 +5865,7 @@ await client.productUsage.uomsCountPost(); </dl> </details> -<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">uomsCreate</a>({ ...params }) -> DevRev.UomsCreateResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStagesUpdate</a>({ ...params }) -> DevRev.CustomStagesUpdateResponse</code></summary> <dl> <dd> @@ -5596,7 +5877,7 @@ await client.productUsage.uomsCountPost(); <dl> <dd> -Creates a Unit of Measurement on a part. +Updates a custom stage. </dd> </dl> @@ -5612,21 +5893,8 @@ Creates a Unit of Measurement on a part. <dd> ```typescript -await client.productUsage.uomsCreate({ - aggregationDetail: { - aggregationType: DevRev.AggregationDetailAggregationType.Duration, - uniqueDimension: "string", - }, - description: "string", - dimensions: ["string"], - metricName: "string", - name: "string", - partId: "string", - productId: "string", - unit: { - type: DevRev.UnitType.Boolean, - name: "string", - }, +await client.customization.customStagesUpdate({ + id: "id", }); ``` @@ -5643,7 +5911,7 @@ await client.productUsage.uomsCreate({ <dl> <dd> -**request:** `DevRev.UomsCreateRequest` +**request:** `DevRev.CustomStagesUpdateRequest` </dd> </dl> @@ -5651,7 +5919,7 @@ await client.productUsage.uomsCreate({ <dl> <dd> -**requestOptions:** `ProductUsage.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -5662,7 +5930,7 @@ await client.productUsage.uomsCreate({ </dl> </details> -<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">uomsDelete</a>({ ...params }) -> void</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStatesCreate</a>({ ...params }) -> DevRev.CustomStatesCreateResponse</code></summary> <dl> <dd> @@ -5674,7 +5942,7 @@ await client.productUsage.uomsCreate({ <dl> <dd> -Deletes a Unit of Measurement. +Creates a custom state. </dd> </dl> @@ -5690,8 +5958,9 @@ Deletes a Unit of Measurement. <dd> ```typescript -await client.productUsage.uomsDelete({ - id: "id", +await client.customization.customStatesCreate({ + name: "name", + ordinal: 1, }); ``` @@ -5708,7 +5977,7 @@ await client.productUsage.uomsDelete({ <dl> <dd> -**request:** `DevRev.UomsDeleteRequest` +**request:** `DevRev.CustomStatesCreateRequest` </dd> </dl> @@ -5716,7 +5985,7 @@ await client.productUsage.uomsDelete({ <dl> <dd> -**requestOptions:** `ProductUsage.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -5727,7 +5996,7 @@ await client.productUsage.uomsDelete({ </dl> </details> -<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">uomsGetPost</a>({ ...params }) -> DevRev.UomsGetResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStatesGetPost</a>({ ...params }) -> DevRev.CustomStatesGetResponse</code></summary> <dl> <dd> @@ -5739,7 +6008,7 @@ await client.productUsage.uomsDelete({ <dl> <dd> -Gets a Unit of Measurement. +Gets a custom state. </dd> </dl> @@ -5755,8 +6024,8 @@ Gets a Unit of Measurement. <dd> ```typescript -await client.productUsage.uomsGetPost({ - id: "string", +await client.customization.customStatesGetPost({ + id: "id", }); ``` @@ -5773,7 +6042,7 @@ await client.productUsage.uomsGetPost({ <dl> <dd> -**request:** `DevRev.UomsGetRequest` +**request:** `DevRev.CustomStatesGetRequest` </dd> </dl> @@ -5781,7 +6050,7 @@ await client.productUsage.uomsGetPost({ <dl> <dd> -**requestOptions:** `ProductUsage.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -5792,7 +6061,7 @@ await client.productUsage.uomsGetPost({ </dl> </details> -<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">uomsListPost</a>({ ...params }) -> DevRev.UomsListResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStatesListPost</a>({ ...params }) -> DevRev.CustomStatesListResponse</code></summary> <dl> <dd> @@ -5804,7 +6073,7 @@ await client.productUsage.uomsGetPost({ <dl> <dd> -Gets the Unit of Measurements based on the given filters. +Lists custom states. </dd> </dl> @@ -5820,7 +6089,7 @@ Gets the Unit of Measurements based on the given filters. <dd> ```typescript -await client.productUsage.uomsListPost(); +await client.customization.customStatesListPost(); ``` </dd> @@ -5836,7 +6105,7 @@ await client.productUsage.uomsListPost(); <dl> <dd> -**request:** `DevRev.UomsListRequest` +**request:** `DevRev.CustomStatesListRequest` </dd> </dl> @@ -5844,7 +6113,7 @@ await client.productUsage.uomsListPost(); <dl> <dd> -**requestOptions:** `ProductUsage.RequestOptions` +**requestOptions:** `Customization.RequestOptions` </dd> </dl> @@ -5855,7 +6124,7 @@ await client.productUsage.uomsListPost(); </dl> </details> -<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">uomsUpdate</a>({ ...params }) -> DevRev.UomsUpdateResponse</code></summary> +<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStatesUpdate</a>({ ...params }) -> DevRev.CustomStatesUpdateResponse</code></summary> <dl> <dd> @@ -5867,7 +6136,7 @@ await client.productUsage.uomsListPost(); <dl> <dd> -Updates a Unit of Measurement. +Updates a custom state. </dd> </dl> @@ -5883,19 +6152,207 @@ Updates a Unit of Measurement. <dd> ```typescript -await client.productUsage.uomsUpdate({ - aggregationType: DevRev.AggregationDetailAggregationType.Duration, - description: "string", - dimensions: { - add: ["string"], - remove: ["string"], - }, +await client.customization.customStatesUpdate({ + id: "id", +}); +``` + +</dd> +</dl> +</dd> +</dl> + +#### ⚙️ Parameters + +<dl> +<dd> + +<dl> +<dd> + +**request:** `DevRev.CustomStatesUpdateRequest` + +</dd> +</dl> + +<dl> +<dd> + +**requestOptions:** `Customization.RequestOptions` + +</dd> +</dl> +</dd> +</dl> + +</dd> +</dl> +</details> + +## links + +<details><summary><code>client.links.<a href="/src/api/resources/links/client/Client.ts">create</a>({ ...params }) -> DevRev.LinksCreateResponse</code></summary> +<dl> +<dd> + +#### 📝 Description + +<dl> +<dd> + +<dl> +<dd> + +Creates a link between two objects to indicate a relationship. + +</dd> +</dl> +</dd> +</dl> + +#### 🔌 Usage + +<dl> +<dd> + +<dl> +<dd> + +```typescript +await client.links.create({ + linkType: DevRev.LinkType.CustomLink, + source: "string", + target: "string", +}); +``` + +</dd> +</dl> +</dd> +</dl> + +#### ⚙️ Parameters + +<dl> +<dd> + +<dl> +<dd> + +**request:** `DevRev.LinksCreateRequest` + +</dd> +</dl> + +<dl> +<dd> + +**requestOptions:** `Links.RequestOptions` + +</dd> +</dl> +</dd> +</dl> + +</dd> +</dl> +</details> + +<details><summary><code>client.links.<a href="/src/api/resources/links/client/Client.ts">delete</a>({ ...params }) -> DevRev.LinksDeleteResponse</code></summary> +<dl> +<dd> + +#### 📝 Description + +<dl> +<dd> + +<dl> +<dd> + +Deletes a link. + +</dd> +</dl> +</dd> +</dl> + +#### 🔌 Usage + +<dl> +<dd> + +<dl> +<dd> + +```typescript +await client.links.delete({ + id: "id", +}); +``` + +</dd> +</dl> +</dd> +</dl> + +#### ⚙️ Parameters + +<dl> +<dd> + +<dl> +<dd> + +**request:** `DevRev.LinksDeleteRequest` + +</dd> +</dl> + +<dl> +<dd> + +**requestOptions:** `Links.RequestOptions` + +</dd> +</dl> +</dd> +</dl> + +</dd> +</dl> +</details> + +<details><summary><code>client.links.<a href="/src/api/resources/links/client/Client.ts">getPost</a>({ ...params }) -> DevRev.LinksGetResponse</code></summary> +<dl> +<dd> + +#### 📝 Description + +<dl> +<dd> + +<dl> +<dd> + +Gets the requested link's information. + +</dd> +</dl> +</dd> +</dl> + +#### 🔌 Usage + +<dl> +<dd> + +<dl> +<dd> + +```typescript +await client.links.getPost({ id: "string", - isEnabled: true, - name: "string", - partId: "string", - productId: "string", - unit: "string", }); ``` @@ -5912,7 +6369,72 @@ await client.productUsage.uomsUpdate({ <dl> <dd> -**request:** `DevRev.UomsUpdateRequest` +**request:** `DevRev.LinksGetRequest` + +</dd> +</dl> + +<dl> +<dd> + +**requestOptions:** `Links.RequestOptions` + +</dd> +</dl> +</dd> +</dl> + +</dd> +</dl> +</details> + +<details><summary><code>client.links.<a href="/src/api/resources/links/client/Client.ts">listPost</a>({ ...params }) -> DevRev.LinksListResponse</code></summary> +<dl> +<dd> + +#### 📝 Description + +<dl> +<dd> + +<dl> +<dd> + +Lists the available links. + +</dd> +</dl> +</dd> +</dl> + +#### 🔌 Usage + +<dl> +<dd> + +<dl> +<dd> + +```typescript +await client.links.listPost({ + object: "object", +}); +``` + +</dd> +</dl> +</dd> +</dl> + +#### ⚙️ Parameters + +<dl> +<dd> + +<dl> +<dd> + +**request:** `DevRev.LinksListRequest` </dd> </dl> @@ -5920,7 +6442,7 @@ await client.productUsage.uomsUpdate({ <dl> <dd> -**requestOptions:** `ProductUsage.RequestOptions` +**requestOptions:** `Links.RequestOptions` </dd> </dl> @@ -5931,9 +6453,9 @@ await client.productUsage.uomsUpdate({ </dl> </details> -## notifications +## slas -<details><summary><code>client.notifications.<a href="/src/api/resources/notifications/client/Client.ts">send</a>({ ...params }) -> DevRev.NotificationsSendResponse</code></summary> +<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">metricDefinitionsListPost</a>({ ...params }) -> DevRev.MetricDefinitionsListResponse</code></summary> <dl> <dd> @@ -5945,7 +6467,7 @@ await client.productUsage.uomsUpdate({ <dl> <dd> -Generate a notification. +Lists metric definitions matching a filter. </dd> </dl> @@ -5961,9 +6483,7 @@ Generate a notification. <dd> ```typescript -await client.notifications.send({ - notifications: [], -}); +await client.slas.metricDefinitionsListPost(); ``` </dd> @@ -5979,7 +6499,7 @@ await client.notifications.send({ <dl> <dd> -**request:** `DevRev.NotificationsSendRequest` +**request:** `DevRev.MetricDefinitionsListRequest` </dd> </dl> @@ -5987,7 +6507,7 @@ await client.notifications.send({ <dl> <dd> -**requestOptions:** `Notifications.RequestOptions` +**requestOptions:** `Slas.RequestOptions` </dd> </dl> @@ -5998,9 +6518,7 @@ await client.notifications.send({ </dl> </details> -## schedules - -<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgScheduleFragmentsCreate</a>({ ...params }) -> DevRev.OrgScheduleFragmentsCreateResponse</code></summary> +<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">slaTrackersGetPost</a>({ ...params }) -> DevRev.SlaTrackersGetResponse</code></summary> <dl> <dd> @@ -6012,7 +6530,7 @@ await client.notifications.send({ <dl> <dd> -Creates an organization schedule fragment. +Gets an SLA tracker. </dd> </dl> @@ -6028,16 +6546,8 @@ Creates an organization schedule fragment. <dd> ```typescript -await client.schedules.orgScheduleFragmentsCreate({ - from: new Date("2023-01-01T12:00:00.000Z"), - intervals: [ - { - from: new Date("2023-01-01T12:00:00.000Z"), - name: "name", - }, - ], - name: "name", - to: new Date("2023-01-01T12:00:00.000Z"), +await client.slas.slaTrackersGetPost({ + id: "id", }); ``` @@ -6054,7 +6564,7 @@ await client.schedules.orgScheduleFragmentsCreate({ <dl> <dd> -**request:** `DevRev.OrgScheduleFragmentsCreateRequest` +**request:** `DevRev.SlaTrackersGetRequest` </dd> </dl> @@ -6062,7 +6572,7 @@ await client.schedules.orgScheduleFragmentsCreate({ <dl> <dd> -**requestOptions:** `Schedules.RequestOptions` +**requestOptions:** `Slas.RequestOptions` </dd> </dl> @@ -6073,7 +6583,7 @@ await client.schedules.orgScheduleFragmentsCreate({ </dl> </details> -<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgScheduleFragmentsGetPost</a>({ ...params }) -> DevRev.OrgScheduleFragmentsGetResponse</code></summary> +<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">assign</a>({ ...params }) -> DevRev.SlasAssignResponse</code></summary> <dl> <dd> @@ -6085,7 +6595,7 @@ await client.schedules.orgScheduleFragmentsCreate({ <dl> <dd> -Gets an organization schedule fragment. +Assigns the SLA to a set of Rev organizations. </dd> </dl> @@ -6101,8 +6611,8 @@ Gets an organization schedule fragment. <dd> ```typescript -await client.schedules.orgScheduleFragmentsGetPost({ - id: "id", +await client.slas.assign({ + revOrgs: ["REV-AbCdEfGh"], }); ``` @@ -6119,7 +6629,7 @@ await client.schedules.orgScheduleFragmentsGetPost({ <dl> <dd> -**request:** `DevRev.OrgScheduleFragmentsGetRequest` +**request:** `DevRev.SlasAssignRequest` </dd> </dl> @@ -6127,7 +6637,7 @@ await client.schedules.orgScheduleFragmentsGetPost({ <dl> <dd> -**requestOptions:** `Schedules.RequestOptions` +**requestOptions:** `Slas.RequestOptions` </dd> </dl> @@ -6138,7 +6648,7 @@ await client.schedules.orgScheduleFragmentsGetPost({ </dl> </details> -<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgScheduleFragmentsTransition</a>({ ...params }) -> DevRev.OrgScheduleFragmentsTransitionResponse</code></summary> +<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">create</a>({ ...params }) -> DevRev.SlasCreateResponse</code></summary> <dl> <dd> @@ -6150,7 +6660,7 @@ await client.schedules.orgScheduleFragmentsGetPost({ <dl> <dd> -Changes stage of an organization schedule fragment. +Creates an SLA in draft status. </dd> </dl> @@ -6166,9 +6676,8 @@ Changes stage of an organization schedule fragment. <dd> ```typescript -await client.schedules.orgScheduleFragmentsTransition({ - id: "id", - status: DevRev.OrgScheduleFragmentStatus.Archived, +await client.slas.create({ + name: "name", }); ``` @@ -6185,7 +6694,7 @@ await client.schedules.orgScheduleFragmentsTransition({ <dl> <dd> -**request:** `DevRev.OrgScheduleFragmentsTransitionRequest` +**request:** `DevRev.SlasCreateRequest` </dd> </dl> @@ -6193,7 +6702,7 @@ await client.schedules.orgScheduleFragmentsTransition({ <dl> <dd> -**requestOptions:** `Schedules.RequestOptions` +**requestOptions:** `Slas.RequestOptions` </dd> </dl> @@ -6204,7 +6713,7 @@ await client.schedules.orgScheduleFragmentsTransition({ </dl> </details> -<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgSchedulesCreate</a>({ ...params }) -> DevRev.OrgSchedulesCreateResponse</code></summary> +<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">getPost</a>({ ...params }) -> DevRev.SlasGetResponse</code></summary> <dl> <dd> @@ -6216,8 +6725,7 @@ await client.schedules.orgScheduleFragmentsTransition({ <dl> <dd> -Creates an organization schedule with a default weekly organization -schedule and a list of organization schedule fragments. +Gets an SLA. </dd> </dl> @@ -6233,9 +6741,8 @@ schedule and a list of organization schedule fragments. <dd> ```typescript -await client.schedules.orgSchedulesCreate({ - name: "name", - timezone: "timezone", +await client.slas.getPost({ + id: "id", }); ``` @@ -6252,7 +6759,7 @@ await client.schedules.orgSchedulesCreate({ <dl> <dd> -**request:** `DevRev.OrgSchedulesCreateRequest` +**request:** `DevRev.SlasGetRequest` </dd> </dl> @@ -6260,7 +6767,7 @@ await client.schedules.orgSchedulesCreate({ <dl> <dd> -**requestOptions:** `Schedules.RequestOptions` +**requestOptions:** `Slas.RequestOptions` </dd> </dl> @@ -6271,7 +6778,7 @@ await client.schedules.orgSchedulesCreate({ </dl> </details> -<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgSchedulesGetPost</a>({ ...params }) -> DevRev.OrgSchedulesGetResponse</code></summary> +<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">listPost</a>({ ...params }) -> DevRev.SlasListResponse</code></summary> <dl> <dd> @@ -6283,7 +6790,7 @@ await client.schedules.orgSchedulesCreate({ <dl> <dd> -Gets an organization schedule. +Lists SLAs matching a filter. </dd> </dl> @@ -6299,9 +6806,7 @@ Gets an organization schedule. <dd> ```typescript -await client.schedules.orgSchedulesGetPost({ - id: "id", -}); +await client.slas.listPost(); ``` </dd> @@ -6317,7 +6822,7 @@ await client.schedules.orgSchedulesGetPost({ <dl> <dd> -**request:** `DevRev.OrgSchedulesGetRequest` +**request:** `DevRev.SlasListRequest` </dd> </dl> @@ -6325,7 +6830,7 @@ await client.schedules.orgSchedulesGetPost({ <dl> <dd> -**requestOptions:** `Schedules.RequestOptions` +**requestOptions:** `Slas.RequestOptions` </dd> </dl> @@ -6336,7 +6841,7 @@ await client.schedules.orgSchedulesGetPost({ </dl> </details> -<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgSchedulesListPost</a>({ ...params }) -> DevRev.OrgSchedulesListResponse</code></summary> +<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">transition</a>({ ...params }) -> DevRev.SlasTransitionResponse</code></summary> <dl> <dd> @@ -6348,7 +6853,7 @@ await client.schedules.orgSchedulesGetPost({ <dl> <dd> -Gets list of organization schedules. +Changes the status of an SLA. </dd> </dl> @@ -6364,7 +6869,10 @@ Gets list of organization schedules. <dd> ```typescript -await client.schedules.orgSchedulesListPost(); +await client.slas.transition({ + id: "id", + status: DevRev.SlaStatus.Archived, +}); ``` </dd> @@ -6380,7 +6888,7 @@ await client.schedules.orgSchedulesListPost(); <dl> <dd> -**request:** `DevRev.OrgSchedulesListRequest` +**request:** `DevRev.SlasTransitionRequest` </dd> </dl> @@ -6388,7 +6896,7 @@ await client.schedules.orgSchedulesListPost(); <dl> <dd> -**requestOptions:** `Schedules.RequestOptions` +**requestOptions:** `Slas.RequestOptions` </dd> </dl> @@ -6399,7 +6907,7 @@ await client.schedules.orgSchedulesListPost(); </dl> </details> -<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgSchedulesSetFuture</a>({ ...params }) -> DevRev.OrgSchedulesSetFutureResponse</code></summary> +<details><summary><code>client.slas.<a href="/src/api/resources/slas/client/Client.ts">update</a>({ ...params }) -> DevRev.SlasUpdateResponse</code></summary> <dl> <dd> @@ -6411,8 +6919,7 @@ await client.schedules.orgSchedulesListPost(); <dl> <dd> -Sets next organization schedule fragment which must begin the day the -last existing fragment ends. +Updates a draft SLA. </dd> </dl> @@ -6428,9 +6935,8 @@ last existing fragment ends. <dd> ```typescript -await client.schedules.orgSchedulesSetFuture({ +await client.slas.update({ id: "id", - orgScheduleFragmentId: "org_schedule_fragment_id", }); ``` @@ -6447,7 +6953,7 @@ await client.schedules.orgSchedulesSetFuture({ <dl> <dd> -**request:** `DevRev.OrgSchedulesSetFutureRequest` +**request:** `DevRev.SlasUpdateRequest` </dd> </dl> @@ -6455,7 +6961,7 @@ await client.schedules.orgSchedulesSetFuture({ <dl> <dd> -**requestOptions:** `Schedules.RequestOptions` +**requestOptions:** `Slas.RequestOptions` </dd> </dl> @@ -6466,7 +6972,9 @@ await client.schedules.orgSchedulesSetFuture({ </dl> </details> -<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgSchedulesTransition</a>({ ...params }) -> DevRev.OrgSchedulesTransitionResponse</code></summary> +## product-usage + +<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">metricsDevrevIngest</a>({ ...params }) -> void</code></summary> <dl> <dd> @@ -6478,7 +6986,7 @@ await client.schedules.orgSchedulesSetFuture({ <dl> <dd> -Publishes or archives an organization schedule. +Ingest endpoint for DevRev metrics data from clients. </dd> </dl> @@ -6494,9 +7002,19 @@ Publishes or archives an organization schedule. <dd> ```typescript -await client.schedules.orgSchedulesTransition({ - id: "id", - status: DevRev.OrgScheduleStatus.Archived, +await client.productUsage.metricsDevrevIngest({ + metrics: [ + { + accountRef: "account_ref", + dataPoints: [ + { + timestamp: new Date("2023-01-01T12:00:00.000Z"), + value: 1.1, + }, + ], + name: "name", + }, + ], }); ``` @@ -6513,7 +7031,7 @@ await client.schedules.orgSchedulesTransition({ <dl> <dd> -**request:** `DevRev.OrgSchedulesTransitionRequest` +**request:** `DevRev.MetricsDataIngestRequest` </dd> </dl> @@ -6521,7 +7039,7 @@ await client.schedules.orgSchedulesTransition({ <dl> <dd> -**requestOptions:** `Schedules.RequestOptions` +**requestOptions:** `ProductUsage.RequestOptions` </dd> </dl> @@ -6532,7 +7050,7 @@ await client.schedules.orgSchedulesTransition({ </dl> </details> -<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgSchedulesUpdate</a>({ ...params }) -> DevRev.OrgSchedulesUpdateResponse</code></summary> +<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">uomsCountPost</a>({ ...params }) -> DevRev.UomsCountResponse</code></summary> <dl> <dd> @@ -6544,7 +7062,7 @@ await client.schedules.orgSchedulesTransition({ <dl> <dd> -Updates an organization schedule. +Counts the number of Unit of Measurements based on the given filters. </dd> </dl> @@ -6560,9 +7078,7 @@ Updates an organization schedule. <dd> ```typescript -await client.schedules.orgSchedulesUpdate({ - id: "id", -}); +await client.productUsage.uomsCountPost(); ``` </dd> @@ -6578,7 +7094,7 @@ await client.schedules.orgSchedulesUpdate({ <dl> <dd> -**request:** `DevRev.OrgSchedulesUpdateRequest` +**request:** `DevRev.UomsCountRequest` </dd> </dl> @@ -6586,7 +7102,7 @@ await client.schedules.orgSchedulesUpdate({ <dl> <dd> -**requestOptions:** `Schedules.RequestOptions` +**requestOptions:** `ProductUsage.RequestOptions` </dd> </dl> @@ -6597,9 +7113,7 @@ await client.schedules.orgSchedulesUpdate({ </dl> </details> -## parts - -<details><summary><code>client.parts.<a href="/src/api/resources/parts/client/Client.ts">create</a>({ ...params }) -> DevRev.PartsCreateResponse</code></summary> +<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">uomsCreate</a>({ ...params }) -> DevRev.UomsCreateResponse</code></summary> <dl> <dd> @@ -6611,7 +7125,7 @@ await client.schedules.orgSchedulesUpdate({ <dl> <dd> -Creates new [part](https://devrev.ai/docs/product/parts). +Creates a Unit of Measurement on a part. </dd> </dl> @@ -6627,19 +7141,21 @@ Creates new [part](https://devrev.ai/docs/product/parts). <dd> ```typescript -await client.parts.create({ - type: "capability", - artifacts: ["string"], - customFields: { - string: { - key: "value", - }, +await client.productUsage.uomsCreate({ + aggregationDetail: { + aggregationType: DevRev.AggregationDetailAggregationType.Duration, + uniqueDimension: "string", }, - customSchemaFragments: ["string"], description: "string", + dimensions: ["string"], + metricName: "string", name: "string", - ownedBy: ["string"], - parentPart: ["string"], + partId: "string", + productId: "string", + unit: { + type: DevRev.UnitType.Boolean, + name: "string", + }, }); ``` @@ -6656,7 +7172,7 @@ await client.parts.create({ <dl> <dd> -**request:** `DevRev.PartsCreateRequest` +**request:** `DevRev.UomsCreateRequest` </dd> </dl> @@ -6664,7 +7180,7 @@ await client.parts.create({ <dl> <dd> -**requestOptions:** `Parts.RequestOptions` +**requestOptions:** `ProductUsage.RequestOptions` </dd> </dl> @@ -6675,7 +7191,7 @@ await client.parts.create({ </dl> </details> -<details><summary><code>client.parts.<a href="/src/api/resources/parts/client/Client.ts">delete</a>({ ...params }) -> DevRev.PartsDeleteResponse</code></summary> +<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">uomsDelete</a>({ ...params }) -> void</code></summary> <dl> <dd> @@ -6687,7 +7203,7 @@ await client.parts.create({ <dl> <dd> -Deletes a [part](https://devrev.ai/docs/product/parts). +Deletes a Unit of Measurement. </dd> </dl> @@ -6703,8 +7219,8 @@ Deletes a [part](https://devrev.ai/docs/product/parts). <dd> ```typescript -await client.parts.delete({ - id: "PROD-12345", +await client.productUsage.uomsDelete({ + id: "id", }); ``` @@ -6721,7 +7237,7 @@ await client.parts.delete({ <dl> <dd> -**request:** `DevRev.PartsDeleteRequest` +**request:** `DevRev.UomsDeleteRequest` </dd> </dl> @@ -6729,7 +7245,7 @@ await client.parts.delete({ <dl> <dd> -**requestOptions:** `Parts.RequestOptions` +**requestOptions:** `ProductUsage.RequestOptions` </dd> </dl> @@ -6740,7 +7256,7 @@ await client.parts.delete({ </dl> </details> -<details><summary><code>client.parts.<a href="/src/api/resources/parts/client/Client.ts">getPost</a>({ ...params }) -> DevRev.PartsGetResponse</code></summary> +<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">uomsGetPost</a>({ ...params }) -> DevRev.UomsGetResponse</code></summary> <dl> <dd> @@ -6752,7 +7268,7 @@ await client.parts.delete({ <dl> <dd> -Gets a [part's](https://devrev.ai/docs/product/parts) information. +Gets a Unit of Measurement. </dd> </dl> @@ -6768,7 +7284,7 @@ Gets a [part's](https://devrev.ai/docs/product/parts) information. <dd> ```typescript -await client.parts.getPost({ +await client.productUsage.uomsGetPost({ id: "string", }); ``` @@ -6786,7 +7302,7 @@ await client.parts.getPost({ <dl> <dd> -**request:** `DevRev.PartsGetRequest` +**request:** `DevRev.UomsGetRequest` </dd> </dl> @@ -6794,7 +7310,7 @@ await client.parts.getPost({ <dl> <dd> -**requestOptions:** `Parts.RequestOptions` +**requestOptions:** `ProductUsage.RequestOptions` </dd> </dl> @@ -6805,7 +7321,7 @@ await client.parts.getPost({ </dl> </details> -<details><summary><code>client.parts.<a href="/src/api/resources/parts/client/Client.ts">listPost</a>({ ...params }) -> DevRev.PartsListResponse</code></summary> +<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">uomsListPost</a>({ ...params }) -> DevRev.UomsListResponse</code></summary> <dl> <dd> @@ -6817,7 +7333,7 @@ await client.parts.getPost({ <dl> <dd> -Lists a collection of [parts](https://devrev.ai/docs/product/parts). +Gets the Unit of Measurements based on the given filters. </dd> </dl> @@ -6833,7 +7349,7 @@ Lists a collection of [parts](https://devrev.ai/docs/product/parts). <dd> ```typescript -await client.parts.listPost(); +await client.productUsage.uomsListPost(); ``` </dd> @@ -6849,7 +7365,7 @@ await client.parts.listPost(); <dl> <dd> -**request:** `DevRev.PartsListRequest` +**request:** `DevRev.UomsListRequest` </dd> </dl> @@ -6857,7 +7373,7 @@ await client.parts.listPost(); <dl> <dd> -**requestOptions:** `Parts.RequestOptions` +**requestOptions:** `ProductUsage.RequestOptions` </dd> </dl> @@ -6868,7 +7384,7 @@ await client.parts.listPost(); </dl> </details> -<details><summary><code>client.parts.<a href="/src/api/resources/parts/client/Client.ts">update</a>({ ...params }) -> DevRev.PartsUpdateResponse</code></summary> +<details><summary><code>client.productUsage.<a href="/src/api/resources/productUsage/client/Client.ts">uomsUpdate</a>({ ...params }) -> DevRev.UomsUpdateResponse</code></summary> <dl> <dd> @@ -6880,7 +7396,7 @@ await client.parts.listPost(); <dl> <dd> -Updates a [part's](https://devrev.ai/docs/product/parts) information. +Updates a Unit of Measurement. </dd> </dl> @@ -6896,13 +7412,19 @@ Updates a [part's](https://devrev.ai/docs/product/parts) information. <dd> ```typescript -await client.parts.update({ - type: "capability", - value: { - string: { - key: "value", - }, +await client.productUsage.uomsUpdate({ + aggregationType: DevRev.AggregationDetailAggregationType.Duration, + description: "string", + dimensions: { + add: ["string"], + remove: ["string"], }, + id: "string", + isEnabled: true, + name: "string", + partId: "string", + productId: "string", + unit: "string", }); ``` @@ -6919,7 +7441,7 @@ await client.parts.update({ <dl> <dd> -**request:** `DevRev.PartsUpdateRequest` +**request:** `DevRev.UomsUpdateRequest` </dd> </dl> @@ -6927,7 +7449,7 @@ await client.parts.update({ <dl> <dd> -**requestOptions:** `Parts.RequestOptions` +**requestOptions:** `ProductUsage.RequestOptions` </dd> </dl> @@ -6938,9 +7460,9 @@ await client.parts.update({ </dl> </details> -## question-answers +## schedules -<details><summary><code>client.questionAnswers.<a href="/src/api/resources/questionAnswers/client/Client.ts">createQuestionAnswer</a>({ ...params }) -> DevRev.QuestionAnswersCreateResponse</code></summary> +<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgScheduleFragmentsCreate</a>({ ...params }) -> DevRev.OrgScheduleFragmentsCreateResponse</code></summary> <dl> <dd> @@ -6952,7 +7474,7 @@ await client.parts.update({ <dl> <dd> -Creates a question-answer. +Creates an organization schedule fragment. </dd> </dl> @@ -6968,12 +7490,16 @@ Creates a question-answer. <dd> ```typescript -await client.questionAnswers.createQuestionAnswer({ - answer: "answer", - appliesToParts: ["PROD-12345"], - ownedBy: ["DEVU-12345"], - question: "question", - status: DevRev.QuestionAnswerStatus.Archived, +await client.schedules.orgScheduleFragmentsCreate({ + from: new Date("2023-01-01T12:00:00.000Z"), + intervals: [ + { + from: new Date("2023-01-01T12:00:00.000Z"), + name: "name", + }, + ], + name: "name", + to: new Date("2023-01-01T12:00:00.000Z"), }); ``` @@ -6990,7 +7516,7 @@ await client.questionAnswers.createQuestionAnswer({ <dl> <dd> -**request:** `DevRev.QuestionAnswersCreateRequest` +**request:** `DevRev.OrgScheduleFragmentsCreateRequest` </dd> </dl> @@ -6998,7 +7524,7 @@ await client.questionAnswers.createQuestionAnswer({ <dl> <dd> -**requestOptions:** `QuestionAnswers.RequestOptions` +**requestOptions:** `Schedules.RequestOptions` </dd> </dl> @@ -7009,7 +7535,7 @@ await client.questionAnswers.createQuestionAnswer({ </dl> </details> -<details><summary><code>client.questionAnswers.<a href="/src/api/resources/questionAnswers/client/Client.ts">deleteQuestionAnswer</a>({ ...params }) -> void</code></summary> +<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgScheduleFragmentsGetPost</a>({ ...params }) -> DevRev.OrgScheduleFragmentsGetResponse</code></summary> <dl> <dd> @@ -7021,7 +7547,7 @@ await client.questionAnswers.createQuestionAnswer({ <dl> <dd> -Deletes a question-answer. +Gets an organization schedule fragment. </dd> </dl> @@ -7037,7 +7563,7 @@ Deletes a question-answer. <dd> ```typescript -await client.questionAnswers.deleteQuestionAnswer({ +await client.schedules.orgScheduleFragmentsGetPost({ id: "id", }); ``` @@ -7055,7 +7581,7 @@ await client.questionAnswers.deleteQuestionAnswer({ <dl> <dd> -**request:** `DevRev.QuestionAnswersDeleteRequest` +**request:** `DevRev.OrgScheduleFragmentsGetRequest` </dd> </dl> @@ -7063,7 +7589,7 @@ await client.questionAnswers.deleteQuestionAnswer({ <dl> <dd> -**requestOptions:** `QuestionAnswers.RequestOptions` +**requestOptions:** `Schedules.RequestOptions` </dd> </dl> @@ -7074,7 +7600,7 @@ await client.questionAnswers.deleteQuestionAnswer({ </dl> </details> -<details><summary><code>client.questionAnswers.<a href="/src/api/resources/questionAnswers/client/Client.ts">getQuestionAnswerPost</a>({ ...params }) -> DevRev.QuestionAnswersGetResponse</code></summary> +<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgScheduleFragmentsTransition</a>({ ...params }) -> DevRev.OrgScheduleFragmentsTransitionResponse</code></summary> <dl> <dd> @@ -7086,7 +7612,7 @@ await client.questionAnswers.deleteQuestionAnswer({ <dl> <dd> -Gets a question-answer. +Changes stage of an organization schedule fragment. </dd> </dl> @@ -7102,8 +7628,9 @@ Gets a question-answer. <dd> ```typescript -await client.questionAnswers.getQuestionAnswerPost({ +await client.schedules.orgScheduleFragmentsTransition({ id: "id", + status: DevRev.OrgScheduleFragmentStatus.Archived, }); ``` @@ -7120,7 +7647,7 @@ await client.questionAnswers.getQuestionAnswerPost({ <dl> <dd> -**request:** `DevRev.QuestionAnswersGetRequest` +**request:** `DevRev.OrgScheduleFragmentsTransitionRequest` </dd> </dl> @@ -7128,7 +7655,7 @@ await client.questionAnswers.getQuestionAnswerPost({ <dl> <dd> -**requestOptions:** `QuestionAnswers.RequestOptions` +**requestOptions:** `Schedules.RequestOptions` </dd> </dl> @@ -7139,7 +7666,7 @@ await client.questionAnswers.getQuestionAnswerPost({ </dl> </details> -<details><summary><code>client.questionAnswers.<a href="/src/api/resources/questionAnswers/client/Client.ts">listQuestionAnswersPost</a>({ ...params }) -> DevRev.QuestionAnswersListResponse</code></summary> +<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgSchedulesCreate</a>({ ...params }) -> DevRev.OrgSchedulesCreateResponse</code></summary> <dl> <dd> @@ -7151,7 +7678,8 @@ await client.questionAnswers.getQuestionAnswerPost({ <dl> <dd> -Lists a collection of question-answers. +Creates an organization schedule with a default weekly organization +schedule and a list of organization schedule fragments. </dd> </dl> @@ -7167,7 +7695,10 @@ Lists a collection of question-answers. <dd> ```typescript -await client.questionAnswers.listQuestionAnswersPost(); +await client.schedules.orgSchedulesCreate({ + name: "name", + timezone: "timezone", +}); ``` </dd> @@ -7183,7 +7714,7 @@ await client.questionAnswers.listQuestionAnswersPost(); <dl> <dd> -**request:** `DevRev.QuestionAnswersListRequest` +**request:** `DevRev.OrgSchedulesCreateRequest` </dd> </dl> @@ -7191,7 +7722,7 @@ await client.questionAnswers.listQuestionAnswersPost(); <dl> <dd> -**requestOptions:** `QuestionAnswers.RequestOptions` +**requestOptions:** `Schedules.RequestOptions` </dd> </dl> @@ -7202,7 +7733,7 @@ await client.questionAnswers.listQuestionAnswersPost(); </dl> </details> -<details><summary><code>client.questionAnswers.<a href="/src/api/resources/questionAnswers/client/Client.ts">updateQuestionAnswer</a>({ ...params }) -> DevRev.QuestionAnswersUpdateResponse</code></summary> +<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgSchedulesGetPost</a>({ ...params }) -> DevRev.OrgSchedulesGetResponse</code></summary> <dl> <dd> @@ -7214,7 +7745,7 @@ await client.questionAnswers.listQuestionAnswersPost(); <dl> <dd> -Updates a question-answer. +Gets an organization schedule. </dd> </dl> @@ -7230,7 +7761,7 @@ Updates a question-answer. <dd> ```typescript -await client.questionAnswers.updateQuestionAnswer({ +await client.schedules.orgSchedulesGetPost({ id: "id", }); ``` @@ -7248,7 +7779,7 @@ await client.questionAnswers.updateQuestionAnswer({ <dl> <dd> -**request:** `DevRev.QuestionAnswersUpdateRequest` +**request:** `DevRev.OrgSchedulesGetRequest` </dd> </dl> @@ -7256,7 +7787,7 @@ await client.questionAnswers.updateQuestionAnswer({ <dl> <dd> -**requestOptions:** `QuestionAnswers.RequestOptions` +**requestOptions:** `Schedules.RequestOptions` </dd> </dl> @@ -7267,9 +7798,7 @@ await client.questionAnswers.updateQuestionAnswer({ </dl> </details> -## rev-orgs - -<details><summary><code>client.revOrgs.<a href="/src/api/resources/revOrgs/client/Client.ts">create</a>({ ...params }) -> DevRev.RevOrgsCreateResponse</code></summary> +<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgSchedulesListPost</a>({ ...params }) -> DevRev.OrgSchedulesListResponse</code></summary> <dl> <dd> @@ -7281,8 +7810,7 @@ await client.questionAnswers.updateQuestionAnswer({ <dl> <dd> -Creates a Rev organization in the authenticated user's Dev -organization. +Gets list of organization schedules. </dd> </dl> @@ -7298,9 +7826,7 @@ organization. <dd> ```typescript -await client.revOrgs.create({ - displayName: "display_name", -}); +await client.schedules.orgSchedulesListPost(); ``` </dd> @@ -7316,7 +7842,7 @@ await client.revOrgs.create({ <dl> <dd> -**request:** `DevRev.RevOrgsCreateRequest` +**request:** `DevRev.OrgSchedulesListRequest` </dd> </dl> @@ -7324,7 +7850,7 @@ await client.revOrgs.create({ <dl> <dd> -**requestOptions:** `RevOrgs.RequestOptions` +**requestOptions:** `Schedules.RequestOptions` </dd> </dl> @@ -7335,7 +7861,7 @@ await client.revOrgs.create({ </dl> </details> -<details><summary><code>client.revOrgs.<a href="/src/api/resources/revOrgs/client/Client.ts">delete</a>({ ...params }) -> DevRev.RevOrgsDeleteResponse</code></summary> +<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgSchedulesSetFuture</a>({ ...params }) -> DevRev.OrgSchedulesSetFutureResponse</code></summary> <dl> <dd> @@ -7347,7 +7873,8 @@ await client.revOrgs.create({ <dl> <dd> -Deletes the Rev organization. +Sets next organization schedule fragment which must begin the day the +last existing fragment ends. </dd> </dl> @@ -7363,8 +7890,9 @@ Deletes the Rev organization. <dd> ```typescript -await client.revOrgs.delete({ - id: "REV-AbCdEfGh", +await client.schedules.orgSchedulesSetFuture({ + id: "id", + orgScheduleFragmentId: "org_schedule_fragment_id", }); ``` @@ -7381,7 +7909,7 @@ await client.revOrgs.delete({ <dl> <dd> -**request:** `DevRev.RevOrgsDeleteRequest` +**request:** `DevRev.OrgSchedulesSetFutureRequest` </dd> </dl> @@ -7389,7 +7917,7 @@ await client.revOrgs.delete({ <dl> <dd> -**requestOptions:** `RevOrgs.RequestOptions` +**requestOptions:** `Schedules.RequestOptions` </dd> </dl> @@ -7400,7 +7928,7 @@ await client.revOrgs.delete({ </dl> </details> -<details><summary><code>client.revOrgs.<a href="/src/api/resources/revOrgs/client/Client.ts">getPost</a>({ ...params }) -> DevRev.RevOrgsGetResponse</code></summary> +<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgSchedulesTransition</a>({ ...params }) -> DevRev.OrgSchedulesTransitionResponse</code></summary> <dl> <dd> @@ -7412,7 +7940,7 @@ await client.revOrgs.delete({ <dl> <dd> -Retrieves the Rev organization's information. +Publishes or archives an organization schedule. </dd> </dl> @@ -7428,7 +7956,10 @@ Retrieves the Rev organization's information. <dd> ```typescript -await client.revOrgs.getPost(); +await client.schedules.orgSchedulesTransition({ + id: "id", + status: DevRev.OrgScheduleStatus.Archived, +}); ``` </dd> @@ -7444,7 +7975,7 @@ await client.revOrgs.getPost(); <dl> <dd> -**request:** `DevRev.RevOrgsGetRequest` +**request:** `DevRev.OrgSchedulesTransitionRequest` </dd> </dl> @@ -7452,7 +7983,7 @@ await client.revOrgs.getPost(); <dl> <dd> -**requestOptions:** `RevOrgs.RequestOptions` +**requestOptions:** `Schedules.RequestOptions` </dd> </dl> @@ -7463,7 +7994,7 @@ await client.revOrgs.getPost(); </dl> </details> -<details><summary><code>client.revOrgs.<a href="/src/api/resources/revOrgs/client/Client.ts">listPost</a>({ ...params }) -> DevRev.RevOrgsListResponse</code></summary> +<details><summary><code>client.schedules.<a href="/src/api/resources/schedules/client/Client.ts">orgSchedulesUpdate</a>({ ...params }) -> DevRev.OrgSchedulesUpdateResponse</code></summary> <dl> <dd> @@ -7475,9 +8006,7 @@ await client.revOrgs.getPost(); <dl> <dd> -Gets the list of Rev organizations' information belonging to the -authenticated user's Dev Organization which the user is also authorized -to access. +Updates an organization schedule. </dd> </dl> @@ -7493,7 +8022,9 @@ to access. <dd> ```typescript -await client.revOrgs.listPost(); +await client.schedules.orgSchedulesUpdate({ + id: "id", +}); ``` </dd> @@ -7509,7 +8040,7 @@ await client.revOrgs.listPost(); <dl> <dd> -**request:** `DevRev.RevOrgsListRequest` +**request:** `DevRev.OrgSchedulesUpdateRequest` </dd> </dl> @@ -7517,7 +8048,7 @@ await client.revOrgs.listPost(); <dl> <dd> -**requestOptions:** `RevOrgs.RequestOptions` +**requestOptions:** `Schedules.RequestOptions` </dd> </dl> @@ -7528,7 +8059,9 @@ await client.revOrgs.listPost(); </dl> </details> -<details><summary><code>client.revOrgs.<a href="/src/api/resources/revOrgs/client/Client.ts">update</a>({ ...params }) -> DevRev.RevOrgsUpdateResponse</code></summary> +## parts + +<details><summary><code>client.parts.<a href="/src/api/resources/parts/client/Client.ts">create</a>({ ...params }) -> DevRev.PartsCreateResponse</code></summary> <dl> <dd> @@ -7540,7 +8073,7 @@ await client.revOrgs.listPost(); <dl> <dd> -Updates the Rev organization's information. +Creates new [part](https://devrev.ai/docs/product/parts). </dd> </dl> @@ -7556,8 +8089,19 @@ Updates the Rev organization's information. <dd> ```typescript -await client.revOrgs.update({ - id: "REV-AbCdEfGh", +await client.parts.create({ + type: "capability", + artifacts: ["string"], + customFields: { + string: { + key: "value", + }, + }, + customSchemaFragments: ["string"], + description: "string", + name: "string", + ownedBy: ["string"], + parentPart: ["string"], }); ``` @@ -7574,7 +8118,7 @@ await client.revOrgs.update({ <dl> <dd> -**request:** `DevRev.RevOrgsUpdateRequest` +**request:** `DevRev.PartsCreateRequest` </dd> </dl> @@ -7582,7 +8126,7 @@ await client.revOrgs.update({ <dl> <dd> -**requestOptions:** `RevOrgs.RequestOptions` +**requestOptions:** `Parts.RequestOptions` </dd> </dl> @@ -7593,9 +8137,7 @@ await client.revOrgs.update({ </dl> </details> -## rev-users - -<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">create</a>({ ...params }) -> DevRev.RevUsersCreateResponse</code></summary> +<details><summary><code>client.parts.<a href="/src/api/resources/parts/client/Client.ts">delete</a>({ ...params }) -> DevRev.PartsDeleteResponse</code></summary> <dl> <dd> @@ -7607,8 +8149,7 @@ await client.revOrgs.update({ <dl> <dd> -Creates a Rev user for a Rev organization. Rev user can be a customer -or a lead of an organization. +Deletes a [part](https://devrev.ai/docs/product/parts). </dd> </dl> @@ -7624,7 +8165,9 @@ or a lead of an organization. <dd> ```typescript -await client.revUsers.create(); +await client.parts.delete({ + id: "PROD-12345", +}); ``` </dd> @@ -7640,7 +8183,7 @@ await client.revUsers.create(); <dl> <dd> -**request:** `DevRev.RevUsersCreateRequest` +**request:** `DevRev.PartsDeleteRequest` </dd> </dl> @@ -7648,7 +8191,7 @@ await client.revUsers.create(); <dl> <dd> -**requestOptions:** `RevUsers.RequestOptions` +**requestOptions:** `Parts.RequestOptions` </dd> </dl> @@ -7659,7 +8202,7 @@ await client.revUsers.create(); </dl> </details> -<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">delete</a>({ ...params }) -> DevRev.RevUsersDeleteResponse</code></summary> +<details><summary><code>client.parts.<a href="/src/api/resources/parts/client/Client.ts">getPost</a>({ ...params }) -> DevRev.PartsGetResponse</code></summary> <dl> <dd> @@ -7671,7 +8214,7 @@ await client.revUsers.create(); <dl> <dd> -Deletes a Rev user. +Gets a [part's](https://devrev.ai/docs/product/parts) information. </dd> </dl> @@ -7687,8 +8230,8 @@ Deletes a Rev user. <dd> ```typescript -await client.revUsers.delete({ - id: "id", +await client.parts.getPost({ + id: "string", }); ``` @@ -7705,7 +8248,7 @@ await client.revUsers.delete({ <dl> <dd> -**request:** `DevRev.RevUsersDeleteRequest` +**request:** `DevRev.PartsGetRequest` </dd> </dl> @@ -7713,7 +8256,7 @@ await client.revUsers.delete({ <dl> <dd> -**requestOptions:** `RevUsers.RequestOptions` +**requestOptions:** `Parts.RequestOptions` </dd> </dl> @@ -7724,7 +8267,7 @@ await client.revUsers.delete({ </dl> </details> -<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">getPost</a>({ ...params }) -> DevRev.RevUsersGetResponse</code></summary> +<details><summary><code>client.parts.<a href="/src/api/resources/parts/client/Client.ts">listPost</a>({ ...params }) -> DevRev.PartsListResponse</code></summary> <dl> <dd> @@ -7736,7 +8279,7 @@ await client.revUsers.delete({ <dl> <dd> -Returns the Rev user of a Rev organization by its ID. +Lists a collection of [parts](https://devrev.ai/docs/product/parts). </dd> </dl> @@ -7752,9 +8295,7 @@ Returns the Rev user of a Rev organization by its ID. <dd> ```typescript -await client.revUsers.getPost({ - id: "id", -}); +await client.parts.listPost(); ``` </dd> @@ -7770,7 +8311,7 @@ await client.revUsers.getPost({ <dl> <dd> -**request:** `DevRev.RevUsersGetRequest` +**request:** `DevRev.PartsListRequest` </dd> </dl> @@ -7778,7 +8319,7 @@ await client.revUsers.getPost({ <dl> <dd> -**requestOptions:** `RevUsers.RequestOptions` +**requestOptions:** `Parts.RequestOptions` </dd> </dl> @@ -7789,7 +8330,7 @@ await client.revUsers.getPost({ </dl> </details> -<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">linkRevUserToRevOrg</a>({ ...params }) -> DevRev.LinkRevUserToRevOrgResponse</code></summary> +<details><summary><code>client.parts.<a href="/src/api/resources/parts/client/Client.ts">update</a>({ ...params }) -> DevRev.PartsUpdateResponse</code></summary> <dl> <dd> @@ -7801,7 +8342,7 @@ await client.revUsers.getPost({ <dl> <dd> -Links a rev user to a rev org. +Updates a [part's](https://devrev.ai/docs/product/parts) information. </dd> </dl> @@ -7817,7 +8358,14 @@ Links a rev user to a rev org. <dd> ```typescript -await client.revUsers.linkRevUserToRevOrg(); +await client.parts.update({ + type: "capability", + value: { + string: { + key: "value", + }, + }, +}); ``` </dd> @@ -7833,7 +8381,7 @@ await client.revUsers.linkRevUserToRevOrg(); <dl> <dd> -**request:** `DevRev.LinkRevUserToRevOrgRequest` +**request:** `DevRev.PartsUpdateRequest` </dd> </dl> @@ -7841,7 +8389,7 @@ await client.revUsers.linkRevUserToRevOrg(); <dl> <dd> -**requestOptions:** `RevUsers.RequestOptions` +**requestOptions:** `Parts.RequestOptions` </dd> </dl> @@ -7852,7 +8400,9 @@ await client.revUsers.linkRevUserToRevOrg(); </dl> </details> -<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">listPost</a>({ ...params }) -> DevRev.RevUsersListResponse</code></summary> +## preferences + +<details><summary><code>client.preferences.<a href="/src/api/resources/preferences/client/Client.ts">getPost</a>({ ...params }) -> DevRev.PreferencesGetResponse</code></summary> <dl> <dd> @@ -7864,8 +8414,7 @@ await client.revUsers.linkRevUserToRevOrg(); <dl> <dd> -Returns a list of all Rev Users belonging to the authenticated user's -Dev Organization. +Get the preferences object. </dd> </dl> @@ -7881,7 +8430,10 @@ Dev Organization. <dd> ```typescript -await client.revUsers.listPost(); +await client.preferences.getPost({ + type: "user_preferences", + object: "string", +}); ``` </dd> @@ -7897,7 +8449,7 @@ await client.revUsers.listPost(); <dl> <dd> -**request:** `DevRev.RevUsersListRequest` +**request:** `DevRev.PreferencesGetRequest` </dd> </dl> @@ -7905,7 +8457,7 @@ await client.revUsers.listPost(); <dl> <dd> -**requestOptions:** `RevUsers.RequestOptions` +**requestOptions:** `Preferences.RequestOptions` </dd> </dl> @@ -7916,7 +8468,9 @@ await client.revUsers.listPost(); </dl> </details> -<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">scanPost</a>({ ...params }) -> DevRev.RevUsersScanResponse</code></summary> +## question-answers + +<details><summary><code>client.questionAnswers.<a href="/src/api/resources/questionAnswers/client/Client.ts">createQuestionAnswer</a>({ ...params }) -> DevRev.QuestionAnswersCreateResponse</code></summary> <dl> <dd> @@ -7928,7 +8482,7 @@ await client.revUsers.listPost(); <dl> <dd> -Scans through all Rev users. +Creates a question-answer. </dd> </dl> @@ -7944,7 +8498,13 @@ Scans through all Rev users. <dd> ```typescript -await client.revUsers.scanPost(); +await client.questionAnswers.createQuestionAnswer({ + answer: "answer", + appliesToParts: ["PROD-12345"], + ownedBy: ["DEVU-12345"], + question: "question", + status: DevRev.QuestionAnswerStatus.Archived, +}); ``` </dd> @@ -7960,7 +8520,7 @@ await client.revUsers.scanPost(); <dl> <dd> -**request:** `DevRev.RevUsersScanRequest` +**request:** `DevRev.QuestionAnswersCreateRequest` </dd> </dl> @@ -7968,7 +8528,7 @@ await client.revUsers.scanPost(); <dl> <dd> -**requestOptions:** `RevUsers.RequestOptions` +**requestOptions:** `QuestionAnswers.RequestOptions` </dd> </dl> @@ -7979,7 +8539,7 @@ await client.revUsers.scanPost(); </dl> </details> -<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">unlinkRevUserFromRevOrg</a>({ ...params }) -> DevRev.UnlinkRevUserFromRevOrgResponse</code></summary> +<details><summary><code>client.questionAnswers.<a href="/src/api/resources/questionAnswers/client/Client.ts">deleteQuestionAnswer</a>({ ...params }) -> void</code></summary> <dl> <dd> @@ -7991,7 +8551,7 @@ await client.revUsers.scanPost(); <dl> <dd> -Unlinks a rev user from a rev org. +Deletes a question-answer. </dd> </dl> @@ -8007,7 +8567,9 @@ Unlinks a rev user from a rev org. <dd> ```typescript -await client.revUsers.unlinkRevUserFromRevOrg(); +await client.questionAnswers.deleteQuestionAnswer({ + id: "id", +}); ``` </dd> @@ -8023,7 +8585,7 @@ await client.revUsers.unlinkRevUserFromRevOrg(); <dl> <dd> -**request:** `DevRev.UnlinkRevUserFromRevOrgRequest` +**request:** `DevRev.QuestionAnswersDeleteRequest` </dd> </dl> @@ -8031,7 +8593,7 @@ await client.revUsers.unlinkRevUserFromRevOrg(); <dl> <dd> -**requestOptions:** `RevUsers.RequestOptions` +**requestOptions:** `QuestionAnswers.RequestOptions` </dd> </dl> @@ -8042,7 +8604,7 @@ await client.revUsers.unlinkRevUserFromRevOrg(); </dl> </details> -<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">update</a>({ ...params }) -> DevRev.RevUsersUpdateResponse</code></summary> +<details><summary><code>client.questionAnswers.<a href="/src/api/resources/questionAnswers/client/Client.ts">getQuestionAnswerPost</a>({ ...params }) -> DevRev.QuestionAnswersGetResponse</code></summary> <dl> <dd> @@ -8054,7 +8616,7 @@ await client.revUsers.unlinkRevUserFromRevOrg(); <dl> <dd> -Updates a Rev user. +Gets a question-answer. </dd> </dl> @@ -8070,7 +8632,7 @@ Updates a Rev user. <dd> ```typescript -await client.revUsers.update({ +await client.questionAnswers.getQuestionAnswerPost({ id: "id", }); ``` @@ -8088,7 +8650,7 @@ await client.revUsers.update({ <dl> <dd> -**request:** `DevRev.RevUsersUpdateRequest` +**request:** `DevRev.QuestionAnswersGetRequest` </dd> </dl> @@ -8096,7 +8658,7 @@ await client.revUsers.update({ <dl> <dd> -**requestOptions:** `RevUsers.RequestOptions` +**requestOptions:** `QuestionAnswers.RequestOptions` </dd> </dl> @@ -8107,9 +8669,7 @@ await client.revUsers.update({ </dl> </details> -## customization - -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">aggregatedSchemaGetPost</a>({ ...params }) -> DevRev.AggregatedSchemaGetResponse</code></summary> +<details><summary><code>client.questionAnswers.<a href="/src/api/resources/questionAnswers/client/Client.ts">listQuestionAnswersPost</a>({ ...params }) -> DevRev.QuestionAnswersListResponse</code></summary> <dl> <dd> @@ -8121,7 +8681,7 @@ await client.revUsers.update({ <dl> <dd> -Gets the aggregated schema. +Lists a collection of question-answers. </dd> </dl> @@ -8137,9 +8697,7 @@ Gets the aggregated schema. <dd> ```typescript -await client.customization.aggregatedSchemaGetPost({ - customSchemaFragmentIds: ["custom_schema_fragment_ids"], -}); +await client.questionAnswers.listQuestionAnswersPost(); ``` </dd> @@ -8155,7 +8713,7 @@ await client.customization.aggregatedSchemaGetPost({ <dl> <dd> -**request:** `DevRev.AggregatedSchemaGetRequest` +**request:** `DevRev.QuestionAnswersListRequest` </dd> </dl> @@ -8163,7 +8721,7 @@ await client.customization.aggregatedSchemaGetPost({ <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `QuestionAnswers.RequestOptions` </dd> </dl> @@ -8174,7 +8732,7 @@ await client.customization.aggregatedSchemaGetPost({ </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customSchemaFragmentsGetPost</a>({ ...params }) -> DevRev.CustomSchemaFragmentsGetResponse</code></summary> +<details><summary><code>client.questionAnswers.<a href="/src/api/resources/questionAnswers/client/Client.ts">updateQuestionAnswer</a>({ ...params }) -> DevRev.QuestionAnswersUpdateResponse</code></summary> <dl> <dd> @@ -8186,7 +8744,7 @@ await client.customization.aggregatedSchemaGetPost({ <dl> <dd> -Gets a custom schema fragment. +Updates a question-answer. </dd> </dl> @@ -8202,8 +8760,8 @@ Gets a custom schema fragment. <dd> ```typescript -await client.customization.customSchemaFragmentsGetPost({ - id: "string", +await client.questionAnswers.updateQuestionAnswer({ + id: "id", }); ``` @@ -8220,7 +8778,7 @@ await client.customization.customSchemaFragmentsGetPost({ <dl> <dd> -**request:** `DevRev.CustomSchemaFragmentsGetRequest` +**request:** `DevRev.QuestionAnswersUpdateRequest` </dd> </dl> @@ -8228,7 +8786,7 @@ await client.customization.customSchemaFragmentsGetPost({ <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `QuestionAnswers.RequestOptions` </dd> </dl> @@ -8239,7 +8797,9 @@ await client.customization.customSchemaFragmentsGetPost({ </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customSchemaFragmentsListPost</a>({ ...params }) -> DevRev.CustomSchemaFragmentsListResponse</code></summary> +## rev-orgs + +<details><summary><code>client.revOrgs.<a href="/src/api/resources/revOrgs/client/Client.ts">create</a>({ ...params }) -> DevRev.RevOrgsCreateResponse</code></summary> <dl> <dd> @@ -8251,7 +8811,8 @@ await client.customization.customSchemaFragmentsGetPost({ <dl> <dd> -Lists custom schema fragments. +Creates a Rev organization in the authenticated user's Dev +organization. </dd> </dl> @@ -8267,7 +8828,10 @@ Lists custom schema fragments. <dd> ```typescript -await client.customization.customSchemaFragmentsListPost(); +await client.revOrgs.create({ + account: "ACC-12345", + displayName: "display_name", +}); ``` </dd> @@ -8283,7 +8847,7 @@ await client.customization.customSchemaFragmentsListPost(); <dl> <dd> -**request:** `DevRev.CustomSchemaFragmentsListRequest` +**request:** `DevRev.RevOrgsCreateRequest` </dd> </dl> @@ -8291,7 +8855,7 @@ await client.customization.customSchemaFragmentsListPost(); <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `RevOrgs.RequestOptions` </dd> </dl> @@ -8302,7 +8866,7 @@ await client.customization.customSchemaFragmentsListPost(); </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customSchemaFragmentsSet</a>({ ...params }) -> DevRev.CustomSchemaFragmentsSetResponse</code></summary> +<details><summary><code>client.revOrgs.<a href="/src/api/resources/revOrgs/client/Client.ts">delete</a>({ ...params }) -> DevRev.RevOrgsDeleteResponse</code></summary> <dl> <dd> @@ -8314,7 +8878,7 @@ await client.customization.customSchemaFragmentsListPost(); <dl> <dd> -Creates or updates a custom schema fragment. +Deletes the Rev organization. </dd> </dl> @@ -8330,29 +8894,8 @@ Creates or updates a custom schema fragment. <dd> ```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.revOrgs.delete({ + id: "REV-AbCdEfGh", }); ``` @@ -8369,7 +8912,7 @@ await client.customization.customSchemaFragmentsSet({ <dl> <dd> -**request:** `DevRev.CustomSchemaFragmentsSetRequest` +**request:** `DevRev.RevOrgsDeleteRequest` </dd> </dl> @@ -8377,7 +8920,7 @@ await client.customization.customSchemaFragmentsSet({ <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `RevOrgs.RequestOptions` </dd> </dl> @@ -8388,7 +8931,7 @@ await client.customization.customSchemaFragmentsSet({ </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">stockSchemaFragmentsGetPost</a>({ ...params }) -> DevRev.StockSchemaFragmentsGetResponse</code></summary> +<details><summary><code>client.revOrgs.<a href="/src/api/resources/revOrgs/client/Client.ts">getPost</a>({ ...params }) -> DevRev.RevOrgsGetResponse</code></summary> <dl> <dd> @@ -8400,7 +8943,7 @@ await client.customization.customSchemaFragmentsSet({ <dl> <dd> -Gets a stock schema fragment. +Retrieves the Rev organization's information. </dd> </dl> @@ -8416,7 +8959,7 @@ Gets a stock schema fragment. <dd> ```typescript -await client.customization.stockSchemaFragmentsGetPost(); +await client.revOrgs.getPost(); ``` </dd> @@ -8432,7 +8975,7 @@ await client.customization.stockSchemaFragmentsGetPost(); <dl> <dd> -**request:** `DevRev.StockSchemaFragmentsGetRequest` +**request:** `DevRev.RevOrgsGetRequest` </dd> </dl> @@ -8440,7 +8983,7 @@ await client.customization.stockSchemaFragmentsGetPost(); <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `RevOrgs.RequestOptions` </dd> </dl> @@ -8451,7 +8994,7 @@ await client.customization.stockSchemaFragmentsGetPost(); </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">stockSchemaFragmentsListPost</a>({ ...params }) -> DevRev.StockSchemaFragmentsListResponse</code></summary> +<details><summary><code>client.revOrgs.<a href="/src/api/resources/revOrgs/client/Client.ts">listPost</a>({ ...params }) -> DevRev.RevOrgsListResponse</code></summary> <dl> <dd> @@ -8463,7 +9006,9 @@ await client.customization.stockSchemaFragmentsGetPost(); <dl> <dd> -Lists stock schema fragments. +Gets the list of Rev organizations' information belonging to the +authenticated user's Dev Organization which the user is also authorized +to access. </dd> </dl> @@ -8479,7 +9024,7 @@ Lists stock schema fragments. <dd> ```typescript -await client.customization.stockSchemaFragmentsListPost(); +await client.revOrgs.listPost(); ``` </dd> @@ -8495,7 +9040,7 @@ await client.customization.stockSchemaFragmentsListPost(); <dl> <dd> -**request:** `DevRev.StockSchemaFragmentsListRequest` +**request:** `DevRev.RevOrgsListRequest` </dd> </dl> @@ -8503,7 +9048,7 @@ await client.customization.stockSchemaFragmentsListPost(); <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `RevOrgs.RequestOptions` </dd> </dl> @@ -8514,7 +9059,7 @@ await client.customization.stockSchemaFragmentsListPost(); </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">subtypesListPost</a>({ ...params }) -> DevRev.SubtypesListResponse</code></summary> +<details><summary><code>client.revOrgs.<a href="/src/api/resources/revOrgs/client/Client.ts">update</a>({ ...params }) -> DevRev.RevOrgsUpdateResponse</code></summary> <dl> <dd> @@ -8526,7 +9071,7 @@ await client.customization.stockSchemaFragmentsListPost(); <dl> <dd> -Lists subtypes. +Updates the Rev organization's information. </dd> </dl> @@ -8542,7 +9087,9 @@ Lists subtypes. <dd> ```typescript -await client.customization.subtypesListPost(); +await client.revOrgs.update({ + id: "REV-AbCdEfGh", +}); ``` </dd> @@ -8558,7 +9105,7 @@ await client.customization.subtypesListPost(); <dl> <dd> -**request:** `DevRev.SubtypesListRequest` +**request:** `DevRev.RevOrgsUpdateRequest` </dd> </dl> @@ -8566,7 +9113,7 @@ await client.customization.subtypesListPost(); <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `RevOrgs.RequestOptions` </dd> </dl> @@ -8577,7 +9124,9 @@ await client.customization.subtypesListPost(); </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStagesCreate</a>({ ...params }) -> DevRev.CustomStagesCreateResponse</code></summary> +## rev-users + +<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">create</a>({ ...params }) -> DevRev.RevUsersCreateResponse</code></summary> <dl> <dd> @@ -8589,7 +9138,8 @@ await client.customization.subtypesListPost(); <dl> <dd> -Creates a custom stage. +Creates a Rev user for a Rev organization. Rev user can be a customer +or a lead of an organization. </dd> </dl> @@ -8605,11 +9155,7 @@ Creates a custom stage. <dd> ```typescript -await client.customization.customStagesCreate({ - name: "name", - ordinal: 1, - state: "state", -}); +await client.revUsers.create(); ``` </dd> @@ -8625,7 +9171,7 @@ await client.customization.customStagesCreate({ <dl> <dd> -**request:** `DevRev.CustomStagesCreateRequest` +**request:** `DevRev.RevUsersCreateRequest` </dd> </dl> @@ -8633,7 +9179,7 @@ await client.customization.customStagesCreate({ <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `RevUsers.RequestOptions` </dd> </dl> @@ -8644,7 +9190,7 @@ await client.customization.customStagesCreate({ </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStagesGetPost</a>({ ...params }) -> DevRev.CustomStagesGetResponse</code></summary> +<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">delete</a>({ ...params }) -> DevRev.RevUsersDeleteResponse</code></summary> <dl> <dd> @@ -8656,7 +9202,7 @@ await client.customization.customStagesCreate({ <dl> <dd> -Gets a custom stage. +Deletes a Rev user. </dd> </dl> @@ -8672,7 +9218,7 @@ Gets a custom stage. <dd> ```typescript -await client.customization.customStagesGetPost({ +await client.revUsers.delete({ id: "id", }); ``` @@ -8690,7 +9236,7 @@ await client.customization.customStagesGetPost({ <dl> <dd> -**request:** `DevRev.CustomStagesGetRequest` +**request:** `DevRev.RevUsersDeleteRequest` </dd> </dl> @@ -8698,7 +9244,7 @@ await client.customization.customStagesGetPost({ <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `RevUsers.RequestOptions` </dd> </dl> @@ -8709,7 +9255,7 @@ await client.customization.customStagesGetPost({ </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStagesListPost</a>({ ...params }) -> DevRev.CustomStagesListResponse</code></summary> +<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">getPost</a>({ ...params }) -> DevRev.RevUsersGetResponse</code></summary> <dl> <dd> @@ -8721,7 +9267,7 @@ await client.customization.customStagesGetPost({ <dl> <dd> -Lists custom stages. +Returns the Rev user of a Rev organization by its ID. </dd> </dl> @@ -8737,7 +9283,9 @@ Lists custom stages. <dd> ```typescript -await client.customization.customStagesListPost(); +await client.revUsers.getPost({ + id: "id", +}); ``` </dd> @@ -8753,7 +9301,7 @@ await client.customization.customStagesListPost(); <dl> <dd> -**request:** `DevRev.CustomStagesListRequest` +**request:** `DevRev.RevUsersGetRequest` </dd> </dl> @@ -8761,7 +9309,7 @@ await client.customization.customStagesListPost(); <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `RevUsers.RequestOptions` </dd> </dl> @@ -8772,7 +9320,7 @@ await client.customization.customStagesListPost(); </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStagesUpdate</a>({ ...params }) -> DevRev.CustomStagesUpdateResponse</code></summary> +<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">linkRevUserToRevOrg</a>({ ...params }) -> DevRev.LinkRevUserToRevOrgResponse</code></summary> <dl> <dd> @@ -8784,7 +9332,7 @@ await client.customization.customStagesListPost(); <dl> <dd> -Updates a custom stage. +Links a rev user to a rev org. </dd> </dl> @@ -8800,9 +9348,7 @@ Updates a custom stage. <dd> ```typescript -await client.customization.customStagesUpdate({ - id: "id", -}); +await client.revUsers.linkRevUserToRevOrg(); ``` </dd> @@ -8818,7 +9364,7 @@ await client.customization.customStagesUpdate({ <dl> <dd> -**request:** `DevRev.CustomStagesUpdateRequest` +**request:** `DevRev.LinkRevUserToRevOrgRequest` </dd> </dl> @@ -8826,7 +9372,7 @@ await client.customization.customStagesUpdate({ <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `RevUsers.RequestOptions` </dd> </dl> @@ -8837,7 +9383,7 @@ await client.customization.customStagesUpdate({ </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStatesCreate</a>({ ...params }) -> DevRev.CustomStatesCreateResponse</code></summary> +<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">listPost</a>({ ...params }) -> DevRev.RevUsersListResponse</code></summary> <dl> <dd> @@ -8849,7 +9395,8 @@ await client.customization.customStagesUpdate({ <dl> <dd> -Creates a custom state. +Returns a list of all Rev Users belonging to the authenticated user's +Dev Organization. </dd> </dl> @@ -8865,10 +9412,7 @@ Creates a custom state. <dd> ```typescript -await client.customization.customStatesCreate({ - name: "name", - ordinal: 1, -}); +await client.revUsers.listPost(); ``` </dd> @@ -8884,7 +9428,7 @@ await client.customization.customStatesCreate({ <dl> <dd> -**request:** `DevRev.CustomStatesCreateRequest` +**request:** `DevRev.RevUsersListRequest` </dd> </dl> @@ -8892,7 +9436,7 @@ await client.customization.customStatesCreate({ <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `RevUsers.RequestOptions` </dd> </dl> @@ -8903,7 +9447,7 @@ await client.customization.customStatesCreate({ </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStatesGetPost</a>({ ...params }) -> DevRev.CustomStatesGetResponse</code></summary> +<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">scanPost</a>({ ...params }) -> DevRev.RevUsersScanResponse</code></summary> <dl> <dd> @@ -8915,7 +9459,7 @@ await client.customization.customStatesCreate({ <dl> <dd> -Gets a custom state. +Scans through all Rev users. </dd> </dl> @@ -8931,9 +9475,7 @@ Gets a custom state. <dd> ```typescript -await client.customization.customStatesGetPost({ - id: "id", -}); +await client.revUsers.scanPost(); ``` </dd> @@ -8949,7 +9491,7 @@ await client.customization.customStatesGetPost({ <dl> <dd> -**request:** `DevRev.CustomStatesGetRequest` +**request:** `DevRev.RevUsersScanRequest` </dd> </dl> @@ -8957,7 +9499,7 @@ await client.customization.customStatesGetPost({ <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `RevUsers.RequestOptions` </dd> </dl> @@ -8968,7 +9510,7 @@ await client.customization.customStatesGetPost({ </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStatesListPost</a>({ ...params }) -> DevRev.CustomStatesListResponse</code></summary> +<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">unlinkRevUserFromRevOrg</a>({ ...params }) -> DevRev.UnlinkRevUserFromRevOrgResponse</code></summary> <dl> <dd> @@ -8980,7 +9522,7 @@ await client.customization.customStatesGetPost({ <dl> <dd> -Lists custom states. +Unlinks a rev user from a rev org. </dd> </dl> @@ -8996,7 +9538,7 @@ Lists custom states. <dd> ```typescript -await client.customization.customStatesListPost(); +await client.revUsers.unlinkRevUserFromRevOrg(); ``` </dd> @@ -9012,7 +9554,7 @@ await client.customization.customStatesListPost(); <dl> <dd> -**request:** `DevRev.CustomStatesListRequest` +**request:** `DevRev.UnlinkRevUserFromRevOrgRequest` </dd> </dl> @@ -9020,7 +9562,7 @@ await client.customization.customStatesListPost(); <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `RevUsers.RequestOptions` </dd> </dl> @@ -9031,7 +9573,7 @@ await client.customization.customStatesListPost(); </dl> </details> -<details><summary><code>client.customization.<a href="/src/api/resources/customization/client/Client.ts">customStatesUpdate</a>({ ...params }) -> DevRev.CustomStatesUpdateResponse</code></summary> +<details><summary><code>client.revUsers.<a href="/src/api/resources/revUsers/client/Client.ts">update</a>({ ...params }) -> DevRev.RevUsersUpdateResponse</code></summary> <dl> <dd> @@ -9043,7 +9585,7 @@ await client.customization.customStatesListPost(); <dl> <dd> -Updates a custom state. +Updates a Rev user. </dd> </dl> @@ -9059,7 +9601,7 @@ Updates a custom state. <dd> ```typescript -await client.customization.customStatesUpdate({ +await client.revUsers.update({ id: "id", }); ``` @@ -9077,7 +9619,7 @@ await client.customization.customStatesUpdate({ <dl> <dd> -**request:** `DevRev.CustomStatesUpdateRequest` +**request:** `DevRev.RevUsersUpdateRequest` </dd> </dl> @@ -9085,7 +9627,7 @@ await client.customization.customStatesUpdate({ <dl> <dd> -**requestOptions:** `Customization.RequestOptions` +**requestOptions:** `RevUsers.RequestOptions` </dd> </dl> @@ -9462,7 +10004,7 @@ Create a snap widget object. await client.snapWidgets.create({ type: "email_preview", name: "string", - namespace: DevRev.SnapWidgetNamespace.CommentSuggestionReplies, + namespace: DevRev.SnapWidgetNamespace.AiAssistantMessage, status: DevRev.SnapWidgetStatus.Draft, bcc: [ { @@ -10440,7 +10982,7 @@ await client.timelineEntries.create({ visibility: DevRev.TimelineEntryVisibility.External, artifacts: ["string"], body: "string", - bodyType: DevRev.TimelineCommentBodyType.SnapKit, + bodyType: DevRev.TimelineCommentBodyType.Data, externalRef: "string", linkPreviews: ["string"], snapKitBody: {}, @@ -10709,7 +11251,8 @@ await client.timelineEntries.update({ id: "string", artifacts: {}, body: "string", - bodyType: DevRev.TimelineCommentBodyType.SnapKit, + bodyType: DevRev.TimelineCommentBodyType.Data, + externalRef: "string", linkPreviews: {}, snapKitBody: {}, }); @@ -10879,6 +11422,72 @@ await client.webhooks.delete({ </dl> </details> +<details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">fetch</a>({ ...params }) -> DevRev.WebhooksFetchResponse</code></summary> +<dl> +<dd> + +#### 📝 Description + +<dl> +<dd> + +<dl> +<dd> + +Fetches an object via webhook. + +</dd> +</dl> +</dd> +</dl> + +#### 🔌 Usage + +<dl> +<dd> + +<dl> +<dd> + +```typescript +await client.webhooks.fetch({ + id: "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>", + object: "ISS-12345", +}); +``` + +</dd> +</dl> +</dd> +</dl> + +#### ⚙️ Parameters + +<dl> +<dd> + +<dl> +<dd> + +**request:** `DevRev.WebhooksFetchRequest` + +</dd> +</dl> + +<dl> +<dd> + +**requestOptions:** `Webhooks.RequestOptions` + +</dd> +</dl> +</dd> +</dl> + +</dd> +</dl> +</details> + <details><summary><code>client.webhooks.<a href="/src/api/resources/webhooks/client/Client.ts">getPost</a>({ ...params }) -> DevRev.WebhooksGetResponse</code></summary> <dl> <dd> diff --git a/src/Client.ts b/src/Client.ts index be10571..7fe99f3 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -9,6 +9,7 @@ import { Articles } from "./api/resources/articles/client/Client"; import { Artifacts } from "./api/resources/artifacts/client/Client"; 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 { AuthConnection } from "./api/resources/authConnection/client/Client"; import { DevUsers } from "./api/resources/devUsers/client/Client"; @@ -17,16 +18,16 @@ 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"; -import { Notifications } from "./api/resources/notifications/client/Client"; import { Schedules } from "./api/resources/schedules/client/Client"; import { Parts } from "./api/resources/parts/client/Client"; +import { Preferences } from "./api/resources/preferences/client/Client"; import { QuestionAnswers } from "./api/resources/questionAnswers/client/Client"; import { RevOrgs } from "./api/resources/revOrgs/client/Client"; import { RevUsers } from "./api/resources/revUsers/client/Client"; -import { Customization } from "./api/resources/customization/client/Client"; import { Search } from "./api/resources/search/client/Client"; import { ServiceAccounts } from "./api/resources/serviceAccounts/client/Client"; import { SnapIns } from "./api/resources/snapIns/client/Client"; @@ -92,6 +93,12 @@ export class DevRevClient { return (this._codeChanges ??= new CodeChanges(this._options)); } + protected _notifications: Notifications | undefined; + + public get notifications(): Notifications { + return (this._notifications ??= new Notifications(this._options)); + } + protected _conversations: Conversations | undefined; public get conversations(): Conversations { @@ -140,6 +147,12 @@ 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 { @@ -158,12 +171,6 @@ export class DevRevClient { return (this._productUsage ??= new ProductUsage(this._options)); } - protected _notifications: Notifications | undefined; - - public get notifications(): Notifications { - return (this._notifications ??= new Notifications(this._options)); - } - protected _schedules: Schedules | undefined; public get schedules(): Schedules { @@ -176,6 +183,12 @@ export class DevRevClient { return (this._parts ??= new Parts(this._options)); } + protected _preferences: Preferences | undefined; + + public get preferences(): Preferences { + return (this._preferences ??= new Preferences(this._options)); + } + protected _questionAnswers: QuestionAnswers | undefined; public get questionAnswers(): QuestionAnswers { @@ -194,12 +207,6 @@ export class DevRevClient { return (this._revUsers ??= new RevUsers(this._options)); } - protected _customization: Customization | undefined; - - public get customization(): Customization { - return (this._customization ??= new Customization(this._options)); - } - protected _search: Search | undefined; public get search(): Search { diff --git a/src/api/resources/accounts/client/Client.ts b/src/api/resources/accounts/client/Client.ts index 2b6e94b..bbeab6c 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 1960d71..11ee4be 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 d1c760b..0e44797 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 40fae36..ef8bb12 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 5096f90..18ddb44 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 0e0a256..e937348 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 fa20136..9004ee0 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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/Client.ts b/src/api/resources/customization/client/Client.ts index 9b36660..d580265 100644 --- a/src/api/resources/customization/client/Client.ts +++ b/src/api/resources/customization/client/Client.ts @@ -36,6 +36,590 @@ export declare namespace Customization { export class Customization { constructor(protected readonly _options: Customization.Options = {}) {} + /** + * Creates a custom link type. + * + * @param {DevRev.CustomLinkTypeCreateRequest} 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.customLinkTypeCreate({ + * backwardName: "backward_name", + * forwardName: "forward_name", + * name: "name", + * sourceTypes: [{ + * "key": "value" + * }], + * targetTypes: [{ + * "key": "value" + * }] + * }) + */ + public async customLinkTypeCreate( + request: DevRev.CustomLinkTypeCreateRequest, + requestOptions?: Customization.RequestOptions + ): Promise<DevRev.CustomLinkTypeCreateResponse> { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "link-types.custom.create" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.5", + "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.CustomLinkTypeCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.CustomLinkTypeCreateResponse.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 link type. + * + * @param {DevRev.CustomLinkTypeGetRequest} 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.customLinkTypeGetPost({ + * id: "id" + * }) + */ + public async customLinkTypeGetPost( + request: DevRev.CustomLinkTypeGetRequest, + requestOptions?: Customization.RequestOptions + ): Promise<DevRev.CustomLinkTypeGetResponse> { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "link-types.custom.get" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.5", + "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.CustomLinkTypeGetRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.CustomLinkTypeGetResponse.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 link types. + * + * @param {DevRev.CustomLinkTypeListRequest} 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.customLinkTypeListPost() + */ + public async customLinkTypeListPost( + request: DevRev.CustomLinkTypeListRequest = {}, + requestOptions?: Customization.RequestOptions + ): Promise<DevRev.CustomLinkTypeListResponse> { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "link-types.custom.list" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.5", + "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.CustomLinkTypeListRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.CustomLinkTypeListResponse.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 link type. + * + * @param {DevRev.CustomLinkTypeUpdateRequest} 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.customLinkTypeUpdate({ + * id: "id" + * }) + */ + public async customLinkTypeUpdate( + request: DevRev.CustomLinkTypeUpdateRequest, + requestOptions?: Customization.RequestOptions + ): Promise<DevRev.CustomLinkTypeUpdateResponse> { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "link-types.custom.update" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.5", + "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.CustomLinkTypeUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.CustomLinkTypeUpdateResponse.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 aggregated schema. * @@ -69,7 +653,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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 +803,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -366,7 +950,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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 +1108,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -662,7 +1246,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -809,7 +1393,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -946,7 +1530,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1087,7 +1671,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1227,7 +1811,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1374,7 +1958,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1514,7 +2098,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1664,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.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1804,7 +2388,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -1951,7 +2535,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -2091,7 +2675,7 @@ export class Customization { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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/CustomLinkTypeCreateRequest.ts b/src/api/resources/customization/client/requests/CustomLinkTypeCreateRequest.ts new file mode 100644 index 0000000..1d85638 --- /dev/null +++ b/src/api/resources/customization/client/requests/CustomLinkTypeCreateRequest.ts @@ -0,0 +1,36 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../../../../index"; + +/** + * @example + * { + * backwardName: "backward_name", + * forwardName: "forward_name", + * name: "name", + * sourceTypes: [{ + * "key": "value" + * }], + * targetTypes: [{ + * "key": "value" + * }] + * } + */ +export interface CustomLinkTypeCreateRequest { + /** The name of the link in the backward direction. */ + backwardName: string; + /** Whether the link type is deprecated. */ + deprecated?: boolean; + /** The name of the link in the forward direction. */ + forwardName: string; + /** The name of the custom link type. */ + name: string; + /** Types from which the link can be made from. */ + sourceTypes: DevRev.LinkTargetDescriptor[]; + /** Types to which the link can be made to. */ + targetTypes: DevRev.LinkTargetDescriptor[]; + /** The tooltip of the custom link type. */ + tooltip?: string; +} diff --git a/src/api/resources/customization/client/requests/CustomLinkTypeGetRequest.ts b/src/api/resources/customization/client/requests/CustomLinkTypeGetRequest.ts new file mode 100644 index 0000000..98ed9d2 --- /dev/null +++ b/src/api/resources/customization/client/requests/CustomLinkTypeGetRequest.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * id: "id" + * } + */ +export interface CustomLinkTypeGetRequest { + /** The ID of the custom link type to get. */ + id: string; +} diff --git a/src/api/resources/customization/client/requests/CustomLinkTypeListRequest.ts b/src/api/resources/customization/client/requests/CustomLinkTypeListRequest.ts new file mode 100644 index 0000000..5939aaf --- /dev/null +++ b/src/api/resources/customization/client/requests/CustomLinkTypeListRequest.ts @@ -0,0 +1,32 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../../../../index"; + +/** + * @example + * {} + */ +export interface CustomLinkTypeListRequest { + /** + * The cursor to resume iteration from. If not provided, then + * iteration starts from the beginning. + * + */ + cursor?: string; + /** Whether only deprecated link types should be filtered. */ + deprecated?: boolean; + /** The maximum number of items. */ + limit?: number; + mode?: DevRev.ListMode; + /** The list of link type names. */ + name?: string[]; + /** + * The list of fields to sort the items by and how to sort them. + * + */ + sortBy?: string[]; + sourceTypes?: DevRev.LinkDescriptorFilter; + targetTypes?: DevRev.LinkDescriptorFilter; +} diff --git a/src/api/resources/customization/client/requests/CustomLinkTypeUpdateRequest.ts b/src/api/resources/customization/client/requests/CustomLinkTypeUpdateRequest.ts new file mode 100644 index 0000000..fd689f9 --- /dev/null +++ b/src/api/resources/customization/client/requests/CustomLinkTypeUpdateRequest.ts @@ -0,0 +1,28 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../../../../index"; + +/** + * @example + * { + * id: "id" + * } + */ +export interface CustomLinkTypeUpdateRequest { + /** The updated name of the link in the backward direction. */ + backwardName?: string; + /** Whether the link type is deprecated. */ + deprecated?: boolean; + /** The updated name of the link in the forward direction. */ + forwardName?: string; + /** The ID of the custom link type to update. */ + id: string; + /** The updated name of the custom link type. */ + name?: string; + sourceTypes?: DevRev.UpdateLinkTargetDescriptorList; + targetTypes?: DevRev.UpdateLinkTargetDescriptorList; + /** The updated tooltip of the custom link type. */ + tooltip?: string; +} diff --git a/src/api/resources/customization/client/requests/index.ts b/src/api/resources/customization/client/requests/index.ts index 3a32f28..12fa924 100644 --- a/src/api/resources/customization/client/requests/index.ts +++ b/src/api/resources/customization/client/requests/index.ts @@ -1,3 +1,7 @@ +export { type CustomLinkTypeCreateRequest } from "./CustomLinkTypeCreateRequest"; +export { type CustomLinkTypeGetRequest } from "./CustomLinkTypeGetRequest"; +export { type CustomLinkTypeListRequest } from "./CustomLinkTypeListRequest"; +export { type CustomLinkTypeUpdateRequest } from "./CustomLinkTypeUpdateRequest"; export { type AggregatedSchemaGetRequest } from "./AggregatedSchemaGetRequest"; export { type CustomSchemaFragmentsGetRequest } from "./CustomSchemaFragmentsGetRequest"; export { type CustomSchemaFragmentsListRequest } from "./CustomSchemaFragmentsListRequest"; diff --git a/src/api/resources/devUsers/client/Client.ts b/src/api/resources/devUsers/client/Client.ts index 238cd08..faf130b 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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/devUsers/client/requests/DevUsersListRequest.ts b/src/api/resources/devUsers/client/requests/DevUsersListRequest.ts index 777c894..b9544b2 100644 --- a/src/api/resources/devUsers/client/requests/DevUsersListRequest.ts +++ b/src/api/resources/devUsers/client/requests/DevUsersListRequest.ts @@ -16,6 +16,8 @@ export interface DevUsersListRequest { * */ cursor?: string; + /** Filters for custom fields. */ + customFields?: Record<string, unknown>; /** Filters Dev users based on email addresses. */ email?: string[]; /** Filters Dev users based on external identity. */ diff --git a/src/api/resources/devUsers/client/requests/DevUsersSelfUpdateRequest.ts b/src/api/resources/devUsers/client/requests/DevUsersSelfUpdateRequest.ts index dee7544..3002a6f 100644 --- a/src/api/resources/devUsers/client/requests/DevUsersSelfUpdateRequest.ts +++ b/src/api/resources/devUsers/client/requests/DevUsersSelfUpdateRequest.ts @@ -9,9 +9,16 @@ import * as DevRev from "../../../../index"; * {} */ export interface DevUsersSelfUpdateRequest { + /** Application-defined custom fields. */ + customFields?: Record<string, unknown>; + customSchemaSpec?: DevRev.CustomSchemaSpec; /** The updated display name of the Dev user. */ displayName?: string; + /** Start date of Dev user's experience. */ + experienceStartDate?: Date; /** The updated full name of the Dev user. */ fullName?: string; + /** Job history of the Dev user. */ + jobHistory?: DevRev.DevUsersUpdateJobHistoryItem[]; jobTitle?: DevRev.DevUserJobTitle; } diff --git a/src/api/resources/devUsers/client/requests/DevUsersUpdateRequest.ts b/src/api/resources/devUsers/client/requests/DevUsersUpdateRequest.ts index 9e7d7fc..9c5c35b 100644 --- a/src/api/resources/devUsers/client/requests/DevUsersUpdateRequest.ts +++ b/src/api/resources/devUsers/client/requests/DevUsersUpdateRequest.ts @@ -11,11 +11,18 @@ import * as DevRev from "../../../../index"; * } */ export interface DevUsersUpdateRequest { + /** Application-defined custom fields. */ + customFields?: Record<string, unknown>; + customSchemaSpec?: DevRev.CustomSchemaSpec; /** The updated display name of the Dev user. */ displayName?: string; + /** Start date of Dev user's experience. */ + experienceStartDate?: Date; /** The updated full name of the Dev user. */ fullName?: string; /** The ID for the Dev user to be updated. */ id: string; + /** Job history of the Dev user. */ + jobHistory?: DevRev.DevUsersUpdateJobHistoryItem[]; jobTitle?: DevRev.DevUserJobTitle; } diff --git a/src/api/resources/engagements/client/Client.ts b/src/api/resources/engagements/client/Client.ts index 048e81d..1a29419 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.4", + "X-Fern-SDK-Version": "0.0.5", "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 Engagements { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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 +348,7 @@ export class Engagements { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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 Engagements { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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 Engagements { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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 Engagements { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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/eventSource/client/Client.ts b/src/api/resources/eventSource/client/Client.ts index 73a0f82..428c520 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 c129c3e..62d1ca3 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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/requests/GroupsListRequest.ts b/src/api/resources/groups/client/requests/GroupsListRequest.ts index 0b8ee68..1a19194 100644 --- a/src/api/resources/groups/client/requests/GroupsListRequest.ts +++ b/src/api/resources/groups/client/requests/GroupsListRequest.ts @@ -17,6 +17,8 @@ export interface GroupsListRequest { cursor?: string; /** Filters the groups based on the group type. */ groupType?: DevRev.GroupType[]; + /** Filter groups by ingestion source(s). */ + ingestionSource?: DevRev.GroupIngestionSource[]; /** Whether to fetch default or custom groups. */ isDefault?: boolean; /** diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 4730ccb..05f4283 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -3,6 +3,7 @@ export * as articles from "./articles"; export * as artifacts from "./artifacts"; export * as authTokens from "./authTokens"; export * as codeChanges from "./codeChanges"; +export * as notifications from "./notifications"; export * as conversations from "./conversations"; export * as authConnection from "./authConnection"; export * as devUsers from "./devUsers"; @@ -11,16 +12,16 @@ 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"; -export * as notifications from "./notifications"; export * as schedules from "./schedules"; export * as parts from "./parts"; +export * as preferences from "./preferences"; export * as questionAnswers from "./questionAnswers"; export * as revOrgs from "./revOrgs"; export * as revUsers from "./revUsers"; -export * as customization from "./customization"; export * as search from "./search"; export * as serviceAccounts from "./serviceAccounts"; export * as snapIns from "./snapIns"; @@ -36,6 +37,7 @@ export * from "./articles/client/requests"; export * from "./artifacts/client/requests"; export * from "./authTokens/client/requests"; export * from "./codeChanges/client/requests"; +export * from "./notifications/client/requests"; export * from "./conversations/client/requests"; export * from "./authConnection/client/requests"; export * from "./devUsers/client/requests"; @@ -44,16 +46,16 @@ 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"; -export * from "./notifications/client/requests"; export * from "./schedules/client/requests"; export * from "./parts/client/requests"; +export * from "./preferences/client/requests"; export * from "./questionAnswers/client/requests"; export * from "./revOrgs/client/requests"; export * from "./revUsers/client/requests"; -export * from "./customization/client/requests"; export * from "./search/client/requests"; export * from "./serviceAccounts/client/requests"; export * from "./snapIns/client/requests"; diff --git a/src/api/resources/keyring/client/Client.ts b/src/api/resources/keyring/client/Client.ts index 61bd6c7..7c8ccfb 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.4", + "X-Fern-SDK-Version": "0.0.5", "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 31baf50..101c434 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 77c4dc7..f262b28 100644 --- a/src/api/resources/notifications/client/Client.ts +++ b/src/api/resources/notifications/client/Client.ts @@ -36,6 +36,429 @@ export declare namespace Notifications { export class Notifications { constructor(protected readonly _options: Notifications.Options = {}) {} + /** + * Create the content template. + * + * @param {DevRev.ContentTemplateCreateRequest} request + * @param {Notifications.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.notifications.contentTemplateCreate({ + * type: "notification_content_template", + * inputFieldsSchema: [{ + * fieldType: "array", + * value: { + * "key": "value" + * } + * }], + * name: "string", + * defaults: [{}] + * }) + */ + public async contentTemplateCreate( + request: DevRev.ContentTemplateCreateRequest, + requestOptions?: Notifications.RequestOptions + ): Promise<DevRev.ContentTemplateCreateResponse> { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "content-template.create" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.5", + "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.ContentTemplateCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.ContentTemplateCreateResponse.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, + }); + } + } + + /** + * Get the content template. + * + * @param {DevRev.ContentTemplateGetRequest} request + * @param {Notifications.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.notifications.contentTemplateGetPost({ + * id: "id" + * }) + */ + public async contentTemplateGetPost( + request: DevRev.ContentTemplateGetRequest, + requestOptions?: Notifications.RequestOptions + ): Promise<DevRev.ContentTemplateGetResponse> { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "content-template.get" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.5", + "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.ContentTemplateGetRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.ContentTemplateGetResponse.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, + }); + } + } + + /** + * Lists the content templates. + * + * @param {DevRev.ContentTemplateListRequest} request + * @param {Notifications.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.notifications.contentTemplateListPost() + */ + public async contentTemplateListPost( + request: DevRev.ContentTemplateListRequest = {}, + requestOptions?: Notifications.RequestOptions + ): Promise<DevRev.ContentTemplateListResponse> { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "content-template.list" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.5", + "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.ContentTemplateListRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.ContentTemplateListResponse.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, + }); + } + } + /** * Generate a notification. * @@ -68,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.4", + "X-Fern-SDK-Version": "0.0.5", "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/requests/ContentTemplateGetRequest.ts b/src/api/resources/notifications/client/requests/ContentTemplateGetRequest.ts new file mode 100644 index 0000000..d9bab4b --- /dev/null +++ b/src/api/resources/notifications/client/requests/ContentTemplateGetRequest.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * id: "id" + * } + */ +export interface ContentTemplateGetRequest { + /** The content template's ID. */ + id: string; +} diff --git a/src/api/resources/notifications/client/requests/ContentTemplateListRequest.ts b/src/api/resources/notifications/client/requests/ContentTemplateListRequest.ts new file mode 100644 index 0000000..7f1d288 --- /dev/null +++ b/src/api/resources/notifications/client/requests/ContentTemplateListRequest.ts @@ -0,0 +1,40 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../../../../index"; + +/** + * @example + * {} + */ +export interface ContentTemplateListRequest { + /** Filters for content template of the provided types. */ + type?: DevRev.ContentTemplateType[]; + /** + * Filters for content template created by any of these users. + * + */ + createdBy?: string[]; + /** + * The cursor to resume iteration from. If not provided, then + * iteration starts from the beginning. + * + */ + cursor?: string; + /** + * The maximum number of content template to return. The default is + * '50'. + * + */ + limit?: number; + mode?: DevRev.ListMode; + /** Filters for content template based on name. */ + name?: string[]; + /** + * Fields to sort the content template by and the direction to sort + * them. + * + */ + sortBy?: string[]; +} diff --git a/src/api/resources/notifications/client/requests/index.ts b/src/api/resources/notifications/client/requests/index.ts index c4e7f9c..ab53aed 100644 --- a/src/api/resources/notifications/client/requests/index.ts +++ b/src/api/resources/notifications/client/requests/index.ts @@ -1 +1,3 @@ +export { type ContentTemplateGetRequest } from "./ContentTemplateGetRequest"; +export { type ContentTemplateListRequest } from "./ContentTemplateListRequest"; export { type NotificationsSendRequest } from "./NotificationsSendRequest"; diff --git a/src/api/resources/operate/client/Client.ts b/src/api/resources/operate/client/Client.ts index f73ad70..b872a2f 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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/requests/IncidentsCreateRequest.ts b/src/api/resources/operate/client/requests/IncidentsCreateRequest.ts index 3e7f306..1eeb340 100644 --- a/src/api/resources/operate/client/requests/IncidentsCreateRequest.ts +++ b/src/api/resources/operate/client/requests/IncidentsCreateRequest.ts @@ -11,6 +11,8 @@ import * as DevRev from "../../../../index"; * } */ export interface IncidentsCreateRequest { + /** Timestamp when the incident was acknowledged. */ + acknowledgedDate?: Date; /** Parts to which the incident is applicable to. */ appliesToParts?: string[]; /** Artifacts attached to the incident. */ @@ -21,15 +23,39 @@ export interface IncidentsCreateRequest { customFields?: Record<string, unknown>; customSchemaSpec?: DevRev.CustomSchemaSpec; /** Time when the incident was identified/reported. */ - identifiedAt?: Date; + identifiedDate?: Date; + impact?: DevRev.CreateImpactedCustomerDetails; /** List of customers impacted due to the incident. */ impactedCustomers?: string[]; + /** Timestamp when the incident was mitigated. */ + mitigatedDate?: Date; /** User IDs of the users that own the incident. */ ownedBy?: string[]; - /** Timestamp when the incident was resolved. */ - resolvedAt?: Date; + /** + * The article ids of the Post-Incident Analysis(PIA) of the incident. + * + */ + pia?: string[]; + /** + * The article ids of the playbook(s) associated with the incident. + * + */ + playbooks?: string[]; + /** + * The article ids of other documents associated with the incident. + * + */ + relatedDocs?: string[]; + /** The entity that first reported the incident. */ + reportedBy?: number; /** Severity of the incident. */ severity?: number; + /** + * Source of where the incident was created. Only sys users and + * service accounts are supposed to set this field. + * + */ + source?: number; stage?: DevRev.CreateStage; /** * Users, along with the incident commander, involved in resolving diff --git a/src/api/resources/operate/client/requests/IncidentsGroupRequest.ts b/src/api/resources/operate/client/requests/IncidentsGroupRequest.ts index 6486260..f9942c3 100644 --- a/src/api/resources/operate/client/requests/IncidentsGroupRequest.ts +++ b/src/api/resources/operate/client/requests/IncidentsGroupRequest.ts @@ -11,6 +11,8 @@ import * as DevRev from "../../../../index"; * } */ export interface IncidentsGroupRequest { + acknowledgedDate?: DevRev.DateFilter; + actualCloseDate?: DevRev.DateFilter; /** * Filters for incidents that apply to any of the provided parts. * @@ -30,6 +32,7 @@ export interface IncidentsGroupRequest { cursor?: string; /** The field to group the incidents by. */ groupBy: string; + identifiedDate?: DevRev.DateFilter; /** * The maximum number of groups to return. If not set, then the * default is '10'. @@ -42,6 +45,7 @@ export interface IncidentsGroupRequest { * */ limitPerGroup?: number; + mitigatedDate?: DevRev.DateFilter; mode?: DevRev.ListMode; modifiedDate?: DevRev.DateFilter; /** @@ -49,6 +53,23 @@ export interface IncidentsGroupRequest { * */ ownedBy?: string[]; + /** Filters for incidents with any of the provided PIAs. */ + pia?: string[]; + /** + * Filters for incidents with any of the provided playbooks. + * + */ + playbook?: string[]; + /** + * Filters for incidents with any of the provided related docs. + * + */ + relatedDocs?: string[]; + /** + * Filters for incidents with any of the provided reporters. + * + */ + reportedBy?: number[]; /** * Filters for incidents containing any of the provided severities. * @@ -56,8 +77,11 @@ export interface IncidentsGroupRequest { severity?: number[]; /** Comma-separated fields to sort the incidents by. */ sortBy?: string[]; + /** Filters for incidents with any of the provided sources. */ + source?: number[]; /** Filters for incidents in any of the provided stages. */ stage?: string[]; + targetCloseDate?: DevRev.DateFilter; /** Filters for incidents by the provided titles. */ title?: string[]; } diff --git a/src/api/resources/operate/client/requests/IncidentsListRequest.ts b/src/api/resources/operate/client/requests/IncidentsListRequest.ts index 0a0187e..9f6d7cc 100644 --- a/src/api/resources/operate/client/requests/IncidentsListRequest.ts +++ b/src/api/resources/operate/client/requests/IncidentsListRequest.ts @@ -9,6 +9,8 @@ import * as DevRev from "../../../../index"; * {} */ export interface IncidentsListRequest { + acknowledgedDate?: DevRev.DateFilter; + actualCloseDate?: DevRev.DateFilter; /** * Filters for incidents that apply to any of the provided parts. * @@ -26,8 +28,10 @@ export interface IncidentsListRequest { * */ cursor?: string; + identifiedDate?: DevRev.DateFilter; /** The maximum number of items. */ limit?: number; + mitigatedDate?: DevRev.DateFilter; mode?: DevRev.ListMode; modifiedDate?: DevRev.DateFilter; /** @@ -35,6 +39,23 @@ export interface IncidentsListRequest { * */ ownedBy?: string[]; + /** Filters for incidents with any of the provided PIAs. */ + pia?: string[]; + /** + * Filters for incidents with any of the provided playbooks. + * + */ + playbook?: string[]; + /** + * Filters for incidents with any of the provided related docs. + * + */ + relatedDocs?: string[]; + /** + * Filters for incidents with any of the provided reporters. + * + */ + reportedBy?: number[]; /** * Filters for incidents containing any of the provided severities. * @@ -45,8 +66,11 @@ export interface IncidentsListRequest { * */ sortBy?: string[]; + /** Filters for incidents with any of the provided sources. */ + source?: number[]; /** Filters for incidents in any of the provided stages. */ stage?: string[]; + targetCloseDate?: DevRev.DateFilter; /** Filters for incidents by the provided titles. */ title?: string[]; } diff --git a/src/api/resources/operate/client/requests/IncidentsUpdateRequest.ts b/src/api/resources/operate/client/requests/IncidentsUpdateRequest.ts index 62323a5..4bb6dec 100644 --- a/src/api/resources/operate/client/requests/IncidentsUpdateRequest.ts +++ b/src/api/resources/operate/client/requests/IncidentsUpdateRequest.ts @@ -11,6 +11,8 @@ import * as DevRev from "../../../../index"; * } */ export interface IncidentsUpdateRequest { + /** Timestamp when the incident was acknowledged. */ + acknowledgedDate?: Date; appliesToParts?: DevRev.UpdateIncidentAppliesToParts; artifacts?: DevRev.UpdateIncidentArtifacts; /** Body of the incident. */ @@ -21,13 +23,25 @@ export interface IncidentsUpdateRequest { /** The ID of the incident to be updated. */ id: string; /** Time when the incident was identified/reported. */ - identifiedAt?: Date; + identifiedDate?: Date; + impact?: DevRev.UpdateImpactedCustomerDetails; impactedCustomers?: DevRev.UpdateIncidentImpactedCustomers; + /** Timestamp when the incident was mitigated. */ + mitigatedDate?: Date; ownedBy?: DevRev.UpdateIncidentOwnedBy; - /** Timestamp when the incident was resolved. */ - resolvedAt?: Date; + pia?: DevRev.UpdateIncidentPia; + playbooks?: DevRev.UpdateIncidentPlaybooks; + relatedDocs?: DevRev.UpdateIncidentRelatedDocs; + /** The entity that first reported the incident. */ + reportedBy?: number; /** Severity of the incident. */ severity?: number; + /** + * Source of where the incident was created. Only sys users and + * service accounts are supposed to set this field. + * + */ + source?: number; stage?: DevRev.UpdateStage; stakeholders?: DevRev.UpdateIncidentStakeholders; tags?: DevRev.UpdateIncidentTags; diff --git a/src/api/resources/parts/client/Client.ts b/src/api/resources/parts/client/Client.ts index 30c6fdb..5b7cb4c 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 new file mode 100644 index 0000000..5459673 --- /dev/null +++ b/src/api/resources/preferences/client/Client.ts @@ -0,0 +1,203 @@ +/** + * 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 Preferences { + interface Options { + environment?: core.Supplier<environments.DevRevEnvironment | string>; + token?: core.Supplier<core.BearerToken | undefined>; + /** 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"; + } +} + +/** + * DevRev preferences APIs. + */ +export class Preferences { + constructor(protected readonly _options: Preferences.Options = {}) {} + + /** + * Get the preferences object. + * + * @param {DevRev.PreferencesGetRequest} request + * @param {Preferences.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.preferences.getPost({ + * type: "user_preferences", + * object: "string" + * }) + */ + public async getPost( + request: DevRev.PreferencesGetRequest, + requestOptions?: Preferences.RequestOptions + ): Promise<DevRev.PreferencesGetResponse> { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "preferences.get" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.5", + "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.PreferencesGetRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + type: "user_preferences", + }, + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.PreferencesGetResponse.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<string> { + 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/preferences/client/index.ts b/src/api/resources/preferences/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/api/resources/preferences/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/api/resources/preferences/client/requests/PreferencesGetRequest.ts b/src/api/resources/preferences/client/requests/PreferencesGetRequest.ts new file mode 100644 index 0000000..ad79038 --- /dev/null +++ b/src/api/resources/preferences/client/requests/PreferencesGetRequest.ts @@ -0,0 +1,19 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * type: "user_preferences", + * object: "string" + * } + */ +export interface PreferencesGetRequest { + /** + * The ID of the target object for which preferences object is to be + * fetched. + * + */ + object: string; +} diff --git a/src/api/resources/preferences/client/requests/index.ts b/src/api/resources/preferences/client/requests/index.ts new file mode 100644 index 0000000..24cd248 --- /dev/null +++ b/src/api/resources/preferences/client/requests/index.ts @@ -0,0 +1 @@ +export { type PreferencesGetRequest } from "./PreferencesGetRequest"; diff --git a/src/api/resources/preferences/index.ts b/src/api/resources/preferences/index.ts new file mode 100644 index 0000000..5ec7692 --- /dev/null +++ b/src/api/resources/preferences/index.ts @@ -0,0 +1 @@ +export * from "./client"; diff --git a/src/api/resources/productUsage/client/Client.ts b/src/api/resources/productUsage/client/Client.ts index 3f516aa..c2970dc 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 57b71b1..0a0d2f5 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 e6df521..52b4eff 100644 --- a/src/api/resources/revOrgs/client/Client.ts +++ b/src/api/resources/revOrgs/client/Client.ts @@ -53,6 +53,7 @@ export class RevOrgs { * * @example * await client.revOrgs.create({ + * account: "ACC-12345", * displayName: "display_name" * }) */ @@ -70,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.4", + "X-Fern-SDK-Version": "0.0.5", "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 +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.4", + "X-Fern-SDK-Version": "0.0.5", "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 +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.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -518,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.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -669,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.4", + "X-Fern-SDK-Version": "0.0.5", "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/requests/RevOrgsCreateRequest.ts b/src/api/resources/revOrgs/client/requests/RevOrgsCreateRequest.ts index c756ad4..c271f6c 100644 --- a/src/api/resources/revOrgs/client/requests/RevOrgsCreateRequest.ts +++ b/src/api/resources/revOrgs/client/requests/RevOrgsCreateRequest.ts @@ -7,12 +7,13 @@ import * as DevRev from "../../../../index"; /** * @example * { + * account: "ACC-12345", * displayName: "display_name" * } */ export interface RevOrgsCreateRequest { /** Account Id to associate with this Rev organization. */ - account?: string; + account: string; /** * The IDs of the artifacts to associate with the Rev organization. * diff --git a/src/api/resources/revUsers/client/Client.ts b/src/api/resources/revUsers/client/Client.ts index 32c87d9..d7f9249 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -813,7 +813,7 @@ export class RevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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 +961,7 @@ export class RevUsers { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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 +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.4", + "X-Fern-SDK-Version": "0.0.5", "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/schedules/client/Client.ts b/src/api/resources/schedules/client/Client.ts index 6bfab4f..95301b0 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 5431465..4babee5 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 1a62a6d..668bf42 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.4", + "X-Fern-SDK-Version": "0.0.5", "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 fa1d68d..2594e4b 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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 +505,7 @@ export class Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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 Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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 +792,7 @@ export class Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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 +933,7 @@ export class Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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 +1083,7 @@ export class Slas { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@devrev/api", - "X-Fern-SDK-Version": "0.0.4", + "X-Fern-SDK-Version": "0.0.5", "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/snapIns/client/Client.ts b/src/api/resources/snapIns/client/Client.ts index f770192..b27449b 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 38958d8..d9b357d 100644 --- a/src/api/resources/snapWidgets/client/Client.ts +++ b/src/api/resources/snapWidgets/client/Client.ts @@ -53,7 +53,7 @@ export class SnapWidgets { * await client.snapWidgets.create({ * type: "email_preview", * name: "string", - * namespace: DevRev.SnapWidgetNamespace.CommentSuggestionReplies, + * namespace: DevRev.SnapWidgetNamespace.AiAssistantMessage, * status: DevRev.SnapWidgetStatus.Draft, * bcc: [{ * address: "string", @@ -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.4", + "X-Fern-SDK-Version": "0.0.5", "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 09eb2a3..fea4ae6 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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/requests/SurveysCreateRequest.ts b/src/api/resources/surveys/client/requests/SurveysCreateRequest.ts index d2497a3..6932d73 100644 --- a/src/api/resources/surveys/client/requests/SurveysCreateRequest.ts +++ b/src/api/resources/surveys/client/requests/SurveysCreateRequest.ts @@ -13,6 +13,8 @@ import * as DevRev from "../../../../index"; export interface SurveysCreateRequest { /** Description about the survey. */ description?: string; + /** Header of the survey. */ + header?: string; /** * Text posted when introducing the survey to the responder. * @@ -26,4 +28,6 @@ export interface SurveysCreateRequest { schema?: DevRev.FieldDescriptor[]; /** The schema with metadata for the survey. */ schemaWithMetadata?: DevRev.SurveyFieldWithMetadata[]; + /** Title of the survey. */ + title?: string; } diff --git a/src/api/resources/sysUsers/client/Client.ts b/src/api/resources/sysUsers/client/Client.ts index cb6deb6..ecaf741 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 ef43bd3..545c83b 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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 0a54bf3..8a9ed9a 100644 --- a/src/api/resources/timelineEntries/client/Client.ts +++ b/src/api/resources/timelineEntries/client/Client.ts @@ -45,6 +45,7 @@ export class TimelineEntries { * @throws {@link DevRev.BadRequestError} * @throws {@link DevRev.UnauthorizedError} * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.ConflictError} * @throws {@link DevRev.TooManyRequestsError} * @throws {@link DevRev.InternalServerError} * @throws {@link DevRev.ServiceUnavailableError} @@ -60,7 +61,7 @@ export class TimelineEntries { * visibility: DevRev.TimelineEntryVisibility.External, * artifacts: ["string"], * body: "string", - * bodyType: DevRev.TimelineCommentBodyType.SnapKit, + * bodyType: DevRev.TimelineCommentBodyType.Data, * externalRef: "string", * linkPreviews: ["string"], * snapKitBody: {}, @@ -81,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.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -135,6 +136,16 @@ export class TimelineEntries { breadcrumbsPrefix: ["response"], }) ); + case 409: + throw new DevRev.ConflictError( + serializers.ErrorConflict.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, { @@ -220,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.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -361,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.4", + "X-Fern-SDK-Version": "0.0.5", "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 +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.4", + "X-Fern-SDK-Version": "0.0.5", "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,6 +648,7 @@ export class TimelineEntries { * @throws {@link DevRev.BadRequestError} * @throws {@link DevRev.UnauthorizedError} * @throws {@link DevRev.ForbiddenError} + * @throws {@link DevRev.ConflictError} * @throws {@link DevRev.TooManyRequestsError} * @throws {@link DevRev.InternalServerError} * @throws {@link DevRev.ServiceUnavailableError} @@ -647,7 +659,8 @@ export class TimelineEntries { * id: "string", * artifacts: {}, * body: "string", - * bodyType: DevRev.TimelineCommentBodyType.SnapKit, + * bodyType: DevRev.TimelineCommentBodyType.Data, + * externalRef: "string", * linkPreviews: {}, * snapKitBody: {} * }) @@ -666,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.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -720,6 +733,16 @@ export class TimelineEntries { breadcrumbsPrefix: ["response"], }) ); + case 409: + throw new DevRev.ConflictError( + serializers.ErrorConflict.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, { diff --git a/src/api/resources/webhooks/client/Client.ts b/src/api/resources/webhooks/client/Client.ts index cc9eaa6..c94ca92 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "x-devrev-version": requestOptions?.xDevrevVersion ?? this._options?.xDevrevVersion ?? "2024-01-24", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, @@ -325,6 +325,157 @@ export class Webhooks { } } + /** + * Fetches an object via webhook. + * + * @param {DevRev.WebhooksFetchRequest} request + * @param {Webhooks.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.webhooks.fetch({ + * id: "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>", + * object: "ISS-12345" + * }) + */ + public async fetch( + request: DevRev.WebhooksFetchRequest, + requestOptions?: Webhooks.RequestOptions + ): Promise<DevRev.WebhooksFetchResponse> { + const _response = await (this._options.fetcher ?? core.fetcher)({ + url: urlJoin( + (await core.Supplier.get(this._options.environment)) ?? environments.DevRevEnvironment.Default, + "webhooks.fetch" + ), + method: "POST", + headers: { + Authorization: await this._getAuthorizationHeader(), + "X-Fern-Language": "JavaScript", + "X-Fern-SDK-Name": "@devrev/api", + "X-Fern-SDK-Version": "0.0.5", + "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.WebhooksFetchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, + maxRetries: requestOptions?.maxRetries, + abortSignal: requestOptions?.abortSignal, + }); + if (_response.ok) { + return serializers.WebhooksFetchResponse.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 requested webhook's information. * @@ -358,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.4", + "X-Fern-SDK-Version": "0.0.5", "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 +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.4", + "X-Fern-SDK-Version": "0.0.5", "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 +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.4", + "X-Fern-SDK-Version": "0.0.5", "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/requests/WebhooksFetchRequest.ts b/src/api/resources/webhooks/client/requests/WebhooksFetchRequest.ts new file mode 100644 index 0000000..f244234 --- /dev/null +++ b/src/api/resources/webhooks/client/requests/WebhooksFetchRequest.ts @@ -0,0 +1,17 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * { + * id: "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>", + * object: "ISS-12345" + * } + */ +export interface WebhooksFetchRequest { + /** The ID of the webhook to fetch the object for. */ + id: string; + /** The ID of the object to fetch for the webhook. */ + object: string; +} diff --git a/src/api/resources/webhooks/client/requests/index.ts b/src/api/resources/webhooks/client/requests/index.ts index 6ddcca6..f76e2b4 100644 --- a/src/api/resources/webhooks/client/requests/index.ts +++ b/src/api/resources/webhooks/client/requests/index.ts @@ -1,4 +1,5 @@ export { type WebhooksCreateRequest } from "./WebhooksCreateRequest"; export { type WebhooksDeleteRequest } from "./WebhooksDeleteRequest"; +export { type WebhooksFetchRequest } from "./WebhooksFetchRequest"; export { type WebhooksGetRequest } from "./WebhooksGetRequest"; export { type WebhooksUpdateRequest } from "./WebhooksUpdateRequest"; diff --git a/src/api/resources/works/client/Client.ts b/src/api/resources/works/client/Client.ts index d27bc94..fa64931 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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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.4", + "X-Fern-SDK-Version": "0.0.5", "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/AddTagWithValue.ts b/src/api/types/AddTagWithValue.ts new file mode 100644 index 0000000..d72cd64 --- /dev/null +++ b/src/api/types/AddTagWithValue.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface AddTagWithValue { + /** The ID of the tag. */ + id: string; + /** + * The value for the object's association with the tag. If specified, + * the value must be one that's specified in the tag's allowed values. + */ + value?: string; +} diff --git a/src/api/types/ArchetypeMetricTarget.ts b/src/api/types/ArchetypeMetricTarget.ts index 3668900..31de5b1 100644 --- a/src/api/types/ArchetypeMetricTarget.ts +++ b/src/api/types/ArchetypeMetricTarget.ts @@ -8,6 +8,17 @@ import * as DevRev from "../index"; * Metric with corresponding target values. */ export interface ArchetypeMetricTarget { + /** + * For breached metrics the time they entered into breach. This is the + * same as what the target date was, unless the breach happened due to + * a different policy starting to apply. + */ + breachedAt?: Date; + /** + * For completed metrics the time (in minutes) it took to complete + * them. (Taking into account the schedule if any). + */ + completedIn?: number; /** * If true, the schedule attached to this metric is out of schedule at * the time of the query. It is not set for metrics in _completed_ @@ -15,9 +26,19 @@ export interface ArchetypeMetricTarget { */ isOutOfSchedule?: boolean; metricDefinition: DevRev.MetricDefinitionSummary; + /** The next time the schedule will change its state, if such is known. */ + nextScheduleTransition?: Date; orgSchedule?: DevRev.OrgScheduleSummary; /** Time in minutes that remains on a paused metric. */ remainingTime?: number; + /** Metric stage corresponding to the applicable SLA. */ + stage: string; + /** + * It is an indicator of whether the metric has ever been breached + * (missed). If not, it shows whether the metric is completed, in + * progress, or not part of the applied policy. + */ + status?: string; /** Time at which the metric would breach SLA if no action taken. */ targetTime?: Date; /** diff --git a/src/api/types/AtomSummary.ts b/src/api/types/AtomSummary.ts index 5cecc84..c45eeb8 100644 --- a/src/api/types/AtomSummary.ts +++ b/src/api/types/AtomSummary.ts @@ -28,6 +28,7 @@ export type AtomSummary = | DevRev.AtomSummary.Ticket | DevRev.AtomSummary.TimelineChangeEvent | DevRev.AtomSummary.TimelineComment + | DevRev.AtomSummary.UserPreferences | DevRev.AtomSummary.Webhook; export declare namespace AtomSummary { @@ -123,6 +124,10 @@ export declare namespace AtomSummary { type: "timeline_comment"; } + interface UserPreferences extends DevRev.AtomBaseSummary { + type: "user_preferences"; + } + interface Webhook extends DevRev.AtomBaseSummary { type: "webhook"; } diff --git a/src/api/types/AvailabilityPreferencesGroup.ts b/src/api/types/AvailabilityPreferencesGroup.ts new file mode 100644 index 0000000..a34b0d8 --- /dev/null +++ b/src/api/types/AvailabilityPreferencesGroup.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Preferences group for Availability. + */ +export interface AvailabilityPreferencesGroup { + /** Manually set presence to away. */ + manualAway?: boolean; +} diff --git a/src/api/types/CodeChangeSource.ts b/src/api/types/CodeChangeSource.ts index 0e2a4ac..a8b08b8 100644 --- a/src/api/types/CodeChangeSource.ts +++ b/src/api/types/CodeChangeSource.ts @@ -5,9 +5,10 @@ /** * Source of the code change object. */ -export type CodeChangeSource = "bitbucket" | "github"; +export type CodeChangeSource = "azure_devops" | "bitbucket" | "github"; export const CodeChangeSource = { + AzureDevops: "azure_devops", Bitbucket: "bitbucket", Github: "github", } as const; diff --git a/src/api/types/ContentTemplate.ts b/src/api/types/ContentTemplate.ts new file mode 100644 index 0000000..f4153f5 --- /dev/null +++ b/src/api/types/ContentTemplate.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface ContentTemplate { + type: DevRev.ContentTemplateType; +} diff --git a/src/api/types/ContentTemplateCreateRequest.ts b/src/api/types/ContentTemplateCreateRequest.ts new file mode 100644 index 0000000..c267084 --- /dev/null +++ b/src/api/types/ContentTemplateCreateRequest.ts @@ -0,0 +1,31 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +/** + * The request to create a new content template. + */ +export type ContentTemplateCreateRequest = DevRev.ContentTemplateCreateRequest.NotificationContentTemplate; + +export declare namespace ContentTemplateCreateRequest { + interface NotificationContentTemplate + extends DevRev.ContentTemplateCreateRequestNotificationContentTemplate, + _Base { + type: "notification_content_template"; + } + + interface _Base { + /** + * Input fields schema. The fields will be used to replace variables + * present in the content template. + */ + inputFieldsSchema?: DevRev.SchemaFieldDescriptor[]; + /** + * The name of the content template. The name must be unique for each + * creator of the content template. + */ + name: string; + } +} diff --git a/src/api/types/ContentTemplateCreateRequestNotificationContentTemplate.ts b/src/api/types/ContentTemplateCreateRequestNotificationContentTemplate.ts new file mode 100644 index 0000000..3c3ebb6 --- /dev/null +++ b/src/api/types/ContentTemplateCreateRequestNotificationContentTemplate.ts @@ -0,0 +1,15 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface ContentTemplateCreateRequestNotificationContentTemplate { + /** + * Default notification template per language. Only one is permitted + * per language. These will be used to replace the notification + * content on basis of language preferences of the user. Default is + * EN(US). + */ + defaults: DevRev.ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate[]; +} diff --git a/src/api/types/ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate.ts b/src/api/types/ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate.ts new file mode 100644 index 0000000..36e8fb7 --- /dev/null +++ b/src/api/types/ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate.ts @@ -0,0 +1,16 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate { + /** + * Body for the notification. In order to use fields from input fields + * schema, use {field_name} in the body. + */ + body: string; + /** + * Title for the notification. In order to use fields from input + * fields schema, use {field_name} in the title. + */ + title: string; +} diff --git a/src/api/types/ContentTemplateCreateResponse.ts b/src/api/types/ContentTemplateCreateResponse.ts new file mode 100644 index 0000000..40a80ad --- /dev/null +++ b/src/api/types/ContentTemplateCreateResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface ContentTemplateCreateResponse { + contentTemplate: DevRev.ContentTemplate; +} diff --git a/src/api/types/ContentTemplateGetResponse.ts b/src/api/types/ContentTemplateGetResponse.ts new file mode 100644 index 0000000..79538ec --- /dev/null +++ b/src/api/types/ContentTemplateGetResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface ContentTemplateGetResponse { + contentTemplate: DevRev.ContentTemplate; +} diff --git a/src/api/types/ContentTemplateListResponse.ts b/src/api/types/ContentTemplateListResponse.ts new file mode 100644 index 0000000..7a82065 --- /dev/null +++ b/src/api/types/ContentTemplateListResponse.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface ContentTemplateListResponse { + /** The list of content templates. */ + contentTemplate: DevRev.ContentTemplate[]; + /** + * 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/ContentTemplateType.ts b/src/api/types/ContentTemplateType.ts new file mode 100644 index 0000000..955fea3 --- /dev/null +++ b/src/api/types/ContentTemplateType.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type ContentTemplateType = string; diff --git a/src/api/types/CreateImpactedCustomerDetails.ts b/src/api/types/CreateImpactedCustomerDetails.ts new file mode 100644 index 0000000..972a599 --- /dev/null +++ b/src/api/types/CreateImpactedCustomerDetails.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface CreateImpactedCustomerDetails { + /** Count of customers impacted. */ + count?: number; + /** List of customers impacted due to the incident. */ + customerIds?: string[]; +} diff --git a/src/api/types/CustomLinkType.ts b/src/api/types/CustomLinkType.ts new file mode 100644 index 0000000..24b2fee --- /dev/null +++ b/src/api/types/CustomLinkType.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export type CustomLinkType = DevRev.AtomBase; diff --git a/src/api/types/CustomLinkTypeCreateResponse.ts b/src/api/types/CustomLinkTypeCreateResponse.ts new file mode 100644 index 0000000..2745e90 --- /dev/null +++ b/src/api/types/CustomLinkTypeCreateResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface CustomLinkTypeCreateResponse { + customLinkType: DevRev.CustomLinkType; +} diff --git a/src/api/types/CustomLinkTypeGetResponse.ts b/src/api/types/CustomLinkTypeGetResponse.ts new file mode 100644 index 0000000..7c71a27 --- /dev/null +++ b/src/api/types/CustomLinkTypeGetResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface CustomLinkTypeGetResponse { + customLinkType: DevRev.CustomLinkType; +} diff --git a/src/api/types/CustomLinkTypeListResponse.ts b/src/api/types/CustomLinkTypeListResponse.ts new file mode 100644 index 0000000..91dd2e5 --- /dev/null +++ b/src/api/types/CustomLinkTypeListResponse.ts @@ -0,0 +1,20 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface CustomLinkTypeListResponse { + /** + * 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 link types. */ + result: DevRev.CustomLinkType[]; +} diff --git a/src/api/types/CustomLinkTypeUpdateResponse.ts b/src/api/types/CustomLinkTypeUpdateResponse.ts new file mode 100644 index 0000000..c9dfa55 --- /dev/null +++ b/src/api/types/CustomLinkTypeUpdateResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface CustomLinkTypeUpdateResponse { + customLinkType: DevRev.CustomLinkType; +} diff --git a/src/api/types/DevUser.ts b/src/api/types/DevUser.ts index 1a0d50f..97e72d3 100644 --- a/src/api/types/DevUser.ts +++ b/src/api/types/DevUser.ts @@ -5,6 +5,10 @@ import * as DevRev from "../index"; export interface DevUser extends DevRev.UserBase { + /** Custom fields. */ + customFields?: Record<string, unknown>; + /** Custom schema fragments. */ + customSchemaFragments?: string[]; /** Start date of the user's employment. */ experienceStartDate?: Date; /** IDs of the Dev User outside the DevRev SOR. */ @@ -13,4 +17,8 @@ export interface DevUser extends DevRev.UserBase { jobHistory?: DevRev.JobHistoryItem[]; /** Array of skills of the user. */ skills?: DevRev.UserSkill[]; + /** Stock schema fragment. */ + stockSchemaFragment?: string; + /** Subtype corresponding to the custom type fragment. */ + subtype?: string; } diff --git a/src/api/types/DevUsersUpdateJobHistoryItem.ts b/src/api/types/DevUsersUpdateJobHistoryItem.ts new file mode 100644 index 0000000..f01049f --- /dev/null +++ b/src/api/types/DevUsersUpdateJobHistoryItem.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface DevUsersUpdateJobHistoryItem { + /** Enum for the employment status of the user. */ + employmentStatus?: number; + /** End date of the job. */ + endDate?: Date; + /** Is this the current active job for the user. */ + isCurrent?: boolean; + /** The job location for the user. */ + location?: string; + /** Start date of the job. */ + startDate?: Date; + /** The job title for the user. */ + title?: string; +} diff --git a/src/api/types/EngagementType.ts b/src/api/types/EngagementType.ts index b26cd67..0a5fbb2 100644 --- a/src/api/types/EngagementType.ts +++ b/src/api/types/EngagementType.ts @@ -5,10 +5,21 @@ /** * Type of engagement. */ -export type EngagementType = "call" | "default" | "email" | "linked_in" | "meeting" | "offline" | "survey"; +export type EngagementType = + | "call" + | "conversation" + | "custom" + | "default" + | "email" + | "linked_in" + | "meeting" + | "offline" + | "survey"; export const EngagementType = { Call: "call", + Conversation: "conversation", + Custom: "custom", Default: "default", Email: "email", LinkedIn: "linked_in", diff --git a/src/api/types/GeneralPreferencesGroup.ts b/src/api/types/GeneralPreferencesGroup.ts new file mode 100644 index 0000000..a41b760 --- /dev/null +++ b/src/api/types/GeneralPreferencesGroup.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +/** + * Preferences group for General settings. + */ +export interface GeneralPreferencesGroup { + availability?: DevRev.AvailabilityPreferencesGroup; + preferredLocale?: DevRev.GeneralPreferencesGroupPreferredLocale; +} diff --git a/src/api/types/GeneralPreferencesGroupPreferredLocale.ts b/src/api/types/GeneralPreferencesGroupPreferredLocale.ts new file mode 100644 index 0000000..75e4025 --- /dev/null +++ b/src/api/types/GeneralPreferencesGroupPreferredLocale.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Preferred locale of the user. + */ +export type GeneralPreferencesGroupPreferredLocale = "en_us" | "ja_jp"; + +export const GeneralPreferencesGroupPreferredLocale = { + EnUs: "en_us", + JaJp: "ja_jp", +} as const; diff --git a/src/api/types/GroupIngestionSource.ts b/src/api/types/GroupIngestionSource.ts new file mode 100644 index 0000000..739bef9 --- /dev/null +++ b/src/api/types/GroupIngestionSource.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Creation source of the group. + */ +export type GroupIngestionSource = "airdrop" | "scim"; + +export const GroupIngestionSource = { + Airdrop: "airdrop", + Scim: "scim", +} as const; diff --git a/src/api/types/ImpactedCustomerDetails.ts b/src/api/types/ImpactedCustomerDetails.ts new file mode 100644 index 0000000..0e24f24 --- /dev/null +++ b/src/api/types/ImpactedCustomerDetails.ts @@ -0,0 +1,14 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +/** + * Details of the impact due to the incident. + */ +export interface ImpactedCustomerDetails { + count?: DevRev.EnumValue; + /** List of customers impacted due to the incident. */ + customerIds?: DevRev.AccountSummary[]; +} diff --git a/src/api/types/Incident.ts b/src/api/types/Incident.ts index 2158170..b8b708f 100644 --- a/src/api/types/Incident.ts +++ b/src/api/types/Incident.ts @@ -5,6 +5,8 @@ import * as DevRev from "../index"; export interface Incident extends DevRev.AtomBase { + /** Timestamp when the incident was acknowledged. */ + acknowledgedDate?: Date; /** Parts to which the incident is applicable to. */ appliesToParts?: DevRev.PartSummary[]; /** Artifacts attached to the incident. */ @@ -16,14 +18,17 @@ export interface Incident extends DevRev.AtomBase { /** Custom schema fragments. */ customSchemaFragments?: string[]; /** Time when the incident was identified/reported. */ - identifiedAt?: Date; + identifiedDate?: Date; + impact?: DevRev.ImpactedCustomerDetails; /** List of customers impacted due to the incident. */ impactedCustomers?: DevRev.AccountSummary[]; + /** Timestamp when the incident was mitigated. */ + mitigatedDate?: Date; /** The users that own the incident. */ ownedBy?: DevRev.UserSummary[]; - /** Timestamp when the incident was resolved. */ - resolvedAt?: Date; + reportedBy?: DevRev.EnumValue; severity?: DevRev.EnumValue; + source?: DevRev.EnumValue; stage?: DevRev.Stage; /** * Users, along with the incident commander, involved in resolving diff --git a/src/api/types/IncidentsGroup.ts b/src/api/types/IncidentsGroup.ts index 2eb388d..0df25e4 100644 --- a/src/api/types/IncidentsGroup.ts +++ b/src/api/types/IncidentsGroup.ts @@ -7,8 +7,7 @@ import * as DevRev from "../index"; export interface IncidentsGroup { /** The group of incidents. */ incidents: DevRev.Incident[]; - /** Unique key according to which the items are grouped. */ - key: string; + key: DevRev.FieldValue; /** * The cursor used to iterate subsequent results in accordance to the * sort order. If not set, then no later elements exist. diff --git a/src/api/types/LinkDescriptorFilter.ts b/src/api/types/LinkDescriptorFilter.ts new file mode 100644 index 0000000..de9790a --- /dev/null +++ b/src/api/types/LinkDescriptorFilter.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface LinkDescriptorFilter { + /** List of link descriptors. */ + linkDescriptors: DevRev.LinkTargetDescriptor[]; +} diff --git a/src/api/types/LinkTargetDescriptor.ts b/src/api/types/LinkTargetDescriptor.ts new file mode 100644 index 0000000..0914be3 --- /dev/null +++ b/src/api/types/LinkTargetDescriptor.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * A link target descriptor. + */ +export type LinkTargetDescriptor = Record<string, unknown>; diff --git a/src/api/types/LinkType.ts b/src/api/types/LinkType.ts index 8099d4a..dcbe24f 100644 --- a/src/api/types/LinkType.ts +++ b/src/api/types/LinkType.ts @@ -10,6 +10,7 @@ export type LinkType = | "developed_with" | "imports" | "is_analyzed_by" + | "is_converted_to" | "is_dependent_on" | "is_duplicate_of" | "is_merged_into" @@ -23,6 +24,7 @@ export const LinkType = { DevelopedWith: "developed_with", Imports: "imports", IsAnalyzedBy: "is_analyzed_by", + IsConvertedTo: "is_converted_to", IsDependentOn: "is_dependent_on", IsDuplicateOf: "is_duplicate_of", IsMergedInto: "is_merged_into", diff --git a/src/api/types/Preferences.ts b/src/api/types/Preferences.ts new file mode 100644 index 0000000..6be1a25 --- /dev/null +++ b/src/api/types/Preferences.ts @@ -0,0 +1,13 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export type Preferences = DevRev.Preferences.UserPreferences; + +export declare namespace Preferences { + interface UserPreferences extends DevRev.UserPreferences { + type: "user_preferences"; + } +} diff --git a/src/api/types/PreferencesBase.ts b/src/api/types/PreferencesBase.ts new file mode 100644 index 0000000..7375f5a --- /dev/null +++ b/src/api/types/PreferencesBase.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export type PreferencesBase = DevRev.AtomBase; diff --git a/src/api/types/PreferencesBaseSummary.ts b/src/api/types/PreferencesBaseSummary.ts new file mode 100644 index 0000000..dc10a39 --- /dev/null +++ b/src/api/types/PreferencesBaseSummary.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export type PreferencesBaseSummary = DevRev.AtomBaseSummary; diff --git a/src/api/types/PreferencesGetResponse.ts b/src/api/types/PreferencesGetResponse.ts new file mode 100644 index 0000000..cac9676 --- /dev/null +++ b/src/api/types/PreferencesGetResponse.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface PreferencesGetResponse { + preference: DevRev.Preferences; +} diff --git a/src/api/types/PreferencesType.ts b/src/api/types/PreferencesType.ts new file mode 100644 index 0000000..db0c728 --- /dev/null +++ b/src/api/types/PreferencesType.ts @@ -0,0 +1,5 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export type PreferencesType = "user_preferences"; diff --git a/src/api/types/RemoveTagWithValue.ts b/src/api/types/RemoveTagWithValue.ts new file mode 100644 index 0000000..816966d --- /dev/null +++ b/src/api/types/RemoveTagWithValue.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface RemoveTagWithValue { + /** The ID of the tag. */ + id: string; +} diff --git a/src/api/types/SetSharedWithMembership.ts b/src/api/types/SetSharedWithMembership.ts index 22bb642..907c9d0 100644 --- a/src/api/types/SetSharedWithMembership.ts +++ b/src/api/types/SetSharedWithMembership.ts @@ -5,4 +5,12 @@ /** * Information about the role the member receives due to the share. */ -export type SetSharedWithMembership = Record<string, unknown>; +export interface SetSharedWithMembership { + /** ID of the member the object is shared with. */ + member?: string; + /** + * ID of the role that describes what privileges the membership + * entails. + */ + role?: string; +} diff --git a/src/api/types/SharedWithMembershipFilter.ts b/src/api/types/SharedWithMembershipFilter.ts index 71ae71b..c89c6ce 100644 --- a/src/api/types/SharedWithMembershipFilter.ts +++ b/src/api/types/SharedWithMembershipFilter.ts @@ -5,4 +5,9 @@ /** * Filter on target item based on intended audience. */ -export type SharedWithMembershipFilter = Record<string, unknown>; +export interface SharedWithMembershipFilter { + /** ID of the group/member with whom the item is shared. */ + member?: string; + /** Role ID of the group/member with whom the item is shared. */ + role?: string; +} diff --git a/src/api/types/SnapWidgetNamespace.ts b/src/api/types/SnapWidgetNamespace.ts index 37aa3d1..1028cc8 100644 --- a/src/api/types/SnapWidgetNamespace.ts +++ b/src/api/types/SnapWidgetNamespace.ts @@ -5,9 +5,15 @@ /** * Logical grouping of snap widgets. Useful for filtering. */ -export type SnapWidgetNamespace = "comment_suggestion_replies" | "email_preview" | "link_preview" | "plug_nudge"; +export type SnapWidgetNamespace = + | "ai_assistant_message" + | "comment_suggestion_replies" + | "email_preview" + | "link_preview" + | "plug_nudge"; export const SnapWidgetNamespace = { + AiAssistantMessage: "ai_assistant_message", CommentSuggestionReplies: "comment_suggestion_replies", EmailPreview: "email_preview", LinkPreview: "link_preview", diff --git a/src/api/types/Stage.ts b/src/api/types/Stage.ts index d909528..4e872a7 100644 --- a/src/api/types/Stage.ts +++ b/src/api/types/Stage.ts @@ -2,7 +2,12 @@ * This file was auto-generated by Fern from our API Definition. */ +import * as DevRev from "../index"; + /** * Describes the current stage of a object. */ -export type Stage = Record<string, unknown>; +export interface Stage { + stage?: DevRev.CustomStageSummary; + state?: DevRev.CustomStateSummary; +} diff --git a/src/api/types/Survey.ts b/src/api/types/Survey.ts index ff5941f..7976f2c 100644 --- a/src/api/types/Survey.ts +++ b/src/api/types/Survey.ts @@ -7,6 +7,8 @@ import * as DevRev from "../index"; export interface Survey extends DevRev.AtomBase { /** Description of the survey. */ description?: string; + /** Header of the survey. */ + header?: string; /** Text posted when introducing the survey to the responder. */ introductoryText?: string; /** @@ -20,4 +22,6 @@ export interface Survey extends DevRev.AtomBase { schema?: DevRev.SchemaFieldDescriptor[]; /** List of all the fields and their respective metadata in the schema. */ schemaWithMetadata?: DevRev.SurveyFieldWithMetadata[]; + /** Title of the survey. */ + title?: string; } diff --git a/src/api/types/SyncMetadataFilter.ts b/src/api/types/SyncMetadataFilter.ts index 1bf66b1..22a55e3 100644 --- a/src/api/types/SyncMetadataFilter.ts +++ b/src/api/types/SyncMetadataFilter.ts @@ -5,6 +5,8 @@ import * as DevRev from "../index"; export interface SyncMetadataFilter { + /** Filters for issues with this specific external reference. */ + externalReference?: string[]; lastSyncIn?: DevRev.SyncMetadataFilterSyncInFilter; lastSyncOut?: DevRev.SyncMetadataFilterSyncOutFilter; /** Filters for issues synced from this specific origin system. */ diff --git a/src/api/types/Ticket.ts b/src/api/types/Ticket.ts index b81eb1c..1efc8ed 100644 --- a/src/api/types/Ticket.ts +++ b/src/api/types/Ticket.ts @@ -12,6 +12,10 @@ export interface Ticket extends DevRev.WorkBase { needsResponse?: boolean; revOrg?: DevRev.OrgSummary; sentiment?: DevRev.EnumValue; + /** Timestamp when the sentiment was last modified. */ + sentimentModifiedDate?: Date; + /** Summary justifying the sentiment. */ + sentimentSummary?: string; severity?: DevRev.TicketSeverity; slaTracker?: DevRev.SlaTrackerSummary; /** Source channel of the ticket. */ diff --git a/src/api/types/TimelineCommentBodyType.ts b/src/api/types/TimelineCommentBodyType.ts index fe3fd91..db3aa81 100644 --- a/src/api/types/TimelineCommentBodyType.ts +++ b/src/api/types/TimelineCommentBodyType.ts @@ -5,9 +5,10 @@ /** * The type of the body to use for the comment. */ -export type TimelineCommentBodyType = "snap_kit" | "snap_widget" | "text"; +export type TimelineCommentBodyType = "data" | "snap_kit" | "snap_widget" | "text"; export const TimelineCommentBodyType = { + Data: "data", SnapKit: "snap_kit", SnapWidget: "snap_widget", Text: "text", diff --git a/src/api/types/TimelineEntriesUpdateRequestTimelineComment.ts b/src/api/types/TimelineEntriesUpdateRequestTimelineComment.ts index 3c3bb43..0f6daaa 100644 --- a/src/api/types/TimelineEntriesUpdateRequestTimelineComment.ts +++ b/src/api/types/TimelineEntriesUpdateRequestTimelineComment.ts @@ -9,6 +9,12 @@ export interface TimelineEntriesUpdateRequestTimelineComment { /** The updated comment's body. */ body?: string; bodyType?: DevRev.TimelineCommentBodyType; + /** + * The updated external reference for the comment. If set, this must + * be unique within the object's timeline, otherwise if null, then + * clears the value. + */ + externalRef?: string; linkPreviews?: DevRev.TimelineEntriesUpdateRequestTimelineCommentLinkPreviews; snapKitBody?: DevRev.TimelineSnapKitBody; } diff --git a/src/api/types/TimelineEntryPanel.ts b/src/api/types/TimelineEntryPanel.ts index 5c0f712..1954d86 100644 --- a/src/api/types/TimelineEntryPanel.ts +++ b/src/api/types/TimelineEntryPanel.ts @@ -5,9 +5,11 @@ /** * Display panels for the Timeline entry. */ -export type TimelineEntryPanel = "customer_chat" | "discussions" | "events"; +export type TimelineEntryPanel = "alerts" | "broadcasts" | "customer_chat" | "discussions" | "events"; export const TimelineEntryPanel = { + Alerts: "alerts", + Broadcasts: "broadcasts", CustomerChat: "customer_chat", Discussions: "discussions", Events: "events", diff --git a/src/api/types/UpdateImpactedCustomerDetails.ts b/src/api/types/UpdateImpactedCustomerDetails.ts new file mode 100644 index 0000000..1cf234a --- /dev/null +++ b/src/api/types/UpdateImpactedCustomerDetails.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface UpdateImpactedCustomerDetails { + /** Count of customers impacted. */ + count?: number; + customerIds?: DevRev.UpdateImpactedCustomerDetailsCustomerIds; +} diff --git a/src/api/types/UpdateImpactedCustomerDetailsCustomerIds.ts b/src/api/types/UpdateImpactedCustomerDetailsCustomerIds.ts new file mode 100644 index 0000000..d77e54b --- /dev/null +++ b/src/api/types/UpdateImpactedCustomerDetailsCustomerIds.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UpdateImpactedCustomerDetailsCustomerIds { + /** Sets the list of customers impacted due to the incident. */ + set?: string[]; +} diff --git a/src/api/types/UpdateIncidentPia.ts b/src/api/types/UpdateIncidentPia.ts new file mode 100644 index 0000000..b57c8c0 --- /dev/null +++ b/src/api/types/UpdateIncidentPia.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UpdateIncidentPia { + /** + * Sets the the article ids of the Post-Incident Analysis(PIA) of the + * incident. + */ + set?: string[]; +} diff --git a/src/api/types/UpdateIncidentPlaybooks.ts b/src/api/types/UpdateIncidentPlaybooks.ts new file mode 100644 index 0000000..2a59259 --- /dev/null +++ b/src/api/types/UpdateIncidentPlaybooks.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UpdateIncidentPlaybooks { + /** + * Sets the the article ids of the playbook(s) associated with the + * incident. + */ + set?: string[]; +} diff --git a/src/api/types/UpdateIncidentRelatedDocs.ts b/src/api/types/UpdateIncidentRelatedDocs.ts new file mode 100644 index 0000000..c9cc28b --- /dev/null +++ b/src/api/types/UpdateIncidentRelatedDocs.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface UpdateIncidentRelatedDocs { + /** + * Sets the the article ids of other documents associated with the + * incident. + */ + set?: string[]; +} diff --git a/src/api/types/UpdateLinkTargetDescriptorList.ts b/src/api/types/UpdateLinkTargetDescriptorList.ts new file mode 100644 index 0000000..561d8cb --- /dev/null +++ b/src/api/types/UpdateLinkTargetDescriptorList.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface UpdateLinkTargetDescriptorList { + /** List of link descriptors. */ + linkDescriptors: DevRev.LinkTargetDescriptor[]; +} diff --git a/src/api/types/UserPreferences.ts b/src/api/types/UserPreferences.ts new file mode 100644 index 0000000..702a7ee --- /dev/null +++ b/src/api/types/UserPreferences.ts @@ -0,0 +1,9 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export interface UserPreferences extends DevRev.PreferencesBase { + generalPreferences?: DevRev.GeneralPreferencesGroup; +} diff --git a/src/api/types/UserPreferencesSummary.ts b/src/api/types/UserPreferencesSummary.ts new file mode 100644 index 0000000..4ca63fd --- /dev/null +++ b/src/api/types/UserPreferencesSummary.ts @@ -0,0 +1,7 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import * as DevRev from "../index"; + +export type UserPreferencesSummary = DevRev.PreferencesBaseSummary; diff --git a/src/api/types/WebhookEventType.ts b/src/api/types/WebhookEventType.ts index ff94cf3..8d666a2 100644 --- a/src/api/types/WebhookEventType.ts +++ b/src/api/types/WebhookEventType.ts @@ -35,6 +35,12 @@ export type WebhookEventType = | "sla_tracker_created" | "sla_tracker_deleted" | "sla_tracker_updated" + | "survey_created" + | "survey_deleted" + | "survey_response_created" + | "survey_response_deleted" + | "survey_response_updated" + | "survey_updated" | "tag_created" | "tag_deleted" | "tag_updated" @@ -47,6 +53,7 @@ export type WebhookEventType = | "webhook_updated" | "work_created" | "work_deleted" + | "work_fetched" | "work_updated"; export const WebhookEventType = { @@ -79,6 +86,12 @@ export const WebhookEventType = { SlaTrackerCreated: "sla_tracker_created", SlaTrackerDeleted: "sla_tracker_deleted", SlaTrackerUpdated: "sla_tracker_updated", + SurveyCreated: "survey_created", + SurveyDeleted: "survey_deleted", + SurveyResponseCreated: "survey_response_created", + SurveyResponseDeleted: "survey_response_deleted", + SurveyResponseUpdated: "survey_response_updated", + SurveyUpdated: "survey_updated", TagCreated: "tag_created", TagDeleted: "tag_deleted", TagUpdated: "tag_updated", @@ -91,5 +104,6 @@ export const WebhookEventType = { WebhookUpdated: "webhook_updated", WorkCreated: "work_created", WorkDeleted: "work_deleted", + WorkFetched: "work_fetched", WorkUpdated: "work_updated", } as const; diff --git a/src/api/types/WebhooksFetchResponse.ts b/src/api/types/WebhooksFetchResponse.ts new file mode 100644 index 0000000..a3a2d5d --- /dev/null +++ b/src/api/types/WebhooksFetchResponse.ts @@ -0,0 +1,8 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * The response to fetching an object for a webhook. + */ +export type WebhooksFetchResponse = Record<string, unknown>; diff --git a/src/api/types/WorksUpdateRequestTags.ts b/src/api/types/WorksUpdateRequestTags.ts index d8fcd1e..4c85cdc 100644 --- a/src/api/types/WorksUpdateRequestTags.ts +++ b/src/api/types/WorksUpdateRequestTags.ts @@ -5,6 +5,10 @@ import * as DevRev from "../index"; export interface WorksUpdateRequestTags { + /** Adds the provided tags on the work item. */ + add?: DevRev.AddTagWithValue[]; + /** Removes the provided tags on the work item. */ + remove?: DevRev.RemoveTagWithValue[]; /** Sets the provided tags on the work item. */ set?: DevRev.SetTagWithValue[]; } diff --git a/src/api/types/WorksUpdateRequestTicket.ts b/src/api/types/WorksUpdateRequestTicket.ts index 32a5f07..3ce2199 100644 --- a/src/api/types/WorksUpdateRequestTicket.ts +++ b/src/api/types/WorksUpdateRequestTicket.ts @@ -14,5 +14,11 @@ export interface WorksUpdateRequestTicket { needsResponse?: boolean; /** Updates the Rev organization that the ticket is associated with. */ revOrg?: string; + /** The enum ID for the sentiment of the ticket. */ + sentiment?: number; + /** Timestamp at which sentiment was last modified. */ + sentimentModifiedDate?: Date; + /** Summary justifying the current sentiment. */ + sentimentSummary?: string; severity?: DevRev.TicketSeverity; } diff --git a/src/api/types/index.ts b/src/api/types/index.ts index c76368d..d94e1ec 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -11,6 +11,7 @@ export * from "./AccountsGetResponse"; export * from "./AccountsListResponse"; export * from "./AccountsUpdateRequestArtifacts"; export * from "./AccountsUpdateResponse"; +export * from "./AddTagWithValue"; export * from "./AggregatedSchema"; export * from "./AggregatedSchemaGetResponse"; export * from "./AggregationDetail"; @@ -74,6 +75,7 @@ export * from "./AuthTokensOrgTraits"; export * from "./AuthTokensRevInfo"; export * from "./AuthTokensUpdateResponse"; export * from "./AuthTokensUserTraits"; +export * from "./AvailabilityPreferencesGroup"; export * from "./BooleanExpression"; export * from "./BooleanExpressionAndExpression"; export * from "./BooleanExpressionNotExpression"; @@ -96,6 +98,14 @@ export * from "./CodeChangesGetResponse"; export * from "./CodeChangesListResponse"; export * from "./CodeChangesUpdateResponse"; export * from "./CommentSearchSummary"; +export * from "./ContentTemplate"; +export * from "./ContentTemplateCreateRequest"; +export * from "./ContentTemplateCreateRequestNotificationContentTemplate"; +export * from "./ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate"; +export * from "./ContentTemplateCreateResponse"; +export * from "./ContentTemplateGetResponse"; +export * from "./ContentTemplateListResponse"; +export * from "./ContentTemplateType"; export * from "./Conversation"; export * from "./ConversationMetadata"; export * from "./ConversationSearchSummary"; @@ -116,11 +126,17 @@ export * from "./ConversationsUpdateResponse"; export * from "./CreateEmailInfo"; export * from "./CreateEmailInlineAttachment"; export * from "./CreateEmailPreviewWidget"; +export * from "./CreateImpactedCustomerDetails"; export * from "./CreateOrgScheduleInterval"; export * from "./CreateStage"; export * from "./CreateTagWithValue"; export * from "./CreateWeeklyOrgScheduleInterval"; export * from "./CuratedVistaSummary"; +export * from "./CustomLinkType"; +export * from "./CustomLinkTypeCreateResponse"; +export * from "./CustomLinkTypeGetResponse"; +export * from "./CustomLinkTypeListResponse"; +export * from "./CustomLinkTypeUpdateResponse"; export * from "./CustomObjectSearchSummary"; export * from "./CustomObjectSummary"; export * from "./CustomSchemaFragment"; @@ -176,6 +192,7 @@ export * from "./DevUsersIdentitiesUnlinkResponse"; export * from "./DevUsersListResponse"; export * from "./DevUsersSelfRequest"; export * from "./DevUsersSelfResponse"; +export * from "./DevUsersUpdateJobHistoryItem"; export * from "./DevUsersUpdateResponse"; export * from "./DirectorySummary"; export * from "./DynamicGroupInfo"; @@ -241,8 +258,11 @@ export * from "./FieldValueString"; export * from "./FieldValueStringList"; export * from "./FieldValueTagSummary"; export * from "./FieldValueTagSummaryList"; +export * from "./GeneralPreferencesGroup"; +export * from "./GeneralPreferencesGroupPreferredLocale"; export * from "./GenericNotificationEventType"; export * from "./Group"; +export * from "./GroupIngestionSource"; export * from "./GroupMemberType"; export * from "./GroupMembersAddResponse"; export * from "./GroupMembersListResponse"; @@ -259,6 +279,7 @@ export * from "./GroupsGetResponse"; export * from "./GroupsListResponse"; export * from "./GroupsUpdateRequestDynamicGroupInfo"; export * from "./GroupsUpdateResponse"; +export * from "./ImpactedCustomerDetails"; export * from "./Incident"; export * from "./IncidentsCreateResponse"; export * from "./IncidentsDeleteResponse"; @@ -277,11 +298,13 @@ export * from "./LegacyStage"; export * from "./LegacyStageSummary"; export * from "./LinesOfCode"; export * from "./Link"; +export * from "./LinkDescriptorFilter"; export * from "./LinkEndpointSummary"; export * from "./LinkEndpointType"; export * from "./LinkRevUserToRevOrgResponse"; export * from "./LinkSearchSummary"; export * from "./LinkSummary"; +export * from "./LinkTargetDescriptor"; export * from "./LinkType"; export * from "./LinksCreateResponse"; export * from "./LinksDeleteResponse"; @@ -352,6 +375,11 @@ export * from "./PartsUpdateRequestFeature"; export * from "./PartsUpdateRequestOwnedBy"; export * from "./PartsUpdateRequestProduct"; export * from "./PartsUpdateResponse"; +export * from "./Preferences"; +export * from "./PreferencesBase"; +export * from "./PreferencesBaseSummary"; +export * from "./PreferencesGetResponse"; +export * from "./PreferencesType"; export * from "./Product"; export * from "./ProductSummary"; export * from "./QuestionAnswer"; @@ -368,6 +396,7 @@ export * from "./QuestionAnswersUpdateRequestSharedWith"; export * from "./QuestionAnswersUpdateRequestSources"; export * from "./QuestionAnswersUpdateRequestTags"; export * from "./QuestionAnswersUpdateResponse"; +export * from "./RemoveTagWithValue"; export * from "./RemovedSlaMetricHistory"; export * from "./Resource"; export * from "./ResourceSummary"; @@ -589,15 +618,23 @@ export * from "./UomsGetResponse"; export * from "./UomsListResponse"; export * from "./UomsUpdateRequestDimensions"; export * from "./UomsUpdateResponse"; +export * from "./UpdateImpactedCustomerDetails"; +export * from "./UpdateImpactedCustomerDetailsCustomerIds"; export * from "./UpdateIncidentAppliesToParts"; export * from "./UpdateIncidentArtifacts"; export * from "./UpdateIncidentImpactedCustomers"; export * from "./UpdateIncidentOwnedBy"; +export * from "./UpdateIncidentPia"; +export * from "./UpdateIncidentPlaybooks"; +export * from "./UpdateIncidentRelatedDocs"; export * from "./UpdateIncidentStakeholders"; export * from "./UpdateIncidentTags"; +export * from "./UpdateLinkTargetDescriptorList"; export * from "./UpdateStage"; export * from "./UpdateTagWithValue"; export * from "./UserBase"; +export * from "./UserPreferences"; +export * from "./UserPreferencesSummary"; export * from "./UserSearchSummary"; export * from "./UserSkill"; export * from "./UserState"; @@ -614,6 +651,7 @@ export * from "./WebhookStatus"; export * from "./WebhookSummary"; export * from "./WebhooksCreateResponse"; export * from "./WebhooksDeleteResponse"; +export * from "./WebhooksFetchResponse"; export * from "./WebhooksGetResponse"; export * from "./WebhooksListRequest"; export * from "./WebhooksListResponse"; diff --git a/src/serialization/resources/customization/client/requests/CustomLinkTypeCreateRequest.ts b/src/serialization/resources/customization/client/requests/CustomLinkTypeCreateRequest.ts new file mode 100644 index 0000000..43edced --- /dev/null +++ b/src/serialization/resources/customization/client/requests/CustomLinkTypeCreateRequest.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 { LinkTargetDescriptor } from "../../../../types/LinkTargetDescriptor"; + +export const CustomLinkTypeCreateRequest: core.serialization.Schema< + serializers.CustomLinkTypeCreateRequest.Raw, + DevRev.CustomLinkTypeCreateRequest +> = core.serialization.object({ + backwardName: core.serialization.property("backward_name", core.serialization.string()), + deprecated: core.serialization.boolean().optional(), + forwardName: core.serialization.property("forward_name", core.serialization.string()), + name: core.serialization.string(), + sourceTypes: core.serialization.property("source_types", core.serialization.list(LinkTargetDescriptor)), + targetTypes: core.serialization.property("target_types", core.serialization.list(LinkTargetDescriptor)), + tooltip: core.serialization.string().optional(), +}); + +export declare namespace CustomLinkTypeCreateRequest { + interface Raw { + backward_name: string; + deprecated?: boolean | null; + forward_name: string; + name: string; + source_types: LinkTargetDescriptor.Raw[]; + target_types: LinkTargetDescriptor.Raw[]; + tooltip?: string | null; + } +} diff --git a/src/serialization/resources/customization/client/requests/CustomLinkTypeGetRequest.ts b/src/serialization/resources/customization/client/requests/CustomLinkTypeGetRequest.ts new file mode 100644 index 0000000..3deb96d --- /dev/null +++ b/src/serialization/resources/customization/client/requests/CustomLinkTypeGetRequest.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 CustomLinkTypeGetRequest: core.serialization.Schema< + serializers.CustomLinkTypeGetRequest.Raw, + DevRev.CustomLinkTypeGetRequest +> = core.serialization.object({ + id: core.serialization.string(), +}); + +export declare namespace CustomLinkTypeGetRequest { + interface Raw { + id: string; + } +} diff --git a/src/serialization/resources/customization/client/requests/CustomLinkTypeListRequest.ts b/src/serialization/resources/customization/client/requests/CustomLinkTypeListRequest.ts new file mode 100644 index 0000000..653d380 --- /dev/null +++ b/src/serialization/resources/customization/client/requests/CustomLinkTypeListRequest.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 { ListMode } from "../../../../types/ListMode"; +import { LinkDescriptorFilter } from "../../../../types/LinkDescriptorFilter"; + +export const CustomLinkTypeListRequest: core.serialization.Schema< + serializers.CustomLinkTypeListRequest.Raw, + DevRev.CustomLinkTypeListRequest +> = core.serialization.object({ + cursor: core.serialization.string().optional(), + deprecated: core.serialization.boolean().optional(), + limit: core.serialization.number().optional(), + mode: ListMode.optional(), + name: core.serialization.list(core.serialization.string()).optional(), + sortBy: core.serialization.property("sort_by", core.serialization.list(core.serialization.string()).optional()), + sourceTypes: core.serialization.property("source_types", LinkDescriptorFilter.optional()), + targetTypes: core.serialization.property("target_types", LinkDescriptorFilter.optional()), +}); + +export declare namespace CustomLinkTypeListRequest { + interface Raw { + cursor?: string | null; + deprecated?: boolean | null; + limit?: number | null; + mode?: ListMode.Raw | null; + name?: string[] | null; + sort_by?: string[] | null; + source_types?: LinkDescriptorFilter.Raw | null; + target_types?: LinkDescriptorFilter.Raw | null; + } +} diff --git a/src/serialization/resources/customization/client/requests/CustomLinkTypeUpdateRequest.ts b/src/serialization/resources/customization/client/requests/CustomLinkTypeUpdateRequest.ts new file mode 100644 index 0000000..c7deacb --- /dev/null +++ b/src/serialization/resources/customization/client/requests/CustomLinkTypeUpdateRequest.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 { UpdateLinkTargetDescriptorList } from "../../../../types/UpdateLinkTargetDescriptorList"; + +export const CustomLinkTypeUpdateRequest: core.serialization.Schema< + serializers.CustomLinkTypeUpdateRequest.Raw, + DevRev.CustomLinkTypeUpdateRequest +> = core.serialization.object({ + backwardName: core.serialization.property("backward_name", core.serialization.string().optional()), + deprecated: core.serialization.boolean().optional(), + forwardName: core.serialization.property("forward_name", core.serialization.string().optional()), + id: core.serialization.string(), + name: core.serialization.string().optional(), + sourceTypes: core.serialization.property("source_types", UpdateLinkTargetDescriptorList.optional()), + targetTypes: core.serialization.property("target_types", UpdateLinkTargetDescriptorList.optional()), + tooltip: core.serialization.string().optional(), +}); + +export declare namespace CustomLinkTypeUpdateRequest { + interface Raw { + backward_name?: string | null; + deprecated?: boolean | null; + forward_name?: string | null; + id: string; + name?: string | null; + source_types?: UpdateLinkTargetDescriptorList.Raw | null; + target_types?: UpdateLinkTargetDescriptorList.Raw | null; + tooltip?: string | null; + } +} diff --git a/src/serialization/resources/customization/client/requests/index.ts b/src/serialization/resources/customization/client/requests/index.ts index 9886537..32179ed 100644 --- a/src/serialization/resources/customization/client/requests/index.ts +++ b/src/serialization/resources/customization/client/requests/index.ts @@ -1,3 +1,7 @@ +export { CustomLinkTypeCreateRequest } from "./CustomLinkTypeCreateRequest"; +export { CustomLinkTypeGetRequest } from "./CustomLinkTypeGetRequest"; +export { CustomLinkTypeListRequest } from "./CustomLinkTypeListRequest"; +export { CustomLinkTypeUpdateRequest } from "./CustomLinkTypeUpdateRequest"; export { AggregatedSchemaGetRequest } from "./AggregatedSchemaGetRequest"; export { CustomSchemaFragmentsGetRequest } from "./CustomSchemaFragmentsGetRequest"; export { CustomSchemaFragmentsListRequest } from "./CustomSchemaFragmentsListRequest"; diff --git a/src/serialization/resources/devUsers/client/requests/DevUsersListRequest.ts b/src/serialization/resources/devUsers/client/requests/DevUsersListRequest.ts index 61a07c0..417ab49 100644 --- a/src/serialization/resources/devUsers/client/requests/DevUsersListRequest.ts +++ b/src/serialization/resources/devUsers/client/requests/DevUsersListRequest.ts @@ -16,6 +16,10 @@ export const DevUsersListRequest: core.serialization.Schema< > = core.serialization.object({ createdDate: core.serialization.property("created_date", DateFilter.optional()), cursor: core.serialization.string().optional(), + customFields: core.serialization.property( + "custom_fields", + core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() + ), email: core.serialization.list(core.serialization.string()).optional(), externalIdentity: core.serialization.property( "external_identity", @@ -32,6 +36,7 @@ export declare namespace DevUsersListRequest { interface Raw { created_date?: DateFilter.Raw | null; cursor?: string | null; + custom_fields?: Record<string, unknown> | null; email?: string[] | null; external_identity?: DevUserExternalIdentityFilter.Raw[] | null; limit?: number | null; diff --git a/src/serialization/resources/devUsers/client/requests/DevUsersSelfUpdateRequest.ts b/src/serialization/resources/devUsers/client/requests/DevUsersSelfUpdateRequest.ts index b5f0a5a..4636ca7 100644 --- a/src/serialization/resources/devUsers/client/requests/DevUsersSelfUpdateRequest.ts +++ b/src/serialization/resources/devUsers/client/requests/DevUsersSelfUpdateRequest.ts @@ -5,21 +5,37 @@ import * as serializers from "../../../../index"; import * as DevRev from "../../../../../api/index"; import * as core from "../../../../../core"; +import { CustomSchemaSpec } from "../../../../types/CustomSchemaSpec"; +import { DevUsersUpdateJobHistoryItem } from "../../../../types/DevUsersUpdateJobHistoryItem"; import { DevUserJobTitle } from "../../../../types/DevUserJobTitle"; export const DevUsersSelfUpdateRequest: core.serialization.Schema< serializers.DevUsersSelfUpdateRequest.Raw, DevRev.DevUsersSelfUpdateRequest > = 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()), displayName: core.serialization.property("display_name", core.serialization.string().optional()), + experienceStartDate: core.serialization.property("experience_start_date", core.serialization.date().optional()), fullName: core.serialization.property("full_name", core.serialization.string().optional()), + jobHistory: core.serialization.property( + "job_history", + core.serialization.list(DevUsersUpdateJobHistoryItem).optional() + ), jobTitle: core.serialization.property("job_title", DevUserJobTitle.optional()), }); export declare namespace DevUsersSelfUpdateRequest { interface Raw { + custom_fields?: Record<string, unknown> | null; + custom_schema_spec?: CustomSchemaSpec.Raw | null; display_name?: string | null; + experience_start_date?: string | null; full_name?: string | null; + job_history?: DevUsersUpdateJobHistoryItem.Raw[] | null; job_title?: DevUserJobTitle.Raw | null; } } diff --git a/src/serialization/resources/devUsers/client/requests/DevUsersUpdateRequest.ts b/src/serialization/resources/devUsers/client/requests/DevUsersUpdateRequest.ts index 88ffafa..75d8f66 100644 --- a/src/serialization/resources/devUsers/client/requests/DevUsersUpdateRequest.ts +++ b/src/serialization/resources/devUsers/client/requests/DevUsersUpdateRequest.ts @@ -5,23 +5,39 @@ import * as serializers from "../../../../index"; import * as DevRev from "../../../../../api/index"; import * as core from "../../../../../core"; +import { CustomSchemaSpec } from "../../../../types/CustomSchemaSpec"; +import { DevUsersUpdateJobHistoryItem } from "../../../../types/DevUsersUpdateJobHistoryItem"; import { DevUserJobTitle } from "../../../../types/DevUserJobTitle"; export const DevUsersUpdateRequest: core.serialization.Schema< serializers.DevUsersUpdateRequest.Raw, DevRev.DevUsersUpdateRequest > = 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()), displayName: core.serialization.property("display_name", core.serialization.string().optional()), + experienceStartDate: core.serialization.property("experience_start_date", core.serialization.date().optional()), fullName: core.serialization.property("full_name", core.serialization.string().optional()), id: core.serialization.string(), + jobHistory: core.serialization.property( + "job_history", + core.serialization.list(DevUsersUpdateJobHistoryItem).optional() + ), jobTitle: core.serialization.property("job_title", DevUserJobTitle.optional()), }); export declare namespace DevUsersUpdateRequest { interface Raw { + custom_fields?: Record<string, unknown> | null; + custom_schema_spec?: CustomSchemaSpec.Raw | null; display_name?: string | null; + experience_start_date?: string | null; full_name?: string | null; id: string; + job_history?: DevUsersUpdateJobHistoryItem.Raw[] | null; job_title?: DevUserJobTitle.Raw | null; } } diff --git a/src/serialization/resources/groups/client/requests/GroupsListRequest.ts b/src/serialization/resources/groups/client/requests/GroupsListRequest.ts index 38f1c9b..f88962f 100644 --- a/src/serialization/resources/groups/client/requests/GroupsListRequest.ts +++ b/src/serialization/resources/groups/client/requests/GroupsListRequest.ts @@ -6,6 +6,7 @@ import * as serializers from "../../../../index"; import * as DevRev from "../../../../../api/index"; import * as core from "../../../../../core"; import { GroupType } from "../../../../types/GroupType"; +import { GroupIngestionSource } from "../../../../types/GroupIngestionSource"; import { GroupMemberType } from "../../../../types/GroupMemberType"; import { ListMode } from "../../../../types/ListMode"; @@ -13,6 +14,10 @@ export const GroupsListRequest: core.serialization.Schema<serializers.GroupsList core.serialization.object({ cursor: core.serialization.string().optional(), groupType: core.serialization.property("group_type", core.serialization.list(GroupType).optional()), + ingestionSource: core.serialization.property( + "ingestion_source", + core.serialization.list(GroupIngestionSource).optional() + ), isDefault: core.serialization.property("is_default", core.serialization.boolean().optional()), limit: core.serialization.number().optional(), memberType: core.serialization.property("member_type", core.serialization.list(GroupMemberType).optional()), @@ -24,6 +29,7 @@ export declare namespace GroupsListRequest { interface Raw { cursor?: string | null; group_type?: GroupType.Raw[] | null; + ingestion_source?: GroupIngestionSource.Raw[] | null; is_default?: boolean | null; limit?: number | null; member_type?: GroupMemberType.Raw[] | null; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index 265e134..101d804 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -8,6 +8,8 @@ export * as authTokens from "./authTokens"; export * from "./authTokens/client/requests"; export * as codeChanges from "./codeChanges"; export * from "./codeChanges/client/requests"; +export * as notifications from "./notifications"; +export * from "./notifications/client/requests"; export * as conversations from "./conversations"; export * from "./conversations/client/requests"; export * as authConnection from "./authConnection"; @@ -24,26 +26,26 @@ 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"; export * from "./slas/client/requests"; export * as productUsage from "./productUsage"; export * from "./productUsage/client/requests"; -export * as notifications from "./notifications"; -export * from "./notifications/client/requests"; export * as schedules from "./schedules"; export * from "./schedules/client/requests"; export * as parts from "./parts"; export * from "./parts/client/requests"; +export * as preferences from "./preferences"; +export * from "./preferences/client/requests"; export * as questionAnswers from "./questionAnswers"; export * from "./questionAnswers/client/requests"; export * as revOrgs from "./revOrgs"; export * from "./revOrgs/client/requests"; export * as revUsers from "./revUsers"; export * from "./revUsers/client/requests"; -export * as customization from "./customization"; -export * from "./customization/client/requests"; export * as search from "./search"; export * from "./search/client/requests"; export * as serviceAccounts from "./serviceAccounts"; diff --git a/src/serialization/resources/notifications/client/requests/ContentTemplateGetRequest.ts b/src/serialization/resources/notifications/client/requests/ContentTemplateGetRequest.ts new file mode 100644 index 0000000..790e56c --- /dev/null +++ b/src/serialization/resources/notifications/client/requests/ContentTemplateGetRequest.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 ContentTemplateGetRequest: core.serialization.Schema< + serializers.ContentTemplateGetRequest.Raw, + DevRev.ContentTemplateGetRequest +> = core.serialization.object({ + id: core.serialization.string(), +}); + +export declare namespace ContentTemplateGetRequest { + interface Raw { + id: string; + } +} diff --git a/src/serialization/resources/notifications/client/requests/ContentTemplateListRequest.ts b/src/serialization/resources/notifications/client/requests/ContentTemplateListRequest.ts new file mode 100644 index 0000000..084c99e --- /dev/null +++ b/src/serialization/resources/notifications/client/requests/ContentTemplateListRequest.ts @@ -0,0 +1,37 @@ +/** + * 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 { ContentTemplateType } from "../../../../types/ContentTemplateType"; +import { ListMode } from "../../../../types/ListMode"; + +export const ContentTemplateListRequest: core.serialization.Schema< + serializers.ContentTemplateListRequest.Raw, + DevRev.ContentTemplateListRequest +> = core.serialization.object({ + type: core.serialization.list(ContentTemplateType).optional(), + 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(), + name: core.serialization.list(core.serialization.string()).optional(), + sortBy: core.serialization.property("sort_by", core.serialization.list(core.serialization.string()).optional()), +}); + +export declare namespace ContentTemplateListRequest { + interface Raw { + type?: ContentTemplateType.Raw[] | null; + created_by?: string[] | null; + cursor?: string | null; + limit?: number | null; + mode?: ListMode.Raw | null; + name?: string[] | null; + sort_by?: string[] | null; + } +} diff --git a/src/serialization/resources/notifications/client/requests/index.ts b/src/serialization/resources/notifications/client/requests/index.ts index f38d417..9cb5c1b 100644 --- a/src/serialization/resources/notifications/client/requests/index.ts +++ b/src/serialization/resources/notifications/client/requests/index.ts @@ -1 +1,3 @@ +export { ContentTemplateGetRequest } from "./ContentTemplateGetRequest"; +export { ContentTemplateListRequest } from "./ContentTemplateListRequest"; export { NotificationsSendRequest } from "./NotificationsSendRequest"; diff --git a/src/serialization/resources/operate/client/requests/IncidentsCreateRequest.ts b/src/serialization/resources/operate/client/requests/IncidentsCreateRequest.ts index 9c969ec..a86d461 100644 --- a/src/serialization/resources/operate/client/requests/IncidentsCreateRequest.ts +++ b/src/serialization/resources/operate/client/requests/IncidentsCreateRequest.ts @@ -6,6 +6,7 @@ import * as serializers from "../../../../index"; import * as DevRev from "../../../../../api/index"; import * as core from "../../../../../core"; import { CustomSchemaSpec } from "../../../../types/CustomSchemaSpec"; +import { CreateImpactedCustomerDetails } from "../../../../types/CreateImpactedCustomerDetails"; import { CreateStage } from "../../../../types/CreateStage"; import { CreateTagWithValue } from "../../../../types/CreateTagWithValue"; @@ -13,6 +14,7 @@ export const IncidentsCreateRequest: core.serialization.Schema< serializers.IncidentsCreateRequest.Raw, DevRev.IncidentsCreateRequest > = core.serialization.object({ + acknowledgedDate: core.serialization.property("acknowledged_date", core.serialization.date().optional()), appliesToParts: core.serialization.property( "applies_to_parts", core.serialization.list(core.serialization.string()).optional() @@ -24,14 +26,23 @@ export const IncidentsCreateRequest: core.serialization.Schema< core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional() ), customSchemaSpec: core.serialization.property("custom_schema_spec", CustomSchemaSpec.optional()), - identifiedAt: core.serialization.property("identified_at", core.serialization.date().optional()), + identifiedDate: core.serialization.property("identified_date", core.serialization.date().optional()), + impact: CreateImpactedCustomerDetails.optional(), impactedCustomers: core.serialization.property( "impacted_customers", core.serialization.list(core.serialization.string()).optional() ), + mitigatedDate: core.serialization.property("mitigated_date", core.serialization.date().optional()), ownedBy: core.serialization.property("owned_by", core.serialization.list(core.serialization.string()).optional()), - resolvedAt: core.serialization.property("resolved_at", core.serialization.date().optional()), + pia: core.serialization.list(core.serialization.string()).optional(), + playbooks: core.serialization.list(core.serialization.string()).optional(), + relatedDocs: core.serialization.property( + "related_docs", + core.serialization.list(core.serialization.string()).optional() + ), + reportedBy: core.serialization.property("reported_by", core.serialization.number().optional()), severity: core.serialization.number().optional(), + source: core.serialization.number().optional(), stage: CreateStage.optional(), stakeholders: core.serialization.list(core.serialization.string()).optional(), tags: core.serialization.list(CreateTagWithValue).optional(), @@ -41,16 +52,23 @@ export const IncidentsCreateRequest: core.serialization.Schema< export declare namespace IncidentsCreateRequest { interface Raw { + acknowledged_date?: string | null; applies_to_parts?: string[] | null; artifacts?: string[] | null; body?: string | null; custom_fields?: Record<string, unknown> | null; custom_schema_spec?: CustomSchemaSpec.Raw | null; - identified_at?: string | null; + identified_date?: string | null; + impact?: CreateImpactedCustomerDetails.Raw | null; impacted_customers?: string[] | null; + mitigated_date?: string | null; owned_by?: string[] | null; - resolved_at?: string | null; + pia?: string[] | null; + playbooks?: string[] | null; + related_docs?: string[] | null; + reported_by?: number | null; severity?: number | null; + source?: number | null; stage?: CreateStage.Raw | null; stakeholders?: string[] | null; tags?: CreateTagWithValue.Raw[] | null; diff --git a/src/serialization/resources/operate/client/requests/IncidentsGroupRequest.ts b/src/serialization/resources/operate/client/requests/IncidentsGroupRequest.ts index e4f2ab8..775e53d 100644 --- a/src/serialization/resources/operate/client/requests/IncidentsGroupRequest.ts +++ b/src/serialization/resources/operate/client/requests/IncidentsGroupRequest.ts @@ -12,6 +12,8 @@ export const IncidentsGroupRequest: core.serialization.Schema< serializers.IncidentsGroupRequest.Raw, DevRev.IncidentsGroupRequest > = core.serialization.object({ + acknowledgedDate: core.serialization.property("acknowledged_date", DateFilter.optional()), + actualCloseDate: core.serialization.property("actual_close_date", DateFilter.optional()), appliesToParts: core.serialization.property( "applies_to_parts", core.serialization.list(core.serialization.string()).optional() @@ -23,32 +25,56 @@ export const IncidentsGroupRequest: core.serialization.Schema< createdDate: core.serialization.property("created_date", DateFilter.optional()), cursor: core.serialization.string().optional(), groupBy: core.serialization.property("group_by", core.serialization.string()), + identifiedDate: core.serialization.property("identified_date", DateFilter.optional()), limit: core.serialization.number().optional(), limitPerGroup: core.serialization.property("limit_per_group", core.serialization.number().optional()), + mitigatedDate: core.serialization.property("mitigated_date", DateFilter.optional()), mode: ListMode.optional(), modifiedDate: core.serialization.property("modified_date", DateFilter.optional()), ownedBy: core.serialization.property("owned_by", core.serialization.list(core.serialization.string()).optional()), + pia: core.serialization.list(core.serialization.string()).optional(), + playbook: core.serialization.list(core.serialization.string()).optional(), + relatedDocs: core.serialization.property( + "related_docs", + core.serialization.list(core.serialization.string()).optional() + ), + reportedBy: core.serialization.property( + "reported_by", + core.serialization.list(core.serialization.number()).optional() + ), severity: core.serialization.list(core.serialization.number()).optional(), sortBy: core.serialization.property("sort_by", core.serialization.list(core.serialization.string()).optional()), + source: core.serialization.list(core.serialization.number()).optional(), stage: core.serialization.list(core.serialization.string()).optional(), + targetCloseDate: core.serialization.property("target_close_date", DateFilter.optional()), title: core.serialization.list(core.serialization.string()).optional(), }); export declare namespace IncidentsGroupRequest { interface Raw { + acknowledged_date?: DateFilter.Raw | null; + actual_close_date?: DateFilter.Raw | null; applies_to_parts?: string[] | null; created_by?: string[] | null; created_date?: DateFilter.Raw | null; cursor?: string | null; group_by: string; + identified_date?: DateFilter.Raw | null; limit?: number | null; limit_per_group?: number | null; + mitigated_date?: DateFilter.Raw | null; mode?: ListMode.Raw | null; modified_date?: DateFilter.Raw | null; owned_by?: string[] | null; + pia?: string[] | null; + playbook?: string[] | null; + related_docs?: string[] | null; + reported_by?: number[] | null; severity?: number[] | null; sort_by?: string[] | null; + source?: number[] | null; stage?: string[] | null; + target_close_date?: DateFilter.Raw | null; title?: string[] | null; } } diff --git a/src/serialization/resources/operate/client/requests/IncidentsListRequest.ts b/src/serialization/resources/operate/client/requests/IncidentsListRequest.ts index c0006a0..b616c59 100644 --- a/src/serialization/resources/operate/client/requests/IncidentsListRequest.ts +++ b/src/serialization/resources/operate/client/requests/IncidentsListRequest.ts @@ -12,6 +12,8 @@ export const IncidentsListRequest: core.serialization.Schema< serializers.IncidentsListRequest.Raw, DevRev.IncidentsListRequest > = core.serialization.object({ + acknowledgedDate: core.serialization.property("acknowledged_date", DateFilter.optional()), + actualCloseDate: core.serialization.property("actual_close_date", DateFilter.optional()), appliesToParts: core.serialization.property( "applies_to_parts", core.serialization.list(core.serialization.string()).optional() @@ -22,29 +24,53 @@ export const IncidentsListRequest: core.serialization.Schema< ), createdDate: core.serialization.property("created_date", DateFilter.optional()), cursor: core.serialization.string().optional(), + identifiedDate: core.serialization.property("identified_date", DateFilter.optional()), limit: core.serialization.number().optional(), + mitigatedDate: core.serialization.property("mitigated_date", DateFilter.optional()), mode: ListMode.optional(), modifiedDate: core.serialization.property("modified_date", DateFilter.optional()), ownedBy: core.serialization.property("owned_by", core.serialization.list(core.serialization.string()).optional()), + pia: core.serialization.list(core.serialization.string()).optional(), + playbook: core.serialization.list(core.serialization.string()).optional(), + relatedDocs: core.serialization.property( + "related_docs", + core.serialization.list(core.serialization.string()).optional() + ), + reportedBy: core.serialization.property( + "reported_by", + core.serialization.list(core.serialization.number()).optional() + ), severity: core.serialization.list(core.serialization.number()).optional(), sortBy: core.serialization.property("sort_by", core.serialization.list(core.serialization.string()).optional()), + source: core.serialization.list(core.serialization.number()).optional(), stage: core.serialization.list(core.serialization.string()).optional(), + targetCloseDate: core.serialization.property("target_close_date", DateFilter.optional()), title: core.serialization.list(core.serialization.string()).optional(), }); export declare namespace IncidentsListRequest { interface Raw { + acknowledged_date?: DateFilter.Raw | null; + actual_close_date?: DateFilter.Raw | null; applies_to_parts?: string[] | null; created_by?: string[] | null; created_date?: DateFilter.Raw | null; cursor?: string | null; + identified_date?: DateFilter.Raw | null; limit?: number | null; + mitigated_date?: DateFilter.Raw | null; mode?: ListMode.Raw | null; modified_date?: DateFilter.Raw | null; owned_by?: string[] | null; + pia?: string[] | null; + playbook?: string[] | null; + related_docs?: string[] | null; + reported_by?: number[] | null; severity?: number[] | null; sort_by?: string[] | null; + source?: number[] | null; stage?: string[] | null; + target_close_date?: DateFilter.Raw | null; title?: string[] | null; } } diff --git a/src/serialization/resources/operate/client/requests/IncidentsUpdateRequest.ts b/src/serialization/resources/operate/client/requests/IncidentsUpdateRequest.ts index d2323d0..9b61d9d 100644 --- a/src/serialization/resources/operate/client/requests/IncidentsUpdateRequest.ts +++ b/src/serialization/resources/operate/client/requests/IncidentsUpdateRequest.ts @@ -8,8 +8,12 @@ import * as core from "../../../../../core"; import { UpdateIncidentAppliesToParts } from "../../../../types/UpdateIncidentAppliesToParts"; import { UpdateIncidentArtifacts } from "../../../../types/UpdateIncidentArtifacts"; import { CustomSchemaSpec } from "../../../../types/CustomSchemaSpec"; +import { UpdateImpactedCustomerDetails } from "../../../../types/UpdateImpactedCustomerDetails"; import { UpdateIncidentImpactedCustomers } from "../../../../types/UpdateIncidentImpactedCustomers"; import { UpdateIncidentOwnedBy } from "../../../../types/UpdateIncidentOwnedBy"; +import { UpdateIncidentPia } from "../../../../types/UpdateIncidentPia"; +import { UpdateIncidentPlaybooks } from "../../../../types/UpdateIncidentPlaybooks"; +import { UpdateIncidentRelatedDocs } from "../../../../types/UpdateIncidentRelatedDocs"; import { UpdateStage } from "../../../../types/UpdateStage"; import { UpdateIncidentStakeholders } from "../../../../types/UpdateIncidentStakeholders"; import { UpdateIncidentTags } from "../../../../types/UpdateIncidentTags"; @@ -18,6 +22,7 @@ export const IncidentsUpdateRequest: core.serialization.Schema< serializers.IncidentsUpdateRequest.Raw, DevRev.IncidentsUpdateRequest > = core.serialization.object({ + acknowledgedDate: core.serialization.property("acknowledged_date", core.serialization.date().optional()), appliesToParts: core.serialization.property("applies_to_parts", UpdateIncidentAppliesToParts.optional()), artifacts: UpdateIncidentArtifacts.optional(), body: core.serialization.string().optional(), @@ -27,11 +32,17 @@ export const IncidentsUpdateRequest: core.serialization.Schema< ), customSchemaSpec: core.serialization.property("custom_schema_spec", CustomSchemaSpec.optional()), id: core.serialization.string(), - identifiedAt: core.serialization.property("identified_at", core.serialization.date().optional()), + identifiedDate: core.serialization.property("identified_date", core.serialization.date().optional()), + impact: UpdateImpactedCustomerDetails.optional(), impactedCustomers: core.serialization.property("impacted_customers", UpdateIncidentImpactedCustomers.optional()), + mitigatedDate: core.serialization.property("mitigated_date", core.serialization.date().optional()), ownedBy: core.serialization.property("owned_by", UpdateIncidentOwnedBy.optional()), - resolvedAt: core.serialization.property("resolved_at", core.serialization.date().optional()), + pia: UpdateIncidentPia.optional(), + playbooks: UpdateIncidentPlaybooks.optional(), + relatedDocs: core.serialization.property("related_docs", UpdateIncidentRelatedDocs.optional()), + reportedBy: core.serialization.property("reported_by", core.serialization.number().optional()), severity: core.serialization.number().optional(), + source: core.serialization.number().optional(), stage: UpdateStage.optional(), stakeholders: UpdateIncidentStakeholders.optional(), tags: UpdateIncidentTags.optional(), @@ -41,17 +52,24 @@ export const IncidentsUpdateRequest: core.serialization.Schema< export declare namespace IncidentsUpdateRequest { interface Raw { + acknowledged_date?: string | null; applies_to_parts?: UpdateIncidentAppliesToParts.Raw | null; artifacts?: UpdateIncidentArtifacts.Raw | null; body?: string | null; custom_fields?: Record<string, unknown> | null; custom_schema_spec?: CustomSchemaSpec.Raw | null; id: string; - identified_at?: string | null; + identified_date?: string | null; + impact?: UpdateImpactedCustomerDetails.Raw | null; impacted_customers?: UpdateIncidentImpactedCustomers.Raw | null; + mitigated_date?: string | null; owned_by?: UpdateIncidentOwnedBy.Raw | null; - resolved_at?: string | null; + pia?: UpdateIncidentPia.Raw | null; + playbooks?: UpdateIncidentPlaybooks.Raw | null; + related_docs?: UpdateIncidentRelatedDocs.Raw | null; + reported_by?: number | null; severity?: number | null; + source?: number | null; stage?: UpdateStage.Raw | null; stakeholders?: UpdateIncidentStakeholders.Raw | null; tags?: UpdateIncidentTags.Raw | null; diff --git a/src/serialization/resources/preferences/client/index.ts b/src/serialization/resources/preferences/client/index.ts new file mode 100644 index 0000000..415726b --- /dev/null +++ b/src/serialization/resources/preferences/client/index.ts @@ -0,0 +1 @@ +export * from "./requests"; diff --git a/src/serialization/resources/preferences/client/requests/PreferencesGetRequest.ts b/src/serialization/resources/preferences/client/requests/PreferencesGetRequest.ts new file mode 100644 index 0000000..e29b668 --- /dev/null +++ b/src/serialization/resources/preferences/client/requests/PreferencesGetRequest.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 PreferencesGetRequest: core.serialization.Schema< + serializers.PreferencesGetRequest.Raw, + DevRev.PreferencesGetRequest +> = core.serialization.object({ + object: core.serialization.string(), +}); + +export declare namespace PreferencesGetRequest { + interface Raw { + object: string; + } +} diff --git a/src/serialization/resources/preferences/client/requests/index.ts b/src/serialization/resources/preferences/client/requests/index.ts new file mode 100644 index 0000000..414118d --- /dev/null +++ b/src/serialization/resources/preferences/client/requests/index.ts @@ -0,0 +1 @@ +export { PreferencesGetRequest } from "./PreferencesGetRequest"; diff --git a/src/serialization/resources/preferences/index.ts b/src/serialization/resources/preferences/index.ts new file mode 100644 index 0000000..5ec7692 --- /dev/null +++ b/src/serialization/resources/preferences/index.ts @@ -0,0 +1 @@ +export * from "./client"; diff --git a/src/serialization/resources/revOrgs/client/requests/RevOrgsCreateRequest.ts b/src/serialization/resources/revOrgs/client/requests/RevOrgsCreateRequest.ts index b582720..d929f71 100644 --- a/src/serialization/resources/revOrgs/client/requests/RevOrgsCreateRequest.ts +++ b/src/serialization/resources/revOrgs/client/requests/RevOrgsCreateRequest.ts @@ -12,7 +12,7 @@ export const RevOrgsCreateRequest: core.serialization.Schema< serializers.RevOrgsCreateRequest.Raw, DevRev.RevOrgsCreateRequest > = core.serialization.object({ - account: core.serialization.string().optional(), + account: core.serialization.string(), artifacts: core.serialization.list(core.serialization.string()).optional(), customFields: core.serialization.property( "custom_fields", @@ -33,7 +33,7 @@ export const RevOrgsCreateRequest: core.serialization.Schema< export declare namespace RevOrgsCreateRequest { interface Raw { - account?: string | null; + account: string; artifacts?: string[] | null; custom_fields?: Record<string, unknown> | null; custom_schema_fragments?: string[] | null; diff --git a/src/serialization/resources/surveys/client/requests/SurveysCreateRequest.ts b/src/serialization/resources/surveys/client/requests/SurveysCreateRequest.ts index 0dbcdae..3d2e763 100644 --- a/src/serialization/resources/surveys/client/requests/SurveysCreateRequest.ts +++ b/src/serialization/resources/surveys/client/requests/SurveysCreateRequest.ts @@ -13,6 +13,7 @@ export const SurveysCreateRequest: core.serialization.Schema< DevRev.SurveysCreateRequest > = core.serialization.object({ description: core.serialization.string().optional(), + header: core.serialization.string().optional(), introductoryText: core.serialization.property("introductory_text", core.serialization.string().optional()), name: core.serialization.string(), responseText: core.serialization.property("response_text", core.serialization.string().optional()), @@ -21,15 +22,18 @@ export const SurveysCreateRequest: core.serialization.Schema< "schema_with_metadata", core.serialization.list(SurveyFieldWithMetadata).optional() ), + title: core.serialization.string().optional(), }); export declare namespace SurveysCreateRequest { interface Raw { description?: string | null; + header?: string | null; introductory_text?: string | null; name: string; response_text?: string | null; schema?: FieldDescriptor.Raw[] | null; schema_with_metadata?: SurveyFieldWithMetadata.Raw[] | null; + title?: string | null; } } diff --git a/src/serialization/resources/webhooks/client/requests/WebhooksFetchRequest.ts b/src/serialization/resources/webhooks/client/requests/WebhooksFetchRequest.ts new file mode 100644 index 0000000..183e7b6 --- /dev/null +++ b/src/serialization/resources/webhooks/client/requests/WebhooksFetchRequest.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 WebhooksFetchRequest: core.serialization.Schema< + serializers.WebhooksFetchRequest.Raw, + DevRev.WebhooksFetchRequest +> = core.serialization.object({ + id: core.serialization.string(), + object: core.serialization.string(), +}); + +export declare namespace WebhooksFetchRequest { + interface Raw { + id: string; + object: string; + } +} diff --git a/src/serialization/resources/webhooks/client/requests/index.ts b/src/serialization/resources/webhooks/client/requests/index.ts index 27c496a..d49cb14 100644 --- a/src/serialization/resources/webhooks/client/requests/index.ts +++ b/src/serialization/resources/webhooks/client/requests/index.ts @@ -1,4 +1,5 @@ export { WebhooksCreateRequest } from "./WebhooksCreateRequest"; export { WebhooksDeleteRequest } from "./WebhooksDeleteRequest"; +export { WebhooksFetchRequest } from "./WebhooksFetchRequest"; export { WebhooksGetRequest } from "./WebhooksGetRequest"; export { WebhooksUpdateRequest } from "./WebhooksUpdateRequest"; diff --git a/src/serialization/types/AddTagWithValue.ts b/src/serialization/types/AddTagWithValue.ts new file mode 100644 index 0000000..4314660 --- /dev/null +++ b/src/serialization/types/AddTagWithValue.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 AddTagWithValue: core.serialization.ObjectSchema<serializers.AddTagWithValue.Raw, DevRev.AddTagWithValue> = + core.serialization.object({ + id: core.serialization.string(), + value: core.serialization.string().optional(), + }); + +export declare namespace AddTagWithValue { + interface Raw { + id: string; + value?: string | null; + } +} diff --git a/src/serialization/types/ArchetypeMetricTarget.ts b/src/serialization/types/ArchetypeMetricTarget.ts index fcd4beb..e447999 100644 --- a/src/serialization/types/ArchetypeMetricTarget.ts +++ b/src/serialization/types/ArchetypeMetricTarget.ts @@ -12,20 +12,33 @@ export const ArchetypeMetricTarget: core.serialization.ObjectSchema< serializers.ArchetypeMetricTarget.Raw, DevRev.ArchetypeMetricTarget > = core.serialization.object({ + breachedAt: core.serialization.property("breached_at", core.serialization.date().optional()), + completedIn: core.serialization.property("completed_in", core.serialization.number().optional()), isOutOfSchedule: core.serialization.property("is_out_of_schedule", core.serialization.boolean().optional()), metricDefinition: core.serialization.property("metric_definition", MetricDefinitionSummary), + nextScheduleTransition: core.serialization.property( + "next_schedule_transition", + core.serialization.date().optional() + ), orgSchedule: core.serialization.property("org_schedule", OrgScheduleSummary.optional()), remainingTime: core.serialization.property("remaining_time", core.serialization.number().optional()), + stage: core.serialization.string(), + status: core.serialization.string().optional(), targetTime: core.serialization.property("target_time", core.serialization.date().optional()), warningTargetTime: core.serialization.property("warning_target_time", core.serialization.date().optional()), }); export declare namespace ArchetypeMetricTarget { interface Raw { + breached_at?: string | null; + completed_in?: number | null; is_out_of_schedule?: boolean | null; metric_definition: MetricDefinitionSummary.Raw; + next_schedule_transition?: string | null; org_schedule?: OrgScheduleSummary.Raw | null; remaining_time?: number | null; + stage: string; + status?: string | null; target_time?: string | null; warning_target_time?: string | null; } diff --git a/src/serialization/types/AtomSummary.ts b/src/serialization/types/AtomSummary.ts index 39c74fb..022ba03 100644 --- a/src/serialization/types/AtomSummary.ts +++ b/src/serialization/types/AtomSummary.ts @@ -42,6 +42,7 @@ export const AtomSummary: core.serialization.Schema<serializers.AtomSummary.Raw, ticket: TicketSummary, timeline_change_event: AtomBaseSummary, timeline_comment: AtomBaseSummary, + user_preferences: AtomBaseSummary, webhook: AtomBaseSummary, }) .transform<DevRev.AtomSummary>({ @@ -74,6 +75,7 @@ export declare namespace AtomSummary { | AtomSummary.Ticket | AtomSummary.TimelineChangeEvent | AtomSummary.TimelineComment + | AtomSummary.UserPreferences | AtomSummary.Webhook; interface Account extends OrgBaseSummary.Raw { @@ -168,6 +170,10 @@ export declare namespace AtomSummary { type: "timeline_comment"; } + interface UserPreferences extends AtomBaseSummary.Raw { + type: "user_preferences"; + } + interface Webhook extends AtomBaseSummary.Raw { type: "webhook"; } diff --git a/src/serialization/types/AvailabilityPreferencesGroup.ts b/src/serialization/types/AvailabilityPreferencesGroup.ts new file mode 100644 index 0000000..a1a00bd --- /dev/null +++ b/src/serialization/types/AvailabilityPreferencesGroup.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 AvailabilityPreferencesGroup: core.serialization.ObjectSchema< + serializers.AvailabilityPreferencesGroup.Raw, + DevRev.AvailabilityPreferencesGroup +> = core.serialization.object({ + manualAway: core.serialization.property("manual_away", core.serialization.boolean().optional()), +}); + +export declare namespace AvailabilityPreferencesGroup { + interface Raw { + manual_away?: boolean | null; + } +} diff --git a/src/serialization/types/CodeChangeSource.ts b/src/serialization/types/CodeChangeSource.ts index 969bc6f..bbdc1d6 100644 --- a/src/serialization/types/CodeChangeSource.ts +++ b/src/serialization/types/CodeChangeSource.ts @@ -7,8 +7,8 @@ import * as DevRev from "../../api/index"; import * as core from "../../core"; export const CodeChangeSource: core.serialization.Schema<serializers.CodeChangeSource.Raw, DevRev.CodeChangeSource> = - core.serialization.enum_(["bitbucket", "github"]); + core.serialization.enum_(["azure_devops", "bitbucket", "github"]); export declare namespace CodeChangeSource { - type Raw = "bitbucket" | "github"; + type Raw = "azure_devops" | "bitbucket" | "github"; } diff --git a/src/serialization/types/ContentTemplate.ts b/src/serialization/types/ContentTemplate.ts new file mode 100644 index 0000000..a52c5fc --- /dev/null +++ b/src/serialization/types/ContentTemplate.ts @@ -0,0 +1,19 @@ +/** + * 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 { ContentTemplateType } from "./ContentTemplateType"; + +export const ContentTemplate: core.serialization.ObjectSchema<serializers.ContentTemplate.Raw, DevRev.ContentTemplate> = + core.serialization.object({ + type: ContentTemplateType, + }); + +export declare namespace ContentTemplate { + interface Raw { + type: ContentTemplateType.Raw; + } +} diff --git a/src/serialization/types/ContentTemplateCreateRequest.ts b/src/serialization/types/ContentTemplateCreateRequest.ts new file mode 100644 index 0000000..b48c2e4 --- /dev/null +++ b/src/serialization/types/ContentTemplateCreateRequest.ts @@ -0,0 +1,41 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +import { SchemaFieldDescriptor } from "./SchemaFieldDescriptor"; +import * as core from "../../core"; +import * as serializers from "../index"; +import * as DevRev from "../../api/index"; +import { ContentTemplateCreateRequestNotificationContentTemplate } from "./ContentTemplateCreateRequestNotificationContentTemplate"; + +const _Base = core.serialization.object({ + inputFieldsSchema: core.serialization.property( + "input_fields_schema", + core.serialization.list(SchemaFieldDescriptor).optional() + ), + name: core.serialization.string(), +}); +export const ContentTemplateCreateRequest: core.serialization.Schema< + serializers.ContentTemplateCreateRequest.Raw, + DevRev.ContentTemplateCreateRequest +> = core.serialization + .union("type", { + notification_content_template: ContentTemplateCreateRequestNotificationContentTemplate.extend(_Base), + }) + .transform<DevRev.ContentTemplateCreateRequest>({ + transform: (value) => value, + untransform: (value) => value, + }); + +export declare namespace ContentTemplateCreateRequest { + type Raw = ContentTemplateCreateRequest.NotificationContentTemplate; + + interface NotificationContentTemplate extends _Base, ContentTemplateCreateRequestNotificationContentTemplate.Raw { + type: "notification_content_template"; + } + + interface _Base { + input_fields_schema?: SchemaFieldDescriptor.Raw[] | null; + name: string; + } +} diff --git a/src/serialization/types/ContentTemplateCreateRequestNotificationContentTemplate.ts b/src/serialization/types/ContentTemplateCreateRequestNotificationContentTemplate.ts new file mode 100644 index 0000000..8283c32 --- /dev/null +++ b/src/serialization/types/ContentTemplateCreateRequestNotificationContentTemplate.ts @@ -0,0 +1,23 @@ +/** + * 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 { ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate } from "./ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate"; + +export const ContentTemplateCreateRequestNotificationContentTemplate: core.serialization.ObjectSchema< + serializers.ContentTemplateCreateRequestNotificationContentTemplate.Raw, + DevRev.ContentTemplateCreateRequestNotificationContentTemplate +> = core.serialization.object({ + defaults: core.serialization.list( + ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate + ), +}); + +export declare namespace ContentTemplateCreateRequestNotificationContentTemplate { + interface Raw { + defaults: ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate.Raw[]; + } +} diff --git a/src/serialization/types/ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate.ts b/src/serialization/types/ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate.ts new file mode 100644 index 0000000..c74eba3 --- /dev/null +++ b/src/serialization/types/ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate.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 ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate: core.serialization.ObjectSchema< + serializers.ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate.Raw, + DevRev.ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate +> = core.serialization.object({ + body: core.serialization.string(), + title: core.serialization.string(), +}); + +export declare namespace ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate { + interface Raw { + body: string; + title: string; + } +} diff --git a/src/serialization/types/ContentTemplateCreateResponse.ts b/src/serialization/types/ContentTemplateCreateResponse.ts new file mode 100644 index 0000000..d338508 --- /dev/null +++ b/src/serialization/types/ContentTemplateCreateResponse.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 { ContentTemplate } from "./ContentTemplate"; + +export const ContentTemplateCreateResponse: core.serialization.ObjectSchema< + serializers.ContentTemplateCreateResponse.Raw, + DevRev.ContentTemplateCreateResponse +> = core.serialization.object({ + contentTemplate: core.serialization.property("content_template", ContentTemplate), +}); + +export declare namespace ContentTemplateCreateResponse { + interface Raw { + content_template: ContentTemplate.Raw; + } +} diff --git a/src/serialization/types/ContentTemplateGetResponse.ts b/src/serialization/types/ContentTemplateGetResponse.ts new file mode 100644 index 0000000..4c6956c --- /dev/null +++ b/src/serialization/types/ContentTemplateGetResponse.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 { ContentTemplate } from "./ContentTemplate"; + +export const ContentTemplateGetResponse: core.serialization.ObjectSchema< + serializers.ContentTemplateGetResponse.Raw, + DevRev.ContentTemplateGetResponse +> = core.serialization.object({ + contentTemplate: core.serialization.property("content_template", ContentTemplate), +}); + +export declare namespace ContentTemplateGetResponse { + interface Raw { + content_template: ContentTemplate.Raw; + } +} diff --git a/src/serialization/types/ContentTemplateListResponse.ts b/src/serialization/types/ContentTemplateListResponse.ts new file mode 100644 index 0000000..52fb0b4 --- /dev/null +++ b/src/serialization/types/ContentTemplateListResponse.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 { ContentTemplate } from "./ContentTemplate"; + +export const ContentTemplateListResponse: core.serialization.ObjectSchema< + serializers.ContentTemplateListResponse.Raw, + DevRev.ContentTemplateListResponse +> = core.serialization.object({ + contentTemplate: core.serialization.property("content_template", core.serialization.list(ContentTemplate)), + nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()), + prevCursor: core.serialization.property("prev_cursor", core.serialization.string().optional()), +}); + +export declare namespace ContentTemplateListResponse { + interface Raw { + content_template: ContentTemplate.Raw[]; + next_cursor?: string | null; + prev_cursor?: string | null; + } +} diff --git a/src/serialization/types/ContentTemplateType.ts b/src/serialization/types/ContentTemplateType.ts new file mode 100644 index 0000000..ed95178 --- /dev/null +++ b/src/serialization/types/ContentTemplateType.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 ContentTemplateType: core.serialization.Schema< + serializers.ContentTemplateType.Raw, + DevRev.ContentTemplateType +> = core.serialization.string(); + +export declare namespace ContentTemplateType { + type Raw = string; +} diff --git a/src/serialization/types/CreateImpactedCustomerDetails.ts b/src/serialization/types/CreateImpactedCustomerDetails.ts new file mode 100644 index 0000000..4c4205c --- /dev/null +++ b/src/serialization/types/CreateImpactedCustomerDetails.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"; + +export const CreateImpactedCustomerDetails: core.serialization.ObjectSchema< + serializers.CreateImpactedCustomerDetails.Raw, + DevRev.CreateImpactedCustomerDetails +> = core.serialization.object({ + count: core.serialization.number().optional(), + customerIds: core.serialization.property( + "customer_ids", + core.serialization.list(core.serialization.string()).optional() + ), +}); + +export declare namespace CreateImpactedCustomerDetails { + interface Raw { + count?: number | null; + customer_ids?: string[] | null; + } +} diff --git a/src/serialization/types/CustomLinkType.ts b/src/serialization/types/CustomLinkType.ts new file mode 100644 index 0000000..801a79e --- /dev/null +++ b/src/serialization/types/CustomLinkType.ts @@ -0,0 +1,15 @@ +/** + * 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 CustomLinkType: core.serialization.ObjectSchema<serializers.CustomLinkType.Raw, DevRev.CustomLinkType> = + AtomBase; + +export declare namespace CustomLinkType { + type Raw = AtomBase.Raw; +} diff --git a/src/serialization/types/CustomLinkTypeCreateResponse.ts b/src/serialization/types/CustomLinkTypeCreateResponse.ts new file mode 100644 index 0000000..ed998f3 --- /dev/null +++ b/src/serialization/types/CustomLinkTypeCreateResponse.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 { CustomLinkType } from "./CustomLinkType"; + +export const CustomLinkTypeCreateResponse: core.serialization.ObjectSchema< + serializers.CustomLinkTypeCreateResponse.Raw, + DevRev.CustomLinkTypeCreateResponse +> = core.serialization.object({ + customLinkType: core.serialization.property("custom_link_type", CustomLinkType), +}); + +export declare namespace CustomLinkTypeCreateResponse { + interface Raw { + custom_link_type: CustomLinkType.Raw; + } +} diff --git a/src/serialization/types/CustomLinkTypeGetResponse.ts b/src/serialization/types/CustomLinkTypeGetResponse.ts new file mode 100644 index 0000000..700176a --- /dev/null +++ b/src/serialization/types/CustomLinkTypeGetResponse.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 { CustomLinkType } from "./CustomLinkType"; + +export const CustomLinkTypeGetResponse: core.serialization.ObjectSchema< + serializers.CustomLinkTypeGetResponse.Raw, + DevRev.CustomLinkTypeGetResponse +> = core.serialization.object({ + customLinkType: core.serialization.property("custom_link_type", CustomLinkType), +}); + +export declare namespace CustomLinkTypeGetResponse { + interface Raw { + custom_link_type: CustomLinkType.Raw; + } +} diff --git a/src/serialization/types/CustomLinkTypeListResponse.ts b/src/serialization/types/CustomLinkTypeListResponse.ts new file mode 100644 index 0000000..458c4da --- /dev/null +++ b/src/serialization/types/CustomLinkTypeListResponse.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 { CustomLinkType } from "./CustomLinkType"; + +export const CustomLinkTypeListResponse: core.serialization.ObjectSchema< + serializers.CustomLinkTypeListResponse.Raw, + DevRev.CustomLinkTypeListResponse +> = 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(CustomLinkType), +}); + +export declare namespace CustomLinkTypeListResponse { + interface Raw { + next_cursor?: string | null; + prev_cursor?: string | null; + result: CustomLinkType.Raw[]; + } +} diff --git a/src/serialization/types/CustomLinkTypeUpdateResponse.ts b/src/serialization/types/CustomLinkTypeUpdateResponse.ts new file mode 100644 index 0000000..b7726f1 --- /dev/null +++ b/src/serialization/types/CustomLinkTypeUpdateResponse.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 { CustomLinkType } from "./CustomLinkType"; + +export const CustomLinkTypeUpdateResponse: core.serialization.ObjectSchema< + serializers.CustomLinkTypeUpdateResponse.Raw, + DevRev.CustomLinkTypeUpdateResponse +> = core.serialization.object({ + customLinkType: core.serialization.property("custom_link_type", CustomLinkType), +}); + +export declare namespace CustomLinkTypeUpdateResponse { + interface Raw { + custom_link_type: CustomLinkType.Raw; + } +} diff --git a/src/serialization/types/DevUser.ts b/src/serialization/types/DevUser.ts index e7edf98..aa34d4d 100644 --- a/src/serialization/types/DevUser.ts +++ b/src/serialization/types/DevUser.ts @@ -12,6 +12,14 @@ import { UserBase } from "./UserBase"; export const DevUser: core.serialization.ObjectSchema<serializers.DevUser.Raw, DevRev.DevUser> = 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() + ), experienceStartDate: core.serialization.property("experience_start_date", core.serialization.date().optional()), externalIdentities: core.serialization.property( "external_identities", @@ -19,14 +27,23 @@ export const DevUser: core.serialization.ObjectSchema<serializers.DevUser.Raw, D ), jobHistory: core.serialization.property("job_history", core.serialization.list(JobHistoryItem).optional()), skills: core.serialization.list(UserSkill).optional(), + stockSchemaFragment: core.serialization.property( + "stock_schema_fragment", + core.serialization.string().optional() + ), + subtype: core.serialization.string().optional(), }) .extend(UserBase); export declare namespace DevUser { interface Raw extends UserBase.Raw { + custom_fields?: Record<string, unknown> | null; + custom_schema_fragments?: string[] | null; experience_start_date?: string | null; external_identities?: ExternalIdentity.Raw[] | null; job_history?: JobHistoryItem.Raw[] | null; skills?: UserSkill.Raw[] | null; + stock_schema_fragment?: string | null; + subtype?: string | null; } } diff --git a/src/serialization/types/DevUsersUpdateJobHistoryItem.ts b/src/serialization/types/DevUsersUpdateJobHistoryItem.ts new file mode 100644 index 0000000..30ae126 --- /dev/null +++ b/src/serialization/types/DevUsersUpdateJobHistoryItem.ts @@ -0,0 +1,30 @@ +/** + * 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 DevUsersUpdateJobHistoryItem: core.serialization.ObjectSchema< + serializers.DevUsersUpdateJobHistoryItem.Raw, + DevRev.DevUsersUpdateJobHistoryItem +> = core.serialization.object({ + employmentStatus: core.serialization.property("employment_status", core.serialization.number().optional()), + endDate: core.serialization.property("end_date", core.serialization.date().optional()), + isCurrent: core.serialization.property("is_current", core.serialization.boolean().optional()), + location: core.serialization.string().optional(), + startDate: core.serialization.property("start_date", core.serialization.date().optional()), + title: core.serialization.string().optional(), +}); + +export declare namespace DevUsersUpdateJobHistoryItem { + interface Raw { + employment_status?: number | null; + end_date?: string | null; + is_current?: boolean | null; + location?: string | null; + start_date?: string | null; + title?: string | null; + } +} diff --git a/src/serialization/types/EngagementType.ts b/src/serialization/types/EngagementType.ts index 54eee1a..b9a39df 100644 --- a/src/serialization/types/EngagementType.ts +++ b/src/serialization/types/EngagementType.ts @@ -7,8 +7,27 @@ import * as DevRev from "../../api/index"; import * as core from "../../core"; export const EngagementType: core.serialization.Schema<serializers.EngagementType.Raw, DevRev.EngagementType> = - core.serialization.enum_(["call", "default", "email", "linked_in", "meeting", "offline", "survey"]); + core.serialization.enum_([ + "call", + "conversation", + "custom", + "default", + "email", + "linked_in", + "meeting", + "offline", + "survey", + ]); export declare namespace EngagementType { - type Raw = "call" | "default" | "email" | "linked_in" | "meeting" | "offline" | "survey"; + type Raw = + | "call" + | "conversation" + | "custom" + | "default" + | "email" + | "linked_in" + | "meeting" + | "offline" + | "survey"; } diff --git a/src/serialization/types/GeneralPreferencesGroup.ts b/src/serialization/types/GeneralPreferencesGroup.ts new file mode 100644 index 0000000..66e03fa --- /dev/null +++ b/src/serialization/types/GeneralPreferencesGroup.ts @@ -0,0 +1,24 @@ +/** + * 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 { AvailabilityPreferencesGroup } from "./AvailabilityPreferencesGroup"; +import { GeneralPreferencesGroupPreferredLocale } from "./GeneralPreferencesGroupPreferredLocale"; + +export const GeneralPreferencesGroup: core.serialization.ObjectSchema< + serializers.GeneralPreferencesGroup.Raw, + DevRev.GeneralPreferencesGroup +> = core.serialization.object({ + availability: AvailabilityPreferencesGroup.optional(), + preferredLocale: core.serialization.property("preferred_locale", GeneralPreferencesGroupPreferredLocale.optional()), +}); + +export declare namespace GeneralPreferencesGroup { + interface Raw { + availability?: AvailabilityPreferencesGroup.Raw | null; + preferred_locale?: GeneralPreferencesGroupPreferredLocale.Raw | null; + } +} diff --git a/src/serialization/types/GeneralPreferencesGroupPreferredLocale.ts b/src/serialization/types/GeneralPreferencesGroupPreferredLocale.ts new file mode 100644 index 0000000..ea8948a --- /dev/null +++ b/src/serialization/types/GeneralPreferencesGroupPreferredLocale.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 GeneralPreferencesGroupPreferredLocale: core.serialization.Schema< + serializers.GeneralPreferencesGroupPreferredLocale.Raw, + DevRev.GeneralPreferencesGroupPreferredLocale +> = core.serialization.enum_(["en_us", "ja_jp"]); + +export declare namespace GeneralPreferencesGroupPreferredLocale { + type Raw = "en_us" | "ja_jp"; +} diff --git a/src/serialization/types/GroupIngestionSource.ts b/src/serialization/types/GroupIngestionSource.ts new file mode 100644 index 0000000..09b7c4f --- /dev/null +++ b/src/serialization/types/GroupIngestionSource.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 GroupIngestionSource: core.serialization.Schema< + serializers.GroupIngestionSource.Raw, + DevRev.GroupIngestionSource +> = core.serialization.enum_(["airdrop", "scim"]); + +export declare namespace GroupIngestionSource { + type Raw = "airdrop" | "scim"; +} diff --git a/src/serialization/types/ImpactedCustomerDetails.ts b/src/serialization/types/ImpactedCustomerDetails.ts new file mode 100644 index 0000000..61d20b1 --- /dev/null +++ b/src/serialization/types/ImpactedCustomerDetails.ts @@ -0,0 +1,24 @@ +/** + * 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 { EnumValue } from "./EnumValue"; +import { AccountSummary } from "./AccountSummary"; + +export const ImpactedCustomerDetails: core.serialization.ObjectSchema< + serializers.ImpactedCustomerDetails.Raw, + DevRev.ImpactedCustomerDetails +> = core.serialization.object({ + count: EnumValue.optional(), + customerIds: core.serialization.property("customer_ids", core.serialization.list(AccountSummary).optional()), +}); + +export declare namespace ImpactedCustomerDetails { + interface Raw { + count?: EnumValue.Raw | null; + customer_ids?: AccountSummary.Raw[] | null; + } +} diff --git a/src/serialization/types/Incident.ts b/src/serialization/types/Incident.ts index 1094d64..8cfbe31 100644 --- a/src/serialization/types/Incident.ts +++ b/src/serialization/types/Incident.ts @@ -7,6 +7,7 @@ import * as DevRev from "../../api/index"; import * as core from "../../core"; import { PartSummary } from "./PartSummary"; import { ArtifactSummary } from "./ArtifactSummary"; +import { ImpactedCustomerDetails } from "./ImpactedCustomerDetails"; import { AccountSummary } from "./AccountSummary"; import { UserSummary } from "./UserSummary"; import { EnumValue } from "./EnumValue"; @@ -16,6 +17,7 @@ import { AtomBase } from "./AtomBase"; export const Incident: core.serialization.ObjectSchema<serializers.Incident.Raw, DevRev.Incident> = core.serialization .object({ + acknowledgedDate: core.serialization.property("acknowledged_date", core.serialization.date().optional()), appliesToParts: core.serialization.property( "applies_to_parts", core.serialization.list(PartSummary).optional() @@ -30,14 +32,17 @@ export const Incident: core.serialization.ObjectSchema<serializers.Incident.Raw, "custom_schema_fragments", core.serialization.list(core.serialization.string()).optional() ), - identifiedAt: core.serialization.property("identified_at", core.serialization.date().optional()), + identifiedDate: core.serialization.property("identified_date", core.serialization.date().optional()), + impact: ImpactedCustomerDetails.optional(), impactedCustomers: core.serialization.property( "impacted_customers", core.serialization.list(AccountSummary).optional() ), + mitigatedDate: core.serialization.property("mitigated_date", core.serialization.date().optional()), ownedBy: core.serialization.property("owned_by", core.serialization.list(UserSummary).optional()), - resolvedAt: core.serialization.property("resolved_at", core.serialization.date().optional()), + reportedBy: core.serialization.property("reported_by", EnumValue.optional()), severity: EnumValue.optional(), + source: EnumValue.optional(), stage: Stage.optional(), stakeholders: core.serialization.list(UserSummary).optional(), stockSchemaFragment: core.serialization.property( @@ -53,16 +58,20 @@ export const Incident: core.serialization.ObjectSchema<serializers.Incident.Raw, export declare namespace Incident { interface Raw extends AtomBase.Raw { + acknowledged_date?: string | null; applies_to_parts?: PartSummary.Raw[] | null; artifacts?: ArtifactSummary.Raw[] | null; body?: string | null; custom_fields?: Record<string, unknown> | null; custom_schema_fragments?: string[] | null; - identified_at?: string | null; + identified_date?: string | null; + impact?: ImpactedCustomerDetails.Raw | null; impacted_customers?: AccountSummary.Raw[] | null; + mitigated_date?: string | null; owned_by?: UserSummary.Raw[] | null; - resolved_at?: string | null; + reported_by?: EnumValue.Raw | null; severity?: EnumValue.Raw | null; + source?: EnumValue.Raw | null; stage?: Stage.Raw | null; stakeholders?: UserSummary.Raw[] | null; stock_schema_fragment?: string | null; diff --git a/src/serialization/types/IncidentsGroup.ts b/src/serialization/types/IncidentsGroup.ts index 5163af0..a581578 100644 --- a/src/serialization/types/IncidentsGroup.ts +++ b/src/serialization/types/IncidentsGroup.ts @@ -10,7 +10,7 @@ import { Incident } from "./Incident"; export const IncidentsGroup: core.serialization.ObjectSchema<serializers.IncidentsGroup.Raw, DevRev.IncidentsGroup> = core.serialization.object({ incidents: core.serialization.list(Incident), - key: core.serialization.string(), + key: core.serialization.lazy(() => serializers.FieldValue), nextCursor: core.serialization.property("next_cursor", core.serialization.string().optional()), prevCursor: core.serialization.property("prev_cursor", core.serialization.string().optional()), }); @@ -18,7 +18,7 @@ export const IncidentsGroup: core.serialization.ObjectSchema<serializers.Inciden export declare namespace IncidentsGroup { interface Raw { incidents: Incident.Raw[]; - key: string; + key: serializers.FieldValue.Raw; next_cursor?: string | null; prev_cursor?: string | null; } diff --git a/src/serialization/types/LinkDescriptorFilter.ts b/src/serialization/types/LinkDescriptorFilter.ts new file mode 100644 index 0000000..9d419d0 --- /dev/null +++ b/src/serialization/types/LinkDescriptorFilter.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 { LinkTargetDescriptor } from "./LinkTargetDescriptor"; + +export const LinkDescriptorFilter: core.serialization.ObjectSchema< + serializers.LinkDescriptorFilter.Raw, + DevRev.LinkDescriptorFilter +> = core.serialization.object({ + linkDescriptors: core.serialization.property("link_descriptors", core.serialization.list(LinkTargetDescriptor)), +}); + +export declare namespace LinkDescriptorFilter { + interface Raw { + link_descriptors: LinkTargetDescriptor.Raw[]; + } +} diff --git a/src/serialization/types/LinkTargetDescriptor.ts b/src/serialization/types/LinkTargetDescriptor.ts new file mode 100644 index 0000000..58f3d74 --- /dev/null +++ b/src/serialization/types/LinkTargetDescriptor.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 LinkTargetDescriptor: core.serialization.Schema< + serializers.LinkTargetDescriptor.Raw, + DevRev.LinkTargetDescriptor +> = core.serialization.record(core.serialization.string(), core.serialization.unknown()); + +export declare namespace LinkTargetDescriptor { + type Raw = Record<string, unknown>; +} diff --git a/src/serialization/types/LinkType.ts b/src/serialization/types/LinkType.ts index 4d165ed..33a7a0a 100644 --- a/src/serialization/types/LinkType.ts +++ b/src/serialization/types/LinkType.ts @@ -11,6 +11,7 @@ export const LinkType: core.serialization.Schema<serializers.LinkType.Raw, DevRe "developed_with", "imports", "is_analyzed_by", + "is_converted_to", "is_dependent_on", "is_duplicate_of", "is_merged_into", @@ -26,6 +27,7 @@ export declare namespace LinkType { | "developed_with" | "imports" | "is_analyzed_by" + | "is_converted_to" | "is_dependent_on" | "is_duplicate_of" | "is_merged_into" diff --git a/src/serialization/types/Preferences.ts b/src/serialization/types/Preferences.ts new file mode 100644 index 0000000..9d7e092 --- /dev/null +++ b/src/serialization/types/Preferences.ts @@ -0,0 +1,26 @@ +/** + * 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 { UserPreferences } from "./UserPreferences"; + +export const Preferences: core.serialization.Schema<serializers.Preferences.Raw, DevRev.Preferences> = + core.serialization + .union("type", { + user_preferences: UserPreferences, + }) + .transform<DevRev.Preferences>({ + transform: (value) => value, + untransform: (value) => value, + }); + +export declare namespace Preferences { + type Raw = Preferences.UserPreferences; + + interface UserPreferences extends UserPreferences.Raw { + type: "user_preferences"; + } +} diff --git a/src/serialization/types/PreferencesBase.ts b/src/serialization/types/PreferencesBase.ts new file mode 100644 index 0000000..2ea96fa --- /dev/null +++ b/src/serialization/types/PreferencesBase.ts @@ -0,0 +1,15 @@ +/** + * 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 PreferencesBase: core.serialization.ObjectSchema<serializers.PreferencesBase.Raw, DevRev.PreferencesBase> = + AtomBase; + +export declare namespace PreferencesBase { + type Raw = AtomBase.Raw; +} diff --git a/src/serialization/types/PreferencesBaseSummary.ts b/src/serialization/types/PreferencesBaseSummary.ts new file mode 100644 index 0000000..847260e --- /dev/null +++ b/src/serialization/types/PreferencesBaseSummary.ts @@ -0,0 +1,17 @@ +/** + * 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 { AtomBaseSummary } from "./AtomBaseSummary"; + +export const PreferencesBaseSummary: core.serialization.ObjectSchema< + serializers.PreferencesBaseSummary.Raw, + DevRev.PreferencesBaseSummary +> = AtomBaseSummary; + +export declare namespace PreferencesBaseSummary { + type Raw = AtomBaseSummary.Raw; +} diff --git a/src/serialization/types/PreferencesGetResponse.ts b/src/serialization/types/PreferencesGetResponse.ts new file mode 100644 index 0000000..85c845e --- /dev/null +++ b/src/serialization/types/PreferencesGetResponse.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 { Preferences } from "./Preferences"; + +export const PreferencesGetResponse: core.serialization.ObjectSchema< + serializers.PreferencesGetResponse.Raw, + DevRev.PreferencesGetResponse +> = core.serialization.object({ + preference: Preferences, +}); + +export declare namespace PreferencesGetResponse { + interface Raw { + preference: Preferences.Raw; + } +} diff --git a/src/serialization/types/PreferencesType.ts b/src/serialization/types/PreferencesType.ts new file mode 100644 index 0000000..fca5648 --- /dev/null +++ b/src/serialization/types/PreferencesType.ts @@ -0,0 +1,14 @@ +/** + * 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 PreferencesType: core.serialization.Schema<serializers.PreferencesType.Raw, DevRev.PreferencesType> = + core.serialization.stringLiteral("user_preferences"); + +export declare namespace PreferencesType { + type Raw = "user_preferences"; +} diff --git a/src/serialization/types/RemoveTagWithValue.ts b/src/serialization/types/RemoveTagWithValue.ts new file mode 100644 index 0000000..a8aa695 --- /dev/null +++ b/src/serialization/types/RemoveTagWithValue.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 RemoveTagWithValue: core.serialization.ObjectSchema< + serializers.RemoveTagWithValue.Raw, + DevRev.RemoveTagWithValue +> = core.serialization.object({ + id: core.serialization.string(), +}); + +export declare namespace RemoveTagWithValue { + interface Raw { + id: string; + } +} diff --git a/src/serialization/types/SetSharedWithMembership.ts b/src/serialization/types/SetSharedWithMembership.ts index 1536b39..8dc433c 100644 --- a/src/serialization/types/SetSharedWithMembership.ts +++ b/src/serialization/types/SetSharedWithMembership.ts @@ -6,11 +6,17 @@ import * as serializers from "../index"; import * as DevRev from "../../api/index"; import * as core from "../../core"; -export const SetSharedWithMembership: core.serialization.Schema< +export const SetSharedWithMembership: core.serialization.ObjectSchema< serializers.SetSharedWithMembership.Raw, DevRev.SetSharedWithMembership -> = core.serialization.record(core.serialization.string(), core.serialization.unknown()); +> = core.serialization.object({ + member: core.serialization.string().optional(), + role: core.serialization.string().optional(), +}); export declare namespace SetSharedWithMembership { - type Raw = Record<string, unknown>; + interface Raw { + member?: string | null; + role?: string | null; + } } diff --git a/src/serialization/types/SharedWithMembershipFilter.ts b/src/serialization/types/SharedWithMembershipFilter.ts index 1447605..a7bde0c 100644 --- a/src/serialization/types/SharedWithMembershipFilter.ts +++ b/src/serialization/types/SharedWithMembershipFilter.ts @@ -6,11 +6,17 @@ import * as serializers from "../index"; import * as DevRev from "../../api/index"; import * as core from "../../core"; -export const SharedWithMembershipFilter: core.serialization.Schema< +export const SharedWithMembershipFilter: core.serialization.ObjectSchema< serializers.SharedWithMembershipFilter.Raw, DevRev.SharedWithMembershipFilter -> = core.serialization.record(core.serialization.string(), core.serialization.unknown()); +> = core.serialization.object({ + member: core.serialization.string().optional(), + role: core.serialization.string().optional(), +}); export declare namespace SharedWithMembershipFilter { - type Raw = Record<string, unknown>; + interface Raw { + member?: string | null; + role?: string | null; + } } diff --git a/src/serialization/types/SnapWidgetNamespace.ts b/src/serialization/types/SnapWidgetNamespace.ts index e60b33a..48c256b 100644 --- a/src/serialization/types/SnapWidgetNamespace.ts +++ b/src/serialization/types/SnapWidgetNamespace.ts @@ -9,8 +9,14 @@ import * as core from "../../core"; export const SnapWidgetNamespace: core.serialization.Schema< serializers.SnapWidgetNamespace.Raw, DevRev.SnapWidgetNamespace -> = core.serialization.enum_(["comment_suggestion_replies", "email_preview", "link_preview", "plug_nudge"]); +> = core.serialization.enum_([ + "ai_assistant_message", + "comment_suggestion_replies", + "email_preview", + "link_preview", + "plug_nudge", +]); export declare namespace SnapWidgetNamespace { - type Raw = "comment_suggestion_replies" | "email_preview" | "link_preview" | "plug_nudge"; + type Raw = "ai_assistant_message" | "comment_suggestion_replies" | "email_preview" | "link_preview" | "plug_nudge"; } diff --git a/src/serialization/types/Stage.ts b/src/serialization/types/Stage.ts index ef20420..550affa 100644 --- a/src/serialization/types/Stage.ts +++ b/src/serialization/types/Stage.ts @@ -5,12 +5,17 @@ import * as serializers from "../index"; import * as DevRev from "../../api/index"; import * as core from "../../core"; +import { CustomStageSummary } from "./CustomStageSummary"; +import { CustomStateSummary } from "./CustomStateSummary"; -export const Stage: core.serialization.Schema<serializers.Stage.Raw, DevRev.Stage> = core.serialization.record( - core.serialization.string(), - core.serialization.unknown() -); +export const Stage: core.serialization.ObjectSchema<serializers.Stage.Raw, DevRev.Stage> = core.serialization.object({ + stage: CustomStageSummary.optional(), + state: CustomStateSummary.optional(), +}); export declare namespace Stage { - type Raw = Record<string, unknown>; + interface Raw { + stage?: CustomStageSummary.Raw | null; + state?: CustomStateSummary.Raw | null; + } } diff --git a/src/serialization/types/Survey.ts b/src/serialization/types/Survey.ts index 7c2b59b..19acc58 100644 --- a/src/serialization/types/Survey.ts +++ b/src/serialization/types/Survey.ts @@ -12,6 +12,7 @@ import { AtomBase } from "./AtomBase"; export const Survey: core.serialization.ObjectSchema<serializers.Survey.Raw, DevRev.Survey> = core.serialization .object({ description: core.serialization.string().optional(), + header: core.serialization.string().optional(), introductoryText: core.serialization.property("introductory_text", core.serialization.string().optional()), name: core.serialization.string().optional(), responseText: core.serialization.property("response_text", core.serialization.string().optional()), @@ -20,16 +21,19 @@ export const Survey: core.serialization.ObjectSchema<serializers.Survey.Raw, Dev "schema_with_metadata", core.serialization.list(SurveyFieldWithMetadata).optional() ), + title: core.serialization.string().optional(), }) .extend(AtomBase); export declare namespace Survey { interface Raw extends AtomBase.Raw { description?: string | null; + header?: string | null; introductory_text?: string | null; name?: string | null; response_text?: string | null; schema?: SchemaFieldDescriptor.Raw[] | null; schema_with_metadata?: SurveyFieldWithMetadata.Raw[] | null; + title?: string | null; } } diff --git a/src/serialization/types/SyncMetadataFilter.ts b/src/serialization/types/SyncMetadataFilter.ts index b885ed9..cdb3316 100644 --- a/src/serialization/types/SyncMetadataFilter.ts +++ b/src/serialization/types/SyncMetadataFilter.ts @@ -12,6 +12,10 @@ export const SyncMetadataFilter: core.serialization.ObjectSchema< serializers.SyncMetadataFilter.Raw, DevRev.SyncMetadataFilter > = core.serialization.object({ + externalReference: core.serialization.property( + "external_reference", + core.serialization.list(core.serialization.string()).optional() + ), lastSyncIn: core.serialization.property("last_sync_in", SyncMetadataFilterSyncInFilter.optional()), lastSyncOut: core.serialization.property("last_sync_out", SyncMetadataFilterSyncOutFilter.optional()), originSystem: core.serialization.property( @@ -22,6 +26,7 @@ export const SyncMetadataFilter: core.serialization.ObjectSchema< export declare namespace SyncMetadataFilter { interface Raw { + external_reference?: string[] | null; last_sync_in?: SyncMetadataFilterSyncInFilter.Raw | null; last_sync_out?: SyncMetadataFilterSyncOutFilter.Raw | null; origin_system?: string[] | null; diff --git a/src/serialization/types/Ticket.ts b/src/serialization/types/Ticket.ts index 72fbe20..a1ac25e 100644 --- a/src/serialization/types/Ticket.ts +++ b/src/serialization/types/Ticket.ts @@ -20,6 +20,11 @@ export const Ticket: core.serialization.ObjectSchema<serializers.Ticket.Raw, Dev needsResponse: core.serialization.property("needs_response", core.serialization.boolean().optional()), revOrg: core.serialization.property("rev_org", OrgSummary.optional()), sentiment: EnumValue.optional(), + sentimentModifiedDate: core.serialization.property( + "sentiment_modified_date", + core.serialization.date().optional() + ), + sentimentSummary: core.serialization.property("sentiment_summary", core.serialization.string().optional()), severity: TicketSeverity.optional(), slaTracker: core.serialization.property("sla_tracker", SlaTrackerSummary.optional()), sourceChannel: core.serialization.property("source_channel", core.serialization.string().optional()), @@ -33,6 +38,8 @@ export declare namespace Ticket { needs_response?: boolean | null; rev_org?: OrgSummary.Raw | null; sentiment?: EnumValue.Raw | null; + sentiment_modified_date?: string | null; + sentiment_summary?: string | null; severity?: TicketSeverity.Raw | null; sla_tracker?: SlaTrackerSummary.Raw | null; source_channel?: string | null; diff --git a/src/serialization/types/TimelineCommentBodyType.ts b/src/serialization/types/TimelineCommentBodyType.ts index 0bbd5f8..9ed0ee3 100644 --- a/src/serialization/types/TimelineCommentBodyType.ts +++ b/src/serialization/types/TimelineCommentBodyType.ts @@ -9,8 +9,8 @@ import * as core from "../../core"; export const TimelineCommentBodyType: core.serialization.Schema< serializers.TimelineCommentBodyType.Raw, DevRev.TimelineCommentBodyType -> = core.serialization.enum_(["snap_kit", "snap_widget", "text"]); +> = core.serialization.enum_(["data", "snap_kit", "snap_widget", "text"]); export declare namespace TimelineCommentBodyType { - type Raw = "snap_kit" | "snap_widget" | "text"; + type Raw = "data" | "snap_kit" | "snap_widget" | "text"; } diff --git a/src/serialization/types/TimelineEntriesUpdateRequestTimelineComment.ts b/src/serialization/types/TimelineEntriesUpdateRequestTimelineComment.ts index 535c12d..c0c8c3f 100644 --- a/src/serialization/types/TimelineEntriesUpdateRequestTimelineComment.ts +++ b/src/serialization/types/TimelineEntriesUpdateRequestTimelineComment.ts @@ -17,6 +17,7 @@ export const TimelineEntriesUpdateRequestTimelineComment: core.serialization.Obj artifacts: TimelineEntriesUpdateRequestTimelineCommentArtifacts.optional(), body: core.serialization.string().optional(), bodyType: core.serialization.property("body_type", TimelineCommentBodyType.optional()), + externalRef: core.serialization.property("external_ref", core.serialization.string().optional()), linkPreviews: core.serialization.property( "link_previews", TimelineEntriesUpdateRequestTimelineCommentLinkPreviews.optional() @@ -29,6 +30,7 @@ export declare namespace TimelineEntriesUpdateRequestTimelineComment { artifacts?: TimelineEntriesUpdateRequestTimelineCommentArtifacts.Raw | null; body?: string | null; body_type?: TimelineCommentBodyType.Raw | null; + external_ref?: string | null; link_previews?: TimelineEntriesUpdateRequestTimelineCommentLinkPreviews.Raw | null; snap_kit_body?: TimelineSnapKitBody.Raw | null; } diff --git a/src/serialization/types/TimelineEntryPanel.ts b/src/serialization/types/TimelineEntryPanel.ts index 94907ca..1a354f8 100644 --- a/src/serialization/types/TimelineEntryPanel.ts +++ b/src/serialization/types/TimelineEntryPanel.ts @@ -9,8 +9,8 @@ import * as core from "../../core"; export const TimelineEntryPanel: core.serialization.Schema< serializers.TimelineEntryPanel.Raw, DevRev.TimelineEntryPanel -> = core.serialization.enum_(["customer_chat", "discussions", "events"]); +> = core.serialization.enum_(["alerts", "broadcasts", "customer_chat", "discussions", "events"]); export declare namespace TimelineEntryPanel { - type Raw = "customer_chat" | "discussions" | "events"; + type Raw = "alerts" | "broadcasts" | "customer_chat" | "discussions" | "events"; } diff --git a/src/serialization/types/UpdateImpactedCustomerDetails.ts b/src/serialization/types/UpdateImpactedCustomerDetails.ts new file mode 100644 index 0000000..c215df2 --- /dev/null +++ b/src/serialization/types/UpdateImpactedCustomerDetails.ts @@ -0,0 +1,23 @@ +/** + * 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 { UpdateImpactedCustomerDetailsCustomerIds } from "./UpdateImpactedCustomerDetailsCustomerIds"; + +export const UpdateImpactedCustomerDetails: core.serialization.ObjectSchema< + serializers.UpdateImpactedCustomerDetails.Raw, + DevRev.UpdateImpactedCustomerDetails +> = core.serialization.object({ + count: core.serialization.number().optional(), + customerIds: core.serialization.property("customer_ids", UpdateImpactedCustomerDetailsCustomerIds.optional()), +}); + +export declare namespace UpdateImpactedCustomerDetails { + interface Raw { + count?: number | null; + customer_ids?: UpdateImpactedCustomerDetailsCustomerIds.Raw | null; + } +} diff --git a/src/serialization/types/UpdateImpactedCustomerDetailsCustomerIds.ts b/src/serialization/types/UpdateImpactedCustomerDetailsCustomerIds.ts new file mode 100644 index 0000000..a8aa687 --- /dev/null +++ b/src/serialization/types/UpdateImpactedCustomerDetailsCustomerIds.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 UpdateImpactedCustomerDetailsCustomerIds: core.serialization.ObjectSchema< + serializers.UpdateImpactedCustomerDetailsCustomerIds.Raw, + DevRev.UpdateImpactedCustomerDetailsCustomerIds +> = core.serialization.object({ + set: core.serialization.list(core.serialization.string()).optional(), +}); + +export declare namespace UpdateImpactedCustomerDetailsCustomerIds { + interface Raw { + set?: string[] | null; + } +} diff --git a/src/serialization/types/UpdateIncidentPia.ts b/src/serialization/types/UpdateIncidentPia.ts new file mode 100644 index 0000000..7d17345 --- /dev/null +++ b/src/serialization/types/UpdateIncidentPia.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 UpdateIncidentPia: core.serialization.ObjectSchema< + serializers.UpdateIncidentPia.Raw, + DevRev.UpdateIncidentPia +> = core.serialization.object({ + set: core.serialization.list(core.serialization.string()).optional(), +}); + +export declare namespace UpdateIncidentPia { + interface Raw { + set?: string[] | null; + } +} diff --git a/src/serialization/types/UpdateIncidentPlaybooks.ts b/src/serialization/types/UpdateIncidentPlaybooks.ts new file mode 100644 index 0000000..202db9d --- /dev/null +++ b/src/serialization/types/UpdateIncidentPlaybooks.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 UpdateIncidentPlaybooks: core.serialization.ObjectSchema< + serializers.UpdateIncidentPlaybooks.Raw, + DevRev.UpdateIncidentPlaybooks +> = core.serialization.object({ + set: core.serialization.list(core.serialization.string()).optional(), +}); + +export declare namespace UpdateIncidentPlaybooks { + interface Raw { + set?: string[] | null; + } +} diff --git a/src/serialization/types/UpdateIncidentRelatedDocs.ts b/src/serialization/types/UpdateIncidentRelatedDocs.ts new file mode 100644 index 0000000..ac4a1e4 --- /dev/null +++ b/src/serialization/types/UpdateIncidentRelatedDocs.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 UpdateIncidentRelatedDocs: core.serialization.ObjectSchema< + serializers.UpdateIncidentRelatedDocs.Raw, + DevRev.UpdateIncidentRelatedDocs +> = core.serialization.object({ + set: core.serialization.list(core.serialization.string()).optional(), +}); + +export declare namespace UpdateIncidentRelatedDocs { + interface Raw { + set?: string[] | null; + } +} diff --git a/src/serialization/types/UpdateLinkTargetDescriptorList.ts b/src/serialization/types/UpdateLinkTargetDescriptorList.ts new file mode 100644 index 0000000..bec446b --- /dev/null +++ b/src/serialization/types/UpdateLinkTargetDescriptorList.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 { LinkTargetDescriptor } from "./LinkTargetDescriptor"; + +export const UpdateLinkTargetDescriptorList: core.serialization.ObjectSchema< + serializers.UpdateLinkTargetDescriptorList.Raw, + DevRev.UpdateLinkTargetDescriptorList +> = core.serialization.object({ + linkDescriptors: core.serialization.property("link_descriptors", core.serialization.list(LinkTargetDescriptor)), +}); + +export declare namespace UpdateLinkTargetDescriptorList { + interface Raw { + link_descriptors: LinkTargetDescriptor.Raw[]; + } +} diff --git a/src/serialization/types/UserPreferences.ts b/src/serialization/types/UserPreferences.ts new file mode 100644 index 0000000..0572d96 --- /dev/null +++ b/src/serialization/types/UserPreferences.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"; +import { GeneralPreferencesGroup } from "./GeneralPreferencesGroup"; +import { PreferencesBase } from "./PreferencesBase"; + +export const UserPreferences: core.serialization.ObjectSchema<serializers.UserPreferences.Raw, DevRev.UserPreferences> = + core.serialization + .object({ + generalPreferences: core.serialization.property("general_preferences", GeneralPreferencesGroup.optional()), + }) + .extend(PreferencesBase); + +export declare namespace UserPreferences { + interface Raw extends PreferencesBase.Raw { + general_preferences?: GeneralPreferencesGroup.Raw | null; + } +} diff --git a/src/serialization/types/UserPreferencesSummary.ts b/src/serialization/types/UserPreferencesSummary.ts new file mode 100644 index 0000000..d26dd9e --- /dev/null +++ b/src/serialization/types/UserPreferencesSummary.ts @@ -0,0 +1,17 @@ +/** + * 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 { PreferencesBaseSummary } from "./PreferencesBaseSummary"; + +export const UserPreferencesSummary: core.serialization.ObjectSchema< + serializers.UserPreferencesSummary.Raw, + DevRev.UserPreferencesSummary +> = PreferencesBaseSummary; + +export declare namespace UserPreferencesSummary { + type Raw = PreferencesBaseSummary.Raw; +} diff --git a/src/serialization/types/WebhookEventType.ts b/src/serialization/types/WebhookEventType.ts index 44e9dd5..43f202d 100644 --- a/src/serialization/types/WebhookEventType.ts +++ b/src/serialization/types/WebhookEventType.ts @@ -37,6 +37,12 @@ export const WebhookEventType: core.serialization.Schema<serializers.WebhookEven "sla_tracker_created", "sla_tracker_deleted", "sla_tracker_updated", + "survey_created", + "survey_deleted", + "survey_response_created", + "survey_response_deleted", + "survey_response_updated", + "survey_updated", "tag_created", "tag_deleted", "tag_updated", @@ -49,6 +55,7 @@ export const WebhookEventType: core.serialization.Schema<serializers.WebhookEven "webhook_updated", "work_created", "work_deleted", + "work_fetched", "work_updated", ]); @@ -83,6 +90,12 @@ export declare namespace WebhookEventType { | "sla_tracker_created" | "sla_tracker_deleted" | "sla_tracker_updated" + | "survey_created" + | "survey_deleted" + | "survey_response_created" + | "survey_response_deleted" + | "survey_response_updated" + | "survey_updated" | "tag_created" | "tag_deleted" | "tag_updated" @@ -95,5 +108,6 @@ export declare namespace WebhookEventType { | "webhook_updated" | "work_created" | "work_deleted" + | "work_fetched" | "work_updated"; } diff --git a/src/serialization/types/WebhooksFetchResponse.ts b/src/serialization/types/WebhooksFetchResponse.ts new file mode 100644 index 0000000..5428d16 --- /dev/null +++ b/src/serialization/types/WebhooksFetchResponse.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 WebhooksFetchResponse: core.serialization.Schema< + serializers.WebhooksFetchResponse.Raw, + DevRev.WebhooksFetchResponse +> = core.serialization.record(core.serialization.string(), core.serialization.unknown()); + +export declare namespace WebhooksFetchResponse { + type Raw = Record<string, unknown>; +} diff --git a/src/serialization/types/WorksUpdateRequestTags.ts b/src/serialization/types/WorksUpdateRequestTags.ts index 1efab71..d30e4ca 100644 --- a/src/serialization/types/WorksUpdateRequestTags.ts +++ b/src/serialization/types/WorksUpdateRequestTags.ts @@ -5,17 +5,23 @@ import * as serializers from "../index"; import * as DevRev from "../../api/index"; import * as core from "../../core"; +import { AddTagWithValue } from "./AddTagWithValue"; +import { RemoveTagWithValue } from "./RemoveTagWithValue"; import { SetTagWithValue } from "./SetTagWithValue"; export const WorksUpdateRequestTags: core.serialization.ObjectSchema< serializers.WorksUpdateRequestTags.Raw, DevRev.WorksUpdateRequestTags > = core.serialization.object({ + add: core.serialization.list(AddTagWithValue).optional(), + remove: core.serialization.list(RemoveTagWithValue).optional(), set: core.serialization.list(SetTagWithValue).optional(), }); export declare namespace WorksUpdateRequestTags { interface Raw { + add?: AddTagWithValue.Raw[] | null; + remove?: RemoveTagWithValue.Raw[] | null; set?: SetTagWithValue.Raw[] | null; } } diff --git a/src/serialization/types/WorksUpdateRequestTicket.ts b/src/serialization/types/WorksUpdateRequestTicket.ts index 11109a3..ea91b8a 100644 --- a/src/serialization/types/WorksUpdateRequestTicket.ts +++ b/src/serialization/types/WorksUpdateRequestTicket.ts @@ -17,6 +17,9 @@ export const WorksUpdateRequestTicket: core.serialization.ObjectSchema< isSpam: core.serialization.property("is_spam", core.serialization.boolean().optional()), needsResponse: core.serialization.property("needs_response", core.serialization.boolean().optional()), revOrg: core.serialization.property("rev_org", core.serialization.string().optional()), + sentiment: core.serialization.number().optional(), + sentimentModifiedDate: core.serialization.property("sentiment_modified_date", core.serialization.date().optional()), + sentimentSummary: core.serialization.property("sentiment_summary", core.serialization.string().optional()), severity: TicketSeverity.optional(), }); @@ -27,6 +30,9 @@ export declare namespace WorksUpdateRequestTicket { is_spam?: boolean | null; needs_response?: boolean | null; rev_org?: string | null; + sentiment?: number | null; + sentiment_modified_date?: string | null; + sentiment_summary?: string | null; severity?: TicketSeverity.Raw | null; } } diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index c76368d..d94e1ec 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -11,6 +11,7 @@ export * from "./AccountsGetResponse"; export * from "./AccountsListResponse"; export * from "./AccountsUpdateRequestArtifacts"; export * from "./AccountsUpdateResponse"; +export * from "./AddTagWithValue"; export * from "./AggregatedSchema"; export * from "./AggregatedSchemaGetResponse"; export * from "./AggregationDetail"; @@ -74,6 +75,7 @@ export * from "./AuthTokensOrgTraits"; export * from "./AuthTokensRevInfo"; export * from "./AuthTokensUpdateResponse"; export * from "./AuthTokensUserTraits"; +export * from "./AvailabilityPreferencesGroup"; export * from "./BooleanExpression"; export * from "./BooleanExpressionAndExpression"; export * from "./BooleanExpressionNotExpression"; @@ -96,6 +98,14 @@ export * from "./CodeChangesGetResponse"; export * from "./CodeChangesListResponse"; export * from "./CodeChangesUpdateResponse"; export * from "./CommentSearchSummary"; +export * from "./ContentTemplate"; +export * from "./ContentTemplateCreateRequest"; +export * from "./ContentTemplateCreateRequestNotificationContentTemplate"; +export * from "./ContentTemplateCreateRequestNotificationContentTemplateDefaultNotificationContentTemplate"; +export * from "./ContentTemplateCreateResponse"; +export * from "./ContentTemplateGetResponse"; +export * from "./ContentTemplateListResponse"; +export * from "./ContentTemplateType"; export * from "./Conversation"; export * from "./ConversationMetadata"; export * from "./ConversationSearchSummary"; @@ -116,11 +126,17 @@ export * from "./ConversationsUpdateResponse"; export * from "./CreateEmailInfo"; export * from "./CreateEmailInlineAttachment"; export * from "./CreateEmailPreviewWidget"; +export * from "./CreateImpactedCustomerDetails"; export * from "./CreateOrgScheduleInterval"; export * from "./CreateStage"; export * from "./CreateTagWithValue"; export * from "./CreateWeeklyOrgScheduleInterval"; export * from "./CuratedVistaSummary"; +export * from "./CustomLinkType"; +export * from "./CustomLinkTypeCreateResponse"; +export * from "./CustomLinkTypeGetResponse"; +export * from "./CustomLinkTypeListResponse"; +export * from "./CustomLinkTypeUpdateResponse"; export * from "./CustomObjectSearchSummary"; export * from "./CustomObjectSummary"; export * from "./CustomSchemaFragment"; @@ -176,6 +192,7 @@ export * from "./DevUsersIdentitiesUnlinkResponse"; export * from "./DevUsersListResponse"; export * from "./DevUsersSelfRequest"; export * from "./DevUsersSelfResponse"; +export * from "./DevUsersUpdateJobHistoryItem"; export * from "./DevUsersUpdateResponse"; export * from "./DirectorySummary"; export * from "./DynamicGroupInfo"; @@ -241,8 +258,11 @@ export * from "./FieldValueString"; export * from "./FieldValueStringList"; export * from "./FieldValueTagSummary"; export * from "./FieldValueTagSummaryList"; +export * from "./GeneralPreferencesGroup"; +export * from "./GeneralPreferencesGroupPreferredLocale"; export * from "./GenericNotificationEventType"; export * from "./Group"; +export * from "./GroupIngestionSource"; export * from "./GroupMemberType"; export * from "./GroupMembersAddResponse"; export * from "./GroupMembersListResponse"; @@ -259,6 +279,7 @@ export * from "./GroupsGetResponse"; export * from "./GroupsListResponse"; export * from "./GroupsUpdateRequestDynamicGroupInfo"; export * from "./GroupsUpdateResponse"; +export * from "./ImpactedCustomerDetails"; export * from "./Incident"; export * from "./IncidentsCreateResponse"; export * from "./IncidentsDeleteResponse"; @@ -277,11 +298,13 @@ export * from "./LegacyStage"; export * from "./LegacyStageSummary"; export * from "./LinesOfCode"; export * from "./Link"; +export * from "./LinkDescriptorFilter"; export * from "./LinkEndpointSummary"; export * from "./LinkEndpointType"; export * from "./LinkRevUserToRevOrgResponse"; export * from "./LinkSearchSummary"; export * from "./LinkSummary"; +export * from "./LinkTargetDescriptor"; export * from "./LinkType"; export * from "./LinksCreateResponse"; export * from "./LinksDeleteResponse"; @@ -352,6 +375,11 @@ export * from "./PartsUpdateRequestFeature"; export * from "./PartsUpdateRequestOwnedBy"; export * from "./PartsUpdateRequestProduct"; export * from "./PartsUpdateResponse"; +export * from "./Preferences"; +export * from "./PreferencesBase"; +export * from "./PreferencesBaseSummary"; +export * from "./PreferencesGetResponse"; +export * from "./PreferencesType"; export * from "./Product"; export * from "./ProductSummary"; export * from "./QuestionAnswer"; @@ -368,6 +396,7 @@ export * from "./QuestionAnswersUpdateRequestSharedWith"; export * from "./QuestionAnswersUpdateRequestSources"; export * from "./QuestionAnswersUpdateRequestTags"; export * from "./QuestionAnswersUpdateResponse"; +export * from "./RemoveTagWithValue"; export * from "./RemovedSlaMetricHistory"; export * from "./Resource"; export * from "./ResourceSummary"; @@ -589,15 +618,23 @@ export * from "./UomsGetResponse"; export * from "./UomsListResponse"; export * from "./UomsUpdateRequestDimensions"; export * from "./UomsUpdateResponse"; +export * from "./UpdateImpactedCustomerDetails"; +export * from "./UpdateImpactedCustomerDetailsCustomerIds"; export * from "./UpdateIncidentAppliesToParts"; export * from "./UpdateIncidentArtifacts"; export * from "./UpdateIncidentImpactedCustomers"; export * from "./UpdateIncidentOwnedBy"; +export * from "./UpdateIncidentPia"; +export * from "./UpdateIncidentPlaybooks"; +export * from "./UpdateIncidentRelatedDocs"; export * from "./UpdateIncidentStakeholders"; export * from "./UpdateIncidentTags"; +export * from "./UpdateLinkTargetDescriptorList"; export * from "./UpdateStage"; export * from "./UpdateTagWithValue"; export * from "./UserBase"; +export * from "./UserPreferences"; +export * from "./UserPreferencesSummary"; export * from "./UserSearchSummary"; export * from "./UserSkill"; export * from "./UserState"; @@ -614,6 +651,7 @@ export * from "./WebhookStatus"; export * from "./WebhookSummary"; export * from "./WebhooksCreateResponse"; export * from "./WebhooksDeleteResponse"; +export * from "./WebhooksFetchResponse"; export * from "./WebhooksGetResponse"; export * from "./WebhooksListRequest"; export * from "./WebhooksListResponse"; diff --git a/yarn.lock b/yarn.lock index 4f2d755..ce67c39 100644 --- a/yarn.lock +++ b/yarn.lock @@ -19,9 +19,9 @@ picocolors "^1.0.0" "@babel/compat-data@^7.25.2": - version "7.25.2" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.2.tgz#e41928bd33475305c586f6acbbb7e3ade7a6f7f5" - integrity sha512-bYcppcpKBvX4znYaPEeFau03bp89ShqNMLs+rmdptMw+heSZh9+z84d2YG+K7cYLbWwzdjtDoW/uqZmPjulClQ== + 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/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": version "7.25.2" @@ -44,12 +44,12 @@ json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.25.0", "@babel/generator@^7.7.2": - version "7.25.0" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.0.tgz#f858ddfa984350bc3d3b7f125073c9af6988f18e" - integrity sha512-3LEEcj3PVW8pW2R1SR1M89g/qrYk/m/mB/tLqn7dn4sbBUQyTqnlod+II2U4dqiGtUmkcnAmkMDralTFZttRiw== +"@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== dependencies: - "@babel/types" "^7.25.0" + "@babel/types" "^7.25.6" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" @@ -83,7 +83,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.8.0": +"@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== @@ -112,12 +112,12 @@ integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== "@babel/helpers@^7.25.0": - version "7.25.0" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.0.tgz#e69beb7841cb93a6505531ede34f34e6a073650a" - integrity sha512-MjgLZ42aCm0oGjJj8CtSM3DB8NOOf8h2l7DCTePJs29u+v7yO/RBX9nShlKMgFnRks/Q4tBAe7Hxnov9VkGwLw== + 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.0" + "@babel/types" "^7.25.6" "@babel/highlight@^7.24.7": version "7.24.7" @@ -129,12 +129,12 @@ 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.3": - version "7.25.3" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.3.tgz#91fb126768d944966263f0657ab222a642b82065" - integrity sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw== +"@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== dependencies: - "@babel/types" "^7.25.2" + "@babel/types" "^7.25.6" "@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.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.7.tgz#b4f9ea95a79e6912480c4b626739f86a076624ca" - integrity sha512-hbX+lKKeUMGihnK8nvKqmXBInriT3GVjzXKFriV3YC6APGxMbP8RZNFwy91+hocLXq90Mta+HshoB31802bb8A== + 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== dependencies: - "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/plugin-syntax-import-meta@^7.10.4": version "7.10.4" @@ -249,11 +249,11 @@ "@babel/helper-plugin-utils" "^7.14.5" "@babel/plugin-syntax-typescript@^7.7.2": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.24.7.tgz#58d458271b4d3b6bb27ee6ac9525acbb259bad1c" - integrity sha512-c/+fVeJBB0FeKsFvwytYiUD+LBvhHjGSI0g446PRGdSVGZLRNArBUno2PETbAly3tpiNAQR5XaZ+JslxkotsbA== + 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.7" + "@babel/helper-plugin-utils" "^7.24.8" "@babel/template@^7.25.0", "@babel/template@^7.3.3": version "7.25.0" @@ -265,22 +265,22 @@ "@babel/types" "^7.25.0" "@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2": - version "7.25.3" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.3.tgz#f1b901951c83eda2f3e29450ce92743783373490" - integrity sha512-HefgyP1x754oGCsKmV5reSmtV7IXj/kpaE1XYY+D9G5PvKKoFfSbiS4M77MdjuwlZKDIKFCffq9rPU+H/s3ZdQ== + 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.0" - "@babel/parser" "^7.25.3" + "@babel/generator" "^7.25.6" + "@babel/parser" "^7.25.6" "@babel/template" "^7.25.0" - "@babel/types" "^7.25.2" + "@babel/types" "^7.25.6" 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.3.3": - version "7.25.2" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.2.tgz#55fb231f7dc958cd69ea141a4c2997e819646125" - integrity sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q== +"@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== dependencies: "@babel/helper-string-parser" "^7.24.8" "@babel/helper-validator-identifier" "^7.24.7" @@ -640,9 +640,9 @@ form-data "^4.0.0" "@types/node@*": - version "22.4.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.4.1.tgz#9b595d292c65b94c20923159e2ce947731b6fdce" - integrity sha512-1tbpb9325+gPnKK0dMm+/LMriX0vKxf6RnB0SZUqfyVkQ4fMgUSySqhxE/y8Jvs4NyF1yHzTfG9KlnkIODxPKg== + version "22.7.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.0.tgz#670aa1874bc836863e5c116f9f2c32416ff27e1f" + integrity sha512-MOdOibwBs6KW1vfqz2uKMlxq5xAfAZ98SZjO8e3XnAbFnTJtAspqhWk7hrdSAs9/Y14ZWMiy7/MxMUzAOadYEw== dependencies: undici-types "~6.19.2" @@ -697,9 +697,9 @@ acorn-globals@^7.0.0: acorn-walk "^8.0.2" acorn-walk@^8.0.2: - version "8.3.3" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.3.tgz#9caeac29eefaa0c41e3d4c65137de4d6f34df43e" - integrity sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw== + version "8.3.4" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.4.tgz#794dd169c3977edf4ba4ea47583587c5866236b7" + integrity sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g== dependencies: acorn "^8.11.0" @@ -850,12 +850,12 @@ braces@^3.0.3: fill-range "^7.1.1" browserslist@^4.23.1: - version "4.23.3" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.3.tgz#debb029d3c93ebc97ffbc8d9cbb03403e227c800" - integrity sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA== + version "4.24.0" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.0.tgz#a1325fe4bc80b64fda169629fc01b3d6cecd38d4" + integrity sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A== dependencies: - caniuse-lite "^1.0.30001646" - electron-to-chromium "^1.5.4" + caniuse-lite "^1.0.30001663" + electron-to-chromium "^1.5.28" node-releases "^2.0.18" update-browserslist-db "^1.1.0" @@ -904,10 +904,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001646: - version "1.0.30001651" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001651.tgz#52de59529e8b02b1aedcaaf5c05d9e23c0c28138" - integrity sha512-9Cf+Xv1jJNe1xPZLGuUXLNkE1BoDkqRqYyFJ9TDYSqhduqA4hu4oR9HluGoWYQC/aj8WHjsGVV+bwkh0+tegRg== +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== chalk@^2.4.2: version "2.4.2" @@ -937,9 +937,9 @@ ci-info@^3.2.0: integrity sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ== cjs-module-lexer@^1.0.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.3.1.tgz#c485341ae8fd999ca4ee5af2d7a1c9ae01e0099c" - integrity sha512-a3KdPAANPbNE4ZUv9h6LckSl9zLsYOP4MBmhIPkRaeyybt+r4UghLvq+xw/YwUcC1gqylCkL4rdVs3Lwupjm4Q== + version "1.4.1" + resolved "https://registry.yarnpkg.com/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz#707413784dbb3a72aa11c2f2b042a0bef4004170" + integrity sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA== cliui@^8.0.1: version "8.0.1" @@ -1050,11 +1050,11 @@ data-urls@^3.0.2: whatwg-url "^11.0.0" debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: - version "4.3.6" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.6.tgz#2ab2c38fbaffebf8aa95fdfe6d88438c7a13c52b" - integrity sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg== + version "4.3.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.7.tgz#87945b4151a011d76d95a198d7111c865c360a52" + integrity sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ== dependencies: - ms "2.1.2" + ms "^2.1.3" decimal.js@^10.4.2: version "10.4.3" @@ -1102,10 +1102,10 @@ domexception@^4.0.0: dependencies: webidl-conversions "^7.0.0" -electron-to-chromium@^1.5.4: - version "1.5.11" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.11.tgz#258077f1077a1c72f2925cd5b326c470a7f5adef" - integrity sha512-R1CccCDYqndR25CaXFd6hp/u9RaaMcftMkphmvuepXr5b1vfLkRml6aWVeBhXJ7rbevHkKEMJtz8XqPf7ffmew== +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== emittery@^0.13.1: version "0.13.1" @@ -1142,9 +1142,9 @@ es-errors@^1.3.0: integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== escalade@^3.1.1, escalade@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" - integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== + version "3.2.0" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5" + integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA== escape-string-regexp@^1.0.5: version "1.0.5" @@ -1436,9 +1436,9 @@ is-arrayish@^0.2.1: integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== is-core-module@^2.13.0: - version "2.15.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.0.tgz#71c72ec5442ace7e76b306e9d48db361f22699ea" - integrity sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA== + version "2.15.1" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.1.tgz#a7363a25bee942fefab0de13bf6aa372c82dcc37" + integrity sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ== dependencies: hasown "^2.0.2" @@ -2021,9 +2021,9 @@ merge-stream@^2.0.0: integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== micromatch@^4.0.4: - version "4.0.7" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.7.tgz#33e8190d9fe474a9895525f5618eee136d46c2e5" - integrity sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q== + version "4.0.8" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.8.tgz#d66fa18f3a47076789320b9b1af32bd86d9fa202" + integrity sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA== dependencies: braces "^3.0.3" picomatch "^2.3.1" @@ -2052,10 +2052,10 @@ minimatch@^3.0.4, minimatch@^3.1.1: dependencies: brace-expansion "^1.1.7" -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== +ms@^2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== natural-compare@^1.4.0: version "1.4.0" @@ -2179,9 +2179,9 @@ path-parse@^1.0.7: integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== picocolors@^1.0.0, picocolors@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1" - integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew== + version "1.1.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" + integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw== picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1"