From 1ef8fb57bc6999d2050b10160a286ffb5dd16bad Mon Sep 17 00:00:00 2001 From: gregfromstl Date: Thu, 12 Dec 2024 20:38:37 -0800 Subject: [PATCH] feat(service-utils): analytics and social services --- .changeset/shaggy-carrots-listen.md | 5 +++++ packages/service-utils/src/core/api.ts | 8 ++++++++ packages/service-utils/src/core/services.ts | 14 ++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 .changeset/shaggy-carrots-listen.md diff --git a/.changeset/shaggy-carrots-listen.md b/.changeset/shaggy-carrots-listen.md new file mode 100644 index 00000000000..d29755e4895 --- /dev/null +++ b/.changeset/shaggy-carrots-listen.md @@ -0,0 +1,5 @@ +--- +"@thirdweb-dev/service-utils": patch +--- + +Adds definitions for analytics and social services diff --git a/packages/service-utils/src/core/api.ts b/packages/service-utils/src/core/api.ts index 23380a102d3..bb62dae79fa 100644 --- a/packages/service-utils/src/core/api.ts +++ b/packages/service-utils/src/core/api.ts @@ -84,6 +84,14 @@ export type ProjectResponse = { name: "nebula"; actions: never[]; } + | { + name: "analytics"; + actions: never[]; + } + | { + name: "social"; + actions: never[]; + } | { name: "bundler"; actions: never[]; diff --git a/packages/service-utils/src/core/services.ts b/packages/service-utils/src/core/services.ts index e0abdb11a9f..f269fe07fbe 100644 --- a/packages/service-utils/src/core/services.ts +++ b/packages/service-utils/src/core/services.ts @@ -73,6 +73,20 @@ export const SERVICE_DEFINITIONS = { // all actions allowed actions: [], }, + analytics: { + name: "analytics", + title: "Analytics", + description: "Track usage across thirdweb services", + // all actions allowed + actions: [], + }, + social: { + name: "social", + title: "Social", + description: "Get social data across decentralized protocols", + // all actions allowed + actions: [], + }, } as const; export const SERVICE_NAMES = Object.keys(