@distilled.cloud/zendesk 1.0.0-rc.19 → 1.0.0-rc.21
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.
- package/README.md +0 -1
- package/lib/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/credentials.d.ts +19 -8
- package/lib/credentials.d.ts.map +1 -1
- package/lib/errors.d.ts +12 -8
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.lazy.js.map +1 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +9 -12
- package/lib/protocol.d.ts.map +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/zendesk.d.ts +1111 -105
- package/lib/services/zendesk.d.ts.map +1 -1
- package/lib/services/zendesk.js +974 -952
- package/lib/services/zendesk.js.map +1 -1
- package/lib/services.lazy/zendesk.js +2 -2
- package/lib/traits.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/credentials.ts +43 -15
- package/src/errors.ts +13 -5
- package/src/protocol.ts +18 -29
- package/src/services/zendesk.ts +8731 -6021
|
@@ -6,52 +6,67 @@ export type { ZendeskOpError, ZendeskOpContext };
|
|
|
6
6
|
declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
|
|
7
7
|
readonly code: any;
|
|
8
8
|
readonly message: any;
|
|
9
|
+
readonly body: any;
|
|
10
|
+
readonly headers: any;
|
|
9
11
|
}> & (new (...args: any[]) => {
|
|
10
12
|
"@distilled.cloud/error/categories": {
|
|
11
13
|
BadRequestError: true;
|
|
12
14
|
};
|
|
13
15
|
});
|
|
14
16
|
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
17
|
+
readonly body?: Errors | Error400Body | BatchJobResponseOutput | SkillBasedRoutingAttributeValuesError | Error400Body2 | Error400Body5 | Error409Body | SavedSearchError | Error400Body4 | ApprovalRequestErrors | Error400Body3 | string;
|
|
15
18
|
}
|
|
16
19
|
declare const Conflict_base: S.TaggedErrorClass<"Conflict", {
|
|
17
20
|
readonly code: any;
|
|
18
21
|
readonly message: any;
|
|
22
|
+
readonly body: any;
|
|
23
|
+
readonly headers: any;
|
|
19
24
|
}> & (new (...args: any[]) => {
|
|
20
25
|
"@distilled.cloud/error/categories": {
|
|
21
26
|
ConflictError: true;
|
|
22
27
|
};
|
|
23
28
|
});
|
|
24
29
|
export declare class Conflict extends /*@__PURE__*/ Conflict_base {
|
|
30
|
+
readonly body?: BrandUserMigrationErrorResponse | Error409Body | SavedSearchError | Error409Body2 | TicketRedactionConflictError | string;
|
|
25
31
|
}
|
|
26
32
|
declare const Forbidden_base: S.TaggedErrorClass<"Forbidden", {
|
|
27
33
|
readonly code: any;
|
|
28
34
|
readonly message: any;
|
|
35
|
+
readonly body: any;
|
|
36
|
+
readonly headers: any;
|
|
29
37
|
}> & (new (...args: any[]) => {
|
|
30
38
|
"@distilled.cloud/error/categories": {
|
|
31
39
|
AuthError: true;
|
|
32
40
|
};
|
|
33
41
|
});
|
|
34
42
|
export declare class Forbidden extends /*@__PURE__*/ Forbidden_base {
|
|
43
|
+
readonly body?: Error403Body | Errors | Error400Body2 | Error400Body4 | Error403Body2 | Error403Body3 | TriggerRevisionErrorResponse | Error400Body | Error409Body | Error422Body2 | string;
|
|
35
44
|
}
|
|
36
45
|
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
37
46
|
readonly code: any;
|
|
38
47
|
readonly message: any;
|
|
48
|
+
readonly body: any;
|
|
49
|
+
readonly headers: any;
|
|
39
50
|
}> & (new (...args: any[]) => {
|
|
40
51
|
"@distilled.cloud/error/categories": {
|
|
41
52
|
BadRequestError: true;
|
|
42
53
|
};
|
|
43
54
|
});
|
|
44
55
|
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
56
|
+
readonly body?: Error400Body2 | Error409Body | SavedSearchError | Errors | Error400Body | Error400Body4 | TriggerRevisionErrorResponse | Error422Body2 | string;
|
|
45
57
|
}
|
|
46
58
|
declare const UnprocessableEntity_base: S.TaggedErrorClass<"UnprocessableEntity", {
|
|
47
59
|
readonly code: any;
|
|
48
60
|
readonly message: any;
|
|
61
|
+
readonly body: any;
|
|
62
|
+
readonly headers: any;
|
|
49
63
|
}> & (new (...args: any[]) => {
|
|
50
64
|
"@distilled.cloud/error/categories": {
|
|
51
65
|
BadRequestError: true;
|
|
52
66
|
};
|
|
53
67
|
});
|
|
54
68
|
export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
|
|
69
|
+
readonly body?: Error400Body | BrandUserMigrationErrorResponse | Error422Body | ApprovalRequestErrors | Error422Body3 | ItamRecordInvalidError | Error422Body5 | SavedSearchValidationError | TaskListValidationErrorResponse | Error422Body6 | Error409Body | Error422Body2 | Error422Body7 | Error422Body4 | string;
|
|
55
70
|
}
|
|
56
71
|
export type AddOrganizationTagsRequestTagsCase0List = Array<string>;
|
|
57
72
|
/** The tags to add to the ones already applied. An array of tag strings, or a single string. In either form each value is split on whitespace and on `,` `;` `|` `(` `)`, then stripped of special characters, downcased and de-duplicated. `null`, an empty array, an empty string and omitting the property are all accepted and leave the existing tags unchanged. Unlike the Set Tags operation, nothing here can clear a tag */
|
|
@@ -570,7 +585,7 @@ export interface UserForAdmin {
|
|
|
570
585
|
default_group_id?: number | undefined;
|
|
571
586
|
/** Any details you want to store about the user, such as an address */
|
|
572
587
|
details?: string | undefined;
|
|
573
|
-
/**
|
|
588
|
+
/** In responses, the user's email address selected for notifications. This can differ from the primary email address if the primary email is unverified or undeliverable. Writeable on create only. On update, a secondary email is added. See [Email Address](#email-address) */
|
|
574
589
|
email?: string | undefined;
|
|
575
590
|
/** A unique identifier from another system. The API treats the id as case insensitive. Example: "ian1" and "IAN1" are the same value. */
|
|
576
591
|
external_id?: string | null | undefined;
|
|
@@ -646,7 +661,7 @@ export type UserForEndUserPhotoMap = {
|
|
|
646
661
|
export interface UserForEndUser {
|
|
647
662
|
/** The time the user was created */
|
|
648
663
|
created_at?: string | undefined;
|
|
649
|
-
/** The
|
|
664
|
+
/** The user's email address selected for notifications. This can differ from the primary email address if the primary email is unverified or undeliverable. */
|
|
650
665
|
email?: string | undefined;
|
|
651
666
|
/** The time zone for the user */
|
|
652
667
|
iana_time_zone?: string | undefined;
|
|
@@ -1071,6 +1086,278 @@ export interface TicketFormObject {
|
|
|
1071
1086
|
export interface TicketFormResponse {
|
|
1072
1087
|
ticket_form?: TicketFormObject | undefined;
|
|
1073
1088
|
}
|
|
1089
|
+
export type UserBrandSeparationInputBrandId = number | string;
|
|
1090
|
+
export type UserBrandSeparationInputScope = "brand";
|
|
1091
|
+
/** A destination brand scope. The brand must be active and currently accept users into its separated scope. Supplying brand_id without scope infers scope: brand. Numeric-string IDs are coerced to integers by the API. */
|
|
1092
|
+
export interface UserBrandSeparationInput {
|
|
1093
|
+
brand_id: UserBrandSeparationInputBrandId;
|
|
1094
|
+
scope?: UserBrandSeparationInputScope | (string & {}) | undefined;
|
|
1095
|
+
}
|
|
1096
|
+
export interface CloneUserRequestUser {
|
|
1097
|
+
separation: UserBrandSeparationInput;
|
|
1098
|
+
}
|
|
1099
|
+
export interface CloneUserRequest {
|
|
1100
|
+
/** The id of the user */
|
|
1101
|
+
user_id: number;
|
|
1102
|
+
user: CloneUserRequestUser;
|
|
1103
|
+
}
|
|
1104
|
+
export type UserMigrationExecutionResultCase0Action = "update" | "clone" | "merge" | "move_references";
|
|
1105
|
+
export type UserMigrationExecutionResultCase0Status = "completed";
|
|
1106
|
+
export interface UserMigrationExecutionResultCase0 {
|
|
1107
|
+
action: UserMigrationExecutionResultCase0Action;
|
|
1108
|
+
status?: UserMigrationExecutionResultCase0Status | undefined;
|
|
1109
|
+
success?: boolean | undefined;
|
|
1110
|
+
[key: string]: unknown;
|
|
1111
|
+
}
|
|
1112
|
+
export type UserMigrationExecutionResultCase1Action = "conflict";
|
|
1113
|
+
export type UserMigrationExecutionResultCase1Status = "conflicted";
|
|
1114
|
+
export interface UserMigrationExecutionResultCase1 {
|
|
1115
|
+
action: UserMigrationExecutionResultCase1Action;
|
|
1116
|
+
status?: UserMigrationExecutionResultCase1Status | undefined;
|
|
1117
|
+
success?: boolean | undefined;
|
|
1118
|
+
[key: string]: unknown;
|
|
1119
|
+
}
|
|
1120
|
+
export type UserMigrationExecutionResultCase2Action = "ignore";
|
|
1121
|
+
export type UserMigrationExecutionResultCase2ErrorCode = "already_at_target_scope" | "user_not_found" | "user_not_end_user" | "user_not_in_source_scope";
|
|
1122
|
+
export interface UserMigrationExecutionResultCase2Error {
|
|
1123
|
+
code?: UserMigrationExecutionResultCase2ErrorCode | undefined;
|
|
1124
|
+
[key: string]: unknown;
|
|
1125
|
+
}
|
|
1126
|
+
export type UserMigrationExecutionResultCase2Status = "ignored";
|
|
1127
|
+
export interface UserMigrationExecutionResultCase2 {
|
|
1128
|
+
action: UserMigrationExecutionResultCase2Action;
|
|
1129
|
+
error: UserMigrationExecutionResultCase2Error;
|
|
1130
|
+
status?: UserMigrationExecutionResultCase2Status | undefined;
|
|
1131
|
+
success?: boolean | undefined;
|
|
1132
|
+
[key: string]: unknown;
|
|
1133
|
+
}
|
|
1134
|
+
export type UserMigrationExecutionResultCase3Action = "ignore";
|
|
1135
|
+
export type UserMigrationExecutionResultCase3ErrorCode = "no_brand_interaction";
|
|
1136
|
+
export interface UserMigrationExecutionResultCase3Error {
|
|
1137
|
+
code?: UserMigrationExecutionResultCase3ErrorCode | undefined;
|
|
1138
|
+
[key: string]: unknown;
|
|
1139
|
+
}
|
|
1140
|
+
export type UserMigrationExecutionResultCase3Status = "ignored";
|
|
1141
|
+
export interface UserMigrationExecutionResultCase3 {
|
|
1142
|
+
action: UserMigrationExecutionResultCase3Action;
|
|
1143
|
+
error: UserMigrationExecutionResultCase3Error;
|
|
1144
|
+
status?: UserMigrationExecutionResultCase3Status | undefined;
|
|
1145
|
+
success?: boolean | undefined;
|
|
1146
|
+
[key: string]: unknown;
|
|
1147
|
+
}
|
|
1148
|
+
export type UserMigrationExecutionResultCase4ErrorCode = "migration_already_in_progress";
|
|
1149
|
+
export interface UserMigrationExecutionResultCase4Error {
|
|
1150
|
+
code?: UserMigrationExecutionResultCase4ErrorCode | undefined;
|
|
1151
|
+
[key: string]: unknown;
|
|
1152
|
+
}
|
|
1153
|
+
export type UserMigrationExecutionResultCase4Status = "already_in_flight";
|
|
1154
|
+
export interface UserMigrationExecutionResultCase4 {
|
|
1155
|
+
error: UserMigrationExecutionResultCase4Error;
|
|
1156
|
+
status?: UserMigrationExecutionResultCase4Status | undefined;
|
|
1157
|
+
success?: boolean | undefined;
|
|
1158
|
+
[key: string]: unknown;
|
|
1159
|
+
}
|
|
1160
|
+
export type UserMigrationExecutionResultCase5Action = "update" | "clone" | "merge" | "move_references";
|
|
1161
|
+
export type UserMigrationExecutionResultCase5Status = "failed";
|
|
1162
|
+
export interface UserMigrationExecutionResultCase5 {
|
|
1163
|
+
action?: UserMigrationExecutionResultCase5Action | undefined;
|
|
1164
|
+
status?: UserMigrationExecutionResultCase5Status | undefined;
|
|
1165
|
+
success?: boolean | undefined;
|
|
1166
|
+
[key: string]: unknown;
|
|
1167
|
+
}
|
|
1168
|
+
/** Final per-user execution outcome from UserMigratorJob or a bulk migration. Optional attempt IDs identify a row only when that row records this outcome. */
|
|
1169
|
+
export type UserMigrationExecutionResult = UserMigrationExecutionResultCase0 | UserMigrationExecutionResultCase1 | UserMigrationExecutionResultCase2 | UserMigrationExecutionResultCase3 | UserMigrationExecutionResultCase4 | UserMigrationExecutionResultCase5;
|
|
1170
|
+
export type BrandUserMigrationPreviewCase0Action = "ignore" | "update";
|
|
1171
|
+
export interface BrandUserMigrationPreviewCase0 {
|
|
1172
|
+
action?: BrandUserMigrationPreviewCase0Action | undefined;
|
|
1173
|
+
[key: string]: unknown;
|
|
1174
|
+
}
|
|
1175
|
+
export type BrandUserMigrationPreviewCase1Action = "clone";
|
|
1176
|
+
export interface BrandUserMigrationPreviewCase1 {
|
|
1177
|
+
action?: BrandUserMigrationPreviewCase1Action | undefined;
|
|
1178
|
+
[key: string]: unknown;
|
|
1179
|
+
}
|
|
1180
|
+
export type BrandUserMigrationPreviewCase2Action = "merge";
|
|
1181
|
+
export interface BrandUserMigrationPreviewCase2 {
|
|
1182
|
+
action?: BrandUserMigrationPreviewCase2Action | undefined;
|
|
1183
|
+
[key: string]: unknown;
|
|
1184
|
+
}
|
|
1185
|
+
export type BrandUserMigrationPreviewCase3Action = "move_references";
|
|
1186
|
+
export interface BrandUserMigrationPreviewCase3 {
|
|
1187
|
+
action?: BrandUserMigrationPreviewCase3Action | undefined;
|
|
1188
|
+
[key: string]: unknown;
|
|
1189
|
+
}
|
|
1190
|
+
export type BrandUserMigrationPreviewCase4Action = "conflict";
|
|
1191
|
+
export interface BrandUserMigrationPreviewCase4 {
|
|
1192
|
+
action?: BrandUserMigrationPreviewCase4Action | undefined;
|
|
1193
|
+
[key: string]: unknown;
|
|
1194
|
+
}
|
|
1195
|
+
/** A read-only migration decision. The action determines the additional fields: `ignore` and `update` have only the common fields; `clone` adds `interacted_brands`; `merge` adds `matching_users`; `move_references` adds both; `conflict` adds `matching_users` and `user_identities`. */
|
|
1196
|
+
export type BrandUserMigrationPreview = BrandUserMigrationPreviewCase0 | BrandUserMigrationPreviewCase1 | BrandUserMigrationPreviewCase2 | BrandUserMigrationPreviewCase3 | BrandUserMigrationPreviewCase4;
|
|
1197
|
+
export interface BrandUserMigrationPreviewJobResultCase0 {
|
|
1198
|
+
id: number;
|
|
1199
|
+
success: boolean;
|
|
1200
|
+
user_migration: BrandUserMigrationPreview;
|
|
1201
|
+
}
|
|
1202
|
+
export interface BrandUserMigrationPreviewJobResultCase1Error {
|
|
1203
|
+
code: string;
|
|
1204
|
+
}
|
|
1205
|
+
export interface BrandUserMigrationPreviewJobResultCase1 {
|
|
1206
|
+
error: BrandUserMigrationPreviewJobResultCase1Error;
|
|
1207
|
+
id: number;
|
|
1208
|
+
success: boolean;
|
|
1209
|
+
}
|
|
1210
|
+
/** A read-only bulk preview result; ignore and conflict decisions are successful previews */
|
|
1211
|
+
export type BrandUserMigrationPreviewJobResult = BrandUserMigrationPreviewJobResultCase0 | BrandUserMigrationPreviewJobResultCase1;
|
|
1212
|
+
/** A per-user result from a bulk migration or bulk preview job */
|
|
1213
|
+
export type BrandUserMigrationJobResult = UserMigrationExecutionResult | BrandUserMigrationPreviewJobResult;
|
|
1214
|
+
export type UserMigrationJobStatusResultsCase0List = Array<BrandUserMigrationJobResult>;
|
|
1215
|
+
export type BrandUserMigrationValidationResultCase0Status = "users_migrations_complete";
|
|
1216
|
+
export interface BrandUserMigrationValidationResultCase0 {
|
|
1217
|
+
status?: BrandUserMigrationValidationResultCase0Status | undefined;
|
|
1218
|
+
success?: boolean | undefined;
|
|
1219
|
+
[key: string]: unknown;
|
|
1220
|
+
}
|
|
1221
|
+
export type BrandUserMigrationValidationResultCase1Status = "users_migrations_incomplete" | "invalid_migration_status" | "job_disabled";
|
|
1222
|
+
export interface BrandUserMigrationValidationResultCase1 {
|
|
1223
|
+
next_job_id?: unknown | null | undefined;
|
|
1224
|
+
status?: BrandUserMigrationValidationResultCase1Status | undefined;
|
|
1225
|
+
success?: boolean | undefined;
|
|
1226
|
+
[key: string]: unknown;
|
|
1227
|
+
}
|
|
1228
|
+
export type BrandUserMigrationValidationResultCase2InconsistenciesCount = 0;
|
|
1229
|
+
export type BrandUserMigrationValidationResultCase2Status = "no_inconsistencies_detected";
|
|
1230
|
+
export interface BrandUserMigrationValidationResultCase2 {
|
|
1231
|
+
inconsistencies_count: BrandUserMigrationValidationResultCase2InconsistenciesCount;
|
|
1232
|
+
next_job_id?: unknown | null | undefined;
|
|
1233
|
+
status?: BrandUserMigrationValidationResultCase2Status | undefined;
|
|
1234
|
+
success?: boolean | undefined;
|
|
1235
|
+
[key: string]: unknown;
|
|
1236
|
+
}
|
|
1237
|
+
export type BrandUserMigrationValidationResultCase3Status = "inconsistencies_detected";
|
|
1238
|
+
export interface BrandUserMigrationValidationResultCase3 {
|
|
1239
|
+
inconsistencies_count: number;
|
|
1240
|
+
next_job_id?: unknown | null | undefined;
|
|
1241
|
+
status?: BrandUserMigrationValidationResultCase3Status | undefined;
|
|
1242
|
+
success?: boolean | undefined;
|
|
1243
|
+
[key: string]: unknown;
|
|
1244
|
+
}
|
|
1245
|
+
/** Result of user or reference validation, not a per-user execution result. The ID is the parent migration ULID. Reference validation includes inconsistencies_count only when findings were evaluated. */
|
|
1246
|
+
export type BrandUserMigrationValidationResult = BrandUserMigrationValidationResultCase0 | BrandUserMigrationValidationResultCase1 | BrandUserMigrationValidationResultCase2 | BrandUserMigrationValidationResultCase3;
|
|
1247
|
+
/** Bulk preview and execution jobs return arrays. Individual execution and validation jobs return a single object. Results are null before any result is available; a completed outer status does not imply every item succeeded. */
|
|
1248
|
+
export type UserMigrationJobStatusResults = UserMigrationJobStatusResultsCase0List | UserMigrationExecutionResult | BrandUserMigrationValidationResult;
|
|
1249
|
+
export type UserMigrationJobStatusStatus = "queued" | "working" | "failed" | "completed";
|
|
1250
|
+
/** Job status for a user migration or brand-migration validation job. This migration-specific view does not extend the shared schema used by unrelated jobs. Poll the returned URL and inspect results as well as the outer status. */
|
|
1251
|
+
export interface UserMigrationJobStatus {
|
|
1252
|
+
/** Job ID, distinct from the parent migration and individual attempt IDs */
|
|
1253
|
+
id: string;
|
|
1254
|
+
/** Localized job type label */
|
|
1255
|
+
job_type?: string | undefined;
|
|
1256
|
+
/** Worker message, or the completion timestamp when no worker message exists */
|
|
1257
|
+
message?: string | null | undefined;
|
|
1258
|
+
/** Completed bulk tasks; null while queued and for non-bulk jobs */
|
|
1259
|
+
progress?: number | null | undefined;
|
|
1260
|
+
/** Bulk preview and execution jobs return arrays. Individual execution and validation jobs return a single object. Results are null before any result is available; a completed outer status does not imply every item succeeded. */
|
|
1261
|
+
results?: UserMigrationJobStatusResults | undefined;
|
|
1262
|
+
status: UserMigrationJobStatusStatus;
|
|
1263
|
+
/** Number of tasks for a bulk job; null for a non-bulk job */
|
|
1264
|
+
total?: number | null | undefined;
|
|
1265
|
+
/** URL to poll for progress and results */
|
|
1266
|
+
url: string;
|
|
1267
|
+
}
|
|
1268
|
+
export type AdHocUserMigrationResponseBrandUserMigrationMigrationAction = "clone";
|
|
1269
|
+
/** Profile photo attributes, or null when no photo is available */
|
|
1270
|
+
export type BrandUserMigrationUserPhotoMap = {
|
|
1271
|
+
[key: string]: unknown | undefined;
|
|
1272
|
+
};
|
|
1273
|
+
export type BrandUserMigrationScopeCase0Scope = "account";
|
|
1274
|
+
export interface BrandUserMigrationScopeCase0 {
|
|
1275
|
+
scope: BrandUserMigrationScopeCase0Scope;
|
|
1276
|
+
}
|
|
1277
|
+
export type BrandUserMigrationScopeCase1Scope = "brand";
|
|
1278
|
+
export interface BrandUserMigrationScopeCase1 {
|
|
1279
|
+
brand_id: number;
|
|
1280
|
+
scope: BrandUserMigrationScopeCase1Scope;
|
|
1281
|
+
}
|
|
1282
|
+
/** Stored user or identity separation scope; account scope has no brand_id */
|
|
1283
|
+
export type BrandUserMigrationScope = BrandUserMigrationScopeCase0 | BrandUserMigrationScopeCase1;
|
|
1284
|
+
/** User tags, when included */
|
|
1285
|
+
export type BrandUserMigrationUserTagsList = Array<string>;
|
|
1286
|
+
/** Custom user field values, when included */
|
|
1287
|
+
export type BrandUserMigrationUserUserFieldsMap = {
|
|
1288
|
+
[key: string]: unknown | undefined;
|
|
1289
|
+
};
|
|
1290
|
+
/** The standard User JSON returned by the caller's normal user presenter (AgentPresenter for admin callers), not a minimal migration-specific user. Common attributes are listed here; the full response also includes standard User fields according to caller permissions and account configuration. See the [Users JSON format](/api-reference/ticketing/users/users/#json-format). Synthetic migration examples show selected-field excerpts, not full captures. A user without an email address can have a null email value. */
|
|
1291
|
+
export interface BrandUserMigrationUser {
|
|
1292
|
+
/** Whether the user is active */
|
|
1293
|
+
active?: boolean | undefined;
|
|
1294
|
+
/** Display alias, if any */
|
|
1295
|
+
alias?: string | null | undefined;
|
|
1296
|
+
/** When the persisted user was created */
|
|
1297
|
+
created_at?: string | undefined;
|
|
1298
|
+
/** Custom role ID, if applicable */
|
|
1299
|
+
custom_role_id?: number | null | undefined;
|
|
1300
|
+
/** Default group ID, if any */
|
|
1301
|
+
default_group_id?: number | null | undefined;
|
|
1302
|
+
/** Additional user details, if any */
|
|
1303
|
+
details?: string | null | undefined;
|
|
1304
|
+
/** Email address selected for display, or null when unavailable */
|
|
1305
|
+
email?: string | null | undefined;
|
|
1306
|
+
/** External identifier, if any */
|
|
1307
|
+
external_id?: string | null | undefined;
|
|
1308
|
+
/** ID of the user */
|
|
1309
|
+
id: number;
|
|
1310
|
+
/** Last sign-in time, or null if none is recorded */
|
|
1311
|
+
last_login_at?: string | null | undefined;
|
|
1312
|
+
/** User locale */
|
|
1313
|
+
locale?: string | undefined;
|
|
1314
|
+
/** User locale ID */
|
|
1315
|
+
locale_id?: number | undefined;
|
|
1316
|
+
/** Display name of the user */
|
|
1317
|
+
name: string;
|
|
1318
|
+
/** User notes, if any */
|
|
1319
|
+
notes?: string | null | undefined;
|
|
1320
|
+
/** Default organization ID, if any */
|
|
1321
|
+
organization_id?: number | null | undefined;
|
|
1322
|
+
/** Displayed phone number, or null when unavailable */
|
|
1323
|
+
phone?: string | null | undefined;
|
|
1324
|
+
/** Profile photo attributes, or null when no photo is available */
|
|
1325
|
+
photo?: BrandUserMigrationUserPhotoMap | null | undefined;
|
|
1326
|
+
/** User role */
|
|
1327
|
+
role?: string | null | undefined;
|
|
1328
|
+
/** Role type, if applicable */
|
|
1329
|
+
role_type?: number | null | undefined;
|
|
1330
|
+
separation?: BrandUserMigrationScope | undefined;
|
|
1331
|
+
/** Whether the phone number is shared */
|
|
1332
|
+
shared_phone_number?: boolean | null | undefined;
|
|
1333
|
+
/** Signature, or null when no signature is configured */
|
|
1334
|
+
signature?: string | null | undefined;
|
|
1335
|
+
/** User tags, when included */
|
|
1336
|
+
tags?: BrandUserMigrationUserTagsList | undefined;
|
|
1337
|
+
/** When the persisted user was last updated */
|
|
1338
|
+
updated_at?: string | undefined;
|
|
1339
|
+
/** API URL of the user */
|
|
1340
|
+
url?: string | undefined;
|
|
1341
|
+
/** Custom user field values, when included */
|
|
1342
|
+
user_fields?: BrandUserMigrationUserUserFieldsMap | undefined;
|
|
1343
|
+
/** Whether the user has a verified identity */
|
|
1344
|
+
verified?: boolean | undefined;
|
|
1345
|
+
[key: string]: unknown;
|
|
1346
|
+
}
|
|
1347
|
+
export type AdHocUserMigrationResponseBrandUserMigrationStatus = "in_progress" | "completed" | "failed";
|
|
1348
|
+
/** An asynchronous ad-hoc Clone, independent of a brand migration run. migration_id is null and the recorded action remains clone. Normal acceptance is in_progress; because the row is reloaded after enqueue, a fast worker may already have completed or failed it. The response includes job_status instead of migrated_user regardless of this snapshot. */
|
|
1349
|
+
export interface AdHocUserMigrationResponseBrandUserMigration {
|
|
1350
|
+
id: string;
|
|
1351
|
+
job_status: UserMigrationJobStatus;
|
|
1352
|
+
migration_action: AdHocUserMigrationResponseBrandUserMigrationMigrationAction;
|
|
1353
|
+
migration_id: unknown | null;
|
|
1354
|
+
source_user: BrandUserMigrationUser;
|
|
1355
|
+
status: AdHocUserMigrationResponseBrandUserMigrationStatus;
|
|
1356
|
+
}
|
|
1357
|
+
export interface AdHocUserMigrationResponse {
|
|
1358
|
+
/** An asynchronous ad-hoc Clone, independent of a brand migration run. migration_id is null and the recorded action remains clone. Normal acceptance is in_progress; because the row is reloaded after enqueue, a fast worker may already have completed or failed it. The response includes job_status instead of migrated_user regardless of this snapshot. */
|
|
1359
|
+
brand_user_migration: AdHocUserMigrationResponseBrandUserMigration;
|
|
1360
|
+
}
|
|
1074
1361
|
export interface CountActivitiesRequest {
|
|
1075
1362
|
}
|
|
1076
1363
|
export interface ActivitiesCountResponseCount {
|
|
@@ -1375,7 +1662,7 @@ export interface CreateApprovalRequestRequestApprovalRequestsItem {
|
|
|
1375
1662
|
/** Parallel approval requests only. One entry per approval request to create, up to five. Each entry must specify exactly one of `assignee_user_id` or `assignee_group_id`. Can't be used with a top-level `assignee_user_id` or `assignee_group_id`. */
|
|
1376
1663
|
export type CreateApprovalRequestRequestApprovalRequestsList = Array<CreateApprovalRequestRequestApprovalRequestsItem>;
|
|
1377
1664
|
export interface CreateApprovalRequestRequestMetadataCallbackInfo {
|
|
1378
|
-
token?: string | null | undefined;
|
|
1665
|
+
token?: string | Redacted.Redacted<string> | null | undefined;
|
|
1379
1666
|
}
|
|
1380
1667
|
/** Optional metadata used to determine the origination of the approval request */
|
|
1381
1668
|
export interface CreateApprovalRequestRequestMetadata {
|
|
@@ -1771,7 +2058,7 @@ export type BrandUserMigrationJobsList = Array<BrandUserMigrationJobsItem>;
|
|
|
1771
2058
|
/** Execution mode of the migration */
|
|
1772
2059
|
export type BrandUserMigrationMode = "manual" | "auto";
|
|
1773
2060
|
/** Current status of the migration */
|
|
1774
|
-
export type BrandUserMigrationStatus = "in_progress" | "
|
|
2061
|
+
export type BrandUserMigrationStatus = "in_progress" | "reconciling" | "aborted" | "completed";
|
|
1775
2062
|
export interface BrandUserMigration {
|
|
1776
2063
|
/** ID of the account the migration belongs to */
|
|
1777
2064
|
account_id?: number | undefined;
|
|
@@ -2190,6 +2477,8 @@ export interface CustomRoleConfigurationObject {
|
|
|
2190
2477
|
change_management_access?: string | undefined;
|
|
2191
2478
|
/** Whether or not the agent has access to Chat */
|
|
2192
2479
|
chat_access?: boolean | undefined;
|
|
2480
|
+
/** Whether or not the agent can delete brands. Deletion is limited by the scope of `manage_brands`: "all" allows any brand, "member" only brands the agent belongs to, and "none" disables deletion regardless of this value */
|
|
2481
|
+
delete_brands?: boolean | undefined;
|
|
2193
2482
|
/** Whether or not the agent can view lists of user profiles. Allowed values: "full", "none" */
|
|
2194
2483
|
end_user_list_access?: string | undefined;
|
|
2195
2484
|
/** What the agent can do with end-user profiles. Allowed values: "edit", "edit-within-org", "full", "readonly" */
|
|
@@ -2216,6 +2505,10 @@ export interface CustomRoleConfigurationObject {
|
|
|
2216
2505
|
macro_access?: string | undefined;
|
|
2217
2506
|
/** Whether the agent can manage API credentials */
|
|
2218
2507
|
manage_api_credentials?: boolean | undefined;
|
|
2508
|
+
/** Whether the agent can create and manage approval requests */
|
|
2509
|
+
manage_approval_requests?: boolean | undefined;
|
|
2510
|
+
/** Which brands the agent can create and update. "all" covers every brand and brand settings. "member" covers only brands the agent belongs to. Allowed values: "all", "member", "none" */
|
|
2511
|
+
manage_brands?: string | undefined;
|
|
2219
2512
|
/** Whether or not the agent can manage business rules */
|
|
2220
2513
|
manage_business_rules?: boolean | undefined;
|
|
2221
2514
|
/** Whether or not the agent can manage change management configuration */
|
|
@@ -2242,7 +2535,7 @@ export interface CustomRoleConfigurationObject {
|
|
|
2242
2535
|
manage_malicious_attachments?: boolean | undefined;
|
|
2243
2536
|
/** Whether or not the agent can create and manage organization fields */
|
|
2244
2537
|
manage_organization_fields?: boolean | undefined;
|
|
2245
|
-
/** Whether or not the agent can manage
|
|
2538
|
+
/** Whether or not the agent can manage Zendesk Support apps. Defaults to false for custom roles. */
|
|
2246
2539
|
manage_support_apps?: boolean | undefined;
|
|
2247
2540
|
/** Whether or not the agent can create and manage ticket fields */
|
|
2248
2541
|
manage_ticket_fields?: boolean | undefined;
|
|
@@ -3122,10 +3415,6 @@ export interface CreateManyDynamicContentVariantsRequest {
|
|
|
3122
3415
|
/** The variants to create. The request is rejected with a 400 if the array is missing or empty, or if it holds more than 100 variants -- the shared bulk-job cap, `BulkJobData::ITEM_COUNT_LIMIT`. Variants are created by a background job, so each one succeeds or fails independently: a variant with a missing or invalid attribute fails on its own rather than failing the request. Check the returned job status for the per-variant result */
|
|
3123
3416
|
variants: CreateManyDynamicContentVariantsRequestVariantsList;
|
|
3124
3417
|
}
|
|
3125
|
-
export type DynamicContentVariantsResponseVariantsList = Array<DynamicContentVariantObject>;
|
|
3126
|
-
export interface DynamicContentVariantsResponse {
|
|
3127
|
-
variants?: DynamicContentVariantsResponseVariantsList | undefined;
|
|
3128
|
-
}
|
|
3129
3418
|
/** One membership to create: a user and an organization to assign them to. Neither property is required, and neither is checked at the door -- an item that omits or nulls either one, or that names a user or an organization outside the account, is accepted with a 200 and recorded as a `UserNotFound` or `OrganizationNotFound` failure against that item in the job results. An item whose user already belongs to the named organization is not a failure: the existing membership is returned unchanged, so the item is idempotent. Creating a membership has effects beyond the new row. On accounts **without** the multiple organizations setting, the same user may appear in at most one item in the whole request -- the same user in two items, even two identical items, is rejected with 400 before the job starts -- and creating a membership **deletes** the user's other organization memberships. On accounts with the `ocp_tighten_agent_org_access` feature, an item whose user the caller cannot manage organization memberships for is recorded as a `PermissionDenied` failure. */
|
|
3130
3419
|
export interface OrganizationMembershipCreateManyItemInput {
|
|
3131
3420
|
/** The ID of the organization to assign the user to. An explicit `null` behaves exactly like an unknown ID: the item is recorded as an `OrganizationNotFound` failure in the job results. Creating a membership has effects beyond the new row: * If this is the user's first organization membership, it is created as the default, which also sets the user's `organization_id`, and every unclosed ticket requested by the user is reassigned to this organization. * On accounts **without** the multiple organizations setting, all of the user's other organization memberships are **deleted**, and the user's unclosed requested tickets that belonged to those removed organizations move to the user's new default organization -- or have their organization cleared, if the account has the `unset_ticket_org_when_removing_default_user_org` feature. Tickets the user has in other organizations are left alone. * An item is recorded as a failure if the user is already at the account's `max_organization_memberships_per_user` limit (300 by default). */
|
|
@@ -3139,7 +3428,50 @@ export interface CreateManyOrganizationMembershipsRequest {
|
|
|
3139
3428
|
/** The memberships to create. An empty array, an explicit `null` and a missing wrapper are all rejected with 400, and more than 100 items is rejected with 400. */
|
|
3140
3429
|
organization_memberships: CreateManyOrganizationMembershipsRequestOrganizationMembershipsList;
|
|
3141
3430
|
}
|
|
3431
|
+
export type OrganizationCreateInputDomainNamesCase0List = Array<string>;
|
|
3432
|
+
/** Domain names and email addresses to associate with this organization. Accepts either an array of values or a single string of values separated by commas, semicolons or spaces. */
|
|
3433
|
+
export type OrganizationCreateInputDomainNames = OrganizationCreateInputDomainNamesCase0List | string;
|
|
3434
|
+
/** A unique external id to associate the organization to an external record. The id is case-insensitive -- "company1" and "Company1" are considered the same. A value already used by another organization fails with 422. */
|
|
3435
|
+
export type OrganizationCreateInputExternalId = string | number;
|
|
3436
|
+
/** Custom organization field values, keyed by field key. See [Custom organization fields](/api-reference/ticketing/organizations/organizations/#custom-organization-fields). Only keys matching an existing organization field take effect; unknown keys are silently ignored. Requires the `user_and_organization_fields` account feature; without it the whole map is silently ignored. */
|
|
3437
|
+
export type OrganizationCreateInputOrganizationFieldsMap = {
|
|
3438
|
+
[key: string]: unknown | undefined;
|
|
3439
|
+
};
|
|
3440
|
+
export type OrganizationCreateInputTagsCase0List = Array<string>;
|
|
3441
|
+
/** The tags of the organization. Accepts either an array of tags or a single string of space-separated tags. Requires the `user_and_organization_tags` account feature; without it the value is accepted and silently ignored. */
|
|
3442
|
+
export type OrganizationCreateInputTags = OrganizationCreateInputTagsCase0List | string;
|
|
3443
|
+
/** Which tickets end users in this organization can see. `restricted` hides each end user's tickets from the other end users in the organization; `organization` lets them see each other's tickets; `organization_and_descendants` extends that to end users in descendant organizations and requires the organization hierarchy to be enabled on the account, otherwise it is rejected with 422. `null` is accepted and leaves the restriction derived from `shared_tickets`. Takes precedence over `shared_tickets`. */
|
|
3444
|
+
export type OrganizationCreateInputTicketRestriction = "restricted" | "organization" | "organization_and_descendants";
|
|
3445
|
+
/** Organization attributes to create. Modeled on the parameters the create endpoints accept; response-only attributes such as `url`, `created_at`, `updated_at`, and `children_count` are not part of the request body. Every property other than `name` is optional. */
|
|
3446
|
+
export interface OrganizationCreateInput {
|
|
3447
|
+
/** Any details about the organization, such as the address. `null` is accepted and leaves the stored value empty. */
|
|
3448
|
+
details?: string | null | undefined;
|
|
3449
|
+
/** Domain names and email addresses to associate with this organization. Accepts either an array of values or a single string of values separated by commas, semicolons or spaces. */
|
|
3450
|
+
domain_names?: OrganizationCreateInputDomainNames | undefined;
|
|
3451
|
+
/** A unique external id to associate the organization to an external record. The id is case-insensitive -- "company1" and "Company1" are considered the same. A value already used by another organization fails with 422. */
|
|
3452
|
+
external_id?: OrganizationCreateInputExternalId | undefined;
|
|
3453
|
+
/** New tickets from users in this organization are automatically put in this group. `null` unassigns the group. */
|
|
3454
|
+
group_id?: number | null | undefined;
|
|
3455
|
+
/** A unique name for the organization. Cannot contain the `|` character and must be unique within the account; a duplicate fails with 422. Cannot be cleared -- an empty string or `null` fails the presence validation with 422. */
|
|
3456
|
+
name: string;
|
|
3457
|
+
/** Any notes you have about the organization. `null` is accepted and leaves the stored value empty. */
|
|
3458
|
+
notes?: string | null | undefined;
|
|
3459
|
+
/** Custom organization field values, keyed by field key. See [Custom organization fields](/api-reference/ticketing/organizations/organizations/#custom-organization-fields). Only keys matching an existing organization field take effect; unknown keys are silently ignored. Requires the `user_and_organization_fields` account feature; without it the whole map is silently ignored. */
|
|
3460
|
+
organization_fields?: OrganizationCreateInputOrganizationFieldsMap | null | undefined;
|
|
3461
|
+
/** End users in this organization are able to comment on each other's tickets. Only takes effect when `shared_tickets` is `true`. */
|
|
3462
|
+
shared_comments?: boolean | undefined;
|
|
3463
|
+
/** End users in this organization are able to see each other's tickets. Deprecated in favor of `ticket_restriction`, which takes precedence when both are sent in the same request. */
|
|
3464
|
+
shared_tickets?: boolean | undefined;
|
|
3465
|
+
/** The tags of the organization. Accepts either an array of tags or a single string of space-separated tags. Requires the `user_and_organization_tags` account feature; without it the value is accepted and silently ignored. */
|
|
3466
|
+
tags?: OrganizationCreateInputTags | undefined;
|
|
3467
|
+
/** Which tickets end users in this organization can see. `restricted` hides each end user's tickets from the other end users in the organization; `organization` lets them see each other's tickets; `organization_and_descendants` extends that to end users in descendant organizations and requires the organization hierarchy to be enabled on the account, otherwise it is rejected with 422. `null` is accepted and leaves the restriction derived from `shared_tickets`. Takes precedence over `shared_tickets`. */
|
|
3468
|
+
ticket_restriction?: OrganizationCreateInputTicketRestriction | (string & {}) | null | undefined;
|
|
3469
|
+
}
|
|
3470
|
+
/** The organizations to create. Each item is an organization input object with the same writable attributes as creating a single organization. The `name` property is the only required property for each item. */
|
|
3471
|
+
export type CreateManyOrganizationsRequestOrganizationsList = Array<OrganizationCreateInput>;
|
|
3142
3472
|
export interface CreateManyOrganizationsRequest {
|
|
3473
|
+
/** The organizations to create. Each item is an organization input object with the same writable attributes as creating a single organization. The `name` property is the only required property for each item. */
|
|
3474
|
+
organizations: CreateManyOrganizationsRequestOrganizationsList;
|
|
3143
3475
|
}
|
|
3144
3476
|
export type UserCreateInputAgentBrandIdsList = Array<number>;
|
|
3145
3477
|
/** The ids of the groups to assign to the user */
|
|
@@ -3370,46 +3702,8 @@ export interface ObjectTriggerObject {
|
|
|
3370
3702
|
export interface ObjectTriggerResponse {
|
|
3371
3703
|
trigger?: ObjectTriggerObject | undefined;
|
|
3372
3704
|
}
|
|
3373
|
-
/** An array of domain names associated with this organization */
|
|
3374
|
-
export type OrganizationObjectInputDomainNamesList = Array<string>;
|
|
3375
|
-
export type OrganizationObjectInputOrganizationFieldsValueCase3List = Array<string>;
|
|
3376
|
-
export type OrganizationObjectInputOrganizationFieldsValue = string | number | boolean | OrganizationObjectInputOrganizationFieldsValueCase3List;
|
|
3377
|
-
/** Custom fields for this organization. See [Custom organization fields](/api-reference/ticketing/organizations/organizations/#custom-organization-fields) */
|
|
3378
|
-
export type OrganizationObjectInputOrganizationFieldsMap = {
|
|
3379
|
-
[key: string]: OrganizationObjectInputOrganizationFieldsValue | null | undefined;
|
|
3380
|
-
};
|
|
3381
|
-
/** The tags of the organization */
|
|
3382
|
-
export type OrganizationObjectInputTagsList = Array<string>;
|
|
3383
|
-
/** Which tickets end users in this organization can see. Possible values are "restricted" or "organization". Takes precedence over the `shared_tickets` property. */
|
|
3384
|
-
export type OrganizationObjectInputTicketRestriction = "restricted" | "organization";
|
|
3385
|
-
export interface OrganizationObjectInput {
|
|
3386
|
-
/** Any details obout the organization, such as the address */
|
|
3387
|
-
details?: string | null | undefined;
|
|
3388
|
-
/** An array of domain names associated with this organization */
|
|
3389
|
-
domain_names?: OrganizationObjectInputDomainNamesList | undefined;
|
|
3390
|
-
/** A unique external id to associate organizations to an external record. The id is case-insensitive. For example, "company1" and "Company1" are considered the same */
|
|
3391
|
-
external_id?: string | null | undefined;
|
|
3392
|
-
/** New tickets from users in this organization are automatically put in this group */
|
|
3393
|
-
group_id?: number | null | undefined;
|
|
3394
|
-
/** Automatically assigned when the organization is created */
|
|
3395
|
-
id?: number | undefined;
|
|
3396
|
-
/** A unique name for the organization */
|
|
3397
|
-
name: string;
|
|
3398
|
-
/** Any notes you have about the organization */
|
|
3399
|
-
notes?: string | null | undefined;
|
|
3400
|
-
/** Custom fields for this organization. See [Custom organization fields](/api-reference/ticketing/organizations/organizations/#custom-organization-fields) */
|
|
3401
|
-
organization_fields?: OrganizationObjectInputOrganizationFieldsMap | null | undefined;
|
|
3402
|
-
/** End users in this organization are able to comment on each other's tickets */
|
|
3403
|
-
shared_comments?: boolean | undefined;
|
|
3404
|
-
/** End users in this organization are able to see each other's tickets. This property will be deprecated in the future. Use `ticket_restriction` instead. */
|
|
3405
|
-
shared_tickets?: boolean | undefined;
|
|
3406
|
-
/** The tags of the organization */
|
|
3407
|
-
tags?: OrganizationObjectInputTagsList | undefined;
|
|
3408
|
-
/** Which tickets end users in this organization can see. Possible values are "restricted" or "organization". Takes precedence over the `shared_tickets` property. */
|
|
3409
|
-
ticket_restriction?: OrganizationObjectInputTicketRestriction | (string & {}) | undefined;
|
|
3410
|
-
}
|
|
3411
3705
|
export interface CreateOrganizationRequest {
|
|
3412
|
-
organization:
|
|
3706
|
+
organization: OrganizationCreateInput;
|
|
3413
3707
|
}
|
|
3414
3708
|
export interface OrganizationResponse {
|
|
3415
3709
|
organization?: OrganizationObject | undefined;
|
|
@@ -3653,9 +3947,20 @@ export interface OrganizationCreateOrUpdateInput {
|
|
|
3653
3947
|
export interface CreateOrUpdateOrganizationRequest {
|
|
3654
3948
|
organization: OrganizationCreateOrUpdateInput;
|
|
3655
3949
|
}
|
|
3950
|
+
export interface CreateOrUpdateTicketFieldOptionRequestCustomFieldOption {
|
|
3951
|
+
/** The id of an existing option to update. When omitted, an existing option with a matching value is updated instead (see value) */
|
|
3952
|
+
id?: number | null | undefined;
|
|
3953
|
+
/** The display name of the option */
|
|
3954
|
+
name: string;
|
|
3955
|
+
/** The position of the option in the list. Defaults to the last position when omitted on create */
|
|
3956
|
+
position?: number | undefined;
|
|
3957
|
+
/** The value stored for the option. Required when creating a new option. When id is omitted, an existing option with this value (including a previously deleted one) is updated instead of creating a new option */
|
|
3958
|
+
value?: string | undefined;
|
|
3959
|
+
}
|
|
3656
3960
|
export interface CreateOrUpdateTicketFieldOptionRequest {
|
|
3657
3961
|
/** The ID of the ticket field */
|
|
3658
3962
|
ticket_field_id: number;
|
|
3963
|
+
custom_field_option: CreateOrUpdateTicketFieldOptionRequestCustomFieldOption;
|
|
3659
3964
|
}
|
|
3660
3965
|
export interface CustomFieldOptionResponse {
|
|
3661
3966
|
custom_field_option?: CustomFieldOptionObject | undefined;
|
|
@@ -4390,7 +4695,7 @@ export interface TargetObject {
|
|
|
4390
4695
|
/** Can be filled if it is a "todo" resource */
|
|
4391
4696
|
todo_list_id?: string | undefined;
|
|
4392
4697
|
/** Get the API token from My info > Show your tokens > Token for feed readers or the Basecamp API in your Basecamp account */
|
|
4393
|
-
token?: string | undefined;
|
|
4698
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
4394
4699
|
/** The 37Signals username of the account you use to log in to Basecamp */
|
|
4395
4700
|
username?: string | undefined;
|
|
4396
4701
|
preserve_format?: boolean | undefined;
|
|
@@ -5493,9 +5798,8 @@ export interface SatisfactionRatingObject {
|
|
|
5493
5798
|
/** The API url of this rating */
|
|
5494
5799
|
url?: string | undefined;
|
|
5495
5800
|
}
|
|
5496
|
-
export type SatisfactionRatingResponseSatisfactionRatingList = Array<SatisfactionRatingObject>;
|
|
5497
5801
|
export interface SatisfactionRatingResponse {
|
|
5498
|
-
satisfaction_rating?:
|
|
5802
|
+
satisfaction_rating?: SatisfactionRatingObject | undefined;
|
|
5499
5803
|
}
|
|
5500
5804
|
export interface CreateTokenForGrantTypeRequest {
|
|
5501
5805
|
}
|
|
@@ -5947,7 +6251,85 @@ export interface SuspensionObject {
|
|
|
5947
6251
|
export interface SuspensionResponse {
|
|
5948
6252
|
suspension: SuspensionObject;
|
|
5949
6253
|
}
|
|
6254
|
+
export type ViewConditionInputValueCase1List = Array<string>;
|
|
6255
|
+
/** The value the condition compares against. A scalar and a single-element array are equivalent - the value is always wrapped in an array before it is stored. null is normalized to an empty value, which is what value-less conditions such as "group_is_set_with_no_assignee" expect. Numbers must be sent as strings on this endpoint. */
|
|
6256
|
+
export type ViewConditionInputValue = string | ViewConditionInputValueCase1List;
|
|
6257
|
+
/** A single view condition. See the [Conditions reference](/documentation/ticketing/reference-guides/conditions-reference) for the fields, operators and values a view accepts. */
|
|
6258
|
+
export interface ViewConditionInput {
|
|
6259
|
+
/** The ticket property the condition tests, for example "status", "priority", "group_id" or "current_tags". Use "custom_fields_{id}" (or "ticket_fields_{id}") for a custom field. A condition object with no `field` is silently discarded instead of returning an error, and so is one whose `field` is null. */
|
|
6260
|
+
field?: string | null | undefined;
|
|
6261
|
+
/** The comparison operator, for example "is", "is_not", "less_than", "greater_than" or "includes". Defaults to "is" when omitted or null */
|
|
6262
|
+
operator?: string | null | undefined;
|
|
6263
|
+
/** The value the condition compares against. A scalar and a single-element array are equivalent - the value is always wrapped in an array before it is stored. null is normalized to an empty value, which is what value-less conditions such as "group_is_set_with_no_assignee" expect. Numbers must be sent as strings on this endpoint. */
|
|
6264
|
+
value?: ViewConditionInputValue | undefined;
|
|
6265
|
+
}
|
|
6266
|
+
/** The conditions a ticket must all meet to be included in the view. Required in practice: at least one `all` condition must be on "status", "type", "group_id", "assignee_id", "requester_id", "organization_id", "due_date", "support_type", one of the status duration fields ("OPEN", "PENDING", "HOLD", "CLOSED") or, on accounts with custom statuses, "custom_status_id", otherwise the request fails validation. May also be supplied as `conditions.all`. null is accepted and ignored, exactly as if the property were left out, while an empty array is a real empty condition set and fails that validation. A form-urlencoded client may send the array as an indexed hash (`all[0][field]=status`), which is accepted like the JSON array form - also for `any` and the nested `conditions` arrays */
|
|
6267
|
+
export type ViewInputAllList = Array<ViewConditionInput>;
|
|
6268
|
+
/** The conditions a ticket must meet at least one of to be included in the view. May also be supplied as `conditions.any`. null is accepted and ignored, exactly as if the property were left out; an empty array is a real empty condition set */
|
|
6269
|
+
export type ViewInputAnyList = Array<ViewConditionInput>;
|
|
6270
|
+
/** See the top-level `all` property. Unlike the top-level property, null here is not ignored: it is treated as an empty condition set, the same as leaving it out of the `conditions` object */
|
|
6271
|
+
export type ViewInputConditionsAllList = Array<ViewConditionInput>;
|
|
6272
|
+
/** See the top-level `any` property. Unlike the top-level property, null here is not ignored: it is treated as an empty condition set, the same as leaving it out of the `conditions` object */
|
|
6273
|
+
export type ViewInputConditionsAnyList = Array<ViewConditionInput>;
|
|
6274
|
+
/** An alternative way of supplying `all` and `any`, mirroring the `conditions` object of the response. The top-level `all` and `any` properties take precedence when both forms are sent. null is accepted and ignored, exactly as if the property were left out */
|
|
6275
|
+
export interface ViewInputConditions {
|
|
6276
|
+
/** See the top-level `all` property. Unlike the top-level property, null here is not ignored: it is treated as an empty condition set, the same as leaving it out of the `conditions` object */
|
|
6277
|
+
all?: ViewInputConditionsAllList | null | undefined;
|
|
6278
|
+
/** See the top-level `any` property. Unlike the top-level property, null here is not ignored: it is treated as an empty condition set, the same as leaving it out of the `conditions` object */
|
|
6279
|
+
any?: ViewInputConditionsAnyList | null | undefined;
|
|
6280
|
+
}
|
|
6281
|
+
export type ViewOutputInputColumnsItem = string | number;
|
|
6282
|
+
/** The columns to display, in order. System columns are given by name (see [View columns](#view-columns)); custom fields by their numeric id or by their title. Entries that resolve to no field, and the "score" column, are silently dropped rather than rejected. A maximum of 15 columns is enforced after that filtering - more than that fails validation. null and an empty array differ, and neither matches omitting the property: `[]` is a real empty column set, while null falls back to "satisfaction_score", "description", "requester", "created", "status", "assignee" - not to the "description", "requester", "created", "updated", "group", "assignee" set an omitted `columns` produces. On the `id` form of `POST /api/v2/views/preview/count` null keeps the referenced view's columns instead */
|
|
6283
|
+
export type ViewOutputInputColumnsList = Array<ViewOutputInputColumnsItem>;
|
|
6284
|
+
/** The columns, grouping and sorting used when the view is rendered in the agent interface. */
|
|
6285
|
+
export interface ViewOutputInput {
|
|
6286
|
+
/** The columns to display, in order. System columns are given by name (see [View columns](#view-columns)); custom fields by their numeric id or by their title. Entries that resolve to no field, and the "score" column, are silently dropped rather than rejected. A maximum of 15 columns is enforced after that filtering - more than that fails validation. null and an empty array differ, and neither matches omitting the property: `[]` is a real empty column set, while null falls back to "satisfaction_score", "description", "requester", "created", "status", "assignee" - not to the "description", "requester", "created", "updated", "group", "assignee" set an omitted `columns` produces. On the `id` form of `POST /api/v2/views/preview/count` null keeps the referenced view's columns instead */
|
|
6287
|
+
columns?: ViewOutputInputColumnsList | null | undefined;
|
|
6288
|
+
/** The column the tickets are grouped by. Unrecognised values are stored without error and simply do not group the view. An explicit null is accepted and leaves the view ungrouped */
|
|
6289
|
+
group_by?: string | null | undefined;
|
|
6290
|
+
/** The direction the groups are ordered in. "asc" (case-insensitive) orders ascending and any other value, including null, orders descending. Leaving it out orders descending when the output is built from scratch; on the `id` form of `POST /api/v2/views/preview/count` the existing view's grouping direction is kept */
|
|
6291
|
+
group_order?: string | null | undefined;
|
|
6292
|
+
/** The column the tickets are sorted by. "id" is stored as "nice_id". An explicit null is accepted and leaves the view unsorted, which on the `id` form of `POST /api/v2/views/preview/count` clears the referenced view's sort rather than keeping it */
|
|
6293
|
+
sort_by?: string | null | undefined;
|
|
6294
|
+
/** The direction the tickets are sorted in. Send it explicitly, because the two paths disagree on the fallback: when the output is built from scratch only "asc" (case-insensitive) sorts ascending, but on the `id` form of `POST /api/v2/views/preview/count` anything other than "desc", including an absent or null value, sorts ascending */
|
|
6295
|
+
sort_order?: string | null | undefined;
|
|
6296
|
+
}
|
|
6297
|
+
/** The id of the single group or user the view is restricted to. Ignored when `ids` is present. A numeric string is accepted and coerced, as in the example request body on the Create View endpoint */
|
|
6298
|
+
export type ViewRestrictionInputId = number | string;
|
|
6299
|
+
export type ViewRestrictionInputIdsItem = number | string;
|
|
6300
|
+
/** The ids of the groups the view is restricted to, and the preferred form for `type` "Group". All of them become the view's groups. For `type` "User" only the first id is used. Either `id` or `ids` must resolve to an existing group or user, otherwise the request fails validation. null, like an empty array, falls back to `id` */
|
|
6301
|
+
export type ViewRestrictionInputIdsList = Array<ViewRestrictionInputIdsItem>;
|
|
6302
|
+
/** Who may access the view. Send null to remove any restriction and give every agent in the account access. Omitting the property on an update leaves the current restriction untouched. */
|
|
6303
|
+
export interface ViewRestrictionInput {
|
|
6304
|
+
/** The id of the single group or user the view is restricted to. Ignored when `ids` is present. A numeric string is accepted and coerced, as in the example request body on the Create View endpoint */
|
|
6305
|
+
id?: ViewRestrictionInputId | undefined;
|
|
6306
|
+
/** The ids of the groups the view is restricted to, and the preferred form for `type` "Group". All of them become the view's groups. For `type` "User" only the first id is used. Either `id` or `ids` must resolve to an existing group or user, otherwise the request fails validation. null, like an empty array, falls back to `id` */
|
|
6307
|
+
ids?: ViewRestrictionInputIdsList | null | undefined;
|
|
6308
|
+
/** Whether the view is restricted to a user ("User") or to one or more groups ("Group"). The value is normalized before it is checked, so lower case and plural spellings are accepted too. "Account" is also valid, but it requires the account's own id in `id`, so sending `restriction: null` is the usual way to make a view account-wide. Any other value, for example "Role" or "Actor", is rejected with a 400 on `restriction.type`. Omitting `type` still raises a server error rather than returning a 400 */
|
|
6309
|
+
type: string;
|
|
6310
|
+
}
|
|
6311
|
+
/** The writable attributes accepted when creating a view. */
|
|
6312
|
+
export interface ViewInput {
|
|
6313
|
+
/** Whether the view is displayed. null is accepted and ignored, leaving the view active */
|
|
6314
|
+
active?: boolean | null | undefined;
|
|
6315
|
+
/** The conditions a ticket must all meet to be included in the view. Required in practice: at least one `all` condition must be on "status", "type", "group_id", "assignee_id", "requester_id", "organization_id", "due_date", "support_type", one of the status duration fields ("OPEN", "PENDING", "HOLD", "CLOSED") or, on accounts with custom statuses, "custom_status_id", otherwise the request fails validation. May also be supplied as `conditions.all`. null is accepted and ignored, exactly as if the property were left out, while an empty array is a real empty condition set and fails that validation. A form-urlencoded client may send the array as an indexed hash (`all[0][field]=status`), which is accepted like the JSON array form - also for `any` and the nested `conditions` arrays */
|
|
6316
|
+
all?: ViewInputAllList | null | undefined;
|
|
6317
|
+
/** The conditions a ticket must meet at least one of to be included in the view. May also be supplied as `conditions.any`. null is accepted and ignored, exactly as if the property were left out; an empty array is a real empty condition set */
|
|
6318
|
+
any?: ViewInputAnyList | null | undefined;
|
|
6319
|
+
/** An alternative way of supplying `all` and `any`, mirroring the `conditions` object of the response. The top-level `all` and `any` properties take precedence when both forms are sent. null is accepted and ignored, exactly as if the property were left out */
|
|
6320
|
+
conditions?: ViewInputConditions | null | undefined;
|
|
6321
|
+
/** The description of the view. Must not exceed 512 characters. null is accepted and leaves the description empty */
|
|
6322
|
+
description?: string | null | undefined;
|
|
6323
|
+
/** The columns, grouping and sorting of the view. The object is not partial: of its properties only `columns` falls back to the default column set when it is left out. `group_by`, `group_order`, `sort_by` and `sort_order` are left unset instead of taking their system defaults, so send the complete object if you care how the view is rendered. Omit `output` altogether, or send null, to get the default output */
|
|
6324
|
+
output?: ViewOutputInput | null | undefined;
|
|
6325
|
+
/** The position of the view relative to the other views. null is accepted and behaves exactly like leaving the property out, which places the view last */
|
|
6326
|
+
position?: number | null | undefined;
|
|
6327
|
+
restriction?: ViewRestrictionInput | null | undefined;
|
|
6328
|
+
/** The title of the view. Must not exceed 255 characters */
|
|
6329
|
+
title: string;
|
|
6330
|
+
}
|
|
5950
6331
|
export interface CreateViewRequest {
|
|
6332
|
+
view: ViewInput;
|
|
5951
6333
|
}
|
|
5952
6334
|
export type ViewResponseColumnsItemMap = {
|
|
5953
6335
|
[key: string]: unknown | undefined;
|
|
@@ -6103,8 +6485,6 @@ export interface CustomObjectRecordsLimitRequest {
|
|
|
6103
6485
|
}
|
|
6104
6486
|
export interface CustomObjectsLimitRequest {
|
|
6105
6487
|
}
|
|
6106
|
-
/** The decision to record */
|
|
6107
|
-
export type DecideApprovalRequestRequestStatus = "pending" | "active" | "approved" | "rejected" | "withdrawn";
|
|
6108
6488
|
export interface DecideApprovalRequestRequest {
|
|
6109
6489
|
/** The id of the approval workflow instance */
|
|
6110
6490
|
workflow_instance_id: string;
|
|
@@ -6112,8 +6492,8 @@ export interface DecideApprovalRequestRequest {
|
|
|
6112
6492
|
id: string;
|
|
6113
6493
|
/** Optional notes to record with the decision */
|
|
6114
6494
|
notes?: string | undefined;
|
|
6115
|
-
/** The decision to record */
|
|
6116
|
-
status:
|
|
6495
|
+
/** The decision to record. Case-insensitive; the server normalizes the value. Canonical values are pending, active, approved, rejected, withdrawn. */
|
|
6496
|
+
status: string;
|
|
6117
6497
|
}
|
|
6118
6498
|
export interface ApprovalRequestShowResponseApprovalRequestAssigneeGroup {
|
|
6119
6499
|
/** Unique identifier for the assigned group */
|
|
@@ -6806,6 +7186,10 @@ export interface DynamicContentListVariantsRequest {
|
|
|
6806
7186
|
/** Field to sort results by. Prefix with `-` for descending order. When used with cursor pagination, this determines the cursor ordering. Example: `?sort=name` or `?sort=-created_at` */
|
|
6807
7187
|
sort?: string | undefined;
|
|
6808
7188
|
}
|
|
7189
|
+
export type DynamicContentVariantsResponseVariantsList = Array<DynamicContentVariantObject>;
|
|
7190
|
+
export interface DynamicContentVariantsResponse {
|
|
7191
|
+
variants?: DynamicContentVariantsResponseVariantsList | undefined;
|
|
7192
|
+
}
|
|
6809
7193
|
/** Cursor pagination parameters (JSON:API style) */
|
|
6810
7194
|
export type ExecuteViewRequestPageCase1 = DynamicContentListVariantsRequestPageCase1;
|
|
6811
7195
|
export type ExecuteViewRequestPage = number | DynamicContentListVariantsRequestPageCase1;
|
|
@@ -7176,12 +7560,31 @@ export interface GetAccessRuleRequest {
|
|
|
7176
7560
|
}
|
|
7177
7561
|
export interface GetAccountEmailSettingsRequest {
|
|
7178
7562
|
}
|
|
7563
|
+
export type AccountSettingsEmailObjectEmailCategoryOutcomeOverridesAdultContent = "default" | "accept" | "suspend";
|
|
7564
|
+
export type AccountSettingsEmailObjectEmailCategoryOutcomeOverridesBlocklisted = "default" | "accept" | "suspend";
|
|
7565
|
+
export type AccountSettingsEmailObjectEmailCategoryOutcomeOverridesMarketing = "default" | "accept" | "suspend";
|
|
7566
|
+
export type AccountSettingsEmailObjectEmailCategoryOutcomeOverridesPhishing = "default" | "accept" | "suspend";
|
|
7567
|
+
export type AccountSettingsEmailObjectEmailCategoryOutcomeOverridesScam = "default" | "accept" | "suspend";
|
|
7568
|
+
export type AccountSettingsEmailObjectEmailCategoryOutcomeOverridesSlightlySpam = "default" | "accept" | "suspend";
|
|
7569
|
+
export type AccountSettingsEmailObjectEmailCategoryOutcomeOverridesSpam = "default" | "accept" | "suspend";
|
|
7570
|
+
/** Whether emails that match given categories follow the default outcome or experience overrides to accept or suspend. Only present when the feature is available for the account. */
|
|
7571
|
+
export interface AccountSettingsEmailObjectEmailCategoryOutcomeOverrides {
|
|
7572
|
+
adult_content?: AccountSettingsEmailObjectEmailCategoryOutcomeOverridesAdultContent | (string & {}) | undefined;
|
|
7573
|
+
blocklisted?: AccountSettingsEmailObjectEmailCategoryOutcomeOverridesBlocklisted | (string & {}) | undefined;
|
|
7574
|
+
marketing?: AccountSettingsEmailObjectEmailCategoryOutcomeOverridesMarketing | (string & {}) | undefined;
|
|
7575
|
+
phishing?: AccountSettingsEmailObjectEmailCategoryOutcomeOverridesPhishing | (string & {}) | undefined;
|
|
7576
|
+
scam?: AccountSettingsEmailObjectEmailCategoryOutcomeOverridesScam | (string & {}) | undefined;
|
|
7577
|
+
slightly_spam?: AccountSettingsEmailObjectEmailCategoryOutcomeOverridesSlightlySpam | (string & {}) | undefined;
|
|
7578
|
+
spam?: AccountSettingsEmailObjectEmailCategoryOutcomeOverridesSpam | (string & {}) | undefined;
|
|
7579
|
+
}
|
|
7179
7580
|
/** The sender authentication profile in use. */
|
|
7180
7581
|
export type AccountSettingsEmailObjectEmailSenderAuthenticationProfile = "default" | "enhanced" | "enhancedAllTraffic";
|
|
7181
7582
|
/** Email settings */
|
|
7182
7583
|
export interface AccountSettingsEmailObject {
|
|
7183
7584
|
accept_wildcard_emails?: boolean | undefined;
|
|
7184
7585
|
custom_dkim_domain?: boolean | undefined;
|
|
7586
|
+
/** Whether emails that match given categories follow the default outcome or experience overrides to accept or suspend. Only present when the feature is available for the account. */
|
|
7587
|
+
email_category_outcome_overrides?: AccountSettingsEmailObjectEmailCategoryOutcomeOverrides | undefined;
|
|
7185
7588
|
/** Whether AI agent comments are included in email notifications for Help Center tickets. Only present when the feature is available for the account. */
|
|
7186
7589
|
email_hc_ai_agent_comments?: boolean | undefined;
|
|
7187
7590
|
/** Whether incoming email is subjected to sender authentication checks (SPF, DKIM). This setting is deprecated and will be removed soon. It can still be turned on, but after it's on you can't turn it off */
|
|
@@ -7216,7 +7619,7 @@ export interface EmailSettingsResponse {
|
|
|
7216
7619
|
}
|
|
7217
7620
|
export interface GetAccountSettingsRequest {
|
|
7218
7621
|
/** Legacy CSRF token. Ignored by API. */
|
|
7219
|
-
authenticity_token?: string | undefined;
|
|
7622
|
+
authenticity_token?: string | Redacted.Redacted<string> | undefined;
|
|
7220
7623
|
}
|
|
7221
7624
|
/** The active features for an account. See [Active Features](#active-features) */
|
|
7222
7625
|
export interface AccountSettingsActiveFeaturesObject {
|
|
@@ -7791,7 +8194,7 @@ export interface OauthTokenObject {
|
|
|
7791
8194
|
/** An array of the valid scopes for this token. See [Scopes](#scopes) below */
|
|
7792
8195
|
scopes?: OauthTokenObjectScopesList | undefined;
|
|
7793
8196
|
/** The access token */
|
|
7794
|
-
token?: string | undefined;
|
|
8197
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
7795
8198
|
/** The API url of this record */
|
|
7796
8199
|
url?: string | undefined;
|
|
7797
8200
|
/** The latest time this token was used for authentication */
|
|
@@ -7851,7 +8254,7 @@ export interface CurrentUserResponseUser {
|
|
|
7851
8254
|
default_group_id?: number | undefined;
|
|
7852
8255
|
/** Any details you want to store about the user, such as an address */
|
|
7853
8256
|
details?: string | undefined;
|
|
7854
|
-
/**
|
|
8257
|
+
/** In responses, the user's email address selected for notifications. This can differ from the primary email address if the primary email is unverified or undeliverable. Writeable on create only. On update, a secondary email is added. See [Email Address](#email-address) */
|
|
7855
8258
|
email?: string | undefined;
|
|
7856
8259
|
/** A unique identifier from another system. The API treats the id as case insensitive. Example: "ian1" and "IAN1" are the same value. */
|
|
7857
8260
|
external_id?: string | null | undefined;
|
|
@@ -7920,7 +8323,7 @@ export interface CurrentUserResponseUser {
|
|
|
7920
8323
|
/** Any of the user's identities is verified. See [User Identities](/api-reference/ticketing/users/user_identities) */
|
|
7921
8324
|
verified?: boolean | undefined;
|
|
7922
8325
|
/** CSRF token required by some Zendesk APIs. */
|
|
7923
|
-
authenticity_token?: string | undefined;
|
|
8326
|
+
authenticity_token?: string | Redacted.Redacted<string> | undefined;
|
|
7924
8327
|
[key: string]: unknown;
|
|
7925
8328
|
}
|
|
7926
8329
|
export interface CurrentUserResponse {
|
|
@@ -8266,6 +8669,11 @@ export interface GetJobStatusRequest {
|
|
|
8266
8669
|
/** the Id of the Job status */
|
|
8267
8670
|
job_status_id: string;
|
|
8268
8671
|
}
|
|
8672
|
+
export interface UserMigrationJobStatusResponse {
|
|
8673
|
+
job_status: UserMigrationJobStatus;
|
|
8674
|
+
}
|
|
8675
|
+
export type GetJobStatusResponseBody = JobStatusResponse | UserMigrationJobStatusResponse;
|
|
8676
|
+
export type GetJobStatusResponse = GetJobStatusResponseBody;
|
|
8269
8677
|
export interface GetLocaleByIdRequest {
|
|
8270
8678
|
/** The ID or the [BCP-47 code](https://en.wikipedia.org/wiki/IETF_language_tag) of the locale. Examples: es-419, en-us, pr-br */
|
|
8271
8679
|
locale_id: string;
|
|
@@ -8604,9 +9012,8 @@ export interface SatisfactionReasonObject {
|
|
|
8604
9012
|
/** Translated value of the reason in the account locale */
|
|
8605
9013
|
value: string;
|
|
8606
9014
|
}
|
|
8607
|
-
export type SatisfactionReasonResponseReasonList = Array<SatisfactionReasonObject>;
|
|
8608
9015
|
export interface SatisfactionReasonResponse {
|
|
8609
|
-
|
|
9016
|
+
satisfaction_reason?: SatisfactionReasonObject | undefined;
|
|
8610
9017
|
}
|
|
8611
9018
|
export interface GetSecuritySettingsRequest {
|
|
8612
9019
|
/** When brand separation is enabled, scopes the security settings to the specified brand. */
|
|
@@ -9860,7 +10267,7 @@ export interface SkillBasedRoutingAttributeValuesResponse {
|
|
|
9860
10267
|
attribute_values?: SkillBasedRoutingAttributeValuesResponseAttributeValuesList | undefined;
|
|
9861
10268
|
}
|
|
9862
10269
|
export interface ListApprovalRequestsRequest {
|
|
9863
|
-
/** Filter by a comma-separated list of one or more approval statuses. Allowed values are active, approved, rejected, withdrawn. Maximum 100 values. */
|
|
10270
|
+
/** Filter by a comma-separated list of one or more approval statuses. Allowed values are active, approved, rejected, withdrawn. Case-insensitive. Maximum 100 values. */
|
|
9864
10271
|
filter_status_?: string | undefined;
|
|
9865
10272
|
/** Filter by a comma-separated list of assigned user ids. Maximum 100 ids. */
|
|
9866
10273
|
filter_assignee_user_id_?: string | undefined;
|
|
@@ -10221,6 +10628,34 @@ export interface ListBrandsResponse {
|
|
|
10221
10628
|
/** Per-brand permissions for the current user, returned only with `include=permissions`. */
|
|
10222
10629
|
permissions?: ListBrandsResponsePermissionsList | undefined;
|
|
10223
10630
|
}
|
|
10631
|
+
export type ListBrandUserMigrationInconsistenciesRequestPage = ListAuditLogsRequestPage;
|
|
10632
|
+
export interface ListBrandUserMigrationInconsistenciesRequest {
|
|
10633
|
+
/** The ID of the brand */
|
|
10634
|
+
brand_id: number;
|
|
10635
|
+
/** ULID of the parent brand user migration */
|
|
10636
|
+
migration_id: string;
|
|
10637
|
+
/** Cursor-based pagination parameters (JSON:API style). Supports nested parameters: - `page[size]` - Number of records per page (default varies by endpoint, typically 100) - `page[after]` - Cursor token to fetch records after this position - `page[before]` - Cursor token to fetch records before this position Example: `?page[size]=50&page[after]=eyJvIjoiaWQiLCJ2IjoiYVFFPSJ9` */
|
|
10638
|
+
page?: ListAuditLogsRequestPage | undefined;
|
|
10639
|
+
}
|
|
10640
|
+
export type ListBrandUserMigrationInconsistenciesResponseLinks = CustomObjectRecordsResponseLinks;
|
|
10641
|
+
export type ListBrandUserMigrationInconsistenciesResponseMeta = CustomObjectRecordsResponseMeta;
|
|
10642
|
+
export type ListBrandUserMigrationInconsistenciesResponseInconsistenciesItemCase0ReferenceType = "ticket_requester" | "ticket_collaborator";
|
|
10643
|
+
export interface ListBrandUserMigrationInconsistenciesResponseInconsistenciesItemCase0 {
|
|
10644
|
+
reference_type?: ListBrandUserMigrationInconsistenciesResponseInconsistenciesItemCase0ReferenceType | undefined;
|
|
10645
|
+
[key: string]: unknown;
|
|
10646
|
+
}
|
|
10647
|
+
export type ListBrandUserMigrationInconsistenciesResponseInconsistenciesItemCase1ReferenceType = "identity";
|
|
10648
|
+
export interface ListBrandUserMigrationInconsistenciesResponseInconsistenciesItemCase1 {
|
|
10649
|
+
reference_type?: ListBrandUserMigrationInconsistenciesResponseInconsistenciesItemCase1ReferenceType | undefined;
|
|
10650
|
+
[key: string]: unknown;
|
|
10651
|
+
}
|
|
10652
|
+
export type ListBrandUserMigrationInconsistenciesResponseInconsistenciesItem = ListBrandUserMigrationInconsistenciesResponseInconsistenciesItemCase0 | ListBrandUserMigrationInconsistenciesResponseInconsistenciesItemCase1;
|
|
10653
|
+
export type ListBrandUserMigrationInconsistenciesResponseInconsistenciesList = Array<ListBrandUserMigrationInconsistenciesResponseInconsistenciesItem>;
|
|
10654
|
+
export interface ListBrandUserMigrationInconsistenciesResponse {
|
|
10655
|
+
links?: CustomObjectRecordsResponseLinks | undefined;
|
|
10656
|
+
meta?: CustomObjectRecordsResponseMeta | undefined;
|
|
10657
|
+
inconsistencies: ListBrandUserMigrationInconsistenciesResponseInconsistenciesList;
|
|
10658
|
+
}
|
|
10224
10659
|
export interface ListBrandUserMigrationsRequest {
|
|
10225
10660
|
/** The ID of the brand */
|
|
10226
10661
|
brand_id: number;
|
|
@@ -10229,6 +10664,46 @@ export type BrandUserMigrationsResponseUserMigrationsList = Array<BrandUserMigra
|
|
|
10229
10664
|
export interface BrandUserMigrationsResponse {
|
|
10230
10665
|
user_migrations?: BrandUserMigrationsResponseUserMigrationsList | undefined;
|
|
10231
10666
|
}
|
|
10667
|
+
export type ListBrandUserMigrationUsersRequestPage = ListAuditLogsRequestPage;
|
|
10668
|
+
export type ListBrandUserMigrationUsersRequestStatus = "not_started" | "in_progress" | "failed" | "conflicted" | "completed" | "all";
|
|
10669
|
+
export interface ListBrandUserMigrationUsersRequest {
|
|
10670
|
+
/** The ID of the brand */
|
|
10671
|
+
brand_id: number;
|
|
10672
|
+
/** ULID of the parent brand user migration */
|
|
10673
|
+
migration_id: string;
|
|
10674
|
+
/** Cursor-based pagination parameters (JSON:API style). Supports nested parameters: - `page[size]` - Number of records per page (default varies by endpoint, typically 100) - `page[after]` - Cursor token to fetch records after this position - `page[before]` - Cursor token to fetch records before this position Example: `?page[size]=50&page[after]=eyJvIjoiaWQiLCJ2IjoiYVFFPSJ9` */
|
|
10675
|
+
page?: ListAuditLogsRequestPage | undefined;
|
|
10676
|
+
/** User migration status to list; all includes every listed status, not ignored users */
|
|
10677
|
+
status?: ListBrandUserMigrationUsersRequestStatus | (string & {}) | undefined;
|
|
10678
|
+
}
|
|
10679
|
+
export type ListBrandUserMigrationUsersResponseLinks = CustomObjectRecordsResponseLinks;
|
|
10680
|
+
export type ListBrandUserMigrationUsersResponseMeta = CustomObjectRecordsResponseMeta;
|
|
10681
|
+
export interface ListBrandUserMigrationUsersResponseRemainingUsersItemMatchingUsersItem {
|
|
10682
|
+
id: number;
|
|
10683
|
+
}
|
|
10684
|
+
/** Present only for conflicted entries; may be empty */
|
|
10685
|
+
export type ListBrandUserMigrationUsersResponseRemainingUsersItemMatchingUsersList = Array<ListBrandUserMigrationUsersResponseRemainingUsersItemMatchingUsersItem>;
|
|
10686
|
+
/** Present only when an executable action has been recorded */
|
|
10687
|
+
export type ListBrandUserMigrationUsersResponseRemainingUsersItemMigrationAction = "update" | "clone" | "merge" | "move_references";
|
|
10688
|
+
export type ListBrandUserMigrationUsersResponseRemainingUsersItemStatus = "not_started" | "in_progress" | "failed" | "conflicted" | "completed";
|
|
10689
|
+
export interface ListBrandUserMigrationUsersResponseRemainingUsersItem {
|
|
10690
|
+
/** Present only for conflicted entries; may be empty */
|
|
10691
|
+
matching_users?: ListBrandUserMigrationUsersResponseRemainingUsersItemMatchingUsersList | undefined;
|
|
10692
|
+
/** Present only when an executable action has been recorded */
|
|
10693
|
+
migration_action?: ListBrandUserMigrationUsersResponseRemainingUsersItemMigrationAction | undefined;
|
|
10694
|
+
/** Parent migration ULID; present once a migration attempt exists */
|
|
10695
|
+
migration_id?: string | undefined;
|
|
10696
|
+
status: ListBrandUserMigrationUsersResponseRemainingUsersItemStatus;
|
|
10697
|
+
/** Present for failed and conflicted entries. Failed entries contain a stable failure code such as `user_tickets_exceeded` or `unexpected_error`. Conflicted entries contain the stored reason such as `multiple_target_matches`, or null if unavailable. */
|
|
10698
|
+
status_info?: string | null | undefined;
|
|
10699
|
+
user_id: number;
|
|
10700
|
+
}
|
|
10701
|
+
export type ListBrandUserMigrationUsersResponseRemainingUsersList = Array<ListBrandUserMigrationUsersResponseRemainingUsersItem>;
|
|
10702
|
+
export interface ListBrandUserMigrationUsersResponse {
|
|
10703
|
+
links?: CustomObjectRecordsResponseLinks | undefined;
|
|
10704
|
+
meta?: CustomObjectRecordsResponseMeta | undefined;
|
|
10705
|
+
remaining_users: ListBrandUserMigrationUsersResponseRemainingUsersList;
|
|
10706
|
+
}
|
|
10232
10707
|
export interface ListCCDRequestsRequest {
|
|
10233
10708
|
/** Possible values are "updated_at", "created_at" */
|
|
10234
10709
|
sort_by?: string | undefined;
|
|
@@ -11257,9 +11732,9 @@ export interface SkillBasedRoutingAttributeDefinitions {
|
|
|
11257
11732
|
}
|
|
11258
11733
|
export interface ListSatisfactionRatingReasonsRequest {
|
|
11259
11734
|
}
|
|
11260
|
-
export type
|
|
11735
|
+
export type SatisfactionReasonsResponseSatisfactionReasonsList = Array<SatisfactionReasonObject>;
|
|
11261
11736
|
export interface SatisfactionReasonsResponse {
|
|
11262
|
-
|
|
11737
|
+
satisfaction_reasons?: SatisfactionReasonsResponseSatisfactionReasonsList | undefined;
|
|
11263
11738
|
}
|
|
11264
11739
|
/** Cursor pagination parameters (JSON:API style) */
|
|
11265
11740
|
export type ListSatisfactionRatingsRequestPageCase1 = DynamicContentListVariantsRequestPageCase1;
|
|
@@ -12379,10 +12854,14 @@ export interface MarkTicketAsSpamAndSuspendRequesterRequest {
|
|
|
12379
12854
|
ticket_id: number;
|
|
12380
12855
|
}
|
|
12381
12856
|
export type MarkTicketAsSpamAndSuspendRequesterResponse = string;
|
|
12857
|
+
export interface MergeEndUsersRequestUser {
|
|
12858
|
+
/** ID of the selected destination user */
|
|
12859
|
+
id: number;
|
|
12860
|
+
}
|
|
12382
12861
|
export interface MergeEndUsersRequest {
|
|
12383
12862
|
/** The id of the user */
|
|
12384
12863
|
user_id: number;
|
|
12385
|
-
user:
|
|
12864
|
+
user: MergeEndUsersRequestUser;
|
|
12386
12865
|
}
|
|
12387
12866
|
/** Ids of tickets to merge into the target ticket */
|
|
12388
12867
|
export type MergeTicketsIntoTargetTicketRequestIdsList = Array<number>;
|
|
@@ -12400,6 +12879,91 @@ export interface MergeTicketsIntoTargetTicketRequest {
|
|
|
12400
12879
|
/** Whether comment in target ticket is public or private */
|
|
12401
12880
|
target_comment_is_public?: boolean | undefined;
|
|
12402
12881
|
}
|
|
12882
|
+
export interface MigrateBrandUserRequest {
|
|
12883
|
+
/** The ID of the brand */
|
|
12884
|
+
brand_id: number;
|
|
12885
|
+
/** ULID of the parent brand user migration */
|
|
12886
|
+
migration_id: string;
|
|
12887
|
+
/** The id of the user */
|
|
12888
|
+
user_id: number;
|
|
12889
|
+
}
|
|
12890
|
+
export type BrandUserMigrationResultResponseBrandUserMigrationCase0MigrationAction = "update" | "clone" | "merge" | "move_references";
|
|
12891
|
+
export type BrandUserMigrationResultResponseBrandUserMigrationCase0Status = "completed";
|
|
12892
|
+
export interface BrandUserMigrationResultResponseBrandUserMigrationCase0 {
|
|
12893
|
+
id: string;
|
|
12894
|
+
migrated_user: BrandUserMigrationUser;
|
|
12895
|
+
migration_action: BrandUserMigrationResultResponseBrandUserMigrationCase0MigrationAction | null;
|
|
12896
|
+
migration_id: string;
|
|
12897
|
+
source_user: BrandUserMigrationUser;
|
|
12898
|
+
status: BrandUserMigrationResultResponseBrandUserMigrationCase0Status;
|
|
12899
|
+
}
|
|
12900
|
+
export type BrandUserMigrationResultResponseBrandUserMigrationCase1Case0MigrationAction = "update" | "clone" | "merge" | "move_references";
|
|
12901
|
+
export type BrandUserMigrationResultResponseBrandUserMigrationCase1Case0Status = "in_progress" | "completed";
|
|
12902
|
+
export interface BrandUserMigrationResultResponseBrandUserMigrationCase1Case0 {
|
|
12903
|
+
migration_action?: BrandUserMigrationResultResponseBrandUserMigrationCase1Case0MigrationAction | null | undefined;
|
|
12904
|
+
status?: BrandUserMigrationResultResponseBrandUserMigrationCase1Case0Status | undefined;
|
|
12905
|
+
[key: string]: unknown;
|
|
12906
|
+
}
|
|
12907
|
+
export type BrandUserMigrationResultResponseBrandUserMigrationCase1Case1Status = "failed";
|
|
12908
|
+
export interface BrandUserMigrationResultResponseBrandUserMigrationCase1Case1 {
|
|
12909
|
+
status?: BrandUserMigrationResultResponseBrandUserMigrationCase1Case1Status | undefined;
|
|
12910
|
+
[key: string]: unknown;
|
|
12911
|
+
}
|
|
12912
|
+
export type BrandUserMigrationResultResponseBrandUserMigrationCase1Case2Status = "conflicted" | "ignored";
|
|
12913
|
+
export interface BrandUserMigrationResultResponseBrandUserMigrationCase1Case2 {
|
|
12914
|
+
migration_action?: unknown | null | undefined;
|
|
12915
|
+
status?: BrandUserMigrationResultResponseBrandUserMigrationCase1Case2Status | undefined;
|
|
12916
|
+
[key: string]: unknown;
|
|
12917
|
+
}
|
|
12918
|
+
export type BrandUserMigrationResultResponseBrandUserMigrationCase1 = BrandUserMigrationResultResponseBrandUserMigrationCase1Case0 | BrandUserMigrationResultResponseBrandUserMigrationCase1Case1 | BrandUserMigrationResultResponseBrandUserMigrationCase1Case2;
|
|
12919
|
+
/** A per-user attempt, distinct from the parent user_migration. Completed replay or inline Update returns migrated_user without a job. Asynchronous acceptance returns job_status without migrated_user, normally in_progress with an executable action. The row is reloaded after enqueue: a fast worker may already have advanced its status or finalized a different action, including a null action for an ignored/conflicted outcome or a failed reselected Update. Poll the job for the final outcome. */
|
|
12920
|
+
export type BrandUserMigrationResultResponseBrandUserMigration = BrandUserMigrationResultResponseBrandUserMigrationCase0 | BrandUserMigrationResultResponseBrandUserMigrationCase1;
|
|
12921
|
+
export interface BrandUserMigrationResultResponse {
|
|
12922
|
+
/** A per-user attempt, distinct from the parent user_migration. Completed replay or inline Update returns migrated_user without a job. Asynchronous acceptance returns job_status without migrated_user, normally in_progress with an executable action. The row is reloaded after enqueue: a fast worker may already have advanced its status or finalized a different action, including a null action for an ignored/conflicted outcome or a failed reselected Update. Poll the job for the final outcome. */
|
|
12923
|
+
brand_user_migration: BrandUserMigrationResultResponseBrandUserMigration;
|
|
12924
|
+
}
|
|
12925
|
+
export type MigrateManyBrandUsersRequestUserIdsItem = number | string;
|
|
12926
|
+
/** One to 100 source user IDs, as integers or numeric strings. After numeric conversion, each ID must be between 0 and 9223372036854775807 and unique within the request. For example, [1, "01"] contains duplicate IDs and returns 422. Missing, empty, malformed, or oversized lists return 400. */
|
|
12927
|
+
export type MigrateManyBrandUsersRequestUserIdsList = Array<MigrateManyBrandUsersRequestUserIdsItem>;
|
|
12928
|
+
export interface MigrateManyBrandUsersRequest {
|
|
12929
|
+
/** The ID of the brand */
|
|
12930
|
+
brand_id: number;
|
|
12931
|
+
/** ULID of the parent brand user migration */
|
|
12932
|
+
migration_id: string;
|
|
12933
|
+
/** One to 100 source user IDs, as integers or numeric strings. After numeric conversion, each ID must be between 0 and 9223372036854775807 and unique within the request. For example, [1, "01"] contains duplicate IDs and returns 422. Missing, empty, malformed, or oversized lists return 400. */
|
|
12934
|
+
user_ids: MigrateManyBrandUsersRequestUserIdsList;
|
|
12935
|
+
}
|
|
12936
|
+
/** Selects the brand whose references move. Explicit selection is recommended. If brand.id is omitted, the API uses the source brand for a brand-to-account move, otherwise the destination brand. When the destination is brand-scoped, this must identify that same brand. */
|
|
12937
|
+
export interface MoveUserReferencesRequestBrand {
|
|
12938
|
+
/** ID of an active brand in the account, not the account-scope ID zero */
|
|
12939
|
+
id?: number | undefined;
|
|
12940
|
+
}
|
|
12941
|
+
export interface MoveUserReferencesRequestUser {
|
|
12942
|
+
/** ID of the existing destination user in the account */
|
|
12943
|
+
id: number;
|
|
12944
|
+
}
|
|
12945
|
+
export interface MoveUserReferencesRequest {
|
|
12946
|
+
/** The id of the user */
|
|
12947
|
+
user_id: number;
|
|
12948
|
+
/** Selects the brand whose references move. Explicit selection is recommended. If brand.id is omitted, the API uses the source brand for a brand-to-account move, otherwise the destination brand. When the destination is brand-scoped, this must identify that same brand. */
|
|
12949
|
+
brand?: MoveUserReferencesRequestBrand | undefined;
|
|
12950
|
+
user: MoveUserReferencesRequestUser;
|
|
12951
|
+
}
|
|
12952
|
+
export type UserMoveReferencesResponseBrandUserMigrationMigrationAction = "move_references";
|
|
12953
|
+
export type UserMoveReferencesResponseBrandUserMigrationStatus = "in_progress" | "completed" | "failed";
|
|
12954
|
+
/** An asynchronous ad-hoc reference move, independent of a brand migration run. migration_id is null and the recorded action remains move_references. Normal acceptance is in_progress; because the row is reloaded after enqueue, a fast worker may already have completed or failed it. The response includes job_status instead of migrated_user in every case. */
|
|
12955
|
+
export interface UserMoveReferencesResponseBrandUserMigration {
|
|
12956
|
+
id: string;
|
|
12957
|
+
job_status: UserMigrationJobStatus;
|
|
12958
|
+
migration_action: UserMoveReferencesResponseBrandUserMigrationMigrationAction;
|
|
12959
|
+
migration_id: unknown | null;
|
|
12960
|
+
source_user: BrandUserMigrationUser;
|
|
12961
|
+
status: UserMoveReferencesResponseBrandUserMigrationStatus;
|
|
12962
|
+
}
|
|
12963
|
+
export interface UserMoveReferencesResponse {
|
|
12964
|
+
/** An asynchronous ad-hoc reference move, independent of a brand migration run. migration_id is null and the recorded action remains move_references. Normal acceptance is in_progress; because the row is reloaded after enqueue, a fast worker may already have completed or failed it. The response includes job_status instead of migrated_user in every case. */
|
|
12965
|
+
brand_user_migration: UserMoveReferencesResponseBrandUserMigration;
|
|
12966
|
+
}
|
|
12403
12967
|
export interface OpenTicketInAgentBrowserRequest {
|
|
12404
12968
|
/** ID of an agent */
|
|
12405
12969
|
agent_id: number;
|
|
@@ -12458,7 +13022,75 @@ export interface PostAutocompleteUserRequest {
|
|
|
12458
13022
|
/** Source for lookup relationship autocomplete */
|
|
12459
13023
|
source?: string | undefined;
|
|
12460
13024
|
}
|
|
13025
|
+
export interface PreviewBrandUserMigrationRequest {
|
|
13026
|
+
/** The ID of the brand */
|
|
13027
|
+
brand_id: number;
|
|
13028
|
+
/** ULID of the parent brand user migration */
|
|
13029
|
+
migration_id: string;
|
|
13030
|
+
/** The id of the user */
|
|
13031
|
+
user_id: number;
|
|
13032
|
+
}
|
|
13033
|
+
export interface BrandUserMigrationPreviewResponse {
|
|
13034
|
+
user_migration: BrandUserMigrationPreview;
|
|
13035
|
+
}
|
|
13036
|
+
export type ViewPreviewCountConditionInputValueCase2Item = string | number;
|
|
13037
|
+
export type ViewPreviewCountConditionInputValueCase2List = Array<ViewPreviewCountConditionInputValueCase2Item>;
|
|
13038
|
+
/** The value the condition compares against. A scalar and a single-element array are equivalent - the value is always wrapped in an array before it is used. null is normalized to an empty value, which is what value-less conditions such as "group_is_set_with_no_assignee" expect */
|
|
13039
|
+
export type ViewPreviewCountConditionInputValue = string | number | ViewPreviewCountConditionInputValueCase2List;
|
|
13040
|
+
/** A single condition of the previewed view definition. See the [Conditions reference](/documentation/ticketing/reference-guides/conditions-reference). */
|
|
13041
|
+
export interface ViewPreviewCountConditionInput {
|
|
13042
|
+
/** The ticket property the condition tests, for example "status", "priority", "group_id" or "current_tags". Use "custom_fields_{id}" (or "ticket_fields_{id}") for a custom field. A condition object with no `field` is silently discarded instead of returning an error, and so is one whose `field` is null. */
|
|
13043
|
+
field?: string | null | undefined;
|
|
13044
|
+
/** The comparison operator, for example "is", "is_not", "less_than", "greater_than" or "includes". Defaults to "is" when omitted or null */
|
|
13045
|
+
operator?: string | null | undefined;
|
|
13046
|
+
/** The value the condition compares against. A scalar and a single-element array are equivalent - the value is always wrapped in an array before it is used. null is normalized to an empty value, which is what value-less conditions such as "group_is_set_with_no_assignee" expect */
|
|
13047
|
+
value?: ViewPreviewCountConditionInputValue | undefined;
|
|
13048
|
+
}
|
|
13049
|
+
/** The conditions a ticket must all meet to be counted. May also be supplied as `conditions.all` */
|
|
13050
|
+
export type ViewPreviewCountInputAllList = Array<ViewPreviewCountConditionInput>;
|
|
13051
|
+
/** The conditions a ticket must meet at least one of to be counted. May also be supplied as `conditions.any` */
|
|
13052
|
+
export type ViewPreviewCountInputAnyList = Array<ViewPreviewCountConditionInput>;
|
|
13053
|
+
/** See the top-level `all` property */
|
|
13054
|
+
export type ViewPreviewCountInputConditionsAllList = Array<ViewPreviewCountConditionInput>;
|
|
13055
|
+
/** See the top-level `any` property */
|
|
13056
|
+
export type ViewPreviewCountInputConditionsAnyList = Array<ViewPreviewCountConditionInput>;
|
|
13057
|
+
/** An alternative way of supplying `all` and `any`, mirroring the `conditions` object of the response. The top-level `all` and `any` properties take precedence when both forms are sent */
|
|
13058
|
+
export interface ViewPreviewCountInputConditions {
|
|
13059
|
+
/** See the top-level `all` property */
|
|
13060
|
+
all?: ViewPreviewCountInputConditionsAllList | null | undefined;
|
|
13061
|
+
/** See the top-level `any` property */
|
|
13062
|
+
any?: ViewPreviewCountInputConditionsAnyList | null | undefined;
|
|
13063
|
+
}
|
|
13064
|
+
/** An existing active view to base the preview on, or the string alias "incoming" for the built-in incoming view. The conditions supplied here are then merged into that view's own conditions rather than replacing them. Inactive views cannot be previewed. A numeric string is accepted for the id and coerced. null is accepted and previews a view built from scratch, the same as leaving the property out */
|
|
13065
|
+
export type ViewPreviewCountInputId = number | string;
|
|
13066
|
+
/** The view definition to count tickets for. Nothing is persisted. Unless `id` is given, at least one `all` condition must be on "status", "type", "group_id", "assignee_id", "requester_id", "organization_id", "due_date", "support_type", one of the status duration fields ("OPEN", "PENDING", "HOLD", "CLOSED") or, on accounts with custom statuses, "custom_status_id", otherwise the definition is rejected as invalid. With `id` the referenced view's own conditions are merged in first and can satisfy the requirement on their own. Each of the properties below accepts an explicit null, which behaves exactly like leaving that property out. */
|
|
13067
|
+
export interface ViewPreviewCountInput {
|
|
13068
|
+
/** The conditions a ticket must all meet to be counted. May also be supplied as `conditions.all` */
|
|
13069
|
+
all?: ViewPreviewCountInputAllList | null | undefined;
|
|
13070
|
+
/** The conditions a ticket must meet at least one of to be counted. May also be supplied as `conditions.any` */
|
|
13071
|
+
any?: ViewPreviewCountInputAnyList | null | undefined;
|
|
13072
|
+
/** An alternative way of supplying `all` and `any`, mirroring the `conditions` object of the response. The top-level `all` and `any` properties take precedence when both forms are sent */
|
|
13073
|
+
conditions?: ViewPreviewCountInputConditions | null | undefined;
|
|
13074
|
+
/** An existing active view to base the preview on, or the string alias "incoming" for the built-in incoming view. The conditions supplied here are then merged into that view's own conditions rather than replacing them. Inactive views cannot be previewed. A numeric string is accepted for the id and coerced. null is accepted and previews a view built from scratch, the same as leaving the property out */
|
|
13075
|
+
id?: ViewPreviewCountInputId | undefined;
|
|
13076
|
+
/** The columns, grouping and sorting of the previewed view. It does not change the returned count, but it is still validated, so more than 15 columns fails the request. When `id` is given the supplied properties are merged into that view's own output; otherwise the object is built from scratch, where only `columns` falls back to the default column set and the grouping and sorting properties are left unset */
|
|
13077
|
+
output?: ViewOutputInput | null | undefined;
|
|
13078
|
+
}
|
|
12461
13079
|
export interface PreviewCountRequest {
|
|
13080
|
+
/** Internal. Whether archived tickets are included in the count. Defaults to false, and an explicit null is treated as false */
|
|
13081
|
+
_include_archive?: boolean | null | undefined;
|
|
13082
|
+
view: ViewPreviewCountInput;
|
|
13083
|
+
}
|
|
13084
|
+
export type PreviewManyBrandUserMigrationsRequestUserIdsItem = number | string;
|
|
13085
|
+
/** One to 100 source user IDs, as integers or numeric strings. After numeric conversion, each ID must be between 0 and 9223372036854775807 and unique within the request. For example, [1, "01"] contains duplicate IDs and returns 422. Missing, empty, malformed, or oversized lists return 400. */
|
|
13086
|
+
export type PreviewManyBrandUserMigrationsRequestUserIdsList = Array<PreviewManyBrandUserMigrationsRequestUserIdsItem>;
|
|
13087
|
+
export interface PreviewManyBrandUserMigrationsRequest {
|
|
13088
|
+
/** The ID of the brand */
|
|
13089
|
+
brand_id: number;
|
|
13090
|
+
/** ULID of the parent brand user migration */
|
|
13091
|
+
migration_id: string;
|
|
13092
|
+
/** One to 100 source user IDs, as integers or numeric strings. After numeric conversion, each ID must be between 0 and 9223372036854775807 and unique within the request. For example, [1, "01"] contains duplicate IDs and returns 422. Missing, empty, malformed, or oversized lists return 400. */
|
|
13093
|
+
user_ids: PreviewManyBrandUserMigrationsRequestUserIdsList;
|
|
12462
13094
|
}
|
|
12463
13095
|
/** Cursor pagination parameters (JSON:API style) */
|
|
12464
13096
|
export type PreviewViewsRequestPageCase1 = DynamicContentListVariantsRequestPageCase1;
|
|
@@ -12715,7 +13347,7 @@ export interface RenewCurrentSessionRequest {
|
|
|
12715
13347
|
}
|
|
12716
13348
|
export interface RenewSessionResponse {
|
|
12717
13349
|
/** A token of authenticity for the request */
|
|
12718
|
-
authenticity_token?: string | undefined;
|
|
13350
|
+
authenticity_token?: string | Redacted.Redacted<string> | undefined;
|
|
12719
13351
|
}
|
|
12720
13352
|
/** The ids of the object's custom fields, in the desired order. Required */
|
|
12721
13353
|
export type ReorderCustomObjectFieldsRequestCustomObjectFieldIdsList = Array<string>;
|
|
@@ -12757,7 +13389,11 @@ export interface ReorderSLAPoliciesRequest {
|
|
|
12757
13389
|
sla_policy_ids?: ReorderSLAPoliciesRequestSlaPolicyIdsList | null | undefined;
|
|
12758
13390
|
}
|
|
12759
13391
|
export type ReorderSLAPoliciesResponse = string;
|
|
13392
|
+
/** The ticket field ids in the desired order. Not all ids are required; only the ones provided are assigned to the first positions, and missing ids are assigned incremental positions automatically */
|
|
13393
|
+
export type ReorderTicketFieldsRequestTicketFieldIdsList = Array<number>;
|
|
12760
13394
|
export interface ReorderTicketFieldsRequest {
|
|
13395
|
+
/** The ticket field ids in the desired order. Not all ids are required; only the ones provided are assigned to the first positions, and missing ids are assigned incremental positions automatically */
|
|
13396
|
+
ticket_field_ids: ReorderTicketFieldsRequestTicketFieldIdsList;
|
|
12761
13397
|
}
|
|
12762
13398
|
export type ReorderTicketFieldsResponse = string;
|
|
12763
13399
|
/** The IDs of the ticket forms in their new order, where the first ID becomes position 0. The list must name every form of a single form type on the account -- a partial list, or a mix of standard and service catalog form IDs, is rejected */
|
|
@@ -13073,7 +13709,7 @@ export type SuspendedTicketsAttachmentsResponseUploadAttachmentsList = Array<Att
|
|
|
13073
13709
|
export interface SuspendedTicketsAttachmentsResponseUpload {
|
|
13074
13710
|
attachments?: SuspendedTicketsAttachmentsResponseUploadAttachmentsList | undefined;
|
|
13075
13711
|
/** Token for subsequent request */
|
|
13076
|
-
token?: string | undefined;
|
|
13712
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
13077
13713
|
}
|
|
13078
13714
|
export interface SuspendedTicketsAttachmentsResponse {
|
|
13079
13715
|
upload?: SuspendedTicketsAttachmentsResponseUpload | undefined;
|
|
@@ -13649,7 +14285,7 @@ export interface AccountSettingsApiInput {
|
|
|
13649
14285
|
}
|
|
13650
14286
|
/** Approvals integration settings. See `settings_controller_support.rb` (`args_transformation_map['approvals']`). */
|
|
13651
14287
|
export interface AccountSettingsApprovalsInput {
|
|
13652
|
-
/**
|
|
14288
|
+
/** Slack workspace identifier for the Approvals Slack integration. */
|
|
13653
14289
|
slack_workspace?: string | undefined;
|
|
13654
14290
|
}
|
|
13655
14291
|
/** Automatic Answers settings. See `update_automatic_answers_settings`, `settings_controller_support.rb`. Unlike every other category, this one is not in `args_transformation_map` -- it is special-cased directly in `normalize_and_update_settings`. */
|
|
@@ -13684,11 +14320,30 @@ export interface AccountSettingsCrossSellInput {
|
|
|
13684
14320
|
}
|
|
13685
14321
|
/** Device metadata collection settings. See `settings_controller_support.rb` (`args_transformation_map['device_metadata']`). */
|
|
13686
14322
|
export type AccountSettingsDeviceMetadataInput = AccountSettingsDeviceObject;
|
|
14323
|
+
export type AccountSettingsEmailInputEmailCategoryOutcomeOverridesAdultContent = "default" | "accept" | "suspend";
|
|
14324
|
+
export type AccountSettingsEmailInputEmailCategoryOutcomeOverridesBlocklisted = "default" | "accept" | "suspend";
|
|
14325
|
+
export type AccountSettingsEmailInputEmailCategoryOutcomeOverridesMarketing = "default" | "accept" | "suspend";
|
|
14326
|
+
export type AccountSettingsEmailInputEmailCategoryOutcomeOverridesPhishing = "default" | "accept" | "suspend";
|
|
14327
|
+
export type AccountSettingsEmailInputEmailCategoryOutcomeOverridesScam = "default" | "accept" | "suspend";
|
|
14328
|
+
export type AccountSettingsEmailInputEmailCategoryOutcomeOverridesSlightlySpam = "default" | "accept" | "suspend";
|
|
14329
|
+
export type AccountSettingsEmailInputEmailCategoryOutcomeOverridesSpam = "default" | "accept" | "suspend";
|
|
14330
|
+
/** Whether emails that match given categories follow the default outcome or experience overrides to accept or suspend. Only present when the feature is available for the account. */
|
|
14331
|
+
export interface AccountSettingsEmailInputEmailCategoryOutcomeOverrides {
|
|
14332
|
+
adult_content?: AccountSettingsEmailInputEmailCategoryOutcomeOverridesAdultContent | (string & {}) | undefined;
|
|
14333
|
+
blocklisted?: AccountSettingsEmailInputEmailCategoryOutcomeOverridesBlocklisted | (string & {}) | undefined;
|
|
14334
|
+
marketing?: AccountSettingsEmailInputEmailCategoryOutcomeOverridesMarketing | (string & {}) | undefined;
|
|
14335
|
+
phishing?: AccountSettingsEmailInputEmailCategoryOutcomeOverridesPhishing | (string & {}) | undefined;
|
|
14336
|
+
scam?: AccountSettingsEmailInputEmailCategoryOutcomeOverridesScam | (string & {}) | undefined;
|
|
14337
|
+
slightly_spam?: AccountSettingsEmailInputEmailCategoryOutcomeOverridesSlightlySpam | (string & {}) | undefined;
|
|
14338
|
+
spam?: AccountSettingsEmailInputEmailCategoryOutcomeOverridesSpam | (string & {}) | undefined;
|
|
14339
|
+
}
|
|
13687
14340
|
export type AccountSettingsEmailInputEmailSenderAuthenticationProfile = "default" | "enhanced" | "enhancedAllTraffic";
|
|
13688
14341
|
/** Email settings. See `settings_controller_support.rb` (`args_transformation_map['email']`) and `app/controllers/api/v2/account/settings_controller.rb#update`. */
|
|
13689
14342
|
export interface AccountSettingsEmailInput {
|
|
13690
14343
|
accept_wildcard_emails?: boolean | undefined;
|
|
13691
14344
|
custom_dkim_domain?: boolean | undefined;
|
|
14345
|
+
/** Whether emails that match given categories follow the default outcome or experience overrides to accept or suspend. Only present when the feature is available for the account. */
|
|
14346
|
+
email_category_outcome_overrides?: AccountSettingsEmailInputEmailCategoryOutcomeOverrides | undefined;
|
|
13692
14347
|
/** Deleted from the request before processing unless the account has `has_email_ai_agent_comment_notifications?` (`settings_controller.rb#update`). */
|
|
13693
14348
|
email_hc_ai_agent_comments?: boolean | undefined;
|
|
13694
14349
|
email_sender_authentication?: boolean | undefined;
|
|
@@ -14138,19 +14793,6 @@ export interface UpdateBrandLogoRequest {
|
|
|
14138
14793
|
/** Brand logo image file */
|
|
14139
14794
|
brand_logo__uploaded_data_: string;
|
|
14140
14795
|
}
|
|
14141
|
-
/** Desired status to set on the migration */
|
|
14142
|
-
export type UpdateBrandUserMigrationRequestUserMigrationStatus = "validating";
|
|
14143
|
-
export interface UpdateBrandUserMigrationRequestUserMigration {
|
|
14144
|
-
/** Desired status to set on the migration */
|
|
14145
|
-
status: UpdateBrandUserMigrationRequestUserMigrationStatus | (string & {});
|
|
14146
|
-
}
|
|
14147
|
-
export interface UpdateBrandUserMigrationRequest {
|
|
14148
|
-
/** The ID of the brand */
|
|
14149
|
-
brand_id: number;
|
|
14150
|
-
/** ULID of the brand user migration */
|
|
14151
|
-
migration_id: string;
|
|
14152
|
-
user_migration: UpdateBrandUserMigrationRequestUserMigration;
|
|
14153
|
-
}
|
|
14154
14796
|
export interface UpdateClientRequest {
|
|
14155
14797
|
/** The ID of the OAuth client */
|
|
14156
14798
|
oauth_client_id: number;
|
|
@@ -15467,10 +16109,99 @@ export interface UpdateTriggerCategoryRequest {
|
|
|
15467
16109
|
trigger_category_id: string;
|
|
15468
16110
|
trigger_category?: TriggerObjectInputCategory | undefined;
|
|
15469
16111
|
}
|
|
16112
|
+
/** The IDs of the brands the agent is assigned to */
|
|
16113
|
+
export type UpdateUserRequestUserAgentBrandIdsList = Array<number>;
|
|
16114
|
+
export type UpdateUserRequestUserIdentitiesList = Array<UserIdentityInput>;
|
|
16115
|
+
/** The ids of the user's organizations */
|
|
16116
|
+
export type UpdateUserRequestUserOrganizationIdsList = Array<number>;
|
|
16117
|
+
/** The user's profile picture */
|
|
16118
|
+
export type UpdateUserRequestUserPhotoMap = {
|
|
16119
|
+
[key: string]: unknown | undefined;
|
|
16120
|
+
};
|
|
16121
|
+
/** The user's tags */
|
|
16122
|
+
export type UpdateUserRequestUserTagsList = Array<string>;
|
|
16123
|
+
/** Values of custom fields in the user's profile */
|
|
16124
|
+
export type UpdateUserRequestUserUserFieldsMap = {
|
|
16125
|
+
[key: string]: unknown | undefined;
|
|
16126
|
+
};
|
|
16127
|
+
export type UpdateUserRequestUserSeparationCase1Scope = "account";
|
|
16128
|
+
export interface UpdateUserRequestUserSeparationCase1 {
|
|
16129
|
+
scope: UpdateUserRequestUserSeparationCase1Scope;
|
|
16130
|
+
}
|
|
16131
|
+
/** Requested separation scope for single-user Update only. Requires full brand user separation and customer-directed migrations. The source must be an active account-scoped end user with no confirmed brand interactions, including with the destination; comment interactions can also prevent a move. The destination must be active and accept separated users. Identity and external-ID ownership must not conflict with the proposed values, including other changes in this request. The caller needs edit permission in both scopes. The update preserves the user ID, finishes synchronously, and returns the normal user, not a migration or job. No migration_id is needed. Brand-to-account and brand-to-brand moves are unsupported. Repeating the current scope is an ordinary update. Supplying brand_id can infer scope: brand. Ineligible moves return 422; permission failures return 403. If Search or side conversations cannot check eligibility, retry after 503. Ordinary updates remain available independently of this capability. */
|
|
16132
|
+
export type UpdateUserRequestUserSeparation = UserBrandSeparationInput | UpdateUserRequestUserSeparationCase1;
|
|
16133
|
+
export interface UpdateUserRequestUser {
|
|
16134
|
+
/** The IDs of the brands the agent is assigned to */
|
|
16135
|
+
agent_brand_ids?: UpdateUserRequestUserAgentBrandIdsList | null | undefined;
|
|
16136
|
+
/** An alias displayed to end users */
|
|
16137
|
+
alias?: string | null | undefined;
|
|
16138
|
+
/** When true, creates the identity specified by `email` as "owned", or as "shared" if another user owns the address. See [Shared email](/api-reference/ticketing/users/user_identities/#shared-email). */
|
|
16139
|
+
auto_ownership?: boolean | undefined;
|
|
16140
|
+
/** A custom role if the user is an agent on the Enterprise plan or above */
|
|
16141
|
+
custom_role_id?: number | null | undefined;
|
|
16142
|
+
/** The id of the user's default group */
|
|
16143
|
+
default_group_id?: number | null | undefined;
|
|
16144
|
+
/** Any details you want to store about the user, such as an address */
|
|
16145
|
+
details?: string | null | undefined;
|
|
16146
|
+
/** The user's primary email address */
|
|
16147
|
+
email?: string | undefined;
|
|
16148
|
+
/** A unique identifier from another system */
|
|
16149
|
+
external_id?: string | null | undefined;
|
|
16150
|
+
/** The id of the user's default group. Alias for default_group_id */
|
|
16151
|
+
group_id?: number | null | undefined;
|
|
16152
|
+
identities?: UpdateUserRequestUserIdentitiesList | undefined;
|
|
16153
|
+
/** The user's language preference. Alias for locale. */
|
|
16154
|
+
language?: string | null | undefined;
|
|
16155
|
+
/** The user's locale. A BCP-47 compliant tag for the locale. If both "locale" and "locale_id" are present on create or update, "locale_id" is ignored and only "locale" is used. */
|
|
16156
|
+
locale?: string | null | undefined;
|
|
16157
|
+
/** The user's language identifier */
|
|
16158
|
+
locale_id?: number | null | undefined;
|
|
16159
|
+
/** Designates whether the user has forum moderation capabilities */
|
|
16160
|
+
moderator?: boolean | null | undefined;
|
|
16161
|
+
/** The user's name */
|
|
16162
|
+
name?: string | undefined;
|
|
16163
|
+
/** Any notes you want to store about the user */
|
|
16164
|
+
notes?: string | null | undefined;
|
|
16165
|
+
/** true if the user can only create private comments */
|
|
16166
|
+
only_private_comments?: boolean | null | undefined;
|
|
16167
|
+
/** The id of the user's organization */
|
|
16168
|
+
organization_id?: number | null | undefined;
|
|
16169
|
+
/** The ids of the user's organizations */
|
|
16170
|
+
organization_ids?: UpdateUserRequestUserOrganizationIdsList | null | undefined;
|
|
16171
|
+
/** The user's primary phone number */
|
|
16172
|
+
phone?: string | null | undefined;
|
|
16173
|
+
/** The user's profile picture */
|
|
16174
|
+
photo?: UpdateUserRequestUserPhotoMap | null | undefined;
|
|
16175
|
+
/** A URL pointing to the user's profile picture */
|
|
16176
|
+
remote_photo_url?: string | null | undefined;
|
|
16177
|
+
/** The user's role */
|
|
16178
|
+
role?: string | undefined;
|
|
16179
|
+
/** Whether the phone number is shared or not */
|
|
16180
|
+
shared_phone_number?: boolean | null | undefined;
|
|
16181
|
+
/** The user's signature. Only agents and admins can have signatures */
|
|
16182
|
+
signature?: string | null | undefined;
|
|
16183
|
+
/** If true, the user won't receive a verification email */
|
|
16184
|
+
skip_verify_email?: boolean | null | undefined;
|
|
16185
|
+
/** If the user is suspended */
|
|
16186
|
+
suspended?: boolean | null | undefined;
|
|
16187
|
+
/** The user's tags */
|
|
16188
|
+
tags?: UpdateUserRequestUserTagsList | null | undefined;
|
|
16189
|
+
/** Specifies which tickets the user has access to */
|
|
16190
|
+
ticket_restriction?: string | null | undefined;
|
|
16191
|
+
/** The user's time zone */
|
|
16192
|
+
time_zone?: string | null | undefined;
|
|
16193
|
+
/** Values of custom fields in the user's profile */
|
|
16194
|
+
user_fields?: UpdateUserRequestUserUserFieldsMap | null | undefined;
|
|
16195
|
+
/** Any of the user's identities is verified */
|
|
16196
|
+
verified?: boolean | null | undefined;
|
|
16197
|
+
/** Requested separation scope for single-user Update only. Requires full brand user separation and customer-directed migrations. The source must be an active account-scoped end user with no confirmed brand interactions, including with the destination; comment interactions can also prevent a move. The destination must be active and accept separated users. Identity and external-ID ownership must not conflict with the proposed values, including other changes in this request. The caller needs edit permission in both scopes. The update preserves the user ID, finishes synchronously, and returns the normal user, not a migration or job. No migration_id is needed. Brand-to-account and brand-to-brand moves are unsupported. Repeating the current scope is an ordinary update. Supplying brand_id can infer scope: brand. Ineligible moves return 422; permission failures return 403. If Search or side conversations cannot check eligibility, retry after 503. Ordinary updates remain available independently of this capability. */
|
|
16198
|
+
separation?: UpdateUserRequestUserSeparation | undefined;
|
|
16199
|
+
[key: string]: unknown;
|
|
16200
|
+
}
|
|
15470
16201
|
export interface UpdateUserRequest {
|
|
15471
16202
|
/** The id of the user */
|
|
15472
16203
|
user_id: number;
|
|
15473
|
-
user:
|
|
16204
|
+
user: UpdateUserRequestUser;
|
|
15474
16205
|
}
|
|
15475
16206
|
/** The id of an existing option to update in place. To add a new option, send null or an empty string. The key itself is mandatory on every entry: an option with no `id` key is rejected with a `BlankValue` error. */
|
|
15476
16207
|
export type UserFieldOptionUpdateInputId = number | string;
|
|
@@ -15571,9 +16302,43 @@ export interface UpdateUserSuspensionRequest {
|
|
|
15571
16302
|
user_id: number;
|
|
15572
16303
|
suspension: UpdateUserSuspensionRequestSuspension;
|
|
15573
16304
|
}
|
|
16305
|
+
/** The conditions a ticket must all meet to be included in the view. The whole condition set is replaced, so send every condition you want to keep: sending `all` on its own **also clears the view's `any` conditions**. At least one `all` condition must be on "status", "type", "group_id", "assignee_id", "requester_id", "organization_id", "due_date", "support_type", one of the status duration fields ("OPEN", "PENDING", "HOLD", "CLOSED") or, on accounts with custom statuses, "custom_status_id", otherwise the request fails validation - which is why sending `any` on its own always fails. May also be supplied as `conditions.all`. **null and an empty array are not the same thing here**: null is accepted and ignored, leaving the view's conditions untouched, while `[]` is a real replacement with an empty condition set and fails the validation above. There is no way to clear a view's conditions. A form-urlencoded client may send the array as an indexed hash (`all[0][field]=status`), which is accepted like the JSON array form - also for `any` and the nested `conditions` arrays */
|
|
16306
|
+
export type ViewUpdateInputAllList = Array<ViewConditionInput>;
|
|
16307
|
+
/** The conditions a ticket must meet at least one of to be included in the view. The whole condition set is replaced, so send every condition you want to keep, together with the `all` conditions. May also be supplied as `conditions.any`. **null and an empty array are not the same thing here**: null is accepted and ignored, leaving the view's conditions untouched, while `[]` replaces the `any` set with an empty one */
|
|
16308
|
+
export type ViewUpdateInputAnyList = Array<ViewConditionInput>;
|
|
16309
|
+
/** See the top-level `all` property. Unlike the top-level property, null here is not ignored: it is treated as an empty condition set, the same as leaving it out of the `conditions` object */
|
|
16310
|
+
export type ViewUpdateInputConditionsAllList = Array<ViewConditionInput>;
|
|
16311
|
+
/** See the top-level `any` property. Unlike the top-level property, null here is not ignored: it is treated as an empty condition set, the same as leaving it out of the `conditions` object */
|
|
16312
|
+
export type ViewUpdateInputConditionsAnyList = Array<ViewConditionInput>;
|
|
16313
|
+
/** An alternative way of supplying `all` and `any`, mirroring the `conditions` object of the response. The top-level `all` and `any` properties take precedence when both forms are sent. Supplying only one of `conditions.all` or `conditions.any` clears the other one. null is accepted and ignored, leaving the view's conditions untouched */
|
|
16314
|
+
export interface ViewUpdateInputConditions {
|
|
16315
|
+
/** See the top-level `all` property. Unlike the top-level property, null here is not ignored: it is treated as an empty condition set, the same as leaving it out of the `conditions` object */
|
|
16316
|
+
all?: ViewUpdateInputConditionsAllList | null | undefined;
|
|
16317
|
+
/** See the top-level `any` property. Unlike the top-level property, null here is not ignored: it is treated as an empty condition set, the same as leaving it out of the `conditions` object */
|
|
16318
|
+
any?: ViewUpdateInputConditionsAnyList | null | undefined;
|
|
16319
|
+
}
|
|
16320
|
+
/** The writable attributes accepted when updating a view. Every property is optional and anything left out is left unchanged, with the exception of the condition and `output` properties noted below. */
|
|
16321
|
+
export interface ViewUpdateInput {
|
|
16322
|
+
/** Whether the view is displayed. null is accepted and ignored, leaving the current value unchanged */
|
|
16323
|
+
active?: boolean | null | undefined;
|
|
16324
|
+
/** The conditions a ticket must all meet to be included in the view. The whole condition set is replaced, so send every condition you want to keep: sending `all` on its own **also clears the view's `any` conditions**. At least one `all` condition must be on "status", "type", "group_id", "assignee_id", "requester_id", "organization_id", "due_date", "support_type", one of the status duration fields ("OPEN", "PENDING", "HOLD", "CLOSED") or, on accounts with custom statuses, "custom_status_id", otherwise the request fails validation - which is why sending `any` on its own always fails. May also be supplied as `conditions.all`. **null and an empty array are not the same thing here**: null is accepted and ignored, leaving the view's conditions untouched, while `[]` is a real replacement with an empty condition set and fails the validation above. There is no way to clear a view's conditions. A form-urlencoded client may send the array as an indexed hash (`all[0][field]=status`), which is accepted like the JSON array form - also for `any` and the nested `conditions` arrays */
|
|
16325
|
+
all?: ViewUpdateInputAllList | null | undefined;
|
|
16326
|
+
/** The conditions a ticket must meet at least one of to be included in the view. The whole condition set is replaced, so send every condition you want to keep, together with the `all` conditions. May also be supplied as `conditions.any`. **null and an empty array are not the same thing here**: null is accepted and ignored, leaving the view's conditions untouched, while `[]` replaces the `any` set with an empty one */
|
|
16327
|
+
any?: ViewUpdateInputAnyList | null | undefined;
|
|
16328
|
+
/** An alternative way of supplying `all` and `any`, mirroring the `conditions` object of the response. The top-level `all` and `any` properties take precedence when both forms are sent. Supplying only one of `conditions.all` or `conditions.any` clears the other one. null is accepted and ignored, leaving the view's conditions untouched */
|
|
16329
|
+
conditions?: ViewUpdateInputConditions | null | undefined;
|
|
16330
|
+
/** The description of the view. Must not exceed 512 characters. Send null to clear the description */
|
|
16331
|
+
description?: string | null | undefined;
|
|
16332
|
+
/** The columns, grouping and sorting of the view. **This object is not merged into the current one.** Anything you leave out is discarded: only `columns` falls back to the default column set, while `group_by`, `group_order`, `sort_by` and `sort_order` are cleared rather than defaulted. So sending `output` with only `columns` clears the view's grouping and sorting, and sending it with only `group_by` resets the view's columns to the default set. Send the complete `output` object on every update. Leaving it out keeps the view's current output, and so does sending null - an explicit null is accepted but changes nothing on this endpoint, it does not reset the output */
|
|
16333
|
+
output?: ViewOutputInput | null | undefined;
|
|
16334
|
+
restriction?: ViewRestrictionInput | null | undefined;
|
|
16335
|
+
/** The title of the view. Must not exceed 255 characters */
|
|
16336
|
+
title?: string | undefined;
|
|
16337
|
+
}
|
|
15574
16338
|
export interface UpdateViewRequest {
|
|
15575
16339
|
/** The ID of the view, or one of the string aliases `"incoming"`, `"my"`, or `"my_groups"`. */
|
|
15576
16340
|
view_id: string;
|
|
16341
|
+
view: ViewUpdateInput;
|
|
15577
16342
|
}
|
|
15578
16343
|
export interface UpdateWorkspaceRequest {
|
|
15579
16344
|
/** The id of the workspace */
|
|
@@ -15592,7 +16357,7 @@ export interface AttachmentUploadResponseUpload {
|
|
|
15592
16357
|
attachment?: AttachmentObject | undefined;
|
|
15593
16358
|
attachments?: AttachmentUploadResponseUploadAttachmentsList | undefined;
|
|
15594
16359
|
/** Token for subsequent request */
|
|
15595
|
-
token?: string | undefined;
|
|
16360
|
+
token?: string | Redacted.Redacted<string> | undefined;
|
|
15596
16361
|
}
|
|
15597
16362
|
export interface AttachmentUploadResponse {
|
|
15598
16363
|
upload?: AttachmentUploadResponseUpload | undefined;
|
|
@@ -15611,6 +16376,12 @@ export interface UpsertCustomObjectRecordByExternalIdOrNameRequest {
|
|
|
15611
16376
|
unique_field_value?: UpsertCustomObjectRecordByExternalIdOrNameRequestUniqueFieldValueMap | undefined;
|
|
15612
16377
|
custom_object_record?: CustomObjectRecordInput | undefined;
|
|
15613
16378
|
}
|
|
16379
|
+
export interface ValidateBrandUserMigrationRequest {
|
|
16380
|
+
/** The ID of the brand */
|
|
16381
|
+
brand_id: number;
|
|
16382
|
+
/** ULID of the parent brand user migration */
|
|
16383
|
+
migration_id: string;
|
|
16384
|
+
}
|
|
15614
16385
|
export interface ValidateTokenRequest {
|
|
15615
16386
|
}
|
|
15616
16387
|
export type ValidateTokenResponse = string;
|
|
@@ -15716,6 +16487,217 @@ export interface ApprovalWorkflowInstanceWithdrawResponse {
|
|
|
15716
16487
|
/** The approval requests that were withdrawn as part of this workflow instance */
|
|
15717
16488
|
approval_requests?: ApprovalWorkflowInstanceWithdrawResponseApprovalRequestsList | undefined;
|
|
15718
16489
|
}
|
|
16490
|
+
export interface Error {
|
|
16491
|
+
code: string;
|
|
16492
|
+
detail?: string | undefined;
|
|
16493
|
+
id?: string | undefined;
|
|
16494
|
+
links?: unknown | undefined;
|
|
16495
|
+
source?: unknown | undefined;
|
|
16496
|
+
status?: string | undefined;
|
|
16497
|
+
title: string;
|
|
16498
|
+
}
|
|
16499
|
+
export type ErrorsErrorsList = Array<Error>;
|
|
16500
|
+
export interface Errors {
|
|
16501
|
+
errors?: ErrorsErrorsList | undefined;
|
|
16502
|
+
}
|
|
16503
|
+
export interface Error400Body {
|
|
16504
|
+
error?: string | undefined;
|
|
16505
|
+
}
|
|
16506
|
+
export interface SkillBasedRoutingAttributeValuesErrorError {
|
|
16507
|
+
message?: string | undefined;
|
|
16508
|
+
title?: string | undefined;
|
|
16509
|
+
}
|
|
16510
|
+
export interface SkillBasedRoutingAttributeValuesError {
|
|
16511
|
+
error?: SkillBasedRoutingAttributeValuesErrorError | undefined;
|
|
16512
|
+
}
|
|
16513
|
+
export type Error400BodyError = SkillBasedRoutingAttributeValuesErrorError;
|
|
16514
|
+
export type Error400Body2 = SkillBasedRoutingAttributeValuesError;
|
|
16515
|
+
export interface Error400BodyError3 {
|
|
16516
|
+
/** Detailed message explaining the error. */
|
|
16517
|
+
message?: string | undefined;
|
|
16518
|
+
/** Error title indicating the nature of the bad request. */
|
|
16519
|
+
title?: string | undefined;
|
|
16520
|
+
}
|
|
16521
|
+
export interface Error400Body5 {
|
|
16522
|
+
error?: Error400BodyError3 | undefined;
|
|
16523
|
+
}
|
|
16524
|
+
export interface Error409Body {
|
|
16525
|
+
description?: string | undefined;
|
|
16526
|
+
error?: string | undefined;
|
|
16527
|
+
}
|
|
16528
|
+
export interface SavedSearchError {
|
|
16529
|
+
/** A human-readable explanation of the error */
|
|
16530
|
+
description?: string | undefined;
|
|
16531
|
+
/** A short machine-readable error code */
|
|
16532
|
+
error?: string | undefined;
|
|
16533
|
+
}
|
|
16534
|
+
export interface Error400BodyErrorsItem {
|
|
16535
|
+
code?: string | undefined;
|
|
16536
|
+
status?: string | undefined;
|
|
16537
|
+
title?: string | undefined;
|
|
16538
|
+
}
|
|
16539
|
+
export type Error400BodyErrorsList = Array<Error400BodyErrorsItem>;
|
|
16540
|
+
export interface Error400Body4 {
|
|
16541
|
+
errors?: Error400BodyErrorsList | undefined;
|
|
16542
|
+
}
|
|
16543
|
+
export interface ApprovalRequestError {
|
|
16544
|
+
/** Error code identifying the type of error */
|
|
16545
|
+
code: string;
|
|
16546
|
+
/** Human-readable error message */
|
|
16547
|
+
title: string;
|
|
16548
|
+
}
|
|
16549
|
+
export type ApprovalRequestErrorsErrorsList = Array<ApprovalRequestError>;
|
|
16550
|
+
export interface ApprovalRequestErrors {
|
|
16551
|
+
errors?: ApprovalRequestErrorsErrorsList | undefined;
|
|
16552
|
+
}
|
|
16553
|
+
export type Error400BodyError2 = "Invalid migration status";
|
|
16554
|
+
export interface Error400Body3 {
|
|
16555
|
+
description: string;
|
|
16556
|
+
error: Error400BodyError2;
|
|
16557
|
+
}
|
|
16558
|
+
export interface BrandUserMigrationErrorResponseCase0Error {
|
|
16559
|
+
code?: string | undefined;
|
|
16560
|
+
message: string;
|
|
16561
|
+
title: string;
|
|
16562
|
+
}
|
|
16563
|
+
export interface BrandUserMigrationErrorResponseCase0 {
|
|
16564
|
+
error: BrandUserMigrationErrorResponseCase0Error;
|
|
16565
|
+
}
|
|
16566
|
+
/** Included for TooManyJobs; identifies jobs already queued or running */
|
|
16567
|
+
export type BrandUserMigrationErrorResponseCase1CurrentJobIdsList = Array<string>;
|
|
16568
|
+
export interface BrandUserMigrationErrorResponseCase1DetailsValueItem {
|
|
16569
|
+
description: string;
|
|
16570
|
+
error?: string | undefined;
|
|
16571
|
+
}
|
|
16572
|
+
export type BrandUserMigrationErrorResponseCase1DetailsValueList = Array<BrandUserMigrationErrorResponseCase1DetailsValueItem>;
|
|
16573
|
+
/** Included for RecordInvalid validation errors; keys are attribute names */
|
|
16574
|
+
export type BrandUserMigrationErrorResponseCase1DetailsMap = {
|
|
16575
|
+
[key: string]: BrandUserMigrationErrorResponseCase1DetailsValueList | undefined;
|
|
16576
|
+
};
|
|
16577
|
+
export interface BrandUserMigrationErrorResponseCase1 {
|
|
16578
|
+
/** Included for TooManyJobs; identifies jobs already queued or running */
|
|
16579
|
+
current_job_ids?: BrandUserMigrationErrorResponseCase1CurrentJobIdsList | undefined;
|
|
16580
|
+
description: string;
|
|
16581
|
+
/** Included for RecordInvalid validation errors; keys are attribute names */
|
|
16582
|
+
details?: BrandUserMigrationErrorResponseCase1DetailsMap | undefined;
|
|
16583
|
+
error: string;
|
|
16584
|
+
}
|
|
16585
|
+
/** Error shape depends on the handler, not just the HTTP status. Missing credentials, regular access denial, StrongerParameters failures, and migration preconditions use a nested error with title and message. V2 RecordNotFound uses flat error: RecordNotFound and description: Not found. OAuth scope denial also uses a flat error: Forbidden and a description listing required scopes. Record validation, pagination, and job-enqueue failures can use a flat error and description. Feature-disabled validation and ad-hoc endpoints can return an empty 404. Merge's dedicated 422 can instead contain only an error string. */
|
|
16586
|
+
export type BrandUserMigrationErrorResponse = BrandUserMigrationErrorResponseCase0 | BrandUserMigrationErrorResponseCase1;
|
|
16587
|
+
export interface Error409Body2 {
|
|
16588
|
+
/** Detailed description of the conflict. */
|
|
16589
|
+
description?: string | undefined;
|
|
16590
|
+
/** Error message indicating a conflict. */
|
|
16591
|
+
error?: string | undefined;
|
|
16592
|
+
}
|
|
16593
|
+
export interface TicketRedactionConflictError {
|
|
16594
|
+
/** An explanation of the error */
|
|
16595
|
+
description?: string | undefined;
|
|
16596
|
+
/** The error type */
|
|
16597
|
+
error?: string | undefined;
|
|
16598
|
+
}
|
|
16599
|
+
export interface Error403Body {
|
|
16600
|
+
errors?: string | undefined;
|
|
16601
|
+
}
|
|
16602
|
+
export type Error403Body2 = Error409Body;
|
|
16603
|
+
export type Error403BodyError = BrandUserMigrationErrorResponseCase0Error;
|
|
16604
|
+
export interface Error403Body3 {
|
|
16605
|
+
error?: BrandUserMigrationErrorResponseCase0Error | undefined;
|
|
16606
|
+
}
|
|
16607
|
+
export type TriggerRevisionErrorResponseError = SkillBasedRoutingAttributeValuesErrorError;
|
|
16608
|
+
export type TriggerRevisionErrorResponse = SkillBasedRoutingAttributeValuesError;
|
|
16609
|
+
export type Error422BodyErrorsList = Array<string>;
|
|
16610
|
+
export interface Error422Body2 {
|
|
16611
|
+
errors?: Error422BodyErrorsList | undefined;
|
|
16612
|
+
}
|
|
16613
|
+
export interface Error422Body {
|
|
16614
|
+
/** Present only when the comment limit has been reached. Value is always `CommentLimitExceeded` */
|
|
16615
|
+
error?: string | undefined;
|
|
16616
|
+
/** Validation errors (array), or the comment-limit message (string) */
|
|
16617
|
+
errors?: unknown | undefined;
|
|
16618
|
+
}
|
|
16619
|
+
export interface Error422BodyDetailsValueItem {
|
|
16620
|
+
description?: string | undefined;
|
|
16621
|
+
}
|
|
16622
|
+
export type Error422BodyDetailsValueList = Array<Error422BodyDetailsValueItem>;
|
|
16623
|
+
export type Error422BodyDetailsMap = {
|
|
16624
|
+
[key: string]: Error422BodyDetailsValueList | undefined;
|
|
16625
|
+
};
|
|
16626
|
+
export interface Error422Body3 {
|
|
16627
|
+
description?: string | undefined;
|
|
16628
|
+
details?: Error422BodyDetailsMap | undefined;
|
|
16629
|
+
error?: string | undefined;
|
|
16630
|
+
}
|
|
16631
|
+
export interface ItamRecordInvalidErrorDetailsValueItem {
|
|
16632
|
+
/** The human-readable validation message. */
|
|
16633
|
+
description?: string | undefined;
|
|
16634
|
+
/** A machine-readable error code, when one is available. */
|
|
16635
|
+
error?: string | undefined;
|
|
16636
|
+
}
|
|
16637
|
+
export type ItamRecordInvalidErrorDetailsValueList = Array<ItamRecordInvalidErrorDetailsValueItem>;
|
|
16638
|
+
/** Validation errors keyed by the attribute that caused them. Each value is an array of error objects describing what went wrong. */
|
|
16639
|
+
export type ItamRecordInvalidErrorDetailsMap = {
|
|
16640
|
+
[key: string]: ItamRecordInvalidErrorDetailsValueList | undefined;
|
|
16641
|
+
};
|
|
16642
|
+
export interface ItamRecordInvalidError {
|
|
16643
|
+
/** A short summary of the error. */
|
|
16644
|
+
description: string;
|
|
16645
|
+
/** Validation errors keyed by the attribute that caused them. Each value is an array of error objects describing what went wrong. */
|
|
16646
|
+
details: ItamRecordInvalidErrorDetailsMap;
|
|
16647
|
+
/** The error type. */
|
|
16648
|
+
error: string;
|
|
16649
|
+
}
|
|
16650
|
+
export interface Error422BodyCase1Error {
|
|
16651
|
+
/** The human-readable error message. */
|
|
16652
|
+
message: string;
|
|
16653
|
+
/** The error title. */
|
|
16654
|
+
title: string;
|
|
16655
|
+
}
|
|
16656
|
+
export interface Error422BodyCase1 {
|
|
16657
|
+
error: Error422BodyCase1Error;
|
|
16658
|
+
}
|
|
16659
|
+
export type Error422Body5 = ItamRecordInvalidError | Error422BodyCase1;
|
|
16660
|
+
export type SavedSearchValidationErrorDetailsValueItem = Error409Body;
|
|
16661
|
+
export type SavedSearchValidationErrorDetailsValueList = Array<Error409Body>;
|
|
16662
|
+
/** Per-field validation errors, keyed by attribute name */
|
|
16663
|
+
export type SavedSearchValidationErrorDetailsMap = {
|
|
16664
|
+
[key: string]: SavedSearchValidationErrorDetailsValueList | undefined;
|
|
16665
|
+
};
|
|
16666
|
+
export interface SavedSearchValidationError {
|
|
16667
|
+
/** A human-readable explanation of the error */
|
|
16668
|
+
description?: string | undefined;
|
|
16669
|
+
/** Per-field validation errors, keyed by attribute name */
|
|
16670
|
+
details?: SavedSearchValidationErrorDetailsMap | undefined;
|
|
16671
|
+
/** A short machine-readable error code */
|
|
16672
|
+
error?: string | undefined;
|
|
16673
|
+
}
|
|
16674
|
+
export interface TaskListValidationErrorResponseDetailsValueItem {
|
|
16675
|
+
/** The message shown to the API consumer */
|
|
16676
|
+
description?: string | undefined;
|
|
16677
|
+
}
|
|
16678
|
+
export type TaskListValidationErrorResponseDetailsValueList = Array<TaskListValidationErrorResponseDetailsValueItem>;
|
|
16679
|
+
/** The validation messages, keyed by the attribute that failed. Ticket-level failures such as the task list limit are returned under `base` */
|
|
16680
|
+
export type TaskListValidationErrorResponseDetailsMap = {
|
|
16681
|
+
[key: string]: TaskListValidationErrorResponseDetailsValueList | undefined;
|
|
16682
|
+
};
|
|
16683
|
+
export interface TaskListValidationErrorResponse {
|
|
16684
|
+
/** A short summary of the error */
|
|
16685
|
+
description?: string | undefined;
|
|
16686
|
+
/** The validation messages, keyed by the attribute that failed. Ticket-level failures such as the task list limit are returned under `base` */
|
|
16687
|
+
details?: TaskListValidationErrorResponseDetailsMap | undefined;
|
|
16688
|
+
/** The error class. `RecordInvalid` for task list validation failures */
|
|
16689
|
+
error?: string | undefined;
|
|
16690
|
+
}
|
|
16691
|
+
export interface Error422Body6 {
|
|
16692
|
+
/** Detailed description of the error. */
|
|
16693
|
+
description?: string | undefined;
|
|
16694
|
+
/** Error message indicating why the request failed. */
|
|
16695
|
+
error?: string | undefined;
|
|
16696
|
+
}
|
|
16697
|
+
export interface Error422Body7 {
|
|
16698
|
+
error: string;
|
|
16699
|
+
}
|
|
16700
|
+
export type Error422Body4 = BrandUserMigrationPreviewResponse | BrandUserMigrationErrorResponse;
|
|
15719
16701
|
export type AddOrganizationTagsError = ZendeskOpError;
|
|
15720
16702
|
/** Add Organization Tags #### Allowed For * Agents */
|
|
15721
16703
|
export declare const addOrganizationTags: API.OperationMethod<AddOrganizationTagsRequest, TagsByObjectIdResponse, AddOrganizationTagsError, ZendeskOpContext>;
|
|
@@ -15771,7 +16753,7 @@ export type ChangeOwnPasswordError = ZendeskOpError;
|
|
|
15771
16753
|
/** Change Your Password You can only change your own password. Nobody can change the password of another user because it requires knowing the user's existing password. However, an admin can set a new password for another user without knowing the existing password. See [Set a User's Password](#set-a-users-password) above. #### Allowed For * Agents * End Users */
|
|
15772
16754
|
export declare const changeOwnPassword: API.OperationMethod<ChangeOwnPasswordRequest, ChangeOwnPasswordResponse, ChangeOwnPasswordError, ZendeskOpContext>;
|
|
15773
16755
|
export type CheckHostMappingValidityError = ZendeskOpError;
|
|
15774
|
-
/** Check Host Mapping Validity Returns a JSON object determining whether a host mapping is valid for a given subdomain. #### Allowed for * Admins */
|
|
16756
|
+
/** Check Host Mapping Validity Returns a JSON object determining whether a host mapping is valid for a given subdomain. #### Allowed for * Admins * Agents with `manage_brands` set to "all" or "member" */
|
|
15775
16757
|
export declare const checkHostMappingValidity: API.OperationMethod<CheckHostMappingValidityRequest, HostMappingObject, CheckHostMappingValidityError, ZendeskOpContext>;
|
|
15776
16758
|
export type CheckHostMappingValidityForExistingBrandError = ZendeskOpError;
|
|
15777
16759
|
/** Check Host Mapping Validity for an Existing Brand Returns a JSON object determining whether a host mapping is valid for the given brand. #### Allowed for - Admins */
|
|
@@ -15782,6 +16764,9 @@ export declare const clientGenerateSecret: API.OperationMethod<ClientGenerateSec
|
|
|
15782
16764
|
export type CloneTicketFormError = ZendeskOpError;
|
|
15783
16765
|
/** Clone an Already Existing Ticket Form #### Allowed For * Admins */
|
|
15784
16766
|
export declare const cloneTicketForm: API.OperationMethod<CloneTicketFormRequest, TicketFormResponse, CloneTicketFormError, ZendeskOpContext>;
|
|
16767
|
+
export type CloneUserError = Conflict | UnprocessableEntity | ZendeskOpError;
|
|
16768
|
+
/** Clone User into a Separated Brand Creates a user in the brand selected by `user.separation` and moves that brand's ticket references from the source to the new user. The source stays in its original scope; references for other brands remain with it. The source must be an active end user in account scope or another brand's scope. The destination must be an active brand currently accepting users into its separated scope. Cloning into account scope or the source's own scope is not supported. Ticket-sharing users cannot be cloned. Matching identities or external IDs already owned in the destination scope cause rejection; use Merge or Move References to reuse an existing user. No brand interactions are required. This explicitly chosen action can therefore preserve a source that the brand-run migration would update or ignore. No brand migration run or `migration_id` is required. Returns HTTP 200 with a `brand_user_migration`, a null `migration_id`, and nested `job_status`. Work runs asynchronously. Poll the returned URL with the global OAuth `read` scope. The completed job's `results` is a single object, not an array; inspect `success` and `status`. A successful result's `migrated_user_id` identifies the new user. Submission is not completion: eligibility and ticket-volume checks can still reject the background work. `source_user` uses the standard [User JSON format](/api-reference/ticketing/users/users/#json-format). Response examples below show selected user fields, not the complete user object. #### Allowed For * Admins and agents permitted to edit the source user and the user in the destination scope #### Availability Requires full brand user separation and customer-directed migrations enabled for the account. Returns 404 when this feature is unavailable; authorization or parameter checks can fail before the feature check. */
|
|
16769
|
+
export declare const cloneUser: API.OperationMethod<CloneUserRequest, AdHocUserMigrationResponse, CloneUserError, ZendeskOpContext>;
|
|
15785
16770
|
export type CountActivitiesError = ZendeskOpError;
|
|
15786
16771
|
/** Count Activities Returns an approximate count of ticket activities in the last 30 days affecting the agent making the request. If the count exceeds 100,000, the count will return a cached result. This cached result will update every 24 hours. The `count[refreshed_at]` property is a timestamp that indicates when the count was last updated. **Note**: When the count exceeds 100,000, `count[refreshed_at]` may occasionally be null. This indicates that the count is being updated in the background, and `count[value]` is limited to 100,000 until the update is complete. #### Allowed For * Agents */
|
|
15787
16772
|
export declare const countActivities: API.OperationMethod<CountActivitiesRequest, ActivitiesCountResponse, CountActivitiesError, ZendeskOpContext>;
|
|
@@ -15789,7 +16774,7 @@ export type CountAuditsForTicketError = ZendeskOpError;
|
|
|
15789
16774
|
/** Count Audits for a Ticket Returns an approximate count of audits for a specified ticket. If the count exceeds 100,000, the count will return a cached result. This cached result will update every 24 hours. The `count[refreshed_at]` property is a timestamp that indicates when the count was last updated. **Note**: If the total number of audits for a ticket exceeds 100,000, this endpoint returns a count of 100,000 with a `count[refreshed_at]` value of null. This value is cached for 24 hours, during which any requests returns the same count and timestamp. After 24 hours, the endpoint temporarily shows the same count again before providing an updated total. #### Allowed for * Agents */
|
|
15790
16775
|
export declare const countAuditsForTicket: API.OperationMethod<CountAuditsForTicketRequest, TicketAuditsCountResponse, CountAuditsForTicketError, ZendeskOpContext>;
|
|
15791
16776
|
export type CountCustomObjectRecordsError = ZendeskOpError;
|
|
15792
|
-
/** Count Custom Object Records Returns a total count of records for a specific custom object as well as the time the count was refreshed. If the object has a parent field with `cascade_permissions_enabled`, non-admin agents receive a `403 Forbidden` response. Use the [Filtered Search endpoint](/api-reference/custom-data/custom-objects/custom_object_records/#filtered-search-of-custom-object-records) with a filter on the parent field instead. #### Allowed For * Agents * End users (when an admin [configures](https://support.zendesk.com/hc/en-us/articles/6034260247066) the custom object to be accessible to end users)
|
|
16777
|
+
/** Count Custom Object Records Returns a total count of records for a specific custom object as well as the time the count was refreshed. If the object has a parent field with `cascade_permissions_enabled`, non-admin agents receive a `403 Forbidden` response. Use the [Filtered Search endpoint](/api-reference/custom-data/custom-objects/custom_object_records/#filtered-search-of-custom-object-records) with a filter on the parent field instead. #### Allowed For * Agents * End users (when an admin [configures](https://support.zendesk.com/hc/en-us/articles/6034260247066) the custom object to be accessible to end users) */
|
|
15793
16778
|
export declare const countCustomObjectRecords: API.OperationMethod<CountCustomObjectRecordsRequest, CountCustomObjectRecordsResponse, CountCustomObjectRecordsError, ZendeskOpContext>;
|
|
15794
16779
|
export type CountDeletedUsersError = ZendeskOpError;
|
|
15795
16780
|
/** Count Deleted Users Returns an approximate count of deleted users, including permanently deleted users. If the count exceeds 100,000, it is updated every 24 hours. The response includes a `refreshed_at` property in a `count` object that contains a timestamp indicating when the count was last updated. **Note**: When the count exceeds 100,000, `count[refreshed_at]` may occasionally be null. This indicates that the count is being updated in the background, and `count[value]` is limited to 100,000 until the update is complete. #### Allowed For * Agents */
|
|
@@ -15849,7 +16834,7 @@ export type CreateAccessRuleError = ZendeskOpError;
|
|
|
15849
16834
|
/** Create Access Rule Creates a new access rule for a custom object. Access rules define conditions that restrict which records a role can access based on field values or relationships. #### Allowed For * Admins */
|
|
15850
16835
|
export declare const createAccessRule: API.OperationMethod<CreateAccessRuleRequest, AccessRuleResponse, CreateAccessRuleError, ZendeskOpContext>;
|
|
15851
16836
|
export type CreateApprovalClarificationFlowMessageError = BadRequest | Forbidden | NotFound | UnprocessableEntity | ZendeskOpError;
|
|
15852
|
-
/** Create Approval Clarification Flow Message Adds a message to the clarification flow thread for an approval request and returns the full, updated thread. #### Allowed For * The approval request's assignee or creator, the ticket assignee, or a member of the assigned group * Any user who can view the ticket
|
|
16837
|
+
/** Create Approval Clarification Flow Message Adds a message to the clarification flow thread for an approval request and returns the full, updated thread. #### Allowed For * The approval request's assignee or creator, the ticket assignee, or a member of the assigned group * Any user who can view the ticket */
|
|
15853
16838
|
export declare const createApprovalClarificationFlowMessage: API.OperationMethod<CreateApprovalClarificationFlowMessageRequest, ApprovalClarificationFlowMessagesShowResponse, CreateApprovalClarificationFlowMessageError, ZendeskOpContext>;
|
|
15854
16839
|
export type CreateApprovalRequestError = UnprocessableEntity | ZendeskOpError;
|
|
15855
16840
|
/** Create Approval Request Creates one or more approval requests for a ticket. When manual approval requests are turned off for the account, approval requests can still be created through this API. Approval requests created by the API have a `Sent by` value of `API`. #### Allowed For * System users (flowstate) * Agents #### Single approval request To create a single approval request, supply a top-level `assignee_user_id` or `assignee_group_id`. This is helpful when only one approval is required or approvals need to be received in a specific order. The response returns the created request under the `approval_request` key. See the **Example body** and **Example response(s)** sections below for the single-request request and response shapes. #### Parallel approval requests To create multiple approval requests at once, for the approvers to review and respond to in parallel, supply an `approval_requests` array. The approval request's `subject` and `message` are set once at the top level and apply to every individual approval request in the array. The approval requests are created atomically as an array under the `approval_requests` key, and all share the same `approval_workflow_instance_id`. If any of the approval request entries are invalid, none of the requests are created. To avoid invalid entries, do the following: * Specify exactly one `assignee_user_id` or `assignee_group_id` for each entry in the `approval_requests` array. * Make sure you don't combine a top-level `assignee_user_id` or `assignee_group_id` with the `approval_requests` array. Doing so returns a `422`. Example request: ```bash curl https://{subdomain}.zendesk.com/api/v2/approval_requests \ -H "Content-Type: application/json" -X POST \ -d '{"ticket_id": 123, "subject": "Budget Approval", "message": "Please approve the Q1 budget", "approval_requests": [{"assignee_user_id": 101}, {"assignee_group_id": 202}]}' \ -v -u {email_address}/token:{api_token} ``` Example response: ```json { "approval_requests": [ { "id": "01KFP3S9EVXF9CKAYY080NV98C", "approval_workflow_instance_id": "01KFP3S9EVXF9CKAYY080NV98D", "subject": "Budget Approval", "message": "Please approve the Q1 budget", "status": "active", "created_at": "2026-01-23T19:02:36Z", "created_by_id": 789, "assignee_user_id": 101, "assignee_group_id": null, "ticket_id": 123, "origination_type": "API_ORIGINATION" }, { "id": "01KFP3S9EVXF9CKAYY080NV98E", "approval_workflow_instance_id": "01KFP3S9EVXF9CKAYY080NV98D", "subject": "Budget Approval", "message": "Please approve the Q1 budget", "status": "active", "created_at": "2026-01-23T19:02:36Z", "created_by_id": 789, "assignee_user_id": null, "assignee_group_id": 202, "ticket_id": 123, "origination_type": "API_ORIGINATION" } ] } ``` */
|
|
@@ -15870,7 +16855,7 @@ export type CreateBookmarkError = ZendeskOpError;
|
|
|
15870
16855
|
/** Create Bookmark #### Allowed For - Agents */
|
|
15871
16856
|
export declare const createBookmark: API.OperationMethod<CreateBookmarkRequest, BookmarkResponseOutput, CreateBookmarkError, ZendeskOpContext>;
|
|
15872
16857
|
export type CreateBrandError = ZendeskOpError;
|
|
15873
|
-
/** Create Brand Creates a brand. To attach a logo, make a follow-up request to `PUT /api/v2/brands/{brand_id}/logo`. #### Allowed for - Admins */
|
|
16858
|
+
/** Create Brand Creates a brand. To attach a logo, make a follow-up request to `PUT /api/v2/brands/{brand_id}/logo`. #### Allowed for - Admins - Agents with `manage_brands` set to "all" or "member", when brand-based ticket access is enabled on the account */
|
|
15874
16859
|
export declare const createBrand: API.OperationMethod<CreateBrandRequest, BrandResponse, CreateBrandError, ZendeskOpContext>;
|
|
15875
16860
|
export type CreateBrandAgentError = ZendeskOpError;
|
|
15876
16861
|
/** Create Brand Agent Membership Creates a brand agent membership, granting the agent access to the brand. Returns `422` if the user is not an agent, the brand does not belong to the account, or a membership for the same user and brand already exists. #### Allowed For: * Admins */
|
|
@@ -15942,8 +16927,8 @@ export type CreateMacroAttachmentError = ZendeskOpError;
|
|
|
15942
16927
|
/** Create Unassociated Macro Attachment Allows an attachment to be uploaded that can be associated with a macro at a later time. **Note:** To ensure an uploaded attachment is not lost, associate it with a macro as soon as possible. From time to time, old attachments that are not not associated with any macro are purged. #### Allowed For * Agents */
|
|
15943
16928
|
export declare const createMacroAttachment: API.OperationMethod<CreateMacroAttachmentRequest, MacroAttachmentResponse, CreateMacroAttachmentError, ZendeskOpContext>;
|
|
15944
16929
|
export type CreateManyDynamicContentVariantsError = ZendeskOpError;
|
|
15945
|
-
/** Create Many Variants #### Allowed For * Admins, Agents */
|
|
15946
|
-
export declare const createManyDynamicContentVariants: API.OperationMethod<CreateManyDynamicContentVariantsRequest,
|
|
16930
|
+
/** Create Many Variants Creates one or more variants. See [Create Variant](/api-reference/ticketing/ticket-management/dynamic_content_item_variants/#create-variant). #### Response This endpoint returns a `job_status` [JSON object](/api-reference/ticketing/ticket-management/job_statuses/#json-format) and queues a background job to do the work. Use the [Show Job Status](/api-reference/ticketing/ticket-management/job_statuses/#show-job-status) endpoint to check for the job's completion. Only a certain number of jobs can be queued or running at the same time. See [Job limit](/api-reference/introduction/rate-limits/#job-limit) for more information. #### Allowed For * Admins, Agents */
|
|
16931
|
+
export declare const createManyDynamicContentVariants: API.OperationMethod<CreateManyDynamicContentVariantsRequest, JobStatusResponse, CreateManyDynamicContentVariantsError, ZendeskOpContext>;
|
|
15947
16932
|
export type CreateManyOrganizationMembershipsError = ZendeskOpError;
|
|
15948
16933
|
/** Create Many Memberships Accepts an array of up to 100 organization membership objects. This endpoint returns a `job_status` [JSON object](/api-reference/ticketing/ticket-management/job_statuses/#json-format) and queues a background job to do the work. Use the [Show Job Status](/api-reference/ticketing/ticket-management/job_statuses/#show-job-status) endpoint to check for the job's completion. Only a certain number of jobs can be queued or running at the same time. See [Job limit](/api-reference/introduction/rate-limits/#job-limit) for more information. #### Allowed For * Admins * Agents */
|
|
15949
16934
|
export declare const createManyOrganizationMemberships: API.OperationMethod<CreateManyOrganizationMembershipsRequest, JobStatusResponse, CreateManyOrganizationMembershipsError, ZendeskOpContext>;
|
|
@@ -15981,7 +16966,7 @@ export type CreateOrUpdateOrganizationError = ZendeskOpError;
|
|
|
15981
16966
|
/** Create Or Update Organization Creates an organization if it doesn't already exist, or updates an existing organization. Using this method means one less call to check if an organization exists before creating it. You need to specify the id or external id when updating an organization to avoid a duplicate error response. Name is not available as a matching criteria. #### Allowed For * Agents, with restrictions on certain actions */
|
|
15982
16967
|
export declare const createOrUpdateOrganization: API.OperationMethod<CreateOrUpdateOrganizationRequest, OrganizationResponse, CreateOrUpdateOrganizationError, ZendeskOpContext>;
|
|
15983
16968
|
export type CreateOrUpdateTicketFieldOptionError = ZendeskOpError;
|
|
15984
|
-
/** Create or Update Ticket Field Option Creates or updates an option for the given drop-down ticket field. To update an option, include the id of the option in the `custom_field_option` object. Example: `{"custom_field_option": {"id": 10002, "name": "Pineapples", ... }` If an option exists for the given ID, the option will be updated. Otherwise, a new option will be created. #### Response Returns one of the following status codes: - 200 with `Location: /api/v2/ticket_fields/{ticket_field_id}/options` if the ticket field option already exists in the database - 201 with `Location: /api/v2/ticket_fields/{ticket_field_id}/options` if the ticket field option is new #### Allowed For * Admins #### Rate Limit You can make 100 requests every 1 minute using this endpoint. The rate limiting mechanism behaves as described in [Monitoring your request activity](/api-reference/ticketing/account-configuration/usage_limits/#monitoring-your-request-activity) in the API introduction. #### Field Option Limits * 2000 options per ticket field */
|
|
16969
|
+
/** Create or Update Ticket Field Option Creates or updates an option for the given drop-down ticket field. To update an option, include the id of the option in the `custom_field_option` object. Example: `{"custom_field_option": {"id": 10002, "name": "Pineapples", ... }` If an option exists for the given ID, the option will be updated. Otherwise, a new option will be created. If the `id` is omitted, the endpoint looks up an existing option with a matching `value` and updates it (returning a 200 status), rather than creating a new option. A new option is only created if no option with the given `value` exists (returning a 201 status). #### Response Returns one of the following status codes: - 200 with `Location: /api/v2/ticket_fields/{ticket_field_id}/options` if the ticket field option already exists in the database - 201 with `Location: /api/v2/ticket_fields/{ticket_field_id}/options` if the ticket field option is new #### Allowed For * Admins #### Rate Limit You can make 100 requests every 1 minute using this endpoint. The rate limiting mechanism behaves as described in [Monitoring your request activity](/api-reference/ticketing/account-configuration/usage_limits/#monitoring-your-request-activity) in the API introduction. #### Field Option Limits * 2000 options per ticket field */
|
|
15985
16970
|
export declare const createOrUpdateTicketFieldOption: API.OperationMethod<CreateOrUpdateTicketFieldOptionRequest, CustomFieldOptionResponse, CreateOrUpdateTicketFieldOptionError, ZendeskOpContext>;
|
|
15986
16971
|
export type CreateOrUpdateUserError = ZendeskOpError;
|
|
15987
16972
|
/** Create Or Update User Creates a user if the user does not already exist, or updates an existing user identified by e-mail address or external ID. If you don't specify a role parameter, the new user is assigned the role of end user. If you need to create users without sending out a verification email, include a `"skip_verify_email": true` property in the body. #### External ID Case Sensitivity When providing an external id to identify an existing user to update, the search for the user record is not case sensitive. However, if an existing user is found, the system will update the user's external id to match the case of the external id used to find the user. #### Response Status Code - If the user already exists in Zendesk, a successful request returns a 200 OK status code. - If the user does not exist in Zendesk and is created, the request returns a 201 Created status code. - In both cases, the API responds with a JSON body containing the full user object, which includes the user's id and the fully-resolved URL to the user resource. Example response: ```json { "user": { "id": 8929981612030, "url": "https://{subdomain}.zendesk.com/api/v2/users/8929981612030", ... } } ``` #### Allowed For * Admins and [agents in custom roles with permission](https://support.zendesk.com/hc/en-us/articles/4408882153882#topic_cxn_hig_bd) to manage end users or team members */
|
|
@@ -16053,7 +17038,7 @@ export type CreateTicketSatisfactionRatingError = ZendeskOpError;
|
|
|
16053
17038
|
/** Create a Satisfaction Rating Creates a CSAT rating for a solved ticket, or for a ticket that was previously solved and then reopened. Only the end user listed as the ticket requester can create a satisfaction rating for the ticket. Only "good" and "bad" are valid values for the score when creating a rating. Other states, like "offered", are not valid and will result in a 422 error. #### Allowed For * End user who requested the ticket The end user must be a verified user. */
|
|
16054
17039
|
export declare const createTicketSatisfactionRating: API.OperationMethod<CreateTicketSatisfactionRatingRequest, SatisfactionRatingResponse, CreateTicketSatisfactionRatingError, ZendeskOpContext>;
|
|
16055
17040
|
export type CreateTokenForGrantTypeError = ZendeskOpError;
|
|
16056
|
-
/** Create Token for Grant Type Returns an OAuth access token in exchange for one of the following: - an [authorization code](https://support.zendesk.com/hc/en-us/articles/4408845965210#topic_pvr_ncl_1l) - a [refresh token](https://support.zendesk.com/hc/en-us/articles/4408845965210#topic_p1c_xjf_52c) - a [client secret](https://support.zendesk.com/hc/en-us/articles/4408845965210#topic_s21_lfs_qk) - a [device code](https://datatracker.ietf.org/doc/html/rfc8628) obtained from [Start a device authorization grant](#oauth-device-authorization) (not yet generally available) **Note**: The password grant type flow, which used a Zendesk username and password to get an access token, has been deprecated and is highly discouraged. To revoke an access token, see [Revoke Token](/api-reference/ticketing/oauth/oauth_tokens/#revoke-token). #### Request parameters The POST request takes the following parameters
|
|
17041
|
+
/** Create Token for Grant Type Returns an OAuth access token in exchange for one of the following: - an [authorization code](https://support.zendesk.com/hc/en-us/articles/4408845965210#topic_pvr_ncl_1l) - a [refresh token](https://support.zendesk.com/hc/en-us/articles/4408845965210#topic_p1c_xjf_52c) - a [client secret](https://support.zendesk.com/hc/en-us/articles/4408845965210#topic_s21_lfs_qk) - a [device code](https://datatracker.ietf.org/doc/html/rfc8628) obtained from [Start a device authorization grant](#oauth-device-authorization) (not yet generally available) **Note**: The password grant type flow, which used a Zendesk username and password to get an access token, has been deprecated and is highly discouraged. To revoke an access token, see [Revoke Token](/api-reference/ticketing/oauth/oauth_tokens/#revoke-token). #### Request parameters The POST request takes the following parameters. Send them in the request body as JSON or URL-encoded form data: **Authorization code example** ```javascript const tokenResponse = await axios.post( "https://{subdomain}.zendesk.com/oauth/tokens", { grant_type: "authorization_code", code: AUTHORIZATION_CODE, client_id: ZENDESK_CLIENT_ID, redirect_uri: REDIRECT_URI_PKCE, scope: "tickets:read users:read", code_verifier: CODE_VERIFIER, expires_in: 86400, refresh_token_expires_in: 604800, }, { headers: { "Content-Type": "application/json" } } ); ``` **Refresh token example** ```javascript const tokenResponse = await axios.post( "https://{subdomain}.zendesk.com/oauth/tokens", { grant_type: "refresh_token", refresh_token: REFRESH_TOKEN, client_id: ZENDESK_CLIENT_ID, client_secret: ZENDESK_CLIENT_SECRET, scope: "tickets:write", expires_in: 86400, refresh_token_expires_in: 604800, }, { headers: { "Content-Type": "application/json" } } ); ``` **Client credentials example** ```javascript const tokenResponse = await axios.post( "https://{subdomain}.zendesk.com/oauth/tokens", { grant_type: "client_credentials", client_id: ZENDESK_CLIENT_ID, client_secret: ZENDESK_CLIENT_SECRET, scope: "tickets:write", expires_in: 86400 }, { headers: { "Content-Type": "application/json" } } ); ``` **Device grant example** ```javascript // Poll after starting the flow at POST /oauth/device_authorization. // While the end user has not yet approved: 400 authorization_pending. // If polling faster than the advertised interval: 400 slow_down. const tokenResponse = await axios.post( "https://{subdomain}.zendesk.com/oauth/tokens", { grant_type: "urn:ietf:params:oauth:grant-type:device_code", device_code: DEVICE_CODE, client_id: ZENDESK_CLIENT_ID, client_secret: ZENDESK_CLIENT_SECRET }, { headers: { "Content-Type": "application/json" } } ); ``` #### Scope You must specify a scope to control the app's access to Zendesk resources. The "read" scope gives access to GET endpoints and includes permission to sideload related resources. The "write" scope gives access to POST, PUT, and DELETE endpoints for creating, updating, and deleting resources. **Note**: Don't confuse the **scope** parameter (singular) with the **scopes** parameter (plural) for non-grant-type tokens described in [OAuth Tokens](/api-reference/ticketing/oauth/oauth_tokens). The "impersonate" scope allows a Zendesk admin to make requests on behalf of end users. See [Making API requests on behalf of end users](/documentation/ticketing/using-the-zendesk-api/making-api-requests-on-behalf-of-end-users/). **Broad scopes** The following parameter gives read access to all resources: `"scope": "read"` The following parameter gives read and write access to all resources: `"scope": "read write"` **Resource-specific scopes** You can fine-tune access using resource-specific scopes. The syntax is as follows: `"scope": "resource:action"` For example, the following parameter restricts the scope to only reading tickets: `"scope": "tickets:read"` To give read and write access to a resource, specify both scopes: `"scope": "users:read users:write"` To give write access only to one resource, such as organizations, and read access to everything else: `"scope": "organizations:write read"` **Scope errors** There are two distinct scope-related error cases to be aware of: - **Unrecognized scope string**: If you specify a scope value that doesn't exist (for example, a typo such as `"scope": ["read", "write"]` using an array instead of a string), the endpoint still creates an access token. However, any API request made with that token will return a `403 Forbidden` error. - **Scope outside client's allowed scopes**: If the OAuth client has [allowed scopes](/api-reference/ticketing/oauth/oauth_clients/#create-client) configured and you request a scope not included in that list, the endpoint returns `400 Bad Request` with an `invalid_scope` error and no token is created. **Available scopes** */
|
|
16057
17042
|
export declare const createTokenForGrantType: API.OperationMethod<CreateTokenForGrantTypeRequest, OAuthTokenForGrantTypesObject, CreateTokenForGrantTypeError, ZendeskOpContext>;
|
|
16058
17043
|
export type CreateTrialAccountError = ZendeskOpError;
|
|
16059
17044
|
/** Create Trial Account */
|
|
@@ -16125,7 +17110,7 @@ export type DeleteBookmarkError = ZendeskOpError;
|
|
|
16125
17110
|
/** Delete Bookmark #### Allowed For - Agents (own bookmarks only) If the bookmark already exists with a specified ticket id, the response status will be `http Status: 200 OK`. */
|
|
16126
17111
|
export declare const deleteBookmark: API.OperationMethod<DeleteBookmarkRequest, DeleteBookmarkResponse, DeleteBookmarkError, ZendeskOpContext>;
|
|
16127
17112
|
export type DeleteBrandError = ZendeskOpError;
|
|
16128
|
-
/** Delete a Brand Deletes a brand. #### Allowed for - Admins */
|
|
17113
|
+
/** Delete a Brand Deletes a brand. #### Allowed for - Admins - Agents with `delete_brands` enabled and `manage_brands` set to "all" - Agents with `delete_brands` enabled and `manage_brands` set to "member", for brands they belong to */
|
|
16129
17114
|
export declare const deleteBrand: API.OperationMethod<DeleteBrandRequest, DeleteBrandResponse, DeleteBrandError, ZendeskOpContext>;
|
|
16130
17115
|
export type DeleteBrandAgentError = ZendeskOpError;
|
|
16131
17116
|
/** Delete Brand Agent Membership Deletes a brand agent membership, removing the agent's access to the brand. The `brand_agent_id` is the id of the brand agent membership returned by the list and show endpoints, not the id of the brand or the user. #### Allowed For * Admins */
|
|
@@ -16530,8 +17515,8 @@ export type GetItamStatusError = ZendeskOpError;
|
|
|
16530
17515
|
/** Show Asset Status Returns the status with the specified id. #### Allowed For * Agents */
|
|
16531
17516
|
export declare const getItamStatus: API.OperationMethod<GetItamStatusRequest, ItamAssetStatusResponse, GetItamStatusError, ZendeskOpContext>;
|
|
16532
17517
|
export type GetJobStatusError = ZendeskOpError;
|
|
16533
|
-
/** Show Job Status Shows the status of a background job. #### Allowed For: * Agents */
|
|
16534
|
-
export declare const getJobStatus: API.OperationMethod<GetJobStatusRequest,
|
|
17518
|
+
/** Show Job Status Shows the status of a background job. User-migration jobs additionally return migration preview, execution, or validation results. Existing job formats are unchanged. Prefer the polling URL returned when work is accepted, and inspect result items as well as the outer job status. #### Allowed For: * Agents */
|
|
17519
|
+
export declare const getJobStatus: API.OperationMethod<GetJobStatusRequest, GetJobStatusResponse, GetJobStatusError, ZendeskOpContext>;
|
|
16535
17520
|
export type GetLocaleByIdError = ZendeskOpError;
|
|
16536
17521
|
/** Show Locale #### Allowed For * Anyone */
|
|
16537
17522
|
export declare const getLocaleById: API.OperationMethod<GetLocaleByIdRequest, LocaleResponse, GetLocaleByIdError, ZendeskOpContext>;
|
|
@@ -16859,9 +17844,15 @@ export declare const listBrandAgentsByBrand: API.OperationMethod<ListBrandAgents
|
|
|
16859
17844
|
export type ListBrandsError = ZendeskOpError;
|
|
16860
17845
|
/** List Brands Returns a list of all brands for your account sorted by name. #### Allowed for * Admins * Agents with the `assign_tickets_to_any_brand` permission can list all brands for the account * Agents without the `assign_tickets_to_any_brand` permission can only list brands they are members of #### Pagination * Cursor pagination See [Pagination](/api-reference/introduction/pagination/). */
|
|
16861
17846
|
export declare const listBrands: API.PaginatedOperationMethod<ListBrandsRequest, ListBrandsResponse, ListBrandsError, ZendeskOpContext, BrandObject>;
|
|
17847
|
+
export type ListBrandUserMigrationInconsistenciesError = ZendeskOpError;
|
|
17848
|
+
/** List Migration Inconsistencies Returns persisted migration validation findings, ordered by finding ID. A reference is a ticket requester, ticket collaborator, or identity. `reference_id` is the ticket API ID or identity ID, respectively. User and identity separation scopes are stored with each finding. Ticket brand separation reflects the current brand setting and may be null if the brand cannot be resolved. Ticket references include a nullable stored `suggested_user_id`; identity references instead include `reference_scope` and a nullable public `identity_type`. This endpoint does not start validation or require an `in_progress` migration. Results may be partial while detection runs or capped by the detector. An empty page does not prove validation succeeded. Restart pagination after requesting validation again. The same reference ID can occur in multiple findings. #### Pagination * Cursor pagination only; default and maximum page size is 100. * Use `page[size]`, and either `page[after]` or `page[before]`, not both cursors. #### Allowed For * Admins #### Availability Requires multibrand and brand user migration enabled for the account. Stored findings remain readable for reconciling, completed, and aborted migrations. */
|
|
17849
|
+
export declare const listBrandUserMigrationInconsistencies: API.OperationMethod<ListBrandUserMigrationInconsistenciesRequest, ListBrandUserMigrationInconsistenciesResponse, ListBrandUserMigrationInconsistenciesError, ZendeskOpContext>;
|
|
16862
17850
|
export type ListBrandUserMigrationsError = ZendeskOpError;
|
|
16863
17851
|
/** List Brand User Migrations Returns a list of brand user migrations for a specific brand, sorted by creation date in descending order. The response is not paginated; all migrations for the brand are returned. #### Allowed For * Admins #### Availability Available on accounts with Department Spaces. */
|
|
16864
17852
|
export declare const listBrandUserMigrations: API.OperationMethod<ListBrandUserMigrationsRequest, BrandUserMigrationsResponse, ListBrandUserMigrationsError, ZendeskOpContext>;
|
|
17853
|
+
export type ListBrandUserMigrationUsersError = UnprocessableEntity | ZendeskOpError;
|
|
17854
|
+
/** List Brand User Migration Users Lists users for an `in_progress` migration, ordered by user ID. The default `not_started` filter lists active end users in the source scope without an attempt for this migration. Attempted statuses include users that have since moved scope or become inactive. Users ignored for no brand interaction are not listed, including with `status=all`. For account-to-brand migrations, the initial list uses recorded brand interactions, without confirming them in Search. A migration attempt confirms interaction; users without it are recorded as ignored and drop off the list. Brand-to-account migrations list source users assigned to the brand. Each entry has `user_id` and `status`. Attempted entries also include `migration_id`, and `migration_action` when recorded. Failed and conflicted entries include `status_info`; conflicted entries also include `matching_users`. #### Pagination * Cursor pagination only; default and maximum page size is 100. * Use `page[size]`, and either `page[after]` or `page[before]`, not both cursors. #### Allowed For * Admins #### Availability Requires multibrand and brand user migration enabled for the account. Onboarding into an inactive brand is not allowed; offboarding from one is allowed. */
|
|
17855
|
+
export declare const listBrandUserMigrationUsers: API.OperationMethod<ListBrandUserMigrationUsersRequest, ListBrandUserMigrationUsersResponse, ListBrandUserMigrationUsersError, ZendeskOpContext>;
|
|
16865
17856
|
export type ListCCDRequestsError = ZendeskOpError;
|
|
16866
17857
|
/** List CCD Requests Lists requests where the authenticated end user is CC'd. #### Allowed for * End Users #### Pagination * Cursor pagination (recommended) * Offset pagination See [Pagination](/api-reference/introduction/pagination/). */
|
|
16867
17858
|
export declare const listCCDRequests: API.OperationMethod<ListCCDRequestsRequest, RequestsResponse, ListCCDRequestsError, ZendeskOpContext>;
|
|
@@ -17073,7 +18064,7 @@ export type ListSatisfactionRatingReasonsError = ZendeskOpError;
|
|
|
17073
18064
|
/** List Reasons for Satisfaction Rating List all reasons for an account #### Allowed For * Admins */
|
|
17074
18065
|
export declare const listSatisfactionRatingReasons: API.OperationMethod<ListSatisfactionRatingReasonsRequest, SatisfactionReasonsResponse, ListSatisfactionRatingReasonsError, ZendeskOpContext>;
|
|
17075
18066
|
export type ListSatisfactionRatingsError = ZendeskOpError;
|
|
17076
|
-
/** List Satisfaction Ratings #### Allowed For * Admins #### Pagination * Cursor pagination (recommended) * Offset pagination See [Pagination](/api-reference/introduction/pagination/). #### Filters If you specify an unqualified score such as `good`, the results include all the records with and without comments. Examples: * `/api/v2/satisfaction_ratings?score=bad` * `/api/v2/satisfaction_ratings?score=bad&start_time=1498151194` * `/api/v2/satisfaction_ratings?start_time=1340384793&end_time=1371920793` */
|
|
18067
|
+
/** List Satisfaction Ratings Returns all rating changes and states over the lifetime of a ticket, not just the ticket's final rating. For example, if a survey is offered to a user, the user rates it "bad", and later updates it to "good", the endpoint returns three separate entries for that ticket ("offered", "bad", and "good"). To filter tickets by their current, final rating, use the [Search API](/api-reference/ticketing/ticket-management/search/) instead. #### Allowed For * Admins #### Pagination * Cursor pagination (recommended) * Offset pagination See [Pagination](/api-reference/introduction/pagination/). #### Filters If you specify an unqualified score such as `good`, the results include all the records with and without comments. Examples: * `/api/v2/satisfaction_ratings?score=bad` * `/api/v2/satisfaction_ratings?score=bad&start_time=1498151194` * `/api/v2/satisfaction_ratings?start_time=1340384793&end_time=1371920793` */
|
|
17077
18068
|
export declare const listSatisfactionRatings: API.OperationMethod<ListSatisfactionRatingsRequest, SatisfactionRatingsResponse, ListSatisfactionRatingsError, ZendeskOpContext>;
|
|
17078
18069
|
export type ListSavedSearchesError = ZendeskOpError;
|
|
17079
18070
|
/** List Saved Searches Returns all saved searches for the requesting agent. #### Allowed For - Agents */
|
|
@@ -17288,12 +18279,21 @@ export declare const markManyTicketsAsSpam: API.OperationMethod<MarkManyTicketsA
|
|
|
17288
18279
|
export type MarkTicketAsSpamAndSuspendRequesterError = ZendeskOpError;
|
|
17289
18280
|
/** Mark Ticket as Spam and Suspend Requester #### Allowed For * Agents */
|
|
17290
18281
|
export declare const markTicketAsSpamAndSuspendRequester: API.OperationMethod<MarkTicketAsSpamAndSuspendRequesterRequest, MarkTicketAsSpamAndSuspendRequesterResponse, MarkTicketAsSpamAndSuspendRequesterError, ZendeskOpContext>;
|
|
17291
|
-
export type MergeEndUsersError = ZendeskOpError;
|
|
17292
|
-
/** Merge End Users Merges the end user specified in the path parameter into the existing end user specified in the request body.
|
|
18282
|
+
export type MergeEndUsersError = UnprocessableEntity | ZendeskOpError;
|
|
18283
|
+
/** Merge End Users Merges the end user specified in the path parameter into the existing end user specified in the request body. Within the same separation scope, the normal merge rules apply. End users created by sharing agreements cannot be merged. To be eligible for merging, the user in the path parameter must be a requester on 10,000 or fewer tickets. Otherwise, the merge will be blocked. Agents, admins, and users with more than 10,000 requested tickets cannot be merged. #### Merging across separation scopes With full brand user separation and customer-directed migrations enabled, the source and selected destination can belong to different scopes. Both must be active end users in the authenticated account. If the destination is brand-scoped, the source must have no confirmed interactions outside that brand. If the destination is account-scoped, the source must have no confirmed brand interactions. Comment interactions can also prevent a merge. Matching identities and external IDs in the destination scope must belong to the selected destination, not additional users. The ordinary merge restrictions, ticket-volume limit, and configured identity limit also apply. Cross-scope merges run asynchronously, but HTTP 200 still returns the selected destination `user`, not a migration resource, job ID, or polling URL. It acknowledges submission and does not confirm that the background merge finished. No brand migration run or `migration_id` is required. A source already held by another migration returns 422, not 409, on this endpoint. Repeating the request is not a job-status query. OAuth accepts `users:write`, global `write`, or global `read` for this endpoint. A token scope does not grant the caller permission to merge users. For more information about how user data is merged, see [Merging a user's duplicate account](https://support.zendesk.com/hc/en-us/articles/4408887695898) in Zendesk help. #### Allowed For * Admins or agents with permission to edit end users */
|
|
17293
18284
|
export declare const mergeEndUsers: API.OperationMethod<MergeEndUsersRequest, UserResponse, MergeEndUsersError, ZendeskOpContext>;
|
|
17294
18285
|
export type MergeTicketsIntoTargetTicketError = ZendeskOpError;
|
|
17295
18286
|
/** Merge Tickets into Target Ticket Merges one or more tickets into the ticket with the specified id. See [Merging tickets](https://support.zendesk.com/hc/en-us/articles/4408882445594) in the Support Help Center for ticket merging rules. Any attachment to the source ticket is copied to the target ticket. This endpoint returns a `job_status` [JSON object](/api-reference/ticketing/ticket-management/job_statuses/#json-format) and queues a background job to do the work. Use the [Show Job Status](/api-reference/ticketing/ticket-management/job_statuses/#show-job-status) endpoint to check for the job's completion. Only a certain number of jobs can be queued or running at the same time. See [Job limit](/api-reference/introduction/rate-limits/#job-limit) for more information. #### Allowed For * Agents Agents in the Enterprise account must have merge permissions. See [Creating custom roles and assigning agents](https://support.zendesk.com/hc/en-us/articles/4408882153882) in Zendesk help. #### Available parameters The request takes a data object with the following properties: `target_comment` and `source_comment` can be used to provide a reason for the merge for recordkeeping purposes. If the source ticket has attachments, they are included in `target_comment`. Comments are private and can't be modified in the following cases: * Any of the sources or target tickets are private * Any of the sources or target tickets were created through X (formerly Twitter), Facebook or the Channel framework In any other case, comments default to private but can be modified with the comment privacy parameters. */
|
|
17296
18287
|
export declare const mergeTicketsIntoTargetTicket: API.OperationMethod<MergeTicketsIntoTargetTicketRequest, JobStatusResponse, MergeTicketsIntoTargetTicketError, ZendeskOpContext>;
|
|
18288
|
+
export type MigrateBrandUserError = Conflict | UnprocessableEntity | ZendeskOpError;
|
|
18289
|
+
/** Migrate Brand User Migrates the source user using the server-selected action. No request body is required. An `update` runs synchronously and returns a completed per-user migration with `migrated_user`. A `clone`, `merge`, or `move_references` runs asynchronously and returns `job_status` instead of `migrated_user`, normally with an `in_progress` row. The row is reloaded after enqueue, so a fast worker can already have advanced its status or changed its action before the response. Provisional brand-run heavy decisions are durably finalized when work starts; retries execute the saved final outcome. A final ignore/conflict, or a failed reselected Update, can leave a null recorded action. Use the completed job result for the final outcome, not the submission snapshot. `source_user` and, when returned, `migrated_user` use the standard [User JSON format](/api-reference/ticketing/users/users/#json-format). Response examples below show selected user fields, not complete user objects. Poll `GET /api/v2/job_statuses/{id}` using the job ID or URL. The completed job's `results` is a single object, not an array. It has source user `id`, `success`, `status`, and optional `action`, `brand_user_migration_id`, `migrated_user_id`, or `error` containing a stable `code`. A completed attempt is immutable and returned as-is on retry while the source user is still active. A merged, now inactive source user returns 404. Conflicted, failed, and no-brand-interaction ignored outcomes are persisted and may be retried using the same attempt while the source user is active. In-flight attempts return 409. Ignore and conflict decisions return 422 with the preview response shape. Other rejections return an error response. #### Allowed For * Admins #### Availability Requires multibrand, brand user migration enabled, and an `in_progress` migration. Onboarding into an inactive brand is not allowed; offboarding from one is allowed. */
|
|
18290
|
+
export declare const migrateBrandUser: API.OperationMethod<MigrateBrandUserRequest, BrandUserMigrationResultResponse, MigrateBrandUserError, ZendeskOpContext>;
|
|
18291
|
+
export type MigrateManyBrandUsersError = UnprocessableEntity | ZendeskOpError;
|
|
18292
|
+
/** Migrate Many Brand Users Enqueues migration for 1 to 100 source user IDs and returns a job status. The batch waits for any per-user background jobs before recording final outcomes. Poll `GET /api/v2/job_statuses/{id}` using the returned ID or URL. An accepted batch does not mean every user migrated successfully. Each entry in the completed job's `results` array has source user `id`, `success`, and `status`: `completed`, `conflicted`, `ignored`, `already_in_flight`, or `failed`. Entries may also have `action`, `brand_user_migration_id`, and `migrated_user_id` when available. Unsuccessful entries have an `error` object containing a stable `code`. Example completed polling response (excerpt, not the initial submission response; other job-status fields are omitted). A completed job can contain an unsuccessful migration outcome: ```json { "job_status": { "status": "completed", "results": [ { "id": 102, "success": false, "status": "already_in_flight", "error": { "code": "migration_already_in_progress" } } ] } } ``` The response uses the standard Job Status API. OAuth polling requires a token with the global `read` scope in addition to the scope needed to submit this request. #### Allowed For * Admins #### Availability Requires multibrand, brand user migration enabled, and an `in_progress` migration. Onboarding into an inactive brand is not allowed; offboarding from one is allowed. Returns 403 when bulk migration is disabled. */
|
|
18293
|
+
export declare const migrateManyBrandUsers: API.OperationMethod<MigrateManyBrandUsersRequest, UserMigrationJobStatusResponse, MigrateManyBrandUsersError, ZendeskOpContext>;
|
|
18294
|
+
export type MoveUserReferencesError = Conflict | UnprocessableEntity | ZendeskOpError;
|
|
18295
|
+
/** Move User References Across Scopes Moves one brand's ticket references from the source user in the path to the existing destination user selected by `user.id`. Both users remain in their original scopes, their identities are not merged, and references for other brands remain with the source. The destination is explicit, not selected by email or external-ID matching. Both users must be active end users in different separation scopes and belong to the authenticated account. `brand.id` selects an active brand in that account. If the destination is brand-scoped, it must be that same brand. If the destination is account-scoped, an explicitly selected brand can differ from the source user's brand. If `brand.id` is omitted, the API defaults to the source brand for brand-to-account moves, otherwise the destination brand. Supplying it explicitly is recommended. No brand migration run or `migration_id` is required. HTTP 200 returns a `brand_user_migration` with a null `migration_id` and nested `job_status`. Work runs asynchronously. Poll the job URL with the global OAuth `read` scope. The completed job's `results` is a single object with `success`, `status`, and, when successful, `migrated_user_id` identifying the selected destination. Submission is not completion: eligibility and ticket-volume checks can still reject the background work. `source_user` uses the standard [User JSON format](/api-reference/ticketing/users/users/#json-format). Response examples below show selected user fields, not the complete user object. #### Allowed For * Admins and agents permitted to edit both source and destination users #### Availability Requires full brand user separation and customer-directed migrations enabled for the account. Returns 404 when this feature is unavailable; authorization or parameter checks can fail before the feature check. */
|
|
18296
|
+
export declare const moveUserReferences: API.OperationMethod<MoveUserReferencesRequest, UserMoveReferencesResponse, MoveUserReferencesError, ZendeskOpContext>;
|
|
17297
18297
|
export type OpenTicketInAgentBrowserError = NotFound | ZendeskOpError;
|
|
17298
18298
|
/** Open Ticket in Agent's Browser Allows you to instruct an agent's browser to open a ticket. When the message is successfully delivered to an agent's browser: ```http Status: 200 OK ``` When `agent_id` or `ticket_id` is invalid: ```http Status: 404 Not Found ``` #### Allowed For * Agents */
|
|
17299
18299
|
export declare const openTicketInAgentBrowser: API.OperationMethod<OpenTicketInAgentBrowserRequest, OpenTicketInAgentBrowserResponse, OpenTicketInAgentBrowserError, ZendeskOpContext>;
|
|
@@ -17312,9 +18312,15 @@ export declare const postAutocompleteTag: API.OperationMethod<PostAutocompleteTa
|
|
|
17312
18312
|
export type PostAutocompleteUserError = BadRequest | ZendeskOpError;
|
|
17313
18313
|
/** Autocomplete Users by Request Body Returns an array of users whose name starts with the value specified in the `name` property in the request body. It only returns users with no foreign identities. This endpoint accepts the same parameters as the [GET method](#autocomplete-users-by-query-string) but they are specified in the request body instead of the query string. #### Allowed For * Agents */
|
|
17314
18314
|
export declare const postAutocompleteUser: API.OperationMethod<PostAutocompleteUserRequest, UsersResponse, PostAutocompleteUserError, ZendeskOpContext>;
|
|
18315
|
+
export type PreviewBrandUserMigrationError = UnprocessableEntity | ZendeskOpError;
|
|
18316
|
+
/** Preview Brand User Migration Returns a read-only preview of the migration action for the source user. No request body is required and no records are changed. The decision is `ignore`, `update`, `clone`, `merge`, `move_references`, or `conflict`. Ignore and conflict decisions are successful previews, not HTTP errors. Execution may differ if the underlying data changes after the preview. `source_user` uses the standard [User JSON format](/api-reference/ticketing/users/users/#json-format). Response examples below show selected user fields, not the complete user object. #### Allowed For * Admins #### Availability Requires multibrand, brand user migration enabled, and an `in_progress` migration. Onboarding into an inactive brand is not allowed; offboarding from one is allowed. */
|
|
18317
|
+
export declare const previewBrandUserMigration: API.OperationMethod<PreviewBrandUserMigrationRequest, BrandUserMigrationPreviewResponse, PreviewBrandUserMigrationError, ZendeskOpContext>;
|
|
17315
18318
|
export type PreviewCountError = ZendeskOpError;
|
|
17316
18319
|
/** Preview Ticket Count Returns the ticket count for a single preview. #### Allowed For * Agents */
|
|
17317
18320
|
export declare const previewCount: API.OperationMethod<PreviewCountRequest, ViewCountResponse, PreviewCountError, ZendeskOpContext>;
|
|
18321
|
+
export type PreviewManyBrandUserMigrationsError = UnprocessableEntity | ZendeskOpError;
|
|
18322
|
+
/** Preview Many Brand User Migrations Enqueues read-only migration previews for 1 to 100 source user IDs. No users or migration attempt records are changed. Poll `GET /api/v2/job_statuses/{id}` using the returned ID or URL. Results reflect data when each item is processed. Unlike the single-user preview endpoint, a missing or foreign-account user produces a successful `ignore` preview with a placeholder source user containing the requested ID, without exposing another account's user data. Source users use the standard [User JSON format](/api-reference/ticketing/users/users/#json-format); the polling example below shows selected fields, not complete user objects. Each entry in the completed job's `results` array has source user `id` and `success`. Successful entries have `user_migration`, with the same payload as Preview Brand User Migration. Ignore and conflict are successful preview decisions. Processing failures instead have `error` containing a stable `code`. A serialized per-user result larger than 100 KiB returns `success: false` and error code `preview_result_too_large`, rather than a partial preview. Example completed polling response (excerpt, not the initial submission response; other job-status and User fields are omitted). An ignore decision is a successful preview, while a processing failure is not: ```json { "job_status": { "status": "completed", "results": [ { "id": 101, "success": true, "user_migration": { "action": "ignore", "description": "Migrating this user will have no effect.", "reason": "The user has not interacted with the target brand.", "source_user": { "id": 101, "name": "Alex Example", "email": "alex@example.com" } } }, { "id": 102, "success": false, "error": { "code": "preview_result_too_large" } } ] } } ``` OAuth requires the global `read` scope for both submission and polling; `users:read` alone is not sufficient. Account agents can retrieve job statuses and preview results through the standard job status API, even though only admins can submit this request. #### Allowed For * Admins #### Availability Requires multibrand, brand user migration enabled, and an `in_progress` migration. Onboarding into an inactive brand is not allowed; offboarding from one is allowed. Returns 403 when bulk preview is disabled. */
|
|
18323
|
+
export declare const previewManyBrandUserMigrations: API.OperationMethod<PreviewManyBrandUserMigrationsRequest, UserMigrationJobStatusResponse, PreviewManyBrandUserMigrationsError, ZendeskOpContext>;
|
|
17318
18324
|
export type PreviewViewsError = ZendeskOpError;
|
|
17319
18325
|
/** Preview Views You can preview views by constructing the conditions in the proper format and nesting them under the `view` property. See [Conditions reference](/documentation/ticketing/reference-guides/conditions-reference/). The output can also be controlled by passing in any of the following parameters and nesting them under the `output` property. This endpoint is rate limited to 5 requests per minute, per view, per agent. #### Pagination - Cursor pagination (recommended) - Offset pagination See [Pagination](/api-reference/introduction/pagination/). #### Allowed For * Agents */
|
|
17320
18326
|
export declare const previewViews: API.OperationMethod<PreviewViewsRequest, ViewResponse, PreviewViewsError, ZendeskOpContext>;
|
|
@@ -17529,14 +18535,11 @@ export type UpdateAutomationError = ZendeskOpError;
|
|
|
17529
18535
|
/** Update Automation Updates an automation. Updated automations must be unique and have at least one condition that is true only once or an action that nullifies at least one of the conditions. Active automations can have overlapping conditions but can't be identical. The request must include the following conditions in the `all` array: - At least one time-based condition - At least one condition that checks one of the following fields: 'status', 'type', 'group_id', 'assignee_id', or 'requester_id' **Note**: Updating a condition or action updates both the `conditions` and `actions` arrays, clearing all existing values of both arrays. Include all your conditions and actions when updating any condition or action. **Note**: You might be restricted from updating some default automations. #### Allowed For * Agents */
|
|
17530
18536
|
export declare const updateAutomation: API.OperationMethod<UpdateAutomationRequest, AutomationResponse, UpdateAutomationError, ZendeskOpContext>;
|
|
17531
18537
|
export type UpdateBrandError = ZendeskOpError;
|
|
17532
|
-
/** Update a Brand Returns an updated brand. #### Allowed for * Admins #### Updating a Brand's Image Use `PUT /api/v2/brands/{brand_id}/logo` to set or replace the brand logo, and `DELETE /api/v2/brands/{brand_id}/logo` to remove it. */
|
|
18538
|
+
/** Update a Brand Returns an updated brand. #### Allowed for * Admins * Agents with `manage_brands` set to "all" * Agents with `manage_brands` set to "member", for brands they belong to #### Updating a Brand's Image Use `PUT /api/v2/brands/{brand_id}/logo` to set or replace the brand logo, and `DELETE /api/v2/brands/{brand_id}/logo` to remove it. */
|
|
17533
18539
|
export declare const updateBrand: API.OperationMethod<UpdateBrandRequest, BrandResponse, UpdateBrandError, ZendeskOpContext>;
|
|
17534
18540
|
export type UpdateBrandLogoError = ZendeskOpError;
|
|
17535
18541
|
/** Update a Brand Logo Sets or replaces the logo on a brand using a multipart file upload. #### Allowed for * Admins */
|
|
17536
18542
|
export declare const updateBrandLogo: API.OperationMethod<UpdateBrandLogoRequest, BrandResponse, UpdateBrandLogoError, ZendeskOpContext>;
|
|
17537
|
-
export type UpdateBrandUserMigrationError = UnprocessableEntity | ZendeskOpError;
|
|
17538
|
-
/** Update Brand User Migration Updates the status of a brand user migration. #### Allowed For * Admins #### Availability Available on accounts with Department Spaces. */
|
|
17539
|
-
export declare const updateBrandUserMigration: API.OperationMethod<UpdateBrandUserMigrationRequest, BrandUserMigrationResponse, UpdateBrandUserMigrationError, ZendeskOpContext>;
|
|
17540
18543
|
export type UpdateClientError = ZendeskOpError;
|
|
17541
18544
|
/** Update Client #### Allowed for * Admins * Agents with the [Manage APIs](https://support.zendesk.com/hc/en-us/articles/4408882153882) permission */
|
|
17542
18545
|
export declare const updateClient: API.OperationMethod<UpdateClientRequest, OauthClientResponse, UpdateClientError, ZendeskOpContext>;
|
|
@@ -17607,8 +18610,8 @@ export type UpdateManyAutomationsError = ZendeskOpError;
|
|
|
17607
18610
|
/** Update Many Automations **Note**: You might be restricted from updating some default automations. If included in a bulk update, the unrestricted automations will be updated. #### Allowed For * Agents #### Request Parameters The PUT request expects an `automations` object that lists the automations to update. Each automation may have the following properties: #### Example Request ```js { "automations": [ {"id": 25, "position": 3}, {"id": 23, "position": 5}, {"id": 27, "position": 9}, {"id": 22, "position": 7} ] } ``` */
|
|
17608
18611
|
export declare const updateManyAutomations: API.OperationMethod<UpdateManyAutomationsRequest, AutomationsResponse, UpdateManyAutomationsError, ZendeskOpContext>;
|
|
17609
18612
|
export type UpdateManyDynamicContentVariantsError = ZendeskOpError;
|
|
17610
|
-
/** Update Many Variants Updates one or more variants. See [Update Variant](/api-reference/ticketing/ticket-management/dynamic_content_item_variants/#update-variant). You must specify the variants by id in the body. To get the variant ids, see [List Variants](/api-reference/ticketing/ticket-management/dynamic_content_item_variants/#list-variants). #### Allowed For * Admins, Agents */
|
|
17611
|
-
export declare const updateManyDynamicContentVariants: API.OperationMethod<UpdateManyDynamicContentVariantsRequest,
|
|
18613
|
+
/** Update Many Variants Updates one or more variants. See [Update Variant](/api-reference/ticketing/ticket-management/dynamic_content_item_variants/#update-variant). You must specify the variants by id in the body. To get the variant ids, see [List Variants](/api-reference/ticketing/ticket-management/dynamic_content_item_variants/#list-variants). #### Response This endpoint returns a `job_status` [JSON object](/api-reference/ticketing/ticket-management/job_statuses/#json-format) and queues a background job to do the work. Use the [Show Job Status](/api-reference/ticketing/ticket-management/job_statuses/#show-job-status) endpoint to check for the job's completion. Only a certain number of jobs can be queued or running at the same time. See [Job limit](/api-reference/introduction/rate-limits/#job-limit) for more information. #### Allowed For * Admins, Agents */
|
|
18614
|
+
export declare const updateManyDynamicContentVariants: API.OperationMethod<UpdateManyDynamicContentVariantsRequest, JobStatusResponse, UpdateManyDynamicContentVariantsError, ZendeskOpContext>;
|
|
17612
18615
|
export type UpdateManyMacrosError = ZendeskOpError;
|
|
17613
18616
|
/** Update Many Macros Updates the provided macros with the specified changes. #### Allowed For * Agents */
|
|
17614
18617
|
export declare const updateManyMacros: API.OperationMethod<UpdateManyMacrosRequest, UpdateManyMacrosResponse, UpdateManyMacrosError, ZendeskOpContext>;
|
|
@@ -17690,8 +18693,8 @@ export declare const updateTrigger: API.OperationMethod<UpdateTriggerRequest, Tr
|
|
|
17690
18693
|
export type UpdateTriggerCategoryError = BadRequest | NotFound | ZendeskOpError;
|
|
17691
18694
|
/** Update Ticket Trigger Category Updates the ticket trigger category with the specified ID. */
|
|
17692
18695
|
export declare const updateTriggerCategory: API.OperationMethod<UpdateTriggerCategoryRequest, TriggerCategoryResponse, UpdateTriggerCategoryError, ZendeskOpContext>;
|
|
17693
|
-
export type UpdateUserError = ZendeskOpError;
|
|
17694
|
-
/** Update User */
|
|
18696
|
+
export type UpdateUserError = UnprocessableEntity | ZendeskOpError;
|
|
18697
|
+
/** Update User Updates a user. */
|
|
17695
18698
|
export declare const updateUser: API.OperationMethod<UpdateUserRequest, UserResponse, UpdateUserError, ZendeskOpContext>;
|
|
17696
18699
|
export type UpdateUserFieldError = ZendeskOpError;
|
|
17697
18700
|
/** Update User Field #### Updating a Dropdown (Tagger) or Multiselect Field Dropdown and multiselect fields return an array of `custom_field_options` which specify the name, value, and order of the list of dropdown or multiselect options. Understand the following behavior when updating a dropdown or multiselect field: - All options must be passed on update. Options that are not passed will be removed. As a result, these values will be removed from any organizations. - To create a new option, pass a null `id` along with `name` and `value`. - To update an existing option, pass its `id` along with `name` and `value`. - To re-order an option, reposition it in the `custom_field_options` array relative to the other options. - To remove an option, omit it from the list of options upon update. #### Example Request ```bash curl https://{subdomain}.zendesk.com/api/v2/user_fields/{user_field_id} \ -H "Content-Type: application/json" -X PUT \ -d '{"user_field": {"custom_field_options": [{"id": 124, "name": "Option 2", "value": "option_2"}, {"id": 123, "name": "Option 1", "value": "option_1"}, {"id": 125, "name": "Option 2", "value": "option_3"}]}}' \ -v -H "Authorization: Bearer {access_token}" ``` #### Allowed for * Admins */
|
|
@@ -17714,6 +18717,9 @@ export declare const uploadFiles: API.OperationMethod<UploadFilesRequest, Attach
|
|
|
17714
18717
|
export type UpsertCustomObjectRecordByExternalIdOrNameError = ZendeskOpError;
|
|
17715
18718
|
/** Create or Update Custom Object Record Creates or updates a custom object record based on the provided external id, name, or unique field value. If a record exists for the given identifier, the endpoint updates it. Only the specified attributes are updated. Otherwise, the endpoint creates a new record with the provided identifier and other attributes. Specify only one identifier per request. * The `is_unique` property on the custom object's name field must be enabled in order to update or create by name. * To update or create by a unique field, send the field's key as the query parameter, for example `?vin=1HGCM82633A004352`. The field's `is_unique` property must be enabled. A new record is created with that value in the field. #### Allowed For * Agents */
|
|
17716
18719
|
export declare const upsertCustomObjectRecordByExternalIdOrName: API.OperationMethod<UpsertCustomObjectRecordByExternalIdOrNameRequest, CustomObjectRecordResponse, UpsertCustomObjectRecordByExternalIdOrNameError, ZendeskOpContext>;
|
|
18720
|
+
export type ValidateBrandUserMigrationError = BadRequest | Conflict | ZendeskOpError;
|
|
18721
|
+
/** Validate Brand User Migration Enqueues user validation for an `in_progress` migration or user references validation for a `reconciling` migration. Submission itself does not change the migration status, but the background jobs can advance it. No request body is required. Poll `GET /api/v2/job_statuses/{id}` using the returned job ID or URL. Successful user validation moves the migration to `reconciling` and attempts to queue reference validation. If `results.next_job_id` is non-null, poll that job too. Scheduling can fail even after user validation succeeds: if no reference-validation job is queued or running, retry this endpoint while the migration is `reconciling`. Results contain the parent migration `id`, `success`, `status`, and nullable `next_job_id`. User validation reports `users_migrations_complete`, `users_migrations_incomplete`, or `invalid_migration_status`. Reference validation reports `inconsistencies_detected`, `no_inconsistencies_detected`, `job_disabled`, or `invalid_migration_status`, and includes `inconsistencies_count` when findings were evaluated. Reference validation completes the migration when no stored findings remain; otherwise it stays `reconciling`. Validation coverage depends on the checks available for your account: success alone does not guarantee a new or exhaustive scan. `job_disabled` means the job did not validate or complete the migration. Inspect the result and current migration status, not just whether the job completed. Findings can be read with List Migration Inconsistencies. For example, polling a completed user-validation job can return the following excerpt. The migration is now `reconciling`; poll `next_job_id` for the next phase. Other job-status fields are omitted: ```json { "job_status": { "status": "completed", "results": { "id": "01J8X4Q3Z9K7M2N5P8R6T0V1WY", "success": true, "status": "users_migrations_complete", "next_job_id": "V3-references-example" } } } ``` #### Allowed For * Admins #### Availability Requires brand user migration enabled for the account. Returns 404 when brand user migration is disabled. */
|
|
18722
|
+
export declare const validateBrandUserMigration: API.OperationMethod<ValidateBrandUserMigrationRequest, UserMigrationJobStatusResponse, ValidateBrandUserMigrationError, ZendeskOpContext>;
|
|
17717
18723
|
export type ValidateTokenError = ZendeskOpError;
|
|
17718
18724
|
/** Validate Token #### Allowed For * Admins #### Request parameters The POST request takes a JSON object parameter which contains the token to be validated. #### Response format The response body is empty. */
|
|
17719
18725
|
export declare const validateToken: API.OperationMethod<ValidateTokenRequest, ValidateTokenResponse, ValidateTokenError, ZendeskOpContext>;
|