@chrt-inc/typescript-sdk 1.306.0 → 1.308.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.
@@ -71,8 +71,8 @@ class ChrtClient {
71
71
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
72
72
  "X-Fern-Language": "JavaScript",
73
73
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
74
- "X-Fern-SDK-Version": "1.306.0",
75
- "User-Agent": "@chrt-inc/typescript-sdk/1.306.0",
74
+ "X-Fern-SDK-Version": "1.308.0",
75
+ "User-Agent": "@chrt-inc/typescript-sdk/1.308.0",
76
76
  "X-Fern-Runtime": core.RUNTIME.type,
77
77
  "X-Fern-Runtime-Version": core.RUNTIME.version,
78
78
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -61,7 +61,7 @@ export declare class Drivers {
61
61
  * @example
62
62
  * await client.drivers.createV1({
63
63
  * org_member: {
64
- * role: "role",
64
+ * role: "owner",
65
65
  * user_id: "user_id"
66
66
  * }
67
67
  * })
@@ -168,7 +168,7 @@ class Drivers {
168
168
  * @example
169
169
  * await client.drivers.createV1({
170
170
  * org_member: {
171
- * role: "role",
171
+ * role: "owner",
172
172
  * user_id: "user_id"
173
173
  * }
174
174
  * })
@@ -6,7 +6,7 @@ import * as Chrt from "../../../../index.js";
6
6
  * @example
7
7
  * {
8
8
  * org_member: {
9
- * role: "role",
9
+ * role: "owner",
10
10
  * user_id: "user_id"
11
11
  * }
12
12
  * }
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../index.js";
4
5
  export interface OrgMemberDetails {
5
- role: string;
6
- role_name?: string | null;
6
+ role: Chrt.OrgRoleEnum;
7
7
  /** Must be a string starting with `user_` */
8
8
  user_id: string;
9
9
  first_name?: string | null;
@@ -17,12 +17,13 @@
17
17
  * - prod: https://dashboard.clerk.com/apps/app_2rDeFYQ7SBioYoMhG38FgirTE4Q/instances/ins_2rDmMgzRGFXd6Ml6N8eV8pOXeyI/organizations-settings/roles
18
18
  * - dev: https://dashboard.clerk.com/apps/app_2rDeFYQ7SBioYoMhG38FgirTE4Q/instances/ins_2rDeFZFEZ3nIC9VQt3zYfvzL14Z/organizations-settings/roles
19
19
  *
20
- * Clerk includes the "org:" prefix automatically, so we use it in the enum.
20
+ * Clerk requires the "org:" prefix when calling its API, but we store without it.
21
+ * When sending to Clerk, prepend "org:" to the enum value.
21
22
  */
22
- export type OrgRoleEnum = "org:owner" | "org:administrator" | "org:operator" | "org:driver";
23
+ export type OrgRoleEnum = "owner" | "administrator" | "operator" | "driver";
23
24
  export declare const OrgRoleEnum: {
24
- readonly OrgOwner: "org:owner";
25
- readonly OrgAdministrator: "org:administrator";
26
- readonly OrgOperator: "org:operator";
27
- readonly OrgDriver: "org:driver";
25
+ readonly Owner: "owner";
26
+ readonly Administrator: "administrator";
27
+ readonly Operator: "operator";
28
+ readonly Driver: "driver";
28
29
  };
@@ -5,8 +5,8 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.OrgRoleEnum = void 0;
7
7
  exports.OrgRoleEnum = {
8
- OrgOwner: "org:owner",
9
- OrgAdministrator: "org:administrator",
10
- OrgOperator: "org:operator",
11
- OrgDriver: "org:driver",
8
+ Owner: "owner",
9
+ Administrator: "administrator",
10
+ Operator: "operator",
11
+ Driver: "driver",
12
12
  };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.306.0";
1
+ export declare const SDK_VERSION = "1.308.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.306.0";
4
+ exports.SDK_VERSION = "1.308.0";
@@ -35,8 +35,8 @@ export class ChrtClient {
35
35
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
36
36
  "X-Fern-Language": "JavaScript",
37
37
  "X-Fern-SDK-Name": "@chrt-inc/typescript-sdk",
38
- "X-Fern-SDK-Version": "1.306.0",
39
- "User-Agent": "@chrt-inc/typescript-sdk/1.306.0",
38
+ "X-Fern-SDK-Version": "1.308.0",
39
+ "User-Agent": "@chrt-inc/typescript-sdk/1.308.0",
40
40
  "X-Fern-Runtime": core.RUNTIME.type,
41
41
  "X-Fern-Runtime-Version": core.RUNTIME.version,
42
42
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -61,7 +61,7 @@ export declare class Drivers {
61
61
  * @example
62
62
  * await client.drivers.createV1({
63
63
  * org_member: {
64
- * role: "role",
64
+ * role: "owner",
65
65
  * user_id: "user_id"
66
66
  * }
67
67
  * })
@@ -132,7 +132,7 @@ export class Drivers {
132
132
  * @example
133
133
  * await client.drivers.createV1({
134
134
  * org_member: {
135
- * role: "role",
135
+ * role: "owner",
136
136
  * user_id: "user_id"
137
137
  * }
138
138
  * })
@@ -6,7 +6,7 @@ import * as Chrt from "../../../../index.mjs";
6
6
  * @example
7
7
  * {
8
8
  * org_member: {
9
- * role: "role",
9
+ * role: "owner",
10
10
  * user_id: "user_id"
11
11
  * }
12
12
  * }
@@ -1,9 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Chrt from "../index.mjs";
4
5
  export interface OrgMemberDetails {
5
- role: string;
6
- role_name?: string | null;
6
+ role: Chrt.OrgRoleEnum;
7
7
  /** Must be a string starting with `user_` */
8
8
  user_id: string;
9
9
  first_name?: string | null;
@@ -17,12 +17,13 @@
17
17
  * - prod: https://dashboard.clerk.com/apps/app_2rDeFYQ7SBioYoMhG38FgirTE4Q/instances/ins_2rDmMgzRGFXd6Ml6N8eV8pOXeyI/organizations-settings/roles
18
18
  * - dev: https://dashboard.clerk.com/apps/app_2rDeFYQ7SBioYoMhG38FgirTE4Q/instances/ins_2rDeFZFEZ3nIC9VQt3zYfvzL14Z/organizations-settings/roles
19
19
  *
20
- * Clerk includes the "org:" prefix automatically, so we use it in the enum.
20
+ * Clerk requires the "org:" prefix when calling its API, but we store without it.
21
+ * When sending to Clerk, prepend "org:" to the enum value.
21
22
  */
22
- export type OrgRoleEnum = "org:owner" | "org:administrator" | "org:operator" | "org:driver";
23
+ export type OrgRoleEnum = "owner" | "administrator" | "operator" | "driver";
23
24
  export declare const OrgRoleEnum: {
24
- readonly OrgOwner: "org:owner";
25
- readonly OrgAdministrator: "org:administrator";
26
- readonly OrgOperator: "org:operator";
27
- readonly OrgDriver: "org:driver";
25
+ readonly Owner: "owner";
26
+ readonly Administrator: "administrator";
27
+ readonly Operator: "operator";
28
+ readonly Driver: "driver";
28
29
  };
@@ -2,8 +2,8 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  export const OrgRoleEnum = {
5
- OrgOwner: "org:owner",
6
- OrgAdministrator: "org:administrator",
7
- OrgOperator: "org:operator",
8
- OrgDriver: "org:driver",
5
+ Owner: "owner",
6
+ Administrator: "administrator",
7
+ Operator: "operator",
8
+ Driver: "driver",
9
9
  };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.306.0";
1
+ export declare const SDK_VERSION = "1.308.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.306.0";
1
+ export const SDK_VERSION = "1.308.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chrt-inc/typescript-sdk",
3
- "version": "1.306.0",
3
+ "version": "1.308.0",
4
4
  "private": false,
5
5
  "repository": "github:chrt-inc/typescript-sdk",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -4433,7 +4433,7 @@ Creates a new driver profile for an organization member with optional vehicle ty
4433
4433
  ```typescript
4434
4434
  await client.drivers.createV1({
4435
4435
  org_member: {
4436
- role: "role",
4436
+ role: "owner",
4437
4437
  user_id: "user_id",
4438
4438
  },
4439
4439
  });