@brightinteractive/platform-api 0.1.123 → 0.1.125

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.
@@ -6798,6 +6798,207 @@ interface AssetPatchRequest {
6798
6798
  currentAssetFileId?: string | null;
6799
6799
  }
6800
6800
 
6801
+ /**
6802
+ * Dash API
6803
+ * # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](/dash/openapi/assets/postassetupload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash, including how to obtain your client ID and secret. However, if you just want to try out an API endpoint, you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret you can either use the Dash app or the API. **In the Dash app (recommended)** Sign in to Dash as an account admin, go to **Admin** > **Integrations**, open the **REST API** tab and switch **Enable API** on. Your **Client ID** and **Secret key** are then displayed, each with a button to copy it, and you can manage your allowed callback URLs on the same page. **Via the API** Follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](/dash/openapi/custom/putcustomintegrationsettings). The response you receive from the custom integration settings endpoint will include your client ID and secret. Whichever route you take, your credentials are stored rather than shown only once, so you can read them back at any time with [get custom integration settings](/dash/openapi/custom/getcustomintegrationsettings). There is a single client ID and secret per Dash account. Deleting your custom integration settings, or switching **Enable API** off in the Dash app, revokes them along with your saved URLs, and enabling the API again issues a new client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint. ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](/dash/openapi/assets/postassetsearch) with the `STAGED_BY` criterion to find all [`Asset`](/dash/openapi/Assets) resources staged by the current user. Alternatively the [GET Current User](/dash/openapi/users/getcurrentuser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Rate Limits Requests are rate limited per user and per account. | Scope | Sustained rate | Burst | | -- | -- | -- | | Per user | 20 requests per second | 100 requests | | Per account | 100 requests per second | 500 requests | A request that exceeds a limit receives a `429 Too Many Requests` response with the following headers: | Header | Description | | -- | -- | | `Retry-After` | Seconds to wait before retrying. | | `RateLimit-Policy` | The limit that was exceeded, `\"user\"` or `\"account\"`, with its quota `q` over a window of `w` seconds. | | `RateLimit` | The requests remaining `r` in that limit, and the seconds `t` until it is restored. | To stay within the limits, use endpoints that work on many resources at once, such as searches and batch jobs, rather than making a request per resource. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](/dash/openapi/users/getcurrentuser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](/dash/openapi/Assets) resources then the [GET Current User](/dash/openapi/users/getcurrentuser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](/dash/openapi/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](/dash/openapi/Fields) IDs. Full details, including the field name, can be got via the [GET Field](/dash/openapi/fields/getfield) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](/dash/openapi/Fields) or a list of [`FieldOption`](/dash/openapi/Field-Options) IDs if [`Field.hasFixedOptions = true`](/dash/openapi/Fields) Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) details, including the field option name, can be got via the [GET Field Option](/dash/openapi/field-options/getfieldoption) endpoint. Where [`Field.hierarchical = true`](/dash/openapi/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](/dash/openapi/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) the [POST Field Option Searches](/dash/openapi/field-options/postfieldoptionsearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](/dash/openapi/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](/dash/openapi/Field-Options), for the built-in Folders [`Field`](/dash/openapi/Fields). To determine the ID of the Folders [`Field`](/dash/openapi/Fields), use the [`Folder Settings`](/dash/openapi/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](/dash/openapi/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](/dash/openapi/assets/postassetsearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](/dash/openapi/assets/postassetanduploadbatchjob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](/dash/openapi/assets/postassetupload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](/dash/openapi/assets/postassetupload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) 4. The assets will be created with a [`Asset.lifecycleStatus`](/dash/openapi/Assets) of `STAGED`. Use the [POST Asset lifecycle transition batch job](/dash/openapi/assets/postassetlifecycletransitionbatchjob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](/dash/openapi/assets/postassetupload) via the [POST Asset Upload](/dash/openapi/assets/postassetupload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) ## Getting asset file versions The current [`AssetFile`](/dash/openapi/assets/getassetfiles) for an [`Asset`](/dash/openapi/Assets) is returned in the [`Asset`](/dash/openapi/Assets) resource via the [`Asset.currentFile`](/dash/openapi/Assets) property. The [GET Asset Files](/dash/openapi/assets/getassetfiles) endpoint can be used to get all [`AssetFile`](/dash/openapi/assets/getassetfiles) resources for an [`Asset`](/dash/openapi/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](/dash/openapi/Assets) map properties via the [POST Asset Metadata Edit Batch Job](/dash/openapi/assets/postassetmetadataeditbatchjob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](/dash/openapi/assets/getassetmetadataeditbatchjob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](/dash/openapi/collections/postcollectionsearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](/dash/openapi/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint for how to specify the [`Collection.id`](/dash/openapi/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](/dash/openapi/Assets) : The datetime the latest [`AssetFile`](/dash/openapi/assets/getassetfiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](/dash/openapi/Assets) : The datetime the *any* change was made to an [`Asset`](/dash/openapi/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
6804
+ *
6805
+ * The version of the OpenAPI document: 2.0.0
6806
+ * Contact: help@dash.app
6807
+ *
6808
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6809
+ * https://openapi-generator.tech
6810
+ * Do not edit the class manually.
6811
+ */
6812
+ interface AssetPromptOutput {
6813
+ /**
6814
+ * The model\'s output for the asset
6815
+ */
6816
+ text: string;
6817
+ }
6818
+
6819
+ /**
6820
+ * Dash API
6821
+ * # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](/dash/openapi/assets/postassetupload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash, including how to obtain your client ID and secret. However, if you just want to try out an API endpoint, you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret you can either use the Dash app or the API. **In the Dash app (recommended)** Sign in to Dash as an account admin, go to **Admin** > **Integrations**, open the **REST API** tab and switch **Enable API** on. Your **Client ID** and **Secret key** are then displayed, each with a button to copy it, and you can manage your allowed callback URLs on the same page. **Via the API** Follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](/dash/openapi/custom/putcustomintegrationsettings). The response you receive from the custom integration settings endpoint will include your client ID and secret. Whichever route you take, your credentials are stored rather than shown only once, so you can read them back at any time with [get custom integration settings](/dash/openapi/custom/getcustomintegrationsettings). There is a single client ID and secret per Dash account. Deleting your custom integration settings, or switching **Enable API** off in the Dash app, revokes them along with your saved URLs, and enabling the API again issues a new client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint. ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](/dash/openapi/assets/postassetsearch) with the `STAGED_BY` criterion to find all [`Asset`](/dash/openapi/Assets) resources staged by the current user. Alternatively the [GET Current User](/dash/openapi/users/getcurrentuser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Rate Limits Requests are rate limited per user and per account. | Scope | Sustained rate | Burst | | -- | -- | -- | | Per user | 20 requests per second | 100 requests | | Per account | 100 requests per second | 500 requests | A request that exceeds a limit receives a `429 Too Many Requests` response with the following headers: | Header | Description | | -- | -- | | `Retry-After` | Seconds to wait before retrying. | | `RateLimit-Policy` | The limit that was exceeded, `\"user\"` or `\"account\"`, with its quota `q` over a window of `w` seconds. | | `RateLimit` | The requests remaining `r` in that limit, and the seconds `t` until it is restored. | To stay within the limits, use endpoints that work on many resources at once, such as searches and batch jobs, rather than making a request per resource. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](/dash/openapi/users/getcurrentuser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](/dash/openapi/Assets) resources then the [GET Current User](/dash/openapi/users/getcurrentuser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](/dash/openapi/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](/dash/openapi/Fields) IDs. Full details, including the field name, can be got via the [GET Field](/dash/openapi/fields/getfield) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](/dash/openapi/Fields) or a list of [`FieldOption`](/dash/openapi/Field-Options) IDs if [`Field.hasFixedOptions = true`](/dash/openapi/Fields) Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) details, including the field option name, can be got via the [GET Field Option](/dash/openapi/field-options/getfieldoption) endpoint. Where [`Field.hierarchical = true`](/dash/openapi/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](/dash/openapi/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) the [POST Field Option Searches](/dash/openapi/field-options/postfieldoptionsearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](/dash/openapi/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](/dash/openapi/Field-Options), for the built-in Folders [`Field`](/dash/openapi/Fields). To determine the ID of the Folders [`Field`](/dash/openapi/Fields), use the [`Folder Settings`](/dash/openapi/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](/dash/openapi/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](/dash/openapi/assets/postassetsearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](/dash/openapi/assets/postassetanduploadbatchjob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](/dash/openapi/assets/postassetupload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](/dash/openapi/assets/postassetupload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) 4. The assets will be created with a [`Asset.lifecycleStatus`](/dash/openapi/Assets) of `STAGED`. Use the [POST Asset lifecycle transition batch job](/dash/openapi/assets/postassetlifecycletransitionbatchjob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](/dash/openapi/assets/postassetupload) via the [POST Asset Upload](/dash/openapi/assets/postassetupload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) ## Getting asset file versions The current [`AssetFile`](/dash/openapi/assets/getassetfiles) for an [`Asset`](/dash/openapi/Assets) is returned in the [`Asset`](/dash/openapi/Assets) resource via the [`Asset.currentFile`](/dash/openapi/Assets) property. The [GET Asset Files](/dash/openapi/assets/getassetfiles) endpoint can be used to get all [`AssetFile`](/dash/openapi/assets/getassetfiles) resources for an [`Asset`](/dash/openapi/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](/dash/openapi/Assets) map properties via the [POST Asset Metadata Edit Batch Job](/dash/openapi/assets/postassetmetadataeditbatchjob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](/dash/openapi/assets/getassetmetadataeditbatchjob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](/dash/openapi/collections/postcollectionsearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](/dash/openapi/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint for how to specify the [`Collection.id`](/dash/openapi/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](/dash/openapi/Assets) : The datetime the latest [`AssetFile`](/dash/openapi/assets/getassetfiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](/dash/openapi/Assets) : The datetime the *any* change was made to an [`Asset`](/dash/openapi/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
6822
+ *
6823
+ * The version of the OpenAPI document: 2.0.0
6824
+ * Contact: help@dash.app
6825
+ *
6826
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6827
+ * https://openapi-generator.tech
6828
+ * Do not edit the class manually.
6829
+ */
6830
+
6831
+ interface AssetPromptOutputWithPermittedActions {
6832
+ result: AssetPromptOutput;
6833
+ permittedActions: Array<PermittedAction>;
6834
+ }
6835
+
6836
+ /**
6837
+ * Dash API
6838
+ * # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](/dash/openapi/assets/postassetupload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash, including how to obtain your client ID and secret. However, if you just want to try out an API endpoint, you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret you can either use the Dash app or the API. **In the Dash app (recommended)** Sign in to Dash as an account admin, go to **Admin** > **Integrations**, open the **REST API** tab and switch **Enable API** on. Your **Client ID** and **Secret key** are then displayed, each with a button to copy it, and you can manage your allowed callback URLs on the same page. **Via the API** Follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](/dash/openapi/custom/putcustomintegrationsettings). The response you receive from the custom integration settings endpoint will include your client ID and secret. Whichever route you take, your credentials are stored rather than shown only once, so you can read them back at any time with [get custom integration settings](/dash/openapi/custom/getcustomintegrationsettings). There is a single client ID and secret per Dash account. Deleting your custom integration settings, or switching **Enable API** off in the Dash app, revokes them along with your saved URLs, and enabling the API again issues a new client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint. ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](/dash/openapi/assets/postassetsearch) with the `STAGED_BY` criterion to find all [`Asset`](/dash/openapi/Assets) resources staged by the current user. Alternatively the [GET Current User](/dash/openapi/users/getcurrentuser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Rate Limits Requests are rate limited per user and per account. | Scope | Sustained rate | Burst | | -- | -- | -- | | Per user | 20 requests per second | 100 requests | | Per account | 100 requests per second | 500 requests | A request that exceeds a limit receives a `429 Too Many Requests` response with the following headers: | Header | Description | | -- | -- | | `Retry-After` | Seconds to wait before retrying. | | `RateLimit-Policy` | The limit that was exceeded, `\"user\"` or `\"account\"`, with its quota `q` over a window of `w` seconds. | | `RateLimit` | The requests remaining `r` in that limit, and the seconds `t` until it is restored. | To stay within the limits, use endpoints that work on many resources at once, such as searches and batch jobs, rather than making a request per resource. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](/dash/openapi/users/getcurrentuser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](/dash/openapi/Assets) resources then the [GET Current User](/dash/openapi/users/getcurrentuser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](/dash/openapi/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](/dash/openapi/Fields) IDs. Full details, including the field name, can be got via the [GET Field](/dash/openapi/fields/getfield) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](/dash/openapi/Fields) or a list of [`FieldOption`](/dash/openapi/Field-Options) IDs if [`Field.hasFixedOptions = true`](/dash/openapi/Fields) Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) details, including the field option name, can be got via the [GET Field Option](/dash/openapi/field-options/getfieldoption) endpoint. Where [`Field.hierarchical = true`](/dash/openapi/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](/dash/openapi/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) the [POST Field Option Searches](/dash/openapi/field-options/postfieldoptionsearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](/dash/openapi/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](/dash/openapi/Field-Options), for the built-in Folders [`Field`](/dash/openapi/Fields). To determine the ID of the Folders [`Field`](/dash/openapi/Fields), use the [`Folder Settings`](/dash/openapi/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](/dash/openapi/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](/dash/openapi/assets/postassetsearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](/dash/openapi/assets/postassetanduploadbatchjob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](/dash/openapi/assets/postassetupload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](/dash/openapi/assets/postassetupload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) 4. The assets will be created with a [`Asset.lifecycleStatus`](/dash/openapi/Assets) of `STAGED`. Use the [POST Asset lifecycle transition batch job](/dash/openapi/assets/postassetlifecycletransitionbatchjob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](/dash/openapi/assets/postassetupload) via the [POST Asset Upload](/dash/openapi/assets/postassetupload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) ## Getting asset file versions The current [`AssetFile`](/dash/openapi/assets/getassetfiles) for an [`Asset`](/dash/openapi/Assets) is returned in the [`Asset`](/dash/openapi/Assets) resource via the [`Asset.currentFile`](/dash/openapi/Assets) property. The [GET Asset Files](/dash/openapi/assets/getassetfiles) endpoint can be used to get all [`AssetFile`](/dash/openapi/assets/getassetfiles) resources for an [`Asset`](/dash/openapi/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](/dash/openapi/Assets) map properties via the [POST Asset Metadata Edit Batch Job](/dash/openapi/assets/postassetmetadataeditbatchjob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](/dash/openapi/assets/getassetmetadataeditbatchjob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](/dash/openapi/collections/postcollectionsearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](/dash/openapi/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint for how to specify the [`Collection.id`](/dash/openapi/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](/dash/openapi/Assets) : The datetime the latest [`AssetFile`](/dash/openapi/assets/getassetfiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](/dash/openapi/Assets) : The datetime the *any* change was made to an [`Asset`](/dash/openapi/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
6839
+ *
6840
+ * The version of the OpenAPI document: 2.0.0
6841
+ * Contact: help@dash.app
6842
+ *
6843
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6844
+ * https://openapi-generator.tech
6845
+ * Do not edit the class manually.
6846
+ */
6847
+ /**
6848
+ * `ASSET_NOT_FOUND` also covers assets the user is not permitted to view.
6849
+ */
6850
+ type AssetPromptFailure = 'ASSET_NOT_FOUND' | 'PROMPT_FAILED';
6851
+ declare const AssetPromptFailure: {
6852
+ AssetNotFound: AssetPromptFailure;
6853
+ PromptFailed: AssetPromptFailure;
6854
+ };
6855
+
6856
+ /**
6857
+ * Dash API
6858
+ * # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](/dash/openapi/assets/postassetupload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash, including how to obtain your client ID and secret. However, if you just want to try out an API endpoint, you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret you can either use the Dash app or the API. **In the Dash app (recommended)** Sign in to Dash as an account admin, go to **Admin** > **Integrations**, open the **REST API** tab and switch **Enable API** on. Your **Client ID** and **Secret key** are then displayed, each with a button to copy it, and you can manage your allowed callback URLs on the same page. **Via the API** Follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](/dash/openapi/custom/putcustomintegrationsettings). The response you receive from the custom integration settings endpoint will include your client ID and secret. Whichever route you take, your credentials are stored rather than shown only once, so you can read them back at any time with [get custom integration settings](/dash/openapi/custom/getcustomintegrationsettings). There is a single client ID and secret per Dash account. Deleting your custom integration settings, or switching **Enable API** off in the Dash app, revokes them along with your saved URLs, and enabling the API again issues a new client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint. ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](/dash/openapi/assets/postassetsearch) with the `STAGED_BY` criterion to find all [`Asset`](/dash/openapi/Assets) resources staged by the current user. Alternatively the [GET Current User](/dash/openapi/users/getcurrentuser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Rate Limits Requests are rate limited per user and per account. | Scope | Sustained rate | Burst | | -- | -- | -- | | Per user | 20 requests per second | 100 requests | | Per account | 100 requests per second | 500 requests | A request that exceeds a limit receives a `429 Too Many Requests` response with the following headers: | Header | Description | | -- | -- | | `Retry-After` | Seconds to wait before retrying. | | `RateLimit-Policy` | The limit that was exceeded, `\"user\"` or `\"account\"`, with its quota `q` over a window of `w` seconds. | | `RateLimit` | The requests remaining `r` in that limit, and the seconds `t` until it is restored. | To stay within the limits, use endpoints that work on many resources at once, such as searches and batch jobs, rather than making a request per resource. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](/dash/openapi/users/getcurrentuser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](/dash/openapi/Assets) resources then the [GET Current User](/dash/openapi/users/getcurrentuser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](/dash/openapi/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](/dash/openapi/Fields) IDs. Full details, including the field name, can be got via the [GET Field](/dash/openapi/fields/getfield) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](/dash/openapi/Fields) or a list of [`FieldOption`](/dash/openapi/Field-Options) IDs if [`Field.hasFixedOptions = true`](/dash/openapi/Fields) Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) details, including the field option name, can be got via the [GET Field Option](/dash/openapi/field-options/getfieldoption) endpoint. Where [`Field.hierarchical = true`](/dash/openapi/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](/dash/openapi/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) the [POST Field Option Searches](/dash/openapi/field-options/postfieldoptionsearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](/dash/openapi/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](/dash/openapi/Field-Options), for the built-in Folders [`Field`](/dash/openapi/Fields). To determine the ID of the Folders [`Field`](/dash/openapi/Fields), use the [`Folder Settings`](/dash/openapi/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](/dash/openapi/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](/dash/openapi/assets/postassetsearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](/dash/openapi/assets/postassetanduploadbatchjob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](/dash/openapi/assets/postassetupload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](/dash/openapi/assets/postassetupload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) 4. The assets will be created with a [`Asset.lifecycleStatus`](/dash/openapi/Assets) of `STAGED`. Use the [POST Asset lifecycle transition batch job](/dash/openapi/assets/postassetlifecycletransitionbatchjob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](/dash/openapi/assets/postassetupload) via the [POST Asset Upload](/dash/openapi/assets/postassetupload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) ## Getting asset file versions The current [`AssetFile`](/dash/openapi/assets/getassetfiles) for an [`Asset`](/dash/openapi/Assets) is returned in the [`Asset`](/dash/openapi/Assets) resource via the [`Asset.currentFile`](/dash/openapi/Assets) property. The [GET Asset Files](/dash/openapi/assets/getassetfiles) endpoint can be used to get all [`AssetFile`](/dash/openapi/assets/getassetfiles) resources for an [`Asset`](/dash/openapi/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](/dash/openapi/Assets) map properties via the [POST Asset Metadata Edit Batch Job](/dash/openapi/assets/postassetmetadataeditbatchjob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](/dash/openapi/assets/getassetmetadataeditbatchjob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](/dash/openapi/collections/postcollectionsearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](/dash/openapi/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint for how to specify the [`Collection.id`](/dash/openapi/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](/dash/openapi/Assets) : The datetime the latest [`AssetFile`](/dash/openapi/assets/getassetfiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](/dash/openapi/Assets) : The datetime the *any* change was made to an [`Asset`](/dash/openapi/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
6859
+ *
6860
+ * The version of the OpenAPI document: 2.0.0
6861
+ * Contact: help@dash.app
6862
+ *
6863
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6864
+ * https://openapi-generator.tech
6865
+ * Do not edit the class manually.
6866
+ */
6867
+
6868
+ interface AssetPromptBatch {
6869
+ /**
6870
+ * A map of the model\'s output keyed on the asset ID
6871
+ */
6872
+ successes: {
6873
+ [key: string]: AssetPromptOutputWithPermittedActions;
6874
+ };
6875
+ /**
6876
+ * A map of failures keyed on the asset ID
6877
+ */
6878
+ failures: {
6879
+ [key: string]: AssetPromptFailure;
6880
+ };
6881
+ }
6882
+
6883
+ /**
6884
+ * Dash API
6885
+ * # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](/dash/openapi/assets/postassetupload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash, including how to obtain your client ID and secret. However, if you just want to try out an API endpoint, you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret you can either use the Dash app or the API. **In the Dash app (recommended)** Sign in to Dash as an account admin, go to **Admin** > **Integrations**, open the **REST API** tab and switch **Enable API** on. Your **Client ID** and **Secret key** are then displayed, each with a button to copy it, and you can manage your allowed callback URLs on the same page. **Via the API** Follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](/dash/openapi/custom/putcustomintegrationsettings). The response you receive from the custom integration settings endpoint will include your client ID and secret. Whichever route you take, your credentials are stored rather than shown only once, so you can read them back at any time with [get custom integration settings](/dash/openapi/custom/getcustomintegrationsettings). There is a single client ID and secret per Dash account. Deleting your custom integration settings, or switching **Enable API** off in the Dash app, revokes them along with your saved URLs, and enabling the API again issues a new client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint. ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](/dash/openapi/assets/postassetsearch) with the `STAGED_BY` criterion to find all [`Asset`](/dash/openapi/Assets) resources staged by the current user. Alternatively the [GET Current User](/dash/openapi/users/getcurrentuser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Rate Limits Requests are rate limited per user and per account. | Scope | Sustained rate | Burst | | -- | -- | -- | | Per user | 20 requests per second | 100 requests | | Per account | 100 requests per second | 500 requests | A request that exceeds a limit receives a `429 Too Many Requests` response with the following headers: | Header | Description | | -- | -- | | `Retry-After` | Seconds to wait before retrying. | | `RateLimit-Policy` | The limit that was exceeded, `\"user\"` or `\"account\"`, with its quota `q` over a window of `w` seconds. | | `RateLimit` | The requests remaining `r` in that limit, and the seconds `t` until it is restored. | To stay within the limits, use endpoints that work on many resources at once, such as searches and batch jobs, rather than making a request per resource. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](/dash/openapi/users/getcurrentuser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](/dash/openapi/Assets) resources then the [GET Current User](/dash/openapi/users/getcurrentuser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](/dash/openapi/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](/dash/openapi/Fields) IDs. Full details, including the field name, can be got via the [GET Field](/dash/openapi/fields/getfield) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](/dash/openapi/Fields) or a list of [`FieldOption`](/dash/openapi/Field-Options) IDs if [`Field.hasFixedOptions = true`](/dash/openapi/Fields) Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) details, including the field option name, can be got via the [GET Field Option](/dash/openapi/field-options/getfieldoption) endpoint. Where [`Field.hierarchical = true`](/dash/openapi/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](/dash/openapi/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) the [POST Field Option Searches](/dash/openapi/field-options/postfieldoptionsearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](/dash/openapi/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](/dash/openapi/Field-Options), for the built-in Folders [`Field`](/dash/openapi/Fields). To determine the ID of the Folders [`Field`](/dash/openapi/Fields), use the [`Folder Settings`](/dash/openapi/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](/dash/openapi/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](/dash/openapi/assets/postassetsearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](/dash/openapi/assets/postassetanduploadbatchjob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](/dash/openapi/assets/postassetupload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](/dash/openapi/assets/postassetupload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) 4. The assets will be created with a [`Asset.lifecycleStatus`](/dash/openapi/Assets) of `STAGED`. Use the [POST Asset lifecycle transition batch job](/dash/openapi/assets/postassetlifecycletransitionbatchjob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](/dash/openapi/assets/postassetupload) via the [POST Asset Upload](/dash/openapi/assets/postassetupload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) ## Getting asset file versions The current [`AssetFile`](/dash/openapi/assets/getassetfiles) for an [`Asset`](/dash/openapi/Assets) is returned in the [`Asset`](/dash/openapi/Assets) resource via the [`Asset.currentFile`](/dash/openapi/Assets) property. The [GET Asset Files](/dash/openapi/assets/getassetfiles) endpoint can be used to get all [`AssetFile`](/dash/openapi/assets/getassetfiles) resources for an [`Asset`](/dash/openapi/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](/dash/openapi/Assets) map properties via the [POST Asset Metadata Edit Batch Job](/dash/openapi/assets/postassetmetadataeditbatchjob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](/dash/openapi/assets/getassetmetadataeditbatchjob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](/dash/openapi/collections/postcollectionsearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](/dash/openapi/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint for how to specify the [`Collection.id`](/dash/openapi/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](/dash/openapi/Assets) : The datetime the latest [`AssetFile`](/dash/openapi/assets/getassetfiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](/dash/openapi/Assets) : The datetime the *any* change was made to an [`Asset`](/dash/openapi/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
6886
+ *
6887
+ * The version of the OpenAPI document: 2.0.0
6888
+ * Contact: help@dash.app
6889
+ *
6890
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6891
+ * https://openapi-generator.tech
6892
+ * Do not edit the class manually.
6893
+ */
6894
+
6895
+ interface AssetPromptInProgressJob {
6896
+ /**
6897
+ * Unique identifier of the job that has been created
6898
+ */
6899
+ id: string;
6900
+ /**
6901
+ * The ID of the account the job is happening in
6902
+ */
6903
+ accountId: string;
6904
+ /**
6905
+ * The ID of the [`User`](/dash/openapi/Users) who created the job
6906
+ */
6907
+ creatorId: string;
6908
+ /**
6909
+ * The job type
6910
+ */
6911
+ type: AssetPromptInProgressJob.TypeEnum;
6912
+ progress: JobProgress;
6913
+ status: AssetPromptInProgressJob.StatusEnum;
6914
+ /**
6915
+ * The outputs generated so far, allowing partial results to be displayed while the job is still running. The successes and failures are empty until any assets have been processed.
6916
+ */
6917
+ result: AssetPromptBatch;
6918
+ }
6919
+ declare namespace AssetPromptInProgressJob {
6920
+ type TypeEnum = 'IN_PROGRESS';
6921
+ const TypeEnum: {
6922
+ InProgress: TypeEnum;
6923
+ };
6924
+ type StatusEnum = 'PENDING' | 'STARTING' | 'STARTED' | 'STOPPING';
6925
+ const StatusEnum: {
6926
+ Pending: StatusEnum;
6927
+ Starting: StatusEnum;
6928
+ Started: StatusEnum;
6929
+ Stopping: StatusEnum;
6930
+ };
6931
+ }
6932
+
6933
+ /**
6934
+ * Dash API
6935
+ * # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](/dash/openapi/assets/postassetupload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash, including how to obtain your client ID and secret. However, if you just want to try out an API endpoint, you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret you can either use the Dash app or the API. **In the Dash app (recommended)** Sign in to Dash as an account admin, go to **Admin** > **Integrations**, open the **REST API** tab and switch **Enable API** on. Your **Client ID** and **Secret key** are then displayed, each with a button to copy it, and you can manage your allowed callback URLs on the same page. **Via the API** Follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](/dash/openapi/custom/putcustomintegrationsettings). The response you receive from the custom integration settings endpoint will include your client ID and secret. Whichever route you take, your credentials are stored rather than shown only once, so you can read them back at any time with [get custom integration settings](/dash/openapi/custom/getcustomintegrationsettings). There is a single client ID and secret per Dash account. Deleting your custom integration settings, or switching **Enable API** off in the Dash app, revokes them along with your saved URLs, and enabling the API again issues a new client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint. ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](/dash/openapi/assets/postassetsearch) with the `STAGED_BY` criterion to find all [`Asset`](/dash/openapi/Assets) resources staged by the current user. Alternatively the [GET Current User](/dash/openapi/users/getcurrentuser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Rate Limits Requests are rate limited per user and per account. | Scope | Sustained rate | Burst | | -- | -- | -- | | Per user | 20 requests per second | 100 requests | | Per account | 100 requests per second | 500 requests | A request that exceeds a limit receives a `429 Too Many Requests` response with the following headers: | Header | Description | | -- | -- | | `Retry-After` | Seconds to wait before retrying. | | `RateLimit-Policy` | The limit that was exceeded, `\"user\"` or `\"account\"`, with its quota `q` over a window of `w` seconds. | | `RateLimit` | The requests remaining `r` in that limit, and the seconds `t` until it is restored. | To stay within the limits, use endpoints that work on many resources at once, such as searches and batch jobs, rather than making a request per resource. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](/dash/openapi/users/getcurrentuser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](/dash/openapi/Assets) resources then the [GET Current User](/dash/openapi/users/getcurrentuser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](/dash/openapi/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](/dash/openapi/Fields) IDs. Full details, including the field name, can be got via the [GET Field](/dash/openapi/fields/getfield) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](/dash/openapi/Fields) or a list of [`FieldOption`](/dash/openapi/Field-Options) IDs if [`Field.hasFixedOptions = true`](/dash/openapi/Fields) Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) details, including the field option name, can be got via the [GET Field Option](/dash/openapi/field-options/getfieldoption) endpoint. Where [`Field.hierarchical = true`](/dash/openapi/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](/dash/openapi/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) the [POST Field Option Searches](/dash/openapi/field-options/postfieldoptionsearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](/dash/openapi/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](/dash/openapi/Field-Options), for the built-in Folders [`Field`](/dash/openapi/Fields). To determine the ID of the Folders [`Field`](/dash/openapi/Fields), use the [`Folder Settings`](/dash/openapi/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](/dash/openapi/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](/dash/openapi/assets/postassetsearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](/dash/openapi/assets/postassetanduploadbatchjob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](/dash/openapi/assets/postassetupload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](/dash/openapi/assets/postassetupload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) 4. The assets will be created with a [`Asset.lifecycleStatus`](/dash/openapi/Assets) of `STAGED`. Use the [POST Asset lifecycle transition batch job](/dash/openapi/assets/postassetlifecycletransitionbatchjob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](/dash/openapi/assets/postassetupload) via the [POST Asset Upload](/dash/openapi/assets/postassetupload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) ## Getting asset file versions The current [`AssetFile`](/dash/openapi/assets/getassetfiles) for an [`Asset`](/dash/openapi/Assets) is returned in the [`Asset`](/dash/openapi/Assets) resource via the [`Asset.currentFile`](/dash/openapi/Assets) property. The [GET Asset Files](/dash/openapi/assets/getassetfiles) endpoint can be used to get all [`AssetFile`](/dash/openapi/assets/getassetfiles) resources for an [`Asset`](/dash/openapi/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](/dash/openapi/Assets) map properties via the [POST Asset Metadata Edit Batch Job](/dash/openapi/assets/postassetmetadataeditbatchjob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](/dash/openapi/assets/getassetmetadataeditbatchjob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](/dash/openapi/collections/postcollectionsearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](/dash/openapi/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint for how to specify the [`Collection.id`](/dash/openapi/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](/dash/openapi/Assets) : The datetime the latest [`AssetFile`](/dash/openapi/assets/getassetfiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](/dash/openapi/Assets) : The datetime the *any* change was made to an [`Asset`](/dash/openapi/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
6936
+ *
6937
+ * The version of the OpenAPI document: 2.0.0
6938
+ * Contact: help@dash.app
6939
+ *
6940
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6941
+ * https://openapi-generator.tech
6942
+ * Do not edit the class manually.
6943
+ */
6944
+
6945
+ interface AssetPromptCompletedJob {
6946
+ /**
6947
+ * Unique identifier of the job that has been created
6948
+ */
6949
+ id: string;
6950
+ /**
6951
+ * The ID of the account the job is happening in
6952
+ */
6953
+ accountId: string;
6954
+ /**
6955
+ * The ID of the [`User`](/dash/openapi/Users) who created the job
6956
+ */
6957
+ creatorId: string;
6958
+ /**
6959
+ * The job type
6960
+ */
6961
+ type: AssetPromptCompletedJob.TypeEnum;
6962
+ progress: JobProgress;
6963
+ /**
6964
+ * The datetime the job was completed in ISO datetime format
6965
+ */
6966
+ dateCompleted: string;
6967
+ result: AssetPromptBatch;
6968
+ }
6969
+ declare namespace AssetPromptCompletedJob {
6970
+ type TypeEnum = 'COMPLETED';
6971
+ const TypeEnum: {
6972
+ Completed: TypeEnum;
6973
+ };
6974
+ }
6975
+
6976
+ /**
6977
+ * @type AssetPromptBatchJob
6978
+ * @export
6979
+ */
6980
+ type AssetPromptBatchJob = AssetPromptCompletedJob | AssetPromptInProgressJob | FailedJob;
6981
+
6982
+ /**
6983
+ * Dash API
6984
+ * # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](/dash/openapi/assets/postassetupload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash, including how to obtain your client ID and secret. However, if you just want to try out an API endpoint, you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret you can either use the Dash app or the API. **In the Dash app (recommended)** Sign in to Dash as an account admin, go to **Admin** > **Integrations**, open the **REST API** tab and switch **Enable API** on. Your **Client ID** and **Secret key** are then displayed, each with a button to copy it, and you can manage your allowed callback URLs on the same page. **Via the API** Follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](/dash/openapi/custom/putcustomintegrationsettings). The response you receive from the custom integration settings endpoint will include your client ID and secret. Whichever route you take, your credentials are stored rather than shown only once, so you can read them back at any time with [get custom integration settings](/dash/openapi/custom/getcustomintegrationsettings). There is a single client ID and secret per Dash account. Deleting your custom integration settings, or switching **Enable API** off in the Dash app, revokes them along with your saved URLs, and enabling the API again issues a new client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint. ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](/dash/openapi/assets/postassetsearch) with the `STAGED_BY` criterion to find all [`Asset`](/dash/openapi/Assets) resources staged by the current user. Alternatively the [GET Current User](/dash/openapi/users/getcurrentuser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Rate Limits Requests are rate limited per user and per account. | Scope | Sustained rate | Burst | | -- | -- | -- | | Per user | 20 requests per second | 100 requests | | Per account | 100 requests per second | 500 requests | A request that exceeds a limit receives a `429 Too Many Requests` response with the following headers: | Header | Description | | -- | -- | | `Retry-After` | Seconds to wait before retrying. | | `RateLimit-Policy` | The limit that was exceeded, `\"user\"` or `\"account\"`, with its quota `q` over a window of `w` seconds. | | `RateLimit` | The requests remaining `r` in that limit, and the seconds `t` until it is restored. | To stay within the limits, use endpoints that work on many resources at once, such as searches and batch jobs, rather than making a request per resource. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](/dash/openapi/users/getcurrentuser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](/dash/openapi/Assets) resources then the [GET Current User](/dash/openapi/users/getcurrentuser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](/dash/openapi/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](/dash/openapi/Fields) IDs. Full details, including the field name, can be got via the [GET Field](/dash/openapi/fields/getfield) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](/dash/openapi/Fields) or a list of [`FieldOption`](/dash/openapi/Field-Options) IDs if [`Field.hasFixedOptions = true`](/dash/openapi/Fields) Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) details, including the field option name, can be got via the [GET Field Option](/dash/openapi/field-options/getfieldoption) endpoint. Where [`Field.hierarchical = true`](/dash/openapi/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](/dash/openapi/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) the [POST Field Option Searches](/dash/openapi/field-options/postfieldoptionsearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](/dash/openapi/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](/dash/openapi/Field-Options), for the built-in Folders [`Field`](/dash/openapi/Fields). To determine the ID of the Folders [`Field`](/dash/openapi/Fields), use the [`Folder Settings`](/dash/openapi/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](/dash/openapi/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](/dash/openapi/assets/postassetsearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](/dash/openapi/assets/postassetanduploadbatchjob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](/dash/openapi/assets/postassetupload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](/dash/openapi/assets/postassetupload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) 4. The assets will be created with a [`Asset.lifecycleStatus`](/dash/openapi/Assets) of `STAGED`. Use the [POST Asset lifecycle transition batch job](/dash/openapi/assets/postassetlifecycletransitionbatchjob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](/dash/openapi/assets/postassetupload) via the [POST Asset Upload](/dash/openapi/assets/postassetupload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) ## Getting asset file versions The current [`AssetFile`](/dash/openapi/assets/getassetfiles) for an [`Asset`](/dash/openapi/Assets) is returned in the [`Asset`](/dash/openapi/Assets) resource via the [`Asset.currentFile`](/dash/openapi/Assets) property. The [GET Asset Files](/dash/openapi/assets/getassetfiles) endpoint can be used to get all [`AssetFile`](/dash/openapi/assets/getassetfiles) resources for an [`Asset`](/dash/openapi/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](/dash/openapi/Assets) map properties via the [POST Asset Metadata Edit Batch Job](/dash/openapi/assets/postassetmetadataeditbatchjob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](/dash/openapi/assets/getassetmetadataeditbatchjob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](/dash/openapi/collections/postcollectionsearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](/dash/openapi/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint for how to specify the [`Collection.id`](/dash/openapi/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](/dash/openapi/Assets) : The datetime the latest [`AssetFile`](/dash/openapi/assets/getassetfiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](/dash/openapi/Assets) : The datetime the *any* change was made to an [`Asset`](/dash/openapi/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
6985
+ *
6986
+ * The version of the OpenAPI document: 2.0.0
6987
+ * Contact: help@dash.app
6988
+ *
6989
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
6990
+ * https://openapi-generator.tech
6991
+ * Do not edit the class manually.
6992
+ */
6993
+
6994
+ interface AssetPromptBatchRequest {
6995
+ /**
6996
+ * The instructions given to the model, run once per selected [`Asset`](/dash/openapi/Assets). All available context about the asset (filename, file type, metadata values, and the image content for image assets) is supplied to the model alongside the prompt.
6997
+ */
6998
+ prompt: string;
6999
+ selector: AssetsSelector;
7000
+ }
7001
+
6801
7002
  /**
6802
7003
  * Dash API
6803
7004
  * # Introduction The Dash API follows the [REST](https://en.wikipedia.org/wiki/Representational_state_transfer) standard and uses common [HTTP](https://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol) headers, methods and response codes. Request and response bodies are all in [JSON](https://www.json.org/json-en.html) format except for `PUT` requests of binary file data when upload files. # Operations, Jobs and Batches If the standard `PUT`, `PATCH` and `DELETE` methods cannot adequately describe an operation on a resource the operation may itself be treated as a resource and the endpoint URLs will reflect this accordingly. For example making a `POST` to `/asset-uploads` returns an [`AssetUpload`](/dash/openapi/assets/postassetupload) resource which describes the URL(s) the client should `PUT` the binary data to upload a file to an asset. If an operation is unlikely to complete via a synchronous REST call, or asynchronous behaviour is simply preferable, job resource endpoints may provided for the operation. Created job resources can then be periodically polled to Get the status of the operation. Such endpoints can be expected to contain a `job` qualifier. e.g `/asset-download-jobs` and `/asset-download-jobs/{id}` All job resources can be expected to conform to a polymorphic job structure with common properties such as `id`, `progress` and type specific properties such as `dateCompleted` for successfully completed jobs. If an operation can be applied to multiple resources an endpoint may provided to create a batch resource for the operation. Such endpoints can be expected to contain a `batch` qualifier. As batch operations almost always need to be asynchronous you can expect to see both qualifiers in the endpoint URL e.g `/asset-download-batch-jobs` and `/asset-download-batch-jobs/{id}`. # Authorisation ## Get a short-lived bearer token for testing You should read the [OAuth2 section](#section/Authorisation/OAuth2) if you want to set up programmatic API access to Dash, including how to obtain your client ID and secret. However, if you just want to try out an API endpoint, you can get a short-lived bearer token: 1. Log in to your Dash account as normal 2. Open the browser developer tools (CMD + OPTION + I on Mac or CTRL + SHIFT + I on Windows) 3. Click the \"Application\" tab 4. Under \"Storage\" in the left panel, expand \"local storage\" 5. Click on the URL of your Dash site 6. Copy the \"value\" for the access_token from the right-hand panel (be sure to select the whole thing - double click to edit, select all then copy). This token can be used to try out an endpoint directly from these docs. Just click \"Try it...\" in the right-hand panel and enter your token in the \"Auth\" tab. ## OAuth2 Dash uses OAuth 2.0 for authorisation. A good overview of OAuth 2.0 can be found [here](https://auth0.com/docs/protocols/protocol-oauth2). Endpoints: * https://login.dash.app/authorize * https://login.dash.app/oauth/token Scopes to note: * **subdomain**: this should be set to the subdomain of the Dash the user is trying to access e.g. `subdomain:my-account` * **offline_access**: the standard OAuth 2.0 scope to use to obtain a refresh token Audience: An query parameter of `audience=https://assetplatform.io` must be provided to the https://login.dash.app/authorize endpoint To obtain your client ID and secret you can either use the Dash app or the API. **In the Dash app (recommended)** Sign in to Dash as an account admin, go to **Admin** > **Integrations**, open the **REST API** tab and switch **Enable API** on. Your **Client ID** and **Secret key** are then displayed, each with a button to copy it, and you can manage your allowed callback URLs on the same page. **Via the API** Follow the steps above to [get a temporary bearer token](#section/Authorisation/Get-a-short-lived-bearer-token-for-testing) and use this to [create custom integration settings](/dash/openapi/custom/putcustomintegrationsettings). The response you receive from the custom integration settings endpoint will include your client ID and secret. Whichever route you take, your credentials are stored rather than shown only once, so you can read them back at any time with [get custom integration settings](/dash/openapi/custom/getcustomintegrationsettings). There is a single client ID and secret per Dash account. Deleting your custom integration settings, or switching **Enable API** off in the Dash app, revokes them along with your saved URLs, and enabling the API again issues a new client ID and secret. ## Authorization Code Flow To begin the flow, send your user in a browser to to https://login.dash.app/authorize?response_type=code&audience=https://assetplatform.io&client_id={YOUR_CLIENT_ID}&redirect_uri={YOUR_REDIRECT}&scope=offline_access%20subdomain:{YOUR_SUBDOMAIN} Once the user successfully authenticates, they will be redirected to your `redirect_uri` with the Authorization Code provided in a query parameter. Now that you have an Authorization Code, you must exchange it for your tokens via the https://login.dash.app/oauth/token endpoint. ``` curl --request POST \\ --url \'https://login.dash.app/oauth/token\' \\ --header \'content-type: application/x-www-form-urlencoded\' \\ --data grant_type=authorization_code \\ --data \'client_id={YOUR_CLIENT_ID}\' \\ --data \'client_secret={YOUR_CLIENT_SECRET}\' \\ --data \'code={CODE_FROM_PREVIOUS_STEP}\' \\ --data \'redirect_uri={YOUR_REDIRECT}\' ``` A more detailed description of the Authorization Code Flow can be found [here](https://auth0.com/docs/get-started/authentication-and-authorization-flow/add-login-auth-code-flow) ## Authentication Without User Interaction Due to security concerns, neither OAuth grant types `Client Credentials` or `Password` are supported by the Dash API. If you require an automated script to call the Dash API, we recommend going through the Authorization Code Flow described above once, specifying the offline_access scope to get a refresh token along with your access token. Your script can store and use this refresh token to call https://login.dash.app/oauth/token and get a new access token when the current one expires. ## Current User Details The Bearer Token is a standard [JWT](https://jwt.io/introduction) token so can be useful to decode in some cases. For example, the `sub` field of the Bearer Token can be used in cases where you need access to the `User.id` of the current user. e.g. When making an [`AssetSearch`](/dash/openapi/assets/postassetsearch) with the `STAGED_BY` criterion to find all [`Asset`](/dash/openapi/Assets) resources staged by the current user. Alternatively the [GET Current User](/dash/openapi/users/getcurrentuser) endpoint contains properties for the current user to avoid needing to decode the Bearer Token. # Rate Limits Requests are rate limited per user and per account. | Scope | Sustained rate | Burst | | -- | -- | -- | | Per user | 20 requests per second | 100 requests | | Per account | 100 requests per second | 500 requests | A request that exceeds a limit receives a `429 Too Many Requests` response with the following headers: | Header | Description | | -- | -- | | `Retry-After` | Seconds to wait before retrying. | | `RateLimit-Policy` | The limit that was exceeded, `\"user\"` or `\"account\"`, with its quota `q` over a window of `w` seconds. | | `RateLimit` | The requests remaining `r` in that limit, and the seconds `t` until it is restored. | To stay within the limits, use endpoints that work on many resources at once, such as searches and batch jobs, rather than making a request per resource. # Permitted Actions In most responses from the Dash API you will find a `permittedActions` property alongside a `result` property which contains the resource. This is to provide context for operations the current user is permitted to perform on that resource. If an expected permitted action is not included in the `permittedActions` property then the current user does not have permission to perform the action. The [GET Current User](/dash/openapi/users/getcurrentuser) endpoint houses permitted actions which are not associated with a specific API resource instance. e.g. If the current user has permission to create new [`Asset`](/dash/openapi/Assets) resources then the [GET Current User](/dash/openapi/users/getcurrentuser) `permittedActions` property will contain the permitted action `ASSETS` : `CREATE_ASSETS`. # Common Use Cases ## Getting fields and field options for asset metadata [`Asset.metadata`](/dash/openapi/Assets) consists of a map of `String` to `String[]` The keys for map are [`Field`](/dash/openapi/Fields) IDs. Full details, including the field name, can be got via the [GET Field](/dash/openapi/fields/getfield) endpoint or the full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. The map values are a list of plain text values if [`Field.hasFixedOptions = false`](/dash/openapi/Fields) or a list of [`FieldOption`](/dash/openapi/Field-Options) IDs if [`Field.hasFixedOptions = true`](/dash/openapi/Fields) Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) details, including the field option name, can be got via the [GET Field Option](/dash/openapi/field-options/getfieldoption) endpoint. Where [`Field.hierarchical = true`](/dash/openapi/Fields) the complete branch of the tree will be returned and can be constructed via the [`FieldOption.parent`](/dash/openapi/Field-Options) property. ## Getting the full schema of fields and field options The full list of fields for an account can be retrieved via the [GET Fields](/dash/openapi/fields/getfields) endpoint. Where [`Field.hasFixedOptions = true`](/dash/openapi/Fields) the [POST Field Option Searches](/dash/openapi/field-options/postfieldoptionsearch) endpoint can be used to get the available options. Where [`Field.hierarchical = true`](/dash/openapi/Fields) you should start with a `PARENT_ID` `FIELD_IS_EMPTY` query to get the top level options and then `PARENT_ID` `FIELD_EQUALS` queries to get each sub-level. ## Folders A Folder in Dash is simply a [`FieldOption`](/dash/openapi/Field-Options), for the built-in Folders [`Field`](/dash/openapi/Fields). To determine the ID of the Folders [`Field`](/dash/openapi/Fields), use the [`Folder Settings`](/dash/openapi/Folder-Settings) endpoint. Once you have this ID, Folders behave the same as any other [`Field`](/dash/openapi/Fields). For getting the folder tree see [Getting fields and field options for asset metadata](#section/Common-Use-Cases/Getting-fields-and-field-options-for-asset-metadata) and [Getting the full schema of fields and field options](#section/Common-Use-Cases/Getting-the-full-schema-of-fields-and-field-options) For getting assets in folders see [`AssetSearch`](/dash/openapi/assets/postassetsearch) For getting assets in no folders see the _Search for field is empty_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint. ## Creating a new asset Assets are the main resources in Dash. An asset consists of a file, some fixed properties (such as the date the asset was added to Dash) and custom metadata. To create new assets and upload files: 1. [Create an Asset and Upload batch job](/dash/openapi/assets/postassetanduploadbatchjob) 2. Wait for the job to complete by checking the [GET Asset and upload batch job](/dash/openapi/assets/postassetupload/operation/getAssetAndUploadBatchJob) endpoint 3. The completed job includes an [`AssetUpload`](/dash/openapi/assets/postassetupload) resources in the job\'s `result` property. For each file you want to upload: * Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. * Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) 4. The assets will be created with a [`Asset.lifecycleStatus`](/dash/openapi/Assets) of `STAGED`. Use the [POST Asset lifecycle transition batch job](/dash/openapi/assets/postassetlifecycletransitionbatchjob) endpoint if you\'d like to change the state of the assets (e.g. to `PENDING_APPROVAL` or `LIVE`). ## Uploading a new file for an asset 1. Create an [`AssetUpload`](/dash/openapi/assets/postassetupload) via the [POST Asset Upload](/dash/openapi/assets/postassetupload) endpoint 3. Make PUT requests to upload your file part with the byte ranges specified to the URLs in the corresponding `AssetUploadPart`. 4. Get the `etag` property from the response of each PUT request and use them to complete the upload via the [POST Asset Upload Completion](/dash/openapi/assets/postassetuploadCompletion) ## Getting asset file versions The current [`AssetFile`](/dash/openapi/assets/getassetfiles) for an [`Asset`](/dash/openapi/Assets) is returned in the [`Asset`](/dash/openapi/Assets) resource via the [`Asset.currentFile`](/dash/openapi/Assets) property. The [GET Asset Files](/dash/openapi/assets/getassetfiles) endpoint can be used to get all [`AssetFile`](/dash/openapi/assets/getassetfiles) resources for an [`Asset`](/dash/openapi/Assets) ## Editing asset metadata Edit the contents of one or more [`Asset.metadata`](/dash/openapi/Assets) map properties via the [POST Asset Metadata Edit Batch Job](/dash/openapi/assets/postassetmetadataeditbatchjob) endpoint and check on the progress and status of the edit via the [GET Asset Metadata Edit Batch Job](/dash/openapi/assets/getassetmetadataeditbatchjob) endpoint. ## Getting user collections 1. Get the current user ID from the [current user details](#section/Authorisation/Current-User-Details) 2. Use this ID in the `ASSOCIATED_WITH_USER` criterion of the [POST Collection Search](/dash/openapi/collections/postcollectionsearch) endpoint to get all collections a user has access to. 3. To get the [`Asset`](/dash/openapi/Assets) resources in each collection see the _All assets in a collection_ and _Search within assets in a collection_ examples in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint for how to specify the [`Collection.id`](/dash/openapi/Collections) in a `COLLECTIONS` : `FIELD_EQUALS` criterion. ## Search by file extension See the _Search by file extension_ and _Search by multiple file extensions_ example in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint ## Searching for changed assets The following date properties exist on an asset and can be supplied as FIXED field criteria in the [POST Asset Searches](/dash/openapi/assets/postassetsearch) endpoint - [`Asset.lifecycleStatus.dateStaged`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was created but not yet live. `DATE_STAGED` in search criteria. - [`Asset.lifecycleStatus.datePendingApproval`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was set for approval (if it was). `DATE_PENDING_APPROVAL` in search criteria. - [`Asset.lifecycleStatus.dateLive`](/dash/openapi/Assets) : The datetime the [`Asset`](/dash/openapi/Assets) was put live. `DATE_LIVE` in search criteria. - [`Asset.currentAssetFile.dateAdded`](/dash/openapi/Assets) : The datetime the latest [`AssetFile`](/dash/openapi/assets/getassetfiles) was added. `DATE_LAST_ASSET_FILE_ADDED` in search criteria. - [`Asset.dateLastModified`](/dash/openapi/Assets) : The datetime the *any* change was made to an [`Asset`](/dash/openapi/Assets). This includes all of the above and any change to custom metadata `DATE_LAST_MODIFIED` in search criteria. There is currently no way to determine if only custom metadata has changes. # Migration from V1 Several breaking changes have been introduced in the switch from V1 to V2, which are all the result of three changes. - The domain is changing from `brightdash.app` to `dash.app`. All URLs used to access the API, including for authorisation, should be updated to the new domain. - The concept of \"asset staging status\" has been renamed to \"asset lifecycle\" with the introduction of the bin, which adds another state for assets that isn\'t just about the staging workflow. This second change manifests in the changing of the StagingWorkflowTransitionBatchJob to the LifecycleTransitionBatchJob, a refactoring of the asset model to bring the \"date added\" and \"added by\" fields together with other lifecycle information, and the renaming of the \"date added\" and \"added by\" fields to the more specific \"date live\" and \"staged by\". - Asset batch jobs used to only support carrying out operations on assets by a search criterion. This has been extended to also allow performing operations by id, so the \"criterion\" field has changed to a \"selector\" field which supports objects of either type. - The term `Attribute` has been renamed to `Field` throughout, to mirror the change of terminology within the Dash frontend. All these changes are described in more specific detail below. ## Domain - Domain has changed from `brightdash.app` to `dash.app` throughout the API. ## Asset Staging Workflow - The path of this endpoint has changed from `asset-staging-workflow-transition-batch-jobs` to `asset-lifecycle-transition-batch-jobs`. - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Searches For both scroll and paged searches: - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` - The `stagingStatus`, `addedBy`, and `dateAdded` fields have been removed from the response. This data can now be found in the `lifecycleStatus` field. ## Asset Deletion - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Asset Metadata Edit - `criterion` in the POST body has become `selector`, and the criterion now needs to be wrapped in the following `{\"type\": \"BY_CRITERION\", \"criterion\": {...}}`. ## Search Filters - The value returned from the `searchField` field of search filter results of type `HARD_CODED_FREE_OPTION` have changed from `DATE_ADDED` to `DATE_LIVE`. This isn\'t really a breaking change as the specification says this field could return any string, but it feels worth mentioning. ## Saved Search - The following `criterion.field.fieldName` and `sorts.field.fieldName` values have been renamed for both POSTing and GETting SavedSearches: - `DATE_ADDED` -> `DATE_LIVE` - `ADDED_BY` -> `STAGED_BY` ## Attributes/Fields - The string `Attribute` has been replaced with the string `Field` throughout. This includes e.g. `AttributeOption` being renamed to `FieldOption`. A simple find and replace should be enough to migrate.
@@ -8167,6 +8368,28 @@ declare class AssetsService {
8167
8368
  context?: HttpContext;
8168
8369
  transferCache?: boolean;
8169
8370
  }): Observable<HttpEvent<any>>;
8371
+ /**
8372
+ * Discard a prompt run against assets
8373
+ * Stops an [&#x60;AssetPromptBatchJob&#x60;](/dash/openapi/assets/postassetpromptbatchjob) and deletes it
8374
+ * @param id The unique ID of the [&#x60;AssetPromptBatchJob&#x60;](/dash/openapi/assets/postassetpromptbatchjob)
8375
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
8376
+ * @param reportProgress flag to report request and response progress.
8377
+ */
8378
+ deleteAssetPromptBatchJob(id: string, observe?: 'body', reportProgress?: boolean, options?: {
8379
+ httpHeaderAccept?: 'application/json';
8380
+ context?: HttpContext;
8381
+ transferCache?: boolean;
8382
+ }): Observable<any>;
8383
+ deleteAssetPromptBatchJob(id: string, observe?: 'response', reportProgress?: boolean, options?: {
8384
+ httpHeaderAccept?: 'application/json';
8385
+ context?: HttpContext;
8386
+ transferCache?: boolean;
8387
+ }): Observable<HttpResponse<any>>;
8388
+ deleteAssetPromptBatchJob(id: string, observe?: 'events', reportProgress?: boolean, options?: {
8389
+ httpHeaderAccept?: 'application/json';
8390
+ context?: HttpContext;
8391
+ transferCache?: boolean;
8392
+ }): Observable<HttpEvent<any>>;
8170
8393
  /**
8171
8394
  * Get an asset.
8172
8395
  * Get an [&#x60;Asset&#x60;](/dash/openapi/Assets) To fetch several assets at once, use [POST Asset Searches](/dash/openapi/assets/postassetsearch) with a &#x60;FIELD_HAS_ANY_EQUAL&#x60; criterion on the fixed &#x60;ID&#x60; field.
@@ -8321,6 +8544,28 @@ declare class AssetsService {
8321
8544
  context?: HttpContext;
8322
8545
  transferCache?: boolean;
8323
8546
  }): Observable<HttpEvent<MetadataSuggestionBatchJob>>;
8547
+ /**
8548
+ * Get the status of a prompt run against assets
8549
+ * Get the status of an [&#x60;AssetPromptBatchJob&#x60;](/dash/openapi/assets/postassetpromptbatchjob). The completed job\&#39;s result maps each successfully processed asset ID to the model\&#39;s output, and each failed asset ID to a failure reason.
8550
+ * @param id The unique ID of the [&#x60;AssetPromptBatchJob&#x60;](/dash/openapi/assets/postassetpromptbatchjob)
8551
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
8552
+ * @param reportProgress flag to report request and response progress.
8553
+ */
8554
+ getAssetPromptBatchJob(id: string, observe?: 'body', reportProgress?: boolean, options?: {
8555
+ httpHeaderAccept?: 'application/json';
8556
+ context?: HttpContext;
8557
+ transferCache?: boolean;
8558
+ }): Observable<AssetPromptBatchJob>;
8559
+ getAssetPromptBatchJob(id: string, observe?: 'response', reportProgress?: boolean, options?: {
8560
+ httpHeaderAccept?: 'application/json';
8561
+ context?: HttpContext;
8562
+ transferCache?: boolean;
8563
+ }): Observable<HttpResponse<AssetPromptBatchJob>>;
8564
+ getAssetPromptBatchJob(id: string, observe?: 'events', reportProgress?: boolean, options?: {
8565
+ httpHeaderAccept?: 'application/json';
8566
+ context?: HttpContext;
8567
+ transferCache?: boolean;
8568
+ }): Observable<HttpEvent<AssetPromptBatchJob>>;
8324
8569
  /**
8325
8570
  * Get the status of uploading files
8326
8571
  * Get the status and eventual result of an [&#x60;AssetUploadBatchJob&#x60;](/dash/openapi/assets/postassetuploadBatchJob)
@@ -8366,6 +8611,29 @@ declare class AssetsService {
8366
8611
  context?: HttpContext;
8367
8612
  transferCache?: boolean;
8368
8613
  }): Observable<HttpEvent<any>>;
8614
+ /**
8615
+ * Update the status of a prompt run against assets
8616
+ * Update an [&#x60;AssetPromptBatchJob&#x60;](/dash/openapi/assets/postassetpromptbatchjob). Stop an in-progress job by patching &#x60;status&#x60; to &#x60;STOPPED&#x60;, or restart a stopped job by patching &#x60;status&#x60; to &#x60;STARTED&#x60;.
8617
+ * @param id The unique ID of the [&#x60;AssetPromptBatchJob&#x60;](/dash/openapi/assets/postassetpromptbatchjob)
8618
+ * @param jobPatchRequest
8619
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
8620
+ * @param reportProgress flag to report request and response progress.
8621
+ */
8622
+ patchAssetPromptBatchJob(id: string, jobPatchRequest: JobPatchRequest, observe?: 'body', reportProgress?: boolean, options?: {
8623
+ httpHeaderAccept?: 'application/json';
8624
+ context?: HttpContext;
8625
+ transferCache?: boolean;
8626
+ }): Observable<AssetPromptBatchJob>;
8627
+ patchAssetPromptBatchJob(id: string, jobPatchRequest: JobPatchRequest, observe?: 'response', reportProgress?: boolean, options?: {
8628
+ httpHeaderAccept?: 'application/json';
8629
+ context?: HttpContext;
8630
+ transferCache?: boolean;
8631
+ }): Observable<HttpResponse<AssetPromptBatchJob>>;
8632
+ patchAssetPromptBatchJob(id: string, jobPatchRequest: JobPatchRequest, observe?: 'events', reportProgress?: boolean, options?: {
8633
+ httpHeaderAccept?: 'application/json';
8634
+ context?: HttpContext;
8635
+ transferCache?: boolean;
8636
+ }): Observable<HttpEvent<AssetPromptBatchJob>>;
8369
8637
  /**
8370
8638
  * Create assets and upload files
8371
8639
  * An [&#x60;AssetAndUploadBatchJob&#x60;](/dash/openapi/assets/postassetanduploadbatchjob) should be created when you want to create multiple [&#x60;Asset&#x60;](/dash/openapi/Assets) resources and also create an [&#x60;AssetUpload&#x60;](/dash/openapi/assets/postassetupload) for each of them. Each asset can be uploaded in a single part or in multiple parts. If the filesize is less than 5MiB then it must be uploaded in a single part. If the filesize is greater than 5GiB then it must be uploaded in multiple parts, each smaller than 5GiB. The [&#x60;AssetUpload&#x60;](/dash/openapi/assets/postassetupload) resources in the completed job should then be used to upload the files for each and asset and complete each upload. After the [&#x60;Asset&#x60;](/dash/openapi/Assets) resources have been created and files uploaded to them they will still be in [&#x60;Asset.lifecycleStatus.state &#x3D; \&#39;STAGED\&#39;&#x60;](/dash/openapi/Assets). To send them for approval or put them live see [POST Asset lifecycle transition batch job](/dash/openapi/assets/postassetlifecycletransitionbatchjob).
@@ -8498,6 +8766,28 @@ declare class AssetsService {
8498
8766
  context?: HttpContext;
8499
8767
  transferCache?: boolean;
8500
8768
  }): Observable<HttpEvent<MetadataSuggestionBatchJob>>;
8769
+ /**
8770
+ * Run a prompt against assets
8771
+ * Run a prompt once per [&#x60;Asset&#x60;](/dash/openapi/Assets) selected by the specified assets selector, supplying all available context about each asset to the model. Use the &#x60;BY_IDS&#x60; selector to run the prompt for a specific list of [&#x60;Asset.ids&#x60;](/dash/openapi/Assets), or the &#x60;BY_CRITERION&#x60; selector to run it for a search criterion, e.g. all [&#x60;Asset&#x60;](/dash/openapi/Assets)s in a specific folder. See [&#x60;AssetSearch&#x60;](/dash/openapi/assets/postassetsearch) for more detail on the available criterion. At most 500 assets can be selected; larger selections are rejected with a &#x60;400&#x60;. The completed job\&#39;s result maps each successfully processed asset ID to the model\&#39;s output, and each failed asset ID to a failure reason.
8772
+ * @param assetPromptBatchRequest
8773
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
8774
+ * @param reportProgress flag to report request and response progress.
8775
+ */
8776
+ postAssetPromptBatchJob(assetPromptBatchRequest: AssetPromptBatchRequest, observe?: 'body', reportProgress?: boolean, options?: {
8777
+ httpHeaderAccept?: 'application/json';
8778
+ context?: HttpContext;
8779
+ transferCache?: boolean;
8780
+ }): Observable<AssetPromptBatchJob>;
8781
+ postAssetPromptBatchJob(assetPromptBatchRequest: AssetPromptBatchRequest, observe?: 'response', reportProgress?: boolean, options?: {
8782
+ httpHeaderAccept?: 'application/json';
8783
+ context?: HttpContext;
8784
+ transferCache?: boolean;
8785
+ }): Observable<HttpResponse<AssetPromptBatchJob>>;
8786
+ postAssetPromptBatchJob(assetPromptBatchRequest: AssetPromptBatchRequest, observe?: 'events', reportProgress?: boolean, options?: {
8787
+ httpHeaderAccept?: 'application/json';
8788
+ context?: HttpContext;
8789
+ transferCache?: boolean;
8790
+ }): Observable<HttpEvent<AssetPromptBatchJob>>;
8501
8791
  /**
8502
8792
  * Scroll search for assets
8503
8793
  * Asset scroll searches provide a means of scrolling one way through search results of any number of [&#x60;Asset&#x60;](/dash/openapi/Assets) resources. Page size can stil be specified, but a scroll search will always proceed sequentially once through each page. The [&#x60;AssetScrollSearch.scrollId&#x60;](/dash/openapi/assets/postassetscrollsearch) in the search the response is used to [continue the scroll search](/dash/openapi/assets/postassetscrollsearchScroll).
@@ -24244,7 +24534,7 @@ declare class WordPressService {
24244
24534
  static ɵprov: i0.ɵɵInjectableDeclaration<WordPressService>;
24245
24535
  }
24246
24536
 
24247
- declare const APIS: (typeof AIImageGenerationsService | typeof AccountSecurityService | typeof AccountsService | typeof AllowedLoginMethodsService | typeof AssetCommentsService | typeof AssetDeduplicationService | typeof AssetDownloadEventsService | typeof AssetEmbeddableLinksService | typeof AssetMetadataExportService | typeof AssetSavedCropAreaSummariesService | typeof AssetSavedCropAreasService | typeof AssetShareAccessTokensService | typeof AssetShareEmailsService | typeof AssetSharesService | typeof AssetVariantCriteriaService | typeof AssetsService | typeof AutoTaggingImageSettingsService | typeof CloudConnectionsService | typeof CloudImportJobsService | typeof CloudObjectsService | typeof CollectionShareAccessTokensService | typeof CollectionSharesService | typeof CollectionsService | typeof CorebookService | typeof CustomService | typeof DefaultService | typeof EntityQuotaOverridesService | typeof ExternalAppService | typeof FieldOptionImagesService | typeof FieldOptionsService | typeof FieldViewsService | typeof FieldsService | typeof FolderSettingsService | typeof GroupsService | typeof GuestUploadAccessTokensService | typeof GuestUploadEmailsService | typeof GuestUploadsService | typeof KlaviyoService | typeof OnboardingChecklistService | typeof PingService | typeof PortalAccessTokensService | typeof PortalEmailsService | typeof PortalsService | typeof PresetSettingsService | typeof PresetTransformationsService | typeof ProductsService | typeof PubliclyAvailableGuestUploadDataService | typeof PubliclyAvailablePortalDatasService | typeof ReferenceImageUploadsService | typeof SavedSearchService | typeof SavedSearchesService | typeof SearchFiltersService | typeof ShopifyService | typeof ShopifySKUSettingsService | typeof StaffMembersService | typeof SubdomainsService | typeof SubscriptionService | typeof TermsAndConditionsService | typeof TextInImageSettingsService | typeof ThemeService | typeof UserPreferencesService | typeof UserReferrerService | typeof UsersService | typeof WordPressService)[];
24537
+ declare const APIS: (typeof AssetsService | typeof AIImageGenerationsService | typeof AccountSecurityService | typeof AccountsService | typeof AllowedLoginMethodsService | typeof AssetCommentsService | typeof AssetDeduplicationService | typeof AssetDownloadEventsService | typeof AssetEmbeddableLinksService | typeof AssetMetadataExportService | typeof AssetSavedCropAreaSummariesService | typeof AssetSavedCropAreasService | typeof AssetShareAccessTokensService | typeof AssetShareEmailsService | typeof AssetSharesService | typeof AssetVariantCriteriaService | typeof AutoTaggingImageSettingsService | typeof CloudConnectionsService | typeof CloudImportJobsService | typeof CloudObjectsService | typeof CollectionShareAccessTokensService | typeof CollectionSharesService | typeof CollectionsService | typeof CorebookService | typeof CustomService | typeof DefaultService | typeof EntityQuotaOverridesService | typeof ExternalAppService | typeof FieldOptionImagesService | typeof FieldOptionsService | typeof FieldViewsService | typeof FieldsService | typeof FolderSettingsService | typeof GroupsService | typeof GuestUploadAccessTokensService | typeof GuestUploadEmailsService | typeof GuestUploadsService | typeof KlaviyoService | typeof OnboardingChecklistService | typeof PingService | typeof PortalAccessTokensService | typeof PortalEmailsService | typeof PortalsService | typeof PresetSettingsService | typeof PresetTransformationsService | typeof ProductsService | typeof PubliclyAvailableGuestUploadDataService | typeof PubliclyAvailablePortalDatasService | typeof ReferenceImageUploadsService | typeof SavedSearchService | typeof SavedSearchesService | typeof SearchFiltersService | typeof ShopifyService | typeof ShopifySKUSettingsService | typeof StaffMembersService | typeof SubdomainsService | typeof SubscriptionService | typeof TermsAndConditionsService | typeof TextInImageSettingsService | typeof ThemeService | typeof UserPreferencesService | typeof UserReferrerService | typeof UsersService | typeof WordPressService)[];
24248
24538
 
24249
24539
  /**
24250
24540
  * Dash API
@@ -25088,5 +25378,5 @@ declare class ApiModule {
25088
25378
  static ɵinj: i0.ɵɵInjectorDeclaration<ApiModule>;
25089
25379
  }
25090
25380
 
25091
- export { AIImageGenerationsService, APIS, Account, AccountPlan, AccountRequest, AccountSecurityService, AccountsService, ActionType, ActiveAccountUser, AdminPermissions, AdminUserPatchRequest, AdminUserRequest, AdminUserRequestItem, AiImageGenerationsRequest, AllowedLoginMethodsService, AlterShopifyStoreRequestDelete, AlterShopifyStoreRequestInstallRequested, AlterShopifyStoreRequestInstalledBeforeProductSync, AlterShopifyStoreRequestReadyToInstall, ApiModule, AppName, ApprovedPaymentStatus, AssetAndSearchCriterion, AssetAndUploadBatchCompletedJob, AssetCommentsService, AssetDeduplicationCompletedJob, AssetDeduplicationService, AssetDownloadBatchCompletedJob, AssetDownloadEvent, AssetDownloadEventDateField, AssetDownloadEventDateHistogramAggregationRequest, AssetDownloadEventField, AssetDownloadEventFieldEqualsSearchCriterion, AssetDownloadEventFieldInRangeSearchCriterion, AssetDownloadEventSort, AssetDownloadEventTermsAggregationRequest, AssetDownloadEventsService, AssetDownloadFailure, AssetEmbeddableLinksService, AssetFieldEqualsSearchCriterion, AssetFieldHasAllEqualSearchCriterion, AssetFieldHasAnyEqualSearchCriterion, AssetFieldIsEmptySearchCriterion, AssetFieldMatchesSearchCriterion, AssetFile, AssetIsSimilarToAssetCriterion, AssetMetadataExportService, AssetNotSearchCriterion, AssetOrSearchCriterion, AssetPaginatedSearchRequest, AssetPermittedActions, AssetPermittedActionsWithDefault, AssetSavedCropAreaSummariesService, AssetSavedCropAreasService, AssetScrollSearchRequest, AssetSearchFieldField, AssetSearchFieldFixed, AssetShare, AssetShareAccessTokensService, AssetShareEmailsService, AssetShareFieldEqualsSearchCriterion, AssetSharePatchRequest, AssetShareRequest, AssetShareSearchField, AssetShareSort, AssetShareSortField, AssetSharesService, AssetSort, AssetSortFieldField, AssetSortFieldFixed, AssetUploadCompletionFailure, AssetUploadCompletionSuccess, AssetUploadFailure, AssetVariantCriteriaService, AssetVariantCriterionBulkUpdate, AssetVariantCriterionFieldEqualsSearchCriterion, AssetVariantCriterionFieldInSearchCriterion, AssetVariantCriterionSearchField, AssetVariantCriterionSort, AssetVariantCriterionSortField, AssetsSelectorByCriterion, AssetsSelectorByIds, AssetsService, AutoTaggingImageSettingsService, BASE_PATH, BaseAssetSearchRequest, BaseCloudObject, BaseJob, Beta, Billing, BillingRequest, COLLECTION_FORMATS, ClipTransformation, CloudConnectionsService, CloudFile, CloudFileShortcut, CloudFolder, CloudFolderShortcut, CloudImportCompletedJob, CloudImportJobsService, CloudObjectFieldEqualsSearchCriterion, CloudObjectIdValue, CloudObjectMatchesTextSearchCriterion, CloudObjectRootFolder, CloudObjectSearchField, CloudObjectsSelectorByIds, CloudObjectsService, CollectionShare, CollectionShareAccessTokensService, CollectionShareFieldEqualsSearchCriterion, CollectionSharePatchRequest, CollectionShareRequest, CollectionShareSearchField, CollectionShareSort, CollectionShareSortField, CollectionSharesService, CollectionSort, CollectionSortField, CollectionsService, Comment, CommentRequest, CompletedJob, Configuration, ContextType, ConvertBitrateTransformation, ConvertPresetParameters, ConvertTransformation, ConvertTransformationTemplate, CorebookService, Coupon, CreatedByCurrentUserSearchCriterion, CreatedSubscription, CropPresetParameters, CropTransformation, CropTransformationTemplate, CustomService, CustomTransformationDescription, DashAsset, DataType, DefaultService, DeniedActionWithReason, DynamicOnboardingChecklistItem, DynamicOnboardingChecklistItemId, EmbeddableLink, EmbeddableLinkBatchCompletedJob, EmbeddableLinkFailure, EmbeddableLinkFieldInSearchCriterion, EmbeddableLinkPatchRequest, EmbeddableLinkSearchField, EmbeddableLinkSort, EmbeddableLinkSortField, EntityQuotaOverridesService, EventDateHistogramAggregationRequest, EventDateInterval, ExternalAccessUser, ExternalAppAccount, ExternalAppAccountRequest, ExternalAppService, ExternalAppSsoTokenRequest, ExternalAppUserRequest, FailedJob, FailedPaymentStatus, FailedSubscription, FeatureBasedPlan, Field, FieldOptionAndSearchCriterion, FieldOptionFailure, FieldOptionFieldContainsSearchCriterion, FieldOptionFieldEqualsSearchCriterion, FieldOptionFieldInSearchCriterion, FieldOptionFieldIsEmptySearchCriterion, FieldOptionImageFailure, FieldOptionImagesService, FieldOptionNotSearchCriterion, FieldOptionOrSearchCriterion, FieldOptionSearchField, FieldOptionSort, FieldOptionsService, FieldRequest, FieldSearchFilter, FieldView, FieldViewsService, FieldWhitelistAllOptions, FieldWhitelistSpecificOptions, FieldsService, FileType, FolderSettingsService, Group, GroupPatchRequest, GroupRequest, GroupRole, GroupsService, GuestUploadAccessTokensService, GuestUploadEmailsService, GuestUploadSort, GuestUploadSortField, GuestUploadUser, GuestUploadsService, HardCodedFixedOptionsSearchFilter, HardCodedFreeOptionDimensionsSearchFilter, HardCodedFreeOptionsSearchFilter, HardCodedUserSearchFilter, InGroupsPermissions, InGroupsUserPatchRequest, InGroupsUserRequest, InGroupsUserRequestItem, InProgressJob, IsTransparentTransformationCriterion, JobPatchRequest, JobStepProgress, KlaviyoExportCompletedJob, KlaviyoInstallation, KlaviyoInstallationStatus, KlaviyoService, LifecycleStatusBinned, LifecycleStatusLive, LifecycleStatusPendingApproval, LifecycleStatusStaged, LifecycleTransition, LifecycleTransitionBatchRequest, LimitedDownloads, LoginMethod, MatchAllSearchCriterion, MatchNoneSearchCriterion, MatchValues, MatchesMediaTypesTransformationCriterion, MetadataExportCompletedJob, MetadataFieldValueUpdateByIds, MetadataFieldValueUpdateByValues, MetadataFieldValueUpdateOperation, MetadataSuggestionCompletedJob, NullableFieldOptionSearchFieldPatch, OnboardingChecklistService, Orientation, OrientationTransformation, OriginGuestUpload, OriginalDownloadFilename, PendingAccountUser, PendingPaymentStatus, PendingSubscription, PermittedAction, PingService, PlanUpgradeRequiredDenialReason, Portal, PortalAccessTokensService, PortalEmailsService, PortalPatchRequest, PortalRequest, PortalSort, PortalSortField, PortalUser, PortalsService, PresetSettings, PresetSettingsPatchRequest, PresetSettingsService, PresetTransformationApplicableForAnyAssetsSearchCriterion, PresetTransformationDescription, PresetTransformationHasTransformationOfTypeSearchCriterion, PresetTransformationSort, PresetTransformationsForAssetFieldInSearchCriterion, PresetTransformationsForAssetSearchField, PresetTransformationsForAssetSort, PresetTransformationsService, Product, ProductAndSearchCriterion, ProductFieldEqualsSearchCriterion, ProductFieldHasAllEqualSearchCriterion, ProductFieldHasAnyEqualSearchCriterion, ProductFieldIsEmptySearchCriterion, ProductFieldMatchesSearchCriterion, ProductNotSearchCriterion, ProductOrSearchCriterion, ProductSearchFieldField, ProductSearchFieldFixed, ProductSort, ProductSortFieldField, ProductSortFieldFixed, ProductStatus, ProductVariantAndSearchCriterion, ProductVariantFieldEqualsSearchCriterion, ProductVariantFieldHasAllEqualSearchCriterion, ProductVariantFieldHasAnyEqualSearchCriterion, ProductVariantFieldIsEmptySearchCriterion, ProductVariantFieldMatchesSearchCriterion, ProductVariantNotSearchCriterion, ProductVariantOrSearchCriterion, ProductVariantSearchFieldField, ProductVariantSearchFieldFixed, ProductVariantSort, ProductVariantSortFieldField, ProductVariantSortFieldFixed, ProductsService, PublicCollectionShareFieldHasItemSearchCriterion, PublicCollectionShareSearchField, PublicCollectionShareSort, PublicCollectionShareSortField, PubliclyAvailableAccountDataFieldEqualsSearchCriterion, PubliclyAvailableAccountDataHasUsersWithEmailDomainSearchCriterion, PubliclyAvailableAccountDataSearchField, PubliclyAvailableGuestUploadDataService, PubliclyAvailablePortalData, PubliclyAvailablePortalDatasService, ReferenceImageUploadsService, ResizeTransformation, ResizeTransformationTemplate, ResourceType, SavedCropAreaSummaryAndSearchCriterion, SavedCropAreaSummaryFieldEqualsSearchCriterion, SavedCropAreaSummaryFieldInSearchCriterion, SavedCropAreaSummarySearchField, SavedCropAreaSummarySort, SavedSearchFieldEqualsSearchCriterion, SavedSearchSearchField, SavedSearchService, SavedSearchesService, SearchFiltersService, SelfReportedCompanyDescription, SelfReportedGoalFixed, SelfReportedGoalOther, ShopifyExportCompletedJob, ShopifyExportRemovalItem, ShopifyExportUploadItem, ShopifyFile, ShopifyImageUsedInOther, ShopifyImageUsedInProduct, ShopifyInstall, ShopifyInstallStatus, ShopifyProductFieldInSearchCriterion, ShopifyProductSearchField, ShopifySKUSettingsService, ShopifyService, SliderValueBasedPlan, SomethingElseSubscriptionCancellationRequest, SortOrder, StaffMembersService, StandardSubscriptionCancellationRequest, StorageAndDownloadsPlan, StorageAndDownloadsPlanRequest, StorageAndDownloadsV7Plan, StorageAndDownloadsV7PlanRequest, StorageAndDownloadsV8Plan, StorageAndDownloadsV8PlanRequest, SubdomainsService, SubscriptionService, SucceededPaymentStatus, TermsAndConditionsService, TextInImageSettingsService, Theme, ThemeAndSearchCriterion, ThemeFieldEqualsSearchCriterion, ThemeImageType, ThemeImageUploadRequest, ThemeSearchField, ThemeService, TieredValueBasedPlan, TieredValueBasedPlanRequest, UnlimitedDownloads, UnverifiedFreeTrialDenialReason, UnverifiedPaidPlanDenialReason, UserAndSearchCriterion, UserBatchCompletedJob, UserCanUploadSearchCriterion, UserCreationStatusResponse, UserDataAccountUser, UserDataPortalUser, UserDataShareUser, UserDataUnknown, UserFailure, UserFieldEqualsSearchCriterion, UserFieldInSearchCriterion, UserFieldMatchesSearchCriterion, UserGroupSearchField, UserInGroupWhereFieldEqualsSearchCriterion, UserNotSearchCriterion, UserOrSearchCriterion, UserPreferencesService, UserReferrerService, UserSearchField, UserSort, UserSortField, UsersService, WordPressService };
25092
- export type { AccessToken, AccessTokenWithPermittedActions, AccountInviteRequest, AccountSecurity, AccountSecurityPutRequest, AccountSecurityWithPermittedActions, AccountTermsAndConditions, AccountTermsAndConditionsRequest, AccountUser, AccountUserWithPermittedActions, AccountWithPermittedActions, Address, AiImageGenerationsResponse, AiImageGenerationsResponseResult, AlterShopifyStoreRequest, Amount, Asset, AssetAggregationBucket, AssetAggregationBucketResponse, AssetAggregationRequest, AssetAggregationRequestInclusionOptions, AssetAggregationRequestsMap, AssetAggregationResponse, AssetAggregationResponsesMap, AssetAndUploadBatch, AssetAndUploadBatchJob, AssetAndUploadBatchRequest, AssetAndUploadBatchRequestItem, AssetAndUploadWithPermittedActions, AssetDeduplicationBatchJob, AssetDeduplicationResult, AssetDeletionBatchRequest, AssetDownload, AssetDownloadBatch, AssetDownloadBatchJob, AssetDownloadBatchRequest, AssetDownloadBatchRequestItem, AssetDownloadDetails, AssetDownloadEventAggregationRequest, AssetDownloadEventAndSearchCriterion, AssetDownloadEventNotSearchCriterion, AssetDownloadEventOrSearchCriterion, AssetDownloadEventSearch, AssetDownloadEventSearchCriterion, AssetDownloadEventSearchRequest, AssetDownloadEventWithPermittedActions, AssetDownloadWithPermittedActions, AssetFileWithPermittedActions, AssetPatchRequest, AssetScrollSearch, AssetScrollSearchScrollRequest, AssetSearch, AssetSearchCriterion, AssetSearchField, AssetShareEmailRequest, AssetShareSearch, AssetShareSearchCriterion, AssetShareSearchRequest, AssetShareWithPermittedActions, AssetSortField, AssetTermsAggregationRequest, AssetUpload, AssetUploadBatchRequest, AssetUploadBatchRequestItem, AssetUploadCompletedPart, AssetUploadCompletion, AssetUploadCompletionRequest, AssetUploadCompletionWithPermittedActions, AssetUploadDetails, AssetUploadPart, AssetUploadPartUrlRequest, AssetUploadPartUrlsRequest, AssetUploadRequest, AssetUploadWithPermittedActions, AssetVariantCriterion, AssetVariantCriterionBulkUpdateSetItem, AssetVariantCriterionSearch, AssetVariantCriterionSearchCriterion, AssetVariantCriterionSearchRequest, AssetVariantCriterionWithPermittedActions, AssetWithPermittedActions, AssetsCreation, AssetsCreationRequest, AssetsCreationWithPermittedActions, AssetsSelector, Attribution, AutoTaggingImageSettings, AutoTaggingImageSettingsPatchRequest, AutoTaggingImageSettingsWithPermittedActions, BaseAssetSearch, BaseCloudConnection, BasePaginatedSearchInAccountRequest, BaseProductSearch, BaseProductSearchRequest, BaseProductVariantSearch, BaseProductVariantSearchRequest, BaseScrollSearchInAccountRequest, BaseSearchFilter, BatchItem, BillingInfo, CandidatePresetTransformation, CandidateTransformation, CloudConnection, CloudConnectionRequest, CloudConnectionWithPermittedActions, CloudImportJob, CloudImportJobRequest, CloudImportJobWithPermittedActions, CloudImportResult, CloudObject, CloudObjectIdValueOrRootFolder, CloudObjectPagedSearch, CloudObjectPagedSearchRequest, CloudObjectPathMapping, CloudObjectSearchCriterion, CloudObjectsSelector, Collection, CollectionAssociatedWithUserSearchCriterion, CollectionCollaborator, CollectionPatchRequest, CollectionRequest, CollectionSearch, CollectionSearchCriterion, CollectionSearchRequest, CollectionShareSearch, CollectionShareSearchCriterion, CollectionShareSearchRequest, CollectionShareWithPermittedActions, CollectionWithPermittedActions, CommentPatchRequest, CommentWithPermittedActions, ConfigurationParameters, ContextComments, CorebookSettings, CorebookSettingsRequest, CorebookSettingsWithPermittedActions, CreateShopifyImageBatchRequest, CreateShopifyProductImageBatchRequest, CreatedSubscriptionWithPermittedActions, CropParameters, CurrentUserIntercomDetails, CurrentUserStaffStatus, CustomIntegrationSettings, CustomIntegrationSettingsPatchRequest, CustomIntegrationSettingsPutRequest, CustomIntegrationSettingsWithPermittedActions, DenialReason, DeterminedTransformation, Dimensions, DownloadCountInDateRange, DownloadCountsByUserType, Downloads, DropboxCloudConnection, DropboxCloudConnectionRequest, DynamicOnboardingChecklist, DynamicOnboardingChecklistPatchRequest, DynamicOnboardingChecklistWithPermittedActions, EmbeddableLinkBatch, EmbeddableLinkBatchJob, EmbeddableLinkBatchRequest, EmbeddableLinkBatchRequestItem, EmbeddableLinkDetails, EmbeddableLinkSearch, EmbeddableLinkSearchCriterion, EmbeddableLinkSearchRequest, EmbeddableLinkWithPermittedActions, EntityQuotaOverride, EntityQuotaOverrideRequest, EntityQuotaOverrideWithPermittedActions, EventAggregationBucket, EventAggregationBucketResponse, EventAggregationResponse, EventAggregationValueResponse, EventTermsAggregationRequest, ExternalAppAccountWithPermittedActions, FailedJobAllOfReason, FieldContainsSearchCriterion, FieldEqualsSearchCriterion, FieldHasItemSearchCriterion, FieldInRangeSearchCriterion, FieldInSearchCriterion, FieldIsEmptySearchCriterion, FieldMatchesSearchCriterion, FieldOption, FieldOptionBatch, FieldOptionBatchRequest, FieldOptionBatchRequestItem, FieldOptionImage, FieldOptionImageBatch, FieldOptionImageBatchRequest, FieldOptionImageBatchRequestItem, FieldOptionImageRequest, FieldOptionImageUpload, FieldOptionImageUploadRequest, FieldOptionImageWithPermittedActions, FieldOptionRequest, FieldOptionSearch, FieldOptionSearchCriterion, FieldOptionSearchRequest, FieldOptionWithPermittedActions, FieldPatchRequest, FieldViewWithPermittedActions, FieldWhitelist, FieldWithPermittedActions, FolderSettings, FolderSettingsWithPermittedActions, GoogleCloudConnection, GoogleCloudConnectionRequest, GpsLocation, GroupWithPermittedActions, GroupedPresetTransformations, GroupedPresetTransformationsWithPermittedActions, GuestUpload, GuestUploadAccessTokenRequest, GuestUploadEmailRequest, GuestUploadPatchRequest, GuestUploadRequest, GuestUploadSearch, GuestUploadSearchCriterion, GuestUploadSearchRequest, GuestUploadWithPermittedActions, JobProgress, KlaviyoExportAsset, KlaviyoExportJob, KlaviyoExportJobRequest, KlaviyoExportJobWithPermittedActions, KlaviyoExportResult, KlaviyoInstallationLink, KlaviyoInstallationLinkWithPermittedActions, KlaviyoInstallationWithPermittedActions, LifecycleStatus, MediaType, Metadata, MetadataEditBatchRequest, MetadataExportBatchJob, MetadataExportResult, MetadataFieldValueUpdate, MetadataSuggestion, MetadataSuggestionBatch, MetadataSuggestionBatchJob, MetadataSuggestionBatchRequest, MetadataSuggestionWithPermittedActions, ModelError, NoResultJob, NullableAssetSortFieldPatch, NullableDateTimePatch, NullableStringFieldPatch, OnboardingChecklist, OnboardingChecklistPatchRequest, OnboardingChecklistWithPermittedActions, Origin, PaymentStatus, Plan, PlanRequest, PlatformCurrentUserAccountSearchRequest, PlatformUserForgottenPasswordRequest, PlatformUserPatchRequest, PlatformUserProfilePictureRequest, PlatformUserProfilePictureUpload, PlatformUserProfilePictureUploadRequest, PlatformUserRequest, PlatformUserResetPasswordRequest, PlatformUserSignUpToken, PlatformUserSignUpTokenRequest, PlatformUserVerificationRequest, PortalEmailRequest, PortalSearch, PortalSearchCriterion, PortalSearchRequest, PortalWithPermittedActions, PresetParameters, PresetSettingsWithPermittedActions, PresetTransformation, PresetTransformationAndSearchCriterion, PresetTransformationGroup, PresetTransformationGroupType, PresetTransformationNotSearchCriterion, PresetTransformationOrSearchCriterion, PresetTransformationSearch, PresetTransformationSearchCriterion, PresetTransformationSearchRequest, PresetTransformationWithPermittedActions, PresetTransformationsForAsset, PresetTransformationsForAssetSearch, PresetTransformationsForAssetSearchCriterion, PresetTransformationsForAssetSearchRequest, PresetTransformationsForAssetWithPermittedActions, ProductAggregationBucket, ProductAggregationBucketResponse, ProductAggregationRequest, ProductAggregationRequestInclusionOptions, ProductAggregationRequestsMap, ProductAggregationResponse, ProductAggregationResponsesMap, ProductMetadata, ProductPaginatedSearchRequest, ProductSearch, ProductSearchCriterion, ProductSearchField, ProductSortField, ProductTermsAggregationRequest, ProductVariant, ProductVariantAggregationBucket, ProductVariantAggregationBucketResponse, ProductVariantAggregationRequest, ProductVariantAggregationRequestInclusionOptions, ProductVariantAggregationRequestsMap, ProductVariantAggregationResponse, ProductVariantAggregationResponsesMap, ProductVariantPaginatedSearchRequest, ProductVariantSearch, ProductVariantSearchCriterion, ProductVariantSearchField, ProductVariantSortField, ProductVariantTermsAggregationRequest, ProductVariantWithPermittedActions, ProductWithPermittedActions, PublicCollectionShareSearchCriterion, PublicCollectionShareSearchRequest, PubliclyAvailableAccountData, PubliclyAvailableAccountDataSearch, PubliclyAvailableAccountDataSearchCriterion, PubliclyAvailableAccountDataSearchRequest, PubliclyAvailableAccountDataWithPermittedActions, PubliclyAvailableGuestUploadData, PubliclyAvailableGuestUploadDataWithPermittedActions, PubliclyAvailablePortalDataWithPermittedActions, ReferenceImage, ReferenceImageAsset, ReferenceImageUploaded, ReferenceImageUploadsResponse, ReferenceImageUploadsResponseResult, Referrer, ReferrerWithPermittedActions, RejectedMetadataSuggestion, RejectedMetadataSuggestionBatch, RejectedMetadataSuggestionBatchRequest, RejectedMetadataSuggestionRequest, RejectedMetadataSuggestionRequestItem, RejectedMetadataSuggestionWithPermittedActions, SavedCropArea, SavedCropAreaPatchRequest, SavedCropAreaRequest, SavedCropAreaSummary, SavedCropAreaSummarySearch, SavedCropAreaSummarySearchCriterion, SavedCropAreaSummarySearchRequest, SavedCropAreaSummaryWithPermittedActions, SavedCropAreaWithPermittedActions, SavedSearch, SavedSearchPatchRequest, SavedSearchRequest, SavedSearchSearch, SavedSearchSearchCriterion, SavedSearchSearchRequest, SavedSearchWithPermittedActions, SearchCriterion, SearchFilter, SearchFilterView, SearchFilterViewSearchFilterPatchRequest, SearchFilterViewSearchFilterRequest, SearchFilterViewWithPermittedActions, SearchFilterWithPermittedActions, SelfReportedGoal, ShopifyConnection, ShopifyConnectionWithPermittedActions, ShopifyExportJob, ShopifyExportJobWithPermittedActions, ShopifyExportRequest, ShopifyExportRequestItem, ShopifyExportResult, ShopifyExportResultAssetFailure, ShopifyExportResultProductAssignmentFailure, ShopifyExportResultProductRemovalFailure, ShopifyExportResultProductReorderFailure, ShopifyExportResultUploadFailure, ShopifyExportSource, ShopifyImageUsedIn, ShopifyInstallPatchRequest, ShopifyInstallRequest, ShopifyInstallWithPermittedActions, ShopifyProduct, ShopifyProductFileDestination, ShopifyProductIdSearch, ShopifyProductIdSearchRequest, ShopifyProductIdSearchResult, ShopifyProductMedia, ShopifyProductSearch, ShopifyProductSearchCriterion, ShopifyProductSearchRequest, ShopifyProductSyncSettings, ShopifyProductSyncSettingsRequest, ShopifyProductSyncSettingsWithPermittedActions, ShopifyProductSyncStatus, ShopifyProductSyncStatusWithPermittedActions, ShopifyProductWithPermittedActions, ShopifySkuSettings, ShopifySkuSettingsRequest, ShopifySkuSettingsWithPermittedActions, SignupUser, StaffMember, StaffMemberRequest, Stats, SubdomainAvailabilityCheck, SubdomainAvailabilityCheckRequest, Subscription, SubscriptionCancellationRequest, SubscriptionIntent, SubscriptionIntentPatchRequest, SubscriptionIntentRequest, SubscriptionIntentWithPermittedActions, SubscriptionUsage, SubscriptionWithPermittedActions, TextInImageSettings, TextInImageSettingsPatchRequest, TextInImageSettingsWithPermittedActions, ThemeImageUpload, ThemePatchRequest, ThemeSearch, ThemeSearchCriterion, ThemeSearchRequest, ThemeWithPermittedActions, Transformation, TransformationCriterion, TransformationDescription, TransformationTemplate, User, UserBatch, UserBatchJob, UserBatchRequest, UserBatchRequestItem, UserCreationStatusResponseWithPermittedActions, UserData, UserDeleteRequest, UserPatchRequest, UserPermissions, UserPreferences, UserPreferencesPatchRequest, UserPreferencesWithPermittedActions, UserRequest, UserSearch, UserSearchCriterion, UserSearchRequest, UserWithNoPermittedActions, UserWithPermittedActions, WelcomeMessage, WordPressSettings, WordPressSettingsPatchRequest, WordPressSettingsPutRequest, WordPressSettingsWithPermittedActions };
25381
+ export { AIImageGenerationsService, APIS, Account, AccountPlan, AccountRequest, AccountSecurityService, AccountsService, ActionType, ActiveAccountUser, AdminPermissions, AdminUserPatchRequest, AdminUserRequest, AdminUserRequestItem, AiImageGenerationsRequest, AllowedLoginMethodsService, AlterShopifyStoreRequestDelete, AlterShopifyStoreRequestInstallRequested, AlterShopifyStoreRequestInstalledBeforeProductSync, AlterShopifyStoreRequestReadyToInstall, ApiModule, AppName, ApprovedPaymentStatus, AssetAndSearchCriterion, AssetAndUploadBatchCompletedJob, AssetCommentsService, AssetDeduplicationCompletedJob, AssetDeduplicationService, AssetDownloadBatchCompletedJob, AssetDownloadEvent, AssetDownloadEventDateField, AssetDownloadEventDateHistogramAggregationRequest, AssetDownloadEventField, AssetDownloadEventFieldEqualsSearchCriterion, AssetDownloadEventFieldInRangeSearchCriterion, AssetDownloadEventSort, AssetDownloadEventTermsAggregationRequest, AssetDownloadEventsService, AssetDownloadFailure, AssetEmbeddableLinksService, AssetFieldEqualsSearchCriterion, AssetFieldHasAllEqualSearchCriterion, AssetFieldHasAnyEqualSearchCriterion, AssetFieldIsEmptySearchCriterion, AssetFieldMatchesSearchCriterion, AssetFile, AssetIsSimilarToAssetCriterion, AssetMetadataExportService, AssetNotSearchCriterion, AssetOrSearchCriterion, AssetPaginatedSearchRequest, AssetPermittedActions, AssetPermittedActionsWithDefault, AssetPromptCompletedJob, AssetPromptFailure, AssetPromptInProgressJob, AssetSavedCropAreaSummariesService, AssetSavedCropAreasService, AssetScrollSearchRequest, AssetSearchFieldField, AssetSearchFieldFixed, AssetShare, AssetShareAccessTokensService, AssetShareEmailsService, AssetShareFieldEqualsSearchCriterion, AssetSharePatchRequest, AssetShareRequest, AssetShareSearchField, AssetShareSort, AssetShareSortField, AssetSharesService, AssetSort, AssetSortFieldField, AssetSortFieldFixed, AssetUploadCompletionFailure, AssetUploadCompletionSuccess, AssetUploadFailure, AssetVariantCriteriaService, AssetVariantCriterionBulkUpdate, AssetVariantCriterionFieldEqualsSearchCriterion, AssetVariantCriterionFieldInSearchCriterion, AssetVariantCriterionSearchField, AssetVariantCriterionSort, AssetVariantCriterionSortField, AssetsSelectorByCriterion, AssetsSelectorByIds, AssetsService, AutoTaggingImageSettingsService, BASE_PATH, BaseAssetSearchRequest, BaseCloudObject, BaseJob, Beta, Billing, BillingRequest, COLLECTION_FORMATS, ClipTransformation, CloudConnectionsService, CloudFile, CloudFileShortcut, CloudFolder, CloudFolderShortcut, CloudImportCompletedJob, CloudImportJobsService, CloudObjectFieldEqualsSearchCriterion, CloudObjectIdValue, CloudObjectMatchesTextSearchCriterion, CloudObjectRootFolder, CloudObjectSearchField, CloudObjectsSelectorByIds, CloudObjectsService, CollectionShare, CollectionShareAccessTokensService, CollectionShareFieldEqualsSearchCriterion, CollectionSharePatchRequest, CollectionShareRequest, CollectionShareSearchField, CollectionShareSort, CollectionShareSortField, CollectionSharesService, CollectionSort, CollectionSortField, CollectionsService, Comment, CommentRequest, CompletedJob, Configuration, ContextType, ConvertBitrateTransformation, ConvertPresetParameters, ConvertTransformation, ConvertTransformationTemplate, CorebookService, Coupon, CreatedByCurrentUserSearchCriterion, CreatedSubscription, CropPresetParameters, CropTransformation, CropTransformationTemplate, CustomService, CustomTransformationDescription, DashAsset, DataType, DefaultService, DeniedActionWithReason, DynamicOnboardingChecklistItem, DynamicOnboardingChecklistItemId, EmbeddableLink, EmbeddableLinkBatchCompletedJob, EmbeddableLinkFailure, EmbeddableLinkFieldInSearchCriterion, EmbeddableLinkPatchRequest, EmbeddableLinkSearchField, EmbeddableLinkSort, EmbeddableLinkSortField, EntityQuotaOverridesService, EventDateHistogramAggregationRequest, EventDateInterval, ExternalAccessUser, ExternalAppAccount, ExternalAppAccountRequest, ExternalAppService, ExternalAppSsoTokenRequest, ExternalAppUserRequest, FailedJob, FailedPaymentStatus, FailedSubscription, FeatureBasedPlan, Field, FieldOptionAndSearchCriterion, FieldOptionFailure, FieldOptionFieldContainsSearchCriterion, FieldOptionFieldEqualsSearchCriterion, FieldOptionFieldInSearchCriterion, FieldOptionFieldIsEmptySearchCriterion, FieldOptionImageFailure, FieldOptionImagesService, FieldOptionNotSearchCriterion, FieldOptionOrSearchCriterion, FieldOptionSearchField, FieldOptionSort, FieldOptionsService, FieldRequest, FieldSearchFilter, FieldView, FieldViewsService, FieldWhitelistAllOptions, FieldWhitelistSpecificOptions, FieldsService, FileType, FolderSettingsService, Group, GroupPatchRequest, GroupRequest, GroupRole, GroupsService, GuestUploadAccessTokensService, GuestUploadEmailsService, GuestUploadSort, GuestUploadSortField, GuestUploadUser, GuestUploadsService, HardCodedFixedOptionsSearchFilter, HardCodedFreeOptionDimensionsSearchFilter, HardCodedFreeOptionsSearchFilter, HardCodedUserSearchFilter, InGroupsPermissions, InGroupsUserPatchRequest, InGroupsUserRequest, InGroupsUserRequestItem, InProgressJob, IsTransparentTransformationCriterion, JobPatchRequest, JobStepProgress, KlaviyoExportCompletedJob, KlaviyoInstallation, KlaviyoInstallationStatus, KlaviyoService, LifecycleStatusBinned, LifecycleStatusLive, LifecycleStatusPendingApproval, LifecycleStatusStaged, LifecycleTransition, LifecycleTransitionBatchRequest, LimitedDownloads, LoginMethod, MatchAllSearchCriterion, MatchNoneSearchCriterion, MatchValues, MatchesMediaTypesTransformationCriterion, MetadataExportCompletedJob, MetadataFieldValueUpdateByIds, MetadataFieldValueUpdateByValues, MetadataFieldValueUpdateOperation, MetadataSuggestionCompletedJob, NullableFieldOptionSearchFieldPatch, OnboardingChecklistService, Orientation, OrientationTransformation, OriginGuestUpload, OriginalDownloadFilename, PendingAccountUser, PendingPaymentStatus, PendingSubscription, PermittedAction, PingService, PlanUpgradeRequiredDenialReason, Portal, PortalAccessTokensService, PortalEmailsService, PortalPatchRequest, PortalRequest, PortalSort, PortalSortField, PortalUser, PortalsService, PresetSettings, PresetSettingsPatchRequest, PresetSettingsService, PresetTransformationApplicableForAnyAssetsSearchCriterion, PresetTransformationDescription, PresetTransformationHasTransformationOfTypeSearchCriterion, PresetTransformationSort, PresetTransformationsForAssetFieldInSearchCriterion, PresetTransformationsForAssetSearchField, PresetTransformationsForAssetSort, PresetTransformationsService, Product, ProductAndSearchCriterion, ProductFieldEqualsSearchCriterion, ProductFieldHasAllEqualSearchCriterion, ProductFieldHasAnyEqualSearchCriterion, ProductFieldIsEmptySearchCriterion, ProductFieldMatchesSearchCriterion, ProductNotSearchCriterion, ProductOrSearchCriterion, ProductSearchFieldField, ProductSearchFieldFixed, ProductSort, ProductSortFieldField, ProductSortFieldFixed, ProductStatus, ProductVariantAndSearchCriterion, ProductVariantFieldEqualsSearchCriterion, ProductVariantFieldHasAllEqualSearchCriterion, ProductVariantFieldHasAnyEqualSearchCriterion, ProductVariantFieldIsEmptySearchCriterion, ProductVariantFieldMatchesSearchCriterion, ProductVariantNotSearchCriterion, ProductVariantOrSearchCriterion, ProductVariantSearchFieldField, ProductVariantSearchFieldFixed, ProductVariantSort, ProductVariantSortFieldField, ProductVariantSortFieldFixed, ProductsService, PublicCollectionShareFieldHasItemSearchCriterion, PublicCollectionShareSearchField, PublicCollectionShareSort, PublicCollectionShareSortField, PubliclyAvailableAccountDataFieldEqualsSearchCriterion, PubliclyAvailableAccountDataHasUsersWithEmailDomainSearchCriterion, PubliclyAvailableAccountDataSearchField, PubliclyAvailableGuestUploadDataService, PubliclyAvailablePortalData, PubliclyAvailablePortalDatasService, ReferenceImageUploadsService, ResizeTransformation, ResizeTransformationTemplate, ResourceType, SavedCropAreaSummaryAndSearchCriterion, SavedCropAreaSummaryFieldEqualsSearchCriterion, SavedCropAreaSummaryFieldInSearchCriterion, SavedCropAreaSummarySearchField, SavedCropAreaSummarySort, SavedSearchFieldEqualsSearchCriterion, SavedSearchSearchField, SavedSearchService, SavedSearchesService, SearchFiltersService, SelfReportedCompanyDescription, SelfReportedGoalFixed, SelfReportedGoalOther, ShopifyExportCompletedJob, ShopifyExportRemovalItem, ShopifyExportUploadItem, ShopifyFile, ShopifyImageUsedInOther, ShopifyImageUsedInProduct, ShopifyInstall, ShopifyInstallStatus, ShopifyProductFieldInSearchCriterion, ShopifyProductSearchField, ShopifySKUSettingsService, ShopifyService, SliderValueBasedPlan, SomethingElseSubscriptionCancellationRequest, SortOrder, StaffMembersService, StandardSubscriptionCancellationRequest, StorageAndDownloadsPlan, StorageAndDownloadsPlanRequest, StorageAndDownloadsV7Plan, StorageAndDownloadsV7PlanRequest, StorageAndDownloadsV8Plan, StorageAndDownloadsV8PlanRequest, SubdomainsService, SubscriptionService, SucceededPaymentStatus, TermsAndConditionsService, TextInImageSettingsService, Theme, ThemeAndSearchCriterion, ThemeFieldEqualsSearchCriterion, ThemeImageType, ThemeImageUploadRequest, ThemeSearchField, ThemeService, TieredValueBasedPlan, TieredValueBasedPlanRequest, UnlimitedDownloads, UnverifiedFreeTrialDenialReason, UnverifiedPaidPlanDenialReason, UserAndSearchCriterion, UserBatchCompletedJob, UserCanUploadSearchCriterion, UserCreationStatusResponse, UserDataAccountUser, UserDataPortalUser, UserDataShareUser, UserDataUnknown, UserFailure, UserFieldEqualsSearchCriterion, UserFieldInSearchCriterion, UserFieldMatchesSearchCriterion, UserGroupSearchField, UserInGroupWhereFieldEqualsSearchCriterion, UserNotSearchCriterion, UserOrSearchCriterion, UserPreferencesService, UserReferrerService, UserSearchField, UserSort, UserSortField, UsersService, WordPressService };
25382
+ export type { AccessToken, AccessTokenWithPermittedActions, AccountInviteRequest, AccountSecurity, AccountSecurityPutRequest, AccountSecurityWithPermittedActions, AccountTermsAndConditions, AccountTermsAndConditionsRequest, AccountUser, AccountUserWithPermittedActions, AccountWithPermittedActions, Address, AiImageGenerationsResponse, AiImageGenerationsResponseResult, AlterShopifyStoreRequest, Amount, Asset, AssetAggregationBucket, AssetAggregationBucketResponse, AssetAggregationRequest, AssetAggregationRequestInclusionOptions, AssetAggregationRequestsMap, AssetAggregationResponse, AssetAggregationResponsesMap, AssetAndUploadBatch, AssetAndUploadBatchJob, AssetAndUploadBatchRequest, AssetAndUploadBatchRequestItem, AssetAndUploadWithPermittedActions, AssetDeduplicationBatchJob, AssetDeduplicationResult, AssetDeletionBatchRequest, AssetDownload, AssetDownloadBatch, AssetDownloadBatchJob, AssetDownloadBatchRequest, AssetDownloadBatchRequestItem, AssetDownloadDetails, AssetDownloadEventAggregationRequest, AssetDownloadEventAndSearchCriterion, AssetDownloadEventNotSearchCriterion, AssetDownloadEventOrSearchCriterion, AssetDownloadEventSearch, AssetDownloadEventSearchCriterion, AssetDownloadEventSearchRequest, AssetDownloadEventWithPermittedActions, AssetDownloadWithPermittedActions, AssetFileWithPermittedActions, AssetPatchRequest, AssetPromptBatch, AssetPromptBatchJob, AssetPromptBatchRequest, AssetPromptOutput, AssetPromptOutputWithPermittedActions, AssetScrollSearch, AssetScrollSearchScrollRequest, AssetSearch, AssetSearchCriterion, AssetSearchField, AssetShareEmailRequest, AssetShareSearch, AssetShareSearchCriterion, AssetShareSearchRequest, AssetShareWithPermittedActions, AssetSortField, AssetTermsAggregationRequest, AssetUpload, AssetUploadBatchRequest, AssetUploadBatchRequestItem, AssetUploadCompletedPart, AssetUploadCompletion, AssetUploadCompletionRequest, AssetUploadCompletionWithPermittedActions, AssetUploadDetails, AssetUploadPart, AssetUploadPartUrlRequest, AssetUploadPartUrlsRequest, AssetUploadRequest, AssetUploadWithPermittedActions, AssetVariantCriterion, AssetVariantCriterionBulkUpdateSetItem, AssetVariantCriterionSearch, AssetVariantCriterionSearchCriterion, AssetVariantCriterionSearchRequest, AssetVariantCriterionWithPermittedActions, AssetWithPermittedActions, AssetsCreation, AssetsCreationRequest, AssetsCreationWithPermittedActions, AssetsSelector, Attribution, AutoTaggingImageSettings, AutoTaggingImageSettingsPatchRequest, AutoTaggingImageSettingsWithPermittedActions, BaseAssetSearch, BaseCloudConnection, BasePaginatedSearchInAccountRequest, BaseProductSearch, BaseProductSearchRequest, BaseProductVariantSearch, BaseProductVariantSearchRequest, BaseScrollSearchInAccountRequest, BaseSearchFilter, BatchItem, BillingInfo, CandidatePresetTransformation, CandidateTransformation, CloudConnection, CloudConnectionRequest, CloudConnectionWithPermittedActions, CloudImportJob, CloudImportJobRequest, CloudImportJobWithPermittedActions, CloudImportResult, CloudObject, CloudObjectIdValueOrRootFolder, CloudObjectPagedSearch, CloudObjectPagedSearchRequest, CloudObjectPathMapping, CloudObjectSearchCriterion, CloudObjectsSelector, Collection, CollectionAssociatedWithUserSearchCriterion, CollectionCollaborator, CollectionPatchRequest, CollectionRequest, CollectionSearch, CollectionSearchCriterion, CollectionSearchRequest, CollectionShareSearch, CollectionShareSearchCriterion, CollectionShareSearchRequest, CollectionShareWithPermittedActions, CollectionWithPermittedActions, CommentPatchRequest, CommentWithPermittedActions, ConfigurationParameters, ContextComments, CorebookSettings, CorebookSettingsRequest, CorebookSettingsWithPermittedActions, CreateShopifyImageBatchRequest, CreateShopifyProductImageBatchRequest, CreatedSubscriptionWithPermittedActions, CropParameters, CurrentUserIntercomDetails, CurrentUserStaffStatus, CustomIntegrationSettings, CustomIntegrationSettingsPatchRequest, CustomIntegrationSettingsPutRequest, CustomIntegrationSettingsWithPermittedActions, DenialReason, DeterminedTransformation, Dimensions, DownloadCountInDateRange, DownloadCountsByUserType, Downloads, DropboxCloudConnection, DropboxCloudConnectionRequest, DynamicOnboardingChecklist, DynamicOnboardingChecklistPatchRequest, DynamicOnboardingChecklistWithPermittedActions, EmbeddableLinkBatch, EmbeddableLinkBatchJob, EmbeddableLinkBatchRequest, EmbeddableLinkBatchRequestItem, EmbeddableLinkDetails, EmbeddableLinkSearch, EmbeddableLinkSearchCriterion, EmbeddableLinkSearchRequest, EmbeddableLinkWithPermittedActions, EntityQuotaOverride, EntityQuotaOverrideRequest, EntityQuotaOverrideWithPermittedActions, EventAggregationBucket, EventAggregationBucketResponse, EventAggregationResponse, EventAggregationValueResponse, EventTermsAggregationRequest, ExternalAppAccountWithPermittedActions, FailedJobAllOfReason, FieldContainsSearchCriterion, FieldEqualsSearchCriterion, FieldHasItemSearchCriterion, FieldInRangeSearchCriterion, FieldInSearchCriterion, FieldIsEmptySearchCriterion, FieldMatchesSearchCriterion, FieldOption, FieldOptionBatch, FieldOptionBatchRequest, FieldOptionBatchRequestItem, FieldOptionImage, FieldOptionImageBatch, FieldOptionImageBatchRequest, FieldOptionImageBatchRequestItem, FieldOptionImageRequest, FieldOptionImageUpload, FieldOptionImageUploadRequest, FieldOptionImageWithPermittedActions, FieldOptionRequest, FieldOptionSearch, FieldOptionSearchCriterion, FieldOptionSearchRequest, FieldOptionWithPermittedActions, FieldPatchRequest, FieldViewWithPermittedActions, FieldWhitelist, FieldWithPermittedActions, FolderSettings, FolderSettingsWithPermittedActions, GoogleCloudConnection, GoogleCloudConnectionRequest, GpsLocation, GroupWithPermittedActions, GroupedPresetTransformations, GroupedPresetTransformationsWithPermittedActions, GuestUpload, GuestUploadAccessTokenRequest, GuestUploadEmailRequest, GuestUploadPatchRequest, GuestUploadRequest, GuestUploadSearch, GuestUploadSearchCriterion, GuestUploadSearchRequest, GuestUploadWithPermittedActions, JobProgress, KlaviyoExportAsset, KlaviyoExportJob, KlaviyoExportJobRequest, KlaviyoExportJobWithPermittedActions, KlaviyoExportResult, KlaviyoInstallationLink, KlaviyoInstallationLinkWithPermittedActions, KlaviyoInstallationWithPermittedActions, LifecycleStatus, MediaType, Metadata, MetadataEditBatchRequest, MetadataExportBatchJob, MetadataExportResult, MetadataFieldValueUpdate, MetadataSuggestion, MetadataSuggestionBatch, MetadataSuggestionBatchJob, MetadataSuggestionBatchRequest, MetadataSuggestionWithPermittedActions, ModelError, NoResultJob, NullableAssetSortFieldPatch, NullableDateTimePatch, NullableStringFieldPatch, OnboardingChecklist, OnboardingChecklistPatchRequest, OnboardingChecklistWithPermittedActions, Origin, PaymentStatus, Plan, PlanRequest, PlatformCurrentUserAccountSearchRequest, PlatformUserForgottenPasswordRequest, PlatformUserPatchRequest, PlatformUserProfilePictureRequest, PlatformUserProfilePictureUpload, PlatformUserProfilePictureUploadRequest, PlatformUserRequest, PlatformUserResetPasswordRequest, PlatformUserSignUpToken, PlatformUserSignUpTokenRequest, PlatformUserVerificationRequest, PortalEmailRequest, PortalSearch, PortalSearchCriterion, PortalSearchRequest, PortalWithPermittedActions, PresetParameters, PresetSettingsWithPermittedActions, PresetTransformation, PresetTransformationAndSearchCriterion, PresetTransformationGroup, PresetTransformationGroupType, PresetTransformationNotSearchCriterion, PresetTransformationOrSearchCriterion, PresetTransformationSearch, PresetTransformationSearchCriterion, PresetTransformationSearchRequest, PresetTransformationWithPermittedActions, PresetTransformationsForAsset, PresetTransformationsForAssetSearch, PresetTransformationsForAssetSearchCriterion, PresetTransformationsForAssetSearchRequest, PresetTransformationsForAssetWithPermittedActions, ProductAggregationBucket, ProductAggregationBucketResponse, ProductAggregationRequest, ProductAggregationRequestInclusionOptions, ProductAggregationRequestsMap, ProductAggregationResponse, ProductAggregationResponsesMap, ProductMetadata, ProductPaginatedSearchRequest, ProductSearch, ProductSearchCriterion, ProductSearchField, ProductSortField, ProductTermsAggregationRequest, ProductVariant, ProductVariantAggregationBucket, ProductVariantAggregationBucketResponse, ProductVariantAggregationRequest, ProductVariantAggregationRequestInclusionOptions, ProductVariantAggregationRequestsMap, ProductVariantAggregationResponse, ProductVariantAggregationResponsesMap, ProductVariantPaginatedSearchRequest, ProductVariantSearch, ProductVariantSearchCriterion, ProductVariantSearchField, ProductVariantSortField, ProductVariantTermsAggregationRequest, ProductVariantWithPermittedActions, ProductWithPermittedActions, PublicCollectionShareSearchCriterion, PublicCollectionShareSearchRequest, PubliclyAvailableAccountData, PubliclyAvailableAccountDataSearch, PubliclyAvailableAccountDataSearchCriterion, PubliclyAvailableAccountDataSearchRequest, PubliclyAvailableAccountDataWithPermittedActions, PubliclyAvailableGuestUploadData, PubliclyAvailableGuestUploadDataWithPermittedActions, PubliclyAvailablePortalDataWithPermittedActions, ReferenceImage, ReferenceImageAsset, ReferenceImageUploaded, ReferenceImageUploadsResponse, ReferenceImageUploadsResponseResult, Referrer, ReferrerWithPermittedActions, RejectedMetadataSuggestion, RejectedMetadataSuggestionBatch, RejectedMetadataSuggestionBatchRequest, RejectedMetadataSuggestionRequest, RejectedMetadataSuggestionRequestItem, RejectedMetadataSuggestionWithPermittedActions, SavedCropArea, SavedCropAreaPatchRequest, SavedCropAreaRequest, SavedCropAreaSummary, SavedCropAreaSummarySearch, SavedCropAreaSummarySearchCriterion, SavedCropAreaSummarySearchRequest, SavedCropAreaSummaryWithPermittedActions, SavedCropAreaWithPermittedActions, SavedSearch, SavedSearchPatchRequest, SavedSearchRequest, SavedSearchSearch, SavedSearchSearchCriterion, SavedSearchSearchRequest, SavedSearchWithPermittedActions, SearchCriterion, SearchFilter, SearchFilterView, SearchFilterViewSearchFilterPatchRequest, SearchFilterViewSearchFilterRequest, SearchFilterViewWithPermittedActions, SearchFilterWithPermittedActions, SelfReportedGoal, ShopifyConnection, ShopifyConnectionWithPermittedActions, ShopifyExportJob, ShopifyExportJobWithPermittedActions, ShopifyExportRequest, ShopifyExportRequestItem, ShopifyExportResult, ShopifyExportResultAssetFailure, ShopifyExportResultProductAssignmentFailure, ShopifyExportResultProductRemovalFailure, ShopifyExportResultProductReorderFailure, ShopifyExportResultUploadFailure, ShopifyExportSource, ShopifyImageUsedIn, ShopifyInstallPatchRequest, ShopifyInstallRequest, ShopifyInstallWithPermittedActions, ShopifyProduct, ShopifyProductFileDestination, ShopifyProductIdSearch, ShopifyProductIdSearchRequest, ShopifyProductIdSearchResult, ShopifyProductMedia, ShopifyProductSearch, ShopifyProductSearchCriterion, ShopifyProductSearchRequest, ShopifyProductSyncSettings, ShopifyProductSyncSettingsRequest, ShopifyProductSyncSettingsWithPermittedActions, ShopifyProductSyncStatus, ShopifyProductSyncStatusWithPermittedActions, ShopifyProductWithPermittedActions, ShopifySkuSettings, ShopifySkuSettingsRequest, ShopifySkuSettingsWithPermittedActions, SignupUser, StaffMember, StaffMemberRequest, Stats, SubdomainAvailabilityCheck, SubdomainAvailabilityCheckRequest, Subscription, SubscriptionCancellationRequest, SubscriptionIntent, SubscriptionIntentPatchRequest, SubscriptionIntentRequest, SubscriptionIntentWithPermittedActions, SubscriptionUsage, SubscriptionWithPermittedActions, TextInImageSettings, TextInImageSettingsPatchRequest, TextInImageSettingsWithPermittedActions, ThemeImageUpload, ThemePatchRequest, ThemeSearch, ThemeSearchCriterion, ThemeSearchRequest, ThemeWithPermittedActions, Transformation, TransformationCriterion, TransformationDescription, TransformationTemplate, User, UserBatch, UserBatchJob, UserBatchRequest, UserBatchRequestItem, UserCreationStatusResponseWithPermittedActions, UserData, UserDeleteRequest, UserPatchRequest, UserPermissions, UserPreferences, UserPreferencesPatchRequest, UserPreferencesWithPermittedActions, UserRequest, UserSearch, UserSearchCriterion, UserSearchRequest, UserWithNoPermittedActions, UserWithPermittedActions, WelcomeMessage, WordPressSettings, WordPressSettingsPatchRequest, WordPressSettingsPutRequest, WordPressSettingsWithPermittedActions };