@devrev/typescript-sdk 1.1.28 → 1.1.30

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.
@@ -206,7 +206,8 @@ export interface AccountsUpdateResponse {
206
206
  export interface ArchetypeMetricTarget {
207
207
  /**
208
208
  * If true, the schedule attached to this metric is out of schedule at
209
- * the time of the query.
209
+ * the time of the query. It is not set for metrics in *completed*
210
+ * stage.
210
211
  */
211
212
  is_out_of_schedule?: boolean;
212
213
  metric_definition: MetricDefinitionSummary;
@@ -380,6 +381,11 @@ export interface AtomBaseSummary {
380
381
  * authentication connection that is set up for a Dev organization.
381
382
  */
382
383
  export type AuthConnection = (AuthConnectionOptionsAzureAd | AuthConnectionOptionsGoogleApps | AuthConnectionOptionsOidc | AuthConnectionOptionsSaml | AuthConnectionOptionsSocial) & {
384
+ /**
385
+ * Defines the type for the authentication connection. The configuration
386
+ * for each authentication connection will depend on the type value.
387
+ */
388
+ type: AuthConnectionType;
383
389
  /**
384
390
  * Display name of the authentication connection. This name will be
385
391
  * visible to all the users when they sign in to this Dev
@@ -395,11 +401,6 @@ export type AuthConnection = (AuthConnectionOptionsAzureAd | AuthConnectionOptio
395
401
  enabled?: boolean;
396
402
  /** ID of the authentication connection. */
397
403
  id: string;
398
- /**
399
- * Defines the type for the authentication connection. The configuration
400
- * for each authentication connection will depend on the type value.
401
- */
402
- type: AuthConnectionType;
403
404
  };
404
405
  /**
405
406
  * auth-connection-options-azure-ad
@@ -534,11 +535,11 @@ export declare enum AuthTokenSubjectTokenType {
534
535
  UrnDevrevParamsOauthTokenTypeJwtAuth0 = "urn:devrev:params:oauth:token-type:jwt:auth0",
535
536
  UrnDevrevParamsOauthTokenTypeJwtDev = "urn:devrev:params:oauth:token-type:jwt:dev",
536
537
  UrnDevrevParamsOauthTokenTypeRat = "urn:devrev:params:oauth:token-type:rat",
538
+ UrnDevrevParamsOauthTokenTypeRev = "urn:devrev:params:oauth:token-type:rev",
537
539
  UrnDevrevParamsOauthTokenTypeRevinfo = "urn:devrev:params:oauth:token-type:revinfo",
538
540
  UrnDevrevParamsOauthTokenTypeSession = "urn:devrev:params:oauth:token-type:session",
539
541
  UrnDevrevParamsOauthTokenTypeSysu = "urn:devrev:params:oauth:token-type:sysu",
540
542
  UrnDevrevParamsOauthTokenTypeUserinfo = "urn:devrev:params:oauth:token-type:userinfo",
541
- UrnDevrevParamsOauthTokenTypeUserinfoProfile = "urn:devrev:params:oauth:token-type:userinfo:profile",
542
543
  UrnIetfParamsOauthTokenTypeJwt = "urn:ietf:params:oauth:token-type:jwt"
543
544
  }
544
545
  /** The type of the issued token. Bearer is the only supported token type. */
@@ -552,6 +553,11 @@ export declare enum AuthTokenTokenType {
552
553
  export interface AuthTokensAccountTraits {
553
554
  /** The display name of the account. */
554
555
  display_name?: string;
556
+ /**
557
+ * List of company's domain names on accounts. Example -
558
+ * ['devrev.ai'].
559
+ */
560
+ domains?: string[];
555
561
  }
556
562
  /**
557
563
  * auth-tokens-create-request
@@ -703,7 +709,10 @@ export interface AuthTokensOrgTraits {
703
709
  description?: string;
704
710
  /** The display name of the Rev org. */
705
711
  display_name?: string;
706
- /** The domain of the Rev org. */
712
+ /**
713
+ * The domain of the Rev org.
714
+ * @deprecated
715
+ */
707
716
  domain?: string;
708
717
  /** Phone numbers of the Rev org. */
709
718
  phone_numbers?: string[];
@@ -720,7 +729,10 @@ export interface AuthTokensRevInfo {
720
729
  account_ref?: string;
721
730
  /** Carries account info. */
722
731
  account_traits?: AuthTokensAccountTraits;
723
- /** An identifier which uniquely identifies a Rev org. */
732
+ /**
733
+ * An identifier which uniquely identifies a Rev org.
734
+ * @deprecated
735
+ */
724
736
  org_ref?: string;
725
737
  /** Carries Rev org info. */
726
738
  org_traits?: AuthTokensOrgTraits;
@@ -818,6 +830,11 @@ export interface ConversationMetadata {
818
830
  */
819
831
  url_context?: string;
820
832
  }
833
+ /** conversation-summary */
834
+ export type ConversationSummary = AtomBaseSummary & {
835
+ /** Title of the conversation object. */
836
+ title?: string;
837
+ };
821
838
  /**
822
839
  * date-filter
823
840
  * Provides ways to specify date ranges on objects.
@@ -886,6 +903,11 @@ export declare enum DateTimePresetType {
886
903
  * Request to create a new enterprise authentication connection.
887
904
  */
888
905
  export type DevOrgAuthConnectionsCreateRequest = (AuthConnectionOptionsAzureAd | AuthConnectionOptionsGoogleApps | AuthConnectionOptionsOidc | AuthConnectionOptionsSaml) & {
906
+ /**
907
+ * Defines the type for the authentication connection. Different types of
908
+ * authentication connections have different configuration parameters.
909
+ */
910
+ type: DevOrgAuthConnectionsCreateRequestType;
889
911
  /**
890
912
  * Display name of the authentication connection. This name will be
891
913
  * visible to all the users when they sign in to this Dev
@@ -893,11 +915,6 @@ export type DevOrgAuthConnectionsCreateRequest = (AuthConnectionOptionsAzureAd |
893
915
  * it would appear on the login button as 'Log in to abclogin'.
894
916
  */
895
917
  display_name?: string;
896
- /**
897
- * Defines the type for the authentication connection. Different types of
898
- * authentication connections have different configuration parameters.
899
- */
900
- type: DevOrgAuthConnectionsCreateRequestType;
901
918
  };
902
919
  /**
903
920
  * Defines the type for the authentication connection. Different types of
@@ -980,6 +997,12 @@ export interface DevOrgAuthConnectionsToggleRequest {
980
997
  * organization.
981
998
  */
982
999
  export type DevOrgAuthConnectionsUpdateRequest = (AuthConnectionOptionsAzureAd | AuthConnectionOptionsGoogleApps | AuthConnectionOptionsOidc | AuthConnectionOptionsSaml | Empty) & {
1000
+ /**
1001
+ * Specifies the type for the authentication connection. Different types
1002
+ * of authentication connections have different configuration parameters
1003
+ * that can be updated.
1004
+ */
1005
+ type?: DevOrgAuthConnectionsUpdateRequestType;
983
1006
  /**
984
1007
  * New display name of the authentication connection. This name will
985
1008
  * be visible to all the users when they sign in to this Dev
@@ -989,12 +1012,6 @@ export type DevOrgAuthConnectionsUpdateRequest = (AuthConnectionOptionsAzureAd |
989
1012
  display_name?: string;
990
1013
  /** ID of the authentication connection which is to be updated. */
991
1014
  id: string;
992
- /**
993
- * Specifies the type for the authentication connection. Different types
994
- * of authentication connections have different configuration parameters
995
- * that can be updated.
996
- */
997
- type?: DevOrgAuthConnectionsUpdateRequestType;
998
1015
  };
999
1016
  /**
1000
1017
  * Specifies the type for the authentication connection. Different types
@@ -1133,24 +1150,24 @@ export type Enhancement = PartBase;
1133
1150
  export type EnhancementSummary = PartBaseSummary;
1134
1151
  /**
1135
1152
  * enum-value
1136
- * Enum Value defines the structure for an enum.
1153
+ * The properties of an enum value.
1137
1154
  */
1138
1155
  export interface EnumValue {
1139
1156
  /**
1140
- * Unique ID of the enum value. This is immutable.
1157
+ * The unique ID of the enum value.
1141
1158
  * @format int64
1142
1159
  */
1143
1160
  id: number;
1144
- /** Display label of the enum value. This is mutable. */
1161
+ /** The display label of the enum value. */
1145
1162
  label: string;
1146
1163
  /**
1147
- * Order number of the enum value. This is mutable.
1164
+ * Used for determining the relative order of the enum value.
1148
1165
  * @format int64
1149
1166
  */
1150
1167
  ordinal: number;
1151
1168
  }
1152
1169
  /** error-bad-request */
1153
- export type ErrorBadRequest = ErrorBase & (ErrorBadRequestArtifactAlreadyAttachedToAParent | ErrorBadRequestBadRequest | ErrorBadRequestInvalidApiVersion | ErrorBadRequestInvalidEnumValue | ErrorBadRequestInvalidField | ErrorBadRequestInvalidId | ErrorBadRequestMissingDependency | ErrorBadRequestMissingRequiredField | ErrorBadRequestParseError | ErrorBadRequestStaleSchemaFragments | ErrorBadRequestUnexpectedIdType | ErrorBadRequestUnexpectedJsonType | ErrorBadRequestValueNotPermitted) & {
1170
+ export type ErrorBadRequest = ErrorBase & (ErrorBadRequestArtifactAlreadyAttachedToAParent | ErrorBadRequestBadRequest | ErrorBadRequestInvalidApiVersion | ErrorBadRequestInvalidEnumValue | ErrorBadRequestInvalidField | ErrorBadRequestInvalidId | ErrorBadRequestMergeWorksError | ErrorBadRequestMissingDependency | ErrorBadRequestMissingRequiredField | ErrorBadRequestParseError | ErrorBadRequestStaleSchemaFragments | ErrorBadRequestUnexpectedIdType | ErrorBadRequestUnexpectedJsonType | ErrorBadRequestValueNotPermitted) & {
1154
1171
  type: ErrorBadRequestType;
1155
1172
  };
1156
1173
  /** error-bad-request-artifact-already-attached-to-a-parent */
@@ -1186,6 +1203,55 @@ export interface ErrorBadRequestInvalidId {
1186
1203
  /** The field whose ID is invalid. */
1187
1204
  field_name: string;
1188
1205
  }
1206
+ /** error-bad-request-merge-works-error */
1207
+ export interface ErrorBadRequestMergeWorksError {
1208
+ /** The errors encountered during the validation of the merge. */
1209
+ errors?: ErrorBadRequestMergeWorksErrorError[];
1210
+ }
1211
+ /** error-bad-request-merge-works-error-error */
1212
+ export interface ErrorBadRequestMergeWorksErrorError {
1213
+ already_merged?: ErrorBadRequestMergeWorksErrorErrorAlreadyMerged;
1214
+ closed?: ErrorBadRequestMergeWorksErrorErrorClosed;
1215
+ /** The details of the error. */
1216
+ details: string;
1217
+ different_reporters?: ErrorBadRequestMergeWorksErrorErrorDifferentReporters;
1218
+ different_workspace?: ErrorBadRequestMergeWorksErrorErrorDifferentWorkspace;
1219
+ invalid_stage_transition?: ErrorBadRequestMergeWorksErrorErrorInvalidStageTransition;
1220
+ locked?: ErrorBadRequestMergeWorksErrorErrorLocked;
1221
+ subtype?: 'already_merged' | 'closed' | 'different_reporters' | 'different_workspace' | 'invalid_stage_transition' | 'locked';
1222
+ /** The ID of the work which failed the validation. */
1223
+ work: string;
1224
+ }
1225
+ /** error-bad-request-merge-works-error-error-already-merged */
1226
+ export interface ErrorBadRequestMergeWorksErrorErrorAlreadyMerged {
1227
+ /** ID of the work into which the work was merged. */
1228
+ merged_into: string;
1229
+ }
1230
+ /** error-bad-request-merge-works-error-error-closed */
1231
+ export type ErrorBadRequestMergeWorksErrorErrorClosed = object;
1232
+ /** error-bad-request-merge-works-error-error-different-reporters */
1233
+ export interface ErrorBadRequestMergeWorksErrorErrorDifferentReporters {
1234
+ /** The reporters of the primary work. */
1235
+ primary_reporters?: string[];
1236
+ /** The reporters of the secondary work. */
1237
+ secondary_reporters?: string[];
1238
+ }
1239
+ /** error-bad-request-merge-works-error-error-different-workspace */
1240
+ export interface ErrorBadRequestMergeWorksErrorErrorDifferentWorkspace {
1241
+ /** The workspace of the primary work. */
1242
+ primary_workspace?: string;
1243
+ /** The workspace of the secondary work. */
1244
+ secondary_workspace?: string;
1245
+ }
1246
+ /** error-bad-request-merge-works-error-error-invalid-stage-transition */
1247
+ export interface ErrorBadRequestMergeWorksErrorErrorInvalidStageTransition {
1248
+ /** The current stage of the work. */
1249
+ current_stage: string;
1250
+ /** The stage to which the transition isn't allowed. */
1251
+ requested_stage: string;
1252
+ }
1253
+ /** error-bad-request-merge-works-error-error-locked */
1254
+ export type ErrorBadRequestMergeWorksErrorErrorLocked = object;
1189
1255
  /** error-bad-request-missing-dependency */
1190
1256
  export interface ErrorBadRequestMissingDependency {
1191
1257
  /** The dependent fields. */
@@ -1229,6 +1295,7 @@ export declare enum ErrorBadRequestType {
1229
1295
  InvalidEnumValue = "invalid_enum_value",
1230
1296
  InvalidField = "invalid_field",
1231
1297
  InvalidId = "invalid_id",
1298
+ MergeWorksError = "merge_works_error",
1232
1299
  MissingDependency = "missing_dependency",
1233
1300
  MissingRequiredField = "missing_required_field",
1234
1301
  ParseError = "parse_error",
@@ -1293,12 +1360,12 @@ export declare enum ErrorForbiddenType {
1293
1360
  }
1294
1361
  /** error-internal-server-error */
1295
1362
  export type ErrorInternalServerError = ErrorBase & ErrorInternalServerErrorInternalError & {
1363
+ type: ErrorInternalServerErrorType;
1296
1364
  /**
1297
1365
  * A unique ID that's generated for the error that can be used for
1298
1366
  * inquiry.
1299
1367
  */
1300
1368
  reference_id?: string;
1301
- type: ErrorInternalServerErrorType;
1302
1369
  };
1303
1370
  /** error-internal-server-error-internal-error */
1304
1371
  export type ErrorInternalServerErrorInternalError = object;
@@ -1325,12 +1392,12 @@ export declare enum ErrorServiceUnavailableType {
1325
1392
  }
1326
1393
  /** error-too-many-requests */
1327
1394
  export type ErrorTooManyRequests = ErrorBase & ErrorTooManyRequestsTooManyRequests & {
1395
+ type: ErrorTooManyRequestsType;
1328
1396
  /**
1329
1397
  * The number of seconds after which the client should retry.
1330
1398
  * @format int64
1331
1399
  */
1332
1400
  retry_after?: number;
1333
- type: ErrorTooManyRequestsType;
1334
1401
  };
1335
1402
  /** error-too-many-requests-too-many-requests */
1336
1403
  export type ErrorTooManyRequestsTooManyRequests = object;
@@ -1357,10 +1424,12 @@ export interface EventAccountDeleted {
1357
1424
  * @example "ACC-12345"
1358
1425
  */
1359
1426
  id: string;
1427
+ old_account?: Account;
1360
1428
  }
1361
1429
  /** event-account-updated */
1362
1430
  export interface EventAccountUpdated {
1363
1431
  account: Account;
1432
+ old_account?: Account;
1364
1433
  }
1365
1434
  /** event-conversation-created */
1366
1435
  export interface EventConversationCreated {
@@ -1383,10 +1452,51 @@ export interface EventDevUserCreated {
1383
1452
  export interface EventDevUserDeleted {
1384
1453
  /** The ID of the Dev user that was deleted. */
1385
1454
  id: string;
1455
+ old_dev_user?: DevUser;
1386
1456
  }
1387
1457
  /** event-dev-user-updated */
1388
1458
  export interface EventDevUserUpdated {
1389
1459
  dev_user: DevUser;
1460
+ old_dev_user?: DevUser;
1461
+ }
1462
+ /** event-group-created */
1463
+ export interface EventGroupCreated {
1464
+ group: Group;
1465
+ }
1466
+ /** event-group-deleted */
1467
+ export interface EventGroupDeleted {
1468
+ /** The ID of the group that was deleted. */
1469
+ id: string;
1470
+ old_group?: Group;
1471
+ }
1472
+ /** event-group-member-added */
1473
+ export interface EventGroupMemberAdded {
1474
+ group: GroupSummary;
1475
+ member: UserSummary;
1476
+ }
1477
+ /** event-group-member-removed */
1478
+ export interface EventGroupMemberRemoved {
1479
+ group: GroupSummary;
1480
+ member: UserSummary;
1481
+ }
1482
+ /** event-group-updated */
1483
+ export interface EventGroupUpdated {
1484
+ group: Group;
1485
+ old_group?: Group;
1486
+ }
1487
+ /** event-link-created */
1488
+ export interface EventLinkCreated {
1489
+ link: Link;
1490
+ }
1491
+ /** event-link-deleted */
1492
+ export interface EventLinkDeleted {
1493
+ /** The ID of the link that was deleted. */
1494
+ id: string;
1495
+ }
1496
+ /** event-link-updated */
1497
+ export interface EventLinkUpdated {
1498
+ link: Link;
1499
+ old_link?: Link;
1390
1500
  }
1391
1501
  /** event-part-created */
1392
1502
  export interface EventPartCreated {
@@ -1399,9 +1509,11 @@ export interface EventPartDeleted {
1399
1509
  * @example "PROD-12345"
1400
1510
  */
1401
1511
  id: string;
1512
+ old_part?: Part;
1402
1513
  }
1403
1514
  /** event-part-updated */
1404
1515
  export interface EventPartUpdated {
1516
+ old_part?: Part;
1405
1517
  part: Part;
1406
1518
  }
1407
1519
  /** event-rev-org-created */
@@ -1415,9 +1527,11 @@ export interface EventRevOrgDeleted {
1415
1527
  * @example "REV-AbCdEfGh"
1416
1528
  */
1417
1529
  id: string;
1530
+ old_rev_org?: RevOrg;
1418
1531
  }
1419
1532
  /** event-rev-org-updated */
1420
1533
  export interface EventRevOrgUpdated {
1534
+ old_rev_org?: RevOrg;
1421
1535
  rev_org: RevOrg;
1422
1536
  }
1423
1537
  /** event-rev-user-created */
@@ -1428,9 +1542,11 @@ export interface EventRevUserCreated {
1428
1542
  export interface EventRevUserDeleted {
1429
1543
  /** The ID of the Rev user that was deleted. */
1430
1544
  id: string;
1545
+ old_rev_user?: RevUser;
1431
1546
  }
1432
1547
  /** event-rev-user-updated */
1433
1548
  export interface EventRevUserUpdated {
1549
+ old_rev_user?: RevUser;
1434
1550
  rev_user: RevUser;
1435
1551
  }
1436
1552
  /** event-sla-tracker-created */
@@ -1518,9 +1634,11 @@ export interface EventWorkDeleted {
1518
1634
  * @example "ISS-12345"
1519
1635
  */
1520
1636
  id: string;
1637
+ old_work?: Work;
1521
1638
  }
1522
1639
  /** event-work-updated */
1523
1640
  export interface EventWorkUpdated {
1641
+ old_work?: Work;
1524
1642
  work: Work;
1525
1643
  }
1526
1644
  /**
@@ -1541,6 +1659,8 @@ export interface ExternalIdentity {
1541
1659
  export type Feature = PartBase;
1542
1660
  /** feature-summary */
1543
1661
  export type FeatureSummary = PartBaseSummary;
1662
+ /** group */
1663
+ export type Group = AtomBase;
1544
1664
  /** group-summary */
1545
1665
  export type GroupSummary = AtomBaseSummary;
1546
1666
  /** issue */
@@ -1549,6 +1669,7 @@ export type Issue = WorkBase & {
1549
1669
  developed_with?: PartSummary[];
1550
1670
  /** Priority of the work based upon impact and criticality. */
1551
1671
  priority?: IssuePriority;
1672
+ sla_tracker?: SlaTrackerSummary;
1552
1673
  /** Vista group item. */
1553
1674
  sprint?: VistaGroupItemSummary;
1554
1675
  /**
@@ -1565,12 +1686,19 @@ export declare enum IssuePriority {
1565
1686
  P2 = "p2",
1566
1687
  P3 = "p3"
1567
1688
  }
1689
+ /** issue-summary */
1690
+ export type IssueSummary = WorkBaseSummary & {
1691
+ /** Priority of the work based upon impact and criticality. */
1692
+ priority?: IssuePriority;
1693
+ /** Vista group item. */
1694
+ sprint?: VistaGroupItemSummary;
1695
+ };
1568
1696
  /**
1569
1697
  * job-history-item
1570
1698
  * Defines a job history line item.
1571
1699
  */
1572
1700
  export interface JobHistoryItem {
1573
- /** Enum Value defines the structure for an enum. */
1701
+ /** The properties of an enum value. */
1574
1702
  employment_status?: EnumValue;
1575
1703
  /**
1576
1704
  * The end date of the job, or not specified if current.
@@ -1591,6 +1719,13 @@ export interface JobHistoryItem {
1591
1719
  /** The job title for the user. */
1592
1720
  title?: string;
1593
1721
  }
1722
+ /** keyrings-create-callback-request */
1723
+ export interface KeyringsCreateCallbackRequest {
1724
+ /** Code to exchange for an access token. */
1725
+ code: string;
1726
+ /** State value given to the authorization request. */
1727
+ state: string;
1728
+ }
1594
1729
  /**
1595
1730
  * legacy-stage
1596
1731
  * Describes the current stage of a work item.
@@ -1599,6 +1734,49 @@ export interface LegacyStage {
1599
1734
  /** Current stage name of the work item. */
1600
1735
  name: string;
1601
1736
  }
1737
+ /**
1738
+ * legacy-stage-summary
1739
+ * Describes the current stage of a work item.
1740
+ */
1741
+ export interface LegacyStageSummary {
1742
+ /** Current stage name of the work item. */
1743
+ name: string;
1744
+ }
1745
+ /** link */
1746
+ export type Link = AtomBase & {
1747
+ /** Type of link used to define the relationship. */
1748
+ link_type: LinkType;
1749
+ source: LinkEndpointSummary;
1750
+ target: LinkEndpointSummary;
1751
+ };
1752
+ /** link-endpoint-summary */
1753
+ export type LinkEndpointSummary = (CapabilitySummary | ConversationSummary | EnhancementSummary | FeatureSummary | IssueSummary | ProductSummary | TicketSummary) & {
1754
+ type: LinkEndpointType;
1755
+ };
1756
+ export declare enum LinkEndpointType {
1757
+ Capability = "capability",
1758
+ Conversation = "conversation",
1759
+ Enhancement = "enhancement",
1760
+ Feature = "feature",
1761
+ Issue = "issue",
1762
+ Product = "product",
1763
+ Ticket = "ticket"
1764
+ }
1765
+ /** Type of link used to define the relationship. */
1766
+ export declare enum LinkType {
1767
+ CustomLink = "custom_link",
1768
+ DevelopedWith = "developed_with",
1769
+ Imports = "imports",
1770
+ IsAnalyzedBy = "is_analyzed_by",
1771
+ IsConvertedTo = "is_converted_to",
1772
+ IsDependentOn = "is_dependent_on",
1773
+ IsDuplicateOf = "is_duplicate_of",
1774
+ IsMergedInto = "is_merged_into",
1775
+ IsParentOf = "is_parent_of",
1776
+ IsPartOf = "is_part_of",
1777
+ IsRelatedTo = "is_related_to",
1778
+ Serves = "serves"
1779
+ }
1602
1780
  /**
1603
1781
  * The iteration mode to use. If "after", then entries after the provided
1604
1782
  * cursor will be returned, or if no cursor is provided, then from the
@@ -1713,6 +1891,8 @@ export type PartBase = AtomBase & {
1713
1891
  export type PartBaseSummary = AtomBaseSummary & {
1714
1892
  /** Name of the part. */
1715
1893
  name: string;
1894
+ /** The users that own the part. */
1895
+ owned_by: UserSummary[];
1716
1896
  };
1717
1897
  /** part-summary */
1718
1898
  export type PartSummary = (CapabilitySummary | EnhancementSummary | FeatureSummary | ProductSummary) & {
@@ -1726,6 +1906,7 @@ export declare enum PartType {
1726
1906
  }
1727
1907
  /** parts-create-request */
1728
1908
  export type PartsCreateRequest = (PartsCreateRequestCapability | PartsCreateRequestEnhancement | PartsCreateRequestFeature | PartsCreateRequestProduct) & {
1909
+ type: PartType;
1729
1910
  /**
1730
1911
  * The IDs of the artifacts.
1731
1912
  * @example ["ARTIFACT-12345"]
@@ -1740,7 +1921,6 @@ export type PartsCreateRequest = (PartsCreateRequestCapability | PartsCreateRequ
1740
1921
  * @example ["DEVU-12345"]
1741
1922
  */
1742
1923
  owned_by: string[];
1743
- type: PartType;
1744
1924
  };
1745
1925
  /** parts-create-request-capability */
1746
1926
  export interface PartsCreateRequestCapability {
@@ -1812,6 +1992,8 @@ export interface PartsGetResponse {
1812
1992
  }
1813
1993
  /** parts-list-request */
1814
1994
  export interface PartsListRequest {
1995
+ /** Filters for parts of the provided type(s). */
1996
+ type?: PartType[];
1815
1997
  /**
1816
1998
  * Filters for parts created by any of these users.
1817
1999
  * @example ["DEVU-12345"]
@@ -1844,8 +2026,6 @@ export interface PartsListRequest {
1844
2026
  owned_by?: string[];
1845
2027
  /** The filter for specifying parent part. */
1846
2028
  parent_part?: ParentPartFilter;
1847
- /** Filters for parts of the provided type(s). */
1848
- type?: PartType[];
1849
2029
  }
1850
2030
  /** parts-list-response */
1851
2031
  export interface PartsListResponse {
@@ -1864,6 +2044,7 @@ export interface PartsListResponse {
1864
2044
  }
1865
2045
  /** parts-update-request */
1866
2046
  export type PartsUpdateRequest = (Empty | PartsUpdateRequestCapability | PartsUpdateRequestEnhancement | PartsUpdateRequestFeature | PartsUpdateRequestProduct) & {
2047
+ type?: PartType;
1867
2048
  artifacts?: PartsUpdateRequestArtifacts;
1868
2049
  /** The updated description of the part. */
1869
2050
  description?: string;
@@ -1875,7 +2056,6 @@ export type PartsUpdateRequest = (Empty | PartsUpdateRequestCapability | PartsUp
1875
2056
  /** The updated name of the part. */
1876
2057
  name?: string;
1877
2058
  owned_by?: PartsUpdateRequestOwnedBy;
1878
- type?: PartType;
1879
2059
  };
1880
2060
  /** parts-update-request-artifacts */
1881
2061
  export interface PartsUpdateRequestArtifacts {
@@ -1924,6 +2104,11 @@ export interface PartsUpdateResponse {
1924
2104
  export type Product = PartBase;
1925
2105
  /** product-summary */
1926
2106
  export type ProductSummary = PartBaseSummary;
2107
+ /**
2108
+ * removed-sla-metric-history
2109
+ * User, timestamp and metric id of removed metrics.
2110
+ */
2111
+ export type RemovedSlaMetricHistory = object;
1927
2112
  /** rev-org */
1928
2113
  export type RevOrg = OrgBase & {
1929
2114
  /** Description of the Rev organization. */
@@ -1950,7 +2135,10 @@ export interface RevOrgsCreateRequest {
1950
2135
  description?: string;
1951
2136
  /** Name of the Rev organization. */
1952
2137
  display_name: string;
1953
- /** Company's domain name. Example - 'devrev.ai'. */
2138
+ /**
2139
+ * Company's domain name. Example - 'devrev.ai'.
2140
+ * @deprecated
2141
+ */
1954
2142
  domain?: string;
1955
2143
  /** The environment of the Org. Defaults to 'production' if not specified. */
1956
2144
  environment?: OrgEnvironment;
@@ -2075,7 +2263,10 @@ export interface RevOrgsUpdateRequest {
2075
2263
  description?: string;
2076
2264
  /** Customer chosen name for the Rev organization. */
2077
2265
  display_name?: string;
2078
- /** Company's domain name. Example - 'devrev.ai'. */
2266
+ /**
2267
+ * Company's domain name. Example - 'devrev.ai'.
2268
+ * @deprecated
2269
+ */
2079
2270
  domain?: string;
2080
2271
  /** The environment of the Org. Defaults to 'production' if not specified. */
2081
2272
  environment?: OrgEnvironment;
@@ -2189,6 +2380,8 @@ export type SlaTracker = AtomBase & {
2189
2380
  applies_to_id?: string;
2190
2381
  /** Summary of the metrics target being tracked in the SLA tracker. */
2191
2382
  metric_target_summaries: ArchetypeMetricTarget[];
2383
+ /** User, timestamp and metric Id of removed metrics. */
2384
+ removed_sla_metric_history?: RemovedSlaMetricHistory[];
2192
2385
  sla?: SlaSummary;
2193
2386
  /**
2194
2387
  * Details of the applicable SLA policy. Can be omitted if no sla
@@ -2278,9 +2471,9 @@ export type SurveyResponse = AtomBase & {
2278
2471
  recipient?: UserSummary;
2279
2472
  /** Response for the survey. */
2280
2473
  response?: object;
2281
- /** Enum Value defines the structure for an enum. */
2474
+ /** The properties of an enum value. */
2282
2475
  response_channel?: EnumValue;
2283
- /** Enum Value defines the structure for an enum. */
2476
+ /** The properties of an enum value. */
2284
2477
  stage?: EnumValue;
2285
2478
  /** The ID of the survey for which response is taken. */
2286
2479
  survey?: string;
@@ -2502,6 +2695,8 @@ export type Ticket = WorkBase & {
2502
2695
  /** Whether the ticket needs a response. */
2503
2696
  needs_response?: boolean;
2504
2697
  rev_org?: OrgSummary;
2698
+ /** The properties of an enum value. */
2699
+ sentiment?: EnumValue;
2505
2700
  /** Severity of the ticket. */
2506
2701
  severity?: TicketSeverity;
2507
2702
  sla_tracker?: SlaTrackerSummary;
@@ -2513,7 +2708,8 @@ export declare enum TicketChannels {
2513
2708
  Email = "email",
2514
2709
  Plug = "plug",
2515
2710
  Slack = "slack",
2516
- Twilio = "twilio"
2711
+ Twilio = "twilio",
2712
+ TwilioSms = "twilio_sms"
2517
2713
  }
2518
2714
  /** Severity of the ticket. */
2519
2715
  export declare enum TicketSeverity {
@@ -2522,6 +2718,12 @@ export declare enum TicketSeverity {
2522
2718
  Low = "low",
2523
2719
  Medium = "medium"
2524
2720
  }
2721
+ /** ticket-summary */
2722
+ export type TicketSummary = WorkBaseSummary & {
2723
+ rev_org?: OrgSummary;
2724
+ /** Severity of the ticket. */
2725
+ severity?: TicketSeverity;
2726
+ };
2525
2727
  /** timeline-comment */
2526
2728
  export type TimelineComment = TimelineEntryBase & {
2527
2729
  /** The artifacts for the comment. */
@@ -2549,6 +2751,7 @@ export declare enum TimelineCommentBodyType {
2549
2751
  * The request to create a timeline entry for an object.
2550
2752
  */
2551
2753
  export type TimelineEntriesCreateRequest = TimelineEntriesCreateRequestTimelineComment & {
2754
+ type: TimelineEntriesCreateRequestType;
2552
2755
  /**
2553
2756
  * If set, then the entry is ephemeral and will be deleted after the
2554
2757
  * provided time. The minimum value should be at least a minute more
@@ -2569,7 +2772,6 @@ export type TimelineEntriesCreateRequest = TimelineEntriesCreateRequestTimelineC
2569
2772
  * @example ["DEVU-12345"]
2570
2773
  */
2571
2774
  private_to?: string[];
2572
- type: TimelineEntriesCreateRequestType;
2573
2775
  /**
2574
2776
  * The visibility of the entry. If 'private', then the entry is only
2575
2777
  * visible to the creator, 'internal' is visible with the Dev
@@ -2697,12 +2899,12 @@ export interface TimelineEntriesListResponse {
2697
2899
  * The request to update a timeline entry.
2698
2900
  */
2699
2901
  export type TimelineEntriesUpdateRequest = TimelineEntriesUpdateRequestTimelineComment & {
2902
+ type: TimelineEntriesUpdateRequestType;
2700
2903
  /**
2701
2904
  * The ID of the timeline entry to update.
2702
2905
  * @example "don:core:<partition>:devo/<dev-org-id>:ticket/123:timeline_event/<timeline-event-id>"
2703
2906
  */
2704
2907
  id: string;
2705
- type: TimelineEntriesUpdateRequestType;
2706
2908
  };
2707
2909
  /** timeline-entries-update-request-timeline-comment */
2708
2910
  export interface TimelineEntriesUpdateRequestTimelineComment {
@@ -2878,6 +3080,8 @@ export declare enum VistaGroupItemState {
2878
3080
  * Vista group item.
2879
3081
  */
2880
3082
  export interface VistaGroupItemSummary {
3083
+ /** Type of the group object. */
3084
+ type: VistaGroupItemType;
2881
3085
  /**
2882
3086
  * Timestamp when the vista ends.
2883
3087
  * @format date-time
@@ -2896,8 +3100,6 @@ export interface VistaGroupItemSummary {
2896
3100
  start_date?: string;
2897
3101
  /** Defines the state of the group item. */
2898
3102
  state?: VistaGroupItemState;
2899
- /** Type of the group object. */
2900
- type: VistaGroupItemType;
2901
3103
  }
2902
3104
  /** Type of the group object. */
2903
3105
  export declare enum VistaGroupItemType {
@@ -2920,6 +3122,8 @@ export type Webhook = AtomBase & {
2920
3122
  };
2921
3123
  /** webhook-event-request */
2922
3124
  export interface WebhookEventRequest {
3125
+ /** The event types that the webhook will receive. */
3126
+ type?: WebhookEventType;
2923
3127
  account_created?: EventAccountCreated;
2924
3128
  account_deleted?: EventAccountDeleted;
2925
3129
  account_updated?: EventAccountUpdated;
@@ -2929,8 +3133,16 @@ export interface WebhookEventRequest {
2929
3133
  dev_user_created?: EventDevUserCreated;
2930
3134
  dev_user_deleted?: EventDevUserDeleted;
2931
3135
  dev_user_updated?: EventDevUserUpdated;
3136
+ group_created?: EventGroupCreated;
3137
+ group_deleted?: EventGroupDeleted;
3138
+ group_member_added?: EventGroupMemberAdded;
3139
+ group_member_removed?: EventGroupMemberRemoved;
3140
+ group_updated?: EventGroupUpdated;
2932
3141
  /** The event's ID. */
2933
3142
  id: string;
3143
+ link_created?: EventLinkCreated;
3144
+ link_deleted?: EventLinkDeleted;
3145
+ link_updated?: EventLinkUpdated;
2934
3146
  part_created?: EventPartCreated;
2935
3147
  part_deleted?: EventPartDeleted;
2936
3148
  part_updated?: EventPartUpdated;
@@ -2961,8 +3173,6 @@ export interface WebhookEventRequest {
2961
3173
  * @example "2023-01-01T12:00:00.000Z"
2962
3174
  */
2963
3175
  timestamp?: string;
2964
- /** The event types that the webhook will receive. */
2965
- type?: WebhookEventType;
2966
3176
  verify?: WebhookEventVerify;
2967
3177
  webhook_created?: EventWebhookCreated;
2968
3178
  webhook_deleted?: EventWebhookDeleted;
@@ -2996,6 +3206,14 @@ export declare enum WebhookEventType {
2996
3206
  DevUserCreated = "dev_user_created",
2997
3207
  DevUserDeleted = "dev_user_deleted",
2998
3208
  DevUserUpdated = "dev_user_updated",
3209
+ GroupCreated = "group_created",
3210
+ GroupDeleted = "group_deleted",
3211
+ GroupMemberAdded = "group_member_added",
3212
+ GroupMemberRemoved = "group_member_removed",
3213
+ GroupUpdated = "group_updated",
3214
+ LinkCreated = "link_created",
3215
+ LinkDeleted = "link_deleted",
3216
+ LinkUpdated = "link_updated",
2999
3217
  PartCreated = "part_created",
3000
3218
  PartDeleted = "part_deleted",
3001
3219
  PartUpdated = "part_updated",
@@ -3198,12 +3416,22 @@ export type WorkBase = AtomBase & {
3198
3416
  /** Title of the work object. */
3199
3417
  title: string;
3200
3418
  };
3419
+ /** work-base-summary */
3420
+ export type WorkBaseSummary = AtomBaseSummary & {
3421
+ /** The users that own the work. */
3422
+ owned_by: UserSummary[];
3423
+ /** Describes the current stage of a work item. */
3424
+ stage?: LegacyStageSummary;
3425
+ /** Title of the work object. */
3426
+ title: string;
3427
+ };
3201
3428
  export declare enum WorkType {
3202
3429
  Issue = "issue",
3203
3430
  Ticket = "ticket"
3204
3431
  }
3205
3432
  /** works-create-request */
3206
3433
  export type WorksCreateRequest = (WorksCreateRequestIssue | WorksCreateRequestTicket) & {
3434
+ type: WorkType;
3207
3435
  /**
3208
3436
  * The [part](https://devrev.ai/docs/product/parts) that the work
3209
3437
  * applies to. Specifying a part is required when creating tickets and
@@ -3242,7 +3470,6 @@ export type WorksCreateRequest = (WorksCreateRequestIssue | WorksCreateRequestTi
3242
3470
  target_close_date?: string;
3243
3471
  /** Title of the work object. */
3244
3472
  title: string;
3245
- type: WorkType;
3246
3473
  };
3247
3474
  /** works-create-request-issue */
3248
3475
  export interface WorksCreateRequestIssue {
@@ -3304,6 +3531,8 @@ export interface WorksDeleteRequest {
3304
3531
  export type WorksDeleteResponse = object;
3305
3532
  /** works-export-request */
3306
3533
  export interface WorksExportRequest {
3534
+ /** Filters for work of the provided types. */
3535
+ type?: WorkType[];
3307
3536
  /** Provides ways to specify date ranges on objects. */
3308
3537
  actual_close_date?: DateFilter;
3309
3538
  /**
@@ -3349,8 +3578,6 @@ export interface WorksExportRequest {
3349
3578
  /** Provides ways to specify date ranges on objects. */
3350
3579
  target_close_date?: DateFilter;
3351
3580
  ticket?: WorksFilterTicket;
3352
- /** Filters for work of the provided types. */
3353
- type?: WorkType[];
3354
3581
  }
3355
3582
  /** works-export-response */
3356
3583
  export interface WorksExportResponse {
@@ -3375,6 +3602,8 @@ export interface WorksFilterIssue {
3375
3602
  * @example ["REV-AbCdEfGh"]
3376
3603
  */
3377
3604
  rev_orgs?: string[];
3605
+ /** The filter for SLA summary. */
3606
+ sla_summary?: SlaSummaryFilter;
3378
3607
  /** Filters for issues with any of the sprint. */
3379
3608
  sprint?: string[];
3380
3609
  /** Provides ways to specify date ranges on objects. */
@@ -3419,6 +3648,8 @@ export interface WorksGetResponse {
3419
3648
  }
3420
3649
  /** works-list-request */
3421
3650
  export interface WorksListRequest {
3651
+ /** Filters for work of the provided types. */
3652
+ type?: WorkType[];
3422
3653
  /** Provides ways to specify date ranges on objects. */
3423
3654
  actual_close_date?: DateFilter;
3424
3655
  /**
@@ -3476,8 +3707,6 @@ export interface WorksListRequest {
3476
3707
  /** Provides ways to specify date ranges on objects. */
3477
3708
  target_close_date?: DateFilter;
3478
3709
  ticket?: WorksFilterTicket;
3479
- /** Filters for work of the provided types. */
3480
- type?: WorkType[];
3481
3710
  }
3482
3711
  /** works-list-response */
3483
3712
  export interface WorksListResponse {
@@ -3496,6 +3725,7 @@ export interface WorksListResponse {
3496
3725
  }
3497
3726
  /** works-update-request */
3498
3727
  export type WorksUpdateRequest = (Empty | WorksUpdateRequestIssue | WorksUpdateRequestTicket) & {
3728
+ type?: WorkType;
3499
3729
  /**
3500
3730
  * Updates the part that the work item applies to.
3501
3731
  * @example "PROD-12345"
@@ -3528,7 +3758,6 @@ export type WorksUpdateRequest = (Empty | WorksUpdateRequestIssue | WorksUpdateR
3528
3758
  target_close_date?: string | null;
3529
3759
  /** Updated title of the work object, or unchanged if not provided. */
3530
3760
  title?: string;
3531
- type?: WorkType;
3532
3761
  };
3533
3762
  /** works-update-request-artifacts */
3534
3763
  export interface WorksUpdateRequestArtifacts {
@@ -3620,6 +3849,11 @@ export interface WorksUpdateRequestTicket {
3620
3849
  * @example "REV-AbCdEfGh"
3621
3850
  */
3622
3851
  rev_org?: string | null;
3852
+ /**
3853
+ * The enum ID for the sentiment of the ticket.
3854
+ * @format int64
3855
+ */
3856
+ sentiment?: number;
3623
3857
  /** Severity of the ticket. */
3624
3858
  severity?: TicketSeverity;
3625
3859
  }
@@ -4197,6 +4431,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4197
4431
  * @secure
4198
4432
  */
4199
4433
  devUsersSelfPost: (data: DevUsersSelfRequest, params?: RequestParams) => Promise<AxiosResponse<DevUsersSelfResponse, any>>;
4434
+ /**
4435
+ * @description OAuth2 authorization callback.
4436
+ *
4437
+ * @tags keyring
4438
+ * @name KeyringsCreateCallback
4439
+ * @request GET:/keyrings.authorize
4440
+ */
4441
+ keyringsCreateCallback: (query: {
4442
+ /** Code to exchange for an access token. */
4443
+ code: string;
4444
+ /** State value given to the authorization request. */
4445
+ state: string;
4446
+ }, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
4447
+ /**
4448
+ * @description OAuth2 authorization callback.
4449
+ *
4450
+ * @tags keyring
4451
+ * @name KeyringsCreateCallbackPost
4452
+ * @request POST:/keyrings.authorize
4453
+ * @secure
4454
+ */
4455
+ keyringsCreateCallbackPost: (data: KeyringsCreateCallbackRequest, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
4200
4456
  /**
4201
4457
  * @description Creates new [part](https://devrev.ai/docs/product/parts).
4202
4458
  *
@@ -4770,6 +5026,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4770
5026
  * @example ["REV-AbCdEfGh"]
4771
5027
  */
4772
5028
  'issue.rev_orgs'?: string[];
5029
+ /** Filters for records with any of the provided SLA stages. */
5030
+ 'issue.sla_summary.stage'?: SlaSummaryStage[];
4773
5031
  /** Filters for issues with any of the sprint. */
4774
5032
  'issue.sprint'?: string[];
4775
5033
  /**
@@ -4895,6 +5153,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4895
5153
  * @example ["REV-AbCdEfGh"]
4896
5154
  */
4897
5155
  'issue.rev_orgs'?: string[];
5156
+ /** Filters for records with any of the provided SLA stages. */
5157
+ 'issue.sla_summary.stage'?: SlaSummaryStage[];
4898
5158
  /** Filters for issues with any of the sprint. */
4899
5159
  'issue.sprint'?: string[];
4900
5160
  /**