@synsci/sdk 2.0.2-test.46.1 → 2.0.2-test.49.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, FileArtifactStoreGetErrors, FileArtifactStoreGetResponses, FileArtifactStoreListResponses, FileArtifactStoreRawErrors, FileArtifactStoreRawResponses, 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
@@ -732,7 +732,7 @@ export declare class Filesystem extends HeyApiClient {
732
732
  /**
733
733
  * List filesystem grants
734
734
  *
735
- * List durable read-only and read-write filesystem grants for the session and its project.
735
+ * List durable read-only and read-write filesystem grants for the session, project, and installation.
736
736
  */
737
737
  list<ThrowOnError extends boolean = false>(parameters: {
738
738
  sessionID: string;
@@ -741,14 +741,14 @@ export declare class Filesystem extends HeyApiClient {
741
741
  /**
742
742
  * Grant filesystem access
743
743
  *
744
- * Grant read-only or read-write access to a canonical filesystem path for one use, the session, or every session in the project.
744
+ * Grant read-only or read-write access to a canonical filesystem path for one use, the session, every project session, or every session in this installation.
745
745
  */
746
746
  grant<ThrowOnError extends boolean = false>(parameters: {
747
747
  sessionID: string;
748
748
  directory?: string;
749
749
  path?: string;
750
750
  access?: "read" | "write";
751
- scope?: "once" | "session" | "project";
751
+ scope?: "once" | "session" | "project" | "installation";
752
752
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionFilesystemGrantResponses, SessionFilesystemGrantErrors, ThrowOnError, "fields">;
753
753
  /**
754
754
  * Revoke filesystem access
@@ -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
  *
@@ -1241,11 +1252,21 @@ export declare class ArtifactStore extends HeyApiClient {
1241
1252
  /**
1242
1253
  * List saved artifacts
1243
1254
  *
1244
- * List active artifacts from this project's local artifact database.
1255
+ * List active or recoverable trashed artifacts from this project's local artifact database.
1245
1256
  */
1246
1257
  list<ThrowOnError extends boolean = false>(parameters?: {
1247
1258
  directory?: string;
1259
+ state?: "active" | "trash";
1248
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">;
1249
1270
  /**
1250
1271
  * Read one saved artifact record
1251
1272
  *
@@ -1255,6 +1276,25 @@ export declare class ArtifactStore extends HeyApiClient {
1255
1276
  id: string;
1256
1277
  directory?: string;
1257
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">;
1258
1298
  /**
1259
1299
  * Download an immutable artifact version
1260
1300
  *
@@ -1393,7 +1393,7 @@ export class Filesystem extends HeyApiClient {
1393
1393
  /**
1394
1394
  * List filesystem grants
1395
1395
  *
1396
- * List durable read-only and read-write filesystem grants for the session and its project.
1396
+ * List durable read-only and read-write filesystem grants for the session, project, and installation.
1397
1397
  */
1398
1398
  list(parameters, options) {
1399
1399
  const params = buildClientParams([parameters], [
@@ -1413,7 +1413,7 @@ export class Filesystem extends HeyApiClient {
1413
1413
  /**
1414
1414
  * Grant filesystem access
1415
1415
  *
1416
- * Grant read-only or read-write access to a canonical filesystem path for one use, the session, or every session in the project.
1416
+ * Grant read-only or read-write access to a canonical filesystem path for one use, the session, every project session, or every session in this installation.
1417
1417
  */
1418
1418
  grant(parameters, options) {
1419
1419
  const params = buildClientParams([parameters], [
@@ -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
  *
@@ -2424,16 +2451,43 @@ export class ArtifactStore extends HeyApiClient {
2424
2451
  /**
2425
2452
  * List saved artifacts
2426
2453
  *
2427
- * List active artifacts from this project's local artifact database.
2454
+ * List active or recoverable trashed artifacts from this project's local artifact database.
2428
2455
  */
2429
2456
  list(parameters, options) {
2430
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2457
+ const params = buildClientParams([parameters], [
2458
+ {
2459
+ args: [
2460
+ { in: "query", key: "directory" },
2461
+ { in: "query", key: "state" },
2462
+ ],
2463
+ },
2464
+ ]);
2431
2465
  return (options?.client ?? this.client).get({
2432
2466
  url: "/file/artifact-store",
2433
2467
  ...options,
2434
2468
  ...params,
2435
2469
  });
2436
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
+ }
2437
2491
  /**
2438
2492
  * Read one saved artifact record
2439
2493
  *
@@ -2454,6 +2508,52 @@ export class ArtifactStore extends HeyApiClient {
2454
2508
  ...params,
2455
2509
  });
2456
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
+ }
2457
2557
  /**
2458
2558
  * Download an immutable artifact version
2459
2559
  *
@@ -117,11 +117,12 @@ export type EventSessionFilesystemChanged = {
117
117
  type: "session.filesystem.changed";
118
118
  properties: {
119
119
  sessionID: string;
120
+ projectID: string;
120
121
  grant: {
121
122
  id: string;
122
123
  path: string;
123
124
  access: "read" | "write";
124
- scope: "once" | "session" | "project";
125
+ scope: "once" | "session" | "project" | "installation";
125
126
  source: "workspace" | "permission" | "api";
126
127
  time: {
127
128
  created: number;
@@ -5009,7 +5010,7 @@ export type SessionFilesystemListResponses = {
5009
5010
  id: string;
5010
5011
  path: string;
5011
5012
  access: "read" | "write";
5012
- scope: "once" | "session" | "project";
5013
+ scope: "once" | "session" | "project" | "installation";
5013
5014
  source: "workspace" | "permission" | "api";
5014
5015
  time: {
5015
5016
  created: number;
@@ -5017,6 +5018,21 @@ export type SessionFilesystemListResponses = {
5017
5018
  revoked?: number;
5018
5019
  };
5019
5020
  }>;
5021
+ workspace: {
5022
+ schemaVersion: 1;
5023
+ workspaceID: string;
5024
+ projectID: string;
5025
+ sessionID: string;
5026
+ scratchRoot: string;
5027
+ mode: "isolated" | "legacy";
5028
+ state: "active" | "stopped" | "trash";
5029
+ grantRevision: number;
5030
+ createdAt: number;
5031
+ lastUsedAt: number;
5032
+ trashedAt?: number;
5033
+ trashRoot?: string;
5034
+ size: number;
5035
+ };
5020
5036
  enforcement: {
5021
5037
  broker: "enforced";
5022
5038
  processWrite: "workspace_only";
@@ -5029,7 +5045,7 @@ export type SessionFilesystemGrantData = {
5029
5045
  body?: {
5030
5046
  path: string;
5031
5047
  access: "read" | "write";
5032
- scope?: "once" | "session" | "project";
5048
+ scope?: "once" | "session" | "project" | "installation";
5033
5049
  };
5034
5050
  path: {
5035
5051
  sessionID: string;
@@ -5058,7 +5074,7 @@ export type SessionFilesystemGrantResponses = {
5058
5074
  id: string;
5059
5075
  path: string;
5060
5076
  access: "read" | "write";
5061
- scope: "once" | "session" | "project";
5077
+ scope: "once" | "session" | "project" | "installation";
5062
5078
  source: "workspace" | "permission" | "api";
5063
5079
  time: {
5064
5080
  created: number;
@@ -5098,7 +5114,7 @@ export type SessionFilesystemRevokeResponses = {
5098
5114
  id: string;
5099
5115
  path: string;
5100
5116
  access: "read" | "write";
5101
- scope: "once" | "session" | "project";
5117
+ scope: "once" | "session" | "project" | "installation";
5102
5118
  source: "workspace" | "permission" | "api";
5103
5119
  time: {
5104
5120
  created: number;
@@ -5172,6 +5188,52 @@ export type SessionReviewResponses = {
5172
5188
  };
5173
5189
  };
5174
5190
  export type SessionReviewResponse = SessionReviewResponses[keyof SessionReviewResponses];
5191
+ export type SessionReviewArtifactData = {
5192
+ body?: {
5193
+ artifactID: string;
5194
+ versionID: string;
5195
+ };
5196
+ path: {
5197
+ /**
5198
+ * Session ID
5199
+ */
5200
+ sessionID: string;
5201
+ };
5202
+ query?: {
5203
+ directory?: string;
5204
+ };
5205
+ url: "/session/{sessionID}/review/artifact";
5206
+ };
5207
+ export type SessionReviewArtifactErrors = {
5208
+ /**
5209
+ * Bad request
5210
+ */
5211
+ 400: BadRequestError;
5212
+ /**
5213
+ * Not found
5214
+ */
5215
+ 404: NotFoundError;
5216
+ };
5217
+ export type SessionReviewArtifactError = SessionReviewArtifactErrors[keyof SessionReviewArtifactErrors];
5218
+ export type SessionReviewArtifactResponses = {
5219
+ /**
5220
+ * Exact-version review started
5221
+ */
5222
+ 200: {
5223
+ started: boolean;
5224
+ target: {
5225
+ id: string;
5226
+ artifactID: string;
5227
+ versionID: string;
5228
+ version: number;
5229
+ filename: string;
5230
+ mimeType: string;
5231
+ size: number;
5232
+ sha256: string;
5233
+ };
5234
+ };
5235
+ };
5236
+ export type SessionReviewArtifactResponse = SessionReviewArtifactResponses[keyof SessionReviewArtifactResponses];
5175
5237
  export type SessionInitData = {
5176
5238
  body?: {
5177
5239
  modelID: string;
@@ -6265,6 +6327,7 @@ export type FileArtifactSaveResponses = {
6265
6327
  createdAt: number;
6266
6328
  updatedAt: number;
6267
6329
  state: "active" | "trash";
6330
+ trashedAt?: number;
6268
6331
  versionCount: number;
6269
6332
  current: {
6270
6333
  id: string;
@@ -6289,6 +6352,7 @@ export type FileArtifactStoreListData = {
6289
6352
  path?: never;
6290
6353
  query?: {
6291
6354
  directory?: string;
6355
+ state?: "active" | "trash";
6292
6356
  };
6293
6357
  url: "/file/artifact-store";
6294
6358
  };
@@ -6306,6 +6370,7 @@ export type FileArtifactStoreListResponses = {
6306
6370
  createdAt: number;
6307
6371
  updatedAt: number;
6308
6372
  state: "active" | "trash";
6373
+ trashedAt?: number;
6309
6374
  versionCount: number;
6310
6375
  current: {
6311
6376
  id: string;
@@ -6325,6 +6390,56 @@ export type FileArtifactStoreListResponses = {
6325
6390
  }>;
6326
6391
  };
6327
6392
  export type FileArtifactStoreListResponse = FileArtifactStoreListResponses[keyof FileArtifactStoreListResponses];
6393
+ export type FileArtifactStoreTrashData = {
6394
+ body?: never;
6395
+ path: {
6396
+ id: string;
6397
+ };
6398
+ query?: {
6399
+ directory?: string;
6400
+ };
6401
+ url: "/file/artifact-store/{id}";
6402
+ };
6403
+ export type FileArtifactStoreTrashErrors = {
6404
+ /**
6405
+ * Artifact not found
6406
+ */
6407
+ 404: unknown;
6408
+ };
6409
+ export type FileArtifactStoreTrashResponses = {
6410
+ /**
6411
+ * Trashed artifact
6412
+ */
6413
+ 200: {
6414
+ schemaVersion: 1;
6415
+ id: string;
6416
+ projectID: string;
6417
+ title: string;
6418
+ kind: string;
6419
+ currentVersionID: string;
6420
+ createdAt: number;
6421
+ updatedAt: number;
6422
+ state: "active" | "trash";
6423
+ trashedAt?: number;
6424
+ versionCount: number;
6425
+ current: {
6426
+ id: string;
6427
+ artifactID: string;
6428
+ version: number;
6429
+ filename: string;
6430
+ mimeType: string;
6431
+ size: number;
6432
+ sha256: string;
6433
+ sessionID: string;
6434
+ messageID?: string;
6435
+ executionID?: string;
6436
+ sourcePath: string;
6437
+ captureQuality: "exact" | "declared" | "partial" | "unknown";
6438
+ createdAt: number;
6439
+ };
6440
+ };
6441
+ };
6442
+ export type FileArtifactStoreTrashResponse = FileArtifactStoreTrashResponses[keyof FileArtifactStoreTrashResponses];
6328
6443
  export type FileArtifactStoreGetData = {
6329
6444
  body?: never;
6330
6445
  path: {
@@ -6355,6 +6470,7 @@ export type FileArtifactStoreGetResponses = {
6355
6470
  createdAt: number;
6356
6471
  updatedAt: number;
6357
6472
  state: "active" | "trash";
6473
+ trashedAt?: number;
6358
6474
  versionCount: number;
6359
6475
  current: {
6360
6476
  id: string;
@@ -6418,6 +6534,108 @@ export type FileArtifactStoreGetResponses = {
6418
6534
  };
6419
6535
  };
6420
6536
  export type FileArtifactStoreGetResponse = FileArtifactStoreGetResponses[keyof FileArtifactStoreGetResponses];
6537
+ export type FileArtifactStoreRenameData = {
6538
+ body?: {
6539
+ title: string;
6540
+ };
6541
+ path: {
6542
+ id: string;
6543
+ };
6544
+ query?: {
6545
+ directory?: string;
6546
+ };
6547
+ url: "/file/artifact-store/{id}";
6548
+ };
6549
+ export type FileArtifactStoreRenameErrors = {
6550
+ /**
6551
+ * Artifact not found
6552
+ */
6553
+ 404: unknown;
6554
+ };
6555
+ export type FileArtifactStoreRenameResponses = {
6556
+ /**
6557
+ * Renamed artifact
6558
+ */
6559
+ 200: {
6560
+ schemaVersion: 1;
6561
+ id: string;
6562
+ projectID: string;
6563
+ title: string;
6564
+ kind: string;
6565
+ currentVersionID: string;
6566
+ createdAt: number;
6567
+ updatedAt: number;
6568
+ state: "active" | "trash";
6569
+ trashedAt?: number;
6570
+ versionCount: number;
6571
+ current: {
6572
+ id: string;
6573
+ artifactID: string;
6574
+ version: number;
6575
+ filename: string;
6576
+ mimeType: string;
6577
+ size: number;
6578
+ sha256: string;
6579
+ sessionID: string;
6580
+ messageID?: string;
6581
+ executionID?: string;
6582
+ sourcePath: string;
6583
+ captureQuality: "exact" | "declared" | "partial" | "unknown";
6584
+ createdAt: number;
6585
+ };
6586
+ };
6587
+ };
6588
+ export type FileArtifactStoreRenameResponse = FileArtifactStoreRenameResponses[keyof FileArtifactStoreRenameResponses];
6589
+ export type FileArtifactStoreRestoreData = {
6590
+ body?: never;
6591
+ path: {
6592
+ id: string;
6593
+ };
6594
+ query?: {
6595
+ directory?: string;
6596
+ };
6597
+ url: "/file/artifact-store/{id}/restore";
6598
+ };
6599
+ export type FileArtifactStoreRestoreErrors = {
6600
+ /**
6601
+ * Artifact not found
6602
+ */
6603
+ 404: unknown;
6604
+ };
6605
+ export type FileArtifactStoreRestoreResponses = {
6606
+ /**
6607
+ * Restored artifact
6608
+ */
6609
+ 200: {
6610
+ schemaVersion: 1;
6611
+ id: string;
6612
+ projectID: string;
6613
+ title: string;
6614
+ kind: string;
6615
+ currentVersionID: string;
6616
+ createdAt: number;
6617
+ updatedAt: number;
6618
+ state: "active" | "trash";
6619
+ trashedAt?: number;
6620
+ versionCount: number;
6621
+ current: {
6622
+ id: string;
6623
+ artifactID: string;
6624
+ version: number;
6625
+ filename: string;
6626
+ mimeType: string;
6627
+ size: number;
6628
+ sha256: string;
6629
+ sessionID: string;
6630
+ messageID?: string;
6631
+ executionID?: string;
6632
+ sourcePath: string;
6633
+ captureQuality: "exact" | "declared" | "partial" | "unknown";
6634
+ createdAt: number;
6635
+ };
6636
+ };
6637
+ };
6638
+ export type FileArtifactStoreRestoreResponse = FileArtifactStoreRestoreResponses[keyof FileArtifactStoreRestoreResponses];
6421
6639
  export type FileArtifactStoreRawData = {
6422
6640
  body?: never;
6423
6641
  path: {
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.46.1",
4
+ "version": "2.0.2-test.49.1",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "scripts": {