ts / dist / cjs / support.d.ts
393 words
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/** Support conversations with the ird team. */
import type { Client } from './client.js';
import type { Body, Query } from './types.js';
/** GET /contact/threads — List your support threads (cursor-paginated). */
export declare const listThreads: (client: Client, query?: Query<"/contact/threads", "get">) => Promise<{
    next_cursor: string | null;
    threads: {
        created_at: string;
        email: string;
        id: string;
        last_activity_at: string;
        last_name: string | null;
        last_preview: string | null;
        message_count: number;
        service: ("domains" | "consultancy" | "spatial" | "general") | null;
        title: string | null;
        unread_count: number;
        updated_at: string;
    }[];
    unread_count: number;
}>;
/** Every support thread, following cursor pagination. */
export declare const listAllThreads: (client: Client, query?: Query<"/contact/threads", "get">) => Promise<readonly {
    created_at: string;
    email: string;
    id: string;
    last_activity_at: string;
    last_name: string | null;
    last_preview: string | null;
    message_count: number;
    service: ("domains" | "consultancy" | "spatial" | "general") | null;
    title: string | null;
    unread_count: number;
    updated_at: string;
}[]>;
/** POST /contact/threads — Open a support thread. */
export declare const createThread: (client: Client, body: Body<"/contact/threads", "post">) => Promise<{
    thread: {
        created_at: string;
        email: string;
        id: string;
        last_activity_at: string;
        last_name: string | null;
        last_preview: string | null;
        message_count: number;
        service: ("domains" | "consultancy" | "spatial" | "general") | null;
        title: string | null;
        unread_count: number;
        updated_at: string;
    };
}>;
/** GET /contact/threads/{id} — Read a support thread. */
export declare const getThread: (client: Client, id: string) => Promise<{
    messages: {
        created_at: string;
        email: string;
        id: string;
        message: string;
        name: string;
        replies: {
            body: string;
            created_at: string;
            display_name: string;
            id: string;
        }[];
        thread_id: string | null;
        user_id: string | null;
    }[];
    thread: {
        created_at: string;
        email: string;
        id: string;
        last_activity_at: string;
        last_name: string | null;
        last_preview: string | null;
        message_count: number;
        service: ("domains" | "consultancy" | "spatial" | "general") | null;
        title: string | null;
        unread_count: number;
        updated_at: string;
    };
}>;
/** POST /contact/threads/{id}/messages — Reply on a support thread. */
export declare const reply: (client: Client, id: string, body: Body<"/contact/threads/{id}/messages", "post">) => Promise<{
    messages: {
        created_at: string;
        email: string;
        id: string;
        message: string;
        name: string;
        replies: {
            body: string;
            created_at: string;
            display_name: string;
            id: string;
        }[];
        thread_id: string | null;
        user_id: string | null;
    }[];
    thread: {
        created_at: string;
        email: string;
        id: string;
        last_activity_at: string;
        last_name: string | null;
        last_preview: string | null;
        message_count: number;
        service: ("domains" | "consultancy" | "spatial" | "general") | null;
        title: string | null;
        unread_count: number;
        updated_at: string;
    };
}>;

static mirror of HEAD · about · clone: git clone https://ird.cod-sursa.ro/ts.git