@devrev/typescript-sdk 1.1.14 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -609,6 +609,34 @@ export interface ArtifactsPrepareResponseFormData {
|
|
|
609
609
|
/** Value corresponding to the key. */
|
|
610
610
|
value: string;
|
|
611
611
|
}
|
|
612
|
+
/**
|
|
613
|
+
* artifacts-versions-prepare-request
|
|
614
|
+
* The request to prepare a new version of an artifact.
|
|
615
|
+
*/
|
|
616
|
+
export interface ArtifactsVersionsPrepareRequest {
|
|
617
|
+
/**
|
|
618
|
+
* The ID of the artifact to prepare a new version for.
|
|
619
|
+
* @example "don:core:<partition>:devo/<dev-org-id>:artifact/<artifact-id>"
|
|
620
|
+
*/
|
|
621
|
+
id: string;
|
|
622
|
+
}
|
|
623
|
+
/**
|
|
624
|
+
* artifacts-versions-prepare-response
|
|
625
|
+
* The response to preparing a new artifact version.
|
|
626
|
+
*/
|
|
627
|
+
export interface ArtifactsVersionsPrepareResponse {
|
|
628
|
+
/** The POST policy form data. */
|
|
629
|
+
form_data: ArtifactsVersionsPrepareResponseFormData[];
|
|
630
|
+
/** The URL that the file's data should be uploaded to. */
|
|
631
|
+
url: string;
|
|
632
|
+
}
|
|
633
|
+
/** artifacts-versions-prepare-response-form-data */
|
|
634
|
+
export interface ArtifactsVersionsPrepareResponseFormData {
|
|
635
|
+
/** Key of the form field. */
|
|
636
|
+
key: string;
|
|
637
|
+
/** Value corresponding to the key. */
|
|
638
|
+
value: string;
|
|
639
|
+
}
|
|
612
640
|
/** atom-base */
|
|
613
641
|
export interface AtomBase {
|
|
614
642
|
created_by?: UserSummary;
|
|
@@ -2055,6 +2083,42 @@ export declare enum ListMode {
|
|
|
2055
2083
|
After = "after",
|
|
2056
2084
|
Before = "before"
|
|
2057
2085
|
}
|
|
2086
|
+
/** metric-data-point */
|
|
2087
|
+
export interface MetricDataPoint {
|
|
2088
|
+
/**
|
|
2089
|
+
* Key-value pairs for specifying additional attributes.
|
|
2090
|
+
* @maxItems 10
|
|
2091
|
+
*/
|
|
2092
|
+
dimensions?: MetricDataPointDimension[];
|
|
2093
|
+
/**
|
|
2094
|
+
* Timestamp when metric value is captured.
|
|
2095
|
+
* @format date-time
|
|
2096
|
+
*/
|
|
2097
|
+
timestamp: string;
|
|
2098
|
+
/**
|
|
2099
|
+
* The value corresponding to the metric. For simply recording
|
|
2100
|
+
* occurrence of an event, this value should be 1.0.
|
|
2101
|
+
* @format double
|
|
2102
|
+
*/
|
|
2103
|
+
value: number;
|
|
2104
|
+
}
|
|
2105
|
+
/** metric-data-point-dimension */
|
|
2106
|
+
export interface MetricDataPointDimension {
|
|
2107
|
+
/**
|
|
2108
|
+
* The key for the dimension. The keys must be unique and it is not
|
|
2109
|
+
* allowed to have more than one value with the same key. Key must be
|
|
2110
|
+
* at least one character long and cannot be longer than 64
|
|
2111
|
+
* characters.Key can only contain alphanumeric characters (A-Z, a-z,
|
|
2112
|
+
* and 0-9) and underscores (_). Key cannot start with a number and is
|
|
2113
|
+
* case-insensitive.
|
|
2114
|
+
*/
|
|
2115
|
+
key: string;
|
|
2116
|
+
/**
|
|
2117
|
+
* The value for the dimension. Value could be any string and cannot
|
|
2118
|
+
* be longer than 256 characters.
|
|
2119
|
+
*/
|
|
2120
|
+
value: string;
|
|
2121
|
+
}
|
|
2058
2122
|
/** metric-definition */
|
|
2059
2123
|
export type MetricDefinition = AtomBase;
|
|
2060
2124
|
/** The list of item types on which the metric might be applied. */
|
|
@@ -2114,6 +2178,41 @@ export interface MetricDefinitionsListResponse {
|
|
|
2114
2178
|
*/
|
|
2115
2179
|
prev_cursor?: string;
|
|
2116
2180
|
}
|
|
2181
|
+
/** metrics-data */
|
|
2182
|
+
export interface MetricsData {
|
|
2183
|
+
/**
|
|
2184
|
+
* One or more data points collected for a given metric such as object
|
|
2185
|
+
* usage, object state etc.
|
|
2186
|
+
* @minItems 1
|
|
2187
|
+
*/
|
|
2188
|
+
data_points: MetricDataPoint[];
|
|
2189
|
+
/**
|
|
2190
|
+
* Name of the metric which is being measured. For example,
|
|
2191
|
+
* num_api_calls, num_active_users, etc.
|
|
2192
|
+
*/
|
|
2193
|
+
name: string;
|
|
2194
|
+
/**
|
|
2195
|
+
* Rev Org ID or external_ref for which metric is being published.Rev
|
|
2196
|
+
* Org ID is DevRev DON ID. For example,
|
|
2197
|
+
* don:identity:dvrv-us-1:devo/0:revo/156. External_ref is the
|
|
2198
|
+
* identification of DevRev customer's customers and maintained by
|
|
2199
|
+
* DevRev's customers. Devrev will internally resolve external_ref to
|
|
2200
|
+
* Rev Org ID and use it for further processing. For example,
|
|
2201
|
+
* external_ref=org_customer_1 may resolve to
|
|
2202
|
+
* don:identity:dvrv-us-1:devo/0:revo/155.
|
|
2203
|
+
*/
|
|
2204
|
+
org_ref?: string;
|
|
2205
|
+
/** Rev User ID or user ref for which metric is being published. */
|
|
2206
|
+
user_ref?: string;
|
|
2207
|
+
}
|
|
2208
|
+
/** metrics-data-ingest-request */
|
|
2209
|
+
export interface MetricsDataIngestRequest {
|
|
2210
|
+
/**
|
|
2211
|
+
* Metrics data received from Dev orgs.
|
|
2212
|
+
* @minItems 1
|
|
2213
|
+
*/
|
|
2214
|
+
metrics: MetricsData[];
|
|
2215
|
+
}
|
|
2117
2216
|
/** opportunity */
|
|
2118
2217
|
export type Opportunity = WorkBase;
|
|
2119
2218
|
/** Forecast category of the opportunity. */
|
|
@@ -2508,6 +2607,198 @@ export declare enum PartType {
|
|
|
2508
2607
|
Feature = "feature",
|
|
2509
2608
|
Product = "product"
|
|
2510
2609
|
}
|
|
2610
|
+
/** parts-create-request */
|
|
2611
|
+
export type PartsCreateRequest = (PartsCreateRequestCapability | PartsCreateRequestEnhancement | PartsCreateRequestFeature | PartsCreateRequestProduct) & {
|
|
2612
|
+
/**
|
|
2613
|
+
* The IDs of the artifacts.
|
|
2614
|
+
* @example ["don:core:<partition>:devo/<dev-org-id>:artifact/<artifact-id>"]
|
|
2615
|
+
*/
|
|
2616
|
+
artifacts?: string[];
|
|
2617
|
+
/** Custom fields. */
|
|
2618
|
+
custom_fields?: object;
|
|
2619
|
+
/**
|
|
2620
|
+
* The custom schema fragments to use.
|
|
2621
|
+
* @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
|
|
2622
|
+
*/
|
|
2623
|
+
custom_schema_fragments?: string[];
|
|
2624
|
+
/** Description of the part. */
|
|
2625
|
+
description?: string;
|
|
2626
|
+
/** Name of the part. */
|
|
2627
|
+
name: string;
|
|
2628
|
+
/**
|
|
2629
|
+
* The users that own the part.
|
|
2630
|
+
* @example ["don:identity:<partition>:devo/<dev-org-id>:devu/<dev-user-id>"]
|
|
2631
|
+
*/
|
|
2632
|
+
owned_by: string[];
|
|
2633
|
+
type: PartType;
|
|
2634
|
+
};
|
|
2635
|
+
/** parts-create-request-capability */
|
|
2636
|
+
export interface PartsCreateRequestCapability {
|
|
2637
|
+
/**
|
|
2638
|
+
* ID of the parent product for the capability.
|
|
2639
|
+
* @maxItems 1
|
|
2640
|
+
* @example ["don:core:<partition>:devo/<dev-org-id>:<part-type>/<part-id>"]
|
|
2641
|
+
*/
|
|
2642
|
+
parent_part: string[];
|
|
2643
|
+
}
|
|
2644
|
+
/** parts-create-request-enhancement */
|
|
2645
|
+
export interface PartsCreateRequestEnhancement {
|
|
2646
|
+
/**
|
|
2647
|
+
* ID of the parent part on which the enhancement is to be created.
|
|
2648
|
+
* @maxItems 1
|
|
2649
|
+
* @example ["don:core:<partition>:devo/<dev-org-id>:<part-type>/<part-id>"]
|
|
2650
|
+
*/
|
|
2651
|
+
parent_part: string[];
|
|
2652
|
+
/**
|
|
2653
|
+
* Target close date by which enhancement is expected to be closed.
|
|
2654
|
+
* @format date-time
|
|
2655
|
+
*/
|
|
2656
|
+
target_close_date?: string;
|
|
2657
|
+
}
|
|
2658
|
+
/** parts-create-request-feature */
|
|
2659
|
+
export interface PartsCreateRequestFeature {
|
|
2660
|
+
/**
|
|
2661
|
+
* ID of the parent capability/feature for the feature.
|
|
2662
|
+
* @maxItems 1
|
|
2663
|
+
* @example ["don:core:<partition>:devo/<dev-org-id>:<part-type>/<part-id>"]
|
|
2664
|
+
*/
|
|
2665
|
+
parent_part: string[];
|
|
2666
|
+
}
|
|
2667
|
+
/** parts-create-request-product */
|
|
2668
|
+
export type PartsCreateRequestProduct = object;
|
|
2669
|
+
/** parts-create-response */
|
|
2670
|
+
export interface PartsCreateResponse {
|
|
2671
|
+
part: Part;
|
|
2672
|
+
}
|
|
2673
|
+
/** parts-delete-request */
|
|
2674
|
+
export interface PartsDeleteRequest {
|
|
2675
|
+
/**
|
|
2676
|
+
* The ID of the part to delete.
|
|
2677
|
+
* @example "don:core:<partition>:devo/<dev-org-id>:<part-type>/<part-id>"
|
|
2678
|
+
*/
|
|
2679
|
+
id: string;
|
|
2680
|
+
}
|
|
2681
|
+
/** parts-delete-response */
|
|
2682
|
+
export type PartsDeleteResponse = object;
|
|
2683
|
+
/** parts-get-request */
|
|
2684
|
+
export interface PartsGetRequest {
|
|
2685
|
+
/**
|
|
2686
|
+
* The ID of the part to retrieve.
|
|
2687
|
+
* @example "don:core:<partition>:devo/<dev-org-id>:<part-type>/<part-id>"
|
|
2688
|
+
*/
|
|
2689
|
+
id: string;
|
|
2690
|
+
}
|
|
2691
|
+
/** parts-get-response */
|
|
2692
|
+
export interface PartsGetResponse {
|
|
2693
|
+
part: Part;
|
|
2694
|
+
}
|
|
2695
|
+
/** parts-list-request */
|
|
2696
|
+
export interface PartsListRequest {
|
|
2697
|
+
/**
|
|
2698
|
+
* Filters for parts created by any of these users.
|
|
2699
|
+
* @example ["don:identity:<partition>:devo/<dev-org-id>:devu/<dev-user-id>"]
|
|
2700
|
+
*/
|
|
2701
|
+
created_by?: string[];
|
|
2702
|
+
/**
|
|
2703
|
+
* The cursor to resume iteration from. If not provided, then
|
|
2704
|
+
* iteration starts from the beginning.
|
|
2705
|
+
*/
|
|
2706
|
+
cursor?: string;
|
|
2707
|
+
/**
|
|
2708
|
+
* The maximum number of parts to return. The default is '50'.
|
|
2709
|
+
* @format int32
|
|
2710
|
+
*/
|
|
2711
|
+
limit?: number;
|
|
2712
|
+
/**
|
|
2713
|
+
* The iteration mode to use. If "after", then entries after the provided
|
|
2714
|
+
* cursor will be returned, or if no cursor is provided, then from the
|
|
2715
|
+
* beginning. If "before", then entries before the provided cursor will be
|
|
2716
|
+
* returned, or if no cursor is provided, then from the end. Entries will
|
|
2717
|
+
* always be returned in the specified sort-by order.
|
|
2718
|
+
*/
|
|
2719
|
+
mode?: ListMode;
|
|
2720
|
+
/** Filters for parts of the provided name(s). */
|
|
2721
|
+
name?: string[];
|
|
2722
|
+
/**
|
|
2723
|
+
* Filters for parts owned by any of these users.
|
|
2724
|
+
* @example ["don:identity:<partition>:devo/<dev-org-id>:devu/<dev-user-id>"]
|
|
2725
|
+
*/
|
|
2726
|
+
owned_by?: string[];
|
|
2727
|
+
/** Filters for parts of the provided type(s). */
|
|
2728
|
+
type?: PartType[];
|
|
2729
|
+
}
|
|
2730
|
+
/** parts-list-response */
|
|
2731
|
+
export interface PartsListResponse {
|
|
2732
|
+
/**
|
|
2733
|
+
* The cursor used to iterate subsequent results in accordance to the
|
|
2734
|
+
* sort order. If not set, then no later elements exist.
|
|
2735
|
+
*/
|
|
2736
|
+
next_cursor?: string;
|
|
2737
|
+
/** The list of parts. */
|
|
2738
|
+
parts: Part[];
|
|
2739
|
+
/**
|
|
2740
|
+
* The cursor used to iterate preceding results in accordance to the
|
|
2741
|
+
* sort order. If not set, then no prior elements exist.
|
|
2742
|
+
*/
|
|
2743
|
+
prev_cursor?: string;
|
|
2744
|
+
}
|
|
2745
|
+
/** parts-update-request */
|
|
2746
|
+
export type PartsUpdateRequest = (Empty | PartsUpdateRequestCapability | PartsUpdateRequestEnhancement | PartsUpdateRequestFeature | PartsUpdateRequestProduct) & {
|
|
2747
|
+
artifacts?: PartsUpdateRequestArtifacts;
|
|
2748
|
+
/** Custom fields. */
|
|
2749
|
+
custom_fields?: object;
|
|
2750
|
+
/**
|
|
2751
|
+
* The custom schema fragments to use.
|
|
2752
|
+
* @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
|
|
2753
|
+
*/
|
|
2754
|
+
custom_schema_fragments?: string[];
|
|
2755
|
+
/** The updated description of the part. */
|
|
2756
|
+
description?: string;
|
|
2757
|
+
/**
|
|
2758
|
+
* The ID of the part to update.
|
|
2759
|
+
* @example "don:core:<partition>:devo/<dev-org-id>:<part-type>/<part-id>"
|
|
2760
|
+
*/
|
|
2761
|
+
id: string;
|
|
2762
|
+
/** The updated name of the part. */
|
|
2763
|
+
name?: string;
|
|
2764
|
+
owned_by?: PartsUpdateRequestOwnedBy;
|
|
2765
|
+
type?: PartType;
|
|
2766
|
+
};
|
|
2767
|
+
/** parts-update-request-artifacts */
|
|
2768
|
+
export interface PartsUpdateRequestArtifacts {
|
|
2769
|
+
/**
|
|
2770
|
+
* Sets the artifacts to the provided IDs.
|
|
2771
|
+
* @example ["don:core:<partition>:devo/<dev-org-id>:artifact/<artifact-id>"]
|
|
2772
|
+
*/
|
|
2773
|
+
set?: string[];
|
|
2774
|
+
}
|
|
2775
|
+
/** parts-update-request-capability */
|
|
2776
|
+
export type PartsUpdateRequestCapability = object;
|
|
2777
|
+
/** parts-update-request-enhancement */
|
|
2778
|
+
export interface PartsUpdateRequestEnhancement {
|
|
2779
|
+
/**
|
|
2780
|
+
* Updates the target close date of the enhancement.
|
|
2781
|
+
* @format date-time
|
|
2782
|
+
*/
|
|
2783
|
+
target_close_date?: string;
|
|
2784
|
+
}
|
|
2785
|
+
/** parts-update-request-feature */
|
|
2786
|
+
export type PartsUpdateRequestFeature = object;
|
|
2787
|
+
/** parts-update-request-owned-by */
|
|
2788
|
+
export interface PartsUpdateRequestOwnedBy {
|
|
2789
|
+
/**
|
|
2790
|
+
* Sets the owner IDs to the provided user IDs. This must not be
|
|
2791
|
+
* empty.
|
|
2792
|
+
* @example ["don:identity:<partition>:devo/<dev-org-id>:devu/<dev-user-id>"]
|
|
2793
|
+
*/
|
|
2794
|
+
set?: string[];
|
|
2795
|
+
}
|
|
2796
|
+
/** parts-update-request-product */
|
|
2797
|
+
export type PartsUpdateRequestProduct = object;
|
|
2798
|
+
/** parts-update-response */
|
|
2799
|
+
export interface PartsUpdateResponse {
|
|
2800
|
+
part: Part;
|
|
2801
|
+
}
|
|
2511
2802
|
/** product */
|
|
2512
2803
|
export type Product = PartBase;
|
|
2513
2804
|
/** product-summary */
|
|
@@ -4826,7 +5117,7 @@ export type WorksUpdateRequest = (Empty | WorksUpdateRequestIssue | WorksUpdateR
|
|
|
4826
5117
|
* Updates the timestamp for when the work is expected to be complete.
|
|
4827
5118
|
* @format date-time
|
|
4828
5119
|
*/
|
|
4829
|
-
target_close_date?: string;
|
|
5120
|
+
target_close_date?: string | null;
|
|
4830
5121
|
/** Updated title of the work object, or unchanged if not provided. */
|
|
4831
5122
|
title?: string;
|
|
4832
5123
|
type?: WorkType;
|
|
@@ -5314,6 +5605,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5314
5605
|
* @secure
|
|
5315
5606
|
*/
|
|
5316
5607
|
artifactsPrepare: (data: ArtifactsPrepareRequest, params?: RequestParams) => Promise<AxiosResponse<ArtifactsPrepareResponse, any>>;
|
|
5608
|
+
/**
|
|
5609
|
+
* @description Prepares a new version for an artifact, returning the URL and form data to upload the updated file.
|
|
5610
|
+
*
|
|
5611
|
+
* @tags artifacts
|
|
5612
|
+
* @name ArtifactsVersionsPrepare
|
|
5613
|
+
* @request POST:/artifacts.versions.prepare
|
|
5614
|
+
* @secure
|
|
5615
|
+
*/
|
|
5616
|
+
artifactsVersionsPrepare: (data: ArtifactsVersionsPrepareRequest, params?: RequestParams) => Promise<AxiosResponse<ArtifactsVersionsPrepareResponse, any>>;
|
|
5317
5617
|
/**
|
|
5318
5618
|
* @description Creates a conversation.
|
|
5319
5619
|
*
|
|
@@ -5892,6 +6192,15 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
5892
6192
|
* @secure
|
|
5893
6193
|
*/
|
|
5894
6194
|
metricDefinitionsListPost: (data: MetricDefinitionsListRequest, params?: RequestParams) => Promise<AxiosResponse<MetricDefinitionsListResponse, any>>;
|
|
6195
|
+
/**
|
|
6196
|
+
* @description Ingest endpoint for DevRev metrics data from clients.
|
|
6197
|
+
*
|
|
6198
|
+
* @tags telemetry
|
|
6199
|
+
* @name MetricsDevrevIngest
|
|
6200
|
+
* @request POST:/metrics.devrev.ingest
|
|
6201
|
+
* @secure
|
|
6202
|
+
*/
|
|
6203
|
+
metricsDevrevIngest: (data: MetricsDataIngestRequest, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
|
|
5895
6204
|
/**
|
|
5896
6205
|
* @description Creates an organization schedule fragment.
|
|
5897
6206
|
*
|
|
@@ -6027,6 +6336,105 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
6027
6336
|
* @secure
|
|
6028
6337
|
*/
|
|
6029
6338
|
orgSchedulesUpdate: (data: OrgSchedulesUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<OrgSchedulesUpdateResponse, any>>;
|
|
6339
|
+
/**
|
|
6340
|
+
* @description Creates new [part](https://devrev.ai/docs/product/parts).
|
|
6341
|
+
*
|
|
6342
|
+
* @tags parts
|
|
6343
|
+
* @name PartsCreate
|
|
6344
|
+
* @request POST:/parts.create
|
|
6345
|
+
* @secure
|
|
6346
|
+
*/
|
|
6347
|
+
partsCreate: (data: PartsCreateRequest, params?: RequestParams) => Promise<AxiosResponse<PartsCreateResponse, any>>;
|
|
6348
|
+
/**
|
|
6349
|
+
* @description Deletes a [part](https://devrev.ai/docs/product/parts).
|
|
6350
|
+
*
|
|
6351
|
+
* @tags parts
|
|
6352
|
+
* @name PartsDelete
|
|
6353
|
+
* @request POST:/parts.delete
|
|
6354
|
+
* @secure
|
|
6355
|
+
*/
|
|
6356
|
+
partsDelete: (data: PartsDeleteRequest, params?: RequestParams) => Promise<AxiosResponse<object, any>>;
|
|
6357
|
+
/**
|
|
6358
|
+
* @description Gets a [part's](https://devrev.ai/docs/product/parts) information.
|
|
6359
|
+
*
|
|
6360
|
+
* @tags parts
|
|
6361
|
+
* @name PartsGet
|
|
6362
|
+
* @request GET:/parts.get
|
|
6363
|
+
* @secure
|
|
6364
|
+
*/
|
|
6365
|
+
partsGet: (query: {
|
|
6366
|
+
/**
|
|
6367
|
+
* The ID of the part to retrieve.
|
|
6368
|
+
* @example "don:core:<partition>:devo/<dev-org-id>:<part-type>/<part-id>"
|
|
6369
|
+
*/
|
|
6370
|
+
id: string;
|
|
6371
|
+
}, params?: RequestParams) => Promise<AxiosResponse<PartsGetResponse, any>>;
|
|
6372
|
+
/**
|
|
6373
|
+
* @description Gets a [part's](https://devrev.ai/docs/product/parts) information.
|
|
6374
|
+
*
|
|
6375
|
+
* @tags parts
|
|
6376
|
+
* @name PartsGetPost
|
|
6377
|
+
* @request POST:/parts.get
|
|
6378
|
+
* @secure
|
|
6379
|
+
*/
|
|
6380
|
+
partsGetPost: (data: PartsGetRequest, params?: RequestParams) => Promise<AxiosResponse<PartsGetResponse, any>>;
|
|
6381
|
+
/**
|
|
6382
|
+
* @description Lists a collection of [parts](https://devrev.ai/docs/product/parts).
|
|
6383
|
+
*
|
|
6384
|
+
* @tags parts
|
|
6385
|
+
* @name PartsList
|
|
6386
|
+
* @request GET:/parts.list
|
|
6387
|
+
* @secure
|
|
6388
|
+
*/
|
|
6389
|
+
partsList: (query?: {
|
|
6390
|
+
/**
|
|
6391
|
+
* Filters for parts created by any of these users.
|
|
6392
|
+
* @example ["don:identity:<partition>:devo/<dev-org-id>:devu/<dev-user-id>"]
|
|
6393
|
+
*/
|
|
6394
|
+
created_by?: string[];
|
|
6395
|
+
/**
|
|
6396
|
+
* The cursor to resume iteration from. If not provided, then iteration
|
|
6397
|
+
* starts from the beginning.
|
|
6398
|
+
*/
|
|
6399
|
+
cursor?: string;
|
|
6400
|
+
/**
|
|
6401
|
+
* The maximum number of parts to return. The default is '50'.
|
|
6402
|
+
* @format int32
|
|
6403
|
+
*/
|
|
6404
|
+
limit?: number;
|
|
6405
|
+
/**
|
|
6406
|
+
* The iteration mode to use, otherwise if not set, then "after" is
|
|
6407
|
+
* used.
|
|
6408
|
+
*/
|
|
6409
|
+
mode?: ListMode;
|
|
6410
|
+
/** Filters for parts of the provided name(s). */
|
|
6411
|
+
name?: string[];
|
|
6412
|
+
/**
|
|
6413
|
+
* Filters for parts owned by any of these users.
|
|
6414
|
+
* @example ["don:identity:<partition>:devo/<dev-org-id>:devu/<dev-user-id>"]
|
|
6415
|
+
*/
|
|
6416
|
+
owned_by?: string[];
|
|
6417
|
+
/** Filters for parts of the provided type(s). */
|
|
6418
|
+
type?: PartType[];
|
|
6419
|
+
}, params?: RequestParams) => Promise<AxiosResponse<PartsListResponse, any>>;
|
|
6420
|
+
/**
|
|
6421
|
+
* @description Lists a collection of [parts](https://devrev.ai/docs/product/parts).
|
|
6422
|
+
*
|
|
6423
|
+
* @tags parts
|
|
6424
|
+
* @name PartsListPost
|
|
6425
|
+
* @request POST:/parts.list
|
|
6426
|
+
* @secure
|
|
6427
|
+
*/
|
|
6428
|
+
partsListPost: (data: PartsListRequest, params?: RequestParams) => Promise<AxiosResponse<PartsListResponse, any>>;
|
|
6429
|
+
/**
|
|
6430
|
+
* @description Updates a [part's](https://devrev.ai/docs/product/parts) information.
|
|
6431
|
+
*
|
|
6432
|
+
* @tags parts
|
|
6433
|
+
* @name PartsUpdate
|
|
6434
|
+
* @request POST:/parts.update
|
|
6435
|
+
* @secure
|
|
6436
|
+
*/
|
|
6437
|
+
partsUpdate: (data: PartsUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<PartsUpdateResponse, any>>;
|
|
6030
6438
|
/**
|
|
6031
6439
|
* @description Creates a Rev organization in the authenticated user's Dev organization.
|
|
6032
6440
|
*
|
|
@@ -738,6 +738,15 @@ class Api extends HttpClient {
|
|
|
738
738
|
* @secure
|
|
739
739
|
*/
|
|
740
740
|
this.artifactsPrepare = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.prepare`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
741
|
+
/**
|
|
742
|
+
* @description Prepares a new version for an artifact, returning the URL and form data to upload the updated file.
|
|
743
|
+
*
|
|
744
|
+
* @tags artifacts
|
|
745
|
+
* @name ArtifactsVersionsPrepare
|
|
746
|
+
* @request POST:/artifacts.versions.prepare
|
|
747
|
+
* @secure
|
|
748
|
+
*/
|
|
749
|
+
this.artifactsVersionsPrepare = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.versions.prepare`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
741
750
|
/**
|
|
742
751
|
* @description Creates a conversation.
|
|
743
752
|
*
|
|
@@ -1062,6 +1071,15 @@ class Api extends HttpClient {
|
|
|
1062
1071
|
* @secure
|
|
1063
1072
|
*/
|
|
1064
1073
|
this.metricDefinitionsListPost = (data, params = {}) => this.request(Object.assign({ path: `/metric-definitions.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1074
|
+
/**
|
|
1075
|
+
* @description Ingest endpoint for DevRev metrics data from clients.
|
|
1076
|
+
*
|
|
1077
|
+
* @tags telemetry
|
|
1078
|
+
* @name MetricsDevrevIngest
|
|
1079
|
+
* @request POST:/metrics.devrev.ingest
|
|
1080
|
+
* @secure
|
|
1081
|
+
*/
|
|
1082
|
+
this.metricsDevrevIngest = (data, params = {}) => this.request(Object.assign({ path: `/metrics.devrev.ingest`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
|
|
1065
1083
|
/**
|
|
1066
1084
|
* @description Creates an organization schedule fragment.
|
|
1067
1085
|
*
|
|
@@ -1170,6 +1188,69 @@ class Api extends HttpClient {
|
|
|
1170
1188
|
* @secure
|
|
1171
1189
|
*/
|
|
1172
1190
|
this.orgSchedulesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/org-schedules.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1191
|
+
/**
|
|
1192
|
+
* @description Creates new [part](https://devrev.ai/docs/product/parts).
|
|
1193
|
+
*
|
|
1194
|
+
* @tags parts
|
|
1195
|
+
* @name PartsCreate
|
|
1196
|
+
* @request POST:/parts.create
|
|
1197
|
+
* @secure
|
|
1198
|
+
*/
|
|
1199
|
+
this.partsCreate = (data, params = {}) => this.request(Object.assign({ path: `/parts.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1200
|
+
/**
|
|
1201
|
+
* @description Deletes a [part](https://devrev.ai/docs/product/parts).
|
|
1202
|
+
*
|
|
1203
|
+
* @tags parts
|
|
1204
|
+
* @name PartsDelete
|
|
1205
|
+
* @request POST:/parts.delete
|
|
1206
|
+
* @secure
|
|
1207
|
+
*/
|
|
1208
|
+
this.partsDelete = (data, params = {}) => this.request(Object.assign({ path: `/parts.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1209
|
+
/**
|
|
1210
|
+
* @description Gets a [part's](https://devrev.ai/docs/product/parts) information.
|
|
1211
|
+
*
|
|
1212
|
+
* @tags parts
|
|
1213
|
+
* @name PartsGet
|
|
1214
|
+
* @request GET:/parts.get
|
|
1215
|
+
* @secure
|
|
1216
|
+
*/
|
|
1217
|
+
this.partsGet = (query, params = {}) => this.request(Object.assign({ path: `/parts.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1218
|
+
/**
|
|
1219
|
+
* @description Gets a [part's](https://devrev.ai/docs/product/parts) information.
|
|
1220
|
+
*
|
|
1221
|
+
* @tags parts
|
|
1222
|
+
* @name PartsGetPost
|
|
1223
|
+
* @request POST:/parts.get
|
|
1224
|
+
* @secure
|
|
1225
|
+
*/
|
|
1226
|
+
this.partsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/parts.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1227
|
+
/**
|
|
1228
|
+
* @description Lists a collection of [parts](https://devrev.ai/docs/product/parts).
|
|
1229
|
+
*
|
|
1230
|
+
* @tags parts
|
|
1231
|
+
* @name PartsList
|
|
1232
|
+
* @request GET:/parts.list
|
|
1233
|
+
* @secure
|
|
1234
|
+
*/
|
|
1235
|
+
this.partsList = (query, params = {}) => this.request(Object.assign({ path: `/parts.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
|
|
1236
|
+
/**
|
|
1237
|
+
* @description Lists a collection of [parts](https://devrev.ai/docs/product/parts).
|
|
1238
|
+
*
|
|
1239
|
+
* @tags parts
|
|
1240
|
+
* @name PartsListPost
|
|
1241
|
+
* @request POST:/parts.list
|
|
1242
|
+
* @secure
|
|
1243
|
+
*/
|
|
1244
|
+
this.partsListPost = (data, params = {}) => this.request(Object.assign({ path: `/parts.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1245
|
+
/**
|
|
1246
|
+
* @description Updates a [part's](https://devrev.ai/docs/product/parts) information.
|
|
1247
|
+
*
|
|
1248
|
+
* @tags parts
|
|
1249
|
+
* @name PartsUpdate
|
|
1250
|
+
* @request POST:/parts.update
|
|
1251
|
+
* @secure
|
|
1252
|
+
*/
|
|
1253
|
+
this.partsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/parts.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
|
|
1173
1254
|
/**
|
|
1174
1255
|
* @description Creates a Rev organization in the authenticated user's Dev organization.
|
|
1175
1256
|
*
|
|
@@ -2029,7 +2029,7 @@ export type WorksUpdateRequest = (Empty | WorksUpdateRequestIssue | WorksUpdateR
|
|
|
2029
2029
|
* Updates the timestamp for when the work is expected to be complete.
|
|
2030
2030
|
* @format date-time
|
|
2031
2031
|
*/
|
|
2032
|
-
target_close_date?: string;
|
|
2032
|
+
target_close_date?: string | null;
|
|
2033
2033
|
/** Updated title of the work object, or unchanged if not provided. */
|
|
2034
2034
|
title?: string;
|
|
2035
2035
|
type?: WorkType;
|
|
@@ -2152,6 +2152,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2152
2152
|
* @example "don:core:<partition>:devo/<dev-org-id>:artifact/<artifact-id>"
|
|
2153
2153
|
*/
|
|
2154
2154
|
id: string;
|
|
2155
|
+
/**
|
|
2156
|
+
* The version of the artifact that needs to be fetched.
|
|
2157
|
+
* @format date-time
|
|
2158
|
+
*/
|
|
2159
|
+
timestamp?: string;
|
|
2155
2160
|
}, params?: RequestParams) => Promise<AxiosResponse<ArtifactsLocateResponse, any>>;
|
|
2156
2161
|
/**
|
|
2157
2162
|
* @description Creates an artifact and generates an upload URL for its data.
|
|
@@ -2587,6 +2592,10 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
|
|
|
2587
2592
|
* used.
|
|
2588
2593
|
*/
|
|
2589
2594
|
mode?: ListMode;
|
|
2595
|
+
/** Filters for tags with the provided names. */
|
|
2596
|
+
name?: string[];
|
|
2597
|
+
/** Fields to sort tags by and the direction to sort them. */
|
|
2598
|
+
sort_by?: string[];
|
|
2590
2599
|
}, params?: RequestParams) => Promise<AxiosResponse<TagsListResponse, any>>;
|
|
2591
2600
|
/**
|
|
2592
2601
|
* @description Updates a tag's information.
|