@devrev/typescript-sdk 1.1.54 → 1.1.55

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,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.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.QuestionAnswerStatus = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgEnvironment = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MemberType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupType = exports.GroupMemberType = exports.GroupIngestionSource = exports.EventTimelineEntryUpdatedReactionAction = exports.EventFetchedResult = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.ConversationsCreateRequestTypeValue = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.ArticleType = exports.ArticleStatus = exports.AccessLevel = void 0;
37
- exports.Api = exports.HttpClient = 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.SyncRunMode = exports.SyncProgressState = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapKitActionRequestElementTypeValue = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaTrackerAppliesToType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = void 0;
36
+ exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.QuestionAnswerStatus = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgEnvironment = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MemberType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupType = exports.GroupMemberType = exports.GroupIngestionSource = exports.EventTimelineEntryUpdatedReactionAction = exports.EventFetchedResult = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.ErrorBadRequestCustomizationValidationErrorSubtype = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.ConversationsCreateRequestTypeValue = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.ArticleType = exports.ArticleStatus = exports.AccessLevel = void 0;
37
+ exports.Api = exports.HttpClient = 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.SyncRunMode = exports.SyncProgressState = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapKitActionRequestElementTypeValue = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaTrackerAppliesToType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = void 0;
38
38
  var AccessLevel;
39
39
  (function (AccessLevel) {
40
40
  AccessLevel["External"] = "external";
@@ -59,15 +59,21 @@ var ArticleType;
59
59
  })(ArticleType = exports.ArticleType || (exports.ArticleType = {}));
60
60
  var AtomType;
61
61
  (function (AtomType) {
62
+ AtomType["AuthToken"] = "auth_token";
62
63
  AtomType["Capability"] = "capability";
63
64
  AtomType["Conversation"] = "conversation";
64
65
  AtomType["DevUser"] = "dev_user";
65
66
  AtomType["Enhancement"] = "enhancement";
66
67
  AtomType["Feature"] = "feature";
68
+ AtomType["Group"] = "group";
67
69
  AtomType["Issue"] = "issue";
70
+ AtomType["Link"] = "link";
68
71
  AtomType["Product"] = "product";
69
72
  AtomType["RevOrg"] = "rev_org";
70
73
  AtomType["RevUser"] = "rev_user";
74
+ AtomType["ServiceAccount"] = "service_account";
75
+ AtomType["Sla"] = "sla";
76
+ AtomType["SlaTracker"] = "sla_tracker";
71
77
  AtomType["SysUser"] = "sys_user";
72
78
  AtomType["Tag"] = "tag";
73
79
  AtomType["Ticket"] = "ticket";
@@ -209,10 +215,30 @@ var DevUserJobTitle;
209
215
  DevUserJobTitle["Support"] = "support";
210
216
  DevUserJobTitle["TechLead"] = "tech_lead";
211
217
  })(DevUserJobTitle = exports.DevUserJobTitle || (exports.DevUserJobTitle = {}));
218
+ var ErrorBadRequestCustomizationValidationErrorSubtype;
219
+ (function (ErrorBadRequestCustomizationValidationErrorSubtype) {
220
+ ErrorBadRequestCustomizationValidationErrorSubtype["BadIdType"] = "bad_id_type";
221
+ ErrorBadRequestCustomizationValidationErrorSubtype["DateParseError"] = "date_parse_error";
222
+ ErrorBadRequestCustomizationValidationErrorSubtype["EnumOutOfRange"] = "enum_out_of_range";
223
+ ErrorBadRequestCustomizationValidationErrorSubtype["ExpressionParseError"] = "expression_parse_error";
224
+ ErrorBadRequestCustomizationValidationErrorSubtype["FieldDropped"] = "field_dropped";
225
+ ErrorBadRequestCustomizationValidationErrorSubtype["FieldImmutable"] = "field_immutable";
226
+ ErrorBadRequestCustomizationValidationErrorSubtype["FieldNotInSchema"] = "field_not_in_schema";
227
+ ErrorBadRequestCustomizationValidationErrorSubtype["FieldRequired"] = "field_required";
228
+ ErrorBadRequestCustomizationValidationErrorSubtype["FragmentNotFound"] = "fragment_not_found";
229
+ ErrorBadRequestCustomizationValidationErrorSubtype["IdParseError"] = "id_parse_error";
230
+ ErrorBadRequestCustomizationValidationErrorSubtype["IdTypeNotAllowed"] = "id_type_not_allowed";
231
+ ErrorBadRequestCustomizationValidationErrorSubtype["InvalidArgument"] = "invalid_argument";
232
+ ErrorBadRequestCustomizationValidationErrorSubtype["TimestampParseError"] = "timestamp_parse_error";
233
+ ErrorBadRequestCustomizationValidationErrorSubtype["UnknownError"] = "unknown_error";
234
+ ErrorBadRequestCustomizationValidationErrorSubtype["UnsupportedType"] = "unsupported_type";
235
+ ErrorBadRequestCustomizationValidationErrorSubtype["WrongType"] = "wrong_type";
236
+ })(ErrorBadRequestCustomizationValidationErrorSubtype = exports.ErrorBadRequestCustomizationValidationErrorSubtype || (exports.ErrorBadRequestCustomizationValidationErrorSubtype = {}));
212
237
  var ErrorBadRequestType;
213
238
  (function (ErrorBadRequestType) {
214
239
  ErrorBadRequestType["ArtifactAlreadyAttachedToAParent"] = "artifact_already_attached_to_a_parent";
215
240
  ErrorBadRequestType["BadRequest"] = "bad_request";
241
+ ErrorBadRequestType["CustomizationValidationError"] = "customization_validation_error";
216
242
  ErrorBadRequestType["InvalidApiVersion"] = "invalid_api_version";
217
243
  ErrorBadRequestType["InvalidEnumValue"] = "invalid_enum_value";
218
244
  ErrorBadRequestType["InvalidField"] = "invalid_field";
@@ -225,6 +251,7 @@ var ErrorBadRequestType;
225
251
  ErrorBadRequestType["UnexpectedIdType"] = "unexpected_id_type";
226
252
  ErrorBadRequestType["UnexpectedJsonType"] = "unexpected_json_type";
227
253
  ErrorBadRequestType["ValueNotPermitted"] = "value_not_permitted";
254
+ ErrorBadRequestType["WorkflowComponentValidationErrors"] = "workflow_component_validation_errors";
228
255
  })(ErrorBadRequestType = exports.ErrorBadRequestType || (exports.ErrorBadRequestType = {}));
229
256
  var ErrorBadRequestUnexpectedJsonTypeType;
230
257
  (function (ErrorBadRequestUnexpectedJsonTypeType) {
@@ -235,6 +262,13 @@ var ErrorBadRequestUnexpectedJsonTypeType;
235
262
  ErrorBadRequestUnexpectedJsonTypeType["Object"] = "object";
236
263
  ErrorBadRequestUnexpectedJsonTypeType["String"] = "string";
237
264
  })(ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestUnexpectedJsonTypeType || (exports.ErrorBadRequestUnexpectedJsonTypeType = {}));
265
+ var ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType;
266
+ (function (ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType) {
267
+ ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType["Field"] = "field";
268
+ ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType["Operation"] = "operation";
269
+ ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType["Workflow"] = "workflow";
270
+ ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType["WorkflowStep"] = "workflow_step";
271
+ })(ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType = exports.ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType || (exports.ErrorBadRequestWorkflowComponentValidationErrorWorkflowComponentValidationLocationType = {}));
238
272
  var ErrorConflictType;
239
273
  (function (ErrorConflictType) {
240
274
  ErrorConflictType["Conflict"] = "conflict";
@@ -355,6 +389,7 @@ var ListMode;
355
389
  var MemberType;
356
390
  (function (MemberType) {
357
391
  MemberType["DevUser"] = "dev_user";
392
+ MemberType["Group"] = "group";
358
393
  MemberType["RevUser"] = "rev_user";
359
394
  MemberType["SysUser"] = "sys_user";
360
395
  })(MemberType = exports.MemberType || (exports.MemberType = {}));
@@ -685,6 +720,7 @@ var UserType;
685
720
  (function (UserType) {
686
721
  UserType["DevUser"] = "dev_user";
687
722
  UserType["RevUser"] = "rev_user";
723
+ UserType["ServiceAccount"] = "service_account";
688
724
  UserType["SysUser"] = "sys_user";
689
725
  })(UserType = exports.UserType || (exports.UserType = {}));
690
726
  /** Defines the state of the group item. */
@@ -706,9 +742,13 @@ var WebhookEventType;
706
742
  WebhookEventType["AccountCreated"] = "account_created";
707
743
  WebhookEventType["AccountDeleted"] = "account_deleted";
708
744
  WebhookEventType["AccountUpdated"] = "account_updated";
745
+ WebhookEventType["AiAgentResponse"] = "ai_agent_response";
709
746
  WebhookEventType["ConversationCreated"] = "conversation_created";
710
747
  WebhookEventType["ConversationDeleted"] = "conversation_deleted";
711
748
  WebhookEventType["ConversationUpdated"] = "conversation_updated";
749
+ WebhookEventType["DashboardCreated"] = "dashboard_created";
750
+ WebhookEventType["DashboardDeleted"] = "dashboard_deleted";
751
+ WebhookEventType["DashboardUpdated"] = "dashboard_updated";
712
752
  WebhookEventType["DevUserCreated"] = "dev_user_created";
713
753
  WebhookEventType["DevUserDeleted"] = "dev_user_deleted";
714
754
  WebhookEventType["DevUserUpdated"] = "dev_user_updated";
@@ -720,6 +760,9 @@ var WebhookEventType;
720
760
  WebhookEventType["IncidentCreated"] = "incident_created";
721
761
  WebhookEventType["IncidentDeleted"] = "incident_deleted";
722
762
  WebhookEventType["IncidentUpdated"] = "incident_updated";
763
+ WebhookEventType["JobCreated"] = "job_created";
764
+ WebhookEventType["JobDeleted"] = "job_deleted";
765
+ WebhookEventType["JobUpdated"] = "job_updated";
723
766
  WebhookEventType["LinkCreated"] = "link_created";
724
767
  WebhookEventType["LinkDeleted"] = "link_deleted";
725
768
  WebhookEventType["LinkUpdated"] = "link_updated";
@@ -758,6 +801,9 @@ var WebhookEventType;
758
801
  WebhookEventType["WebhookCreated"] = "webhook_created";
759
802
  WebhookEventType["WebhookDeleted"] = "webhook_deleted";
760
803
  WebhookEventType["WebhookUpdated"] = "webhook_updated";
804
+ WebhookEventType["WidgetCreated"] = "widget_created";
805
+ WebhookEventType["WidgetDeleted"] = "widget_deleted";
806
+ WebhookEventType["WidgetUpdated"] = "widget_updated";
761
807
  WebhookEventType["WorkCreated"] = "work_created";
762
808
  WebhookEventType["WorkDeleted"] = "work_deleted";
763
809
  WebhookEventType["WorkFetched"] = "work_fetched";
@@ -1263,7 +1309,7 @@ class Api extends HttpClient {
1263
1309
  */
1264
1310
  this.conversationsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1265
1311
  /**
1266
- * @description Creates a new enterprise authentication connection for a Dev organization. This authentication connection will not be enabled by default for the organization and the user will need to explicitly enable this. Keep in mind that at a time, only one authentication connection can be enabled for a Dev organization. At present, only 5 enterprise connections can be created by an organization.
1312
+ * @description Creates a new enterprise authentication connection for a Dev organization. This authentication connection will not be enabled by default for the organization and the user will need to explicitly enable this. Only 5 authentication connections can be created by an organization.
1267
1313
  *
1268
1314
  * @tags auth-connections, dev-orgs
1269
1315
  * @name DevOrgAuthConnectionsCreate
@@ -1323,7 +1369,7 @@ class Api extends HttpClient {
1323
1369
  */
1324
1370
  this.devOrgAuthConnectionsListPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1325
1371
  /**
1326
- * @description Enable or disable an authentication connection for a Dev organization. Currently, only 1 authentication connection can be enabled at a time. When a new authentication connection is enabled, the connection which is currently enabled for the Dev organization is automatically disabled.
1372
+ * @description Enable or disable an authentication connection for a Dev organization. Atleast one authentication connection must be enabled for a Dev organization.
1327
1373
  *
1328
1374
  * @tags auth-connections, dev-orgs
1329
1375
  * @name DevOrgAuthConnectionsToggle
@@ -1856,7 +1902,7 @@ class Api extends HttpClient {
1856
1902
  *
1857
1903
  * @tags slas
1858
1904
  * @name SlaTrackersGet
1859
- * @summary Get Sla Tracker
1905
+ * @summary Get SLA Tracker
1860
1906
  * @request GET:/sla-trackers.get
1861
1907
  * @secure
1862
1908
  */
@@ -1866,7 +1912,7 @@ class Api extends HttpClient {
1866
1912
  *
1867
1913
  * @tags slas
1868
1914
  * @name SlaTrackersGetPost
1869
- * @summary Get Sla Tracker (POST)
1915
+ * @summary Get SLA Tracker (POST)
1870
1916
  * @request POST:/sla-trackers.get
1871
1917
  * @secure
1872
1918
  */
@@ -1876,7 +1922,7 @@ class Api extends HttpClient {
1876
1922
  *
1877
1923
  * @tags slas
1878
1924
  * @name SlaTrackersList
1879
- * @summary List Sla Trackers
1925
+ * @summary List SLA Trackers
1880
1926
  * @request GET:/sla-trackers.list
1881
1927
  * @secure
1882
1928
  */
@@ -1886,7 +1932,7 @@ class Api extends HttpClient {
1886
1932
  *
1887
1933
  * @tags slas
1888
1934
  * @name SlaTrackersListPost
1889
- * @summary List Sla Trackers (POST)
1935
+ * @summary List SLA Trackers (POST)
1890
1936
  * @request POST:/sla-trackers.list
1891
1937
  * @secure
1892
1938
  */
@@ -1896,7 +1942,7 @@ class Api extends HttpClient {
1896
1942
  *
1897
1943
  * @tags slas
1898
1944
  * @name SlasAssign
1899
- * @summary Assign Slas
1945
+ * @summary Assign SLAs
1900
1946
  * @request POST:/slas.assign
1901
1947
  * @secure
1902
1948
  */
@@ -1906,7 +1952,7 @@ class Api extends HttpClient {
1906
1952
  *
1907
1953
  * @tags slas
1908
1954
  * @name SlasCreate
1909
- * @summary Create Sla
1955
+ * @summary Create SLA
1910
1956
  * @request POST:/slas.create
1911
1957
  * @secure
1912
1958
  */
@@ -1916,7 +1962,7 @@ class Api extends HttpClient {
1916
1962
  *
1917
1963
  * @tags slas
1918
1964
  * @name SlasGet
1919
- * @summary Get Sla
1965
+ * @summary Get SLA
1920
1966
  * @request GET:/slas.get
1921
1967
  * @secure
1922
1968
  */
@@ -1926,7 +1972,7 @@ class Api extends HttpClient {
1926
1972
  *
1927
1973
  * @tags slas
1928
1974
  * @name SlasGetPost
1929
- * @summary Get Sla (POST)
1975
+ * @summary Get SLA (POST)
1930
1976
  * @request POST:/slas.get
1931
1977
  * @secure
1932
1978
  */
@@ -1936,7 +1982,7 @@ class Api extends HttpClient {
1936
1982
  *
1937
1983
  * @tags slas
1938
1984
  * @name SlasList
1939
- * @summary List Slas
1985
+ * @summary List SLAs
1940
1986
  * @request GET:/slas.list
1941
1987
  * @secure
1942
1988
  */
@@ -1946,7 +1992,7 @@ class Api extends HttpClient {
1946
1992
  *
1947
1993
  * @tags slas
1948
1994
  * @name SlasListPost
1949
- * @summary List Slas (POST)
1995
+ * @summary List SLAs (POST)
1950
1996
  * @request POST:/slas.list
1951
1997
  * @secure
1952
1998
  */
@@ -1956,7 +2002,7 @@ class Api extends HttpClient {
1956
2002
  *
1957
2003
  * @tags slas
1958
2004
  * @name SlasTransition
1959
- * @summary Transition Slas
2005
+ * @summary Transition SLAs
1960
2006
  * @request POST:/slas.transition
1961
2007
  * @secure
1962
2008
  */
@@ -1966,7 +2012,7 @@ class Api extends HttpClient {
1966
2012
  *
1967
2013
  * @tags slas
1968
2014
  * @name SlasUpdate
1969
- * @summary Update Sla
2015
+ * @summary Update SLA
1970
2016
  * @request POST:/slas.update
1971
2017
  * @secure
1972
2018
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrev/typescript-sdk",
3
- "version": "1.1.54",
3
+ "version": "1.1.55",
4
4
  "description": "## SDK Generation",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {