Merge main into proxy branch (formatting and docs)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Gregory Schier
2026-03-13 12:09:59 -07:00
parent 3c4035097a
commit 7314aedc71
712 changed files with 13408 additions and 13322 deletions

View File

@@ -1,26 +1,26 @@
import type { PluginDefinition } from '@yaakapp/api';
import type { CallHttpAuthenticationRequest } from '@yaakapp-internal/plugins';
import type { PluginDefinition } from "@yaakapp/api";
import type { CallHttpAuthenticationRequest } from "@yaakapp-internal/plugins";
export const plugin: PluginDefinition = {
authentication: {
name: 'bearer',
label: 'Bearer Token',
shortLabel: 'Bearer',
name: "bearer",
label: "Bearer Token",
shortLabel: "Bearer",
args: [
{
type: 'text',
name: 'token',
label: 'Token',
type: "text",
name: "token",
label: "Token",
optional: true,
password: true,
},
{
type: 'text',
name: 'prefix',
label: 'Prefix',
type: "text",
name: "prefix",
label: "Prefix",
optional: true,
placeholder: '',
defaultValue: 'Bearer',
placeholder: "",
defaultValue: "Bearer",
description:
'The prefix to use for the Authorization header, which will be of the format "<PREFIX> <TOKEN>".',
},
@@ -31,9 +31,9 @@ export const plugin: PluginDefinition = {
},
};
function generateAuthorizationHeader(values: CallHttpAuthenticationRequest['values']) {
const token = String(values.token || '').trim();
const prefix = String(values.prefix || '').trim();
function generateAuthorizationHeader(values: CallHttpAuthenticationRequest["values"]) {
const token = String(values.token || "").trim();
const prefix = String(values.prefix || "").trim();
const value = `${prefix} ${token}`.trim();
return { name: 'Authorization', value };
return { name: "Authorization", value };
}