pr feedback

This commit is contained in:
Alex Tran
2025-12-02 21:50:07 +00:00
parent 290de9d27c
commit bd4355a75f
30 changed files with 572 additions and 578 deletions

View File

@@ -8023,7 +8023,7 @@
"/plugins/triggers": {
"get": {
"description": "Retrieve a list of all available plugin triggers.",
"operationId": "getTriggers",
"operationId": "getPluginTriggers",
"parameters": [],
"responses": {
"200": {
@@ -18331,7 +18331,7 @@
},
"supportedContexts": {
"items": {
"$ref": "#/components/schemas/PluginContext"
"$ref": "#/components/schemas/PluginContextType"
},
"type": "array"
},
@@ -18350,7 +18350,7 @@
],
"type": "object"
},
"PluginContext": {
"PluginContextType": {
"enum": [
"asset",
"album",
@@ -18378,7 +18378,7 @@
},
"supportedContexts": {
"items": {
"$ref": "#/components/schemas/PluginContext"
"$ref": "#/components/schemas/PluginContextType"
},
"type": "array"
},
@@ -18452,10 +18452,10 @@
},
"PluginTriggerResponseDto": {
"properties": {
"context": {
"contextType": {
"allOf": [
{
"$ref": "#/components/schemas/PluginContext"
"$ref": "#/components/schemas/PluginContextType"
}
]
},
@@ -18465,7 +18465,7 @@
"name": {
"type": "string"
},
"triggerType": {
"type": {
"allOf": [
{
"$ref": "#/components/schemas/PluginTriggerType"
@@ -18474,10 +18474,10 @@
}
},
"required": [
"context",
"contextType",
"description",
"name",
"triggerType"
"type"
],
"type": "object"
},

View File

@@ -942,7 +942,7 @@ export type PluginActionResponseDto = {
methodName: string;
pluginId: string;
schema: object | null;
supportedContexts: PluginContext[];
supportedContexts: PluginContextType[];
title: string;
};
export type PluginFilterResponseDto = {
@@ -951,7 +951,7 @@ export type PluginFilterResponseDto = {
methodName: string;
pluginId: string;
schema: object | null;
supportedContexts: PluginContext[];
supportedContexts: PluginContextType[];
title: string;
};
export type PluginResponseDto = {
@@ -967,10 +967,10 @@ export type PluginResponseDto = {
version: string;
};
export type PluginTriggerResponseDto = {
context: PluginContext;
contextType: PluginContextType;
description: string;
name: string;
triggerType: PluginTriggerType;
"type": PluginTriggerType;
};
export type QueueResponseDto = {
isPaused: boolean;
@@ -3666,7 +3666,7 @@ export function getPlugins(opts?: Oazapfts.RequestOpts) {
/**
* List all plugin triggers
*/
export function getTriggers(opts?: Oazapfts.RequestOpts) {
export function getPluginTriggers(opts?: Oazapfts.RequestOpts) {
return oazapfts.ok(oazapfts.fetchJson<{
status: 200;
data: PluginTriggerResponseDto[];
@@ -5436,7 +5436,7 @@ export enum PartnerDirection {
SharedBy = "shared-by",
SharedWith = "shared-with"
}
export enum PluginContext {
export enum PluginContextType {
Asset = "asset",
Album = "album",
Person = "person"