@distilled.cloud/ovh 0.0.0 → 1.0.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/lib/credentials.d.ts +38 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +54 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +22 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +22 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +8 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +8 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +60 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +32 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +32 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/baremetal.d.ts +3551 -0
- package/lib/services/baremetal.d.ts.map +1 -0
- package/lib/services/baremetal.js +4200 -0
- package/lib/services/baremetal.js.map +1 -0
- package/lib/services/cloud.d.ts +26011 -0
- package/lib/services/cloud.d.ts.map +1 -0
- package/lib/services/cloud.js +31119 -0
- package/lib/services/cloud.js.map +1 -0
- package/lib/services/cloud_v2.d.ts +5642 -0
- package/lib/services/cloud_v2.d.ts.map +1 -0
- package/lib/services/cloud_v2.js +5760 -0
- package/lib/services/cloud_v2.js.map +1 -0
- package/lib/services/dedicatedceph.d.ts +747 -0
- package/lib/services/dedicatedceph.d.ts.map +1 -0
- package/lib/services/dedicatedceph.js +962 -0
- package/lib/services/dedicatedceph.js.map +1 -0
- package/lib/services/dedicatednasha.d.ts +755 -0
- package/lib/services/dedicatednasha.d.ts.map +1 -0
- package/lib/services/dedicatednasha.js +967 -0
- package/lib/services/dedicatednasha.js.map +1 -0
- package/lib/services/domain.d.ts +2995 -0
- package/lib/services/domain.d.ts.map +1 -0
- package/lib/services/domain.js +3080 -0
- package/lib/services/domain.js.map +1 -0
- package/lib/services/emaildomain.d.ts +1913 -0
- package/lib/services/emaildomain.d.ts.map +1 -0
- package/lib/services/emaildomain.js +2550 -0
- package/lib/services/emaildomain.js.map +1 -0
- package/lib/services/emailmxplan.d.ts +1012 -0
- package/lib/services/emailmxplan.d.ts.map +1 -0
- package/lib/services/emailmxplan.js +1155 -0
- package/lib/services/emailmxplan.js.map +1 -0
- package/lib/services/emailpro.d.ts +1287 -0
- package/lib/services/emailpro.d.ts.map +1 -0
- package/lib/services/emailpro.js +1471 -0
- package/lib/services/emailpro.js.map +1 -0
- package/lib/services/hostingprivatedatabase.d.ts +1402 -0
- package/lib/services/hostingprivatedatabase.d.ts.map +1 -0
- package/lib/services/hostingprivatedatabase.js +1833 -0
- package/lib/services/hostingprivatedatabase.js.map +1 -0
- package/lib/services/iam.d.ts +829 -0
- package/lib/services/iam.d.ts.map +1 -0
- package/lib/services/iam.js +793 -0
- package/lib/services/iam.js.map +1 -0
- package/lib/services/index.d.ts +31 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +32 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/ip.d.ts +1417 -0
- package/lib/services/ip.d.ts.map +1 -0
- package/lib/services/ip.js +1691 -0
- package/lib/services/ip.js.map +1 -0
- package/lib/services/iploadbalancing.d.ts +3059 -0
- package/lib/services/iploadbalancing.d.ts.map +1 -0
- package/lib/services/iploadbalancing.js +3554 -0
- package/lib/services/iploadbalancing.js.map +1 -0
- package/lib/services/ldp.d.ts +2492 -0
- package/lib/services/ldp.d.ts.map +1 -0
- package/lib/services/ldp.js +3072 -0
- package/lib/services/ldp.js.map +1 -0
- package/lib/services/me.d.ts +7511 -0
- package/lib/services/me.d.ts.map +1 -0
- package/lib/services/me.js +8878 -0
- package/lib/services/me.js.map +1 -0
- package/lib/services/overthebox.d.ts +981 -0
- package/lib/services/overthebox.d.ts.map +1 -0
- package/lib/services/overthebox.js +1122 -0
- package/lib/services/overthebox.js.map +1 -0
- package/lib/services/ovhcloudconnect.d.ts +1123 -0
- package/lib/services/ovhcloudconnect.d.ts.map +1 -0
- package/lib/services/ovhcloudconnect.js +1353 -0
- package/lib/services/ovhcloudconnect.js.map +1 -0
- package/lib/services/packxdsl.d.ts +1583 -0
- package/lib/services/packxdsl.d.ts.map +1 -0
- package/lib/services/packxdsl.js +1791 -0
- package/lib/services/packxdsl.js.map +1 -0
- package/lib/services/sms.d.ts +2602 -0
- package/lib/services/sms.d.ts.map +1 -0
- package/lib/services/sms.js +2995 -0
- package/lib/services/sms.js.map +1 -0
- package/lib/services/sslgateway.d.ts +493 -0
- package/lib/services/sslgateway.d.ts.map +1 -0
- package/lib/services/sslgateway.js +569 -0
- package/lib/services/sslgateway.js.map +1 -0
- package/lib/services/storagenetapp.d.ts +859 -0
- package/lib/services/storagenetapp.d.ts.map +1 -0
- package/lib/services/storagenetapp.js +1022 -0
- package/lib/services/storagenetapp.js.map +1 -0
- package/lib/services/support.d.ts +233 -0
- package/lib/services/support.d.ts.map +1 -0
- package/lib/services/support.js +237 -0
- package/lib/services/support.js.map +1 -0
- package/lib/services/telephony.d.ts +10825 -0
- package/lib/services/telephony.d.ts.map +1 -0
- package/lib/services/telephony.js +14894 -0
- package/lib/services/telephony.js.map +1 -0
- package/lib/services/vmwareclouddirectorbackup.d.ts +784 -0
- package/lib/services/vmwareclouddirectorbackup.d.ts.map +1 -0
- package/lib/services/vmwareclouddirectorbackup.js +842 -0
- package/lib/services/vmwareclouddirectorbackup.js.map +1 -0
- package/lib/services/vmwareclouddirectororganization.d.ts +784 -0
- package/lib/services/vmwareclouddirectororganization.d.ts.map +1 -0
- package/lib/services/vmwareclouddirectororganization.js +842 -0
- package/lib/services/vmwareclouddirectororganization.js.map +1 -0
- package/lib/services/vps.d.ts +1579 -0
- package/lib/services/vps.d.ts.map +1 -0
- package/lib/services/vps.js +1914 -0
- package/lib/services/vps.js.map +1 -0
- package/lib/services/vrack.d.ts +1204 -0
- package/lib/services/vrack.d.ts.map +1 -0
- package/lib/services/vrack.js +1627 -0
- package/lib/services/vrack.js.map +1 -0
- package/lib/services/vrackservices.d.ts +394 -0
- package/lib/services/vrackservices.d.ts.map +1 -0
- package/lib/services/vrackservices.js +355 -0
- package/lib/services/vrackservices.js.map +1 -0
- package/lib/services/webhosting.d.ts +3986 -0
- package/lib/services/webhosting.d.ts.map +1 -0
- package/lib/services/webhosting.js +4527 -0
- package/lib/services/webhosting.js.map +1 -0
- package/lib/services/xdsl.d.ts +3433 -0
- package/lib/services/xdsl.d.ts.map +1 -0
- package/lib/services/xdsl.js +3682 -0
- package/lib/services/xdsl.js.map +1 -0
- package/lib/traits.d.ts +11 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +11 -0
- package/lib/traits.js.map +1 -0
- package/package.json +77 -6
- package/src/credentials.ts +77 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +21 -0
- package/src/pagination.ts +7 -0
- package/src/protocol.ts +86 -0
- package/src/retry.ts +54 -0
- package/src/services/baremetal.ts +10954 -0
- package/src/services/cloud.ts +75508 -0
- package/src/services/cloud_v2.ts +14751 -0
- package/src/services/dedicatedceph.ts +2233 -0
- package/src/services/dedicatednasha.ts +2269 -0
- package/src/services/domain.ts +7998 -0
- package/src/services/emaildomain.ts +5751 -0
- package/src/services/emailmxplan.ts +2764 -0
- package/src/services/emailpro.ts +3519 -0
- package/src/services/hostingprivatedatabase.ts +4218 -0
- package/src/services/iam.ts +2060 -0
- package/src/services/index.ts +31 -0
- package/src/services/ip.ts +4462 -0
- package/src/services/iploadbalancing.ts +8422 -0
- package/src/services/ldp.ts +7274 -0
- package/src/services/me.ts +21720 -0
- package/src/services/overthebox.ts +2693 -0
- package/src/services/ovhcloudconnect.ts +3226 -0
- package/src/services/packxdsl.ts +4623 -0
- package/src/services/sms.ts +7255 -0
- package/src/services/sslgateway.ts +1408 -0
- package/src/services/storagenetapp.ts +2433 -0
- package/src/services/support.ts +598 -0
- package/src/services/telephony.ts +32941 -0
- package/src/services/vmwareclouddirectorbackup.ts +2171 -0
- package/src/services/vmwareclouddirectororganization.ts +2171 -0
- package/src/services/vps.ts +5134 -0
- package/src/services/vrack.ts +3730 -0
- package/src/services/vrackservices.ts +939 -0
- package/src/services/webhosting.ts +11290 -0
- package/src/services/xdsl.ts +9278 -0
- package/src/traits.ts +44 -0
|
@@ -0,0 +1,598 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-ovh). Do not edit.
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
+
import * as API from "@distilled.cloud/core/api";
|
|
4
|
+
import * as T from "../traits.ts";
|
|
5
|
+
import {
|
|
6
|
+
OvhProtocol,
|
|
7
|
+
type OvhOpError,
|
|
8
|
+
type OvhOpContext,
|
|
9
|
+
} from "../protocol.ts";
|
|
10
|
+
import { UnknownOvhError } from "../errors.ts";
|
|
11
|
+
import * as Retry from "../retry.ts";
|
|
12
|
+
|
|
13
|
+
export type { OvhOpError, OvhOpContext };
|
|
14
|
+
|
|
15
|
+
/** Ticket request category */
|
|
16
|
+
export type SupportTicketCategoryEnum = "assistance" | "billing" | "incident";
|
|
17
|
+
export const SupportTicketCategoryEnum = /*@__PURE__*/ S.String;
|
|
18
|
+
|
|
19
|
+
/** Ticket level of impact or urgency (reserved for Business or Enterprise support level accounts) */
|
|
20
|
+
export type SupportTicketImpactUrgencyEnum = "high" | "low" | "medium";
|
|
21
|
+
export const SupportTicketImpactUrgencyEnum = /*@__PURE__*/ S.String;
|
|
22
|
+
|
|
23
|
+
/** Ticket product */
|
|
24
|
+
export type SupportTicketProductEnum =
|
|
25
|
+
| "adsl"
|
|
26
|
+
| "cdn"
|
|
27
|
+
| "dedicated"
|
|
28
|
+
| "dedicated-billing"
|
|
29
|
+
| "dedicated-other"
|
|
30
|
+
| "dedicatedcloud"
|
|
31
|
+
| "domain"
|
|
32
|
+
| "exchange"
|
|
33
|
+
| "fax"
|
|
34
|
+
| "hosting"
|
|
35
|
+
| "housing"
|
|
36
|
+
| "iaas"
|
|
37
|
+
| "mail"
|
|
38
|
+
| "network"
|
|
39
|
+
| "publiccloud"
|
|
40
|
+
| "sms"
|
|
41
|
+
| "ssl"
|
|
42
|
+
| "storage"
|
|
43
|
+
| "telecom-billing"
|
|
44
|
+
| "telecom-other"
|
|
45
|
+
| "vac"
|
|
46
|
+
| "voip"
|
|
47
|
+
| "vps"
|
|
48
|
+
| "web-billing"
|
|
49
|
+
| "web-other";
|
|
50
|
+
export const SupportTicketProductEnum = /*@__PURE__*/ S.String;
|
|
51
|
+
|
|
52
|
+
/** Ticket request subcategory */
|
|
53
|
+
export type SupportTicketSubCategoryEnum =
|
|
54
|
+
| "alerts"
|
|
55
|
+
| "autorenew"
|
|
56
|
+
| "bill"
|
|
57
|
+
| "down"
|
|
58
|
+
| "inProgress"
|
|
59
|
+
| "new"
|
|
60
|
+
| "other"
|
|
61
|
+
| "perfs"
|
|
62
|
+
| "start"
|
|
63
|
+
| "usage";
|
|
64
|
+
export const SupportTicketSubCategoryEnum = /*@__PURE__*/ S.String;
|
|
65
|
+
|
|
66
|
+
/** DEPRECATED - Ticket type (criticalIntervention requires VIP support level) */
|
|
67
|
+
export type SupportTicketTypeEnum = "criticalIntervention" | "genericRequest";
|
|
68
|
+
export const SupportTicketTypeEnum = /*@__PURE__*/ S.String;
|
|
69
|
+
|
|
70
|
+
/** List of e-mail addresses to notify on ticket updates (max. 10) */
|
|
71
|
+
export type CreateSupportTicketRequestWatchersList = Array<string>;
|
|
72
|
+
export const CreateSupportTicketRequestWatchersList = /*@__PURE__*/ S.Array(
|
|
73
|
+
S.String,
|
|
74
|
+
) as any as S.Schema<CreateSupportTicketRequestWatchersList>;
|
|
75
|
+
|
|
76
|
+
export interface CreateSupportTicketRequest {
|
|
77
|
+
/** Ticket message body */
|
|
78
|
+
body: string;
|
|
79
|
+
/** Ticket message category */
|
|
80
|
+
category?: SupportTicketCategoryEnum | (string & {});
|
|
81
|
+
/** Ticket impact (reserved for Business or Enterprise support level accounts) */
|
|
82
|
+
impact?: SupportTicketImpactUrgencyEnum | (string & {});
|
|
83
|
+
/** Ticket message product */
|
|
84
|
+
product?: SupportTicketProductEnum | (string & {});
|
|
85
|
+
/** Ticket message service name */
|
|
86
|
+
serviceName?: string;
|
|
87
|
+
/** Ticket message subcategory */
|
|
88
|
+
subcategory?: SupportTicketSubCategoryEnum | (string & {});
|
|
89
|
+
/** Ticket message subject */
|
|
90
|
+
subject: string;
|
|
91
|
+
/** DEPRECATED - Ticket type (criticalIntervention requires VIP support level) */
|
|
92
|
+
type?: SupportTicketTypeEnum | (string & {});
|
|
93
|
+
/** Ticket urgency (reserved for Business or Enterprise support level accounts) */
|
|
94
|
+
urgency?: SupportTicketImpactUrgencyEnum | (string & {});
|
|
95
|
+
/** List of e-mail addresses to notify on ticket updates (max. 10) */
|
|
96
|
+
watchers?: CreateSupportTicketRequestWatchersList;
|
|
97
|
+
}
|
|
98
|
+
export const CreateSupportTicketRequest = /*@__PURE__*/ S.suspend(() =>
|
|
99
|
+
S.Struct({
|
|
100
|
+
body: S.String,
|
|
101
|
+
category: S.optional(SupportTicketCategoryEnum),
|
|
102
|
+
impact: S.optional(SupportTicketImpactUrgencyEnum),
|
|
103
|
+
product: S.optional(SupportTicketProductEnum),
|
|
104
|
+
serviceName: S.optional(S.String),
|
|
105
|
+
subcategory: S.optional(SupportTicketSubCategoryEnum),
|
|
106
|
+
subject: S.String,
|
|
107
|
+
type: S.optional(SupportTicketTypeEnum),
|
|
108
|
+
urgency: S.optional(SupportTicketImpactUrgencyEnum),
|
|
109
|
+
watchers: S.optional(CreateSupportTicketRequestWatchersList),
|
|
110
|
+
}).pipe(
|
|
111
|
+
T.Http({ method: "POST", uri: "/support/tickets/create", code: 200 }),
|
|
112
|
+
),
|
|
113
|
+
).annotate({
|
|
114
|
+
identifier: "CreateSupportTicketRequest",
|
|
115
|
+
}) as any as S.Schema<CreateSupportTicketRequest>;
|
|
116
|
+
|
|
117
|
+
/** Newly created support identifiers */
|
|
118
|
+
export interface SupportNewMessageInfo {
|
|
119
|
+
/** Notice or warning */
|
|
120
|
+
additionalNotice?: string | null;
|
|
121
|
+
/** Message identifier */
|
|
122
|
+
messageId?: number;
|
|
123
|
+
/** Ticket identifier */
|
|
124
|
+
ticketId?: number;
|
|
125
|
+
/** Ticket external number */
|
|
126
|
+
ticketNumber?: number;
|
|
127
|
+
}
|
|
128
|
+
export const SupportNewMessageInfo = /*@__PURE__*/ S.suspend(() =>
|
|
129
|
+
S.Struct({
|
|
130
|
+
additionalNotice: S.optional(S.NullOr(S.String)),
|
|
131
|
+
messageId: S.optional(S.Number),
|
|
132
|
+
ticketId: S.optional(S.Number),
|
|
133
|
+
ticketNumber: S.optional(S.Number),
|
|
134
|
+
}),
|
|
135
|
+
).annotate({
|
|
136
|
+
identifier: "SupportNewMessageInfo",
|
|
137
|
+
}) as any as S.Schema<SupportNewMessageInfo>;
|
|
138
|
+
|
|
139
|
+
export interface CreateSupportTicketCloseRequest {
|
|
140
|
+
/** internal ticket identifier */
|
|
141
|
+
ticketId: number;
|
|
142
|
+
}
|
|
143
|
+
export const CreateSupportTicketCloseRequest = /*@__PURE__*/ S.suspend(() =>
|
|
144
|
+
S.Struct({
|
|
145
|
+
ticketId: S.Number.pipe(T.Label()),
|
|
146
|
+
}).pipe(
|
|
147
|
+
T.Http({
|
|
148
|
+
method: "POST",
|
|
149
|
+
uri: "/support/tickets/{ticketId}/close",
|
|
150
|
+
code: 200,
|
|
151
|
+
}),
|
|
152
|
+
),
|
|
153
|
+
).annotate({
|
|
154
|
+
identifier: "CreateSupportTicketCloseRequest",
|
|
155
|
+
}) as any as S.Schema<CreateSupportTicketCloseRequest>;
|
|
156
|
+
|
|
157
|
+
export interface CreateSupportTicketCloseResponse {}
|
|
158
|
+
export const CreateSupportTicketCloseResponse = /*@__PURE__*/ S.suspend(() =>
|
|
159
|
+
S.Struct({}),
|
|
160
|
+
).annotate({
|
|
161
|
+
identifier: "CreateSupportTicketCloseResponse",
|
|
162
|
+
}) as any as S.Schema<CreateSupportTicketCloseResponse>;
|
|
163
|
+
|
|
164
|
+
export interface CreateSupportTicketReopenRequest {
|
|
165
|
+
/** internal ticket identifier */
|
|
166
|
+
ticketId: number;
|
|
167
|
+
/** ticket reopen reason */
|
|
168
|
+
body: string;
|
|
169
|
+
}
|
|
170
|
+
export const CreateSupportTicketReopenRequest = /*@__PURE__*/ S.suspend(() =>
|
|
171
|
+
S.Struct({
|
|
172
|
+
ticketId: S.Number.pipe(T.Label()),
|
|
173
|
+
body: S.String,
|
|
174
|
+
}).pipe(
|
|
175
|
+
T.Http({
|
|
176
|
+
method: "POST",
|
|
177
|
+
uri: "/support/tickets/{ticketId}/reopen",
|
|
178
|
+
code: 200,
|
|
179
|
+
}),
|
|
180
|
+
),
|
|
181
|
+
).annotate({
|
|
182
|
+
identifier: "CreateSupportTicketReopenRequest",
|
|
183
|
+
}) as any as S.Schema<CreateSupportTicketReopenRequest>;
|
|
184
|
+
|
|
185
|
+
export interface CreateSupportTicketReopenResponse {}
|
|
186
|
+
export const CreateSupportTicketReopenResponse = /*@__PURE__*/ S.suspend(() =>
|
|
187
|
+
S.Struct({}),
|
|
188
|
+
).annotate({
|
|
189
|
+
identifier: "CreateSupportTicketReopenResponse",
|
|
190
|
+
}) as any as S.Schema<CreateSupportTicketReopenResponse>;
|
|
191
|
+
|
|
192
|
+
export interface CreateSupportTicketScoreRequest {
|
|
193
|
+
/** internal ticket identifier */
|
|
194
|
+
ticketId: number;
|
|
195
|
+
/** ticket score */
|
|
196
|
+
score: string;
|
|
197
|
+
/** ticket comment about the score */
|
|
198
|
+
scoreComment?: string;
|
|
199
|
+
}
|
|
200
|
+
export const CreateSupportTicketScoreRequest = /*@__PURE__*/ S.suspend(() =>
|
|
201
|
+
S.Struct({
|
|
202
|
+
ticketId: S.Number.pipe(T.Label()),
|
|
203
|
+
score: S.String,
|
|
204
|
+
scoreComment: S.optional(S.String),
|
|
205
|
+
}).pipe(
|
|
206
|
+
T.Http({
|
|
207
|
+
method: "POST",
|
|
208
|
+
uri: "/support/tickets/{ticketId}/score",
|
|
209
|
+
code: 200,
|
|
210
|
+
}),
|
|
211
|
+
),
|
|
212
|
+
).annotate({
|
|
213
|
+
identifier: "CreateSupportTicketScoreRequest",
|
|
214
|
+
}) as any as S.Schema<CreateSupportTicketScoreRequest>;
|
|
215
|
+
|
|
216
|
+
export interface CreateSupportTicketScoreResponse {}
|
|
217
|
+
export const CreateSupportTicketScoreResponse = /*@__PURE__*/ S.suspend(() =>
|
|
218
|
+
S.Struct({}),
|
|
219
|
+
).annotate({
|
|
220
|
+
identifier: "CreateSupportTicketScoreResponse",
|
|
221
|
+
}) as any as S.Schema<CreateSupportTicketScoreResponse>;
|
|
222
|
+
|
|
223
|
+
export interface GetSupportTicketRequest {
|
|
224
|
+
/** internal identifier ticket */
|
|
225
|
+
ticketId: number;
|
|
226
|
+
}
|
|
227
|
+
export const GetSupportTicketRequest = /*@__PURE__*/ S.suspend(() =>
|
|
228
|
+
S.Struct({
|
|
229
|
+
ticketId: S.Number.pipe(T.Label()),
|
|
230
|
+
}).pipe(
|
|
231
|
+
T.Http({ method: "GET", uri: "/support/tickets/{ticketId}", code: 200 }),
|
|
232
|
+
),
|
|
233
|
+
).annotate({
|
|
234
|
+
identifier: "GetSupportTicketRequest",
|
|
235
|
+
}) as any as S.Schema<GetSupportTicketRequest>;
|
|
236
|
+
|
|
237
|
+
/** Message sender type */
|
|
238
|
+
export type SupportMessageSenderEnum = "customer" | "support";
|
|
239
|
+
export const SupportMessageSenderEnum = /*@__PURE__*/ S.String;
|
|
240
|
+
|
|
241
|
+
/** Support ticket statuses */
|
|
242
|
+
export type SupportTicketStatusEnum = "closed" | "open" | "unknown";
|
|
243
|
+
export const SupportTicketStatusEnum = /*@__PURE__*/ S.String;
|
|
244
|
+
|
|
245
|
+
/** Support Ticket */
|
|
246
|
+
export interface SupportTicket {
|
|
247
|
+
/** Customer account identifier */
|
|
248
|
+
accountId?: string;
|
|
249
|
+
/** Can this ticket be closed or not */
|
|
250
|
+
canBeClosed?: boolean;
|
|
251
|
+
/** Ticket request category */
|
|
252
|
+
category?: SupportTicketCategoryEnum | null;
|
|
253
|
+
/** Ticket creation date */
|
|
254
|
+
creationDate?: string;
|
|
255
|
+
/** Sender type of last message */
|
|
256
|
+
lastMessageFrom?: SupportMessageSenderEnum;
|
|
257
|
+
/** Product service concerned by ticket */
|
|
258
|
+
product?: SupportTicketProductEnum | null;
|
|
259
|
+
/** Ticket score */
|
|
260
|
+
score?: string;
|
|
261
|
+
/** Name of service concerned by ticket */
|
|
262
|
+
serviceName?: string | null;
|
|
263
|
+
/** State of ticket */
|
|
264
|
+
state?: SupportTicketStatusEnum;
|
|
265
|
+
/** Ticket subject */
|
|
266
|
+
subject?: string;
|
|
267
|
+
/** Ticket identifier */
|
|
268
|
+
ticketId?: number;
|
|
269
|
+
/** Ticket external number */
|
|
270
|
+
ticketNumber?: number;
|
|
271
|
+
/** Ticket type */
|
|
272
|
+
type?: SupportTicketTypeEnum;
|
|
273
|
+
/** Ticket last update date */
|
|
274
|
+
updateDate?: string;
|
|
275
|
+
}
|
|
276
|
+
export const SupportTicket = /*@__PURE__*/ S.suspend(() =>
|
|
277
|
+
S.Struct({
|
|
278
|
+
accountId: S.optional(S.String),
|
|
279
|
+
canBeClosed: S.optional(S.Boolean),
|
|
280
|
+
category: S.optional(S.NullOr(SupportTicketCategoryEnum)),
|
|
281
|
+
creationDate: S.optional(S.String),
|
|
282
|
+
lastMessageFrom: S.optional(SupportMessageSenderEnum),
|
|
283
|
+
product: S.optional(S.NullOr(SupportTicketProductEnum)),
|
|
284
|
+
score: S.optional(S.String),
|
|
285
|
+
serviceName: S.optional(S.NullOr(S.String)),
|
|
286
|
+
state: S.optional(SupportTicketStatusEnum),
|
|
287
|
+
subject: S.optional(S.String),
|
|
288
|
+
ticketId: S.optional(S.Number),
|
|
289
|
+
ticketNumber: S.optional(S.Number),
|
|
290
|
+
type: S.optional(SupportTicketTypeEnum),
|
|
291
|
+
updateDate: S.optional(S.String),
|
|
292
|
+
}),
|
|
293
|
+
).annotate({ identifier: "SupportTicket" }) as any as S.Schema<SupportTicket>;
|
|
294
|
+
|
|
295
|
+
export interface GetSupportTicketCanBeScoredRequest {
|
|
296
|
+
/** internal ticket identifier */
|
|
297
|
+
ticketId: number;
|
|
298
|
+
}
|
|
299
|
+
export const GetSupportTicketCanBeScoredRequest = /*@__PURE__*/ S.suspend(() =>
|
|
300
|
+
S.Struct({
|
|
301
|
+
ticketId: S.Number.pipe(T.Label()),
|
|
302
|
+
}).pipe(
|
|
303
|
+
T.Http({
|
|
304
|
+
method: "GET",
|
|
305
|
+
uri: "/support/tickets/{ticketId}/canBeScored",
|
|
306
|
+
code: 200,
|
|
307
|
+
}),
|
|
308
|
+
),
|
|
309
|
+
).annotate({
|
|
310
|
+
identifier: "GetSupportTicketCanBeScoredRequest",
|
|
311
|
+
}) as any as S.Schema<GetSupportTicketCanBeScoredRequest>;
|
|
312
|
+
|
|
313
|
+
export type GetSupportTicketCanBeScoredResponse = boolean;
|
|
314
|
+
export const GetSupportTicketCanBeScoredResponse = /*@__PURE__*/ S.suspend(() =>
|
|
315
|
+
S.Boolean.pipe(T.RawResponseRoot()),
|
|
316
|
+
).annotate({
|
|
317
|
+
identifier: "GetSupportTicketCanBeScoredResponse",
|
|
318
|
+
}) as any as S.Schema<GetSupportTicketCanBeScoredResponse>;
|
|
319
|
+
|
|
320
|
+
export interface ListSupportTicketMessagesRequest {
|
|
321
|
+
/** internal ticket identifier */
|
|
322
|
+
ticketId: number;
|
|
323
|
+
}
|
|
324
|
+
export const ListSupportTicketMessagesRequest = /*@__PURE__*/ S.suspend(() =>
|
|
325
|
+
S.Struct({
|
|
326
|
+
ticketId: S.Number.pipe(T.Label()),
|
|
327
|
+
}).pipe(
|
|
328
|
+
T.Http({
|
|
329
|
+
method: "GET",
|
|
330
|
+
uri: "/support/tickets/{ticketId}/messages",
|
|
331
|
+
code: 200,
|
|
332
|
+
}),
|
|
333
|
+
),
|
|
334
|
+
).annotate({
|
|
335
|
+
identifier: "ListSupportTicketMessagesRequest",
|
|
336
|
+
}) as any as S.Schema<ListSupportTicketMessagesRequest>;
|
|
337
|
+
|
|
338
|
+
/** Support ticket message */
|
|
339
|
+
export interface SupportMessage {
|
|
340
|
+
/** Message body */
|
|
341
|
+
body?: string;
|
|
342
|
+
/** Message creation date */
|
|
343
|
+
creationDate?: string;
|
|
344
|
+
/** Message sender type */
|
|
345
|
+
from?: SupportMessageSenderEnum;
|
|
346
|
+
/** Message identifier */
|
|
347
|
+
messageId?: number;
|
|
348
|
+
/** Ticket identifier */
|
|
349
|
+
ticketId?: number;
|
|
350
|
+
/** Message last update date */
|
|
351
|
+
updateDate?: string;
|
|
352
|
+
}
|
|
353
|
+
export const SupportMessage = /*@__PURE__*/ S.suspend(() =>
|
|
354
|
+
S.Struct({
|
|
355
|
+
body: S.optional(S.String),
|
|
356
|
+
creationDate: S.optional(S.String),
|
|
357
|
+
from: S.optional(SupportMessageSenderEnum),
|
|
358
|
+
messageId: S.optional(S.Number),
|
|
359
|
+
ticketId: S.optional(S.Number),
|
|
360
|
+
updateDate: S.optional(S.String),
|
|
361
|
+
}),
|
|
362
|
+
).annotate({ identifier: "SupportMessage" }) as any as S.Schema<SupportMessage>;
|
|
363
|
+
|
|
364
|
+
export type ListSupportTicketMessagesResponseBodyList = Array<SupportMessage>;
|
|
365
|
+
export const ListSupportTicketMessagesResponseBodyList = /*@__PURE__*/ S.Array(
|
|
366
|
+
SupportMessage,
|
|
367
|
+
) as any as S.Schema<ListSupportTicketMessagesResponseBodyList>;
|
|
368
|
+
|
|
369
|
+
export type ListSupportTicketMessagesResponse =
|
|
370
|
+
ListSupportTicketMessagesResponseBodyList;
|
|
371
|
+
export const ListSupportTicketMessagesResponse = /*@__PURE__*/ S.suspend(() =>
|
|
372
|
+
ListSupportTicketMessagesResponseBodyList.pipe(T.RawResponseRoot()),
|
|
373
|
+
).annotate({
|
|
374
|
+
identifier: "ListSupportTicketMessagesResponse",
|
|
375
|
+
}) as any as S.Schema<ListSupportTicketMessagesResponse>;
|
|
376
|
+
|
|
377
|
+
export interface ListSupportTicketsRequest {
|
|
378
|
+
/** Search archived tickets */
|
|
379
|
+
archived?: boolean;
|
|
380
|
+
/** Search by ticket category */
|
|
381
|
+
category?: SupportTicketCategoryEnum | (string & {});
|
|
382
|
+
/** Tickets pending a customer reply */
|
|
383
|
+
customerReplyNeeded?: boolean;
|
|
384
|
+
/** Exclude auto-generated tickets */
|
|
385
|
+
excludeAutogenerated?: boolean;
|
|
386
|
+
/** Maximum creation date */
|
|
387
|
+
maxCreationDate?: string;
|
|
388
|
+
/** Minimum creation date */
|
|
389
|
+
minCreationDate?: string;
|
|
390
|
+
/** Page of tickets to fetch (only if pageSize is defined) */
|
|
391
|
+
page?: number;
|
|
392
|
+
/** Number of ticket to fetch */
|
|
393
|
+
pageSize?: number;
|
|
394
|
+
/** Search by ticket product */
|
|
395
|
+
product?: SupportTicketProductEnum | (string & {});
|
|
396
|
+
/** Ticket message service name */
|
|
397
|
+
serviceName?: string;
|
|
398
|
+
/** Status of ticket */
|
|
399
|
+
status?: SupportTicketStatusEnum | (string & {});
|
|
400
|
+
/** Search by ticket subject */
|
|
401
|
+
subject?: string;
|
|
402
|
+
/** Search by ticket number */
|
|
403
|
+
ticketNumber?: string;
|
|
404
|
+
}
|
|
405
|
+
export const ListSupportTicketsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
406
|
+
S.Struct({
|
|
407
|
+
archived: S.optional(S.Boolean.pipe(T.Query())),
|
|
408
|
+
category: S.optional(SupportTicketCategoryEnum.pipe(T.Query())),
|
|
409
|
+
customerReplyNeeded: S.optional(S.Boolean.pipe(T.Query())),
|
|
410
|
+
excludeAutogenerated: S.optional(S.Boolean.pipe(T.Query())),
|
|
411
|
+
maxCreationDate: S.optional(S.String.pipe(T.Query())),
|
|
412
|
+
minCreationDate: S.optional(S.String.pipe(T.Query())),
|
|
413
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
414
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
415
|
+
product: S.optional(SupportTicketProductEnum.pipe(T.Query())),
|
|
416
|
+
serviceName: S.optional(S.String.pipe(T.Query())),
|
|
417
|
+
status: S.optional(SupportTicketStatusEnum.pipe(T.Query())),
|
|
418
|
+
subject: S.optional(S.String.pipe(T.Query())),
|
|
419
|
+
ticketNumber: S.optional(S.String.pipe(T.Query())),
|
|
420
|
+
}).pipe(T.Http({ method: "GET", uri: "/support/tickets", code: 200 })),
|
|
421
|
+
).annotate({
|
|
422
|
+
identifier: "ListSupportTicketsRequest",
|
|
423
|
+
}) as any as S.Schema<ListSupportTicketsRequest>;
|
|
424
|
+
|
|
425
|
+
export type ListSupportTicketsResponseBodyList = Array<number>;
|
|
426
|
+
export const ListSupportTicketsResponseBodyList = /*@__PURE__*/ S.Array(
|
|
427
|
+
S.Number,
|
|
428
|
+
) as any as S.Schema<ListSupportTicketsResponseBodyList>;
|
|
429
|
+
|
|
430
|
+
export type ListSupportTicketsResponse = ListSupportTicketsResponseBodyList;
|
|
431
|
+
export const ListSupportTicketsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
432
|
+
ListSupportTicketsResponseBodyList.pipe(T.RawResponseRoot()),
|
|
433
|
+
).annotate({
|
|
434
|
+
identifier: "ListSupportTicketsResponse",
|
|
435
|
+
}) as any as S.Schema<ListSupportTicketsResponse>;
|
|
436
|
+
|
|
437
|
+
export interface ReplySupportTicketRequest {
|
|
438
|
+
/** internal ticket identifier */
|
|
439
|
+
ticketId: number;
|
|
440
|
+
/** text body of ticket response */
|
|
441
|
+
body: string;
|
|
442
|
+
}
|
|
443
|
+
export const ReplySupportTicketRequest = /*@__PURE__*/ S.suspend(() =>
|
|
444
|
+
S.Struct({
|
|
445
|
+
ticketId: S.Number.pipe(T.Label()),
|
|
446
|
+
body: S.String,
|
|
447
|
+
}).pipe(
|
|
448
|
+
T.Http({
|
|
449
|
+
method: "POST",
|
|
450
|
+
uri: "/support/tickets/{ticketId}/reply",
|
|
451
|
+
code: 200,
|
|
452
|
+
}),
|
|
453
|
+
),
|
|
454
|
+
).annotate({
|
|
455
|
+
identifier: "ReplySupportTicketRequest",
|
|
456
|
+
}) as any as S.Schema<ReplySupportTicketRequest>;
|
|
457
|
+
|
|
458
|
+
export interface ReplySupportTicketResponse {}
|
|
459
|
+
export const ReplySupportTicketResponse = /*@__PURE__*/ S.suspend(() =>
|
|
460
|
+
S.Struct({}),
|
|
461
|
+
).annotate({
|
|
462
|
+
identifier: "ReplySupportTicketResponse",
|
|
463
|
+
}) as any as S.Schema<ReplySupportTicketResponse>;
|
|
464
|
+
|
|
465
|
+
export type CreateSupportTicketError = OvhOpError;
|
|
466
|
+
/** Create a new ticket */
|
|
467
|
+
export const createSupportTicket: API.OperationMethod<
|
|
468
|
+
CreateSupportTicketRequest,
|
|
469
|
+
SupportNewMessageInfo,
|
|
470
|
+
CreateSupportTicketError,
|
|
471
|
+
OvhOpContext
|
|
472
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
473
|
+
input: CreateSupportTicketRequest,
|
|
474
|
+
output: SupportNewMessageInfo,
|
|
475
|
+
errors: [UnknownOvhError],
|
|
476
|
+
protocol: OvhProtocol,
|
|
477
|
+
retry: Retry.Retry,
|
|
478
|
+
}));
|
|
479
|
+
|
|
480
|
+
export type CreateSupportTicketCloseError = OvhOpError;
|
|
481
|
+
/** Close ticket */
|
|
482
|
+
export const createSupportTicketClose: API.OperationMethod<
|
|
483
|
+
CreateSupportTicketCloseRequest,
|
|
484
|
+
CreateSupportTicketCloseResponse,
|
|
485
|
+
CreateSupportTicketCloseError,
|
|
486
|
+
OvhOpContext
|
|
487
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
488
|
+
input: CreateSupportTicketCloseRequest,
|
|
489
|
+
output: CreateSupportTicketCloseResponse,
|
|
490
|
+
errors: [UnknownOvhError],
|
|
491
|
+
protocol: OvhProtocol,
|
|
492
|
+
retry: Retry.Retry,
|
|
493
|
+
}));
|
|
494
|
+
|
|
495
|
+
export type CreateSupportTicketReopenError = OvhOpError;
|
|
496
|
+
/** Reopen a ticket */
|
|
497
|
+
export const createSupportTicketReopen: API.OperationMethod<
|
|
498
|
+
CreateSupportTicketReopenRequest,
|
|
499
|
+
CreateSupportTicketReopenResponse,
|
|
500
|
+
CreateSupportTicketReopenError,
|
|
501
|
+
OvhOpContext
|
|
502
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
503
|
+
input: CreateSupportTicketReopenRequest,
|
|
504
|
+
output: CreateSupportTicketReopenResponse,
|
|
505
|
+
errors: [UnknownOvhError],
|
|
506
|
+
protocol: OvhProtocol,
|
|
507
|
+
retry: Retry.Retry,
|
|
508
|
+
}));
|
|
509
|
+
|
|
510
|
+
export type CreateSupportTicketScoreError = OvhOpError;
|
|
511
|
+
/** Set ticket score */
|
|
512
|
+
export const createSupportTicketScore: API.OperationMethod<
|
|
513
|
+
CreateSupportTicketScoreRequest,
|
|
514
|
+
CreateSupportTicketScoreResponse,
|
|
515
|
+
CreateSupportTicketScoreError,
|
|
516
|
+
OvhOpContext
|
|
517
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
518
|
+
input: CreateSupportTicketScoreRequest,
|
|
519
|
+
output: CreateSupportTicketScoreResponse,
|
|
520
|
+
errors: [UnknownOvhError],
|
|
521
|
+
protocol: OvhProtocol,
|
|
522
|
+
retry: Retry.Retry,
|
|
523
|
+
}));
|
|
524
|
+
|
|
525
|
+
export type GetSupportTicketError = OvhOpError;
|
|
526
|
+
/** Get ticket */
|
|
527
|
+
export const getSupportTicket: API.OperationMethod<
|
|
528
|
+
GetSupportTicketRequest,
|
|
529
|
+
SupportTicket,
|
|
530
|
+
GetSupportTicketError,
|
|
531
|
+
OvhOpContext
|
|
532
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
533
|
+
input: GetSupportTicketRequest,
|
|
534
|
+
output: SupportTicket,
|
|
535
|
+
errors: [UnknownOvhError],
|
|
536
|
+
protocol: OvhProtocol,
|
|
537
|
+
retry: Retry.Retry,
|
|
538
|
+
}));
|
|
539
|
+
|
|
540
|
+
export type GetSupportTicketCanBeScoredError = OvhOpError;
|
|
541
|
+
/** Checks whether ticket can be scored */
|
|
542
|
+
export const getSupportTicketCanBeScored: API.OperationMethod<
|
|
543
|
+
GetSupportTicketCanBeScoredRequest,
|
|
544
|
+
GetSupportTicketCanBeScoredResponse,
|
|
545
|
+
GetSupportTicketCanBeScoredError,
|
|
546
|
+
OvhOpContext
|
|
547
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
548
|
+
input: GetSupportTicketCanBeScoredRequest,
|
|
549
|
+
output: GetSupportTicketCanBeScoredResponse,
|
|
550
|
+
errors: [UnknownOvhError],
|
|
551
|
+
protocol: OvhProtocol,
|
|
552
|
+
retry: Retry.Retry,
|
|
553
|
+
}));
|
|
554
|
+
|
|
555
|
+
export type ListSupportTicketMessagesError = OvhOpError;
|
|
556
|
+
/** Get ticket messages */
|
|
557
|
+
export const listSupportTicketMessages: API.OperationMethod<
|
|
558
|
+
ListSupportTicketMessagesRequest,
|
|
559
|
+
ListSupportTicketMessagesResponse,
|
|
560
|
+
ListSupportTicketMessagesError,
|
|
561
|
+
OvhOpContext
|
|
562
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
563
|
+
input: ListSupportTicketMessagesRequest,
|
|
564
|
+
output: ListSupportTicketMessagesResponse,
|
|
565
|
+
errors: [UnknownOvhError],
|
|
566
|
+
protocol: OvhProtocol,
|
|
567
|
+
retry: Retry.Retry,
|
|
568
|
+
}));
|
|
569
|
+
|
|
570
|
+
export type ListSupportTicketsError = OvhOpError;
|
|
571
|
+
/** List support tickets identifiers for this service */
|
|
572
|
+
export const listSupportTickets: API.OperationMethod<
|
|
573
|
+
ListSupportTicketsRequest,
|
|
574
|
+
ListSupportTicketsResponse,
|
|
575
|
+
ListSupportTicketsError,
|
|
576
|
+
OvhOpContext
|
|
577
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
578
|
+
input: ListSupportTicketsRequest,
|
|
579
|
+
output: ListSupportTicketsResponse,
|
|
580
|
+
errors: [UnknownOvhError],
|
|
581
|
+
protocol: OvhProtocol,
|
|
582
|
+
retry: Retry.Retry,
|
|
583
|
+
}));
|
|
584
|
+
|
|
585
|
+
export type ReplySupportTicketError = OvhOpError;
|
|
586
|
+
/** Reply to ticket */
|
|
587
|
+
export const replySupportTicket: API.OperationMethod<
|
|
588
|
+
ReplySupportTicketRequest,
|
|
589
|
+
ReplySupportTicketResponse,
|
|
590
|
+
ReplySupportTicketError,
|
|
591
|
+
OvhOpContext
|
|
592
|
+
> = /*@__PURE__*/ API.make(() => ({
|
|
593
|
+
input: ReplySupportTicketRequest,
|
|
594
|
+
output: ReplySupportTicketResponse,
|
|
595
|
+
errors: [UnknownOvhError],
|
|
596
|
+
protocol: OvhProtocol,
|
|
597
|
+
retry: Retry.Retry,
|
|
598
|
+
}));
|