@appconda/sdk 1.0.559 → 1.0.602

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 (54) hide show
  1. package/dist/client.d.ts +0 -8
  2. package/dist/client.js +8 -75
  3. package/dist/getAppcondaClient.d.ts +3 -14
  4. package/dist/getAppcondaClient.js +59 -51
  5. package/dist/getSDKForService.d.ts +1 -3
  6. package/dist/getSDKForService.js +4 -4
  7. package/dist/index.d.ts +1 -5
  8. package/dist/index.js +1 -3
  9. package/dist/inputFile.d.ts +6 -0
  10. package/dist/inputFile.js +16 -0
  11. package/dist/modules/agent/action.d.ts +29 -0
  12. package/dist/modules/agent/action.js +53 -0
  13. package/dist/modules/ai/node/actions.d.ts +4 -0
  14. package/dist/modules/ai/node/actions.js +14 -0
  15. package/dist/modules/builder/action.d.ts +18 -0
  16. package/dist/modules/builder/action.js +214 -0
  17. package/dist/modules/datasource/action.d.ts +14 -0
  18. package/dist/modules/datasource/action.js +172 -0
  19. package/dist/modules/emploid/action.d.ts +73 -0
  20. package/dist/modules/emploid/action.js +984 -0
  21. package/dist/modules/emploid/schema.d.ts +8 -24
  22. package/dist/modules/emploid/schema.js +10 -26
  23. package/dist/modules/emploid/service.d.ts +2 -4
  24. package/dist/modules/emploid/service.js +1 -7
  25. package/dist/modules/emploid/types.d.ts +1 -12
  26. package/dist/modules/emploid/types.js +1 -1
  27. package/dist/modules/google/action.d.ts +5 -0
  28. package/dist/modules/google/action.js +46 -0
  29. package/dist/modules/hooks/lib/handler.d.ts +3 -0
  30. package/dist/modules/hooks/lib/handler.js +23 -0
  31. package/dist/modules/mail/action.d.ts +3 -0
  32. package/dist/modules/mail/action.js +18 -0
  33. package/dist/modules/notion/action.d.ts +5 -0
  34. package/dist/modules/notion/action.js +46 -0
  35. package/dist/modules/organization/action.d.ts +7 -0
  36. package/dist/modules/organization/action.js +60 -0
  37. package/dist/modules/scheduled-job/action.d.ts +70 -0
  38. package/dist/modules/scheduled-job/action.js +173 -0
  39. package/dist/modules/scheduled-job/lib/handler.d.ts +3 -0
  40. package/dist/modules/scheduled-job/lib/handler.js +23 -0
  41. package/dist/modules/task/action.d.ts +64 -0
  42. package/dist/modules/task/action.js +758 -0
  43. package/dist/modules/tenant/actions.d.ts +10 -0
  44. package/dist/modules/tenant/actions.js +160 -0
  45. package/dist/modules/waitlist/action.d.ts +6 -0
  46. package/dist/modules/waitlist/action.js +78 -0
  47. package/package.json +1 -1
  48. package/src/client.ts +8 -96
  49. package/src/getAppcondaClient.ts +58 -69
  50. package/src/getSDKForService.ts +4 -7
  51. package/src/index.ts +2 -5
  52. package/src/modules/emploid/schema.ts +10 -29
  53. package/src/modules/emploid/service.ts +2 -10
  54. package/src/modules/emploid/types.ts +1 -14
@@ -96,30 +96,17 @@ export const ListDomainTopicsSchema = z.object({
96
96
  occupationId: z.string()
97
97
  });
98
98
 
99
- export const ScopeTypeSchema = z.string().min(1);
100
-
101
99
  export const CreateScopeSchema = z.object({
102
100
  tenantId: z.string(),
103
- workerId: z.string(),
104
- parentScopeId: z.string().nullable().optional(),
105
- name: z.string().optional(),
106
- type: ScopeTypeSchema.optional(),
107
- isFolderType: z.boolean().optional(),
101
+ emploidId: z.string(),
102
+ name: z.string(),
108
103
  description: z.string().optional()
109
104
  });
110
105
 
111
- export const GetScopeByTypeSchema = z.object({
112
- tenantId: z.string(),
113
- workerId: z.string(),
114
- type: ScopeTypeSchema
115
- });
116
-
117
106
  export const UpdateScopeSchema = z.object({
118
107
  scopeId: z.string(),
119
- parentScopeId: z.string().nullable().optional(),
120
- name: z.string().optional(),
121
- description: z.string().optional(),
122
- isFolderType: z.boolean().optional()
108
+ name: z.string(),
109
+ description: z.string().optional()
123
110
  });
124
111
 
125
112
  export const DeleteScopeSchema = z.object({
@@ -128,7 +115,7 @@ export const DeleteScopeSchema = z.object({
128
115
 
129
116
  export const CreateJobDefinitionSchema = z.object({
130
117
  tenantId: z.string(),
131
- workerId: z.string(),
118
+ emploidId: z.string(),
132
119
  scopeId: z.string(),
133
120
  name: z.string(),
134
121
  description: z.string().optional(),
@@ -139,7 +126,7 @@ export const CreateJobDefinitionSchema = z.object({
139
126
 
140
127
  export const ListJobDefinitionSchema = z.object({
141
128
  tenantId: z.string(),
142
- workerId: z.string().optional(),
129
+ emploidId: z.string().optional(),
143
130
  scopeId: z.string().optional()
144
131
  });
145
132
 
@@ -158,7 +145,7 @@ export const DeleteJobDefinitionSchema = z.object({
158
145
 
159
146
  export const CreateCompetencySchema = z.object({
160
147
  tenantId: z.string(),
161
- workerId: z.string(),
148
+ emploidId: z.string(),
162
149
  scopeId: z.string(),
163
150
  jobDefinitionId: z.string(),
164
151
  name: z.string(),
@@ -168,7 +155,7 @@ export const CreateCompetencySchema = z.object({
168
155
 
169
156
  export const ListCompetenciesSchema = z.object({
170
157
  tenantId: z.string(),
171
- workerId: z.string().optional(),
158
+ emploidId: z.string().optional(),
172
159
  scopeId: z.string().optional(),
173
160
  jobDefinitionId: z.string().optional()
174
161
  });
@@ -388,7 +375,7 @@ export const DeleteAssistantChannelSchema = z.object({
388
375
 
389
376
  export const CreateWorkerSchema = z.object({
390
377
  tenantId: z.string(),
391
- emploidId: z.string().optional(),
378
+ emploidId: z.string(),
392
379
  name: z.string(),
393
380
  description: z.string().optional(),
394
381
  avatar: z.string().optional(),
@@ -1310,10 +1297,4 @@ export const PublishEmploidSchema = z.object({
1310
1297
  export const PublishWorkerSchema = z.object({
1311
1298
  tenantId: z.string(),
1312
1299
  workerId: z.string(),
1313
- });
1314
-
1315
- export const EnhanceTopicSchema = z.object({
1316
- entityName: z.string(),
1317
- entityDescription: z.string(),
1318
- categories: z.string().array().optional()
1319
- })
1300
+ });
@@ -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, 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, 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, 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";
7
- 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, TWorker, TWorkerTopic } from "./types";
6
+ 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, 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, 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";
7
+ 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";
8
8
 
9
9
  export class EmploidService extends ServiceClient {
10
10
  protected getServiceName(): string {
@@ -70,10 +70,6 @@ export class EmploidService extends ServiceClient {
70
70
  return await this.actionCall('emploid', 'ListScopes', payload);
71
71
  }
72
72
 
73
- public async GetScopeByType(payload: z.infer<typeof GetScopeByTypeSchema>): Promise<TScope | null> {
74
- return await this.actionCall('emploid', 'GetScopeByType', payload);
75
- }
76
-
77
73
  public async CreateScope(payload: z.infer<typeof CreateScopeSchema>): Promise<TScope> {
78
74
  return await this.actionCall('emploid', 'CreateScope', payload);
79
75
  }
@@ -431,10 +427,6 @@ export class EmploidService extends ServiceClient {
431
427
  return await this.actionCall('topic', 'ListTopics', payload);
432
428
  }
433
429
 
434
- public async EnhanceTopic(payload: z.infer<typeof EnhanceTopicSchema>): Promise<TEnhanceTopic> {
435
- return await this.actionCall('topic', 'EnhanceTopic', payload);
436
- }
437
-
438
430
  //---------------------------------------------
439
431
 
440
432
  public async CreateInput(payload: z.infer<typeof CreateInputSchema>): Promise<TInput> {
@@ -18,17 +18,9 @@ export type TPaginatedEmploidsResult = {
18
18
 
19
19
  export type TScope = {
20
20
  id: string;
21
- tenantId: string;
22
- workerId: string;
23
- parentScopeId?: string | null;
21
+ emploidId: string;
24
22
  name: string;
25
23
  description: string;
26
- type?: string;
27
- isFolderType?: boolean;
28
- content?: any;
29
- markdownContent?: string;
30
- createdAt?: string;
31
- updatedAt?: string;
32
24
  }
33
25
 
34
26
  export type TOccupation = {
@@ -424,8 +416,3 @@ export type TPublishWorker = {
424
416
  prompt: string;
425
417
  data: any;
426
418
  }
427
-
428
-
429
- export type TEnhanceTopic = {
430
- tone: string[];
431
- }