@devrev/typescript-sdk 1.1.43 → 1.1.45

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.
@@ -1306,6 +1306,10 @@ export declare enum AssociatedToType {
1306
1306
  Account = "account",
1307
1307
  RevOrg = "rev_org"
1308
1308
  }
1309
+ /** atom */
1310
+ export type Atom = (Account | AppFragment | Capability | Conversation | CustomTypeFragment | DevUser | Engagement | Enhancement | Feature | Incident | Issue | Meeting | Opportunity | Product | RevOrg | RevUser | ServiceAccount | SysUser | Tag | Task | TenantFragment | Ticket | TimelineChangeEvent | TimelineComment | UserPreferences | Webhook) & {
1311
+ type: AtomType;
1312
+ };
1309
1313
  /** atom-base */
1310
1314
  export interface AtomBase {
1311
1315
  created_by?: UserSummary;
@@ -1366,6 +1370,15 @@ export declare enum AtomType {
1366
1370
  UserPreferences = "user_preferences",
1367
1371
  Webhook = "webhook"
1368
1372
  }
1373
+ /** atoms-get-request */
1374
+ export interface AtomsGetRequest {
1375
+ /** The ID of the object to get. */
1376
+ id: string;
1377
+ }
1378
+ /** atoms-get-response */
1379
+ export interface AtomsGetResponse {
1380
+ atom: Atom;
1381
+ }
1369
1382
  /**
1370
1383
  * auth-connection
1371
1384
  * Connection object that specifies the configuration for an
@@ -2709,6 +2722,7 @@ export interface ConversationsExportRequest {
2709
2722
  * @example ["DEVU-12345"]
2710
2723
  */
2711
2724
  members?: string[];
2725
+ modified_date?: DateTimeFilter;
2712
2726
  /**
2713
2727
  * Filters for conversations owned by any of these users.
2714
2728
  * @example ["DEVU-12345"]
@@ -2810,6 +2824,7 @@ export interface ConversationsListRequest {
2810
2824
  * always be returned in the specified sort-by order.
2811
2825
  */
2812
2826
  mode?: ListMode;
2827
+ modified_date?: DateTimeFilter;
2813
2828
  /**
2814
2829
  * Filters for conversations owned by any of these users.
2815
2830
  * @example ["DEVU-12345"]
@@ -2892,6 +2907,7 @@ export interface ConversationsUpdateRequest {
2892
2907
  id: string;
2893
2908
  /** Whether the conversation is spam. */
2894
2909
  is_spam?: boolean;
2910
+ members?: ConversationsUpdateRequestMembers;
2895
2911
  metadata?: ConversationsUpdateRequestMetadata;
2896
2912
  owned_by?: ConversationsUpdateRequestOwnedBy;
2897
2913
  /** Updates an object's stage. */
@@ -2911,6 +2927,14 @@ export interface ConversationsUpdateRequestAppliesToParts {
2911
2927
  */
2912
2928
  set?: string[];
2913
2929
  }
2930
+ /** conversations-update-request-members */
2931
+ export interface ConversationsUpdateRequestMembers {
2932
+ /**
2933
+ * Sets the member IDs to the provided user IDs.
2934
+ * @example ["DEVU-12345"]
2935
+ */
2936
+ set?: string[];
2937
+ }
2914
2938
  /** conversations-update-request-metadata */
2915
2939
  export interface ConversationsUpdateRequestMetadata {
2916
2940
  url_context?: string;
@@ -3103,6 +3127,22 @@ export interface CreateStage {
3103
3127
  /** DON of the stage. */
3104
3128
  stage: string;
3105
3129
  }
3130
+ /** create-stage-node */
3131
+ export interface CreateStageNode {
3132
+ /** Whether this stage is deprecated. */
3133
+ is_deprecated?: boolean;
3134
+ /** Whether this is the start stage. */
3135
+ is_start?: boolean;
3136
+ /** The ID of the stage. */
3137
+ stage_id: string;
3138
+ /** List of transitions from this stage. */
3139
+ transitions?: CreateStageTransition[];
3140
+ }
3141
+ /** create-stage-transition */
3142
+ export interface CreateStageTransition {
3143
+ /** The ID of the target stage. */
3144
+ target_stage_id: string;
3145
+ }
3106
3146
  /**
3107
3147
  * create-tag-with-value
3108
3148
  * Create object for tag_summary.
@@ -5308,10 +5348,12 @@ export interface EventConversationCreated {
5308
5348
  export interface EventConversationDeleted {
5309
5349
  /** The ID of the conversation that was deleted. */
5310
5350
  id: string;
5351
+ old_conversation?: Conversation;
5311
5352
  }
5312
5353
  /** event-conversation-updated */
5313
5354
  export interface EventConversationUpdated {
5314
5355
  conversation: Conversation;
5356
+ old_conversation?: Conversation;
5315
5357
  }
5316
5358
  /** event-dev-user-created */
5317
5359
  export interface EventDevUserCreated {
@@ -5449,6 +5491,7 @@ export interface EventSlaTrackerDeleted {
5449
5491
  }
5450
5492
  /** event-sla-tracker-updated */
5451
5493
  export interface EventSlaTrackerUpdated {
5494
+ old_sla_tracker?: SlaTracker;
5452
5495
  sla_tracker: SlaTracker;
5453
5496
  }
5454
5497
  /** event-source */
@@ -6419,6 +6462,8 @@ export interface IncidentsGroupRequest {
6419
6462
  * iteration starts from the beginning.
6420
6463
  */
6421
6464
  cursor?: string;
6465
+ /** Filters for custom fields. */
6466
+ custom_fields?: object;
6422
6467
  /** The field to group the incidents by. */
6423
6468
  group_by: string;
6424
6469
  /** Provides ways to specify date ranges on objects. */
@@ -6516,6 +6561,8 @@ export interface IncidentsListRequest {
6516
6561
  * iteration starts from the beginning.
6517
6562
  */
6518
6563
  cursor?: string;
6564
+ /** Filters for custom fields. */
6565
+ custom_fields?: object;
6519
6566
  /** Provides ways to specify date ranges on objects. */
6520
6567
  identified_date?: DateFilter;
6521
6568
  /**
@@ -10827,6 +10874,8 @@ export interface SnapInsResourcesResponse {
10827
10874
  export interface SnapInsResourcesResponseKeyringData {
10828
10875
  /** The ID of the keyring. */
10829
10876
  id: string;
10877
+ /** Whether the keyring token is expired. */
10878
+ is_expired: boolean;
10830
10879
  /** The secret value of the keyring. This must be handled with caution. */
10831
10880
  secret: string;
10832
10881
  }
@@ -10895,8 +10944,108 @@ export interface Stage {
10895
10944
  stage?: CustomStageSummary;
10896
10945
  state?: CustomStateSummary;
10897
10946
  }
10947
+ /** stage-diagram */
10948
+ export type StageDiagram = AtomBase & {
10949
+ /** True if this diagram corresponds to a custom leaf type. */
10950
+ is_custom_leaf_type?: boolean;
10951
+ /** True if this diagram is the default for the leaf type. */
10952
+ is_default?: boolean;
10953
+ /** The leaf type this stage diagram applies to. */
10954
+ leaf_type?: string;
10955
+ /** The human readable name of the diagram. */
10956
+ name?: string;
10957
+ /** Stage node. */
10958
+ stages: StageNode[];
10959
+ };
10898
10960
  /** stage-diagram-summary */
10899
- export type StageDiagramSummary = AtomBaseSummary;
10961
+ export type StageDiagramSummary = AtomBaseSummary & {
10962
+ /** The human readable name of the diagram. */
10963
+ name?: string;
10964
+ };
10965
+ /** stage-diagrams-create-request */
10966
+ export interface StageDiagramsCreateRequest {
10967
+ /** Whether the leaf type corresponds to a custom object. */
10968
+ is_custom_leaf_type?: boolean;
10969
+ /** Whether this is a default stage diagram. */
10970
+ is_default?: boolean;
10971
+ /** The leaf type this stage diagram applies to. */
10972
+ leaf_type: string;
10973
+ /**
10974
+ * The name of the stage diagram. Stage diagram is used for defining
10975
+ * stage transitions.
10976
+ */
10977
+ name: string;
10978
+ /** List of stages in the diagram. */
10979
+ stages: CreateStageNode[];
10980
+ }
10981
+ /** stage-diagrams-create-response */
10982
+ export interface StageDiagramsCreateResponse {
10983
+ stage_diagram: StageDiagram;
10984
+ }
10985
+ /** stage-diagrams-get-request */
10986
+ export interface StageDiagramsGetRequest {
10987
+ /** The ID of the stage diagram to get. */
10988
+ id?: string;
10989
+ /**
10990
+ * Whether the leaf type corresponds to a custom object. Specify this
10991
+ * along with leaf_type to get the default custom object stage
10992
+ * diagram.
10993
+ */
10994
+ is_custom_leaf_type?: boolean;
10995
+ /**
10996
+ * The leaf type. Should be specified to retrieve the default stage
10997
+ * diagram for the leaf type. If not provided, then id is used.
10998
+ */
10999
+ leaf_type?: string;
11000
+ }
11001
+ /** stage-diagrams-get-response */
11002
+ export interface StageDiagramsGetResponse {
11003
+ stage_diagram: StageDiagram;
11004
+ }
11005
+ /** stage-diagrams-list-request */
11006
+ export interface StageDiagramsListRequest {
11007
+ /**
11008
+ * The cursor to resume iteration from, otherwise if not provided,
11009
+ * then iteration starts from the beginning.
11010
+ */
11011
+ cursor?: string;
11012
+ /** Whether only custom object stage diagrams should be filtered. */
11013
+ is_custom_leaf_type?: boolean;
11014
+ /** The list of leaf types. */
11015
+ leaf_type?: string[];
11016
+ /**
11017
+ * The maximum number of items.
11018
+ * @format int32
11019
+ */
11020
+ limit?: number;
11021
+ /** The list of stage diagram names. */
11022
+ name?: string[];
11023
+ /** The list of fields to sort the items by and how to sort them. */
11024
+ sort_by?: string[];
11025
+ }
11026
+ /** stage-diagrams-list-response */
11027
+ export interface StageDiagramsListResponse {
11028
+ /**
11029
+ * The cursor to resume iteration from, otherwise if not provided,
11030
+ * then iteration starts from the beginning.
11031
+ */
11032
+ cursor?: string;
11033
+ /** The stage diagram. */
11034
+ result: StageDiagram[];
11035
+ }
11036
+ /** stage-diagrams-update-request */
11037
+ export interface StageDiagramsUpdateRequest {
11038
+ /** The ID of the stage diagram to update. */
11039
+ id: string;
11040
+ /** The updated name of the stage diagram. */
11041
+ name?: string;
11042
+ /** List of stages in the stage diagram. */
11043
+ stages?: UpdateStageNode[];
11044
+ }
11045
+ /** stage-diagrams-update-response */
11046
+ export interface StageDiagramsUpdateResponse {
11047
+ stage_diagram: StageDiagram;
11048
+ }
10900
11049
  /**
10901
11050
  * stage-filter
10902
11051
  * The filter for stages.
@@ -10918,6 +11067,19 @@ export interface StageInit {
10918
11067
  /** The name of the stage. */
10919
11068
  name?: string;
10920
11069
  }
11070
+ /**
11071
+ * stage-node
11072
+ * Diagram stage.
11073
+ */
11074
+ export interface StageNode {
11075
+ /** True if this stage has been deprecated. */
11076
+ is_deprecated?: boolean;
11077
+ /** True if this stage is the starting stage of the stage diagram. */
11078
+ is_start?: boolean;
11079
+ stage?: CustomStageSummary;
11080
+ /** The list of stages that can be reached. */
11081
+ transitions?: StageTransition[];
11082
+ }
10921
11083
  /**
10922
11084
  * stage-summary
10923
11085
  * Describes the current stage of a object.
@@ -10925,6 +11087,13 @@ export interface StageInit {
10925
11087
  export interface StageSummary {
10926
11088
  stage?: CustomStageSummary;
10927
11089
  }
11090
+ /**
11091
+ * stage-transition
11092
+ * Stage transition.
11093
+ */
11094
+ export interface StageTransition {
11095
+ target_stage?: CustomStageSummary;
11096
+ }
10928
11097
  /**
10929
11098
  * stage-update
10930
11099
  * Updates an object's stage.
@@ -12950,6 +13119,22 @@ export interface UpdateStage {
12950
13119
  /** DON of the stage. */
12951
13120
  stage?: string;
12952
13121
  }
13122
+ /** update-stage-node */
13123
+ export interface UpdateStageNode {
13124
+ /** Whether this stage is deprecated. */
13125
+ is_deprecated?: boolean;
13126
+ /** Whether this is the start stage. */
13127
+ is_start?: boolean;
13128
+ /** The ID of the stage. */
13129
+ stage_id: string;
13130
+ /** List of transitions from this stage. */
13131
+ transitions?: UpdateStageTransition[];
13132
+ }
13133
+ /** update-stage-transition */
13134
+ export interface UpdateStageTransition {
13135
+ /** The ID of the target stage. */
13136
+ target_stage_id: string;
13137
+ }
12953
13138
  /**
12954
13139
  * update-tag-with-value
12955
13140
  * Update object for TagWithValue.
@@ -14828,6 +15013,29 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
14828
15013
  * @secure
14829
15014
  */
14830
15015
  artifactsVersionsPrepare: (data: ArtifactsVersionsPrepareRequest, params?: RequestParams) => Promise<AxiosResponse<ArtifactsVersionsPrepareResponse, any>>;
15016
+ /**
15017
+ * @description Gets the specified object.
15018
+ *
15019
+ * @tags atoms
15020
+ * @name AtomsGet
15021
+ * @summary Get Atom
15022
+ * @request GET:/atoms.get
15023
+ * @secure
15024
+ */
15025
+ atomsGet: (query: {
15026
+ /** The ID of the object to get. */
15027
+ id: string;
15028
+ }, params?: RequestParams) => Promise<AxiosResponse<AtomsGetResponse, any>>;
15029
+ /**
15030
+ * @description Gets the specified object.
15031
+ *
15032
+ * @tags atoms
15033
+ * @name AtomsGetPost
15034
+ * @summary Get Atom (POST)
15035
+ * @request POST:/atoms.get
15036
+ * @secure
15037
+ */
15038
+ atomsGetPost: (data: AtomsGetRequest, params?: RequestParams) => Promise<AxiosResponse<AtomsGetResponse, any>>;
14831
15039
  /**
14832
15040
  * @description Retrieves audit logs.
14833
15041
  *
@@ -15276,6 +15484,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15276
15484
  * @example ["DEVU-12345"]
15277
15485
  */
15278
15486
  members?: string[];
15487
+ /**
15488
+ * Filters for objects created after the provided timestamp (inclusive).
15489
+ * @format date-time
15490
+ * @example "2023-01-01T12:00:00.000Z"
15491
+ */
15492
+ 'modified_date.after'?: string;
15493
+ /**
15494
+ * Filters for objects created before the provided timestamp
15495
+ * (inclusive).
15496
+ * @format date-time
15497
+ * @example "2023-01-01T12:00:00.000Z"
15498
+ */
15499
+ 'modified_date.before'?: string;
15279
15500
  /**
15280
15501
  * Filters for conversations owned by any of these users.
15281
15502
  * @example ["DEVU-12345"]
@@ -15400,6 +15621,19 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
15400
15621
  * used.
15401
15622
  */
15402
15623
  mode?: ListMode;
15624
+ /**
15625
+ * Filters for objects created after the provided timestamp (inclusive).
15626
+ * @format date-time
15627
+ * @example "2023-01-01T12:00:00.000Z"
15628
+ */
15629
+ 'modified_date.after'?: string;
15630
+ /**
15631
+ * Filters for objects created before the provided timestamp
15632
+ * (inclusive).
15633
+ * @format date-time
15634
+ * @example "2023-01-01T12:00:00.000Z"
15635
+ */
15636
+ 'modified_date.before'?: string;
15403
15637
  /**
15404
15638
  * Filters for conversations owned by any of these users.
15405
15639
  * @example ["DEVU-12345"]
@@ -16350,6 +16584,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16350
16584
  * starts from the beginning.
16351
16585
  */
16352
16586
  cursor?: string;
16587
+ /** Filters for custom fields. */
16588
+ custom_fields?: object;
16353
16589
  /**
16354
16590
  * The maximum number of groups to return. If not set, then the default
16355
16591
  * is '10'.
@@ -16431,6 +16667,8 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16431
16667
  * starts from the beginning.
16432
16668
  */
16433
16669
  cursor?: string;
16670
+ /** Filters for custom fields. */
16671
+ custom_fields?: object;
16434
16672
  /**
16435
16673
  * The maximum number of items.
16436
16674
  * @format int32
@@ -18561,6 +18799,98 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
18561
18799
  * @secure
18562
18800
  */
18563
18801
  snapWidgetsCreate: (data: SnapWidgetsCreateRequest, params?: RequestParams) => Promise<AxiosResponse<SnapWidgetsCreateResponse, any>>;
18802
+ /**
18803
+ * @description Creates a stage diagram.
18804
+ *
18805
+ * @tags customization
18806
+ * @name StageDiagramsCreate
18807
+ * @summary Create Stage Diagram
18808
+ * @request POST:/stage-diagrams.create
18809
+ * @secure
18810
+ */
18811
+ stageDiagramsCreate: (data: StageDiagramsCreateRequest, params?: RequestParams) => Promise<AxiosResponse<StageDiagramsCreateResponse, any>>;
18812
+ /**
18813
+ * @description Gets a stage diagram.
18814
+ *
18815
+ * @tags customization
18816
+ * @name StageDiagramsGet
18817
+ * @summary Get Stage Diagram
18818
+ * @request GET:/stage-diagrams.get
18819
+ * @secure
18820
+ */
18821
+ stageDiagramsGet: (query?: {
18822
+ /** The ID of the stage diagram to get. */
18823
+ id?: string;
18824
+ /**
18825
+ * Whether the leaf type corresponds to a custom object. Specify this
18826
+ * along with leaf_type to get the default custom object stage diagram.
18827
+ */
18828
+ is_custom_leaf_type?: boolean;
18829
+ /**
18830
+ * The leaf type. Should be specified to retrieve the default stage
18831
+ * diagram for the leaf type. If not provided, then id is used.
18832
+ */
18833
+ leaf_type?: string;
18834
+ }, params?: RequestParams) => Promise<AxiosResponse<StageDiagramsGetResponse, any>>;
18835
+ /**
18836
+ * @description Gets a stage diagram.
18837
+ *
18838
+ * @tags customization
18839
+ * @name StageDiagramsGetPost
18840
+ * @summary Get Stage Diagram (POST)
18841
+ * @request POST:/stage-diagrams.get
18842
+ * @secure
18843
+ */
18844
+ stageDiagramsGetPost: (data: StageDiagramsGetRequest, params?: RequestParams) => Promise<AxiosResponse<StageDiagramsGetResponse, any>>;
18845
+ /**
18846
+ * @description Lists stage diagrams.
18847
+ *
18848
+ * @tags customization
18849
+ * @name StageDiagramsList
18850
+ * @summary List Stage Diagrams
18851
+ * @request GET:/stage-diagrams.list
18852
+ * @secure
18853
+ */
18854
+ stageDiagramsList: (query?: {
18855
+ /**
18856
+ * The cursor to resume iteration from, otherwise if not provided, then
18857
+ * iteration starts from the beginning.
18858
+ */
18859
+ cursor?: string;
18860
+ /** Whether only custom object stage diagrams should be filtered. */
18861
+ is_custom_leaf_type?: boolean;
18862
+ /** The list of leaf types. */
18863
+ leaf_type?: string[];
18864
+ /**
18865
+ * The maximum number of items.
18866
+ * @format int32
18867
+ */
18868
+ limit?: number;
18869
+ /** The list of stage diagram names. */
18870
+ name?: string[];
18871
+ /** The list of fields to sort the items by and how to sort them. */
18872
+ sort_by?: string[];
18873
+ }, params?: RequestParams) => Promise<AxiosResponse<StageDiagramsListResponse, any>>;
18874
+ /**
18875
+ * @description Lists stage diagrams.
18876
+ *
18877
+ * @tags customization
18878
+ * @name StageDiagramsListPost
18879
+ * @summary List Stage Diagrams (POST)
18880
+ * @request POST:/stage-diagrams.list
18881
+ * @secure
18882
+ */
18883
+ stageDiagramsListPost: (data: StageDiagramsListRequest, params?: RequestParams) => Promise<AxiosResponse<StageDiagramsListResponse, any>>;
18884
+ /**
18885
+ * @description Updates a stage diagram.
18886
+ *
18887
+ * @tags customization
18888
+ * @name StageDiagramsUpdate
18889
+ * @summary Update Stage Diagram
18890
+ * @request POST:/stage-diagrams.update
18891
+ * @secure
18892
+ */
18893
+ stageDiagramsUpdate: (data: StageDiagramsUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<StageDiagramsUpdateResponse, any>>;
18564
18894
  /**
18565
18895
  * @description Creates a custom stage.
18566
18896
  *
@@ -1670,6 +1670,26 @@ class Api extends HttpClient {
1670
1670
  * @secure
1671
1671
  */
1672
1672
  this.artifactsVersionsPrepare = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.versions.prepare`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1673
+ /**
1674
+ * @description Gets the specified object.
1675
+ *
1676
+ * @tags atoms
1677
+ * @name AtomsGet
1678
+ * @summary Get Atom
1679
+ * @request GET:/atoms.get
1680
+ * @secure
1681
+ */
1682
+ this.atomsGet = (query, params = {}) => this.request(Object.assign({ path: `/atoms.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
1683
+ /**
1684
+ * @description Gets the specified object.
1685
+ *
1686
+ * @tags atoms
1687
+ * @name AtomsGetPost
1688
+ * @summary Get Atom (POST)
1689
+ * @request POST:/atoms.get
1690
+ * @secure
1691
+ */
1692
+ this.atomsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/atoms.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1673
1693
  /**
1674
1694
  * @description Retrieves audit logs.
1675
1695
  *
@@ -4019,6 +4039,66 @@ class Api extends HttpClient {
4019
4039
  * @secure
4020
4040
  */
4021
4041
  this.snapWidgetsCreate = (data, params = {}) => this.request(Object.assign({ path: `/snap-widgets.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
4042
+ /**
4043
+ * @description Creates a stage diagram.
4044
+ *
4045
+ * @tags customization
4046
+ * @name StageDiagramsCreate
4047
+ * @summary Create Stage Diagram
4048
+ * @request POST:/stage-diagrams.create
4049
+ * @secure
4050
+ */
4051
+ this.stageDiagramsCreate = (data, params = {}) => this.request(Object.assign({ path: `/stage-diagrams.create`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
4052
+ /**
4053
+ * @description Gets a stage diagram.
4054
+ *
4055
+ * @tags customization
4056
+ * @name StageDiagramsGet
4057
+ * @summary Get Stage Diagram
4058
+ * @request GET:/stage-diagrams.get
4059
+ * @secure
4060
+ */
4061
+ this.stageDiagramsGet = (query, params = {}) => this.request(Object.assign({ path: `/stage-diagrams.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
4062
+ /**
4063
+ * @description Gets a stage diagram.
4064
+ *
4065
+ * @tags customization
4066
+ * @name StageDiagramsGetPost
4067
+ * @summary Get Stage Diagram (POST)
4068
+ * @request POST:/stage-diagrams.get
4069
+ * @secure
4070
+ */
4071
+ this.stageDiagramsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/stage-diagrams.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
4072
+ /**
4073
+ * @description Lists stage diagrams.
4074
+ *
4075
+ * @tags customization
4076
+ * @name StageDiagramsList
4077
+ * @summary List Stage Diagrams
4078
+ * @request GET:/stage-diagrams.list
4079
+ * @secure
4080
+ */
4081
+ this.stageDiagramsList = (query, params = {}) => this.request(Object.assign({ path: `/stage-diagrams.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
4082
+ /**
4083
+ * @description Lists stage diagrams.
4084
+ *
4085
+ * @tags customization
4086
+ * @name StageDiagramsListPost
4087
+ * @summary List Stage Diagrams (POST)
4088
+ * @request POST:/stage-diagrams.list
4089
+ * @secure
4090
+ */
4091
+ this.stageDiagramsListPost = (data, params = {}) => this.request(Object.assign({ path: `/stage-diagrams.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
4092
+ /**
4093
+ * @description Updates a stage diagram.
4094
+ *
4095
+ * @tags customization
4096
+ * @name StageDiagramsUpdate
4097
+ * @summary Update Stage Diagram
4098
+ * @request POST:/stage-diagrams.update
4099
+ * @secure
4100
+ */
4101
+ this.stageDiagramsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/stage-diagrams.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
4022
4102
  /**
4023
4103
  * @description Creates a custom stage.
4024
4104
  *
@@ -503,6 +503,10 @@ export interface ArtifactsPrepareResponseFormData {
503
503
  /** Value corresponding to the key. */
504
504
  value: string;
505
505
  }
506
+ /** atom */
507
+ export type Atom = (Capability | Conversation | DevUser | Enhancement | Feature | Issue | Product | RevOrg | RevUser | SysUser | Tag | Ticket | TimelineComment | Webhook) & {
508
+ type: AtomType;
509
+ };
506
510
  /** atom-base */
507
511
  export interface AtomBase {
508
512
  created_by?: UserSummary;
@@ -531,6 +535,31 @@ export interface AtomBaseSummary {
531
535
  /** Globally unique object ID. */
532
536
  id: string;
533
537
  }
538
+ export declare enum AtomType {
539
+ Capability = "capability",
540
+ Conversation = "conversation",
541
+ DevUser = "dev_user",
542
+ Enhancement = "enhancement",
543
+ Feature = "feature",
544
+ Issue = "issue",
545
+ Product = "product",
546
+ RevOrg = "rev_org",
547
+ RevUser = "rev_user",
548
+ SysUser = "sys_user",
549
+ Tag = "tag",
550
+ Ticket = "ticket",
551
+ TimelineComment = "timeline_comment",
552
+ Webhook = "webhook"
553
+ }
554
+ /** atoms-get-request */
555
+ export interface AtomsGetRequest {
556
+ /** The ID of the object to get. */
557
+ id: string;
558
+ }
559
+ /** atoms-get-response */
560
+ export interface AtomsGetResponse {
561
+ atom: Atom;
562
+ }
534
563
  /**
535
564
  * auth-connection
536
565
  * Connection object that specifies the configuration for an
@@ -1793,10 +1822,12 @@ export interface EventConversationCreated {
1793
1822
  export interface EventConversationDeleted {
1794
1823
  /** The ID of the conversation that was deleted. */
1795
1824
  id: string;
1825
+ old_conversation?: Conversation;
1796
1826
  }
1797
1827
  /** event-conversation-updated */
1798
1828
  export interface EventConversationUpdated {
1799
1829
  conversation: Conversation;
1830
+ old_conversation?: Conversation;
1800
1831
  }
1801
1832
  /** event-dev-user-created */
1802
1833
  export interface EventDevUserCreated {
@@ -1934,6 +1965,7 @@ export interface EventSlaTrackerDeleted {
1934
1965
  }
1935
1966
  /** event-sla-tracker-updated */
1936
1967
  export interface EventSlaTrackerUpdated {
1968
+ old_sla_tracker?: SlaTracker;
1937
1969
  sla_tracker: SlaTracker;
1938
1970
  }
1939
1971
  /** event-survey-created */
@@ -4065,6 +4097,8 @@ export declare enum SyncRunMode {
4065
4097
  SyncFromDevrev = "sync_from_devrev",
4066
4098
  SyncToDevrev = "sync_to_devrev"
4067
4099
  }
4100
+ /** sys-user */
4101
+ export type SysUser = UserBase;
4068
4102
  /** sys-user-summary */
4069
4103
  export type SysUserSummary = UserBaseSummary;
4070
4104
  /** tag */
@@ -5828,6 +5862,29 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
5828
5862
  * @secure
5829
5863
  */
5830
5864
  artifactsPrepare: (data: ArtifactsPrepareRequest, params?: RequestParams) => Promise<AxiosResponse<ArtifactsPrepareResponse, any>>;
5865
+ /**
5866
+ * @description Gets the specified object.
5867
+ *
5868
+ * @tags atoms
5869
+ * @name AtomsGet
5870
+ * @summary Get Atom
5871
+ * @request GET:/atoms.get
5872
+ * @secure
5873
+ */
5874
+ atomsGet: (query: {
5875
+ /** The ID of the object to get. */
5876
+ id: string;
5877
+ }, params?: RequestParams) => Promise<AxiosResponse<AtomsGetResponse, any>>;
5878
+ /**
5879
+ * @description Gets the specified object.
5880
+ *
5881
+ * @tags atoms
5882
+ * @name AtomsGetPost
5883
+ * @summary Get Atom (POST)
5884
+ * @request POST:/atoms.get
5885
+ * @secure
5886
+ */
5887
+ atomsGetPost: (data: AtomsGetRequest, params?: RequestParams) => Promise<AxiosResponse<AtomsGetResponse, any>>;
5831
5888
  /**
5832
5889
  * @description Creates a JWT corresponding to the requested token type for the authenticated user.
5833
5890
  *
@@ -33,8 +33,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
33
33
  return (mod && mod.__esModule) ? mod : { "default": mod };
34
34
  };
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.SyncRunMode = exports.SyncProgressState = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaTrackerAppliesToType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgEnvironment = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.ListMode = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.EventFetchedResult = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = void 0;
37
- exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TicketChannels = void 0;
36
+ exports.SyncProgressState = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaTrackerAppliesToType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgEnvironment = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.ListMode = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.EventFetchedResult = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.DateTimePresetType = exports.DateFilterType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = void 0;
37
+ exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineCommentBodyType = exports.TicketSeverity = exports.TicketChannels = exports.SyncRunMode = void 0;
38
+ var AtomType;
39
+ (function (AtomType) {
40
+ AtomType["Capability"] = "capability";
41
+ AtomType["Conversation"] = "conversation";
42
+ AtomType["DevUser"] = "dev_user";
43
+ AtomType["Enhancement"] = "enhancement";
44
+ AtomType["Feature"] = "feature";
45
+ AtomType["Issue"] = "issue";
46
+ AtomType["Product"] = "product";
47
+ AtomType["RevOrg"] = "rev_org";
48
+ AtomType["RevUser"] = "rev_user";
49
+ AtomType["SysUser"] = "sys_user";
50
+ AtomType["Tag"] = "tag";
51
+ AtomType["Ticket"] = "ticket";
52
+ AtomType["TimelineComment"] = "timeline_comment";
53
+ AtomType["Webhook"] = "webhook";
54
+ })(AtomType = exports.AtomType || (exports.AtomType = {}));
38
55
  var AuthConnectionToggle;
39
56
  (function (AuthConnectionToggle) {
40
57
  AuthConnectionToggle["Disable"] = "disable";
@@ -898,6 +915,26 @@ class Api extends HttpClient {
898
915
  * @secure
899
916
  */
900
917
  this.artifactsPrepare = (data, params = {}) => this.request(Object.assign({ path: `/artifacts.prepare`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
918
+ /**
919
+ * @description Gets the specified object.
920
+ *
921
+ * @tags atoms
922
+ * @name AtomsGet
923
+ * @summary Get Atom
924
+ * @request GET:/atoms.get
925
+ * @secure
926
+ */
927
+ this.atomsGet = (query, params = {}) => this.request(Object.assign({ path: `/atoms.get`, method: 'GET', query: query, secure: true, format: 'json' }, params));
928
+ /**
929
+ * @description Gets the specified object.
930
+ *
931
+ * @tags atoms
932
+ * @name AtomsGetPost
933
+ * @summary Get Atom (POST)
934
+ * @request POST:/atoms.get
935
+ * @secure
936
+ */
937
+ this.atomsGetPost = (data, params = {}) => this.request(Object.assign({ path: `/atoms.get`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
901
938
  /**
902
939
  * @description Creates a JWT corresponding to the requested token type for the authenticated user.
903
940
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrev/typescript-sdk",
3
- "version": "1.1.43",
3
+ "version": "1.1.45",
4
4
  "description": "## SDK Generation",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {