@devrev/typescript-sdk 1.1.32 → 1.1.34

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.
@@ -96,6 +96,19 @@ export interface AccountsExportResponse {
96
96
  /** The exported accounts. */
97
97
  accounts: Account[];
98
98
  }
99
+ /** accounts-filters */
100
+ export interface AccountsFilters {
101
+ /** Filters for accounts created by the specified user(s). */
102
+ created_by?: string[];
103
+ created_date?: DateTimeFilter;
104
+ /** Array of display names of accounts to be filtered. */
105
+ display_name?: string[];
106
+ /** Array of references of accounts to be filtered. */
107
+ external_refs?: string[];
108
+ modified_date?: DateTimeFilter;
109
+ /** Filters for accounts on specified stages. */
110
+ stage?: string[];
111
+ }
99
112
  /**
100
113
  * accounts-get-request
101
114
  * Request object to get an account's information.
@@ -1194,6 +1207,18 @@ export interface EnumValue {
1194
1207
  */
1195
1208
  ordinal: number;
1196
1209
  }
1210
+ /** error */
1211
+ export interface Error {
1212
+ /** The error type. */
1213
+ type?: string;
1214
+ /** Information about the error. */
1215
+ message: string;
1216
+ /**
1217
+ * The corresponding HTTP status code.
1218
+ * @format int32
1219
+ */
1220
+ status: number;
1221
+ }
1197
1222
  /** error-bad-request */
1198
1223
  export type ErrorBadRequest = ErrorBase & (ErrorBadRequestArtifactAlreadyAttachedToAParent | ErrorBadRequestBadRequest | ErrorBadRequestInvalidApiVersion | ErrorBadRequestInvalidEnumValue | ErrorBadRequestInvalidField | ErrorBadRequestInvalidId | ErrorBadRequestMergeWorksError | ErrorBadRequestMissingDependency | ErrorBadRequestMissingRequiredField | ErrorBadRequestParseError | ErrorBadRequestStaleSchemaFragments | ErrorBadRequestUnexpectedIdType | ErrorBadRequestUnexpectedJsonType | ErrorBadRequestValueNotPermitted) & {
1199
1224
  type: ErrorBadRequestType;
@@ -1642,9 +1667,11 @@ export interface EventTagDeleted {
1642
1667
  * @example "TAG-12345"
1643
1668
  */
1644
1669
  id: string;
1670
+ old_tag?: Tag;
1645
1671
  }
1646
1672
  /** event-tag-updated */
1647
1673
  export interface EventTagUpdated {
1674
+ old_tag?: Tag;
1648
1675
  tag: Tag;
1649
1676
  }
1650
1677
  /** event-timeline-entry-created */
@@ -1819,16 +1846,19 @@ export type Link = AtomBase & {
1819
1846
  target: LinkEndpointSummary;
1820
1847
  };
1821
1848
  /** link-endpoint-summary */
1822
- export type LinkEndpointSummary = (CapabilitySummary | ConversationSummary | EnhancementSummary | FeatureSummary | IssueSummary | ProductSummary | TicketSummary) & {
1849
+ export type LinkEndpointSummary = (CapabilitySummary | ConversationSummary | DevUserSummary | EnhancementSummary | FeatureSummary | IssueSummary | ProductSummary | RevOrgSummary | RevUserSummary | TicketSummary) & {
1823
1850
  type: LinkEndpointType;
1824
1851
  };
1825
1852
  export declare enum LinkEndpointType {
1826
1853
  Capability = "capability",
1827
1854
  Conversation = "conversation",
1855
+ DevUser = "dev_user",
1828
1856
  Enhancement = "enhancement",
1829
1857
  Feature = "feature",
1830
1858
  Issue = "issue",
1831
1859
  Product = "product",
1860
+ RevOrg = "rev_org",
1861
+ RevUser = "rev_user",
1832
1862
  Ticket = "ticket"
1833
1863
  }
1834
1864
  /** Type of link used to define the relationship. */
@@ -1840,6 +1870,7 @@ export declare enum LinkType {
1840
1870
  IsConvertedTo = "is_converted_to",
1841
1871
  IsDependentOn = "is_dependent_on",
1842
1872
  IsDuplicateOf = "is_duplicate_of",
1873
+ IsFollowUpOf = "is_follow_up_of",
1843
1874
  IsMergedInto = "is_merged_into",
1844
1875
  IsParentOf = "is_parent_of",
1845
1876
  IsPartOf = "is_part_of",
@@ -1857,11 +1888,90 @@ export declare enum ListMode {
1857
1888
  After = "after",
1858
1889
  Before = "before"
1859
1890
  }
1891
+ /** metric-definition */
1892
+ export type MetricDefinition = AtomBase & {
1893
+ /** Human readable name of the metric. */
1894
+ name?: string;
1895
+ };
1896
+ /** The list of item types on which the metric might be applied. */
1897
+ export declare enum MetricDefinitionAppliesTo {
1898
+ Conversation = "conversation",
1899
+ Issue = "issue",
1900
+ Ticket = "ticket"
1901
+ }
1902
+ /**
1903
+ * The type of the metric. 'time' metrics track the time spent in some
1904
+ * state, supporting operations like 'start', 'stop', 'pause', 'resume'.
1905
+ * 'value' metrics track a value, supporting operations like 'set',
1906
+ * 'increment', 'decrement'.
1907
+ */
1908
+ export declare enum MetricDefinitionMetricType {
1909
+ Time = "time",
1910
+ Value = "value"
1911
+ }
1912
+ /**
1913
+ * The status of the metric. 'active' metrics can be used to create new
1914
+ * SLAs, while 'inactive' metrics can not be used in new SLAs. Metrics can
1915
+ * be updated between 'active' and 'inactive' states.
1916
+ */
1917
+ export declare enum MetricDefinitionStatus {
1918
+ Active = "active",
1919
+ Inactive = "inactive"
1920
+ }
1860
1921
  /** metric-definition-summary */
1861
1922
  export type MetricDefinitionSummary = AtomBaseSummary & {
1862
1923
  /** Human readable name of the metric. */
1863
1924
  name?: string;
1864
1925
  };
1926
+ /** metric-definitions-list-request */
1927
+ export interface MetricDefinitionsListRequest {
1928
+ /** The type of metric definitions sought. */
1929
+ type?: MetricDefinitionMetricType[];
1930
+ /** The type of objects the metric definition applies to. */
1931
+ applies_to_type?: MetricDefinitionAppliesTo[];
1932
+ /**
1933
+ * The cursor to resume iteration from. If not provided, then
1934
+ * iteration starts from the beginning.
1935
+ */
1936
+ cursor?: string;
1937
+ /**
1938
+ * Whether to include custom metrics in the response. If not set, then
1939
+ * custom metrics are excluded.
1940
+ */
1941
+ include_custom_metrics?: boolean;
1942
+ /**
1943
+ * The maximum number of records to return. The default is '50'.
1944
+ * @format int32
1945
+ */
1946
+ limit?: number;
1947
+ /**
1948
+ * The iteration mode to use. If "after", then entries after the provided
1949
+ * cursor will be returned, or if no cursor is provided, then from the
1950
+ * beginning. If "before", then entries before the provided cursor will be
1951
+ * returned, or if no cursor is provided, then from the end. Entries will
1952
+ * always be returned in the specified sort-by order.
1953
+ */
1954
+ mode?: ListMode;
1955
+ /** Fields to sort the records by and the direction to sort them. */
1956
+ sort_by?: string[];
1957
+ /** The status of the metric definition. */
1958
+ status?: MetricDefinitionStatus[];
1959
+ }
1960
+ /** metric-definitions-list-response */
1961
+ export interface MetricDefinitionsListResponse {
1962
+ /** The list of metric definitions. */
1963
+ metric_definitions: MetricDefinition[];
1964
+ /**
1965
+ * The cursor used to iterate subsequent results in accordance to the
1966
+ * sort order. If not set, then no later elements exist.
1967
+ */
1968
+ next_cursor?: string;
1969
+ /**
1970
+ * The cursor used to iterate preceding results in accordance to the
1971
+ * sort order. If not set, then no prior elements exist.
1972
+ */
1973
+ prev_cursor?: string;
1974
+ }
1865
1975
  /** org-base */
1866
1976
  export type OrgBase = AtomBase & {
1867
1977
  /** Name of the Organization. */
@@ -2821,6 +2931,119 @@ export type SchemaUenumListFieldDescriptor = SchemaFieldDescriptorBase & {
2821
2931
  };
2822
2932
  /** schema-unknown-field-descriptor */
2823
2933
  export type SchemaUnknownFieldDescriptor = SchemaFieldDescriptorBase;
2934
+ /** set-issue-selector */
2935
+ export interface SetIssueSelector {
2936
+ /**
2937
+ * Custom fields on the issue with their fully qualified names and the
2938
+ * associated with their exact allowed values. The SLA policy applies
2939
+ * to issues where all named custom fields have exactly the specified
2940
+ * values.
2941
+ */
2942
+ custom_fields?: object;
2943
+ /** The SLA policy applies to the issues of these owners. */
2944
+ owners?: string[];
2945
+ /**
2946
+ * The SLA policy applies to the issues of these parts.
2947
+ * @example ["PROD-12345"]
2948
+ */
2949
+ parts?: string[];
2950
+ /**
2951
+ * The SLA policy applies to the issues of these revorgs.
2952
+ * @example ["REV-AbCdEfGh"]
2953
+ */
2954
+ rev_orgs?: string[];
2955
+ /** The SLA policy applies to issues with these stages. */
2956
+ stage_name?: string[];
2957
+ /** The issue subtype for which the SLA policy applies. */
2958
+ subtype?: string[];
2959
+ /**
2960
+ * The SLA policy applies to issues with these tags. If empty, the tag
2961
+ * filter isn't applied.
2962
+ * @example ["TAG-12345"]
2963
+ */
2964
+ tags?: string[];
2965
+ }
2966
+ /** set-sla-policy */
2967
+ export interface SetSlaPolicy {
2968
+ /** Metrics to apply to the selected items. */
2969
+ metrics?: SetSupportMetricTarget[];
2970
+ /** Human-readable name. */
2971
+ name: string;
2972
+ selector: SetSlaSelector;
2973
+ }
2974
+ /** set-sla-selector */
2975
+ export interface SetSlaSelector {
2976
+ /** The item type for which the SLA policy applies. */
2977
+ applies_to: SlaSelectorAppliesTo;
2978
+ /**
2979
+ * Custom fields with their fully qualified names and associated with
2980
+ * their exact allowed values. The SLA policy applies to records where
2981
+ * all named custom fields have exactly the specified values. If the
2982
+ * value is null, the field must have null value or not be present.
2983
+ */
2984
+ custom_fields?: object;
2985
+ /**
2986
+ * The SLA policy applies to the tickets or conversations of these
2987
+ * groups.
2988
+ */
2989
+ groups?: string[];
2990
+ issue_selector?: SetIssueSelector;
2991
+ /**
2992
+ * The SLA policy applies to the tickets or conversations of these
2993
+ * owners.
2994
+ */
2995
+ owners?: string[];
2996
+ /**
2997
+ * The SLA policy applies to the tickets of these parts.
2998
+ * @example ["PROD-12345"]
2999
+ */
3000
+ parts?: string[];
3001
+ /** The SLA policy applies to conversations with these priorities. */
3002
+ priority?: SlaSelectorPriority[];
3003
+ /** The SLA policy applies to tickets with these severities. */
3004
+ severity?: SlaSelectorSeverity[];
3005
+ /** The SLA policy applies to conversations with these sources. */
3006
+ source_channel?: string[];
3007
+ /** The SLA policy applies to tickets with these subtypes. */
3008
+ subtype?: string[];
3009
+ /**
3010
+ * The SLA policy applies to items with these tags.
3011
+ * @example ["TAG-12345"]
3012
+ */
3013
+ tags?: string[];
3014
+ /** The SLA policy applies to tickets with these source channels. */
3015
+ ticket_source_channel?: string[];
3016
+ }
3017
+ /** set-support-metric-target */
3018
+ export interface SetSupportMetricTarget {
3019
+ /** The metric to apply. */
3020
+ metric: string;
3021
+ /**
3022
+ * The organization schedule controlling this metrics calculation.
3023
+ * Time based metrics don't consume time while their schedule is off.
3024
+ */
3025
+ org_schedule_id?: string;
3026
+ /**
3027
+ * The percentage of instances for which this metric's target must not
3028
+ * be breached, in order to avoid breaching the overall SLA policy.
3029
+ * @format double
3030
+ */
3031
+ performance?: number;
3032
+ /**
3033
+ * The target value to be achieved, for example the time in which to
3034
+ * do something, or the maximum allowed number of message pairs. The
3035
+ * units and interpretation of the value is controlled by the
3036
+ * properties of the referenced metric.
3037
+ * @format int32
3038
+ */
3039
+ target: number;
3040
+ /**
3041
+ * The threshold in the same units as target where the metric is
3042
+ * considered to be 'at risk'.
3043
+ * @format int32
3044
+ */
3045
+ warning_target?: number;
3046
+ }
2824
3047
  /** set-tag-with-value */
2825
3048
  export interface SetTagWithValue {
2826
3049
  /**
@@ -2834,6 +3057,103 @@ export interface SetTagWithValue {
2834
3057
  */
2835
3058
  value?: string;
2836
3059
  }
3060
+ /** sla */
3061
+ export type Sla = AtomBase & {
3062
+ /**
3063
+ * Describes the compensation to be provided in case of SLA breach. It is
3064
+ * not 'self-executing', it is the responsibility of the organization
3065
+ * providing the SLA to actually transfer the promised credit, resource or
3066
+ * other payment.
3067
+ */
3068
+ compensation?: SlaCompensation;
3069
+ /** Description of the purpose and capabilities of the SLA. */
3070
+ description?: string;
3071
+ /**
3072
+ * Specifies the frequency of when the contractually-meaningful evaluation
3073
+ * of the SLA happens. The organization for their own information might
3074
+ * evaluate the various metrics contained in the policy as often as we can
3075
+ * make it feasible for them, but only the evaluation at the end of the
3076
+ * evaluation period triggers a compensation and needs to be shared with
3077
+ * the customer.
3078
+ */
3079
+ evaluation_period?: SlaEvaluationPeriod;
3080
+ /** Human-readable name. */
3081
+ name: string;
3082
+ /**
3083
+ * The policies encompassed by this SLA, ordered in decreasing
3084
+ * priority.
3085
+ */
3086
+ policies?: SlaPolicy[];
3087
+ /** Type of the SLA. */
3088
+ sla_type?: SlaType;
3089
+ /**
3090
+ * Status determines how an item can be used. In 'draft' status an item
3091
+ * can be edited but can't be used. When 'published' the item can longer
3092
+ * be edited but can be used. 'Archived' is read-only.
3093
+ */
3094
+ status: SlaStatus;
3095
+ };
3096
+ /**
3097
+ * The object types on which the SLA applies. An external SLA can apply to
3098
+ * multiple object types, but an internal SLA can apply to only one object
3099
+ * type.
3100
+ */
3101
+ export declare enum SlaAppliesTo {
3102
+ Conversation = "conversation",
3103
+ Issue = "issue",
3104
+ Ticket = "ticket"
3105
+ }
3106
+ /** sla-assign-result */
3107
+ export interface SlaAssignResult {
3108
+ error?: Error;
3109
+ rev_org: RevOrgSummary;
3110
+ }
3111
+ /**
3112
+ * sla-compensation
3113
+ * Describes the compensation to be provided in case of SLA breach. It is
3114
+ * not 'self-executing', it is the responsibility of the organization
3115
+ * providing the SLA to actually transfer the promised credit, resource or
3116
+ * other payment.
3117
+ */
3118
+ export type SlaCompensation = object;
3119
+ /**
3120
+ * Specifies the frequency of when the contractually-meaningful evaluation
3121
+ * of the SLA happens. The organization for their own information might
3122
+ * evaluate the various metrics contained in the policy as often as we can
3123
+ * make it feasible for them, but only the evaluation at the end of the
3124
+ * evaluation period triggers a compensation and needs to be shared with
3125
+ * the customer.
3126
+ */
3127
+ export declare enum SlaEvaluationPeriod {
3128
+ Monthly = "monthly",
3129
+ Quarterly = "quarterly",
3130
+ Weekly = "weekly",
3131
+ Yearly = "yearly"
3132
+ }
3133
+ /**
3134
+ * sla-policy
3135
+ * A policy that represents a promise to your revs.
3136
+ */
3137
+ export type SlaPolicy = object;
3138
+ /** The item type for which the SLA policy applies. */
3139
+ export declare enum SlaSelectorAppliesTo {
3140
+ Conversation = "conversation",
3141
+ Issue = "issue",
3142
+ Ticket = "ticket"
3143
+ }
3144
+ /** The SLA policy applies to conversations with these priorities. */
3145
+ export declare enum SlaSelectorPriority {
3146
+ P0 = "p0",
3147
+ P1 = "p1",
3148
+ P2 = "p2"
3149
+ }
3150
+ /** The SLA policy applies to tickets with these severities. */
3151
+ export declare enum SlaSelectorSeverity {
3152
+ Blocker = "blocker",
3153
+ High = "high",
3154
+ Low = "low",
3155
+ Medium = "medium"
3156
+ }
2837
3157
  /**
2838
3158
  * Status determines how an item can be used. In 'draft' status an item
2839
3159
  * can be edited but can't be used. When 'published' the item can longer
@@ -2912,11 +3232,206 @@ export interface SlaTrackersGetRequest {
2912
3232
  export interface SlaTrackersGetResponse {
2913
3233
  sla_tracker: SlaTracker;
2914
3234
  }
3235
+ /** sla-trackers-list-request */
3236
+ export interface SlaTrackersListRequest {
3237
+ created_date?: DateTimeFilter;
3238
+ /**
3239
+ * The cursor to resume iteration from. If not provided, then
3240
+ * iteration starts from the beginning.
3241
+ */
3242
+ cursor?: string;
3243
+ /**
3244
+ * The maximum number of SLA trackers to return. The default is '50'.
3245
+ * @format int32
3246
+ */
3247
+ limit?: number;
3248
+ /**
3249
+ * The iteration mode to use. If "after", then entries after the provided
3250
+ * cursor will be returned, or if no cursor is provided, then from the
3251
+ * beginning. If "before", then entries before the provided cursor will be
3252
+ * returned, or if no cursor is provided, then from the end. Entries will
3253
+ * always be returned in the specified sort-by order.
3254
+ */
3255
+ mode?: ListMode;
3256
+ modified_date?: DateTimeFilter;
3257
+ /** Fields to sort the SLA Trackers by and the direction to sort them. */
3258
+ sort_by?: string[];
3259
+ /** The SLA tracker stages the filter matches. */
3260
+ stage?: string[];
3261
+ /** The SLA tracker statuses the filter matches. */
3262
+ status?: string[];
3263
+ }
3264
+ /** sla-trackers-list-response */
3265
+ export interface SlaTrackersListResponse {
3266
+ /**
3267
+ * The cursor used to iterate subsequent results in accordance to the
3268
+ * sort order. If not set, then no later elements exist.
3269
+ */
3270
+ next_cursor?: string;
3271
+ /**
3272
+ * The cursor used to iterate preceding results in accordance to the
3273
+ * sort order. If not set, then no prior elements exist.
3274
+ */
3275
+ prev_cursor?: string;
3276
+ /** The list of SLA trackers. */
3277
+ sla_trackers: SlaTracker[];
3278
+ }
2915
3279
  /** Type of the SLA. */
2916
3280
  export declare enum SlaType {
2917
3281
  External = "external",
2918
3282
  Internal = "internal"
2919
3283
  }
3284
+ /** slas-assign-request */
3285
+ export interface SlasAssignRequest {
3286
+ /**
3287
+ * The SLA which would be assigned to the Rev organizations. If
3288
+ * omitted, the SLA of all the rev organizations referenced will be
3289
+ * unset.
3290
+ */
3291
+ id?: string;
3292
+ /**
3293
+ * The Rev organizations to apply the SLA to.
3294
+ * @example ["REV-AbCdEfGh"]
3295
+ */
3296
+ rev_orgs: string[];
3297
+ }
3298
+ /** slas-assign-response */
3299
+ export interface SlasAssignResponse {
3300
+ /** The list of outcomes for each Rev organization. */
3301
+ results: SlaAssignResult[];
3302
+ }
3303
+ /** slas-create-request */
3304
+ export interface SlasCreateRequest {
3305
+ account_selector?: AccountsFilters;
3306
+ /** The object types this SLA can apply to. */
3307
+ applies_to?: SlaAppliesTo[];
3308
+ /** Description of the purpose and capabilities of the SLA. */
3309
+ description?: string;
3310
+ /**
3311
+ * Specifies the frequency of when the contractually-meaningful evaluation
3312
+ * of the SLA happens. The organization for their own information might
3313
+ * evaluate the various metrics contained in the policy as often as we can
3314
+ * make it feasible for them, but only the evaluation at the end of the
3315
+ * evaluation period triggers a compensation and needs to be shared with
3316
+ * the customer.
3317
+ */
3318
+ evaluation_period?: SlaEvaluationPeriod;
3319
+ /** Human-readable name. */
3320
+ name: string;
3321
+ /**
3322
+ * The policies encompassed by this SLA, ordered in decreasing
3323
+ * priority.
3324
+ */
3325
+ policies?: SetSlaPolicy[];
3326
+ /** Type of the SLA. */
3327
+ sla_type?: SlaType;
3328
+ }
3329
+ /** slas-create-response */
3330
+ export interface SlasCreateResponse {
3331
+ sla: Sla;
3332
+ }
3333
+ export declare enum SlasFilterAppliesToOperatorType {
3334
+ All = "all",
3335
+ Any = "any"
3336
+ }
3337
+ /** slas-get-request */
3338
+ export interface SlasGetRequest {
3339
+ /** The ID of the SLA to get. */
3340
+ id: string;
3341
+ }
3342
+ /** slas-get-response */
3343
+ export interface SlasGetResponse {
3344
+ sla: Sla;
3345
+ }
3346
+ /** slas-list-request */
3347
+ export interface SlasListRequest {
3348
+ /** The object types the SLA applies to. */
3349
+ applies_to?: SlaAppliesTo[];
3350
+ applies_to_op?: SlasFilterAppliesToOperatorType;
3351
+ /**
3352
+ * The cursor to resume iteration from. If not provided, then
3353
+ * iteration starts from the beginning.
3354
+ */
3355
+ cursor?: string;
3356
+ /**
3357
+ * The maximum number of SLAs to return. The default is '50'.
3358
+ * @format int32
3359
+ */
3360
+ limit?: number;
3361
+ /**
3362
+ * The iteration mode to use. If "after", then entries after the provided
3363
+ * cursor will be returned, or if no cursor is provided, then from the
3364
+ * beginning. If "before", then entries before the provided cursor will be
3365
+ * returned, or if no cursor is provided, then from the end. Entries will
3366
+ * always be returned in the specified sort-by order.
3367
+ */
3368
+ mode?: ListMode;
3369
+ /** The SLA types the filter matches. */
3370
+ sla_type?: SlaType[];
3371
+ /** Fields to sort the SLAs by and the direction to sort them. */
3372
+ sort_by?: string[];
3373
+ /** The SLA statuses the filter matches. */
3374
+ status?: SlaStatus[];
3375
+ }
3376
+ /** slas-list-response */
3377
+ export interface SlasListResponse {
3378
+ /**
3379
+ * The cursor used to iterate subsequent results in accordance to the
3380
+ * sort order. If not set, then no later elements exist.
3381
+ */
3382
+ next_cursor?: string;
3383
+ /**
3384
+ * The cursor used to iterate preceding results in accordance to the
3385
+ * sort order. If not set, then no prior elements exist.
3386
+ */
3387
+ prev_cursor?: string;
3388
+ /** The list of SLAs. */
3389
+ slas: Sla[];
3390
+ }
3391
+ /** slas-transition-request */
3392
+ export interface SlasTransitionRequest {
3393
+ /** The updated SLA. */
3394
+ id: string;
3395
+ /**
3396
+ * Status determines how an item can be used. In 'draft' status an item
3397
+ * can be edited but can't be used. When 'published' the item can longer
3398
+ * be edited but can be used. 'Archived' is read-only.
3399
+ */
3400
+ status: SlaStatus;
3401
+ }
3402
+ /** slas-transition-response */
3403
+ export interface SlasTransitionResponse {
3404
+ sla: Sla;
3405
+ }
3406
+ /** slas-update-request */
3407
+ export interface SlasUpdateRequest {
3408
+ account_selector?: AccountsFilters;
3409
+ /** Description of the purpose and capabilities of the SLA. */
3410
+ description?: string;
3411
+ /**
3412
+ * Specifies the frequency of when the contractually-meaningful evaluation
3413
+ * of the SLA happens. The organization for their own information might
3414
+ * evaluate the various metrics contained in the policy as often as we can
3415
+ * make it feasible for them, but only the evaluation at the end of the
3416
+ * evaluation period triggers a compensation and needs to be shared with
3417
+ * the customer.
3418
+ */
3419
+ evaluation_period?: SlaEvaluationPeriod;
3420
+ /** The SLA's ID. */
3421
+ id: string;
3422
+ /** Human-readable name. */
3423
+ name?: string;
3424
+ /**
3425
+ * The policies encompassed by this SLA, ordered in decreasing
3426
+ * priority, the whole array will be overwritten by the contents of
3427
+ * this array.
3428
+ */
3429
+ policies?: SetSlaPolicy[];
3430
+ }
3431
+ /** slas-update-response */
3432
+ export interface SlasUpdateResponse {
3433
+ sla: Sla;
3434
+ }
2920
3435
  /** snap-widget */
2921
3436
  export interface SnapWidget {
2922
3437
  type: SnapWidgetType;
@@ -3051,6 +3566,7 @@ export interface SyncMetadataFilterSyncOutFilter {
3051
3566
  }
3052
3567
  export declare enum SyncMetadataFilterSyncOutFilterStatus {
3053
3568
  Failed = "failed",
3569
+ Modified = "modified",
3054
3570
  Succeeded = "succeeded"
3055
3571
  }
3056
3572
  /** sys-user-summary */
@@ -5021,6 +5537,53 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5021
5537
  * @secure
5022
5538
  */
5023
5539
  keyringsCreateCallbackPost: (data: KeyringsCreateCallbackRequest, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
5540
+ /**
5541
+ * @description Lists metric definitions matching a filter.
5542
+ *
5543
+ * @tags slas
5544
+ * @name MetricDefinitionsList
5545
+ * @request GET:/metric-definitions.list
5546
+ * @secure
5547
+ */
5548
+ metricDefinitionsList: (query?: {
5549
+ /** The type of objects the metric definition applies to. */
5550
+ applies_to_type?: MetricDefinitionAppliesTo[];
5551
+ /**
5552
+ * The cursor to resume iteration from. If not provided, then iteration
5553
+ * starts from the beginning.
5554
+ */
5555
+ cursor?: string;
5556
+ /**
5557
+ * Whether to include custom metrics in the response. If not set, then
5558
+ * custom metrics are excluded.
5559
+ */
5560
+ include_custom_metrics?: boolean;
5561
+ /**
5562
+ * The maximum number of records to return. The default is '50'.
5563
+ * @format int32
5564
+ */
5565
+ limit?: number;
5566
+ /**
5567
+ * The iteration mode to use, otherwise if not set, then "after" is
5568
+ * used.
5569
+ */
5570
+ mode?: ListMode;
5571
+ /** Fields to sort the records by and the direction to sort them. */
5572
+ sort_by?: string[];
5573
+ /** The status of the metric definition. */
5574
+ status?: MetricDefinitionStatus[];
5575
+ /** The type of metric definitions sought. */
5576
+ type?: MetricDefinitionMetricType[];
5577
+ }, params?: RequestParams) => Promise<AxiosResponse<MetricDefinitionsListResponse, any>>;
5578
+ /**
5579
+ * @description Lists metric definitions matching a filter.
5580
+ *
5581
+ * @tags slas
5582
+ * @name MetricDefinitionsListPost
5583
+ * @request POST:/metric-definitions.list
5584
+ * @secure
5585
+ */
5586
+ metricDefinitionsListPost: (data: MetricDefinitionsListRequest, params?: RequestParams) => Promise<AxiosResponse<MetricDefinitionsListResponse, any>>;
5024
5587
  /**
5025
5588
  * @description Creates new [part](https://devrev.ai/docs/product/parts).
5026
5589
  *
@@ -5282,6 +5845,176 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5282
5845
  * @secure
5283
5846
  */
5284
5847
  slaTrackersGetPost: (data: SlaTrackersGetRequest, params?: RequestParams) => Promise<AxiosResponse<SlaTrackersGetResponse, any>>;
5848
+ /**
5849
+ * @description Lists SLA trackers matching a filter.
5850
+ *
5851
+ * @tags slas
5852
+ * @name SlaTrackersList
5853
+ * @request GET:/sla-trackers.list
5854
+ * @secure
5855
+ */
5856
+ slaTrackersList: (query?: {
5857
+ /**
5858
+ * Filters for objects created after the provided timestamp (inclusive).
5859
+ * @format date-time
5860
+ * @example "2023-01-01T12:00:00.000Z"
5861
+ */
5862
+ 'created_date.after'?: string;
5863
+ /**
5864
+ * Filters for objects created before the provided timestamp
5865
+ * (inclusive).
5866
+ * @format date-time
5867
+ * @example "2023-01-01T12:00:00.000Z"
5868
+ */
5869
+ 'created_date.before'?: string;
5870
+ /**
5871
+ * The cursor to resume iteration from. If not provided, then iteration
5872
+ * starts from the beginning.
5873
+ */
5874
+ cursor?: string;
5875
+ /**
5876
+ * The maximum number of SLA trackers to return. The default is '50'.
5877
+ * @format int32
5878
+ */
5879
+ limit?: number;
5880
+ /**
5881
+ * The iteration mode to use, otherwise if not set, then "after" is
5882
+ * used.
5883
+ */
5884
+ mode?: ListMode;
5885
+ /**
5886
+ * Filters for objects created after the provided timestamp (inclusive).
5887
+ * @format date-time
5888
+ * @example "2023-01-01T12:00:00.000Z"
5889
+ */
5890
+ 'modified_date.after'?: string;
5891
+ /**
5892
+ * Filters for objects created before the provided timestamp
5893
+ * (inclusive).
5894
+ * @format date-time
5895
+ * @example "2023-01-01T12:00:00.000Z"
5896
+ */
5897
+ 'modified_date.before'?: string;
5898
+ /** Fields to sort the SLA Trackers by and the direction to sort them. */
5899
+ sort_by?: string[];
5900
+ /** The SLA tracker stages the filter matches. */
5901
+ stage?: string[];
5902
+ /** The SLA tracker statuses the filter matches. */
5903
+ status?: string[];
5904
+ }, params?: RequestParams) => Promise<AxiosResponse<SlaTrackersListResponse, any>>;
5905
+ /**
5906
+ * @description Lists SLA trackers matching a filter.
5907
+ *
5908
+ * @tags slas
5909
+ * @name SlaTrackersListPost
5910
+ * @request POST:/sla-trackers.list
5911
+ * @secure
5912
+ */
5913
+ slaTrackersListPost: (data: SlaTrackersListRequest, params?: RequestParams) => Promise<AxiosResponse<SlaTrackersListResponse, any>>;
5914
+ /**
5915
+ * @description Assigns the SLA to a set of Rev organizations.
5916
+ *
5917
+ * @tags slas
5918
+ * @name SlasAssign
5919
+ * @request POST:/slas.assign
5920
+ * @secure
5921
+ */
5922
+ slasAssign: (data: SlasAssignRequest, params?: RequestParams) => Promise<AxiosResponse<SlasAssignResponse, any>>;
5923
+ /**
5924
+ * @description Creates an SLA in draft status.
5925
+ *
5926
+ * @tags slas
5927
+ * @name SlasCreate
5928
+ * @request POST:/slas.create
5929
+ * @secure
5930
+ */
5931
+ slasCreate: (data: SlasCreateRequest, params?: RequestParams) => Promise<AxiosResponse<SlasCreateResponse, any>>;
5932
+ /**
5933
+ * @description Gets an SLA.
5934
+ *
5935
+ * @tags slas
5936
+ * @name SlasGet
5937
+ * @request GET:/slas.get
5938
+ * @secure
5939
+ */
5940
+ slasGet: (query: {
5941
+ /** The ID of the SLA to get. */
5942
+ id: string;
5943
+ }, params?: RequestParams) => Promise<AxiosResponse<SlasGetResponse, any>>;
5944
+ /**
5945
+ * @description Gets an SLA.
5946
+ *
5947
+ * @tags slas
5948
+ * @name SlasGetPost
5949
+ * @request POST:/slas.get
5950
+ * @secure
5951
+ */
5952
+ slasGetPost: (data: SlasGetRequest, params?: RequestParams) => Promise<AxiosResponse<SlasGetResponse, any>>;
5953
+ /**
5954
+ * @description Lists SLAs matching a filter.
5955
+ *
5956
+ * @tags slas
5957
+ * @name SlasList
5958
+ * @request GET:/slas.list
5959
+ * @secure
5960
+ */
5961
+ slasList: (query?: {
5962
+ /** The object types the SLA applies to. */
5963
+ applies_to?: SlaAppliesTo[];
5964
+ /**
5965
+ * The Filter operator to be applied on the applies to object types
5966
+ * filter.
5967
+ */
5968
+ applies_to_op?: SlasFilterAppliesToOperatorType;
5969
+ /**
5970
+ * The cursor to resume iteration from. If not provided, then iteration
5971
+ * starts from the beginning.
5972
+ */
5973
+ cursor?: string;
5974
+ /**
5975
+ * The maximum number of SLAs to return. The default is '50'.
5976
+ * @format int32
5977
+ */
5978
+ limit?: number;
5979
+ /**
5980
+ * The iteration mode to use, otherwise if not set, then "after" is
5981
+ * used.
5982
+ */
5983
+ mode?: ListMode;
5984
+ /** The SLA types the filter matches. */
5985
+ sla_type?: SlaType[];
5986
+ /** Fields to sort the SLAs by and the direction to sort them. */
5987
+ sort_by?: string[];
5988
+ /** The SLA statuses the filter matches. */
5989
+ status?: SlaStatus[];
5990
+ }, params?: RequestParams) => Promise<AxiosResponse<SlasListResponse, any>>;
5991
+ /**
5992
+ * @description Lists SLAs matching a filter.
5993
+ *
5994
+ * @tags slas
5995
+ * @name SlasListPost
5996
+ * @request POST:/slas.list
5997
+ * @secure
5998
+ */
5999
+ slasListPost: (data: SlasListRequest, params?: RequestParams) => Promise<AxiosResponse<SlasListResponse, any>>;
6000
+ /**
6001
+ * @description Changes the status of an SLA.
6002
+ *
6003
+ * @tags slas
6004
+ * @name SlasTransition
6005
+ * @request POST:/slas.transition
6006
+ * @secure
6007
+ */
6008
+ slasTransition: (data: SlasTransitionRequest, params?: RequestParams) => Promise<AxiosResponse<SlasTransitionResponse, any>>;
6009
+ /**
6010
+ * @description Updates a draft SLA.
6011
+ *
6012
+ * @tags slas
6013
+ * @name SlasUpdate
6014
+ * @request POST:/slas.update
6015
+ * @secure
6016
+ */
6017
+ slasUpdate: (data: SlasUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<SlasUpdateResponse, any>>;
5285
6018
  /**
5286
6019
  * @description Creates a new tag, which is used to create associations between objects and a logical concept denoted by the tag's name.
5287
6020
  *