@vertesia/common 1.5.0-dev.20260714.072725Z → 1.5.0-dev.20260722.120446Z
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/lib/apikey.d.ts +1 -0
- package/lib/apikey.d.ts.map +1 -1
- package/lib/apikey.js.map +1 -1
- package/lib/apps.d.ts +500 -34
- package/lib/apps.d.ts.map +1 -1
- package/lib/apps.js +63 -70
- package/lib/apps.js.map +1 -1
- package/lib/audit-trail.d.ts +61 -1
- package/lib/audit-trail.d.ts.map +1 -1
- package/lib/audit-trail.js +15 -0
- package/lib/audit-trail.js.map +1 -1
- package/lib/data-platform.d.ts +121 -5
- package/lib/data-platform.d.ts.map +1 -1
- package/lib/index.d.ts +7 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +7 -0
- package/lib/index.js.map +1 -1
- package/lib/interaction.d.ts +19 -1
- package/lib/interaction.d.ts.map +1 -1
- package/lib/interaction.js.map +1 -1
- package/lib/json-schema.d.ts +1 -1
- package/lib/json-schema.d.ts.map +1 -1
- package/lib/platform-event.d.ts +79 -3
- package/lib/platform-event.d.ts.map +1 -1
- package/lib/platform-event.js.map +1 -1
- package/lib/project.d.ts +119 -20
- package/lib/project.d.ts.map +1 -1
- package/lib/project.js +65 -0
- package/lib/project.js.map +1 -1
- package/lib/query.d.ts +6 -0
- package/lib/query.d.ts.map +1 -1
- package/lib/refs.d.ts +1 -0
- package/lib/refs.d.ts.map +1 -1
- package/lib/schema-for-extraction.d.ts +21 -0
- package/lib/schema-for-extraction.d.ts.map +1 -0
- package/lib/schema-for-extraction.js +205 -0
- package/lib/schema-for-extraction.js.map +1 -0
- package/lib/store/agent-run.d.ts +2 -0
- package/lib/store/agent-run.d.ts.map +1 -1
- package/lib/store/conversation-state.d.ts +39 -0
- package/lib/store/conversation-state.d.ts.map +1 -1
- package/lib/store/conversation-state.js +3 -0
- package/lib/store/conversation-state.js.map +1 -1
- package/lib/store/doc-analyzer.d.ts +10 -67
- package/lib/store/doc-analyzer.d.ts.map +1 -1
- package/lib/store/dsl-workflow.d.ts +1 -0
- package/lib/store/dsl-workflow.d.ts.map +1 -1
- package/lib/store/dsl-workflow.js.map +1 -1
- package/lib/store/grounded-extraction.d.ts +146 -0
- package/lib/store/grounded-extraction.d.ts.map +1 -0
- package/lib/store/grounded-extraction.js +8 -0
- package/lib/store/grounded-extraction.js.map +1 -0
- package/lib/store/index.d.ts +1 -0
- package/lib/store/index.d.ts.map +1 -1
- package/lib/store/index.js +1 -0
- package/lib/store/index.js.map +1 -1
- package/lib/store/store.d.ts +307 -1
- package/lib/store/store.d.ts.map +1 -1
- package/lib/store/store.js +438 -0
- package/lib/store/store.js.map +1 -1
- package/lib/store/workflow.d.ts +3 -0
- package/lib/store/workflow.d.ts.map +1 -1
- package/lib/store/workflow.js.map +1 -1
- package/lib/user.d.ts +14 -0
- package/lib/user.d.ts.map +1 -1
- package/lib/user.js +31 -0
- package/lib/user.js.map +1 -1
- package/lib/vertesia-common.js +2 -2
- package/lib/vertesia-common.js.map +1 -1
- package/lib/view-configuration-validation.d.ts +15 -0
- package/lib/view-configuration-validation.d.ts.map +1 -0
- package/lib/view-configuration-validation.js +63 -0
- package/lib/view-configuration-validation.js.map +1 -0
- package/lib/view-query-validation.d.ts +13 -0
- package/lib/view-query-validation.d.ts.map +1 -0
- package/lib/view-query-validation.js +266 -0
- package/lib/view-query-validation.js.map +1 -0
- package/lib/view-validation-helpers.d.ts +15 -0
- package/lib/view-validation-helpers.d.ts.map +1 -0
- package/lib/view-validation-helpers.js +25 -0
- package/lib/view-validation-helpers.js.map +1 -0
- package/lib/views-schema.d.ts +1992 -0
- package/lib/views-schema.d.ts.map +1 -0
- package/lib/views-schema.js +674 -0
- package/lib/views-schema.js.map +1 -0
- package/lib/views-validation.d.ts +21 -0
- package/lib/views-validation.d.ts.map +1 -0
- package/lib/views-validation.js +164 -0
- package/lib/views-validation.js.map +1 -0
- package/lib/views.d.ts +381 -0
- package/lib/views.d.ts.map +1 -0
- package/lib/views.js +41 -0
- package/lib/views.js.map +1 -0
- package/package.json +5 -4
- package/src/apikey.ts +1 -0
- package/src/apps.test.ts +9 -1
- package/src/apps.ts +583 -90
- package/src/audit-trail.ts +83 -0
- package/src/data-platform.ts +129 -5
- package/src/index.ts +12 -0
- package/src/interaction.ts +20 -1
- package/src/json-schema.ts +0 -1
- package/src/platform-event.ts +92 -2
- package/src/project.test.ts +44 -0
- package/src/project.ts +205 -22
- package/src/query.ts +6 -0
- package/src/refs.ts +1 -0
- package/src/roles.test.ts +32 -0
- package/src/schema-for-extraction.test.ts +191 -0
- package/src/schema-for-extraction.ts +231 -0
- package/src/store/agent-run.ts +2 -0
- package/src/store/conversation-state.ts +47 -0
- package/src/store/doc-analyzer.ts +10 -76
- package/src/store/dsl-workflow.ts +1 -0
- package/src/store/grounded-extraction.ts +154 -0
- package/src/store/index.ts +1 -0
- package/src/store/store.ts +778 -1
- package/src/store/workflow.ts +3 -0
- package/src/user.ts +46 -0
- package/src/view-configuration-validation.ts +74 -0
- package/src/view-query-validation.test.ts +21 -0
- package/src/view-query-validation.ts +319 -0
- package/src/view-validation-helpers.ts +28 -0
- package/src/views-schema.test.ts +364 -0
- package/src/views-schema.ts +689 -0
- package/src/views-validation.ts +234 -0
- package/src/views.ts +484 -0
package/lib/apikey.d.ts
CHANGED
package/lib/apikey.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikey.d.ts","sourceRoot":"","sources":["../src/apikey.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C;;;;;;;;;;;;;;;;GAgBG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CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;;;OAIG;IACH,cAAc,CAAC,EAAE;QACb,8EAA8E;QAC9E,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf;;;WAGG;QACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;QAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;KAC1B,CAAC;CACL;AAED,oBAAY,aAAa;IACrB,IAAI,SAAS;IACb,WAAW,iBAAiB;IAC5B,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,cAAc,oBAAoB;IAClC,KAAK,UAAU;IACf,QAAQ,aAAa;CACxB"}
|
package/lib/apikey.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apikey.js","sourceRoot":"","sources":["../src/apikey.ts"],"names":[],"mappings":"AA8BA,MAAM,CAAN,IAAY,WAEX;AAFD,WAAY,WAAW;IACnB,4BAAa,CAAA;AACjB,CAAC,EAFW,WAAW,KAAX,WAAW,QAEtB;
|
|
1
|
+
{"version":3,"file":"apikey.js","sourceRoot":"","sources":["../src/apikey.ts"],"names":[],"mappings":"AA8BA,MAAM,CAAN,IAAY,WAEX;AAFD,WAAY,WAAW;IACnB,4BAAa,CAAA;AACjB,CAAC,EAFW,WAAW,KAAX,WAAW,QAEtB;AAiJD,MAAM,CAAN,IAAY,aAQX;AARD,WAAY,aAAa;IACrB,8BAAa,CAAA;IACb,6CAA4B,CAAA;IAC5B,gCAAe,CAAA;IACf,kCAAiB,CAAA;IACjB,mDAAkC,CAAA;IAClC,gCAAe,CAAA;IACf,sCAAqB,CAAA;AACzB,CAAC,EARW,aAAa,KAAb,aAAa,QAQxB"}
|
package/lib/apps.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { JSONObject, JSONSchema, ToolDefinition } from '@llumiverse/common';
|
|
2
|
+
import type { AppDashboardDefinition } from './data-platform.js';
|
|
2
3
|
import type { CatalogInteractionRef } from './interaction.js';
|
|
3
4
|
import type { DSLActivityOptions, InCodeProcessDefinition, InCodeTypeDefinition } from './store/index.js';
|
|
5
|
+
import type { InCodeViewDefinition } from './views.js';
|
|
4
6
|
/** Allowed values for AppUINavItem.preferredSection */
|
|
5
7
|
export declare const PREFERRED_SECTIONS: readonly ["default", "footer", "settings"];
|
|
6
8
|
/**
|
|
@@ -314,8 +316,315 @@ export interface RemoteActivityDefinition {
|
|
|
314
316
|
/** Suggested timeout and retry configuration */
|
|
315
317
|
options?: DSLActivityOptions;
|
|
316
318
|
}
|
|
317
|
-
|
|
319
|
+
/**
|
|
320
|
+
* Canonical app capabilities Studio renders/supports. The public type is derived from
|
|
321
|
+
* this list so runtime validation and TypeScript cannot drift.
|
|
322
|
+
*/
|
|
323
|
+
export declare const APP_CAPABILITIES: readonly ["ui", "tools", "interactions", "types", "processes", "views", "templates", "dashboards"];
|
|
324
|
+
export type AppCapabilities = (typeof APP_CAPABILITIES)[number];
|
|
325
|
+
/**
|
|
326
|
+
* Header carrying the app version a generated-app UI is running, so studio/zeno resolve app-owned
|
|
327
|
+
* capability refs (`app:<app>:...`) against that exact version instead of the promoted version.
|
|
328
|
+
* Resolution-time only; never persisted. Set by the generated app template via client.withAppVersion.
|
|
329
|
+
*/
|
|
330
|
+
export declare const APP_VERSION_HEADER = "x-vertesia-app-version";
|
|
331
|
+
/**
|
|
332
|
+
* The platform-artifact types an app build can be required to create. A finer-grained
|
|
333
|
+
* counterpart to {@link AppCapabilities}: a single `interactions` capability may comprise
|
|
334
|
+
* several `interaction` artifacts plus `agent`, `activity`, and `tool` artifacts that
|
|
335
|
+
* {@link AppCapabilities} folds together. Used by the App Solution Architect manifest and
|
|
336
|
+
* the publish-time capability gate.
|
|
337
|
+
*/
|
|
338
|
+
export declare const APP_ARTIFACT_TYPES: readonly ["interaction", "agent", "type", "process", "view", "template", "dashboard", "activity", "tool"];
|
|
339
|
+
export type AppArtifactType = (typeof APP_ARTIFACT_TYPES)[number];
|
|
340
|
+
/**
|
|
341
|
+
* A single platform artifact the App Solution Architect requires the build to create.
|
|
342
|
+
* `id` is the app-owned in-code id the implementation must register and reference
|
|
343
|
+
* (e.g. `app:<name>:main:extract-item` for interactions/agents, `app:<name>:<type>` for
|
|
344
|
+
* types, `app:<name>:<process>` for processes).
|
|
345
|
+
*/
|
|
346
|
+
/**
|
|
347
|
+
* Build progress for one artifact, maintained by the developer agent as a living checklist:
|
|
348
|
+
* - `pending` — defined by the architect, not yet built.
|
|
349
|
+
* - `built` — registered in the package, not yet successfully exercised.
|
|
350
|
+
* - `done` — built AND successfully exercised against real data.
|
|
351
|
+
* This is the agent's self-reported claim for tracking/handoff; the capability gate verifies
|
|
352
|
+
* the truth independently via package registration + run/data telemetry and does not trust it.
|
|
353
|
+
*/
|
|
354
|
+
export type AppArtifactStatus = 'pending' | 'built' | 'done';
|
|
355
|
+
export declare const APP_ARTIFACT_STATUSES: readonly AppArtifactStatus[];
|
|
356
|
+
export interface AppPlannedArtifact {
|
|
357
|
+
/** App-owned in-code id the build must register and reference. */
|
|
358
|
+
id: string;
|
|
359
|
+
type: AppArtifactType;
|
|
360
|
+
/** Short human label. */
|
|
361
|
+
name?: string;
|
|
362
|
+
/** Why this artifact exists / what it does — carried into the build checklist. */
|
|
363
|
+
purpose?: string;
|
|
364
|
+
/**
|
|
365
|
+
* When false, the artifact is planned but optional: the capability gate warns rather
|
|
366
|
+
* than blocks if it is missing or never exercised. Defaults to required (true).
|
|
367
|
+
*/
|
|
368
|
+
required?: boolean;
|
|
369
|
+
/** Build progress, updated by the developer agent. Defaults to `pending`. */
|
|
370
|
+
status?: AppArtifactStatus;
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Structured result the App Solution Architect emits alongside its prose artifacts — the
|
|
374
|
+
* machine-readable contract for the build. The implementation MUST create and successfully
|
|
375
|
+
* exercise every required artifact before building a deployable version. Persisted into the app repo as
|
|
376
|
+
* {@link APP_CAPABILITY_MANIFEST_PATH} so it survives across runs and the version-build
|
|
377
|
+
* capability gate can verify against it deterministically. If the builder finds the plan
|
|
378
|
+
* wrong or insufficient, the orchestrator relaunches the architect to revise the manifest;
|
|
379
|
+
* the gate always checks against the latest committed copy.
|
|
380
|
+
*/
|
|
381
|
+
export interface AppCapabilityManifest {
|
|
382
|
+
/** Artifact-storage ref to the prose architecture spec (e.g. the architecture `.md`). */
|
|
383
|
+
spec_artifact: string;
|
|
384
|
+
/** Platform artifacts the build must create. */
|
|
385
|
+
artifacts: AppPlannedArtifact[];
|
|
386
|
+
/**
|
|
387
|
+
* Monotonic revision, starting at 1, bumped each time the architect evolves the manifest for
|
|
388
|
+
* the SAME app on a later iteration (read the committed manifest, preserve untouched artifacts,
|
|
389
|
+
* add/modify/remove, then bump). Lets downstream agents tell which contract they are building to.
|
|
390
|
+
*/
|
|
391
|
+
revision?: number;
|
|
392
|
+
/**
|
|
393
|
+
* Newest-first change notes, one entry per revision (what was added/modified/removed and why).
|
|
394
|
+
* How manifest changes are communicated to downstream agents across iterations.
|
|
395
|
+
*/
|
|
396
|
+
changelog?: string[];
|
|
397
|
+
/** Optional free-form notes the architect wants the builder to honor. */
|
|
398
|
+
notes?: string;
|
|
399
|
+
}
|
|
400
|
+
/** Repo-relative path the capability manifest is committed to, read by version-build gates. */
|
|
401
|
+
export declare const APP_CAPABILITY_MANIFEST_PATH = "docs/app-capability-manifest.json";
|
|
318
402
|
export type AppAvailableIn = 'app_portal' | 'composite_app';
|
|
403
|
+
export type AppVersionKind = 'design' | 'version';
|
|
404
|
+
export type AppVersionState = 'ready' | 'failed' | 'expired';
|
|
405
|
+
export type AppVersionTarget = 'static' | 'service';
|
|
406
|
+
export type AppVersionGitRefType = 'branch' | 'tag' | 'commit' | 'detached';
|
|
407
|
+
export type AppBuildTrigger = 'ui' | 'git_push' | 'agent' | 'api';
|
|
408
|
+
export interface AppVersionStorage {
|
|
409
|
+
tenant_id?: string;
|
|
410
|
+
app_prefix?: string;
|
|
411
|
+
artifacts_prefix?: string;
|
|
412
|
+
source_archive?: string;
|
|
413
|
+
source_git?: AppVersionGitSource;
|
|
414
|
+
build_prefix?: string;
|
|
415
|
+
manifest_path?: string;
|
|
416
|
+
service_archive?: string;
|
|
417
|
+
live_metadata_path?: string;
|
|
418
|
+
}
|
|
419
|
+
export interface AppVersionGitSource {
|
|
420
|
+
url?: string;
|
|
421
|
+
remote?: string;
|
|
422
|
+
/**
|
|
423
|
+
* The source ref that should be used to reproduce this version. Immutable
|
|
424
|
+
* app versions use the exact commit SHA rather than a mutable branch or tag.
|
|
425
|
+
*/
|
|
426
|
+
ref?: string;
|
|
427
|
+
ref_type?: AppVersionGitRefType;
|
|
428
|
+
branch?: string;
|
|
429
|
+
tag?: string;
|
|
430
|
+
commit?: string;
|
|
431
|
+
dirty?: boolean;
|
|
432
|
+
pushed?: boolean;
|
|
433
|
+
push_warning?: string;
|
|
434
|
+
}
|
|
435
|
+
export interface AppVersionUrls {
|
|
436
|
+
live_url?: string;
|
|
437
|
+
app_url?: string;
|
|
438
|
+
plugin_url?: string;
|
|
439
|
+
package_url?: string;
|
|
440
|
+
internal_preview_url?: string;
|
|
441
|
+
}
|
|
442
|
+
export interface AppVersionRecord {
|
|
443
|
+
id: string;
|
|
444
|
+
account: string;
|
|
445
|
+
project: string;
|
|
446
|
+
app?: string;
|
|
447
|
+
app_id: string;
|
|
448
|
+
app_name: string;
|
|
449
|
+
version_id: string;
|
|
450
|
+
kind: AppVersionKind;
|
|
451
|
+
state: AppVersionState;
|
|
452
|
+
promoted?: boolean;
|
|
453
|
+
target?: AppVersionTarget;
|
|
454
|
+
agent_run_id?: string;
|
|
455
|
+
/** Temporal workflow that produced this version. */
|
|
456
|
+
build_workflow_id?: string;
|
|
457
|
+
/** Temporal run that produced this version. */
|
|
458
|
+
build_workflow_run_id?: string;
|
|
459
|
+
sandbox_id?: string;
|
|
460
|
+
title?: string;
|
|
461
|
+
description?: string;
|
|
462
|
+
storage?: AppVersionStorage;
|
|
463
|
+
/** Exact Git commit used to build this immutable version. */
|
|
464
|
+
source_commit?: string;
|
|
465
|
+
urls?: AppVersionUrls;
|
|
466
|
+
manifest?: Record<string, unknown>;
|
|
467
|
+
files?: string[];
|
|
468
|
+
file_count?: number;
|
|
469
|
+
source_file_count?: number;
|
|
470
|
+
screenshot_artifact?: string;
|
|
471
|
+
checks?: string[];
|
|
472
|
+
created_by?: string;
|
|
473
|
+
created_at: string;
|
|
474
|
+
updated_at: string;
|
|
475
|
+
built_at?: string;
|
|
476
|
+
checked_at?: string;
|
|
477
|
+
expires_at?: string;
|
|
478
|
+
}
|
|
479
|
+
export interface DeleteAppVersionResponse {
|
|
480
|
+
id: string;
|
|
481
|
+
app_id: string;
|
|
482
|
+
version_id: string;
|
|
483
|
+
storage_prefix?: string;
|
|
484
|
+
deleted: boolean;
|
|
485
|
+
warnings: string[];
|
|
486
|
+
}
|
|
487
|
+
export interface UpsertAppVersionRequest {
|
|
488
|
+
/** Existing version record to update in place, used by reproducible rebuilds. */
|
|
489
|
+
record_id?: string;
|
|
490
|
+
app?: string;
|
|
491
|
+
app_id: string;
|
|
492
|
+
app_name?: string;
|
|
493
|
+
version_id: string;
|
|
494
|
+
kind: AppVersionKind;
|
|
495
|
+
state?: AppVersionState;
|
|
496
|
+
target?: AppVersionTarget;
|
|
497
|
+
agent_run_id?: string;
|
|
498
|
+
build_workflow_id?: string;
|
|
499
|
+
build_workflow_run_id?: string;
|
|
500
|
+
sandbox_id?: string;
|
|
501
|
+
title?: string;
|
|
502
|
+
description?: string;
|
|
503
|
+
storage?: AppVersionStorage;
|
|
504
|
+
/** Exact Git commit used to build this immutable version. */
|
|
505
|
+
source_commit?: string;
|
|
506
|
+
urls?: AppVersionUrls;
|
|
507
|
+
manifest?: Record<string, unknown>;
|
|
508
|
+
files?: string[];
|
|
509
|
+
file_count?: number;
|
|
510
|
+
source_file_count?: number;
|
|
511
|
+
screenshot_artifact?: string;
|
|
512
|
+
checks?: string[];
|
|
513
|
+
built_at?: string;
|
|
514
|
+
checked_at?: string;
|
|
515
|
+
expires_at?: string;
|
|
516
|
+
}
|
|
517
|
+
export interface AppVersionListQuery {
|
|
518
|
+
app_id?: string;
|
|
519
|
+
kind?: AppVersionKind;
|
|
520
|
+
include_expired?: boolean;
|
|
521
|
+
limit?: number;
|
|
522
|
+
}
|
|
523
|
+
export interface PromoteAppVersionResponse {
|
|
524
|
+
version: AppVersionRecord;
|
|
525
|
+
app?: AppManifest;
|
|
526
|
+
}
|
|
527
|
+
export interface StartAppBuildRequest {
|
|
528
|
+
/**
|
|
529
|
+
* Source branch, tag, or commit to build. When omitted, the app source
|
|
530
|
+
* configuration chooses its default branch.
|
|
531
|
+
*/
|
|
532
|
+
source_ref?: string;
|
|
533
|
+
source_ref_type?: Extract<AppVersionGitRefType, 'branch' | 'tag' | 'commit'>;
|
|
534
|
+
trigger?: AppBuildTrigger;
|
|
535
|
+
target?: AppVersionTarget;
|
|
536
|
+
title?: string;
|
|
537
|
+
description?: string;
|
|
538
|
+
}
|
|
539
|
+
export interface StartAppBuildResponse {
|
|
540
|
+
workflow_id: string;
|
|
541
|
+
run_id: string;
|
|
542
|
+
app_id: string;
|
|
543
|
+
version_id?: string;
|
|
544
|
+
rebuild_version_record_id?: string;
|
|
545
|
+
source_ref?: string;
|
|
546
|
+
source_ref_type?: Extract<AppVersionGitRefType, 'branch' | 'tag' | 'commit'>;
|
|
547
|
+
}
|
|
548
|
+
export interface AppBuildWorkflowInput extends StartAppBuildRequest {
|
|
549
|
+
app_id: string;
|
|
550
|
+
app_record_id?: string;
|
|
551
|
+
/** Rebuild this persisted version record at its original commit and target. */
|
|
552
|
+
rebuild_version_record_id?: string;
|
|
553
|
+
app_title?: string;
|
|
554
|
+
app_description?: string;
|
|
555
|
+
source_git_url?: string;
|
|
556
|
+
}
|
|
557
|
+
export interface AppBuildWorkflowResult {
|
|
558
|
+
app_id: string;
|
|
559
|
+
version_id: string;
|
|
560
|
+
kind: Extract<AppVersionKind, 'version'>;
|
|
561
|
+
state: AppVersionState;
|
|
562
|
+
source_commit: string;
|
|
563
|
+
source_git?: AppVersionGitSource;
|
|
564
|
+
urls?: AppVersionUrls;
|
|
565
|
+
file_count?: number;
|
|
566
|
+
}
|
|
567
|
+
export type AppBuildProgressStatus = 'queued' | 'resolving' | 'building' | 'completed' | 'failed';
|
|
568
|
+
export interface AppBuildProgress {
|
|
569
|
+
status: AppBuildProgressStatus;
|
|
570
|
+
step: string;
|
|
571
|
+
app_id?: string;
|
|
572
|
+
version_id?: string;
|
|
573
|
+
source_ref?: string;
|
|
574
|
+
source_ref_type?: Extract<AppVersionGitRefType, 'branch' | 'tag' | 'commit'>;
|
|
575
|
+
source_commit?: string;
|
|
576
|
+
file_count?: number;
|
|
577
|
+
app_url?: string;
|
|
578
|
+
error?: string;
|
|
579
|
+
updated_at: string;
|
|
580
|
+
}
|
|
581
|
+
export type AppScaffoldModule = 'service' | 'assistant' | 'content-app' | 'examples';
|
|
582
|
+
export interface StartAppScaffoldRequest {
|
|
583
|
+
/**
|
|
584
|
+
* App id / package name to create. It is normalized to the same slug rules
|
|
585
|
+
* used by @vertesia/create-plugin.
|
|
586
|
+
*/
|
|
587
|
+
app_id: string;
|
|
588
|
+
title?: string;
|
|
589
|
+
description?: string;
|
|
590
|
+
modules?: AppScaffoldModule[];
|
|
591
|
+
/**
|
|
592
|
+
* Start an initial app version build after the source has been pushed.
|
|
593
|
+
* Defaults to true.
|
|
594
|
+
*/
|
|
595
|
+
create_version?: boolean;
|
|
596
|
+
}
|
|
597
|
+
export interface StartAppScaffoldResponse {
|
|
598
|
+
workflow_id: string;
|
|
599
|
+
run_id: string;
|
|
600
|
+
app_id: string;
|
|
601
|
+
app_record_id?: string;
|
|
602
|
+
git_url?: string;
|
|
603
|
+
create_version: boolean;
|
|
604
|
+
}
|
|
605
|
+
export interface AppScaffoldWorkflowInput extends StartAppScaffoldRequest {
|
|
606
|
+
}
|
|
607
|
+
export interface AppScaffoldWorkflowResult {
|
|
608
|
+
app_id: string;
|
|
609
|
+
app_record_id?: string;
|
|
610
|
+
git_url?: string;
|
|
611
|
+
source_git?: AppVersionGitSource;
|
|
612
|
+
files?: number;
|
|
613
|
+
initial_version_build?: StartAppBuildResponse;
|
|
614
|
+
}
|
|
615
|
+
export type AppScaffoldProgressStatus = 'queued' | 'reserving' | 'scaffolding' | 'pushing' | 'building' | 'completed' | 'failed';
|
|
616
|
+
export interface AppScaffoldProgress {
|
|
617
|
+
status: AppScaffoldProgressStatus;
|
|
618
|
+
step: string;
|
|
619
|
+
app_id?: string;
|
|
620
|
+
app_record_id?: string;
|
|
621
|
+
git_url?: string;
|
|
622
|
+
files?: number;
|
|
623
|
+
initial_version_build?: StartAppBuildResponse;
|
|
624
|
+
error?: string;
|
|
625
|
+
error_details?: string[];
|
|
626
|
+
updated_at: string;
|
|
627
|
+
}
|
|
319
628
|
/**
|
|
320
629
|
* Access control policy for an app installation.
|
|
321
630
|
* Declares which access surfaces are gated by per-user ACEs.
|
|
@@ -368,6 +677,17 @@ export interface AppManifestData {
|
|
|
368
677
|
* If not specified a random color will be picked.
|
|
369
678
|
*/
|
|
370
679
|
color?: string;
|
|
680
|
+
/**
|
|
681
|
+
* Optional preview screenshot for the app-management UI, captured by the builder during a
|
|
682
|
+
* build/QA run. Resolved client-side from the owning agent run's artifact storage, so it
|
|
683
|
+
* carries both the run id and the artifact path.
|
|
684
|
+
*/
|
|
685
|
+
preview_screenshot?: {
|
|
686
|
+
/** Agent run id whose artifact storage holds the screenshot. */
|
|
687
|
+
agent_run_id: string;
|
|
688
|
+
/** Artifact path within that storage, e.g. "preview-checks/app-preview-<ts>.png". */
|
|
689
|
+
artifact: string;
|
|
690
|
+
};
|
|
371
691
|
status: 'beta' | 'stable' | 'deprecated';
|
|
372
692
|
/**
|
|
373
693
|
* The UI configuration of the app. If not specified and the app "ui" is in the app capabilities
|
|
@@ -416,6 +736,8 @@ export interface AppManifestData {
|
|
|
416
736
|
* - interactions
|
|
417
737
|
* - types
|
|
418
738
|
* - processes
|
|
739
|
+
* - templates
|
|
740
|
+
* - dashboards
|
|
419
741
|
* - settings
|
|
420
742
|
* - all (the default if no scope is provided)
|
|
421
743
|
* You can also use comma-separated values to combine scopes (e.g. "ui,tools").
|
|
@@ -435,6 +757,13 @@ export interface AppManifestData {
|
|
|
435
757
|
* Optional app version string (e.g. "1.0.0") — informational.
|
|
436
758
|
*/
|
|
437
759
|
version?: string;
|
|
760
|
+
/**
|
|
761
|
+
* Source repository configuration for apps generated and maintained through
|
|
762
|
+
* AppGen. Branches are mutable development lanes; immutable app versions
|
|
763
|
+
* record their exact source commit in AppVersionRecord.source_commit and
|
|
764
|
+
* AppVersionRecord.storage.source_git.
|
|
765
|
+
*/
|
|
766
|
+
source?: AppSourceConfig;
|
|
438
767
|
/**
|
|
439
768
|
* Free-form tags used for classification and filtering. Platform apps
|
|
440
769
|
* carry `"system"` so UIs can skip install/uninstall/manage-permission
|
|
@@ -448,11 +777,16 @@ export interface AppManifestData {
|
|
|
448
777
|
*/
|
|
449
778
|
access_control?: AppAccessControl;
|
|
450
779
|
}
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
780
|
+
export interface AppGitSourceConfig {
|
|
781
|
+
url?: string;
|
|
782
|
+
default_branch?: string;
|
|
783
|
+
production_branch?: string;
|
|
784
|
+
development_branch?: string;
|
|
785
|
+
}
|
|
786
|
+
export interface AppSourceConfig {
|
|
787
|
+
kind: 'git';
|
|
788
|
+
git?: AppGitSourceConfig;
|
|
789
|
+
}
|
|
456
790
|
/**
|
|
457
791
|
* Deployment-time URL endpoints that can be referenced in app manifest URLs
|
|
458
792
|
* via `{{key}}` placeholders. The caller (typically studio-server) supplies
|
|
@@ -468,37 +802,92 @@ export interface Endpoints {
|
|
|
468
802
|
token?: string;
|
|
469
803
|
/** The browser-facing Studio UI (composable-ui) base URL */
|
|
470
804
|
ui?: string;
|
|
805
|
+
/** The Smart HTTP app source git server base URL */
|
|
806
|
+
git?: string;
|
|
807
|
+
/** The appgen app-gateway base URL (serves promoted app bundles + their `/api` runtime). */
|
|
808
|
+
gateway?: string;
|
|
809
|
+
}
|
|
810
|
+
/** One entry in an app git-repo directory listing (see {@link AppRepoTree}). */
|
|
811
|
+
export interface AppRepoTreeEntry {
|
|
812
|
+
/** File or directory name (last path segment). */
|
|
813
|
+
name: string;
|
|
814
|
+
/** Path relative to the repo root. */
|
|
815
|
+
path: string;
|
|
816
|
+
/** Whether the entry is a file (`blob`) or a directory (`tree`). */
|
|
817
|
+
type: 'blob' | 'tree';
|
|
818
|
+
}
|
|
819
|
+
/** A non-recursive listing of an app git repo directory at a given ref. */
|
|
820
|
+
export interface AppRepoTree {
|
|
821
|
+
/** The ref the listing was read at (empty/undefined = default branch / HEAD). */
|
|
822
|
+
ref?: string;
|
|
823
|
+
/** The directory prefix that was listed (empty = repo root). */
|
|
824
|
+
prefix?: string;
|
|
825
|
+
entries: AppRepoTreeEntry[];
|
|
826
|
+
}
|
|
827
|
+
/** Browser-side limits mirrored by the app Git service document endpoint. */
|
|
828
|
+
export declare const APP_REPO_DOCUMENT_UPLOAD_MAX_FILE_BYTES: number;
|
|
829
|
+
export declare const APP_REPO_DOCUMENT_UPLOAD_MAX_TOTAL_BYTES: number;
|
|
830
|
+
export declare const APP_REPO_DOCUMENT_UPLOAD_MAX_FILES = 20;
|
|
831
|
+
export declare const APP_REPO_DOCUMENT_UPLOAD_PREFIX = "docs/";
|
|
832
|
+
/** Result of committing one or more uploaded documents to an app repository. */
|
|
833
|
+
export interface AppRepoDocumentCommit {
|
|
834
|
+
/** Updated branch name. */
|
|
835
|
+
ref: string;
|
|
836
|
+
/** Branch HEAD before the commit. */
|
|
837
|
+
previous_commit: string;
|
|
838
|
+
/** Newly created commit SHA. */
|
|
839
|
+
commit: string;
|
|
840
|
+
/** Repository paths changed by the commit. */
|
|
841
|
+
paths: string[];
|
|
842
|
+
}
|
|
843
|
+
/** One commit that inserted or changed a file in an app git repository. */
|
|
844
|
+
export interface AppRepoCommit {
|
|
845
|
+
/** Full commit SHA. */
|
|
846
|
+
commit: string;
|
|
847
|
+
/** Complete commit message. */
|
|
848
|
+
message: string;
|
|
849
|
+
/** Commit author name, when available. */
|
|
850
|
+
author?: string;
|
|
851
|
+
/** Commit author date as an ISO-8601 string, when available. */
|
|
852
|
+
date?: string;
|
|
853
|
+
}
|
|
854
|
+
/** Commit history in an app git repository, optionally filtered to a file. */
|
|
855
|
+
export interface AppRepoCommits {
|
|
856
|
+
/** Ref from which history traversal started (empty/undefined = default branch / HEAD). */
|
|
857
|
+
ref?: string;
|
|
858
|
+
/** File path relative to the repository root, when history was filtered to a file. */
|
|
859
|
+
path?: string;
|
|
860
|
+
/** Commits ordered newest first. */
|
|
861
|
+
commits: AppRepoCommit[];
|
|
862
|
+
/** Pass this cursor to retrieve the next page. Absent when history is exhausted. */
|
|
863
|
+
next_cursor?: string;
|
|
864
|
+
}
|
|
865
|
+
/** A branch or tag in an app git repo, resolved to its latest commit. */
|
|
866
|
+
export interface AppRepoRef {
|
|
867
|
+
/** Short ref name (e.g. `main`, `v1.0.0`). */
|
|
868
|
+
name: string;
|
|
869
|
+
/** Commit hash the ref points at (annotated tags are peeled to their commit). */
|
|
870
|
+
commit: string;
|
|
871
|
+
/** First line of the commit message, when available. */
|
|
872
|
+
commit_subject?: string;
|
|
873
|
+
/** Commit date as an ISO-8601 string, when available. */
|
|
874
|
+
commit_date?: string;
|
|
875
|
+
/** Commit author name, when available. */
|
|
876
|
+
commit_author?: string;
|
|
877
|
+
}
|
|
878
|
+
/** The branches and tags of an app git repo (see {@link AppRepoRef}). */
|
|
879
|
+
export interface AppRepoRefs {
|
|
880
|
+
/** The repository's default branch (HEAD target), when resolvable. */
|
|
881
|
+
default_branch?: string;
|
|
882
|
+
branches: AppRepoRef[];
|
|
883
|
+
tags: AppRepoRef[];
|
|
471
884
|
}
|
|
472
885
|
/**
|
|
473
|
-
*
|
|
474
|
-
*
|
|
475
|
-
* with the unresolved placeholder visible, rather than silently pointing nowhere).
|
|
476
|
-
* Trailing slashes on replacement values are stripped to avoid `//api/...` joins.
|
|
477
|
-
*/
|
|
478
|
-
export declare function substituteEndpoints(url: string, endpoints?: Endpoints): string;
|
|
479
|
-
/**
|
|
480
|
-
* Resolves the effective endpoint for an app.
|
|
481
|
-
*
|
|
482
|
-
* Order of resolution:
|
|
483
|
-
* 1. If `requestedOverride` matches an `endpoint_overrides` key, use that URL
|
|
484
|
-
* (caller must verify the user is allowed to use the override).
|
|
485
|
-
* 2. Else if `envName` matches an `endpoint_overrides` key, use that URL
|
|
486
|
-
* (auto-resolution from the studio-server's deployment env).
|
|
487
|
-
* 3. Otherwise use the main `endpoint`.
|
|
488
|
-
* 4. Apply `{{var}}` substitution using `vars`.
|
|
489
|
-
*/
|
|
490
|
-
export declare function resolveAppEndpoint(manifest: Pick<AppManifestData, 'endpoint' | 'endpoint_overrides'>, envName?: string, vars?: Endpoints, requestedOverride?: string): string | undefined;
|
|
491
|
-
/**
|
|
492
|
-
* Resolves all URL placeholders in a manifest in place (both `endpoint` and
|
|
493
|
-
* `tool_collections[].url`). Intended for server-side serialization — clients and
|
|
494
|
-
* downstream workers receive already-substituted URLs so they don't need to know
|
|
495
|
-
* about deployment-time vars.
|
|
496
|
-
*
|
|
497
|
-
* Mutates the manifest rather than returning a copy so it works cleanly with
|
|
498
|
-
* Mongoose populated subdocs.
|
|
886
|
+
* Canonical package scopes, including the catch-all `all`. The public type is derived
|
|
887
|
+
* from this list so request parsing and TypeScript cannot drift.
|
|
499
888
|
*/
|
|
500
|
-
export declare
|
|
501
|
-
export type AppPackageScope =
|
|
889
|
+
export declare const APP_PACKAGE_SCOPES: readonly ["ui", "tools", "interactions", "types", "processes", "views", "templates", "dashboards", "settings", "widgets", "activities", "all"];
|
|
890
|
+
export type AppPackageScope = (typeof APP_PACKAGE_SCOPES)[number];
|
|
502
891
|
export interface AppPackage {
|
|
503
892
|
/**
|
|
504
893
|
* The UI configuration of the app
|
|
@@ -527,10 +916,18 @@ export interface AppPackage {
|
|
|
527
916
|
* A list of process definitions exposed by the app.
|
|
528
917
|
*/
|
|
529
918
|
processes?: InCodeProcessDefinition[];
|
|
919
|
+
/**
|
|
920
|
+
* View Experiences exposed by the app as in-code definitions.
|
|
921
|
+
*/
|
|
922
|
+
views?: InCodeViewDefinition[];
|
|
530
923
|
/**
|
|
531
924
|
* Templates provided by the app.
|
|
532
925
|
*/
|
|
533
926
|
templates?: RenderingTemplateDefinitionRef[];
|
|
927
|
+
/**
|
|
928
|
+
* Dashboards provided by the app.
|
|
929
|
+
*/
|
|
930
|
+
dashboards?: AppDashboardDefinition[];
|
|
534
931
|
/**
|
|
535
932
|
* Widgets provided by the app.
|
|
536
933
|
*/
|
|
@@ -546,6 +943,58 @@ export interface AppPackage {
|
|
|
546
943
|
*/
|
|
547
944
|
settings_schema?: JSONSchema;
|
|
548
945
|
}
|
|
946
|
+
/**
|
|
947
|
+
* A single diagnostic produced while inspecting an app's registration state.
|
|
948
|
+
*/
|
|
949
|
+
export interface AppInspectionIssue {
|
|
950
|
+
severity: 'error' | 'warning';
|
|
951
|
+
/** The capability this issue relates to, when applicable (e.g. 'types'). */
|
|
952
|
+
capability?: AppPackageScope;
|
|
953
|
+
/** Stable machine code, e.g. 'capability_declared_but_empty', 'endpoint_unreachable', 'not_installed'. */
|
|
954
|
+
code: string;
|
|
955
|
+
/** Human-readable explanation, safe to surface to the model and the UI. */
|
|
956
|
+
message: string;
|
|
957
|
+
}
|
|
958
|
+
/**
|
|
959
|
+
* Per-capability report of what an app's promoted package actually exposes,
|
|
960
|
+
* compared against what its manifest declares.
|
|
961
|
+
*/
|
|
962
|
+
export interface AppInspectionCapabilityReport {
|
|
963
|
+
capability: AppPackageScope;
|
|
964
|
+
/** True when the manifest's `capabilities` array declares this capability. */
|
|
965
|
+
declared: boolean;
|
|
966
|
+
/** The local ids the promoted package actually serves for this capability. */
|
|
967
|
+
exposed_ids: string[];
|
|
968
|
+
/** Convenience count of `exposed_ids`. */
|
|
969
|
+
exposed_count: number;
|
|
970
|
+
}
|
|
971
|
+
/**
|
|
972
|
+
* Result of inspecting an app's registration: the resolved manifest state, what
|
|
973
|
+
* the promoted package actually exposes per capability, and diagnostics. This
|
|
974
|
+
* is the ground truth used by the `app_inspect_registration` agent tool and the
|
|
975
|
+
* Build › App inspection UI to verify what is registered vs declared, instead of
|
|
976
|
+
* inferring it from failed object/import calls.
|
|
977
|
+
*/
|
|
978
|
+
export interface AppInspectionResult {
|
|
979
|
+
app_id: string;
|
|
980
|
+
name: string;
|
|
981
|
+
version?: string;
|
|
982
|
+
/** The resolved package endpoint for the current environment, if any. */
|
|
983
|
+
endpoint?: string;
|
|
984
|
+
/** True when the package endpoint responded to the capability probe. */
|
|
985
|
+
endpoint_reachable: boolean;
|
|
986
|
+
/** True when the app is installed in the current project. */
|
|
987
|
+
installed: boolean;
|
|
988
|
+
access_control?: string;
|
|
989
|
+
/** The capabilities declared on the manifest. */
|
|
990
|
+
capabilities: AppPackageScope[];
|
|
991
|
+
/** What the promoted package exposes, per capability. */
|
|
992
|
+
package: AppInspectionCapabilityReport[];
|
|
993
|
+
/** Diagnostics — errors and warnings about the registration state. */
|
|
994
|
+
issues: AppInspectionIssue[];
|
|
995
|
+
/** Populated when the package probe itself failed (endpoint error/unreachable). */
|
|
996
|
+
probe_error?: string;
|
|
997
|
+
}
|
|
549
998
|
export interface AppWidgetInfo {
|
|
550
999
|
collection: string;
|
|
551
1000
|
skill: string;
|
|
@@ -587,6 +1036,7 @@ export interface AppManifestSource {
|
|
|
587
1036
|
git: {
|
|
588
1037
|
url: string;
|
|
589
1038
|
default_branch?: string;
|
|
1039
|
+
production_branch?: string;
|
|
590
1040
|
development_branch?: string;
|
|
591
1041
|
};
|
|
592
1042
|
}
|
|
@@ -1072,5 +1522,21 @@ export interface ValidateUrlRequest {
|
|
|
1072
1522
|
export interface ValidateUrlResponse {
|
|
1073
1523
|
valid: true;
|
|
1074
1524
|
}
|
|
1525
|
+
/**
|
|
1526
|
+
* Result of DELETE /api/v1/apps/:id. With `?confirm=true` the cascade runs and
|
|
1527
|
+
* `deleted: true` is set; without it the endpoint returns a dry-run summary so
|
|
1528
|
+
* the UI can show what would be removed.
|
|
1529
|
+
*/
|
|
1530
|
+
export interface AppDeleteSummary {
|
|
1531
|
+
confirmed: boolean;
|
|
1532
|
+
app_id: string;
|
|
1533
|
+
app_name: string;
|
|
1534
|
+
versions: number;
|
|
1535
|
+
installations: number;
|
|
1536
|
+
storage_prefix: string;
|
|
1537
|
+
git_repo_url?: string;
|
|
1538
|
+
deleted: boolean;
|
|
1539
|
+
warnings: string[];
|
|
1540
|
+
}
|
|
1075
1541
|
export {};
|
|
1076
1542
|
//# sourceMappingURL=apps.d.ts.map
|