@synsci/sdk 2.0.2-test.45.1 → 2.0.2-test.48.1

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.
@@ -1,5 +1,5 @@
1
1
  import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
2
- import type { AccountBalanceResponses, AccountBillingModeGetResponses, AccountBillingModeSetResponses, AccountDeviceRevokeResponses, AccountDevicesResponses, AccountGetResponses, AccountLoginKeyResponses, AccountLogoutResponses, AccountSessionResponses, AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillDeleteResponses, AppSkillsResponses, AppSkillWriteResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config4, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, ExperimentalResourceListResponses, FileAnnotationsCreateResponses, FileAnnotationsDeleteResponses, FileAnnotationsHistoryResponses, FileAnnotationsListResponses, FileAnnotationsUpdateResponses, FileArtifactSaveErrors, FileArtifactSaveResponses, FileArtifactsResponses, FileInspectResponses, FileLineageResponses, FileListResponses, FileManifestResponses, FilePartInput, FilePartSource, FileProvenanceResponses, FilePublicationCapabilitiesResponses, FilePublicationResponses, FileRawResponses, FileReadResponses, FileReproducibilityResponses, FileReviewsCurrentErrors, FileReviewsCurrentResponses, FileReviewsFinalizeErrors, FileReviewsFinalizeResponses, FileReviewsHistoryResponses, FileReviewsResolveErrors, FileReviewsResolveResponses, FileReviewsRunResponses, FileStarterResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigRawGetResponses, GlobalConfigRawSetErrors, GlobalConfigRawSetResponses, GlobalConfigUnsetErrors, GlobalConfigUnsetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalProjectCreateErrors, GlobalProjectCreateResponses, GlobalSyncResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConfigRemoveErrors, McpConfigRemoveResponses, McpConfigSetErrors, McpConfigSetResponses, McpConnectResponses, McpDisconnectResponses, McpInspectErrors, McpInspectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, NotebookExecuteResponses, NotebookInterruptResponses, NotebookKernelDeleteResponses, NotebookKernelInterruptResponses, NotebookKernelRestartResponses, NotebookKernelsResponses, NotebookKernelStopResponses, NotebookRestartResponses, NotebookStatusResponses, NotebookStopResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionStandingListResponses, PermissionStandingRevokeResponses, PostSettingsLocalModelsResponses, PostSettingsLocalResponses, PostSettingsLocalStartResponses, ProjectCurrentResponses, ProjectExecutionErrors, ProjectExecutionResponses, ProjectListResponses, ProjectTrustGetErrors, ProjectTrustGetResponses, ProjectTrustUpdateErrors, ProjectTrustUpdateResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProvenanceExportResponses, ProvenanceListResponses, ProvenanceRecordErrors, ProvenanceRecordResponses, ProvenanceReviewErrors, ProvenanceReviewResponses, ProvenanceReviewsListResponses, ProvenanceReviewsResolveErrors, ProvenanceReviewsResolveResponses, ProvenanceTraceErrors, ProvenanceTraceResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, PutSettingsSandboxResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SearchQueryResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionFilesystemGrantErrors, SessionFilesystemGrantResponses, SessionFilesystemListErrors, SessionFilesystemListResponses, SessionFilesystemRevokeErrors, SessionFilesystemRevokeResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionReviewErrors, SessionReviewResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUpdateErrors, SessionUpdateResponses, SettingsBillingGetResponses, SettingsBillingUpdateResponses, SettingsComputeGetResponses, SettingsComputeJobsCancelErrors, SettingsComputeJobsCancelResponses, SettingsComputeJobsClearResponses, SettingsComputeJobsListResponses, SettingsComputeJobsLogErrors, SettingsComputeJobsLogResponses, SettingsComputeJobsStartErrors, SettingsComputeJobsStartResponses, SettingsComputeProviderConnectErrors, SettingsComputeProviderConnectResponses, SettingsComputeProviderDisconnectResponses, SettingsComputeSshAddErrors, SettingsComputeSshAddResponses, SettingsComputeSshRemoveResponses, SettingsComputeSshTestErrors, SettingsComputeSshTestResponses, SettingsCredentialsListResponses, SettingsCredentialsRemoveResponses, SettingsCredentialsSetResponses, SettingsMemoryGetResponses, SettingsMemorySearchResponses, SettingsMemorySetResponses, SettingsNetworkGetResponses, SettingsNetworkSetResponses, SettingsPreferencesGetResponses, SettingsPreferencesUpdateResponses, SettingsReviewGetResponses, SettingsReviewSetResponses, SettingsSkillsInstallErrors, SettingsSkillsInstallResponses, SettingsStorageRelocateResponses, SettingsStorageResetLocationResponses, SettingsStorageUsageResponses, SettingsUsageGetResponses, SettingsWalletGetResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
2
+ import type { AccountBalanceResponses, AccountBillingModeGetResponses, AccountBillingModeSetResponses, AccountDeviceRevokeResponses, AccountDevicesResponses, AccountGetResponses, AccountLoginKeyResponses, AccountLogoutResponses, AccountSessionResponses, AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillDeleteResponses, AppSkillsResponses, AppSkillWriteResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config4, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, ExperimentalResourceListResponses, FileAnnotationsCreateResponses, FileAnnotationsDeleteResponses, FileAnnotationsHistoryResponses, FileAnnotationsListResponses, FileAnnotationsUpdateResponses, FileArtifactSaveErrors, FileArtifactSaveResponses, FileArtifactsResponses, FileArtifactStoreGetErrors, FileArtifactStoreGetResponses, FileArtifactStoreListResponses, FileArtifactStoreRawErrors, FileArtifactStoreRawResponses, FileArtifactStoreRenameErrors, FileArtifactStoreRenameResponses, FileArtifactStoreRestoreErrors, FileArtifactStoreRestoreResponses, FileArtifactStoreTrashErrors, FileArtifactStoreTrashResponses, FileInspectResponses, FileLineageResponses, FileListResponses, FileManifestResponses, FilePartInput, FilePartSource, FileProvenanceResponses, FilePublicationCapabilitiesResponses, FilePublicationResponses, FileRawResponses, FileReadResponses, FileReproducibilityResponses, FileReviewsCurrentErrors, FileReviewsCurrentResponses, FileReviewsFinalizeErrors, FileReviewsFinalizeResponses, FileReviewsHistoryResponses, FileReviewsResolveErrors, FileReviewsResolveResponses, FileReviewsRunResponses, FileStarterResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigRawGetResponses, GlobalConfigRawSetErrors, GlobalConfigRawSetResponses, GlobalConfigUnsetErrors, GlobalConfigUnsetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalProjectCreateErrors, GlobalProjectCreateResponses, GlobalSyncResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConfigRemoveErrors, McpConfigRemoveResponses, McpConfigSetErrors, McpConfigSetResponses, McpConnectResponses, McpDisconnectResponses, McpInspectErrors, McpInspectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, NotebookExecuteResponses, NotebookInterruptResponses, NotebookKernelDeleteResponses, NotebookKernelInterruptResponses, NotebookKernelRestartResponses, NotebookKernelsResponses, NotebookKernelStopResponses, NotebookRestartResponses, NotebookStatusResponses, NotebookStopResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionStandingListResponses, PermissionStandingRevokeResponses, PostSettingsLocalModelsResponses, PostSettingsLocalResponses, PostSettingsLocalStartResponses, ProjectCurrentResponses, ProjectExecutionErrors, ProjectExecutionResponses, ProjectListResponses, ProjectTrustGetErrors, ProjectTrustGetResponses, ProjectTrustUpdateErrors, ProjectTrustUpdateResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProvenanceExportResponses, ProvenanceListResponses, ProvenanceRecordErrors, ProvenanceRecordResponses, ProvenanceReviewErrors, ProvenanceReviewResponses, ProvenanceReviewsListResponses, ProvenanceReviewsResolveErrors, ProvenanceReviewsResolveResponses, ProvenanceTraceErrors, ProvenanceTraceResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, PutSettingsSandboxResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SearchQueryResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionFilesystemGrantErrors, SessionFilesystemGrantResponses, SessionFilesystemListErrors, SessionFilesystemListResponses, SessionFilesystemRevokeErrors, SessionFilesystemRevokeResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionReviewArtifactErrors, SessionReviewArtifactResponses, SessionReviewErrors, SessionReviewResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUpdateErrors, SessionUpdateResponses, SettingsBillingGetResponses, SettingsBillingUpdateResponses, SettingsComputeGetResponses, SettingsComputeJobsCancelErrors, SettingsComputeJobsCancelResponses, SettingsComputeJobsClearResponses, SettingsComputeJobsListResponses, SettingsComputeJobsLogErrors, SettingsComputeJobsLogResponses, SettingsComputeJobsStartErrors, SettingsComputeJobsStartResponses, SettingsComputeProviderConnectErrors, SettingsComputeProviderConnectResponses, SettingsComputeProviderDisconnectResponses, SettingsComputeSshAddErrors, SettingsComputeSshAddResponses, SettingsComputeSshRemoveResponses, SettingsComputeSshTestErrors, SettingsComputeSshTestResponses, SettingsCredentialsListResponses, SettingsCredentialsRemoveResponses, SettingsCredentialsSetResponses, SettingsMemoryGetResponses, SettingsMemorySearchResponses, SettingsMemorySetResponses, SettingsNetworkGetResponses, SettingsNetworkSetResponses, SettingsPreferencesGetResponses, SettingsPreferencesUpdateResponses, SettingsReviewGetResponses, SettingsReviewSetResponses, SettingsSkillsInstallErrors, SettingsSkillsInstallResponses, SettingsStorageRelocateResponses, SettingsStorageResetLocationResponses, SettingsStorageUsageResponses, SettingsUsageGetResponses, SettingsWalletGetResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -851,6 +851,17 @@ export declare class Session extends HeyApiClient {
851
851
  sessionID: string;
852
852
  directory?: string;
853
853
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionReviewResponses, SessionReviewErrors, ThrowOnError, "fields">;
854
+ /**
855
+ * Review one immutable artifact version
856
+ *
857
+ * Launches a read-only reviewer against one exact artifact-store version. The returned target binds the version id, byte count, MIME type, and SHA-256 used by every recorded finding.
858
+ */
859
+ reviewArtifact<ThrowOnError extends boolean = false>(parameters: {
860
+ sessionID: string;
861
+ directory?: string;
862
+ artifactID?: string;
863
+ versionID?: string;
864
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionReviewArtifactResponses, SessionReviewArtifactErrors, ThrowOnError, "fields">;
854
865
  /**
855
866
  * Initialize session
856
867
  *
@@ -1227,15 +1238,75 @@ export declare class Artifact extends HeyApiClient {
1227
1238
  /**
1228
1239
  * Save a file as a versioned artifact
1229
1240
  *
1230
- * Register a project file's current bytes as an immutable, durably retained artifact version with provenance.
1241
+ * Stream a file's exact bytes into the local, immutable, content-addressed artifact store.
1231
1242
  */
1232
1243
  save<ThrowOnError extends boolean = false>(parameters?: {
1233
1244
  directory?: string;
1234
1245
  path?: string;
1235
1246
  sessionID?: string;
1247
+ messageID?: string;
1236
1248
  summary?: string;
1237
1249
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileArtifactSaveResponses, FileArtifactSaveErrors, ThrowOnError, "fields">;
1238
1250
  }
1251
+ export declare class ArtifactStore extends HeyApiClient {
1252
+ /**
1253
+ * List saved artifacts
1254
+ *
1255
+ * List active or recoverable trashed artifacts from this project's local artifact database.
1256
+ */
1257
+ list<ThrowOnError extends boolean = false>(parameters?: {
1258
+ directory?: string;
1259
+ state?: "active" | "trash";
1260
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileArtifactStoreListResponses, unknown, ThrowOnError, "fields">;
1261
+ /**
1262
+ * Move a saved artifact to trash
1263
+ *
1264
+ * Hide an artifact from active Files while retaining every version for 30 days.
1265
+ */
1266
+ trash<ThrowOnError extends boolean = false>(parameters: {
1267
+ id: string;
1268
+ directory?: string;
1269
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileArtifactStoreTrashResponses, FileArtifactStoreTrashErrors, ThrowOnError, "fields">;
1270
+ /**
1271
+ * Read one saved artifact record
1272
+ *
1273
+ * Read immutable version metadata and the current execution record for a saved artifact.
1274
+ */
1275
+ get<ThrowOnError extends boolean = false>(parameters: {
1276
+ id: string;
1277
+ directory?: string;
1278
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileArtifactStoreGetResponses, FileArtifactStoreGetErrors, ThrowOnError, "fields">;
1279
+ /**
1280
+ * Rename a saved artifact
1281
+ *
1282
+ * Rename the artifact record without changing any immutable version bytes.
1283
+ */
1284
+ rename<ThrowOnError extends boolean = false>(parameters: {
1285
+ id: string;
1286
+ directory?: string;
1287
+ title?: string;
1288
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileArtifactStoreRenameResponses, FileArtifactStoreRenameErrors, ThrowOnError, "fields">;
1289
+ /**
1290
+ * Restore a trashed artifact
1291
+ *
1292
+ * Restore an artifact and all immutable versions during its 30-day retention window.
1293
+ */
1294
+ restore<ThrowOnError extends boolean = false>(parameters: {
1295
+ id: string;
1296
+ directory?: string;
1297
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileArtifactStoreRestoreResponses, FileArtifactStoreRestoreErrors, ThrowOnError, "fields">;
1298
+ /**
1299
+ * Download an immutable artifact version
1300
+ *
1301
+ * Stream the current or selected immutable blob from the local artifact store.
1302
+ */
1303
+ raw<ThrowOnError extends boolean = false>(parameters: {
1304
+ id: string;
1305
+ directory?: string;
1306
+ versionID?: string;
1307
+ download?: "true" | "false";
1308
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileArtifactStoreRawResponses, FileArtifactStoreRawErrors, ThrowOnError, "fields">;
1309
+ }
1239
1310
  export declare class Annotations extends HeyApiClient {
1240
1311
  /**
1241
1312
  * List artifact annotations
@@ -1500,6 +1571,8 @@ export declare class File extends HeyApiClient {
1500
1571
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileStatusResponses, unknown, ThrowOnError, "fields">;
1501
1572
  private _artifact?;
1502
1573
  get artifact(): Artifact;
1574
+ private _artifactStore?;
1575
+ get artifactStore(): ArtifactStore;
1503
1576
  private _annotations?;
1504
1577
  get annotations(): Annotations;
1505
1578
  private _reviews?;
@@ -1651,6 +1651,33 @@ export class Session extends HeyApiClient {
1651
1651
  ...params,
1652
1652
  });
1653
1653
  }
1654
+ /**
1655
+ * Review one immutable artifact version
1656
+ *
1657
+ * Launches a read-only reviewer against one exact artifact-store version. The returned target binds the version id, byte count, MIME type, and SHA-256 used by every recorded finding.
1658
+ */
1659
+ reviewArtifact(parameters, options) {
1660
+ const params = buildClientParams([parameters], [
1661
+ {
1662
+ args: [
1663
+ { in: "path", key: "sessionID" },
1664
+ { in: "query", key: "directory" },
1665
+ { in: "body", key: "artifactID" },
1666
+ { in: "body", key: "versionID" },
1667
+ ],
1668
+ },
1669
+ ]);
1670
+ return (options?.client ?? this.client).post({
1671
+ url: "/session/{sessionID}/review/artifact",
1672
+ ...options,
1673
+ ...params,
1674
+ headers: {
1675
+ "Content-Type": "application/json",
1676
+ ...options?.headers,
1677
+ ...params.headers,
1678
+ },
1679
+ });
1680
+ }
1654
1681
  /**
1655
1682
  * Initialize session
1656
1683
  *
@@ -2394,7 +2421,7 @@ export class Artifact extends HeyApiClient {
2394
2421
  /**
2395
2422
  * Save a file as a versioned artifact
2396
2423
  *
2397
- * Register a project file's current bytes as an immutable, durably retained artifact version with provenance.
2424
+ * Stream a file's exact bytes into the local, immutable, content-addressed artifact store.
2398
2425
  */
2399
2426
  save(parameters, options) {
2400
2427
  const params = buildClientParams([parameters], [
@@ -2403,6 +2430,7 @@ export class Artifact extends HeyApiClient {
2403
2430
  { in: "query", key: "directory" },
2404
2431
  { in: "body", key: "path" },
2405
2432
  { in: "body", key: "sessionID" },
2433
+ { in: "body", key: "messageID" },
2406
2434
  { in: "body", key: "summary" },
2407
2435
  ],
2408
2436
  },
@@ -2419,6 +2447,136 @@ export class Artifact extends HeyApiClient {
2419
2447
  });
2420
2448
  }
2421
2449
  }
2450
+ export class ArtifactStore extends HeyApiClient {
2451
+ /**
2452
+ * List saved artifacts
2453
+ *
2454
+ * List active or recoverable trashed artifacts from this project's local artifact database.
2455
+ */
2456
+ list(parameters, options) {
2457
+ const params = buildClientParams([parameters], [
2458
+ {
2459
+ args: [
2460
+ { in: "query", key: "directory" },
2461
+ { in: "query", key: "state" },
2462
+ ],
2463
+ },
2464
+ ]);
2465
+ return (options?.client ?? this.client).get({
2466
+ url: "/file/artifact-store",
2467
+ ...options,
2468
+ ...params,
2469
+ });
2470
+ }
2471
+ /**
2472
+ * Move a saved artifact to trash
2473
+ *
2474
+ * Hide an artifact from active Files while retaining every version for 30 days.
2475
+ */
2476
+ trash(parameters, options) {
2477
+ const params = buildClientParams([parameters], [
2478
+ {
2479
+ args: [
2480
+ { in: "path", key: "id" },
2481
+ { in: "query", key: "directory" },
2482
+ ],
2483
+ },
2484
+ ]);
2485
+ return (options?.client ?? this.client).delete({
2486
+ url: "/file/artifact-store/{id}",
2487
+ ...options,
2488
+ ...params,
2489
+ });
2490
+ }
2491
+ /**
2492
+ * Read one saved artifact record
2493
+ *
2494
+ * Read immutable version metadata and the current execution record for a saved artifact.
2495
+ */
2496
+ get(parameters, options) {
2497
+ const params = buildClientParams([parameters], [
2498
+ {
2499
+ args: [
2500
+ { in: "path", key: "id" },
2501
+ { in: "query", key: "directory" },
2502
+ ],
2503
+ },
2504
+ ]);
2505
+ return (options?.client ?? this.client).get({
2506
+ url: "/file/artifact-store/{id}",
2507
+ ...options,
2508
+ ...params,
2509
+ });
2510
+ }
2511
+ /**
2512
+ * Rename a saved artifact
2513
+ *
2514
+ * Rename the artifact record without changing any immutable version bytes.
2515
+ */
2516
+ rename(parameters, options) {
2517
+ const params = buildClientParams([parameters], [
2518
+ {
2519
+ args: [
2520
+ { in: "path", key: "id" },
2521
+ { in: "query", key: "directory" },
2522
+ { in: "body", key: "title" },
2523
+ ],
2524
+ },
2525
+ ]);
2526
+ return (options?.client ?? this.client).patch({
2527
+ url: "/file/artifact-store/{id}",
2528
+ ...options,
2529
+ ...params,
2530
+ headers: {
2531
+ "Content-Type": "application/json",
2532
+ ...options?.headers,
2533
+ ...params.headers,
2534
+ },
2535
+ });
2536
+ }
2537
+ /**
2538
+ * Restore a trashed artifact
2539
+ *
2540
+ * Restore an artifact and all immutable versions during its 30-day retention window.
2541
+ */
2542
+ restore(parameters, options) {
2543
+ const params = buildClientParams([parameters], [
2544
+ {
2545
+ args: [
2546
+ { in: "path", key: "id" },
2547
+ { in: "query", key: "directory" },
2548
+ ],
2549
+ },
2550
+ ]);
2551
+ return (options?.client ?? this.client).post({
2552
+ url: "/file/artifact-store/{id}/restore",
2553
+ ...options,
2554
+ ...params,
2555
+ });
2556
+ }
2557
+ /**
2558
+ * Download an immutable artifact version
2559
+ *
2560
+ * Stream the current or selected immutable blob from the local artifact store.
2561
+ */
2562
+ raw(parameters, options) {
2563
+ const params = buildClientParams([parameters], [
2564
+ {
2565
+ args: [
2566
+ { in: "path", key: "id" },
2567
+ { in: "query", key: "directory" },
2568
+ { in: "query", key: "versionID" },
2569
+ { in: "query", key: "download" },
2570
+ ],
2571
+ },
2572
+ ]);
2573
+ return (options?.client ?? this.client).get({
2574
+ url: "/file/artifact-store/{id}/raw",
2575
+ ...options,
2576
+ ...params,
2577
+ });
2578
+ }
2579
+ }
2422
2580
  export class Annotations extends HeyApiClient {
2423
2581
  /**
2424
2582
  * List artifact annotations
@@ -2944,6 +3102,10 @@ export class File extends HeyApiClient {
2944
3102
  get artifact() {
2945
3103
  return (this._artifact ??= new Artifact({ client: this.client }));
2946
3104
  }
3105
+ _artifactStore;
3106
+ get artifactStore() {
3107
+ return (this._artifactStore ??= new ArtifactStore({ client: this.client }));
3108
+ }
2947
3109
  _annotations;
2948
3110
  get annotations() {
2949
3111
  return (this._annotations ??= new Annotations({ client: this.client }));
@@ -5172,6 +5172,52 @@ export type SessionReviewResponses = {
5172
5172
  };
5173
5173
  };
5174
5174
  export type SessionReviewResponse = SessionReviewResponses[keyof SessionReviewResponses];
5175
+ export type SessionReviewArtifactData = {
5176
+ body?: {
5177
+ artifactID: string;
5178
+ versionID: string;
5179
+ };
5180
+ path: {
5181
+ /**
5182
+ * Session ID
5183
+ */
5184
+ sessionID: string;
5185
+ };
5186
+ query?: {
5187
+ directory?: string;
5188
+ };
5189
+ url: "/session/{sessionID}/review/artifact";
5190
+ };
5191
+ export type SessionReviewArtifactErrors = {
5192
+ /**
5193
+ * Bad request
5194
+ */
5195
+ 400: BadRequestError;
5196
+ /**
5197
+ * Not found
5198
+ */
5199
+ 404: NotFoundError;
5200
+ };
5201
+ export type SessionReviewArtifactError = SessionReviewArtifactErrors[keyof SessionReviewArtifactErrors];
5202
+ export type SessionReviewArtifactResponses = {
5203
+ /**
5204
+ * Exact-version review started
5205
+ */
5206
+ 200: {
5207
+ started: boolean;
5208
+ target: {
5209
+ id: string;
5210
+ artifactID: string;
5211
+ versionID: string;
5212
+ version: number;
5213
+ filename: string;
5214
+ mimeType: string;
5215
+ size: number;
5216
+ sha256: string;
5217
+ };
5218
+ };
5219
+ };
5220
+ export type SessionReviewArtifactResponse = SessionReviewArtifactResponses[keyof SessionReviewArtifactResponses];
5175
5221
  export type SessionInitData = {
5176
5222
  body?: {
5177
5223
  modelID: string;
@@ -6224,6 +6270,7 @@ export type FileArtifactSaveData = {
6224
6270
  body?: {
6225
6271
  path: string;
6226
6272
  sessionID: string;
6273
+ messageID?: string;
6227
6274
  summary?: string;
6228
6275
  };
6229
6276
  path?: never;
@@ -6242,24 +6289,361 @@ export type FileArtifactSaveErrors = {
6242
6289
  */
6243
6290
  404: unknown;
6244
6291
  /**
6245
- * File exceeds the 5 MB artifact limit
6292
+ * File exceeds the 1 GiB artifact version limit
6246
6293
  */
6247
6294
  413: unknown;
6295
+ /**
6296
+ * Insufficient free space to preserve the safety reserve
6297
+ */
6298
+ 507: unknown;
6248
6299
  };
6249
6300
  export type FileArtifactSaveResponses = {
6250
6301
  /**
6251
6302
  * Registered artifact version
6252
6303
  */
6253
6304
  200: {
6305
+ schemaVersion: 1;
6254
6306
  id: string;
6255
- versionID: string;
6256
- version: number;
6257
- type: string;
6258
- summary: string;
6259
- encoding?: "base64";
6307
+ projectID: string;
6308
+ title: string;
6309
+ kind: string;
6310
+ currentVersionID: string;
6311
+ createdAt: number;
6312
+ updatedAt: number;
6313
+ state: "active" | "trash";
6314
+ trashedAt?: number;
6315
+ versionCount: number;
6316
+ current: {
6317
+ id: string;
6318
+ artifactID: string;
6319
+ version: number;
6320
+ filename: string;
6321
+ mimeType: string;
6322
+ size: number;
6323
+ sha256: string;
6324
+ sessionID: string;
6325
+ messageID?: string;
6326
+ executionID?: string;
6327
+ sourcePath: string;
6328
+ captureQuality: "exact" | "declared" | "partial" | "unknown";
6329
+ createdAt: number;
6330
+ };
6260
6331
  };
6261
6332
  };
6262
6333
  export type FileArtifactSaveResponse = FileArtifactSaveResponses[keyof FileArtifactSaveResponses];
6334
+ export type FileArtifactStoreListData = {
6335
+ body?: never;
6336
+ path?: never;
6337
+ query?: {
6338
+ directory?: string;
6339
+ state?: "active" | "trash";
6340
+ };
6341
+ url: "/file/artifact-store";
6342
+ };
6343
+ export type FileArtifactStoreListResponses = {
6344
+ /**
6345
+ * Saved artifacts
6346
+ */
6347
+ 200: Array<{
6348
+ schemaVersion: 1;
6349
+ id: string;
6350
+ projectID: string;
6351
+ title: string;
6352
+ kind: string;
6353
+ currentVersionID: string;
6354
+ createdAt: number;
6355
+ updatedAt: number;
6356
+ state: "active" | "trash";
6357
+ trashedAt?: number;
6358
+ versionCount: number;
6359
+ current: {
6360
+ id: string;
6361
+ artifactID: string;
6362
+ version: number;
6363
+ filename: string;
6364
+ mimeType: string;
6365
+ size: number;
6366
+ sha256: string;
6367
+ sessionID: string;
6368
+ messageID?: string;
6369
+ executionID?: string;
6370
+ sourcePath: string;
6371
+ captureQuality: "exact" | "declared" | "partial" | "unknown";
6372
+ createdAt: number;
6373
+ };
6374
+ }>;
6375
+ };
6376
+ export type FileArtifactStoreListResponse = FileArtifactStoreListResponses[keyof FileArtifactStoreListResponses];
6377
+ export type FileArtifactStoreTrashData = {
6378
+ body?: never;
6379
+ path: {
6380
+ id: string;
6381
+ };
6382
+ query?: {
6383
+ directory?: string;
6384
+ };
6385
+ url: "/file/artifact-store/{id}";
6386
+ };
6387
+ export type FileArtifactStoreTrashErrors = {
6388
+ /**
6389
+ * Artifact not found
6390
+ */
6391
+ 404: unknown;
6392
+ };
6393
+ export type FileArtifactStoreTrashResponses = {
6394
+ /**
6395
+ * Trashed artifact
6396
+ */
6397
+ 200: {
6398
+ schemaVersion: 1;
6399
+ id: string;
6400
+ projectID: string;
6401
+ title: string;
6402
+ kind: string;
6403
+ currentVersionID: string;
6404
+ createdAt: number;
6405
+ updatedAt: number;
6406
+ state: "active" | "trash";
6407
+ trashedAt?: number;
6408
+ versionCount: number;
6409
+ current: {
6410
+ id: string;
6411
+ artifactID: string;
6412
+ version: number;
6413
+ filename: string;
6414
+ mimeType: string;
6415
+ size: number;
6416
+ sha256: string;
6417
+ sessionID: string;
6418
+ messageID?: string;
6419
+ executionID?: string;
6420
+ sourcePath: string;
6421
+ captureQuality: "exact" | "declared" | "partial" | "unknown";
6422
+ createdAt: number;
6423
+ };
6424
+ };
6425
+ };
6426
+ export type FileArtifactStoreTrashResponse = FileArtifactStoreTrashResponses[keyof FileArtifactStoreTrashResponses];
6427
+ export type FileArtifactStoreGetData = {
6428
+ body?: never;
6429
+ path: {
6430
+ id: string;
6431
+ };
6432
+ query?: {
6433
+ directory?: string;
6434
+ };
6435
+ url: "/file/artifact-store/{id}";
6436
+ };
6437
+ export type FileArtifactStoreGetErrors = {
6438
+ /**
6439
+ * Artifact not found
6440
+ */
6441
+ 404: unknown;
6442
+ };
6443
+ export type FileArtifactStoreGetResponses = {
6444
+ /**
6445
+ * Saved artifact detail
6446
+ */
6447
+ 200: {
6448
+ schemaVersion: 1;
6449
+ id: string;
6450
+ projectID: string;
6451
+ title: string;
6452
+ kind: string;
6453
+ currentVersionID: string;
6454
+ createdAt: number;
6455
+ updatedAt: number;
6456
+ state: "active" | "trash";
6457
+ trashedAt?: number;
6458
+ versionCount: number;
6459
+ current: {
6460
+ id: string;
6461
+ artifactID: string;
6462
+ version: number;
6463
+ filename: string;
6464
+ mimeType: string;
6465
+ size: number;
6466
+ sha256: string;
6467
+ sessionID: string;
6468
+ messageID?: string;
6469
+ executionID?: string;
6470
+ sourcePath: string;
6471
+ captureQuality: "exact" | "declared" | "partial" | "unknown";
6472
+ createdAt: number;
6473
+ };
6474
+ versions: Array<{
6475
+ id: string;
6476
+ artifactID: string;
6477
+ version: number;
6478
+ filename: string;
6479
+ mimeType: string;
6480
+ size: number;
6481
+ sha256: string;
6482
+ sessionID: string;
6483
+ messageID?: string;
6484
+ executionID?: string;
6485
+ sourcePath: string;
6486
+ captureQuality: "exact" | "declared" | "partial" | "unknown";
6487
+ createdAt: number;
6488
+ }>;
6489
+ execution?: {
6490
+ id: string;
6491
+ artifactVersionID: string;
6492
+ command?: string;
6493
+ code?: string;
6494
+ status: "succeeded" | "failed" | "cancelled" | "unknown";
6495
+ stdout?: string;
6496
+ stderr?: string;
6497
+ model?: string;
6498
+ provider?: string;
6499
+ effort?: string;
6500
+ source?: string;
6501
+ permissionSnapshot?: {
6502
+ [key: string]: unknown;
6503
+ };
6504
+ inputs?: {
6505
+ [key: string]: unknown;
6506
+ };
6507
+ captureQuality: "exact" | "declared" | "partial" | "unknown";
6508
+ files: Array<{
6509
+ path: string;
6510
+ sha256: string;
6511
+ size: number;
6512
+ }>;
6513
+ environment?: {
6514
+ [key: string]: unknown;
6515
+ };
6516
+ createdAt: number;
6517
+ };
6518
+ };
6519
+ };
6520
+ export type FileArtifactStoreGetResponse = FileArtifactStoreGetResponses[keyof FileArtifactStoreGetResponses];
6521
+ export type FileArtifactStoreRenameData = {
6522
+ body?: {
6523
+ title: string;
6524
+ };
6525
+ path: {
6526
+ id: string;
6527
+ };
6528
+ query?: {
6529
+ directory?: string;
6530
+ };
6531
+ url: "/file/artifact-store/{id}";
6532
+ };
6533
+ export type FileArtifactStoreRenameErrors = {
6534
+ /**
6535
+ * Artifact not found
6536
+ */
6537
+ 404: unknown;
6538
+ };
6539
+ export type FileArtifactStoreRenameResponses = {
6540
+ /**
6541
+ * Renamed artifact
6542
+ */
6543
+ 200: {
6544
+ schemaVersion: 1;
6545
+ id: string;
6546
+ projectID: string;
6547
+ title: string;
6548
+ kind: string;
6549
+ currentVersionID: string;
6550
+ createdAt: number;
6551
+ updatedAt: number;
6552
+ state: "active" | "trash";
6553
+ trashedAt?: number;
6554
+ versionCount: number;
6555
+ current: {
6556
+ id: string;
6557
+ artifactID: string;
6558
+ version: number;
6559
+ filename: string;
6560
+ mimeType: string;
6561
+ size: number;
6562
+ sha256: string;
6563
+ sessionID: string;
6564
+ messageID?: string;
6565
+ executionID?: string;
6566
+ sourcePath: string;
6567
+ captureQuality: "exact" | "declared" | "partial" | "unknown";
6568
+ createdAt: number;
6569
+ };
6570
+ };
6571
+ };
6572
+ export type FileArtifactStoreRenameResponse = FileArtifactStoreRenameResponses[keyof FileArtifactStoreRenameResponses];
6573
+ export type FileArtifactStoreRestoreData = {
6574
+ body?: never;
6575
+ path: {
6576
+ id: string;
6577
+ };
6578
+ query?: {
6579
+ directory?: string;
6580
+ };
6581
+ url: "/file/artifact-store/{id}/restore";
6582
+ };
6583
+ export type FileArtifactStoreRestoreErrors = {
6584
+ /**
6585
+ * Artifact not found
6586
+ */
6587
+ 404: unknown;
6588
+ };
6589
+ export type FileArtifactStoreRestoreResponses = {
6590
+ /**
6591
+ * Restored artifact
6592
+ */
6593
+ 200: {
6594
+ schemaVersion: 1;
6595
+ id: string;
6596
+ projectID: string;
6597
+ title: string;
6598
+ kind: string;
6599
+ currentVersionID: string;
6600
+ createdAt: number;
6601
+ updatedAt: number;
6602
+ state: "active" | "trash";
6603
+ trashedAt?: number;
6604
+ versionCount: number;
6605
+ current: {
6606
+ id: string;
6607
+ artifactID: string;
6608
+ version: number;
6609
+ filename: string;
6610
+ mimeType: string;
6611
+ size: number;
6612
+ sha256: string;
6613
+ sessionID: string;
6614
+ messageID?: string;
6615
+ executionID?: string;
6616
+ sourcePath: string;
6617
+ captureQuality: "exact" | "declared" | "partial" | "unknown";
6618
+ createdAt: number;
6619
+ };
6620
+ };
6621
+ };
6622
+ export type FileArtifactStoreRestoreResponse = FileArtifactStoreRestoreResponses[keyof FileArtifactStoreRestoreResponses];
6623
+ export type FileArtifactStoreRawData = {
6624
+ body?: never;
6625
+ path: {
6626
+ id: string;
6627
+ };
6628
+ query?: {
6629
+ directory?: string;
6630
+ versionID?: string;
6631
+ download?: "true" | "false";
6632
+ };
6633
+ url: "/file/artifact-store/{id}/raw";
6634
+ };
6635
+ export type FileArtifactStoreRawErrors = {
6636
+ /**
6637
+ * Artifact version not found
6638
+ */
6639
+ 404: unknown;
6640
+ };
6641
+ export type FileArtifactStoreRawResponses = {
6642
+ /**
6643
+ * Immutable artifact bytes
6644
+ */
6645
+ 200: unknown;
6646
+ };
6263
6647
  export type FileProvenanceData = {
6264
6648
  body?: never;
6265
6649
  path?: never;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@synsci/sdk",
4
- "version": "2.0.2-test.45.1",
4
+ "version": "2.0.2-test.48.1",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "scripts": {