@jam-nodes/core 0.2.1 → 0.2.2

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/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
- export type { NodeExecutionContext, NodeExecutionResult, NodeExecutor, NodeApprovalRequest, NodeCapabilities, NodeCategory, NodeMetadata, NodeDefinition, NodeApprovalConfig, NodeNotificationConfig, BaseNodeConfig, NodeServices, ApolloClient, ApolloContact, DataForSeoClient, DataForSeoAuditResult, DataForSeoKeyword, TwitterClient, TwitterPost, ForumScoutClient, LinkedInPost, OpenAIClient, AnthropicClient, NotificationService, StorageService, CacheService, EmailDraftsService, EmailDraft, AnalyzedPostsStorage, AnalyzedPostData, } from './types/index.js';
1
+ export type { NodeExecutionContext, NodeExecutionResult, NodeExecutor, NodeApprovalRequest, NodeCapabilities, NodeCategory, NodeMetadata, NodeDefinition, NodeApprovalConfig, NodeNotificationConfig, BaseNodeConfig, NodeServices, ApolloClient, ApolloContact, DataForSeoClient, DataForSeoAuditResult, DataForSeoKeyword, TwitterClient, TwitterPost, ForumScoutClient, LinkedInPost, OpenAIClient, AnthropicClient, NotificationService, StorageService, CacheService, EmailDraftsService, EmailDraft, AnalyzedPostsStorage, AnalyzedPostData, CredentialType, AuthenticateType, CredentialAuthenticate, OAuth2Config, BaseCredentialDefinition, ApiKeyCredentialDefinition, OAuth2CredentialDefinition, BearerCredentialDefinition, BasicCredentialDefinition, WebhookCredentialDefinition, CustomCredentialDefinition, CredentialDefinition, ResolvedCredentials, CredentialProvider, CredentialRegistry, } from './types/index.js';
2
+ export { defineApiKeyCredential, defineOAuth2Credential, defineBearerCredential, defineBasicCredential, } from './types/index.js';
2
3
  export { ExecutionContext, createExecutionContext, prepareNodeInput, } from './execution/index.js';
3
4
  export { NodeRegistry, createRegistry } from './registry/index.js';
4
5
  export { defineNode } from './utils/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,cAAc,EAEd,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGnE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,cAAc,EAEd,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,oBAAoB,EACpB,gBAAgB,EAEhB,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EACZ,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAGnE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,YAAY,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ // Credential helpers
2
+ export { defineApiKeyCredential, defineOAuth2Credential, defineBearerCredential, defineBasicCredential, } from './types/index.js';
1
3
  // Execution context
2
4
  export { ExecutionContext, createExecutionContext, prepareNodeInput, } from './execution/index.js';
3
5
  // Registry
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAmCA,oBAAoB;AACpB,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAE9B,WAAW;AACX,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEnE,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAmDA,qBAAqB;AACrB,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC;AAE1B,oBAAoB;AACpB,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAE9B,WAAW;AACX,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEnE,YAAY;AACZ,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,164 @@
1
+ import type { z } from 'zod';
2
+ /**
3
+ * Types of authentication supported by credentials.
4
+ */
5
+ export type CredentialType = 'apiKey' | 'oauth2' | 'oauth2_pkce' | 'bearer' | 'basic' | 'webhook' | 'custom';
6
+ /**
7
+ * How credentials are applied to requests.
8
+ */
9
+ export type AuthenticateType = 'header' | 'query' | 'body';
10
+ /**
11
+ * Authentication configuration - how credentials are applied to requests.
12
+ */
13
+ export interface CredentialAuthenticate {
14
+ /** Where to apply the credentials */
15
+ type: AuthenticateType;
16
+ /** Properties to add (supports {{variable}} interpolation) */
17
+ properties: Record<string, string>;
18
+ }
19
+ /**
20
+ * OAuth2 configuration for oauth2/oauth2_pkce credential types.
21
+ */
22
+ export interface OAuth2Config {
23
+ /** URL to redirect user for authorization */
24
+ authorizationUrl: string;
25
+ /** URL to exchange code for tokens */
26
+ tokenUrl: string;
27
+ /** Required OAuth scopes */
28
+ scopes: string[];
29
+ /** Use PKCE flow (required for some APIs like Twitter) */
30
+ pkce?: boolean;
31
+ /** Additional authorization parameters */
32
+ authQueryParameters?: Record<string, string>;
33
+ /** How to send credentials to token endpoint */
34
+ tokenRequestMethod?: 'body' | 'header';
35
+ }
36
+ /**
37
+ * Base credential definition that all credential types share.
38
+ */
39
+ export interface BaseCredentialDefinition {
40
+ /** Unique credential identifier (e.g., 'hunter', 'hubspot') */
41
+ name: string;
42
+ /** Human-readable name for UI */
43
+ displayName: string;
44
+ /** Link to API documentation */
45
+ documentationUrl?: string;
46
+ /** Zod schema for credential fields */
47
+ schema: z.ZodSchema;
48
+ /** Test endpoint to verify credentials work */
49
+ testRequest?: {
50
+ url: string;
51
+ method?: 'GET' | 'POST';
52
+ };
53
+ }
54
+ /**
55
+ * API Key credential - simple key-based authentication.
56
+ */
57
+ export interface ApiKeyCredentialDefinition extends BaseCredentialDefinition {
58
+ type: 'apiKey';
59
+ /** How to apply the API key to requests */
60
+ authenticate: CredentialAuthenticate;
61
+ }
62
+ /**
63
+ * OAuth2 credential - full OAuth2 authorization code flow.
64
+ */
65
+ export interface OAuth2CredentialDefinition extends BaseCredentialDefinition {
66
+ type: 'oauth2' | 'oauth2_pkce';
67
+ /** OAuth2 configuration */
68
+ config: OAuth2Config;
69
+ }
70
+ /**
71
+ * Bearer token credential - simple bearer token in header.
72
+ */
73
+ export interface BearerCredentialDefinition extends BaseCredentialDefinition {
74
+ type: 'bearer';
75
+ /** How to apply the bearer token (usually header with Authorization: Bearer) */
76
+ authenticate: CredentialAuthenticate;
77
+ }
78
+ /**
79
+ * Basic auth credential - username/password.
80
+ */
81
+ export interface BasicCredentialDefinition extends BaseCredentialDefinition {
82
+ type: 'basic';
83
+ /** How to apply basic auth (usually header with Authorization: Basic base64) */
84
+ authenticate: CredentialAuthenticate;
85
+ }
86
+ /**
87
+ * Webhook credential - just a webhook URL.
88
+ */
89
+ export interface WebhookCredentialDefinition extends BaseCredentialDefinition {
90
+ type: 'webhook';
91
+ }
92
+ /**
93
+ * Custom credential - for non-standard auth patterns.
94
+ */
95
+ export interface CustomCredentialDefinition extends BaseCredentialDefinition {
96
+ type: 'custom';
97
+ /** Custom authentication logic description */
98
+ authenticate?: CredentialAuthenticate;
99
+ }
100
+ /**
101
+ * Union type of all credential definitions.
102
+ */
103
+ export type CredentialDefinition = ApiKeyCredentialDefinition | OAuth2CredentialDefinition | BearerCredentialDefinition | BasicCredentialDefinition | WebhookCredentialDefinition | CustomCredentialDefinition;
104
+ /**
105
+ * Credential data after being resolved/decrypted.
106
+ * Shape depends on the credential's schema.
107
+ */
108
+ export type ResolvedCredentials = Record<string, unknown>;
109
+ /**
110
+ * Interface for credential storage/retrieval.
111
+ * Implemented by the consuming application (e.g., Jam/Minions).
112
+ */
113
+ export interface CredentialProvider {
114
+ /**
115
+ * Get credentials by name.
116
+ * @param name - Credential name (e.g., 'hunter', 'hubspot')
117
+ * @returns Resolved credential data or null if not found
118
+ */
119
+ getCredentials(name: string): Promise<ResolvedCredentials | null>;
120
+ /**
121
+ * Check if credentials exist.
122
+ * @param name - Credential name
123
+ * @returns True if credentials are configured
124
+ */
125
+ hasCredentials(name: string): Promise<boolean>;
126
+ /**
127
+ * Refresh OAuth2 tokens if expired.
128
+ * @param name - Credential name
129
+ * @returns Updated credentials or null if refresh failed
130
+ */
131
+ refreshIfNeeded?(name: string): Promise<ResolvedCredentials | null>;
132
+ }
133
+ /**
134
+ * Registry for credential definitions.
135
+ */
136
+ export interface CredentialRegistry {
137
+ /** Register a credential definition */
138
+ register(credential: CredentialDefinition): void;
139
+ /** Get a credential definition by name */
140
+ get(name: string): CredentialDefinition | undefined;
141
+ /** Get all registered credential definitions */
142
+ getAll(): CredentialDefinition[];
143
+ /** Check if a credential is registered */
144
+ has(name: string): boolean;
145
+ }
146
+ /**
147
+ * Helper to create an API key credential definition.
148
+ */
149
+ export declare function defineApiKeyCredential(config: Omit<ApiKeyCredentialDefinition, 'type'>): ApiKeyCredentialDefinition;
150
+ /**
151
+ * Helper to create an OAuth2 credential definition.
152
+ */
153
+ export declare function defineOAuth2Credential(config: Omit<OAuth2CredentialDefinition, 'type'> & {
154
+ pkce?: boolean;
155
+ }): OAuth2CredentialDefinition;
156
+ /**
157
+ * Helper to create a bearer token credential definition.
158
+ */
159
+ export declare function defineBearerCredential(config: Omit<BearerCredentialDefinition, 'type'>): BearerCredentialDefinition;
160
+ /**
161
+ * Helper to create a basic auth credential definition.
162
+ */
163
+ export declare function defineBasicCredential(config: Omit<BasicCredentialDefinition, 'type'>): BasicCredentialDefinition;
164
+ //# sourceMappingURL=credentials.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credentials.d.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,CAAC,OAAO,CAAC,CAAC;IAE/C;;;;OAIG;IACH,eAAe,CAAC,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,GAAG,IAAI,CAAC,CAAC;CACrE;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,uCAAuC;IACvC,QAAQ,CAAC,UAAU,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACjD,0CAA0C;IAC1C,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAAC;IACpD,gDAAgD;IAChD,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACjC,0CAA0C;IAC1C,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,IAAI,CAAC,0BAA0B,EAAE,MAAM,CAAC,GAC/C,0BAA0B,CAE5B;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,IAAI,CAAC,0BAA0B,EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,GACpE,0BAA0B,CAK5B;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,IAAI,CAAC,0BAA0B,EAAE,MAAM,CAAC,GAC/C,0BAA0B,CAE5B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,IAAI,CAAC,yBAAyB,EAAE,MAAM,CAAC,GAC9C,yBAAyB,CAE3B"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * Helper to create an API key credential definition.
3
+ */
4
+ export function defineApiKeyCredential(config) {
5
+ return { ...config, type: 'apiKey' };
6
+ }
7
+ /**
8
+ * Helper to create an OAuth2 credential definition.
9
+ */
10
+ export function defineOAuth2Credential(config) {
11
+ return {
12
+ ...config,
13
+ type: config.pkce ? 'oauth2_pkce' : 'oauth2',
14
+ };
15
+ }
16
+ /**
17
+ * Helper to create a bearer token credential definition.
18
+ */
19
+ export function defineBearerCredential(config) {
20
+ return { ...config, type: 'bearer' };
21
+ }
22
+ /**
23
+ * Helper to create a basic auth credential definition.
24
+ */
25
+ export function defineBasicCredential(config) {
26
+ return { ...config, type: 'basic' };
27
+ }
28
+ //# sourceMappingURL=credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../src/types/credentials.ts"],"names":[],"mappings":"AAgLA;;GAEG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAAgD;IAEhD,OAAO,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAAqE;IAErE,OAAO;QACL,GAAG,MAAM;QACT,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,QAAQ;KAC7C,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,sBAAsB,CACpC,MAAgD;IAEhD,OAAO,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;AACvC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB,CACnC,MAA+C;IAE/C,OAAO,EAAE,GAAG,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;AACtC,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export type { NodeExecutionContext, NodeExecutionResult, NodeExecutor, NodeApprovalRequest, NodeCapabilities, NodeCategory, NodeMetadata, NodeDefinition, } from './node.js';
2
2
  export type { NodeApprovalConfig, NodeNotificationConfig, BaseNodeConfig, } from './config.js';
3
3
  export type { NodeServices, ApolloClient, ApolloContact, DataForSeoClient, DataForSeoAuditResult, DataForSeoKeyword, TwitterClient, TwitterPost, ForumScoutClient, LinkedInPost, OpenAIClient, AnthropicClient, NotificationService, StorageService, CacheService, EmailDraftsService, EmailDraft, AnalyzedPostsStorage, AnalyzedPostData, } from './services.js';
4
+ export type { CredentialType, AuthenticateType, CredentialAuthenticate, OAuth2Config, BaseCredentialDefinition, ApiKeyCredentialDefinition, OAuth2CredentialDefinition, BearerCredentialDefinition, BasicCredentialDefinition, WebhookCredentialDefinition, CustomCredentialDefinition, CredentialDefinition, ResolvedCredentials, CredentialProvider, CredentialRegistry, } from './credentials.js';
5
+ export { defineApiKeyCredential, defineOAuth2Credential, defineBearerCredential, defineBasicCredential, } from './credentials.js';
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,cAAc,GACf,MAAM,WAAW,CAAC;AAEnB,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,cAAc,GACf,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,oBAAoB,EACpB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,cAAc,GACf,MAAM,WAAW,CAAC;AAEnB,YAAY,EACV,kBAAkB,EAClB,sBAAsB,EACtB,cAAc,GACf,MAAM,aAAa,CAAC;AAErB,YAAY,EACV,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,UAAU,EACV,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AAEvB,YAAY,EACV,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,YAAY,EACZ,wBAAwB,EACxB,0BAA0B,EAC1B,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC"}
@@ -1,2 +1,2 @@
1
- export {};
1
+ export { defineApiKeyCredential, defineOAuth2Credential, defineBearerCredential, defineBasicCredential, } from './credentials.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAyDA,OAAO,EACL,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jam-nodes/core",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Core framework for building workflow nodes with type-safe executors and Zod validation",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",