@hackmd/api 2.7.0 → 2.8.0-beta.20261120101758.32a0959
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/README.md +125 -11
- package/dist/generated/client/client.gen.d.ts +2 -0
- package/dist/generated/client/index.d.ts +10 -0
- package/dist/generated/client/types.gen.d.ts +87 -0
- package/dist/generated/client/utils.gen.d.ts +14 -0
- package/dist/generated/client.gen.d.ts +12 -0
- package/dist/generated/core/auth.gen.d.ts +25 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/core/params.gen.d.ts +43 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/core/types.gen.d.ts +83 -0
- package/dist/generated/core/utils.gen.d.ts +19 -0
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/operationRegistry.gen.d.ts +1323 -0
- package/dist/generated/sdk.gen.d.ts +274 -0
- package/dist/generated/types.gen.d.ts +2962 -0
- package/dist/index.cjs +430 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +148 -12
- package/dist/index.js +426 -73
- package/dist/index.js.map +1 -1
- package/dist/raw.cjs +132 -0
- package/dist/raw.cjs.map +1 -0
- package/dist/raw.d.ts +15 -0
- package/dist/raw.js +69 -0
- package/dist/raw.js.map +1 -0
- package/dist/sdk.gen-0nBaZJhE.js +1286 -0
- package/dist/sdk.gen-0nBaZJhE.js.map +1 -0
- package/dist/sdk.gen-COYJyg7W.cjs +1349 -0
- package/dist/sdk.gen-COYJyg7W.cjs.map +1 -0
- package/dist/type.d.ts +69 -128
- package/package.json +20 -5
|
@@ -0,0 +1,2962 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseURL: `${string}://${string}/v1` | (string & {});
|
|
3
|
+
};
|
|
4
|
+
export type ApiRequestErrorResponse = {
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
export type ApiErrorResponse = {
|
|
8
|
+
error: string;
|
|
9
|
+
};
|
|
10
|
+
export type ApiQuotaErrorResponse = {
|
|
11
|
+
error: {
|
|
12
|
+
upgradeUrl: string;
|
|
13
|
+
helpUrl: string;
|
|
14
|
+
message: string;
|
|
15
|
+
code: 'quota_exceeded';
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type ApiRateLimitErrorResponse = ApiErrorResponse | ApiQuotaErrorResponse;
|
|
19
|
+
export type ApiServerErrorResponse = ApiErrorResponse | ApiRequestErrorResponse;
|
|
20
|
+
export type ApiWebhookScope = {
|
|
21
|
+
type: 'workspace';
|
|
22
|
+
} | {
|
|
23
|
+
folderId: string;
|
|
24
|
+
type: 'folder';
|
|
25
|
+
};
|
|
26
|
+
export type ApiWebhook = {
|
|
27
|
+
updatedAt: number;
|
|
28
|
+
createdAt: number;
|
|
29
|
+
eventDeliveryMode: 'all_supported_events';
|
|
30
|
+
deliveryPolicyReason: 'unsafe_destination' | 'suspicious_pattern' | 'policy_violation' | null;
|
|
31
|
+
deliveryPolicyStatus: 'normal' | 'suppressed';
|
|
32
|
+
configuredStatusReason: 'scope_deleted' | null;
|
|
33
|
+
configuredStatus: 'active' | 'disabled';
|
|
34
|
+
scope: ApiWebhookScope;
|
|
35
|
+
url: string;
|
|
36
|
+
name: string;
|
|
37
|
+
id: string;
|
|
38
|
+
};
|
|
39
|
+
export type WebhookApiErrorResponse = {
|
|
40
|
+
error: {
|
|
41
|
+
message: string;
|
|
42
|
+
code: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export type ApiValidationFieldError = {
|
|
46
|
+
message: string;
|
|
47
|
+
value?: unknown;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Construct a type with a set of properties K of type T
|
|
51
|
+
*/
|
|
52
|
+
export type RecordStringApiValidationFieldError = {
|
|
53
|
+
[key: string]: ApiValidationFieldError;
|
|
54
|
+
};
|
|
55
|
+
export type ApiValidationError = {
|
|
56
|
+
message: 'Validation Failed';
|
|
57
|
+
details: RecordStringApiValidationFieldError;
|
|
58
|
+
};
|
|
59
|
+
export type CreateWebhookData = {
|
|
60
|
+
scope: {
|
|
61
|
+
type: 'workspace';
|
|
62
|
+
} | {
|
|
63
|
+
folderId: string;
|
|
64
|
+
type: 'folder';
|
|
65
|
+
};
|
|
66
|
+
url: string;
|
|
67
|
+
name?: string | null;
|
|
68
|
+
};
|
|
69
|
+
export type CreateApiWebhookBody = CreateWebhookData & {
|
|
70
|
+
active?: boolean;
|
|
71
|
+
};
|
|
72
|
+
export type UpdateWebhookData = {
|
|
73
|
+
active?: boolean;
|
|
74
|
+
url?: string;
|
|
75
|
+
name?: string | null;
|
|
76
|
+
};
|
|
77
|
+
export type UpdateApiWebhookBody = UpdateWebhookData;
|
|
78
|
+
export type WebhookDeliveryStatusCategory = 'delivered' | 'delivery_issue' | 'not_delivered';
|
|
79
|
+
export type ApiWebhookDelivery = {
|
|
80
|
+
deliveredAt: number | null;
|
|
81
|
+
createdAt: number;
|
|
82
|
+
latencyMs: number | null;
|
|
83
|
+
errorMessage: string | null;
|
|
84
|
+
errorCategory: string | null;
|
|
85
|
+
httpStatus: number | null;
|
|
86
|
+
statusCategory: WebhookDeliveryStatusCategory;
|
|
87
|
+
status: 'success' | 'failed' | 'skipped';
|
|
88
|
+
attemptKind: 'event' | 'ping';
|
|
89
|
+
eventType: string;
|
|
90
|
+
id: string;
|
|
91
|
+
};
|
|
92
|
+
export type PaginatedQuery = {
|
|
93
|
+
limit: number;
|
|
94
|
+
page: number;
|
|
95
|
+
};
|
|
96
|
+
export type PaginatedResponseApiWebhookDelivery = {
|
|
97
|
+
data: Array<ApiWebhookDelivery>;
|
|
98
|
+
meta: PaginatedQuery & {
|
|
99
|
+
totalPages?: number;
|
|
100
|
+
total?: number;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export type ApiWebhookPage = number;
|
|
104
|
+
export type ApiWebhookLimit = number;
|
|
105
|
+
export type SimpleUserProfile = {
|
|
106
|
+
name: string;
|
|
107
|
+
userPath: string;
|
|
108
|
+
photo: string;
|
|
109
|
+
biography: string | null;
|
|
110
|
+
};
|
|
111
|
+
export type NotePublishType = 'edit' | 'view' | 'slide' | 'book';
|
|
112
|
+
export type NotePermissionRole = 'owner' | 'signed_in' | 'guest';
|
|
113
|
+
export type FolderPath = {
|
|
114
|
+
id: string;
|
|
115
|
+
name: string;
|
|
116
|
+
icon: string | null;
|
|
117
|
+
color: string | null;
|
|
118
|
+
parentId: string | null;
|
|
119
|
+
clientId: string;
|
|
120
|
+
};
|
|
121
|
+
export type NoteType = {
|
|
122
|
+
folderPaths?: Array<FolderPath>;
|
|
123
|
+
writePermission: NotePermissionRole;
|
|
124
|
+
readPermission: NotePermissionRole;
|
|
125
|
+
shortId: string;
|
|
126
|
+
publishLink: string;
|
|
127
|
+
permalink: string | null;
|
|
128
|
+
teamPath: string | null;
|
|
129
|
+
userPath: string | null;
|
|
130
|
+
publishedAt: number | null;
|
|
131
|
+
publishType: NotePublishType;
|
|
132
|
+
lastChangeUser: SimpleUserProfile | null;
|
|
133
|
+
tagsUpdatedAt: number | null;
|
|
134
|
+
titleUpdatedAt: number | null;
|
|
135
|
+
createdAt: number;
|
|
136
|
+
lastChangedAt: number;
|
|
137
|
+
description: string;
|
|
138
|
+
tags: Array<string>;
|
|
139
|
+
title: string;
|
|
140
|
+
id: string;
|
|
141
|
+
};
|
|
142
|
+
export type SingleNote = {
|
|
143
|
+
folderPaths?: Array<FolderPath>;
|
|
144
|
+
writePermission: NotePermissionRole;
|
|
145
|
+
readPermission: NotePermissionRole;
|
|
146
|
+
shortId: string;
|
|
147
|
+
publishLink: string;
|
|
148
|
+
permalink: string | null;
|
|
149
|
+
teamPath: string | null;
|
|
150
|
+
userPath: string | null;
|
|
151
|
+
publishedAt: number | null;
|
|
152
|
+
publishType: NotePublishType;
|
|
153
|
+
lastChangeUser: SimpleUserProfile | null;
|
|
154
|
+
tagsUpdatedAt: number | null;
|
|
155
|
+
titleUpdatedAt: number | null;
|
|
156
|
+
createdAt: number;
|
|
157
|
+
lastChangedAt: number;
|
|
158
|
+
description: string;
|
|
159
|
+
tags: Array<string>;
|
|
160
|
+
title: string;
|
|
161
|
+
id: string;
|
|
162
|
+
content: string;
|
|
163
|
+
};
|
|
164
|
+
export type ApiBadRequestResponse = ApiErrorResponse | ApiRequestErrorResponse;
|
|
165
|
+
export type CreateNoteMultiStatusResponse = {
|
|
166
|
+
note: SingleNote;
|
|
167
|
+
error: string;
|
|
168
|
+
};
|
|
169
|
+
export type CommentPermissionType = 'disabled' | 'forbidden' | 'owners' | 'signed_in_users' | 'everyone';
|
|
170
|
+
export type SuggestEditPermissionType = 'disabled' | 'forbidden' | 'owners' | 'signed_in_users';
|
|
171
|
+
export type ApiNoteFeatures = {
|
|
172
|
+
'emoji-reply'?: 'disabled' | 'signed_in_users';
|
|
173
|
+
citation?: 'disabled' | 'signed_in_users';
|
|
174
|
+
};
|
|
175
|
+
/**
|
|
176
|
+
* Folder name.
|
|
177
|
+
*/
|
|
178
|
+
export type FolderName = string;
|
|
179
|
+
/**
|
|
180
|
+
* Folder icon as an emoji unified codepoint string.
|
|
181
|
+
* Examples: `1F525` (🔥), `2764-FE0F` (❤️).
|
|
182
|
+
*/
|
|
183
|
+
export type FolderIconCodepoint = string;
|
|
184
|
+
/**
|
|
185
|
+
* Folder display color in hexadecimal format.
|
|
186
|
+
* Accepts `#RGB`, `#RGBA`, `#RRGGBB`, or `#RRGGBBAA`.
|
|
187
|
+
*/
|
|
188
|
+
export type FolderColorHex = string;
|
|
189
|
+
export type ApiFolder = {
|
|
190
|
+
id: string;
|
|
191
|
+
name: FolderName;
|
|
192
|
+
description: string | null;
|
|
193
|
+
icon: FolderIconCodepoint | null;
|
|
194
|
+
color: FolderColorHex | null;
|
|
195
|
+
parentFolderId: string | null;
|
|
196
|
+
createdAt: number;
|
|
197
|
+
updatedAt: number;
|
|
198
|
+
};
|
|
199
|
+
/**
|
|
200
|
+
* Per-user display order of folders: maps each parent folder id (or `root`) to
|
|
201
|
+
* an ordered list of child folder ids. Keys and values use the same UUIDs as
|
|
202
|
+
* {@link ApiFolder.id} (not Yjs clientIds stored internally in preferences).
|
|
203
|
+
*/
|
|
204
|
+
export type ApiFolderOrder = {
|
|
205
|
+
[key: string]: Array<string>;
|
|
206
|
+
};
|
|
207
|
+
export type UpdateFolderOrderBody = {
|
|
208
|
+
order: ApiFolderOrder;
|
|
209
|
+
};
|
|
210
|
+
export type CreateUserFolderBody = {
|
|
211
|
+
color?: FolderColorHex;
|
|
212
|
+
icon?: FolderIconCodepoint;
|
|
213
|
+
description?: string;
|
|
214
|
+
parentFolderId?: string;
|
|
215
|
+
name?: FolderName;
|
|
216
|
+
};
|
|
217
|
+
export type UpdateUserFolderBody = {
|
|
218
|
+
parentFolderId?: string | null;
|
|
219
|
+
color?: FolderColorHex | null;
|
|
220
|
+
icon?: FolderIconCodepoint | null;
|
|
221
|
+
description?: string | null;
|
|
222
|
+
name?: FolderName;
|
|
223
|
+
};
|
|
224
|
+
export type ApiTrashNote = {
|
|
225
|
+
id: string;
|
|
226
|
+
title: string;
|
|
227
|
+
tags: Array<string>;
|
|
228
|
+
deletedAt: number;
|
|
229
|
+
ownerId: string;
|
|
230
|
+
teamId: string | null;
|
|
231
|
+
shortId: string;
|
|
232
|
+
publishType: string;
|
|
233
|
+
permanentDeletedAt: number | null;
|
|
234
|
+
};
|
|
235
|
+
export type BatchRestoreTrashBody = {
|
|
236
|
+
noteIds: Array<string>;
|
|
237
|
+
};
|
|
238
|
+
export type BatchOperationError = 'NOT_FOUND' | 'PERMISSION_DENIED' | 'INTERNAL_ERROR';
|
|
239
|
+
export type TrashBatchOperationResponse = {
|
|
240
|
+
[key: string]: {
|
|
241
|
+
reason?: BatchOperationError;
|
|
242
|
+
status: 'success' | 'failure';
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
export type TeamVisibilityType = 'public' | 'private';
|
|
246
|
+
export type Team = {
|
|
247
|
+
id: string;
|
|
248
|
+
ownerId: string | null;
|
|
249
|
+
name: string;
|
|
250
|
+
logo: string;
|
|
251
|
+
path: string;
|
|
252
|
+
description: string | null;
|
|
253
|
+
visibility: TeamVisibilityType;
|
|
254
|
+
upgraded: boolean;
|
|
255
|
+
createdAt: number;
|
|
256
|
+
};
|
|
257
|
+
export type CreateTeamFolderBody = {
|
|
258
|
+
color?: FolderColorHex;
|
|
259
|
+
icon?: FolderIconCodepoint;
|
|
260
|
+
description?: string;
|
|
261
|
+
parentFolderId?: string;
|
|
262
|
+
name?: FolderName;
|
|
263
|
+
};
|
|
264
|
+
export type UpdateTeamFolderBody = {
|
|
265
|
+
parentFolderId?: string | null;
|
|
266
|
+
color?: FolderColorHex | null;
|
|
267
|
+
icon?: FolderIconCodepoint | null;
|
|
268
|
+
description?: string | null;
|
|
269
|
+
name?: FolderName;
|
|
270
|
+
};
|
|
271
|
+
export type NoteVersionUser = {
|
|
272
|
+
user_id: string;
|
|
273
|
+
display_name: string;
|
|
274
|
+
photo?: string;
|
|
275
|
+
};
|
|
276
|
+
export type NoteVersionMetadata = {
|
|
277
|
+
id: string;
|
|
278
|
+
name: string;
|
|
279
|
+
name_source: 'user' | 'system';
|
|
280
|
+
description?: string | null;
|
|
281
|
+
created_at: string;
|
|
282
|
+
created_by: NoteVersionUser | null;
|
|
283
|
+
authorship: Array<NoteVersionUser>;
|
|
284
|
+
content_available: boolean;
|
|
285
|
+
};
|
|
286
|
+
export type GetNoteVersions = {
|
|
287
|
+
data: Array<NoteVersionMetadata>;
|
|
288
|
+
meta: {
|
|
289
|
+
total_pages: number;
|
|
290
|
+
total: number;
|
|
291
|
+
limit: number;
|
|
292
|
+
page: number;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
export type ApiError = {
|
|
296
|
+
error_code: string;
|
|
297
|
+
message: string;
|
|
298
|
+
unavailable_ref?: string;
|
|
299
|
+
};
|
|
300
|
+
export type CompareNoteVersions = {
|
|
301
|
+
unified_diff: string;
|
|
302
|
+
};
|
|
303
|
+
export type NoteVersion = {
|
|
304
|
+
id: string;
|
|
305
|
+
name: string;
|
|
306
|
+
name_source: 'user' | 'system';
|
|
307
|
+
description?: string | null;
|
|
308
|
+
created_at: string;
|
|
309
|
+
created_by: NoteVersionUser | null;
|
|
310
|
+
authorship: Array<NoteVersionUser>;
|
|
311
|
+
content_available: boolean;
|
|
312
|
+
content?: string;
|
|
313
|
+
};
|
|
314
|
+
export type NoContentChangeError = {
|
|
315
|
+
error_code: 'no_content_change';
|
|
316
|
+
message: string;
|
|
317
|
+
latest_version_id: string;
|
|
318
|
+
latest_name_source: 'system' | 'user';
|
|
319
|
+
};
|
|
320
|
+
export type VersionAlreadyNamedError = {
|
|
321
|
+
error_code: 'version_already_named';
|
|
322
|
+
message: string;
|
|
323
|
+
version_id: string;
|
|
324
|
+
name: string;
|
|
325
|
+
};
|
|
326
|
+
export type CreateNoteVersionConflictError = NoContentChangeError | VersionAlreadyNamedError;
|
|
327
|
+
export type CreateNoteVersionBody = {
|
|
328
|
+
/**
|
|
329
|
+
* Saved content to name. Accepts note_content or version:{id}.
|
|
330
|
+
*/
|
|
331
|
+
base?: string;
|
|
332
|
+
name: string;
|
|
333
|
+
description?: string;
|
|
334
|
+
};
|
|
335
|
+
export type VersionNotNamedError = {
|
|
336
|
+
error_code: 'version_not_named';
|
|
337
|
+
message: string;
|
|
338
|
+
version_id: string;
|
|
339
|
+
};
|
|
340
|
+
export type UpdateNoteVersionBody = {
|
|
341
|
+
description?: string;
|
|
342
|
+
name: string;
|
|
343
|
+
/**
|
|
344
|
+
* Existing named version to update, formatted as version:{id}.
|
|
345
|
+
*/
|
|
346
|
+
base: string;
|
|
347
|
+
} | {
|
|
348
|
+
description: string;
|
|
349
|
+
name?: string;
|
|
350
|
+
/**
|
|
351
|
+
* Existing named version to update, formatted as version:{id}.
|
|
352
|
+
*/
|
|
353
|
+
base: string;
|
|
354
|
+
};
|
|
355
|
+
export type NoteImageUploadResponse = {
|
|
356
|
+
data: {
|
|
357
|
+
link: string;
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
export type ApiCommentStatus = 'open' | 'hidden';
|
|
361
|
+
export type ApiCommentStateReason = 'resolved' | 'spam' | 'abuse' | 'off_topic' | null;
|
|
362
|
+
export type ApiCommentStateUserActor = {
|
|
363
|
+
kind: 'user';
|
|
364
|
+
userId: string;
|
|
365
|
+
displayName: string;
|
|
366
|
+
};
|
|
367
|
+
export type ApiCommentStateDeletedUserActor = {
|
|
368
|
+
kind: 'deleted_user';
|
|
369
|
+
};
|
|
370
|
+
export type ApiCommentStateActor = ApiCommentStateUserActor | ApiCommentStateDeletedUserActor;
|
|
371
|
+
export type ApiCommentThreadState = {
|
|
372
|
+
status: ApiCommentStatus;
|
|
373
|
+
reason: ApiCommentStateReason;
|
|
374
|
+
actedBy: ApiCommentStateActor | null;
|
|
375
|
+
/**
|
|
376
|
+
* Unix timestamp in milliseconds.
|
|
377
|
+
*/
|
|
378
|
+
actedAt: number | null;
|
|
379
|
+
sourceCommentId: string;
|
|
380
|
+
};
|
|
381
|
+
export type ApiCommentUserActor = {
|
|
382
|
+
kind: 'user';
|
|
383
|
+
userId: string;
|
|
384
|
+
displayName: string;
|
|
385
|
+
};
|
|
386
|
+
export type ApiCommentGuestActor = {
|
|
387
|
+
kind: 'guest';
|
|
388
|
+
displayName: string;
|
|
389
|
+
};
|
|
390
|
+
export type ApiCommentTeamActor = {
|
|
391
|
+
kind: 'team';
|
|
392
|
+
teamId: string;
|
|
393
|
+
displayName: string;
|
|
394
|
+
};
|
|
395
|
+
export type ApiCommentDeletedUserActor = {
|
|
396
|
+
kind: 'deleted_user';
|
|
397
|
+
};
|
|
398
|
+
export type ApiCommentActor = ApiCommentUserActor | ApiCommentGuestActor | ApiCommentTeamActor | ApiCommentDeletedUserActor;
|
|
399
|
+
export type ApiCommentState = {
|
|
400
|
+
status: ApiCommentStatus;
|
|
401
|
+
reason: ApiCommentStateReason;
|
|
402
|
+
actedBy: ApiCommentStateActor | null;
|
|
403
|
+
/**
|
|
404
|
+
* Unix timestamp in milliseconds.
|
|
405
|
+
*/
|
|
406
|
+
actedAt: number | null;
|
|
407
|
+
};
|
|
408
|
+
export type ApiCommentAnchor = {
|
|
409
|
+
offset: number;
|
|
410
|
+
length: number;
|
|
411
|
+
};
|
|
412
|
+
export type ApiCommentReactionShortcode = '+1' | '-1' | 'joy' | 'tada' | 'thinking_face' | 'heart' | 'rocket' | 'eyes';
|
|
413
|
+
export type ApiCommentReactionSummary = {
|
|
414
|
+
shortcode: ApiCommentReactionShortcode;
|
|
415
|
+
count: number;
|
|
416
|
+
};
|
|
417
|
+
export type ApiCommentHead = {
|
|
418
|
+
id: string;
|
|
419
|
+
threadId: string;
|
|
420
|
+
actor: ApiCommentActor;
|
|
421
|
+
body: string;
|
|
422
|
+
contentType: 'plain_text';
|
|
423
|
+
commentState: ApiCommentState;
|
|
424
|
+
isPinned: boolean;
|
|
425
|
+
anchor: ApiCommentAnchor | null;
|
|
426
|
+
currentAnchor: ApiCommentAnchor | null;
|
|
427
|
+
excerpt: string | null;
|
|
428
|
+
reactions: Array<ApiCommentReactionSummary>;
|
|
429
|
+
/**
|
|
430
|
+
* Unix timestamp in milliseconds.
|
|
431
|
+
*/
|
|
432
|
+
createdAt: number;
|
|
433
|
+
/**
|
|
434
|
+
* Unix timestamp in milliseconds.
|
|
435
|
+
*/
|
|
436
|
+
updatedAt: number;
|
|
437
|
+
isThreadHead: true;
|
|
438
|
+
replyCount: number;
|
|
439
|
+
threadState: ApiCommentThreadState;
|
|
440
|
+
};
|
|
441
|
+
export type ApiCommentListReply = {
|
|
442
|
+
id: string;
|
|
443
|
+
threadId: string;
|
|
444
|
+
actor: ApiCommentActor;
|
|
445
|
+
body: string;
|
|
446
|
+
contentType: 'plain_text';
|
|
447
|
+
commentState: ApiCommentState;
|
|
448
|
+
isPinned: boolean;
|
|
449
|
+
anchor: ApiCommentAnchor | null;
|
|
450
|
+
currentAnchor: ApiCommentAnchor | null;
|
|
451
|
+
excerpt: string | null;
|
|
452
|
+
reactions: Array<ApiCommentReactionSummary>;
|
|
453
|
+
/**
|
|
454
|
+
* Unix timestamp in milliseconds.
|
|
455
|
+
*/
|
|
456
|
+
createdAt: number;
|
|
457
|
+
/**
|
|
458
|
+
* Unix timestamp in milliseconds.
|
|
459
|
+
*/
|
|
460
|
+
updatedAt: number;
|
|
461
|
+
isThreadHead: false;
|
|
462
|
+
};
|
|
463
|
+
export type ApiComment = ApiCommentHead | ApiCommentListReply;
|
|
464
|
+
export type ApiCommentPagination = {
|
|
465
|
+
page: number;
|
|
466
|
+
limit: number;
|
|
467
|
+
hasNext: boolean;
|
|
468
|
+
};
|
|
469
|
+
export type GetNoteComments = {
|
|
470
|
+
comments: Array<ApiComment>;
|
|
471
|
+
pagination: ApiCommentPagination;
|
|
472
|
+
};
|
|
473
|
+
export type ApiCommentError = {
|
|
474
|
+
errorCode: string;
|
|
475
|
+
message: string;
|
|
476
|
+
};
|
|
477
|
+
export type ApiCommentPage = number;
|
|
478
|
+
export type ApiCommentLimit = number;
|
|
479
|
+
export type ApiCommentThreadId = string;
|
|
480
|
+
export type ApiCommentDetailReply = {
|
|
481
|
+
id: string;
|
|
482
|
+
threadId: string;
|
|
483
|
+
actor: ApiCommentActor;
|
|
484
|
+
body: string;
|
|
485
|
+
contentType: 'plain_text';
|
|
486
|
+
commentState: ApiCommentState;
|
|
487
|
+
isPinned: boolean;
|
|
488
|
+
anchor: ApiCommentAnchor | null;
|
|
489
|
+
currentAnchor: ApiCommentAnchor | null;
|
|
490
|
+
excerpt: string | null;
|
|
491
|
+
reactions: Array<ApiCommentReactionSummary>;
|
|
492
|
+
/**
|
|
493
|
+
* Unix timestamp in milliseconds.
|
|
494
|
+
*/
|
|
495
|
+
createdAt: number;
|
|
496
|
+
/**
|
|
497
|
+
* Unix timestamp in milliseconds.
|
|
498
|
+
*/
|
|
499
|
+
updatedAt: number;
|
|
500
|
+
isThreadHead: false;
|
|
501
|
+
threadState: ApiCommentThreadState;
|
|
502
|
+
};
|
|
503
|
+
export type ApiCommentDetail = ApiCommentHead | ApiCommentDetailReply;
|
|
504
|
+
export type ApiCommentId = string;
|
|
505
|
+
export type ApiCommentResolutionCascade = {
|
|
506
|
+
threadId: string;
|
|
507
|
+
};
|
|
508
|
+
export type ApiCommentResolutionResponse = {
|
|
509
|
+
comment: ApiCommentDetail;
|
|
510
|
+
cascade: ApiCommentResolutionCascade | null;
|
|
511
|
+
};
|
|
512
|
+
export type ApiCommentResolutionConflictError = {
|
|
513
|
+
errorCode: string;
|
|
514
|
+
message: string;
|
|
515
|
+
commentState: ApiCommentState;
|
|
516
|
+
};
|
|
517
|
+
export type User = {
|
|
518
|
+
id: string;
|
|
519
|
+
email: string | null;
|
|
520
|
+
name: string;
|
|
521
|
+
userPath: string;
|
|
522
|
+
photo: string;
|
|
523
|
+
teams: Array<Team>;
|
|
524
|
+
Teams?: Array<Team>;
|
|
525
|
+
upgraded: boolean;
|
|
526
|
+
};
|
|
527
|
+
export type Note = {
|
|
528
|
+
folderPaths?: Array<FolderPath>;
|
|
529
|
+
writePermission: NotePermissionRole;
|
|
530
|
+
readPermission: NotePermissionRole;
|
|
531
|
+
shortId: string;
|
|
532
|
+
publishLink: string;
|
|
533
|
+
permalink: string | null;
|
|
534
|
+
teamPath: string | null;
|
|
535
|
+
userPath: string | null;
|
|
536
|
+
publishedAt: number | null;
|
|
537
|
+
publishType: NotePublishType;
|
|
538
|
+
lastChangeUser: SimpleUserProfile | null;
|
|
539
|
+
tagsUpdatedAt: number | null;
|
|
540
|
+
titleUpdatedAt: number | null;
|
|
541
|
+
createdAt: number;
|
|
542
|
+
lastChangedAt: number;
|
|
543
|
+
description: string;
|
|
544
|
+
tags: Array<string>;
|
|
545
|
+
title: string;
|
|
546
|
+
id: string;
|
|
547
|
+
};
|
|
548
|
+
export type GetUserHistory = Array<Note>;
|
|
549
|
+
export type ListWebhooksData = {
|
|
550
|
+
body?: never;
|
|
551
|
+
path?: never;
|
|
552
|
+
query?: never;
|
|
553
|
+
url: '/webhooks';
|
|
554
|
+
};
|
|
555
|
+
export type ListWebhooksErrors = {
|
|
556
|
+
/**
|
|
557
|
+
* Bad Request
|
|
558
|
+
*/
|
|
559
|
+
400: ApiRequestErrorResponse;
|
|
560
|
+
/**
|
|
561
|
+
* Unauthorized
|
|
562
|
+
*/
|
|
563
|
+
401: ApiErrorResponse;
|
|
564
|
+
/**
|
|
565
|
+
* Rate limit or workspace quota exceeded
|
|
566
|
+
*/
|
|
567
|
+
429: ApiRateLimitErrorResponse;
|
|
568
|
+
/**
|
|
569
|
+
* Internal Server Error
|
|
570
|
+
*/
|
|
571
|
+
500: ApiServerErrorResponse;
|
|
572
|
+
};
|
|
573
|
+
export type ListWebhooksError = ListWebhooksErrors[keyof ListWebhooksErrors];
|
|
574
|
+
export type ListWebhooksResponses = {
|
|
575
|
+
/**
|
|
576
|
+
* Ok
|
|
577
|
+
*/
|
|
578
|
+
200: Array<ApiWebhook>;
|
|
579
|
+
};
|
|
580
|
+
export type ListWebhooksResponse = ListWebhooksResponses[keyof ListWebhooksResponses];
|
|
581
|
+
export type CreateWebhookData2 = {
|
|
582
|
+
body: CreateApiWebhookBody;
|
|
583
|
+
path?: never;
|
|
584
|
+
query?: never;
|
|
585
|
+
url: '/webhooks';
|
|
586
|
+
};
|
|
587
|
+
export type CreateWebhookErrors = {
|
|
588
|
+
/**
|
|
589
|
+
* Invalid request
|
|
590
|
+
*/
|
|
591
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
592
|
+
/**
|
|
593
|
+
* Unauthorized
|
|
594
|
+
*/
|
|
595
|
+
401: ApiErrorResponse;
|
|
596
|
+
/**
|
|
597
|
+
* Folder not found
|
|
598
|
+
*/
|
|
599
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
600
|
+
/**
|
|
601
|
+
* Validation failed
|
|
602
|
+
*/
|
|
603
|
+
422: ApiValidationError;
|
|
604
|
+
/**
|
|
605
|
+
* Webhook limit reached
|
|
606
|
+
*/
|
|
607
|
+
429: WebhookApiErrorResponse | ApiRateLimitErrorResponse;
|
|
608
|
+
/**
|
|
609
|
+
* Internal Server Error
|
|
610
|
+
*/
|
|
611
|
+
500: ApiServerErrorResponse;
|
|
612
|
+
};
|
|
613
|
+
export type CreateWebhookError = CreateWebhookErrors[keyof CreateWebhookErrors];
|
|
614
|
+
export type CreateWebhookResponses = {
|
|
615
|
+
/**
|
|
616
|
+
* Created
|
|
617
|
+
*/
|
|
618
|
+
201: ApiWebhook & {
|
|
619
|
+
secret: string;
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
export type CreateWebhookResponse = CreateWebhookResponses[keyof CreateWebhookResponses];
|
|
623
|
+
export type DeleteWebhookData = {
|
|
624
|
+
body?: never;
|
|
625
|
+
path: {
|
|
626
|
+
hookId: string;
|
|
627
|
+
};
|
|
628
|
+
query?: never;
|
|
629
|
+
url: '/webhooks/{hookId}';
|
|
630
|
+
};
|
|
631
|
+
export type DeleteWebhookErrors = {
|
|
632
|
+
/**
|
|
633
|
+
* Invalid webhook ID
|
|
634
|
+
*/
|
|
635
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
636
|
+
/**
|
|
637
|
+
* Unauthorized
|
|
638
|
+
*/
|
|
639
|
+
401: ApiErrorResponse;
|
|
640
|
+
/**
|
|
641
|
+
* Webhook not found
|
|
642
|
+
*/
|
|
643
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
644
|
+
/**
|
|
645
|
+
* Rate limit or workspace quota exceeded
|
|
646
|
+
*/
|
|
647
|
+
429: ApiRateLimitErrorResponse;
|
|
648
|
+
/**
|
|
649
|
+
* Internal Server Error
|
|
650
|
+
*/
|
|
651
|
+
500: ApiServerErrorResponse;
|
|
652
|
+
};
|
|
653
|
+
export type DeleteWebhookError = DeleteWebhookErrors[keyof DeleteWebhookErrors];
|
|
654
|
+
export type DeleteWebhookResponses = {
|
|
655
|
+
/**
|
|
656
|
+
* No content
|
|
657
|
+
*/
|
|
658
|
+
204: void;
|
|
659
|
+
};
|
|
660
|
+
export type DeleteWebhookResponse = DeleteWebhookResponses[keyof DeleteWebhookResponses];
|
|
661
|
+
export type GetWebhookData = {
|
|
662
|
+
body?: never;
|
|
663
|
+
path: {
|
|
664
|
+
hookId: string;
|
|
665
|
+
};
|
|
666
|
+
query?: never;
|
|
667
|
+
url: '/webhooks/{hookId}';
|
|
668
|
+
};
|
|
669
|
+
export type GetWebhookErrors = {
|
|
670
|
+
/**
|
|
671
|
+
* Invalid webhook ID
|
|
672
|
+
*/
|
|
673
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
674
|
+
/**
|
|
675
|
+
* Unauthorized
|
|
676
|
+
*/
|
|
677
|
+
401: ApiErrorResponse;
|
|
678
|
+
/**
|
|
679
|
+
* Webhook not found
|
|
680
|
+
*/
|
|
681
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
682
|
+
/**
|
|
683
|
+
* Rate limit or workspace quota exceeded
|
|
684
|
+
*/
|
|
685
|
+
429: ApiRateLimitErrorResponse;
|
|
686
|
+
/**
|
|
687
|
+
* Internal Server Error
|
|
688
|
+
*/
|
|
689
|
+
500: ApiServerErrorResponse;
|
|
690
|
+
};
|
|
691
|
+
export type GetWebhookError = GetWebhookErrors[keyof GetWebhookErrors];
|
|
692
|
+
export type GetWebhookResponses = {
|
|
693
|
+
/**
|
|
694
|
+
* Ok
|
|
695
|
+
*/
|
|
696
|
+
200: ApiWebhook;
|
|
697
|
+
};
|
|
698
|
+
export type GetWebhookResponse = GetWebhookResponses[keyof GetWebhookResponses];
|
|
699
|
+
export type UpdateWebhookData2 = {
|
|
700
|
+
body: UpdateWebhookData;
|
|
701
|
+
path: {
|
|
702
|
+
hookId: string;
|
|
703
|
+
};
|
|
704
|
+
query?: never;
|
|
705
|
+
url: '/webhooks/{hookId}';
|
|
706
|
+
};
|
|
707
|
+
export type UpdateWebhookErrors = {
|
|
708
|
+
/**
|
|
709
|
+
* Invalid request
|
|
710
|
+
*/
|
|
711
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
712
|
+
/**
|
|
713
|
+
* Unauthorized
|
|
714
|
+
*/
|
|
715
|
+
401: ApiErrorResponse;
|
|
716
|
+
/**
|
|
717
|
+
* Webhook not found
|
|
718
|
+
*/
|
|
719
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
720
|
+
/**
|
|
721
|
+
* Validation failed
|
|
722
|
+
*/
|
|
723
|
+
422: ApiValidationError;
|
|
724
|
+
/**
|
|
725
|
+
* Rate limit or workspace quota exceeded
|
|
726
|
+
*/
|
|
727
|
+
429: ApiRateLimitErrorResponse;
|
|
728
|
+
/**
|
|
729
|
+
* Internal Server Error
|
|
730
|
+
*/
|
|
731
|
+
500: ApiServerErrorResponse;
|
|
732
|
+
};
|
|
733
|
+
export type UpdateWebhookError = UpdateWebhookErrors[keyof UpdateWebhookErrors];
|
|
734
|
+
export type UpdateWebhookResponses = {
|
|
735
|
+
/**
|
|
736
|
+
* Ok
|
|
737
|
+
*/
|
|
738
|
+
200: ApiWebhook;
|
|
739
|
+
};
|
|
740
|
+
export type UpdateWebhookResponse = UpdateWebhookResponses[keyof UpdateWebhookResponses];
|
|
741
|
+
export type PingWebhookData = {
|
|
742
|
+
body?: never;
|
|
743
|
+
path: {
|
|
744
|
+
hookId: string;
|
|
745
|
+
};
|
|
746
|
+
query?: never;
|
|
747
|
+
url: '/webhooks/{hookId}/ping';
|
|
748
|
+
};
|
|
749
|
+
export type PingWebhookErrors = {
|
|
750
|
+
/**
|
|
751
|
+
* Invalid webhook ID
|
|
752
|
+
*/
|
|
753
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
754
|
+
/**
|
|
755
|
+
* Unauthorized
|
|
756
|
+
*/
|
|
757
|
+
401: ApiErrorResponse;
|
|
758
|
+
/**
|
|
759
|
+
* Webhook not found
|
|
760
|
+
*/
|
|
761
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
762
|
+
/**
|
|
763
|
+
* Too many ping requests
|
|
764
|
+
*/
|
|
765
|
+
429: WebhookApiErrorResponse | ApiRateLimitErrorResponse;
|
|
766
|
+
/**
|
|
767
|
+
* Internal Server Error
|
|
768
|
+
*/
|
|
769
|
+
500: ApiServerErrorResponse;
|
|
770
|
+
};
|
|
771
|
+
export type PingWebhookError = PingWebhookErrors[keyof PingWebhookErrors];
|
|
772
|
+
export type PingWebhookResponses = {
|
|
773
|
+
/**
|
|
774
|
+
* No content
|
|
775
|
+
*/
|
|
776
|
+
204: void;
|
|
777
|
+
};
|
|
778
|
+
export type PingWebhookResponse = PingWebhookResponses[keyof PingWebhookResponses];
|
|
779
|
+
export type ListWebhookDeliveriesData = {
|
|
780
|
+
body?: never;
|
|
781
|
+
path: {
|
|
782
|
+
hookId: string;
|
|
783
|
+
};
|
|
784
|
+
query?: {
|
|
785
|
+
page?: ApiWebhookPage;
|
|
786
|
+
limit?: ApiWebhookLimit;
|
|
787
|
+
};
|
|
788
|
+
url: '/webhooks/{hookId}/deliveries';
|
|
789
|
+
};
|
|
790
|
+
export type ListWebhookDeliveriesErrors = {
|
|
791
|
+
/**
|
|
792
|
+
* Invalid request
|
|
793
|
+
*/
|
|
794
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
795
|
+
/**
|
|
796
|
+
* Unauthorized
|
|
797
|
+
*/
|
|
798
|
+
401: ApiErrorResponse;
|
|
799
|
+
/**
|
|
800
|
+
* Webhook not found
|
|
801
|
+
*/
|
|
802
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
803
|
+
/**
|
|
804
|
+
* Rate limit or workspace quota exceeded
|
|
805
|
+
*/
|
|
806
|
+
429: ApiRateLimitErrorResponse;
|
|
807
|
+
/**
|
|
808
|
+
* Internal Server Error
|
|
809
|
+
*/
|
|
810
|
+
500: ApiServerErrorResponse;
|
|
811
|
+
};
|
|
812
|
+
export type ListWebhookDeliveriesError = ListWebhookDeliveriesErrors[keyof ListWebhookDeliveriesErrors];
|
|
813
|
+
export type ListWebhookDeliveriesResponses = {
|
|
814
|
+
/**
|
|
815
|
+
* Ok
|
|
816
|
+
*/
|
|
817
|
+
200: PaginatedResponseApiWebhookDelivery;
|
|
818
|
+
};
|
|
819
|
+
export type ListWebhookDeliveriesResponse = ListWebhookDeliveriesResponses[keyof ListWebhookDeliveriesResponses];
|
|
820
|
+
export type ExportWebhookDeliveriesData = {
|
|
821
|
+
body?: never;
|
|
822
|
+
path: {
|
|
823
|
+
hookId: string;
|
|
824
|
+
};
|
|
825
|
+
query?: never;
|
|
826
|
+
url: '/webhooks/{hookId}/deliveries/export';
|
|
827
|
+
};
|
|
828
|
+
export type ExportWebhookDeliveriesErrors = {
|
|
829
|
+
/**
|
|
830
|
+
* Invalid webhook ID
|
|
831
|
+
*/
|
|
832
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
833
|
+
/**
|
|
834
|
+
* Unauthorized
|
|
835
|
+
*/
|
|
836
|
+
401: ApiErrorResponse;
|
|
837
|
+
/**
|
|
838
|
+
* Webhook not found
|
|
839
|
+
*/
|
|
840
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
841
|
+
/**
|
|
842
|
+
* Rate limit or workspace quota exceeded
|
|
843
|
+
*/
|
|
844
|
+
429: ApiRateLimitErrorResponse;
|
|
845
|
+
/**
|
|
846
|
+
* Internal Server Error
|
|
847
|
+
*/
|
|
848
|
+
500: ApiServerErrorResponse;
|
|
849
|
+
};
|
|
850
|
+
export type ExportWebhookDeliveriesError = ExportWebhookDeliveriesErrors[keyof ExportWebhookDeliveriesErrors];
|
|
851
|
+
export type ExportWebhookDeliveriesResponses = {
|
|
852
|
+
/**
|
|
853
|
+
* Ok
|
|
854
|
+
*/
|
|
855
|
+
200: string;
|
|
856
|
+
};
|
|
857
|
+
export type ExportWebhookDeliveriesResponse = ExportWebhookDeliveriesResponses[keyof ExportWebhookDeliveriesResponses];
|
|
858
|
+
export type GetWebhookDeliveryData = {
|
|
859
|
+
body?: never;
|
|
860
|
+
path: {
|
|
861
|
+
hookId: string;
|
|
862
|
+
deliveryId: string;
|
|
863
|
+
};
|
|
864
|
+
query?: never;
|
|
865
|
+
url: '/webhooks/{hookId}/deliveries/{deliveryId}';
|
|
866
|
+
};
|
|
867
|
+
export type GetWebhookDeliveryErrors = {
|
|
868
|
+
/**
|
|
869
|
+
* Invalid request
|
|
870
|
+
*/
|
|
871
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
872
|
+
/**
|
|
873
|
+
* Unauthorized
|
|
874
|
+
*/
|
|
875
|
+
401: ApiErrorResponse;
|
|
876
|
+
/**
|
|
877
|
+
* Delivery not found
|
|
878
|
+
*/
|
|
879
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
880
|
+
/**
|
|
881
|
+
* Rate limit or workspace quota exceeded
|
|
882
|
+
*/
|
|
883
|
+
429: ApiRateLimitErrorResponse;
|
|
884
|
+
/**
|
|
885
|
+
* Internal Server Error
|
|
886
|
+
*/
|
|
887
|
+
500: ApiServerErrorResponse;
|
|
888
|
+
};
|
|
889
|
+
export type GetWebhookDeliveryError = GetWebhookDeliveryErrors[keyof GetWebhookDeliveryErrors];
|
|
890
|
+
export type GetWebhookDeliveryResponses = {
|
|
891
|
+
/**
|
|
892
|
+
* Ok
|
|
893
|
+
*/
|
|
894
|
+
200: ApiWebhookDelivery;
|
|
895
|
+
};
|
|
896
|
+
export type GetWebhookDeliveryResponse = GetWebhookDeliveryResponses[keyof GetWebhookDeliveryResponses];
|
|
897
|
+
export type ListTeamWebhooksData = {
|
|
898
|
+
body?: never;
|
|
899
|
+
path: {
|
|
900
|
+
teampath: string;
|
|
901
|
+
};
|
|
902
|
+
query?: never;
|
|
903
|
+
url: '/teams/{teampath}/webhooks';
|
|
904
|
+
};
|
|
905
|
+
export type ListTeamWebhooksErrors = {
|
|
906
|
+
/**
|
|
907
|
+
* Bad Request
|
|
908
|
+
*/
|
|
909
|
+
400: ApiRequestErrorResponse;
|
|
910
|
+
/**
|
|
911
|
+
* Unauthorized
|
|
912
|
+
*/
|
|
913
|
+
401: ApiErrorResponse;
|
|
914
|
+
/**
|
|
915
|
+
* Forbidden
|
|
916
|
+
*/
|
|
917
|
+
403: ApiErrorResponse;
|
|
918
|
+
/**
|
|
919
|
+
* Not Found
|
|
920
|
+
*/
|
|
921
|
+
404: ApiErrorResponse;
|
|
922
|
+
/**
|
|
923
|
+
* Rate limit or workspace quota exceeded
|
|
924
|
+
*/
|
|
925
|
+
429: ApiRateLimitErrorResponse;
|
|
926
|
+
/**
|
|
927
|
+
* Internal Server Error
|
|
928
|
+
*/
|
|
929
|
+
500: ApiServerErrorResponse;
|
|
930
|
+
};
|
|
931
|
+
export type ListTeamWebhooksError = ListTeamWebhooksErrors[keyof ListTeamWebhooksErrors];
|
|
932
|
+
export type ListTeamWebhooksResponses = {
|
|
933
|
+
/**
|
|
934
|
+
* Ok
|
|
935
|
+
*/
|
|
936
|
+
200: Array<ApiWebhook>;
|
|
937
|
+
};
|
|
938
|
+
export type ListTeamWebhooksResponse = ListTeamWebhooksResponses[keyof ListTeamWebhooksResponses];
|
|
939
|
+
export type CreateTeamWebhookData = {
|
|
940
|
+
body: CreateApiWebhookBody;
|
|
941
|
+
path: {
|
|
942
|
+
teampath: string;
|
|
943
|
+
};
|
|
944
|
+
query?: never;
|
|
945
|
+
url: '/teams/{teampath}/webhooks';
|
|
946
|
+
};
|
|
947
|
+
export type CreateTeamWebhookErrors = {
|
|
948
|
+
/**
|
|
949
|
+
* Invalid request
|
|
950
|
+
*/
|
|
951
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
952
|
+
/**
|
|
953
|
+
* Unauthorized
|
|
954
|
+
*/
|
|
955
|
+
401: ApiErrorResponse;
|
|
956
|
+
/**
|
|
957
|
+
* Forbidden
|
|
958
|
+
*/
|
|
959
|
+
403: ApiErrorResponse;
|
|
960
|
+
/**
|
|
961
|
+
* Folder not found
|
|
962
|
+
*/
|
|
963
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
964
|
+
/**
|
|
965
|
+
* Validation failed
|
|
966
|
+
*/
|
|
967
|
+
422: ApiValidationError;
|
|
968
|
+
/**
|
|
969
|
+
* Webhook limit reached
|
|
970
|
+
*/
|
|
971
|
+
429: WebhookApiErrorResponse | ApiRateLimitErrorResponse;
|
|
972
|
+
/**
|
|
973
|
+
* Internal Server Error
|
|
974
|
+
*/
|
|
975
|
+
500: ApiServerErrorResponse;
|
|
976
|
+
};
|
|
977
|
+
export type CreateTeamWebhookError = CreateTeamWebhookErrors[keyof CreateTeamWebhookErrors];
|
|
978
|
+
export type CreateTeamWebhookResponses = {
|
|
979
|
+
/**
|
|
980
|
+
* Created
|
|
981
|
+
*/
|
|
982
|
+
201: ApiWebhook & {
|
|
983
|
+
secret: string;
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
export type CreateTeamWebhookResponse = CreateTeamWebhookResponses[keyof CreateTeamWebhookResponses];
|
|
987
|
+
export type DeleteTeamWebhookData = {
|
|
988
|
+
body?: never;
|
|
989
|
+
path: {
|
|
990
|
+
teampath: string;
|
|
991
|
+
hookId: string;
|
|
992
|
+
};
|
|
993
|
+
query?: never;
|
|
994
|
+
url: '/teams/{teampath}/webhooks/{hookId}';
|
|
995
|
+
};
|
|
996
|
+
export type DeleteTeamWebhookErrors = {
|
|
997
|
+
/**
|
|
998
|
+
* Invalid webhook ID
|
|
999
|
+
*/
|
|
1000
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
1001
|
+
/**
|
|
1002
|
+
* Unauthorized
|
|
1003
|
+
*/
|
|
1004
|
+
401: ApiErrorResponse;
|
|
1005
|
+
/**
|
|
1006
|
+
* Forbidden
|
|
1007
|
+
*/
|
|
1008
|
+
403: ApiErrorResponse;
|
|
1009
|
+
/**
|
|
1010
|
+
* Webhook not found
|
|
1011
|
+
*/
|
|
1012
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
1013
|
+
/**
|
|
1014
|
+
* Rate limit or workspace quota exceeded
|
|
1015
|
+
*/
|
|
1016
|
+
429: ApiRateLimitErrorResponse;
|
|
1017
|
+
/**
|
|
1018
|
+
* Internal Server Error
|
|
1019
|
+
*/
|
|
1020
|
+
500: ApiServerErrorResponse;
|
|
1021
|
+
};
|
|
1022
|
+
export type DeleteTeamWebhookError = DeleteTeamWebhookErrors[keyof DeleteTeamWebhookErrors];
|
|
1023
|
+
export type DeleteTeamWebhookResponses = {
|
|
1024
|
+
/**
|
|
1025
|
+
* No content
|
|
1026
|
+
*/
|
|
1027
|
+
204: void;
|
|
1028
|
+
};
|
|
1029
|
+
export type DeleteTeamWebhookResponse = DeleteTeamWebhookResponses[keyof DeleteTeamWebhookResponses];
|
|
1030
|
+
export type GetTeamWebhookData = {
|
|
1031
|
+
body?: never;
|
|
1032
|
+
path: {
|
|
1033
|
+
teampath: string;
|
|
1034
|
+
hookId: string;
|
|
1035
|
+
};
|
|
1036
|
+
query?: never;
|
|
1037
|
+
url: '/teams/{teampath}/webhooks/{hookId}';
|
|
1038
|
+
};
|
|
1039
|
+
export type GetTeamWebhookErrors = {
|
|
1040
|
+
/**
|
|
1041
|
+
* Invalid webhook ID
|
|
1042
|
+
*/
|
|
1043
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
1044
|
+
/**
|
|
1045
|
+
* Unauthorized
|
|
1046
|
+
*/
|
|
1047
|
+
401: ApiErrorResponse;
|
|
1048
|
+
/**
|
|
1049
|
+
* Forbidden
|
|
1050
|
+
*/
|
|
1051
|
+
403: ApiErrorResponse;
|
|
1052
|
+
/**
|
|
1053
|
+
* Webhook not found
|
|
1054
|
+
*/
|
|
1055
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
1056
|
+
/**
|
|
1057
|
+
* Rate limit or workspace quota exceeded
|
|
1058
|
+
*/
|
|
1059
|
+
429: ApiRateLimitErrorResponse;
|
|
1060
|
+
/**
|
|
1061
|
+
* Internal Server Error
|
|
1062
|
+
*/
|
|
1063
|
+
500: ApiServerErrorResponse;
|
|
1064
|
+
};
|
|
1065
|
+
export type GetTeamWebhookError = GetTeamWebhookErrors[keyof GetTeamWebhookErrors];
|
|
1066
|
+
export type GetTeamWebhookResponses = {
|
|
1067
|
+
/**
|
|
1068
|
+
* Ok
|
|
1069
|
+
*/
|
|
1070
|
+
200: ApiWebhook;
|
|
1071
|
+
};
|
|
1072
|
+
export type GetTeamWebhookResponse = GetTeamWebhookResponses[keyof GetTeamWebhookResponses];
|
|
1073
|
+
export type UpdateTeamWebhookData = {
|
|
1074
|
+
body: UpdateWebhookData;
|
|
1075
|
+
path: {
|
|
1076
|
+
teampath: string;
|
|
1077
|
+
hookId: string;
|
|
1078
|
+
};
|
|
1079
|
+
query?: never;
|
|
1080
|
+
url: '/teams/{teampath}/webhooks/{hookId}';
|
|
1081
|
+
};
|
|
1082
|
+
export type UpdateTeamWebhookErrors = {
|
|
1083
|
+
/**
|
|
1084
|
+
* Invalid request
|
|
1085
|
+
*/
|
|
1086
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
1087
|
+
/**
|
|
1088
|
+
* Unauthorized
|
|
1089
|
+
*/
|
|
1090
|
+
401: ApiErrorResponse;
|
|
1091
|
+
/**
|
|
1092
|
+
* Forbidden
|
|
1093
|
+
*/
|
|
1094
|
+
403: ApiErrorResponse;
|
|
1095
|
+
/**
|
|
1096
|
+
* Webhook not found
|
|
1097
|
+
*/
|
|
1098
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
1099
|
+
/**
|
|
1100
|
+
* Validation failed
|
|
1101
|
+
*/
|
|
1102
|
+
422: ApiValidationError;
|
|
1103
|
+
/**
|
|
1104
|
+
* Rate limit or workspace quota exceeded
|
|
1105
|
+
*/
|
|
1106
|
+
429: ApiRateLimitErrorResponse;
|
|
1107
|
+
/**
|
|
1108
|
+
* Internal Server Error
|
|
1109
|
+
*/
|
|
1110
|
+
500: ApiServerErrorResponse;
|
|
1111
|
+
};
|
|
1112
|
+
export type UpdateTeamWebhookError = UpdateTeamWebhookErrors[keyof UpdateTeamWebhookErrors];
|
|
1113
|
+
export type UpdateTeamWebhookResponses = {
|
|
1114
|
+
/**
|
|
1115
|
+
* Ok
|
|
1116
|
+
*/
|
|
1117
|
+
200: ApiWebhook;
|
|
1118
|
+
};
|
|
1119
|
+
export type UpdateTeamWebhookResponse = UpdateTeamWebhookResponses[keyof UpdateTeamWebhookResponses];
|
|
1120
|
+
export type PingTeamWebhookData = {
|
|
1121
|
+
body?: never;
|
|
1122
|
+
path: {
|
|
1123
|
+
teampath: string;
|
|
1124
|
+
hookId: string;
|
|
1125
|
+
};
|
|
1126
|
+
query?: never;
|
|
1127
|
+
url: '/teams/{teampath}/webhooks/{hookId}/ping';
|
|
1128
|
+
};
|
|
1129
|
+
export type PingTeamWebhookErrors = {
|
|
1130
|
+
/**
|
|
1131
|
+
* Invalid webhook ID
|
|
1132
|
+
*/
|
|
1133
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
1134
|
+
/**
|
|
1135
|
+
* Unauthorized
|
|
1136
|
+
*/
|
|
1137
|
+
401: ApiErrorResponse;
|
|
1138
|
+
/**
|
|
1139
|
+
* Forbidden
|
|
1140
|
+
*/
|
|
1141
|
+
403: ApiErrorResponse;
|
|
1142
|
+
/**
|
|
1143
|
+
* Webhook not found
|
|
1144
|
+
*/
|
|
1145
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
1146
|
+
/**
|
|
1147
|
+
* Too many ping requests
|
|
1148
|
+
*/
|
|
1149
|
+
429: WebhookApiErrorResponse | ApiRateLimitErrorResponse;
|
|
1150
|
+
/**
|
|
1151
|
+
* Internal Server Error
|
|
1152
|
+
*/
|
|
1153
|
+
500: ApiServerErrorResponse;
|
|
1154
|
+
};
|
|
1155
|
+
export type PingTeamWebhookError = PingTeamWebhookErrors[keyof PingTeamWebhookErrors];
|
|
1156
|
+
export type PingTeamWebhookResponses = {
|
|
1157
|
+
/**
|
|
1158
|
+
* No content
|
|
1159
|
+
*/
|
|
1160
|
+
204: void;
|
|
1161
|
+
};
|
|
1162
|
+
export type PingTeamWebhookResponse = PingTeamWebhookResponses[keyof PingTeamWebhookResponses];
|
|
1163
|
+
export type ListTeamWebhookDeliveriesData = {
|
|
1164
|
+
body?: never;
|
|
1165
|
+
path: {
|
|
1166
|
+
teampath: string;
|
|
1167
|
+
hookId: string;
|
|
1168
|
+
};
|
|
1169
|
+
query?: {
|
|
1170
|
+
page?: ApiWebhookPage;
|
|
1171
|
+
limit?: ApiWebhookLimit;
|
|
1172
|
+
};
|
|
1173
|
+
url: '/teams/{teampath}/webhooks/{hookId}/deliveries';
|
|
1174
|
+
};
|
|
1175
|
+
export type ListTeamWebhookDeliveriesErrors = {
|
|
1176
|
+
/**
|
|
1177
|
+
* Invalid request
|
|
1178
|
+
*/
|
|
1179
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
1180
|
+
/**
|
|
1181
|
+
* Unauthorized
|
|
1182
|
+
*/
|
|
1183
|
+
401: ApiErrorResponse;
|
|
1184
|
+
/**
|
|
1185
|
+
* Forbidden
|
|
1186
|
+
*/
|
|
1187
|
+
403: ApiErrorResponse;
|
|
1188
|
+
/**
|
|
1189
|
+
* Webhook not found
|
|
1190
|
+
*/
|
|
1191
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
1192
|
+
/**
|
|
1193
|
+
* Rate limit or workspace quota exceeded
|
|
1194
|
+
*/
|
|
1195
|
+
429: ApiRateLimitErrorResponse;
|
|
1196
|
+
/**
|
|
1197
|
+
* Internal Server Error
|
|
1198
|
+
*/
|
|
1199
|
+
500: ApiServerErrorResponse;
|
|
1200
|
+
};
|
|
1201
|
+
export type ListTeamWebhookDeliveriesError = ListTeamWebhookDeliveriesErrors[keyof ListTeamWebhookDeliveriesErrors];
|
|
1202
|
+
export type ListTeamWebhookDeliveriesResponses = {
|
|
1203
|
+
/**
|
|
1204
|
+
* Ok
|
|
1205
|
+
*/
|
|
1206
|
+
200: PaginatedResponseApiWebhookDelivery;
|
|
1207
|
+
};
|
|
1208
|
+
export type ListTeamWebhookDeliveriesResponse = ListTeamWebhookDeliveriesResponses[keyof ListTeamWebhookDeliveriesResponses];
|
|
1209
|
+
export type ExportTeamWebhookDeliveriesData = {
|
|
1210
|
+
body?: never;
|
|
1211
|
+
path: {
|
|
1212
|
+
teampath: string;
|
|
1213
|
+
hookId: string;
|
|
1214
|
+
};
|
|
1215
|
+
query?: never;
|
|
1216
|
+
url: '/teams/{teampath}/webhooks/{hookId}/deliveries/export';
|
|
1217
|
+
};
|
|
1218
|
+
export type ExportTeamWebhookDeliveriesErrors = {
|
|
1219
|
+
/**
|
|
1220
|
+
* Invalid webhook ID
|
|
1221
|
+
*/
|
|
1222
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
1223
|
+
/**
|
|
1224
|
+
* Unauthorized
|
|
1225
|
+
*/
|
|
1226
|
+
401: ApiErrorResponse;
|
|
1227
|
+
/**
|
|
1228
|
+
* Forbidden
|
|
1229
|
+
*/
|
|
1230
|
+
403: ApiErrorResponse;
|
|
1231
|
+
/**
|
|
1232
|
+
* Webhook not found
|
|
1233
|
+
*/
|
|
1234
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
1235
|
+
/**
|
|
1236
|
+
* Rate limit or workspace quota exceeded
|
|
1237
|
+
*/
|
|
1238
|
+
429: ApiRateLimitErrorResponse;
|
|
1239
|
+
/**
|
|
1240
|
+
* Internal Server Error
|
|
1241
|
+
*/
|
|
1242
|
+
500: ApiServerErrorResponse;
|
|
1243
|
+
};
|
|
1244
|
+
export type ExportTeamWebhookDeliveriesError = ExportTeamWebhookDeliveriesErrors[keyof ExportTeamWebhookDeliveriesErrors];
|
|
1245
|
+
export type ExportTeamWebhookDeliveriesResponses = {
|
|
1246
|
+
/**
|
|
1247
|
+
* Ok
|
|
1248
|
+
*/
|
|
1249
|
+
200: string;
|
|
1250
|
+
};
|
|
1251
|
+
export type ExportTeamWebhookDeliveriesResponse = ExportTeamWebhookDeliveriesResponses[keyof ExportTeamWebhookDeliveriesResponses];
|
|
1252
|
+
export type GetTeamWebhookDeliveryData = {
|
|
1253
|
+
body?: never;
|
|
1254
|
+
path: {
|
|
1255
|
+
teampath: string;
|
|
1256
|
+
hookId: string;
|
|
1257
|
+
deliveryId: string;
|
|
1258
|
+
};
|
|
1259
|
+
query?: never;
|
|
1260
|
+
url: '/teams/{teampath}/webhooks/{hookId}/deliveries/{deliveryId}';
|
|
1261
|
+
};
|
|
1262
|
+
export type GetTeamWebhookDeliveryErrors = {
|
|
1263
|
+
/**
|
|
1264
|
+
* Invalid request
|
|
1265
|
+
*/
|
|
1266
|
+
400: WebhookApiErrorResponse | ApiRequestErrorResponse;
|
|
1267
|
+
/**
|
|
1268
|
+
* Unauthorized
|
|
1269
|
+
*/
|
|
1270
|
+
401: ApiErrorResponse;
|
|
1271
|
+
/**
|
|
1272
|
+
* Forbidden
|
|
1273
|
+
*/
|
|
1274
|
+
403: ApiErrorResponse;
|
|
1275
|
+
/**
|
|
1276
|
+
* Delivery not found
|
|
1277
|
+
*/
|
|
1278
|
+
404: WebhookApiErrorResponse | ApiErrorResponse;
|
|
1279
|
+
/**
|
|
1280
|
+
* Rate limit or workspace quota exceeded
|
|
1281
|
+
*/
|
|
1282
|
+
429: ApiRateLimitErrorResponse;
|
|
1283
|
+
/**
|
|
1284
|
+
* Internal Server Error
|
|
1285
|
+
*/
|
|
1286
|
+
500: ApiServerErrorResponse;
|
|
1287
|
+
};
|
|
1288
|
+
export type GetTeamWebhookDeliveryError = GetTeamWebhookDeliveryErrors[keyof GetTeamWebhookDeliveryErrors];
|
|
1289
|
+
export type GetTeamWebhookDeliveryResponses = {
|
|
1290
|
+
/**
|
|
1291
|
+
* Ok
|
|
1292
|
+
*/
|
|
1293
|
+
200: ApiWebhookDelivery;
|
|
1294
|
+
};
|
|
1295
|
+
export type GetTeamWebhookDeliveryResponse = GetTeamWebhookDeliveryResponses[keyof GetTeamWebhookDeliveryResponses];
|
|
1296
|
+
export type ListNotesData = {
|
|
1297
|
+
body?: never;
|
|
1298
|
+
path?: never;
|
|
1299
|
+
query?: never;
|
|
1300
|
+
url: '/notes';
|
|
1301
|
+
};
|
|
1302
|
+
export type ListNotesErrors = {
|
|
1303
|
+
/**
|
|
1304
|
+
* Bad Request
|
|
1305
|
+
*/
|
|
1306
|
+
400: ApiRequestErrorResponse;
|
|
1307
|
+
/**
|
|
1308
|
+
* Unauthorized
|
|
1309
|
+
*/
|
|
1310
|
+
401: ApiErrorResponse;
|
|
1311
|
+
/**
|
|
1312
|
+
* Rate limit or workspace quota exceeded
|
|
1313
|
+
*/
|
|
1314
|
+
429: ApiRateLimitErrorResponse;
|
|
1315
|
+
/**
|
|
1316
|
+
* Internal Server Error
|
|
1317
|
+
*/
|
|
1318
|
+
500: ApiServerErrorResponse;
|
|
1319
|
+
};
|
|
1320
|
+
export type ListNotesError = ListNotesErrors[keyof ListNotesErrors];
|
|
1321
|
+
export type ListNotesResponses = {
|
|
1322
|
+
/**
|
|
1323
|
+
* Ok
|
|
1324
|
+
*/
|
|
1325
|
+
200: Array<NoteType>;
|
|
1326
|
+
};
|
|
1327
|
+
export type ListNotesResponse = ListNotesResponses[keyof ListNotesResponses];
|
|
1328
|
+
export type CreateNoteData = {
|
|
1329
|
+
/**
|
|
1330
|
+
* The note content or a JSON object with note properties.
|
|
1331
|
+
*/
|
|
1332
|
+
body?: {
|
|
1333
|
+
origin?: string;
|
|
1334
|
+
parentFolderId?: string;
|
|
1335
|
+
permalink?: string;
|
|
1336
|
+
noteFeatures?: ApiNoteFeatures;
|
|
1337
|
+
suggestEditPermission?: SuggestEditPermissionType;
|
|
1338
|
+
commentPermission?: CommentPermissionType;
|
|
1339
|
+
writePermission?: NotePermissionRole;
|
|
1340
|
+
readPermission?: NotePermissionRole;
|
|
1341
|
+
content?: string;
|
|
1342
|
+
description?: string;
|
|
1343
|
+
tags?: Array<string>;
|
|
1344
|
+
title?: string;
|
|
1345
|
+
} | string;
|
|
1346
|
+
path?: never;
|
|
1347
|
+
query?: never;
|
|
1348
|
+
url: '/notes';
|
|
1349
|
+
};
|
|
1350
|
+
export type CreateNoteErrors = {
|
|
1351
|
+
400: ApiBadRequestResponse;
|
|
1352
|
+
/**
|
|
1353
|
+
* Unauthorized
|
|
1354
|
+
*/
|
|
1355
|
+
401: ApiErrorResponse;
|
|
1356
|
+
403: ApiErrorResponse;
|
|
1357
|
+
404: ApiErrorResponse;
|
|
1358
|
+
409: ApiErrorResponse;
|
|
1359
|
+
/**
|
|
1360
|
+
* Validation failed
|
|
1361
|
+
*/
|
|
1362
|
+
422: ApiValidationError;
|
|
1363
|
+
/**
|
|
1364
|
+
* Rate limit or workspace quota exceeded
|
|
1365
|
+
*/
|
|
1366
|
+
429: ApiRateLimitErrorResponse;
|
|
1367
|
+
/**
|
|
1368
|
+
* Internal Server Error
|
|
1369
|
+
*/
|
|
1370
|
+
500: ApiServerErrorResponse;
|
|
1371
|
+
};
|
|
1372
|
+
export type CreateNoteError = CreateNoteErrors[keyof CreateNoteErrors];
|
|
1373
|
+
export type CreateNoteResponses = {
|
|
1374
|
+
201: SingleNote;
|
|
1375
|
+
207: CreateNoteMultiStatusResponse;
|
|
1376
|
+
};
|
|
1377
|
+
export type CreateNoteResponse = CreateNoteResponses[keyof CreateNoteResponses];
|
|
1378
|
+
export type DeleteNoteData = {
|
|
1379
|
+
body?: never;
|
|
1380
|
+
path: {
|
|
1381
|
+
/**
|
|
1382
|
+
* The ID of the note to delete.
|
|
1383
|
+
*/
|
|
1384
|
+
noteId: string;
|
|
1385
|
+
};
|
|
1386
|
+
query?: never;
|
|
1387
|
+
url: '/notes/{noteId}';
|
|
1388
|
+
};
|
|
1389
|
+
export type DeleteNoteErrors = {
|
|
1390
|
+
400: ApiBadRequestResponse;
|
|
1391
|
+
/**
|
|
1392
|
+
* Unauthorized
|
|
1393
|
+
*/
|
|
1394
|
+
401: ApiErrorResponse;
|
|
1395
|
+
403: ApiErrorResponse;
|
|
1396
|
+
404: ApiErrorResponse;
|
|
1397
|
+
/**
|
|
1398
|
+
* Rate limit or workspace quota exceeded
|
|
1399
|
+
*/
|
|
1400
|
+
429: ApiRateLimitErrorResponse;
|
|
1401
|
+
500: ApiServerErrorResponse;
|
|
1402
|
+
};
|
|
1403
|
+
export type DeleteNoteError = DeleteNoteErrors[keyof DeleteNoteErrors];
|
|
1404
|
+
export type DeleteNoteResponses = {
|
|
1405
|
+
/**
|
|
1406
|
+
* No content
|
|
1407
|
+
*/
|
|
1408
|
+
204: void;
|
|
1409
|
+
};
|
|
1410
|
+
export type DeleteNoteResponse = DeleteNoteResponses[keyof DeleteNoteResponses];
|
|
1411
|
+
export type GetNoteData = {
|
|
1412
|
+
body?: never;
|
|
1413
|
+
headers?: {
|
|
1414
|
+
/**
|
|
1415
|
+
* Return 304 when this ETag matches the current note.
|
|
1416
|
+
*/
|
|
1417
|
+
'If-None-Match'?: string;
|
|
1418
|
+
};
|
|
1419
|
+
path: {
|
|
1420
|
+
/**
|
|
1421
|
+
* The ID of the note to retrieve.
|
|
1422
|
+
*/
|
|
1423
|
+
noteId: string;
|
|
1424
|
+
};
|
|
1425
|
+
query?: never;
|
|
1426
|
+
url: '/notes/{noteId}';
|
|
1427
|
+
};
|
|
1428
|
+
export type GetNoteErrors = {
|
|
1429
|
+
/**
|
|
1430
|
+
* Bad Request
|
|
1431
|
+
*/
|
|
1432
|
+
400: ApiRequestErrorResponse;
|
|
1433
|
+
/**
|
|
1434
|
+
* Unauthorized
|
|
1435
|
+
*/
|
|
1436
|
+
401: ApiErrorResponse;
|
|
1437
|
+
403: ApiErrorResponse;
|
|
1438
|
+
404: ApiErrorResponse;
|
|
1439
|
+
/**
|
|
1440
|
+
* Rate limit or workspace quota exceeded
|
|
1441
|
+
*/
|
|
1442
|
+
429: ApiRateLimitErrorResponse;
|
|
1443
|
+
500: ApiServerErrorResponse;
|
|
1444
|
+
};
|
|
1445
|
+
export type GetNoteError = GetNoteErrors[keyof GetNoteErrors];
|
|
1446
|
+
export type GetNoteResponses = {
|
|
1447
|
+
200: SingleNote;
|
|
1448
|
+
};
|
|
1449
|
+
export type GetNoteResponse = GetNoteResponses[keyof GetNoteResponses];
|
|
1450
|
+
export type UpdateNoteData = {
|
|
1451
|
+
/**
|
|
1452
|
+
* The properties to update on the note. Omit description to leave it unchanged, use a string (including an empty string) to set it, or null to remove its metadata.
|
|
1453
|
+
*/
|
|
1454
|
+
body: {
|
|
1455
|
+
parentFolderId?: string | null;
|
|
1456
|
+
permalink?: string;
|
|
1457
|
+
writePermission?: NotePermissionRole;
|
|
1458
|
+
readPermission?: NotePermissionRole;
|
|
1459
|
+
content?: string;
|
|
1460
|
+
description?: string | null;
|
|
1461
|
+
tags?: Array<string>;
|
|
1462
|
+
title?: string;
|
|
1463
|
+
};
|
|
1464
|
+
path: {
|
|
1465
|
+
/**
|
|
1466
|
+
* The ID of the note to update.
|
|
1467
|
+
*/
|
|
1468
|
+
noteId: string;
|
|
1469
|
+
};
|
|
1470
|
+
query?: never;
|
|
1471
|
+
url: '/notes/{noteId}';
|
|
1472
|
+
};
|
|
1473
|
+
export type UpdateNoteErrors = {
|
|
1474
|
+
400: ApiBadRequestResponse;
|
|
1475
|
+
/**
|
|
1476
|
+
* Unauthorized
|
|
1477
|
+
*/
|
|
1478
|
+
401: ApiErrorResponse;
|
|
1479
|
+
403: ApiErrorResponse;
|
|
1480
|
+
404: ApiErrorResponse;
|
|
1481
|
+
409: ApiErrorResponse;
|
|
1482
|
+
/**
|
|
1483
|
+
* Validation failed
|
|
1484
|
+
*/
|
|
1485
|
+
422: ApiValidationError;
|
|
1486
|
+
/**
|
|
1487
|
+
* Rate limit or workspace quota exceeded
|
|
1488
|
+
*/
|
|
1489
|
+
429: ApiRateLimitErrorResponse;
|
|
1490
|
+
500: ApiServerErrorResponse;
|
|
1491
|
+
};
|
|
1492
|
+
export type UpdateNoteError = UpdateNoteErrors[keyof UpdateNoteErrors];
|
|
1493
|
+
export type UpdateNoteResponses = {
|
|
1494
|
+
202: unknown;
|
|
1495
|
+
};
|
|
1496
|
+
export type ListFoldersData = {
|
|
1497
|
+
body?: never;
|
|
1498
|
+
path?: never;
|
|
1499
|
+
query?: never;
|
|
1500
|
+
url: '/folders';
|
|
1501
|
+
};
|
|
1502
|
+
export type ListFoldersErrors = {
|
|
1503
|
+
/**
|
|
1504
|
+
* Bad Request
|
|
1505
|
+
*/
|
|
1506
|
+
400: ApiRequestErrorResponse;
|
|
1507
|
+
/**
|
|
1508
|
+
* Unauthorized
|
|
1509
|
+
*/
|
|
1510
|
+
401: ApiErrorResponse;
|
|
1511
|
+
/**
|
|
1512
|
+
* Rate limit or workspace quota exceeded
|
|
1513
|
+
*/
|
|
1514
|
+
429: ApiRateLimitErrorResponse;
|
|
1515
|
+
/**
|
|
1516
|
+
* Internal Server Error
|
|
1517
|
+
*/
|
|
1518
|
+
500: ApiServerErrorResponse;
|
|
1519
|
+
};
|
|
1520
|
+
export type ListFoldersError = ListFoldersErrors[keyof ListFoldersErrors];
|
|
1521
|
+
export type ListFoldersResponses = {
|
|
1522
|
+
/**
|
|
1523
|
+
* Ok
|
|
1524
|
+
*/
|
|
1525
|
+
200: Array<ApiFolder>;
|
|
1526
|
+
};
|
|
1527
|
+
export type ListFoldersResponse = ListFoldersResponses[keyof ListFoldersResponses];
|
|
1528
|
+
export type CreateFolderData = {
|
|
1529
|
+
/**
|
|
1530
|
+
* The folder properties.
|
|
1531
|
+
*/
|
|
1532
|
+
body?: CreateUserFolderBody;
|
|
1533
|
+
path?: never;
|
|
1534
|
+
query?: never;
|
|
1535
|
+
url: '/folders';
|
|
1536
|
+
};
|
|
1537
|
+
export type CreateFolderErrors = {
|
|
1538
|
+
400: ApiBadRequestResponse;
|
|
1539
|
+
/**
|
|
1540
|
+
* Unauthorized
|
|
1541
|
+
*/
|
|
1542
|
+
401: ApiErrorResponse;
|
|
1543
|
+
404: ApiErrorResponse;
|
|
1544
|
+
/**
|
|
1545
|
+
* Validation failed
|
|
1546
|
+
*/
|
|
1547
|
+
422: ApiValidationError;
|
|
1548
|
+
/**
|
|
1549
|
+
* Rate limit or workspace quota exceeded
|
|
1550
|
+
*/
|
|
1551
|
+
429: ApiRateLimitErrorResponse;
|
|
1552
|
+
500: ApiServerErrorResponse;
|
|
1553
|
+
};
|
|
1554
|
+
export type CreateFolderError = CreateFolderErrors[keyof CreateFolderErrors];
|
|
1555
|
+
export type CreateFolderResponses = {
|
|
1556
|
+
201: ApiFolder;
|
|
1557
|
+
};
|
|
1558
|
+
export type CreateFolderResponse = CreateFolderResponses[keyof CreateFolderResponses];
|
|
1559
|
+
export type GetFolderOrderData = {
|
|
1560
|
+
body?: never;
|
|
1561
|
+
path?: never;
|
|
1562
|
+
query?: never;
|
|
1563
|
+
url: '/folders/folder-order';
|
|
1564
|
+
};
|
|
1565
|
+
export type GetFolderOrderErrors = {
|
|
1566
|
+
/**
|
|
1567
|
+
* Bad Request
|
|
1568
|
+
*/
|
|
1569
|
+
400: ApiRequestErrorResponse;
|
|
1570
|
+
/**
|
|
1571
|
+
* Unauthorized
|
|
1572
|
+
*/
|
|
1573
|
+
401: ApiErrorResponse;
|
|
1574
|
+
/**
|
|
1575
|
+
* Rate limit or workspace quota exceeded
|
|
1576
|
+
*/
|
|
1577
|
+
429: ApiRateLimitErrorResponse;
|
|
1578
|
+
/**
|
|
1579
|
+
* Internal Server Error
|
|
1580
|
+
*/
|
|
1581
|
+
500: ApiServerErrorResponse;
|
|
1582
|
+
};
|
|
1583
|
+
export type GetFolderOrderError = GetFolderOrderErrors[keyof GetFolderOrderErrors];
|
|
1584
|
+
export type GetFolderOrderResponses = {
|
|
1585
|
+
/**
|
|
1586
|
+
* Ok
|
|
1587
|
+
*/
|
|
1588
|
+
200: ApiFolderOrder;
|
|
1589
|
+
};
|
|
1590
|
+
export type GetFolderOrderResponse = GetFolderOrderResponses[keyof GetFolderOrderResponses];
|
|
1591
|
+
export type UpdateFolderOrderData = {
|
|
1592
|
+
body?: UpdateFolderOrderBody;
|
|
1593
|
+
path?: never;
|
|
1594
|
+
query?: never;
|
|
1595
|
+
url: '/folders/folder-order';
|
|
1596
|
+
};
|
|
1597
|
+
export type UpdateFolderOrderErrors = {
|
|
1598
|
+
400: ApiBadRequestResponse;
|
|
1599
|
+
/**
|
|
1600
|
+
* Unauthorized
|
|
1601
|
+
*/
|
|
1602
|
+
401: ApiErrorResponse;
|
|
1603
|
+
/**
|
|
1604
|
+
* Validation failed
|
|
1605
|
+
*/
|
|
1606
|
+
422: ApiValidationError;
|
|
1607
|
+
/**
|
|
1608
|
+
* Rate limit or workspace quota exceeded
|
|
1609
|
+
*/
|
|
1610
|
+
429: ApiRateLimitErrorResponse;
|
|
1611
|
+
/**
|
|
1612
|
+
* Internal Server Error
|
|
1613
|
+
*/
|
|
1614
|
+
500: ApiServerErrorResponse;
|
|
1615
|
+
};
|
|
1616
|
+
export type UpdateFolderOrderError = UpdateFolderOrderErrors[keyof UpdateFolderOrderErrors];
|
|
1617
|
+
export type UpdateFolderOrderResponses = {
|
|
1618
|
+
204: void;
|
|
1619
|
+
};
|
|
1620
|
+
export type UpdateFolderOrderResponse = UpdateFolderOrderResponses[keyof UpdateFolderOrderResponses];
|
|
1621
|
+
export type DeleteFolderData = {
|
|
1622
|
+
body?: never;
|
|
1623
|
+
path: {
|
|
1624
|
+
/**
|
|
1625
|
+
* The ID of the folder to delete.
|
|
1626
|
+
*/
|
|
1627
|
+
folderId: string;
|
|
1628
|
+
};
|
|
1629
|
+
query?: never;
|
|
1630
|
+
url: '/folders/{folderId}';
|
|
1631
|
+
};
|
|
1632
|
+
export type DeleteFolderErrors = {
|
|
1633
|
+
400: ApiBadRequestResponse;
|
|
1634
|
+
/**
|
|
1635
|
+
* Unauthorized
|
|
1636
|
+
*/
|
|
1637
|
+
401: ApiErrorResponse;
|
|
1638
|
+
404: ApiErrorResponse;
|
|
1639
|
+
/**
|
|
1640
|
+
* Rate limit or workspace quota exceeded
|
|
1641
|
+
*/
|
|
1642
|
+
429: ApiRateLimitErrorResponse;
|
|
1643
|
+
500: ApiServerErrorResponse;
|
|
1644
|
+
};
|
|
1645
|
+
export type DeleteFolderError = DeleteFolderErrors[keyof DeleteFolderErrors];
|
|
1646
|
+
export type DeleteFolderResponses = {
|
|
1647
|
+
/**
|
|
1648
|
+
* No content
|
|
1649
|
+
*/
|
|
1650
|
+
204: void;
|
|
1651
|
+
};
|
|
1652
|
+
export type DeleteFolderResponse = DeleteFolderResponses[keyof DeleteFolderResponses];
|
|
1653
|
+
export type GetFolderData = {
|
|
1654
|
+
body?: never;
|
|
1655
|
+
path: {
|
|
1656
|
+
/**
|
|
1657
|
+
* The ID of the folder to retrieve.
|
|
1658
|
+
*/
|
|
1659
|
+
folderId: string;
|
|
1660
|
+
};
|
|
1661
|
+
query?: never;
|
|
1662
|
+
url: '/folders/{folderId}';
|
|
1663
|
+
};
|
|
1664
|
+
export type GetFolderErrors = {
|
|
1665
|
+
400: ApiBadRequestResponse;
|
|
1666
|
+
/**
|
|
1667
|
+
* Unauthorized
|
|
1668
|
+
*/
|
|
1669
|
+
401: ApiErrorResponse;
|
|
1670
|
+
404: ApiErrorResponse;
|
|
1671
|
+
/**
|
|
1672
|
+
* Rate limit or workspace quota exceeded
|
|
1673
|
+
*/
|
|
1674
|
+
429: ApiRateLimitErrorResponse;
|
|
1675
|
+
/**
|
|
1676
|
+
* Internal Server Error
|
|
1677
|
+
*/
|
|
1678
|
+
500: ApiServerErrorResponse;
|
|
1679
|
+
};
|
|
1680
|
+
export type GetFolderError = GetFolderErrors[keyof GetFolderErrors];
|
|
1681
|
+
export type GetFolderResponses = {
|
|
1682
|
+
200: ApiFolder;
|
|
1683
|
+
};
|
|
1684
|
+
export type GetFolderResponse = GetFolderResponses[keyof GetFolderResponses];
|
|
1685
|
+
export type UpdateFolderData = {
|
|
1686
|
+
/**
|
|
1687
|
+
* The properties to update.
|
|
1688
|
+
*/
|
|
1689
|
+
body?: UpdateUserFolderBody;
|
|
1690
|
+
path: {
|
|
1691
|
+
/**
|
|
1692
|
+
* The ID of the folder to update.
|
|
1693
|
+
*/
|
|
1694
|
+
folderId: string;
|
|
1695
|
+
};
|
|
1696
|
+
query?: never;
|
|
1697
|
+
url: '/folders/{folderId}';
|
|
1698
|
+
};
|
|
1699
|
+
export type UpdateFolderErrors = {
|
|
1700
|
+
400: ApiBadRequestResponse;
|
|
1701
|
+
/**
|
|
1702
|
+
* Unauthorized
|
|
1703
|
+
*/
|
|
1704
|
+
401: ApiErrorResponse;
|
|
1705
|
+
404: ApiErrorResponse;
|
|
1706
|
+
/**
|
|
1707
|
+
* Validation failed
|
|
1708
|
+
*/
|
|
1709
|
+
422: ApiValidationError;
|
|
1710
|
+
/**
|
|
1711
|
+
* Rate limit or workspace quota exceeded
|
|
1712
|
+
*/
|
|
1713
|
+
429: ApiRateLimitErrorResponse;
|
|
1714
|
+
500: ApiServerErrorResponse;
|
|
1715
|
+
};
|
|
1716
|
+
export type UpdateFolderError = UpdateFolderErrors[keyof UpdateFolderErrors];
|
|
1717
|
+
export type UpdateFolderResponses = {
|
|
1718
|
+
202: unknown;
|
|
1719
|
+
};
|
|
1720
|
+
export type ListTrashData = {
|
|
1721
|
+
body?: never;
|
|
1722
|
+
path?: never;
|
|
1723
|
+
query?: never;
|
|
1724
|
+
url: '/trash';
|
|
1725
|
+
};
|
|
1726
|
+
export type ListTrashErrors = {
|
|
1727
|
+
/**
|
|
1728
|
+
* Bad Request
|
|
1729
|
+
*/
|
|
1730
|
+
400: ApiRequestErrorResponse;
|
|
1731
|
+
/**
|
|
1732
|
+
* Unauthorized
|
|
1733
|
+
*/
|
|
1734
|
+
401: ApiErrorResponse;
|
|
1735
|
+
/**
|
|
1736
|
+
* Rate limit or workspace quota exceeded
|
|
1737
|
+
*/
|
|
1738
|
+
429: ApiRateLimitErrorResponse;
|
|
1739
|
+
/**
|
|
1740
|
+
* Internal Server Error
|
|
1741
|
+
*/
|
|
1742
|
+
500: ApiServerErrorResponse;
|
|
1743
|
+
};
|
|
1744
|
+
export type ListTrashError = ListTrashErrors[keyof ListTrashErrors];
|
|
1745
|
+
export type ListTrashResponses = {
|
|
1746
|
+
/**
|
|
1747
|
+
* Ok
|
|
1748
|
+
*/
|
|
1749
|
+
200: Array<ApiTrashNote>;
|
|
1750
|
+
};
|
|
1751
|
+
export type ListTrashResponse = ListTrashResponses[keyof ListTrashResponses];
|
|
1752
|
+
export type BatchRestoreData = {
|
|
1753
|
+
body: BatchRestoreTrashBody;
|
|
1754
|
+
path?: never;
|
|
1755
|
+
query?: never;
|
|
1756
|
+
url: '/trash/batch-restore';
|
|
1757
|
+
};
|
|
1758
|
+
export type BatchRestoreErrors = {
|
|
1759
|
+
/**
|
|
1760
|
+
* Bad Request
|
|
1761
|
+
*/
|
|
1762
|
+
400: ApiRequestErrorResponse;
|
|
1763
|
+
/**
|
|
1764
|
+
* Unauthorized
|
|
1765
|
+
*/
|
|
1766
|
+
401: ApiErrorResponse;
|
|
1767
|
+
404: ApiErrorResponse;
|
|
1768
|
+
/**
|
|
1769
|
+
* Rate limit or workspace quota exceeded
|
|
1770
|
+
*/
|
|
1771
|
+
429: ApiRateLimitErrorResponse;
|
|
1772
|
+
/**
|
|
1773
|
+
* Internal Server Error
|
|
1774
|
+
*/
|
|
1775
|
+
500: ApiServerErrorResponse;
|
|
1776
|
+
};
|
|
1777
|
+
export type BatchRestoreError = BatchRestoreErrors[keyof BatchRestoreErrors];
|
|
1778
|
+
export type BatchRestoreResponses = {
|
|
1779
|
+
200: TrashBatchOperationResponse;
|
|
1780
|
+
207: TrashBatchOperationResponse;
|
|
1781
|
+
};
|
|
1782
|
+
export type BatchRestoreResponse = BatchRestoreResponses[keyof BatchRestoreResponses];
|
|
1783
|
+
export type RestoreNoteData = {
|
|
1784
|
+
body?: never;
|
|
1785
|
+
path: {
|
|
1786
|
+
/**
|
|
1787
|
+
* Encoded note id of the trashed note.
|
|
1788
|
+
*/
|
|
1789
|
+
noteId: string;
|
|
1790
|
+
};
|
|
1791
|
+
query?: never;
|
|
1792
|
+
url: '/trash/{noteId}/restore';
|
|
1793
|
+
};
|
|
1794
|
+
export type RestoreNoteErrors = {
|
|
1795
|
+
/**
|
|
1796
|
+
* Bad Request
|
|
1797
|
+
*/
|
|
1798
|
+
400: ApiRequestErrorResponse;
|
|
1799
|
+
/**
|
|
1800
|
+
* Unauthorized
|
|
1801
|
+
*/
|
|
1802
|
+
401: ApiErrorResponse;
|
|
1803
|
+
403: ApiErrorResponse;
|
|
1804
|
+
404: ApiErrorResponse;
|
|
1805
|
+
/**
|
|
1806
|
+
* Rate limit or workspace quota exceeded
|
|
1807
|
+
*/
|
|
1808
|
+
429: ApiRateLimitErrorResponse;
|
|
1809
|
+
500: ApiServerErrorResponse;
|
|
1810
|
+
};
|
|
1811
|
+
export type RestoreNoteError = RestoreNoteErrors[keyof RestoreNoteErrors];
|
|
1812
|
+
export type RestoreNoteResponses = {
|
|
1813
|
+
204: void;
|
|
1814
|
+
};
|
|
1815
|
+
export type RestoreNoteResponse = RestoreNoteResponses[keyof RestoreNoteResponses];
|
|
1816
|
+
export type ListTeamTrashData = {
|
|
1817
|
+
body?: never;
|
|
1818
|
+
path: {
|
|
1819
|
+
/**
|
|
1820
|
+
* The path identifier for the team.
|
|
1821
|
+
*/
|
|
1822
|
+
teampath: string;
|
|
1823
|
+
};
|
|
1824
|
+
query?: never;
|
|
1825
|
+
url: '/teams/{teampath}/trash';
|
|
1826
|
+
};
|
|
1827
|
+
export type ListTeamTrashErrors = {
|
|
1828
|
+
/**
|
|
1829
|
+
* Bad Request
|
|
1830
|
+
*/
|
|
1831
|
+
400: ApiRequestErrorResponse;
|
|
1832
|
+
/**
|
|
1833
|
+
* Unauthorized
|
|
1834
|
+
*/
|
|
1835
|
+
401: ApiErrorResponse;
|
|
1836
|
+
403: ApiErrorResponse;
|
|
1837
|
+
404: ApiErrorResponse;
|
|
1838
|
+
/**
|
|
1839
|
+
* Rate limit or workspace quota exceeded
|
|
1840
|
+
*/
|
|
1841
|
+
429: ApiRateLimitErrorResponse;
|
|
1842
|
+
/**
|
|
1843
|
+
* Internal Server Error
|
|
1844
|
+
*/
|
|
1845
|
+
500: ApiServerErrorResponse;
|
|
1846
|
+
};
|
|
1847
|
+
export type ListTeamTrashError = ListTeamTrashErrors[keyof ListTeamTrashErrors];
|
|
1848
|
+
export type ListTeamTrashResponses = {
|
|
1849
|
+
200: Array<ApiTrashNote>;
|
|
1850
|
+
};
|
|
1851
|
+
export type ListTeamTrashResponse = ListTeamTrashResponses[keyof ListTeamTrashResponses];
|
|
1852
|
+
export type ListTeamsData = {
|
|
1853
|
+
body?: never;
|
|
1854
|
+
path?: never;
|
|
1855
|
+
query?: never;
|
|
1856
|
+
url: '/teams';
|
|
1857
|
+
};
|
|
1858
|
+
export type ListTeamsErrors = {
|
|
1859
|
+
/**
|
|
1860
|
+
* Bad Request
|
|
1861
|
+
*/
|
|
1862
|
+
400: ApiRequestErrorResponse;
|
|
1863
|
+
/**
|
|
1864
|
+
* Unauthorized
|
|
1865
|
+
*/
|
|
1866
|
+
401: ApiErrorResponse;
|
|
1867
|
+
/**
|
|
1868
|
+
* Forbidden
|
|
1869
|
+
*/
|
|
1870
|
+
403: ApiErrorResponse;
|
|
1871
|
+
/**
|
|
1872
|
+
* Not Found
|
|
1873
|
+
*/
|
|
1874
|
+
404: ApiErrorResponse;
|
|
1875
|
+
/**
|
|
1876
|
+
* Rate limit or workspace quota exceeded
|
|
1877
|
+
*/
|
|
1878
|
+
429: ApiRateLimitErrorResponse;
|
|
1879
|
+
/**
|
|
1880
|
+
* Internal Server Error
|
|
1881
|
+
*/
|
|
1882
|
+
500: ApiServerErrorResponse;
|
|
1883
|
+
};
|
|
1884
|
+
export type ListTeamsError = ListTeamsErrors[keyof ListTeamsErrors];
|
|
1885
|
+
export type ListTeamsResponses = {
|
|
1886
|
+
/**
|
|
1887
|
+
* Ok
|
|
1888
|
+
*/
|
|
1889
|
+
200: Array<Team>;
|
|
1890
|
+
};
|
|
1891
|
+
export type ListTeamsResponse = ListTeamsResponses[keyof ListTeamsResponses];
|
|
1892
|
+
export type ListTeamNotesData = {
|
|
1893
|
+
body?: never;
|
|
1894
|
+
path: {
|
|
1895
|
+
/**
|
|
1896
|
+
* The path identifier for the team.
|
|
1897
|
+
*/
|
|
1898
|
+
teampath: string;
|
|
1899
|
+
};
|
|
1900
|
+
query?: never;
|
|
1901
|
+
url: '/teams/{teampath}/notes';
|
|
1902
|
+
};
|
|
1903
|
+
export type ListTeamNotesErrors = {
|
|
1904
|
+
/**
|
|
1905
|
+
* Bad Request
|
|
1906
|
+
*/
|
|
1907
|
+
400: ApiRequestErrorResponse;
|
|
1908
|
+
/**
|
|
1909
|
+
* Unauthorized
|
|
1910
|
+
*/
|
|
1911
|
+
401: ApiErrorResponse;
|
|
1912
|
+
/**
|
|
1913
|
+
* Forbidden
|
|
1914
|
+
*/
|
|
1915
|
+
403: ApiErrorResponse;
|
|
1916
|
+
/**
|
|
1917
|
+
* Not Found
|
|
1918
|
+
*/
|
|
1919
|
+
404: ApiErrorResponse;
|
|
1920
|
+
/**
|
|
1921
|
+
* Rate limit or workspace quota exceeded
|
|
1922
|
+
*/
|
|
1923
|
+
429: ApiRateLimitErrorResponse;
|
|
1924
|
+
/**
|
|
1925
|
+
* Internal Server Error
|
|
1926
|
+
*/
|
|
1927
|
+
500: ApiServerErrorResponse;
|
|
1928
|
+
};
|
|
1929
|
+
export type ListTeamNotesError = ListTeamNotesErrors[keyof ListTeamNotesErrors];
|
|
1930
|
+
export type ListTeamNotesResponses = {
|
|
1931
|
+
/**
|
|
1932
|
+
* Ok
|
|
1933
|
+
*/
|
|
1934
|
+
200: Array<NoteType>;
|
|
1935
|
+
};
|
|
1936
|
+
export type ListTeamNotesResponse = ListTeamNotesResponses[keyof ListTeamNotesResponses];
|
|
1937
|
+
export type CreateTeamNoteData = {
|
|
1938
|
+
/**
|
|
1939
|
+
* The note content (string) or a JSON object with note properties (title, content, permissions, etc.).
|
|
1940
|
+
*/
|
|
1941
|
+
body?: {
|
|
1942
|
+
origin?: string;
|
|
1943
|
+
parentFolderId?: string;
|
|
1944
|
+
permalink?: string;
|
|
1945
|
+
noteFeatures?: ApiNoteFeatures;
|
|
1946
|
+
suggestEditPermission?: SuggestEditPermissionType;
|
|
1947
|
+
commentPermission?: CommentPermissionType;
|
|
1948
|
+
writePermission?: NotePermissionRole;
|
|
1949
|
+
readPermission?: NotePermissionRole;
|
|
1950
|
+
content?: string;
|
|
1951
|
+
description?: string;
|
|
1952
|
+
tags?: Array<string>;
|
|
1953
|
+
title?: string;
|
|
1954
|
+
} | string;
|
|
1955
|
+
path: {
|
|
1956
|
+
/**
|
|
1957
|
+
* The path identifier for the team.
|
|
1958
|
+
*/
|
|
1959
|
+
teampath: string;
|
|
1960
|
+
};
|
|
1961
|
+
query?: never;
|
|
1962
|
+
url: '/teams/{teampath}/notes';
|
|
1963
|
+
};
|
|
1964
|
+
export type CreateTeamNoteErrors = {
|
|
1965
|
+
400: ApiBadRequestResponse;
|
|
1966
|
+
/**
|
|
1967
|
+
* Unauthorized
|
|
1968
|
+
*/
|
|
1969
|
+
401: ApiErrorResponse;
|
|
1970
|
+
403: ApiErrorResponse;
|
|
1971
|
+
404: ApiErrorResponse;
|
|
1972
|
+
409: ApiErrorResponse;
|
|
1973
|
+
/**
|
|
1974
|
+
* Validation failed
|
|
1975
|
+
*/
|
|
1976
|
+
422: ApiValidationError;
|
|
1977
|
+
/**
|
|
1978
|
+
* Rate limit or workspace quota exceeded
|
|
1979
|
+
*/
|
|
1980
|
+
429: ApiRateLimitErrorResponse;
|
|
1981
|
+
/**
|
|
1982
|
+
* Internal Server Error
|
|
1983
|
+
*/
|
|
1984
|
+
500: ApiServerErrorResponse;
|
|
1985
|
+
};
|
|
1986
|
+
export type CreateTeamNoteError = CreateTeamNoteErrors[keyof CreateTeamNoteErrors];
|
|
1987
|
+
export type CreateTeamNoteResponses = {
|
|
1988
|
+
201: SingleNote;
|
|
1989
|
+
207: CreateNoteMultiStatusResponse;
|
|
1990
|
+
};
|
|
1991
|
+
export type CreateTeamNoteResponse = CreateTeamNoteResponses[keyof CreateTeamNoteResponses];
|
|
1992
|
+
export type DeleteTeamNoteData = {
|
|
1993
|
+
body?: never;
|
|
1994
|
+
path: {
|
|
1995
|
+
/**
|
|
1996
|
+
* The path identifier for the team.
|
|
1997
|
+
*/
|
|
1998
|
+
teampath: string;
|
|
1999
|
+
/**
|
|
2000
|
+
* The ID of the note to delete.
|
|
2001
|
+
*/
|
|
2002
|
+
noteId: string;
|
|
2003
|
+
};
|
|
2004
|
+
query?: never;
|
|
2005
|
+
url: '/teams/{teampath}/notes/{noteId}';
|
|
2006
|
+
};
|
|
2007
|
+
export type DeleteTeamNoteErrors = {
|
|
2008
|
+
400: ApiBadRequestResponse;
|
|
2009
|
+
/**
|
|
2010
|
+
* Unauthorized
|
|
2011
|
+
*/
|
|
2012
|
+
401: ApiErrorResponse;
|
|
2013
|
+
403: ApiErrorResponse;
|
|
2014
|
+
404: ApiErrorResponse;
|
|
2015
|
+
/**
|
|
2016
|
+
* Rate limit or workspace quota exceeded
|
|
2017
|
+
*/
|
|
2018
|
+
429: ApiRateLimitErrorResponse;
|
|
2019
|
+
500: ApiServerErrorResponse;
|
|
2020
|
+
};
|
|
2021
|
+
export type DeleteTeamNoteError = DeleteTeamNoteErrors[keyof DeleteTeamNoteErrors];
|
|
2022
|
+
export type DeleteTeamNoteResponses = {
|
|
2023
|
+
/**
|
|
2024
|
+
* No content
|
|
2025
|
+
*/
|
|
2026
|
+
204: void;
|
|
2027
|
+
};
|
|
2028
|
+
export type DeleteTeamNoteResponse = DeleteTeamNoteResponses[keyof DeleteTeamNoteResponses];
|
|
2029
|
+
export type GetTeamNoteData = {
|
|
2030
|
+
body?: never;
|
|
2031
|
+
headers?: {
|
|
2032
|
+
/**
|
|
2033
|
+
* Return 304 when this ETag matches the current note.
|
|
2034
|
+
*/
|
|
2035
|
+
'If-None-Match'?: string;
|
|
2036
|
+
};
|
|
2037
|
+
path: {
|
|
2038
|
+
/**
|
|
2039
|
+
* The path identifier for the team.
|
|
2040
|
+
*/
|
|
2041
|
+
teampath: string;
|
|
2042
|
+
/**
|
|
2043
|
+
* The ID of the note to retrieve.
|
|
2044
|
+
*/
|
|
2045
|
+
noteId: string;
|
|
2046
|
+
};
|
|
2047
|
+
query?: never;
|
|
2048
|
+
url: '/teams/{teampath}/notes/{noteId}';
|
|
2049
|
+
};
|
|
2050
|
+
export type GetTeamNoteErrors = {
|
|
2051
|
+
/**
|
|
2052
|
+
* Bad Request
|
|
2053
|
+
*/
|
|
2054
|
+
400: ApiRequestErrorResponse;
|
|
2055
|
+
/**
|
|
2056
|
+
* Unauthorized
|
|
2057
|
+
*/
|
|
2058
|
+
401: ApiErrorResponse;
|
|
2059
|
+
403: ApiErrorResponse;
|
|
2060
|
+
404: ApiErrorResponse;
|
|
2061
|
+
/**
|
|
2062
|
+
* Rate limit or workspace quota exceeded
|
|
2063
|
+
*/
|
|
2064
|
+
429: ApiRateLimitErrorResponse;
|
|
2065
|
+
/**
|
|
2066
|
+
* Internal Server Error
|
|
2067
|
+
*/
|
|
2068
|
+
500: ApiServerErrorResponse;
|
|
2069
|
+
};
|
|
2070
|
+
export type GetTeamNoteError = GetTeamNoteErrors[keyof GetTeamNoteErrors];
|
|
2071
|
+
export type GetTeamNoteResponses = {
|
|
2072
|
+
200: SingleNote;
|
|
2073
|
+
};
|
|
2074
|
+
export type GetTeamNoteResponse = GetTeamNoteResponses[keyof GetTeamNoteResponses];
|
|
2075
|
+
export type UpdateTeamNoteData = {
|
|
2076
|
+
/**
|
|
2077
|
+
* The properties to update on the team note. Omit description to leave it unchanged, use a string (including an empty string) to set it, or null to remove its metadata.
|
|
2078
|
+
*/
|
|
2079
|
+
body: {
|
|
2080
|
+
parentFolderId?: string | null;
|
|
2081
|
+
permalink?: string;
|
|
2082
|
+
writePermission?: NotePermissionRole;
|
|
2083
|
+
readPermission?: NotePermissionRole;
|
|
2084
|
+
content?: string;
|
|
2085
|
+
description?: string | null;
|
|
2086
|
+
tags?: Array<string>;
|
|
2087
|
+
title?: string;
|
|
2088
|
+
};
|
|
2089
|
+
path: {
|
|
2090
|
+
/**
|
|
2091
|
+
* The path identifier for the team.
|
|
2092
|
+
*/
|
|
2093
|
+
teampath: string;
|
|
2094
|
+
/**
|
|
2095
|
+
* The ID of the note to update.
|
|
2096
|
+
*/
|
|
2097
|
+
noteId: string;
|
|
2098
|
+
};
|
|
2099
|
+
query?: never;
|
|
2100
|
+
url: '/teams/{teampath}/notes/{noteId}';
|
|
2101
|
+
};
|
|
2102
|
+
export type UpdateTeamNoteErrors = {
|
|
2103
|
+
400: ApiBadRequestResponse;
|
|
2104
|
+
/**
|
|
2105
|
+
* Unauthorized
|
|
2106
|
+
*/
|
|
2107
|
+
401: ApiErrorResponse;
|
|
2108
|
+
403: ApiErrorResponse;
|
|
2109
|
+
404: ApiErrorResponse;
|
|
2110
|
+
409: ApiErrorResponse;
|
|
2111
|
+
/**
|
|
2112
|
+
* Validation failed
|
|
2113
|
+
*/
|
|
2114
|
+
422: ApiValidationError;
|
|
2115
|
+
/**
|
|
2116
|
+
* Rate limit or workspace quota exceeded
|
|
2117
|
+
*/
|
|
2118
|
+
429: ApiRateLimitErrorResponse;
|
|
2119
|
+
500: ApiServerErrorResponse;
|
|
2120
|
+
};
|
|
2121
|
+
export type UpdateTeamNoteError = UpdateTeamNoteErrors[keyof UpdateTeamNoteErrors];
|
|
2122
|
+
export type UpdateTeamNoteResponses = {
|
|
2123
|
+
202: unknown;
|
|
2124
|
+
};
|
|
2125
|
+
export type ListTeamFoldersData = {
|
|
2126
|
+
body?: never;
|
|
2127
|
+
path: {
|
|
2128
|
+
/**
|
|
2129
|
+
* The path identifier for the team.
|
|
2130
|
+
*/
|
|
2131
|
+
teampath: string;
|
|
2132
|
+
};
|
|
2133
|
+
query?: never;
|
|
2134
|
+
url: '/teams/{teampath}/folders';
|
|
2135
|
+
};
|
|
2136
|
+
export type ListTeamFoldersErrors = {
|
|
2137
|
+
/**
|
|
2138
|
+
* Bad Request
|
|
2139
|
+
*/
|
|
2140
|
+
400: ApiRequestErrorResponse;
|
|
2141
|
+
/**
|
|
2142
|
+
* Unauthorized
|
|
2143
|
+
*/
|
|
2144
|
+
401: ApiErrorResponse;
|
|
2145
|
+
/**
|
|
2146
|
+
* Forbidden
|
|
2147
|
+
*/
|
|
2148
|
+
403: ApiErrorResponse;
|
|
2149
|
+
/**
|
|
2150
|
+
* Not Found
|
|
2151
|
+
*/
|
|
2152
|
+
404: ApiErrorResponse;
|
|
2153
|
+
/**
|
|
2154
|
+
* Rate limit or workspace quota exceeded
|
|
2155
|
+
*/
|
|
2156
|
+
429: ApiRateLimitErrorResponse;
|
|
2157
|
+
/**
|
|
2158
|
+
* Internal Server Error
|
|
2159
|
+
*/
|
|
2160
|
+
500: ApiServerErrorResponse;
|
|
2161
|
+
};
|
|
2162
|
+
export type ListTeamFoldersError = ListTeamFoldersErrors[keyof ListTeamFoldersErrors];
|
|
2163
|
+
export type ListTeamFoldersResponses = {
|
|
2164
|
+
/**
|
|
2165
|
+
* Ok
|
|
2166
|
+
*/
|
|
2167
|
+
200: Array<ApiFolder>;
|
|
2168
|
+
};
|
|
2169
|
+
export type ListTeamFoldersResponse = ListTeamFoldersResponses[keyof ListTeamFoldersResponses];
|
|
2170
|
+
export type CreateTeamFolderData = {
|
|
2171
|
+
/**
|
|
2172
|
+
* The folder properties.
|
|
2173
|
+
*/
|
|
2174
|
+
body?: CreateTeamFolderBody;
|
|
2175
|
+
path: {
|
|
2176
|
+
/**
|
|
2177
|
+
* The path identifier for the team.
|
|
2178
|
+
*/
|
|
2179
|
+
teampath: string;
|
|
2180
|
+
};
|
|
2181
|
+
query?: never;
|
|
2182
|
+
url: '/teams/{teampath}/folders';
|
|
2183
|
+
};
|
|
2184
|
+
export type CreateTeamFolderErrors = {
|
|
2185
|
+
400: ApiBadRequestResponse;
|
|
2186
|
+
/**
|
|
2187
|
+
* Unauthorized
|
|
2188
|
+
*/
|
|
2189
|
+
401: ApiErrorResponse;
|
|
2190
|
+
/**
|
|
2191
|
+
* Forbidden
|
|
2192
|
+
*/
|
|
2193
|
+
403: ApiErrorResponse;
|
|
2194
|
+
404: ApiErrorResponse;
|
|
2195
|
+
/**
|
|
2196
|
+
* Validation failed
|
|
2197
|
+
*/
|
|
2198
|
+
422: ApiValidationError;
|
|
2199
|
+
/**
|
|
2200
|
+
* Rate limit or workspace quota exceeded
|
|
2201
|
+
*/
|
|
2202
|
+
429: ApiRateLimitErrorResponse;
|
|
2203
|
+
500: ApiServerErrorResponse;
|
|
2204
|
+
};
|
|
2205
|
+
export type CreateTeamFolderError = CreateTeamFolderErrors[keyof CreateTeamFolderErrors];
|
|
2206
|
+
export type CreateTeamFolderResponses = {
|
|
2207
|
+
201: ApiFolder;
|
|
2208
|
+
};
|
|
2209
|
+
export type CreateTeamFolderResponse = CreateTeamFolderResponses[keyof CreateTeamFolderResponses];
|
|
2210
|
+
export type GetTeamFolderOrderData = {
|
|
2211
|
+
body?: never;
|
|
2212
|
+
path: {
|
|
2213
|
+
teampath: string;
|
|
2214
|
+
};
|
|
2215
|
+
query?: never;
|
|
2216
|
+
url: '/teams/{teampath}/folders/folder-order';
|
|
2217
|
+
};
|
|
2218
|
+
export type GetTeamFolderOrderErrors = {
|
|
2219
|
+
/**
|
|
2220
|
+
* Bad Request
|
|
2221
|
+
*/
|
|
2222
|
+
400: ApiRequestErrorResponse;
|
|
2223
|
+
/**
|
|
2224
|
+
* Unauthorized
|
|
2225
|
+
*/
|
|
2226
|
+
401: ApiErrorResponse;
|
|
2227
|
+
/**
|
|
2228
|
+
* Forbidden
|
|
2229
|
+
*/
|
|
2230
|
+
403: ApiErrorResponse;
|
|
2231
|
+
/**
|
|
2232
|
+
* Not Found
|
|
2233
|
+
*/
|
|
2234
|
+
404: ApiErrorResponse;
|
|
2235
|
+
/**
|
|
2236
|
+
* Rate limit or workspace quota exceeded
|
|
2237
|
+
*/
|
|
2238
|
+
429: ApiRateLimitErrorResponse;
|
|
2239
|
+
/**
|
|
2240
|
+
* Internal Server Error
|
|
2241
|
+
*/
|
|
2242
|
+
500: ApiServerErrorResponse;
|
|
2243
|
+
};
|
|
2244
|
+
export type GetTeamFolderOrderError = GetTeamFolderOrderErrors[keyof GetTeamFolderOrderErrors];
|
|
2245
|
+
export type GetTeamFolderOrderResponses = {
|
|
2246
|
+
/**
|
|
2247
|
+
* Ok
|
|
2248
|
+
*/
|
|
2249
|
+
200: ApiFolderOrder;
|
|
2250
|
+
};
|
|
2251
|
+
export type GetTeamFolderOrderResponse = GetTeamFolderOrderResponses[keyof GetTeamFolderOrderResponses];
|
|
2252
|
+
export type UpdateTeamFolderOrderData = {
|
|
2253
|
+
body?: UpdateFolderOrderBody;
|
|
2254
|
+
path: {
|
|
2255
|
+
teampath: string;
|
|
2256
|
+
};
|
|
2257
|
+
query?: never;
|
|
2258
|
+
url: '/teams/{teampath}/folders/folder-order';
|
|
2259
|
+
};
|
|
2260
|
+
export type UpdateTeamFolderOrderErrors = {
|
|
2261
|
+
400: ApiBadRequestResponse;
|
|
2262
|
+
/**
|
|
2263
|
+
* Unauthorized
|
|
2264
|
+
*/
|
|
2265
|
+
401: ApiErrorResponse;
|
|
2266
|
+
/**
|
|
2267
|
+
* Forbidden
|
|
2268
|
+
*/
|
|
2269
|
+
403: ApiErrorResponse;
|
|
2270
|
+
/**
|
|
2271
|
+
* Not Found
|
|
2272
|
+
*/
|
|
2273
|
+
404: ApiErrorResponse;
|
|
2274
|
+
/**
|
|
2275
|
+
* Validation failed
|
|
2276
|
+
*/
|
|
2277
|
+
422: ApiValidationError;
|
|
2278
|
+
/**
|
|
2279
|
+
* Rate limit or workspace quota exceeded
|
|
2280
|
+
*/
|
|
2281
|
+
429: ApiRateLimitErrorResponse;
|
|
2282
|
+
/**
|
|
2283
|
+
* Internal Server Error
|
|
2284
|
+
*/
|
|
2285
|
+
500: ApiServerErrorResponse;
|
|
2286
|
+
};
|
|
2287
|
+
export type UpdateTeamFolderOrderError = UpdateTeamFolderOrderErrors[keyof UpdateTeamFolderOrderErrors];
|
|
2288
|
+
export type UpdateTeamFolderOrderResponses = {
|
|
2289
|
+
204: void;
|
|
2290
|
+
};
|
|
2291
|
+
export type UpdateTeamFolderOrderResponse = UpdateTeamFolderOrderResponses[keyof UpdateTeamFolderOrderResponses];
|
|
2292
|
+
export type DeleteTeamFolderData = {
|
|
2293
|
+
body?: never;
|
|
2294
|
+
path: {
|
|
2295
|
+
/**
|
|
2296
|
+
* The path identifier for the team.
|
|
2297
|
+
*/
|
|
2298
|
+
teampath: string;
|
|
2299
|
+
/**
|
|
2300
|
+
* The ID of the folder to delete.
|
|
2301
|
+
*/
|
|
2302
|
+
folderId: string;
|
|
2303
|
+
};
|
|
2304
|
+
query?: never;
|
|
2305
|
+
url: '/teams/{teampath}/folders/{folderId}';
|
|
2306
|
+
};
|
|
2307
|
+
export type DeleteTeamFolderErrors = {
|
|
2308
|
+
400: ApiBadRequestResponse;
|
|
2309
|
+
/**
|
|
2310
|
+
* Unauthorized
|
|
2311
|
+
*/
|
|
2312
|
+
401: ApiErrorResponse;
|
|
2313
|
+
/**
|
|
2314
|
+
* Forbidden
|
|
2315
|
+
*/
|
|
2316
|
+
403: ApiErrorResponse;
|
|
2317
|
+
404: ApiErrorResponse;
|
|
2318
|
+
/**
|
|
2319
|
+
* Rate limit or workspace quota exceeded
|
|
2320
|
+
*/
|
|
2321
|
+
429: ApiRateLimitErrorResponse;
|
|
2322
|
+
500: ApiServerErrorResponse;
|
|
2323
|
+
};
|
|
2324
|
+
export type DeleteTeamFolderError = DeleteTeamFolderErrors[keyof DeleteTeamFolderErrors];
|
|
2325
|
+
export type DeleteTeamFolderResponses = {
|
|
2326
|
+
/**
|
|
2327
|
+
* No content
|
|
2328
|
+
*/
|
|
2329
|
+
204: void;
|
|
2330
|
+
};
|
|
2331
|
+
export type DeleteTeamFolderResponse = DeleteTeamFolderResponses[keyof DeleteTeamFolderResponses];
|
|
2332
|
+
export type GetTeamFolderData = {
|
|
2333
|
+
body?: never;
|
|
2334
|
+
path: {
|
|
2335
|
+
/**
|
|
2336
|
+
* The path identifier for the team.
|
|
2337
|
+
*/
|
|
2338
|
+
teampath: string;
|
|
2339
|
+
/**
|
|
2340
|
+
* The ID of the folder to retrieve.
|
|
2341
|
+
*/
|
|
2342
|
+
folderId: string;
|
|
2343
|
+
};
|
|
2344
|
+
query?: never;
|
|
2345
|
+
url: '/teams/{teampath}/folders/{folderId}';
|
|
2346
|
+
};
|
|
2347
|
+
export type GetTeamFolderErrors = {
|
|
2348
|
+
400: ApiBadRequestResponse;
|
|
2349
|
+
/**
|
|
2350
|
+
* Unauthorized
|
|
2351
|
+
*/
|
|
2352
|
+
401: ApiErrorResponse;
|
|
2353
|
+
/**
|
|
2354
|
+
* Forbidden
|
|
2355
|
+
*/
|
|
2356
|
+
403: ApiErrorResponse;
|
|
2357
|
+
404: ApiErrorResponse;
|
|
2358
|
+
/**
|
|
2359
|
+
* Rate limit or workspace quota exceeded
|
|
2360
|
+
*/
|
|
2361
|
+
429: ApiRateLimitErrorResponse;
|
|
2362
|
+
/**
|
|
2363
|
+
* Internal Server Error
|
|
2364
|
+
*/
|
|
2365
|
+
500: ApiServerErrorResponse;
|
|
2366
|
+
};
|
|
2367
|
+
export type GetTeamFolderError = GetTeamFolderErrors[keyof GetTeamFolderErrors];
|
|
2368
|
+
export type GetTeamFolderResponses = {
|
|
2369
|
+
200: ApiFolder;
|
|
2370
|
+
};
|
|
2371
|
+
export type GetTeamFolderResponse = GetTeamFolderResponses[keyof GetTeamFolderResponses];
|
|
2372
|
+
export type UpdateTeamFolderData = {
|
|
2373
|
+
/**
|
|
2374
|
+
* The properties to update.
|
|
2375
|
+
*/
|
|
2376
|
+
body?: UpdateTeamFolderBody;
|
|
2377
|
+
path: {
|
|
2378
|
+
/**
|
|
2379
|
+
* The path identifier for the team.
|
|
2380
|
+
*/
|
|
2381
|
+
teampath: string;
|
|
2382
|
+
/**
|
|
2383
|
+
* The ID of the folder to update.
|
|
2384
|
+
*/
|
|
2385
|
+
folderId: string;
|
|
2386
|
+
};
|
|
2387
|
+
query?: never;
|
|
2388
|
+
url: '/teams/{teampath}/folders/{folderId}';
|
|
2389
|
+
};
|
|
2390
|
+
export type UpdateTeamFolderErrors = {
|
|
2391
|
+
400: ApiBadRequestResponse;
|
|
2392
|
+
/**
|
|
2393
|
+
* Unauthorized
|
|
2394
|
+
*/
|
|
2395
|
+
401: ApiErrorResponse;
|
|
2396
|
+
/**
|
|
2397
|
+
* Forbidden
|
|
2398
|
+
*/
|
|
2399
|
+
403: ApiErrorResponse;
|
|
2400
|
+
404: ApiErrorResponse;
|
|
2401
|
+
/**
|
|
2402
|
+
* Validation failed
|
|
2403
|
+
*/
|
|
2404
|
+
422: ApiValidationError;
|
|
2405
|
+
/**
|
|
2406
|
+
* Rate limit or workspace quota exceeded
|
|
2407
|
+
*/
|
|
2408
|
+
429: ApiRateLimitErrorResponse;
|
|
2409
|
+
500: ApiServerErrorResponse;
|
|
2410
|
+
};
|
|
2411
|
+
export type UpdateTeamFolderError = UpdateTeamFolderErrors[keyof UpdateTeamFolderErrors];
|
|
2412
|
+
export type UpdateTeamFolderResponses = {
|
|
2413
|
+
202: unknown;
|
|
2414
|
+
};
|
|
2415
|
+
export type ListVersionsData = {
|
|
2416
|
+
body?: never;
|
|
2417
|
+
path: {
|
|
2418
|
+
noteId: string;
|
|
2419
|
+
};
|
|
2420
|
+
query?: {
|
|
2421
|
+
named_only?: boolean;
|
|
2422
|
+
q?: string;
|
|
2423
|
+
created_by?: string;
|
|
2424
|
+
/**
|
|
2425
|
+
* Return versions created at or after this ISO-8601 datetime.
|
|
2426
|
+
*/
|
|
2427
|
+
created_after?: string;
|
|
2428
|
+
/**
|
|
2429
|
+
* Return versions created at or before this ISO-8601 datetime.
|
|
2430
|
+
*/
|
|
2431
|
+
created_before?: string;
|
|
2432
|
+
page?: number;
|
|
2433
|
+
limit?: number;
|
|
2434
|
+
};
|
|
2435
|
+
url: '/notes/{noteId}/versions';
|
|
2436
|
+
};
|
|
2437
|
+
export type ListVersionsErrors = {
|
|
2438
|
+
/**
|
|
2439
|
+
* Invalid request
|
|
2440
|
+
*/
|
|
2441
|
+
400: ApiError | ApiRequestErrorResponse;
|
|
2442
|
+
/**
|
|
2443
|
+
* Unauthorized
|
|
2444
|
+
*/
|
|
2445
|
+
401: ApiErrorResponse;
|
|
2446
|
+
/**
|
|
2447
|
+
* Forbidden
|
|
2448
|
+
*/
|
|
2449
|
+
403: ApiError;
|
|
2450
|
+
/**
|
|
2451
|
+
* Not found
|
|
2452
|
+
*/
|
|
2453
|
+
404: ApiError;
|
|
2454
|
+
/**
|
|
2455
|
+
* Rate limit or workspace quota exceeded
|
|
2456
|
+
*/
|
|
2457
|
+
429: ApiRateLimitErrorResponse;
|
|
2458
|
+
/**
|
|
2459
|
+
* Internal Server Error
|
|
2460
|
+
*/
|
|
2461
|
+
500: ApiServerErrorResponse;
|
|
2462
|
+
};
|
|
2463
|
+
export type ListVersionsError = ListVersionsErrors[keyof ListVersionsErrors];
|
|
2464
|
+
export type ListVersionsResponses = {
|
|
2465
|
+
/**
|
|
2466
|
+
* Ok
|
|
2467
|
+
*/
|
|
2468
|
+
200: GetNoteVersions;
|
|
2469
|
+
};
|
|
2470
|
+
export type ListVersionsResponse = ListVersionsResponses[keyof ListVersionsResponses];
|
|
2471
|
+
export type UpdateVersionData = {
|
|
2472
|
+
body: UpdateNoteVersionBody;
|
|
2473
|
+
path: {
|
|
2474
|
+
noteId: string;
|
|
2475
|
+
};
|
|
2476
|
+
query?: never;
|
|
2477
|
+
url: '/notes/{noteId}/versions';
|
|
2478
|
+
};
|
|
2479
|
+
export type UpdateVersionErrors = {
|
|
2480
|
+
/**
|
|
2481
|
+
* Invalid request
|
|
2482
|
+
*/
|
|
2483
|
+
400: ApiError | ApiRequestErrorResponse;
|
|
2484
|
+
/**
|
|
2485
|
+
* Unauthorized
|
|
2486
|
+
*/
|
|
2487
|
+
401: ApiErrorResponse;
|
|
2488
|
+
/**
|
|
2489
|
+
* Forbidden
|
|
2490
|
+
*/
|
|
2491
|
+
403: ApiError;
|
|
2492
|
+
/**
|
|
2493
|
+
* Not found
|
|
2494
|
+
*/
|
|
2495
|
+
404: ApiError;
|
|
2496
|
+
/**
|
|
2497
|
+
* Version is not named
|
|
2498
|
+
*/
|
|
2499
|
+
422: VersionNotNamedError;
|
|
2500
|
+
/**
|
|
2501
|
+
* Rate limit or workspace quota exceeded
|
|
2502
|
+
*/
|
|
2503
|
+
429: ApiRateLimitErrorResponse;
|
|
2504
|
+
/**
|
|
2505
|
+
* Internal Server Error
|
|
2506
|
+
*/
|
|
2507
|
+
500: ApiServerErrorResponse;
|
|
2508
|
+
};
|
|
2509
|
+
export type UpdateVersionError = UpdateVersionErrors[keyof UpdateVersionErrors];
|
|
2510
|
+
export type UpdateVersionResponses = {
|
|
2511
|
+
/**
|
|
2512
|
+
* Ok
|
|
2513
|
+
*/
|
|
2514
|
+
200: NoteVersionMetadata;
|
|
2515
|
+
};
|
|
2516
|
+
export type UpdateVersionResponse = UpdateVersionResponses[keyof UpdateVersionResponses];
|
|
2517
|
+
export type CreateVersionData = {
|
|
2518
|
+
body: CreateNoteVersionBody;
|
|
2519
|
+
path: {
|
|
2520
|
+
noteId: string;
|
|
2521
|
+
};
|
|
2522
|
+
query?: never;
|
|
2523
|
+
url: '/notes/{noteId}/versions';
|
|
2524
|
+
};
|
|
2525
|
+
export type CreateVersionErrors = {
|
|
2526
|
+
/**
|
|
2527
|
+
* Invalid request
|
|
2528
|
+
*/
|
|
2529
|
+
400: ApiError | ApiRequestErrorResponse;
|
|
2530
|
+
/**
|
|
2531
|
+
* Unauthorized
|
|
2532
|
+
*/
|
|
2533
|
+
401: ApiErrorResponse;
|
|
2534
|
+
/**
|
|
2535
|
+
* Forbidden
|
|
2536
|
+
*/
|
|
2537
|
+
403: ApiError;
|
|
2538
|
+
/**
|
|
2539
|
+
* Not found
|
|
2540
|
+
*/
|
|
2541
|
+
404: ApiError;
|
|
2542
|
+
/**
|
|
2543
|
+
* No content change or version already named
|
|
2544
|
+
*/
|
|
2545
|
+
409: CreateNoteVersionConflictError;
|
|
2546
|
+
/**
|
|
2547
|
+
* Rate limit or workspace quota exceeded
|
|
2548
|
+
*/
|
|
2549
|
+
429: ApiRateLimitErrorResponse;
|
|
2550
|
+
/**
|
|
2551
|
+
* Internal Server Error
|
|
2552
|
+
*/
|
|
2553
|
+
500: ApiServerErrorResponse;
|
|
2554
|
+
};
|
|
2555
|
+
export type CreateVersionError = CreateVersionErrors[keyof CreateVersionErrors];
|
|
2556
|
+
export type CreateVersionResponses = {
|
|
2557
|
+
/**
|
|
2558
|
+
* Created
|
|
2559
|
+
*/
|
|
2560
|
+
201: NoteVersionMetadata;
|
|
2561
|
+
};
|
|
2562
|
+
export type CreateVersionResponse = CreateVersionResponses[keyof CreateVersionResponses];
|
|
2563
|
+
export type CompareVersionsData = {
|
|
2564
|
+
body?: never;
|
|
2565
|
+
path: {
|
|
2566
|
+
noteId: string;
|
|
2567
|
+
};
|
|
2568
|
+
query: {
|
|
2569
|
+
/**
|
|
2570
|
+
* Required comparison source. Use note_content or version:{id}.
|
|
2571
|
+
*/
|
|
2572
|
+
base: string;
|
|
2573
|
+
/**
|
|
2574
|
+
* Required comparison target. Use note_content or version:{id}.
|
|
2575
|
+
*/
|
|
2576
|
+
target: string;
|
|
2577
|
+
};
|
|
2578
|
+
url: '/notes/{noteId}/versions/compare';
|
|
2579
|
+
};
|
|
2580
|
+
export type CompareVersionsErrors = {
|
|
2581
|
+
/**
|
|
2582
|
+
* Invalid request
|
|
2583
|
+
*/
|
|
2584
|
+
400: ApiError | ApiRequestErrorResponse;
|
|
2585
|
+
/**
|
|
2586
|
+
* Unauthorized
|
|
2587
|
+
*/
|
|
2588
|
+
401: ApiErrorResponse;
|
|
2589
|
+
/**
|
|
2590
|
+
* Forbidden
|
|
2591
|
+
*/
|
|
2592
|
+
403: ApiError;
|
|
2593
|
+
/**
|
|
2594
|
+
* Not found
|
|
2595
|
+
*/
|
|
2596
|
+
404: ApiError;
|
|
2597
|
+
/**
|
|
2598
|
+
* Validation failed or version content unavailable
|
|
2599
|
+
*/
|
|
2600
|
+
422: ApiError | ApiValidationError;
|
|
2601
|
+
/**
|
|
2602
|
+
* Rate limit or workspace quota exceeded
|
|
2603
|
+
*/
|
|
2604
|
+
429: ApiRateLimitErrorResponse;
|
|
2605
|
+
/**
|
|
2606
|
+
* Internal Server Error
|
|
2607
|
+
*/
|
|
2608
|
+
500: ApiServerErrorResponse;
|
|
2609
|
+
};
|
|
2610
|
+
export type CompareVersionsError = CompareVersionsErrors[keyof CompareVersionsErrors];
|
|
2611
|
+
export type CompareVersionsResponses = {
|
|
2612
|
+
/**
|
|
2613
|
+
* Ok
|
|
2614
|
+
*/
|
|
2615
|
+
200: CompareNoteVersions;
|
|
2616
|
+
};
|
|
2617
|
+
export type CompareVersionsResponse = CompareVersionsResponses[keyof CompareVersionsResponses];
|
|
2618
|
+
export type GetVersionData = {
|
|
2619
|
+
body?: never;
|
|
2620
|
+
path: {
|
|
2621
|
+
noteId: string;
|
|
2622
|
+
versionId: string;
|
|
2623
|
+
};
|
|
2624
|
+
query?: never;
|
|
2625
|
+
url: '/notes/{noteId}/versions/{versionId}';
|
|
2626
|
+
};
|
|
2627
|
+
export type GetVersionErrors = {
|
|
2628
|
+
/**
|
|
2629
|
+
* Bad Request
|
|
2630
|
+
*/
|
|
2631
|
+
400: ApiRequestErrorResponse;
|
|
2632
|
+
/**
|
|
2633
|
+
* Unauthorized
|
|
2634
|
+
*/
|
|
2635
|
+
401: ApiErrorResponse;
|
|
2636
|
+
/**
|
|
2637
|
+
* Forbidden
|
|
2638
|
+
*/
|
|
2639
|
+
403: ApiError;
|
|
2640
|
+
/**
|
|
2641
|
+
* Not found
|
|
2642
|
+
*/
|
|
2643
|
+
404: ApiError;
|
|
2644
|
+
/**
|
|
2645
|
+
* Rate limit or workspace quota exceeded
|
|
2646
|
+
*/
|
|
2647
|
+
429: ApiRateLimitErrorResponse;
|
|
2648
|
+
/**
|
|
2649
|
+
* Internal Server Error
|
|
2650
|
+
*/
|
|
2651
|
+
500: ApiServerErrorResponse;
|
|
2652
|
+
};
|
|
2653
|
+
export type GetVersionError = GetVersionErrors[keyof GetVersionErrors];
|
|
2654
|
+
export type GetVersionResponses = {
|
|
2655
|
+
/**
|
|
2656
|
+
* Ok
|
|
2657
|
+
*/
|
|
2658
|
+
200: NoteVersion;
|
|
2659
|
+
};
|
|
2660
|
+
export type GetVersionResponse = GetVersionResponses[keyof GetVersionResponses];
|
|
2661
|
+
export type UploadNoteImageData = {
|
|
2662
|
+
body: {
|
|
2663
|
+
image: Blob | File;
|
|
2664
|
+
};
|
|
2665
|
+
path: {
|
|
2666
|
+
noteId: string;
|
|
2667
|
+
};
|
|
2668
|
+
query?: never;
|
|
2669
|
+
url: '/notes/{noteId}/images';
|
|
2670
|
+
};
|
|
2671
|
+
export type UploadNoteImageErrors = {
|
|
2672
|
+
/**
|
|
2673
|
+
* Bad Request
|
|
2674
|
+
*/
|
|
2675
|
+
400: ApiRequestErrorResponse;
|
|
2676
|
+
/**
|
|
2677
|
+
* Unauthorized
|
|
2678
|
+
*/
|
|
2679
|
+
401: ApiErrorResponse;
|
|
2680
|
+
/**
|
|
2681
|
+
* Forbidden
|
|
2682
|
+
*/
|
|
2683
|
+
403: ApiErrorResponse | ApiRequestErrorResponse;
|
|
2684
|
+
/**
|
|
2685
|
+
* Payload Too Large
|
|
2686
|
+
*/
|
|
2687
|
+
413: ApiRequestErrorResponse;
|
|
2688
|
+
/**
|
|
2689
|
+
* Unsupported Media Type
|
|
2690
|
+
*/
|
|
2691
|
+
415: ApiRequestErrorResponse;
|
|
2692
|
+
422: ApiRequestErrorResponse;
|
|
2693
|
+
/**
|
|
2694
|
+
* Too Many Requests
|
|
2695
|
+
*/
|
|
2696
|
+
429: ApiRequestErrorResponse | ApiRateLimitErrorResponse;
|
|
2697
|
+
/**
|
|
2698
|
+
* Internal Server Error
|
|
2699
|
+
*/
|
|
2700
|
+
500: ApiServerErrorResponse;
|
|
2701
|
+
};
|
|
2702
|
+
export type UploadNoteImageError = UploadNoteImageErrors[keyof UploadNoteImageErrors];
|
|
2703
|
+
export type UploadNoteImageResponses = {
|
|
2704
|
+
201: NoteImageUploadResponse;
|
|
2705
|
+
};
|
|
2706
|
+
export type UploadNoteImageResponse = UploadNoteImageResponses[keyof UploadNoteImageResponses];
|
|
2707
|
+
export type ListNoteCommentsData = {
|
|
2708
|
+
body?: never;
|
|
2709
|
+
path: {
|
|
2710
|
+
noteId: string;
|
|
2711
|
+
};
|
|
2712
|
+
query?: {
|
|
2713
|
+
page?: ApiCommentPage;
|
|
2714
|
+
limit?: ApiCommentLimit;
|
|
2715
|
+
sort?: 'asc' | 'desc';
|
|
2716
|
+
threadId?: ApiCommentThreadId;
|
|
2717
|
+
commentStatus?: ApiCommentStatus;
|
|
2718
|
+
threadStatus?: ApiCommentStatus;
|
|
2719
|
+
isThreadHead?: true;
|
|
2720
|
+
};
|
|
2721
|
+
url: '/notes/{noteId}/comments';
|
|
2722
|
+
};
|
|
2723
|
+
export type ListNoteCommentsErrors = {
|
|
2724
|
+
/**
|
|
2725
|
+
* Invalid request
|
|
2726
|
+
*/
|
|
2727
|
+
400: ApiCommentError | ApiRequestErrorResponse;
|
|
2728
|
+
/**
|
|
2729
|
+
* Unauthorized
|
|
2730
|
+
*/
|
|
2731
|
+
401: ApiErrorResponse;
|
|
2732
|
+
/**
|
|
2733
|
+
* Comments not readable
|
|
2734
|
+
*/
|
|
2735
|
+
403: ApiCommentError;
|
|
2736
|
+
/**
|
|
2737
|
+
* Note not found
|
|
2738
|
+
*/
|
|
2739
|
+
404: ApiCommentError;
|
|
2740
|
+
/**
|
|
2741
|
+
* Rate limit or workspace quota exceeded
|
|
2742
|
+
*/
|
|
2743
|
+
429: ApiRateLimitErrorResponse;
|
|
2744
|
+
/**
|
|
2745
|
+
* Internal Server Error
|
|
2746
|
+
*/
|
|
2747
|
+
500: ApiServerErrorResponse;
|
|
2748
|
+
};
|
|
2749
|
+
export type ListNoteCommentsError = ListNoteCommentsErrors[keyof ListNoteCommentsErrors];
|
|
2750
|
+
export type ListNoteCommentsResponses = {
|
|
2751
|
+
/**
|
|
2752
|
+
* Ok
|
|
2753
|
+
*/
|
|
2754
|
+
200: GetNoteComments;
|
|
2755
|
+
};
|
|
2756
|
+
export type ListNoteCommentsResponse = ListNoteCommentsResponses[keyof ListNoteCommentsResponses];
|
|
2757
|
+
export type GetNoteCommentData = {
|
|
2758
|
+
body?: never;
|
|
2759
|
+
path: {
|
|
2760
|
+
noteId: string;
|
|
2761
|
+
commentId: ApiCommentId;
|
|
2762
|
+
};
|
|
2763
|
+
query?: never;
|
|
2764
|
+
url: '/notes/{noteId}/comments/{commentId}';
|
|
2765
|
+
};
|
|
2766
|
+
export type GetNoteCommentErrors = {
|
|
2767
|
+
/**
|
|
2768
|
+
* Bad Request
|
|
2769
|
+
*/
|
|
2770
|
+
400: ApiRequestErrorResponse;
|
|
2771
|
+
/**
|
|
2772
|
+
* Unauthorized
|
|
2773
|
+
*/
|
|
2774
|
+
401: ApiErrorResponse;
|
|
2775
|
+
/**
|
|
2776
|
+
* Comments not readable
|
|
2777
|
+
*/
|
|
2778
|
+
403: ApiCommentError;
|
|
2779
|
+
/**
|
|
2780
|
+
* Not found
|
|
2781
|
+
*/
|
|
2782
|
+
404: ApiCommentError;
|
|
2783
|
+
/**
|
|
2784
|
+
* Rate limit or workspace quota exceeded
|
|
2785
|
+
*/
|
|
2786
|
+
429: ApiRateLimitErrorResponse;
|
|
2787
|
+
/**
|
|
2788
|
+
* Internal Server Error
|
|
2789
|
+
*/
|
|
2790
|
+
500: ApiServerErrorResponse;
|
|
2791
|
+
};
|
|
2792
|
+
export type GetNoteCommentError = GetNoteCommentErrors[keyof GetNoteCommentErrors];
|
|
2793
|
+
export type GetNoteCommentResponses = {
|
|
2794
|
+
/**
|
|
2795
|
+
* Ok
|
|
2796
|
+
*/
|
|
2797
|
+
200: ApiCommentDetail;
|
|
2798
|
+
};
|
|
2799
|
+
export type GetNoteCommentResponse = GetNoteCommentResponses[keyof GetNoteCommentResponses];
|
|
2800
|
+
export type UnresolveNoteCommentData = {
|
|
2801
|
+
body?: never;
|
|
2802
|
+
path: {
|
|
2803
|
+
noteId: string;
|
|
2804
|
+
commentId: ApiCommentId;
|
|
2805
|
+
};
|
|
2806
|
+
query?: never;
|
|
2807
|
+
url: '/notes/{noteId}/comments/{commentId}/resolution';
|
|
2808
|
+
};
|
|
2809
|
+
export type UnresolveNoteCommentErrors = {
|
|
2810
|
+
/**
|
|
2811
|
+
* Bad Request
|
|
2812
|
+
*/
|
|
2813
|
+
400: ApiRequestErrorResponse;
|
|
2814
|
+
/**
|
|
2815
|
+
* Unauthorized
|
|
2816
|
+
*/
|
|
2817
|
+
401: ApiErrorResponse;
|
|
2818
|
+
/**
|
|
2819
|
+
* Comment resolution forbidden
|
|
2820
|
+
*/
|
|
2821
|
+
403: ApiCommentError;
|
|
2822
|
+
/**
|
|
2823
|
+
* Not found
|
|
2824
|
+
*/
|
|
2825
|
+
404: ApiCommentError;
|
|
2826
|
+
/**
|
|
2827
|
+
* Comment resolution conflict
|
|
2828
|
+
*/
|
|
2829
|
+
409: ApiCommentResolutionConflictError;
|
|
2830
|
+
/**
|
|
2831
|
+
* Rate limit or workspace quota exceeded
|
|
2832
|
+
*/
|
|
2833
|
+
429: ApiRateLimitErrorResponse;
|
|
2834
|
+
/**
|
|
2835
|
+
* Internal Server Error
|
|
2836
|
+
*/
|
|
2837
|
+
500: ApiServerErrorResponse;
|
|
2838
|
+
};
|
|
2839
|
+
export type UnresolveNoteCommentError = UnresolveNoteCommentErrors[keyof UnresolveNoteCommentErrors];
|
|
2840
|
+
export type UnresolveNoteCommentResponses = {
|
|
2841
|
+
/**
|
|
2842
|
+
* Ok
|
|
2843
|
+
*/
|
|
2844
|
+
200: ApiCommentResolutionResponse;
|
|
2845
|
+
};
|
|
2846
|
+
export type UnresolveNoteCommentResponse = UnresolveNoteCommentResponses[keyof UnresolveNoteCommentResponses];
|
|
2847
|
+
export type ResolveNoteCommentData = {
|
|
2848
|
+
body?: never;
|
|
2849
|
+
path: {
|
|
2850
|
+
noteId: string;
|
|
2851
|
+
commentId: ApiCommentId;
|
|
2852
|
+
};
|
|
2853
|
+
query?: never;
|
|
2854
|
+
url: '/notes/{noteId}/comments/{commentId}/resolution';
|
|
2855
|
+
};
|
|
2856
|
+
export type ResolveNoteCommentErrors = {
|
|
2857
|
+
/**
|
|
2858
|
+
* Bad Request
|
|
2859
|
+
*/
|
|
2860
|
+
400: ApiRequestErrorResponse;
|
|
2861
|
+
/**
|
|
2862
|
+
* Unauthorized
|
|
2863
|
+
*/
|
|
2864
|
+
401: ApiErrorResponse;
|
|
2865
|
+
/**
|
|
2866
|
+
* Comment resolution forbidden
|
|
2867
|
+
*/
|
|
2868
|
+
403: ApiCommentError;
|
|
2869
|
+
/**
|
|
2870
|
+
* Not found
|
|
2871
|
+
*/
|
|
2872
|
+
404: ApiCommentError;
|
|
2873
|
+
/**
|
|
2874
|
+
* Comment resolution conflict
|
|
2875
|
+
*/
|
|
2876
|
+
409: ApiCommentResolutionConflictError;
|
|
2877
|
+
/**
|
|
2878
|
+
* Rate limit or workspace quota exceeded
|
|
2879
|
+
*/
|
|
2880
|
+
429: ApiRateLimitErrorResponse;
|
|
2881
|
+
/**
|
|
2882
|
+
* Internal Server Error
|
|
2883
|
+
*/
|
|
2884
|
+
500: ApiServerErrorResponse;
|
|
2885
|
+
};
|
|
2886
|
+
export type ResolveNoteCommentError = ResolveNoteCommentErrors[keyof ResolveNoteCommentErrors];
|
|
2887
|
+
export type ResolveNoteCommentResponses = {
|
|
2888
|
+
/**
|
|
2889
|
+
* Ok
|
|
2890
|
+
*/
|
|
2891
|
+
200: ApiCommentResolutionResponse;
|
|
2892
|
+
};
|
|
2893
|
+
export type ResolveNoteCommentResponse = ResolveNoteCommentResponses[keyof ResolveNoteCommentResponses];
|
|
2894
|
+
export type GetMeData = {
|
|
2895
|
+
body?: never;
|
|
2896
|
+
path?: never;
|
|
2897
|
+
query?: never;
|
|
2898
|
+
url: '/me';
|
|
2899
|
+
};
|
|
2900
|
+
export type GetMeErrors = {
|
|
2901
|
+
/**
|
|
2902
|
+
* Bad Request
|
|
2903
|
+
*/
|
|
2904
|
+
400: ApiRequestErrorResponse;
|
|
2905
|
+
/**
|
|
2906
|
+
* Unauthorized
|
|
2907
|
+
*/
|
|
2908
|
+
401: ApiErrorResponse;
|
|
2909
|
+
/**
|
|
2910
|
+
* Rate limit or workspace quota exceeded
|
|
2911
|
+
*/
|
|
2912
|
+
429: ApiRateLimitErrorResponse;
|
|
2913
|
+
/**
|
|
2914
|
+
* Internal Server Error
|
|
2915
|
+
*/
|
|
2916
|
+
500: ApiServerErrorResponse;
|
|
2917
|
+
};
|
|
2918
|
+
export type GetMeError = GetMeErrors[keyof GetMeErrors];
|
|
2919
|
+
export type GetMeResponses = {
|
|
2920
|
+
/**
|
|
2921
|
+
* Ok
|
|
2922
|
+
*/
|
|
2923
|
+
200: User;
|
|
2924
|
+
};
|
|
2925
|
+
export type GetMeResponse = GetMeResponses[keyof GetMeResponses];
|
|
2926
|
+
export type GetHistoryData = {
|
|
2927
|
+
body?: never;
|
|
2928
|
+
path?: never;
|
|
2929
|
+
query?: {
|
|
2930
|
+
/**
|
|
2931
|
+
* The maximum number of history items to return.
|
|
2932
|
+
*/
|
|
2933
|
+
limit?: number;
|
|
2934
|
+
};
|
|
2935
|
+
url: '/history';
|
|
2936
|
+
};
|
|
2937
|
+
export type GetHistoryErrors = {
|
|
2938
|
+
/**
|
|
2939
|
+
* Bad Request
|
|
2940
|
+
*/
|
|
2941
|
+
400: ApiRequestErrorResponse;
|
|
2942
|
+
/**
|
|
2943
|
+
* Unauthorized
|
|
2944
|
+
*/
|
|
2945
|
+
401: ApiErrorResponse;
|
|
2946
|
+
/**
|
|
2947
|
+
* Rate limit or workspace quota exceeded
|
|
2948
|
+
*/
|
|
2949
|
+
429: ApiRateLimitErrorResponse;
|
|
2950
|
+
/**
|
|
2951
|
+
* Internal Server Error
|
|
2952
|
+
*/
|
|
2953
|
+
500: ApiServerErrorResponse;
|
|
2954
|
+
};
|
|
2955
|
+
export type GetHistoryError = GetHistoryErrors[keyof GetHistoryErrors];
|
|
2956
|
+
export type GetHistoryResponses = {
|
|
2957
|
+
/**
|
|
2958
|
+
* Ok
|
|
2959
|
+
*/
|
|
2960
|
+
200: GetUserHistory;
|
|
2961
|
+
};
|
|
2962
|
+
export type GetHistoryResponse = GetHistoryResponses[keyof GetHistoryResponses];
|