@devrev/typescript-sdk 1.1.45 → 1.1.46

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.
@@ -4285,6 +4285,38 @@ export interface DevUsersActivateResponse {
4285
4285
  /** Whether an invitation has been sent to the Dev user. */
4286
4286
  invite_sent: boolean;
4287
4287
  }
4288
+ /**
4289
+ * dev-users-create-request
4290
+ * Request object to create a new Dev User for a Dev Organization.
4291
+ */
4292
+ export interface DevUsersCreateRequest {
4293
+ /** Application-defined custom fields. */
4294
+ custom_fields?: object;
4295
+ /**
4296
+ * Requested custom schemas described abstractly. Every provided schema's
4297
+ * custom field must be specified, otherwise a bad request error is
4298
+ * returned. If a new custom schema specifier is provided, then it will be
4299
+ * added to the work, otherwise if a custom schema is omitted from the
4300
+ * specifier, it remains unmodified.
4301
+ */
4302
+ custom_schema_spec?: CustomSchemaSpec;
4303
+ /** Email of the Dev User. */
4304
+ email: string;
4305
+ /** Full name of the Dev User. */
4306
+ full_name?: string;
4307
+ state?: DevUsersCreateRequestDevUsersCreateStateEnumValue;
4308
+ }
4309
+ export declare enum DevUsersCreateRequestDevUsersCreateStateEnumValue {
4310
+ Shadow = "shadow"
4311
+ }
4312
+ /**
4313
+ * dev-users-create-response
4314
+ * Response object for request to create a new Dev User for a Dev
4315
+ * Organization.
4316
+ */
4317
+ export interface DevUsersCreateResponse {
4318
+ dev_user: DevUser;
4319
+ }
4288
4320
  /**
4289
4321
  * dev-users-deactivate-request
4290
4322
  * A request to deactivate the Dev user.
@@ -6739,6 +6771,8 @@ export type Issue = WorkBase & {
6739
6771
  developed_with?: PartSummary[];
6740
6772
  /** Priority of the work based upon impact and criticality. */
6741
6773
  priority?: IssuePriority;
6774
+ /** The properties of an enum value. */
6775
+ priority_v2?: EnumValue;
6742
6776
  /** SLA summary for the object. */
6743
6777
  sla_summary?: ArchetypeSlaSummary;
6744
6778
  sla_tracker?: SlaTrackerSummary;
@@ -6762,6 +6796,8 @@ export declare enum IssuePriority {
6762
6796
  export type IssueSummary = WorkBaseSummary & {
6763
6797
  /** Priority of the work based upon impact and criticality. */
6764
6798
  priority?: IssuePriority;
6799
+ /** The properties of an enum value. */
6800
+ priority_v2?: EnumValueSummary;
6765
6801
  /** Vista group item. */
6766
6802
  sprint?: VistaGroupItemSummary;
6767
6803
  };
@@ -9477,8 +9513,175 @@ export interface RevUsersUpdateRequestCustomSchemaFragments {
9477
9513
  export interface RevUsersUpdateResponse {
9478
9514
  rev_user: RevUser;
9479
9515
  }
9516
+ /** role */
9517
+ export type Role = AtomBase;
9518
+ /** Privileges the role provides. */
9519
+ export declare enum RolePrivileges {
9520
+ Create = "create",
9521
+ Delete = "delete",
9522
+ Execute = "execute",
9523
+ Read = "read",
9524
+ Update = "update"
9525
+ }
9480
9526
  /** role-summary */
9481
9527
  export type RoleSummary = AtomBaseSummary;
9528
+ /** Target object type of the role. */
9529
+ export declare enum RoleTarget {
9530
+ AccessControlEntry = "access_control_entry",
9531
+ Account = "account",
9532
+ AccountCommerceDetails = "account_commerce_details",
9533
+ AddonRule = "addon_rule",
9534
+ AiAgent = "ai_agent",
9535
+ AiAgentSession = "ai_agent_session",
9536
+ AiAssistantChat = "ai_assistant_chat",
9537
+ AppFragment = "app_fragment",
9538
+ Article = "article",
9539
+ Artifact = "artifact",
9540
+ Capability = "capability",
9541
+ Channel = "channel",
9542
+ Command = "command",
9543
+ Comment = "comment",
9544
+ Conversation = "conversation",
9545
+ Credit = "credit",
9546
+ CreditCoupon = "credit_coupon",
9547
+ CustomObject = "custom_object",
9548
+ CustomPart = "custom_part",
9549
+ CustomStage = "custom_stage",
9550
+ CustomState = "custom_state",
9551
+ CustomTypeFragment = "custom_type_fragment",
9552
+ Dashboard = "dashboard",
9553
+ Dataset = "dataset",
9554
+ DevOrg = "dev_org",
9555
+ DevUser = "dev_user",
9556
+ Directory = "directory",
9557
+ DiscoveryRun = "discovery_run",
9558
+ Dm = "dm",
9559
+ Enhancement = "enhancement",
9560
+ ExternalSyncUnit = "external_sync_unit",
9561
+ Feature = "feature",
9562
+ Flow = "flow",
9563
+ Group = "group",
9564
+ Incident = "incident",
9565
+ Invoice = "invoice",
9566
+ Issue = "issue",
9567
+ Job = "job",
9568
+ Keyring = "keyring",
9569
+ LicenseAssignment = "license_assignment",
9570
+ Link = "link",
9571
+ Linkable = "linkable",
9572
+ Marketplace = "marketplace",
9573
+ MarketplaceCategory = "marketplace_category",
9574
+ MarketplaceItem = "marketplace_item",
9575
+ MarketplaceSubmission = "marketplace_submission",
9576
+ Meeting = "meeting",
9577
+ MetricSet = "metric_set",
9578
+ OasisData = "oasis_data",
9579
+ ObjectMember = "object_member",
9580
+ Opportunity = "opportunity",
9581
+ OrgPreferences = "org_preferences",
9582
+ PaymentMethodCard = "payment_method_card",
9583
+ PortalPreferences = "portal_preferences",
9584
+ Pricing = "pricing",
9585
+ Product = "product",
9586
+ QuestionAnswer = "question_answer",
9587
+ Quote = "quote",
9588
+ RecordTemplate = "record_template",
9589
+ RevOrg = "rev_org",
9590
+ RevUser = "rev_user",
9591
+ RevoConfig = "revo_config",
9592
+ Role = "role",
9593
+ RoleSet = "role_set",
9594
+ Runnable = "runnable",
9595
+ Score = "score",
9596
+ ServicePlan = "service_plan",
9597
+ Sku = "sku",
9598
+ SkuRule = "sku_rule",
9599
+ SnapIn = "snap_in",
9600
+ SnapWidget = "snap_widget",
9601
+ StageDiagram = "stage_diagram",
9602
+ SvcAcc = "svc_acc",
9603
+ SyncHistory = "sync_history",
9604
+ SyncMapperRecord = "sync_mapper_record",
9605
+ SyncUnit = "sync_unit",
9606
+ Task = "task",
9607
+ TenantFragment = "tenant_fragment",
9608
+ Ticket = "ticket",
9609
+ Token = "token",
9610
+ Uom = "uom",
9611
+ Vista = "vista",
9612
+ Webhook = "webhook",
9613
+ Widget = "widget",
9614
+ Workflow = "workflow"
9615
+ }
9616
+ /**
9617
+ * roles-apply-request
9618
+ * A request to apply (assign or revoke) roles of a principal.
9619
+ */
9620
+ export interface RolesApplyRequest {
9621
+ /** Act as ID. */
9622
+ act_as?: string;
9623
+ /** Roles to be additionally assigned to principal. */
9624
+ assign?: string[];
9625
+ /**
9626
+ * The ID of the principal.
9627
+ * @example "DEV-AbCdEfGh"
9628
+ */
9629
+ principal: string;
9630
+ /** Roles to be revoked from principal. */
9631
+ revoke?: string[];
9632
+ }
9633
+ /**
9634
+ * roles-apply-response
9635
+ * The response to roles apply.
9636
+ */
9637
+ export type RolesApplyResponse = object;
9638
+ /**
9639
+ * roles-create-request
9640
+ * A request to create a new role.
9641
+ */
9642
+ export interface RolesCreateRequest {
9643
+ /** The caveats on the role. */
9644
+ caveats?: RolesCreateRequestCaveat[];
9645
+ /** Leaf type of the custom object target. */
9646
+ custom_object_target?: string;
9647
+ /** The description of the role. */
9648
+ description?: string;
9649
+ /** Field Privileges. */
9650
+ field_privileges?: RolesCreateRequestFieldPrivileges;
9651
+ /**
9652
+ * Whether to include all subtypes of the leaf type as target of the
9653
+ * role.
9654
+ */
9655
+ include_all_subtypes?: boolean;
9656
+ /** The name of the role. */
9657
+ name?: string;
9658
+ /**
9659
+ * The privileges the role provides on target.
9660
+ * @minItems 1
9661
+ */
9662
+ privileges?: RolePrivileges[];
9663
+ /** Target object type of the role. */
9664
+ target: RoleTarget;
9665
+ /** The subtype of the target. */
9666
+ target_subtype?: string;
9667
+ }
9668
+ /**
9669
+ * roles-create-request-caveat
9670
+ * Caveat under which the role applies.
9671
+ */
9672
+ export type RolesCreateRequestCaveat = object;
9673
+ /**
9674
+ * roles-create-request-field-privileges
9675
+ * Field Privileges.
9676
+ */
9677
+ export type RolesCreateRequestFieldPrivileges = object;
9678
+ /**
9679
+ * roles-create-response
9680
+ * A response to a request to create a new role.
9681
+ */
9682
+ export interface RolesCreateResponse {
9683
+ role: Role;
9684
+ }
9482
9685
  /** saml-connection-fields-map */
9483
9686
  export interface SamlConnectionFieldsMap {
9484
9687
  /**
@@ -10034,6 +10237,54 @@ export type SchemaUenumListFieldDescriptor = SchemaFieldDescriptorBase & {
10034
10237
  };
10035
10238
  /** schema-unknown-field-descriptor */
10036
10239
  export type SchemaUnknownFieldDescriptor = SchemaFieldDescriptorBase;
10240
+ /** schemas-subtype-prepare-update-get-request */
10241
+ export interface SchemasSubtypePrepareUpdateGetRequest {
10242
+ /** Whether the leaf type corresponds to a custom object. */
10243
+ is_custom_leaf_type?: boolean;
10244
+ /** Leaf type of the object. */
10245
+ leaf_type: string;
10246
+ /** Name of the new subtype for the object. */
10247
+ new_subtype?: string;
10248
+ /**
10249
+ * ID of the object of which subtype is to be changed. Used to fetch
10250
+ * the object's custom schema fragments and custom fields
10251
+ */
10252
+ object?: string;
10253
+ }
10254
+ /** schemas-subtype-prepare-update-get-response */
10255
+ export interface SchemasSubtypePrepareUpdateGetResponse {
10256
+ /** List of fields that have a default value and need to be set. */
10257
+ added_fields?: SchemasSubtypePrepareUpdateGetResponseAddedField[];
10258
+ /** List of fields that will be dropped from the object. */
10259
+ dropped_fields?: SchemasSubtypePrepareUpdateGetResponseDroppedField[];
10260
+ /** List of new custom schema fragment IDs of the object. */
10261
+ new_custom_schema_fragments?: string[];
10262
+ /**
10263
+ * ID of the start stage of the new diagram if the subtype change
10264
+ * results in a change in the stage diagram.
10265
+ */
10266
+ new_start_stage?: string;
10267
+ }
10268
+ /** schemas-subtype-prepare-update-get-response-added-field */
10269
+ export interface SchemasSubtypePrepareUpdateGetResponseAddedField {
10270
+ /** Default value of the added field. */
10271
+ default_value?: any;
10272
+ /** API-compliant qualified name of the added field. */
10273
+ name: string;
10274
+ }
10275
+ export declare enum SchemasSubtypePrepareUpdateGetResponseConflictType {
10276
+ AbsentInNew = "absent_in_new",
10277
+ AbsentInOld = "absent_in_old",
10278
+ IncompatibleType = "incompatible_type"
10279
+ }
10280
+ /** schemas-subtype-prepare-update-get-response-dropped-field */
10281
+ export interface SchemasSubtypePrepareUpdateGetResponseDroppedField {
10282
+ conflict_type: SchemasSubtypePrepareUpdateGetResponseConflictType;
10283
+ /** Conflict message for the field being dropped. */
10284
+ message: string;
10285
+ /** API-compliant qualified name of the dropped field. */
10286
+ name: string;
10287
+ }
10037
10288
  /**
10038
10289
  * search-core-request
10039
10290
  * Search request.
@@ -15915,6 +16166,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15915
16166
  * @secure
15916
16167
  */
15917
16168
  devUsersActivate: (data: DevUsersActivateRequest, params?: RequestParams) => Promise<AxiosResponse<DevUsersActivateResponse, any>>;
16169
+ /**
16170
+ * @description Creates a Dev User for a Dev Organization.
16171
+ *
16172
+ * @tags dev-users
16173
+ * @name DevUsersCreate
16174
+ * @summary Create Dev User
16175
+ * @request POST:/dev-users.create
16176
+ * @secure
16177
+ */
16178
+ devUsersCreate: (data: DevUsersCreateRequest, params?: RequestParams) => Promise<AxiosResponse<DevUsersCreateResponse, any>>;
15918
16179
  /**
15919
16180
  * @description Deactivates the requested user.
15920
16181
  *
@@ -18218,6 +18479,26 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
18218
18479
  * @secure
18219
18480
  */
18220
18481
  revUsersUpdate: (data: RevUsersUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<RevUsersUpdateResponse, any>>;
18482
+ /**
18483
+ * @description Assigns or revokes roles of a principal.
18484
+ *
18485
+ * @tags roles
18486
+ * @name RolesApply
18487
+ * @summary Apply Roles
18488
+ * @request POST:/roles.apply
18489
+ * @secure
18490
+ */
18491
+ rolesApply: (data: RolesApplyRequest, params?: RequestParams) => Promise<AxiosResponse<object, any>>;
18492
+ /**
18493
+ * @description Creates a new role.
18494
+ *
18495
+ * @tags roles
18496
+ * @name RolesCreate
18497
+ * @summary Create Role
18498
+ * @request POST:/roles.create
18499
+ * @secure
18500
+ */
18501
+ rolesCreate: (data: RolesCreateRequest, params?: RequestParams) => Promise<AxiosResponse<RolesCreateResponse, any>>;
18221
18502
  /**
18222
18503
  * @description Gets the aggregated schema.
18223
18504
  *
@@ -18439,6 +18720,16 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
18439
18720
  * @secure
18440
18721
  */
18441
18722
  subtypesListPost: (data: SubtypesListRequest, params?: RequestParams) => Promise<AxiosResponse<SubtypesListResponse, any>>;
18723
+ /**
18724
+ * @description Gets the new fragment IDs and fields resulting from changing a subtype.
18725
+ *
18726
+ * @tags customization
18727
+ * @name SchemasSubtypePrepareUpdateGet
18728
+ * @summary Prepare-Update Schemas Subtypes
18729
+ * @request POST:/schemas.subtypes.prepare-update
18730
+ * @secure
18731
+ */
18732
+ schemasSubtypePrepareUpdateGet: (data: SchemasSubtypePrepareUpdateGetRequest, params?: RequestParams) => Promise<AxiosResponse<SchemasSubtypePrepareUpdateGetResponse, any>>;
18442
18733
  /**
18443
18734
  * @description Searches for records based on a given query.
18444
18735
  *
@@ -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.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.AssociatedToType = exports.ArticleType = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
- exports.StockSchemaFragmentsListRequestPrune = exports.StockSchemaFragmentsListRequestFilterPreset = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapWidgetsCreateRequestType = exports.SnapWidgetType = exports.SnapWidgetStatus = exports.SnapWidgetNamespace = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaTrackerAppliesToType = 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.ReactionsUpdateRequestAction = 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 = exports.GroupType = 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 = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.SyncInStatus = void 0;
36
+ 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.DevUsersCreateRequestDevUsersCreateStateEnumValue = 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.AssociatedToType = exports.ArticleType = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
+ exports.SnapWidgetsCreateRequestType = exports.SnapWidgetType = exports.SnapWidgetStatus = exports.SnapWidgetNamespace = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaTrackerAppliesToType = 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.SchemasSubtypePrepareUpdateGetResponseConflictType = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.RoleTarget = exports.RolePrivileges = exports.ReactionsUpdateRequestAction = 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 = exports.GroupType = exports.GroupMemberType = 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 = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.SyncInStatus = exports.StockSchemaFragmentsListRequestPrune = exports.StockSchemaFragmentsListRequestFilterPreset = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = void 0;
39
39
  var AccessLevel;
40
40
  (function (AccessLevel) {
41
41
  AccessLevel["External"] = "external";
@@ -345,6 +345,10 @@ var DevUserJobTitle;
345
345
  DevUserJobTitle["Support"] = "support";
346
346
  DevUserJobTitle["TechLead"] = "tech_lead";
347
347
  })(DevUserJobTitle = exports.DevUserJobTitle || (exports.DevUserJobTitle = {}));
348
+ var DevUsersCreateRequestDevUsersCreateStateEnumValue;
349
+ (function (DevUsersCreateRequestDevUsersCreateStateEnumValue) {
350
+ DevUsersCreateRequestDevUsersCreateStateEnumValue["Shadow"] = "shadow";
351
+ })(DevUsersCreateRequestDevUsersCreateStateEnumValue = exports.DevUsersCreateRequestDevUsersCreateStateEnumValue || (exports.DevUsersCreateRequestDevUsersCreateStateEnumValue = {}));
348
352
  /** Type of engagement. */
349
353
  var EngagementType;
350
354
  (function (EngagementType) {
@@ -709,6 +713,104 @@ var ReactionsUpdateRequestAction;
709
713
  ReactionsUpdateRequestAction["Add"] = "add";
710
714
  ReactionsUpdateRequestAction["Remove"] = "remove";
711
715
  })(ReactionsUpdateRequestAction = exports.ReactionsUpdateRequestAction || (exports.ReactionsUpdateRequestAction = {}));
716
+ /** Privileges the role provides. */
717
+ var RolePrivileges;
718
+ (function (RolePrivileges) {
719
+ RolePrivileges["Create"] = "create";
720
+ RolePrivileges["Delete"] = "delete";
721
+ RolePrivileges["Execute"] = "execute";
722
+ RolePrivileges["Read"] = "read";
723
+ RolePrivileges["Update"] = "update";
724
+ })(RolePrivileges = exports.RolePrivileges || (exports.RolePrivileges = {}));
725
+ /** Target object type of the role. */
726
+ var RoleTarget;
727
+ (function (RoleTarget) {
728
+ RoleTarget["AccessControlEntry"] = "access_control_entry";
729
+ RoleTarget["Account"] = "account";
730
+ RoleTarget["AccountCommerceDetails"] = "account_commerce_details";
731
+ RoleTarget["AddonRule"] = "addon_rule";
732
+ RoleTarget["AiAgent"] = "ai_agent";
733
+ RoleTarget["AiAgentSession"] = "ai_agent_session";
734
+ RoleTarget["AiAssistantChat"] = "ai_assistant_chat";
735
+ RoleTarget["AppFragment"] = "app_fragment";
736
+ RoleTarget["Article"] = "article";
737
+ RoleTarget["Artifact"] = "artifact";
738
+ RoleTarget["Capability"] = "capability";
739
+ RoleTarget["Channel"] = "channel";
740
+ RoleTarget["Command"] = "command";
741
+ RoleTarget["Comment"] = "comment";
742
+ RoleTarget["Conversation"] = "conversation";
743
+ RoleTarget["Credit"] = "credit";
744
+ RoleTarget["CreditCoupon"] = "credit_coupon";
745
+ RoleTarget["CustomObject"] = "custom_object";
746
+ RoleTarget["CustomPart"] = "custom_part";
747
+ RoleTarget["CustomStage"] = "custom_stage";
748
+ RoleTarget["CustomState"] = "custom_state";
749
+ RoleTarget["CustomTypeFragment"] = "custom_type_fragment";
750
+ RoleTarget["Dashboard"] = "dashboard";
751
+ RoleTarget["Dataset"] = "dataset";
752
+ RoleTarget["DevOrg"] = "dev_org";
753
+ RoleTarget["DevUser"] = "dev_user";
754
+ RoleTarget["Directory"] = "directory";
755
+ RoleTarget["DiscoveryRun"] = "discovery_run";
756
+ RoleTarget["Dm"] = "dm";
757
+ RoleTarget["Enhancement"] = "enhancement";
758
+ RoleTarget["ExternalSyncUnit"] = "external_sync_unit";
759
+ RoleTarget["Feature"] = "feature";
760
+ RoleTarget["Flow"] = "flow";
761
+ RoleTarget["Group"] = "group";
762
+ RoleTarget["Incident"] = "incident";
763
+ RoleTarget["Invoice"] = "invoice";
764
+ RoleTarget["Issue"] = "issue";
765
+ RoleTarget["Job"] = "job";
766
+ RoleTarget["Keyring"] = "keyring";
767
+ RoleTarget["LicenseAssignment"] = "license_assignment";
768
+ RoleTarget["Link"] = "link";
769
+ RoleTarget["Linkable"] = "linkable";
770
+ RoleTarget["Marketplace"] = "marketplace";
771
+ RoleTarget["MarketplaceCategory"] = "marketplace_category";
772
+ RoleTarget["MarketplaceItem"] = "marketplace_item";
773
+ RoleTarget["MarketplaceSubmission"] = "marketplace_submission";
774
+ RoleTarget["Meeting"] = "meeting";
775
+ RoleTarget["MetricSet"] = "metric_set";
776
+ RoleTarget["OasisData"] = "oasis_data";
777
+ RoleTarget["ObjectMember"] = "object_member";
778
+ RoleTarget["Opportunity"] = "opportunity";
779
+ RoleTarget["OrgPreferences"] = "org_preferences";
780
+ RoleTarget["PaymentMethodCard"] = "payment_method_card";
781
+ RoleTarget["PortalPreferences"] = "portal_preferences";
782
+ RoleTarget["Pricing"] = "pricing";
783
+ RoleTarget["Product"] = "product";
784
+ RoleTarget["QuestionAnswer"] = "question_answer";
785
+ RoleTarget["Quote"] = "quote";
786
+ RoleTarget["RecordTemplate"] = "record_template";
787
+ RoleTarget["RevOrg"] = "rev_org";
788
+ RoleTarget["RevUser"] = "rev_user";
789
+ RoleTarget["RevoConfig"] = "revo_config";
790
+ RoleTarget["Role"] = "role";
791
+ RoleTarget["RoleSet"] = "role_set";
792
+ RoleTarget["Runnable"] = "runnable";
793
+ RoleTarget["Score"] = "score";
794
+ RoleTarget["ServicePlan"] = "service_plan";
795
+ RoleTarget["Sku"] = "sku";
796
+ RoleTarget["SkuRule"] = "sku_rule";
797
+ RoleTarget["SnapIn"] = "snap_in";
798
+ RoleTarget["SnapWidget"] = "snap_widget";
799
+ RoleTarget["StageDiagram"] = "stage_diagram";
800
+ RoleTarget["SvcAcc"] = "svc_acc";
801
+ RoleTarget["SyncHistory"] = "sync_history";
802
+ RoleTarget["SyncMapperRecord"] = "sync_mapper_record";
803
+ RoleTarget["SyncUnit"] = "sync_unit";
804
+ RoleTarget["Task"] = "task";
805
+ RoleTarget["TenantFragment"] = "tenant_fragment";
806
+ RoleTarget["Ticket"] = "ticket";
807
+ RoleTarget["Token"] = "token";
808
+ RoleTarget["Uom"] = "uom";
809
+ RoleTarget["Vista"] = "vista";
810
+ RoleTarget["Webhook"] = "webhook";
811
+ RoleTarget["Widget"] = "widget";
812
+ RoleTarget["Workflow"] = "workflow";
813
+ })(RoleTarget = exports.RoleTarget || (exports.RoleTarget = {}));
712
814
  var SchemaFieldDescriptorArrayTypeBaseType;
713
815
  (function (SchemaFieldDescriptorArrayTypeBaseType) {
714
816
  SchemaFieldDescriptorArrayTypeBaseType["Bool"] = "bool";
@@ -743,6 +845,12 @@ var SchemaFieldDescriptorFieldType;
743
845
  SchemaFieldDescriptorFieldType["Uenum"] = "uenum";
744
846
  SchemaFieldDescriptorFieldType["Unknown"] = "unknown";
745
847
  })(SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorFieldType || (exports.SchemaFieldDescriptorFieldType = {}));
848
+ var SchemasSubtypePrepareUpdateGetResponseConflictType;
849
+ (function (SchemasSubtypePrepareUpdateGetResponseConflictType) {
850
+ SchemasSubtypePrepareUpdateGetResponseConflictType["AbsentInNew"] = "absent_in_new";
851
+ SchemasSubtypePrepareUpdateGetResponseConflictType["AbsentInOld"] = "absent_in_old";
852
+ SchemasSubtypePrepareUpdateGetResponseConflictType["IncompatibleType"] = "incompatible_type";
853
+ })(SchemasSubtypePrepareUpdateGetResponseConflictType = exports.SchemasSubtypePrepareUpdateGetResponseConflictType || (exports.SchemasSubtypePrepareUpdateGetResponseConflictType = {}));
746
854
  /** The namespaces for hybrid search. */
747
855
  var SearchHybridNamespace;
748
856
  (function (SearchHybridNamespace) {
@@ -2250,6 +2358,16 @@ class Api extends HttpClient {
2250
2358
  * @secure
2251
2359
  */
2252
2360
  this.devUsersActivate = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.activate`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2361
+ /**
2362
+ * @description Creates a Dev User for a Dev Organization.
2363
+ *
2364
+ * @tags dev-users
2365
+ * @name DevUsersCreate
2366
+ * @summary Create Dev User
2367
+ * @request POST:/dev-users.create
2368
+ * @secure
2369
+ */
2370
+ this.devUsersCreate = (data, params = {}) => this.request(Object.assign({ path: `/dev-users.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
2253
2371
  /**
2254
2372
  * @description Deactivates the requested user.
2255
2373
  *
@@ -3689,6 +3807,26 @@ class Api extends HttpClient {
3689
3807
  * @secure
3690
3808
  */
3691
3809
  this.revUsersUpdate = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
3810
+ /**
3811
+ * @description Assigns or revokes roles of a principal.
3812
+ *
3813
+ * @tags roles
3814
+ * @name RolesApply
3815
+ * @summary Apply Roles
3816
+ * @request POST:/roles.apply
3817
+ * @secure
3818
+ */
3819
+ this.rolesApply = (data, params = {}) => this.request(Object.assign({ path: `/roles.apply`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
3820
+ /**
3821
+ * @description Creates a new role.
3822
+ *
3823
+ * @tags roles
3824
+ * @name RolesCreate
3825
+ * @summary Create Role
3826
+ * @request POST:/roles.create
3827
+ * @secure
3828
+ */
3829
+ this.rolesCreate = (data, params = {}) => this.request(Object.assign({ path: `/roles.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
3692
3830
  /**
3693
3831
  * @description Gets the aggregated schema.
3694
3832
  *
@@ -3819,6 +3957,16 @@ class Api extends HttpClient {
3819
3957
  * @secure
3820
3958
  */
3821
3959
  this.subtypesListPost = (data, params = {}) => this.request(Object.assign({ path: `/schemas.subtypes.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
3960
+ /**
3961
+ * @description Gets the new fragment IDs and fields resulting from changing a subtype.
3962
+ *
3963
+ * @tags customization
3964
+ * @name SchemasSubtypePrepareUpdateGet
3965
+ * @summary Prepare-Update Schemas Subtypes
3966
+ * @request POST:/schemas.subtypes.prepare-update
3967
+ * @secure
3968
+ */
3969
+ this.schemasSubtypePrepareUpdateGet = (data, params = {}) => this.request(Object.assign({ path: `/schemas.subtypes.prepare-update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
3822
3970
  /**
3823
3971
  * @description Searches for records based on a given query.
3824
3972
  *
@@ -1516,6 +1516,24 @@ export interface EnumValue {
1516
1516
  /** The actual value of the enum value. */
1517
1517
  value?: any;
1518
1518
  }
1519
+ /**
1520
+ * enum-value-summary
1521
+ * The properties of an enum value.
1522
+ */
1523
+ export interface EnumValueSummary {
1524
+ /**
1525
+ * The unique ID of the enum value.
1526
+ * @format int64
1527
+ */
1528
+ id: number;
1529
+ /** The display label of the enum value. */
1530
+ label: string;
1531
+ /**
1532
+ * Used for determining the relative order of the enum value.
1533
+ * @format int64
1534
+ */
1535
+ ordinal: number;
1536
+ }
1519
1537
  /** error */
1520
1538
  export interface Error {
1521
1539
  /** The error type. */
@@ -2189,6 +2207,8 @@ export type Issue = WorkBase & {
2189
2207
  developed_with?: PartSummary[];
2190
2208
  /** Priority of the work based upon impact and criticality. */
2191
2209
  priority?: IssuePriority;
2210
+ /** The properties of an enum value. */
2211
+ priority_v2?: EnumValue;
2192
2212
  /** SLA summary for the object. */
2193
2213
  sla_summary?: ArchetypeSlaSummary;
2194
2214
  sla_tracker?: SlaTrackerSummary;
@@ -2212,6 +2232,8 @@ export declare enum IssuePriority {
2212
2232
  export type IssueSummary = WorkBaseSummary & {
2213
2233
  /** Priority of the work based upon impact and criticality. */
2214
2234
  priority?: IssuePriority;
2235
+ /** The properties of an enum value. */
2236
+ priority_v2?: EnumValueSummary;
2215
2237
  /** Vista group item. */
2216
2238
  sprint?: VistaGroupItemSummary;
2217
2239
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrev/typescript-sdk",
3
- "version": "1.1.45",
3
+ "version": "1.1.46",
4
4
  "description": "## SDK Generation",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {