@devrev/typescript-sdk 1.1.29 → 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.
@@ -33,9 +33,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
33
33
  return (mod && mod.__esModule) ? mod : { "default": mod };
34
34
  };
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.OpportunityForecastCategory = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MemberType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupType = exports.GroupMemberType = exports.GenericNotificationEventType = exports.EventSourceStatus = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsListRequestPrune = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CodeChangeSource = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.ArticleType = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
- exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryPanel = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TicketChannels = exports.TaskPriority = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StockSchemaFragmentsListRequestPrune = exports.StockSchemaFragmentsListRequestFilterPreset = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapWidgetsCreateRequestType = exports.SnapWidgetType = exports.SnapWidgetStatus = exports.SnapWidgetNamespace = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SendNotificationType = exports.SearchSortOrderParam = exports.SearchSortByParam = exports.SearchResultType = exports.SearchNamespace = exports.SearchHybridNamespace = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.QuestionAnswerStatus = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = void 0;
38
- exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaType = exports.VistaGroupItemType = void 0;
36
+ exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MemberType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupType = exports.GroupMemberType = exports.GenericNotificationEventType = exports.FieldValueType = exports.EventSourceStatus = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsListRequestPrune = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CodeChangeSource = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.ArticleType = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
+ exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryPanel = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TimelineChangeEventEventType = exports.TicketSeverity = exports.TicketChannels = exports.TaskPriority = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StockSchemaFragmentsListRequestPrune = exports.StockSchemaFragmentsListRequestFilterPreset = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapWidgetsCreateRequestType = exports.SnapWidgetType = exports.SnapWidgetStatus = exports.SnapWidgetNamespace = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SendNotificationType = exports.SearchSortOrderParam = exports.SearchSortByParam = exports.SearchResultType = exports.SearchNamespace = exports.SearchHybridNamespace = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.QuestionAnswerStatus = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = void 0;
38
+ exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = void 0;
39
39
  var AccessLevel;
40
40
  (function (AccessLevel) {
41
41
  AccessLevel["External"] = "external";
@@ -114,6 +114,7 @@ var AtomType;
114
114
  AtomType["Task"] = "task";
115
115
  AtomType["TenantFragment"] = "tenant_fragment";
116
116
  AtomType["Ticket"] = "ticket";
117
+ AtomType["TimelineChangeEvent"] = "timeline_change_event";
117
118
  AtomType["TimelineComment"] = "timeline_comment";
118
119
  AtomType["Webhook"] = "webhook";
119
120
  })(AtomType = exports.AtomType || (exports.AtomType = {}));
@@ -282,6 +283,8 @@ var DevUserJobTitle;
282
283
  var EngagementType;
283
284
  (function (EngagementType) {
284
285
  EngagementType["Call"] = "call";
286
+ EngagementType["Conversation"] = "conversation";
287
+ EngagementType["Custom"] = "custom";
285
288
  EngagementType["Default"] = "default";
286
289
  EngagementType["Email"] = "email";
287
290
  EngagementType["LinkedIn"] = "linked_in";
@@ -362,6 +365,28 @@ var EventSourceStatus;
362
365
  EventSourceStatus["Blocked"] = "blocked";
363
366
  EventSourceStatus["Paused"] = "paused";
364
367
  })(EventSourceStatus = exports.EventSourceStatus || (exports.EventSourceStatus = {}));
368
+ var FieldValueType;
369
+ (function (FieldValueType) {
370
+ FieldValueType["Bool"] = "bool";
371
+ FieldValueType["BoolList"] = "bool_list";
372
+ FieldValueType["Composite"] = "composite";
373
+ FieldValueType["CompositeList"] = "composite_list";
374
+ FieldValueType["Date"] = "date";
375
+ FieldValueType["DateList"] = "date_list";
376
+ FieldValueType["DateTime"] = "date_time";
377
+ FieldValueType["DateTimeList"] = "date_time_list";
378
+ FieldValueType["Double"] = "double";
379
+ FieldValueType["DoubleList"] = "double_list";
380
+ FieldValueType["Id"] = "id";
381
+ FieldValueType["IdList"] = "id_list";
382
+ FieldValueType["Int"] = "int";
383
+ FieldValueType["IntList"] = "int_list";
384
+ FieldValueType["Stage"] = "stage";
385
+ FieldValueType["String"] = "string";
386
+ FieldValueType["StringList"] = "string_list";
387
+ FieldValueType["TagSummary"] = "tag_summary";
388
+ FieldValueType["TagSummaryList"] = "tag_summary_list";
389
+ })(FieldValueType = exports.FieldValueType || (exports.FieldValueType = {}));
365
390
  /** Event type of the notification. */
366
391
  var GenericNotificationEventType;
367
392
  (function (GenericNotificationEventType) {
@@ -417,6 +442,7 @@ var LinkType;
417
442
  LinkType["DevelopedWith"] = "developed_with";
418
443
  LinkType["Imports"] = "imports";
419
444
  LinkType["IsAnalyzedBy"] = "is_analyzed_by";
445
+ LinkType["IsConvertedTo"] = "is_converted_to";
420
446
  LinkType["IsDependentOn"] = "is_dependent_on";
421
447
  LinkType["IsDuplicateOf"] = "is_duplicate_of";
422
448
  LinkType["IsMergedInto"] = "is_merged_into";
@@ -818,6 +844,7 @@ var TicketChannels;
818
844
  TicketChannels["Plug"] = "plug";
819
845
  TicketChannels["Slack"] = "slack";
820
846
  TicketChannels["Twilio"] = "twilio";
847
+ TicketChannels["TwilioSms"] = "twilio_sms";
821
848
  })(TicketChannels = exports.TicketChannels || (exports.TicketChannels = {}));
822
849
  /** Severity of the ticket. */
823
850
  var TicketSeverity;
@@ -827,6 +854,15 @@ var TicketSeverity;
827
854
  TicketSeverity["Low"] = "low";
828
855
  TicketSeverity["Medium"] = "medium";
829
856
  })(TicketSeverity = exports.TicketSeverity || (exports.TicketSeverity = {}));
857
+ /** The type of the event. */
858
+ var TimelineChangeEventEventType;
859
+ (function (TimelineChangeEventEventType) {
860
+ TimelineChangeEventEventType["Annotated"] = "annotated";
861
+ TimelineChangeEventEventType["Created"] = "created";
862
+ TimelineChangeEventEventType["Deleted"] = "deleted";
863
+ TimelineChangeEventEventType["Linked"] = "linked";
864
+ TimelineChangeEventEventType["Updated"] = "updated";
865
+ })(TimelineChangeEventEventType = exports.TimelineChangeEventEventType || (exports.TimelineChangeEventEventType = {}));
830
866
  /** The type of the body to use for the comment. */
831
867
  var TimelineCommentBodyType;
832
868
  (function (TimelineCommentBodyType) {
@@ -865,6 +901,7 @@ var TimelineEntryObjectType;
865
901
  TimelineEntryObjectType["RevUser"] = "rev_user";
866
902
  TimelineEntryObjectType["Task"] = "task";
867
903
  TimelineEntryObjectType["Ticket"] = "ticket";
904
+ TimelineEntryObjectType["TimelineChangeEvent"] = "timeline_change_event";
868
905
  TimelineEntryObjectType["TimelineComment"] = "timeline_comment";
869
906
  })(TimelineEntryObjectType = exports.TimelineEntryObjectType || (exports.TimelineEntryObjectType = {}));
870
907
  /** Display panels for the Timeline entry. */
@@ -876,6 +913,7 @@ var TimelineEntryPanel;
876
913
  })(TimelineEntryPanel = exports.TimelineEntryPanel || (exports.TimelineEntryPanel = {}));
877
914
  var TimelineEntryType;
878
915
  (function (TimelineEntryType) {
916
+ TimelineEntryType["TimelineChangeEvent"] = "timeline_change_event";
879
917
  TimelineEntryType["TimelineComment"] = "timeline_comment";
880
918
  })(TimelineEntryType = exports.TimelineEntryType || (exports.TimelineEntryType = {}));
881
919
  /**
@@ -961,7 +999,12 @@ var WebhookEventType;
961
999
  WebhookEventType["DevUserUpdated"] = "dev_user_updated";
962
1000
  WebhookEventType["GroupCreated"] = "group_created";
963
1001
  WebhookEventType["GroupDeleted"] = "group_deleted";
1002
+ WebhookEventType["GroupMemberAdded"] = "group_member_added";
1003
+ WebhookEventType["GroupMemberRemoved"] = "group_member_removed";
964
1004
  WebhookEventType["GroupUpdated"] = "group_updated";
1005
+ WebhookEventType["LinkCreated"] = "link_created";
1006
+ WebhookEventType["LinkDeleted"] = "link_deleted";
1007
+ WebhookEventType["LinkUpdated"] = "link_updated";
965
1008
  WebhookEventType["PartCreated"] = "part_created";
966
1009
  WebhookEventType["PartDeleted"] = "part_deleted";
967
1010
  WebhookEventType["PartUpdated"] = "part_updated";
@@ -1458,6 +1501,51 @@ class Api extends HttpClient {
1458
1501
  * @secure
1459
1502
  */
1460
1503
  this.codeChangesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/code-changes.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1504
+ /**
1505
+ * @description Create the content template.
1506
+ *
1507
+ * @tags notifications
1508
+ * @name ContentTemplateCreate
1509
+ * @request POST:/content-template.create
1510
+ * @secure
1511
+ */
1512
+ this.contentTemplateCreate = (data, params = {}) => this.request(Object.assign({ path: `/content-template.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1513
+ /**
1514
+ * @description Get the content template.
1515
+ *
1516
+ * @tags notifications
1517
+ * @name ContentTemplateGet
1518
+ * @request GET:/content-template.get
1519
+ * @secure
1520
+ */
1521
+ this.contentTemplateGet = (query, params = {}) => this.request(Object.assign({ path: `/content-template.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1522
+ /**
1523
+ * @description Get the content template.
1524
+ *
1525
+ * @tags notifications
1526
+ * @name ContentTemplateGetPost
1527
+ * @request POST:/content-template.get
1528
+ * @secure
1529
+ */
1530
+ this.contentTemplateGetPost = (data, params = {}) => this.request(Object.assign({ path: `/content-template.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1531
+ /**
1532
+ * @description Lists the content templates.
1533
+ *
1534
+ * @tags notifications
1535
+ * @name ContentTemplateList
1536
+ * @request GET:/content-template.list
1537
+ * @secure
1538
+ */
1539
+ this.contentTemplateList = (query, params = {}) => this.request(Object.assign({ path: `/content-template.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1540
+ /**
1541
+ * @description Lists the content templates.
1542
+ *
1543
+ * @tags notifications
1544
+ * @name ContentTemplateListPost
1545
+ * @request POST:/content-template.list
1546
+ * @secure
1547
+ */
1548
+ this.contentTemplateListPost = (data, params = {}) => this.request(Object.assign({ path: `/content-template.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1461
1549
  /**
1462
1550
  * @description Creates a conversation.
1463
1551
  *
@@ -1908,6 +1996,24 @@ class Api extends HttpClient {
1908
1996
  * @secure
1909
1997
  */
1910
1998
  this.groupsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/groups.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1999
+ /**
2000
+ * @description Creates an incident.
2001
+ *
2002
+ * @tags operate
2003
+ * @name IncidentsCreate
2004
+ * @request POST:/incidents.create
2005
+ * @secure
2006
+ */
2007
+ this.incidentsCreate = (data, params = {}) => this.request(Object.assign({ path: `/incidents.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2008
+ /**
2009
+ * @description Deletes an incident.
2010
+ *
2011
+ * @tags operate
2012
+ * @name IncidentsDelete
2013
+ * @request POST:/incidents.delete
2014
+ * @secure
2015
+ */
2016
+ this.incidentsDelete = (data, params = {}) => this.request(Object.assign({ path: `/incidents.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1911
2017
  /**
1912
2018
  * @description Gets an incident.
1913
2019
  *
@@ -1962,6 +2068,15 @@ class Api extends HttpClient {
1962
2068
  * @secure
1963
2069
  */
1964
2070
  this.incidentsListPost = (data, params = {}) => this.request(Object.assign({ path: `/incidents.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2071
+ /**
2072
+ * @description Updates an incident.
2073
+ *
2074
+ * @tags operate
2075
+ * @name IncidentsUpdate
2076
+ * @request POST:/incidents.update
2077
+ * @secure
2078
+ */
2079
+ this.incidentsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/incidents.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1965
2080
  /**
1966
2081
  * @description OAuth2 authorization callback.
1967
2082
  *
@@ -2429,6 +2544,24 @@ class Api extends HttpClient {
2429
2544
  * @secure
2430
2545
  */
2431
2546
  this.revUsersListPost = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2547
+ /**
2548
+ * @description Scans through all Rev users.
2549
+ *
2550
+ * @tags rev-users
2551
+ * @name RevUsersScan
2552
+ * @request GET:/rev-users.scan
2553
+ * @secure
2554
+ */
2555
+ this.revUsersScan = (query, params = {}) => this.request(Object.assign({ path: `/rev-users.scan`, method: 'GET', query: query, secure: true, format: 'json' }, params));
2556
+ /**
2557
+ * @description Scans through all Rev users.
2558
+ *
2559
+ * @tags rev-users
2560
+ * @name RevUsersScanPost
2561
+ * @request POST:/rev-users.scan
2562
+ * @secure
2563
+ */
2564
+ this.revUsersScanPost = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.scan`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2432
2565
  /**
2433
2566
  * @description Unlinks a rev user from a rev org.
2434
2567
  *
@@ -2726,6 +2859,15 @@ class Api extends HttpClient {
2726
2859
  * @secure
2727
2860
  */
2728
2861
  this.snapInsResourcesPost = (data, params = {}) => this.request(Object.assign({ path: `/snap-ins.resources`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2862
+ /**
2863
+ * @description Updates a snap-in.
2864
+ *
2865
+ * @tags snap-ins
2866
+ * @name SnapInsUpdate
2867
+ * @request POST:/snap-ins.update
2868
+ * @secure
2869
+ */
2870
+ this.snapInsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/snap-ins.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2729
2871
  /**
2730
2872
  * @description Create a snap widget object.
2731
2873
  *
@@ -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;
@@ -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[];
@@ -821,6 +830,11 @@ export interface ConversationMetadata {
821
830
  */
822
831
  url_context?: string;
823
832
  }
833
+ /** conversation-summary */
834
+ export type ConversationSummary = AtomBaseSummary & {
835
+ /** Title of the conversation object. */
836
+ title?: string;
837
+ };
824
838
  /**
825
839
  * date-filter
826
840
  * Provides ways to specify date ranges on objects.
@@ -1140,7 +1154,7 @@ export type EnhancementSummary = PartBaseSummary;
1140
1154
  */
1141
1155
  export interface EnumValue {
1142
1156
  /**
1143
- * The uiique ID of the enum value.
1157
+ * The unique ID of the enum value.
1144
1158
  * @format int64
1145
1159
  */
1146
1160
  id: number;
@@ -1200,9 +1214,11 @@ export interface ErrorBadRequestMergeWorksErrorError {
1200
1214
  closed?: ErrorBadRequestMergeWorksErrorErrorClosed;
1201
1215
  /** The details of the error. */
1202
1216
  details: string;
1217
+ different_reporters?: ErrorBadRequestMergeWorksErrorErrorDifferentReporters;
1203
1218
  different_workspace?: ErrorBadRequestMergeWorksErrorErrorDifferentWorkspace;
1204
1219
  invalid_stage_transition?: ErrorBadRequestMergeWorksErrorErrorInvalidStageTransition;
1205
- subtype?: 'already_merged' | 'closed' | 'different_workspace' | 'invalid_stage_transition';
1220
+ locked?: ErrorBadRequestMergeWorksErrorErrorLocked;
1221
+ subtype?: 'already_merged' | 'closed' | 'different_reporters' | 'different_workspace' | 'invalid_stage_transition' | 'locked';
1206
1222
  /** The ID of the work which failed the validation. */
1207
1223
  work: string;
1208
1224
  }
@@ -1213,12 +1229,19 @@ export interface ErrorBadRequestMergeWorksErrorErrorAlreadyMerged {
1213
1229
  }
1214
1230
  /** error-bad-request-merge-works-error-error-closed */
1215
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
+ }
1216
1239
  /** error-bad-request-merge-works-error-error-different-workspace */
1217
1240
  export interface ErrorBadRequestMergeWorksErrorErrorDifferentWorkspace {
1218
1241
  /** The workspace of the primary work. */
1219
- primary_workspace: string;
1242
+ primary_workspace?: string;
1220
1243
  /** The workspace of the secondary work. */
1221
- secondary_workspace: string;
1244
+ secondary_workspace?: string;
1222
1245
  }
1223
1246
  /** error-bad-request-merge-works-error-error-invalid-stage-transition */
1224
1247
  export interface ErrorBadRequestMergeWorksErrorErrorInvalidStageTransition {
@@ -1227,6 +1250,8 @@ export interface ErrorBadRequestMergeWorksErrorErrorInvalidStageTransition {
1227
1250
  /** The stage to which the transition isn't allowed. */
1228
1251
  requested_stage: string;
1229
1252
  }
1253
+ /** error-bad-request-merge-works-error-error-locked */
1254
+ export type ErrorBadRequestMergeWorksErrorErrorLocked = object;
1230
1255
  /** error-bad-request-missing-dependency */
1231
1256
  export interface ErrorBadRequestMissingDependency {
1232
1257
  /** The dependent fields. */
@@ -1442,10 +1467,36 @@ export interface EventGroupCreated {
1442
1467
  export interface EventGroupDeleted {
1443
1468
  /** The ID of the group that was deleted. */
1444
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;
1445
1481
  }
1446
1482
  /** event-group-updated */
1447
1483
  export interface EventGroupUpdated {
1448
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;
1449
1500
  }
1450
1501
  /** event-part-created */
1451
1502
  export interface EventPartCreated {
@@ -1635,6 +1686,13 @@ export declare enum IssuePriority {
1635
1686
  P2 = "p2",
1636
1687
  P3 = "p3"
1637
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
+ };
1638
1696
  /**
1639
1697
  * job-history-item
1640
1698
  * Defines a job history line item.
@@ -1676,6 +1734,49 @@ export interface LegacyStage {
1676
1734
  /** Current stage name of the work item. */
1677
1735
  name: string;
1678
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
+ }
1679
1780
  /**
1680
1781
  * The iteration mode to use. If "after", then entries after the provided
1681
1782
  * cursor will be returned, or if no cursor is provided, then from the
@@ -2003,6 +2104,11 @@ export interface PartsUpdateResponse {
2003
2104
  export type Product = PartBase;
2004
2105
  /** product-summary */
2005
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;
2006
2112
  /** rev-org */
2007
2113
  export type RevOrg = OrgBase & {
2008
2114
  /** Description of the Rev organization. */
@@ -2029,7 +2135,10 @@ export interface RevOrgsCreateRequest {
2029
2135
  description?: string;
2030
2136
  /** Name of the Rev organization. */
2031
2137
  display_name: string;
2032
- /** Company's domain name. Example - 'devrev.ai'. */
2138
+ /**
2139
+ * Company's domain name. Example - 'devrev.ai'.
2140
+ * @deprecated
2141
+ */
2033
2142
  domain?: string;
2034
2143
  /** The environment of the Org. Defaults to 'production' if not specified. */
2035
2144
  environment?: OrgEnvironment;
@@ -2154,7 +2263,10 @@ export interface RevOrgsUpdateRequest {
2154
2263
  description?: string;
2155
2264
  /** Customer chosen name for the Rev organization. */
2156
2265
  display_name?: string;
2157
- /** Company's domain name. Example - 'devrev.ai'. */
2266
+ /**
2267
+ * Company's domain name. Example - 'devrev.ai'.
2268
+ * @deprecated
2269
+ */
2158
2270
  domain?: string;
2159
2271
  /** The environment of the Org. Defaults to 'production' if not specified. */
2160
2272
  environment?: OrgEnvironment;
@@ -2268,6 +2380,8 @@ export type SlaTracker = AtomBase & {
2268
2380
  applies_to_id?: string;
2269
2381
  /** Summary of the metrics target being tracked in the SLA tracker. */
2270
2382
  metric_target_summaries: ArchetypeMetricTarget[];
2383
+ /** User, timestamp and metric Id of removed metrics. */
2384
+ removed_sla_metric_history?: RemovedSlaMetricHistory[];
2271
2385
  sla?: SlaSummary;
2272
2386
  /**
2273
2387
  * Details of the applicable SLA policy. Can be omitted if no sla
@@ -2594,7 +2708,8 @@ export declare enum TicketChannels {
2594
2708
  Email = "email",
2595
2709
  Plug = "plug",
2596
2710
  Slack = "slack",
2597
- Twilio = "twilio"
2711
+ Twilio = "twilio",
2712
+ TwilioSms = "twilio_sms"
2598
2713
  }
2599
2714
  /** Severity of the ticket. */
2600
2715
  export declare enum TicketSeverity {
@@ -2603,6 +2718,12 @@ export declare enum TicketSeverity {
2603
2718
  Low = "low",
2604
2719
  Medium = "medium"
2605
2720
  }
2721
+ /** ticket-summary */
2722
+ export type TicketSummary = WorkBaseSummary & {
2723
+ rev_org?: OrgSummary;
2724
+ /** Severity of the ticket. */
2725
+ severity?: TicketSeverity;
2726
+ };
2606
2727
  /** timeline-comment */
2607
2728
  export type TimelineComment = TimelineEntryBase & {
2608
2729
  /** The artifacts for the comment. */
@@ -3014,9 +3135,14 @@ export interface WebhookEventRequest {
3014
3135
  dev_user_updated?: EventDevUserUpdated;
3015
3136
  group_created?: EventGroupCreated;
3016
3137
  group_deleted?: EventGroupDeleted;
3138
+ group_member_added?: EventGroupMemberAdded;
3139
+ group_member_removed?: EventGroupMemberRemoved;
3017
3140
  group_updated?: EventGroupUpdated;
3018
3141
  /** The event's ID. */
3019
3142
  id: string;
3143
+ link_created?: EventLinkCreated;
3144
+ link_deleted?: EventLinkDeleted;
3145
+ link_updated?: EventLinkUpdated;
3020
3146
  part_created?: EventPartCreated;
3021
3147
  part_deleted?: EventPartDeleted;
3022
3148
  part_updated?: EventPartUpdated;
@@ -3082,7 +3208,12 @@ export declare enum WebhookEventType {
3082
3208
  DevUserUpdated = "dev_user_updated",
3083
3209
  GroupCreated = "group_created",
3084
3210
  GroupDeleted = "group_deleted",
3211
+ GroupMemberAdded = "group_member_added",
3212
+ GroupMemberRemoved = "group_member_removed",
3085
3213
  GroupUpdated = "group_updated",
3214
+ LinkCreated = "link_created",
3215
+ LinkDeleted = "link_deleted",
3216
+ LinkUpdated = "link_updated",
3086
3217
  PartCreated = "part_created",
3087
3218
  PartDeleted = "part_deleted",
3088
3219
  PartUpdated = "part_updated",
@@ -3285,6 +3416,15 @@ export type WorkBase = AtomBase & {
3285
3416
  /** Title of the work object. */
3286
3417
  title: string;
3287
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
+ };
3288
3428
  export declare enum WorkType {
3289
3429
  Issue = "issue",
3290
3430
  Ticket = "ticket"
@@ -3709,6 +3849,11 @@ export interface WorksUpdateRequestTicket {
3709
3849
  * @example "REV-AbCdEfGh"
3710
3850
  */
3711
3851
  rev_org?: string | null;
3852
+ /**
3853
+ * The enum ID for the sentiment of the ticket.
3854
+ * @format int64
3855
+ */
3856
+ sentiment?: number;
3712
3857
  /** Severity of the ticket. */
3713
3858
  severity?: TicketSeverity;
3714
3859
  }
@@ -33,8 +33,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
33
33
  return (mod && mod.__esModule) ? mod : { "default": mod };
34
34
  };
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TicketChannels = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SlaType = exports.SlaSummaryStage = exports.SlaStatus = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgEnvironment = exports.ListMode = exports.IssuePriority = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = void 0;
37
- exports.Api = exports.HttpClient = void 0;
36
+ exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TicketChannels = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SlaType = exports.SlaSummaryStage = exports.SlaStatus = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgEnvironment = exports.ListMode = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = void 0;
37
+ exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = void 0;
38
38
  var AuthConnectionToggle;
39
39
  (function (AuthConnectionToggle) {
40
40
  AuthConnectionToggle["Disable"] = "disable";
@@ -202,6 +202,32 @@ var IssuePriority;
202
202
  IssuePriority["P2"] = "p2";
203
203
  IssuePriority["P3"] = "p3";
204
204
  })(IssuePriority = exports.IssuePriority || (exports.IssuePriority = {}));
205
+ var LinkEndpointType;
206
+ (function (LinkEndpointType) {
207
+ LinkEndpointType["Capability"] = "capability";
208
+ LinkEndpointType["Conversation"] = "conversation";
209
+ LinkEndpointType["Enhancement"] = "enhancement";
210
+ LinkEndpointType["Feature"] = "feature";
211
+ LinkEndpointType["Issue"] = "issue";
212
+ LinkEndpointType["Product"] = "product";
213
+ LinkEndpointType["Ticket"] = "ticket";
214
+ })(LinkEndpointType = exports.LinkEndpointType || (exports.LinkEndpointType = {}));
215
+ /** Type of link used to define the relationship. */
216
+ var LinkType;
217
+ (function (LinkType) {
218
+ LinkType["CustomLink"] = "custom_link";
219
+ LinkType["DevelopedWith"] = "developed_with";
220
+ LinkType["Imports"] = "imports";
221
+ LinkType["IsAnalyzedBy"] = "is_analyzed_by";
222
+ LinkType["IsConvertedTo"] = "is_converted_to";
223
+ LinkType["IsDependentOn"] = "is_dependent_on";
224
+ LinkType["IsDuplicateOf"] = "is_duplicate_of";
225
+ LinkType["IsMergedInto"] = "is_merged_into";
226
+ LinkType["IsParentOf"] = "is_parent_of";
227
+ LinkType["IsPartOf"] = "is_part_of";
228
+ LinkType["IsRelatedTo"] = "is_related_to";
229
+ LinkType["Serves"] = "serves";
230
+ })(LinkType = exports.LinkType || (exports.LinkType = {}));
205
231
  /**
206
232
  * The iteration mode to use. If "after", then entries after the provided
207
233
  * cursor will be returned, or if no cursor is provided, then from the
@@ -301,6 +327,7 @@ var TicketChannels;
301
327
  TicketChannels["Plug"] = "plug";
302
328
  TicketChannels["Slack"] = "slack";
303
329
  TicketChannels["Twilio"] = "twilio";
330
+ TicketChannels["TwilioSms"] = "twilio_sms";
304
331
  })(TicketChannels = exports.TicketChannels || (exports.TicketChannels = {}));
305
332
  /** Severity of the ticket. */
306
333
  var TicketSeverity;
@@ -400,7 +427,12 @@ var WebhookEventType;
400
427
  WebhookEventType["DevUserUpdated"] = "dev_user_updated";
401
428
  WebhookEventType["GroupCreated"] = "group_created";
402
429
  WebhookEventType["GroupDeleted"] = "group_deleted";
430
+ WebhookEventType["GroupMemberAdded"] = "group_member_added";
431
+ WebhookEventType["GroupMemberRemoved"] = "group_member_removed";
403
432
  WebhookEventType["GroupUpdated"] = "group_updated";
433
+ WebhookEventType["LinkCreated"] = "link_created";
434
+ WebhookEventType["LinkDeleted"] = "link_deleted";
435
+ WebhookEventType["LinkUpdated"] = "link_updated";
404
436
  WebhookEventType["PartCreated"] = "part_created";
405
437
  WebhookEventType["PartDeleted"] = "part_deleted";
406
438
  WebhookEventType["PartUpdated"] = "part_updated";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrev/typescript-sdk",
3
- "version": "1.1.29",
3
+ "version": "1.1.30",
4
4
  "description": "## SDK Generation",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {