@appconda/sdk 1.0.602 → 1.0.605

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.
Files changed (69) hide show
  1. package/dist/client.d.ts +8 -0
  2. package/dist/client.js +75 -8
  3. package/dist/getAppcondaClient.d.ts +14 -3
  4. package/dist/getAppcondaClient.js +51 -59
  5. package/dist/getSDKForService.d.ts +3 -1
  6. package/dist/getSDKForService.js +4 -4
  7. package/dist/index.d.ts +5 -1
  8. package/dist/index.js +3 -1
  9. package/dist/modules/accounv1/schema.d.ts +1 -1
  10. package/dist/modules/accounv1/schema.js +2 -2
  11. package/dist/modules/accounv1/types.d.ts +1 -1
  12. package/dist/modules/accounv1/types.js +1 -1
  13. package/dist/modules/emploid/schema.d.ts +62 -8
  14. package/dist/modules/emploid/schema.js +64 -10
  15. package/dist/modules/emploid/service.d.ts +20 -3
  16. package/dist/modules/emploid/service.js +121 -1
  17. package/dist/modules/emploid/types.d.ts +67 -1
  18. package/dist/modules/emploid/types.js +1 -1
  19. package/dist/modules/organization/schema.d.ts +35 -1
  20. package/dist/modules/organization/schema.js +31 -2
  21. package/dist/modules/organization/service.d.ts +9 -2
  22. package/dist/modules/organization/service.js +29 -8
  23. package/dist/modules/organization/types.d.ts +45 -1
  24. package/dist/modules/organization/types.js +1 -1
  25. package/package.json +1 -1
  26. package/src/client.ts +96 -8
  27. package/src/getAppcondaClient.ts +69 -58
  28. package/src/getSDKForService.ts +7 -4
  29. package/src/index.ts +5 -2
  30. package/src/modules/accounv1/schema.ts +2 -2
  31. package/src/modules/accounv1/types.ts +2 -2
  32. package/src/modules/emploid/schema.ts +74 -10
  33. package/src/modules/emploid/service.ts +169 -3
  34. package/src/modules/emploid/types.ts +74 -1
  35. package/src/modules/organization/schema.ts +38 -2
  36. package/src/modules/organization/service.ts +67 -13
  37. package/src/modules/organization/types.ts +51 -2
  38. package/dist/inputFile.d.ts +0 -6
  39. package/dist/inputFile.js +0 -16
  40. package/dist/modules/agent/action.d.ts +0 -29
  41. package/dist/modules/agent/action.js +0 -53
  42. package/dist/modules/ai/node/actions.d.ts +0 -4
  43. package/dist/modules/ai/node/actions.js +0 -14
  44. package/dist/modules/builder/action.d.ts +0 -18
  45. package/dist/modules/builder/action.js +0 -214
  46. package/dist/modules/datasource/action.d.ts +0 -14
  47. package/dist/modules/datasource/action.js +0 -172
  48. package/dist/modules/emploid/action.d.ts +0 -73
  49. package/dist/modules/emploid/action.js +0 -984
  50. package/dist/modules/google/action.d.ts +0 -5
  51. package/dist/modules/google/action.js +0 -46
  52. package/dist/modules/hooks/lib/handler.d.ts +0 -3
  53. package/dist/modules/hooks/lib/handler.js +0 -23
  54. package/dist/modules/mail/action.d.ts +0 -3
  55. package/dist/modules/mail/action.js +0 -18
  56. package/dist/modules/notion/action.d.ts +0 -5
  57. package/dist/modules/notion/action.js +0 -46
  58. package/dist/modules/organization/action.d.ts +0 -7
  59. package/dist/modules/organization/action.js +0 -60
  60. package/dist/modules/scheduled-job/action.d.ts +0 -70
  61. package/dist/modules/scheduled-job/action.js +0 -173
  62. package/dist/modules/scheduled-job/lib/handler.d.ts +0 -3
  63. package/dist/modules/scheduled-job/lib/handler.js +0 -23
  64. package/dist/modules/task/action.d.ts +0 -64
  65. package/dist/modules/task/action.js +0 -758
  66. package/dist/modules/tenant/actions.d.ts +0 -10
  67. package/dist/modules/tenant/actions.js +0 -160
  68. package/dist/modules/waitlist/action.d.ts +0 -6
  69. package/dist/modules/waitlist/action.js +0 -78
@@ -1,9 +1,13 @@
1
1
  import z from "zod";
2
2
  import { ServiceClient } from "../../service-client";
3
- import { AggregateRecordsSchema, BulkCreateRecordsSchema, BulkDeleteRecordsSchema, BulkUpdateRecordsSchema, ChangeAgentflowProjectSchema, CheckRecordPermissionSchema, CountRecordsSchema, CreateAgentFlowFolderSchema, CreateAgentFlowSchema, CreateAssistantChannelSchema, CreateAssistantConstraintSchema, CreateAssistantDatasourceSchema, CreateAssistantInstructionSchema, CreateAssistantSchema, CreateAssistantSkillSchema, CreateChannelSchema, CreateCollectionFieldSchema, CreateCollectionSchema, CreateCommandSchema, CreateCompetencySchema, CreateConstraintSchema, CreateDataModelSchema, CreateDatasourceSchema, CreateDomainTopicSchema, CreateEmploidSchema, CreateExtensionSchema, CreateInputSchema, CreateInstructionSchema, CreateJobDefinitionSchema, CreateKnowledgeSchema, CreateOccupationSchema, CreateRecordSchema, CreateScopeSchema, CreateSkillSchema, CreateStreamIdSchema, CreateTaskTemplateSchema, CreateTeamSchema, CreateTopicSchema, CreateWikiPageSchema, CreateWikiRevisionSchema, CreateWorkerSchema, CreateWorkerTopicSchema, DeleteAgentFlowFolderSchema, DeleteAssistantChannelSchema, DeleteAssistantDatasourceSchema, DeleteAssistantSchema, DeleteAssistantSkillSchema, DeleteChannelSchema, DeleteChatByIdSchema, DeleteCollectionFieldSchema, DeleteCommandSchema, DeleteCompetencySchema, DeleteConstraintSchema, DeleteDataModelSchema, DeleteDatasourceSchema, DeleteDocumentsByIdAfterTimestampSchema, DeleteDomainTopicSchema, DeleteEmploidSchema, DeleteExtensionSchema, DeleteInputSchema, DeleteInstructionSchema, DeleteJobDefinitionSchema, DeleteKnowledgeSchema, DeleteMessagesByChatIdAfterTimestampSchema, DeleteOccupationSchema, DeleteRecordSchema, DeleteScopeSchema, DeleteSkillSchema, DeleteTaskTemplateSchema, DeleteTeamSchema, DeleteTopicSchema, DeleteWikiPageSchema, DeleteWorkerSchema, DeleteWorkerTopicSchema, DistinctFieldValuesSchema, DuplicateRecordSchema, GetChatByIdSchema, GetChatsByUserIdSchema, GetCollectionSchemaSchema, GetDataModelByIdSchema, GetDocumentByIdSchema, GetDocumentsByIdSchema, GetLatestWikiRevisionSchema, GetMessageByIdSchema, GetMessageCountByUserIdSchema, GetMessagesByChatIdSchema, GetRecordByIdSchema, GetStreamIdsByChatIdSchema, GetSuggestionsByDocumentIdSchema, GetVotesByChatIdSchema, GetWikiPageByIdSchema, GetWikiPageBySlugSchema, GetWikiRevisionByIdSchema, GetWikiTreeSchema, GrantRecordPermissionSchema, GroupRecordsSchema, HardDeleteDataModelSchema, ListAgentFlowFoldersSchema, ListAgentFlowsSchema, ListAssistantChannelsSchema, ListAssistantDatasourcesSchema, ListAssistantInstructionsSchema, ListAssistantSkillsSchema, ListAssistantsSchema, ListChannelsSchema, ListChatHistorySchema, ListCollectionsSchema, ListCommandsSchema, ListCompetenciesSchema, ListConstraintsSchema, ListDataModelsSchema, ListDatasourcesSchema, ListDomainTopicsSchema, ListEmploidsPaginatedSchema, ListEmploidsSchema, ListExtensionsSchema, ListInputSchema, ListInstructionsSchema, ListJobDefinitionSchema, ListKnowledgesSchema, ListOccupationsSchema, ListRecordPermissionsSchema, ListRecordsSchema, ListScopesSchema, ListSkillsSchema, ListTaskTemplatesSchema, ListTeamsSchema, ListTopicsSchema, ListWikiPagesSchema, ListWorkersSchema, ListWorkerTopicsSchema, PreviewValidationErrorsSchema, PublishDomainSchema, PublishEmploidSchema, PublishWorkerSchema, QueryRecordsSchema, ReorderCollectionFieldsSchema, RestoreDataModelSchema, RestoreRecordSchema, RestoreWikiPageSchema, RevokeRecordPermissionSchema, SaveChatSchema, SaveDocumentSchema, SaveMessagesSchema, SaveSuggestionsSchema, SearchRecordsSchema, UpdateAgentFlowFolderSchema, UpdateAgentFlowSchema, UpdateAssistantChannelSchema, UpdateAssistantDatasourceSchema, UpdateAssistantSchema, UpdateAssistantSkillSchema, UpdateChannelSchema, UpdateChatLastContextByIdSchema, UpdateChatVisiblityByIdSchema, UpdateCollectionFieldSchema, UpdateCommandSchema, UpdateCompetencySchema, UpdateConstraintSchema, UpdateDataModelSchema, UpdateDatasourceSchema, UpdateDomainTopicSchema, UpdateEmploidSchema, UpdateInputSchema, UpdateInstructionSchema, UpdateJobDefinitionSchema, UpdateKnowledgeSchema, UpdateOccupationSchema, UpdateRecordSchema, UpdateScopeSchema, UpdateSkillSchema, UpdateTaskTemplateSchema, UpdateTeamSchema, UpdateTopicSchema, UpdateWikiPageSchema, UpdateWorkerSchema, UpdateWorkerTopicSchema, UpsertRecordSchema, ValidateRecordSchema, VoteMessageSchema } from "./schema";
4
- import { TAgentFlow, TAgentFlowFolder, TAssistant, TAssistantChannel, TAssistantConstraint, TAssistantDatasource, TAssistantInstruction, TAssistantSkill, TChannel, TChat, TCommand, TCompetency, TConstraint, TDatasource, TDocument, TDomainTopic, TEmploid, TExtension, TInput, TInstruction, TJobDefinition, TKnowledge, TOccupation, TPaginatedEmploidsResult, TPublishEmploid, TPublishWorker, TScope, TSkill, TStreamId, TTaskTemplate, TTeam, TTopic, TWorker, TWorkerTopic } from "./types";
3
+ import { AggregateRecordsSchema, BulkCreateRecordsSchema, BulkDeleteRecordsSchema, BulkUpdateRecordsSchema, ChangeAgentflowProjectSchema, CheckRecordPermissionSchema, CountRecordsSchema, CreateAgentFlowFolderSchema, CreateAgentFlowSchema, CreateAssistantChannelSchema, CreateAssistantConstraintSchema, CreateAssistantDatasourceSchema, CreateAssistantInstructionSchema, CreateAssistantSchema, CreateAssistantSkillSchema, CreateChannelSchema, CreateCollectionFieldSchema, CreateCollectionSchema, 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, DeleteCollectionFieldSchema, 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, GetChatByIdSchema, GetChatsByUserIdSchema, GetCollectionSchemaSchema, GetDataModelByIdSchema, GetDocumentByIdSchema, GetDocumentsByIdSchema, GetLatestWikiRevisionSchema, GetMessageByIdSchema, GetMessageCountByUserIdSchema, GetMessagesByChatIdSchema, GetRecordByIdSchema, GetScopeByTypeSchema, GetStreamIdsByChatIdSchema, GetSuggestionsByDocumentIdSchema, GetVotesByChatIdSchema, GetWikiPageByIdSchema, GetWikiPageBySlugSchema, GetWikiRevisionByIdSchema, GetWikiTreeSchema, GrantRecordPermissionSchema, GroupRecordsSchema, HardDeleteDataModelSchema, ListAgentFlowFoldersSchema, ListAgentFlowsSchema, ListAssistantChannelsSchema, ListAssistantConstraintsSchema, ListAssistantDatasourcesSchema, ListAssistantInstructionsSchema, ListAssistantSkillsSchema, ListAssistantsSchema, ListChannelsSchema, ListChatHistorySchema, ListCollectionsSchema, ListCommandsSchema, ListCompetenciesSchema, ListConstraintsSchema, ListDataModelsSchema, ListDatasourcesSchema, ListDomainTopicsSchema, ListEmploidsPaginatedSchema, ListEmploidsSchema, ListExtensionsSchema, ListInputSchema, ListInstructionsSchema, ListJobDefinitionSchema, ListKnowledgesSchema, ListOccupationsSchema, ListRecordPermissionsSchema, ListRecordsSchema, ListScopesSchema, ListSkillsSchema, ListTaskTemplatesSchema, ListTeamsSchema, ListTopicsSchema, ListWikiCommentsSchema, ListWikiPagesSchema, ListWorkersSchema, ListWorkerTopicsSchema, PreviewValidationErrorsSchema, PublishDomainSchema, PublishEmploidSchema, PublishWorkerSchema, QueryRecordsSchema, ReorderCollectionFieldsSchema, ResolveScopeFileViewSchema, ResolveWikiFileViewSchema, RestoreDataModelSchema, RestoreRecordSchema, RestoreWikiPageSchema, RevokeRecordPermissionSchema, SaveChatSchema, SaveDocumentSchema, SaveMessagesSchema, SaveSuggestionsSchema, SearchRecordsSchema, UpdateAgentFlowFolderSchema, UpdateAgentFlowSchema, UpdateAssistantChannelSchema, UpdateAssistantDatasourceSchema, UpdateAssistantSchema, UpdateAssistantSkillSchema, UpdateChannelSchema, UpdateChatLastContextByIdSchema, UpdateChatVisiblityByIdSchema, UpdateCollectionFieldSchema, 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";
4
+ import { TAgentFlow, TAgentFlowFolder, TAssistant, TAssistantChannel, TAssistantConstraint, TAssistantDatasource, TAssistantInstruction, TAssistantSkill, TChannel, TChat, TCommand, TCompetency, TConstraint, TDatasource, TDocument, TDomainTopic, TEmploid, TEnhanceTopic, TExtension, TInput, TInstruction, TJobDefinition, TKnowledge, TOccupation, TPaginatedEmploidsResult, TPublishEmploid, TPublishWorker, TScope, TSkill, TStreamId, TTaskTemplate, TTeam, TTopic, TUploadedFile, TWikiComment, TWikiCommentPagination, TWikiFileViewResolution, TWorker, TWorkerTopic } from "./types";
5
5
  export declare class EmploidService extends ServiceClient {
6
6
  protected getServiceName(): string;
7
+ private isHttpUrl;
8
+ private normalizeStoragePath;
9
+ private resolveEnvEndpoint;
10
+ private resolveStorageViewUrl;
7
11
  CreateEmploid(payload: z.infer<typeof CreateEmploidSchema>): Promise<TEmploid>;
8
12
  UpdateEmploid(payload: z.infer<typeof UpdateEmploidSchema>): Promise<TEmploid>;
9
13
  DeleteEmploid(payload: z.infer<typeof DeleteEmploidSchema>): Promise<TEmploid>;
@@ -19,9 +23,12 @@ export declare class EmploidService extends ServiceClient {
19
23
  UpdateConstraint(payload: z.infer<typeof UpdateConstraintSchema>): Promise<TConstraint>;
20
24
  DeleteConstraint(payload: z.infer<typeof DeleteConstraintSchema>): Promise<TConstraint>;
21
25
  ListScopes(payload: z.infer<typeof ListScopesSchema>): Promise<TScope[]>;
26
+ GetScopeByType(payload: z.infer<typeof GetScopeByTypeSchema>): Promise<TScope | null>;
22
27
  CreateScope(payload: z.infer<typeof CreateScopeSchema>): Promise<TScope>;
23
28
  UpdateScope(payload: z.infer<typeof UpdateScopeSchema>): Promise<TScope>;
24
29
  DeleteScope(payload: z.infer<typeof DeleteScopeSchema>): Promise<TScope>;
30
+ UploadScopeFile(payload: z.infer<typeof UploadEditorFileSchema>): Promise<TUploadedFile>;
31
+ ResolveScopeFileView(payload: z.infer<typeof ResolveScopeFileViewSchema>): Promise<TWikiFileViewResolution>;
25
32
  CreateOccupation(payload: z.infer<typeof CreateOccupationSchema>): Promise<TOccupation>;
26
33
  UpdateOccupation(payload: z.infer<typeof UpdateOccupationSchema>): Promise<TOccupation>;
27
34
  DeleteOccupation(payload: z.infer<typeof DeleteOccupationSchema>): Promise<TOccupation>;
@@ -61,7 +68,7 @@ export declare class EmploidService extends ServiceClient {
61
68
  CreateAssistantInstruction(payload: z.infer<typeof CreateAssistantInstructionSchema>): Promise<TAssistantInstruction>;
62
69
  ListAssistantInstructions(payload: z.infer<typeof ListAssistantInstructionsSchema>): Promise<TAssistantInstruction[]>;
63
70
  CreateAssistantConstraint(payload: z.infer<typeof CreateAssistantConstraintSchema>): Promise<TAssistantConstraint>;
64
- ListAssistantConstraints(payload: z.infer<typeof ListAssistantConstraintSchema>): Promise<TAssistantConstraint[]>;
71
+ ListAssistantConstraints(payload: z.infer<typeof ListAssistantConstraintsSchema>): Promise<TAssistantConstraint[]>;
65
72
  CreateAssistantDatasource(payload: z.infer<typeof CreateAssistantDatasourceSchema>): Promise<TAssistantDatasource>;
66
73
  UpdateAssistantDatasource(payload: z.infer<typeof UpdateAssistantDatasourceSchema>): Promise<TAssistantDatasource>;
67
74
  DeleteAssistantDatasource(payload: z.infer<typeof DeleteAssistantDatasourceSchema>): Promise<TAssistantDatasource>;
@@ -103,6 +110,7 @@ export declare class EmploidService extends ServiceClient {
103
110
  UpdateTopic(payload: z.infer<typeof UpdateTopicSchema>): Promise<TTopic>;
104
111
  DeleteTopic(payload: z.infer<typeof DeleteTopicSchema>): Promise<TTopic>;
105
112
  ListTopics(payload: z.infer<typeof ListTopicsSchema>): Promise<TTopic[]>;
113
+ EnhanceTopic(payload: z.infer<typeof EnhanceTopicSchema>): Promise<TEnhanceTopic>;
106
114
  CreateInput(payload: z.infer<typeof CreateInputSchema>): Promise<TInput>;
107
115
  UpdateInput(payload: z.infer<typeof UpdateInputSchema>): Promise<TInput>;
108
116
  DeleteInput(payload: z.infer<typeof DeleteInputSchema>): Promise<TInput>;
@@ -186,6 +194,15 @@ export declare class EmploidService extends ServiceClient {
186
194
  UpdateWikiPage(payload: z.infer<typeof UpdateWikiPageSchema>): Promise<any>;
187
195
  DeleteWikiPage(payload: z.infer<typeof DeleteWikiPageSchema>): Promise<any>;
188
196
  ListWikiPages(payload: z.infer<typeof ListWikiPagesSchema>): Promise<any[]>;
197
+ UploadWikiFile(payload: z.infer<typeof UploadEditorFileSchema>): Promise<TUploadedFile>;
198
+ ResolveWikiFileView(payload: z.infer<typeof ResolveWikiFileViewSchema>): Promise<TWikiFileViewResolution>;
199
+ CreateWikiComment(payload: z.infer<typeof CreateWikiCommentSchema>): Promise<TWikiComment>;
200
+ UpdateWikiComment(payload: z.infer<typeof UpdateWikiCommentSchema>): Promise<TWikiComment>;
201
+ DeleteWikiComment(payload: z.infer<typeof DeleteWikiCommentSchema>): Promise<{
202
+ id: string;
203
+ deletedAt: string;
204
+ }>;
205
+ ListWikiComments(payload: z.infer<typeof ListWikiCommentsSchema>): Promise<TWikiCommentPagination>;
189
206
  RestoreWikiPage(payload: z.infer<typeof RestoreWikiPageSchema>): Promise<any>;
190
207
  GetWikiPageById(payload: z.infer<typeof GetWikiPageByIdSchema>): Promise<any>;
191
208
  GetWikiPageBySlug(payload: z.infer<typeof GetWikiPageBySlugSchema>): Promise<any>;