@cheqd/studio 3.0.0-develop.1
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/LICENSE +190 -0
- package/README.md +246 -0
- package/dist/app.d.ts +4 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +180 -0
- package/dist/app.js.map +1 -0
- package/dist/controllers/admin/api-key.d.ts +153 -0
- package/dist/controllers/admin/api-key.d.ts.map +1 -0
- package/dist/controllers/admin/api-key.js +389 -0
- package/dist/controllers/admin/api-key.js.map +1 -0
- package/dist/controllers/admin/organisation.d.ts +72 -0
- package/dist/controllers/admin/organisation.d.ts.map +1 -0
- package/dist/controllers/admin/organisation.js +139 -0
- package/dist/controllers/admin/organisation.js.map +1 -0
- package/dist/controllers/admin/prices.d.ts +37 -0
- package/dist/controllers/admin/prices.d.ts.map +1 -0
- package/dist/controllers/admin/prices.js +75 -0
- package/dist/controllers/admin/prices.js.map +1 -0
- package/dist/controllers/admin/product.d.ts +90 -0
- package/dist/controllers/admin/product.d.ts.map +1 -0
- package/dist/controllers/admin/product.js +187 -0
- package/dist/controllers/admin/product.js.map +1 -0
- package/dist/controllers/admin/subscriptions.d.ts +183 -0
- package/dist/controllers/admin/subscriptions.d.ts.map +1 -0
- package/dist/controllers/admin/subscriptions.js +512 -0
- package/dist/controllers/admin/subscriptions.js.map +1 -0
- package/dist/controllers/admin/webhook.d.ts +5 -0
- package/dist/controllers/admin/webhook.d.ts.map +1 -0
- package/dist/controllers/admin/webhook.js +90 -0
- package/dist/controllers/admin/webhook.js.map +1 -0
- package/dist/controllers/api/account.d.ts +84 -0
- package/dist/controllers/api/account.d.ts.map +1 -0
- package/dist/controllers/api/account.js +442 -0
- package/dist/controllers/api/account.js.map +1 -0
- package/dist/controllers/api/credential-status.d.ts +257 -0
- package/dist/controllers/api/credential-status.d.ts.map +1 -0
- package/dist/controllers/api/credential-status.js +1080 -0
- package/dist/controllers/api/credential-status.js.map +1 -0
- package/dist/controllers/api/credential.d.ts +207 -0
- package/dist/controllers/api/credential.d.ts.map +1 -0
- package/dist/controllers/api/credential.js +527 -0
- package/dist/controllers/api/credential.js.map +1 -0
- package/dist/controllers/api/did.d.ts +259 -0
- package/dist/controllers/api/did.d.ts.map +1 -0
- package/dist/controllers/api/did.js +673 -0
- package/dist/controllers/api/did.js.map +1 -0
- package/dist/controllers/api/key.d.ts +136 -0
- package/dist/controllers/api/key.d.ts.map +1 -0
- package/dist/controllers/api/key.js +268 -0
- package/dist/controllers/api/key.js.map +1 -0
- package/dist/controllers/api/presentation.d.ts +87 -0
- package/dist/controllers/api/presentation.d.ts.map +1 -0
- package/dist/controllers/api/presentation.js +264 -0
- package/dist/controllers/api/presentation.js.map +1 -0
- package/dist/controllers/api/resource.d.ts +118 -0
- package/dist/controllers/api/resource.d.ts.map +1 -0
- package/dist/controllers/api/resource.js +312 -0
- package/dist/controllers/api/resource.js.map +1 -0
- package/dist/controllers/validator/controller.d.ts +7 -0
- package/dist/controllers/validator/controller.d.ts.map +1 -0
- package/dist/controllers/validator/controller.js +31 -0
- package/dist/controllers/validator/controller.js.map +1 -0
- package/dist/controllers/validator/credential-status.d.ts +6 -0
- package/dist/controllers/validator/credential-status.d.ts.map +1 -0
- package/dist/controllers/validator/credential-status.js +36 -0
- package/dist/controllers/validator/credential-status.js.map +1 -0
- package/dist/controllers/validator/credential.d.ts +9 -0
- package/dist/controllers/validator/credential.d.ts.map +1 -0
- package/dist/controllers/validator/credential.js +103 -0
- package/dist/controllers/validator/credential.js.map +1 -0
- package/dist/controllers/validator/decorator.d.ts +2 -0
- package/dist/controllers/validator/decorator.d.ts.map +1 -0
- package/dist/controllers/validator/decorator.js +25 -0
- package/dist/controllers/validator/decorator.js.map +1 -0
- package/dist/controllers/validator/did-also-known-as.d.ts +8 -0
- package/dist/controllers/validator/did-also-known-as.d.ts.map +1 -0
- package/dist/controllers/validator/did-also-known-as.js +31 -0
- package/dist/controllers/validator/did-also-known-as.js.map +1 -0
- package/dist/controllers/validator/did-array.d.ts +7 -0
- package/dist/controllers/validator/did-array.d.ts.map +1 -0
- package/dist/controllers/validator/did-array.js +27 -0
- package/dist/controllers/validator/did-array.js.map +1 -0
- package/dist/controllers/validator/did-document-section-id.d.ts +7 -0
- package/dist/controllers/validator/did-document-section-id.d.ts.map +1 -0
- package/dist/controllers/validator/did-document-section-id.js +43 -0
- package/dist/controllers/validator/did-document-section-id.js.map +1 -0
- package/dist/controllers/validator/did-document.d.ts +11 -0
- package/dist/controllers/validator/did-document.d.ts.map +1 -0
- package/dist/controllers/validator/did-document.js +96 -0
- package/dist/controllers/validator/did-document.js.map +1 -0
- package/dist/controllers/validator/did-uri.d.ts +5 -0
- package/dist/controllers/validator/did-uri.d.ts.map +1 -0
- package/dist/controllers/validator/did-uri.js +14 -0
- package/dist/controllers/validator/did-uri.js.map +1 -0
- package/dist/controllers/validator/did.d.ts +35 -0
- package/dist/controllers/validator/did.d.ts.map +1 -0
- package/dist/controllers/validator/did.js +233 -0
- package/dist/controllers/validator/did.js.map +1 -0
- package/dist/controllers/validator/helpers.d.ts +7 -0
- package/dist/controllers/validator/helpers.d.ts.map +1 -0
- package/dist/controllers/validator/helpers.js +6 -0
- package/dist/controllers/validator/helpers.js.map +1 -0
- package/dist/controllers/validator/identifier.d.ts +20 -0
- package/dist/controllers/validator/identifier.d.ts.map +1 -0
- package/dist/controllers/validator/identifier.js +100 -0
- package/dist/controllers/validator/identifier.js.map +1 -0
- package/dist/controllers/validator/index.d.ts +42 -0
- package/dist/controllers/validator/index.d.ts.map +1 -0
- package/dist/controllers/validator/index.js +90 -0
- package/dist/controllers/validator/index.js.map +1 -0
- package/dist/controllers/validator/jsonld-proof.d.ts +5 -0
- package/dist/controllers/validator/jsonld-proof.d.ts.map +1 -0
- package/dist/controllers/validator/jsonld-proof.js +50 -0
- package/dist/controllers/validator/jsonld-proof.js.map +1 -0
- package/dist/controllers/validator/jwt-proof.d.ts +5 -0
- package/dist/controllers/validator/jwt-proof.d.ts.map +1 -0
- package/dist/controllers/validator/jwt-proof.js +45 -0
- package/dist/controllers/validator/jwt-proof.js.map +1 -0
- package/dist/controllers/validator/presentation.d.ts +9 -0
- package/dist/controllers/validator/presentation.d.ts.map +1 -0
- package/dist/controllers/validator/presentation.js +96 -0
- package/dist/controllers/validator/presentation.js.map +1 -0
- package/dist/controllers/validator/resource-also-known-as.d.ts +7 -0
- package/dist/controllers/validator/resource-also-known-as.d.ts.map +1 -0
- package/dist/controllers/validator/resource-also-known-as.js +47 -0
- package/dist/controllers/validator/resource-also-known-as.js.map +1 -0
- package/dist/controllers/validator/service-create-request.d.ts +10 -0
- package/dist/controllers/validator/service-create-request.d.ts.map +1 -0
- package/dist/controllers/validator/service-create-request.js +63 -0
- package/dist/controllers/validator/service-create-request.js.map +1 -0
- package/dist/controllers/validator/service.d.ts +11 -0
- package/dist/controllers/validator/service.d.ts.map +1 -0
- package/dist/controllers/validator/service.js +76 -0
- package/dist/controllers/validator/service.js.map +1 -0
- package/dist/controllers/validator/utils.d.ts +3 -0
- package/dist/controllers/validator/utils.d.ts.map +1 -0
- package/dist/controllers/validator/utils.js +21 -0
- package/dist/controllers/validator/utils.js.map +1 -0
- package/dist/controllers/validator/validator.d.ts +20 -0
- package/dist/controllers/validator/validator.d.ts.map +1 -0
- package/dist/controllers/validator/validator.js +2 -0
- package/dist/controllers/validator/validator.js.map +1 -0
- package/dist/controllers/validator/verification-method.d.ts +30 -0
- package/dist/controllers/validator/verification-method.d.ts.map +1 -0
- package/dist/controllers/validator/verification-method.js +211 -0
- package/dist/controllers/validator/verification-method.js.map +1 -0
- package/dist/database/connection/connection.d.ts +9 -0
- package/dist/database/connection/connection.d.ts.map +1 -0
- package/dist/database/connection/connection.js +27 -0
- package/dist/database/connection/connection.js.map +1 -0
- package/dist/database/entities/api.key.entity.d.ts +18 -0
- package/dist/database/entities/api.key.entity.d.ts.map +1 -0
- package/dist/database/entities/api.key.entity.js +102 -0
- package/dist/database/entities/api.key.entity.js.map +1 -0
- package/dist/database/entities/coin.entity.d.ts +11 -0
- package/dist/database/entities/coin.entity.d.ts.map +1 -0
- package/dist/database/entities/coin.entity.js +66 -0
- package/dist/database/entities/coin.entity.js.map +1 -0
- package/dist/database/entities/customer.entity.d.ts +14 -0
- package/dist/database/entities/customer.entity.d.ts.map +1 -0
- package/dist/database/entities/customer.entity.js +87 -0
- package/dist/database/entities/customer.entity.js.map +1 -0
- package/dist/database/entities/identifier.entity.d.ts +7 -0
- package/dist/database/entities/identifier.entity.d.ts.map +1 -0
- package/dist/database/entities/identifier.entity.js +26 -0
- package/dist/database/entities/identifier.entity.js.map +1 -0
- package/dist/database/entities/key.entity.d.ts +13 -0
- package/dist/database/entities/key.entity.d.ts.map +1 -0
- package/dist/database/entities/key.entity.js +63 -0
- package/dist/database/entities/key.entity.js.map +1 -0
- package/dist/database/entities/operation.entity.d.ts +17 -0
- package/dist/database/entities/operation.entity.d.ts.map +1 -0
- package/dist/database/entities/operation.entity.js +98 -0
- package/dist/database/entities/operation.entity.js.map +1 -0
- package/dist/database/entities/payment.account.entity.d.ts +16 -0
- package/dist/database/entities/payment.account.entity.d.ts.map +1 -0
- package/dist/database/entities/payment.account.entity.js +86 -0
- package/dist/database/entities/payment.account.entity.js.map +1 -0
- package/dist/database/entities/payment.entity.d.ts +20 -0
- package/dist/database/entities/payment.entity.d.ts.map +1 -0
- package/dist/database/entities/payment.entity.js +103 -0
- package/dist/database/entities/payment.entity.js.map +1 -0
- package/dist/database/entities/resource.entity.d.ts +21 -0
- package/dist/database/entities/resource.entity.d.ts.map +1 -0
- package/dist/database/entities/resource.entity.js +117 -0
- package/dist/database/entities/resource.entity.js.map +1 -0
- package/dist/database/entities/role.entity.d.ts +7 -0
- package/dist/database/entities/role.entity.d.ts.map +1 -0
- package/dist/database/entities/role.entity.js +60 -0
- package/dist/database/entities/role.entity.js.map +1 -0
- package/dist/database/entities/subscription.entity.d.ts +16 -0
- package/dist/database/entities/subscription.entity.d.ts.map +1 -0
- package/dist/database/entities/subscription.entity.js +102 -0
- package/dist/database/entities/subscription.entity.js.map +1 -0
- package/dist/database/entities/user.entity.d.ts +13 -0
- package/dist/database/entities/user.entity.d.ts.map +1 -0
- package/dist/database/entities/user.entity.js +67 -0
- package/dist/database/entities/user.entity.js.map +1 -0
- package/dist/database/migrations/AlterAPIKeyTable.d.ts +6 -0
- package/dist/database/migrations/AlterAPIKeyTable.d.ts.map +1 -0
- package/dist/database/migrations/AlterAPIKeyTable.js +51 -0
- package/dist/database/migrations/AlterAPIKeyTable.js.map +1 -0
- package/dist/database/migrations/AlterCustomerTable.d.ts +6 -0
- package/dist/database/migrations/AlterCustomerTable.d.ts.map +1 -0
- package/dist/database/migrations/AlterCustomerTable.js +15 -0
- package/dist/database/migrations/AlterCustomerTable.js.map +1 -0
- package/dist/database/migrations/AlterCustomerTableAddEmail.d.ts +6 -0
- package/dist/database/migrations/AlterCustomerTableAddEmail.d.ts.map +1 -0
- package/dist/database/migrations/AlterCustomerTableAddEmail.js +20 -0
- package/dist/database/migrations/AlterCustomerTableAddEmail.js.map +1 -0
- package/dist/database/migrations/AlterOperationTable.d.ts +6 -0
- package/dist/database/migrations/AlterOperationTable.d.ts.map +1 -0
- package/dist/database/migrations/AlterOperationTable.js +38 -0
- package/dist/database/migrations/AlterOperationTable.js.map +1 -0
- package/dist/database/migrations/AlterOperationTableAddCustomer.d.ts +6 -0
- package/dist/database/migrations/AlterOperationTableAddCustomer.d.ts.map +1 -0
- package/dist/database/migrations/AlterOperationTableAddCustomer.js +22 -0
- package/dist/database/migrations/AlterOperationTableAddCustomer.js.map +1 -0
- package/dist/database/migrations/AlterOperationTableNewCategory.d.ts +6 -0
- package/dist/database/migrations/AlterOperationTableNewCategory.d.ts.map +1 -0
- package/dist/database/migrations/AlterOperationTableNewCategory.js +17 -0
- package/dist/database/migrations/AlterOperationTableNewCategory.js.map +1 -0
- package/dist/database/migrations/AlterPaymentTable.d.ts +6 -0
- package/dist/database/migrations/AlterPaymentTable.d.ts.map +1 -0
- package/dist/database/migrations/AlterPaymentTable.js +61 -0
- package/dist/database/migrations/AlterPaymentTable.js.map +1 -0
- package/dist/database/migrations/AlterTableClaim.d.ts +6 -0
- package/dist/database/migrations/AlterTableClaim.d.ts.map +1 -0
- package/dist/database/migrations/AlterTableClaim.js +21 -0
- package/dist/database/migrations/AlterTableClaim.js.map +1 -0
- package/dist/database/migrations/AlterTableIdentifier.d.ts +6 -0
- package/dist/database/migrations/AlterTableIdentifier.d.ts.map +1 -0
- package/dist/database/migrations/AlterTableIdentifier.js +21 -0
- package/dist/database/migrations/AlterTableIdentifier.js.map +1 -0
- package/dist/database/migrations/AlterTableKey.d.ts +6 -0
- package/dist/database/migrations/AlterTableKey.d.ts.map +1 -0
- package/dist/database/migrations/AlterTableKey.js +36 -0
- package/dist/database/migrations/AlterTableKey.js.map +1 -0
- package/dist/database/migrations/CreateApiKeyMigration.d.ts +6 -0
- package/dist/database/migrations/CreateApiKeyMigration.d.ts.map +1 -0
- package/dist/database/migrations/CreateApiKeyMigration.js +40 -0
- package/dist/database/migrations/CreateApiKeyMigration.js.map +1 -0
- package/dist/database/migrations/CreateCoinTable.d.ts +6 -0
- package/dist/database/migrations/CreateCoinTable.d.ts.map +1 -0
- package/dist/database/migrations/CreateCoinTable.js +20 -0
- package/dist/database/migrations/CreateCoinTable.js.map +1 -0
- package/dist/database/migrations/CreateCustomerTable.d.ts +6 -0
- package/dist/database/migrations/CreateCustomerTable.d.ts.map +1 -0
- package/dist/database/migrations/CreateCustomerTable.js +24 -0
- package/dist/database/migrations/CreateCustomerTable.js.map +1 -0
- package/dist/database/migrations/CreateCustomersTable.d.ts +6 -0
- package/dist/database/migrations/CreateCustomersTable.d.ts.map +1 -0
- package/dist/database/migrations/CreateCustomersTable.js +21 -0
- package/dist/database/migrations/CreateCustomersTable.js.map +1 -0
- package/dist/database/migrations/CreateOperationTable.d.ts +6 -0
- package/dist/database/migrations/CreateOperationTable.d.ts.map +1 -0
- package/dist/database/migrations/CreateOperationTable.js +28 -0
- package/dist/database/migrations/CreateOperationTable.js.map +1 -0
- package/dist/database/migrations/CreatePaymentAccountTable.d.ts +6 -0
- package/dist/database/migrations/CreatePaymentAccountTable.d.ts.map +1 -0
- package/dist/database/migrations/CreatePaymentAccountTable.js +35 -0
- package/dist/database/migrations/CreatePaymentAccountTable.js.map +1 -0
- package/dist/database/migrations/CreatePaymentTable.d.ts +6 -0
- package/dist/database/migrations/CreatePaymentTable.d.ts.map +1 -0
- package/dist/database/migrations/CreatePaymentTable.js +55 -0
- package/dist/database/migrations/CreatePaymentTable.js.map +1 -0
- package/dist/database/migrations/CreateResourceTable.d.ts +6 -0
- package/dist/database/migrations/CreateResourceTable.d.ts.map +1 -0
- package/dist/database/migrations/CreateResourceTable.js +46 -0
- package/dist/database/migrations/CreateResourceTable.js.map +1 -0
- package/dist/database/migrations/CreateRoleTable.d.ts +6 -0
- package/dist/database/migrations/CreateRoleTable.d.ts.map +1 -0
- package/dist/database/migrations/CreateRoleTable.js +25 -0
- package/dist/database/migrations/CreateRoleTable.js.map +1 -0
- package/dist/database/migrations/CreateSubscriptionTable.d.ts +6 -0
- package/dist/database/migrations/CreateSubscriptionTable.d.ts.map +1 -0
- package/dist/database/migrations/CreateSubscriptionTable.js +30 -0
- package/dist/database/migrations/CreateSubscriptionTable.js.map +1 -0
- package/dist/database/migrations/CreateUserTable.d.ts +6 -0
- package/dist/database/migrations/CreateUserTable.d.ts.map +1 -0
- package/dist/database/migrations/CreateUserTable.js +32 -0
- package/dist/database/migrations/CreateUserTable.js.map +1 -0
- package/dist/database/migrations/MigrateData.d.ts +7 -0
- package/dist/database/migrations/MigrateData.d.ts.map +1 -0
- package/dist/database/migrations/MigrateData.js +138 -0
- package/dist/database/migrations/MigrateData.js.map +1 -0
- package/dist/database/ormconfig.d.ts +2 -0
- package/dist/database/ormconfig.d.ts.map +1 -0
- package/dist/database/ormconfig.js +3 -0
- package/dist/database/ormconfig.js.map +1 -0
- package/dist/database/types/enum.d.ts +21 -0
- package/dist/database/types/enum.d.ts.map +1 -0
- package/dist/database/types/enum.js +35 -0
- package/dist/database/types/enum.js.map +1 -0
- package/dist/database/types/types.d.ts +11 -0
- package/dist/database/types/types.d.ts.map +1 -0
- package/dist/database/types/types.js +127 -0
- package/dist/database/types/types.js.map +1 -0
- package/dist/helpers/faucet.d.ts +5 -0
- package/dist/helpers/faucet.d.ts.map +1 -0
- package/dist/helpers/faucet.js +24 -0
- package/dist/helpers/faucet.js.map +1 -0
- package/dist/helpers/fee-analyzer.d.ts +8 -0
- package/dist/helpers/fee-analyzer.d.ts.map +1 -0
- package/dist/helpers/fee-analyzer.js +73 -0
- package/dist/helpers/fee-analyzer.js.map +1 -0
- package/dist/helpers/helpers.d.ts +28 -0
- package/dist/helpers/helpers.d.ts.map +1 -0
- package/dist/helpers/helpers.js +167 -0
- package/dist/helpers/helpers.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +28 -0
- package/dist/index.js.map +1 -0
- package/dist/middleware/auth/auth-gaurd.d.ts +51 -0
- package/dist/middleware/auth/auth-gaurd.d.ts.map +1 -0
- package/dist/middleware/auth/auth-gaurd.js +117 -0
- package/dist/middleware/auth/auth-gaurd.js.map +1 -0
- package/dist/middleware/auth/logto-helper.d.ts +44 -0
- package/dist/middleware/auth/logto-helper.d.ts.map +1 -0
- package/dist/middleware/auth/logto-helper.js +438 -0
- package/dist/middleware/auth/logto-helper.js.map +1 -0
- package/dist/middleware/auth/oauth/abstract.d.ts +22 -0
- package/dist/middleware/auth/oauth/abstract.d.ts.map +1 -0
- package/dist/middleware/auth/oauth/abstract.js +24 -0
- package/dist/middleware/auth/oauth/abstract.js.map +1 -0
- package/dist/middleware/auth/oauth/logto-provider.d.ts +15 -0
- package/dist/middleware/auth/oauth/logto-provider.d.ts.map +1 -0
- package/dist/middleware/auth/oauth/logto-provider.js +42 -0
- package/dist/middleware/auth/oauth/logto-provider.js.map +1 -0
- package/dist/middleware/auth/routes/admin/admin-auth.d.ts +8 -0
- package/dist/middleware/auth/routes/admin/admin-auth.d.ts.map +1 -0
- package/dist/middleware/auth/routes/admin/admin-auth.js +44 -0
- package/dist/middleware/auth/routes/admin/admin-auth.js.map +1 -0
- package/dist/middleware/auth/routes/api/account-auth.d.ts +5 -0
- package/dist/middleware/auth/routes/api/account-auth.d.ts.map +1 -0
- package/dist/middleware/auth/routes/api/account-auth.js +9 -0
- package/dist/middleware/auth/routes/api/account-auth.js.map +1 -0
- package/dist/middleware/auth/routes/api/auth-user-info.d.ts +5 -0
- package/dist/middleware/auth/routes/api/auth-user-info.d.ts.map +1 -0
- package/dist/middleware/auth/routes/api/auth-user-info.js +8 -0
- package/dist/middleware/auth/routes/api/auth-user-info.js.map +1 -0
- package/dist/middleware/auth/routes/api/credential-auth.d.ts +5 -0
- package/dist/middleware/auth/routes/api/credential-auth.d.ts.map +1 -0
- package/dist/middleware/auth/routes/api/credential-auth.js +17 -0
- package/dist/middleware/auth/routes/api/credential-auth.js.map +1 -0
- package/dist/middleware/auth/routes/api/credential-status-auth.d.ts +5 -0
- package/dist/middleware/auth/routes/api/credential-status-auth.d.ts.map +1 -0
- package/dist/middleware/auth/routes/api/credential-status-auth.js +20 -0
- package/dist/middleware/auth/routes/api/credential-status-auth.js.map +1 -0
- package/dist/middleware/auth/routes/api/did-auth.d.ts +5 -0
- package/dist/middleware/auth/routes/api/did-auth.d.ts.map +1 -0
- package/dist/middleware/auth/routes/api/did-auth.js +19 -0
- package/dist/middleware/auth/routes/api/did-auth.js.map +1 -0
- package/dist/middleware/auth/routes/api/key-auth.d.ts +5 -0
- package/dist/middleware/auth/routes/api/key-auth.d.ts.map +1 -0
- package/dist/middleware/auth/routes/api/key-auth.js +11 -0
- package/dist/middleware/auth/routes/api/key-auth.js.map +1 -0
- package/dist/middleware/auth/routes/api/presentation-auth.d.ts +5 -0
- package/dist/middleware/auth/routes/api/presentation-auth.d.ts.map +1 -0
- package/dist/middleware/auth/routes/api/presentation-auth.js +10 -0
- package/dist/middleware/auth/routes/api/presentation-auth.js.map +1 -0
- package/dist/middleware/auth/routes/api/resource-auth.d.ts +5 -0
- package/dist/middleware/auth/routes/api/resource-auth.d.ts.map +1 -0
- package/dist/middleware/auth/routes/api/resource-auth.js +11 -0
- package/dist/middleware/auth/routes/api/resource-auth.js.map +1 -0
- package/dist/middleware/auth/routes/auth-rule-provider.d.ts +33 -0
- package/dist/middleware/auth/routes/auth-rule-provider.d.ts.map +1 -0
- package/dist/middleware/auth/routes/auth-rule-provider.js +39 -0
- package/dist/middleware/auth/routes/auth-rule-provider.js.map +1 -0
- package/dist/middleware/auth/routes/auth-rule-repository.d.ts +21 -0
- package/dist/middleware/auth/routes/auth-rule-repository.d.ts.map +1 -0
- package/dist/middleware/auth/routes/auth-rule-repository.js +28 -0
- package/dist/middleware/auth/routes/auth-rule-repository.js.map +1 -0
- package/dist/middleware/auth/user-info-fetcher/api-token.d.ts +17 -0
- package/dist/middleware/auth/user-info-fetcher/api-token.d.ts.map +1 -0
- package/dist/middleware/auth/user-info-fetcher/api-token.js +60 -0
- package/dist/middleware/auth/user-info-fetcher/api-token.js.map +1 -0
- package/dist/middleware/auth/user-info-fetcher/base.d.ts +14 -0
- package/dist/middleware/auth/user-info-fetcher/base.d.ts.map +1 -0
- package/dist/middleware/auth/user-info-fetcher/base.js +38 -0
- package/dist/middleware/auth/user-info-fetcher/base.js.map +1 -0
- package/dist/middleware/auth/user-info-fetcher/idtoken.d.ts +18 -0
- package/dist/middleware/auth/user-info-fetcher/idtoken.d.ts.map +1 -0
- package/dist/middleware/auth/user-info-fetcher/idtoken.js +56 -0
- package/dist/middleware/auth/user-info-fetcher/idtoken.js.map +1 -0
- package/dist/middleware/auth/user-info-fetcher/m2m-creds-token.d.ts +18 -0
- package/dist/middleware/auth/user-info-fetcher/m2m-creds-token.d.ts.map +1 -0
- package/dist/middleware/auth/user-info-fetcher/m2m-creds-token.js +52 -0
- package/dist/middleware/auth/user-info-fetcher/m2m-creds-token.js.map +1 -0
- package/dist/middleware/auth/user-info-fetcher/portal-token.d.ts +20 -0
- package/dist/middleware/auth/user-info-fetcher/portal-token.d.ts.map +1 -0
- package/dist/middleware/auth/user-info-fetcher/portal-token.js +79 -0
- package/dist/middleware/auth/user-info-fetcher/portal-token.js.map +1 -0
- package/dist/middleware/auth/user-info-fetcher/swagger-ui.d.ts +16 -0
- package/dist/middleware/auth/user-info-fetcher/swagger-ui.d.ts.map +1 -0
- package/dist/middleware/auth/user-info-fetcher/swagger-ui.js +48 -0
- package/dist/middleware/auth/user-info-fetcher/swagger-ui.js.map +1 -0
- package/dist/middleware/authentication.d.ts +15 -0
- package/dist/middleware/authentication.d.ts.map +1 -0
- package/dist/middleware/authentication.js +110 -0
- package/dist/middleware/authentication.js.map +1 -0
- package/dist/middleware/event-tracker.d.ts +5 -0
- package/dist/middleware/event-tracker.d.ts.map +1 -0
- package/dist/middleware/event-tracker.js +34 -0
- package/dist/middleware/event-tracker.js.map +1 -0
- package/dist/middleware/hook.d.ts +9 -0
- package/dist/middleware/hook.d.ts.map +1 -0
- package/dist/middleware/hook.js +24 -0
- package/dist/middleware/hook.js.map +1 -0
- package/dist/middleware/middleware.d.ts +6 -0
- package/dist/middleware/middleware.d.ts.map +1 -0
- package/dist/middleware/middleware.js +36 -0
- package/dist/middleware/middleware.js.map +1 -0
- package/dist/services/admin/api-key.d.ts +30 -0
- package/dist/services/admin/api-key.d.ts.map +1 -0
- package/dist/services/admin/api-key.js +135 -0
- package/dist/services/admin/api-key.js.map +1 -0
- package/dist/services/admin/stripe.d.ts +18 -0
- package/dist/services/admin/stripe.d.ts.map +1 -0
- package/dist/services/admin/stripe.js +125 -0
- package/dist/services/admin/stripe.js.map +1 -0
- package/dist/services/admin/subscription.d.ts +16 -0
- package/dist/services/admin/subscription.d.ts.map +1 -0
- package/dist/services/admin/subscription.js +75 -0
- package/dist/services/admin/subscription.js.map +1 -0
- package/dist/services/api/coin.d.ts +13 -0
- package/dist/services/api/coin.d.ts.map +1 -0
- package/dist/services/api/coin.js +49 -0
- package/dist/services/api/coin.js.map +1 -0
- package/dist/services/api/credentials.d.ts +8 -0
- package/dist/services/api/credentials.d.ts.map +1 -0
- package/dist/services/api/credentials.js +38 -0
- package/dist/services/api/credentials.js.map +1 -0
- package/dist/services/api/customer.d.ts +19 -0
- package/dist/services/api/customer.d.ts.map +1 -0
- package/dist/services/api/customer.js +88 -0
- package/dist/services/api/customer.js.map +1 -0
- package/dist/services/api/identifier.d.ts +12 -0
- package/dist/services/api/identifier.d.ts.map +1 -0
- package/dist/services/api/identifier.js +38 -0
- package/dist/services/api/identifier.js.map +1 -0
- package/dist/services/api/key.d.ts +14 -0
- package/dist/services/api/key.d.ts.map +1 -0
- package/dist/services/api/key.js +49 -0
- package/dist/services/api/key.js.map +1 -0
- package/dist/services/api/operation.d.ts +14 -0
- package/dist/services/api/operation.d.ts.map +1 -0
- package/dist/services/api/operation.js +61 -0
- package/dist/services/api/operation.js.map +1 -0
- package/dist/services/api/payment-account.d.ts +14 -0
- package/dist/services/api/payment-account.d.ts.map +1 -0
- package/dist/services/api/payment-account.js +68 -0
- package/dist/services/api/payment-account.js.map +1 -0
- package/dist/services/api/payment.d.ts +17 -0
- package/dist/services/api/payment.d.ts.map +1 -0
- package/dist/services/api/payment.js +68 -0
- package/dist/services/api/payment.js.map +1 -0
- package/dist/services/api/resource.d.ts +17 -0
- package/dist/services/api/resource.d.ts.map +1 -0
- package/dist/services/api/resource.js +65 -0
- package/dist/services/api/resource.js.map +1 -0
- package/dist/services/api/role.d.ts +14 -0
- package/dist/services/api/role.d.ts.map +1 -0
- package/dist/services/api/role.js +53 -0
- package/dist/services/api/role.js.map +1 -0
- package/dist/services/api/store.d.ts +8 -0
- package/dist/services/api/store.d.ts.map +1 -0
- package/dist/services/api/store.js +18 -0
- package/dist/services/api/store.js.map +1 -0
- package/dist/services/api/user.d.ts +15 -0
- package/dist/services/api/user.d.ts.map +1 -0
- package/dist/services/api/user.js +54 -0
- package/dist/services/api/user.js.map +1 -0
- package/dist/services/connectors/verida.d.ts +40 -0
- package/dist/services/connectors/verida.d.ts.map +1 -0
- package/dist/services/connectors/verida.js +110 -0
- package/dist/services/connectors/verida.js.map +1 -0
- package/dist/services/helpers.d.ts +10 -0
- package/dist/services/helpers.d.ts.map +1 -0
- package/dist/services/helpers.js +44 -0
- package/dist/services/helpers.js.map +1 -0
- package/dist/services/identity/abstract.d.ts +51 -0
- package/dist/services/identity/abstract.d.ts.map +1 -0
- package/dist/services/identity/abstract.js +101 -0
- package/dist/services/identity/abstract.js.map +1 -0
- package/dist/services/identity/agent.d.ts +43 -0
- package/dist/services/identity/agent.d.ts.map +1 -0
- package/dist/services/identity/agent.js +625 -0
- package/dist/services/identity/agent.js.map +1 -0
- package/dist/services/identity/default.d.ts +19 -0
- package/dist/services/identity/default.d.ts.map +1 -0
- package/dist/services/identity/default.js +26 -0
- package/dist/services/identity/default.js.map +1 -0
- package/dist/services/identity/index.d.ts +59 -0
- package/dist/services/identity/index.d.ts.map +1 -0
- package/dist/services/identity/index.js +31 -0
- package/dist/services/identity/index.js.map +1 -0
- package/dist/services/identity/local.d.ts +33 -0
- package/dist/services/identity/local.d.ts.map +1 -0
- package/dist/services/identity/local.js +156 -0
- package/dist/services/identity/local.js.map +1 -0
- package/dist/services/identity/postgres.d.ts +59 -0
- package/dist/services/identity/postgres.d.ts.map +1 -0
- package/dist/services/identity/postgres.js +388 -0
- package/dist/services/identity/postgres.js.map +1 -0
- package/dist/services/identity/unauthorized.d.ts +6 -0
- package/dist/services/identity/unauthorized.d.ts.map +1 -0
- package/dist/services/identity/unauthorized.js +49 -0
- package/dist/services/identity/unauthorized.js.map +1 -0
- package/dist/services/track/admin/account-submitter.d.ts +11 -0
- package/dist/services/track/admin/account-submitter.d.ts.map +1 -0
- package/dist/services/track/admin/account-submitter.js +54 -0
- package/dist/services/track/admin/account-submitter.js.map +1 -0
- package/dist/services/track/admin/subscription-submitter.d.ts +13 -0
- package/dist/services/track/admin/subscription-submitter.d.ts.map +1 -0
- package/dist/services/track/admin/subscription-submitter.js +106 -0
- package/dist/services/track/admin/subscription-submitter.js.map +1 -0
- package/dist/services/track/api/credential-status-subscriber.d.ts +10 -0
- package/dist/services/track/api/credential-status-subscriber.d.ts.map +1 -0
- package/dist/services/track/api/credential-status-subscriber.js +35 -0
- package/dist/services/track/api/credential-status-subscriber.js.map +1 -0
- package/dist/services/track/api/credential-subscriber.d.ts +10 -0
- package/dist/services/track/api/credential-subscriber.d.ts.map +1 -0
- package/dist/services/track/api/credential-subscriber.js +35 -0
- package/dist/services/track/api/credential-subscriber.js.map +1 -0
- package/dist/services/track/api/did-subscriber.d.ts +10 -0
- package/dist/services/track/api/did-subscriber.d.ts.map +1 -0
- package/dist/services/track/api/did-subscriber.js +33 -0
- package/dist/services/track/api/did-subscriber.js.map +1 -0
- package/dist/services/track/api/key-subscriber.d.ts +10 -0
- package/dist/services/track/api/key-subscriber.d.ts.map +1 -0
- package/dist/services/track/api/key-subscriber.js +35 -0
- package/dist/services/track/api/key-subscriber.js.map +1 -0
- package/dist/services/track/api/presentation-subscriber.d.ts +10 -0
- package/dist/services/track/api/presentation-subscriber.d.ts.map +1 -0
- package/dist/services/track/api/presentation-subscriber.js +35 -0
- package/dist/services/track/api/presentation-subscriber.js.map +1 -0
- package/dist/services/track/api/resource-subscriber.d.ts +11 -0
- package/dist/services/track/api/resource-subscriber.d.ts.map +1 -0
- package/dist/services/track/api/resource-subscriber.js +107 -0
- package/dist/services/track/api/resource-subscriber.js.map +1 -0
- package/dist/services/track/base.d.ts +10 -0
- package/dist/services/track/base.d.ts.map +1 -0
- package/dist/services/track/base.js +26 -0
- package/dist/services/track/base.js.map +1 -0
- package/dist/services/track/helpers.d.ts +23 -0
- package/dist/services/track/helpers.d.ts.map +1 -0
- package/dist/services/track/helpers.js +35 -0
- package/dist/services/track/helpers.js.map +1 -0
- package/dist/services/track/notifiers.d.ts +12 -0
- package/dist/services/track/notifiers.d.ts.map +1 -0
- package/dist/services/track/notifiers.js +39 -0
- package/dist/services/track/notifiers.js.map +1 -0
- package/dist/services/track/observer.d.ts +14 -0
- package/dist/services/track/observer.d.ts.map +1 -0
- package/dist/services/track/observer.js +43 -0
- package/dist/services/track/observer.js.map +1 -0
- package/dist/services/track/operation-subscriber.d.ts +14 -0
- package/dist/services/track/operation-subscriber.d.ts.map +1 -0
- package/dist/services/track/operation-subscriber.js +112 -0
- package/dist/services/track/operation-subscriber.js.map +1 -0
- package/dist/services/track/submitter.d.ts +22 -0
- package/dist/services/track/submitter.d.ts.map +1 -0
- package/dist/services/track/submitter.js +2 -0
- package/dist/services/track/submitter.js.map +1 -0
- package/dist/services/track/tracker.d.ts +24 -0
- package/dist/services/track/tracker.d.ts.map +1 -0
- package/dist/services/track/tracker.js +79 -0
- package/dist/services/track/tracker.js.map +1 -0
- package/dist/services/track/types.d.ts +16 -0
- package/dist/services/track/types.d.ts.map +1 -0
- package/dist/services/track/types.js +2 -0
- package/dist/services/track/types.js.map +1 -0
- package/dist/services/w3c-credential.d.ts +32 -0
- package/dist/services/w3c-credential.d.ts.map +1 -0
- package/dist/services/w3c-credential.js +120 -0
- package/dist/services/w3c-credential.js.map +1 -0
- package/dist/services/w3c-presentation.d.ts +30 -0
- package/dist/services/w3c-presentation.d.ts.map +1 -0
- package/dist/services/w3c-presentation.js +95 -0
- package/dist/services/w3c-presentation.js.map +1 -0
- package/dist/static/custom-button.d.ts +2 -0
- package/dist/static/custom-button.d.ts.map +1 -0
- package/dist/static/custom-button.js +35 -0
- package/dist/static/custom-button.js.map +1 -0
- package/dist/static/swagger-admin.json +1191 -0
- package/dist/static/swagger-api.json +3564 -0
- package/dist/types/admin.d.ts +122 -0
- package/dist/types/admin.d.ts.map +1 -0
- package/dist/types/admin.js +2 -0
- package/dist/types/admin.js.map +1 -0
- package/dist/types/authentication.d.ts +30 -0
- package/dist/types/authentication.d.ts.map +1 -0
- package/dist/types/authentication.js +131 -0
- package/dist/types/authentication.js.map +1 -0
- package/dist/types/constants.d.ts +98 -0
- package/dist/types/constants.d.ts.map +1 -0
- package/dist/types/constants.js +138 -0
- package/dist/types/constants.js.map +1 -0
- package/dist/types/credential-status.d.ts +168 -0
- package/dist/types/credential-status.d.ts.map +1 -0
- package/dist/types/credential-status.js +12 -0
- package/dist/types/credential-status.js.map +1 -0
- package/dist/types/credential.d.ts +55 -0
- package/dist/types/credential.d.ts.map +1 -0
- package/dist/types/credential.js +2 -0
- package/dist/types/credential.js.map +1 -0
- package/dist/types/customer.d.ts +18 -0
- package/dist/types/customer.d.ts.map +1 -0
- package/dist/types/customer.js +2 -0
- package/dist/types/customer.js.map +1 -0
- package/dist/types/did.d.ts +56 -0
- package/dist/types/did.d.ts.map +1 -0
- package/dist/types/did.js +2 -0
- package/dist/types/did.js.map +1 -0
- package/dist/types/key.d.ts +23 -0
- package/dist/types/key.d.ts.map +1 -0
- package/dist/types/key.js +2 -0
- package/dist/types/key.js.map +1 -0
- package/dist/types/presentation.d.ts +19 -0
- package/dist/types/presentation.d.ts.map +1 -0
- package/dist/types/presentation.js +2 -0
- package/dist/types/presentation.js.map +1 -0
- package/dist/types/resource.d.ts +26 -0
- package/dist/types/resource.d.ts.map +1 -0
- package/dist/types/resource.js +2 -0
- package/dist/types/resource.js.map +1 -0
- package/dist/types/shared.d.ts +51 -0
- package/dist/types/shared.d.ts.map +1 -0
- package/dist/types/shared.js +24 -0
- package/dist/types/shared.js.map +1 -0
- package/dist/types/swagger-admin-types.d.ts +352 -0
- package/dist/types/swagger-admin-types.d.ts.map +1 -0
- package/dist/types/swagger-admin-types.js +353 -0
- package/dist/types/swagger-admin-types.js.map +1 -0
- package/dist/types/swagger-api-types.d.ts +1312 -0
- package/dist/types/swagger-api-types.d.ts.map +1 -0
- package/dist/types/swagger-api-types.js +1313 -0
- package/dist/types/swagger-api-types.js.map +1 -0
- package/dist/types/track.d.ts +72 -0
- package/dist/types/track.d.ts.map +1 -0
- package/dist/types/track.js +37 -0
- package/dist/types/track.js.map +1 -0
- package/dist/types/validation.d.ts +23 -0
- package/dist/types/validation.d.ts.map +1 -0
- package/dist/types/validation.js +2 -0
- package/dist/types/validation.js.map +1 -0
- package/dist/types/verida.d.ts +23 -0
- package/dist/types/verida.d.ts.map +1 -0
- package/dist/types/verida.js +2 -0
- package/dist/types/verida.js.map +1 -0
- package/example.env +43 -0
- package/package.json +156 -0
|
@@ -0,0 +1,1191 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "cheqd Studio admin API for cheqd network",
|
|
5
|
+
"version": "2.0.0",
|
|
6
|
+
"description": "Admin API which handles users subscriptions and payments",
|
|
7
|
+
"contact": {
|
|
8
|
+
"name": "Cheqd Foundation Limited",
|
|
9
|
+
"url": "https://github.com/cheqd/studio",
|
|
10
|
+
"email": "support-github@cheqd.io"
|
|
11
|
+
},
|
|
12
|
+
"license": {
|
|
13
|
+
"name": "Apache 2.0",
|
|
14
|
+
"url": "https://github.com/cheqd/studio/blob/main/LICENSE"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"tags": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Product"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "Price"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "Subscription"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "API Key"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"paths": {
|
|
32
|
+
"/admin/api-key/create": {
|
|
33
|
+
"post": {
|
|
34
|
+
"summary": "Create a new API key",
|
|
35
|
+
"description": "Create a new API key",
|
|
36
|
+
"tags": [
|
|
37
|
+
"API Key"
|
|
38
|
+
],
|
|
39
|
+
"requestBody": {
|
|
40
|
+
"content": {
|
|
41
|
+
"application/json": {
|
|
42
|
+
"schema": {
|
|
43
|
+
"$ref": "#/components/schemas/APIKeyCreateRequestBody"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"responses": {
|
|
49
|
+
"201": {
|
|
50
|
+
"description": "A new API key has been created",
|
|
51
|
+
"content": {
|
|
52
|
+
"application/json": {
|
|
53
|
+
"schema": {
|
|
54
|
+
"$ref": "#/components/schemas/APIKeyCreateResponseBody"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"400": {
|
|
60
|
+
"$ref": "#/components/schemas/APIKeyCreateUnsuccessfulResponseBody"
|
|
61
|
+
},
|
|
62
|
+
"401": {
|
|
63
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
64
|
+
},
|
|
65
|
+
"500": {
|
|
66
|
+
"$ref": "#/components/schemas/InternalError"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"/admin/api-key/update": {
|
|
72
|
+
"post": {
|
|
73
|
+
"summary": "Update an existing API key",
|
|
74
|
+
"description": "Update an existing API key",
|
|
75
|
+
"tags": [
|
|
76
|
+
"API Key"
|
|
77
|
+
],
|
|
78
|
+
"requestBody": {
|
|
79
|
+
"content": {
|
|
80
|
+
"application/json": {
|
|
81
|
+
"schema": {
|
|
82
|
+
"$ref": "#/components/schemas/APIKeyUpdateRequestBody"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"responses": {
|
|
88
|
+
"200": {
|
|
89
|
+
"description": "The API key has been updated",
|
|
90
|
+
"content": {
|
|
91
|
+
"application/json": {
|
|
92
|
+
"schema": {
|
|
93
|
+
"$ref": "#/components/schemas/APIKeyUpdateResponseBody"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"400": {
|
|
99
|
+
"$ref": "#/components/schemas/APIKeyUpdateUnsuccessfulResponseBody"
|
|
100
|
+
},
|
|
101
|
+
"401": {
|
|
102
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
103
|
+
},
|
|
104
|
+
"500": {
|
|
105
|
+
"$ref": "#/components/schemas/InternalError"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"/admin/api-key/revoke": {
|
|
111
|
+
"delete": {
|
|
112
|
+
"summary": "Revoke an existing API key",
|
|
113
|
+
"description": "Revoke an existing API key",
|
|
114
|
+
"tags": [
|
|
115
|
+
"API Key"
|
|
116
|
+
],
|
|
117
|
+
"requestBody": {
|
|
118
|
+
"content": {
|
|
119
|
+
"application/json": {
|
|
120
|
+
"schema": {
|
|
121
|
+
"$ref": "#/components/schemas/APIKeyRevokeRequestBody"
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"responses": {
|
|
127
|
+
"200": {
|
|
128
|
+
"description": "The API key has been revoked",
|
|
129
|
+
"content": {
|
|
130
|
+
"application/json": {
|
|
131
|
+
"schema": {
|
|
132
|
+
"$ref": "#/components/schemas/APIKeyRevokeResponseBody"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"400": {
|
|
138
|
+
"$ref": "#/components/schemas/APIKeyRevokeUnsuccessfulResponseBody"
|
|
139
|
+
},
|
|
140
|
+
"401": {
|
|
141
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
142
|
+
},
|
|
143
|
+
"500": {
|
|
144
|
+
"$ref": "#/components/schemas/InternalError"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"/admin/api-key/list": {
|
|
150
|
+
"get": {
|
|
151
|
+
"summary": "List all API keys",
|
|
152
|
+
"description": "List all API keys",
|
|
153
|
+
"tags": [
|
|
154
|
+
"API Key"
|
|
155
|
+
],
|
|
156
|
+
"responses": {
|
|
157
|
+
"200": {
|
|
158
|
+
"description": "A list of API keys",
|
|
159
|
+
"content": {
|
|
160
|
+
"application/json": {
|
|
161
|
+
"schema": {
|
|
162
|
+
"$ref": "#/components/schemas/APIKeyListResponseBody"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"400": {
|
|
168
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
169
|
+
},
|
|
170
|
+
"401": {
|
|
171
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
172
|
+
},
|
|
173
|
+
"404": {
|
|
174
|
+
"$ref": "#/components/schemas/NotFoundError"
|
|
175
|
+
},
|
|
176
|
+
"500": {
|
|
177
|
+
"$ref": "#/components/schemas/InternalError"
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
"/admin/api-key/get": {
|
|
183
|
+
"get": {
|
|
184
|
+
"summary": "Get an API key",
|
|
185
|
+
"description": "Get an API key. If the API key is not provided, the latest not revoked API key it returns.",
|
|
186
|
+
"tags": [
|
|
187
|
+
"API Key"
|
|
188
|
+
],
|
|
189
|
+
"parameters": [
|
|
190
|
+
{
|
|
191
|
+
"name": "apiKey",
|
|
192
|
+
"in": "query",
|
|
193
|
+
"required": false,
|
|
194
|
+
"schema": {
|
|
195
|
+
"type": "string"
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"responses": {
|
|
200
|
+
"200": {
|
|
201
|
+
"description": "The API key",
|
|
202
|
+
"content": {
|
|
203
|
+
"application/json": {
|
|
204
|
+
"schema": {
|
|
205
|
+
"$ref": "#/components/schemas/APIKeyGetResponseBody"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"400": {
|
|
211
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
212
|
+
},
|
|
213
|
+
"401": {
|
|
214
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
215
|
+
},
|
|
216
|
+
"404": {
|
|
217
|
+
"$ref": "#/components/schemas/NotFoundError"
|
|
218
|
+
},
|
|
219
|
+
"500": {
|
|
220
|
+
"$ref": "#/components/schemas/InternalError"
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
"/admin/organisation/update": {
|
|
226
|
+
"post": {
|
|
227
|
+
"summary": "Update an organisation",
|
|
228
|
+
"description": "Update an organisation",
|
|
229
|
+
"tags": [
|
|
230
|
+
"Organisation"
|
|
231
|
+
],
|
|
232
|
+
"requestBody": {
|
|
233
|
+
"required": true,
|
|
234
|
+
"content": {
|
|
235
|
+
"application/json": {
|
|
236
|
+
"schema": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"properties": {
|
|
239
|
+
"name": {
|
|
240
|
+
"type": "string",
|
|
241
|
+
"example": "Cheqd"
|
|
242
|
+
},
|
|
243
|
+
"email": {
|
|
244
|
+
"type": "string",
|
|
245
|
+
"example": "cheqd@example.com",
|
|
246
|
+
"format": "email"
|
|
247
|
+
},
|
|
248
|
+
"description": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"example": "Cheqd organisation"
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"responses": {
|
|
258
|
+
"200": {
|
|
259
|
+
"description": "A successful response",
|
|
260
|
+
"content": {
|
|
261
|
+
"application/json": {
|
|
262
|
+
"schema": {
|
|
263
|
+
"$ref": "#/components/schemas/OrganisationResponseBody"
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"400": {
|
|
269
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
270
|
+
},
|
|
271
|
+
"401": {
|
|
272
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
273
|
+
},
|
|
274
|
+
"404": {
|
|
275
|
+
"$ref": "#/components/schemas/NotFoundError"
|
|
276
|
+
},
|
|
277
|
+
"500": {
|
|
278
|
+
"$ref": "#/components/schemas/InternalError"
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"/admin/organisation/get": {
|
|
284
|
+
"get": {
|
|
285
|
+
"summary": "Get an organisation",
|
|
286
|
+
"description": "Get an organisation",
|
|
287
|
+
"tags": [
|
|
288
|
+
"Organisation"
|
|
289
|
+
],
|
|
290
|
+
"responses": {
|
|
291
|
+
"200": {
|
|
292
|
+
"description": "A successful response",
|
|
293
|
+
"content": {
|
|
294
|
+
"application/json": {
|
|
295
|
+
"schema": {
|
|
296
|
+
"$ref": "#/components/schemas/OrganisationResponseBody"
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"400": {
|
|
302
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
303
|
+
},
|
|
304
|
+
"401": {
|
|
305
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
306
|
+
},
|
|
307
|
+
"404": {
|
|
308
|
+
"$ref": "#/components/schemas/NotFoundError"
|
|
309
|
+
},
|
|
310
|
+
"500": {
|
|
311
|
+
"$ref": "#/components/schemas/InternalError"
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"/admin/price/list": {
|
|
317
|
+
"get": {
|
|
318
|
+
"summary": "Get a list of prices",
|
|
319
|
+
"description": "Get a list of prices",
|
|
320
|
+
"tags": [
|
|
321
|
+
"Price"
|
|
322
|
+
],
|
|
323
|
+
"parameters": [
|
|
324
|
+
{
|
|
325
|
+
"in": "query",
|
|
326
|
+
"name": "productId",
|
|
327
|
+
"schema": {
|
|
328
|
+
"type": "string",
|
|
329
|
+
"description": "The product id. If passed - returns filtered by this product list of prices.",
|
|
330
|
+
"required": false
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"responses": {
|
|
335
|
+
"200": {
|
|
336
|
+
"description": "A list of prices",
|
|
337
|
+
"content": {
|
|
338
|
+
"application/json": {
|
|
339
|
+
"schema": {
|
|
340
|
+
"$ref": "#/components/schemas/PriceListResponseBody"
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
},
|
|
345
|
+
"400": {
|
|
346
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
347
|
+
},
|
|
348
|
+
"401": {
|
|
349
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
350
|
+
},
|
|
351
|
+
"404": {
|
|
352
|
+
"$ref": "#/components/schemas/NotFoundError"
|
|
353
|
+
},
|
|
354
|
+
"500": {
|
|
355
|
+
"$ref": "#/components/schemas/InternalError"
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
"/admin/product/list": {
|
|
361
|
+
"get": {
|
|
362
|
+
"summary": "Get a list of products",
|
|
363
|
+
"description": "Get a list of products which are on a Stripe side",
|
|
364
|
+
"tags": [
|
|
365
|
+
"Product"
|
|
366
|
+
],
|
|
367
|
+
"parameters": [
|
|
368
|
+
{
|
|
369
|
+
"in": "query",
|
|
370
|
+
"name": "prices",
|
|
371
|
+
"schema": {
|
|
372
|
+
"type": "boolean",
|
|
373
|
+
"description": "If setup to true - returns the list of products with prices inside. Default - true",
|
|
374
|
+
"required": false
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"in": "query",
|
|
379
|
+
"name": "limit",
|
|
380
|
+
"schema": {
|
|
381
|
+
"type": "integer",
|
|
382
|
+
"minimum": 1,
|
|
383
|
+
"maximum": 100,
|
|
384
|
+
"description": "Restrict the response to only include items from 1 to 100. Default - 10",
|
|
385
|
+
"required": false
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
"in": "query",
|
|
390
|
+
"name": "cursor",
|
|
391
|
+
"schema": {
|
|
392
|
+
"type": "string",
|
|
393
|
+
"description": "Cursor for pagination, this only goes forward, i.e., Stripe's equivalent of 'starting_after'",
|
|
394
|
+
"required": false
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
],
|
|
398
|
+
"responses": {
|
|
399
|
+
"200": {
|
|
400
|
+
"description": "A list of products",
|
|
401
|
+
"content": {
|
|
402
|
+
"application/json": {
|
|
403
|
+
"schema": {
|
|
404
|
+
"$ref": "#/components/schemas/ProductListResponseBody"
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
"400": {
|
|
410
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
411
|
+
},
|
|
412
|
+
"401": {
|
|
413
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
414
|
+
},
|
|
415
|
+
"404": {
|
|
416
|
+
"$ref": "#/components/schemas/NotFoundError"
|
|
417
|
+
},
|
|
418
|
+
"500": {
|
|
419
|
+
"$ref": "#/components/schemas/InternalError"
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"/admin/product/get/{productId}": {
|
|
425
|
+
"get": {
|
|
426
|
+
"summary": "Get a product",
|
|
427
|
+
"description": "Get a product by id",
|
|
428
|
+
"tags": [
|
|
429
|
+
"Product"
|
|
430
|
+
],
|
|
431
|
+
"parameters": [
|
|
432
|
+
{
|
|
433
|
+
"in": "path",
|
|
434
|
+
"name": "productId",
|
|
435
|
+
"schema": {
|
|
436
|
+
"type": "string",
|
|
437
|
+
"description": "The product id which identifies the product in Stripe"
|
|
438
|
+
},
|
|
439
|
+
"required": true
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"in": "query",
|
|
443
|
+
"name": "prices",
|
|
444
|
+
"schema": {
|
|
445
|
+
"type": "boolean",
|
|
446
|
+
"description": "If setup to true - returns the product with prices inside. Default - true",
|
|
447
|
+
"required": false
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
],
|
|
451
|
+
"responses": {
|
|
452
|
+
"200": {
|
|
453
|
+
"description": "A product",
|
|
454
|
+
"content": {
|
|
455
|
+
"application/json": {
|
|
456
|
+
"schema": {
|
|
457
|
+
"$ref": "#/components/schemas/ProductGetResponseBody"
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
"400": {
|
|
463
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
464
|
+
},
|
|
465
|
+
"401": {
|
|
466
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
467
|
+
},
|
|
468
|
+
"404": {
|
|
469
|
+
"$ref": "#/components/schemas/NotFoundError"
|
|
470
|
+
},
|
|
471
|
+
"500": {
|
|
472
|
+
"$ref": "#/components/schemas/InternalError"
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"/admin/subscription/create": {
|
|
478
|
+
"post": {
|
|
479
|
+
"summary": "Create a subscription",
|
|
480
|
+
"description": "Creates a new subscription for an existing customer",
|
|
481
|
+
"tags": [
|
|
482
|
+
"Subscription"
|
|
483
|
+
],
|
|
484
|
+
"requestBody": {
|
|
485
|
+
"content": {
|
|
486
|
+
"application/json": {
|
|
487
|
+
"schema": {
|
|
488
|
+
"$ref": "#/components/schemas/SubscriptionCreateRequestBody"
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
"responses": {
|
|
494
|
+
"201": {
|
|
495
|
+
"description": "The request was successful.",
|
|
496
|
+
"content": {
|
|
497
|
+
"application/json": {
|
|
498
|
+
"schema": {
|
|
499
|
+
"$ref": "#/components/schemas/SubscriptionCreateResponseBody"
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
"400": {
|
|
505
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
506
|
+
},
|
|
507
|
+
"401": {
|
|
508
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
509
|
+
},
|
|
510
|
+
"500": {
|
|
511
|
+
"$ref": "#/components/schemas/InternalError"
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
"/admin/subscription/update": {
|
|
517
|
+
"post": {
|
|
518
|
+
"summary": "Update a subscription",
|
|
519
|
+
"description": "Updates an existing subscription",
|
|
520
|
+
"tags": [
|
|
521
|
+
"Subscription"
|
|
522
|
+
],
|
|
523
|
+
"requestBody": {
|
|
524
|
+
"content": {
|
|
525
|
+
"application/json": {
|
|
526
|
+
"schema": {
|
|
527
|
+
"$ref": "#/components/schemas/SubscriptionUpdateRequestBody"
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
"responses": {
|
|
533
|
+
"200": {
|
|
534
|
+
"description": "The request was successful.",
|
|
535
|
+
"content": {
|
|
536
|
+
"application/json": {
|
|
537
|
+
"schema": {
|
|
538
|
+
"$ref": "#/components/schemas/SubscriptionUpdateResponseBody"
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"400": {
|
|
544
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
545
|
+
},
|
|
546
|
+
"401": {
|
|
547
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
548
|
+
},
|
|
549
|
+
"500": {
|
|
550
|
+
"$ref": "#/components/schemas/InternalError"
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
"/admin/subscription/list": {
|
|
556
|
+
"get": {
|
|
557
|
+
"summary": "Get a list of subscriptions",
|
|
558
|
+
"description": "Get a list of subscriptions",
|
|
559
|
+
"tags": [
|
|
560
|
+
"Subscription"
|
|
561
|
+
],
|
|
562
|
+
"parameters": [
|
|
563
|
+
{
|
|
564
|
+
"in": "query",
|
|
565
|
+
"name": "paymentProviderId",
|
|
566
|
+
"schema": {
|
|
567
|
+
"type": "string",
|
|
568
|
+
"description": "The customer id. If passed - returns filtered by this customer list of subscriptions."
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
],
|
|
572
|
+
"responses": {
|
|
573
|
+
"200": {
|
|
574
|
+
"description": "A list of subscriptions",
|
|
575
|
+
"content": {
|
|
576
|
+
"application/json": {
|
|
577
|
+
"schema": {
|
|
578
|
+
"$ref": "#/components/schemas/SubscriptionListResponseBody"
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
"400": {
|
|
584
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
585
|
+
},
|
|
586
|
+
"401": {
|
|
587
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
588
|
+
},
|
|
589
|
+
"404": {
|
|
590
|
+
"$ref": "#/components/schemas/NotFoundError"
|
|
591
|
+
},
|
|
592
|
+
"500": {
|
|
593
|
+
"$ref": "#/components/schemas/InternalError"
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
"/admin/subscription/get": {
|
|
599
|
+
"get": {
|
|
600
|
+
"summary": "Get a subscription",
|
|
601
|
+
"description": "Get a subscription",
|
|
602
|
+
"tags": [
|
|
603
|
+
"Subscription"
|
|
604
|
+
],
|
|
605
|
+
"responses": {
|
|
606
|
+
"200": {
|
|
607
|
+
"description": "The request was successful.",
|
|
608
|
+
"content": {
|
|
609
|
+
"application/json": {
|
|
610
|
+
"schema": {
|
|
611
|
+
"$ref": "#/components/schemas/SubscriptionGetResponseBody"
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
"400": {
|
|
617
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
618
|
+
},
|
|
619
|
+
"401": {
|
|
620
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
621
|
+
},
|
|
622
|
+
"404": {
|
|
623
|
+
"$ref": "#/components/schemas/NotFoundError"
|
|
624
|
+
},
|
|
625
|
+
"500": {
|
|
626
|
+
"$ref": "#/components/schemas/InternalError"
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
},
|
|
631
|
+
"/admin/subscription/cancel": {
|
|
632
|
+
"post": {
|
|
633
|
+
"summary": "Cancel a subscription",
|
|
634
|
+
"description": "Cancels an existing subscription",
|
|
635
|
+
"tags": [
|
|
636
|
+
"Subscription"
|
|
637
|
+
],
|
|
638
|
+
"requestBody": {
|
|
639
|
+
"content": {
|
|
640
|
+
"application/json": {
|
|
641
|
+
"schema": {
|
|
642
|
+
"$ref": "#/components/schemas/SubscriptionCancelRequestBody"
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
},
|
|
647
|
+
"responses": {
|
|
648
|
+
"200": {
|
|
649
|
+
"description": "The request was successful.",
|
|
650
|
+
"content": {
|
|
651
|
+
"application/json": {
|
|
652
|
+
"schema": {
|
|
653
|
+
"$ref": "#/components/schemas/SubscriptionCancelResponseBody"
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
"400": {
|
|
659
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
660
|
+
},
|
|
661
|
+
"401": {
|
|
662
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
663
|
+
},
|
|
664
|
+
"404": {
|
|
665
|
+
"$ref": "#/components/schemas/NotFoundError"
|
|
666
|
+
},
|
|
667
|
+
"500": {
|
|
668
|
+
"$ref": "#/components/schemas/InternalError"
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
},
|
|
673
|
+
"/admin/subscription/resume": {},
|
|
674
|
+
"post": {
|
|
675
|
+
"summary": "Resume a subscription",
|
|
676
|
+
"description": "Resumes an existing subscription",
|
|
677
|
+
"tags": [
|
|
678
|
+
"Subscription"
|
|
679
|
+
],
|
|
680
|
+
"requestBody": {
|
|
681
|
+
"content": {
|
|
682
|
+
"application/json": {
|
|
683
|
+
"schema": {
|
|
684
|
+
"$ref": "#/components/schemas/SubscriptionResumeRequestBody"
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
"responses": {
|
|
690
|
+
"200": {
|
|
691
|
+
"description": "The request was successful.",
|
|
692
|
+
"content": {
|
|
693
|
+
"application/json": {
|
|
694
|
+
"schema": {
|
|
695
|
+
"$ref": "#/components/schemas/SubscriptionResumeResponseBody"
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
"400": {
|
|
701
|
+
"$ref": "#/components/schemas/InvalidRequest"
|
|
702
|
+
},
|
|
703
|
+
"401": {
|
|
704
|
+
"$ref": "#/components/schemas/UnauthorizedError"
|
|
705
|
+
},
|
|
706
|
+
"404": {
|
|
707
|
+
"$ref": "#/components/schemas/NotFoundError"
|
|
708
|
+
},
|
|
709
|
+
"500": {
|
|
710
|
+
"$ref": "#/components/schemas/InternalError"
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
},
|
|
715
|
+
"components": {
|
|
716
|
+
"schemas": {
|
|
717
|
+
"PriceListResponseBody": {
|
|
718
|
+
"description": "A list of active prcies from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/prices/list)",
|
|
719
|
+
"type": "object",
|
|
720
|
+
"properties": {
|
|
721
|
+
"prices": {
|
|
722
|
+
"type": "array",
|
|
723
|
+
"items": {
|
|
724
|
+
"type": "object",
|
|
725
|
+
"description": "A price object from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/prices/object)"
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
"ProductListResponseBody": {
|
|
731
|
+
"type": "object",
|
|
732
|
+
"properties": {
|
|
733
|
+
"products": {
|
|
734
|
+
"type": "array",
|
|
735
|
+
"items": {
|
|
736
|
+
"type": "object",
|
|
737
|
+
"description": "A product object from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/products/object)"
|
|
738
|
+
}
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
},
|
|
742
|
+
"ProductGetResponseBody": {
|
|
743
|
+
"description": "A product with or without prices inside. For more information see the [Stripe API documentation](https://docs.stripe.com/api/products/retrieve)",
|
|
744
|
+
"type": "object"
|
|
745
|
+
},
|
|
746
|
+
"InvalidRequest": {
|
|
747
|
+
"description": "A problem with the input fields has occurred. Additional state information plus metadata may be available in the response body.",
|
|
748
|
+
"type": "object",
|
|
749
|
+
"properties": {
|
|
750
|
+
"error": {
|
|
751
|
+
"type": "string",
|
|
752
|
+
"example": "InvalidRequest"
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
"InternalError": {
|
|
757
|
+
"description": "An internal error has occurred. Additional state information plus metadata may be available in the response body.",
|
|
758
|
+
"type": "object",
|
|
759
|
+
"properties": {
|
|
760
|
+
"error": {
|
|
761
|
+
"type": "string",
|
|
762
|
+
"example": "Internal Error"
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
},
|
|
766
|
+
"UnauthorizedError": {
|
|
767
|
+
"description": "Access token is missing or invalid",
|
|
768
|
+
"type": "object",
|
|
769
|
+
"properties": {
|
|
770
|
+
"error": {
|
|
771
|
+
"type": "string",
|
|
772
|
+
"example": "Unauthorized Error"
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
},
|
|
776
|
+
"SubscriptionCreateRequestBody": {
|
|
777
|
+
"description": "The request body for creating a subscription",
|
|
778
|
+
"type": "object",
|
|
779
|
+
"properties": {
|
|
780
|
+
"price": {
|
|
781
|
+
"type": "string",
|
|
782
|
+
"description": "The price id",
|
|
783
|
+
"example": "price_1234567890"
|
|
784
|
+
},
|
|
785
|
+
"successURL": {
|
|
786
|
+
"type": "string",
|
|
787
|
+
"description": "The URL to redirect to after the customer sucessfully completes the checkout",
|
|
788
|
+
"example": "https://example.com/success"
|
|
789
|
+
},
|
|
790
|
+
"cancelURL": {
|
|
791
|
+
"type": "string",
|
|
792
|
+
"description": "The URL to redirect to after the customer cancels the checkout",
|
|
793
|
+
"example": "https://example.com/cancel"
|
|
794
|
+
},
|
|
795
|
+
"quantity": {
|
|
796
|
+
"type": "number",
|
|
797
|
+
"description": "The quantity of the product",
|
|
798
|
+
"example": 1
|
|
799
|
+
},
|
|
800
|
+
"trialPeriodDays": {
|
|
801
|
+
"type": "number",
|
|
802
|
+
"description": "The number of days the customer has to pay for the product",
|
|
803
|
+
"example": 7
|
|
804
|
+
},
|
|
805
|
+
"idempotencyKey": {
|
|
806
|
+
"type": "string",
|
|
807
|
+
"description": "The idempotency key. It helps to prevent duplicate requests. In case if there was a request with the same idempotency key, the response will be the same as for the first request.",
|
|
808
|
+
"example": "abcdefghijklmnopqrstuvwxyz"
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
"SubscriptionCreateResponseBody": {
|
|
813
|
+
"description": "The response body for creating a subscription",
|
|
814
|
+
"type": "object",
|
|
815
|
+
"properties": {
|
|
816
|
+
"subscription": {
|
|
817
|
+
"type": "object",
|
|
818
|
+
"description": "An object with link to checkout session. For more information see the [Stripe API documentation](https://docs.stripe.com/api/checkout/sessions/object)",
|
|
819
|
+
"properties": {
|
|
820
|
+
"sessionURL": {
|
|
821
|
+
"type": "string",
|
|
822
|
+
"description": "URL which user should follow to manage subscription"
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
},
|
|
828
|
+
"SubscriptionUpdateRequestBody": {
|
|
829
|
+
"description": "The request body for updating a subscription",
|
|
830
|
+
"type": "object",
|
|
831
|
+
"properties": {
|
|
832
|
+
"returnURL": {
|
|
833
|
+
"type": "string",
|
|
834
|
+
"description": "URL which is used to redirect to the page with ability to update the subscription"
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
"SubscriptionUpdateResponseBody": {
|
|
839
|
+
"description": "The response body for updating a subscription",
|
|
840
|
+
"type": "object",
|
|
841
|
+
"properties": {
|
|
842
|
+
"subscription": {
|
|
843
|
+
"type": "object",
|
|
844
|
+
"description": "Object with redirect url inside",
|
|
845
|
+
"properties": {
|
|
846
|
+
"sessionURL": {
|
|
847
|
+
"type": "string",
|
|
848
|
+
"description": "URL with session URL rediect to"
|
|
849
|
+
}
|
|
850
|
+
}
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
"SubscriptionGetRequestBody": {
|
|
855
|
+
"description": "The request body for getting a subscription",
|
|
856
|
+
"type": "object",
|
|
857
|
+
"properties": {
|
|
858
|
+
"subscriptionId": {
|
|
859
|
+
"type": "string",
|
|
860
|
+
"description": "The subscription id",
|
|
861
|
+
"example": "sub_1234567890"
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
"SubscriptionGetResponseBody": {
|
|
866
|
+
"description": "The response body for getting a subscription",
|
|
867
|
+
"type": "object",
|
|
868
|
+
"properties": {
|
|
869
|
+
"subscription": {
|
|
870
|
+
"type": "object",
|
|
871
|
+
"description": "A subscription object from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/subscriptions/object)"
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
},
|
|
875
|
+
"SubscriptionListRequestBody": {
|
|
876
|
+
"description": "The request body for listing subscriptions",
|
|
877
|
+
"type": "object",
|
|
878
|
+
"properties": {
|
|
879
|
+
"customerId": {
|
|
880
|
+
"type": "string",
|
|
881
|
+
"description": "The Stripe customer id",
|
|
882
|
+
"example": "cus_1234567890"
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
"SubscriptionListResponseBody": {
|
|
887
|
+
"description": "The response body for listing subscriptions",
|
|
888
|
+
"type": "object",
|
|
889
|
+
"properties": {
|
|
890
|
+
"subscriptions": {
|
|
891
|
+
"type": "array",
|
|
892
|
+
"items": {
|
|
893
|
+
"type": "object",
|
|
894
|
+
"description": "A subscription object from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/subscriptions/object]"
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
},
|
|
899
|
+
"SubscriptionCancelRequestBody": {
|
|
900
|
+
"description": "The request body for canceling a subscription",
|
|
901
|
+
"type": "object",
|
|
902
|
+
"properties": {
|
|
903
|
+
"subscriptionId": {
|
|
904
|
+
"type": "string",
|
|
905
|
+
"description": "The subscription id",
|
|
906
|
+
"example": "sub_1234567890"
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
"SubscriptionCancelResponseBody": {
|
|
911
|
+
"description": "The response body for canceling a subscription",
|
|
912
|
+
"type": "object",
|
|
913
|
+
"properties": {
|
|
914
|
+
"subscription": {
|
|
915
|
+
"type": "object",
|
|
916
|
+
"description": "A subscription object from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/subscriptions/object]"
|
|
917
|
+
},
|
|
918
|
+
"idempotencyKey": {
|
|
919
|
+
"type": "string",
|
|
920
|
+
"description": "The idempotency key. It helps to prevent duplicate requests. In case if there was a request with the same idempotency key, the response will be the same as for the first request.",
|
|
921
|
+
"example": "abcdefghijklmnopqrstuvwxyz"
|
|
922
|
+
}
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
"SubscriptionResumeRequestBody": {
|
|
926
|
+
"description": "The request body for resuming a subscription",
|
|
927
|
+
"type": "object",
|
|
928
|
+
"properties": {
|
|
929
|
+
"subscriptionId": {
|
|
930
|
+
"type": "string",
|
|
931
|
+
"description": "The subscription id",
|
|
932
|
+
"example": "sub_1234567890"
|
|
933
|
+
},
|
|
934
|
+
"idempotencyKey": {
|
|
935
|
+
"type": "string",
|
|
936
|
+
"description": "The idempotency key. It helps to prevent duplicate requests. In case if there was a request with the same idempotency key, the response will be the same as for the first request.",
|
|
937
|
+
"example": "abcdefghijklmnopqrstuvwxyz"
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
"SubscriptionResumeResponseBody": {
|
|
942
|
+
"description": "The response body for resuming a subscription",
|
|
943
|
+
"type": "object",
|
|
944
|
+
"properties": {
|
|
945
|
+
"subscription": {
|
|
946
|
+
"type": "object",
|
|
947
|
+
"description": "A subscription object from Stripe. For more information see the [Stripe API documentation](https://docs.stripe.com/api/subscriptions/object]"
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"APIKeyResponse": {
|
|
952
|
+
"description": "The general view for API key in response",
|
|
953
|
+
"type": "object",
|
|
954
|
+
"properties": {
|
|
955
|
+
"apiKey": {
|
|
956
|
+
"type": "string",
|
|
957
|
+
"description": "The API key",
|
|
958
|
+
"example": "abcdefghijklmnopqrstuvwxyz"
|
|
959
|
+
},
|
|
960
|
+
"createdAt": {
|
|
961
|
+
"type": "string",
|
|
962
|
+
"description": "The creation date of the API key",
|
|
963
|
+
"example": "2000-10-31T01:23:45Z",
|
|
964
|
+
"format": "date-time"
|
|
965
|
+
},
|
|
966
|
+
"name": {
|
|
967
|
+
"type": "string",
|
|
968
|
+
"description": "The name of the API key",
|
|
969
|
+
"example": "My API Key"
|
|
970
|
+
},
|
|
971
|
+
"expiresAt": {
|
|
972
|
+
"type": "string",
|
|
973
|
+
"description": "The expiration date of the API key",
|
|
974
|
+
"example": "2000-10-31T01:23:45Z",
|
|
975
|
+
"format": "date-time"
|
|
976
|
+
},
|
|
977
|
+
"revoked": {
|
|
978
|
+
"type": "boolean",
|
|
979
|
+
"description": "The status of the API key",
|
|
980
|
+
"example": false
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
"APIKeyCreateRequestBody": {
|
|
985
|
+
"description": "The request body for creating an API key",
|
|
986
|
+
"type": "object",
|
|
987
|
+
"properties": {
|
|
988
|
+
"expiresAt": {
|
|
989
|
+
"type": "string",
|
|
990
|
+
"description": "The expiration date of the API key",
|
|
991
|
+
"example": "2000-10-31T01:23:45Z",
|
|
992
|
+
"format": "date-time"
|
|
993
|
+
},
|
|
994
|
+
"name": {
|
|
995
|
+
"type": "string",
|
|
996
|
+
"description": "The name of the API key",
|
|
997
|
+
"example": "My API Key"
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
"required": [
|
|
1001
|
+
"name"
|
|
1002
|
+
]
|
|
1003
|
+
},
|
|
1004
|
+
"APIKeyCreateResponseBody": {
|
|
1005
|
+
"description": "The response body for creating an API key",
|
|
1006
|
+
"type": "object",
|
|
1007
|
+
"schema": {
|
|
1008
|
+
"ref": "#/components/schemas/APIKeyResponse"
|
|
1009
|
+
}
|
|
1010
|
+
},
|
|
1011
|
+
"APIKeyCreateUnsuccessfulResponseBody": {
|
|
1012
|
+
"description": "The response body for an unsuccessful API key creation",
|
|
1013
|
+
"type": "object",
|
|
1014
|
+
"properties": {
|
|
1015
|
+
"error": {
|
|
1016
|
+
"type": "string",
|
|
1017
|
+
"example": "API key creation unsuccessful"
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
"APIKeyUpdateRequestBody": {
|
|
1022
|
+
"description": "The request body for updating an API key",
|
|
1023
|
+
"type": "object",
|
|
1024
|
+
"properties": {
|
|
1025
|
+
"apiKey": {
|
|
1026
|
+
"type": "string",
|
|
1027
|
+
"description": "The API key",
|
|
1028
|
+
"example": "abcdefghijklmnopqrstuvwxyz"
|
|
1029
|
+
},
|
|
1030
|
+
"name": {
|
|
1031
|
+
"type": "string",
|
|
1032
|
+
"description": "The name of the API key",
|
|
1033
|
+
"example": "My API Key"
|
|
1034
|
+
},
|
|
1035
|
+
"expiresAt": {
|
|
1036
|
+
"type": "string",
|
|
1037
|
+
"description": "The expiration date of the API key",
|
|
1038
|
+
"example": "2000-10-31T01:23:45Z",
|
|
1039
|
+
"format": "date-time"
|
|
1040
|
+
},
|
|
1041
|
+
"revoked": {
|
|
1042
|
+
"type": "boolean",
|
|
1043
|
+
"description": "The status of the API key",
|
|
1044
|
+
"example": false,
|
|
1045
|
+
"default": false
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
"required": [
|
|
1049
|
+
"apiKey"
|
|
1050
|
+
]
|
|
1051
|
+
},
|
|
1052
|
+
"APIKeyUpdateResponseBody": {
|
|
1053
|
+
"description": "The response body for an unsuccessful API key update",
|
|
1054
|
+
"type": "object",
|
|
1055
|
+
"schema": {
|
|
1056
|
+
"ref": "#/components/schemas/APIKeyResponse"
|
|
1057
|
+
}
|
|
1058
|
+
},
|
|
1059
|
+
"APIKeyUpdateUnsuccessfulResponseBody": {
|
|
1060
|
+
"description": "The response body for an unsuccessful API key update",
|
|
1061
|
+
"type": "object",
|
|
1062
|
+
"properties": {
|
|
1063
|
+
"error": {
|
|
1064
|
+
"type": "string",
|
|
1065
|
+
"example": "API key update unsuccessful"
|
|
1066
|
+
}
|
|
1067
|
+
}
|
|
1068
|
+
},
|
|
1069
|
+
"APIKeyRevokeRequestBody": {
|
|
1070
|
+
"description": "The request body for revoking an API key",
|
|
1071
|
+
"type": "object",
|
|
1072
|
+
"properties": {
|
|
1073
|
+
"apiKey": {
|
|
1074
|
+
"type": "string",
|
|
1075
|
+
"description": "The API key",
|
|
1076
|
+
"example": "abcdefghijklmnopqrstuvwxyz"
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
"required": [
|
|
1080
|
+
"apiKey"
|
|
1081
|
+
]
|
|
1082
|
+
},
|
|
1083
|
+
"APIKeyRevokeResponseBody": {
|
|
1084
|
+
"description": "The response body for revoking an API key",
|
|
1085
|
+
"type": "object",
|
|
1086
|
+
"properties": {
|
|
1087
|
+
"apiKey": {
|
|
1088
|
+
"type": "string",
|
|
1089
|
+
"description": "The API key",
|
|
1090
|
+
"example": "abcdefghijklmnopqrstuvwxyz"
|
|
1091
|
+
},
|
|
1092
|
+
"revoked": {
|
|
1093
|
+
"type": "boolean",
|
|
1094
|
+
"description": "The status of the API key",
|
|
1095
|
+
"example": true
|
|
1096
|
+
}
|
|
1097
|
+
},
|
|
1098
|
+
"required": [
|
|
1099
|
+
"apiKey"
|
|
1100
|
+
]
|
|
1101
|
+
},
|
|
1102
|
+
"APIKeyRevokeUnsuccessfulResponseBody": {
|
|
1103
|
+
"description": "The response body for an unsuccessful API key revocation",
|
|
1104
|
+
"type": "object",
|
|
1105
|
+
"properties": {
|
|
1106
|
+
"error": {
|
|
1107
|
+
"type": "string",
|
|
1108
|
+
"example": "API key revocation unsuccessful"
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
},
|
|
1112
|
+
"APIKeyListResponseBody": {
|
|
1113
|
+
"description": "The response body for listing API keys",
|
|
1114
|
+
"type": "object",
|
|
1115
|
+
"properties": {
|
|
1116
|
+
"apiKeys": {
|
|
1117
|
+
"type": "array",
|
|
1118
|
+
"items": {
|
|
1119
|
+
"type": "object",
|
|
1120
|
+
"schema": {
|
|
1121
|
+
"ref": "#/components/schemas/APIKeyResponse"
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
},
|
|
1127
|
+
"APIKeyGetRequestBody": {
|
|
1128
|
+
"description": "The request body for getting an API key",
|
|
1129
|
+
"type": "object",
|
|
1130
|
+
"properties": {
|
|
1131
|
+
"apiKey": {
|
|
1132
|
+
"type": "string",
|
|
1133
|
+
"description": "The API key",
|
|
1134
|
+
"example": "abcdefghijklmnopqrstuvwxyz"
|
|
1135
|
+
}
|
|
1136
|
+
},
|
|
1137
|
+
"required": [
|
|
1138
|
+
"apiKey"
|
|
1139
|
+
]
|
|
1140
|
+
},
|
|
1141
|
+
"APIKeyGetResponseBody": {
|
|
1142
|
+
"description": "The response body for getting an API key",
|
|
1143
|
+
"type": "object",
|
|
1144
|
+
"schema": {
|
|
1145
|
+
"ref": "#/components/schemas/APIKeyResponse"
|
|
1146
|
+
}
|
|
1147
|
+
},
|
|
1148
|
+
"OrganisationResponseBody": {
|
|
1149
|
+
"description": "The response body for an organisation",
|
|
1150
|
+
"type": "object",
|
|
1151
|
+
"properties": {
|
|
1152
|
+
"name": {
|
|
1153
|
+
"type": "string",
|
|
1154
|
+
"description": "The name of the organisation",
|
|
1155
|
+
"example": "Cheqd"
|
|
1156
|
+
},
|
|
1157
|
+
"email": {
|
|
1158
|
+
"type": "string",
|
|
1159
|
+
"description": "The email of the organisation",
|
|
1160
|
+
"example": "cheqd@example.com",
|
|
1161
|
+
"format": "email",
|
|
1162
|
+
"nullable": true,
|
|
1163
|
+
"default": null
|
|
1164
|
+
},
|
|
1165
|
+
"description": {
|
|
1166
|
+
"type": "string",
|
|
1167
|
+
"description": "The description of the organisation",
|
|
1168
|
+
"example": "Cheqd organisation",
|
|
1169
|
+
"nullable": true,
|
|
1170
|
+
"default": null
|
|
1171
|
+
},
|
|
1172
|
+
"cosmosAddress": {
|
|
1173
|
+
"type": "string",
|
|
1174
|
+
"description": "The cosmos address of the organisation",
|
|
1175
|
+
"example": "cheqd1hwzvac94udsk8x4mf6htt544lev4jltkwgxp7u"
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
},
|
|
1179
|
+
"NotFoundError": {
|
|
1180
|
+
"description": "The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.",
|
|
1181
|
+
"type": "object",
|
|
1182
|
+
"properties": {
|
|
1183
|
+
"error": {
|
|
1184
|
+
"type": "string",
|
|
1185
|
+
"example": "Not Found Error"
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
}
|
|
1191
|
+
}
|