@synsci/sdk 1.3.6-test.20.1 → 1.3.6-test.22.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, FileArtifactsResponses, FileInspectResponses, FileListResponses, FileManifestResponses, FilePartInput, FilePartSource, FileProvenanceResponses, FilePublicationCapabilitiesResponses, FilePublicationResponses, FileRawResponses, FileReadResponses, FileReproducibilityResponses, FileStarterResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigRawGetResponses, GlobalConfigRawSetErrors, GlobalConfigRawSetResponses, GlobalConfigUnsetErrors, GlobalConfigUnsetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalSyncResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConfigRemoveErrors, McpConfigRemoveResponses, McpConfigSetErrors, McpConfigSetResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, NotebookExecuteResponses, NotebookInterruptResponses, NotebookRestartResponses, NotebookStatusResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PostSettingsLocalModelsResponses, PostSettingsLocalResponses, PostSettingsLocalStartResponses, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProvenanceExportResponses, ProvenanceListResponses, ProvenanceRecordErrors, ProvenanceRecordResponses, ProvenanceReviewErrors, ProvenanceReviewResponses, 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, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUpdateErrors, SessionUpdateResponses, SettingsBillingGetResponses, SettingsBillingUpdateResponses, SettingsComputeEndpointAddErrors, SettingsComputeEndpointAddResponses, SettingsComputeEndpointRemoveResponses, SettingsComputeGetResponses, SettingsComputeJobsCancelErrors, SettingsComputeJobsCancelResponses, SettingsComputeJobsClearResponses, SettingsComputeJobsListResponses, SettingsComputeJobsLogErrors, SettingsComputeJobsLogResponses, SettingsComputeJobsStartErrors, SettingsComputeJobsStartResponses, SettingsComputeProviderConnectErrors, SettingsComputeProviderConnectResponses, SettingsComputeProviderDisconnectResponses, SettingsComputeSshAddErrors, SettingsComputeSshAddResponses, SettingsComputeSshRemoveResponses, SettingsComputeSshTestErrors, SettingsComputeSshTestResponses, SettingsCredentialsListResponses, SettingsCredentialsRemoveResponses, SettingsCredentialsSetResponses, SettingsMemoryGetResponses, SettingsMemorySetResponses, SettingsNetworkGetResponses, SettingsNetworkSetResponses, SettingsPermissionsGetResponses, SettingsPermissionsRevokeAllErrors, SettingsPermissionsRevokeAllResponses, SettingsPermissionsSetErrors, SettingsPermissionsSetResponses, SettingsPreferencesGetResponses, SettingsPreferencesUpdateResponses, 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, FileAnnotationsListResponses, FileAnnotationsUpdateResponses, FileArtifactsResponses, FileInspectResponses, FileListResponses, FileManifestResponses, FilePartInput, FilePartSource, FileProvenanceResponses, FilePublicationCapabilitiesResponses, FilePublicationResponses, FileRawResponses, FileReadResponses, FileReproducibilityResponses, FileStarterResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigRawGetResponses, GlobalConfigRawSetErrors, GlobalConfigRawSetResponses, GlobalConfigUnsetErrors, GlobalConfigUnsetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, GlobalSyncResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConfigRemoveErrors, McpConfigRemoveResponses, McpConfigSetErrors, McpConfigSetResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, NotebookExecuteResponses, NotebookInterruptResponses, NotebookRestartResponses, NotebookStatusResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PostSettingsLocalModelsResponses, PostSettingsLocalResponses, PostSettingsLocalStartResponses, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProvenanceExportResponses, ProvenanceListResponses, ProvenanceRecordErrors, ProvenanceRecordResponses, ProvenanceReviewErrors, ProvenanceReviewResponses, 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, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUpdateErrors, SessionUpdateResponses, SettingsBillingGetResponses, SettingsBillingUpdateResponses, SettingsComputeEndpointAddErrors, SettingsComputeEndpointAddResponses, SettingsComputeEndpointRemoveResponses, SettingsComputeGetResponses, SettingsComputeJobsCancelErrors, SettingsComputeJobsCancelResponses, SettingsComputeJobsClearResponses, SettingsComputeJobsListResponses, SettingsComputeJobsLogErrors, SettingsComputeJobsLogResponses, SettingsComputeJobsStartErrors, SettingsComputeJobsStartResponses, SettingsComputeProviderConnectErrors, SettingsComputeProviderConnectResponses, SettingsComputeProviderDisconnectResponses, SettingsComputeSshAddErrors, SettingsComputeSshAddResponses, SettingsComputeSshRemoveResponses, SettingsComputeSshTestErrors, SettingsComputeSshTestResponses, SettingsCredentialsListResponses, SettingsCredentialsRemoveResponses, SettingsCredentialsSetResponses, SettingsMemoryGetResponses, SettingsMemorySetResponses, SettingsNetworkGetResponses, SettingsNetworkSetResponses, SettingsPermissionsGetResponses, SettingsPermissionsRevokeAllErrors, SettingsPermissionsRevokeAllResponses, SettingsPermissionsSetErrors, SettingsPermissionsSetResponses, SettingsPreferencesGetResponses, SettingsPreferencesUpdateResponses, 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
@@ -1102,6 +1102,71 @@ export declare class Find extends HeyApiClient {
1102
1102
  query: string;
1103
1103
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FindSymbolsResponses, unknown, ThrowOnError, "fields">;
1104
1104
  }
1105
+ export declare class Annotations extends HeyApiClient {
1106
+ /**
1107
+ * List artifact annotations
1108
+ *
1109
+ * List durable review threads anchored to a project artifact.
1110
+ */
1111
+ list<ThrowOnError extends boolean = false>(parameters: {
1112
+ directory?: string;
1113
+ path: string;
1114
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileAnnotationsListResponses, unknown, ThrowOnError, "fields">;
1115
+ /**
1116
+ * Create an artifact annotation
1117
+ *
1118
+ * Create a durable review thread anchored to an artifact, text range, notebook cell, molecule, or locus.
1119
+ */
1120
+ create<ThrowOnError extends boolean = false>(parameters?: {
1121
+ directory?: string;
1122
+ path?: string;
1123
+ body?: string;
1124
+ author?: string;
1125
+ anchor?: {
1126
+ kind: "artifact";
1127
+ label?: string;
1128
+ } | {
1129
+ kind: "text";
1130
+ startLine: number;
1131
+ endLine: number;
1132
+ quote?: string;
1133
+ } | {
1134
+ kind: "notebook";
1135
+ cellId: string;
1136
+ line?: number;
1137
+ } | {
1138
+ kind: "molecule";
1139
+ selection: string;
1140
+ count?: number;
1141
+ } | {
1142
+ kind: "genome";
1143
+ chromosome: string;
1144
+ start: number;
1145
+ end: number;
1146
+ };
1147
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileAnnotationsCreateResponses, unknown, ThrowOnError, "fields">;
1148
+ /**
1149
+ * Delete an artifact annotation
1150
+ *
1151
+ * Permanently remove an artifact review thread.
1152
+ */
1153
+ delete<ThrowOnError extends boolean = false>(parameters: {
1154
+ id: string;
1155
+ directory?: string;
1156
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileAnnotationsDeleteResponses, unknown, ThrowOnError, "fields">;
1157
+ /**
1158
+ * Update an artifact annotation
1159
+ *
1160
+ * Reply to, resolve, or reopen an artifact review thread.
1161
+ */
1162
+ update<ThrowOnError extends boolean = false>(parameters: {
1163
+ id: string;
1164
+ directory?: string;
1165
+ status?: "open" | "resolved";
1166
+ reply?: string;
1167
+ author?: string;
1168
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileAnnotationsUpdateResponses, unknown, ThrowOnError, "fields">;
1169
+ }
1105
1170
  export declare class File extends HeyApiClient {
1106
1171
  /**
1107
1172
  * List files
@@ -1217,6 +1282,8 @@ export declare class File extends HeyApiClient {
1217
1282
  status<ThrowOnError extends boolean = false>(parameters?: {
1218
1283
  directory?: string;
1219
1284
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileStatusResponses, unknown, ThrowOnError, "fields">;
1285
+ private _annotations?;
1286
+ get annotations(): Annotations;
1220
1287
  }
1221
1288
  export declare class Notebook extends HeyApiClient {
1222
1289
  /**
@@ -2161,6 +2161,104 @@ export class Find extends HeyApiClient {
2161
2161
  });
2162
2162
  }
2163
2163
  }
2164
+ export class Annotations extends HeyApiClient {
2165
+ /**
2166
+ * List artifact annotations
2167
+ *
2168
+ * List durable review threads anchored to a project artifact.
2169
+ */
2170
+ list(parameters, options) {
2171
+ const params = buildClientParams([parameters], [
2172
+ {
2173
+ args: [
2174
+ { in: "query", key: "directory" },
2175
+ { in: "query", key: "path" },
2176
+ ],
2177
+ },
2178
+ ]);
2179
+ return (options?.client ?? this.client).get({
2180
+ url: "/file/annotations",
2181
+ ...options,
2182
+ ...params,
2183
+ });
2184
+ }
2185
+ /**
2186
+ * Create an artifact annotation
2187
+ *
2188
+ * Create a durable review thread anchored to an artifact, text range, notebook cell, molecule, or locus.
2189
+ */
2190
+ create(parameters, options) {
2191
+ const params = buildClientParams([parameters], [
2192
+ {
2193
+ args: [
2194
+ { in: "query", key: "directory" },
2195
+ { in: "body", key: "path" },
2196
+ { in: "body", key: "body" },
2197
+ { in: "body", key: "author" },
2198
+ { in: "body", key: "anchor" },
2199
+ ],
2200
+ },
2201
+ ]);
2202
+ return (options?.client ?? this.client).post({
2203
+ url: "/file/annotations",
2204
+ ...options,
2205
+ ...params,
2206
+ headers: {
2207
+ "Content-Type": "application/json",
2208
+ ...options?.headers,
2209
+ ...params.headers,
2210
+ },
2211
+ });
2212
+ }
2213
+ /**
2214
+ * Delete an artifact annotation
2215
+ *
2216
+ * Permanently remove an artifact review thread.
2217
+ */
2218
+ delete(parameters, options) {
2219
+ const params = buildClientParams([parameters], [
2220
+ {
2221
+ args: [
2222
+ { in: "path", key: "id" },
2223
+ { in: "query", key: "directory" },
2224
+ ],
2225
+ },
2226
+ ]);
2227
+ return (options?.client ?? this.client).delete({
2228
+ url: "/file/annotations/{id}",
2229
+ ...options,
2230
+ ...params,
2231
+ });
2232
+ }
2233
+ /**
2234
+ * Update an artifact annotation
2235
+ *
2236
+ * Reply to, resolve, or reopen an artifact review thread.
2237
+ */
2238
+ update(parameters, options) {
2239
+ const params = buildClientParams([parameters], [
2240
+ {
2241
+ args: [
2242
+ { in: "path", key: "id" },
2243
+ { in: "query", key: "directory" },
2244
+ { in: "body", key: "status" },
2245
+ { in: "body", key: "reply" },
2246
+ { in: "body", key: "author" },
2247
+ ],
2248
+ },
2249
+ ]);
2250
+ return (options?.client ?? this.client).patch({
2251
+ url: "/file/annotations/{id}",
2252
+ ...options,
2253
+ ...params,
2254
+ headers: {
2255
+ "Content-Type": "application/json",
2256
+ ...options?.headers,
2257
+ ...params.headers,
2258
+ },
2259
+ });
2260
+ }
2261
+ }
2164
2262
  export class File extends HeyApiClient {
2165
2263
  /**
2166
2264
  * List files
@@ -2404,6 +2502,10 @@ export class File extends HeyApiClient {
2404
2502
  ...params,
2405
2503
  });
2406
2504
  }
2505
+ _annotations;
2506
+ get annotations() {
2507
+ return (this._annotations ??= new Annotations({ client: this.client }));
2508
+ }
2407
2509
  }
2408
2510
  export class Notebook extends HeyApiClient {
2409
2511
  /**
@@ -5156,6 +5156,208 @@ export type FileReproducibilityResponses = {
5156
5156
  };
5157
5157
  };
5158
5158
  export type FileReproducibilityResponse = FileReproducibilityResponses[keyof FileReproducibilityResponses];
5159
+ export type FileAnnotationsListData = {
5160
+ body?: never;
5161
+ path?: never;
5162
+ query: {
5163
+ directory?: string;
5164
+ path: string;
5165
+ };
5166
+ url: "/file/annotations";
5167
+ };
5168
+ export type FileAnnotationsListResponses = {
5169
+ /**
5170
+ * Artifact annotations
5171
+ */
5172
+ 200: Array<{
5173
+ id: string;
5174
+ projectID: string;
5175
+ path: string;
5176
+ anchor: {
5177
+ kind: "artifact";
5178
+ label?: string;
5179
+ } | {
5180
+ kind: "text";
5181
+ startLine: number;
5182
+ endLine: number;
5183
+ quote?: string;
5184
+ } | {
5185
+ kind: "notebook";
5186
+ cellId: string;
5187
+ line?: number;
5188
+ } | {
5189
+ kind: "molecule";
5190
+ selection: string;
5191
+ count?: number;
5192
+ } | {
5193
+ kind: "genome";
5194
+ chromosome: string;
5195
+ start: number;
5196
+ end: number;
5197
+ };
5198
+ messages: Array<{
5199
+ id: string;
5200
+ body: string;
5201
+ author: string;
5202
+ createdAt: number;
5203
+ }>;
5204
+ status: "open" | "resolved";
5205
+ createdAt: number;
5206
+ updatedAt: number;
5207
+ }>;
5208
+ };
5209
+ export type FileAnnotationsListResponse = FileAnnotationsListResponses[keyof FileAnnotationsListResponses];
5210
+ export type FileAnnotationsCreateData = {
5211
+ body?: {
5212
+ path: string;
5213
+ body: string;
5214
+ author?: string;
5215
+ anchor?: {
5216
+ kind: "artifact";
5217
+ label?: string;
5218
+ } | {
5219
+ kind: "text";
5220
+ startLine: number;
5221
+ endLine: number;
5222
+ quote?: string;
5223
+ } | {
5224
+ kind: "notebook";
5225
+ cellId: string;
5226
+ line?: number;
5227
+ } | {
5228
+ kind: "molecule";
5229
+ selection: string;
5230
+ count?: number;
5231
+ } | {
5232
+ kind: "genome";
5233
+ chromosome: string;
5234
+ start: number;
5235
+ end: number;
5236
+ };
5237
+ };
5238
+ path?: never;
5239
+ query?: {
5240
+ directory?: string;
5241
+ };
5242
+ url: "/file/annotations";
5243
+ };
5244
+ export type FileAnnotationsCreateResponses = {
5245
+ /**
5246
+ * Created annotation
5247
+ */
5248
+ 200: {
5249
+ id: string;
5250
+ projectID: string;
5251
+ path: string;
5252
+ anchor: {
5253
+ kind: "artifact";
5254
+ label?: string;
5255
+ } | {
5256
+ kind: "text";
5257
+ startLine: number;
5258
+ endLine: number;
5259
+ quote?: string;
5260
+ } | {
5261
+ kind: "notebook";
5262
+ cellId: string;
5263
+ line?: number;
5264
+ } | {
5265
+ kind: "molecule";
5266
+ selection: string;
5267
+ count?: number;
5268
+ } | {
5269
+ kind: "genome";
5270
+ chromosome: string;
5271
+ start: number;
5272
+ end: number;
5273
+ };
5274
+ messages: Array<{
5275
+ id: string;
5276
+ body: string;
5277
+ author: string;
5278
+ createdAt: number;
5279
+ }>;
5280
+ status: "open" | "resolved";
5281
+ createdAt: number;
5282
+ updatedAt: number;
5283
+ };
5284
+ };
5285
+ export type FileAnnotationsCreateResponse = FileAnnotationsCreateResponses[keyof FileAnnotationsCreateResponses];
5286
+ export type FileAnnotationsDeleteData = {
5287
+ body?: never;
5288
+ path: {
5289
+ id: string;
5290
+ };
5291
+ query?: {
5292
+ directory?: string;
5293
+ };
5294
+ url: "/file/annotations/{id}";
5295
+ };
5296
+ export type FileAnnotationsDeleteResponses = {
5297
+ /**
5298
+ * Deleted annotation
5299
+ */
5300
+ 200: {
5301
+ deleted: true;
5302
+ };
5303
+ };
5304
+ export type FileAnnotationsDeleteResponse = FileAnnotationsDeleteResponses[keyof FileAnnotationsDeleteResponses];
5305
+ export type FileAnnotationsUpdateData = {
5306
+ body?: {
5307
+ status?: "open" | "resolved";
5308
+ reply?: string;
5309
+ author?: string;
5310
+ };
5311
+ path: {
5312
+ id: string;
5313
+ };
5314
+ query?: {
5315
+ directory?: string;
5316
+ };
5317
+ url: "/file/annotations/{id}";
5318
+ };
5319
+ export type FileAnnotationsUpdateResponses = {
5320
+ /**
5321
+ * Updated annotation
5322
+ */
5323
+ 200: {
5324
+ id: string;
5325
+ projectID: string;
5326
+ path: string;
5327
+ anchor: {
5328
+ kind: "artifact";
5329
+ label?: string;
5330
+ } | {
5331
+ kind: "text";
5332
+ startLine: number;
5333
+ endLine: number;
5334
+ quote?: string;
5335
+ } | {
5336
+ kind: "notebook";
5337
+ cellId: string;
5338
+ line?: number;
5339
+ } | {
5340
+ kind: "molecule";
5341
+ selection: string;
5342
+ count?: number;
5343
+ } | {
5344
+ kind: "genome";
5345
+ chromosome: string;
5346
+ start: number;
5347
+ end: number;
5348
+ };
5349
+ messages: Array<{
5350
+ id: string;
5351
+ body: string;
5352
+ author: string;
5353
+ createdAt: number;
5354
+ }>;
5355
+ status: "open" | "resolved";
5356
+ createdAt: number;
5357
+ updatedAt: number;
5358
+ };
5359
+ };
5360
+ export type FileAnnotationsUpdateResponse = FileAnnotationsUpdateResponses[keyof FileAnnotationsUpdateResponses];
5159
5361
  export type FileManifestData = {
5160
5362
  body?: never;
5161
5363
  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": "1.3.6-test.20.1",
4
+ "version": "1.3.6-test.22.1",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "scripts": {