@appconda/sdk 1.0.634 → 1.0.637

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.
@@ -3,8 +3,8 @@ import z from "zod";
3
3
  import { ServiceClient } from "../../service-client";
4
4
 
5
5
 
6
- import { AggregateRecordsSchema, BulkCreateRecordsSchema, BulkDeleteRecordsSchema, BulkUpdateRecordsSchema, ChangeAgentflowProjectSchema, CheckRecordPermissionSchema, ConnectTrelloImportCredentialSchema, CountRecordsSchema, CreateAgentFlowFolderSchema, CreateAgentFlowSchema, CreateAssistantChannelSchema, CreateAssistantConstraintSchema, CreateAssistantDatasourceSchema, CreateAssistantInstructionSchema, CreateAssistantSchema, CreateAssistantSkillSchema, CreateChannelSchema, CreateCollectionAutomationRuleSchema, CreateCollectionButtonSchema, CreateCollectionFieldSchema, CreateCollectionRelationSchema, CreateCollectionSchema, CreateCollectionViewSchema, CreateCommandSchema, CreateCompetencySchema, CreateConstraintSchema, CreateDataModelSchema, CreateDatasourceSchema, CreateDomainTopicSchema, CreateDriveFolderSchema, CreateEmploidSchema, CreateExtensionSchema, CreateInputSchema, CreateInstructionSchema, CreateJobDefinitionSchema, CreateKnowledgeSchema, CreateOccupationSchema, CreateRecordSchema, CreateScopeSchema, CreateSkillSchema, CreateStreamIdSchema, CreateTaskTemplateSchema, CreateTeamSchema, CreateTopicSchema, CreateWikiCommentSchema, CreateWikiPageSchema, CreateWikiRevisionSchema, CreateWorkerSchema, CreateWorkerTopicSchema, DeleteAgentFlowFolderSchema, DeleteAgentFlowSchema, DeleteAssistantChannelSchema, DeleteAssistantDatasourceSchema, DeleteAssistantSchema, DeleteAssistantSkillSchema, DeleteChannelSchema, DeleteChatByIdSchema, DeleteCollectionAutomationRuleSchema, DeleteCollectionButtonSchema, DeleteCollectionFieldSchema, DeleteCollectionRelationSchema, DeleteCollectionViewSchema, DeleteCommandSchema, DeleteCompetencySchema, DeleteConstraintSchema, DeleteDataModelSchema, DeleteDatasourceSchema, DeleteDocumentsByIdAfterTimestampSchema, DeleteDomainTopicSchema, DeleteDriveItemSchema, DeleteEmploidSchema, DeleteExtensionSchema, DeleteInputSchema, DeleteInstructionSchema, DeleteJobDefinitionSchema, DeleteKnowledgeSchema, DeleteMessagesByChatIdAfterTimestampSchema, DeleteOccupationSchema, DeleteRecordSchema, DeleteScopeSchema, DeleteSkillSchema, DeleteTaskTemplateSchema, DeleteTeamSchema, DeleteTopicSchema, DeleteWikiCommentSchema, DeleteWikiPageSchema, DeleteWorkerSchema, DeleteWorkerTopicSchema, DistinctFieldValuesSchema, DuplicateAgentFlowSchema, DuplicateRecordSchema, EnhanceTopicSchema, EnsureAirtableImportCredentialSchema, EnsureGmailImportCredentialSchema, EnsureGithubImportCredentialSchema, EnsureJiraImportCredentialSchema, EnsureLinearImportCredentialSchema, EnsureNotionImportCredentialSchema, EnsureTrelloImportCredentialSchema, ExecuteCollectionAiFieldSchema, ExecuteCollectionButtonSchema, GetChatByIdSchema, GetChatsByUserIdSchema, GetCollectionByIdSchema, GetCollectionSchemaSchema, GetDataModelByIdSchema, GetDocumentByIdSchema, GetDocumentsByIdSchema, GetDriveDeleteImpactSchema, GetLatestWikiRevisionSchema, GetMarketStoreItemSchema, GetMessageByIdSchema, GetMessageCountByUserIdSchema, GetMessagesByChatIdSchema, GetRecordByIdSchema, GetRecordRelationsSchema, GetScopeByTypeSchema, GetStreamIdsByChatIdSchema, GetSuggestionsByDocumentIdSchema, GetVotesByChatIdSchema, GetWikiPageByIdSchema, GetWikiPageBySlugSchema, GetWikiRevisionByIdSchema, GetWikiTreeSchema, GrantRecordPermissionSchema, GroupRecordsSchema, HardDeleteDataModelSchema, ListAgentFlowFoldersSchema, ListAgentFlowsSchema, ListAirtableImportSourcesSchema, ListAssistantChannelsSchema, ListAssistantConstraintsSchema, ListAssistantDatasourcesSchema, ListAssistantInstructionsSchema, ListAssistantSkillsSchema, ListAssistantsSchema, ListChannelsSchema, ListChatHistorySchema, ListCollectionAutomationRulesSchema, ListCollectionButtonsSchema, ListCollectionRelationsSchema, ListCollectionsSchema, ListCollectionViewsSchema, ListCommandsSchema, ListCompetenciesSchema, ListConstraintsSchema, ListDataModelsSchema, ListDatasourcesSchema, ListDomainTopicsSchema, ListDriveItemsSchema, ListDriveTreeSchema, ListEmploidsPaginatedSchema, ListEmploidsSchema, ListExtensionsSchema, ListGmailImportSourcesSchema, ListGithubImportSourcesSchema, ListInputSchema, ListInstructionsSchema, ListJiraImportSourcesSchema, ListJobDefinitionSchema, ListKnowledgesSchema, ListLinearImportSourcesSchema, ListMarketStoreItemsSchema, ListNotionImportSourcesSchema, ListOccupationsSchema, ListRecordPermissionsSchema, ListRecordsSchema, ListRelationCandidatesSchema, ListScopesSchema, ListSkillsSchema, ListTaskTemplatesSchema, ListTeamsSchema, ListTopicsSchema, ListTrelloImportSourcesSchema, ListWikiCommentsSchema, ListWikiPagesSchema, ListWorkersSchema, ListWorkerTopicsSchema, MoveDriveItemSchema, PrepareDriveUploadSchema, PreviewAirtableImportSchema, PreviewCsvImportSchema, PreviewGmailImportSchema, PreviewGithubImportSchema, PreviewJiraImportSchema, PreviewLinearImportSchema, PreviewNotionImportSchema, PreviewTrelloImportSchema, PreviewValidationErrorsSchema, PublishDomainSchema, PublishEmploidSchema, PublishWorkerToMarketStoreSchema, QueryRecordsSchema, RenameDriveItemSchema, ReorderCollectionFieldsSchema, ResolveCollectionFileViewSchema, ResolveDriveDownloadSchema, ResolveScopeFileViewSchema, ResolveWikiFileViewSchema, RestoreDataModelSchema, RestoreRecordSchema, RestoreWikiPageSchema, RevokeRecordPermissionSchema, RunAirtableImportSchema, RunCsvImportSchema, RunGmailImportSchema, RunGithubImportSchema, RunJiraImportSchema, RunLinearImportSchema, RunNotionImportSchema, RunTrelloImportSchema, SaveChatSchema, SaveDocumentSchema, SaveMessagesSchema, SaveSuggestionsSchema, SearchDriveItemsSchema, SearchRecordsSchema, UpdateAgentFlowFolderSchema, UpdateAgentFlowSchema, UpdateAssistantChannelSchema, UpdateAssistantDatasourceSchema, UpdateAssistantSchema, UpdateAssistantSkillSchema, UpdateChannelSchema, UpdateChatLastContextByIdSchema, UpdateChatVisiblityByIdSchema, UpdateCollectionAutomationRuleSchema, UpdateCollectionButtonSchema, UpdateCollectionFieldSchema, UpdateCollectionRelationSchema, UpdateCollectionViewSchema, UpdateCommandSchema, UpdateCompetencySchema, UpdateConstraintSchema, UpdateDataModelSchema, UpdateDatasourceSchema, UpdateDomainTopicSchema, UpdateEmploidSchema, UpdateExtensionSchema, UpdateInputSchema, UpdateInstructionSchema, UpdateJobDefinitionSchema, UpdateKnowledgeSchema, UpdateOccupationSchema, UpdateRecordSchema, UpdateScopeSchema, UpdateSkillSchema, UpdateTaskTemplateSchema, UpdateTeamSchema, UpdateTopicSchema, UpdateWikiCommentSchema, UpdateWikiPageSchema, UpdateWorkerSchema, UpdateWorkerTopicSchema, UploadCollectionFileSchema, UploadEditorFileSchema, UpsertRecordSchema, ValidateRecordSchema, VoteMessageSchema } from "./schema";
7
- import { TAgentFlow, TAgentFlowFolder, TAssistant, TAssistantChannel, TAssistantConstraint, TAssistantDatasource, TAssistantInstruction, TAssistantSkill, TChannel, TChat, TCollectionAutomationRule, TCollectionButton, TCollectionRelation, TCollectionView, TCommand, TCompetency, TConstraint, TDatasource, TDeleteAgentFlowResult, TDocument, TDomainTopic, TDriveDeleteImpact, TDriveItem, TDriveTreeNode, TEmploid, TEnhanceTopic, TExtension, TInput, TInstruction, TJobDefinition, TKnowledge, TMarketStoreItem, TOccupation, TPaginatedEmploidsResult, TPreparedDriveUpload, TPublishEmploid, TPublishWorkerToMarketStore, TRelationRecordOption, TScope, TSkill, TStreamId, TTaskTemplate, TTeam, TTopic, TUploadedFile, TWikiComment, TWikiCommentPagination, TWikiFileViewResolution, TWorker, TWorkerTopic } from "./types";
6
+ import { AggregateRecordsSchema, BulkCreateRecordsSchema, BulkDeleteRecordsSchema, BulkUpdateRecordsSchema, ChangeAgentflowProjectSchema, CheckRecordPermissionSchema, ConnectTrelloImportCredentialSchema, CountRecordsSchema, CreateAgentFlowFolderSchema, CreateAgentFlowSchema, CreateAssistantChannelSchema, CreateAssistantConstraintSchema, CreateAssistantDatasourceSchema, CreateAssistantInstructionSchema, CreateAssistantSchema, CreateAssistantSkillSchema, CreateChannelSchema, CreateCollectionAutomationRuleSchema, CreateCollectionButtonSchema, CreateCollectionFieldSchema, CreateCollectionRelationSchema, CreateCollectionSchema, CreateCollectionViewSchema, CreateCommandSchema, CreateCompetencySchema, CreateConstraintSchema, CreateDataModelSchema, CreateDatasourceSchema, CreateDomainTopicSchema, CreateDriveFolderSchema, CreateDriveRootFolderSchema, CreateDriveRootSchema, CreateEmploidSchema, CreateExtensionSchema, CreateInputSchema, CreateInstructionSchema, CreateJobDefinitionSchema, CreateKnowledgeSchema, CreateOccupationSchema, CreateRecordSchema, CreateScopeSchema, CreateSkillSchema, CreateStreamIdSchema, CreateTaskTemplateSchema, CreateTeamSchema, CreateTopicSchema, CreateWikiCommentSchema, CreateWikiPageSchema, CreateWikiRevisionSchema, CreateWorkerSchema, CreateWorkerTopicSchema, DeleteAgentFlowFolderSchema, DeleteAgentFlowSchema, DeleteAssistantChannelSchema, DeleteAssistantDatasourceSchema, DeleteAssistantSchema, DeleteAssistantSkillSchema, DeleteChannelSchema, DeleteChatByIdSchema, DeleteCollectionAutomationRuleSchema, DeleteCollectionButtonSchema, DeleteCollectionFieldSchema, DeleteCollectionRelationSchema, DeleteCollectionViewSchema, DeleteCommandSchema, DeleteCompetencySchema, DeleteConstraintSchema, DeleteDataModelSchema, DeleteDatasourceSchema, DeleteDocumentsByIdAfterTimestampSchema, DeleteDomainTopicSchema, DeleteDriveItemSchema, DeleteDriveRootItemSchema, DeleteDriveRootSchema, DeleteEmploidSchema, DeleteExtensionSchema, DeleteInputSchema, DeleteInstructionSchema, DeleteJobDefinitionSchema, DeleteKnowledgeSchema, DeleteMessagesByChatIdAfterTimestampSchema, DeleteOccupationSchema, DeleteRecordSchema, DeleteScopeSchema, DeleteSkillSchema, DeleteTaskTemplateSchema, DeleteTeamSchema, DeleteTopicSchema, DeleteWikiCommentSchema, DeleteWikiPageSchema, DeleteWorkerSchema, DeleteWorkerTopicSchema, DistinctFieldValuesSchema, DuplicateAgentFlowSchema, DuplicateRecordSchema, EnhanceTopicSchema, EnsureAirtableImportCredentialSchema, EnsureDriveProviderCredentialSchema, EnsureGmailImportCredentialSchema, EnsureGithubImportCredentialSchema, EnsureJiraImportCredentialSchema, EnsureLinearImportCredentialSchema, EnsureNotionImportCredentialSchema, EnsureTrelloImportCredentialSchema, ExecuteCollectionAiFieldSchema, ExecuteCollectionButtonSchema, GetChatByIdSchema, GetChatsByUserIdSchema, GetCollectionByIdSchema, GetCollectionSchemaSchema, GetDataModelByIdSchema, GetDocumentByIdSchema, GetDocumentsByIdSchema, GetDriveDeleteImpactSchema, GetDriveRootDeleteImpactSchema, GetLatestWikiRevisionSchema, GetMarketStoreItemSchema, GetMessageByIdSchema, GetMessageCountByUserIdSchema, GetMessagesByChatIdSchema, GetRecordByIdSchema, GetRecordRelationsSchema, GetScopeByTypeSchema, GetStreamIdsByChatIdSchema, GetSuggestionsByDocumentIdSchema, GetVotesByChatIdSchema, GetWikiPageByIdSchema, GetWikiPageBySlugSchema, GetWikiRevisionByIdSchema, GetWikiTreeSchema, GrantRecordPermissionSchema, GroupRecordsSchema, HardDeleteDataModelSchema, ListAgentFlowFoldersSchema, ListAgentFlowsSchema, ListAirtableImportSourcesSchema, ListAssistantChannelsSchema, ListAssistantConstraintsSchema, ListAssistantDatasourcesSchema, ListAssistantInstructionsSchema, ListAssistantSkillsSchema, ListAssistantsSchema, ListChannelsSchema, ListChatHistorySchema, ListCollectionAutomationRulesSchema, ListCollectionButtonsSchema, ListCollectionRelationsSchema, ListCollectionsSchema, ListCollectionViewsSchema, ListCommandsSchema, ListCompetenciesSchema, ListConstraintsSchema, ListDataModelsSchema, ListDatasourcesSchema, ListDomainTopicsSchema, ListDriveItemsSchema, ListDriveProviderFoldersSchema, ListDriveRootItemsSchema, ListDriveRootsSchema, ListDriveRootTreeSchema, ListDriveTreeSchema, ListEmploidsPaginatedSchema, ListEmploidsSchema, ListExtensionsSchema, ListGmailImportSourcesSchema, ListGithubImportSourcesSchema, ListInputSchema, ListInstructionsSchema, ListJiraImportSourcesSchema, ListJobDefinitionSchema, ListKnowledgesSchema, ListLinearImportSourcesSchema, ListMarketStoreItemsSchema, ListNotionImportSourcesSchema, ListOccupationsSchema, ListRecordPermissionsSchema, ListRecordsSchema, ListRelationCandidatesSchema, ListScopesSchema, ListSkillsSchema, ListTaskTemplatesSchema, ListTeamsSchema, ListTopicsSchema, ListTrelloImportSourcesSchema, ListWikiCommentsSchema, ListWikiPagesSchema, ListWorkersSchema, ListWorkerTopicsSchema, MoveDriveItemSchema, MoveDriveRootItemSchema, PrepareDriveUploadSchema, PreviewAirtableImportSchema, PreviewCsvImportSchema, PreviewGmailImportSchema, PreviewGithubImportSchema, PreviewJiraImportSchema, PreviewLinearImportSchema, PreviewNotionImportSchema, PreviewTrelloImportSchema, PreviewValidationErrorsSchema, PublishDomainSchema, PublishEmploidSchema, PublishWorkerToMarketStoreSchema, QueryRecordsSchema, ReadDriveRootFileContentSchema, RenameDriveItemSchema, RenameDriveRootItemSchema, ReorderCollectionFieldsSchema, ResolveCollectionFileViewSchema, ResolveDriveDownloadSchema, ResolveDriveRootDownloadSchema, ResolveScopeFileViewSchema, ResolveWikiFileViewSchema, RestoreDataModelSchema, RestoreRecordSchema, RestoreWikiPageSchema, RevokeRecordPermissionSchema, RunAirtableImportSchema, RunCsvImportSchema, RunGmailImportSchema, RunGithubImportSchema, RunJiraImportSchema, RunLinearImportSchema, RunNotionImportSchema, RunTrelloImportSchema, SaveChatSchema, SaveDocumentSchema, SaveMessagesSchema, SaveSuggestionsSchema, SearchDriveItemsSchema, SearchDriveRootItemsSchema, SearchRecordsSchema, UpdateAgentFlowFolderSchema, UpdateAgentFlowSchema, UpdateAssistantChannelSchema, UpdateAssistantDatasourceSchema, UpdateAssistantSchema, UpdateAssistantSkillSchema, UpdateChannelSchema, UpdateChatLastContextByIdSchema, UpdateChatVisiblityByIdSchema, UpdateCollectionAutomationRuleSchema, UpdateCollectionButtonSchema, UpdateCollectionFieldSchema, UpdateCollectionRelationSchema, UpdateCollectionViewSchema, UpdateCommandSchema, UpdateCompetencySchema, UpdateConstraintSchema, UpdateDataModelSchema, UpdateDatasourceSchema, UpdateDomainTopicSchema, UpdateEmploidSchema, UpdateExtensionSchema, UpdateInputSchema, UpdateInstructionSchema, UpdateJobDefinitionSchema, UpdateKnowledgeSchema, UpdateOccupationSchema, UpdateRecordSchema, UpdateScopeSchema, UpdateSkillSchema, UpdateTaskTemplateSchema, UpdateTeamSchema, UpdateTopicSchema, UpdateWikiCommentSchema, UpdateWikiPageSchema, UpdateWorkerSchema, UpdateWorkerTopicSchema, UploadCollectionFileSchema, UploadDriveRootFilesSchema, UploadEditorFileSchema, UpsertRecordSchema, ValidateRecordSchema, VoteMessageSchema } from "./schema";
7
+ import { TAgentFlow, TAgentFlowFolder, TAssistant, TAssistantChannel, TAssistantConstraint, TAssistantDatasource, TAssistantInstruction, TAssistantSkill, TChannel, TChat, TCollectionAutomationRule, TCollectionButton, TCollectionRelation, TCollectionView, TCommand, TCompetency, TConstraint, TDatasource, TDeleteAgentFlowResult, TDocument, TDomainTopic, TDriveDeleteImpact, TDriveFileContent, TDriveItem, TDriveProviderFolder, TDriveRoot, TDriveRootProvider, TDriveTreeNode, TEmploid, TEnhanceTopic, TExtension, TInput, TInstruction, TJobDefinition, TKnowledge, TMarketStoreItem, TOccupation, TPaginatedEmploidsResult, TPreparedDriveUpload, TPublishEmploid, TPublishWorkerToMarketStore, TRelationRecordOption, TScope, TSkill, TStreamId, TTaskTemplate, TTeam, TTopic, TUploadedFile, TWikiComment, TWikiCommentPagination, TWikiFileViewResolution, TWorker, TWorkerTopic } from "./types";
8
8
 
9
9
  export class EmploidService extends ServiceClient {
10
10
  protected getServiceName(): string {
@@ -385,6 +385,120 @@ export class EmploidService extends ServiceClient {
385
385
  };
386
386
  }
387
387
 
388
+ public async ListDriveRoots(
389
+ payload: z.infer<typeof ListDriveRootsSchema>
390
+ ): Promise<TDriveRoot[]> {
391
+ return await this.actionCall("drive", "ListDriveRoots", payload);
392
+ }
393
+
394
+ public async EnsureDriveProviderCredential(
395
+ payload: z.infer<typeof EnsureDriveProviderCredentialSchema>
396
+ ): Promise<{ credentialId: string; connected: boolean; provider: TDriveRootProvider }> {
397
+ return await this.actionCall("drive", "EnsureDriveProviderCredential", payload);
398
+ }
399
+
400
+ public async ListDriveProviderFolders(
401
+ payload: z.infer<typeof ListDriveProviderFoldersSchema>
402
+ ): Promise<{
403
+ credentialId: string;
404
+ connected: boolean;
405
+ currentFolder: TDriveProviderFolder;
406
+ folders: TDriveProviderFolder[];
407
+ }> {
408
+ return await this.actionCall("drive", "ListDriveProviderFolders", payload);
409
+ }
410
+
411
+ public async CreateDriveRoot(
412
+ payload: z.infer<typeof CreateDriveRootSchema>
413
+ ): Promise<TDriveRoot> {
414
+ return await this.actionCall("drive", "CreateDriveRoot", payload);
415
+ }
416
+
417
+ public async DeleteDriveRoot(
418
+ payload: z.infer<typeof DeleteDriveRootSchema>
419
+ ): Promise<{ id: string; deleted: boolean }> {
420
+ return await this.actionCall("drive", "DeleteDriveRoot", payload);
421
+ }
422
+
423
+ public async ListDriveRootItems(
424
+ payload: z.infer<typeof ListDriveRootItemsSchema>
425
+ ): Promise<{ currentFolder: TDriveItem; items: TDriveItem[] }> {
426
+ return await this.actionCall("drive", "ListDriveRootItems", payload);
427
+ }
428
+
429
+ public async ListDriveRootTree(
430
+ payload: z.infer<typeof ListDriveRootTreeSchema>
431
+ ): Promise<TDriveTreeNode> {
432
+ return await this.actionCall("drive", "ListDriveRootTree", payload);
433
+ }
434
+
435
+ public async SearchDriveRootItems(
436
+ payload: z.infer<typeof SearchDriveRootItemsSchema>
437
+ ): Promise<TDriveItem[]> {
438
+ return await this.actionCall("drive", "SearchDriveRootItems", payload);
439
+ }
440
+
441
+ public async CreateDriveRootFolder(
442
+ payload: z.infer<typeof CreateDriveRootFolderSchema>
443
+ ): Promise<TDriveItem> {
444
+ return await this.actionCall("drive", "CreateDriveRootFolder", payload);
445
+ }
446
+
447
+ public async UploadDriveRootFiles(
448
+ payload: z.infer<typeof UploadDriveRootFilesSchema>
449
+ ): Promise<TDriveItem[]> {
450
+ return await this.actionCall("drive", "UploadDriveRootFiles", payload);
451
+ }
452
+
453
+ public async RenameDriveRootItem(
454
+ payload: z.infer<typeof RenameDriveRootItemSchema>
455
+ ): Promise<TDriveItem> {
456
+ return await this.actionCall("drive", "RenameDriveRootItem", payload);
457
+ }
458
+
459
+ public async MoveDriveRootItem(
460
+ payload: z.infer<typeof MoveDriveRootItemSchema>
461
+ ): Promise<TDriveItem> {
462
+ return await this.actionCall("drive", "MoveDriveRootItem", payload);
463
+ }
464
+
465
+ public async GetDriveRootDeleteImpact(
466
+ payload: z.infer<typeof GetDriveRootDeleteImpactSchema>
467
+ ): Promise<TDriveDeleteImpact> {
468
+ return await this.actionCall("drive", "GetDriveRootDeleteImpact", payload);
469
+ }
470
+
471
+ public async DeleteDriveRootItem(
472
+ payload: z.infer<typeof DeleteDriveRootItemSchema>
473
+ ): Promise<{ id: string; deleted: boolean; totalItems: number }> {
474
+ return await this.actionCall("drive", "DeleteDriveRootItem", payload);
475
+ }
476
+
477
+ public async ReadDriveRootFileContent(
478
+ payload: z.infer<typeof ReadDriveRootFileContentSchema>
479
+ ): Promise<TDriveFileContent> {
480
+ return await this.actionCall("drive", "ReadDriveRootFileContent", payload);
481
+ }
482
+
483
+ public async ResolveDriveRootDownload(
484
+ payload: z.infer<typeof ResolveDriveRootDownloadSchema>
485
+ ): Promise<TWikiFileViewResolution> {
486
+ const result = await this.actionCall<any>("drive", "ResolveDriveRootDownload", payload);
487
+ const rawUrl = String(result?.url || "");
488
+ const normalizedUrl = rawUrl.startsWith("data:") ? rawUrl : this.normalizeStoragePath(rawUrl);
489
+ const resolvedUrl = rawUrl.startsWith("data:")
490
+ ? rawUrl
491
+ : (this.resolveStorageViewUrl(normalizedUrl) || normalizedUrl);
492
+
493
+ return {
494
+ ...result,
495
+ fileId: String(result?.itemId || payload.itemId || ""),
496
+ path: normalizedUrl,
497
+ filePath: resolvedUrl || normalizedUrl,
498
+ url: resolvedUrl || normalizedUrl,
499
+ };
500
+ }
501
+
388
502
  public async CreateExtension(payload: z.infer<typeof CreateExtensionSchema>): Promise<TExtension> {
389
503
  return await this.actionCall('extension', 'CreateExtension', payload);
390
504
  }
@@ -227,9 +227,34 @@ export type TDriveBreadcrumb = {
227
227
  name: string;
228
228
  }
229
229
 
230
+ export type TDriveRootProvider = "LOCAL" | "GOOGLE_DRIVE" | "DROPBOX";
231
+
232
+ export type TDriveRoot = {
233
+ id: string;
234
+ tenantId: string;
235
+ provider: TDriveRootProvider;
236
+ name: string;
237
+ credentialId?: string | null;
238
+ remoteRootId?: string | null;
239
+ remoteRootPath?: string | null;
240
+ isDefaultLocal: boolean;
241
+ createdAt?: string;
242
+ updatedAt?: string;
243
+ }
244
+
245
+ export type TDriveProviderFolder = {
246
+ id: string;
247
+ name: string;
248
+ parentId?: string | null;
249
+ path?: string | null;
250
+ }
251
+
230
252
  export type TDriveItem = {
231
253
  id: string;
232
254
  tenantId: string;
255
+ rootId?: string;
256
+ provider?: TDriveRootProvider;
257
+ isRemote?: boolean;
233
258
  name: string;
234
259
  normalizedName?: string;
235
260
  kind: string;
@@ -250,6 +275,8 @@ export type TDriveItem = {
250
275
  export type TDriveTreeNode = {
251
276
  id: string;
252
277
  tenantId: string;
278
+ rootId?: string;
279
+ provider?: TDriveRootProvider;
253
280
  name: string;
254
281
  parentId?: string | null;
255
282
  kind: string;
@@ -272,6 +299,14 @@ export type TDriveDeleteImpact = {
272
299
  totalBytes: number;
273
300
  }
274
301
 
302
+ export type TDriveFileContent = {
303
+ item: TDriveItem;
304
+ base64: string;
305
+ content: string | null;
306
+ mimeType: string;
307
+ sizeBytes: number;
308
+ }
309
+
275
310
  export type TWikiFileViewResolution = {
276
311
  fileId: string;
277
312
  path: string;
@@ -420,7 +455,7 @@ export type TDataModel = {
420
455
  id: string;
421
456
  name: string;
422
457
  displayName: string;
423
- description: string;
458
+ description?: string | null;
424
459
  importSource?: string | null;
425
460
  }
426
461
 
@@ -480,6 +515,24 @@ export type TAutomationRuleTriggerType =
480
515
  | "unlinked"
481
516
  | "schedule";
482
517
 
518
+ export type TCollectionAutomationRuleConditionOperator =
519
+ | "is"
520
+ | "is-not"
521
+ | "contains"
522
+ | "is-empty"
523
+ | "is-not-empty";
524
+
525
+ export type TCollectionAutomationRuleTriggerConfig = {
526
+ updatedFieldId?: string | null;
527
+ }
528
+
529
+ export type TCollectionAutomationRuleCondition = {
530
+ id: string;
531
+ fieldId: string;
532
+ operator: TCollectionAutomationRuleConditionOperator;
533
+ value?: string | string[] | boolean | null;
534
+ }
535
+
483
536
  export type TAutomationRuleActionType =
484
537
  | "create"
485
538
  | "update"
@@ -513,6 +566,8 @@ export type TCollectionAutomationRule = {
513
566
  description: string;
514
567
  enabled: boolean;
515
568
  trigger: TAutomationRuleTriggerType;
569
+ triggerConfig?: TCollectionAutomationRuleTriggerConfig | null;
570
+ conditions?: TCollectionAutomationRuleCondition[];
516
571
  actions: TAutomationRuleAction[];
517
572
  activity: TAutomationRuleActivityItem[];
518
573
  createdAt: string;
@@ -525,11 +580,60 @@ export type TCollectionViewColumn = {
525
580
  width?: number;
526
581
  }
527
582
 
528
- export type TCollectionViewConfig = {
583
+ export type TCollectionGridViewConfig = {
529
584
  version: 1;
530
585
  columns: TCollectionViewColumn[];
586
+ filters: TCollectionBoardFilterRule[];
587
+ gridEngine: "canvas" | "ag-grid" | "tanstack";
588
+ sorts: TCollectionBoardSortRule[];
589
+ }
590
+
591
+ export type TCollectionBoardCardSize = "small" | "medium" | "large";
592
+
593
+ export type TCollectionBoardColorMode = "group" | "none";
594
+
595
+ export type TCollectionBoardFilterOperator =
596
+ | "is"
597
+ | "is-not"
598
+ | "contains"
599
+ | "is-empty"
600
+ | "is-not-empty";
601
+
602
+ export type TCollectionBoardFilterRule = {
603
+ id: string;
604
+ fieldName: string;
605
+ operator: TCollectionBoardFilterOperator;
606
+ value?: string | string[] | boolean | null;
607
+ }
608
+
609
+ export type TCollectionBoardSortRule = {
610
+ id: string;
611
+ fieldName: string;
612
+ direction: "asc" | "desc";
531
613
  }
532
614
 
615
+ export type TCollectionBoardGroupVisibleFieldOverride = {
616
+ groupId: string;
617
+ visibleFieldNames: string[];
618
+ }
619
+
620
+ export type TCollectionBoardViewConfig = {
621
+ version: 1;
622
+ columns: TCollectionViewColumn[];
623
+ titleFieldName: string;
624
+ groupByFieldName: string;
625
+ columnOrder: string[];
626
+ hiddenColumnIds: string[];
627
+ cardOrderByColumn?: Record<string, string[]>;
628
+ cardSize: TCollectionBoardCardSize;
629
+ filters: TCollectionBoardFilterRule[];
630
+ sorts: TCollectionBoardSortRule[];
631
+ colorMode: TCollectionBoardColorMode;
632
+ groupVisibleFieldOverrides: TCollectionBoardGroupVisibleFieldOverride[];
633
+ }
634
+
635
+ export type TCollectionViewConfig = TCollectionGridViewConfig | TCollectionBoardViewConfig;
636
+
533
637
  export type TCollectionView = {
534
638
  id: string;
535
639
  tenantId: string;