45 linhas
1,2 KiB
TypeScript
45 linhas
1,2 KiB
TypeScript
// Generated from the OpenAPI specification. Do not edit by hand: regenerate.
|
|
import type { INodeProperties } from 'n8n-workflow';
|
|
|
|
export const tokenOperations: INodeProperties[] = [{
|
|
"displayName": "Operation",
|
|
"name": "operation",
|
|
"type": "options",
|
|
"noDataExpression": true,
|
|
"displayOptions": {
|
|
"show": {
|
|
"resource": [
|
|
"token"
|
|
]
|
|
}
|
|
},
|
|
"options": [
|
|
{
|
|
"name": "See the key in use",
|
|
"value": "get",
|
|
"description": "Returns the permissions, validity and limits of the key that made the request. Any valid key can call it. The key itself is never returned.",
|
|
"action": "See the key in use",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/token"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "See the limits of the key",
|
|
"value": "limitsGet",
|
|
"description": "Returns the requests left in the current minute and the spending limit of the key.",
|
|
"action": "See the limits of the key",
|
|
"routing": {
|
|
"request": {
|
|
"method": "GET",
|
|
"url": "=/v1/limits"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"default": "get"
|
|
}];
|
|
|
|
export const tokenFields: INodeProperties[] = [];
|