@paid-ai/paid-node 1.0.1 → 1.1.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.
Files changed (41) hide show
  1. package/README.md +4 -2
  2. package/dist/cjs/Client.js +2 -2
  3. package/dist/cjs/api/resources/contacts/client/Client.d.ts +0 -2
  4. package/dist/cjs/api/resources/contacts/client/Client.js +0 -2
  5. package/dist/cjs/api/resources/contacts/client/requests/CreateContactRequest.d.ts +13 -4
  6. package/dist/cjs/api/resources/contacts/client/requests/CreateContactRequest.js +11 -0
  7. package/dist/cjs/api/resources/orders/client/requests/CreateOrderRequest.d.ts +1 -0
  8. package/dist/cjs/api/types/Contact.d.ts +11 -0
  9. package/dist/cjs/api/types/Contact.js +11 -0
  10. package/dist/cjs/api/types/CreateOrderLineAttributeRequest.d.ts +5 -0
  11. package/dist/cjs/api/types/CreateOrderLineAttributeRequest.js +3 -0
  12. package/dist/cjs/api/types/CreateOrderLineRequest.d.ts +9 -0
  13. package/dist/cjs/api/types/CreateOrderLineRequest.js +3 -0
  14. package/dist/cjs/api/types/Signal.d.ts +2 -0
  15. package/dist/cjs/api/types/UpdateContactRequest.d.ts +11 -0
  16. package/dist/cjs/api/types/UpdateContactRequest.js +11 -0
  17. package/dist/cjs/api/types/index.d.ts +2 -0
  18. package/dist/cjs/api/types/index.js +2 -0
  19. package/dist/cjs/version.d.ts +1 -1
  20. package/dist/cjs/version.js +1 -1
  21. package/dist/esm/Client.mjs +2 -2
  22. package/dist/esm/api/resources/contacts/client/Client.d.mts +0 -2
  23. package/dist/esm/api/resources/contacts/client/Client.mjs +0 -2
  24. package/dist/esm/api/resources/contacts/client/requests/CreateContactRequest.d.mts +13 -4
  25. package/dist/esm/api/resources/contacts/client/requests/CreateContactRequest.mjs +10 -1
  26. package/dist/esm/api/resources/orders/client/requests/CreateOrderRequest.d.mts +1 -0
  27. package/dist/esm/api/types/Contact.d.mts +11 -0
  28. package/dist/esm/api/types/Contact.mjs +10 -1
  29. package/dist/esm/api/types/CreateOrderLineAttributeRequest.d.mts +5 -0
  30. package/dist/esm/api/types/CreateOrderLineAttributeRequest.mjs +2 -0
  31. package/dist/esm/api/types/CreateOrderLineRequest.d.mts +9 -0
  32. package/dist/esm/api/types/CreateOrderLineRequest.mjs +2 -0
  33. package/dist/esm/api/types/Signal.d.mts +2 -0
  34. package/dist/esm/api/types/UpdateContactRequest.d.mts +11 -0
  35. package/dist/esm/api/types/UpdateContactRequest.mjs +10 -1
  36. package/dist/esm/api/types/index.d.mts +2 -0
  37. package/dist/esm/api/types/index.mjs +2 -0
  38. package/dist/esm/version.d.mts +1 -1
  39. package/dist/esm/version.mjs +1 -1
  40. package/package.json +215 -215
  41. package/reference.md +0 -2
package/README.md CHANGED
@@ -290,7 +290,8 @@ const signal: Paid.Signal = {
290
290
  amount: 0.002,
291
291
  currency: "USD"
292
292
  },
293
- "gen_ai.response.model": "<ai_model_name>",
293
+ "gen_ai.response.model": "<ai_model_name>", // optional, but will be displayed on UI
294
+ start_time: "2024-01-01T11:45:00.000Z", // optional, affects where trace is on the timeline
294
295
  }
295
296
  }
296
297
  };
@@ -319,7 +320,8 @@ async function main() {
319
320
  amount: 0.002,
320
321
  currency: "USD"
321
322
  },
322
- "gen_ai.response.model": "<ai_model_name>",
323
+ "gen_ai.response.model": "<ai_model_name>", // optional, but will be displayed on UI
324
+ start_time: "2024-01-01T11:45:00.000Z", // optional, affects where trace is on the timeline
323
325
  }
324
326
  });
325
327
  });
@@ -48,8 +48,8 @@ class PaidClient {
48
48
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "@paid-ai/paid-node",
51
- "X-Fern-SDK-Version": "1.0.1",
52
- "User-Agent": "@paid-ai/paid-node/1.0.1",
51
+ "X-Fern-SDK-Version": "1.1.0",
52
+ "User-Agent": "@paid-ai/paid-node/1.1.0",
53
53
  "X-Fern-Runtime": core.RUNTIME.type,
54
54
  "X-Fern-Runtime-Version": core.RUNTIME.version,
55
55
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -38,8 +38,6 @@ export declare class Contacts {
38
38
  * @example
39
39
  * await client.contacts.createContact({
40
40
  * customerId: "customerId",
41
- * firstName: "firstName",
42
- * lastName: "lastName",
43
41
  * email: "email"
44
42
  * })
45
43
  */
@@ -139,8 +139,6 @@ class Contacts {
139
139
  * @example
140
140
  * await client.contacts.createContact({
141
141
  * customerId: "customerId",
142
- * firstName: "firstName",
143
- * lastName: "lastName",
144
142
  * email: "email"
145
143
  * })
146
144
  */
@@ -3,17 +3,26 @@ import type * as Paid from "../../../../index.js";
3
3
  * @example
4
4
  * {
5
5
  * customerId: "customerId",
6
- * firstName: "firstName",
7
- * lastName: "lastName",
8
6
  * email: "email"
9
7
  * }
10
8
  */
11
9
  export interface CreateContactRequest {
12
10
  customerId: string;
13
- firstName: string;
14
- lastName: string;
11
+ firstName?: string;
12
+ lastName?: string;
15
13
  email: string;
16
14
  phone?: string | null;
17
15
  billingAddress?: Paid.ContactBillingAddress | null;
18
16
  externalId?: string | null;
17
+ roles?: CreateContactRequest.Roles.Item[];
18
+ }
19
+ export declare namespace CreateContactRequest {
20
+ type Roles = Roles.Item[];
21
+ namespace Roles {
22
+ const Item: {
23
+ readonly Billing: "BILLING";
24
+ readonly AccountsPayable: "ACCOUNTS_PAYABLE";
25
+ };
26
+ type Item = (typeof Item)[keyof typeof Item];
27
+ }
19
28
  }
@@ -1,3 +1,14 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CreateContactRequest = void 0;
5
+ var CreateContactRequest;
6
+ (function (CreateContactRequest) {
7
+ let Roles;
8
+ (function (Roles) {
9
+ Roles.Item = {
10
+ Billing: "BILLING",
11
+ AccountsPayable: "ACCOUNTS_PAYABLE",
12
+ };
13
+ })(Roles = CreateContactRequest.Roles || (CreateContactRequest.Roles = {}));
14
+ })(CreateContactRequest || (exports.CreateContactRequest = CreateContactRequest = {}));
@@ -19,4 +19,5 @@ export interface CreateOrderRequest {
19
19
  paymentTerms?: string | null;
20
20
  externalId?: string | null;
21
21
  metadata?: Record<string, unknown> | null;
22
+ lines?: Paid.CreateOrderLineRequest[];
22
23
  }
@@ -8,6 +8,17 @@ export interface Contact {
8
8
  phone: string | null;
9
9
  billingAddress?: Paid.ContactBillingAddress | null;
10
10
  externalId: string | null;
11
+ roles: Contact.Roles.Item[];
11
12
  createdAt: string;
12
13
  updatedAt: string;
13
14
  }
15
+ export declare namespace Contact {
16
+ type Roles = Roles.Item[];
17
+ namespace Roles {
18
+ const Item: {
19
+ readonly Billing: "BILLING";
20
+ readonly AccountsPayable: "ACCOUNTS_PAYABLE";
21
+ };
22
+ type Item = (typeof Item)[keyof typeof Item];
23
+ }
24
+ }
@@ -1,3 +1,14 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Contact = void 0;
5
+ var Contact;
6
+ (function (Contact) {
7
+ let Roles;
8
+ (function (Roles) {
9
+ Roles.Item = {
10
+ Billing: "BILLING",
11
+ AccountsPayable: "ACCOUNTS_PAYABLE",
12
+ };
13
+ })(Roles = Contact.Roles || (Contact.Roles = {}));
14
+ })(Contact || (exports.Contact = Contact = {}));
@@ -0,0 +1,5 @@
1
+ export interface CreateOrderLineAttributeRequest {
2
+ name: string;
3
+ quantity?: number;
4
+ pricing: Record<string, unknown>;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import type * as Paid from "../index.js";
2
+ export interface CreateOrderLineRequest {
3
+ productId: string;
4
+ name?: string;
5
+ description?: string | null;
6
+ startDate?: string | null;
7
+ endDate?: string | null;
8
+ attributes?: Paid.CreateOrderLineAttributeRequest[];
9
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,6 +3,8 @@ export interface Signal {
3
3
  eventName: string;
4
4
  customer: Paid.CustomerAttribution;
5
5
  attribution?: Paid.Attribution;
6
+ /** True event timestamp in RFC3339 format with timezone (e.g. 2026-01-31T23:00:00Z) */
7
+ timestamp?: string;
6
8
  data?: Record<string, unknown>;
7
9
  idempotencyKey?: string;
8
10
  }
@@ -7,4 +7,15 @@ export interface UpdateContactRequest {
7
7
  phone?: string | null;
8
8
  billingAddress?: Paid.ContactBillingAddress | null;
9
9
  externalId?: string | null;
10
+ roles?: UpdateContactRequest.Roles.Item[];
11
+ }
12
+ export declare namespace UpdateContactRequest {
13
+ type Roles = Roles.Item[];
14
+ namespace Roles {
15
+ const Item: {
16
+ readonly Billing: "BILLING";
17
+ readonly AccountsPayable: "ACCOUNTS_PAYABLE";
18
+ };
19
+ type Item = (typeof Item)[keyof typeof Item];
20
+ }
10
21
  }
@@ -1,3 +1,14 @@
1
1
  "use strict";
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.UpdateContactRequest = void 0;
5
+ var UpdateContactRequest;
6
+ (function (UpdateContactRequest) {
7
+ let Roles;
8
+ (function (Roles) {
9
+ Roles.Item = {
10
+ Billing: "BILLING",
11
+ AccountsPayable: "ACCOUNTS_PAYABLE",
12
+ };
13
+ })(Roles = UpdateContactRequest.Roles || (UpdateContactRequest.Roles = {}));
14
+ })(UpdateContactRequest || (exports.UpdateContactRequest = UpdateContactRequest = {}));
@@ -3,6 +3,8 @@ export * from "./BulkSignalsResponse.js";
3
3
  export * from "./Contact.js";
4
4
  export * from "./ContactBillingAddress.js";
5
5
  export * from "./ContactListResponse.js";
6
+ export * from "./CreateOrderLineAttributeRequest.js";
7
+ export * from "./CreateOrderLineRequest.js";
6
8
  export * from "./Customer.js";
7
9
  export * from "./CustomerAttribution.js";
8
10
  export * from "./CustomerBillingAddress.js";
@@ -19,6 +19,8 @@ __exportStar(require("./BulkSignalsResponse.js"), exports);
19
19
  __exportStar(require("./Contact.js"), exports);
20
20
  __exportStar(require("./ContactBillingAddress.js"), exports);
21
21
  __exportStar(require("./ContactListResponse.js"), exports);
22
+ __exportStar(require("./CreateOrderLineAttributeRequest.js"), exports);
23
+ __exportStar(require("./CreateOrderLineRequest.js"), exports);
22
24
  __exportStar(require("./Customer.js"), exports);
23
25
  __exportStar(require("./CustomerAttribution.js"), exports);
24
26
  __exportStar(require("./CustomerBillingAddress.js"), exports);
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.1";
1
+ export declare const SDK_VERSION = "1.1.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "1.0.1";
4
+ exports.SDK_VERSION = "1.1.0";
@@ -12,8 +12,8 @@ export class PaidClient {
12
12
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
13
13
  "X-Fern-Language": "JavaScript",
14
14
  "X-Fern-SDK-Name": "@paid-ai/paid-node",
15
- "X-Fern-SDK-Version": "1.0.1",
16
- "User-Agent": "@paid-ai/paid-node/1.0.1",
15
+ "X-Fern-SDK-Version": "1.1.0",
16
+ "User-Agent": "@paid-ai/paid-node/1.1.0",
17
17
  "X-Fern-Runtime": core.RUNTIME.type,
18
18
  "X-Fern-Runtime-Version": core.RUNTIME.version,
19
19
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -38,8 +38,6 @@ export declare class Contacts {
38
38
  * @example
39
39
  * await client.contacts.createContact({
40
40
  * customerId: "customerId",
41
- * firstName: "firstName",
42
- * lastName: "lastName",
43
41
  * email: "email"
44
42
  * })
45
43
  */
@@ -103,8 +103,6 @@ export class Contacts {
103
103
  * @example
104
104
  * await client.contacts.createContact({
105
105
  * customerId: "customerId",
106
- * firstName: "firstName",
107
- * lastName: "lastName",
108
106
  * email: "email"
109
107
  * })
110
108
  */
@@ -3,17 +3,26 @@ import type * as Paid from "../../../../index.mjs";
3
3
  * @example
4
4
  * {
5
5
  * customerId: "customerId",
6
- * firstName: "firstName",
7
- * lastName: "lastName",
8
6
  * email: "email"
9
7
  * }
10
8
  */
11
9
  export interface CreateContactRequest {
12
10
  customerId: string;
13
- firstName: string;
14
- lastName: string;
11
+ firstName?: string;
12
+ lastName?: string;
15
13
  email: string;
16
14
  phone?: string | null;
17
15
  billingAddress?: Paid.ContactBillingAddress | null;
18
16
  externalId?: string | null;
17
+ roles?: CreateContactRequest.Roles.Item[];
18
+ }
19
+ export declare namespace CreateContactRequest {
20
+ type Roles = Roles.Item[];
21
+ namespace Roles {
22
+ const Item: {
23
+ readonly Billing: "BILLING";
24
+ readonly AccountsPayable: "ACCOUNTS_PAYABLE";
25
+ };
26
+ type Item = (typeof Item)[keyof typeof Item];
27
+ }
19
28
  }
@@ -1,2 +1,11 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var CreateContactRequest;
3
+ (function (CreateContactRequest) {
4
+ let Roles;
5
+ (function (Roles) {
6
+ Roles.Item = {
7
+ Billing: "BILLING",
8
+ AccountsPayable: "ACCOUNTS_PAYABLE",
9
+ };
10
+ })(Roles = CreateContactRequest.Roles || (CreateContactRequest.Roles = {}));
11
+ })(CreateContactRequest || (CreateContactRequest = {}));
@@ -19,4 +19,5 @@ export interface CreateOrderRequest {
19
19
  paymentTerms?: string | null;
20
20
  externalId?: string | null;
21
21
  metadata?: Record<string, unknown> | null;
22
+ lines?: Paid.CreateOrderLineRequest[];
22
23
  }
@@ -8,6 +8,17 @@ export interface Contact {
8
8
  phone: string | null;
9
9
  billingAddress?: Paid.ContactBillingAddress | null;
10
10
  externalId: string | null;
11
+ roles: Contact.Roles.Item[];
11
12
  createdAt: string;
12
13
  updatedAt: string;
13
14
  }
15
+ export declare namespace Contact {
16
+ type Roles = Roles.Item[];
17
+ namespace Roles {
18
+ const Item: {
19
+ readonly Billing: "BILLING";
20
+ readonly AccountsPayable: "ACCOUNTS_PAYABLE";
21
+ };
22
+ type Item = (typeof Item)[keyof typeof Item];
23
+ }
24
+ }
@@ -1,2 +1,11 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var Contact;
3
+ (function (Contact) {
4
+ let Roles;
5
+ (function (Roles) {
6
+ Roles.Item = {
7
+ Billing: "BILLING",
8
+ AccountsPayable: "ACCOUNTS_PAYABLE",
9
+ };
10
+ })(Roles = Contact.Roles || (Contact.Roles = {}));
11
+ })(Contact || (Contact = {}));
@@ -0,0 +1,5 @@
1
+ export interface CreateOrderLineAttributeRequest {
2
+ name: string;
3
+ quantity?: number;
4
+ pricing: Record<string, unknown>;
5
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ import type * as Paid from "../index.mjs";
2
+ export interface CreateOrderLineRequest {
3
+ productId: string;
4
+ name?: string;
5
+ description?: string | null;
6
+ startDate?: string | null;
7
+ endDate?: string | null;
8
+ attributes?: Paid.CreateOrderLineAttributeRequest[];
9
+ }
@@ -0,0 +1,2 @@
1
+ // This file was auto-generated by Fern from our API Definition.
2
+ export {};
@@ -3,6 +3,8 @@ export interface Signal {
3
3
  eventName: string;
4
4
  customer: Paid.CustomerAttribution;
5
5
  attribution?: Paid.Attribution;
6
+ /** True event timestamp in RFC3339 format with timezone (e.g. 2026-01-31T23:00:00Z) */
7
+ timestamp?: string;
6
8
  data?: Record<string, unknown>;
7
9
  idempotencyKey?: string;
8
10
  }
@@ -7,4 +7,15 @@ export interface UpdateContactRequest {
7
7
  phone?: string | null;
8
8
  billingAddress?: Paid.ContactBillingAddress | null;
9
9
  externalId?: string | null;
10
+ roles?: UpdateContactRequest.Roles.Item[];
11
+ }
12
+ export declare namespace UpdateContactRequest {
13
+ type Roles = Roles.Item[];
14
+ namespace Roles {
15
+ const Item: {
16
+ readonly Billing: "BILLING";
17
+ readonly AccountsPayable: "ACCOUNTS_PAYABLE";
18
+ };
19
+ type Item = (typeof Item)[keyof typeof Item];
20
+ }
10
21
  }
@@ -1,2 +1,11 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
- export {};
2
+ export var UpdateContactRequest;
3
+ (function (UpdateContactRequest) {
4
+ let Roles;
5
+ (function (Roles) {
6
+ Roles.Item = {
7
+ Billing: "BILLING",
8
+ AccountsPayable: "ACCOUNTS_PAYABLE",
9
+ };
10
+ })(Roles = UpdateContactRequest.Roles || (UpdateContactRequest.Roles = {}));
11
+ })(UpdateContactRequest || (UpdateContactRequest = {}));
@@ -3,6 +3,8 @@ export * from "./BulkSignalsResponse.mjs";
3
3
  export * from "./Contact.mjs";
4
4
  export * from "./ContactBillingAddress.mjs";
5
5
  export * from "./ContactListResponse.mjs";
6
+ export * from "./CreateOrderLineAttributeRequest.mjs";
7
+ export * from "./CreateOrderLineRequest.mjs";
6
8
  export * from "./Customer.mjs";
7
9
  export * from "./CustomerAttribution.mjs";
8
10
  export * from "./CustomerBillingAddress.mjs";
@@ -3,6 +3,8 @@ export * from "./BulkSignalsResponse.mjs";
3
3
  export * from "./Contact.mjs";
4
4
  export * from "./ContactBillingAddress.mjs";
5
5
  export * from "./ContactListResponse.mjs";
6
+ export * from "./CreateOrderLineAttributeRequest.mjs";
7
+ export * from "./CreateOrderLineRequest.mjs";
6
8
  export * from "./Customer.mjs";
7
9
  export * from "./CustomerAttribution.mjs";
8
10
  export * from "./CustomerBillingAddress.mjs";
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.0.1";
1
+ export declare const SDK_VERSION = "1.1.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.0.1";
1
+ export const SDK_VERSION = "1.1.0";
package/package.json CHANGED
@@ -1,226 +1,226 @@
1
1
  {
2
- "name": "@paid-ai/paid-node",
3
- "version": "1.0.1",
4
- "private": false,
5
- "repository": "github:paid-ai/paid-node",
6
- "type": "commonjs",
7
- "main": "./dist/cjs/index.js",
8
- "module": "./dist/esm/index.mjs",
9
- "types": "./dist/cjs/index.d.ts",
10
- "exports": {
11
- ".": {
12
- "types": "./dist/cjs/index.d.ts",
13
- "import": {
14
- "types": "./dist/esm/index.d.mts",
15
- "default": "./dist/esm/index.mjs"
16
- },
17
- "require": {
18
- "types": "./dist/cjs/index.d.ts",
19
- "default": "./dist/cjs/index.js"
20
- },
21
- "default": "./dist/cjs/index.js"
2
+ "name": "@paid-ai/paid-node",
3
+ "version": "1.1.0",
4
+ "private": false,
5
+ "repository": "github:paid-ai/paid-node",
6
+ "type": "commonjs",
7
+ "main": "./dist/cjs/index.js",
8
+ "module": "./dist/esm/index.mjs",
9
+ "types": "./dist/cjs/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/cjs/index.d.ts",
13
+ "import": {
14
+ "types": "./dist/esm/index.d.mts",
15
+ "default": "./dist/esm/index.mjs"
16
+ },
17
+ "require": {
18
+ "types": "./dist/cjs/index.d.ts",
19
+ "default": "./dist/cjs/index.js"
20
+ },
21
+ "default": "./dist/cjs/index.js"
22
+ },
23
+ "./package.json": "./package.json",
24
+ "./openai": {
25
+ "types": "./dist/cjs/openai-wrapper/index.d.ts",
26
+ "import": {
27
+ "types": "./dist/esm/openai-wrapper/index.d.mts",
28
+ "default": "./dist/esm/openai-wrapper/index.mjs"
29
+ },
30
+ "require": {
31
+ "types": "./dist/cjs/openai-wrapper/index.d.ts",
32
+ "default": "./dist/cjs/openai-wrapper/index.js"
33
+ },
34
+ "default": "./dist/cjs/openai-wrapper/index.js"
35
+ },
36
+ "./anthropic": {
37
+ "types": "./dist/cjs/anthropic-wrapper/index.d.ts",
38
+ "import": {
39
+ "types": "./dist/esm/anthropic-wrapper/index.d.mts",
40
+ "default": "./dist/esm/anthropic-wrapper/index.mjs"
41
+ },
42
+ "require": {
43
+ "types": "./dist/cjs/anthropic-wrapper/index.d.ts",
44
+ "default": "./dist/cjs/anthropic-wrapper/index.js"
45
+ },
46
+ "default": "./dist/cjs/anthropic-wrapper/index.js"
47
+ },
48
+ "./mistral": {
49
+ "types": "./dist/cjs/mistral-wrapper/index.d.ts",
50
+ "import": {
51
+ "types": "./dist/esm/mistral-wrapper/index.d.mts",
52
+ "default": "./dist/esm/mistral-wrapper/index.mjs"
53
+ },
54
+ "require": {
55
+ "types": "./dist/cjs/mistral-wrapper/index.d.ts",
56
+ "default": "./dist/cjs/mistral-wrapper/index.js"
57
+ },
58
+ "default": "./dist/cjs/mistral-wrapper/index.js"
59
+ },
60
+ "./langchain": {
61
+ "types": "./dist/cjs/langchain-wrapper/index.d.ts",
62
+ "import": {
63
+ "types": "./dist/esm/langchain-wrapper/index.d.mts",
64
+ "default": "./dist/esm/langchain-wrapper/index.mjs"
65
+ },
66
+ "require": {
67
+ "types": "./dist/cjs/langchain-wrapper/index.d.ts",
68
+ "default": "./dist/cjs/langchain-wrapper/index.js"
69
+ },
70
+ "default": "./dist/cjs/langchain-wrapper/index.js"
71
+ },
72
+ "./vercel": {
73
+ "types": "./dist/cjs/vercel-wrapper/index.d.ts",
74
+ "import": {
75
+ "types": "./dist/esm/vercel-wrapper/index.d.mts",
76
+ "default": "./dist/esm/vercel-wrapper/index.mjs"
77
+ },
78
+ "require": {
79
+ "types": "./dist/cjs/vercel-wrapper/index.d.ts",
80
+ "default": "./dist/cjs/vercel-wrapper/index.js"
81
+ },
82
+ "default": "./dist/cjs/vercel-wrapper/index.js"
83
+ },
84
+ "./tracing": {
85
+ "types": "./dist/cjs/tracing/index.d.ts",
86
+ "import": {
87
+ "types": "./dist/esm/tracing/index.d.mts",
88
+ "default": "./dist/esm/tracing/index.mjs"
89
+ },
90
+ "require": {
91
+ "types": "./dist/cjs/tracing/index.d.ts",
92
+ "default": "./dist/cjs/tracing/index.js"
93
+ },
94
+ "default": "./dist/cjs/tracing/index.js"
95
+ },
96
+ "./tracing/auto": {
97
+ "types": "./dist/cjs/tracing/autoInstrumentation.d.ts",
98
+ "import": {
99
+ "types": "./dist/esm/tracing/autoInstrumentation.d.mts",
100
+ "default": "./dist/esm/tracing/autoInstrumentation.mjs"
101
+ },
102
+ "require": {
103
+ "types": "./dist/cjs/tracing/autoInstrumentation.d.ts",
104
+ "default": "./dist/cjs/tracing/autoInstrumentation.js"
105
+ },
106
+ "default": "./dist/cjs/tracing/autoInstrumentation.js"
107
+ }
22
108
  },
23
- "./package.json": "./package.json",
24
- "./openai": {
25
- "types": "./dist/cjs/openai-wrapper/index.d.ts",
26
- "import": {
27
- "types": "./dist/esm/openai-wrapper/index.d.mts",
28
- "default": "./dist/esm/openai-wrapper/index.mjs"
29
- },
30
- "require": {
31
- "types": "./dist/cjs/openai-wrapper/index.d.ts",
32
- "default": "./dist/cjs/openai-wrapper/index.js"
33
- },
34
- "default": "./dist/cjs/openai-wrapper/index.js"
109
+ "files": [
110
+ "dist",
111
+ "reference.md",
112
+ "README.md",
113
+ "LICENSE"
114
+ ],
115
+ "scripts": {
116
+ "format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
117
+ "format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
118
+ "lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
119
+ "lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
120
+ "check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
121
+ "check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
122
+ "build": "pnpm build:cjs && pnpm build:esm",
123
+ "build:cjs": "tsc --project ./tsconfig.cjs.json",
124
+ "build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
125
+ "test": "vitest",
126
+ "test:unit": "vitest --project unit",
127
+ "test:wire": "vitest --project wire"
35
128
  },
36
- "./anthropic": {
37
- "types": "./dist/cjs/anthropic-wrapper/index.d.ts",
38
- "import": {
39
- "types": "./dist/esm/anthropic-wrapper/index.d.mts",
40
- "default": "./dist/esm/anthropic-wrapper/index.mjs"
41
- },
42
- "require": {
43
- "types": "./dist/cjs/anthropic-wrapper/index.d.ts",
44
- "default": "./dist/cjs/anthropic-wrapper/index.js"
45
- },
46
- "default": "./dist/cjs/anthropic-wrapper/index.js"
129
+ "dependencies": {
130
+ "@opentelemetry/api": ">=1.9.0",
131
+ "@opentelemetry/context-async-hooks": ">=0.208.0",
132
+ "@opentelemetry/exporter-trace-otlp-http": ">=0.208.0",
133
+ "@opentelemetry/exporter-trace-otlp-proto": ">=0.208.0",
134
+ "@opentelemetry/instrumentation": ">=0.208.0",
135
+ "@opentelemetry/resources": ">=1.38.0",
136
+ "@opentelemetry/sdk-node": ">=0.208.0",
137
+ "@opentelemetry/sdk-trace-base": ">=1.38.0",
138
+ "@opentelemetry/sdk-trace-node": "^2.2.0",
139
+ "@opentelemetry/semantic-conventions": ">=1.38.0",
140
+ "@arizeai/openinference-instrumentation-anthropic": ">=0.1.2",
141
+ "@arizeai/openinference-instrumentation-openai": ">=4.0.0",
142
+ "@arizeai/openinference-semantic-conventions": ">=2.1.2",
143
+ "@traceloop/instrumentation-bedrock": ">=0.22.0"
47
144
  },
48
- "./mistral": {
49
- "types": "./dist/cjs/mistral-wrapper/index.d.ts",
50
- "import": {
51
- "types": "./dist/esm/mistral-wrapper/index.d.mts",
52
- "default": "./dist/esm/mistral-wrapper/index.mjs"
53
- },
54
- "require": {
55
- "types": "./dist/cjs/mistral-wrapper/index.d.ts",
56
- "default": "./dist/cjs/mistral-wrapper/index.js"
57
- },
58
- "default": "./dist/cjs/mistral-wrapper/index.js"
145
+ "peerDependencies": {
146
+ "@ai-sdk/openai": ">=1.0.0",
147
+ "@anthropic-ai/sdk": ">=0.36.3",
148
+ "@langchain/core": ">=0.3.0",
149
+ "@mistralai/mistralai": ">=1.0.0",
150
+ "ai": ">=5.0.0",
151
+ "openai": ">=4.85.4"
59
152
  },
60
- "./langchain": {
61
- "types": "./dist/cjs/langchain-wrapper/index.d.ts",
62
- "import": {
63
- "types": "./dist/esm/langchain-wrapper/index.d.mts",
64
- "default": "./dist/esm/langchain-wrapper/index.mjs"
65
- },
66
- "require": {
67
- "types": "./dist/cjs/langchain-wrapper/index.d.ts",
68
- "default": "./dist/cjs/langchain-wrapper/index.js"
69
- },
70
- "default": "./dist/cjs/langchain-wrapper/index.js"
153
+ "peerDependenciesMeta": {
154
+ "@ai-sdk/openai": {
155
+ "optional": true
156
+ },
157
+ "@anthropic-ai/sdk": {
158
+ "optional": true
159
+ },
160
+ "@langchain/core": {
161
+ "optional": true
162
+ },
163
+ "@mistralai/mistralai": {
164
+ "optional": true
165
+ },
166
+ "ai": {
167
+ "optional": true
168
+ },
169
+ "openai": {
170
+ "optional": true
171
+ }
71
172
  },
72
- "./vercel": {
73
- "types": "./dist/cjs/vercel-wrapper/index.d.ts",
74
- "import": {
75
- "types": "./dist/esm/vercel-wrapper/index.d.mts",
76
- "default": "./dist/esm/vercel-wrapper/index.mjs"
77
- },
78
- "require": {
79
- "types": "./dist/cjs/vercel-wrapper/index.d.ts",
80
- "default": "./dist/cjs/vercel-wrapper/index.js"
81
- },
82
- "default": "./dist/cjs/vercel-wrapper/index.js"
173
+ "devDependencies": {
174
+ "webpack": "^5.97.1",
175
+ "ts-loader": "^9.5.1",
176
+ "vitest": "^3.2.4",
177
+ "msw": ">=2.0.0",
178
+ "@types/node": "^18.19.70",
179
+ "typescript": "~5.7.2",
180
+ "@biomejs/biome": "2.3.1",
181
+ "@ai-sdk/openai": ">=1.0.0",
182
+ "@anthropic-ai/sdk": ">=0.36.3",
183
+ "@langchain/core": ">=0.3.0",
184
+ "@mistralai/mistralai": ">=1.0.0",
185
+ "ai": ">=5.0.0",
186
+ "openai": ">=4.85.4",
187
+ "nock": ">=14.0.0",
188
+ "zod": ">=3.0.0"
83
189
  },
84
- "./tracing": {
85
- "types": "./dist/cjs/tracing/index.d.ts",
86
- "import": {
87
- "types": "./dist/esm/tracing/index.d.mts",
88
- "default": "./dist/esm/tracing/index.mjs"
89
- },
90
- "require": {
91
- "types": "./dist/cjs/tracing/index.d.ts",
92
- "default": "./dist/cjs/tracing/index.js"
93
- },
94
- "default": "./dist/cjs/tracing/index.js"
190
+ "browser": {
191
+ "fs": false,
192
+ "os": false,
193
+ "path": false,
194
+ "stream": false
95
195
  },
96
- "./tracing/auto": {
97
- "types": "./dist/cjs/tracing/autoInstrumentation.d.ts",
98
- "import": {
99
- "types": "./dist/esm/tracing/autoInstrumentation.d.mts",
100
- "default": "./dist/esm/tracing/autoInstrumentation.mjs"
101
- },
102
- "require": {
103
- "types": "./dist/cjs/tracing/autoInstrumentation.d.ts",
104
- "default": "./dist/cjs/tracing/autoInstrumentation.js"
105
- },
106
- "default": "./dist/cjs/tracing/autoInstrumentation.js"
107
- }
108
- },
109
- "files": [
110
- "dist",
111
- "reference.md",
112
- "README.md",
113
- "LICENSE"
114
- ],
115
- "scripts": {
116
- "format": "biome format --write --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
117
- "format:check": "biome format --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
118
- "lint": "biome lint --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
119
- "lint:fix": "biome lint --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
120
- "check": "biome check --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
121
- "check:fix": "biome check --fix --unsafe --skip-parse-errors --no-errors-on-unmatched --max-diagnostics=none",
122
- "build": "pnpm build:cjs && pnpm build:esm",
123
- "build:cjs": "tsc --project ./tsconfig.cjs.json",
124
- "build:esm": "tsc --project ./tsconfig.esm.json && node scripts/rename-to-esm-files.js dist/esm",
125
- "test": "vitest",
126
- "test:unit": "vitest --project unit",
127
- "test:wire": "vitest --project wire"
128
- },
129
- "dependencies": {
130
- "@opentelemetry/api": ">=1.9.0",
131
- "@opentelemetry/context-async-hooks": ">=0.208.0",
132
- "@opentelemetry/exporter-trace-otlp-http": ">=0.208.0",
133
- "@opentelemetry/exporter-trace-otlp-proto": ">=0.208.0",
134
- "@opentelemetry/instrumentation": ">=0.208.0",
135
- "@opentelemetry/resources": ">=1.38.0",
136
- "@opentelemetry/sdk-node": ">=0.208.0",
137
- "@opentelemetry/sdk-trace-base": ">=1.38.0",
138
- "@opentelemetry/sdk-trace-node": "^2.2.0",
139
- "@opentelemetry/semantic-conventions": ">=1.38.0",
140
- "@arizeai/openinference-instrumentation-anthropic": ">=0.1.2",
141
- "@arizeai/openinference-instrumentation-openai": ">=4.0.0",
142
- "@arizeai/openinference-semantic-conventions": ">=2.1.2",
143
- "@traceloop/instrumentation-bedrock": ">=0.22.0"
144
- },
145
- "peerDependencies": {
146
- "@ai-sdk/openai": ">=1.0.0",
147
- "@anthropic-ai/sdk": ">=0.36.3",
148
- "@langchain/core": ">=0.3.0",
149
- "@mistralai/mistralai": ">=1.0.0",
150
- "ai": ">=5.0.0",
151
- "openai": ">=4.85.4"
152
- },
153
- "peerDependenciesMeta": {
154
- "@ai-sdk/openai": {
155
- "optional": true
156
- },
157
- "@anthropic-ai/sdk": {
158
- "optional": true
159
- },
160
- "@langchain/core": {
161
- "optional": true
196
+ "packageManager": "pnpm@10.14.0",
197
+ "engines": {
198
+ "node": ">=18.0.0"
162
199
  },
163
- "@mistralai/mistralai": {
164
- "optional": true
165
- },
166
- "ai": {
167
- "optional": true
168
- },
169
- "openai": {
170
- "optional": true
171
- }
172
- },
173
- "devDependencies": {
174
- "webpack": "^5.97.1",
175
- "ts-loader": "^9.5.1",
176
- "vitest": "^3.2.4",
177
- "msw": ">=2.0.0",
178
- "@types/node": "^18.19.70",
179
- "typescript": "~5.7.2",
180
- "@biomejs/biome": "2.3.1",
181
- "@ai-sdk/openai": ">=1.0.0",
182
- "@anthropic-ai/sdk": ">=0.36.3",
183
- "@langchain/core": ">=0.3.0",
184
- "@mistralai/mistralai": ">=1.0.0",
185
- "ai": ">=5.0.0",
186
- "openai": ">=4.85.4",
187
- "nock": ">=14.0.0",
188
- "zod": ">=3.0.0"
189
- },
190
- "browser": {
191
- "fs": false,
192
- "os": false,
193
- "path": false,
194
- "stream": false
195
- },
196
- "packageManager": "pnpm@10.14.0",
197
- "engines": {
198
- "node": ">=18.0.0"
199
- },
200
- "sideEffects": false,
201
- "typesVersions": {
202
- "*": {
203
- "openai": [
204
- "./dist/cjs/openai-wrapper/index.d.ts"
205
- ],
206
- "anthropic": [
207
- "./dist/cjs/anthropic-wrapper/index.d.ts"
208
- ],
209
- "mistral": [
210
- "./dist/cjs/mistral-wrapper/index.d.ts"
211
- ],
212
- "langchain": [
213
- "./dist/cjs/langchain-wrapper/index.d.ts"
214
- ],
215
- "vercel": [
216
- "./dist/cjs/vercel-wrapper/index.d.ts"
217
- ],
218
- "tracing": [
219
- "./dist/cjs/tracing/index.d.ts"
220
- ],
221
- "tracing/auto": [
222
- "./dist/cjs/tracing/autoInstrumentation.d.ts"
223
- ]
200
+ "sideEffects": false,
201
+ "typesVersions": {
202
+ "*": {
203
+ "openai": [
204
+ "./dist/cjs/openai-wrapper/index.d.ts"
205
+ ],
206
+ "anthropic": [
207
+ "./dist/cjs/anthropic-wrapper/index.d.ts"
208
+ ],
209
+ "mistral": [
210
+ "./dist/cjs/mistral-wrapper/index.d.ts"
211
+ ],
212
+ "langchain": [
213
+ "./dist/cjs/langchain-wrapper/index.d.ts"
214
+ ],
215
+ "vercel": [
216
+ "./dist/cjs/vercel-wrapper/index.d.ts"
217
+ ],
218
+ "tracing": [
219
+ "./dist/cjs/tracing/index.d.ts"
220
+ ],
221
+ "tracing/auto": [
222
+ "./dist/cjs/tracing/autoInstrumentation.d.ts"
223
+ ]
224
+ }
224
225
  }
225
- }
226
226
  }
package/reference.md CHANGED
@@ -1004,8 +1004,6 @@ Creates a new contact for the organization
1004
1004
  ```typescript
1005
1005
  await client.contacts.createContact({
1006
1006
  customerId: "customerId",
1007
- firstName: "firstName",
1008
- lastName: "lastName",
1009
1007
  email: "email"
1010
1008
  });
1011
1009