@thirdweb-dev/service-utils 0.8.8-nightly-97c9ab7e1caa8b3e006ecc7f64b54b392ba83eda-20250209000329 → 0.8.8-nightly-cad9c74befe33bef2cc6a12a8ade8d9c996ffe41-20250209100117

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.
@@ -2,39 +2,41 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sendUsageV2Events = sendUsageV2Events;
4
4
  /**
5
- * Send events to Kafka.
6
- * This method may throw. To call this non-blocking:
5
+ * Send usageV2 events from either internal services or public clients.
6
+ *
7
+ * Exactly one authentication method must be provided:
8
+ * - serviceKey: for internal services
9
+ * - thirdwebClientId: for public clients (MUST be the user's project)
10
+ * - thirdwebSecretKey: for public clients (MUST be the user's project)
11
+ *
12
+ * NOTE: `team_id` is required if `serviceKey` is provided.
7
13
  *
14
+ * This method may throw. To call this non-blocking:
8
15
  * ```ts
9
- * void sendUsageV2Events(events, {
10
- * environment: "production",
11
- * serviceKey: "..."
12
- * }).catch(console.error)
16
+ * void sendUsageV2Events(...).catch((e) => console.error(e))
13
17
  * ```
14
- *
15
- * @param events - The events to send.
16
- * @param options.environment - The environment the service is running in.
17
- * @param options.serviceKey - The service key required for authentication.
18
18
  */
19
19
  async function sendUsageV2Events(events, options) {
20
20
  const baseUrl = options.environment === "production"
21
21
  ? "https://u.thirdweb.com"
22
22
  : "https://u.thirdweb-dev.com";
23
- // Unauthed calls are routed to the /client path
23
+ // Determine endpoint and auth header based on provided credentials.
24
24
  let url;
25
- let headers;
25
+ const headers = { "Content-Type": "application/json" };
26
26
  if (options.serviceKey) {
27
27
  url = `${baseUrl}/usage-v2/${options.source}`;
28
- headers = {
29
- "Content-Type": "application/json",
30
- "x-service-api-key": options.serviceKey,
31
- };
28
+ headers["x-service-api-key"] = options.serviceKey;
32
29
  }
33
- else {
30
+ else if (options.thirdwebSecretKey) {
31
+ url = `${baseUrl}/usage-v2/${options.source}/client`;
32
+ headers["x-secret-key"] = options.thirdwebSecretKey;
33
+ }
34
+ else if (options.thirdwebClientId) {
34
35
  url = `${baseUrl}/usage-v2/${options.source}/client`;
35
- headers = {
36
- "Content-Type": "application/json",
37
- };
36
+ headers["x-client-id"] = options.thirdwebClientId;
37
+ }
38
+ else {
39
+ throw new Error("[UsageV2] No authentication method provided.");
38
40
  }
39
41
  const resp = await fetch(url, {
40
42
  method: "POST",
@@ -42,7 +44,7 @@ async function sendUsageV2Events(events, options) {
42
44
  body: JSON.stringify({ events }),
43
45
  });
44
46
  if (!resp.ok) {
45
- throw new Error(`[UsageV2] unexpected response ${resp.status}: ${await resp.text()}`);
47
+ throw new Error(`[UsageV2] Unexpected response ${resp.status}: ${await resp.text()}`);
46
48
  }
47
49
  resp.body?.cancel();
48
50
  }
@@ -1 +1 @@
1
- {"version":3,"file":"usageV2.js","sourceRoot":"","sources":["../../../src/cf-worker/usageV2.ts"],"names":[],"mappings":";;AAiBA,8CAyCC;AAxDD;;;;;;;;;;;;;;GAcG;AACI,KAAK,UAAU,iBAAiB,CACrC,MAAsB,EACtB,OAIC;IAED,MAAM,OAAO,GACX,OAAO,CAAC,WAAW,KAAK,YAAY;QAClC,CAAC,CAAC,wBAAwB;QAC1B,CAAC,CAAC,4BAA4B,CAAC;IAEnC,gDAAgD;IAChD,IAAI,GAAW,CAAC;IAChB,IAAI,OAAoB,CAAC;IACzB,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,GAAG,GAAG,GAAG,OAAO,aAAa,OAAO,CAAC,MAAM,EAAE,CAAC;QAC9C,OAAO,GAAG;YACR,cAAc,EAAE,kBAAkB;YAClC,mBAAmB,EAAE,OAAO,CAAC,UAAU;SACxC,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,GAAG,GAAG,GAAG,OAAO,aAAa,OAAO,CAAC,MAAM,SAAS,CAAC;QACrD,OAAO,GAAG;YACR,cAAc,EAAE,kBAAkB;SACnC,CAAC;IACJ,CAAC;IA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AO,aAAa,OAAO,CAAC,MAAM,SAAS,CAAC;QACrD,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IACpD,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IAClE,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;QAC5B,MAAM,EAAE,MAAM;QACd,OAAO;QACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;KACjC,CAAC,CAAC;IAEH,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,iCAAiC,IAAI,CAAC,MAAM,KAAK,MAAM,IAAI,CAAC,IAAI,EAAE,EAAE,CACrE,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;AACtB,CAAC"}
@@ -1,37 +1,39 @@
1
1
  /**
2
- * Send events to Kafka.
3
- * This method may throw. To call this non-blocking:
2
+ * Send usageV2 events from either internal services or public clients.
3
+ *
4
+ * Exactly one authentication method must be provided:
5
+ * - serviceKey: for internal services
6
+ * - thirdwebClientId: for public clients (MUST be the user's project)
7
+ * - thirdwebSecretKey: for public clients (MUST be the user's project)
8
+ *
9
+ * NOTE: `team_id` is required if `serviceKey` is provided.
4
10
  *
11
+ * This method may throw. To call this non-blocking:
5
12
  * ```ts
6
- * void sendUsageV2Events(events, {
7
- * environment: "production",
8
- * serviceKey: "..."
9
- * }).catch(console.error)
13
+ * void sendUsageV2Events(...).catch((e) => console.error(e))
10
14
  * ```
11
- *
12
- * @param events - The events to send.
13
- * @param options.environment - The environment the service is running in.
14
- * @param options.serviceKey - The service key required for authentication.
15
15
  */
16
16
  export async function sendUsageV2Events(events, options) {
17
17
  const baseUrl = options.environment === "production"
18
18
  ? "https://u.thirdweb.com"
19
19
  : "https://u.thirdweb-dev.com";
20
- // Unauthed calls are routed to the /client path
20
+ // Determine endpoint and auth header based on provided credentials.
21
21
  let url;
22
- let headers;
22
+ const headers = { "Content-Type": "application/json" };
23
23
  if (options.serviceKey) {
24
24
  url = `${baseUrl}/usage-v2/${options.source}`;
25
- headers = {
26
- "Content-Type": "application/json",
27
- "x-service-api-key": options.serviceKey,
28
- };
25
+ headers["x-service-api-key"] = options.serviceKey;
29
26
  }
30
- else {
27
+ else if (options.thirdwebSecretKey) {
28
+ url = `${baseUrl}/usage-v2/${options.source}/client`;
29
+ headers["x-secret-key"] = options.thirdwebSecretKey;
30
+ }
31
+ else if (options.thirdwebClientId) {
31
32
  url = `${baseUrl}/usage-v2/${options.source}/client`;
32
- headers = {
33
- "Content-Type": "application/json",
34
- };
33
+ headers["x-client-id"] = options.thirdwebClientId;
34
+ }
35
+ else {
36
+ throw new Error("[UsageV2] No authentication method provided.");
35
37
  }
36
38
  const resp = await fetch(url, {
37
39
  method: "POST",
@@ -39,7 +41,7 @@ export async function sendUsageV2Events(events, options) {
39
41
  body: JSON.stringify({ events }),
40
42
  });
41
43
  if (!resp.ok) {
42
- throw new Error(`[UsageV2] unexpected response ${resp.status}: ${await resp.text()}`);
44
+ throw new Error(`[UsageV2] Unexpected response ${resp.status}: ${await resp.text()}`);
43
45
  }
44
46
  resp.body?.cancel();
45
47
  }
@@ -1 +1 @@
1
- {"version":3,"file":"usageV2.js","sourceRoot":"","sources":["../../../src/cf-worker/usageV2.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAsB,EACtB,OAIC;IAED,MAAM,OAAO,GACX,OAAO,CAAC,WAAW,KAAK,YAAY;QAClC,CAAC,CAAC,wBAAwB;QAC1B,CAAC,CAAC,4BAA4B,CAAC;IAEnC,gDAAgD;IAChD,IAAI,GAAW,CAAC;IAChB,IAAI,OAAoB,CAAC;IACzB,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;QACvB,GAAG,GAAG,G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G,OAAO,CAAC,UAAU,CAAC;IACpD,CAAC;SAAM,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;QACrC,GAAG,GAAG,GAAG,OAAO,aAAa,OAAO,CAAC,MAAM,SAAS,CAAC;QACrD,OAAO,CAAC,cAAc,CAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC;IACtD,CAAC;SAAM,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;QACpC,GAAG,GAAG,GAAG,OAAO,aAAa,OAAO,CAAC,MAAM,SAAS,CAAC;QACrD,OAAO,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC;IACpD,CAAC;SAAM,CAAC;QACN,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;IAClE,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;QAC5B,MAAM,EAAE,MAAM;QACd,OAAO;QACP,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;KACjC,CAAC,CAAC;IAEH,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CACb,iCAAiC,IAAI,CAAC,MAAM,KAAK,MAAM,IAAI,CAAC,IAAI,EAAE,EAAE,CACrE,CAAC;IACJ,CAAC;IACD,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;AACtB,CAAC"}
@@ -1,22 +1,37 @@
1
- import type { UsageV2Event, UsageV2Source } from "../core/usageV2.js";
1
+ import type { ClientUsageV2Event, UsageV2Event, UsageV2Source } from "../core/usageV2.js";
2
+ type UsageV2Options = {
3
+ environment: "development" | "production";
4
+ source: UsageV2Source;
5
+ } & ({
6
+ serviceKey: string;
7
+ thirdwebClientId?: never;
8
+ thirdwebSecretKey?: never;
9
+ } | {
10
+ serviceKey?: never;
11
+ thirdwebClientId: string;
12
+ thirdwebSecretKey?: never;
13
+ } | {
14
+ serviceKey?: never;
15
+ thirdwebClientId?: never;
16
+ thirdwebSecretKey: string;
17
+ });
2
18
  /**
3
- * Send events to Kafka.
4
- * This method may throw. To call this non-blocking:
19
+ * Send usageV2 events from either internal services or public clients.
20
+ *
21
+ * Exactly one authentication method must be provided:
22
+ * - serviceKey: for internal services
23
+ * - thirdwebClientId: for public clients (MUST be the user's project)
24
+ * - thirdwebSecretKey: for public clients (MUST be the user's project)
25
+ *
26
+ * NOTE: `team_id` is required if `serviceKey` is provided.
5
27
  *
28
+ * This method may throw. To call this non-blocking:
6
29
  * ```ts
7
- * void sendUsageV2Events(events, {
8
- * environment: "production",
9
- * serviceKey: "..."
10
- * }).catch(console.error)
30
+ * void sendUsageV2Events(...).catch((e) => console.error(e))
11
31
  * ```
12
- *
13
- * @param events - The events to send.
14
- * @param options.environment - The environment the service is running in.
15
- * @param options.serviceKey - The service key required for authentication.
16
32
  */
17
- export declare function sendUsageV2Events(events: UsageV2Event[], options: {
18
- environment: "development" | "production";
19
- source: UsageV2Source;
20
- serviceKey?: string;
21
- }): Promise<void>;
33
+ export declare function sendUsageV2Events<T extends UsageV2Options>(events: T extends {
34
+ serviceKey: string;
35
+ } ? UsageV2Event[] : ClientUsageV2Event[], options: T): Promise<void>;
36
+ export {};
22
37
  //# sourceMappingURL=usageV2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usageV2.d.ts","sourceRoot":"","sources":["../../../src/cf-worker/usageV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEtE;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,YAAY,EAAE,EACtB,OAAO,EAAE;IACP,WAAW,EAAE,aAAa,GAAG,YAAY,CAAC;IAC1C,MAAM,EAAE,aAAa,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,GACA,OAAO,CAAC,IAAI,CAAC,CAkCf"}
1
+ {"version":3,"file":"usageV2.d.ts","sourceRoot":"","sources":["../../../src/cf-worker/usageV2.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACd,MAAM,oBAAoB,CAAC;AAE5B,KAAK,cAAc,GAAG;IACpB,WAAW,EAAE,aAAa,GAAG,YAAY,CAAC;IAC1C,MAAM,EAAE,aAAa,CAAC;CACvB,GAAG,CACA;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,gBAAgB,CAAC,EAAE,KAAK,CAAC;IAAC,iBAAiB,CAAC,EAAE,KAAK,CAAA;CAAE,GAC3E;IAAE,UAAU,CAAC,EAAE,KAAK,CAAC;IAAC,gBAAgB,EAAE,MAAM,CAAC;IAAC,iBAAiB,CAAC,EAAE,KAAK,CAAA;CAAE,GAC3E;IAAE,UAAU,CAAC,EAAE,KAAK,CAAC;IAAC,gBAAgB,CAAC,EAAE,KAAK,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,CAC9E,CAAC;AAEF;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,SAAS,cAAc,EAC9D,MAAM,EAAE,CAAC,SAAS;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,GACpC,YAAY,EAAE,GACd,kBAAkB,EAAE,EACxB,OAAO,EAAE,CAAC,GACT,OAAO,CAAC,IAAI,CAAC,CAmCf"}
@@ -1,7 +1,7 @@
1
1
  export declare const USAGE_V2_SOURCES: readonly ["bundler", "engine", "insight", "nebula", "rpc", "sdk", "storage", "wallet"];
2
2
  export type UsageV2Source = (typeof USAGE_V2_SOURCES)[number];
3
3
  export declare function getTopicName(source: UsageV2Source): string;
4
- export interface UsageV2Event {
4
+ export interface ClientUsageV2Event {
5
5
  /**
6
6
  * A unique identifier for the event. Defaults to a random UUID.
7
7
  * Useful if your service retries sending events.
@@ -15,10 +15,6 @@ export interface UsageV2Event {
15
15
  * The action of the event. Example: "upload"
16
16
  */
17
17
  action: string;
18
- /**
19
- * The team ID.
20
- */
21
- team_id: string;
22
18
  /**
23
19
  * The project ID, if available.
24
20
  */
@@ -53,4 +49,10 @@ export interface UsageV2Event {
53
49
  */
54
50
  [key: string]: boolean | number | string | Date | null | undefined;
55
51
  }
52
+ export interface UsageV2Event extends ClientUsageV2Event {
53
+ /**
54
+ * The team ID.
55
+ */
56
+ team_id: string;
57
+ }
56
58
  //# sourceMappingURL=usageV2.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"usageV2.d.ts","sourceRoot":"","sources":["../../../src/core/usageV2.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,wFASnB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9D,wBAAgB,YAAY,CAAC,MAAM,EAAE,aAAa,UAEjD;AAED,MAAM,WAAW,YAAY;IAC3B;;;OAGG;IACH,EAAE,CAAC,EAAE,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;IACzD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;CACpE"}
1
+ {"version":3,"file":"usageV2.d.ts","sourceRoot":"","sources":["../../../src/core/usageV2.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,wFASnB,CAAC;AACX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC9D,wBAAgB,YAAY,CAAC,MAAM,EAAE,aAAa,UAEjD;AAED,MAAM,WAAW,kBAAkB;IACjC;;;OAGG;IACH,EAAE,CAAC,EAAE,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;IACzD;;OAEG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC;CACpE;AAED,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CACjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thirdweb-dev/service-utils",
3
- "version": "0.8.8-nightly-97c9ab7e1caa8b3e006ecc7f64b54b392ba83eda-20250209000329",
3
+ "version": "0.8.8-nightly-cad9c74befe33bef2cc6a12a8ade8d9c996ffe41-20250209100117",
4
4
  "type": "module",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",