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.
| 6 |
| export interface paths { |
| 7 | "/api/v1/tab/models": { |
| 8 | parameters: { |
| 9 | query?: never; |
| 10 | header?: never; |
| 11 | path?: never; |
| 12 | cookie?: never; |
| 13 | }; |
| 14 | /** List Tab models */ |
| 15 | get: operations["listTabModels"]; |
| 16 | put?: never; |
| 17 | post?: never; |
| 18 | delete?: never; |
| 19 | options?: never; |
| 20 | head?: never; |
| 21 | patch?: never; |
| 22 | trace?: never; |
| 23 | }; |
| 24 | "/api/v1/tab/chat/completions": { |
| 25 | parameters: { |
| 26 | query?: never; |
| 27 | header?: never; |
| 28 | path?: never; |
| 29 | cookie?: never; |
| 30 | }; |
| 31 | get?: never; |
| 32 | put?: never; |
| 33 | /** Create an OpenAI-compatible Tab chat completion */ |
| 34 | post: operations["createTabChatCompletion"]; |
| 35 | delete?: never; |
| 36 | options?: never; |
| 37 | head?: never; |
| 38 | patch?: never; |
| 39 | trace?: never; |
| 40 | }; |
| 41 | "/api/v1/oauth/authorize": { |
| 42 | parameters: { |
| 43 | query?: never; |
| 44 | header?: never; |
| 45 | path?: never; |
| 46 | cookie?: never; |
| 47 | }; |
| 48 | /** Authorize an OAuth client */ |
| 49 | get: operations["authorizeOauthClient"]; |
| 50 | put?: never; |
| 51 | post?: never; |
| 52 | delete?: never; |
| 53 | options?: never; |
| 54 | head?: never; |
| 55 | patch?: never; |
| 56 | trace?: never; |
| 57 | }; |
| 58 | "/api/v1/oauth/token": { |
| 59 | parameters: { |
| 60 | query?: never; |
| 61 | header?: never; |
| 62 | path?: never; |
| 63 | cookie?: never; |
| 64 | }; |
| 65 | get?: never; |
| 66 | put?: never; |
| 67 | /** Exchange an authorization code for tokens */ |
| 68 | post: operations["exchangeOauthAuthorizationCode"]; |
| 69 | delete?: never; |
| 70 | options?: never; |
| 71 | head?: never; |
| 72 | patch?: never; |
| 73 | trace?: never; |
| 74 | }; |
| 75 | "/api/v1/oauth/userinfo": { |
| 76 | parameters: { |
| 77 | query?: never; |
| 78 | header?: never; |
| 79 | path?: never; |
| 80 | cookie?: never; |
| 81 | }; |
| 82 | /** Resolve OAuth userinfo */ |
| 83 | get: operations["getOauthUserInfo"]; |
| 84 | put?: never; |
| 85 | post?: never; |
| 86 | delete?: never; |
| 87 | options?: never; |
| 88 | head?: never; |
| 89 | patch?: never; |
| 90 | trace?: never; |
| 91 | }; |
| 92 | "/api/v1/apps": { |
| 93 | parameters: { |
| 94 | query?: never; |
| 95 | header?: never; |
| 96 | path?: never; |
| 97 | cookie?: never; |
| 98 | }; |
| 99 | /** List store apps */ |
| 100 | get: operations["listStoreApps"]; |
| 101 | put?: never; |
| 102 | /** Register a new app and initial release */ |
| 103 | post: operations["registerApp"]; |
| 104 | delete?: never; |
| 105 | options?: never; |
| 106 | head?: never; |
| 107 | patch?: never; |
| 108 | trace?: never; |
| 109 | }; |
| 110 | "/api/v1/apps/{appKey}": { |
| 111 | parameters: { |
| 112 | query?: never; |
| 113 | header?: never; |
| 114 | path?: never; |
| 115 | cookie?: never; |
| 116 | }; |
| 117 | /** Get a store app */ |
| 118 | get: operations["getStoreApp"]; |
| 119 | put?: never; |
| 120 | post?: never; |
| 121 | delete?: never; |
| 122 | options?: never; |
| 123 | head?: never; |
| 124 | patch?: never; |
| 125 | trace?: never; |
| 126 | }; |
| 127 | "/api/v1/apps/{appKey}/versions": { |
| 128 | parameters: { |
| 129 | query?: never; |
| 130 | header?: never; |
| 131 | path?: never; |
| 132 | cookie?: never; |
| 133 | }; |
| 134 | /** List approved versions for a store app */ |
| 135 | get: operations["listStoreAppVersions"]; |
| 136 | put?: never; |
| 137 | /** Create a new app version */ |
| 138 | post: operations["createAppVersion"]; |
| 139 | delete?: never; |
| 140 | options?: never; |
| 141 | head?: never; |
| 142 | patch?: never; |
| 143 | trace?: never; |
| 144 | }; |
| 145 | "/api/v1/apps/{appKey}/versions/{versionId}/submit": { |
| 146 | parameters: { |
| 147 | query?: never; |
| 148 | header?: never; |
| 149 | path?: never; |
| 150 | cookie?: never; |
| 151 | }; |
| 152 | get?: never; |
| 153 | put?: never; |
| 154 | /** Submit an app version for review */ |
| 155 | post: operations["submitAppVersionForReview"]; |
| 156 | delete?: never; |
| 157 | options?: never; |
| 158 | head?: never; |
| 159 | patch?: never; |
| 160 | trace?: never; |
| 161 | }; |
| 162 | "/api/v1/workspaces/{workspaceSlug}/apps": { |
| 163 | parameters: { |
| 164 | query?: never; |
| 165 | header?: never; |
| 166 | path?: never; |
| 167 | cookie?: never; |
| 168 | }; |
| 169 | /** List installed apps and workspace-visible catalog */ |
| 170 | get: operations["listWorkspaceApps"]; |
| 171 | put?: never; |
| 172 | /** Install an app into a workspace */ |
| 173 | post: operations["installWorkspaceApp"]; |
| 174 | delete?: never; |
| 175 | options?: never; |
| 176 | head?: never; |
| 177 | patch?: never; |
| 178 | trace?: never; |
| 179 | }; |
| 180 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}": { |
| 181 | parameters: { |
| 182 | query?: never; |
| 183 | header?: never; |
| 184 | path?: never; |
| 185 | cookie?: never; |
| 186 | }; |
| 187 | /** Get an installed workspace app */ |
| 188 | get: operations["getWorkspaceInstalledApp"]; |
| 189 | put?: never; |
| 190 | post?: never; |
| 191 | /** Uninstall a workspace app */ |
| 192 | delete: operations["uninstallWorkspaceApp"]; |
| 193 | options?: never; |
| 194 | head?: never; |
| 195 | patch?: never; |
| 196 | trace?: never; |
| 197 | }; |
| 198 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/permissions": { |
| 199 | parameters: { |
| 200 | query?: never; |
| 201 | header?: never; |
| 202 | path?: never; |
| 203 | cookie?: never; |
| 204 | }; |
| 205 | /** Get granted workspace app permissions */ |
| 206 | get: operations["getWorkspaceAppPermissions"]; |
| 207 | /** Update granted workspace app permissions */ |
| 208 | put: operations["updateWorkspaceAppPermissions"]; |
| 209 | post?: never; |
| 210 | delete?: never; |
| 211 | options?: never; |
| 212 | head?: never; |
| 213 | patch?: never; |
| 214 | trace?: never; |
| 215 | }; |
| 216 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/secrets": { |
| 217 | parameters: { |
| 218 | query?: never; |
| 219 | header?: never; |
| 220 | path?: never; |
| 221 | cookie?: never; |
| 222 | }; |
| 223 | /** List app secrets */ |
| 224 | get: operations["listWorkspaceAppSecrets"]; |
| 225 | put?: never; |
| 226 | /** Create or rotate app secret */ |
| 227 | post: operations["createWorkspaceAppSecret"]; |
| 228 | delete?: never; |
| 229 | options?: never; |
| 230 | head?: never; |
| 231 | patch?: never; |
| 232 | trace?: never; |
| 233 | }; |
| 234 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/secrets/{secretId}": { |
| 235 | parameters: { |
| 236 | query?: never; |
| 237 | header?: never; |
| 238 | path?: never; |
| 239 | cookie?: never; |
| 240 | }; |
| 241 | get?: never; |
| 242 | put?: never; |
| 243 | post?: never; |
| 244 | /** Delete app secret */ |
| 245 | delete: operations["deleteWorkspaceAppSecret"]; |
| 246 | options?: never; |
| 247 | head?: never; |
| 248 | patch?: never; |
| 249 | trace?: never; |
| 250 | }; |
| 251 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/oauth-connections": { |
| 252 | parameters: { |
| 253 | query?: never; |
| 254 | header?: never; |
| 255 | path?: never; |
| 256 | cookie?: never; |
| 257 | }; |
| 258 | /** List app OAuth connections */ |
| 259 | get: operations["listWorkspaceAppOauthConnections"]; |
| 260 | put?: never; |
| 261 | /** Create or update app OAuth connection */ |
| 262 | post: operations["createWorkspaceAppOauthConnection"]; |
| 263 | delete?: never; |
| 264 | options?: never; |
| 265 | head?: never; |
| 266 | patch?: never; |
| 267 | trace?: never; |
| 268 | }; |
| 269 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/oauth-connections/{connectionId}": { |
| 270 | parameters: { |
| 271 | query?: never; |
| 272 | header?: never; |
| 273 | path?: never; |
| 274 | cookie?: never; |
| 275 | }; |
| 276 | get?: never; |
| 277 | put?: never; |
| 278 | post?: never; |
| 279 | /** Delete app OAuth connection */ |
| 280 | delete: operations["deleteWorkspaceAppOauthConnection"]; |
| 281 | options?: never; |
| 282 | head?: never; |
| 283 | patch?: never; |
| 284 | trace?: never; |
| 285 | }; |
| 286 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/deliveries": { |
| 287 | parameters: { |
| 288 | query?: never; |
| 289 | header?: never; |
| 290 | path?: never; |
| 291 | cookie?: never; |
| 292 | }; |
| 293 | /** List app deliveries */ |
| 294 | get: operations["listWorkspaceAppDeliveries"]; |
| 295 | put?: never; |
| 296 | /** Send a signed test delivery */ |
| 297 | post: operations["sendWorkspaceAppTestDelivery"]; |
| 298 | delete?: never; |
| 299 | options?: never; |
| 300 | head?: never; |
| 301 | patch?: never; |
| 302 | trace?: never; |
| 303 | }; |
| 304 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/deliveries/{deliveryId}/replay": { |
| 305 | parameters: { |
| 306 | query?: never; |
| 307 | header?: never; |
| 308 | path?: never; |
| 309 | cookie?: never; |
| 310 | }; |
| 311 | get?: never; |
| 312 | put?: never; |
| 313 | /** Replay a stored app delivery */ |
| 314 | post: operations["replayWorkspaceAppDelivery"]; |
| 315 | delete?: never; |
| 316 | options?: never; |
| 317 | head?: never; |
| 318 | patch?: never; |
| 319 | trace?: never; |
| 320 | }; |
| 321 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/files/{fileId}": { |
| 322 | parameters: { |
| 323 | query?: never; |
| 324 | header?: never; |
| 325 | path?: never; |
| 326 | cookie?: never; |
| 327 | }; |
| 328 | /** Read an app-backed file document */ |
| 329 | get: operations["getAppFileDocument"]; |
| 330 | put?: never; |
| 331 | post?: never; |
| 332 | /** Delete an app-backed file (soft-delete to trash) */ |
| 333 | delete: operations["deleteAppFile"]; |
| 334 | options?: never; |
| 335 | head?: never; |
| 336 | /** Update an app-backed file document */ |
| 337 | patch: operations["updateAppFileDocument"]; |
| 338 | trace?: never; |
| 339 | }; |
| 340 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/files": { |
| 341 | parameters: { |
| 342 | query?: never; |
| 343 | header?: never; |
| 344 | path?: never; |
| 345 | cookie?: never; |
| 346 | }; |
| 347 | /** List app-backed files */ |
| 348 | get: operations["listAppFiles"]; |
| 349 | put?: never; |
| 350 | /** Create an app-backed file */ |
| 351 | post: operations["createAppFile"]; |
| 352 | delete?: never; |
| 353 | options?: never; |
| 354 | head?: never; |
| 355 | patch?: never; |
| 356 | trace?: never; |
| 357 | }; |
| 358 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/actions": { |
| 359 | parameters: { |
| 360 | query?: never; |
| 361 | header?: never; |
| 362 | path?: never; |
| 363 | cookie?: never; |
| 364 | }; |
| 365 | get?: never; |
| 366 | put?: never; |
| 367 | /** Execute a hosted app action */ |
| 368 | post: operations["executeAppAction"]; |
| 369 | delete?: never; |
| 370 | options?: never; |
| 371 | head?: never; |
| 372 | patch?: never; |
| 373 | trace?: never; |
| 374 | }; |
| 375 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/notifications": { |
| 376 | parameters: { |
| 377 | query?: never; |
| 378 | header?: never; |
| 379 | path?: never; |
| 380 | cookie?: never; |
| 381 | }; |
| 382 | get?: never; |
| 383 | put?: never; |
| 384 | /** Create an app notification */ |
| 385 | post: operations["createAppNotification"]; |
| 386 | delete?: never; |
| 387 | options?: never; |
| 388 | head?: never; |
| 389 | patch?: never; |
| 390 | trace?: never; |
| 391 | }; |
| 392 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/index-documents": { |
| 393 | parameters: { |
| 394 | query?: never; |
| 395 | header?: never; |
| 396 | path?: never; |
| 397 | cookie?: never; |
| 398 | }; |
| 399 | get?: never; |
| 400 | put?: never; |
| 401 | /** Upsert app index documents */ |
| 402 | post: operations["upsertAppIndexDocuments"]; |
| 403 | /** Delete app index documents */ |
| 404 | delete: operations["deleteAppIndexDocuments"]; |
| 405 | options?: never; |
| 406 | head?: never; |
| 407 | patch?: never; |
| 408 | trace?: never; |
| 409 | }; |
| 410 | "/api/v1/workspaces/{workspaceSlug}/apps/{appKey}/ambient/events": { |
| 411 | parameters: { |
| 412 | query?: never; |
| 413 | header?: never; |
| 414 | path?: never; |
| 415 | cookie?: never; |
| 416 | }; |
| 417 | get?: never; |
| 418 | put?: never; |
| 419 | /** Emit app ambient events */ |
| 420 | post: operations["emitAppAmbientEvents"]; |
| 421 | delete?: never; |
| 422 | options?: never; |
| 423 | head?: never; |
| 424 | patch?: never; |
| 425 | trace?: never; |
| 426 | }; |
| 427 | "/api/v1/workspaces/{workspaceSlug}/uploads/initiate": { |
| 428 | parameters: { |
| 429 | query?: never; |
| 430 | header?: never; |
| 431 | path?: never; |
| 432 | cookie?: never; |
| 433 | }; |
| 434 | get?: never; |
| 435 | put?: never; |
| 436 | /** Initiate a multipart file upload */ |
| 437 | post: operations["initiateUpload"]; |
| 438 | delete?: never; |
| 439 | options?: never; |
| 440 | head?: never; |
| 441 | patch?: never; |
| 442 | trace?: never; |
| 443 | }; |
| 444 | "/api/v1/workspaces/{workspaceSlug}/uploads/part": { |
| 445 | parameters: { |
| 446 | query?: never; |
| 447 | header?: never; |
| 448 | path?: never; |
| 449 | cookie?: never; |
| 450 | }; |
| 451 | get?: never; |
| 452 | put?: never; |
| 453 | /** Upload a single part of a multipart upload */ |
| 454 | post: operations["uploadPart"]; |
| 455 | delete?: never; |
| 456 | options?: never; |
| 457 | head?: never; |
| 458 | patch?: never; |
| 459 | trace?: never; |
| 460 | }; |
| 461 | "/api/v1/workspaces/{workspaceSlug}/uploads/complete": { |
| 462 | parameters: { |
| 463 | query?: never; |
| 464 | header?: never; |
| 465 | path?: never; |
| 466 | cookie?: never; |
| 467 | }; |
| 468 | get?: never; |
| 469 | put?: never; |
| 470 | /** Finalize a multipart upload and create the file */ |
| 471 | post: operations["completeUpload"]; |
| 472 | delete?: never; |
| 473 | options?: never; |
| 474 | head?: never; |
| 475 | patch?: never; |
| 476 | trace?: never; |
| 477 | }; |
| 478 | "/api/v1/workspaces/{workspaceSlug}/taskboards/{taskboardId}/tasks/batch-create": { |
| 479 | parameters: { |
| 480 | query?: never; |
| 481 | header?: never; |
| 482 | path?: never; |
| 483 | cookie?: never; |
| 484 | }; |
| 485 | get?: never; |
| 486 | put?: never; |
| 487 | /** Batch create tasks in a taskboard */ |
| 488 | post: operations["batchCreateTasks"]; |
| 489 | delete?: never; |
| 490 | options?: never; |
| 491 | head?: never; |
| 492 | patch?: never; |
| 493 | trace?: never; |
| 494 | }; |
| 495 | "/api/v1/workspaces/{workspaceSlug}/taskboards/{taskboardId}/tasks/batch-update": { |
| 496 | parameters: { |
| 497 | query?: never; |
| 498 | header?: never; |
| 499 | path?: never; |
| 500 | cookie?: never; |
| 501 | }; |
| 502 | get?: never; |
| 503 | put?: never; |
| 504 | /** Batch update tasks in a taskboard */ |
| 505 | post: operations["batchUpdateTasks"]; |
| 506 | delete?: never; |
| 507 | options?: never; |
| 508 | head?: never; |
| 509 | patch?: never; |
| 510 | trace?: never; |
| 511 | }; |
| 512 | "/api/v1/workspaces/{workspaceSlug}/taskboards/{taskboardId}/tasks/batch-delete": { |
| 513 | parameters: { |
| 514 | query?: never; |
| 515 | header?: never; |
| 516 | path?: never; |
| 517 | cookie?: never; |
| 518 | }; |
| 519 | get?: never; |
| 520 | put?: never; |
| 521 | /** Batch delete tasks in a taskboard */ |
| 522 | post: operations["batchDeleteTasks"]; |
| 523 | delete?: never; |
| 524 | options?: never; |
| 525 | head?: never; |
| 526 | patch?: never; |
| 527 | trace?: never; |
| 528 | }; |
| 529 | } |
| 530 | export type webhooks = Record<string, never>; |
| 531 | export interface components { |
| 532 | schemas: { |
| 533 | ErrorEnvelope: { |
| 534 | error: { |
| 535 | code: string; |
| 536 | message: string; |
| 537 | }; |
| 538 | }; |
| 539 | OAuthErrorResponse: { |
| 540 | error: string; |
| 541 | error_description: string; |
| 542 | }; |
| 543 | OAuthTokenExchangeInput: { |
| 544 | /** @constant */ |
| 545 | grant_type: "authorization_code"; |
| 546 | client_id: string; |
| 547 | client_secret: string; |
| 548 | code: string; |
| 549 | /** Format: uri */ |
| 550 | redirect_uri: string; |
| 551 | code_verifier?: string; |
| 552 | }; |
| 553 | OAuthTokenResponse: { |
| 554 | access_token: string; |
| 555 | /** @constant */ |
| 556 | token_type: "Bearer"; |
| 557 | expires_in: number; |
| 558 | refresh_token: string; |
| 559 | scope: string; |
| 560 | }; |
| 561 | OAuthUserInfoResponse: { |
| 562 | sub: string; |
| 563 | email: string; |
| 564 | email_verified: boolean; |
| 565 | name: string; |
| 566 | given_name: string | null; |
| 567 | family_name: string | null; |
| 568 | picture: string | null; |
| 569 | preferred_username: string | null; |
| 570 | scope: string; |
| 571 | }; |
| 572 | TabModelRecord: { |
| 573 | id: string; |
| 574 | /** @constant */ |
| 575 | object: "model"; |
| 576 | created: number; |
| 577 | owned_by: string; |
| 578 | providerModelId: string; |
| 579 | pricing: { |
| 580 | inputPerMillionUsd: number; |
| 581 | outputPerMillionUsd: number; |
| 582 | }; |
| 583 | capabilities: { |
| 584 | streaming: boolean; |
| 585 | surfaces: string[]; |
| 586 | }; |
| 587 | }; |
| 588 | TabModelsResponse: { |
| 589 | data: { |
| 590 | /** @constant */ |
| 591 | object: "list"; |
| 592 | data: components["schemas"]["TabModelRecord"][]; |
| 593 | }; |
| 594 | }; |
| 595 | TabChatCompletionInput: { |
| 596 | model?: string; |
| 597 | messages?: { |
| 598 | role?: string; |
| 599 | content?: string; |
| 600 | }[]; |
| 601 | stream?: boolean; |
| 602 | max_tokens?: number; |
| 603 | max_completion_tokens?: number; |
| 604 | temperature?: number; |
| 605 | top_p?: number; |
| 606 | /** @description Optional. When omitted, context is inferred from the messages array and the API key's workspace. */ |
| 607 | tab_context?: { |
| 608 | [key: string]: unknown; |
| 609 | }; |
| 610 | }; |
| 611 | TabChatCompletionResponseEnvelope: { |
| 612 | data: { |
| 613 | id: string; |
| 614 | /** @constant */ |
| 615 | object: "chat.completion"; |
| 616 | created: number; |
| 617 | model: string; |
| 618 | choices: { |
| 619 | index: number; |
| 620 | message: { |
| 621 | /** @constant */ |
| 622 | role: "assistant"; |
| 623 | content: string; |
| 624 | }; |
| 625 | /** @constant */ |
| 626 | finish_reason: "stop"; |
| 627 | }[]; |
| 628 | usage: { |
| 629 | prompt_tokens: number; |
| 630 | completion_tokens: number; |
| 631 | total_tokens: number; |
| 632 | }; |
| 633 | }; |
| 634 | }; |
| 635 | OkResponse: { |
| 636 | data: { |
| 637 | /** @constant */ |
| 638 | ok: true; |
| 639 | }; |
| 640 | }; |
| 641 | AppCatalogItem: { |
| 642 | appId: string; |
| 643 | appKey: string; |
| 644 | name: string; |
| 645 | description: string | null; |
| 646 | iconUrl: string | null; |
| 647 | status: string; |
| 648 | latestPublishedVersion: string | null; |
| 649 | latestPublishedVersionId: string | null; |
| 650 | isInstalled: boolean; |
| 651 | }; |
| 652 | RegisteredAppDetail: { |
| 653 | appId: string; |
| 654 | appKey: string; |
| 655 | name: string; |
| 656 | description: string | null; |
| 657 | iconUrl: string | null; |
| 658 | status: string; |
| 659 | ownerUserId: string | null; |
| 660 | storeListed: boolean; |
| 661 | latestPublishedVersion: string | null; |
| 662 | latestPublishedVersionId: string | null; |
| 663 | }; |
| 664 | RegisteredAppVersionSummary: { |
| 665 | versionId: string; |
| 666 | version: string; |
| 667 | status: string; |
| 668 | reviewStatus: string; |
| 669 | apiBaseUrl: string; |
| 670 | permissions: string[]; |
| 671 | notificationChannels: { |
| 672 | key: string; |
| 673 | name: string; |
| 674 | description?: string; |
| 675 | defaultDeliveries: string[]; |
| 676 | defaultPriority: string; |
| 677 | }[]; |
| 678 | kairo: { |
| 679 | [key: string]: unknown; |
| 680 | } | null; |
| 681 | fileTypes: { |
| 682 | typeKey: string; |
| 683 | name: string; |
| 684 | description: string | null; |
| 685 | }[]; |
| 686 | /** Format: date-time */ |
| 687 | submittedAt: string | null; |
| 688 | /** Format: date-time */ |
| 689 | reviewedAt: string | null; |
| 690 | reviewNotes: string | null; |
| 691 | /** Format: date-time */ |
| 692 | publishedAt: string | null; |
| 693 | /** Format: date-time */ |
| 694 | createdAt: string; |
| 695 | /** Format: date-time */ |
| 696 | updatedAt: string; |
| 697 | }; |
| 698 | InstalledAppSummary: { |
| 699 | installId: string; |
| 700 | appId: string; |
| 701 | appKey: string; |
| 702 | name: string; |
| 703 | description: string | null; |
| 704 | iconUrl: string | null; |
| 705 | status: string; |
| 706 | installScope: string; |
| 707 | scopeSubjectId: string; |
| 708 | version: string | null; |
| 709 | }; |
| 710 | StoreAppsResponse: { |
| 711 | data: { |
| 712 | apps: components["schemas"]["RegisteredAppDetail"][]; |
| 713 | }; |
| 714 | }; |
| 715 | StoreAppResponse: { |
| 716 | data: { |
| 717 | app: components["schemas"]["RegisteredAppDetail"]; |
| 718 | }; |
| 719 | }; |
| 720 | StoreAppVersionsResponse: { |
| 721 | data: { |
| 722 | versions: components["schemas"]["RegisteredAppVersionSummary"][]; |
| 723 | }; |
| 724 | }; |
| 725 | WorkspaceAppsResponse: { |
| 726 | data: { |
| 727 | installedApps: components["schemas"]["InstalledAppSummary"][]; |
| 728 | catalog: components["schemas"]["AppCatalogItem"][]; |
| 729 | permissions: { |
| 730 | canManageApps: boolean; |
| 731 | }; |
| 732 | }; |
| 733 | }; |
| 734 | InstallWorkspaceAppInput: { |
| 735 | appId: string; |
| 736 | pinnedVersionId?: string; |
| 737 | grantedPermissions?: string[]; |
| 738 | }; |
| 739 | InstallWorkspaceAppResponse: { |
| 740 | data: { |
| 741 | installId: string; |
| 742 | appId: string; |
| 743 | appKey: string; |
| 744 | version: string; |
| 745 | grantedPermissions: string[]; |
| 746 | }; |
| 747 | }; |
| 748 | WorkspaceInstalledAppResponse: { |
| 749 | data: { |
| 750 | install: components["schemas"]["InstalledAppSummary"]; |
| 751 | permissions: { |
| 752 | canManageApps: boolean; |
| 753 | }; |
| 754 | }; |
| 755 | }; |
| 756 | WorkspaceAppPermissionsResponse: { |
| 757 | data: { |
| 758 | install: components["schemas"]["InstalledAppSummary"]; |
| 759 | availablePermissions: string[]; |
| 760 | grantedPermissions: string[]; |
| 761 | permissions: { |
| 762 | canManageApps: boolean; |
| 763 | }; |
| 764 | }; |
| 765 | }; |
| 766 | RegisterAppInput: { |
| 767 | version: string; |
| 768 | manifest: { |
| 769 | key: string; |
| 770 | name: string; |
| 771 | description?: string; |
| 772 | iconUrl?: string; |
| 773 | permissions: string[]; |
| 774 | notificationChannels: { |
| 775 | key: string; |
| 776 | name: string; |
| 777 | description?: string; |
| 778 | defaultDeliveries: string[]; |
| 779 | defaultPriority: string; |
| 780 | }[]; |
| 781 | kairo?: { |
| 782 | [key: string]: unknown; |
| 783 | }; |
| 784 | hosting: { |
| 785 | /** @constant */ |
| 786 | mode: "external"; |
| 787 | baseUrl: string; |
| 788 | }; |
| 789 | }; |
| 790 | fileTypes: { |
| 791 | typeKey: string; |
| 792 | name: string; |
| 793 | description?: string; |
| 794 | /** @constant */ |
| 795 | storage: "coline_document"; |
| 796 | indexable: boolean; |
| 797 | homeRenderMode: string; |
| 798 | }[]; |
| 799 | }; |
| 800 | AppVersionMutationResponse: { |
| 801 | data: { |
| 802 | appId: string; |
| 803 | appKey: string; |
| 804 | versionId: string; |
| 805 | version: string; |
| 806 | }; |
| 807 | }; |
| 808 | SubmitAppVersionForReviewResponse: { |
| 809 | data: { |
| 810 | appId: string; |
| 811 | appKey: string; |
| 812 | versionId: string; |
| 813 | version: string; |
| 814 | /** @constant */ |
| 815 | reviewStatus: "submitted"; |
| 816 | storeListed: boolean; |
| 817 | }; |
| 818 | }; |
| 819 | WorkspaceAppSecretsResponse: { |
| 820 | data: { |
| 821 | install: components["schemas"]["InstalledAppSummary"]; |
| 822 | secrets: { |
| 823 | id: string; |
| 824 | key: string; |
| 825 | /** Format: date-time */ |
| 826 | createdAt: string; |
| 827 | /** Format: date-time */ |
| 828 | updatedAt: string; |
| 829 | }[]; |
| 830 | permissions: { |
| 831 | canManageApps: boolean; |
| 832 | }; |
| 833 | }; |
| 834 | }; |
| 835 | CreateWorkspaceAppSecretResponse: { |
| 836 | data: { |
| 837 | secret: { |
| 838 | id: string; |
| 839 | key: string; |
| 840 | /** Format: date-time */ |
| 841 | createdAt: string; |
| 842 | /** Format: date-time */ |
| 843 | updatedAt: string; |
| 844 | }; |
| 845 | value: string; |
| 846 | }; |
| 847 | }; |
| 848 | WorkspaceAppOauthConnectionsResponse: { |
| 849 | data: { |
| 850 | install: components["schemas"]["InstalledAppSummary"]; |
| 851 | connections: { |
| 852 | id: string; |
| 853 | providerKey: string; |
| 854 | externalAccountId: string | null; |
| 855 | scopes: string[]; |
| 856 | /** Format: date-time */ |
| 857 | tokenExpiresAt: string | null; |
| 858 | /** Format: date-time */ |
| 859 | createdAt: string; |
| 860 | /** Format: date-time */ |
| 861 | updatedAt: string; |
| 862 | }[]; |
| 863 | permissions: { |
| 864 | canManageApps: boolean; |
| 865 | }; |
| 866 | }; |
| 867 | }; |
| 868 | CreateWorkspaceAppOauthConnectionResponse: { |
| 869 | data: { |
| 870 | connection: { |
| 871 | id: string; |
| 872 | providerKey: string; |
| 873 | externalAccountId: string | null; |
| 874 | scopes: string[]; |
| 875 | /** Format: date-time */ |
| 876 | tokenExpiresAt: string | null; |
| 877 | /** Format: date-time */ |
| 878 | createdAt: string; |
| 879 | /** Format: date-time */ |
| 880 | updatedAt: string; |
| 881 | }; |
| 882 | }; |
| 883 | }; |
| 884 | WorkspaceAppDeliveriesResponse: { |
| 885 | data: { |
| 886 | install: components["schemas"]["InstalledAppSummary"]; |
| 887 | deliveries: { |
| 888 | id: string; |
| 889 | eventType: string; |
| 890 | targetUrl: string; |
| 891 | status: string; |
| 892 | attemptCount: number; |
| 893 | lastStatusCode: number | null; |
| 894 | /** Format: date-time */ |
| 895 | createdAt: string; |
| 896 | /** Format: date-time */ |
| 897 | updatedAt: string; |
| 898 | }[]; |
| 899 | permissions: { |
| 900 | canManageApps: boolean; |
| 901 | }; |
| 902 | }; |
| 903 | }; |
| 904 | SendWorkspaceAppTestDeliveryResponse: { |
| 905 | data: { |
| 906 | delivery: { |
| 907 | id: string; |
| 908 | eventType: string; |
| 909 | targetUrl: string; |
| 910 | status: string; |
| 911 | attemptCount: number; |
| 912 | lastStatusCode: number | null; |
| 913 | /** Format: date-time */ |
| 914 | createdAt: string; |
| 915 | /** Format: date-time */ |
| 916 | updatedAt: string; |
| 917 | }; |
| 918 | }; |
| 919 | }; |
| 920 | AppFilesListResponse: { |
| 921 | data: { |
| 922 | files: { |
| 923 | id: string; |
| 924 | driveId: string; |
| 925 | parentId: string | null; |
| 926 | name: string; |
| 927 | fileType: string; |
| 928 | typeLabel: string; |
| 929 | appKey: string; |
| 930 | appName: string; |
| 931 | openHref: string; |
| 932 | /** Format: date-time */ |
| 933 | updatedAt: string; |
| 934 | /** Format: date-time */ |
| 935 | createdAt: string; |
| 936 | version: number; |
| 937 | capabilities: { |
| 938 | canRead: boolean; |
| 939 | canWrite: boolean; |
| 940 | canManage: boolean; |
| 941 | }; |
| 942 | }[]; |
| 943 | availableFileTypes: { |
| 944 | typeKey: string; |
| 945 | name: string; |
| 946 | description: string | null; |
| 947 | }[]; |
| 948 | }; |
| 949 | }; |
| 950 | CreateAppFileInput: { |
| 951 | name: string; |
| 952 | typeKey?: string; |
| 953 | driveId?: string; |
| 954 | parentId?: string | null; |
| 955 | document?: { |
| 956 | [key: string]: unknown; |
| 957 | }; |
| 958 | }; |
| 959 | CreateAppFileResponse: { |
| 960 | data: { |
| 961 | file: { |
| 962 | id: string; |
| 963 | driveId: string; |
| 964 | parentId: string | null; |
| 965 | name: string; |
| 966 | fileType: string; |
| 967 | typeLabel: string; |
| 968 | appKey: string; |
| 969 | appName: string; |
| 970 | openHref: string; |
| 971 | /** Format: date-time */ |
| 972 | updatedAt: string; |
| 973 | /** Format: date-time */ |
| 974 | createdAt: string; |
| 975 | version: number; |
| 976 | capabilities: { |
| 977 | canRead: boolean; |
| 978 | canWrite: boolean; |
| 979 | canManage: boolean; |
| 980 | }; |
| 981 | }; |
| 982 | document: { |
| 983 | [key: string]: unknown; |
| 984 | }; |
| 985 | version: number; |
| 986 | }; |
| 987 | }; |
| 988 | ExecuteAppActionInput: { |
| 989 | action: { |
| 990 | type: string; |
| 991 | payload?: { |
| 992 | [key: string]: unknown; |
| 993 | }; |
| 994 | }; |
| 995 | fileId?: string | null; |
| 996 | }; |
| 997 | ExecuteAppActionResponse: { |
| 998 | data: { |
| 999 | /** @enum {string} */ |
| 1000 | type: "ok" | "refresh"; |
| 1001 | } | { |
| 1002 | /** @enum {string} */ |
| 1003 | type: "navigate"; |
| 1004 | href: string; |
| 1005 | } | { |
| 1006 | /** @enum {string} */ |
| 1007 | type: "open_file"; |
| 1008 | fileId: string; |
| 1009 | }; |
| 1010 | }; |
| 1011 | AppFileDocumentResponse: { |
| 1012 | data: { |
| 1013 | file: { |
| 1014 | id: string; |
| 1015 | name: string; |
| 1016 | fileType: string; |
| 1017 | appKey: string; |
| 1018 | appName: string; |
| 1019 | typeLabel: string; |
| 1020 | openHref: string; |
| 1021 | /** Format: date-time */ |
| 1022 | updatedAt: string; |
| 1023 | }; |
| 1024 | document: { |
| 1025 | [key: string]: unknown; |
| 1026 | }; |
| 1027 | version: number; |
| 1028 | capabilities: { |
| 1029 | canRead: boolean; |
| 1030 | canWrite: boolean; |
| 1031 | canManage: boolean; |
| 1032 | }; |
| 1033 | }; |
| 1034 | }; |
| 1035 | AppFileDocumentUpdateResponse: { |
| 1036 | data: { |
| 1037 | document: { |
| 1038 | [key: string]: unknown; |
| 1039 | }; |
| 1040 | version: number; |
| 1041 | /** Format: date-time */ |
| 1042 | updatedAt: string; |
| 1043 | }; |
| 1044 | }; |
| 1045 | CreateAppNotificationInput: { |
| 1046 | channelKey: string; |
| 1047 | typeKey: string; |
| 1048 | recipients: { |
| 1049 | userId: string; |
| 1050 | }[]; |
| 1051 | title: string; |
| 1052 | body?: string; |
| 1053 | targetUrl?: string; |
| 1054 | icon?: string; |
| 1055 | priority?: string; |
| 1056 | dedupeKey?: string; |
| 1057 | metadata?: { |
| 1058 | [key: string]: unknown; |
| 1059 | }; |
| 1060 | }; |
| 1061 | UpsertAppIndexDocumentsInput: { |
| 1062 | documents: { |
| 1063 | documentKey: string; |
| 1064 | documentType: string; |
| 1065 | fileId?: string; |
| 1066 | title: string; |
| 1067 | body?: string; |
| 1068 | url?: string; |
| 1069 | metadata?: { |
| 1070 | [key: string]: unknown; |
| 1071 | }; |
| 1072 | visibilityMode?: string; |
| 1073 | visibility?: { |
| 1074 | subjectType: string; |
| 1075 | subjectId: string; |
| 1076 | }[]; |
| 1077 | }[]; |
| 1078 | }; |
| 1079 | UpsertAppIndexDocumentsResponse: { |
| 1080 | data: { |
| 1081 | documents: { |
| 1082 | id: string; |
| 1083 | documentKey: string; |
| 1084 | visibilityMode: string; |
| 1085 | }[]; |
| 1086 | }; |
| 1087 | }; |
| 1088 | DeleteAppIndexDocumentsInput: { |
| 1089 | documentKeys: string[]; |
| 1090 | }; |
| 1091 | DeleteAppIndexDocumentsResponse: { |
| 1092 | data: { |
| 1093 | deleted: { |
| 1094 | id: string; |
| 1095 | documentKey: string; |
| 1096 | }[]; |
| 1097 | }; |
| 1098 | }; |
| 1099 | EmitAppAmbientEventsInput: { |
| 1100 | events: { |
| 1101 | sourceKind: string; |
| 1102 | action: string; |
| 1103 | entityType: string; |
| 1104 | entityId: string; |
| 1105 | actorUserId?: string; |
| 1106 | containerType?: string; |
| 1107 | containerId?: string; |
| 1108 | /** Format: date-time */ |
| 1109 | occurredAt?: string; |
| 1110 | dedupeKey: string; |
| 1111 | payload?: { |
| 1112 | [key: string]: unknown; |
| 1113 | }; |
| 1114 | metadata?: { |
| 1115 | [key: string]: unknown; |
| 1116 | }; |
| 1117 | schemaVersion?: number; |
| 1118 | }[]; |
| 1119 | }; |
| 1120 | EmitAppAmbientEventsResponse: { |
| 1121 | data: { |
| 1122 | events: { |
| 1123 | id: string; |
| 1124 | dedupeKey: string; |
| 1125 | }[]; |
| 1126 | }; |
| 1127 | }; |
| 1128 | InitiateUploadInput: { |
| 1129 | fileName: string; |
| 1130 | mimeType: string; |
| 1131 | sizeBytes: number; |
| 1132 | driveId: string; |
| 1133 | /** @description Optional parent folder ID. */ |
| 1134 | parentId?: string | null; |
| 1135 | }; |
| 1136 | InitiateUploadResponse: { |
| 1137 | data: { |
| 1138 | uploadId: string; |
| 1139 | partCount: number; |
| 1140 | }; |
| 1141 | }; |
| 1142 | UploadPartResponse: { |
| 1143 | data: { |
| 1144 | partNumber: number; |
| 1145 | etag: string; |
| 1146 | }; |
| 1147 | }; |
| 1148 | CompleteUploadInput: { |
| 1149 | uploadId: string; |
| 1150 | parts: { |
| 1151 | partNumber: number; |
| 1152 | etag: string; |
| 1153 | }[]; |
| 1154 | }; |
| 1155 | CompleteUploadResponse: { |
| 1156 | data: { |
| 1157 | file: { |
| 1158 | id: string; |
| 1159 | driveId: string; |
| 1160 | parentId?: string | null; |
| 1161 | name: string; |
| 1162 | fileType: string; |
| 1163 | mimeType: string | null; |
| 1164 | sizeBytes: number | null; |
| 1165 | storagePath?: string | null; |
| 1166 | color?: string | null; |
| 1167 | /** Format: date-time */ |
| 1168 | updatedAt?: string; |
| 1169 | /** Format: date-time */ |
| 1170 | createdAt: string; |
| 1171 | }; |
| 1172 | }; |
| 1173 | }; |
| 1174 | BatchCreateTasksInput: { |
| 1175 | tasks: { |
| 1176 | title: string; |
| 1177 | description?: string; |
| 1178 | statusId?: string; |
| 1179 | /** @enum {string} */ |
| 1180 | priority?: "none" | "low" | "medium" | "high" | "urgent"; |
| 1181 | /** Format: date-time */ |
| 1182 | dueDate?: string | null; |
| 1183 | labels?: string[]; |
| 1184 | assigneeUserIds?: string[]; |
| 1185 | }[]; |
| 1186 | }; |
| 1187 | BatchCreateTasksResponse: { |
| 1188 | data: { |
| 1189 | tasks: components["schemas"]["TaskSummary"][]; |
| 1190 | }; |
| 1191 | }; |
| 1192 | BatchUpdateTasksInput: { |
| 1193 | tasks: { |
| 1194 | taskId: string; |
| 1195 | title?: string; |
| 1196 | description?: string; |
| 1197 | statusId?: string; |
| 1198 | /** @enum {string} */ |
| 1199 | priority?: "none" | "low" | "medium" | "high" | "urgent"; |
| 1200 | /** Format: date-time */ |
| 1201 | dueDate?: string | null; |
| 1202 | labels?: string[]; |
| 1203 | assigneeUserIds?: string[]; |
| 1204 | }[]; |
| 1205 | }; |
| 1206 | BatchUpdateTasksResponse: { |
| 1207 | data: { |
| 1208 | tasks: components["schemas"]["TaskSummary"][]; |
| 1209 | }; |
| 1210 | }; |
| 1211 | TaskSummary: { |
| 1212 | id: string; |
| 1213 | title: string; |
| 1214 | description?: string | null; |
| 1215 | statusId?: string | null; |
| 1216 | statusName?: string | null; |
| 1217 | /** @enum {string} */ |
| 1218 | priority: "none" | "low" | "medium" | "high" | "urgent"; |
| 1219 | isCompleted: boolean; |
| 1220 | /** Format: date-time */ |
| 1221 | dueDate?: string | null; |
| 1222 | labels?: string[]; |
| 1223 | assigneeUserIds?: string[]; |
| 1224 | taskboardId?: string; |
| 1225 | /** Format: date-time */ |
| 1226 | createdAt?: string; |
| 1227 | /** Format: date-time */ |
| 1228 | updatedAt?: string; |
| 1229 | }; |
| 1230 | WebhookEventBase: { |
| 1231 | /** @description Event type discriminator. */ |
| 1232 | type: string; |
| 1233 | /** Format: uuid */ |
| 1234 | deliveryId: string; |
| 1235 | /** Format: date-time */ |
| 1236 | timestamp: string; |
| 1237 | workspaceId: string; |
| 1238 | workspace?: { |
| 1239 | id?: string; |
| 1240 | slug?: string; |
| 1241 | name?: string; |
| 1242 | }; |
| 1243 | }; |
| 1244 | WebhookEventMessageCreated: components["schemas"]["WebhookEventBase"] & { |
| 1245 | /** @constant */ |
| 1246 | type?: "message.created"; |
| 1247 | data: { |
| 1248 | messageId: string; |
| 1249 | containerType: string; |
| 1250 | containerId: string; |
| 1251 | authorUserId?: string | null; |
| 1252 | plaintext: string; |
| 1253 | }; |
| 1254 | }; |
| 1255 | WebhookEventMessageUpdated: components["schemas"]["WebhookEventBase"] & { |
| 1256 | /** @constant */ |
| 1257 | type?: "message.updated"; |
| 1258 | data: { |
| 1259 | messageId: string; |
| 1260 | containerType: string; |
| 1261 | containerId: string; |
| 1262 | plaintext: string; |
| 1263 | }; |
| 1264 | }; |
| 1265 | WebhookEventMessageDeleted: components["schemas"]["WebhookEventBase"] & { |
| 1266 | /** @constant */ |
| 1267 | type?: "message.deleted"; |
| 1268 | data: { |
| 1269 | messageId: string; |
| 1270 | containerType: string; |
| 1271 | containerId: string; |
| 1272 | }; |
| 1273 | }; |
| 1274 | WebhookEventReactionAdded: components["schemas"]["WebhookEventBase"] & { |
| 1275 | /** @constant */ |
| 1276 | type?: "reaction.added"; |
| 1277 | data: { |
| 1278 | messageId: string; |
| 1279 | userId: string; |
| 1280 | emoji: string; |
| 1281 | }; |
| 1282 | }; |
| 1283 | WebhookEventNoteCreated: components["schemas"]["WebhookEventBase"] & { |
| 1284 | /** @constant */ |
| 1285 | type?: "note.created"; |
| 1286 | data: { |
| 1287 | noteId: string; |
| 1288 | title: string; |
| 1289 | createdByUserId?: string | null; |
| 1290 | }; |
| 1291 | }; |
| 1292 | WebhookEventNoteUpdated: components["schemas"]["WebhookEventBase"] & { |
| 1293 | /** @constant */ |
| 1294 | type?: "note.updated"; |
| 1295 | data: { |
| 1296 | noteId: string; |
| 1297 | title: string; |
| 1298 | }; |
| 1299 | }; |
| 1300 | WebhookEventNoteDeleted: components["schemas"]["WebhookEventBase"] & { |
| 1301 | /** @constant */ |
| 1302 | type?: "note.deleted"; |
| 1303 | data: { |
| 1304 | noteId: string; |
| 1305 | }; |
| 1306 | }; |
| 1307 | WebhookEventTaskCreated: components["schemas"]["WebhookEventBase"] & { |
| 1308 | /** @constant */ |
| 1309 | type?: "task.created"; |
| 1310 | data: { |
| 1311 | taskId: string; |
| 1312 | taskboardId: string; |
| 1313 | title: string; |
| 1314 | priority: string; |
| 1315 | createdByUserId?: string | null; |
| 1316 | }; |
| 1317 | }; |
| 1318 | WebhookEventTaskUpdated: components["schemas"]["WebhookEventBase"] & { |
| 1319 | /** @constant */ |
| 1320 | type?: "task.updated"; |
| 1321 | data: { |
| 1322 | taskId: string; |
| 1323 | taskboardId: string; |
| 1324 | title: string; |
| 1325 | priority: string; |
| 1326 | isCompleted: boolean; |
| 1327 | }; |
| 1328 | }; |
| 1329 | WebhookEventTaskDeleted: components["schemas"]["WebhookEventBase"] & { |
| 1330 | /** @constant */ |
| 1331 | type?: "task.deleted"; |
| 1332 | data: { |
| 1333 | taskId: string; |
| 1334 | taskboardId: string; |
| 1335 | }; |
| 1336 | }; |
| 1337 | WebhookEventCalendarEventCreated: components["schemas"]["WebhookEventBase"] & { |
| 1338 | /** @constant */ |
| 1339 | type?: "calendar_event.created"; |
| 1340 | data: { |
| 1341 | eventId: string; |
| 1342 | title: string; |
| 1343 | /** Format: date-time */ |
| 1344 | startTime: string; |
| 1345 | /** Format: date-time */ |
| 1346 | endTime: string; |
| 1347 | }; |
| 1348 | }; |
| 1349 | WebhookEventMemberJoined: components["schemas"]["WebhookEventBase"] & { |
| 1350 | /** @constant */ |
| 1351 | type?: "member.joined"; |
| 1352 | data: { |
| 1353 | userId: string; |
| 1354 | email: string; |
| 1355 | roles: string[]; |
| 1356 | }; |
| 1357 | }; |
| 1358 | WebhookEventMemberLeft: components["schemas"]["WebhookEventBase"] & { |
| 1359 | /** @constant */ |
| 1360 | type?: "member.left"; |
| 1361 | data: { |
| 1362 | userId: string; |
| 1363 | }; |
| 1364 | }; |
| 1365 | }; |
| 1366 | responses: never; |
| 1367 | parameters: never; |
| 1368 | requestBodies: never; |
| 1369 | headers: never; |
| 1370 | pathItems: never; |
| 1371 | } |
| 1372 | export type $defs = Record<string, never>; |
| 1373 | export interface operations { |
| 1374 | listTabModels: { |
| 1375 | parameters: { |
| 1376 | query?: never; |
| 1377 | header?: never; |
| 1378 | path?: never; |
| 1379 | cookie?: never; |
| 1380 | }; |
| 1381 | requestBody?: never; |
| 1382 | responses: { |
| 1383 | /** @description Tab model list */ |
| 1384 | 200: { |
| 1385 | headers: { |
| 1386 | [name: string]: unknown; |
| 1387 | }; |
| 1388 | content: { |
| 1389 | "application/json": components["schemas"]["TabModelsResponse"]; |
| 1390 | }; |
| 1391 | }; |
| 1392 | }; |
| 1393 | }; |
| 1394 | createTabChatCompletion: { |
| 1395 | parameters: { |
| 1396 | query?: never; |
| 1397 | header?: never; |
| 1398 | path?: never; |
| 1399 | cookie?: never; |
| 1400 | }; |
| 1401 | requestBody: { |
| 1402 | content: { |
| 1403 | "application/json": components["schemas"]["TabChatCompletionInput"]; |
| 1404 | }; |
| 1405 | }; |
| 1406 | responses: { |
| 1407 | /** @description OpenAI-compatible Tab chat completion */ |
| 1408 | 200: { |
| 1409 | headers: { |
| 1410 | [name: string]: unknown; |
| 1411 | }; |
| 1412 | content: { |
| 1413 | "application/json": components["schemas"]["TabChatCompletionResponseEnvelope"]; |
| 1414 | }; |
| 1415 | }; |
| 1416 | /** @description Validation or model error */ |
| 1417 | 400: { |
| 1418 | headers: { |
| 1419 | [name: string]: unknown; |
| 1420 | }; |
| 1421 | content: { |
| 1422 | "application/json": components["schemas"]["ErrorEnvelope"]; |
| 1423 | }; |
| 1424 | }; |
| 1425 | /** @description Insufficient credits */ |
| 1426 | 402: { |
| 1427 | headers: { |
| 1428 | [name: string]: unknown; |
| 1429 | }; |
| 1430 | content: { |
| 1431 | "application/json": components["schemas"]["ErrorEnvelope"]; |
| 1432 | }; |
| 1433 | }; |
| 1434 | }; |
| 1435 | }; |
| 1436 | authorizeOauthClient: { |
| 1437 | parameters: { |
| 1438 | query: { |
| 1439 | response_type: "code"; |
| 1440 | client_id: string; |
| 1441 | redirect_uri: string; |
| 1442 | scope?: string; |
| 1443 | state?: string; |
| 1444 | code_challenge?: string; |
| 1445 | code_challenge_method?: string; |
| 1446 | }; |
| 1447 | header?: never; |
| 1448 | path?: never; |
| 1449 | cookie?: never; |
| 1450 | }; |
| 1451 | requestBody?: never; |
| 1452 | responses: { |
| 1453 | /** @description Redirect to sign-in or back to the client redirect URI */ |
| 1454 | 302: { |
| 1455 | headers: { |
| 1456 | [name: string]: unknown; |
| 1457 | }; |
| 1458 | content?: never; |
| 1459 | }; |
| 1460 | /** @description Invalid authorization request */ |
| 1461 | 400: { |
| 1462 | headers: { |
| 1463 | [name: string]: unknown; |
| 1464 | }; |
| 1465 | content: { |
| 1466 | "application/json": components["schemas"]["ErrorEnvelope"]; |
| 1467 | }; |
| 1468 | }; |
| 1469 | }; |
| 1470 | }; |
| 1471 | exchangeOauthAuthorizationCode: { |
| 1472 | parameters: { |
| 1473 | query?: never; |
| 1474 | header?: never; |
| 1475 | path?: never; |
| 1476 | cookie?: never; |
| 1477 | }; |
| 1478 | requestBody: { |
| 1479 | content: { |
| 1480 | "application/json": components["schemas"]["OAuthTokenExchangeInput"]; |
| 1481 | "application/x-www-form-urlencoded": components["schemas"]["OAuthTokenExchangeInput"]; |
| 1482 | }; |
| 1483 | }; |
| 1484 | responses: { |
| 1485 | /** @description Token response */ |
| 1486 | 200: { |
| 1487 | headers: { |
| 1488 | [name: string]: unknown; |
| 1489 | }; |
| 1490 | content: { |
| 1491 | "application/json": components["schemas"]["OAuthTokenResponse"]; |
| 1492 | }; |
| 1493 | }; |
| 1494 | /** @description Invalid token request */ |
| 1495 | 400: { |
| 1496 | headers: { |
| 1497 | [name: string]: unknown; |
| 1498 | }; |
| 1499 | content: { |
| 1500 | "application/json": components["schemas"]["OAuthErrorResponse"]; |
| 1501 | }; |
| 1502 | }; |
| 1503 | }; |
| 1504 | }; |
| 1505 | getOauthUserInfo: { |
| 1506 | parameters: { |
| 1507 | query?: never; |
| 1508 | header?: never; |
| 1509 | path?: never; |
| 1510 | cookie?: never; |
| 1511 | }; |
| 1512 | requestBody?: never; |
| 1513 | responses: { |
| 1514 | /** @description User info */ |
| 1515 | 200: { |
| 1516 | headers: { |
| 1517 | [name: string]: unknown; |
| 1518 | }; |
| 1519 | content: { |
| 1520 | "application/json": components["schemas"]["OAuthUserInfoResponse"]; |
| 1521 | }; |
| 1522 | }; |
| 1523 | /** @description Invalid token */ |
| 1524 | 401: { |
| 1525 | headers: { |
| 1526 | [name: string]: unknown; |
| 1527 | }; |
| 1528 | content: { |
| 1529 | "application/json": components["schemas"]["OAuthErrorResponse"]; |
| 1530 | }; |
| 1531 | }; |
| 1532 | }; |
| 1533 | }; |
| 1534 | listStoreApps: { |
| 1535 | parameters: { |
| 1536 | query?: never; |
| 1537 | header?: never; |
| 1538 | path?: never; |
| 1539 | cookie?: never; |
| 1540 | }; |
| 1541 | requestBody?: never; |
| 1542 | responses: { |
| 1543 | /** @description Store apps */ |
| 1544 | 200: { |
| 1545 | headers: { |
| 1546 | [name: string]: unknown; |
| 1547 | }; |
| 1548 | content: { |
| 1549 | "application/json": components["schemas"]["StoreAppsResponse"]; |
| 1550 | }; |
| 1551 | }; |
| 1552 | }; |
| 1553 | }; |
| 1554 | registerApp: { |
| 1555 | parameters: { |
| 1556 | query?: never; |
| 1557 | header?: never; |
| 1558 | path?: never; |
| 1559 | cookie?: never; |
| 1560 | }; |
| 1561 | requestBody: { |
| 1562 | content: { |
| 1563 | "application/json": components["schemas"]["RegisterAppInput"]; |
| 1564 | }; |
| 1565 | }; |
| 1566 | responses: { |
| 1567 | /** @description Registered app */ |
| 1568 | 201: { |
| 1569 | headers: { |
| 1570 | [name: string]: unknown; |
| 1571 | }; |
| 1572 | content: { |
| 1573 | "application/json": components["schemas"]["AppVersionMutationResponse"]; |
| 1574 | }; |
| 1575 | }; |
| 1576 | }; |
| 1577 | }; |
| 1578 | getStoreApp: { |
| 1579 | parameters: { |
| 1580 | query?: never; |
| 1581 | header?: never; |
| 1582 | path: { |
| 1583 | appKey: string; |
| 1584 | }; |
| 1585 | cookie?: never; |
| 1586 | }; |
| 1587 | requestBody?: never; |
| 1588 | responses: { |
| 1589 | /** @description Store app detail */ |
| 1590 | 200: { |
| 1591 | headers: { |
| 1592 | [name: string]: unknown; |
| 1593 | }; |
| 1594 | content: { |
| 1595 | "application/json": components["schemas"]["StoreAppResponse"]; |
| 1596 | }; |
| 1597 | }; |
| 1598 | /** @description App not found */ |
| 1599 | 404: { |
| 1600 | headers: { |
| 1601 | [name: string]: unknown; |
| 1602 | }; |
| 1603 | content: { |
| 1604 | "application/json": components["schemas"]["ErrorEnvelope"]; |
| 1605 | }; |
| 1606 | }; |
| 1607 | }; |
| 1608 | }; |
| 1609 | listStoreAppVersions: { |
| 1610 | parameters: { |
| 1611 | query?: never; |
| 1612 | header?: never; |
| 1613 | path: { |
| 1614 | appKey: string; |
| 1615 | }; |
| 1616 | cookie?: never; |
| 1617 | }; |
| 1618 | requestBody?: never; |
| 1619 | responses: { |
| 1620 | /** @description Approved store app versions */ |
| 1621 | 200: { |
| 1622 | headers: { |
| 1623 | [name: string]: unknown; |
| 1624 | }; |
| 1625 | content: { |
| 1626 | "application/json": components["schemas"]["StoreAppVersionsResponse"]; |
| 1627 | }; |
| 1628 | }; |
| 1629 | }; |
| 1630 | }; |
| 1631 | createAppVersion: { |
| 1632 | parameters: { |
| 1633 | query?: never; |
| 1634 | header?: never; |
| 1635 | path: { |
| 1636 | appKey: string; |
| 1637 | }; |
| 1638 | cookie?: never; |
| 1639 | }; |
| 1640 | requestBody: { |
| 1641 | content: { |
| 1642 | "application/json": components["schemas"]["RegisterAppInput"]; |
| 1643 | }; |
| 1644 | }; |
| 1645 | responses: { |
| 1646 | /** @description Created app version */ |
| 1647 | 201: { |
| 1648 | headers: { |
| 1649 | [name: string]: unknown; |
| 1650 | }; |
| 1651 | content: { |
| 1652 | "application/json": components["schemas"]["AppVersionMutationResponse"]; |
| 1653 | }; |
| 1654 | }; |
| 1655 | }; |
| 1656 | }; |
| 1657 | submitAppVersionForReview: { |
| 1658 | parameters: { |
| 1659 | query?: never; |
| 1660 | header?: never; |
| 1661 | path: { |
| 1662 | appKey: string; |
| 1663 | versionId: string; |
| 1664 | }; |
| 1665 | cookie?: never; |
| 1666 | }; |
| 1667 | requestBody: { |
| 1668 | content: { |
| 1669 | "application/json": { |
| 1670 | storeListed?: boolean; |
| 1671 | }; |
| 1672 | }; |
| 1673 | }; |
| 1674 | responses: { |
| 1675 | /** @description Submitted app version */ |
| 1676 | 200: { |
| 1677 | headers: { |
| 1678 | [name: string]: unknown; |
| 1679 | }; |
| 1680 | content: { |
| 1681 | "application/json": components["schemas"]["SubmitAppVersionForReviewResponse"]; |
| 1682 | }; |
| 1683 | }; |
| 1684 | }; |
| 1685 | }; |
| 1686 | listWorkspaceApps: { |
| 1687 | parameters: { |
| 1688 | query?: never; |
| 1689 | header?: never; |
| 1690 | path: { |
| 1691 | workspaceSlug: string; |
| 1692 | }; |
| 1693 | cookie?: never; |
| 1694 | }; |
| 1695 | requestBody?: never; |
| 1696 | responses: { |
| 1697 | /** @description Workspace app data */ |
| 1698 | 200: { |
| 1699 | headers: { |
| 1700 | [name: string]: unknown; |
| 1701 | }; |
| 1702 | content: { |
| 1703 | "application/json": components["schemas"]["WorkspaceAppsResponse"]; |
| 1704 | }; |
| 1705 | }; |
| 1706 | }; |
| 1707 | }; |
| 1708 | installWorkspaceApp: { |
| 1709 | parameters: { |
| 1710 | query?: never; |
| 1711 | header?: never; |
| 1712 | path: { |
| 1713 | workspaceSlug: string; |
| 1714 | }; |
| 1715 | cookie?: never; |
| 1716 | }; |
| 1717 | requestBody: { |
| 1718 | content: { |
| 1719 | "application/json": components["schemas"]["InstallWorkspaceAppInput"]; |
| 1720 | }; |
| 1721 | }; |
| 1722 | responses: { |
| 1723 | /** @description Installed app */ |
| 1724 | 201: { |
| 1725 | headers: { |
| 1726 | [name: string]: unknown; |
| 1727 | }; |
| 1728 | content: { |
| 1729 | "application/json": components["schemas"]["InstallWorkspaceAppResponse"]; |
| 1730 | }; |
| 1731 | }; |
| 1732 | }; |
| 1733 | }; |
| 1734 | getWorkspaceInstalledApp: { |
| 1735 | parameters: { |
| 1736 | query?: never; |
| 1737 | header?: never; |
| 1738 | path: { |
| 1739 | workspaceSlug: string; |
| 1740 | appKey: string; |
| 1741 | }; |
| 1742 | cookie?: never; |
| 1743 | }; |
| 1744 | requestBody?: never; |
| 1745 | responses: { |
| 1746 | /** @description Installed app */ |
| 1747 | 200: { |
| 1748 | headers: { |
| 1749 | [name: string]: unknown; |
| 1750 | }; |
| 1751 | content: { |
| 1752 | "application/json": components["schemas"]["WorkspaceInstalledAppResponse"]; |
| 1753 | }; |
| 1754 | }; |
| 1755 | }; |
| 1756 | }; |
| 1757 | uninstallWorkspaceApp: { |
| 1758 | parameters: { |
| 1759 | query?: never; |
| 1760 | header?: never; |
| 1761 | path: { |
| 1762 | workspaceSlug: string; |
| 1763 | appKey: string; |
| 1764 | }; |
| 1765 | cookie?: never; |
| 1766 | }; |
| 1767 | requestBody?: never; |
| 1768 | responses: { |
| 1769 | /** @description App uninstalled */ |
| 1770 | 200: { |
| 1771 | headers: { |
| 1772 | [name: string]: unknown; |
| 1773 | }; |
| 1774 | content: { |
| 1775 | "application/json": components["schemas"]["OkResponse"]; |
| 1776 | }; |
| 1777 | }; |
| 1778 | }; |
| 1779 | }; |
| 1780 | getWorkspaceAppPermissions: { |
| 1781 | parameters: { |
| 1782 | query?: never; |
| 1783 | header?: never; |
| 1784 | path: { |
| 1785 | workspaceSlug: string; |
| 1786 | appKey: string; |
| 1787 | }; |
| 1788 | cookie?: never; |
| 1789 | }; |
| 1790 | requestBody?: never; |
| 1791 | responses: { |
| 1792 | /** @description Workspace app permissions */ |
| 1793 | 200: { |
| 1794 | headers: { |
| 1795 | [name: string]: unknown; |
| 1796 | }; |
| 1797 | content: { |
| 1798 | "application/json": components["schemas"]["WorkspaceAppPermissionsResponse"]; |
| 1799 | }; |
| 1800 | }; |
| 1801 | }; |
| 1802 | }; |
| 1803 | updateWorkspaceAppPermissions: { |
| 1804 | parameters: { |
| 1805 | query?: never; |
| 1806 | header?: never; |
| 1807 | path: { |
| 1808 | workspaceSlug: string; |
| 1809 | appKey: string; |
| 1810 | }; |
| 1811 | cookie?: never; |
| 1812 | }; |
| 1813 | requestBody: { |
| 1814 | content: { |
| 1815 | "application/json": { |
| 1816 | grantedPermissions: string[]; |
| 1817 | }; |
| 1818 | }; |
| 1819 | }; |
| 1820 | responses: { |
| 1821 | /** @description Updated permissions */ |
| 1822 | 200: { |
| 1823 | headers: { |
| 1824 | [name: string]: unknown; |
| 1825 | }; |
| 1826 | content: { |
| 1827 | "application/json": components["schemas"]["WorkspaceAppPermissionsResponse"]; |
| 1828 | }; |
| 1829 | }; |
| 1830 | }; |
| 1831 | }; |
| 1832 | listWorkspaceAppSecrets: { |
| 1833 | parameters: { |
| 1834 | query?: never; |
| 1835 | header?: never; |
| 1836 | path: { |
| 1837 | workspaceSlug: string; |
| 1838 | appKey: string; |
| 1839 | }; |
| 1840 | cookie?: never; |
| 1841 | }; |
| 1842 | requestBody?: never; |
| 1843 | responses: { |
| 1844 | /** @description App secrets */ |
| 1845 | 200: { |
| 1846 | headers: { |
| 1847 | [name: string]: unknown; |
| 1848 | }; |
| 1849 | content: { |
| 1850 | "application/json": components["schemas"]["WorkspaceAppSecretsResponse"]; |
| 1851 | }; |
| 1852 | }; |
| 1853 | }; |
| 1854 | }; |
| 1855 | createWorkspaceAppSecret: { |
| 1856 | parameters: { |
| 1857 | query?: never; |
| 1858 | header?: never; |
| 1859 | path: { |
| 1860 | workspaceSlug: string; |
| 1861 | appKey: string; |
| 1862 | }; |
| 1863 | cookie?: never; |
| 1864 | }; |
| 1865 | requestBody: { |
| 1866 | content: { |
| 1867 | "application/json": { |
| 1868 | key: string; |
| 1869 | value: string; |
| 1870 | }; |
| 1871 | }; |
| 1872 | }; |
| 1873 | responses: { |
| 1874 | /** @description App secret stored */ |
| 1875 | 201: { |
| 1876 | headers: { |
| 1877 | [name: string]: unknown; |
| 1878 | }; |
| 1879 | content: { |
| 1880 | "application/json": components["schemas"]["CreateWorkspaceAppSecretResponse"]; |
| 1881 | }; |
| 1882 | }; |
| 1883 | }; |
| 1884 | }; |
| 1885 | deleteWorkspaceAppSecret: { |
| 1886 | parameters: { |
| 1887 | query?: never; |
| 1888 | header?: never; |
| 1889 | path: { |
| 1890 | workspaceSlug: string; |
| 1891 | appKey: string; |
| 1892 | secretId: string; |
| 1893 | }; |
| 1894 | cookie?: never; |
| 1895 | }; |
| 1896 | requestBody?: never; |
| 1897 | responses: { |
| 1898 | /** @description App secret deleted */ |
| 1899 | 200: { |
| 1900 | headers: { |
| 1901 | [name: string]: unknown; |
| 1902 | }; |
| 1903 | content: { |
| 1904 | "application/json": components["schemas"]["OkResponse"]; |
| 1905 | }; |
| 1906 | }; |
| 1907 | }; |
| 1908 | }; |
| 1909 | listWorkspaceAppOauthConnections: { |
| 1910 | parameters: { |
| 1911 | query?: never; |
| 1912 | header?: never; |
| 1913 | path: { |
| 1914 | workspaceSlug: string; |
| 1915 | appKey: string; |
| 1916 | }; |
| 1917 | cookie?: never; |
| 1918 | }; |
| 1919 | requestBody?: never; |
| 1920 | responses: { |
| 1921 | /** @description App OAuth connections */ |
| 1922 | 200: { |
| 1923 | headers: { |
| 1924 | [name: string]: unknown; |
| 1925 | }; |
| 1926 | content: { |
| 1927 | "application/json": components["schemas"]["WorkspaceAppOauthConnectionsResponse"]; |
| 1928 | }; |
| 1929 | }; |
| 1930 | }; |
| 1931 | }; |
| 1932 | createWorkspaceAppOauthConnection: { |
| 1933 | parameters: { |
| 1934 | query?: never; |
| 1935 | header?: never; |
| 1936 | path: { |
| 1937 | workspaceSlug: string; |
| 1938 | appKey: string; |
| 1939 | }; |
| 1940 | cookie?: never; |
| 1941 | }; |
| 1942 | requestBody: { |
| 1943 | content: { |
| 1944 | "application/json": { |
| 1945 | providerKey: string; |
| 1946 | externalAccountId?: string; |
| 1947 | accessToken: string; |
| 1948 | refreshToken?: string; |
| 1949 | scopes: string[]; |
| 1950 | /** Format: date-time */ |
| 1951 | tokenExpiresAt?: string; |
| 1952 | metadata?: { |
| 1953 | [key: string]: unknown; |
| 1954 | }; |
| 1955 | }; |
| 1956 | }; |
| 1957 | }; |
| 1958 | responses: { |
| 1959 | /** @description App OAuth connection stored */ |
| 1960 | 201: { |
| 1961 | headers: { |
| 1962 | [name: string]: unknown; |
| 1963 | }; |
| 1964 | content: { |
| 1965 | "application/json": components["schemas"]["CreateWorkspaceAppOauthConnectionResponse"]; |
| 1966 | }; |
| 1967 | }; |
| 1968 | }; |
| 1969 | }; |
| 1970 | deleteWorkspaceAppOauthConnection: { |
| 1971 | parameters: { |
| 1972 | query?: never; |
| 1973 | header?: never; |
| 1974 | path: { |
| 1975 | workspaceSlug: string; |
| 1976 | appKey: string; |
| 1977 | connectionId: string; |
| 1978 | }; |
| 1979 | cookie?: never; |
| 1980 | }; |
| 1981 | requestBody?: never; |
| 1982 | responses: { |
| 1983 | /** @description App OAuth connection deleted */ |
| 1984 | 200: { |
| 1985 | headers: { |
| 1986 | [name: string]: unknown; |
| 1987 | }; |
| 1988 | content: { |
| 1989 | "application/json": components["schemas"]["OkResponse"]; |
| 1990 | }; |
| 1991 | }; |
| 1992 | }; |
| 1993 | }; |
| 1994 | listWorkspaceAppDeliveries: { |
| 1995 | parameters: { |
| 1996 | query?: never; |
| 1997 | header?: never; |
| 1998 | path: { |
| 1999 | workspaceSlug: string; |
| 2000 | appKey: string; |
| 2001 | }; |
| 2002 | cookie?: never; |
| 2003 | }; |
| 2004 | requestBody?: never; |
| 2005 | responses: { |
| 2006 | /** @description App deliveries */ |
| 2007 | 200: { |
| 2008 | headers: { |
| 2009 | [name: string]: unknown; |
| 2010 | }; |
| 2011 | content: { |
| 2012 | "application/json": components["schemas"]["WorkspaceAppDeliveriesResponse"]; |
| 2013 | }; |
| 2014 | }; |
| 2015 | }; |
| 2016 | }; |
| 2017 | sendWorkspaceAppTestDelivery: { |
| 2018 | parameters: { |
| 2019 | query?: never; |
| 2020 | header?: never; |
| 2021 | path: { |
| 2022 | workspaceSlug: string; |
| 2023 | appKey: string; |
| 2024 | }; |
| 2025 | cookie?: never; |
| 2026 | }; |
| 2027 | requestBody: { |
| 2028 | content: { |
| 2029 | "application/json": { |
| 2030 | eventType: string; |
| 2031 | targetUrl?: string; |
| 2032 | payload: { |
| 2033 | [key: string]: unknown; |
| 2034 | }; |
| 2035 | }; |
| 2036 | }; |
| 2037 | }; |
| 2038 | responses: { |
| 2039 | /** @description Test delivery recorded */ |
| 2040 | 201: { |
| 2041 | headers: { |
| 2042 | [name: string]: unknown; |
| 2043 | }; |
| 2044 | content: { |
| 2045 | "application/json": components["schemas"]["SendWorkspaceAppTestDeliveryResponse"]; |
| 2046 | }; |
| 2047 | }; |
| 2048 | }; |
| 2049 | }; |
| 2050 | replayWorkspaceAppDelivery: { |
| 2051 | parameters: { |
| 2052 | query?: never; |
| 2053 | header?: never; |
| 2054 | path: { |
| 2055 | workspaceSlug: string; |
| 2056 | appKey: string; |
| 2057 | deliveryId: string; |
| 2058 | }; |
| 2059 | cookie?: never; |
| 2060 | }; |
| 2061 | requestBody?: never; |
| 2062 | responses: { |
| 2063 | /** @description Delivery replayed */ |
| 2064 | 200: { |
| 2065 | headers: { |
| 2066 | [name: string]: unknown; |
| 2067 | }; |
| 2068 | content: { |
| 2069 | "application/json": components["schemas"]["SendWorkspaceAppTestDeliveryResponse"]; |
| 2070 | }; |
| 2071 | }; |
| 2072 | }; |
| 2073 | }; |
| 2074 | getAppFileDocument: { |
| 2075 | parameters: { |
| 2076 | query?: never; |
| 2077 | header?: never; |
| 2078 | path: { |
| 2079 | workspaceSlug: string; |
| 2080 | appKey: string; |
| 2081 | fileId: string; |
| 2082 | }; |
| 2083 | cookie?: never; |
| 2084 | }; |
| 2085 | requestBody?: never; |
| 2086 | responses: { |
| 2087 | /** @description App-backed file document */ |
| 2088 | 200: { |
| 2089 | headers: { |
| 2090 | [name: string]: unknown; |
| 2091 | }; |
| 2092 | content: { |
| 2093 | "application/json": components["schemas"]["AppFileDocumentResponse"]; |
| 2094 | }; |
| 2095 | }; |
| 2096 | }; |
| 2097 | }; |
| 2098 | deleteAppFile: { |
| 2099 | parameters: { |
| 2100 | query?: never; |
| 2101 | header?: never; |
| 2102 | path: { |
| 2103 | workspaceSlug: string; |
| 2104 | appKey: string; |
| 2105 | fileId: string; |
| 2106 | }; |
| 2107 | cookie?: never; |
| 2108 | }; |
| 2109 | requestBody?: never; |
| 2110 | responses: { |
| 2111 | /** @description File trashed */ |
| 2112 | 200: { |
| 2113 | headers: { |
| 2114 | [name: string]: unknown; |
| 2115 | }; |
| 2116 | content: { |
| 2117 | "application/json": components["schemas"]["OkResponse"]; |
| 2118 | }; |
| 2119 | }; |
| 2120 | }; |
| 2121 | }; |
| 2122 | updateAppFileDocument: { |
| 2123 | parameters: { |
| 2124 | query?: never; |
| 2125 | header?: never; |
| 2126 | path: { |
| 2127 | workspaceSlug: string; |
| 2128 | appKey: string; |
| 2129 | fileId: string; |
| 2130 | }; |
| 2131 | cookie?: never; |
| 2132 | }; |
| 2133 | requestBody: { |
| 2134 | content: { |
| 2135 | "application/json": { |
| 2136 | document: { |
| 2137 | [key: string]: unknown; |
| 2138 | }; |
| 2139 | }; |
| 2140 | }; |
| 2141 | }; |
| 2142 | responses: { |
| 2143 | /** @description Updated app-backed file document */ |
| 2144 | 200: { |
| 2145 | headers: { |
| 2146 | [name: string]: unknown; |
| 2147 | }; |
| 2148 | content: { |
| 2149 | "application/json": components["schemas"]["AppFileDocumentUpdateResponse"]; |
| 2150 | }; |
| 2151 | }; |
| 2152 | }; |
| 2153 | }; |
| 2154 | listAppFiles: { |
| 2155 | parameters: { |
| 2156 | query?: { |
| 2157 | driveId?: string; |
| 2158 | typeKey?: string; |
| 2159 | limit?: number; |
| 2160 | }; |
| 2161 | header?: never; |
| 2162 | path: { |
| 2163 | workspaceSlug: string; |
| 2164 | appKey: string; |
| 2165 | }; |
| 2166 | cookie?: never; |
| 2167 | }; |
| 2168 | requestBody?: never; |
| 2169 | responses: { |
| 2170 | /** @description App-backed file list */ |
| 2171 | 200: { |
| 2172 | headers: { |
| 2173 | [name: string]: unknown; |
| 2174 | }; |
| 2175 | content: { |
| 2176 | "application/json": components["schemas"]["AppFilesListResponse"]; |
| 2177 | }; |
| 2178 | }; |
| 2179 | }; |
| 2180 | }; |
| 2181 | createAppFile: { |
| 2182 | parameters: { |
| 2183 | query?: never; |
| 2184 | header?: never; |
| 2185 | path: { |
| 2186 | workspaceSlug: string; |
| 2187 | appKey: string; |
| 2188 | }; |
| 2189 | cookie?: never; |
| 2190 | }; |
| 2191 | requestBody: { |
| 2192 | content: { |
| 2193 | "application/json": components["schemas"]["CreateAppFileInput"]; |
| 2194 | }; |
| 2195 | }; |
| 2196 | responses: { |
| 2197 | /** @description Created app-backed file */ |
| 2198 | 201: { |
| 2199 | headers: { |
| 2200 | [name: string]: unknown; |
| 2201 | }; |
| 2202 | content: { |
| 2203 | "application/json": components["schemas"]["CreateAppFileResponse"]; |
| 2204 | }; |
| 2205 | }; |
| 2206 | }; |
| 2207 | }; |
| 2208 | executeAppAction: { |
| 2209 | parameters: { |
| 2210 | query?: never; |
| 2211 | header?: never; |
| 2212 | path: { |
| 2213 | workspaceSlug: string; |
| 2214 | appKey: string; |
| 2215 | }; |
| 2216 | cookie?: never; |
| 2217 | }; |
| 2218 | requestBody: { |
| 2219 | content: { |
| 2220 | "application/json": components["schemas"]["ExecuteAppActionInput"]; |
| 2221 | }; |
| 2222 | }; |
| 2223 | responses: { |
| 2224 | /** @description Hosted app action result */ |
| 2225 | 200: { |
| 2226 | headers: { |
| 2227 | [name: string]: unknown; |
| 2228 | }; |
| 2229 | content: { |
| 2230 | "application/json": components["schemas"]["ExecuteAppActionResponse"]; |
| 2231 | }; |
| 2232 | }; |
| 2233 | }; |
| 2234 | }; |
| 2235 | createAppNotification: { |
| 2236 | parameters: { |
| 2237 | query?: never; |
| 2238 | header?: never; |
| 2239 | path: { |
| 2240 | workspaceSlug: string; |
| 2241 | appKey: string; |
| 2242 | }; |
| 2243 | cookie?: never; |
| 2244 | }; |
| 2245 | requestBody: { |
| 2246 | content: { |
| 2247 | "application/json": components["schemas"]["CreateAppNotificationInput"]; |
| 2248 | }; |
| 2249 | }; |
| 2250 | responses: { |
| 2251 | /** @description Notification created */ |
| 2252 | 201: { |
| 2253 | headers: { |
| 2254 | [name: string]: unknown; |
| 2255 | }; |
| 2256 | content: { |
| 2257 | "application/json": components["schemas"]["OkResponse"]; |
| 2258 | }; |
| 2259 | }; |
| 2260 | }; |
| 2261 | }; |
| 2262 | upsertAppIndexDocuments: { |
| 2263 | parameters: { |
| 2264 | query?: never; |
| 2265 | header?: never; |
| 2266 | path: { |
| 2267 | workspaceSlug: string; |
| 2268 | appKey: string; |
| 2269 | }; |
| 2270 | cookie?: never; |
| 2271 | }; |
| 2272 | requestBody: { |
| 2273 | content: { |
| 2274 | "application/json": components["schemas"]["UpsertAppIndexDocumentsInput"]; |
| 2275 | }; |
| 2276 | }; |
| 2277 | responses: { |
| 2278 | /** @description Index documents upserted */ |
| 2279 | 201: { |
| 2280 | headers: { |
| 2281 | [name: string]: unknown; |
| 2282 | }; |
| 2283 | content: { |
| 2284 | "application/json": components["schemas"]["UpsertAppIndexDocumentsResponse"]; |
| 2285 | }; |
| 2286 | }; |
| 2287 | }; |
| 2288 | }; |
| 2289 | deleteAppIndexDocuments: { |
| 2290 | parameters: { |
| 2291 | query?: never; |
| 2292 | header?: never; |
| 2293 | path: { |
| 2294 | workspaceSlug: string; |
| 2295 | appKey: string; |
| 2296 | }; |
| 2297 | cookie?: never; |
| 2298 | }; |
| 2299 | requestBody: { |
| 2300 | content: { |
| 2301 | "application/json": components["schemas"]["DeleteAppIndexDocumentsInput"]; |
| 2302 | }; |
| 2303 | }; |
| 2304 | responses: { |
| 2305 | /** @description Index documents deleted */ |
| 2306 | 200: { |
| 2307 | headers: { |
| 2308 | [name: string]: unknown; |
| 2309 | }; |
| 2310 | content: { |
| 2311 | "application/json": components["schemas"]["DeleteAppIndexDocumentsResponse"]; |
| 2312 | }; |
| 2313 | }; |
| 2314 | }; |
| 2315 | }; |
| 2316 | emitAppAmbientEvents: { |
| 2317 | parameters: { |
| 2318 | query?: never; |
| 2319 | header?: never; |
| 2320 | path: { |
| 2321 | workspaceSlug: string; |
| 2322 | appKey: string; |
| 2323 | }; |
| 2324 | cookie?: never; |
| 2325 | }; |
| 2326 | requestBody: { |
| 2327 | content: { |
| 2328 | "application/json": components["schemas"]["EmitAppAmbientEventsInput"]; |
| 2329 | }; |
| 2330 | }; |
| 2331 | responses: { |
| 2332 | /** @description Ambient events accepted */ |
| 2333 | 201: { |
| 2334 | headers: { |
| 2335 | [name: string]: unknown; |
| 2336 | }; |
| 2337 | content: { |
| 2338 | "application/json": components["schemas"]["EmitAppAmbientEventsResponse"]; |
| 2339 | }; |
| 2340 | }; |
| 2341 | }; |
| 2342 | }; |
| 2343 | initiateUpload: { |
| 2344 | parameters: { |
| 2345 | query?: never; |
| 2346 | header?: never; |
| 2347 | path: { |
| 2348 | workspaceSlug: string; |
| 2349 | }; |
| 2350 | cookie?: never; |
| 2351 | }; |
| 2352 | requestBody: { |
| 2353 | content: { |
| 2354 | "application/json": components["schemas"]["InitiateUploadInput"]; |
| 2355 | }; |
| 2356 | }; |
| 2357 | responses: { |
| 2358 | /** @description Upload initiated */ |
| 2359 | 201: { |
| 2360 | headers: { |
| 2361 | [name: string]: unknown; |
| 2362 | }; |
| 2363 | content: { |
| 2364 | "application/json": components["schemas"]["InitiateUploadResponse"]; |
| 2365 | }; |
| 2366 | }; |
| 2367 | }; |
| 2368 | }; |
| 2369 | uploadPart: { |
| 2370 | parameters: { |
| 2371 | query: { |
| 2372 | uploadId: string; |
| 2373 | partNumber: number; |
| 2374 | }; |
| 2375 | header?: never; |
| 2376 | path: { |
| 2377 | workspaceSlug: string; |
| 2378 | }; |
| 2379 | cookie?: never; |
| 2380 | }; |
| 2381 | requestBody: { |
| 2382 | content: { |
| 2383 | "application/octet-stream": string; |
| 2384 | }; |
| 2385 | }; |
| 2386 | responses: { |
| 2387 | /** @description Part uploaded */ |
| 2388 | 200: { |
| 2389 | headers: { |
| 2390 | [name: string]: unknown; |
| 2391 | }; |
| 2392 | content: { |
| 2393 | "application/json": components["schemas"]["UploadPartResponse"]; |
| 2394 | }; |
| 2395 | }; |
| 2396 | }; |
| 2397 | }; |
| 2398 | completeUpload: { |
| 2399 | parameters: { |
| 2400 | query?: never; |
| 2401 | header?: never; |
| 2402 | path: { |
| 2403 | workspaceSlug: string; |
| 2404 | }; |
| 2405 | cookie?: never; |
| 2406 | }; |
| 2407 | requestBody: { |
| 2408 | content: { |
| 2409 | "application/json": components["schemas"]["CompleteUploadInput"]; |
| 2410 | }; |
| 2411 | }; |
| 2412 | responses: { |
| 2413 | /** @description Upload complete — file created */ |
| 2414 | 200: { |
| 2415 | headers: { |
| 2416 | [name: string]: unknown; |
| 2417 | }; |
| 2418 | content: { |
| 2419 | "application/json": components["schemas"]["CompleteUploadResponse"]; |
| 2420 | }; |
| 2421 | }; |
| 2422 | }; |
| 2423 | }; |
| 2424 | batchCreateTasks: { |
| 2425 | parameters: { |
| 2426 | query?: never; |
| 2427 | header?: never; |
| 2428 | path: { |
| 2429 | workspaceSlug: string; |
| 2430 | taskboardId: string; |
| 2431 | }; |
| 2432 | cookie?: never; |
| 2433 | }; |
| 2434 | requestBody: { |
| 2435 | content: { |
| 2436 | "application/json": components["schemas"]["BatchCreateTasksInput"]; |
| 2437 | }; |
| 2438 | }; |
| 2439 | responses: { |
| 2440 | /** @description Tasks created */ |
| 2441 | 201: { |
| 2442 | headers: { |
| 2443 | [name: string]: unknown; |
| 2444 | }; |
| 2445 | content: { |
| 2446 | "application/json": components["schemas"]["BatchCreateTasksResponse"]; |
| 2447 | }; |
| 2448 | }; |
| 2449 | }; |
| 2450 | }; |
| 2451 | batchUpdateTasks: { |
| 2452 | parameters: { |
| 2453 | query?: never; |
| 2454 | header?: never; |
| 2455 | path: { |
| 2456 | workspaceSlug: string; |
| 2457 | taskboardId: string; |
| 2458 | }; |
| 2459 | cookie?: never; |
| 2460 | }; |
| 2461 | requestBody: { |
| 2462 | content: { |
| 2463 | "application/json": components["schemas"]["BatchUpdateTasksInput"]; |
| 2464 | }; |
| 2465 | }; |
| 2466 | responses: { |
| 2467 | /** @description Tasks updated */ |
| 2468 | 200: { |
| 2469 | headers: { |
| 2470 | [name: string]: unknown; |
| 2471 | }; |
| 2472 | content: { |
| 2473 | "application/json": components["schemas"]["BatchUpdateTasksResponse"]; |
| 2474 | }; |
| 2475 | }; |
| 2476 | }; |
| 2477 | }; |
| 2478 | batchDeleteTasks: { |
| 2479 | parameters: { |
| 2480 | query?: never; |
| 2481 | header?: never; |
| 2482 | path: { |
| 2483 | workspaceSlug: string; |
| 2484 | taskboardId: string; |
| 2485 | }; |
| 2486 | cookie?: never; |
| 2487 | }; |
| 2488 | requestBody: { |
| 2489 | content: { |
| 2490 | "application/json": { |
| 2491 | taskIds: string[]; |
| 2492 | }; |
| 2493 | }; |
| 2494 | }; |
| 2495 | responses: { |
| 2496 | /** @description Tasks deleted */ |
| 2497 | 200: { |
| 2498 | headers: { |
| 2499 | [name: string]: unknown; |
| 2500 | }; |
| 2501 | content: { |
| 2502 | "application/json": components["schemas"]["OkResponse"]; |
| 2503 | }; |
| 2504 | }; |
| 2505 | }; |
| 2506 | }; |
| 2507 | } |
| 2508 |