@devrev/typescript-sdk 1.1.27 → 1.1.29

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.
@@ -380,6 +380,11 @@ export interface AtomBaseSummary {
380
380
  * authentication connection that is set up for a Dev organization.
381
381
  */
382
382
  export type AuthConnection = (AuthConnectionOptionsAzureAd | AuthConnectionOptionsGoogleApps | AuthConnectionOptionsOidc | AuthConnectionOptionsSaml | AuthConnectionOptionsSocial) & {
383
+ /**
384
+ * Defines the type for the authentication connection. The configuration
385
+ * for each authentication connection will depend on the type value.
386
+ */
387
+ type: AuthConnectionType;
383
388
  /**
384
389
  * Display name of the authentication connection. This name will be
385
390
  * visible to all the users when they sign in to this Dev
@@ -395,11 +400,6 @@ export type AuthConnection = (AuthConnectionOptionsAzureAd | AuthConnectionOptio
395
400
  enabled?: boolean;
396
401
  /** ID of the authentication connection. */
397
402
  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
403
  };
404
404
  /**
405
405
  * auth-connection-options-azure-ad
@@ -534,17 +534,25 @@ export declare enum AuthTokenSubjectTokenType {
534
534
  UrnDevrevParamsOauthTokenTypeJwtAuth0 = "urn:devrev:params:oauth:token-type:jwt:auth0",
535
535
  UrnDevrevParamsOauthTokenTypeJwtDev = "urn:devrev:params:oauth:token-type:jwt:dev",
536
536
  UrnDevrevParamsOauthTokenTypeRat = "urn:devrev:params:oauth:token-type:rat",
537
+ UrnDevrevParamsOauthTokenTypeRev = "urn:devrev:params:oauth:token-type:rev",
537
538
  UrnDevrevParamsOauthTokenTypeRevinfo = "urn:devrev:params:oauth:token-type:revinfo",
538
539
  UrnDevrevParamsOauthTokenTypeSession = "urn:devrev:params:oauth:token-type:session",
539
540
  UrnDevrevParamsOauthTokenTypeSysu = "urn:devrev:params:oauth:token-type:sysu",
540
541
  UrnDevrevParamsOauthTokenTypeUserinfo = "urn:devrev:params:oauth:token-type:userinfo",
541
- UrnDevrevParamsOauthTokenTypeUserinfoProfile = "urn:devrev:params:oauth:token-type:userinfo:profile",
542
542
  UrnIetfParamsOauthTokenTypeJwt = "urn:ietf:params:oauth:token-type:jwt"
543
543
  }
544
544
  /** The type of the issued token. Bearer is the only supported token type. */
545
545
  export declare enum AuthTokenTokenType {
546
546
  Bearer = "bearer"
547
547
  }
548
+ /**
549
+ * auth-tokens-account-traits
550
+ * Carries account info.
551
+ */
552
+ export interface AuthTokensAccountTraits {
553
+ /** The display name of the account. */
554
+ display_name?: string;
555
+ }
548
556
  /**
549
557
  * auth-tokens-create-request
550
558
  * A request to create a new token corresponding to the requested token
@@ -708,7 +716,14 @@ export interface AuthTokensOrgTraits {
708
716
  * issue a Rev session token.
709
717
  */
710
718
  export interface AuthTokensRevInfo {
711
- /** An identifier which uniquely identifies a Rev org. */
719
+ /** An identifier which uniquely identifies an account. */
720
+ account_ref?: string;
721
+ /** Carries account info. */
722
+ account_traits?: AuthTokensAccountTraits;
723
+ /**
724
+ * An identifier which uniquely identifies a Rev org.
725
+ * @deprecated
726
+ */
712
727
  org_ref?: string;
713
728
  /** Carries Rev org info. */
714
729
  org_traits?: AuthTokensOrgTraits;
@@ -718,6 +733,10 @@ export interface AuthTokensRevInfo {
718
733
  user_ref?: string;
719
734
  /** Carries Rev user info. */
720
735
  user_traits?: AuthTokensUserTraits;
736
+ /** An identifier which uniquely identifies a workspace. */
737
+ workspace_ref?: string;
738
+ /** Carries Rev org info. */
739
+ workspace_traits?: AuthTokensOrgTraits;
721
740
  }
722
741
  /**
723
742
  * auth-tokens-self-delete-request
@@ -870,6 +889,11 @@ export declare enum DateTimePresetType {
870
889
  * Request to create a new enterprise authentication connection.
871
890
  */
872
891
  export type DevOrgAuthConnectionsCreateRequest = (AuthConnectionOptionsAzureAd | AuthConnectionOptionsGoogleApps | AuthConnectionOptionsOidc | AuthConnectionOptionsSaml) & {
892
+ /**
893
+ * Defines the type for the authentication connection. Different types of
894
+ * authentication connections have different configuration parameters.
895
+ */
896
+ type: DevOrgAuthConnectionsCreateRequestType;
873
897
  /**
874
898
  * Display name of the authentication connection. This name will be
875
899
  * visible to all the users when they sign in to this Dev
@@ -877,11 +901,6 @@ export type DevOrgAuthConnectionsCreateRequest = (AuthConnectionOptionsAzureAd |
877
901
  * it would appear on the login button as 'Log in to abclogin'.
878
902
  */
879
903
  display_name?: string;
880
- /**
881
- * Defines the type for the authentication connection. Different types of
882
- * authentication connections have different configuration parameters.
883
- */
884
- type: DevOrgAuthConnectionsCreateRequestType;
885
904
  };
886
905
  /**
887
906
  * Defines the type for the authentication connection. Different types of
@@ -964,6 +983,12 @@ export interface DevOrgAuthConnectionsToggleRequest {
964
983
  * organization.
965
984
  */
966
985
  export type DevOrgAuthConnectionsUpdateRequest = (AuthConnectionOptionsAzureAd | AuthConnectionOptionsGoogleApps | AuthConnectionOptionsOidc | AuthConnectionOptionsSaml | Empty) & {
986
+ /**
987
+ * Specifies the type for the authentication connection. Different types
988
+ * of authentication connections have different configuration parameters
989
+ * that can be updated.
990
+ */
991
+ type?: DevOrgAuthConnectionsUpdateRequestType;
967
992
  /**
968
993
  * New display name of the authentication connection. This name will
969
994
  * be visible to all the users when they sign in to this Dev
@@ -973,12 +998,6 @@ export type DevOrgAuthConnectionsUpdateRequest = (AuthConnectionOptionsAzureAd |
973
998
  display_name?: string;
974
999
  /** ID of the authentication connection which is to be updated. */
975
1000
  id: string;
976
- /**
977
- * Specifies the type for the authentication connection. Different types
978
- * of authentication connections have different configuration parameters
979
- * that can be updated.
980
- */
981
- type?: DevOrgAuthConnectionsUpdateRequestType;
982
1001
  };
983
1002
  /**
984
1003
  * Specifies the type for the authentication connection. Different types
@@ -1048,6 +1067,8 @@ export interface DevUsersGetResponse {
1048
1067
  * A request to get the list of Dev user's information.
1049
1068
  */
1050
1069
  export interface DevUsersListRequest {
1070
+ /** Provides ways to specify date ranges on objects. */
1071
+ created_date?: DateFilter;
1051
1072
  /**
1052
1073
  * The cursor to resume iteration from. If not provided, then
1053
1074
  * iteration starts from the beginning.
@@ -1070,6 +1091,8 @@ export interface DevUsersListRequest {
1070
1091
  * always be returned in the specified sort-by order.
1071
1092
  */
1072
1093
  mode?: ListMode;
1094
+ /** Provides ways to specify date ranges on objects. */
1095
+ modified_date?: DateFilter;
1073
1096
  /** Fields to sort the Dev users by and the direction to sort them. */
1074
1097
  sort_by?: string[];
1075
1098
  /** Filters Dev users based on state. */
@@ -1113,24 +1136,24 @@ export type Enhancement = PartBase;
1113
1136
  export type EnhancementSummary = PartBaseSummary;
1114
1137
  /**
1115
1138
  * enum-value
1116
- * Enum Value defines the structure for an enum.
1139
+ * The properties of an enum value.
1117
1140
  */
1118
1141
  export interface EnumValue {
1119
1142
  /**
1120
- * Unique ID of the enum value. This is immutable.
1143
+ * The uiique ID of the enum value.
1121
1144
  * @format int64
1122
1145
  */
1123
1146
  id: number;
1124
- /** Display label of the enum value. This is mutable. */
1147
+ /** The display label of the enum value. */
1125
1148
  label: string;
1126
1149
  /**
1127
- * Order number of the enum value. This is mutable.
1150
+ * Used for determining the relative order of the enum value.
1128
1151
  * @format int64
1129
1152
  */
1130
1153
  ordinal: number;
1131
1154
  }
1132
1155
  /** error-bad-request */
1133
- export type ErrorBadRequest = ErrorBase & (ErrorBadRequestArtifactAlreadyAttachedToAParent | ErrorBadRequestBadRequest | ErrorBadRequestInvalidApiVersion | ErrorBadRequestInvalidEnumValue | ErrorBadRequestInvalidField | ErrorBadRequestMissingDependency | ErrorBadRequestMissingRequiredField | ErrorBadRequestParseError | ErrorBadRequestStaleSchemaFragments | ErrorBadRequestUnexpectedJsonType | ErrorBadRequestValueNotPermitted) & {
1156
+ export type ErrorBadRequest = ErrorBase & (ErrorBadRequestArtifactAlreadyAttachedToAParent | ErrorBadRequestBadRequest | ErrorBadRequestInvalidApiVersion | ErrorBadRequestInvalidEnumValue | ErrorBadRequestInvalidField | ErrorBadRequestInvalidId | ErrorBadRequestMergeWorksError | ErrorBadRequestMissingDependency | ErrorBadRequestMissingRequiredField | ErrorBadRequestParseError | ErrorBadRequestStaleSchemaFragments | ErrorBadRequestUnexpectedIdType | ErrorBadRequestUnexpectedJsonType | ErrorBadRequestValueNotPermitted) & {
1134
1157
  type: ErrorBadRequestType;
1135
1158
  };
1136
1159
  /** error-bad-request-artifact-already-attached-to-a-parent */
@@ -1161,6 +1184,49 @@ export interface ErrorBadRequestInvalidField {
1161
1184
  /** The field name that's invalid. */
1162
1185
  field_name: string;
1163
1186
  }
1187
+ /** error-bad-request-invalid-id */
1188
+ export interface ErrorBadRequestInvalidId {
1189
+ /** The field whose ID is invalid. */
1190
+ field_name: string;
1191
+ }
1192
+ /** error-bad-request-merge-works-error */
1193
+ export interface ErrorBadRequestMergeWorksError {
1194
+ /** The errors encountered during the validation of the merge. */
1195
+ errors?: ErrorBadRequestMergeWorksErrorError[];
1196
+ }
1197
+ /** error-bad-request-merge-works-error-error */
1198
+ export interface ErrorBadRequestMergeWorksErrorError {
1199
+ already_merged?: ErrorBadRequestMergeWorksErrorErrorAlreadyMerged;
1200
+ closed?: ErrorBadRequestMergeWorksErrorErrorClosed;
1201
+ /** The details of the error. */
1202
+ details: string;
1203
+ different_workspace?: ErrorBadRequestMergeWorksErrorErrorDifferentWorkspace;
1204
+ invalid_stage_transition?: ErrorBadRequestMergeWorksErrorErrorInvalidStageTransition;
1205
+ subtype?: 'already_merged' | 'closed' | 'different_workspace' | 'invalid_stage_transition';
1206
+ /** The ID of the work which failed the validation. */
1207
+ work: string;
1208
+ }
1209
+ /** error-bad-request-merge-works-error-error-already-merged */
1210
+ export interface ErrorBadRequestMergeWorksErrorErrorAlreadyMerged {
1211
+ /** ID of the work into which the work was merged. */
1212
+ merged_into: string;
1213
+ }
1214
+ /** error-bad-request-merge-works-error-error-closed */
1215
+ export type ErrorBadRequestMergeWorksErrorErrorClosed = object;
1216
+ /** error-bad-request-merge-works-error-error-different-workspace */
1217
+ export interface ErrorBadRequestMergeWorksErrorErrorDifferentWorkspace {
1218
+ /** The workspace of the primary work. */
1219
+ primary_workspace: string;
1220
+ /** The workspace of the secondary work. */
1221
+ secondary_workspace: string;
1222
+ }
1223
+ /** error-bad-request-merge-works-error-error-invalid-stage-transition */
1224
+ export interface ErrorBadRequestMergeWorksErrorErrorInvalidStageTransition {
1225
+ /** The current stage of the work. */
1226
+ current_stage: string;
1227
+ /** The stage to which the transition isn't allowed. */
1228
+ requested_stage: string;
1229
+ }
1164
1230
  /** error-bad-request-missing-dependency */
1165
1231
  export interface ErrorBadRequestMissingDependency {
1166
1232
  /** The dependent fields. */
@@ -1203,13 +1269,21 @@ export declare enum ErrorBadRequestType {
1203
1269
  InvalidApiVersion = "invalid_api_version",
1204
1270
  InvalidEnumValue = "invalid_enum_value",
1205
1271
  InvalidField = "invalid_field",
1272
+ InvalidId = "invalid_id",
1273
+ MergeWorksError = "merge_works_error",
1206
1274
  MissingDependency = "missing_dependency",
1207
1275
  MissingRequiredField = "missing_required_field",
1208
1276
  ParseError = "parse_error",
1209
1277
  StaleSchemaFragments = "stale_schema_fragments",
1278
+ UnexpectedIdType = "unexpected_id_type",
1210
1279
  UnexpectedJsonType = "unexpected_json_type",
1211
1280
  ValueNotPermitted = "value_not_permitted"
1212
1281
  }
1282
+ /** error-bad-request-unexpected-id-type */
1283
+ export interface ErrorBadRequestUnexpectedIdType {
1284
+ /** The field whose ID type is unexpected. */
1285
+ field_name: string;
1286
+ }
1213
1287
  /** error-bad-request-unexpected-json-type */
1214
1288
  export interface ErrorBadRequestUnexpectedJsonType {
1215
1289
  actual: ErrorBadRequestUnexpectedJsonTypeType;
@@ -1261,12 +1335,12 @@ export declare enum ErrorForbiddenType {
1261
1335
  }
1262
1336
  /** error-internal-server-error */
1263
1337
  export type ErrorInternalServerError = ErrorBase & ErrorInternalServerErrorInternalError & {
1338
+ type: ErrorInternalServerErrorType;
1264
1339
  /**
1265
1340
  * A unique ID that's generated for the error that can be used for
1266
1341
  * inquiry.
1267
1342
  */
1268
1343
  reference_id?: string;
1269
- type: ErrorInternalServerErrorType;
1270
1344
  };
1271
1345
  /** error-internal-server-error-internal-error */
1272
1346
  export type ErrorInternalServerErrorInternalError = object;
@@ -1293,12 +1367,12 @@ export declare enum ErrorServiceUnavailableType {
1293
1367
  }
1294
1368
  /** error-too-many-requests */
1295
1369
  export type ErrorTooManyRequests = ErrorBase & ErrorTooManyRequestsTooManyRequests & {
1370
+ type: ErrorTooManyRequestsType;
1296
1371
  /**
1297
1372
  * The number of seconds after which the client should retry.
1298
1373
  * @format int64
1299
1374
  */
1300
1375
  retry_after?: number;
1301
- type: ErrorTooManyRequestsType;
1302
1376
  };
1303
1377
  /** error-too-many-requests-too-many-requests */
1304
1378
  export type ErrorTooManyRequestsTooManyRequests = object;
@@ -1325,10 +1399,12 @@ export interface EventAccountDeleted {
1325
1399
  * @example "ACC-12345"
1326
1400
  */
1327
1401
  id: string;
1402
+ old_account?: Account;
1328
1403
  }
1329
1404
  /** event-account-updated */
1330
1405
  export interface EventAccountUpdated {
1331
1406
  account: Account;
1407
+ old_account?: Account;
1332
1408
  }
1333
1409
  /** event-conversation-created */
1334
1410
  export interface EventConversationCreated {
@@ -1351,10 +1427,25 @@ export interface EventDevUserCreated {
1351
1427
  export interface EventDevUserDeleted {
1352
1428
  /** The ID of the Dev user that was deleted. */
1353
1429
  id: string;
1430
+ old_dev_user?: DevUser;
1354
1431
  }
1355
1432
  /** event-dev-user-updated */
1356
1433
  export interface EventDevUserUpdated {
1357
1434
  dev_user: DevUser;
1435
+ old_dev_user?: DevUser;
1436
+ }
1437
+ /** event-group-created */
1438
+ export interface EventGroupCreated {
1439
+ group: Group;
1440
+ }
1441
+ /** event-group-deleted */
1442
+ export interface EventGroupDeleted {
1443
+ /** The ID of the group that was deleted. */
1444
+ id: string;
1445
+ }
1446
+ /** event-group-updated */
1447
+ export interface EventGroupUpdated {
1448
+ group: Group;
1358
1449
  }
1359
1450
  /** event-part-created */
1360
1451
  export interface EventPartCreated {
@@ -1367,9 +1458,11 @@ export interface EventPartDeleted {
1367
1458
  * @example "PROD-12345"
1368
1459
  */
1369
1460
  id: string;
1461
+ old_part?: Part;
1370
1462
  }
1371
1463
  /** event-part-updated */
1372
1464
  export interface EventPartUpdated {
1465
+ old_part?: Part;
1373
1466
  part: Part;
1374
1467
  }
1375
1468
  /** event-rev-org-created */
@@ -1383,9 +1476,11 @@ export interface EventRevOrgDeleted {
1383
1476
  * @example "REV-AbCdEfGh"
1384
1477
  */
1385
1478
  id: string;
1479
+ old_rev_org?: RevOrg;
1386
1480
  }
1387
1481
  /** event-rev-org-updated */
1388
1482
  export interface EventRevOrgUpdated {
1483
+ old_rev_org?: RevOrg;
1389
1484
  rev_org: RevOrg;
1390
1485
  }
1391
1486
  /** event-rev-user-created */
@@ -1396,9 +1491,11 @@ export interface EventRevUserCreated {
1396
1491
  export interface EventRevUserDeleted {
1397
1492
  /** The ID of the Rev user that was deleted. */
1398
1493
  id: string;
1494
+ old_rev_user?: RevUser;
1399
1495
  }
1400
1496
  /** event-rev-user-updated */
1401
1497
  export interface EventRevUserUpdated {
1498
+ old_rev_user?: RevUser;
1402
1499
  rev_user: RevUser;
1403
1500
  }
1404
1501
  /** event-sla-tracker-created */
@@ -1486,20 +1583,33 @@ export interface EventWorkDeleted {
1486
1583
  * @example "ISS-12345"
1487
1584
  */
1488
1585
  id: string;
1586
+ old_work?: Work;
1489
1587
  }
1490
1588
  /** event-work-updated */
1491
1589
  export interface EventWorkUpdated {
1590
+ old_work?: Work;
1492
1591
  work: Work;
1493
1592
  }
1494
1593
  /**
1495
1594
  * external-identity
1496
1595
  * External identity of a user.
1497
1596
  */
1498
- export type ExternalIdentity = object;
1597
+ export interface ExternalIdentity {
1598
+ /** Display name of the user in the external source. */
1599
+ display_name?: string;
1600
+ /** Unique ID of the user in the external source. */
1601
+ id?: string;
1602
+ /** Whether the external identity is verified or not. */
1603
+ is_verified?: boolean;
1604
+ /** Issuer of the external identity of the user. */
1605
+ issuer?: string;
1606
+ }
1499
1607
  /** feature */
1500
1608
  export type Feature = PartBase;
1501
1609
  /** feature-summary */
1502
1610
  export type FeatureSummary = PartBaseSummary;
1611
+ /** group */
1612
+ export type Group = AtomBase;
1503
1613
  /** group-summary */
1504
1614
  export type GroupSummary = AtomBaseSummary;
1505
1615
  /** issue */
@@ -1508,6 +1618,7 @@ export type Issue = WorkBase & {
1508
1618
  developed_with?: PartSummary[];
1509
1619
  /** Priority of the work based upon impact and criticality. */
1510
1620
  priority?: IssuePriority;
1621
+ sla_tracker?: SlaTrackerSummary;
1511
1622
  /** Vista group item. */
1512
1623
  sprint?: VistaGroupItemSummary;
1513
1624
  /**
@@ -1529,7 +1640,7 @@ export declare enum IssuePriority {
1529
1640
  * Defines a job history line item.
1530
1641
  */
1531
1642
  export interface JobHistoryItem {
1532
- /** Enum Value defines the structure for an enum. */
1643
+ /** The properties of an enum value. */
1533
1644
  employment_status?: EnumValue;
1534
1645
  /**
1535
1646
  * The end date of the job, or not specified if current.
@@ -1550,6 +1661,13 @@ export interface JobHistoryItem {
1550
1661
  /** The job title for the user. */
1551
1662
  title?: string;
1552
1663
  }
1664
+ /** keyrings-create-callback-request */
1665
+ export interface KeyringsCreateCallbackRequest {
1666
+ /** Code to exchange for an access token. */
1667
+ code: string;
1668
+ /** State value given to the authorization request. */
1669
+ state: string;
1670
+ }
1553
1671
  /**
1554
1672
  * legacy-stage
1555
1673
  * Describes the current stage of a work item.
@@ -1672,6 +1790,8 @@ export type PartBase = AtomBase & {
1672
1790
  export type PartBaseSummary = AtomBaseSummary & {
1673
1791
  /** Name of the part. */
1674
1792
  name: string;
1793
+ /** The users that own the part. */
1794
+ owned_by: UserSummary[];
1675
1795
  };
1676
1796
  /** part-summary */
1677
1797
  export type PartSummary = (CapabilitySummary | EnhancementSummary | FeatureSummary | ProductSummary) & {
@@ -1685,6 +1805,7 @@ export declare enum PartType {
1685
1805
  }
1686
1806
  /** parts-create-request */
1687
1807
  export type PartsCreateRequest = (PartsCreateRequestCapability | PartsCreateRequestEnhancement | PartsCreateRequestFeature | PartsCreateRequestProduct) & {
1808
+ type: PartType;
1688
1809
  /**
1689
1810
  * The IDs of the artifacts.
1690
1811
  * @example ["ARTIFACT-12345"]
@@ -1699,7 +1820,6 @@ export type PartsCreateRequest = (PartsCreateRequestCapability | PartsCreateRequ
1699
1820
  * @example ["DEVU-12345"]
1700
1821
  */
1701
1822
  owned_by: string[];
1702
- type: PartType;
1703
1823
  };
1704
1824
  /** parts-create-request-capability */
1705
1825
  export interface PartsCreateRequestCapability {
@@ -1771,6 +1891,8 @@ export interface PartsGetResponse {
1771
1891
  }
1772
1892
  /** parts-list-request */
1773
1893
  export interface PartsListRequest {
1894
+ /** Filters for parts of the provided type(s). */
1895
+ type?: PartType[];
1774
1896
  /**
1775
1897
  * Filters for parts created by any of these users.
1776
1898
  * @example ["DEVU-12345"]
@@ -1803,8 +1925,6 @@ export interface PartsListRequest {
1803
1925
  owned_by?: string[];
1804
1926
  /** The filter for specifying parent part. */
1805
1927
  parent_part?: ParentPartFilter;
1806
- /** Filters for parts of the provided type(s). */
1807
- type?: PartType[];
1808
1928
  }
1809
1929
  /** parts-list-response */
1810
1930
  export interface PartsListResponse {
@@ -1823,6 +1943,7 @@ export interface PartsListResponse {
1823
1943
  }
1824
1944
  /** parts-update-request */
1825
1945
  export type PartsUpdateRequest = (Empty | PartsUpdateRequestCapability | PartsUpdateRequestEnhancement | PartsUpdateRequestFeature | PartsUpdateRequestProduct) & {
1946
+ type?: PartType;
1826
1947
  artifacts?: PartsUpdateRequestArtifacts;
1827
1948
  /** The updated description of the part. */
1828
1949
  description?: string;
@@ -1834,7 +1955,6 @@ export type PartsUpdateRequest = (Empty | PartsUpdateRequestCapability | PartsUp
1834
1955
  /** The updated name of the part. */
1835
1956
  name?: string;
1836
1957
  owned_by?: PartsUpdateRequestOwnedBy;
1837
- type?: PartType;
1838
1958
  };
1839
1959
  /** parts-update-request-artifacts */
1840
1960
  export interface PartsUpdateRequestArtifacts {
@@ -1853,14 +1973,14 @@ export interface PartsUpdateRequestEnhancement {
1853
1973
  * @format date-time
1854
1974
  * @example "2023-01-01T12:00:00.000Z"
1855
1975
  */
1856
- target_close_date?: string;
1976
+ target_close_date?: string | null;
1857
1977
  /**
1858
1978
  * Updates the target start date of the enhancement. Example Date
1859
1979
  * Format: 2000-11-01T01:01:01Z
1860
1980
  * @format date-time
1861
1981
  * @example "2023-01-01T12:00:00.000Z"
1862
1982
  */
1863
- target_start_date?: string;
1983
+ target_start_date?: string | null;
1864
1984
  }
1865
1985
  /** parts-update-request-feature */
1866
1986
  export type PartsUpdateRequestFeature = object;
@@ -2112,6 +2232,8 @@ export declare enum SlaStatus {
2112
2232
  export type SlaSummary = AtomBaseSummary & {
2113
2233
  /** Human-readable name. */
2114
2234
  name: string;
2235
+ /** Type of the SLA. */
2236
+ sla_type?: SlaType;
2115
2237
  /**
2116
2238
  * Status determines how an item can be used. In 'draft' status an item
2117
2239
  * can be edited but can't be used. When 'published' the item can longer
@@ -2172,6 +2294,11 @@ export interface SlaTrackersGetRequest {
2172
2294
  export interface SlaTrackersGetResponse {
2173
2295
  sla_tracker: SlaTracker;
2174
2296
  }
2297
+ /** Type of the SLA. */
2298
+ export declare enum SlaType {
2299
+ External = "external",
2300
+ Internal = "internal"
2301
+ }
2175
2302
  /** snap-widget */
2176
2303
  export interface SnapWidget {
2177
2304
  type: SnapWidgetType;
@@ -2223,11 +2350,17 @@ export type SurveyAggregationFilter = object;
2223
2350
  export type SurveyResponse = AtomBase & {
2224
2351
  /** The unique ID associated with the dispatched survey. */
2225
2352
  dispatch_id?: string;
2353
+ /** Source channels on which the survey is sent. */
2354
+ dispatched_channels?: EnumValue[];
2226
2355
  /** The ID of the object for which survey is taken. */
2227
2356
  object?: string;
2228
2357
  recipient?: UserSummary;
2229
2358
  /** Response for the survey. */
2230
2359
  response?: object;
2360
+ /** The properties of an enum value. */
2361
+ response_channel?: EnumValue;
2362
+ /** The properties of an enum value. */
2363
+ stage?: EnumValue;
2231
2364
  /** The ID of the survey for which response is taken. */
2232
2365
  survey?: string;
2233
2366
  };
@@ -2445,7 +2578,11 @@ export type Ticket = WorkBase & {
2445
2578
  /** Channels of the ticket. */
2446
2579
  channels?: TicketChannels[];
2447
2580
  group?: GroupSummary;
2581
+ /** Whether the ticket needs a response. */
2582
+ needs_response?: boolean;
2448
2583
  rev_org?: OrgSummary;
2584
+ /** The properties of an enum value. */
2585
+ sentiment?: EnumValue;
2449
2586
  /** Severity of the ticket. */
2450
2587
  severity?: TicketSeverity;
2451
2588
  sla_tracker?: SlaTrackerSummary;
@@ -2493,6 +2630,7 @@ export declare enum TimelineCommentBodyType {
2493
2630
  * The request to create a timeline entry for an object.
2494
2631
  */
2495
2632
  export type TimelineEntriesCreateRequest = TimelineEntriesCreateRequestTimelineComment & {
2633
+ type: TimelineEntriesCreateRequestType;
2496
2634
  /**
2497
2635
  * If set, then the entry is ephemeral and will be deleted after the
2498
2636
  * provided time. The minimum value should be at least a minute more
@@ -2513,7 +2651,6 @@ export type TimelineEntriesCreateRequest = TimelineEntriesCreateRequestTimelineC
2513
2651
  * @example ["DEVU-12345"]
2514
2652
  */
2515
2653
  private_to?: string[];
2516
- type: TimelineEntriesCreateRequestType;
2517
2654
  /**
2518
2655
  * The visibility of the entry. If 'private', then the entry is only
2519
2656
  * visible to the creator, 'internal' is visible with the Dev
@@ -2641,12 +2778,12 @@ export interface TimelineEntriesListResponse {
2641
2778
  * The request to update a timeline entry.
2642
2779
  */
2643
2780
  export type TimelineEntriesUpdateRequest = TimelineEntriesUpdateRequestTimelineComment & {
2781
+ type: TimelineEntriesUpdateRequestType;
2644
2782
  /**
2645
2783
  * The ID of the timeline entry to update.
2646
2784
  * @example "don:core:<partition>:devo/<dev-org-id>:ticket/123:timeline_event/<timeline-event-id>"
2647
2785
  */
2648
2786
  id: string;
2649
- type: TimelineEntriesUpdateRequestType;
2650
2787
  };
2651
2788
  /** timeline-entries-update-request-timeline-comment */
2652
2789
  export interface TimelineEntriesUpdateRequestTimelineComment {
@@ -2811,11 +2948,43 @@ export declare enum UserType {
2811
2948
  RevUser = "rev_user",
2812
2949
  SysUser = "sys_user"
2813
2950
  }
2951
+ /** Defines the state of the group item. */
2952
+ export declare enum VistaGroupItemState {
2953
+ Active = "active",
2954
+ Completed = "completed",
2955
+ Planned = "planned"
2956
+ }
2814
2957
  /**
2815
2958
  * vista-group-item-summary
2816
2959
  * Vista group item.
2817
2960
  */
2818
- export type VistaGroupItemSummary = object;
2961
+ export interface VistaGroupItemSummary {
2962
+ /** Type of the group object. */
2963
+ type: VistaGroupItemType;
2964
+ /**
2965
+ * Timestamp when the vista ends.
2966
+ * @format date-time
2967
+ * @example "2023-01-01T12:00:00.000Z"
2968
+ */
2969
+ end_date?: string;
2970
+ /** ID of the group item in don v2 format. */
2971
+ id: string;
2972
+ /** Name of the group. */
2973
+ name: string;
2974
+ /**
2975
+ * Timestamp when the vista starts.
2976
+ * @format date-time
2977
+ * @example "2023-01-01T12:00:00.000Z"
2978
+ */
2979
+ start_date?: string;
2980
+ /** Defines the state of the group item. */
2981
+ state?: VistaGroupItemState;
2982
+ }
2983
+ /** Type of the group object. */
2984
+ export declare enum VistaGroupItemType {
2985
+ Curated = "curated",
2986
+ Dynamic = "dynamic"
2987
+ }
2819
2988
  /** webhook */
2820
2989
  export type Webhook = AtomBase & {
2821
2990
  /** The event types that the webhook will receive. */
@@ -2832,6 +3001,8 @@ export type Webhook = AtomBase & {
2832
3001
  };
2833
3002
  /** webhook-event-request */
2834
3003
  export interface WebhookEventRequest {
3004
+ /** The event types that the webhook will receive. */
3005
+ type?: WebhookEventType;
2835
3006
  account_created?: EventAccountCreated;
2836
3007
  account_deleted?: EventAccountDeleted;
2837
3008
  account_updated?: EventAccountUpdated;
@@ -2841,6 +3012,9 @@ export interface WebhookEventRequest {
2841
3012
  dev_user_created?: EventDevUserCreated;
2842
3013
  dev_user_deleted?: EventDevUserDeleted;
2843
3014
  dev_user_updated?: EventDevUserUpdated;
3015
+ group_created?: EventGroupCreated;
3016
+ group_deleted?: EventGroupDeleted;
3017
+ group_updated?: EventGroupUpdated;
2844
3018
  /** The event's ID. */
2845
3019
  id: string;
2846
3020
  part_created?: EventPartCreated;
@@ -2873,8 +3047,6 @@ export interface WebhookEventRequest {
2873
3047
  * @example "2023-01-01T12:00:00.000Z"
2874
3048
  */
2875
3049
  timestamp?: string;
2876
- /** The event types that the webhook will receive. */
2877
- type?: WebhookEventType;
2878
3050
  verify?: WebhookEventVerify;
2879
3051
  webhook_created?: EventWebhookCreated;
2880
3052
  webhook_deleted?: EventWebhookDeleted;
@@ -2908,6 +3080,9 @@ export declare enum WebhookEventType {
2908
3080
  DevUserCreated = "dev_user_created",
2909
3081
  DevUserDeleted = "dev_user_deleted",
2910
3082
  DevUserUpdated = "dev_user_updated",
3083
+ GroupCreated = "group_created",
3084
+ GroupDeleted = "group_deleted",
3085
+ GroupUpdated = "group_updated",
2911
3086
  PartCreated = "part_created",
2912
3087
  PartDeleted = "part_deleted",
2913
3088
  PartUpdated = "part_updated",
@@ -3116,6 +3291,7 @@ export declare enum WorkType {
3116
3291
  }
3117
3292
  /** works-create-request */
3118
3293
  export type WorksCreateRequest = (WorksCreateRequestIssue | WorksCreateRequestTicket) & {
3294
+ type: WorkType;
3119
3295
  /**
3120
3296
  * The [part](https://devrev.ai/docs/product/parts) that the work
3121
3297
  * applies to. Specifying a part is required when creating tickets and
@@ -3154,7 +3330,6 @@ export type WorksCreateRequest = (WorksCreateRequestIssue | WorksCreateRequestTi
3154
3330
  target_close_date?: string;
3155
3331
  /** Title of the work object. */
3156
3332
  title: string;
3157
- type: WorkType;
3158
3333
  };
3159
3334
  /** works-create-request-issue */
3160
3335
  export interface WorksCreateRequestIssue {
@@ -3216,6 +3391,8 @@ export interface WorksDeleteRequest {
3216
3391
  export type WorksDeleteResponse = object;
3217
3392
  /** works-export-request */
3218
3393
  export interface WorksExportRequest {
3394
+ /** Filters for work of the provided types. */
3395
+ type?: WorkType[];
3219
3396
  /** Provides ways to specify date ranges on objects. */
3220
3397
  actual_close_date?: DateFilter;
3221
3398
  /**
@@ -3261,8 +3438,6 @@ export interface WorksExportRequest {
3261
3438
  /** Provides ways to specify date ranges on objects. */
3262
3439
  target_close_date?: DateFilter;
3263
3440
  ticket?: WorksFilterTicket;
3264
- /** Filters for work of the provided types. */
3265
- type?: WorkType[];
3266
3441
  }
3267
3442
  /** works-export-response */
3268
3443
  export interface WorksExportResponse {
@@ -3287,6 +3462,8 @@ export interface WorksFilterIssue {
3287
3462
  * @example ["REV-AbCdEfGh"]
3288
3463
  */
3289
3464
  rev_orgs?: string[];
3465
+ /** The filter for SLA summary. */
3466
+ sla_summary?: SlaSummaryFilter;
3290
3467
  /** Filters for issues with any of the sprint. */
3291
3468
  sprint?: string[];
3292
3469
  /** Provides ways to specify date ranges on objects. */
@@ -3331,6 +3508,8 @@ export interface WorksGetResponse {
3331
3508
  }
3332
3509
  /** works-list-request */
3333
3510
  export interface WorksListRequest {
3511
+ /** Filters for work of the provided types. */
3512
+ type?: WorkType[];
3334
3513
  /** Provides ways to specify date ranges on objects. */
3335
3514
  actual_close_date?: DateFilter;
3336
3515
  /**
@@ -3388,8 +3567,6 @@ export interface WorksListRequest {
3388
3567
  /** Provides ways to specify date ranges on objects. */
3389
3568
  target_close_date?: DateFilter;
3390
3569
  ticket?: WorksFilterTicket;
3391
- /** Filters for work of the provided types. */
3392
- type?: WorkType[];
3393
3570
  }
3394
3571
  /** works-list-response */
3395
3572
  export interface WorksListResponse {
@@ -3408,6 +3585,7 @@ export interface WorksListResponse {
3408
3585
  }
3409
3586
  /** works-update-request */
3410
3587
  export type WorksUpdateRequest = (Empty | WorksUpdateRequestIssue | WorksUpdateRequestTicket) & {
3588
+ type?: WorkType;
3411
3589
  /**
3412
3590
  * Updates the part that the work item applies to.
3413
3591
  * @example "PROD-12345"
@@ -3440,7 +3618,6 @@ export type WorksUpdateRequest = (Empty | WorksUpdateRequestIssue | WorksUpdateR
3440
3618
  target_close_date?: string | null;
3441
3619
  /** Updated title of the work object, or unchanged if not provided. */
3442
3620
  title?: string;
3443
- type?: WorkType;
3444
3621
  };
3445
3622
  /** works-update-request-artifacts */
3446
3623
  export interface WorksUpdateRequestArtifacts {
@@ -4109,6 +4286,28 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4109
4286
  * @secure
4110
4287
  */
4111
4288
  devUsersSelfPost: (data: DevUsersSelfRequest, params?: RequestParams) => Promise<AxiosResponse<DevUsersSelfResponse, any>>;
4289
+ /**
4290
+ * @description OAuth2 authorization callback.
4291
+ *
4292
+ * @tags keyring
4293
+ * @name KeyringsCreateCallback
4294
+ * @request GET:/keyrings.authorize
4295
+ */
4296
+ keyringsCreateCallback: (query: {
4297
+ /** Code to exchange for an access token. */
4298
+ code: string;
4299
+ /** State value given to the authorization request. */
4300
+ state: string;
4301
+ }, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
4302
+ /**
4303
+ * @description OAuth2 authorization callback.
4304
+ *
4305
+ * @tags keyring
4306
+ * @name KeyringsCreateCallbackPost
4307
+ * @request POST:/keyrings.authorize
4308
+ * @secure
4309
+ */
4310
+ keyringsCreateCallbackPost: (data: KeyringsCreateCallbackRequest, params?: RequestParams) => Promise<AxiosResponse<void, any>>;
4112
4311
  /**
4113
4312
  * @description Creates new [part](https://devrev.ai/docs/product/parts).
4114
4313
  *
@@ -4682,6 +4881,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4682
4881
  * @example ["REV-AbCdEfGh"]
4683
4882
  */
4684
4883
  'issue.rev_orgs'?: string[];
4884
+ /** Filters for records with any of the provided SLA stages. */
4885
+ 'issue.sla_summary.stage'?: SlaSummaryStage[];
4685
4886
  /** Filters for issues with any of the sprint. */
4686
4887
  'issue.sprint'?: string[];
4687
4888
  /**
@@ -4807,6 +5008,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
4807
5008
  * @example ["REV-AbCdEfGh"]
4808
5009
  */
4809
5010
  'issue.rev_orgs'?: string[];
5011
+ /** Filters for records with any of the provided SLA stages. */
5012
+ 'issue.sla_summary.stage'?: SlaSummaryStage[];
4810
5013
  /** Filters for issues with any of the sprint. */
4811
5014
  'issue.sprint'?: string[];
4812
5015
  /**