@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.
@@ -21,6 +21,7 @@ export type Account = OrgBase & {
21
21
  external_refs?: string[];
22
22
  /** List of Dev user IDs owning this Account. */
23
23
  owned_by: UserSummary[];
24
+ primary_account?: AccountSummary;
24
25
  /**
25
26
  * The Tier of the corresponding Account.
26
27
  * @format text
@@ -755,12 +756,6 @@ export type ArticlesDeleteResponse = object;
755
756
  * The request to get an article.
756
757
  */
757
758
  export interface ArticlesGetRequest {
758
- /**
759
- * Optional Dev Org ID for the unauthenticated user.
760
- * @format id
761
- * @example "DEV-AbCdEfGh"
762
- */
763
- dev_org?: string;
764
759
  /**
765
760
  * The ID of the required article.
766
761
  * @format id
@@ -808,12 +803,6 @@ export interface ArticlesListRequest {
808
803
  * @format text
809
804
  */
810
805
  cursor?: string;
811
- /**
812
- * Optional Dev Org ID for the unauthenticated user.
813
- * @format id
814
- * @example "DEV-AbCdEfGh"
815
- */
816
- dev_org?: string;
817
806
  /**
818
807
  * The maximum number of articles to return. The default is '50'.
819
808
  * @format int32
@@ -1633,6 +1622,8 @@ export declare enum AuthTokenTokenType {
1633
1622
  * Carries account info.
1634
1623
  */
1635
1624
  export interface AuthTokensAccountTraits {
1625
+ /** Application-defined custom fields of the account. */
1626
+ custom_fields?: object;
1636
1627
  /**
1637
1628
  * The display name of the account.
1638
1629
  * @format text
@@ -2666,6 +2657,11 @@ export type Conversation = AtomBase & {
2666
2657
  /** SLA summary for the object. */
2667
2658
  sla_summary?: ArchetypeSlaSummary;
2668
2659
  sla_tracker?: SlaTrackerSummary;
2660
+ /**
2661
+ * Source channel for the conversation.
2662
+ * @format text
2663
+ */
2664
+ source_channel?: string;
2669
2665
  /** Describes the current stage of a work item. */
2670
2666
  stage?: LegacyStage;
2671
2667
  /** Tags associated with the object. */
@@ -2747,6 +2743,11 @@ export interface ConversationsCreateRequest {
2747
2743
  * @format text
2748
2744
  */
2749
2745
  source_channel?: string;
2746
+ /**
2747
+ * Source channel ID of the conversation.
2748
+ * @format id
2749
+ */
2750
+ source_channel_v2?: string;
2750
2751
  /** Sets an object's initial stage. */
2751
2752
  stage?: StageInit;
2752
2753
  /** Tags associated with the conversation. */
@@ -2895,6 +2896,11 @@ export interface ConversationsListRequest {
2895
2896
  sla_summary?: SlaSummaryFilter;
2896
2897
  /** Filters for conversations with any of the provided source channels. */
2897
2898
  source_channel?: string[];
2899
+ /**
2900
+ * Filters for conversations that are associated with the source
2901
+ * channel.
2902
+ */
2903
+ source_channel_v2?: string[];
2898
2904
  /**
2899
2905
  * Filters for conversations with any of the provided source channels.
2900
2906
  * @deprecated
@@ -2978,6 +2984,11 @@ export interface ConversationsUpdateRequest {
2978
2984
  members?: ConversationsUpdateRequestMembers;
2979
2985
  metadata?: ConversationsUpdateRequestMetadata;
2980
2986
  owned_by?: ConversationsUpdateRequestOwnedBy;
2987
+ /**
2988
+ * Source channel ID of the conversation.
2989
+ * @format id
2990
+ */
2991
+ source_channel_v2?: string;
2981
2992
  /** Updates an object's stage. */
2982
2993
  stage?: StageUpdate;
2983
2994
  /**
@@ -3048,6 +3059,19 @@ export interface ConversationsUpdateRequestUserSessions {
3048
3059
  export interface ConversationsUpdateResponse {
3049
3060
  conversation: Conversation;
3050
3061
  }
3062
+ /**
3063
+ * conversations-vista-group-item
3064
+ * Represents a nested conversations vista group object.
3065
+ */
3066
+ export type ConversationsVistaGroupItem = VistaGroupBase & {
3067
+ /** Type of conversations vista group item. */
3068
+ type: ConversationsVistaGroupItemType;
3069
+ };
3070
+ /** Type of conversations vista group item. */
3071
+ export declare enum ConversationsVistaGroupItemType {
3072
+ Curated = "curated",
3073
+ Dynamic = "dynamic"
3074
+ }
3051
3075
  /** create-command-action */
3052
3076
  export interface CreateCommandAction {
3053
3077
  action_details?: CreateCommandActionDetails;
@@ -3137,6 +3161,14 @@ export interface CreateWeeklyOrgScheduleInterval {
3137
3161
  */
3138
3162
  to: number;
3139
3163
  }
3164
+ /**
3165
+ * curated-vista
3166
+ * Static collection of DevRev objects.
3167
+ */
3168
+ export type CuratedVista = VistaBase & {
3169
+ /** Item list to store a curated list of DevRev objects. */
3170
+ items?: AtomSummary[];
3171
+ };
3140
3172
  /**
3141
3173
  * custom-schema-spec
3142
3174
  * Custom schemas described using identifiers. Each custom field in the
@@ -4125,12 +4157,6 @@ export type DirectoriesDeleteResponse = object;
4125
4157
  * The request to get a directory.
4126
4158
  */
4127
4159
  export interface DirectoriesGetRequest {
4128
- /**
4129
- * Optional Dev Org ID for the unauthenticated user.
4130
- * @format id
4131
- * @example "DEV-AbCdEfGh"
4132
- */
4133
- dev_org?: string;
4134
4160
  /**
4135
4161
  * The ID of the requested directory.
4136
4162
  * @format id
@@ -4160,12 +4186,6 @@ export interface DirectoriesListRequest {
4160
4186
  * @format text
4161
4187
  */
4162
4188
  cursor?: string;
4163
- /**
4164
- * Optional Dev Org ID for the unauthenticated user.
4165
- * @format id
4166
- * @example "DEV-AbCdEfGh"
4167
- */
4168
- dev_org?: string;
4169
4189
  /**
4170
4190
  * The maximum number of directories to return. The default is '50'.
4171
4191
  * @format int32
@@ -4308,6 +4328,32 @@ export type DirectorySummary = AtomBaseSummary;
4308
4328
  * Information to define dynamic groups.
4309
4329
  */
4310
4330
  export type DynamicGroupInfo = object;
4331
+ /**
4332
+ * dynamic-vista
4333
+ * Dynamic collection of DevRev objects, all adhering to a specific
4334
+ * filter.
4335
+ */
4336
+ export type DynamicVista = VistaBase & {
4337
+ /** Type of DevRev object for which the vista is applicable. */
4338
+ filter_type: DynamicVistaFilterType;
4339
+ };
4340
+ /** Type of DevRev object for which the vista is applicable. */
4341
+ export declare enum DynamicVistaFilterType {
4342
+ Accounts = "accounts",
4343
+ Articles = "articles",
4344
+ Conversations = "conversations",
4345
+ Credits = "credits",
4346
+ CustomObjects = "custom_objects",
4347
+ DevUsers = "dev_users",
4348
+ Incidents = "incidents",
4349
+ Invoices = "invoices",
4350
+ Meetings = "meetings",
4351
+ Parts = "parts",
4352
+ Quotes = "quotes",
4353
+ RevOrgs = "rev_orgs",
4354
+ RevUsers = "rev_users",
4355
+ Works = "works"
4356
+ }
4311
4357
  /** empty */
4312
4358
  export type Empty = object;
4313
4359
  /** enhancement */
@@ -5409,6 +5455,11 @@ export declare enum GroupIngestionSource {
5409
5455
  Airdrop = "airdrop",
5410
5456
  Scim = "scim"
5411
5457
  }
5458
+ /** Type of the vista group item object. */
5459
+ export declare enum GroupItemType {
5460
+ Curated = "curated",
5461
+ Dynamic = "dynamic"
5462
+ }
5412
5463
  /** Type of the members in the group. */
5413
5464
  export declare enum GroupMemberType {
5414
5465
  DevUser = "dev_user",
@@ -5532,6 +5583,28 @@ export declare enum GroupType {
5532
5583
  Dynamic = "dynamic",
5533
5584
  Static = "static"
5534
5585
  }
5586
+ /**
5587
+ * grouped-vista
5588
+ * Represents a group of multiple vistas as a single unit.
5589
+ */
5590
+ export type GroupedVista = VistaBase & {
5591
+ /** Type of DevRev object for which the grouped vista is applicable. */
5592
+ filter_type: GroupedVistaFilterType;
5593
+ /** Denotes the use case of the grouped vista. */
5594
+ flavor?: GroupedVistaFlavor;
5595
+ };
5596
+ /** Type of DevRev object for which the grouped vista is applicable. */
5597
+ export declare enum GroupedVistaFilterType {
5598
+ Conversations = "conversations",
5599
+ Parts = "parts",
5600
+ Works = "works"
5601
+ }
5602
+ /** Denotes the use case of the grouped vista. */
5603
+ export declare enum GroupedVistaFlavor {
5604
+ Nnl = "nnl",
5605
+ SprintBoard = "sprint_board",
5606
+ SupportInbox = "support_inbox"
5607
+ }
5535
5608
  /**
5536
5609
  * groups-create-request
5537
5610
  * A request to create a new group.
@@ -7449,6 +7522,19 @@ export interface PartsUpdateRequestTags {
7449
7522
  export interface PartsUpdateResponse {
7450
7523
  part: Part;
7451
7524
  }
7525
+ /**
7526
+ * parts-vista-group-item
7527
+ * Represents a nested parts vista group object.
7528
+ */
7529
+ export type PartsVistaGroupItem = VistaGroupBase & {
7530
+ /** Type of parts vista group item. */
7531
+ type: PartsVistaGroupItemType;
7532
+ };
7533
+ /** Type of parts vista group item. */
7534
+ export declare enum PartsVistaGroupItemType {
7535
+ Curated = "curated",
7536
+ Dynamic = "dynamic"
7537
+ }
7452
7538
  /** product */
7453
7539
  export type Product = PartBase;
7454
7540
  /** product-summary */
@@ -7607,6 +7693,7 @@ export type RevOrg = OrgBase & {
7607
7693
  * @format text
7608
7694
  */
7609
7695
  external_ref?: string;
7696
+ primary_rev_org?: OrgSummary;
7610
7697
  };
7611
7698
  /** rev-org-summary */
7612
7699
  export type RevOrgSummary = OrgBaseSummary;
@@ -10862,6 +10949,7 @@ export type UserBase = AtomBase & {
10862
10949
  full_name?: string;
10863
10950
  /** Phone numbers of the user. */
10864
10951
  phone_numbers?: string[];
10952
+ primary_identity?: UserSummary;
10865
10953
  /** State of the user. */
10866
10954
  state?: UserState;
10867
10955
  };
@@ -10916,6 +11004,100 @@ export declare enum UserType {
10916
11004
  ServiceAccount = "service_account",
10917
11005
  SysUser = "sys_user"
10918
11006
  }
11007
+ /**
11008
+ * vista
11009
+ * Represents a collection of DevRev objects.
11010
+ */
11011
+ export type Vista = (CuratedVista | DynamicVista | GroupedVista) & {
11012
+ /** Type of vista object. */
11013
+ type: VistaType;
11014
+ };
11015
+ /** vista-base */
11016
+ export type VistaBase = AtomBase & {
11017
+ /** Boolean to specify whether it's a default Vista or not. */
11018
+ is_default?: boolean;
11019
+ /**
11020
+ * Name of the vista.
11021
+ * @format text
11022
+ */
11023
+ name: string;
11024
+ /** Users and groups associated with vista. */
11025
+ shared_with?: SharedWithMembership[];
11026
+ };
11027
+ /** Denotes the use case of the vista. */
11028
+ export declare enum VistaFlavor {
11029
+ Nnl = "nnl",
11030
+ SprintBoard = "sprint_board",
11031
+ SupportInbox = "support_inbox"
11032
+ }
11033
+ /**
11034
+ * vista-group
11035
+ * Represents a vista group item.
11036
+ */
11037
+ export type VistaGroup = (ConversationsVistaGroupItem | PartsVistaGroupItem | WorksVistaGroupItem) & {
11038
+ /** Type of DevRev object for which the grouped vista is applicable. */
11039
+ object_type: GroupedVistaFilterType;
11040
+ };
11041
+ /** vista-group-base */
11042
+ export interface VistaGroupBase {
11043
+ /**
11044
+ * Timestamp when the vista group item ends.
11045
+ * @format date-time
11046
+ * @example "2023-01-01T12:00:00.000Z"
11047
+ */
11048
+ end_date?: string;
11049
+ /**
11050
+ * Globally unique object ID.
11051
+ * @format id
11052
+ */
11053
+ id: string;
11054
+ /**
11055
+ * Name of the group.
11056
+ * @format text
11057
+ */
11058
+ name: string;
11059
+ parent?: VistaGroupBaseVistaParentComposite;
11060
+ /**
11061
+ * Timestamp when the vista group item starts.
11062
+ * @format date-time
11063
+ * @example "2023-01-01T12:00:00.000Z"
11064
+ */
11065
+ start_date?: string;
11066
+ /** Defines the state of the group item. */
11067
+ state?: VistaGroupItemState;
11068
+ }
11069
+ /** vista-group-base-vista-parent-composite */
11070
+ export interface VistaGroupBaseVistaParentComposite {
11071
+ /**
11072
+ * Type of the parent vista.
11073
+ * @format text
11074
+ */
11075
+ type: string;
11076
+ /**
11077
+ * Human-readable object ID unique to the Dev organization.
11078
+ * @format text
11079
+ */
11080
+ display_id: string;
11081
+ /** Denotes the use case of the vista. */
11082
+ flavor?: VistaFlavor;
11083
+ /**
11084
+ * Parent vista ID.
11085
+ * @format id
11086
+ * @example "VISTA-12345"
11087
+ */
11088
+ id: string;
11089
+ /**
11090
+ * Name of the parent vista.
11091
+ * @format text
11092
+ */
11093
+ name: string;
11094
+ }
11095
+ /** Type of DevRev object for which the vista group item is applicable. */
11096
+ export declare enum VistaGroupItemGroupObjectType {
11097
+ Conversation = "conversation",
11098
+ Part = "part",
11099
+ Work = "work"
11100
+ }
10919
11101
  /** Defines the state of the group item. */
10920
11102
  export declare enum VistaGroupItemState {
10921
11103
  Active = "active",
@@ -10959,6 +11141,218 @@ export declare enum VistaGroupItemType {
10959
11141
  Curated = "curated",
10960
11142
  Dynamic = "dynamic"
10961
11143
  }
11144
+ /** Type of vista object. */
11145
+ export declare enum VistaType {
11146
+ Curated = "curated",
11147
+ Dynamic = "dynamic",
11148
+ Grouped = "grouped"
11149
+ }
11150
+ /**
11151
+ * vistas-delete-request
11152
+ * The request to delete a vista.
11153
+ */
11154
+ export interface VistasDeleteRequest {
11155
+ /**
11156
+ * The ID of the vista to delete.
11157
+ * @format id
11158
+ * @example "VISTA-12345"
11159
+ */
11160
+ id: string;
11161
+ }
11162
+ /**
11163
+ * vistas-delete-response
11164
+ * The response when deleting a vista.
11165
+ */
11166
+ export type VistasDeleteResponse = object;
11167
+ /**
11168
+ * vistas-get-request
11169
+ * The request to get a vista's information.
11170
+ */
11171
+ export interface VistasGetRequest {
11172
+ /**
11173
+ * The vista's ID.
11174
+ * @format id
11175
+ * @example "VISTA-12345"
11176
+ */
11177
+ id: string;
11178
+ }
11179
+ /**
11180
+ * vistas-get-response
11181
+ * The response to getting a vista's information.
11182
+ */
11183
+ export interface VistasGetResponse {
11184
+ /** Represents a collection of DevRev objects. */
11185
+ vista: Vista;
11186
+ }
11187
+ /** vistas-groups-delete-request */
11188
+ export interface VistasGroupsDeleteRequest {
11189
+ /**
11190
+ * ID of the vista group item to be deleted.
11191
+ * @format id
11192
+ */
11193
+ id: string;
11194
+ }
11195
+ /** vistas-groups-delete-response */
11196
+ export type VistasGroupsDeleteResponse = object;
11197
+ /**
11198
+ * vistas-groups-get-request
11199
+ * The request to get a vista group item's information.
11200
+ */
11201
+ export interface VistasGroupsGetRequest {
11202
+ /**
11203
+ * The vista group item's ID.
11204
+ * @format id
11205
+ */
11206
+ id: string;
11207
+ }
11208
+ /**
11209
+ * vistas-groups-get-response
11210
+ * The response to getting a vista group item's information.
11211
+ */
11212
+ export interface VistasGroupsGetResponse {
11213
+ /** Represents a vista group item. */
11214
+ vista_group: VistaGroup;
11215
+ }
11216
+ /** vistas-groups-list-request */
11217
+ export interface VistasGroupsListRequest {
11218
+ /** Filters for vista group items of the specific type. */
11219
+ type?: GroupItemType[];
11220
+ /**
11221
+ * Filter for vistas group item created by any of these users.
11222
+ * @example ["DEVU-12345"]
11223
+ */
11224
+ created_by?: string[];
11225
+ /** Provides ways to specify date ranges on objects. */
11226
+ created_date?: DateFilter;
11227
+ /**
11228
+ * The cursor to resume iteration from. If not provided, then
11229
+ * iteration starts from the beginning.
11230
+ * @format text
11231
+ */
11232
+ cursor?: string;
11233
+ /** Provides ways to specify date ranges on objects. */
11234
+ end_date?: DateFilter;
11235
+ /** Filters for vista group items of the specific group object type. */
11236
+ group_object_type?: VistaGroupItemGroupObjectType[];
11237
+ /**
11238
+ * The request to get information about a list of vista groups.
11239
+ * @format int32
11240
+ */
11241
+ limit?: number;
11242
+ /**
11243
+ * The iteration mode to use. If "after", then entries after the provided
11244
+ * cursor will be returned, or if no cursor is provided, then from the
11245
+ * beginning. If "before", then entries before the provided cursor will be
11246
+ * returned, or if no cursor is provided, then from the end. Entries will
11247
+ * always be returned in the specified sort-by order.
11248
+ */
11249
+ mode?: ListMode;
11250
+ /** Provides ways to specify date ranges on objects. */
11251
+ modified_date?: DateFilter;
11252
+ /**
11253
+ * Parent ID of the vista group item.
11254
+ * @example ["VISTA-12345"]
11255
+ */
11256
+ parent_id?: string[];
11257
+ /** Comma-separated fields to sort the objects by. */
11258
+ sort_by?: string[];
11259
+ /** Provides ways to specify date ranges on objects. */
11260
+ start_date?: DateFilter;
11261
+ /** Denotes the state of the vista group item. */
11262
+ state?: VistaGroupItemState[];
11263
+ }
11264
+ /**
11265
+ * vistas-groups-list-response
11266
+ * The response to listing the vistas group items.
11267
+ */
11268
+ export interface VistasGroupsListResponse {
11269
+ /**
11270
+ * The cursor used to iterate subsequent results in accordance to the
11271
+ * sort order. If not set, then no later elements exist.
11272
+ * @format text
11273
+ */
11274
+ next_cursor?: string;
11275
+ /**
11276
+ * The cursor used to iterate preceding results in accordance to the
11277
+ * sort order. If not set, then no prior elements exist.
11278
+ * @format text
11279
+ */
11280
+ prev_cursor?: string;
11281
+ /** List of vista group items. */
11282
+ vista_group?: VistaGroup[];
11283
+ }
11284
+ /**
11285
+ * vistas-list-request
11286
+ * The request to get information about a list of vistas.
11287
+ */
11288
+ export interface VistasListRequest {
11289
+ /** Filters for vistas of the specific type. */
11290
+ type?: VistaType[];
11291
+ /**
11292
+ * Filters for vistas created by any of these users.
11293
+ * @example ["DEVU-12345"]
11294
+ */
11295
+ created_by?: string[];
11296
+ /**
11297
+ * The cursor to resume iteration from. If not provided, then
11298
+ * iteration starts from the beginning.
11299
+ * @format text
11300
+ */
11301
+ cursor?: string;
11302
+ /** Filters for vistas of specific flavor. */
11303
+ flavor?: GroupedVistaFlavor[];
11304
+ /** Whether the default vistas should be fetched or not. */
11305
+ is_default?: boolean;
11306
+ /**
11307
+ * The maximum number of vistas to return. The default is '50', the
11308
+ * maximum is '100'.
11309
+ * @format int32
11310
+ */
11311
+ limit?: number;
11312
+ /**
11313
+ * Filters for vistas accessible to the input members.
11314
+ * @example ["DEVU-12345"]
11315
+ */
11316
+ members?: string[];
11317
+ /**
11318
+ * The iteration mode to use. If "after", then entries after the provided
11319
+ * cursor will be returned, or if no cursor is provided, then from the
11320
+ * beginning. If "before", then entries before the provided cursor will be
11321
+ * returned, or if no cursor is provided, then from the end. Entries will
11322
+ * always be returned in the specified sort-by order.
11323
+ */
11324
+ mode?: ListMode;
11325
+ /** Filters for vistas of specific object types like works, parts etc. */
11326
+ object_type?: DynamicVistaFilterType[];
11327
+ /** Filter for vistas accessible to the input members. */
11328
+ shared_with?: SharedWithMembershipFilter[];
11329
+ /** Denotes whether to skip items of vista_group_item in response. */
11330
+ skip_items?: boolean;
11331
+ /** Fields to sort the vistas by and the direction to sort them. */
11332
+ sort_by?: string[];
11333
+ /** Denotes the state of the vista group item. */
11334
+ state?: VistaGroupItemState[];
11335
+ }
11336
+ /**
11337
+ * vistas-list-response
11338
+ * The response to listing the vistas.
11339
+ */
11340
+ export interface VistasListResponse {
11341
+ /**
11342
+ * The cursor used to iterate subsequent results in accordance to the
11343
+ * sort order. If not set, then no later elements exist.
11344
+ * @format text
11345
+ */
11346
+ next_cursor?: string;
11347
+ /**
11348
+ * The cursor used to iterate preceding results in accordance to the
11349
+ * sort order. If not set, then no prior elements exist.
11350
+ * @format text
11351
+ */
11352
+ prev_cursor?: string;
11353
+ /** The list of vistas. */
11354
+ vistas: Vista[];
11355
+ }
10962
11356
  /** web-crawler-job */
10963
11357
  export type WebCrawlerJob = AtomBase & {
10964
11358
  /**
@@ -11767,6 +12161,11 @@ export interface WorksCreateRequestTicket {
11767
12161
  * @format text
11768
12162
  */
11769
12163
  source_channel?: string;
12164
+ /**
12165
+ * Source channel ID of the ticket.
12166
+ * @format id
12167
+ */
12168
+ source_channel_v2?: string;
11770
12169
  }
11771
12170
  /** works-create-response */
11772
12171
  export interface WorksCreateResponse {
@@ -11898,6 +12297,11 @@ export interface WorksFilterTicket {
11898
12297
  sla_summary?: SlaSummaryFilter;
11899
12298
  /** Filters for tickets with any of the provided source channels. */
11900
12299
  source_channel?: string[];
12300
+ /**
12301
+ * Filters for tickets that are associated with any of the source
12302
+ * channels.
12303
+ */
12304
+ source_channel_v2?: string[];
11901
12305
  /** The filter for survey aggregation. */
11902
12306
  surveys?: SurveyAggregationFilter;
11903
12307
  }
@@ -12259,6 +12663,11 @@ export interface WorksUpdateRequestTicket {
12259
12663
  sentiment_summary?: string;
12260
12664
  /** Severity of the ticket. */
12261
12665
  severity?: TicketSeverity;
12666
+ /**
12667
+ * Updates the source channel of the ticket.
12668
+ * @format id
12669
+ */
12670
+ source_channel_v2?: string | null;
12262
12671
  }
12263
12672
  /** works-update-request-ticket-channels */
12264
12673
  export interface WorksUpdateRequestTicketChannels {
@@ -12269,6 +12678,19 @@ export interface WorksUpdateRequestTicketChannels {
12269
12678
  export interface WorksUpdateResponse {
12270
12679
  work: Work;
12271
12680
  }
12681
+ /**
12682
+ * works-vista-group-item
12683
+ * Represents a nested works vista group object.
12684
+ */
12685
+ export type WorksVistaGroupItem = VistaGroupBase & {
12686
+ /** Type of works vista group item. */
12687
+ type: WorksVistaGroupItemType;
12688
+ };
12689
+ /** Type of works vista group item. */
12690
+ export declare enum WorksVistaGroupItemType {
12691
+ Curated = "curated",
12692
+ Dynamic = "dynamic"
12693
+ }
12272
12694
  import { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from 'axios';
12273
12695
  export type QueryParamsType = Record<string | number, any>;
12274
12696
  export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'params' | 'url' | 'responseType'> {
@@ -12567,12 +12989,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12567
12989
  * @example "ARTICLE-12345"
12568
12990
  */
12569
12991
  id: string;
12570
- /**
12571
- * Optional Dev Org ID for the unauthenticated user.
12572
- * @format id
12573
- * @example "DEV-AbCdEfGh"
12574
- */
12575
- dev_org?: string;
12576
12992
  }, params?: RequestParams) => Promise<AxiosResponse<ArticlesGetResponse, any>>;
12577
12993
  /**
12578
12994
  * @description Gets an article.
@@ -12622,12 +13038,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
12622
13038
  * @format text
12623
13039
  */
12624
13040
  cursor?: string;
12625
- /**
12626
- * Optional Dev Org ID for the unauthenticated user.
12627
- * @format id
12628
- * @example "DEV-AbCdEfGh"
12629
- */
12630
- dev_org?: string;
12631
13041
  /**
12632
13042
  * The maximum number of articles to return. The default is '50'.
12633
13043
  * @format int32
@@ -13327,6 +13737,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13327
13737
  'sla_summary.stage'?: SlaSummaryStage[];
13328
13738
  /** Filters for conversations with any of the provided source channels. */
13329
13739
  source_channel?: string[];
13740
+ /**
13741
+ * Filters for conversations that are associated with the source
13742
+ * channel.
13743
+ */
13744
+ source_channel_v2?: string[];
13330
13745
  /**
13331
13746
  * Filters for conversations with any of the provided source channels.
13332
13747
  * @deprecated
@@ -13726,12 +14141,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13726
14141
  * @format id
13727
14142
  */
13728
14143
  id: string;
13729
- /**
13730
- * Optional Dev Org ID for the unauthenticated user.
13731
- * @format id
13732
- * @example "DEV-AbCdEfGh"
13733
- */
13734
- dev_org?: string;
13735
14144
  }, params?: RequestParams) => Promise<AxiosResponse<DirectoriesGetResponse, any>>;
13736
14145
  /**
13737
14146
  * @description Gets the specified directory.
@@ -13764,12 +14173,6 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
13764
14173
  * @format text
13765
14174
  */
13766
14175
  cursor?: string;
13767
- /**
13768
- * Optional Dev Org ID for the unauthenticated user.
13769
- * @format id
13770
- * @example "DEV-AbCdEfGh"
13771
- */
13772
- dev_org?: string;
13773
14176
  /**
13774
14177
  * The maximum number of directories to return. The default is '50'.
13775
14178
  * @format int32
@@ -15920,6 +16323,206 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15920
16323
  * @secure
15921
16324
  */
15922
16325
  timelineEntriesUpdate: (data: TimelineEntriesUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<TimelineEntriesUpdateResponse, any>>;
16326
+ /**
16327
+ * @description Deletes the requested vista.
16328
+ *
16329
+ * @tags vistas
16330
+ * @name VistasDelete
16331
+ * @summary Delete Vista
16332
+ * @request POST:/vistas.delete
16333
+ * @secure
16334
+ */
16335
+ vistasDelete: (data: VistasDeleteRequest, params?: RequestParams) => Promise<AxiosResponse<object, any>>;
16336
+ /**
16337
+ * @description Gets the requested vistas's information.
16338
+ *
16339
+ * @tags vistas
16340
+ * @name VistasGet
16341
+ * @summary Get Vista
16342
+ * @request GET:/vistas.get
16343
+ * @secure
16344
+ */
16345
+ vistasGet: (query: {
16346
+ /**
16347
+ * The vista's ID.
16348
+ * @format id
16349
+ * @example "VISTA-12345"
16350
+ */
16351
+ id: string;
16352
+ }, params?: RequestParams) => Promise<AxiosResponse<VistasGetResponse, any>>;
16353
+ /**
16354
+ * @description Gets the requested vistas's information.
16355
+ *
16356
+ * @tags vistas
16357
+ * @name VistasGetPost
16358
+ * @summary Get Vista (POST)
16359
+ * @request POST:/vistas.get
16360
+ * @secure
16361
+ */
16362
+ vistasGetPost: (data: VistasGetRequest, params?: RequestParams) => Promise<AxiosResponse<VistasGetResponse, any>>;
16363
+ /**
16364
+ * @description Deletes the requested vista group item
16365
+ *
16366
+ * @tags vistas
16367
+ * @name VistasGroupsDelete
16368
+ * @summary Delete Vistas Group
16369
+ * @request POST:/vistas.groups.delete
16370
+ * @secure
16371
+ */
16372
+ vistasGroupsDelete: (data: VistasGroupsDeleteRequest, params?: RequestParams) => Promise<AxiosResponse<object, any>>;
16373
+ /**
16374
+ * @description Gets the requested vista group item's information.
16375
+ *
16376
+ * @tags vistas
16377
+ * @name VistasGroupsGet
16378
+ * @summary Get Vistas Group
16379
+ * @request GET:/vistas.groups.get
16380
+ * @secure
16381
+ */
16382
+ vistasGroupsGet: (query: {
16383
+ /**
16384
+ * The vista group item's ID.
16385
+ * @format id
16386
+ */
16387
+ id: string;
16388
+ }, params?: RequestParams) => Promise<AxiosResponse<VistasGroupsGetResponse, any>>;
16389
+ /**
16390
+ * @description Gets the requested vista group item's information.
16391
+ *
16392
+ * @tags vistas
16393
+ * @name VistasGroupsGetPost
16394
+ * @summary Get Vistas Group (POST)
16395
+ * @request POST:/vistas.groups.get
16396
+ * @secure
16397
+ */
16398
+ vistasGroupsGetPost: (data: VistasGroupsGetRequest, params?: RequestParams) => Promise<AxiosResponse<VistasGroupsGetResponse, any>>;
16399
+ /**
16400
+ * @description Lists the available vista group items.
16401
+ *
16402
+ * @tags vistas
16403
+ * @name VistasGroupsList
16404
+ * @summary List Vistas Groups
16405
+ * @request GET:/vistas.groups.list
16406
+ * @secure
16407
+ */
16408
+ vistasGroupsList: (query?: {
16409
+ /**
16410
+ * Filter for vistas group item created by any of these users.
16411
+ * @example ["DEVU-12345"]
16412
+ */
16413
+ created_by?: string[];
16414
+ /**
16415
+ * The cursor to resume iteration from. If not provided, then iteration
16416
+ * starts from the beginning.
16417
+ * @format text
16418
+ */
16419
+ cursor?: string;
16420
+ /** Filters for vista group items of the specific group object type. */
16421
+ group_object_type?: VistaGroupItemGroupObjectType[];
16422
+ /**
16423
+ * The request to get information about a list of vista groups.
16424
+ * @format int32
16425
+ */
16426
+ limit?: number;
16427
+ /**
16428
+ * The iteration mode to use, otherwise if not set, then "after" is
16429
+ * used.
16430
+ */
16431
+ mode?: ListMode;
16432
+ /**
16433
+ * Parent ID of the vista group item.
16434
+ * @example ["VISTA-12345"]
16435
+ */
16436
+ parent_id?: string[];
16437
+ /** Comma-separated fields to sort the objects by. */
16438
+ sort_by?: string[];
16439
+ /** Denotes the state of the vista group item. */
16440
+ state?: VistaGroupItemState[];
16441
+ /** Filters for vista group items of the specific type. */
16442
+ type?: GroupItemType[];
16443
+ }, params?: RequestParams) => Promise<AxiosResponse<VistasGroupsListResponse, any>>;
16444
+ /**
16445
+ * @description Lists the available vista group items.
16446
+ *
16447
+ * @tags vistas
16448
+ * @name VistasGroupsListPost
16449
+ * @summary List Vistas Groups (POST)
16450
+ * @request POST:/vistas.groups.list
16451
+ * @secure
16452
+ */
16453
+ vistasGroupsListPost: (data: VistasGroupsListRequest, params?: RequestParams) => Promise<AxiosResponse<VistasGroupsListResponse, any>>;
16454
+ /**
16455
+ * @description Lists the available vistas.
16456
+ *
16457
+ * @tags vistas
16458
+ * @name VistasList
16459
+ * @summary List Vistas
16460
+ * @request GET:/vistas.list
16461
+ * @secure
16462
+ */
16463
+ vistasList: (query?: {
16464
+ /**
16465
+ * Filters for vistas created by any of these users.
16466
+ * @example ["DEVU-12345"]
16467
+ */
16468
+ created_by?: string[];
16469
+ /**
16470
+ * The cursor to resume iteration from. If not provided, then iteration
16471
+ * starts from the beginning.
16472
+ * @format text
16473
+ */
16474
+ cursor?: string;
16475
+ /** Filters for vistas of specific flavor. */
16476
+ flavor?: GroupedVistaFlavor[];
16477
+ /** Whether the default vistas should be fetched or not. */
16478
+ is_default?: boolean;
16479
+ /**
16480
+ * The maximum number of vistas to return. The default is '50', the
16481
+ * maximum is '100'.
16482
+ * @format int32
16483
+ */
16484
+ limit?: number;
16485
+ /**
16486
+ * Filters for vistas accessible to the input members.
16487
+ * @example ["DEVU-12345"]
16488
+ */
16489
+ members?: string[];
16490
+ /**
16491
+ * The iteration mode to use, otherwise if not set, then "after" is
16492
+ * used.
16493
+ */
16494
+ mode?: ListMode;
16495
+ /** Filters for vistas of specific object types like works, parts etc. */
16496
+ object_type?: DynamicVistaFilterType[];
16497
+ /**
16498
+ * ID of the group/member with whom the item is shared.
16499
+ * @format id
16500
+ */
16501
+ 'shared_with.member'?: string;
16502
+ /**
16503
+ * Role ID of the group/member with whom the item is shared.
16504
+ * @format id
16505
+ */
16506
+ 'shared_with.role'?: string;
16507
+ /** Denotes whether to skip items of vista_group_item in response. */
16508
+ skip_items?: boolean;
16509
+ /** Fields to sort the vistas by and the direction to sort them. */
16510
+ sort_by?: string[];
16511
+ /** Denotes the state of the vista group item. */
16512
+ state?: VistaGroupItemState[];
16513
+ /** Filters for vistas of the specific type. */
16514
+ type?: VistaType[];
16515
+ }, params?: RequestParams) => Promise<AxiosResponse<VistasListResponse, any>>;
16516
+ /**
16517
+ * @description Lists the available vistas.
16518
+ *
16519
+ * @tags vistas
16520
+ * @name VistasListPost
16521
+ * @summary List Vistas (POST)
16522
+ * @request POST:/vistas.list
16523
+ * @secure
16524
+ */
16525
+ vistasListPost: (data: VistasListRequest, params?: RequestParams) => Promise<AxiosResponse<VistasListResponse, any>>;
15923
16526
  /**
15924
16527
  * @description Change state of a web crawler job to pause or resume it back to running.
15925
16528
  *
@@ -16228,6 +16831,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16228
16831
  'ticket.sla_summary.stage'?: SlaSummaryStage[];
16229
16832
  /** Filters for tickets with any of the provided source channels. */
16230
16833
  'ticket.source_channel'?: string[];
16834
+ /**
16835
+ * Filters for tickets that are associated with any of the source
16836
+ * channels.
16837
+ */
16838
+ 'ticket.source_channel_v2'?: string[];
16231
16839
  /** Filters for work of the provided types. */
16232
16840
  type?: WorkType[];
16233
16841
  }, params?: RequestParams) => Promise<AxiosResponse<WorksExportResponse, any>>;
@@ -16392,6 +17000,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16392
17000
  'ticket.sla_summary.stage'?: SlaSummaryStage[];
16393
17001
  /** Filters for tickets with any of the provided source channels. */
16394
17002
  'ticket.source_channel'?: string[];
17003
+ /**
17004
+ * Filters for tickets that are associated with any of the source
17005
+ * channels.
17006
+ */
17007
+ 'ticket.source_channel_v2'?: string[];
16395
17008
  /** Filters for work of the provided types. */
16396
17009
  type?: WorkType[];
16397
17010
  }, params?: RequestParams) => Promise<AxiosResponse<WorksListResponse, any>>;