/** * SmartyMeet Dev03 API REST * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.1 * Contact: developer@smartymeet.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { ResourceTimestampsSchema } from './ResourceTimestampsSchema'; /** * * @export * @interface StateAttributesSchema */ export interface StateAttributesSchema { /** * Owner of this state row. Always the authenticated user; never set by the client. * @type {string} * @memberof StateAttributesSchema */ userId?: string; /** * The kind of resource this state describes. Lives in the composite id as `{resourceType}:{resourceId}`. * @type {StateAttributesSchemaResourceTypeEnum} * @memberof StateAttributesSchema */ resourceType?: StateAttributesSchemaResourceTypeEnum; /** * Id of the resource this state describes (e.g. an emailId, candidateId). * @type {string} * @memberof StateAttributesSchema */ resourceId?: string; /** * True if the user has opened the resource at least once. Derived from the presence of `seenAt`; clients can write either `isSeen` or `seenAt` on upsert. * @type {boolean} * @memberof StateAttributesSchema */ isSeen?: boolean; /** * True if the user has starred/favourited the resource. * @type {boolean} * @memberof StateAttributesSchema */ isStarred?: boolean; /** * True if the user marked this resource as spam. Distinct from the email service's `suppressed` status, which is SES-driven on outbound delivery; this is an inbound, per-user action. * @type {boolean} * @memberof StateAttributesSchema */ isSpam?: boolean; /** * ISO 8601 timestamp of the user's most recent open. Absent means never seen. * @type {string} * @memberof StateAttributesSchema */ seenAt?: string | null; /** * ISO 8601 timestamp of when the user starred the resource. Absent means not starred; used as the sort key for the `Starred` folder. * @type {string} * @memberof StateAttributesSchema */ starredAt?: string | null; /** * ISO 8601 timestamp of when the user marked the resource as spam. Absent means not spam; used as the sort key for the `Spam` folder. * @type {string} * @memberof StateAttributesSchema */ spamAt?: string | null; /** * Denormalised copy of the underlying resource's own `created` timestamp. Used as the sparse unread-index sort key so the unread feed surfaces oldest resources first, not oldest state rows. * @type {string} * @memberof StateAttributesSchema */ resourceCreatedAt?: string | null; /** * Open-ended per-resource flags (e.g. `{muted: true}` on conversations, `{pinned: true}` on candidates). First-class state goes on the top-level attributes; ad-hoc state lives here. * @type {{ [key: string]: any; }} * @memberof StateAttributesSchema */ flags?: { [key: string]: any; }; /** * * @type {ResourceTimestampsSchema} * @memberof StateAttributesSchema */ timestamps?: ResourceTimestampsSchema; } /** * @export */ export declare const StateAttributesSchemaResourceTypeEnum: { readonly Emails: "emails"; readonly Chats: "chats"; readonly Candidates: "candidates"; readonly Conversations: "conversations"; readonly Jobs: "jobs"; readonly Talents: "talents"; readonly Personas: "personas"; readonly Reports: "reports"; readonly Tasks: "tasks"; }; export type StateAttributesSchemaResourceTypeEnum = typeof StateAttributesSchemaResourceTypeEnum[keyof typeof StateAttributesSchemaResourceTypeEnum]; /** * Check if a given object implements the StateAttributesSchema interface. */ export declare function instanceOfStateAttributesSchema(value: object): value is StateAttributesSchema; export declare function StateAttributesSchemaFromJSON(json: any): StateAttributesSchema; export declare function StateAttributesSchemaFromJSONTyped(json: any, ignoreDiscriminator: boolean): StateAttributesSchema; export declare function StateAttributesSchemaToJSON(json: any): StateAttributesSchema; export declare function StateAttributesSchemaToJSONTyped(value?: StateAttributesSchema | null, ignoreDiscriminator?: boolean): any; //# sourceMappingURL=StateAttributesSchema.d.ts.map