export interface User {
/**
* User alias
* @example null
* @example "Tomas"
*/
Alias: string | null;
/**
* User external id
* @example "c2fbdbcf-0961-4a89-b818-edf3ad7456e3"
* @example null
*/
ExternalId: string | null;
/**
* User display name
* @example "User 456e3"
* @example "Tomas"
*/
Name: string;
/**
* User profile picture url
* @example "https://www.gravatar.com/avatar/8292f524bb616e5a1b49351761de6a74?d=https%3A%2F%2Fbunnynet-avatars.b-cdn.net%2F.ai%2Fimg%2Fdalle-256%2Favatar%2F8292f524bb616e5a1b49351761de6a74%2Frabbit.jpg%3Ftoken%3Db6R6-nsuF6kT0SIsEWblocQ8B_GLmmkhF1IDuZbcw6E%26expires%3D19132025855"
* @example "https://bunnycdn.zendesk.com/system/photos/7706916107548/tomas-support.png"
*/
PhotoUrl: string;
/**
* User role
* @example "end-user"
* @example "agent"
*/
Role: string;
/**
* User signature
* @example null
* @example "Best Regards,\nTomas\n\nbunny.net\nhttps://bunny.net",
*/
Signature: string | null;
/**
* User is email verified
* @example true
*/
Verified: boolean;
}
export interface Attachment {
/**
* [Content-Type](https://web.archive.org/web/20230429020308/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) of the attachment, see also [MIME Types](https://web.archive.org/web/20230429020146/https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)
* @example "text/plain"
*/
ContentType: "text/plain";
/**
* Url to download the attachment (BUG: corrupted file returned)
* @example "https://bunnycdn.zendesk.com/attachments/token/27ZaTyB7eg2ceSSKNr60zZbvG/?name=steps.txt"
*/
ContentUrl: string;
/**
* Attachment file name (BUG: trailing space)
* @example "steps.txt "
*/
FileName: string;
/**
* Attachment id
* @example 8617793197852
*/
Id: number;
/**
* Size of the file in bytes
* @example 42
*/
Size: number;
/**
* Attachment thumbnail previews (can be empty)
* @example []
*/
Thumbnails: string[];
}
export interface CreateAttachment {
/**
* The body, or content, of the attachment
* @example "Steps to reproduce the issue:"
*/
Body: string;
/**
* [Content-Type](https://web.archive.org/web/20230429020308/https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Type) of the attachment, see also [MIME Types](https://web.archive.org/web/20230429020146/https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types)
* @example "text/plain"
*/
ContentType: string;
/**
* File name of the attachment
* @example "reproduction.txt"
*/
FileName: string;
}
export interface Comment {
/**
* File attachments
*/
Attachments: Attachment[];
/**
* Comment author id
* @example 8600481430684
*/
AuthorId: number;
/**
* Comment body
* @example "My videos are buffering"
* @example "Hello,\n\nThank you for contacting bunny.net.\n\nIf there is something we can assist you with, do not hesitate to let us know.\n\nBest Regards,\nTomas\n\nbunny.net\nhttps://bunny.net"
*/
Body: string;
/**
* ISO 8601 date and time comment created at
* @example "2023-04-29T02:42:01"
*/
CreatedAt: string;
/**
* Comment html body
* @example "
"
* @example ""
*/
HtmlBody: string;
/**
* Comment id
* @example 8617221600540
*/
Id: number;
/**
* Is comment public
* @example true
*/
Public: boolean;
/**
* Comment type
* @example "Comment"
*/
Type: string;
/**
* User object related to the comment
*/
User: User;
}
export interface Ticket {
/**
* Ticket comments
*/
Comments: Comment[];
/**
* ISO 8601 date and time ticket created at
* @example "2023-04-29T02:42:01"
*/
CreatedAt: string;
/**
* Ticket id
* @example 196584
*/
Id: number;
/**
* ISO 8601 date and time ticket last updated at
* @example "2023-04-29T02:42:01Z"
*/
LastUpdatedAt: string;
/**
* Ticket status
* @example "new"
* @example "open"
* @example "solved"
* @example "deleted"
* @example "closed"
*/
Status: string;
/**
* Ticket subject
* @example "Stream"
*/
Subject: string | null;
}
export type Department = "Billing" | "CDN" | "Edge Storage" | "Feedback" | "Optimizer" | "Sales" | "Stream";
export type IssueCategory = "General" | "Other" | "Troubleshooting";
export type CommonUseCases = Record>>>;
export declare const commonUseCases: {
readonly Billing: {
readonly General: {
readonly "I have a billing question": "I have a billing question";
};
readonly Other: {
readonly "I have a different issue": "I have a different issue";
};
readonly Troubleshooting: {
readonly "I am unable to submit a payment": "I am unable to submit a payment";
};
};
readonly CDN: {
readonly General: {
readonly "I have technical questions": "I have technical questions";
readonly "I need help with configuration": "I need help with configuration";
};
readonly Other: {
readonly "I am missing a feature": "I am missing a feature";
readonly "I have a different issue": "I have a different issue";
};
readonly Troubleshooting: {
readonly "I am being routed incorrectly": "I am being routed incorrectly";
readonly "I am experiencing 502/504 errors": "I am experiencing 502/504 errors";
readonly "I am experiencing slow download speeds": "I am experiencing slow download speeds";
readonly "I cannot reach the bunny.net network": "I cannot reach the bunny.net network";
readonly "My website is slow": "My website is slow";
};
};
readonly "Edge Storage": {
readonly General: {
readonly "I have technical questions": "I have technical questions";
readonly "I need help with configuration": "I need help with configuration";
readonly "I want to disable a replicated region": "I want to disable a replicated region";
};
readonly Other: {
readonly "I am missing a feature": "I am missing a feature";
readonly "I have a different issue": "I have a different issue";
};
readonly Troubleshooting: {
readonly "I am having issues downloading files": "I am having issues downloading files";
readonly "I am having issues uploading files": "I am having issues uploading files";
readonly "I am seeing 502 errors from the CDN": "I am seeing 502 errors from the CDN";
};
};
readonly Feedback: {
readonly General: {
readonly "I love bunny.net \uD83D\uDC30": "I love bunny.net 🐰";
readonly "I want to submit a bug": "I want to submit a bug";
readonly "I want to submit a complaint": "I want to submit a complaint";
readonly "I want to submit a feature request": "I want to submit a feature request";
};
};
readonly Optimizer: {
readonly General: {
readonly "I have technical questions": "I have technical questions";
readonly "I need help with configuration": "I need help with configuration";
};
readonly Other: {
readonly "I am missing a feature": "I am missing a feature";
readonly "I have a different issue": "I have a different issue";
};
readonly Troubleshooting: {
readonly "CSS/JS files are not being minimized correctly": "CSS/JS files are not being minimized correctly";
readonly "Image processing is not working correctly": "Image processing is not working correctly";
};
};
readonly Sales: {
readonly General: {
readonly "I am looking for a partnership": "I am looking for a partnership";
readonly "I am looking for premium support options": "I am looking for premium support options";
readonly "I need custom features or configuration": "I need custom features or configuration";
readonly "I need help with a big project": "I need help with a big project";
readonly "I want a custom quote": "I want a custom quote";
};
readonly Other: {
readonly "I have a different question": "I have a different question";
};
};
readonly Stream: {
readonly General: {
readonly "I have technical questions": "I have technical questions";
readonly "I need help with configuration": "I need help with configuration";
};
readonly Other: {
readonly "I am missing a feature": "I am missing a feature";
readonly "I have a different issue": "I have a different issue";
};
readonly Troubleshooting: {
readonly "My videos are buffering": "My videos are buffering";
readonly "My videos are not playing": "My videos are not playing";
readonly "My videos are not processing": "My videos are not processing";
};
};
};
//# sourceMappingURL=types.d.ts.map
My videos are buffering