format
This commit is contained in:
parent
ced5638b80
commit
8401117293
1 changed files with 38 additions and 38 deletions
|
@ -3388,9 +3388,9 @@ export const endpoints = {
|
||||||
},
|
},
|
||||||
'clips/my-favorites': {
|
'clips/my-favorites': {
|
||||||
tags: ['account', 'clip'],
|
tags: ['account', 'clip'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
kind: 'read:clip-favorite',
|
kind: 'read:clip-favorite',
|
||||||
|
|
||||||
defines: [{
|
defines: [{
|
||||||
|
@ -3405,11 +3405,11 @@ export const endpoints = {
|
||||||
},
|
},
|
||||||
'clips/notes': {
|
'clips/notes': {
|
||||||
tags: ['account', 'notes', 'clips'],
|
tags: ['account', 'notes', 'clips'],
|
||||||
|
|
||||||
requireCredential: false,
|
requireCredential: false,
|
||||||
|
|
||||||
kind: 'read:account',
|
kind: 'read:account',
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
noSuchClip: {
|
noSuchClip: {
|
||||||
message: 'No such clip.',
|
message: 'No such clip.',
|
||||||
|
@ -3439,20 +3439,20 @@ export const endpoints = {
|
||||||
},
|
},
|
||||||
'clips/remove-note': {
|
'clips/remove-note': {
|
||||||
tags: ['account', 'notes', 'clips'],
|
tags: ['account', 'notes', 'clips'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
prohibitMoved: true,
|
prohibitMoved: true,
|
||||||
|
|
||||||
kind: 'write:account',
|
kind: 'write:account',
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
noSuchClip: {
|
noSuchClip: {
|
||||||
message: 'No such clip.',
|
message: 'No such clip.',
|
||||||
code: 'NO_SUCH_CLIP',
|
code: 'NO_SUCH_CLIP',
|
||||||
id: 'b80525c6-97f7-49d7-a42d-ebccd49cfd52',
|
id: 'b80525c6-97f7-49d7-a42d-ebccd49cfd52',
|
||||||
},
|
},
|
||||||
|
|
||||||
noSuchNote: {
|
noSuchNote: {
|
||||||
message: 'No such note.',
|
message: 'No such note.',
|
||||||
code: 'NO_SUCH_NOTE',
|
code: 'NO_SUCH_NOTE',
|
||||||
|
@ -3474,11 +3474,11 @@ export const endpoints = {
|
||||||
},
|
},
|
||||||
'clips/show': {
|
'clips/show': {
|
||||||
tags: ['clips', 'account'],
|
tags: ['clips', 'account'],
|
||||||
|
|
||||||
requireCredential: false,
|
requireCredential: false,
|
||||||
|
|
||||||
kind: 'read:account',
|
kind: 'read:account',
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
noSuchClip: {
|
noSuchClip: {
|
||||||
message: 'No such clip.',
|
message: 'No such clip.',
|
||||||
|
@ -3502,20 +3502,20 @@ export const endpoints = {
|
||||||
},
|
},
|
||||||
'clips/unfavorite': {
|
'clips/unfavorite': {
|
||||||
tags: ['clip'],
|
tags: ['clip'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
prohibitMoved: true,
|
prohibitMoved: true,
|
||||||
|
|
||||||
kind: 'write:clip-favorite',
|
kind: 'write:clip-favorite',
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
noSuchClip: {
|
noSuchClip: {
|
||||||
message: 'No such clip.',
|
message: 'No such clip.',
|
||||||
code: 'NO_SUCH_CLIP',
|
code: 'NO_SUCH_CLIP',
|
||||||
id: '2603966e-b865-426c-94a7-af4a01241dc1',
|
id: '2603966e-b865-426c-94a7-af4a01241dc1',
|
||||||
},
|
},
|
||||||
|
|
||||||
notFavorited: {
|
notFavorited: {
|
||||||
message: 'You have not favorited the clip.',
|
message: 'You have not favorited the clip.',
|
||||||
code: 'NOT_FAVORITED',
|
code: 'NOT_FAVORITED',
|
||||||
|
@ -3536,13 +3536,13 @@ export const endpoints = {
|
||||||
},
|
},
|
||||||
'clips/update': {
|
'clips/update': {
|
||||||
tags: ['clips'],
|
tags: ['clips'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
prohibitMoved: true,
|
prohibitMoved: true,
|
||||||
|
|
||||||
kind: 'write:account',
|
kind: 'write:account',
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
noSuchClip: {
|
noSuchClip: {
|
||||||
message: 'No such clip.',
|
message: 'No such clip.',
|
||||||
|
@ -3572,11 +3572,11 @@ export const endpoints = {
|
||||||
//#region drive
|
//#region drive
|
||||||
'drive/files/attached-notes': {
|
'drive/files/attached-notes': {
|
||||||
tags: ['drive', 'notes'],
|
tags: ['drive', 'notes'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
kind: 'read:drive',
|
kind: 'read:drive',
|
||||||
|
|
||||||
description: 'Find the notes to which the given file is attached.',
|
description: 'Find the notes to which the given file is attached.',
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
|
@ -3605,13 +3605,13 @@ export const endpoints = {
|
||||||
},
|
},
|
||||||
'drive/files/check-existence': {
|
'drive/files/check-existence': {
|
||||||
tags: ['drive'],
|
tags: ['drive'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
kind: 'read:drive',
|
kind: 'read:drive',
|
||||||
|
|
||||||
description: 'Check if a given file exists.',
|
description: 'Check if a given file exists.',
|
||||||
|
|
||||||
defines: [{
|
defines: [{
|
||||||
req: {
|
req: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
|
@ -3627,20 +3627,20 @@ export const endpoints = {
|
||||||
},
|
},
|
||||||
'drive/files/create': {
|
'drive/files/create': {
|
||||||
tags: ['drive'],
|
tags: ['drive'],
|
||||||
|
|
||||||
requireCredential: true,
|
requireCredential: true,
|
||||||
|
|
||||||
prohibitMoved: true,
|
prohibitMoved: true,
|
||||||
|
|
||||||
limit: {
|
limit: {
|
||||||
duration: ms('1hour'),
|
duration: ms('1hour'),
|
||||||
max: 120,
|
max: 120,
|
||||||
},
|
},
|
||||||
|
|
||||||
requireFile: true,
|
requireFile: true,
|
||||||
|
|
||||||
kind: 'write:drive',
|
kind: 'write:drive',
|
||||||
|
|
||||||
description: 'Upload a new drive file.',
|
description: 'Upload a new drive file.',
|
||||||
|
|
||||||
errors: {
|
errors: {
|
||||||
|
@ -3649,13 +3649,13 @@ export const endpoints = {
|
||||||
code: 'INVALID_FILE_NAME',
|
code: 'INVALID_FILE_NAME',
|
||||||
id: 'f449b209-0c60-4e51-84d5-29486263bfd4',
|
id: 'f449b209-0c60-4e51-84d5-29486263bfd4',
|
||||||
},
|
},
|
||||||
|
|
||||||
inappropriate: {
|
inappropriate: {
|
||||||
message: 'Cannot upload the file because it has been determined that it possibly contains inappropriate content.',
|
message: 'Cannot upload the file because it has been determined that it possibly contains inappropriate content.',
|
||||||
code: 'INAPPROPRIATE',
|
code: 'INAPPROPRIATE',
|
||||||
id: 'bec5bd69-fba3-43c9-b4fb-2894b66ad5d2',
|
id: 'bec5bd69-fba3-43c9-b4fb-2894b66ad5d2',
|
||||||
},
|
},
|
||||||
|
|
||||||
noFreeSpace: {
|
noFreeSpace: {
|
||||||
message: 'Cannot upload the file because you have no free space of drive.',
|
message: 'Cannot upload the file because you have no free space of drive.',
|
||||||
code: 'NO_FREE_SPACE',
|
code: 'NO_FREE_SPACE',
|
||||||
|
@ -3666,7 +3666,7 @@ export const endpoints = {
|
||||||
message: 'Comment is too long.',
|
message: 'Comment is too long.',
|
||||||
code: 'COMMENT_TOO_LONG',
|
code: 'COMMENT_TOO_LONG',
|
||||||
id: 'f0b0f2a0-0b0a-4b0a-8b0a-0b0a0b0a0b0a',
|
id: 'f0b0f2a0-0b0a-4b0a-8b0a-0b0a0b0a0b0a',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
defines: [{
|
defines: [{
|
||||||
|
|
Loading…
Reference in a new issue