@naturalpay/sdk 1.6.26 → 1.6.27

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 (27) hide show
  1. package/dist/cjs/BaseClient.js +2 -2
  2. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.d.ts +1 -1
  3. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.d.ts +6 -3
  4. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.d.ts +4 -0
  5. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.d.ts +1 -0
  6. package/dist/cjs/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.js +1 -0
  7. package/dist/cjs/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.ts +1 -1
  8. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.d.ts +8 -2
  9. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.d.ts +4 -0
  10. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.d.ts +1 -0
  11. package/dist/cjs/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.js +1 -0
  12. package/dist/cjs/version.d.ts +1 -1
  13. package/dist/cjs/version.js +1 -1
  14. package/dist/esm/BaseClient.mjs +2 -2
  15. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItem.d.mts +1 -1
  16. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissions.d.mts +6 -3
  17. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsType.d.mts +4 -0
  18. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.d.mts +1 -0
  19. package/dist/esm/api/resources/customers/types/CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType.mjs +1 -0
  20. package/dist/esm/api/resources/simulations/client/requests/InviteCustomerSimulationsRequest.d.mts +1 -1
  21. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissions.d.mts +8 -2
  22. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsType.d.mts +4 -0
  23. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.d.mts +1 -0
  24. package/dist/esm/api/resources/simulations/types/InviteCustomerSimulationsRequestPermissionsTypeType.mjs +1 -0
  25. package/dist/esm/version.d.mts +1 -1
  26. package/dist/esm/version.mjs +1 -1
  27. package/package.json +1 -1
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
43
43
  const headers = (0, headers_js_1.mergeHeaders)({
44
44
  "X-Fern-Language": "JavaScript",
45
45
  "X-Fern-SDK-Name": "@naturalpay/sdk",
46
- "X-Fern-SDK-Version": "1.6.26",
47
- "User-Agent": "@naturalpay/sdk/1.6.26",
46
+ "X-Fern-SDK-Version": "1.6.27",
47
+ "User-Agent": "@naturalpay/sdk/1.6.27",
48
48
  "X-Fern-Runtime": core.RUNTIME.type,
49
49
  "X-Fern-Runtime-Version": core.RUNTIME.version,
50
50
  "X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
@@ -1,6 +1,6 @@
1
1
  import type * as Natural from "../../../index.js";
2
2
  export interface CreateInvitationsCustomersRequestAgentsItem {
3
- /** Permissions requested for this agent. Use {"type":"ALL"} to request all currently supported customer permissions, excluding card acceptance setup and issued-card access when those features are disabled for your party. The resolved list is saved when the invitation is created and returned in the response. Future permissions are not added. Reusing a pending invitation preserves its original permissions. */
3
+ /** Permissions for this agent, or `{"type":"ALL"}` for all of them. Fixed when the invitation is created. */
4
4
  permissions: Natural.CreateInvitationsCustomersRequestAgentsItemPermissions;
5
5
  /** Agent ID (agt_*). */
6
6
  agentId: string;
@@ -1,8 +1,11 @@
1
1
  import type * as Natural from "../../../index.js";
2
2
  /**
3
- * Permissions requested for this agent. Use {"type":"ALL"} to request all currently supported customer permissions, excluding card acceptance setup and issued-card access when those features are disabled for your party. The resolved list is saved when the invitation is created and returned in the response. Future permissions are not added. Reusing a pending invitation preserves its original permissions.
3
+ * Permissions for this agent, or `{"type":"ALL"}` for all of them. Fixed when the invitation is created.
4
4
  */
5
5
  export type CreateInvitationsCustomersRequestAgentsItemPermissions =
6
6
  /**
7
- * Permissions requested for this agent. */
8
- Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem[] | Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsType;
7
+ * Specific permissions to request. */
8
+ Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem[]
9
+ /**
10
+ * Request every permission available to your party today. */
11
+ | Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsType;
@@ -1,4 +1,8 @@
1
1
  import type * as Natural from "../../../index.js";
2
+ /**
3
+ * Request every permission available to your party today.
4
+ */
2
5
  export interface CreateInvitationsCustomersRequestAgentsItemPermissionsType {
6
+ /** Set to `ALL`. */
3
7
  type: Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType;
4
8
  }
@@ -1,3 +1,4 @@
1
+ /** Set to `ALL`. */
1
2
  export declare const CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType: {
2
3
  readonly All: "ALL";
3
4
  };
@@ -2,6 +2,7 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType = void 0;
5
+ /** Set to `ALL`. */
5
6
  exports.CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType = {
6
7
  All: "ALL",
7
8
  };
@@ -14,7 +14,7 @@ export interface InviteCustomerSimulationsRequest {
14
14
  idempotencyKey: string;
15
15
  /** Agents (agt_*) to offer. The test customer receives a pending invitation for each. */
16
16
  agentIds: string[];
17
- /** Permissions to request for each agent. Provide a nonempty list or use {"type":"ALL"} to request all currently supported customer permissions, excluding card acceptance setup and issued-card access when those features are disabled for your party. The resolved list is saved when the invitation is created and returned in the response. Future permissions are not added. Retrying with the same idempotency key preserves the original list. */
17
+ /** Permissions for each agent, or `{"type":"ALL"}` for all of them. Fixed when the invitation is created. */
18
18
  permissions: Natural.InviteCustomerSimulationsRequestPermissions;
19
19
  /** Test customer party type. Defaults to PERSON. */
20
20
  type?: Natural.InviteCustomerSimulationsRequestType;
@@ -1,5 +1,11 @@
1
1
  import type * as Natural from "../../../index.js";
2
2
  /**
3
- * Permissions to request for each agent. Provide a nonempty list or use {"type":"ALL"} to request all currently supported customer permissions, excluding card acceptance setup and issued-card access when those features are disabled for your party. The resolved list is saved when the invitation is created and returned in the response. Future permissions are not added. Retrying with the same idempotency key preserves the original list.
3
+ * Permissions for each agent, or `{"type":"ALL"}` for all of them. Fixed when the invitation is created.
4
4
  */
5
- export type InviteCustomerSimulationsRequestPermissions = Natural.InviteCustomerSimulationsRequestPermissionsZeroItem[] | Natural.InviteCustomerSimulationsRequestPermissionsType;
5
+ export type InviteCustomerSimulationsRequestPermissions =
6
+ /**
7
+ * Specific permissions to request. */
8
+ Natural.InviteCustomerSimulationsRequestPermissionsZeroItem[]
9
+ /**
10
+ * Request every permission available to your party today. */
11
+ | Natural.InviteCustomerSimulationsRequestPermissionsType;
@@ -1,4 +1,8 @@
1
1
  import type * as Natural from "../../../index.js";
2
+ /**
3
+ * Request every permission available to your party today.
4
+ */
2
5
  export interface InviteCustomerSimulationsRequestPermissionsType {
6
+ /** Set to `ALL`. */
3
7
  type: Natural.InviteCustomerSimulationsRequestPermissionsTypeType;
4
8
  }
@@ -1,3 +1,4 @@
1
+ /** Set to `ALL`. */
1
2
  export declare const InviteCustomerSimulationsRequestPermissionsTypeType: {
2
3
  readonly All: "ALL";
3
4
  };
@@ -2,6 +2,7 @@
2
2
  // This file was auto-generated by Fern from our API Definition.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.InviteCustomerSimulationsRequestPermissionsTypeType = void 0;
5
+ /** Set to `ALL`. */
5
6
  exports.InviteCustomerSimulationsRequestPermissionsTypeType = {
6
7
  All: "ALL",
7
8
  };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.26";
1
+ export declare const SDK_VERSION = "1.6.27";
@@ -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.6.26";
4
+ exports.SDK_VERSION = "1.6.27";
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
6
6
  const headers = mergeHeaders({
7
7
  "X-Fern-Language": "JavaScript",
8
8
  "X-Fern-SDK-Name": "@naturalpay/sdk",
9
- "X-Fern-SDK-Version": "1.6.26",
10
- "User-Agent": "@naturalpay/sdk/1.6.26",
9
+ "X-Fern-SDK-Version": "1.6.27",
10
+ "User-Agent": "@naturalpay/sdk/1.6.27",
11
11
  "X-Fern-Runtime": core.RUNTIME.type,
12
12
  "X-Fern-Runtime-Version": core.RUNTIME.version,
13
13
  "X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
@@ -1,6 +1,6 @@
1
1
  import type * as Natural from "../../../index.mjs";
2
2
  export interface CreateInvitationsCustomersRequestAgentsItem {
3
- /** Permissions requested for this agent. Use {"type":"ALL"} to request all currently supported customer permissions, excluding card acceptance setup and issued-card access when those features are disabled for your party. The resolved list is saved when the invitation is created and returned in the response. Future permissions are not added. Reusing a pending invitation preserves its original permissions. */
3
+ /** Permissions for this agent, or `{"type":"ALL"}` for all of them. Fixed when the invitation is created. */
4
4
  permissions: Natural.CreateInvitationsCustomersRequestAgentsItemPermissions;
5
5
  /** Agent ID (agt_*). */
6
6
  agentId: string;
@@ -1,8 +1,11 @@
1
1
  import type * as Natural from "../../../index.mjs";
2
2
  /**
3
- * Permissions requested for this agent. Use {"type":"ALL"} to request all currently supported customer permissions, excluding card acceptance setup and issued-card access when those features are disabled for your party. The resolved list is saved when the invitation is created and returned in the response. Future permissions are not added. Reusing a pending invitation preserves its original permissions.
3
+ * Permissions for this agent, or `{"type":"ALL"}` for all of them. Fixed when the invitation is created.
4
4
  */
5
5
  export type CreateInvitationsCustomersRequestAgentsItemPermissions =
6
6
  /**
7
- * Permissions requested for this agent. */
8
- Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem[] | Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsType;
7
+ * Specific permissions to request. */
8
+ Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsZeroItem[]
9
+ /**
10
+ * Request every permission available to your party today. */
11
+ | Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsType;
@@ -1,4 +1,8 @@
1
1
  import type * as Natural from "../../../index.mjs";
2
+ /**
3
+ * Request every permission available to your party today.
4
+ */
2
5
  export interface CreateInvitationsCustomersRequestAgentsItemPermissionsType {
6
+ /** Set to `ALL`. */
3
7
  type: Natural.CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType;
4
8
  }
@@ -1,3 +1,4 @@
1
+ /** Set to `ALL`. */
1
2
  export declare const CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType: {
2
3
  readonly All: "ALL";
3
4
  };
@@ -1,4 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
+ /** Set to `ALL`. */
2
3
  export const CreateInvitationsCustomersRequestAgentsItemPermissionsTypeType = {
3
4
  All: "ALL",
4
5
  };
@@ -14,7 +14,7 @@ export interface InviteCustomerSimulationsRequest {
14
14
  idempotencyKey: string;
15
15
  /** Agents (agt_*) to offer. The test customer receives a pending invitation for each. */
16
16
  agentIds: string[];
17
- /** Permissions to request for each agent. Provide a nonempty list or use {"type":"ALL"} to request all currently supported customer permissions, excluding card acceptance setup and issued-card access when those features are disabled for your party. The resolved list is saved when the invitation is created and returned in the response. Future permissions are not added. Retrying with the same idempotency key preserves the original list. */
17
+ /** Permissions for each agent, or `{"type":"ALL"}` for all of them. Fixed when the invitation is created. */
18
18
  permissions: Natural.InviteCustomerSimulationsRequestPermissions;
19
19
  /** Test customer party type. Defaults to PERSON. */
20
20
  type?: Natural.InviteCustomerSimulationsRequestType;
@@ -1,5 +1,11 @@
1
1
  import type * as Natural from "../../../index.mjs";
2
2
  /**
3
- * Permissions to request for each agent. Provide a nonempty list or use {"type":"ALL"} to request all currently supported customer permissions, excluding card acceptance setup and issued-card access when those features are disabled for your party. The resolved list is saved when the invitation is created and returned in the response. Future permissions are not added. Retrying with the same idempotency key preserves the original list.
3
+ * Permissions for each agent, or `{"type":"ALL"}` for all of them. Fixed when the invitation is created.
4
4
  */
5
- export type InviteCustomerSimulationsRequestPermissions = Natural.InviteCustomerSimulationsRequestPermissionsZeroItem[] | Natural.InviteCustomerSimulationsRequestPermissionsType;
5
+ export type InviteCustomerSimulationsRequestPermissions =
6
+ /**
7
+ * Specific permissions to request. */
8
+ Natural.InviteCustomerSimulationsRequestPermissionsZeroItem[]
9
+ /**
10
+ * Request every permission available to your party today. */
11
+ | Natural.InviteCustomerSimulationsRequestPermissionsType;
@@ -1,4 +1,8 @@
1
1
  import type * as Natural from "../../../index.mjs";
2
+ /**
3
+ * Request every permission available to your party today.
4
+ */
2
5
  export interface InviteCustomerSimulationsRequestPermissionsType {
6
+ /** Set to `ALL`. */
3
7
  type: Natural.InviteCustomerSimulationsRequestPermissionsTypeType;
4
8
  }
@@ -1,3 +1,4 @@
1
+ /** Set to `ALL`. */
1
2
  export declare const InviteCustomerSimulationsRequestPermissionsTypeType: {
2
3
  readonly All: "ALL";
3
4
  };
@@ -1,4 +1,5 @@
1
1
  // This file was auto-generated by Fern from our API Definition.
2
+ /** Set to `ALL`. */
2
3
  export const InviteCustomerSimulationsRequestPermissionsTypeType = {
3
4
  All: "ALL",
4
5
  };
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.26";
1
+ export declare const SDK_VERSION = "1.6.27";
@@ -1 +1 @@
1
- export const SDK_VERSION = "1.6.26";
1
+ export const SDK_VERSION = "1.6.27";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturalpay/sdk",
3
- "version": "1.6.26",
3
+ "version": "1.6.27",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",