@paygentic/sdk 0.6.34 → 0.6.37

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/README.md CHANGED
@@ -16,7 +16,7 @@ Developer-friendly & type-safe Typescript SDK specifically catered to leverage *
16
16
 
17
17
  Paygentic API: The Paygentic API provides billing infrastructure for usage-based and subscription monetization — customers, subscriptions, usage metering, invoicing, entitlements, and payments.
18
18
 
19
- See the [Quickstart](https://docs.paygentic.io/getting-started/quickstart) to go from zero to billing in four steps.
19
+ See the [Quickstart](https://docs.paygentic.io/getting-started/quickstart) to go from zero to billing in a handful of steps.
20
20
  <!-- End Summary [summary] -->
21
21
 
22
22
  <!-- Start Table of Contents [toc] -->
@@ -43,34 +43,30 @@ See the [Quickstart](https://docs.paygentic.io/getting-started/quickstart) to go
43
43
  <!-- Start SDK Installation [installation] -->
44
44
  ## SDK Installation
45
45
 
46
- > [!TIP]
47
- > To finish publishing your SDK to npm and others you must [run your first generation action](https://www.speakeasy.com/docs/github-setup#step-by-step-guide).
48
-
49
-
50
46
  The SDK can be installed with either [npm](https://www.npmjs.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/) or [yarn](https://classic.yarnpkg.com/en/) package managers.
51
47
 
52
48
  ### NPM
53
49
 
54
50
  ```bash
55
- npm add https://github.com/paygentic/sdk-node
51
+ npm add @paygentic/sdk
56
52
  ```
57
53
 
58
54
  ### PNPM
59
55
 
60
56
  ```bash
61
- pnpm add https://github.com/paygentic/sdk-node
57
+ pnpm add @paygentic/sdk
62
58
  ```
63
59
 
64
60
  ### Bun
65
61
 
66
62
  ```bash
67
- bun add https://github.com/paygentic/sdk-node
63
+ bun add @paygentic/sdk
68
64
  ```
69
65
 
70
66
  ### Yarn
71
67
 
72
68
  ```bash
73
- yarn add https://github.com/paygentic/sdk-node
69
+ yarn add @paygentic/sdk
74
70
  ```
75
71
 
76
72
  > [!NOTE]
@@ -196,7 +192,7 @@ const paygentic = new Paygentic({
196
192
  async function run() {
197
193
  const result = await paygentic.billableMetrics.create({
198
194
  aggregation: "SUM",
199
- description: "Tracks total tokens consumed per API call",
195
+ description: "Tracks total tokens consumed per API call.",
200
196
  merchantId: "org_YS8jkP59V71TdUvj",
201
197
  name: "Token Counter",
202
198
  productId: "prod_abc123",
@@ -514,7 +510,7 @@ const paygentic = new Paygentic({
514
510
  async function run() {
515
511
  const result = await paygentic.billableMetrics.create({
516
512
  aggregation: "SUM",
517
- description: "Tracks total tokens consumed per API call",
513
+ description: "Tracks total tokens consumed per API call.",
518
514
  merchantId: "org_YS8jkP59V71TdUvj",
519
515
  name: "Token Counter",
520
516
  productId: "prod_abc123",
@@ -560,7 +556,7 @@ const paygentic = new Paygentic({
560
556
  async function run() {
561
557
  const result = await paygentic.billableMetrics.create({
562
558
  aggregation: "SUM",
563
- description: "Tracks total tokens consumed per API call",
559
+ description: "Tracks total tokens consumed per API call.",
564
560
  merchantId: "org_YS8jkP59V71TdUvj",
565
561
  name: "Token Counter",
566
562
  productId: "prod_abc123",
@@ -602,7 +598,7 @@ async function run() {
602
598
  try {
603
599
  const result = await paygentic.billableMetrics.create({
604
600
  aggregation: "SUM",
605
- description: "Tracks total tokens consumed per API call",
601
+ description: "Tracks total tokens consumed per API call.",
606
602
  merchantId: "org_YS8jkP59V71TdUvj",
607
603
  name: "Token Counter",
608
604
  productId: "prod_abc123",
@@ -677,7 +673,7 @@ const paygentic = new Paygentic({
677
673
  async function run() {
678
674
  const result = await paygentic.billableMetrics.create({
679
675
  aggregation: "SUM",
680
- description: "Tracks total tokens consumed per API call",
676
+ description: "Tracks total tokens consumed per API call.",
681
677
  merchantId: "org_YS8jkP59V71TdUvj",
682
678
  name: "Token Counter",
683
679
  productId: "prod_abc123",
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "0.1.0";
34
- readonly sdkVersion: "0.6.34";
34
+ readonly sdkVersion: "0.6.37";
35
35
  readonly genVersion: "2.879.13";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.6.34 2.879.13 0.1.0 @paygentic/sdk";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.6.37 2.879.13 0.1.0 @paygentic/sdk";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
31
31
  exports.SDK_METADATA = {
32
32
  language: "typescript",
33
33
  openapiDocVersion: "0.1.0",
34
- sdkVersion: "0.6.34",
34
+ sdkVersion: "0.6.37",
35
35
  genVersion: "2.879.13",
36
- userAgent: "speakeasy-sdk/typescript 0.6.34 2.879.13 0.1.0 @paygentic/sdk",
36
+ userAgent: "speakeasy-sdk/typescript 0.6.37 2.879.13 0.1.0 @paygentic/sdk",
37
37
  };
38
38
  //# sourceMappingURL=config.js.map
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "0.1.0";
34
- readonly sdkVersion: "0.6.34";
34
+ readonly sdkVersion: "0.6.37";
35
35
  readonly genVersion: "2.879.13";
36
- readonly userAgent: "speakeasy-sdk/typescript 0.6.34 2.879.13 0.1.0 @paygentic/sdk";
36
+ readonly userAgent: "speakeasy-sdk/typescript 0.6.37 2.879.13 0.1.0 @paygentic/sdk";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -27,8 +27,8 @@ export function serverURLFromOptions(options) {
27
27
  export const SDK_METADATA = {
28
28
  language: "typescript",
29
29
  openapiDocVersion: "0.1.0",
30
- sdkVersion: "0.6.34",
30
+ sdkVersion: "0.6.37",
31
31
  genVersion: "2.879.13",
32
- userAgent: "speakeasy-sdk/typescript 0.6.34 2.879.13 0.1.0 @paygentic/sdk",
32
+ userAgent: "speakeasy-sdk/typescript 0.6.37 2.879.13 0.1.0 @paygentic/sdk",
33
33
  };
34
34
  //# sourceMappingURL=config.js.map
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@paygentic/sdk",
5
- "version": "0.6.34",
5
+ "version": "0.6.37",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paygentic/sdk",
3
- "version": "0.6.34",
3
+ "version": "0.6.37",
4
4
  "author": "Speakeasy",
5
5
  "repository": {
6
6
  "type": "git",
package/src/lib/config.ts CHANGED
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
61
61
  export const SDK_METADATA = {
62
62
  language: "typescript",
63
63
  openapiDocVersion: "0.1.0",
64
- sdkVersion: "0.6.34",
64
+ sdkVersion: "0.6.37",
65
65
  genVersion: "2.879.13",
66
- userAgent: "speakeasy-sdk/typescript 0.6.34 2.879.13 0.1.0 @paygentic/sdk",
66
+ userAgent: "speakeasy-sdk/typescript 0.6.37 2.879.13 0.1.0 @paygentic/sdk",
67
67
  } as const;