@appsemble/utils 0.34.20 → 0.35.3-test.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.
Files changed (77) hide show
  1. package/README.md +3 -3
  2. package/api/components/parameters/index.d.ts +1 -0
  3. package/api/components/parameters/index.js +1 -0
  4. package/api/components/parameters/organizationSubscriptionId.d.ts +9 -0
  5. package/api/components/parameters/organizationSubscriptionId.js +8 -0
  6. package/api/components/responses/organizationSubscription.d.ts +2 -0
  7. package/api/components/responses/organizationSubscription.js +11 -0
  8. package/api/components/responses/organizationSubscriptionPrice.d.ts +2 -0
  9. package/api/components/responses/organizationSubscriptionPrice.js +11 -0
  10. package/api/components/schemas/AppPaymentSettings.d.ts +2 -0
  11. package/api/components/schemas/AppPaymentSettings.js +24 -0
  12. package/api/components/schemas/Organization.js +36 -0
  13. package/api/components/schemas/OrganizationSubscription.d.ts +2 -0
  14. package/api/components/schemas/OrganizationSubscription.js +42 -0
  15. package/api/components/schemas/OrganizationSubscriptionsPrice.d.ts +2 -0
  16. package/api/components/schemas/OrganizationSubscriptionsPrice.js +25 -0
  17. package/api/components/schemas/index.d.ts +1 -0
  18. package/api/components/schemas/index.js +1 -0
  19. package/api/paths/apps/appId/clonable-assets.js +20 -0
  20. package/api/paths/apps/appId/clonable-resources.js +20 -0
  21. package/api/paths/{group-invites → apps/appId/group-invites}/token/respond.js +1 -0
  22. package/api/paths/{group-invites → apps/appId/group-invites}/token.js +1 -0
  23. package/api/paths/{group-members → apps/appId/group-members}/groupMemberId/role.js +4 -1
  24. package/api/paths/{group-members → apps/appId/group-members}/groupMemberId.js +4 -1
  25. package/api/paths/{groups → apps/appId/groups}/groupId/invites/resend.js +4 -1
  26. package/api/paths/{groups → apps/appId/groups}/groupId/invites.js +1 -0
  27. package/api/paths/{groups → apps/appId/groups}/groupId/members.js +1 -0
  28. package/api/paths/{groups → apps/appId/groups}/groupId.js +1 -0
  29. package/api/paths/{app-invites → apps/appId/invites}/token/respond.js +1 -0
  30. package/api/paths/{app-invites → apps/appId/invites}/token.js +1 -0
  31. package/api/paths/{app-members → apps/appId/members}/appMemberId/picture.js +1 -0
  32. package/api/paths/apps/appId/members/appMemberId/properties.d.ts +2 -0
  33. package/api/paths/{app-members → apps/appId/members}/appMemberId/properties.js +1 -0
  34. package/api/paths/apps/appId/members/appMemberId/role.d.ts +2 -0
  35. package/api/paths/{app-members → apps/appId/members}/appMemberId/role.js +1 -0
  36. package/api/paths/{app-members → apps/appId/members}/appMemberId.js +1 -0
  37. package/api/paths/apps/appId/paymentSettings.d.ts +2 -0
  38. package/api/paths/apps/appId/paymentSettings.js +91 -0
  39. package/api/paths/apps/appId/payments/acceptPayment.d.ts +2 -0
  40. package/api/paths/apps/appId/payments/acceptPayment.js +340 -0
  41. package/api/paths/apps/appId/payments/createCheckout.d.ts +2 -0
  42. package/api/paths/apps/appId/payments/createCheckout.js +48 -0
  43. package/api/paths/apps/appId.js +16 -0
  44. package/api/paths/index.d.ts +24 -14
  45. package/api/paths/index.js +48 -28
  46. package/api/paths/organizationSubscriptions/organizationSubscriptionId.d.ts +2 -0
  47. package/api/paths/organizationSubscriptions/organizationSubscriptionId.js +39 -0
  48. package/api/paths/organizationSubscriptions.d.ts +2 -0
  49. package/api/paths/organizationSubscriptions.js +23 -0
  50. package/api/paths/organizations/organizationId/organizationSubscription.d.ts +2 -0
  51. package/api/paths/organizations/organizationId/organizationSubscription.js +13 -0
  52. package/api/paths/organizations/organizationId/organizationSubscriptionPrice.d.ts +2 -0
  53. package/api/paths/organizations/organizationId/organizationSubscriptionPrice.js +33 -0
  54. package/api/paths/organizations/organizationId/subscription.d.ts +2 -0
  55. package/api/paths/organizations/organizationId/subscription.js +13 -0
  56. package/api/paths/organizations/organizationId.js +24 -0
  57. package/api/paths/organizations.js +24 -0
  58. package/api/paths/payments/acceptPayment.d.ts +2 -0
  59. package/api/paths/payments/acceptPayment.js +340 -0
  60. package/api/paths/payments/payment.d.ts +2 -0
  61. package/api/paths/payments/payment.js +40 -0
  62. package/api/tags/index.js +4 -0
  63. package/package.json +3 -3
  64. /package/api/paths/{app-invites/token.d.ts → apps/appId/clonable-assets.d.ts} +0 -0
  65. /package/api/paths/{app-invites/token/respond.d.ts → apps/appId/clonable-resources.d.ts} +0 -0
  66. /package/api/paths/{group-invites → apps/appId/group-invites}/token/respond.d.ts +0 -0
  67. /package/api/paths/{group-invites → apps/appId/group-invites}/token.d.ts +0 -0
  68. /package/api/paths/{app-members/appMemberId → apps/appId/group-members/groupMemberId}/role.d.ts +0 -0
  69. /package/api/paths/{group-members → apps/appId/group-members}/groupMemberId.d.ts +0 -0
  70. /package/api/paths/{groups → apps/appId/groups}/groupId/invites/resend.d.ts +0 -0
  71. /package/api/paths/{groups → apps/appId/groups}/groupId/invites.d.ts +0 -0
  72. /package/api/paths/{groups → apps/appId/groups}/groupId/members.d.ts +0 -0
  73. /package/api/paths/{groups → apps/appId/groups}/groupId.d.ts +0 -0
  74. /package/api/paths/{app-members/appMemberId/picture.d.ts → apps/appId/invites/token/respond.d.ts} +0 -0
  75. /package/api/paths/{app-members/appMemberId.d.ts → apps/appId/invites/token.d.ts} +0 -0
  76. /package/api/paths/{group-members/groupMemberId/role.d.ts → apps/appId/members/appMemberId/picture.d.ts} +0 -0
  77. /package/api/paths/{app-members/appMemberId/properties.d.ts → apps/appId/members/appMemberId.d.ts} +0 -0
package/README.md CHANGED
@@ -1,9 +1,9 @@
1
- # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.34.20/config/assets/logo.svg) Appsemble Utilities
1
+ # ![](https://gitlab.com/appsemble/appsemble/-/raw/0.35.3-test.0/config/assets/logo.svg) Appsemble Utilities
2
2
 
3
3
  > Internal utility functions used across multiple Appsemble projects.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@appsemble/utils)](https://www.npmjs.com/package/@appsemble/utils)
6
- [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.34.20/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.34.20)
6
+ [![GitLab CI](https://gitlab.com/appsemble/appsemble/badges/0.35.3-test.0/pipeline.svg)](https://gitlab.com/appsemble/appsemble/-/releases/0.35.3-test.0)
7
7
  [![Prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://prettier.io)
8
8
 
9
9
  ## Table of Contents
@@ -26,5 +26,5 @@ not guaranteed.
26
26
 
27
27
  ## License
28
28
 
29
- [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.34.20/LICENSE.md) ©
29
+ [LGPL-3.0-only](https://gitlab.com/appsemble/appsemble/-/blob/0.35.3-test.0/LICENSE.md) ©
30
30
  [Appsemble](https://appsemble.com)
@@ -29,4 +29,5 @@ export * from './seed.js';
29
29
  export * from './selectedGroupId.js';
30
30
  export * from './webhookName.js';
31
31
  export * from './webhookSecretId.js';
32
+ export * from './organizationSubscriptionId.js';
32
33
  export * from './delimiter.js';
@@ -29,5 +29,6 @@ export * from './seed.js';
29
29
  export * from './selectedGroupId.js';
30
30
  export * from './webhookName.js';
31
31
  export * from './webhookSecretId.js';
32
+ export * from './organizationSubscriptionId.js';
32
33
  export * from './delimiter.js';
33
34
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,9 @@
1
+ export declare const organizationSubscriptionId: {
2
+ name: string;
3
+ required: boolean;
4
+ in: string;
5
+ description: string;
6
+ schema: {
7
+ $ref: string;
8
+ };
9
+ };
@@ -0,0 +1,8 @@
1
+ export const organizationSubscriptionId = {
2
+ name: 'organizationSubscriptionId',
3
+ required: true,
4
+ in: 'path',
5
+ description: 'The ID of the subscription on which to perform an operation',
6
+ schema: { $ref: '#/components/schemas/OrganizationSubscription/properties/id' },
7
+ };
8
+ //# sourceMappingURL=organizationSubscriptionId.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const organizationSubscription: OpenAPIV3.ResponseObject;
@@ -0,0 +1,11 @@
1
+ export const organizationSubscription = {
2
+ description: 'A subscription response',
3
+ content: {
4
+ 'application/json': {
5
+ schema: {
6
+ $ref: '#/components/schemas/OrganizationSubscription',
7
+ },
8
+ },
9
+ },
10
+ };
11
+ //# sourceMappingURL=organizationSubscription.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const organizationSubscriptionPrice: OpenAPIV3.ResponseObject;
@@ -0,0 +1,11 @@
1
+ export const organizationSubscriptionPrice = {
2
+ description: 'A subscription price response',
3
+ content: {
4
+ 'application/json': {
5
+ schema: {
6
+ $ref: '#/components/schemas/OrganizationSubscriptionPrice',
7
+ },
8
+ },
9
+ },
10
+ };
11
+ //# sourceMappingURL=organizationSubscriptionPrice.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const SSLSecret: OpenAPIV3.SchemaObject;
@@ -0,0 +1,24 @@
1
+ export const SSLSecret = {
2
+ type: 'object',
3
+ additionalProperties: false,
4
+ description: 'The payment settings of an app.',
5
+ properties: {
6
+ stripeApiSecretKey: {
7
+ type: 'string',
8
+ description: 'The private API key used for accessing Stripe account connected to the app.',
9
+ },
10
+ stripeWebhookSecret: {
11
+ type: 'string',
12
+ description: 'The private secret used for authenticating app related Stripe webhooks.',
13
+ },
14
+ successUrl: {
15
+ type: 'string',
16
+ description: 'The url users are redirected to after successfully completing app related Stripe checkout session.',
17
+ },
18
+ cancelUrl: {
19
+ type: 'string',
20
+ description: 'The url users are redirected to after unsuccessfully completing app related Stripe checkout session.',
21
+ },
22
+ },
23
+ };
24
+ //# sourceMappingURL=AppPaymentSettings.js.map
@@ -33,6 +33,42 @@ export const Organization = {
33
33
  type: 'string',
34
34
  description: 'The URL used to fetch the organization’s icon.',
35
35
  },
36
+ preferredPaymentProvider: {
37
+ type: 'string',
38
+ description: 'The preferred payment provider of the organization.',
39
+ },
40
+ vatIdNumber: {
41
+ type: 'string',
42
+ description: 'The VAT id number of the organization.',
43
+ },
44
+ streetName: {
45
+ type: 'string',
46
+ description: 'Street name that will appear on the invoice.',
47
+ },
48
+ houseNumber: {
49
+ type: 'string',
50
+ description: 'House number of the organization,',
51
+ },
52
+ city: {
53
+ type: 'string',
54
+ description: 'City where the organization is located',
55
+ },
56
+ zipCode: {
57
+ type: 'string',
58
+ description: 'Zip code of the organization',
59
+ },
60
+ countryCode: {
61
+ type: 'string',
62
+ description: 'Country code of the country where the organization is located',
63
+ },
64
+ invoiceReference: {
65
+ type: 'string',
66
+ description: 'The reference identifier that will appear on the invoices.',
67
+ },
68
+ stripeCustomerId: {
69
+ type: 'string',
70
+ description: 'Stripe internal ID of the customer used to match it with the organization in our database.',
71
+ },
36
72
  },
37
73
  };
38
74
  //# sourceMappingURL=Organization.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const OrganizationSubscription: OpenAPIV3.NonArraySchemaObject;
@@ -0,0 +1,42 @@
1
+ import { normalized } from '../../../constants/index.js';
2
+ export const OrganizationSubscription = {
3
+ type: 'object',
4
+ description: 'A subscription holds permission to what the users withing an organization are allowed to do.',
5
+ required: ['id', 'subscriptionPlan', 'organizationId'],
6
+ additionalProperties: false,
7
+ properties: {
8
+ id: {
9
+ type: 'number',
10
+ description: 'The unique identifier for the subscription.',
11
+ },
12
+ cancelled: {
13
+ type: 'boolean',
14
+ description: 'Whether the subscription will be renewed at the end.',
15
+ },
16
+ cancellationReason: {
17
+ type: 'string',
18
+ description: 'Users reasoning for cancelling the subscription.',
19
+ },
20
+ expirationDate: {
21
+ type: 'string',
22
+ description: 'The expiration date of the subscription.',
23
+ format: 'date-time',
24
+ },
25
+ subscriptionPlan: {
26
+ description: 'The plan associated with the subscription.',
27
+ enum: ['free', 'premium'],
28
+ },
29
+ renewalPeriod: {
30
+ description: 'The renewal period associated with the subscription.',
31
+ enum: ['month', 'year'],
32
+ },
33
+ organizationId: {
34
+ type: 'string',
35
+ pattern: normalized.source,
36
+ minLength: 1,
37
+ maxLength: 30,
38
+ description: 'The unique identifier for the organization.',
39
+ },
40
+ },
41
+ };
42
+ //# sourceMappingURL=OrganizationSubscription.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const OrganizationSubscriptionPrice: OpenAPIV3.NonArraySchemaObject;
@@ -0,0 +1,25 @@
1
+ export const OrganizationSubscriptionPrice = {
2
+ type: 'object',
3
+ description: 'A subscription price holds pricing information about the subscription.',
4
+ required: ['basePrice'],
5
+ additionalProperties: false,
6
+ properties: {
7
+ totalPrice: {
8
+ type: 'number',
9
+ description: 'The total price.',
10
+ },
11
+ basePrice: {
12
+ type: 'number',
13
+ description: 'Base price without VAT',
14
+ },
15
+ vatPercentage: {
16
+ type: 'number',
17
+ description: 'The VAT that applies to the transaction.',
18
+ },
19
+ vatAmount: {
20
+ type: 'number',
21
+ description: 'The VAT amount that applies to the transaction.',
22
+ },
23
+ },
24
+ };
25
+ //# sourceMappingURL=OrganizationSubscriptionsPrice.js.map
@@ -16,6 +16,7 @@ export * from './OrganizationMember.js';
16
16
  export * from './OAuth2AuthorizationCode.js';
17
17
  export * from './OAuth2ClientCredentials.js';
18
18
  export * from './Organization.js';
19
+ export * from './OrganizationSubscription.js';
19
20
  export * from './Rating.js';
20
21
  export * from './Resource.js';
21
22
  export * from './ResourceSubscription.js';
@@ -16,6 +16,7 @@ export * from './OrganizationMember.js';
16
16
  export * from './OAuth2AuthorizationCode.js';
17
17
  export * from './OAuth2ClientCredentials.js';
18
18
  export * from './Organization.js';
19
+ export * from './OrganizationSubscription.js';
19
20
  export * from './Rating.js';
20
21
  export * from './Resource.js';
21
22
  export * from './ResourceSubscription.js';
@@ -0,0 +1,20 @@
1
+ export const pathItems = {
2
+ parameters: [{ $ref: '#/components/parameters/appId' }],
3
+ get: {
4
+ tags: ['common', 'app', 'asset'],
5
+ description: 'Check if an app has clonable assets.',
6
+ operationId: 'checkAppClonableAssets',
7
+ responses: {
8
+ 200: {
9
+ description: 'Whether the app has clonable assets.',
10
+ content: {
11
+ 'application/json': {
12
+ schema: { type: 'boolean' },
13
+ },
14
+ },
15
+ },
16
+ },
17
+ security: [{ studio: [] }, {}],
18
+ },
19
+ };
20
+ //# sourceMappingURL=clonable-assets.js.map
@@ -0,0 +1,20 @@
1
+ export const pathItems = {
2
+ parameters: [{ $ref: '#/components/parameters/appId' }],
3
+ get: {
4
+ tags: ['common', 'app', 'resource'],
5
+ description: 'Check if an app has clonable resources.',
6
+ operationId: 'checkAppClonableResources',
7
+ responses: {
8
+ 200: {
9
+ description: 'Whether the app has clonable resources.',
10
+ content: {
11
+ 'application/json': {
12
+ schema: { type: 'boolean' },
13
+ },
14
+ },
15
+ },
16
+ },
17
+ security: [{ studio: [] }, {}],
18
+ },
19
+ };
20
+ //# sourceMappingURL=clonable-resources.js.map
@@ -1,5 +1,6 @@
1
1
  export const pathItems = {
2
2
  parameters: [
3
+ { $ref: '#/components/parameters/appId' },
3
4
  {
4
5
  name: 'token',
5
6
  in: 'path',
@@ -1,5 +1,6 @@
1
1
  export const pathItems = {
2
2
  parameters: [
3
+ { $ref: '#/components/parameters/appId' },
3
4
  {
4
5
  name: 'token',
5
6
  in: 'path',
@@ -1,5 +1,8 @@
1
1
  export const pathItems = {
2
- parameters: [{ $ref: '#/components/parameters/groupMemberId' }],
2
+ parameters: [
3
+ { $ref: '#/components/parameters/appId' },
4
+ { $ref: '#/components/parameters/groupMemberId' },
5
+ ],
3
6
  put: {
4
7
  tags: ['common', 'group-member'],
5
8
  description: 'Set the role of a member within a group.',
@@ -1,5 +1,8 @@
1
1
  export const pathItems = {
2
- parameters: [{ $ref: '#/components/parameters/groupMemberId' }],
2
+ parameters: [
3
+ { $ref: '#/components/parameters/appId' },
4
+ { $ref: '#/components/parameters/groupMemberId' },
5
+ ],
3
6
  get: {
4
7
  tags: ['common', 'group-member'],
5
8
  description: 'Get a certain group member from a group',
@@ -1,5 +1,8 @@
1
1
  export const pathItems = {
2
- parameters: [{ $ref: '#/components/parameters/groupId' }],
2
+ parameters: [
3
+ { $ref: '#/components/parameters/appId' },
4
+ { $ref: '#/components/parameters/groupId' },
5
+ ],
3
6
  post: {
4
7
  tags: ['group'],
5
8
  description: 'Request to resend an invitation.',
@@ -1,5 +1,6 @@
1
1
  export const pathItems = {
2
2
  parameters: [
3
+ { $ref: '#/components/parameters/appId' },
3
4
  {
4
5
  name: 'groupId',
5
6
  in: 'path',
@@ -1,5 +1,6 @@
1
1
  export const pathItems = {
2
2
  parameters: [
3
+ { $ref: '#/components/parameters/appId' },
3
4
  {
4
5
  name: 'groupId',
5
6
  in: 'path',
@@ -1,5 +1,6 @@
1
1
  export const pathItems = {
2
2
  parameters: [
3
+ { $ref: '#/components/parameters/appId' },
3
4
  {
4
5
  name: 'groupId',
5
6
  in: 'path',
@@ -1,5 +1,6 @@
1
1
  export const pathItems = {
2
2
  parameters: [
3
+ { $ref: '#/components/parameters/appId' },
3
4
  {
4
5
  name: 'token',
5
6
  in: 'path',
@@ -1,5 +1,6 @@
1
1
  export const pathItems = {
2
2
  parameters: [
3
+ { $ref: '#/components/parameters/appId' },
3
4
  {
4
5
  name: 'token',
5
6
  in: 'path',
@@ -1,5 +1,6 @@
1
1
  export const pathItems = {
2
2
  parameters: [
3
+ { $ref: '#/components/parameters/appId' },
3
4
  {
4
5
  name: 'appMemberId',
5
6
  in: 'path',
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const pathItems: OpenAPIV3.PathItemObject;
@@ -1,5 +1,6 @@
1
1
  export const pathItems = {
2
2
  parameters: [
3
+ { $ref: '#/components/parameters/appId' },
3
4
  {
4
5
  name: 'appMemberId',
5
6
  in: 'path',
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const pathItems: OpenAPIV3.PathItemObject;
@@ -1,5 +1,6 @@
1
1
  export const pathItems = {
2
2
  parameters: [
3
+ { $ref: '#/components/parameters/appId' },
3
4
  {
4
5
  name: 'appMemberId',
5
6
  in: 'path',
@@ -1,5 +1,6 @@
1
1
  export const pathItems = {
2
2
  parameters: [
3
+ { $ref: '#/components/parameters/appId' },
3
4
  {
4
5
  name: 'appMemberId',
5
6
  in: 'path',
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const pathItems: OpenAPIV3.PathItemObject;
@@ -0,0 +1,91 @@
1
+ export const pathItems = {
2
+ parameters: [{ $ref: '#/components/parameters/appId' }],
3
+ get: {
4
+ tags: ['main', 'app'],
5
+ operationId: 'getAppPaymentSettings',
6
+ description: 'Get app payment settings configuration',
7
+ responses: {
8
+ 200: {
9
+ description: 'The app payment configuration',
10
+ content: {
11
+ 'application/json': {
12
+ schema: {
13
+ type: 'object',
14
+ properties: {
15
+ stripeApiSecretKey: {
16
+ type: 'boolean',
17
+ description: 'Whether stripe api key is set.',
18
+ },
19
+ stripeWebhookSecret: {
20
+ type: 'boolean',
21
+ description: 'Whether stripe secret is set.',
22
+ },
23
+ successUrl: {
24
+ type: 'string',
25
+ description: 'The url users are redirected to after successfully completing app related Stripe checkout session.',
26
+ },
27
+ cancelUrl: {
28
+ type: 'string',
29
+ description: 'The url users are redirected to after unsuccessfully completing app related Stripe checkout session.',
30
+ },
31
+ },
32
+ },
33
+ },
34
+ },
35
+ },
36
+ },
37
+ parameters: [
38
+ {
39
+ in: 'path',
40
+ name: 'appId',
41
+ description: 'App that is creating the checkout.',
42
+ schema: { type: 'number' },
43
+ },
44
+ ],
45
+ security: [{ studio: [] }],
46
+ },
47
+ patch: {
48
+ tags: ['main', 'app'],
49
+ operationId: 'updateAppPaymentSettings',
50
+ description: 'Update app payment settings configuration',
51
+ requestBody: {
52
+ content: {
53
+ 'multipart/form-data': {
54
+ schema: {
55
+ type: 'object',
56
+ properties: {
57
+ stripeApiSecretKey: {
58
+ type: 'string',
59
+ description: 'The private API key used for accessing Stripe account connected to the app.',
60
+ },
61
+ stripeWebhookSecret: {
62
+ type: 'string',
63
+ description: 'The private secret used for authenticating app related Stripe webhooks.',
64
+ },
65
+ successUrl: {
66
+ type: 'string',
67
+ description: 'The url users are redirected to after successfully completing app related Stripe checkout session.',
68
+ },
69
+ cancelUrl: {
70
+ type: 'string',
71
+ description: 'The url users are redirected to after unsuccessfully completing app related Stripe checkout session.',
72
+ },
73
+ },
74
+ },
75
+ },
76
+ },
77
+ },
78
+ responses: {
79
+ 200: {
80
+ description: 'The app payment configuration',
81
+ content: {
82
+ 'application/json': {
83
+ schema: { $ref: '#/components/schemas/AppPaymentSettings' },
84
+ },
85
+ },
86
+ },
87
+ },
88
+ security: [{ studio: [] }, { cli: ['apps:write'] }],
89
+ },
90
+ };
91
+ //# sourceMappingURL=paymentSettings.js.map
@@ -0,0 +1,2 @@
1
+ import { type OpenAPIV3 } from 'openapi-types';
2
+ export declare const pathItems: OpenAPIV3.PathItemObject;