@distilled.cloud/zendesk 1.0.0-rc.12 → 1.0.0-rc.14

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.
@@ -1,6 +1,6 @@
1
+ import * as API from "@distilled.cloud/core/api";
1
2
  import * as S from "@distilled.cloud/core/schema";
2
3
  import * as Redacted from "effect/Redacted";
3
- import * as API from "@distilled.cloud/core/api";
4
4
  import { type ZendeskOpError, type ZendeskOpContext } from "../protocol.ts";
5
5
  export type { ZendeskOpError, ZendeskOpContext };
6
6
  declare const BadRequest_base: S.Class<BadRequest, S.TaggedStruct<"BadRequest", {
@@ -124,6 +124,9 @@ export declare const OrganizationObjectOrganizationFieldsMap: S.Schema<Organizat
124
124
  /** The tags of the organization */
125
125
  export type OrganizationObjectTagsList = Array<string>;
126
126
  export declare const OrganizationObjectTagsList: S.Schema<OrganizationObjectTagsList>;
127
+ /** Which tickets end users in this organization can see. Possible values are "restricted" or "organization". Takes precedence over the `shared_tickets` property. */
128
+ export type OrganizationObjectTicketRestriction = "restricted" | "organization";
129
+ export declare const OrganizationObjectTicketRestriction: any;
127
130
  export interface OrganizationObject {
128
131
  /** The time the organization was created */
129
132
  created_at?: string;
@@ -145,10 +148,12 @@ export interface OrganizationObject {
145
148
  organization_fields?: OrganizationObjectOrganizationFieldsMap | null;
146
149
  /** End users in this organization are able to comment on each other's tickets */
147
150
  shared_comments?: boolean;
148
- /** End users in this organization are able to see each other's tickets */
151
+ /** 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. */
149
152
  shared_tickets?: boolean;
150
153
  /** The tags of the organization */
151
154
  tags?: OrganizationObjectTagsList;
155
+ /** Which tickets end users in this organization can see. Possible values are "restricted" or "organization". Takes precedence over the `shared_tickets` property. */
156
+ ticket_restriction?: OrganizationObjectTicketRestriction;
152
157
  /** The time of the last update of the organization */
153
158
  updated_at?: string;
154
159
  /** The API url of this organization */
@@ -180,169 +185,484 @@ export interface AutocompleteTagsRequest {
180
185
  name?: string;
181
186
  }
182
187
  export declare const AutocompleteTagsRequest: S.Schema<AutocompleteTagsRequest>;
183
- export type AutocompleteUsersRequestFilter = "assignable" | "requester";
184
- export declare const AutocompleteUsersRequestFilter: any;
185
- export type AutocompleteUsersRequestBrandIdCase0 = "all";
186
- export declare const AutocompleteUsersRequestBrandIdCase0: any;
187
- export type AutocompleteUsersRequestBrandId = AutocompleteUsersRequestBrandIdCase0 | number;
188
- export declare const AutocompleteUsersRequestBrandId: S.Schema<AutocompleteUsersRequestBrandId>;
189
- export interface AutocompleteUsersRequest {
190
- /** The name to search for the user. You must specify either `name` or `phone`. */
188
+ export interface AutocompleteTicketsRequest {
189
+ /** The text used to match ticket subjects. */
191
190
  name?: string;
192
- /** The phone number to search for the user. You must specify either `name` or `phone`. */
193
- phone?: string;
194
- /** Filter to apply to autocomplete results. Accepted values: `assignable`, `requester`. */
195
- filter?: AutocompleteUsersRequestFilter | (string & {});
191
+ /** Lists tickets by support type. Possible values are "all", "agent", or "ai_agent". Defaults to "agent" */
192
+ support_type_scope?: string;
196
193
  /** The id of a lookup relationship field. The type of field is determined by the `source` param */
197
194
  field_id?: string;
198
195
  /** If a `field_id` is provided, this specifies the type of the field. For example, if the field is on a "zen:user", it references a field on a user */
199
196
  source?: string;
200
- /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/api-reference/ticketing/users/users/#sideloading). */
201
- include?: string;
202
- /** Number of results to return. */
203
- per_page?: number;
204
- /** When brand separation is enabled, scopes the autocomplete results to users belonging to the specified brand. Only applicable when the account has brand separation enabled. Accepted values: * "all" — search all users across all brands (no brand filtering applied). * 0 — restrict the autocomplete results to account-scoped (brand-less) users only. * A numeric brand id — if the brand has user separation enabled, autocomplete returns only end users belonging to that brand. Agents and admins are not included in the results when filtering by a specific brand. If the brand does not have user separation enabled, the request falls back to account scope (0). */
205
- brand_id?: AutocompleteUsersRequestBrandId;
206
- }
207
- export declare const AutocompleteUsersRequest: S.Schema<AutocompleteUsersRequest>;
208
- /** PUT or POST requests only. Assigns agent or agents to a brand. For more information, see [Agent brand ids](#agent-brand-ids) */
209
- export type UserForAdminAgentBrandIdsList = Array<number>;
210
- export declare const UserForAdminAgentBrandIdsList: S.Schema<UserForAdminAgentBrandIdsList>;
211
- /** The user's profile picture represented as an [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) object */
212
- export type UserForAdminPhotoMap = {
213
- [key: string]: unknown | undefined;
214
- };
215
- export declare const UserForAdminPhotoMap: S.Schema<UserForAdminPhotoMap>;
216
- /** The separation scope. "account" means account-level access; "brand" means access limited to a specific brand. */
217
- export type UserForAdminSeparationScope = "account" | "brand";
218
- export declare const UserForAdminSeparationScope: any;
219
- /** The brand separation scope for the user. Only present when the account has brand separation enabled. For end users, indicates whether they are scoped to the full account or a specific brand. Staff users (agents and admins) always have `scope: "account"`. */
220
- export interface UserForAdminSeparation {
221
- /** The id of the brand the user is scoped to. Only present when "scope" is "brand". */
222
- brand_id?: number;
223
- /** The separation scope. "account" means account-level access; "brand" means access limited to a specific brand. */
224
- scope: UserForAdminSeparationScope;
225
197
  }
226
- export declare const UserForAdminSeparation: S.Schema<UserForAdminSeparation>;
227
- export type UserForAdminSuspensionDetailsChannelsItem = "all" | "messaging";
228
- export declare const UserForAdminSuspensionDetailsChannelsItem: any;
229
- /** Channels on which the user is suspended. `["all"]` means suspended across every channel. If "all" is present, it must be the only element */
230
- export type UserForAdminSuspensionDetailsChannelsList = Array<UserForAdminSuspensionDetailsChannelsItem>;
231
- export declare const UserForAdminSuspensionDetailsChannelsList: S.Schema<UserForAdminSuspensionDetailsChannelsList>;
232
- /** Channel-level suspension state for the user. The value is null if the user has no active channel-level suspension */
233
- export interface UserForAdminSuspensionDetails {
234
- /** Channels on which the user is suspended. `["all"]` means suspended across every channel. If "all" is present, it must be the only element */
235
- channels: UserForAdminSuspensionDetailsChannelsList;
198
+ export declare const AutocompleteTicketsRequest: S.Schema<AutocompleteTicketsRequest>;
199
+ /** The ids of users currently CC'ed on the ticket */
200
+ export type TicketObjectOutputCollaboratorIdsList = Array<number>;
201
+ export declare const TicketObjectOutputCollaboratorIdsList: S.Schema<TicketObjectOutputCollaboratorIdsList>;
202
+ export interface AttachmentBaseObject {
203
+ /** The content type of the image. Example value: "image/png" */
204
+ content_type?: string;
205
+ /** A full URL where the attachment image file can be downloaded. The file may be hosted externally so take care not to inadvertently send Zendesk authentication credentials. See [Working with url properties](/documentation/api-basics/best-practices/working-with-url-properties/) */
206
+ content_url?: string;
207
+ /** If true, the attachment has been deleted */
208
+ deleted?: boolean;
209
+ /** The name of the image file */
210
+ file_name?: string;
211
+ /** The height of the image file in pixels. If height is unknown, returns null */
212
+ height?: number;
213
+ /** Automatically assigned when created */
214
+ id?: number;
215
+ /** If true, the attachment is excluded from the attachment list and the attachment's URL can be referenced within the comment of a ticket. Default is false */
216
+ inline?: boolean;
217
+ /** If true, you can download an attachment flagged as malware. If false, you can't download such an attachment. */
218
+ malware_access_override?: boolean;
219
+ /** The result of the malware scan. There is a delay between the time the attachment is uploaded and when the malware scan is completed. Usually the scan is done within a few seconds, but high load conditions can delay the scan results. Possible values: "malware_found", "malware_not_found", "failed_to_scan", "not_scanned" */
220
+ malware_scan_result?: string;
221
+ /** The URL the attachment image file has been mapped to */
222
+ mapped_content_url?: string;
223
+ /** The size of the image file in bytes */
224
+ size?: number;
225
+ /** A URL to access the attachment details */
226
+ url?: string;
227
+ /** The width of the image file in pixels. If width is unknown, returns null */
228
+ width?: number;
236
229
  }
237
- export declare const UserForAdminSuspensionDetails: S.Schema<UserForAdminSuspensionDetails>;
238
- /** The user's tags. Only present if your account has user tagging enabled */
239
- export type UserForAdminTagsList = Array<string>;
240
- export declare const UserForAdminTagsList: S.Schema<UserForAdminTagsList>;
241
- /** Values of custom fields in the user's profile. See [User Fields](#user-fields) */
242
- export type UserForAdminUserFieldsMap = {
243
- [key: string]: unknown | undefined;
244
- };
245
- export declare const UserForAdminUserFieldsMap: S.Schema<UserForAdminUserFieldsMap>;
246
- export interface UserForAdmin {
247
- /** false if the user has been deleted */
248
- active?: boolean;
249
- /** PUT or POST requests only. Assigns agent or agents to a brand. For more information, see [Agent brand ids](#agent-brand-ids) */
250
- agent_brand_ids?: UserForAdminAgentBrandIdsList;
251
- /** An alias displayed to end users */
252
- alias?: string;
253
- /** Whether or not the user is a chat-only agent */
254
- chat_only?: boolean;
255
- /** The time the user was created */
256
- created_at?: string;
257
- /** A custom role if the user is an agent on the Enterprise plan or above */
258
- custom_role_id?: number | null;
259
- /** The id of the user's default group */
260
- default_group_id?: number;
261
- /** Any details you want to store about the user, such as an address */
262
- details?: string;
263
- /** The user's primary email address. *Writeable on create only. On update, a secondary email is added. See [Email Address](#email-address) */
264
- email?: string;
265
- /** A unique identifier from another system. The API treats the id as case insensitive. Example: "ian1" and "IAN1" are the same value. */
266
- external_id?: string | null;
267
- /** The time zone for the user */
268
- iana_time_zone?: string;
269
- /** Automatically assigned when the user is created */
230
+ export declare const AttachmentBaseObject: S.Schema<AttachmentBaseObject>;
231
+ /** An array of attachment objects. Note that photo thumbnails do not have thumbnails */
232
+ export type AttachmentObjectThumbnailsList = Array<AttachmentBaseObject>;
233
+ export declare const AttachmentObjectThumbnailsList: S.Schema<AttachmentObjectThumbnailsList>;
234
+ /** A file represented as an [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) object */
235
+ export interface AttachmentObject {
236
+ /** The content type of the image. Example value: "image/png" */
237
+ content_type?: string;
238
+ /** A full URL where the attachment image file can be downloaded. The file may be hosted externally so take care not to inadvertently send Zendesk authentication credentials. See [Working with url properties](/documentation/api-basics/best-practices/working-with-url-properties/) */
239
+ content_url?: string;
240
+ /** If true, the attachment has been deleted */
241
+ deleted?: boolean;
242
+ /** The name of the image file */
243
+ file_name?: string;
244
+ /** The height of the image file in pixels. If height is unknown, returns null */
245
+ height?: number;
246
+ /** Automatically assigned when created */
270
247
  id?: number;
271
- /** Last time the user signed in to Zendesk Support or made an API request using an API token */
272
- last_login_at?: string;
273
- /** 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. */
274
- locale?: string;
275
- /** The user's language identifier */
276
- locale_id?: number;
277
- /** Designates whether the user has forum moderation capabilities */
278
- moderator?: boolean;
279
- /** The user's name */
280
- name: string;
281
- /** Any notes you want to store about the user */
282
- notes?: string;
283
- /** true if the user can only create private comments */
284
- only_private_comments?: boolean;
285
- /** The id of the user's organization. If the user has more than one [organization memberships](/api-reference/ticketing/organizations/organization_memberships/), the id of the user's default organization. If updating, see [Organization ID](#organization-id) */
286
- organization_id?: number | null;
287
- /** The user's primary phone number. See [Phone Number](#phone-number) below */
288
- phone?: string | null;
289
- /** The user's profile picture represented as an [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) object */
290
- photo?: UserForAdminPhotoMap | null;
291
- /** A URL pointing to the user's profile picture. */
292
- remote_photo_url?: string;
293
- /** This parameter is inert and has no effect. It may be deprecated in the future. Previously, this parameter determined whether a user could access a CSV report in a legacy Guide dashboard. This dashboard has been removed. See [Announcing Guide legacy reporting upgrade to Explore](https://support.zendesk.com/hc/en-us/articles/4762263171610-Announcing-Guide-legacy-reporting-upgrade-to-Explore-) */
294
- report_csv?: boolean;
295
- /** If the agent has any restrictions; false for admins and unrestricted agents, true for other agents */
296
- restricted_agent?: boolean;
297
- /** The user's role. Possible values are "end-user", "agent", or "admin" */
298
- role?: string;
299
- /** The user's role id. 0 for a custom agent, 1 for a light agent, 2 for a chat agent, 3 for a chat agent added to the Support account as a contributor ([Chat Phase 4](https://support.zendesk.com/hc/en-us/articles/4408836197658#topic_p1h_sx4_pgb)), 4 for an admin, and 5 for a billing admin */
300
- role_type?: number | null;
301
- /** The brand separation scope for the user. Only present when the account has brand separation enabled. For end users, indicates whether they are scoped to the full account or a specific brand. Staff users (agents and admins) always have `scope: "account"`. */
302
- separation?: UserForAdminSeparation;
303
- /** If the user is shared from a different Zendesk Support instance. Shared users can be added to organizations but cannot be modified through update requests. Any attempt to update a shared user results in a 403 Forbidden error. Ticket sharing accounts only */
304
- shared?: boolean;
305
- /** If the user is a shared agent from a different Zendesk Support instance. Ticket sharing accounts only */
306
- shared_agent?: boolean;
307
- /** Whether the `phone` number is shared or not. See [Phone Number](#phone-number) below */
308
- shared_phone_number?: boolean | null;
309
- /** The user's signature. Only agents and admins can have signatures */
310
- signature?: string;
311
- /** If the agent is suspended. Tickets from suspended users are also suspended, and these users cannot sign in to the end user portal */
312
- suspended?: boolean;
313
- /** Channel-level suspension state for the user. The value is null if the user has no active channel-level suspension */
314
- suspension_details?: UserForAdminSuspensionDetails | null;
315
- /** The user's tags. Only present if your account has user tagging enabled */
316
- tags?: UserForAdminTagsList;
317
- /** Specifies which tickets the user has access to. Possible values are: "organization", "groups", "assigned", "requested", null. "groups" and "assigned" are valid only for agents. If you pass an invalid value to an end user (for example, "groups"), they will be assigned to "requested", regardless of their previous access */
318
- ticket_restriction?: string | null;
319
- /** The user's time zone. See [Time Zone](#time-zone) */
320
- time_zone?: string;
321
- /** If two factor authentication is enabled */
322
- two_factor_auth_enabled?: boolean | null;
323
- /** The time the user was last updated */
324
- updated_at?: string;
325
- /** The user's API url */
248
+ /** If true, the attachment is excluded from the attachment list and the attachment's URL can be referenced within the comment of a ticket. Default is false */
249
+ inline?: boolean;
250
+ /** If true, you can download an attachment flagged as malware. If false, you can't download such an attachment. */
251
+ malware_access_override?: boolean;
252
+ /** The result of the malware scan. There is a delay between the time the attachment is uploaded and when the malware scan is completed. Usually the scan is done within a few seconds, but high load conditions can delay the scan results. Possible values: "malware_found", "malware_not_found", "failed_to_scan", "not_scanned" */
253
+ malware_scan_result?: string;
254
+ /** The URL the attachment image file has been mapped to */
255
+ mapped_content_url?: string;
256
+ /** The size of the image file in bytes */
257
+ size?: number;
258
+ /** A URL to access the attachment details */
326
259
  url?: string;
327
- /** Values of custom fields in the user's profile. See [User Fields](#user-fields) */
328
- user_fields?: UserForAdminUserFieldsMap;
329
- /** Any of the user's identities is verified. See [User Identities](/api-reference/ticketing/users/user_identities) */
330
- verified?: boolean;
260
+ /** The width of the image file in pixels. If width is unknown, returns null */
261
+ width?: number;
262
+ /** An array of attachment objects. Note that photo thumbnails do not have thumbnails */
263
+ thumbnails?: AttachmentObjectThumbnailsList;
331
264
  }
332
- export declare const UserForAdmin: S.Schema<UserForAdmin>;
333
- /** The user's profile picture represented as an [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) object */
334
- export type UserForEndUserPhotoMap = {
265
+ export declare const AttachmentObject: S.Schema<AttachmentObject>;
266
+ /** Attachments, if any. See [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) */
267
+ export type TicketCommentObjectAttachmentsList = Array<AttachmentObject>;
268
+ export declare const TicketCommentObjectAttachmentsList: S.Schema<TicketCommentObjectAttachmentsList>;
269
+ /** System information (web client, IP address, etc.) and comment flags, if any. See [Comment flags](#comment-flags) */
270
+ export type TicketCommentObjectMetadataMap = {
335
271
  [key: string]: unknown | undefined;
336
272
  };
337
- export declare const UserForEndUserPhotoMap: S.Schema<UserForEndUserPhotoMap>;
338
- export interface UserForEndUser {
339
- /** The time the user was created */
273
+ export declare const TicketCommentObjectMetadataMap: S.Schema<TicketCommentObjectMetadataMap>;
274
+ /** List of tokens received from [uploading files](/api-reference/ticketing/tickets/ticket-attachments/#upload-files) for comment attachments. The files are attached by creating or updating tickets with the tokens. See [Attaching files](/api-reference/ticketing/tickets/tickets/#attaching-files) in Tickets */
275
+ export type TicketCommentObjectUploadsList = Array<string>;
276
+ export declare const TicketCommentObjectUploadsList: S.Schema<TicketCommentObjectUploadsList>;
277
+ /** For some channels a source object gives more information about how or why the ticket or event was created */
278
+ export type TicketAuditViaObjectSourceMap = {
279
+ [key: string]: unknown | undefined;
280
+ };
281
+ export declare const TicketAuditViaObjectSourceMap: S.Schema<TicketAuditViaObjectSourceMap>;
282
+ /** Describes how the object was created. See the [Via object reference](/documentation/ticketing/reference-guides/via-object-reference) */
283
+ export interface TicketAuditViaObject {
284
+ /** This tells you how the ticket or event was created. Examples: "web", "mobile", "rule", "system" */
285
+ channel?: string;
286
+ /** For some channels a source object gives more information about how or why the ticket or event was created */
287
+ source?: TicketAuditViaObjectSourceMap;
288
+ }
289
+ export declare const TicketAuditViaObject: S.Schema<TicketAuditViaObject>;
290
+ export interface TicketCommentObject {
291
+ /** Internal flag for adding short URLs to the comment */
292
+ add_short_url?: boolean;
293
+ /** Attachments, if any. See [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) */
294
+ attachments?: TicketCommentObjectAttachmentsList;
295
+ /** The id of the ticket audit record. See [Show Audit](/api-reference/ticketing/tickets/ticket_audits/#show-audit) */
296
+ audit_id?: number;
297
+ /** The id of the comment author. If null or omitted on create, defaults to the authenticated user. See [Author id](#author-id) */
298
+ author_id?: number | null;
299
+ /** The comment string. See [Bodies](#bodies) */
300
+ body?: string;
301
+ /** Internal channel back identifier for the comment */
302
+ channel_back?: string;
303
+ /** Internal channel source identifier for the comment */
304
+ channel_source_id?: string | null;
305
+ /** The time the comment was created */
340
306
  created_at?: string;
341
- /** The primary email address of this user. If the primary email address is not [verified](https://support.zendesk.com/hc/en-us/articles/4408886752410), the secondary email address is used */
342
- email?: string;
343
- /** The time zone for the user */
344
- iana_time_zone?: string;
345
- /** Automatically assigned when creating users */
307
+ /** The comment formatted as HTML. See [Bodies](#bodies) */
308
+ html_body?: string;
309
+ /** Automatically assigned when the comment is created */
310
+ id?: number;
311
+ /** System information (web client, IP address, etc.) and comment flags, if any. See [Comment flags](#comment-flags) */
312
+ metadata?: TicketCommentObjectMetadataMap;
313
+ /** The comment presented as plain text. See [Bodies](#bodies) */
314
+ plain_body?: string;
315
+ /** true if a public comment; false if an internal note. The initial value set on ticket creation persists for any additional comment unless you change it */
316
+ public?: boolean;
317
+ /** The locale code to translate the comment body to. */
318
+ translate_to?: string | null;
319
+ /** `Comment` or `VoiceComment`. The JSON object for adding voice comments to tickets is different. See [Adding voice comments to tickets](/documentation/ticketing/managing-tickets/adding-voice-comments-to-tickets) */
320
+ type?: string;
321
+ /** List of tokens received from [uploading files](/api-reference/ticketing/tickets/ticket-attachments/#upload-files) for comment attachments. The files are attached by creating or updating tickets with the tokens. See [Attaching files](/api-reference/ticketing/tickets/tickets/#attaching-files) in Tickets */
322
+ uploads?: TicketCommentObjectUploadsList;
323
+ via?: TicketAuditViaObject;
324
+ }
325
+ export declare const TicketCommentObject: S.Schema<TicketCommentObject>;
326
+ export type TicketFieldValueInputValueCase3List = Array<string>;
327
+ export declare const TicketFieldValueInputValueCase3List: S.Schema<TicketFieldValueInputValueCase3List>;
328
+ /** The value to assign to the custom field. Type depends on the field configuration: - Text/textarea: string - Checkbox: boolean or "true"/"false" string - Dropdown/tagger: string or array of strings (multi-select) - Number/decimal: number or string representation - Date: string (ISO 8601 format) - Lookup: the target record's id, or an id prefixed with `external_id:` or `name:` - Multi-lookup: an array of target record ids, up to `max_selections` entries. Each write replaces the entire set of selections. Unresolved ids are silently dropped. See [Setting multi-lookup field values](/api-reference/ticketing/lookup_relationships/lookup_relationships/#setting-multi-lookup-field-values) */
329
+ export type TicketFieldValueInputValue = string | number | boolean | TicketFieldValueInputValueCase3List;
330
+ export declare const TicketFieldValueInputValue: S.Schema<TicketFieldValueInputValue>;
331
+ /** A ticket custom field value assignment */
332
+ export interface TicketFieldValueInput {
333
+ /** The ID of the custom field */
334
+ id: number;
335
+ /** The value to assign to the custom field. Type depends on the field configuration: - Text/textarea: string - Checkbox: boolean or "true"/"false" string - Dropdown/tagger: string or array of strings (multi-select) - Number/decimal: number or string representation - Date: string (ISO 8601 format) - Lookup: the target record's id, or an id prefixed with `external_id:` or `name:` - Multi-lookup: an array of target record ids, up to `max_selections` entries. Each write replaces the entire set of selections. Unresolved ids are silently dropped. See [Setting multi-lookup field values](/api-reference/ticketing/lookup_relationships/lookup_relationships/#setting-multi-lookup-field-values) */
336
+ value?: TicketFieldValueInputValue;
337
+ }
338
+ export declare const TicketFieldValueInput: S.Schema<TicketFieldValueInput>;
339
+ /** Custom field values to set on the ticket. Each entry specifies a field ID and its value. See [Setting custom field values](/documentation/ticketing/managing-tickets/creating-and-updating-tickets#setting-custom-field-values) */
340
+ export type TicketObjectOutputCustomFieldsList = Array<TicketFieldValueInput>;
341
+ export declare const TicketObjectOutputCustomFieldsList: S.Schema<TicketObjectOutputCustomFieldsList>;
342
+ /** The ids of agents or end users currently CC'ed on the ticket. See [CCs and followers resources](https://support.zendesk.com/hc/en-us/articles/4408822451482) in the Support Help Center */
343
+ export type TicketObjectOutputEmailCcIdsList = Array<number>;
344
+ export declare const TicketObjectOutputEmailCcIdsList: S.Schema<TicketObjectOutputEmailCcIdsList>;
345
+ /** Alias for custom_fields. Custom field values to set on the ticket. Each entry specifies a field ID and its value. */
346
+ export type TicketObjectOutputFieldsList = Array<TicketFieldValueInput>;
347
+ export declare const TicketObjectOutputFieldsList: S.Schema<TicketObjectOutputFieldsList>;
348
+ /** The ids of agents currently following the ticket. Ignored when [CCs and followers](https://support.zendesk.com/hc/en-us/articles/4408822451482) is not enabled */
349
+ export type TicketObjectOutputFollowerIdsList = Array<number>;
350
+ export declare const TicketObjectOutputFollowerIdsList: S.Schema<TicketObjectOutputFollowerIdsList>;
351
+ /** The ids of the followups created from this ticket. Ids are only visible once the ticket is closed */
352
+ export type TicketObjectOutputFollowupIdsList = Array<number>;
353
+ export declare const TicketObjectOutputFollowupIdsList: S.Schema<TicketObjectOutputFollowupIdsList>;
354
+ /** The urgency with which the ticket should be addressed */
355
+ export type TicketObjectOutputPriority = "urgent" | "high" | "normal" | "low";
356
+ export declare const TicketObjectOutputPriority: any;
357
+ /** The satisfaction rating of the ticket, if it exists, or the state of satisfaction, "offered" or "unoffered". The value is null for plan types that don't support CSAT */
358
+ export type TicketObjectOutputSatisfactionRatingMap = {
359
+ [key: string]: unknown | undefined;
360
+ };
361
+ export declare const TicketObjectOutputSatisfactionRatingMap: S.Schema<TicketObjectOutputSatisfactionRatingMap>;
362
+ /** An array of the numeric IDs of sharing agreements. Note that this replaces any existing agreements */
363
+ export type TicketObjectOutputSharingAgreementIdsList = Array<number>;
364
+ export declare const TicketObjectOutputSharingAgreementIdsList: S.Schema<TicketObjectOutputSharingAgreementIdsList>;
365
+ /** The state of the ticket. If your account has activated custom ticket statuses, this is the ticket's status category. See [custom ticket statuses](#custom-ticket-statuses) */
366
+ export type TicketObjectOutputStatus = "new" | "open" | "pending" | "hold" | "solved" | "closed";
367
+ export declare const TicketObjectOutputStatus: any;
368
+ /** The type of support that handled the ticket */
369
+ export type TicketObjectOutputSupportType = "agent" | "ai_agent";
370
+ export declare const TicketObjectOutputSupportType: any;
371
+ /** An array of tag strings */
372
+ export type TicketObjectOutputTagsCase0List = Array<string>;
373
+ export declare const TicketObjectOutputTagsCase0List: S.Schema<TicketObjectOutputTagsCase0List>;
374
+ /** The tags applied to this ticket. Unless otherwise specified, the [set tag](/api-reference/ticketing/ticket-management/tags/#set-tags) behavior is used, which overwrites and replaces existing tags */
375
+ export type TicketObjectOutputTags = TicketObjectOutputTagsCase0List | string;
376
+ export declare const TicketObjectOutputTags: S.Schema<TicketObjectOutputTags>;
377
+ /** The type of this ticket */
378
+ export type TicketObjectOutputType = "problem" | "incident" | "question" | "task";
379
+ export declare const TicketObjectOutputType: any;
380
+ /** This tells you how the ticket or event was created. Examples: "web", "mobile", "rule", "system". May be a string name or an integer channel ID. */
381
+ export type ViaObjectChannel = string | number;
382
+ export declare const ViaObjectChannel: S.Schema<ViaObjectChannel>;
383
+ export interface ViaObjectSourceFrom {
384
+ address?: string | null;
385
+ id?: number | null;
386
+ name?: string | null;
387
+ title?: string | null;
388
+ }
389
+ export declare const ViaObjectSourceFrom: S.Schema<ViaObjectSourceFrom>;
390
+ export interface ViaObjectSourceTo {
391
+ address?: string;
392
+ name?: string;
393
+ }
394
+ export declare const ViaObjectSourceTo: S.Schema<ViaObjectSourceTo>;
395
+ /** For some channels a source object gives more information about how or why the ticket or event was created */
396
+ export interface ViaObjectSource {
397
+ from?: ViaObjectSourceFrom;
398
+ rel?: string | null;
399
+ to?: ViaObjectSourceTo;
400
+ }
401
+ export declare const ViaObjectSource: S.Schema<ViaObjectSource>;
402
+ /** An object explaining how the ticket was created. See the [Via object reference](/documentation/ticketing/reference-guides/via-object-reference) */
403
+ export interface ViaObject {
404
+ /** This tells you how the ticket or event was created. Examples: "web", "mobile", "rule", "system". May be a string name or an integer channel ID. */
405
+ channel?: ViaObjectChannel;
406
+ /** For some channels a source object gives more information about how or why the ticket or event was created */
407
+ source?: ViaObjectSource;
408
+ }
409
+ export declare const ViaObject: S.Schema<ViaObject>;
410
+ export interface TicketObjectOutput {
411
+ /** Permission for agents to add add attachments to a comment. Defaults to true */
412
+ allow_attachments?: boolean;
413
+ /** Is false if channelback is disabled, true otherwise. Only applicable for channels framework ticket */
414
+ allow_channelback?: boolean;
415
+ /** The agent currently assigned to the ticket */
416
+ assignee_id?: number | null;
417
+ /** The id of the brand this ticket is associated with. See [Setting up multiple brands](https://support.zendesk.com/hc/en-us/articles/4408829476378) */
418
+ brand_id?: number | null;
419
+ /** The ids of users currently CC'ed on the ticket */
420
+ collaborator_ids?: TicketObjectOutputCollaboratorIdsList;
421
+ comment?: TicketCommentObject;
422
+ /** When this record was created */
423
+ created_at?: string;
424
+ /** Custom field values to set on the ticket. Each entry specifies a field ID and its value. See [Setting custom field values](/documentation/ticketing/managing-tickets/creating-and-updating-tickets#setting-custom-field-values) */
425
+ custom_fields?: TicketObjectOutputCustomFieldsList;
426
+ /** The custom ticket status id of the ticket. See [custom ticket statuses](#custom-ticket-statuses) */
427
+ custom_status_id?: number | null;
428
+ /** The first comment on the ticket. When [creating a ticket](#create-ticket), use `comment` to set the description. See [Description and first comment](#description-and-first-comment). On create, can be set directly as an alternative to `comment`. Silently ignored on update. */
429
+ description?: string;
430
+ /** If this is a ticket of type "task" it has a due date. Due date format uses [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format */
431
+ due_at?: string | null;
432
+ /** The ids of agents or end users currently CC'ed on the ticket. See [CCs and followers resources](https://support.zendesk.com/hc/en-us/articles/4408822451482) in the Support Help Center */
433
+ email_cc_ids?: TicketObjectOutputEmailCcIdsList;
434
+ /** An encoded string representing the ticket's unique identifier */
435
+ encoded_id?: string;
436
+ /** An id you can use to link Zendesk Support tickets to local records */
437
+ external_id?: string | null;
438
+ /** Alias for custom_fields. Custom field values to set on the ticket. Each entry specifies a field ID and its value. */
439
+ fields?: TicketObjectOutputFieldsList;
440
+ /** The ids of agents currently following the ticket. Ignored when [CCs and followers](https://support.zendesk.com/hc/en-us/articles/4408822451482) is not enabled */
441
+ follower_ids?: TicketObjectOutputFollowerIdsList;
442
+ /** The ids of the followups created from this ticket. Ids are only visible once the ticket is closed */
443
+ followup_ids?: TicketObjectOutputFollowupIdsList;
444
+ /** The topic in the Zendesk Web portal this ticket originated from, if any. The Web portal is deprecated */
445
+ forum_topic_id?: number;
446
+ /** If true, the ticket's [via type](/documentation/ticketing/reference-guides/via-object-reference/) is a messaging channel. */
447
+ from_messaging_channel?: boolean;
448
+ /** A Unix timestamp that represents the most accurate reading of when this record was last updated. It is updated for all ticket updates, including system updates */
449
+ generated_timestamp?: number;
450
+ /** The group this ticket is assigned to */
451
+ group_id?: number | null;
452
+ /** Is true if a ticket is a problem type and has one or more incidents linked to it. Otherwise, the value is false. */
453
+ has_incidents?: boolean;
454
+ /** Automatically assigned when the ticket is created */
455
+ id?: number;
456
+ /** Is true if any comments are public, false otherwise */
457
+ is_public?: boolean;
458
+ /** The organization of the requester. You can only specify the ID of an organization associated with the requester. See [Organization Memberships](/api-reference/ticketing/organizations/organization_memberships/) */
459
+ organization_id?: number | null;
460
+ /** The urgency with which the ticket should be addressed */
461
+ priority?: TicketObjectOutputPriority | null;
462
+ /** For tickets of type "incident", the ID of the problem the incident is linked to */
463
+ problem_id?: number | null;
464
+ /** The dynamic content placeholder, if present, or the "subject" value, if not. See [Dynamic Content Items](/api-reference/ticketing/ticket-management/dynamic_content/). When set on create or update, overrides the `subject` field. */
465
+ raw_subject?: string;
466
+ /** The original recipient e-mail address of the ticket. Notification emails for the ticket are sent from this address */
467
+ recipient?: string;
468
+ /** The user who requested this ticket */
469
+ requester_id?: number | null;
470
+ /** The predicted satisfaction probability score */
471
+ satisfaction_probability?: number;
472
+ /** The satisfaction rating of the ticket, if it exists, or the state of satisfaction, "offered" or "unoffered". The value is null for plan types that don't support CSAT */
473
+ satisfaction_rating?: TicketObjectOutputSatisfactionRatingMap;
474
+ /** An array of the numeric IDs of sharing agreements. Note that this replaces any existing agreements */
475
+ sharing_agreement_ids?: TicketObjectOutputSharingAgreementIdsList;
476
+ /** The state of the ticket. If your account has activated custom ticket statuses, this is the ticket's status category. See [custom ticket statuses](#custom-ticket-statuses) */
477
+ status?: TicketObjectOutputStatus;
478
+ /** The value of the subject field for this ticket. See [Subject](/api-reference/ticketing/tickets/tickets/#subject) */
479
+ subject?: string | null;
480
+ /** The user who submitted the ticket. The submitter always becomes the author of the first comment on the ticket. If not specified, defaults to the authenticated user. */
481
+ submitter_id?: number | null;
482
+ /** The type of support that handled the ticket */
483
+ support_type?: TicketObjectOutputSupportType | null;
484
+ /** The tags applied to this ticket. Unless otherwise specified, the [set tag](/api-reference/ticketing/ticket-management/tags/#set-tags) behavior is used, which overwrites and replaces existing tags */
485
+ tags?: TicketObjectOutputTags;
486
+ /** Enterprise only. The id of the ticket form to render for the ticket */
487
+ ticket_form_id?: number | null;
488
+ /** The type of this ticket */
489
+ type?: TicketObjectOutputType | null;
490
+ /** When this record last got updated. It is updated only if the update generates a [ticket event](#incremental-ticket-event-export) */
491
+ updated_at?: string;
492
+ /** The API url of this ticket */
493
+ url?: string;
494
+ via?: ViaObject;
495
+ }
496
+ export declare const TicketObjectOutput: S.Schema<TicketObjectOutput>;
497
+ export type TicketsResponseOutputTicketsList = Array<TicketObjectOutput>;
498
+ export declare const TicketsResponseOutputTicketsList: S.Schema<TicketsResponseOutputTicketsList>;
499
+ export interface TicketsResponseOutput {
500
+ tickets?: TicketsResponseOutputTicketsList;
501
+ }
502
+ export declare const TicketsResponseOutput: S.Schema<TicketsResponseOutput>;
503
+ export type AutocompleteUsersRequestFilter = "assignable" | "requester";
504
+ export declare const AutocompleteUsersRequestFilter: any;
505
+ export type AutocompleteUsersRequestBrandIdCase0 = "all";
506
+ export declare const AutocompleteUsersRequestBrandIdCase0: any;
507
+ export type AutocompleteUsersRequestBrandId = AutocompleteUsersRequestBrandIdCase0 | number;
508
+ export declare const AutocompleteUsersRequestBrandId: S.Schema<AutocompleteUsersRequestBrandId>;
509
+ export interface AutocompleteUsersRequest {
510
+ /** The name to search for the user. You must specify either `name` or `phone`. */
511
+ name?: string;
512
+ /** The phone number to search for the user. You must specify either `name` or `phone`. */
513
+ phone?: string;
514
+ /** Filter to apply to autocomplete results. */
515
+ filter?: AutocompleteUsersRequestFilter | (string & {});
516
+ /** The id of a lookup relationship field. The type of field is determined by the `source` param */
517
+ field_id?: string;
518
+ /** If a `field_id` is provided, this specifies the type of the field. For example, if the field is on a "zen:user", it references a field on a user */
519
+ source?: string;
520
+ /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/documentation/api-basics/working-with-data/side_loading/#supported-endpoints). */
521
+ include?: string;
522
+ /** Number of results to return. */
523
+ per_page?: number;
524
+ /** When brand separation is enabled, scopes the autocomplete results to users belonging to the specified brand. Only applicable when the account has brand separation enabled. Accepted values: * "all" — search all users across all brands (no brand filtering applied). * 0 — restrict the autocomplete results to account-scoped (brand-less) users only. * A numeric brand id — if the brand has user separation enabled, autocomplete returns only end users belonging to that brand. Agents and admins are not included in the results when filtering by a specific brand. If the brand does not have user separation enabled, the request falls back to account scope (0). */
525
+ brand_id?: AutocompleteUsersRequestBrandId;
526
+ }
527
+ export declare const AutocompleteUsersRequest: S.Schema<AutocompleteUsersRequest>;
528
+ /** PUT or POST requests only. Assigns agent or agents to a brand. For more information, see [Agent brand ids](#agent-brand-ids) */
529
+ export type UserForAdminAgentBrandIdsList = Array<number>;
530
+ export declare const UserForAdminAgentBrandIdsList: S.Schema<UserForAdminAgentBrandIdsList>;
531
+ /** The user's profile picture represented as an [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) object */
532
+ export type UserForAdminPhotoMap = {
533
+ [key: string]: unknown | undefined;
534
+ };
535
+ export declare const UserForAdminPhotoMap: S.Schema<UserForAdminPhotoMap>;
536
+ /** The separation scope. "account" means account-level access; "brand" means access limited to a specific brand. */
537
+ export type UserForAdminSeparationScope = "account" | "brand";
538
+ export declare const UserForAdminSeparationScope: any;
539
+ /** The brand separation scope for the user. Only present when the account has brand separation enabled. For end users, indicates whether they are scoped to the full account or a specific brand. Staff users (agents and admins) always have `scope: "account"`. */
540
+ export interface UserForAdminSeparation {
541
+ /** The id of the brand the user is scoped to. Only present when "scope" is "brand". */
542
+ brand_id?: number;
543
+ /** The separation scope. "account" means account-level access; "brand" means access limited to a specific brand. */
544
+ scope: UserForAdminSeparationScope;
545
+ }
546
+ export declare const UserForAdminSeparation: S.Schema<UserForAdminSeparation>;
547
+ export type UserForAdminSuspensionDetailsChannelsItem = "all" | "messaging";
548
+ export declare const UserForAdminSuspensionDetailsChannelsItem: any;
549
+ /** Channels on which the user is suspended. `["all"]` means suspended across every channel. If "all" is present, it must be the only element */
550
+ export type UserForAdminSuspensionDetailsChannelsList = Array<UserForAdminSuspensionDetailsChannelsItem>;
551
+ export declare const UserForAdminSuspensionDetailsChannelsList: S.Schema<UserForAdminSuspensionDetailsChannelsList>;
552
+ /** Channel-level suspension state for the user. The value is null if the user has no active channel-level suspension */
553
+ export interface UserForAdminSuspensionDetails {
554
+ /** Channels on which the user is suspended. `["all"]` means suspended across every channel. If "all" is present, it must be the only element */
555
+ channels: UserForAdminSuspensionDetailsChannelsList;
556
+ }
557
+ export declare const UserForAdminSuspensionDetails: S.Schema<UserForAdminSuspensionDetails>;
558
+ /** The user's tags. Only present if your account has user tagging enabled */
559
+ export type UserForAdminTagsList = Array<string>;
560
+ export declare const UserForAdminTagsList: S.Schema<UserForAdminTagsList>;
561
+ /** Values of custom fields in the user's profile. See [User Fields](#user-fields) */
562
+ export type UserForAdminUserFieldsMap = {
563
+ [key: string]: unknown | undefined;
564
+ };
565
+ export declare const UserForAdminUserFieldsMap: S.Schema<UserForAdminUserFieldsMap>;
566
+ export interface UserForAdmin {
567
+ /** false if the user has been deleted */
568
+ active?: boolean;
569
+ /** PUT or POST requests only. Assigns agent or agents to a brand. For more information, see [Agent brand ids](#agent-brand-ids) */
570
+ agent_brand_ids?: UserForAdminAgentBrandIdsList;
571
+ /** An alias displayed to end users */
572
+ alias?: string;
573
+ /** Whether or not the user is a chat-only agent */
574
+ chat_only?: boolean;
575
+ /** The time the user was created */
576
+ created_at?: string;
577
+ /** A custom role if the user is an agent on the Enterprise plan or above */
578
+ custom_role_id?: number | null;
579
+ /** The id of the user's default group */
580
+ default_group_id?: number;
581
+ /** Any details you want to store about the user, such as an address */
582
+ details?: string;
583
+ /** The user's primary email address. *Writeable on create only. On update, a secondary email is added. See [Email Address](#email-address) */
584
+ email?: string;
585
+ /** A unique identifier from another system. The API treats the id as case insensitive. Example: "ian1" and "IAN1" are the same value. */
586
+ external_id?: string | null;
587
+ /** The time zone for the user */
588
+ iana_time_zone?: string;
589
+ /** Automatically assigned when the user is created */
590
+ id?: number;
591
+ /** Last time the user signed in to Zendesk Support or made an API request using an API token */
592
+ last_login_at?: string;
593
+ /** 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. */
594
+ locale?: string;
595
+ /** The user's language identifier */
596
+ locale_id?: number;
597
+ /** Designates whether the user has forum moderation capabilities */
598
+ moderator?: boolean;
599
+ /** The user's name */
600
+ name: string;
601
+ /** Any notes you want to store about the user */
602
+ notes?: string;
603
+ /** true if the user can only create private comments */
604
+ only_private_comments?: boolean;
605
+ /** The id of the user's organization. If the user has more than one [organization memberships](/api-reference/ticketing/organizations/organization_memberships/), the id of the user's default organization. If updating, see [Organization ID](#organization-id) */
606
+ organization_id?: number | null;
607
+ /** The user's primary phone number. See [Phone Number](#phone-number) below */
608
+ phone?: string | null;
609
+ /** The user's profile picture represented as an [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) object */
610
+ photo?: UserForAdminPhotoMap | null;
611
+ /** A URL pointing to the user's profile picture. */
612
+ remote_photo_url?: string;
613
+ /** This parameter is inert and has no effect. It may be deprecated in the future. Previously, this parameter determined whether a user could access a CSV report in a legacy Guide dashboard. This dashboard has been removed. See [Announcing Guide legacy reporting upgrade to Explore](https://support.zendesk.com/hc/en-us/articles/4762263171610-Announcing-Guide-legacy-reporting-upgrade-to-Explore-) */
614
+ report_csv?: boolean;
615
+ /** If the agent has any restrictions; false for admins and unrestricted agents, true for other agents */
616
+ restricted_agent?: boolean;
617
+ /** The user's role. Possible values are "end-user", "agent", or "admin" */
618
+ role?: string;
619
+ /** The user's role id. 0 for a custom agent, 1 for a light agent, 2 for a chat agent, 3 for a chat agent added to the Support account as a contributor ([Chat Phase 4](https://support.zendesk.com/hc/en-us/articles/4408836197658#topic_p1h_sx4_pgb)), 4 for an admin, and 5 for a billing admin */
620
+ role_type?: number | null;
621
+ /** The brand separation scope for the user. Only present when the account has brand separation enabled. For end users, indicates whether they are scoped to the full account or a specific brand. Staff users (agents and admins) always have `scope: "account"`. */
622
+ separation?: UserForAdminSeparation;
623
+ /** If the user is shared from a different Zendesk Support instance. Shared users can be added to organizations but cannot be modified through update requests. Any attempt to update a shared user results in a 403 Forbidden error. Ticket sharing accounts only */
624
+ shared?: boolean;
625
+ /** If the user is a shared agent from a different Zendesk Support instance. Ticket sharing accounts only */
626
+ shared_agent?: boolean;
627
+ /** Whether the `phone` number is shared or not. See [Phone Number](#phone-number) below */
628
+ shared_phone_number?: boolean | null;
629
+ /** The user's signature. Only agents and admins can have signatures */
630
+ signature?: string;
631
+ /** If the agent is suspended. Tickets from suspended users are also suspended, and these users cannot sign in to the end user portal */
632
+ suspended?: boolean;
633
+ /** Channel-level suspension state for the user. The value is null if the user has no active channel-level suspension */
634
+ suspension_details?: UserForAdminSuspensionDetails | null;
635
+ /** The user's tags. Only present if your account has user tagging enabled */
636
+ tags?: UserForAdminTagsList;
637
+ /** Specifies which tickets the user has access to. Possible values are: "organization", "groups", "assigned", "requested", null. "groups" and "assigned" are valid only for agents. If you pass an invalid value to an end user (for example, "groups"), they will be assigned to "requested", regardless of their previous access */
638
+ ticket_restriction?: string | null;
639
+ /** The user's time zone. See [Time Zone](#time-zone) */
640
+ time_zone?: string;
641
+ /** If two factor authentication is enabled */
642
+ two_factor_auth_enabled?: boolean | null;
643
+ /** The time the user was last updated */
644
+ updated_at?: string;
645
+ /** The user's API url */
646
+ url?: string;
647
+ /** Values of custom fields in the user's profile. See [User Fields](#user-fields) */
648
+ user_fields?: UserForAdminUserFieldsMap;
649
+ /** Any of the user's identities is verified. See [User Identities](/api-reference/ticketing/users/user_identities) */
650
+ verified?: boolean;
651
+ }
652
+ export declare const UserForAdmin: S.Schema<UserForAdmin>;
653
+ /** The user's profile picture represented as an [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) object */
654
+ export type UserForEndUserPhotoMap = {
655
+ [key: string]: unknown | undefined;
656
+ };
657
+ export declare const UserForEndUserPhotoMap: S.Schema<UserForEndUserPhotoMap>;
658
+ export interface UserForEndUser {
659
+ /** The time the user was created */
660
+ created_at?: string;
661
+ /** The primary email address of this user. If the primary email address is not [verified](https://support.zendesk.com/hc/en-us/articles/4408886752410), the secondary email address is used */
662
+ email?: string;
663
+ /** The time zone for the user */
664
+ iana_time_zone?: string;
665
+ /** Automatically assigned when creating users */
346
666
  id?: number;
347
667
  /** The locale for this user */
348
668
  locale?: string;
@@ -667,9 +987,16 @@ export interface BulkSkillBasedRoutingAttributeValueJobInputAttributes {
667
987
  attribute_values?: BulkSkillBasedRoutingAttributeValueJobInputAttributesAttributeValuesList;
668
988
  }
669
989
  export declare const BulkSkillBasedRoutingAttributeValueJobInputAttributes: S.Schema<BulkSkillBasedRoutingAttributeValueJobInputAttributes>;
990
+ /** The list of agent ids */
991
+ export type BulkSkillBasedRoutingAttributeValueJobInputItemsList = Array<number>;
992
+ export declare const BulkSkillBasedRoutingAttributeValueJobInputItemsList: S.Schema<BulkSkillBasedRoutingAttributeValueJobInputItemsList>;
670
993
  export interface BulkSkillBasedRoutingAttributeValueJobInput {
994
+ /** The action to perform on the attribute values. One of the following: "upsert", "update", "delete" */
995
+ action: string;
671
996
  /** The attribute values to update. See [Attribute Values](#attribute-values). `agent_skill_priority` is optional. If not provided, it keeps the current priority or defaults to `NORMAL` when adding new attribute values. */
672
997
  attributes: BulkSkillBasedRoutingAttributeValueJobInputAttributes;
998
+ /** The list of agent ids */
999
+ items: BulkSkillBasedRoutingAttributeValueJobInputItemsList;
673
1000
  }
674
1001
  export declare const BulkSkillBasedRoutingAttributeValueJobInput: S.Schema<BulkSkillBasedRoutingAttributeValueJobInput>;
675
1002
  export interface BulkSetAgentAttributeValuesJobRequest {
@@ -1143,28 +1470,42 @@ export interface AccessRuleResponse {
1143
1470
  access_rule?: AccessRule;
1144
1471
  }
1145
1472
  export declare const AccessRuleResponse: S.Schema<AccessRuleResponse>;
1146
- export interface CreateApprovalRequestRequest {
1473
+ export interface CreateApprovalRequestRequestApprovalRequestsItem {
1147
1474
  /** The id of the group assigned to review and approve the request */
1148
1475
  assignee_group_id?: number | null;
1149
1476
  /** The id of the user assigned to review and approve the request */
1150
1477
  assignee_user_id?: number | null;
1151
- /** Details and context for the approval request */
1478
+ }
1479
+ export declare const CreateApprovalRequestRequestApprovalRequestsItem: S.Schema<CreateApprovalRequestRequestApprovalRequestsItem>;
1480
+ /** 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`. */
1481
+ export type CreateApprovalRequestRequestApprovalRequestsList = Array<CreateApprovalRequestRequestApprovalRequestsItem>;
1482
+ export declare const CreateApprovalRequestRequestApprovalRequestsList: S.Schema<CreateApprovalRequestRequestApprovalRequestsList>;
1483
+ export interface CreateApprovalRequestRequest {
1484
+ /** 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`. */
1485
+ approval_requests?: CreateApprovalRequestRequestApprovalRequestsList | null;
1486
+ /** Single approval request only. The id of the group assigned to review and approve the request. Can't be used with an `approval_requests` array. */
1487
+ assignee_group_id?: number | null;
1488
+ /** Single approval request only. The id of the user assigned to review and approve the request. Can't be used with an `approval_requests` array. */
1489
+ assignee_user_id?: number | null;
1490
+ /** Details and context for the approval request. Shared by all approval requests created in the call. */
1152
1491
  message: string;
1153
- /** Subject line for the approval request */
1492
+ /** Subject line for the approval request. Shared by all approval requests created in the call. */
1154
1493
  subject: string;
1155
1494
  /** The id of the ticket the approval request was added to */
1156
1495
  ticket_id: number;
1157
1496
  }
1158
1497
  export declare const CreateApprovalRequestRequest: S.Schema<CreateApprovalRequestRequest>;
1159
1498
  /** How the approval request was created */
1160
- export type ApprovalRequestSimpleResponseApprovalRequestOriginationType = "API_ORIGINATION" | "UI_ORIGINATION" | "TRIGGER_ORIGINATION" | "DATA_IMPORTER_ORIGINATION" | "TEMPLATE_ORIGINATION" | "ACTION_FLOW_ORIGINATION" | "UNKNOWN_ORIGINATION";
1161
- export declare const ApprovalRequestSimpleResponseApprovalRequestOriginationType: any;
1162
- export interface ApprovalRequestSimpleResponseApprovalRequest {
1499
+ export type ApprovalRequestObjectOriginationType = "API_ORIGINATION" | "UI_ORIGINATION" | "TRIGGER_ORIGINATION" | "DATA_IMPORTER_ORIGINATION" | "TEMPLATE_ORIGINATION" | "ACTION_FLOW_ORIGINATION" | "UNKNOWN_ORIGINATION";
1500
+ export declare const ApprovalRequestObjectOriginationType: any;
1501
+ export interface ApprovalRequestObject {
1502
+ /** Unique identifier (ULID) of the parent workflow instance. Approval requests created together as a parallel group share the same value. */
1503
+ approval_workflow_instance_id?: string;
1163
1504
  /** The id of the group assigned to review the request */
1164
1505
  assignee_group_id?: number | null;
1165
- /** The id of the user assigned to review the request */
1506
+ /** The id of the user assigned to respond to the request. Also referred to as the `approver` */
1166
1507
  assignee_user_id?: number | null;
1167
- /** The time the approval request was created */
1508
+ /** The ISO 8601 formatted date-time when the approval request was created */
1168
1509
  created_at?: string;
1169
1510
  /** The id of the user who created the approval request */
1170
1511
  created_by_id?: number;
@@ -1173,7 +1514,7 @@ export interface ApprovalRequestSimpleResponseApprovalRequest {
1173
1514
  /** Details and context for the approval request */
1174
1515
  message?: string;
1175
1516
  /** How the approval request was created */
1176
- origination_type?: ApprovalRequestSimpleResponseApprovalRequestOriginationType | null;
1517
+ origination_type?: ApprovalRequestObjectOriginationType | null;
1177
1518
  /** Current status of the approval request */
1178
1519
  status?: string;
1179
1520
  /** Subject line for the approval request */
@@ -1181,11 +1522,18 @@ export interface ApprovalRequestSimpleResponseApprovalRequest {
1181
1522
  /** The id of the ticket this approval request is attached to */
1182
1523
  ticket_id?: number;
1183
1524
  }
1184
- export declare const ApprovalRequestSimpleResponseApprovalRequest: S.Schema<ApprovalRequestSimpleResponseApprovalRequest>;
1185
- export interface ApprovalRequestSimpleResponse {
1186
- approval_request?: ApprovalRequestSimpleResponseApprovalRequest;
1187
- }
1188
- export declare const ApprovalRequestSimpleResponse: S.Schema<ApprovalRequestSimpleResponse>;
1525
+ export declare const ApprovalRequestObject: S.Schema<ApprovalRequestObject>;
1526
+ /** The created approval requests. Present for parallel requests. */
1527
+ export type ApprovalRequestCreateResponseApprovalRequestsList = Array<ApprovalRequestObject>;
1528
+ export declare const ApprovalRequestCreateResponseApprovalRequestsList: S.Schema<ApprovalRequestCreateResponseApprovalRequestsList>;
1529
+ /** Response returned when creating approval requests. A single request returns the created approval request under the `approval_request` key. A parallel request returns an array of the created approval requests under the `approval_requests` key. Exactly one of these keys is present. Every approval request in a parallel approvals array shares the same `approval_workflow_instance_id`. */
1530
+ export interface ApprovalRequestCreateResponse {
1531
+ /** The created approval request. Present for single requests. */
1532
+ approval_request?: ApprovalRequestObject | null;
1533
+ /** The created approval requests. Present for parallel requests. */
1534
+ approval_requests?: ApprovalRequestCreateResponseApprovalRequestsList | null;
1535
+ }
1536
+ export declare const ApprovalRequestCreateResponse: S.Schema<ApprovalRequestCreateResponse>;
1189
1537
  export interface CreateAssociatedMacroAttachmentRequest {
1190
1538
  /** The ID of the macro */
1191
1539
  macro_id: number;
@@ -1200,434 +1548,136 @@ export interface MacroAttachmentObject {
1200
1548
  created_at?: string;
1201
1549
  /** The name of the image file */
1202
1550
  filename?: string;
1203
- /** Automatically assigned when created */
1204
- id?: number;
1205
- /** The size of the image file in bytes */
1206
- size?: number;
1207
- }
1208
- export declare const MacroAttachmentObject: S.Schema<MacroAttachmentObject>;
1209
- export interface MacroAttachmentResponse {
1210
- macro_attachment?: MacroAttachmentObject;
1211
- }
1212
- export declare const MacroAttachmentResponse: S.Schema<MacroAttachmentResponse>;
1213
- export interface CreateAttributeRequest {
1214
- }
1215
- export declare const CreateAttributeRequest: S.Schema<CreateAttributeRequest>;
1216
- export interface SkillBasedRoutingAttributeObject {
1217
- /** When this record was created */
1218
- created_at?: string;
1219
- /** Automatically assigned when an attribute is created */
1220
- id?: string;
1221
- /** The name of the attribute */
1222
- name: string;
1223
- /** When this record was last updated */
1224
- updated_at?: string;
1225
- /** URL of the attribute */
1226
- url?: string;
1227
- }
1228
- export declare const SkillBasedRoutingAttributeObject: S.Schema<SkillBasedRoutingAttributeObject>;
1229
- export interface SkillBasedRoutingAttributeResponse {
1230
- attribute?: SkillBasedRoutingAttributeObject;
1231
- }
1232
- export declare const SkillBasedRoutingAttributeResponse: S.Schema<SkillBasedRoutingAttributeResponse>;
1233
- export interface CreateAttributeValueRequest {
1234
- /** The ID of the skill-based routing attribute */
1235
- attribute_id: string;
1236
- }
1237
- export declare const CreateAttributeValueRequest: S.Schema<CreateAttributeValueRequest>;
1238
- /** The priority of the agent skill for this attribute value */
1239
- export type SkillBasedRoutingAttributeValueObjectAgentSkillPriority = "NORMAL" | "HIGH";
1240
- export declare const SkillBasedRoutingAttributeValueObjectAgentSkillPriority: any;
1241
- export interface SkillBasedRoutingAttributeValueObject {
1242
- /** The priority of the agent skill for this attribute value */
1243
- agent_skill_priority?: SkillBasedRoutingAttributeValueObjectAgentSkillPriority;
1244
- /** Id of the associated attribute */
1245
- attribute_id?: string;
1246
- /** When this record was created */
1247
- created_at?: string;
1248
- /** Automatically assigned when an attribute value is created */
1249
- id?: string;
1250
- /** The name of the attribute value */
1251
- name?: string;
1252
- /** When this record was last updated */
1253
- updated_at?: string;
1254
- /** URL of the attribute value */
1255
- url?: string;
1256
- }
1257
- export declare const SkillBasedRoutingAttributeValueObject: S.Schema<SkillBasedRoutingAttributeValueObject>;
1258
- export interface SkillBasedRoutingAttributeValueResponse {
1259
- attribute_value?: SkillBasedRoutingAttributeValueObject;
1260
- }
1261
- export declare const SkillBasedRoutingAttributeValueResponse: S.Schema<SkillBasedRoutingAttributeValueResponse>;
1262
- export interface CreateAutomationRequest {
1263
- }
1264
- export declare const CreateAutomationRequest: S.Schema<CreateAutomationRequest>;
1265
- export interface ActionObject {
1266
- /** The name of a ticket field to modify */
1267
- field?: string;
1268
- /** The new value of the field */
1269
- value?: string;
1270
- }
1271
- export declare const ActionObject: S.Schema<ActionObject>;
1272
- /** An object describing what the automation will do. See [Actions reference](/documentation/ticketing/reference-guides/actions-reference) */
1273
- export type AutomationObjectActionsList = Array<ActionObject>;
1274
- export declare const AutomationObjectActionsList: S.Schema<AutomationObjectActionsList>;
1275
- export interface ConditionObject {
1276
- /** The name of a ticket field */
1277
- field?: string;
1278
- /** A comparison operator */
1279
- operator?: string;
1280
- /** The value of a ticket field */
1281
- value?: string;
1282
- }
1283
- export declare const ConditionObject: S.Schema<ConditionObject>;
1284
- /** Logical AND. Tickets must fulfill all of the conditions to be considered matching */
1285
- export type ConditionsObjectAllList = Array<ConditionObject>;
1286
- export declare const ConditionsObjectAllList: S.Schema<ConditionsObjectAllList>;
1287
- /** Logical OR. Tickets may satisfy any of the conditions to be considered matching */
1288
- export type ConditionsObjectAnyList = Array<ConditionObject>;
1289
- export declare const ConditionsObjectAnyList: S.Schema<ConditionsObjectAnyList>;
1290
- /** An object that describes the conditions under which the automation will execute. See [Conditions reference](/documentation/ticketing/reference-guides/conditions-reference) */
1291
- export interface ConditionsObject {
1292
- /** Logical AND. Tickets must fulfill all of the conditions to be considered matching */
1293
- all?: ConditionsObjectAllList;
1294
- /** Logical OR. Tickets may satisfy any of the conditions to be considered matching */
1295
- any?: ConditionsObjectAnyList;
1296
- }
1297
- export declare const ConditionsObject: S.Schema<ConditionsObject>;
1298
- export interface AutomationObject {
1299
- /** An object describing what the automation will do. See [Actions reference](/documentation/ticketing/reference-guides/actions-reference) */
1300
- actions?: AutomationObjectActionsList;
1301
- /** Whether the automation is active */
1302
- active?: boolean;
1303
- conditions?: ConditionsObject;
1304
- /** The time the automation was created */
1305
- created_at?: string;
1306
- /** If true, the automation is a default automation */
1307
- default?: boolean;
1308
- /** Automatically assigned when created */
1309
- id?: number;
1310
- /** The position of the automation which specifies the order it will be executed */
1311
- position?: number;
1312
- /** The raw title of the automation */
1313
- raw_title?: string;
1314
- /** The title of the automation */
1315
- title?: string;
1316
- /** The time of the last update of the automation */
1317
- updated_at?: string;
1318
- }
1319
- export declare const AutomationObject: S.Schema<AutomationObject>;
1320
- export interface AutomationResponse {
1321
- automation?: AutomationObject;
1322
- }
1323
- export declare const AutomationResponse: S.Schema<AutomationResponse>;
1324
- export interface BookmarkInput {
1325
- /** The id of the ticket the bookmark is for. */
1326
- ticket_id?: number;
1327
- }
1328
- export declare const BookmarkInput: S.Schema<BookmarkInput>;
1329
- export interface CreateBookmarkRequest {
1330
- bookmark?: BookmarkInput;
1331
- }
1332
- export declare const CreateBookmarkRequest: S.Schema<CreateBookmarkRequest>;
1333
- /** The ids of users currently CC'ed on the ticket */
1334
- export type TicketObjectOutputCollaboratorIdsList = Array<number>;
1335
- export declare const TicketObjectOutputCollaboratorIdsList: S.Schema<TicketObjectOutputCollaboratorIdsList>;
1336
- export interface AttachmentBaseObject {
1337
- /** The content type of the image. Example value: "image/png" */
1338
- content_type?: string;
1339
- /** A full URL where the attachment image file can be downloaded. The file may be hosted externally so take care not to inadvertently send Zendesk authentication credentials. See [Working with url properties](/documentation/api-basics/best-practices/working-with-url-properties/) */
1340
- content_url?: string;
1341
- /** If true, the attachment has been deleted */
1342
- deleted?: boolean;
1343
- /** The name of the image file */
1344
- file_name?: string;
1345
- /** The height of the image file in pixels. If height is unknown, returns null */
1346
- height?: number;
1347
- /** Automatically assigned when created */
1348
- id?: number;
1349
- /** If true, the attachment is excluded from the attachment list and the attachment's URL can be referenced within the comment of a ticket. Default is false */
1350
- inline?: boolean;
1351
- /** If true, you can download an attachment flagged as malware. If false, you can't download such an attachment. */
1352
- malware_access_override?: boolean;
1353
- /** The result of the malware scan. There is a delay between the time the attachment is uploaded and when the malware scan is completed. Usually the scan is done within a few seconds, but high load conditions can delay the scan results. Possible values: "malware_found", "malware_not_found", "failed_to_scan", "not_scanned" */
1354
- malware_scan_result?: string;
1355
- /** The URL the attachment image file has been mapped to */
1356
- mapped_content_url?: string;
1357
- /** The size of the image file in bytes */
1358
- size?: number;
1359
- /** A URL to access the attachment details */
1360
- url?: string;
1361
- /** The width of the image file in pixels. If width is unknown, returns null */
1362
- width?: number;
1363
- }
1364
- export declare const AttachmentBaseObject: S.Schema<AttachmentBaseObject>;
1365
- /** An array of attachment objects. Note that photo thumbnails do not have thumbnails */
1366
- export type AttachmentObjectThumbnailsList = Array<AttachmentBaseObject>;
1367
- export declare const AttachmentObjectThumbnailsList: S.Schema<AttachmentObjectThumbnailsList>;
1368
- /** A file represented as an [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) object */
1369
- export interface AttachmentObject {
1370
- /** The content type of the image. Example value: "image/png" */
1371
- content_type?: string;
1372
- /** A full URL where the attachment image file can be downloaded. The file may be hosted externally so take care not to inadvertently send Zendesk authentication credentials. See [Working with url properties](/documentation/api-basics/best-practices/working-with-url-properties/) */
1373
- content_url?: string;
1374
- /** If true, the attachment has been deleted */
1375
- deleted?: boolean;
1376
- /** The name of the image file */
1377
- file_name?: string;
1378
- /** The height of the image file in pixels. If height is unknown, returns null */
1379
- height?: number;
1380
- /** Automatically assigned when created */
1381
- id?: number;
1382
- /** If true, the attachment is excluded from the attachment list and the attachment's URL can be referenced within the comment of a ticket. Default is false */
1383
- inline?: boolean;
1384
- /** If true, you can download an attachment flagged as malware. If false, you can't download such an attachment. */
1385
- malware_access_override?: boolean;
1386
- /** The result of the malware scan. There is a delay between the time the attachment is uploaded and when the malware scan is completed. Usually the scan is done within a few seconds, but high load conditions can delay the scan results. Possible values: "malware_found", "malware_not_found", "failed_to_scan", "not_scanned" */
1387
- malware_scan_result?: string;
1388
- /** The URL the attachment image file has been mapped to */
1389
- mapped_content_url?: string;
1390
- /** The size of the image file in bytes */
1391
- size?: number;
1392
- /** A URL to access the attachment details */
1393
- url?: string;
1394
- /** The width of the image file in pixels. If width is unknown, returns null */
1395
- width?: number;
1396
- /** An array of attachment objects. Note that photo thumbnails do not have thumbnails */
1397
- thumbnails?: AttachmentObjectThumbnailsList;
1398
- }
1399
- export declare const AttachmentObject: S.Schema<AttachmentObject>;
1400
- /** Attachments, if any. See [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) */
1401
- export type TicketCommentObjectAttachmentsList = Array<AttachmentObject>;
1402
- export declare const TicketCommentObjectAttachmentsList: S.Schema<TicketCommentObjectAttachmentsList>;
1403
- /** System information (web client, IP address, etc.) and comment flags, if any. See [Comment flags](#comment-flags) */
1404
- export type TicketCommentObjectMetadataMap = {
1405
- [key: string]: unknown | undefined;
1406
- };
1407
- export declare const TicketCommentObjectMetadataMap: S.Schema<TicketCommentObjectMetadataMap>;
1408
- /** List of tokens received from [uploading files](/api-reference/ticketing/tickets/ticket-attachments/#upload-files) for comment attachments. The files are attached by creating or updating tickets with the tokens. See [Attaching files](/api-reference/ticketing/tickets/tickets/#attaching-files) in Tickets */
1409
- export type TicketCommentObjectUploadsList = Array<string>;
1410
- export declare const TicketCommentObjectUploadsList: S.Schema<TicketCommentObjectUploadsList>;
1411
- /** For some channels a source object gives more information about how or why the ticket or event was created */
1412
- export type TicketAuditViaObjectSourceMap = {
1413
- [key: string]: unknown | undefined;
1414
- };
1415
- export declare const TicketAuditViaObjectSourceMap: S.Schema<TicketAuditViaObjectSourceMap>;
1416
- /** Describes how the object was created. See the [Via object reference](/documentation/ticketing/reference-guides/via-object-reference) */
1417
- export interface TicketAuditViaObject {
1418
- /** This tells you how the ticket or event was created. Examples: "web", "mobile", "rule", "system" */
1419
- channel?: string;
1420
- /** For some channels a source object gives more information about how or why the ticket or event was created */
1421
- source?: TicketAuditViaObjectSourceMap;
1422
- }
1423
- export declare const TicketAuditViaObject: S.Schema<TicketAuditViaObject>;
1424
- export interface TicketCommentObject {
1425
- /** Internal flag for adding short URLs to the comment */
1426
- add_short_url?: boolean;
1427
- /** Attachments, if any. See [Attachment](/api-reference/ticketing/tickets/ticket-attachments/) */
1428
- attachments?: TicketCommentObjectAttachmentsList;
1429
- /** The id of the ticket audit record. See [Show Audit](/api-reference/ticketing/tickets/ticket_audits/#show-audit) */
1430
- audit_id?: number;
1431
- /** The id of the comment author. If null or omitted on create, defaults to the authenticated user. See [Author id](#author-id) */
1432
- author_id?: number | null;
1433
- /** The comment string. See [Bodies](#bodies) */
1434
- body?: string;
1435
- /** Internal channel back identifier for the comment */
1436
- channel_back?: string;
1437
- /** Internal channel source identifier for the comment */
1438
- channel_source_id?: string | null;
1439
- /** The time the comment was created */
1440
- created_at?: string;
1441
- /** The comment formatted as HTML. See [Bodies](#bodies) */
1442
- html_body?: string;
1443
- /** Automatically assigned when the comment is created */
1444
- id?: number;
1445
- /** System information (web client, IP address, etc.) and comment flags, if any. See [Comment flags](#comment-flags) */
1446
- metadata?: TicketCommentObjectMetadataMap;
1447
- /** The comment presented as plain text. See [Bodies](#bodies) */
1448
- plain_body?: string;
1449
- /** true if a public comment; false if an internal note. The initial value set on ticket creation persists for any additional comment unless you change it */
1450
- public?: boolean;
1451
- /** The locale code to translate the comment body to. */
1452
- translate_to?: string | null;
1453
- /** `Comment` or `VoiceComment`. The JSON object for adding voice comments to tickets is different. See [Adding voice comments to tickets](/documentation/ticketing/managing-tickets/adding-voice-comments-to-tickets) */
1454
- type?: string;
1455
- /** List of tokens received from [uploading files](/api-reference/ticketing/tickets/ticket-attachments/#upload-files) for comment attachments. The files are attached by creating or updating tickets with the tokens. See [Attaching files](/api-reference/ticketing/tickets/tickets/#attaching-files) in Tickets */
1456
- uploads?: TicketCommentObjectUploadsList;
1457
- via?: TicketAuditViaObject;
1551
+ /** Automatically assigned when created */
1552
+ id?: number;
1553
+ /** The size of the image file in bytes */
1554
+ size?: number;
1458
1555
  }
1459
- export declare const TicketCommentObject: S.Schema<TicketCommentObject>;
1460
- export type TicketFieldValueInputValueCase3List = Array<string>;
1461
- export declare const TicketFieldValueInputValueCase3List: S.Schema<TicketFieldValueInputValueCase3List>;
1462
- /** The value to assign to the custom field. Type depends on the field configuration: - Text/textarea: string - Checkbox: boolean or "true"/"false" string - Dropdown/tagger: string or array of strings (multi-select) - Number/decimal: number or string representation - Date: string (ISO 8601 format) - Lookup: the target record's id, or an id prefixed with `external_id:` or `name:` - Multi-lookup: an array of target record ids, up to `max_selections` entries. Each write replaces the entire set of selections. Unresolved ids are silently dropped. See [Setting multi-lookup field values](/api-reference/ticketing/lookup_relationships/lookup_relationships/#setting-multi-lookup-field-values) */
1463
- export type TicketFieldValueInputValue = string | number | boolean | TicketFieldValueInputValueCase3List;
1464
- export declare const TicketFieldValueInputValue: S.Schema<TicketFieldValueInputValue>;
1465
- /** A ticket custom field value assignment */
1466
- export interface TicketFieldValueInput {
1467
- /** The ID of the custom field */
1468
- id: number;
1469
- /** The value to assign to the custom field. Type depends on the field configuration: - Text/textarea: string - Checkbox: boolean or "true"/"false" string - Dropdown/tagger: string or array of strings (multi-select) - Number/decimal: number or string representation - Date: string (ISO 8601 format) - Lookup: the target record's id, or an id prefixed with `external_id:` or `name:` - Multi-lookup: an array of target record ids, up to `max_selections` entries. Each write replaces the entire set of selections. Unresolved ids are silently dropped. See [Setting multi-lookup field values](/api-reference/ticketing/lookup_relationships/lookup_relationships/#setting-multi-lookup-field-values) */
1470
- value?: TicketFieldValueInputValue;
1556
+ export declare const MacroAttachmentObject: S.Schema<MacroAttachmentObject>;
1557
+ export interface MacroAttachmentResponse {
1558
+ macro_attachment?: MacroAttachmentObject;
1471
1559
  }
1472
- export declare const TicketFieldValueInput: S.Schema<TicketFieldValueInput>;
1473
- /** Custom field values to set on the ticket. Each entry specifies a field ID and its value. See [Setting custom field values](/documentation/ticketing/managing-tickets/creating-and-updating-tickets#setting-custom-field-values) */
1474
- export type TicketObjectOutputCustomFieldsList = Array<TicketFieldValueInput>;
1475
- export declare const TicketObjectOutputCustomFieldsList: S.Schema<TicketObjectOutputCustomFieldsList>;
1476
- /** The ids of agents or end users currently CC'ed on the ticket. See [CCs and followers resources](https://support.zendesk.com/hc/en-us/articles/4408822451482) in the Support Help Center */
1477
- export type TicketObjectOutputEmailCcIdsList = Array<number>;
1478
- export declare const TicketObjectOutputEmailCcIdsList: S.Schema<TicketObjectOutputEmailCcIdsList>;
1479
- /** Alias for custom_fields. Custom field values to set on the ticket. Each entry specifies a field ID and its value. */
1480
- export type TicketObjectOutputFieldsList = Array<TicketFieldValueInput>;
1481
- export declare const TicketObjectOutputFieldsList: S.Schema<TicketObjectOutputFieldsList>;
1482
- /** The ids of agents currently following the ticket. Ignored when [CCs and followers](https://support.zendesk.com/hc/en-us/articles/4408822451482) is not enabled */
1483
- export type TicketObjectOutputFollowerIdsList = Array<number>;
1484
- export declare const TicketObjectOutputFollowerIdsList: S.Schema<TicketObjectOutputFollowerIdsList>;
1485
- /** The ids of the followups created from this ticket. Ids are only visible once the ticket is closed */
1486
- export type TicketObjectOutputFollowupIdsList = Array<number>;
1487
- export declare const TicketObjectOutputFollowupIdsList: S.Schema<TicketObjectOutputFollowupIdsList>;
1488
- /** The urgency with which the ticket should be addressed */
1489
- export type TicketObjectOutputPriority = "urgent" | "high" | "normal" | "low";
1490
- export declare const TicketObjectOutputPriority: any;
1491
- /** The satisfaction rating of the ticket, if it exists, or the state of satisfaction, "offered" or "unoffered". The value is null for plan types that don't support CSAT */
1492
- export type TicketObjectOutputSatisfactionRatingMap = {
1493
- [key: string]: unknown | undefined;
1494
- };
1495
- export declare const TicketObjectOutputSatisfactionRatingMap: S.Schema<TicketObjectOutputSatisfactionRatingMap>;
1496
- /** An array of the numeric IDs of sharing agreements. Note that this replaces any existing agreements */
1497
- export type TicketObjectOutputSharingAgreementIdsList = Array<number>;
1498
- export declare const TicketObjectOutputSharingAgreementIdsList: S.Schema<TicketObjectOutputSharingAgreementIdsList>;
1499
- /** The state of the ticket. If your account has activated custom ticket statuses, this is the ticket's status category. See [custom ticket statuses](#custom-ticket-statuses) */
1500
- export type TicketObjectOutputStatus = "new" | "open" | "pending" | "hold" | "solved" | "closed";
1501
- export declare const TicketObjectOutputStatus: any;
1502
- /** The type of support that handled the ticket */
1503
- export type TicketObjectOutputSupportType = "agent" | "ai_agent";
1504
- export declare const TicketObjectOutputSupportType: any;
1505
- /** An array of tag strings */
1506
- export type TicketObjectOutputTagsCase0List = Array<string>;
1507
- export declare const TicketObjectOutputTagsCase0List: S.Schema<TicketObjectOutputTagsCase0List>;
1508
- /** The tags applied to this ticket. Unless otherwise specified, the [set tag](/api-reference/ticketing/ticket-management/tags/#set-tags) behavior is used, which overwrites and replaces existing tags */
1509
- export type TicketObjectOutputTags = TicketObjectOutputTagsCase0List | string;
1510
- export declare const TicketObjectOutputTags: S.Schema<TicketObjectOutputTags>;
1511
- /** The type of this ticket */
1512
- export type TicketObjectOutputType = "problem" | "incident" | "question" | "task";
1513
- export declare const TicketObjectOutputType: any;
1514
- /** This tells you how the ticket or event was created. Examples: "web", "mobile", "rule", "system". May be a string name or an integer channel ID. */
1515
- export type ViaObjectChannel = string | number;
1516
- export declare const ViaObjectChannel: S.Schema<ViaObjectChannel>;
1517
- export interface ViaObjectSourceFrom {
1518
- address?: string | null;
1519
- id?: number | null;
1520
- name?: string | null;
1521
- title?: string | null;
1560
+ export declare const MacroAttachmentResponse: S.Schema<MacroAttachmentResponse>;
1561
+ export interface CreateAttributeRequest {
1522
1562
  }
1523
- export declare const ViaObjectSourceFrom: S.Schema<ViaObjectSourceFrom>;
1524
- export interface ViaObjectSourceTo {
1525
- address?: string;
1526
- name?: string;
1563
+ export declare const CreateAttributeRequest: S.Schema<CreateAttributeRequest>;
1564
+ export interface SkillBasedRoutingAttributeObject {
1565
+ /** When this record was created */
1566
+ created_at?: string;
1567
+ /** Automatically assigned when an attribute is created */
1568
+ id?: string;
1569
+ /** The name of the attribute */
1570
+ name: string;
1571
+ /** When this record was last updated */
1572
+ updated_at?: string;
1573
+ /** URL of the attribute */
1574
+ url?: string;
1527
1575
  }
1528
- export declare const ViaObjectSourceTo: S.Schema<ViaObjectSourceTo>;
1529
- /** For some channels a source object gives more information about how or why the ticket or event was created */
1530
- export interface ViaObjectSource {
1531
- from?: ViaObjectSourceFrom;
1532
- rel?: string | null;
1533
- to?: ViaObjectSourceTo;
1576
+ export declare const SkillBasedRoutingAttributeObject: S.Schema<SkillBasedRoutingAttributeObject>;
1577
+ export interface SkillBasedRoutingAttributeResponse {
1578
+ attribute?: SkillBasedRoutingAttributeObject;
1534
1579
  }
1535
- export declare const ViaObjectSource: S.Schema<ViaObjectSource>;
1536
- /** An object explaining how the ticket was created. See the [Via object reference](/documentation/ticketing/reference-guides/via-object-reference) */
1537
- export interface ViaObject {
1538
- /** This tells you how the ticket or event was created. Examples: "web", "mobile", "rule", "system". May be a string name or an integer channel ID. */
1539
- channel?: ViaObjectChannel;
1540
- /** For some channels a source object gives more information about how or why the ticket or event was created */
1541
- source?: ViaObjectSource;
1580
+ export declare const SkillBasedRoutingAttributeResponse: S.Schema<SkillBasedRoutingAttributeResponse>;
1581
+ export interface CreateAttributeValueRequest {
1582
+ /** The ID of the skill-based routing attribute */
1583
+ attribute_id: string;
1542
1584
  }
1543
- export declare const ViaObject: S.Schema<ViaObject>;
1544
- export interface TicketObjectOutput {
1545
- /** Permission for agents to add add attachments to a comment. Defaults to true */
1546
- allow_attachments?: boolean;
1547
- /** Is false if channelback is disabled, true otherwise. Only applicable for channels framework ticket */
1548
- allow_channelback?: boolean;
1549
- /** The agent currently assigned to the ticket */
1550
- assignee_id?: number | null;
1551
- /** The id of the brand this ticket is associated with. See [Setting up multiple brands](https://support.zendesk.com/hc/en-us/articles/4408829476378) */
1552
- brand_id?: number | null;
1553
- /** The ids of users currently CC'ed on the ticket */
1554
- collaborator_ids?: TicketObjectOutputCollaboratorIdsList;
1555
- comment?: TicketCommentObject;
1585
+ export declare const CreateAttributeValueRequest: S.Schema<CreateAttributeValueRequest>;
1586
+ /** The priority of the agent skill for this attribute value */
1587
+ export type SkillBasedRoutingAttributeValueObjectAgentSkillPriority = "NORMAL" | "HIGH";
1588
+ export declare const SkillBasedRoutingAttributeValueObjectAgentSkillPriority: any;
1589
+ export interface SkillBasedRoutingAttributeValueObject {
1590
+ /** The priority of the agent skill for this attribute value */
1591
+ agent_skill_priority?: SkillBasedRoutingAttributeValueObjectAgentSkillPriority;
1592
+ /** Id of the associated attribute */
1593
+ attribute_id?: string;
1556
1594
  /** When this record was created */
1557
1595
  created_at?: string;
1558
- /** Custom field values to set on the ticket. Each entry specifies a field ID and its value. See [Setting custom field values](/documentation/ticketing/managing-tickets/creating-and-updating-tickets#setting-custom-field-values) */
1559
- custom_fields?: TicketObjectOutputCustomFieldsList;
1560
- /** The custom ticket status id of the ticket. See [custom ticket statuses](#custom-ticket-statuses) */
1561
- custom_status_id?: number | null;
1562
- /** The first comment on the ticket. When [creating a ticket](#create-ticket), use `comment` to set the description. See [Description and first comment](#description-and-first-comment). On create, can be set directly as an alternative to `comment`. Silently ignored on update. */
1563
- description?: string;
1564
- /** If this is a ticket of type "task" it has a due date. Due date format uses [ISO 8601](http://en.wikipedia.org/wiki/ISO_8601) format */
1565
- due_at?: string | null;
1566
- /** The ids of agents or end users currently CC'ed on the ticket. See [CCs and followers resources](https://support.zendesk.com/hc/en-us/articles/4408822451482) in the Support Help Center */
1567
- email_cc_ids?: TicketObjectOutputEmailCcIdsList;
1568
- /** An encoded string representing the ticket's unique identifier */
1569
- encoded_id?: string;
1570
- /** An id you can use to link Zendesk Support tickets to local records */
1571
- external_id?: string | null;
1572
- /** Alias for custom_fields. Custom field values to set on the ticket. Each entry specifies a field ID and its value. */
1573
- fields?: TicketObjectOutputFieldsList;
1574
- /** The ids of agents currently following the ticket. Ignored when [CCs and followers](https://support.zendesk.com/hc/en-us/articles/4408822451482) is not enabled */
1575
- follower_ids?: TicketObjectOutputFollowerIdsList;
1576
- /** The ids of the followups created from this ticket. Ids are only visible once the ticket is closed */
1577
- followup_ids?: TicketObjectOutputFollowupIdsList;
1578
- /** The topic in the Zendesk Web portal this ticket originated from, if any. The Web portal is deprecated */
1579
- forum_topic_id?: number;
1580
- /** If true, the ticket's [via type](/documentation/ticketing/reference-guides/via-object-reference/) is a messaging channel. */
1581
- from_messaging_channel?: boolean;
1582
- /** A Unix timestamp that represents the most accurate reading of when this record was last updated. It is updated for all ticket updates, including system updates */
1583
- generated_timestamp?: number;
1584
- /** The group this ticket is assigned to */
1585
- group_id?: number | null;
1586
- /** Is true if a ticket is a problem type and has one or more incidents linked to it. Otherwise, the value is false. */
1587
- has_incidents?: boolean;
1588
- /** Automatically assigned when the ticket is created */
1596
+ /** Automatically assigned when an attribute value is created */
1597
+ id?: string;
1598
+ /** The name of the attribute value */
1599
+ name?: string;
1600
+ /** When this record was last updated */
1601
+ updated_at?: string;
1602
+ /** URL of the attribute value */
1603
+ url?: string;
1604
+ }
1605
+ export declare const SkillBasedRoutingAttributeValueObject: S.Schema<SkillBasedRoutingAttributeValueObject>;
1606
+ export interface SkillBasedRoutingAttributeValueResponse {
1607
+ attribute_value?: SkillBasedRoutingAttributeValueObject;
1608
+ }
1609
+ export declare const SkillBasedRoutingAttributeValueResponse: S.Schema<SkillBasedRoutingAttributeValueResponse>;
1610
+ export interface CreateAutomationRequest {
1611
+ }
1612
+ export declare const CreateAutomationRequest: S.Schema<CreateAutomationRequest>;
1613
+ export interface ActionObject {
1614
+ /** The name of a ticket field to modify */
1615
+ field?: string;
1616
+ /** The new value of the field */
1617
+ value?: string;
1618
+ }
1619
+ export declare const ActionObject: S.Schema<ActionObject>;
1620
+ /** An object describing what the automation will do. See [Actions reference](/documentation/ticketing/reference-guides/actions-reference) */
1621
+ export type AutomationObjectActionsList = Array<ActionObject>;
1622
+ export declare const AutomationObjectActionsList: S.Schema<AutomationObjectActionsList>;
1623
+ export interface ConditionObject {
1624
+ /** The name of a ticket field */
1625
+ field?: string;
1626
+ /** A comparison operator */
1627
+ operator?: string;
1628
+ /** The value of a ticket field */
1629
+ value?: string;
1630
+ }
1631
+ export declare const ConditionObject: S.Schema<ConditionObject>;
1632
+ /** Logical AND. Tickets must fulfill all of the conditions to be considered matching */
1633
+ export type ConditionsObjectAllList = Array<ConditionObject>;
1634
+ export declare const ConditionsObjectAllList: S.Schema<ConditionsObjectAllList>;
1635
+ /** Logical OR. Tickets may satisfy any of the conditions to be considered matching */
1636
+ export type ConditionsObjectAnyList = Array<ConditionObject>;
1637
+ export declare const ConditionsObjectAnyList: S.Schema<ConditionsObjectAnyList>;
1638
+ /** An object that describes the conditions under which the automation will execute. See [Conditions reference](/documentation/ticketing/reference-guides/conditions-reference) */
1639
+ export interface ConditionsObject {
1640
+ /** Logical AND. Tickets must fulfill all of the conditions to be considered matching */
1641
+ all?: ConditionsObjectAllList;
1642
+ /** Logical OR. Tickets may satisfy any of the conditions to be considered matching */
1643
+ any?: ConditionsObjectAnyList;
1644
+ }
1645
+ export declare const ConditionsObject: S.Schema<ConditionsObject>;
1646
+ export interface AutomationObject {
1647
+ /** An object describing what the automation will do. See [Actions reference](/documentation/ticketing/reference-guides/actions-reference) */
1648
+ actions?: AutomationObjectActionsList;
1649
+ /** Whether the automation is active */
1650
+ active?: boolean;
1651
+ conditions?: ConditionsObject;
1652
+ /** The time the automation was created */
1653
+ created_at?: string;
1654
+ /** If true, the automation is a default automation */
1655
+ default?: boolean;
1656
+ /** Automatically assigned when created */
1589
1657
  id?: number;
1590
- /** Is true if any comments are public, false otherwise */
1591
- is_public?: boolean;
1592
- /** The organization of the requester. You can only specify the ID of an organization associated with the requester. See [Organization Memberships](/api-reference/ticketing/organizations/organization_memberships/) */
1593
- organization_id?: number | null;
1594
- /** The urgency with which the ticket should be addressed */
1595
- priority?: TicketObjectOutputPriority | null;
1596
- /** For tickets of type "incident", the ID of the problem the incident is linked to */
1597
- problem_id?: number | null;
1598
- /** The dynamic content placeholder, if present, or the "subject" value, if not. See [Dynamic Content Items](/api-reference/ticketing/ticket-management/dynamic_content/). When set on create or update, overrides the `subject` field. */
1599
- raw_subject?: string;
1600
- /** The original recipient e-mail address of the ticket. Notification emails for the ticket are sent from this address */
1601
- recipient?: string;
1602
- /** The user who requested this ticket */
1603
- requester_id?: number | null;
1604
- /** The predicted satisfaction probability score */
1605
- satisfaction_probability?: number;
1606
- /** The satisfaction rating of the ticket, if it exists, or the state of satisfaction, "offered" or "unoffered". The value is null for plan types that don't support CSAT */
1607
- satisfaction_rating?: TicketObjectOutputSatisfactionRatingMap;
1608
- /** An array of the numeric IDs of sharing agreements. Note that this replaces any existing agreements */
1609
- sharing_agreement_ids?: TicketObjectOutputSharingAgreementIdsList;
1610
- /** The state of the ticket. If your account has activated custom ticket statuses, this is the ticket's status category. See [custom ticket statuses](#custom-ticket-statuses) */
1611
- status?: TicketObjectOutputStatus;
1612
- /** The value of the subject field for this ticket. See [Subject](/api-reference/ticketing/tickets/tickets/#subject) */
1613
- subject?: string | null;
1614
- /** The user who submitted the ticket. The submitter always becomes the author of the first comment on the ticket. If not specified, defaults to the authenticated user. */
1615
- submitter_id?: number | null;
1616
- /** The type of support that handled the ticket */
1617
- support_type?: TicketObjectOutputSupportType | null;
1618
- /** The tags applied to this ticket. Unless otherwise specified, the [set tag](/api-reference/ticketing/ticket-management/tags/#set-tags) behavior is used, which overwrites and replaces existing tags */
1619
- tags?: TicketObjectOutputTags;
1620
- /** Enterprise only. The id of the ticket form to render for the ticket */
1621
- ticket_form_id?: number | null;
1622
- /** The type of this ticket */
1623
- type?: TicketObjectOutputType | null;
1624
- /** When this record last got updated. It is updated only if the update generates a [ticket event](#incremental-ticket-event-export) */
1658
+ /** The position of the automation which specifies the order it will be executed */
1659
+ position?: number;
1660
+ /** The raw title of the automation */
1661
+ raw_title?: string;
1662
+ /** The title of the automation */
1663
+ title?: string;
1664
+ /** The time of the last update of the automation */
1625
1665
  updated_at?: string;
1626
- /** The API url of this ticket */
1627
- url?: string;
1628
- via?: ViaObject;
1629
1666
  }
1630
- export declare const TicketObjectOutput: S.Schema<TicketObjectOutput>;
1667
+ export declare const AutomationObject: S.Schema<AutomationObject>;
1668
+ export interface AutomationResponse {
1669
+ automation?: AutomationObject;
1670
+ }
1671
+ export declare const AutomationResponse: S.Schema<AutomationResponse>;
1672
+ export interface BookmarkInput {
1673
+ /** The id of the ticket the bookmark is for. */
1674
+ ticket_id?: number;
1675
+ }
1676
+ export declare const BookmarkInput: S.Schema<BookmarkInput>;
1677
+ export interface CreateBookmarkRequest {
1678
+ bookmark?: BookmarkInput;
1679
+ }
1680
+ export declare const CreateBookmarkRequest: S.Schema<CreateBookmarkRequest>;
1631
1681
  export interface BookmarkObjectOutput {
1632
1682
  /** The time the bookmark was created */
1633
1683
  created_at?: string;
@@ -2079,10 +2129,16 @@ export declare const CreateCustomRoleRequest: S.Schema<CreateCustomRoleRequest>;
2079
2129
  export interface CustomRoleConfigurationObject {
2080
2130
  /** What level of actions access the agent has. Allowed values: "none", "workflows_and_zendesk", "all" */
2081
2131
  actions_access?: string;
2132
+ /** Whether or not the agent can assign agent statuses */
2133
+ assign_agent_statuses?: boolean;
2082
2134
  /** Whether or not the agent can assign tickets to any group */
2083
2135
  assign_tickets_to_any_group?: boolean;
2136
+ /** What kind of ticket brands the agent can access. Allowed values: "all", "within-brands", "selected-brands" */
2137
+ brands_ticket_access?: string;
2084
2138
  /** What the agent can do with capacity rules. Allowed values: "none", "all", "view-and-assign" */
2085
2139
  capacity_rules_access?: string;
2140
+ /** What level of access the agent has to change management. Allowed values: "none", "view", "full" */
2141
+ change_management_access?: string;
2086
2142
  /** Whether or not the agent has access to Chat */
2087
2143
  chat_access?: boolean;
2088
2144
  /** Whether or not the agent can view lists of user profiles. Allowed values: "full", "none" */
@@ -2095,11 +2151,17 @@ export interface CustomRoleConfigurationObject {
2095
2151
  explore_access?: string;
2096
2152
  /** Whether or not the agent can export views */
2097
2153
  export_views?: boolean;
2098
- /** The kind of access the agent has to Guide. Allowed values: "edit-topics", "full", "readonly" */
2154
+ /** The kind of access the agent has to the community in the help center. Allowed values: "edit-topics", "full", "readonly" */
2099
2155
  forum_access?: string;
2156
+ /** Whether or not the agent can access community content restricted by organization or visibility settings */
2100
2157
  forum_access_restricted_content?: boolean;
2101
2158
  /** Whether or not the agent can add or modify groups */
2102
2159
  group_access?: boolean;
2160
+ /** What kind of ticket groups the agent can access. Allowed values: "all", "within-groups", "selected-groups" */
2161
+ groups_ticket_access?: string;
2162
+ /** Whether or not the agent can access IT asset management */
2163
+ it_asset_management_access?: boolean;
2164
+ /** Whether or not the agent is a light agent */
2103
2165
  light_agent?: boolean;
2104
2166
  /** What the agent can do with macros. Allowed values: "full", "manage-group", "manage-personal", "readonly" */
2105
2167
  macro_access?: string;
@@ -2107,16 +2169,30 @@ export interface CustomRoleConfigurationObject {
2107
2169
  manage_api_credentials?: boolean;
2108
2170
  /** Whether or not the agent can manage business rules */
2109
2171
  manage_business_rules?: boolean;
2172
+ /** Whether or not the agent can manage change management configuration */
2173
+ manage_change_management_configuration?: boolean;
2110
2174
  /** Whether or not the agent can view, add, and edit contextual workspaces */
2111
2175
  manage_contextual_workspaces?: boolean;
2176
+ /** What level of access the agent has to deletion schedules. Allowed values: "all", "readonly", "none" */
2177
+ manage_deletion_schedules?: string;
2112
2178
  /** Whether or not the agent can access dynamic content */
2113
2179
  manage_dynamic_content?: boolean;
2114
2180
  /** Whether or not the agent can manage channels and extensions */
2115
2181
  manage_extensions_and_channels?: boolean;
2116
2182
  /** Whether or not the agent can manage Facebook pages */
2117
2183
  manage_facebook?: boolean;
2184
+ /** Whether or not the agent can manage IP bans */
2185
+ manage_ip_bans?: boolean;
2186
+ /** Whether or not the agent can manage IT asset configuration */
2187
+ manage_it_asset_configuration?: boolean;
2188
+ /** Whether or not the agent can manage macro content suggestions */
2189
+ manage_macro_content_suggestions?: boolean;
2190
+ /** Whether or not the agent can manage malicious attachments */
2191
+ manage_malicious_attachments?: boolean;
2118
2192
  /** Whether or not the agent can create and manage organization fields */
2119
2193
  manage_organization_fields?: boolean;
2194
+ /** Whether or not the agent can manage support apps */
2195
+ manage_support_apps?: boolean;
2120
2196
  /** Whether or not the agent can create and manage ticket fields */
2121
2197
  manage_ticket_fields?: boolean;
2122
2198
  /** Whether or not the agent can create and manage ticket forms */
@@ -2131,6 +2207,13 @@ export interface CustomRoleConfigurationObject {
2131
2207
  manage_user_own_forwarding_numbers?: boolean;
2132
2208
  /** Whether or not the agent can manage their own profile photo */
2133
2209
  manage_user_own_photo?: boolean;
2210
+ /** Whether or not the agent can mask end user email addresses */
2211
+ mask_end_user_email?: boolean;
2212
+ /** Whether or not the agent can mask end user names */
2213
+ mask_end_user_name?: boolean;
2214
+ /** Whether or not the agent can mask end user phone numbers */
2215
+ mask_end_user_phone?: boolean;
2216
+ /** Whether or not the agent can moderate forums */
2134
2217
  moderate_forums?: boolean;
2135
2218
  /** Whether or not the agent can modify closed tickets */
2136
2219
  modify_closed_tickets?: boolean;
@@ -2138,6 +2221,8 @@ export interface CustomRoleConfigurationObject {
2138
2221
  organization_editing?: boolean;
2139
2222
  /** Whether or not the agent can add or modify organization notes */
2140
2223
  organization_notes_editing?: boolean;
2224
+ /** Whether or not the agent can read macro content suggestions */
2225
+ read_macro_content_suggestions?: boolean;
2141
2226
  /** What the agent can do with reports. Allowed values: "full", "none", "readonly" */
2142
2227
  report_access?: string;
2143
2228
  /** Whether or not the agent can contribute to side conversations */
@@ -2154,6 +2239,7 @@ export interface CustomRoleConfigurationObject {
2154
2239
  ticket_merge?: boolean;
2155
2240
  /** Whether or not the agent can edit ticket tags */
2156
2241
  ticket_tag_editing?: boolean;
2242
+ /** Whether or not the agent can access X (formerly Twitter) searches */
2157
2243
  twitter_search_access?: boolean;
2158
2244
  /** Whether or not the agent can update their own alias */
2159
2245
  update_user_own_alias?: boolean;
@@ -2167,14 +2253,16 @@ export interface CustomRoleConfigurationObject {
2167
2253
  user_view_access?: string;
2168
2254
  /** What the agent can do with views. Allowed values: "full", "manage-group", "manage-personal", "playonly", "readonly" */
2169
2255
  view_access?: string;
2170
- /** Whether or not the agent can view access logs. */
2256
+ /** Whether or not the agent can view access logs */
2171
2257
  view_access_logs?: boolean;
2172
- /** Whether or not the agent can view audit logs. */
2258
+ /** Whether or not the agent can view audit logs */
2173
2259
  view_audit_logs?: boolean;
2174
2260
  /** Whether or not the agent can view deleted tickets */
2175
2261
  view_deleted_tickets?: boolean;
2176
2262
  /** Whether or not the agent can view and apply filters to tickets */
2177
2263
  view_filter_tickets?: boolean;
2264
+ /** Whether or not the agent can view reduced counts */
2265
+ view_reduced_count?: boolean;
2178
2266
  /** Whether or not the agent can answer and place calls to end users */
2179
2267
  voice_access?: boolean;
2180
2268
  /** Whether or not the agent can view details about calls on the Talk dashboard */
@@ -2210,19 +2298,19 @@ export interface CustomStatusCreateInput {
2210
2298
  /** True if the custom status is set as active; inactive if false */
2211
2299
  active?: boolean;
2212
2300
  /** The dynamic content placeholder, if present, or the "agent_label" value, if not. See [Dynamic Content Items](/api-reference/ticketing/ticket-management/dynamic_content/) */
2213
- agent_label?: string;
2301
+ agent_label: string;
2214
2302
  /** The dynamic content placeholder, if present, or the "description" value, if not. See [Dynamic Content Items](/api-reference/ticketing/ticket-management/dynamic_content/) */
2215
2303
  description?: string;
2216
2304
  /** The dynamic content placeholder, if present, or the "end_user_description" value, if not. See [Dynamic Content Items](/api-reference/ticketing/ticket-management/dynamic_content/) */
2217
2305
  end_user_description?: string;
2218
2306
  /** The dynamic content placeholder, if present, or the "end_user_label" value, if not. See [Dynamic Content Items](/api-reference/ticketing/ticket-management/dynamic_content/) */
2219
- end_user_label?: string;
2307
+ end_user_label: string;
2220
2308
  /** The status category the custom ticket status belongs to */
2221
- status_category?: CustomStatusCreateInputStatusCategory | (string & {});
2309
+ status_category: CustomStatusCreateInputStatusCategory | (string & {});
2222
2310
  }
2223
2311
  export declare const CustomStatusCreateInput: S.Schema<CustomStatusCreateInput>;
2224
2312
  export interface CreateCustomStatusRequest {
2225
- custom_status?: CustomStatusCreateInput;
2313
+ custom_status: CustomStatusCreateInput;
2226
2314
  }
2227
2315
  export declare const CreateCustomStatusRequest: S.Schema<CreateCustomStatusRequest>;
2228
2316
  /** The status category the custom ticket status belongs to */
@@ -2588,6 +2676,8 @@ export declare const ItamAssetInputPurchaseCost: S.Schema<ItamAssetInputPurchase
2588
2676
  export interface ItamAssetInput {
2589
2677
  /** The tag for the asset */
2590
2678
  asset_tag?: string | null;
2679
+ /** Id of the asset type */
2680
+ asset_type_id: string;
2591
2681
  /** User-defined custom asset fields and values */
2592
2682
  custom_field_values?: ItamAssetInputCustomFieldValuesMap;
2593
2683
  /** An id you can use to link an asset to external data */
@@ -2635,10 +2725,14 @@ export declare const ItamAssetPurchaseCost: S.Schema<ItamAssetInputPurchaseCost>
2635
2725
  export interface ItamAsset {
2636
2726
  /** The tag for the asset */
2637
2727
  asset_tag?: string | null;
2728
+ /** Direct link to the asset's asset type icon */
2729
+ asset_type_icon_url?: string | null;
2638
2730
  /** Id of the asset type */
2639
2731
  asset_type_id: string;
2640
2732
  /** The time the asset record was added */
2641
2733
  created_at?: string;
2734
+ /** The id of the user who created the asset */
2735
+ created_by_user_id?: number;
2642
2736
  /** User-defined custom asset fields and values */
2643
2737
  custom_field_values?: ItamAssetCustomFieldValuesMap;
2644
2738
  /** An id you can use to link an asset to external data */
@@ -2667,6 +2761,8 @@ export interface ItamAsset {
2667
2761
  status_id: string;
2668
2762
  /** The time of the asset's last update */
2669
2763
  updated_at?: string;
2764
+ /** The id of the user who last updated the asset */
2765
+ updated_by_user_id?: number;
2670
2766
  /** Direct link to the specific asset */
2671
2767
  url?: string;
2672
2768
  /** Id of the user the asset is assigned to */
@@ -2681,18 +2777,22 @@ export interface ItamAssetResponse {
2681
2777
  asset?: ItamAsset;
2682
2778
  }
2683
2779
  export declare const ItamAssetResponse: S.Schema<ItamAssetResponse>;
2684
- /** Custom field keys associated with the asset type */
2685
- export type ItamAssetTypeInputFieldKeysList = Array<string>;
2686
- export declare const ItamAssetTypeInputFieldKeysList: S.Schema<ItamAssetTypeInputFieldKeysList>;
2780
+ /** Sets or removes the asset type's icon. Setting an icon requires a `multipart/form-data` request with a file field named `asset_type[photo][uploaded_data]` — see the "Adding a photo" code sample. Pass `null` to remove the existing icon via a normal JSON request. */
2781
+ export type ItamAssetTypeInputPhotoMap = {
2782
+ [key: string]: unknown | undefined;
2783
+ };
2784
+ export declare const ItamAssetTypeInputPhotoMap: S.Schema<ItamAssetTypeInputPhotoMap>;
2687
2785
  export interface ItamAssetTypeInput {
2688
2786
  /** A description of the asset type */
2689
2787
  description?: string | null;
2690
2788
  /** An id you can use to link asset types to external data */
2691
2789
  external_id?: string | null;
2692
- /** Custom field keys associated with the asset type */
2693
- field_keys?: ItamAssetTypeInputFieldKeysList;
2694
- /** The id of the parent asset type within the hierarchy tree */
2695
- parent_id: string;
2790
+ /** A unique display name for the asset type */
2791
+ name: string;
2792
+ /** The id of the parent asset type within the hierarchy tree. If omitted on create, defaults to the base asset type. Cannot be changed after the asset type is created. */
2793
+ parent_id?: string | null;
2794
+ /** Sets or removes the asset type's icon. Setting an icon requires a `multipart/form-data` request with a file field named `asset_type[photo][uploaded_data]` — see the "Adding a photo" code sample. Pass `null` to remove the existing icon via a normal JSON request. */
2795
+ photo?: ItamAssetTypeInputPhotoMap | null;
2696
2796
  }
2697
2797
  export declare const ItamAssetTypeInput: S.Schema<ItamAssetTypeInput>;
2698
2798
  export interface CreateItamAssetTypeRequest {
@@ -2700,47 +2800,54 @@ export interface CreateItamAssetTypeRequest {
2700
2800
  }
2701
2801
  export declare const CreateItamAssetTypeRequest: S.Schema<CreateItamAssetTypeRequest>;
2702
2802
  /** Custom field keys associated with the asset type */
2703
- export type ItamAssetTypeFieldKeysList = Array<string>;
2704
- export declare const ItamAssetTypeFieldKeysList: S.Schema<ItamAssetTypeFieldKeysList>;
2705
- export interface ItamAssetType {
2706
- /** The time the asset type was created */
2707
- created_at?: string;
2803
+ export type ItamAssetTypeOutputFieldKeysList = Array<string>;
2804
+ export declare const ItamAssetTypeOutputFieldKeysList: S.Schema<ItamAssetTypeOutputFieldKeysList>;
2805
+ export interface ItamAssetTypeOutput {
2708
2806
  /** The id of the user who created the asset type */
2709
2807
  created_by_user_id?: number;
2710
2808
  /** A description of the asset type */
2711
2809
  description?: string | null;
2810
+ /** Direct link to the icon used to represent this asset type, inherited from the nearest ancestor asset type that has one set if this asset type has none */
2811
+ display_icon_url?: string | null;
2712
2812
  /** An id you can use to link asset types to external data */
2713
2813
  external_id?: string | null;
2714
2814
  /** Custom field keys associated with the asset type */
2715
- field_keys?: ItamAssetTypeFieldKeysList;
2815
+ field_keys?: ItamAssetTypeOutputFieldKeysList;
2716
2816
  /** The depth within the hierarchy tree. Valid values: 1, 2, and 3 */
2717
2817
  hierarchy_depth?: number;
2818
+ /** Direct link to the asset type's own icon, if one is set */
2819
+ icon_url?: string | null;
2718
2820
  /** Automatically assigned upon creation */
2719
2821
  id?: string;
2720
2822
  /** Whether this asset type is a standard asset type. Standard asset types cannot be modified. */
2721
2823
  is_standard?: boolean;
2722
2824
  /** A unique display name for the asset type */
2723
2825
  name: string;
2724
- /** The id of the parent asset type within the hierarchy tree */
2725
- parent_id: string;
2726
- /** The time of the asset type's last update */
2727
- updated_at?: string;
2728
- /** The id of the user who last the asset type */
2826
+ /** The id of the parent asset type within the hierarchy tree. If omitted on create, defaults to the base asset type. Cannot be changed after the asset type is created. */
2827
+ parent_id?: string | null;
2828
+ /** The id of the user who last updated the asset type */
2729
2829
  updated_by_user_id?: number;
2730
2830
  /** Direct link to the specific asset type */
2731
2831
  url?: string;
2732
2832
  }
2733
- export declare const ItamAssetType: S.Schema<ItamAssetType>;
2734
- export interface ItamAssetTypeResponse {
2735
- asset_type?: ItamAssetType;
2736
- }
2737
- export declare const ItamAssetTypeResponse: S.Schema<ItamAssetTypeResponse>;
2738
- export interface CreateItamAssetTypeFieldRequest {
2739
- /** The id of the asset type */
2740
- asset_type_id: string;
2833
+ export declare const ItamAssetTypeOutput: S.Schema<ItamAssetTypeOutput>;
2834
+ export interface ItamAssetTypeResponseOutput {
2835
+ asset_type?: ItamAssetTypeOutput;
2836
+ }
2837
+ export declare const ItamAssetTypeResponseOutput: S.Schema<ItamAssetTypeResponseOutput>;
2838
+ export type CreateItamFieldRequestAssetTypeIdsCase0List = Array<string>;
2839
+ export declare const CreateItamFieldRequestAssetTypeIdsCase0List: S.Schema<CreateItamFieldRequestAssetTypeIdsCase0List>;
2840
+ export type CreateItamFieldRequestAssetTypeIdsCase1 = "all" | "none";
2841
+ export declare const CreateItamFieldRequestAssetTypeIdsCase1: any;
2842
+ /** Array of asset type ids, "all", or "none". If "none", the field isn't attached to any asset type. */
2843
+ export type CreateItamFieldRequestAssetTypeIds = CreateItamFieldRequestAssetTypeIdsCase0List | CreateItamFieldRequestAssetTypeIdsCase1;
2844
+ export declare const CreateItamFieldRequestAssetTypeIds: S.Schema<CreateItamFieldRequestAssetTypeIds>;
2845
+ export interface CreateItamFieldRequest {
2846
+ /** Array of asset type ids, "all", or "none". If "none", the field isn't attached to any asset type. */
2847
+ asset_type_ids?: CreateItamFieldRequestAssetTypeIds;
2741
2848
  field?: CustomObjectFieldInput;
2742
2849
  }
2743
- export declare const CreateItamAssetTypeFieldRequest: S.Schema<CreateItamAssetTypeFieldRequest>;
2850
+ export declare const CreateItamFieldRequest: S.Schema<CreateItamFieldRequest>;
2744
2851
  export interface ItamAssetFieldResponse {
2745
2852
  field?: CustomObjectField;
2746
2853
  }
@@ -2807,7 +2914,7 @@ export interface ItamAssetStatus {
2807
2914
  external_id?: string | null;
2808
2915
  /** Automatically assigned upon creation */
2809
2916
  id?: string;
2810
- /** Whether this is a standard (system-defined) status that has limited editability */
2917
+ /** Whether this is a standard, predefined status. Standard statuses can't be modified. */
2811
2918
  is_standard?: boolean;
2812
2919
  /** Display name for the status */
2813
2920
  name: string;
@@ -2932,7 +3039,7 @@ export declare const UserCreateInputAgentBrandIdsList: S.Schema<UserCreateInputA
2932
3039
  /** The ids of the groups to assign to the user */
2933
3040
  export type UserCreateInputGroupIdsList = Array<number>;
2934
3041
  export declare const UserCreateInputGroupIdsList: S.Schema<UserCreateInputGroupIdsList>;
2935
- /** Write-only ownership control for the Shared Email EAP. Ignored unless the account has the Shared Email EAP enabled. */
3042
+ /** Write-only ownership control for the Shared Email EAP. Ignored unless the account has the Shared Email EAP enabled. Mutually exclusive with `auto_ownership`; requests that supply both keys are rejected. */
2936
3043
  export type UserIdentityInputOwnership = "owned" | "shared";
2937
3044
  export declare const UserIdentityInputOwnership: any;
2938
3045
  export type UserIdentityInputType = "email" | "twitter" | "facebook" | "google" | "phone_number" | "agent_forwarding" | "any_channel" | "foreign" | "sdk" | "messaging";
@@ -2941,9 +3048,9 @@ export declare const UserIdentityInputType: any;
2941
3048
  export type UserIdentityInputVerificationMethod = "none" | "low" | "sso" | "embed" | "full";
2942
3049
  export declare const UserIdentityInputVerificationMethod: any;
2943
3050
  export interface UserIdentityInput {
2944
- /** Write-only ownership control for the Shared Email EAP. When true, attempts `owned` first and falls back to `shared` on an ownership conflict. Ignored unless the account has the Shared Email EAP enabled. */
3051
+ /** Write-only ownership control for the Shared Email EAP. When true, attempts `owned` first and falls back to `shared` on an ownership conflict. Ignored unless the account has the Shared Email EAP enabled. Mutually exclusive with `ownership`; requests that supply both keys are rejected. */
2945
3052
  auto_ownership?: boolean;
2946
- /** Write-only ownership control for the Shared Email EAP. Ignored unless the account has the Shared Email EAP enabled. */
3053
+ /** Write-only ownership control for the Shared Email EAP. Ignored unless the account has the Shared Email EAP enabled. Mutually exclusive with `auto_ownership`; requests that supply both keys are rejected. */
2947
3054
  ownership?: UserIdentityInputOwnership | (string & {});
2948
3055
  /** If the identity is the primary identity. Writable only when creating, not when updating. */
2949
3056
  primary?: boolean;
@@ -3204,6 +3311,9 @@ export declare const OrganizationObjectInputOrganizationFieldsMap: S.Schema<Orga
3204
3311
  /** The tags of the organization */
3205
3312
  export type OrganizationObjectInputTagsList = Array<string>;
3206
3313
  export declare const OrganizationObjectInputTagsList: S.Schema<OrganizationObjectInputTagsList>;
3314
+ /** Which tickets end users in this organization can see. Possible values are "restricted" or "organization". Takes precedence over the `shared_tickets` property. */
3315
+ export type OrganizationObjectInputTicketRestriction = "restricted" | "organization";
3316
+ export declare const OrganizationObjectInputTicketRestriction: any;
3207
3317
  export interface OrganizationObjectInput {
3208
3318
  /** Any details obout the organization, such as the address */
3209
3319
  details?: string | null;
@@ -3223,10 +3333,12 @@ export interface OrganizationObjectInput {
3223
3333
  organization_fields?: OrganizationObjectInputOrganizationFieldsMap | null;
3224
3334
  /** End users in this organization are able to comment on each other's tickets */
3225
3335
  shared_comments?: boolean;
3226
- /** End users in this organization are able to see each other's tickets */
3336
+ /** 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. */
3227
3337
  shared_tickets?: boolean;
3228
3338
  /** The tags of the organization */
3229
3339
  tags?: OrganizationObjectInputTagsList;
3340
+ /** Which tickets end users in this organization can see. Possible values are "restricted" or "organization". Takes precedence over the `shared_tickets` property. */
3341
+ ticket_restriction?: OrganizationObjectInputTicketRestriction | (string & {});
3230
3342
  }
3231
3343
  export declare const OrganizationObjectInput: S.Schema<OrganizationObjectInput>;
3232
3344
  export interface CreateOrganizationRequest {
@@ -3675,6 +3787,77 @@ export interface SLAPolicyResponse {
3675
3787
  sla_policy?: SLAPolicyObject;
3676
3788
  }
3677
3789
  export declare const SLAPolicyResponse: S.Schema<SLAPolicyResponse>;
3790
+ export interface CreateSubticketRequestSubticketComment {
3791
+ /** The first comment body */
3792
+ body: string;
3793
+ /** Whether the first comment is public. Defaults to false. */
3794
+ public?: boolean;
3795
+ }
3796
+ export declare const CreateSubticketRequestSubticketComment: S.Schema<CreateSubticketRequestSubticketComment>;
3797
+ /** The initial status of the subticket. Supported values are new, open, pending, and hold. */
3798
+ export type CreateSubticketRequestSubticketStatus = "new" | "open" | "pending" | "hold";
3799
+ export declare const CreateSubticketRequestSubticketStatus: any;
3800
+ export interface CreateSubticketRequestSubticket {
3801
+ /** The id of the assignee */
3802
+ assignee_id?: number;
3803
+ comment: CreateSubticketRequestSubticketComment;
3804
+ /** The id of the requester. Defaults to the current user when omitted. */
3805
+ requester_id?: number;
3806
+ /** The initial status of the subticket. Supported values are new, open, pending, and hold. */
3807
+ status?: CreateSubticketRequestSubticketStatus | (string & {});
3808
+ /** The subject of the subticket */
3809
+ subject: string;
3810
+ }
3811
+ export declare const CreateSubticketRequestSubticket: S.Schema<CreateSubticketRequestSubticket>;
3812
+ export interface CreateSubticketRequest {
3813
+ /** The ID of the ticket */
3814
+ ticket_id: number;
3815
+ /** The id of the task item */
3816
+ task_item_id: string;
3817
+ subticket: CreateSubticketRequestSubticket;
3818
+ }
3819
+ export declare const CreateSubticketRequest: S.Schema<CreateSubticketRequest>;
3820
+ export interface SubticketCreateResponseSubticket {
3821
+ /** The id of the created subticket */
3822
+ id?: number;
3823
+ }
3824
+ export declare const SubticketCreateResponseSubticket: S.Schema<SubticketCreateResponseSubticket>;
3825
+ export interface TaskObjectLinkUserObject {
3826
+ /** The id of the user */
3827
+ id?: number;
3828
+ /** The name of the user */
3829
+ name?: string;
3830
+ }
3831
+ export declare const TaskObjectLinkUserObject: S.Schema<TaskObjectLinkUserObject>;
3832
+ /** The linked object type */
3833
+ export type TaskObjectLinkObjectObjectType = "Ticket";
3834
+ export declare const TaskObjectLinkObjectObjectType: any;
3835
+ export interface TaskObjectLinkObject {
3836
+ /** The time the link was created */
3837
+ created_at?: string;
3838
+ created_by?: TaskObjectLinkUserObject;
3839
+ /** The id of the task object link */
3840
+ id?: string;
3841
+ /** The linked ticket status. The value is null when the linked ticket is private. */
3842
+ linked_object_status?: string | null;
3843
+ /** The linked ticket id. The value is null when the linked ticket is private. */
3844
+ nice_id?: number | null;
3845
+ /** The linked object type */
3846
+ object_type?: TaskObjectLinkObjectObjectType;
3847
+ /** Whether the linked ticket is private to the requester */
3848
+ private?: boolean;
3849
+ /** The id of the linked task item */
3850
+ task_item_instance_id?: string;
3851
+ /** The time the link was last updated */
3852
+ updated_at?: string;
3853
+ updated_by?: TaskObjectLinkUserObject;
3854
+ }
3855
+ export declare const TaskObjectLinkObject: S.Schema<TaskObjectLinkObject>;
3856
+ export interface SubticketCreateResponse {
3857
+ subticket?: SubticketCreateResponseSubticket;
3858
+ task_object_link?: TaskObjectLinkObject;
3859
+ }
3860
+ export declare const SubticketCreateResponse: S.Schema<SubticketCreateResponse>;
3678
3861
  export interface CreateSupportAddressRequest {
3679
3862
  }
3680
3863
  export declare const CreateSupportAddressRequest: S.Schema<CreateSupportAddressRequest>;
@@ -4268,11 +4451,11 @@ export interface TicketObjectInput {
4268
4451
  }
4269
4452
  export declare const TicketObjectInput: S.Schema<TicketObjectInput>;
4270
4453
  export interface CreateTicketRequest {
4271
- /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/api-reference/ticketing/tickets/tickets/#sideloading). */
4454
+ /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/documentation/api-basics/working-with-data/side_loading/#supported-endpoints). */
4272
4455
  include?: string;
4273
4456
  /** System metadata for the request, typically set by internal clients */
4274
4457
  system_metadata?: CreateTicketRequestSystemMetadataMap;
4275
- ticket?: TicketObjectInput;
4458
+ ticket: TicketObjectInput;
4276
4459
  }
4277
4460
  export declare const CreateTicketRequest: S.Schema<CreateTicketRequest>;
4278
4461
  export interface TicketResponseOutput {
@@ -4296,7 +4479,7 @@ export interface CreateTicketContentPinRequest {
4296
4479
  export declare const CreateTicketContentPinRequest: S.Schema<CreateTicketContentPinRequest>;
4297
4480
  export interface TicketContentPin {
4298
4481
  /** The ID of the account that owns the content pin. */
4299
- account_id?: string;
4482
+ account_id?: number;
4300
4483
  /** The ID of the content that is pinned. */
4301
4484
  content_id?: string;
4302
4485
  /** The type of content that is pinned. Example: external_content */
@@ -4308,11 +4491,15 @@ export interface TicketContentPin {
4308
4491
  /** The locale of the content pin. */
4309
4492
  locale?: string | null;
4310
4493
  /** The ID of the ticket associated with the content pin. */
4311
- ticket_id?: string;
4494
+ ticket_id?: number;
4312
4495
  /** The URL to access the pinned content. */
4313
4496
  url?: string;
4314
4497
  }
4315
4498
  export declare const TicketContentPin: S.Schema<TicketContentPin>;
4499
+ export interface CreateTicketContentPinResponse {
4500
+ ticket_content_pin?: TicketContentPin;
4501
+ }
4502
+ export declare const CreateTicketContentPinResponse: S.Schema<CreateTicketContentPinResponse>;
4316
4503
  /** An option for a "tagger" or "multiselect" custom ticket field. */
4317
4504
  export interface TicketFieldOptionInput {
4318
4505
  /** Whether the option is selected by default */
@@ -4468,6 +4655,8 @@ export interface TicketFieldObject {
4468
4655
  editable_in_portal?: boolean;
4469
4656
  /** Automatically assigned when created */
4470
4657
  id?: number;
4658
+ /** A unique key that identifies the ticket field. System-managed fields use a `standard::` prefix. */
4659
+ key?: string | null;
4471
4660
  /** Present for [multi_lookup](/api-reference/ticketing/lookup_relationships/lookup_relationships/#about-multi-lookup-relationship-fields) fields only. The maximum number of target records the field accepts. Defaults to 20 */
4472
4661
  max_selections?: number;
4473
4662
  /** The relative position of the ticket field on a ticket. Note that for accounts with ticket forms, positions are controlled by the different forms */
@@ -4986,6 +5175,74 @@ export interface CreateUserOrganizationMembershipRequest {
4986
5175
  user_id: number;
4987
5176
  }
4988
5177
  export declare const CreateUserOrganizationMembershipRequest: S.Schema<CreateUserOrganizationMembershipRequest>;
5178
+ export type CreateUserSuspensionRequestSuspensionReason = "abusive_language" | "uncooperative" | "impersonating_others" | "other_reason";
5179
+ export declare const CreateUserSuspensionRequestSuspensionReason: any;
5180
+ export type CreateUserSuspensionRequestSuspensionSuspendedChannelsItem = "all" | "messaging";
5181
+ export declare const CreateUserSuspensionRequestSuspensionSuspendedChannelsItem: any;
5182
+ /** Only accepted when the account has the messaging channel suspension feature enabled. See [Announcing user suspension from messaging channels only](https://support.zendesk.com/hc/en-us/articles/10575252020250-Announcing-user-suspension-from-messaging-channels-only). */
5183
+ export type CreateUserSuspensionRequestSuspensionSuspendedChannelsList = Array<CreateUserSuspensionRequestSuspensionSuspendedChannelsItem | (string & {})>;
5184
+ export declare const CreateUserSuspensionRequestSuspensionSuspendedChannelsList: S.Schema<CreateUserSuspensionRequestSuspensionSuspendedChannelsList>;
5185
+ export interface CreateUserSuspensionRequestSuspension {
5186
+ additional_comments?: string;
5187
+ reason?: CreateUserSuspensionRequestSuspensionReason | (string & {});
5188
+ /** The Zendesk resource name (ZRN) of the system actor creating the suspension, such as the messaging trigger subsystem. Only usable by system users; agents don't set this. */
5189
+ suspended_by_actor_zrn?: string;
5190
+ /** Only accepted when the account has the messaging channel suspension feature enabled. See [Announcing user suspension from messaging channels only](https://support.zendesk.com/hc/en-us/articles/10575252020250-Announcing-user-suspension-from-messaging-channels-only). */
5191
+ suspended_channels?: CreateUserSuspensionRequestSuspensionSuspendedChannelsList;
5192
+ }
5193
+ export declare const CreateUserSuspensionRequestSuspension: S.Schema<CreateUserSuspensionRequestSuspension>;
5194
+ export interface CreateUserSuspensionRequest {
5195
+ /** The id of the user */
5196
+ user_id: number;
5197
+ suspension: CreateUserSuspensionRequestSuspension;
5198
+ }
5199
+ export declare const CreateUserSuspensionRequest: S.Schema<CreateUserSuspensionRequest>;
5200
+ /** Not required on create/update; `null` when omitted. */
5201
+ export type SuspensionObjectReason = "abusive_language" | "uncooperative" | "impersonating_others" | "other_reason";
5202
+ export declare const SuspensionObjectReason: any;
5203
+ export type SuspendedByAgentSummaryObject = QueueObjectPrimaryGroupsGroupsItem;
5204
+ export declare const SuspendedByAgentSummaryObject: S.Schema<QueueObjectPrimaryGroupsGroupsItem>;
5205
+ /** The type of actor that created or updated the suspension. */
5206
+ export type SuspendedByActorObjectZrnType = "agent" | "messaging_trigger";
5207
+ export declare const SuspendedByActorObjectZrnType: any;
5208
+ /** The actor that created or last updated the suspension. Present for both human agents and system actors (for example, the messaging trigger subsystem). Empty (`{}`) when the suspension has no recorded actor. */
5209
+ export interface SuspendedByActorObject {
5210
+ /** The actor's unique identifier. A numeric user id (as a string) for agents, or a ZRN unique ID for system actors. */
5211
+ id?: string;
5212
+ /** The type of actor that created or updated the suspension. */
5213
+ zrn_type?: SuspendedByActorObjectZrnType;
5214
+ }
5215
+ export declare const SuspendedByActorObject: S.Schema<SuspendedByActorObject>;
5216
+ export type SuspensionObjectSuspendedChannelsItem = "all" | "messaging";
5217
+ export declare const SuspensionObjectSuspendedChannelsItem: any;
5218
+ /** Only present when the account has the messaging channel suspension feature enabled. See [Announcing user suspension from messaging channels only](https://support.zendesk.com/hc/en-us/articles/10575252020250-Announcing-user-suspension-from-messaging-channels-only). */
5219
+ export type SuspensionObjectSuspendedChannelsList = Array<SuspensionObjectSuspendedChannelsItem>;
5220
+ export declare const SuspensionObjectSuspendedChannelsList: S.Schema<SuspensionObjectSuspendedChannelsList>;
5221
+ export interface SuspendedUserSummaryObject {
5222
+ email?: string;
5223
+ id?: number;
5224
+ name?: string;
5225
+ }
5226
+ export declare const SuspendedUserSummaryObject: S.Schema<SuspendedUserSummaryObject>;
5227
+ export interface SuspensionObject {
5228
+ additional_comments?: string | null;
5229
+ /** Automatically assigned when the suspension is created */
5230
+ id?: string;
5231
+ /** Not required on create/update; `null` when omitted. */
5232
+ reason?: SuspensionObjectReason | null;
5233
+ suspended_at?: string;
5234
+ /** The agent who created the suspension. Empty (`{}`) when the suspension was created internally by Zendesk, not by an agent. */
5235
+ suspended_by?: QueueObjectPrimaryGroupsGroupsItem;
5236
+ suspended_by_actor?: SuspendedByActorObject;
5237
+ /** Only present when the account has the messaging channel suspension feature enabled. See [Announcing user suspension from messaging channels only](https://support.zendesk.com/hc/en-us/articles/10575252020250-Announcing-user-suspension-from-messaging-channels-only). */
5238
+ suspended_channels?: SuspensionObjectSuspendedChannelsList;
5239
+ suspended_user?: SuspendedUserSummaryObject;
5240
+ }
5241
+ export declare const SuspensionObject: S.Schema<SuspensionObject>;
5242
+ export interface SuspensionResponse {
5243
+ suspension: SuspensionObject;
5244
+ }
5245
+ export declare const SuspensionResponse: S.Schema<SuspensionResponse>;
4989
5246
  export interface CreateViewRequest {
4990
5247
  }
4991
5248
  export declare const CreateViewRequest: S.Schema<CreateViewRequest>;
@@ -5417,16 +5674,14 @@ export declare const DeleteItamAssetTypeRequest: S.Schema<DeleteItamAssetTypeReq
5417
5674
  export interface DeleteItamAssetTypeResponse {
5418
5675
  }
5419
5676
  export declare const DeleteItamAssetTypeResponse: S.Schema<DeleteItamAssetTypeResponse>;
5420
- export interface DeleteItamAssetTypeFieldRequest {
5421
- /** The id of the asset type */
5422
- asset_type_id: string;
5423
- /** The id of the asset field */
5424
- asset_type_field_id: string;
5677
+ export interface DeleteItamFieldRequest {
5678
+ /** The ID of the asset field */
5679
+ id: number;
5425
5680
  }
5426
- export declare const DeleteItamAssetTypeFieldRequest: S.Schema<DeleteItamAssetTypeFieldRequest>;
5427
- export interface DeleteItamAssetTypeFieldResponse {
5681
+ export declare const DeleteItamFieldRequest: S.Schema<DeleteItamFieldRequest>;
5682
+ export interface DeleteItamFieldResponse {
5428
5683
  }
5429
- export declare const DeleteItamAssetTypeFieldResponse: S.Schema<DeleteItamAssetTypeFieldResponse>;
5684
+ export declare const DeleteItamFieldResponse: S.Schema<DeleteItamFieldResponse>;
5430
5685
  export interface DeleteItamLocationRequest {
5431
5686
  /** The id of the location */
5432
5687
  location_id: string;
@@ -5621,6 +5876,14 @@ export declare const DeleteTargetRequest: S.Schema<DeleteTargetRequest>;
5621
5876
  export interface DeleteTargetResponse {
5622
5877
  }
5623
5878
  export declare const DeleteTargetResponse: S.Schema<DeleteTargetResponse>;
5879
+ export interface DeleteTaskListRequest {
5880
+ /** The id of the task list */
5881
+ task_list_id: string;
5882
+ }
5883
+ export declare const DeleteTaskListRequest: S.Schema<DeleteTaskListRequest>;
5884
+ export interface DeleteTaskListResponse {
5885
+ }
5886
+ export declare const DeleteTaskListResponse: S.Schema<DeleteTaskListResponse>;
5624
5887
  export interface DeleteTaskListTemplateRequest {
5625
5888
  /** The id of the task list template */
5626
5889
  task_list_template_id: string;
@@ -5642,6 +5905,10 @@ export interface DeleteTicketContentPinRequest {
5642
5905
  content_pin_id: string;
5643
5906
  }
5644
5907
  export declare const DeleteTicketContentPinRequest: S.Schema<DeleteTicketContentPinRequest>;
5908
+ export interface DeleteTicketContentPinResponse {
5909
+ ticket_content_pin?: TicketContentPin;
5910
+ }
5911
+ export declare const DeleteTicketContentPinResponse: S.Schema<DeleteTicketContentPinResponse>;
5645
5912
  export interface DeleteTicketFieldRequest {
5646
5913
  /** The ID of the ticket field */
5647
5914
  ticket_field_id: number;
@@ -5775,6 +6042,14 @@ export declare const DeleteUserOrganizationMembershipRequest: S.Schema<DeleteUse
5775
6042
  export interface DeleteUserOrganizationMembershipResponse {
5776
6043
  }
5777
6044
  export declare const DeleteUserOrganizationMembershipResponse: S.Schema<DeleteUserOrganizationMembershipResponse>;
6045
+ export interface DeleteUserSuspensionRequest {
6046
+ /** The id of the user */
6047
+ user_id: number;
6048
+ }
6049
+ export declare const DeleteUserSuspensionRequest: S.Schema<DeleteUserSuspensionRequest>;
6050
+ export interface DeleteUserSuspensionResponse {
6051
+ }
6052
+ export declare const DeleteUserSuspensionResponse: S.Schema<DeleteUserSuspensionResponse>;
5778
6053
  export interface DeleteUserTagsRequest {
5779
6054
  /** The id of the user */
5780
6055
  user_id: number;
@@ -6038,7 +6313,7 @@ export interface ExportSearchResultsRequest {
6038
6313
  /** The cursor token for fetching the next page of results. */
6039
6314
  page_after_?: string;
6040
6315
  /** The object type returned by the export query. Can be `ticket`, `organization`, `user`, or `group`. */
6041
- filter_type_?: string;
6316
+ filter_type_: string;
6042
6317
  /** Sideloads to include in the response. Accepts a comma-separated list of values. The available sideloads depend on the search result types. */
6043
6318
  include?: string;
6044
6319
  }
@@ -6141,20 +6416,91 @@ export interface CustomObjectRecordsFilteredSearchRequestBasic {
6141
6416
  filter?: CustomObjectRecordFilteredSearchCondition;
6142
6417
  }
6143
6418
  export declare const CustomObjectRecordsFilteredSearchRequestBasic: S.Schema<CustomObjectRecordsFilteredSearchRequestBasic>;
6144
- export type CustomObjectRecordFilterExpressionCase1AndList = Array<CustomObjectRecordFilterExpression>;
6419
+ export type CustomObjectRecordFilterExpressionLevel1FieldKeyValueCase2Item = string | number;
6420
+ export declare const CustomObjectRecordFilterExpressionLevel1FieldKeyValueCase2Item: S.Schema<CustomObjectRecordFilterExpressionLevel1FieldKeyValueCase2Item>;
6421
+ export type CustomObjectRecordFilterExpressionLevel1FieldKeyValueCase2List = Array<CustomObjectRecordFilterExpressionLevel1FieldKeyValueCase2Item>;
6422
+ export declare const CustomObjectRecordFilterExpressionLevel1FieldKeyValueCase2List: S.Schema<CustomObjectRecordFilterExpressionLevel1FieldKeyValueCase2List>;
6423
+ export type CustomObjectRecordFilterExpressionLevel1FieldKeyValue = string | number | CustomObjectRecordFilterExpressionLevel1FieldKeyValueCase2List;
6424
+ export declare const CustomObjectRecordFilterExpressionLevel1FieldKeyValue: S.Schema<CustomObjectRecordFilterExpressionLevel1FieldKeyValue>;
6425
+ export interface CustomObjectRecordFilterExpressionLevel1FieldKey {
6426
+ operator?: string;
6427
+ value?: CustomObjectRecordFilterExpressionLevel1FieldKeyValue;
6428
+ }
6429
+ export declare const CustomObjectRecordFilterExpressionLevel1FieldKey: S.Schema<CustomObjectRecordFilterExpressionLevel1FieldKey>;
6430
+ export interface CustomObjectRecordFilterExpressionLevel1 {
6431
+ field_key?: CustomObjectRecordFilterExpressionLevel1FieldKey | null;
6432
+ }
6433
+ export declare const CustomObjectRecordFilterExpressionLevel1: S.Schema<CustomObjectRecordFilterExpressionLevel1>;
6434
+ export type CustomObjectRecordFilterExpressionLevel2Case1AndList = Array<CustomObjectRecordFilterExpressionLevel1>;
6435
+ export declare const CustomObjectRecordFilterExpressionLevel2Case1AndList: S.Schema<CustomObjectRecordFilterExpressionLevel2Case1AndList>;
6436
+ export interface CustomObjectRecordFilterExpressionLevel2Case1 {
6437
+ _and: CustomObjectRecordFilterExpressionLevel2Case1AndList;
6438
+ }
6439
+ export declare const CustomObjectRecordFilterExpressionLevel2Case1: S.Schema<CustomObjectRecordFilterExpressionLevel2Case1>;
6440
+ export type CustomObjectRecordFilterExpressionLevel2Case2OrList = Array<CustomObjectRecordFilterExpressionLevel1>;
6441
+ export declare const CustomObjectRecordFilterExpressionLevel2Case2OrList: S.Schema<CustomObjectRecordFilterExpressionLevel2Case2OrList>;
6442
+ export interface CustomObjectRecordFilterExpressionLevel2Case2 {
6443
+ _or: CustomObjectRecordFilterExpressionLevel2Case2OrList;
6444
+ }
6445
+ export declare const CustomObjectRecordFilterExpressionLevel2Case2: S.Schema<CustomObjectRecordFilterExpressionLevel2Case2>;
6446
+ export type CustomObjectRecordFilterExpressionLevel2 = CustomObjectRecordFilterExpressionLevel1 | CustomObjectRecordFilterExpressionLevel2Case1 | CustomObjectRecordFilterExpressionLevel2Case2;
6447
+ export declare const CustomObjectRecordFilterExpressionLevel2: S.Schema<CustomObjectRecordFilterExpressionLevel2>;
6448
+ export type CustomObjectRecordFilterExpressionLevel3Case1AndList = Array<CustomObjectRecordFilterExpressionLevel2>;
6449
+ export declare const CustomObjectRecordFilterExpressionLevel3Case1AndList: S.Schema<CustomObjectRecordFilterExpressionLevel3Case1AndList>;
6450
+ export interface CustomObjectRecordFilterExpressionLevel3Case1 {
6451
+ _and: CustomObjectRecordFilterExpressionLevel3Case1AndList;
6452
+ }
6453
+ export declare const CustomObjectRecordFilterExpressionLevel3Case1: S.Schema<CustomObjectRecordFilterExpressionLevel3Case1>;
6454
+ export type CustomObjectRecordFilterExpressionLevel3Case2OrList = Array<CustomObjectRecordFilterExpressionLevel2>;
6455
+ export declare const CustomObjectRecordFilterExpressionLevel3Case2OrList: S.Schema<CustomObjectRecordFilterExpressionLevel3Case2OrList>;
6456
+ export interface CustomObjectRecordFilterExpressionLevel3Case2 {
6457
+ _or: CustomObjectRecordFilterExpressionLevel3Case2OrList;
6458
+ }
6459
+ export declare const CustomObjectRecordFilterExpressionLevel3Case2: S.Schema<CustomObjectRecordFilterExpressionLevel3Case2>;
6460
+ export type CustomObjectRecordFilterExpressionLevel3 = CustomObjectRecordFilterExpressionLevel1 | CustomObjectRecordFilterExpressionLevel3Case1 | CustomObjectRecordFilterExpressionLevel3Case2;
6461
+ export declare const CustomObjectRecordFilterExpressionLevel3: S.Schema<CustomObjectRecordFilterExpressionLevel3>;
6462
+ export type CustomObjectRecordFilterExpressionLevel4Case1AndList = Array<CustomObjectRecordFilterExpressionLevel3>;
6463
+ export declare const CustomObjectRecordFilterExpressionLevel4Case1AndList: S.Schema<CustomObjectRecordFilterExpressionLevel4Case1AndList>;
6464
+ export interface CustomObjectRecordFilterExpressionLevel4Case1 {
6465
+ _and: CustomObjectRecordFilterExpressionLevel4Case1AndList;
6466
+ }
6467
+ export declare const CustomObjectRecordFilterExpressionLevel4Case1: S.Schema<CustomObjectRecordFilterExpressionLevel4Case1>;
6468
+ export type CustomObjectRecordFilterExpressionLevel4Case2OrList = Array<CustomObjectRecordFilterExpressionLevel3>;
6469
+ export declare const CustomObjectRecordFilterExpressionLevel4Case2OrList: S.Schema<CustomObjectRecordFilterExpressionLevel4Case2OrList>;
6470
+ export interface CustomObjectRecordFilterExpressionLevel4Case2 {
6471
+ _or: CustomObjectRecordFilterExpressionLevel4Case2OrList;
6472
+ }
6473
+ export declare const CustomObjectRecordFilterExpressionLevel4Case2: S.Schema<CustomObjectRecordFilterExpressionLevel4Case2>;
6474
+ export type CustomObjectRecordFilterExpressionLevel4 = CustomObjectRecordFilterExpressionLevel1 | CustomObjectRecordFilterExpressionLevel4Case1 | CustomObjectRecordFilterExpressionLevel4Case2;
6475
+ export declare const CustomObjectRecordFilterExpressionLevel4: S.Schema<CustomObjectRecordFilterExpressionLevel4>;
6476
+ export type CustomObjectRecordFilterExpressionLevel5Case1AndList = Array<CustomObjectRecordFilterExpressionLevel4>;
6477
+ export declare const CustomObjectRecordFilterExpressionLevel5Case1AndList: S.Schema<CustomObjectRecordFilterExpressionLevel5Case1AndList>;
6478
+ export interface CustomObjectRecordFilterExpressionLevel5Case1 {
6479
+ _and: CustomObjectRecordFilterExpressionLevel5Case1AndList;
6480
+ }
6481
+ export declare const CustomObjectRecordFilterExpressionLevel5Case1: S.Schema<CustomObjectRecordFilterExpressionLevel5Case1>;
6482
+ export type CustomObjectRecordFilterExpressionLevel5Case2OrList = Array<CustomObjectRecordFilterExpressionLevel4>;
6483
+ export declare const CustomObjectRecordFilterExpressionLevel5Case2OrList: S.Schema<CustomObjectRecordFilterExpressionLevel5Case2OrList>;
6484
+ export interface CustomObjectRecordFilterExpressionLevel5Case2 {
6485
+ _or: CustomObjectRecordFilterExpressionLevel5Case2OrList;
6486
+ }
6487
+ export declare const CustomObjectRecordFilterExpressionLevel5Case2: S.Schema<CustomObjectRecordFilterExpressionLevel5Case2>;
6488
+ export type CustomObjectRecordFilterExpressionLevel5 = CustomObjectRecordFilterExpressionLevel1 | CustomObjectRecordFilterExpressionLevel5Case1 | CustomObjectRecordFilterExpressionLevel5Case2;
6489
+ export declare const CustomObjectRecordFilterExpressionLevel5: S.Schema<CustomObjectRecordFilterExpressionLevel5>;
6490
+ export type CustomObjectRecordFilterExpressionCase1AndList = Array<CustomObjectRecordFilterExpressionLevel5>;
6145
6491
  export declare const CustomObjectRecordFilterExpressionCase1AndList: S.Schema<CustomObjectRecordFilterExpressionCase1AndList>;
6146
6492
  export interface CustomObjectRecordFilterExpressionCase1 {
6147
6493
  _and: CustomObjectRecordFilterExpressionCase1AndList;
6148
6494
  }
6149
6495
  export declare const CustomObjectRecordFilterExpressionCase1: S.Schema<CustomObjectRecordFilterExpressionCase1>;
6150
- export type CustomObjectRecordFilterExpressionCase2OrList = Array<CustomObjectRecordFilterExpression>;
6496
+ export type CustomObjectRecordFilterExpressionCase2OrList = Array<CustomObjectRecordFilterExpressionLevel5>;
6151
6497
  export declare const CustomObjectRecordFilterExpressionCase2OrList: S.Schema<CustomObjectRecordFilterExpressionCase2OrList>;
6152
6498
  export interface CustomObjectRecordFilterExpressionCase2 {
6153
6499
  _or: CustomObjectRecordFilterExpressionCase2OrList;
6154
6500
  }
6155
6501
  export declare const CustomObjectRecordFilterExpressionCase2: S.Schema<CustomObjectRecordFilterExpressionCase2>;
6156
6502
  /** A recursive filter expression: either a single comparison object (`{ "<field>": { "$<operator>": <value> } }`) or a logical group combining child expressions with `$and` / `$or`. Maximum nesting depth is 5 (outermost group counts as level 1). */
6157
- export type CustomObjectRecordFilterExpression = CustomObjectRecordFilteredSearchCondition | CustomObjectRecordFilterExpressionCase1 | CustomObjectRecordFilterExpressionCase2;
6503
+ export type CustomObjectRecordFilterExpression = CustomObjectRecordFilterExpressionLevel1 | CustomObjectRecordFilterExpressionCase1 | CustomObjectRecordFilterExpressionCase2;
6158
6504
  export declare const CustomObjectRecordFilterExpression: S.Schema<CustomObjectRecordFilterExpression>;
6159
6505
  export type CustomObjectRecordsFilteredSearchRequestComplexFilterAndList = Array<CustomObjectRecordFilterExpression>;
6160
6506
  export declare const CustomObjectRecordsFilteredSearchRequestComplexFilterAndList: S.Schema<CustomObjectRecordsFilteredSearchRequestComplexFilterAndList>;
@@ -6297,6 +6643,7 @@ export interface AccountSettingsEmailObject {
6297
6643
  html_mail_template?: string;
6298
6644
  mail_delimiter?: string;
6299
6645
  modern_email_template?: boolean;
6646
+ /** Whether a separate ticket is created for each support address that receives the same inbound email. [Learn about multi-recipient email tickets](https://support.zendesk.com/hc/en-us/articles/10584454777370) */
6300
6647
  multi_recipient_email_tickets?: boolean;
6301
6648
  no_mail_delimiter?: boolean;
6302
6649
  personalized_replies?: boolean;
@@ -6369,6 +6716,7 @@ export interface AccountSettingsAgentObject {
6369
6716
  agent_workspace?: boolean;
6370
6717
  aw_self_serve_migration_enabled?: boolean;
6371
6718
  focus_mode?: boolean;
6719
+ /** Deprecated. Idle timeout is now managed via Admin Center status timeout settings. */
6372
6720
  idle_timeout_enabled?: boolean;
6373
6721
  unified_agent_statuses?: boolean;
6374
6722
  }
@@ -6966,7 +7314,7 @@ export interface OAuthTokenResponse {
6966
7314
  }
6967
7315
  export declare const OAuthTokenResponse: S.Schema<OAuthTokenResponse>;
6968
7316
  export interface GetCurrentUserRequest {
6969
- /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/api-reference/ticketing/users/users/#sideloading). */
7317
+ /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/documentation/api-basics/working-with-data/side_loading/#supported-endpoints). */
6970
7318
  include?: string;
6971
7319
  }
6972
7320
  export declare const GetCurrentUserRequest: S.Schema<GetCurrentUserRequest>;
@@ -7416,9 +7764,14 @@ export interface GetItamAssetTypeFieldRequest {
7416
7764
  /** The id of the asset type */
7417
7765
  asset_type_id: string;
7418
7766
  /** The id of the asset field */
7419
- asset_type_field_id: string;
7767
+ asset_type_field_id: number;
7420
7768
  }
7421
7769
  export declare const GetItamAssetTypeFieldRequest: S.Schema<GetItamAssetTypeFieldRequest>;
7770
+ export interface GetItamFieldRequest {
7771
+ /** The ID of the asset field */
7772
+ id: number;
7773
+ }
7774
+ export declare const GetItamFieldRequest: S.Schema<GetItamFieldRequest>;
7422
7775
  export interface GetItamLocationRequest {
7423
7776
  /** The id of the location */
7424
7777
  location_id: string;
@@ -7564,7 +7917,7 @@ export interface GetManyUsersRequest {
7564
7917
  include_deleted?: boolean;
7565
7918
  /** When brand separation is enabled and `external_ids` is provided, scopes the lookup to users belonging to the specified brand. Only applicable when the account has brand separation enabled. Omitting `brand_id` always uses account scope (0), regardless of account or Agent Workspace defaults. Accepted values when used with `external_ids`: * 0 — restrict the lookup to account-scoped (brand-less) users only. * A numeric brand id — if the brand has user separation enabled, return only users belonging to that brand; account-scoped agents and admins are excluded. If the brand does not have user separation enabled, the request resolves to account scope (0), including account-scoped agents and end users. * "all" — invalid for `show_many` lookups. When `ids` is provided instead of `external_ids`, numeric brand scopes are accepted but filtering is not applied because user IDs are globally unique. `brand_id=all` is rejected consistently with the other many-user endpoints. */
7566
7919
  brand_id?: number;
7567
- /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/api-reference/ticketing/users/users/#sideloading). */
7920
+ /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/documentation/api-basics/working-with-data/side_loading/#supported-endpoints). */
7568
7921
  include?: string;
7569
7922
  }
7570
7923
  export declare const GetManyUsersRequest: S.Schema<GetManyUsersRequest>;
@@ -8181,7 +8534,7 @@ export declare const TasksByTaskListTemplateIdResponse: S.Schema<TasksByTaskList
8181
8534
  export interface GetTicketRequest {
8182
8535
  /** The ID of the ticket */
8183
8536
  ticket_id: number;
8184
- /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/api-reference/ticketing/tickets/tickets/#sideloading). */
8537
+ /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/documentation/api-basics/working-with-data/side_loading/#supported-endpoints). */
8185
8538
  include?: string;
8186
8539
  /** When true, returns a reduced ticket payload (omits null custom fields). */
8187
8540
  reduced_payload_size?: boolean;
@@ -8383,7 +8736,7 @@ export declare const TriggerLimitsResponse: S.Schema<TriggerLimitsResponse>;
8383
8736
  export interface GetUserRequest {
8384
8737
  /** The id of the user */
8385
8738
  user_id: number;
8386
- /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/api-reference/ticketing/users/users/#sideloading). */
8739
+ /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/documentation/api-basics/working-with-data/side_loading/#supported-endpoints). */
8387
8740
  include?: string;
8388
8741
  }
8389
8742
  export declare const GetUserRequest: S.Schema<GetUserRequest>;
@@ -8498,6 +8851,11 @@ export interface UserRelatedResponse {
8498
8851
  user_related?: UserRelatedObject;
8499
8852
  }
8500
8853
  export declare const UserRelatedResponse: S.Schema<UserRelatedResponse>;
8854
+ export interface GetUserSuspensionRequest {
8855
+ /** The id of the user */
8856
+ user_id: number;
8857
+ }
8858
+ export declare const GetUserSuspensionRequest: S.Schema<GetUserSuspensionRequest>;
8501
8859
  export interface GetViewRequest {
8502
8860
  /** The ID of the view, or one of the string aliases `"incoming"`, `"my"`, or `"my_groups"`. */
8503
8861
  view_id: string;
@@ -8955,6 +9313,28 @@ export interface ItamAssetBulkJobResponse {
8955
9313
  job_status?: ItamAssetBulkJobResponseJobStatus;
8956
9314
  }
8957
9315
  export declare const ItamAssetBulkJobResponse: S.Schema<ItamAssetBulkJobResponse>;
9316
+ /** The object type to link. The only supported value is Ticket. */
9317
+ export type LinkExistingTicketRequestLinkObjectType = "Ticket";
9318
+ export declare const LinkExistingTicketRequestLinkObjectType: any;
9319
+ export interface LinkExistingTicketRequestLink {
9320
+ /** The id of the existing ticket to link */
9321
+ linked_object_id: string;
9322
+ /** The object type to link. The only supported value is Ticket. */
9323
+ object_type: LinkExistingTicketRequestLinkObjectType | (string & {});
9324
+ }
9325
+ export declare const LinkExistingTicketRequestLink: S.Schema<LinkExistingTicketRequestLink>;
9326
+ export interface LinkExistingTicketRequest {
9327
+ /** The ID of the ticket */
9328
+ ticket_id: number;
9329
+ /** The id of the task item */
9330
+ task_item_id: string;
9331
+ link: LinkExistingTicketRequestLink;
9332
+ }
9333
+ export declare const LinkExistingTicketRequest: S.Schema<LinkExistingTicketRequest>;
9334
+ export interface TaskObjectLinkResponse {
9335
+ task_object_link?: TaskObjectLinkObject;
9336
+ }
9337
+ export declare const TaskObjectLinkResponse: S.Schema<TaskObjectLinkResponse>;
8958
9338
  export interface ListAccessRuleDefinitionsRequest {
8959
9339
  /** The key of a custom object */
8960
9340
  custom_object_key: string;
@@ -9178,11 +9558,11 @@ export interface ActivitiesResponse {
9178
9558
  users?: ActivitiesResponseUsersList;
9179
9559
  }
9180
9560
  export declare const ActivitiesResponse: S.Schema<ActivitiesResponse>;
9181
- export interface ListAGentAttributeValuesRequest {
9561
+ export interface ListAgentAttributeValuesRequest {
9182
9562
  /** The id of the user */
9183
9563
  user_id: number;
9184
9564
  }
9185
- export declare const ListAGentAttributeValuesRequest: S.Schema<ListAGentAttributeValuesRequest>;
9565
+ export declare const ListAgentAttributeValuesRequest: S.Schema<ListAgentAttributeValuesRequest>;
9186
9566
  export type SkillBasedRoutingAttributeValuesResponseAttributeValuesList = Array<SkillBasedRoutingAttributeValueObject>;
9187
9567
  export declare const SkillBasedRoutingAttributeValuesResponseAttributeValuesList: S.Schema<SkillBasedRoutingAttributeValuesResponseAttributeValuesList>;
9188
9568
  export interface SkillBasedRoutingAttributeValuesResponse {
@@ -9287,6 +9667,8 @@ export declare const ApprovalRequestsListResponseApprovalRequestsItemDecisionsLi
9287
9667
  export type ApprovalRequestsListResponseApprovalRequestsItemOriginationType = "API_ORIGINATION" | "UI_ORIGINATION" | "TRIGGER_ORIGINATION" | "DATA_IMPORTER_ORIGINATION" | "TEMPLATE_ORIGINATION" | "ACTION_FLOW_ORIGINATION" | "UNKNOWN_ORIGINATION";
9288
9668
  export declare const ApprovalRequestsListResponseApprovalRequestsItemOriginationType: any;
9289
9669
  export interface ApprovalRequestsListResponseApprovalRequestsItem {
9670
+ /** Unique identifier (ULID) of the parent workflow instance. Parallel approval requests share the same ULID. */
9671
+ approval_workflow_instance_id?: string;
9290
9672
  assignee_group?: ApprovalRequestsListResponseApprovalRequestsItemAssigneeGroup | null;
9291
9673
  assignee_user?: ApprovalRequestsListResponseApprovalRequestsItemAssigneeUser | null;
9292
9674
  /** List of clarification messages exchanged on this approval request */
@@ -9380,6 +9762,8 @@ export interface SkillBasedRoutingAttributeValuesWithoutPriorityResponse {
9380
9762
  attribute_values?: SkillBasedRoutingAttributeValuesWithoutPriorityResponseAttributeValuesList;
9381
9763
  }
9382
9764
  export declare const SkillBasedRoutingAttributeValuesWithoutPriorityResponse: S.Schema<SkillBasedRoutingAttributeValuesWithoutPriorityResponse>;
9765
+ export type ListAuditLogsRequestIdsList = Array<number>;
9766
+ export declare const ListAuditLogsRequestIdsList: S.Schema<ListAuditLogsRequestIdsList>;
9383
9767
  export interface ListAuditLogsRequestPage {
9384
9768
  /** Cursor token for fetching next page */
9385
9769
  after?: string;
@@ -9390,6 +9774,8 @@ export interface ListAuditLogsRequestPage {
9390
9774
  }
9391
9775
  export declare const ListAuditLogsRequestPage: S.Schema<ListAuditLogsRequestPage>;
9392
9776
  export interface ListAuditLogsRequest {
9777
+ /** Filters audit logs by id. To specify multiple ids, repeat the `ids[]` parameter. For example, `?ids[]=1&ids[]=2` */
9778
+ ids__?: ListAuditLogsRequestIdsList;
9393
9779
  /** Filter audit logs by the source type. For example, user or rule */
9394
9780
  filter_source_type_?: string;
9395
9781
  /** Filter audit logs by the source id. Requires `filter[source_type]` to also be set */
@@ -10015,7 +10401,11 @@ export interface ListGroupUsersRequest {
10015
10401
  external_id?: string;
10016
10402
  }
10017
10403
  export declare const ListGroupUsersRequest: S.Schema<ListGroupUsersRequest>;
10404
+ export type ListItamAssetsRequestPage = ListAuditLogsRequestPage;
10405
+ export declare const ListItamAssetsRequestPage: S.Schema<ListAuditLogsRequestPage>;
10018
10406
  export interface ListItamAssetsRequest {
10407
+ /** 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` */
10408
+ page?: ListAuditLogsRequestPage;
10019
10409
  /** Optional comma-separated list of ids to filter assets by. If one or more ids are specified, only matching assets are returned. The ids must be unique and are case sensitive. */
10020
10410
  filter_ids_?: string;
10021
10411
  /** Optional comma-separated list of external ids to filter assets by. If one or more external ids are specified, only matching assets are returned. The external ids must be unique and are case sensitive. */
@@ -10036,13 +10426,36 @@ export declare const ItamAssetTypeFieldsResponse: S.Schema<ItamAssetTypeFieldsRe
10036
10426
  export interface ListItamAssetTypesRequest {
10037
10427
  }
10038
10428
  export declare const ListItamAssetTypesRequest: S.Schema<ListItamAssetTypesRequest>;
10039
- export type ItamAssetTypesResponseAssetTypesList = Array<ItamAssetType>;
10040
- export declare const ItamAssetTypesResponseAssetTypesList: S.Schema<ItamAssetTypesResponseAssetTypesList>;
10041
- export interface ItamAssetTypesResponse {
10042
- asset_types?: ItamAssetTypesResponseAssetTypesList;
10429
+ export type ItamAssetTypesResponseOutputAssetTypesList = Array<ItamAssetTypeOutput>;
10430
+ export declare const ItamAssetTypesResponseOutputAssetTypesList: S.Schema<ItamAssetTypesResponseOutputAssetTypesList>;
10431
+ export interface ItamAssetTypesResponseOutput {
10432
+ asset_types?: ItamAssetTypesResponseOutputAssetTypesList;
10433
+ }
10434
+ export declare const ItamAssetTypesResponseOutput: S.Schema<ItamAssetTypesResponseOutput>;
10435
+ export type ListItamFieldsRequestPage = ListAuditLogsRequestPage;
10436
+ export declare const ListItamFieldsRequestPage: S.Schema<ListAuditLogsRequestPage>;
10437
+ export interface ListItamFieldsRequest {
10438
+ /** 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` */
10439
+ page?: ListAuditLogsRequestPage;
10440
+ }
10441
+ export declare const ListItamFieldsRequest: S.Schema<ListItamFieldsRequest>;
10442
+ export type ListItamFieldsResponseFieldsList = Array<CustomObjectField>;
10443
+ export declare const ListItamFieldsResponseFieldsList: S.Schema<ListItamFieldsResponseFieldsList>;
10444
+ export type ListItamFieldsResponseLinks = CustomObjectRecordsResponseLinks;
10445
+ export declare const ListItamFieldsResponseLinks: S.Schema<CustomObjectRecordsResponseLinks>;
10446
+ export type ListItamFieldsResponseMeta = CustomObjectRecordsResponseMeta;
10447
+ export declare const ListItamFieldsResponseMeta: S.Schema<CustomObjectRecordsResponseMeta>;
10448
+ export interface ListItamFieldsResponse {
10449
+ fields?: ListItamFieldsResponseFieldsList;
10450
+ links?: CustomObjectRecordsResponseLinks;
10451
+ meta?: CustomObjectRecordsResponseMeta;
10043
10452
  }
10044
- export declare const ItamAssetTypesResponse: S.Schema<ItamAssetTypesResponse>;
10453
+ export declare const ListItamFieldsResponse: S.Schema<ListItamFieldsResponse>;
10454
+ export type ListItamLocationsRequestPage = ListAuditLogsRequestPage;
10455
+ export declare const ListItamLocationsRequestPage: S.Schema<ListAuditLogsRequestPage>;
10045
10456
  export interface ListItamLocationsRequest {
10457
+ /** 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` */
10458
+ page?: ListAuditLogsRequestPage;
10046
10459
  }
10047
10460
  export declare const ListItamLocationsRequest: S.Schema<ListItamLocationsRequest>;
10048
10461
  export type ListItamLocationsResponseLocationsList = Array<ItamAssetLocation>;
@@ -10073,6 +10486,19 @@ export interface ListJobStatusesRequest {
10073
10486
  page?: ListAuditLogsRequestPage;
10074
10487
  }
10075
10488
  export declare const ListJobStatusesRequest: S.Schema<ListJobStatusesRequest>;
10489
+ export interface ListLinkedTicketsForTaskItemRequest {
10490
+ /** The ID of the ticket */
10491
+ ticket_id: number;
10492
+ /** The id of the task item */
10493
+ task_item_id: string;
10494
+ }
10495
+ export declare const ListLinkedTicketsForTaskItemRequest: S.Schema<ListLinkedTicketsForTaskItemRequest>;
10496
+ export type TaskObjectLinksResponseTaskObjectLinksList = Array<TaskObjectLinkObject>;
10497
+ export declare const TaskObjectLinksResponseTaskObjectLinksList: S.Schema<TaskObjectLinksResponseTaskObjectLinksList>;
10498
+ export interface TaskObjectLinksResponse {
10499
+ task_object_links?: TaskObjectLinksResponseTaskObjectLinksList;
10500
+ }
10501
+ export declare const TaskObjectLinksResponse: S.Schema<TaskObjectLinksResponse>;
10076
10502
  export interface ListLocalesRequest {
10077
10503
  }
10078
10504
  export declare const ListLocalesRequest: S.Schema<ListLocalesRequest>;
@@ -10535,12 +10961,6 @@ export interface ListOrganizationTicketsRequest {
10535
10961
  organization_id: number;
10536
10962
  }
10537
10963
  export declare const ListOrganizationTicketsRequest: S.Schema<ListOrganizationTicketsRequest>;
10538
- export type TicketsResponseOutputTicketsList = Array<TicketObjectOutput>;
10539
- export declare const TicketsResponseOutputTicketsList: S.Schema<TicketsResponseOutputTicketsList>;
10540
- export interface TicketsResponseOutput {
10541
- tickets?: TicketsResponseOutputTicketsList;
10542
- }
10543
- export declare const TicketsResponseOutput: S.Schema<TicketsResponseOutput>;
10544
10964
  export type ListOrganizationUsersRequestRoleList = Array<string>;
10545
10965
  export declare const ListOrganizationUsersRequestRoleList: S.Schema<ListOrganizationUsersRequestRoleList>;
10546
10966
  export type ListOrganizationUsersRequestSortBy = "id" | "name" | "created_at" | "updated_at";
@@ -10573,6 +10993,40 @@ export interface ListOrganizationUsersRequest {
10573
10993
  per_page?: number;
10574
10994
  }
10575
10995
  export declare const ListOrganizationUsersRequest: S.Schema<ListOrganizationUsersRequest>;
10996
+ export interface ListParentTicketReferencesRequest {
10997
+ /** The ID of the ticket */
10998
+ ticket_id: number;
10999
+ }
11000
+ export declare const ListParentTicketReferencesRequest: S.Schema<ListParentTicketReferencesRequest>;
11001
+ export interface ParentTicketTaskItemObject {
11002
+ /** The task item description */
11003
+ description?: string | null;
11004
+ /** The task item name */
11005
+ name?: string;
11006
+ /** The id of the task item */
11007
+ task_item_id?: string;
11008
+ }
11009
+ export declare const ParentTicketTaskItemObject: S.Schema<ParentTicketTaskItemObject>;
11010
+ /** The task items that link to the specified subticket. The array is empty when the parent ticket is private or deleted. */
11011
+ export type ParentTicketTaskReferenceObjectTaskItemsList = Array<ParentTicketTaskItemObject>;
11012
+ export declare const ParentTicketTaskReferenceObjectTaskItemsList: S.Schema<ParentTicketTaskReferenceObjectTaskItemsList>;
11013
+ export interface ParentTicketTaskReferenceObject {
11014
+ /** The id of the parent ticket. The value is null when the parent ticket is private. */
11015
+ parent_ticket_id?: number | null;
11016
+ /** Whether the parent ticket is private to the requester */
11017
+ private?: boolean;
11018
+ /** The parent ticket status. The value is null when the parent ticket is private. */
11019
+ status?: string | null;
11020
+ /** The task items that link to the specified subticket. The array is empty when the parent ticket is private or deleted. */
11021
+ task_items?: ParentTicketTaskReferenceObjectTaskItemsList;
11022
+ }
11023
+ export declare const ParentTicketTaskReferenceObject: S.Schema<ParentTicketTaskReferenceObject>;
11024
+ export type ParentTicketTasksResponseParentTicketTasksList = Array<ParentTicketTaskReferenceObject>;
11025
+ export declare const ParentTicketTasksResponseParentTicketTasksList: S.Schema<ParentTicketTasksResponseParentTicketTasksList>;
11026
+ export interface ParentTicketTasksResponse {
11027
+ parent_ticket_tasks?: ParentTicketTasksResponseParentTicketTasksList;
11028
+ }
11029
+ export declare const ParentTicketTasksResponse: S.Schema<ParentTicketTasksResponse>;
10576
11030
  export interface ListPermissionPoliciesRequest {
10577
11031
  /** The key of a custom object */
10578
11032
  custom_object_key: string;
@@ -11221,6 +11675,26 @@ export interface ListTicketFormStatusesRequest {
11221
11675
  filter?: ListTicketFormStatusesRequestFilter;
11222
11676
  }
11223
11677
  export declare const ListTicketFormStatusesRequest: S.Schema<ListTicketFormStatusesRequest>;
11678
+ export interface ListTicketGroupSlaPolicyMetricsRequest {
11679
+ /** The ID of the ticket */
11680
+ ticket_id: number;
11681
+ }
11682
+ export declare const ListTicketGroupSlaPolicyMetricsRequest: S.Schema<ListTicketGroupSlaPolicyMetricsRequest>;
11683
+ export interface ListTicketGroupSlaPolicyMetricsResponsePolicyMetricsItem {
11684
+ breach_at?: string | null;
11685
+ days?: number;
11686
+ hours?: number;
11687
+ metric?: string;
11688
+ minutes?: number;
11689
+ stage?: string;
11690
+ }
11691
+ export declare const ListTicketGroupSlaPolicyMetricsResponsePolicyMetricsItem: S.Schema<ListTicketGroupSlaPolicyMetricsResponsePolicyMetricsItem>;
11692
+ export type ListTicketGroupSlaPolicyMetricsResponsePolicyMetricsList = Array<ListTicketGroupSlaPolicyMetricsResponsePolicyMetricsItem>;
11693
+ export declare const ListTicketGroupSlaPolicyMetricsResponsePolicyMetricsList: S.Schema<ListTicketGroupSlaPolicyMetricsResponsePolicyMetricsList>;
11694
+ export interface ListTicketGroupSlaPolicyMetricsResponse {
11695
+ policy_metrics?: ListTicketGroupSlaPolicyMetricsResponsePolicyMetricsList;
11696
+ }
11697
+ export declare const ListTicketGroupSlaPolicyMetricsResponse: S.Schema<ListTicketGroupSlaPolicyMetricsResponse>;
11224
11698
  export interface ListTicketIncidentsRequest {
11225
11699
  /** The ID of the ticket */
11226
11700
  ticket_id: number;
@@ -11250,6 +11724,28 @@ export interface ListTicketMetricEventsResponse {
11250
11724
  next_page?: string;
11251
11725
  }
11252
11726
  export declare const ListTicketMetricEventsResponse: S.Schema<ListTicketMetricEventsResponse>;
11727
+ export interface ListTicketMetricEventsByTicketRequest {
11728
+ /** The ID of the ticket */
11729
+ ticket_id: number;
11730
+ }
11731
+ export declare const ListTicketMetricEventsByTicketRequest: S.Schema<ListTicketMetricEventsByTicketRequest>;
11732
+ export interface ListTicketMetricEventsByTicketResponseBodyValueItem {
11733
+ id?: number;
11734
+ instance_id?: number;
11735
+ metric?: string;
11736
+ ticket_id?: number;
11737
+ time?: string;
11738
+ type?: string;
11739
+ }
11740
+ export declare const ListTicketMetricEventsByTicketResponseBodyValueItem: S.Schema<ListTicketMetricEventsByTicketResponseBodyValueItem>;
11741
+ export type ListTicketMetricEventsByTicketResponseBodyValueList = Array<ListTicketMetricEventsByTicketResponseBodyValueItem>;
11742
+ export declare const ListTicketMetricEventsByTicketResponseBodyValueList: S.Schema<ListTicketMetricEventsByTicketResponseBodyValueList>;
11743
+ export type ListTicketMetricEventsByTicketResponseBodyMap = {
11744
+ [key: string]: ListTicketMetricEventsByTicketResponseBodyValueList | undefined;
11745
+ };
11746
+ export declare const ListTicketMetricEventsByTicketResponseBodyMap: S.Schema<ListTicketMetricEventsByTicketResponseBodyMap>;
11747
+ export type ListTicketMetricEventsByTicketResponse = ListTicketMetricEventsByTicketResponseBodyMap;
11748
+ export declare const ListTicketMetricEventsByTicketResponse: S.Schema<ListTicketMetricEventsByTicketResponse>;
11253
11749
  export type ListTicketMetricsRequestPage = ListAuditLogsRequestPage;
11254
11750
  export declare const ListTicketMetricsRequestPage: S.Schema<ListAuditLogsRequestPage>;
11255
11751
  export interface ListTicketMetricsRequest {
@@ -11309,7 +11805,7 @@ export interface ListTicketsRequest {
11309
11805
  per_page?: number;
11310
11806
  /** 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` */
11311
11807
  sort?: string;
11312
- /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/api-reference/ticketing/tickets/tickets/#sideloading). */
11808
+ /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/documentation/api-basics/working-with-data/side_loading/#supported-endpoints). */
11313
11809
  include?: string;
11314
11810
  /** Unix epoch time to filter tickets. Only tickets created or updated after this time are returned. Example: `?start_time=1332034771` */
11315
11811
  start_time?: number;
@@ -11353,6 +11849,19 @@ export interface ListTicketSkipsByTicketRequest {
11353
11849
  sort_order?: ListTicketSkipsByTicketRequestSortOrder | (string & {});
11354
11850
  }
11355
11851
  export declare const ListTicketSkipsByTicketRequest: S.Schema<ListTicketSkipsByTicketRequest>;
11852
+ export interface ListTicketSlaPolicyMetricsRequest {
11853
+ /** The ID of the ticket */
11854
+ ticket_id: number;
11855
+ }
11856
+ export declare const ListTicketSlaPolicyMetricsRequest: S.Schema<ListTicketSlaPolicyMetricsRequest>;
11857
+ export type ListTicketSlaPolicyMetricsResponsePolicyMetricsItem = ListTicketGroupSlaPolicyMetricsResponsePolicyMetricsItem;
11858
+ export declare const ListTicketSlaPolicyMetricsResponsePolicyMetricsItem: S.Schema<ListTicketGroupSlaPolicyMetricsResponsePolicyMetricsItem>;
11859
+ export type ListTicketSlaPolicyMetricsResponsePolicyMetricsList = Array<ListTicketGroupSlaPolicyMetricsResponsePolicyMetricsItem>;
11860
+ export declare const ListTicketSlaPolicyMetricsResponsePolicyMetricsList: S.Schema<ListTicketSlaPolicyMetricsResponsePolicyMetricsList>;
11861
+ export interface ListTicketSlaPolicyMetricsResponse {
11862
+ policy_metrics?: ListTicketSlaPolicyMetricsResponsePolicyMetricsList;
11863
+ }
11864
+ export declare const ListTicketSlaPolicyMetricsResponse: S.Schema<ListTicketSlaPolicyMetricsResponse>;
11356
11865
  export interface ListTriggerActionConditionDefinitionsRequest {
11357
11866
  }
11358
11867
  export declare const ListTriggerActionConditionDefinitionsRequest: S.Schema<ListTriggerActionConditionDefinitionsRequest>;
@@ -11737,7 +12246,7 @@ export interface ListUserRequestedTicketsRequest {
11737
12246
  page?: ListUserRequestedTicketsRequestPage;
11738
12247
  /** Number of records to return per page. Note: Default and maximum values vary by endpoint. Check endpoint-specific documentation for limits. */
11739
12248
  per_page?: number;
11740
- /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/api-reference/ticketing/tickets/tickets/#sideloading). */
12249
+ /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/documentation/api-basics/working-with-data/side_loading/#supported-endpoints). */
11741
12250
  include?: string;
11742
12251
  /** If true, excludes archived tickets from the results. */
11743
12252
  exclude_archived?: boolean;
@@ -11774,7 +12283,7 @@ export interface ListUsersRequest {
11774
12283
  permission_set?: number;
11775
12284
  /** List users by external id. External id has to be unique for each user under the same account. */
11776
12285
  external_id?: string;
11777
- /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/api-reference/ticketing/users/users/#sideloading). */
12286
+ /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/documentation/api-basics/working-with-data/side_loading/#supported-endpoints). */
11778
12287
  include?: string;
11779
12288
  /** Pagination parameter. Supports both traditional offset and cursor-based pagination: - Traditional: `?page=2` (integer page number) - Cursor: `?page[size]=50&page[after]=cursor` (deepObject with size, after, before) These are mutually exclusive - use one format or the other, not both. */
11780
12289
  page?: ListUsersRequestPage;
@@ -12019,7 +12528,7 @@ export declare const PostAutocompleteUserRequestBrandIdCase0: any;
12019
12528
  export type PostAutocompleteUserRequestBrandId = PostAutocompleteUserRequestBrandIdCase0 | number;
12020
12529
  export declare const PostAutocompleteUserRequestBrandId: S.Schema<PostAutocompleteUserRequestBrandId>;
12021
12530
  export interface PostAutocompleteUserRequest {
12022
- /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/api-reference/ticketing/users/users/#sideloading). */
12531
+ /** Sideloads to include in the response. Accepts a comma-separated list of values. See [Sideloading](/documentation/api-basics/working-with-data/side_loading/#supported-endpoints). */
12023
12532
  include?: string;
12024
12533
  /** Filter to apply to autocomplete results. Common values: `assignable`, `requester`. */
12025
12534
  filter?: string;
@@ -12045,6 +12554,79 @@ export type PreviewViewsRequestPageCase1 = DynamicContentListVariantsRequestPage
12045
12554
  export declare const PreviewViewsRequestPageCase1: S.Schema<DynamicContentListVariantsRequestPageCase1>;
12046
12555
  export type PreviewViewsRequestPage = number | DynamicContentListVariantsRequestPageCase1;
12047
12556
  export declare const PreviewViewsRequestPage: S.Schema<PreviewViewsRequestPage>;
12557
+ export type ViewPreviewConditionInputValueCase2Item = string | number;
12558
+ export declare const ViewPreviewConditionInputValueCase2Item: S.Schema<ViewPreviewConditionInputValueCase2Item>;
12559
+ export type ViewPreviewConditionInputValueCase2List = Array<ViewPreviewConditionInputValueCase2Item>;
12560
+ export declare const ViewPreviewConditionInputValueCase2List: S.Schema<ViewPreviewConditionInputValueCase2List>;
12561
+ /** 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 */
12562
+ export type ViewPreviewConditionInputValue = string | number | ViewPreviewConditionInputValueCase2List;
12563
+ export declare const ViewPreviewConditionInputValue: S.Schema<ViewPreviewConditionInputValue>;
12564
+ /** A single condition of the previewed view definition. See the [Conditions reference](/documentation/ticketing/reference-guides/conditions-reference). */
12565
+ export interface ViewPreviewConditionInput {
12566
+ /** The ticket property the condition tests, such as "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. */
12567
+ field?: string;
12568
+ /** The comparison operator, such as "is", "is_not", "less_than", "greater_than" or "includes". Defaults to "is" when omitted */
12569
+ operator?: string;
12570
+ /** 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 */
12571
+ value?: ViewPreviewConditionInputValue;
12572
+ }
12573
+ export declare const ViewPreviewConditionInput: S.Schema<ViewPreviewConditionInput>;
12574
+ /** The conditions a ticket must all meet to appear in the preview. May also be supplied as `conditions.all` */
12575
+ export type ViewPreviewInputAllList = Array<ViewPreviewConditionInput>;
12576
+ export declare const ViewPreviewInputAllList: S.Schema<ViewPreviewInputAllList>;
12577
+ /** The conditions, at least one of which a ticket must meet to appear in the preview. May also be supplied as `conditions.any` */
12578
+ export type ViewPreviewInputAnyList = Array<ViewPreviewConditionInput>;
12579
+ export declare const ViewPreviewInputAnyList: S.Schema<ViewPreviewInputAnyList>;
12580
+ /** See the top-level `all` property */
12581
+ export type ViewPreviewInputConditionsAllList = Array<ViewPreviewConditionInput>;
12582
+ export declare const ViewPreviewInputConditionsAllList: S.Schema<ViewPreviewInputConditionsAllList>;
12583
+ /** See the top-level `any` property */
12584
+ export type ViewPreviewInputConditionsAnyList = Array<ViewPreviewConditionInput>;
12585
+ export declare const ViewPreviewInputConditionsAnyList: S.Schema<ViewPreviewInputConditionsAnyList>;
12586
+ /** 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 */
12587
+ export interface ViewPreviewInputConditions {
12588
+ /** See the top-level `all` property */
12589
+ all?: ViewPreviewInputConditionsAllList;
12590
+ /** See the top-level `any` property */
12591
+ any?: ViewPreviewInputConditionsAnyList;
12592
+ }
12593
+ export declare const ViewPreviewInputConditions: S.Schema<ViewPreviewInputConditions>;
12594
+ /** An existing active view to base the preview on, or the string alias "incoming" for the built-in incoming view. The conditions and output supplied here are then merged into that view's own definition rather than replacing them. Inactive views cannot be previewed. A numeric string is accepted for the id and coerced to an integer */
12595
+ export type ViewPreviewInputId = number | string;
12596
+ export declare const ViewPreviewInputId: S.Schema<ViewPreviewInputId>;
12597
+ export type ViewPreviewOutputInputColumnsItem = string | number;
12598
+ export declare const ViewPreviewOutputInputColumnsItem: S.Schema<ViewPreviewOutputInputColumnsItem>;
12599
+ /** The ticket fields to display, in order. System columns are given by name (see [View columns](#view-columns)). Custom fields are given by their numeric id or by their title. Unrecognized names 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. */
12600
+ export type ViewPreviewOutputInputColumnsList = Array<ViewPreviewOutputInputColumnsItem>;
12601
+ export declare const ViewPreviewOutputInputColumnsList: S.Schema<ViewPreviewOutputInputColumnsList>;
12602
+ /** The columns, grouping and sorting used when the previewed view is rendered. */
12603
+ export interface ViewPreviewOutputInput {
12604
+ /** The ticket fields to display, in order. System columns are given by name (see [View columns](#view-columns)). Custom fields are given by their numeric id or by their title. Unrecognized names 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. */
12605
+ columns?: ViewPreviewOutputInputColumnsList;
12606
+ /** The column the tickets are grouped by. Unrecognized values are stored without error and simply do not group the view */
12607
+ group_by?: string;
12608
+ /** The direction the groups are ordered in. May be "asc" or "desc" */
12609
+ group_order?: string;
12610
+ /** The column the tickets are sorted by. "id" is stored as "nice_id" */
12611
+ sort_by?: string;
12612
+ /** The direction the tickets are sorted in. May be "asc" or "desc" */
12613
+ sort_order?: string;
12614
+ }
12615
+ export declare const ViewPreviewOutputInput: S.Schema<ViewPreviewOutputInput>;
12616
+ /** The view definition to preview. 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. */
12617
+ export interface ViewPreviewInput {
12618
+ /** The conditions a ticket must all meet to appear in the preview. May also be supplied as `conditions.all` */
12619
+ all?: ViewPreviewInputAllList;
12620
+ /** The conditions, at least one of which a ticket must meet to appear in the preview. May also be supplied as `conditions.any` */
12621
+ any?: ViewPreviewInputAnyList;
12622
+ /** 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 */
12623
+ conditions?: ViewPreviewInputConditions;
12624
+ /** An existing active view to base the preview on, or the string alias "incoming" for the built-in incoming view. The conditions and output supplied here are then merged into that view's own definition rather than replacing them. Inactive views cannot be previewed. A numeric string is accepted for the id and coerced to an integer */
12625
+ id?: ViewPreviewInputId;
12626
+ /** The columns, grouping and sorting of the previewed view. When `id` is given the supplied properties are merged into that view's own output; otherwise anything left out falls back to its system default */
12627
+ output?: ViewPreviewOutputInput;
12628
+ }
12629
+ export declare const ViewPreviewInput: S.Schema<ViewPreviewInput>;
12048
12630
  export interface PreviewViewsRequest {
12049
12631
  /** Pagination parameter. Supports both traditional offset and cursor-based pagination: - Traditional: `?page=2` (integer page number) - Cursor: `?page[size]=50&page[after]=cursor` (deepObject with size, after, before) These are mutually exclusive - use one format or the other, not both. */
12050
12632
  page?: PreviewViewsRequestPage;
@@ -12054,6 +12636,11 @@ export interface PreviewViewsRequest {
12054
12636
  include?: string;
12055
12637
  /** A comma-separated list of sideloads to exclude from the response. */
12056
12638
  exclude?: string;
12639
+ /** Internal. Whether archived tickets are included in the preview. Defaults to false */
12640
+ _include_archive?: boolean;
12641
+ /** When true, the preview results are paginated using the `page` and `per_page` query parameters */
12642
+ paginate?: boolean;
12643
+ view: ViewPreviewInput;
12057
12644
  }
12058
12645
  export declare const PreviewViewsRequest: S.Schema<PreviewViewsRequest>;
12059
12646
  export interface PushContentToSupportRequest {
@@ -12101,9 +12688,17 @@ export interface PutUserTagsRequest {
12101
12688
  export declare const PutUserTagsRequest: S.Schema<PutUserTagsRequest>;
12102
12689
  export type RecordNewSkipRequestSortOrder = "asc" | "desc";
12103
12690
  export declare const RecordNewSkipRequestSortOrder: any;
12691
+ export interface RecordNewSkipRequestSkip {
12692
+ /** Reason for skipping the ticket */
12693
+ reason?: string;
12694
+ /** ID of the ticket to skip */
12695
+ ticket_id: number;
12696
+ }
12697
+ export declare const RecordNewSkipRequestSkip: S.Schema<RecordNewSkipRequestSkip>;
12104
12698
  export interface RecordNewSkipRequest {
12105
12699
  /** Sort order. Defaults to "asc" */
12106
12700
  sort_order?: RecordNewSkipRequestSortOrder | (string & {});
12701
+ skip: RecordNewSkipRequestSkip;
12107
12702
  }
12108
12703
  export declare const RecordNewSkipRequest: S.Schema<RecordNewSkipRequest>;
12109
12704
  export interface TicketSkipCreationOutput {
@@ -12135,6 +12730,14 @@ export declare const RecoverSuspendedTicketsResponseOutput: S.Schema<RecoverSusp
12135
12730
  export interface RedactChatCommentRequest {
12136
12731
  /** The ID of the ticket */
12137
12732
  ticket_id: number;
12733
+ /** The `chat_id` in the `ChatStartedEvent` event in the ticket audit. */
12734
+ chat_id: string;
12735
+ /** The `chat_index` in the `ChatMessage` event in the ticket audit. Mandatory if `message_id` is not used. */
12736
+ chat_index?: number;
12737
+ /** The `message_id` of the `ChatMessage` event in the ticket audit that is part of a `ChatStartedEvent` history. Used when redacting a ChatMessage that is part of a conversation history. Mandatory if `chat_index` is not used. */
12738
+ message_id?: string;
12739
+ /** The `message` in the `ChatMessage` event in the ticket audit. Wrap `message` with `<redact>` tags. */
12740
+ text: string;
12138
12741
  }
12139
12742
  export declare const RedactChatCommentRequest: S.Schema<RedactChatCommentRequest>;
12140
12743
  export type TicketChatCommentRedactionResponseChatEventValueHistoryItemMap = {
@@ -12169,9 +12772,21 @@ export interface TicketChatCommentRedactionResponse {
12169
12772
  chat_event?: TicketChatCommentRedactionResponseChatEvent;
12170
12773
  }
12171
12774
  export declare const TicketChatCommentRedactionResponse: S.Schema<TicketChatCommentRedactionResponse>;
12775
+ /** The array of `chat_index` in the `ChatFileAttachment` event in the ticket audit. Mandatory if `message_ids` is not used. */
12776
+ export type RedactChatCommentAttachmentRequestChatIndexesList = Array<number>;
12777
+ export declare const RedactChatCommentAttachmentRequestChatIndexesList: S.Schema<RedactChatCommentAttachmentRequestChatIndexesList>;
12778
+ /** The array of `message_id` in the `ChatFileAttachment` event in the ticket audit that is part of a `ChatStartedEvent` history. Used when redacting a ChatFileAttachment that is part of a conversation history. Mandatory if `chat_indexes` is not used. */
12779
+ export type RedactChatCommentAttachmentRequestMessageIdsList = Array<string>;
12780
+ export declare const RedactChatCommentAttachmentRequestMessageIdsList: S.Schema<RedactChatCommentAttachmentRequestMessageIdsList>;
12172
12781
  export interface RedactChatCommentAttachmentRequest {
12173
12782
  /** The ID of the ticket */
12174
12783
  ticket_id: number;
12784
+ /** The `chat_id` in the `ChatStartedEvent` event in the ticket audit. */
12785
+ chat_id: string;
12786
+ /** The array of `chat_index` in the `ChatFileAttachment` event in the ticket audit. Mandatory if `message_ids` is not used. */
12787
+ chat_indexes?: RedactChatCommentAttachmentRequestChatIndexesList;
12788
+ /** The array of `message_id` in the `ChatFileAttachment` event in the ticket audit that is part of a `ChatStartedEvent` history. Used when redacting a ChatFileAttachment that is part of a conversation history. Mandatory if `chat_indexes` is not used. */
12789
+ message_ids?: RedactChatCommentAttachmentRequestMessageIdsList;
12175
12790
  }
12176
12791
  export declare const RedactChatCommentAttachmentRequest: S.Schema<RedactChatCommentAttachmentRequest>;
12177
12792
  export interface RedactCommentAttachmentRequest {
@@ -12188,11 +12803,22 @@ export interface RedactStringInCommentRequest {
12188
12803
  ticket_id: number;
12189
12804
  /** The ID of the ticket comment */
12190
12805
  ticket_comment_id: number;
12806
+ /** The word or string to permanently redact from the comment */
12807
+ text: string;
12191
12808
  }
12192
12809
  export declare const RedactStringInCommentRequest: S.Schema<RedactStringInCommentRequest>;
12810
+ /** Array of attachment URLs belonging to the comment to be redacted. */
12811
+ export type RedactTicketCommentInAgentWorkspaceRequestExternalAttachmentUrlsList = Array<string>;
12812
+ export declare const RedactTicketCommentInAgentWorkspaceRequestExternalAttachmentUrlsList: S.Schema<RedactTicketCommentInAgentWorkspaceRequestExternalAttachmentUrlsList>;
12193
12813
  export interface RedactTicketCommentInAgentWorkspaceRequest {
12194
12814
  /** The ID of the ticket comment */
12195
12815
  ticket_comment_id: number;
12816
+ /** Array of attachment URLs belonging to the comment to be redacted. */
12817
+ external_attachment_urls?: RedactTicketCommentInAgentWorkspaceRequestExternalAttachmentUrlsList;
12818
+ /** The `html_body` of the comment containing `<redact>` tags or `redact` attributes. */
12819
+ html_body?: string;
12820
+ /** The ID of the ticket. */
12821
+ ticket_id: number;
12196
12822
  }
12197
12823
  export declare const RedactTicketCommentInAgentWorkspaceRequest: S.Schema<RedactTicketCommentInAgentWorkspaceRequest>;
12198
12824
  export interface RemoveOrganizationTagsRequest {
@@ -12501,9 +13127,14 @@ export interface SearchViewsRequest {
12501
13127
  include?: string;
12502
13128
  }
12503
13129
  export declare const SearchViewsRequest: S.Schema<SearchViewsRequest>;
13130
+ /** The IDs of the attribute values to set for the agent */
13131
+ export type SetAgentAttributeValuesRequestAttributeValueIdsList = Array<string>;
13132
+ export declare const SetAgentAttributeValuesRequestAttributeValueIdsList: S.Schema<SetAgentAttributeValuesRequestAttributeValueIdsList>;
12504
13133
  export interface SetAgentAttributeValuesRequest {
12505
13134
  /** The id of the user */
12506
13135
  user_id: number;
13136
+ /** The IDs of the attribute values to set for the agent */
13137
+ attribute_value_ids: SetAgentAttributeValuesRequestAttributeValueIdsList;
12507
13138
  }
12508
13139
  export declare const SetAgentAttributeValuesRequest: S.Schema<SetAgentAttributeValuesRequest>;
12509
13140
  export interface SetOrganizationAsDefaultRequest {
@@ -13053,6 +13684,18 @@ export declare const UnassignOrganizationRequest: S.Schema<UnassignOrganizationR
13053
13684
  export interface UnassignOrganizationResponse {
13054
13685
  }
13055
13686
  export declare const UnassignOrganizationResponse: S.Schema<UnassignOrganizationResponse>;
13687
+ export interface UnlinkTicketRequest {
13688
+ /** The ID of the ticket */
13689
+ ticket_id: number;
13690
+ /** The id of the task item */
13691
+ task_item_id: string;
13692
+ /** The id of the task object link */
13693
+ task_object_link_id: string;
13694
+ }
13695
+ export declare const UnlinkTicketRequest: S.Schema<UnlinkTicketRequest>;
13696
+ export interface UnlinkTicketResponse {
13697
+ }
13698
+ export declare const UnlinkTicketResponse: S.Schema<UnlinkTicketResponse>;
13056
13699
  /** All conditions must be true (AND logic) */
13057
13700
  export type UpdateAccessRuleRequestAccessRuleConditionsAllList = Array<AccessRuleCondition>;
13058
13701
  export declare const UpdateAccessRuleRequestAccessRuleConditionsAllList: S.Schema<UpdateAccessRuleRequestAccessRuleConditionsAllList>;
@@ -13118,6 +13761,13 @@ export interface UpdateAttributeValueRequest {
13118
13761
  attribute_value_id: string;
13119
13762
  }
13120
13763
  export declare const UpdateAttributeValueRequest: S.Schema<UpdateAttributeValueRequest>;
13764
+ export interface UpdateAttributeValuePutRequest {
13765
+ /** The ID of the skill-based routing attribute */
13766
+ attribute_id: string;
13767
+ /** The ID of the skill-based routing attribute value */
13768
+ attribute_value_id: string;
13769
+ }
13770
+ export declare const UpdateAttributeValuePutRequest: S.Schema<UpdateAttributeValuePutRequest>;
13121
13771
  export interface UpdateAutomationRequest {
13122
13772
  /** The ID of the automation */
13123
13773
  automation_id: number;
@@ -13308,29 +13958,57 @@ export interface UpdateItamAssetRequest {
13308
13958
  asset_id: string;
13309
13959
  }
13310
13960
  export declare const UpdateItamAssetRequest: S.Schema<UpdateItamAssetRequest>;
13961
+ /** Sets or removes the asset type's icon. Setting an icon requires a `multipart/form-data` request with a file field named `asset_type[photo][uploaded_data]` — see the "Adding a photo" code sample. Pass `null` to remove the existing icon via a normal JSON request. */
13962
+ export type UpdateItamAssetTypeRequestAssetTypePhotoMap = {
13963
+ [key: string]: unknown | undefined;
13964
+ };
13965
+ export declare const UpdateItamAssetTypeRequestAssetTypePhotoMap: S.Schema<UpdateItamAssetTypeRequestAssetTypePhotoMap>;
13966
+ export interface UpdateItamAssetTypeRequestAssetType {
13967
+ /** A description of the asset type */
13968
+ description?: string | null;
13969
+ /** An id you can use to link asset types to external data */
13970
+ external_id?: string | null;
13971
+ /** A unique display name for the asset type */
13972
+ name?: string;
13973
+ /** Sets or removes the asset type's icon. Setting an icon requires a `multipart/form-data` request with a file field named `asset_type[photo][uploaded_data]` — see the "Adding a photo" code sample. Pass `null` to remove the existing icon via a normal JSON request. */
13974
+ photo?: UpdateItamAssetTypeRequestAssetTypePhotoMap | null;
13975
+ }
13976
+ export declare const UpdateItamAssetTypeRequestAssetType: S.Schema<UpdateItamAssetTypeRequestAssetType>;
13311
13977
  export interface UpdateItamAssetTypeRequest {
13312
13978
  /** The id of the asset type */
13313
13979
  asset_type_id: string;
13980
+ asset_type?: UpdateItamAssetTypeRequestAssetType;
13314
13981
  }
13315
13982
  export declare const UpdateItamAssetTypeRequest: S.Schema<UpdateItamAssetTypeRequest>;
13316
- export interface UpdateItamAssetTypeFieldRequest {
13317
- /** The id of the asset type */
13318
- asset_type_id: string;
13319
- /** The id of the asset field */
13320
- asset_type_field_id: string;
13983
+ export type UpdateItamFieldRequestAssetTypeIdsCase0List = Array<string>;
13984
+ export declare const UpdateItamFieldRequestAssetTypeIdsCase0List: S.Schema<UpdateItamFieldRequestAssetTypeIdsCase0List>;
13985
+ export type UpdateItamFieldRequestAssetTypeIdsCase1 = "all" | "none";
13986
+ export declare const UpdateItamFieldRequestAssetTypeIdsCase1: any;
13987
+ /** Array of asset type ids, "all", or "none". If "none", the field isn't attached to any asset type. */
13988
+ export type UpdateItamFieldRequestAssetTypeIds = UpdateItamFieldRequestAssetTypeIdsCase0List | UpdateItamFieldRequestAssetTypeIdsCase1;
13989
+ export declare const UpdateItamFieldRequestAssetTypeIds: S.Schema<UpdateItamFieldRequestAssetTypeIds>;
13990
+ export interface UpdateItamFieldRequest {
13991
+ /** The ID of the asset field */
13992
+ id: number;
13993
+ /** Array of asset type ids, "all", or "none". If "none", the field isn't attached to any asset type. */
13994
+ asset_type_ids?: UpdateItamFieldRequestAssetTypeIds;
13995
+ field?: CustomObjectFieldInput;
13996
+ }
13997
+ export declare const UpdateItamFieldRequest: S.Schema<UpdateItamFieldRequest>;
13998
+ export interface UpdateItamLocationRequestLocation {
13999
+ /** An id you can use to connect a location to external data */
14000
+ external_id?: string | null;
14001
+ /** Display name for the location */
14002
+ name?: string;
13321
14003
  }
13322
- export declare const UpdateItamAssetTypeFieldRequest: S.Schema<UpdateItamAssetTypeFieldRequest>;
14004
+ export declare const UpdateItamLocationRequestLocation: S.Schema<UpdateItamLocationRequestLocation>;
13323
14005
  export interface UpdateItamLocationRequest {
13324
14006
  /** The id of the location */
13325
14007
  location_id: string;
14008
+ location?: UpdateItamLocationRequestLocation;
13326
14009
  }
13327
14010
  export declare const UpdateItamLocationRequest: S.Schema<UpdateItamLocationRequest>;
13328
- /** The status category. One of available, in_use, unavailable, or end_of_life */
13329
- export type UpdateItamStatusRequestStatusCategory = "available" | "in_use" | "unavailable" | "end_of_life";
13330
- export declare const UpdateItamStatusRequestStatusCategory: any;
13331
14011
  export interface UpdateItamStatusRequestStatus {
13332
- /** The status category. One of available, in_use, unavailable, or end_of_life */
13333
- category?: UpdateItamStatusRequestStatusCategory | (string & {});
13334
14012
  /** Description of the status */
13335
14013
  description?: string | null;
13336
14014
  /** An id you can use to connect a status to external data */
@@ -13544,12 +14222,31 @@ export declare const UpdateManyUsersRequest: S.Schema<UpdateManyUsersRequest>;
13544
14222
  export interface UpdateManyViewsRequest {
13545
14223
  }
13546
14224
  export declare const UpdateManyViewsRequest: S.Schema<UpdateManyViewsRequest>;
14225
+ /** An array of actions the trigger does when its conditions are met. See [Actions reference](/documentation/ticketing/reference-guides/actions-reference) */
14226
+ export type ObjectTriggerUpdateObjectInputActionsList = Array<TriggerActionObject>;
14227
+ export declare const ObjectTriggerUpdateObjectInputActionsList: S.Schema<ObjectTriggerUpdateObjectInputActionsList>;
14228
+ export interface ObjectTriggerUpdateObjectInput {
14229
+ /** An array of actions the trigger does when its conditions are met. See [Actions reference](/documentation/ticketing/reference-guides/actions-reference) */
14230
+ actions?: ObjectTriggerUpdateObjectInputActionsList;
14231
+ /** Whether the trigger is active */
14232
+ active?: boolean;
14233
+ conditions?: TriggerConditionsObject;
14234
+ /** The description of the trigger */
14235
+ description?: string;
14236
+ /** Position of the trigger, determines the order they will execute in */
14237
+ position?: number;
14238
+ /** The raw format of the title of the trigger */
14239
+ raw_title?: string;
14240
+ /** The title of the trigger */
14241
+ title?: string;
14242
+ }
14243
+ export declare const ObjectTriggerUpdateObjectInput: S.Schema<ObjectTriggerUpdateObjectInput>;
13547
14244
  export interface UpdateObjectTriggerRequest {
13548
14245
  /** The key of a custom object */
13549
14246
  custom_object_key: string;
13550
14247
  /** The ID of the trigger */
13551
14248
  trigger_id: number;
13552
- trigger?: ObjectTriggerObjectInput;
14249
+ trigger?: ObjectTriggerUpdateObjectInput;
13553
14250
  }
13554
14251
  export declare const UpdateObjectTriggerRequest: S.Schema<UpdateObjectTriggerRequest>;
13555
14252
  export interface UpdateOrganizationRequest {
@@ -13829,23 +14526,27 @@ export interface UpdateTicketFormRequest {
13829
14526
  ticket_form_id: number;
13830
14527
  }
13831
14528
  export declare const UpdateTicketFormRequest: S.Schema<UpdateTicketFormRequest>;
13832
- export interface TicketFormStatusesUpdateParams {
13833
- /** If set to a value of \"1\" and an id value is passed, the server will delete the record */
14529
+ export interface UpdateTicketFormStatusByIdRequestTicketFormStatus {
14530
+ /** Set to `"1"` to delete the association. */
13834
14531
  _destroy?: string;
13835
14532
  custom_status_id?: number;
13836
- id?: string;
13837
14533
  }
13838
- export declare const TicketFormStatusesUpdateParams: S.Schema<TicketFormStatusesUpdateParams>;
13839
- export type UpdateTicketFormStatusByIdRequestTicketFormStatusList = Array<TicketFormStatusesUpdateParams>;
13840
- export declare const UpdateTicketFormStatusByIdRequestTicketFormStatusList: S.Schema<UpdateTicketFormStatusByIdRequestTicketFormStatusList>;
14534
+ export declare const UpdateTicketFormStatusByIdRequestTicketFormStatus: S.Schema<UpdateTicketFormStatusByIdRequestTicketFormStatus>;
13841
14535
  export interface UpdateTicketFormStatusByIdRequest {
13842
14536
  /** The ID of the ticket form */
13843
14537
  ticket_form_id: number;
13844
14538
  /** The id of the ticket form status */
13845
14539
  ticket_form_status_id: string;
13846
- ticket_form_status: UpdateTicketFormStatusByIdRequestTicketFormStatusList;
14540
+ ticket_form_status: UpdateTicketFormStatusByIdRequestTicketFormStatus;
13847
14541
  }
13848
14542
  export declare const UpdateTicketFormStatusByIdRequest: S.Schema<UpdateTicketFormStatusByIdRequest>;
14543
+ export interface TicketFormStatusesUpdateParams {
14544
+ /** If set to a value of \"1\" and an id value is passed, the server will delete the record */
14545
+ _destroy?: string;
14546
+ custom_status_id?: number;
14547
+ id?: string;
14548
+ }
14549
+ export declare const TicketFormStatusesUpdateParams: S.Schema<TicketFormStatusesUpdateParams>;
13849
14550
  export type UpdateTicketFormStatusesRequestTicketFormStatusList = Array<TicketFormStatusesUpdateParams>;
13850
14551
  export declare const UpdateTicketFormStatusesRequestTicketFormStatusList: S.Schema<UpdateTicketFormStatusesRequestTicketFormStatusList>;
13851
14552
  export interface UpdateTicketFormStatusesRequest {
@@ -13854,10 +14555,55 @@ export interface UpdateTicketFormStatusesRequest {
13854
14555
  ticket_form_status: UpdateTicketFormStatusesRequestTicketFormStatusList;
13855
14556
  }
13856
14557
  export declare const UpdateTicketFormStatusesRequest: S.Schema<UpdateTicketFormStatusesRequest>;
14558
+ /** An array of actions describing what the ticket trigger will do. See [Actions reference](/documentation/ticketing/reference-guides/actions-reference) */
14559
+ export type TriggerUpdateObjectInputActionsList = Array<TriggerActionObject>;
14560
+ export declare const TriggerUpdateObjectInputActionsList: S.Schema<TriggerUpdateObjectInputActionsList>;
14561
+ /** Legacy format for conditions (deprecated). Use conditions.all instead */
14562
+ export type TriggerUpdateObjectInputAllList = Array<TriggerConditionObject>;
14563
+ export declare const TriggerUpdateObjectInputAllList: S.Schema<TriggerUpdateObjectInputAllList>;
14564
+ /** Legacy format for conditions (deprecated). Use conditions.any instead */
14565
+ export type TriggerUpdateObjectInputAnyList = Array<TriggerConditionObject>;
14566
+ export declare const TriggerUpdateObjectInputAnyList: S.Schema<TriggerUpdateObjectInputAnyList>;
14567
+ /** A category to create and assign to the trigger */
14568
+ export type TriggerUpdateObjectInputCategory = TriggerObjectInputCategory;
14569
+ export declare const TriggerUpdateObjectInputCategory: S.Schema<TriggerObjectInputCategory>;
14570
+ /** Access restriction for this trigger. A null value allows unrestricted access */
14571
+ export type TriggerUpdateObjectInputRestrictionMap = {
14572
+ [key: string]: unknown | undefined;
14573
+ };
14574
+ export declare const TriggerUpdateObjectInputRestrictionMap: S.Schema<TriggerUpdateObjectInputRestrictionMap>;
14575
+ export interface TriggerUpdateObjectInput {
14576
+ /** An array of actions describing what the ticket trigger will do. See [Actions reference](/documentation/ticketing/reference-guides/actions-reference) */
14577
+ actions?: TriggerUpdateObjectInputActionsList;
14578
+ /** Whether the ticket trigger is active */
14579
+ active?: boolean;
14580
+ /** Legacy format for conditions (deprecated). Use conditions.all instead */
14581
+ all?: TriggerUpdateObjectInputAllList;
14582
+ /** Legacy format for conditions (deprecated). Use conditions.any instead */
14583
+ any?: TriggerUpdateObjectInputAnyList;
14584
+ /** The ID of the brand the ticket trigger belongs to */
14585
+ brand_id?: number;
14586
+ /** A category to create and assign to the trigger */
14587
+ category?: TriggerObjectInputCategory;
14588
+ /** The ID of the category the ticket trigger belongs to */
14589
+ category_id?: string | null;
14590
+ conditions?: TriggerConditionsObject;
14591
+ /** The description of the ticket trigger */
14592
+ description?: string;
14593
+ /** Position of the ticket trigger, determines the order they will execute in */
14594
+ position?: number;
14595
+ /** The raw format of the title of the ticket trigger */
14596
+ raw_title?: string;
14597
+ /** Access restriction for this trigger. A null value allows unrestricted access */
14598
+ restriction?: TriggerUpdateObjectInputRestrictionMap | null;
14599
+ /** The title of the ticket trigger */
14600
+ title?: string;
14601
+ }
14602
+ export declare const TriggerUpdateObjectInput: S.Schema<TriggerUpdateObjectInput>;
13857
14603
  export interface UpdateTriggerRequest {
13858
14604
  /** The ID of the trigger */
13859
14605
  trigger_id: number;
13860
- trigger?: TriggerObjectInput;
14606
+ trigger?: TriggerUpdateObjectInput;
13861
14607
  }
13862
14608
  export declare const UpdateTriggerRequest: S.Schema<UpdateTriggerRequest>;
13863
14609
  export type TriggerCategoryRequest = TriggerObjectInputCategory;
@@ -13886,6 +14632,26 @@ export interface UpdateUserIdentityRequest {
13886
14632
  user_identity_id: number;
13887
14633
  }
13888
14634
  export declare const UpdateUserIdentityRequest: S.Schema<UpdateUserIdentityRequest>;
14635
+ export type UpdateUserSuspensionRequestSuspensionReason = "abusive_language" | "uncooperative" | "impersonating_others" | "other_reason";
14636
+ export declare const UpdateUserSuspensionRequestSuspensionReason: any;
14637
+ export type UpdateUserSuspensionRequestSuspensionSuspendedChannelsItem = "all" | "messaging";
14638
+ export declare const UpdateUserSuspensionRequestSuspensionSuspendedChannelsItem: any;
14639
+ /** Only accepted when the account has the messaging channel suspension feature enabled. See [Announcing user suspension from messaging channels only](https://support.zendesk.com/hc/en-us/articles/10575252020250-Announcing-user-suspension-from-messaging-channels-only). */
14640
+ export type UpdateUserSuspensionRequestSuspensionSuspendedChannelsList = Array<UpdateUserSuspensionRequestSuspensionSuspendedChannelsItem | (string & {})>;
14641
+ export declare const UpdateUserSuspensionRequestSuspensionSuspendedChannelsList: S.Schema<UpdateUserSuspensionRequestSuspensionSuspendedChannelsList>;
14642
+ export interface UpdateUserSuspensionRequestSuspension {
14643
+ additional_comments?: string;
14644
+ reason?: UpdateUserSuspensionRequestSuspensionReason | (string & {});
14645
+ /** Only accepted when the account has the messaging channel suspension feature enabled. See [Announcing user suspension from messaging channels only](https://support.zendesk.com/hc/en-us/articles/10575252020250-Announcing-user-suspension-from-messaging-channels-only). */
14646
+ suspended_channels?: UpdateUserSuspensionRequestSuspensionSuspendedChannelsList;
14647
+ }
14648
+ export declare const UpdateUserSuspensionRequestSuspension: S.Schema<UpdateUserSuspensionRequestSuspension>;
14649
+ export interface UpdateUserSuspensionRequest {
14650
+ /** The id of the user */
14651
+ user_id: number;
14652
+ suspension: UpdateUserSuspensionRequestSuspension;
14653
+ }
14654
+ export declare const UpdateUserSuspensionRequest: S.Schema<UpdateUserSuspensionRequest>;
13889
14655
  export interface UpdateViewRequest {
13890
14656
  /** The ID of the view, or one of the string aliases `"incoming"`, `"my"`, or `"my_groups"`. */
13891
14657
  view_id: string;
@@ -13997,6 +14763,9 @@ export declare const autocompleteProblems: API.OperationMethod<AutocompleteProbl
13997
14763
  export type AutocompleteTagsError = ZendeskOpError;
13998
14764
  /** Search Tags Returns an array of registered and recent tag names that start with the characters specified in the `name` query parameter. This includes tags where any word within the tag (separated by underscores, hyphens, spaces, or other punctuation) starts with the specified characters. You must specify at least 2 characters. #### How tag matching works When tags contain delimiters like underscores, hyphens, or spaces, each word is indexed separately. A tag matches if the tag itself or any word within it starts with your search term. For example, searching for `trig` will match the tag `set_by_this_trigger` because one of its words ("trigger") starts with "trig". However, searching for `rigger` won't match this tag because neither the full tag nor any of its individual words ("set", "by", "this", "trigger") start with "rigger". #### Autocomplete limitations Autocomplete returns up to 15 suggestions from the most commonly used ticket tags in the last 60 days. Tags that match the prefix but aren't in that top set won't appear in the results. #### Pagination * Offset pagination only See [Using Offset Pagination](/api-reference/introduction/pagination/#using-offset-pagination). #### Allowed For * Agents */
13999
14765
  export declare const autocompleteTags: API.OperationMethod<AutocompleteTagsRequest, TagsByObjectIdResponse, AutocompleteTagsError, ZendeskOpContext>;
14766
+ export type AutocompleteTicketsError = ZendeskOpError;
14767
+ /** Autocomplete Tickets Returns tickets whose subject matches the value specified in the `name` parameter. #### Allowed For * Agents */
14768
+ export declare const autocompleteTickets: API.OperationMethod<AutocompleteTicketsRequest, TicketsResponseOutput, AutocompleteTicketsError, ZendeskOpContext>;
14000
14769
  export type AutocompleteUsersError = BadRequest | ZendeskOpError;
14001
14770
  /** Autocomplete Users Returns an array of users whose name starts with the value specified in the `name` parameter. It only returns users with no foreign identities. #### Allowed For * Agents */
14002
14771
  export declare const autocompleteUsers: API.OperationMethod<AutocompleteUsersRequest, UsersResponse, AutocompleteUsersError, ZendeskOpContext>;
@@ -14112,8 +14881,8 @@ export type CreateAccessRuleError = ZendeskOpError;
14112
14881
  /** 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 */
14113
14882
  export declare const createAccessRule: API.OperationMethod<CreateAccessRuleRequest, AccessRuleResponse, CreateAccessRuleError, ZendeskOpContext>;
14114
14883
  export type CreateApprovalRequestError = UnprocessableEntity | ZendeskOpError;
14115
- /** Create Approval Request Creates an approval request 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 */
14116
- export declare const createApprovalRequest: API.OperationMethod<CreateApprovalRequestRequest, ApprovalRequestSimpleResponse, CreateApprovalRequestError, ZendeskOpContext>;
14884
+ /** 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" } ] } ``` */
14885
+ export declare const createApprovalRequest: API.OperationMethod<CreateApprovalRequestRequest, ApprovalRequestCreateResponse, CreateApprovalRequestError, ZendeskOpContext>;
14117
14886
  export type CreateAssociatedMacroAttachmentError = ZendeskOpError;
14118
14887
  /** Create Macro Attachment Allows an attachment to be uploaded and associated with a macro at the same time. **Note:** A macro can be associated with up to five attachments. #### Allowed For * Agents */
14119
14888
  export declare const createAssociatedMacroAttachment: API.OperationMethod<CreateAssociatedMacroAttachmentRequest, MacroAttachmentResponse, CreateAssociatedMacroAttachmentError, ZendeskOpContext>;
@@ -14174,19 +14943,19 @@ export declare const createGroupMembership: API.OperationMethod<CreateGroupMembe
14174
14943
  export type CreateGroupSLAPolicyError = ZendeskOpError;
14175
14944
  /** Create Group SLA Policy #### Allowed For * Admins */
14176
14945
  export declare const createGroupSLAPolicy: API.OperationMethod<CreateGroupSLAPolicyRequest, GroupSLAPolicyResponse, CreateGroupSLAPolicyError, ZendeskOpContext>;
14177
- export type CreateItamAssetError = ZendeskOpError;
14946
+ export type CreateItamAssetError = UnprocessableEntity | ZendeskOpError;
14178
14947
  /** Create Asset Creates an asset. #### Allowed For * Admins */
14179
14948
  export declare const createItamAsset: API.OperationMethod<CreateItamAssetRequest, ItamAssetResponse, CreateItamAssetError, ZendeskOpContext>;
14180
- export type CreateItamAssetTypeError = ZendeskOpError;
14181
- /** Create Asset Type Creates an asset type. #### Allowed For * Admins */
14182
- export declare const createItamAssetType: API.OperationMethod<CreateItamAssetTypeRequest, ItamAssetTypeResponse, CreateItamAssetTypeError, ZendeskOpContext>;
14183
- export type CreateItamAssetTypeFieldError = ZendeskOpError;
14184
- /** Create Asset Field Creates an asset field for an individual asset type. #### Allowed For * Admins */
14185
- export declare const createItamAssetTypeField: API.OperationMethod<CreateItamAssetTypeFieldRequest, ItamAssetFieldResponse, CreateItamAssetTypeFieldError, ZendeskOpContext>;
14186
- export type CreateItamLocationError = ZendeskOpError;
14949
+ export type CreateItamAssetTypeError = UnprocessableEntity | ZendeskOpError;
14950
+ /** Create Asset Type Creates an asset type. To set an icon at the same time, send a `multipart/form-data` request instead of JSON — see the "Create asset type with a photo" code sample. #### Allowed For * Admins */
14951
+ export declare const createItamAssetType: API.OperationMethod<CreateItamAssetTypeRequest, ItamAssetTypeResponseOutput, CreateItamAssetTypeError, ZendeskOpContext>;
14952
+ export type CreateItamFieldError = ZendeskOpError;
14953
+ /** Create Field Creates an asset field. #### Allowed For * Admins */
14954
+ export declare const createItamField: API.OperationMethod<CreateItamFieldRequest, ItamAssetFieldResponse, CreateItamFieldError, ZendeskOpContext>;
14955
+ export type CreateItamLocationError = UnprocessableEntity | ZendeskOpError;
14187
14956
  /** Create Asset Location Creates a location. #### Allowed For * Admins */
14188
14957
  export declare const createItamLocation: API.OperationMethod<CreateItamLocationRequest, ItamAssetLocationResponse, CreateItamLocationError, ZendeskOpContext>;
14189
- export type CreateItamStatusError = ZendeskOpError;
14958
+ export type CreateItamStatusError = UnprocessableEntity | ZendeskOpError;
14190
14959
  /** Create Asset Status Creates a status. #### Allowed For * Admins */
14191
14960
  export declare const createItamStatus: API.OperationMethod<CreateItamStatusRequest, ItamAssetStatusResponse, CreateItamStatusError, ZendeskOpContext>;
14192
14961
  export type CreateMacroError = ZendeskOpError;
@@ -14264,6 +15033,9 @@ export declare const createSharingAgreement: API.OperationMethod<CreateSharingAg
14264
15033
  export type CreateSLAPolicyError = ZendeskOpError;
14265
15034
  /** Create SLA Policy #### Availability * Accounts on the Support Professional or Suite Growth plan or above #### Allowed For * Admins */
14266
15035
  export declare const createSLAPolicy: API.OperationMethod<CreateSLAPolicyRequest, SLAPolicyResponse, CreateSLAPolicyError, ZendeskOpContext>;
15036
+ export type CreateSubticketError = ZendeskOpError;
15037
+ /** Create Subticket Creates a ticket and links it to the specified task item as a subticket. The parent ticket must not already be a subticket. `subject` and `comment.body` are required. `comment.body` can contain up to 1,000 characters. #### Allowed For * Agents */
15038
+ export declare const createSubticket: API.OperationMethod<CreateSubticketRequest, SubticketCreateResponse, CreateSubticketError, ZendeskOpContext>;
14267
15039
  export type CreateSupportAddressError = ZendeskOpError;
14268
15040
  /** Create Support Address Adds a Zendesk or external support address to your account. To add a Zendesk address, use the following syntax: `{local-part}@{accountname}.zendesk.com`. Example: 'sales-team@example.zendesk.com'. The [local-part](https://en.wikipedia.org/wiki/Email_address#Local-part) can be anything you like. To add an external email address such as help@omniwearshop.com, the email must already exist and you must set up forwarding on your email server. The exact steps depend on your mail server. See [Forwarding incoming email to Zendesk Support](https://support.zendesk.com/hc/en-us/articles/4408836514202). After setting up forwarding, run the [Verify Support Address Forwarding](#verify-support-address-forwarding) endpoint. The address won't work in Zendesk Support until it's been verified. #### Allowed For * Admins * Agents with permission to manage channels and extensions. See the system permissions in [Creating custom agent roles](https://support.zendesk.com/hc/en-us/articles/4408882153882#topic_cxn_hig_bd) in Zendesk help */
14269
15041
  export declare const createSupportAddress: API.OperationMethod<CreateSupportAddressRequest, SupportAddressResponse, CreateSupportAddressError, ZendeskOpContext>;
@@ -14281,7 +15053,7 @@ export type CreateTicketError = ZendeskOpError;
14281
15053
  export declare const createTicket: API.OperationMethod<CreateTicketRequest, TicketResponseOutput, CreateTicketError, ZendeskOpContext>;
14282
15054
  export type CreateTicketContentPinError = BadRequest | Conflict | UnprocessableEntity | ZendeskOpError;
14283
15055
  /** Create Ticket Content Pin Creates a new content pin for a specific ticket. Content pins allow you to link to articles, community posts, or external content for easy reference. #### Allowed For * Admins * Agents */
14284
- export declare const createTicketContentPin: API.OperationMethod<CreateTicketContentPinRequest, TicketContentPin, CreateTicketContentPinError, ZendeskOpContext>;
15056
+ export declare const createTicketContentPin: API.OperationMethod<CreateTicketContentPinRequest, CreateTicketContentPinResponse, CreateTicketContentPinError, ZendeskOpContext>;
14285
15057
  export type CreateTicketFieldError = ZendeskOpError;
14286
15058
  /** Create Ticket Field Creates any of the following custom field types: **Note**: Tags can't be re-used across custom ticket fields. For example, if you configure a tag for a checkbox field, you can't use that tag value for a dropdown (tagger) field option. The use of tags isn't validated and can prevent editing in the future. See [About custom field types](https://support.zendesk.com/hc/en-us/articles/4408838961562) in the Zendesk Help Center. #### Allowed For * Admins #### Field limits We recommend the following best practices for ticket fields limits. Creating more than these amounts can affect performance. * 400 ticket fields per account if your account doesn't have ticket forms * 400 ticket fields per ticket form if your account has ticket forms The following field types have their own limits, enforced on creation: * Two `multi_lookup` fields per account. See [Creating multi-lookup relationship fields](/api-reference/ticketing/lookup_relationships/lookup_relationships/#creating-multi-lookup-relationship-fields) */
14287
15059
  export declare const createTicketField: API.OperationMethod<CreateTicketFieldRequest, TicketFieldResponse, CreateTicketFieldError, ZendeskOpContext>;
@@ -14330,6 +15102,9 @@ export declare const createUserIdentity: API.OperationMethod<CreateUserIdentityR
14330
15102
  export type CreateUserOrganizationMembershipError = ZendeskOpError;
14331
15103
  /** Create Organization Membership for User Assigns a user to a given organization. Returns an error with status 422 if the user is already assigned to the organization. #### Allowed For * Admins * Agents when creating a new organization membership for an end user */
14332
15104
  export declare const createUserOrganizationMembership: API.OperationMethod<CreateUserOrganizationMembershipRequest, OrganizationMembershipResponse, CreateUserOrganizationMembershipError, ZendeskOpContext>;
15105
+ export type CreateUserSuspensionError = BadRequest | NotFound | UnprocessableEntity | ZendeskOpError;
15106
+ /** Create a User Suspension Creates a suspension record for a user. A user can be suspended on specific channels via `suspended_channels`, when [the messaging channel suspension feature](https://support.zendesk.com/hc/en-us/articles/10575252020250-Announcing-user-suspension-from-messaging-channels-only) is enabled on the account. #### Allowed For * Admins * [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 #### OAuth Scopes Requires one of the following OAuth scopes: `users:write` or `write` */
15107
+ export declare const createUserSuspension: API.OperationMethod<CreateUserSuspensionRequest, SuspensionResponse, CreateUserSuspensionError, ZendeskOpContext>;
14333
15108
  export type CreateViewError = ZendeskOpError;
14334
15109
  /** Create View #### Allowed For * Agents #### JSON Format The JSON format consists of one property, a `view` object that lists the values to set when the view is created. **Note**: The request must include at least one condition in the `all` array that checks one of the following fields: `status`, `type`, `group_id`, `assignee_id`, or `requester_id`. The `restriction` object has the following properties. If `type` is "Group", the `ids` property is the preferred method of specifying the group id or ids. #### Example Request Body ```js { "view": { "title": "Kelly's tickets", "raw_title": "{{dc.tickets_assigned_to_kelly}}", "description": "Tickets that are assigned to Kelly", "active": true, "restriction": { "type": "User", "id": "213977756" }, "all": [ { "field": "status", "operator": "less_than", "value": "solved" }, { "field": "group_id", "operator": "is", "value": "24000932" }, { "field": "custom_fields_360011872073", "operator": "is", "value": "Canada" }, ... ], "output": { "columns": ["status", "requester", "assignee"], "group_by": "assignee", "group_order": "desc", "sort_by": "status", "sort_order": "desc" } } } ``` #### View columns The `output` request parameter lets you specify what columns to include in the view in the agent interface. Example: `"output": {"columns": ["status", "description", "priority"]}`. The following table lists possible columns for views in the agent UI and the corresponding values in the `columns` array. For custom fields, specify the id of the custom field in the `columns` array. You can specify a total of 10 columns to a view. #### View sorting You can group and sort items in the view by adding items to the `output` parameter: */
14335
15110
  export declare const createView: API.OperationMethod<CreateViewRequest, ViewResponse, CreateViewError, ZendeskOpContext>;
@@ -14429,16 +15204,16 @@ export declare const deleteGroupSLAPolicy: API.OperationMethod<DeleteGroupSLAPol
14429
15204
  export type DeleteItamAssetError = ZendeskOpError;
14430
15205
  /** Delete Asset Deletes an asset with the specified id. #### Allowed For * Admins */
14431
15206
  export declare const deleteItamAsset: API.OperationMethod<DeleteItamAssetRequest, DeleteItamAssetResponse, DeleteItamAssetError, ZendeskOpContext>;
14432
- export type DeleteItamAssetTypeError = ZendeskOpError;
14433
- /** Delete Asset Type Deletes an asset type with the specified id. #### Allowed For * Admins */
15207
+ export type DeleteItamAssetTypeError = UnprocessableEntity | ZendeskOpError;
15208
+ /** Delete Asset Type Deletes an asset type with the specified id. The deletion will fail if the asset type is one of the predefined standard asset types, is a base asset type, has child asset types, has asset records, or still has custom field keys assigned to it. #### Allowed For * Admins */
14434
15209
  export declare const deleteItamAssetType: API.OperationMethod<DeleteItamAssetTypeRequest, DeleteItamAssetTypeResponse, DeleteItamAssetTypeError, ZendeskOpContext>;
14435
- export type DeleteItamAssetTypeFieldError = ZendeskOpError;
14436
- /** Delete Asset Field Deletes an asset field with the specified id. #### Allowed For * Admins */
14437
- export declare const deleteItamAssetTypeField: API.OperationMethod<DeleteItamAssetTypeFieldRequest, DeleteItamAssetTypeFieldResponse, DeleteItamAssetTypeFieldError, ZendeskOpContext>;
15210
+ export type DeleteItamFieldError = UnprocessableEntity | ZendeskOpError;
15211
+ /** Delete Field Deletes an asset field. #### Allowed For * Admins */
15212
+ export declare const deleteItamField: API.OperationMethod<DeleteItamFieldRequest, DeleteItamFieldResponse, DeleteItamFieldError, ZendeskOpContext>;
14438
15213
  export type DeleteItamLocationError = ZendeskOpError;
14439
15214
  /** Delete Asset Location Deletes a location with the specified id. #### Allowed For * Admins */
14440
15215
  export declare const deleteItamLocation: API.OperationMethod<DeleteItamLocationRequest, DeleteItamLocationResponse, DeleteItamLocationError, ZendeskOpContext>;
14441
- export type DeleteItamStatusError = ZendeskOpError;
15216
+ export type DeleteItamStatusError = UnprocessableEntity | ZendeskOpError;
14442
15217
  /** Delete Asset Status Deletes a status with the specified id. Standard (system-defined) statuses cannot be deleted. Statuses assigned to assets cannot be deleted. #### Allowed For * Admins */
14443
15218
  export declare const deleteItamStatus: API.OperationMethod<DeleteItamStatusRequest, DeleteItamStatusResponse, DeleteItamStatusError, ZendeskOpContext>;
14444
15219
  export type DeleteMacroError = ZendeskOpError;
@@ -14507,6 +15282,9 @@ export declare const deleteTagsTicket: API.OperationMethod<DeleteTagsTicketReque
14507
15282
  export type DeleteTargetError = ZendeskOpError;
14508
15283
  /** Delete Target #### Allowed For * Admins */
14509
15284
  export declare const deleteTarget: API.OperationMethod<DeleteTargetRequest, DeleteTargetResponse, DeleteTargetError, ZendeskOpContext>;
15285
+ export type DeleteTaskListError = ZendeskOpError;
15286
+ /** Delete Task List Deletes the task list with the specified id. #### Allowed For * Agents */
15287
+ export declare const deleteTaskList: API.OperationMethod<DeleteTaskListRequest, DeleteTaskListResponse, DeleteTaskListError, ZendeskOpContext>;
14510
15288
  export type DeleteTaskListTemplateError = ZendeskOpError;
14511
15289
  /** Delete Task List Template Deletes a task list template with the specified id. #### Allowed For * Admins */
14512
15290
  export declare const deleteTaskListTemplate: API.OperationMethod<DeleteTaskListTemplateRequest, DeleteTaskListTemplateResponse, DeleteTaskListTemplateError, ZendeskOpContext>;
@@ -14515,7 +15293,7 @@ export type DeleteTicketError = ZendeskOpError;
14515
15293
  export declare const deleteTicket: API.OperationMethod<DeleteTicketRequest, DeleteTicketResponse, DeleteTicketError, ZendeskOpContext>;
14516
15294
  export type DeleteTicketContentPinError = NotFound | ZendeskOpError;
14517
15295
  /** Delete Content Pin from Ticket Deletes a specific content pin from a ticket. #### Allowed For * Agents */
14518
- export declare const deleteTicketContentPin: API.OperationMethod<DeleteTicketContentPinRequest, TicketContentPin, DeleteTicketContentPinError, ZendeskOpContext>;
15296
+ export declare const deleteTicketContentPin: API.OperationMethod<DeleteTicketContentPinRequest, DeleteTicketContentPinResponse, DeleteTicketContentPinError, ZendeskOpContext>;
14519
15297
  export type DeleteTicketFieldError = ZendeskOpError;
14520
15298
  /** Delete Ticket Field #### Allowed for * Admins */
14521
15299
  export declare const deleteTicketField: API.OperationMethod<DeleteTicketFieldRequest, DeleteTicketFieldResponse, DeleteTicketFieldError, ZendeskOpContext>;
@@ -14561,6 +15339,9 @@ export declare const deleteUserIdentity: API.OperationMethod<DeleteUserIdentityR
14561
15339
  export type DeleteUserOrganizationMembershipError = ZendeskOpError;
14562
15340
  /** Delete Organization Membership for User Immediately removes a user from an organization and schedules a job to unassign all working tickets currently assigned to the user and organization combination. The `organization_id` of the unassigned tickets is set to null. #### Allowed for * Admins * Agents when deleting an organization membership for an end user */
14563
15341
  export declare const deleteUserOrganizationMembership: API.OperationMethod<DeleteUserOrganizationMembershipRequest, DeleteUserOrganizationMembershipResponse, DeleteUserOrganizationMembershipError, ZendeskOpContext>;
15342
+ export type DeleteUserSuspensionError = BadRequest | NotFound | ZendeskOpError;
15343
+ /** Delete the User Suspension Unsuspends the user by deleting their suspension record. #### Allowed For * Admins * [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 #### OAuth Scopes Requires one of the following OAuth scopes: `users:write` or `write` */
15344
+ export declare const deleteUserSuspension: API.OperationMethod<DeleteUserSuspensionRequest, DeleteUserSuspensionResponse, DeleteUserSuspensionError, ZendeskOpContext>;
14564
15345
  export type DeleteUserTagsError = ZendeskOpError;
14565
15346
  /** Remove User Tags #### Allowed For * Agents */
14566
15347
  export declare const deleteUserTags: API.OperationMethod<DeleteUserTagsRequest, TagsByObjectIdResponse, DeleteUserTagsError, ZendeskOpContext>;
@@ -14743,10 +15524,13 @@ export type GetItamAssetError = ZendeskOpError;
14743
15524
  export declare const getItamAsset: API.OperationMethod<GetItamAssetRequest, ItamAssetResponse, GetItamAssetError, ZendeskOpContext>;
14744
15525
  export type GetItamAssetTypeError = ZendeskOpError;
14745
15526
  /** Show Asset Type Returns an asset type with the specified id. #### Allowed For * Agents */
14746
- export declare const getItamAssetType: API.OperationMethod<GetItamAssetTypeRequest, ItamAssetTypeResponse, GetItamAssetTypeError, ZendeskOpContext>;
15527
+ export declare const getItamAssetType: API.OperationMethod<GetItamAssetTypeRequest, ItamAssetTypeResponseOutput, GetItamAssetTypeError, ZendeskOpContext>;
14747
15528
  export type GetItamAssetTypeFieldError = ZendeskOpError;
14748
15529
  /** Show Asset Field Returns an asset field with the specified id. #### Allowed For * Agents */
14749
15530
  export declare const getItamAssetTypeField: API.OperationMethod<GetItamAssetTypeFieldRequest, ItamAssetFieldResponse, GetItamAssetTypeFieldError, ZendeskOpContext>;
15531
+ export type GetItamFieldError = ZendeskOpError;
15532
+ /** Show Field Shows an asset field. #### Allowed For * Agents */
15533
+ export declare const getItamField: API.OperationMethod<GetItamFieldRequest, ItamAssetFieldResponse, GetItamFieldError, ZendeskOpContext>;
14750
15534
  export type GetItamLocationError = ZendeskOpError;
14751
15535
  /** Show Asset Location Returns the location with the specified id. #### Allowed For * Agents */
14752
15536
  export declare const getItamLocation: API.OperationMethod<GetItamLocationRequest, ItamAssetLocationResponse, GetItamLocationError, ZendeskOpContext>;
@@ -14913,7 +15697,7 @@ export type GettingTwicketStatusError = ZendeskOpError;
14913
15697
  /** List Ticket statuses #### Allowed For * Agents */
14914
15698
  export declare const gettingTwicketStatus: API.OperationMethod<GettingTwicketStatusRequest, TwitterChannelTwicketStatusResponse, GettingTwicketStatusError, ZendeskOpContext>;
14915
15699
  export type GetTokenError = ZendeskOpError;
14916
- /** Show Token Returns the properties of the specified token. For security reasons, only the first 10 characters of the access token are included. In the first endpoint, `id` is a token id, not the full token. In the second endpoint, include an `Authorization: Bearer` header with the full token to get its associated properties. Example: ```sh curl https://{subdomain}.zendesk.com/api/v2/oauth/tokens/current \ -H 'Authorization: Bearer ${authToken}' \ -v -u {email_address}/token:{api_token} ``` #### Allowed for * Admins, Agents, End Users */
15700
+ /** Show Token Returns the properties of the specified token. For security reasons, only the first 10 characters of the access token are included. In the first endpoint, `id` is a token id, not the full token. In the second endpoint, include an `Authorization: Bearer` header with the full token to get its associated properties. Example: ```sh curl https://{subdomain}.zendesk.com/api/v2/oauth/tokens/current \ -H 'Authorization: Bearer ${authToken}' ``` #### Allowed for * Admins, Agents, End Users */
14917
15701
  export declare const getToken: API.OperationMethod<GetTokenRequest, OAuthTokenResponse, GetTokenError, ZendeskOpContext>;
14918
15702
  export type GetTriggerError = ZendeskOpError;
14919
15703
  /** Show Ticket Trigger #### Allowed For * Agents The Via Type value is a number instead of a text string. See [Via types reference](/documentation/ticketing/reference-guides/via-types/) for the keys. */
@@ -14954,6 +15738,9 @@ export declare const getUserPasswordRequirements: API.OperationMethod<GetUserPas
14954
15738
  export type GetUserRelatedError = ZendeskOpError;
14955
15739
  /** Show User Related Information */
14956
15740
  export declare const getUserRelated: API.OperationMethod<GetUserRelatedRequest, UserRelatedResponse, GetUserRelatedError, ZendeskOpContext>;
15741
+ export type GetUserSuspensionError = NotFound | ZendeskOpError;
15742
+ /** Show a User's Suspension Shows the suspension details for a user. #### Allowed For * Agents #### OAuth Scopes Requires one of the following OAuth scopes: `users:read` or `read` */
15743
+ export declare const getUserSuspension: API.OperationMethod<GetUserSuspensionRequest, SuspensionResponse, GetUserSuspensionError, ZendeskOpContext>;
14957
15744
  export type GetViewError = ZendeskOpError;
14958
15745
  /** Show View In addition to numeric IDs, the `view_id` path parameter accepts the string aliases `"incoming"`, `"my"`, and `"my_groups"` to retrieve the corresponding built-in views. #### Allowed For * Agents */
14959
15746
  export declare const getView: API.OperationMethod<GetViewRequest, ViewResponse, GetViewError, ZendeskOpContext>;
@@ -15002,6 +15789,9 @@ export declare const incrementalUserExportTime: API.OperationMethod<IncrementalU
15002
15789
  export type ItamAssetBulkJobsError = ZendeskOpError;
15003
15790
  /** Asset Bulk Jobs Queues a background job to perform bulk actions on up to 100 asset records per request. Takes a `job` object with two nested fields: * `action`, one of: * `"create"` * `"update"` * `"delete"` * `"delete_by_external_id"` * `items` * For a `"create"` action, an array of JSON objects representing the assets being created * For an `"update"` action, an array of JSON objects representing the assets being updated (must include `id` attribute) * For a `"delete"` action, an array of strings representing Zendesk asset ids * For a `"delete_by_external_id"` action, an array of strings representing external ids Note: For create and update actions, the `asset_type_id`, `status_id`, and `location_id` fields can be specified using either the ID or the name of the resource. For example, you can use `"asset_type_id": "01K9BW852KHGF59W0TM02J2F6H"` or `"asset_type": "Laptop"`. #### Allowed For * Admins #### 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. */
15004
15791
  export declare const itamAssetBulkJobs: API.OperationMethod<ItamAssetBulkJobsRequest, ItamAssetBulkJobResponse, ItamAssetBulkJobsError, ZendeskOpContext>;
15792
+ export type LinkExistingTicketError = ZendeskOpError;
15793
+ /** Link Existing Ticket Links an existing ticket to the specified task item. A task item can have one linked ticket. #### Allowed For * Agents */
15794
+ export declare const linkExistingTicket: API.OperationMethod<LinkExistingTicketRequest, TaskObjectLinkResponse, LinkExistingTicketError, ZendeskOpContext>;
15005
15795
  export type ListAccessRuleDefinitionsError = ZendeskOpError;
15006
15796
  /** List Access Rule Definitions Returns the available field definitions and operators that can be used when creating access rules for a custom object. This endpoint helps you understand what fields are available for filtering and what operators can be applied to each field type. #### Allowed For * Admins */
15007
15797
  export declare const listAccessRuleDefinitions: API.OperationMethod<ListAccessRuleDefinitionsRequest, AccessRuleDefinitionsResponse, ListAccessRuleDefinitionsError, ZendeskOpContext>;
@@ -15029,9 +15819,9 @@ export declare const listActiveViews: API.OperationMethod<ListActiveViewsRequest
15029
15819
  export type ListActivitiesError = ZendeskOpError;
15030
15820
  /** List Activities Lists ticket activities in the last 30 days affecting the agent making the request. Also sideloads the following arrays of user records: - actors - All actors involved in the listed activities - users - All users involved in the listed activities #### Pagination - Cursor pagination (recommended) - Offset pagination See [Pagination](/api-reference/introduction/pagination/). Returns a maximum of 100 records per page. #### Allowed For * Agents */
15031
15821
  export declare const listActivities: API.PaginatedOperationMethod<ListActivitiesRequest, ActivitiesResponse, ListActivitiesError, ZendeskOpContext, ActivityObject>;
15032
- export type ListAGentAttributeValuesError = ZendeskOpError;
15822
+ export type ListAgentAttributeValuesError = ZendeskOpError;
15033
15823
  /** List Agent Attribute Values Returns an attribute value. #### Allowed For * Agents * Light agents and contributors */
15034
- export declare const listAGentAttributeValues: API.OperationMethod<ListAGentAttributeValuesRequest, SkillBasedRoutingAttributeValuesResponse, ListAGentAttributeValuesError, ZendeskOpContext>;
15824
+ export declare const listAgentAttributeValues: API.OperationMethod<ListAgentAttributeValuesRequest, SkillBasedRoutingAttributeValuesResponse, ListAgentAttributeValuesError, ZendeskOpContext>;
15035
15825
  export type ListApprovalRequestsError = ZendeskOpError;
15036
15826
  /** List Approval Requests Lists all approval requests for the current account with optional filtering by status and assignee. #### Allowed For * Admins #### Query Parameters #### Filtering Logic - When multiple values are provided for a filter, `or` logic is used. For example, `filter[status]=active,approved` is evaluated as `status=active OR status=approved`. - If multiple filters are applied to a single request, `AND` logic is used. For example, `filter[status]=active AND filter[assignee_user_id]=123`. - Each filter parameter supports a maximum 100 values. - Numeric ids must be valid integers. #### Pagination This endpoint supports cursor-based pagination. Use `after_cursor` and `before_cursor` parameters to navigate through results. */
15037
15827
  export declare const listApprovalRequests: API.OperationMethod<ListApprovalRequestsRequest, ApprovalRequestsListResponse, ListApprovalRequestsError, ZendeskOpContext>;
@@ -15146,7 +15936,7 @@ export declare const listGroupSLAPolicies: API.OperationMethod<ListGroupSLAPolic
15146
15936
  export type ListGroupUsersError = ZendeskOpError;
15147
15937
  /** List Users By Group #### Pagination * Cursor pagination (recommended) * Offset pagination See [Pagination](/api-reference/introduction/pagination/). Returns a maximum of 100 records per page. #### Allowed For * Admins, Agents and Light Agents */
15148
15938
  export declare const listGroupUsers: API.OperationMethod<ListGroupUsersRequest, UsersResponse, ListGroupUsersError, ZendeskOpContext>;
15149
- export type ListItamAssetsError = ZendeskOpError;
15939
+ export type ListItamAssetsError = BadRequest | ZendeskOpError;
15150
15940
  /** List Assets Lists all assets for all asset types. #### Filtering Use the `filter[ids]` or `filter[external_ids]` query parameters to filter results by asset IDs or external IDs. Both parameters accept comma-separated values. #### Pagination * [Cursor pagination](/api-reference/introduction/pagination/#cursor-pagination) only. #### Allowed For * Agents */
15151
15941
  export declare const listItamAssets: API.OperationMethod<ListItamAssetsRequest, ItamAssetsResponse, ListItamAssetsError, ZendeskOpContext>;
15152
15942
  export type ListItamAssetTypeFieldsError = ZendeskOpError;
@@ -15154,8 +15944,11 @@ export type ListItamAssetTypeFieldsError = ZendeskOpError;
15154
15944
  export declare const listItamAssetTypeFields: API.OperationMethod<ListItamAssetTypeFieldsRequest, ItamAssetTypeFieldsResponse, ListItamAssetTypeFieldsError, ZendeskOpContext>;
15155
15945
  export type ListItamAssetTypesError = ZendeskOpError;
15156
15946
  /** List Asset Types Lists all asset types. #### Allowed For * Agents */
15157
- export declare const listItamAssetTypes: API.OperationMethod<ListItamAssetTypesRequest, ItamAssetTypesResponse, ListItamAssetTypesError, ZendeskOpContext>;
15158
- export type ListItamLocationsError = ZendeskOpError;
15947
+ export declare const listItamAssetTypes: API.OperationMethod<ListItamAssetTypesRequest, ItamAssetTypesResponseOutput, ListItamAssetTypesError, ZendeskOpContext>;
15948
+ export type ListItamFieldsError = ZendeskOpError;
15949
+ /** List Fields Lists all asset fields. #### Pagination * [Cursor pagination](/api-reference/introduction/pagination/#cursor-pagination) only. #### Allowed For * Agents */
15950
+ export declare const listItamFields: API.OperationMethod<ListItamFieldsRequest, ListItamFieldsResponse, ListItamFieldsError, ZendeskOpContext>;
15951
+ export type ListItamLocationsError = BadRequest | ZendeskOpError;
15159
15952
  /** List Asset Locations Lists all locations. #### Pagination * [Cursor pagination](/api-reference/introduction/pagination/#cursor-pagination) only. #### Allowed For * Agents */
15160
15953
  export declare const listItamLocations: API.OperationMethod<ListItamLocationsRequest, ListItamLocationsResponse, ListItamLocationsError, ZendeskOpContext>;
15161
15954
  export type ListItamStatusesError = ZendeskOpError;
@@ -15164,6 +15957,9 @@ export declare const listItamStatuses: API.OperationMethod<ListItamStatusesReque
15164
15957
  export type ListJobStatusesError = ZendeskOpError;
15165
15958
  /** List Job Statuses Shows the statuses for background jobs. Statuses are sorted first by completion date and then by creation date in descending order. #### Allowed For: * Agents #### Pagination * Cursor pagination See [Pagination](/api-reference/introduction/pagination/). */
15166
15959
  export declare const listJobStatuses: API.OperationMethod<ListJobStatusesRequest, JobStatusesResponse, ListJobStatusesError, ZendeskOpContext>;
15960
+ export type ListLinkedTicketsForTaskItemError = ZendeskOpError;
15961
+ /** List Linked Tickets Returns tickets linked to the specified task item. #### Allowed For * Agents */
15962
+ export declare const listLinkedTicketsForTaskItem: API.OperationMethod<ListLinkedTicketsForTaskItemRequest, TaskObjectLinksResponse, ListLinkedTicketsForTaskItemError, ZendeskOpContext>;
15167
15963
  export type ListLocalesError = ZendeskOpError;
15168
15964
  /** List Locales Lists the translation locales available for the account. **Note**: You can alter the list by passing an updated `locale_ids` array to the [Update Account Settings](/api-reference/ticketing/account-configuration/account_settings/#update-account-settings) endpoint. #### Allowed For * Anyone */
15169
15965
  export declare const listLocales: API.OperationMethod<ListLocalesRequest, LocalesResponse, ListLocalesError, ZendeskOpContext>;
@@ -15245,6 +16041,9 @@ export declare const listOrganizationTickets: API.OperationMethod<ListOrganizati
15245
16041
  export type ListOrganizationUsersError = ZendeskOpError;
15246
16042
  /** List Organization Users Returns a list of users for a specific organization. #### Pagination * Cursor pagination (recommended) * Offset pagination See [Pagination](/api-reference/introduction/pagination/). Returns a maximum of 100 records per page. #### Allowed For * Admins, Agents and Light Agents */
15247
16043
  export declare const listOrganizationUsers: API.OperationMethod<ListOrganizationUsersRequest, UsersResponse, ListOrganizationUsersError, ZendeskOpContext>;
16044
+ export type ListParentTicketReferencesError = ZendeskOpError;
16045
+ /** List Parent Ticket References Returns parent tickets and task items that link to the specified subticket. If the ticket has no parent task links, `parent_ticket_tasks` is empty. #### Allowed For * Agents */
16046
+ export declare const listParentTicketReferences: API.OperationMethod<ListParentTicketReferencesRequest, ParentTicketTasksResponse, ListParentTicketReferencesError, ZendeskOpContext>;
15248
16047
  export type ListPermissionPoliciesError = ZendeskOpError;
15249
16048
  /** List Permission Policies Returns a list of permission policies for a custom object. Permission policies define what actions (create, read, update, delete) different roles can perform on custom object records. #### Allowed For * Admins */
15250
16049
  export declare const listPermissionPolicies: API.OperationMethod<ListPermissionPoliciesRequest, PermissionPoliciesResponse, ListPermissionPoliciesError, ZendeskOpContext>;
@@ -15353,12 +16152,18 @@ export declare const listTicketForms: API.OperationMethod<ListTicketFormsRequest
15353
16152
  export type ListTicketFormStatusesError = ZendeskOpError;
15354
16153
  /** List Ticket Form Statuses Fetches all of the ticket form statuses for the account. Supports filtering by ticket form ID and other criteria using query parameters. #### Allowed For * Admins * Agents */
15355
16154
  export declare const listTicketFormStatuses: API.OperationMethod<ListTicketFormStatusesRequest, TicketFormStatusesResponse, ListTicketFormStatusesError, ZendeskOpContext>;
16155
+ export type ListTicketGroupSlaPolicyMetricsError = ZendeskOpError;
16156
+ /** List Ticket Group SLA Policy Metrics Returns the Group SLA (OLA) policy metrics for a specific ticket. #### Availability * Accounts on the Enterprise plan #### Allowed For * Admins */
16157
+ export declare const listTicketGroupSlaPolicyMetrics: API.OperationMethod<ListTicketGroupSlaPolicyMetricsRequest, ListTicketGroupSlaPolicyMetricsResponse, ListTicketGroupSlaPolicyMetricsError, ZendeskOpContext>;
15356
16158
  export type ListTicketIncidentsError = ZendeskOpError;
15357
16159
  /** List Ticket Incidents #### Allowed For * Agents #### Pagination * Cursor pagination (recommended) * Offset pagination See [Pagination](/api-reference/introduction/pagination/). */
15358
16160
  export declare const listTicketIncidents: API.OperationMethod<ListTicketIncidentsRequest, ListTicketIncidentsResponse2, ListTicketIncidentsError, ZendeskOpContext>;
15359
16161
  export type ListTicketMetricEventsError = ZendeskOpError;
15360
16162
  /** List Ticket Metric Events Returns ticket metric events that occurred on or after the start time. Cursor pagination returns a maximum of 100 records per page. Events are listed in chronological order. If the results are not paginated, events will be returned as a time-based incremental export. See [Time-based incremental exports](/documentation/ticketing/managing-tickets/using-the-incremental-export-api#time-based-incremental-exports). #### Pagination * Cursor pagination See [Pagination](/api-reference/introduction/pagination/). #### Allowed For * Admins */
15361
16163
  export declare const listTicketMetricEvents: API.OperationMethod<ListTicketMetricEventsRequest, ListTicketMetricEventsResponse, ListTicketMetricEventsError, ZendeskOpContext>;
16164
+ export type ListTicketMetricEventsByTicketError = ZendeskOpError;
16165
+ /** List Ticket Metric Events by Ticket Lists the ticket metric events for a specific ticket. Returns a sorted list by metric instance, grouped by metric name. #### Allowed For * Admins, Agents */
16166
+ export declare const listTicketMetricEventsByTicket: API.OperationMethod<ListTicketMetricEventsByTicketRequest, ListTicketMetricEventsByTicketResponse, ListTicketMetricEventsByTicketError, ZendeskOpContext>;
15362
16167
  export type ListTicketMetricsError = ZendeskOpError;
15363
16168
  /** List Ticket Metrics Returns a list of tickets with their metrics. Tickets are ordered chronologically by created date, from newest to oldest. The last ticket listed may not be the absolute oldest ticket in your account due to ticket archiving. Archived tickets are not included in the response. See [About archived tickets](https://support.zendesk.com/hc/en-us/articles/4408887617050) in Zendesk help. #### Pagination - Cursor pagination (recommended) - Offset pagination See [Pagination](/api-reference/introduction/pagination/). Returns a maximum of 100 records per page. #### Allowed For * Agents */
15364
16169
  export declare const listTicketMetrics: API.OperationMethod<ListTicketMetricsRequest, TicketMetricsResponse, ListTicketMetricsError, ZendeskOpContext>;
@@ -15380,6 +16185,9 @@ export declare const listTicketSkips: API.OperationMethod<ListTicketSkipsRequest
15380
16185
  export type ListTicketSkipsByTicketError = ZendeskOpError;
15381
16186
  /** List Ticket Skips By Ticket Returns the skips for a specific ticket. Archived tickets are not included in the response. See [About archived tickets](https://support.zendesk.com/hc/en-us/articles/4408887617050) in the Support Help Center. #### Pagination - Cursor pagination (recommended) - Offset pagination See [Pagination](/api-reference/introduction/pagination/). Returns a maximum of 100 records per page. #### Allowed For * Agents with "View only" or higher reports permissions in Support. These permissions are distinct from Explore permissions. * Agents retrieving their own skips */
15382
16187
  export declare const listTicketSkipsByTicket: API.OperationMethod<ListTicketSkipsByTicketRequest, TicketSkipsResponseOutput, ListTicketSkipsByTicketError, ZendeskOpContext>;
16188
+ export type ListTicketSlaPolicyMetricsError = ZendeskOpError;
16189
+ /** List Ticket SLA Policy Metrics Returns the SLA policy metrics for a specific ticket. #### Availability * Accounts on the Enterprise plan #### Allowed For * Admins */
16190
+ export declare const listTicketSlaPolicyMetrics: API.OperationMethod<ListTicketSlaPolicyMetricsRequest, ListTicketSlaPolicyMetricsResponse, ListTicketSlaPolicyMetricsError, ZendeskOpContext>;
15383
16191
  export type ListTriggerActionConditionDefinitionsError = ZendeskOpError;
15384
16192
  /** List Ticket Trigger Action and Condition Definitions Returns the definitions of the actions a ticket trigger can perform and the definitions of the conditions under which a ticket trigger can execute. The definition of the action includes a title ("Status"), a type ("list"), and possible values. The definition of the condition includes the same fields as well as the possible operators. For a list of supported actions, see the [Actions reference](/documentation/ticketing/reference-guides/actions-reference) For a list of supported conditions, see the [Conditions reference](/documentation/ticketing/reference-guides/conditions-reference) #### Allowed For * Agents */
15385
16193
  export declare const listTriggerActionConditionDefinitions: API.OperationMethod<ListTriggerActionConditionDefinitionsRequest, TriggerDefinitionResponse, ListTriggerActionConditionDefinitionsError, ZendeskOpContext>;
@@ -15645,7 +16453,7 @@ export type SetTagsTicketError = ZendeskOpError;
15645
16453
  /** Set Tags #### Allowed For * Agents */
15646
16454
  export declare const setTagsTicket: API.OperationMethod<SetTagsTicketRequest, TagsByObjectIdResponse, SetTagsTicketError, ZendeskOpContext>;
15647
16455
  export type SetTicketAttributeValuesError = ZendeskOpError;
15648
- /** Set Ticket Attribute Values Adds the specified attributes if no attributes exists, or replaces all existing attributes with the specified attributes. Invalid or deleted attributes are ignored. #### Allowed For * Admins */
16456
+ /** Set Ticket Attribute Values Adds the specified attributes if no attributes exists, or replaces all existing attributes with the specified attributes. Invalid or deleted attributes are ignored. #### Allowed For * Admins * [Agents in custom role with permission to manage skills](https://support.zendesk.com/hc/en-us/articles/4408882153882) * Agents, when the account setting for editing ticket skills is enabled for all agents */
15649
16457
  export declare const setTicketAttributeValues: API.OperationMethod<SetTicketAttributeValuesRequest, SkillBasedRoutingAttributeValuesResponse, SetTicketAttributeValuesError, ZendeskOpContext>;
15650
16458
  export type SetUserPasswordError = ZendeskOpError;
15651
16459
  /** Set a User's Password An admin can set a user's password only if the setting is enabled in Zendesk Support under **Settings** > **Security** > **Global**. The setting is off by default. Only the account owner can access and change this setting. #### Allowed For * Admins */
@@ -15680,6 +16488,9 @@ export declare const triggerRevision: API.OperationMethod<TriggerRevisionRequest
15680
16488
  export type UnassignOrganizationError = ZendeskOpError;
15681
16489
  /** Unassign Organization Immediately removes a user from an organization and schedules a job to unassign all working tickets currently assigned to the user and organization combination. The `organization_id` of the unassigned tickets is set to null. #### Allowed For * Agents */
15682
16490
  export declare const unassignOrganization: API.OperationMethod<UnassignOrganizationRequest, UnassignOrganizationResponse, UnassignOrganizationError, ZendeskOpContext>;
16491
+ export type UnlinkTicketError = ZendeskOpError;
16492
+ /** Unlink Ticket Deletes the link between the specified task item and ticket. This does not delete the ticket or the task item. #### Allowed For * Agents */
16493
+ export declare const unlinkTicket: API.OperationMethod<UnlinkTicketRequest, UnlinkTicketResponse, UnlinkTicketError, ZendeskOpContext>;
15683
16494
  export type UpdateAccessRuleError = ZendeskOpError;
15684
16495
  /** Update Access Rule Updates an existing access rule for a custom object. #### Allowed For * Admins */
15685
16496
  export declare const updateAccessRule: API.OperationMethod<UpdateAccessRuleRequest, AccessRuleResponse, UpdateAccessRuleError, ZendeskOpContext>;
@@ -15698,6 +16509,9 @@ export declare const updateAttribute: API.OperationMethod<UpdateAttributeRequest
15698
16509
  export type UpdateAttributeValueError = ZendeskOpError;
15699
16510
  /** Update Attribute Value Updates the name and ticket conditions of a skill. When a ticket is created, the skill is applied to a ticket if the ticket meets the specified condition or conditions. See the [Conditions reference](/documentation/ticketing/reference-guides/conditions-reference/) for more information. #### Allowed For * Admins * [Agents in custom role with permission to manage skills](https://support.zendesk.com/hc/en-us/articles/4408882153882) */
15700
16511
  export declare const updateAttributeValue: API.OperationMethod<UpdateAttributeValueRequest, SkillBasedRoutingAttributeValueResponse, UpdateAttributeValueError, ZendeskOpContext>;
16512
+ export type UpdateAttributeValuePutError = ZendeskOpError;
16513
+ /** Update Attribute Value Updates the name and ticket conditions of a skill. When a ticket is created, the skill is applied to a ticket if the ticket meets the specified condition or conditions. See the [Conditions reference](/documentation/ticketing/reference-guides/conditions-reference/) for more information. #### Allowed For * Admins * [Agents in custom role with permission to manage skills](https://support.zendesk.com/hc/en-us/articles/4408882153882) */
16514
+ export declare const updateAttributeValuePut: API.OperationMethod<UpdateAttributeValuePutRequest, SkillBasedRoutingAttributeValueResponse, UpdateAttributeValuePutError, ZendeskOpContext>;
15701
16515
  export type UpdateAutomationError = ZendeskOpError;
15702
16516
  /** 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 */
15703
16517
  export declare const updateAutomation: API.OperationMethod<UpdateAutomationRequest, AutomationResponse, UpdateAutomationError, ZendeskOpContext>;
@@ -15717,7 +16531,7 @@ export type UpdateCustomObjectError = ZendeskOpError;
15717
16531
  /** Update Custom Object Updates an individual custom object. The updating rules are as follows: * Takes a `custom_object` object that specifies the properties to update * The `key` property cannot be updated #### Allowed For * Admins */
15718
16532
  export declare const updateCustomObject: API.OperationMethod<UpdateCustomObjectRequest, CustomObjectResponse, UpdateCustomObjectError, ZendeskOpContext>;
15719
16533
  export type UpdateCustomObjectFieldError = ZendeskOpError;
15720
- /** Update Custom Object Field Updates individual custom object fields. The updating rules are as follows: * Takes a `custom_object_field` object that specifies the properties to update. * The `key` property cannot be updated. * If updating a standard field, only the `title`, `description`, and `properties` attributes can be updated. * Standard name field is always required. Therefore, the `required` property for standard name field isn't editable. * The `properties` parameter is comprised of four parts and can't be changed if any records exist for the object. * `autoincrement_enabled`: A Boolean that enables and disables autonumbering. Must be false if is_unique is true. * `autoincrement_prefix`: A string value that is used as a prefix to the autogenerated numbers. It can't exceed 30 characters. * `autoincrement_padding`: An integer specifying the starting number of digits in the autogenerated numbers. This value may be between 0-9. However, if you create records in excess of of these digits, additional digits are added as necessary. * `autoincrement_next_sequence`: An integer that will be used as the next number in the autonumbering sequence. It can't be negative or less than the current autonumbering value. * `is_unique`: A Boolean that enforces uniqueness for manually entered record names. When true, custom object record names must be unique. Must be false if autoincrement_enabled is true. #### Updating drop-down field options You can also use the update endpoint to add, update, or remove options in a drop-down custom field. Updating field options for multi-select fields works exactly the same as drop-down field options. **Important**: Unless you want to remove some options, you must specify all existing options in any update request. Omitting an option removes it from the drop-down field, which removes its values from any tickets or macros. Use the `custom_field_options` attribute to update the options. The attribute consists of an array of option objects, with each object consisting of an `id`, `name`, and `value` property. The name and value properties correspond to the "Title" and "Tag" text boxes in the admin interface respectively. For new drop-down options, specify `"id":"null"`. Example request body: ```json {"custom_object_field": { "custom_field_options": [ {"id": "null", "name": "Apple Pie", "value": "apple"}, {"id": "null", "name": "Pecan Pie", "value": "pecan"} ] } } ``` #### Example Request ```bash curl https://{subdomain}.zendesk.com/api/v2/custom_objects/{custom_object_key}/fields/{custom_object_field_key_or_id} -d '{"ticket_field": {"custom_field_options": [{"name": "Apple Pie", "value": "apple"}, {"name": "Pecan Pie", "value": "pecan"}]}}' \ -H "Content-Type: application/json" -X PUT \ -v -u {email_address}/token:{api_token} ``` #### Allowed For * Admins */
16534
+ /** Update Custom Object Field Updates individual custom object fields. The updating rules are as follows: * Takes a `custom_object_field` object that specifies the properties to update. * The `key` property cannot be updated. * If updating a standard field, only the `title`, `description`, and `properties` attributes can be updated. * Standard name field is always required. Therefore, the `required` property for standard name field isn't editable. * The `properties` parameter is comprised of four parts and can't be changed if any records exist for the object. * `autoincrement_enabled`: A Boolean that enables and disables autonumbering. Must be false if is_unique is true. * `autoincrement_prefix`: A string value that is used as a prefix to the autogenerated numbers. It can't exceed 30 characters. * `autoincrement_padding`: An integer specifying the starting number of digits in the autogenerated numbers. This value may be between 0-9. However, if you create records in excess of of these digits, additional digits are added as necessary. * `autoincrement_next_sequence`: An integer that will be used as the next number in the autonumbering sequence. It can't be negative or less than the current autonumbering value. * `is_unique`: A Boolean that enforces uniqueness for manually entered record names. When true, custom object record names must be unique. Must be false if autoincrement_enabled is true. #### Updating drop-down field options You can also use the update endpoint to add, update, or remove options in a drop-down custom field. Updating field options for multi-select fields works exactly the same as drop-down field options. **Important**: Unless you want to remove some options, you must specify all existing options in any update request. Omitting an option removes it from the drop-down field, which removes its values from any tickets or macros. Use the `custom_field_options` attribute to update the options. The attribute consists of an array of option objects, with each object consisting of an `id`, `name`, and `value` property. The name and value properties correspond to the "Title" and "Tag" text boxes in the admin interface respectively. For new drop-down options, specify `"id":"null"`. Example request body: ```json {"custom_object_field": { "custom_field_options": [ {"id": "null", "name": "Apple Pie", "value": "apple"}, {"id": "null", "name": "Pecan Pie", "value": "pecan"} ] } } ``` #### Example Request ```bash curl https://{subdomain}.zendesk.com/api/v2/custom_objects/{custom_object_key}/fields/{custom_object_field_key_or_id} -d '{"ticket_field": {"custom_field_options": [{"name": "Apple Pie", "value": "apple"}, {"name": "Pecan Pie", "value": "pecan"}]}}' \ -H "Content-Type: application/json" -X PUT \ -v -H "Authorization: Bearer {access_token}" ``` #### Allowed For * Admins */
15721
16535
  export declare const updateCustomObjectField: API.OperationMethod<UpdateCustomObjectFieldRequest, CustomObjectFieldResponse, UpdateCustomObjectFieldError, ZendeskOpContext>;
15722
16536
  export type UpdateCustomObjectRecordError = ZendeskOpError;
15723
16537
  /** Update Custom Object Record Updates an individual custom object record. The updating rules are as follows: * Takes a `custom_object_record` object that specifies the properties to update * The custom object fields should be nested inside a `custom_object_fields` object #### Allowed For * Agents */
@@ -15749,20 +16563,20 @@ export declare const updateGroup: API.OperationMethod<UpdateGroupRequest, GroupR
15749
16563
  export type UpdateGroupSLAPolicyError = ZendeskOpError;
15750
16564
  /** Update Group SLA Policy Updates the specified policy. #### Allowed For * Admins */
15751
16565
  export declare const updateGroupSLAPolicy: API.OperationMethod<UpdateGroupSLAPolicyRequest, GroupSLAPolicyResponse, UpdateGroupSLAPolicyError, ZendeskOpContext>;
15752
- export type UpdateItamAssetError = ZendeskOpError;
16566
+ export type UpdateItamAssetError = UnprocessableEntity | ZendeskOpError;
15753
16567
  /** Update Asset Updates an individual asset. This request takes an `asset` object that specifies the properties to update, with custom field values nested within a `custom_field_values` object. Values are updated only for the properties specified in the request. Any asset properties that aren't specified in the request are unaffected, and their values are preserved for the asset. #### Allowed For * Admins */
15754
16568
  export declare const updateItamAsset: API.OperationMethod<UpdateItamAssetRequest, ItamAssetResponse, UpdateItamAssetError, ZendeskOpContext>;
15755
- export type UpdateItamAssetTypeError = ZendeskOpError;
15756
- /** Update Asset Type Updates an existing asset type. #### Allowed For * Admins */
15757
- export declare const updateItamAssetType: API.OperationMethod<UpdateItamAssetTypeRequest, ItamAssetTypeResponse, UpdateItamAssetTypeError, ZendeskOpContext>;
15758
- export type UpdateItamAssetTypeFieldError = ZendeskOpError;
15759
- /** Update Asset Field Updates an existing asset field with the specified id. #### Allowed For * Admins */
15760
- export declare const updateItamAssetTypeField: API.OperationMethod<UpdateItamAssetTypeFieldRequest, ItamAssetFieldResponse, UpdateItamAssetTypeFieldError, ZendeskOpContext>;
15761
- export type UpdateItamLocationError = ZendeskOpError;
16569
+ export type UpdateItamAssetTypeError = UnprocessableEntity | ZendeskOpError;
16570
+ /** Update Asset Type Updates an existing asset type. All fields are optional. Your request should include only the properties you want to change. The update will fail if you attempt to change the asset type's `parent_id`, the asset type's `name` isn't unique, the hierarchy depth limit would be exceeded, the asset type is one of the predefined standard asset types. To set an icon, send a `multipart/form-data` request instead of JSON — see the "Adding a photo to an asset type" code sample. To remove an existing icon, send `"photo": null` in a normal JSON request. #### Allowed For * Admins */
16571
+ export declare const updateItamAssetType: API.OperationMethod<UpdateItamAssetTypeRequest, ItamAssetTypeResponseOutput, UpdateItamAssetTypeError, ZendeskOpContext>;
16572
+ export type UpdateItamFieldError = UnprocessableEntity | ZendeskOpError;
16573
+ /** Update Field Updates an asset field. #### Allowed For * Admins */
16574
+ export declare const updateItamField: API.OperationMethod<UpdateItamFieldRequest, ItamAssetFieldResponse, UpdateItamFieldError, ZendeskOpContext>;
16575
+ export type UpdateItamLocationError = UnprocessableEntity | ZendeskOpError;
15762
16576
  /** Update Asset Location Updates an existing location. #### Allowed For * Admins */
15763
16577
  export declare const updateItamLocation: API.OperationMethod<UpdateItamLocationRequest, ItamAssetLocationResponse, UpdateItamLocationError, ZendeskOpContext>;
15764
- export type UpdateItamStatusError = ZendeskOpError;
15765
- /** Update Asset Status Updates an existing status. Standard (system-defined) statuses cannot be modified. #### Allowed For * Admins */
16578
+ export type UpdateItamStatusError = UnprocessableEntity | ZendeskOpError;
16579
+ /** Update Asset Status Updates an existing status. Standard (system-defined) statuses cannot be modified. `category` cannot be changed after the status is created — it can only be set on create. #### Allowed For * Admins */
15766
16580
  export declare const updateItamStatus: API.OperationMethod<UpdateItamStatusRequest, ItamAssetStatusResponse, UpdateItamStatusError, ZendeskOpContext>;
15767
16581
  export type UpdateMacroError = ZendeskOpError;
15768
16582
  /** Update Macro #### Allowed For * Agents */
@@ -15798,7 +16612,7 @@ export type UpdateOrganizationError = ZendeskOpError;
15798
16612
  /** Update Organization #### Allowed For * Admins * Agents Agents with no permissions restrictions can only update "notes" on organizations. **Note:** Updating an organization's `domain_names` property overwrites all existing `domain_names` values. To prevent this, submit a complete list of `domain_names` for the organization in your request. #### Example Request ```js { "organization": { "notes": "Something interesting" } } ``` */
15799
16613
  export declare const updateOrganization: API.OperationMethod<UpdateOrganizationRequest, OrganizationResponse, UpdateOrganizationError, ZendeskOpContext>;
15800
16614
  export type UpdateOrganizationFieldError = ZendeskOpError;
15801
- /** Update Organization 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 dropdown or multiselect options. When updating a dropdown or multiselect field, note the following information: - 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 the `name` and `value` - To update an existing option, pass its `id` along with the `name` and `value` - To reorder 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/organization_fields/{organization_field_id} \ -H "Content-Type: application/json" -X PUT \ -d '{"organization_field": {"custom_field_options": [{"id": 124, "name": "Option 2", "value": "option_2"}, {"id": 123, "name": "Option 1", "value": "option_1"}, {"id": 125, "name": "Option 3", "value": "option_3"}]}}' \ -v -u {email_address}/token:{api_token} ``` #### Allowed for * Admins */
16615
+ /** Update Organization 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 dropdown or multiselect options. When updating a dropdown or multiselect field, note the following information: - 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 the `name` and `value` - To update an existing option, pass its `id` along with the `name` and `value` - To reorder 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/organization_fields/{organization_field_id} \ -H "Content-Type: application/json" -X PUT \ -d '{"organization_field": {"custom_field_options": [{"id": 124, "name": "Option 2", "value": "option_2"}, {"id": 123, "name": "Option 1", "value": "option_1"}, {"id": 125, "name": "Option 3", "value": "option_3"}]}}' \ -v -H "Authorization: Bearer {access_token}" ``` #### Allowed for * Admins */
15802
16616
  export declare const updateOrganizationField: API.OperationMethod<UpdateOrganizationFieldRequest, OrganizationFieldResponse, UpdateOrganizationFieldError, ZendeskOpContext>;
15803
16617
  export type UpdatePermissionPolicyError = ZendeskOpError;
15804
16618
  /** Update Permission Policy Updates a permission policy for a specific role on a custom object. Define what actions (create, read, update, delete) the role can perform and optionally specify access rules. #### Allowed For * Admins */
@@ -15837,7 +16651,7 @@ export type UpdateTicketError = ZendeskOpError;
15837
16651
  /** Update Ticket */
15838
16652
  export declare const updateTicket: API.OperationMethod<UpdateTicketRequest, TicketUpdateResponseOutput, UpdateTicketError, ZendeskOpContext>;
15839
16653
  export type UpdateTicketFieldError = ZendeskOpError;
15840
- /** Update Ticket Field #### Updating drop-down field options You can also use the update endpoint to add, update, or remove options in a drop-down custom field. Updating field options for multi-select fields works exactly the same as drop-down field options. **Important**: Unless you want to remove some options, you must specify all existing options in any update request. Omitting an option removes it from the drop-down field, which removes its values from any tickets or macros. Use the `custom_field_options` attribute to update the options. The attribute consists of an array of option objects, with each object consisting of a `name`, `value` and `allow_solving` property. The properties correspond to the "Title", "Tag" and "Required to solve" boxes in the admin interface. Example request body: ```json {"ticket_field": { "custom_field_options": [ {"name": "Apple Pie", "value": "apple", "allow_solving": true}, {"name": "Pecan Pie", "value": "pecan", "allow_solving": false} ] } } ``` #### Example Request ```bash curl https://{subdomain}.zendesk.com/api/v2/ticket_fields/{id} \ -d '{"ticket_field": {"custom_field_options": [{"name": "Apple Pie", "value": "apple", "allow_solving": true}, {"name": "Pecan Pie", "value": "pecan", "allow_solving": false}]}}' \ -H "Content-Type: application/json" -X PUT \ -v -u {email_address}/token:{api_token} ``` #### Example Response ```http Status: 200 OK { "ticket_field": { "id":21938362, "type":"tagger", "title":"Pies", ... "custom_field_options": [ { "id":21029772, "name":"Apple Pie", "raw_name":"Apple Pie", "value":"apple", "default":false, "allow_solving":true }, ... ] } } ``` #### Allowed for * Admins */
16654
+ /** Update Ticket Field #### Updating drop-down field options You can also use the update endpoint to add, update, or remove options in a drop-down custom field. Updating field options for multi-select fields works exactly the same as drop-down field options. **Important**: Unless you want to remove some options, you must specify all existing options in any update request. Omitting an option removes it from the drop-down field, which removes its values from any tickets or macros. Use the `custom_field_options` attribute to update the options. The attribute consists of an array of option objects, with each object consisting of a `name`, `value` and `allow_solving` property. The properties correspond to the "Title", "Tag" and "Required to solve" boxes in the admin interface. Example request body: ```json {"ticket_field": { "custom_field_options": [ {"name": "Apple Pie", "value": "apple", "allow_solving": true}, {"name": "Pecan Pie", "value": "pecan", "allow_solving": false} ] } } ``` #### Example Request ```bash curl https://{subdomain}.zendesk.com/api/v2/ticket_fields/{id} \ -d '{"ticket_field": {"custom_field_options": [{"name": "Apple Pie", "value": "apple", "allow_solving": true}, {"name": "Pecan Pie", "value": "pecan", "allow_solving": false}]}}' \ -H "Content-Type: application/json" -X PUT \ -v -H "Authorization: Bearer {access_token}" ``` #### Example Response ```http Status: 200 OK { "ticket_field": { "id":21938362, "type":"tagger", "title":"Pies", ... "custom_field_options": [ { "id":21029772, "name":"Apple Pie", "raw_name":"Apple Pie", "value":"apple", "default":false, "allow_solving":true }, ... ] } } ``` #### Allowed for * Admins */
15841
16655
  export declare const updateTicketField: API.OperationMethod<UpdateTicketFieldRequest, TicketFieldResponse, UpdateTicketFieldError, ZendeskOpContext>;
15842
16656
  export type UpdateTicketFormError = ZendeskOpError;
15843
16657
  /** Update Ticket Form #### Allowed For * Admins */
@@ -15858,11 +16672,14 @@ export type UpdateUserError = ZendeskOpError;
15858
16672
  /** Update User */
15859
16673
  export declare const updateUser: API.OperationMethod<UpdateUserRequest, UserResponse, UpdateUserError, ZendeskOpContext>;
15860
16674
  export type UpdateUserFieldError = ZendeskOpError;
15861
- /** 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 -u {email_address}/token:{api_token} ``` #### Allowed for * Admins */
16675
+ /** 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 */
15862
16676
  export declare const updateUserField: API.OperationMethod<UpdateUserFieldRequest, UserFieldResponse, UpdateUserFieldError, ZendeskOpContext>;
15863
16677
  export type UpdateUserIdentityError = ZendeskOpError;
15864
16678
  /** Update Identity This endpoint allows you to: * Set the specified identity as verified (by setting `verified` to "true" or `verification_method` to "low") * Unverify a verified identity (by setting `verified` to "false" or `verification_method` to "none") * Update the `value` property of the specified identity You can't change an identity's `primary` attribute with this endpoint. You must use the [Make Identity Primary](#make-identity-primary) endpoint instead. #### Allowed For * Agents */
15865
16679
  export declare const updateUserIdentity: API.OperationMethod<UpdateUserIdentityRequest, UserIdentityResponse, UpdateUserIdentityError, ZendeskOpContext>;
16680
+ export type UpdateUserSuspensionError = BadRequest | NotFound | UnprocessableEntity | ZendeskOpError;
16681
+ /** Update a User's Suspension Updates the suspension details for a user. `suspended_channels` can be updated when [the messaging channel suspension feature](https://support.zendesk.com/hc/en-us/articles/10575252020250-Announcing-user-suspension-from-messaging-channels-only) is enabled on the account. #### Allowed For * Admins * [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 #### OAuth Scopes Requires one of the following OAuth scopes: `users:write` or `write` */
16682
+ export declare const updateUserSuspension: API.OperationMethod<UpdateUserSuspensionRequest, SuspensionResponse, UpdateUserSuspensionError, ZendeskOpContext>;
15866
16683
  export type UpdateViewError = ZendeskOpError;
15867
16684
  /** Update View #### Allowed For * Agents #### JSON Format The PUT request takes one property, a `view` object that lists the values to update. All properties are optional. **Note**: Updating a condition updates the containing array, clearing the other conditions. Include all your conditions when updating any condition. The `restriction` object has the following properties. If `type` is "Group", the `ids` property is the preferred method of specifying the group id or ids. You can also update how items are sorted and grouped. See [View sorting](#view-sorting) in Create View. #### Example Request Body ```js { "view": { "title": "Code red tickets", "restriction": { "type": "Group", "ids": [10052, 10057, 10062, 10002] }, "all": [ { "field": "priority", "operator": "is", "value": "urgent" } ], "output": { "columns": ["status", "requester", "assignee", "updated"] } } } ``` */
15868
16685
  export declare const updateView: API.OperationMethod<UpdateViewRequest, ViewResponse, UpdateViewError, ZendeskOpContext>;
@@ -15879,7 +16696,7 @@ export type ValidateTokenError = ZendeskOpError;
15879
16696
  /** 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. */
15880
16697
  export declare const validateToken: API.OperationMethod<ValidateTokenRequest, ValidateTokenResponse, ValidateTokenError, ZendeskOpContext>;
15881
16698
  export type ValidateTriggerError = ZendeskOpError;
15882
- /** Validate Ticket Trigger Validates a ticket trigger definition without creating or updating a trigger record. Useful for checking whether trigger conditions and actions are valid before submitting a create or update request. #### Allowed For * Agents */
16699
+ /** Validate Ticket Trigger Validates a ticket trigger definition without creating or updating a trigger record. Useful for checking whether trigger conditions and actions are valid before submitting a create or update request. This endpoint applies create-time validation, so the body must include the required fields (`title` and `actions`); partial update bodies (which omit them) are not accepted here even though `UpdateTrigger` accepts them. #### Allowed For * Agents */
15883
16700
  export declare const validateTrigger: API.OperationMethod<ValidateTriggerRequest, TriggerValidationResponse, ValidateTriggerError, ZendeskOpContext>;
15884
16701
  export type VerifySubdomainAvailabilityError = ZendeskOpError;
15885
16702
  /** Verify Subdomain Availability Zendesk Support credentials are not required to access this endpoint. You can use any Zendesk Support subdomain. Returns "true" if the subdomain is available. */