@delopay/sdk 0.166.0 → 0.167.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.
package/dist/index.cjs CHANGED
@@ -5013,6 +5013,24 @@ var ExternalRecords = class {
5013
5013
  async create(params) {
5014
5014
  return this.request("POST", "/external-records", { body: params });
5015
5015
  }
5016
+ /**
5017
+ * What this deployment will accept, per kind.
5018
+ * `GET /external-records/capabilities`
5019
+ *
5020
+ * Read it before offering the operator a form. Every kind is listed, so an
5021
+ * entry that is not served is distinguishable from a kind this release does
5022
+ * not know at all — and `create` says *why* it is not served: a gap
5023
+ * (`not_implemented`) or a rule (`not_applicable`). Treating those as the
5024
+ * same thing is how a caller ends up waiting for something that will never
5025
+ * be built.
5026
+ *
5027
+ * The answer describes the binary rather than anything a merchant owns, so
5028
+ * it is the same for every caller of one deployment and is safe to cache for
5029
+ * the life of a dashboard session.
5030
+ */
5031
+ async capabilities() {
5032
+ return this.request("GET", "/external-records/capabilities");
5033
+ }
5016
5034
  };
5017
5035
 
5018
5036
  // src/resources/products.ts