From 954a21bc807671e72a126ac04d72e2ac88063f5d Mon Sep 17 00:00:00 2001 From: svenugopal-stripe <88206657+svenugopal-stripe@users.noreply.github.com> Date: Tue, 5 Sep 2023 10:04:47 -0700 Subject: [PATCH] update schema for distribution type and stripe api access type (#931) --- schema/stripe-app-local.schema.json | 6 ++++++ schema/stripe-app.schema.json | 19 +++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/schema/stripe-app-local.schema.json b/schema/stripe-app-local.schema.json index c7e522fa..4721fdf0 100644 --- a/schema/stripe-app-local.schema.json +++ b/schema/stripe-app-local.schema.json @@ -38,6 +38,12 @@ "allowed_redirect_uris": { "$ref": "stripe-app.schema.json#/properties/allowed_redirect_uris" }, + "distribution_type": { + "$ref": "stripe-app.schema.json#/properties/distribution_type" + }, + "stripe_api_access_type": { + "$ref": "stripe-app.schema.json#/properties/stripe_api_access_type" + }, "ui_extension": { "description": "Configuration options for how to display the app in the Dashboard.", "type": "object", diff --git a/schema/stripe-app.schema.json b/schema/stripe-app.schema.json index 2424a5fd..0f275161 100644 --- a/schema/stripe-app.schema.json +++ b/schema/stripe-app.schema.json @@ -315,6 +315,25 @@ "format": "uri", "pattern": "^https?://.*/.+" } + }, + "distribution_type": { + "type": "string", + "description": "Stripe Apps gives you two ways to distribute your apps. You can make them publicly available or privately share them only with your team members. Read about Distribution Type: https://stripe.com/docs/stripe-apps/reference/app-manifest#distribution-type", + "markdownDescription": "Stripe Apps gives you two ways to distribute your apps. You can make them publicly available or privately share them only with your team member. [Read about specifying Distribution Type](https://stripe.com/docs/stripe-apps/reference/app-manifest#distribution-type).", + "enum": [ + "public", + "private" + ] + }, + "stripe_api_access_type": { + "type": "string", + "description": "A property that describes how your application calls Stripe API. Read about using stripe api access type: https://stripe.com/docs/stripe-apps/reference/app-manifest#stripe-api-access-type", + "markdownDescription": "A property that describes how your application accesses Stripe API. [Read about specifying Stripe API access type](https://stripe.com/docs/stripe-apps/reference/app-manifest#stripe-api-access-type).", + "enum": [ + "restricted_api_key", + "oauth", + "platform" + ] } }, "$defs": {