@macro-inc/sdk 0.0.1 → 0.2.2
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 +628 -21
- package/dist/{chunk-5HAKQN23.js → chunk-7LVVPVNT.js} +70 -57
- package/dist/{chunk-JXIQT5TH.js → chunk-7YJ6Y7HJ.js} +234 -16
- package/dist/chunk-LMJW65ML.js +836 -0
- package/dist/{chunk-SGAHIERJ.js → chunk-OGE7WXJE.js} +16 -0
- package/dist/chunk-PRUFPW3B.js +943 -0
- package/dist/{chunk-CTKR64MY.js → chunk-QVBNNMQS.js} +242 -367
- package/dist/{chunk-QNUS5BC5.js → chunk-SUINKDXF.js} +30 -84
- package/dist/{chunk-77EI4LSQ.js → chunk-ZQXOHNDB.js} +1518 -386
- 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 +174 -4
- package/dist/generated/agent-harness/types.gen.d.ts +2511 -189
- 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 +106 -8
- package/dist/generated/auth/types.gen.d.ts +1473 -116
- package/dist/generated/calendar/client/client.gen.d.ts +2 -0
- package/dist/generated/calendar/client/index.d.ts +10 -0
- package/dist/generated/calendar/client/types.gen.d.ts +120 -0
- package/dist/generated/calendar/client/utils.gen.d.ts +37 -0
- package/dist/generated/calendar/client.gen.d.ts +12 -0
- package/dist/generated/calendar/core/auth.gen.d.ts +25 -0
- package/dist/generated/calendar/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/calendar/core/params.gen.d.ts +43 -0
- package/dist/generated/calendar/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/calendar/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/calendar/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/calendar/core/types.gen.d.ts +83 -0
- package/dist/generated/calendar/core/utils.gen.d.ts +19 -0
- package/dist/generated/calendar/index.d.ts +2 -0
- package/dist/generated/calendar/index.js +6 -0
- package/dist/generated/calendar/sdk.gen.d.ts +95 -0
- package/dist/generated/calendar/types.gen.d.ts +1091 -0
- 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 +6 -1
- package/dist/generated/cognition/types.gen.d.ts +304 -36
- package/dist/generated/connection/types.gen.d.ts +1 -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 +32 -27
- package/dist/generated/email/types.gen.d.ts +586 -409
- package/dist/generated/notification/index.d.ts +1 -1
- package/dist/generated/notification/types.gen.d.ts +384 -19
- package/dist/generated/properties/types.gen.d.ts +8 -5
- package/dist/generated/scheduled-action/index.d.ts +1 -1
- package/dist/generated/scheduled-action/index.js +3 -842
- package/dist/generated/scheduled-action/sdk.gen.d.ts +3 -1
- package/dist/generated/scheduled-action/types.gen.d.ts +277 -41
- package/dist/generated/search/index.d.ts +1 -1
- package/dist/generated/search/types.gen.d.ts +262 -43
- 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 +678 -107
- package/dist/generated/storage/types.gen.d.ts +14827 -5995
- package/dist/generated/unfurl/index.d.ts +1 -1
- package/dist/generated/unfurl/index.js +3 -832
- package/dist/generated/unfurl/types.gen.d.ts +20 -0
- package/dist/src/config.d.ts +33 -13
- package/dist/src/entities/agent-sessions/agent-session.d.ts +150 -6
- package/dist/src/entities/agent-sessions/code-execution.d.ts +43 -0
- package/dist/src/entities/agent-sessions/conversation.d.ts +54 -0
- package/dist/src/entities/agent-sessions/namespace.d.ts +23 -5
- package/dist/src/entities/agent-sessions/queued-action.d.ts +46 -0
- package/dist/src/entities/agent-sessions/review.d.ts +107 -0
- package/dist/src/entities/agent-sessions/tool-approval.d.ts +21 -0
- package/dist/src/entities/agents/agent.d.ts +47 -0
- package/dist/src/entities/agents/namespace.d.ts +13 -0
- package/dist/src/entities/ai/namespace.d.ts +24 -0
- package/dist/src/entities/api-keys/api-key.d.ts +17 -0
- package/dist/src/entities/api-keys/namespace.d.ts +18 -0
- package/dist/src/entities/calendar/calendar.d.ts +35 -0
- package/dist/src/entities/calendar/event.d.ts +123 -0
- package/dist/src/entities/calendar/event.test.d.ts +1 -0
- package/dist/src/entities/calendar/namespace.d.ts +111 -0
- package/dist/src/entities/calendar/replacement.d.ts +15 -0
- package/dist/src/entities/calls/call-record.d.ts +62 -6
- package/dist/src/entities/calls/message.d.ts +33 -0
- package/dist/src/entities/channels/activity.d.ts +24 -0
- package/dist/src/entities/channels/channel.d.ts +44 -3
- package/dist/src/entities/channels/labels.d.ts +39 -0
- package/dist/src/entities/channels/message.d.ts +9 -17
- package/dist/src/entities/channels/namespace.d.ts +6 -0
- package/dist/src/entities/channels/picture.d.ts +11 -0
- package/dist/src/entities/channels/post.d.ts +1 -1
- package/dist/src/entities/channels/thread.d.ts +5 -0
- package/dist/src/entities/chats/chat.d.ts +11 -1
- package/dist/src/entities/chats/generation.d.ts +46 -0
- package/dist/src/entities/crm/comment.d.ts +55 -34
- package/dist/src/entities/crm/company.d.ts +42 -10
- package/dist/src/entities/crm/contact.d.ts +42 -10
- package/dist/src/entities/crm/namespace.d.ts +18 -1
- package/dist/src/entities/crm/pipeline.d.ts +122 -0
- package/dist/src/entities/crm/pipelines.d.ts +14 -0
- package/dist/src/entities/databases/column.d.ts +75 -0
- package/dist/src/entities/databases/database.d.ts +272 -0
- package/dist/src/entities/databases/namespace.d.ts +21 -0
- package/dist/src/entities/databases/query.d.ts +86 -0
- package/dist/src/entities/databases/row.d.ts +27 -0
- package/dist/src/entities/databases/table.d.ts +61 -0
- package/dist/src/entities/databases/view.d.ts +40 -0
- package/dist/src/entities/databases/webhook.d.ts +32 -0
- package/dist/src/entities/documents/anchor.d.ts +29 -0
- package/dist/src/entities/documents/comment.d.ts +25 -22
- package/dist/src/entities/documents/document.d.ts +60 -12
- package/dist/src/entities/documents/namespace.d.ts +30 -0
- package/dist/src/entities/documents/version.d.ts +22 -0
- package/dist/src/entities/email/draft.d.ts +79 -0
- package/dist/src/entities/email/filter.d.ts +34 -0
- package/dist/src/entities/email/link.d.ts +6 -4
- package/dist/src/entities/email/message.d.ts +12 -1
- package/dist/src/entities/email/namespace.d.ts +34 -1
- package/dist/src/entities/email/thread.d.ts +23 -1
- package/dist/src/entities/entity-mentions/mention.d.ts +16 -0
- package/dist/src/entities/entity-mentions/namespace.d.ts +12 -0
- package/dist/src/entities/entity.d.ts +7 -0
- package/dist/src/entities/favorites/namespace.d.ts +14 -2
- package/dist/src/entities/foreign/foreign-entity.d.ts +2 -0
- package/dist/src/entities/foreign/namespace.d.ts +40 -0
- package/dist/src/entities/forms/form.d.ts +227 -0
- package/dist/src/entities/forms/namespace.d.ts +18 -0
- package/dist/src/entities/forms/question.d.ts +37 -0
- package/dist/src/entities/forms/response.d.ts +32 -0
- package/dist/src/entities/forms/section.d.ts +19 -0
- package/dist/src/entities/github-pull-requests/namespace.d.ts +12 -0
- package/dist/src/entities/github-pull-requests/pull-request.d.ts +52 -0
- package/dist/src/entities/harnesses/harness.d.ts +19 -0
- package/dist/src/entities/harnesses/namespace.d.ts +33 -0
- package/dist/src/entities/harnesses/pairing.d.ts +39 -0
- package/dist/src/entities/initiatives/initiative.d.ts +50 -0
- package/dist/src/entities/initiatives/namespace.d.ts +13 -0
- package/dist/src/entities/meetings/meeting.d.ts +38 -0
- package/dist/src/entities/meetings/namespace.d.ts +18 -0
- package/dist/src/entities/messages/thread.d.ts +101 -0
- package/dist/src/entities/notifications/notification.d.ts +6 -3
- package/dist/src/entities/notifications/notification.test.d.ts +1 -0
- package/dist/src/entities/projects/project.d.ts +7 -0
- package/dist/src/entities/reference.d.ts +82 -0
- package/dist/src/entities/routines/namespace.d.ts +15 -0
- package/dist/src/entities/routines/routine.d.ts +115 -0
- package/dist/src/entities/sharing/access.d.ts +65 -0
- package/dist/src/entities/sharing/permissions.d.ts +13 -0
- package/dist/src/entities/tasks/namespace.d.ts +4 -0
- package/dist/src/entities/tasks/task.d.ts +6 -0
- package/dist/src/entities/unfurls/namespace.d.ts +10 -0
- package/dist/src/entities/webhooks/webhook.d.ts +3 -1
- package/dist/src/entities/workspace/items.d.ts +7 -0
- package/dist/src/entities/workspace/namespace.d.ts +83 -0
- package/dist/src/entities/workspace/query.d.ts +12 -0
- package/dist/src/entities/workspace/types.d.ts +96 -0
- package/dist/src/events/hydrate/agentSession.d.ts +192 -0
- package/dist/src/events/hydrate/channel.d.ts +2 -39
- package/dist/src/events/hydrate/message.d.ts +70 -0
- package/dist/src/events/receiver.d.ts +57 -19
- package/dist/src/events/types.d.ts +3 -1
- package/dist/src/macro.d.ts +80 -3
- package/dist/src/macro.js +8832 -2784
- package/dist/src/utils/activity.d.ts +11 -0
- package/dist/src/utils/activity.test.d.ts +1 -0
- package/dist/src/utils/client.d.ts +10 -1
- package/dist/src/utils/concurrency.d.ts +5 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/pagination.d.ts +9 -4
- package/package.json +11 -3
|
@@ -18,11 +18,25 @@ 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
|
+
};
|
|
21
35
|
/**
|
|
22
36
|
* Everything we use AI for. The wire / DB form of each variant is its
|
|
23
37
|
* `snake_case` name.
|
|
24
38
|
*/
|
|
25
|
-
export type AiFeature = 'chat' | 'memory' | 'automation' | 'dynamic_completions_api' | 'chat_rename' | 'call_summary' | 'channel_bot' | 'ai_projection' | 'ai_editing' | 'import' | 'agent_session';
|
|
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';
|
|
26
40
|
/**
|
|
27
41
|
* A structured part within an assistant message.
|
|
28
42
|
*
|
|
@@ -274,6 +288,10 @@ export type ChatMessageContent = string | Array<AssistantMessagePart>;
|
|
|
274
288
|
* Error response for chat message endpoints
|
|
275
289
|
*/
|
|
276
290
|
export type ChatMessageError = {
|
|
291
|
+
/**
|
|
292
|
+
* Stable machine-readable code for admission errors (402 or 503).
|
|
293
|
+
*/
|
|
294
|
+
code?: string | null;
|
|
277
295
|
error: string;
|
|
278
296
|
stream_id?: string | null;
|
|
279
297
|
};
|
|
@@ -374,24 +392,23 @@ export type CompleteOnboardingRequest = {
|
|
|
374
392
|
skipped?: boolean;
|
|
375
393
|
};
|
|
376
394
|
/**
|
|
377
|
-
*
|
|
395
|
+
* User and feature attribution for one invocation.
|
|
378
396
|
*/
|
|
379
397
|
export type CompletionUsage = {
|
|
380
398
|
/**
|
|
381
|
-
*
|
|
399
|
+
* Measured usage and resolved cost.
|
|
382
400
|
*/
|
|
383
401
|
cost: Usage;
|
|
384
402
|
/**
|
|
385
|
-
*
|
|
403
|
+
* Related entity, if any.
|
|
386
404
|
*/
|
|
387
405
|
entity?: string | null;
|
|
388
406
|
/**
|
|
389
|
-
*
|
|
407
|
+
* Feature that performed the invocation.
|
|
390
408
|
*/
|
|
391
409
|
feature: AiFeature;
|
|
392
410
|
/**
|
|
393
|
-
*
|
|
394
|
-
* for background work).
|
|
411
|
+
* User the invocation was performed for.
|
|
395
412
|
*/
|
|
396
413
|
user: MacroUserIdStr;
|
|
397
414
|
};
|
|
@@ -430,6 +447,57 @@ export type CreateChatRequest = {
|
|
|
430
447
|
*/
|
|
431
448
|
projectId?: string | null;
|
|
432
449
|
};
|
|
450
|
+
/**
|
|
451
|
+
* What a successful tool call committed to the user's databases.
|
|
452
|
+
*/
|
|
453
|
+
export type DatabaseChange = {
|
|
454
|
+
kind: 'none';
|
|
455
|
+
} | {
|
|
456
|
+
kind: 'schema';
|
|
457
|
+
} | {
|
|
458
|
+
count: number;
|
|
459
|
+
kind: 'rows';
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* Sanitized, machine-readable failure of a decision request.
|
|
463
|
+
*/
|
|
464
|
+
export type DecisionErrorBody = {
|
|
465
|
+
/**
|
|
466
|
+
* Stable failure code.
|
|
467
|
+
*/
|
|
468
|
+
code: string;
|
|
469
|
+
/**
|
|
470
|
+
* Human-readable explanation without provider credentials or diagnostics.
|
|
471
|
+
*/
|
|
472
|
+
error: string;
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* Named yes/no questions to evaluate against one arbitrary JSON input.
|
|
476
|
+
*/
|
|
477
|
+
export type DecisionRequest = {
|
|
478
|
+
/**
|
|
479
|
+
* Data to classify. The entire compact request must fit in 64 KiB.
|
|
480
|
+
*/
|
|
481
|
+
input: unknown;
|
|
482
|
+
/**
|
|
483
|
+
* One to 32 questions, each at most 500 characters. Keys must be nonblank
|
|
484
|
+
* and at most 80 UTF-8 bytes; they are preserved in the response.
|
|
485
|
+
*/
|
|
486
|
+
questions: {
|
|
487
|
+
[key: string]: string;
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
/**
|
|
491
|
+
* The probability of yes for every requested question, under its original key.
|
|
492
|
+
*/
|
|
493
|
+
export type DecisionResponse = {
|
|
494
|
+
/**
|
|
495
|
+
* Probabilities between zero and one, inclusive; not boolean decisions.
|
|
496
|
+
*/
|
|
497
|
+
probabilities: {
|
|
498
|
+
[key: string]: number;
|
|
499
|
+
};
|
|
500
|
+
};
|
|
433
501
|
export type DocumentCognitionServiceApiVersion = 'v1' | 'v2';
|
|
434
502
|
export type DocumentReference = UserPdfRect & {
|
|
435
503
|
kind: 'pdf';
|
|
@@ -473,7 +541,7 @@ export type Entity = {
|
|
|
473
541
|
/**
|
|
474
542
|
* The type of an entity in Macro
|
|
475
543
|
*/
|
|
476
|
-
export type EntityType = 'user' | 'chat' | 'channel' | 'channel_message' | 'document' | 'project' | 'email_thread' | 'calendar_event' | 'team' | 'call' | 'foreign_entity' | 'static_file' | 'crm_company' | 'crm_contact' | 'reminder' | 'skill' | 'agent_session';
|
|
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';
|
|
477
545
|
/**
|
|
478
546
|
* Error response body.
|
|
479
547
|
*/
|
|
@@ -498,19 +566,19 @@ export type ErrorResponse = {
|
|
|
498
566
|
*/
|
|
499
567
|
export type Expiry = 'day' | 'week' | 'month';
|
|
500
568
|
/**
|
|
501
|
-
*
|
|
569
|
+
* Recorded invocations and total for one feature.
|
|
502
570
|
*/
|
|
503
571
|
export type FeatureUsage = {
|
|
504
572
|
/**
|
|
505
|
-
*
|
|
573
|
+
* Recorded invocations.
|
|
506
574
|
*/
|
|
507
575
|
entries: Array<CompletionUsage>;
|
|
508
576
|
/**
|
|
509
|
-
*
|
|
577
|
+
* Feature attribution.
|
|
510
578
|
*/
|
|
511
579
|
feature: AiFeature;
|
|
512
580
|
/**
|
|
513
|
-
* Total cost
|
|
581
|
+
* Total cost (USD).
|
|
514
582
|
*/
|
|
515
583
|
total: number;
|
|
516
584
|
};
|
|
@@ -530,7 +598,7 @@ export type FeatureUsage = {
|
|
|
530
598
|
* - ContentType::mime_type() - Gets MIME type for ContentType
|
|
531
599
|
*
|
|
532
600
|
*/
|
|
533
|
-
export type FileType = 'docx' | 'pdf' | 'md' | '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' | 'ppt' | 'pptx' | 'xlsx' | 'db' | 'sqlite' | 'sqlite3' | 'mdb' | 'accdb' | 'dbf' | 'plist' | 'toml' | 'env' | 'dot' | 'gv' | 'torrent' | 'ics' | 'vcf' | 'ai' | 'eps' | 'ps' | 'dxf' | 'dwg' | 'stl' | 'obj' | 'fbx' | 'blend' | 'dae' | 'threeds' | 'gltf' | 'glb' | 'vhd' | 'vhdx' | 'vmdk' | 'ova' | 'ovf' | 'iso' | 'img' | 'swf';
|
|
601
|
+
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';
|
|
534
602
|
export type GenericErrorResponse = {
|
|
535
603
|
/**
|
|
536
604
|
* Indicates if an error occurred
|
|
@@ -598,6 +666,10 @@ export type HttpSendChatMessageRequest = {
|
|
|
598
666
|
* The model to respond with (`provider/model` id)
|
|
599
667
|
*/
|
|
600
668
|
model: string;
|
|
669
|
+
/**
|
|
670
|
+
* Inference speed, validated against the selected model. Defaults to standard.
|
|
671
|
+
*/
|
|
672
|
+
speed?: ModelSpeed;
|
|
601
673
|
/**
|
|
602
674
|
* Which toolset to use. Defaults to `all`
|
|
603
675
|
*/
|
|
@@ -716,7 +788,7 @@ export type ImportStatus = 'staged' | 'importing' | 'imported' | 'discarded';
|
|
|
716
788
|
* Where an import entity was first staged from. Provenance only — never a
|
|
717
789
|
* visibility filter.
|
|
718
790
|
*/
|
|
719
|
-
export type Initiator = 'onboarding' | 'chat';
|
|
791
|
+
export type Initiator = 'onboarding' | 'chat' | 'archive' | 'manual';
|
|
720
792
|
export type JwtPayload = {
|
|
721
793
|
token: string;
|
|
722
794
|
};
|
|
@@ -786,6 +858,10 @@ export type MessageWithAttachments = {
|
|
|
786
858
|
content: string;
|
|
787
859
|
date: string;
|
|
788
860
|
};
|
|
861
|
+
/**
|
|
862
|
+
* The requested inference speed. Standard is backward compatible with old clients.
|
|
863
|
+
*/
|
|
864
|
+
export type ModelSpeed = 'standard' | 'fast' | 'ultrafast';
|
|
789
865
|
export type NewAttachment = {
|
|
790
866
|
attachment_id: string;
|
|
791
867
|
attachment_type: AttachmentType;
|
|
@@ -998,19 +1074,33 @@ export type PipedreamUpdateRequest = {
|
|
|
998
1074
|
server_name?: string | null;
|
|
999
1075
|
};
|
|
1000
1076
|
/**
|
|
1001
|
-
*
|
|
1077
|
+
* Rates applied to an invocation and its resolved dollar cost.
|
|
1002
1078
|
*/
|
|
1003
1079
|
export type Price = {
|
|
1004
1080
|
/**
|
|
1005
|
-
* Price per
|
|
1081
|
+
* Price per audio minute (USD), absent for token billing.
|
|
1082
|
+
*/
|
|
1083
|
+
price_per_audio_minute?: number | null;
|
|
1084
|
+
/**
|
|
1085
|
+
* Price per million cache-read input tokens (USD), absent when the model
|
|
1086
|
+
* has no published rate and for audio billing.
|
|
1087
|
+
*/
|
|
1088
|
+
price_per_million_cache_read?: number | null;
|
|
1089
|
+
/**
|
|
1090
|
+
* Price per million cache-write input tokens (USD), absent when the model
|
|
1091
|
+
* has no published rate and for audio billing.
|
|
1092
|
+
*/
|
|
1093
|
+
price_per_million_cache_write?: number | null;
|
|
1094
|
+
/**
|
|
1095
|
+
* Price per million input tokens (USD); zero for audio billing.
|
|
1006
1096
|
*/
|
|
1007
1097
|
price_per_million_in: number;
|
|
1008
1098
|
/**
|
|
1009
|
-
* Price per million output tokens (USD).
|
|
1099
|
+
* Price per million output tokens (USD); zero for audio billing.
|
|
1010
1100
|
*/
|
|
1011
1101
|
price_per_million_out: number;
|
|
1012
1102
|
/**
|
|
1013
|
-
* Total cost
|
|
1103
|
+
* Total cost (USD).
|
|
1014
1104
|
*/
|
|
1015
1105
|
total: number;
|
|
1016
1106
|
};
|
|
@@ -1176,13 +1266,27 @@ export type SetPricingRequest = {
|
|
|
1176
1266
|
*/
|
|
1177
1267
|
model: string;
|
|
1178
1268
|
/**
|
|
1179
|
-
*
|
|
1269
|
+
* Price per minute of audio (USD), or null for token-only pricing.
|
|
1180
1270
|
*/
|
|
1181
|
-
|
|
1271
|
+
price_per_audio_minute?: number | null;
|
|
1182
1272
|
/**
|
|
1183
|
-
*
|
|
1273
|
+
* Price per million cache-read input tokens (USD). Omit it when the model
|
|
1274
|
+
* has no published rate: calls that report cache reads then stay unpriced.
|
|
1184
1275
|
*/
|
|
1185
|
-
|
|
1276
|
+
price_per_mil_cache_read?: number | null;
|
|
1277
|
+
/**
|
|
1278
|
+
* Price per million cache-write input tokens (USD). Omit it when the model
|
|
1279
|
+
* has no published rate: calls that report cache writes then stay unpriced.
|
|
1280
|
+
*/
|
|
1281
|
+
price_per_mil_cache_write?: number | null;
|
|
1282
|
+
/**
|
|
1283
|
+
* New price per million input tokens (USD). Required for token pricing.
|
|
1284
|
+
*/
|
|
1285
|
+
price_per_mil_in?: number | null;
|
|
1286
|
+
/**
|
|
1287
|
+
* New price per million output tokens (USD). Required for token pricing.
|
|
1288
|
+
*/
|
|
1289
|
+
price_per_mil_out?: number | null;
|
|
1186
1290
|
};
|
|
1187
1291
|
export type SharePermissionV2 = {
|
|
1188
1292
|
/**
|
|
@@ -1199,21 +1303,34 @@ export type SharePermissionV2 = {
|
|
|
1199
1303
|
* The owner of the item
|
|
1200
1304
|
*/
|
|
1201
1305
|
owner: string;
|
|
1306
|
+
teamShareAccessLevel?: null | AccessLevel;
|
|
1202
1307
|
};
|
|
1203
1308
|
/**
|
|
1204
1309
|
* Metadata for one staged Slack channel.
|
|
1205
1310
|
*/
|
|
1206
1311
|
export type SlackChannelMeta = {
|
|
1312
|
+
/**
|
|
1313
|
+
* Whether Slack has archived this channel.
|
|
1314
|
+
*/
|
|
1315
|
+
archived?: boolean;
|
|
1207
1316
|
/**
|
|
1208
1317
|
* Slack's channel id (e.g. `C0123456789`), stable across renames.
|
|
1209
1318
|
*/
|
|
1210
1319
|
channel_id?: string | null;
|
|
1320
|
+
/**
|
|
1321
|
+
* Total human members in the Slack channel.
|
|
1322
|
+
*/
|
|
1323
|
+
member_count?: number | null;
|
|
1324
|
+
/**
|
|
1325
|
+
* Whether `participants` reflects a live membership read.
|
|
1326
|
+
*/
|
|
1327
|
+
members_resolved?: boolean;
|
|
1211
1328
|
/**
|
|
1212
1329
|
* Channel name without the leading `#`.
|
|
1213
1330
|
*/
|
|
1214
1331
|
name: string;
|
|
1215
1332
|
/**
|
|
1216
|
-
*
|
|
1333
|
+
* Slack members matched to the Macro team roster when discovery resolved membership.
|
|
1217
1334
|
*/
|
|
1218
1335
|
participants?: Array<SlackParticipant>;
|
|
1219
1336
|
/**
|
|
@@ -1304,8 +1421,19 @@ export type StringIdResponse = {
|
|
|
1304
1421
|
id: string;
|
|
1305
1422
|
};
|
|
1306
1423
|
export type StructuredCompletionError = {
|
|
1424
|
+
/**
|
|
1425
|
+
* Stable machine-readable code for admission errors (402 or 503).
|
|
1426
|
+
*/
|
|
1427
|
+
code?: string | null;
|
|
1307
1428
|
error: string;
|
|
1308
1429
|
};
|
|
1430
|
+
export type StructuredCompletionOutcome = {
|
|
1431
|
+
result: unknown;
|
|
1432
|
+
status: 'completed';
|
|
1433
|
+
} | {
|
|
1434
|
+
reason: string;
|
|
1435
|
+
status: 'interrupted';
|
|
1436
|
+
};
|
|
1309
1437
|
export type StructuredCompletionRequest = {
|
|
1310
1438
|
additional_instructions?: string | null;
|
|
1311
1439
|
model: string;
|
|
@@ -1314,16 +1442,37 @@ export type StructuredCompletionRequest = {
|
|
|
1314
1442
|
toolset?: ToolSet;
|
|
1315
1443
|
};
|
|
1316
1444
|
export type StructuredCompletionResponse = {
|
|
1317
|
-
|
|
1445
|
+
outcome: StructuredCompletionOutcome;
|
|
1446
|
+
/**
|
|
1447
|
+
* Actual completed tools, independent of the model's claims.
|
|
1448
|
+
*/
|
|
1449
|
+
toolActivity: Array<StructuredToolActivity>;
|
|
1450
|
+
};
|
|
1451
|
+
/**
|
|
1452
|
+
* One tool call the agent finished, and what it did.
|
|
1453
|
+
*/
|
|
1454
|
+
export type StructuredToolActivity = {
|
|
1455
|
+
name: string;
|
|
1456
|
+
outcome: ToolOutcome;
|
|
1318
1457
|
};
|
|
1319
1458
|
/**
|
|
1320
1459
|
* The kind of entity a projection is materialized for.
|
|
1321
1460
|
*/
|
|
1322
1461
|
export type TargetType = 'user' | 'team';
|
|
1462
|
+
export type ToolOutcome = {
|
|
1463
|
+
changes: DatabaseChange;
|
|
1464
|
+
status: 'succeeded';
|
|
1465
|
+
} | {
|
|
1466
|
+
status: 'failed';
|
|
1467
|
+
};
|
|
1323
1468
|
export type ToolSet = {
|
|
1324
1469
|
type: 'all';
|
|
1325
1470
|
} | {
|
|
1326
1471
|
type: 'none';
|
|
1472
|
+
} | {
|
|
1473
|
+
type: 'databases';
|
|
1474
|
+
} | {
|
|
1475
|
+
type: 'databases_read_only';
|
|
1327
1476
|
};
|
|
1328
1477
|
export type UpdateChannelSharePermission = {
|
|
1329
1478
|
accessLevel?: null | AccessLevel;
|
|
@@ -1362,6 +1511,7 @@ export type UpdateSharePermissionRequestV2 = {
|
|
|
1362
1511
|
channelSharePermissions?: Array<UpdateChannelSharePermission> | null;
|
|
1363
1512
|
linkShare?: null | LinkShare;
|
|
1364
1513
|
linkShareAccessLevel?: null | AccessLevel;
|
|
1514
|
+
teamShareAccessLevel?: null | AccessLevel;
|
|
1365
1515
|
};
|
|
1366
1516
|
/**
|
|
1367
1517
|
* Request body for updating a tool call's arguments.
|
|
@@ -1448,23 +1598,35 @@ export type UpsertProjectionRequest = {
|
|
|
1448
1598
|
target_type: TargetType;
|
|
1449
1599
|
};
|
|
1450
1600
|
/**
|
|
1451
|
-
*
|
|
1601
|
+
* Measured usage for one invocation.
|
|
1452
1602
|
*/
|
|
1453
1603
|
export type Usage = {
|
|
1454
1604
|
/**
|
|
1455
|
-
*
|
|
1605
|
+
* Audio duration in seconds, absent for token billing.
|
|
1606
|
+
*/
|
|
1607
|
+
audio_seconds?: number | null;
|
|
1608
|
+
/**
|
|
1609
|
+
* Input tokens read from a prompt cache; zero for audio billing.
|
|
1610
|
+
*/
|
|
1611
|
+
cache_read_input_tokens: number;
|
|
1612
|
+
/**
|
|
1613
|
+
* Input tokens written to a prompt cache; zero for audio billing.
|
|
1614
|
+
*/
|
|
1615
|
+
cache_write_input_tokens: number;
|
|
1616
|
+
/**
|
|
1617
|
+
* Recording timestamp.
|
|
1456
1618
|
*/
|
|
1457
1619
|
created_at: string;
|
|
1458
1620
|
/**
|
|
1459
|
-
*
|
|
1621
|
+
* Uncached input tokens; zero for audio billing.
|
|
1460
1622
|
*/
|
|
1461
1623
|
input_tokens: number;
|
|
1462
1624
|
/**
|
|
1463
|
-
*
|
|
1625
|
+
* Provider model identifier.
|
|
1464
1626
|
*/
|
|
1465
1627
|
model: string;
|
|
1466
1628
|
/**
|
|
1467
|
-
*
|
|
1629
|
+
* Output tokens; zero for audio billing.
|
|
1468
1630
|
*/
|
|
1469
1631
|
output_tokens: number;
|
|
1470
1632
|
price?: null | Price;
|
|
@@ -1491,7 +1653,7 @@ export type UsageRequest = {
|
|
|
1491
1653
|
until?: string | null;
|
|
1492
1654
|
};
|
|
1493
1655
|
/**
|
|
1494
|
-
*
|
|
1656
|
+
* Per-feature breakdown and grand total.
|
|
1495
1657
|
*/
|
|
1496
1658
|
export type UsageSummary = {
|
|
1497
1659
|
/**
|
|
@@ -1499,7 +1661,7 @@ export type UsageSummary = {
|
|
|
1499
1661
|
*/
|
|
1500
1662
|
entries: Array<FeatureUsage>;
|
|
1501
1663
|
/**
|
|
1502
|
-
* Grand total
|
|
1664
|
+
* Grand total (USD).
|
|
1503
1665
|
*/
|
|
1504
1666
|
total: number;
|
|
1505
1667
|
};
|
|
@@ -1557,6 +1719,10 @@ export type SetPricingHandlerData = {
|
|
|
1557
1719
|
url: '/ai-cost/pricing';
|
|
1558
1720
|
};
|
|
1559
1721
|
export type SetPricingHandlerErrors = {
|
|
1722
|
+
/**
|
|
1723
|
+
* Invalid pricing
|
|
1724
|
+
*/
|
|
1725
|
+
400: ErrorBody;
|
|
1560
1726
|
/**
|
|
1561
1727
|
* Admin access required
|
|
1562
1728
|
*/
|
|
@@ -1703,6 +1869,7 @@ export type CreateChatData = {
|
|
|
1703
1869
|
};
|
|
1704
1870
|
export type CreateChatErrors = {
|
|
1705
1871
|
401: string;
|
|
1872
|
+
403: string;
|
|
1706
1873
|
500: string;
|
|
1707
1874
|
};
|
|
1708
1875
|
export type CreateChatError = CreateChatErrors[keyof CreateChatErrors];
|
|
@@ -1971,6 +2138,54 @@ export type GetCitationHandlerResponses = {
|
|
|
1971
2138
|
200: DocumentTextPart;
|
|
1972
2139
|
};
|
|
1973
2140
|
export type GetCitationHandlerResponse = GetCitationHandlerResponses[keyof GetCitationHandlerResponses];
|
|
2141
|
+
export type DecisionsData = {
|
|
2142
|
+
body: DecisionRequest;
|
|
2143
|
+
path?: never;
|
|
2144
|
+
query?: never;
|
|
2145
|
+
url: '/decisions';
|
|
2146
|
+
};
|
|
2147
|
+
export type DecisionsErrors = {
|
|
2148
|
+
/**
|
|
2149
|
+
* Invalid or oversized compact request
|
|
2150
|
+
*/
|
|
2151
|
+
400: DecisionErrorBody;
|
|
2152
|
+
/**
|
|
2153
|
+
* Unauthorized
|
|
2154
|
+
*/
|
|
2155
|
+
401: unknown;
|
|
2156
|
+
/**
|
|
2157
|
+
* AI allowance exhausted
|
|
2158
|
+
*/
|
|
2159
|
+
402: DecisionErrorBody;
|
|
2160
|
+
/**
|
|
2161
|
+
* HTTP body exceeds 128 KiB
|
|
2162
|
+
*/
|
|
2163
|
+
413: unknown;
|
|
2164
|
+
/**
|
|
2165
|
+
* Decision task failed
|
|
2166
|
+
*/
|
|
2167
|
+
500: DecisionErrorBody;
|
|
2168
|
+
/**
|
|
2169
|
+
* Classifier could not produce a valid result
|
|
2170
|
+
*/
|
|
2171
|
+
502: DecisionErrorBody;
|
|
2172
|
+
/**
|
|
2173
|
+
* Decision capacity, provider, or usage validation unavailable
|
|
2174
|
+
*/
|
|
2175
|
+
503: DecisionErrorBody;
|
|
2176
|
+
/**
|
|
2177
|
+
* Decision deadline exceeded
|
|
2178
|
+
*/
|
|
2179
|
+
504: DecisionErrorBody;
|
|
2180
|
+
};
|
|
2181
|
+
export type DecisionsError = DecisionsErrors[keyof DecisionsErrors];
|
|
2182
|
+
export type DecisionsResponses = {
|
|
2183
|
+
/**
|
|
2184
|
+
* Probability of yes for each named question
|
|
2185
|
+
*/
|
|
2186
|
+
200: DecisionResponse;
|
|
2187
|
+
};
|
|
2188
|
+
export type DecisionsResponse = DecisionsResponses[keyof DecisionsResponses];
|
|
1974
2189
|
export type HealthHandlerData = {
|
|
1975
2190
|
body?: never;
|
|
1976
2191
|
path?: never;
|
|
@@ -2003,6 +2218,34 @@ export type RunImportHandlerResponses = {
|
|
|
2003
2218
|
200: RunImportOutcome;
|
|
2004
2219
|
};
|
|
2005
2220
|
export type RunImportHandlerResponse = RunImportHandlerResponses[keyof RunImportHandlerResponses];
|
|
2221
|
+
export type DiscoverHandlerData = {
|
|
2222
|
+
body?: never;
|
|
2223
|
+
path: {
|
|
2224
|
+
/**
|
|
2225
|
+
* Import source
|
|
2226
|
+
*/
|
|
2227
|
+
source: string;
|
|
2228
|
+
};
|
|
2229
|
+
query?: never;
|
|
2230
|
+
url: '/import/runs/{source}/discover';
|
|
2231
|
+
};
|
|
2232
|
+
export type DiscoverHandlerErrors = {
|
|
2233
|
+
/**
|
|
2234
|
+
* Unknown import source or discovery not supported
|
|
2235
|
+
*/
|
|
2236
|
+
400: unknown;
|
|
2237
|
+
/**
|
|
2238
|
+
* Internal server error
|
|
2239
|
+
*/
|
|
2240
|
+
500: unknown;
|
|
2241
|
+
};
|
|
2242
|
+
export type DiscoverHandlerResponses = {
|
|
2243
|
+
/**
|
|
2244
|
+
* Discovery accepted (idempotent)
|
|
2245
|
+
*/
|
|
2246
|
+
204: void;
|
|
2247
|
+
};
|
|
2248
|
+
export type DiscoverHandlerResponse = DiscoverHandlerResponses[keyof DiscoverHandlerResponses];
|
|
2006
2249
|
export type DismissRunHandlerData = {
|
|
2007
2250
|
body?: never;
|
|
2008
2251
|
path: {
|
|
@@ -2047,11 +2290,20 @@ export type RetryGatherHandlerErrors = {
|
|
|
2047
2290
|
* Unknown import source
|
|
2048
2291
|
*/
|
|
2049
2292
|
400: unknown;
|
|
2293
|
+
/**
|
|
2294
|
+
* AI allowance exhausted
|
|
2295
|
+
*/
|
|
2296
|
+
402: AiAdmissionErrorBody;
|
|
2050
2297
|
/**
|
|
2051
2298
|
* Internal server error
|
|
2052
2299
|
*/
|
|
2053
2300
|
500: unknown;
|
|
2301
|
+
/**
|
|
2302
|
+
* AI usage validation unavailable; retry later
|
|
2303
|
+
*/
|
|
2304
|
+
503: AiAdmissionErrorBody;
|
|
2054
2305
|
};
|
|
2306
|
+
export type RetryGatherHandlerError = RetryGatherHandlerErrors[keyof RetryGatherHandlerErrors];
|
|
2055
2307
|
export type RetryGatherHandlerResponses = {
|
|
2056
2308
|
/**
|
|
2057
2309
|
* Retry accepted (idempotent)
|
|
@@ -2414,13 +2666,17 @@ export type SendChatMessageErrors = {
|
|
|
2414
2666
|
*/
|
|
2415
2667
|
401: unknown;
|
|
2416
2668
|
/**
|
|
2417
|
-
* Payment required — user
|
|
2669
|
+
* Payment required — the user's AI allowance is used up
|
|
2418
2670
|
*/
|
|
2419
|
-
402:
|
|
2671
|
+
402: ChatMessageError;
|
|
2420
2672
|
/**
|
|
2421
|
-
* Forbidden
|
|
2673
|
+
* Forbidden — user lacks access to the requested model
|
|
2674
|
+
*/
|
|
2675
|
+
403: ChatMessageError;
|
|
2676
|
+
/**
|
|
2677
|
+
* AI usage validation unavailable — retry later
|
|
2422
2678
|
*/
|
|
2423
|
-
|
|
2679
|
+
503: ChatMessageError;
|
|
2424
2680
|
};
|
|
2425
2681
|
export type SendChatMessageError = SendChatMessageErrors[keyof SendChatMessageErrors];
|
|
2426
2682
|
export type SendChatMessageResponses = {
|
|
@@ -2468,11 +2724,23 @@ export type StructuredCompletionErrors = {
|
|
|
2468
2724
|
/**
|
|
2469
2725
|
* Payment required
|
|
2470
2726
|
*/
|
|
2471
|
-
402:
|
|
2727
|
+
402: StructuredCompletionError;
|
|
2728
|
+
/**
|
|
2729
|
+
* No access to the requested model
|
|
2730
|
+
*/
|
|
2731
|
+
403: StructuredCompletionError;
|
|
2472
2732
|
/**
|
|
2473
2733
|
* Internal error
|
|
2474
2734
|
*/
|
|
2475
2735
|
500: StructuredCompletionError;
|
|
2736
|
+
/**
|
|
2737
|
+
* AI usage validation unavailable — retry later
|
|
2738
|
+
*/
|
|
2739
|
+
503: StructuredCompletionError;
|
|
2740
|
+
/**
|
|
2741
|
+
* Tool-free completion deadline exceeded
|
|
2742
|
+
*/
|
|
2743
|
+
504: StructuredCompletionError;
|
|
2476
2744
|
};
|
|
2477
2745
|
export type StructuredCompletionError2 = StructuredCompletionErrors[keyof StructuredCompletionErrors];
|
|
2478
2746
|
export type StructuredCompletionResponses = {
|
|
@@ -35,7 +35,7 @@ export type Entity = {
|
|
|
35
35
|
/**
|
|
36
36
|
* The type of an entity in Macro
|
|
37
37
|
*/
|
|
38
|
-
export type EntityType = 'user' | 'chat' | 'channel' | 'channel_message' | 'document' | 'project' | 'email_thread' | 'calendar_event' | 'team' | 'call' | 'foreign_entity' | 'static_file' | 'crm_company' | 'crm_contact' | 'reminder' | 'skill' | 'agent_session';
|
|
38
|
+
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';
|
|
39
39
|
export type GenericErrorResponse = {
|
|
40
40
|
/**
|
|
41
41
|
* Indicates if an error occurred
|