@brightinteractive/platform-api 0.1.91 → 0.1.93

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -11747,9 +11747,9 @@ interface Field {
11747
11747
  */
11748
11748
  editControl: Field.EditControlEnum;
11749
11749
  /**
11750
- * If `true` contributors with edit permissions can edit the value of this [`Field`](/dash/openapi/Fields) on an asset. If `false` only admins can edit the value of this [`Field`](/dash/openapi/Fields).
11750
+ * If `true`, admins and contributors can create [`FieldOption`](/dash/openapi/Field-Options) resources for this [`Field`](/dash/openapi/Fields). If `false`, [`FieldOption`](/dash/openapi/Field-Options) creation uses the existing folder-specific permission logic.
11751
11751
  */
11752
- canNonAdminsEdit: boolean;
11752
+ contributorsCanCreateFieldOptions: boolean;
11753
11753
  /**
11754
11754
  * If `true` the [`Field`](/dash/openapi/Fields) cannot be deleted. Primarily used to prevent removal of an [`Field`](/dash/openapi/Fields) which is required by Dash.
11755
11755
  */
@@ -11905,9 +11905,9 @@ interface FieldPatchRequest {
11905
11905
  */
11906
11906
  name?: string | null;
11907
11907
  /**
11908
- * If `true` contributors with edit permissions can edit the value of this [`Field`](/dash/openapi/Fields) on an asset. If `false` only admins can edit the value of this [`Field`](/dash/openapi/Fields).
11908
+ * If `true`, admins and contributors can create [`FieldOption`](/dash/openapi/Field-Options) resources for this [`Field`](/dash/openapi/Fields). If `false`, [`FieldOption`](/dash/openapi/Field-Options) creation uses the existing folder-specific permission logic.
11909
11909
  */
11910
- canNonAdminsEdit?: boolean | null;
11910
+ contributorsCanCreateFieldOptions?: boolean | null;
11911
11911
  /**
11912
11912
  * If `true` it is recommended for assets to have a value for this [`Field`](/dash/openapi/Fields). Clients should highlight missing recommended values during creation and editing of assets. Clients can also use the `FIELD_IS_EMPTY` criterion in an [`AssetSearch`](/dash/openapi/assets/postassetsearch) to find assets with missing recommended values.
11913
11913
  */
@@ -11954,9 +11954,9 @@ interface FieldRequest {
11954
11954
  */
11955
11955
  editControl: FieldRequest.EditControlEnum;
11956
11956
  /**
11957
- * If `true` contributors with edit permissions can edit the value of this [`Field`](/dash/openapi/Fields) on an asset. If `false` only admins can edit the value of this [`Field`](/dash/openapi/Fields).
11957
+ * If `true`, admins and contributors can create [`FieldOption`](/dash/openapi/Field-Options) resources for this [`Field`](/dash/openapi/Fields). If `false`, [`FieldOption`](/dash/openapi/Field-Options) creation uses the existing folder-specific permission logic.
11958
11958
  */
11959
- canNonAdminsEdit?: boolean;
11959
+ contributorsCanCreateFieldOptions?: boolean;
11960
11960
  /**
11961
11961
  * If `true` it is recommended for assets to have a value for this [`Field`](/dash/openapi/Fields). Clients should highlight missing recommended values during creation and editing of assets. Clients can also use the `FIELD_IS_EMPTY` criterion in an [`AssetSearch`](/dash/openapi/assets/postassetsearch) to find assets with missing recommended values.
11962
11962
  */
@@ -16233,6 +16233,109 @@ interface ShopifyExportRequest {
16233
16233
  items: Array<ShopifyExportRequestItem>;
16234
16234
  }
16235
16235
 
16236
+ /**
16237
+ * Dash API
16238
+ * # 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. However, if you just want to try out an API endpoint, or want to [request your client ID and secret](/dash/openapi/custom/putcustomintegrationsettings) (required for OAuth2 below), 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, 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 integrations settings endpoint will include your 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. # 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 [lifecycle status](/dash/openapi/Asset-Lifecycle) 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.
16239
+ *
16240
+ * The version of the OpenAPI document: 2.0.0
16241
+ * Contact: help@dash.app
16242
+ *
16243
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16244
+ * https://openapi-generator.tech
16245
+ * Do not edit the class manually.
16246
+ */
16247
+ interface ShopifyInstallPatchRequest {
16248
+ /**
16249
+ * The install link for the Shopify app
16250
+ */
16251
+ installLink?: string | null;
16252
+ }
16253
+
16254
+ /**
16255
+ * Dash API
16256
+ * # 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. However, if you just want to try out an API endpoint, or want to [request your client ID and secret](/dash/openapi/custom/putcustomintegrationsettings) (required for OAuth2 below), 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, 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 integrations settings endpoint will include your 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. # 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 [lifecycle status](/dash/openapi/Asset-Lifecycle) 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.
16257
+ *
16258
+ * The version of the OpenAPI document: 2.0.0
16259
+ * Contact: help@dash.app
16260
+ *
16261
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16262
+ * https://openapi-generator.tech
16263
+ * Do not edit the class manually.
16264
+ */
16265
+ interface ShopifyInstallRequest {
16266
+ /**
16267
+ * The Shopify domain to request an install link for
16268
+ */
16269
+ shopifyDomain: string;
16270
+ }
16271
+
16272
+ /**
16273
+ * Dash API
16274
+ * # 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. However, if you just want to try out an API endpoint, or want to [request your client ID and secret](/dash/openapi/custom/putcustomintegrationsettings) (required for OAuth2 below), 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, 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 integrations settings endpoint will include your 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. # 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 [lifecycle status](/dash/openapi/Asset-Lifecycle) 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.
16275
+ *
16276
+ * The version of the OpenAPI document: 2.0.0
16277
+ * Contact: help@dash.app
16278
+ *
16279
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16280
+ * https://openapi-generator.tech
16281
+ * Do not edit the class manually.
16282
+ */
16283
+ /**
16284
+ * The current status of the Shopify install
16285
+ */
16286
+ type ShopifyInstallStatus = 'INSTALL_LINK_BEING_CREATED' | 'READY_TO_INSTALL' | 'INSTALLED';
16287
+ declare const ShopifyInstallStatus: {
16288
+ InstallLinkBeingCreated: ShopifyInstallStatus;
16289
+ ReadyToInstall: ShopifyInstallStatus;
16290
+ Installed: ShopifyInstallStatus;
16291
+ };
16292
+
16293
+ /**
16294
+ * Dash API
16295
+ * # 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. However, if you just want to try out an API endpoint, or want to [request your client ID and secret](/dash/openapi/custom/putcustomintegrationsettings) (required for OAuth2 below), 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, 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 integrations settings endpoint will include your 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. # 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 [lifecycle status](/dash/openapi/Asset-Lifecycle) 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.
16296
+ *
16297
+ * The version of the OpenAPI document: 2.0.0
16298
+ * Contact: help@dash.app
16299
+ *
16300
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16301
+ * https://openapi-generator.tech
16302
+ * Do not edit the class manually.
16303
+ */
16304
+
16305
+ /**
16306
+ * A derived view of the current Shopify install state for a Shopify domain.
16307
+ */
16308
+ interface ShopifyInstall {
16309
+ /**
16310
+ * The Shopify domain that uniquely identifies the install
16311
+ */
16312
+ shopifyDomain: string;
16313
+ status: ShopifyInstallStatus;
16314
+ /**
16315
+ * The install link for the Shopify app
16316
+ */
16317
+ installLink?: string | null;
16318
+ }
16319
+ declare namespace ShopifyInstall {
16320
+ }
16321
+
16322
+ /**
16323
+ * Dash API
16324
+ * # 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. However, if you just want to try out an API endpoint, or want to [request your client ID and secret](/dash/openapi/custom/putcustomintegrationsettings) (required for OAuth2 below), 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, 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 integrations settings endpoint will include your 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. # 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 [lifecycle status](/dash/openapi/Asset-Lifecycle) 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.
16325
+ *
16326
+ * The version of the OpenAPI document: 2.0.0
16327
+ * Contact: help@dash.app
16328
+ *
16329
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16330
+ * https://openapi-generator.tech
16331
+ * Do not edit the class manually.
16332
+ */
16333
+
16334
+ interface ShopifyInstallWithPermittedActions {
16335
+ result: ShopifyInstall;
16336
+ permittedActions: Array<PermittedAction>;
16337
+ }
16338
+
16236
16339
  /**
16237
16340
  * Dash API
16238
16341
  * # 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. However, if you just want to try out an API endpoint, or want to [request your client ID and secret](/dash/openapi/custom/putcustomintegrationsettings) (required for OAuth2 below), 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, 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 integrations settings endpoint will include your 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. # 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 [lifecycle status](/dash/openapi/Asset-Lifecycle) 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.
@@ -16551,6 +16654,27 @@ declare class ShopifyService {
16551
16654
  context?: HttpContext;
16552
16655
  transferCache?: boolean;
16553
16656
  }): Observable<HttpEvent<ShopifyExportJobWithPermittedActions>>;
16657
+ /**
16658
+ * Get Shopify installs
16659
+ * Get the current Shopify install states for the account of the currently authenticated Dash user.
16660
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
16661
+ * @param reportProgress flag to report request and response progress.
16662
+ */
16663
+ getShopifyInstalls(observe?: 'body', reportProgress?: boolean, options?: {
16664
+ httpHeaderAccept?: 'application/json';
16665
+ context?: HttpContext;
16666
+ transferCache?: boolean;
16667
+ }): Observable<Array<ShopifyInstallWithPermittedActions>>;
16668
+ getShopifyInstalls(observe?: 'response', reportProgress?: boolean, options?: {
16669
+ httpHeaderAccept?: 'application/json';
16670
+ context?: HttpContext;
16671
+ transferCache?: boolean;
16672
+ }): Observable<HttpResponse<Array<ShopifyInstallWithPermittedActions>>>;
16673
+ getShopifyInstalls(observe?: 'events', reportProgress?: boolean, options?: {
16674
+ httpHeaderAccept?: 'application/json';
16675
+ context?: HttpContext;
16676
+ transferCache?: boolean;
16677
+ }): Observable<HttpEvent<Array<ShopifyInstallWithPermittedActions>>>;
16554
16678
  /**
16555
16679
  * Update the status of exporting to Shopify
16556
16680
  * Update a [&#x60;ShopifyExportJob&#x60;](/dash/openapi/shopify/postshopifyexportjob). Primarily used to stop a job.
@@ -16574,6 +16698,29 @@ declare class ShopifyService {
16574
16698
  context?: HttpContext;
16575
16699
  transferCache?: boolean;
16576
16700
  }): Observable<HttpEvent<ShopifyExportJobWithPermittedActions>>;
16701
+ /**
16702
+ * Update a Shopify install
16703
+ * Update a Shopify install for the account of the currently authenticated Dash user.
16704
+ * @param shopifyDomain The Shopify domain that uniquely identifies the install
16705
+ * @param shopifyInstallPatchRequest
16706
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
16707
+ * @param reportProgress flag to report request and response progress.
16708
+ */
16709
+ patchShopifyInstall(shopifyDomain: string, shopifyInstallPatchRequest: ShopifyInstallPatchRequest, observe?: 'body', reportProgress?: boolean, options?: {
16710
+ httpHeaderAccept?: 'application/json';
16711
+ context?: HttpContext;
16712
+ transferCache?: boolean;
16713
+ }): Observable<ShopifyInstallWithPermittedActions>;
16714
+ patchShopifyInstall(shopifyDomain: string, shopifyInstallPatchRequest: ShopifyInstallPatchRequest, observe?: 'response', reportProgress?: boolean, options?: {
16715
+ httpHeaderAccept?: 'application/json';
16716
+ context?: HttpContext;
16717
+ transferCache?: boolean;
16718
+ }): Observable<HttpResponse<ShopifyInstallWithPermittedActions>>;
16719
+ patchShopifyInstall(shopifyDomain: string, shopifyInstallPatchRequest: ShopifyInstallPatchRequest, observe?: 'events', reportProgress?: boolean, options?: {
16720
+ httpHeaderAccept?: 'application/json';
16721
+ context?: HttpContext;
16722
+ transferCache?: boolean;
16723
+ }): Observable<HttpEvent<ShopifyInstallWithPermittedActions>>;
16577
16724
  /**
16578
16725
  * Send images to Shopify
16579
16726
  * See [&#x60;AssetDownloadBatchJob&#x60;](/dash/openapi/assets/postassetdownloadbatchjob) for an idea of how to use this endpoint
@@ -16662,6 +16809,28 @@ declare class ShopifyService {
16662
16809
  context?: HttpContext;
16663
16810
  transferCache?: boolean;
16664
16811
  }): Observable<HttpEvent<ShopifyExportJobWithPermittedActions>>;
16812
+ /**
16813
+ * Request a Shopify install link
16814
+ * Request a Shopify install link for the account of the currently authenticated Dash user.
16815
+ * @param shopifyInstallRequest
16816
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
16817
+ * @param reportProgress flag to report request and response progress.
16818
+ */
16819
+ postShopifyInstall(shopifyInstallRequest: ShopifyInstallRequest, observe?: 'body', reportProgress?: boolean, options?: {
16820
+ httpHeaderAccept?: 'application/json';
16821
+ context?: HttpContext;
16822
+ transferCache?: boolean;
16823
+ }): Observable<ShopifyInstallWithPermittedActions>;
16824
+ postShopifyInstall(shopifyInstallRequest: ShopifyInstallRequest, observe?: 'response', reportProgress?: boolean, options?: {
16825
+ httpHeaderAccept?: 'application/json';
16826
+ context?: HttpContext;
16827
+ transferCache?: boolean;
16828
+ }): Observable<HttpResponse<ShopifyInstallWithPermittedActions>>;
16829
+ postShopifyInstall(shopifyInstallRequest: ShopifyInstallRequest, observe?: 'events', reportProgress?: boolean, options?: {
16830
+ httpHeaderAccept?: 'application/json';
16831
+ context?: HttpContext;
16832
+ transferCache?: boolean;
16833
+ }): Observable<HttpEvent<ShopifyInstallWithPermittedActions>>;
16665
16834
  static ɵfac: i0.ɵɵFactoryDeclaration<ShopifyService, [null, { optional: true; }, { optional: true; }]>;
16666
16835
  static ɵprov: i0.ɵɵInjectableDeclaration<ShopifyService>;
16667
16836
  }
@@ -20765,7 +20934,7 @@ declare class WordPressService {
20765
20934
  static ɵprov: i0.ɵɵInjectableDeclaration<WordPressService>;
20766
20935
  }
20767
20936
 
20768
- 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 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 OnboardingChecklistService | typeof PingService | typeof PortalAccessTokensService | typeof PortalEmailsService | typeof PortalsService | typeof PresetTransformationsService | 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)[];
20937
+ declare const APIS: (typeof FieldsService | typeof ShopifyService | 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 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 FolderSettingsService | typeof GroupsService | typeof GuestUploadAccessTokensService | typeof GuestUploadEmailsService | typeof GuestUploadsService | typeof OnboardingChecklistService | typeof PingService | typeof PortalAccessTokensService | typeof PortalEmailsService | typeof PortalsService | typeof PresetTransformationsService | typeof PubliclyAvailableGuestUploadDataService | typeof PubliclyAvailablePortalDatasService | typeof ReferenceImageUploadsService | typeof SavedSearchService | typeof SavedSearchesService | typeof SearchFiltersService | typeof ShopifySKUSettingsService | typeof StaffMembersService | typeof SubdomainsService | typeof SubscriptionService | typeof TermsAndConditionsService | typeof TextInImageSettingsService | typeof ThemeService | typeof UserPreferencesService | typeof UserReferrerService | typeof UsersService | typeof WordPressService)[];
20769
20938
 
20770
20939
  /**
20771
20940
  * Dash API
@@ -21439,5 +21608,5 @@ declare class ApiModule {
21439
21608
  static ɵinj: i0.ɵɵInjectorDeclaration<ApiModule>;
21440
21609
  }
21441
21610
 
21442
- export { AIImageGenerationsService, APIS, Account, AccountPlan, AccountRequest, AccountSecurityService, AccountsService, ActionType, ActiveAccountUser, AdminPermissions, AdminUserPatchRequest, AdminUserRequest, AdminUserRequestItem, AiImageGenerationsRequest, AllowedLoginMethodsService, ApiModule, AppName, ApprovedPaymentStatus, AssetAndSearchCriterion, AssetAndUploadBatchCompletedJob, AssetCommentsService, 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, 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, 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, LifecycleStatusBinned, LifecycleStatusLive, LifecycleStatusPendingApproval, LifecycleStatusStaged, LifecycleTransition, LifecycleTransitionBatchRequest, LimitedDownloads, LoginMethod, MatchAllSearchCriterion, MatchNoneSearchCriterion, MatchValues, MatchesMediaTypesTransformationCriterion, MetadataExportCompletedJob, MetadataFieldValueUpdateByIds, MetadataFieldValueUpdateByValues, MetadataFieldValueUpdateOperation, MetadataSuggestionCompletedJob, NullableFieldOptionSearchFieldPatch, OnboardingChecklistService, Orientation, OrientationTransformation, OriginGuestUpload, PendingAccountUser, PendingPaymentStatus, PendingSubscription, PermittedAction, PingService, PlanUpgradeRequiredDenialReason, Portal, PortalAccessTokensService, PortalEmailsService, PortalPatchRequest, PortalRequest, PortalSort, PortalSortField, PortalUser, PortalsService, PresetTransformationApplicableForAnyAssetsSearchCriterion, PresetTransformationDescription, PresetTransformationHasTransformationOfTypeSearchCriterion, PresetTransformationSort, PresetTransformationsForAssetFieldInSearchCriterion, PresetTransformationsForAssetSearchField, PresetTransformationsForAssetSort, PresetTransformationsService, 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, ShopifyProductFieldInSearchCriterion, ShopifyProductSearchField, ShopifySKUSettingsService, ShopifyService, SliderValueBasedPlan, SortOrder, StaffMembersService, 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 };
21443
- export type { AccessToken, AccessTokenWithPermittedActions, AccountInviteRequest, AccountSecurity, AccountSecurityPutRequest, AccountSecurityWithPermittedActions, AccountTermsAndConditions, AccountTermsAndConditionsRequest, AccountUser, AccountUserWithPermittedActions, AccountWithPermittedActions, Address, AiImageGenerationsResponse, AiImageGenerationsResponseResult, Amount, Asset, AssetAggregationBucket, AssetAggregationBucketResponse, AssetAggregationRequest, AssetAggregationRequestInclusionOptions, AssetAggregationRequestsMap, AssetAggregationResponse, AssetAggregationResponsesMap, AssetAndUploadBatch, AssetAndUploadBatchJob, AssetAndUploadBatchRequest, AssetAndUploadBatchRequestItem, AssetAndUploadWithPermittedActions, 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, AssetWithPermittedActions, AssetsCreation, AssetsCreationRequest, AssetsCreationWithPermittedActions, AssetsSelector, Attribution, AutoTaggingImageSettings, AutoTaggingImageSettingsPatchRequest, AutoTaggingImageSettingsWithPermittedActions, BaseAssetSearch, BaseCloudConnection, BasePaginatedSearchInAccountRequest, BaseScrollSearchInAccountRequest, BaseSearchFilter, BatchItem, 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, 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, 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, PlatformUserRequest, PlatformUserResetPasswordRequest, PlatformUserSignUpToken, PlatformUserSignUpTokenRequest, PlatformUserVerificationRequest, PortalEmailRequest, PortalSearch, PortalSearchCriterion, PortalSearchRequest, PortalWithPermittedActions, PresetParameters, PresetTransformation, PresetTransformationAndSearchCriterion, PresetTransformationGroup, PresetTransformationGroupType, PresetTransformationNotSearchCriterion, PresetTransformationOrSearchCriterion, PresetTransformationSearch, PresetTransformationSearchCriterion, PresetTransformationSearchRequest, PresetTransformationWithPermittedActions, PresetTransformationsForAsset, PresetTransformationsForAssetSearch, PresetTransformationsForAssetSearchCriterion, PresetTransformationsForAssetSearchRequest, PresetTransformationsForAssetWithPermittedActions, 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, ShopifyProduct, ShopifyProductFileDestination, ShopifyProductMedia, ShopifyProductSearch, ShopifyProductSearchCriterion, ShopifyProductSearchRequest, ShopifyProductWithPermittedActions, ShopifySkuSettings, ShopifySkuSettingsRequest, ShopifySkuSettingsWithPermittedActions, SignupUser, StaffMember, StaffMemberRequest, Stats, SubdomainAvailabilityCheck, SubdomainAvailabilityCheckRequest, Subscription, 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 };
21611
+ export { AIImageGenerationsService, APIS, Account, AccountPlan, AccountRequest, AccountSecurityService, AccountsService, ActionType, ActiveAccountUser, AdminPermissions, AdminUserPatchRequest, AdminUserRequest, AdminUserRequestItem, AiImageGenerationsRequest, AllowedLoginMethodsService, ApiModule, AppName, ApprovedPaymentStatus, AssetAndSearchCriterion, AssetAndUploadBatchCompletedJob, AssetCommentsService, 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, 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, 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, LifecycleStatusBinned, LifecycleStatusLive, LifecycleStatusPendingApproval, LifecycleStatusStaged, LifecycleTransition, LifecycleTransitionBatchRequest, LimitedDownloads, LoginMethod, MatchAllSearchCriterion, MatchNoneSearchCriterion, MatchValues, MatchesMediaTypesTransformationCriterion, MetadataExportCompletedJob, MetadataFieldValueUpdateByIds, MetadataFieldValueUpdateByValues, MetadataFieldValueUpdateOperation, MetadataSuggestionCompletedJob, NullableFieldOptionSearchFieldPatch, OnboardingChecklistService, Orientation, OrientationTransformation, OriginGuestUpload, PendingAccountUser, PendingPaymentStatus, PendingSubscription, PermittedAction, PingService, PlanUpgradeRequiredDenialReason, Portal, PortalAccessTokensService, PortalEmailsService, PortalPatchRequest, PortalRequest, PortalSort, PortalSortField, PortalUser, PortalsService, PresetTransformationApplicableForAnyAssetsSearchCriterion, PresetTransformationDescription, PresetTransformationHasTransformationOfTypeSearchCriterion, PresetTransformationSort, PresetTransformationsForAssetFieldInSearchCriterion, PresetTransformationsForAssetSearchField, PresetTransformationsForAssetSort, PresetTransformationsService, 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, SortOrder, StaffMembersService, 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 };
21612
+ export type { AccessToken, AccessTokenWithPermittedActions, AccountInviteRequest, AccountSecurity, AccountSecurityPutRequest, AccountSecurityWithPermittedActions, AccountTermsAndConditions, AccountTermsAndConditionsRequest, AccountUser, AccountUserWithPermittedActions, AccountWithPermittedActions, Address, AiImageGenerationsResponse, AiImageGenerationsResponseResult, Amount, Asset, AssetAggregationBucket, AssetAggregationBucketResponse, AssetAggregationRequest, AssetAggregationRequestInclusionOptions, AssetAggregationRequestsMap, AssetAggregationResponse, AssetAggregationResponsesMap, AssetAndUploadBatch, AssetAndUploadBatchJob, AssetAndUploadBatchRequest, AssetAndUploadBatchRequestItem, AssetAndUploadWithPermittedActions, 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, AssetWithPermittedActions, AssetsCreation, AssetsCreationRequest, AssetsCreationWithPermittedActions, AssetsSelector, Attribution, AutoTaggingImageSettings, AutoTaggingImageSettingsPatchRequest, AutoTaggingImageSettingsWithPermittedActions, BaseAssetSearch, BaseCloudConnection, BasePaginatedSearchInAccountRequest, BaseScrollSearchInAccountRequest, BaseSearchFilter, BatchItem, 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, 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, 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, PlatformUserRequest, PlatformUserResetPasswordRequest, PlatformUserSignUpToken, PlatformUserSignUpTokenRequest, PlatformUserVerificationRequest, PortalEmailRequest, PortalSearch, PortalSearchCriterion, PortalSearchRequest, PortalWithPermittedActions, PresetParameters, PresetTransformation, PresetTransformationAndSearchCriterion, PresetTransformationGroup, PresetTransformationGroupType, PresetTransformationNotSearchCriterion, PresetTransformationOrSearchCriterion, PresetTransformationSearch, PresetTransformationSearchCriterion, PresetTransformationSearchRequest, PresetTransformationWithPermittedActions, PresetTransformationsForAsset, PresetTransformationsForAssetSearch, PresetTransformationsForAssetSearchCriterion, PresetTransformationsForAssetSearchRequest, PresetTransformationsForAssetWithPermittedActions, 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, ShopifyProductMedia, ShopifyProductSearch, ShopifyProductSearchCriterion, ShopifyProductSearchRequest, ShopifyProductWithPermittedActions, ShopifySkuSettings, ShopifySkuSettingsRequest, ShopifySkuSettingsWithPermittedActions, SignupUser, StaffMember, StaffMemberRequest, Stats, SubdomainAvailabilityCheck, SubdomainAvailabilityCheckRequest, Subscription, 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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightinteractive/platform-api",
3
- "version": "0.1.91",
3
+ "version": "0.1.93",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^21.2.5",
6
6
  "@angular/core": "^21.2.5"