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