@devrev/typescript-sdk 1.1.39 → 1.1.40

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.
@@ -2171,6 +2171,208 @@ export interface CodeChangesUpdateRequest {
2171
2171
  export interface CodeChangesUpdateResponse {
2172
2172
  code_change: CodeChange;
2173
2173
  }
2174
+ /** command */
2175
+ export type Command = AtomBase & {
2176
+ /** Description of the command. */
2177
+ description?: string;
2178
+ /** Display name of the command. */
2179
+ display_name?: string;
2180
+ /** Name of the command. */
2181
+ name?: string;
2182
+ /** Namespace of the command. */
2183
+ namespace?: string;
2184
+ /**
2185
+ * The list of users, groups and audiences with whom the command is
2186
+ * shared.
2187
+ */
2188
+ shared_with?: SharedWithMembership[];
2189
+ /** Status of the command. */
2190
+ status?: CommandStatus;
2191
+ /** Surfaces where this command can be invoked. */
2192
+ surfaces?: CommandSurface[];
2193
+ /**
2194
+ * A user friendly description of the parameters which can be passed
2195
+ * to the command.
2196
+ */
2197
+ usage_hint?: string;
2198
+ };
2199
+ /** Specifies how the action is defined. */
2200
+ export declare enum CommandActionExecutorType {
2201
+ Rego = "rego",
2202
+ Workflow = "workflow"
2203
+ }
2204
+ /** The template engine for resolving message. */
2205
+ export declare enum CommandActionTemplateType {
2206
+ DevrevV1 = "devrev_v1"
2207
+ }
2208
+ /**
2209
+ * command-create-request
2210
+ * The request to create a command.
2211
+ */
2212
+ export interface CommandCreateRequest {
2213
+ action?: CreateCommandAction;
2214
+ /** Description of the command. */
2215
+ description?: string;
2216
+ /** Display name of the command. */
2217
+ display_name?: string;
2218
+ /** Name of the command. */
2219
+ name: string;
2220
+ /** Namespace of the command. */
2221
+ namespace: string;
2222
+ /**
2223
+ * The list of users, groups and audiences with whom the command is
2224
+ * shared.
2225
+ */
2226
+ shared_with?: SetSharedWithMembership[];
2227
+ /** ID of the source which created this command. */
2228
+ source?: string;
2229
+ /** Status of the command. */
2230
+ status?: CommandStatus;
2231
+ /** Surfaces where this command can be invoked. */
2232
+ surfaces?: CreateCommandSurface[];
2233
+ /**
2234
+ * A user friendly description of the parameters which can be passed
2235
+ * to the command.
2236
+ */
2237
+ usage_hint?: string;
2238
+ }
2239
+ /** command-create-response */
2240
+ export interface CommandCreateResponse {
2241
+ command: Command;
2242
+ }
2243
+ /**
2244
+ * command-get-request
2245
+ * The request to get a command.
2246
+ */
2247
+ export interface CommandGetRequest {
2248
+ /** The command's ID. */
2249
+ id: string;
2250
+ }
2251
+ /** command-get-response */
2252
+ export interface CommandGetResponse {
2253
+ command: Command;
2254
+ }
2255
+ /** Status of the command. */
2256
+ export declare enum CommandStatus {
2257
+ Disabled = "disabled",
2258
+ Draft = "draft",
2259
+ Enabled = "enabled"
2260
+ }
2261
+ /**
2262
+ * command-surface
2263
+ * Metadata defining which surfaces this command can be executed on.
2264
+ */
2265
+ export interface CommandSurface {
2266
+ /** Objects types on which a command can be invoked. */
2267
+ object_types?: CommandSurfaceObjectTypes[];
2268
+ /** Surfaces from where this command can be invoked. */
2269
+ surface?: CommandSurfaceSurface;
2270
+ }
2271
+ /** Objects types on which a command can be invoked. */
2272
+ export declare enum CommandSurfaceObjectTypes {
2273
+ Account = "account",
2274
+ Article = "article",
2275
+ Conversation = "conversation",
2276
+ Engagement = "engagement",
2277
+ Flow = "flow",
2278
+ Incident = "incident",
2279
+ Issue = "issue",
2280
+ Opportunity = "opportunity",
2281
+ Part = "part",
2282
+ RevOrg = "rev_org",
2283
+ RevUser = "rev_user",
2284
+ SnapIn = "snap_in",
2285
+ Ticket = "ticket"
2286
+ }
2287
+ /** Surfaces from where this command can be invoked. */
2288
+ export declare enum CommandSurfaceSurface {
2289
+ CustomerChat = "customer_chat",
2290
+ Discussions = "discussions"
2291
+ }
2292
+ /**
2293
+ * command-update-request
2294
+ * The request to update a command.
2295
+ */
2296
+ export interface CommandUpdateRequest {
2297
+ action?: UpdateCommandAction;
2298
+ /** Description of the command. */
2299
+ description?: string;
2300
+ /** Display name of the command. */
2301
+ display_name?: string;
2302
+ /** The ID of the command to update. */
2303
+ id: string;
2304
+ /** Name of the command. */
2305
+ name?: string;
2306
+ /** Namespace of the command. */
2307
+ namespace?: string;
2308
+ /**
2309
+ * The list of users, groups and audiences with whom the command is
2310
+ * shared.
2311
+ */
2312
+ shared_with?: SetSharedWithMembership[];
2313
+ /** ID of the source which created this command. */
2314
+ source?: string;
2315
+ /** Status of the command. */
2316
+ status?: CommandStatus;
2317
+ /** Surfaces where this command can be invoked. */
2318
+ surfaces?: UpdateCommandSurface[];
2319
+ /**
2320
+ * A user friendly description of the parameters which can be passed
2321
+ * to the command.
2322
+ */
2323
+ usage_hint?: string;
2324
+ }
2325
+ /** command-update-response */
2326
+ export interface CommandUpdateResponse {
2327
+ command: Command;
2328
+ }
2329
+ /** commands-list-request */
2330
+ export interface CommandsListRequest {
2331
+ /**
2332
+ * The cursor to resume iteration from. If not provided, then
2333
+ * iteration starts from the beginning.
2334
+ */
2335
+ cursor?: string;
2336
+ /** Filtering based on executor_type. */
2337
+ executor_type?: CommandActionExecutorType[];
2338
+ /**
2339
+ * The maximum number of commands to return per page. The default is
2340
+ * '50'.
2341
+ * @format int32
2342
+ */
2343
+ limit?: number;
2344
+ /**
2345
+ * The iteration mode to use. If "after", then entries after the provided
2346
+ * cursor will be returned, or if no cursor is provided, then from the
2347
+ * beginning. If "before", then entries before the provided cursor will be
2348
+ * returned, or if no cursor is provided, then from the end. Entries will
2349
+ * always be returned in the specified sort-by order.
2350
+ */
2351
+ mode?: ListMode;
2352
+ /** Filter commands based on namespace. */
2353
+ namespace?: string[];
2354
+ /** List of fields to sort the commands items by and how to sort them. */
2355
+ sort_by?: string[];
2356
+ /** ID of the object where command is invoked (work/part/conversation). */
2357
+ source_object_id?: string;
2358
+ /** Filter commands based on status. */
2359
+ status?: CommandStatus[];
2360
+ }
2361
+ /** commands-list-response */
2362
+ export interface CommandsListResponse {
2363
+ /** List of commands. */
2364
+ commands: Command[];
2365
+ /**
2366
+ * The cursor used to iterate subsequent results in accordance to the
2367
+ * sort order. If not set, then no later elements exist.
2368
+ */
2369
+ next_cursor?: string;
2370
+ /**
2371
+ * The cursor used to iterate preceding results in accordance to the
2372
+ * sort order. If not set, then no prior elements exist.
2373
+ */
2374
+ prev_cursor?: string;
2375
+ }
2174
2376
  /** comment-search-summary */
2175
2377
  export interface CommentSearchSummary {
2176
2378
  comment?: TimelineCommentSummary;
@@ -2690,6 +2892,49 @@ export interface ConversationsUpdateRequestUserSessions {
2690
2892
  export interface ConversationsUpdateResponse {
2691
2893
  conversation: Conversation;
2692
2894
  }
2895
+ /** create-command-action */
2896
+ export interface CreateCommandAction {
2897
+ action_details?: CreateCommandActionDetails;
2898
+ /**
2899
+ * IDs of the new artifact items
2900
+ * @example ["ARTIFACT-12345"]
2901
+ */
2902
+ artifacts?: string[];
2903
+ /**
2904
+ * The raw code to execute, defined in the language specified by
2905
+ * executor
2906
+ */
2907
+ code?: string;
2908
+ /** Executor specific config */
2909
+ executor_config?: object;
2910
+ /** Specifies how the action is defined. */
2911
+ executor_type: CommandActionExecutorType;
2912
+ /**
2913
+ * The message to populate in discussion box, when the command is
2914
+ * selected to execute.
2915
+ */
2916
+ message?: string;
2917
+ /**
2918
+ * Function containing logic for the command. If function ID is
2919
+ * specified the executor config is ignored and command is executed by
2920
+ * functions.
2921
+ */
2922
+ snap_in_function_id?: string;
2923
+ /** The template engine for resolving message. */
2924
+ template_type?: CommandActionTemplateType;
2925
+ }
2926
+ /** create-command-action-details */
2927
+ export interface CreateCommandActionDetails {
2928
+ /** The payload to update the object in context upon command execution. */
2929
+ object_update_payload?: object;
2930
+ }
2931
+ /** create-command-surface */
2932
+ export interface CreateCommandSurface {
2933
+ /** Objects types on which a command can be invoked */
2934
+ object_types?: CommandSurfaceObjectTypes[];
2935
+ /** Surfaces from where this command can be invoked. */
2936
+ surface: CommandSurfaceSurface;
2937
+ }
2693
2938
  /**
2694
2939
  * create-email-info
2695
2940
  * Information related to an email.
@@ -8990,6 +9235,8 @@ export interface RevUsersUpdateRequestCustomSchemaFragments {
8990
9235
  export interface RevUsersUpdateResponse {
8991
9236
  rev_user: RevUser;
8992
9237
  }
9238
+ /** role-summary */
9239
+ export type RoleSummary = AtomBaseSummary;
8993
9240
  /** saml-connection-fields-map */
8994
9241
  export interface SamlConnectionFieldsMap {
8995
9242
  /**
@@ -9944,6 +10191,14 @@ export interface SetWeeklyOrgSchedule {
9944
10191
  */
9945
10192
  period_name: string;
9946
10193
  }
10194
+ /**
10195
+ * shared-with-membership
10196
+ * Information about the role the member receives due to the share.
10197
+ */
10198
+ export interface SharedWithMembership {
10199
+ member?: MemberSummary;
10200
+ role?: RoleSummary;
10201
+ }
9947
10202
  /**
9948
10203
  * shared-with-membership-filter
9949
10204
  * Filter on target item based on intended audience.
@@ -12332,6 +12587,47 @@ export interface UomsUpdateRequestDimensions {
12332
12587
  export interface UomsUpdateResponse {
12333
12588
  uom: Uom;
12334
12589
  }
12590
+ /** update-command-action */
12591
+ export interface UpdateCommandAction {
12592
+ action_details?: UpdateCommandActionDetails;
12593
+ /**
12594
+ * IDs of the new artifact items
12595
+ * @example ["ARTIFACT-12345"]
12596
+ */
12597
+ artifacts?: string[];
12598
+ /**
12599
+ * The raw code to execute, defined in the language specified by
12600
+ * executor
12601
+ */
12602
+ code?: string;
12603
+ /** Executor specific config */
12604
+ executor_config?: object;
12605
+ /**
12606
+ * The message to populate in discussion box, when the command is
12607
+ * selected to execute.
12608
+ */
12609
+ message?: string;
12610
+ /**
12611
+ * Function containing logic for the command. If function ID is
12612
+ * specified the executor config is ignored and command is executed by
12613
+ * functions.
12614
+ */
12615
+ snap_in_function_id?: string;
12616
+ /** The template engine for resolving message. */
12617
+ template_type?: CommandActionTemplateType;
12618
+ }
12619
+ /** update-command-action-details */
12620
+ export interface UpdateCommandActionDetails {
12621
+ /** The payload to update the object in context upon command execution. */
12622
+ object_update_payload?: object;
12623
+ }
12624
+ /** update-command-surface */
12625
+ export interface UpdateCommandSurface {
12626
+ /** Objects types on which a command can be invoked */
12627
+ object_types?: CommandSurfaceObjectTypes[];
12628
+ /** Surfaces from where this command can be invoked. */
12629
+ surface?: CommandSurfaceSurface;
12630
+ }
12335
12631
  /** update-impacted-customer-details */
12336
12632
  export interface UpdateImpactedCustomerDetails {
12337
12633
  /**
@@ -14450,6 +14746,90 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14450
14746
  * @secure
14451
14747
  */
14452
14748
  codeChangesUpdate: (data: CodeChangesUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<CodeChangesUpdateResponse, any>>;
14749
+ /**
14750
+ * @description Creates a command.
14751
+ *
14752
+ * @tags command
14753
+ * @name CommandsCreate
14754
+ * @request POST:/commands.create
14755
+ * @secure
14756
+ */
14757
+ commandsCreate: (data: CommandCreateRequest, params?: RequestParams) => Promise<AxiosResponse<CommandCreateResponse, any>>;
14758
+ /**
14759
+ * @description Gets a command.
14760
+ *
14761
+ * @tags command
14762
+ * @name CommandsGet
14763
+ * @request GET:/commands.get
14764
+ * @secure
14765
+ */
14766
+ commandsGet: (query: {
14767
+ /** The command's ID. */
14768
+ id: string;
14769
+ }, params?: RequestParams) => Promise<AxiosResponse<CommandGetResponse, any>>;
14770
+ /**
14771
+ * @description Gets a command.
14772
+ *
14773
+ * @tags command
14774
+ * @name CommandsGetPost
14775
+ * @request POST:/commands.get
14776
+ * @secure
14777
+ */
14778
+ commandsGetPost: (data: CommandGetRequest, params?: RequestParams) => Promise<AxiosResponse<CommandGetResponse, any>>;
14779
+ /**
14780
+ * @description Lists commands for a Dev organization.
14781
+ *
14782
+ * @tags command
14783
+ * @name CommandsList
14784
+ * @request GET:/commands.list
14785
+ * @secure
14786
+ */
14787
+ commandsList: (query?: {
14788
+ /**
14789
+ * The cursor to resume iteration from. If not provided, then iteration
14790
+ * starts from the beginning.
14791
+ */
14792
+ cursor?: string;
14793
+ /** Filtering based on executor_type. */
14794
+ executor_type?: CommandActionExecutorType[];
14795
+ /**
14796
+ * The maximum number of commands to return per page. The default is
14797
+ * '50'.
14798
+ * @format int32
14799
+ */
14800
+ limit?: number;
14801
+ /**
14802
+ * The iteration mode to use, otherwise if not set, then "after" is
14803
+ * used.
14804
+ */
14805
+ mode?: ListMode;
14806
+ /** Filter commands based on namespace. */
14807
+ namespace?: string[];
14808
+ /** List of fields to sort the commands items by and how to sort them. */
14809
+ sort_by?: string[];
14810
+ /** ID of the object where command is invoked (work/part/conversation). */
14811
+ source_object_id?: string;
14812
+ /** Filter commands based on status. */
14813
+ status?: CommandStatus[];
14814
+ }, params?: RequestParams) => Promise<AxiosResponse<CommandsListResponse, any>>;
14815
+ /**
14816
+ * @description Lists commands for a Dev organization.
14817
+ *
14818
+ * @tags command
14819
+ * @name CommandsListPost
14820
+ * @request POST:/commands.list
14821
+ * @secure
14822
+ */
14823
+ commandsListPost: (data: CommandsListRequest, params?: RequestParams) => Promise<AxiosResponse<CommandsListResponse, any>>;
14824
+ /**
14825
+ * @description Updates a command.
14826
+ *
14827
+ * @tags command
14828
+ * @name CommandsUpdate
14829
+ * @request POST:/commands.update
14830
+ * @secure
14831
+ */
14832
+ commandsUpdate: (data: CommandUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<CommandUpdateResponse, any>>;
14453
14833
  /**
14454
14834
  * @description Create the content template.
14455
14835
  *
@@ -33,9 +33,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
33
33
  return (mod && mod.__esModule) ? mod : { "default": mod };
34
34
  };
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupType = exports.GroupMemberType = exports.GroupIngestionSource = exports.GenericNotificationEventType = exports.FieldValueType = exports.ExternalSystemType = exports.EventSourceStatus = exports.EventFetchedResult = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.Definedness = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsListRequestPrune = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CodeChangeSource = exports.ChatCompletionsRequestMessageRole = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.ArticleType = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
- exports.SyncRunStartedBy = exports.SyncRunProgressState = exports.SyncRunMode = exports.SyncProgressState = exports.SyncOutStatus = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.SyncInStatus = exports.StockSchemaFragmentsListRequestPrune = exports.StockSchemaFragmentsListRequestFilterPreset = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapWidgetsCreateRequestType = exports.SnapWidgetType = exports.SnapWidgetStatus = exports.SnapWidgetNamespace = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SendNotificationType = exports.SearchSortOrderParam = exports.SearchSortByParam = exports.SearchResultType = exports.SearchNamespace = exports.SearchHybridNamespace = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.QuestionAnswerStatus = exports.PreferencesType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MetricActionExecuteRequestAction = exports.MemberType = exports.MeetingState = exports.MeetingChannel = exports.ListMode = void 0;
38
- exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TuringSourcesType = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryPanel = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TimelineChangeEventEventType = exports.TicketSeverity = exports.TicketChannels = exports.TaskPriority = exports.SyncUnitSyncType = void 0;
36
+ exports.GroupType = exports.GroupMemberType = exports.GroupIngestionSource = exports.GenericNotificationEventType = exports.FieldValueType = exports.ExternalSystemType = exports.EventSourceStatus = exports.EventFetchedResult = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.Definedness = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsListRequestPrune = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CommandSurfaceSurface = exports.CommandSurfaceObjectTypes = exports.CommandStatus = exports.CommandActionTemplateType = exports.CommandActionExecutorType = exports.CodeChangeSource = exports.ChatCompletionsRequestMessageRole = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.ArticleType = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
+ exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.SyncInStatus = exports.StockSchemaFragmentsListRequestPrune = exports.StockSchemaFragmentsListRequestFilterPreset = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapWidgetsCreateRequestType = exports.SnapWidgetType = exports.SnapWidgetStatus = exports.SnapWidgetNamespace = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SendNotificationType = exports.SearchSortOrderParam = exports.SearchSortByParam = exports.SearchResultType = exports.SearchNamespace = exports.SearchHybridNamespace = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.QuestionAnswerStatus = exports.PreferencesType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MetricActionExecuteRequestAction = exports.MemberType = exports.MeetingState = exports.MeetingChannel = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupedVistaFlavor = void 0;
38
+ exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TuringSourcesType = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryPanel = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TimelineChangeEventEventType = exports.TicketSeverity = exports.TicketChannels = exports.TaskPriority = exports.SyncUnitSyncType = exports.SyncRunStartedBy = exports.SyncRunProgressState = exports.SyncRunMode = exports.SyncProgressState = exports.SyncOutStatus = void 0;
39
39
  var AccessLevel;
40
40
  (function (AccessLevel) {
41
41
  AccessLevel["External"] = "external";
@@ -211,6 +211,47 @@ var CodeChangeSource;
211
211
  CodeChangeSource["Bitbucket"] = "bitbucket";
212
212
  CodeChangeSource["Github"] = "github";
213
213
  })(CodeChangeSource = exports.CodeChangeSource || (exports.CodeChangeSource = {}));
214
+ /** Specifies how the action is defined. */
215
+ var CommandActionExecutorType;
216
+ (function (CommandActionExecutorType) {
217
+ CommandActionExecutorType["Rego"] = "rego";
218
+ CommandActionExecutorType["Workflow"] = "workflow";
219
+ })(CommandActionExecutorType = exports.CommandActionExecutorType || (exports.CommandActionExecutorType = {}));
220
+ /** The template engine for resolving message. */
221
+ var CommandActionTemplateType;
222
+ (function (CommandActionTemplateType) {
223
+ CommandActionTemplateType["DevrevV1"] = "devrev_v1";
224
+ })(CommandActionTemplateType = exports.CommandActionTemplateType || (exports.CommandActionTemplateType = {}));
225
+ /** Status of the command. */
226
+ var CommandStatus;
227
+ (function (CommandStatus) {
228
+ CommandStatus["Disabled"] = "disabled";
229
+ CommandStatus["Draft"] = "draft";
230
+ CommandStatus["Enabled"] = "enabled";
231
+ })(CommandStatus = exports.CommandStatus || (exports.CommandStatus = {}));
232
+ /** Objects types on which a command can be invoked. */
233
+ var CommandSurfaceObjectTypes;
234
+ (function (CommandSurfaceObjectTypes) {
235
+ CommandSurfaceObjectTypes["Account"] = "account";
236
+ CommandSurfaceObjectTypes["Article"] = "article";
237
+ CommandSurfaceObjectTypes["Conversation"] = "conversation";
238
+ CommandSurfaceObjectTypes["Engagement"] = "engagement";
239
+ CommandSurfaceObjectTypes["Flow"] = "flow";
240
+ CommandSurfaceObjectTypes["Incident"] = "incident";
241
+ CommandSurfaceObjectTypes["Issue"] = "issue";
242
+ CommandSurfaceObjectTypes["Opportunity"] = "opportunity";
243
+ CommandSurfaceObjectTypes["Part"] = "part";
244
+ CommandSurfaceObjectTypes["RevOrg"] = "rev_org";
245
+ CommandSurfaceObjectTypes["RevUser"] = "rev_user";
246
+ CommandSurfaceObjectTypes["SnapIn"] = "snap_in";
247
+ CommandSurfaceObjectTypes["Ticket"] = "ticket";
248
+ })(CommandSurfaceObjectTypes = exports.CommandSurfaceObjectTypes || (exports.CommandSurfaceObjectTypes = {}));
249
+ /** Surfaces from where this command can be invoked. */
250
+ var CommandSurfaceSurface;
251
+ (function (CommandSurfaceSurface) {
252
+ CommandSurfaceSurface["CustomerChat"] = "customer_chat";
253
+ CommandSurfaceSurface["Discussions"] = "discussions";
254
+ })(CommandSurfaceSurface = exports.CommandSurfaceSurface || (exports.CommandSurfaceSurface = {}));
214
255
  var ConversationsCreateRequestTypeValue;
215
256
  (function (ConversationsCreateRequestTypeValue) {
216
257
  ConversationsCreateRequestTypeValue["Support"] = "support";
@@ -1742,6 +1783,60 @@ class Api extends HttpClient {
1742
1783
  * @secure
1743
1784
  */
1744
1785
  this.codeChangesUpdate = (data, params = {}) => this.request(Object.assign({ path: `/code-changes.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1786
+ /**
1787
+ * @description Creates a command.
1788
+ *
1789
+ * @tags command
1790
+ * @name CommandsCreate
1791
+ * @request POST:/commands.create
1792
+ * @secure
1793
+ */
1794
+ this.commandsCreate = (data, params = {}) => this.request(Object.assign({ path: `/commands.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1795
+ /**
1796
+ * @description Gets a command.
1797
+ *
1798
+ * @tags command
1799
+ * @name CommandsGet
1800
+ * @request GET:/commands.get
1801
+ * @secure
1802
+ */
1803
+ this.commandsGet = (query, params = {}) => this.request(Object.assign({ path: `/commands.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1804
+ /**
1805
+ * @description Gets a command.
1806
+ *
1807
+ * @tags command
1808
+ * @name CommandsGetPost
1809
+ * @request POST:/commands.get
1810
+ * @secure
1811
+ */
1812
+ this.commandsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/commands.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1813
+ /**
1814
+ * @description Lists commands for a Dev organization.
1815
+ *
1816
+ * @tags command
1817
+ * @name CommandsList
1818
+ * @request GET:/commands.list
1819
+ * @secure
1820
+ */
1821
+ this.commandsList = (query, params = {}) => this.request(Object.assign({ path: `/commands.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1822
+ /**
1823
+ * @description Lists commands for a Dev organization.
1824
+ *
1825
+ * @tags command
1826
+ * @name CommandsListPost
1827
+ * @request POST:/commands.list
1828
+ * @secure
1829
+ */
1830
+ this.commandsListPost = (data, params = {}) => this.request(Object.assign({ path: `/commands.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1831
+ /**
1832
+ * @description Updates a command.
1833
+ *
1834
+ * @tags command
1835
+ * @name CommandsUpdate
1836
+ * @request POST:/commands.update
1837
+ * @secure
1838
+ */
1839
+ this.commandsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/commands.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1745
1840
  /**
1746
1841
  * @description Create the content template.
1747
1842
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrev/typescript-sdk",
3
- "version": "1.1.39",
3
+ "version": "1.1.40",
4
4
  "description": "## SDK Generation",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {