@devrev/typescript-sdk 1.1.30 → 1.1.31

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.
@@ -1046,7 +1046,7 @@ export interface AtomBaseSummary {
1046
1046
  id: string;
1047
1047
  }
1048
1048
  /** atom-summary */
1049
- export type AtomSummary = (AccountSummary | AppFragmentSummary | CapabilitySummary | ConversationSummary | CustomTypeFragmentSummary | DevUserSummary | EngagementSummary | EnhancementSummary | FeatureSummary | IssueSummary | MeetingSummary | OpportunitySummary | ProductSummary | RevOrgSummary | RevUserSummary | ServiceAccountSummary | SysUserSummary | TagSummary | TaskSummary | TenantFragmentSummary | TicketSummary | TimelineChangeEventSummary | TimelineCommentSummary | WebhookSummary) & {
1049
+ export type AtomSummary = (AccountSummary | AppFragmentSummary | CapabilitySummary | ConversationSummary | CustomTypeFragmentSummary | DevUserSummary | EngagementSummary | EnhancementSummary | FeatureSummary | IssueSummary | MeetingSummary | OpportunitySummary | ProductSummary | RevOrgSummary | RevUserSummary | ServiceAccountSummary | SysUserSummary | TagSummary | TaskSummary | TenantFragmentSummary | TicketSummary | TimelineChangeEventSummary | TimelineCommentSummary | UserPreferencesSummary | WebhookSummary) & {
1050
1050
  type: AtomType;
1051
1051
  };
1052
1052
  export declare enum AtomType {
@@ -1073,6 +1073,7 @@ export declare enum AtomType {
1073
1073
  Ticket = "ticket",
1074
1074
  TimelineChangeEvent = "timeline_change_event",
1075
1075
  TimelineComment = "timeline_comment",
1076
+ UserPreferences = "user_preferences",
1076
1077
  Webhook = "webhook"
1077
1078
  }
1078
1079
  /**
@@ -1494,6 +1495,14 @@ export interface AuthTokensUserTraits {
1494
1495
  /** Phone numbers of the Rev user. */
1495
1496
  phone_numbers?: string[];
1496
1497
  }
1498
+ /**
1499
+ * availability-preferences-group
1500
+ * Preferences group for Availability.
1501
+ */
1502
+ export interface AvailabilityPreferencesGroup {
1503
+ /** Manually set presence to away. */
1504
+ manual_away?: boolean;
1505
+ }
1497
1506
  /**
1498
1507
  * boolean-expression
1499
1508
  * Boolean expression.
@@ -1666,6 +1675,7 @@ export type CodeChange = AtomBase & {
1666
1675
  };
1667
1676
  /** Source of the code change object. */
1668
1677
  export declare enum CodeChangeSource {
1678
+ AzureDevops = "azure_devops",
1669
1679
  Bitbucket = "bitbucket",
1670
1680
  Github = "github"
1671
1681
  }
@@ -2278,6 +2288,16 @@ export interface CreateEmailPreviewWidget {
2278
2288
  /** The list of to addresses. */
2279
2289
  to?: CreateEmailInfo[];
2280
2290
  }
2291
+ /** create-impacted-customer-details */
2292
+ export interface CreateImpactedCustomerDetails {
2293
+ /**
2294
+ * Count of customers impacted.
2295
+ * @format int64
2296
+ */
2297
+ count?: number;
2298
+ /** List of customers impacted due to the incident. */
2299
+ customer_ids?: string[];
2300
+ }
2281
2301
  /** create-org-schedule-interval */
2282
2302
  export interface CreateOrgScheduleInterval {
2283
2303
  /**
@@ -3549,7 +3569,8 @@ export interface ErrorBadRequestMergeWorksErrorError {
3549
3569
  different_workspace?: ErrorBadRequestMergeWorksErrorErrorDifferentWorkspace;
3550
3570
  invalid_stage_transition?: ErrorBadRequestMergeWorksErrorErrorInvalidStageTransition;
3551
3571
  locked?: ErrorBadRequestMergeWorksErrorErrorLocked;
3552
- subtype?: 'already_merged' | 'closed' | 'different_reporters' | 'different_workspace' | 'invalid_stage_transition' | 'locked';
3572
+ stage_not_found_for_subtype?: ErrorBadRequestMergeWorksErrorErrorStageNotFoundForSubtype;
3573
+ subtype?: 'already_merged' | 'closed' | 'different_reporters' | 'different_workspace' | 'invalid_stage_transition' | 'locked' | 'stage_not_found_for_subtype';
3553
3574
  /** The ID of the work which failed the validation. */
3554
3575
  work: string;
3555
3576
  }
@@ -3583,6 +3604,11 @@ export interface ErrorBadRequestMergeWorksErrorErrorInvalidStageTransition {
3583
3604
  }
3584
3605
  /** error-bad-request-merge-works-error-error-locked */
3585
3606
  export type ErrorBadRequestMergeWorksErrorErrorLocked = object;
3607
+ /** error-bad-request-merge-works-error-error-stage-not-found-for-subtype */
3608
+ export interface ErrorBadRequestMergeWorksErrorErrorStageNotFoundForSubtype {
3609
+ /** The subtype of the work for which stage is not configured. */
3610
+ subtype?: string;
3611
+ }
3586
3612
  /** error-bad-request-missing-dependency */
3587
3613
  export interface ErrorBadRequestMissingDependency {
3588
3614
  /** The dependent fields. */
@@ -3988,6 +4014,16 @@ export interface EventSourcesScheduleEventResponse {
3988
4014
  */
3989
4015
  event_key?: string;
3990
4016
  }
4017
+ /** event-survey-created */
4018
+ export interface EventSurveyCreated {
4019
+ survey: Survey;
4020
+ }
4021
+ /** event-survey-deleted */
4022
+ export interface EventSurveyDeleted {
4023
+ /** The ID of the survey that was deleted. */
4024
+ id: string;
4025
+ old_survey?: Survey;
4026
+ }
3991
4027
  /** event-survey-response-created */
3992
4028
  export interface EventSurveyResponseCreated {
3993
4029
  survey_response: SurveyResponse;
@@ -3996,11 +4032,18 @@ export interface EventSurveyResponseCreated {
3996
4032
  export interface EventSurveyResponseDeleted {
3997
4033
  /** The ID of the survey response that was deleted. */
3998
4034
  id: string;
4035
+ old_survey_response?: SurveyResponse;
3999
4036
  }
4000
4037
  /** event-survey-response-updated */
4001
4038
  export interface EventSurveyResponseUpdated {
4039
+ old_survey_response?: SurveyResponse;
4002
4040
  survey_response: SurveyResponse;
4003
4041
  }
4042
+ /** event-survey-updated */
4043
+ export interface EventSurveyUpdated {
4044
+ old_survey?: Survey;
4045
+ survey: Survey;
4046
+ }
4004
4047
  /** event-tag-created */
4005
4048
  export interface EventTagCreated {
4006
4049
  tag: Tag;
@@ -4218,6 +4261,21 @@ export declare enum FieldValueType {
4218
4261
  TagSummary = "tag_summary",
4219
4262
  TagSummaryList = "tag_summary_list"
4220
4263
  }
4264
+ /**
4265
+ * general-preferences-group
4266
+ * Preferences group for General settings.
4267
+ */
4268
+ export interface GeneralPreferencesGroup {
4269
+ /** Preferences group for Availability. */
4270
+ availability?: AvailabilityPreferencesGroup;
4271
+ /** Preferred locale of the user. */
4272
+ preferred_locale?: GeneralPreferencesGroupPreferredLocale;
4273
+ }
4274
+ /** Preferred locale of the user. */
4275
+ export declare enum GeneralPreferencesGroupPreferredLocale {
4276
+ EnUs = "en_us",
4277
+ JaJp = "ja_jp"
4278
+ }
4221
4279
  /** Event type of the notification. */
4222
4280
  export declare enum GenericNotificationEventType {
4223
4281
  Alert = "alert",
@@ -4238,6 +4296,11 @@ export type Group = AtomBase & {
4238
4296
  name?: string;
4239
4297
  owner?: UserSummary;
4240
4298
  };
4299
+ /** Creation source of the group. */
4300
+ export declare enum GroupIngestionSource {
4301
+ Airdrop = "airdrop",
4302
+ Scim = "scim"
4303
+ }
4241
4304
  /** Type of the members in the group. */
4242
4305
  export declare enum GroupMemberType {
4243
4306
  DevUser = "dev_user",
@@ -4407,6 +4470,8 @@ export interface GroupsListRequest {
4407
4470
  cursor?: string;
4408
4471
  /** Filters the groups based on the group type. */
4409
4472
  group_type?: GroupType[];
4473
+ /** Filter groups by ingestion source(s). */
4474
+ ingestion_source?: GroupIngestionSource[];
4410
4475
  /** Whether to fetch default or custom groups. */
4411
4476
  is_default?: boolean;
4412
4477
  /**
@@ -4472,8 +4537,24 @@ export interface GroupsUpdateRequestDynamicGroupInfo {
4472
4537
  export interface GroupsUpdateResponse {
4473
4538
  group: Group;
4474
4539
  }
4540
+ /**
4541
+ * impacted-customer-details
4542
+ * Details of the impact due to the incident.
4543
+ */
4544
+ export interface ImpactedCustomerDetails {
4545
+ /** The properties of an enum value. */
4546
+ count?: EnumValue;
4547
+ /** List of customers impacted due to the incident. */
4548
+ customer_ids?: AccountSummary[];
4549
+ }
4475
4550
  /** incident */
4476
4551
  export type Incident = AtomBase & {
4552
+ /**
4553
+ * Timestamp when the incident was acknowledged.
4554
+ * @format date-time
4555
+ * @example "2023-01-01T12:00:00.000Z"
4556
+ */
4557
+ acknowledged_date?: string;
4477
4558
  /** Parts to which the incident is applicable to. */
4478
4559
  applies_to_parts?: PartSummary[];
4479
4560
  /** Artifacts attached to the incident. */
@@ -4493,6 +4574,8 @@ export type Incident = AtomBase & {
4493
4574
  * @example "2023-01-01T12:00:00.000Z"
4494
4575
  */
4495
4576
  identified_date?: string;
4577
+ /** Details of the impact due to the incident. */
4578
+ impact?: ImpactedCustomerDetails;
4496
4579
  /** List of customers impacted due to the incident. */
4497
4580
  impacted_customers?: AccountSummary[];
4498
4581
  /**
@@ -4504,7 +4587,11 @@ export type Incident = AtomBase & {
4504
4587
  /** The users that own the incident. */
4505
4588
  owned_by?: UserSummary[];
4506
4589
  /** The properties of an enum value. */
4590
+ reported_by?: EnumValue;
4591
+ /** The properties of an enum value. */
4507
4592
  severity?: EnumValue;
4593
+ /** The properties of an enum value. */
4594
+ source?: EnumValue;
4508
4595
  /** Describes the current stage of a object. */
4509
4596
  stage?: Stage;
4510
4597
  /**
@@ -4532,6 +4619,12 @@ export type Incident = AtomBase & {
4532
4619
  };
4533
4620
  /** incidents-create-request */
4534
4621
  export interface IncidentsCreateRequest {
4622
+ /**
4623
+ * Timestamp when the incident was acknowledged.
4624
+ * @format date-time
4625
+ * @example "2023-01-01T12:00:00.000Z"
4626
+ */
4627
+ acknowledged_date?: string;
4535
4628
  /** Parts to which the incident is applicable to. */
4536
4629
  applies_to_parts?: string[];
4537
4630
  /**
@@ -4557,6 +4650,7 @@ export interface IncidentsCreateRequest {
4557
4650
  * @example "2023-01-01T12:00:00.000Z"
4558
4651
  */
4559
4652
  identified_date?: string;
4653
+ impact?: CreateImpactedCustomerDetails;
4560
4654
  /** List of customers impacted due to the incident. */
4561
4655
  impacted_customers?: string[];
4562
4656
  /**
@@ -4567,11 +4661,22 @@ export interface IncidentsCreateRequest {
4567
4661
  mitigated_date?: string;
4568
4662
  /** User IDs of the users that own the incident. */
4569
4663
  owned_by?: string[];
4664
+ /**
4665
+ * The entity that first reported the incident.
4666
+ * @format int64
4667
+ */
4668
+ reported_by?: number;
4570
4669
  /**
4571
4670
  * Severity of the incident.
4572
4671
  * @format int64
4573
4672
  */
4574
4673
  severity?: number;
4674
+ /**
4675
+ * Source of where the incident was created. Only sys users and
4676
+ * service accounts are supposed to set this field.
4677
+ * @format int64
4678
+ */
4679
+ source?: number;
4575
4680
  /** Create object for stage. */
4576
4681
  stage?: CreateStage;
4577
4682
  /**
@@ -4635,6 +4740,10 @@ export interface IncidentsGroup {
4635
4740
  }
4636
4741
  /** incidents-group-request */
4637
4742
  export interface IncidentsGroupRequest {
4743
+ /** Provides ways to specify date ranges on objects. */
4744
+ acknowledged_date?: DateFilter;
4745
+ /** Provides ways to specify date ranges on objects. */
4746
+ actual_close_date?: DateFilter;
4638
4747
  /** Filters for incidents that apply to any of the provided parts. */
4639
4748
  applies_to_parts?: string[];
4640
4749
  /**
@@ -4651,6 +4760,8 @@ export interface IncidentsGroupRequest {
4651
4760
  cursor?: string;
4652
4761
  /** The field to group the incidents by. */
4653
4762
  group_by: string;
4763
+ /** Provides ways to specify date ranges on objects. */
4764
+ identified_date?: DateFilter;
4654
4765
  /**
4655
4766
  * The maximum number of groups to return. If not set, then the
4656
4767
  * default is '10'.
@@ -4663,6 +4774,8 @@ export interface IncidentsGroupRequest {
4663
4774
  * @format int32
4664
4775
  */
4665
4776
  limit_per_group?: number;
4777
+ /** Provides ways to specify date ranges on objects. */
4778
+ mitigated_date?: DateFilter;
4666
4779
  /**
4667
4780
  * The iteration mode to use. If "after", then entries after the provided
4668
4781
  * cursor will be returned, or if no cursor is provided, then from the
@@ -4675,12 +4788,18 @@ export interface IncidentsGroupRequest {
4675
4788
  modified_date?: DateFilter;
4676
4789
  /** Filters for incidents owned by any of the provided users. */
4677
4790
  owned_by?: string[];
4791
+ /** Filters for incidents with any of the provided reporters. */
4792
+ reported_by?: number[];
4678
4793
  /** Filters for incidents containing any of the provided severities. */
4679
4794
  severity?: number[];
4680
4795
  /** Comma-separated fields to sort the incidents by. */
4681
4796
  sort_by?: string[];
4797
+ /** Filters for incidents with any of the provided sources. */
4798
+ source?: number[];
4682
4799
  /** Filters for incidents in any of the provided stages. */
4683
4800
  stage?: string[];
4801
+ /** Provides ways to specify date ranges on objects. */
4802
+ target_close_date?: DateFilter;
4684
4803
  /** Filters for incidents by the provided titles. */
4685
4804
  title?: string[];
4686
4805
  }
@@ -4701,6 +4820,10 @@ export interface IncidentsGroupResponse {
4701
4820
  }
4702
4821
  /** incidents-list-request */
4703
4822
  export interface IncidentsListRequest {
4823
+ /** Provides ways to specify date ranges on objects. */
4824
+ acknowledged_date?: DateFilter;
4825
+ /** Provides ways to specify date ranges on objects. */
4826
+ actual_close_date?: DateFilter;
4704
4827
  /** Filters for incidents that apply to any of the provided parts. */
4705
4828
  applies_to_parts?: string[];
4706
4829
  /**
@@ -4715,11 +4838,15 @@ export interface IncidentsListRequest {
4715
4838
  * iteration starts from the beginning.
4716
4839
  */
4717
4840
  cursor?: string;
4841
+ /** Provides ways to specify date ranges on objects. */
4842
+ identified_date?: DateFilter;
4718
4843
  /**
4719
4844
  * The maximum number of items.
4720
4845
  * @format int32
4721
4846
  */
4722
4847
  limit?: number;
4848
+ /** Provides ways to specify date ranges on objects. */
4849
+ mitigated_date?: DateFilter;
4723
4850
  /**
4724
4851
  * The iteration mode to use. If "after", then entries after the provided
4725
4852
  * cursor will be returned, or if no cursor is provided, then from the
@@ -4732,12 +4859,18 @@ export interface IncidentsListRequest {
4732
4859
  modified_date?: DateFilter;
4733
4860
  /** Filters for incidents owned by any of the provided users. */
4734
4861
  owned_by?: string[];
4862
+ /** Filters for incidents with any of the provided reporters. */
4863
+ reported_by?: number[];
4735
4864
  /** Filters for incidents containing any of the provided severities. */
4736
4865
  severity?: number[];
4737
4866
  /** The list of fields to sort the items by and how to sort them. */
4738
4867
  sort_by?: string[];
4868
+ /** Filters for incidents with any of the provided sources. */
4869
+ source?: number[];
4739
4870
  /** Filters for incidents in any of the provided stages. */
4740
4871
  stage?: string[];
4872
+ /** Provides ways to specify date ranges on objects. */
4873
+ target_close_date?: DateFilter;
4741
4874
  /** Filters for incidents by the provided titles. */
4742
4875
  title?: string[];
4743
4876
  }
@@ -4758,6 +4891,12 @@ export interface IncidentsListResponse {
4758
4891
  }
4759
4892
  /** incidents-update-request */
4760
4893
  export interface IncidentsUpdateRequest {
4894
+ /**
4895
+ * Timestamp when the incident was acknowledged.
4896
+ * @format date-time
4897
+ * @example "2023-01-01T12:00:00.000Z"
4898
+ */
4899
+ acknowledged_date?: string;
4761
4900
  applies_to_parts?: UpdateIncidentAppliesToParts;
4762
4901
  artifacts?: UpdateIncidentArtifacts;
4763
4902
  /** Body of the incident. */
@@ -4780,6 +4919,7 @@ export interface IncidentsUpdateRequest {
4780
4919
  * @example "2023-01-01T12:00:00.000Z"
4781
4920
  */
4782
4921
  identified_date?: string;
4922
+ impact?: UpdateImpactedCustomerDetails;
4783
4923
  impacted_customers?: UpdateIncidentImpactedCustomers;
4784
4924
  /**
4785
4925
  * Timestamp when the incident was mitigated.
@@ -4788,11 +4928,22 @@ export interface IncidentsUpdateRequest {
4788
4928
  */
4789
4929
  mitigated_date?: string;
4790
4930
  owned_by?: UpdateIncidentOwnedBy;
4931
+ /**
4932
+ * The entity that first reported the incident.
4933
+ * @format int64
4934
+ */
4935
+ reported_by?: number;
4791
4936
  /**
4792
4937
  * Severity of the incident.
4793
4938
  * @format int64
4794
4939
  */
4795
4940
  severity?: number;
4941
+ /**
4942
+ * Source of where the incident was created. Only sys users and
4943
+ * service accounts are supposed to set this field.
4944
+ * @format int64
4945
+ */
4946
+ source?: number;
4796
4947
  /** Update object for Stage. */
4797
4948
  stage?: UpdateStage;
4798
4949
  stakeholders?: UpdateIncidentStakeholders;
@@ -6015,6 +6166,31 @@ export type PartsUpdateRequestProduct = object;
6015
6166
  export interface PartsUpdateResponse {
6016
6167
  part: Part;
6017
6168
  }
6169
+ /** preferences */
6170
+ export type Preferences = UserPreferences & {
6171
+ type: PreferencesType;
6172
+ };
6173
+ /** preferences-base */
6174
+ export type PreferencesBase = AtomBase;
6175
+ /** preferences-base-summary */
6176
+ export type PreferencesBaseSummary = AtomBaseSummary;
6177
+ /** preferences-get-request */
6178
+ export interface PreferencesGetRequest {
6179
+ type: PreferencesType;
6180
+ /**
6181
+ * The ID of the target object for which preferences object is to be
6182
+ * fetched.
6183
+ * @example "DEV-AbCdEfGh"
6184
+ */
6185
+ object: string;
6186
+ }
6187
+ /** preferences-get-response */
6188
+ export interface PreferencesGetResponse {
6189
+ preference: Preferences;
6190
+ }
6191
+ export declare enum PreferencesType {
6192
+ UserPreferences = "user_preferences"
6193
+ }
6018
6194
  /** product */
6019
6195
  export type Product = PartBase;
6020
6196
  /** product-summary */
@@ -6379,7 +6555,7 @@ export interface RevOrgsCreateRequest {
6379
6555
  * Account Id to associate with this Rev organization.
6380
6556
  * @example "ACC-12345"
6381
6557
  */
6382
- account?: string;
6558
+ account: string;
6383
6559
  /**
6384
6560
  * The IDs of the artifacts to associate with the Rev organization.
6385
6561
  * @example ["ARTIFACT-12345"]
@@ -8163,6 +8339,7 @@ export type SnapWidgetBase = AtomBase & {
8163
8339
  };
8164
8340
  /** Logical grouping of snap widgets. Useful for filtering. */
8165
8341
  export declare enum SnapWidgetNamespace {
8342
+ AiAssistantMessage = "ai_assistant_message",
8166
8343
  CommentSuggestionReplies = "comment_suggestion_replies",
8167
8344
  EmailPreview = "email_preview",
8168
8345
  LinkPreview = "link_preview",
@@ -8197,7 +8374,10 @@ export interface SnapWidgetsCreateResponse {
8197
8374
  * stage
8198
8375
  * Describes the current stage of a object.
8199
8376
  */
8200
- export type Stage = object;
8377
+ export interface Stage {
8378
+ stage?: CustomStageSummary;
8379
+ state?: CustomStateSummary;
8380
+ }
8201
8381
  /** stage-diagram-summary */
8202
8382
  export type StageDiagramSummary = AtomBaseSummary;
8203
8383
  /**
@@ -8606,6 +8786,8 @@ export interface SurveysSubmitRequest {
8606
8786
  export type SurveysSubmitResponse = object;
8607
8787
  /** sync-metadata-filter */
8608
8788
  export interface SyncMetadataFilter {
8789
+ /** Filters for issues with this specific external reference. */
8790
+ external_reference?: string[];
8609
8791
  last_sync_in?: SyncMetadataFilterSyncInFilter;
8610
8792
  last_sync_out?: SyncMetadataFilterSyncOutFilter;
8611
8793
  /** Filters for issues synced from this specific origin system. */
@@ -9107,6 +9289,8 @@ export interface TimelineEntriesCreateRequestTimelineComment {
9107
9289
  /**
9108
9290
  * The external reference for the comment. This must be unique within
9109
9291
  * the object's timeline.
9292
+ * @minLength 1
9293
+ * @maxLength 512
9110
9294
  */
9111
9295
  external_ref?: string;
9112
9296
  /**
@@ -9156,6 +9340,8 @@ export interface TimelineEntriesGetRequest {
9156
9340
  /**
9157
9341
  * If set, then gets the entry with the given external reference for
9158
9342
  * the provided entry ID's timeline.
9343
+ * @minLength 1
9344
+ * @maxLength 512
9159
9345
  */
9160
9346
  external_ref?: string;
9161
9347
  /**
@@ -9257,6 +9443,14 @@ export interface TimelineEntriesUpdateRequestTimelineComment {
9257
9443
  body?: string;
9258
9444
  /** The type of the body to use for the comment. */
9259
9445
  body_type?: TimelineCommentBodyType;
9446
+ /**
9447
+ * The updated external reference for the comment. If set, this must
9448
+ * be unique within the object's timeline, otherwise if null, then
9449
+ * clears the value.
9450
+ * @minLength 1
9451
+ * @maxLength 512
9452
+ */
9453
+ external_ref?: string | null;
9260
9454
  link_previews?: TimelineEntriesUpdateRequestTimelineCommentLinkPreviews;
9261
9455
  /** Snap Kit Body of the comment. */
9262
9456
  snap_kit_body?: TimelineSnapKitBody;
@@ -9794,6 +9988,20 @@ export interface UomsUpdateRequestDimensions {
9794
9988
  export interface UomsUpdateResponse {
9795
9989
  uom: Uom;
9796
9990
  }
9991
+ /** update-impacted-customer-details */
9992
+ export interface UpdateImpactedCustomerDetails {
9993
+ /**
9994
+ * Count of customers impacted.
9995
+ * @format int64
9996
+ */
9997
+ count?: number;
9998
+ customer_ids?: UpdateImpactedCustomerDetailsCustomerIds;
9999
+ }
10000
+ /** update-impacted-customer-details-customer-ids */
10001
+ export interface UpdateImpactedCustomerDetailsCustomerIds {
10002
+ /** Sets the list of customers impacted due to the incident. */
10003
+ set?: string[];
10004
+ }
9797
10005
  /** update-incident-applies-to-parts */
9798
10006
  export interface UpdateIncidentAppliesToParts {
9799
10007
  /** Sets the parts to which the incident is applicable to. */
@@ -9879,6 +10087,13 @@ export type UserBaseSummary = AtomBaseSummary & {
9879
10087
  /** State of the user. */
9880
10088
  state?: UserState;
9881
10089
  };
10090
+ /** user-preferences */
10091
+ export type UserPreferences = PreferencesBase & {
10092
+ /** Preferences group for General settings. */
10093
+ general_preferences?: GeneralPreferencesGroup;
10094
+ };
10095
+ /** user-preferences-summary */
10096
+ export type UserPreferencesSummary = PreferencesBaseSummary;
9882
10097
  /** user-search-summary */
9883
10098
  export type UserSearchSummary = SearchSummaryBase & {
9884
10099
  /**
@@ -10027,9 +10242,12 @@ export interface WebhookEventRequest {
10027
10242
  sla_tracker_created?: EventSlaTrackerCreated;
10028
10243
  sla_tracker_deleted?: EventSlaTrackerDeleted;
10029
10244
  sla_tracker_updated?: EventSlaTrackerUpdated;
10245
+ survey_created?: EventSurveyCreated;
10246
+ survey_deleted?: EventSurveyDeleted;
10030
10247
  survey_response_created?: EventSurveyResponseCreated;
10031
10248
  survey_response_deleted?: EventSurveyResponseDeleted;
10032
10249
  survey_response_updated?: EventSurveyResponseUpdated;
10250
+ survey_updated?: EventSurveyUpdated;
10033
10251
  tag_created?: EventTagCreated;
10034
10252
  tag_deleted?: EventTagDeleted;
10035
10253
  tag_updated?: EventTagUpdated;
@@ -10098,6 +10316,12 @@ export declare enum WebhookEventType {
10098
10316
  SlaTrackerCreated = "sla_tracker_created",
10099
10317
  SlaTrackerDeleted = "sla_tracker_deleted",
10100
10318
  SlaTrackerUpdated = "sla_tracker_updated",
10319
+ SurveyCreated = "survey_created",
10320
+ SurveyDeleted = "survey_deleted",
10321
+ SurveyResponseCreated = "survey_response_created",
10322
+ SurveyResponseDeleted = "survey_response_deleted",
10323
+ SurveyResponseUpdated = "survey_response_updated",
10324
+ SurveyUpdated = "survey_updated",
10101
10325
  TagCreated = "tag_created",
10102
10326
  TagDeleted = "tag_deleted",
10103
10327
  TagUpdated = "tag_updated",
@@ -12351,6 +12575,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12351
12575
  cursor?: string;
12352
12576
  /** Filters the groups based on the group type. */
12353
12577
  group_type?: GroupType[];
12578
+ /** Filter groups by ingestion source(s). */
12579
+ ingestion_source?: GroupIngestionSource[];
12354
12580
  /** Whether to fetch default or custom groups. */
12355
12581
  is_default?: boolean;
12356
12582
  /**
@@ -12522,10 +12748,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12522
12748
  mode?: ListMode;
12523
12749
  /** Filters for incidents owned by any of the provided users. */
12524
12750
  owned_by?: string[];
12751
+ /** Filters for incidents with any of the provided reporters. */
12752
+ reported_by?: number[];
12525
12753
  /** Filters for incidents containing any of the provided severities. */
12526
12754
  severity?: number[];
12527
12755
  /** Comma-separated fields to sort the incidents by. */
12528
12756
  sort_by?: string[];
12757
+ /** Filters for incidents with any of the provided sources. */
12758
+ source?: number[];
12529
12759
  /** Filters for incidents in any of the provided stages. */
12530
12760
  stage?: string[];
12531
12761
  /** Filters for incidents by the provided titles. */
@@ -12573,10 +12803,14 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12573
12803
  mode?: ListMode;
12574
12804
  /** Filters for incidents owned by any of the provided users. */
12575
12805
  owned_by?: string[];
12806
+ /** Filters for incidents with any of the provided reporters. */
12807
+ reported_by?: number[];
12576
12808
  /** Filters for incidents containing any of the provided severities. */
12577
12809
  severity?: number[];
12578
12810
  /** The list of fields to sort the items by and how to sort them. */
12579
12811
  sort_by?: string[];
12812
+ /** Filters for incidents with any of the provided sources. */
12813
+ source?: number[];
12580
12814
  /** Filters for incidents in any of the provided stages. */
12581
12815
  stage?: string[];
12582
12816
  /** Filters for incidents by the provided titles. */
@@ -13029,6 +13263,33 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13029
13263
  * @secure
13030
13264
  */
13031
13265
  partsUpdate: (data: PartsUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<PartsUpdateResponse, any>>;
13266
+ /**
13267
+ * @description Get the preferences object.
13268
+ *
13269
+ * @tags preferences
13270
+ * @name PreferencesGet
13271
+ * @request GET:/preferences.get
13272
+ * @secure
13273
+ */
13274
+ preferencesGet: (query: {
13275
+ /**
13276
+ * The ID of the target object for which preferences object is to be
13277
+ * fetched.
13278
+ * @example "DEV-AbCdEfGh"
13279
+ */
13280
+ object: string;
13281
+ /** Type of the preference object to be fetched. */
13282
+ type: PreferencesType;
13283
+ }, params?: RequestParams) => Promise<AxiosResponse<PreferencesGetResponse, any>>;
13284
+ /**
13285
+ * @description Get the preferences object.
13286
+ *
13287
+ * @tags preferences
13288
+ * @name PreferencesGetPost
13289
+ * @request POST:/preferences.get
13290
+ * @secure
13291
+ */
13292
+ preferencesGetPost: (data: PreferencesGetRequest, params?: RequestParams) => Promise<AxiosResponse<PreferencesGetResponse, any>>;
13032
13293
  /**
13033
13294
  * @description Creates a question-answer.
13034
13295
  *
@@ -14426,6 +14687,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14426
14687
  /**
14427
14688
  * If set, then gets the entry with the given external reference for the
14428
14689
  * provided entry ID's timeline.
14690
+ * @minLength 1
14691
+ * @maxLength 512
14429
14692
  */
14430
14693
  external_ref?: string;
14431
14694
  }, params?: RequestParams) => Promise<AxiosResponse<TimelineEntriesGetResponse, any>>;
@@ -14822,6 +15085,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14822
15085
  'stage.name'?: string[];
14823
15086
  /** Filters for issues that are staged. */
14824
15087
  'staged_info.is_staged'?: boolean;
15088
+ /** Filters for issues with this specific external reference. */
15089
+ 'sync_metadata.external_reference'?: string[];
14825
15090
  /** Filters for works with selected sync statuses. */
14826
15091
  'sync_metadata.last_sync_in.status'?: SyncMetadataFilterSyncInFilterStatus[];
14827
15092
  /** Filters for works modified with selected sync units. */
@@ -14976,6 +15241,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14976
15241
  'stage.name'?: string[];
14977
15242
  /** Filters for issues that are staged. */
14978
15243
  'staged_info.is_staged'?: boolean;
15244
+ /** Filters for issues with this specific external reference. */
15245
+ 'sync_metadata.external_reference'?: string[];
14979
15246
  /** Filters for works with selected sync statuses. */
14980
15247
  'sync_metadata.last_sync_in.status'?: SyncMetadataFilterSyncInFilterStatus[];
14981
15248
  /** Filters for works modified with selected sync units. */