@brightinteractive/platform-api 0.1.113 → 0.1.115

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.
@@ -125,11 +125,12 @@ declare namespace AiImageGenerationsRequest {
125
125
  /**
126
126
  * Defines the action that is being permitted
127
127
  */
128
- type ActionType = 'ADD_ASSET_TO_COLLECTION' | 'ADD_COLLABORATOR_TO_COLLECTION' | 'APPROVE_ASSETS' | 'CONFIGURE_SHOPIFY_INTEGRATION' | 'CREATE_ASSET_SHARES' | 'CREATE_ASSETS' | 'CREATE_CHILD_ATTRIBUTE_OPTIONS' | 'CREATE_CHILD_FIELD_OPTIONS' | 'CREATE_CLOUD_CONNECTIONS' | 'CREATE_COLLECTION_COMMENTS' | 'CREATE_COLLECTIONS' | 'CREATE_COMMENTS' | 'CREATE_EMBEDDABLE_LINKS' | 'CREATE_GUEST_UPLOAD_USERS' | 'CREATE_GUEST_UPLOADS' | 'CREATE_PORTALS' | 'CREATE_SAVED_CROP_AREAS' | 'CREATE_SAVED_SEARCHES' | 'CREATE_SUBSCRIPTION' | 'CREATE_TOP_LEVEL_ATTRIBUTE_OPTIONS' | 'CREATE_TOP_LEVEL_FIELD_OPTIONS' | 'CUSTOMISE_EMAILS' | 'DELETE_ASSET' | 'DELETE_ASSET_FILES' | 'DELETE_ASSET_SHARE' | 'DELETE_CLOUD_CONNECTION' | 'DELETE_COLLECTION' | 'DELETE_COMMENT' | 'DELETE_GUEST_UPLOAD' | 'DELETE_JOB' | 'DELETE_PORTAL' | 'DELETE_SAVED_CROP_AREA' | 'DELETE_SAVED_SEARCH' | 'DOWNLOAD_ASSET' | 'DOWNLOAD_INDESIGN_EXTENSION' | 'EDIT_ACCOUNT' | 'EDIT_ALLOWED_LOGIN_METHODS' | 'EDIT_ASSET' | 'EDIT_ASSET_SHARE' | 'EDIT_ATTRIBUTE_OPTION' | 'EDIT_ATTRIBUTE_OPTION_IMAGE' | 'EDIT_ATTRIBUTES' | 'EDIT_CLOUD_CONNECTION' | 'EDIT_COLLECTION' | 'EDIT_COMMENT' | 'EDIT_FIELD_OPTION' | 'EDIT_FIELD_OPTION_IMAGE' | 'EDIT_FIELDS' | 'EDIT_GUEST_UPLOAD' | 'EDIT_INTELLIGENCE_SETTINGS_ADDRESS_LOOKUP' | 'EDIT_INTELLIGENCE_SETTINGS_IMAGE_AUTO_TAGGING' | 'EDIT_INTELLIGENCE_SETTINGS_IMAGE_FACIAL_REC' | 'EDIT_INTELLIGENCE_SETTINGS_TEXT_IN_IMAGE' | 'EDIT_INTELLIGENCE_SETTINGS_VIDEO_AUTO_TAGGING' | 'EDIT_INTELLIGENCE_SETTINGS_VIDEO_FACIAL_REC' | 'EDIT_METADATA_SCHEMA' | 'EDIT_PORTAL' | 'EDIT_PRESET_SIZES' | 'EDIT_SAVED_CROP_AREA' | 'EDIT_SAVED_SEARCH' | 'EDIT_SEAT' | 'EDIT_THEME' | 'EDIT_USER_GROUPS' | 'EXPORT_TO_SHOPIFY' | 'GENERATE_IMAGE_EMBEDDINGS' | 'IMPORT_ASSETS_OR_METADATA' | 'IMPORT_FROM_CLOUD' | 'MAKE_REFERRAL' | 'MANAGE_CUSTOM_TERMS_AND_CONDITIONS' | 'PROMOTE_ASSETS_TO_LIVE' | 'PUT_ASSETS_IN_NO_FOLDER' | 'REMOVE_ASSET_FROM_COLLECTION' | 'REMOVE_COLLABORATOR_FROM_COLLECTION' | 'RESTART_JOB' | 'RUN_EXACT_KNN_SEARCH' | 'RUN_NATURAL_LANGUAGE_SEARCH' | 'SCROLL' | 'SEARCH_FOR_CHANGE_LIFECYCLE_STATE_TO_BINNED' | 'SEARCH_FOR_CHANGE_LIFECYCLE_STATE_TO_LIVE' | 'SEARCH_FOR_CHANGE_LIFECYCLE_STATE_TO_PENDING_APPROVAL' | 'SEARCH_FOR_CHANGE_STAGING_STATE_TO_LIVE' | 'SEARCH_FOR_CHANGE_STAGING_STATE_TO_PENDING_APPROVAL' | 'SEARCH_FOR_DELETE' | 'SEARCH_FOR_DOWNLOAD' | 'SEARCH_FOR_EDIT' | 'SEARCH_FOR_PROMOTE_TO_LIVE' | 'SEARCH_FOR_SEND_FOR_APPROVAL' | 'SEARCH_FOR_VIEW' | 'SET_ASSETS_LIFECYCLE_STATUS_BINNED' | 'SET_ASSETS_LIFECYCLE_STATUS_LIVE' | 'SET_ASSETS_STAGING_STATUS_LIVE' | 'STOP_JOB' | 'UPDATE_METADATA_WITH_ATTRIBUTE_OPTION' | 'UPDATE_METADATA_WITH_FIELD_OPTION' | 'USE_CANVA_INTEGRATION' | 'USE_CLOUD_CONNECTION' | 'USE_COLLECTIONS' | 'USE_COREBOOK_INTEGRATION' | 'USE_EMBEDDABLE_LINKS' | 'USE_HOOTSUITE_INTEGRATION' | 'USE_WORDPRESS_INTEGRATION' | 'VIEW_ACCOUNT' | 'VIEW_ASSET' | 'VIEW_ASSET_EVENTS' | 'VIEW_ASSET_EVENTS_COUNTS' | 'VIEW_ASSET_FACES' | 'VIEW_ASSET_FILES' | 'VIEW_ASSET_METADATA' | 'VIEW_ASSET_SHARE' | 'VIEW_ASSETS_IN_NO_FOLDER' | 'VIEW_ATTRIBUTE_OPTION' | 'VIEW_ATTRIBUTE_OPTION_IMAGE' | 'VIEW_ATTRIBUTE_OPTIONS' | 'VIEW_ATTRIBUTE_VIEWS' | 'VIEW_CLOUD_CONNECTION' | 'VIEW_COLLECTION' | 'VIEW_COLLECTION_SHARE' | 'VIEW_COMMENTS' | 'VIEW_FIELD_OPTION' | 'VIEW_FIELD_OPTION_IMAGE' | 'VIEW_FIELD_OPTIONS' | 'VIEW_FIELD_VIEWS' | 'VIEW_GUEST_UPLOAD' | 'VIEW_JOB' | 'VIEW_JOBS' | 'VIEW_METADATA_SUGGESTIONS' | 'VIEW_PORTAL' | 'VIEW_PORTALS' | 'VIEW_PRESET_SIZES' | 'VIEW_SAVED_CROP_AREA' | 'VIEW_SAVED_CROP_AREAS' | 'VIEW_SAVED_SEARCH' | 'VIEW_SEARCH_FILTER' | 'VIEW_SEAT' | 'VIEW_SIMILAR_ASSETS' | 'VIEW_USERS' | 'VIEW_WEB_USAGE';
128
+ type ActionType = 'ADD_ASSET_TO_COLLECTION' | 'ADD_COLLABORATOR_TO_COLLECTION' | 'APPROVE_ASSETS' | 'CONFIGURE_KLAVIYO_INTEGRATION' | 'CONFIGURE_SHOPIFY_INTEGRATION' | 'CREATE_ASSET_SHARES' | 'CREATE_ASSETS' | 'CREATE_CHILD_ATTRIBUTE_OPTIONS' | 'CREATE_CHILD_FIELD_OPTIONS' | 'CREATE_CLOUD_CONNECTIONS' | 'CREATE_COLLECTION_COMMENTS' | 'CREATE_COLLECTIONS' | 'CREATE_COMMENTS' | 'CREATE_EMBEDDABLE_LINKS' | 'CREATE_GUEST_UPLOAD_USERS' | 'CREATE_GUEST_UPLOADS' | 'CREATE_PORTALS' | 'CREATE_SAVED_CROP_AREAS' | 'CREATE_SAVED_SEARCHES' | 'CREATE_SUBSCRIPTION' | 'CREATE_TOP_LEVEL_ATTRIBUTE_OPTIONS' | 'CREATE_TOP_LEVEL_FIELD_OPTIONS' | 'CUSTOMISE_EMAILS' | 'DELETE_ASSET' | 'DELETE_ASSET_FILES' | 'DELETE_ASSET_SHARE' | 'DELETE_CLOUD_CONNECTION' | 'DELETE_COLLECTION' | 'DELETE_COMMENT' | 'DELETE_GUEST_UPLOAD' | 'DELETE_JOB' | 'DELETE_PORTAL' | 'DELETE_SAVED_CROP_AREA' | 'DELETE_SAVED_SEARCH' | 'DOWNLOAD_ASSET' | 'DOWNLOAD_INDESIGN_EXTENSION' | 'EDIT_ACCOUNT' | 'EDIT_ALLOWED_LOGIN_METHODS' | 'EDIT_ASSET' | 'EDIT_ASSET_SHARE' | 'EDIT_ATTRIBUTE_OPTION' | 'EDIT_ATTRIBUTE_OPTION_IMAGE' | 'EDIT_ATTRIBUTES' | 'EDIT_CLOUD_CONNECTION' | 'EDIT_COLLECTION' | 'EDIT_COMMENT' | 'EDIT_FIELD_OPTION' | 'EDIT_FIELD_OPTION_IMAGE' | 'EDIT_FIELDS' | 'EDIT_GUEST_UPLOAD' | 'EDIT_INTELLIGENCE_SETTINGS_ADDRESS_LOOKUP' | 'EDIT_INTELLIGENCE_SETTINGS_IMAGE_AUTO_TAGGING' | 'EDIT_INTELLIGENCE_SETTINGS_IMAGE_FACIAL_REC' | 'EDIT_INTELLIGENCE_SETTINGS_TEXT_IN_IMAGE' | 'EDIT_INTELLIGENCE_SETTINGS_VIDEO_AUTO_TAGGING' | 'EDIT_INTELLIGENCE_SETTINGS_VIDEO_FACIAL_REC' | 'EDIT_METADATA_SCHEMA' | 'EDIT_PORTAL' | 'EDIT_PRESET_SIZES' | 'EDIT_SAVED_CROP_AREA' | 'EDIT_SAVED_SEARCH' | 'EDIT_SEAT' | 'EDIT_THEME' | 'EDIT_USER_GROUPS' | 'EXPORT_TO_SHOPIFY' | 'GENERATE_IMAGE_EMBEDDINGS' | 'IMPORT_ASSETS_OR_METADATA' | 'IMPORT_FROM_CLOUD' | 'MAKE_REFERRAL' | 'MANAGE_CUSTOM_TERMS_AND_CONDITIONS' | 'PROMOTE_ASSETS_TO_LIVE' | 'PUT_ASSETS_IN_NO_FOLDER' | 'REMOVE_ASSET_FROM_COLLECTION' | 'REMOVE_COLLABORATOR_FROM_COLLECTION' | 'RESTART_JOB' | 'RUN_EXACT_KNN_SEARCH' | 'RUN_NATURAL_LANGUAGE_SEARCH' | 'SCROLL' | 'SEARCH_FOR_CHANGE_LIFECYCLE_STATE_TO_BINNED' | 'SEARCH_FOR_CHANGE_LIFECYCLE_STATE_TO_LIVE' | 'SEARCH_FOR_CHANGE_LIFECYCLE_STATE_TO_PENDING_APPROVAL' | 'SEARCH_FOR_CHANGE_STAGING_STATE_TO_LIVE' | 'SEARCH_FOR_CHANGE_STAGING_STATE_TO_PENDING_APPROVAL' | 'SEARCH_FOR_DELETE' | 'SEARCH_FOR_DOWNLOAD' | 'SEARCH_FOR_EDIT' | 'SEARCH_FOR_PROMOTE_TO_LIVE' | 'SEARCH_FOR_SEND_FOR_APPROVAL' | 'SEARCH_FOR_VIEW' | 'SET_ASSETS_LIFECYCLE_STATUS_BINNED' | 'SET_ASSETS_LIFECYCLE_STATUS_LIVE' | 'SET_ASSETS_STAGING_STATUS_LIVE' | 'STOP_JOB' | 'UPDATE_METADATA_WITH_ATTRIBUTE_OPTION' | 'UPDATE_METADATA_WITH_FIELD_OPTION' | 'USE_CANVA_INTEGRATION' | 'USE_CLOUD_CONNECTION' | 'USE_COLLECTIONS' | 'USE_COREBOOK_INTEGRATION' | 'USE_EMBEDDABLE_LINKS' | 'USE_HOOTSUITE_INTEGRATION' | 'USE_WORDPRESS_INTEGRATION' | 'VIEW_ACCOUNT' | 'VIEW_ASSET' | 'VIEW_ASSET_EVENTS' | 'VIEW_ASSET_EVENTS_COUNTS' | 'VIEW_ASSET_FACES' | 'VIEW_ASSET_FILES' | 'VIEW_ASSET_METADATA' | 'VIEW_ASSET_SHARE' | 'VIEW_ASSETS_IN_NO_FOLDER' | 'VIEW_ATTRIBUTE_OPTION' | 'VIEW_ATTRIBUTE_OPTION_IMAGE' | 'VIEW_ATTRIBUTE_OPTIONS' | 'VIEW_ATTRIBUTE_VIEWS' | 'VIEW_CLOUD_CONNECTION' | 'VIEW_COLLECTION' | 'VIEW_COLLECTION_SHARE' | 'VIEW_COMMENTS' | 'VIEW_FIELD_OPTION' | 'VIEW_FIELD_OPTION_IMAGE' | 'VIEW_FIELD_OPTIONS' | 'VIEW_FIELD_VIEWS' | 'VIEW_GUEST_UPLOAD' | 'VIEW_JOB' | 'VIEW_JOBS' | 'VIEW_METADATA_SUGGESTIONS' | 'VIEW_PORTAL' | 'VIEW_PORTALS' | 'VIEW_PRESET_SIZES' | 'VIEW_SAVED_CROP_AREA' | 'VIEW_SAVED_CROP_AREAS' | 'VIEW_SAVED_SEARCH' | 'VIEW_SEARCH_FILTER' | 'VIEW_SEAT' | 'VIEW_SIMILAR_ASSETS' | 'VIEW_USERS' | 'VIEW_WEB_USAGE';
129
129
  declare const ActionType: {
130
130
  AddAssetToCollection: ActionType;
131
131
  AddCollaboratorToCollection: ActionType;
132
132
  ApproveAssets: ActionType;
133
+ ConfigureKlaviyoIntegration: ActionType;
133
134
  ConfigureShopifyIntegration: ActionType;
134
135
  CreateAssetShares: ActionType;
135
136
  CreateAssets: ActionType;
@@ -280,7 +281,7 @@ declare const ActionType: {
280
281
  /**
281
282
  * Defines the type of the resource that is being permitted to act on
282
283
  */
283
- type ResourceType = 'ACCOUNT' | 'ALLOWED_LOGIN_METHODS' | 'ASSET' | 'ASSET_METADATA' | 'ASSET_SHARE' | 'ASSET_SHARES' | 'ASSETS' | 'ASSETS_IN_NO_FOLDERS' | 'ATTRIBUTE_OPTION' | 'ATTRIBUTE_OPTIONS' | 'ATTRIBUTE_VIEWS' | 'ATTRIBUTES' | 'CANVA_INTEGRATION' | 'CLOUD_CONNECTION' | 'CLOUD_CONNECTIONS' | 'COLLECTION' | 'COLLECTION_SHARE' | 'COLLECTIONS' | 'COMMENT' | 'COREBOOK_INTEGRATION' | 'CUSTOM_TERMS_AND_CONDITIONS' | 'EMAILS' | 'FIELD_OPTION' | 'FIELD_OPTIONS' | 'FIELD_VIEWS' | 'FIELDS' | 'GUEST_UPLOAD' | 'GUEST_UPLOAD_USERS' | 'GUEST_UPLOADS' | 'HOOTSUITE_INTEGRATION' | 'INDESIGN_EXTENSION' | 'INTELLIGENCE_SETTINGS' | 'METADATA_SCHEMA' | 'PARENT_ATTRIBUTE_OPTIONS' | 'PARENT_FIELD_OPTIONS' | 'PORTAL' | 'PORTALS' | 'PRESET_SIZES' | 'REFERRAL' | 'SAVED_CROP_AREA' | 'SAVED_CROP_AREAS' | 'SAVED_SEARCH' | 'SAVED_SEARCHES' | 'SEARCH_FILTER' | 'SHOPIFY_INTEGRATION_V2' | 'SUBSCRIPTION' | 'THEME' | 'TOP_LEVEL_ATTRIBUTE_OPTIONS' | 'TOP_LEVEL_FIELD_OPTIONS' | 'USER' | 'USER_GROUPS' | 'USER_JOB' | 'USER_JOBS' | 'USERS' | 'WEB_USAGE' | 'WORDPRESS_INTEGRATION';
284
+ type ResourceType = 'ACCOUNT' | 'ALLOWED_LOGIN_METHODS' | 'ASSET' | 'ASSET_METADATA' | 'ASSET_SHARE' | 'ASSET_SHARES' | 'ASSETS' | 'ASSETS_IN_NO_FOLDERS' | 'ATTRIBUTE_OPTION' | 'ATTRIBUTE_OPTIONS' | 'ATTRIBUTE_VIEWS' | 'ATTRIBUTES' | 'CANVA_INTEGRATION' | 'CLOUD_CONNECTION' | 'CLOUD_CONNECTIONS' | 'COLLECTION' | 'COLLECTION_SHARE' | 'COLLECTIONS' | 'COMMENT' | 'COREBOOK_INTEGRATION' | 'CUSTOM_TERMS_AND_CONDITIONS' | 'EMAILS' | 'FIELD_OPTION' | 'FIELD_OPTIONS' | 'FIELD_VIEWS' | 'FIELDS' | 'GUEST_UPLOAD' | 'GUEST_UPLOAD_USERS' | 'GUEST_UPLOADS' | 'HOOTSUITE_INTEGRATION' | 'INDESIGN_EXTENSION' | 'INTELLIGENCE_SETTINGS' | 'KLAVIYO_INTEGRATION' | 'METADATA_SCHEMA' | 'PARENT_ATTRIBUTE_OPTIONS' | 'PARENT_FIELD_OPTIONS' | 'PORTAL' | 'PORTALS' | 'PRESET_SIZES' | 'REFERRAL' | 'SAVED_CROP_AREA' | 'SAVED_CROP_AREAS' | 'SAVED_SEARCH' | 'SAVED_SEARCHES' | 'SEARCH_FILTER' | 'SHOPIFY_INTEGRATION_V2' | 'SUBSCRIPTION' | 'THEME' | 'TOP_LEVEL_ATTRIBUTE_OPTIONS' | 'TOP_LEVEL_FIELD_OPTIONS' | 'USER' | 'USER_GROUPS' | 'USER_JOB' | 'USER_JOBS' | 'USERS' | 'WEB_USAGE' | 'WORDPRESS_INTEGRATION';
284
285
  declare const ResourceType: {
285
286
  Account: ResourceType;
286
287
  AllowedLoginMethods: ResourceType;
@@ -314,6 +315,7 @@ declare const ResourceType: {
314
315
  HootsuiteIntegration: ResourceType;
315
316
  IndesignExtension: ResourceType;
316
317
  IntelligenceSettings: ResourceType;
318
+ KlaviyoIntegration: ResourceType;
317
319
  MetadataSchema: ResourceType;
318
320
  ParentAttributeOptions: ResourceType;
319
321
  ParentFieldOptions: ResourceType;
@@ -13260,6 +13262,154 @@ declare class GuestUploadsService {
13260
13262
  static ɵprov: i0.ɵɵInjectableDeclaration<GuestUploadsService>;
13261
13263
  }
13262
13264
 
13265
+ /**
13266
+ * Dash API
13267
+ * # 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.
13268
+ *
13269
+ * The version of the OpenAPI document: 2.0.0
13270
+ * Contact: help@dash.app
13271
+ *
13272
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13273
+ * https://openapi-generator.tech
13274
+ * Do not edit the class manually.
13275
+ */
13276
+ /**
13277
+ * A one-time URL that begins the Klaviyo OAuth installation flow.
13278
+ */
13279
+ interface KlaviyoInstallationLink {
13280
+ authorizationUrl: string;
13281
+ }
13282
+
13283
+ /**
13284
+ * Dash API
13285
+ * # 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.
13286
+ *
13287
+ * The version of the OpenAPI document: 2.0.0
13288
+ * Contact: help@dash.app
13289
+ *
13290
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13291
+ * https://openapi-generator.tech
13292
+ * Do not edit the class manually.
13293
+ */
13294
+
13295
+ interface KlaviyoInstallationLinkWithPermittedActions {
13296
+ result: KlaviyoInstallationLink;
13297
+ permittedActions: Array<PermittedAction>;
13298
+ }
13299
+
13300
+ /**
13301
+ * Dash API
13302
+ * # 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.
13303
+ *
13304
+ * The version of the OpenAPI document: 2.0.0
13305
+ * Contact: help@dash.app
13306
+ *
13307
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13308
+ * https://openapi-generator.tech
13309
+ * Do not edit the class manually.
13310
+ */
13311
+ /**
13312
+ * The installation state of Klaviyo for a Dash account.
13313
+ */
13314
+ type KlaviyoInstallationStatus = 'INSTALLED' | 'NOT_INSTALLED';
13315
+ declare const KlaviyoInstallationStatus: {
13316
+ Installed: KlaviyoInstallationStatus;
13317
+ NotInstalled: KlaviyoInstallationStatus;
13318
+ };
13319
+
13320
+ /**
13321
+ * Dash API
13322
+ * # 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.
13323
+ *
13324
+ * The version of the OpenAPI document: 2.0.0
13325
+ * Contact: help@dash.app
13326
+ *
13327
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13328
+ * https://openapi-generator.tech
13329
+ * Do not edit the class manually.
13330
+ */
13331
+
13332
+ /**
13333
+ * The current Klaviyo installation state for a Dash account.
13334
+ */
13335
+ interface KlaviyoInstallation {
13336
+ status: KlaviyoInstallationStatus;
13337
+ }
13338
+ declare namespace KlaviyoInstallation {
13339
+ }
13340
+
13341
+ /**
13342
+ * Dash API
13343
+ * # 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.
13344
+ *
13345
+ * The version of the OpenAPI document: 2.0.0
13346
+ * Contact: help@dash.app
13347
+ *
13348
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13349
+ * https://openapi-generator.tech
13350
+ * Do not edit the class manually.
13351
+ */
13352
+
13353
+ interface KlaviyoInstallationWithPermittedActions {
13354
+ result: KlaviyoInstallation;
13355
+ permittedActions: Array<PermittedAction>;
13356
+ }
13357
+
13358
+ declare class KlaviyoService {
13359
+ protected httpClient: HttpClient;
13360
+ protected basePath: string;
13361
+ defaultHeaders: HttpHeaders;
13362
+ configuration: Configuration;
13363
+ encoder: HttpParameterCodec;
13364
+ constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
13365
+ private addToHttpParams;
13366
+ private addToHttpParamsRecursive;
13367
+ /**
13368
+ * Get Klaviyo installation status
13369
+ * Get the Klaviyo installation status for the authenticated Dash account.
13370
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
13371
+ * @param reportProgress flag to report request and response progress.
13372
+ */
13373
+ getKlaviyoInstallation(observe?: 'body', reportProgress?: boolean, options?: {
13374
+ httpHeaderAccept?: 'application/json';
13375
+ context?: HttpContext;
13376
+ transferCache?: boolean;
13377
+ }): Observable<KlaviyoInstallationWithPermittedActions>;
13378
+ getKlaviyoInstallation(observe?: 'response', reportProgress?: boolean, options?: {
13379
+ httpHeaderAccept?: 'application/json';
13380
+ context?: HttpContext;
13381
+ transferCache?: boolean;
13382
+ }): Observable<HttpResponse<KlaviyoInstallationWithPermittedActions>>;
13383
+ getKlaviyoInstallation(observe?: 'events', reportProgress?: boolean, options?: {
13384
+ httpHeaderAccept?: 'application/json';
13385
+ context?: HttpContext;
13386
+ transferCache?: boolean;
13387
+ }): Observable<HttpEvent<KlaviyoInstallationWithPermittedActions>>;
13388
+ /**
13389
+ * Start Klaviyo installation
13390
+ * Create a one-time Klaviyo OAuth installation URL for the authenticated Dash account.
13391
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
13392
+ * @param reportProgress flag to report request and response progress.
13393
+ */
13394
+ postKlaviyoInstallation(observe?: 'body', reportProgress?: boolean, options?: {
13395
+ httpHeaderAccept?: 'application/json';
13396
+ context?: HttpContext;
13397
+ transferCache?: boolean;
13398
+ }): Observable<KlaviyoInstallationLinkWithPermittedActions>;
13399
+ postKlaviyoInstallation(observe?: 'response', reportProgress?: boolean, options?: {
13400
+ httpHeaderAccept?: 'application/json';
13401
+ context?: HttpContext;
13402
+ transferCache?: boolean;
13403
+ }): Observable<HttpResponse<KlaviyoInstallationLinkWithPermittedActions>>;
13404
+ postKlaviyoInstallation(observe?: 'events', reportProgress?: boolean, options?: {
13405
+ httpHeaderAccept?: 'application/json';
13406
+ context?: HttpContext;
13407
+ transferCache?: boolean;
13408
+ }): Observable<HttpEvent<KlaviyoInstallationLinkWithPermittedActions>>;
13409
+ static ɵfac: i0.ɵɵFactoryDeclaration<KlaviyoService, [null, { optional: true; }, { optional: true; }]>;
13410
+ static ɵprov: i0.ɵɵInjectableDeclaration<KlaviyoService>;
13411
+ }
13412
+
13263
13413
  /**
13264
13414
  * Dash API
13265
13415
  * # 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.
@@ -18406,6 +18556,71 @@ interface ShopifyProductWithPermittedActions {
18406
18556
  permittedActions: Array<PermittedAction>;
18407
18557
  }
18408
18558
 
18559
+ /**
18560
+ * Dash API
18561
+ * # 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.
18562
+ *
18563
+ * The version of the OpenAPI document: 2.0.0
18564
+ * Contact: help@dash.app
18565
+ *
18566
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
18567
+ * https://openapi-generator.tech
18568
+ * Do not edit the class manually.
18569
+ */
18570
+
18571
+ interface ShopifyProductIdSearchResult {
18572
+ /**
18573
+ * The Dash product ID from the search request that resolved to this Shopify product
18574
+ */
18575
+ dashProductId: string;
18576
+ product: ShopifyProductWithPermittedActions;
18577
+ }
18578
+
18579
+ /**
18580
+ * Dash API
18581
+ * # 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.
18582
+ *
18583
+ * The version of the OpenAPI document: 2.0.0
18584
+ * Contact: help@dash.app
18585
+ *
18586
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
18587
+ * https://openapi-generator.tech
18588
+ * Do not edit the class manually.
18589
+ */
18590
+
18591
+ interface ShopifyProductIdSearch {
18592
+ /**
18593
+ * The resolved Shopify products, each paired with the Dash product ID that produced it. Dash product IDs that cannot be resolved are omitted.
18594
+ */
18595
+ results: Array<ShopifyProductIdSearchResult>;
18596
+ }
18597
+
18598
+ /**
18599
+ * Dash API
18600
+ * # 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.
18601
+ *
18602
+ * The version of the OpenAPI document: 2.0.0
18603
+ * Contact: help@dash.app
18604
+ *
18605
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
18606
+ * https://openapi-generator.tech
18607
+ * Do not edit the class manually.
18608
+ */
18609
+ interface ShopifyProductIdSearchRequest {
18610
+ /**
18611
+ * The shop to search within
18612
+ */
18613
+ shop: string;
18614
+ /**
18615
+ * An access token obtained for the above Shopify store that will be used to make requests to Shopify with
18616
+ */
18617
+ shopifyAccessToken: string;
18618
+ /**
18619
+ * Between 1 and 250 Dash product IDs whose stored Shopify product mappings should be searched
18620
+ */
18621
+ dashProductIds: Array<string>;
18622
+ }
18623
+
18409
18624
  /**
18410
18625
  * Dash API
18411
18626
  * # 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.
@@ -18982,6 +19197,28 @@ declare class ShopifyService {
18982
19197
  context?: HttpContext;
18983
19198
  transferCache?: boolean;
18984
19199
  }): Observable<HttpEvent<ShopifyInstallWithPermittedActions>>;
19200
+ /**
19201
+ * Search for Shopify products by Dash product IDs
19202
+ * Resolves Dash products to their stored Shopify product IDs and searches the given Shopify store for those products.
19203
+ * @param shopifyProductIdSearchRequest
19204
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
19205
+ * @param reportProgress flag to report request and response progress.
19206
+ */
19207
+ postShopifyProductIdSearches(shopifyProductIdSearchRequest: ShopifyProductIdSearchRequest, observe?: 'body', reportProgress?: boolean, options?: {
19208
+ httpHeaderAccept?: 'application/json';
19209
+ context?: HttpContext;
19210
+ transferCache?: boolean;
19211
+ }): Observable<ShopifyProductIdSearch>;
19212
+ postShopifyProductIdSearches(shopifyProductIdSearchRequest: ShopifyProductIdSearchRequest, observe?: 'response', reportProgress?: boolean, options?: {
19213
+ httpHeaderAccept?: 'application/json';
19214
+ context?: HttpContext;
19215
+ transferCache?: boolean;
19216
+ }): Observable<HttpResponse<ShopifyProductIdSearch>>;
19217
+ postShopifyProductIdSearches(shopifyProductIdSearchRequest: ShopifyProductIdSearchRequest, observe?: 'events', reportProgress?: boolean, options?: {
19218
+ httpHeaderAccept?: 'application/json';
19219
+ context?: HttpContext;
19220
+ transferCache?: boolean;
19221
+ }): Observable<HttpEvent<ShopifyProductIdSearch>>;
18985
19222
  /**
18986
19223
  * Sync products from Shopify
18987
19224
  * Kicks off a job that syncs product data (products, variant options, option values and variants) from the account\&#39;s configured Shopify connection. Rejected with 409 if a sync is already in progress for the account. Poll the returned job by id to track progress.
@@ -23266,7 +23503,7 @@ declare class WordPressService {
23266
23503
  static ɵprov: i0.ɵɵInjectableDeclaration<WordPressService>;
23267
23504
  }
23268
23505
 
23269
- declare const APIS: (typeof AIImageGenerationsService | typeof AccountSecurityService | typeof AccountsService | typeof AllowedLoginMethodsService | typeof AssetCommentsService | typeof AssetDeduplicationService | typeof AssetDownloadEventsService | typeof AssetEmbeddableLinksService | typeof AssetMetadataExportService | typeof AssetSavedCropAreaSummariesService | typeof AssetSavedCropAreasService | typeof AssetShareAccessTokensService | typeof AssetShareEmailsService | typeof AssetSharesService | typeof AssetVariantCriteriaService | typeof AssetsService | typeof AutoTaggingImageSettingsService | typeof CloudConnectionsService | typeof CloudImportJobsService | typeof CloudObjectsService | typeof CollectionShareAccessTokensService | typeof CollectionSharesService | typeof CollectionsService | typeof CorebookService | typeof CustomService | typeof DefaultService | typeof EntityQuotaOverridesService | typeof ExternalAppService | typeof FieldOptionImagesService | typeof FieldOptionsService | typeof FieldViewsService | typeof FieldsService | typeof FolderSettingsService | typeof GroupsService | typeof GuestUploadAccessTokensService | typeof GuestUploadEmailsService | typeof GuestUploadsService | typeof OnboardingChecklistService | typeof PingService | typeof PortalAccessTokensService | typeof PortalEmailsService | typeof PortalsService | typeof PresetSettingsService | typeof PresetTransformationsService | typeof ProductsService | typeof PubliclyAvailableGuestUploadDataService | typeof PubliclyAvailablePortalDatasService | typeof ReferenceImageUploadsService | typeof SavedSearchService | typeof SavedSearchesService | typeof SearchFiltersService | typeof ShopifyService | typeof ShopifySKUSettingsService | typeof StaffMembersService | typeof SubdomainsService | typeof SubscriptionService | typeof TermsAndConditionsService | typeof TextInImageSettingsService | typeof ThemeService | typeof UserPreferencesService | typeof UserReferrerService | typeof UsersService | typeof WordPressService)[];
23506
+ declare const APIS: (typeof AIImageGenerationsService | typeof AccountSecurityService | typeof AccountsService | typeof AllowedLoginMethodsService | typeof AssetCommentsService | typeof AssetDeduplicationService | typeof AssetDownloadEventsService | typeof AssetEmbeddableLinksService | typeof AssetMetadataExportService | typeof AssetSavedCropAreaSummariesService | typeof AssetSavedCropAreasService | typeof AssetShareAccessTokensService | typeof AssetShareEmailsService | typeof AssetSharesService | typeof AssetVariantCriteriaService | typeof AssetsService | typeof AutoTaggingImageSettingsService | typeof CloudConnectionsService | typeof CloudImportJobsService | typeof CloudObjectsService | typeof CollectionShareAccessTokensService | typeof CollectionSharesService | typeof CollectionsService | typeof CorebookService | typeof CustomService | typeof DefaultService | typeof EntityQuotaOverridesService | typeof ExternalAppService | typeof FieldOptionImagesService | typeof FieldOptionsService | typeof FieldViewsService | typeof FieldsService | typeof FolderSettingsService | typeof GroupsService | typeof GuestUploadAccessTokensService | typeof GuestUploadEmailsService | typeof GuestUploadsService | typeof KlaviyoService | typeof OnboardingChecklistService | typeof PingService | typeof PortalAccessTokensService | typeof PortalEmailsService | typeof PortalsService | typeof PresetSettingsService | typeof PresetTransformationsService | typeof ProductsService | typeof PubliclyAvailableGuestUploadDataService | typeof PubliclyAvailablePortalDatasService | typeof ReferenceImageUploadsService | typeof SavedSearchService | typeof SavedSearchesService | typeof SearchFiltersService | typeof ShopifyService | typeof ShopifySKUSettingsService | typeof StaffMembersService | typeof SubdomainsService | typeof SubscriptionService | typeof TermsAndConditionsService | typeof TextInImageSettingsService | typeof ThemeService | typeof UserPreferencesService | typeof UserReferrerService | typeof UsersService | typeof WordPressService)[];
23270
23507
 
23271
23508
  /**
23272
23509
  * Dash API
@@ -24110,5 +24347,5 @@ declare class ApiModule {
24110
24347
  static ɵinj: i0.ɵɵInjectorDeclaration<ApiModule>;
24111
24348
  }
24112
24349
 
24113
- export { AIImageGenerationsService, APIS, Account, AccountPlan, AccountRequest, AccountSecurityService, AccountsService, ActionType, ActiveAccountUser, AdminPermissions, AdminUserPatchRequest, AdminUserRequest, AdminUserRequestItem, AiImageGenerationsRequest, AllowedLoginMethodsService, ApiModule, AppName, ApprovedPaymentStatus, AssetAndSearchCriterion, AssetAndUploadBatchCompletedJob, AssetCommentsService, AssetDeduplicationCompletedJob, AssetDeduplicationService, AssetDownloadBatchCompletedJob, AssetDownloadEvent, AssetDownloadEventDateField, AssetDownloadEventDateHistogramAggregationRequest, AssetDownloadEventField, AssetDownloadEventFieldEqualsSearchCriterion, AssetDownloadEventFieldInRangeSearchCriterion, AssetDownloadEventSort, AssetDownloadEventTermsAggregationRequest, AssetDownloadEventsService, AssetDownloadFailure, AssetEmbeddableLinksService, AssetFieldEqualsSearchCriterion, AssetFieldHasAllEqualSearchCriterion, AssetFieldHasAnyEqualSearchCriterion, AssetFieldIsEmptySearchCriterion, AssetFieldMatchesSearchCriterion, AssetFile, AssetIsSimilarToAssetCriterion, AssetMetadataExportService, AssetNotSearchCriterion, AssetOrSearchCriterion, AssetPaginatedSearchRequest, AssetPermittedActions, AssetPermittedActionsWithDefault, AssetSavedCropAreaSummariesService, AssetSavedCropAreasService, AssetScrollSearchRequest, AssetSearchFieldField, AssetSearchFieldFixed, AssetShare, AssetShareAccessTokensService, AssetShareEmailsService, AssetShareFieldEqualsSearchCriterion, AssetSharePatchRequest, AssetShareRequest, AssetShareSearchField, AssetShareSort, AssetShareSortField, AssetSharesService, AssetSort, AssetSortFieldField, AssetSortFieldFixed, AssetUploadCompletionFailure, AssetUploadCompletionSuccess, AssetUploadFailure, AssetVariantCriteriaService, AssetVariantCriterionBulkUpdate, AssetsSelectorByCriterion, AssetsSelectorByIds, AssetsService, AutoTaggingImageSettingsService, BASE_PATH, BaseAssetSearchRequest, BaseCloudObject, BaseJob, Beta, Billing, BillingRequest, COLLECTION_FORMATS, ClipTransformation, CloudConnectionsService, CloudFile, CloudFileShortcut, CloudFolder, CloudFolderShortcut, CloudImportCompletedJob, CloudImportJobsService, CloudObjectFieldEqualsSearchCriterion, CloudObjectIdValue, CloudObjectMatchesTextSearchCriterion, CloudObjectRootFolder, CloudObjectSearchField, CloudObjectsSelectorByIds, CloudObjectsService, CollectionShare, CollectionShareAccessTokensService, CollectionShareFieldEqualsSearchCriterion, CollectionSharePatchRequest, CollectionShareRequest, CollectionShareSearchField, CollectionShareSort, CollectionShareSortField, CollectionSharesService, CollectionSort, CollectionSortField, CollectionsService, Comment, CommentRequest, CompletedJob, Configuration, ContextType, ConvertBitrateTransformation, ConvertPresetParameters, ConvertTransformation, ConvertTransformationTemplate, CorebookService, Coupon, CreatedByCurrentUserSearchCriterion, CreatedSubscription, CropPresetParameters, CropTransformation, CropTransformationTemplate, CustomService, CustomTransformationDescription, DashAsset, DataType, DefaultService, DeniedActionWithReason, DynamicOnboardingChecklistItem, DynamicOnboardingChecklistItemId, EmbeddableLink, EmbeddableLinkBatchCompletedJob, EmbeddableLinkFailure, EmbeddableLinkFieldInSearchCriterion, EmbeddableLinkPatchRequest, EmbeddableLinkSearchField, EmbeddableLinkSort, EmbeddableLinkSortField, EntityQuotaOverridesService, EventDateHistogramAggregationRequest, EventDateInterval, ExternalAccessUser, ExternalAppAccount, ExternalAppAccountRequest, ExternalAppService, ExternalAppSsoTokenRequest, ExternalAppUserRequest, FailedJob, FailedPaymentStatus, FailedSubscription, FeatureBasedPlan, Field, FieldOptionAndSearchCriterion, FieldOptionFailure, FieldOptionFieldContainsSearchCriterion, FieldOptionFieldEqualsSearchCriterion, FieldOptionFieldInSearchCriterion, FieldOptionFieldIsEmptySearchCriterion, FieldOptionImageFailure, FieldOptionImagesService, FieldOptionNotSearchCriterion, FieldOptionOrSearchCriterion, FieldOptionSearchField, FieldOptionSort, FieldOptionsService, FieldRequest, FieldSearchFilter, FieldView, FieldViewsService, FieldWhitelistAllOptions, FieldWhitelistSpecificOptions, FieldsService, FileType, FolderSettingsService, Group, GroupPatchRequest, GroupRequest, GroupRole, GroupsService, GuestUploadAccessTokensService, GuestUploadEmailsService, GuestUploadSort, GuestUploadSortField, GuestUploadUser, GuestUploadsService, HardCodedFixedOptionsSearchFilter, HardCodedFreeOptionDimensionsSearchFilter, HardCodedFreeOptionsSearchFilter, HardCodedUserSearchFilter, InGroupsPermissions, InGroupsUserPatchRequest, InGroupsUserRequest, InGroupsUserRequestItem, InProgressJob, IsTransparentTransformationCriterion, JobPatchRequest, JobStepProgress, LifecycleStatusBinned, LifecycleStatusLive, LifecycleStatusPendingApproval, LifecycleStatusStaged, LifecycleTransition, LifecycleTransitionBatchRequest, LimitedDownloads, LoginMethod, MatchAllSearchCriterion, MatchNoneSearchCriterion, MatchValues, MatchesMediaTypesTransformationCriterion, MetadataExportCompletedJob, MetadataFieldValueUpdateByIds, MetadataFieldValueUpdateByValues, MetadataFieldValueUpdateOperation, MetadataSuggestionCompletedJob, NullableFieldOptionSearchFieldPatch, OnboardingChecklistService, Orientation, OrientationTransformation, OriginGuestUpload, OriginalDownloadFilename, PendingAccountUser, PendingPaymentStatus, PendingSubscription, PermittedAction, PingService, PlanUpgradeRequiredDenialReason, Portal, PortalAccessTokensService, PortalEmailsService, PortalPatchRequest, PortalRequest, PortalSort, PortalSortField, PortalUser, PortalsService, PresetSettings, PresetSettingsPatchRequest, PresetSettingsService, PresetTransformationApplicableForAnyAssetsSearchCriterion, PresetTransformationDescription, PresetTransformationHasTransformationOfTypeSearchCriterion, PresetTransformationSort, PresetTransformationsForAssetFieldInSearchCriterion, PresetTransformationsForAssetSearchField, PresetTransformationsForAssetSort, PresetTransformationsService, ProductAndSearchCriterion, ProductFieldEqualsSearchCriterion, ProductFieldHasAllEqualSearchCriterion, ProductFieldHasAnyEqualSearchCriterion, ProductFieldIsEmptySearchCriterion, ProductFieldMatchesSearchCriterion, ProductNotSearchCriterion, ProductOrSearchCriterion, ProductSearchFieldField, ProductSearchFieldFixed, ProductSort, ProductSortFieldField, ProductSortFieldFixed, ProductVariantAndSearchCriterion, ProductVariantFieldEqualsSearchCriterion, ProductVariantFieldHasAllEqualSearchCriterion, ProductVariantFieldHasAnyEqualSearchCriterion, ProductVariantFieldIsEmptySearchCriterion, ProductVariantFieldMatchesSearchCriterion, ProductVariantNotSearchCriterion, ProductVariantOrSearchCriterion, ProductVariantSearchFieldField, ProductVariantSearchFieldFixed, ProductVariantSort, ProductVariantSortFieldField, ProductVariantSortFieldFixed, ProductsService, PublicCollectionShareFieldHasItemSearchCriterion, PublicCollectionShareSearchField, PublicCollectionShareSort, PublicCollectionShareSortField, PubliclyAvailableAccountDataFieldEqualsSearchCriterion, PubliclyAvailableAccountDataHasUsersWithEmailDomainSearchCriterion, PubliclyAvailableAccountDataSearchField, PubliclyAvailableGuestUploadDataService, PubliclyAvailablePortalData, PubliclyAvailablePortalDatasService, ReferenceImageUploadsService, ResizeTransformation, ResizeTransformationTemplate, ResourceType, SavedCropAreaSummaryAndSearchCriterion, SavedCropAreaSummaryFieldEqualsSearchCriterion, SavedCropAreaSummaryFieldInSearchCriterion, SavedCropAreaSummarySearchField, SavedCropAreaSummarySort, SavedSearchFieldEqualsSearchCriterion, SavedSearchSearchField, SavedSearchService, SavedSearchesService, SearchFiltersService, SelfReportedCompanyDescription, SelfReportedGoalFixed, SelfReportedGoalOther, ShopifyExportCompletedJob, ShopifyExportRemovalItem, ShopifyExportUploadItem, ShopifyFile, ShopifyImageUsedInOther, ShopifyImageUsedInProduct, ShopifyInstall, ShopifyInstallStatus, ShopifyProductFieldInSearchCriterion, ShopifyProductSearchField, ShopifySKUSettingsService, ShopifyService, SliderValueBasedPlan, 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 };
24114
- 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, AssetDeduplicationBatchJob, AssetDeduplicationResult, AssetDeletionBatchRequest, AssetDownload, AssetDownloadBatch, AssetDownloadBatchJob, AssetDownloadBatchRequest, AssetDownloadBatchRequestItem, AssetDownloadDetails, AssetDownloadEventAggregationRequest, AssetDownloadEventAndSearchCriterion, AssetDownloadEventNotSearchCriterion, AssetDownloadEventOrSearchCriterion, AssetDownloadEventSearch, AssetDownloadEventSearchCriterion, AssetDownloadEventSearchRequest, AssetDownloadEventWithPermittedActions, AssetDownloadWithPermittedActions, AssetFileWithPermittedActions, AssetPatchRequest, AssetScrollSearch, AssetScrollSearchScrollRequest, AssetSearch, AssetSearchCriterion, AssetSearchField, AssetShareEmailRequest, AssetShareSearch, AssetShareSearchCriterion, AssetShareSearchRequest, AssetShareWithPermittedActions, AssetSortField, AssetTermsAggregationRequest, AssetUpload, AssetUploadBatchRequest, AssetUploadBatchRequestItem, AssetUploadCompletedPart, AssetUploadCompletion, AssetUploadCompletionRequest, AssetUploadCompletionWithPermittedActions, AssetUploadDetails, AssetUploadPart, AssetUploadPartUrlRequest, AssetUploadPartUrlsRequest, AssetUploadRequest, AssetUploadWithPermittedActions, AssetVariantCriterion, AssetVariantCriterionBulkUpdateSetItem, AssetVariantCriterionWithPermittedActions, AssetWithPermittedActions, AssetsCreation, AssetsCreationRequest, AssetsCreationWithPermittedActions, AssetsSelector, Attribution, AutoTaggingImageSettings, AutoTaggingImageSettingsPatchRequest, AutoTaggingImageSettingsWithPermittedActions, BaseAssetSearch, BaseCloudConnection, BasePaginatedSearchInAccountRequest, BaseProductSearch, BaseProductSearchRequest, BaseProductVariantSearch, BaseProductVariantSearchRequest, BaseScrollSearchInAccountRequest, BaseSearchFilter, BatchItem, BillingInfo, CandidatePresetTransformation, CandidateTransformation, CloudConnection, CloudConnectionRequest, CloudConnectionWithPermittedActions, CloudImportJob, CloudImportJobRequest, CloudImportJobWithPermittedActions, CloudImportResult, CloudObject, CloudObjectIdValueOrRootFolder, CloudObjectPagedSearch, CloudObjectPagedSearchRequest, CloudObjectPathMapping, CloudObjectSearchCriterion, CloudObjectsSelector, Collection, CollectionAssociatedWithUserSearchCriterion, CollectionCollaborator, CollectionPatchRequest, CollectionRequest, CollectionSearch, CollectionSearchCriterion, CollectionSearchRequest, CollectionShareSearch, CollectionShareSearchCriterion, CollectionShareSearchRequest, CollectionShareWithPermittedActions, CollectionWithPermittedActions, CommentPatchRequest, CommentWithPermittedActions, ConfigurationParameters, ContextComments, CorebookSettings, CorebookSettingsRequest, CorebookSettingsWithPermittedActions, CreateShopifyImageBatchRequest, CreateShopifyProductImageBatchRequest, CreatedSubscriptionWithPermittedActions, CropParameters, 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, PlatformUserProfilePictureRequest, PlatformUserProfilePictureUpload, PlatformUserProfilePictureUploadRequest, PlatformUserRequest, PlatformUserResetPasswordRequest, PlatformUserSignUpToken, PlatformUserSignUpTokenRequest, PlatformUserVerificationRequest, PortalEmailRequest, PortalSearch, PortalSearchCriterion, PortalSearchRequest, PortalWithPermittedActions, PresetParameters, PresetSettingsWithPermittedActions, PresetTransformation, PresetTransformationAndSearchCriterion, PresetTransformationGroup, PresetTransformationGroupType, PresetTransformationNotSearchCriterion, PresetTransformationOrSearchCriterion, PresetTransformationSearch, PresetTransformationSearchCriterion, PresetTransformationSearchRequest, PresetTransformationWithPermittedActions, PresetTransformationsForAsset, PresetTransformationsForAssetSearch, PresetTransformationsForAssetSearchCriterion, PresetTransformationsForAssetSearchRequest, PresetTransformationsForAssetWithPermittedActions, Product, ProductAggregationBucket, ProductAggregationBucketResponse, ProductAggregationRequest, ProductAggregationRequestInclusionOptions, ProductAggregationRequestsMap, ProductAggregationResponse, ProductAggregationResponsesMap, ProductMetadata, ProductPaginatedSearchRequest, ProductSearch, ProductSearchCriterion, ProductSearchField, ProductSortField, ProductTermsAggregationRequest, ProductVariant, ProductVariantAggregationBucket, ProductVariantAggregationBucketResponse, ProductVariantAggregationRequest, ProductVariantAggregationRequestInclusionOptions, ProductVariantAggregationRequestsMap, ProductVariantAggregationResponse, ProductVariantAggregationResponsesMap, ProductVariantPaginatedSearchRequest, ProductVariantSearch, ProductVariantSearchCriterion, ProductVariantSearchField, ProductVariantSortField, ProductVariantTermsAggregationRequest, ProductVariantWithPermittedActions, ProductWithPermittedActions, PublicCollectionShareSearchCriterion, PublicCollectionShareSearchRequest, PubliclyAvailableAccountData, PubliclyAvailableAccountDataSearch, PubliclyAvailableAccountDataSearchCriterion, PubliclyAvailableAccountDataSearchRequest, PubliclyAvailableAccountDataWithPermittedActions, PubliclyAvailableGuestUploadData, PubliclyAvailableGuestUploadDataWithPermittedActions, PubliclyAvailablePortalDataWithPermittedActions, ReferenceImage, ReferenceImageAsset, ReferenceImageUploaded, ReferenceImageUploadsResponse, ReferenceImageUploadsResponseResult, Referrer, ReferrerWithPermittedActions, RejectedMetadataSuggestion, RejectedMetadataSuggestionBatch, RejectedMetadataSuggestionBatchRequest, RejectedMetadataSuggestionRequest, RejectedMetadataSuggestionRequestItem, RejectedMetadataSuggestionWithPermittedActions, SavedCropArea, SavedCropAreaPatchRequest, SavedCropAreaRequest, SavedCropAreaSummary, SavedCropAreaSummarySearch, SavedCropAreaSummarySearchCriterion, SavedCropAreaSummarySearchRequest, SavedCropAreaSummaryWithPermittedActions, SavedCropAreaWithPermittedActions, SavedSearch, SavedSearchPatchRequest, SavedSearchRequest, SavedSearchSearch, SavedSearchSearchCriterion, SavedSearchSearchRequest, SavedSearchWithPermittedActions, SearchCriterion, SearchFilter, SearchFilterView, SearchFilterViewSearchFilterPatchRequest, SearchFilterViewSearchFilterRequest, SearchFilterViewWithPermittedActions, SearchFilterWithPermittedActions, SelfReportedGoal, ShopifyConnection, ShopifyConnectionWithPermittedActions, ShopifyExportJob, ShopifyExportJobWithPermittedActions, ShopifyExportRequest, ShopifyExportRequestItem, ShopifyExportResult, ShopifyExportResultAssetFailure, ShopifyExportResultProductAssignmentFailure, ShopifyExportResultProductRemovalFailure, ShopifyExportResultProductReorderFailure, ShopifyExportResultUploadFailure, ShopifyExportSource, ShopifyImageUsedIn, ShopifyInstallPatchRequest, ShopifyInstallRequest, ShopifyInstallWithPermittedActions, ShopifyProduct, ShopifyProductFileDestination, ShopifyProductMedia, ShopifyProductSearch, ShopifyProductSearchCriterion, ShopifyProductSearchRequest, ShopifyProductSyncSettings, ShopifyProductSyncSettingsRequest, ShopifyProductSyncSettingsWithPermittedActions, ShopifyProductSyncStatus, ShopifyProductSyncStatusWithPermittedActions, 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 };
24350
+ export { AIImageGenerationsService, APIS, Account, AccountPlan, AccountRequest, AccountSecurityService, AccountsService, ActionType, ActiveAccountUser, AdminPermissions, AdminUserPatchRequest, AdminUserRequest, AdminUserRequestItem, AiImageGenerationsRequest, AllowedLoginMethodsService, ApiModule, AppName, ApprovedPaymentStatus, AssetAndSearchCriterion, AssetAndUploadBatchCompletedJob, AssetCommentsService, AssetDeduplicationCompletedJob, AssetDeduplicationService, AssetDownloadBatchCompletedJob, AssetDownloadEvent, AssetDownloadEventDateField, AssetDownloadEventDateHistogramAggregationRequest, AssetDownloadEventField, AssetDownloadEventFieldEqualsSearchCriterion, AssetDownloadEventFieldInRangeSearchCriterion, AssetDownloadEventSort, AssetDownloadEventTermsAggregationRequest, AssetDownloadEventsService, AssetDownloadFailure, AssetEmbeddableLinksService, AssetFieldEqualsSearchCriterion, AssetFieldHasAllEqualSearchCriterion, AssetFieldHasAnyEqualSearchCriterion, AssetFieldIsEmptySearchCriterion, AssetFieldMatchesSearchCriterion, AssetFile, AssetIsSimilarToAssetCriterion, AssetMetadataExportService, AssetNotSearchCriterion, AssetOrSearchCriterion, AssetPaginatedSearchRequest, AssetPermittedActions, AssetPermittedActionsWithDefault, AssetSavedCropAreaSummariesService, AssetSavedCropAreasService, AssetScrollSearchRequest, AssetSearchFieldField, AssetSearchFieldFixed, AssetShare, AssetShareAccessTokensService, AssetShareEmailsService, AssetShareFieldEqualsSearchCriterion, AssetSharePatchRequest, AssetShareRequest, AssetShareSearchField, AssetShareSort, AssetShareSortField, AssetSharesService, AssetSort, AssetSortFieldField, AssetSortFieldFixed, AssetUploadCompletionFailure, AssetUploadCompletionSuccess, AssetUploadFailure, AssetVariantCriteriaService, AssetVariantCriterionBulkUpdate, AssetsSelectorByCriterion, AssetsSelectorByIds, AssetsService, AutoTaggingImageSettingsService, BASE_PATH, BaseAssetSearchRequest, BaseCloudObject, BaseJob, Beta, Billing, BillingRequest, COLLECTION_FORMATS, ClipTransformation, CloudConnectionsService, CloudFile, CloudFileShortcut, CloudFolder, CloudFolderShortcut, CloudImportCompletedJob, CloudImportJobsService, CloudObjectFieldEqualsSearchCriterion, CloudObjectIdValue, CloudObjectMatchesTextSearchCriterion, CloudObjectRootFolder, CloudObjectSearchField, CloudObjectsSelectorByIds, CloudObjectsService, CollectionShare, CollectionShareAccessTokensService, CollectionShareFieldEqualsSearchCriterion, CollectionSharePatchRequest, CollectionShareRequest, CollectionShareSearchField, CollectionShareSort, CollectionShareSortField, CollectionSharesService, CollectionSort, CollectionSortField, CollectionsService, Comment, CommentRequest, CompletedJob, Configuration, ContextType, ConvertBitrateTransformation, ConvertPresetParameters, ConvertTransformation, ConvertTransformationTemplate, CorebookService, Coupon, CreatedByCurrentUserSearchCriterion, CreatedSubscription, CropPresetParameters, CropTransformation, CropTransformationTemplate, CustomService, CustomTransformationDescription, DashAsset, DataType, DefaultService, DeniedActionWithReason, DynamicOnboardingChecklistItem, DynamicOnboardingChecklistItemId, EmbeddableLink, EmbeddableLinkBatchCompletedJob, EmbeddableLinkFailure, EmbeddableLinkFieldInSearchCriterion, EmbeddableLinkPatchRequest, EmbeddableLinkSearchField, EmbeddableLinkSort, EmbeddableLinkSortField, EntityQuotaOverridesService, EventDateHistogramAggregationRequest, EventDateInterval, ExternalAccessUser, ExternalAppAccount, ExternalAppAccountRequest, ExternalAppService, ExternalAppSsoTokenRequest, ExternalAppUserRequest, FailedJob, FailedPaymentStatus, FailedSubscription, FeatureBasedPlan, Field, FieldOptionAndSearchCriterion, FieldOptionFailure, FieldOptionFieldContainsSearchCriterion, FieldOptionFieldEqualsSearchCriterion, FieldOptionFieldInSearchCriterion, FieldOptionFieldIsEmptySearchCriterion, FieldOptionImageFailure, FieldOptionImagesService, FieldOptionNotSearchCriterion, FieldOptionOrSearchCriterion, FieldOptionSearchField, FieldOptionSort, FieldOptionsService, FieldRequest, FieldSearchFilter, FieldView, FieldViewsService, FieldWhitelistAllOptions, FieldWhitelistSpecificOptions, FieldsService, FileType, FolderSettingsService, Group, GroupPatchRequest, GroupRequest, GroupRole, GroupsService, GuestUploadAccessTokensService, GuestUploadEmailsService, GuestUploadSort, GuestUploadSortField, GuestUploadUser, GuestUploadsService, HardCodedFixedOptionsSearchFilter, HardCodedFreeOptionDimensionsSearchFilter, HardCodedFreeOptionsSearchFilter, HardCodedUserSearchFilter, InGroupsPermissions, InGroupsUserPatchRequest, InGroupsUserRequest, InGroupsUserRequestItem, InProgressJob, IsTransparentTransformationCriterion, JobPatchRequest, JobStepProgress, KlaviyoInstallation, KlaviyoInstallationStatus, KlaviyoService, LifecycleStatusBinned, LifecycleStatusLive, LifecycleStatusPendingApproval, LifecycleStatusStaged, LifecycleTransition, LifecycleTransitionBatchRequest, LimitedDownloads, LoginMethod, MatchAllSearchCriterion, MatchNoneSearchCriterion, MatchValues, MatchesMediaTypesTransformationCriterion, MetadataExportCompletedJob, MetadataFieldValueUpdateByIds, MetadataFieldValueUpdateByValues, MetadataFieldValueUpdateOperation, MetadataSuggestionCompletedJob, NullableFieldOptionSearchFieldPatch, OnboardingChecklistService, Orientation, OrientationTransformation, OriginGuestUpload, OriginalDownloadFilename, PendingAccountUser, PendingPaymentStatus, PendingSubscription, PermittedAction, PingService, PlanUpgradeRequiredDenialReason, Portal, PortalAccessTokensService, PortalEmailsService, PortalPatchRequest, PortalRequest, PortalSort, PortalSortField, PortalUser, PortalsService, PresetSettings, PresetSettingsPatchRequest, PresetSettingsService, PresetTransformationApplicableForAnyAssetsSearchCriterion, PresetTransformationDescription, PresetTransformationHasTransformationOfTypeSearchCriterion, PresetTransformationSort, PresetTransformationsForAssetFieldInSearchCriterion, PresetTransformationsForAssetSearchField, PresetTransformationsForAssetSort, PresetTransformationsService, ProductAndSearchCriterion, ProductFieldEqualsSearchCriterion, ProductFieldHasAllEqualSearchCriterion, ProductFieldHasAnyEqualSearchCriterion, ProductFieldIsEmptySearchCriterion, ProductFieldMatchesSearchCriterion, ProductNotSearchCriterion, ProductOrSearchCriterion, ProductSearchFieldField, ProductSearchFieldFixed, ProductSort, ProductSortFieldField, ProductSortFieldFixed, ProductVariantAndSearchCriterion, ProductVariantFieldEqualsSearchCriterion, ProductVariantFieldHasAllEqualSearchCriterion, ProductVariantFieldHasAnyEqualSearchCriterion, ProductVariantFieldIsEmptySearchCriterion, ProductVariantFieldMatchesSearchCriterion, ProductVariantNotSearchCriterion, ProductVariantOrSearchCriterion, ProductVariantSearchFieldField, ProductVariantSearchFieldFixed, ProductVariantSort, ProductVariantSortFieldField, ProductVariantSortFieldFixed, ProductsService, PublicCollectionShareFieldHasItemSearchCriterion, PublicCollectionShareSearchField, PublicCollectionShareSort, PublicCollectionShareSortField, PubliclyAvailableAccountDataFieldEqualsSearchCriterion, PubliclyAvailableAccountDataHasUsersWithEmailDomainSearchCriterion, PubliclyAvailableAccountDataSearchField, PubliclyAvailableGuestUploadDataService, PubliclyAvailablePortalData, PubliclyAvailablePortalDatasService, ReferenceImageUploadsService, ResizeTransformation, ResizeTransformationTemplate, ResourceType, SavedCropAreaSummaryAndSearchCriterion, SavedCropAreaSummaryFieldEqualsSearchCriterion, SavedCropAreaSummaryFieldInSearchCriterion, SavedCropAreaSummarySearchField, SavedCropAreaSummarySort, SavedSearchFieldEqualsSearchCriterion, SavedSearchSearchField, SavedSearchService, SavedSearchesService, SearchFiltersService, SelfReportedCompanyDescription, SelfReportedGoalFixed, SelfReportedGoalOther, ShopifyExportCompletedJob, ShopifyExportRemovalItem, ShopifyExportUploadItem, ShopifyFile, ShopifyImageUsedInOther, ShopifyImageUsedInProduct, ShopifyInstall, ShopifyInstallStatus, ShopifyProductFieldInSearchCriterion, ShopifyProductSearchField, ShopifySKUSettingsService, ShopifyService, SliderValueBasedPlan, 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 };
24351
+ 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, AssetDeduplicationBatchJob, AssetDeduplicationResult, AssetDeletionBatchRequest, AssetDownload, AssetDownloadBatch, AssetDownloadBatchJob, AssetDownloadBatchRequest, AssetDownloadBatchRequestItem, AssetDownloadDetails, AssetDownloadEventAggregationRequest, AssetDownloadEventAndSearchCriterion, AssetDownloadEventNotSearchCriterion, AssetDownloadEventOrSearchCriterion, AssetDownloadEventSearch, AssetDownloadEventSearchCriterion, AssetDownloadEventSearchRequest, AssetDownloadEventWithPermittedActions, AssetDownloadWithPermittedActions, AssetFileWithPermittedActions, AssetPatchRequest, AssetScrollSearch, AssetScrollSearchScrollRequest, AssetSearch, AssetSearchCriterion, AssetSearchField, AssetShareEmailRequest, AssetShareSearch, AssetShareSearchCriterion, AssetShareSearchRequest, AssetShareWithPermittedActions, AssetSortField, AssetTermsAggregationRequest, AssetUpload, AssetUploadBatchRequest, AssetUploadBatchRequestItem, AssetUploadCompletedPart, AssetUploadCompletion, AssetUploadCompletionRequest, AssetUploadCompletionWithPermittedActions, AssetUploadDetails, AssetUploadPart, AssetUploadPartUrlRequest, AssetUploadPartUrlsRequest, AssetUploadRequest, AssetUploadWithPermittedActions, AssetVariantCriterion, AssetVariantCriterionBulkUpdateSetItem, AssetVariantCriterionWithPermittedActions, AssetWithPermittedActions, AssetsCreation, AssetsCreationRequest, AssetsCreationWithPermittedActions, AssetsSelector, Attribution, AutoTaggingImageSettings, AutoTaggingImageSettingsPatchRequest, AutoTaggingImageSettingsWithPermittedActions, BaseAssetSearch, BaseCloudConnection, BasePaginatedSearchInAccountRequest, BaseProductSearch, BaseProductSearchRequest, BaseProductVariantSearch, BaseProductVariantSearchRequest, BaseScrollSearchInAccountRequest, BaseSearchFilter, BatchItem, BillingInfo, CandidatePresetTransformation, CandidateTransformation, CloudConnection, CloudConnectionRequest, CloudConnectionWithPermittedActions, CloudImportJob, CloudImportJobRequest, CloudImportJobWithPermittedActions, CloudImportResult, CloudObject, CloudObjectIdValueOrRootFolder, CloudObjectPagedSearch, CloudObjectPagedSearchRequest, CloudObjectPathMapping, CloudObjectSearchCriterion, CloudObjectsSelector, Collection, CollectionAssociatedWithUserSearchCriterion, CollectionCollaborator, CollectionPatchRequest, CollectionRequest, CollectionSearch, CollectionSearchCriterion, CollectionSearchRequest, CollectionShareSearch, CollectionShareSearchCriterion, CollectionShareSearchRequest, CollectionShareWithPermittedActions, CollectionWithPermittedActions, CommentPatchRequest, CommentWithPermittedActions, ConfigurationParameters, ContextComments, CorebookSettings, CorebookSettingsRequest, CorebookSettingsWithPermittedActions, CreateShopifyImageBatchRequest, CreateShopifyProductImageBatchRequest, CreatedSubscriptionWithPermittedActions, CropParameters, 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, KlaviyoInstallationLink, KlaviyoInstallationLinkWithPermittedActions, KlaviyoInstallationWithPermittedActions, LifecycleStatus, MediaType, Metadata, MetadataEditBatchRequest, MetadataExportBatchJob, MetadataExportResult, MetadataFieldValueUpdate, MetadataSuggestion, MetadataSuggestionBatch, MetadataSuggestionBatchJob, MetadataSuggestionBatchRequest, MetadataSuggestionWithPermittedActions, ModelError, NoResultJob, NullableAssetSortFieldPatch, NullableDateTimePatch, NullableStringFieldPatch, OnboardingChecklist, OnboardingChecklistPatchRequest, OnboardingChecklistWithPermittedActions, Origin, PaymentStatus, Plan, PlanRequest, PlatformCurrentUserAccountSearchRequest, PlatformUserForgottenPasswordRequest, PlatformUserPatchRequest, PlatformUserProfilePictureRequest, PlatformUserProfilePictureUpload, PlatformUserProfilePictureUploadRequest, PlatformUserRequest, PlatformUserResetPasswordRequest, PlatformUserSignUpToken, PlatformUserSignUpTokenRequest, PlatformUserVerificationRequest, PortalEmailRequest, PortalSearch, PortalSearchCriterion, PortalSearchRequest, PortalWithPermittedActions, PresetParameters, PresetSettingsWithPermittedActions, PresetTransformation, PresetTransformationAndSearchCriterion, PresetTransformationGroup, PresetTransformationGroupType, PresetTransformationNotSearchCriterion, PresetTransformationOrSearchCriterion, PresetTransformationSearch, PresetTransformationSearchCriterion, PresetTransformationSearchRequest, PresetTransformationWithPermittedActions, PresetTransformationsForAsset, PresetTransformationsForAssetSearch, PresetTransformationsForAssetSearchCriterion, PresetTransformationsForAssetSearchRequest, PresetTransformationsForAssetWithPermittedActions, Product, ProductAggregationBucket, ProductAggregationBucketResponse, ProductAggregationRequest, ProductAggregationRequestInclusionOptions, ProductAggregationRequestsMap, ProductAggregationResponse, ProductAggregationResponsesMap, ProductMetadata, ProductPaginatedSearchRequest, ProductSearch, ProductSearchCriterion, ProductSearchField, ProductSortField, ProductTermsAggregationRequest, ProductVariant, ProductVariantAggregationBucket, ProductVariantAggregationBucketResponse, ProductVariantAggregationRequest, ProductVariantAggregationRequestInclusionOptions, ProductVariantAggregationRequestsMap, ProductVariantAggregationResponse, ProductVariantAggregationResponsesMap, ProductVariantPaginatedSearchRequest, ProductVariantSearch, ProductVariantSearchCriterion, ProductVariantSearchField, ProductVariantSortField, ProductVariantTermsAggregationRequest, ProductVariantWithPermittedActions, ProductWithPermittedActions, PublicCollectionShareSearchCriterion, PublicCollectionShareSearchRequest, PubliclyAvailableAccountData, PubliclyAvailableAccountDataSearch, PubliclyAvailableAccountDataSearchCriterion, PubliclyAvailableAccountDataSearchRequest, PubliclyAvailableAccountDataWithPermittedActions, PubliclyAvailableGuestUploadData, PubliclyAvailableGuestUploadDataWithPermittedActions, PubliclyAvailablePortalDataWithPermittedActions, ReferenceImage, ReferenceImageAsset, ReferenceImageUploaded, ReferenceImageUploadsResponse, ReferenceImageUploadsResponseResult, Referrer, ReferrerWithPermittedActions, RejectedMetadataSuggestion, RejectedMetadataSuggestionBatch, RejectedMetadataSuggestionBatchRequest, RejectedMetadataSuggestionRequest, RejectedMetadataSuggestionRequestItem, RejectedMetadataSuggestionWithPermittedActions, SavedCropArea, SavedCropAreaPatchRequest, SavedCropAreaRequest, SavedCropAreaSummary, SavedCropAreaSummarySearch, SavedCropAreaSummarySearchCriterion, SavedCropAreaSummarySearchRequest, SavedCropAreaSummaryWithPermittedActions, SavedCropAreaWithPermittedActions, SavedSearch, SavedSearchPatchRequest, SavedSearchRequest, SavedSearchSearch, SavedSearchSearchCriterion, SavedSearchSearchRequest, SavedSearchWithPermittedActions, SearchCriterion, SearchFilter, SearchFilterView, SearchFilterViewSearchFilterPatchRequest, SearchFilterViewSearchFilterRequest, SearchFilterViewWithPermittedActions, SearchFilterWithPermittedActions, SelfReportedGoal, ShopifyConnection, ShopifyConnectionWithPermittedActions, ShopifyExportJob, ShopifyExportJobWithPermittedActions, ShopifyExportRequest, ShopifyExportRequestItem, ShopifyExportResult, ShopifyExportResultAssetFailure, ShopifyExportResultProductAssignmentFailure, ShopifyExportResultProductRemovalFailure, ShopifyExportResultProductReorderFailure, ShopifyExportResultUploadFailure, ShopifyExportSource, ShopifyImageUsedIn, ShopifyInstallPatchRequest, ShopifyInstallRequest, ShopifyInstallWithPermittedActions, ShopifyProduct, ShopifyProductFileDestination, ShopifyProductIdSearch, ShopifyProductIdSearchRequest, ShopifyProductIdSearchResult, ShopifyProductMedia, ShopifyProductSearch, ShopifyProductSearchCriterion, ShopifyProductSearchRequest, ShopifyProductSyncSettings, ShopifyProductSyncSettingsRequest, ShopifyProductSyncSettingsWithPermittedActions, ShopifyProductSyncStatus, ShopifyProductSyncStatusWithPermittedActions, ShopifyProductWithPermittedActions, ShopifySkuSettings, ShopifySkuSettingsRequest, ShopifySkuSettingsWithPermittedActions, SignupUser, StaffMember, StaffMemberRequest, Stats, SubdomainAvailabilityCheck, SubdomainAvailabilityCheckRequest, Subscription, 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 };