@matimo/hubspot 0.1.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +389 -0
  3. package/definition.yaml +73 -0
  4. package/package.json +17 -0
  5. package/tools/hubspot-create-company/definition.yaml +57 -0
  6. package/tools/hubspot-create-contact/definition.yaml +79 -0
  7. package/tools/hubspot-create-custom-object/definition.yaml +57 -0
  8. package/tools/hubspot-create-deal/definition.yaml +69 -0
  9. package/tools/hubspot-create-invoice/definition.yaml +47 -0
  10. package/tools/hubspot-create-lead/definition.yaml +73 -0
  11. package/tools/hubspot-create-line-item/definition.yaml +64 -0
  12. package/tools/hubspot-create-order/definition.yaml +63 -0
  13. package/tools/hubspot-create-product/definition.yaml +58 -0
  14. package/tools/hubspot-create-ticket/definition.yaml +64 -0
  15. package/tools/hubspot-delete-company/definition.yaml +43 -0
  16. package/tools/hubspot-delete-contact/definition.yaml +43 -0
  17. package/tools/hubspot-delete-custom-object/definition.yaml +43 -0
  18. package/tools/hubspot-delete-deal/definition.yaml +43 -0
  19. package/tools/hubspot-delete-invoice/definition.yaml +38 -0
  20. package/tools/hubspot-delete-lead/definition.yaml +38 -0
  21. package/tools/hubspot-delete-line-item/definition.yaml +38 -0
  22. package/tools/hubspot-delete-order/definition.yaml +38 -0
  23. package/tools/hubspot-delete-product/definition.yaml +38 -0
  24. package/tools/hubspot-delete-ticket/definition.yaml +43 -0
  25. package/tools/hubspot-get-company/definition.yaml +49 -0
  26. package/tools/hubspot-get-contact/definition.yaml +56 -0
  27. package/tools/hubspot-get-custom-object/definition.yaml +54 -0
  28. package/tools/hubspot-get-deal/definition.yaml +42 -0
  29. package/tools/hubspot-get-invoice/definition.yaml +49 -0
  30. package/tools/hubspot-get-lead/definition.yaml +55 -0
  31. package/tools/hubspot-get-line-item/definition.yaml +49 -0
  32. package/tools/hubspot-get-order/definition.yaml +49 -0
  33. package/tools/hubspot-get-product/definition.yaml +49 -0
  34. package/tools/hubspot-get-ticket/definition.yaml +42 -0
  35. package/tools/hubspot-list-companies/definition.yaml +49 -0
  36. package/tools/hubspot-list-contacts/definition.yaml +59 -0
  37. package/tools/hubspot-list-custom-objects/definition.yaml +60 -0
  38. package/tools/hubspot-list-deals/definition.yaml +49 -0
  39. package/tools/hubspot-list-invoices/definition.yaml +55 -0
  40. package/tools/hubspot-list-leads/definition.yaml +61 -0
  41. package/tools/hubspot-list-line-items/definition.yaml +55 -0
  42. package/tools/hubspot-list-orders/definition.yaml +55 -0
  43. package/tools/hubspot-list-products/definition.yaml +55 -0
  44. package/tools/hubspot-list-tickets/definition.yaml +49 -0
  45. package/tools/hubspot-update-company/definition.yaml +54 -0
  46. package/tools/hubspot-update-contact/definition.yaml +62 -0
  47. package/tools/hubspot-update-custom-object/definition.yaml +57 -0
  48. package/tools/hubspot-update-deal/definition.yaml +54 -0
  49. package/tools/hubspot-update-invoice/definition.yaml +52 -0
  50. package/tools/hubspot-update-lead/definition.yaml +55 -0
  51. package/tools/hubspot-update-line-item/definition.yaml +52 -0
  52. package/tools/hubspot-update-order/definition.yaml +52 -0
  53. package/tools/hubspot-update-product/definition.yaml +52 -0
  54. package/tools/hubspot-update-ticket/definition.yaml +54 -0
@@ -0,0 +1,59 @@
1
+ name: hubspot-list-contacts
2
+ version: '1.0.0'
3
+ description: List all contacts from HubSpot CRM with pagination.
4
+
5
+ parameters:
6
+ limit:
7
+ type: number
8
+ required: false
9
+ description: Maximum number of contacts to return (default 10, max 100).
10
+ after:
11
+ type: string
12
+ required: false
13
+ description: Pagination cursor to get next batch of contacts.
14
+ properties:
15
+ type: array
16
+ required: false
17
+ description: Specific properties to return for each contact.
18
+
19
+ execution:
20
+ type: http
21
+ method: GET
22
+ url: 'https://api.hubapi.com/crm/v3/objects/contacts'
23
+ headers:
24
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
25
+ query_params:
26
+ limit: '{limit}'
27
+ after: '{after}'
28
+ properties: '{properties}'
29
+ timeout: 30000
30
+
31
+ authentication:
32
+ type: bearer
33
+ location: header
34
+ name: Authorization
35
+ notes:
36
+ env: MATIMO_HUBSPOT_API_KEY
37
+
38
+ output_schema:
39
+ type: object
40
+ properties:
41
+ results: { type: array }
42
+ paging: { type: object }
43
+ required: [results]
44
+
45
+ error_handling:
46
+ retry: 2
47
+ backoff_type: exponential
48
+ initial_delay_ms: 500
49
+
50
+ examples:
51
+ - name: 'List first 10 contacts'
52
+ params:
53
+ limit: 10
54
+ expected_result: 'Array of 10 contacts with pagination info.'
55
+ - name: 'List contacts with cursor'
56
+ params:
57
+ limit: 20
58
+ after: 'cursor-value-here'
59
+ expected_result: 'Next batch of 20 contacts.'
@@ -0,0 +1,60 @@
1
+ name: hubspot-list-custom-objects
2
+ version: '1.0.0'
3
+ description: List custom objects from HubSpot CRM with pagination support.
4
+
5
+ parameters:
6
+ object_type:
7
+ type: string
8
+ required: true
9
+ description: The custom object type ID (e.g., 'my_custom_object').
10
+ limit:
11
+ type: number
12
+ required: false
13
+ description: Maximum number of objects to retrieve (default 10, max 100).
14
+ after:
15
+ type: string
16
+ required: false
17
+ description: Pagination cursor for retrieving next page of results.
18
+ properties:
19
+ type: array
20
+ required: false
21
+ description: Array of property names to retrieve.
22
+
23
+ execution:
24
+ type: http
25
+ method: GET
26
+ url: 'https://api.hubapi.com/crm/v3/objects/{object_type}'
27
+ headers:
28
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
29
+ query_params:
30
+ limit: '{limit}'
31
+ after: '{after}'
32
+ properties: '{properties}'
33
+ timeout: 30000
34
+
35
+ authentication:
36
+ type: bearer
37
+ location: header
38
+ name: Authorization
39
+
40
+ output_schema:
41
+ type: object
42
+ properties:
43
+ results:
44
+ type: array
45
+ paging:
46
+ type: object
47
+
48
+ error_handling:
49
+ retry: 2
50
+ backoff_type: exponential
51
+ initial_delay_ms: 500
52
+
53
+ requires_approval: false
54
+
55
+ examples:
56
+ - name: List custom objects
57
+ params:
58
+ object_type: my_custom_object
59
+ limit: 50
60
+ expected_result: Array of up to 50 custom objects
@@ -0,0 +1,49 @@
1
+ name: hubspot-list-deals
2
+ version: '1.0.0'
3
+ description: List all deals from HubSpot CRM with pagination.
4
+
5
+ parameters:
6
+ limit:
7
+ type: number
8
+ required: false
9
+ description: Maximum number of deals to return (default 10, max 100).
10
+ after:
11
+ type: string
12
+ required: false
13
+ description: Pagination cursor to get next batch of deals.
14
+
15
+ execution:
16
+ type: http
17
+ method: GET
18
+ url: 'https://api.hubapi.com/crm/v3/objects/deals'
19
+ query_params:
20
+ limit: '{limit}'
21
+ after: '{after}'
22
+ headers:
23
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
24
+ timeout: 30000
25
+
26
+ authentication:
27
+ type: bearer
28
+ location: header
29
+ name: Authorization
30
+ notes:
31
+ env: MATIMO_HUBSPOT_API_KEY
32
+
33
+ output_schema:
34
+ type: object
35
+ properties:
36
+ results: { type: array }
37
+ paging: { type: object }
38
+ required: [results]
39
+
40
+ error_handling:
41
+ retry: 2
42
+ backoff_type: exponential
43
+ initial_delay_ms: 500
44
+
45
+ examples:
46
+ - name: 'List first 10 deals'
47
+ params:
48
+ limit: 10
49
+ expected_result: 'Array of 10 deals.'
@@ -0,0 +1,55 @@
1
+ name: hubspot-list-invoices
2
+ version: '1.0.0'
3
+ description: List invoices from HubSpot CRM with pagination support.
4
+
5
+ parameters:
6
+ limit:
7
+ type: number
8
+ required: false
9
+ description: Maximum number of invoices to retrieve (default 10, max 100).
10
+ after:
11
+ type: string
12
+ required: false
13
+ description: Pagination cursor for retrieving next page of results.
14
+ properties:
15
+ type: array
16
+ required: false
17
+ description: Array of property names to retrieve.
18
+
19
+ execution:
20
+ type: http
21
+ method: GET
22
+ url: 'https://api.hubapi.com/crm/v3/objects/invoices'
23
+ headers:
24
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
25
+ query_params:
26
+ limit: '{limit}'
27
+ after: '{after}'
28
+ properties: '{properties}'
29
+ timeout: 30000
30
+
31
+ authentication:
32
+ type: bearer
33
+ location: header
34
+ name: Authorization
35
+
36
+ output_schema:
37
+ type: object
38
+ properties:
39
+ results:
40
+ type: array
41
+ paging:
42
+ type: object
43
+
44
+ error_handling:
45
+ retry: 2
46
+ backoff_type: exponential
47
+ initial_delay_ms: 500
48
+
49
+ requires_approval: false
50
+
51
+ examples:
52
+ - name: List invoices
53
+ params:
54
+ limit: 50
55
+ expected_result: Array of up to 50 invoices
@@ -0,0 +1,61 @@
1
+ name: hubspot-list-leads
2
+ version: '1.0.0'
3
+ description: List leads from HubSpot CRM with pagination support.
4
+
5
+ parameters:
6
+ limit:
7
+ type: number
8
+ required: false
9
+ description: Maximum number of leads to retrieve (default 10, max 100).
10
+ after:
11
+ type: string
12
+ required: false
13
+ description: Pagination cursor for retrieving next page of results.
14
+ properties:
15
+ type: array
16
+ required: false
17
+ description: Array of property names to retrieve.
18
+
19
+ execution:
20
+ type: http
21
+ method: GET
22
+ url: 'https://api.hubapi.com/crm/v3/objects/leads'
23
+ headers:
24
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
25
+ query_params:
26
+ limit: '{limit}'
27
+ after: '{after}'
28
+ properties: '{properties}'
29
+ timeout: 30000
30
+
31
+ authentication:
32
+ type: bearer
33
+ location: header
34
+ name: Authorization
35
+
36
+ output_schema:
37
+ type: object
38
+ properties:
39
+ results:
40
+ type: array
41
+ paging:
42
+ type: object
43
+ required:
44
+ - results
45
+
46
+ error_handling:
47
+ retry: 2
48
+ backoff_type: exponential
49
+ initial_delay_ms: 500
50
+
51
+ requires_approval: false
52
+
53
+ examples:
54
+ - name: List leads with pagination
55
+ params:
56
+ limit: 50
57
+ properties:
58
+ - email
59
+ - firstname
60
+ - lastname
61
+ expected_result: Array of up to 50 leads with email, firstname, lastname
@@ -0,0 +1,55 @@
1
+ name: hubspot-list-line-items
2
+ version: '1.0.0'
3
+ description: List line items from HubSpot CRM with pagination support.
4
+
5
+ parameters:
6
+ limit:
7
+ type: number
8
+ required: false
9
+ description: Maximum number of line items to retrieve (default 10, max 100).
10
+ after:
11
+ type: string
12
+ required: false
13
+ description: Pagination cursor for retrieving next page of results.
14
+ properties:
15
+ type: array
16
+ required: false
17
+ description: Array of property names to retrieve.
18
+
19
+ execution:
20
+ type: http
21
+ method: GET
22
+ url: 'https://api.hubapi.com/crm/v3/objects/line_items'
23
+ headers:
24
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
25
+ query_params:
26
+ limit: '{limit}'
27
+ after: '{after}'
28
+ properties: '{properties}'
29
+ timeout: 30000
30
+
31
+ authentication:
32
+ type: bearer
33
+ location: header
34
+ name: Authorization
35
+
36
+ output_schema:
37
+ type: object
38
+ properties:
39
+ results:
40
+ type: array
41
+ paging:
42
+ type: object
43
+
44
+ error_handling:
45
+ retry: 2
46
+ backoff_type: exponential
47
+ initial_delay_ms: 500
48
+
49
+ requires_approval: false
50
+
51
+ examples:
52
+ - name: List line items
53
+ params:
54
+ limit: 50
55
+ expected_result: Array of up to 50 line items
@@ -0,0 +1,55 @@
1
+ name: hubspot-list-orders
2
+ version: '1.0.0'
3
+ description: List orders from HubSpot CRM with pagination support.
4
+
5
+ parameters:
6
+ limit:
7
+ type: number
8
+ required: false
9
+ description: Maximum number of orders to retrieve (default 10, max 100).
10
+ after:
11
+ type: string
12
+ required: false
13
+ description: Pagination cursor for retrieving next page of results.
14
+ properties:
15
+ type: array
16
+ required: false
17
+ description: Array of property names to retrieve.
18
+
19
+ execution:
20
+ type: http
21
+ method: GET
22
+ url: 'https://api.hubapi.com/crm/v3/objects/orders'
23
+ headers:
24
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
25
+ query_params:
26
+ limit: '{limit}'
27
+ after: '{after}'
28
+ properties: '{properties}'
29
+ timeout: 30000
30
+
31
+ authentication:
32
+ type: bearer
33
+ location: header
34
+ name: Authorization
35
+
36
+ output_schema:
37
+ type: object
38
+ properties:
39
+ results:
40
+ type: array
41
+ paging:
42
+ type: object
43
+
44
+ error_handling:
45
+ retry: 2
46
+ backoff_type: exponential
47
+ initial_delay_ms: 500
48
+
49
+ requires_approval: false
50
+
51
+ examples:
52
+ - name: List orders
53
+ params:
54
+ limit: 50
55
+ expected_result: Array of up to 50 orders
@@ -0,0 +1,55 @@
1
+ name: hubspot-list-products
2
+ version: '1.0.0'
3
+ description: List products from HubSpot CRM with pagination support.
4
+
5
+ parameters:
6
+ limit:
7
+ type: number
8
+ required: false
9
+ description: Maximum number of products to retrieve (default 10, max 100).
10
+ after:
11
+ type: string
12
+ required: false
13
+ description: Pagination cursor for retrieving next page of results.
14
+ properties:
15
+ type: array
16
+ required: false
17
+ description: Array of property names to retrieve.
18
+
19
+ execution:
20
+ type: http
21
+ method: GET
22
+ url: 'https://api.hubapi.com/crm/v3/objects/products'
23
+ headers:
24
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
25
+ query_params:
26
+ limit: '{limit}'
27
+ after: '{after}'
28
+ properties: '{properties}'
29
+ timeout: 30000
30
+
31
+ authentication:
32
+ type: bearer
33
+ location: header
34
+ name: Authorization
35
+
36
+ output_schema:
37
+ type: object
38
+ properties:
39
+ results:
40
+ type: array
41
+ paging:
42
+ type: object
43
+
44
+ error_handling:
45
+ retry: 2
46
+ backoff_type: exponential
47
+ initial_delay_ms: 500
48
+
49
+ requires_approval: false
50
+
51
+ examples:
52
+ - name: List products
53
+ params:
54
+ limit: 50
55
+ expected_result: Array of up to 50 products
@@ -0,0 +1,49 @@
1
+ name: hubspot-list-tickets
2
+ version: '1.0.0'
3
+ description: List all tickets from HubSpot CRM with pagination.
4
+
5
+ parameters:
6
+ limit:
7
+ type: number
8
+ required: false
9
+ description: Maximum number of tickets to return (default 10, max 100).
10
+ after:
11
+ type: string
12
+ required: false
13
+ description: Pagination cursor to get next batch of tickets.
14
+
15
+ execution:
16
+ type: http
17
+ method: GET
18
+ url: 'https://api.hubapi.com/crm/v3/objects/tickets'
19
+ query_params:
20
+ limit: '{limit}'
21
+ after: '{after}'
22
+ headers:
23
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
24
+ timeout: 30000
25
+
26
+ authentication:
27
+ type: bearer
28
+ location: header
29
+ name: Authorization
30
+ notes:
31
+ env: MATIMO_HUBSPOT_API_KEY
32
+
33
+ output_schema:
34
+ type: object
35
+ properties:
36
+ results: { type: array }
37
+ paging: { type: object }
38
+ required: [results]
39
+
40
+ error_handling:
41
+ retry: 2
42
+ backoff_type: exponential
43
+ initial_delay_ms: 500
44
+
45
+ examples:
46
+ - name: 'List first 10 tickets'
47
+ params:
48
+ limit: 10
49
+ expected_result: 'Array of 10 tickets.'
@@ -0,0 +1,54 @@
1
+ name: hubspot-update-company
2
+ version: '1.0.0'
3
+ description: Update an existing company in HubSpot CRM.
4
+
5
+ parameters:
6
+ id:
7
+ type: string
8
+ required: true
9
+ description: The HubSpot company ID to update.
10
+ properties:
11
+ type: object
12
+ required: true
13
+ description: Object containing company properties to update.
14
+
15
+ execution:
16
+ type: http
17
+ method: PATCH
18
+ url: 'https://api.hubapi.com/crm/v3/objects/companies/{id}'
19
+ headers:
20
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
21
+ Content-Type: application/json
22
+ body:
23
+ properties: '{properties}'
24
+ timeout: 30000
25
+
26
+ authentication:
27
+ type: bearer
28
+ location: header
29
+ name: Authorization
30
+ notes:
31
+ env: MATIMO_HUBSPOT_API_KEY
32
+
33
+ requires_approval: true
34
+
35
+ output_schema:
36
+ type: object
37
+ properties:
38
+ id: { type: string }
39
+ properties: { type: object }
40
+ updatedAt: { type: string }
41
+ required: [id, properties]
42
+
43
+ error_handling:
44
+ retry: 2
45
+ backoff_type: exponential
46
+ initial_delay_ms: 500
47
+
48
+ examples:
49
+ - name: 'Update company name'
50
+ params:
51
+ id: '456'
52
+ properties:
53
+ name: 'Updated Company Name'
54
+ expected_result: 'Updated company with new name.'
@@ -0,0 +1,62 @@
1
+ name: hubspot-update-contact
2
+ version: '1.0.0'
3
+ description: Update an existing contact in HubSpot CRM.
4
+
5
+ parameters:
6
+ id:
7
+ type: string
8
+ required: true
9
+ description: The HubSpot contact ID to update.
10
+ properties:
11
+ type: object
12
+ required: true
13
+ description: Object containing contact properties to update (e.g., firstname, lastname, email, phone).
14
+
15
+ execution:
16
+ type: http
17
+ method: PATCH
18
+ url: 'https://api.hubapi.com/crm/v3/objects/contacts/{id}'
19
+ headers:
20
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
21
+ Content-Type: application/json
22
+ body:
23
+ properties: '{properties}'
24
+ timeout: 30000
25
+
26
+ authentication:
27
+ type: bearer
28
+ location: header
29
+ name: Authorization
30
+ notes:
31
+ env: MATIMO_HUBSPOT_API_KEY
32
+
33
+ requires_approval: true
34
+
35
+ output_schema:
36
+ type: object
37
+ properties:
38
+ id: { type: string }
39
+ properties: { type: object }
40
+ updatedAt: { type: string }
41
+ required: [id, properties]
42
+
43
+ error_handling:
44
+ retry: 2
45
+ backoff_type: exponential
46
+ initial_delay_ms: 500
47
+
48
+ examples:
49
+ - name: 'Update contact email'
50
+ params:
51
+ id: '123'
52
+ properties:
53
+ email: 'newemail@example.com'
54
+ expected_result: 'Updated contact with new email.'
55
+ - name: 'Update multiple properties'
56
+ params:
57
+ id: '123'
58
+ properties:
59
+ firstname: 'Jane'
60
+ lastname: 'Doe'
61
+ phone: '+1-555-0100'
62
+ expected_result: 'Updated contact with new properties.'
@@ -0,0 +1,57 @@
1
+ name: hubspot-update-custom-object
2
+ version: '1.0.0'
3
+ description: Update a custom object in HubSpot CRM.
4
+
5
+ parameters:
6
+ object_type:
7
+ type: string
8
+ required: true
9
+ description: The custom object type ID (e.g., 'my_custom_object').
10
+ id:
11
+ type: string
12
+ required: true
13
+ description: The custom object ID.
14
+ properties:
15
+ type: object
16
+ required: true
17
+ description: Object containing properties to update.
18
+
19
+ execution:
20
+ type: http
21
+ method: PATCH
22
+ url: 'https://api.hubapi.com/crm/v3/objects/{object_type}/{id}'
23
+ headers:
24
+ Authorization: 'Bearer {MATIMO_HUBSPOT_API_KEY}'
25
+ Content-Type: application/json
26
+ body:
27
+ properties: '{properties}'
28
+ timeout: 30000
29
+
30
+ authentication:
31
+ type: bearer
32
+ location: header
33
+ name: Authorization
34
+
35
+ output_schema:
36
+ type: object
37
+ properties:
38
+ id:
39
+ type: string
40
+ properties:
41
+ type: object
42
+
43
+ error_handling:
44
+ retry: 2
45
+ backoff_type: exponential
46
+ initial_delay_ms: 500
47
+
48
+ requires_approval: true
49
+
50
+ examples:
51
+ - name: Update a custom object
52
+ params:
53
+ object_type: my_custom_object
54
+ id: "12345"
55
+ properties:
56
+ name: Updated Name
57
+ expected_result: Custom object updated