@friggframework/core 2.0.0--canary.690.08cd07e.0 → 2.0.0--canary.693.d8859c2.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.
- package/CLAUDE.md +0 -28
- package/README.md +0 -105
- package/application/commands/integration-commands.js +10 -20
- package/application/commands/scheduler-commands.js +7 -11
- package/application/commands/user-commands.js +5 -17
- package/application/index.js +2 -6
- package/core/Worker.js +7 -31
- package/core/create-handler.js +0 -9
- package/credential/repositories/credential-repository-documentdb.js +0 -34
- package/credential/repositories/credential-repository-interface.js +0 -15
- package/credential/repositories/credential-repository-mongo.js +0 -23
- package/credential/repositories/credential-repository-postgres.js +0 -28
- package/database/config.js +24 -48
- package/database/documentdb-utils.js +0 -2
- package/database/encryption/encryption-schema-registry.js +12 -93
- package/database/prisma.js +2 -4
- package/errors/index.js +4 -0
- package/errors/mapping-already-exists-error.js +14 -0
- package/generated/prisma-mongodb/edge.js +38 -33
- package/generated/prisma-mongodb/index-browser.js +35 -30
- package/generated/prisma-mongodb/index.d.ts +1880 -3191
- package/generated/prisma-mongodb/index.js +38 -33
- package/generated/prisma-mongodb/package.json +1 -1
- package/generated/prisma-mongodb/schema.prisma +50 -86
- package/generated/prisma-mongodb/wasm.js +38 -33
- package/generated/prisma-postgresql/edge.js +38 -33
- package/generated/prisma-postgresql/index-browser.js +35 -30
- package/generated/prisma-postgresql/index.d.ts +2050 -3390
- package/generated/prisma-postgresql/index.js +38 -33
- package/generated/prisma-postgresql/package.json +1 -1
- package/generated/prisma-postgresql/schema.prisma +48 -81
- package/generated/prisma-postgresql/wasm.js +38 -33
- package/handlers/WEBHOOKS.md +29 -0
- package/handlers/app-definition-loader.js +19 -128
- package/handlers/app-handler-helpers.js +3 -25
- package/handlers/backend-utils.js +25 -31
- package/handlers/middleware/admin-auth.js +1 -14
- package/handlers/routers/auth.js +10 -46
- package/handlers/routers/health.js +4 -13
- package/handlers/routers/integration-defined-routers.js +92 -144
- package/handlers/routers/integration-webhook-routers.js +64 -102
- package/handlers/workers/integration-defined-workers.js +2 -5
- package/index.js +3 -65
- package/infrastructure/scheduler/index.js +6 -19
- package/infrastructure/scheduler/scheduler-service-factory.js +7 -55
- package/integrations/data-defined/README.md +169 -0
- package/integrations/data-defined/canonical.js +11 -0
- package/integrations/data-defined/capabilities/acmeerp.capabilities.json +608 -0
- package/integrations/data-defined/capabilities/asana.capabilities.json +265 -0
- package/integrations/data-defined/capabilities/calendly.capabilities.json +385 -0
- package/integrations/data-defined/capabilities/docusign.capabilities.json +314 -0
- package/integrations/data-defined/capabilities/fathom.capabilities.json +228 -0
- package/integrations/data-defined/capabilities/github.capabilities.json +563 -0
- package/integrations/data-defined/capabilities/hubspot.capabilities.json +715 -0
- package/integrations/data-defined/capabilities/jira.capabilities.json +376 -0
- package/integrations/data-defined/capabilities/klaviyo.capabilities.json +475 -0
- package/integrations/data-defined/capabilities/linear.capabilities.json +324 -0
- package/integrations/data-defined/capabilities/netsuite.capabilities.json +491 -0
- package/integrations/data-defined/capabilities/notion.capabilities.json +208 -0
- package/integrations/data-defined/capabilities/phone.capabilities.json +470 -0
- package/integrations/data-defined/capabilities/pipedrive.capabilities.json +388 -0
- package/integrations/data-defined/capabilities/quickbooks.capabilities.json +615 -0
- package/integrations/data-defined/capabilities/salesforce.capabilities.json +507 -0
- package/integrations/data-defined/capabilities/shopify.capabilities.json +1082 -0
- package/integrations/data-defined/capabilities/slack.capabilities.json +363 -0
- package/integrations/data-defined/capabilities/stripe.capabilities.json +580 -0
- package/integrations/data-defined/capabilities/webflow.capabilities.json +196 -0
- package/integrations/data-defined/capabilities/zendesk.capabilities.json +409 -0
- package/integrations/data-defined/compile.js +77 -0
- package/integrations/data-defined/config-form.js +110 -0
- package/integrations/data-defined/data-defined-integration.js +366 -0
- package/integrations/data-defined/examples/acme-erp-quickbooks.definition.json +467 -0
- package/integrations/data-defined/examples/asana-slack.definition.json +220 -0
- package/integrations/data-defined/examples/calendly-salesforce.definition.json +459 -0
- package/integrations/data-defined/examples/docusign-salesforce.definition.json +305 -0
- package/integrations/data-defined/examples/fathom-hubspot-notion.definition.json +575 -0
- package/integrations/data-defined/examples/github-linear.definition.json +316 -0
- package/integrations/data-defined/examples/hubspot-slack.definition.json +409 -0
- package/integrations/data-defined/examples/klaviyo-hubspot.definition.json +339 -0
- package/integrations/data-defined/examples/phone-hubspot.definition.json +637 -0
- package/integrations/data-defined/examples/pipedrive-hubspot.definition.json +136 -0
- package/integrations/data-defined/examples/pipedrive-phone.definition.json +340 -0
- package/integrations/data-defined/examples/records/phone-hubspot.definition-version.json +652 -0
- package/integrations/data-defined/examples/records/phone-hubspot.integration.json +86 -0
- package/integrations/data-defined/examples/records/phone-hubspot.mappings.json +39 -0
- package/integrations/data-defined/examples/records/phone-hubspot.workflow-run.json +62 -0
- package/integrations/data-defined/examples/shopify-klaviyo.definition.json +488 -0
- package/integrations/data-defined/examples/shopify-netsuite.definition.json +622 -0
- package/integrations/data-defined/examples/stripe-quickbooks.definition.json +476 -0
- package/integrations/data-defined/examples/webflow-hubspot-slack.definition.json +262 -0
- package/integrations/data-defined/examples/zendesk-jira.definition.json +604 -0
- package/integrations/data-defined/expressions.js +225 -0
- package/integrations/data-defined/index.js +39 -0
- package/integrations/data-defined/interpreter.js +89 -0
- package/integrations/data-defined/manifests.js +125 -0
- package/integrations/data-defined/repositories/definition-version-repository.js +67 -0
- package/integrations/data-defined/repositories/workflow-run-repository.js +59 -0
- package/integrations/data-defined/router.js +97 -0
- package/integrations/data-defined/runtime.js +208 -0
- package/integrations/data-defined/schema/capability-manifest.v0.1.schema.json +377 -0
- package/integrations/data-defined/schema/installation.v0.1.schema.json +83 -0
- package/integrations/data-defined/schema/integration-definition.v0.1.schema.json +848 -0
- package/integrations/data-defined/schema/records.md +98 -0
- package/integrations/data-defined/schema-check.js +58 -0
- package/integrations/data-defined/scripts/validate.js +66 -0
- package/integrations/data-defined/steps.js +89 -0
- package/integrations/data-defined/transforms.js +91 -0
- package/integrations/data-defined/use-cases/definition-use-cases.js +187 -0
- package/integrations/data-defined/validate.js +370 -0
- package/integrations/data-defined/versioning.js +161 -0
- package/integrations/data-defined/webhooks.js +119 -0
- package/integrations/index.js +0 -1
- package/integrations/integration-base.js +29 -0
- package/integrations/integration-router.js +101 -131
- package/integrations/repositories/integration-mapping-repository-documentdb.js +50 -0
- package/integrations/repositories/integration-mapping-repository-interface.js +15 -0
- package/integrations/repositories/integration-mapping-repository-mongo.js +29 -0
- package/integrations/repositories/integration-mapping-repository-postgres.js +30 -0
- package/integrations/repositories/integration-mapping-repository.js +29 -0
- package/integrations/repositories/integration-repository-documentdb.js +3 -35
- package/integrations/repositories/integration-repository-interface.js +1 -17
- package/integrations/repositories/integration-repository-mongo.js +77 -60
- package/integrations/repositories/integration-repository-postgres.js +76 -62
- package/integrations/repositories/process-repository-mongo.js +1 -1
- package/integrations/tests/doubles/test-integration-repository.js +1 -12
- package/integrations/use-cases/create-integration.js +20 -55
- package/integrations/use-cases/get-integrations-for-user.js +40 -80
- package/integrations/use-cases/index.js +1 -7
- package/integrations/utils/map-integration-dto.js +14 -43
- package/modules/index.js +0 -14
- package/modules/module-factory.js +0 -12
- package/modules/module.js +2 -53
- package/modules/repositories/module-repository-documentdb.js +6 -51
- package/modules/repositories/module-repository-interface.js +2 -19
- package/modules/repositories/module-repository-mongo.js +74 -67
- package/modules/repositories/module-repository-postgres.js +74 -66
- package/modules/repositories/module-repository.js +1 -2
- package/modules/requester/requester.js +5 -35
- package/modules/use-cases/get-entities-for-user.js +13 -26
- package/modules/use-cases/get-entity-options-by-id.js +4 -10
- package/modules/use-cases/get-entity-options-by-type.js +1 -1
- package/modules/use-cases/get-module-instance-from-type.js +1 -1
- package/modules/use-cases/get-module.js +4 -10
- package/modules/use-cases/process-authorization-callback.js +19 -53
- package/modules/use-cases/refresh-entity-options.js +4 -10
- package/modules/use-cases/test-module-auth.js +4 -10
- package/package.json +6 -6
- package/prisma-mongodb/schema.prisma +50 -86
- package/prisma-postgresql/migrations/20261018000000_add_data_defined_integrations/migration.sql +66 -0
- package/prisma-postgresql/schema.prisma +48 -81
- package/queues/index.js +0 -25
- package/types/index.d.ts +0 -2
- package/user/repositories/user-repository-documentdb.js +2 -27
- package/user/repositories/user-repository-interface.js +0 -18
- package/user/repositories/user-repository-mongo.js +0 -24
- package/user/repositories/user-repository-postgres.js +0 -18
- package/user/use-cases/authenticate-user.js +1 -7
- package/user/use-cases/get-user-from-adopter-jwt.js +124 -95
- package/user/use-cases/get-user-from-x-frigg-headers.js +80 -83
- package/user/user.js +1 -64
- package/credential/use-cases/credential-operations-for-user.js +0 -202
- package/credential/use-cases/reauthorize-credential-for-user.js +0 -73
- package/database/organization-where.js +0 -18
- package/database/unique-violation.js +0 -25
- package/extensions/bootstrap-runner.js +0 -43
- package/extensions/extension-loader.js +0 -187
- package/extensions/index.js +0 -41
- package/extensions/initialize-app.js +0 -123
- package/extensions/route-mounter.js +0 -103
- package/extensions/schema-composer.js +0 -188
- package/infrastructure/scheduler/netlify-scheduler-adapter.js +0 -216
- package/infrastructure/scheduler/scheduled-job-repository.js +0 -118
- package/integrations/repositories/integration-not-found.js +0 -14
- package/integrations/schedule-config.js +0 -80
- package/integrations/use-cases/dispatch-ongoing-syncs.js +0 -100
- package/integrations/use-cases/integration-operations-for-user.js +0 -256
- package/integrations/use-cases/resolve-integration-ownership.js +0 -177
- package/management-api/create-management-api-router.js +0 -49
- package/management-api/error-response.js +0 -116
- package/management-api/management-api-config.js +0 -151
- package/management-api/meta-router.js +0 -76
- package/management-api/openapi/build-openapi.js +0 -144
- package/management-api/openapi/components.js +0 -415
- package/management-api/openapi/v1-operations.js +0 -83
- package/management-api/openapi/v2-operations.js +0 -264
- package/management-api/route-registry.js +0 -411
- package/management-api/test-support/http-client.js +0 -39
- package/management-api/use-cases/get-management-api-meta.js +0 -57
- package/management-api/v1-deprecation.js +0 -120
- package/management-api/v2/create-v2-router.js +0 -85
- package/management-api/v2/dependencies.js +0 -281
- package/management-api/v2/dto.js +0 -143
- package/management-api/v2/handlers/authorization.js +0 -94
- package/management-api/v2/handlers/credentials.js +0 -33
- package/management-api/v2/handlers/entities.js +0 -77
- package/management-api/v2/handlers/integrations.js +0 -128
- package/management-api/v2/handlers/proxy.js +0 -34
- package/management-api/v2/request.js +0 -85
- package/management-api/v2/test-support/fake-dependencies.js +0 -103
- package/modules/domain/authorization-session.js +0 -144
- package/modules/entity-scope.js +0 -15
- package/modules/entity-type-registry.js +0 -311
- package/modules/proxy/proxy-bases.js +0 -169
- package/modules/proxy/proxy-errors.js +0 -31
- package/modules/proxy/proxy-path.js +0 -183
- package/modules/proxy/proxy-policy.js +0 -277
- package/modules/repositories/authorization-session-repository-documentdb.js +0 -112
- package/modules/repositories/authorization-session-repository-factory.js +0 -31
- package/modules/repositories/authorization-session-repository-interface.js +0 -47
- package/modules/repositories/authorization-session-repository-prisma.js +0 -87
- package/modules/repositories/entity-not-found.js +0 -18
- package/modules/requester/proxy-request.js +0 -245
- package/modules/scope-config.js +0 -192
- package/modules/scope-policy.js +0 -112
- package/modules/scope-resolution.js +0 -288
- package/modules/scope-visibility.js +0 -247
- package/modules/tests/doubles/in-memory-authorization-session-repository.js +0 -45
- package/modules/tests/doubles/ownership-matching.js +0 -18
- package/modules/use-cases/authorize-entity-for-user.js +0 -61
- package/modules/use-cases/create-entity-from-credential.js +0 -113
- package/modules/use-cases/entity-operations-for-user.js +0 -162
- package/modules/use-cases/entity-types.js +0 -139
- package/modules/use-cases/execute-entity-proxy-request.js +0 -331
- package/modules/use-cases/get-authorization-requirements.js +0 -100
- package/modules/use-cases/get-entity-module-for-user.js +0 -113
- package/modules/use-cases/manage-access.js +0 -21
- package/modules/use-cases/multi-step-authorization.js +0 -329
- package/prisma-postgresql/migrations/20261003000000_add_authorization_session/migration.sql +0 -28
- package/prisma-postgresql/migrations/20261015000000_add_organization_membership/migration.sql +0 -26
- package/prisma-postgresql/migrations/20261016000000_add_entity_integration_organization/migration.sql +0 -25
- package/prisma-postgresql/migrations/20261017000000_add_scheduled_job/migration.sql +0 -28
- package/providers/index.js +0 -23
- package/providers/resolve-provider.js +0 -93
- package/providers/runtime-detection.js +0 -124
- package/queues/providers/index.js +0 -11
- package/queues/providers/netlify-background-provider.js +0 -150
- package/queues/providers/qstash-queue-provider.js +0 -219
- package/queues/providers/sqs-queue-provider.js +0 -70
- package/queues/queue-client-interface.js +0 -55
- package/queues/queue-message-auth.js +0 -193
- package/queues/queue-provider-factory.js +0 -101
- package/queues/queue-provider.js +0 -65
- package/queues/sqs-queue-client.js +0 -81
- package/types/modules/index.d.ts +0 -214
- package/types/user/index.d.ts +0 -134
- package/user/adopter-jwt-config.js +0 -177
- package/user/adopter-jwt-errors.js +0 -59
- package/user/adopter-token-verifier.js +0 -122
- package/user/app-user-helpers.js +0 -97
- package/user/create-user-authentication.js +0 -64
- package/user/membership.js +0 -51
- package/user/repositories/organization-membership-record.js +0 -19
- package/user/repositories/organization-membership-repository-documentdb.js +0 -106
- package/user/repositories/organization-membership-repository-factory.js +0 -42
- package/user/repositories/organization-membership-repository-interface.js +0 -57
- package/user/repositories/organization-membership-repository-mongo.js +0 -13
- package/user/repositories/organization-membership-repository-postgres.js +0 -29
- package/user/repositories/organization-membership-repository-prisma.js +0 -81
- package/user/tests/doubles/adopter-jwt-fixtures.js +0 -220
- package/user/use-cases/ensure-organization-membership.js +0 -92
- package/user/use-cases/find-individual-users-by-organization.js +0 -54
|
@@ -0,0 +1,475 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://friggframework.org/schemas/capability-manifest/v0.1.json",
|
|
3
|
+
"module": "klaviyo",
|
|
4
|
+
"label": "Klaviyo",
|
|
5
|
+
"package": "@friggframework/api-module-klaviyo",
|
|
6
|
+
"version": "1.1.0",
|
|
7
|
+
"auth": "oauth2",
|
|
8
|
+
"objects": {
|
|
9
|
+
"profile": {
|
|
10
|
+
"label": "Profile",
|
|
11
|
+
"fields": [
|
|
12
|
+
{
|
|
13
|
+
"name": "id",
|
|
14
|
+
"type": "id",
|
|
15
|
+
"readOnly": true
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "attributes.email",
|
|
19
|
+
"type": "email",
|
|
20
|
+
"tag": "contact.email"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "attributes.phone_number",
|
|
24
|
+
"type": "phone",
|
|
25
|
+
"tag": "contact.phone"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "attributes.first_name",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"tag": "person.givenName"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "attributes.last_name",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"tag": "person.familyName"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "attributes.organization",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"tag": "organization.name"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "attributes.title",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"tag": "person.jobTitle"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "attributes.external_id",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"tag": "record.externalId"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "attributes.location.city",
|
|
54
|
+
"type": "string",
|
|
55
|
+
"tag": "address.locality"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"name": "attributes.location.region",
|
|
59
|
+
"type": "string",
|
|
60
|
+
"tag": "address.region"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "attributes.location.country",
|
|
64
|
+
"type": "string",
|
|
65
|
+
"tag": "address.country"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"name": "attributes.location.zip",
|
|
69
|
+
"type": "string",
|
|
70
|
+
"tag": "address.postalCode"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "attributes.subscriptions.email.marketing.consent",
|
|
74
|
+
"type": "enum",
|
|
75
|
+
"tag": "contact.emailConsent",
|
|
76
|
+
"values": [
|
|
77
|
+
"SUBSCRIBED",
|
|
78
|
+
"UNSUBSCRIBED",
|
|
79
|
+
"NEVER_SUBSCRIBED"
|
|
80
|
+
],
|
|
81
|
+
"readOnly": true
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "attributes.properties.lifetime_value",
|
|
85
|
+
"type": "number",
|
|
86
|
+
"tag": "customer.lifetimeValue"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"name": "attributes.properties.shopify_tags",
|
|
90
|
+
"type": "string",
|
|
91
|
+
"tag": "record.tags"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "attributes.properties.hubspot_lifecycle_stage",
|
|
95
|
+
"type": "string",
|
|
96
|
+
"tag": "contact.lifecycleStage"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"name": "attributes.created",
|
|
100
|
+
"type": "datetime",
|
|
101
|
+
"tag": "record.createdAt",
|
|
102
|
+
"readOnly": true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"name": "attributes.updated",
|
|
106
|
+
"type": "datetime",
|
|
107
|
+
"tag": "record.updatedAt",
|
|
108
|
+
"readOnly": true
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
},
|
|
112
|
+
"list": {
|
|
113
|
+
"label": "List",
|
|
114
|
+
"fields": [
|
|
115
|
+
{
|
|
116
|
+
"name": "id",
|
|
117
|
+
"type": "id",
|
|
118
|
+
"readOnly": true
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "attributes.name",
|
|
122
|
+
"type": "string",
|
|
123
|
+
"tag": "list.name"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"name": "attributes.created",
|
|
127
|
+
"type": "datetime",
|
|
128
|
+
"readOnly": true
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
"event": {
|
|
133
|
+
"label": "Event",
|
|
134
|
+
"fields": [
|
|
135
|
+
{
|
|
136
|
+
"name": "id",
|
|
137
|
+
"type": "id",
|
|
138
|
+
"readOnly": true
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "attributes.metric_name",
|
|
142
|
+
"type": "string"
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"name": "attributes.properties",
|
|
146
|
+
"type": "json"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "attributes.value",
|
|
150
|
+
"type": "number"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "attributes.time",
|
|
154
|
+
"type": "datetime"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "attributes.unique_id",
|
|
158
|
+
"type": "string"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"events": {
|
|
164
|
+
"list.subscribed": {
|
|
165
|
+
"delivery": "webhook",
|
|
166
|
+
"object": "profile",
|
|
167
|
+
"subscribe": "webhook.create",
|
|
168
|
+
"description": "Webhook topic event:klaviyo.subscribed_to_list. $.record is the profile; the list is in data.attributes.event_properties.",
|
|
169
|
+
"payload": {
|
|
170
|
+
"id": "01JAEXAMPLE7Q9VK3D6M2N8P4R",
|
|
171
|
+
"topic": "event:klaviyo.subscribed_to_list",
|
|
172
|
+
"created_at": "2026-10-18T16:02:11Z",
|
|
173
|
+
"data": {
|
|
174
|
+
"type": "event",
|
|
175
|
+
"id": "4vRpBT",
|
|
176
|
+
"attributes": {
|
|
177
|
+
"metric_name": "Subscribed to List",
|
|
178
|
+
"datetime": "2026-10-18T16:02:10Z",
|
|
179
|
+
"event_properties": {
|
|
180
|
+
"list_id": "Y6nRLr",
|
|
181
|
+
"List": "VIP Customers",
|
|
182
|
+
"method": "Shopify"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"profile": {
|
|
186
|
+
"type": "profile",
|
|
187
|
+
"id": "01HV6N2Y4K9JQ3ZB8XWQ7T5R2M",
|
|
188
|
+
"email": "dana.reyes@example.com",
|
|
189
|
+
"phone_number": "+15125550142",
|
|
190
|
+
"first_name": "Dana",
|
|
191
|
+
"last_name": "Reyes",
|
|
192
|
+
"organization": "Reyes Coffee Co",
|
|
193
|
+
"external_id": "7012345678901"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"record": "data.profile",
|
|
198
|
+
"match": "event:klaviyo.subscribed_to_list"
|
|
199
|
+
},
|
|
200
|
+
"profile.unsubscribed": {
|
|
201
|
+
"delivery": "webhook",
|
|
202
|
+
"object": "profile",
|
|
203
|
+
"subscribe": "webhook.create",
|
|
204
|
+
"description": "Webhook topic event:klaviyo.unsubscribed (email marketing). Global unsubscribe, not one list.",
|
|
205
|
+
"payload": {
|
|
206
|
+
"id": "01JAEXAMPLE7Q9VK3D6M2N8P4R",
|
|
207
|
+
"topic": "event:klaviyo.unsubscribed",
|
|
208
|
+
"created_at": "2026-10-18T16:02:11Z",
|
|
209
|
+
"data": {
|
|
210
|
+
"type": "event",
|
|
211
|
+
"id": "4vRpBT",
|
|
212
|
+
"attributes": {
|
|
213
|
+
"metric_name": "Unsubscribed",
|
|
214
|
+
"datetime": "2026-10-18T16:02:10Z",
|
|
215
|
+
"event_properties": {
|
|
216
|
+
"channel": "email",
|
|
217
|
+
"method": "Unsubscribe link"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"profile": {
|
|
221
|
+
"type": "profile",
|
|
222
|
+
"id": "01HV6N2Y4K9JQ3ZB8XWQ7T5R2M",
|
|
223
|
+
"email": "dana.reyes@example.com",
|
|
224
|
+
"phone_number": "+15125550142",
|
|
225
|
+
"first_name": "Dana",
|
|
226
|
+
"last_name": "Reyes",
|
|
227
|
+
"organization": "Reyes Coffee Co",
|
|
228
|
+
"external_id": "7012345678901"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"record": "data.profile",
|
|
233
|
+
"match": "event:klaviyo.unsubscribed"
|
|
234
|
+
},
|
|
235
|
+
"profile.updated": {
|
|
236
|
+
"delivery": "poll",
|
|
237
|
+
"object": "profile",
|
|
238
|
+
"description": "Polled from GET /api/profiles?filter=greater-than(updated,<cursor>).",
|
|
239
|
+
"payload": {
|
|
240
|
+
"type": "profile",
|
|
241
|
+
"id": "01HV6N2Y4K9JQ3ZB8XWQ7T5R2M",
|
|
242
|
+
"attributes": {
|
|
243
|
+
"email": "dana.reyes@example.com",
|
|
244
|
+
"first_name": "Dana",
|
|
245
|
+
"last_name": "Reyes",
|
|
246
|
+
"updated": "2026-10-18T17:00:00Z"
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"webhook": {
|
|
252
|
+
"scope": "installation",
|
|
253
|
+
"topic": "{{body.topic}}",
|
|
254
|
+
"eventId": "{{body.id}}",
|
|
255
|
+
"verify": "verifyWebhookSignature"
|
|
256
|
+
},
|
|
257
|
+
"capabilities": {
|
|
258
|
+
"profile.get": {
|
|
259
|
+
"kind": "read",
|
|
260
|
+
"method": "getProfile",
|
|
261
|
+
"input": {
|
|
262
|
+
"id": {
|
|
263
|
+
"type": "string",
|
|
264
|
+
"required": true
|
|
265
|
+
},
|
|
266
|
+
"additionalFields": {
|
|
267
|
+
"type": "array"
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"output": "profile"
|
|
271
|
+
},
|
|
272
|
+
"profile.search": {
|
|
273
|
+
"kind": "search",
|
|
274
|
+
"method": "getProfiles",
|
|
275
|
+
"input": {
|
|
276
|
+
"email": {
|
|
277
|
+
"type": "string"
|
|
278
|
+
},
|
|
279
|
+
"phone_number": {
|
|
280
|
+
"type": "string"
|
|
281
|
+
},
|
|
282
|
+
"external_id": {
|
|
283
|
+
"type": "string"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"output": "profile[]"
|
|
287
|
+
},
|
|
288
|
+
"profile.list": {
|
|
289
|
+
"kind": "read",
|
|
290
|
+
"method": "listProfiles",
|
|
291
|
+
"input": {
|
|
292
|
+
"updatedSince": {
|
|
293
|
+
"type": "string"
|
|
294
|
+
},
|
|
295
|
+
"pageCursor": {
|
|
296
|
+
"type": "string"
|
|
297
|
+
},
|
|
298
|
+
"pageSize": {
|
|
299
|
+
"type": "number"
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"output": "page<profile>"
|
|
303
|
+
},
|
|
304
|
+
"profile.create": {
|
|
305
|
+
"kind": "write",
|
|
306
|
+
"method": "createProfile",
|
|
307
|
+
"input": {
|
|
308
|
+
"attributes": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"required": true
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"output": "profile"
|
|
314
|
+
},
|
|
315
|
+
"profile.update": {
|
|
316
|
+
"kind": "write",
|
|
317
|
+
"method": "updateProfile",
|
|
318
|
+
"input": {
|
|
319
|
+
"id": {
|
|
320
|
+
"type": "string",
|
|
321
|
+
"required": true
|
|
322
|
+
},
|
|
323
|
+
"attributes": {
|
|
324
|
+
"type": "object",
|
|
325
|
+
"required": true
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
"output": "profile"
|
|
329
|
+
},
|
|
330
|
+
"profile.upsert": {
|
|
331
|
+
"kind": "write",
|
|
332
|
+
"method": "createOrUpdateProfile",
|
|
333
|
+
"input": {
|
|
334
|
+
"attributes": {
|
|
335
|
+
"type": "object",
|
|
336
|
+
"required": true
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"output": "profile"
|
|
340
|
+
},
|
|
341
|
+
"profile.lists": {
|
|
342
|
+
"kind": "read",
|
|
343
|
+
"method": "getProfileLists",
|
|
344
|
+
"input": {
|
|
345
|
+
"id": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"required": true
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"output": "list[]"
|
|
351
|
+
},
|
|
352
|
+
"profile.subscribe": {
|
|
353
|
+
"kind": "write",
|
|
354
|
+
"method": "subscribeProfiles",
|
|
355
|
+
"input": {
|
|
356
|
+
"listId": {
|
|
357
|
+
"type": "string",
|
|
358
|
+
"required": true
|
|
359
|
+
},
|
|
360
|
+
"email": {
|
|
361
|
+
"type": "string"
|
|
362
|
+
},
|
|
363
|
+
"phoneNumber": {
|
|
364
|
+
"type": "string"
|
|
365
|
+
},
|
|
366
|
+
"channels": {
|
|
367
|
+
"type": "array"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"output": "void"
|
|
371
|
+
},
|
|
372
|
+
"profile.unsubscribe": {
|
|
373
|
+
"kind": "write",
|
|
374
|
+
"method": "unsubscribeProfiles",
|
|
375
|
+
"input": {
|
|
376
|
+
"email": {
|
|
377
|
+
"type": "string",
|
|
378
|
+
"required": true
|
|
379
|
+
},
|
|
380
|
+
"listId": {
|
|
381
|
+
"type": "string"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"output": "void"
|
|
385
|
+
},
|
|
386
|
+
"list.list": {
|
|
387
|
+
"kind": "read",
|
|
388
|
+
"method": "getLists",
|
|
389
|
+
"input": {},
|
|
390
|
+
"output": "list[]"
|
|
391
|
+
},
|
|
392
|
+
"list.addProfiles": {
|
|
393
|
+
"kind": "write",
|
|
394
|
+
"method": "addProfilesToList",
|
|
395
|
+
"input": {
|
|
396
|
+
"listId": {
|
|
397
|
+
"type": "string",
|
|
398
|
+
"required": true
|
|
399
|
+
},
|
|
400
|
+
"profileIds": {
|
|
401
|
+
"type": "array",
|
|
402
|
+
"required": true
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"output": "void"
|
|
406
|
+
},
|
|
407
|
+
"event.create": {
|
|
408
|
+
"kind": "write",
|
|
409
|
+
"method": "createEvent",
|
|
410
|
+
"input": {
|
|
411
|
+
"metric": {
|
|
412
|
+
"type": "string",
|
|
413
|
+
"required": true
|
|
414
|
+
},
|
|
415
|
+
"profile": {
|
|
416
|
+
"type": "object",
|
|
417
|
+
"required": true
|
|
418
|
+
},
|
|
419
|
+
"properties": {
|
|
420
|
+
"type": "object"
|
|
421
|
+
},
|
|
422
|
+
"value": {
|
|
423
|
+
"type": "number"
|
|
424
|
+
},
|
|
425
|
+
"time": {
|
|
426
|
+
"type": "string"
|
|
427
|
+
},
|
|
428
|
+
"uniqueId": {
|
|
429
|
+
"type": "string"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"output": "void"
|
|
433
|
+
},
|
|
434
|
+
"webhook.create": {
|
|
435
|
+
"kind": "subscribe",
|
|
436
|
+
"method": "createWebhook",
|
|
437
|
+
"input": {
|
|
438
|
+
"name": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"required": true
|
|
441
|
+
},
|
|
442
|
+
"endpointUrl": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"required": true
|
|
445
|
+
},
|
|
446
|
+
"topics": {
|
|
447
|
+
"type": "array",
|
|
448
|
+
"required": true
|
|
449
|
+
},
|
|
450
|
+
"secretKey": {
|
|
451
|
+
"type": "string"
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"output": "webhook"
|
|
455
|
+
},
|
|
456
|
+
"webhook.delete": {
|
|
457
|
+
"kind": "delete",
|
|
458
|
+
"method": "deleteWebhook",
|
|
459
|
+
"input": {
|
|
460
|
+
"id": {
|
|
461
|
+
"type": "string",
|
|
462
|
+
"required": true
|
|
463
|
+
}
|
|
464
|
+
},
|
|
465
|
+
"output": "void"
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
"options": {
|
|
469
|
+
"list": {
|
|
470
|
+
"capability": "list.list",
|
|
471
|
+
"label": "{{item.attributes.name}}",
|
|
472
|
+
"value": "$.item.id"
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|