@macro-inc/sdk 0.2.2 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +177 -3
- package/dist/{chunk-OGE7WXJE.js → chunk-AZJUIUIV.js} +177 -23
- package/dist/{chunk-PRUFPW3B.js → chunk-G43PLP2U.js} +144 -0
- package/dist/{chunk-7LVVPVNT.js → chunk-K4G5VO4P.js} +76 -1
- package/dist/{chunk-PAAFJYGO.js → chunk-PPR7IWZ7.js} +77 -51
- package/dist/{chunk-QVBNNMQS.js → chunk-PTX2RV2N.js} +169 -20
- package/dist/{chunk-SUINKDXF.js → chunk-PZPTJI6F.js} +42 -0
- package/dist/{chunk-7YJ6Y7HJ.js → chunk-XFA7NCJ5.js} +207 -0
- package/dist/{chunk-ZQXOHNDB.js → chunk-ZLBDES7U.js} +789 -12
- package/dist/generated/agent-fold/index.d.ts +4332 -0
- package/dist/generated/agent-fold/index.js +0 -0
- package/dist/generated/agent-harness/index.d.ts +1 -1
- package/dist/generated/agent-harness/index.js +1 -1
- package/dist/generated/agent-harness/sdk.gen.d.ts +83 -9
- package/dist/generated/agent-harness/types.gen.d.ts +1504 -160
- package/dist/generated/agent-reviews/index.d.ts +893 -0
- package/dist/generated/agent-reviews/index.js +0 -0
- package/dist/generated/auth/index.d.ts +1 -1
- package/dist/generated/auth/index.js +1 -1
- package/dist/generated/auth/sdk.gen.d.ts +108 -2
- package/dist/generated/auth/types.gen.d.ts +799 -6
- package/dist/generated/calendar/index.d.ts +1 -1
- package/dist/generated/calendar/index.js +1 -1
- package/dist/generated/calendar/sdk.gen.d.ts +63 -1
- package/dist/generated/calendar/types.gen.d.ts +1234 -5
- package/dist/generated/cognition/index.d.ts +1 -1
- package/dist/generated/cognition/index.js +1 -1
- package/dist/generated/cognition/sdk.gen.d.ts +85 -20
- package/dist/generated/cognition/types.gen.d.ts +1040 -121
- package/dist/generated/connection/index.d.ts +1 -1
- package/dist/generated/connection/index.js +15 -0
- package/dist/generated/connection/sdk.gen.d.ts +6 -1
- package/dist/generated/connection/types.gen.d.ts +18 -1
- package/dist/generated/email/index.d.ts +1 -1
- package/dist/generated/email/index.js +1 -1
- package/dist/generated/email/sdk.gen.d.ts +44 -2
- package/dist/generated/email/types.gen.d.ts +475 -10
- package/dist/generated/notification/index.d.ts +1 -1
- package/dist/generated/notification/index.js +1 -1
- package/dist/generated/notification/sdk.gen.d.ts +29 -21
- package/dist/generated/notification/types.gen.d.ts +267 -73
- package/dist/generated/properties/index.d.ts +1 -1
- package/dist/generated/properties/types.gen.d.ts +21 -1
- package/dist/generated/scheduled-action/index.d.ts +1 -1
- package/dist/generated/scheduled-action/index.js +1 -1
- package/dist/generated/scheduled-action/sdk.gen.d.ts +8 -1
- package/dist/generated/scheduled-action/types.gen.d.ts +669 -19
- package/dist/generated/search/index.d.ts +1 -1
- package/dist/generated/search/types.gen.d.ts +87 -7
- package/dist/generated/static-files/types.gen.d.ts +6 -0
- package/dist/generated/storage/index.d.ts +1 -1
- package/dist/generated/storage/index.js +1 -1
- package/dist/generated/storage/sdk.gen.d.ts +376 -13
- package/dist/generated/storage/types.gen.d.ts +12038 -5562
- package/dist/src/entities/account-managers/grant.d.ts +39 -0
- package/dist/src/entities/account-managers/namespace.d.ts +17 -0
- package/dist/src/entities/agent-sessions/activity.d.ts +39 -0
- package/dist/src/entities/agent-sessions/agent-session.d.ts +148 -6
- package/dist/src/entities/agent-sessions/code-execution.d.ts +5 -0
- package/dist/src/entities/agent-sessions/namespace.d.ts +54 -4
- package/dist/src/entities/agent-sessions/origin.d.ts +94 -0
- package/dist/src/entities/agent-sessions/review.d.ts +18 -62
- package/dist/src/entities/agent-sessions/view.d.ts +11 -0
- package/dist/src/entities/agents/namespace.d.ts +11 -2
- package/dist/src/entities/ai/namespace.d.ts +5 -1
- package/dist/src/entities/api-keys/namespace.d.ts +5 -1
- package/dist/src/entities/bots/bot.d.ts +108 -0
- package/dist/src/entities/bots/namespace.d.ts +17 -4
- package/dist/src/entities/bots/token.d.ts +34 -0
- package/dist/src/entities/calendar/booking-link.d.ts +49 -0
- package/dist/src/entities/calendar/booking-namespace.d.ts +130 -0
- package/dist/src/entities/calendar/booking-namespace.test.d.ts +1 -0
- package/dist/src/entities/calendar/booking.d.ts +77 -0
- package/dist/src/entities/calendar/calendar.d.ts +11 -4
- package/dist/src/entities/calendar/create-confirmed.test.d.ts +1 -0
- package/dist/src/entities/calendar/event.d.ts +104 -3
- package/dist/src/entities/calendar/namespace.d.ts +151 -7
- package/dist/src/entities/calendar/namespace.test.d.ts +1 -0
- package/dist/src/entities/calls/call-record.d.ts +34 -4
- package/dist/src/entities/calls/connection.d.ts +53 -0
- package/dist/src/entities/calls/errors.d.ts +15 -0
- package/dist/src/entities/calls/namespace.d.ts +21 -1
- package/dist/src/entities/calls/participant.d.ts +22 -0
- package/dist/src/entities/channels/access-request.d.ts +34 -0
- package/dist/src/entities/channels/channel.d.ts +47 -1
- package/dist/src/entities/channels/namespace.d.ts +21 -5
- package/dist/src/entities/channels/namespace.test.d.ts +1 -0
- package/dist/src/entities/channels/post.d.ts +14 -3
- package/dist/src/entities/channels/thread.d.ts +10 -1
- package/dist/src/entities/chats/chat.d.ts +7 -1
- package/dist/src/entities/chats/namespace.d.ts +14 -1
- package/dist/src/entities/connected-apps/connected-app.d.ts +107 -0
- package/dist/src/entities/connected-apps/connector.d.ts +56 -0
- package/dist/src/entities/connected-apps/namespace.d.ts +74 -0
- package/dist/src/entities/crm/company.d.ts +7 -3
- package/dist/src/entities/crm/contact.d.ts +4 -4
- package/dist/src/entities/crm/namespace.d.ts +34 -1
- package/dist/src/entities/crm/pipeline.d.ts +43 -2
- package/dist/src/entities/databases/database.d.ts +17 -0
- package/dist/src/entities/databases/namespace.d.ts +56 -0
- package/dist/src/entities/documents/ai-edit.d.ts +52 -0
- package/dist/src/entities/documents/document.d.ts +244 -5
- package/dist/src/entities/documents/namespace.d.ts +89 -4
- package/dist/src/entities/documents/office-files.d.ts +47 -0
- package/dist/src/entities/email/draft.d.ts +36 -7
- package/dist/src/entities/email/message.d.ts +99 -3
- package/dist/src/entities/email/namespace.d.ts +47 -4
- package/dist/src/entities/email/namespace.test.d.ts +1 -0
- package/dist/src/entities/email/thread.d.ts +55 -3
- package/dist/src/entities/entity-mentions/namespace.d.ts +5 -1
- package/dist/src/entities/external-chat/chat.d.ts +105 -0
- package/dist/src/entities/external-chat/message.d.ts +54 -0
- package/dist/src/entities/external-chat/namespace.d.ts +18 -0
- package/dist/src/entities/external-chat/participant.d.ts +28 -0
- package/dist/src/entities/external-chat/send.d.ts +32 -0
- package/dist/src/entities/external-chat/upload.d.ts +25 -0
- package/dist/src/entities/favorites/namespace.d.ts +5 -1
- package/dist/src/entities/foreign/namespace.d.ts +3 -0
- package/dist/src/entities/forms/form.d.ts +17 -2
- package/dist/src/entities/forms/namespace.d.ts +5 -1
- package/dist/src/entities/github-pull-requests/namespace.d.ts +5 -1
- package/dist/src/entities/harnesses/harness.d.ts +9 -0
- package/dist/src/entities/harnesses/namespace.d.ts +5 -1
- package/dist/src/entities/images/image.d.ts +77 -0
- package/dist/src/entities/images/namespace.d.ts +48 -0
- package/dist/src/entities/images/namespace.test.d.ts +1 -0
- package/dist/src/entities/initiatives/initiative.d.ts +12 -1
- package/dist/src/entities/initiatives/namespace.d.ts +15 -2
- package/dist/src/entities/me/namespace.d.ts +43 -0
- package/dist/src/entities/meetings/meeting.d.ts +5 -0
- package/dist/src/entities/meetings/namespace.d.ts +5 -1
- package/dist/src/entities/messages/thread.d.ts +1 -1
- package/dist/src/entities/notifications/namespace.d.ts +3 -0
- package/dist/src/entities/pins/namespace.d.ts +5 -1
- package/dist/src/entities/projects/namespace.d.ts +4 -1
- package/dist/src/entities/projects/project.d.ts +9 -1
- package/dist/src/entities/properties/namespace.d.ts +2 -0
- package/dist/src/entities/referrals/namespace.d.ts +33 -0
- package/dist/src/entities/routines/namespace.d.ts +42 -2
- package/dist/src/entities/routines/routine.d.ts +84 -5
- package/dist/src/entities/search/namespace.d.ts +65 -0
- package/dist/src/entities/{search.d.ts → search/options.d.ts} +8 -2
- package/dist/src/entities/search/types.d.ts +90 -0
- package/dist/src/entities/sharing/access.d.ts +14 -0
- package/dist/src/entities/tasks/namespace.d.ts +42 -3
- package/dist/src/entities/tasks/task.d.ts +47 -6
- package/dist/src/entities/teams/invite.d.ts +30 -0
- package/dist/src/entities/teams/namespace.d.ts +3 -0
- package/dist/src/entities/teams/team.d.ts +37 -0
- package/dist/src/entities/unfurls/namespace.d.ts +5 -1
- package/dist/src/entities/users/namespace.d.ts +9 -0
- package/dist/src/entities/users/user.d.ts +8 -0
- package/dist/src/entities/web/namespace.d.ts +61 -0
- package/dist/src/entities/web/namespace.test.d.ts +1 -0
- package/dist/src/entities/webhooks/namespace.d.ts +2 -0
- package/dist/src/entities/whatsapp/account.d.ts +20 -0
- package/dist/src/entities/whatsapp/chat.d.ts +54 -0
- package/dist/src/entities/whatsapp/namespace.d.ts +23 -0
- package/dist/src/entities/workspace/items.d.ts +7 -0
- package/dist/src/entities/workspace/namespace.d.ts +14 -9
- package/dist/src/entities/workspace/query.d.ts +23 -0
- package/dist/src/entities/workspace/types.d.ts +6 -3
- package/dist/src/events/hydrate/agentSession.d.ts +1 -1
- package/dist/src/events/hydrate/call.d.ts +101 -0
- package/dist/src/events/hydrate/channel.d.ts +8 -1
- package/dist/src/events/hydrate/document.d.ts +1 -1
- package/dist/src/events/hydrate/message.d.ts +1 -1
- package/dist/src/events/types.d.ts +2 -1
- package/dist/src/macro.d.ts +73 -4
- package/dist/src/macro.js +8235 -3701
- package/dist/src/mentions.d.ts +6 -1
- package/dist/src/utils/activity.d.ts +23 -2
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/unwrap.d.ts +27 -2
- package/package.json +2 -2
|
@@ -18,25 +18,11 @@ export type AddServerRequest = {
|
|
|
18
18
|
*/
|
|
19
19
|
url: string;
|
|
20
20
|
};
|
|
21
|
-
/**
|
|
22
|
-
* Public admission error payload. Handlers with additional fields can reuse the
|
|
23
|
-
* domain error's code and message and [`admission_status`].
|
|
24
|
-
*/
|
|
25
|
-
export type AiAdmissionErrorBody = {
|
|
26
|
-
/**
|
|
27
|
-
* Stable denial or unavailability code.
|
|
28
|
-
*/
|
|
29
|
-
code: string;
|
|
30
|
-
/**
|
|
31
|
-
* Human-readable explanation, without internal billing diagnostics.
|
|
32
|
-
*/
|
|
33
|
-
error: string;
|
|
34
|
-
};
|
|
35
21
|
/**
|
|
36
22
|
* Everything we use AI for. The wire / DB form of each variant is its
|
|
37
23
|
* `snake_case` name.
|
|
38
24
|
*/
|
|
39
|
-
export type AiFeature = 'chat' | 'memory' | 'automation' | 'dynamic_completions_api' | 'chat_rename' | 'call_summary' | 'channel_bot' | 'ai_projection' | 'ai_editing' | 'import' | 'agent_session' | 'agent_repository_choice' | 'dictation' | 'image_generation';
|
|
25
|
+
export type AiFeature = 'chat' | 'memory' | 'automation' | 'dynamic_completions_api' | 'chat_rename' | 'call_summary' | 'channel_bot' | 'ai_projection' | 'ai_editing' | 'import' | 'agent_session' | 'agent_repository_choice' | 'agent_mode_choice' | 'dictation' | 'image_generation' | 'email_focus' | 'web_search';
|
|
40
26
|
/**
|
|
41
27
|
* A structured part within an assistant message.
|
|
42
28
|
*
|
|
@@ -391,6 +377,10 @@ export type CompleteOnboardingRequest = {
|
|
|
391
377
|
*/
|
|
392
378
|
skipped?: boolean;
|
|
393
379
|
};
|
|
380
|
+
/**
|
|
381
|
+
* How much a model may think before it gives a structured answer.
|
|
382
|
+
*/
|
|
383
|
+
export type CompletionThinking = 'default' | 'low';
|
|
394
384
|
/**
|
|
395
385
|
* User and feature attribution for one invocation.
|
|
396
386
|
*/
|
|
@@ -458,6 +448,45 @@ export type DatabaseChange = {
|
|
|
458
448
|
count: number;
|
|
459
449
|
kind: 'rows';
|
|
460
450
|
};
|
|
451
|
+
/**
|
|
452
|
+
* A proposal, never stored results or permission to read the named database.
|
|
453
|
+
*/
|
|
454
|
+
export type DatabaseQueryAnswer = {
|
|
455
|
+
answerable: boolean;
|
|
456
|
+
chart?: null | DatabaseQueryChart;
|
|
457
|
+
databaseId?: string | null;
|
|
458
|
+
displayMode: DatabaseQueryDisplayMode;
|
|
459
|
+
explanation: string;
|
|
460
|
+
sql: string;
|
|
461
|
+
title: string;
|
|
462
|
+
};
|
|
463
|
+
/**
|
|
464
|
+
* Chart fields name the proposal's result columns exactly.
|
|
465
|
+
*/
|
|
466
|
+
export type DatabaseQueryChart = {
|
|
467
|
+
color?: string | null;
|
|
468
|
+
stack: boolean;
|
|
469
|
+
title: string;
|
|
470
|
+
x: string;
|
|
471
|
+
y: Array<string>;
|
|
472
|
+
};
|
|
473
|
+
/**
|
|
474
|
+
* Supported live-answer presentations.
|
|
475
|
+
*/
|
|
476
|
+
export type DatabaseQueryDisplayMode = 'scalar' | 'table' | 'bar' | 'line' | 'area' | 'scatter' | 'pie';
|
|
477
|
+
/**
|
|
478
|
+
* The question and untrusted schema hints; authorization remains in the read services.
|
|
479
|
+
*/
|
|
480
|
+
export type DatabaseQueryRequest = {
|
|
481
|
+
/**
|
|
482
|
+
* The SQL engine's error from one failed proposal, used for a bounded repair.
|
|
483
|
+
*/
|
|
484
|
+
error?: string | null;
|
|
485
|
+
model: string;
|
|
486
|
+
prompt: string;
|
|
487
|
+
schema: unknown;
|
|
488
|
+
sql: string;
|
|
489
|
+
};
|
|
461
490
|
/**
|
|
462
491
|
* Sanitized, machine-readable failure of a decision request.
|
|
463
492
|
*/
|
|
@@ -498,6 +527,15 @@ export type DecisionResponse = {
|
|
|
498
527
|
[key: string]: number;
|
|
499
528
|
};
|
|
500
529
|
};
|
|
530
|
+
/**
|
|
531
|
+
* The prompts the user dismissed, on any device.
|
|
532
|
+
*/
|
|
533
|
+
export type DismissedPrompts = {
|
|
534
|
+
/**
|
|
535
|
+
* Dismissed prompt ids, oldest dismissal first.
|
|
536
|
+
*/
|
|
537
|
+
dismissed: Array<string>;
|
|
538
|
+
};
|
|
501
539
|
export type DocumentCognitionServiceApiVersion = 'v1' | 'v2';
|
|
502
540
|
export type DocumentReference = UserPdfRect & {
|
|
503
541
|
kind: 'pdf';
|
|
@@ -541,7 +579,7 @@ export type Entity = {
|
|
|
541
579
|
/**
|
|
542
580
|
* The type of an entity in Macro
|
|
543
581
|
*/
|
|
544
|
-
export type EntityType = 'user' | 'chat' | 'channel' | 'channel_message' | 'document' | 'project' | 'email_thread' | 'calendar_event' | 'team' | 'call' | 'foreign_entity' | 'static_file' | 'crm_company' | 'crm_contact' | 'crm_pipeline' | 'reminder' | 'skill' | 'agent_session' | 'scheduled_action' | 'initiative' | 'database' | 'database_row' | 'form';
|
|
582
|
+
export type EntityType = 'user' | 'chat' | 'channel' | 'channel_message' | 'document' | 'project' | 'email_thread' | 'calendar_event' | 'team' | 'call' | 'foreign_entity' | 'static_file' | 'crm_company' | 'crm_contact' | 'crm_pipeline' | 'reminder' | 'skill' | 'agent_session' | 'scheduled_action' | 'initiative' | 'database' | 'database_row' | 'form' | 'external_chat';
|
|
545
583
|
/**
|
|
546
584
|
* Error response body.
|
|
547
585
|
*/
|
|
@@ -599,6 +637,90 @@ export type FeatureUsage = {
|
|
|
599
637
|
*
|
|
600
638
|
*/
|
|
601
639
|
export type FileType = 'docx' | 'pdf' | 'md' | 'spreadsheet' | 'canvas' | 'coffee' | 'cson' | 'iced' | 'c' | 'i' | 'cpp' | 'cppm' | 'cc' | 'ccm' | 'cxx' | 'cxxm' | 'cplusplus' | 'cplusplusm' | 'hpp' | 'hh' | 'hxx' | 'hplusplus' | 'h' | 'ii' | 'ino' | 'inl' | 'ipp' | 'ixx' | 'tpp' | 'txx' | 'hppin' | 'hin' | 'cu' | 'cuh' | 'cs' | 'csx' | 'cake' | 'css' | 'dart' | 'diff' | 'patch' | 'rej' | 'dockerfile' | 'containerfile' | 'go' | 'handlebars' | 'hbs' | 'hjs' | 'hlsl' | 'hlsli' | 'fx' | 'fxh' | 'vsh' | 'psh' | 'cginc' | 'compute' | 'html' | 'htm' | 'shtml' | 'xhtml' | 'xht' | 'mdoc' | 'jsp' | 'asp' | 'aspx' | 'jshtm' | 'volt' | 'ejs' | 'rhtml' | 'ini' | 'conf' | 'properties' | 'cfg' | 'directory' | 'gitattributes' | 'gitconfig' | 'gitmodules' | 'editorconfig' | 'repo' | 'java' | 'jav' | 'jsx' | 'js' | 'es6' | 'mjs' | 'cjs' | 'pac' | 'json' | 'bowerrc' | 'jscsrc' | 'webmanifest' | 'jsmap' | 'cssmap' | 'tsmap' | 'har' | 'jslintrc' | 'jsonld' | 'geojson' | 'ipynb' | 'vuerc' | 'jsonc' | 'eslintrc' | 'eslintrcjson' | 'jsfmtrc' | 'jshintrc' | 'swcrc' | 'hintrc' | 'babelrc' | 'jsonl' | 'ndjson' | 'codesnippets' | 'jl' | 'jmd' | 'sty' | 'cls' | 'bbx' | 'cbx' | 'tex' | 'ltx' | 'ctx' | 'bib' | 'less' | 'log' | 'lua' | 'mak' | 'mk' | 'mkd' | 'mdwn' | 'mdown' | 'markdown' | 'markdn' | 'mdtxt' | 'mdtext' | 'workbook' | 'm' | 'mm' | 'pl' | 'pm' | 'pod' | 't' | 'psgi' | 'raku' | 'rakumod' | 'rakutest' | 'rakudoc' | 'nqp' | 'p6' | 'pl6' | 'pm6' | 'php' | 'php4' | 'php5' | 'phtml' | 'ctp' | 'ps1' | 'psm1' | 'psd1' | 'pssc' | 'psrc' | 'py' | 'rpy' | 'pyw' | 'cpy' | 'gyp' | 'gypi' | 'pyi' | 'ipy' | 'pyt' | 'r' | 'rhistory' | 'rprofile' | 'rt' | 'cshtml' | 'razor' | 'rb' | 'rbx' | 'rjs' | 'gemspec' | 'rake' | 'ru' | 'erb' | 'podspec' | 'rbi' | 'rs' | 'scss' | 'sass' | 'shader' | 'sh' | 'bash' | 'bashrc' | 'bashaliases' | 'bashprofile' | 'bashlogin' | 'ebuild' | 'eclass' | 'profile' | 'bashlogout' | 'xprofile' | 'xsession' | 'xsessionrc' | 'zsh' | 'zshrc' | 'zprofile' | 'zlogin' | 'zlogout' | 'zshenv' | 'zshtheme' | 'fish' | 'ksh' | 'csh' | 'cshrc' | 'tcshrc' | 'yashrc' | 'yashprofile' | 'sql' | 'dsql' | 'swift' | 'ts' | 'cts' | 'mts' | 'tsx' | 'tsbuildinfo' | 'xml' | 'xsd' | 'ascx' | 'atom' | 'axml' | 'axaml' | 'bpmn' | 'cpt' | 'csl' | 'csproj' | 'csprojuser' | 'dita' | 'ditamap' | 'dtd' | 'ent' | 'mod' | 'dtml' | 'fsproj' | 'fxml' | 'iml' | 'isml' | 'jmx' | 'launch' | 'menu' | 'mxml' | 'nuspec' | 'opml' | 'owl' | 'proj' | 'props' | 'pt' | 'publishsettings' | 'pubxml' | 'pubxmluser' | 'rbxlx' | 'rbxmx' | 'rdf' | 'rng' | 'rss' | 'shproj' | 'storyboard' | 'targets' | 'tld' | 'tmx' | 'vbproj' | 'vbprojuser' | 'vcxproj' | 'vcxprojfilters' | 'wsdl' | 'wxi' | 'wxl' | 'wxs' | 'xaml' | 'xbl' | 'xib' | 'xlf' | 'xliff' | 'xpdl' | 'xul' | 'xoml' | 'xsl' | 'xslt' | 'yaml' | 'yml' | 'eyaml' | 'eyml' | 'cff' | 'yamltmlanguage' | 'yamltmpreferences' | 'yamltmtheme' | 'winget' | 'txt' | 'csv' | 'tsv' | 'jpeg' | 'jpg' | 'png' | 'gif' | 'svg' | 'webp' | 'avif' | 'bmp' | 'ico' | 'tiff' | 'tif' | 'heic' | 'heif' | 'tar' | 'targz' | 'tgz' | 'gz' | 'bz2' | 'tarbz2' | 'tbz2' | 'z' | 'tarz' | 'lz' | 'tarlz' | 'xz' | 'tarxz' | 'txz' | 'lzma' | 'tarlzma' | 'rar' | 'sevenz' | 'zst' | 'tarzst' | 'tzst' | 'zip' | 'exe' | 'msi' | 'dll' | 'bat' | 'cmd' | 'com' | 'appimage' | 'app' | 'bin' | 'deb' | 'rpm' | 'apk' | 'dmg' | 'pkg' | 'crx' | 'xpi' | 'mp3' | 'wav' | 'ogg' | 'flac' | 'aac' | 'm4a' | 'wma' | 'mid' | 'midi' | 'mp4' | 'mkv' | 'webm' | 'avi' | 'mov' | 'wmv' | 'mpg' | 'mpeg' | 'm4v' | 'flv' | 'f4v' | 'threegp' | 'ttf' | 'otf' | 'woff' | 'woff2' | 'eot' | 'rtf' | 'odt' | 'ods' | 'odp' | 'odg' | 'odf' | 'epub' | 'mobi' | 'azw' | 'azw3' | 'djvu' | 'xls' | 'xlsm' | 'ppt' | 'doc' | 'pptx' | 'xlsx' | 'db' | 'sqlite' | 'sqlite3' | 'mdb' | 'accdb' | 'dbf' | 'plist' | 'toml' | 'env' | 'dot' | 'gv' | 'torrent' | 'ics' | 'vcf' | 'ai' | 'eps' | 'ps' | 'dxf' | 'dwg' | 'fig' | 'psd' | 'psb' | 'stl' | 'obj' | 'fbx' | 'blend' | 'dae' | 'threeds' | 'gltf' | 'glb' | 'vhd' | 'vhdx' | 'vmdk' | 'ova' | 'ovf' | 'iso' | 'img' | 'swf';
|
|
640
|
+
/**
|
|
641
|
+
* A `provider/model` id every user may request without professional features.
|
|
642
|
+
*/
|
|
643
|
+
export type FreeTierModel = 'google/gemini-3.8-flash';
|
|
644
|
+
/**
|
|
645
|
+
* Shape of the generated image.
|
|
646
|
+
*/
|
|
647
|
+
export type GenerateImageAspectRatio = 'square' | 'landscape' | 'portrait' | 'widescreen' | 'tall';
|
|
648
|
+
/**
|
|
649
|
+
* Sanitized, machine-readable failure of an image request.
|
|
650
|
+
*/
|
|
651
|
+
export type GenerateImageErrorBody = {
|
|
652
|
+
/**
|
|
653
|
+
* Stable failure code.
|
|
654
|
+
*/
|
|
655
|
+
code: string;
|
|
656
|
+
/**
|
|
657
|
+
* Explanation without provider or storage diagnostics.
|
|
658
|
+
*/
|
|
659
|
+
error: string;
|
|
660
|
+
};
|
|
661
|
+
/**
|
|
662
|
+
* A reference image already stored in Macro.
|
|
663
|
+
*/
|
|
664
|
+
export type GenerateImageReference = {
|
|
665
|
+
/**
|
|
666
|
+
* The Macro document ID.
|
|
667
|
+
*/
|
|
668
|
+
id: string;
|
|
669
|
+
type: 'document';
|
|
670
|
+
} | {
|
|
671
|
+
/**
|
|
672
|
+
* The static file ID.
|
|
673
|
+
*/
|
|
674
|
+
id: string;
|
|
675
|
+
type: 'staticFile';
|
|
676
|
+
};
|
|
677
|
+
/**
|
|
678
|
+
* What image to generate.
|
|
679
|
+
*/
|
|
680
|
+
export type GenerateImageRequest = {
|
|
681
|
+
aspectRatio?: null | GenerateImageAspectRatio;
|
|
682
|
+
/**
|
|
683
|
+
* Description of the image: subject, style, composition, colours, and any text to render.
|
|
684
|
+
*/
|
|
685
|
+
prompt: string;
|
|
686
|
+
/**
|
|
687
|
+
* Up to three reference images, in the order the prompt refers to them.
|
|
688
|
+
*/
|
|
689
|
+
referenceImages?: Array<GenerateImageReference>;
|
|
690
|
+
};
|
|
691
|
+
/**
|
|
692
|
+
* The stored generated image.
|
|
693
|
+
*/
|
|
694
|
+
export type GenerateImageResponse = {
|
|
695
|
+
/**
|
|
696
|
+
* Intrinsic pixel height.
|
|
697
|
+
*/
|
|
698
|
+
height: number;
|
|
699
|
+
/**
|
|
700
|
+
* IANA media type of the image, e.g. `image/png`.
|
|
701
|
+
*/
|
|
702
|
+
mimeType: string;
|
|
703
|
+
/**
|
|
704
|
+
* Commentary the model produced alongside the image, when any.
|
|
705
|
+
*/
|
|
706
|
+
note?: string | null;
|
|
707
|
+
/**
|
|
708
|
+
* Size of the image in bytes.
|
|
709
|
+
*/
|
|
710
|
+
sizeBytes: number;
|
|
711
|
+
/**
|
|
712
|
+
* Static file ID, reusable as a reference image or a message attachment.
|
|
713
|
+
*/
|
|
714
|
+
staticFileId: string;
|
|
715
|
+
/**
|
|
716
|
+
* Permanent URL of the image.
|
|
717
|
+
*/
|
|
718
|
+
url: string;
|
|
719
|
+
/**
|
|
720
|
+
* Intrinsic pixel width.
|
|
721
|
+
*/
|
|
722
|
+
width: number;
|
|
723
|
+
};
|
|
602
724
|
export type GenericErrorResponse = {
|
|
603
725
|
/**
|
|
604
726
|
* Indicates if an error occurred
|
|
@@ -704,6 +826,10 @@ export type ImportEntity = {
|
|
|
704
826
|
* Where it was first staged from.
|
|
705
827
|
*/
|
|
706
828
|
initiator: Initiator;
|
|
829
|
+
/**
|
|
830
|
+
* What the item is in its source system.
|
|
831
|
+
*/
|
|
832
|
+
kind: ImportKind;
|
|
707
833
|
/**
|
|
708
834
|
* Failure detail from the last import attempt, when one failed.
|
|
709
835
|
*/
|
|
@@ -713,6 +839,16 @@ export type ImportEntity = {
|
|
|
713
839
|
* [`LinearIssueMeta`], [`NotionDocMeta`], [`SlackChannelMeta`]).
|
|
714
840
|
*/
|
|
715
841
|
metadata: unknown;
|
|
842
|
+
/**
|
|
843
|
+
* The import row this item was imported under (a subpage's parent page,
|
|
844
|
+
* a row's database), when it was imported as part of a tree.
|
|
845
|
+
*/
|
|
846
|
+
parent_id?: string | null;
|
|
847
|
+
/**
|
|
848
|
+
* The agent session review that approved importing this item, when it
|
|
849
|
+
* came from one.
|
|
850
|
+
*/
|
|
851
|
+
review_id?: string | null;
|
|
716
852
|
/**
|
|
717
853
|
* The external system the item comes from.
|
|
718
854
|
*/
|
|
@@ -735,22 +871,35 @@ export type ImportEntity = {
|
|
|
735
871
|
* teammate".
|
|
736
872
|
*/
|
|
737
873
|
user_id: string;
|
|
874
|
+
/**
|
|
875
|
+
* The teammate's row this one waits on: that teammate is writing the
|
|
876
|
+
* same object for the team, and this row links to their copy once it
|
|
877
|
+
* is imported.
|
|
878
|
+
*/
|
|
879
|
+
waiting_on?: string | null;
|
|
738
880
|
};
|
|
739
881
|
/**
|
|
740
|
-
*
|
|
882
|
+
* What an imported item is in its source system. Each source has its own
|
|
883
|
+
* kinds; a Notion database and a Notion page, or a Linear project and a
|
|
884
|
+
* Linear issue, are tracked and deduplicated separately.
|
|
885
|
+
*/
|
|
886
|
+
export type ImportKind = 'issue' | 'project' | 'document' | 'page' | 'database' | 'data_source' | 'row' | 'jira_issue' | 'jira_project' | 'jira_epic' | 'channel';
|
|
887
|
+
/**
|
|
888
|
+
* Discovery-run state for one user × source.
|
|
741
889
|
*/
|
|
742
890
|
export type ImportRun = {
|
|
743
891
|
/**
|
|
744
|
-
*
|
|
745
|
-
* soon as gathering finishes.
|
|
892
|
+
* Discovery failure detail, when the run failed.
|
|
746
893
|
*/
|
|
747
|
-
|
|
894
|
+
error?: string | null;
|
|
748
895
|
/**
|
|
749
|
-
*
|
|
896
|
+
* The review presenting the run's plan, once one does. A Notion plan is
|
|
897
|
+
* presented while it is still `running`; rows staged after that take it.
|
|
750
898
|
*/
|
|
751
|
-
|
|
899
|
+
review_id?: string | null;
|
|
900
|
+
scanned?: null | ScanCounts;
|
|
752
901
|
/**
|
|
753
|
-
* The source this run
|
|
902
|
+
* The source this run discovered from.
|
|
754
903
|
*/
|
|
755
904
|
source: ImportSource;
|
|
756
905
|
/**
|
|
@@ -765,9 +914,9 @@ export type ImportRun = {
|
|
|
765
914
|
/**
|
|
766
915
|
* External systems items can be imported from.
|
|
767
916
|
*/
|
|
768
|
-
export type ImportSource = 'linear' | 'notion' | 'slack';
|
|
917
|
+
export type ImportSource = 'linear' | 'jira' | 'notion' | 'slack';
|
|
769
918
|
/**
|
|
770
|
-
* The full import aggregate for a user:
|
|
919
|
+
* The full import aggregate for a user: discovery runs plus visible ledger
|
|
771
920
|
* rows (their own, and teammates' team-imported rows).
|
|
772
921
|
*/
|
|
773
922
|
export type ImportState = {
|
|
@@ -776,7 +925,7 @@ export type ImportState = {
|
|
|
776
925
|
*/
|
|
777
926
|
entities: Array<ImportEntity>;
|
|
778
927
|
/**
|
|
779
|
-
*
|
|
928
|
+
* Discovery runs, one per source that ever ran discovery.
|
|
780
929
|
*/
|
|
781
930
|
runs: Array<ImportRun>;
|
|
782
931
|
};
|
|
@@ -895,11 +1044,33 @@ export type NewMessageAttachment = {
|
|
|
895
1044
|
attachmentType: AttachmentType;
|
|
896
1045
|
messageId: string;
|
|
897
1046
|
};
|
|
1047
|
+
/**
|
|
1048
|
+
* A teammate's copy of a Notion object, shared with the user's team.
|
|
1049
|
+
*/
|
|
1050
|
+
export type NotionAlreadyImported = {
|
|
1051
|
+
/**
|
|
1052
|
+
* The teammate who imported it, by email.
|
|
1053
|
+
*/
|
|
1054
|
+
by: string;
|
|
1055
|
+
/**
|
|
1056
|
+
* The Macro entity it became.
|
|
1057
|
+
*/
|
|
1058
|
+
entityId: string;
|
|
1059
|
+
/**
|
|
1060
|
+
* That entity's type (`md`, `project`).
|
|
1061
|
+
*/
|
|
1062
|
+
entityType: string;
|
|
1063
|
+
};
|
|
1064
|
+
/**
|
|
1065
|
+
* What a workspace import does with one Notion object.
|
|
1066
|
+
*/
|
|
1067
|
+
export type NotionDecision = 'copy' | 'tasks' | 'skip' | 'hand';
|
|
898
1068
|
/**
|
|
899
1069
|
* Metadata for one staged Notion page. Deliberately has NO content field:
|
|
900
1070
|
* page bodies are fetched at import time, for accepted pages only.
|
|
901
1071
|
*/
|
|
902
1072
|
export type NotionDocMeta = {
|
|
1073
|
+
plan?: null | NotionPlanItem;
|
|
903
1074
|
/**
|
|
904
1075
|
* One-line summary of what the page contains.
|
|
905
1076
|
*/
|
|
@@ -913,6 +1084,217 @@ export type NotionDocMeta = {
|
|
|
913
1084
|
*/
|
|
914
1085
|
url?: string | null;
|
|
915
1086
|
};
|
|
1087
|
+
/**
|
|
1088
|
+
* Where a Notion workspace import stands.
|
|
1089
|
+
*/
|
|
1090
|
+
export type NotionImportReport = {
|
|
1091
|
+
/**
|
|
1092
|
+
* Who imported the objects already in Macro, most first.
|
|
1093
|
+
*/
|
|
1094
|
+
alreadyImportedBy?: Array<NotionImporter>;
|
|
1095
|
+
/**
|
|
1096
|
+
* Plan objects a teammate already imported and shared with the team;
|
|
1097
|
+
* they link to that copy and are not counted as copies.
|
|
1098
|
+
*/
|
|
1099
|
+
alreadyInMacro?: number;
|
|
1100
|
+
/**
|
|
1101
|
+
* Objects to copy as they are.
|
|
1102
|
+
*/
|
|
1103
|
+
copy: number;
|
|
1104
|
+
/**
|
|
1105
|
+
* Data sources (database tables) in the plan.
|
|
1106
|
+
*/
|
|
1107
|
+
dataSources: number;
|
|
1108
|
+
/**
|
|
1109
|
+
* Rows those databases hold, every one counted while planning.
|
|
1110
|
+
*/
|
|
1111
|
+
databaseRows: number;
|
|
1112
|
+
/**
|
|
1113
|
+
* Data sources written as databases.
|
|
1114
|
+
*/
|
|
1115
|
+
databases: number;
|
|
1116
|
+
/**
|
|
1117
|
+
* Plan objects the decision model has not answered for yet, while
|
|
1118
|
+
* planning is still `running`.
|
|
1119
|
+
*/
|
|
1120
|
+
deciding?: number;
|
|
1121
|
+
/**
|
|
1122
|
+
* Pages written as documents.
|
|
1123
|
+
*/
|
|
1124
|
+
documents: number;
|
|
1125
|
+
/**
|
|
1126
|
+
* Why the run failed, when it did.
|
|
1127
|
+
*/
|
|
1128
|
+
error?: string | null;
|
|
1129
|
+
/**
|
|
1130
|
+
* Objects that failed to import, with the failure.
|
|
1131
|
+
*/
|
|
1132
|
+
failures?: Array<NotionReportItem>;
|
|
1133
|
+
/**
|
|
1134
|
+
* Objects that need handling by hand.
|
|
1135
|
+
*/
|
|
1136
|
+
hand: number;
|
|
1137
|
+
/**
|
|
1138
|
+
* Objects that need handling by hand, with reasons.
|
|
1139
|
+
*/
|
|
1140
|
+
handItems?: Array<NotionReportItem>;
|
|
1141
|
+
/**
|
|
1142
|
+
* Plan objects already imported.
|
|
1143
|
+
*/
|
|
1144
|
+
imported: number;
|
|
1145
|
+
/**
|
|
1146
|
+
* Tracker issues in the plan.
|
|
1147
|
+
*/
|
|
1148
|
+
issues?: number;
|
|
1149
|
+
/**
|
|
1150
|
+
* Whether the user is on a team. Without one, everything the import
|
|
1151
|
+
* writes stays visible only to them.
|
|
1152
|
+
*/
|
|
1153
|
+
onTeam?: boolean;
|
|
1154
|
+
/**
|
|
1155
|
+
* Pages in the plan.
|
|
1156
|
+
*/
|
|
1157
|
+
pages: number;
|
|
1158
|
+
/**
|
|
1159
|
+
* Tracker groups written as Macro projects.
|
|
1160
|
+
*/
|
|
1161
|
+
projects?: number;
|
|
1162
|
+
/**
|
|
1163
|
+
* The review the plan is tied to, once presented.
|
|
1164
|
+
*/
|
|
1165
|
+
reviewId?: string | null;
|
|
1166
|
+
scanned?: null | ScanCounts;
|
|
1167
|
+
/**
|
|
1168
|
+
* Written plan objects shared with the user's team.
|
|
1169
|
+
*/
|
|
1170
|
+
sharedWithTeam?: number;
|
|
1171
|
+
/**
|
|
1172
|
+
* Objects left in Notion.
|
|
1173
|
+
*/
|
|
1174
|
+
skip: number;
|
|
1175
|
+
status?: null | RunStatus;
|
|
1176
|
+
/**
|
|
1177
|
+
* Tasks the task lists become, one per row.
|
|
1178
|
+
*/
|
|
1179
|
+
taskRows: number;
|
|
1180
|
+
/**
|
|
1181
|
+
* Data sources whose rows become tasks.
|
|
1182
|
+
*/
|
|
1183
|
+
tasks: number;
|
|
1184
|
+
/**
|
|
1185
|
+
* Plan objects still waiting to be written.
|
|
1186
|
+
*/
|
|
1187
|
+
waiting: number;
|
|
1188
|
+
/**
|
|
1189
|
+
* Plan objects waiting for a teammate who is writing the same object
|
|
1190
|
+
* for the team; they link to the teammate's copy once it is written.
|
|
1191
|
+
*/
|
|
1192
|
+
waitingOnTeammates?: number;
|
|
1193
|
+
/**
|
|
1194
|
+
* Provider items skipped because they were unreadable, or optional features unavailable.
|
|
1195
|
+
*/
|
|
1196
|
+
warnings?: Array<string>;
|
|
1197
|
+
/**
|
|
1198
|
+
* Plan objects being written now.
|
|
1199
|
+
*/
|
|
1200
|
+
writing: number;
|
|
1201
|
+
};
|
|
1202
|
+
/**
|
|
1203
|
+
* A teammate who already imported some of a plan's objects.
|
|
1204
|
+
*/
|
|
1205
|
+
export type NotionImporter = {
|
|
1206
|
+
/**
|
|
1207
|
+
* The teammate, by email.
|
|
1208
|
+
*/
|
|
1209
|
+
by: string;
|
|
1210
|
+
/**
|
|
1211
|
+
* How many of the plan's objects they imported.
|
|
1212
|
+
*/
|
|
1213
|
+
count: number;
|
|
1214
|
+
};
|
|
1215
|
+
/**
|
|
1216
|
+
* One object's place in a workspace import plan.
|
|
1217
|
+
*/
|
|
1218
|
+
export type NotionPlanItem = {
|
|
1219
|
+
alreadyImported?: null | NotionAlreadyImported;
|
|
1220
|
+
decision?: null | NotionDecision;
|
|
1221
|
+
/**
|
|
1222
|
+
* Titles of the pages above it, outermost first.
|
|
1223
|
+
*/
|
|
1224
|
+
path?: Array<string>;
|
|
1225
|
+
/**
|
|
1226
|
+
* Why, in a short sentence, when the decision model gave one.
|
|
1227
|
+
*/
|
|
1228
|
+
reason?: string | null;
|
|
1229
|
+
/**
|
|
1230
|
+
* For a data source: rows counted while planning.
|
|
1231
|
+
*/
|
|
1232
|
+
rows?: number | null;
|
|
1233
|
+
/**
|
|
1234
|
+
* For a data source: the titles of a few of its rows.
|
|
1235
|
+
*/
|
|
1236
|
+
sampleTitles?: Array<string>;
|
|
1237
|
+
/**
|
|
1238
|
+
* Whether the user may change `shared`: false for users without a team.
|
|
1239
|
+
*/
|
|
1240
|
+
shareable?: boolean;
|
|
1241
|
+
/**
|
|
1242
|
+
* Whether what it becomes is shared with the user's team.
|
|
1243
|
+
*/
|
|
1244
|
+
shared?: boolean;
|
|
1245
|
+
/**
|
|
1246
|
+
* Why it is (or is not) shared, when the decision model chose or the
|
|
1247
|
+
* import could not share it.
|
|
1248
|
+
*/
|
|
1249
|
+
sharedReason?: string | null;
|
|
1250
|
+
taskFields?: null | NotionTaskFields;
|
|
1251
|
+
};
|
|
1252
|
+
/**
|
|
1253
|
+
* One object a workspace import report calls out.
|
|
1254
|
+
*/
|
|
1255
|
+
export type NotionReportItem = {
|
|
1256
|
+
/**
|
|
1257
|
+
* The ledger row.
|
|
1258
|
+
*/
|
|
1259
|
+
importId: string;
|
|
1260
|
+
/**
|
|
1261
|
+
* What the object is.
|
|
1262
|
+
*/
|
|
1263
|
+
kind: ImportKind;
|
|
1264
|
+
/**
|
|
1265
|
+
* Why it is called out: the decision model's reason, or the failure.
|
|
1266
|
+
*/
|
|
1267
|
+
reason?: string | null;
|
|
1268
|
+
/**
|
|
1269
|
+
* The object's title.
|
|
1270
|
+
*/
|
|
1271
|
+
title: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* Its Notion URL.
|
|
1274
|
+
*/
|
|
1275
|
+
url?: string | null;
|
|
1276
|
+
};
|
|
1277
|
+
/**
|
|
1278
|
+
* Which Notion columns hold a task list's task fields, by property name.
|
|
1279
|
+
*/
|
|
1280
|
+
export type NotionTaskFields = {
|
|
1281
|
+
/**
|
|
1282
|
+
* The assignee column.
|
|
1283
|
+
*/
|
|
1284
|
+
assignee?: string | null;
|
|
1285
|
+
/**
|
|
1286
|
+
* The due date column.
|
|
1287
|
+
*/
|
|
1288
|
+
due?: string | null;
|
|
1289
|
+
/**
|
|
1290
|
+
* The priority column.
|
|
1291
|
+
*/
|
|
1292
|
+
priority?: string | null;
|
|
1293
|
+
/**
|
|
1294
|
+
* The status column.
|
|
1295
|
+
*/
|
|
1296
|
+
status?: string | null;
|
|
1297
|
+
};
|
|
916
1298
|
/**
|
|
917
1299
|
* One user's onboarding row.
|
|
918
1300
|
*/
|
|
@@ -982,6 +1364,10 @@ export type PipedreamCatalogEntryResponse = {
|
|
|
982
1364
|
* Pipedream app name slug — pass this to the connect flow.
|
|
983
1365
|
*/
|
|
984
1366
|
app_slug: string;
|
|
1367
|
+
/**
|
|
1368
|
+
* Categories assigned by Pipedream.
|
|
1369
|
+
*/
|
|
1370
|
+
categories?: Array<string>;
|
|
985
1371
|
/**
|
|
986
1372
|
* One-line description of the app.
|
|
987
1373
|
*/
|
|
@@ -1022,6 +1408,19 @@ export type PipedreamCompleteRequest = {
|
|
|
1022
1408
|
*/
|
|
1023
1409
|
server_name?: string | null;
|
|
1024
1410
|
};
|
|
1411
|
+
/**
|
|
1412
|
+
* Request body for recording a finished Macro Connect flow.
|
|
1413
|
+
*/
|
|
1414
|
+
export type PipedreamConnectCompleteRequest = {
|
|
1415
|
+
/**
|
|
1416
|
+
* The app that was connected, by Pipedream slug.
|
|
1417
|
+
*/
|
|
1418
|
+
app_slug: string;
|
|
1419
|
+
/**
|
|
1420
|
+
* Optional display name for the connector, as for completion.
|
|
1421
|
+
*/
|
|
1422
|
+
server_name?: string | null;
|
|
1423
|
+
};
|
|
1025
1424
|
/**
|
|
1026
1425
|
* A connected MCP app as returned by the API.
|
|
1027
1426
|
*/
|
|
@@ -1034,71 +1433,133 @@ export type PipedreamConnectionResponse = {
|
|
|
1034
1433
|
* Whether the connector is enabled for tool use.
|
|
1035
1434
|
*/
|
|
1036
1435
|
enabled: boolean;
|
|
1436
|
+
/**
|
|
1437
|
+
* The backend holding the grant.
|
|
1438
|
+
*/
|
|
1439
|
+
provider: PipedreamProviderResponse;
|
|
1037
1440
|
/**
|
|
1038
1441
|
* Human-readable display name.
|
|
1039
1442
|
*/
|
|
1040
1443
|
server_name: string;
|
|
1041
1444
|
};
|
|
1042
1445
|
/**
|
|
1043
|
-
*
|
|
1446
|
+
* A catalog app that connects through its own MCP server instead of
|
|
1447
|
+
* Pipedream.
|
|
1044
1448
|
*/
|
|
1045
|
-
export type
|
|
1046
|
-
/**
|
|
1047
|
-
* Shareable link that opens the same connect flow in a browser tab.
|
|
1048
|
-
*/
|
|
1049
|
-
connect_link_url: string;
|
|
1449
|
+
export type PipedreamOverlayResponse = {
|
|
1050
1450
|
/**
|
|
1051
|
-
*
|
|
1451
|
+
* Pipedream app name slug, as it appears in the catalog.
|
|
1052
1452
|
*/
|
|
1053
|
-
|
|
1453
|
+
app_slug: string;
|
|
1054
1454
|
/**
|
|
1055
|
-
*
|
|
1455
|
+
* The MCP server to authorize with the native MCP OAuth flow.
|
|
1056
1456
|
*/
|
|
1057
|
-
|
|
1457
|
+
server_url: string;
|
|
1058
1458
|
};
|
|
1059
1459
|
/**
|
|
1060
|
-
*
|
|
1460
|
+
* Which backend a connection or connect flow uses.
|
|
1061
1461
|
*/
|
|
1062
|
-
export type
|
|
1462
|
+
export type PipedreamProviderResponse = 'pipedream' | 'connect';
|
|
1463
|
+
/**
|
|
1464
|
+
* Request body for recovering a connect flow whose result the Connect UI
|
|
1465
|
+
* never reported.
|
|
1466
|
+
*/
|
|
1467
|
+
export type PipedreamRecoverRequest = {
|
|
1063
1468
|
/**
|
|
1064
|
-
* The app
|
|
1469
|
+
* The Pipedream app the flow was connecting, by name slug.
|
|
1065
1470
|
*/
|
|
1066
1471
|
app_slug: string;
|
|
1067
1472
|
/**
|
|
1068
|
-
*
|
|
1069
|
-
*/
|
|
1070
|
-
enabled?: boolean | null;
|
|
1071
|
-
/**
|
|
1072
|
-
* New display name for the connector.
|
|
1473
|
+
* Optional display name for the connector, as for completion.
|
|
1073
1474
|
*/
|
|
1074
1475
|
server_name?: string | null;
|
|
1075
1476
|
};
|
|
1076
1477
|
/**
|
|
1077
|
-
*
|
|
1478
|
+
* Request body for starting a connect flow.
|
|
1078
1479
|
*/
|
|
1079
|
-
export type
|
|
1480
|
+
export type PipedreamTokenRequest = {
|
|
1080
1481
|
/**
|
|
1081
|
-
*
|
|
1482
|
+
* The app to connect, by Pipedream slug. With it, an app Macro Connect
|
|
1483
|
+
* serves can answer with a Connect URL instead of a Pipedream token.
|
|
1082
1484
|
*/
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1485
|
+
app_slug?: string | null;
|
|
1486
|
+
};
|
|
1487
|
+
/**
|
|
1488
|
+
* Response from starting a connect flow: a Pipedream Connect token, or for
|
|
1489
|
+
* `provider = connect` a Macro Connect URL.
|
|
1490
|
+
*/
|
|
1491
|
+
export type PipedreamTokenResponse = {
|
|
1492
|
+
/**
|
|
1493
|
+
* Shareable link that opens the same connect flow in a browser tab.
|
|
1494
|
+
* Pipedream only.
|
|
1495
|
+
*/
|
|
1496
|
+
connect_link_url?: string | null;
|
|
1497
|
+
/**
|
|
1498
|
+
* URL to open in a popup or browser tab for Macro Connect's consent
|
|
1499
|
+
* flow; once it finishes, call `/pipedream/mcp/connect/complete`.
|
|
1500
|
+
* Connect only.
|
|
1501
|
+
*/
|
|
1502
|
+
connect_url?: string | null;
|
|
1503
|
+
/**
|
|
1504
|
+
* RFC 3339 expiry of the token. Pipedream only.
|
|
1505
|
+
*/
|
|
1506
|
+
expires_at?: string | null;
|
|
1507
|
+
/**
|
|
1508
|
+
* The backend this flow connects through.
|
|
1509
|
+
*/
|
|
1510
|
+
provider: PipedreamProviderResponse;
|
|
1511
|
+
/**
|
|
1512
|
+
* Short-lived token to open the Pipedream Connect UI with. Pipedream only.
|
|
1513
|
+
*/
|
|
1514
|
+
token?: string | null;
|
|
1515
|
+
};
|
|
1516
|
+
/**
|
|
1517
|
+
* Request body for updating a connected app.
|
|
1518
|
+
*/
|
|
1519
|
+
export type PipedreamUpdateRequest = {
|
|
1520
|
+
/**
|
|
1521
|
+
* The app slug to update.
|
|
1522
|
+
*/
|
|
1523
|
+
app_slug: string;
|
|
1524
|
+
/**
|
|
1525
|
+
* Enable or disable the connector.
|
|
1526
|
+
*/
|
|
1527
|
+
enabled?: boolean | null;
|
|
1528
|
+
/**
|
|
1529
|
+
* New display name for the connector.
|
|
1530
|
+
*/
|
|
1531
|
+
server_name?: string | null;
|
|
1532
|
+
};
|
|
1533
|
+
/**
|
|
1534
|
+
* Rates applied to an invocation and its resolved dollar cost.
|
|
1535
|
+
*/
|
|
1536
|
+
export type Price = {
|
|
1537
|
+
/**
|
|
1538
|
+
* Price per audio minute (USD), absent for token and credit billing.
|
|
1539
|
+
*/
|
|
1540
|
+
price_per_audio_minute?: number | null;
|
|
1541
|
+
/**
|
|
1542
|
+
* Price per million cache-read input tokens (USD), absent when the model
|
|
1543
|
+
* has no published rate and for audio and credit billing.
|
|
1087
1544
|
*/
|
|
1088
1545
|
price_per_million_cache_read?: number | null;
|
|
1089
1546
|
/**
|
|
1090
1547
|
* Price per million cache-write input tokens (USD), absent when the model
|
|
1091
|
-
* has no published rate and for audio billing.
|
|
1548
|
+
* has no published rate and for audio and credit billing.
|
|
1092
1549
|
*/
|
|
1093
1550
|
price_per_million_cache_write?: number | null;
|
|
1094
1551
|
/**
|
|
1095
|
-
* Price per million input tokens (USD); zero for audio billing.
|
|
1552
|
+
* Price per million input tokens (USD); zero for audio and credit billing.
|
|
1096
1553
|
*/
|
|
1097
1554
|
price_per_million_in: number;
|
|
1098
1555
|
/**
|
|
1099
|
-
* Price per million output tokens (USD); zero for audio billing.
|
|
1556
|
+
* Price per million output tokens (USD); zero for audio and credit billing.
|
|
1100
1557
|
*/
|
|
1101
1558
|
price_per_million_out: number;
|
|
1559
|
+
/**
|
|
1560
|
+
* Price per vendor credit (USD), absent for token and audio billing.
|
|
1561
|
+
*/
|
|
1562
|
+
price_per_provider_credit?: number | null;
|
|
1102
1563
|
/**
|
|
1103
1564
|
* Total cost (USD).
|
|
1104
1565
|
*/
|
|
@@ -1186,9 +1647,22 @@ export type RunImportRequest = {
|
|
|
1186
1647
|
import_ids?: Array<string>;
|
|
1187
1648
|
};
|
|
1188
1649
|
/**
|
|
1189
|
-
* Lifecycle of a
|
|
1650
|
+
* Lifecycle of a discovery run (one per user × source).
|
|
1190
1651
|
*/
|
|
1191
1652
|
export type RunStatus = 'running' | 'ready' | 'importing' | 'completed' | 'failed' | 'dismissed';
|
|
1653
|
+
/**
|
|
1654
|
+
* What a planning run has found in the source so far.
|
|
1655
|
+
*/
|
|
1656
|
+
export type ScanCounts = {
|
|
1657
|
+
/**
|
|
1658
|
+
* Data sources (database tables) found.
|
|
1659
|
+
*/
|
|
1660
|
+
dataSources: number;
|
|
1661
|
+
/**
|
|
1662
|
+
* Pages found.
|
|
1663
|
+
*/
|
|
1664
|
+
pages: number;
|
|
1665
|
+
};
|
|
1192
1666
|
export type SendChatMessagePayload = JwtPayload & {
|
|
1193
1667
|
/**
|
|
1194
1668
|
* Additional system instructions appended to the base system prompt
|
|
@@ -1287,6 +1761,10 @@ export type SetPricingRequest = {
|
|
|
1287
1761
|
* New price per million output tokens (USD). Required for token pricing.
|
|
1288
1762
|
*/
|
|
1289
1763
|
price_per_mil_out?: number | null;
|
|
1764
|
+
/**
|
|
1765
|
+
* Price per vendor credit (USD), or null unless the model bills in credits.
|
|
1766
|
+
*/
|
|
1767
|
+
price_per_provider_credit?: number | null;
|
|
1290
1768
|
};
|
|
1291
1769
|
export type SharePermissionV2 = {
|
|
1292
1770
|
/**
|
|
@@ -1439,6 +1917,11 @@ export type StructuredCompletionRequest = {
|
|
|
1439
1917
|
model: string;
|
|
1440
1918
|
output_schema: DynamicSchema;
|
|
1441
1919
|
prompt: string;
|
|
1920
|
+
/**
|
|
1921
|
+
* How much the model may think first; `low` answers faster. Applies to
|
|
1922
|
+
* completions without tools.
|
|
1923
|
+
*/
|
|
1924
|
+
thinking?: CompletionThinking;
|
|
1442
1925
|
toolset?: ToolSet;
|
|
1443
1926
|
};
|
|
1444
1927
|
export type StructuredCompletionResponse = {
|
|
@@ -1602,15 +2085,15 @@ export type UpsertProjectionRequest = {
|
|
|
1602
2085
|
*/
|
|
1603
2086
|
export type Usage = {
|
|
1604
2087
|
/**
|
|
1605
|
-
* Audio duration in seconds, absent for token billing.
|
|
2088
|
+
* Audio duration in seconds, absent for token and credit billing.
|
|
1606
2089
|
*/
|
|
1607
2090
|
audio_seconds?: number | null;
|
|
1608
2091
|
/**
|
|
1609
|
-
* Input tokens read from a prompt cache; zero for audio billing.
|
|
2092
|
+
* Input tokens read from a prompt cache; zero for audio and credit billing.
|
|
1610
2093
|
*/
|
|
1611
2094
|
cache_read_input_tokens: number;
|
|
1612
2095
|
/**
|
|
1613
|
-
* Input tokens written to a prompt cache; zero for audio billing.
|
|
2096
|
+
* Input tokens written to a prompt cache; zero for audio and credit billing.
|
|
1614
2097
|
*/
|
|
1615
2098
|
cache_write_input_tokens: number;
|
|
1616
2099
|
/**
|
|
@@ -1618,7 +2101,7 @@ export type Usage = {
|
|
|
1618
2101
|
*/
|
|
1619
2102
|
created_at: string;
|
|
1620
2103
|
/**
|
|
1621
|
-
* Uncached input tokens; zero for audio billing.
|
|
2104
|
+
* Uncached input tokens; zero for audio and credit billing.
|
|
1622
2105
|
*/
|
|
1623
2106
|
input_tokens: number;
|
|
1624
2107
|
/**
|
|
@@ -1626,10 +2109,14 @@ export type Usage = {
|
|
|
1626
2109
|
*/
|
|
1627
2110
|
model: string;
|
|
1628
2111
|
/**
|
|
1629
|
-
* Output tokens; zero for audio billing.
|
|
2112
|
+
* Output tokens; zero for audio and credit billing.
|
|
1630
2113
|
*/
|
|
1631
2114
|
output_tokens: number;
|
|
1632
2115
|
price?: null | Price;
|
|
2116
|
+
/**
|
|
2117
|
+
* Vendor credits consumed, absent for token and audio billing.
|
|
2118
|
+
*/
|
|
2119
|
+
provider_credits?: number | null;
|
|
1633
2120
|
};
|
|
1634
2121
|
/**
|
|
1635
2122
|
* Request body for [`get_usage_handler`].
|
|
@@ -1709,6 +2196,121 @@ export type WebCitation = {
|
|
|
1709
2196
|
*/
|
|
1710
2197
|
url: string;
|
|
1711
2198
|
};
|
|
2199
|
+
/**
|
|
2200
|
+
* Machine-readable failure of a web request.
|
|
2201
|
+
*/
|
|
2202
|
+
export type WebErrorBody = {
|
|
2203
|
+
/**
|
|
2204
|
+
* Stable failure code.
|
|
2205
|
+
*/
|
|
2206
|
+
code: string;
|
|
2207
|
+
/**
|
|
2208
|
+
* Explanation without provider diagnostics.
|
|
2209
|
+
*/
|
|
2210
|
+
error: string;
|
|
2211
|
+
};
|
|
2212
|
+
/**
|
|
2213
|
+
* Read one public web page.
|
|
2214
|
+
*/
|
|
2215
|
+
export type WebFetch = {
|
|
2216
|
+
/**
|
|
2217
|
+
* Most characters of page text to return, 1 to 100,000 (default 20,000).
|
|
2218
|
+
*/
|
|
2219
|
+
maxChars?: number | null;
|
|
2220
|
+
/**
|
|
2221
|
+
* The `http` or `https` URL of the page.
|
|
2222
|
+
*/
|
|
2223
|
+
url: string;
|
|
2224
|
+
};
|
|
2225
|
+
/**
|
|
2226
|
+
* The text of a fetched page.
|
|
2227
|
+
*/
|
|
2228
|
+
export type WebFetchResponse = {
|
|
2229
|
+
/**
|
|
2230
|
+
* The page text as Markdown, cut to `maxChars`.
|
|
2231
|
+
*/
|
|
2232
|
+
content: string;
|
|
2233
|
+
/**
|
|
2234
|
+
* The page title, when the provider reports one.
|
|
2235
|
+
*/
|
|
2236
|
+
title?: string | null;
|
|
2237
|
+
/**
|
|
2238
|
+
* Whether `content` was cut to `maxChars`.
|
|
2239
|
+
*/
|
|
2240
|
+
truncated: boolean;
|
|
2241
|
+
/**
|
|
2242
|
+
* The URL that was read.
|
|
2243
|
+
*/
|
|
2244
|
+
url: string;
|
|
2245
|
+
};
|
|
2246
|
+
/**
|
|
2247
|
+
* Search the public web.
|
|
2248
|
+
*/
|
|
2249
|
+
export type WebSearch = {
|
|
2250
|
+
/**
|
|
2251
|
+
* Only return pages from these domains, e.g. `["docs.rs", "github.com"]`.
|
|
2252
|
+
*/
|
|
2253
|
+
domains?: Array<string> | null;
|
|
2254
|
+
/**
|
|
2255
|
+
* Never return pages from these domains.
|
|
2256
|
+
*/
|
|
2257
|
+
excludeDomains?: Array<string> | null;
|
|
2258
|
+
/**
|
|
2259
|
+
* Also return each page's text as Markdown (up to 8,000 characters per result).
|
|
2260
|
+
*/
|
|
2261
|
+
includeContent?: boolean | null;
|
|
2262
|
+
/**
|
|
2263
|
+
* How many results to return, 1 to 20 (default 5).
|
|
2264
|
+
*/
|
|
2265
|
+
maxResults?: number | null;
|
|
2266
|
+
/**
|
|
2267
|
+
* What to search for, in natural language or keywords (at most 400 characters).
|
|
2268
|
+
*/
|
|
2269
|
+
query: string;
|
|
2270
|
+
/**
|
|
2271
|
+
* Only return pages published on or after this date (`YYYY-MM-DD`).
|
|
2272
|
+
*/
|
|
2273
|
+
since?: string | null;
|
|
2274
|
+
topic?: null | WebSearchTopic;
|
|
2275
|
+
};
|
|
2276
|
+
/**
|
|
2277
|
+
* The pages a search found, best match first.
|
|
2278
|
+
*/
|
|
2279
|
+
export type WebSearchResponse = {
|
|
2280
|
+
/**
|
|
2281
|
+
* Results, best match first. Empty when nothing matched.
|
|
2282
|
+
*/
|
|
2283
|
+
results: Array<WebSearchResult>;
|
|
2284
|
+
};
|
|
2285
|
+
/**
|
|
2286
|
+
* One page a search found.
|
|
2287
|
+
*/
|
|
2288
|
+
export type WebSearchResult = {
|
|
2289
|
+
/**
|
|
2290
|
+
* The page text as Markdown, when `includeContent` was set.
|
|
2291
|
+
*/
|
|
2292
|
+
content?: string | null;
|
|
2293
|
+
/**
|
|
2294
|
+
* When the page was published, as the search provider reports it.
|
|
2295
|
+
*/
|
|
2296
|
+
publishedAt?: string | null;
|
|
2297
|
+
/**
|
|
2298
|
+
* The part of the page most relevant to the query.
|
|
2299
|
+
*/
|
|
2300
|
+
snippet: string;
|
|
2301
|
+
/**
|
|
2302
|
+
* The page title.
|
|
2303
|
+
*/
|
|
2304
|
+
title: string;
|
|
2305
|
+
/**
|
|
2306
|
+
* The page URL; cite it when you use the result.
|
|
2307
|
+
*/
|
|
2308
|
+
url: string;
|
|
2309
|
+
};
|
|
2310
|
+
/**
|
|
2311
|
+
* The kind of results a search favours.
|
|
2312
|
+
*/
|
|
2313
|
+
export type WebSearchTopic = 'general' | 'news';
|
|
1712
2314
|
export type WithChatId = {
|
|
1713
2315
|
chat_id: string;
|
|
1714
2316
|
};
|
|
@@ -1804,6 +2406,41 @@ export type GetChatsForAttachmentHandlerResponses = {
|
|
|
1804
2406
|
200: GetChatsForAttachmentResponse;
|
|
1805
2407
|
};
|
|
1806
2408
|
export type GetChatsForAttachmentHandlerResponse = GetChatsForAttachmentHandlerResponses[keyof GetChatsForAttachmentHandlerResponses];
|
|
2409
|
+
export type CreateConfirmedCalendarEventData = {
|
|
2410
|
+
/**
|
|
2411
|
+
* CreateConfirmedCalendarEvent arguments: CreateCalendarEvent's, plus userConfirmation
|
|
2412
|
+
*/
|
|
2413
|
+
body: {
|
|
2414
|
+
[key: string]: unknown;
|
|
2415
|
+
};
|
|
2416
|
+
path?: never;
|
|
2417
|
+
query?: never;
|
|
2418
|
+
url: '/calendar/events/create-confirmed';
|
|
2419
|
+
};
|
|
2420
|
+
export type CreateConfirmedCalendarEventErrors = {
|
|
2421
|
+
/**
|
|
2422
|
+
* Malformed, or missing userConfirmation
|
|
2423
|
+
*/
|
|
2424
|
+
400: GenericErrorResponse;
|
|
2425
|
+
/**
|
|
2426
|
+
* Unauthorized
|
|
2427
|
+
*/
|
|
2428
|
+
401: unknown;
|
|
2429
|
+
/**
|
|
2430
|
+
* Not created: a blank confirmation, a calendar the user cannot write, or a provider failure
|
|
2431
|
+
*/
|
|
2432
|
+
422: GenericErrorResponse;
|
|
2433
|
+
};
|
|
2434
|
+
export type CreateConfirmedCalendarEventError = CreateConfirmedCalendarEventErrors[keyof CreateConfirmedCalendarEventErrors];
|
|
2435
|
+
export type CreateConfirmedCalendarEventResponses = {
|
|
2436
|
+
/**
|
|
2437
|
+
* ToolCalendarEvent
|
|
2438
|
+
*/
|
|
2439
|
+
200: {
|
|
2440
|
+
[key: string]: unknown;
|
|
2441
|
+
};
|
|
2442
|
+
};
|
|
2443
|
+
export type CreateConfirmedCalendarEventResponse = CreateConfirmedCalendarEventResponses[keyof CreateConfirmedCalendarEventResponses];
|
|
1807
2444
|
export type DeleteChatData = {
|
|
1808
2445
|
body?: never;
|
|
1809
2446
|
path: {
|
|
@@ -2138,6 +2775,28 @@ export type GetCitationHandlerResponses = {
|
|
|
2138
2775
|
200: DocumentTextPart;
|
|
2139
2776
|
};
|
|
2140
2777
|
export type GetCitationHandlerResponse = GetCitationHandlerResponses[keyof GetCitationHandlerResponses];
|
|
2778
|
+
export type GenerateDatabaseQueryData = {
|
|
2779
|
+
body: DatabaseQueryRequest;
|
|
2780
|
+
path?: never;
|
|
2781
|
+
query?: never;
|
|
2782
|
+
url: '/database-query';
|
|
2783
|
+
};
|
|
2784
|
+
export type GenerateDatabaseQueryErrors = {
|
|
2785
|
+
/**
|
|
2786
|
+
* Unauthorized
|
|
2787
|
+
*/
|
|
2788
|
+
401: unknown;
|
|
2789
|
+
402: StructuredCompletionError;
|
|
2790
|
+
403: StructuredCompletionError;
|
|
2791
|
+
500: StructuredCompletionError;
|
|
2792
|
+
503: StructuredCompletionError;
|
|
2793
|
+
504: StructuredCompletionError;
|
|
2794
|
+
};
|
|
2795
|
+
export type GenerateDatabaseQueryError = GenerateDatabaseQueryErrors[keyof GenerateDatabaseQueryErrors];
|
|
2796
|
+
export type GenerateDatabaseQueryResponses = {
|
|
2797
|
+
200: DatabaseQueryAnswer;
|
|
2798
|
+
};
|
|
2799
|
+
export type GenerateDatabaseQueryResponse = GenerateDatabaseQueryResponses[keyof GenerateDatabaseQueryResponses];
|
|
2141
2800
|
export type DecisionsData = {
|
|
2142
2801
|
body: DecisionRequest;
|
|
2143
2802
|
path?: never;
|
|
@@ -2186,6 +2845,41 @@ export type DecisionsResponses = {
|
|
|
2186
2845
|
200: DecisionResponse;
|
|
2187
2846
|
};
|
|
2188
2847
|
export type DecisionsResponse = DecisionsResponses[keyof DecisionsResponses];
|
|
2848
|
+
export type SendConfirmedEmailData = {
|
|
2849
|
+
/**
|
|
2850
|
+
* SendConfirmedEmail arguments: SendEmail's, plus userConfirmation
|
|
2851
|
+
*/
|
|
2852
|
+
body: {
|
|
2853
|
+
[key: string]: unknown;
|
|
2854
|
+
};
|
|
2855
|
+
path?: never;
|
|
2856
|
+
query?: never;
|
|
2857
|
+
url: '/email/send-confirmed';
|
|
2858
|
+
};
|
|
2859
|
+
export type SendConfirmedEmailErrors = {
|
|
2860
|
+
/**
|
|
2861
|
+
* Malformed, or missing userConfirmation
|
|
2862
|
+
*/
|
|
2863
|
+
400: GenericErrorResponse;
|
|
2864
|
+
/**
|
|
2865
|
+
* Unauthorized
|
|
2866
|
+
*/
|
|
2867
|
+
401: unknown;
|
|
2868
|
+
/**
|
|
2869
|
+
* Not sent: a blank confirmation, an inbox or attachment the user cannot use, or a delivery failure
|
|
2870
|
+
*/
|
|
2871
|
+
422: GenericErrorResponse;
|
|
2872
|
+
};
|
|
2873
|
+
export type SendConfirmedEmailError = SendConfirmedEmailErrors[keyof SendConfirmedEmailErrors];
|
|
2874
|
+
export type SendConfirmedEmailResponses = {
|
|
2875
|
+
/**
|
|
2876
|
+
* SendEmailResponse
|
|
2877
|
+
*/
|
|
2878
|
+
200: {
|
|
2879
|
+
[key: string]: unknown;
|
|
2880
|
+
};
|
|
2881
|
+
};
|
|
2882
|
+
export type SendConfirmedEmailResponse = SendConfirmedEmailResponses[keyof SendConfirmedEmailResponses];
|
|
2189
2883
|
export type HealthHandlerData = {
|
|
2190
2884
|
body?: never;
|
|
2191
2885
|
path?: never;
|
|
@@ -2199,82 +2893,109 @@ export type HealthHandlerResponses = {
|
|
|
2199
2893
|
200: string;
|
|
2200
2894
|
};
|
|
2201
2895
|
export type HealthHandlerResponse = HealthHandlerResponses[keyof HealthHandlerResponses];
|
|
2202
|
-
export type
|
|
2203
|
-
body:
|
|
2896
|
+
export type GenerateImageData = {
|
|
2897
|
+
body: GenerateImageRequest;
|
|
2204
2898
|
path?: never;
|
|
2205
2899
|
query?: never;
|
|
2206
|
-
url: '/
|
|
2900
|
+
url: '/images/generate';
|
|
2207
2901
|
};
|
|
2208
|
-
export type
|
|
2902
|
+
export type GenerateImageErrors = {
|
|
2209
2903
|
/**
|
|
2210
|
-
*
|
|
2904
|
+
* Invalid prompt or reference
|
|
2211
2905
|
*/
|
|
2212
|
-
|
|
2906
|
+
400: GenerateImageErrorBody;
|
|
2907
|
+
/**
|
|
2908
|
+
* Unauthorized
|
|
2909
|
+
*/
|
|
2910
|
+
401: unknown;
|
|
2911
|
+
/**
|
|
2912
|
+
* AI allowance exhausted
|
|
2913
|
+
*/
|
|
2914
|
+
402: GenerateImageErrorBody;
|
|
2915
|
+
/**
|
|
2916
|
+
* A reference is not accessible, or no user to bill
|
|
2917
|
+
*/
|
|
2918
|
+
403: GenerateImageErrorBody;
|
|
2919
|
+
/**
|
|
2920
|
+
* The model declined to render the prompt
|
|
2921
|
+
*/
|
|
2922
|
+
422: GenerateImageErrorBody;
|
|
2923
|
+
/**
|
|
2924
|
+
* The image could not be read or stored
|
|
2925
|
+
*/
|
|
2926
|
+
500: GenerateImageErrorBody;
|
|
2927
|
+
/**
|
|
2928
|
+
* The image model request failed
|
|
2929
|
+
*/
|
|
2930
|
+
502: GenerateImageErrorBody;
|
|
2931
|
+
/**
|
|
2932
|
+
* Image generation or usage validation unavailable
|
|
2933
|
+
*/
|
|
2934
|
+
503: GenerateImageErrorBody;
|
|
2213
2935
|
};
|
|
2214
|
-
export type
|
|
2936
|
+
export type GenerateImageError = GenerateImageErrors[keyof GenerateImageErrors];
|
|
2937
|
+
export type GenerateImageResponses = {
|
|
2215
2938
|
/**
|
|
2216
|
-
*
|
|
2939
|
+
* The stored image
|
|
2217
2940
|
*/
|
|
2218
|
-
200:
|
|
2941
|
+
200: GenerateImageResponse;
|
|
2219
2942
|
};
|
|
2220
|
-
export type
|
|
2221
|
-
export type
|
|
2943
|
+
export type GenerateImageResponse2 = GenerateImageResponses[keyof GenerateImageResponses];
|
|
2944
|
+
export type NotionReportHandlerData = {
|
|
2222
2945
|
body?: never;
|
|
2223
|
-
path
|
|
2224
|
-
/**
|
|
2225
|
-
* Import source
|
|
2226
|
-
*/
|
|
2227
|
-
source: string;
|
|
2228
|
-
};
|
|
2946
|
+
path?: never;
|
|
2229
2947
|
query?: never;
|
|
2230
|
-
url: '/import/
|
|
2948
|
+
url: '/import/notion';
|
|
2231
2949
|
};
|
|
2232
|
-
export type
|
|
2950
|
+
export type NotionReportHandlerErrors = {
|
|
2233
2951
|
/**
|
|
2234
|
-
*
|
|
2952
|
+
* Internal server error
|
|
2235
2953
|
*/
|
|
2236
|
-
|
|
2954
|
+
500: unknown;
|
|
2955
|
+
};
|
|
2956
|
+
export type NotionReportHandlerResponses = {
|
|
2957
|
+
200: NotionImportReport;
|
|
2958
|
+
};
|
|
2959
|
+
export type NotionReportHandlerResponse = NotionReportHandlerResponses[keyof NotionReportHandlerResponses];
|
|
2960
|
+
export type CancelNotionHandlerData = {
|
|
2961
|
+
body?: never;
|
|
2962
|
+
path?: never;
|
|
2963
|
+
query?: never;
|
|
2964
|
+
url: '/import/notion/cancel';
|
|
2965
|
+
};
|
|
2966
|
+
export type CancelNotionHandlerErrors = {
|
|
2237
2967
|
/**
|
|
2238
2968
|
* Internal server error
|
|
2239
2969
|
*/
|
|
2240
2970
|
500: unknown;
|
|
2241
2971
|
};
|
|
2242
|
-
export type
|
|
2972
|
+
export type CancelNotionHandlerResponses = {
|
|
2243
2973
|
/**
|
|
2244
|
-
*
|
|
2974
|
+
* Where the import stands after cancelling
|
|
2245
2975
|
*/
|
|
2246
|
-
|
|
2976
|
+
200: NotionImportReport;
|
|
2247
2977
|
};
|
|
2248
|
-
export type
|
|
2249
|
-
export type
|
|
2250
|
-
body
|
|
2251
|
-
path
|
|
2252
|
-
/**
|
|
2253
|
-
* Import source
|
|
2254
|
-
*/
|
|
2255
|
-
source: string;
|
|
2256
|
-
};
|
|
2978
|
+
export type CancelNotionHandlerResponse = CancelNotionHandlerResponses[keyof CancelNotionHandlerResponses];
|
|
2979
|
+
export type RunImportHandlerData = {
|
|
2980
|
+
body: RunImportRequest;
|
|
2981
|
+
path?: never;
|
|
2257
2982
|
query?: never;
|
|
2258
|
-
url: '/import/
|
|
2983
|
+
url: '/import/run';
|
|
2259
2984
|
};
|
|
2260
|
-
export type
|
|
2261
|
-
/**
|
|
2262
|
-
* Unknown import source
|
|
2263
|
-
*/
|
|
2264
|
-
400: unknown;
|
|
2985
|
+
export type RunImportHandlerErrors = {
|
|
2265
2986
|
/**
|
|
2266
2987
|
* Internal server error
|
|
2267
2988
|
*/
|
|
2268
2989
|
500: unknown;
|
|
2269
2990
|
};
|
|
2270
|
-
export type
|
|
2991
|
+
export type RunImportHandlerResponses = {
|
|
2271
2992
|
/**
|
|
2272
|
-
*
|
|
2993
|
+
* Import run outcome
|
|
2273
2994
|
*/
|
|
2274
|
-
|
|
2995
|
+
200: RunImportOutcome;
|
|
2275
2996
|
};
|
|
2276
|
-
export type
|
|
2277
|
-
export type
|
|
2997
|
+
export type RunImportHandlerResponse = RunImportHandlerResponses[keyof RunImportHandlerResponses];
|
|
2998
|
+
export type DiscoverHandlerData = {
|
|
2278
2999
|
body?: never;
|
|
2279
3000
|
path: {
|
|
2280
3001
|
/**
|
|
@@ -2283,34 +3004,25 @@ export type RetryGatherHandlerData = {
|
|
|
2283
3004
|
source: string;
|
|
2284
3005
|
};
|
|
2285
3006
|
query?: never;
|
|
2286
|
-
url: '/import/runs/{source}/
|
|
3007
|
+
url: '/import/runs/{source}/discover';
|
|
2287
3008
|
};
|
|
2288
|
-
export type
|
|
3009
|
+
export type DiscoverHandlerErrors = {
|
|
2289
3010
|
/**
|
|
2290
|
-
* Unknown import source
|
|
3011
|
+
* Unknown import source or discovery not supported
|
|
2291
3012
|
*/
|
|
2292
3013
|
400: unknown;
|
|
2293
|
-
/**
|
|
2294
|
-
* AI allowance exhausted
|
|
2295
|
-
*/
|
|
2296
|
-
402: AiAdmissionErrorBody;
|
|
2297
3014
|
/**
|
|
2298
3015
|
* Internal server error
|
|
2299
3016
|
*/
|
|
2300
3017
|
500: unknown;
|
|
2301
|
-
/**
|
|
2302
|
-
* AI usage validation unavailable; retry later
|
|
2303
|
-
*/
|
|
2304
|
-
503: AiAdmissionErrorBody;
|
|
2305
3018
|
};
|
|
2306
|
-
export type
|
|
2307
|
-
export type RetryGatherHandlerResponses = {
|
|
3019
|
+
export type DiscoverHandlerResponses = {
|
|
2308
3020
|
/**
|
|
2309
|
-
*
|
|
3021
|
+
* Discovery accepted (idempotent)
|
|
2310
3022
|
*/
|
|
2311
3023
|
204: void;
|
|
2312
3024
|
};
|
|
2313
|
-
export type
|
|
3025
|
+
export type DiscoverHandlerResponse = DiscoverHandlerResponses[keyof DiscoverHandlerResponses];
|
|
2314
3026
|
export type GetStateHandlerData = {
|
|
2315
3027
|
body?: never;
|
|
2316
3028
|
path?: never;
|
|
@@ -2330,6 +3042,30 @@ export type GetStateHandlerResponses = {
|
|
|
2330
3042
|
200: ImportState;
|
|
2331
3043
|
};
|
|
2332
3044
|
export type GetStateHandlerResponse = GetStateHandlerResponses[keyof GetStateHandlerResponses];
|
|
3045
|
+
export type WorkspaceReportHandlerData = {
|
|
3046
|
+
body?: never;
|
|
3047
|
+
path: {
|
|
3048
|
+
source: ImportSource;
|
|
3049
|
+
};
|
|
3050
|
+
query?: never;
|
|
3051
|
+
url: '/import/workspaces/{source}';
|
|
3052
|
+
};
|
|
3053
|
+
export type WorkspaceReportHandlerResponses = {
|
|
3054
|
+
200: NotionImportReport;
|
|
3055
|
+
};
|
|
3056
|
+
export type WorkspaceReportHandlerResponse = WorkspaceReportHandlerResponses[keyof WorkspaceReportHandlerResponses];
|
|
3057
|
+
export type CancelWorkspaceHandlerData = {
|
|
3058
|
+
body?: never;
|
|
3059
|
+
path: {
|
|
3060
|
+
source: ImportSource;
|
|
3061
|
+
};
|
|
3062
|
+
query?: never;
|
|
3063
|
+
url: '/import/workspaces/{source}/cancel';
|
|
3064
|
+
};
|
|
3065
|
+
export type CancelWorkspaceHandlerResponses = {
|
|
3066
|
+
200: NotionImportReport;
|
|
3067
|
+
};
|
|
3068
|
+
export type CancelWorkspaceHandlerResponse = CancelWorkspaceHandlerResponses[keyof CancelWorkspaceHandlerResponses];
|
|
2333
3069
|
export type DeleteMcpServerData = {
|
|
2334
3070
|
body?: never;
|
|
2335
3071
|
path?: never;
|
|
@@ -2372,6 +3108,7 @@ export type AddMcpServerData = {
|
|
|
2372
3108
|
url: '/mcp/servers';
|
|
2373
3109
|
};
|
|
2374
3110
|
export type AddMcpServerErrors = {
|
|
3111
|
+
400: ErrorResponse;
|
|
2375
3112
|
401: string;
|
|
2376
3113
|
500: ErrorResponse;
|
|
2377
3114
|
};
|
|
@@ -2468,7 +3205,7 @@ export type GetMemoryHandlerData = {
|
|
|
2468
3205
|
};
|
|
2469
3206
|
export type GetMemoryHandlerErrors = {
|
|
2470
3207
|
/**
|
|
2471
|
-
* No memory exists for this user yet
|
|
3208
|
+
* No composed memory exists for this user yet
|
|
2472
3209
|
*/
|
|
2473
3210
|
404: unknown;
|
|
2474
3211
|
/**
|
|
@@ -2522,6 +3259,53 @@ export type CompleteHandlerResponses = {
|
|
|
2522
3259
|
200: OnboardingRow;
|
|
2523
3260
|
};
|
|
2524
3261
|
export type CompleteHandlerResponse = CompleteHandlerResponses[keyof CompleteHandlerResponses];
|
|
3262
|
+
export type DismissedPromptsHandlerData = {
|
|
3263
|
+
body?: never;
|
|
3264
|
+
path?: never;
|
|
3265
|
+
query?: never;
|
|
3266
|
+
url: '/onboarding/prompts';
|
|
3267
|
+
};
|
|
3268
|
+
export type DismissedPromptsHandlerErrors = {
|
|
3269
|
+
/**
|
|
3270
|
+
* Internal server error
|
|
3271
|
+
*/
|
|
3272
|
+
500: unknown;
|
|
3273
|
+
};
|
|
3274
|
+
export type DismissedPromptsHandlerResponses = {
|
|
3275
|
+
/**
|
|
3276
|
+
* Dismissed prompt ids
|
|
3277
|
+
*/
|
|
3278
|
+
200: DismissedPrompts;
|
|
3279
|
+
};
|
|
3280
|
+
export type DismissedPromptsHandlerResponse = DismissedPromptsHandlerResponses[keyof DismissedPromptsHandlerResponses];
|
|
3281
|
+
export type DismissPromptHandlerData = {
|
|
3282
|
+
body?: never;
|
|
3283
|
+
path: {
|
|
3284
|
+
/**
|
|
3285
|
+
* Prompt id, e.g. `import:files`
|
|
3286
|
+
*/
|
|
3287
|
+
prompt_id: string;
|
|
3288
|
+
};
|
|
3289
|
+
query?: never;
|
|
3290
|
+
url: '/onboarding/prompts/{prompt_id}/dismiss';
|
|
3291
|
+
};
|
|
3292
|
+
export type DismissPromptHandlerErrors = {
|
|
3293
|
+
/**
|
|
3294
|
+
* Malformed prompt id
|
|
3295
|
+
*/
|
|
3296
|
+
400: unknown;
|
|
3297
|
+
/**
|
|
3298
|
+
* Internal server error
|
|
3299
|
+
*/
|
|
3300
|
+
500: unknown;
|
|
3301
|
+
};
|
|
3302
|
+
export type DismissPromptHandlerResponses = {
|
|
3303
|
+
/**
|
|
3304
|
+
* Dismissed
|
|
3305
|
+
*/
|
|
3306
|
+
204: void;
|
|
3307
|
+
};
|
|
3308
|
+
export type DismissPromptHandlerResponse = DismissPromptHandlerResponses[keyof DismissPromptHandlerResponses];
|
|
2525
3309
|
export type BrowsePipedreamMcpCatalogData = {
|
|
2526
3310
|
body?: never;
|
|
2527
3311
|
path?: never;
|
|
@@ -2560,6 +3344,7 @@ export type CompletePipedreamMcpConnectionData = {
|
|
|
2560
3344
|
export type CompletePipedreamMcpConnectionErrors = {
|
|
2561
3345
|
401: string;
|
|
2562
3346
|
404: ErrorResponse;
|
|
3347
|
+
409: ErrorResponse;
|
|
2563
3348
|
500: ErrorResponse;
|
|
2564
3349
|
501: ErrorResponse;
|
|
2565
3350
|
};
|
|
@@ -2568,6 +3353,23 @@ export type CompletePipedreamMcpConnectionResponses = {
|
|
|
2568
3353
|
200: PipedreamConnectionResponse;
|
|
2569
3354
|
};
|
|
2570
3355
|
export type CompletePipedreamMcpConnectionResponse = CompletePipedreamMcpConnectionResponses[keyof CompletePipedreamMcpConnectionResponses];
|
|
3356
|
+
export type CompletePipedreamMcpConnectData = {
|
|
3357
|
+
body: PipedreamConnectCompleteRequest;
|
|
3358
|
+
path?: never;
|
|
3359
|
+
query?: never;
|
|
3360
|
+
url: '/pipedream/mcp/connect/complete';
|
|
3361
|
+
};
|
|
3362
|
+
export type CompletePipedreamMcpConnectErrors = {
|
|
3363
|
+
401: string;
|
|
3364
|
+
404: ErrorResponse;
|
|
3365
|
+
500: ErrorResponse;
|
|
3366
|
+
501: ErrorResponse;
|
|
3367
|
+
};
|
|
3368
|
+
export type CompletePipedreamMcpConnectError = CompletePipedreamMcpConnectErrors[keyof CompletePipedreamMcpConnectErrors];
|
|
3369
|
+
export type CompletePipedreamMcpConnectResponses = {
|
|
3370
|
+
200: PipedreamConnectionResponse;
|
|
3371
|
+
};
|
|
3372
|
+
export type CompletePipedreamMcpConnectResponse = CompletePipedreamMcpConnectResponses[keyof CompletePipedreamMcpConnectResponses];
|
|
2571
3373
|
export type DeletePipedreamMcpConnectionData = {
|
|
2572
3374
|
body?: never;
|
|
2573
3375
|
path?: never;
|
|
@@ -2619,10 +3421,43 @@ export type UpdatePipedreamMcpConnectionResponses = {
|
|
|
2619
3421
|
200: PipedreamConnectionResponse;
|
|
2620
3422
|
};
|
|
2621
3423
|
export type UpdatePipedreamMcpConnectionResponse = UpdatePipedreamMcpConnectionResponses[keyof UpdatePipedreamMcpConnectionResponses];
|
|
2622
|
-
export type
|
|
3424
|
+
export type ListPipedreamMcpOverlaysData = {
|
|
2623
3425
|
body?: never;
|
|
2624
3426
|
path?: never;
|
|
2625
3427
|
query?: never;
|
|
3428
|
+
url: '/pipedream/mcp/overlays';
|
|
3429
|
+
};
|
|
3430
|
+
export type ListPipedreamMcpOverlaysErrors = {
|
|
3431
|
+
401: string;
|
|
3432
|
+
500: ErrorResponse;
|
|
3433
|
+
};
|
|
3434
|
+
export type ListPipedreamMcpOverlaysError = ListPipedreamMcpOverlaysErrors[keyof ListPipedreamMcpOverlaysErrors];
|
|
3435
|
+
export type ListPipedreamMcpOverlaysResponses = {
|
|
3436
|
+
200: Array<PipedreamOverlayResponse>;
|
|
3437
|
+
};
|
|
3438
|
+
export type ListPipedreamMcpOverlaysResponse = ListPipedreamMcpOverlaysResponses[keyof ListPipedreamMcpOverlaysResponses];
|
|
3439
|
+
export type RecoverPipedreamMcpConnectionData = {
|
|
3440
|
+
body: PipedreamRecoverRequest;
|
|
3441
|
+
path?: never;
|
|
3442
|
+
query?: never;
|
|
3443
|
+
url: '/pipedream/mcp/recover';
|
|
3444
|
+
};
|
|
3445
|
+
export type RecoverPipedreamMcpConnectionErrors = {
|
|
3446
|
+
401: string;
|
|
3447
|
+
404: ErrorResponse;
|
|
3448
|
+
409: ErrorResponse;
|
|
3449
|
+
500: ErrorResponse;
|
|
3450
|
+
501: ErrorResponse;
|
|
3451
|
+
};
|
|
3452
|
+
export type RecoverPipedreamMcpConnectionError = RecoverPipedreamMcpConnectionErrors[keyof RecoverPipedreamMcpConnectionErrors];
|
|
3453
|
+
export type RecoverPipedreamMcpConnectionResponses = {
|
|
3454
|
+
200: PipedreamConnectionResponse;
|
|
3455
|
+
};
|
|
3456
|
+
export type RecoverPipedreamMcpConnectionResponse = RecoverPipedreamMcpConnectionResponses[keyof RecoverPipedreamMcpConnectionResponses];
|
|
3457
|
+
export type CreatePipedreamMcpTokenData = {
|
|
3458
|
+
body?: null | PipedreamTokenRequest;
|
|
3459
|
+
path?: never;
|
|
3460
|
+
query?: never;
|
|
2626
3461
|
url: '/pipedream/mcp/token';
|
|
2627
3462
|
};
|
|
2628
3463
|
export type CreatePipedreamMcpTokenErrors = {
|
|
@@ -2750,3 +3585,87 @@ export type StructuredCompletionResponses = {
|
|
|
2750
3585
|
200: StructuredCompletionResponse;
|
|
2751
3586
|
};
|
|
2752
3587
|
export type StructuredCompletionResponse2 = StructuredCompletionResponses[keyof StructuredCompletionResponses];
|
|
3588
|
+
export type FetchWebPageData = {
|
|
3589
|
+
body: WebFetch;
|
|
3590
|
+
path?: never;
|
|
3591
|
+
query?: never;
|
|
3592
|
+
url: '/web/fetch';
|
|
3593
|
+
};
|
|
3594
|
+
export type FetchWebPageErrors = {
|
|
3595
|
+
/**
|
|
3596
|
+
* Invalid URL or length
|
|
3597
|
+
*/
|
|
3598
|
+
400: WebErrorBody;
|
|
3599
|
+
/**
|
|
3600
|
+
* Unauthorized
|
|
3601
|
+
*/
|
|
3602
|
+
401: unknown;
|
|
3603
|
+
/**
|
|
3604
|
+
* AI allowance exhausted
|
|
3605
|
+
*/
|
|
3606
|
+
402: WebErrorBody;
|
|
3607
|
+
/**
|
|
3608
|
+
* The page could not be read
|
|
3609
|
+
*/
|
|
3610
|
+
422: WebErrorBody;
|
|
3611
|
+
/**
|
|
3612
|
+
* Per-user hourly rate limit exceeded
|
|
3613
|
+
*/
|
|
3614
|
+
429: unknown;
|
|
3615
|
+
/**
|
|
3616
|
+
* The fetch provider failed
|
|
3617
|
+
*/
|
|
3618
|
+
502: WebErrorBody;
|
|
3619
|
+
/**
|
|
3620
|
+
* Web fetch unconfigured, busy, or usage validation unavailable
|
|
3621
|
+
*/
|
|
3622
|
+
503: WebErrorBody;
|
|
3623
|
+
};
|
|
3624
|
+
export type FetchWebPageError = FetchWebPageErrors[keyof FetchWebPageErrors];
|
|
3625
|
+
export type FetchWebPageResponses = {
|
|
3626
|
+
/**
|
|
3627
|
+
* The page text
|
|
3628
|
+
*/
|
|
3629
|
+
200: WebFetchResponse;
|
|
3630
|
+
};
|
|
3631
|
+
export type FetchWebPageResponse = FetchWebPageResponses[keyof FetchWebPageResponses];
|
|
3632
|
+
export type SearchWebData = {
|
|
3633
|
+
body: WebSearch;
|
|
3634
|
+
path?: never;
|
|
3635
|
+
query?: never;
|
|
3636
|
+
url: '/web/search';
|
|
3637
|
+
};
|
|
3638
|
+
export type SearchWebErrors = {
|
|
3639
|
+
/**
|
|
3640
|
+
* Invalid query or filters
|
|
3641
|
+
*/
|
|
3642
|
+
400: WebErrorBody;
|
|
3643
|
+
/**
|
|
3644
|
+
* Unauthorized
|
|
3645
|
+
*/
|
|
3646
|
+
401: unknown;
|
|
3647
|
+
/**
|
|
3648
|
+
* AI allowance exhausted
|
|
3649
|
+
*/
|
|
3650
|
+
402: WebErrorBody;
|
|
3651
|
+
/**
|
|
3652
|
+
* Per-user hourly rate limit exceeded
|
|
3653
|
+
*/
|
|
3654
|
+
429: unknown;
|
|
3655
|
+
/**
|
|
3656
|
+
* The search provider failed
|
|
3657
|
+
*/
|
|
3658
|
+
502: WebErrorBody;
|
|
3659
|
+
/**
|
|
3660
|
+
* Web search unconfigured, busy, or usage validation unavailable
|
|
3661
|
+
*/
|
|
3662
|
+
503: WebErrorBody;
|
|
3663
|
+
};
|
|
3664
|
+
export type SearchWebError = SearchWebErrors[keyof SearchWebErrors];
|
|
3665
|
+
export type SearchWebResponses = {
|
|
3666
|
+
/**
|
|
3667
|
+
* Results, best match first
|
|
3668
|
+
*/
|
|
3669
|
+
200: WebSearchResponse;
|
|
3670
|
+
};
|
|
3671
|
+
export type SearchWebResponse = SearchWebResponses[keyof SearchWebResponses];
|