@appconda/sdk 1.0.613 → 1.0.615

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.
@@ -867,6 +867,120 @@ export const RunAirtableImportSchema = z.object({
867
867
  ).min(1),
868
868
  });
869
869
 
870
+ export const EnsureLinearImportCredentialSchema = z.object({
871
+ tenantId: z.string(),
872
+ });
873
+
874
+ export const ListLinearImportSourcesSchema = z.object({
875
+ tenantId: z.string(),
876
+ });
877
+
878
+ export const PreviewLinearImportSchema = z.object({
879
+ tenantId: z.string(),
880
+ entityTypes: z.array(
881
+ z.enum([
882
+ "issues",
883
+ "projects",
884
+ "cycles",
885
+ "teams",
886
+ "users",
887
+ "labels",
888
+ "issueStates",
889
+ "comments",
890
+ "attachments",
891
+ ])
892
+ ).min(1),
893
+ teamIds: z.array(z.string()).optional(),
894
+ projectIds: z.array(z.string()).optional(),
895
+ cycleIds: z.array(z.string()).optional(),
896
+ });
897
+
898
+ export const RunLinearImportSchema = z.object({
899
+ tenantId: z.string(),
900
+ entityTypes: z.array(
901
+ z.enum([
902
+ "issues",
903
+ "projects",
904
+ "cycles",
905
+ "teams",
906
+ "users",
907
+ "labels",
908
+ "issueStates",
909
+ "comments",
910
+ "attachments",
911
+ ])
912
+ ).min(1),
913
+ teamIds: z.array(z.string()).optional(),
914
+ projectIds: z.array(z.string()).optional(),
915
+ cycleIds: z.array(z.string()).optional(),
916
+ collections: z.array(
917
+ z.object({
918
+ entityType: z.enum([
919
+ "issues",
920
+ "projects",
921
+ "cycles",
922
+ "teams",
923
+ "users",
924
+ "labels",
925
+ "issueStates",
926
+ "comments",
927
+ "attachments",
928
+ ]),
929
+ collectionName: z.string(),
930
+ collectionDisplayName: z.string(),
931
+ fields: z.array(
932
+ z.object({
933
+ fieldId: z.string(),
934
+ type: z.string(),
935
+ displayName: z.string(),
936
+ name: z.string(),
937
+ required: z.boolean().optional(),
938
+ config: z.object({}).catchall(z.any()).optional(),
939
+ relationTargetEntityType: z.string().optional(),
940
+ fallbackReason: z.string().optional(),
941
+ })
942
+ ).min(1),
943
+ })
944
+ ).min(1),
945
+ });
946
+
947
+ export const EnsureNotionImportCredentialSchema = z.object({
948
+ tenantId: z.string(),
949
+ });
950
+
951
+ export const ListNotionImportSourcesSchema = z.object({
952
+ tenantId: z.string(),
953
+ });
954
+
955
+ export const PreviewNotionImportSchema = z.object({
956
+ tenantId: z.string(),
957
+ sourceIds: z.array(z.string()).min(1),
958
+ });
959
+
960
+ export const RunNotionImportSchema = z.object({
961
+ tenantId: z.string(),
962
+ sourceIds: z.array(z.string()).min(1),
963
+ sources: z.array(
964
+ z.object({
965
+ sourceId: z.string(),
966
+ collectionName: z.string(),
967
+ collectionDisplayName: z.string(),
968
+ fields: z.array(
969
+ z.object({
970
+ fieldId: z.string(),
971
+ type: z.string(),
972
+ displayName: z.string(),
973
+ name: z.string(),
974
+ required: z.boolean().optional(),
975
+ config: z.object({}).catchall(z.any()).optional(),
976
+ relationTargetSourceId: z.string().optional(),
977
+ fallbackReason: z.string().optional(),
978
+ })
979
+ ).min(1),
980
+ })
981
+ ).min(1),
982
+ });
983
+
870
984
  export const BulkUpdateRecordsSchema = z.object({
871
985
  tenantId: z.string(),
872
986
  collectionId: z.string(),
@@ -3,7 +3,7 @@ import z from "zod";
3
3
  import { ServiceClient } from "../../service-client";
4
4
 
5
5
 
6
- import { AggregateRecordsSchema, BulkCreateRecordsSchema, BulkDeleteRecordsSchema, BulkUpdateRecordsSchema, ChangeAgentflowProjectSchema, CheckRecordPermissionSchema, CountRecordsSchema, CreateAgentFlowFolderSchema, CreateAgentFlowSchema, CreateAssistantChannelSchema, CreateAssistantConstraintSchema, CreateAssistantDatasourceSchema, CreateAssistantInstructionSchema, CreateAssistantSchema, CreateAssistantSkillSchema, CreateChannelSchema, CreateCollectionAutomationRuleSchema, CreateCollectionButtonSchema, CreateCollectionFieldSchema, CreateCollectionRelationSchema, CreateCollectionSchema, CreateCollectionViewSchema, CreateCommandSchema, CreateCompetencySchema, CreateConstraintSchema, CreateDataModelSchema, CreateDatasourceSchema, CreateDomainTopicSchema, CreateEmploidSchema, CreateExtensionSchema, CreateInputSchema, CreateInstructionSchema, CreateJobDefinitionSchema, CreateKnowledgeSchema, CreateOccupationSchema, CreateRecordSchema, CreateScopeSchema, CreateSkillSchema, CreateStreamIdSchema, CreateTaskTemplateSchema, CreateTeamSchema, CreateTopicSchema, CreateWikiCommentSchema, CreateWikiPageSchema, CreateWikiRevisionSchema, CreateWorkerSchema, CreateWorkerTopicSchema, DeleteAgentFlowFolderSchema, DeleteAssistantChannelSchema, DeleteAssistantDatasourceSchema, DeleteAssistantSchema, DeleteAssistantSkillSchema, DeleteChannelSchema, DeleteChatByIdSchema, DeleteCollectionAutomationRuleSchema, DeleteCollectionButtonSchema, DeleteCollectionFieldSchema, DeleteCollectionRelationSchema, DeleteCollectionViewSchema, DeleteCommandSchema, DeleteCompetencySchema, DeleteConstraintSchema, DeleteDataModelSchema, DeleteDatasourceSchema, DeleteDocumentsByIdAfterTimestampSchema, DeleteDomainTopicSchema, DeleteEmploidSchema, DeleteExtensionSchema, DeleteInputSchema, DeleteInstructionSchema, DeleteJobDefinitionSchema, DeleteKnowledgeSchema, DeleteMessagesByChatIdAfterTimestampSchema, DeleteOccupationSchema, DeleteRecordSchema, DeleteScopeSchema, DeleteSkillSchema, DeleteTaskTemplateSchema, DeleteTeamSchema, DeleteTopicSchema, DeleteWikiCommentSchema, DeleteWikiPageSchema, DeleteWorkerSchema, DeleteWorkerTopicSchema, DistinctFieldValuesSchema, DuplicateRecordSchema, EnhanceTopicSchema, EnsureAirtableImportCredentialSchema, ExecuteCollectionButtonSchema, GetChatByIdSchema, GetChatsByUserIdSchema, GetCollectionSchemaSchema, GetDataModelByIdSchema, GetDocumentByIdSchema, GetDocumentsByIdSchema, 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, ListEmploidsPaginatedSchema, ListEmploidsSchema, ListExtensionsSchema, ListInputSchema, ListInstructionsSchema, ListJobDefinitionSchema, ListKnowledgesSchema, ListMarketStoreItemsSchema, ListOccupationsSchema, ListRecordPermissionsSchema, ListRecordsSchema, ListRelationCandidatesSchema, ListScopesSchema, ListSkillsSchema, ListTaskTemplatesSchema, ListTeamsSchema, ListTopicsSchema, ListWikiCommentsSchema, ListWikiPagesSchema, ListWorkersSchema, ListWorkerTopicsSchema, PreviewAirtableImportSchema, PreviewValidationErrorsSchema, PublishDomainSchema, PublishEmploidSchema, PublishWorkerToMarketStoreSchema, QueryRecordsSchema, ReorderCollectionFieldsSchema, ResolveScopeFileViewSchema, ResolveWikiFileViewSchema, RestoreDataModelSchema, RestoreRecordSchema, RestoreWikiPageSchema, RevokeRecordPermissionSchema, RunAirtableImportSchema, SaveChatSchema, SaveDocumentSchema, SaveMessagesSchema, SaveSuggestionsSchema, SearchRecordsSchema, UpdateAgentFlowFolderSchema, UpdateAgentFlowSchema, UpdateAssistantChannelSchema, UpdateAssistantDatasourceSchema, UpdateAssistantSchema, UpdateAssistantSkillSchema, UpdateChannelSchema, UpdateChatLastContextByIdSchema, UpdateChatVisiblityByIdSchema, UpdateCollectionAutomationRuleSchema, UpdateCollectionButtonSchema, UpdateCollectionFieldSchema, UpdateCollectionRelationSchema, UpdateCollectionViewSchema, UpdateCommandSchema, UpdateCompetencySchema, UpdateConstraintSchema, UpdateDataModelSchema, UpdateDatasourceSchema, UpdateDomainTopicSchema, UpdateEmploidSchema, UpdateInputSchema, UpdateInstructionSchema, UpdateJobDefinitionSchema, UpdateKnowledgeSchema, UpdateOccupationSchema, UpdateRecordSchema, UpdateScopeSchema, UpdateSkillSchema, UpdateTaskTemplateSchema, UpdateTeamSchema, UpdateTopicSchema, UpdateWikiCommentSchema, UpdateWikiPageSchema, UpdateWorkerSchema, UpdateWorkerTopicSchema, UploadEditorFileSchema, UpsertRecordSchema, ValidateRecordSchema, VoteMessageSchema } from "./schema";
6
+ import { AggregateRecordsSchema, BulkCreateRecordsSchema, BulkDeleteRecordsSchema, BulkUpdateRecordsSchema, ChangeAgentflowProjectSchema, CheckRecordPermissionSchema, CountRecordsSchema, CreateAgentFlowFolderSchema, CreateAgentFlowSchema, CreateAssistantChannelSchema, CreateAssistantConstraintSchema, CreateAssistantDatasourceSchema, CreateAssistantInstructionSchema, CreateAssistantSchema, CreateAssistantSkillSchema, CreateChannelSchema, CreateCollectionAutomationRuleSchema, CreateCollectionButtonSchema, CreateCollectionFieldSchema, CreateCollectionRelationSchema, CreateCollectionSchema, CreateCollectionViewSchema, CreateCommandSchema, CreateCompetencySchema, CreateConstraintSchema, CreateDataModelSchema, CreateDatasourceSchema, CreateDomainTopicSchema, CreateEmploidSchema, CreateExtensionSchema, CreateInputSchema, CreateInstructionSchema, CreateJobDefinitionSchema, CreateKnowledgeSchema, CreateOccupationSchema, CreateRecordSchema, CreateScopeSchema, CreateSkillSchema, CreateStreamIdSchema, CreateTaskTemplateSchema, CreateTeamSchema, CreateTopicSchema, CreateWikiCommentSchema, CreateWikiPageSchema, CreateWikiRevisionSchema, CreateWorkerSchema, CreateWorkerTopicSchema, DeleteAgentFlowFolderSchema, DeleteAssistantChannelSchema, DeleteAssistantDatasourceSchema, DeleteAssistantSchema, DeleteAssistantSkillSchema, DeleteChannelSchema, DeleteChatByIdSchema, DeleteCollectionAutomationRuleSchema, DeleteCollectionButtonSchema, DeleteCollectionFieldSchema, DeleteCollectionRelationSchema, DeleteCollectionViewSchema, DeleteCommandSchema, DeleteCompetencySchema, DeleteConstraintSchema, DeleteDataModelSchema, DeleteDatasourceSchema, DeleteDocumentsByIdAfterTimestampSchema, DeleteDomainTopicSchema, DeleteEmploidSchema, DeleteExtensionSchema, DeleteInputSchema, DeleteInstructionSchema, DeleteJobDefinitionSchema, DeleteKnowledgeSchema, DeleteMessagesByChatIdAfterTimestampSchema, DeleteOccupationSchema, DeleteRecordSchema, DeleteScopeSchema, DeleteSkillSchema, DeleteTaskTemplateSchema, DeleteTeamSchema, DeleteTopicSchema, DeleteWikiCommentSchema, DeleteWikiPageSchema, DeleteWorkerSchema, DeleteWorkerTopicSchema, DistinctFieldValuesSchema, DuplicateRecordSchema, EnhanceTopicSchema, EnsureAirtableImportCredentialSchema, EnsureLinearImportCredentialSchema, EnsureNotionImportCredentialSchema, ExecuteCollectionButtonSchema, GetChatByIdSchema, GetChatsByUserIdSchema, GetCollectionSchemaSchema, GetDataModelByIdSchema, GetDocumentByIdSchema, GetDocumentsByIdSchema, 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, ListEmploidsPaginatedSchema, ListEmploidsSchema, ListExtensionsSchema, ListInputSchema, ListInstructionsSchema, ListJobDefinitionSchema, ListKnowledgesSchema, ListLinearImportSourcesSchema, ListMarketStoreItemsSchema, ListNotionImportSourcesSchema, ListOccupationsSchema, ListRecordPermissionsSchema, ListRecordsSchema, ListRelationCandidatesSchema, ListScopesSchema, ListSkillsSchema, ListTaskTemplatesSchema, ListTeamsSchema, ListTopicsSchema, ListWikiCommentsSchema, ListWikiPagesSchema, ListWorkersSchema, ListWorkerTopicsSchema, PreviewAirtableImportSchema, PreviewLinearImportSchema, PreviewNotionImportSchema, PreviewValidationErrorsSchema, PublishDomainSchema, PublishEmploidSchema, PublishWorkerToMarketStoreSchema, QueryRecordsSchema, ReorderCollectionFieldsSchema, ResolveScopeFileViewSchema, ResolveWikiFileViewSchema, RestoreDataModelSchema, RestoreRecordSchema, RestoreWikiPageSchema, RevokeRecordPermissionSchema, RunAirtableImportSchema, RunLinearImportSchema, RunNotionImportSchema, SaveChatSchema, SaveDocumentSchema, SaveMessagesSchema, SaveSuggestionsSchema, SearchRecordsSchema, UpdateAgentFlowFolderSchema, UpdateAgentFlowSchema, UpdateAssistantChannelSchema, UpdateAssistantDatasourceSchema, UpdateAssistantSchema, UpdateAssistantSkillSchema, UpdateChannelSchema, UpdateChatLastContextByIdSchema, UpdateChatVisiblityByIdSchema, UpdateCollectionAutomationRuleSchema, UpdateCollectionButtonSchema, UpdateCollectionFieldSchema, UpdateCollectionRelationSchema, UpdateCollectionViewSchema, UpdateCommandSchema, UpdateCompetencySchema, UpdateConstraintSchema, UpdateDataModelSchema, UpdateDatasourceSchema, UpdateDomainTopicSchema, UpdateEmploidSchema, UpdateInputSchema, UpdateInstructionSchema, UpdateJobDefinitionSchema, UpdateKnowledgeSchema, UpdateOccupationSchema, UpdateRecordSchema, UpdateScopeSchema, UpdateSkillSchema, UpdateTaskTemplateSchema, UpdateTeamSchema, UpdateTopicSchema, UpdateWikiCommentSchema, UpdateWikiPageSchema, UpdateWorkerSchema, UpdateWorkerTopicSchema, UploadEditorFileSchema, UpsertRecordSchema, ValidateRecordSchema, VoteMessageSchema } from "./schema";
7
7
  import { TAgentFlow, TAgentFlowFolder, TAssistant, TAssistantChannel, TAssistantConstraint, TAssistantDatasource, TAssistantInstruction, TAssistantSkill, TChannel, TChat, TCollectionAutomationRule, TCollectionButton, TCollectionRelation, TCollectionView, TCommand, TCompetency, TConstraint, TDatasource, TDocument, TDomainTopic, TEmploid, TEnhanceTopic, TExtension, TInput, TInstruction, TJobDefinition, TKnowledge, TMarketStoreItem, TOccupation, TPaginatedEmploidsResult, 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 {
@@ -909,6 +909,86 @@ export class EmploidService extends ServiceClient {
909
909
  );
910
910
  }
911
911
 
912
+ public async EnsureLinearImportCredential(
913
+ payload: z.infer<typeof EnsureLinearImportCredentialSchema>
914
+ ): Promise<any> {
915
+ return await this.actionCall(
916
+ "collection",
917
+ "EnsureLinearImportCredential",
918
+ payload
919
+ );
920
+ }
921
+
922
+ public async ListLinearImportSources(
923
+ payload: z.infer<typeof ListLinearImportSourcesSchema>
924
+ ): Promise<any> {
925
+ return await this.actionCall(
926
+ "collection",
927
+ "ListLinearImportSources",
928
+ payload
929
+ );
930
+ }
931
+
932
+ public async PreviewLinearImport(
933
+ payload: z.infer<typeof PreviewLinearImportSchema>
934
+ ): Promise<any> {
935
+ return await this.actionCall(
936
+ "collection",
937
+ "PreviewLinearImport",
938
+ payload
939
+ );
940
+ }
941
+
942
+ public async RunLinearImport(
943
+ payload: z.infer<typeof RunLinearImportSchema>
944
+ ): Promise<any> {
945
+ return await this.actionCall(
946
+ "collection",
947
+ "RunLinearImport",
948
+ payload
949
+ );
950
+ }
951
+
952
+ public async EnsureNotionImportCredential(
953
+ payload: z.infer<typeof EnsureNotionImportCredentialSchema>
954
+ ): Promise<any> {
955
+ return await this.actionCall(
956
+ "collection",
957
+ "EnsureNotionImportCredential",
958
+ payload
959
+ );
960
+ }
961
+
962
+ public async ListNotionImportSources(
963
+ payload: z.infer<typeof ListNotionImportSourcesSchema>
964
+ ): Promise<any> {
965
+ return await this.actionCall(
966
+ "collection",
967
+ "ListNotionImportSources",
968
+ payload
969
+ );
970
+ }
971
+
972
+ public async PreviewNotionImport(
973
+ payload: z.infer<typeof PreviewNotionImportSchema>
974
+ ): Promise<any> {
975
+ return await this.actionCall(
976
+ "collection",
977
+ "PreviewNotionImport",
978
+ payload
979
+ );
980
+ }
981
+
982
+ public async RunNotionImport(
983
+ payload: z.infer<typeof RunNotionImportSchema>
984
+ ): Promise<any> {
985
+ return await this.actionCall(
986
+ "collection",
987
+ "RunNotionImport",
988
+ payload
989
+ );
990
+ }
991
+
912
992
  public async BulkUpdateRecords(
913
993
  payload: z.infer<typeof BulkUpdateRecordsSchema>
914
994
  ): Promise<any> {