@synsci/sdk 2.0.2-test.46.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, 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
@@ -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
  *
@@ -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
  *
@@ -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;
@@ -6265,6 +6311,7 @@ export type FileArtifactSaveResponses = {
6265
6311
  createdAt: number;
6266
6312
  updatedAt: number;
6267
6313
  state: "active" | "trash";
6314
+ trashedAt?: number;
6268
6315
  versionCount: number;
6269
6316
  current: {
6270
6317
  id: string;
@@ -6289,6 +6336,7 @@ export type FileArtifactStoreListData = {
6289
6336
  path?: never;
6290
6337
  query?: {
6291
6338
  directory?: string;
6339
+ state?: "active" | "trash";
6292
6340
  };
6293
6341
  url: "/file/artifact-store";
6294
6342
  };
@@ -6306,6 +6354,7 @@ export type FileArtifactStoreListResponses = {
6306
6354
  createdAt: number;
6307
6355
  updatedAt: number;
6308
6356
  state: "active" | "trash";
6357
+ trashedAt?: number;
6309
6358
  versionCount: number;
6310
6359
  current: {
6311
6360
  id: string;
@@ -6325,6 +6374,56 @@ export type FileArtifactStoreListResponses = {
6325
6374
  }>;
6326
6375
  };
6327
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];
6328
6427
  export type FileArtifactStoreGetData = {
6329
6428
  body?: never;
6330
6429
  path: {
@@ -6355,6 +6454,7 @@ export type FileArtifactStoreGetResponses = {
6355
6454
  createdAt: number;
6356
6455
  updatedAt: number;
6357
6456
  state: "active" | "trash";
6457
+ trashedAt?: number;
6358
6458
  versionCount: number;
6359
6459
  current: {
6360
6460
  id: string;
@@ -6418,6 +6518,108 @@ export type FileArtifactStoreGetResponses = {
6418
6518
  };
6419
6519
  };
6420
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];
6421
6623
  export type FileArtifactStoreRawData = {
6422
6624
  body?: never;
6423
6625
  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.48.1",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "scripts": {