veryfront 0.1.918 → 0.1.920

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/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.918",
3
+ "version": "0.1.920",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "minimumDependencyAge": {
@@ -1 +1 @@
1
- {"version":3,"file":"_data.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/_data.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,UAAU,EAAE,iBAAiB,EAg/1DzC,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyZxC,CAAC"}
1
+ {"version":3,"file":"_data.d.ts","sourceRoot":"","sources":["../../../src/src/integrations/_data.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,eAAO,MAAM,UAAU,EAAE,iBAAiB,EA6n2DzC,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAyZxC,CAAC"}
@@ -45415,7 +45415,7 @@ export const connectors = [
45415
45415
  "name": "salesforce",
45416
45416
  "displayName": "Salesforce",
45417
45417
  "icon": "salesforce.svg",
45418
- "description": "Manage accounts, contacts, opportunities, and leads in your Salesforce CRM",
45418
+ "description": "Connect Salesforce Service Cloud and Sales Cloud for customer support and CRM workflows",
45419
45419
  "auth": {
45420
45420
  "type": "oauth2",
45421
45421
  "provider": "salesforce",
@@ -45442,9 +45442,27 @@ export const connectors = [
45442
45442
  "docsUrl": "https://help.salesforce.com/s/articleView?id=sf.connected_app_create.htm",
45443
45443
  }],
45444
45444
  "tools": [{
45445
- "id": "list_accounts",
45446
- "name": "List Accounts",
45447
- "description": "List accounts from your Salesforce CRM",
45445
+ "id": "find_customer",
45446
+ "name": "Find Customer",
45447
+ "description": "Find customer contacts with account context for support triage. Pass a focused SOQL query when searching by email, name, phone, or account.",
45448
+ "requiresWrite": false,
45449
+ "endpoint": {
45450
+ "method": "GET",
45451
+ "url": "{{oauth.raw.instance_url}}/services/data/v61.0/query",
45452
+ "params": {
45453
+ "q": {
45454
+ "type": "string",
45455
+ "in": "query",
45456
+ "description": "SOQL Contact query. Include Account fields when the agent needs customer context.",
45457
+ "default": "SELECT Id, FirstName, LastName, Email, Phone, Title, AccountId, Account.Name, Account.Type, Account.Industry FROM Contact ORDER BY LastModifiedDate DESC LIMIT 25",
45458
+ },
45459
+ },
45460
+ "response": { "transform": "records" },
45461
+ },
45462
+ }, {
45463
+ "id": "search_accounts",
45464
+ "name": "Search Accounts",
45465
+ "description": "Search Salesforce accounts with business context for support or sales work",
45448
45466
  "requiresWrite": false,
45449
45467
  "endpoint": {
45450
45468
  "method": "GET",
@@ -45453,8 +45471,8 @@ export const connectors = [
45453
45471
  "q": {
45454
45472
  "type": "string",
45455
45473
  "in": "query",
45456
- "description": "SOQL query for accounts",
45457
- "default": "SELECT Id, Name, Type, Industry, Phone, Website FROM Account ORDER BY LastModifiedDate DESC LIMIT 50",
45474
+ "description": "SOQL Account query",
45475
+ "default": "SELECT Id, Name, Type, Industry, Phone, Website, OwnerId, LastModifiedDate FROM Account ORDER BY LastModifiedDate DESC LIMIT 50",
45458
45476
  },
45459
45477
  },
45460
45478
  "response": { "transform": "records" },
@@ -45477,9 +45495,9 @@ export const connectors = [
45477
45495
  },
45478
45496
  },
45479
45497
  }, {
45480
- "id": "list_contacts",
45481
- "name": "List Contacts",
45482
- "description": "List contacts from your Salesforce CRM",
45498
+ "id": "search_contacts",
45499
+ "name": "Search Contacts",
45500
+ "description": "Search contacts with account fields for CRM follow-up and support context",
45483
45501
  "requiresWrite": false,
45484
45502
  "endpoint": {
45485
45503
  "method": "GET",
@@ -45489,15 +45507,32 @@ export const connectors = [
45489
45507
  "type": "string",
45490
45508
  "in": "query",
45491
45509
  "description": "SOQL query for contacts",
45492
- "default": "SELECT Id, FirstName, LastName, Email, Phone, AccountId FROM Contact ORDER BY LastModifiedDate DESC LIMIT 50",
45510
+ "default": "SELECT Id, FirstName, LastName, Email, Phone, Title, AccountId, Account.Name FROM Contact ORDER BY LastModifiedDate DESC LIMIT 50",
45493
45511
  },
45494
45512
  },
45495
45513
  "response": { "transform": "records" },
45496
45514
  },
45497
45515
  }, {
45498
- "id": "list_opportunities",
45499
- "name": "List Opportunities",
45500
- "description": "List sales opportunities from your Salesforce CRM",
45516
+ "id": "get_contact",
45517
+ "name": "Get Contact",
45518
+ "description": "Get a Salesforce contact by ID",
45519
+ "requiresWrite": false,
45520
+ "endpoint": {
45521
+ "method": "GET",
45522
+ "url": "{{oauth.raw.instance_url}}/services/data/v61.0/sobjects/Contact/{contactId}",
45523
+ "params": {
45524
+ "contactId": {
45525
+ "type": "string",
45526
+ "in": "path",
45527
+ "description": "Salesforce Contact ID",
45528
+ "required": true,
45529
+ },
45530
+ },
45531
+ },
45532
+ }, {
45533
+ "id": "list_cases",
45534
+ "name": "List Cases",
45535
+ "description": "List Service Cloud cases for a customer, account, owner, status, or queue",
45501
45536
  "requiresWrite": false,
45502
45537
  "endpoint": {
45503
45538
  "method": "GET",
@@ -45506,33 +45541,33 @@ export const connectors = [
45506
45541
  "q": {
45507
45542
  "type": "string",
45508
45543
  "in": "query",
45509
- "description": "SOQL query for opportunities",
45510
- "default": "SELECT Id, Name, StageName, Amount, CloseDate, AccountId FROM Opportunity ORDER BY CloseDate DESC LIMIT 50",
45544
+ "description": "SOQL Case query. Filter by ContactId, AccountId, Status, OwnerId, Priority, or CreatedDate as needed.",
45545
+ "default": "SELECT Id, CaseNumber, Subject, Status, Priority, Origin, ContactId, AccountId, OwnerId, CreatedDate, LastModifiedDate FROM Case ORDER BY LastModifiedDate DESC LIMIT 50",
45511
45546
  },
45512
45547
  },
45513
45548
  "response": { "transform": "records" },
45514
45549
  },
45515
45550
  }, {
45516
- "id": "create_lead",
45517
- "name": "Create Lead",
45518
- "description": "Create a new lead in Salesforce CRM",
45519
- "requiresWrite": true,
45551
+ "id": "get_case",
45552
+ "name": "Get Case",
45553
+ "description": "Get a Service Cloud case by ID",
45554
+ "requiresWrite": false,
45520
45555
  "endpoint": {
45521
- "method": "POST",
45522
- "url": "{{oauth.raw.instance_url}}/services/data/v61.0/sobjects/Lead",
45523
- "body": {
45524
- "LastName": { "type": "string", "description": "Lead last name", "required": true },
45525
- "Company": { "type": "string", "description": "Lead company", "required": true },
45526
- "FirstName": { "type": "string", "description": "Lead first name" },
45527
- "Email": { "type": "string", "description": "Lead email address" },
45528
- "Phone": { "type": "string", "description": "Lead phone number" },
45529
- "Status": { "type": "string", "description": "Lead status" },
45556
+ "method": "GET",
45557
+ "url": "{{oauth.raw.instance_url}}/services/data/v61.0/sobjects/Case/{caseId}",
45558
+ "params": {
45559
+ "caseId": {
45560
+ "type": "string",
45561
+ "in": "path",
45562
+ "description": "Salesforce Case ID",
45563
+ "required": true,
45564
+ },
45530
45565
  },
45531
45566
  },
45532
45567
  }, {
45533
- "id": "soql_query",
45534
- "name": "Run SOQL Query",
45535
- "description": "Run an arbitrary SOQL query against any Salesforce object",
45568
+ "id": "list_case_activity",
45569
+ "name": "List Case Activity",
45570
+ "description": "List case comments for support handoff, timeline review, and resolution context",
45536
45571
  "requiresWrite": false,
45537
45572
  "endpoint": {
45538
45573
  "method": "GET",
@@ -45541,135 +45576,220 @@ export const connectors = [
45541
45576
  "q": {
45542
45577
  "type": "string",
45543
45578
  "in": "query",
45544
- "description": "SOQL query to execute, for example SELECT Id, Name FROM Account LIMIT 10",
45545
- "required": true,
45579
+ "description": "SOQL CaseComment query. Add WHERE ParentId = '<caseId>' to inspect one case.",
45580
+ "default": "SELECT Id, ParentId, CommentBody, CreatedDate, CreatedById, IsPublished FROM CaseComment ORDER BY CreatedDate DESC LIMIT 50",
45546
45581
  },
45547
45582
  },
45548
45583
  "response": { "transform": "records" },
45549
45584
  },
45550
45585
  }, {
45551
- "id": "describe_object",
45552
- "name": "Describe Object",
45553
- "description": "Get metadata and field definitions for a Salesforce object",
45586
+ "id": "search_knowledge_articles",
45587
+ "name": "Search Knowledge Articles",
45588
+ "description": "Search published Salesforce Knowledge articles that can help answer or deflect a support case",
45554
45589
  "requiresWrite": false,
45555
45590
  "endpoint": {
45556
45591
  "method": "GET",
45557
- "url": "{{oauth.raw.instance_url}}/services/data/v61.0/sobjects/{sobjectType}/describe",
45592
+ "url": "{{oauth.raw.instance_url}}/services/data/v61.0/query",
45558
45593
  "params": {
45559
- "sobjectType": {
45594
+ "q": {
45560
45595
  "type": "string",
45561
- "in": "path",
45562
- "description": "Salesforce object API name, for example Account, Contact, or Opportunity",
45563
- "required": true,
45596
+ "in": "query",
45597
+ "description": "SOQL KnowledgeArticleVersion query. Filter by Title, Summary, DataCategory, or language when needed.",
45598
+ "default": "SELECT Id, KnowledgeArticleId, Title, Summary, UrlName, Language, LastPublishedDate FROM KnowledgeArticleVersion WHERE PublishStatus = 'Online' ORDER BY LastPublishedDate DESC LIMIT 25",
45564
45599
  },
45565
45600
  },
45601
+ "response": { "transform": "records" },
45566
45602
  },
45567
45603
  }, {
45568
- "id": "create_record",
45569
- "name": "Create Record",
45570
- "description": "Create a record of any object type (use Describe Object to discover fields)",
45571
- "requiresWrite": true,
45604
+ "id": "list_opportunities",
45605
+ "name": "List Opportunities",
45606
+ "description": "List Sales Cloud opportunities for account planning and customer context",
45607
+ "requiresWrite": false,
45572
45608
  "endpoint": {
45573
- "method": "POST",
45574
- "url": "{{oauth.raw.instance_url}}/services/data/v61.0/sobjects/{sobjectType}",
45609
+ "method": "GET",
45610
+ "url": "{{oauth.raw.instance_url}}/services/data/v61.0/query",
45575
45611
  "params": {
45576
- "sobjectType": {
45612
+ "q": {
45577
45613
  "type": "string",
45578
- "in": "path",
45579
- "description": "Object API name, e.g. Account, Contact, Custom_Object__c",
45580
- "required": true,
45614
+ "in": "query",
45615
+ "description": "SOQL query for opportunities",
45616
+ "default": "SELECT Id, Name, StageName, Amount, CloseDate, AccountId, OwnerId, LastModifiedDate FROM Opportunity ORDER BY CloseDate DESC LIMIT 50",
45581
45617
  },
45582
45618
  },
45619
+ "response": { "transform": "records" },
45620
+ },
45621
+ }, {
45622
+ "id": "create_lead",
45623
+ "name": "Create Lead",
45624
+ "description": "Create a new lead in Salesforce CRM",
45625
+ "requiresWrite": true,
45626
+ "endpoint": {
45627
+ "method": "POST",
45628
+ "url": "{{oauth.raw.instance_url}}/services/data/v61.0/sobjects/Lead",
45583
45629
  "body": {
45584
- "record": {
45585
- "type": "object",
45586
- "description": 'Field map for the new record, e.g. {"Name":"Acme","Industry":"Technology"}',
45587
- "required": true,
45630
+ "LastName": { "type": "string", "description": "Lead last name", "required": true },
45631
+ "Company": { "type": "string", "description": "Lead company", "required": true },
45632
+ "FirstName": { "type": "string", "description": "Lead first name" },
45633
+ "Email": { "type": "string", "description": "Lead email address" },
45634
+ "Phone": { "type": "string", "description": "Lead phone number" },
45635
+ "Status": { "type": "string", "description": "Lead status" },
45636
+ },
45637
+ },
45638
+ }, {
45639
+ "id": "create_case",
45640
+ "name": "Create Case",
45641
+ "description": "Create a Service Cloud case for customer support",
45642
+ "requiresWrite": true,
45643
+ "endpoint": {
45644
+ "method": "POST",
45645
+ "url": "{{oauth.raw.instance_url}}/services/data/v61.0/sobjects/Case",
45646
+ "body": {
45647
+ "Subject": { "type": "string", "description": "Case subject", "required": true },
45648
+ "Description": { "type": "string", "description": "Case description" },
45649
+ "Status": { "type": "string", "description": "Case status", "default": "New" },
45650
+ "Priority": { "type": "string", "description": "Case priority" },
45651
+ "Origin": { "type": "string", "description": "Case origin", "default": "Web" },
45652
+ "ContactId": { "type": "string", "description": "Related Salesforce Contact ID" },
45653
+ "AccountId": { "type": "string", "description": "Related Salesforce Account ID" },
45654
+ "OwnerId": { "type": "string", "description": "Queue or user owner ID" },
45655
+ },
45656
+ },
45657
+ }, {
45658
+ "id": "add_case_comment",
45659
+ "name": "Add Case Comment",
45660
+ "description": "Add a support note or customer-visible comment to a Service Cloud case",
45661
+ "requiresWrite": true,
45662
+ "endpoint": {
45663
+ "method": "POST",
45664
+ "url": "{{oauth.raw.instance_url}}/services/data/v61.0/sobjects/CaseComment",
45665
+ "body": {
45666
+ "ParentId": { "type": "string", "description": "Salesforce Case ID", "required": true },
45667
+ "CommentBody": { "type": "string", "description": "Comment body", "required": true },
45668
+ "IsPublished": {
45669
+ "type": "boolean",
45670
+ "description": "Whether the comment is visible externally",
45671
+ "default": false,
45588
45672
  },
45589
45673
  },
45590
- "bodyMode": "passthrough",
45591
45674
  },
45592
45675
  }, {
45593
- "id": "update_record",
45594
- "name": "Update Record",
45595
- "description": "Update fields on a record of any object type",
45676
+ "id": "update_case",
45677
+ "name": "Update Case",
45678
+ "description": "Update status, priority, owner, or resolution fields on a Service Cloud case",
45596
45679
  "requiresWrite": true,
45597
45680
  "endpoint": {
45598
45681
  "method": "PATCH",
45599
- "url": "{{oauth.raw.instance_url}}/services/data/v61.0/sobjects/{sobjectType}/{recordId}",
45682
+ "url": "{{oauth.raw.instance_url}}/services/data/v61.0/sobjects/Case/{caseId}",
45600
45683
  "params": {
45601
- "sobjectType": {
45602
- "type": "string",
45603
- "in": "path",
45604
- "description": "Object API name, e.g. Account, Contact, Custom_Object__c",
45605
- "required": true,
45606
- },
45607
- "recordId": {
45684
+ "caseId": {
45608
45685
  "type": "string",
45609
45686
  "in": "path",
45610
- "description": "Salesforce record ID (15 or 18 chars)",
45687
+ "description": "Salesforce Case ID",
45611
45688
  "required": true,
45612
45689
  },
45613
45690
  },
45614
45691
  "body": {
45615
- "record": {
45616
- "type": "object",
45617
- "description": "Field map of fields to update",
45618
- "required": true,
45619
- },
45692
+ "Status": { "type": "string", "description": "New case status" },
45693
+ "Priority": { "type": "string", "description": "New case priority" },
45694
+ "OwnerId": { "type": "string", "description": "Queue or user owner ID" },
45695
+ "Reason": { "type": "string", "description": "Case reason" },
45696
+ "SuppliedEmail": { "type": "string", "description": "Customer supplied email" },
45697
+ "Description": { "type": "string", "description": "Updated case description" },
45620
45698
  },
45621
- "bodyMode": "passthrough",
45622
45699
  },
45623
45700
  }, {
45624
- "id": "delete_record",
45625
- "name": "Delete Record",
45626
- "description": "Delete a record of any object type",
45627
- "requiresWrite": true,
45701
+ "id": "describe_object",
45702
+ "name": "Describe Object",
45703
+ "description": "Get metadata and field definitions for a Salesforce object",
45704
+ "requiresWrite": false,
45628
45705
  "endpoint": {
45629
- "method": "DELETE",
45630
- "url": "{{oauth.raw.instance_url}}/services/data/v61.0/sobjects/{sobjectType}/{recordId}",
45706
+ "method": "GET",
45707
+ "url": "{{oauth.raw.instance_url}}/services/data/v61.0/sobjects/{sobjectType}/describe",
45631
45708
  "params": {
45632
45709
  "sobjectType": {
45633
45710
  "type": "string",
45634
45711
  "in": "path",
45635
- "description": "Object API name, e.g. Account, Contact, Custom_Object__c",
45712
+ "description": "Salesforce object API name, for example Case, Account, Contact, Opportunity, or a custom object",
45636
45713
  "required": true,
45637
45714
  },
45638
- "recordId": {
45715
+ },
45716
+ },
45717
+ }, {
45718
+ "id": "run_soql_query",
45719
+ "name": "Run SOQL Query",
45720
+ "description": "Run a read-only SOQL query for expert inspection when curated tools are not enough",
45721
+ "requiresWrite": false,
45722
+ "endpoint": {
45723
+ "method": "GET",
45724
+ "url": "{{oauth.raw.instance_url}}/services/data/v61.0/query",
45725
+ "params": {
45726
+ "q": {
45639
45727
  "type": "string",
45640
- "in": "path",
45641
- "description": "Salesforce record ID (15 or 18 chars)",
45728
+ "in": "query",
45729
+ "description": "Read-only SOQL query, for example SELECT Id, Subject FROM Case LIMIT 10",
45642
45730
  "required": true,
45643
45731
  },
45644
45732
  },
45733
+ "response": { "transform": "records" },
45645
45734
  },
45646
45735
  }],
45647
45736
  "prompts": [{
45648
- "id": "find_accounts",
45649
- "title": "Find accounts",
45650
- "prompt": "Search for accounts in my Salesforce CRM and show me their key information.",
45651
- "category": "crm",
45737
+ "id": "support_triage",
45738
+ "title": "Support triage",
45739
+ "prompt": "Find the customer in Salesforce, summarize their open cases, and suggest the next support action.",
45740
+ "category": "support",
45652
45741
  "icon": "search",
45653
45742
  }, {
45654
- "id": "create_lead",
45655
- "title": "Create a lead",
45656
- "prompt": "Create a new lead in Salesforce CRM with the information I provide.",
45657
- "category": "crm",
45743
+ "id": "create_case",
45744
+ "title": "Create a support case",
45745
+ "prompt": "Create a Salesforce Service Cloud case with the customer, subject, priority, and issue summary I provide.",
45746
+ "category": "support",
45658
45747
  "icon": "plus",
45748
+ }, {
45749
+ "id": "knowledge_search",
45750
+ "title": "Search Knowledge",
45751
+ "prompt": "Search Salesforce Knowledge for articles that answer this customer support issue.",
45752
+ "category": "support",
45753
+ "icon": "book",
45659
45754
  }, {
45660
45755
  "id": "pipeline_summary",
45661
45756
  "title": "Pipeline summary",
45662
- "prompt": "Show me a summary of my current sales opportunities and pipeline status.",
45757
+ "prompt": "Summarize Salesforce opportunities for this account and highlight any renewal or expansion context relevant to support.",
45663
45758
  "category": "crm",
45664
45759
  "icon": "chart",
45665
- }, {
45666
- "id": "contact_lookup",
45667
- "title": "Contact lookup",
45668
- "prompt": "Find and display information about specific contacts in my Salesforce CRM.",
45669
- "category": "crm",
45670
- "icon": "user",
45671
45760
  }],
45672
45761
  "suggestedWith": ["gmail", "slack", "calendar"],
45762
+ "setupGuide": {
45763
+ "title": "Salesforce Connected App Setup",
45764
+ "steps": [{
45765
+ "step": 1,
45766
+ "title": "Create a Salesforce test org",
45767
+ "description": "Use a sandbox or free Developer Edition org for staging. Enable Service Cloud, Cases, and Knowledge if the demo needs support workflows.",
45768
+ }, {
45769
+ "step": 2,
45770
+ "title": "Create a Connected App",
45771
+ "description": "In Salesforce Setup, create a Connected App with OAuth enabled. Add the Veryfront callback URL for the target environment.",
45772
+ "docsUrl": "https://help.salesforce.com/s/articleView?id=sf.connected_app_create.htm",
45773
+ }, {
45774
+ "step": 3,
45775
+ "title": "Configure OAuth scopes",
45776
+ "description": "Add api, refresh_token, and offline_access scopes. Use the Web Server Flow with a client secret for Veryfront API environments.",
45777
+ }, {
45778
+ "step": 4,
45779
+ "title": "Store Veryfront environment credentials",
45780
+ "description": "Set SALESFORCE_CLIENT_ID and SALESFORCE_CLIENT_SECRET for the matching Veryfront environment. Keep staging and production credentials separate.",
45781
+ }, {
45782
+ "step": 5,
45783
+ "title": "Grant least-privilege Salesforce permissions",
45784
+ "description": "Assign the connected user access to Account, Contact, Case, CaseComment, Opportunity, Lead, and Knowledge objects required by the enabled tools.",
45785
+ }],
45786
+ "notes": [
45787
+ "Staging callback: https://api.veryfront.org/oauth/callback/salesforce",
45788
+ "Production callback: https://api.veryfront.com/oauth/callback/salesforce",
45789
+ "Write tools should be explicitly enabled for an agent or project; read tools are the default demo surface.",
45790
+ ],
45791
+ "documentation": "https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_rest.htm",
45792
+ },
45673
45793
  },
45674
45794
  {
45675
45795
  "name": "sap",
@@ -1,3 +1,3 @@
1
1
  /** Shared version value. */
2
- export declare const VERSION = "0.1.918";
2
+ export declare const VERSION = "0.1.920";
3
3
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
3
  /** Shared version value. */
4
- export const VERSION = "0.1.918";
4
+ export const VERSION = "0.1.920";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.918",
3
+ "version": "0.1.920",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",