@daf-sdk/runtime 1.0.0

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.
@@ -0,0 +1,11 @@
1
+ // src/runtime/encryption.ts
2
+ function decrypt(value) {
3
+ return value ?? null;
4
+ }
5
+ function encrypt(value) {
6
+ return value;
7
+ }
8
+ export {
9
+ decrypt,
10
+ encrypt
11
+ };
@@ -0,0 +1,5 @@
1
+ export { ACTION_TYPES, ActionVariant, AddDocumentParams, AddFolderParams, CreateDatabaseParams, DAFAction, DAFDocument, DAFDocumentBuilder, DAFEditorAction, DAFProcess, DAFResource, DAFStep, DAF_VERSION, DEFAULT_SCRAPE_TIMEOUT, DEFAULT_SEARCH_LIMIT, DeleteDatabaseParams, DirectiveParams, DuplicateDatabaseParams, DuplicateDocumentParams, EDITOR_ACTION_TYPES, EditorActionBaseParams, EditorActionVariant, FormatDocumentParams, LOOP_TYPES, LoopType, MAX_PROCESS_DEPTH, NewsSearchParams, PROCESS_TYPES, PreviewSearchParams, ProcessBuilder, ProcessType, RESOURCE_TYPES, ReadDatabaseParams, ReadDocumentParams, ReadFolderParams, RemoveDocumentParams, RemoveFolderParams, RenameDocumentParams, RenameFolderParams, ResourceType, STEP_TYPES, SUPPORTED_VERSIONS, ScrapeParams, SearchParams, SendEmailParams, StepType, TavilySearchParams, TranslateParams, UpdateDatabaseParams, ValidationError, ValidationResult, WRITE_OPERATIONS, WriteDatabaseParams, WriteDocumentParams, WriteOperation, actionSchema, addDocumentAction, addFolderAction, completeSentenceAction, completionWithoutPromptStep, conditionalLoopStep, createDatabaseAction, dafDocumentSchema, deleteDatabaseAction, directiveAction, directiveParamsSchema, duplicateDatabaseAction, duplicateDocumentAction, editorActionBaseParamsSchema, editorActionSchema, extendTextAction, fixSpellingGrammarAction, fixedLoopStep, formatDocumentAction, formatTextAction, googleDocResource, googleDriveFolderResource, isValidAction, isValidDAFDocument, isValidEditorAction, isValidProcess, isValidResource, isValidStep, newsSearchAction, newsSearchParamsSchema, notionPageResource, previewSearchAction, previewSearchParamsSchema, processSchema, processStep, promptStep, readDatabaseAction, readDocumentAction, readDocumentParamsSchema, readFolderAction, reduceTextAction, removeDocumentAction, removeFolderAction, renameDocumentAction, renameFolderAction, resourceSchema, rewriteAction, scrapeAction, scrapeParamsSchema, searchAction, searchParamsSchema, sendEmailAction, sendEmailParamsSchema, simplifyAction, skipCompletionStep, stepSchema, tavilySearchAction, tavilySearchParamsSchema, translateAction, translateParamsSchema, updateDatabaseAction, userFeedbackStep, validateAction, validateDAFDocument, validateEditorAction, validateProcess, validateResource, validateStep, writeDatabaseAction, writeDocumentAction, writeDocumentParamsSchema } from './protocol/index.mjs';
2
+ export { Action, ActionConfig, ActionResult, AddDocumentAction, AddFolderAction, AskUserInputAction, CrawlAction, CreateDatabaseAction, DAFEmailIntegration, DAFGoogleIntegration, DAFNotionIntegration, DAFProcessRecord, DAFResourceRecord, DAFRunRecord, DAFStorageAdapter, DAFUserRecord, DbDeleteAction, DbFindAction, DbInsertAction, DbUpdateAction, DeleteDatabaseAction, DuplicateDatabaseAction, DuplicateDocumentAction, EditorTransformAction, ExecutionContext, FirecrawlActionType, FormatDocumentAction, GENERIC_VARIABLES, GenericVariable, JsonFormatOptions, LocationSettings, MODEL_PRICING, NewsSearchAction, QuickSearchAction, ReadDatabaseAction, ReadDocumentAction, ReadFolderAction, RemoveDocumentAction, RemoveFolderAction, RenameDocumentAction, RenameFolderAction, ScrapeAction, ScrapeFormat, ScreenshotFormatOptions, SearchAction, SendEmailAction, TIER_TOKEN_LIMITS, TavilySearchAction, TokenUsage, UpdateDatabaseAction, UserProviderSettings, WebhookConfig, WriteDatabaseAction, WriteDocumentAction, appendGoogleDoc, appendNotionPage, buildTokenUsage, calculateTokenCost, canUserAffordApiCall, checkAndUpdateCostLimit, createGoogleDocInFolder, createGoogleDriveFolder, createNotionDatabase, createNotionDatabasePage, createNotionSubpage, deleteGoogleDoc, deleteGoogleDriveFolder, deleteNotionDatabase, deleteNotionPage, duplicateGoogleDoc, duplicateNotionDatabase, duplicateNotionPage, exchangeGoogleCode, exchangeNotionCode, executeAction, executeChatTurn, executeProcess, executeProcessInRun, extractActionsFromMessage, extractDatabaseIdFromUrl, extractDocIdFromUrl, extractFolderIdFromUrl, extractPageIdFromUrl, formatActionResult, formatGoogleDoc, getDescAllActions, getDescChatActions, getDescEditorActions, getGenericVariable, getGenericVariableNames, getGenericVariables, getGoogleAccessToken, getGoogleAuthUrl, getGoogleOAuth2Client, getModelProvider, getNotionAccessToken, getNotionAuthUrl, getNotionDatabase, getNotionPageTitle, getProviderFromModel, isGenericVariable, listGoogleDriveFolderContents, listNotionPageChildren, mergeVariables, processMessageActions, queryNotionDatabase, readGoogleDoc, readNotionDatabase, readNotionPage, refreshGoogleToken, renameGoogleDoc, renameGoogleDriveFolder, renameNotionPage, resumeProcessExecution, selectiveUpdateGoogleDoc, selectiveUpdateNotionPage, substituteVariables, updateNotionDatabase, updateNotionDatabasePage, writeGoogleDoc, writeNotionPage } from './runtime/index.mjs';
3
+ import 'zod';
4
+ import '@ai-sdk/provider';
5
+ import 'google-auth-library';
@@ -0,0 +1,5 @@
1
+ export { ACTION_TYPES, ActionVariant, AddDocumentParams, AddFolderParams, CreateDatabaseParams, DAFAction, DAFDocument, DAFDocumentBuilder, DAFEditorAction, DAFProcess, DAFResource, DAFStep, DAF_VERSION, DEFAULT_SCRAPE_TIMEOUT, DEFAULT_SEARCH_LIMIT, DeleteDatabaseParams, DirectiveParams, DuplicateDatabaseParams, DuplicateDocumentParams, EDITOR_ACTION_TYPES, EditorActionBaseParams, EditorActionVariant, FormatDocumentParams, LOOP_TYPES, LoopType, MAX_PROCESS_DEPTH, NewsSearchParams, PROCESS_TYPES, PreviewSearchParams, ProcessBuilder, ProcessType, RESOURCE_TYPES, ReadDatabaseParams, ReadDocumentParams, ReadFolderParams, RemoveDocumentParams, RemoveFolderParams, RenameDocumentParams, RenameFolderParams, ResourceType, STEP_TYPES, SUPPORTED_VERSIONS, ScrapeParams, SearchParams, SendEmailParams, StepType, TavilySearchParams, TranslateParams, UpdateDatabaseParams, ValidationError, ValidationResult, WRITE_OPERATIONS, WriteDatabaseParams, WriteDocumentParams, WriteOperation, actionSchema, addDocumentAction, addFolderAction, completeSentenceAction, completionWithoutPromptStep, conditionalLoopStep, createDatabaseAction, dafDocumentSchema, deleteDatabaseAction, directiveAction, directiveParamsSchema, duplicateDatabaseAction, duplicateDocumentAction, editorActionBaseParamsSchema, editorActionSchema, extendTextAction, fixSpellingGrammarAction, fixedLoopStep, formatDocumentAction, formatTextAction, googleDocResource, googleDriveFolderResource, isValidAction, isValidDAFDocument, isValidEditorAction, isValidProcess, isValidResource, isValidStep, newsSearchAction, newsSearchParamsSchema, notionPageResource, previewSearchAction, previewSearchParamsSchema, processSchema, processStep, promptStep, readDatabaseAction, readDocumentAction, readDocumentParamsSchema, readFolderAction, reduceTextAction, removeDocumentAction, removeFolderAction, renameDocumentAction, renameFolderAction, resourceSchema, rewriteAction, scrapeAction, scrapeParamsSchema, searchAction, searchParamsSchema, sendEmailAction, sendEmailParamsSchema, simplifyAction, skipCompletionStep, stepSchema, tavilySearchAction, tavilySearchParamsSchema, translateAction, translateParamsSchema, updateDatabaseAction, userFeedbackStep, validateAction, validateDAFDocument, validateEditorAction, validateProcess, validateResource, validateStep, writeDatabaseAction, writeDocumentAction, writeDocumentParamsSchema } from './protocol/index.js';
2
+ export { Action, ActionConfig, ActionResult, AddDocumentAction, AddFolderAction, AskUserInputAction, CrawlAction, CreateDatabaseAction, DAFEmailIntegration, DAFGoogleIntegration, DAFNotionIntegration, DAFProcessRecord, DAFResourceRecord, DAFRunRecord, DAFStorageAdapter, DAFUserRecord, DbDeleteAction, DbFindAction, DbInsertAction, DbUpdateAction, DeleteDatabaseAction, DuplicateDatabaseAction, DuplicateDocumentAction, EditorTransformAction, ExecutionContext, FirecrawlActionType, FormatDocumentAction, GENERIC_VARIABLES, GenericVariable, JsonFormatOptions, LocationSettings, MODEL_PRICING, NewsSearchAction, QuickSearchAction, ReadDatabaseAction, ReadDocumentAction, ReadFolderAction, RemoveDocumentAction, RemoveFolderAction, RenameDocumentAction, RenameFolderAction, ScrapeAction, ScrapeFormat, ScreenshotFormatOptions, SearchAction, SendEmailAction, TIER_TOKEN_LIMITS, TavilySearchAction, TokenUsage, UpdateDatabaseAction, UserProviderSettings, WebhookConfig, WriteDatabaseAction, WriteDocumentAction, appendGoogleDoc, appendNotionPage, buildTokenUsage, calculateTokenCost, canUserAffordApiCall, checkAndUpdateCostLimit, createGoogleDocInFolder, createGoogleDriveFolder, createNotionDatabase, createNotionDatabasePage, createNotionSubpage, deleteGoogleDoc, deleteGoogleDriveFolder, deleteNotionDatabase, deleteNotionPage, duplicateGoogleDoc, duplicateNotionDatabase, duplicateNotionPage, exchangeGoogleCode, exchangeNotionCode, executeAction, executeChatTurn, executeProcess, executeProcessInRun, extractActionsFromMessage, extractDatabaseIdFromUrl, extractDocIdFromUrl, extractFolderIdFromUrl, extractPageIdFromUrl, formatActionResult, formatGoogleDoc, getDescAllActions, getDescChatActions, getDescEditorActions, getGenericVariable, getGenericVariableNames, getGenericVariables, getGoogleAccessToken, getGoogleAuthUrl, getGoogleOAuth2Client, getModelProvider, getNotionAccessToken, getNotionAuthUrl, getNotionDatabase, getNotionPageTitle, getProviderFromModel, isGenericVariable, listGoogleDriveFolderContents, listNotionPageChildren, mergeVariables, processMessageActions, queryNotionDatabase, readGoogleDoc, readNotionDatabase, readNotionPage, refreshGoogleToken, renameGoogleDoc, renameGoogleDriveFolder, renameNotionPage, resumeProcessExecution, selectiveUpdateGoogleDoc, selectiveUpdateNotionPage, substituteVariables, updateNotionDatabase, updateNotionDatabasePage, writeGoogleDoc, writeNotionPage } from './runtime/index.js';
3
+ import 'zod';
4
+ import '@ai-sdk/provider';
5
+ import 'google-auth-library';