@devrev/typescript-sdk 1.1.21 → 1.1.22

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.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TaskPriority = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MemberType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupMemberType = exports.EventSourceStatus = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CodeChangeSource = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
- exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhookStatus = exports.WebhookEventType = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TimelineEntryVisibility = exports.TimelineEntryType = void 0;
36
+ exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MemberType = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupType = exports.GroupMemberType = exports.EventSourceStatus = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CodeChangeSource = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
+ exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TaskPriority = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = void 0;
38
38
  var AccessLevel;
39
39
  (function (AccessLevel) {
40
40
  AccessLevel["External"] = "external";
@@ -84,6 +84,72 @@ var ArticleStatus;
84
84
  ArticleStatus["Published"] = "published";
85
85
  ArticleStatus["ReviewNeeded"] = "review_needed";
86
86
  })(ArticleStatus = exports.ArticleStatus || (exports.ArticleStatus = {}));
87
+ var AuthConnectionToggle;
88
+ (function (AuthConnectionToggle) {
89
+ AuthConnectionToggle["Disable"] = "disable";
90
+ AuthConnectionToggle["Enable"] = "enable";
91
+ })(AuthConnectionToggle = exports.AuthConnectionToggle || (exports.AuthConnectionToggle = {}));
92
+ /**
93
+ * Defines the type for the authentication connection. The configuration
94
+ * for each authentication connection will depend on the type value.
95
+ */
96
+ var AuthConnectionType;
97
+ (function (AuthConnectionType) {
98
+ AuthConnectionType["GoogleApps"] = "google_apps";
99
+ AuthConnectionType["Oidc"] = "oidc";
100
+ AuthConnectionType["Samlp"] = "samlp";
101
+ AuthConnectionType["Social"] = "social";
102
+ AuthConnectionType["Waad"] = "waad";
103
+ })(AuthConnectionType = exports.AuthConnectionType || (exports.AuthConnectionType = {}));
104
+ /** Specifies the process of obtaining a token. */
105
+ var AuthTokenGrantType;
106
+ (function (AuthTokenGrantType) {
107
+ AuthTokenGrantType["UrnDevrevParamsOauthGrantTypeTokenIssue"] = "urn:devrev:params:oauth:grant-type:token-issue";
108
+ AuthTokenGrantType["UrnIetfParamsOauthGrantTypeTokenExchange"] = "urn:ietf:params:oauth:grant-type:token-exchange";
109
+ })(AuthTokenGrantType = exports.AuthTokenGrantType || (exports.AuthTokenGrantType = {}));
110
+ /** The type of the requested token. */
111
+ var AuthTokenRequestedTokenType;
112
+ (function (AuthTokenRequestedTokenType) {
113
+ AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeAat"] = "urn:devrev:params:oauth:token-type:aat";
114
+ AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeAatPublic"] = "urn:devrev:params:oauth:token-type:aat:public";
115
+ AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeDev"] = "urn:devrev:params:oauth:token-type:dev";
116
+ AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeGat"] = "urn:devrev:params:oauth:token-type:gat";
117
+ AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypePat"] = "urn:devrev:params:oauth:token-type:pat";
118
+ AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypePatActAs"] = "urn:devrev:params:oauth:token-type:pat:act-as";
119
+ AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeRat"] = "urn:devrev:params:oauth:token-type:rat";
120
+ AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeRev"] = "urn:devrev:params:oauth:token-type:rev";
121
+ AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeSession"] = "urn:devrev:params:oauth:token-type:session";
122
+ AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeSessionDev0"] = "urn:devrev:params:oauth:token-type:session:dev0";
123
+ AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeSessionOnetime"] = "urn:devrev:params:oauth:token-type:session:onetime";
124
+ AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeSuper"] = "urn:devrev:params:oauth:token-type:super";
125
+ AuthTokenRequestedTokenType["UrnDevrevParamsOauthTokenTypeSys"] = "urn:devrev:params:oauth:token-type:sys";
126
+ AuthTokenRequestedTokenType["UrnIetfParamsOauthTokenTypeJwt"] = "urn:ietf:params:oauth:token-type:jwt";
127
+ })(AuthTokenRequestedTokenType = exports.AuthTokenRequestedTokenType || (exports.AuthTokenRequestedTokenType = {}));
128
+ /** The status of the token. */
129
+ var AuthTokenStatus;
130
+ (function (AuthTokenStatus) {
131
+ AuthTokenStatus["Active"] = "active";
132
+ AuthTokenStatus["Expired"] = "expired";
133
+ AuthTokenStatus["Revoked"] = "revoked";
134
+ })(AuthTokenStatus = exports.AuthTokenStatus || (exports.AuthTokenStatus = {}));
135
+ /** The type of the subject token. */
136
+ var AuthTokenSubjectTokenType;
137
+ (function (AuthTokenSubjectTokenType) {
138
+ AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeJwtAuth0"] = "urn:devrev:params:oauth:token-type:jwt:auth0";
139
+ AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeJwtDev"] = "urn:devrev:params:oauth:token-type:jwt:dev";
140
+ AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeRat"] = "urn:devrev:params:oauth:token-type:rat";
141
+ AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeRevinfo"] = "urn:devrev:params:oauth:token-type:revinfo";
142
+ AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeSession"] = "urn:devrev:params:oauth:token-type:session";
143
+ AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeSysu"] = "urn:devrev:params:oauth:token-type:sysu";
144
+ AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeUserinfo"] = "urn:devrev:params:oauth:token-type:userinfo";
145
+ AuthTokenSubjectTokenType["UrnDevrevParamsOauthTokenTypeUserinfoProfile"] = "urn:devrev:params:oauth:token-type:userinfo:profile";
146
+ AuthTokenSubjectTokenType["UrnIetfParamsOauthTokenTypeJwt"] = "urn:ietf:params:oauth:token-type:jwt";
147
+ })(AuthTokenSubjectTokenType = exports.AuthTokenSubjectTokenType || (exports.AuthTokenSubjectTokenType = {}));
148
+ /** The type of the issued token. Bearer is the only supported token type. */
149
+ var AuthTokenTokenType;
150
+ (function (AuthTokenTokenType) {
151
+ AuthTokenTokenType["Bearer"] = "bearer";
152
+ })(AuthTokenTokenType = exports.AuthTokenTokenType || (exports.AuthTokenTokenType = {}));
87
153
  /** Source of the code change object. */
88
154
  var CodeChangeSource;
89
155
  (function (CodeChangeSource) {
@@ -93,6 +159,13 @@ var ConversationsCreateRequestTypeValue;
93
159
  (function (ConversationsCreateRequestTypeValue) {
94
160
  ConversationsCreateRequestTypeValue["Support"] = "support";
95
161
  })(ConversationsCreateRequestTypeValue = exports.ConversationsCreateRequestTypeValue || (exports.ConversationsCreateRequestTypeValue = {}));
162
+ /** Type of the custom schema fragment. */
163
+ var CustomSchemaFragmentFragmentType;
164
+ (function (CustomSchemaFragmentFragmentType) {
165
+ CustomSchemaFragmentFragmentType["App"] = "app";
166
+ CustomSchemaFragmentFragmentType["CustomType"] = "custom_type";
167
+ CustomSchemaFragmentFragmentType["Tenant"] = "tenant";
168
+ })(CustomSchemaFragmentFragmentType = exports.CustomSchemaFragmentFragmentType || (exports.CustomSchemaFragmentFragmentType = {}));
96
169
  var CustomSchemaFragmentType;
97
170
  (function (CustomSchemaFragmentType) {
98
171
  CustomSchemaFragmentType["AppFragment"] = "app_fragment";
@@ -117,6 +190,30 @@ var DateTimePresetType;
117
190
  DateTimePresetType["LastNDays"] = "last_n_days";
118
191
  DateTimePresetType["NextNDays"] = "next_n_days";
119
192
  })(DateTimePresetType = exports.DateTimePresetType || (exports.DateTimePresetType = {}));
193
+ /**
194
+ * Defines the type for the authentication connection. Different types of
195
+ * authentication connections have different configuration parameters.
196
+ */
197
+ var DevOrgAuthConnectionsCreateRequestType;
198
+ (function (DevOrgAuthConnectionsCreateRequestType) {
199
+ DevOrgAuthConnectionsCreateRequestType["GoogleApps"] = "google_apps";
200
+ DevOrgAuthConnectionsCreateRequestType["Oidc"] = "oidc";
201
+ DevOrgAuthConnectionsCreateRequestType["Samlp"] = "samlp";
202
+ DevOrgAuthConnectionsCreateRequestType["Waad"] = "waad";
203
+ })(DevOrgAuthConnectionsCreateRequestType = exports.DevOrgAuthConnectionsCreateRequestType || (exports.DevOrgAuthConnectionsCreateRequestType = {}));
204
+ /**
205
+ * Specifies the type for the authentication connection. Different types
206
+ * of authentication connections have different configuration parameters
207
+ * that can be updated.
208
+ */
209
+ var DevOrgAuthConnectionsUpdateRequestType;
210
+ (function (DevOrgAuthConnectionsUpdateRequestType) {
211
+ DevOrgAuthConnectionsUpdateRequestType["GoogleApps"] = "google_apps";
212
+ DevOrgAuthConnectionsUpdateRequestType["None"] = "none";
213
+ DevOrgAuthConnectionsUpdateRequestType["Oidc"] = "oidc";
214
+ DevOrgAuthConnectionsUpdateRequestType["Samlp"] = "samlp";
215
+ DevOrgAuthConnectionsUpdateRequestType["Waad"] = "waad";
216
+ })(DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsUpdateRequestType || (exports.DevOrgAuthConnectionsUpdateRequestType = {}));
120
217
  /** Type of engagement. */
121
218
  var EngagementType;
122
219
  (function (EngagementType) {
@@ -187,6 +284,12 @@ var GroupMemberType;
187
284
  GroupMemberType["DevUser"] = "dev_user";
188
285
  GroupMemberType["RevUser"] = "rev_user";
189
286
  })(GroupMemberType = exports.GroupMemberType || (exports.GroupMemberType = {}));
287
+ /** Type of the group. */
288
+ var GroupType;
289
+ (function (GroupType) {
290
+ GroupType["Dynamic"] = "dynamic";
291
+ GroupType["Static"] = "static";
292
+ })(GroupType = exports.GroupType || (exports.GroupType = {}));
190
293
  /** Priority of the work based upon impact and criticality. */
191
294
  var IssuePriority;
192
295
  (function (IssuePriority) {
@@ -436,6 +539,7 @@ var TicketSeverity;
436
539
  var TimelineCommentBodyType;
437
540
  (function (TimelineCommentBodyType) {
438
541
  TimelineCommentBodyType["SnapKit"] = "snap_kit";
542
+ TimelineCommentBodyType["SnapWidget"] = "snap_widget";
439
543
  TimelineCommentBodyType["Text"] = "text";
440
544
  })(TimelineCommentBodyType = exports.TimelineCommentBodyType || (exports.TimelineCommentBodyType = {}));
441
545
  /** Describes collections of timeline entries. */
@@ -527,6 +631,15 @@ var UserType;
527
631
  /** The event types that the webhook will receive. */
528
632
  var WebhookEventType;
529
633
  (function (WebhookEventType) {
634
+ WebhookEventType["AccountCreated"] = "account_created";
635
+ WebhookEventType["AccountDeleted"] = "account_deleted";
636
+ WebhookEventType["AccountUpdated"] = "account_updated";
637
+ WebhookEventType["ConversationCreated"] = "conversation_created";
638
+ WebhookEventType["ConversationDeleted"] = "conversation_deleted";
639
+ WebhookEventType["ConversationUpdated"] = "conversation_updated";
640
+ WebhookEventType["DevUserCreated"] = "dev_user_created";
641
+ WebhookEventType["DevUserDeleted"] = "dev_user_deleted";
642
+ WebhookEventType["DevUserUpdated"] = "dev_user_updated";
530
643
  WebhookEventType["PartCreated"] = "part_created";
531
644
  WebhookEventType["PartDeleted"] = "part_deleted";
532
645
  WebhookEventType["PartUpdated"] = "part_updated";
@@ -557,6 +670,12 @@ var WebhookStatus;
557
670
  WebhookStatus["Inactive"] = "inactive";
558
671
  WebhookStatus["Unverified"] = "unverified";
559
672
  })(WebhookStatus = exports.WebhookStatus || (exports.WebhookStatus = {}));
673
+ /** The action to update the webhook's status. */
674
+ var WebhooksUpdateAction;
675
+ (function (WebhooksUpdateAction) {
676
+ WebhooksUpdateAction["Activate"] = "activate";
677
+ WebhooksUpdateAction["Deactivate"] = "deactivate";
678
+ })(WebhooksUpdateAction = exports.WebhooksUpdateAction || (exports.WebhooksUpdateAction = {}));
560
679
  var WorkType;
561
680
  (function (WorkType) {
562
681
  WorkType["Issue"] = "issue";
@@ -636,11 +755,11 @@ class HttpClient {
636
755
  }
637
756
  exports.HttpClient = HttpClient;
638
757
  /**
639
- * @title DevRev Beta REST API
640
- * @version BETA
758
+ * @title DevRev REST API
759
+ * @version 2022-10-20
641
760
  * @baseUrl {protocol}://{hostname}
642
761
  *
643
- * DevRev's BETA REST API Specification.
762
+ * DevRev's REST API.
644
763
  */
645
764
  class Api extends HttpClient {
646
765
  constructor() {
@@ -807,6 +926,24 @@ class Api extends HttpClient {
807
926
  * @secure
808
927
  */
809
928
  this.updateArticle = (data, params = {}) => this.request(Object.assign({ path: `/articles.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
929
+ /**
930
+ * @description Gets the download URL for the artifact.
931
+ *
932
+ * @tags artifacts
933
+ * @name ArtifactsLocate
934
+ * @request GET:/artifacts.locate
935
+ * @secure
936
+ */
937
+ this.artifactsLocate = (query, params = {}) => this.request(Object.assign({ path: `/artifacts.locate`, method: 'GET', query: query, secure: true, format: 'json' }, params));
938
+ /**
939
+ * @description Gets the download URL for the artifact.
940
+ *
941
+ * @tags artifacts
942
+ * @name ArtifactsLocatePost
943
+ * @request POST:/artifacts.locate
944
+ * @secure
945
+ */
946
+ this.artifactsLocatePost = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.locate`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
810
947
  /**
811
948
  * @description Creates an artifact and generates an upload URL for its data.
812
949
  *
@@ -825,6 +962,78 @@ class Api extends HttpClient {
825
962
  * @secure
826
963
  */
827
964
  this.artifactsVersionsPrepare = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.versions.prepare`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
965
+ /**
966
+ * @description Creates a JWT corresponding to the requested token type for the authenticated user.
967
+ *
968
+ * @tags auth-tokens
969
+ * @name AuthTokensCreate
970
+ * @request POST:/auth-tokens.create
971
+ * @secure
972
+ */
973
+ this.authTokensCreate = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
974
+ /**
975
+ * @description Revokes the token that matches the given token ID issued under the given Dev organization.
976
+ *
977
+ * @tags auth-tokens
978
+ * @name AuthTokensDelete
979
+ * @request POST:/auth-tokens.delete
980
+ * @secure
981
+ */
982
+ this.authTokensDelete = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
983
+ /**
984
+ * @description Gets the token metadata corresponding to the given token ID under the given Dev organization.
985
+ *
986
+ * @tags auth-tokens
987
+ * @name AuthTokensGet
988
+ * @request GET:/auth-tokens.get
989
+ * @secure
990
+ */
991
+ this.authTokensGet = (query, params = {}) => this.request(Object.assign({ path: `/auth-tokens.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
992
+ /**
993
+ * @description Gets the token metadata corresponding to the given token ID under the given Dev organization.
994
+ *
995
+ * @tags auth-tokens
996
+ * @name AuthTokensGetPost
997
+ * @request POST:/auth-tokens.get
998
+ * @secure
999
+ */
1000
+ this.authTokensGetPost = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1001
+ /**
1002
+ * @description Gets the token metadata for all the tokens corresponding to the given token type issued for a given subject.
1003
+ *
1004
+ * @tags auth-tokens
1005
+ * @name AuthTokensList
1006
+ * @request GET:/auth-tokens.list
1007
+ * @secure
1008
+ */
1009
+ this.authTokensList = (query, params = {}) => this.request(Object.assign({ path: `/auth-tokens.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1010
+ /**
1011
+ * @description Gets the token metadata for all the tokens corresponding to the given token type issued for a given subject.
1012
+ *
1013
+ * @tags auth-tokens
1014
+ * @name AuthTokensListPost
1015
+ * @request POST:/auth-tokens.list
1016
+ * @secure
1017
+ */
1018
+ this.authTokensListPost = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1019
+ /**
1020
+ * @description Revokes all the tokens that matches the given token type created by the authenticated user.
1021
+ *
1022
+ * @tags auth-tokens
1023
+ * @name AuthTokensSelfDelete
1024
+ * @request POST:/auth-tokens.self.delete
1025
+ * @secure
1026
+ */
1027
+ this.authTokensSelfDelete = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.self.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1028
+ /**
1029
+ * @description Updates token metadata of a token issued under a given Dev organization.
1030
+ *
1031
+ * @tags auth-tokens
1032
+ * @name AuthTokensUpdate
1033
+ * @request POST:/auth-tokens.update
1034
+ * @secure
1035
+ */
1036
+ this.authTokensUpdate = (data, params = {}) => this.request(Object.assign({ path: `/auth-tokens.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
828
1037
  /**
829
1038
  * @description Create CodeChange object.
830
1039
  *
@@ -969,6 +1178,132 @@ class Api extends HttpClient {
969
1178
  * @secure
970
1179
  */
971
1180
  this.conversationsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/conversations.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1181
+ /**
1182
+ * @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.
1183
+ *
1184
+ * @tags auth-connection, dev-orgs
1185
+ * @name DevOrgAuthConnectionsCreate
1186
+ * @request POST:/dev-orgs.auth-connections.create
1187
+ * @secure
1188
+ */
1189
+ this.devOrgAuthConnectionsCreate = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1190
+ /**
1191
+ * @description Deletes an authentication connection. Only enterprise connections which are explicitly set up for a Dev organization can be deleted. Default connections can not be deleted using this method.
1192
+ *
1193
+ * @tags auth-connection, dev-orgs
1194
+ * @name DevOrgAuthConnectionsDelete
1195
+ * @request POST:/dev-orgs.auth-connections.delete
1196
+ * @secure
1197
+ */
1198
+ this.devOrgAuthConnectionsDelete = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1199
+ /**
1200
+ * @description Retrieves the details for an authentication connection.
1201
+ *
1202
+ * @tags auth-connection, dev-orgs
1203
+ * @name DevOrgAuthConnectionsGet
1204
+ * @request GET:/dev-orgs.auth-connections.get
1205
+ * @secure
1206
+ */
1207
+ this.devOrgAuthConnectionsGet = (query, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1208
+ /**
1209
+ * @description Retrieves the details for an authentication connection.
1210
+ *
1211
+ * @tags auth-connection, dev-orgs
1212
+ * @name DevOrgAuthConnectionsGetPost
1213
+ * @request POST:/dev-orgs.auth-connections.get
1214
+ * @secure
1215
+ */
1216
+ this.devOrgAuthConnectionsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1217
+ /**
1218
+ * @description Lists all the authentication connections available for a Dev organization. This list will include both social and enterprise connections which are either available by default or are explicitly created by the user.
1219
+ *
1220
+ * @tags auth-connection, dev-orgs
1221
+ * @name DevOrgAuthConnectionsList
1222
+ * @request GET:/dev-orgs.auth-connections.list
1223
+ * @secure
1224
+ */
1225
+ this.devOrgAuthConnectionsList = (params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.list`, method: 'GET', secure: true, format: 'json' }, params));
1226
+ /**
1227
+ * @description Lists all the authentication connections available for a Dev organization. This list will include both social and enterprise connections which are either available by default or are explicitly created by the user.
1228
+ *
1229
+ * @tags auth-connection, dev-orgs
1230
+ * @name DevOrgAuthConnectionsListPost
1231
+ * @request POST:/dev-orgs.auth-connections.list
1232
+ * @secure
1233
+ */
1234
+ 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));
1235
+ /**
1236
+ * @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.
1237
+ *
1238
+ * @tags auth-connection, dev-orgs
1239
+ * @name DevOrgAuthConnectionsToggle
1240
+ * @request POST:/dev-orgs.auth-connections.toggle
1241
+ * @secure
1242
+ */
1243
+ this.devOrgAuthConnectionsToggle = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.toggle`, method: 'POST', body: data, secure: true, type: ContentType.Json }, params));
1244
+ /**
1245
+ * @description Updates an authentication connection.
1246
+ *
1247
+ * @tags auth-connection, dev-orgs
1248
+ * @name DevOrgAuthConnectionsUpdate
1249
+ * @request POST:/dev-orgs.auth-connections.update
1250
+ * @secure
1251
+ */
1252
+ this.devOrgAuthConnectionsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/dev-orgs.auth-connections.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1253
+ /**
1254
+ * @description Gets the requested user's information.
1255
+ *
1256
+ * @tags dev-users
1257
+ * @name DevUsersGet
1258
+ * @request GET:/dev-users.get
1259
+ * @secure
1260
+ */
1261
+ this.devUsersGet = (query, params = {}) => this.request(Object.assign({ path: `/dev-users.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1262
+ /**
1263
+ * @description Gets the requested user's information.
1264
+ *
1265
+ * @tags dev-users
1266
+ * @name DevUsersGetPost
1267
+ * @request POST:/dev-users.get
1268
+ * @secure
1269
+ */
1270
+ this.devUsersGetPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1271
+ /**
1272
+ * @description Lists users within your organization.
1273
+ *
1274
+ * @tags dev-users
1275
+ * @name DevUsersList
1276
+ * @request GET:/dev-users.list
1277
+ * @secure
1278
+ */
1279
+ this.devUsersList = (query, params = {}) => this.request(Object.assign({ path: `/dev-users.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1280
+ /**
1281
+ * @description Lists users within your organization.
1282
+ *
1283
+ * @tags dev-users
1284
+ * @name DevUsersListPost
1285
+ * @request POST:/dev-users.list
1286
+ * @secure
1287
+ */
1288
+ this.devUsersListPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1289
+ /**
1290
+ * @description Gets the authenticated user's information.
1291
+ *
1292
+ * @tags dev-users
1293
+ * @name DevUsersSelf
1294
+ * @request GET:/dev-users.self
1295
+ * @secure
1296
+ */
1297
+ this.devUsersSelf = (params = {}) => this.request(Object.assign({ path: `/dev-users.self`, method: 'GET', secure: true, format: 'json' }, params));
1298
+ /**
1299
+ * @description Gets the authenticated user's information.
1300
+ *
1301
+ * @tags dev-users
1302
+ * @name DevUsersSelfPost
1303
+ * @request POST:/dev-users.self
1304
+ * @secure
1305
+ */
1306
+ this.devUsersSelfPost = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.self`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
972
1307
  /**
973
1308
  * @description Counts the engagement records.
974
1309
  *
@@ -1437,6 +1772,15 @@ class Api extends HttpClient {
1437
1772
  * @secure
1438
1773
  */
1439
1774
  this.revOrgsCreate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1775
+ /**
1776
+ * @description Deletes the Rev organization.
1777
+ *
1778
+ * @tags rev-orgs
1779
+ * @name RevOrgsDelete
1780
+ * @request POST:/rev-orgs.delete
1781
+ * @secure
1782
+ */
1783
+ this.revOrgsDelete = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1440
1784
  /**
1441
1785
  * @description Retrieves the Rev organization's information.
1442
1786
  *
@@ -1734,6 +2078,24 @@ class Api extends HttpClient {
1734
2078
  * @secure
1735
2079
  */
1736
2080
  this.slasUpdate = (data, params = {}) => this.request(Object.assign({ path: `/slas.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2081
+ /**
2082
+ * @description Gets snap-in resources for a user in a snap-in.
2083
+ *
2084
+ * @tags snap-ins
2085
+ * @name SnapInsResources
2086
+ * @request GET:/snap-ins.resources
2087
+ * @secure
2088
+ */
2089
+ this.snapInsResources = (query, params = {}) => this.request(Object.assign({ path: `/snap-ins.resources`, method: 'GET', query: query, secure: true, format: 'json' }, params));
2090
+ /**
2091
+ * @description Gets snap-in resources for a user in a snap-in.
2092
+ *
2093
+ * @tags snap-ins
2094
+ * @name SnapInsResourcesPost
2095
+ * @request POST:/snap-ins.resources
2096
+ * @secure
2097
+ */
2098
+ this.snapInsResourcesPost = (data, params = {}) => this.request(Object.assign({ path: `/snap-ins.resources`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1737
2099
  /**
1738
2100
  * @description Lists system users within your organization.
1739
2101
  *
@@ -1761,6 +2123,69 @@ class Api extends HttpClient {
1761
2123
  * @secure
1762
2124
  */
1763
2125
  this.sysUsersUpdate = (data, params = {}) => this.request(Object.assign({ path: `/sys-users.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2126
+ /**
2127
+ * @description Creates a new tag, which is used to create associations between objects and a logical concept denoted by the tag's name.
2128
+ *
2129
+ * @tags tags
2130
+ * @name TagsCreate
2131
+ * @request POST:/tags.create
2132
+ * @secure
2133
+ */
2134
+ this.tagsCreate = (data, params = {}) => this.request(Object.assign({ path: `/tags.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2135
+ /**
2136
+ * @description Deletes a tag.
2137
+ *
2138
+ * @tags tags
2139
+ * @name TagsDelete
2140
+ * @request POST:/tags.delete
2141
+ * @secure
2142
+ */
2143
+ this.tagsDelete = (data, params = {}) => this.request(Object.assign({ path: `/tags.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2144
+ /**
2145
+ * @description Gets a tag's information.
2146
+ *
2147
+ * @tags tags
2148
+ * @name TagsGet
2149
+ * @request GET:/tags.get
2150
+ * @secure
2151
+ */
2152
+ this.tagsGet = (query, params = {}) => this.request(Object.assign({ path: `/tags.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
2153
+ /**
2154
+ * @description Gets a tag's information.
2155
+ *
2156
+ * @tags tags
2157
+ * @name TagsGetPost
2158
+ * @request POST:/tags.get
2159
+ * @secure
2160
+ */
2161
+ this.tagsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/tags.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2162
+ /**
2163
+ * @description Lists the available tags.
2164
+ *
2165
+ * @tags tags
2166
+ * @name TagsList
2167
+ * @request GET:/tags.list
2168
+ * @secure
2169
+ */
2170
+ this.tagsList = (query, params = {}) => this.request(Object.assign({ path: `/tags.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
2171
+ /**
2172
+ * @description Lists the available tags.
2173
+ *
2174
+ * @tags tags
2175
+ * @name TagsListPost
2176
+ * @request POST:/tags.list
2177
+ * @secure
2178
+ */
2179
+ this.tagsListPost = (data, params = {}) => this.request(Object.assign({ path: `/tags.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2180
+ /**
2181
+ * @description Updates a tag's information.
2182
+ *
2183
+ * @tags tags
2184
+ * @name TagsUpdate
2185
+ * @request POST:/tags.update
2186
+ * @secure
2187
+ */
2188
+ this.tagsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/tags.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1764
2189
  /**
1765
2190
  * @description Creates a new entry on an object's timeline.
1766
2191
  *
@@ -1770,6 +2195,33 @@ class Api extends HttpClient {
1770
2195
  * @secure
1771
2196
  */
1772
2197
  this.timelineEntriesCreate = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2198
+ /**
2199
+ * @description Deletes an entry from an object's timeline.
2200
+ *
2201
+ * @tags timeline-entries
2202
+ * @name TimelineEntriesDelete
2203
+ * @request POST:/timeline-entries.delete
2204
+ * @secure
2205
+ */
2206
+ this.timelineEntriesDelete = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2207
+ /**
2208
+ * @description Gets an entry on an object's timeline.
2209
+ *
2210
+ * @tags timeline-entries
2211
+ * @name TimelineEntriesGet
2212
+ * @request GET:/timeline-entries.get
2213
+ * @secure
2214
+ */
2215
+ this.timelineEntriesGet = (query, params = {}) => this.request(Object.assign({ path: `/timeline-entries.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
2216
+ /**
2217
+ * @description Gets an entry on an object's timeline.
2218
+ *
2219
+ * @tags timeline-entries
2220
+ * @name TimelineEntriesGetPost
2221
+ * @request POST:/timeline-entries.get
2222
+ * @secure
2223
+ */
2224
+ this.timelineEntriesGetPost = (data, params = {}) => this.request(Object.assign({ path: `/timeline-entries.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1773
2225
  /**
1774
2226
  * @description Lists the timeline entries for an object.
1775
2227
  *
@@ -1860,6 +2312,69 @@ class Api extends HttpClient {
1860
2312
  * @secure
1861
2313
  */
1862
2314
  this.uomsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/uoms.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2315
+ /**
2316
+ * @description Creates a new webhook target.
2317
+ *
2318
+ * @tags webhooks
2319
+ * @name WebhooksCreate
2320
+ * @request POST:/webhooks.create
2321
+ * @secure
2322
+ */
2323
+ this.webhooksCreate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2324
+ /**
2325
+ * @description Deletes the requested webhook.
2326
+ *
2327
+ * @tags webhooks
2328
+ * @name WebhooksDelete
2329
+ * @request POST:/webhooks.delete
2330
+ * @secure
2331
+ */
2332
+ this.webhooksDelete = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.delete`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2333
+ /**
2334
+ * @description Gets the requested webhook's information.
2335
+ *
2336
+ * @tags webhooks
2337
+ * @name WebhooksGet
2338
+ * @request GET:/webhooks.get
2339
+ * @secure
2340
+ */
2341
+ this.webhooksGet = (query, params = {}) => this.request(Object.assign({ path: `/webhooks.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
2342
+ /**
2343
+ * @description Gets the requested webhook's information.
2344
+ *
2345
+ * @tags webhooks
2346
+ * @name WebhooksGetPost
2347
+ * @request POST:/webhooks.get
2348
+ * @secure
2349
+ */
2350
+ this.webhooksGetPost = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2351
+ /**
2352
+ * @description Lists the webhooks.
2353
+ *
2354
+ * @tags webhooks
2355
+ * @name WebhooksList
2356
+ * @request GET:/webhooks.list
2357
+ * @secure
2358
+ */
2359
+ this.webhooksList = (params = {}) => this.request(Object.assign({ path: `/webhooks.list`, method: 'GET', secure: true, format: 'json' }, params));
2360
+ /**
2361
+ * @description Lists the webhooks.
2362
+ *
2363
+ * @tags webhooks
2364
+ * @name WebhooksListPost
2365
+ * @request POST:/webhooks.list
2366
+ * @secure
2367
+ */
2368
+ this.webhooksListPost = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2369
+ /**
2370
+ * @description Updates the requested webhook.
2371
+ *
2372
+ * @tags webhooks
2373
+ * @name WebhooksUpdate
2374
+ * @request POST:/webhooks.update
2375
+ * @secure
2376
+ */
2377
+ this.webhooksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1863
2378
  /**
1864
2379
  * @description Creates new work ([issue](https://devrev.ai/docs/product/build), [ticket](https://devrev.ai/docs/product/support)) item. [task](https://docs.devrev.ai/product/tasks) and opportunity work types are supported in the beta version.
1865
2380
  *