The Coline App SDK: apps, tools, file types and surfaces that run inside Coline workspaces, and public websites with Coline Sites. TypeScript, with an in-memory test workspace. MIT.
| 5 | "version": "1.0.0-beta", |
| 6 | "summary": "Workspace-native app registry, install, and runtime APIs for Coline.", |
| 7 | "description": "Canonical OpenAPI source for the current stable app-platform slice. This document covers the public store catalog plus the `/api/v1` workspace install/runtime surface." |
| 8 | }, |
| 9 | "servers": [ |
| 10 | { |
| 11 | "url": "https://coline.app", |
| 12 | "description": "Production" |
| 13 | }, |
| 14 | { |
| 15 | "url": "http://localhost:3000", |
| 16 | "description": "Local development" |
| 17 | } |
| 18 | ], |
| 19 | "tags": [ |
| 20 | { |
| 21 | "name": "Store", |
| 22 | "description": "Public store catalog and approved app releases." |
| 23 | }, |
| 24 | { |
| 25 | "name": "Publisher", |
| 26 | "description": "Authenticated app registration and version creation APIs." |
| 27 | }, |
| 28 | { |
| 29 | "name": "Auth", |
| 30 | "description": "Login with Coline OAuth endpoints." |
| 31 | }, |
| 32 | { |
| 33 | "name": "AI", |
| 34 | "description": "Tab API endpoints for completions and model discovery." |
| 35 | }, |
| 36 | { |
| 37 | "name": "Workspace installs", |
| 38 | "description": "Workspace app install and permission APIs." |
| 39 | }, |
| 40 | { |
| 41 | "name": "Runtime", |
| 42 | "description": "Installed app file, index, notification, and ambient APIs." |
| 43 | } |
| 44 | ], |
| 45 | "paths": { |
| 46 | "/api/v1/tab/models": { |
| 47 | "get": { |
| 48 | "tags": [ |
| 49 | "AI" |
| 50 | ], |
| 51 | "summary": "List Tab models", |
| 52 | "operationId": "listTabModels", |
| 53 | "responses": { |
| 54 | "200": { |
| 55 | "description": "Tab model list", |
| 56 | "content": { |
| 57 | "application/json": { |
| 58 | "schema": { |
| 59 | "$ref": "#/components/schemas/TabModelsResponse" |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | }, |
| 67 | "/api/v1/tab/chat/completions": { |
| 68 | "post": { |
| 69 | "tags": [ |
| 70 | "AI" |
| 71 | ], |
| 72 | "summary": "Create an OpenAI-compatible Tab chat completion", |
| 73 | "operationId": "createTabChatCompletion", |
| 74 | "security": [ |
| 75 | { |
| 76 | "bearerAuth": [] |
| 77 | } |
| 78 | ], |
| 79 | "requestBody": { |
| 80 | "required": true, |
| 81 | "content": { |
| 82 | "application/json": { |
| 83 | "schema": { |
| 84 | "$ref": "#/components/schemas/TabChatCompletionInput" |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | }, |
| 89 | "responses": { |
| 90 | "200": { |
| 91 | "description": "OpenAI-compatible Tab chat completion", |
| 92 | "content": { |
| 93 | "application/json": { |
| 94 | "schema": { |
| 95 | "$ref": "#/components/schemas/TabChatCompletionResponseEnvelope" |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | }, |
| 100 | "400": { |
| 101 | "description": "Validation or model error", |
| 102 | "content": { |
| 103 | "application/json": { |
| 104 | "schema": { |
| 105 | "$ref": "#/components/schemas/ErrorEnvelope" |
| 106 | } |
| 107 | } |
| 108 | } |
| 109 | }, |
| 110 | "402": { |
| 111 | "description": "Insufficient credits", |
| 112 | "content": { |
| 113 | "application/json": { |
| 114 | "schema": { |
| 115 | "$ref": "#/components/schemas/ErrorEnvelope" |
| 116 | } |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | } |
| 121 | } |
| 122 | }, |
| 123 | "/api/v1/oauth/authorize": { |
| 124 | "get": { |
| 125 | "tags": [ |
| 126 | "Auth" |
| 127 | ], |
| 128 | "summary": "Authorize an OAuth client", |
| 129 | "operationId": "authorizeOauthClient", |
| 130 | "parameters": [ |
| 131 | { |
| 132 | "name": "response_type", |
| 133 | "in": "query", |
| 134 | "required": true, |
| 135 | "schema": { |
| 136 | "type": "string", |
| 137 | "const": "code" |
| 138 | } |
| 139 | }, |
| 140 | { |
| 141 | "name": "client_id", |
| 142 | "in": "query", |
| 143 | "required": true, |
| 144 | "schema": { |
| 145 | "type": "string" |
| 146 | } |
| 147 | }, |
| 148 | { |
| 149 | "name": "redirect_uri", |
| 150 | "in": "query", |
| 151 | "required": true, |
| 152 | "schema": { |
| 153 | "type": "string", |
| 154 | "format": "uri" |
| 155 | } |
| 156 | }, |
| 157 | { |
| 158 | "name": "scope", |
| 159 | "in": "query", |
| 160 | "required": false, |
| 161 | "schema": { |
| 162 | "type": "string" |
| 163 | } |
| 164 | }, |
| 165 | { |
| 166 | "name": "state", |
| 167 | "in": "query", |
| 168 | "required": false, |
| 169 | "schema": { |
| 170 | "type": "string" |
| 171 | } |
| 172 | }, |
| 173 | { |
| 174 | "name": "code_challenge", |
| 175 | "in": "query", |
| 176 | "required": false, |
| 177 | "schema": { |
| 178 | "type": "string" |
| 179 | } |
| 180 | }, |
| 181 | { |
| 182 | "name": "code_challenge_method", |
| 183 | "in": "query", |
| 184 | "required": false, |
| 185 | "schema": { |
| 186 | "type": "string" |
| 187 | } |
| 188 | } |
| 189 | ], |
| 190 | "responses": { |
| 191 | "302": { |
| 192 | "description": "Redirect to sign-in or back to the client redirect URI" |
| 193 | }, |
| 194 | "400": { |
| 195 | "description": "Invalid authorization request", |
| 196 | "content": { |
| 197 | "application/json": { |
| 198 | "schema": { |
| 199 | "$ref": "#/components/schemas/ErrorEnvelope" |
| 200 | } |
| 201 | } |
| 202 | } |
| 203 | } |
| 204 | } |
| 205 | } |
| 206 | }, |
| 207 | "/api/v1/oauth/token": { |
| 208 | "post": { |
| 209 | "tags": [ |
| 210 | "Auth" |
| 211 | ], |
| 212 | "summary": "Exchange an authorization code for tokens", |
| 213 | "operationId": "exchangeOauthAuthorizationCode", |
| 214 | "requestBody": { |
| 215 | "required": true, |
| 216 | "content": { |
| 217 | "application/json": { |
| 218 | "schema": { |
| 219 | "$ref": "#/components/schemas/OAuthTokenExchangeInput" |
| 220 | } |
| 221 | }, |
| 222 | "application/x-www-form-urlencoded": { |
| 223 | "schema": { |
| 224 | "$ref": "#/components/schemas/OAuthTokenExchangeInput" |
| 225 | } |
| 226 | } |
| 227 | } |
| 228 | }, |
| 229 | "responses": { |
| 230 | "200": { |
| 231 | "description": "Token response", |
| 232 | "content": { |
| 233 | "application/json": { |
| 234 | "schema": { |
| 235 | "$ref": "#/components/schemas/OAuthTokenResponse" |
| 236 | } |
| 237 | } |
| 238 | } |
| 239 | }, |
| 240 | "400": { |
| 241 | "description": "Invalid token request", |
| 242 | "content": { |
| 243 | "application/json": { |
| 244 | "schema": { |
| 245 | "$ref": "#/components/schemas/OAuthErrorResponse" |
| 246 | } |
| 247 | } |
| 248 | } |
| 249 | } |
| 250 | } |
| 251 | } |
| 252 | }, |
| 253 | "/api/v1/oauth/userinfo": { |
| 254 | "get": { |
| 255 | "tags": [ |
| 256 | "Auth" |
| 257 | ], |
| 258 | "summary": "Resolve OAuth userinfo", |
| 259 | "operationId": "getOauthUserInfo", |
| 260 | "security": [ |
| 261 | { |
| 262 | "bearerAuth": [] |
| 263 | } |
| 264 | ], |
| 265 | "responses": { |
| 266 | "200": { |
| 267 | "description": "User info", |
| 268 | "content": { |
| 269 | "application/json": { |
| 270 | "schema": { |
| 271 | "$ref": "#/components/schemas/OAuthUserInfoResponse" |
| 272 | } |
| 273 | } |
| 274 | } |
| 275 | }, |
| 276 | "401": { |
| 277 | "description": "Invalid token", |
| 278 | "content": { |
| 279 | "application/json": { |
| 280 | "schema": { |
| 281 | "$ref": "#/components/schemas/OAuthErrorResponse" |
| 282 | } |
| 283 | } |
| 284 | } |
| 285 | } |
| 286 | } |
| 287 | } |
| 288 | }, |
| 289 | "/api/v1/apps": { |
| 290 | "get": { |
| 291 | "tags": [ |
| 292 | "Store" |
| 293 | ], |
| 294 | "summary": "List store apps", |
| 295 | "operationId": "listStoreApps", |
| 296 | "responses": { |
| 297 | "200": { |
| 298 | "description": "Store apps", |
| 299 | "content": { |
| 300 | "application/json": { |
| 301 | "schema": { |
| 302 | "$ref": "#/components/schemas/StoreAppsResponse" |
| 303 | } |
| 304 | } |
| 305 | } |
| 306 | } |
| 307 | } |
| 308 | }, |
| 309 | "post": { |
| 310 | "tags": [ |
| 311 | "Publisher" |
| 312 | ], |
| 313 | "summary": "Register a new app and initial release", |
| 314 | "operationId": "registerApp", |
| 315 | "security": [ |
| 316 | { |
| 317 | "bearerAuth": [] |
| 318 | } |
| 319 | ], |
| 320 | "requestBody": { |
| 321 | "required": true, |
| 322 | "content": { |
| 323 | "application/json": { |
| 324 | "schema": { |
| 325 | "$ref": "#/components/schemas/RegisterAppInput" |
| 326 | } |
| 327 | } |
| 328 | } |
| 329 | }, |
| 330 | "responses": { |
| 331 | "201": { |
| 332 | "description": "Registered app", |
| 333 | "content": { |
| 334 | "application/json": { |
| 335 | "schema": { |
| 336 | "$ref": "#/components/schemas/AppVersionMutationResponse" |
| 337 | } |
| 338 | } |
| 339 | } |
| 340 | } |
| 341 | } |
| 342 | } |
| 343 | }, |
| 344 | "/api/v1/apps/{appKey}": { |
| 345 | "get": { |
| 346 | "tags": [ |
| 347 | "Store" |
| 348 | ], |
| 349 | "summary": "Get a store app", |
| 350 | "operationId": "getStoreApp", |
| 351 | "parameters": [ |
| 352 | { |
| 353 | "name": "appKey", |
| 354 | "in": "path", |
| 355 | "required": true, |
| 356 | "schema": { |
| 357 | "type": "string" |
| 358 | } |
| 359 | } |
| 360 | ], |
| 361 | "responses": { |
| 362 | "200": { |
| 363 | "description": "Store app detail", |
| 364 | "content": { |
| 365 | "application/json": { |
| 366 | "schema": { |
| 367 | "$ref": "#/components/schemas/StoreAppResponse" |
| 368 | } |
| 369 | } |
| 370 | } |
| 371 | }, |
| 372 | "404": { |
| 373 | "description": "App not found", |
| 374 | "content": { |
| 375 | "application/json": { |
| 376 | "schema": { |
| 377 | "$ref": "#/components/schemas/ErrorEnvelope" |
| 378 | } |
| 379 | } |
| 380 | } |
| 381 | } |
| 382 | } |
| 383 | } |
| 384 | }, |
| 385 | "/api/v1/apps/{appKey}/versions": { |
| 386 | "get": { |
| 387 | "tags": [ |
| 388 | "Store" |
| 389 | ], |
| 390 | "summary": "List approved versions for a store app", |
| 391 | "operationId": "listStoreAppVersions", |
| 392 | "parameters": [ |
| 393 | { |
| 394 | "name": "appKey", |
| 395 | "in": "path", |
| 396 | "required": true, |
| 397 | "schema": { |
| 398 | "type": "string" |
| 399 | } |
| 400 | } |
| 401 | ], |
| 402 | "responses": { |
| 403 | "200": { |
| 404 | "description": "Approved store app versions", |
| 405 | "content": { |
| 406 | "application/json": { |
| 407 | "schema": { |
| 408 | "$ref": "#/components/schemas/StoreAppVersionsResponse" |
| 409 | } |
| 410 | } |
| 411 | } |
| 412 | } |
| 413 | } |
| 414 | }, |
| 415 | "post": { |
| 416 | "tags": [ |
| 417 | "Publisher" |
| 418 | ], |
| 419 | "summary": "Create a new app version", |
| 420 | "operationId": "createAppVersion", |
| 421 | "security": [ |
| 422 | { |
| 423 | "bearerAuth": [] |
| 424 | } |
| 425 | ], |
| 426 | "parameters": [ |
| 427 | { |
| 428 | "name": "appKey", |
| 429 | "in": "path", |
| 430 | "required": true, |
| 431 | "schema": { |
| 432 | "type": "string" |
| 433 | } |
| 434 | } |
| 435 | ], |
| 436 | "requestBody": { |
| 437 | "required": true, |
| 438 | "content": { |
| 439 | "application/json": { |
| 440 | "schema": { |
| 441 | "$ref": "#/components/schemas/RegisterAppInput" |
| 442 | } |
| 443 | } |
| 444 | } |
| 445 | }, |
| 446 | "responses": { |
| 447 | "201": { |
| 448 | "description": "Created app version", |
| 449 | "content": { |
| 450 | "application/json": { |
| 451 | "schema": { |
| 452 | "$ref": "#/components/schemas/AppVersionMutationResponse" |
| 453 | } |
| 454 | } |
| 455 | } |
| 456 | } |
| 457 | } |
| 458 | } |
| 459 | }, |
| 460 | "/api/v1/apps/{appKey}/versions/{versionId}/submit": { |
| 461 | "post": { |
| 462 | "tags": [ |
| 463 | "Publisher" |
| 464 | ], |
| 465 | "summary": "Submit an app version for review", |
| 466 | "operationId": "submitAppVersionForReview", |
| 467 | "security": [ |
| 468 | { |
| 469 | "bearerAuth": [] |
| 470 | } |
| 471 | ], |
| 472 | "parameters": [ |
| 473 | { |
| 474 | "name": "appKey", |
| 475 | "in": "path", |
| 476 | "required": true, |
| 477 | "schema": { |
| 478 | "type": "string" |
| 479 | } |
| 480 | }, |
| 481 | { |
| 482 | "name": "versionId", |
| 483 | "in": "path", |
| 484 | "required": true, |
| 485 | "schema": { |
| 486 | "type": "string" |
| 487 | } |
| 488 | } |
| 489 | ], |
| 490 | "requestBody": { |
| 491 | "required": true, |
| 492 | "content": { |
| 493 | "application/json": { |
| 494 | "schema": { |
| 495 | "type": "object", |
| 496 | "properties": { |
| 497 | "storeListed": { |
| 498 | "type": "boolean" |
| 499 | } |
| 500 | } |
| 501 | } |
| 502 | } |
| 503 | } |
| 504 | }, |
| 505 | "responses": { |
| 506 | "200": { |
| 507 | "description": "Submitted app version", |
| 508 | "content": { |
| 509 | "application/json": { |
| 510 | "schema": { |
| 511 | "$ref": "#/components/schemas/SubmitAppVersionForReviewResponse" |
| 512 | } |
| 513 | } |
| 514 | } |
| 515 | } |
| 516 | } |
| 517 | } |
| 518 | }, |
| 519 | "/api/v1/workspaces/{workspaceSlug}/apps": { |
| 520 | "get": { |
| 521 | "tags": [ |
| 522 | "Workspace installs" |
| 523 | ], |
| 524 | "summary": "List installed apps and workspace-visible catalog", |
| 525 | "operationId": "listWorkspaceApps", |
| 526 | "security": [ |
| 527 | { |
| 528 | "bearerAuth": [] |
| 529 | } |
| 530 | ], |
| 531 | "parameters": [ |
| 532 | { |
| 533 | "name": "workspaceSlug", |
| 534 | "in": "path", |
| 535 | "required": true, |
| 536 | "schema": { |
| 537 | "type": "string" |
| 538 | } |
| 539 | } |
| 540 | ], |
| 541 | "responses": { |
| 542 | "200": { |
| 543 | "description": "Workspace app data", |
| 544 | "content": { |
| 545 | "application/json": { |
| 546 | "schema": { |
| 547 | "$ref": "#/components/schemas/WorkspaceAppsResponse" |
| 548 | } |
| 549 | } |
| 550 | } |
| 551 | } |
| 552 | } |
| 553 | }, |
| 554 | "post": { |
| 555 | "tags": [ |
| 556 | "Workspace installs" |
| 557 | ], |
| 558 | "summary": "Install an app into a workspace", |
| 559 | "operationId": "installWorkspaceApp", |
| 560 | "security": [ |
| 561 | { |
| 562 | "bearerAuth": [] |
| 563 | } |
| 564 | ], |
| 565 | "parameters": [ |
| 566 | { |
| 567 | "name": "workspaceSlug", |
| 568 | "in": "path", |
| 569 | "required": true, |
| 570 | "schema": { |
| 571 | "type": "string" |
| 572 | } |
| 573 | } |
| 574 | ], |
| 575 | "requestBody": { |
| 576 | "required": true, |
| 577 | "content": { |
| 578 | "application/json": { |
| 579 | "schema": { |
| 580 | "$ref": "#/components/schemas/InstallWorkspaceAppInput" |
| 581 | } |
| 582 | } |
| 583 | } |
| 584 | }, |
| 585 | "responses": { |
| 586 | "201": { |
| 587 | "description": "Installed app", |
| 588 | "content": { |
| 589 | "application/json": { |
| 590 | "schema": { |
| 591 | "$ref": "#/components/schemas/InstallWorkspaceAppResponse" |
| 592 | } |
| 593 | } |
| 594 | } |
| 595 | } |
| 596 | } |
| 597 | } |
| 598 | }, |
| 599 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}": { |
| 600 | "get": { |
| 601 | "tags": [ |
| 602 | "Workspace installs" |
| 603 | ], |
| 604 | "summary": "Get an installed workspace app", |
| 605 | "operationId": "getWorkspaceInstalledApp", |
| 606 | "security": [ |
| 607 | { |
| 608 | "bearerAuth": [] |
| 609 | } |
| 610 | ], |
| 611 | "parameters": [ |
| 612 | { |
| 613 | "name": "workspaceSlug", |
| 614 | "in": "path", |
| 615 | "required": true, |
| 616 | "schema": { |
| 617 | "type": "string" |
| 618 | } |
| 619 | }, |
| 620 | { |
| 621 | "name": "appKey", |
| 622 | "in": "path", |
| 623 | "required": true, |
| 624 | "schema": { |
| 625 | "type": "string" |
| 626 | } |
| 627 | } |
| 628 | ], |
| 629 | "responses": { |
| 630 | "200": { |
| 631 | "description": "Installed app", |
| 632 | "content": { |
| 633 | "application/json": { |
| 634 | "schema": { |
| 635 | "$ref": "#/components/schemas/WorkspaceInstalledAppResponse" |
| 636 | } |
| 637 | } |
| 638 | } |
| 639 | } |
| 640 | } |
| 641 | }, |
| 642 | "delete": { |
| 643 | "tags": [ |
| 644 | "Workspace installs" |
| 645 | ], |
| 646 | "summary": "Uninstall a workspace app", |
| 647 | "operationId": "uninstallWorkspaceApp", |
| 648 | "security": [ |
| 649 | { |
| 650 | "bearerAuth": [] |
| 651 | } |
| 652 | ], |
| 653 | "parameters": [ |
| 654 | { |
| 655 | "name": "workspaceSlug", |
| 656 | "in": "path", |
| 657 | "required": true, |
| 658 | "schema": { |
| 659 | "type": "string" |
| 660 | } |
| 661 | }, |
| 662 | { |
| 663 | "name": "appKey", |
| 664 | "in": "path", |
| 665 | "required": true, |
| 666 | "schema": { |
| 667 | "type": "string" |
| 668 | } |
| 669 | } |
| 670 | ], |
| 671 | "responses": { |
| 672 | "200": { |
| 673 | "description": "App uninstalled", |
| 674 | "content": { |
| 675 | "application/json": { |
| 676 | "schema": { |
| 677 | "$ref": "#/components/schemas/OkResponse" |
| 678 | } |
| 679 | } |
| 680 | } |
| 681 | } |
| 682 | } |
| 683 | } |
| 684 | }, |
| 685 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/permissions": { |
| 686 | "get": { |
| 687 | "tags": [ |
| 688 | "Workspace installs" |
| 689 | ], |
| 690 | "summary": "Get granted workspace app permissions", |
| 691 | "operationId": "getWorkspaceAppPermissions", |
| 692 | "security": [ |
| 693 | { |
| 694 | "bearerAuth": [] |
| 695 | } |
| 696 | ], |
| 697 | "parameters": [ |
| 698 | { |
| 699 | "name": "workspaceSlug", |
| 700 | "in": "path", |
| 701 | "required": true, |
| 702 | "schema": { |
| 703 | "type": "string" |
| 704 | } |
| 705 | }, |
| 706 | { |
| 707 | "name": "appKey", |
| 708 | "in": "path", |
| 709 | "required": true, |
| 710 | "schema": { |
| 711 | "type": "string" |
| 712 | } |
| 713 | } |
| 714 | ], |
| 715 | "responses": { |
| 716 | "200": { |
| 717 | "description": "Workspace app permissions", |
| 718 | "content": { |
| 719 | "application/json": { |
| 720 | "schema": { |
| 721 | "$ref": "#/components/schemas/WorkspaceAppPermissionsResponse" |
| 722 | } |
| 723 | } |
| 724 | } |
| 725 | } |
| 726 | } |
| 727 | }, |
| 728 | "put": { |
| 729 | "tags": [ |
| 730 | "Workspace installs" |
| 731 | ], |
| 732 | "summary": "Update granted workspace app permissions", |
| 733 | "operationId": "updateWorkspaceAppPermissions", |
| 734 | "security": [ |
| 735 | { |
| 736 | "bearerAuth": [] |
| 737 | } |
| 738 | ], |
| 739 | "parameters": [ |
| 740 | { |
| 741 | "name": "workspaceSlug", |
| 742 | "in": "path", |
| 743 | "required": true, |
| 744 | "schema": { |
| 745 | "type": "string" |
| 746 | } |
| 747 | }, |
| 748 | { |
| 749 | "name": "appKey", |
| 750 | "in": "path", |
| 751 | "required": true, |
| 752 | "schema": { |
| 753 | "type": "string" |
| 754 | } |
| 755 | } |
| 756 | ], |
| 757 | "requestBody": { |
| 758 | "required": true, |
| 759 | "content": { |
| 760 | "application/json": { |
| 761 | "schema": { |
| 762 | "type": "object", |
| 763 | "required": [ |
| 764 | "grantedPermissions" |
| 765 | ], |
| 766 | "properties": { |
| 767 | "grantedPermissions": { |
| 768 | "type": "array", |
| 769 | "items": { |
| 770 | "type": "string" |
| 771 | } |
| 772 | } |
| 773 | } |
| 774 | } |
| 775 | } |
| 776 | } |
| 777 | }, |
| 778 | "responses": { |
| 779 | "200": { |
| 780 | "description": "Updated permissions", |
| 781 | "content": { |
| 782 | "application/json": { |
| 783 | "schema": { |
| 784 | "$ref": "#/components/schemas/WorkspaceAppPermissionsResponse" |
| 785 | } |
| 786 | } |
| 787 | } |
| 788 | } |
| 789 | } |
| 790 | } |
| 791 | }, |
| 792 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/secrets": { |
| 793 | "get": { |
| 794 | "tags": [ |
| 795 | "Workspace installs" |
| 796 | ], |
| 797 | "summary": "List app secrets", |
| 798 | "operationId": "listWorkspaceAppSecrets", |
| 799 | "security": [ |
| 800 | { |
| 801 | "bearerAuth": [] |
| 802 | } |
| 803 | ], |
| 804 | "parameters": [ |
| 805 | { |
| 806 | "name": "workspaceSlug", |
| 807 | "in": "path", |
| 808 | "required": true, |
| 809 | "schema": { |
| 810 | "type": "string" |
| 811 | } |
| 812 | }, |
| 813 | { |
| 814 | "name": "appKey", |
| 815 | "in": "path", |
| 816 | "required": true, |
| 817 | "schema": { |
| 818 | "type": "string" |
| 819 | } |
| 820 | } |
| 821 | ], |
| 822 | "responses": { |
| 823 | "200": { |
| 824 | "description": "App secrets", |
| 825 | "content": { |
| 826 | "application/json": { |
| 827 | "schema": { |
| 828 | "$ref": "#/components/schemas/WorkspaceAppSecretsResponse" |
| 829 | } |
| 830 | } |
| 831 | } |
| 832 | } |
| 833 | } |
| 834 | }, |
| 835 | "post": { |
| 836 | "tags": [ |
| 837 | "Workspace installs" |
| 838 | ], |
| 839 | "summary": "Create or rotate app secret", |
| 840 | "operationId": "createWorkspaceAppSecret", |
| 841 | "security": [ |
| 842 | { |
| 843 | "bearerAuth": [] |
| 844 | } |
| 845 | ], |
| 846 | "parameters": [ |
| 847 | { |
| 848 | "name": "workspaceSlug", |
| 849 | "in": "path", |
| 850 | "required": true, |
| 851 | "schema": { |
| 852 | "type": "string" |
| 853 | } |
| 854 | }, |
| 855 | { |
| 856 | "name": "appKey", |
| 857 | "in": "path", |
| 858 | "required": true, |
| 859 | "schema": { |
| 860 | "type": "string" |
| 861 | } |
| 862 | } |
| 863 | ], |
| 864 | "requestBody": { |
| 865 | "required": true, |
| 866 | "content": { |
| 867 | "application/json": { |
| 868 | "schema": { |
| 869 | "type": "object", |
| 870 | "required": [ |
| 871 | "key", |
| 872 | "value" |
| 873 | ], |
| 874 | "properties": { |
| 875 | "key": { |
| 876 | "type": "string" |
| 877 | }, |
| 878 | "value": { |
| 879 | "type": "string" |
| 880 | } |
| 881 | } |
| 882 | } |
| 883 | } |
| 884 | } |
| 885 | }, |
| 886 | "responses": { |
| 887 | "201": { |
| 888 | "description": "App secret stored", |
| 889 | "content": { |
| 890 | "application/json": { |
| 891 | "schema": { |
| 892 | "$ref": "#/components/schemas/CreateWorkspaceAppSecretResponse" |
| 893 | } |
| 894 | } |
| 895 | } |
| 896 | } |
| 897 | } |
| 898 | } |
| 899 | }, |
| 900 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/secrets/{secretId}": { |
| 901 | "delete": { |
| 902 | "tags": [ |
| 903 | "Workspace installs" |
| 904 | ], |
| 905 | "summary": "Delete app secret", |
| 906 | "operationId": "deleteWorkspaceAppSecret", |
| 907 | "security": [ |
| 908 | { |
| 909 | "bearerAuth": [] |
| 910 | } |
| 911 | ], |
| 912 | "parameters": [ |
| 913 | { |
| 914 | "name": "workspaceSlug", |
| 915 | "in": "path", |
| 916 | "required": true, |
| 917 | "schema": { |
| 918 | "type": "string" |
| 919 | } |
| 920 | }, |
| 921 | { |
| 922 | "name": "appKey", |
| 923 | "in": "path", |
| 924 | "required": true, |
| 925 | "schema": { |
| 926 | "type": "string" |
| 927 | } |
| 928 | }, |
| 929 | { |
| 930 | "name": "secretId", |
| 931 | "in": "path", |
| 932 | "required": true, |
| 933 | "schema": { |
| 934 | "type": "string" |
| 935 | } |
| 936 | } |
| 937 | ], |
| 938 | "responses": { |
| 939 | "200": { |
| 940 | "description": "App secret deleted", |
| 941 | "content": { |
| 942 | "application/json": { |
| 943 | "schema": { |
| 944 | "$ref": "#/components/schemas/OkResponse" |
| 945 | } |
| 946 | } |
| 947 | } |
| 948 | } |
| 949 | } |
| 950 | } |
| 951 | }, |
| 952 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/oauth-connections": { |
| 953 | "get": { |
| 954 | "tags": [ |
| 955 | "Workspace installs" |
| 956 | ], |
| 957 | "summary": "List app OAuth connections", |
| 958 | "operationId": "listWorkspaceAppOauthConnections", |
| 959 | "security": [ |
| 960 | { |
| 961 | "bearerAuth": [] |
| 962 | } |
| 963 | ], |
| 964 | "parameters": [ |
| 965 | { |
| 966 | "name": "workspaceSlug", |
| 967 | "in": "path", |
| 968 | "required": true, |
| 969 | "schema": { |
| 970 | "type": "string" |
| 971 | } |
| 972 | }, |
| 973 | { |
| 974 | "name": "appKey", |
| 975 | "in": "path", |
| 976 | "required": true, |
| 977 | "schema": { |
| 978 | "type": "string" |
| 979 | } |
| 980 | } |
| 981 | ], |
| 982 | "responses": { |
| 983 | "200": { |
| 984 | "description": "App OAuth connections", |
| 985 | "content": { |
| 986 | "application/json": { |
| 987 | "schema": { |
| 988 | "$ref": "#/components/schemas/WorkspaceAppOauthConnectionsResponse" |
| 989 | } |
| 990 | } |
| 991 | } |
| 992 | } |
| 993 | } |
| 994 | }, |
| 995 | "post": { |
| 996 | "tags": [ |
| 997 | "Workspace installs" |
| 998 | ], |
| 999 | "summary": "Create or update app OAuth connection", |
| 1000 | "operationId": "createWorkspaceAppOauthConnection", |
| 1001 | "security": [ |
| 1002 | { |
| 1003 | "bearerAuth": [] |
| 1004 | } |
| 1005 | ], |
| 1006 | "parameters": [ |
| 1007 | { |
| 1008 | "name": "workspaceSlug", |
| 1009 | "in": "path", |
| 1010 | "required": true, |
| 1011 | "schema": { |
| 1012 | "type": "string" |
| 1013 | } |
| 1014 | }, |
| 1015 | { |
| 1016 | "name": "appKey", |
| 1017 | "in": "path", |
| 1018 | "required": true, |
| 1019 | "schema": { |
| 1020 | "type": "string" |
| 1021 | } |
| 1022 | } |
| 1023 | ], |
| 1024 | "requestBody": { |
| 1025 | "required": true, |
| 1026 | "content": { |
| 1027 | "application/json": { |
| 1028 | "schema": { |
| 1029 | "type": "object", |
| 1030 | "required": [ |
| 1031 | "providerKey", |
| 1032 | "accessToken", |
| 1033 | "scopes" |
| 1034 | ], |
| 1035 | "properties": { |
| 1036 | "providerKey": { |
| 1037 | "type": "string" |
| 1038 | }, |
| 1039 | "externalAccountId": { |
| 1040 | "type": "string" |
| 1041 | }, |
| 1042 | "accessToken": { |
| 1043 | "type": "string" |
| 1044 | }, |
| 1045 | "refreshToken": { |
| 1046 | "type": "string" |
| 1047 | }, |
| 1048 | "scopes": { |
| 1049 | "type": "array", |
| 1050 | "items": { |
| 1051 | "type": "string" |
| 1052 | } |
| 1053 | }, |
| 1054 | "tokenExpiresAt": { |
| 1055 | "type": "string", |
| 1056 | "format": "date-time" |
| 1057 | }, |
| 1058 | "metadata": { |
| 1059 | "type": "object", |
| 1060 | "additionalProperties": true |
| 1061 | } |
| 1062 | } |
| 1063 | } |
| 1064 | } |
| 1065 | } |
| 1066 | }, |
| 1067 | "responses": { |
| 1068 | "201": { |
| 1069 | "description": "App OAuth connection stored", |
| 1070 | "content": { |
| 1071 | "application/json": { |
| 1072 | "schema": { |
| 1073 | "$ref": "#/components/schemas/CreateWorkspaceAppOauthConnectionResponse" |
| 1074 | } |
| 1075 | } |
| 1076 | } |
| 1077 | } |
| 1078 | } |
| 1079 | } |
| 1080 | }, |
| 1081 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/oauth-connections/{connectionId}": { |
| 1082 | "delete": { |
| 1083 | "tags": [ |
| 1084 | "Workspace installs" |
| 1085 | ], |
| 1086 | "summary": "Delete app OAuth connection", |
| 1087 | "operationId": "deleteWorkspaceAppOauthConnection", |
| 1088 | "security": [ |
| 1089 | { |
| 1090 | "bearerAuth": [] |
| 1091 | } |
| 1092 | ], |
| 1093 | "parameters": [ |
| 1094 | { |
| 1095 | "name": "workspaceSlug", |
| 1096 | "in": "path", |
| 1097 | "required": true, |
| 1098 | "schema": { |
| 1099 | "type": "string" |
| 1100 | } |
| 1101 | }, |
| 1102 | { |
| 1103 | "name": "appKey", |
| 1104 | "in": "path", |
| 1105 | "required": true, |
| 1106 | "schema": { |
| 1107 | "type": "string" |
| 1108 | } |
| 1109 | }, |
| 1110 | { |
| 1111 | "name": "connectionId", |
| 1112 | "in": "path", |
| 1113 | "required": true, |
| 1114 | "schema": { |
| 1115 | "type": "string" |
| 1116 | } |
| 1117 | } |
| 1118 | ], |
| 1119 | "responses": { |
| 1120 | "200": { |
| 1121 | "description": "App OAuth connection deleted", |
| 1122 | "content": { |
| 1123 | "application/json": { |
| 1124 | "schema": { |
| 1125 | "$ref": "#/components/schemas/OkResponse" |
| 1126 | } |
| 1127 | } |
| 1128 | } |
| 1129 | } |
| 1130 | } |
| 1131 | } |
| 1132 | }, |
| 1133 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/deliveries": { |
| 1134 | "get": { |
| 1135 | "tags": [ |
| 1136 | "Workspace installs" |
| 1137 | ], |
| 1138 | "summary": "List app deliveries", |
| 1139 | "operationId": "listWorkspaceAppDeliveries", |
| 1140 | "security": [ |
| 1141 | { |
| 1142 | "bearerAuth": [] |
| 1143 | } |
| 1144 | ], |
| 1145 | "parameters": [ |
| 1146 | { |
| 1147 | "name": "workspaceSlug", |
| 1148 | "in": "path", |
| 1149 | "required": true, |
| 1150 | "schema": { |
| 1151 | "type": "string" |
| 1152 | } |
| 1153 | }, |
| 1154 | { |
| 1155 | "name": "appKey", |
| 1156 | "in": "path", |
| 1157 | "required": true, |
| 1158 | "schema": { |
| 1159 | "type": "string" |
| 1160 | } |
| 1161 | } |
| 1162 | ], |
| 1163 | "responses": { |
| 1164 | "200": { |
| 1165 | "description": "App deliveries", |
| 1166 | "content": { |
| 1167 | "application/json": { |
| 1168 | "schema": { |
| 1169 | "$ref": "#/components/schemas/WorkspaceAppDeliveriesResponse" |
| 1170 | } |
| 1171 | } |
| 1172 | } |
| 1173 | } |
| 1174 | } |
| 1175 | }, |
| 1176 | "post": { |
| 1177 | "tags": [ |
| 1178 | "Workspace installs" |
| 1179 | ], |
| 1180 | "summary": "Send a signed test delivery", |
| 1181 | "operationId": "sendWorkspaceAppTestDelivery", |
| 1182 | "security": [ |
| 1183 | { |
| 1184 | "bearerAuth": [] |
| 1185 | } |
| 1186 | ], |
| 1187 | "parameters": [ |
| 1188 | { |
| 1189 | "name": "workspaceSlug", |
| 1190 | "in": "path", |
| 1191 | "required": true, |
| 1192 | "schema": { |
| 1193 | "type": "string" |
| 1194 | } |
| 1195 | }, |
| 1196 | { |
| 1197 | "name": "appKey", |
| 1198 | "in": "path", |
| 1199 | "required": true, |
| 1200 | "schema": { |
| 1201 | "type": "string" |
| 1202 | } |
| 1203 | } |
| 1204 | ], |
| 1205 | "requestBody": { |
| 1206 | "required": true, |
| 1207 | "content": { |
| 1208 | "application/json": { |
| 1209 | "schema": { |
| 1210 | "type": "object", |
| 1211 | "required": [ |
| 1212 | "eventType", |
| 1213 | "payload" |
| 1214 | ], |
| 1215 | "properties": { |
| 1216 | "eventType": { |
| 1217 | "type": "string" |
| 1218 | }, |
| 1219 | "targetUrl": { |
| 1220 | "type": "string" |
| 1221 | }, |
| 1222 | "payload": { |
| 1223 | "type": "object", |
| 1224 | "additionalProperties": true |
| 1225 | } |
| 1226 | } |
| 1227 | } |
| 1228 | } |
| 1229 | } |
| 1230 | }, |
| 1231 | "responses": { |
| 1232 | "201": { |
| 1233 | "description": "Test delivery recorded", |
| 1234 | "content": { |
| 1235 | "application/json": { |
| 1236 | "schema": { |
| 1237 | "$ref": "#/components/schemas/SendWorkspaceAppTestDeliveryResponse" |
| 1238 | } |
| 1239 | } |
| 1240 | } |
| 1241 | } |
| 1242 | } |
| 1243 | } |
| 1244 | }, |
| 1245 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/deliveries/{deliveryId}/replay": { |
| 1246 | "post": { |
| 1247 | "tags": [ |
| 1248 | "Workspace installs" |
| 1249 | ], |
| 1250 | "summary": "Replay a stored app delivery", |
| 1251 | "operationId": "replayWorkspaceAppDelivery", |
| 1252 | "security": [ |
| 1253 | { |
| 1254 | "bearerAuth": [] |
| 1255 | } |
| 1256 | ], |
| 1257 | "parameters": [ |
| 1258 | { |
| 1259 | "name": "workspaceSlug", |
| 1260 | "in": "path", |
| 1261 | "required": true, |
| 1262 | "schema": { |
| 1263 | "type": "string" |
| 1264 | } |
| 1265 | }, |
| 1266 | { |
| 1267 | "name": "appKey", |
| 1268 | "in": "path", |
| 1269 | "required": true, |
| 1270 | "schema": { |
| 1271 | "type": "string" |
| 1272 | } |
| 1273 | }, |
| 1274 | { |
| 1275 | "name": "deliveryId", |
| 1276 | "in": "path", |
| 1277 | "required": true, |
| 1278 | "schema": { |
| 1279 | "type": "string" |
| 1280 | } |
| 1281 | } |
| 1282 | ], |
| 1283 | "responses": { |
| 1284 | "200": { |
| 1285 | "description": "Delivery replayed", |
| 1286 | "content": { |
| 1287 | "application/json": { |
| 1288 | "schema": { |
| 1289 | "$ref": "#/components/schemas/SendWorkspaceAppTestDeliveryResponse" |
| 1290 | } |
| 1291 | } |
| 1292 | } |
| 1293 | } |
| 1294 | } |
| 1295 | } |
| 1296 | }, |
| 1297 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/files/{fileId}": { |
| 1298 | "get": { |
| 1299 | "tags": [ |
| 1300 | "Runtime" |
| 1301 | ], |
| 1302 | "summary": "Read an app-backed file document", |
| 1303 | "operationId": "getAppFileDocument", |
| 1304 | "security": [ |
| 1305 | { |
| 1306 | "bearerAuth": [] |
| 1307 | } |
| 1308 | ], |
| 1309 | "parameters": [ |
| 1310 | { |
| 1311 | "name": "workspaceSlug", |
| 1312 | "in": "path", |
| 1313 | "required": true, |
| 1314 | "schema": { |
| 1315 | "type": "string" |
| 1316 | } |
| 1317 | }, |
| 1318 | { |
| 1319 | "name": "appKey", |
| 1320 | "in": "path", |
| 1321 | "required": true, |
| 1322 | "schema": { |
| 1323 | "type": "string" |
| 1324 | } |
| 1325 | }, |
| 1326 | { |
| 1327 | "name": "fileId", |
| 1328 | "in": "path", |
| 1329 | "required": true, |
| 1330 | "schema": { |
| 1331 | "type": "string" |
| 1332 | } |
| 1333 | } |
| 1334 | ], |
| 1335 | "responses": { |
| 1336 | "200": { |
| 1337 | "description": "App-backed file document", |
| 1338 | "content": { |
| 1339 | "application/json": { |
| 1340 | "schema": { |
| 1341 | "$ref": "#/components/schemas/AppFileDocumentResponse" |
| 1342 | } |
| 1343 | } |
| 1344 | } |
| 1345 | } |
| 1346 | } |
| 1347 | }, |
| 1348 | "patch": { |
| 1349 | "tags": [ |
| 1350 | "Runtime" |
| 1351 | ], |
| 1352 | "summary": "Update an app-backed file document", |
| 1353 | "operationId": "updateAppFileDocument", |
| 1354 | "security": [ |
| 1355 | { |
| 1356 | "bearerAuth": [] |
| 1357 | } |
| 1358 | ], |
| 1359 | "parameters": [ |
| 1360 | { |
| 1361 | "name": "workspaceSlug", |
| 1362 | "in": "path", |
| 1363 | "required": true, |
| 1364 | "schema": { |
| 1365 | "type": "string" |
| 1366 | } |
| 1367 | }, |
| 1368 | { |
| 1369 | "name": "appKey", |
| 1370 | "in": "path", |
| 1371 | "required": true, |
| 1372 | "schema": { |
| 1373 | "type": "string" |
| 1374 | } |
| 1375 | }, |
| 1376 | { |
| 1377 | "name": "fileId", |
| 1378 | "in": "path", |
| 1379 | "required": true, |
| 1380 | "schema": { |
| 1381 | "type": "string" |
| 1382 | } |
| 1383 | } |
| 1384 | ], |
| 1385 | "requestBody": { |
| 1386 | "required": true, |
| 1387 | "content": { |
| 1388 | "application/json": { |
| 1389 | "schema": { |
| 1390 | "type": "object", |
| 1391 | "required": [ |
| 1392 | "document" |
| 1393 | ], |
| 1394 | "properties": { |
| 1395 | "document": { |
| 1396 | "type": "object", |
| 1397 | "additionalProperties": true |
| 1398 | } |
| 1399 | } |
| 1400 | } |
| 1401 | } |
| 1402 | } |
| 1403 | }, |
| 1404 | "responses": { |
| 1405 | "200": { |
| 1406 | "description": "Updated app-backed file document", |
| 1407 | "content": { |
| 1408 | "application/json": { |
| 1409 | "schema": { |
| 1410 | "$ref": "#/components/schemas/AppFileDocumentUpdateResponse" |
| 1411 | } |
| 1412 | } |
| 1413 | } |
| 1414 | } |
| 1415 | } |
| 1416 | } |
| 1417 | }, |
| 1418 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/notifications": { |
| 1419 | "post": { |
| 1420 | "tags": [ |
| 1421 | "Runtime" |
| 1422 | ], |
| 1423 | "summary": "Create an app notification", |
| 1424 | "operationId": "createAppNotification", |
| 1425 | "security": [ |
| 1426 | { |
| 1427 | "bearerAuth": [] |
| 1428 | } |
| 1429 | ], |
| 1430 | "parameters": [ |
| 1431 | { |
| 1432 | "name": "workspaceSlug", |
| 1433 | "in": "path", |
| 1434 | "required": true, |
| 1435 | "schema": { |
| 1436 | "type": "string" |
| 1437 | } |
| 1438 | }, |
| 1439 | { |
| 1440 | "name": "appKey", |
| 1441 | "in": "path", |
| 1442 | "required": true, |
| 1443 | "schema": { |
| 1444 | "type": "string" |
| 1445 | } |
| 1446 | } |
| 1447 | ], |
| 1448 | "requestBody": { |
| 1449 | "required": true, |
| 1450 | "content": { |
| 1451 | "application/json": { |
| 1452 | "schema": { |
| 1453 | "$ref": "#/components/schemas/CreateAppNotificationInput" |
| 1454 | } |
| 1455 | } |
| 1456 | } |
| 1457 | }, |
| 1458 | "responses": { |
| 1459 | "201": { |
| 1460 | "description": "Notification created", |
| 1461 | "content": { |
| 1462 | "application/json": { |
| 1463 | "schema": { |
| 1464 | "$ref": "#/components/schemas/OkResponse" |
| 1465 | } |
| 1466 | } |
| 1467 | } |
| 1468 | } |
| 1469 | } |
| 1470 | } |
| 1471 | }, |
| 1472 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/index-documents": { |
| 1473 | "post": { |
| 1474 | "tags": [ |
| 1475 | "Runtime" |
| 1476 | ], |
| 1477 | "summary": "Upsert app index documents", |
| 1478 | "operationId": "upsertAppIndexDocuments", |
| 1479 | "security": [ |
| 1480 | { |
| 1481 | "bearerAuth": [] |
| 1482 | } |
| 1483 | ], |
| 1484 | "parameters": [ |
| 1485 | { |
| 1486 | "name": "workspaceSlug", |
| 1487 | "in": "path", |
| 1488 | "required": true, |
| 1489 | "schema": { |
| 1490 | "type": "string" |
| 1491 | } |
| 1492 | }, |
| 1493 | { |
| 1494 | "name": "appKey", |
| 1495 | "in": "path", |
| 1496 | "required": true, |
| 1497 | "schema": { |
| 1498 | "type": "string" |
| 1499 | } |
| 1500 | } |
| 1501 | ], |
| 1502 | "requestBody": { |
| 1503 | "required": true, |
| 1504 | "content": { |
| 1505 | "application/json": { |
| 1506 | "schema": { |
| 1507 | "$ref": "#/components/schemas/UpsertAppIndexDocumentsInput" |
| 1508 | } |
| 1509 | } |
| 1510 | } |
| 1511 | }, |
| 1512 | "responses": { |
| 1513 | "201": { |
| 1514 | "description": "Index documents upserted", |
| 1515 | "content": { |
| 1516 | "application/json": { |
| 1517 | "schema": { |
| 1518 | "$ref": "#/components/schemas/UpsertAppIndexDocumentsResponse" |
| 1519 | } |
| 1520 | } |
| 1521 | } |
| 1522 | } |
| 1523 | } |
| 1524 | }, |
| 1525 | "delete": { |
| 1526 | "tags": [ |
| 1527 | "Runtime" |
| 1528 | ], |
| 1529 | "summary": "Delete app index documents", |
| 1530 | "operationId": "deleteAppIndexDocuments", |
| 1531 | "security": [ |
| 1532 | { |
| 1533 | "bearerAuth": [] |
| 1534 | } |
| 1535 | ], |
| 1536 | "parameters": [ |
| 1537 | { |
| 1538 | "name": "workspaceSlug", |
| 1539 | "in": "path", |
| 1540 | "required": true, |
| 1541 | "schema": { |
| 1542 | "type": "string" |
| 1543 | } |
| 1544 | }, |
| 1545 | { |
| 1546 | "name": "appKey", |
| 1547 | "in": "path", |
| 1548 | "required": true, |
| 1549 | "schema": { |
| 1550 | "type": "string" |
| 1551 | } |
| 1552 | } |
| 1553 | ], |
| 1554 | "requestBody": { |
| 1555 | "required": true, |
| 1556 | "content": { |
| 1557 | "application/json": { |
| 1558 | "schema": { |
| 1559 | "$ref": "#/components/schemas/DeleteAppIndexDocumentsInput" |
| 1560 | } |
| 1561 | } |
| 1562 | } |
| 1563 | }, |
| 1564 | "responses": { |
| 1565 | "200": { |
| 1566 | "description": "Index documents deleted", |
| 1567 | "content": { |
| 1568 | "application/json": { |
| 1569 | "schema": { |
| 1570 | "$ref": "#/components/schemas/DeleteAppIndexDocumentsResponse" |
| 1571 | } |
| 1572 | } |
| 1573 | } |
| 1574 | } |
| 1575 | } |
| 1576 | } |
| 1577 | }, |
| 1578 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/ambient/events": { |
| 1579 | "post": { |
| 1580 | "tags": [ |
| 1581 | "Runtime" |
| 1582 | ], |
| 1583 | "summary": "Emit app ambient events", |
| 1584 | "operationId": "emitAppAmbientEvents", |
| 1585 | "security": [ |
| 1586 | { |
| 1587 | "bearerAuth": [] |
| 1588 | } |
| 1589 | ], |
| 1590 | "parameters": [ |
| 1591 | { |
| 1592 | "name": "workspaceSlug", |
| 1593 | "in": "path", |
| 1594 | "required": true, |
| 1595 | "schema": { |
| 1596 | "type": "string" |
| 1597 | } |
| 1598 | }, |
| 1599 | { |
| 1600 | "name": "appKey", |
| 1601 | "in": "path", |
| 1602 | "required": true, |
| 1603 | "schema": { |
| 1604 | "type": "string" |
| 1605 | } |
| 1606 | } |
| 1607 | ], |
| 1608 | "requestBody": { |
| 1609 | "required": true, |
| 1610 | "content": { |
| 1611 | "application/json": { |
| 1612 | "schema": { |
| 1613 | "$ref": "#/components/schemas/EmitAppAmbientEventsInput" |
| 1614 | } |
| 1615 | } |
| 1616 | } |
| 1617 | }, |
| 1618 | "responses": { |
| 1619 | "201": { |
| 1620 | "description": "Ambient events accepted", |
| 1621 | "content": { |
| 1622 | "application/json": { |
| 1623 | "schema": { |
| 1624 | "$ref": "#/components/schemas/EmitAppAmbientEventsResponse" |
| 1625 | } |
| 1626 | } |
| 1627 | } |
| 1628 | } |
| 1629 | } |
| 1630 | } |
| 1631 | } |
| 1632 | }, |
| 1633 | "components": { |
| 1634 | "securitySchemes": { |
| 1635 | "bearerAuth": { |
| 1636 | "type": "http", |
| 1637 | "scheme": "bearer", |
| 1638 | "bearerFormat": "API key or session-backed bearer token" |
| 1639 | } |
| 1640 | }, |
| 1641 | "schemas": { |
| 1642 | "ErrorEnvelope": { |
| 1643 | "type": "object", |
| 1644 | "required": [ |
| 1645 | "error" |
| 1646 | ], |
| 1647 | "properties": { |
| 1648 | "error": { |
| 1649 | "type": "object", |
| 1650 | "required": [ |
| 1651 | "code", |
| 1652 | "message" |
| 1653 | ], |
| 1654 | "properties": { |
| 1655 | "code": { |
| 1656 | "type": "string" |
| 1657 | }, |
| 1658 | "message": { |
| 1659 | "type": "string" |
| 1660 | } |
| 1661 | } |
| 1662 | } |
| 1663 | } |
| 1664 | }, |
| 1665 | "OAuthErrorResponse": { |
| 1666 | "type": "object", |
| 1667 | "required": [ |
| 1668 | "error", |
| 1669 | "error_description" |
| 1670 | ], |
| 1671 | "properties": { |
| 1672 | "error": { |
| 1673 | "type": "string" |
| 1674 | }, |
| 1675 | "error_description": { |
| 1676 | "type": "string" |
| 1677 | } |
| 1678 | } |
| 1679 | }, |
| 1680 | "OAuthTokenExchangeInput": { |
| 1681 | "type": "object", |
| 1682 | "required": [ |
| 1683 | "grant_type", |
| 1684 | "client_id", |
| 1685 | "client_secret", |
| 1686 | "code", |
| 1687 | "redirect_uri" |
| 1688 | ], |
| 1689 | "properties": { |
| 1690 | "grant_type": { |
| 1691 | "type": "string", |
| 1692 | "const": "authorization_code" |
| 1693 | }, |
| 1694 | "client_id": { |
| 1695 | "type": "string" |
| 1696 | }, |
| 1697 | "client_secret": { |
| 1698 | "type": "string" |
| 1699 | }, |
| 1700 | "code": { |
| 1701 | "type": "string" |
| 1702 | }, |
| 1703 | "redirect_uri": { |
| 1704 | "type": "string", |
| 1705 | "format": "uri" |
| 1706 | }, |
| 1707 | "code_verifier": { |
| 1708 | "type": "string" |
| 1709 | } |
| 1710 | } |
| 1711 | }, |
| 1712 | "OAuthTokenResponse": { |
| 1713 | "type": "object", |
| 1714 | "required": [ |
| 1715 | "access_token", |
| 1716 | "token_type", |
| 1717 | "expires_in", |
| 1718 | "refresh_token", |
| 1719 | "scope" |
| 1720 | ], |
| 1721 | "properties": { |
| 1722 | "access_token": { |
| 1723 | "type": "string" |
| 1724 | }, |
| 1725 | "token_type": { |
| 1726 | "type": "string", |
| 1727 | "const": "Bearer" |
| 1728 | }, |
| 1729 | "expires_in": { |
| 1730 | "type": "integer" |
| 1731 | }, |
| 1732 | "refresh_token": { |
| 1733 | "type": "string" |
| 1734 | }, |
| 1735 | "scope": { |
| 1736 | "type": "string" |
| 1737 | } |
| 1738 | } |
| 1739 | }, |
| 1740 | "OAuthUserInfoResponse": { |
| 1741 | "type": "object", |
| 1742 | "required": [ |
| 1743 | "sub", |
| 1744 | "email", |
| 1745 | "email_verified", |
| 1746 | "name", |
| 1747 | "given_name", |
| 1748 | "family_name", |
| 1749 | "picture", |
| 1750 | "preferred_username", |
| 1751 | "scope" |
| 1752 | ], |
| 1753 | "properties": { |
| 1754 | "sub": { |
| 1755 | "type": "string" |
| 1756 | }, |
| 1757 | "email": { |
| 1758 | "type": "string" |
| 1759 | }, |
| 1760 | "email_verified": { |
| 1761 | "type": "boolean" |
| 1762 | }, |
| 1763 | "name": { |
| 1764 | "type": "string" |
| 1765 | }, |
| 1766 | "given_name": { |
| 1767 | "type": [ |
| 1768 | "string", |
| 1769 | "null" |
| 1770 | ] |
| 1771 | }, |
| 1772 | "family_name": { |
| 1773 | "type": [ |
| 1774 | "string", |
| 1775 | "null" |
| 1776 | ] |
| 1777 | }, |
| 1778 | "picture": { |
| 1779 | "type": [ |
| 1780 | "string", |
| 1781 | "null" |
| 1782 | ] |
| 1783 | }, |
| 1784 | "preferred_username": { |
| 1785 | "type": [ |
| 1786 | "string", |
| 1787 | "null" |
| 1788 | ] |
| 1789 | }, |
| 1790 | "scope": { |
| 1791 | "type": "string" |
| 1792 | } |
| 1793 | } |
| 1794 | }, |
| 1795 | "TabModelRecord": { |
| 1796 | "type": "object", |
| 1797 | "required": [ |
| 1798 | "id", |
| 1799 | "object", |
| 1800 | "created", |
| 1801 | "owned_by", |
| 1802 | "providerModelId", |
| 1803 | "pricing", |
| 1804 | "capabilities" |
| 1805 | ], |
| 1806 | "properties": { |
| 1807 | "id": { |
| 1808 | "type": "string" |
| 1809 | }, |
| 1810 | "object": { |
| 1811 | "type": "string", |
| 1812 | "const": "model" |
| 1813 | }, |
| 1814 | "created": { |
| 1815 | "type": "integer" |
| 1816 | }, |
| 1817 | "owned_by": { |
| 1818 | "type": "string" |
| 1819 | }, |
| 1820 | "providerModelId": { |
| 1821 | "type": "string" |
| 1822 | }, |
| 1823 | "pricing": { |
| 1824 | "type": "object", |
| 1825 | "required": [ |
| 1826 | "inputPerMillionUsd", |
| 1827 | "outputPerMillionUsd" |
| 1828 | ], |
| 1829 | "properties": { |
| 1830 | "inputPerMillionUsd": { |
| 1831 | "type": "number" |
| 1832 | }, |
| 1833 | "outputPerMillionUsd": { |
| 1834 | "type": "number" |
| 1835 | } |
| 1836 | } |
| 1837 | }, |
| 1838 | "capabilities": { |
| 1839 | "type": "object", |
| 1840 | "required": [ |
| 1841 | "streaming", |
| 1842 | "surfaces" |
| 1843 | ], |
| 1844 | "properties": { |
| 1845 | "streaming": { |
| 1846 | "type": "boolean" |
| 1847 | }, |
| 1848 | "surfaces": { |
| 1849 | "type": "array", |
| 1850 | "items": { |
| 1851 | "type": "string" |
| 1852 | } |
| 1853 | } |
| 1854 | } |
| 1855 | } |
| 1856 | } |
| 1857 | }, |
| 1858 | "TabModelsResponse": { |
| 1859 | "type": "object", |
| 1860 | "required": [ |
| 1861 | "data" |
| 1862 | ], |
| 1863 | "properties": { |
| 1864 | "data": { |
| 1865 | "type": "object", |
| 1866 | "required": [ |
| 1867 | "object", |
| 1868 | "data" |
| 1869 | ], |
| 1870 | "properties": { |
| 1871 | "object": { |
| 1872 | "type": "string", |
| 1873 | "const": "list" |
| 1874 | }, |
| 1875 | "data": { |
| 1876 | "type": "array", |
| 1877 | "items": { |
| 1878 | "$ref": "#/components/schemas/TabModelRecord" |
| 1879 | } |
| 1880 | } |
| 1881 | } |
| 1882 | } |
| 1883 | } |
| 1884 | }, |
| 1885 | "TabChatCompletionInput": { |
| 1886 | "type": "object", |
| 1887 | "required": [ |
| 1888 | "model", |
| 1889 | "tab_context" |
| 1890 | ], |
| 1891 | "properties": { |
| 1892 | "model": { |
| 1893 | "type": "string" |
| 1894 | }, |
| 1895 | "messages": { |
| 1896 | "type": "array", |
| 1897 | "items": { |
| 1898 | "type": "object", |
| 1899 | "properties": { |
| 1900 | "role": { |
| 1901 | "type": "string" |
| 1902 | }, |
| 1903 | "content": { |
| 1904 | "type": "string" |
| 1905 | } |
| 1906 | } |
| 1907 | } |
| 1908 | }, |
| 1909 | "stream": { |
| 1910 | "type": "boolean" |
| 1911 | }, |
| 1912 | "max_tokens": { |
| 1913 | "type": "integer" |
| 1914 | }, |
| 1915 | "max_completion_tokens": { |
| 1916 | "type": "integer" |
| 1917 | }, |
| 1918 | "temperature": { |
| 1919 | "type": "number" |
| 1920 | }, |
| 1921 | "top_p": { |
| 1922 | "type": "number" |
| 1923 | }, |
| 1924 | "tab_context": { |
| 1925 | "type": "object", |
| 1926 | "additionalProperties": true |
| 1927 | } |
| 1928 | } |
| 1929 | }, |
| 1930 | "TabChatCompletionResponseEnvelope": { |
| 1931 | "type": "object", |
| 1932 | "required": [ |
| 1933 | "data" |
| 1934 | ], |
| 1935 | "properties": { |
| 1936 | "data": { |
| 1937 | "type": "object", |
| 1938 | "required": [ |
| 1939 | "id", |
| 1940 | "object", |
| 1941 | "created", |
| 1942 | "model", |
| 1943 | "choices", |
| 1944 | "usage" |
| 1945 | ], |
| 1946 | "properties": { |
| 1947 | "id": { |
| 1948 | "type": "string" |
| 1949 | }, |
| 1950 | "object": { |
| 1951 | "type": "string", |
| 1952 | "const": "chat.completion" |
| 1953 | }, |
| 1954 | "created": { |
| 1955 | "type": "integer" |
| 1956 | }, |
| 1957 | "model": { |
| 1958 | "type": "string" |
| 1959 | }, |
| 1960 | "choices": { |
| 1961 | "type": "array", |
| 1962 | "items": { |
| 1963 | "type": "object", |
| 1964 | "required": [ |
| 1965 | "index", |
| 1966 | "message", |
| 1967 | "finish_reason" |
| 1968 | ], |
| 1969 | "properties": { |
| 1970 | "index": { |
| 1971 | "type": "integer" |
| 1972 | }, |
| 1973 | "message": { |
| 1974 | "type": "object", |
| 1975 | "required": [ |
| 1976 | "role", |
| 1977 | "content" |
| 1978 | ], |
| 1979 | "properties": { |
| 1980 | "role": { |
| 1981 | "type": "string", |
| 1982 | "const": "assistant" |
| 1983 | }, |
| 1984 | "content": { |
| 1985 | "type": "string" |
| 1986 | } |
| 1987 | } |
| 1988 | }, |
| 1989 | "finish_reason": { |
| 1990 | "type": "string", |
| 1991 | "const": "stop" |
| 1992 | } |
| 1993 | } |
| 1994 | } |
| 1995 | }, |
| 1996 | "usage": { |
| 1997 | "type": "object", |
| 1998 | "required": [ |
| 1999 | "prompt_tokens", |
| 2000 | "completion_tokens", |
| 2001 | "total_tokens" |
| 2002 | ], |
| 2003 | "properties": { |
| 2004 | "prompt_tokens": { |
| 2005 | "type": "integer" |
| 2006 | }, |
| 2007 | "completion_tokens": { |
| 2008 | "type": "integer" |
| 2009 | }, |
| 2010 | "total_tokens": { |
| 2011 | "type": "integer" |
| 2012 | } |
| 2013 | } |
| 2014 | } |
| 2015 | } |
| 2016 | } |
| 2017 | } |
| 2018 | }, |
| 2019 | "OkResponse": { |
| 2020 | "type": "object", |
| 2021 | "required": [ |
| 2022 | "data" |
| 2023 | ], |
| 2024 | "properties": { |
| 2025 | "data": { |
| 2026 | "type": "object", |
| 2027 | "required": [ |
| 2028 | "ok" |
| 2029 | ], |
| 2030 | "properties": { |
| 2031 | "ok": { |
| 2032 | "type": "boolean", |
| 2033 | "const": true |
| 2034 | } |
| 2035 | } |
| 2036 | } |
| 2037 | } |
| 2038 | }, |
| 2039 | "AppCatalogItem": { |
| 2040 | "type": "object", |
| 2041 | "required": [ |
| 2042 | "appId", |
| 2043 | "appKey", |
| 2044 | "name", |
| 2045 | "description", |
| 2046 | "iconUrl", |
| 2047 | "status", |
| 2048 | "latestPublishedVersion", |
| 2049 | "latestPublishedVersionId", |
| 2050 | "isInstalled" |
| 2051 | ], |
| 2052 | "properties": { |
| 2053 | "appId": { |
| 2054 | "type": "string" |
| 2055 | }, |
| 2056 | "appKey": { |
| 2057 | "type": "string" |
| 2058 | }, |
| 2059 | "name": { |
| 2060 | "type": "string" |
| 2061 | }, |
| 2062 | "description": { |
| 2063 | "type": [ |
| 2064 | "string", |
| 2065 | "null" |
| 2066 | ] |
| 2067 | }, |
| 2068 | "iconUrl": { |
| 2069 | "type": [ |
| 2070 | "string", |
| 2071 | "null" |
| 2072 | ] |
| 2073 | }, |
| 2074 | "status": { |
| 2075 | "type": "string" |
| 2076 | }, |
| 2077 | "latestPublishedVersion": { |
| 2078 | "type": [ |
| 2079 | "string", |
| 2080 | "null" |
| 2081 | ] |
| 2082 | }, |
| 2083 | "latestPublishedVersionId": { |
| 2084 | "type": [ |
| 2085 | "string", |
| 2086 | "null" |
| 2087 | ] |
| 2088 | }, |
| 2089 | "isInstalled": { |
| 2090 | "type": "boolean" |
| 2091 | } |
| 2092 | } |
| 2093 | }, |
| 2094 | "RegisteredAppDetail": { |
| 2095 | "type": "object", |
| 2096 | "required": [ |
| 2097 | "appId", |
| 2098 | "appKey", |
| 2099 | "name", |
| 2100 | "description", |
| 2101 | "iconUrl", |
| 2102 | "status", |
| 2103 | "ownerUserId", |
| 2104 | "storeListed", |
| 2105 | "latestPublishedVersion", |
| 2106 | "latestPublishedVersionId" |
| 2107 | ], |
| 2108 | "properties": { |
| 2109 | "appId": { |
| 2110 | "type": "string" |
| 2111 | }, |
| 2112 | "appKey": { |
| 2113 | "type": "string" |
| 2114 | }, |
| 2115 | "name": { |
| 2116 | "type": "string" |
| 2117 | }, |
| 2118 | "description": { |
| 2119 | "type": [ |
| 2120 | "string", |
| 2121 | "null" |
| 2122 | ] |
| 2123 | }, |
| 2124 | "iconUrl": { |
| 2125 | "type": [ |
| 2126 | "string", |
| 2127 | "null" |
| 2128 | ] |
| 2129 | }, |
| 2130 | "status": { |
| 2131 | "type": "string" |
| 2132 | }, |
| 2133 | "ownerUserId": { |
| 2134 | "type": [ |
| 2135 | "string", |
| 2136 | "null" |
| 2137 | ] |
| 2138 | }, |
| 2139 | "storeListed": { |
| 2140 | "type": "boolean" |
| 2141 | }, |
| 2142 | "latestPublishedVersion": { |
| 2143 | "type": [ |
| 2144 | "string", |
| 2145 | "null" |
| 2146 | ] |
| 2147 | }, |
| 2148 | "latestPublishedVersionId": { |
| 2149 | "type": [ |
| 2150 | "string", |
| 2151 | "null" |
| 2152 | ] |
| 2153 | } |
| 2154 | } |
| 2155 | }, |
| 2156 | "RegisteredAppVersionSummary": { |
| 2157 | "type": "object", |
| 2158 | "required": [ |
| 2159 | "versionId", |
| 2160 | "version", |
| 2161 | "status", |
| 2162 | "reviewStatus", |
| 2163 | "apiBaseUrl", |
| 2164 | "permissions", |
| 2165 | "notificationChannels", |
| 2166 | "kairo", |
| 2167 | "fileTypes", |
| 2168 | "submittedAt", |
| 2169 | "reviewedAt", |
| 2170 | "reviewNotes", |
| 2171 | "publishedAt", |
| 2172 | "createdAt", |
| 2173 | "updatedAt" |
| 2174 | ], |
| 2175 | "properties": { |
| 2176 | "versionId": { |
| 2177 | "type": "string" |
| 2178 | }, |
| 2179 | "version": { |
| 2180 | "type": "string" |
| 2181 | }, |
| 2182 | "status": { |
| 2183 | "type": "string" |
| 2184 | }, |
| 2185 | "reviewStatus": { |
| 2186 | "type": "string" |
| 2187 | }, |
| 2188 | "apiBaseUrl": { |
| 2189 | "type": "string" |
| 2190 | }, |
| 2191 | "permissions": { |
| 2192 | "type": "array", |
| 2193 | "items": { |
| 2194 | "type": "string" |
| 2195 | } |
| 2196 | }, |
| 2197 | "notificationChannels": { |
| 2198 | "type": "array", |
| 2199 | "items": { |
| 2200 | "type": "object", |
| 2201 | "required": [ |
| 2202 | "key", |
| 2203 | "name", |
| 2204 | "defaultDeliveries", |
| 2205 | "defaultPriority" |
| 2206 | ], |
| 2207 | "properties": { |
| 2208 | "key": { |
| 2209 | "type": "string" |
| 2210 | }, |
| 2211 | "name": { |
| 2212 | "type": "string" |
| 2213 | }, |
| 2214 | "description": { |
| 2215 | "type": "string" |
| 2216 | }, |
| 2217 | "defaultDeliveries": { |
| 2218 | "type": "array", |
| 2219 | "items": { |
| 2220 | "type": "string" |
| 2221 | } |
| 2222 | }, |
| 2223 | "defaultPriority": { |
| 2224 | "type": "string" |
| 2225 | } |
| 2226 | } |
| 2227 | } |
| 2228 | }, |
| 2229 | "kairo": { |
| 2230 | "oneOf": [ |
| 2231 | { |
| 2232 | "type": "object", |
| 2233 | "additionalProperties": true |
| 2234 | }, |
| 2235 | { |
| 2236 | "type": "null" |
| 2237 | } |
| 2238 | ] |
| 2239 | }, |
| 2240 | "fileTypes": { |
| 2241 | "type": "array", |
| 2242 | "items": { |
| 2243 | "type": "object", |
| 2244 | "required": [ |
| 2245 | "typeKey", |
| 2246 | "name", |
| 2247 | "description" |
| 2248 | ], |
| 2249 | "properties": { |
| 2250 | "typeKey": { |
| 2251 | "type": "string" |
| 2252 | }, |
| 2253 | "name": { |
| 2254 | "type": "string" |
| 2255 | }, |
| 2256 | "description": { |
| 2257 | "type": [ |
| 2258 | "string", |
| 2259 | "null" |
| 2260 | ] |
| 2261 | } |
| 2262 | } |
| 2263 | } |
| 2264 | }, |
| 2265 | "submittedAt": { |
| 2266 | "type": [ |
| 2267 | "string", |
| 2268 | "null" |
| 2269 | ], |
| 2270 | "format": "date-time" |
| 2271 | }, |
| 2272 | "reviewedAt": { |
| 2273 | "type": [ |
| 2274 | "string", |
| 2275 | "null" |
| 2276 | ], |
| 2277 | "format": "date-time" |
| 2278 | }, |
| 2279 | "reviewNotes": { |
| 2280 | "type": [ |
| 2281 | "string", |
| 2282 | "null" |
| 2283 | ] |
| 2284 | }, |
| 2285 | "publishedAt": { |
| 2286 | "type": [ |
| 2287 | "string", |
| 2288 | "null" |
| 2289 | ], |
| 2290 | "format": "date-time" |
| 2291 | }, |
| 2292 | "createdAt": { |
| 2293 | "type": "string", |
| 2294 | "format": "date-time" |
| 2295 | }, |
| 2296 | "updatedAt": { |
| 2297 | "type": "string", |
| 2298 | "format": "date-time" |
| 2299 | } |
| 2300 | } |
| 2301 | }, |
| 2302 | "InstalledAppSummary": { |
| 2303 | "type": "object", |
| 2304 | "required": [ |
| 2305 | "installId", |
| 2306 | "appId", |
| 2307 | "appKey", |
| 2308 | "name", |
| 2309 | "description", |
| 2310 | "iconUrl", |
| 2311 | "status", |
| 2312 | "installScope", |
| 2313 | "scopeSubjectId", |
| 2314 | "version" |
| 2315 | ], |
| 2316 | "properties": { |
| 2317 | "installId": { |
| 2318 | "type": "string" |
| 2319 | }, |
| 2320 | "appId": { |
| 2321 | "type": "string" |
| 2322 | }, |
| 2323 | "appKey": { |
| 2324 | "type": "string" |
| 2325 | }, |
| 2326 | "name": { |
| 2327 | "type": "string" |
| 2328 | }, |
| 2329 | "description": { |
| 2330 | "type": [ |
| 2331 | "string", |
| 2332 | "null" |
| 2333 | ] |
| 2334 | }, |
| 2335 | "iconUrl": { |
| 2336 | "type": [ |
| 2337 | "string", |
| 2338 | "null" |
| 2339 | ] |
| 2340 | }, |
| 2341 | "status": { |
| 2342 | "type": "string" |
| 2343 | }, |
| 2344 | "installScope": { |
| 2345 | "type": "string" |
| 2346 | }, |
| 2347 | "scopeSubjectId": { |
| 2348 | "type": "string" |
| 2349 | }, |
| 2350 | "version": { |
| 2351 | "type": [ |
| 2352 | "string", |
| 2353 | "null" |
| 2354 | ] |
| 2355 | } |
| 2356 | } |
| 2357 | }, |
| 2358 | "StoreAppsResponse": { |
| 2359 | "type": "object", |
| 2360 | "required": [ |
| 2361 | "data" |
| 2362 | ], |
| 2363 | "properties": { |
| 2364 | "data": { |
| 2365 | "type": "object", |
| 2366 | "required": [ |
| 2367 | "apps" |
| 2368 | ], |
| 2369 | "properties": { |
| 2370 | "apps": { |
| 2371 | "type": "array", |
| 2372 | "items": { |
| 2373 | "$ref": "#/components/schemas/RegisteredAppDetail" |
| 2374 | } |
| 2375 | } |
| 2376 | } |
| 2377 | } |
| 2378 | } |
| 2379 | }, |
| 2380 | "StoreAppResponse": { |
| 2381 | "type": "object", |
| 2382 | "required": [ |
| 2383 | "data" |
| 2384 | ], |
| 2385 | "properties": { |
| 2386 | "data": { |
| 2387 | "type": "object", |
| 2388 | "required": [ |
| 2389 | "app" |
| 2390 | ], |
| 2391 | "properties": { |
| 2392 | "app": { |
| 2393 | "$ref": "#/components/schemas/RegisteredAppDetail" |
| 2394 | } |
| 2395 | } |
| 2396 | } |
| 2397 | } |
| 2398 | }, |
| 2399 | "StoreAppVersionsResponse": { |
| 2400 | "type": "object", |
| 2401 | "required": [ |
| 2402 | "data" |
| 2403 | ], |
| 2404 | "properties": { |
| 2405 | "data": { |
| 2406 | "type": "object", |
| 2407 | "required": [ |
| 2408 | "versions" |
| 2409 | ], |
| 2410 | "properties": { |
| 2411 | "versions": { |
| 2412 | "type": "array", |
| 2413 | "items": { |
| 2414 | "$ref": "#/components/schemas/RegisteredAppVersionSummary" |
| 2415 | } |
| 2416 | } |
| 2417 | } |
| 2418 | } |
| 2419 | } |
| 2420 | }, |
| 2421 | "WorkspaceAppsResponse": { |
| 2422 | "type": "object", |
| 2423 | "required": [ |
| 2424 | "data" |
| 2425 | ], |
| 2426 | "properties": { |
| 2427 | "data": { |
| 2428 | "type": "object", |
| 2429 | "required": [ |
| 2430 | "installedApps", |
| 2431 | "catalog", |
| 2432 | "permissions" |
| 2433 | ], |
| 2434 | "properties": { |
| 2435 | "installedApps": { |
| 2436 | "type": "array", |
| 2437 | "items": { |
| 2438 | "$ref": "#/components/schemas/InstalledAppSummary" |
| 2439 | } |
| 2440 | }, |
| 2441 | "catalog": { |
| 2442 | "type": "array", |
| 2443 | "items": { |
| 2444 | "$ref": "#/components/schemas/AppCatalogItem" |
| 2445 | } |
| 2446 | }, |
| 2447 | "permissions": { |
| 2448 | "type": "object", |
| 2449 | "required": [ |
| 2450 | "canManageApps" |
| 2451 | ], |
| 2452 | "properties": { |
| 2453 | "canManageApps": { |
| 2454 | "type": "boolean" |
| 2455 | } |
| 2456 | } |
| 2457 | } |
| 2458 | } |
| 2459 | } |
| 2460 | } |
| 2461 | }, |
| 2462 | "InstallWorkspaceAppInput": { |
| 2463 | "type": "object", |
| 2464 | "required": [ |
| 2465 | "appId" |
| 2466 | ], |
| 2467 | "properties": { |
| 2468 | "appId": { |
| 2469 | "type": "string" |
| 2470 | }, |
| 2471 | "pinnedVersionId": { |
| 2472 | "type": "string" |
| 2473 | }, |
| 2474 | "grantedPermissions": { |
| 2475 | "type": "array", |
| 2476 | "items": { |
| 2477 | "type": "string" |
| 2478 | } |
| 2479 | } |
| 2480 | } |
| 2481 | }, |
| 2482 | "InstallWorkspaceAppResponse": { |
| 2483 | "type": "object", |
| 2484 | "required": [ |
| 2485 | "data" |
| 2486 | ], |
| 2487 | "properties": { |
| 2488 | "data": { |
| 2489 | "type": "object", |
| 2490 | "required": [ |
| 2491 | "installId", |
| 2492 | "appId", |
| 2493 | "appKey", |
| 2494 | "version", |
| 2495 | "grantedPermissions" |
| 2496 | ], |
| 2497 | "properties": { |
| 2498 | "installId": { |
| 2499 | "type": "string" |
| 2500 | }, |
| 2501 | "appId": { |
| 2502 | "type": "string" |
| 2503 | }, |
| 2504 | "appKey": { |
| 2505 | "type": "string" |
| 2506 | }, |
| 2507 | "version": { |
| 2508 | "type": "string" |
| 2509 | }, |
| 2510 | "grantedPermissions": { |
| 2511 | "type": "array", |
| 2512 | "items": { |
| 2513 | "type": "string" |
| 2514 | } |
| 2515 | } |
| 2516 | } |
| 2517 | } |
| 2518 | } |
| 2519 | }, |
| 2520 | "WorkspaceInstalledAppResponse": { |
| 2521 | "type": "object", |
| 2522 | "required": [ |
| 2523 | "data" |
| 2524 | ], |
| 2525 | "properties": { |
| 2526 | "data": { |
| 2527 | "type": "object", |
| 2528 | "required": [ |
| 2529 | "install", |
| 2530 | "permissions" |
| 2531 | ], |
| 2532 | "properties": { |
| 2533 | "install": { |
| 2534 | "$ref": "#/components/schemas/InstalledAppSummary" |
| 2535 | }, |
| 2536 | "permissions": { |
| 2537 | "type": "object", |
| 2538 | "required": [ |
| 2539 | "canManageApps" |
| 2540 | ], |
| 2541 | "properties": { |
| 2542 | "canManageApps": { |
| 2543 | "type": "boolean" |
| 2544 | } |
| 2545 | } |
| 2546 | } |
| 2547 | } |
| 2548 | } |
| 2549 | } |
| 2550 | }, |
| 2551 | "WorkspaceAppPermissionsResponse": { |
| 2552 | "type": "object", |
| 2553 | "required": [ |
| 2554 | "data" |
| 2555 | ], |
| 2556 | "properties": { |
| 2557 | "data": { |
| 2558 | "type": "object", |
| 2559 | "required": [ |
| 2560 | "install", |
| 2561 | "availablePermissions", |
| 2562 | "grantedPermissions", |
| 2563 | "permissions" |
| 2564 | ], |
| 2565 | "properties": { |
| 2566 | "install": { |
| 2567 | "$ref": "#/components/schemas/InstalledAppSummary" |
| 2568 | }, |
| 2569 | "availablePermissions": { |
| 2570 | "type": "array", |
| 2571 | "items": { |
| 2572 | "type": "string" |
| 2573 | } |
| 2574 | }, |
| 2575 | "grantedPermissions": { |
| 2576 | "type": "array", |
| 2577 | "items": { |
| 2578 | "type": "string" |
| 2579 | } |
| 2580 | }, |
| 2581 | "permissions": { |
| 2582 | "type": "object", |
| 2583 | "required": [ |
| 2584 | "canManageApps" |
| 2585 | ], |
| 2586 | "properties": { |
| 2587 | "canManageApps": { |
| 2588 | "type": "boolean" |
| 2589 | } |
| 2590 | } |
| 2591 | } |
| 2592 | } |
| 2593 | } |
| 2594 | } |
| 2595 | }, |
| 2596 | "RegisterAppInput": { |
| 2597 | "type": "object", |
| 2598 | "required": [ |
| 2599 | "version", |
| 2600 | "manifest", |
| 2601 | "fileTypes" |
| 2602 | ], |
| 2603 | "properties": { |
| 2604 | "version": { |
| 2605 | "type": "string" |
| 2606 | }, |
| 2607 | "manifest": { |
| 2608 | "type": "object", |
| 2609 | "required": [ |
| 2610 | "key", |
| 2611 | "name", |
| 2612 | "permissions", |
| 2613 | "notificationChannels", |
| 2614 | "hosting" |
| 2615 | ], |
| 2616 | "properties": { |
| 2617 | "key": { |
| 2618 | "type": "string" |
| 2619 | }, |
| 2620 | "name": { |
| 2621 | "type": "string" |
| 2622 | }, |
| 2623 | "description": { |
| 2624 | "type": "string" |
| 2625 | }, |
| 2626 | "iconUrl": { |
| 2627 | "type": "string" |
| 2628 | }, |
| 2629 | "permissions": { |
| 2630 | "type": "array", |
| 2631 | "items": { |
| 2632 | "type": "string" |
| 2633 | } |
| 2634 | }, |
| 2635 | "notificationChannels": { |
| 2636 | "type": "array", |
| 2637 | "items": { |
| 2638 | "type": "object", |
| 2639 | "required": [ |
| 2640 | "key", |
| 2641 | "name", |
| 2642 | "defaultDeliveries", |
| 2643 | "defaultPriority" |
| 2644 | ], |
| 2645 | "properties": { |
| 2646 | "key": { |
| 2647 | "type": "string" |
| 2648 | }, |
| 2649 | "name": { |
| 2650 | "type": "string" |
| 2651 | }, |
| 2652 | "description": { |
| 2653 | "type": "string" |
| 2654 | }, |
| 2655 | "defaultDeliveries": { |
| 2656 | "type": "array", |
| 2657 | "items": { |
| 2658 | "type": "string" |
| 2659 | } |
| 2660 | }, |
| 2661 | "defaultPriority": { |
| 2662 | "type": "string" |
| 2663 | } |
| 2664 | } |
| 2665 | } |
| 2666 | }, |
| 2667 | "kairo": { |
| 2668 | "type": "object", |
| 2669 | "additionalProperties": true |
| 2670 | }, |
| 2671 | "hosting": { |
| 2672 | "type": "object", |
| 2673 | "required": [ |
| 2674 | "mode", |
| 2675 | "baseUrl" |
| 2676 | ], |
| 2677 | "properties": { |
| 2678 | "mode": { |
| 2679 | "type": "string", |
| 2680 | "const": "external" |
| 2681 | }, |
| 2682 | "baseUrl": { |
| 2683 | "type": "string" |
| 2684 | } |
| 2685 | } |
| 2686 | } |
| 2687 | } |
| 2688 | }, |
| 2689 | "fileTypes": { |
| 2690 | "type": "array", |
| 2691 | "items": { |
| 2692 | "type": "object", |
| 2693 | "required": [ |
| 2694 | "typeKey", |
| 2695 | "name", |
| 2696 | "storage", |
| 2697 | "indexable", |
| 2698 | "homeRenderMode" |
| 2699 | ], |
| 2700 | "properties": { |
| 2701 | "typeKey": { |
| 2702 | "type": "string" |
| 2703 | }, |
| 2704 | "name": { |
| 2705 | "type": "string" |
| 2706 | }, |
| 2707 | "description": { |
| 2708 | "type": "string" |
| 2709 | }, |
| 2710 | "storage": { |
| 2711 | "type": "string", |
| 2712 | "const": "coline_document" |
| 2713 | }, |
| 2714 | "indexable": { |
| 2715 | "type": "boolean" |
| 2716 | }, |
| 2717 | "homeRenderMode": { |
| 2718 | "type": "string" |
| 2719 | } |
| 2720 | } |
| 2721 | } |
| 2722 | } |
| 2723 | } |
| 2724 | }, |
| 2725 | "AppVersionMutationResponse": { |
| 2726 | "type": "object", |
| 2727 | "required": [ |
| 2728 | "data" |
| 2729 | ], |
| 2730 | "properties": { |
| 2731 | "data": { |
| 2732 | "type": "object", |
| 2733 | "required": [ |
| 2734 | "appId", |
| 2735 | "appKey", |
| 2736 | "versionId", |
| 2737 | "version" |
| 2738 | ], |
| 2739 | "properties": { |
| 2740 | "appId": { |
| 2741 | "type": "string" |
| 2742 | }, |
| 2743 | "appKey": { |
| 2744 | "type": "string" |
| 2745 | }, |
| 2746 | "versionId": { |
| 2747 | "type": "string" |
| 2748 | }, |
| 2749 | "version": { |
| 2750 | "type": "string" |
| 2751 | } |
| 2752 | } |
| 2753 | } |
| 2754 | } |
| 2755 | }, |
| 2756 | "SubmitAppVersionForReviewResponse": { |
| 2757 | "type": "object", |
| 2758 | "required": [ |
| 2759 | "data" |
| 2760 | ], |
| 2761 | "properties": { |
| 2762 | "data": { |
| 2763 | "type": "object", |
| 2764 | "required": [ |
| 2765 | "appId", |
| 2766 | "appKey", |
| 2767 | "versionId", |
| 2768 | "version", |
| 2769 | "reviewStatus", |
| 2770 | "storeListed" |
| 2771 | ], |
| 2772 | "properties": { |
| 2773 | "appId": { |
| 2774 | "type": "string" |
| 2775 | }, |
| 2776 | "appKey": { |
| 2777 | "type": "string" |
| 2778 | }, |
| 2779 | "versionId": { |
| 2780 | "type": "string" |
| 2781 | }, |
| 2782 | "version": { |
| 2783 | "type": "string" |
| 2784 | }, |
| 2785 | "reviewStatus": { |
| 2786 | "type": "string", |
| 2787 | "const": "submitted" |
| 2788 | }, |
| 2789 | "storeListed": { |
| 2790 | "type": "boolean" |
| 2791 | } |
| 2792 | } |
| 2793 | } |
| 2794 | } |
| 2795 | }, |
| 2796 | "WorkspaceAppSecretsResponse": { |
| 2797 | "type": "object", |
| 2798 | "required": [ |
| 2799 | "data" |
| 2800 | ], |
| 2801 | "properties": { |
| 2802 | "data": { |
| 2803 | "type": "object", |
| 2804 | "required": [ |
| 2805 | "install", |
| 2806 | "secrets", |
| 2807 | "permissions" |
| 2808 | ], |
| 2809 | "properties": { |
| 2810 | "install": { |
| 2811 | "$ref": "#/components/schemas/InstalledAppSummary" |
| 2812 | }, |
| 2813 | "secrets": { |
| 2814 | "type": "array", |
| 2815 | "items": { |
| 2816 | "type": "object", |
| 2817 | "required": [ |
| 2818 | "id", |
| 2819 | "key", |
| 2820 | "createdAt", |
| 2821 | "updatedAt" |
| 2822 | ], |
| 2823 | "properties": { |
| 2824 | "id": { |
| 2825 | "type": "string" |
| 2826 | }, |
| 2827 | "key": { |
| 2828 | "type": "string" |
| 2829 | }, |
| 2830 | "createdAt": { |
| 2831 | "type": "string", |
| 2832 | "format": "date-time" |
| 2833 | }, |
| 2834 | "updatedAt": { |
| 2835 | "type": "string", |
| 2836 | "format": "date-time" |
| 2837 | } |
| 2838 | } |
| 2839 | } |
| 2840 | }, |
| 2841 | "permissions": { |
| 2842 | "type": "object", |
| 2843 | "required": [ |
| 2844 | "canManageApps" |
| 2845 | ], |
| 2846 | "properties": { |
| 2847 | "canManageApps": { |
| 2848 | "type": "boolean" |
| 2849 | } |
| 2850 | } |
| 2851 | } |
| 2852 | } |
| 2853 | } |
| 2854 | } |
| 2855 | }, |
| 2856 | "CreateWorkspaceAppSecretResponse": { |
| 2857 | "type": "object", |
| 2858 | "required": [ |
| 2859 | "data" |
| 2860 | ], |
| 2861 | "properties": { |
| 2862 | "data": { |
| 2863 | "type": "object", |
| 2864 | "required": [ |
| 2865 | "secret", |
| 2866 | "value" |
| 2867 | ], |
| 2868 | "properties": { |
| 2869 | "secret": { |
| 2870 | "type": "object", |
| 2871 | "required": [ |
| 2872 | "id", |
| 2873 | "key", |
| 2874 | "createdAt", |
| 2875 | "updatedAt" |
| 2876 | ], |
| 2877 | "properties": { |
| 2878 | "id": { |
| 2879 | "type": "string" |
| 2880 | }, |
| 2881 | "key": { |
| 2882 | "type": "string" |
| 2883 | }, |
| 2884 | "createdAt": { |
| 2885 | "type": "string", |
| 2886 | "format": "date-time" |
| 2887 | }, |
| 2888 | "updatedAt": { |
| 2889 | "type": "string", |
| 2890 | "format": "date-time" |
| 2891 | } |
| 2892 | } |
| 2893 | }, |
| 2894 | "value": { |
| 2895 | "type": "string" |
| 2896 | } |
| 2897 | } |
| 2898 | } |
| 2899 | } |
| 2900 | }, |
| 2901 | "WorkspaceAppOauthConnectionsResponse": { |
| 2902 | "type": "object", |
| 2903 | "required": [ |
| 2904 | "data" |
| 2905 | ], |
| 2906 | "properties": { |
| 2907 | "data": { |
| 2908 | "type": "object", |
| 2909 | "required": [ |
| 2910 | "install", |
| 2911 | "connections", |
| 2912 | "permissions" |
| 2913 | ], |
| 2914 | "properties": { |
| 2915 | "install": { |
| 2916 | "$ref": "#/components/schemas/InstalledAppSummary" |
| 2917 | }, |
| 2918 | "connections": { |
| 2919 | "type": "array", |
| 2920 | "items": { |
| 2921 | "type": "object", |
| 2922 | "required": [ |
| 2923 | "id", |
| 2924 | "providerKey", |
| 2925 | "externalAccountId", |
| 2926 | "scopes", |
| 2927 | "tokenExpiresAt", |
| 2928 | "createdAt", |
| 2929 | "updatedAt" |
| 2930 | ], |
| 2931 | "properties": { |
| 2932 | "id": { |
| 2933 | "type": "string" |
| 2934 | }, |
| 2935 | "providerKey": { |
| 2936 | "type": "string" |
| 2937 | }, |
| 2938 | "externalAccountId": { |
| 2939 | "type": [ |
| 2940 | "string", |
| 2941 | "null" |
| 2942 | ] |
| 2943 | }, |
| 2944 | "scopes": { |
| 2945 | "type": "array", |
| 2946 | "items": { |
| 2947 | "type": "string" |
| 2948 | } |
| 2949 | }, |
| 2950 | "tokenExpiresAt": { |
| 2951 | "type": [ |
| 2952 | "string", |
| 2953 | "null" |
| 2954 | ], |
| 2955 | "format": "date-time" |
| 2956 | }, |
| 2957 | "createdAt": { |
| 2958 | "type": "string", |
| 2959 | "format": "date-time" |
| 2960 | }, |
| 2961 | "updatedAt": { |
| 2962 | "type": "string", |
| 2963 | "format": "date-time" |
| 2964 | } |
| 2965 | } |
| 2966 | } |
| 2967 | }, |
| 2968 | "permissions": { |
| 2969 | "type": "object", |
| 2970 | "required": [ |
| 2971 | "canManageApps" |
| 2972 | ], |
| 2973 | "properties": { |
| 2974 | "canManageApps": { |
| 2975 | "type": "boolean" |
| 2976 | } |
| 2977 | } |
| 2978 | } |
| 2979 | } |
| 2980 | } |
| 2981 | } |
| 2982 | }, |
| 2983 | "CreateWorkspaceAppOauthConnectionResponse": { |
| 2984 | "type": "object", |
| 2985 | "required": [ |
| 2986 | "data" |
| 2987 | ], |
| 2988 | "properties": { |
| 2989 | "data": { |
| 2990 | "type": "object", |
| 2991 | "required": [ |
| 2992 | "connection" |
| 2993 | ], |
| 2994 | "properties": { |
| 2995 | "connection": { |
| 2996 | "type": "object", |
| 2997 | "required": [ |
| 2998 | "id", |
| 2999 | "providerKey", |
| 3000 | "externalAccountId", |
| 3001 | "scopes", |
| 3002 | "tokenExpiresAt", |
| 3003 | "createdAt", |
| 3004 | "updatedAt" |
| 3005 | ], |
| 3006 | "properties": { |
| 3007 | "id": { |
| 3008 | "type": "string" |
| 3009 | }, |
| 3010 | "providerKey": { |
| 3011 | "type": "string" |
| 3012 | }, |
| 3013 | "externalAccountId": { |
| 3014 | "type": [ |
| 3015 | "string", |
| 3016 | "null" |
| 3017 | ] |
| 3018 | }, |
| 3019 | "scopes": { |
| 3020 | "type": "array", |
| 3021 | "items": { |
| 3022 | "type": "string" |
| 3023 | } |
| 3024 | }, |
| 3025 | "tokenExpiresAt": { |
| 3026 | "type": [ |
| 3027 | "string", |
| 3028 | "null" |
| 3029 | ], |
| 3030 | "format": "date-time" |
| 3031 | }, |
| 3032 | "createdAt": { |
| 3033 | "type": "string", |
| 3034 | "format": "date-time" |
| 3035 | }, |
| 3036 | "updatedAt": { |
| 3037 | "type": "string", |
| 3038 | "format": "date-time" |
| 3039 | } |
| 3040 | } |
| 3041 | } |
| 3042 | } |
| 3043 | } |
| 3044 | } |
| 3045 | }, |
| 3046 | "WorkspaceAppDeliveriesResponse": { |
| 3047 | "type": "object", |
| 3048 | "required": [ |
| 3049 | "data" |
| 3050 | ], |
| 3051 | "properties": { |
| 3052 | "data": { |
| 3053 | "type": "object", |
| 3054 | "required": [ |
| 3055 | "install", |
| 3056 | "deliveries", |
| 3057 | "permissions" |
| 3058 | ], |
| 3059 | "properties": { |
| 3060 | "install": { |
| 3061 | "$ref": "#/components/schemas/InstalledAppSummary" |
| 3062 | }, |
| 3063 | "deliveries": { |
| 3064 | "type": "array", |
| 3065 | "items": { |
| 3066 | "type": "object", |
| 3067 | "required": [ |
| 3068 | "id", |
| 3069 | "eventType", |
| 3070 | "targetUrl", |
| 3071 | "status", |
| 3072 | "attemptCount", |
| 3073 | "lastStatusCode", |
| 3074 | "createdAt", |
| 3075 | "updatedAt" |
| 3076 | ], |
| 3077 | "properties": { |
| 3078 | "id": { |
| 3079 | "type": "string" |
| 3080 | }, |
| 3081 | "eventType": { |
| 3082 | "type": "string" |
| 3083 | }, |
| 3084 | "targetUrl": { |
| 3085 | "type": "string" |
| 3086 | }, |
| 3087 | "status": { |
| 3088 | "type": "string" |
| 3089 | }, |
| 3090 | "attemptCount": { |
| 3091 | "type": "integer" |
| 3092 | }, |
| 3093 | "lastStatusCode": { |
| 3094 | "type": [ |
| 3095 | "integer", |
| 3096 | "null" |
| 3097 | ] |
| 3098 | }, |
| 3099 | "createdAt": { |
| 3100 | "type": "string", |
| 3101 | "format": "date-time" |
| 3102 | }, |
| 3103 | "updatedAt": { |
| 3104 | "type": "string", |
| 3105 | "format": "date-time" |
| 3106 | } |
| 3107 | } |
| 3108 | } |
| 3109 | }, |
| 3110 | "permissions": { |
| 3111 | "type": "object", |
| 3112 | "required": [ |
| 3113 | "canManageApps" |
| 3114 | ], |
| 3115 | "properties": { |
| 3116 | "canManageApps": { |
| 3117 | "type": "boolean" |
| 3118 | } |
| 3119 | } |
| 3120 | } |
| 3121 | } |
| 3122 | } |
| 3123 | } |
| 3124 | }, |
| 3125 | "SendWorkspaceAppTestDeliveryResponse": { |
| 3126 | "type": "object", |
| 3127 | "required": [ |
| 3128 | "data" |
| 3129 | ], |
| 3130 | "properties": { |
| 3131 | "data": { |
| 3132 | "type": "object", |
| 3133 | "required": [ |
| 3134 | "delivery" |
| 3135 | ], |
| 3136 | "properties": { |
| 3137 | "delivery": { |
| 3138 | "type": "object", |
| 3139 | "required": [ |
| 3140 | "id", |
| 3141 | "eventType", |
| 3142 | "targetUrl", |
| 3143 | "status", |
| 3144 | "attemptCount", |
| 3145 | "lastStatusCode", |
| 3146 | "createdAt", |
| 3147 | "updatedAt" |
| 3148 | ], |
| 3149 | "properties": { |
| 3150 | "id": { |
| 3151 | "type": "string" |
| 3152 | }, |
| 3153 | "eventType": { |
| 3154 | "type": "string" |
| 3155 | }, |
| 3156 | "targetUrl": { |
| 3157 | "type": "string" |
| 3158 | }, |
| 3159 | "status": { |
| 3160 | "type": "string" |
| 3161 | }, |
| 3162 | "attemptCount": { |
| 3163 | "type": "integer" |
| 3164 | }, |
| 3165 | "lastStatusCode": { |
| 3166 | "type": [ |
| 3167 | "integer", |
| 3168 | "null" |
| 3169 | ] |
| 3170 | }, |
| 3171 | "createdAt": { |
| 3172 | "type": "string", |
| 3173 | "format": "date-time" |
| 3174 | }, |
| 3175 | "updatedAt": { |
| 3176 | "type": "string", |
| 3177 | "format": "date-time" |
| 3178 | } |
| 3179 | } |
| 3180 | } |
| 3181 | } |
| 3182 | } |
| 3183 | } |
| 3184 | }, |
| 3185 | "AppFileDocumentResponse": { |
| 3186 | "type": "object", |
| 3187 | "required": [ |
| 3188 | "data" |
| 3189 | ], |
| 3190 | "properties": { |
| 3191 | "data": { |
| 3192 | "type": "object", |
| 3193 | "required": [ |
| 3194 | "file", |
| 3195 | "document", |
| 3196 | "version", |
| 3197 | "capabilities" |
| 3198 | ], |
| 3199 | "properties": { |
| 3200 | "file": { |
| 3201 | "type": "object", |
| 3202 | "required": [ |
| 3203 | "id", |
| 3204 | "name", |
| 3205 | "fileType", |
| 3206 | "appKey", |
| 3207 | "appName", |
| 3208 | "typeLabel", |
| 3209 | "openHref", |
| 3210 | "updatedAt" |
| 3211 | ], |
| 3212 | "properties": { |
| 3213 | "id": { |
| 3214 | "type": "string" |
| 3215 | }, |
| 3216 | "name": { |
| 3217 | "type": "string" |
| 3218 | }, |
| 3219 | "fileType": { |
| 3220 | "type": "string" |
| 3221 | }, |
| 3222 | "appKey": { |
| 3223 | "type": "string" |
| 3224 | }, |
| 3225 | "appName": { |
| 3226 | "type": "string" |
| 3227 | }, |
| 3228 | "typeLabel": { |
| 3229 | "type": "string" |
| 3230 | }, |
| 3231 | "openHref": { |
| 3232 | "type": "string" |
| 3233 | }, |
| 3234 | "updatedAt": { |
| 3235 | "type": "string", |
| 3236 | "format": "date-time" |
| 3237 | } |
| 3238 | } |
| 3239 | }, |
| 3240 | "document": { |
| 3241 | "type": "object", |
| 3242 | "additionalProperties": true |
| 3243 | }, |
| 3244 | "version": { |
| 3245 | "type": "integer" |
| 3246 | }, |
| 3247 | "capabilities": { |
| 3248 | "type": "object", |
| 3249 | "required": [ |
| 3250 | "canRead", |
| 3251 | "canWrite", |
| 3252 | "canManage" |
| 3253 | ], |
| 3254 | "properties": { |
| 3255 | "canRead": { |
| 3256 | "type": "boolean" |
| 3257 | }, |
| 3258 | "canWrite": { |
| 3259 | "type": "boolean" |
| 3260 | }, |
| 3261 | "canManage": { |
| 3262 | "type": "boolean" |
| 3263 | } |
| 3264 | } |
| 3265 | } |
| 3266 | } |
| 3267 | } |
| 3268 | } |
| 3269 | }, |
| 3270 | "AppFileDocumentUpdateResponse": { |
| 3271 | "type": "object", |
| 3272 | "required": [ |
| 3273 | "data" |
| 3274 | ], |
| 3275 | "properties": { |
| 3276 | "data": { |
| 3277 | "type": "object", |
| 3278 | "required": [ |
| 3279 | "document", |
| 3280 | "version", |
| 3281 | "updatedAt" |
| 3282 | ], |
| 3283 | "properties": { |
| 3284 | "document": { |
| 3285 | "type": "object", |
| 3286 | "additionalProperties": true |
| 3287 | }, |
| 3288 | "version": { |
| 3289 | "type": "integer" |
| 3290 | }, |
| 3291 | "updatedAt": { |
| 3292 | "type": "string", |
| 3293 | "format": "date-time" |
| 3294 | } |
| 3295 | } |
| 3296 | } |
| 3297 | } |
| 3298 | }, |
| 3299 | "CreateAppNotificationInput": { |
| 3300 | "type": "object", |
| 3301 | "required": [ |
| 3302 | "channelKey", |
| 3303 | "typeKey", |
| 3304 | "recipients", |
| 3305 | "title" |
| 3306 | ], |
| 3307 | "properties": { |
| 3308 | "channelKey": { |
| 3309 | "type": "string" |
| 3310 | }, |
| 3311 | "typeKey": { |
| 3312 | "type": "string" |
| 3313 | }, |
| 3314 | "recipients": { |
| 3315 | "type": "array", |
| 3316 | "items": { |
| 3317 | "type": "object", |
| 3318 | "required": [ |
| 3319 | "userId" |
| 3320 | ], |
| 3321 | "properties": { |
| 3322 | "userId": { |
| 3323 | "type": "string" |
| 3324 | } |
| 3325 | } |
| 3326 | } |
| 3327 | }, |
| 3328 | "title": { |
| 3329 | "type": "string" |
| 3330 | }, |
| 3331 | "body": { |
| 3332 | "type": "string" |
| 3333 | }, |
| 3334 | "targetUrl": { |
| 3335 | "type": "string" |
| 3336 | }, |
| 3337 | "icon": { |
| 3338 | "type": "string" |
| 3339 | }, |
| 3340 | "priority": { |
| 3341 | "type": "string" |
| 3342 | }, |
| 3343 | "dedupeKey": { |
| 3344 | "type": "string" |
| 3345 | }, |
| 3346 | "metadata": { |
| 3347 | "type": "object", |
| 3348 | "additionalProperties": true |
| 3349 | } |
| 3350 | } |
| 3351 | }, |
| 3352 | "UpsertAppIndexDocumentsInput": { |
| 3353 | "type": "object", |
| 3354 | "required": [ |
| 3355 | "documents" |
| 3356 | ], |
| 3357 | "properties": { |
| 3358 | "documents": { |
| 3359 | "type": "array", |
| 3360 | "items": { |
| 3361 | "type": "object", |
| 3362 | "required": [ |
| 3363 | "documentKey", |
| 3364 | "documentType", |
| 3365 | "title" |
| 3366 | ], |
| 3367 | "properties": { |
| 3368 | "documentKey": { |
| 3369 | "type": "string" |
| 3370 | }, |
| 3371 | "documentType": { |
| 3372 | "type": "string" |
| 3373 | }, |
| 3374 | "fileId": { |
| 3375 | "type": "string" |
| 3376 | }, |
| 3377 | "title": { |
| 3378 | "type": "string" |
| 3379 | }, |
| 3380 | "body": { |
| 3381 | "type": "string" |
| 3382 | }, |
| 3383 | "url": { |
| 3384 | "type": "string" |
| 3385 | }, |
| 3386 | "metadata": { |
| 3387 | "type": "object", |
| 3388 | "additionalProperties": true |
| 3389 | }, |
| 3390 | "visibilityMode": { |
| 3391 | "type": "string" |
| 3392 | }, |
| 3393 | "visibility": { |
| 3394 | "type": "array", |
| 3395 | "items": { |
| 3396 | "type": "object", |
| 3397 | "required": [ |
| 3398 | "subjectType", |
| 3399 | "subjectId" |
| 3400 | ], |
| 3401 | "properties": { |
| 3402 | "subjectType": { |
| 3403 | "type": "string" |
| 3404 | }, |
| 3405 | "subjectId": { |
| 3406 | "type": "string" |
| 3407 | } |
| 3408 | } |
| 3409 | } |
| 3410 | } |
| 3411 | } |
| 3412 | } |
| 3413 | } |
| 3414 | } |
| 3415 | }, |
| 3416 | "UpsertAppIndexDocumentsResponse": { |
| 3417 | "type": "object", |
| 3418 | "required": [ |
| 3419 | "data" |
| 3420 | ], |
| 3421 | "properties": { |
| 3422 | "data": { |
| 3423 | "type": "object", |
| 3424 | "required": [ |
| 3425 | "documents" |
| 3426 | ], |
| 3427 | "properties": { |
| 3428 | "documents": { |
| 3429 | "type": "array", |
| 3430 | "items": { |
| 3431 | "type": "object", |
| 3432 | "required": [ |
| 3433 | "id", |
| 3434 | "documentKey", |
| 3435 | "visibilityMode" |
| 3436 | ], |
| 3437 | "properties": { |
| 3438 | "id": { |
| 3439 | "type": "string" |
| 3440 | }, |
| 3441 | "documentKey": { |
| 3442 | "type": "string" |
| 3443 | }, |
| 3444 | "visibilityMode": { |
| 3445 | "type": "string" |
| 3446 | } |
| 3447 | } |
| 3448 | } |
| 3449 | } |
| 3450 | } |
| 3451 | } |
| 3452 | } |
| 3453 | }, |
| 3454 | "DeleteAppIndexDocumentsInput": { |
| 3455 | "type": "object", |
| 3456 | "required": [ |
| 3457 | "documentKeys" |
| 3458 | ], |
| 3459 | "properties": { |
| 3460 | "documentKeys": { |
| 3461 | "type": "array", |
| 3462 | "items": { |
| 3463 | "type": "string" |
| 3464 | } |
| 3465 | } |
| 3466 | } |
| 3467 | }, |
| 3468 | "DeleteAppIndexDocumentsResponse": { |
| 3469 | "type": "object", |
| 3470 | "required": [ |
| 3471 | "data" |
| 3472 | ], |
| 3473 | "properties": { |
| 3474 | "data": { |
| 3475 | "type": "object", |
| 3476 | "required": [ |
| 3477 | "deleted" |
| 3478 | ], |
| 3479 | "properties": { |
| 3480 | "deleted": { |
| 3481 | "type": "array", |
| 3482 | "items": { |
| 3483 | "type": "object", |
| 3484 | "required": [ |
| 3485 | "id", |
| 3486 | "documentKey" |
| 3487 | ], |
| 3488 | "properties": { |
| 3489 | "id": { |
| 3490 | "type": "string" |
| 3491 | }, |
| 3492 | "documentKey": { |
| 3493 | "type": "string" |
| 3494 | } |
| 3495 | } |
| 3496 | } |
| 3497 | } |
| 3498 | } |
| 3499 | } |
| 3500 | } |
| 3501 | }, |
| 3502 | "EmitAppAmbientEventsInput": { |
| 3503 | "type": "object", |
| 3504 | "required": [ |
| 3505 | "events" |
| 3506 | ], |
| 3507 | "properties": { |
| 3508 | "events": { |
| 3509 | "type": "array", |
| 3510 | "items": { |
| 3511 | "type": "object", |
| 3512 | "required": [ |
| 3513 | "sourceKind", |
| 3514 | "action", |
| 3515 | "entityType", |
| 3516 | "entityId", |
| 3517 | "dedupeKey" |
| 3518 | ], |
| 3519 | "properties": { |
| 3520 | "sourceKind": { |
| 3521 | "type": "string" |
| 3522 | }, |
| 3523 | "action": { |
| 3524 | "type": "string" |
| 3525 | }, |
| 3526 | "entityType": { |
| 3527 | "type": "string" |
| 3528 | }, |
| 3529 | "entityId": { |
| 3530 | "type": "string" |
| 3531 | }, |
| 3532 | "actorUserId": { |
| 3533 | "type": "string" |
| 3534 | }, |
| 3535 | "containerType": { |
| 3536 | "type": "string" |
| 3537 | }, |
| 3538 | "containerId": { |
| 3539 | "type": "string" |
| 3540 | }, |
| 3541 | "occurredAt": { |
| 3542 | "type": "string", |
| 3543 | "format": "date-time" |
| 3544 | }, |
| 3545 | "dedupeKey": { |
| 3546 | "type": "string" |
| 3547 | }, |
| 3548 | "payload": { |
| 3549 | "type": "object", |
| 3550 | "additionalProperties": true |
| 3551 | }, |
| 3552 | "metadata": { |
| 3553 | "type": "object", |
| 3554 | "additionalProperties": true |
| 3555 | }, |
| 3556 | "schemaVersion": { |
| 3557 | "type": "integer" |
| 3558 | } |
| 3559 | } |
| 3560 | } |
| 3561 | } |
| 3562 | } |
| 3563 | }, |
| 3564 | "EmitAppAmbientEventsResponse": { |
| 3565 | "type": "object", |
| 3566 | "required": [ |
| 3567 | "data" |
| 3568 | ], |
| 3569 | "properties": { |
| 3570 | "data": { |
| 3571 | "type": "object", |
| 3572 | "required": [ |
| 3573 | "events" |
| 3574 | ], |
| 3575 | "properties": { |
| 3576 | "events": { |
| 3577 | "type": "array", |
| 3578 | "items": { |
| 3579 | "type": "object", |
| 3580 | "required": [ |
| 3581 | "id", |
| 3582 | "dedupeKey" |
| 3583 | ], |
| 3584 | "properties": { |
| 3585 | "id": { |
| 3586 | "type": "string" |
| 3587 | }, |
| 3588 | "dedupeKey": { |
| 3589 | "type": "string" |
| 3590 | } |
| 3591 | } |
| 3592 | } |
| 3593 | } |
| 3594 | } |
| 3595 | } |
| 3596 | } |
| 3597 | } |
| 3598 | } |
| 3599 | } |
| 3600 | } |
| 3601 |