@messenger-box/platform-server 10.0.3-alpha.7 → 10.0.3-alpha.74
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.
- package/lib/config/env-config.d.ts +7 -0
- package/lib/config/env-config.js +20 -0
- package/lib/config/env-config.js.map +1 -1
- package/lib/containers/containers.js +9 -1
- package/lib/containers/containers.js.map +1 -1
- package/lib/containers/context-services-from-container.d.ts +1 -1
- package/lib/containers/context-services-from-container.js +4 -2
- package/lib/containers/context-services-from-container.js.map +1 -1
- package/lib/graphql/resolvers/ai-fragment.d.ts +3 -0
- package/lib/graphql/resolvers/ai-fragment.js +276 -0
- package/lib/graphql/resolvers/ai-fragment.js.map +1 -0
- package/lib/graphql/resolvers/channel-member.d.ts +3 -2
- package/lib/graphql/resolvers/channel-member.js +30 -5
- package/lib/graphql/resolvers/channel-member.js.map +1 -1
- package/lib/graphql/resolvers/channel.d.ts +3 -2
- package/lib/graphql/resolvers/channel.js +308 -53
- package/lib/graphql/resolvers/channel.js.map +1 -1
- package/lib/graphql/resolvers/extended-token-account.d.ts +3 -2
- package/lib/graphql/resolvers/extended-token-account.js +90 -23
- package/lib/graphql/resolvers/extended-token-account.js.map +1 -1
- package/lib/graphql/resolvers/index.d.ts +1 -1
- package/lib/graphql/resolvers/index.js +1 -1
- package/lib/graphql/resolvers/index.js.map +1 -1
- package/lib/graphql/resolvers/post-thread.d.ts +1 -1
- package/lib/graphql/resolvers/post-thread.js +294 -132
- package/lib/graphql/resolvers/post-thread.js.map +1 -1
- package/lib/graphql/resolvers/post.d.ts +2 -3
- package/lib/graphql/resolvers/post.js +874 -239
- package/lib/graphql/resolvers/post.js.map +1 -1
- package/lib/graphql/resolvers/reaction.d.ts +3 -2
- package/lib/graphql/resolvers/reaction.js +96 -14
- package/lib/graphql/resolvers/reaction.js.map +1 -1
- package/lib/graphql/schema/ai-fragment.graphql +311 -0
- package/lib/graphql/schema/ai-fragment.graphql.js +1 -0
- package/lib/graphql/schema/ai-fragment.graphql.js.map +1 -0
- package/lib/graphql/schema/channel-member.graphql +110 -21
- package/lib/graphql/schema/channel-member.graphql.js +1 -1
- package/lib/graphql/schema/channel.graphql +356 -38
- package/lib/graphql/schema/channel.graphql.js +1 -1
- package/lib/graphql/schema/index.js +2 -2
- package/lib/graphql/schema/index.js.map +1 -1
- package/lib/graphql/schema/post-thread.graphql +167 -21
- package/lib/graphql/schema/post-thread.graphql.js +1 -1
- package/lib/graphql/schema/post.graphql +360 -40
- package/lib/graphql/schema/post.graphql.js +1 -1
- package/lib/graphql/schema/reaction.graphql +71 -13
- package/lib/graphql/schema/reaction.graphql.js +1 -1
- package/lib/graphql/schema/services.graphql +21 -0
- package/lib/graphql/schema/users.graphql +76 -13
- package/lib/graphql/schema/users.graphql.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/inngest/factory.d.ts +20 -0
- package/lib/inngest/factory.js +4 -0
- package/lib/inngest/factory.js.map +1 -0
- package/lib/inngest/functions.d.ts +235 -0
- package/lib/inngest/functions.js +1385 -0
- package/lib/inngest/functions.js.map +1 -0
- package/lib/inngest/index.d.ts +3 -0
- package/lib/inngest/prompt.d.ts +6 -0
- package/lib/inngest/prompt.js +871 -0
- package/lib/inngest/prompt.js.map +1 -0
- package/lib/inngest/utils.d.ts +5 -0
- package/lib/inngest/utils.js +32 -0
- package/lib/inngest/utils.js.map +1 -0
- package/lib/interfaces/index.d.ts +0 -1
- package/lib/interfaces/services.d.ts +1 -1
- package/lib/migrations/dbMigrations/AddPostsConfigurationsMigration.d.ts +17 -0
- package/lib/migrations/dbMigrations/AddPostsConfigurationsMigration.js +44 -0
- package/lib/migrations/dbMigrations/AddPostsConfigurationsMigration.js.map +1 -0
- package/lib/migrations/dbMigrations/index.d.ts +1 -0
- package/lib/migrations/index.d.ts +1 -0
- package/lib/migrations/mail-template-migration.js +1 -1
- package/lib/migrations/message-notification-template-migration.d.ts +1 -1
- package/lib/migrations/message-notification-template-migration.js +1 -1
- package/lib/module.js +10 -3
- package/lib/module.js.map +1 -1
- package/lib/plugins/ai-fragment-moleculer-service.d.ts +29 -0
- package/lib/plugins/ai-fragment-moleculer-service.js +516 -0
- package/lib/plugins/ai-fragment-moleculer-service.js.map +1 -0
- package/lib/plugins/channel-moleculer-service.d.ts +21 -1
- package/lib/plugins/channel-moleculer-service.js +426 -115
- package/lib/plugins/channel-moleculer-service.js.map +1 -1
- package/lib/plugins/extended-token-account-moleculer-service.d.ts +25 -1
- package/lib/plugins/extended-token-account-moleculer-service.js +348 -22
- package/lib/plugins/extended-token-account-moleculer-service.js.map +1 -1
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/messenger-notification-moleculer-service.d.ts +27 -3
- package/lib/plugins/messenger-notification-moleculer-service.js +404 -58
- package/lib/plugins/messenger-notification-moleculer-service.js.map +1 -1
- package/lib/plugins/post-moleculer-service.d.ts +85 -21
- package/lib/plugins/post-moleculer-service.js +1102 -256
- package/lib/plugins/post-moleculer-service.js.map +1 -1
- package/lib/plugins/post-thread-moleculer-service.d.ts +33 -1
- package/lib/plugins/post-thread-moleculer-service.js +326 -8
- package/lib/plugins/post-thread-moleculer-service.js.map +1 -1
- package/lib/plugins/reaction-moleculer-service.js +1 -1
- package/lib/plugins/reaction-moleculer-service.js.map +1 -1
- package/lib/preferences/settings/post-settings.d.ts +2 -0
- package/lib/preferences/settings/post-settings.js +47 -9
- package/lib/preferences/settings/post-settings.js.map +1 -1
- package/lib/services/ai-fragment-service.d.ts +195 -0
- package/lib/services/ai-fragment-service.js +631 -0
- package/lib/services/ai-fragment-service.js.map +1 -0
- package/lib/services/channel-service.d.ts +181 -33
- package/lib/services/channel-service.js +842 -273
- package/lib/services/channel-service.js.map +1 -1
- package/lib/services/extended-token-account-service.d.ts +130 -14
- package/lib/services/extended-token-account-service.js +462 -52
- package/lib/services/extended-token-account-service.js.map +1 -1
- package/lib/services/index.d.ts +3 -0
- package/lib/services/messenger-notification-service.d.ts +106 -13
- package/lib/services/messenger-notification-service.js +824 -442
- package/lib/services/messenger-notification-service.js.map +1 -1
- package/lib/services/post-service.d.ts +189 -16
- package/lib/services/post-service.js +949 -113
- package/lib/services/post-service.js.map +1 -1
- package/lib/services/post-thread-service.d.ts +114 -5
- package/lib/services/post-thread-service.js +400 -13
- package/lib/services/post-thread-service.js.map +1 -1
- package/lib/services/proxy-services/ai-fragment-microservice.d.ts +23 -0
- package/lib/services/proxy-services/ai-fragment-microservice.js +78 -0
- package/lib/services/proxy-services/ai-fragment-microservice.js.map +1 -0
- package/lib/services/proxy-services/channel-microservice.d.ts +6 -3
- package/lib/services/proxy-services/channel-microservice.js +25 -10
- package/lib/services/proxy-services/channel-microservice.js.map +1 -1
- package/lib/services/proxy-services/index.d.ts +1 -0
- package/lib/services/proxy-services/messenger-notification-microservice.d.ts +128 -8
- package/lib/services/proxy-services/messenger-notification-microservice.js +324 -29
- package/lib/services/proxy-services/messenger-notification-microservice.js.map +1 -1
- package/lib/services/proxy-services/post-microservice.d.ts +207 -12
- package/lib/services/proxy-services/post-microservice.js +623 -54
- package/lib/services/proxy-services/post-microservice.js.map +1 -1
- package/lib/services/proxy-services/post-thread-microservice.d.ts +134 -3
- package/lib/services/proxy-services/post-thread-microservice.js +388 -6
- package/lib/services/proxy-services/post-thread-microservice.js.map +1 -1
- package/lib/services/proxy-services/reaction-microservice.d.ts +161 -3
- package/lib/services/proxy-services/reaction-microservice.js +474 -2
- package/lib/services/proxy-services/reaction-microservice.js.map +1 -1
- package/lib/services/reaction-service.d.ts +124 -4
- package/lib/services/reaction-service.js +415 -3
- package/lib/services/reaction-service.js.map +1 -1
- package/lib/services/redis-cache-manager.d.ts +18 -0
- package/lib/services/redis-cache-manager.js +83 -0
- package/lib/services/redis-cache-manager.js.map +1 -0
- package/lib/services/sandbox-error-service.d.ts +23 -0
- package/lib/services/sandbox-error-service.js +422 -0
- package/lib/services/sandbox-error-service.js.map +1 -0
- package/lib/store/models/account-token-store.d.ts +1 -1
- package/lib/store/models/account-token-store.js.map +1 -1
- package/lib/store/models/ai-fragment.d.ts +4 -0
- package/lib/store/models/ai-fragment.js +125 -0
- package/lib/store/models/ai-fragment.js.map +1 -0
- package/lib/store/models/channel.d.ts +2 -3
- package/lib/store/models/channel.js +185 -71
- package/lib/store/models/channel.js.map +1 -1
- package/lib/store/models/index.d.ts +1 -0
- package/lib/store/models/post-thread.d.ts +3 -3
- package/lib/store/models/post-thread.js +96 -14
- package/lib/store/models/post-thread.js.map +1 -1
- package/lib/store/models/post.d.ts +2 -3
- package/lib/store/models/post.js +143 -23
- package/lib/store/models/post.js.map +1 -1
- package/lib/store/models/reaction.d.ts +2 -3
- package/lib/store/models/reaction.js +67 -8
- package/lib/store/models/reaction.js.map +1 -1
- package/lib/store/repositories/__tests__/__fixtures__/team-repository.d.ts +3 -3
- package/lib/store/repositories/ai-fragment-repository.d.ts +15 -0
- package/lib/store/repositories/ai-fragment-repository.js +69 -0
- package/lib/store/repositories/ai-fragment-repository.js.map +1 -0
- package/lib/store/repositories/channel-repository.d.ts +6 -6
- package/lib/store/repositories/channel-repository.js +5 -2
- package/lib/store/repositories/channel-repository.js.map +1 -1
- package/lib/store/repositories/index.d.ts +1 -0
- package/lib/store/repositories/post-repository.d.ts +6 -6
- package/lib/store/repositories/post-repository.js +5 -2
- package/lib/store/repositories/post-repository.js.map +1 -1
- package/lib/store/repositories/post-thread-repository.d.ts +6 -6
- package/lib/store/repositories/post-thread-repository.js +5 -2
- package/lib/store/repositories/post-thread-repository.js.map +1 -1
- package/lib/store/repositories/reaction-repository.d.ts +6 -6
- package/lib/store/repositories/reaction-repository.js +5 -2
- package/lib/store/repositories/reaction-repository.js.map +1 -1
- package/lib/templates/constants/SERVER_TYPES.ts.template +4 -4
- package/lib/templates/repositories/AiFragmentRepository.ts.template +4 -0
- package/lib/templates/repositories/ChannelRepository.ts.template +3 -3
- package/lib/templates/repositories/PostRepository.ts.template +3 -3
- package/lib/templates/repositories/PostThreadRepository.ts.template +3 -3
- package/lib/templates/repositories/ReactionRepository.ts.template +3 -4
- package/lib/templates/services/AiFragmentService.ts.template +123 -0
- package/lib/templates/services/ChannelService.ts.template +290 -39
- package/lib/templates/services/ExtendedTokenAccountService.ts.template +104 -9
- package/lib/templates/services/MessengerNotificationService.ts.template +94 -19
- package/lib/templates/services/PostService.ts.template +265 -20
- package/lib/templates/services/PostThreadService.ts.template +151 -6
- package/lib/templates/services/ReactionService.ts.template +129 -3
- package/lib/templates/services/RedisCacheManager.ts.template +22 -0
- package/lib/templates/services/SandboxErrorService.ts.template +125 -0
- package/package.json +14 -7
- package/lib/interfaces/context.d.ts +0 -14
- package/lib/store/models/common-options.js +0 -20
- package/lib/store/models/common-options.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var postSchema = "enum PostTypeEnum{\n Simple\n Public\n}\n\ntype Post implements IBaseRepo & IFileRef {\n id: ID!\n author: UserAccount\n channel: Channel\n\n rootId: String\n parentId: String\n originalId: String\n\n \"\"\" Post sent by server e.g. User joined channel \"\"\"\n fromServer: Boolean\n\n message: String\n type: PostTypeEnum\n props: AnyObject\n hashTags: String\n\n filenames: [String]\n fields: [String]\n reactions: [Reaction]\n files(criteria:AnyObject, limit:Int, skip:Int, sort:Sort):FilesInfo!\n editedBy: UserAccount\n deletedBy: UserAccount\n createdAt: DateTime\n updatedAt: DateTime\n deletedAt: DateTime\n\n propsConfiguration: MachineConfiguration\n\n isRead: Boolean\n isPinned: Boolean\n isDelivered: Boolean\n replies(criteria:AnyObject, limit:Int, skip:Int, sort:Sort): Messages\n}\n\ninput ExpoNotificationThread {\n id:String!\n extraParams:AnyObject\n}\n\ninput ExpoNotificationData {\n url: String!\n params: AnyObject!\n title:String\n body:String\n screen:String\n senderId:String\n thread:ExpoNotificationThread\n other: AnyObject\n}\n\ninput MessageInput {\n content: String!\n userRef: [String] #userId\n channelRef: [String] #channelId\n files: [ID!]\n createdBy:ID #Posted by\n notificationParams:ExpoNotificationData\n}\n\ninput MessageIdentifier {\n channelId: String!\n messageId: String!\n}\n\ntype PostsWithCursor {\n cursor: String\n channel: Channel\n posts: [Post]\n}\n\ntype Messages{\n totalCount: Int,\n data:[Post]\n}\n\n\nextend type Query {\n messages(\n channelId: ID,\n # channelName: String,\n # directTo: ID,\n parentId: String,\n limit: Int,\n skip: Int,\n sort:Sort,\n # searchRegex: String,\n # excludeServer: Boolean\n ): Messages! @isAuthenticated @addAccountContext\n\n publicMessages(\n channelId: ID!\n ): Messages! @addAccountContext\n}\n\nextend type Mutation {\n deleteMessage(messageId: MessageIdentifier!): Boolean @isAuthenticated @addAccountContext\n editMessage(messageId: MessageIdentifier!, messageInput: MessageInput!): Post @isAuthenticated @addAccountContext\n sendMessage(channelId: String!, messageInput: MessageInput!,postId: ID): Post @isAuthenticated @addAccountContext\n \"\"\"\n Attach Post File\n \"\"\"\n createMessageFileUploadLink(postId:ID!, filename:String!): String! @isAuthenticated @addAccountContext\n attachUploadedFileToMessage(postId:ID!, file: UploadedFileInput!): FileInfo! @isAuthenticated @addAccountContext\n\n createMessageFilesUploadLink(postId:ID!, filenames:[String!]!): [String!]! @isAuthenticated @addAccountContext\n attachUploadedFilesToMessage(postId:ID!, files: [UploadedFileInput!]!): [FileInfo!]! @isAuthenticated @addAccountContext\n \"\"\"\n Detach Post File\n \"\"\"\n deleteMessageFile(url: String!): Boolean! @isAuthenticated @addAccountContext\n\n readMessage(messageId: MessageIdentifier!): Boolean! @isAuthenticated @addAccountContext\n\n deliverMessage(messageId: MessageIdentifier!): Boolean! @isAuthenticated @addAccountContext\n\n sendPublicMessage(channelId: String!, messageInput: MessageInput!,postId: ID): Post @addAccountContext\n sendExpoNotificationOnPost(postId: ID!, notificationData: ExpoNotificationData!): Boolean!\n TestchatMessage(channelId: String!): AnyObject \n}\n\nextend type Subscription {\n # chatMessageAdded(channelId: String, directTo: String): Post @isAuthenticated @addAccountContext\n chatMessageAdded(channelId: String, directTo: String): Post @addAccountContext\n publicPostAdded(channelId: String!): Post @addAccountContext\n chatMessageTest(channelId: String, directTo: String): AnyObject\n}\n";export{postSchema as default};//# sourceMappingURL=post.graphql.js.map
|
|
1
|
+
var postSchema = "extend enum ConfigCollectionName {\n POST\n}\n\n\"\"\"\nPost type enumeration\n\"\"\"\nenum PostTypeEnum {\n \"\"\"\n Simple post type\n \"\"\"\n Simple\n \n \"\"\"\n Public post type\n \"\"\"\n Public\n\n \"\"\"\n Private post type\n \"\"\"\n Private\n\n \"\"\"\n Service post type\n \"\"\"\n Service\n\n \"\"\"\n Message post type\n \"\"\"\n Message\n}\n\n\"\"\"\nPost: A message or content posted in a channel\n\"\"\"\ntype Post implements IBaseRepo & IFileRef @entity {\n \"\"\"\n Unique identifier for the post\n \"\"\"\n id: ID! @id\n \n \"\"\"\n Post author/creator\n \"\"\"\n author: UserAccount @column(overrideType: \"ObjectId\")\n \n \"\"\"\n Creator of the post\n \"\"\"\n creator: UserAccount @column(overrideType: \"ObjectId\")\n \n \"\"\"\n Channel where post was made\n \"\"\"\n channel: Channel @column(overrideType: \"ObjectId\")\n\n \"\"\"\n Root post ID for threaded conversations\n \"\"\"\n rootId: String @column\n \n \"\"\"\n Parent post ID for replies\n \"\"\"\n parentId: String @column\n \n \"\"\"\n Original post ID for forwarded messages\n \"\"\"\n originalId: String @column\n\n \"\"\"\n Post sent by server e.g. User joined channel\n \"\"\"\n fromServer: Boolean @column\n\n \"\"\"\n Post message content\n \"\"\"\n message: String @column\n \n \"\"\"\n Post type classification\n \"\"\"\n type: PostTypeEnum @column\n \n \"\"\"\n Additional post properties\n \"\"\"\n props: AnyObject @column\n \n \"\"\"\n Post hashtags\n \"\"\"\n hashTags: String @column\n\n \"\"\"\n Attached filenames\n \"\"\"\n filenames: [String] @column\n \n \"\"\"\n Custom fields\n \"\"\"\n fields: [String] @column\n \n \"\"\"\n Post reactions\n \"\"\"\n reactions: [Reaction] @column(overrideType: \"ObjectId[]\")\n \n \"\"\"\n Attached files with pagination\n \"\"\"\n files(criteria:AnyObject, limit:Int, skip:Int, sort:Sort):FilesInfo!\n \n \"\"\"\n User who edited the post\n \"\"\"\n editedBy: UserAccount @column(overrideType: \"ObjectId\")\n \n \"\"\"\n User who deleted the post\n \"\"\"\n deletedBy: UserAccount @column(overrideType: \"ObjectId\")\n \n \"\"\"\n Edit timestamp\n \"\"\"\n editedAt: DateTime @column(overrideType: \"Date\")\n \n \"\"\"\n Creation timestamp\n \"\"\"\n createdAt: DateTime @column(overrideType: \"Date\")\n \n \"\"\"\n Last update timestamp\n \"\"\"\n updatedAt: DateTime @column(overrideType: \"Date\")\n \n \"\"\"\n Deletion timestamp\n \"\"\"\n deletedAt: DateTime @column(overrideType: \"Date\")\n\n \"\"\"\n Props configuration for machine states\n References the configuration model for storing machine-specific settings and state information.\n \"\"\"\n propsConfiguration: MachineConfiguration @column(overrideType: \"ObjectId\")\n\n \"\"\"\n Whether post has been read\n \"\"\"\n isRead: Boolean @column\n \n \"\"\"\n Whether post is pinned\n \"\"\"\n isPinned: Boolean @column\n \n \"\"\"\n Whether post has been delivered\n \"\"\"\n isDelivered: Boolean @column\n \n \"\"\"\n Whether post has reactions\n \"\"\"\n hasReactions: Boolean @column\n \n \"\"\"\n Post replies with pagination\n \"\"\"\n replies(criteria:AnyObject, limit:Int, skip:Int, sort:Sort): Messages\n}\n\n\"\"\"\nExpo notification thread input\n\"\"\"\ninput ExpoNotificationThread {\n \"\"\"\n Thread identifier\n \"\"\"\n id: String!\n \n \"\"\"\n Additional thread parameters\n \"\"\"\n extraParams: AnyObject\n}\n\n\"\"\"\nExpo notification data input\n\"\"\"\ninput ExpoNotificationData {\n \"\"\"\n Notification URL\n \"\"\"\n url: String!\n \n \"\"\"\n URL parameters\n \"\"\"\n params: AnyObject!\n \n \"\"\"\n Notification title\n \"\"\"\n title: String\n \n \"\"\"\n Notification body\n \"\"\"\n body: String\n \n \"\"\"\n Target screen\n \"\"\"\n screen: String\n \n \"\"\"\n Sender identifier\n \"\"\"\n senderId: String\n \n \"\"\"\n Thread information\n \"\"\"\n thread: ExpoNotificationThread\n \n \"\"\"\n Additional notification data\n \"\"\"\n other: AnyObject\n}\n\n\"\"\"\nMessage input for creating posts\n\"\"\"\ninput MessageInput {\n \"\"\"\n Message content\n \"\"\"\n content: String!\n \n \"\"\"\n Referenced user IDs\n \"\"\"\n userRef: [String] # userId\n \n \"\"\"\n Referenced channel IDs\n \"\"\"\n channelRef: [String] # channelId\n \n \"\"\"\n Attached file IDs\n \"\"\"\n files: [ID!]\n \n \"\"\"\n Creator user ID\n \"\"\"\n createdBy: ID # Posted by\n \n \"\"\"\n Notification parameters\n \"\"\"\n notificationParams: ExpoNotificationData\n\n \"\"\"\n Extra properties\n \"\"\"\n extraProps: AnyObject\n}\n\n\"\"\"\nMessage identifier input\n\"\"\"\ninput MessageIdentifier {\n \"\"\"\n Channel identifier\n \"\"\"\n channelId: String!\n \n \"\"\"\n Message identifier\n \"\"\"\n messageId: String!\n}\n\n\"\"\"\nPosts with cursor for pagination\n\"\"\"\ntype PostsWithCursor {\n \"\"\"\n Pagination cursor\n \"\"\"\n cursor: String\n \n \"\"\"\n Associated channel\n \"\"\"\n channel: Channel\n \n \"\"\"\n List of posts\n \"\"\"\n posts: [Post]\n}\n\n\"\"\"\nMessages response with pagination\n\"\"\"\ntype Messages {\n \"\"\"\n Total count of messages\n \"\"\"\n totalCount: Int\n \n \"\"\"\n Message data\n \"\"\"\n data: [Post]\n}\n\n# type AIResponseGenerated {\n# projectId: String\n# sandboxId: String\n# sandboxUrl: String\n# aiResponse: AnyObject\n# taskSummary: AnyObject\n# canvasLayers: AnyObject\n# error: AnyObject\n# modelConfig: AnyObject\n# timestamp: String\n# }\n\ninput ModelConfigurationInput {\n provider: String!\n model: String!\n apiKey: String!\n template: String!\n}\n\ntype AiEventResponse {\n success: Boolean!\n message: String!\n eventId: String\n}\n\ntype SandboxError {\n id: String!\n projectId: String!\n sandboxId: String!\n errorType: String!\n message: String!\n stack: String\n timestamp: String!\n url: String\n fixable: Boolean!\n}\n\n\ntype SandboxErrorPayload {\n projectId: String!\n sandboxId: String!\n error: SandboxError!\n}\n\ntype FileUpdatePayload {\n projectId: String!\n messageId: String!\n filePath: String!\n content: String!\n operation: String!\n timestamp: String!\n syncStatus: String!\n}\n\ntype FileUpdateResponse {\n success: Boolean!\n message: String!\n filePath: String!\n timestamp: String!\n syncStatus: String!\n }\n\nextend type Query {\n messages(\n channelId: ID,\n # channelName: String,\n # directTo: ID,\n parentId: String,\n limit: Int,\n skip: Int,\n sort:Sort,\n # searchRegex: String,\n # excludeServer: Boolean\n props:AnyObject,\n ): Messages! @isAuthenticated @addAccountContext\n\n publicMessages(\n channelId: ID!\n ): Messages! @addAccountContext\n}\n\nextend type Mutation {\n deleteMessage(messageId: MessageIdentifier!): Boolean @isAuthenticated @addAccountContext\n editMessage(messageId: MessageIdentifier!, messageInput: MessageInput!): Post @isAuthenticated @addAccountContext\n sendMessage(channelId: String!, messageInput: MessageInput!,postId: ID): Post @isAuthenticated @addAccountContext\n \"\"\"\n Attach Post File\n \"\"\"\n createMessageFileUploadLink(postId:ID!, filename:String!): String! @isAuthenticated @addAccountContext\n attachUploadedFileToMessage(postId:ID!, file: UploadedFileInput!): FileInfo! @isAuthenticated @addAccountContext\n\n createMessageFilesUploadLink(postId:ID!, filenames:[String!]!): [String!]! @isAuthenticated @addAccountContext\n attachUploadedFilesToMessage(postId:ID!, files: [UploadedFileInput!]!): [FileInfo!]! @isAuthenticated @addAccountContext\n \"\"\"\n Detach Post File\n \"\"\"\n deleteMessageFile(url: String!): Boolean! @isAuthenticated @addAccountContext\n\n readMessage(messageId: MessageIdentifier!): Boolean! @isAuthenticated @addAccountContext\n\n deliverMessage(messageId: MessageIdentifier!): Boolean! @isAuthenticated @addAccountContext\n\n sendPublicMessage(channelId: String!, messageInput: MessageInput!,postId: ID): Post @addAccountContext\n sendExpoNotificationOnPost(postId: ID!, notificationData: ExpoNotificationData!): Boolean!\n TestchatMessage(channelId: String!): AnyObject \n generateAiCode(messageId: String!, modelConfig: ModelConfigurationInput): AiEventResponse! @addAccountContext\n recreateSandbox(messageId: String!,projectId: String!): AiEventResponse! @addAccountContext\n # File synchronization mutations\n updateSandboxFile(projectId: String!, messageId: String!, filePath: String!, content: String!): FileUpdateResponse! @addAccountContext\n regenerateAiCode(messageId: String!, modelConfig: ModelConfigurationInput): AiEventResponse! @addAccountContext\n #startVSCodeSync(projectId: String!, messageId: String!): FileUpdateResponse! @addAccountContext\n}\n\nextend type Subscription {\n # chatMessageAdded(channelId: String, directTo: String): Post @isAuthenticated @addAccountContext\n chatMessageAdded(channelId: String, directTo: String): Post @addAccountContext\n # aiResponseGenerated(channelId: String): AIResponseGenerated @addAccountContext\n publicPostAdded(channelId: String!): Post @addAccountContext\n chatMessageTest(channelId: String, directTo: String): AnyObject\n sandboxError(projectId: String!): SandboxErrorPayload!\n fileUpdated(projectId: String!): FileUpdatePayload!\n}\n";export{postSchema as default};//# sourceMappingURL=post.graphql.js.map
|
|
@@ -1,20 +1,78 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"""
|
|
2
|
+
Reaction: A user reaction to a post (emoji, like, etc.)
|
|
3
|
+
"""
|
|
4
|
+
type Reaction @entity {
|
|
5
|
+
"""
|
|
6
|
+
Unique identifier for the reaction
|
|
7
|
+
"""
|
|
8
|
+
id: ID! @id
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Reaction content (emoji, text, etc.)
|
|
12
|
+
"""
|
|
13
|
+
reaction: String! @column
|
|
14
|
+
|
|
15
|
+
"""
|
|
16
|
+
User who made the reaction
|
|
17
|
+
"""
|
|
18
|
+
user: UserAccount! @column(overrideType: "ObjectId")
|
|
19
|
+
|
|
20
|
+
"""
|
|
21
|
+
Post that was reacted to
|
|
22
|
+
"""
|
|
23
|
+
post: Post! @column(overrideType: "ObjectId")
|
|
24
|
+
|
|
25
|
+
"""
|
|
26
|
+
Creation timestamp
|
|
27
|
+
"""
|
|
28
|
+
createdAt: DateTime @column(overrideType: "Date")
|
|
29
|
+
|
|
30
|
+
"""
|
|
31
|
+
Last update timestamp
|
|
32
|
+
"""
|
|
33
|
+
updatedAt: DateTime @column(overrideType: "Date")
|
|
34
|
+
|
|
35
|
+
"""
|
|
36
|
+
Deletion timestamp
|
|
37
|
+
"""
|
|
38
|
+
deletedAt: DateTime @column(overrideType: "Date")
|
|
6
39
|
}
|
|
7
40
|
|
|
8
|
-
|
|
9
|
-
|
|
41
|
+
"""
|
|
42
|
+
Reaction input for creating reactions
|
|
43
|
+
"""
|
|
44
|
+
input ReactionInput {
|
|
45
|
+
"""
|
|
46
|
+
Reaction content
|
|
47
|
+
"""
|
|
48
|
+
reaction: String!
|
|
49
|
+
|
|
50
|
+
"""
|
|
51
|
+
Post identifier to react to
|
|
52
|
+
"""
|
|
10
53
|
post: String!
|
|
11
54
|
}
|
|
12
55
|
|
|
13
|
-
extend type Query{
|
|
14
|
-
|
|
56
|
+
extend type Query {
|
|
57
|
+
"""
|
|
58
|
+
Get all reactions for a specific post
|
|
59
|
+
"""
|
|
60
|
+
getPostReactions(message: ID!): [Reaction] @isAuthenticated
|
|
15
61
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
62
|
+
|
|
63
|
+
extend type Mutation {
|
|
64
|
+
"""
|
|
65
|
+
Add a reaction to a message
|
|
66
|
+
"""
|
|
67
|
+
addReactionToMessage(reaction: ReactionInput): Reaction @isAuthenticated @addAccountContext
|
|
68
|
+
|
|
69
|
+
"""
|
|
70
|
+
Update an existing reaction
|
|
71
|
+
"""
|
|
72
|
+
updateReactionToMessage(id: ID!, reaction: String!): Reaction @isAuthenticated @addAccountContext
|
|
73
|
+
|
|
74
|
+
"""
|
|
75
|
+
Remove a reaction from a message
|
|
76
|
+
"""
|
|
77
|
+
removeReactionFromMessage(id: ID!): Boolean @isAuthenticated @addAccountContext
|
|
20
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var reactionSchema = "
|
|
1
|
+
var reactionSchema = "\"\"\"\nReaction: A user reaction to a post (emoji, like, etc.)\n\"\"\"\ntype Reaction @entity {\n \"\"\"\n Unique identifier for the reaction\n \"\"\"\n id: ID! @id\n \n \"\"\"\n Reaction content (emoji, text, etc.)\n \"\"\"\n reaction: String! @column\n \n \"\"\"\n User who made the reaction\n \"\"\"\n user: UserAccount! @column(overrideType: \"ObjectId\")\n \n \"\"\"\n Post that was reacted to\n \"\"\"\n post: Post! @column(overrideType: \"ObjectId\")\n \n \"\"\"\n Creation timestamp\n \"\"\"\n createdAt: DateTime @column(overrideType: \"Date\")\n \n \"\"\"\n Last update timestamp\n \"\"\"\n updatedAt: DateTime @column(overrideType: \"Date\")\n \n \"\"\"\n Deletion timestamp\n \"\"\"\n deletedAt: DateTime @column(overrideType: \"Date\")\n}\n\n\"\"\"\nReaction input for creating reactions\n\"\"\"\ninput ReactionInput {\n \"\"\"\n Reaction content\n \"\"\"\n reaction: String!\n \n \"\"\"\n Post identifier to react to\n \"\"\"\n post: String!\n}\n\nextend type Query {\n \"\"\"\n Get all reactions for a specific post\n \"\"\"\n getPostReactions(message: ID!): [Reaction] @isAuthenticated\n}\n\nextend type Mutation {\n \"\"\"\n Add a reaction to a message\n \"\"\"\n addReactionToMessage(reaction: ReactionInput): Reaction @isAuthenticated @addAccountContext\n \n \"\"\"\n Update an existing reaction\n \"\"\"\n updateReactionToMessage(id: ID!, reaction: String!): Reaction @isAuthenticated @addAccountContext\n \n \"\"\"\n Remove a reaction from a message\n \"\"\"\n removeReactionFromMessage(id: ID!): Boolean @isAuthenticated @addAccountContext\n}\n";export{reactionSchema as default};//# sourceMappingURL=reaction.graphql.js.map
|
|
@@ -6,6 +6,7 @@ extend enum MoleculerTopics {
|
|
|
6
6
|
ReactionService
|
|
7
7
|
MessengerNotificationService
|
|
8
8
|
ExtendedTokenAccountService
|
|
9
|
+
AiFragmentService
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
enum ChannelServiceCommands {
|
|
@@ -41,6 +42,7 @@ enum ChannelServiceCommands {
|
|
|
41
42
|
deleteChannel
|
|
42
43
|
isMember
|
|
43
44
|
viewChannel
|
|
45
|
+
createChannelWithProjectId
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
enum PostServiceCommands {
|
|
@@ -53,8 +55,27 @@ enum PostServiceCommands {
|
|
|
53
55
|
deliverMessage
|
|
54
56
|
createWithoutSubscription
|
|
55
57
|
createPostWithPostThread
|
|
58
|
+
getLastMessage
|
|
59
|
+
getPreviousMessagesByProjectId
|
|
60
|
+
saveCodeAgentResult
|
|
61
|
+
updateSandboxFile
|
|
62
|
+
recreateSandbox
|
|
56
63
|
}
|
|
57
64
|
|
|
58
65
|
enum PostThreadServiceCommands {
|
|
59
66
|
getPostThread
|
|
67
|
+
getPostThreadCount
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
enum AiFragmentServiceCommands {
|
|
71
|
+
createFragment
|
|
72
|
+
getFragmentByMessageId
|
|
73
|
+
getFragmentsByUser
|
|
74
|
+
updateFragmentFiles
|
|
75
|
+
deleteFragment
|
|
76
|
+
deleteFragmentByMessageId
|
|
77
|
+
getFragmentById
|
|
78
|
+
updateSandboxUrl
|
|
79
|
+
updateFileSync
|
|
80
|
+
updateFilesAndSync
|
|
60
81
|
}
|
|
@@ -1,23 +1,86 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Messenger user status enumeration
|
|
3
|
+
"""
|
|
1
4
|
enum MessengerUserStatus {
|
|
5
|
+
"""
|
|
6
|
+
User is online and available
|
|
7
|
+
"""
|
|
2
8
|
ONLINE
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
User is away
|
|
12
|
+
"""
|
|
3
13
|
AWAY
|
|
14
|
+
|
|
15
|
+
"""
|
|
16
|
+
User is busy
|
|
17
|
+
"""
|
|
4
18
|
BUSY
|
|
19
|
+
|
|
20
|
+
"""
|
|
21
|
+
User is invisible/offline
|
|
22
|
+
"""
|
|
5
23
|
INVISIBLE
|
|
6
24
|
}
|
|
7
25
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
26
|
+
"""
|
|
27
|
+
Messenger user: A user within the messenger system
|
|
28
|
+
"""
|
|
29
|
+
type MessengerUser implements IUser @entity {
|
|
30
|
+
"""
|
|
31
|
+
Unique identifier for the user
|
|
32
|
+
"""
|
|
33
|
+
id: ID! @id
|
|
34
|
+
|
|
35
|
+
"""
|
|
36
|
+
User's username
|
|
37
|
+
"""
|
|
38
|
+
username: String @column
|
|
39
|
+
|
|
40
|
+
"""
|
|
41
|
+
User's email address
|
|
42
|
+
"""
|
|
43
|
+
email: String @column
|
|
44
|
+
|
|
45
|
+
"""
|
|
46
|
+
User's current status
|
|
47
|
+
"""
|
|
48
|
+
status: MessengerUserStatus @column
|
|
49
|
+
|
|
50
|
+
"""
|
|
51
|
+
User's avatar URL
|
|
52
|
+
"""
|
|
53
|
+
avatar: String @column
|
|
54
|
+
|
|
55
|
+
"""
|
|
56
|
+
User's display name
|
|
57
|
+
"""
|
|
58
|
+
name: String @column
|
|
59
|
+
|
|
60
|
+
"""
|
|
61
|
+
Last login timestamp
|
|
62
|
+
"""
|
|
63
|
+
lastLogin: String @column(overrideType: "Date")
|
|
64
|
+
|
|
65
|
+
"""
|
|
66
|
+
Channels user is a member of
|
|
67
|
+
"""
|
|
68
|
+
channels: [Channel] @column(overrideType: "ObjectId[]")
|
|
69
|
+
|
|
70
|
+
"""
|
|
71
|
+
Direct message channels
|
|
72
|
+
"""
|
|
73
|
+
directMessages: [Channel] @column(overrideType: "ObjectId[]")
|
|
18
74
|
}
|
|
19
75
|
|
|
20
|
-
extend type Query{
|
|
21
|
-
|
|
22
|
-
|
|
76
|
+
extend type Query {
|
|
77
|
+
"""
|
|
78
|
+
Get users available for chat
|
|
79
|
+
"""
|
|
80
|
+
usersToChat(auth0Id: String!): [UserAccount] @isAuthenticated @addAccountContext
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
Get current user information
|
|
84
|
+
"""
|
|
85
|
+
currentUser(auth0Id: String!): UserAccount @isAuthenticated @addAccountContext
|
|
23
86
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var usersSchema = "
|
|
1
|
+
var usersSchema = "\"\"\"\nMessenger user status enumeration\n\"\"\"\nenum MessengerUserStatus {\n \"\"\"\n User is online and available\n \"\"\"\n ONLINE\n \n \"\"\"\n User is away\n \"\"\"\n AWAY\n \n \"\"\"\n User is busy\n \"\"\"\n BUSY\n \n \"\"\"\n User is invisible/offline\n \"\"\"\n INVISIBLE\n}\n\n\"\"\"\nMessenger user: A user within the messenger system\n\"\"\"\ntype MessengerUser implements IUser @entity {\n \"\"\"\n Unique identifier for the user\n \"\"\"\n id: ID! @id\n \n \"\"\"\n User's username\n \"\"\"\n username: String @column\n \n \"\"\"\n User's email address\n \"\"\"\n email: String @column\n \n \"\"\"\n User's current status\n \"\"\"\n status: MessengerUserStatus @column\n \n \"\"\"\n User's avatar URL\n \"\"\"\n avatar: String @column\n \n \"\"\"\n User's display name\n \"\"\"\n name: String @column\n \n \"\"\"\n Last login timestamp\n \"\"\"\n lastLogin: String @column(overrideType: \"Date\")\n \n \"\"\"\n Channels user is a member of\n \"\"\"\n channels: [Channel] @column(overrideType: \"ObjectId[]\")\n \n \"\"\"\n Direct message channels\n \"\"\"\n directMessages: [Channel] @column(overrideType: \"ObjectId[]\")\n}\n\nextend type Query {\n \"\"\"\n Get users available for chat\n \"\"\"\n usersToChat(auth0Id: String!): [UserAccount] @isAuthenticated @addAccountContext\n \n \"\"\"\n Get current user information\n \"\"\"\n currentUser(auth0Id: String!): UserAccount @isAuthenticated @addAccountContext\n}\n";export{usersSchema as default};//# sourceMappingURL=users.graphql.js.map
|
package/lib/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {Feature}from'@common-stack/server-core';import MessengerModule from'./module.js';export{DEFAULT_SORTING,PAGINATION_OPTIONS}from'./constants/query.constants.js';export{DEFAULT_NOTIFY_PROPS}from'./constants/default-notify-props.js';export{PostTypes}from'./preferences/settings/post-settings.js';import'./preferences/permissions/inbox-permission-contribution.js';import'./preferences/permissions/inbox-roles-permission-overwrite.js';import'./migrations/message-notification-template-migration.js';export{MailTemplateMigration}from'./migrations/mail-template-migration.js';/* eslint-disable import/no-extraneous-dependencies */
|
|
1
|
+
import {Feature}from'@common-stack/server-core';import MessengerModule from'./module.js';export{DEFAULT_SORTING,PAGINATION_OPTIONS}from'./constants/query.constants.js';export{DEFAULT_NOTIFY_PROPS}from'./constants/default-notify-props.js';export{PostTypes}from'./preferences/settings/post-settings.js';import'./preferences/permissions/inbox-permission-contribution.js';import'./preferences/permissions/inbox-roles-permission-overwrite.js';import'./migrations/message-notification-template-migration.js';export{MailTemplateMigration}from'./migrations/mail-template-migration.js';import'./migrations/dbMigrations/AddPostsConfigurationsMigration.js';/* eslint-disable import/no-extraneous-dependencies */
|
|
2
2
|
var index = new Feature(MessengerModule);export{index as default};//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":"soBAAA;AAIA,YAAe,IAAI,OAAO,CAAC,eAAe,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Container } from 'inversify';
|
|
2
|
+
import type { Inngest } from 'inngest';
|
|
3
|
+
export declare const inngestFunctionsFactory: ({ inngest, container }: {
|
|
4
|
+
container: Container;
|
|
5
|
+
inngest: Inngest;
|
|
6
|
+
}) => import("inngest").InngestFunction<Omit<import("inngest").InngestFunction.Options<Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
7
|
+
event: string;
|
|
8
|
+
}], import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
9
|
+
error: Error;
|
|
10
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
11
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
12
|
+
}>>, "triggers">, ({ event, step }: import("inngest").Context<Inngest<import("inngest").ClientOptions>, string, {
|
|
13
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
14
|
+
}>) => Promise<any>, import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
15
|
+
error: Error;
|
|
16
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
17
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
18
|
+
}>, Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
19
|
+
event: string;
|
|
20
|
+
}]>[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import {createChannelWithProjectId,sendMessageHandler,generateAIResponseWithSandbox,codeAgentFunction,generateAiCodeFunction,recreateSandboxUrlFunction,regenerateAiCodeFunction}from'./functions.js';const inngestFunctionsFactory = ({
|
|
2
|
+
inngest,
|
|
3
|
+
container
|
|
4
|
+
}) => [createChannelWithProjectId(inngest, container), sendMessageHandler(inngest, container), generateAIResponseWithSandbox(inngest, container), codeAgentFunction(inngest, container), generateAiCodeFunction(inngest, container), recreateSandboxUrlFunction(inngest, container), regenerateAiCodeFunction(inngest, container)];export{inngestFunctionsFactory};//# sourceMappingURL=factory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"factory.js","sources":["../../src/inngest/factory.ts"],"sourcesContent":[null],"names":[],"mappings":"sMAaO,MAAM,uBAAuB,GAAG,CAAC;AACpC,EAAA,OAAA;AACA,EAAA;AACA,CAAA,KAAA,CAAA,0BAA6B,CAAC,OAAO,EAAE,SAAS,CAAC,EAAA,kBAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,6BAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,iBAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,sBAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,0BAAA,CAAA,OAAA,EAAA,SAAA,CAAA,EAAA,wBAAA,CAAA,OAAA,EAAA,SAAA,CAAA"}
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import type { Inngest } from 'inngest';
|
|
2
|
+
import { Container } from 'inversify';
|
|
3
|
+
export declare const createChannelWithProjectId: (inngest: Inngest, container: Container) => import("inngest").InngestFunction<Omit<import("inngest").InngestFunction.Options<Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
4
|
+
event: string;
|
|
5
|
+
}], import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
6
|
+
error: Error;
|
|
7
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
8
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
9
|
+
}>>, "triggers">, ({ event, step }: import("inngest").Context<Inngest<import("inngest").ClientOptions>, string, {
|
|
10
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
11
|
+
}>) => Promise<any>, import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
12
|
+
error: Error;
|
|
13
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
14
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
15
|
+
}>, Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
16
|
+
event: string;
|
|
17
|
+
}]>;
|
|
18
|
+
export declare const sendMessageHandler: (inngest: Inngest, container: Container) => import("inngest").InngestFunction<Omit<import("inngest").InngestFunction.Options<Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
19
|
+
event: string;
|
|
20
|
+
}], import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
21
|
+
error: Error;
|
|
22
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
23
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
24
|
+
}>>, "triggers">, ({ event, step }: import("inngest").Context<Inngest<import("inngest").ClientOptions>, string, {
|
|
25
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
26
|
+
}>) => Promise<{
|
|
27
|
+
id?: string;
|
|
28
|
+
type?: import("common").Maybe<string>;
|
|
29
|
+
creator?: string;
|
|
30
|
+
createdAt?: string;
|
|
31
|
+
deletedAt?: string;
|
|
32
|
+
updatedAt?: string;
|
|
33
|
+
parentId?: import("common").Maybe<string>;
|
|
34
|
+
props?: import("common").Maybe<any>;
|
|
35
|
+
filenames?: string[];
|
|
36
|
+
message?: import("common").Maybe<string>;
|
|
37
|
+
_id?: string;
|
|
38
|
+
channel?: string;
|
|
39
|
+
author?: string;
|
|
40
|
+
deletedBy?: string;
|
|
41
|
+
editedAt?: string;
|
|
42
|
+
editedBy?: string;
|
|
43
|
+
fields?: string[];
|
|
44
|
+
fromServer?: import("common").Maybe<boolean>;
|
|
45
|
+
hasReactions?: import("common").Maybe<boolean>;
|
|
46
|
+
hashTags?: import("common").Maybe<string>;
|
|
47
|
+
isDelivered?: import("common").Maybe<boolean>;
|
|
48
|
+
isPinned?: import("common").Maybe<boolean>;
|
|
49
|
+
isRead?: import("common").Maybe<boolean>;
|
|
50
|
+
originalId?: import("common").Maybe<string>;
|
|
51
|
+
propsConfiguration?: string;
|
|
52
|
+
reactions?: string[];
|
|
53
|
+
rootId?: import("common").Maybe<string>;
|
|
54
|
+
}>, import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
55
|
+
error: Error;
|
|
56
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
57
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
58
|
+
}>, Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
59
|
+
event: string;
|
|
60
|
+
}]>;
|
|
61
|
+
export declare const codeAgentFunction: (inngest: Inngest, container: Container) => import("inngest").InngestFunction<Omit<import("inngest").InngestFunction.Options<Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
62
|
+
event: string;
|
|
63
|
+
}], import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
64
|
+
error: Error;
|
|
65
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
66
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
67
|
+
}>>, "triggers">, ({ event, step }: import("inngest").Context<Inngest<import("inngest").ClientOptions>, string, {
|
|
68
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
69
|
+
}>) => Promise<{
|
|
70
|
+
projectId: any;
|
|
71
|
+
sandboxId: string;
|
|
72
|
+
sandboxUrl: string;
|
|
73
|
+
url: string;
|
|
74
|
+
title: string;
|
|
75
|
+
files: any;
|
|
76
|
+
summary: any;
|
|
77
|
+
isError: boolean;
|
|
78
|
+
canvasLayers: any;
|
|
79
|
+
template: string;
|
|
80
|
+
timestamp: string;
|
|
81
|
+
}>, import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
82
|
+
error: Error;
|
|
83
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
84
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
85
|
+
}>, Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
86
|
+
event: string;
|
|
87
|
+
}]>;
|
|
88
|
+
export declare const generateAIResponseWithSandbox: (inngest: Inngest, container: Container) => import("inngest").InngestFunction<Omit<import("inngest").InngestFunction.Options<Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
89
|
+
event: string;
|
|
90
|
+
}], import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
91
|
+
error: Error;
|
|
92
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
93
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
94
|
+
}>>, "triggers">, ({ event, step }: import("inngest").Context<Inngest<import("inngest").ClientOptions>, string, {
|
|
95
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
96
|
+
}>) => Promise<{
|
|
97
|
+
projectId: any;
|
|
98
|
+
sandboxId: string;
|
|
99
|
+
sandboxUrl: string;
|
|
100
|
+
url: string;
|
|
101
|
+
aiResponse: any;
|
|
102
|
+
taskSummary: any;
|
|
103
|
+
canvasLayers: any;
|
|
104
|
+
error: any;
|
|
105
|
+
template: string;
|
|
106
|
+
timestamp: string;
|
|
107
|
+
}>, import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
108
|
+
error: Error;
|
|
109
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
110
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
111
|
+
}>, Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
112
|
+
event: string;
|
|
113
|
+
}]>;
|
|
114
|
+
export declare const generateAiCodeFunction: (inngest: Inngest, container: Container) => import("inngest").InngestFunction<Omit<import("inngest").InngestFunction.Options<Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
115
|
+
event: string;
|
|
116
|
+
}], import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
117
|
+
error: Error;
|
|
118
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
119
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
120
|
+
}>>, "triggers">, ({ event, step }: import("inngest").Context<Inngest<import("inngest").ClientOptions>, string, {
|
|
121
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
122
|
+
}>) => Promise<{
|
|
123
|
+
id?: string;
|
|
124
|
+
type?: import("common").Maybe<string>;
|
|
125
|
+
creator?: string;
|
|
126
|
+
createdAt?: string;
|
|
127
|
+
deletedAt?: string;
|
|
128
|
+
updatedAt?: string;
|
|
129
|
+
parentId?: import("common").Maybe<string>;
|
|
130
|
+
props?: import("common").Maybe<any>;
|
|
131
|
+
filenames?: string[];
|
|
132
|
+
message?: import("common").Maybe<string>;
|
|
133
|
+
_id?: string;
|
|
134
|
+
channel?: string;
|
|
135
|
+
author?: string;
|
|
136
|
+
deletedBy?: string;
|
|
137
|
+
editedAt?: string;
|
|
138
|
+
editedBy?: string;
|
|
139
|
+
fields?: string[];
|
|
140
|
+
fromServer?: import("common").Maybe<boolean>;
|
|
141
|
+
hasReactions?: import("common").Maybe<boolean>;
|
|
142
|
+
hashTags?: import("common").Maybe<string>;
|
|
143
|
+
isDelivered?: import("common").Maybe<boolean>;
|
|
144
|
+
isPinned?: import("common").Maybe<boolean>;
|
|
145
|
+
isRead?: import("common").Maybe<boolean>;
|
|
146
|
+
originalId?: import("common").Maybe<string>;
|
|
147
|
+
propsConfiguration?: string;
|
|
148
|
+
reactions?: string[];
|
|
149
|
+
rootId?: import("common").Maybe<string>;
|
|
150
|
+
}>, import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
151
|
+
error: Error;
|
|
152
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
153
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
154
|
+
}>, Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
155
|
+
event: string;
|
|
156
|
+
}]>;
|
|
157
|
+
export declare const recreateSandboxUrlFunction: (inngest: Inngest, container: Container) => import("inngest").InngestFunction<Omit<import("inngest").InngestFunction.Options<Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
158
|
+
event: string;
|
|
159
|
+
}], import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
160
|
+
error: Error;
|
|
161
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
162
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
163
|
+
}>>, "triggers">, ({ event, step }: import("inngest").Context<Inngest<import("inngest").ClientOptions>, string, {
|
|
164
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
165
|
+
}>) => Promise<{
|
|
166
|
+
success: boolean;
|
|
167
|
+
projectId: any;
|
|
168
|
+
messageId: any;
|
|
169
|
+
newSandboxUrl: string;
|
|
170
|
+
newSandboxId: string;
|
|
171
|
+
}>, import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
172
|
+
error: Error;
|
|
173
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
174
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
175
|
+
}>, Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
176
|
+
event: string;
|
|
177
|
+
}]>;
|
|
178
|
+
export declare const regenerateAiCodeFunction: (inngest: Inngest, container: Container) => import("inngest").InngestFunction<Omit<import("inngest").InngestFunction.Options<Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
179
|
+
event: string;
|
|
180
|
+
}], import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
181
|
+
error: Error;
|
|
182
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
183
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
184
|
+
}>>, "triggers">, ({ event, step }: import("inngest").Context<Inngest<import("inngest").ClientOptions>, string, {
|
|
185
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
186
|
+
}>) => Promise<{
|
|
187
|
+
id?: string;
|
|
188
|
+
type?: import("common").Maybe<string>;
|
|
189
|
+
creator?: string;
|
|
190
|
+
createdAt?: string;
|
|
191
|
+
deletedAt?: string;
|
|
192
|
+
updatedAt?: string;
|
|
193
|
+
parentId?: import("common").Maybe<string>;
|
|
194
|
+
props?: import("common").Maybe<any>;
|
|
195
|
+
filenames?: string[];
|
|
196
|
+
message?: import("common").Maybe<string>;
|
|
197
|
+
_id?: string;
|
|
198
|
+
channel?: string;
|
|
199
|
+
author?: string;
|
|
200
|
+
deletedBy?: string;
|
|
201
|
+
editedAt?: string;
|
|
202
|
+
editedBy?: string;
|
|
203
|
+
fields?: string[];
|
|
204
|
+
fromServer?: import("common").Maybe<boolean>;
|
|
205
|
+
hasReactions?: import("common").Maybe<boolean>;
|
|
206
|
+
hashTags?: import("common").Maybe<string>;
|
|
207
|
+
isDelivered?: import("common").Maybe<boolean>;
|
|
208
|
+
isPinned?: import("common").Maybe<boolean>;
|
|
209
|
+
isRead?: import("common").Maybe<boolean>;
|
|
210
|
+
originalId?: import("common").Maybe<string>;
|
|
211
|
+
propsConfiguration?: string;
|
|
212
|
+
reactions?: string[];
|
|
213
|
+
rootId?: import("common").Maybe<string>;
|
|
214
|
+
}>, import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
215
|
+
error: Error;
|
|
216
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
217
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
218
|
+
}>, Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
219
|
+
event: string;
|
|
220
|
+
}]>;
|
|
221
|
+
export declare const inngestFunctions: ((inngest: Inngest, container: Container) => import("inngest").InngestFunction<Omit<import("inngest").InngestFunction.Options<Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
222
|
+
event: string;
|
|
223
|
+
}], import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
224
|
+
error: Error;
|
|
225
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
226
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
227
|
+
}>>, "triggers">, ({ event, step }: import("inngest").Context<Inngest<import("inngest").ClientOptions>, string, {
|
|
228
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
229
|
+
}>) => Promise<any>, import("inngest").Handler<Inngest<import("inngest").ClientOptions>, string, {
|
|
230
|
+
error: Error;
|
|
231
|
+
logger: import("inngest/middleware/logger").Logger;
|
|
232
|
+
event: import("inngest").FailureEventPayload<import("inngest").EventPayload<any>>;
|
|
233
|
+
}>, Inngest<import("inngest").ClientOptions>, import("inngest").InngestMiddleware.Stack, [{
|
|
234
|
+
event: string;
|
|
235
|
+
}]>)[];
|