@waldur/support 1.0.1-dev.0
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/package.json +20 -0
- package/src/index.ts +2 -0
- package/src/sdk.gen.ts +2448 -0
- package/src/types.gen.ts +2902 -0
- package/tsconfig.json +30 -0
package/src/sdk.gen.ts
ADDED
|
@@ -0,0 +1,2448 @@
|
|
|
1
|
+
// This file is auto-generated by split-sdk script
|
|
2
|
+
|
|
3
|
+
import type { Options } from '@waldur/core';
|
|
4
|
+
import { client as _heyApiClient } from '@waldur/core';
|
|
5
|
+
|
|
6
|
+
import type { ChatMessagesFeedbackData, ChatMessagesFeedbackResponses, ChatMessagesListData, ChatMessagesListResponses, ChatQuotaSetQuotaData, ChatQuotaSetQuotaResponses, ChatQuotaUsageRetrieveData, ChatQuotaUsageRetrieveResponses, ChatSessionsCurrentRetrieveData, ChatSessionsCurrentRetrieveResponses, ChatSessionsListData, ChatSessionsListResponses, ChatSessionsRetrieveData, ChatSessionsRetrieveResponses, ChatStreamData, ChatStreamResponses, ChatSystemPromptsActivateData, ChatSystemPromptsActivateResponses, ChatSystemPromptsCountData, ChatSystemPromptsCountResponses, ChatSystemPromptsCreateData, ChatSystemPromptsCreateResponses, ChatSystemPromptsDeactivateData, ChatSystemPromptsDeactivateResponses, ChatSystemPromptsDestroyData, ChatSystemPromptsDestroyResponses, ChatSystemPromptsListData, ChatSystemPromptsListResponses, ChatSystemPromptsPartialUpdateData, ChatSystemPromptsPartialUpdateResponses, ChatSystemPromptsRetrieveData, ChatSystemPromptsRetrieveResponses, ChatSystemPromptsUpdateData, ChatSystemPromptsUpdateResponses, ChatThreadsArchiveData, ChatThreadsArchiveResponses, ChatThreadsCancelData, ChatThreadsCancelResponses, ChatThreadsListData, ChatThreadsListResponses, ChatThreadsRetrieveData, ChatThreadsRetrieveResponses, ChatThreadsUnarchiveData, ChatThreadsUnarchiveResponses, ChatToolsExecuteData, ChatToolsExecuteResponses, SupportAttachmentsCountData, SupportAttachmentsCountResponses, SupportAttachmentsCreateData, SupportAttachmentsCreateResponses, SupportAttachmentsDestroyData, SupportAttachmentsDestroyResponses, SupportAttachmentsListData, SupportAttachmentsListResponses, SupportAttachmentsRetrieveData, SupportAttachmentsRetrieveResponses, SupportCommentsCountData, SupportCommentsCountResponses, SupportCommentsDestroyData, SupportCommentsDestroyResponses, SupportCommentsListData, SupportCommentsListResponses, SupportCommentsPartialUpdateData, SupportCommentsPartialUpdateResponses, SupportCommentsRetrieveData, SupportCommentsRetrieveResponses, SupportCommentsUpdateData, SupportCommentsUpdateResponses, SupportFeedbackAverageReportRetrieveData, SupportFeedbackAverageReportRetrieveResponses, SupportFeedbackReportRetrieveData, SupportFeedbackReportRetrieveResponses, SupportFeedbacksCountData, SupportFeedbacksCountResponses, SupportFeedbacksCreateData, SupportFeedbacksCreateResponses, SupportFeedbacksListData, SupportFeedbacksListResponses, SupportFeedbacksRetrieveData, SupportFeedbacksRetrieveResponses, SupportIssueStatusesCountData, SupportIssueStatusesCountResponses, SupportIssueStatusesCreateData, SupportIssueStatusesCreateResponses, SupportIssueStatusesDestroyData, SupportIssueStatusesDestroyResponses, SupportIssueStatusesListData, SupportIssueStatusesListResponses, SupportIssueStatusesPartialUpdateData, SupportIssueStatusesPartialUpdateResponses, SupportIssueStatusesRetrieveData, SupportIssueStatusesRetrieveResponses, SupportIssueStatusesUpdateData, SupportIssueStatusesUpdateResponses, SupportIssuesCommentData, SupportIssuesCommentResponses, SupportIssuesCountData, SupportIssuesCountResponses, SupportIssuesCreateData, SupportIssuesCreateResponses, SupportIssuesDestroyData, SupportIssuesDestroyResponses, SupportIssuesListData, SupportIssuesListResponses, SupportIssuesPartialUpdateData, SupportIssuesPartialUpdateResponses, SupportIssuesRetrieveData, SupportIssuesRetrieveResponses, SupportIssuesSyncData, SupportIssuesSyncResponses, SupportIssuesUpdateData, SupportIssuesUpdateResponses, SupportJiraWebhookData, SupportJiraWebhookResponses, SupportPrioritiesCountData, SupportPrioritiesCountResponses, SupportPrioritiesListData, SupportPrioritiesListResponses, SupportPrioritiesRetrieveData, SupportPrioritiesRetrieveResponses, SupportRequestTypesAdminActivateData, SupportRequestTypesAdminActivateResponses, SupportRequestTypesAdminCountData, SupportRequestTypesAdminCountResponses, SupportRequestTypesAdminCreateData, SupportRequestTypesAdminCreateResponses, SupportRequestTypesAdminDeactivateData, SupportRequestTypesAdminDeactivateResponses, SupportRequestTypesAdminDestroyData, SupportRequestTypesAdminDestroyResponses, SupportRequestTypesAdminListData, SupportRequestTypesAdminListResponses, SupportRequestTypesAdminPartialUpdateData, SupportRequestTypesAdminPartialUpdateResponses, SupportRequestTypesAdminReorderData, SupportRequestTypesAdminReorderResponses, SupportRequestTypesAdminRetrieveData, SupportRequestTypesAdminRetrieveResponses, SupportRequestTypesAdminUpdateData, SupportRequestTypesAdminUpdateResponses, SupportRequestTypesCountData, SupportRequestTypesCountResponses, SupportRequestTypesListData, SupportRequestTypesListResponses, SupportRequestTypesRetrieveData, SupportRequestTypesRetrieveResponses, SupportSettingsAtlassianCreateData, SupportSettingsAtlassianCreateResponses, SupportSettingsAtlassianCurrentSettingsRetrieveData, SupportSettingsAtlassianCurrentSettingsRetrieveResponses, SupportSettingsAtlassianDestroyData, SupportSettingsAtlassianDestroyResponses, SupportSettingsAtlassianDiscoverCustomFieldsData, SupportSettingsAtlassianDiscoverCustomFieldsResponses, SupportSettingsAtlassianDiscoverPrioritiesData, SupportSettingsAtlassianDiscoverPrioritiesResponses, SupportSettingsAtlassianDiscoverProjectsData, SupportSettingsAtlassianDiscoverProjectsResponses, SupportSettingsAtlassianDiscoverRequestTypesData, SupportSettingsAtlassianDiscoverRequestTypesResponses, SupportSettingsAtlassianListData, SupportSettingsAtlassianListResponses, SupportSettingsAtlassianPartialUpdateData, SupportSettingsAtlassianPartialUpdateResponses, SupportSettingsAtlassianPreviewSettingsData, SupportSettingsAtlassianPreviewSettingsResponses, SupportSettingsAtlassianRetrieveData, SupportSettingsAtlassianRetrieveResponses, SupportSettingsAtlassianSaveSettingsData, SupportSettingsAtlassianSaveSettingsResponses, SupportSettingsAtlassianUpdateData, SupportSettingsAtlassianUpdateResponses, SupportSettingsAtlassianValidateCredentialsData, SupportSettingsAtlassianValidateCredentialsResponses, SupportSmaxWebhookData, SupportSmaxWebhookResponses, SupportStatisticsRetrieveData, SupportStatisticsRetrieveResponses, SupportTemplatesCountData, SupportTemplatesCountResponses, SupportTemplatesCreateAttachmentsData, SupportTemplatesCreateAttachmentsErrors, SupportTemplatesCreateAttachmentsResponses, SupportTemplatesCreateData, SupportTemplatesCreateResponses, SupportTemplatesDeleteAttachmentsData, SupportTemplatesDeleteAttachmentsResponses, SupportTemplatesDestroyData, SupportTemplatesDestroyResponses, SupportTemplatesListData, SupportTemplatesListResponses, SupportTemplatesPartialUpdateData, SupportTemplatesPartialUpdateResponses, SupportTemplatesRetrieveData, SupportTemplatesRetrieveResponses, SupportTemplatesUpdateData, SupportTemplatesUpdateResponses, SupportUsersCountData, SupportUsersCountResponses, SupportUsersListData, SupportUsersListResponses, SupportUsersRetrieveData, SupportUsersRetrieveResponses, SupportZammadWebhookData, SupportZammadWebhookResponses, SyncIssuesData, SyncIssuesErrors, SyncIssuesResponses, SyncIssuesRetrieveData, SyncIssuesRetrieveErrors, SyncIssuesRetrieveResponses } from './types.gen';
|
|
7
|
+
|
|
8
|
+
export const chatMessagesList = <ThrowOnError extends boolean = false>(options?: Options<ChatMessagesListData, ThrowOnError>) => {
|
|
9
|
+
return (options?.client ?? _heyApiClient).get<ChatMessagesListResponses, unknown, ThrowOnError>({
|
|
10
|
+
security: [
|
|
11
|
+
{
|
|
12
|
+
name: 'Authorization',
|
|
13
|
+
type: 'apiKey'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
scheme: 'bearer',
|
|
17
|
+
type: 'http'
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
scheme: 'bearer',
|
|
21
|
+
type: 'http'
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
url: '/api/chat-messages/',
|
|
25
|
+
...options
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Submit or update feedback for an assistant message
|
|
31
|
+
*/
|
|
32
|
+
export const chatMessagesFeedback = <ThrowOnError extends boolean = false>(options: Options<ChatMessagesFeedbackData, ThrowOnError>) => {
|
|
33
|
+
return (options.client ?? _heyApiClient).post<ChatMessagesFeedbackResponses, unknown, ThrowOnError>({
|
|
34
|
+
security: [
|
|
35
|
+
{
|
|
36
|
+
name: 'Authorization',
|
|
37
|
+
type: 'apiKey'
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
scheme: 'bearer',
|
|
41
|
+
type: 'http'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
scheme: 'bearer',
|
|
45
|
+
type: 'http'
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
url: '/api/chat-messages/{uuid}/feedback/',
|
|
49
|
+
...options,
|
|
50
|
+
headers: {
|
|
51
|
+
'Content-Type': 'application/json',
|
|
52
|
+
...options.headers
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Set token quota for user
|
|
59
|
+
* Allows staff/support to set token quota limits for a specific user. Configure daily, weekly, and monthly limits:
|
|
60
|
+
* - Omit field or send `null`: Use system default
|
|
61
|
+
* - `-1`: Unlimited (no quota enforcement)
|
|
62
|
+
* - `0` or positive integer: Specific token limit
|
|
63
|
+
*/
|
|
64
|
+
export const chatQuotaSetQuota = <ThrowOnError extends boolean = false>(options: Options<ChatQuotaSetQuotaData, ThrowOnError>) => {
|
|
65
|
+
return (options.client ?? _heyApiClient).post<ChatQuotaSetQuotaResponses, unknown, ThrowOnError>({
|
|
66
|
+
security: [
|
|
67
|
+
{
|
|
68
|
+
name: 'Authorization',
|
|
69
|
+
type: 'apiKey'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
scheme: 'bearer',
|
|
73
|
+
type: 'http'
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
scheme: 'bearer',
|
|
77
|
+
type: 'http'
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
url: '/api/chat-quota/set_quota/',
|
|
81
|
+
...options,
|
|
82
|
+
headers: {
|
|
83
|
+
'Content-Type': 'application/json',
|
|
84
|
+
...options.headers
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* Get current token quota and usage for the requesting user.
|
|
92
|
+
*
|
|
93
|
+
* Returns token quota for all periods (daily, weekly, monthly):
|
|
94
|
+
* - limit: User's custom limit (null = use system default, -1 = unlimited, or positive integer)
|
|
95
|
+
* - usage: Tokens used in current period
|
|
96
|
+
* - remaining: Tokens remaining (null if unlimited)
|
|
97
|
+
* - reset_at: When the period resets
|
|
98
|
+
* - system_default: System-wide default limit from configuration (for transparency when limit is null)
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
export const chatQuotaUsageRetrieve = <ThrowOnError extends boolean = false>(options: Options<ChatQuotaUsageRetrieveData, ThrowOnError>) => {
|
|
102
|
+
return (options.client ?? _heyApiClient).get<ChatQuotaUsageRetrieveResponses, unknown, ThrowOnError>({
|
|
103
|
+
security: [
|
|
104
|
+
{
|
|
105
|
+
name: 'Authorization',
|
|
106
|
+
type: 'apiKey'
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
scheme: 'bearer',
|
|
110
|
+
type: 'http'
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
scheme: 'bearer',
|
|
114
|
+
type: 'http'
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
url: '/api/chat-quota/usage/',
|
|
118
|
+
...options
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export const chatSessionsList = <ThrowOnError extends boolean = false>(options?: Options<ChatSessionsListData, ThrowOnError>) => {
|
|
123
|
+
return (options?.client ?? _heyApiClient).get<ChatSessionsListResponses, unknown, ThrowOnError>({
|
|
124
|
+
security: [
|
|
125
|
+
{
|
|
126
|
+
name: 'Authorization',
|
|
127
|
+
type: 'apiKey'
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
scheme: 'bearer',
|
|
131
|
+
type: 'http'
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
scheme: 'bearer',
|
|
135
|
+
type: 'http'
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
url: '/api/chat-sessions/',
|
|
139
|
+
...options
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
export const chatSessionsRetrieve = <ThrowOnError extends boolean = false>(options: Options<ChatSessionsRetrieveData, ThrowOnError>) => {
|
|
144
|
+
return (options.client ?? _heyApiClient).get<ChatSessionsRetrieveResponses, unknown, ThrowOnError>({
|
|
145
|
+
security: [
|
|
146
|
+
{
|
|
147
|
+
name: 'Authorization',
|
|
148
|
+
type: 'apiKey'
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
scheme: 'bearer',
|
|
152
|
+
type: 'http'
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
scheme: 'bearer',
|
|
156
|
+
type: 'http'
|
|
157
|
+
}
|
|
158
|
+
],
|
|
159
|
+
url: '/api/chat-sessions/{uuid}/',
|
|
160
|
+
...options
|
|
161
|
+
});
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Get or create current user's chat session
|
|
166
|
+
* Returns the current user's chat session, creating it if it doesn't exist.
|
|
167
|
+
*/
|
|
168
|
+
export const chatSessionsCurrentRetrieve = <ThrowOnError extends boolean = false>(options?: Options<ChatSessionsCurrentRetrieveData, ThrowOnError>) => {
|
|
169
|
+
return (options?.client ?? _heyApiClient).get<ChatSessionsCurrentRetrieveResponses, unknown, ThrowOnError>({
|
|
170
|
+
security: [
|
|
171
|
+
{
|
|
172
|
+
name: 'Authorization',
|
|
173
|
+
type: 'apiKey'
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
scheme: 'bearer',
|
|
177
|
+
type: 'http'
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
scheme: 'bearer',
|
|
181
|
+
type: 'http'
|
|
182
|
+
}
|
|
183
|
+
],
|
|
184
|
+
url: '/api/chat-sessions/current/',
|
|
185
|
+
...options
|
|
186
|
+
});
|
|
187
|
+
};
|
|
188
|
+
|
|
189
|
+
export const chatSystemPromptsList = <ThrowOnError extends boolean = false>(options?: Options<ChatSystemPromptsListData, ThrowOnError>) => {
|
|
190
|
+
return (options?.client ?? _heyApiClient).get<ChatSystemPromptsListResponses, unknown, ThrowOnError>({
|
|
191
|
+
security: [
|
|
192
|
+
{
|
|
193
|
+
name: 'Authorization',
|
|
194
|
+
type: 'apiKey'
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
scheme: 'bearer',
|
|
198
|
+
type: 'http'
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
scheme: 'bearer',
|
|
202
|
+
type: 'http'
|
|
203
|
+
}
|
|
204
|
+
],
|
|
205
|
+
url: '/api/chat-system-prompts/',
|
|
206
|
+
...options
|
|
207
|
+
});
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Get number of items in the collection matching the request parameters.
|
|
212
|
+
*/
|
|
213
|
+
export const chatSystemPromptsCount = <ThrowOnError extends boolean = false>(options?: Options<ChatSystemPromptsCountData, ThrowOnError>) => {
|
|
214
|
+
return (options?.client ?? _heyApiClient).head<ChatSystemPromptsCountResponses, unknown, ThrowOnError>({
|
|
215
|
+
security: [
|
|
216
|
+
{
|
|
217
|
+
name: 'Authorization',
|
|
218
|
+
type: 'apiKey'
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
scheme: 'bearer',
|
|
222
|
+
type: 'http'
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
scheme: 'bearer',
|
|
226
|
+
type: 'http'
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
url: '/api/chat-system-prompts/',
|
|
230
|
+
...options
|
|
231
|
+
});
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export const chatSystemPromptsCreate = <ThrowOnError extends boolean = false>(options: Options<ChatSystemPromptsCreateData, ThrowOnError>) => {
|
|
235
|
+
return (options.client ?? _heyApiClient).post<ChatSystemPromptsCreateResponses, unknown, ThrowOnError>({
|
|
236
|
+
security: [
|
|
237
|
+
{
|
|
238
|
+
name: 'Authorization',
|
|
239
|
+
type: 'apiKey'
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
scheme: 'bearer',
|
|
243
|
+
type: 'http'
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
scheme: 'bearer',
|
|
247
|
+
type: 'http'
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
url: '/api/chat-system-prompts/',
|
|
251
|
+
...options,
|
|
252
|
+
headers: {
|
|
253
|
+
'Content-Type': 'application/json',
|
|
254
|
+
...options.headers
|
|
255
|
+
}
|
|
256
|
+
});
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
export const chatSystemPromptsDestroy = <ThrowOnError extends boolean = false>(options: Options<ChatSystemPromptsDestroyData, ThrowOnError>) => {
|
|
260
|
+
return (options.client ?? _heyApiClient).delete<ChatSystemPromptsDestroyResponses, unknown, ThrowOnError>({
|
|
261
|
+
security: [
|
|
262
|
+
{
|
|
263
|
+
name: 'Authorization',
|
|
264
|
+
type: 'apiKey'
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
scheme: 'bearer',
|
|
268
|
+
type: 'http'
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
scheme: 'bearer',
|
|
272
|
+
type: 'http'
|
|
273
|
+
}
|
|
274
|
+
],
|
|
275
|
+
url: '/api/chat-system-prompts/{uuid}/',
|
|
276
|
+
...options
|
|
277
|
+
});
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
export const chatSystemPromptsRetrieve = <ThrowOnError extends boolean = false>(options: Options<ChatSystemPromptsRetrieveData, ThrowOnError>) => {
|
|
281
|
+
return (options.client ?? _heyApiClient).get<ChatSystemPromptsRetrieveResponses, unknown, ThrowOnError>({
|
|
282
|
+
security: [
|
|
283
|
+
{
|
|
284
|
+
name: 'Authorization',
|
|
285
|
+
type: 'apiKey'
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
scheme: 'bearer',
|
|
289
|
+
type: 'http'
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
scheme: 'bearer',
|
|
293
|
+
type: 'http'
|
|
294
|
+
}
|
|
295
|
+
],
|
|
296
|
+
url: '/api/chat-system-prompts/{uuid}/',
|
|
297
|
+
...options
|
|
298
|
+
});
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
export const chatSystemPromptsPartialUpdate = <ThrowOnError extends boolean = false>(options: Options<ChatSystemPromptsPartialUpdateData, ThrowOnError>) => {
|
|
302
|
+
return (options.client ?? _heyApiClient).patch<ChatSystemPromptsPartialUpdateResponses, unknown, ThrowOnError>({
|
|
303
|
+
security: [
|
|
304
|
+
{
|
|
305
|
+
name: 'Authorization',
|
|
306
|
+
type: 'apiKey'
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
scheme: 'bearer',
|
|
310
|
+
type: 'http'
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
scheme: 'bearer',
|
|
314
|
+
type: 'http'
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
url: '/api/chat-system-prompts/{uuid}/',
|
|
318
|
+
...options,
|
|
319
|
+
headers: {
|
|
320
|
+
'Content-Type': 'application/json',
|
|
321
|
+
...options.headers
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
export const chatSystemPromptsUpdate = <ThrowOnError extends boolean = false>(options: Options<ChatSystemPromptsUpdateData, ThrowOnError>) => {
|
|
327
|
+
return (options.client ?? _heyApiClient).put<ChatSystemPromptsUpdateResponses, unknown, ThrowOnError>({
|
|
328
|
+
security: [
|
|
329
|
+
{
|
|
330
|
+
name: 'Authorization',
|
|
331
|
+
type: 'apiKey'
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
scheme: 'bearer',
|
|
335
|
+
type: 'http'
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
scheme: 'bearer',
|
|
339
|
+
type: 'http'
|
|
340
|
+
}
|
|
341
|
+
],
|
|
342
|
+
url: '/api/chat-system-prompts/{uuid}/',
|
|
343
|
+
...options,
|
|
344
|
+
headers: {
|
|
345
|
+
'Content-Type': 'application/json',
|
|
346
|
+
...options.headers
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Activate a system prompt
|
|
353
|
+
* Set this prompt as the active one. Deactivates any currently active prompt.
|
|
354
|
+
*/
|
|
355
|
+
export const chatSystemPromptsActivate = <ThrowOnError extends boolean = false>(options: Options<ChatSystemPromptsActivateData, ThrowOnError>) => {
|
|
356
|
+
return (options.client ?? _heyApiClient).post<ChatSystemPromptsActivateResponses, unknown, ThrowOnError>({
|
|
357
|
+
security: [
|
|
358
|
+
{
|
|
359
|
+
name: 'Authorization',
|
|
360
|
+
type: 'apiKey'
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
scheme: 'bearer',
|
|
364
|
+
type: 'http'
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
scheme: 'bearer',
|
|
368
|
+
type: 'http'
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
url: '/api/chat-system-prompts/{uuid}/activate/',
|
|
372
|
+
...options,
|
|
373
|
+
headers: {
|
|
374
|
+
'Content-Type': 'application/json',
|
|
375
|
+
...options.headers
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
};
|
|
379
|
+
|
|
380
|
+
/**
|
|
381
|
+
* Deactivate the active system prompt
|
|
382
|
+
* Deactivate this prompt. The system will fall back to Constance overrides or built-in defaults.
|
|
383
|
+
*/
|
|
384
|
+
export const chatSystemPromptsDeactivate = <ThrowOnError extends boolean = false>(options: Options<ChatSystemPromptsDeactivateData, ThrowOnError>) => {
|
|
385
|
+
return (options.client ?? _heyApiClient).post<ChatSystemPromptsDeactivateResponses, unknown, ThrowOnError>({
|
|
386
|
+
security: [
|
|
387
|
+
{
|
|
388
|
+
name: 'Authorization',
|
|
389
|
+
type: 'apiKey'
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
scheme: 'bearer',
|
|
393
|
+
type: 'http'
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
scheme: 'bearer',
|
|
397
|
+
type: 'http'
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
url: '/api/chat-system-prompts/{uuid}/deactivate/',
|
|
401
|
+
...options,
|
|
402
|
+
headers: {
|
|
403
|
+
'Content-Type': 'application/json',
|
|
404
|
+
...options.headers
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
export const chatThreadsList = <ThrowOnError extends boolean = false>(options?: Options<ChatThreadsListData, ThrowOnError>) => {
|
|
410
|
+
return (options?.client ?? _heyApiClient).get<ChatThreadsListResponses, unknown, ThrowOnError>({
|
|
411
|
+
security: [
|
|
412
|
+
{
|
|
413
|
+
name: 'Authorization',
|
|
414
|
+
type: 'apiKey'
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
scheme: 'bearer',
|
|
418
|
+
type: 'http'
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
scheme: 'bearer',
|
|
422
|
+
type: 'http'
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
url: '/api/chat-threads/',
|
|
426
|
+
...options
|
|
427
|
+
});
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
export const chatThreadsRetrieve = <ThrowOnError extends boolean = false>(options: Options<ChatThreadsRetrieveData, ThrowOnError>) => {
|
|
431
|
+
return (options.client ?? _heyApiClient).get<ChatThreadsRetrieveResponses, unknown, ThrowOnError>({
|
|
432
|
+
security: [
|
|
433
|
+
{
|
|
434
|
+
name: 'Authorization',
|
|
435
|
+
type: 'apiKey'
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
scheme: 'bearer',
|
|
439
|
+
type: 'http'
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
scheme: 'bearer',
|
|
443
|
+
type: 'http'
|
|
444
|
+
}
|
|
445
|
+
],
|
|
446
|
+
url: '/api/chat-threads/{uuid}/',
|
|
447
|
+
...options
|
|
448
|
+
});
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
/**
|
|
452
|
+
* Archive thread
|
|
453
|
+
* Archive a thread (soft delete).
|
|
454
|
+
*/
|
|
455
|
+
export const chatThreadsArchive = <ThrowOnError extends boolean = false>(options: Options<ChatThreadsArchiveData, ThrowOnError>) => {
|
|
456
|
+
return (options.client ?? _heyApiClient).post<ChatThreadsArchiveResponses, unknown, ThrowOnError>({
|
|
457
|
+
security: [
|
|
458
|
+
{
|
|
459
|
+
name: 'Authorization',
|
|
460
|
+
type: 'apiKey'
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
scheme: 'bearer',
|
|
464
|
+
type: 'http'
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
scheme: 'bearer',
|
|
468
|
+
type: 'http'
|
|
469
|
+
}
|
|
470
|
+
],
|
|
471
|
+
url: '/api/chat-threads/{uuid}/archive/',
|
|
472
|
+
...options,
|
|
473
|
+
headers: {
|
|
474
|
+
'Content-Type': 'application/json',
|
|
475
|
+
...options.headers
|
|
476
|
+
}
|
|
477
|
+
});
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* Cancel active stream
|
|
482
|
+
* Request cancellation of the active LLM stream for this thread.
|
|
483
|
+
*/
|
|
484
|
+
export const chatThreadsCancel = <ThrowOnError extends boolean = false>(options: Options<ChatThreadsCancelData, ThrowOnError>) => {
|
|
485
|
+
return (options.client ?? _heyApiClient).post<ChatThreadsCancelResponses, unknown, ThrowOnError>({
|
|
486
|
+
security: [
|
|
487
|
+
{
|
|
488
|
+
name: 'Authorization',
|
|
489
|
+
type: 'apiKey'
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
scheme: 'bearer',
|
|
493
|
+
type: 'http'
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
scheme: 'bearer',
|
|
497
|
+
type: 'http'
|
|
498
|
+
}
|
|
499
|
+
],
|
|
500
|
+
url: '/api/chat-threads/{uuid}/cancel/',
|
|
501
|
+
...options,
|
|
502
|
+
headers: {
|
|
503
|
+
'Content-Type': 'application/json',
|
|
504
|
+
...options.headers
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Unarchive thread
|
|
511
|
+
* Restore an archived thread.
|
|
512
|
+
*/
|
|
513
|
+
export const chatThreadsUnarchive = <ThrowOnError extends boolean = false>(options: Options<ChatThreadsUnarchiveData, ThrowOnError>) => {
|
|
514
|
+
return (options.client ?? _heyApiClient).post<ChatThreadsUnarchiveResponses, unknown, ThrowOnError>({
|
|
515
|
+
security: [
|
|
516
|
+
{
|
|
517
|
+
name: 'Authorization',
|
|
518
|
+
type: 'apiKey'
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
scheme: 'bearer',
|
|
522
|
+
type: 'http'
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
scheme: 'bearer',
|
|
526
|
+
type: 'http'
|
|
527
|
+
}
|
|
528
|
+
],
|
|
529
|
+
url: '/api/chat-threads/{uuid}/unarchive/',
|
|
530
|
+
...options,
|
|
531
|
+
headers: {
|
|
532
|
+
'Content-Type': 'application/json',
|
|
533
|
+
...options.headers
|
|
534
|
+
}
|
|
535
|
+
});
|
|
536
|
+
};
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* Execute a tool and return the result.
|
|
540
|
+
*/
|
|
541
|
+
export const chatToolsExecute = <ThrowOnError extends boolean = false>(options: Options<ChatToolsExecuteData, ThrowOnError>) => {
|
|
542
|
+
return (options.client ?? _heyApiClient).post<ChatToolsExecuteResponses, unknown, ThrowOnError>({
|
|
543
|
+
security: [
|
|
544
|
+
{
|
|
545
|
+
name: 'Authorization',
|
|
546
|
+
type: 'apiKey'
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
scheme: 'bearer',
|
|
550
|
+
type: 'http'
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
scheme: 'bearer',
|
|
554
|
+
type: 'http'
|
|
555
|
+
}
|
|
556
|
+
],
|
|
557
|
+
url: '/api/chat-tools/execute/',
|
|
558
|
+
...options,
|
|
559
|
+
headers: {
|
|
560
|
+
'Content-Type': 'application/json',
|
|
561
|
+
...options.headers
|
|
562
|
+
}
|
|
563
|
+
});
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
export const chatStream = <ThrowOnError extends boolean = false>(options: Options<ChatStreamData, ThrowOnError>) => {
|
|
567
|
+
return (options.client ?? _heyApiClient).post<ChatStreamResponses, unknown, ThrowOnError>({
|
|
568
|
+
security: [
|
|
569
|
+
{
|
|
570
|
+
name: 'Authorization',
|
|
571
|
+
type: 'apiKey'
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
scheme: 'bearer',
|
|
575
|
+
type: 'http'
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
scheme: 'bearer',
|
|
579
|
+
type: 'http'
|
|
580
|
+
}
|
|
581
|
+
],
|
|
582
|
+
url: '/api/chat/stream/',
|
|
583
|
+
...options,
|
|
584
|
+
headers: {
|
|
585
|
+
'Content-Type': 'application/json',
|
|
586
|
+
...options.headers
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
};
|
|
590
|
+
|
|
591
|
+
export const supportAttachmentsList = <ThrowOnError extends boolean = false>(options?: Options<SupportAttachmentsListData, ThrowOnError>) => {
|
|
592
|
+
return (options?.client ?? _heyApiClient).get<SupportAttachmentsListResponses, unknown, ThrowOnError>({
|
|
593
|
+
security: [
|
|
594
|
+
{
|
|
595
|
+
name: 'Authorization',
|
|
596
|
+
type: 'apiKey'
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
scheme: 'bearer',
|
|
600
|
+
type: 'http'
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
scheme: 'bearer',
|
|
604
|
+
type: 'http'
|
|
605
|
+
}
|
|
606
|
+
],
|
|
607
|
+
url: '/api/support-attachments/',
|
|
608
|
+
...options
|
|
609
|
+
});
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
/**
|
|
613
|
+
* Get number of items in the collection matching the request parameters.
|
|
614
|
+
*/
|
|
615
|
+
export const supportAttachmentsCount = <ThrowOnError extends boolean = false>(options?: Options<SupportAttachmentsCountData, ThrowOnError>) => {
|
|
616
|
+
return (options?.client ?? _heyApiClient).head<SupportAttachmentsCountResponses, unknown, ThrowOnError>({
|
|
617
|
+
security: [
|
|
618
|
+
{
|
|
619
|
+
name: 'Authorization',
|
|
620
|
+
type: 'apiKey'
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
scheme: 'bearer',
|
|
624
|
+
type: 'http'
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
scheme: 'bearer',
|
|
628
|
+
type: 'http'
|
|
629
|
+
}
|
|
630
|
+
],
|
|
631
|
+
url: '/api/support-attachments/',
|
|
632
|
+
...options
|
|
633
|
+
});
|
|
634
|
+
};
|
|
635
|
+
|
|
636
|
+
export const supportAttachmentsCreate = <ThrowOnError extends boolean = false>(options: Options<SupportAttachmentsCreateData, ThrowOnError>) => {
|
|
637
|
+
return (options.client ?? _heyApiClient).post<SupportAttachmentsCreateResponses, unknown, ThrowOnError>({
|
|
638
|
+
security: [
|
|
639
|
+
{
|
|
640
|
+
name: 'Authorization',
|
|
641
|
+
type: 'apiKey'
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
scheme: 'bearer',
|
|
645
|
+
type: 'http'
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
scheme: 'bearer',
|
|
649
|
+
type: 'http'
|
|
650
|
+
}
|
|
651
|
+
],
|
|
652
|
+
url: '/api/support-attachments/',
|
|
653
|
+
...options,
|
|
654
|
+
headers: {
|
|
655
|
+
'Content-Type': 'application/json',
|
|
656
|
+
...options.headers
|
|
657
|
+
}
|
|
658
|
+
});
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
export const supportAttachmentsDestroy = <ThrowOnError extends boolean = false>(options: Options<SupportAttachmentsDestroyData, ThrowOnError>) => {
|
|
662
|
+
return (options.client ?? _heyApiClient).delete<SupportAttachmentsDestroyResponses, unknown, ThrowOnError>({
|
|
663
|
+
security: [
|
|
664
|
+
{
|
|
665
|
+
name: 'Authorization',
|
|
666
|
+
type: 'apiKey'
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
scheme: 'bearer',
|
|
670
|
+
type: 'http'
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
scheme: 'bearer',
|
|
674
|
+
type: 'http'
|
|
675
|
+
}
|
|
676
|
+
],
|
|
677
|
+
url: '/api/support-attachments/{uuid}/',
|
|
678
|
+
...options
|
|
679
|
+
});
|
|
680
|
+
};
|
|
681
|
+
|
|
682
|
+
export const supportAttachmentsRetrieve = <ThrowOnError extends boolean = false>(options: Options<SupportAttachmentsRetrieveData, ThrowOnError>) => {
|
|
683
|
+
return (options.client ?? _heyApiClient).get<SupportAttachmentsRetrieveResponses, unknown, ThrowOnError>({
|
|
684
|
+
security: [
|
|
685
|
+
{
|
|
686
|
+
name: 'Authorization',
|
|
687
|
+
type: 'apiKey'
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
scheme: 'bearer',
|
|
691
|
+
type: 'http'
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
scheme: 'bearer',
|
|
695
|
+
type: 'http'
|
|
696
|
+
}
|
|
697
|
+
],
|
|
698
|
+
url: '/api/support-attachments/{uuid}/',
|
|
699
|
+
...options
|
|
700
|
+
});
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
export const supportCommentsList = <ThrowOnError extends boolean = false>(options?: Options<SupportCommentsListData, ThrowOnError>) => {
|
|
704
|
+
return (options?.client ?? _heyApiClient).get<SupportCommentsListResponses, unknown, ThrowOnError>({
|
|
705
|
+
security: [
|
|
706
|
+
{
|
|
707
|
+
name: 'Authorization',
|
|
708
|
+
type: 'apiKey'
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
scheme: 'bearer',
|
|
712
|
+
type: 'http'
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
scheme: 'bearer',
|
|
716
|
+
type: 'http'
|
|
717
|
+
}
|
|
718
|
+
],
|
|
719
|
+
url: '/api/support-comments/',
|
|
720
|
+
...options
|
|
721
|
+
});
|
|
722
|
+
};
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Get number of items in the collection matching the request parameters.
|
|
726
|
+
*/
|
|
727
|
+
export const supportCommentsCount = <ThrowOnError extends boolean = false>(options?: Options<SupportCommentsCountData, ThrowOnError>) => {
|
|
728
|
+
return (options?.client ?? _heyApiClient).head<SupportCommentsCountResponses, unknown, ThrowOnError>({
|
|
729
|
+
security: [
|
|
730
|
+
{
|
|
731
|
+
name: 'Authorization',
|
|
732
|
+
type: 'apiKey'
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
scheme: 'bearer',
|
|
736
|
+
type: 'http'
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
scheme: 'bearer',
|
|
740
|
+
type: 'http'
|
|
741
|
+
}
|
|
742
|
+
],
|
|
743
|
+
url: '/api/support-comments/',
|
|
744
|
+
...options
|
|
745
|
+
});
|
|
746
|
+
};
|
|
747
|
+
|
|
748
|
+
export const supportCommentsDestroy = <ThrowOnError extends boolean = false>(options: Options<SupportCommentsDestroyData, ThrowOnError>) => {
|
|
749
|
+
return (options.client ?? _heyApiClient).delete<SupportCommentsDestroyResponses, unknown, ThrowOnError>({
|
|
750
|
+
security: [
|
|
751
|
+
{
|
|
752
|
+
name: 'Authorization',
|
|
753
|
+
type: 'apiKey'
|
|
754
|
+
},
|
|
755
|
+
{
|
|
756
|
+
scheme: 'bearer',
|
|
757
|
+
type: 'http'
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
scheme: 'bearer',
|
|
761
|
+
type: 'http'
|
|
762
|
+
}
|
|
763
|
+
],
|
|
764
|
+
url: '/api/support-comments/{uuid}/',
|
|
765
|
+
...options
|
|
766
|
+
});
|
|
767
|
+
};
|
|
768
|
+
|
|
769
|
+
export const supportCommentsRetrieve = <ThrowOnError extends boolean = false>(options: Options<SupportCommentsRetrieveData, ThrowOnError>) => {
|
|
770
|
+
return (options.client ?? _heyApiClient).get<SupportCommentsRetrieveResponses, unknown, ThrowOnError>({
|
|
771
|
+
security: [
|
|
772
|
+
{
|
|
773
|
+
name: 'Authorization',
|
|
774
|
+
type: 'apiKey'
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
scheme: 'bearer',
|
|
778
|
+
type: 'http'
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
scheme: 'bearer',
|
|
782
|
+
type: 'http'
|
|
783
|
+
}
|
|
784
|
+
],
|
|
785
|
+
url: '/api/support-comments/{uuid}/',
|
|
786
|
+
...options
|
|
787
|
+
});
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
export const supportCommentsPartialUpdate = <ThrowOnError extends boolean = false>(options: Options<SupportCommentsPartialUpdateData, ThrowOnError>) => {
|
|
791
|
+
return (options.client ?? _heyApiClient).patch<SupportCommentsPartialUpdateResponses, unknown, ThrowOnError>({
|
|
792
|
+
security: [
|
|
793
|
+
{
|
|
794
|
+
name: 'Authorization',
|
|
795
|
+
type: 'apiKey'
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
scheme: 'bearer',
|
|
799
|
+
type: 'http'
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
scheme: 'bearer',
|
|
803
|
+
type: 'http'
|
|
804
|
+
}
|
|
805
|
+
],
|
|
806
|
+
url: '/api/support-comments/{uuid}/',
|
|
807
|
+
...options,
|
|
808
|
+
headers: {
|
|
809
|
+
'Content-Type': 'application/json',
|
|
810
|
+
...options.headers
|
|
811
|
+
}
|
|
812
|
+
});
|
|
813
|
+
};
|
|
814
|
+
|
|
815
|
+
export const supportCommentsUpdate = <ThrowOnError extends boolean = false>(options: Options<SupportCommentsUpdateData, ThrowOnError>) => {
|
|
816
|
+
return (options.client ?? _heyApiClient).put<SupportCommentsUpdateResponses, unknown, ThrowOnError>({
|
|
817
|
+
security: [
|
|
818
|
+
{
|
|
819
|
+
name: 'Authorization',
|
|
820
|
+
type: 'apiKey'
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
scheme: 'bearer',
|
|
824
|
+
type: 'http'
|
|
825
|
+
},
|
|
826
|
+
{
|
|
827
|
+
scheme: 'bearer',
|
|
828
|
+
type: 'http'
|
|
829
|
+
}
|
|
830
|
+
],
|
|
831
|
+
url: '/api/support-comments/{uuid}/',
|
|
832
|
+
...options,
|
|
833
|
+
headers: {
|
|
834
|
+
'Content-Type': 'application/json',
|
|
835
|
+
...options.headers
|
|
836
|
+
}
|
|
837
|
+
});
|
|
838
|
+
};
|
|
839
|
+
|
|
840
|
+
export const supportFeedbackAverageReportRetrieve = <ThrowOnError extends boolean = false>(options?: Options<SupportFeedbackAverageReportRetrieveData, ThrowOnError>) => {
|
|
841
|
+
return (options?.client ?? _heyApiClient).get<SupportFeedbackAverageReportRetrieveResponses, unknown, ThrowOnError>({
|
|
842
|
+
security: [
|
|
843
|
+
{
|
|
844
|
+
name: 'Authorization',
|
|
845
|
+
type: 'apiKey'
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
scheme: 'bearer',
|
|
849
|
+
type: 'http'
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
scheme: 'bearer',
|
|
853
|
+
type: 'http'
|
|
854
|
+
}
|
|
855
|
+
],
|
|
856
|
+
url: '/api/support-feedback-average-report/',
|
|
857
|
+
...options
|
|
858
|
+
});
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
export const supportFeedbackReportRetrieve = <ThrowOnError extends boolean = false>(options?: Options<SupportFeedbackReportRetrieveData, ThrowOnError>) => {
|
|
862
|
+
return (options?.client ?? _heyApiClient).get<SupportFeedbackReportRetrieveResponses, unknown, ThrowOnError>({
|
|
863
|
+
security: [
|
|
864
|
+
{
|
|
865
|
+
name: 'Authorization',
|
|
866
|
+
type: 'apiKey'
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
scheme: 'bearer',
|
|
870
|
+
type: 'http'
|
|
871
|
+
},
|
|
872
|
+
{
|
|
873
|
+
scheme: 'bearer',
|
|
874
|
+
type: 'http'
|
|
875
|
+
}
|
|
876
|
+
],
|
|
877
|
+
url: '/api/support-feedback-report/',
|
|
878
|
+
...options
|
|
879
|
+
});
|
|
880
|
+
};
|
|
881
|
+
|
|
882
|
+
export const supportFeedbacksList = <ThrowOnError extends boolean = false>(options?: Options<SupportFeedbacksListData, ThrowOnError>) => {
|
|
883
|
+
return (options?.client ?? _heyApiClient).get<SupportFeedbacksListResponses, unknown, ThrowOnError>({
|
|
884
|
+
security: [
|
|
885
|
+
{
|
|
886
|
+
name: 'Authorization',
|
|
887
|
+
type: 'apiKey'
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
scheme: 'bearer',
|
|
891
|
+
type: 'http'
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
scheme: 'bearer',
|
|
895
|
+
type: 'http'
|
|
896
|
+
}
|
|
897
|
+
],
|
|
898
|
+
url: '/api/support-feedbacks/',
|
|
899
|
+
...options
|
|
900
|
+
});
|
|
901
|
+
};
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Get number of items in the collection matching the request parameters.
|
|
905
|
+
*/
|
|
906
|
+
export const supportFeedbacksCount = <ThrowOnError extends boolean = false>(options?: Options<SupportFeedbacksCountData, ThrowOnError>) => {
|
|
907
|
+
return (options?.client ?? _heyApiClient).head<SupportFeedbacksCountResponses, unknown, ThrowOnError>({
|
|
908
|
+
security: [
|
|
909
|
+
{
|
|
910
|
+
name: 'Authorization',
|
|
911
|
+
type: 'apiKey'
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
scheme: 'bearer',
|
|
915
|
+
type: 'http'
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
scheme: 'bearer',
|
|
919
|
+
type: 'http'
|
|
920
|
+
}
|
|
921
|
+
],
|
|
922
|
+
url: '/api/support-feedbacks/',
|
|
923
|
+
...options
|
|
924
|
+
});
|
|
925
|
+
};
|
|
926
|
+
|
|
927
|
+
export const supportFeedbacksCreate = <ThrowOnError extends boolean = false>(options: Options<SupportFeedbacksCreateData, ThrowOnError>) => {
|
|
928
|
+
return (options.client ?? _heyApiClient).post<SupportFeedbacksCreateResponses, unknown, ThrowOnError>({
|
|
929
|
+
security: [
|
|
930
|
+
{
|
|
931
|
+
name: 'Authorization',
|
|
932
|
+
type: 'apiKey'
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
scheme: 'bearer',
|
|
936
|
+
type: 'http'
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
scheme: 'bearer',
|
|
940
|
+
type: 'http'
|
|
941
|
+
}
|
|
942
|
+
],
|
|
943
|
+
url: '/api/support-feedbacks/',
|
|
944
|
+
...options,
|
|
945
|
+
headers: {
|
|
946
|
+
'Content-Type': 'application/json',
|
|
947
|
+
...options.headers
|
|
948
|
+
}
|
|
949
|
+
});
|
|
950
|
+
};
|
|
951
|
+
|
|
952
|
+
export const supportFeedbacksRetrieve = <ThrowOnError extends boolean = false>(options: Options<SupportFeedbacksRetrieveData, ThrowOnError>) => {
|
|
953
|
+
return (options.client ?? _heyApiClient).get<SupportFeedbacksRetrieveResponses, unknown, ThrowOnError>({
|
|
954
|
+
security: [
|
|
955
|
+
{
|
|
956
|
+
name: 'Authorization',
|
|
957
|
+
type: 'apiKey'
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
scheme: 'bearer',
|
|
961
|
+
type: 'http'
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
scheme: 'bearer',
|
|
965
|
+
type: 'http'
|
|
966
|
+
}
|
|
967
|
+
],
|
|
968
|
+
url: '/api/support-feedbacks/{uuid}/',
|
|
969
|
+
...options
|
|
970
|
+
});
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
export const supportIssueStatusesList = <ThrowOnError extends boolean = false>(options?: Options<SupportIssueStatusesListData, ThrowOnError>) => {
|
|
974
|
+
return (options?.client ?? _heyApiClient).get<SupportIssueStatusesListResponses, unknown, ThrowOnError>({
|
|
975
|
+
security: [
|
|
976
|
+
{
|
|
977
|
+
name: 'Authorization',
|
|
978
|
+
type: 'apiKey'
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
scheme: 'bearer',
|
|
982
|
+
type: 'http'
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
scheme: 'bearer',
|
|
986
|
+
type: 'http'
|
|
987
|
+
}
|
|
988
|
+
],
|
|
989
|
+
url: '/api/support-issue-statuses/',
|
|
990
|
+
...options
|
|
991
|
+
});
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
/**
|
|
995
|
+
* Get number of items in the collection matching the request parameters.
|
|
996
|
+
*/
|
|
997
|
+
export const supportIssueStatusesCount = <ThrowOnError extends boolean = false>(options?: Options<SupportIssueStatusesCountData, ThrowOnError>) => {
|
|
998
|
+
return (options?.client ?? _heyApiClient).head<SupportIssueStatusesCountResponses, unknown, ThrowOnError>({
|
|
999
|
+
security: [
|
|
1000
|
+
{
|
|
1001
|
+
name: 'Authorization',
|
|
1002
|
+
type: 'apiKey'
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
scheme: 'bearer',
|
|
1006
|
+
type: 'http'
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
scheme: 'bearer',
|
|
1010
|
+
type: 'http'
|
|
1011
|
+
}
|
|
1012
|
+
],
|
|
1013
|
+
url: '/api/support-issue-statuses/',
|
|
1014
|
+
...options
|
|
1015
|
+
});
|
|
1016
|
+
};
|
|
1017
|
+
|
|
1018
|
+
export const supportIssueStatusesCreate = <ThrowOnError extends boolean = false>(options: Options<SupportIssueStatusesCreateData, ThrowOnError>) => {
|
|
1019
|
+
return (options.client ?? _heyApiClient).post<SupportIssueStatusesCreateResponses, unknown, ThrowOnError>({
|
|
1020
|
+
security: [
|
|
1021
|
+
{
|
|
1022
|
+
name: 'Authorization',
|
|
1023
|
+
type: 'apiKey'
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
scheme: 'bearer',
|
|
1027
|
+
type: 'http'
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
scheme: 'bearer',
|
|
1031
|
+
type: 'http'
|
|
1032
|
+
}
|
|
1033
|
+
],
|
|
1034
|
+
url: '/api/support-issue-statuses/',
|
|
1035
|
+
...options,
|
|
1036
|
+
headers: {
|
|
1037
|
+
'Content-Type': 'application/json',
|
|
1038
|
+
...options.headers
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
};
|
|
1042
|
+
|
|
1043
|
+
export const supportIssueStatusesDestroy = <ThrowOnError extends boolean = false>(options: Options<SupportIssueStatusesDestroyData, ThrowOnError>) => {
|
|
1044
|
+
return (options.client ?? _heyApiClient).delete<SupportIssueStatusesDestroyResponses, unknown, ThrowOnError>({
|
|
1045
|
+
security: [
|
|
1046
|
+
{
|
|
1047
|
+
name: 'Authorization',
|
|
1048
|
+
type: 'apiKey'
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
scheme: 'bearer',
|
|
1052
|
+
type: 'http'
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
scheme: 'bearer',
|
|
1056
|
+
type: 'http'
|
|
1057
|
+
}
|
|
1058
|
+
],
|
|
1059
|
+
url: '/api/support-issue-statuses/{uuid}/',
|
|
1060
|
+
...options
|
|
1061
|
+
});
|
|
1062
|
+
};
|
|
1063
|
+
|
|
1064
|
+
export const supportIssueStatusesRetrieve = <ThrowOnError extends boolean = false>(options: Options<SupportIssueStatusesRetrieveData, ThrowOnError>) => {
|
|
1065
|
+
return (options.client ?? _heyApiClient).get<SupportIssueStatusesRetrieveResponses, unknown, ThrowOnError>({
|
|
1066
|
+
security: [
|
|
1067
|
+
{
|
|
1068
|
+
name: 'Authorization',
|
|
1069
|
+
type: 'apiKey'
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
scheme: 'bearer',
|
|
1073
|
+
type: 'http'
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
scheme: 'bearer',
|
|
1077
|
+
type: 'http'
|
|
1078
|
+
}
|
|
1079
|
+
],
|
|
1080
|
+
url: '/api/support-issue-statuses/{uuid}/',
|
|
1081
|
+
...options
|
|
1082
|
+
});
|
|
1083
|
+
};
|
|
1084
|
+
|
|
1085
|
+
export const supportIssueStatusesPartialUpdate = <ThrowOnError extends boolean = false>(options: Options<SupportIssueStatusesPartialUpdateData, ThrowOnError>) => {
|
|
1086
|
+
return (options.client ?? _heyApiClient).patch<SupportIssueStatusesPartialUpdateResponses, unknown, ThrowOnError>({
|
|
1087
|
+
security: [
|
|
1088
|
+
{
|
|
1089
|
+
name: 'Authorization',
|
|
1090
|
+
type: 'apiKey'
|
|
1091
|
+
},
|
|
1092
|
+
{
|
|
1093
|
+
scheme: 'bearer',
|
|
1094
|
+
type: 'http'
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
scheme: 'bearer',
|
|
1098
|
+
type: 'http'
|
|
1099
|
+
}
|
|
1100
|
+
],
|
|
1101
|
+
url: '/api/support-issue-statuses/{uuid}/',
|
|
1102
|
+
...options,
|
|
1103
|
+
headers: {
|
|
1104
|
+
'Content-Type': 'application/json',
|
|
1105
|
+
...options.headers
|
|
1106
|
+
}
|
|
1107
|
+
});
|
|
1108
|
+
};
|
|
1109
|
+
|
|
1110
|
+
export const supportIssueStatusesUpdate = <ThrowOnError extends boolean = false>(options: Options<SupportIssueStatusesUpdateData, ThrowOnError>) => {
|
|
1111
|
+
return (options.client ?? _heyApiClient).put<SupportIssueStatusesUpdateResponses, unknown, ThrowOnError>({
|
|
1112
|
+
security: [
|
|
1113
|
+
{
|
|
1114
|
+
name: 'Authorization',
|
|
1115
|
+
type: 'apiKey'
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
scheme: 'bearer',
|
|
1119
|
+
type: 'http'
|
|
1120
|
+
},
|
|
1121
|
+
{
|
|
1122
|
+
scheme: 'bearer',
|
|
1123
|
+
type: 'http'
|
|
1124
|
+
}
|
|
1125
|
+
],
|
|
1126
|
+
url: '/api/support-issue-statuses/{uuid}/',
|
|
1127
|
+
...options,
|
|
1128
|
+
headers: {
|
|
1129
|
+
'Content-Type': 'application/json',
|
|
1130
|
+
...options.headers
|
|
1131
|
+
}
|
|
1132
|
+
});
|
|
1133
|
+
};
|
|
1134
|
+
|
|
1135
|
+
export const supportIssuesList = <ThrowOnError extends boolean = false>(options?: Options<SupportIssuesListData, ThrowOnError>) => {
|
|
1136
|
+
return (options?.client ?? _heyApiClient).get<SupportIssuesListResponses, unknown, ThrowOnError>({
|
|
1137
|
+
security: [
|
|
1138
|
+
{
|
|
1139
|
+
name: 'Authorization',
|
|
1140
|
+
type: 'apiKey'
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
scheme: 'bearer',
|
|
1144
|
+
type: 'http'
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
scheme: 'bearer',
|
|
1148
|
+
type: 'http'
|
|
1149
|
+
}
|
|
1150
|
+
],
|
|
1151
|
+
url: '/api/support-issues/',
|
|
1152
|
+
...options
|
|
1153
|
+
});
|
|
1154
|
+
};
|
|
1155
|
+
|
|
1156
|
+
/**
|
|
1157
|
+
* Get number of items in the collection matching the request parameters.
|
|
1158
|
+
*/
|
|
1159
|
+
export const supportIssuesCount = <ThrowOnError extends boolean = false>(options?: Options<SupportIssuesCountData, ThrowOnError>) => {
|
|
1160
|
+
return (options?.client ?? _heyApiClient).head<SupportIssuesCountResponses, unknown, ThrowOnError>({
|
|
1161
|
+
security: [
|
|
1162
|
+
{
|
|
1163
|
+
name: 'Authorization',
|
|
1164
|
+
type: 'apiKey'
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
scheme: 'bearer',
|
|
1168
|
+
type: 'http'
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
scheme: 'bearer',
|
|
1172
|
+
type: 'http'
|
|
1173
|
+
}
|
|
1174
|
+
],
|
|
1175
|
+
url: '/api/support-issues/',
|
|
1176
|
+
...options
|
|
1177
|
+
});
|
|
1178
|
+
};
|
|
1179
|
+
|
|
1180
|
+
export const supportIssuesCreate = <ThrowOnError extends boolean = false>(options: Options<SupportIssuesCreateData, ThrowOnError>) => {
|
|
1181
|
+
return (options.client ?? _heyApiClient).post<SupportIssuesCreateResponses, unknown, ThrowOnError>({
|
|
1182
|
+
security: [
|
|
1183
|
+
{
|
|
1184
|
+
name: 'Authorization',
|
|
1185
|
+
type: 'apiKey'
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
scheme: 'bearer',
|
|
1189
|
+
type: 'http'
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
scheme: 'bearer',
|
|
1193
|
+
type: 'http'
|
|
1194
|
+
}
|
|
1195
|
+
],
|
|
1196
|
+
url: '/api/support-issues/',
|
|
1197
|
+
...options,
|
|
1198
|
+
headers: {
|
|
1199
|
+
'Content-Type': 'application/json',
|
|
1200
|
+
...options.headers
|
|
1201
|
+
}
|
|
1202
|
+
});
|
|
1203
|
+
};
|
|
1204
|
+
|
|
1205
|
+
export const supportIssuesDestroy = <ThrowOnError extends boolean = false>(options: Options<SupportIssuesDestroyData, ThrowOnError>) => {
|
|
1206
|
+
return (options.client ?? _heyApiClient).delete<SupportIssuesDestroyResponses, unknown, ThrowOnError>({
|
|
1207
|
+
security: [
|
|
1208
|
+
{
|
|
1209
|
+
name: 'Authorization',
|
|
1210
|
+
type: 'apiKey'
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
scheme: 'bearer',
|
|
1214
|
+
type: 'http'
|
|
1215
|
+
},
|
|
1216
|
+
{
|
|
1217
|
+
scheme: 'bearer',
|
|
1218
|
+
type: 'http'
|
|
1219
|
+
}
|
|
1220
|
+
],
|
|
1221
|
+
url: '/api/support-issues/{uuid}/',
|
|
1222
|
+
...options
|
|
1223
|
+
});
|
|
1224
|
+
};
|
|
1225
|
+
|
|
1226
|
+
export const supportIssuesRetrieve = <ThrowOnError extends boolean = false>(options: Options<SupportIssuesRetrieveData, ThrowOnError>) => {
|
|
1227
|
+
return (options.client ?? _heyApiClient).get<SupportIssuesRetrieveResponses, unknown, ThrowOnError>({
|
|
1228
|
+
security: [
|
|
1229
|
+
{
|
|
1230
|
+
name: 'Authorization',
|
|
1231
|
+
type: 'apiKey'
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
scheme: 'bearer',
|
|
1235
|
+
type: 'http'
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
scheme: 'bearer',
|
|
1239
|
+
type: 'http'
|
|
1240
|
+
}
|
|
1241
|
+
],
|
|
1242
|
+
url: '/api/support-issues/{uuid}/',
|
|
1243
|
+
...options
|
|
1244
|
+
});
|
|
1245
|
+
};
|
|
1246
|
+
|
|
1247
|
+
export const supportIssuesPartialUpdate = <ThrowOnError extends boolean = false>(options: Options<SupportIssuesPartialUpdateData, ThrowOnError>) => {
|
|
1248
|
+
return (options.client ?? _heyApiClient).patch<SupportIssuesPartialUpdateResponses, unknown, ThrowOnError>({
|
|
1249
|
+
security: [
|
|
1250
|
+
{
|
|
1251
|
+
name: 'Authorization',
|
|
1252
|
+
type: 'apiKey'
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
scheme: 'bearer',
|
|
1256
|
+
type: 'http'
|
|
1257
|
+
},
|
|
1258
|
+
{
|
|
1259
|
+
scheme: 'bearer',
|
|
1260
|
+
type: 'http'
|
|
1261
|
+
}
|
|
1262
|
+
],
|
|
1263
|
+
url: '/api/support-issues/{uuid}/',
|
|
1264
|
+
...options,
|
|
1265
|
+
headers: {
|
|
1266
|
+
'Content-Type': 'application/json',
|
|
1267
|
+
...options.headers
|
|
1268
|
+
}
|
|
1269
|
+
});
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1272
|
+
export const supportIssuesUpdate = <ThrowOnError extends boolean = false>(options: Options<SupportIssuesUpdateData, ThrowOnError>) => {
|
|
1273
|
+
return (options.client ?? _heyApiClient).put<SupportIssuesUpdateResponses, unknown, ThrowOnError>({
|
|
1274
|
+
security: [
|
|
1275
|
+
{
|
|
1276
|
+
name: 'Authorization',
|
|
1277
|
+
type: 'apiKey'
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
scheme: 'bearer',
|
|
1281
|
+
type: 'http'
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
scheme: 'bearer',
|
|
1285
|
+
type: 'http'
|
|
1286
|
+
}
|
|
1287
|
+
],
|
|
1288
|
+
url: '/api/support-issues/{uuid}/',
|
|
1289
|
+
...options,
|
|
1290
|
+
headers: {
|
|
1291
|
+
'Content-Type': 'application/json',
|
|
1292
|
+
...options.headers
|
|
1293
|
+
}
|
|
1294
|
+
});
|
|
1295
|
+
};
|
|
1296
|
+
|
|
1297
|
+
export const supportIssuesComment = <ThrowOnError extends boolean = false>(options: Options<SupportIssuesCommentData, ThrowOnError>) => {
|
|
1298
|
+
return (options.client ?? _heyApiClient).post<SupportIssuesCommentResponses, unknown, ThrowOnError>({
|
|
1299
|
+
security: [
|
|
1300
|
+
{
|
|
1301
|
+
name: 'Authorization',
|
|
1302
|
+
type: 'apiKey'
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
scheme: 'bearer',
|
|
1306
|
+
type: 'http'
|
|
1307
|
+
},
|
|
1308
|
+
{
|
|
1309
|
+
scheme: 'bearer',
|
|
1310
|
+
type: 'http'
|
|
1311
|
+
}
|
|
1312
|
+
],
|
|
1313
|
+
url: '/api/support-issues/{uuid}/comment/',
|
|
1314
|
+
...options,
|
|
1315
|
+
headers: {
|
|
1316
|
+
'Content-Type': 'application/json',
|
|
1317
|
+
...options.headers
|
|
1318
|
+
}
|
|
1319
|
+
});
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
export const supportIssuesSync = <ThrowOnError extends boolean = false>(options: Options<SupportIssuesSyncData, ThrowOnError>) => {
|
|
1323
|
+
return (options.client ?? _heyApiClient).post<SupportIssuesSyncResponses, unknown, ThrowOnError>({
|
|
1324
|
+
security: [
|
|
1325
|
+
{
|
|
1326
|
+
name: 'Authorization',
|
|
1327
|
+
type: 'apiKey'
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
scheme: 'bearer',
|
|
1331
|
+
type: 'http'
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
scheme: 'bearer',
|
|
1335
|
+
type: 'http'
|
|
1336
|
+
}
|
|
1337
|
+
],
|
|
1338
|
+
url: '/api/support-issues/{uuid}/sync/',
|
|
1339
|
+
...options,
|
|
1340
|
+
headers: {
|
|
1341
|
+
'Content-Type': 'application/json',
|
|
1342
|
+
...options.headers
|
|
1343
|
+
}
|
|
1344
|
+
});
|
|
1345
|
+
};
|
|
1346
|
+
|
|
1347
|
+
export const supportJiraWebhook = <ThrowOnError extends boolean = false>(options: Options<SupportJiraWebhookData, ThrowOnError>) => {
|
|
1348
|
+
return (options.client ?? _heyApiClient).post<SupportJiraWebhookResponses, unknown, ThrowOnError>({
|
|
1349
|
+
url: '/api/support-jira-webhook/',
|
|
1350
|
+
...options,
|
|
1351
|
+
headers: {
|
|
1352
|
+
'Content-Type': 'application/json',
|
|
1353
|
+
...options.headers
|
|
1354
|
+
}
|
|
1355
|
+
});
|
|
1356
|
+
};
|
|
1357
|
+
|
|
1358
|
+
export const supportPrioritiesList = <ThrowOnError extends boolean = false>(options?: Options<SupportPrioritiesListData, ThrowOnError>) => {
|
|
1359
|
+
return (options?.client ?? _heyApiClient).get<SupportPrioritiesListResponses, unknown, ThrowOnError>({
|
|
1360
|
+
security: [
|
|
1361
|
+
{
|
|
1362
|
+
name: 'Authorization',
|
|
1363
|
+
type: 'apiKey'
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
scheme: 'bearer',
|
|
1367
|
+
type: 'http'
|
|
1368
|
+
},
|
|
1369
|
+
{
|
|
1370
|
+
scheme: 'bearer',
|
|
1371
|
+
type: 'http'
|
|
1372
|
+
}
|
|
1373
|
+
],
|
|
1374
|
+
url: '/api/support-priorities/',
|
|
1375
|
+
...options
|
|
1376
|
+
});
|
|
1377
|
+
};
|
|
1378
|
+
|
|
1379
|
+
/**
|
|
1380
|
+
* Get number of items in the collection matching the request parameters.
|
|
1381
|
+
*/
|
|
1382
|
+
export const supportPrioritiesCount = <ThrowOnError extends boolean = false>(options?: Options<SupportPrioritiesCountData, ThrowOnError>) => {
|
|
1383
|
+
return (options?.client ?? _heyApiClient).head<SupportPrioritiesCountResponses, unknown, ThrowOnError>({
|
|
1384
|
+
security: [
|
|
1385
|
+
{
|
|
1386
|
+
name: 'Authorization',
|
|
1387
|
+
type: 'apiKey'
|
|
1388
|
+
},
|
|
1389
|
+
{
|
|
1390
|
+
scheme: 'bearer',
|
|
1391
|
+
type: 'http'
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
scheme: 'bearer',
|
|
1395
|
+
type: 'http'
|
|
1396
|
+
}
|
|
1397
|
+
],
|
|
1398
|
+
url: '/api/support-priorities/',
|
|
1399
|
+
...options
|
|
1400
|
+
});
|
|
1401
|
+
};
|
|
1402
|
+
|
|
1403
|
+
export const supportPrioritiesRetrieve = <ThrowOnError extends boolean = false>(options: Options<SupportPrioritiesRetrieveData, ThrowOnError>) => {
|
|
1404
|
+
return (options.client ?? _heyApiClient).get<SupportPrioritiesRetrieveResponses, unknown, ThrowOnError>({
|
|
1405
|
+
security: [
|
|
1406
|
+
{
|
|
1407
|
+
name: 'Authorization',
|
|
1408
|
+
type: 'apiKey'
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
scheme: 'bearer',
|
|
1412
|
+
type: 'http'
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
scheme: 'bearer',
|
|
1416
|
+
type: 'http'
|
|
1417
|
+
}
|
|
1418
|
+
],
|
|
1419
|
+
url: '/api/support-priorities/{uuid}/',
|
|
1420
|
+
...options
|
|
1421
|
+
});
|
|
1422
|
+
};
|
|
1423
|
+
|
|
1424
|
+
export const supportRequestTypesList = <ThrowOnError extends boolean = false>(options?: Options<SupportRequestTypesListData, ThrowOnError>) => {
|
|
1425
|
+
return (options?.client ?? _heyApiClient).get<SupportRequestTypesListResponses, unknown, ThrowOnError>({
|
|
1426
|
+
security: [
|
|
1427
|
+
{
|
|
1428
|
+
name: 'Authorization',
|
|
1429
|
+
type: 'apiKey'
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
scheme: 'bearer',
|
|
1433
|
+
type: 'http'
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
scheme: 'bearer',
|
|
1437
|
+
type: 'http'
|
|
1438
|
+
}
|
|
1439
|
+
],
|
|
1440
|
+
url: '/api/support-request-types/',
|
|
1441
|
+
...options
|
|
1442
|
+
});
|
|
1443
|
+
};
|
|
1444
|
+
|
|
1445
|
+
/**
|
|
1446
|
+
* Get number of items in the collection matching the request parameters.
|
|
1447
|
+
*/
|
|
1448
|
+
export const supportRequestTypesCount = <ThrowOnError extends boolean = false>(options?: Options<SupportRequestTypesCountData, ThrowOnError>) => {
|
|
1449
|
+
return (options?.client ?? _heyApiClient).head<SupportRequestTypesCountResponses, unknown, ThrowOnError>({
|
|
1450
|
+
security: [
|
|
1451
|
+
{
|
|
1452
|
+
name: 'Authorization',
|
|
1453
|
+
type: 'apiKey'
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
scheme: 'bearer',
|
|
1457
|
+
type: 'http'
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
scheme: 'bearer',
|
|
1461
|
+
type: 'http'
|
|
1462
|
+
}
|
|
1463
|
+
],
|
|
1464
|
+
url: '/api/support-request-types/',
|
|
1465
|
+
...options
|
|
1466
|
+
});
|
|
1467
|
+
};
|
|
1468
|
+
|
|
1469
|
+
export const supportRequestTypesAdminList = <ThrowOnError extends boolean = false>(options?: Options<SupportRequestTypesAdminListData, ThrowOnError>) => {
|
|
1470
|
+
return (options?.client ?? _heyApiClient).get<SupportRequestTypesAdminListResponses, unknown, ThrowOnError>({
|
|
1471
|
+
security: [
|
|
1472
|
+
{
|
|
1473
|
+
name: 'Authorization',
|
|
1474
|
+
type: 'apiKey'
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
scheme: 'bearer',
|
|
1478
|
+
type: 'http'
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
scheme: 'bearer',
|
|
1482
|
+
type: 'http'
|
|
1483
|
+
}
|
|
1484
|
+
],
|
|
1485
|
+
url: '/api/support-request-types-admin/',
|
|
1486
|
+
...options
|
|
1487
|
+
});
|
|
1488
|
+
};
|
|
1489
|
+
|
|
1490
|
+
/**
|
|
1491
|
+
* Get number of items in the collection matching the request parameters.
|
|
1492
|
+
*/
|
|
1493
|
+
export const supportRequestTypesAdminCount = <ThrowOnError extends boolean = false>(options?: Options<SupportRequestTypesAdminCountData, ThrowOnError>) => {
|
|
1494
|
+
return (options?.client ?? _heyApiClient).head<SupportRequestTypesAdminCountResponses, unknown, ThrowOnError>({
|
|
1495
|
+
security: [
|
|
1496
|
+
{
|
|
1497
|
+
name: 'Authorization',
|
|
1498
|
+
type: 'apiKey'
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
scheme: 'bearer',
|
|
1502
|
+
type: 'http'
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
scheme: 'bearer',
|
|
1506
|
+
type: 'http'
|
|
1507
|
+
}
|
|
1508
|
+
],
|
|
1509
|
+
url: '/api/support-request-types-admin/',
|
|
1510
|
+
...options
|
|
1511
|
+
});
|
|
1512
|
+
};
|
|
1513
|
+
|
|
1514
|
+
export const supportRequestTypesAdminCreate = <ThrowOnError extends boolean = false>(options: Options<SupportRequestTypesAdminCreateData, ThrowOnError>) => {
|
|
1515
|
+
return (options.client ?? _heyApiClient).post<SupportRequestTypesAdminCreateResponses, unknown, ThrowOnError>({
|
|
1516
|
+
security: [
|
|
1517
|
+
{
|
|
1518
|
+
name: 'Authorization',
|
|
1519
|
+
type: 'apiKey'
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
scheme: 'bearer',
|
|
1523
|
+
type: 'http'
|
|
1524
|
+
},
|
|
1525
|
+
{
|
|
1526
|
+
scheme: 'bearer',
|
|
1527
|
+
type: 'http'
|
|
1528
|
+
}
|
|
1529
|
+
],
|
|
1530
|
+
url: '/api/support-request-types-admin/',
|
|
1531
|
+
...options,
|
|
1532
|
+
headers: {
|
|
1533
|
+
'Content-Type': 'application/json',
|
|
1534
|
+
...options.headers
|
|
1535
|
+
}
|
|
1536
|
+
});
|
|
1537
|
+
};
|
|
1538
|
+
|
|
1539
|
+
export const supportRequestTypesAdminDestroy = <ThrowOnError extends boolean = false>(options: Options<SupportRequestTypesAdminDestroyData, ThrowOnError>) => {
|
|
1540
|
+
return (options.client ?? _heyApiClient).delete<SupportRequestTypesAdminDestroyResponses, unknown, ThrowOnError>({
|
|
1541
|
+
security: [
|
|
1542
|
+
{
|
|
1543
|
+
name: 'Authorization',
|
|
1544
|
+
type: 'apiKey'
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
scheme: 'bearer',
|
|
1548
|
+
type: 'http'
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
scheme: 'bearer',
|
|
1552
|
+
type: 'http'
|
|
1553
|
+
}
|
|
1554
|
+
],
|
|
1555
|
+
url: '/api/support-request-types-admin/{uuid}/',
|
|
1556
|
+
...options
|
|
1557
|
+
});
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
export const supportRequestTypesAdminRetrieve = <ThrowOnError extends boolean = false>(options: Options<SupportRequestTypesAdminRetrieveData, ThrowOnError>) => {
|
|
1561
|
+
return (options.client ?? _heyApiClient).get<SupportRequestTypesAdminRetrieveResponses, unknown, ThrowOnError>({
|
|
1562
|
+
security: [
|
|
1563
|
+
{
|
|
1564
|
+
name: 'Authorization',
|
|
1565
|
+
type: 'apiKey'
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
scheme: 'bearer',
|
|
1569
|
+
type: 'http'
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
scheme: 'bearer',
|
|
1573
|
+
type: 'http'
|
|
1574
|
+
}
|
|
1575
|
+
],
|
|
1576
|
+
url: '/api/support-request-types-admin/{uuid}/',
|
|
1577
|
+
...options
|
|
1578
|
+
});
|
|
1579
|
+
};
|
|
1580
|
+
|
|
1581
|
+
export const supportRequestTypesAdminPartialUpdate = <ThrowOnError extends boolean = false>(options: Options<SupportRequestTypesAdminPartialUpdateData, ThrowOnError>) => {
|
|
1582
|
+
return (options.client ?? _heyApiClient).patch<SupportRequestTypesAdminPartialUpdateResponses, unknown, ThrowOnError>({
|
|
1583
|
+
security: [
|
|
1584
|
+
{
|
|
1585
|
+
name: 'Authorization',
|
|
1586
|
+
type: 'apiKey'
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
scheme: 'bearer',
|
|
1590
|
+
type: 'http'
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
scheme: 'bearer',
|
|
1594
|
+
type: 'http'
|
|
1595
|
+
}
|
|
1596
|
+
],
|
|
1597
|
+
url: '/api/support-request-types-admin/{uuid}/',
|
|
1598
|
+
...options,
|
|
1599
|
+
headers: {
|
|
1600
|
+
'Content-Type': 'application/json',
|
|
1601
|
+
...options.headers
|
|
1602
|
+
}
|
|
1603
|
+
});
|
|
1604
|
+
};
|
|
1605
|
+
|
|
1606
|
+
export const supportRequestTypesAdminUpdate = <ThrowOnError extends boolean = false>(options: Options<SupportRequestTypesAdminUpdateData, ThrowOnError>) => {
|
|
1607
|
+
return (options.client ?? _heyApiClient).put<SupportRequestTypesAdminUpdateResponses, unknown, ThrowOnError>({
|
|
1608
|
+
security: [
|
|
1609
|
+
{
|
|
1610
|
+
name: 'Authorization',
|
|
1611
|
+
type: 'apiKey'
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
scheme: 'bearer',
|
|
1615
|
+
type: 'http'
|
|
1616
|
+
},
|
|
1617
|
+
{
|
|
1618
|
+
scheme: 'bearer',
|
|
1619
|
+
type: 'http'
|
|
1620
|
+
}
|
|
1621
|
+
],
|
|
1622
|
+
url: '/api/support-request-types-admin/{uuid}/',
|
|
1623
|
+
...options,
|
|
1624
|
+
headers: {
|
|
1625
|
+
'Content-Type': 'application/json',
|
|
1626
|
+
...options.headers
|
|
1627
|
+
}
|
|
1628
|
+
});
|
|
1629
|
+
};
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* Activate a request type so it appears in issue creation.
|
|
1633
|
+
*/
|
|
1634
|
+
export const supportRequestTypesAdminActivate = <ThrowOnError extends boolean = false>(options: Options<SupportRequestTypesAdminActivateData, ThrowOnError>) => {
|
|
1635
|
+
return (options.client ?? _heyApiClient).post<SupportRequestTypesAdminActivateResponses, unknown, ThrowOnError>({
|
|
1636
|
+
security: [
|
|
1637
|
+
{
|
|
1638
|
+
name: 'Authorization',
|
|
1639
|
+
type: 'apiKey'
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
scheme: 'bearer',
|
|
1643
|
+
type: 'http'
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
scheme: 'bearer',
|
|
1647
|
+
type: 'http'
|
|
1648
|
+
}
|
|
1649
|
+
],
|
|
1650
|
+
url: '/api/support-request-types-admin/{uuid}/activate/',
|
|
1651
|
+
...options,
|
|
1652
|
+
headers: {
|
|
1653
|
+
'Content-Type': 'application/json',
|
|
1654
|
+
...options.headers
|
|
1655
|
+
}
|
|
1656
|
+
});
|
|
1657
|
+
};
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Deactivate a request type so it no longer appears in issue creation.
|
|
1661
|
+
*/
|
|
1662
|
+
export const supportRequestTypesAdminDeactivate = <ThrowOnError extends boolean = false>(options: Options<SupportRequestTypesAdminDeactivateData, ThrowOnError>) => {
|
|
1663
|
+
return (options.client ?? _heyApiClient).post<SupportRequestTypesAdminDeactivateResponses, unknown, ThrowOnError>({
|
|
1664
|
+
security: [
|
|
1665
|
+
{
|
|
1666
|
+
name: 'Authorization',
|
|
1667
|
+
type: 'apiKey'
|
|
1668
|
+
},
|
|
1669
|
+
{
|
|
1670
|
+
scheme: 'bearer',
|
|
1671
|
+
type: 'http'
|
|
1672
|
+
},
|
|
1673
|
+
{
|
|
1674
|
+
scheme: 'bearer',
|
|
1675
|
+
type: 'http'
|
|
1676
|
+
}
|
|
1677
|
+
],
|
|
1678
|
+
url: '/api/support-request-types-admin/{uuid}/deactivate/',
|
|
1679
|
+
...options,
|
|
1680
|
+
headers: {
|
|
1681
|
+
'Content-Type': 'application/json',
|
|
1682
|
+
...options.headers
|
|
1683
|
+
}
|
|
1684
|
+
});
|
|
1685
|
+
};
|
|
1686
|
+
|
|
1687
|
+
/**
|
|
1688
|
+
* Bulk update order for multiple request types.
|
|
1689
|
+
*/
|
|
1690
|
+
export const supportRequestTypesAdminReorder = <ThrowOnError extends boolean = false>(options: Options<SupportRequestTypesAdminReorderData, ThrowOnError>) => {
|
|
1691
|
+
return (options.client ?? _heyApiClient).post<SupportRequestTypesAdminReorderResponses, unknown, ThrowOnError>({
|
|
1692
|
+
security: [
|
|
1693
|
+
{
|
|
1694
|
+
name: 'Authorization',
|
|
1695
|
+
type: 'apiKey'
|
|
1696
|
+
},
|
|
1697
|
+
{
|
|
1698
|
+
scheme: 'bearer',
|
|
1699
|
+
type: 'http'
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
scheme: 'bearer',
|
|
1703
|
+
type: 'http'
|
|
1704
|
+
}
|
|
1705
|
+
],
|
|
1706
|
+
url: '/api/support-request-types-admin/reorder/',
|
|
1707
|
+
...options,
|
|
1708
|
+
headers: {
|
|
1709
|
+
'Content-Type': 'application/json',
|
|
1710
|
+
...options.headers
|
|
1711
|
+
}
|
|
1712
|
+
});
|
|
1713
|
+
};
|
|
1714
|
+
|
|
1715
|
+
export const supportRequestTypesRetrieve = <ThrowOnError extends boolean = false>(options: Options<SupportRequestTypesRetrieveData, ThrowOnError>) => {
|
|
1716
|
+
return (options.client ?? _heyApiClient).get<SupportRequestTypesRetrieveResponses, unknown, ThrowOnError>({
|
|
1717
|
+
security: [
|
|
1718
|
+
{
|
|
1719
|
+
name: 'Authorization',
|
|
1720
|
+
type: 'apiKey'
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
scheme: 'bearer',
|
|
1724
|
+
type: 'http'
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
scheme: 'bearer',
|
|
1728
|
+
type: 'http'
|
|
1729
|
+
}
|
|
1730
|
+
],
|
|
1731
|
+
url: '/api/support-request-types/{uuid}/',
|
|
1732
|
+
...options
|
|
1733
|
+
});
|
|
1734
|
+
};
|
|
1735
|
+
|
|
1736
|
+
export const supportSmaxWebhook = <ThrowOnError extends boolean = false>(options: Options<SupportSmaxWebhookData, ThrowOnError>) => {
|
|
1737
|
+
return (options.client ?? _heyApiClient).post<SupportSmaxWebhookResponses, unknown, ThrowOnError>({
|
|
1738
|
+
url: '/api/support-smax-webhook/',
|
|
1739
|
+
...options,
|
|
1740
|
+
headers: {
|
|
1741
|
+
'Content-Type': 'application/json',
|
|
1742
|
+
...options.headers
|
|
1743
|
+
}
|
|
1744
|
+
});
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1747
|
+
export const supportStatisticsRetrieve = <ThrowOnError extends boolean = false>(options?: Options<SupportStatisticsRetrieveData, ThrowOnError>) => {
|
|
1748
|
+
return (options?.client ?? _heyApiClient).get<SupportStatisticsRetrieveResponses, unknown, ThrowOnError>({
|
|
1749
|
+
security: [
|
|
1750
|
+
{
|
|
1751
|
+
name: 'Authorization',
|
|
1752
|
+
type: 'apiKey'
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
scheme: 'bearer',
|
|
1756
|
+
type: 'http'
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
scheme: 'bearer',
|
|
1760
|
+
type: 'http'
|
|
1761
|
+
}
|
|
1762
|
+
],
|
|
1763
|
+
url: '/api/support-statistics/',
|
|
1764
|
+
...options
|
|
1765
|
+
});
|
|
1766
|
+
};
|
|
1767
|
+
|
|
1768
|
+
export const supportTemplatesList = <ThrowOnError extends boolean = false>(options?: Options<SupportTemplatesListData, ThrowOnError>) => {
|
|
1769
|
+
return (options?.client ?? _heyApiClient).get<SupportTemplatesListResponses, unknown, ThrowOnError>({
|
|
1770
|
+
security: [
|
|
1771
|
+
{
|
|
1772
|
+
name: 'Authorization',
|
|
1773
|
+
type: 'apiKey'
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
scheme: 'bearer',
|
|
1777
|
+
type: 'http'
|
|
1778
|
+
},
|
|
1779
|
+
{
|
|
1780
|
+
scheme: 'bearer',
|
|
1781
|
+
type: 'http'
|
|
1782
|
+
}
|
|
1783
|
+
],
|
|
1784
|
+
url: '/api/support-templates/',
|
|
1785
|
+
...options
|
|
1786
|
+
});
|
|
1787
|
+
};
|
|
1788
|
+
|
|
1789
|
+
/**
|
|
1790
|
+
* Get number of items in the collection matching the request parameters.
|
|
1791
|
+
*/
|
|
1792
|
+
export const supportTemplatesCount = <ThrowOnError extends boolean = false>(options?: Options<SupportTemplatesCountData, ThrowOnError>) => {
|
|
1793
|
+
return (options?.client ?? _heyApiClient).head<SupportTemplatesCountResponses, unknown, ThrowOnError>({
|
|
1794
|
+
security: [
|
|
1795
|
+
{
|
|
1796
|
+
name: 'Authorization',
|
|
1797
|
+
type: 'apiKey'
|
|
1798
|
+
},
|
|
1799
|
+
{
|
|
1800
|
+
scheme: 'bearer',
|
|
1801
|
+
type: 'http'
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
scheme: 'bearer',
|
|
1805
|
+
type: 'http'
|
|
1806
|
+
}
|
|
1807
|
+
],
|
|
1808
|
+
url: '/api/support-templates/',
|
|
1809
|
+
...options
|
|
1810
|
+
});
|
|
1811
|
+
};
|
|
1812
|
+
|
|
1813
|
+
export const supportTemplatesCreate = <ThrowOnError extends boolean = false>(options: Options<SupportTemplatesCreateData, ThrowOnError>) => {
|
|
1814
|
+
return (options.client ?? _heyApiClient).post<SupportTemplatesCreateResponses, unknown, ThrowOnError>({
|
|
1815
|
+
security: [
|
|
1816
|
+
{
|
|
1817
|
+
name: 'Authorization',
|
|
1818
|
+
type: 'apiKey'
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
scheme: 'bearer',
|
|
1822
|
+
type: 'http'
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
scheme: 'bearer',
|
|
1826
|
+
type: 'http'
|
|
1827
|
+
}
|
|
1828
|
+
],
|
|
1829
|
+
url: '/api/support-templates/',
|
|
1830
|
+
...options,
|
|
1831
|
+
headers: {
|
|
1832
|
+
'Content-Type': 'application/json',
|
|
1833
|
+
...options.headers
|
|
1834
|
+
}
|
|
1835
|
+
});
|
|
1836
|
+
};
|
|
1837
|
+
|
|
1838
|
+
export const supportTemplatesDestroy = <ThrowOnError extends boolean = false>(options: Options<SupportTemplatesDestroyData, ThrowOnError>) => {
|
|
1839
|
+
return (options.client ?? _heyApiClient).delete<SupportTemplatesDestroyResponses, unknown, ThrowOnError>({
|
|
1840
|
+
security: [
|
|
1841
|
+
{
|
|
1842
|
+
name: 'Authorization',
|
|
1843
|
+
type: 'apiKey'
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
scheme: 'bearer',
|
|
1847
|
+
type: 'http'
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
scheme: 'bearer',
|
|
1851
|
+
type: 'http'
|
|
1852
|
+
}
|
|
1853
|
+
],
|
|
1854
|
+
url: '/api/support-templates/{uuid}/',
|
|
1855
|
+
...options
|
|
1856
|
+
});
|
|
1857
|
+
};
|
|
1858
|
+
|
|
1859
|
+
export const supportTemplatesRetrieve = <ThrowOnError extends boolean = false>(options: Options<SupportTemplatesRetrieveData, ThrowOnError>) => {
|
|
1860
|
+
return (options.client ?? _heyApiClient).get<SupportTemplatesRetrieveResponses, unknown, ThrowOnError>({
|
|
1861
|
+
security: [
|
|
1862
|
+
{
|
|
1863
|
+
name: 'Authorization',
|
|
1864
|
+
type: 'apiKey'
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
scheme: 'bearer',
|
|
1868
|
+
type: 'http'
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
scheme: 'bearer',
|
|
1872
|
+
type: 'http'
|
|
1873
|
+
}
|
|
1874
|
+
],
|
|
1875
|
+
url: '/api/support-templates/{uuid}/',
|
|
1876
|
+
...options
|
|
1877
|
+
});
|
|
1878
|
+
};
|
|
1879
|
+
|
|
1880
|
+
export const supportTemplatesPartialUpdate = <ThrowOnError extends boolean = false>(options: Options<SupportTemplatesPartialUpdateData, ThrowOnError>) => {
|
|
1881
|
+
return (options.client ?? _heyApiClient).patch<SupportTemplatesPartialUpdateResponses, unknown, ThrowOnError>({
|
|
1882
|
+
security: [
|
|
1883
|
+
{
|
|
1884
|
+
name: 'Authorization',
|
|
1885
|
+
type: 'apiKey'
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
scheme: 'bearer',
|
|
1889
|
+
type: 'http'
|
|
1890
|
+
},
|
|
1891
|
+
{
|
|
1892
|
+
scheme: 'bearer',
|
|
1893
|
+
type: 'http'
|
|
1894
|
+
}
|
|
1895
|
+
],
|
|
1896
|
+
url: '/api/support-templates/{uuid}/',
|
|
1897
|
+
...options,
|
|
1898
|
+
headers: {
|
|
1899
|
+
'Content-Type': 'application/json',
|
|
1900
|
+
...options.headers
|
|
1901
|
+
}
|
|
1902
|
+
});
|
|
1903
|
+
};
|
|
1904
|
+
|
|
1905
|
+
export const supportTemplatesUpdate = <ThrowOnError extends boolean = false>(options: Options<SupportTemplatesUpdateData, ThrowOnError>) => {
|
|
1906
|
+
return (options.client ?? _heyApiClient).put<SupportTemplatesUpdateResponses, unknown, ThrowOnError>({
|
|
1907
|
+
security: [
|
|
1908
|
+
{
|
|
1909
|
+
name: 'Authorization',
|
|
1910
|
+
type: 'apiKey'
|
|
1911
|
+
},
|
|
1912
|
+
{
|
|
1913
|
+
scheme: 'bearer',
|
|
1914
|
+
type: 'http'
|
|
1915
|
+
},
|
|
1916
|
+
{
|
|
1917
|
+
scheme: 'bearer',
|
|
1918
|
+
type: 'http'
|
|
1919
|
+
}
|
|
1920
|
+
],
|
|
1921
|
+
url: '/api/support-templates/{uuid}/',
|
|
1922
|
+
...options,
|
|
1923
|
+
headers: {
|
|
1924
|
+
'Content-Type': 'application/json',
|
|
1925
|
+
...options.headers
|
|
1926
|
+
}
|
|
1927
|
+
});
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1930
|
+
/**
|
|
1931
|
+
* This view attaches documents to template.
|
|
1932
|
+
*/
|
|
1933
|
+
export const supportTemplatesCreateAttachments = <ThrowOnError extends boolean = false>(options: Options<SupportTemplatesCreateAttachmentsData, ThrowOnError>) => {
|
|
1934
|
+
return (options.client ?? _heyApiClient).post<SupportTemplatesCreateAttachmentsResponses, SupportTemplatesCreateAttachmentsErrors, ThrowOnError>({
|
|
1935
|
+
security: [
|
|
1936
|
+
{
|
|
1937
|
+
name: 'Authorization',
|
|
1938
|
+
type: 'apiKey'
|
|
1939
|
+
},
|
|
1940
|
+
{
|
|
1941
|
+
scheme: 'bearer',
|
|
1942
|
+
type: 'http'
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
scheme: 'bearer',
|
|
1946
|
+
type: 'http'
|
|
1947
|
+
}
|
|
1948
|
+
],
|
|
1949
|
+
url: '/api/support-templates/{uuid}/create_attachments/',
|
|
1950
|
+
...options,
|
|
1951
|
+
headers: {
|
|
1952
|
+
'Content-Type': 'application/json',
|
|
1953
|
+
...options.headers
|
|
1954
|
+
}
|
|
1955
|
+
});
|
|
1956
|
+
};
|
|
1957
|
+
|
|
1958
|
+
export const supportTemplatesDeleteAttachments = <ThrowOnError extends boolean = false>(options: Options<SupportTemplatesDeleteAttachmentsData, ThrowOnError>) => {
|
|
1959
|
+
return (options.client ?? _heyApiClient).post<SupportTemplatesDeleteAttachmentsResponses, unknown, ThrowOnError>({
|
|
1960
|
+
security: [
|
|
1961
|
+
{
|
|
1962
|
+
name: 'Authorization',
|
|
1963
|
+
type: 'apiKey'
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
scheme: 'bearer',
|
|
1967
|
+
type: 'http'
|
|
1968
|
+
},
|
|
1969
|
+
{
|
|
1970
|
+
scheme: 'bearer',
|
|
1971
|
+
type: 'http'
|
|
1972
|
+
}
|
|
1973
|
+
],
|
|
1974
|
+
url: '/api/support-templates/{uuid}/delete_attachments/',
|
|
1975
|
+
...options,
|
|
1976
|
+
headers: {
|
|
1977
|
+
'Content-Type': 'application/json',
|
|
1978
|
+
...options.headers
|
|
1979
|
+
}
|
|
1980
|
+
});
|
|
1981
|
+
};
|
|
1982
|
+
|
|
1983
|
+
export const supportUsersList = <ThrowOnError extends boolean = false>(options?: Options<SupportUsersListData, ThrowOnError>) => {
|
|
1984
|
+
return (options?.client ?? _heyApiClient).get<SupportUsersListResponses, unknown, ThrowOnError>({
|
|
1985
|
+
security: [
|
|
1986
|
+
{
|
|
1987
|
+
name: 'Authorization',
|
|
1988
|
+
type: 'apiKey'
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
scheme: 'bearer',
|
|
1992
|
+
type: 'http'
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
scheme: 'bearer',
|
|
1996
|
+
type: 'http'
|
|
1997
|
+
}
|
|
1998
|
+
],
|
|
1999
|
+
url: '/api/support-users/',
|
|
2000
|
+
...options
|
|
2001
|
+
});
|
|
2002
|
+
};
|
|
2003
|
+
|
|
2004
|
+
/**
|
|
2005
|
+
* Get number of items in the collection matching the request parameters.
|
|
2006
|
+
*/
|
|
2007
|
+
export const supportUsersCount = <ThrowOnError extends boolean = false>(options?: Options<SupportUsersCountData, ThrowOnError>) => {
|
|
2008
|
+
return (options?.client ?? _heyApiClient).head<SupportUsersCountResponses, unknown, ThrowOnError>({
|
|
2009
|
+
security: [
|
|
2010
|
+
{
|
|
2011
|
+
name: 'Authorization',
|
|
2012
|
+
type: 'apiKey'
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
scheme: 'bearer',
|
|
2016
|
+
type: 'http'
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
scheme: 'bearer',
|
|
2020
|
+
type: 'http'
|
|
2021
|
+
}
|
|
2022
|
+
],
|
|
2023
|
+
url: '/api/support-users/',
|
|
2024
|
+
...options
|
|
2025
|
+
});
|
|
2026
|
+
};
|
|
2027
|
+
|
|
2028
|
+
export const supportUsersRetrieve = <ThrowOnError extends boolean = false>(options: Options<SupportUsersRetrieveData, ThrowOnError>) => {
|
|
2029
|
+
return (options.client ?? _heyApiClient).get<SupportUsersRetrieveResponses, unknown, ThrowOnError>({
|
|
2030
|
+
security: [
|
|
2031
|
+
{
|
|
2032
|
+
name: 'Authorization',
|
|
2033
|
+
type: 'apiKey'
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
scheme: 'bearer',
|
|
2037
|
+
type: 'http'
|
|
2038
|
+
},
|
|
2039
|
+
{
|
|
2040
|
+
scheme: 'bearer',
|
|
2041
|
+
type: 'http'
|
|
2042
|
+
}
|
|
2043
|
+
],
|
|
2044
|
+
url: '/api/support-users/{uuid}/',
|
|
2045
|
+
...options
|
|
2046
|
+
});
|
|
2047
|
+
};
|
|
2048
|
+
|
|
2049
|
+
export const supportZammadWebhook = <ThrowOnError extends boolean = false>(options?: Options<SupportZammadWebhookData, ThrowOnError>) => {
|
|
2050
|
+
return (options?.client ?? _heyApiClient).post<SupportZammadWebhookResponses, unknown, ThrowOnError>({
|
|
2051
|
+
url: '/api/support-zammad-webhook/',
|
|
2052
|
+
...options
|
|
2053
|
+
});
|
|
2054
|
+
};
|
|
2055
|
+
|
|
2056
|
+
export const supportSettingsAtlassianList = <ThrowOnError extends boolean = false>(options?: Options<SupportSettingsAtlassianListData, ThrowOnError>) => {
|
|
2057
|
+
return (options?.client ?? _heyApiClient).get<SupportSettingsAtlassianListResponses, unknown, ThrowOnError>({
|
|
2058
|
+
security: [
|
|
2059
|
+
{
|
|
2060
|
+
name: 'Authorization',
|
|
2061
|
+
type: 'apiKey'
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
scheme: 'bearer',
|
|
2065
|
+
type: 'http'
|
|
2066
|
+
},
|
|
2067
|
+
{
|
|
2068
|
+
scheme: 'bearer',
|
|
2069
|
+
type: 'http'
|
|
2070
|
+
}
|
|
2071
|
+
],
|
|
2072
|
+
url: '/api/support/settings/atlassian/',
|
|
2073
|
+
...options
|
|
2074
|
+
});
|
|
2075
|
+
};
|
|
2076
|
+
|
|
2077
|
+
export const supportSettingsAtlassianCreate = <ThrowOnError extends boolean = false>(options?: Options<SupportSettingsAtlassianCreateData, ThrowOnError>) => {
|
|
2078
|
+
return (options?.client ?? _heyApiClient).post<SupportSettingsAtlassianCreateResponses, unknown, ThrowOnError>({
|
|
2079
|
+
security: [
|
|
2080
|
+
{
|
|
2081
|
+
name: 'Authorization',
|
|
2082
|
+
type: 'apiKey'
|
|
2083
|
+
},
|
|
2084
|
+
{
|
|
2085
|
+
scheme: 'bearer',
|
|
2086
|
+
type: 'http'
|
|
2087
|
+
},
|
|
2088
|
+
{
|
|
2089
|
+
scheme: 'bearer',
|
|
2090
|
+
type: 'http'
|
|
2091
|
+
}
|
|
2092
|
+
],
|
|
2093
|
+
url: '/api/support/settings/atlassian/',
|
|
2094
|
+
...options
|
|
2095
|
+
});
|
|
2096
|
+
};
|
|
2097
|
+
|
|
2098
|
+
export const supportSettingsAtlassianDestroy = <ThrowOnError extends boolean = false>(options: Options<SupportSettingsAtlassianDestroyData, ThrowOnError>) => {
|
|
2099
|
+
return (options.client ?? _heyApiClient).delete<SupportSettingsAtlassianDestroyResponses, unknown, ThrowOnError>({
|
|
2100
|
+
security: [
|
|
2101
|
+
{
|
|
2102
|
+
name: 'Authorization',
|
|
2103
|
+
type: 'apiKey'
|
|
2104
|
+
},
|
|
2105
|
+
{
|
|
2106
|
+
scheme: 'bearer',
|
|
2107
|
+
type: 'http'
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
scheme: 'bearer',
|
|
2111
|
+
type: 'http'
|
|
2112
|
+
}
|
|
2113
|
+
],
|
|
2114
|
+
url: '/api/support/settings/atlassian/{id}/',
|
|
2115
|
+
...options
|
|
2116
|
+
});
|
|
2117
|
+
};
|
|
2118
|
+
|
|
2119
|
+
export const supportSettingsAtlassianRetrieve = <ThrowOnError extends boolean = false>(options: Options<SupportSettingsAtlassianRetrieveData, ThrowOnError>) => {
|
|
2120
|
+
return (options.client ?? _heyApiClient).get<SupportSettingsAtlassianRetrieveResponses, unknown, ThrowOnError>({
|
|
2121
|
+
security: [
|
|
2122
|
+
{
|
|
2123
|
+
name: 'Authorization',
|
|
2124
|
+
type: 'apiKey'
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
scheme: 'bearer',
|
|
2128
|
+
type: 'http'
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
scheme: 'bearer',
|
|
2132
|
+
type: 'http'
|
|
2133
|
+
}
|
|
2134
|
+
],
|
|
2135
|
+
url: '/api/support/settings/atlassian/{id}/',
|
|
2136
|
+
...options
|
|
2137
|
+
});
|
|
2138
|
+
};
|
|
2139
|
+
|
|
2140
|
+
export const supportSettingsAtlassianPartialUpdate = <ThrowOnError extends boolean = false>(options: Options<SupportSettingsAtlassianPartialUpdateData, ThrowOnError>) => {
|
|
2141
|
+
return (options.client ?? _heyApiClient).patch<SupportSettingsAtlassianPartialUpdateResponses, unknown, ThrowOnError>({
|
|
2142
|
+
security: [
|
|
2143
|
+
{
|
|
2144
|
+
name: 'Authorization',
|
|
2145
|
+
type: 'apiKey'
|
|
2146
|
+
},
|
|
2147
|
+
{
|
|
2148
|
+
scheme: 'bearer',
|
|
2149
|
+
type: 'http'
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
scheme: 'bearer',
|
|
2153
|
+
type: 'http'
|
|
2154
|
+
}
|
|
2155
|
+
],
|
|
2156
|
+
url: '/api/support/settings/atlassian/{id}/',
|
|
2157
|
+
...options
|
|
2158
|
+
});
|
|
2159
|
+
};
|
|
2160
|
+
|
|
2161
|
+
export const supportSettingsAtlassianUpdate = <ThrowOnError extends boolean = false>(options: Options<SupportSettingsAtlassianUpdateData, ThrowOnError>) => {
|
|
2162
|
+
return (options.client ?? _heyApiClient).put<SupportSettingsAtlassianUpdateResponses, unknown, ThrowOnError>({
|
|
2163
|
+
security: [
|
|
2164
|
+
{
|
|
2165
|
+
name: 'Authorization',
|
|
2166
|
+
type: 'apiKey'
|
|
2167
|
+
},
|
|
2168
|
+
{
|
|
2169
|
+
scheme: 'bearer',
|
|
2170
|
+
type: 'http'
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
scheme: 'bearer',
|
|
2174
|
+
type: 'http'
|
|
2175
|
+
}
|
|
2176
|
+
],
|
|
2177
|
+
url: '/api/support/settings/atlassian/{id}/',
|
|
2178
|
+
...options
|
|
2179
|
+
});
|
|
2180
|
+
};
|
|
2181
|
+
|
|
2182
|
+
/**
|
|
2183
|
+
* Get current Atlassian settings (masked secrets).
|
|
2184
|
+
*/
|
|
2185
|
+
export const supportSettingsAtlassianCurrentSettingsRetrieve = <ThrowOnError extends boolean = false>(options?: Options<SupportSettingsAtlassianCurrentSettingsRetrieveData, ThrowOnError>) => {
|
|
2186
|
+
return (options?.client ?? _heyApiClient).get<SupportSettingsAtlassianCurrentSettingsRetrieveResponses, unknown, ThrowOnError>({
|
|
2187
|
+
security: [
|
|
2188
|
+
{
|
|
2189
|
+
name: 'Authorization',
|
|
2190
|
+
type: 'apiKey'
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
scheme: 'bearer',
|
|
2194
|
+
type: 'http'
|
|
2195
|
+
},
|
|
2196
|
+
{
|
|
2197
|
+
scheme: 'bearer',
|
|
2198
|
+
type: 'http'
|
|
2199
|
+
}
|
|
2200
|
+
],
|
|
2201
|
+
url: '/api/support/settings/atlassian/current_settings/',
|
|
2202
|
+
...options
|
|
2203
|
+
});
|
|
2204
|
+
};
|
|
2205
|
+
|
|
2206
|
+
/**
|
|
2207
|
+
* Discover available custom fields.
|
|
2208
|
+
*/
|
|
2209
|
+
export const supportSettingsAtlassianDiscoverCustomFields = <ThrowOnError extends boolean = false>(options: Options<SupportSettingsAtlassianDiscoverCustomFieldsData, ThrowOnError>) => {
|
|
2210
|
+
return (options.client ?? _heyApiClient).post<SupportSettingsAtlassianDiscoverCustomFieldsResponses, unknown, ThrowOnError>({
|
|
2211
|
+
security: [
|
|
2212
|
+
{
|
|
2213
|
+
name: 'Authorization',
|
|
2214
|
+
type: 'apiKey'
|
|
2215
|
+
},
|
|
2216
|
+
{
|
|
2217
|
+
scheme: 'bearer',
|
|
2218
|
+
type: 'http'
|
|
2219
|
+
},
|
|
2220
|
+
{
|
|
2221
|
+
scheme: 'bearer',
|
|
2222
|
+
type: 'http'
|
|
2223
|
+
}
|
|
2224
|
+
],
|
|
2225
|
+
url: '/api/support/settings/atlassian/discover_custom_fields/',
|
|
2226
|
+
...options,
|
|
2227
|
+
headers: {
|
|
2228
|
+
'Content-Type': 'application/json',
|
|
2229
|
+
...options.headers
|
|
2230
|
+
}
|
|
2231
|
+
});
|
|
2232
|
+
};
|
|
2233
|
+
|
|
2234
|
+
/**
|
|
2235
|
+
* Discover available priorities.
|
|
2236
|
+
*/
|
|
2237
|
+
export const supportSettingsAtlassianDiscoverPriorities = <ThrowOnError extends boolean = false>(options: Options<SupportSettingsAtlassianDiscoverPrioritiesData, ThrowOnError>) => {
|
|
2238
|
+
return (options.client ?? _heyApiClient).post<SupportSettingsAtlassianDiscoverPrioritiesResponses, unknown, ThrowOnError>({
|
|
2239
|
+
security: [
|
|
2240
|
+
{
|
|
2241
|
+
name: 'Authorization',
|
|
2242
|
+
type: 'apiKey'
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
scheme: 'bearer',
|
|
2246
|
+
type: 'http'
|
|
2247
|
+
},
|
|
2248
|
+
{
|
|
2249
|
+
scheme: 'bearer',
|
|
2250
|
+
type: 'http'
|
|
2251
|
+
}
|
|
2252
|
+
],
|
|
2253
|
+
url: '/api/support/settings/atlassian/discover_priorities/',
|
|
2254
|
+
...options,
|
|
2255
|
+
headers: {
|
|
2256
|
+
'Content-Type': 'application/json',
|
|
2257
|
+
...options.headers
|
|
2258
|
+
}
|
|
2259
|
+
});
|
|
2260
|
+
};
|
|
2261
|
+
|
|
2262
|
+
/**
|
|
2263
|
+
* Discover available Service Desk projects.
|
|
2264
|
+
*/
|
|
2265
|
+
export const supportSettingsAtlassianDiscoverProjects = <ThrowOnError extends boolean = false>(options: Options<SupportSettingsAtlassianDiscoverProjectsData, ThrowOnError>) => {
|
|
2266
|
+
return (options.client ?? _heyApiClient).post<SupportSettingsAtlassianDiscoverProjectsResponses, unknown, ThrowOnError>({
|
|
2267
|
+
security: [
|
|
2268
|
+
{
|
|
2269
|
+
name: 'Authorization',
|
|
2270
|
+
type: 'apiKey'
|
|
2271
|
+
},
|
|
2272
|
+
{
|
|
2273
|
+
scheme: 'bearer',
|
|
2274
|
+
type: 'http'
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
scheme: 'bearer',
|
|
2278
|
+
type: 'http'
|
|
2279
|
+
}
|
|
2280
|
+
],
|
|
2281
|
+
url: '/api/support/settings/atlassian/discover_projects/',
|
|
2282
|
+
...options,
|
|
2283
|
+
headers: {
|
|
2284
|
+
'Content-Type': 'application/json',
|
|
2285
|
+
...options.headers
|
|
2286
|
+
}
|
|
2287
|
+
});
|
|
2288
|
+
};
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* Discover request types for a selected project.
|
|
2292
|
+
*/
|
|
2293
|
+
export const supportSettingsAtlassianDiscoverRequestTypes = <ThrowOnError extends boolean = false>(options: Options<SupportSettingsAtlassianDiscoverRequestTypesData, ThrowOnError>) => {
|
|
2294
|
+
return (options.client ?? _heyApiClient).post<SupportSettingsAtlassianDiscoverRequestTypesResponses, unknown, ThrowOnError>({
|
|
2295
|
+
security: [
|
|
2296
|
+
{
|
|
2297
|
+
name: 'Authorization',
|
|
2298
|
+
type: 'apiKey'
|
|
2299
|
+
},
|
|
2300
|
+
{
|
|
2301
|
+
scheme: 'bearer',
|
|
2302
|
+
type: 'http'
|
|
2303
|
+
},
|
|
2304
|
+
{
|
|
2305
|
+
scheme: 'bearer',
|
|
2306
|
+
type: 'http'
|
|
2307
|
+
}
|
|
2308
|
+
],
|
|
2309
|
+
url: '/api/support/settings/atlassian/discover_request_types/',
|
|
2310
|
+
...options,
|
|
2311
|
+
headers: {
|
|
2312
|
+
'Content-Type': 'application/json',
|
|
2313
|
+
...options.headers
|
|
2314
|
+
}
|
|
2315
|
+
});
|
|
2316
|
+
};
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* Generate preview of settings to be saved.
|
|
2320
|
+
*/
|
|
2321
|
+
export const supportSettingsAtlassianPreviewSettings = <ThrowOnError extends boolean = false>(options: Options<SupportSettingsAtlassianPreviewSettingsData, ThrowOnError>) => {
|
|
2322
|
+
return (options.client ?? _heyApiClient).post<SupportSettingsAtlassianPreviewSettingsResponses, unknown, ThrowOnError>({
|
|
2323
|
+
security: [
|
|
2324
|
+
{
|
|
2325
|
+
name: 'Authorization',
|
|
2326
|
+
type: 'apiKey'
|
|
2327
|
+
},
|
|
2328
|
+
{
|
|
2329
|
+
scheme: 'bearer',
|
|
2330
|
+
type: 'http'
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
scheme: 'bearer',
|
|
2334
|
+
type: 'http'
|
|
2335
|
+
}
|
|
2336
|
+
],
|
|
2337
|
+
url: '/api/support/settings/atlassian/preview_settings/',
|
|
2338
|
+
...options,
|
|
2339
|
+
headers: {
|
|
2340
|
+
'Content-Type': 'application/json',
|
|
2341
|
+
...options.headers
|
|
2342
|
+
}
|
|
2343
|
+
});
|
|
2344
|
+
};
|
|
2345
|
+
|
|
2346
|
+
/**
|
|
2347
|
+
* Save selected settings to constance.
|
|
2348
|
+
*/
|
|
2349
|
+
export const supportSettingsAtlassianSaveSettings = <ThrowOnError extends boolean = false>(options: Options<SupportSettingsAtlassianSaveSettingsData, ThrowOnError>) => {
|
|
2350
|
+
return (options.client ?? _heyApiClient).post<SupportSettingsAtlassianSaveSettingsResponses, unknown, ThrowOnError>({
|
|
2351
|
+
security: [
|
|
2352
|
+
{
|
|
2353
|
+
name: 'Authorization',
|
|
2354
|
+
type: 'apiKey'
|
|
2355
|
+
},
|
|
2356
|
+
{
|
|
2357
|
+
scheme: 'bearer',
|
|
2358
|
+
type: 'http'
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
scheme: 'bearer',
|
|
2362
|
+
type: 'http'
|
|
2363
|
+
}
|
|
2364
|
+
],
|
|
2365
|
+
url: '/api/support/settings/atlassian/save_settings/',
|
|
2366
|
+
...options,
|
|
2367
|
+
headers: {
|
|
2368
|
+
'Content-Type': 'application/json',
|
|
2369
|
+
...options.headers
|
|
2370
|
+
}
|
|
2371
|
+
});
|
|
2372
|
+
};
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* Validate Atlassian credentials without saving them.
|
|
2376
|
+
*/
|
|
2377
|
+
export const supportSettingsAtlassianValidateCredentials = <ThrowOnError extends boolean = false>(options: Options<SupportSettingsAtlassianValidateCredentialsData, ThrowOnError>) => {
|
|
2378
|
+
return (options.client ?? _heyApiClient).post<SupportSettingsAtlassianValidateCredentialsResponses, unknown, ThrowOnError>({
|
|
2379
|
+
security: [
|
|
2380
|
+
{
|
|
2381
|
+
name: 'Authorization',
|
|
2382
|
+
type: 'apiKey'
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
scheme: 'bearer',
|
|
2386
|
+
type: 'http'
|
|
2387
|
+
},
|
|
2388
|
+
{
|
|
2389
|
+
scheme: 'bearer',
|
|
2390
|
+
type: 'http'
|
|
2391
|
+
}
|
|
2392
|
+
],
|
|
2393
|
+
url: '/api/support/settings/atlassian/validate_credentials/',
|
|
2394
|
+
...options,
|
|
2395
|
+
headers: {
|
|
2396
|
+
'Content-Type': 'application/json',
|
|
2397
|
+
...options.headers
|
|
2398
|
+
}
|
|
2399
|
+
});
|
|
2400
|
+
};
|
|
2401
|
+
|
|
2402
|
+
/**
|
|
2403
|
+
* This view triggers synchronization of issues from backend.
|
|
2404
|
+
*/
|
|
2405
|
+
export const syncIssuesRetrieve = <ThrowOnError extends boolean = false>(options?: Options<SyncIssuesRetrieveData, ThrowOnError>) => {
|
|
2406
|
+
return (options?.client ?? _heyApiClient).get<SyncIssuesRetrieveResponses, SyncIssuesRetrieveErrors, ThrowOnError>({
|
|
2407
|
+
security: [
|
|
2408
|
+
{
|
|
2409
|
+
name: 'Authorization',
|
|
2410
|
+
type: 'apiKey'
|
|
2411
|
+
},
|
|
2412
|
+
{
|
|
2413
|
+
scheme: 'bearer',
|
|
2414
|
+
type: 'http'
|
|
2415
|
+
},
|
|
2416
|
+
{
|
|
2417
|
+
scheme: 'bearer',
|
|
2418
|
+
type: 'http'
|
|
2419
|
+
}
|
|
2420
|
+
],
|
|
2421
|
+
url: '/api/sync-issues/',
|
|
2422
|
+
...options
|
|
2423
|
+
});
|
|
2424
|
+
};
|
|
2425
|
+
|
|
2426
|
+
/**
|
|
2427
|
+
* This view triggers synchronization of issues from backend.
|
|
2428
|
+
*/
|
|
2429
|
+
export const syncIssues = <ThrowOnError extends boolean = false>(options?: Options<SyncIssuesData, ThrowOnError>) => {
|
|
2430
|
+
return (options?.client ?? _heyApiClient).post<SyncIssuesResponses, SyncIssuesErrors, ThrowOnError>({
|
|
2431
|
+
security: [
|
|
2432
|
+
{
|
|
2433
|
+
name: 'Authorization',
|
|
2434
|
+
type: 'apiKey'
|
|
2435
|
+
},
|
|
2436
|
+
{
|
|
2437
|
+
scheme: 'bearer',
|
|
2438
|
+
type: 'http'
|
|
2439
|
+
},
|
|
2440
|
+
{
|
|
2441
|
+
scheme: 'bearer',
|
|
2442
|
+
type: 'http'
|
|
2443
|
+
}
|
|
2444
|
+
],
|
|
2445
|
+
url: '/api/sync-issues/',
|
|
2446
|
+
...options
|
|
2447
|
+
});
|
|
2448
|
+
};
|