@revoengine/sdk 1.0.0 → 2.0.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 +145 -19
- package/dist/{errors-ieF9jeMP.d.cts → errors-nuya4h6b.d.cts} +357 -57
- package/dist/{errors-ieF9jeMP.d.ts → errors-nuya4h6b.d.ts} +357 -57
- package/dist/hosted.cjs +3241 -1235
- package/dist/hosted.cjs.map +1 -1
- package/dist/hosted.d.cts +2 -2
- package/dist/hosted.d.ts +2 -2
- package/dist/hosted.js +3241 -1235
- package/dist/hosted.js.map +1 -1
- package/dist/index.cjs +3245 -1236
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4395 -2543
- package/dist/index.d.ts +4395 -2543
- package/dist/index.js +3245 -1236
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as node_worker_threads from 'node:worker_threads';
|
|
2
2
|
|
|
3
|
-
declare const SDK_VERSION: "
|
|
3
|
+
declare const SDK_VERSION: "2.0.0";
|
|
4
4
|
declare const PROTOCOL_VERSION: 1;
|
|
5
|
-
declare const CONTRACT_REVISION: "
|
|
6
|
-
type RuntimeSurfaceName = 'api' | 'storage' | 'agents';
|
|
5
|
+
declare const CONTRACT_REVISION: "c507295175722cca486af351473cc859b0d5d04c69e12dbc1f149f6b0282012d";
|
|
6
|
+
type RuntimeSurfaceName = 'api' | 'storage' | 'agents' | 'lowCode';
|
|
7
7
|
|
|
8
8
|
// AUTO-GENERATED FILE. DO NOT EDIT DIRECTLY.
|
|
9
9
|
// Sources: api.swagger-contracts.generated.d.ts, api.public.d.ts
|
|
@@ -43,7 +43,7 @@ interface SwaggerAgentCheapTurnPolicyDto {
|
|
|
43
43
|
}
|
|
44
44
|
interface SwaggerAgentConfigDto {
|
|
45
45
|
/** Supported assistant model used when the agent starts a thread. */
|
|
46
|
-
"model"?: "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-5.6-luna"
|
|
46
|
+
"model"?: "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-5.6-luna";
|
|
47
47
|
/** Reasoning effort passed to assistant threads. */
|
|
48
48
|
"reasoningEffort"?: "low" | "medium" | "high" | "xhigh";
|
|
49
49
|
/** Durable execution-mode default used for agent-loop turns. Per-turn fast-path routing and prompt-tier selection are derived by runtime, not configured here. */
|
|
@@ -56,6 +56,8 @@ interface SwaggerAgentConfigDto {
|
|
|
56
56
|
"persona"?: "friendly" | "pragmatic" | "professional" | "concise" | "calm" | "mentor" | "assertive";
|
|
57
57
|
/** Additional per-agent system instructions persisted with the definition. Runtime policy still has higher priority. */
|
|
58
58
|
"systemInstructions"?: string;
|
|
59
|
+
/** Structured operator-owned Agent identity loaded on every autonomous turn. Learned memory cannot mutate this definition. */
|
|
60
|
+
"definition"?: SwaggerAgentDefinitionDto;
|
|
59
61
|
/** Durable cross-run memory defaults such as recall budget, retained summary size, and retention horizon. */
|
|
60
62
|
"memoryPolicy"?: SwaggerAgentMemoryPolicyDto;
|
|
61
63
|
/** Release metadata and rollout controls for governed agent capabilities. */
|
|
@@ -81,6 +83,18 @@ interface SwaggerAgentConfigDto {
|
|
|
81
83
|
/** How the parent reacts when one delegated child fails. */
|
|
82
84
|
"childFailureMode"?: "fail_parent" | "merge_partial";
|
|
83
85
|
}
|
|
86
|
+
interface SwaggerAgentDefinitionDto {
|
|
87
|
+
/** Stable operator-owned identity of the Agent. */
|
|
88
|
+
"identity"?: string;
|
|
89
|
+
/** Stable operator-owned mission of the Agent. */
|
|
90
|
+
"mission"?: string;
|
|
91
|
+
/** Responsibilities owned by the Agent. */
|
|
92
|
+
"responsibilities"?: Array<string>;
|
|
93
|
+
/** Operator-owned principles applied on every Agent turn. */
|
|
94
|
+
"operatingPrinciples"?: Array<string>;
|
|
95
|
+
/** Persistent completion criteria for the Agent role. */
|
|
96
|
+
"successCriteria"?: Array<string>;
|
|
97
|
+
}
|
|
84
98
|
interface SwaggerAgentMemoryPolicyDto {
|
|
85
99
|
/** Whether the runtime may load and persist durable cross-run memory for this agent. */
|
|
86
100
|
"enabled"?: boolean;
|
|
@@ -364,6 +378,8 @@ interface SwaggerDatabaseDefinition {
|
|
|
364
378
|
"name": string;
|
|
365
379
|
/** Description. */
|
|
366
380
|
"desc"?: string | null;
|
|
381
|
+
/** Optional column metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use. */
|
|
382
|
+
"metadata"?: Record<string, unknown>;
|
|
367
383
|
/** You need to specify type [SMALLINT,INTEGER,BIGINT,REAL,DOUBLE PRECISION,NUMERIC,JSON,JSONB,TEXT,UUID,DATE,TIME,TIMETZ,TIMESTAMP,TIMESTAMPTZ,BOOLEAN]. */
|
|
368
384
|
"type": "SMALLINT" | "INTEGER" | "BIGINT" | "REAL" | "DOUBLE PRECISION" | "NUMERIC" | "JSON" | "JSONB" | "TEXT" | "UUID" | "DATE" | "TIME" | "TIMETZ" | "TIMESTAMP" | "TIMESTAMPTZ" | "BOOLEAN";
|
|
369
385
|
/** Provide if this column is primary key. */
|
|
@@ -425,12 +441,83 @@ interface SwaggerPartitionDefinition {
|
|
|
425
441
|
*/
|
|
426
442
|
"remainder"?: number;
|
|
427
443
|
}
|
|
444
|
+
interface SwaggerStorageCellInputDto {
|
|
445
|
+
/** A1 cell address. */
|
|
446
|
+
"address": string;
|
|
447
|
+
/** Literal cell value. Supports JSON-compatible strings, numbers, booleans, arrays, objects, and null. */
|
|
448
|
+
"value"?: string | number | boolean | Record<string, unknown> | Array<unknown> | null;
|
|
449
|
+
/** Excel formula without a leading equals sign. */
|
|
450
|
+
"formula"?: string;
|
|
451
|
+
/** Cached formula result. ExcelJS does not calculate formulas. Supports JSON-compatible strings, numbers, booleans, arrays, objects, and null. */
|
|
452
|
+
"result"?: string | number | boolean | Record<string, unknown> | Array<unknown> | null;
|
|
453
|
+
/** ExcelJS-compatible declarative cell style. */
|
|
454
|
+
"style"?: Record<string, unknown>;
|
|
455
|
+
}
|
|
456
|
+
interface SwaggerStorageCsvOptionsDto {
|
|
457
|
+
/** Output character encoding. Input encoding is detected when omitted. */
|
|
458
|
+
"encoding"?: string;
|
|
459
|
+
/** Emit a byte order mark at the start of the file. */
|
|
460
|
+
"bom"?: boolean;
|
|
461
|
+
/** Column delimiter. */
|
|
462
|
+
"delimiter"?: string;
|
|
463
|
+
/** Record delimiter. */
|
|
464
|
+
"recordDelimiter"?: "\n" | "\r" | "\r\n";
|
|
465
|
+
/** Quote character. */
|
|
466
|
+
"quote"?: string;
|
|
467
|
+
/** Quote escape character. */
|
|
468
|
+
"escape"?: string;
|
|
469
|
+
/** Prefix spreadsheet formula-like values to prevent CSV formula injection. */
|
|
470
|
+
"escapeFormulae"?: boolean;
|
|
471
|
+
}
|
|
428
472
|
interface SwaggerStorageRetentionDto {
|
|
429
473
|
/** Positive lifetime in seconds. The lifetime starts when the file is finalized. */
|
|
430
474
|
"ttlSeconds"?: number;
|
|
431
475
|
/** Absolute future expiration timestamp in ISO 8601 format. */
|
|
432
476
|
"expiresAt"?: string;
|
|
433
477
|
}
|
|
478
|
+
interface SwaggerStorageSheetColumnDto {
|
|
479
|
+
/** Object key used when appending row objects. */
|
|
480
|
+
"key": string;
|
|
481
|
+
/** Visible header. Defaults to key. */
|
|
482
|
+
"header"?: string;
|
|
483
|
+
/** Logical value type retained in XLSX fileStats and used by typed row producers. */
|
|
484
|
+
"type"?: "string" | "number" | "boolean" | "date";
|
|
485
|
+
/** Column width in Excel character units. */
|
|
486
|
+
"width"?: number;
|
|
487
|
+
/** Hide the worksheet column. */
|
|
488
|
+
"hidden"?: boolean;
|
|
489
|
+
/** ExcelJS-compatible declarative column style. */
|
|
490
|
+
"style"?: Record<string, unknown>;
|
|
491
|
+
}
|
|
492
|
+
interface SwaggerStorageSheetDataPartDto {
|
|
493
|
+
/** Target worksheet name. */
|
|
494
|
+
"sheet": string;
|
|
495
|
+
/** Rows represented as keyed objects or positional value arrays. In writeMode "direct", append row-only payloads to worksheets declared at session creation. */
|
|
496
|
+
"rows"?: Array<Record<string, unknown> | Array<unknown>>;
|
|
497
|
+
/** Sparse cells addressed independently from table rows. Supported in writeMode "staged"; direct XLSX parts must be row-only. */
|
|
498
|
+
"cells"?: Array<SwaggerStorageCellInputDto>;
|
|
499
|
+
}
|
|
500
|
+
interface SwaggerStorageSheetFreezeDto {
|
|
501
|
+
"rows"?: number;
|
|
502
|
+
"columns"?: number;
|
|
503
|
+
}
|
|
504
|
+
interface SwaggerStorageSheetOptionsDto {
|
|
505
|
+
/** Worksheet name. */
|
|
506
|
+
"name": string;
|
|
507
|
+
"state"?: "visible" | "hidden" | "veryHidden";
|
|
508
|
+
"table"?: SwaggerStorageSheetTableDto;
|
|
509
|
+
"freeze"?: SwaggerStorageSheetFreezeDto;
|
|
510
|
+
}
|
|
511
|
+
interface SwaggerStorageSheetTableDto {
|
|
512
|
+
/** Top-left table cell. */
|
|
513
|
+
"origin"?: string;
|
|
514
|
+
/** Write a header row. */
|
|
515
|
+
"header"?: boolean;
|
|
516
|
+
/** Add an auto-filter to the table header. */
|
|
517
|
+
"autoFilter"?: boolean;
|
|
518
|
+
/** Stable column order. Required for every worksheet in writeMode "direct"; optional in "staged" mode, where keys may be inferred from appended rows. */
|
|
519
|
+
"columns"?: Array<SwaggerStorageSheetColumnDto>;
|
|
520
|
+
}
|
|
434
521
|
interface SwaggerWebhookRequestDetailsDto {
|
|
435
522
|
"url": string;
|
|
436
523
|
"method": "POST" | "GET" | "HEAD" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
|
|
@@ -444,6 +531,8 @@ interface AgentRunCancelInput {
|
|
|
444
531
|
"reason"?: string;
|
|
445
532
|
}
|
|
446
533
|
interface DatabaseCloneInput {
|
|
534
|
+
/** Replacement user metadata for the root clone only. Omit to inherit source metadata; pass {} to clear user metadata. Maximum 16 KiB and 64 top-level keys. Keys starting with "__" are reserved for backend use. */
|
|
535
|
+
"metadata"?: Record<string, unknown>;
|
|
447
536
|
/** Optional audit override. Defaults to the source logical table setting. */
|
|
448
537
|
"audit"?: boolean;
|
|
449
538
|
/** Optional target root database name. Defaults to the source database name with "_Clone" suffix. */
|
|
@@ -480,7 +569,7 @@ interface AgentCreateInput {
|
|
|
480
569
|
"ownerId"?: string;
|
|
481
570
|
/** Owner type, typically USER or GROUP. */
|
|
482
571
|
"ownerType"?: string;
|
|
483
|
-
/** Optional resource metadata. Top-level keys starting with "__" are reserved for backend use. */
|
|
572
|
+
/** Optional resource metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use. */
|
|
484
573
|
"metadata"?: Record<string, unknown>;
|
|
485
574
|
/** Persisted agent identity and runtime defaults such as model, persona, custom system instructions, memory policy, planning mode, and loop limits. Per-turn prompt tier, fast-path eligibility, and route telemetry are derived by runtime and are not accepted here. */
|
|
486
575
|
"config"?: SwaggerAgentConfigDto;
|
|
@@ -496,8 +585,8 @@ interface AgentInboxItemCreateInput {
|
|
|
496
585
|
"payload"?: Record<string, unknown>;
|
|
497
586
|
/** Queue priority. Higher values are claimed first. */
|
|
498
587
|
"priority"?: number;
|
|
499
|
-
/** Optional
|
|
500
|
-
"
|
|
588
|
+
/** Optional claim deadline within 30 days of acceptance. The inbox item is recorded immediately. */
|
|
589
|
+
"scheduleFor"?: string | number;
|
|
501
590
|
/** Optional de-duplication key unique per agent among non-terminal inbox items. */
|
|
502
591
|
"dedupeKey"?: string;
|
|
503
592
|
}
|
|
@@ -510,7 +599,7 @@ interface DatabaseCreateInput {
|
|
|
510
599
|
"category"?: string;
|
|
511
600
|
/** Description. */
|
|
512
601
|
"desc"?: string;
|
|
513
|
-
/** Optional resource metadata. Top-level keys starting with "__" are reserved for backend use. */
|
|
602
|
+
/** Optional resource metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use. */
|
|
514
603
|
"metadata"?: Record<string, unknown>;
|
|
515
604
|
/** Provide if access should be restricted. */
|
|
516
605
|
"restricted": boolean;
|
|
@@ -522,6 +611,8 @@ interface DatabaseCreateInput {
|
|
|
522
611
|
"definition"?: Array<SwaggerDatabaseDefinition>;
|
|
523
612
|
/** Name. */
|
|
524
613
|
"parent"?: string;
|
|
614
|
+
/** Expected immutable ID of the parent selected by name. Requires parent; rejects a stale selection after rename or name reuse. */
|
|
615
|
+
"parentDatabaseId"?: string;
|
|
525
616
|
/** Partition configuration. */
|
|
526
617
|
"partition"?: SwaggerPartitionDefinition;
|
|
527
618
|
}
|
|
@@ -530,8 +621,8 @@ interface AssistantMessageInput {
|
|
|
530
621
|
"content": string;
|
|
531
622
|
/** Optional hidden draft user message id created before attachment uploads. When provided, the send operation finalizes that draft instead of creating a new user message. */
|
|
532
623
|
"preflightMessageId"?: string;
|
|
533
|
-
/** Optional assistant execution-model override. GPT-5.6 Luna is the default; Sol, Terra,
|
|
534
|
-
"model"?: "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-5.6-luna"
|
|
624
|
+
/** Optional assistant execution-model override. GPT-5.6 Luna is the default; GPT-5.6 Sol, Terra, and Luna are supported. */
|
|
625
|
+
"model"?: "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-5.6-luna";
|
|
535
626
|
/** Optional assistant reasoning effort override: low, medium, high, or xhigh. Defaults to low. */
|
|
536
627
|
"reasoningEffort"?: "low" | "medium" | "high" | "xhigh";
|
|
537
628
|
/** Alias for reasoningEffort used by assistant preferences. Prefer reasoningEffort for new clients. */
|
|
@@ -566,7 +657,7 @@ interface StorageFolderInput {
|
|
|
566
657
|
"parentStorageEntryId"?: string;
|
|
567
658
|
/** Optional provider config id for root-level folders. Omit for the internal/default provider. Ignored when parentStorageEntryId is provided. */
|
|
568
659
|
"storageProviderConfigId"?: string;
|
|
569
|
-
/** Folder metadata. Top-level keys starting with "__" are reserved for backend use. */
|
|
660
|
+
/** Folder metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use. */
|
|
570
661
|
"metadata"?: Record<string, unknown>;
|
|
571
662
|
/** Optional external reference id. */
|
|
572
663
|
"refId"?: string;
|
|
@@ -606,9 +697,15 @@ interface StorageUploadSessionInput {
|
|
|
606
697
|
"tier"?: "HOT" | "WARM" | "COLD" | "FROZEN";
|
|
607
698
|
/** Upload mode. Use "direct" for provider resumable uploads, "chunked" for explicit numbered parts, and "incremental" for server-assigned part numbering by default. Incremental sessions can still re-upload a specific part number when repairing an upload. */
|
|
608
699
|
"uploadMode"?: "direct" | "chunked" | "incremental";
|
|
609
|
-
/**
|
|
700
|
+
/** Post-finalize compute mode for this upload session. Defaults to sync for XLSX and text/* sessions and none for other binary sessions; an explicit value always overrides the default. */
|
|
610
701
|
"computeStats"?: "none" | "sync" | "async";
|
|
611
|
-
/**
|
|
702
|
+
/** Structured file materialization mode. Use "direct" for a predeclared CSV/XLSX layout and one-pass finalization. For direct XLSX, declare every worksheet and its table.columns before the first append, and send row-only parts. The default "staged" mode preserves inferred columns, sparse cells, formulas, dynamic worksheets, and existing integration behavior. */
|
|
703
|
+
"writeMode"?: "staged" | "direct";
|
|
704
|
+
/** CSV dialect used when row payloads are appended to a text/csv session. */
|
|
705
|
+
"csv"?: SwaggerStorageCsvOptionsDto;
|
|
706
|
+
/** Workbook worksheet layout. XLSX is inferred from contentTypeHint. In writeMode "direct", declare every worksheet here and configure table.columns for each one. */
|
|
707
|
+
"sheets"?: Array<SwaggerStorageSheetOptionsDto>;
|
|
708
|
+
/** File metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use. */
|
|
612
709
|
"metadata"?: Record<string, unknown>;
|
|
613
710
|
/** Optional external reference id. */
|
|
614
711
|
"refId"?: string;
|
|
@@ -624,7 +721,7 @@ interface StorageUploadSessionInput {
|
|
|
624
721
|
"users"?: Array<string>;
|
|
625
722
|
}
|
|
626
723
|
interface StorageUploadSessionFinalizeInput {
|
|
627
|
-
/** Optional metadata replacement at finalize time. Top-level keys starting with "__" are reserved for backend use. */
|
|
724
|
+
/** Optional metadata replacement at finalize time. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use. */
|
|
628
725
|
"metadata"?: Record<string, unknown>;
|
|
629
726
|
/** Optional post-finalize compute mode. */
|
|
630
727
|
"computeStats"?: "none" | "sync" | "async";
|
|
@@ -660,7 +757,7 @@ interface StoragePutObjectInput {
|
|
|
660
757
|
"dataEncoding"?: "utf8" | "base64";
|
|
661
758
|
/** Mime type of the object. */
|
|
662
759
|
"mimeType"?: string;
|
|
663
|
-
/**
|
|
760
|
+
/** Post-write compute mode. Defaults to sync for text/* objects and none for other binary objects; an explicit value always overrides the default. */
|
|
664
761
|
"computeStats"?: "none" | "sync" | "async";
|
|
665
762
|
/** Whether the finalized entry should be restricted. */
|
|
666
763
|
"restricted"?: boolean;
|
|
@@ -674,7 +771,7 @@ interface StoragePutObjectInput {
|
|
|
674
771
|
"refType"?: string;
|
|
675
772
|
/** Optional external reference version. */
|
|
676
773
|
"refVer"?: number;
|
|
677
|
-
/** Entry metadata. Top-level keys starting with "__" are reserved for backend use. */
|
|
774
|
+
/** Entry metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use. */
|
|
678
775
|
"metadata"?: Record<string, unknown>;
|
|
679
776
|
/** Logical storage lifecycle tier. Select only when creating a new file or upload session; existing files keep their tier.
|
|
680
777
|
HOT: Active files used in live workflows, previews, and frequent downloads.
|
|
@@ -684,6 +781,8 @@ interface StoragePutObjectInput {
|
|
|
684
781
|
"tier"?: "HOT" | "WARM" | "COLD" | "FROZEN";
|
|
685
782
|
}
|
|
686
783
|
interface AssistantActionResolutionInput {
|
|
784
|
+
/** Optimistic action version used as the idempotency key together with the action id. */
|
|
785
|
+
"actionVersion"?: number;
|
|
687
786
|
/** Resolution decision for the pending action. */
|
|
688
787
|
"decision": "approve" | "approve_all_for_turn" | "reject" | "submit";
|
|
689
788
|
/** Optional approval item id when resolving one item from a multi-approval action. */
|
|
@@ -695,7 +794,7 @@ interface AssistantActionResolutionInput {
|
|
|
695
794
|
/** Optional flag selecting deadline-bounded background provider recovery. On the SSE route it also allows the resumed turn to continue after client disconnect. Streamed action resolution defaults this to true. */
|
|
696
795
|
"backgroundProcessing"?: boolean;
|
|
697
796
|
/** Optional assistant model override for the resumed turn after this action is resolved. */
|
|
698
|
-
"model"?: "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-5.6-luna"
|
|
797
|
+
"model"?: "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-5.6-luna";
|
|
699
798
|
/** Optional assistant reasoning effort override for the resumed turn: low, medium, high, or xhigh. */
|
|
700
799
|
"reasoningEffort"?: "low" | "medium" | "high" | "xhigh";
|
|
701
800
|
/** Alias for reasoningEffort used by assistant preferences. Prefer reasoningEffort for new clients. */
|
|
@@ -724,8 +823,8 @@ interface AgentRunInput {
|
|
|
724
823
|
"triggerRefType"?: string;
|
|
725
824
|
/** Optional external reference id for correlation. */
|
|
726
825
|
"triggerRefId"?: string;
|
|
727
|
-
/** Optional
|
|
728
|
-
"
|
|
826
|
+
/** Optional first-dispatch deadline, from acceptance through 30 days ahead. The run is recorded immediately. */
|
|
827
|
+
"scheduleFor"?: string | number;
|
|
729
828
|
/** Optional run-scoped state merged into the initial supervisor state. */
|
|
730
829
|
"state"?: Record<string, unknown>;
|
|
731
830
|
/** Optional registry plugin ids attached for this run. */
|
|
@@ -748,7 +847,7 @@ interface AgentUpdateInput {
|
|
|
748
847
|
"ownerId"?: string;
|
|
749
848
|
/** Updated owner type. */
|
|
750
849
|
"ownerType"?: string;
|
|
751
|
-
/** Replacement resource metadata. Top-level keys starting with "__" are reserved for backend use. */
|
|
850
|
+
/** Replacement resource metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use. */
|
|
752
851
|
"metadata"?: Record<string, unknown>;
|
|
753
852
|
/** Replacement persisted agent identity and runtime defaults. Fast-path routing, prompt tier, and per-turn telemetry stay runtime-derived. */
|
|
754
853
|
"config"?: SwaggerAgentConfigDto;
|
|
@@ -766,8 +865,8 @@ interface AgentInboxItemUpdateInput {
|
|
|
766
865
|
"payload"?: Record<string, unknown>;
|
|
767
866
|
/** Queue priority. Higher values are claimed first. */
|
|
768
867
|
"priority"?: number;
|
|
769
|
-
/** Optional
|
|
770
|
-
"
|
|
868
|
+
/** Optional updated claim deadline within 30 days of this request. */
|
|
869
|
+
"scheduleFor"?: string | number;
|
|
771
870
|
/** Optional de-duplication key unique per agent among non-terminal inbox items. */
|
|
772
871
|
"dedupeKey"?: string;
|
|
773
872
|
}
|
|
@@ -780,7 +879,7 @@ interface DatabaseUpdateInput {
|
|
|
780
879
|
"category"?: string;
|
|
781
880
|
/** Description. */
|
|
782
881
|
"desc"?: string;
|
|
783
|
-
/** Replacement resource metadata. Top-level keys starting with "__" are reserved for backend use. */
|
|
882
|
+
/** Replacement resource metadata. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use. */
|
|
784
883
|
"metadata"?: Record<string, unknown>;
|
|
785
884
|
/** Provide if access should be restricted. */
|
|
786
885
|
"restricted"?: boolean;
|
|
@@ -798,7 +897,7 @@ interface StorageEntryUpdateInput {
|
|
|
798
897
|
"retention"?: SwaggerStorageRetentionDto | null;
|
|
799
898
|
/** New display name. */
|
|
800
899
|
"name"?: string;
|
|
801
|
-
/** Metadata replacement. Top-level keys starting with "__" are reserved for backend use. */
|
|
900
|
+
/** Metadata replacement. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use. */
|
|
802
901
|
"metadata"?: Record<string, unknown>;
|
|
803
902
|
/** Whether this entry is restricted to the provided users/groups. */
|
|
804
903
|
"restricted"?: boolean;
|
|
@@ -829,9 +928,13 @@ interface AssistantThreadTitleInput {
|
|
|
829
928
|
}
|
|
830
929
|
interface StorageUploadPartInput {
|
|
831
930
|
/** Part payload. Use base64 for binary payloads. */
|
|
832
|
-
"data"
|
|
931
|
+
"data"?: string | Array<string>;
|
|
833
932
|
/** Payload encoding. */
|
|
834
933
|
"dataEncoding"?: "utf8" | "base64";
|
|
934
|
+
/** Rows represented as keyed objects or positional value arrays for a single-sheet CSV or XLSX session. The target sheet is inferred. */
|
|
935
|
+
"rows"?: Array<Record<string, unknown> | Array<unknown>>;
|
|
936
|
+
/** Rows and optional sparse cells for one or more declared XLSX worksheets. In writeMode "direct", each worksheet must have configured table.columns and every part must be row-only. */
|
|
937
|
+
"sheets"?: Array<SwaggerStorageSheetDataPartDto>;
|
|
835
938
|
}
|
|
836
939
|
interface WebhookInput {
|
|
837
940
|
/** Optional Id of webhook. */
|
|
@@ -850,7 +953,7 @@ interface WebhookInput {
|
|
|
850
953
|
"maskDetails"?: Array<string>;
|
|
851
954
|
/** Override creator. */
|
|
852
955
|
"createdBy"?: string;
|
|
853
|
-
/** Optional key/value metadata for grouping and querying webhooks. Top-level keys starting with "__" are reserved for backend use. */
|
|
956
|
+
/** Optional key/value metadata for grouping and querying webhooks. Values may use any JSON type. Maximum 16 KiB and 64 top-level keys. Top-level keys starting with "__" are reserved for backend use. */
|
|
854
957
|
"metadata"?: Record<string, unknown>;
|
|
855
958
|
}
|
|
856
959
|
/**
|
|
@@ -1139,30 +1242,98 @@ interface GetDatabaseDataResponse<T = any> {
|
|
|
1139
1242
|
cache?: any;
|
|
1140
1243
|
}
|
|
1141
1244
|
interface BufferConstructor {
|
|
1142
|
-
new (
|
|
1143
|
-
from(
|
|
1144
|
-
|
|
1245
|
+
new (value: string | number | number[] | Uint8Array | ArrayBuffer, encoding?: string): Buffer;
|
|
1246
|
+
from(array: any[]): Buffer;
|
|
1247
|
+
from(arrayBuffer: ArrayBufferLike, byteOffset?: number, length?: number): Buffer;
|
|
1248
|
+
from(buffer: Buffer | Uint8Array): Buffer;
|
|
1249
|
+
from(str: string, encoding?: string): Buffer;
|
|
1250
|
+
isBuffer(obj: any): obj is Buffer;
|
|
1251
|
+
isEncoding(encoding: string): boolean;
|
|
1252
|
+
byteLength(string: string, encoding?: string): number;
|
|
1253
|
+
concat(list: readonly Uint8Array[], totalLength?: number): Buffer;
|
|
1254
|
+
compare(buf1: Buffer, buf2: Buffer): number;
|
|
1255
|
+
alloc(size: number, fill?: string | Buffer | number, encoding?: string): Buffer;
|
|
1145
1256
|
allocUnsafe(size: number): Buffer;
|
|
1146
|
-
|
|
1257
|
+
allocUnsafeSlow(size: number): Buffer;
|
|
1147
1258
|
}
|
|
1148
|
-
/**
|
|
1149
|
-
|
|
1150
|
-
*
|
|
1151
|
-
* This is not the full Node.js Buffer API. For base64, base64url, hex,
|
|
1152
|
-
* hashing, signatures, or random bytes, prefer the matching util.* helper.
|
|
1153
|
-
*/
|
|
1154
|
-
interface Buffer extends Uint8Array {
|
|
1155
|
-
toString(encoding?: 'utf-8' | 'utf8'): string;
|
|
1259
|
+
/** Browser Buffer 5.7.1, without other Node.js globals. */
|
|
1260
|
+
interface Buffer extends Uint8Array<ArrayBuffer> {
|
|
1156
1261
|
inspect(): string;
|
|
1262
|
+
write(string: string, offset?: number, length?: number, encoding?: string): number;
|
|
1263
|
+
toString(encoding?: string, start?: number, end?: number): string;
|
|
1264
|
+
toJSON(): {
|
|
1265
|
+
type: 'Buffer';
|
|
1266
|
+
data: any[];
|
|
1267
|
+
};
|
|
1268
|
+
equals(otherBuffer: Buffer): boolean;
|
|
1269
|
+
compare(otherBuffer: Buffer, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): number;
|
|
1270
|
+
copy(targetBuffer: Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
|
|
1271
|
+
slice(start?: number, end?: number): Buffer;
|
|
1272
|
+
writeUIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
|
|
1273
|
+
writeUIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
|
|
1274
|
+
writeIntLE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
|
|
1275
|
+
writeIntBE(value: number, offset: number, byteLength: number, noAssert?: boolean): number;
|
|
1276
|
+
readUIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
|
|
1277
|
+
readUIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
|
|
1278
|
+
readIntLE(offset: number, byteLength: number, noAssert?: boolean): number;
|
|
1279
|
+
readIntBE(offset: number, byteLength: number, noAssert?: boolean): number;
|
|
1280
|
+
readUInt8(offset: number, noAssert?: boolean): number;
|
|
1281
|
+
readUInt16LE(offset: number, noAssert?: boolean): number;
|
|
1282
|
+
readUInt16BE(offset: number, noAssert?: boolean): number;
|
|
1283
|
+
readUInt32LE(offset: number, noAssert?: boolean): number;
|
|
1284
|
+
readUInt32BE(offset: number, noAssert?: boolean): number;
|
|
1285
|
+
readInt8(offset: number, noAssert?: boolean): number;
|
|
1286
|
+
readInt16LE(offset: number, noAssert?: boolean): number;
|
|
1287
|
+
readInt16BE(offset: number, noAssert?: boolean): number;
|
|
1288
|
+
readInt32LE(offset: number, noAssert?: boolean): number;
|
|
1289
|
+
readInt32BE(offset: number, noAssert?: boolean): number;
|
|
1290
|
+
readFloatLE(offset: number, noAssert?: boolean): number;
|
|
1291
|
+
readFloatBE(offset: number, noAssert?: boolean): number;
|
|
1292
|
+
readDoubleLE(offset: number, noAssert?: boolean): number;
|
|
1293
|
+
readDoubleBE(offset: number, noAssert?: boolean): number;
|
|
1294
|
+
reverse(): this;
|
|
1295
|
+
swap16(): Buffer;
|
|
1296
|
+
swap32(): Buffer;
|
|
1297
|
+
swap64(): Buffer;
|
|
1298
|
+
writeUInt8(value: number, offset: number, noAssert?: boolean): number;
|
|
1299
|
+
writeUInt16LE(value: number, offset: number, noAssert?: boolean): number;
|
|
1300
|
+
writeUInt16BE(value: number, offset: number, noAssert?: boolean): number;
|
|
1301
|
+
writeUInt32LE(value: number, offset: number, noAssert?: boolean): number;
|
|
1302
|
+
writeUInt32BE(value: number, offset: number, noAssert?: boolean): number;
|
|
1303
|
+
writeInt8(value: number, offset: number, noAssert?: boolean): number;
|
|
1304
|
+
writeInt16LE(value: number, offset: number, noAssert?: boolean): number;
|
|
1305
|
+
writeInt16BE(value: number, offset: number, noAssert?: boolean): number;
|
|
1306
|
+
writeInt32LE(value: number, offset: number, noAssert?: boolean): number;
|
|
1307
|
+
writeInt32BE(value: number, offset: number, noAssert?: boolean): number;
|
|
1308
|
+
writeFloatLE(value: number, offset: number, noAssert?: boolean): number;
|
|
1309
|
+
writeFloatBE(value: number, offset: number, noAssert?: boolean): number;
|
|
1310
|
+
writeDoubleLE(value: number, offset: number, noAssert?: boolean): number;
|
|
1311
|
+
writeDoubleBE(value: number, offset: number, noAssert?: boolean): number;
|
|
1312
|
+
fill(value: any, offset?: number, end?: number, encoding?: string): this;
|
|
1313
|
+
indexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number;
|
|
1314
|
+
lastIndexOf(value: string | number | Buffer, byteOffset?: number, encoding?: string): number;
|
|
1315
|
+
includes(value: string | number | Buffer, byteOffset?: number, encoding?: string): boolean;
|
|
1157
1316
|
}
|
|
1158
1317
|
declare var Buffer: BufferConstructor;
|
|
1159
1318
|
interface LooseObject<T> {
|
|
1160
1319
|
[key: string]: T;
|
|
1161
1320
|
}
|
|
1321
|
+
/** Absolute automation execution time. Numeric values are Unix timestamps in milliseconds. */
|
|
1322
|
+
type AutomationScheduleFor = Date | string | number;
|
|
1323
|
+
interface AutomationScheduleOptions {
|
|
1324
|
+
/** Absolute time as Date, ISO 8601 date-time, or Unix timestamp in milliseconds. Maximum horizon: 30 days. */
|
|
1325
|
+
scheduleFor?: AutomationScheduleFor;
|
|
1326
|
+
}
|
|
1327
|
+
interface TriggerEventOptions extends AutomationScheduleOptions {
|
|
1328
|
+
/** Searchable event metadata (max 16 KiB and 64 top-level keys). Top-level keys starting with "__" are reserved. */
|
|
1329
|
+
metadata?: LooseObject<unknown>;
|
|
1330
|
+
}
|
|
1162
1331
|
interface DatabaseDefinition {
|
|
1163
1332
|
databaseDefinitionId?: string;
|
|
1164
1333
|
name: string;
|
|
1165
1334
|
desc: string | null;
|
|
1335
|
+
/** Optional column metadata (max 16 KiB and 64 top-level keys). Top-level keys starting with "__" are reserved. */
|
|
1336
|
+
metadata?: Record<string, unknown>;
|
|
1166
1337
|
type: 'SMALLINT' | 'INTEGER' | 'BIGINT' | 'REAL' | 'DOUBLE PRECISION' | 'NUMERIC' | 'JSON' | 'JSONB' | 'TEXT' | 'TIME' | 'DATE' | 'TIMETZ' | 'TIMESTAMP' | 'TIMESTAMPTZ' | 'BOOLEAN';
|
|
1167
1338
|
isPrimaryKey: boolean;
|
|
1168
1339
|
isArray: boolean;
|
|
@@ -1175,6 +1346,10 @@ interface DatabaseDefinition {
|
|
|
1175
1346
|
interface Database extends BaseProperties {
|
|
1176
1347
|
databaseId?: string;
|
|
1177
1348
|
name: string;
|
|
1349
|
+
parent?: string | null;
|
|
1350
|
+
master?: string | null;
|
|
1351
|
+
parentDatabaseId?: string | null;
|
|
1352
|
+
masterDatabaseId?: string | null;
|
|
1178
1353
|
category: string | null;
|
|
1179
1354
|
desc: string | null;
|
|
1180
1355
|
restricted: boolean;
|
|
@@ -1275,7 +1450,7 @@ interface HttpStorageSourceRef {
|
|
|
1275
1450
|
}
|
|
1276
1451
|
type HttpStorageTargetRef =
|
|
1277
1452
|
/** Creates a new Storage entry and writes the complete HTTP response into it. */
|
|
1278
|
-
(Omit<StorageUploadSessionInput, 'replaceStorageEntryId' | 'uploadMode'> & {
|
|
1453
|
+
(Omit<StorageUploadSessionInput, 'replaceStorageEntryId' | 'replaceExpectedVersion' | 'uploadMode'> & {
|
|
1279
1454
|
name: string;
|
|
1280
1455
|
namespace?: string;
|
|
1281
1456
|
})
|
|
@@ -1287,6 +1462,8 @@ type HttpStorageTargetRef =
|
|
|
1287
1462
|
contentTypeHint?: string;
|
|
1288
1463
|
computeStats?: 'none' | 'sync' | 'async';
|
|
1289
1464
|
metadata?: LooseObject<any>;
|
|
1465
|
+
} | {
|
|
1466
|
+
storageUploadSessionId: string;
|
|
1290
1467
|
};
|
|
1291
1468
|
interface HttpRequestOptionsInterface {
|
|
1292
1469
|
//@default: undefined
|
|
@@ -1298,9 +1475,9 @@ interface HttpRequestOptionsInterface {
|
|
|
1298
1475
|
* when an integration should expose an explicit, self-documenting JSON contract.
|
|
1299
1476
|
*/
|
|
1300
1477
|
//@default: 'json'
|
|
1301
|
-
responseType?: 'json' | 'base64buffer' | 'document' | 'text' | '
|
|
1478
|
+
responseType?: 'json' | 'base64buffer' | 'document' | 'text' | 'storage';
|
|
1302
1479
|
//@default: 'json'
|
|
1303
|
-
requestType?: 'json' | 'base64buffer' | 'form-data' | 'text' | '
|
|
1480
|
+
requestType?: 'json' | 'base64buffer' | 'form-data' | 'text' | 'storage';
|
|
1304
1481
|
//@default: false
|
|
1305
1482
|
currentCredentials?: boolean;
|
|
1306
1483
|
}
|
|
@@ -1450,9 +1627,37 @@ interface StorageFileReadOptions {
|
|
|
1450
1627
|
buffer?: boolean;
|
|
1451
1628
|
start?: number;
|
|
1452
1629
|
end?: number;
|
|
1630
|
+
/** Continue a structured CSV/XLSX read. Cursor restores sheet and batch position. */
|
|
1631
|
+
cursor?: string;
|
|
1632
|
+
/** XLSX sheet name. The first visible sheet is used when omitted. */
|
|
1633
|
+
sheet?: string;
|
|
1634
|
+
/** One-based source header row. Pass null when the file has no header. */
|
|
1635
|
+
headerRow?: number | null;
|
|
1636
|
+
/** Override CSV source encoding when auto-detection is not sufficient. */
|
|
1637
|
+
encoding?: string;
|
|
1638
|
+
delimiter?: string;
|
|
1639
|
+
recordDelimiter?: '\n' | '\r' | '\r\n';
|
|
1640
|
+
quote?: string;
|
|
1641
|
+
escape?: string;
|
|
1642
|
+
/** Rows per persisted storage index page. Defaults to 100,000 and cannot exceed 100,000. */
|
|
1643
|
+
batchSize?: number;
|
|
1644
|
+
/** Rows returned by this call. Defaults to the index page size and cannot exceed 100,000. */
|
|
1645
|
+
limit?: number;
|
|
1646
|
+
/** Optional structured projection. Omit to return every source column. */
|
|
1647
|
+
columns?: Array<string | {
|
|
1648
|
+
source: string;
|
|
1649
|
+
key?: string;
|
|
1650
|
+
type?: 'string' | 'number' | 'boolean' | 'date';
|
|
1651
|
+
}>;
|
|
1453
1652
|
}
|
|
1454
1653
|
interface StorageFileStatsOptions {
|
|
1455
1654
|
separator?: string;
|
|
1655
|
+
encoding?: string;
|
|
1656
|
+
delimiter?: string;
|
|
1657
|
+
recordDelimiter?: '\n' | '\r' | '\r\n';
|
|
1658
|
+
quote?: string;
|
|
1659
|
+
escape?: string;
|
|
1660
|
+
headerRow?: number | null;
|
|
1456
1661
|
reloadStats?: boolean;
|
|
1457
1662
|
batchSize?: number;
|
|
1458
1663
|
}
|
|
@@ -1463,6 +1668,46 @@ interface StorageFileStats {
|
|
|
1463
1668
|
batches?: number;
|
|
1464
1669
|
batchSize?: number;
|
|
1465
1670
|
encoding?: string | null;
|
|
1671
|
+
format?: 'csv' | 'xlsx';
|
|
1672
|
+
bom?: boolean;
|
|
1673
|
+
delimiter?: string;
|
|
1674
|
+
recordDelimiter?: string;
|
|
1675
|
+
quote?: string;
|
|
1676
|
+
escape?: string;
|
|
1677
|
+
rowCount?: number;
|
|
1678
|
+
headers?: Array<{
|
|
1679
|
+
key: string;
|
|
1680
|
+
header: string;
|
|
1681
|
+
}>;
|
|
1682
|
+
sheets?: Array<{
|
|
1683
|
+
name: string;
|
|
1684
|
+
state: 'visible' | 'hidden' | 'veryHidden';
|
|
1685
|
+
rowCount: number;
|
|
1686
|
+
batches: number;
|
|
1687
|
+
columns: Array<{
|
|
1688
|
+
key: string;
|
|
1689
|
+
header: string;
|
|
1690
|
+
}>;
|
|
1691
|
+
}>;
|
|
1692
|
+
}
|
|
1693
|
+
interface StorageStructuredFileDataPage {
|
|
1694
|
+
format: 'csv' | 'xlsx';
|
|
1695
|
+
sheet: string | null;
|
|
1696
|
+
headers: Array<{
|
|
1697
|
+
key: string;
|
|
1698
|
+
header: string;
|
|
1699
|
+
}>;
|
|
1700
|
+
columns: Array<{
|
|
1701
|
+
key: string;
|
|
1702
|
+
header: string;
|
|
1703
|
+
}>;
|
|
1704
|
+
rows: Array<LooseObject<any>>;
|
|
1705
|
+
rowCount: number;
|
|
1706
|
+
totalRows: number;
|
|
1707
|
+
batchNumber: number;
|
|
1708
|
+
batchSize: number;
|
|
1709
|
+
next: boolean;
|
|
1710
|
+
nextCursor: string | null;
|
|
1466
1711
|
}
|
|
1467
1712
|
interface StorageTextContent {
|
|
1468
1713
|
storageEntryId: string;
|
|
@@ -1521,7 +1766,7 @@ interface AgentToolInput {
|
|
|
1521
1766
|
}
|
|
1522
1767
|
interface Input {
|
|
1523
1768
|
templateId: string;
|
|
1524
|
-
templateInputs:
|
|
1769
|
+
templateInputs: Record<string, JsonValue>;
|
|
1525
1770
|
/**
|
|
1526
1771
|
* Present when this component is executed as an agent plugin component tool.
|
|
1527
1772
|
*/
|
|
@@ -1540,6 +1785,9 @@ interface Input {
|
|
|
1540
1785
|
excludeLibs?: string[];
|
|
1541
1786
|
includeLibs?: string[];
|
|
1542
1787
|
}
|
|
1788
|
+
type JsonValue = string | number | boolean | null | JsonValue[] | {
|
|
1789
|
+
[key: string]: JsonValue;
|
|
1790
|
+
};
|
|
1543
1791
|
interface InstanceDetails {
|
|
1544
1792
|
id: string;
|
|
1545
1793
|
organizationId: string;
|
|
@@ -1617,9 +1865,11 @@ type ExportDatabaseOptions = Omit<SelectInput, 'from'> & {
|
|
|
1617
1865
|
* Default is false.
|
|
1618
1866
|
*/
|
|
1619
1867
|
async?: boolean;
|
|
1868
|
+
/** Output format. CSV is the default. XLSX validates the effective row count before starting. */
|
|
1869
|
+
format?: 'csv' | 'xlsx';
|
|
1620
1870
|
/** Omit for private user storage, use ROOT, or provide an accessible explorer folder id. */
|
|
1621
1871
|
storageDestination?: 'ROOT' | string;
|
|
1622
|
-
/** Dedicated output name. Omit for an automatic database-and-timestamp
|
|
1872
|
+
/** Dedicated output name. Omit for an automatic database-and-timestamp name using the selected extension. */
|
|
1623
1873
|
fileName?: string;
|
|
1624
1874
|
/** Whether the output entry is restricted. Default is true. */
|
|
1625
1875
|
restricted?: boolean;
|
|
@@ -1638,6 +1888,7 @@ interface ExportDatabaseAcceptedResponse {
|
|
|
1638
1888
|
storageNamespace: string;
|
|
1639
1889
|
parentStorageEntryId: string | null;
|
|
1640
1890
|
fileName: string;
|
|
1891
|
+
format: 'csv' | 'xlsx';
|
|
1641
1892
|
restricted: boolean;
|
|
1642
1893
|
message: string;
|
|
1643
1894
|
}
|
|
@@ -1649,6 +1900,7 @@ interface ExportDatabaseCompletedResponse {
|
|
|
1649
1900
|
storageNamespace: string;
|
|
1650
1901
|
parentStorageEntryId: string | null;
|
|
1651
1902
|
fileName: string;
|
|
1903
|
+
format: 'csv' | 'xlsx';
|
|
1652
1904
|
restricted: boolean;
|
|
1653
1905
|
storageEntryId: string;
|
|
1654
1906
|
storageEntry: StorageEntryView;
|
|
@@ -2016,7 +2268,7 @@ interface AgentInboxItem {
|
|
|
2016
2268
|
result?: Record<string, any> | null;
|
|
2017
2269
|
error?: Record<string, any> | null;
|
|
2018
2270
|
priority?: number;
|
|
2019
|
-
|
|
2271
|
+
scheduledFor?: Date | string;
|
|
2020
2272
|
claimedByRunId?: string | null;
|
|
2021
2273
|
leaseToken?: string | null;
|
|
2022
2274
|
leaseExpiresAt?: Date | string | null;
|
|
@@ -2294,19 +2546,19 @@ interface AssistantThreadCompactionRequest {
|
|
|
2294
2546
|
}
|
|
2295
2547
|
interface RevoApi {
|
|
2296
2548
|
createDatabase(data: DatabaseCreateInput): Promise<Database>;
|
|
2297
|
-
cloneDatabase<TAsync extends boolean = false>(
|
|
2549
|
+
cloneDatabase<TAsync extends boolean = false>(name: string, options?: DatabaseCloneInput & {
|
|
2298
2550
|
async?: TAsync;
|
|
2299
2551
|
}): Promise<TAsync extends true ? CloneDatabaseAcceptedResponse : TAsync extends false ? CloneDatabaseCompletedResponse : CloneDatabaseResponse>;
|
|
2300
|
-
exportDatabase<TAsync extends boolean = false>(
|
|
2552
|
+
exportDatabase<TAsync extends boolean = false>(name: string, options?: ExportDatabaseOptions & {
|
|
2301
2553
|
async?: TAsync;
|
|
2302
2554
|
}): Promise<TAsync extends true ? ExportDatabaseAcceptedResponse : TAsync extends false ? ExportDatabaseCompletedResponse : ExportDatabaseResponse>;
|
|
2303
|
-
exportDatabaseView<TAsync extends boolean = false>(
|
|
2555
|
+
exportDatabaseView<TAsync extends boolean = false>(name: string, options?: ExportDatabaseOptions & {
|
|
2304
2556
|
async?: TAsync;
|
|
2305
2557
|
}): Promise<TAsync extends true ? ExportDatabaseAcceptedResponse : TAsync extends false ? ExportDatabaseCompletedResponse : ExportDatabaseResponse>;
|
|
2306
|
-
updateDatabase(
|
|
2307
|
-
deleteDatabase(
|
|
2308
|
-
restoreDatabase(
|
|
2309
|
-
truncateDatabase(
|
|
2558
|
+
updateDatabase(name: string, data: DatabaseUpdateInput): Promise<Database>;
|
|
2559
|
+
deleteDatabase(name: string): Promise<void>;
|
|
2560
|
+
restoreDatabase(name: string): Promise<void>;
|
|
2561
|
+
truncateDatabase(name: string, options?: TruncateDatabaseOptions): Promise<void>;
|
|
2310
2562
|
getDatabaseData<T = any>(name: string, request?: SelectInput): Promise<GetDatabaseDataResponse<T>>;
|
|
2311
2563
|
getDatabaseViewData<T = any>(name: string, request?: SelectInput): Promise<GetDatabaseDataResponse<T>>;
|
|
2312
2564
|
getDatabaseAudit(name: string, query?: DatabaseAuditQuery): Promise<DatabaseAuditResponse>;
|
|
@@ -2376,10 +2628,34 @@ interface RevoApi {
|
|
|
2376
2628
|
rateLimit(key: string, limit: number, ttl: number): Promise<boolean>;
|
|
2377
2629
|
releaseRateLimit(key: string): Promise<void>;
|
|
2378
2630
|
releaseConcurrencyLimit(key: string): Promise<void>;
|
|
2379
|
-
triggerEvent(name: string, message: any,
|
|
2380
|
-
triggerTarget(targetType: ExecutionTargetType, targetId: string, input?: any,
|
|
2381
|
-
triggerJob(templateId: string, input?: any,
|
|
2382
|
-
triggerWebhook(webhook: WebhookInput,
|
|
2631
|
+
triggerEvent(name: string, message: any, options?: TriggerEventOptions): Promise<string>;
|
|
2632
|
+
triggerTarget(targetType: ExecutionTargetType, targetId: string, input?: any, options?: AutomationScheduleOptions): Promise<string>;
|
|
2633
|
+
triggerJob(templateId: string, input?: any, options?: AutomationScheduleOptions): Promise<string>;
|
|
2634
|
+
triggerWebhook(webhook: WebhookInput, options?: AutomationScheduleOptions): Promise<Webhook>;
|
|
2635
|
+
httpCall(config: HttpRequestInterface, options: HttpRequestOptionsInterface & {
|
|
2636
|
+
responseType: 'storage';
|
|
2637
|
+
target: HttpStorageTargetRef;
|
|
2638
|
+
timeout?: number;
|
|
2639
|
+
proxy?: false;
|
|
2640
|
+
}): Promise<{
|
|
2641
|
+
status: number;
|
|
2642
|
+
statusText: string;
|
|
2643
|
+
time: number;
|
|
2644
|
+
headers: LooseObject<string>;
|
|
2645
|
+
request: {
|
|
2646
|
+
config: HttpRequestInterface;
|
|
2647
|
+
options: HttpRequestOptionsInterface;
|
|
2648
|
+
};
|
|
2649
|
+
} & ({
|
|
2650
|
+
data: undefined;
|
|
2651
|
+
storage: {
|
|
2652
|
+
session: StorageUploadSession;
|
|
2653
|
+
entry: StorageEntryView;
|
|
2654
|
+
};
|
|
2655
|
+
} | {
|
|
2656
|
+
data: string;
|
|
2657
|
+
storage?: undefined;
|
|
2658
|
+
})>;
|
|
2383
2659
|
httpCall(config: HttpRequestInterface, options?: HttpRequestOptionsInterface & {
|
|
2384
2660
|
timeout?: number;
|
|
2385
2661
|
proxy?: boolean;
|
|
@@ -2415,7 +2691,7 @@ interface RevoStorage {
|
|
|
2415
2691
|
resolveFolderPath(path: string): Promise<StorageEntryView>;
|
|
2416
2692
|
ensureFolderPath(path: string, options?: StorageEnsureFolderPathOptions): Promise<StorageEntryView>;
|
|
2417
2693
|
getFile(storageEntryId: string, includeDeleted?: boolean): Promise<StorageEntryView>;
|
|
2418
|
-
getFileData(storageEntryId: string, options?: StorageFileReadOptions): Promise<
|
|
2694
|
+
getFileData(storageEntryId: string, options?: StorageFileReadOptions): Promise<StorageStructuredFileDataPage | string[] | string>;
|
|
2419
2695
|
getFileStats(storageEntryId: string, options?: StorageFileStatsOptions): Promise<StorageFileStats>;
|
|
2420
2696
|
getEntry(storageEntryId: string, includeDeleted?: boolean): Promise<StorageEntryView>;
|
|
2421
2697
|
createFolder(data: StorageFolderInput): Promise<StorageEntryView>;
|
|
@@ -2430,6 +2706,7 @@ interface RevoStorage {
|
|
|
2430
2706
|
finalizeUploadSession(storageUploadSessionId: string, data?: StorageUploadSessionFinalizeInput): Promise<{
|
|
2431
2707
|
session: StorageUploadSession;
|
|
2432
2708
|
entry: StorageEntryView;
|
|
2709
|
+
fileStats?: StorageFileStats;
|
|
2433
2710
|
}>;
|
|
2434
2711
|
abortUploadSession(storageUploadSessionId: string): Promise<StorageUploadSession>;
|
|
2435
2712
|
updateEntry(storageEntryId: string, data: StorageEntryUpdateInput): Promise<StorageEntryView>;
|
|
@@ -2578,7 +2855,27 @@ interface RevoUtils {
|
|
|
2578
2855
|
rsaSign(privateKey: string, payload: string, passphrase?: string): string;
|
|
2579
2856
|
rsaVerify(publicKey: string, payload: string, signature: string): boolean;
|
|
2580
2857
|
}
|
|
2858
|
+
/**
|
|
2859
|
+
* Source language for an ad-hoc low-code execution.
|
|
2860
|
+
*/
|
|
2861
|
+
type LowCodeLanguage = 'javascript' | 'typescript';
|
|
2862
|
+
interface LowCodeExecuteOptions {
|
|
2863
|
+
/** Defaults to TypeScript. */
|
|
2864
|
+
language?: LowCodeLanguage;
|
|
2865
|
+
/** Input exposed through api.input() inside the low-code execution. */
|
|
2866
|
+
inputs?: any;
|
|
2867
|
+
/** Maximum execution time in milliseconds. Defaults to 60 seconds. */
|
|
2868
|
+
timeoutMs?: number;
|
|
2869
|
+
/** Optional isolate memory limit in MB. */
|
|
2870
|
+
memory?: number;
|
|
2871
|
+
}
|
|
2872
|
+
interface RevoLowCode {
|
|
2873
|
+
execute<T = LooseObject<any>>(code: string, options?: LowCodeExecuteOptions): Promise<ComponentExecuteResult<T>>;
|
|
2874
|
+
}
|
|
2581
2875
|
|
|
2876
|
+
type RevoExecute = RevoLowCode['execute'];
|
|
2877
|
+
type RevoExecuteOptions = NonNullable<Parameters<RevoExecute>[1]>;
|
|
2878
|
+
type RevoExecutionDefaults = Omit<RevoExecuteOptions, 'inputs'>;
|
|
2582
2879
|
type StandaloneProfileMethod = 'currentUser' | 'getCurrentInstance' | 'getInstanceDetails';
|
|
2583
2880
|
type AsyncMethod<Method> = Method extends (...args: infer Args) => infer Result ? (...args: Args) => Promise<Awaited<Result>> : never;
|
|
2584
2881
|
/**
|
|
@@ -2602,6 +2899,7 @@ interface RevoClientOptions {
|
|
|
2602
2899
|
fetch?: typeof fetch;
|
|
2603
2900
|
requestTimeoutMs?: number;
|
|
2604
2901
|
batch?: RevoBatchOptions;
|
|
2902
|
+
executionDefaults?: RevoExecutionDefaults;
|
|
2605
2903
|
}
|
|
2606
2904
|
interface RevoBatchLimits {
|
|
2607
2905
|
maxCalls: number;
|
|
@@ -2663,6 +2961,7 @@ interface RevoRuntime {
|
|
|
2663
2961
|
readonly utils: RevoUtils;
|
|
2664
2962
|
readonly storage: RevoStorage;
|
|
2665
2963
|
readonly agents: RevoAgents;
|
|
2964
|
+
readonly execute: RevoExecute;
|
|
2666
2965
|
readonly batch: RevoBatchController;
|
|
2667
2966
|
}
|
|
2668
2967
|
interface HostedRuntimeBootstrap {
|
|
@@ -2680,6 +2979,7 @@ interface HostedRuntimeBootstrap {
|
|
|
2680
2979
|
deadlineMs?: number;
|
|
2681
2980
|
legacyApi?: Readonly<Record<string, unknown>>;
|
|
2682
2981
|
batch?: RevoBatchOptions;
|
|
2982
|
+
executionDefaults?: RevoExecutionDefaults;
|
|
2683
2983
|
}
|
|
2684
2984
|
interface RevoRuntimeBridgeRequest {
|
|
2685
2985
|
type: 'revo-runtime-call';
|
|
@@ -2757,4 +3057,4 @@ declare class RevoHttpResponseError extends RevoError {
|
|
|
2757
3057
|
constructor(statusCode: number, body?: unknown);
|
|
2758
3058
|
}
|
|
2759
3059
|
|
|
2760
|
-
export {
|
|
3060
|
+
export { RevoTransportError as A, type BatchFailureMode as B, CONTRACT_REVISION as C, type RuntimeBatchRequest as D, type RuntimeBatchResponse as E, type RuntimeCall as F, type RuntimeCallResult as G, type HostedRuntimeBootstrap as H, type SerializedRevoError as I, PROTOCOL_VERSION as P, type RevoRuntime as R, SDK_VERSION as S, RevoExecutionExit as a, RevoHttpResponseError as b, type RevoRuntimeBridgeRequest as c, type RevoRuntimeBridgeResponse as d, type RevoRuntimeBridgeTransportError as e, type RevoStandaloneApi as f, type RevoUtils as g, type RevoStorage as h, type RevoAgents as i, type RevoExecute as j, type RevoBatchController as k, type RevoClientOptions as l, type RevoApi as m, RevoAuthenticationError as n, RevoBatchConfigurationError as o, RevoBatchLimitError as p, type RevoBatchLimits as q, type RevoBatchOptions as r, RevoConfigurationError as s, RevoError as t, type RevoExecuteOptions as u, type RevoExecutionDefaults as v, RevoPermissionDeniedError as w, RevoProtocolError as x, RevoRemoteError as y, RevoRuntimeContextUnavailableError as z };
|