@cybrid/cybrid-api-id-angular 0.121.48 → 0.121.51
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2 -2
- package/esm2020/api/bankApplications.service.mjs +2 -2
- package/esm2020/api/customerTokens.service.mjs +2 -2
- package/esm2020/api/organizationApplications.service.mjs +2 -2
- package/esm2020/api/users.service.mjs +2 -2
- package/esm2020/model/application.mjs +2 -2
- package/esm2020/model/applicationList.mjs +1 -1
- package/esm2020/model/applicationWithSecret.mjs +1 -1
- package/esm2020/model/applicationWithSecretAllOf.mjs +2 -2
- package/esm2020/model/customerToken.mjs +2 -2
- package/esm2020/model/errorResponse.mjs +2 -2
- package/esm2020/model/postBankApplication.mjs +2 -2
- package/esm2020/model/postCustomerToken.mjs +2 -2
- package/esm2020/model/postOrganizationApplication.mjs +2 -2
- package/esm2020/model/postUser.mjs +2 -2
- package/esm2020/model/user.mjs +2 -2
- package/esm2020/model/userList.mjs +1 -1
- package/fesm2015/cybrid-cybrid-api-id-angular.mjs +6 -6
- package/fesm2015/cybrid-cybrid-api-id-angular.mjs.map +1 -1
- package/fesm2020/cybrid-cybrid-api-id-angular.mjs +13 -13
- package/fesm2020/cybrid-cybrid-api-id-angular.mjs.map +1 -1
- package/model/application.d.ts +1 -1
- package/model/applicationList.d.ts +1 -1
- package/model/applicationWithSecretAllOf.d.ts +1 -1
- package/model/customerToken.d.ts +1 -1
- package/model/errorResponse.d.ts +1 -1
- package/model/postBankApplication.d.ts +1 -1
- package/model/postCustomerToken.d.ts +1 -1
- package/model/postOrganizationApplication.d.ts +1 -1
- package/model/postUser.d.ts +1 -1
- package/model/user.d.ts +1 -1
- package/model/userList.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -146,7 +146,7 @@ An `Organization` can have multiple `banks`, in either `Sandbox` or `Production`
|
|
146
146
|
`Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
|
147
147
|
|
148
148
|
|
149
|
-
## @cybrid/cybrid-api-id-angular@0.121.
|
149
|
+
## @cybrid/cybrid-api-id-angular@0.121.51
|
150
150
|
|
151
151
|
### Building
|
152
152
|
|
@@ -167,7 +167,7 @@ Navigate to the folder of your consuming project and run one of next commands.
|
|
167
167
|
_published:_
|
168
168
|
|
169
169
|
```
|
170
|
-
npm install @cybrid/cybrid-api-id-angular@0.121.
|
170
|
+
npm install @cybrid/cybrid-api-id-angular@0.121.51 --save
|
171
171
|
```
|
172
172
|
|
173
173
|
_without publishing (not recommended):_
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* Cybrid Identity API
|
3
3
|
* # Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you\'ll find details on how our REST API operates and generally how our platform functions. If you\'re looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid\'s public interactive API documentation, which allows you to fully test our APIs. If you\'d like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.production.cybrid.app/api/schema/v1/swagger.yaml) for import. If you\'re new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Introduction](https://docs.cybrid.xyz/docs/introduction) 2. [Platform Introduction](https://docs.cybrid.xyz/docs/how-is-cybrid-architected) 3. [Testing with Hosted Web Demo App](https://docs.cybrid.xyz/docs/testing-with-hosted-web-demo-app) In [Getting Started in the Cybrid Sandbox](https://docs.cybrid.xyz/docs/how-do-i-get-started-with-the-sandbox), we walk you through how to use the [Cybrid Sandbox](https://id.sandbox.cybrid.app/) to create a test bank and generate API keys. In [Getting Ready for Trading](https://kb.cybrid.xyz/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you\'ll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.production.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.production.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.production.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.production.cybrid.app/oauth/token -d \'{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write bank_applications:execute accounts:read accounts:execute counterparties:read counterparties:write counterparties:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read external_bank_accounts:read external_bank_accounts:write external_bank_accounts:execute external_wallets:read external_wallets:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute deposit_bank_accounts:read deposit_bank_accounts:execute invoices:read invoices:write invoices:execute identity_verifications:read identity_verifications:write identity_verifications:execute\" }\' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to \'organizations:read organizations:write organization_applications:execute banks:read banks:write banks:execute bank_applications:execute users:read users:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts:read external_wallets:read workflows:read deposit_addresses:read deposit_bank_accounts:read invoices:read subscriptions:read subscriptions:write subscriptions:execute subscription_events:read subscription_events:execute identity_verifications:read\' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you\'d like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |-----------------------|------------------------------------------------------------|-----------------------------------------------|--------------------------------------------------| | Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Counterparty | counterparties:read (Organization, Bank, Customer) | counterparties:write (Bank, Customer) | counterparties:execute (Bank) | | Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) | | External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | External Wallet | external_wallet:read (Organization, Bank, Customer) | | external_wallet:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | User | users:read (Organization) | | users:execute (Organization) | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Organization, Bank, Customer) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Organization, Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Organization, Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | | Invoice | invoices:read (Organization, Bank, Customer) | invoices:write (Bank, Customer) | invoices:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.production.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.production.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.production.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Identity | Organization | /api/organization_applications | Create and list organizations | | Identity | Organization | /api/users | Create and list organization users | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | Customer | /api/customers | Create and list customers | | Bank | Counterparty | /api/counterparties | Create and list counterparties | | Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses | | Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | ExternalWallet | /api/external_wallets | Create, get, list and delete external wallets, which connect customer wallets to the platform | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Invoice | /api/invoices | Create, get, cancel and list invoices | | Bank | PaymentInstruction | /api/payment_instructions | Create, get and list payment instructions for invoices | | Bank | Price | /api/prices | Get the current prices for assets on the platform | | Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) | | Bank | Workflow | /api/workflows | Create, get and list workflows | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` typically does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC\'d) in our system before they can play any part on the platform, which means they must have an associated and a passing `Identity Verification`. See the Identity Verifications section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
|
4
4
|
*
|
5
|
-
* The version of the OpenAPI document: v0.121.
|
5
|
+
* The version of the OpenAPI document: v0.121.51
|
6
6
|
* Contact: support@cybrid.app
|
7
7
|
*
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
@@ -261,4 +261,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
261
261
|
}] }, { type: i2.Configuration, decorators: [{
|
262
262
|
type: Optional
|
263
263
|
}] }]; } });
|
264
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFua0FwcGxpY2F0aW9ucy5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vYXBpL2JhbmtBcHBsaWNhdGlvbnMuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7OztHQVVHO0FBQ0gsdURBQXVEO0FBRXZELE9BQU8sRUFBRSxNQUFNLEVBQUUsVUFBVSxFQUFFLFFBQVEsRUFBRSxNQUEyQixlQUFlLENBQUM7QUFDbEYsT0FBTyxFQUFjLFdBQVcsRUFBRSxVQUFVLEVBQ1UsV0FBVyxFQUN4RCxNQUFZLHNCQUFzQixDQUFDO0FBQzVDLE9BQU8sRUFBRSx3QkFBd0IsRUFBRSxNQUErQixZQUFZLENBQUM7QUFZL0UsYUFBYTtBQUNiLE9BQU8sRUFBRSxTQUFTLEVBQXNCLE1BQTBCLGNBQWMsQ0FBQztBQUNqRixPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQTBDLGtCQUFrQixDQUFDOzs7O0FBT3JGLE1BQU0sT0FBTyx1QkFBdUI7SUFPaEMsWUFBc0IsVUFBc0Is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HJlcXVpcmVkIHRvIGNyZWF0ZSBhIHJlc291cmNlLiAgfCBSZXNvdXJjZSAgICAgICAgICAgICAgfCBSZWFkIHNjb3BlIChUb2tlbiBUeXBlKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgV3JpdGUgc2NvcGUgKFRva2VuIFR5cGUpICAgICAgICAgICAgICAgICAgICAgIHwgRXhlY3V0ZSBzY29wZSAoVG9rZW4gVHlwZSkgICAgICAgICAgICAgICAgICAgICAgIHwgfC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tfC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLXwtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLXwtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLXwgfCBBY2NvdW50ICAgICAgICAgICAgICAgfCBhY2NvdW50czpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgYWNjb3VudHM6ZXhlY3V0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgICAgICAgICAgfCBiYW5rczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmspICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgYmFua3M6d3JpdGUgKE9yZ2FuaXphdGlvbiwgQmFuaykgICAgICAgICAgICAgIHwgYmFua3M6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uKSAgICAgICAgICAgICAgICAgICAgIHwgfCBDdXN0b21lciAgICAgICAgICAgICAgfCBjdXN0b21lcnM6cmVhZCAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgIC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3RvbWVyKSAgICAgICAgIHwgfCBPcmdhbml6YXRpb24gICAgICAgICAgfCBvcmdhbml6YXRpb25zOnJlYWQgKE9yZ2FuaXphdGlvbikgICAgICAgICAgICAgICAgICAgICAgICAgIHwgb3JnYW5pemF0aW9uczp3cml0ZSAoT3JnYW5pemF0aW9uKSAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBVc2VyICAgICAgICAgICAgICAgICAgfCB1c2VyczpyZWFkIChPcmdhbml6YXRpb24pICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgdXNlcnM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uKSAgICAgICAgICAgICAgICAgICAgIHwgfCBQcmljZSAgICAgICAgICAgICAgICAgfCBwcmljZXM6cmVhZCAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBRdW90ZSAgICAgICAgICAgICAgICAgfCBxdW90ZXM6cmVhZCAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgcXVvdGVzOmV4ZWN1dGUgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgIHwgfCBUcmFkZSAgICAgICAgICAgICAgICAgfCB0cmFkZXM6cmVhZCAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgdHJhZGVzOmV4Z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5jeWJyaWQuYXBwL2FwaS9zY2hlbWEvc3dhZ2dlci11aSkgQVBJIHNlcnZpY2VzIGFyZSBsaXN0ZWQgYmVsb3c6ICB8IEFQSSBTZXJ2aWNlICB8IE1vZGVsICAgICAgICAgICAgICAgIHwgQVBJIEVuZHBvaW50IFBhdGggICAgICAgICAgICAgIHwgRGVzY3JpcHRpb24gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwtLS0tLS0tLS0tLS0tLXwtLS0tLS0tLS0tLS0tLS0tLS0tLS0tfC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tfC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLXwgfCBJZGVudGl0eSAgICAgfCBCYW5rICAgICAgICAgICAgICAgICB8IC9hcGkvYmFua19hcHBsaWNhdGlvbnMgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBiYW5rcyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IElkZW50aXR5ICAgICB8IEN1c3RvbWVyVG9rZW4gICAgICAgIHwgL2FwaS9jdXN0b21lcl90b2tlbnMgICAgICAgICAgIHwgQ3JlYXRlIGN1c3RvbWVyIEpXVCBhY2Nlc3MgdG9rZW5zICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgSWRlbnRpdHkgICAgIHwgT3JnYW5pemF0aW9uICAgICAgICAgfCAvYXBpL29yZ2FuaXphdGlvbl9hcHBsaWNhdGlvbnMgfCBDcmVhdGUgYW5kIGxpc3Qgb3JnYW5pemF0aW9ucyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBJZGVudGl0eSAgICAgfCBPcmdhbml6YXRpb24gICAgICAgICB8IC9hcGkvdXNlcnMgICAgICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBvcmdhbml6YXRpb24gdXNlcnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IE9yZ2FuaXphdGlvbiB8IE9yZ2FuaXphdGlvbiAgICAgICAgIHwgL2FwaS9vcmdhbml6YXRpb25zICAgICAgICAgICAgIHwgQVBJcyB0byByZXRyaWV2ZSBhbmQgdXBkYXRlIG9yZ2FuaXphdGlvbiBuYW1lICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgQWNjb3VudCAgICAgICAgICAgICAgfCAvYXBpL2FjY291bnRzICAgICAgICAgICAgICAgICAgfCBDcmVhdGUgYW5kIGxpc3QgYWNjb3VudHMsIHdoaWNoIGhvbGQgYSBzcGVjaWZpYyBhc3NldCBmb3IgYSBjdXN0b21lcnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBBc3NldCAgICAgICAgICAgICAgICB8IC9hcGkvYXNzZXRzICAgICAgICAgICAgICAgICAgICB8IEdldCBhIGxpc3Qgb2YgYXNzZXRzIHN1cHBvcnRlZCBieSB0aGUgcGxhdGZvcm0gKGV4OiBCVEMsIEVUSCkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IEJhbmsgICAgICAgICAgICAgICAgIHwgL2FwaS9iYW5rcyAgICAgICAgICAgICAgICAgICAgIHwgQ3JlYXRlLCB1cGRhdGUgYW5kIGxpc3QgYmFua3MsIHRoZSBwYXJlbnQgdG8gY3VzdG9tZXJzLCBhY2NvdW50cywgZXRjICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgQ3VzdG9tZXIgICAgICAgICAgICAgfCAvYXBpL2N1c3RvbWVycyAgICAgICAgICAgICAgICAgfCBDcmVhdGUgYW5kIGxpc3QgY3VzdG9tZXJzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBDb3VudGVycGFydHkgICAgICAgICB8IC9hcGkvY291bnRlcnBhcnRpZXMgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBjb3VudGVycGFydGllcyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IERlcG9zaXRBZGRyZXNzICAgICAgIHwgL2FwaS9kZXBvc2l0X2FkZHJlc3NlcyAgICAgICAgIHwgQ3JlYXRlLCBnZXQgYW5kIGxpc3QgZGVwb3NpdCBhZGRyZXNzZXMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgRXh0ZXJuYWxCYW5rQWNjb3VudCAgfCAvYXBpL2V4dGVybmFsX2JhbmtfYWNjb3VudHMgICAgfCBDcmVhdGUsIGdldCBhbmQgbGlzdCBleHRlcm5hbCBiYW5rIGFjY291bnRzLCB3aGljaCBjb25uZWN0IGN1c3RvbWVyIGJhbmsgYWNjb3VudHMgdG8gdGhlIHBsYXRmb3JtIHwgfCBCYW5rICAgICAgICAgfCBFeHRlcm5hbFdhbGxldCAgICAgICB8IC9hcGkvZXh0ZXJuYWxfd2FsbGV0cyAgICAgICAgICB8IENyZWF0ZSwgZ2V0LCBsaXN0IGFuZCBkZWxldGUgZXh0ZXJuYWwgd2FsbGV0cywgd2hpY2ggY29ubmVjdCBjdXN0b21lciB3YWxsZXRzIHRvIHRoZSBwbGF0Zm9ybSAgICAgfCB8IEJhbmsgICAgICAgICB8IElkZW50aXR5VmVyaWZpY2F0aW9uIHwgL2FwaS9pZGVudGl0eV92ZXJpZmljYXRpb25zICAgIHwgQ3JlYXRlIGFuZCBsaXN0IGlkZW50aXR5IHZlcmlmaWNhdGlvbnMsIHdoaWNoIGFyZSBwZXJmb3JtZWQgb24gY3VzdG9tZXJzIGZvciBLWUMgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgSW52b2ljZSAgICAgICAgICAgICAgfCAvYXBpL2ludm9pY2VzICAgICAgICAgICAgICAgICAgfCBDcmVhdGUsIGdldCwgY2FuY2VsIGFuZCBsaXN0IGludm9pY2VzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBQYXltZW50SW5zdHJ1Y3Rpb24gICB8IC9hcGkvcGF5bWVudF9pbnN0cnVjdGlvbnMgICAgICB8IENyZWF0ZSwgZ2V0IGFuZCBsaXN0IHBheW1lbnQgaW5zdHJ1Y3Rpb25zIGZvciBpbnZvaWNlcyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IFByaWNlICAgICAgICAgICAgICAgIHwgL2FwaS9wcmljZXMgICAgICAgICAgICAgICAgICAgIHwgR2V0IHRoZSBjdXJyZW50IHByaWNlcyBmb3IgYXNzZXRzIG9uIHRoZSBwbGF0Zm9ybSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgUXVvdGUgICAgICAgICAgICAgICAgfCAvYXBpL3F1b3RlcyAgICAgICAgICAgICAgICAgICAgfCBDcmVhdGUgYW5kIGxpc3QgcXVvdGVzLCB3aGljaCBhcmUgcmVxdWlyZWQgdG8gZXhlY3V0ZSB0cmFkZXMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBTeW1ib2wgICAgICAgICAgICAgICB8IC9hcGkvc3ltYm9scyAgICAgICAgICAgICAgICAgICB8IEdldCBhIGxpc3Qgb2Ygc3ltYm9scyBzdXBwb3J0ZWQgZm9yIHRyYWRlIChleDogQlRDLVVTRCkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IFRyYWRlICAgICAgICAgICAgICAgIHwgL2FwaS90cmFkZXMgICAgICAgICAgICAgICAgICAgIHwgQ3JlYXRlIGFuZCBsaXN0IHRyYWRlcywgd2hpY2ggYnV5IG9yIHNlbGwgY3J5cHRvY3VycmVuY3kgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgVHJhbnNmZXIgICAgICAgICAgICAgfCAvYXBpL3RyYW5zZmVycyAgICAgICAgICAgICAgICAgfCBDcmVhdGUsIGdldCBhbmQgbGlzdCB0cmFuc2ZlcnMgKGUuZy4sIGZ1bmRpbmcsIGJvb2spICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBXb3JrZmxvdyAgICAgICAgICAgICB8IC9hcGkvd29ya2Zsb3dzICAgICAgICAgICAgICAgICB8IENyZWF0ZSwgZ2V0IGFuZCBsaXN0IHdvcmtmbG93cyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgIyMgVW5kZXJzdGFuZGluZyBPYmplY3QgTW9kZWxzICYgRW5kcG9pbnRzICAqKk9yZ2FuaXphdGlvbnMqKiAgQW4gYE9yZ2FuaXphdGlvbmAgaXMgbWVhbnQgdG8gcmVwcmVzZW50IHRoZSBvcmdhbml6YXRpb24gcGFydG5lcmluZ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5pc0pzb25NaW1lKGxvY2FsVmFySHR0cEhlYWRlckFjY2VwdFNlbGVjdGVkKSkge1xuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZV8gPSAnanNvbic7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZV8gPSAnYmxvYic7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpcy5odHRwQ2xpZW50LnBvc3Q8QXBwbGljYXRpb25XaXRoU2VjcmV0SWRwTW9kZWw+KGAke3RoaXMuY29uZmlndXJhdGlvbi5iYXNlUGF0aH0vYXBpL2JhbmtfYXBwbGljYXRpb25zYCxcbiAgICAgICAgICAgIHBvc3RCYW5rQXBwbGljYXRpb25JZHBNb2RlbCxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBjb250ZXh0OiBsb2NhbFZhckh0dHBDb250ZXh0LFxuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZTogPGFueT5yZXNwb25zZVR5cGVfLFxuICAgICAgICAgICAgICAgIHdpdGhDcmVkZW50aWFsczogdGhpcy5jb25maWd1cmF0aW9uLndpdGhDcmVkZW50aWFscyxcbiAgICAgICAgICAgICAgICBoZWFkZXJzOiBsb2NhbFZhckhlYWRlcnMsXG4gICAgICAgICAgICAgICAgb2JzZXJ2ZTogb2JzZXJ2ZSxcbiAgICAgICAgICAgICAgICByZXBvcnRQcm9ncmVzczogcmVwb3J0UHJvZ3Jlc3NcbiAgICAgICAgICAgIH1cbiAgICAgICAgKTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBEZWxldGUgYmFuayBhcHBsaWNhdGlvblxuICAgICAqIERlbGV0ZXMgYW4gYXBwbGljYXRpb24uUmVxdWlyZWQgc2NvcGU6ICoqYmFua19hcHBsaWNhdGlvbnM6ZXhlY3V0ZSoqXG4gICAgICogQHBhcmFtIGNsaWVudElkIElkZW50aWZpZXIgZm9yIHRoZSB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RlZCk7XG4gICAgICAgIH1cblxuICAgICAgICBsZXQgbG9jYWxWYXJIdHRwQ29udGV4dDogSHR0cENvbnRleHQgfCB1bmRlZmluZWQgPSBvcHRpb25zICYmIG9wdGlvbnMuY29udGV4dDtcbiAgICAgICAgaWYgKGxvY2FsVmFySHR0cENvbnRleHQgPT09IHVuZGVmaW5lZCkge1xuICAgICAgICAgICAgbG9jYWxWYXJIdHRwQ29udGV4dCA9IG5ldyBIdHRwQ29udGV4dCgpO1xuICAgICAgICB9XG5cblxuICAgICAgICBsZXQgcmVzcG9uc2VUeXBlXzogJ3RleHQnIHwgJ2pzb24nIHwgJ2Jsb2InID0gJ2pzb24nO1xuICAgICAgICBpZiAobG9jYWxWYXJIdHRwSGVhZGVyQWNjZXB0U2VsZWN0ZWQpIHtcbiAgICAgICAgICAgIGlmIChsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZC5zdGFydHNXaXRoKCd0ZXh0JykpIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ3RleHQnO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLmNvbmZpZ3VyYXRpb24uaXNKc29uTWltZShsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZCkpIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ2pzb24nO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ2Jsb2InO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cENsaWVudC5kZWxldGU8YW55PihgJHt0aGlzLmNvbmZpZ3VyYXRpb24uYmFzZVBhdGh9L2FwaS9iYW5rX2FwcGxpY2F0aW9ucy8ke2VuY29kZVVSSUNvbXBvbmVudChTdHJpbmcoY2xpZW50SWQpKX1gLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGNvbnR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2l0aCgndGV4dCcpKSB7XG4gICAgICAgICAgICAgICAgcmVzcG9uc2VUeXBlXyA9ICd0ZXh0JztcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5jb25maWd1cmF0aW9uLmlzSnNvbk1pbWUobG9jYWxWYXJIdHRwSGVhZGVyQWNjZXB0U2VsZWN0ZWQpKSB7XG4gICAgICAgICAgICAgICAgcmVzcG9uc2VUeXBlXyA9ICdqc29uJztcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcmVzcG9uc2VUeXBlXyA9ICdibG9iJztcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICAgIHJldHVybiB0aGlzLmh0dHBDbGllbnQuZ2V0PEFwcGxpY2F0aW9uTGlzdElkcE1vZGVsPihgJHt0aGlzLmNvbmZpZ3VyYXRpb24uYmFzZVBhdGh9L2FwaS9iYW5rX2FwcGxpY2F0aW9uc2AsXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgY29udGV4dDogbG9jYWxWYXJIdHRwQ29udGV4dCxcbiAgICAgICAgICAgICAgICBwYXJhbXM6IGxvY2FsVmFyUXVlcnlQYXJhbWV0ZXJzLFxuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZTogPGFueT5yZXNwb25zZVR5cGVfLFxuICAgICAgICAgICAgICAgIHdpdGhDcmVkZW50aWFsczogdGhpcy5jb25maWd1cmF0aW9uLndpdGhDcmVkZW50aWFscyxcbiAgICAgICAgICAgICAgICBoZWFkZXJzOiBsb2NhbFZhckhlYWRlcnMsXG4gICAgICAgICAgICAgICAgb2JzZXJ2ZTogb2JzZXJ2ZSxcbiAgICAgICAgICAgICAgICByZXBvcnRQcm9ncmVzczogcmVwb3J0UHJvZ3Jlc3NcbiAgICAgICAgICAgIH1cbiAgICAgICAgKTtcbiAgICB9XG5cbn1cbiJdfQ==
|
264
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlI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S0tLS0tLS0tLS0tLS0tLXwtLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLXwgfCBBY2NvdW50ICAgICAgICAgICAgICAgfCBhY2NvdW50czpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgYWNjb3VudHM6ZXhlY3V0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgICAgICAgICAgfCBiYW5rczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmspICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgYmFua3M6d3JpdGUgKE9yZ2FuaXphdGlvbiwgQmFuaykgICAgICAgICAgICAgIHwgYmFua3M6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uKSAgICAgICAgICAgICAgICAgICAgIHwgfCBDdXN0b21lciAgICAgICAgICAgICAgfCBjdXN0b21lcnM6cmVhZCAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgIHwgY3VzdG9tZXJzOndyaXRlIChCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgIHwgY3VzdG9tZXJzOmV4ZWN1dGUgKEJhbmspICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBDb3VudGVycGFydHkgICAgICAgICAgfCBjb3VudGVycGFydGllczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgIHwgY291bnRlcnBhcnRpZXM6d3JpdGUgKEJhbmssIEN1c3RvbWVyKSAgICAgICAgIHwgY291bnRlcnBhcnRpZXM6ZXhlY3V0ZSAoQmFuaykgICAgICAgICAgICAgICAgICAgIHwgfCBEZXBvc2l0IEFkZHJlc3MgICAgICAgfCBkZXBvc2l0X2FkZHJlc3NlczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgIHwgZGVwb3NpdF9hZGRyZXNzZXM6d3JpdGUgKEJhbmssIEN1c3RvbWVyKSAgICAgIHwgZGVwb3NpdF9hZGRyZXNzZXM6ZXhlY3V0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgIHwgfCBFeHRlcm5hbCBCYW5rIEFjY291bnQgfCBleHRlcm5hbF9iYW5rX2FjY291bnRzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpIHwgZXh0ZXJuYWxfYmFua19hY2NvdW50czp3cml0ZSAoQmFuaywgQ3VzdG9tZXIpIHwgZXh0ZXJuYWxfYmFua19hY2NvdW50czpleGVjdXRlIChCYW5rLCBDdXN0b21lcikgIHwgfCBFeHRlcm5hbCBXYWxsZXQgICAgICAgfCBleHRlcm5hbF93YWxsZXQ6cmVhZCAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgZXh0ZXJuYWxfd2FsbGV0OmV4ZWN1dGUgKEJhbmssIEN1c3RvbWVyKSAgICAgICAgIHwgfCBPcmdhbml6YXRpb24gICAgICAgICAgfCBvcmdhbml6YXRpb25zOnJlYWQgKE9yZ2FuaXphdGlvbikgICAgICAgICAgICAgICAgICAgICAgICAgIHwgb3JnYW5pemF0aW9uczp3cml0ZSAoT3JnYW5pemF0aW9uKSAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBVc2VyICAgICAgICAgICAgICAgICAgfCB1c2VyczpyZWFkIChPcmdhbml6YXRpb24pICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgdXNlcnM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uKSAgICAgICAgICAgICAgICAgICAgIHwgfCBQcmljZSAgICAgICAgICAgICAgICAgfCBwcmljZXM6cmVhZCAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBRdW90ZSAgICAgICAgICAgICAgICAgfCBxdW90ZXM6cmVhZCAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgcXVvdGVzOmV4ZWN1dGUgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgIHwgfCBUcmFkZSAgICAgICAgICAgICAgICAgfCB0cmFkZXM6cmVhZCAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgdHJhZGVzOmV4ZWN1dGUgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgIHwgfCBUcmFuc2ZlciAgICAgICAgICAgICAgfCB0cmFuc2ZlcnM6cmVhZCAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgdHJhbnNmZXJzOmV4ZWN1dGUgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpIHwgfCBXb3JrZmxvdyAgICAgICAgICAgICAgfCB3b3JrZmxvd3M6cmVhZCAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgIHwgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg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tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLXwgfCBJZGVudGl0eSAgICAgfCBCYW5rICAgICAgICAgICAgICAgICB8IC9hcGkvYmFua19hcHBsaWNhdGlvbnMgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBiYW5rcyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IElkZW50aXR5ICAgICB8IEN1c3RvbWVyVG9rZW4gICAgICAgIHwgL2FwaS9jdXN0b21lcl90b2tlbnMgICAgICAgICAgIHwgQ3JlYXRlIGN1c3RvbWVyIEpXVCBhY2Nlc3MgdG9rZW5zICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgSWRlbnRpdHkgICAgIHwgT3JnYW5pemF0aW9uICAgICAgICAgfCAvYXBpL29yZ2FuaXphdGlvbl9hcHBsaWNhdGlvbnMgfCBDcmVhdGUgYW5kIGxpc3Qgb3JnYW5pemF0aW9ucyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBJZGVudGl0eSAgICAgfCBPcmdhbml6YXRpb24gICAgICAgICB8IC9hcGkvdXNlcnMgICAgICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBvcmdhbml6YXRpb24gdXNlcnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IE9yZ2FuaXphdGlvbiB8IE9yZ2FuaXphdGlvbiAgICAgICAgIHwgL2FwaS9vcmdhbml6YXRpb25zICAgICAgICAgICAgIHwgQVBJcyB0byByZXRyaWV2ZSBhbmQgdXBkYXRlIG9yZ2FuaXphdGlvbiBuYW1lICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgQWNjb3VudCAgICAgICAgICAgICAgfCAvYXBpL2FjY291bnRzICAgICAgICAgICAgICAgICAgfCBDcmVhdGUgYW5kIGxpc3QgYWNjb3VudHMsIHdoaWNoIGhvbGQgYSBzcGVjaWZpYyBhc3NldCBmb3IgYSBjdXN0b21lcnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBBc3NldCAgICAgICAgICAgICAgICB8IC9hcGkvYXNzZXRzICAgICAgICAgICAgICAgICAgICB8IEdldCBhIGxpc3Qgb2YgYXNzZXRzIHN1cHBvcnRlZCBieSB0aGUgcGxhdGZvcm0gKGV4OiBCVEMsIEVUSCkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IEJhbmsgICAgICAgICAgICAgICAgIHwgL2FwaS9iYW5rcyAgICAgICAgICAgICAgICAgICAgIHwgQ3JlYXRlLCB1cGRhdGUgYW5kIGxpc3QgYmFua3MsIHRoZSBwYXJlbnQgdG8gY3VzdG9tZXJzLCBhY2NvdW50cywgZXRjICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgQ3VzdG9tZXIgICAgICAgICAgICAgfCAvYXBpL2N1c3RvbWVycyAgICAgICAgICAgICAgICAgfCBDcmVhdGUgYW5kIGxpc3QgY3VzdG9tZXJzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBDb3VudGVycGFydHkgICAgICAgICB8IC9hcGkvY291bnRlcnBhcnRpZXMgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBjb3VudGVycGFydGllcyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC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ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBQYXltZW50SW5zdHJ1Y3Rpb24gICB8IC9hcGkvcGF5bWVudF9pbnN0cnVjdGlvbnMgICAgICB8IENyZWF0ZSwgZ2V0IGFuZCBsaXN0IHBheW1lbnQgaW5zdHJ1Y3Rpb25zIGZvciBpbnZvaWNlcyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IFByaWNlICAgICAgICAgICAgICAgIHwgL2FwaS9wcmljZXMgICAgICAgICAgICAgICAgICAgIHwgR2V0IHRoZSBjdXJyZW50IHByaWNlcyBmb3IgYXNzZXRzIG9uIHRoZSBwbGF0Zm9ybSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgUXVvdGUgICAgICAgICAgICAgICAgfCAvYXBpL3F1b3RlcyAgICAgICAgICAgICAgICAgICAgfCBDcmVhdGUgYW5kIGxpc3QgcXVvdGVzLCB3aGljaCBhcmUgcmVxdWlyZWQgdG8gZXhlY3V0ZSB0cmFkZXMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBTeW1ib2wgICAgICAgICAgICAgICB8IC9hcGkvc3ltYm9scyAgICAgICAgICAgICAgICAgICB8IEdldCBhIGxpc3Qgb2Ygc3ltYm9scyBzdXBwb3J0ZWQgZm9yIHRyYWRlIChleDogQlRDLVVTRCkgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IFRyYWRlICAgICAgICAgICAgICAgIHwgL2FwaS90cmFkZXMgICAgICAgICAgICAgICAgICAgIHwgQ3JlYXRlIGFuZCBsaXN0IHRyYWRlcywgd2hpY2ggYnV5IG9yIHNlbGwgY3J5cHRvY3VycmVuY3kgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgVHJhbnNmZXIgICAgICAgICAgICAgfCAvYXBpL3RyYW5zZmVycyAgICAgICAgICAgICAgICAgfCBDcmVhdGUsIGdldCBhbmQgbGlzdCB0cmFuc2ZlcnMgKGUuZy4sIGZ1bmRpbmcsIGJvb2spICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBXb3JrZmxvdyAgICAgICAgICAgICB8IC9hcGkvd29ya2Zsb3dzICAgICAgICAgICAgICAgICB8IENyZWF0ZSwgZ2V0IGFuZCBsaXN0IHdvcmtmbG93cyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgIyMgVW5kZXJzdGFuZGluZyBPYmplY3QgTW9kZWxzICYgRW5kcG9pbnRzICAqKk9yZ2FuaXphdGlvbnMqKiAgQW4gYE9yZ2FuaXphdGlvbmAgaXMgbWVhbnQgdG8gcmVwcmVzZW50IHRoZSBvcmdhbml6YXRpb24gcGFydG5lcmluZyB3aXRoIEN5YnJpZCB0byB1c2Ugb3VyIHBsYXRmb3JtLiAgQW4gYE9yZ2FuaXphdGlvbmAgdHlwaWNhbGx5IGRvZXMgbm90IGRpcmVjdGx5IGludGVyYWN0IHdpdGggYGN1c3RvbWVyc2AuIEluc3RlYWQsIGFuIE9yZ2FuaXphdGlvbiBoYXMgb25lIG9yIG1vcmUgYGJhbmtzYCwgd2hpY2ggZW5jb21wYXNzIHRoZSBmaW5hbmNpYWwgc2VydmljZSBvZmZlcmluZ3Mgb2YgdGhlIHBsYXRmb3JtLiAgKipCYW5rcyoqICBBIGBCYW5rYCBpcyBvd25lZCBieSBhbiBgT3JnYW5pemF0aW9uYCBhbmQgY2FuIGJlIHRob3VnaHQgb2YgYXMgYW4gZW52aXJvbm1lbnQgb3IgY29udGFpbm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cmFtc1JlY3Vyc2l2ZShodHRwUGFyYW1zLCBlbGVtLCBrZXkpKTtcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodmFsdWUgaW5zdGFuY2VvZiBEYXRlKSB7XG4gICAgICAgICAgICAgICAgaWYgKGtleSAhPSBudWxsKSB7XG4gICAgICAgICAgICAgICAgICAgIGh0dHBQYXJhbXMgPSBodHRwUGFyYW1zLmFwcGVuZChrZXksICh2YWx1ZSBhcyBEYXRlKS50b0lTT1N0cmluZygpLnN1YnN0cigwLCAxMCkpO1xuICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgdGhyb3cgRXJyb3IoXCJrZXkgbWF5IG5vdCBiZSBudWxsIGlmIHZhbHVlIGlzIERhdGVcIik7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICBPYmplY3Qua2V5cyh2YWx1ZSkuZm9yRWFjaCggayA9PiBodHRwUGFyYW1zID0gdGhpcy5hZGRUb0h0dHBQYXJhbXNSZWN1cnNpdmUoXG4gICAgICAgICAgICAgICAgICAgIGh0dHBQYXJhbXMsIHZhbHVlW2tdLCBrZXkgIT0gbnVsbCA/IGAke2tleX0uJHtrfWAgOiBrKSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSBpZiAoa2V5ICE9IG51bGwpIHtcbiAgICAgICAgICAgIGh0dHBQYXJhbXMgPSBodHRwUGFyYW1zLmFwcGVuZChrZXksIHZhbHVlKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRocm93IEVycm9yKFwia2V5IG1heSBub3QgYmUgbnVsbCBpZiB2YWx1ZSBpcyBub3Qgb2JqZWN0IG9yIGFycmF5XCIpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBodHRwUGFyYW1zO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIENyZWF0ZSBiYW5rIGFwcGxpY2F0aW9uXG4gICAgICog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gICAgICAgIGlmIChsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZC5zdGFydHNXaXRoKCd0ZXh0JykpIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ3RleHQnO1xuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLmNvbmZpZ3VyYXRpb24uaXNKc29uTWltZShsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZCkpIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ2pzb24nO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICByZXNwb25zZVR5cGVfID0gJ2Jsb2InO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbiAgICAgICAgcmV0dXJuIHRoaXMuaHR0cENsaWVudC5kZWxldGU8YW55PihgJHt0aGlzLmNvbmZpZ3VyYXRpb24uYmFzZVBhdGh9L2FwaS9iYW5rX2FwcGxpY2F0aW9ucy8ke2VuY29kZVVSSUNvbXBvbmVudChTdHJpbmcoY2xpZW50SWQpKX1gLFxuICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgIGNvbnRleHQ6IGxvY2FsVmFySHR0cENvbnRleHQsXG4gICAgICAgICAgICAgICAgcmVzcG9uc2VUeXBlOiA8YW55PnJlc3BvbnNlVHlwZV8sXG4gICAgICAgICAgICAgICAgd2l0aENyZWRlbnRpYWxzOiB0aGlzLmNvbmZpZ3VyYXRpb24ud2l0aENyZWRlbnRpYWxzLFxuICAgICAgICAgICAgICAgIGhlYWRlcnM6IGxvY2FsVmFySGVhZGVycyxcbiAgICAgICAgICAgICAgICBvYnNlcnZlOiBvYnNlcnZlLFxuICAgICAgICAgICAgICAgIHJlcG9ydFByb2dyZXNzOiByZXBvcnRQcm9ncmVzc1xuICAgICAgICAgICAgfVxuICAgICAgICApO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIExpc3QgYmFuayBhcHBsaWNhdGlvbnNcbi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t0aGlzLmNvbmZpZ3VyYXRpb24uYmFzZVBhdGh9L2FwaS9iYW5rX2FwcGxpY2F0aW9uc2AsXG4gICAgICAgICAgICB7XG4gICAgICAgICAgICAgICAgY29udGV4dDogbG9jYWxWYXJIdHRwQ29udGV4dCxcbiAgICAgICAgICAgICAgICBwYXJhbXM6IGxvY2FsVmFyUXVlcnlQYXJhbWV0ZXJzLFxuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZTogPGFueT5yZXNwb25zZVR5cGVfLFxuICAgICAgICAgICAgICAgIHdpdGhDcmVkZW50aWFsczogdGhpcy5jb25maWd1cmF0aW9uLndpdGhDcmVkZW50aWFscyxcbiAgICAgICAgICAgICAgICBoZWFkZXJzOiBsb2NhbFZhckhlYWRlcnMsXG4gICAgICAgICAgICAgICAgb2JzZXJ2ZTogb2JzZXJ2ZSxcbiAgICAgICAgICAgICAgICByZXBvcnRQcm9ncmVzczogcmVwb3J0UHJvZ3Jlc3NcbiAgICAgICAgICAgIH1cbiAgICAgICAgKTtcbiAgICB9XG5cbn1cbiJdfQ==
|
@@ -2,7 +2,7 @@
|
|
2
2
|
* Cybrid Identity API
|
3
3
|
* # Cybrid API documentation Welcome to Cybrid, an all-in-one crypto platform that enables you to easily **build** and **launch** white-label crypto products or services. In these documents, you\'ll find details on how our REST API operates and generally how our platform functions. If you\'re looking for our UI SDK Widgets for Web or Mobile (iOS/Android), generated API clients, or demo applications, head over to our [Github repo](https://github.com/Cybrid-app). 💡 We recommend bookmarking the [Cybrid LinkTree](https://linktr.ee/cybridtechnologies) which contains many helpful links to platform resources. ## Getting Started This is Cybrid\'s public interactive API documentation, which allows you to fully test our APIs. If you\'d like to use a different tool to exercise our APIs, you can download the [Open API 3.0 yaml](https://bank.production.cybrid.app/api/schema/v1/swagger.yaml) for import. If you\'re new to our APIs and the Cybrid Platform, follow the below guides to get set up and familiar with the platform: 1. [Introduction](https://docs.cybrid.xyz/docs/introduction) 2. [Platform Introduction](https://docs.cybrid.xyz/docs/how-is-cybrid-architected) 3. [Testing with Hosted Web Demo App](https://docs.cybrid.xyz/docs/testing-with-hosted-web-demo-app) In [Getting Started in the Cybrid Sandbox](https://docs.cybrid.xyz/docs/how-do-i-get-started-with-the-sandbox), we walk you through how to use the [Cybrid Sandbox](https://id.sandbox.cybrid.app/) to create a test bank and generate API keys. In [Getting Ready for Trading](https://kb.cybrid.xyz/getting-ready-for-trading), we walk through creating customers, customer identities, accounts, as well as executing quotes and trades. ## Working with the Cybrid Platform There are three primary ways you can interact with the Cybrid platform: 1. Directly via our RESTful API (this documentation) 2. Using our API clients available in a variety of languages ([Angular](https://github.com/Cybrid-app/cybrid-api-bank-angular), [Java](https://github.com/Cybrid-app/cybrid-api-bank-java), [Kotlin](https://github.com/Cybrid-app/cybrid-api-bank-kotlin), [Python](https://github.com/Cybrid-app/cybrid-api-bank-python), [Ruby](https://github.com/Cybrid-app/cybrid-api-bank-ruby), [Swift](https://github.com/Cybrid-app/cybrid-api-bank-swift) or [Typescript](https://github.com/Cybrid-app/cybrid-api-bank-typescript)) 3. Integrating a platform specific SDK ([Web](https://github.com/Cybrid-app/cybrid-sdk-web), [Android](https://github.com/Cybrid-app/cybrid-sdk-android), [iOS](https://github.com/Cybrid-app/cybrid-sdk-ios)) Our complete set of APIs allows you to manage resources across three distinct areas: your `Organization`, your `Banks` and your `Identities`. For most of your testing and interaction you\'ll be using the `Bank` API, which is where the majority of APIs reside. *The complete set of APIs can be found on the following pages:* | API | Description | |------------------------------------------------------------------|-------------------------------------------------------------| | [Organization API](https://organization.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organizations | | [Bank API](https://bank.production.cybrid.app/api/schema/swagger-ui) | APIs to manage banks (and all downstream customer activity) | | [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui) | APIs to manage organization and bank identities | For questions please contact [Support](mailto:support@cybrid.xyz) at any time for assistance, or contact the [Product Team](mailto:product@cybrid.xyz) for product suggestions. ## Authenticating with the API The Cybrid Platform uses OAuth 2.0 Bearer Tokens to authenticate requests to the platform. Credentials to create `Organization` and `Bank` tokens can be generated via the [Cybrid Sandbox](https://id.production.cybrid.app). Access tokens can be generated for a `Customer` as well via the [Cybrid IdP](https://id.production.cybrid.app) as well. An `Organization` access token applies broadly to the whole Organization and all of its `Banks`, whereas, a `Bank` access token is specific to an individual Bank. `Customer` tokens, similarly, are scoped to a specific customer in a bank. Both `Organization` and `Bank` tokens can be created using the OAuth Client Credential Grant flow. Each Organization and Bank has its own unique `Client ID` and `Secret` that allows for machine-to-machine authentication. A `Bank` can then generate `Customer` access tokens via API using our [Identities API](https://id.production.cybrid.app/api/schema/swagger-ui). <font color=\"orange\">**⚠️ Never share your Client ID or Secret publicly or in your source code repository.**</font> Your `Client ID` and `Secret` can be exchanged for a time-limited `Bearer Token` by interacting with the Cybrid Identity Provider or through interacting with the **Authorize** button in this document. The following curl command can be used to quickly generate a `Bearer Token` for use in testing the API or demo applications. ``` # Example request when using Bank credentials curl -X POST https://id.production.cybrid.app/oauth/token -d \'{ \"grant_type\": \"client_credentials\", \"client_id\": \"<Your Client ID>\", \"client_secret\": \"<Your Secret>\", \"scope\": \"banks:read banks:write bank_applications:execute accounts:read accounts:execute counterparties:read counterparties:write counterparties:execute customers:read customers:write customers:execute prices:read quotes:execute quotes:read trades:execute trades:read transfers:execute transfers:read external_bank_accounts:read external_bank_accounts:write external_bank_accounts:execute external_wallets:read external_wallets:execute workflows:read workflows:execute deposit_addresses:read deposit_addresses:execute deposit_bank_accounts:read deposit_bank_accounts:execute invoices:read invoices:write invoices:execute identity_verifications:read identity_verifications:write identity_verifications:execute\" }\' -H \"Content-Type: application/json\" # When using Organization credentials set `scope` to \'organizations:read organizations:write organization_applications:execute banks:read banks:write banks:execute bank_applications:execute users:read users:execute counterparties:read customers:read accounts:read prices:read quotes:execute quotes:read trades:execute trades:read transfers:read transfers:execute external_bank_accounts:read external_wallets:read workflows:read deposit_addresses:read deposit_bank_accounts:read invoices:read subscriptions:read subscriptions:write subscriptions:execute subscription_events:read subscription_events:execute identity_verifications:read\' ``` <font color=\"orange\">**⚠️ Note: The above curl will create a bearer token with full scope access. Delete scopes if you\'d like to restrict access.**</font> ## Authentication Scopes The Cybrid platform supports the use of scopes to control the level of access a token is limited to. Scopes do not grant access to resources; instead, they provide limits, in support of the least privilege principal. The following scopes are available on the platform and can be requested when generating either an Organization, Bank or Customer token. Generally speaking, the _Read_ scope is required to read and list resources, the _Write_ scope is required to update a resource and the _Execute_ scope is required to create a resource. | Resource | Read scope (Token Type) | Write scope (Token Type) | Execute scope (Token Type) | |-----------------------|------------------------------------------------------------|-----------------------------------------------|--------------------------------------------------| | Account | accounts:read (Organization, Bank, Customer) | | accounts:execute (Bank, Customer) | | Bank | banks:read (Organization, Bank) | banks:write (Organization, Bank) | banks:execute (Organization) | | Customer | customers:read (Organization, Bank, Customer) | customers:write (Bank, Customer) | customers:execute (Bank) | | Counterparty | counterparties:read (Organization, Bank, Customer) | counterparties:write (Bank, Customer) | counterparties:execute (Bank) | | Deposit Address | deposit_addresses:read (Organization, Bank, Customer) | deposit_addresses:write (Bank, Customer) | deposit_addresses:execute (Bank, Customer) | | External Bank Account | external_bank_accounts:read (Organization, Bank, Customer) | external_bank_accounts:write (Bank, Customer) | external_bank_accounts:execute (Bank, Customer) | | External Wallet | external_wallet:read (Organization, Bank, Customer) | | external_wallet:execute (Bank, Customer) | | Organization | organizations:read (Organization) | organizations:write (Organization) | | | User | users:read (Organization) | | users:execute (Organization) | | Price | prices:read (Bank, Customer) | | | | Quote | quotes:read (Organization, Bank, Customer) | | quotes:execute (Organization, Bank, Customer) | | Trade | trades:read (Organization, Bank, Customer) | | trades:execute (Organization, Bank, Customer) | | Transfer | transfers:read (Organization, Bank, Customer) | | transfers:execute (Organization, Bank, Customer) | | Workflow | workflows:read (Organization, Bank, Customer) | | workflows:execute (Bank, Customer) | | Invoice | invoices:read (Organization, Bank, Customer) | invoices:write (Bank, Customer) | invoices:execute (Bank, Customer) | ## Available Endpoints The available APIs for the [Identity](https://id.production.cybrid.app/api/schema/swagger-ui), [Organization](https://organization.production.cybrid.app/api/schema/swagger-ui) and [Bank](https://bank.production.cybrid.app/api/schema/swagger-ui) API services are listed below: | API Service | Model | API Endpoint Path | Description | |--------------|----------------------|--------------------------------|---------------------------------------------------------------------------------------------------| | Identity | Bank | /api/bank_applications | Create and list banks | | Identity | CustomerToken | /api/customer_tokens | Create customer JWT access tokens | | Identity | Organization | /api/organization_applications | Create and list organizations | | Identity | Organization | /api/users | Create and list organization users | | Organization | Organization | /api/organizations | APIs to retrieve and update organization name | | Bank | Account | /api/accounts | Create and list accounts, which hold a specific asset for a customers | | Bank | Asset | /api/assets | Get a list of assets supported by the platform (ex: BTC, ETH) | | Bank | Bank | /api/banks | Create, update and list banks, the parent to customers, accounts, etc | | Bank | Customer | /api/customers | Create and list customers | | Bank | Counterparty | /api/counterparties | Create and list counterparties | | Bank | DepositAddress | /api/deposit_addresses | Create, get and list deposit addresses | | Bank | ExternalBankAccount | /api/external_bank_accounts | Create, get and list external bank accounts, which connect customer bank accounts to the platform | | Bank | ExternalWallet | /api/external_wallets | Create, get, list and delete external wallets, which connect customer wallets to the platform | | Bank | IdentityVerification | /api/identity_verifications | Create and list identity verifications, which are performed on customers for KYC | | Bank | Invoice | /api/invoices | Create, get, cancel and list invoices | | Bank | PaymentInstruction | /api/payment_instructions | Create, get and list payment instructions for invoices | | Bank | Price | /api/prices | Get the current prices for assets on the platform | | Bank | Quote | /api/quotes | Create and list quotes, which are required to execute trades | | Bank | Symbol | /api/symbols | Get a list of symbols supported for trade (ex: BTC-USD) | | Bank | Trade | /api/trades | Create and list trades, which buy or sell cryptocurrency | | Bank | Transfer | /api/transfers | Create, get and list transfers (e.g., funding, book) | | Bank | Workflow | /api/workflows | Create, get and list workflows | ## Understanding Object Models & Endpoints **Organizations** An `Organization` is meant to represent the organization partnering with Cybrid to use our platform. An `Organization` typically does not directly interact with `customers`. Instead, an Organization has one or more `banks`, which encompass the financial service offerings of the platform. **Banks** A `Bank` is owned by an `Organization` and can be thought of as an environment or container for `customers` and product offerings. Banks are created in either `Sandbox` or `Production` mode, where `Sandbox` is the environment that you would test, prototype and build in prior to moving to `Production`. An `Organization` can have multiple `banks`, in either `Sandbox` or `Production` environments. A `Sandbox Bank` will be backed by stubbed data and process flows. For instance, funding source transfer processes as well as trades will be simulated rather than performed, however asset prices are representative of real-world values. You have an unlimited amount of simulated fiat currency for testing purposes. **Customers** `Customers` represent your banking users on the platform. At present, we offer support for `Individuals` as Customers. `Customers` must be verified (i.e., KYC\'d) in our system before they can play any part on the platform, which means they must have an associated and a passing `Identity Verification`. See the Identity Verifications section for more details on how a customer can be verified. `Customers` must also have an `Account` to be able to transact, in the desired asset class. See the Accounts APIs for more details on setting up accounts for the customer.
|
4
4
|
*
|
5
|
-
* The version of the OpenAPI document: v0.121.
|
5
|
+
* The version of the OpenAPI document: v0.121.51
|
6
6
|
* Contact: support@cybrid.app
|
7
7
|
*
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
@@ -149,4 +149,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
149
149
|
}] }, { type: i2.Configuration, decorators: [{
|
150
150
|
type: Optional
|
151
151
|
}] }]; } });
|
152
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tZXJUb2tlbnMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2FwaS9jdXN0b21lclRva2Vucy5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7O0dBVUc7QUFDSCx1REFBdUQ7QUFFdkQsT0FBTyxFQUFFLE1BQU0sRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFFLE1BQTJCLGVBQWUsQ0FBQztBQUNsRixPQUFPLEVBQWMsV0FBV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S0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tfCB8IEFjY291bnQgICAgICAgICAgICAgICB8IGFjY291bnRzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBhY2NvdW50czpleGVjdXRlIChCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICAgICAgICAgICB8IGJhbmtzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaykgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBiYW5rczp3cml0ZSAoT3JnYW5pemF0aW9uLCBCYW5rKSAgICAgICAgICAgICAgfCBiYW5rczpleGVjdXRlIChPcmdhbml6YXRpb24pICAgICAgICAgICAgICAgICAgICAgfCB8IEN1c3RvbWVyICAgICAgICAgICAgICB8IGN1c3RvbWVyczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCBjdXN0b21lcnM6d3JpdGUgKEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCBjdXN0b21lcnM6ZXhlY3V0ZSAoQmFuaykgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IENvdW50ZXJwYXJ0eSAgICAgICAgICB8IGNvdW50ZXJwYXJ0aWVzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgICAgICAgfCBjb3VudGVycGFydGllczp3cml0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgfCBjb3VudGVycGFydGllczpleGVjdXRlIChCYW5rKSAgICAgICAgICAgICAgICAgICAgfCB8IERlcG9zaXQgQWRkcmVzcyAgICAgICB8IGRlcG9zaXRfYWRkcmVzc2VzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgICAgfCBkZXBvc2l0X2FkZHJlc3Nlczp3cml0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgfCBkZXBvc2l0X2FkZHJlc3NlczpleGVjdXRlIChCYW5rLCBDdXN0b21lcikgICAgICAgfCB8IEV4dGVybmFsIEJhbmsgQWNjb3VudCB8IGV4dGVybmFsX2JhbmtfYWNjb3VudHM6cmVhZCAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgfCBleHRlcm5hbF9iYW5rX2FjY291bnRzOndyaXRlIChCYW5rLCBDdXN0b21lcikgfCBleHRlcm5hbF9iYW5rX2FjY291bnRzOmV4ZWN1dGUgKEJhbmssIEN1c3RvbWVyKSAgfCB8IEV4dGVybmFsIFdhbGxldCAgICAgICB8IGV4dGVybmFsX3dhbGxldDpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBleHRlcm5hbF93YWxsZXQ6ZXhlY3V0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgfCB8IE9yZ2FuaXphdGlvbiAgICAgICAgICB8IG9yZ2FuaXphdGlvbnM6cmVhZCAoT3JnYW5pemF0aW9uKSAgICAgICAgICAgICAgICAgICAgICAgICAgfCBvcmdhbml6YXRpb25zOndyaXRlIChPcmdhbml6YXRpb24pICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IFVzZXIgICAgICAgICAgICAgICAgICB8IHVzZXJzOnJlYWQgKE9yZ2FuaXphdGlvbikgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB1c2VyczpleGVjdXRlIChPcmdhbml6YXRpb24pICAgICAgICAgICAgICAgICAgICAgfCB8IFByaWNlICAgICAgICAgICAgICAgICB8IHByaWNlczpyZWFkIChCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IFF1b3RlICAgICAgICAgICAgICAgICB8IHF1b3RlczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBxdW90ZXM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgfCB8IFRyYWRlICAgICAgICAgICAgICAgICB8IHRyYWRlczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB0cmFkZXM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgfCB8IFRyYW5zZmVyICAgICAgICAgICAgICB8IHRyYW5zZmVyczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB0cmFuc2ZlcnM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgfCB8IFdvcmtmbG93ICAgICAgICAgICAgICB8IHdvcmtmbG93czpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB3b3JrZmxvd3M6ZXhlY3V0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgICA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S0tLS0tfCB8IElkZW50aXR5ICAgICB8IEJhbmsgICAgICAgICAgICAgICAgIHwgL2FwaS9iYW5rX2FwcGxpY2F0aW9ucyAgICAgICAgIHwgQ3JlYXRlIGFuZCBsaXN0IGJhbmtzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgSWRlbnRpdHkgICAgIHwgQ3VzdG9tZXJUb2tlbiAgICAgICAgfCAvYXBpL2N1c3RvbWVyX3Rva2VucyAgICAgICAgICAgfCBDcmVhdGUgY3VzdG9tZXIgSldUIGFjY2VzcyB0b2tlbnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBJZGVudGl0eSAgICAgfCBPcmdhbml6YXRpb24gICAgICAgICB8IC9hcGkvb3JnYW5pemF0aW9uX2FwcGxpY2F0aW9ucyB8IENyZWF0ZSBhbmQgbGlzdCBvcmdhbml6YXRpb25zICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IElkZW50aXR5ICAgICB8IE9yZ2FuaXphdGlvbiAgICAgICAgIHwgL2FwaS91c2VycyAgICAgICAgICAgICAgICAgICAgIHwgQ3JlYXRlIGFuZCBsaXN0IG9yZ2FuaXphdGlvbiB1c2VycyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgT3JnYW5pemF0aW9uIHwgT3JnYW5pemF0aW9uICAgICAgICAgfCAvYXBpL29yZ2FuaXphdGlvbnMgICAgICAgICAgICAgfCBBUElzIHRvIHJldHJpZXZlIGFuZCB1cGRhdGUgb3JnYW5pemF0aW9uIG5hbWUgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBBY2NvdW50ICAgICAgICAgICAgICB8IC9hcGkvYWNjb3VudHMgICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBhY2NvdW50cywgd2hpY2ggaG9sZCBhIHNwZWNpZmljIGFzc2V0IGZvciBhIGN1c3RvbWVycyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IEFzc2V0ICAgICAgICAgICAgICAgIHwgL2FwaS9hc3NldHMgICAgICAgICAgICAgICAgICAgIHwgR2V0IGEgbGlzdCBvZiBhc3NldHMgc3VwcG9ydGVkIGJ5IHRoZSBwbGF0Zm9ybSAoZXg6IEJUQywgRVRIKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgQmFuayAgICAgICAgICAgICAgICAgfCAvYXBpL2JhbmtzICAgICAgICAgICAgICAgICAgICAgfCBDcmVhdGUsIHVwZGF0ZSBhbmQgbGlzdCBiYW5rcywgdGhlIHBhcmVudCB0byBjdXN0b21lcnMsIGFjY291bnRzLCBldGMgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBDdXN0b21lciAgICAgICAgICAgICB8IC9hcGkvY3VzdG9tZXJzICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBjdXN0b21lcnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IENvdW50ZXJwYXJ0eSAgICAgICAgIHwgL2FwaS9jb3VudGVycGFydGllcyAgICAgICAgICAgIHwgQ3JlYXRlIGFuZCBsaXN0IGNvdW50ZXJwYXJ0aWVzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgRGVwb3NpdEFkZHJlc3MgICAgICAgfCAvY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W1lbnRJbnN0cnVjdGlvbiAgIHwgL2FwaS9wYXltZW50X2luc3RydWN0aW9ucyAgICAgIHwgQ3JlYXRlLCBnZXQgYW5kIGxpc3QgcGF5bWVudCBpbnN0cnVjdGlvbnMgZm9yIGludm9pY2VzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgUHJpY2UgICAgICAgICAgICAgICAgfCAvYXBpL3ByaWNlcyAgICAgICAgICAgICAgICAgICAgfCBHZXQgdGhlIGN1cnJlbnQgcHJpY2VzIGZvciBhc3NldHMgb24gdGhlIHBsYXRmb3JtICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBRdW90ZSAgICAgICAgICAgICAgICB8IC9hcGkvcXVvdGVzICAgICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBxdW90ZXMsIHdoaWNoIGFyZSByZXF1aXJlZCB0byBleGVjdXRlIHRyYWRlcyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IFN5bWJvbCAgICAgICAgICAgICAgIHwgL2FwaS9zeW1ib2xzICAgICAgICAgICAgICAgICAgIHwgR2V0IGEgbGlzdCBvZiBzeW1ib2xzIHN1cHBvcnRlZCBmb3IgdHJhZGUgKGV4OiBCVEMtVVNEKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgVHJhZGUgICAgICAgICAgICAgICAgfCAvYXBpL3RyYWRlcyAgICAgICAgICAgICAgICAgICAgfCBDcmVhdGUgYW5kIGxpc3QgdHJhZGVzLCB3aGljaCBidXkgb3Igc2VsbCBjcnlwdG9jdXJyZW5jeSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBUcmFuc2ZlciAgICAgICA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GVfOiAndGV4dCcgfCAnanNvbicgfCAnYmxvYicgPSAnanNvbic7XG4gICAgICAgIGlmIChsb2NhbFZhckh0dHBIZWFkZXJBY2NlcHRTZWxlY3RlZCkge1xuICAgICAgICAgICAgaWYgKGxvY2FsVmFySHR0cEhlYWRlckFjY2VwdFNlbGVjdGVkLnN0YXJ0c1dpdGgoJ3RleHQnKSkge1xuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZV8gPSAndGV4dCc7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKHRoaXMuY29uZmlndXJhdGlvbi5pc0pzb25NaW1lKGxvY2FsVmFySHR0cEhlYWRlckFjY2VwdFNlbGVjdGVkKSkge1xuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZV8gPSAnanNvbic7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZV8gPSAnYmxvYic7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gdGhpcy5odHRwQ2xpZW50LnBvc3Q8Q3VzdG9tZXJUb2tlbklkcE1vZGVsPihgJHt0aGlzLmNvbmZpZ3VyYXRpb24uYmFzZVBhdGh9L2FwaS9jdXN0b21lcl90b2tlbnNgLFxuICAgICAgICAgICAgcG9zdEN1c3RvbWVyVG9rZW5JZHBNb2RlbCxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBjb250ZXh0OiBsb2NhbFZhckh0dHBDb250ZXh0LFxuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZTogPGFueT5yZXNwb25zZVR5cGVfLFxuICAgICAgICAgICAgICAgIHdpdGhDcmVkZW50aWFsczogdGhpcy5jb25maWd1cmF0aW9uLndpdGhDcmVkZW50aWFscyxcbiAgICAgICAgICAgICAgICBoZWFkZXJzOiBsb2NhbFZhckhlYWRlcnMsXG4gICAgICAgICAgICAgICAgb2JzZXJ2ZTogb2JzZXJ2ZSxcbiAgICAgICAgICAg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lY3V0ZV8gc2NvcGUgaXMgcmVxdWlyZWQgdG8gY3JlYXRlIGEgcmVzb3VyY2UuICB8IFJlc291cmNlICAgICAgICAgICAgICB8IFJlYWQgc2NvcGUgKFRva2VuIFR5cGUpICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBXcml0ZSBzY29wZSAoVG9rZW4gVHlwZSkgICAgICAgICAgICAgICAgICAgICAgfCBFeGVjdXRlIHNjb3BlIChUb2tlbiBUeXBlKSAgICAgICAgICAgICAgICAgICAgICAgfCB8LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS18LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tfC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tfC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tfCB8IEFjY291bnQgICAgICAgICAgICAgICB8IGFjY291bnRzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBhY2NvdW50czpleGVjdXRlIChCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICAgICAgICAgICB8IGJhbmtzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaykgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBiYW5rczp3cml0ZSAoT3JnYW5pemF0aW9uLCBCYW5rKSAgICAgICAgICAgICAgfCBiYW5rczpleGVjdXRlIChPcmdhbml6YXRpb24pICAgICAgICAgICAgICAgICAgICAgfCB8IEN1c3RvbWVyICAgICAgICAgICAgICB8IGN1c3RvbWVyczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3Rv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3VzdG9tZXIpICAgICAgICAgfCB8IE9yZ2FuaXphdGlvbiAgICAgICAgICB8IG9yZ2FuaXphdGlvbnM6cmVhZCAoT3JnYW5pemF0aW9uKSAgICAgICAgICAgICAgICAgICAgICAgICAgfCBvcmdhbml6YXRpb25zOndyaXRlIChPcmdhbml6YXRpb24pICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IFVzZXIgICAgICAgICAgICAgICAgICB8IHVzZXJzOnJlYWQgKE9yZ2FuaXphdGlvbikgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB1c2VyczpleGVjdXRlIChPcmdhbml6YXRpb24pICAgICAgICAgICAgICAgICAgICAgfCB8IFByaWNlICAgICAgICAgICAgICAgICB8IHByaWNlczpyZWFkIChCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IFF1b3RlICAgICAgICAgICAgICAgICB8IHF1b3RlczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCBxdW90ZXM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgfCB8IFRyYWRlICAgICAgICAgICAgICAgICB8IHRyYWRlczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB0cmFkZXM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgICAgfCB8IFRyYW5zZmVyICAgICAgICAgICAgICB8IHRyYW5zZmVyczpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB0cmFuc2ZlcnM6ZXhlY3V0ZSAoT3JnYW5pemF0aW9uLCBCYW5rLCBDdXN0b21lcikgfCB8IFdvcmtmbG93ICAgICAgICAgICAgICB8IHdvcmtmbG93czpyZWFkIChPcmdhbml6YXRpb24sIEJhbmssIEN1c3RvbWVyKSAgICAgICAgICAgICAgfCAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB3b3JrZmxvd3M6ZXhlY3V0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgICAgICAgfCB8IEludm9pY2UgICAgICAgICAgICAgICB8IGludm9pY2VzOnJlYWQgKE9yZ2FuaXphdGlvbiwgQmFuaywgQ3VzdG9tZXIpICAgICAgICAgICAgICAgfCBpbnZvaWNlczp3cml0ZSAoQmFuaywgQ3VzdG9tZXIpICAgICAgICAgICAgICAgfCBpbnZvaWNlczpleGVjdXRlIChCYW5rLCBDdXN0b21lcikgICAgICAgICAgICAgICAgfCAgIyMgQXZhaWxhYmxlIEVuZHBvaW50cyAgVGhlIGF2YWlsYWJsZSBBUElzIGZvciB0aGUgW0lkZW50aXR5XShodHRwczovL2lkLnByb2R1Y3Rpb24uY3licmlkLmFwcC9hcGkvc2NoZW1hL3N3YWdnZXItdWkpLCBbT3JnYW5pemF0aW9uXShodHRwczovL29yZ2FuaXphdGlvbi5wcm9kdWN0aW9uLmN5YnJpZC5hcHAvYXBpL3NjaGVtYS9zd2FnZ2VyLXVpKSBhbmQgW0JhbmtdKGh0dHBzOi8vYmFuay5wcm9kdWN0aW9uLmN5YnJpZC5hcHAvYXBpL3NjaGVtYS9zd2FnZ2VyLXVpKSBBUEkgc2VydmljZXMgYXJlIGxpc3RlZCBiZWxvdzogIHwgQVBJIFNlcnZpY2UgIHwgTW9kZWwgICAgICAgICAgICAgICAgfCBBUEkgRW5kcG9pbnQgUGF0aCAgICAgICAgICAgICAgfCBEZXNjcmlwdGlvbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfC0tLS0tLS0tLS0tLS0tfC0tLS0tLS0tLS0tLS0tLS0tLS0tLS18LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS18LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tfCB8IElkZW50aXR5ICAgICB8IEJhbmsgICAgICAgICAgICAgICAgIHwgL2FwaS9iYW5rX2FwcGxpY2F0aW9ucyAgICAgICAgIHwgQ3JlYXRlIGFuZCBsaXN0IGJhbmtzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgSWRlbnRpdHkgICAgIHwgQ3VzdG9tZXJUb2tlbiAgICAgICAgfCAvYXBpL2N1c3RvbWVyX3Rva2VucyAgICAgICAgICAgfCBDcmVhdGUgY3VzdG9tZXIgSldUIGFjY2VzcyB0b2tlbnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBJZGVudGl0eSAgICAgfCBPcmdhbml6YXRpb24gICAgICAgICB8IC9hcGkvb3JnYW5pemF0aW9uX2FwcGxpY2F0aW9ucyB8IENyZWF0ZSBhbmQgbGlzdCBvcmdhbml6YXRpb25zICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IElkZW50aXR5ICAgICB8IE9yZ2FuaXphdGlvbiAgICAgICAgIHwgL2FwaS91c2VycyAgICAgICAgICAgICAgICAgICAgIHwgQ3JlYXRlIGFuZCBsaXN0IG9yZ2FuaXphdGlvbiB1c2VycyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgT3JnYW5pemF0aW9uIHwgT3JnYW5pemF0aW9uICAgICAgICAgfCAvYXBpL29yZ2FuaXphdGlvbnMgICAgICAgICAgICAgfCBBUElzIHRvIHJldHJpZXZlIGFuZCB1cGRhdGUgb3JnYW5pemF0aW9uIG5hbWUgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBBY2NvdW50ICAgICAgICAgICAgICB8IC9hcGkvYWNjb3VudHMgICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBhY2NvdW50cywgd2hpY2ggaG9sZCBhIHNwZWNpZmljIGFzc2V0IGZvciBhIGN1c3RvbWVycyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IEFzc2V0ICAgICAgICAgICAgICAgIHwgL2FwaS9hc3NldHMgICAgICAgICAgICAgICAgICAgIHwgR2V0IGEgbGlzdCBvZiBhc3NldHMgc3VwcG9ydGVkIGJ5IHRoZSBwbGF0Zm9ybSAoZXg6IEJUQywgRVRIKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgQmFuayAgICAgICAgICAgICAgICAgfCAvYXBpL2JhbmtzICAgICAgICAgICAgICAgICAgICAgfCBDcmVhdGUsIHVwZGF0ZSBhbmQgbGlzdCBiYW5rcywgdGhlIHBhcmVudCB0byBjdXN0b21lcnMsIGFjY291bnRzLCBldGMgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBDdXN0b21lciAgICAgICAgICAgICB8IC9hcGkvY3VzdG9tZXJzICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBjdXN0b21lcnMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IENvdW50ZXJwYXJ0eSAgICAgICAgIHwgL2FwaS9jb3VudGVycGFydGllcyAgICAgICAgICAgIHwgQ3JlYXRlIGFuZCBsaXN0IGNvdW50ZXJwYXJ0aWVzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgRGVwb3NpdEFkZHJlc3MgICAgICAgfCAvYXBpL2RlcG9zaXRfYWRkcmVzc2VzICAgICAgICAgfCBDcmVhdGUsIGdldCBhbmQgbGlzdCBkZXBvc2l0IGFkZHJlc3NlcyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBFeHRlcm5hbEJhbmtBY2NvdW50ICB8IC9hcGkvZXh0ZXJuYWxfYmFua19hY2NvdW50cyAgICB8IENyZWF0ZSwgZ2V0IGFuZCBsaXN0IGV4dGVybmFsIGJhbmsgYWNjb3VudHMsIHdoaWNoIGNvbm5lY3QgY3VzdG9tZXIgYmFuayBhY2NvdW50cyB0byB0aGUgcGxhdGZvcm0gfCB8IEJhbmsgICAgICAgICB8IEV4dGVybmFsV2FsbGV0ICAgICAgIHwgL2FwaS9leHRlcm5hbF93YWxsZXRzICAgICAgICAgIHwgQ3JlYXRlLCBnZXQsIGxpc3QgYW5kIGRlbGV0ZSBleHRlcm5hbCB3YWxsZXRzLCB3aGljaCBjb25uZWN0IGN1c3RvbWVyIHdhbGxldHMgdG8gdGhlIHBsYXRmb3JtICAgICB8IHwgQmFuayAgICAgICAgIHwgSWRlbnRpdHlWZXJpZmljYXRpb24gfCAvYXBpL2lkZW50aXR5X3ZlcmlmaWNhdGlvbnMgICAgfCBDcmVhdGUgYW5kIGxpc3QgaWRlbnRpdHkgdmVyaWZpY2F0aW9ucywgd2hpY2ggYXJlIHBlcmZvcm1lZCBvbiBjdXN0b21lcnMgZm9yIEtZQyAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBJbnZvaWNlICAgICAgICAgICAgICB8IC9hcGkvaW52b2ljZXMgICAgICAgICAgICAgICAgICB8IENyZWF0ZSwgZ2V0LCBjYW5jZWwgYW5kIGxpc3QgaW52b2ljZXMgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IFBheW1lbnRJbnN0cnVjdGlvbiAgIHwgL2FwaS9wYXltZW50X2luc3RydWN0aW9ucyAgICAgIHwgQ3JlYXRlLCBnZXQgYW5kIGxpc3QgcGF5bWVudCBpbnN0cnVjdGlvbnMgZm9yIGludm9pY2VzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgUHJpY2UgICAgICAgICAgICAgICAgfCAvYXBpL3ByaWNlcyAgICAgICAgICAgICAgICAgICAgfCBHZXQgdGhlIGN1cnJlbnQgcHJpY2VzIGZvciBhc3NldHMgb24gdGhlIHBsYXRmb3JtICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBRdW90ZSAgICAgICAgICAgICAgICB8IC9hcGkvcXVvdGVzICAgICAgICAgICAgICAgICAgICB8IENyZWF0ZSBhbmQgbGlzdCBxdW90ZXMsIHdoaWNoIGFyZSByZXF1aXJlZCB0byBleGVjdXRlIHRyYWRlcyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IFN5bWJvbCAgICAgICAgICAgICAgIHwgL2FwaS9zeW1ib2xzICAgICAgICAgICAgICAgICAgIHwgR2V0IGEgbGlzdCBvZiBzeW1ib2xzIHN1cHBvcnRlZCBmb3IgdHJhZGUgKGV4OiBCVEMtVVNEKSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8IHwgQmFuayAgICAgICAgIHwgVHJhZGUgICAgICAgICAgICAgICAgfCAvYXBpL3RyYWRlcyAgICAgICAgICAgICAgICAgICAgfCBDcmVhdGUgYW5kIGxpc3QgdHJhZGVzLCB3aGljaCBidXkgb3Igc2VsbCBjcnlwdG9jdXJyZW5jeSAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHwgfCBCYW5rICAgICAgICAgfCBUcmFuc2ZlciAgICAgICAgICAgICB8IC9hcGkvdHJhbnNmZXJzICAgICAgICAgICAgICAgICB8IENyZWF0ZSwgZ2V0IGFuZCBsaXN0IHRyYW5zZmVycyAoZS5nLiwgZnVuZGluZywgYm9vaykgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgfCB8IEJhbmsgICAgICAgICB8IFdvcmtmbG93ICAgICAgICAgICAgIHwgL2FwaS93b3JrZmxvd3MgICAgICAgICAgICAgICAgIHwgQ3JlYXRlLCBnZXQgYW5kIGxpc3Qgd29ya2Zsb3dzICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICB8ICAjIyBVbmRlcnN0YW5kaW5nIE9iamVjdCBNb2RlbHMgJiBFbmRwb2ludHMgICoqT3JnYW5pemF0aW9ucyoqICBBbiBgT3JnYW5pemF0aW9uYCBpcyBtZWFudCB0byByZXByZXNlbnQgdGhlIG9yZ2FuaXphdGlvbiBwYXJ0bmVyaW5nIHdpdGggQ3licmlkIHRvIHVzZSBvdXIgcGxhdGZvc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ztcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICh0eXBlb2YgdmFsdWUgPT09IFwib2JqZWN0XCIpIHtcbiAgICAgICAgICAgIGlmIChBcnJheS5pc0FycmF5KHZhbHVlKSkge1xuICAgICAgICAgICAgICAgICh2YWx1ZSBhcyBhbnlbXSkuZm9yRWFjaCggZWxlbSA9PiBodHRwUGFyYW1zID0gdGhpcy5hZGRUb0h0dHBQYXJhbXNSZWN1cnNpdmUoaHR0cFBhcmFtcywgZWxlbSwga2V5KSk7XG4gICAgICAgICAgICB9IGVsc2UgaWYgKHZhbHVlIGluc3RhbmNlb2YgRGF0ZSkge1xuICAgICAgICAgICAgICAgIGlmIChrZXkgIT0gbnVsbCkge1xuICAgICAgICAgICAgICAgICAgICBodHRwUGFyYW1zID0gaHR0cFBhcmFtcy5hcHBlbmQoa2V5LCAodmFsdWUgYXMgRGF0ZSkudG9JU09TdHJpbmcoKS5zdWJzdHIoMCwgMTApKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgIHRocm93IEVycm9yKFwia2V5IG1heSBub3QgYmUgbnVsbCBpZiB2YWx1ZSBpcyBEYXRlXCIpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgT2JqZWN0LmtleXModmFsdWUpLmZvckVhY2goIGsgPT4gaHR0cFBhcmFtcyA9IHRoaXMuYWRkVG9IdHRwUGFyYW1zUmVjdXJzaXZlKFxuICAgICAgICAgICAgICAgICAgICBodHRwUGFyYW1zLCB2YWx1ZVtrXSwga2V5ICE9IG51bGwgPyBgJHtrZXl9LiR7a31gIDogaykpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9IGVsc2UgaWYgKGtleSAhPSBudWxsKSB7XG4gICAgICAgICAgICBodHRwUGFyYW1zID0gaHR0cFBhcmFtcy5hcHBlbmQoa2V5LCB2YWx1ZSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgIC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ZXJUb2tlbklkcE1vZGVsPihgJHt0aGlzLmNvbmZpZ3VyYXRpb24uYmFzZVBhdGh9L2FwaS9jdXN0b21lcl90b2tlbnNgLFxuICAgICAgICAgICAgcG9zdEN1c3RvbWVyVG9rZW5JZHBNb2RlbCxcbiAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICBjb250ZXh0OiBsb2NhbFZhckh0dHBDb250ZXh0LFxuICAgICAgICAgICAgICAgIHJlc3BvbnNlVHlwZTogPGFueT5yZXNwb25zZVR5cGVfLFxuICAgICAgICAgICAgICAgIHdpdGhDcmVkZW50aWFsczogdGhpcy5jb25maWd1cmF0aW9uLndpdGhDcmVkZW50aWFscyxcbiAgICAgICAgICAgICAgICBoZWFkZXJzOiBsb2NhbFZhckhlYWRlcnMsXG4gICAgICAgICAgICAgICAgb2JzZXJ2ZTogb2JzZXJ2ZSxcbiAgICAgICAgICAgICAgICByZXBvcnRQcm9ncmVzczogcmVwb3J0UHJvZ3Jlc3NcbiAgICAgICAgICAgIH1cbiAgICAgICAgKTtcbiAgICB9XG5cbn1cbiJdfQ==
|