diff --git a/apps/engine/docs/openapi.yaml b/apps/engine/docs/openapi.yaml index f0b244a4..15fa3331 100644 --- a/apps/engine/docs/openapi.yaml +++ b/apps/engine/docs/openapi.yaml @@ -198,7 +198,7 @@ paths: summary: List secrets operationId: secrets-list parameters: - - description: "Number of items to return (default: 100, max: 25000)" + - description: "Number of items to return (default: 100, max: 1000)" name: limit in: query schema: @@ -388,7 +388,7 @@ paths: in: query schema: type: string - - description: "Number of items to return (default: 100, max: 25000)" + - description: "Number of items to return (default: 100, max: 1000)" name: limit in: query schema: @@ -449,6 +449,75 @@ paths: application/json: schema: $ref: "#/components/schemas/schemas.Error" + /v1/apps: + get: + security: + - Bearer: [] + description: "Lists the apps the user can act on through this project, ordered + by app_id, with whether each is connected and, when it is, the account + it is connected as and the permissions that connection grants. An app is + connected when the user can call its tools now: every connection it + needs is in place, or it needs none. Returns the same apps the + Arcade.ListApps tool reports." + tags: + - Apps + summary: List Apps + operationId: apps-list + parameters: + - description: The user to list apps for. A user-bound credential may only name + its own user. + name: user_id + in: query + required: true + schema: + type: string + - description: "Number of items to return (default: 100, max: 25000)" + name: limit + in: query + schema: + type: integer + - description: "Offset from the start of the list (default: 0)" + name: offset + in: query + schema: + type: integer + responses: + "200": + description: OK + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.OffsetPage-schemas_AppResponse" + "400": + description: Bad Request + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" + "401": + description: Unauthorized + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" + "403": + description: Forbidden + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" + "500": + description: Internal Server Error + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" + "503": + description: Service Unavailable + content: + application/json: + schema: + $ref: "#/components/schemas/schemas.Error" /v1/auth/authorize: post: security: @@ -687,7 +756,7 @@ paths: in: query schema: type: string - - description: "Number of items to return (default: 100, max: 25000)" + - description: "Number of items to return (default: 100, max: 1000)" name: limit in: query schema: @@ -845,7 +914,7 @@ paths: required: true schema: type: string - - description: "Number of items to return (default: 100, max: 25000)" + - description: "Number of items to return (default: 100, max: 1000)" name: limit in: query schema: @@ -1127,7 +1196,7 @@ paths: required: true schema: type: string - - description: "Number of items to return (default: 100, max: 25000)" + - description: "Number of items to return (default: 100, max: 1000)" name: limit in: query schema: @@ -1364,7 +1433,7 @@ paths: required: true schema: type: string - - description: "Number of items to return (default: 100, max: 25000)" + - description: "Number of items to return (default: 100, max: 1000)" name: limit in: query schema: @@ -1774,98 +1843,6 @@ paths: schema: $ref: "#/components/schemas/schemas.Error" "/v1/orgs/{org_id}/projects/{project_id}/gateways/{gateway_id}/suggestions": - get: - security: - - Bearer: [] - description: Returns gateway suggestions ordered by supporters descending. By - default only unresolved suggestions are returned. - tags: - - Gateways - summary: List gateway suggestions - operationId: gateway-suggestions-list - parameters: - - description: Organization ID - name: org_id - in: path - required: true - schema: - type: string - - description: Project ID - name: project_id - in: path - required: true - schema: - type: string - - description: Gateway ID - name: gateway_id - in: path - required: true - schema: - type: string - - description: Case-insensitive content search - name: query - in: query - schema: - type: string - - description: Submitter user ID - name: suggestion_submitter - in: query - schema: - type: string - - description: "Include resolved suggestions (default: false)" - name: show_resolved - in: query - schema: - type: boolean - - description: "Number of suggestions to return (default: 50)" - name: limit - in: query - schema: - type: integer - - description: "Offset from the start of the list (default: 0)" - name: offset - in: query - schema: - type: integer - responses: - "200": - description: OK - content: - application/json: - schema: - type: array - items: - $ref: "#/components/schemas/schemas.GatewaySuggestionResponse" - "400": - description: Bad Request - content: - application/json: - schema: - $ref: "#/components/schemas/schemas.Error" - "401": - description: Unauthorized - content: - application/json: - schema: - $ref: "#/components/schemas/schemas.Error" - "403": - description: Forbidden - content: - application/json: - schema: - $ref: "#/components/schemas/schemas.Error" - "404": - description: Not Found - content: - application/json: - schema: - $ref: "#/components/schemas/schemas.Error" - "500": - description: Internal Server Error - content: - application/json: - schema: - $ref: "#/components/schemas/schemas.Error" post: security: - Bearer: [] @@ -2036,7 +2013,7 @@ paths: required: true schema: type: string - - description: "Number of items to return (default: 100, max: 25000)" + - description: "Number of items to return (default: 100, max: 1000)" name: limit in: query schema: @@ -2354,7 +2331,7 @@ paths: required: true schema: type: string - - description: "Number of items to return (default: 100, max: 25000)" + - description: "Number of items to return (default: 100, max: 1000)" name: limit in: query schema: @@ -2598,10 +2575,10 @@ paths: security: - Bearer: [] description: Returns suggestions from every gateway in the project, ordered by - supporters descending. Static gateways are only included when named in - gateway_id. By default only unresolved suggestions are returned. - gateway_id and suggestion_submitter may be repeated to match any of - several values. + supporters descending. Without gateway_id, only gateways bound to this + project are included. By default only unresolved suggestions are + returned. gateway_id and suggestion_submitter may be repeated to match + any of several values. tags: - Gateways summary: List project suggestions @@ -2714,7 +2691,7 @@ paths: required: true schema: type: string - - description: "Number of items to return (default: 100, max: 25000)" + - description: "Number of items to return (default: 100, max: 1000)" name: limit in: query schema: @@ -3000,7 +2977,7 @@ paths: in: query schema: type: string - - description: "Number of items to return (default: 100, max: 25000)" + - description: "Number of items to return (default: 100, max: 1000)" name: limit in: query schema: @@ -3438,7 +3415,7 @@ paths: summary: List all workers operationId: workers-list parameters: - - description: "Number of items to return (default: 100, max: 25000)" + - description: "Number of items to return (default: 100, max: 1000)" name: limit in: query schema: @@ -3704,7 +3681,7 @@ paths: required: true schema: type: string - - description: "Number of items to return (default: 100, max: 25000)" + - description: "Number of items to return (default: 100, max: 1000)" name: limit in: query schema: @@ -3894,6 +3871,37 @@ components: x-enum-varnames: - PluginStatusInactive - PluginStatusActive + schemas.AppResponse: + type: object + properties: + account: + description: >- + Account is the account the user is connected as, as the app's + provider + + reports it (an email address or username). Only set when connected. + type: string + app_id: + description: AppID identifies the app. Unique within a listing, which is sorted + by it. + type: string + connected: + description: |- + Connected is true when the user can call the app's tools now: every + connection the app needs is in place, or it needs none. + type: boolean + name: + description: Name is the app's display name. + type: string + permissions: + description: >- + Permissions are the scopes the user's connection grants. Only set + when + + connected. + type: array + items: + type: string schemas.ArbitraryObject: type: object additionalProperties: true @@ -4476,6 +4484,8 @@ components: type: string discovery: $ref: "#/components/schemas/schemas.CreateDiscoveryRequest" + registry_suggestions: + $ref: "#/components/schemas/schemas.RegistrySuggestionsSettingRequest" schemas.CreateWebhookConfigRequest: type: object required: @@ -4706,23 +4716,6 @@ components: type: string user_source_id: type: string - schemas.GatewaySuggestionResponse: - type: object - properties: - content: - type: string - id: - type: string - resolution_notes: - type: string - resolved_at: - type: string - submitter_user_id: - type: string - submitter_user_source_id: - type: string - supporters: - type: integer schemas.GroupAccessConfigResponse: type: object properties: @@ -5180,6 +5173,19 @@ components: type: object additionalProperties: type: string + schemas.OffsetPage-schemas_AppResponse: + type: object + properties: + items: + type: array + items: + $ref: "#/components/schemas/schemas.AppResponse" + limit: + type: integer + offset: + type: integer + total_count: + type: integer schemas.OffsetPage-schemas_ArbitraryObject: type: object properties: @@ -5567,6 +5573,8 @@ components: type: string discovery: $ref: "#/components/schemas/schemas.PatchDiscoveryRequest" + registry_suggestions: + $ref: "#/components/schemas/schemas.RegistrySuggestionsSettingRequest" schemas.PatchWebhookConfigRequest: type: object properties: @@ -5736,6 +5744,16 @@ components: type: string time_unit: type: string + schemas.RegistrySuggestionsResponse: + type: object + properties: + enabled: + type: boolean + schemas.RegistrySuggestionsSettingRequest: + type: object + properties: + enabled: + type: boolean schemas.Requirements: type: object properties: @@ -6085,6 +6103,8 @@ components: type: string discovery: $ref: "#/components/schemas/schemas.DiscoveryResponse" + registry_suggestions: + $ref: "#/components/schemas/schemas.RegistrySuggestionsResponse" schemas.ToolRecommendationRequest: type: object required: @@ -6438,6 +6458,8 @@ components: type: string discovery: $ref: "#/components/schemas/schemas.UpdateDiscoveryRequest" + registry_suggestions: + $ref: "#/components/schemas/schemas.RegistrySuggestionsSettingRequest" schemas.UpdateWorkerRequest: type: object properties: