@devrev/typescript-sdk 1.1.40 → 1.1.41

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.
@@ -13,7 +13,7 @@ export type Account = OrgBase & {
13
13
  custom_fields?: object;
14
14
  /**
15
15
  * Custom schema fragments.
16
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
16
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
17
17
  */
18
18
  custom_schema_fragments?: string[];
19
19
  /** Description of the corresponding Account. */
@@ -24,12 +24,12 @@ export type Account = OrgBase & {
24
24
  * External refs are unique identifiers from your customer system of
25
25
  * records, stored as a list.
26
26
  */
27
- external_refs: string[];
27
+ external_refs?: string[];
28
28
  /** List of Dev user IDs owning this Account. */
29
29
  owned_by: UserSummary[];
30
30
  /**
31
31
  * Stock schema fragment.
32
- * @example "don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"
32
+ * @example "don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"
33
33
  */
34
34
  stock_schema_fragment?: string;
35
35
  /** Subtype corresponding to the custom type fragment. */
@@ -91,7 +91,7 @@ export interface AccountsCreateRequest {
91
91
  /**
92
92
  * Schema fragment IDs associated with this account SOR.
93
93
  * @deprecated
94
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
94
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
95
95
  */
96
96
  schema_fragment_ids?: string[];
97
97
  /** Tags associated with the account. */
@@ -333,7 +333,7 @@ export interface AccountsUpdateRequest {
333
333
  /**
334
334
  * Schema fragment IDs associated with this account SOR.
335
335
  * @deprecated
336
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
336
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
337
337
  */
338
338
  schema_fragment_ids?: string[];
339
339
  /** Updated tags list associated with the account. */
@@ -1268,6 +1268,14 @@ export interface ArtifactsVersionsPrepareResponseFormData {
1268
1268
  /** Value corresponding to the key. */
1269
1269
  value: string;
1270
1270
  }
1271
+ /** associated-to-summary */
1272
+ export type AssociatedToSummary = (AccountSummary | RevOrgSummary) & {
1273
+ type: AssociatedToType;
1274
+ };
1275
+ export declare enum AssociatedToType {
1276
+ Account = "account",
1277
+ RevOrg = "rev_org"
1278
+ }
1271
1279
  /** atom-base */
1272
1280
  export interface AtomBase {
1273
1281
  created_by?: UserSummary;
@@ -3186,12 +3194,12 @@ export type CustomObject = AtomBase & {
3186
3194
  custom_fields?: object;
3187
3195
  /**
3188
3196
  * Custom schema fragments.
3189
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
3197
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
3190
3198
  */
3191
3199
  custom_schema_fragments?: string[];
3192
3200
  /**
3193
3201
  * Stock schema fragment.
3194
- * @example "don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"
3202
+ * @example "don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"
3195
3203
  */
3196
3204
  stock_schema_fragment?: string;
3197
3205
  /** Subtype corresponding to the custom type fragment. */
@@ -4124,7 +4132,7 @@ export type DevUser = UserBase & {
4124
4132
  custom_fields?: object;
4125
4133
  /**
4126
4134
  * Custom schema fragments.
4127
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
4135
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
4128
4136
  */
4129
4137
  custom_schema_fragments?: string[];
4130
4138
  /**
@@ -4141,7 +4149,7 @@ export type DevUser = UserBase & {
4141
4149
  skills?: UserSkill[];
4142
4150
  /**
4143
4151
  * Stock schema fragment.
4144
- * @example "don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"
4152
+ * @example "don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"
4145
4153
  */
4146
4154
  stock_schema_fragment?: string;
4147
4155
  /** Subtype corresponding to the custom type fragment. */
@@ -5560,7 +5568,7 @@ export interface EventTimelineEntryCreated {
5560
5568
  export interface EventTimelineEntryDeleted {
5561
5569
  /**
5562
5570
  * The ID of the timeline entry that was deleted.
5563
- * @example "don:core:<partition>:devo/<dev-org-id>:ticket/123:timeline_event/<timeline-event-id>"
5571
+ * @example "don:core:dvrv-us-1:devo/example:ticket/123:comment/comment-id"
5564
5572
  */
5565
5573
  id: string;
5566
5574
  old_entry?: TimelineEntry;
@@ -5578,7 +5586,7 @@ export interface EventWebhookCreated {
5578
5586
  export interface EventWebhookDeleted {
5579
5587
  /**
5580
5588
  * The ID of the webhook that was deleted.
5581
- * @example "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>"
5589
+ * @example "don:integration:dvrv-us-1:devo/example:webhook/webhook-id"
5582
5590
  */
5583
5591
  id: string;
5584
5592
  }
@@ -6150,7 +6158,7 @@ export type Incident = AtomBase & {
6150
6158
  custom_fields?: object;
6151
6159
  /**
6152
6160
  * Custom schema fragments.
6153
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
6161
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
6154
6162
  */
6155
6163
  custom_schema_fragments?: string[];
6156
6164
  /**
@@ -6190,7 +6198,7 @@ export type Incident = AtomBase & {
6190
6198
  stakeholders?: UserSummary[];
6191
6199
  /**
6192
6200
  * Stock schema fragment.
6193
- * @example "don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"
6201
+ * @example "don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"
6194
6202
  */
6195
6203
  stock_schema_fragment?: string;
6196
6204
  /** Subtype corresponding to the custom type fragment. */
@@ -6988,7 +6996,7 @@ export type Meeting = AtomBase & {
6988
6996
  custom_fields?: object;
6989
6997
  /**
6990
6998
  * Custom schema fragments.
6991
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
6999
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
6992
7000
  */
6993
7001
  custom_schema_fragments?: string[];
6994
7002
  /** Description of the meeting. */
@@ -7022,7 +7030,7 @@ export type Meeting = AtomBase & {
7022
7030
  state?: MeetingState;
7023
7031
  /**
7024
7032
  * Stock schema fragment.
7025
- * @example "don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"
7033
+ * @example "don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"
7026
7034
  */
7027
7035
  stock_schema_fragment?: string;
7028
7036
  /** Subtype corresponding to the custom type fragment. */
@@ -7060,6 +7068,8 @@ export interface MeetingsCountRequest {
7060
7068
  created_date?: DateFilter;
7061
7069
  /** Filters for meeting on custom fields. */
7062
7070
  custom_fields?: object;
7071
+ /** Provides ways to specify date ranges on objects. */
7072
+ ended_date?: DateFilter;
7063
7073
  /** Filters for meetings with the provided external_ref(s). */
7064
7074
  external_ref?: string[];
7065
7075
  /** Filters for links associated with the meeting. */
@@ -7075,6 +7085,8 @@ export interface MeetingsCountRequest {
7075
7085
  * @example ["ACC-12345"]
7076
7086
  */
7077
7087
  parent?: string[];
7088
+ /** Provides ways to specify date ranges on objects. */
7089
+ scheduled_date?: DateFilter;
7078
7090
  /** Filters for meeting on specified state or outcomes. */
7079
7091
  state?: MeetingState[];
7080
7092
  /** Filters for meeting by tags. */
@@ -7189,6 +7201,8 @@ export interface MeetingsListRequest {
7189
7201
  cursor?: string;
7190
7202
  /** Filters for meeting on custom fields. */
7191
7203
  custom_fields?: object;
7204
+ /** Provides ways to specify date ranges on objects. */
7205
+ ended_date?: DateFilter;
7192
7206
  /** Filters for meetings with the provided external_ref(s). */
7193
7207
  external_ref?: string[];
7194
7208
  /**
@@ -7217,6 +7231,8 @@ export interface MeetingsListRequest {
7217
7231
  * @example ["ACC-12345"]
7218
7232
  */
7219
7233
  parent?: string[];
7234
+ /** Provides ways to specify date ranges on objects. */
7235
+ scheduled_date?: DateFilter;
7220
7236
  /** Fields to sort the meetings by and the direction to sort them. */
7221
7237
  sort_by?: string[];
7222
7238
  /** Filters for meeting on specified state or outcomes. */
@@ -8043,7 +8059,7 @@ export type PartBase = AtomBase & {
8043
8059
  custom_fields?: object;
8044
8060
  /**
8045
8061
  * Custom schema fragments.
8046
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
8062
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
8047
8063
  */
8048
8064
  custom_schema_fragments?: string[];
8049
8065
  /** Description of the part. */
@@ -8054,7 +8070,7 @@ export type PartBase = AtomBase & {
8054
8070
  owned_by: UserSummary[];
8055
8071
  /**
8056
8072
  * Stock schema fragment.
8057
- * @example "don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"
8073
+ * @example "don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"
8058
8074
  */
8059
8075
  stock_schema_fragment?: string;
8060
8076
  /** Subtype corresponding to the custom type fragment. */
@@ -8100,7 +8116,7 @@ export type PartsCreateRequest = (PartsCreateRequestCapability | PartsCreateRequ
8100
8116
  custom_fields?: object;
8101
8117
  /**
8102
8118
  * The custom schema fragments to use.
8103
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
8119
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
8104
8120
  */
8105
8121
  custom_schema_fragments?: string[];
8106
8122
  /**
@@ -8249,7 +8265,7 @@ export type PartsUpdateRequest = (Empty | PartsUpdateRequestCapability | PartsUp
8249
8265
  custom_fields?: object;
8250
8266
  /**
8251
8267
  * The custom schema fragments to use.
8252
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
8268
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
8253
8269
  */
8254
8270
  custom_schema_fragments?: string[];
8255
8271
  /**
@@ -8625,6 +8641,59 @@ export interface QuestionAnswersUpdateRequestTags {
8625
8641
  export interface QuestionAnswersUpdateResponse {
8626
8642
  question_answer: QuestionAnswer;
8627
8643
  }
8644
+ /** reactions-list-request */
8645
+ export interface ReactionsListRequest {
8646
+ /**
8647
+ * The cursor to resume iteration from, otherwise if not provided,
8648
+ * then iteration starts from the beginning.
8649
+ */
8650
+ cursor?: string;
8651
+ /**
8652
+ * The emoji to list the reactors for. This can be the short name of
8653
+ * the emoji (e.g. "joy"), or the code point (e.g. "1f602").
8654
+ */
8655
+ emoji: string;
8656
+ /**
8657
+ * The maximum number of reactors to return.
8658
+ * @format int32
8659
+ */
8660
+ limit?: number;
8661
+ /**
8662
+ * The ID of the object to list reactors for.
8663
+ * @example "don:core:dvrv-us-1:devo/example:ticket/123:comment/comment-id"
8664
+ */
8665
+ object: string;
8666
+ }
8667
+ /** reactions-list-response */
8668
+ export interface ReactionsListResponse {
8669
+ /**
8670
+ * The cursor that should be used to iterate the next sequence of
8671
+ * results, otherwise if not set, then no elements exist after.
8672
+ */
8673
+ next_cursor?: string;
8674
+ /** The users that have reacted. */
8675
+ reactors: UserSummary[];
8676
+ }
8677
+ /** reactions-update-request */
8678
+ export interface ReactionsUpdateRequest {
8679
+ action: ReactionsUpdateRequestAction;
8680
+ /**
8681
+ * The emoji for the reaction. This can be the short name of the emoji
8682
+ * (e.g. "joy"), or the code point (e.g. "1f602").
8683
+ */
8684
+ emoji: string;
8685
+ /**
8686
+ * The object to update the reaction for.
8687
+ * @example "don:core:dvrv-us-1:devo/example:ticket/123:comment/comment-id"
8688
+ */
8689
+ object: string;
8690
+ }
8691
+ export declare enum ReactionsUpdateRequestAction {
8692
+ Add = "add",
8693
+ Remove = "remove"
8694
+ }
8695
+ /** reactions-update-response */
8696
+ export type ReactionsUpdateResponse = object;
8628
8697
  /** remove-tag-with-value */
8629
8698
  export interface RemoveTagWithValue {
8630
8699
  /**
@@ -8667,7 +8736,7 @@ export type RevOrg = OrgBase & {
8667
8736
  custom_fields?: object;
8668
8737
  /**
8669
8738
  * Custom schema fragments.
8670
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
8739
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
8671
8740
  */
8672
8741
  custom_schema_fragments?: string[];
8673
8742
  /** Description of the Rev organization. */
@@ -8683,7 +8752,7 @@ export type RevOrg = OrgBase & {
8683
8752
  external_ref?: string;
8684
8753
  /**
8685
8754
  * Stock schema fragment.
8686
- * @example "don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"
8755
+ * @example "don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"
8687
8756
  */
8688
8757
  stock_schema_fragment?: string;
8689
8758
  /** Subtype corresponding to the custom type fragment. */
@@ -8713,7 +8782,7 @@ export interface RevOrgsCreateRequest {
8713
8782
  custom_fields?: object;
8714
8783
  /**
8715
8784
  * Schema fragment IDs associated with this Rev organization.
8716
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
8785
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
8717
8786
  */
8718
8787
  custom_schema_fragments?: string[];
8719
8788
  /** Description of the Rev organization. */
@@ -8868,7 +8937,7 @@ export interface RevOrgsUpdateRequest {
8868
8937
  artifacts?: RevOrgsUpdateRequestArtifacts;
8869
8938
  /**
8870
8939
  * Schema fragment IDs associated with this Rev organization.
8871
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
8940
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
8872
8941
  */
8873
8942
  custom_schema_fragments?: string[];
8874
8943
  /** Description of the Rev organization. */
@@ -8921,7 +8990,7 @@ export type RevUser = UserBase & {
8921
8990
  custom_fields?: object;
8922
8991
  /**
8923
8992
  * Custom schema fragments.
8924
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
8993
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
8925
8994
  */
8926
8995
  custom_schema_fragments?: string[];
8927
8996
  /** Description of the Rev user. */
@@ -8939,7 +9008,7 @@ export type RevUser = UserBase & {
8939
9008
  rev_org?: OrgSummary;
8940
9009
  /**
8941
9010
  * Stock schema fragment.
8942
- * @example "don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"
9011
+ * @example "don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"
8943
9012
  */
8944
9013
  stock_schema_fragment?: string;
8945
9014
  /** Subtype corresponding to the custom type fragment. */
@@ -8947,6 +9016,15 @@ export type RevUser = UserBase & {
8947
9016
  /** Tags associated with the object. */
8948
9017
  tags?: TagWithValue[];
8949
9018
  };
9019
+ /**
9020
+ * rev-user-association
9021
+ * Association of Rev users with Rev orgs or accounts. A Rev user can be
9022
+ * associated with 0 or more accounts and Rev orgs. A Rev org association
9023
+ * automatically adds an account association.
9024
+ */
9025
+ export interface RevUserAssociation {
9026
+ associated_to?: AssociatedToSummary;
9027
+ }
8950
9028
  /** rev-user-summary */
8951
9029
  export type RevUserSummary = UserBaseSummary & {
8952
9030
  /**
@@ -8959,6 +9037,51 @@ export type RevUserSummary = UserBaseSummary & {
8959
9037
  external_ref?: string;
8960
9038
  rev_org?: OrgSummary;
8961
9039
  };
9040
+ /**
9041
+ * rev-users-associations-list-request
9042
+ * Gets the list of Rev user associations.
9043
+ */
9044
+ export interface RevUsersAssociationsListRequest {
9045
+ /**
9046
+ * The cursor to resume iteration from. If not provided, then
9047
+ * iteration starts from the beginning.
9048
+ */
9049
+ cursor?: string;
9050
+ /**
9051
+ * The maximum number of Associations to return per page. The default
9052
+ * is '50'.
9053
+ * @format int32
9054
+ */
9055
+ limit?: number;
9056
+ /**
9057
+ * The iteration mode to use. If "after", then entries after the provided
9058
+ * cursor will be returned, or if no cursor is provided, then from the
9059
+ * beginning. If "before", then entries before the provided cursor will be
9060
+ * returned, or if no cursor is provided, then from the end. Entries will
9061
+ * always be returned in the specified sort-by order.
9062
+ */
9063
+ mode?: ListMode;
9064
+ /** The ID of Rev user to list all associations of. */
9065
+ rev_user_id: string;
9066
+ }
9067
+ /**
9068
+ * rev-users-associations-list-response
9069
+ * The response to listing all the associations of a Rev user.
9070
+ */
9071
+ export interface RevUsersAssociationsListResponse {
9072
+ /** The associations of a Rev user. */
9073
+ associations: RevUserAssociation[];
9074
+ /**
9075
+ * The cursor used to iterate subsequent results in accordance to the
9076
+ * sort order. If not set, then no later elements exist.
9077
+ */
9078
+ next_cursor?: string;
9079
+ /**
9080
+ * The cursor used to iterate preceding results in accordance to the
9081
+ * sort order. If not set, then no prior elements exist.
9082
+ */
9083
+ prev_cursor?: string;
9084
+ }
8962
9085
  /**
8963
9086
  * rev-users-create-request
8964
9087
  * Request object to create a new Rev user for a Rev organization.
@@ -8979,7 +9102,7 @@ export interface RevUsersCreateRequest {
8979
9102
  /**
8980
9103
  * The schema fragment IDs associated with the Rev user.
8981
9104
  * @deprecated
8982
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
9105
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
8983
9106
  */
8984
9107
  custom_schema_fragments?: string[];
8985
9108
  /**
@@ -9056,6 +9179,11 @@ export interface RevUsersGetResponse {
9056
9179
  * Organization which the user is also authorized to access.
9057
9180
  */
9058
9181
  export interface RevUsersListRequest {
9182
+ /**
9183
+ * Filters for Rev users with specified associations
9184
+ * (account/workspace).
9185
+ */
9186
+ associations?: string[];
9059
9187
  /** Filters for Rev users that were created by the specified user(s). */
9060
9188
  created_by?: string[];
9061
9189
  created_date?: DateTimeFilter;
@@ -9140,6 +9268,11 @@ export type RevUsersMergeResponse = object;
9140
9268
  * Scans the list of Rev users.
9141
9269
  */
9142
9270
  export interface RevUsersScanRequest {
9271
+ /**
9272
+ * Filters for Rev users with specified associations
9273
+ * (account/workspace).
9274
+ */
9275
+ associations?: string[];
9143
9276
  /** Filters for Rev users that were created by the specified user(s). */
9144
9277
  created_by?: string[];
9145
9278
  created_date?: DateTimeFilter;
@@ -9224,7 +9357,7 @@ export interface RevUsersUpdateRequestArtifacts {
9224
9357
  export interface RevUsersUpdateRequestCustomSchemaFragments {
9225
9358
  /**
9226
9359
  * Sets the IDs to the provided schema fragment IDs.
9227
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
9360
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
9228
9361
  */
9229
9362
  set?: string[];
9230
9363
  }
@@ -11881,14 +12014,14 @@ export interface TimelineEntriesCreateRequestTimelineComment {
11881
12014
  external_ref?: string;
11882
12015
  /**
11883
12016
  * The IDs of the previews of the links posted in the comment.
11884
- * @example ["don:core:<partition>:devo/<dev-org-id>:snap_widget/<snap-widget-id>"]
12017
+ * @example ["don:core:dvrv-us-1:devo/example:snap_widget/snap-widget-id"]
11885
12018
  */
11886
12019
  link_previews?: string[];
11887
12020
  /** Snap Kit Body of the comment. */
11888
12021
  snap_kit_body?: TimelineSnapKitBody;
11889
12022
  /**
11890
12023
  * The snap widget body of the comment.
11891
- * @example ["don:core:<partition>:devo/<dev-org-id>:snap_widget/<snap-widget-id>"]
12024
+ * @example ["don:core:dvrv-us-1:devo/example:snap_widget/snap-widget-id"]
11892
12025
  */
11893
12026
  snap_widget_body?: string[];
11894
12027
  }
@@ -11909,7 +12042,7 @@ export interface TimelineEntriesCreateResponse {
11909
12042
  export interface TimelineEntriesDeleteRequest {
11910
12043
  /**
11911
12044
  * The ID of the timeline entry to delete.
11912
- * @example "don:core:<partition>:devo/<dev-org-id>:ticket/123:timeline_event/<timeline-event-id>"
12045
+ * @example "don:core:dvrv-us-1:devo/example:ticket/123:comment/comment-id"
11913
12046
  */
11914
12047
  id: string;
11915
12048
  }
@@ -11932,7 +12065,7 @@ export interface TimelineEntriesGetRequest {
11932
12065
  external_ref?: string;
11933
12066
  /**
11934
12067
  * The ID of the timeline entry to get.
11935
- * @example "don:core:<partition>:devo/<dev-org-id>:ticket/123:timeline_event/<timeline-event-id>"
12068
+ * @example "don:core:dvrv-us-1:devo/example:ticket/123:comment/comment-id"
11936
12069
  */
11937
12070
  id: string;
11938
12071
  }
@@ -12018,7 +12151,7 @@ export type TimelineEntriesUpdateRequest = TimelineEntriesUpdateRequestTimelineC
12018
12151
  type: TimelineEntriesUpdateRequestType;
12019
12152
  /**
12020
12153
  * The ID of the timeline entry to update.
12021
- * @example "don:core:<partition>:devo/<dev-org-id>:ticket/123:timeline_event/<timeline-event-id>"
12154
+ * @example "don:core:dvrv-us-1:devo/example:ticket/123:comment/comment-id"
12022
12155
  */
12023
12156
  id: string;
12024
12157
  };
@@ -12071,19 +12204,19 @@ export interface TimelineEntriesUpdateRequestTimelineCommentLinkPreviews {
12071
12204
  * Adds the provided link previews to the comment. A link preview
12072
12205
  * cannot be added more than once, i.e. nothing is done if the link
12073
12206
  * preview is already present. Mutually exclusive with `set`.
12074
- * @example ["don:core:<partition>:devo/<dev-org-id>:snap_widget/<snap-widget-id>"]
12207
+ * @example ["don:core:dvrv-us-1:devo/example:snap_widget/snap-widget-id"]
12075
12208
  */
12076
12209
  add?: string[];
12077
12210
  /**
12078
12211
  * Removes the provided link previews from the comment. If a link
12079
12212
  * preview is not present, then it's ignored. Mutually exclusive with
12080
12213
  * `set`.
12081
- * @example ["don:core:<partition>:devo/<dev-org-id>:snap_widget/<snap-widget-id>"]
12214
+ * @example ["don:core:dvrv-us-1:devo/example:snap_widget/snap-widget-id"]
12082
12215
  */
12083
12216
  remove?: string[];
12084
12217
  /**
12085
12218
  * Set the link previews to the provided IDs.
12086
- * @example ["don:core:<partition>:devo/<dev-org-id>:snap_widget/<snap-widget-id>"]
12219
+ * @example ["don:core:dvrv-us-1:devo/example:snap_widget/snap-widget-id"]
12087
12220
  */
12088
12221
  set?: string[];
12089
12222
  }
@@ -12944,7 +13077,7 @@ export interface WebhookEventRequest {
12944
13077
  webhook_deleted?: EventWebhookDeleted;
12945
13078
  /**
12946
13079
  * ID of the webhook for the event.
12947
- * @example "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>"
13080
+ * @example "don:integration:dvrv-us-1:devo/example:webhook/webhook-id"
12948
13081
  */
12949
13082
  webhook_id: string;
12950
13083
  webhook_updated?: EventWebhookUpdated;
@@ -13087,7 +13220,7 @@ export interface WebhooksCreateResponse {
13087
13220
  export interface WebhooksDeleteRequest {
13088
13221
  /**
13089
13222
  * ID for the webhook.
13090
- * @example "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>"
13223
+ * @example "don:integration:dvrv-us-1:devo/example:webhook/webhook-id"
13091
13224
  */
13092
13225
  id: string;
13093
13226
  }
@@ -13103,7 +13236,7 @@ export type WebhooksDeleteResponse = object;
13103
13236
  export interface WebhooksFetchRequest {
13104
13237
  /**
13105
13238
  * The ID of the webhook to fetch the object for.
13106
- * @example "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>"
13239
+ * @example "don:integration:dvrv-us-1:devo/example:webhook/webhook-id"
13107
13240
  */
13108
13241
  id: string;
13109
13242
  /**
@@ -13124,7 +13257,7 @@ export type WebhooksFetchResponse = object;
13124
13257
  export interface WebhooksGetRequest {
13125
13258
  /**
13126
13259
  * ID for the webhook.
13127
- * @example "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>"
13260
+ * @example "don:integration:dvrv-us-1:devo/example:webhook/webhook-id"
13128
13261
  */
13129
13262
  id: string;
13130
13263
  }
@@ -13164,7 +13297,7 @@ export interface WebhooksUpdateRequest {
13164
13297
  headers?: WebhooksUpdateRequestHeaders;
13165
13298
  /**
13166
13299
  * ID for the webhook.
13167
- * @example "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>"
13300
+ * @example "don:integration:dvrv-us-1:devo/example:webhook/webhook-id"
13168
13301
  */
13169
13302
  id: string;
13170
13303
  /**
@@ -13258,7 +13391,7 @@ export type WorkBase = AtomBase & {
13258
13391
  custom_fields?: object;
13259
13392
  /**
13260
13393
  * Custom schema fragments.
13261
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
13394
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
13262
13395
  */
13263
13396
  custom_schema_fragments?: string[];
13264
13397
  /** The users that own the work. */
@@ -13269,7 +13402,7 @@ export type WorkBase = AtomBase & {
13269
13402
  stage?: LegacyStage;
13270
13403
  /**
13271
13404
  * Stock schema fragment.
13272
- * @example "don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"
13405
+ * @example "don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"
13273
13406
  */
13274
13407
  stock_schema_fragment?: string;
13275
13408
  /** Subtype corresponding to the custom type fragment. */
@@ -13340,7 +13473,7 @@ export type WorksCreateRequest = (WorksCreateRequestIssue | WorksCreateRequestOp
13340
13473
  custom_fields?: object;
13341
13474
  /**
13342
13475
  * The custom schema fragments to use.
13343
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
13476
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
13344
13477
  */
13345
13478
  custom_schema_fragments?: string[];
13346
13479
  /**
@@ -13726,7 +13859,7 @@ export type WorksUpdateRequest = (Empty | WorksUpdateRequestIssue | WorksUpdateR
13726
13859
  custom_fields?: object;
13727
13860
  /**
13728
13861
  * The custom schema fragments to use.
13729
- * @example ["don:core:<partition>:devo/<dev-org-id>:custom_type_fragment/<custom-type-fragment-id>"]
13862
+ * @example ["don:core:dvrv-us-1:devo/example:custom_type_fragment/custom-type-fragment-id"]
13730
13863
  */
13731
13864
  custom_schema_fragments?: string[];
13732
13865
  /**
@@ -16989,6 +17122,54 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
16989
17122
  * @secure
16990
17123
  */
16991
17124
  updateQuestionAnswer: (data: QuestionAnswersUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<QuestionAnswersUpdateResponse, any>>;
17125
+ /**
17126
+ * @description Lists the reactors for an object.
17127
+ *
17128
+ * @tags timeline-entries, works
17129
+ * @name ReactionsList
17130
+ * @request GET:/reactions.list
17131
+ * @secure
17132
+ */
17133
+ reactionsList: (query: {
17134
+ /**
17135
+ * The emoji to list the reactors for. This can be the short name of the
17136
+ * emoji (e.g. "joy"), or the code point (e.g. "1f602").
17137
+ */
17138
+ emoji: string;
17139
+ /**
17140
+ * The ID of the object to list reactors for.
17141
+ * @example "don:core:dvrv-us-1:devo/example:ticket/123:comment/comment-id"
17142
+ */
17143
+ object: string;
17144
+ /**
17145
+ * The cursor to resume iteration from, otherwise if not provided, then
17146
+ * iteration starts from the beginning.
17147
+ */
17148
+ cursor?: string;
17149
+ /**
17150
+ * The maximum number of reactors to return.
17151
+ * @format int32
17152
+ */
17153
+ limit?: number;
17154
+ }, params?: RequestParams) => Promise<AxiosResponse<ReactionsListResponse, any>>;
17155
+ /**
17156
+ * @description Lists the reactors for an object.
17157
+ *
17158
+ * @tags timeline-entries, works
17159
+ * @name ReactionsListPost
17160
+ * @request POST:/reactions.list
17161
+ * @secure
17162
+ */
17163
+ reactionsListPost: (data: ReactionsListRequest, params?: RequestParams) => Promise<AxiosResponse<ReactionsListResponse, any>>;
17164
+ /**
17165
+ * @description Updates a reaction for an object.
17166
+ *
17167
+ * @tags timeline-entries, works
17168
+ * @name ReactionsUpdate
17169
+ * @request POST:/reactions.update
17170
+ * @secure
17171
+ */
17172
+ reactionsUpdate: (data: ReactionsUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<object, any>>;
16992
17173
  /**
16993
17174
  * @description Returns a response for the chat conversation.
16994
17175
  *
@@ -17149,6 +17330,43 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
17149
17330
  * @secure
17150
17331
  */
17151
17332
  revOrgsUpdate: (data: RevOrgsUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<RevOrgsUpdateResponse, any>>;
17333
+ /**
17334
+ * @description Returns a list of associations on a Rev user.
17335
+ *
17336
+ * @tags rev-users
17337
+ * @name RevUsersAssociationsList
17338
+ * @request GET:/rev-users.associations.list
17339
+ * @secure
17340
+ */
17341
+ revUsersAssociationsList: (query: {
17342
+ /** The ID of Rev user to list all associations of. */
17343
+ rev_user_id: string;
17344
+ /**
17345
+ * The cursor to resume iteration from. If not provided, then iteration
17346
+ * starts from the beginning.
17347
+ */
17348
+ cursor?: string;
17349
+ /**
17350
+ * The maximum number of Associations to return per page. The default is
17351
+ * '50'.
17352
+ * @format int32
17353
+ */
17354
+ limit?: number;
17355
+ /**
17356
+ * The iteration mode to use, otherwise if not set, then "after" is
17357
+ * used.
17358
+ */
17359
+ mode?: ListMode;
17360
+ }, params?: RequestParams) => Promise<AxiosResponse<RevUsersAssociationsListResponse, any>>;
17361
+ /**
17362
+ * @description Returns a list of associations on a Rev user.
17363
+ *
17364
+ * @tags rev-users
17365
+ * @name RevUsersAssociationsListPost
17366
+ * @request POST:/rev-users.associations.list
17367
+ * @secure
17368
+ */
17369
+ revUsersAssociationsListPost: (data: RevUsersAssociationsListRequest, params?: RequestParams) => Promise<AxiosResponse<RevUsersAssociationsListResponse, any>>;
17152
17370
  /**
17153
17371
  * @description Creates a Rev user for a Rev organization. Rev user can be a customer or a lead of an organization.
17154
17372
  *
@@ -17215,6 +17433,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
17215
17433
  * @secure
17216
17434
  */
17217
17435
  revUsersList: (query?: {
17436
+ /**
17437
+ * Filters for Rev users with specified associations
17438
+ * (account/workspace).
17439
+ */
17440
+ associations?: string[];
17218
17441
  /** Filters for Rev users that were created by the specified user(s). */
17219
17442
  created_by?: string[];
17220
17443
  /**
@@ -17314,6 +17537,11 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
17314
17537
  * @secure
17315
17538
  */
17316
17539
  revUsersScan: (query?: {
17540
+ /**
17541
+ * Filters for Rev users with specified associations
17542
+ * (account/workspace).
17543
+ */
17544
+ associations?: string[];
17317
17545
  /** Filters for Rev users that were created by the specified user(s). */
17318
17546
  created_by?: string[];
17319
17547
  /**
@@ -18400,7 +18628,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
18400
18628
  timelineEntriesGet: (query: {
18401
18629
  /**
18402
18630
  * The ID of the timeline entry to get.
18403
- * @example "don:core:<partition>:devo/<dev-org-id>:ticket/123:timeline_event/<timeline-event-id>"
18631
+ * @example "don:core:dvrv-us-1:devo/example:ticket/123:comment/comment-id"
18404
18632
  */
18405
18633
  id: string;
18406
18634
  /**
@@ -18692,7 +18920,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
18692
18920
  webhooksGet: (query: {
18693
18921
  /**
18694
18922
  * ID for the webhook.
18695
- * @example "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>"
18923
+ * @example "don:integration:dvrv-us-1:devo/example:webhook/webhook-id"
18696
18924
  */
18697
18925
  id: string;
18698
18926
  }, params?: RequestParams) => Promise<AxiosResponse<WebhooksGetResponse, any>>;
@@ -18733,7 +18961,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
18733
18961
  */
18734
18962
  webhooksUpdate: (data: WebhooksUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<WebhooksUpdateResponse, any>>;
18735
18963
  /**
18736
- * @description Creates new work ([issue](https://devrev.ai/docs/product/build), [ticket](https://devrev.ai/docs/product/support)) item. [task](https://docs.devrev.ai/product/tasks) and opportunity work types are supported in the beta version.
18964
+ * @description Creates new work ([issue](https://devrev.ai/docs/product/build), [ticket](https://devrev.ai/docs/product/support)) item. [task](https://devrev.ai/docs/product/tasks) and opportunity work types are supported in the beta version.
18737
18965
  *
18738
18966
  * @tags works
18739
18967
  * @name WorksCreate
@@ -33,9 +33,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
33
33
  return (mod && mod.__esModule) ? mod : { "default": mod };
34
34
  };
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.GroupType = exports.GroupMemberType = exports.GroupIngestionSource = exports.GenericNotificationEventType = exports.FieldValueType = exports.ExternalSystemType = exports.EventSourceStatus = exports.EventFetchedResult = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.Definedness = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsListRequestPrune = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CommandSurfaceSurface = exports.CommandSurfaceObjectTypes = exports.CommandStatus = exports.CommandActionTemplateType = exports.CommandActionExecutorType = exports.CodeChangeSource = exports.ChatCompletionsRequestMessageRole = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.ArticleType = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
- exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = exports.SyncInStatus = exports.StockSchemaFragmentsListRequestPrune = exports.StockSchemaFragmentsListRequestFilterPreset = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapWidgetsCreateRequestType = exports.SnapWidgetType = exports.SnapWidgetStatus = exports.SnapWidgetNamespace = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SendNotificationType = exports.SearchSortOrderParam = exports.SearchSortByParam = exports.SearchResultType = exports.SearchNamespace = exports.SearchHybridNamespace = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.QuestionAnswerStatus = exports.PreferencesType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MetricActionExecuteRequestAction = exports.MemberType = exports.MeetingState = exports.MeetingChannel = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupedVistaFlavor = void 0;
38
- exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TuringSourcesType = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryPanel = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TimelineChangeEventEventType = exports.TicketSeverity = exports.TicketChannels = exports.TaskPriority = exports.SyncUnitSyncType = exports.SyncRunStartedBy = exports.SyncRunProgressState = exports.SyncRunMode = exports.SyncProgressState = exports.SyncOutStatus = void 0;
36
+ exports.GroupMemberType = exports.GroupIngestionSource = exports.GenericNotificationEventType = exports.FieldValueType = exports.ExternalSystemType = exports.EventSourceStatus = exports.EventFetchedResult = exports.ErrorUnauthorizedType = exports.ErrorTooManyRequestsType = exports.ErrorServiceUnavailableType = exports.ErrorNotFoundType = exports.ErrorInternalServerErrorType = exports.ErrorForbiddenType = exports.ErrorConflictType = exports.ErrorBadRequestUnexpectedJsonTypeType = exports.ErrorBadRequestType = exports.EngagementsCreateRequestEngagementType = exports.EngagementType = exports.DevUserJobTitle = exports.DevOrgAuthConnectionsUpdateRequestType = exports.DevOrgAuthConnectionsCreateRequestType = exports.Definedness = exports.DateTimePresetType = exports.DateFilterType = exports.CustomSchemaFragmentsSetRequestType = exports.CustomSchemaFragmentsListRequestPrune = exports.CustomSchemaFragmentType = exports.CustomSchemaFragmentFragmentType = exports.ConversationsCreateRequestTypeValue = exports.CommandSurfaceSurface = exports.CommandSurfaceObjectTypes = exports.CommandStatus = exports.CommandActionTemplateType = exports.CommandActionExecutorType = exports.CodeChangeSource = exports.ChatCompletionsRequestMessageRole = exports.BooleanExpressionType = exports.AuthTokenTokenType = exports.AuthTokenSubjectTokenType = exports.AuthTokenStatus = exports.AuthTokenRequestedTokenType = exports.AuthTokenGrantType = exports.AuthConnectionType = exports.AuthConnectionToggle = exports.AtomType = exports.AssociatedToType = exports.ArticleType = exports.ArticleStatus = exports.AggregationDetailAggregationType = exports.AccessLevel = void 0;
37
+ exports.SyncInStatus = exports.StockSchemaFragmentsListRequestPrune = exports.StockSchemaFragmentsListRequestFilterPreset = exports.StageValidationOptionForUpdate = exports.StageValidationOptionForCreate = exports.SnapWidgetsCreateRequestType = exports.SnapWidgetType = exports.SnapWidgetStatus = exports.SnapWidgetNamespace = exports.SlasFilterAppliesToOperatorType = exports.SlaType = exports.SlaSummaryStage = exports.SlaStatus = exports.SlaSelectorSeverity = exports.SlaSelectorPriority = exports.SlaSelectorAppliesTo = exports.SlaEvaluationPeriod = exports.SlaAppliesTo = exports.SendNotificationType = exports.SearchSortOrderParam = exports.SearchSortByParam = exports.SearchResultType = exports.SearchNamespace = exports.SearchHybridNamespace = exports.SchemaFieldDescriptorFieldType = exports.SchemaFieldDescriptorArrayTypeBaseType = exports.ReactionsUpdateRequestAction = exports.QuestionAnswerStatus = exports.PreferencesType = exports.PartType = exports.OrgType = exports.OrgScheduleStatus = exports.OrgScheduleFragmentStatus = exports.OrgEnvironment = exports.OpportunityPriority = exports.OpportunityForecastCategory = exports.MetricDefinitionStatus = exports.MetricDefinitionMetricType = exports.MetricDefinitionAppliesTo = exports.MetricActionExecuteRequestAction = exports.MemberType = exports.MeetingState = exports.MeetingChannel = exports.ListMode = exports.LinksDirection = exports.LinkType = exports.LinkEndpointType = exports.IssuePriority = exports.GroupedVistaFlavor = exports.GroupType = void 0;
38
+ exports.Api = exports.HttpClient = exports.ContentType = exports.WorkType = exports.WebhooksUpdateAction = exports.WebhookStatus = exports.WebhookEventType = exports.VistaType = exports.VistaGroupItemType = exports.VistaGroupItemState = exports.UserType = exports.UserState = exports.UomMetricScope = exports.UnitType = exports.TuringSourcesType = exports.TimelineEntryVisibility = exports.TimelineEntryType = exports.TimelineEntryPanel = exports.TimelineEntryObjectType = exports.TimelineEntriesUpdateRequestType = exports.TimelineEntriesCreateRequestType = exports.TimelineEntriesCollection = exports.TimelineCommentBodyType = exports.TimelineChangeEventEventType = exports.TicketSeverity = exports.TicketChannels = exports.TaskPriority = exports.SyncUnitSyncType = exports.SyncRunStartedBy = exports.SyncRunProgressState = exports.SyncRunMode = exports.SyncProgressState = exports.SyncOutStatus = exports.SyncMetadataFilterSyncOutFilterStatus = exports.SyncMetadataFilterSyncInFilterStatus = void 0;
39
39
  var AccessLevel;
40
40
  (function (AccessLevel) {
41
41
  AccessLevel["External"] = "external";
@@ -91,6 +91,11 @@ var ArticleType;
91
91
  ArticleType["Article"] = "article";
92
92
  ArticleType["ContentBlock"] = "content_block";
93
93
  })(ArticleType = exports.ArticleType || (exports.ArticleType = {}));
94
+ var AssociatedToType;
95
+ (function (AssociatedToType) {
96
+ AssociatedToType["Account"] = "account";
97
+ AssociatedToType["RevOrg"] = "rev_org";
98
+ })(AssociatedToType = exports.AssociatedToType || (exports.AssociatedToType = {}));
94
99
  var AtomType;
95
100
  (function (AtomType) {
96
101
  AtomType["Account"] = "account";
@@ -698,6 +703,11 @@ var QuestionAnswerStatus;
698
703
  QuestionAnswerStatus["Published"] = "published";
699
704
  QuestionAnswerStatus["ReviewNeeded"] = "review_needed";
700
705
  })(QuestionAnswerStatus = exports.QuestionAnswerStatus || (exports.QuestionAnswerStatus = {}));
706
+ var ReactionsUpdateRequestAction;
707
+ (function (ReactionsUpdateRequestAction) {
708
+ ReactionsUpdateRequestAction["Add"] = "add";
709
+ ReactionsUpdateRequestAction["Remove"] = "remove";
710
+ })(ReactionsUpdateRequestAction = exports.ReactionsUpdateRequestAction || (exports.ReactionsUpdateRequestAction = {}));
701
711
  var SchemaFieldDescriptorArrayTypeBaseType;
702
712
  (function (SchemaFieldDescriptorArrayTypeBaseType) {
703
713
  SchemaFieldDescriptorArrayTypeBaseType["Bool"] = "bool";
@@ -3159,6 +3169,33 @@ class Api extends HttpClient {
3159
3169
  * @secure
3160
3170
  */
3161
3171
  this.updateQuestionAnswer = (data, params = {}) => this.request(Object.assign({ path: `/question-answers.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
3172
+ /**
3173
+ * @description Lists the reactors for an object.
3174
+ *
3175
+ * @tags timeline-entries, works
3176
+ * @name ReactionsList
3177
+ * @request GET:/reactions.list
3178
+ * @secure
3179
+ */
3180
+ this.reactionsList = (query, params = {}) => this.request(Object.assign({ path: `/reactions.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
3181
+ /**
3182
+ * @description Lists the reactors for an object.
3183
+ *
3184
+ * @tags timeline-entries, works
3185
+ * @name ReactionsListPost
3186
+ * @request POST:/reactions.list
3187
+ * @secure
3188
+ */
3189
+ this.reactionsListPost = (data, params = {}) => this.request(Object.assign({ path: `/reactions.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
3190
+ /**
3191
+ * @description Updates a reaction for an object.
3192
+ *
3193
+ * @tags timeline-entries, works
3194
+ * @name ReactionsUpdate
3195
+ * @request POST:/reactions.update
3196
+ * @secure
3197
+ */
3198
+ this.reactionsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/reactions.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
3162
3199
  /**
3163
3200
  * @description Returns a response for the chat conversation.
3164
3201
  *
@@ -3240,6 +3277,24 @@ class Api extends HttpClient {
3240
3277
  * @secure
3241
3278
  */
3242
3279
  this.revOrgsUpdate = (data, params = {}) => this.request(Object.assign({ path: `/rev-orgs.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
3280
+ /**
3281
+ * @description Returns a list of associations on a Rev user.
3282
+ *
3283
+ * @tags rev-users
3284
+ * @name RevUsersAssociationsList
3285
+ * @request GET:/rev-users.associations.list
3286
+ * @secure
3287
+ */
3288
+ this.revUsersAssociationsList = (query, params = {}) => this.request(Object.assign({ path: `/rev-users.associations.list`, method: 'GET', query: query, secure: true, format: 'json' }, params));
3289
+ /**
3290
+ * @description Returns a list of associations on a Rev user.
3291
+ *
3292
+ * @tags rev-users
3293
+ * @name RevUsersAssociationsListPost
3294
+ * @request POST:/rev-users.associations.list
3295
+ * @secure
3296
+ */
3297
+ this.revUsersAssociationsListPost = (data, params = {}) => this.request(Object.assign({ path: `/rev-users.associations.list`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
3243
3298
  /**
3244
3299
  * @description Creates a Rev user for a Rev organization. Rev user can be a customer or a lead of an organization.
3245
3300
  *
@@ -4195,7 +4250,7 @@ class Api extends HttpClient {
4195
4250
  */
4196
4251
  this.webhooksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
4197
4252
  /**
4198
- * @description Creates new work ([issue](https://devrev.ai/docs/product/build), [ticket](https://devrev.ai/docs/product/support)) item. [task](https://docs.devrev.ai/product/tasks) and opportunity work types are supported in the beta version.
4253
+ * @description Creates new work ([issue](https://devrev.ai/docs/product/build), [ticket](https://devrev.ai/docs/product/support)) item. [task](https://devrev.ai/docs/product/tasks) and opportunity work types are supported in the beta version.
4199
4254
  *
4200
4255
  * @tags works
4201
4256
  * @name WorksCreate
@@ -8,7 +8,7 @@ export type Account = OrgBase & {
8
8
  * External refs are unique identifiers from your customer system of
9
9
  * records, stored as a list.
10
10
  */
11
- external_refs: string[];
11
+ external_refs?: string[];
12
12
  /** List of Dev user IDs owning this Account. */
13
13
  owned_by: UserSummary[];
14
14
  /** The Tier of the corresponding Account. */
@@ -1972,7 +1972,7 @@ export interface EventTimelineEntryCreated {
1972
1972
  export interface EventTimelineEntryDeleted {
1973
1973
  /**
1974
1974
  * The ID of the timeline entry that was deleted.
1975
- * @example "don:core:<partition>:devo/<dev-org-id>:ticket/123:timeline_event/<timeline-event-id>"
1975
+ * @example "don:core:dvrv-us-1:devo/example:ticket/123:comment/comment-id"
1976
1976
  */
1977
1977
  id: string;
1978
1978
  old_entry?: TimelineEntry;
@@ -1990,7 +1990,7 @@ export interface EventWebhookCreated {
1990
1990
  export interface EventWebhookDeleted {
1991
1991
  /**
1992
1992
  * The ID of the webhook that was deleted.
1993
- * @example "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>"
1993
+ * @example "don:integration:dvrv-us-1:devo/example:webhook/webhook-id"
1994
1994
  */
1995
1995
  id: string;
1996
1996
  }
@@ -4322,7 +4322,7 @@ export interface TimelineEntriesCreateResponse {
4322
4322
  export interface TimelineEntriesDeleteRequest {
4323
4323
  /**
4324
4324
  * The ID of the timeline entry to delete.
4325
- * @example "don:core:<partition>:devo/<dev-org-id>:ticket/123:timeline_event/<timeline-event-id>"
4325
+ * @example "don:core:dvrv-us-1:devo/example:ticket/123:comment/comment-id"
4326
4326
  */
4327
4327
  id: string;
4328
4328
  }
@@ -4338,7 +4338,7 @@ export type TimelineEntriesDeleteResponse = object;
4338
4338
  export interface TimelineEntriesGetRequest {
4339
4339
  /**
4340
4340
  * The ID of the timeline entry to get.
4341
- * @example "don:core:<partition>:devo/<dev-org-id>:ticket/123:timeline_event/<timeline-event-id>"
4341
+ * @example "don:core:dvrv-us-1:devo/example:ticket/123:comment/comment-id"
4342
4342
  */
4343
4343
  id: string;
4344
4344
  }
@@ -4411,7 +4411,7 @@ export type TimelineEntriesUpdateRequest = TimelineEntriesUpdateRequestTimelineC
4411
4411
  type: TimelineEntriesUpdateRequestType;
4412
4412
  /**
4413
4413
  * The ID of the timeline entry to update.
4414
- * @example "don:core:<partition>:devo/<dev-org-id>:ticket/123:timeline_event/<timeline-event-id>"
4414
+ * @example "don:core:dvrv-us-1:devo/example:ticket/123:comment/comment-id"
4415
4415
  */
4416
4416
  id: string;
4417
4417
  };
@@ -4697,7 +4697,7 @@ export interface WebhookEventRequest {
4697
4697
  webhook_deleted?: EventWebhookDeleted;
4698
4698
  /**
4699
4699
  * ID of the webhook for the event.
4700
- * @example "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>"
4700
+ * @example "don:integration:dvrv-us-1:devo/example:webhook/webhook-id"
4701
4701
  */
4702
4702
  webhook_id: string;
4703
4703
  webhook_updated?: EventWebhookUpdated;
@@ -4820,7 +4820,7 @@ export interface WebhooksCreateResponse {
4820
4820
  export interface WebhooksDeleteRequest {
4821
4821
  /**
4822
4822
  * ID for the webhook.
4823
- * @example "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>"
4823
+ * @example "don:integration:dvrv-us-1:devo/example:webhook/webhook-id"
4824
4824
  */
4825
4825
  id: string;
4826
4826
  }
@@ -4836,7 +4836,7 @@ export type WebhooksDeleteResponse = object;
4836
4836
  export interface WebhooksGetRequest {
4837
4837
  /**
4838
4838
  * ID for the webhook.
4839
- * @example "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>"
4839
+ * @example "don:integration:dvrv-us-1:devo/example:webhook/webhook-id"
4840
4840
  */
4841
4841
  id: string;
4842
4842
  }
@@ -4875,7 +4875,7 @@ export interface WebhooksUpdateRequest {
4875
4875
  event_types?: WebhooksUpdateRequestEventTypes;
4876
4876
  /**
4877
4877
  * ID for the webhook.
4878
- * @example "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>"
4878
+ * @example "don:integration:dvrv-us-1:devo/example:webhook/webhook-id"
4879
4879
  */
4880
4880
  id: string;
4881
4881
  /**
@@ -6614,7 +6614,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6614
6614
  timelineEntriesGet: (query: {
6615
6615
  /**
6616
6616
  * The ID of the timeline entry to get.
6617
- * @example "don:core:<partition>:devo/<dev-org-id>:ticket/123:timeline_event/<timeline-event-id>"
6617
+ * @example "don:core:dvrv-us-1:devo/example:ticket/123:comment/comment-id"
6618
6618
  */
6619
6619
  id: string;
6620
6620
  }, params?: RequestParams) => Promise<AxiosResponse<TimelineEntriesGetResponse, any>>;
@@ -6720,7 +6720,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6720
6720
  webhooksGet: (query: {
6721
6721
  /**
6722
6722
  * ID for the webhook.
6723
- * @example "don:integration:<partition>:devo/<dev-org-id>:webhook/<webhook-id>"
6723
+ * @example "don:integration:dvrv-us-1:devo/example:webhook/webhook-id"
6724
6724
  */
6725
6725
  id: string;
6726
6726
  }, params?: RequestParams) => Promise<AxiosResponse<WebhooksGetResponse, any>>;
@@ -6761,7 +6761,7 @@ export declare class Api<SecurityDataType extends unknown> extends HttpClient<Se
6761
6761
  */
6762
6762
  webhooksUpdate: (data: WebhooksUpdateRequest, params?: RequestParams) => Promise<AxiosResponse<WebhooksUpdateResponse, any>>;
6763
6763
  /**
6764
- * @description Creates new work ([issue](https://devrev.ai/docs/product/build), [ticket](https://devrev.ai/docs/product/support)) item. [task](https://docs.devrev.ai/product/tasks) and opportunity work types are supported in the beta version.
6764
+ * @description Creates new work ([issue](https://devrev.ai/docs/product/build), [ticket](https://devrev.ai/docs/product/support)) item. [task](https://devrev.ai/docs/product/tasks) and opportunity work types are supported in the beta version.
6765
6765
  *
6766
6766
  * @tags works
6767
6767
  * @name WorksCreate
@@ -1541,7 +1541,7 @@ class Api extends HttpClient {
1541
1541
  */
1542
1542
  this.webhooksUpdate = (data, params = {}) => this.request(Object.assign({ path: `/webhooks.update`, method: 'POST', body: data, secure: true, type: ContentType.Json, format: 'json' }, params));
1543
1543
  /**
1544
- * @description Creates new work ([issue](https://devrev.ai/docs/product/build), [ticket](https://devrev.ai/docs/product/support)) item. [task](https://docs.devrev.ai/product/tasks) and opportunity work types are supported in the beta version.
1544
+ * @description Creates new work ([issue](https://devrev.ai/docs/product/build), [ticket](https://devrev.ai/docs/product/support)) item. [task](https://devrev.ai/docs/product/tasks) and opportunity work types are supported in the beta version.
1545
1545
  *
1546
1546
  * @tags works
1547
1547
  * @name WorksCreate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrev/typescript-sdk",
3
- "version": "1.1.40",
3
+ "version": "1.1.41",
4
4
  "description": "## SDK Generation",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {