@devrev/typescript-sdk 1.1.62 → 1.1.63

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.
@@ -30,6 +30,7 @@ export type Account = OrgBase & {
30
30
  external_refs?: string[];
31
31
  /** List of Dev user IDs owning this Account. */
32
32
  owned_by: UserSummary[];
33
+ primary_account?: AccountSummary;
33
34
  /**
34
35
  * Stock schema fragment.
35
36
  * @format id
@@ -1267,12 +1268,6 @@ export type ArticlesDeleteResponse = object;
1267
1268
  * The request to get an article.
1268
1269
  */
1269
1270
  export interface ArticlesGetRequest {
1270
- /**
1271
- * Optional Dev Org ID for the unauthenticated user.
1272
- * @format id
1273
- * @example "DEV-AbCdEfGh"
1274
- */
1275
- dev_org?: string;
1276
1271
  /**
1277
1272
  * The ID of the required article.
1278
1273
  * @format id
@@ -1320,12 +1315,6 @@ export interface ArticlesListRequest {
1320
1315
  * @format text
1321
1316
  */
1322
1317
  cursor?: string;
1323
- /**
1324
- * Optional Dev Org ID for the unauthenticated user.
1325
- * @format id
1326
- * @example "DEV-AbCdEfGh"
1327
- */
1328
- dev_org?: string;
1329
1318
  /**
1330
1319
  * The maximum number of articles to return. The default is '50'.
1331
1320
  * @format int32
@@ -2181,6 +2170,8 @@ export declare enum AuthTokenTokenType {
2181
2170
  * Carries account info.
2182
2171
  */
2183
2172
  export interface AuthTokensAccountTraits {
2173
+ /** Application-defined custom fields of the account. */
2174
+ custom_fields?: object;
2184
2175
  /**
2185
2176
  * The display name of the account.
2186
2177
  * @format text
@@ -3930,6 +3921,11 @@ export type Conversation = AtomBase & {
3930
3921
  /** SLA summary for the object. */
3931
3922
  sla_summary?: ArchetypeSlaSummary;
3932
3923
  sla_tracker?: SlaTrackerSummary;
3924
+ /**
3925
+ * Source channel for the conversation.
3926
+ * @format text
3927
+ */
3928
+ source_channel?: string;
3933
3929
  /** Describes the current stage of a work item. */
3934
3930
  stage?: LegacyStage;
3935
3931
  /**
@@ -4035,6 +4031,11 @@ export interface ConversationsCreateRequest {
4035
4031
  * @format text
4036
4032
  */
4037
4033
  source_channel?: string;
4034
+ /**
4035
+ * Source channel ID of the conversation.
4036
+ * @format id
4037
+ */
4038
+ source_channel_v2?: string;
4038
4039
  /** Sets an object's initial stage. */
4039
4040
  stage?: StageInit;
4040
4041
  /** Tags associated with the conversation. */
@@ -4151,6 +4152,11 @@ export interface ConversationsExportRequest {
4151
4152
  sla_summary?: SlaSummaryFilter;
4152
4153
  /** Filters for conversations with any of the provided source channels. */
4153
4154
  source_channel?: string[];
4155
+ /**
4156
+ * Filters for conversations that are associated with the source
4157
+ * channel.
4158
+ */
4159
+ source_channel_v2?: string[];
4154
4160
  /**
4155
4161
  * Filters for conversations with any of the provided source channels.
4156
4162
  * @deprecated
@@ -4270,6 +4276,11 @@ export interface ConversationsListRequest {
4270
4276
  sla_summary?: SlaSummaryFilter;
4271
4277
  /** Filters for conversations with any of the provided source channels. */
4272
4278
  source_channel?: string[];
4279
+ /**
4280
+ * Filters for conversations that are associated with the source
4281
+ * channel.
4282
+ */
4283
+ source_channel_v2?: string[];
4273
4284
  /**
4274
4285
  * Filters for conversations with any of the provided source channels.
4275
4286
  * @deprecated
@@ -4355,6 +4366,11 @@ export interface ConversationsUpdateRequest {
4355
4366
  members?: ConversationsUpdateRequestMembers;
4356
4367
  metadata?: ConversationsUpdateRequestMetadata;
4357
4368
  owned_by?: ConversationsUpdateRequestOwnedBy;
4369
+ /**
4370
+ * Source channel ID of the conversation.
4371
+ * @format id
4372
+ */
4373
+ source_channel_v2?: string;
4358
4374
  /** Updates an object's stage. */
4359
4375
  stage?: StageUpdate;
4360
4376
  /**
@@ -4425,6 +4441,19 @@ export interface ConversationsUpdateRequestUserSessions {
4425
4441
  export interface ConversationsUpdateResponse {
4426
4442
  conversation: Conversation;
4427
4443
  }
4444
+ /**
4445
+ * conversations-vista-group-item
4446
+ * Represents a nested conversations vista group object.
4447
+ */
4448
+ export type ConversationsVistaGroupItem = VistaGroupBase & {
4449
+ /** Type of conversations vista group item. */
4450
+ type: ConversationsVistaGroupItemType;
4451
+ };
4452
+ /** Type of conversations vista group item. */
4453
+ export declare enum ConversationsVistaGroupItemType {
4454
+ Curated = "curated",
4455
+ Dynamic = "dynamic"
4456
+ }
4428
4457
  /**
4429
4458
  * create-association
4430
4459
  * Association of Rev users with Rev orgs or accounts. A Rev user can be
@@ -4829,9 +4858,17 @@ export interface CreateWeeklyOrgScheduleInterval {
4829
4858
  */
4830
4859
  to: number;
4831
4860
  }
4861
+ /**
4862
+ * curated-vista
4863
+ * Static collection of DevRev objects.
4864
+ */
4865
+ export type CuratedVista = VistaBase & {
4866
+ /** Item list to store a curated list of DevRev objects. */
4867
+ items?: AtomSummary[];
4868
+ };
4832
4869
  /**
4833
4870
  * curated-vista-summary
4834
- * Static collection of Devrev objects.
4871
+ * Static collection of DevRev objects.
4835
4872
  */
4836
4873
  export type CuratedVistaSummary = VistaBaseSummary;
4837
4874
  /**
@@ -6881,12 +6918,6 @@ export type DirectoriesDeleteResponse = object;
6881
6918
  * The request to get a directory.
6882
6919
  */
6883
6920
  export interface DirectoriesGetRequest {
6884
- /**
6885
- * Optional Dev Org ID for the unauthenticated user.
6886
- * @format id
6887
- * @example "DEV-AbCdEfGh"
6888
- */
6889
- dev_org?: string;
6890
6921
  /**
6891
6922
  * The ID of the requested directory.
6892
6923
  * @format id
@@ -6916,12 +6947,6 @@ export interface DirectoriesListRequest {
6916
6947
  * @format text
6917
6948
  */
6918
6949
  cursor?: string;
6919
- /**
6920
- * Optional Dev Org ID for the unauthenticated user.
6921
- * @format id
6922
- * @example "DEV-AbCdEfGh"
6923
- */
6924
- dev_org?: string;
6925
6950
  /**
6926
6951
  * The maximum number of directories to return. The default is '50'.
6927
6952
  * @format int32
@@ -7140,9 +7165,35 @@ export interface DonutWidgetVisualization {
7140
7165
  * Information to define dynamic groups.
7141
7166
  */
7142
7167
  export type DynamicGroupInfo = object;
7168
+ /**
7169
+ * dynamic-vista
7170
+ * Dynamic collection of DevRev objects, all adhering to a specific
7171
+ * filter.
7172
+ */
7173
+ export type DynamicVista = VistaBase & {
7174
+ /** Type of DevRev object for which the vista is applicable. */
7175
+ filter_type: DynamicVistaFilterType;
7176
+ };
7177
+ /** Type of DevRev object for which the vista is applicable. */
7178
+ export declare enum DynamicVistaFilterType {
7179
+ Accounts = "accounts",
7180
+ Articles = "articles",
7181
+ Conversations = "conversations",
7182
+ Credits = "credits",
7183
+ CustomObjects = "custom_objects",
7184
+ DevUsers = "dev_users",
7185
+ Incidents = "incidents",
7186
+ Invoices = "invoices",
7187
+ Meetings = "meetings",
7188
+ Parts = "parts",
7189
+ Quotes = "quotes",
7190
+ RevOrgs = "rev_orgs",
7191
+ RevUsers = "rev_users",
7192
+ Works = "works"
7193
+ }
7143
7194
  /**
7144
7195
  * dynamic-vista-summary
7145
- * Dynamic collection of Devrev objects, all adhering to a specific
7196
+ * Dynamic collection of DevRev objects, all adhering to a specific
7146
7197
  * filter.
7147
7198
  */
7148
7199
  export type DynamicVistaSummary = VistaBaseSummary;
@@ -9041,6 +9092,11 @@ export declare enum GroupIngestionSource {
9041
9092
  Airdrop = "airdrop",
9042
9093
  Scim = "scim"
9043
9094
  }
9095
+ /** Type of the vista group item object. */
9096
+ export declare enum GroupItemType {
9097
+ Curated = "curated",
9098
+ Dynamic = "dynamic"
9099
+ }
9044
9100
  /** Type of the members in the group. */
9045
9101
  export declare enum GroupMemberType {
9046
9102
  DevUser = "dev_user",
@@ -9178,6 +9234,22 @@ export declare enum GroupType {
9178
9234
  Dynamic = "dynamic",
9179
9235
  Static = "static"
9180
9236
  }
9237
+ /**
9238
+ * grouped-vista
9239
+ * Represents a group of multiple vistas as a single unit.
9240
+ */
9241
+ export type GroupedVista = VistaBase & {
9242
+ /** Type of DevRev object for which the grouped vista is applicable. */
9243
+ filter_type: GroupedVistaFilterType;
9244
+ /** Denotes the use case of the grouped vista. */
9245
+ flavor?: GroupedVistaFlavor;
9246
+ };
9247
+ /** Type of DevRev object for which the grouped vista is applicable. */
9248
+ export declare enum GroupedVistaFilterType {
9249
+ Conversations = "conversations",
9250
+ Parts = "parts",
9251
+ Works = "works"
9252
+ }
9181
9253
  /** Denotes the use case of the grouped vista. */
9182
9254
  export declare enum GroupedVistaFlavor {
9183
9255
  Nnl = "nnl",
@@ -12516,6 +12588,19 @@ export interface PartsUpdateRequestTags {
12516
12588
  export interface PartsUpdateResponse {
12517
12589
  part: Part;
12518
12590
  }
12591
+ /**
12592
+ * parts-vista-group-item
12593
+ * Represents a nested parts vista group object.
12594
+ */
12595
+ export type PartsVistaGroupItem = VistaGroupBase & {
12596
+ /** Type of parts vista group item. */
12597
+ type: PartsVistaGroupItemType;
12598
+ };
12599
+ /** Type of parts vista group item. */
12600
+ export declare enum PartsVistaGroupItemType {
12601
+ Curated = "curated",
12602
+ Dynamic = "dynamic"
12603
+ }
12519
12604
  /**
12520
12605
  * pie-visualization-x-axis
12521
12606
  * The X-axis for a pie visualization.
@@ -13175,6 +13260,7 @@ export type RevOrg = OrgBase & {
13175
13260
  * @format text
13176
13261
  */
13177
13262
  external_ref?: string;
13263
+ primary_rev_org?: OrgSummary;
13178
13264
  /**
13179
13265
  * Stock schema fragment.
13180
13266
  * @format id
@@ -19221,6 +19307,7 @@ export type UserBase = AtomBase & {
19221
19307
  full_name?: string;
19222
19308
  /** Phone numbers of the user. */
19223
19309
  phone_numbers?: string[];
19310
+ primary_identity?: UserSummary;
19224
19311
  /** State of the user. */
19225
19312
  state?: UserState;
19226
19313
  };
@@ -19323,6 +19410,26 @@ export interface ViewOverride {
19323
19410
  */
19324
19411
  view_name?: string;
19325
19412
  }
19413
+ /**
19414
+ * vista
19415
+ * Represents a collection of DevRev objects.
19416
+ */
19417
+ export type Vista = (CuratedVista | DynamicVista | GroupedVista) & {
19418
+ /** Type of vista object. */
19419
+ type: VistaType;
19420
+ };
19421
+ /** vista-base */
19422
+ export type VistaBase = AtomBase & {
19423
+ /** Boolean to specify whether it's a default Vista or not. */
19424
+ is_default?: boolean;
19425
+ /**
19426
+ * Name of the vista.
19427
+ * @format text
19428
+ */
19429
+ name: string;
19430
+ /** Users and groups associated with vista. */
19431
+ shared_with?: SharedWithMembership[];
19432
+ };
19326
19433
  /** vista-base-summary */
19327
19434
  export type VistaBaseSummary = AtomBaseSummary & {
19328
19435
  /**
@@ -19331,6 +19438,80 @@ export type VistaBaseSummary = AtomBaseSummary & {
19331
19438
  */
19332
19439
  name: string;
19333
19440
  };
19441
+ /** Denotes the use case of the vista. */
19442
+ export declare enum VistaFlavor {
19443
+ Nnl = "nnl",
19444
+ SprintBoard = "sprint_board",
19445
+ SupportInbox = "support_inbox"
19446
+ }
19447
+ /**
19448
+ * vista-group
19449
+ * Represents a vista group item.
19450
+ */
19451
+ export type VistaGroup = (ConversationsVistaGroupItem | PartsVistaGroupItem | WorksVistaGroupItem) & {
19452
+ /** Type of DevRev object for which the grouped vista is applicable. */
19453
+ object_type: GroupedVistaFilterType;
19454
+ };
19455
+ /** vista-group-base */
19456
+ export interface VistaGroupBase {
19457
+ /**
19458
+ * Timestamp when the vista group item ends.
19459
+ * @format date-time
19460
+ * @example "2023-01-01T12:00:00.000Z"
19461
+ */
19462
+ end_date?: string;
19463
+ /**
19464
+ * Globally unique object ID.
19465
+ * @format id
19466
+ */
19467
+ id: string;
19468
+ /**
19469
+ * Name of the group.
19470
+ * @format text
19471
+ */
19472
+ name: string;
19473
+ parent?: VistaGroupBaseVistaParentComposite;
19474
+ /**
19475
+ * Timestamp when the vista group item starts.
19476
+ * @format date-time
19477
+ * @example "2023-01-01T12:00:00.000Z"
19478
+ */
19479
+ start_date?: string;
19480
+ /** Defines the state of the group item. */
19481
+ state?: VistaGroupItemState;
19482
+ }
19483
+ /** vista-group-base-vista-parent-composite */
19484
+ export interface VistaGroupBaseVistaParentComposite {
19485
+ /**
19486
+ * Type of the parent vista.
19487
+ * @format text
19488
+ */
19489
+ type: string;
19490
+ /**
19491
+ * Human-readable object ID unique to the Dev organization.
19492
+ * @format text
19493
+ */
19494
+ display_id: string;
19495
+ /** Denotes the use case of the vista. */
19496
+ flavor?: VistaFlavor;
19497
+ /**
19498
+ * Parent vista ID.
19499
+ * @format id
19500
+ * @example "VISTA-12345"
19501
+ */
19502
+ id: string;
19503
+ /**
19504
+ * Name of the parent vista.
19505
+ * @format text
19506
+ */
19507
+ name: string;
19508
+ }
19509
+ /** Type of DevRev object for which the vista group item is applicable. */
19510
+ export declare enum VistaGroupItemGroupObjectType {
19511
+ Conversation = "conversation",
19512
+ Part = "part",
19513
+ Work = "work"
19514
+ }
19334
19515
  /** Defines the state of the group item. */
19335
19516
  export declare enum VistaGroupItemState {
19336
19517
  Active = "active",
@@ -19393,6 +19574,212 @@ export declare enum VistaType {
19393
19574
  Dynamic = "dynamic",
19394
19575
  Grouped = "grouped"
19395
19576
  }
19577
+ /**
19578
+ * vistas-delete-request
19579
+ * The request to delete a vista.
19580
+ */
19581
+ export interface VistasDeleteRequest {
19582
+ /**
19583
+ * The ID of the vista to delete.
19584
+ * @format id
19585
+ * @example "VISTA-12345"
19586
+ */
19587
+ id: string;
19588
+ }
19589
+ /**
19590
+ * vistas-delete-response
19591
+ * The response when deleting a vista.
19592
+ */
19593
+ export type VistasDeleteResponse = object;
19594
+ /**
19595
+ * vistas-get-request
19596
+ * The request to get a vista's information.
19597
+ */
19598
+ export interface VistasGetRequest {
19599
+ /**
19600
+ * The vista's ID.
19601
+ * @format id
19602
+ * @example "VISTA-12345"
19603
+ */
19604
+ id: string;
19605
+ }
19606
+ /**
19607
+ * vistas-get-response
19608
+ * The response to getting a vista's information.
19609
+ */
19610
+ export interface VistasGetResponse {
19611
+ /** Represents a collection of DevRev objects. */
19612
+ vista: Vista;
19613
+ }
19614
+ /** vistas-groups-delete-request */
19615
+ export interface VistasGroupsDeleteRequest {
19616
+ /**
19617
+ * ID of the vista group item to be deleted.
19618
+ * @format id
19619
+ */
19620
+ id: string;
19621
+ }
19622
+ /** vistas-groups-delete-response */
19623
+ export type VistasGroupsDeleteResponse = object;
19624
+ /**
19625
+ * vistas-groups-get-request
19626
+ * The request to get a vista group item's information.
19627
+ */
19628
+ export interface VistasGroupsGetRequest {
19629
+ /**
19630
+ * The vista group item's ID.
19631
+ * @format id
19632
+ */
19633
+ id: string;
19634
+ }
19635
+ /**
19636
+ * vistas-groups-get-response
19637
+ * The response to getting a vista group item's information.
19638
+ */
19639
+ export interface VistasGroupsGetResponse {
19640
+ /** Represents a vista group item. */
19641
+ vista_group: VistaGroup;
19642
+ }
19643
+ /** vistas-groups-list-request */
19644
+ export interface VistasGroupsListRequest {
19645
+ /** Filters for vista group items of the specific type. */
19646
+ type?: GroupItemType[];
19647
+ /**
19648
+ * Filter for vistas group item created by any of these users.
19649
+ * @example ["DEVU-12345"]
19650
+ */
19651
+ created_by?: string[];
19652
+ /** Provides ways to specify date ranges on objects. */
19653
+ created_date?: DateFilter;
19654
+ /**
19655
+ * The cursor to resume iteration from. If not provided, then
19656
+ * iteration starts from the beginning.
19657
+ * @format text
19658
+ */
19659
+ cursor?: string;
19660
+ /** Provides ways to specify date ranges on objects. */
19661
+ end_date?: DateFilter;
19662
+ /** Filters for vista group items of the specific group object type. */
19663
+ group_object_type?: VistaGroupItemGroupObjectType[];
19664
+ /**
19665
+ * The request to get information about a list of vista groups.
19666
+ * @format int32
19667
+ */
19668
+ limit?: number;
19669
+ /**
19670
+ * The iteration mode to use. If "after", then entries after the provided
19671
+ * cursor will be returned, or if no cursor is provided, then from the
19672
+ * beginning. If "before", then entries before the provided cursor will be
19673
+ * returned, or if no cursor is provided, then from the end. Entries will
19674
+ * always be returned in the specified sort-by order.
19675
+ */
19676
+ mode?: ListMode;
19677
+ /** Provides ways to specify date ranges on objects. */
19678
+ modified_date?: DateFilter;
19679
+ /**
19680
+ * Parent ID of the vista group item.
19681
+ * @example ["VISTA-12345"]
19682
+ */
19683
+ parent_id?: string[];
19684
+ /** Comma-separated fields to sort the objects by. */
19685
+ sort_by?: string[];
19686
+ /** Provides ways to specify date ranges on objects. */
19687
+ start_date?: DateFilter;
19688
+ /** Denotes the state of the vista group item. */
19689
+ state?: VistaGroupItemState[];
19690
+ }
19691
+ /**
19692
+ * vistas-groups-list-response
19693
+ * The response to listing the vistas group items.
19694
+ */
19695
+ export interface VistasGroupsListResponse {
19696
+ /**
19697
+ * The cursor used to iterate subsequent results in accordance to the
19698
+ * sort order. If not set, then no later elements exist.
19699
+ * @format text
19700
+ */
19701
+ next_cursor?: string;
19702
+ /**
19703
+ * The cursor used to iterate preceding results in accordance to the
19704
+ * sort order. If not set, then no prior elements exist.
19705
+ * @format text
19706
+ */
19707
+ prev_cursor?: string;
19708
+ /** List of vista group items. */
19709
+ vista_group?: VistaGroup[];
19710
+ }
19711
+ /**
19712
+ * vistas-list-request
19713
+ * The request to get information about a list of vistas.
19714
+ */
19715
+ export interface VistasListRequest {
19716
+ /** Filters for vistas of the specific type. */
19717
+ type?: VistaType[];
19718
+ /**
19719
+ * Filters for vistas created by any of these users.
19720
+ * @example ["DEVU-12345"]
19721
+ */
19722
+ created_by?: string[];
19723
+ /**
19724
+ * The cursor to resume iteration from. If not provided, then
19725
+ * iteration starts from the beginning.
19726
+ * @format text
19727
+ */
19728
+ cursor?: string;
19729
+ /** Filters for vistas of specific flavor. */
19730
+ flavor?: GroupedVistaFlavor[];
19731
+ /** Whether the default vistas should be fetched or not. */
19732
+ is_default?: boolean;
19733
+ /**
19734
+ * The maximum number of vistas to return. The default is '50', the
19735
+ * maximum is '100'.
19736
+ * @format int32
19737
+ */
19738
+ limit?: number;
19739
+ /**
19740
+ * Filters for vistas accessible to the input members.
19741
+ * @example ["DEVU-12345"]
19742
+ */
19743
+ members?: string[];
19744
+ /**
19745
+ * The iteration mode to use. If "after", then entries after the provided
19746
+ * cursor will be returned, or if no cursor is provided, then from the
19747
+ * beginning. If "before", then entries before the provided cursor will be
19748
+ * returned, or if no cursor is provided, then from the end. Entries will
19749
+ * always be returned in the specified sort-by order.
19750
+ */
19751
+ mode?: ListMode;
19752
+ /** Filters for vistas of specific object types like works, parts etc. */
19753
+ object_type?: DynamicVistaFilterType[];
19754
+ /** Filter for vistas accessible to the input members. */
19755
+ shared_with?: SharedWithMembershipFilter[];
19756
+ /** Denotes whether to skip items of vista_group_item in response. */
19757
+ skip_items?: boolean;
19758
+ /** Fields to sort the vistas by and the direction to sort them. */
19759
+ sort_by?: string[];
19760
+ /** Denotes the state of the vista group item. */
19761
+ state?: VistaGroupItemState[];
19762
+ }
19763
+ /**
19764
+ * vistas-list-response
19765
+ * The response to listing the vistas.
19766
+ */
19767
+ export interface VistasListResponse {
19768
+ /**
19769
+ * The cursor used to iterate subsequent results in accordance to the
19770
+ * sort order. If not set, then no later elements exist.
19771
+ * @format text
19772
+ */
19773
+ next_cursor?: string;
19774
+ /**
19775
+ * The cursor used to iterate preceding results in accordance to the
19776
+ * sort order. If not set, then no prior elements exist.
19777
+ * @format text
19778
+ */
19779
+ prev_cursor?: string;
19780
+ /** The list of vistas. */
19781
+ vistas: Vista[];
19782
+ }
19396
19783
  /**
19397
19784
  * visualization-axis-color
19398
19785
  * The color for an axis. This can be a single color or a gradient.
@@ -20858,6 +21245,11 @@ export interface WorksCreateRequestTicket {
20858
21245
  * @format text
20859
21246
  */
20860
21247
  source_channel?: string;
21248
+ /**
21249
+ * Source channel ID of the ticket.
21250
+ * @format id
21251
+ */
21252
+ source_channel_v2?: string;
20861
21253
  }
20862
21254
  /** works-create-response */
20863
21255
  export interface WorksCreateResponse {
@@ -21014,6 +21406,11 @@ export interface WorksFilterTicket {
21014
21406
  sla_summary?: SlaSummaryFilter;
21015
21407
  /** Filters for tickets with any of the provided source channels. */
21016
21408
  source_channel?: string[];
21409
+ /**
21410
+ * Filters for tickets that are associated with any of the source
21411
+ * channels.
21412
+ */
21413
+ source_channel_v2?: string[];
21017
21414
  /** Filters for tickets with any of the provided subtypes. */
21018
21415
  subtype?: string[];
21019
21416
  /** The filter for survey aggregation. */
@@ -21492,6 +21889,11 @@ export interface WorksUpdateRequestTicket {
21492
21889
  sentiment_summary?: string;
21493
21890
  /** Severity of the ticket. */
21494
21891
  severity?: TicketSeverity;
21892
+ /**
21893
+ * Updates the source channel of the ticket.
21894
+ * @format id
21895
+ */
21896
+ source_channel_v2?: string | null;
21495
21897
  }
21496
21898
  /** works-update-request-ticket-channels */
21497
21899
  export interface WorksUpdateRequestTicketChannels {
@@ -21502,6 +21904,19 @@ export interface WorksUpdateRequestTicketChannels {
21502
21904
  export interface WorksUpdateResponse {
21503
21905
  work: Work;
21504
21906
  }
21907
+ /**
21908
+ * works-vista-group-item
21909
+ * Represents a nested works vista group object.
21910
+ */
21911
+ export type WorksVistaGroupItem = VistaGroupBase & {
21912
+ /** Type of works vista group item. */
21913
+ type: WorksVistaGroupItemType;
21914
+ };
21915
+ /** Type of works vista group item. */
21916
+ export declare enum WorksVistaGroupItemType {
21917
+ Curated = "curated",
21918
+ Dynamic = "dynamic"
21919
+ }
21505
21920
  import { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from 'axios';
21506
21921
  export type QueryParamsType = Record<string | number, any>;
21507
21922
  export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'params' | 'url' | 'responseType'> {
@@ -21981,12 +22396,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
21981
22396
  * @example "ARTICLE-12345"
21982
22397
  */
21983
22398
  id: string;
21984
- /**
21985
- * Optional Dev Org ID for the unauthenticated user.
21986
- * @format id
21987
- * @example "DEV-AbCdEfGh"
21988
- */
21989
- dev_org?: string;
21990
22399
  }, params?: RequestParams) => Promise<AxiosResponse<ArticlesGetResponse, any>>;
21991
22400
  /**
21992
22401
  * @description Gets an article.
@@ -22036,12 +22445,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
22036
22445
  * @format text
22037
22446
  */
22038
22447
  cursor?: string;
22039
- /**
22040
- * Optional Dev Org ID for the unauthenticated user.
22041
- * @format id
22042
- * @example "DEV-AbCdEfGh"
22043
- */
22044
- dev_org?: string;
22045
22448
  /**
22046
22449
  * The maximum number of articles to return. The default is '50'.
22047
22450
  * @format int32
@@ -22888,6 +23291,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
22888
23291
  'sla_summary.stage'?: SlaSummaryStage[];
22889
23292
  /** Filters for conversations with any of the provided source channels. */
22890
23293
  source_channel?: string[];
23294
+ /**
23295
+ * Filters for conversations that are associated with the source
23296
+ * channel.
23297
+ */
23298
+ source_channel_v2?: string[];
22891
23299
  /**
22892
23300
  * Filters for conversations with any of the provided source channels.
22893
23301
  * @deprecated
@@ -23042,6 +23450,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
23042
23450
  'sla_summary.stage'?: SlaSummaryStage[];
23043
23451
  /** Filters for conversations with any of the provided source channels. */
23044
23452
  source_channel?: string[];
23453
+ /**
23454
+ * Filters for conversations that are associated with the source
23455
+ * channel.
23456
+ */
23457
+ source_channel_v2?: string[];
23045
23458
  /**
23046
23459
  * Filters for conversations with any of the provided source channels.
23047
23460
  * @deprecated
@@ -23577,12 +23990,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
23577
23990
  * @format id
23578
23991
  */
23579
23992
  id: string;
23580
- /**
23581
- * Optional Dev Org ID for the unauthenticated user.
23582
- * @format id
23583
- * @example "DEV-AbCdEfGh"
23584
- */
23585
- dev_org?: string;
23586
23993
  }, params?: RequestParams) => Promise<AxiosResponse<DirectoriesGetResponse, any>>;
23587
23994
  /**
23588
23995
  * @description Gets the specified directory.
@@ -23615,12 +24022,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
23615
24022
  * @format text
23616
24023
  */
23617
24024
  cursor?: string;
23618
- /**
23619
- * Optional Dev Org ID for the unauthenticated user.
23620
- * @format id
23621
- * @example "DEV-AbCdEfGh"
23622
- */
23623
- dev_org?: string;
23624
24025
  /**
23625
24026
  * The maximum number of directories to return. The default is '50'.
23626
24027
  * @format int32
@@ -27773,6 +28174,206 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
27773
28174
  * @secure
27774
28175
  */
27775
28176
  uomsUpdate: (data: UomsUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<UomsUpdateResponse, any>>;
28177
+ /**
28178
+ * @description Deletes the requested vista.
28179
+ *
28180
+ * @tags vistas
28181
+ * @name VistasDelete
28182
+ * @summary Delete Vista
28183
+ * @request POST:/vistas.delete
28184
+ * @secure
28185
+ */
28186
+ vistasDelete: (data: VistasDeleteRequest, params?: RequestParams) => Promise<AxiosResponse<object, any>>;
28187
+ /**
28188
+ * @description Gets the requested vistas's information.
28189
+ *
28190
+ * @tags vistas
28191
+ * @name VistasGet
28192
+ * @summary Get Vista
28193
+ * @request GET:/vistas.get
28194
+ * @secure
28195
+ */
28196
+ vistasGet: (query: {
28197
+ /**
28198
+ * The vista's ID.
28199
+ * @format id
28200
+ * @example "VISTA-12345"
28201
+ */
28202
+ id: string;
28203
+ }, params?: RequestParams) => Promise<AxiosResponse<VistasGetResponse, any>>;
28204
+ /**
28205
+ * @description Gets the requested vistas's information.
28206
+ *
28207
+ * @tags vistas
28208
+ * @name VistasGetPost
28209
+ * @summary Get Vista (POST)
28210
+ * @request POST:/vistas.get
28211
+ * @secure
28212
+ */
28213
+ vistasGetPost: (data: VistasGetRequest, params?: RequestParams) => Promise<AxiosResponse<VistasGetResponse, any>>;
28214
+ /**
28215
+ * @description Deletes the requested vista group item
28216
+ *
28217
+ * @tags vistas
28218
+ * @name VistasGroupsDelete
28219
+ * @summary Delete Vistas Group
28220
+ * @request POST:/vistas.groups.delete
28221
+ * @secure
28222
+ */
28223
+ vistasGroupsDelete: (data: VistasGroupsDeleteRequest, params?: RequestParams) => Promise<AxiosResponse<object, any>>;
28224
+ /**
28225
+ * @description Gets the requested vista group item's information.
28226
+ *
28227
+ * @tags vistas
28228
+ * @name VistasGroupsGet
28229
+ * @summary Get Vistas Group
28230
+ * @request GET:/vistas.groups.get
28231
+ * @secure
28232
+ */
28233
+ vistasGroupsGet: (query: {
28234
+ /**
28235
+ * The vista group item's ID.
28236
+ * @format id
28237
+ */
28238
+ id: string;
28239
+ }, params?: RequestParams) => Promise<AxiosResponse<VistasGroupsGetResponse, any>>;
28240
+ /**
28241
+ * @description Gets the requested vista group item's information.
28242
+ *
28243
+ * @tags vistas
28244
+ * @name VistasGroupsGetPost
28245
+ * @summary Get Vistas Group (POST)
28246
+ * @request POST:/vistas.groups.get
28247
+ * @secure
28248
+ */
28249
+ vistasGroupsGetPost: (data: VistasGroupsGetRequest, params?: RequestParams) => Promise<AxiosResponse<VistasGroupsGetResponse, any>>;
28250
+ /**
28251
+ * @description Lists the available vista group items.
28252
+ *
28253
+ * @tags vistas
28254
+ * @name VistasGroupsList
28255
+ * @summary List Vistas Groups
28256
+ * @request GET:/vistas.groups.list
28257
+ * @secure
28258
+ */
28259
+ vistasGroupsList: (query?: {
28260
+ /**
28261
+ * Filter for vistas group item created by any of these users.
28262
+ * @example ["DEVU-12345"]
28263
+ */
28264
+ created_by?: string[];
28265
+ /**
28266
+ * The cursor to resume iteration from. If not provided, then iteration
28267
+ * starts from the beginning.
28268
+ * @format text
28269
+ */
28270
+ cursor?: string;
28271
+ /** Filters for vista group items of the specific group object type. */
28272
+ group_object_type?: VistaGroupItemGroupObjectType[];
28273
+ /**
28274
+ * The request to get information about a list of vista groups.
28275
+ * @format int32
28276
+ */
28277
+ limit?: number;
28278
+ /**
28279
+ * The iteration mode to use, otherwise if not set, then "after" is
28280
+ * used.
28281
+ */
28282
+ mode?: ListMode;
28283
+ /**
28284
+ * Parent ID of the vista group item.
28285
+ * @example ["VISTA-12345"]
28286
+ */
28287
+ parent_id?: string[];
28288
+ /** Comma-separated fields to sort the objects by. */
28289
+ sort_by?: string[];
28290
+ /** Denotes the state of the vista group item. */
28291
+ state?: VistaGroupItemState[];
28292
+ /** Filters for vista group items of the specific type. */
28293
+ type?: GroupItemType[];
28294
+ }, params?: RequestParams) => Promise<AxiosResponse<VistasGroupsListResponse, any>>;
28295
+ /**
28296
+ * @description Lists the available vista group items.
28297
+ *
28298
+ * @tags vistas
28299
+ * @name VistasGroupsListPost
28300
+ * @summary List Vistas Groups (POST)
28301
+ * @request POST:/vistas.groups.list
28302
+ * @secure
28303
+ */
28304
+ vistasGroupsListPost: (data: VistasGroupsListRequest, params?: RequestParams) => Promise<AxiosResponse<VistasGroupsListResponse, any>>;
28305
+ /**
28306
+ * @description Lists the available vistas.
28307
+ *
28308
+ * @tags vistas
28309
+ * @name VistasList
28310
+ * @summary List Vistas
28311
+ * @request GET:/vistas.list
28312
+ * @secure
28313
+ */
28314
+ vistasList: (query?: {
28315
+ /**
28316
+ * Filters for vistas created by any of these users.
28317
+ * @example ["DEVU-12345"]
28318
+ */
28319
+ created_by?: string[];
28320
+ /**
28321
+ * The cursor to resume iteration from. If not provided, then iteration
28322
+ * starts from the beginning.
28323
+ * @format text
28324
+ */
28325
+ cursor?: string;
28326
+ /** Filters for vistas of specific flavor. */
28327
+ flavor?: GroupedVistaFlavor[];
28328
+ /** Whether the default vistas should be fetched or not. */
28329
+ is_default?: boolean;
28330
+ /**
28331
+ * The maximum number of vistas to return. The default is '50', the
28332
+ * maximum is '100'.
28333
+ * @format int32
28334
+ */
28335
+ limit?: number;
28336
+ /**
28337
+ * Filters for vistas accessible to the input members.
28338
+ * @example ["DEVU-12345"]
28339
+ */
28340
+ members?: string[];
28341
+ /**
28342
+ * The iteration mode to use, otherwise if not set, then "after" is
28343
+ * used.
28344
+ */
28345
+ mode?: ListMode;
28346
+ /** Filters for vistas of specific object types like works, parts etc. */
28347
+ object_type?: DynamicVistaFilterType[];
28348
+ /**
28349
+ * ID of the group/member with whom the item is shared.
28350
+ * @format id
28351
+ */
28352
+ 'shared_with.member'?: string;
28353
+ /**
28354
+ * Role ID of the group/member with whom the item is shared.
28355
+ * @format id
28356
+ */
28357
+ 'shared_with.role'?: string;
28358
+ /** Denotes whether to skip items of vista_group_item in response. */
28359
+ skip_items?: boolean;
28360
+ /** Fields to sort the vistas by and the direction to sort them. */
28361
+ sort_by?: string[];
28362
+ /** Denotes the state of the vista group item. */
28363
+ state?: VistaGroupItemState[];
28364
+ /** Filters for vistas of the specific type. */
28365
+ type?: VistaType[];
28366
+ }, params?: RequestParams) => Promise<AxiosResponse<VistasListResponse, any>>;
28367
+ /**
28368
+ * @description Lists the available vistas.
28369
+ *
28370
+ * @tags vistas
28371
+ * @name VistasListPost
28372
+ * @summary List Vistas (POST)
28373
+ * @request POST:/vistas.list
28374
+ * @secure
28375
+ */
28376
+ vistasListPost: (data: VistasListRequest, params?: RequestParams) => Promise<AxiosResponse<VistasListResponse, any>>;
27776
28377
  /**
27777
28378
  * @description Change state of a web crawler job to pause or resume it back to running.
27778
28379
  *
@@ -28137,6 +28738,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
28137
28738
  'ticket.sla_summary.stage'?: SlaSummaryStage[];
28138
28739
  /** Filters for tickets with any of the provided source channels. */
28139
28740
  'ticket.source_channel'?: string[];
28741
+ /**
28742
+ * Filters for tickets that are associated with any of the source
28743
+ * channels.
28744
+ */
28745
+ 'ticket.source_channel_v2'?: string[];
28140
28746
  /** Filters for tickets with any of the provided subtypes. */
28141
28747
  'ticket.subtype'?: string[];
28142
28748
  /** Filters for work of the provided types. */
@@ -28321,6 +28927,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
28321
28927
  'ticket.sla_summary.stage'?: SlaSummaryStage[];
28322
28928
  /** Filters for tickets with any of the provided source channels. */
28323
28929
  'ticket.source_channel'?: string[];
28930
+ /**
28931
+ * Filters for tickets that are associated with any of the source
28932
+ * channels.
28933
+ */
28934
+ 'ticket.source_channel_v2'?: string[];
28324
28935
  /** Filters for tickets with any of the provided subtypes. */
28325
28936
  'ticket.subtype'?: string[];
28326
28937
  /** Filters for work of the provided types. */