openmates 0.14.7 → 0.14.8-alpha.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/dist/{chunk-U2RKIE56.js → chunk-7BIVPFKJ.js} +2430 -200
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +226 -6
- package/dist/index.js +392 -15
- package/package.json +7 -3
- package/templates/core/docker-compose.selfhost.yml +9 -7
package/dist/cli.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -324,6 +324,7 @@ type WorkflowLifecycle = "persisted" | "temporary";
|
|
|
324
324
|
interface WorkflowSummary {
|
|
325
325
|
id: string;
|
|
326
326
|
title: string;
|
|
327
|
+
description?: string | null;
|
|
327
328
|
status: "draft" | "active" | "disabled" | "error" | "deleted";
|
|
328
329
|
enabled: boolean;
|
|
329
330
|
lifecycle?: WorkflowLifecycle;
|
|
@@ -379,10 +380,13 @@ interface ProjectSourceRecord {
|
|
|
379
380
|
type ProjectSourceCreateInput = ProjectSourceRecord;
|
|
380
381
|
interface UserTaskRecord {
|
|
381
382
|
task_id: string;
|
|
383
|
+
short_id?: string | null;
|
|
384
|
+
short_id_prefix?: string | null;
|
|
382
385
|
encrypted_task_key?: string | null;
|
|
383
386
|
encrypted_title: string;
|
|
384
387
|
encrypted_description?: string | null;
|
|
385
388
|
encrypted_tags?: string | null;
|
|
389
|
+
encrypted_linked_project_ids?: string | null;
|
|
386
390
|
encrypted_activity_summary?: string | null;
|
|
387
391
|
encrypted_latest_instruction?: string | null;
|
|
388
392
|
status: UserTaskStatus;
|
|
@@ -391,9 +395,14 @@ interface UserTaskRecord {
|
|
|
391
395
|
primary_chat_id?: string | null;
|
|
392
396
|
linked_project_ids?: string[] | null;
|
|
393
397
|
parent_task_id?: string | null;
|
|
398
|
+
plan_id?: string | null;
|
|
399
|
+
plan_step_id?: string | null;
|
|
400
|
+
task_type?: "work" | "verification" | null;
|
|
401
|
+
verification_id?: string | null;
|
|
394
402
|
due_at?: number | null;
|
|
395
403
|
priority?: number;
|
|
396
404
|
position?: number;
|
|
405
|
+
queue_state?: "none" | "waiting" | "active" | "skipped" | "waiting_for_user" | string | null;
|
|
397
406
|
version?: number;
|
|
398
407
|
created_at?: number;
|
|
399
408
|
updated_at?: number;
|
|
@@ -485,7 +494,7 @@ interface WorkflowRunDetail {
|
|
|
485
494
|
workflow_id: string;
|
|
486
495
|
version_id: string;
|
|
487
496
|
trigger_type: string;
|
|
488
|
-
status: "queued" | "running" | "waiting" | "completed" | "failed" | "cancelled";
|
|
497
|
+
status: "queued" | "running" | "waiting" | "cancellation_requested" | "completed" | "failed" | "cancelled";
|
|
489
498
|
started_at?: number | null;
|
|
490
499
|
finished_at?: number | null;
|
|
491
500
|
error_summary?: string | null;
|
|
@@ -499,6 +508,10 @@ interface WorkflowRunDetail {
|
|
|
499
508
|
node_runs?: WorkflowNodeRun[];
|
|
500
509
|
output_summary?: Record<string, unknown>;
|
|
501
510
|
}
|
|
511
|
+
interface WorkflowRunCancellationResult {
|
|
512
|
+
run_id: string;
|
|
513
|
+
status: "cancellation_requested" | "cancelled";
|
|
514
|
+
}
|
|
502
515
|
type WorkflowInputType = "text" | "audio";
|
|
503
516
|
interface WorkflowInputStartParams {
|
|
504
517
|
text?: string | null;
|
|
@@ -540,6 +553,67 @@ interface WorkflowCapability {
|
|
|
540
553
|
reason?: string | null;
|
|
541
554
|
metadata?: Record<string, unknown>;
|
|
542
555
|
}
|
|
556
|
+
interface WorkflowTemplateProjectionUpsertParams {
|
|
557
|
+
templateId: string;
|
|
558
|
+
sourceVersion: number;
|
|
559
|
+
ciphertext: string;
|
|
560
|
+
ciphertextChecksum: string;
|
|
561
|
+
ownerWrappedKey: string;
|
|
562
|
+
projectionSchemaVersion: number;
|
|
563
|
+
}
|
|
564
|
+
interface WorkflowTemplateProjectionResult {
|
|
565
|
+
template_id: string;
|
|
566
|
+
source_version: number;
|
|
567
|
+
updated_at: number;
|
|
568
|
+
}
|
|
569
|
+
interface PublicWorkflowTemplateProjection {
|
|
570
|
+
template_id: string;
|
|
571
|
+
ciphertext: string;
|
|
572
|
+
ciphertext_checksum: string;
|
|
573
|
+
projection_schema_version: number;
|
|
574
|
+
}
|
|
575
|
+
interface WorkflowTemplateProjectionRevocationResult {
|
|
576
|
+
template_id: string;
|
|
577
|
+
revoked_at: number | null;
|
|
578
|
+
}
|
|
579
|
+
interface WorkflowTemplateBindingCompletionParams {
|
|
580
|
+
type: string;
|
|
581
|
+
nodeId: string;
|
|
582
|
+
}
|
|
583
|
+
interface WorkflowTemplateBindingCompletionResult {
|
|
584
|
+
workflow_id: string;
|
|
585
|
+
binding_requirement: Record<string, unknown>;
|
|
586
|
+
completed: boolean;
|
|
587
|
+
}
|
|
588
|
+
interface WorkflowTemplateImportPayload {
|
|
589
|
+
template_version: number;
|
|
590
|
+
title: string;
|
|
591
|
+
description?: string | null;
|
|
592
|
+
trigger_template: Record<string, unknown>;
|
|
593
|
+
node_templates?: Array<Record<string, unknown>>;
|
|
594
|
+
edge_templates?: Array<Record<string, unknown>>;
|
|
595
|
+
variables_schema?: Record<string, unknown>;
|
|
596
|
+
required_capabilities?: string[];
|
|
597
|
+
binding_requirements?: Array<Record<string, unknown>>;
|
|
598
|
+
}
|
|
599
|
+
interface ImportedWorkflowTemplate extends WorkflowDetail {
|
|
600
|
+
binding_requirements: Array<Record<string, unknown>>;
|
|
601
|
+
}
|
|
602
|
+
interface WorkflowTemplateShortUrlParams {
|
|
603
|
+
token: string;
|
|
604
|
+
encryptedUrl: string;
|
|
605
|
+
templateId: string;
|
|
606
|
+
ttlSeconds?: number | null;
|
|
607
|
+
passwordProtected?: boolean;
|
|
608
|
+
}
|
|
609
|
+
interface WorkflowTemplateShortUrlResult {
|
|
610
|
+
success: boolean;
|
|
611
|
+
expires_at?: number | null;
|
|
612
|
+
}
|
|
613
|
+
interface ShortUrlRevokeResult {
|
|
614
|
+
success: boolean;
|
|
615
|
+
revoked_at?: number | null;
|
|
616
|
+
}
|
|
543
617
|
type InterestTagId = "software_development" | "business_development" | "life_coach_psychology" | "medical_health" | "legal_law" | "finance" | "design" | "marketing_sales" | "science" | "history" | "cooking_food" | "electrical_engineering" | "maker_prototyping" | "movies_tv" | "activism" | "general_knowledge" | "find_events" | "find_restaurant" | "find_doctor_appointments" | "plot_charts" | "video_tutorials" | "find_apartments" | "build_electronics" | "diy_projects" | "create_videos" | "find_travel_connections" | "plan_trips" | "discuss_news" | "discuss_videos" | "run_code" | "privacy" | "learning" | "writing";
|
|
544
618
|
interface TopicPreferencesPayload {
|
|
545
619
|
version: 1;
|
|
@@ -597,6 +671,22 @@ interface ChatListPage {
|
|
|
597
671
|
limit: number;
|
|
598
672
|
hasMore: boolean;
|
|
599
673
|
}
|
|
674
|
+
interface EncryptedDraft {
|
|
675
|
+
chatId: string;
|
|
676
|
+
encryptedDraftMd: string;
|
|
677
|
+
encryptedDraftPreview: string | null;
|
|
678
|
+
draftV: number;
|
|
679
|
+
}
|
|
680
|
+
interface DecryptedDraft extends EncryptedDraft {
|
|
681
|
+
markdown: string;
|
|
682
|
+
preview: string | null;
|
|
683
|
+
}
|
|
684
|
+
interface AuthoritativeChatReconciliation {
|
|
685
|
+
authoritative: boolean;
|
|
686
|
+
authoritative_chat_ids?: string[];
|
|
687
|
+
deleted_chat_ids?: string[];
|
|
688
|
+
}
|
|
689
|
+
declare function reconcileAuthoritativeChats(chats: CachedChat[], evidence: AuthoritativeChatReconciliation): CachedChat[];
|
|
600
690
|
interface BenchmarkMetadata {
|
|
601
691
|
source: "benchmark";
|
|
602
692
|
benchmark_run_id: string;
|
|
@@ -929,6 +1019,22 @@ declare class OpenMatesClient {
|
|
|
929
1019
|
*/
|
|
930
1020
|
private decryptChatListItem;
|
|
931
1021
|
listChats(limit?: number, page?: number): Promise<ChatListPage>;
|
|
1022
|
+
saveDraft(params: {
|
|
1023
|
+
markdown: string;
|
|
1024
|
+
preview?: string | null;
|
|
1025
|
+
chatId?: string;
|
|
1026
|
+
}): Promise<DecryptedDraft>;
|
|
1027
|
+
saveEncryptedDraft(params: {
|
|
1028
|
+
chatId: string;
|
|
1029
|
+
encryptedDraftMd: string;
|
|
1030
|
+
encryptedDraftPreview?: string | null;
|
|
1031
|
+
}): Promise<EncryptedDraft>;
|
|
1032
|
+
listDrafts(forceRefresh?: boolean): Promise<DecryptedDraft[]>;
|
|
1033
|
+
getDraft(chatId: string, forceRefresh?: boolean): Promise<DecryptedDraft | null>;
|
|
1034
|
+
clearDraft(chatId: string): Promise<void>;
|
|
1035
|
+
reconcileDraftVersions(): Promise<Record<string, number>>;
|
|
1036
|
+
private storeEncryptedDraft;
|
|
1037
|
+
private decryptCachedDraft;
|
|
932
1038
|
searchChats(query: string): Promise<ChatListItem[]>;
|
|
933
1039
|
/**
|
|
934
1040
|
* Get the decrypted messages for a specific chat.
|
|
@@ -1126,6 +1232,27 @@ declare class OpenMatesClient {
|
|
|
1126
1232
|
createdByAssistant?: boolean;
|
|
1127
1233
|
autoDeleteAt?: number | null;
|
|
1128
1234
|
}): Promise<WorkflowDetail>;
|
|
1235
|
+
validateWorkflowYaml(source: string): Promise<{
|
|
1236
|
+
draft_valid: boolean;
|
|
1237
|
+
enable_ready: boolean;
|
|
1238
|
+
diagnostics: Array<Record<string, unknown>>;
|
|
1239
|
+
}>;
|
|
1240
|
+
createWorkflowYaml(source: string): Promise<{
|
|
1241
|
+
workflow: WorkflowDetail;
|
|
1242
|
+
validation: {
|
|
1243
|
+
draft_valid: boolean;
|
|
1244
|
+
enable_ready: boolean;
|
|
1245
|
+
diagnostics: Array<Record<string, unknown>>;
|
|
1246
|
+
};
|
|
1247
|
+
}>;
|
|
1248
|
+
updateWorkflowYaml(workflowId: string, source: string): Promise<{
|
|
1249
|
+
workflow: WorkflowDetail;
|
|
1250
|
+
validation: {
|
|
1251
|
+
draft_valid: boolean;
|
|
1252
|
+
enable_ready: boolean;
|
|
1253
|
+
diagnostics: Array<Record<string, unknown>>;
|
|
1254
|
+
};
|
|
1255
|
+
}>;
|
|
1129
1256
|
getWorkflow(workflowId: string): Promise<WorkflowDetail>;
|
|
1130
1257
|
updateWorkflow(workflowId: string, params: {
|
|
1131
1258
|
title?: string;
|
|
@@ -1139,13 +1266,28 @@ declare class OpenMatesClient {
|
|
|
1139
1266
|
keepWorkflow(workflowId: string): Promise<WorkflowDetail>;
|
|
1140
1267
|
enableWorkflow(workflowId: string): Promise<WorkflowDetail>;
|
|
1141
1268
|
disableWorkflow(workflowId: string): Promise<WorkflowDetail>;
|
|
1142
|
-
runWorkflow(workflowId: string, params
|
|
1269
|
+
runWorkflow(workflowId: string, params: {
|
|
1270
|
+
idempotencyKey: string;
|
|
1143
1271
|
mode?: "manual" | "test";
|
|
1144
1272
|
input?: Record<string, unknown>;
|
|
1145
1273
|
}): Promise<WorkflowRunDetail>;
|
|
1146
1274
|
listWorkflowRuns(workflowId: string): Promise<WorkflowRunDetail[]>;
|
|
1147
1275
|
getWorkflowRun(workflowId: string, runId: string): Promise<WorkflowRunDetail>;
|
|
1276
|
+
cancelWorkflowRun(workflowId: string, runId: string): Promise<WorkflowRunCancellationResult>;
|
|
1277
|
+
testWorkflowStep(workflowId: string, stepId: string, params?: {
|
|
1278
|
+
input?: Record<string, unknown>;
|
|
1279
|
+
confirmed?: boolean;
|
|
1280
|
+
}): Promise<WorkflowRunDetail>;
|
|
1281
|
+
respondToWorkflowRun(workflowId: string, runId: string, stepId: string, input: Record<string, unknown>): Promise<WorkflowRunDetail>;
|
|
1148
1282
|
listWorkflowCapabilities(): Promise<WorkflowCapability[]>;
|
|
1283
|
+
upsertWorkflowTemplateProjection(workflowId: string, params: WorkflowTemplateProjectionUpsertParams): Promise<WorkflowTemplateProjectionResult>;
|
|
1284
|
+
getPublicWorkflowTemplateProjection(templateId: string): Promise<PublicWorkflowTemplateProjection>;
|
|
1285
|
+
revokeWorkflowTemplateProjection(workflowId: string): Promise<WorkflowTemplateProjectionRevocationResult>;
|
|
1286
|
+
unrevokeWorkflowTemplateProjection(workflowId: string): Promise<WorkflowTemplateProjectionRevocationResult>;
|
|
1287
|
+
completeImportedWorkflowBinding(workflowId: string, params: WorkflowTemplateBindingCompletionParams): Promise<WorkflowTemplateBindingCompletionResult>;
|
|
1288
|
+
createWorkflowTemplateShortUrl(params: WorkflowTemplateShortUrlParams): Promise<WorkflowTemplateShortUrlResult>;
|
|
1289
|
+
revokeShortUrl(token: string): Promise<ShortUrlRevokeResult>;
|
|
1290
|
+
importWorkflowTemplate(payload: WorkflowTemplateImportPayload): Promise<ImportedWorkflowTemplate>;
|
|
1149
1291
|
startWorkflowInput(params: WorkflowInputStartParams): Promise<WorkflowInputSessionResult>;
|
|
1150
1292
|
getWorkflowInputSession(sessionId: string): Promise<WorkflowInputSessionDetail>;
|
|
1151
1293
|
listWorkflowInputEvents(sessionId: string, afterEventId?: number): Promise<WorkflowInputEvent[]>;
|
|
@@ -1163,6 +1305,16 @@ declare class OpenMatesClient {
|
|
|
1163
1305
|
createUserTask(input: UserTaskCreateInput): Promise<UserTaskRecord>;
|
|
1164
1306
|
updateUserTask(taskId: string, input: UserTaskUpdateInput): Promise<UserTaskRecord>;
|
|
1165
1307
|
startUserTaskWithAI(taskId: string, input?: UserTaskStartAIInput): Promise<UserTaskRecord>;
|
|
1308
|
+
deleteUserTask(taskId: string): Promise<{
|
|
1309
|
+
deleted?: boolean;
|
|
1310
|
+
task_id?: string;
|
|
1311
|
+
}>;
|
|
1312
|
+
completeUserTask(taskId: string, input?: Record<string, unknown>): Promise<UserTaskRecord>;
|
|
1313
|
+
blockUserTask(taskId: string, input?: Record<string, unknown>): Promise<UserTaskRecord>;
|
|
1314
|
+
unblockUserTask(taskId: string, input?: Record<string, unknown>): Promise<UserTaskRecord>;
|
|
1315
|
+
skipUserTask(taskId: string, input?: Record<string, unknown>): Promise<UserTaskRecord>;
|
|
1316
|
+
reorderUserTasks(input: Record<string, unknown>): Promise<UserTaskRecord[]>;
|
|
1317
|
+
postUserTaskAction(taskId: string, action: string, input?: Record<string, unknown>): Promise<UserTaskRecord>;
|
|
1166
1318
|
listUserPlans(filters?: {
|
|
1167
1319
|
status?: UserPlanStatus;
|
|
1168
1320
|
chatId?: string;
|
|
@@ -1362,7 +1514,7 @@ declare class OpenMatesClient {
|
|
|
1362
1514
|
private ensureEmailEncryptionKey;
|
|
1363
1515
|
private hydrateEmailEncryptionKey;
|
|
1364
1516
|
private requireSession;
|
|
1365
|
-
|
|
1517
|
+
getMasterKeyBytes(): Uint8Array;
|
|
1366
1518
|
private decryptTopicPreferences;
|
|
1367
1519
|
private decryptSettingsRecord;
|
|
1368
1520
|
private getValidSessionFromDisk;
|
|
@@ -4129,10 +4281,14 @@ declare class GeneratedAppSkills {
|
|
|
4129
4281
|
interface OpenMatesOptions {
|
|
4130
4282
|
apiKey?: string;
|
|
4131
4283
|
apiUrl?: string;
|
|
4284
|
+
deviceId?: string;
|
|
4285
|
+
deviceIdPath?: string;
|
|
4132
4286
|
}
|
|
4133
4287
|
interface ChatCreateOptions {
|
|
4134
4288
|
saveToAccount?: boolean;
|
|
4135
4289
|
focusMode?: FocusModeSelection;
|
|
4290
|
+
chatId?: string;
|
|
4291
|
+
title?: string;
|
|
4136
4292
|
}
|
|
4137
4293
|
interface ChatSendOptions extends ChatCreateOptions {
|
|
4138
4294
|
history?: Array<Record<string, unknown>> | {
|
|
@@ -4140,6 +4296,8 @@ interface ChatSendOptions extends ChatCreateOptions {
|
|
|
4140
4296
|
};
|
|
4141
4297
|
memoryIds?: string[];
|
|
4142
4298
|
model?: string;
|
|
4299
|
+
recoveryPollIntervalMs?: number;
|
|
4300
|
+
recoveryTimeoutMs?: number;
|
|
4143
4301
|
}
|
|
4144
4302
|
interface ChatListOptions {
|
|
4145
4303
|
limit?: number;
|
|
@@ -4164,6 +4322,26 @@ interface EncryptedChatMetadata {
|
|
|
4164
4322
|
created_at?: string | number;
|
|
4165
4323
|
[key: string]: unknown;
|
|
4166
4324
|
}
|
|
4325
|
+
interface EncryptedDraftRecord {
|
|
4326
|
+
chatId: string;
|
|
4327
|
+
encryptedDraftMd: string;
|
|
4328
|
+
encryptedDraftPreview: string | null;
|
|
4329
|
+
draftV: number;
|
|
4330
|
+
}
|
|
4331
|
+
interface DraftRecord extends EncryptedDraftRecord {
|
|
4332
|
+
markdown: string;
|
|
4333
|
+
preview: string | null;
|
|
4334
|
+
}
|
|
4335
|
+
interface SdkSessionResponse {
|
|
4336
|
+
user?: {
|
|
4337
|
+
id?: string;
|
|
4338
|
+
};
|
|
4339
|
+
key_wrapper?: {
|
|
4340
|
+
encrypted_key?: string;
|
|
4341
|
+
salt?: string;
|
|
4342
|
+
key_iv?: string;
|
|
4343
|
+
};
|
|
4344
|
+
}
|
|
4167
4345
|
interface ChatResponse {
|
|
4168
4346
|
content?: string;
|
|
4169
4347
|
[key: string]: unknown;
|
|
@@ -4195,6 +4373,7 @@ declare class OpenMates {
|
|
|
4195
4373
|
readonly chats: OpenMatesChats;
|
|
4196
4374
|
readonly connectedAccounts: OpenMatesConnectedAccounts;
|
|
4197
4375
|
readonly docs: OpenMatesDocs;
|
|
4376
|
+
readonly drafts: OpenMatesDrafts;
|
|
4198
4377
|
readonly embeds: OpenMatesEmbeds;
|
|
4199
4378
|
readonly feedback: OpenMatesFeedback;
|
|
4200
4379
|
readonly inspirations: OpenMatesInspirations;
|
|
@@ -4210,13 +4389,17 @@ declare class OpenMates {
|
|
|
4210
4389
|
readonly workflows: OpenMatesWorkflows;
|
|
4211
4390
|
private readonly apiKey?;
|
|
4212
4391
|
private readonly apiUrl;
|
|
4392
|
+
private readonly deviceId;
|
|
4393
|
+
private sdkSessionPromise?;
|
|
4213
4394
|
private masterKeyPromise?;
|
|
4214
4395
|
constructor(options?: OpenMatesOptions);
|
|
4215
4396
|
runAppSkill<T = unknown>(appId: string, skillId: string, input: unknown): Promise<T>;
|
|
4216
|
-
request<T>(path: string, body?: unknown): Promise<T>;
|
|
4397
|
+
request<T>(path: string, body?: unknown, timeoutMs?: number, extraHeaders?: Record<string, string>): Promise<T>;
|
|
4217
4398
|
patch<T>(path: string, body?: unknown): Promise<T>;
|
|
4399
|
+
put<T>(path: string, body?: unknown): Promise<T>;
|
|
4218
4400
|
delete<T>(path: string, body?: unknown): Promise<T>;
|
|
4219
4401
|
get<T>(path: string): Promise<T>;
|
|
4402
|
+
getPublic<T>(path: string): Promise<T>;
|
|
4220
4403
|
getRaw(path: string): Promise<{
|
|
4221
4404
|
contentType: string;
|
|
4222
4405
|
filename?: string;
|
|
@@ -4224,6 +4407,7 @@ declare class OpenMates {
|
|
|
4224
4407
|
}>;
|
|
4225
4408
|
webOrigin(): string;
|
|
4226
4409
|
masterKey(): Promise<Uint8Array>;
|
|
4410
|
+
sdkSession(): Promise<SdkSessionResponse>;
|
|
4227
4411
|
resolveEmbedKeyForShare(embedKeys: EmbedKeyRecord[], embedId: string): Promise<Uint8Array | null>;
|
|
4228
4412
|
decryptChatMetadata<T extends EncryptedChatMetadata>(chat: T): Promise<T>;
|
|
4229
4413
|
decryptLoadedChatPayload<T extends Record<string, unknown>>(payload: T): Promise<T>;
|
|
@@ -4232,7 +4416,9 @@ declare class OpenMates {
|
|
|
4232
4416
|
private requestWithMethod;
|
|
4233
4417
|
private getMasterKey;
|
|
4234
4418
|
private loadMasterKey;
|
|
4419
|
+
private getSdkSession;
|
|
4235
4420
|
private headers;
|
|
4421
|
+
private publicHeaders;
|
|
4236
4422
|
private parseResponse;
|
|
4237
4423
|
}
|
|
4238
4424
|
declare class OpenMatesChats {
|
|
@@ -4242,6 +4428,9 @@ declare class OpenMatesChats {
|
|
|
4242
4428
|
search(query: string, options?: ChatListOptions): Promise<EncryptedChatMetadata[]>;
|
|
4243
4429
|
load(chatId: string): Promise<Record<string, unknown>>;
|
|
4244
4430
|
send(message: string, options?: ChatSendOptions): Promise<ChatResponse>;
|
|
4431
|
+
private sendSaved;
|
|
4432
|
+
private pollRecoveryClaim;
|
|
4433
|
+
private openRecoveryClaim;
|
|
4245
4434
|
export(chatId: string, options?: {
|
|
4246
4435
|
format?: "json" | "markdown" | "yaml";
|
|
4247
4436
|
}): Promise<Record<string, unknown>>;
|
|
@@ -4253,6 +4442,15 @@ declare class OpenMatesChats {
|
|
|
4253
4442
|
followUps(chatId: string): Promise<string[]>;
|
|
4254
4443
|
incognito(message: string): Promise<ChatResponse>;
|
|
4255
4444
|
}
|
|
4445
|
+
declare class OpenMatesDrafts {
|
|
4446
|
+
private readonly client;
|
|
4447
|
+
constructor(client: OpenMates);
|
|
4448
|
+
listEncrypted(): Promise<EncryptedDraftRecord[]>;
|
|
4449
|
+
list(): Promise<DraftRecord[]>;
|
|
4450
|
+
getEncrypted(chatId: string): Promise<EncryptedDraftRecord | null>;
|
|
4451
|
+
get(chatId: string): Promise<DraftRecord | null>;
|
|
4452
|
+
private decrypt;
|
|
4453
|
+
}
|
|
4256
4454
|
declare class OpenMatesAccount {
|
|
4257
4455
|
private readonly client;
|
|
4258
4456
|
constructor(client: OpenMates);
|
|
@@ -4389,6 +4587,15 @@ declare class OpenMatesWorkflows {
|
|
|
4389
4587
|
list(): Promise<WorkflowSummary[]>;
|
|
4390
4588
|
temporary(): Promise<WorkflowSummary[]>;
|
|
4391
4589
|
capabilities(): Promise<WorkflowCapability[]>;
|
|
4590
|
+
validateYaml(source: string): Promise<Record<string, unknown>>;
|
|
4591
|
+
createFromYaml(source: string): Promise<{
|
|
4592
|
+
workflow: WorkflowDetail;
|
|
4593
|
+
validation: Record<string, unknown>;
|
|
4594
|
+
}>;
|
|
4595
|
+
updateFromYaml(workflowId: string, source: string): Promise<{
|
|
4596
|
+
workflow: WorkflowDetail;
|
|
4597
|
+
validation: Record<string, unknown>;
|
|
4598
|
+
}>;
|
|
4392
4599
|
startInput(params: WorkflowInputStartParams): Promise<WorkflowInputSessionResult>;
|
|
4393
4600
|
inputSession(sessionId: string): Promise<WorkflowInputSessionDetail>;
|
|
4394
4601
|
inputEvents(sessionId: string, afterEventId?: number): Promise<WorkflowInputEvent[]>;
|
|
@@ -4398,6 +4605,7 @@ declare class OpenMatesWorkflows {
|
|
|
4398
4605
|
get(workflowId: string): Promise<WorkflowDetail>;
|
|
4399
4606
|
create(params: {
|
|
4400
4607
|
title: string;
|
|
4608
|
+
description?: string | null;
|
|
4401
4609
|
graph: WorkflowGraph;
|
|
4402
4610
|
enabled?: boolean;
|
|
4403
4611
|
runContentRetention?: WorkflowRunContentRetention;
|
|
@@ -4409,6 +4617,7 @@ declare class OpenMatesWorkflows {
|
|
|
4409
4617
|
}): Promise<WorkflowDetail>;
|
|
4410
4618
|
update(workflowId: string, params: {
|
|
4411
4619
|
title?: string;
|
|
4620
|
+
description?: string | null;
|
|
4412
4621
|
graph?: WorkflowGraph;
|
|
4413
4622
|
enabled?: boolean;
|
|
4414
4623
|
runContentRetention?: WorkflowRunContentRetention;
|
|
@@ -4419,12 +4628,23 @@ declare class OpenMatesWorkflows {
|
|
|
4419
4628
|
deleted: boolean;
|
|
4420
4629
|
}>;
|
|
4421
4630
|
keep(workflowId: string): Promise<WorkflowDetail>;
|
|
4422
|
-
run(workflowId: string, params
|
|
4631
|
+
run(workflowId: string, params: {
|
|
4632
|
+
idempotencyKey: string;
|
|
4423
4633
|
mode?: "manual" | "test";
|
|
4424
4634
|
input?: Record<string, unknown>;
|
|
4425
4635
|
}): Promise<WorkflowRunDetail>;
|
|
4426
4636
|
runs(workflowId: string): Promise<WorkflowRunDetail[]>;
|
|
4427
4637
|
runDetail(workflowId: string, runId: string): Promise<WorkflowRunDetail>;
|
|
4638
|
+
cancelRun(workflowId: string, runId: string): Promise<WorkflowRunCancellationResult>;
|
|
4639
|
+
respond(workflowId: string, runId: string, stepId: string, input: Record<string, unknown>): Promise<WorkflowRunDetail>;
|
|
4640
|
+
upsertTemplateProjection(workflowId: string, params: WorkflowTemplateProjectionUpsertParams): Promise<WorkflowTemplateProjectionResult>;
|
|
4641
|
+
getPublicTemplateProjection(templateId: string): Promise<PublicWorkflowTemplateProjection>;
|
|
4642
|
+
revokeTemplateProjection(workflowId: string): Promise<WorkflowTemplateProjectionRevocationResult>;
|
|
4643
|
+
unrevokeTemplateProjection(workflowId: string): Promise<WorkflowTemplateProjectionRevocationResult>;
|
|
4644
|
+
completeImportedBinding(workflowId: string, params: WorkflowTemplateBindingCompletionParams): Promise<WorkflowTemplateBindingCompletionResult>;
|
|
4645
|
+
createTemplateShortUrl(params: WorkflowTemplateShortUrlParams): Promise<WorkflowTemplateShortUrlResult>;
|
|
4646
|
+
revokeShortUrl(token: string): Promise<ShortUrlRevokeResult>;
|
|
4647
|
+
importTemplate(payload: WorkflowTemplateImportPayload): Promise<ImportedWorkflowTemplate>;
|
|
4428
4648
|
}
|
|
4429
4649
|
declare class OpenMatesDocs {
|
|
4430
4650
|
private readonly client;
|
|
@@ -4502,4 +4722,4 @@ type AssistantFeedbackDecision = {
|
|
|
4502
4722
|
};
|
|
4503
4723
|
declare function buildAssistantFeedbackDecision(rating: number): AssistantFeedbackDecision;
|
|
4504
4724
|
|
|
4505
|
-
export { APP_SKILL_METADATA, ASSISTANT_FEEDBACK_REPORT_TITLE, ASSISTANT_FEEDBACK_THANKS, type AssistantFeedbackDecision, type AuthMethodsStatus, type BackupCodesResult, type BankTransferOrderDetails, type BankTransferStatus, type CachedChat, type CachedNewChatSuggestion, type ChatCreateOptions, type ChatListOptions, type ChatListPage, type ChatResponse, type CliSignupResult, type DecryptedEmbed, type DecryptedMemoryEntry, type DecryptedMessage, type DecryptedNewChatSuggestion, type DocsFile, type DocsFolder, type DocsSearchResult, type DocsTree, type EncryptedChatMetadata, type FocusModeSelection, type GiftCardBankTransferStatus, INTEREST_TAG_IDS, type InterestTagId, MATE_NAMES, MEMORY_TYPE_REGISTRY, type MemoryFieldDef, type MemoryTypeDef, OpenMates, OpenMatesApiError, OpenMatesClient, type OpenMatesClientOptions, OpenMatesConfigError, type OpenMatesOptions, type OpenMatesSession, type ProjectSourceCapability, type ProjectSourceCreateInput, type ProjectSourceRecord, type ProjectSourceStatus, type ProjectSourceType, SUPPORT_URL, type SyncCache, type TopicPreferencesPayload, type TotpSetupStartResult, type WorkflowCapability, type WorkflowDetail, type WorkflowEdge, type WorkflowGraph, type WorkflowNode, type WorkflowNodeRun, type WorkflowNodeType, type WorkflowRunContentRetention, type WorkflowRunContentStorage, type WorkflowRunDetail, type WorkflowSummary, buildAssistantFeedbackDecision, defaultCloneBranchForVersion, deriveAppUrl, normalizeInterestTagIds, renderSupportInfo };
|
|
4725
|
+
export { APP_SKILL_METADATA, ASSISTANT_FEEDBACK_REPORT_TITLE, ASSISTANT_FEEDBACK_THANKS, type AssistantFeedbackDecision, type AuthMethodsStatus, type AuthoritativeChatReconciliation, type BackupCodesResult, type BankTransferOrderDetails, type BankTransferStatus, type CachedChat, type CachedNewChatSuggestion, type ChatCreateOptions, type ChatListOptions, type ChatListPage, type ChatResponse, type CliSignupResult, type DecryptedDraft, type DecryptedEmbed, type DecryptedMemoryEntry, type DecryptedMessage, type DecryptedNewChatSuggestion, type DocsFile, type DocsFolder, type DocsSearchResult, type DocsTree, type DraftRecord, type EncryptedChatMetadata, type EncryptedDraft, type EncryptedDraftRecord, type FocusModeSelection, type GiftCardBankTransferStatus, INTEREST_TAG_IDS, type InterestTagId, MATE_NAMES, MEMORY_TYPE_REGISTRY, type MemoryFieldDef, type MemoryTypeDef, OpenMates, OpenMatesApiError, OpenMatesClient, type OpenMatesClientOptions, OpenMatesConfigError, type OpenMatesOptions, type OpenMatesSession, type ProjectSourceCapability, type ProjectSourceCreateInput, type ProjectSourceRecord, type ProjectSourceStatus, type ProjectSourceType, SUPPORT_URL, type SyncCache, type TopicPreferencesPayload, type TotpSetupStartResult, type WorkflowCapability, type WorkflowDetail, type WorkflowEdge, type WorkflowGraph, type WorkflowNode, type WorkflowNodeRun, type WorkflowNodeType, type WorkflowRunContentRetention, type WorkflowRunContentStorage, type WorkflowRunDetail, type WorkflowSummary, buildAssistantFeedbackDecision, defaultCloneBranchForVersion, deriveAppUrl, normalizeInterestTagIds, reconcileAuthoritativeChats, renderSupportInfo };
|