@epilot/sdk 2.20.65 → 2.20.66
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/definitions/pricing.json +90 -56
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/chat.cjs +6 -6
- package/dist/apis/chat.js +1 -1
- package/dist/apis/configuration-hub.cjs +6 -6
- package/dist/apis/configuration-hub.js +1 -1
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +6 -6
- package/dist/apis/customer-portal.js +1 -1
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +6 -6
- package/dist/apis/design.js +1 -1
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +6 -6
- package/dist/apis/email-settings.js +1 -1
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/external-values.cjs +6 -6
- package/dist/apis/external-values.js +1 -1
- package/dist/apis/file.cjs +6 -6
- package/dist/apis/file.js +1 -1
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/identity.cjs +6 -6
- package/dist/apis/identity.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +6 -6
- package/dist/apis/journey.js +1 -1
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/phone-integration.cjs +6 -6
- package/dist/apis/phone-integration.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.d.cts +2 -2
- package/dist/apis/pricing.d.ts +2 -2
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/snapshot.cjs +6 -6
- package/dist/apis/snapshot.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{chunk-NRSVV47V.cjs → chunk-3UL4JWCK.cjs} +1 -1
- package/dist/{chunk-NZKYUZK2.js → chunk-SGTQJYAX.js} +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/pricing-HPUYS6FZ.cjs +7 -0
- package/dist/pricing-V6W36DFA.js +7 -0
- package/dist/{pricing.d-DnruxGbn.d.cts → pricing.d-COKyUDXt.d.cts} +170 -48
- package/dist/{pricing.d-DnruxGbn.d.ts → pricing.d-COKyUDXt.d.ts} +170 -48
- package/docs/pricing.md +77 -13
- package/package.json +1 -1
- package/dist/pricing-MEDRTGXA.cjs +0 -7
- package/dist/pricing-QW23MNY3.js +0 -7
package/definitions/pricing.json
CHANGED
|
@@ -147,10 +147,14 @@
|
|
|
147
147
|
"Order API"
|
|
148
148
|
],
|
|
149
149
|
"requestBody": {
|
|
150
|
-
"required":
|
|
150
|
+
"required": true,
|
|
151
151
|
"content": {
|
|
152
152
|
"application/json": {
|
|
153
153
|
"schema": {
|
|
154
|
+
"type": "object",
|
|
155
|
+
"required": [
|
|
156
|
+
"line_items"
|
|
157
|
+
],
|
|
154
158
|
"properties": {
|
|
155
159
|
"line_items": {
|
|
156
160
|
"$ref": "#/components/schemas/PriceItemsDto"
|
|
@@ -1176,7 +1180,7 @@
|
|
|
1176
1180
|
},
|
|
1177
1181
|
"/v2/public/catalog": {
|
|
1178
1182
|
"post": {
|
|
1179
|
-
"description": "Returns the products and prices a journey block shows as catalog pairs, each member resolved\nfor its own entity type's context at `as_of`. A pair carries the product, one of its prices, the coupons that apply,\nand a signed `catalog_reference`. Line items carry that reference to checkout unchanged, and\ncheckout prices from it.\n\nConditional entities resolve as on `POST /v1/conditional-pricing:resolve`. An organization\nthat has not opted in gets base entities, not an error. A member matching several variants\nyields one pair per variant, and an entry without `price_id` yields one pair per price of\nthe product. Members that match nothing or are inactive are left out. Ids
|
|
1183
|
+
"description": "Returns the products and prices a journey block shows as catalog pairs, each member resolved\nfor its own entity type's context at `as_of`. A pair carries the product, one of its prices, the coupons that apply,\nand a signed `catalog_reference`. Line items carry that reference to checkout unchanged, and\ncheckout prices from it.\n\nConditional entities resolve as on `POST /v1/conditional-pricing:resolve`. An organization\nthat has not opted in gets base entities, not an error. A member matching several variants\nyields one pair per variant, and an entry without `price_id` yields one pair per price of\nthe product. Members that match nothing or are inactive are left out. Ids the catalog does\nnot find are reported in `warnings`, as are context keys a schema does not declare, which\nare ignored.\n",
|
|
1180
1184
|
"operationId": "$resolveCatalog",
|
|
1181
1185
|
"summary": "$resolveCatalog",
|
|
1182
1186
|
"security": [
|
|
@@ -1229,7 +1233,7 @@
|
|
|
1229
1233
|
},
|
|
1230
1234
|
"responses": {
|
|
1231
1235
|
"200": {
|
|
1232
|
-
"description": "The pairs to show, unordered,
|
|
1236
|
+
"description": "The pairs to show, unordered, the entries whose ids found nothing or the wrong type,\nand the context keys that were ignored. `warnings` is always present and empty in the\nordinary case.\n",
|
|
1233
1237
|
"content": {
|
|
1234
1238
|
"application/json": {
|
|
1235
1239
|
"schema": {
|
|
@@ -1237,7 +1241,7 @@
|
|
|
1237
1241
|
},
|
|
1238
1242
|
"examples": {
|
|
1239
1243
|
"A resolved price beside a classic product, and an entry that found nothing": {
|
|
1240
|
-
"summary": "The product served as stored, the price resolved to its variant, the reference signed,
|
|
1244
|
+
"summary": "The product served as stored, the price resolved to its variant, the reference signed, a retired price reported rather than refused, and a stale context key reported as ignored",
|
|
1241
1245
|
"value": {
|
|
1242
1246
|
"pairs": [
|
|
1243
1247
|
{
|
|
@@ -1332,7 +1336,7 @@
|
|
|
1332
1336
|
"warnings": [
|
|
1333
1337
|
{
|
|
1334
1338
|
"code": "CATALOG_ENTRY_NOT_FOUND",
|
|
1335
|
-
"message": "The entry
|
|
1339
|
+
"message": "The entry's price id finds no price",
|
|
1336
1340
|
"details": {
|
|
1337
1341
|
"product_id": "product-heatpump-2027",
|
|
1338
1342
|
"price_id": "price-retired",
|
|
@@ -1340,13 +1344,13 @@
|
|
|
1340
1344
|
}
|
|
1341
1345
|
},
|
|
1342
1346
|
{
|
|
1343
|
-
"code": "
|
|
1344
|
-
"message": "The
|
|
1347
|
+
"code": "CONTEXT_CONDITIONS_IGNORED",
|
|
1348
|
+
"message": "The price context names conditions the price schema does not declare: customer_segment",
|
|
1345
1349
|
"details": {
|
|
1346
|
-
"
|
|
1347
|
-
"
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
+
"entity_type": "price",
|
|
1351
|
+
"conditions": [
|
|
1352
|
+
"customer_segment"
|
|
1353
|
+
]
|
|
1350
1354
|
}
|
|
1351
1355
|
}
|
|
1352
1356
|
]
|
|
@@ -1357,7 +1361,7 @@
|
|
|
1357
1361
|
}
|
|
1358
1362
|
},
|
|
1359
1363
|
"400": {
|
|
1360
|
-
"description": "`
|
|
1364
|
+
"description": "`OPERATOR_UNSUPPORTED`, `CONTEXT_FORMAT_INVALID`, `DEFAULT_MARKER_RESERVED`: an entity\ntype's context is refused against that type's schema as the authenticated resolve refuses\nit. A context key naming no condition that schema declares is ignored, not refused.\n\n`TOO_MANY_MATCHES`: a member matches more variants than the authenticated resolve's cap\nof 100. The whole request is refused rather than serving a truncated block.\n\n`VALID_FROM_INVALID`: `as_of` is not an instant this operation can read.\n\nA body with no entries, more than 100, an entry without `product_id`, or a context keyed\nby anything but `product`, `price` or `coupon` fails validation and carries no `code`.\n",
|
|
1361
1365
|
"content": {
|
|
1362
1366
|
"application/json": {
|
|
1363
1367
|
"schema": {
|
|
@@ -3813,7 +3817,7 @@
|
|
|
3813
3817
|
}
|
|
3814
3818
|
},
|
|
3815
3819
|
"400": {
|
|
3816
|
-
"description": "`
|
|
3820
|
+
"description": "`OPERATOR_UNSUPPORTED`, `CONTEXT_FORMAT_INVALID`, `DEFAULT_MARKER_RESERVED`,\n`TOO_MANY_MATCHES`, `VALID_FROM_INVALID`, `ENTITY_TYPE_MISMATCH`. A context key naming no\ncondition the schema declares is ignored, not refused. A body carrying both `context` and\n`variant_id`, or neither, fails validation and carries no `code`.\n",
|
|
3817
3821
|
"content": {
|
|
3818
3822
|
"application/json": {
|
|
3819
3823
|
"schema": {
|
|
@@ -3843,7 +3847,7 @@
|
|
|
3843
3847
|
}
|
|
3844
3848
|
},
|
|
3845
3849
|
"409": {
|
|
3846
|
-
"description": "`AMBIGUOUS_RESOLUTION`, `CONDITION_UNREADABLE`, `VARIANT_PIN_UNDECLARED`,\n`ENTITY_NOT_CONDITIONAL`.\n",
|
|
3850
|
+
"description": "`AMBIGUOUS_RESOLUTION`, `CONDITION_UNREADABLE`, `VARIANT_PIN_UNDECLARED`,\n`ENTITY_SOFT_DELETED`, `ENTITY_NOT_CONDITIONAL`.\n",
|
|
3847
3851
|
"content": {
|
|
3848
3852
|
"application/json": {
|
|
3849
3853
|
"schema": {
|
|
@@ -3976,7 +3980,7 @@
|
|
|
3976
3980
|
}
|
|
3977
3981
|
},
|
|
3978
3982
|
"409": {
|
|
3979
|
-
"description": "`TUPLE_CONFLICT` (also how a second `default` variant is refused), `WRITE_CONFLICT`,\n`CONDITION_UNREADABLE`, `CONDITION_UNCONFIGURED`, `VARIANT_LIMIT_REACHED`,\n`ENTITY_NOT_CONDITIONAL`, `CONDITIONAL_PRICING_NOT_READY`.\n",
|
|
3983
|
+
"description": "`TUPLE_CONFLICT` (also how a second `default` variant is refused), `WRITE_CONFLICT`,\n`CONDITION_UNREADABLE`, `CONDITION_UNCONFIGURED`, `VARIANT_LIMIT_REACHED`,\n`ENTITY_SOFT_DELETED`, `ENTITY_NOT_CONDITIONAL`, `CONDITIONAL_PRICING_NOT_READY`.\n",
|
|
3980
3984
|
"content": {
|
|
3981
3985
|
"application/json": {
|
|
3982
3986
|
"schema": {
|
|
@@ -4140,7 +4144,7 @@
|
|
|
4140
4144
|
}
|
|
4141
4145
|
},
|
|
4142
4146
|
"409": {
|
|
4143
|
-
"description": "`CONDITION_UNREADABLE`, raised only
|
|
4147
|
+
"description": "`ENTITY_SOFT_DELETED`, `ENTITY_NOT_CONDITIONAL`, and `CONDITION_UNREADABLE`, raised only\nwhere the filter or `sort` names that condition.\n",
|
|
4144
4148
|
"content": {
|
|
4145
4149
|
"application/json": {
|
|
4146
4150
|
"schema": {
|
|
@@ -4321,7 +4325,7 @@
|
|
|
4321
4325
|
}
|
|
4322
4326
|
},
|
|
4323
4327
|
"409": {
|
|
4324
|
-
"description": "`CONDITION_UNREADABLE`, raised only
|
|
4328
|
+
"description": "`ENTITY_SOFT_DELETED`, `ENTITY_NOT_CONDITIONAL`, and `CONDITION_UNREADABLE`, raised only\nwhere the filter or `sort` names that condition.\n",
|
|
4325
4329
|
"content": {
|
|
4326
4330
|
"application/json": {
|
|
4327
4331
|
"schema": {
|
|
@@ -4415,7 +4419,7 @@
|
|
|
4415
4419
|
}
|
|
4416
4420
|
},
|
|
4417
4421
|
"409": {
|
|
4418
|
-
"description": "`ENTITY_NOT_CONDITIONAL`.",
|
|
4422
|
+
"description": "`ENTITY_SOFT_DELETED`, `ENTITY_NOT_CONDITIONAL`.",
|
|
4419
4423
|
"content": {
|
|
4420
4424
|
"application/json": {
|
|
4421
4425
|
"schema": {
|
|
@@ -4517,7 +4521,7 @@
|
|
|
4517
4521
|
}
|
|
4518
4522
|
},
|
|
4519
4523
|
"409": {
|
|
4520
|
-
"description": "`WRITE_CONFLICT`, `VARIANT_CONDITIONS_IMMUTABLE`, `ENTITY_NOT_CONDITIONAL
|
|
4524
|
+
"description": "`WRITE_CONFLICT`, `VARIANT_CONDITIONS_IMMUTABLE`, `ENTITY_SOFT_DELETED`,\n`ENTITY_NOT_CONDITIONAL`.\n",
|
|
4521
4525
|
"content": {
|
|
4522
4526
|
"application/json": {
|
|
4523
4527
|
"schema": {
|
|
@@ -4619,7 +4623,7 @@
|
|
|
4619
4623
|
}
|
|
4620
4624
|
},
|
|
4621
4625
|
"409": {
|
|
4622
|
-
"description": "`WRITE_CONFLICT`, `VARIANT_CONDITIONS_IMMUTABLE`, `ENTITY_NOT_CONDITIONAL
|
|
4626
|
+
"description": "`WRITE_CONFLICT`, `VARIANT_CONDITIONS_IMMUTABLE`, `ENTITY_SOFT_DELETED`,\n`ENTITY_NOT_CONDITIONAL`.\n",
|
|
4623
4627
|
"content": {
|
|
4624
4628
|
"application/json": {
|
|
4625
4629
|
"schema": {
|
|
@@ -4711,7 +4715,7 @@
|
|
|
4711
4715
|
}
|
|
4712
4716
|
},
|
|
4713
4717
|
"409": {
|
|
4714
|
-
"description": "`WRITE_CONFLICT`, `ENTITY_NOT_CONDITIONAL`.",
|
|
4718
|
+
"description": "`WRITE_CONFLICT`, `ENTITY_SOFT_DELETED`, `ENTITY_NOT_CONDITIONAL`.",
|
|
4715
4719
|
"content": {
|
|
4716
4720
|
"application/json": {
|
|
4717
4721
|
"schema": {
|
|
@@ -4891,7 +4895,7 @@
|
|
|
4891
4895
|
}
|
|
4892
4896
|
},
|
|
4893
4897
|
"409": {
|
|
4894
|
-
"description": "`ENTITY_NOT_CONDITIONAL`.",
|
|
4898
|
+
"description": "`ENTITY_SOFT_DELETED`, `ENTITY_NOT_CONDITIONAL`.",
|
|
4895
4899
|
"content": {
|
|
4896
4900
|
"application/json": {
|
|
4897
4901
|
"schema": {
|
|
@@ -4993,7 +4997,7 @@
|
|
|
4993
4997
|
}
|
|
4994
4998
|
},
|
|
4995
4999
|
"409": {
|
|
4996
|
-
"description": "`VERSION_CONFLICT`, `VARIANT_CONDITIONS_IMMUTABLE`, `ENTITY_NOT_CONDITIONAL
|
|
5000
|
+
"description": "`VERSION_CONFLICT`, `VARIANT_CONDITIONS_IMMUTABLE`, `ENTITY_SOFT_DELETED`,\n`ENTITY_NOT_CONDITIONAL`.\n",
|
|
4997
5001
|
"content": {
|
|
4998
5002
|
"application/json": {
|
|
4999
5003
|
"schema": {
|
|
@@ -5097,7 +5101,7 @@
|
|
|
5097
5101
|
}
|
|
5098
5102
|
},
|
|
5099
5103
|
"409": {
|
|
5100
|
-
"description": "`ENTITY_NOT_CONDITIONAL`.",
|
|
5104
|
+
"description": "`ENTITY_SOFT_DELETED`, `ENTITY_NOT_CONDITIONAL`.",
|
|
5101
5105
|
"content": {
|
|
5102
5106
|
"application/json": {
|
|
5103
5107
|
"schema": {
|
|
@@ -5209,7 +5213,7 @@
|
|
|
5209
5213
|
}
|
|
5210
5214
|
},
|
|
5211
5215
|
"409": {
|
|
5212
|
-
"description": "`WRITE_CONFLICT`, `VARIANT_CONDITIONS_IMMUTABLE`, `ENTITY_NOT_CONDITIONAL
|
|
5216
|
+
"description": "`WRITE_CONFLICT`, `VARIANT_CONDITIONS_IMMUTABLE`, `ENTITY_SOFT_DELETED`,\n`ENTITY_NOT_CONDITIONAL`.\n",
|
|
5213
5217
|
"content": {
|
|
5214
5218
|
"application/json": {
|
|
5215
5219
|
"schema": {
|
|
@@ -5321,7 +5325,7 @@
|
|
|
5321
5325
|
}
|
|
5322
5326
|
},
|
|
5323
5327
|
"409": {
|
|
5324
|
-
"description": "`WRITE_CONFLICT`, `VARIANT_CONDITIONS_IMMUTABLE`, `ENTITY_NOT_CONDITIONAL
|
|
5328
|
+
"description": "`WRITE_CONFLICT`, `VARIANT_CONDITIONS_IMMUTABLE`, `ENTITY_SOFT_DELETED`,\n`ENTITY_NOT_CONDITIONAL`.\n",
|
|
5325
5329
|
"content": {
|
|
5326
5330
|
"application/json": {
|
|
5327
5331
|
"schema": {
|
|
@@ -5434,7 +5438,7 @@
|
|
|
5434
5438
|
}
|
|
5435
5439
|
},
|
|
5436
5440
|
"409": {
|
|
5437
|
-
"description": "`LAST_VERSION_UNDELETABLE`, `WRITE_CONFLICT`, `ENTITY_NOT_CONDITIONAL
|
|
5441
|
+
"description": "`LAST_VERSION_UNDELETABLE`, `WRITE_CONFLICT`, `ENTITY_SOFT_DELETED`,\n`ENTITY_NOT_CONDITIONAL`.\n",
|
|
5438
5442
|
"content": {
|
|
5439
5443
|
"application/json": {
|
|
5440
5444
|
"schema": {
|
|
@@ -6017,11 +6021,12 @@
|
|
|
6017
6021
|
},
|
|
6018
6022
|
"ConditionalPricingErrorCode": {
|
|
6019
6023
|
"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):
|
|
6024
|
+
"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_SOFT_DELETED` (409): the entity is soft-deleted and can still be restored, which brings its variants back unchanged\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): a listing filter or a variant's pins name a condition the entity's schema does not define (a resolve context ignores such a name instead)\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
6025
|
"enum": [
|
|
6022
6026
|
"SCHEMA_NOT_FOUND",
|
|
6023
6027
|
"ENTITY_NOT_FOUND",
|
|
6024
6028
|
"ENTITY_TYPE_MISMATCH",
|
|
6029
|
+
"ENTITY_SOFT_DELETED",
|
|
6025
6030
|
"ENTITY_NOT_CONDITIONAL",
|
|
6026
6031
|
"VARIANT_NOT_FOUND",
|
|
6027
6032
|
"VERSION_NOT_FOUND",
|
|
@@ -6138,7 +6143,7 @@
|
|
|
6138
6143
|
"additionalProperties": {
|
|
6139
6144
|
"$ref": "#/components/schemas/ContextConditionValue"
|
|
6140
6145
|
},
|
|
6141
|
-
"description": "The situation to resolve for: a flat map keyed by condition name. A condition left out\nmatches only variants that leave it unpinned; an empty map therefore returns the `default`\nvariant.\n\nEach value is an exact value, typed by its condition, or a single-operator predicate:\n\n- `{ \"lt\": v }`, `{ \"lte\": v }`, `{ \"gt\": v }`, `{ \"gte\": v }` — order, against a `number`\n or `date` condition\n- `{ \"in\": [...] }` — membership, against a `string`, `select` or `number` condition\n- `{ \"between\": \"2026-03-01\" }` — `daterange` containment, which a plain date also means\n- `{ \"exists\": true }` — pinned to any value; `{ \"exists\": false }` — left unpinned\n\nAn `in` list carries at most 50,000 values. A `string` or `select` matches exactly and\ncase-sensitively. A `location` of format\n`postal_code` is the postal code itself; one of format `postal_code_city` is an object carrying\n`postal_code` and `city`, named as an entity address names them, whose city is compared\ncase- and whitespace-insensitively.\n\n`default` and names beginning with `_` are reserved and cannot be supplied.\n",
|
|
6146
|
+
"description": "The situation to resolve for: a flat map keyed by condition name. A condition left out\nmatches only variants that leave it unpinned; an empty map therefore returns the `default`\nvariant. A key naming no condition the schema declares is ignored, as if it were left out.\n\nEach value is an exact value, typed by its condition, or a single-operator predicate:\n\n- `{ \"lt\": v }`, `{ \"lte\": v }`, `{ \"gt\": v }`, `{ \"gte\": v }` — order, against a `number`\n or `date` condition\n- `{ \"in\": [...] }` — membership, against a `string`, `select` or `number` condition\n- `{ \"between\": \"2026-03-01\" }` — `daterange` containment, which a plain date also means\n- `{ \"exists\": true }` — pinned to any value; `{ \"exists\": false }` — left unpinned\n\nAn `in` list carries at most 50,000 values. A `string` or `select` matches exactly and\ncase-sensitively. A `location` of format\n`postal_code` is the postal code itself; one of format `postal_code_city` is an object carrying\n`postal_code` and `city`, named as an entity address names them, whose city is compared\ncase- and whitespace-insensitively.\n\n`default` and names beginning with `_` are reserved and cannot be supplied.\n",
|
|
6142
6147
|
"example": {
|
|
6143
6148
|
"postal_code": "46045",
|
|
6144
6149
|
"consumption": {
|
|
@@ -7633,7 +7638,7 @@
|
|
|
7633
7638
|
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
7634
7639
|
}
|
|
7635
7640
|
],
|
|
7636
|
-
"description": "Why this item failed, present only with `outcome: error`: the codes a variant create\nraises, plus `ENTITY_NOT_FOUND`, `ENTITY_TYPE_MISMATCH` and
|
|
7641
|
+
"description": "Why this item failed, present only with `outcome: error`: the codes a variant create\nraises, plus `ENTITY_NOT_FOUND`, `ENTITY_TYPE_MISMATCH`, `ENTITY_SOFT_DELETED` and\n`ENTITY_NOT_CONDITIONAL`, which are per item because each item names its own entity.\nNever `TUPLE_CONFLICT` or `VERSION_CONFLICT`.\n"
|
|
7637
7642
|
}
|
|
7638
7643
|
}
|
|
7639
7644
|
},
|
|
@@ -7678,7 +7683,7 @@
|
|
|
7678
7683
|
"$ref": "#/components/schemas/ConditionalPricingError"
|
|
7679
7684
|
}
|
|
7680
7685
|
],
|
|
7681
|
-
"description": "Why this item failed, present only with `outcome: error`:\n`LAST_VERSION_UNDELETABLE`, `VARIANT_UNPINNED`, the codes a condition tuple that cannot\nbe canonicalized raises, `IDENTIFIER_INVALID`, `VALID_FROM_INVALID`, `WRITE_CONFLICT`,\nand the per-item `ENTITY_NOT_FOUND`, `ENTITY_TYPE_MISMATCH` and\n`ENTITY_NOT_CONDITIONAL`. A missing variant or version is `skipped` instead.\n"
|
|
7686
|
+
"description": "Why this item failed, present only with `outcome: error`:\n`LAST_VERSION_UNDELETABLE`, `VARIANT_UNPINNED`, the codes a condition tuple that cannot\nbe canonicalized raises, `IDENTIFIER_INVALID`, `VALID_FROM_INVALID`, `WRITE_CONFLICT`,\nand the per-item `ENTITY_NOT_FOUND`, `ENTITY_TYPE_MISMATCH`, `ENTITY_SOFT_DELETED` and\n`ENTITY_NOT_CONDITIONAL`. A missing variant or version is `skipped` instead.\n"
|
|
7682
7687
|
}
|
|
7683
7688
|
}
|
|
7684
7689
|
},
|
|
@@ -7868,6 +7873,42 @@
|
|
|
7868
7873
|
}
|
|
7869
7874
|
}
|
|
7870
7875
|
},
|
|
7876
|
+
{
|
|
7877
|
+
"type": "object",
|
|
7878
|
+
"description": "The entity is soft-deleted. A soft-deleted entity can be restored until it is\nhard-deleted, and restoring it brings its variants back unchanged; once it is\nhard-deleted, the same request answers `ENTITY_NOT_FOUND`. Only the entity the request addresses\nis refused: an entity it references is still returned when a resolve hydrates it.\n",
|
|
7879
|
+
"required": [
|
|
7880
|
+
"code",
|
|
7881
|
+
"details"
|
|
7882
|
+
],
|
|
7883
|
+
"properties": {
|
|
7884
|
+
"code": {
|
|
7885
|
+
"type": "string",
|
|
7886
|
+
"enum": [
|
|
7887
|
+
"ENTITY_SOFT_DELETED"
|
|
7888
|
+
]
|
|
7889
|
+
},
|
|
7890
|
+
"details": {
|
|
7891
|
+
"type": "object",
|
|
7892
|
+
"additionalProperties": false,
|
|
7893
|
+
"required": [
|
|
7894
|
+
"schema",
|
|
7895
|
+
"entity_id"
|
|
7896
|
+
],
|
|
7897
|
+
"properties": {
|
|
7898
|
+
"schema": {
|
|
7899
|
+
"type": "string",
|
|
7900
|
+
"description": "The entity type the request addressed.",
|
|
7901
|
+
"example": "price"
|
|
7902
|
+
},
|
|
7903
|
+
"entity_id": {
|
|
7904
|
+
"type": "string",
|
|
7905
|
+
"description": "The conditional entity the request addressed.",
|
|
7906
|
+
"example": "price-sp26d1yo"
|
|
7907
|
+
}
|
|
7908
|
+
}
|
|
7909
|
+
}
|
|
7910
|
+
}
|
|
7911
|
+
},
|
|
7871
7912
|
{
|
|
7872
7913
|
"type": "object",
|
|
7873
7914
|
"description": "The entity is of the type the slug named and was not created with `is_conditional`,\nwhich is fixed at creation. Reading and writing the entity itself are unaffected.\n",
|
|
@@ -11566,7 +11607,7 @@
|
|
|
11566
11607
|
},
|
|
11567
11608
|
"warnings": {
|
|
11568
11609
|
"type": "array",
|
|
11569
|
-
"description": "The entries that could not be answered because an id found nothing. Always present, and
|
|
11610
|
+
"description": "The entries that could not be answered because an id found nothing, and the context\nconditions that were ignored. Always present, and empty in the ordinary case; an entry the\ncatalog answers \"not offered\" is not in it.\n",
|
|
11570
11611
|
"items": {
|
|
11571
11612
|
"$ref": "#/components/schemas/CatalogWarning"
|
|
11572
11613
|
}
|
|
@@ -11681,12 +11722,12 @@
|
|
|
11681
11722
|
}
|
|
11682
11723
|
},
|
|
11683
11724
|
"CatalogWarning": {
|
|
11684
|
-
"description": "An entry the v2 catalog could not answer, and why. `details
|
|
11725
|
+
"description": "An entry the v2 catalog could not answer, or context conditions it ignored, and why. `details`\nis typed per `code`: narrow on `code` and the object under it declares exactly the fields that\ncode sends.\n",
|
|
11685
11726
|
"oneOf": [
|
|
11686
11727
|
{
|
|
11687
11728
|
"type": "object",
|
|
11688
11729
|
"additionalProperties": false,
|
|
11689
|
-
"description": "An id in the entry
|
|
11730
|
+
"description": "An id in the entry the catalog does not find: no entity has it, the entity is deleted or\nnot yet searchable, or it is an entity of another type than the entry asked for. One\nwarning per such id.\n",
|
|
11690
11731
|
"required": [
|
|
11691
11732
|
"code",
|
|
11692
11733
|
"message",
|
|
@@ -11735,7 +11776,7 @@
|
|
|
11735
11776
|
{
|
|
11736
11777
|
"type": "object",
|
|
11737
11778
|
"additionalProperties": false,
|
|
11738
|
-
"description": "An
|
|
11779
|
+
"description": "An entity type's context names conditions that type's schema does not declare. They were\nignored, and that type resolved as if they had been left out. One warning per such type.\n",
|
|
11739
11780
|
"required": [
|
|
11740
11781
|
"code",
|
|
11741
11782
|
"message",
|
|
@@ -11745,7 +11786,7 @@
|
|
|
11745
11786
|
"code": {
|
|
11746
11787
|
"type": "string",
|
|
11747
11788
|
"enum": [
|
|
11748
|
-
"
|
|
11789
|
+
"CONTEXT_CONDITIONS_IGNORED"
|
|
11749
11790
|
]
|
|
11750
11791
|
},
|
|
11751
11792
|
"message": {
|
|
@@ -11755,33 +11796,26 @@
|
|
|
11755
11796
|
"type": "object",
|
|
11756
11797
|
"additionalProperties": false,
|
|
11757
11798
|
"required": [
|
|
11758
|
-
"
|
|
11759
|
-
"
|
|
11760
|
-
"actual_schema"
|
|
11799
|
+
"entity_type",
|
|
11800
|
+
"conditions"
|
|
11761
11801
|
],
|
|
11762
11802
|
"properties": {
|
|
11763
|
-
"
|
|
11764
|
-
"type": "string",
|
|
11765
|
-
"description": "The entry's product id, as sent.",
|
|
11766
|
-
"example": "product-heatpump-2027"
|
|
11767
|
-
},
|
|
11768
|
-
"price_id": {
|
|
11769
|
-
"type": "string",
|
|
11770
|
-
"description": "The entry's price id, as sent. Absent when the entry named none.",
|
|
11771
|
-
"example": "product-tariff-2027"
|
|
11772
|
-
},
|
|
11773
|
-
"mismatched": {
|
|
11803
|
+
"entity_type": {
|
|
11774
11804
|
"type": "string",
|
|
11775
|
-
"description": "Which of the entry's ids names an entity of another type.",
|
|
11776
11805
|
"enum": [
|
|
11777
11806
|
"product",
|
|
11778
|
-
"price"
|
|
11807
|
+
"price",
|
|
11808
|
+
"coupon"
|
|
11779
11809
|
]
|
|
11780
11810
|
},
|
|
11781
|
-
"
|
|
11782
|
-
"type": "
|
|
11783
|
-
"
|
|
11784
|
-
|
|
11811
|
+
"conditions": {
|
|
11812
|
+
"type": "array",
|
|
11813
|
+
"items": {
|
|
11814
|
+
"type": "string"
|
|
11815
|
+
},
|
|
11816
|
+
"example": [
|
|
11817
|
+
"customer_segment"
|
|
11818
|
+
]
|
|
11785
11819
|
}
|
|
11786
11820
|
}
|
|
11787
11821
|
}
|
|
@@ -6,7 +6,7 @@ var _chunkZMBA3WV4cjs = require('../chunk-ZMBA3WV4.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk3UL4JWCKcjs = require('../chunk-3UL4JWCK.cjs');
|
|
10
10
|
require('../chunk-NJK5F5TF.cjs');
|
|
11
11
|
|
|
12
12
|
// src/apis/access-token.ts
|
|
@@ -14,7 +14,7 @@ var _definition = null;
|
|
|
14
14
|
var loadDefinition = () => {
|
|
15
15
|
if (!_definition) {
|
|
16
16
|
const mod = _chunkZMBA3WV4cjs.require_access_token_runtime.call(void 0, );
|
|
17
|
-
_definition =
|
|
17
|
+
_definition = _chunk3UL4JWCKcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
18
18
|
}
|
|
19
19
|
return _definition;
|
|
20
20
|
};
|
|
@@ -22,13 +22,13 @@ var _instance = null;
|
|
|
22
22
|
var resolve = () => {
|
|
23
23
|
if (!_instance) {
|
|
24
24
|
const def = loadDefinition();
|
|
25
|
-
_instance =
|
|
25
|
+
_instance = _chunk3UL4JWCKcjs.createApiClient.call(void 0, { definition: def, apiName: "accessToken" });
|
|
26
26
|
}
|
|
27
27
|
return _instance;
|
|
28
28
|
};
|
|
29
|
-
var _handle =
|
|
29
|
+
var _handle = _chunk3UL4JWCKcjs.createApiHandle.call(void 0, {
|
|
30
30
|
resolveClient: resolve,
|
|
31
|
-
createClient: () =>
|
|
31
|
+
createClient: () => _chunk3UL4JWCKcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "accessToken" }),
|
|
32
32
|
apiName: "accessToken"
|
|
33
33
|
});
|
|
34
34
|
var getClient = _handle.getClient;
|
|
@@ -39,4 +39,4 @@ var accessToken = _handle;
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
exports.accessToken = accessToken; exports.authorize =
|
|
42
|
+
exports.accessToken = accessToken; exports.authorize = _chunk3UL4JWCKcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
|
|
@@ -6,7 +6,7 @@ var _chunkLKRBFBFNcjs = require('../chunk-LKRBFBFN.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk3UL4JWCKcjs = require('../chunk-3UL4JWCK.cjs');
|
|
10
10
|
require('../chunk-NJK5F5TF.cjs');
|
|
11
11
|
|
|
12
12
|
// src/apis/address-suggestions.ts
|
|
@@ -14,7 +14,7 @@ var _definition = null;
|
|
|
14
14
|
var loadDefinition = () => {
|
|
15
15
|
if (!_definition) {
|
|
16
16
|
const mod = _chunkLKRBFBFNcjs.require_address_suggestions_runtime.call(void 0, );
|
|
17
|
-
_definition =
|
|
17
|
+
_definition = _chunk3UL4JWCKcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
18
18
|
}
|
|
19
19
|
return _definition;
|
|
20
20
|
};
|
|
@@ -22,13 +22,13 @@ var _instance = null;
|
|
|
22
22
|
var resolve = () => {
|
|
23
23
|
if (!_instance) {
|
|
24
24
|
const def = loadDefinition();
|
|
25
|
-
_instance =
|
|
25
|
+
_instance = _chunk3UL4JWCKcjs.createApiClient.call(void 0, { definition: def, apiName: "addressSuggestions" });
|
|
26
26
|
}
|
|
27
27
|
return _instance;
|
|
28
28
|
};
|
|
29
|
-
var _handle =
|
|
29
|
+
var _handle = _chunk3UL4JWCKcjs.createApiHandle.call(void 0, {
|
|
30
30
|
resolveClient: resolve,
|
|
31
|
-
createClient: () =>
|
|
31
|
+
createClient: () => _chunk3UL4JWCKcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "addressSuggestions" }),
|
|
32
32
|
apiName: "addressSuggestions"
|
|
33
33
|
});
|
|
34
34
|
var getClient = _handle.getClient;
|
|
@@ -39,4 +39,4 @@ var addressSuggestions = _handle;
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
exports.addressSuggestions = addressSuggestions; exports.authorize =
|
|
42
|
+
exports.addressSuggestions = addressSuggestions; exports.authorize = _chunk3UL4JWCKcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
|
package/dist/apis/address.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var _chunkT67ZXTVGcjs = require('../chunk-T67ZXTVG.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk3UL4JWCKcjs = require('../chunk-3UL4JWCK.cjs');
|
|
10
10
|
require('../chunk-NJK5F5TF.cjs');
|
|
11
11
|
|
|
12
12
|
// src/apis/address.ts
|
|
@@ -14,7 +14,7 @@ var _definition = null;
|
|
|
14
14
|
var loadDefinition = () => {
|
|
15
15
|
if (!_definition) {
|
|
16
16
|
const mod = _chunkT67ZXTVGcjs.require_address_runtime.call(void 0, );
|
|
17
|
-
_definition =
|
|
17
|
+
_definition = _chunk3UL4JWCKcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
18
18
|
}
|
|
19
19
|
return _definition;
|
|
20
20
|
};
|
|
@@ -22,13 +22,13 @@ var _instance = null;
|
|
|
22
22
|
var resolve = () => {
|
|
23
23
|
if (!_instance) {
|
|
24
24
|
const def = loadDefinition();
|
|
25
|
-
_instance =
|
|
25
|
+
_instance = _chunk3UL4JWCKcjs.createApiClient.call(void 0, { definition: def, apiName: "address" });
|
|
26
26
|
}
|
|
27
27
|
return _instance;
|
|
28
28
|
};
|
|
29
|
-
var _handle =
|
|
29
|
+
var _handle = _chunk3UL4JWCKcjs.createApiHandle.call(void 0, {
|
|
30
30
|
resolveClient: resolve,
|
|
31
|
-
createClient: () =>
|
|
31
|
+
createClient: () => _chunk3UL4JWCKcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "address" }),
|
|
32
32
|
apiName: "address"
|
|
33
33
|
});
|
|
34
34
|
var getClient = _handle.getClient;
|
|
@@ -39,4 +39,4 @@ var address = _handle;
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
exports.address = address; exports.authorize =
|
|
42
|
+
exports.address = address; exports.authorize = _chunk3UL4JWCKcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
|
package/dist/apis/address.js
CHANGED
package/dist/apis/ai-agents.cjs
CHANGED
|
@@ -6,7 +6,7 @@ var _chunkGD6KHA54cjs = require('../chunk-GD6KHA54.cjs');
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk3UL4JWCKcjs = require('../chunk-3UL4JWCK.cjs');
|
|
10
10
|
require('../chunk-NJK5F5TF.cjs');
|
|
11
11
|
|
|
12
12
|
// src/apis/ai-agents.ts
|
|
@@ -14,7 +14,7 @@ var _definition = null;
|
|
|
14
14
|
var loadDefinition = () => {
|
|
15
15
|
if (!_definition) {
|
|
16
16
|
const mod = _chunkGD6KHA54cjs.require_ai_agents_runtime.call(void 0, );
|
|
17
|
-
_definition =
|
|
17
|
+
_definition = _chunk3UL4JWCKcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
18
18
|
}
|
|
19
19
|
return _definition;
|
|
20
20
|
};
|
|
@@ -22,13 +22,13 @@ var _instance = null;
|
|
|
22
22
|
var resolve = () => {
|
|
23
23
|
if (!_instance) {
|
|
24
24
|
const def = loadDefinition();
|
|
25
|
-
_instance =
|
|
25
|
+
_instance = _chunk3UL4JWCKcjs.createApiClient.call(void 0, { definition: def, apiName: "aiAgents" });
|
|
26
26
|
}
|
|
27
27
|
return _instance;
|
|
28
28
|
};
|
|
29
|
-
var _handle =
|
|
29
|
+
var _handle = _chunk3UL4JWCKcjs.createApiHandle.call(void 0, {
|
|
30
30
|
resolveClient: resolve,
|
|
31
|
-
createClient: () =>
|
|
31
|
+
createClient: () => _chunk3UL4JWCKcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "aiAgents" }),
|
|
32
32
|
apiName: "aiAgents"
|
|
33
33
|
});
|
|
34
34
|
var getClient = _handle.getClient;
|
|
@@ -39,4 +39,4 @@ var aiAgents = _handle;
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
exports.aiAgents = aiAgents; exports.authorize =
|
|
42
|
+
exports.aiAgents = aiAgents; exports.authorize = _chunk3UL4JWCKcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
|