@devrev/typescript-sdk 1.1.20 → 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.TimelineEntryType = 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.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 = 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) {
@@ -241,6 +344,12 @@ var ListMode;
241
344
  ListMode["After"] = "after";
242
345
  ListMode["Before"] = "before";
243
346
  })(ListMode = exports.ListMode || (exports.ListMode = {}));
347
+ var MemberType;
348
+ (function (MemberType) {
349
+ MemberType["DevUser"] = "dev_user";
350
+ MemberType["RevUser"] = "rev_user";
351
+ MemberType["SysUser"] = "sys_user";
352
+ })(MemberType = exports.MemberType || (exports.MemberType = {}));
244
353
  /** The list of item types on which the metric might be applied. */
245
354
  var MetricDefinitionAppliesTo;
246
355
  (function (MetricDefinitionAppliesTo) {
@@ -430,6 +539,7 @@ var TicketSeverity;
430
539
  var TimelineCommentBodyType;
431
540
  (function (TimelineCommentBodyType) {
432
541
  TimelineCommentBodyType["SnapKit"] = "snap_kit";
542
+ TimelineCommentBodyType["SnapWidget"] = "snap_widget";
433
543
  TimelineCommentBodyType["Text"] = "text";
434
544
  })(TimelineCommentBodyType = exports.TimelineCommentBodyType || (exports.TimelineCommentBodyType = {}));
435
545
  /** Describes collections of timeline entries. */
@@ -521,6 +631,15 @@ var UserType;
521
631
  /** The event types that the webhook will receive. */
522
632
  var WebhookEventType;
523
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";
524
643
  WebhookEventType["PartCreated"] = "part_created";
525
644
  WebhookEventType["PartDeleted"] = "part_deleted";
526
645
  WebhookEventType["PartUpdated"] = "part_updated";
@@ -551,6 +670,12 @@ var WebhookStatus;
551
670
  WebhookStatus["Inactive"] = "inactive";
552
671
  WebhookStatus["Unverified"] = "unverified";
553
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 = {}));
554
679
  var WorkType;
555
680
  (function (WorkType) {
556
681
  WorkType["Issue"] = "issue";
@@ -630,11 +755,11 @@ class HttpClient {
630
755
  }
631
756
  exports.HttpClient = HttpClient;
632
757
  /**
633
- * @title DevRev Beta REST API
634
- * @version BETA
758
+ * @title DevRev REST API
759
+ * @version 2022-10-20
635
760
  * @baseUrl {protocol}://{hostname}
636
761
  *
637
- * DevRev's BETA REST API Specification.
762
+ * DevRev's REST API.
638
763
  */
639
764
  class Api extends HttpClient {
640
765
  constructor() {
@@ -801,6 +926,24 @@ class Api extends HttpClient {
801
926
  * @secure
802
927
  */
803
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));
804
947
  /**
805
948
  * @description Creates an artifact and generates an upload URL for its data.
806
949
  *
@@ -819,6 +962,78 @@ class Api extends HttpClient {
819
962
  * @secure
820
963
  */
821
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));
822
1037
  /**
823
1038
  * @description Create CodeChange object.
824
1039
  *
@@ -963,6 +1178,132 @@ class Api extends HttpClient {
963
1178
  * @secure
964
1179
  */
965
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));
966
1307
  /**
967
1308
  * @description Counts the engagement records.
968
1309
  *
@@ -1125,6 +1466,42 @@ class Api extends HttpClient {
1125
1466
  * @secure
1126
1467
  */
1127
1468
  this.groupsListPost = (data, params = {}) => this.request(Object.assign({ path: `/groups.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1469
+ /**
1470
+ * @description Adds a member to a group.
1471
+ *
1472
+ * @tags groups
1473
+ * @name GroupMembersAdd
1474
+ * @request POST:/groups.members.add
1475
+ * @secure
1476
+ */
1477
+ this.groupMembersAdd = (data, params = {}) => this.request(Object.assign({ path: `/groups.members.add`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1478
+ /**
1479
+ * @description Lists the members in a group.
1480
+ *
1481
+ * @tags groups
1482
+ * @name GroupMembersList
1483
+ * @request GET:/groups.members.list
1484
+ * @secure
1485
+ */
1486
+ this.groupMembersList = (query, params = {}) => this.request(Object.assign({ path: `/groups.members.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1487
+ /**
1488
+ * @description Lists the members in a group.
1489
+ *
1490
+ * @tags groups
1491
+ * @name GroupMembersListPost
1492
+ * @request POST:/groups.members.list
1493
+ * @secure
1494
+ */
1495
+ this.groupMembersListPost = (data, params = {}) => this.request(Object.assign({ path: `/groups.members.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1496
+ /**
1497
+ * @description Removes a member from a group.
1498
+ *
1499
+ * @tags groups
1500
+ * @name GroupMembersRemove
1501
+ * @request POST:/groups.members.remove
1502
+ * @secure
1503
+ */
1504
+ this.groupMembersRemove = (data, params = {}) => this.request(Object.assign({ path: `/groups.members.remove`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1128
1505
  /**
1129
1506
  * @description Updates the requested group.
1130
1507
  *
@@ -1395,6 +1772,15 @@ class Api extends HttpClient {
1395
1772
  * @secure
1396
1773
  */
1397
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));
1398
1784
  /**
1399
1785
  * @description Retrieves the Rev organization's information.
1400
1786
  *
@@ -1692,6 +2078,24 @@ class Api extends HttpClient {
1692
2078
  * @secure
1693
2079
  */
1694
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));
1695
2099
  /**
1696
2100
  * @description Lists system users within your organization.
1697
2101
  *
@@ -1719,6 +2123,69 @@ class Api extends HttpClient {
1719
2123
  * @secure
1720
2124
  */
1721
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));
1722
2189
  /**
1723
2190
  * @description Creates a new entry on an object's timeline.
1724
2191
  *
@@ -1728,6 +2195,33 @@ class Api extends HttpClient {
1728
2195
  * @secure
1729
2196
  */
1730
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));
1731
2225
  /**
1732
2226
  * @description Lists the timeline entries for an object.
1733
2227
  *
@@ -1818,6 +2312,69 @@ class Api extends HttpClient {
1818
2312
  * @secure
1819
2313
  */
1820
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));
1821
2378
  /**
1822
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.
1823
2380
  *