@epilot/pricing-client 3.62.2 → 3.62.3

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/dist/openapi.d.ts CHANGED
@@ -3610,6 +3610,49 @@ declare namespace Components {
3610
3610
  string | {
3611
3611
  [name: string]: any;
3612
3612
  }[];
3613
+ } | {
3614
+ code: "OVERRIDE_VALUE_INVALID";
3615
+ details: {
3616
+ /**
3617
+ * Where the value sits, as a dotted path of the request's own keys, with array
3618
+ * entries by index.
3619
+ *
3620
+ * example:
3621
+ * values.tiers.0.unit_amount_decimal
3622
+ */
3623
+ path: string;
3624
+ /**
3625
+ * What the value has to be, in prose.
3626
+ * example:
3627
+ * a non-empty string
3628
+ */
3629
+ expected: string;
3630
+ };
3631
+ /**
3632
+ * Error message
3633
+ */
3634
+ message: string;
3635
+ /**
3636
+ * The HTTP status code
3637
+ */
3638
+ status?: number;
3639
+ /**
3640
+ * The cause of the error (visible for bad requests - http 400)
3641
+ */
3642
+ cause?: string;
3643
+ /**
3644
+ * What went wrong. The same string as `message`, except on a request-validation
3645
+ * failure, which puts the list of validation errors here instead.
3646
+ *
3647
+ */
3648
+ error?: /**
3649
+ * What went wrong. The same string as `message`, except on a request-validation
3650
+ * failure, which puts the list of validation errors here instead.
3651
+ *
3652
+ */
3653
+ string | {
3654
+ [name: string]: any;
3655
+ }[];
3613
3656
  } | {
3614
3657
  code: "CONDITIONAL_PRICING_NOT_ENABLED";
3615
3658
  details: {
@@ -6116,6 +6159,51 @@ declare namespace Components {
6116
6159
  }[] | string | {
6117
6160
  [name: string]: any;
6118
6161
  }[];
6162
+ } | {
6163
+ code: "OVERRIDE_VALUE_INVALID";
6164
+ details: {
6165
+ /**
6166
+ * Where the value sits, as a dotted path of the request's own keys, with array
6167
+ * entries by index.
6168
+ *
6169
+ * example:
6170
+ * values.tiers.0.unit_amount_decimal
6171
+ */
6172
+ path: string;
6173
+ /**
6174
+ * What the value has to be, in prose.
6175
+ * example:
6176
+ * a non-empty string
6177
+ */
6178
+ expected: string;
6179
+ };
6180
+ /**
6181
+ * Error message
6182
+ */
6183
+ message: string;
6184
+ /**
6185
+ * The HTTP status code
6186
+ */
6187
+ status?: number;
6188
+ /**
6189
+ * The cause of the error (visible for bad requests - http 400)
6190
+ */
6191
+ cause?: string;
6192
+ /**
6193
+ * What went wrong. The same string as `message`, except on a request-validation
6194
+ * failure, which puts the list of validation errors here instead.
6195
+ *
6196
+ */
6197
+ error?: /**
6198
+ * What went wrong. The same string as `message`, except on a request-validation
6199
+ * failure, which puts the list of validation errors here instead.
6200
+ *
6201
+ */
6202
+ string | {
6203
+ [name: string]: any;
6204
+ }[] | string | {
6205
+ [name: string]: any;
6206
+ }[];
6119
6207
  } | {
6120
6208
  code: "CONDITIONAL_PRICING_NOT_ENABLED";
6121
6209
  details: {
@@ -12852,6 +12940,53 @@ declare namespace Components {
12852
12940
  }[] | string | {
12853
12941
  [name: string]: any;
12854
12942
  }[];
12943
+ } | {
12944
+ code: "OVERRIDE_VALUE_INVALID";
12945
+ details: {
12946
+ /**
12947
+ * Where the value sits, as a dotted path of the request's own keys, with array
12948
+ * entries by index.
12949
+ *
12950
+ * example:
12951
+ * values.tiers.0.unit_amount_decimal
12952
+ */
12953
+ path: string;
12954
+ /**
12955
+ * What the value has to be, in prose.
12956
+ * example:
12957
+ * a non-empty string
12958
+ */
12959
+ expected: string;
12960
+ };
12961
+ /**
12962
+ * Error message
12963
+ */
12964
+ message: string;
12965
+ /**
12966
+ * The HTTP status code
12967
+ */
12968
+ status?: number;
12969
+ /**
12970
+ * The cause of the error (visible for bad requests - http 400)
12971
+ */
12972
+ cause?: string;
12973
+ /**
12974
+ * What went wrong. The same string as `message`, except on a request-validation
12975
+ * failure, which puts the list of validation errors here instead.
12976
+ *
12977
+ */
12978
+ error?: /**
12979
+ * What went wrong. The same string as `message`, except on a request-validation
12980
+ * failure, which puts the list of validation errors here instead.
12981
+ *
12982
+ */
12983
+ string | {
12984
+ [name: string]: any;
12985
+ }[] | string | {
12986
+ [name: string]: any;
12987
+ }[] | string | {
12988
+ [name: string]: any;
12989
+ }[];
12855
12990
  } | {
12856
12991
  code: "CONDITIONAL_PRICING_NOT_ENABLED";
12857
12992
  details: {
@@ -12979,11 +13114,12 @@ declare namespace Components {
12979
13114
  * - `IDENTIFIER_INVALID` (400): an id in the request cannot be used as a storage key — empty, carrying an unsupported character, or longer than 128 characters
12980
13115
  * - `VALID_FROM_INVALID` (400): a `valid_from` is not one of the timestamp forms a version timeline can be sorted by
12981
13116
  * - `VALUE_UNSTORABLE` (400): a write carries a value the store cannot hold, such as a non-finite number or one outside the table's numeric range
13117
+ * - `OVERRIDE_VALUE_INVALID` (400): a write overrides a `currency` or `number` field, or an amount/decimal pair, with a value of the wrong type
12982
13118
  * - `CONDITIONAL_PRICING_NOT_ENABLED` (403): the organization has not opted in to Conditional Pricing
12983
13119
  * - `CONDITIONAL_PRICING_NOT_READY` (409): the organization opted in minutes ago and a variant cannot be created until its setup finishes
12984
13120
  *
12985
13121
  */
12986
- export type ConditionalPricingErrorCode = "SCHEMA_NOT_FOUND" | "ENTITY_NOT_FOUND" | "ENTITY_TYPE_MISMATCH" | "ENTITY_NOT_CONDITIONAL" | "VARIANT_NOT_FOUND" | "VERSION_NOT_FOUND" | "NO_MATCHES" | "NO_ACTIVE_VERSION" | "AMBIGUOUS_RESOLUTION" | "TUPLE_CONFLICT" | "VERSION_CONFLICT" | "CONDITION_UNDEFINED" | "VARIANT_PIN_UNDECLARED" | "OPERATOR_UNSUPPORTED" | "CONTEXT_FORMAT_INVALID" | "CONDITION_VALUE_INVALID" | "CONDITION_UNCONFIGURED" | "TOO_MANY_MATCHES" | "WRITE_CONFLICT" | "OFFSET_WINDOW_EXCEEDED" | "CURSOR_INVALID" | "VARIANT_LIMIT_REACHED" | "PIN_FORMAT_INVALID" | "VARIANT_UNPINNED" | "LAST_VERSION_UNDELETABLE" | "CONDITION_UNREADABLE" | "SORT_INVALID" | "DEFAULT_MARKER_RESERVED" | "DEFAULT_VARIANT_PINS_CONDITIONS" | "VALID_FROM_IMMUTABLE" | "VARIANT_CONDITIONS_IMMUTABLE" | "IDENTIFIER_INVALID" | "VALID_FROM_INVALID" | "VALUE_UNSTORABLE" | "CONDITIONAL_PRICING_NOT_ENABLED" | "CONDITIONAL_PRICING_NOT_READY";
13122
+ export type ConditionalPricingErrorCode = "SCHEMA_NOT_FOUND" | "ENTITY_NOT_FOUND" | "ENTITY_TYPE_MISMATCH" | "ENTITY_NOT_CONDITIONAL" | "VARIANT_NOT_FOUND" | "VERSION_NOT_FOUND" | "NO_MATCHES" | "NO_ACTIVE_VERSION" | "AMBIGUOUS_RESOLUTION" | "TUPLE_CONFLICT" | "VERSION_CONFLICT" | "CONDITION_UNDEFINED" | "VARIANT_PIN_UNDECLARED" | "OPERATOR_UNSUPPORTED" | "CONTEXT_FORMAT_INVALID" | "CONDITION_VALUE_INVALID" | "CONDITION_UNCONFIGURED" | "TOO_MANY_MATCHES" | "WRITE_CONFLICT" | "OFFSET_WINDOW_EXCEEDED" | "CURSOR_INVALID" | "VARIANT_LIMIT_REACHED" | "PIN_FORMAT_INVALID" | "VARIANT_UNPINNED" | "LAST_VERSION_UNDELETABLE" | "CONDITION_UNREADABLE" | "SORT_INVALID" | "DEFAULT_MARKER_RESERVED" | "DEFAULT_VARIANT_PINS_CONDITIONS" | "VALID_FROM_IMMUTABLE" | "VARIANT_CONDITIONS_IMMUTABLE" | "IDENTIFIER_INVALID" | "VALID_FROM_INVALID" | "VALUE_UNSTORABLE" | "OVERRIDE_VALUE_INVALID" | "CONDITIONAL_PRICING_NOT_ENABLED" | "CONDITIONAL_PRICING_NOT_READY";
12987
13123
  export interface ConditionalPricingOptIn {
12988
13124
  /**
12989
13125
  * - `PROVISIONING`: the organization's search collection is still being set up, and
package/dist/openapi.json CHANGED
@@ -3946,7 +3946,7 @@
3946
3946
  }
3947
3947
  },
3948
3948
  "400": {
3949
- "description": "`VARIANT_UNPINNED`, `CONDITION_UNDEFINED`, `CONDITION_VALUE_INVALID`,\n`PIN_FORMAT_INVALID`, `DEFAULT_MARKER_RESERVED`, `DEFAULT_VARIANT_PINS_CONDITIONS`,\n`VALID_FROM_INVALID`, `VALUE_UNSTORABLE`, `IDENTIFIER_INVALID`, `ENTITY_TYPE_MISMATCH`.\n",
3949
+ "description": "`VARIANT_UNPINNED`, `CONDITION_UNDEFINED`, `CONDITION_VALUE_INVALID`,\n`PIN_FORMAT_INVALID`, `DEFAULT_MARKER_RESERVED`, `DEFAULT_VARIANT_PINS_CONDITIONS`,\n`VALID_FROM_INVALID`, `VALUE_UNSTORABLE`, `OVERRIDE_VALUE_INVALID`, `IDENTIFIER_INVALID`,\n`ENTITY_TYPE_MISMATCH`.\n",
3950
3950
  "content": {
3951
3951
  "application/json": {
3952
3952
  "schema": {
@@ -4487,7 +4487,7 @@
4487
4487
  }
4488
4488
  },
4489
4489
  "400": {
4490
- "description": "`VALID_FROM_IMMUTABLE`, `VALID_FROM_INVALID`, `VALUE_UNSTORABLE`, `IDENTIFIER_INVALID`,\n`ENTITY_TYPE_MISMATCH`.\n",
4490
+ "description": "`VALID_FROM_IMMUTABLE`, `VALID_FROM_INVALID`, `VALUE_UNSTORABLE`, `OVERRIDE_VALUE_INVALID`,\n`IDENTIFIER_INVALID`, `ENTITY_TYPE_MISMATCH`.\n",
4491
4491
  "content": {
4492
4492
  "application/json": {
4493
4493
  "schema": {
@@ -4589,7 +4589,7 @@
4589
4589
  }
4590
4590
  },
4591
4591
  "400": {
4592
- "description": "`VALID_FROM_IMMUTABLE`, `VALID_FROM_INVALID`, `VALUE_UNSTORABLE`, `IDENTIFIER_INVALID`,\n`ENTITY_TYPE_MISMATCH`.\n",
4592
+ "description": "`VALID_FROM_IMMUTABLE`, `VALID_FROM_INVALID`, `VALUE_UNSTORABLE`, `OVERRIDE_VALUE_INVALID`,\n`IDENTIFIER_INVALID`, `ENTITY_TYPE_MISMATCH`.\n",
4593
4593
  "content": {
4594
4594
  "application/json": {
4595
4595
  "schema": {
@@ -4963,7 +4963,7 @@
4963
4963
  }
4964
4964
  },
4965
4965
  "400": {
4966
- "description": "`VALID_FROM_INVALID`, `VALUE_UNSTORABLE`, `IDENTIFIER_INVALID`, `ENTITY_TYPE_MISMATCH`.",
4966
+ "description": "`VALID_FROM_INVALID`, `VALUE_UNSTORABLE`, `OVERRIDE_VALUE_INVALID`, `IDENTIFIER_INVALID`,\n`ENTITY_TYPE_MISMATCH`.\n",
4967
4967
  "content": {
4968
4968
  "application/json": {
4969
4969
  "schema": {
@@ -5179,7 +5179,7 @@
5179
5179
  }
5180
5180
  },
5181
5181
  "400": {
5182
- "description": "`VALID_FROM_IMMUTABLE`, `VALID_FROM_INVALID`, `VALUE_UNSTORABLE`, `IDENTIFIER_INVALID`,\n`ENTITY_TYPE_MISMATCH`.\n",
5182
+ "description": "`VALID_FROM_IMMUTABLE`, `VALID_FROM_INVALID`, `VALUE_UNSTORABLE`, `OVERRIDE_VALUE_INVALID`,\n`IDENTIFIER_INVALID`, `ENTITY_TYPE_MISMATCH`.\n",
5183
5183
  "content": {
5184
5184
  "application/json": {
5185
5185
  "schema": {
@@ -5291,7 +5291,7 @@
5291
5291
  }
5292
5292
  },
5293
5293
  "400": {
5294
- "description": "`VALID_FROM_IMMUTABLE`, `VALID_FROM_INVALID`, `VALUE_UNSTORABLE`, `IDENTIFIER_INVALID`,\n`ENTITY_TYPE_MISMATCH`.\n",
5294
+ "description": "`VALID_FROM_IMMUTABLE`, `VALID_FROM_INVALID`, `VALUE_UNSTORABLE`, `OVERRIDE_VALUE_INVALID`,\n`IDENTIFIER_INVALID`, `ENTITY_TYPE_MISMATCH`.\n",
5295
5295
  "content": {
5296
5296
  "application/json": {
5297
5297
  "schema": {
@@ -6017,7 +6017,7 @@
6017
6017
  },
6018
6018
  "ConditionalPricingErrorCode": {
6019
6019
  "type": "string",
6020
- "description": "Machine-readable failure mode of a conditional-pricing operation, so a client can branch on\nthe kind of failure instead of parsing the message. A `400` is about the request; a `409` is\nabout what is already stored. Refusals raised by request validation carry no `code` at all.\n\n- `SCHEMA_NOT_FOUND` (404): no conditional entity type by that slug\n- `ENTITY_NOT_FOUND` (404): the schema holds no entity with that id\n- `ENTITY_TYPE_MISMATCH` (400): that id belongs to an entity of another type than the slug named\n- `ENTITY_NOT_CONDITIONAL` (409): the entity is of the right type but was not created as a conditional one\n- `VARIANT_NOT_FOUND` (404): the entity has no such variant\n- `VERSION_NOT_FOUND` (404): the variant has no version at that `valid_from`\n- `NO_MATCHES` (404): nothing applied to the context and the entity has no `default` variant\n- `NO_ACTIVE_VERSION` (404): the variant has no version in effect at the instant asked about\n- `AMBIGUOUS_RESOLUTION` (409): several variants match the given context while a single result was requested\n- `TUPLE_CONFLICT` (409): the condition tuple is already claimed by another variant\n- `VERSION_CONFLICT` (409): a version already exists at the given `valid_from` on that variant\n- `CONDITION_UNDEFINED` (400): the request names a condition the entity's schema does not define\n- `VARIANT_PIN_UNDECLARED` (409): a variant a resolve would compose pins a condition the entity's schema no longer declares\n- `OPERATOR_UNSUPPORTED` (400): the requested predicate, or a sort, is not applicable to the condition's type\n- `CONTEXT_FORMAT_INVALID` (400): a resolve context or listing filter value is malformed for its condition type\n- `CONDITION_VALUE_INVALID` (400): a variant write pins a `select` value absent from the condition's declared `options`\n- `CONDITION_UNCONFIGURED` (409): a variant write pins a `select` condition whose `options` are absent or empty\n- `TOO_MANY_MATCHES` (400): a multi-match resolve exceeded its result cap\n- `WRITE_CONFLICT` (409): transient write contention, retryable unlike `TUPLE_CONFLICT`\n- `OFFSET_WINDOW_EXCEEDED` (400): a listing's `from` plus `size` reaches past the offset window the search index allows\n- `CURSOR_INVALID` (400): a paging cursor cannot be read, or does not belong to the read it was sent with\n- `VARIANT_LIMIT_REACHED` (409): the entity already holds every variant it may hold\n- `PIN_FORMAT_INVALID` (400): a variant pins a value malformed for its condition's type\n- `VARIANT_UNPINNED` (400): a variant write pins no condition and is not marked `default`, or a batch delete item addresses no variant\n- `LAST_VERSION_UNDELETABLE` (409): the delete would leave the variant with no version at all\n- `CONDITION_UNREADABLE` (409): the entity's schema declares a condition in a way this deploy cannot read\n- `SORT_INVALID` (400): a listing's `sort` is not `conditions.<name>:asc` or `conditions.<name>:desc`\n- `DEFAULT_MARKER_RESERVED` (400): a variant write's pins, or a resolve context, address the fallback marker — `default` or `_default`\n- `DEFAULT_VARIANT_PINS_CONDITIONS` (400): a variant marked `default` also pins real conditions\n- `VALID_FROM_IMMUTABLE` (400): a version write asks for a different `valid_from` than the version its own address names\n- `VARIANT_CONDITIONS_IMMUTABLE` (409): a version write carries a condition tuple other than the one its variant was created with\n- `IDENTIFIER_INVALID` (400): an id in the request cannot be used as a storage key — empty, carrying an unsupported character, or longer than 128 characters\n- `VALID_FROM_INVALID` (400): a `valid_from` is not one of the timestamp forms a version timeline can be sorted by\n- `VALUE_UNSTORABLE` (400): a write carries a value the store cannot hold, such as a non-finite number or one outside the table's numeric range\n- `CONDITIONAL_PRICING_NOT_ENABLED` (403): the organization has not opted in to Conditional Pricing\n- `CONDITIONAL_PRICING_NOT_READY` (409): the organization opted in minutes ago and a variant cannot be created until its setup finishes\n",
6020
+ "description": "Machine-readable failure mode of a conditional-pricing operation, so a client can branch on\nthe kind of failure instead of parsing the message. A `400` is about the request; a `409` is\nabout what is already stored. Refusals raised by request validation carry no `code` at all.\n\n- `SCHEMA_NOT_FOUND` (404): no conditional entity type by that slug\n- `ENTITY_NOT_FOUND` (404): the schema holds no entity with that id\n- `ENTITY_TYPE_MISMATCH` (400): that id belongs to an entity of another type than the slug named\n- `ENTITY_NOT_CONDITIONAL` (409): the entity is of the right type but was not created as a conditional one\n- `VARIANT_NOT_FOUND` (404): the entity has no such variant\n- `VERSION_NOT_FOUND` (404): the variant has no version at that `valid_from`\n- `NO_MATCHES` (404): nothing applied to the context and the entity has no `default` variant\n- `NO_ACTIVE_VERSION` (404): the variant has no version in effect at the instant asked about\n- `AMBIGUOUS_RESOLUTION` (409): several variants match the given context while a single result was requested\n- `TUPLE_CONFLICT` (409): the condition tuple is already claimed by another variant\n- `VERSION_CONFLICT` (409): a version already exists at the given `valid_from` on that variant\n- `CONDITION_UNDEFINED` (400): the request names a condition the entity's schema does not define\n- `VARIANT_PIN_UNDECLARED` (409): a variant a resolve would compose pins a condition the entity's schema no longer declares\n- `OPERATOR_UNSUPPORTED` (400): the requested predicate, or a sort, is not applicable to the condition's type\n- `CONTEXT_FORMAT_INVALID` (400): a resolve context or listing filter value is malformed for its condition type\n- `CONDITION_VALUE_INVALID` (400): a variant write pins a `select` value absent from the condition's declared `options`\n- `CONDITION_UNCONFIGURED` (409): a variant write pins a `select` condition whose `options` are absent or empty\n- `TOO_MANY_MATCHES` (400): a multi-match resolve exceeded its result cap\n- `WRITE_CONFLICT` (409): transient write contention, retryable unlike `TUPLE_CONFLICT`\n- `OFFSET_WINDOW_EXCEEDED` (400): a listing's `from` plus `size` reaches past the offset window the search index allows\n- `CURSOR_INVALID` (400): a paging cursor cannot be read, or does not belong to the read it was sent with\n- `VARIANT_LIMIT_REACHED` (409): the entity already holds every variant it may hold\n- `PIN_FORMAT_INVALID` (400): a variant pins a value malformed for its condition's type\n- `VARIANT_UNPINNED` (400): a variant write pins no condition and is not marked `default`, or a batch delete item addresses no variant\n- `LAST_VERSION_UNDELETABLE` (409): the delete would leave the variant with no version at all\n- `CONDITION_UNREADABLE` (409): the entity's schema declares a condition in a way this deploy cannot read\n- `SORT_INVALID` (400): a listing's `sort` is not `conditions.<name>:asc` or `conditions.<name>:desc`\n- `DEFAULT_MARKER_RESERVED` (400): a variant write's pins, or a resolve context, address the fallback marker — `default` or `_default`\n- `DEFAULT_VARIANT_PINS_CONDITIONS` (400): a variant marked `default` also pins real conditions\n- `VALID_FROM_IMMUTABLE` (400): a version write asks for a different `valid_from` than the version its own address names\n- `VARIANT_CONDITIONS_IMMUTABLE` (409): a version write carries a condition tuple other than the one its variant was created with\n- `IDENTIFIER_INVALID` (400): an id in the request cannot be used as a storage key — empty, carrying an unsupported character, or longer than 128 characters\n- `VALID_FROM_INVALID` (400): a `valid_from` is not one of the timestamp forms a version timeline can be sorted by\n- `VALUE_UNSTORABLE` (400): a write carries a value the store cannot hold, such as a non-finite number or one outside the table's numeric range\n- `OVERRIDE_VALUE_INVALID` (400): a write overrides a `currency` or `number` field, or an amount/decimal pair, with a value of the wrong type\n- `CONDITIONAL_PRICING_NOT_ENABLED` (403): the organization has not opted in to Conditional Pricing\n- `CONDITIONAL_PRICING_NOT_READY` (409): the organization opted in minutes ago and a variant cannot be created until its setup finishes\n",
6021
6021
  "enum": [
6022
6022
  "SCHEMA_NOT_FOUND",
6023
6023
  "ENTITY_NOT_FOUND",
@@ -6053,6 +6053,7 @@
6053
6053
  "IDENTIFIER_INVALID",
6054
6054
  "VALID_FROM_INVALID",
6055
6055
  "VALUE_UNSTORABLE",
6056
+ "OVERRIDE_VALUE_INVALID",
6056
6057
  "CONDITIONAL_PRICING_NOT_ENABLED",
6057
6058
  "CONDITIONAL_PRICING_NOT_READY"
6058
6059
  ]
@@ -8987,6 +8988,42 @@
8987
8988
  }
8988
8989
  }
8989
8990
  },
8991
+ {
8992
+ "type": "object",
8993
+ "description": "An override whose value is not of the type its field holds. A field declared by a\n`currency` attribute `x` takes `x` as a number, `x_decimal` as a non-empty string and\n`x_currency` as one of the attribute's currency codes, in any case. A field declared\nby a `number` attribute takes a string, or a number where the attribute sets\n`data_type: number`. A field a capability manages that neither attribute type\ndeclares, such as `tiers`, is checked at any depth by the amount/decimal convention:\na key `K_decimal` is a non-empty string, and a `K` beside it is a number. No other\nvalue is checked, and a decimal string is not parsed.\n",
8994
+ "required": [
8995
+ "code",
8996
+ "details"
8997
+ ],
8998
+ "properties": {
8999
+ "code": {
9000
+ "type": "string",
9001
+ "enum": [
9002
+ "OVERRIDE_VALUE_INVALID"
9003
+ ]
9004
+ },
9005
+ "details": {
9006
+ "type": "object",
9007
+ "additionalProperties": false,
9008
+ "required": [
9009
+ "path",
9010
+ "expected"
9011
+ ],
9012
+ "properties": {
9013
+ "path": {
9014
+ "type": "string",
9015
+ "description": "Where the value sits, as a dotted path of the request's own keys, with array\nentries by index.\n",
9016
+ "example": "values.tiers.0.unit_amount_decimal"
9017
+ },
9018
+ "expected": {
9019
+ "type": "string",
9020
+ "description": "What the value has to be, in prose.",
9021
+ "example": "a non-empty string"
9022
+ }
9023
+ }
9024
+ }
9025
+ }
9026
+ },
8990
9027
  {
8991
9028
  "type": "object",
8992
9029
  "description": "The organization has not opted in to Conditional Pricing. Opting in is done once, by\nepilot, from the organization's settings; nothing in this API enables it.\n",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epilot/pricing-client",
3
- "version": "3.62.2",
3
+ "version": "3.62.3",
4
4
  "description": "Client for epilot Pricing APIs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -24,18 +24,6 @@
24
24
  "cart",
25
25
  "pricing"
26
26
  ],
27
- "scripts": {
28
- "test": "vitest",
29
- "bundle-definition": "webpack",
30
- "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/pricing-api.yaml",
31
- "openapi:local": "node ../../scripts/update-openapi.js ../../../pricing-api/lambda/ApiHandlerFunction/openapi.yml",
32
- "typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
33
- "build": "tsc && npm run build:patch && npm run bundle-definition",
34
- "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
35
- "build:watch": "npm run build && tsc -w",
36
- "prepublishOnly": "npm run typegen && npm run build",
37
- "lint": "biome check src"
38
- },
39
27
  "files": [
40
28
  "*.js",
41
29
  "*.d.ts",
@@ -72,5 +60,16 @@
72
60
  "webpack": "^5.18.0",
73
61
  "webpack-cli": "^4.4.0"
74
62
  },
75
- "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
76
- }
63
+ "gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7",
64
+ "scripts": {
65
+ "test": "vitest",
66
+ "bundle-definition": "webpack",
67
+ "openapi": "node ../../scripts/update-openapi.js https://docs.api.epilot.io/pricing-api.yaml",
68
+ "openapi:local": "node ../../scripts/update-openapi.js ../../../pricing-api/lambda/ApiHandlerFunction/openapi.yml",
69
+ "typegen": "openapi typegen src/openapi.json --client > src/openapi.d.ts",
70
+ "build": "tsc && npm run build:patch && npm run bundle-definition",
71
+ "build:patch": "sed -i'' -e '/^__exportStar.*openapi.*$/d' dist/index.js",
72
+ "build:watch": "npm run build && tsc -w",
73
+ "lint": "biome check src"
74
+ }
75
+ }