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