use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AccountApi;
-# Configure HTTP basic authorization: basicAuth
+# Configure HTTP basic authorization: basicCredentials
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
@@ -2030,7 +2031,7 @@ import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
-# Configure HTTP basic authorization: basicAuth
+# Configure HTTP basic authorization: basicCredentials
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
@@ -2109,7 +2110,7 @@ except ApiException as e:
-
Status: 401 - invalid bearer token
+
Status: 401 - permission denied
@@ -2416,6 +2417,14 @@ except ApiException as e:
+
Status: 410 - account disabled
+
+
+
+
+
+
+
Status: 500 - internal server error
@@ -3028,6 +3037,352 @@ except ApiException as e:
+
+
+
+
getAccountAsset
+
+
+
+
+
+
Get asset assigned to an account. The endpoint supports byte-range requests and responds with the content-type set appropriatly. Access granted to the app tokens of the account holder and in the case of non-original assets, the contact token for accounts with which the article is shared.
import io.swagger.client.*;
+import io.swagger.client.auth.*;
+import io.swagger.client.model.*;
+import io.swagger.client.api.AliasApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AliasApiExample {
+
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+
+
+ AliasApi apiInstance = new AliasApi();
+ String groupId = groupId_example; // String | specified group id
+ String field = field_example; // String | field from subject to base64 decode and download
+ try {
+ byte[] result = apiInstance.getGroupSubjectField(groupId, field);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling AliasApi#getGroupSubjectField");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
import io.swagger.client.api.AliasApi;
+
+public class AliasApiExample {
+
+ public static void main(String[] args) {
+ AliasApi apiInstance = new AliasApi();
+ String groupId = groupId_example; // String | specified group id
+ String field = field_example; // String | field from subject to base64 decode and download
+ try {
+ byte[] result = apiInstance.getGroupSubjectField(groupId, field);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling AliasApi#getGroupSubjectField");
+ e.printStackTrace();
+ }
+ }
+}
+
+
+
+
Configuration *apiConfig = [Configuration sharedConfig];
+String *groupId = groupId_example; // specified group id
+String *field = field_example; // field from subject to base64 decode and download
+
+AliasApi *apiInstance = [[AliasApi alloc] init];
+
+[apiInstance getGroupSubjectFieldWith:groupId
+ field:field
+ completionHandler: ^(byte[] output, NSError* error) {
+ if (output) {
+ NSLog(@"%@", output);
+ }
+ if (error) {
+ NSLog(@"Error: %@", error);
+ }
+ }];
+
+
+
+
+
var DataBag = require('data_bag');
+var defaultClient = DataBag.ApiClient.instance;
+
+
+var api = new DataBag.AliasApi()
+var groupId = groupId_example; // {{String}} specified group id
+var field = field_example; // {{String}} field from subject to base64 decode and download
+
+var callback = function(error, data, response) {
+ if (error) {
+ console.error(error);
+ } else {
+ console.log('API called successfully. Returned data: ' + data);
+ }
+};
+api.getGroupSubjectField(groupId, field, callback);
+
+
+
+
+
+
using System;
+using System.Diagnostics;
+using IO.Swagger.Api;
+using IO.Swagger.Client;
+using IO.Swagger.Model;
+
+namespace Example
+{
+ public class getGroupSubjectFieldExample
+ {
+ public void main()
+ {
+
+
+ var apiInstance = new AliasApi();
+ var groupId = groupId_example; // String | specified group id
+ var field = field_example; // String | field from subject to base64 decode and download
+
+ try
+ {
+ byte[] result = apiInstance.getGroupSubjectField(groupId, field);
+ Debug.WriteLine(result);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling AliasApi.getGroupSubjectField: " + e.Message );
+ }
+ }
+ }
+}
+
+
+
+
+
<?php
+require_once(__DIR__ . '/vendor/autoload.php');
+
+
+$api_instance = new Swagger\Client\ApiAliasApi();
+$groupId = groupId_example; // String | specified group id
+$field = field_example; // String | field from subject to base64 decode and download
+
+try {
+ $result = $api_instance->getGroupSubjectField($groupId, $field);
+ print_r($result);
+} catch (Exception $e) {
+ echo 'Exception when calling AliasApi->getGroupSubjectField: ', $e->getMessage(), PHP_EOL;
+}
+?>
+
+
+
+
use Data::Dumper;
+use WWW::SwaggerClient::Configuration;
+use WWW::SwaggerClient::AliasApi;
+
+
+my $api_instance = WWW::SwaggerClient::AliasApi->new();
+my $groupId = groupId_example; # String | specified group id
+my $field = field_example; # String | field from subject to base64 decode and download
+
+eval {
+ my $result = $api_instance->getGroupSubjectField(groupId => $groupId, field => $field);
+ print Dumper($result);
+};
+if ($@) {
+ warn "Exception when calling AliasApi->getGroupSubjectField: $@\n";
+}
+
+
+
+
from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+
+# create an instance of the API class
+api_instance = swagger_client.AliasApi()
+groupId = groupId_example # String | specified group id
+field = field_example # String | field from subject to base64 decode and download
+
+try:
+ api_response = api_instance.get_group_subject_field(groupId, field)
+ pprint(api_response)
+except ApiException as e:
+ print("Exception when calling AliasApi->getGroupSubjectField: %s\n" % e)
+
+
+
+
Parameters
+
+
Path parameters
+
+
+
Name
+
Description
+
+
groupId*
+
+
+
+
+
+
+
+ String
+
+
+
+ specified group id
+
+
+
+ Required
+
+
+
+
+
+
field*
+
+
+
+
+
+
+
+ String
+
+
+
+ field from subject to base64 decode and download
+
from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+
+# create an instance of the API class
+api_instance = swagger_client.AliasApi()
+groupId = groupId_example # String | specified group id
+
+try:
+ api_instance.remove_group(groupId)
+except ApiException as e:
+ print("Exception when calling AliasApi->removeGroup: %s\n" % e)
+
+
+
+
Parameters
+
+
Path parameters
+
+
+
Name
+
Description
+
+
groupId*
+
+
+
+
+
+
+
+ String
+
+
+
+ specified group id
+
+
+
+ Required
+
+
+
+
+
+
+
+
+
+
+
Responses
Status: 200 - success
@@ -7416,7 +11508,411 @@ except ApiException as e:
-
Status: 401 - permission denide
+
Status: 401 - permission denied
+
+
+
+
+
+
+
+
Status: 404 - group not found
+
+
+
+
+
+
+
+
Status: 410 - account disabled
+
+
+
+
+
+
+
+
Status: 500 - internal server error
+
+
+
+
+
+
+
+
+
+
+
+
+
+
setGroupSubject
+
+
+
+
+
+
Update group description for sharing. Access granted to app tokens of account holder.
Base64 decode and download specified field from the article's subject. Access granted to app token of account holder or contact token of account the article is shared with.
Get article slots that should be updated based on revisions. Access granted to account token or contact token. When the request is made with a contact token the account view revision will be added to the block revision.
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
-var api = new DataBag.AuthenticateApi()
+var api = new DataBag.AuthorizeApi()
var opts = {
'body': // {{String}}
};
@@ -7560,14 +14562,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.authenticate(opts, callback);
+api.authorize(opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -7576,23 +14578,23 @@ using IO.Swagger.Model;
namespace Example
{
- public class authenticateExample
+ public class authorizeExample
{
public void main()
{
- var apiInstance = new AuthenticateApi();
+ var apiInstance = new AuthorizeApi();
var body = new String(); // String | (optional)
try
{
- DataMessage result = apiInstance.authenticate(body);
+ DataMessage result = apiInstance.authorize(body);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling AuthenticateApi.authenticate: " + e.Message );
+ Debug.Print("Exception when calling AuthorizeApi.authorize: " + e.Message );
}
}
}
@@ -7600,42 +14602,42 @@ namespace Example
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::AuthenticateApi;
+use WWW::SwaggerClient::AuthorizeApi;
-my $api_instance = WWW::SwaggerClient::AuthenticateApi->new();
+my $api_instance = WWW::SwaggerClient::AuthorizeApi->new();
my $body = WWW::SwaggerClient::Object::String->new(); # String |
eval {
- my $result = $api_instance->authenticate(body => $body);
+ my $result = $api_instance->authorize(body => $body);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling AuthenticateApi->authenticate: $@\n";
+ warn "Exception when calling AuthorizeApi->authorize: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -7644,14 +14646,14 @@ from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.AuthenticateApi()
+api_instance = swagger_client.AuthorizeApi()
body = # String | (optional)
try:
- api_response = api_instance.authenticate(body=body)
+ api_response = api_instance.authorize(body=body)
pprint(api_response)
except ApiException as e:
- print("Exception when calling AuthenticateApi->authenticate: %s\n" % e)
+ print("Exception when calling AuthorizeApi->authorize: %s\n" % e)
@@ -7692,12 +14694,12 @@ except ApiException as e:
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_authenticate_body');
+ var result = $('#d2e199_authorize_body');
result.empty();
result.append(view.render());
});
-
+
@@ -7709,14 +14711,14 @@ except ApiException as e:
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
@@ -9196,14 +15903,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getCardData(cardId, callback);
+api.getCardDetail(cardId, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -9212,7 +15919,7 @@ using IO.Swagger.Model;
namespace Example
{
- public class getCardDataExample
+ public class getCardDetailExample
{
public void main()
{
@@ -9223,12 +15930,12 @@ namespace Example
try
{
- CardData result = apiInstance.getCardData(cardId);
+ CardDetail result = apiInstance.getCardDetail(cardId);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ContactApi.getCardData: " + e.Message );
+ Debug.Print("Exception when calling ContactApi.getCardDetail: " + e.Message );
}
}
}
@@ -9236,7 +15943,7 @@ namespace Example
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
var api = new DataBag.ContactApi()
+var opts = {
+ 'revision': revision_example // {{String}} only return updated cards since specified revision
+};
var callback = function(error, data, response) {
if (error) {
console.error(error);
@@ -10182,14 +16919,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getCardView(callback);
+api.getCards(opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -10198,22 +16935,23 @@ using IO.Swagger.Model;
namespace Example
{
- public class getCardViewExample
+ public class getCardsExample
{
public void main()
{
var apiInstance = new ContactApi();
+ var revision = revision_example; // String | only return updated cards since specified revision (optional)
try
{
- array[CardView] result = apiInstance.getCardView();
+ array[Card] result = apiInstance.getCards(revision);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ContactApi.getCardView: " + e.Message );
+ Debug.Print("Exception when calling ContactApi.getCards: " + e.Message );
}
}
}
@@ -10221,40 +16959,42 @@ namespace Example
@@ -10341,6 +17138,14 @@ except ApiException as e:
+
Status: 410 - account disabled
+
+
+
+
+
+
+
Status: 500 - internal server error
@@ -10668,6 +17473,14 @@ except ApiException as e:
+
Status: 410 - account disabled
+
+
+
+
+
+
+
Status: 500 - internal server error
@@ -10995,6 +17808,14 @@ except ApiException as e:
+
Status: 410 - account disabled
+
+
+
+
+
+
+
Status: 500 - internal server error
@@ -11272,6 +18093,307 @@ except ApiException as e:
+
Status: 410 - account disabled
+
+
+
+
+
+
+
+
Status: 500 - internal server error
+
+
+
+
+
+
+
+
+
+
+
+
+
+
setArticleRevision
+
+
+
+
+
+
Set artcile revision for contact. This is intend to be invoked automatically anytime a contact updates their content or sharing. Access granted to contact tokens.
Set channel revision for contact. This is intend to be invoked automatically anytime a contact updates their content or sharing. Access granted to contact tokens.
@@ -13130,284 +20639,7 @@ except ApiException as e:
-
Status: 500 - internal server error
-
-
-
-
-
-
-
-
-
-
-
-
-
-
setContentRevision
-
-
-
-
-
-
Set content revision for contact. This is intend to be invoked automatically anytime a contact updates their content or sharing. Access granted to contact tokens.
@@ -14372,10584 +21283,99 @@ except ApiException as e:
-
-
+
+
-
addArticleAsset
+
setViewRevision
-
Add an an asset to the to an article. The original posted asset is referenced in the asset list with a null transform. The transformed assets are referenced accordingly. Transforming the asset strips it of metadata and transcodes it into a specified format. Access is granted to the app token of the account holder.
+
Set view revision for contact. This is intend to be invoked automatically anytime a contact updates their content or sharing. Access granted to contact tokens.
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-
-# create an instance of the API class
-api_instance = swagger_client.ContentApi()
-body = # Content_labels_body | (optional)
-
-try:
- api_instance.add_label(body=body)
-except ApiException as e:
- print("Exception when calling ContentApi->addLabel: %s\n" % e)
-
-
-
-
Parameters
-
-
-
-
Body parameters
-
-
-
Name
-
Description
-
-
body
-
-
-
-
-
-
-
-
-
-
-
-
Responses
-
Status: 200 - success
-
-
-
-
-
-
-
-
Status: 401 - permission denied
-
-
-
-
-
-
-
-
Status: 500 - internal server error
-
-
-
-
-
-
-
-
-
-
-
-
-
-
clearArticleGroup
-
-
-
-
-
-
Remove article from sharing group. Unless the article is shared through other groups or labels contacts within that group will no longer have access to the article. Access granted to app tokens of the account holder.
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-
-# create an instance of the API class
-api_instance = swagger_client.ContentApi()
-articleId = articleId_example # String | specified article id
-groupId = groupId_example # String | specified share id
-
-try:
- api_instance.clear_article_group(articleId, groupId)
-except ApiException as e:
- print("Exception when calling ContentApi->clearArticleGroup: %s\n" % e)
-
-
-
-
Parameters
-
-
Path parameters
-
-
-
Name
-
Description
-
-
articleId*
-
-
-
-
-
-
-
- String
-
-
-
- specified article id
-
-
-
- Required
-
-
-
-
-
-
groupId*
-
-
-
-
-
-
-
- String
-
-
-
- specified share id
-
-
-
- Required
-
-
-
-
-
-
-
-
-
-
-
-
Responses
-
Status: 200 - success
-
-
-
-
-
-
-
-
Status: 401 - permission denied
-
-
-
-
-
-
-
-
Status: 404 - group or article not found
-
-
-
-
-
-
-
-
Status: 500 - internal server error
-
-
-
-
-
-
-
-
-
-
-
-
-
-
clearArticleLabel
-
-
-
-
-
-
Remove a label from an article. If the label has been assigned a sharing group the article and the article is not shared in another way, the article will no longer be accessible to that group's contacts. Access is granted to app tokens of the account holder.
Get asset assigned to an article. The endpoint supports byte-range requests and responds with the content-type set appropriatly. Access granted to the app tokens of the account holder and in the case of non-original assets, the contact token for accounts with which the article is shared.
Get list of assets assigned to an article. The original assets will only be available to the account holder to provent the accidental sharing of content metadata. Access is granted to the app token of the account holder and the contact token of accounts the article has been shared with.
Get article block views. Acess granted to account token or contact token. When the request is made with a contact token the account view revision will be added to the block revision.
Base64 decode and download specified field from the article's subject. Access granted to app token of account holder or contact token of account the article is shared with.
Get view of tag blocks associated with specified article. Access granted to app tokens of account holder and contact tokens of account with which the article is shared.
Base64 decode and retrieve specified tag on the article. Access granted to app tokens of account holder and contact tokens of accounts with which the article is shared.
Get view of tags within speicified block. Access granted to app tokens of account holder and contact token of accounts with which the article is shared.
Get the article views within specified block. Access granted for app token or contact token. All of the articles are returned for the app token, but only the shared articles are returned for the contact token. An article is shared by assigning a common group to an article or assigning a label to an article that has assigned a common group.
Get the articles within specified block. Access granted for app token or contact token. All of the articles are returned for the app token, but only the shared articles are returned for the contact token. An article is shared by assigning a common group to an article or assigning a label to an article that has assigned a common group.
Get labels with which to organize the articles. Contacts requesting the labels will only retrieve the labels with which they are shared. Access granted to the app tokens of the account holder and connected contact tokens.
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-
-# create an instance of the API class
-api_instance = swagger_client.ContentApi()
-labelId = labelId_example # String | specified label id
-
-try:
- api_instance.remove_label(labelId)
-except ApiException as e:
- print("Exception when calling ContentApi->removeLabel: %s\n" % e)
-
-
-
-
Parameters
-
-
Path parameters
-
-
-
Name
-
Description
-
-
labelId*
-
-
-
-
-
-
-
- String
-
-
-
- specified label id
-
-
-
- Required
-
-
-
-
-
-
-
-
-
-
-
-
Responses
-
Status: 200 - success
-
-
-
-
-
-
-
-
Status: 401 - permission denied
-
-
-
-
-
-
-
-
Status: 404 - label not found
-
-
-
-
-
-
-
-
Status: 500 - internal server error
-
-
-
-
-
-
-
-
-
-
-
-
-
-
setArticleConfirmed
-
-
-
-
-
-
Set confirmed state of the article. Until the confirmed state has been set to true, the article will not be visible to contacts with which the article is shared. Access granted to the app tokens of the acocunt holder.
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-
-# create an instance of the API class
-api_instance = swagger_client.ContentApi()
-articleId = articleId_example # String | specified article id
-body = # Boolean | (optional)
-
-try:
- api_instance.set_article_confirmed(articleId, body=body)
-except ApiException as e:
- print("Exception when calling ContentApi->setArticleConfirmed: %s\n" % e)
-
-
-
-
Parameters
-
-
Path parameters
-
-
-
Name
-
Description
-
-
articleId*
-
-
-
-
-
-
-
- String
-
-
-
- specified article id
-
-
-
- Required
-
-
-
-
-
-
-
-
-
Body parameters
-
-
-
Name
-
Description
-
-
body
-
-
-
-
-
-
-
-
-
-
-
-
Responses
-
Status: 200 - success
-
-
-
-
-
-
-
-
Status: 401 - permission denied
-
-
-
-
-
-
-
-
Status: 404 - article not found
-
-
-
-
-
-
-
-
Status: 500 - internal server error
-
-
-
-
-
-
-
-
-
-
-
-
-
-
setArticleGroup
-
-
-
-
-
-
Assign a sharing group for the specified article. Contacts with the same sharing group will have access to the article. Access granted to app token of account holder.
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-
-# create an instance of the API class
-api_instance = swagger_client.ContentApi()
-articleId = articleId_example # String | specified article id
-groupId = groupId_example # String | specified share group id
-
-try:
- api_instance.set_article_group(articleId, groupId)
-except ApiException as e:
- print("Exception when calling ContentApi->setArticleGroup: %s\n" % e)
-
-
-
-
Parameters
-
-
Path parameters
-
-
-
Name
-
Description
-
-
articleId*
-
-
-
-
-
-
-
- String
-
-
-
- specified article id
-
-
-
- Required
-
-
-
-
-
-
groupId*
-
-
-
-
-
-
-
- String
-
-
-
- specified share group id
-
-
-
- Required
-
-
-
-
-
-
-
-
-
-
-
-
Responses
-
Status: 200 - success
-
-
-
-
-
-
-
-
Status: 401 - permission denied
-
-
-
-
-
-
-
-
Status: 404 - group or article not found
-
-
-
-
-
-
-
-
Status: 500 - internal server error
-
-
-
-
-
-
-
-
-
-
-
-
-
-
setArticleLabel
-
-
-
-
-
-
Assign a label to an article. If the label has been assigned a sharing group the article will be accessible by contacts within that group. Access is granted to app tokens of the account holder.
Add insight to a dialogue. This endpoint will automatically invoke the add insight on the contact's node. Authorization is granted to the app token of the account holder.
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-
-# create an instance of the API class
-api_instance = swagger_client.ConversationApi()
-dialogueId = dialogueId_example # String | specified dialogue id
-cardId = cardId_example # String | specified card id
-
-try:
- api_instance.add_dialogue_insight(dialogueId, cardId)
-except ApiException as e:
- print("Exception when calling ConversationApi->addDialogueInsight: %s\n" % e)
-
-
-
-
Parameters
-
-
Path parameters
-
-
-
Name
-
Description
-
-
dialogueId*
-
-
-
-
-
-
-
- String
-
-
-
- specified dialogue id
-
-
-
- Required
-
-
-
-
-
-
cardId*
-
-
-
-
-
-
-
- String
-
-
-
- specified card id
-
-
-
- Required
-
-
-
-
-
-
-
-
-
-
-
-
Responses
-
Status: 200 - success
-
-
-
-
-
-
-
-
Status: 401 - permission denied
-
-
-
-
-
-
-
-
Status: 404 - cardId or dialogue not found
-
-
-
-
-
-
-
-
Status: 500 - internal server error
-
-
-
-
-
-
-
-
-
-
-
-
-
-
addDialogueTopic
-
-
-
-
-
-
Add a topic to a dialogue. The response contains the topicBlock ID and topicBlock revision to which the topic is assigned. Authorization granted to account holder app token or dialogue member contact token who is a member of the dialogue.
Create or update an insight. Because the insightId is not know by the contact, it is determined from the token and the dialogueId. Access granted to a connected contact token.
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
-var api = new DataBag.ConversationApi()
-var dialogueId = dialogueId_example; // {{String}} dialogue with insight id to update
+var api = new DataBag.ContactApi()
var opts = {
'body': // {{Long}}
};
@@ -24971,17 +21396,17 @@ var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
- console.log('API called successfully. Returned data: ' + data);
+ console.log('API called successfully.');
}
};
-api.addInsightDialogue(dialogueId, opts, callback);
+api.setViewRevision(opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -24990,24 +21415,22 @@ using IO.Swagger.Model;
namespace Example
{
- public class addInsightDialogueExample
+ public class setViewRevisionExample
{
public void main()
{
- var apiInstance = new ConversationApi();
- var dialogueId = dialogueId_example; // String | dialogue with insight id to update
+ var apiInstance = new ContactApi();
var body = new Long(); // Long | (optional)
try
{
- 'String' result = apiInstance.addInsightDialogue(dialogueId, body);
- Debug.WriteLine(result);
+ apiInstance.setViewRevision(body);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ConversationApi.addInsightDialogue: " + e.Message );
+ Debug.Print("Exception when calling ContactApi.setViewRevision: " + e.Message );
}
}
}
@@ -25015,44 +21438,40 @@ namespace Example
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\ApiConversationApi();
-$dialogueId = dialogueId_example; // String | dialogue with insight id to update
+$api_instance = new Swagger\Client\ApiContactApi();
$body = ; // Long |
try {
- $result = $api_instance->addInsightDialogue($dialogueId, $body);
- print_r($result);
+ $api_instance->setViewRevision($body);
} catch (Exception $e) {
- echo 'Exception when calling ConversationApi->addInsightDialogue: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling ContactApi->setViewRevision: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::ConversationApi;
+use WWW::SwaggerClient::ContactApi;
-my $api_instance = WWW::SwaggerClient::ConversationApi->new();
-my $dialogueId = dialogueId_example; # String | dialogue with insight id to update
+my $api_instance = WWW::SwaggerClient::ContactApi->new();
my $body = WWW::SwaggerClient::Object::Long->new(); # Long |
eval {
- my $result = $api_instance->addInsightDialogue(dialogueId => $dialogueId, body => $body);
- print Dumper($result);
+ $api_instance->setViewRevision(body => $body);
};
if ($@) {
- warn "Exception when calling ConversationApi->addInsightDialogue: $@\n";
+ warn "Exception when calling ContactApi->setViewRevision: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -25061,49 +21480,18 @@ from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.ConversationApi()
-dialogueId = dialogueId_example # String | dialogue with insight id to update
+api_instance = swagger_client.ContactApi()
body = # Long | (optional)
try:
- api_response = api_instance.add_insight_dialogue(dialogueId, body=body)
- pprint(api_response)
+ api_instance.set_view_revision(body=body)
except ApiException as e:
- print("Exception when calling ConversationApi->addInsightDialogue: %s\n" % e)
+ print("Exception when calling ContactApi->setViewRevision: %s\n" % e)
Parameters
-
Path parameters
-
-
-
Name
-
Description
-
-
dialogueId*
-
-
-
-
-
-
-
- String
-
-
-
- dialogue with insight id to update
-
-
-
- Required
-
-
-
-
-
-
Body parameters
@@ -25140,12 +21528,12 @@ except ApiException as e:
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_addInsightDialogue_body');
+ var result = $('#d2e199_setViewRevision_body');
result.empty();
result.append(view.render());
});
-
+
@@ -25153,57 +21541,7 @@ except ApiException as e:
@@ -25211,7 +21549,15 @@ except ApiException as e:
-
Status: 404 - dialogue not found
+
Status: 401 - not authorized
+
+
+
+
+
+
+
+
Status: 410 - account disabled
@@ -25230,114 +21576,105 @@ except ApiException as e:
-
-
+
+
+
Content
+
+
-
addTopicAsset
+
addChannel
-
Add an asset to a topic. The asset will be processed and transcoded according to the specified transformation. Authorization granted to account holder app token or dialogue member contact token who is also the creator of the topic.
Add an an asset to the to an channel. The original posted asset is referenced in the asset list with a null transform. The transformed assets are referenced accordingly. Transforming the asset strips it of metadata and transcodes it into a specified format. Access is granted to the app token of the account holder.
var DataBag = require('data_bag');
+var defaultClient = DataBag.ApiClient.instance;
+
+
+var api = new DataBag.ContentApi()
+var channelId = channelId_example; // {{String}} specified channel id
var topicId = topicId_example; // {{String}} specified topic id
var opts = {
'fileName': fileName_example // {{byte[]}}
@@ -25367,14 +22473,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.addTopicAsset(dialogueIdtopicId, opts, callback);
+api.addChannelTopicAsset(channelIdtopicId, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -25383,26 +22489,26 @@ using IO.Swagger.Model;
namespace Example
{
- public class addTopicAssetExample
+ public class addChannelTopicAssetExample
{
public void main()
{
- var apiInstance = new ConversationApi();
- var dialogueId = dialogueId_example; // String | specified dialogue id
+ var apiInstance = new ContentApi();
+ var channelId = channelId_example; // String | specified channel id
var topicId = topicId_example; // String | specified topic id
var fileName = fileName_example; // byte[] | (optional)
var transforms = new array[String](); // array[String] | transforms to apply (optional)
try
{
- Asset result = apiInstance.addTopicAsset(dialogueId, topicId, fileName, transforms);
+ array[Asset] result = apiInstance.addChannelTopicAsset(channelId, topicId, fileName, transforms);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ConversationApi.addTopicAsset: " + e.Message );
+ Debug.Print("Exception when calling ContentApi.addChannelTopicAsset: " + e.Message );
}
}
}
@@ -25410,48 +22516,48 @@ namespace Example
Add a tag to specified topic. Authorization granted to account holder app token or dialogue member contact token who has access to the topic. The body of the post contains the subject of the tag, which can have no associated assets.
After the assets have been uploaded and the subject has been set, the topic should be set to confirmed (true) to make the topic available to others. Authorization granted to account holder app token or dialogue member contact token who is also the creator of the topic.
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-
-# create an instance of the API class
-api_instance = swagger_client.ConversationApi()
-dialogueId = dialogueId_example # String | specified dialogue id
-topicId = topicId_example # String | specified topic id
-body = # Boolean | (optional)
-
-try:
- api_instance.conversation_dialogues_dialogue_id_topics_topic_id_confirmed_put(dialogueId, topicId, body=body)
-except ApiException as e:
- print("Exception when calling ConversationApi->conversationDialoguesDialogueIdTopicsTopicIdConfirmedPut: %s\n" % e)
-
-
-
-
Parameters
-
-
Path parameters
-
-
-
Name
-
Description
-
-
dialogueId*
-
-
-
-
-
-
-
- String
-
-
-
- specified dialogue id
-
-
-
- Required
-
-
-
-
-
-
topicId*
-
-
-
-
-
-
-
- String
-
-
-
- specified topic id
-
-
-
- Required
-
-
-
-
-
-
-
-
-
Body parameters
-
-
-
Name
-
Description
-
-
body
-
-
-
-
-
-
-
-
-
-
-
-
Responses
-
Status: 200 - success
-
-
-
-
-
-
-
-
Status: 401 - permission denied
-
-
-
-
-
-
-
-
Status: 403 - inactive dialogue
-
-
-
-
-
-
-
-
Status: 404 - topic or dialogue not found
-
-
-
-
-
-
-
-
Status: 500 - internal server error
-
-
-
-
-
-
-
-
-
-
-
-
-
-
getDialogueTopic
-
-
-
-
-
-
Retrieve a specified dialogue topic. Authorization granted to account holder app token or dialogue member contact token who is a member of the dialogue.
Base64 decode and retrieve a specified field from subject of dialogue topic. Authorization granted to account holder app token or dialogue member contact token who is a member of the dialogue.
import io.swagger.client.*;
-import io.swagger.client.auth.*;
-import io.swagger.client.model.*;
-import io.swagger.client.api.ConversationApi;
-
-import java.io.File;
-import java.util.*;
-
-public class ConversationApiExample {
-
- public static void main(String[] args) {
- ApiClient defaultClient = Configuration.getDefaultApiClient();
-
-
- ConversationApi apiInstance = new ConversationApi();
- String dismissed = dismissed_example; // String | if dismissed insights should be included
- try {
- array[Insight] result = apiInstance.getInsights(dismissed);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ConversationApi#getInsights");
- e.printStackTrace();
- }
- }
-}
-
-
-
-
import io.swagger.client.api.ConversationApi;
-
-public class ConversationApiExample {
-
- public static void main(String[] args) {
- ConversationApi apiInstance = new ConversationApi();
- String dismissed = dismissed_example; // String | if dismissed insights should be included
- try {
- array[Insight] result = apiInstance.getInsights(dismissed);
- System.out.println(result);
- } catch (ApiException e) {
- System.err.println("Exception when calling ConversationApi#getInsights");
- e.printStackTrace();
- }
- }
-}
-
-
-
-
Configuration *apiConfig = [Configuration sharedConfig];
-String *dismissed = dismissed_example; // if dismissed insights should be included (optional)
-
-ConversationApi *apiInstance = [[ConversationApi alloc] init];
-
-[apiInstance getInsightsWith:dismissed
- completionHandler: ^(array[Insight] output, NSError* error) {
- if (output) {
- NSLog(@"%@", output);
- }
- if (error) {
- NSLog(@"Error: %@", error);
- }
- }];
-
-
-
-
-
var DataBag = require('data_bag');
-var defaultClient = DataBag.ApiClient.instance;
-
-
-var api = new DataBag.ConversationApi()
-var opts = {
- 'dismissed': dismissed_example // {{String}} if dismissed insights should be included
-};
-var callback = function(error, data, response) {
- if (error) {
- console.error(error);
- } else {
- console.log('API called successfully. Returned data: ' + data);
- }
-};
-api.getInsights(opts, callback);
-
-
-
-
-
-
using System;
-using System.Diagnostics;
-using IO.Swagger.Api;
-using IO.Swagger.Client;
-using IO.Swagger.Model;
-
-namespace Example
-{
- public class getInsightsExample
- {
- public void main()
- {
-
-
- var apiInstance = new ConversationApi();
- var dismissed = dismissed_example; // String | if dismissed insights should be included (optional)
-
- try
- {
- array[Insight] result = apiInstance.getInsights(dismissed);
- Debug.WriteLine(result);
- }
- catch (Exception e)
- {
- Debug.Print("Exception when calling ConversationApi.getInsights: " + e.Message );
- }
- }
- }
-}
-
-
-
-
-
<?php
-require_once(__DIR__ . '/vendor/autoload.php');
-
-
-$api_instance = new Swagger\Client\ApiConversationApi();
-$dismissed = dismissed_example; // String | if dismissed insights should be included
-
-try {
- $result = $api_instance->getInsights($dismissed);
- print_r($result);
-} catch (Exception $e) {
- echo 'Exception when calling ConversationApi->getInsights: ', $e->getMessage(), PHP_EOL;
-}
-?>
-
-
-
-
use Data::Dumper;
-use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::ConversationApi;
-
-
-my $api_instance = WWW::SwaggerClient::ConversationApi->new();
-my $dismissed = dismissed_example; # String | if dismissed insights should be included
-
-eval {
- my $result = $api_instance->getInsights(dismissed => $dismissed);
- print Dumper($result);
-};
-if ($@) {
- warn "Exception when calling ConversationApi->getInsights: $@\n";
-}
-
-
-
-
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-
-# create an instance of the API class
-api_instance = swagger_client.ConversationApi()
-dismissed = dismissed_example # String | if dismissed insights should be included (optional)
-
-try:
- api_response = api_instance.get_insights(dismissed=dismissed)
- pprint(api_response)
-except ApiException as e:
- print("Exception when calling ConversationApi->getInsights: %s\n" % e)
Retrieve an asset associated with a topic. All transformed assets can be retrieved by anyone with access to the topic, but the original asset can only be retrieved by the author of the topic. Authorization granted to account holder app token or dialogue member contact token who is also the creator of the topic.
Get all assets associated with the specified topic. Authorization granted to account holder app token or dialogue member contact token who has access to the topic.
@@ -28553,7 +22751,23 @@ except ApiException as e:
-
Status: 404 - topic or dialogue not found
+
Status: 404 - channel not found
+
+
+
+
+
+
+
+
Status: 406 - storage limit reached
+
+
+
+
+
+
+
+
Status: 410 - account disabled
@@ -28572,873 +22786,109 @@ except ApiException as e:
-
-
+
+
-
getTopicBlock
+
addChannelTopicTag
-
Get the topics within a topicBlock. Only the account holder and the topic creator will retrieve pending topics. Authorization granted to account holder app token or dialogue member contact token who is also a member of the dialogue
Get a view of the topicBlocks within a dialogue. Authorization granted to account holder app token or dialogue member contact token who is also a member of the dialogue
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
-var api = new DataBag.ConversationApi()
-var dialogueId = dialogueId_example; // {{String}} specified dialogue id
+var api = new DataBag.ContentApi()
+var channelId = channelId_example; // {{String}} specified channel id
var topicId = topicId_example; // {{String}} specified topic id
-var tagId = tagId_example; // {{String}} specified tag id
-
+var opts = {
+ 'body': // {{Subject}}
+};
var callback = function(error, data, response) {
if (error) {
console.error(error);
@@ -29467,14 +22918,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getTopicTag(dialogueId, topicId, tagId, callback);
+api.addChannelTopicTag(channelIdtopicId, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -29483,25 +22934,25 @@ using IO.Swagger.Model;
namespace Example
{
- public class getTopicTagExample
+ public class addChannelTopicTagExample
{
public void main()
{
- var apiInstance = new ConversationApi();
- var dialogueId = dialogueId_example; // String | specified dialogue id
+ var apiInstance = new ContentApi();
+ var channelId = channelId_example; // String | specified channel id
var topicId = topicId_example; // String | specified topic id
- var tagId = tagId_example; // String | specified tag id
+ var body = new Subject(); // Subject | (optional)
try
{
- Tag result = apiInstance.getTopicTag(dialogueId, topicId, tagId);
+ Tag result = apiInstance.addChannelTopicTag(channelId, topicId, body);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ConversationApi.getTopicTag: " + e.Message );
+ Debug.Print("Exception when calling ContentApi.addChannelTopicTag: " + e.Message );
}
}
}
@@ -29509,46 +22960,46 @@ namespace Example
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
-var api = new DataBag.ConversationApi()
-var dialogueId = dialogueId_example; // {{String}} specified dialogue id
-var topicId = topicId_example; // {{String}} specified topic id
-var opts = {
- 'types': // {{array[String]}} limit results to articles of types
-};
+var api = new DataBag.ContentApi()
+var channelId = channelId_example; // {{String}} specified channel id
+var cardId = cardId_example; // {{String}} specified card id
+
var callback = function(error, data, response) {
if (error) {
console.error(error);
@@ -29857,14 +23322,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getTopicTagBlockView(dialogueId, topicId, opts, callback);
+api.clearChannelCard(channelId, cardId, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -29873,25 +23338,24 @@ using IO.Swagger.Model;
namespace Example
{
- public class getTopicTagBlockViewExample
+ public class clearChannelCardExample
{
public void main()
{
- var apiInstance = new ConversationApi();
- var dialogueId = dialogueId_example; // String | specified dialogue id
- var topicId = topicId_example; // String | specified topic id
- var types = new array[String](); // array[String] | limit results to articles of types (optional)
+ var apiInstance = new ContentApi();
+ var channelId = channelId_example; // String | specified channel id
+ var cardId = cardId_example; // String | specified card id
try
{
- array[inline_response_200_1] result = apiInstance.getTopicTagBlockView(dialogueId, topicId, types);
+ Channel result = apiInstance.clearChannelCard(channelId, cardId);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ConversationApi.getTopicTagBlockView: " + e.Message );
+ Debug.Print("Exception when calling ContentApi.clearChannelCard: " + e.Message );
}
}
}
@@ -29899,46 +23363,44 @@ namespace Example
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\ApiConversationApi();
-$dialogueId = dialogueId_example; // String | specified dialogue id
-$topicId = topicId_example; // String | specified topic id
-$types = ; // array[String] | limit results to articles of types
+$api_instance = new Swagger\Client\ApiContentApi();
+$channelId = channelId_example; // String | specified channel id
+$cardId = cardId_example; // String | specified card id
try {
- $result = $api_instance->getTopicTagBlockView($dialogueId, $topicId, $types);
+ $result = $api_instance->clearChannelCard($channelId, $cardId);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling ConversationApi->getTopicTagBlockView: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling ContentApi->clearChannelCard: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::ConversationApi;
+use WWW::SwaggerClient::ContentApi;
-my $api_instance = WWW::SwaggerClient::ConversationApi->new();
-my $dialogueId = dialogueId_example; # String | specified dialogue id
-my $topicId = topicId_example; # String | specified topic id
-my $types = []; # array[String] | limit results to articles of types
+my $api_instance = WWW::SwaggerClient::ContentApi->new();
+my $channelId = channelId_example; # String | specified channel id
+my $cardId = cardId_example; # String | specified card id
eval {
- my $result = $api_instance->getTopicTagBlockView(dialogueId => $dialogueId, topicId => $topicId, types => $types);
+ my $result = $api_instance->clearChannelCard(channelId => $channelId, cardId => $cardId);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling ConversationApi->getTopicTagBlockView: $@\n";
+ warn "Exception when calling ContentApi->clearChannelCard: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -29947,16 +23409,15 @@ from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.ConversationApi()
-dialogueId = dialogueId_example # String | specified dialogue id
-topicId = topicId_example # String | specified topic id
-types = # array[String] | limit results to articles of types (optional)
+api_instance = swagger_client.ContentApi()
+channelId = channelId_example # String | specified channel id
+cardId = cardId_example # String | specified card id
try:
- api_response = api_instance.get_topic_tag_block_view(dialogueId, topicId, types=types)
+ api_response = api_instance.clear_channel_card(channelId, cardId)
pprint(api_response)
except ApiException as e:
- print("Exception when calling ConversationApi->getTopicTagBlockView: %s\n" % e)
+ print("Exception when calling ContentApi->clearChannelCard: %s\n" % e)
@@ -29968,11 +23429,11 @@ except ApiException as e:
Name
Description
-
dialogueId*
+
channelId*
-
+
@@ -29980,7 +23441,1450 @@ except ApiException as e:
Base64 decode and download specified field from the channel's subject. Access granted to app token of account holder or contact token of account the channel is shared with.
Get asset assigned to an channel. The endpoint supports byte-range requests and responds with the content-type set appropriatly. Access granted to the app tokens of the account holder and in the case of non-original assets, the contact token for accounts with which the channel is shared.
Get list of assets assigned to an channel. The original assets will only be available to the account holder to provent the accidental sharing of content metadata. Access is granted to the app token of the account holder and the contact token of accounts the channel has been shared with.
@@ -30124,113 +25767,105 @@ except ApiException as e:
-
-
+
+
-
getTopicTagSubjectField
+
getChannelTopicDetail
-
Base64 decode and retrieve specified field of tag subject on the topic. Authorization granted to account holder app token or dialogue member contact token who has access to the topic.
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
-var api = new DataBag.ConversationApi()
-var dialogueId = dialogueId_example; // {{String}} specified dialogue id
+var api = new DataBag.ContentApi()
+var channelId = channelId_example; // {{String}} specified channel id
var topicId = topicId_example; // {{String}} specified topic id
-var tagId = tagId_example; // {{String}} specified tag id
-var field = field_example; // {{String}} field to base64 decode and download
var callback = function(error, data, response) {
if (error) {
@@ -30259,14 +25892,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getTopicTagSubjectField(dialogueId, topicId, tagId, field, callback);
+api.getChannelTopicDetail(channelId, topicId, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -30275,26 +25908,24 @@ using IO.Swagger.Model;
namespace Example
{
- public class getTopicTagSubjectFieldExample
+ public class getChannelTopicDetailExample
{
public void main()
{
- var apiInstance = new ConversationApi();
- var dialogueId = dialogueId_example; // String | specified dialogue id
+ var apiInstance = new ContentApi();
+ var channelId = channelId_example; // String | specified channel id
var topicId = topicId_example; // String | specified topic id
- var tagId = tagId_example; // String | specified tag id
- var field = field_example; // String | field to base64 decode and download
try
{
- Tag result = apiInstance.getTopicTagSubjectField(dialogueId, topicId, tagId, field);
+ TopicDetail result = apiInstance.getChannelTopicDetail(channelId, topicId);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ConversationApi.getTopicTagSubjectField: " + e.Message );
+ Debug.Print("Exception when calling ContentApi.getChannelTopicDetail: " + e.Message );
}
}
}
@@ -30302,48 +25933,44 @@ namespace Example
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\ApiConversationApi();
-$dialogueId = dialogueId_example; // String | specified dialogue id
+$api_instance = new Swagger\Client\ApiContentApi();
+$channelId = channelId_example; // String | specified channel id
$topicId = topicId_example; // String | specified topic id
-$tagId = tagId_example; // String | specified tag id
-$field = field_example; // String | field to base64 decode and download
try {
- $result = $api_instance->getTopicTagSubjectField($dialogueId, $topicId, $tagId, $field);
+ $result = $api_instance->getChannelTopicDetail($channelId, $topicId);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling ConversationApi->getTopicTagSubjectField: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling ContentApi->getChannelTopicDetail: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::ConversationApi;
+use WWW::SwaggerClient::ContentApi;
-my $api_instance = WWW::SwaggerClient::ConversationApi->new();
-my $dialogueId = dialogueId_example; # String | specified dialogue id
+my $api_instance = WWW::SwaggerClient::ContentApi->new();
+my $channelId = channelId_example; # String | specified channel id
my $topicId = topicId_example; # String | specified topic id
-my $tagId = tagId_example; # String | specified tag id
-my $field = field_example; # String | field to base64 decode and download
eval {
- my $result = $api_instance->getTopicTagSubjectField(dialogueId => $dialogueId, topicId => $topicId, tagId => $tagId, field => $field);
+ my $result = $api_instance->getChannelTopicDetail(channelId => $channelId, topicId => $topicId);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling ConversationApi->getTopicTagSubjectField: $@\n";
+ warn "Exception when calling ContentApi->getChannelTopicDetail: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -30352,17 +25979,15 @@ from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.ConversationApi()
-dialogueId = dialogueId_example # String | specified dialogue id
+api_instance = swagger_client.ContentApi()
+channelId = channelId_example # String | specified channel id
topicId = topicId_example # String | specified topic id
-tagId = tagId_example # String | specified tag id
-field = field_example # String | field to base64 decode and download
try:
- api_response = api_instance.get_topic_tag_subject_field(dialogueId, topicId, tagId, field)
+ api_response = api_instance.get_channel_topic_detail(channelId, topicId)
pprint(api_response)
except ApiException as e:
- print("Exception when calling ConversationApi->getTopicTagSubjectField: %s\n" % e)
+ print("Exception when calling ContentApi->getChannelTopicDetail: %s\n" % e)
@@ -30374,11 +25999,11 @@ except ApiException as e:
Name
Description
-
dialogueId*
+
channelId*
-
+
@@ -30386,7 +26011,7 @@ except ApiException as e:
- specified dialogue id
+ specified channel id
@@ -30400,7 +26025,798 @@ except ApiException as e:
Base64 decode and download specified field from the channel's subject. Access granted to app token of account holder or contact token of account the channel is shared with.
Base64 decode and download specified field from the channel's subject. Access granted to app token of account holder or contact token of account the channel is shared with.
Status: 404 - field, tag, topic, or dialogue not found
-
-
-
-
-
-
-
-
Status: 405 - invalid field
-
-
-
-
-
-
-
-
Status: 500 - internal server error
-
-
-
-
-
-
-
-
-
-
-
-
-
-
getTopicTagView
-
-
-
-
-
-
Get a view of all of the tags within a block. Authorization granted to account holder app token or dialogue member contact token who has access to the topic.
@@ -30962,7 +26943,23 @@ except ApiException as e:
-
Status: 404 - block, topic or dialogue not found
+
Status: 404 - field, channel not found
+
+
+
+
+
+
+
+
Status: 405 - invalid field
+
+
+
+
+
+
+
+
Status: 410 - account disabled
@@ -30981,112 +26978,108 @@ except ApiException as e:
-
-
+
+
-
getTopicTags
+
getChannelTopicTags
-
Get all of the tags within a tag block. Authorization granted to account holder app token or dialogue member contact token who has access to the topic.
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
-var api = new DataBag.ConversationApi()
-var dialogueId = dialogueId_example; // {{String}} specified dialogue id
+var api = new DataBag.ContentApi()
+var channelId = channelId_example; // {{String}} specified channel id
var topicId = topicId_example; // {{String}} specified topic id
-var blockId = blockId_example; // {{String}} specified block id
var opts = {
- 'types': // {{array[String]}} limit results to tags of types
+ 'revision': revision_example // {{String}} return updated topics since revision
};
var callback = function(error, data, response) {
if (error) {
@@ -31117,14 +27109,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getTopicTags(dialogueId, topicId, blockId, opts, callback);
+api.getChannelTopicTags(channelId, topicId, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -31133,26 +27125,25 @@ using IO.Swagger.Model;
namespace Example
{
- public class getTopicTagsExample
+ public class getChannelTopicTagsExample
{
public void main()
{
- var apiInstance = new ConversationApi();
- var dialogueId = dialogueId_example; // String | specified dialogue id
+ var apiInstance = new ContentApi();
+ var channelId = channelId_example; // String | specified channel id
var topicId = topicId_example; // String | specified topic id
- var blockId = blockId_example; // String | specified block id
- var types = new array[String](); // array[String] | limit results to tags of types (optional)
+ var revision = revision_example; // String | return updated topics since revision (optional)
try
{
- array[Tag] result = apiInstance.getTopicTags(dialogueId, topicId, blockId, types);
+ array[Tag] result = apiInstance.getChannelTopicTags(channelId, topicId, revision);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ConversationApi.getTopicTags: " + e.Message );
+ Debug.Print("Exception when calling ContentApi.getChannelTopicTags: " + e.Message );
}
}
}
@@ -31160,48 +27151,46 @@ namespace Example
@@ -31410,109 +27406,105 @@ except ApiException as e:
-
-
+
+
-
getTopicViews
+
getChannelTopics
-
Get a view of the topics within a topicBlock. Authorization granted to account holder app token or dialogue member contact token who is also a member of the dialogue.
+
Get channel topic slots. If revision set, detail fields omitted in response
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
-var api = new DataBag.ConversationApi()
-var dialogueId = dialogueId_example; // {{String}} specified dialogue id
-var blockId = blockId_example; // {{String}} specified group id
+var api = new DataBag.ContentApi()
+var channelId = channelId_example; // {{String}} specified channel id
var opts = {
- 'types': // {{array[String]}} limit results to topics of types
+ 'revision': revision_example // {{String}} return updated topics since revision
};
var callback = function(error, data, response) {
if (error) {
@@ -31541,14 +27532,14 @@ var callback = function(error, data, response) {
console.log('API called successfully. Returned data: ' + data);
}
};
-api.getTopicViews(dialogueId, blockId, opts, callback);
+api.getChannelTopics(channelId, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -31557,25 +27548,24 @@ using IO.Swagger.Model;
namespace Example
{
- public class getTopicViewsExample
+ public class getChannelTopicsExample
{
public void main()
{
- var apiInstance = new ConversationApi();
- var dialogueId = dialogueId_example; // String | specified dialogue id
- var blockId = blockId_example; // String | specified group id
- var types = new array[String](); // array[String] | limit results to topics of types (optional)
+ var apiInstance = new ContentApi();
+ var channelId = channelId_example; // String | specified channel id
+ var revision = revision_example; // String | return updated topics since revision (optional)
try
{
- array[inline_response_200_1] result = apiInstance.getTopicViews(dialogueId, blockId, types);
+ array[Topic] result = apiInstance.getChannelTopics(channelId, revision);
Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ConversationApi.getTopicViews: " + e.Message );
+ Debug.Print("Exception when calling ContentApi.getChannelTopics: " + e.Message );
}
}
}
@@ -31583,46 +27573,44 @@ namespace Example
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\ApiConversationApi();
-$dialogueId = dialogueId_example; // String | specified dialogue id
-$blockId = blockId_example; // String | specified group id
-$types = ; // array[String] | limit results to topics of types
+$api_instance = new Swagger\Client\ApiContentApi();
+$channelId = channelId_example; // String | specified channel id
+$revision = revision_example; // String | return updated topics since revision
try {
- $result = $api_instance->getTopicViews($dialogueId, $blockId, $types);
+ $result = $api_instance->getChannelTopics($channelId, $revision);
print_r($result);
} catch (Exception $e) {
- echo 'Exception when calling ConversationApi->getTopicViews: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling ContentApi->getChannelTopics: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::ConversationApi;
+use WWW::SwaggerClient::ContentApi;
-my $api_instance = WWW::SwaggerClient::ConversationApi->new();
-my $dialogueId = dialogueId_example; # String | specified dialogue id
-my $blockId = blockId_example; # String | specified group id
-my $types = []; # array[String] | limit results to topics of types
+my $api_instance = WWW::SwaggerClient::ContentApi->new();
+my $channelId = channelId_example; # String | specified channel id
+my $revision = revision_example; # String | return updated topics since revision
eval {
- my $result = $api_instance->getTopicViews(dialogueId => $dialogueId, blockId => $blockId, types => $types);
+ my $result = $api_instance->getChannelTopics(channelId => $channelId, revision => $revision);
print Dumper($result);
};
if ($@) {
- warn "Exception when calling ConversationApi->getTopicViews: $@\n";
+ warn "Exception when calling ContentApi->getChannelTopics: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -31631,16 +27619,15 @@ from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.ConversationApi()
-dialogueId = dialogueId_example # String | specified dialogue id
-blockId = blockId_example # String | specified group id
-types = # array[String] | limit results to topics of types (optional)
+api_instance = swagger_client.ContentApi()
+channelId = channelId_example # String | specified channel id
+revision = revision_example # String | return updated topics since revision (optional)
try:
- api_response = api_instance.get_topic_views(dialogueId, blockId, types=types)
+ api_response = api_instance.get_channel_topics(channelId, revision=revision)
pprint(api_response)
except ApiException as e:
- print("Exception when calling ConversationApi->getTopicViews: %s\n" % e)
+ print("Exception when calling ContentApi->getChannelTopics: %s\n" % e)
@@ -31652,11 +27639,11 @@ except ApiException as e:
Name
Description
-
dialogueId*
+
channelId*
-
+
@@ -31664,29 +27651,7 @@ except ApiException as e:
- specified dialogue id
-
-
-
- Required
-
-
-
-
-
-
blockId*
-
-
-
-
-
-
-
- String
-
-
-
- specified group id
+ specified channel id
@@ -31707,19 +27672,19 @@ except ApiException as e:
Name
Description
-
types
+
revision
-
+
- array[String]
+ String
- limit results to topics of types
+ return updated topics since revision
@@ -31733,24 +27698,38 @@ except ApiException as e:
@@ -31808,98 +27803,112 @@ except ApiException as e:
-
-
+
+
-
removeDialogue
+
getChannels
-
Remove specified dialogue. This endpoint will authomatically invoke the delete insight endpoint on all of the contacts' nodes. Access is granted to an app token for the account holder.
+
Get channel slots. If revision set detail fields omittied in response
from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+
+# create an instance of the API class
+api_instance = swagger_client.ContentApi()
+channelId = channelId_example # String | specified channel id
+
+try:
+ api_instance.remove_channel(channelId)
+except ApiException as e:
+ print("Exception when calling ContentApi->removeChannel: %s\n" % e)
@@ -32021,11 +28446,11 @@ except ApiException as e:
Name
Description
-
dialogueId*
+
channelId*
-
+
@@ -32033,7 +28458,7 @@ except ApiException as e:
- specified dialogue id
+ specified channel id
@@ -32058,7 +28483,7 @@ except ApiException as e:
-
Status: 401 - permission denied
+
Status: 401 - invalid password
@@ -32066,7 +28491,15 @@ except ApiException as e:
-
Status: 404 - dialogue not found
+
Status: 404 - channel not found
+
+
+
+
+
+
+
+
Status: 410 - account disabled
@@ -32085,408 +28518,100 @@ except ApiException as e:
-
-
+
+
-
removeDialogueInsight
+
removeChannelTopic
-
Remove an insight from a dialogue. This endpoint will authomatically invoke the delete insight endpoint on the contact's node. Authorization is granted to the app token of the accoun holder.
+
Remove specified channel. Access granted to app token of account holder.
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-
-# create an instance of the API class
-api_instance = swagger_client.ConversationApi()
-dialogueId = dialogueId_example # String | specified dialogue id
-cardId = cardId_example # String | specified contact id
-
-try:
- api_instance.remove_dialogue_insight(dialogueId, cardId)
-except ApiException as e:
- print("Exception when calling ConversationApi->removeDialogueInsight: %s\n" % e)
-
-
-
-
Parameters
-
-
Path parameters
-
-
-
Name
-
Description
-
-
dialogueId*
-
-
-
-
-
-
-
- String
-
-
-
- specified dialogue id
-
-
-
- Required
-
-
-
-
-
-
cardId*
-
-
-
-
-
-
-
- String
-
-
-
- specified contact id
-
-
-
- Required
-
-
-
-
-
-
-
-
-
-
-
-
Responses
-
Status: 200 - success
-
-
-
-
-
-
-
-
Status: 401 - permission denied
-
-
-
-
-
-
-
-
Status: 404 - cardId or dialogue not found
-
-
-
-
-
-
-
-
Status: 500 - internal server error
-
-
-
-
-
-
-
-
-
-
-
-
-
-
removeDialogueTopic
-
-
-
-
-
-
Remove a topic from a dialogue. Authorization granted to account holder app token or dialogue member contact token who is either the topic createor or the account holder.
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
-var api = new DataBag.ConversationApi()
-var dialogueId = dialogueId_example; // {{String}} specified dialogue id
+var api = new DataBag.ContentApi()
+var channelId = channelId_example; // {{String}} specified channel id
var topicId = topicId_example; // {{String}} specified topic id
var callback = function(error, data, response) {
@@ -32512,14 +28637,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.removeDialogueTopic(dialogueId, topicId, callback);
+api.removeChannelTopic(channelId, topicId, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -32528,23 +28653,23 @@ using IO.Swagger.Model;
namespace Example
{
- public class removeDialogueTopicExample
+ public class removeChannelTopicExample
{
public void main()
{
- var apiInstance = new ConversationApi();
- var dialogueId = dialogueId_example; // String | specified dialogue id
+ var apiInstance = new ContentApi();
+ var channelId = channelId_example; // String | specified channel id
var topicId = topicId_example; // String | specified topic id
try
{
- apiInstance.removeDialogueTopic(dialogueId, topicId);
+ apiInstance.removeChannelTopic(channelId, topicId);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ConversationApi.removeDialogueTopic: " + e.Message );
+ Debug.Print("Exception when calling ContentApi.removeChannelTopic: " + e.Message );
}
}
}
@@ -32552,42 +28677,42 @@ namespace Example
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::ConversationApi;
+use WWW::SwaggerClient::ContentApi;
-my $api_instance = WWW::SwaggerClient::ConversationApi->new();
-my $dialogueId = dialogueId_example; # String | specified dialogue id
+my $api_instance = WWW::SwaggerClient::ContentApi->new();
+my $channelId = channelId_example; # String | specified channel id
my $topicId = topicId_example; # String | specified topic id
eval {
- $api_instance->removeDialogueTopic(dialogueId => $dialogueId, topicId => $topicId);
+ $api_instance->removeChannelTopic(channelId => $channelId, topicId => $topicId);
};
if ($@) {
- warn "Exception when calling ConversationApi->removeDialogueTopic: $@\n";
+ warn "Exception when calling ContentApi->removeChannelTopic: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -32596,14 +28721,14 @@ from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.ConversationApi()
-dialogueId = dialogueId_example # String | specified dialogue id
+api_instance = swagger_client.ContentApi()
+channelId = channelId_example # String | specified channel id
topicId = topicId_example # String | specified topic id
try:
- api_instance.remove_dialogue_topic(dialogueId, topicId)
+ api_instance.remove_channel_topic(channelId, topicId)
except ApiException as e:
- print("Exception when calling ConversationApi->removeDialogueTopic: %s\n" % e)
+ print("Exception when calling ContentApi->removeChannelTopic: %s\n" % e)
@@ -32615,11 +28740,11 @@ except ApiException as e:
Name
Description
-
dialogueId*
+
channelId*
-
+
@@ -32627,7 +28752,7 @@ except ApiException as e:
- specified dialogue id
+ specified channel id
@@ -32641,7 +28766,7 @@ except ApiException as e:
-
+
@@ -32666,7 +28791,7 @@ except ApiException as e:
Responses
-
Status: 200 - successful operation
+
Status: 200 - success
@@ -32674,7 +28799,7 @@ except ApiException as e:
-
Status: 401 - permission denied
+
Status: 401 - invalid password
@@ -32682,7 +28807,7 @@ except ApiException as e:
-
Status: 403 - inactive dialogue
+
Status: 404 - channel not found
@@ -32690,7 +28815,7 @@ except ApiException as e:
-
Status: 404 - topic or dilaogue not found
+
Status: 410 - account disabled
@@ -32709,103 +28834,103 @@ except ApiException as e:
-
-
+
+
-
removeTopicAsset
+
removeChannelTopicAsset
-
Remove and delete an asset associated with a topic. Authorization granted to account holder app token or dialogue member contact token who is also the creator of the topic.
+
Remove an asset from an channel. Access granted to app tokens of the account holder.
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
-var api = new DataBag.ConversationApi()
-var dialogueId = dialogueId_example; // {{String}} specified dialogue id
+var api = new DataBag.ContentApi()
+var channelId = channelId_example; // {{String}} specified channel id
var topicId = topicId_example; // {{String}} specified topic id
var assetId = assetId_example; // {{String}} specified asset id
@@ -32833,14 +28958,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.removeTopicAsset(dialogueId, topicId, assetId, callback);
+api.removeChannelTopicAsset(channelId, topicId, assetId, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -32849,24 +28974,24 @@ using IO.Swagger.Model;
namespace Example
{
- public class removeTopicAssetExample
+ public class removeChannelTopicAssetExample
{
public void main()
{
- var apiInstance = new ConversationApi();
- var dialogueId = dialogueId_example; // String | specified dialogue id
+ var apiInstance = new ContentApi();
+ var channelId = channelId_example; // String | specified channel id
var topicId = topicId_example; // String | specified topic id
var assetId = assetId_example; // String | specified asset id
try
{
- apiInstance.removeTopicAsset(dialogueId, topicId, assetId);
+ apiInstance.removeChannelTopicAsset(channelId, topicId, assetId);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ConversationApi.removeTopicAsset: " + e.Message );
+ Debug.Print("Exception when calling ContentApi.removeChannelTopicAsset: " + e.Message );
}
}
}
@@ -32874,44 +28999,44 @@ namespace Example
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
-var api = new DataBag.ConversationApi()
-var dialogueId = dialogueId_example; // {{String}} specified dialogue id
+var api = new DataBag.ContentApi()
+var channelId = channelId_example; // {{String}} specified channel id
var topicId = topicId_example; // {{String}} specified topic id
var tagId = tagId_example; // {{String}} specified tag id
@@ -33180,14 +29305,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.removeTopicTag(dialogueId, topicId, tagId, callback);
+api.removeChannelTopicTag(channelId, topicId, tagId, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -33196,24 +29321,24 @@ using IO.Swagger.Model;
namespace Example
{
- public class removeTopicTagExample
+ public class removeChannelTopicTagExample
{
public void main()
{
- var apiInstance = new ConversationApi();
- var dialogueId = dialogueId_example; // String | specified dialogue id
+ var apiInstance = new ContentApi();
+ var channelId = channelId_example; // String | specified channel id
var topicId = topicId_example; // String | specified topic id
var tagId = tagId_example; // String | specified tag id
try
{
- apiInstance.removeTopicTag(dialogueId, topicId, tagId);
+ apiInstance.removeChannelTopicTag(channelId, topicId, tagId);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ConversationApi.removeTopicTag: " + e.Message );
+ Debug.Print("Exception when calling ContentApi.removeChannelTopicTag: " + e.Message );
}
}
}
@@ -33221,44 +29346,44 @@ namespace Example
-
+
<?php
require_once(__DIR__ . '/vendor/autoload.php');
-$api_instance = new Swagger\Client\ApiConversationApi();
-$dialogueId = dialogueId_example; // String | specified dialogue id
+$api_instance = new Swagger\Client\ApiContentApi();
+$channelId = channelId_example; // String | specified channel id
$topicId = topicId_example; // String | specified topic id
$tagId = tagId_example; // String | specified tag id
try {
- $api_instance->removeTopicTag($dialogueId, $topicId, $tagId);
+ $api_instance->removeChannelTopicTag($channelId, $topicId, $tagId);
} catch (Exception $e) {
- echo 'Exception when calling ConversationApi->removeTopicTag: ', $e->getMessage(), PHP_EOL;
+ echo 'Exception when calling ContentApi->removeChannelTopicTag: ', $e->getMessage(), PHP_EOL;
}
?>
-
+
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
-use WWW::SwaggerClient::ConversationApi;
+use WWW::SwaggerClient::ContentApi;
-my $api_instance = WWW::SwaggerClient::ConversationApi->new();
-my $dialogueId = dialogueId_example; # String | specified dialogue id
+my $api_instance = WWW::SwaggerClient::ContentApi->new();
+my $channelId = channelId_example; # String | specified channel id
my $topicId = topicId_example; # String | specified topic id
my $tagId = tagId_example; # String | specified tag id
eval {
- $api_instance->removeTopicTag(dialogueId => $dialogueId, topicId => $topicId, tagId => $tagId);
+ $api_instance->removeChannelTopicTag(channelId => $channelId, topicId => $topicId, tagId => $tagId);
};
if ($@) {
- warn "Exception when calling ConversationApi->removeTopicTag: $@\n";
+ warn "Exception when calling ContentApi->removeChannelTopicTag: $@\n";
}
-
+
from __future__ import print_statement
import time
import swagger_client
@@ -33267,15 +29392,15 @@ from pprint import pprint
# create an instance of the API class
-api_instance = swagger_client.ConversationApi()
-dialogueId = dialogueId_example # String | specified dialogue id
+api_instance = swagger_client.ContentApi()
+channelId = channelId_example # String | specified channel id
topicId = topicId_example # String | specified topic id
tagId = tagId_example # String | specified tag id
try:
- api_instance.remove_topic_tag(dialogueId, topicId, tagId)
+ api_instance.remove_channel_topic_tag(channelId, topicId, tagId)
except ApiException as e:
- print("Exception when calling ConversationApi->removeTopicTag: %s\n" % e)
+ print("Exception when calling ContentApi->removeChannelTopicTag: %s\n" % e)
@@ -33287,11 +29412,11 @@ except ApiException as e:
Name
Description
-
dialogueId*
+
channelId*
-
+
@@ -33299,7 +29424,7 @@ except ApiException as e:
- specified dialogue id
+ specified channel id
@@ -33313,7 +29438,7 @@ except ApiException as e:
-
+
@@ -33335,7 +29460,7 @@ except ApiException as e:
-
+
@@ -33368,7 +29493,7 @@ except ApiException as e:
-
Status: 401 - permission denied
+
Status: 401 - invalid password
@@ -33376,7 +29501,7 @@ except ApiException as e:
-
Status: 403 - inactive dialogue
+
Status: 404 - channel not found
@@ -33384,7 +29509,7 @@ except ApiException as e:
-
Status: 404 - tag, topic, or dialogue not found
+
Status: 410 - account disabled
@@ -33403,103 +29528,108 @@ except ApiException as e:
-
-
+
+
-
setDialogueActive
+
setChannelCard
-
Set active state of dialogue. If a dialogue is inactive any update to the topics will fail. Authorization is granted to an app token of the account holder.
+
Set card for write access to channel. Access granted to app tokens for account holder.
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
-var api = new DataBag.ConversationApi()
-var dialogueId = dialogueId_example; // {{String}} specified dialogue id
-var opts = {
- 'body': // {{Boolean}}
-};
+var api = new DataBag.ContentApi()
+var channelId = channelId_example; // {{String}} specified channel id
+var cardId = cardId_example; // {{String}} specified card id
+
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
- console.log('API called successfully.');
+ console.log('API called successfully. Returned data: ' + data);
}
};
-api.setDialogueActive(dialogueId, opts, callback);
+api.setChannelCard(channelId, cardId, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -33540,23 +29669,24 @@ using IO.Swagger.Model;
namespace Example
{
- public class setDialogueActiveExample
+ public class setChannelCardExample
{
public void main()
{
- var apiInstance = new ConversationApi();
- var dialogueId = dialogueId_example; // String | specified dialogue id
- var body = new Boolean(); // Boolean | (optional)
+ var apiInstance = new ContentApi();
+ var channelId = channelId_example; // String | specified channel id
+ var cardId = cardId_example; // String | specified card id
try
{
- apiInstance.setDialogueActive(dialogueId, body);
+ Channel result = apiInstance.setChannelCard(channelId, cardId);
+ Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ConversationApi.setDialogueActive: " + e.Message );
+ Debug.Print("Exception when calling ContentApi.setChannelCard: " + e.Message );
}
}
}
@@ -33564,42 +29694,44 @@ namespace Example
Set confirmed state of the channel. Until the confirmed state has been set to true, the channel will not be visible to contacts with which the channel is shared. Access granted to the app tokens of the acocunt holder.
from __future__ import print_statement
+import time
+import swagger_client
+from swagger_client.rest import ApiException
+from pprint import pprint
+
+
+# create an instance of the API class
+api_instance = swagger_client.ContentApi()
+channelId = channelId_example # String | specified channel id
+topicId = topicId_example # String | specified topic id
+body = # Boolean | (optional)
+
+try:
+ api_instance.set_channel_topic_confirmed(channelId, topicId, body=body)
+except ApiException as e:
+ print("Exception when calling ContentApi->setChannelTopicConfirmed: %s\n" % e)
+
+
+
+
Parameters
+
+
Path parameters
+
+
+
Name
+
Description
+
+
channelId*
+
+
+
+
+
+
+
+ String
+
+
+
+ specified channel id
+
+
+
+ Required
+
+
+
+
+
+
topicId*
+
+
+
+
+
+
+
+ String
+
+
+
+ specified topic id
@@ -33685,12 +30961,12 @@ except ApiException as e:
}
var view = new JSONSchemaView(schema,2,{isBodyParam: true});
- var result = $('#d2e199_setDialogueActive_body');
+ var result = $('#d2e199_setChannelTopicConfirmed_body');
result.empty();
result.append(view.render());
});
-
+
@@ -33714,7 +30990,15 @@ except ApiException as e:
-
Status: 404 - dialogue not found
+
Status: 404 - channel not found
+
+
+
+
+
+
+
+
Status: 410 - account disabled
@@ -33733,1381 +31017,104 @@ except ApiException as e:
-
-
+
+
-
setDialogueInsightStatus
+
setChannelTopicSubject
-
Set active status for contact on the host node. Access is granted to a contact token for an account with the specified contact
+
Set subject for channel. Access granted to app token of account holder.
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-
-# create an instance of the API class
-api_instance = swagger_client.ConversationApi()
-dialogueId = dialogueId_example # String | specified dialogue id
-body = # DialogueId_subject_body | (optional)
-
-try:
- api_instance.set_dialogue_subject(dialogueId, body=body)
-except ApiException as e:
- print("Exception when calling ConversationApi->setDialogueSubject: %s\n" % e)
-
-
-
-
Parameters
-
-
Path parameters
-
-
-
Name
-
Description
-
-
dialogueId*
-
-
-
-
-
-
-
- String
-
-
-
- specified dialogue id
-
-
-
- Required
-
-
-
-
-
-
-
-
-
Body parameters
-
-
-
Name
-
Description
-
-
body
-
-
-
-
-
-
-
-
-
-
-
-
Responses
-
Status: 201 - success
-
-
-
-
-
-
-
-
Status: 401 - permission denied
-
-
-
-
-
-
-
-
Status: 404 - dialogue not found
-
-
-
-
-
-
-
-
Status: 500 - internal server error
-
-
-
-
-
-
-
-
-
-
-
-
-
-
setInsightDialogue
-
-
-
-
-
-
Remove a specified insight. If the referenced dialogue is still active, the insight will get recreated with the next hook receiver update. Access granted to contact token of a connected card.
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-
-# create an instance of the API class
-api_instance = swagger_client.ConversationApi()
-dialogueId = dialogueId_example # String | insight id to update
-
-try:
- api_instance.set_insight_dialogue(dialogueId)
-except ApiException as e:
- print("Exception when calling ConversationApi->setInsightDialogue: %s\n" % e)
-
-
-
-
Parameters
-
-
Path parameters
-
-
-
Name
-
Description
-
-
dialogueId*
-
-
-
-
-
-
-
- String
-
-
-
- insight id to update
-
-
-
- Required
-
-
-
-
-
-
-
-
-
-
-
-
Responses
-
Status: 200 - success
-
-
-
-
-
-
-
-
Status: 401 - permission denied
-
-
-
-
-
-
-
-
Status: 404 - dialogue not found
-
-
-
-
-
-
-
-
Status: 500 - internal server error
-
-
-
-
-
-
-
-
-
-
-
-
-
-
setInsightStatus
-
-
-
-
-
-
Set the status of an insight. This will cause the hook receiver to return an inactive status. Access granted to app token of account holder.
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
-var api = new DataBag.ConversationApi()
-var dialogueId = dialogueId_example; // {{String}} specified dialogue id
+var api = new DataBag.ContentApi()
+var channelId = channelId_example; // {{String}} specified channel id
var topicId = topicId_example; // {{String}} specified topic id
var opts = {
- 'body': // {{TopicId_subject_body}}
+ 'body': // {{Subject}}
};
var callback = function(error, data, response) {
if (error) {
@@ -35136,14 +31143,14 @@ var callback = function(error, data, response) {
console.log('API called successfully.');
}
};
-api.setTopicSubject(dialogueIdtopicId, opts, callback);
+api.setChannelTopicSubject(channelIdtopicId, opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -35152,24 +31159,24 @@ using IO.Swagger.Model;
namespace Example
{
- public class setTopicSubjectExample
+ public class setChannelTopicSubjectExample
{
public void main()
{
- var apiInstance = new ConversationApi();
- var dialogueId = dialogueId_example; // String | specified dialogue id
+ var apiInstance = new ContentApi();
+ var channelId = channelId_example; // String | specified channel id
var topicId = topicId_example; // String | specified topic id
- var body = new TopicId_subject_body(); // TopicId_subject_body | (optional)
+ var body = new Subject(); // Subject | (optional)
try
{
- apiInstance.setTopicSubject(dialogueId, topicId, body);
+ apiInstance.setChannelTopicSubject(channelId, topicId, body);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ConversationApi.setTopicSubject: " + e.Message );
+ Debug.Print("Exception when calling ContentApi.setChannelTopicSubject: " + e.Message );
}
}
}
@@ -35177,44 +31184,44 @@ namespace Example
from __future__ import print_statement
-import time
-import swagger_client
-from swagger_client.rest import ApiException
-from pprint import pprint
-
-
-# create an instance of the API class
-api_instance = swagger_client.ShareApi()
-groupId = groupId_example # String | specified group id
-
-try:
- api_instance.remove_group(groupId)
-except ApiException as e:
- print("Exception when calling ShareApi->removeGroup: %s\n" % e)
-
-
-
-
Parameters
-
-
Path parameters
-
-
-
Name
-
Description
-
-
groupId*
-
-
-
-
-
-
-
- String
-
-
-
- specified group id
-
-
-
- Required
-
-
-
-
-
-
-
-
-
-
-
-
Responses
-
Status: 200 - success
-
-
-
-
-
-
-
Status: 401 - permission denied
@@ -37349,7 +33024,7 @@ except ApiException as e:
-
Status: 404 - group not found
+
Status: 410 - account disabled
@@ -37368,103 +33043,105 @@ except ApiException as e:
-
-
+
+
-
updateGroup
+
setProfileImage
-
Update group description for sharing. Access granted to app tokens of account holder.
+
Set base64 encode image data for profile. Access granted to app tokens of account holder.
var DataBag = require('data_bag');
var defaultClient = DataBag.ApiClient.instance;
-var api = new DataBag.ShareApi()
-var groupId = groupId_example; // {{String}} specified group id
+var api = new DataBag.ProfileApi()
var opts = {
- 'body': // {{Groups_groupId_body}}
+ 'body': // {{String}}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
- console.log('API called successfully.');
+ console.log('API called successfully. Returned data: ' + data);
}
};
-api.updateGroup(groupId, opts, callback);
+api.setProfileImage(opts, callback);
-
-
+
using System;
using System.Diagnostics;
using IO.Swagger.Api;
@@ -37505,23 +33181,23 @@ using IO.Swagger.Model;
namespace Example
{
- public class updateGroupExample
+ public class setProfileImageExample
{
public void main()
{
- var apiInstance = new ShareApi();
- var groupId = groupId_example; // String | specified group id
- var body = new Groups_groupId_body(); // Groups_groupId_body | (optional)
+ var apiInstance = new ProfileApi();
+ var body = new String(); // String | (optional)
try
{
- apiInstance.updateGroup(groupId, body);
+ Profile result = apiInstance.setProfileImage(body);
+ Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling ShareApi.updateGroup: " + e.Message );
+ Debug.Print("Exception when calling ProfileApi.setProfileImage: " + e.Message );
}
}
}
@@ -37529,42 +33205,42 @@ namespace Example
@@ -37679,7 +33366,15 @@ except ApiException as e:
-
Status: 404 - group not found
+
Status: 405 - invalid image
+
+
+
+
+
+
+
+
Status: 410 - account disabled
@@ -39395,7 +35090,7 @@ except ApiException as e:
"use strict";function YAMLException(t,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name="YAMLException",this.reason=t,this.mark=r,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"")}YAMLException.prototype=Object.create(Error.prototype),YAMLException.prototype.constructor=YAMLException,YAMLException.prototype.toString=function(t){var r=this.name+": ";return r+=this.reason||"(unknown reason)",!t&&this.mark&&(r+=" "+this.mark.toString()),r},module.exports=YAMLException;
},{}],43:[function(require,module,exports){
- "use strict";function is_EOL(e){return 10===e||13===e}function is_WHITE_SPACE(e){return 9===e||32===e}function is_WS_OR_EOL(e){return 9===e||32===e||10===e||13===e}function is_FLOW_INDICATOR(e){return 44===e||91===e||93===e||123===e||125===e}function fromHexCode(e){var t;return e>=48&&57>=e?e-48:(t=32|e,t>=97&&102>=t?t-97+10:-1)}function escapedHexLen(e){return 120===e?2:117===e?4:85===e?8:0}function fromDecimalCode(e){return e>=48&&57>=e?e-48:-1}function simpleEscapeSequence(e){return 48===e?"\x00":97===e?"":98===e?"\b":116===e?" ":9===e?" ":110===e?"\n":118===e?"\x0B":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?" ":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function charFromCodepoint(e){return 65535>=e?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function State(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||DEFAULT_FULL_SCHEMA,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function generateError(e,t){return new YAMLException(t,new Mark(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){e.onWarning&&e.onWarning.call(null,generateError(e,t))}function captureSegment(e,t,n,i){var o,r,a,s;if(n>t){if(s=e.input.slice(t,n),i)for(o=0,r=s.length;r>o;o+=1)a=s.charCodeAt(o),9===a||a>=32&&1114111>=a||throwError(e,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(s)&&throwError(e,"the stream contains non-printable characters");e.result+=s}}function mergeMappings(e,t,n,i){var o,r,a,s;for(common.isObject(n)||throwError(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(n),a=0,s=o.length;s>a;a+=1)r=o[a],_hasOwnProperty.call(t,r)||(t[r]=n[r],i[r]=!0)}function storeMappingPair(e,t,n,i,o,r){var a,s;if(o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(r))for(a=0,s=r.length;s>a;a+=1)mergeMappings(e,t,r[a],n);else mergeMappings(e,t,r,n);else e.json||_hasOwnProperty.call(n,o)||!_hasOwnProperty.call(t,o)||throwError(e,"duplicated mapping key"),t[o]=r,delete n[o];return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position),10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):throwError(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function skipSeparationSpace(e,t,n){for(var i=0,o=e.input.charCodeAt(e.position);0!==o;){for(;is_WHITE_SPACE(o);)o=e.input.charCodeAt(++e.position);if(t&&35===o)do o=e.input.charCodeAt(++e.position);while(10!==o&&13!==o&&0!==o);if(!is_EOL(o))break;for(readLineBreak(e),o=e.input.charCodeAt(e.position),i++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position)}return-1!==n&&0!==i&&e.lineIndent1&&(e.result+=common.repeat("\n",t-1))}function readPlainScalar(e,t,n){var i,o,r,a,s,p,c,l,u,d=e.kind,h=e.result;if(u=e.input.charCodeAt(e.position),is_WS_OR_EOL(u)||is_FLOW_INDICATOR(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(o=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o)))return!1;for(e.kind="scalar",e.result="",r=a=e.position,s=!1;0!==u;){if(58===u){if(o=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o))break}else if(35===u){if(i=e.input.charCodeAt(e.position-1),is_WS_OR_EOL(i))break}else{if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(u))break;if(is_EOL(u)){if(p=e.line,c=e.lineStart,l=e.lineIndent,skipSeparationSpace(e,!1,-1),e.lineIndent>=t){s=!0,u=e.input.charCodeAt(e.position);continue}e.position=a,e.line=p,e.lineStart=c,e.lineIndent=l;break}}s&&(captureSegment(e,r,a,!1),writeFoldedLines(e,e.line-p),r=a=e.position,s=!1),is_WHITE_SPACE(u)||(a=e.position+1),u=e.input.charCodeAt(++e.position)}return captureSegment(e,r,a,!1),e.result?!0:(e.kind=d,e.result=h,!1)}function readSingleQuotedScalar(e,t){var n,i,o;if(n=e.input.charCodeAt(e.position),39!==n)return!1;for(e.kind="scalar",e.result="",e.position++,i=o=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(captureSegment(e,i,e.position,!0),n=e.input.charCodeAt(++e.position),39!==n)return!0;i=o=e.position,e.position++}else is_EOL(n)?(captureSegment(e,i,o,!0),writeFoldedLines(e,skipSeparationSpace(e,!1,t)),i=o=e.position):e.position===e.lineStart&&testDocumentSeparator(e)?throwError(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var n,i,o,r,a,s;if(s=e.input.charCodeAt(e.position),34!==s)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return captureSegment(e,n,e.position,!0),e.position++,!0;if(92===s){if(captureSegment(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),is_EOL(s))skipSeparationSpace(e,!1,t);else if(256>s&&simpleEscapeCheck[s])e.result+=simpleEscapeMap[s],e.position++;else if((a=escapedHexLen(s))>0){for(o=a,r=0;o>0;o--)s=e.input.charCodeAt(++e.position),(a=fromHexCode(s))>=0?r=(r<<4)+a:throwError(e,"expected hexadecimal character");e.result+=charFromCodepoint(r),e.position++}else throwError(e,"unknown escape sequence");n=i=e.position}else is_EOL(s)?(captureSegment(e,n,i,!0),writeFoldedLines(e,skipSeparationSpace(e,!1,t)),n=i=e.position):e.position===e.lineStart&&testDocumentSeparator(e)?throwError(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var n,i,o,r,a,s,p,c,l,u,d,h=!0,f=e.tag,_=e.anchor,A={};if(d=e.input.charCodeAt(e.position),91===d)r=93,p=!1,i=[];else{if(123!==d)return!1;r=125,p=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),d=e.input.charCodeAt(++e.position);0!==d;){if(skipSeparationSpace(e,!0,t),d=e.input.charCodeAt(e.position),d===r)return e.position++,e.tag=f,e.anchor=_,e.kind=p?"mapping":"sequence",e.result=i,!0;h||throwError(e,"missed comma between flow collection entries"),l=c=u=null,a=s=!1,63===d&&(o=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(o)&&(a=s=!0,e.position++,skipSeparationSpace(e,!0,t))),n=e.line,composeNode(e,t,CONTEXT_FLOW_IN,!1,!0),l=e.tag,c=e.result,skipSeparationSpace(e,!0,t),d=e.input.charCodeAt(e.position),!s&&e.line!==n||58!==d||(a=!0,d=e.input.charCodeAt(++e.position),skipSeparationSpace(e,!0,t),composeNode(e,t,CONTEXT_FLOW_IN,!1,!0),u=e.result),p?storeMappingPair(e,i,A,l,c,u):a?i.push(storeMappingPair(e,null,A,l,c,u)):i.push(c),skipSeparationSpace(e,!0,t),d=e.input.charCodeAt(e.position),44===d?(h=!0,d=e.input.charCodeAt(++e.position)):h=!1}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var n,i,o,r,a=CHOMPING_CLIP,s=!1,p=!1,c=t,l=0,u=!1;if(r=e.input.charCodeAt(e.position),124===r)i=!1;else{if(62!==r)return!1;i=!0}for(e.kind="scalar",e.result="";0!==r;)if(r=e.input.charCodeAt(++e.position),43===r||45===r)CHOMPING_CLIP===a?a=43===r?CHOMPING_KEEP:CHOMPING_STRIP:throwError(e,"repeat of a chomping mode identifier");else{if(!((o=fromDecimalCode(r))>=0))break;0===o?throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?throwError(e,"repeat of an indentation width identifier"):(c=t+o-1,p=!0)}if(is_WHITE_SPACE(r)){do r=e.input.charCodeAt(++e.position);while(is_WHITE_SPACE(r));if(35===r)do r=e.input.charCodeAt(++e.position);while(!is_EOL(r)&&0!==r)}for(;0!==r;){for(readLineBreak(e),e.lineIndent=0,r=e.input.charCodeAt(e.position);(!p||e.lineIndentc&&(c=e.lineIndent),is_EOL(r))l++;else{if(e.lineIndentt)&&0!==o)throwError(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(composeNode(e,t,CONTEXT_BLOCK_OUT,!0,o)&&(f?d=e.result:h=e.result),f||(storeMappingPair(e,c,l,u,d,h),u=d=h=null),skipSeparationSpace(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)throwError(e,"bad indentation of a mapping entry");else if(e.lineIndentt?h=1:e.lineIndent===t?h=0:e.lineIndentt?h=1:e.lineIndent===t?h=0:e.lineIndentp;p+=1)if(l=e.implicitTypes[p],l.resolve(e.result)){e.result=l.construct(e.result),e.tag=l.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else _hasOwnProperty.call(e.typeMap,e.tag)?(l=e.typeMap[e.tag],null!==e.result&&l.kind!==e.kind&&throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+l.kind+'", not "'+e.kind+'"'),l.resolve(e.result)?(e.result=l.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):throwError(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||_}function readDocument(e){var t,n,i,o,r=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(o=e.input.charCodeAt(e.position))&&(skipSeparationSpace(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==o));){for(a=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!is_WS_OR_EOL(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&throwError(e,"directive name must not be less than one character in length");0!==o;){for(;is_WHITE_SPACE(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!is_EOL(o));break}if(is_EOL(o))break;for(t=e.position;0!==o&&!is_WS_OR_EOL(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==o&&readLineBreak(e),_hasOwnProperty.call(directiveHandlers,n)?directiveHandlers[n](e,n,i):throwWarning(e,'unknown document directive "'+n+'"')}return skipSeparationSpace(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,skipSeparationSpace(e,!0,-1)):a&&throwError(e,"directives end mark is expected"),composeNode(e,e.lineIndent-1,CONTEXT_BLOCK_OUT,!1,!0),skipSeparationSpace(e,!0,-1),e.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(e.input.slice(r,e.position))&&throwWarning(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&testDocumentSeparator(e)?void(46===e.input.charCodeAt(e.position)&&(e.position+=3,skipSeparationSpace(e,!0,-1))):void(e.positioni;i+=1)t(r[i])}function load(e,t){var n=loadDocuments(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new YAMLException("expected a single document in the stream, but found more")}}function safeLoadAll(e,t,n){loadAll(e,t,common.extend({schema:DEFAULT_SAFE_SCHEMA},n))}function safeLoad(e,t){return load(e,common.extend({schema:DEFAULT_SAFE_SCHEMA},t))}for(var common=require("./common"),YAMLException=require("./exception"),Mark=require("./mark"),DEFAULT_SAFE_SCHEMA=require("./schema/default_safe"),DEFAULT_FULL_SCHEMA=require("./schema/default_full"),_hasOwnProperty=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/,PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i,PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256),i=0;256>i;i++)simpleEscapeCheck[i]=simpleEscapeSequence(i)?1:0,simpleEscapeMap[i]=simpleEscapeSequence(i);var directiveHandlers={YAML:function(e,t,n){var i,o,r;null!==e.version&&throwError(e,"duplication of %YAML directive"),1!==n.length&&throwError(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),null===i&&throwError(e,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),r=parseInt(i[2],10),1!==o&&throwError(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=2>r,1!==r&&2!==r&&throwWarning(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,o;2!==n.length&&throwError(e,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],PATTERN_TAG_HANDLE.test(i)||throwError(e,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty.call(e.tagMap,i)&&throwError(e,'there is a previously declared suffix for "'+i+'" tag handle'),PATTERN_TAG_URI.test(o)||throwError(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[i]=o}};module.exports.loadAll=loadAll,module.exports.load=load,module.exports.safeLoadAll=safeLoadAll,module.exports.safeLoad=safeLoad;
+ "use strict";function is_EOL(e){return 10===e||13===e}function is_WHITE_SPACE(e){return 9===e||32===e}function is_WS_OR_EOL(e){return 9===e||32===e||10===e||13===e}function is_FLOW_INDICATOR(e){return 44===e||91===e||93===e||123===e||125===e}function fromHexCode(e){var t;return e>=48&&57>=e?e-48:(t=32|e,t>=97&&102>=t?t-97+10:-1)}function escapedHexLen(e){return 120===e?2:117===e?4:85===e?8:0}function fromDecimalCode(e){return e>=48&&57>=e?e-48:-1}function simpleEscapeSequence(e){return 48===e?"\x00":97===e?"":98===e?"\b":116===e?" ":9===e?" ":110===e?"\n":118===e?"\x0B":102===e?"\f":114===e?"\r":101===e?":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?" ":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function charFromCodepoint(e){return 65535>=e?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function State(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||DEFAULT_FULL_SCHEMA,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function generateError(e,t){return new YAMLException(t,new Mark(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){e.onWarning&&e.onWarning.call(null,generateError(e,t))}function captureSegment(e,t,n,i){var o,r,a,s;if(n>t){if(s=e.input.slice(t,n),i)for(o=0,r=s.length;r>o;o+=1)a=s.charCodeAt(o),9===a||a>=32&&1114111>=a||throwError(e,"expected valid JSON character");else PATTERN_NON_PRINTABLE.test(s)&&throwError(e,"the stream contains non-printable characters");e.result+=s}}function mergeMappings(e,t,n,i){var o,r,a,s;for(common.isObject(n)||throwError(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(n),a=0,s=o.length;s>a;a+=1)r=o[a],_hasOwnProperty.call(t,r)||(t[r]=n[r],i[r]=!0)}function storeMappingPair(e,t,n,i,o,r){var a,s;if(o=String(o),null===t&&(t={}),"tag:yaml.org,2002:merge"===i)if(Array.isArray(r))for(a=0,s=r.length;s>a;a+=1)mergeMappings(e,t,r[a],n);else mergeMappings(e,t,r,n);else e.json||_hasOwnProperty.call(n,o)||!_hasOwnProperty.call(t,o)||throwError(e,"duplicated mapping key"),t[o]=r,delete n[o];return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position),10===t?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):throwError(e,"a line break is expected"),e.line+=1,e.lineStart=e.position}function skipSeparationSpace(e,t,n){for(var i=0,o=e.input.charCodeAt(e.position);0!==o;){for(;is_WHITE_SPACE(o);)o=e.input.charCodeAt(++e.position);if(t&&35===o)do o=e.input.charCodeAt(++e.position);while(10!==o&&13!==o&&0!==o);if(!is_EOL(o))break;for(readLineBreak(e),o=e.input.charCodeAt(e.position),i++,e.lineIndent=0;32===o;)e.lineIndent++,o=e.input.charCodeAt(++e.position)}return-1!==n&&0!==i&&e.lineIndent1&&(e.result+=common.repeat("\n",t-1))}function readPlainScalar(e,t,n){var i,o,r,a,s,p,c,l,u,d=e.kind,h=e.result;if(u=e.input.charCodeAt(e.position),is_WS_OR_EOL(u)||is_FLOW_INDICATOR(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(o=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o)))return!1;for(e.kind="scalar",e.result="",r=a=e.position,s=!1;0!==u;){if(58===u){if(o=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(o)||n&&is_FLOW_INDICATOR(o))break}else if(35===u){if(i=e.input.charCodeAt(e.position-1),is_WS_OR_EOL(i))break}else{if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(u))break;if(is_EOL(u)){if(p=e.line,c=e.lineStart,l=e.lineIndent,skipSeparationSpace(e,!1,-1),e.lineIndent>=t){s=!0,u=e.input.charCodeAt(e.position);continue}e.position=a,e.line=p,e.lineStart=c,e.lineIndent=l;break}}s&&(captureSegment(e,r,a,!1),writeFoldedLines(e,e.line-p),r=a=e.position,s=!1),is_WHITE_SPACE(u)||(a=e.position+1),u=e.input.charCodeAt(++e.position)}return captureSegment(e,r,a,!1),e.result?!0:(e.kind=d,e.result=h,!1)}function readSingleQuotedScalar(e,t){var n,i,o;if(n=e.input.charCodeAt(e.position),39!==n)return!1;for(e.kind="scalar",e.result="",e.position++,i=o=e.position;0!==(n=e.input.charCodeAt(e.position));)if(39===n){if(captureSegment(e,i,e.position,!0),n=e.input.charCodeAt(++e.position),39!==n)return!0;i=o=e.position,e.position++}else is_EOL(n)?(captureSegment(e,i,o,!0),writeFoldedLines(e,skipSeparationSpace(e,!1,t)),i=o=e.position):e.position===e.lineStart&&testDocumentSeparator(e)?throwError(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var n,i,o,r,a,s;if(s=e.input.charCodeAt(e.position),34!==s)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;0!==(s=e.input.charCodeAt(e.position));){if(34===s)return captureSegment(e,n,e.position,!0),e.position++,!0;if(92===s){if(captureSegment(e,n,e.position,!0),s=e.input.charCodeAt(++e.position),is_EOL(s))skipSeparationSpace(e,!1,t);else if(256>s&&simpleEscapeCheck[s])e.result+=simpleEscapeMap[s],e.position++;else if((a=escapedHexLen(s))>0){for(o=a,r=0;o>0;o--)s=e.input.charCodeAt(++e.position),(a=fromHexCode(s))>=0?r=(r<<4)+a:throwError(e,"expected hexadecimal character");e.result+=charFromCodepoint(r),e.position++}else throwError(e,"unknown escape sequence");n=i=e.position}else is_EOL(s)?(captureSegment(e,n,i,!0),writeFoldedLines(e,skipSeparationSpace(e,!1,t)),n=i=e.position):e.position===e.lineStart&&testDocumentSeparator(e)?throwError(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var n,i,o,r,a,s,p,c,l,u,d,h=!0,f=e.tag,_=e.anchor,A={};if(d=e.input.charCodeAt(e.position),91===d)r=93,p=!1,i=[];else{if(123!==d)return!1;r=125,p=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),d=e.input.charCodeAt(++e.position);0!==d;){if(skipSeparationSpace(e,!0,t),d=e.input.charCodeAt(e.position),d===r)return e.position++,e.tag=f,e.anchor=_,e.kind=p?"mapping":"sequence",e.result=i,!0;h||throwError(e,"missed comma between flow collection entries"),l=c=u=null,a=s=!1,63===d&&(o=e.input.charCodeAt(e.position+1),is_WS_OR_EOL(o)&&(a=s=!0,e.position++,skipSeparationSpace(e,!0,t))),n=e.line,composeNode(e,t,CONTEXT_FLOW_IN,!1,!0),l=e.tag,c=e.result,skipSeparationSpace(e,!0,t),d=e.input.charCodeAt(e.position),!s&&e.line!==n||58!==d||(a=!0,d=e.input.charCodeAt(++e.position),skipSeparationSpace(e,!0,t),composeNode(e,t,CONTEXT_FLOW_IN,!1,!0),u=e.result),p?storeMappingPair(e,i,A,l,c,u):a?i.push(storeMappingPair(e,null,A,l,c,u)):i.push(c),skipSeparationSpace(e,!0,t),d=e.input.charCodeAt(e.position),44===d?(h=!0,d=e.input.charCodeAt(++e.position)):h=!1}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var n,i,o,r,a=CHOMPING_CLIP,s=!1,p=!1,c=t,l=0,u=!1;if(r=e.input.charCodeAt(e.position),124===r)i=!1;else{if(62!==r)return!1;i=!0}for(e.kind="scalar",e.result="";0!==r;)if(r=e.input.charCodeAt(++e.position),43===r||45===r)CHOMPING_CLIP===a?a=43===r?CHOMPING_KEEP:CHOMPING_STRIP:throwError(e,"repeat of a chomping mode identifier");else{if(!((o=fromDecimalCode(r))>=0))break;0===o?throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?throwError(e,"repeat of an indentation width identifier"):(c=t+o-1,p=!0)}if(is_WHITE_SPACE(r)){do r=e.input.charCodeAt(++e.position);while(is_WHITE_SPACE(r));if(35===r)do r=e.input.charCodeAt(++e.position);while(!is_EOL(r)&&0!==r)}for(;0!==r;){for(readLineBreak(e),e.lineIndent=0,r=e.input.charCodeAt(e.position);(!p||e.lineIndentc&&(c=e.lineIndent),is_EOL(r))l++;else{if(e.lineIndentt)&&0!==o)throwError(e,"bad indentation of a sequence entry");else if(e.lineIndentt)&&(composeNode(e,t,CONTEXT_BLOCK_OUT,!0,o)&&(f?d=e.result:h=e.result),f||(storeMappingPair(e,c,l,u,d,h),u=d=h=null),skipSeparationSpace(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)throwError(e,"bad indentation of a mapping entry");else if(e.lineIndentt?h=1:e.lineIndent===t?h=0:e.lineIndentt?h=1:e.lineIndent===t?h=0:e.lineIndentp;p+=1)if(l=e.implicitTypes[p],l.resolve(e.result)){e.result=l.construct(e.result),e.tag=l.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else _hasOwnProperty.call(e.typeMap,e.tag)?(l=e.typeMap[e.tag],null!==e.result&&l.kind!==e.kind&&throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+l.kind+'", not "'+e.kind+'"'),l.resolve(e.result)?(e.result=l.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):throwError(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||_}function readDocument(e){var t,n,i,o,r=e.position,a=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(o=e.input.charCodeAt(e.position))&&(skipSeparationSpace(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==o));){for(a=!0,o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!is_WS_OR_EOL(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(t,e.position),i=[],n.length<1&&throwError(e,"directive name must not be less than one character in length");0!==o;){for(;is_WHITE_SPACE(o);)o=e.input.charCodeAt(++e.position);if(35===o){do o=e.input.charCodeAt(++e.position);while(0!==o&&!is_EOL(o));break}if(is_EOL(o))break;for(t=e.position;0!==o&&!is_WS_OR_EOL(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(t,e.position))}0!==o&&readLineBreak(e),_hasOwnProperty.call(directiveHandlers,n)?directiveHandlers[n](e,n,i):throwWarning(e,'unknown document directive "'+n+'"')}return skipSeparationSpace(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,skipSeparationSpace(e,!0,-1)):a&&throwError(e,"directives end mark is expected"),composeNode(e,e.lineIndent-1,CONTEXT_BLOCK_OUT,!1,!0),skipSeparationSpace(e,!0,-1),e.checkLineBreaks&&PATTERN_NON_ASCII_LINE_BREAKS.test(e.input.slice(r,e.position))&&throwWarning(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&testDocumentSeparator(e)?void(46===e.input.charCodeAt(e.position)&&(e.position+=3,skipSeparationSpace(e,!0,-1))):void(e.positioni;i+=1)t(r[i])}function load(e,t){var n=loadDocuments(e,t);if(0!==n.length){if(1===n.length)return n[0];throw new YAMLException("expected a single document in the stream, but found more")}}function safeLoadAll(e,t,n){loadAll(e,t,common.extend({schema:DEFAULT_SAFE_SCHEMA},n))}function safeLoad(e,t){return load(e,common.extend({schema:DEFAULT_SAFE_SCHEMA},t))}for(var common=require("./common"),YAMLException=require("./exception"),Mark=require("./mark"),DEFAULT_SAFE_SCHEMA=require("./schema/default_safe"),DEFAULT_FULL_SCHEMA=require("./schema/default_full"),_hasOwnProperty=Object.prototype.hasOwnProperty,CONTEXT_FLOW_IN=1,CONTEXT_FLOW_OUT=2,CONTEXT_BLOCK_IN=3,CONTEXT_BLOCK_OUT=4,CHOMPING_CLIP=1,CHOMPING_STRIP=2,CHOMPING_KEEP=3,PATTERN_NON_PRINTABLE=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,PATTERN_NON_ASCII_LINE_BREAKS=/[\x85\u2028\u2029]/,PATTERN_FLOW_INDICATORS=/[,\[\]\{\}]/,PATTERN_TAG_HANDLE=/^(?:!|!!|![a-z\-]+!)$/i,PATTERN_TAG_URI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,simpleEscapeCheck=new Array(256),simpleEscapeMap=new Array(256),i=0;256>i;i++)simpleEscapeCheck[i]=simpleEscapeSequence(i)?1:0,simpleEscapeMap[i]=simpleEscapeSequence(i);var directiveHandlers={YAML:function(e,t,n){var i,o,r;null!==e.version&&throwError(e,"duplication of %YAML directive"),1!==n.length&&throwError(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),null===i&&throwError(e,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),r=parseInt(i[2],10),1!==o&&throwError(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=2>r,1!==r&&2!==r&&throwWarning(e,"unsupported YAML version of the document")},TAG:function(e,t,n){var i,o;2!==n.length&&throwError(e,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],PATTERN_TAG_HANDLE.test(i)||throwError(e,"ill-formed tag handle (first argument) of the TAG directive"),_hasOwnProperty.call(e.tagMap,i)&&throwError(e,'there is a previously declared suffix for "'+i+'" tag handle'),PATTERN_TAG_URI.test(o)||throwError(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[i]=o}};module.exports.loadAll=loadAll,module.exports.load=load,module.exports.safeLoadAll=safeLoadAll,module.exports.safeLoad=safeLoad;
},{"./common":40,"./exception":42,"./mark":44,"./schema/default_full":47,"./schema/default_safe":48}],44:[function(require,module,exports){
"use strict";function Mark(t,i,n,e,r){this.name=t,this.buffer=i,this.position=n,this.line=e,this.column=r}var common=require("./common");Mark.prototype.getSnippet=function(t,i){var n,e,r,o,s;if(!this.buffer)return null;for(t=t||4,i=i||75,n="",e=this.position;e>0&&-1==="\x00\r\n \u2028\u2029".indexOf(this.buffer.charAt(e-1));)if(e-=1,this.position-e>i/2-1){n=" ... ",e+=5;break}for(r="",o=this.position;oi/2-1){r=" ... ",o-=5;break}return s=this.buffer.slice(e,o),common.repeat(" ",t)+n+s+r+"\n"+common.repeat(" ",t+this.position-e+n.length)+"^"},Mark.prototype.toString=function(t){var i,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(i=this.getSnippet(),i&&(n+=":\n"+i)),n},module.exports=Mark;
@@ -39592,7 +35287,7 @@ except ApiException as e:
},{}],97:[function(require,module,exports){
(function (process,global){
- function inspect(e,r){var t={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),isBoolean(r)?t.showHidden=r:r&&exports._extend(t,r),isUndefined(t.showHidden)&&(t.showHidden=!1),isUndefined(t.depth)&&(t.depth=2),isUndefined(t.colors)&&(t.colors=!1),isUndefined(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=stylizeWithColor),formatValue(t,e,t.depth)}function stylizeWithColor(e,r){var t=inspect.styles[r];return t?"["+inspect.colors[t][0]+"m"+e+"["+inspect.colors[t][1]+"m":e}function stylizeNoColor(e,r){return e}function arrayToHash(e){var r={};return e.forEach(function(e,t){r[e]=!0}),r}function formatValue(e,r,t){if(e.customInspect&&r&&isFunction(r.inspect)&&r.inspect!==exports.inspect&&(!r.constructor||r.constructor.prototype!==r)){var n=r.inspect(t,e);return isString(n)||(n=formatValue(e,n,t)),n}var i=formatPrimitive(e,r);if(i)return i;var o=Object.keys(r),s=arrayToHash(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),isError(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return formatError(r);if(0===o.length){if(isFunction(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(isRegExp(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(isDate(r))return e.stylize(Date.prototype.toString.call(r),"date");if(isError(r))return formatError(r)}var c="",a=!1,l=["{","}"];if(isArray(r)&&(a=!0,l=["[","]"]),isFunction(r)){var p=r.name?": "+r.name:"";c=" [Function"+p+"]"}if(isRegExp(r)&&(c=" "+RegExp.prototype.toString.call(r)),isDate(r)&&(c=" "+Date.prototype.toUTCString.call(r)),isError(r)&&(c=" "+formatError(r)),0===o.length&&(!a||0==r.length))return l[0]+c+l[1];if(0>t)return isRegExp(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var f;return f=a?formatArray(e,r,t,s,o):o.map(function(n){return formatProperty(e,r,t,s,n,a)}),e.seen.pop(),reduceToSingleString(f,c,l)}function formatPrimitive(e,r){if(isUndefined(r))return e.stylize("undefined","undefined");if(isString(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}return isNumber(r)?e.stylize(""+r,"number"):isBoolean(r)?e.stylize(""+r,"boolean"):isNull(r)?e.stylize("null","null"):void 0}function formatError(e){return"["+Error.prototype.toString.call(e)+"]"}function formatArray(e,r,t,n,i){for(var o=[],s=0,u=r.length;u>s;++s)hasOwnProperty(r,String(s))?o.push(formatProperty(e,r,t,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(formatProperty(e,r,t,n,i,!0))}),o}function formatProperty(e,r,t,n,i,o){var s,u,c;if(c=Object.getOwnPropertyDescriptor(r,i)||{value:r[i]},c.get?u=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(u=e.stylize("[Setter]","special")),hasOwnProperty(n,i)||(s="["+i+"]"),u||(e.seen.indexOf(c.value)<0?(u=isNull(t)?formatValue(e,c.value,null):formatValue(e,c.value,t-1),u.indexOf("\n")>-1&&(u=o?u.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return" "+e}).join("\n"))):u=e.stylize("[Circular]","special")),isUndefined(s)){if(o&&i.match(/^\d+$/))return u;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+u}function reduceToSingleString(e,r,t){var n=0,i=e.reduce(function(e,r){return n++,r.indexOf("\n")>=0&&n++,e+r.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?t[0]+(""===r?"":r+"\n ")+" "+e.join(",\n ")+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}function isArray(e){return Array.isArray(e)}function isBoolean(e){return"boolean"==typeof e}function isNull(e){return null===e}function isNullOrUndefined(e){return null==e}function isNumber(e){return"number"==typeof e}function isString(e){return"string"==typeof e}function isSymbol(e){return"symbol"==typeof e}function isUndefined(e){return void 0===e}function isRegExp(e){return isObject(e)&&"[object RegExp]"===objectToString(e)}function isObject(e){return"object"==typeof e&&null!==e}function isDate(e){return isObject(e)&&"[object Date]"===objectToString(e)}function isError(e){return isObject(e)&&("[object Error]"===objectToString(e)||e instanceof Error)}function isFunction(e){return"function"==typeof e}function isPrimitive(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function objectToString(e){return Object.prototype.toString.call(e)}function pad(e){return 10>e?"0"+e.toString(10):e.toString(10)}function timestamp(){var e=new Date,r=[pad(e.getHours()),pad(e.getMinutes()),pad(e.getSeconds())].join(":");return[e.getDate(),months[e.getMonth()],r].join(" ")}function hasOwnProperty(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var formatRegExp=/%[sdj%]/g;exports.format=function(e){if(!isString(e)){for(var r=[],t=0;t=i)return e;switch(e){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch(r){return"[Circular]"}default:return e}}),s=n[t];i>t;s=n[++t])o+=isNull(s)||!isObject(s)?" "+s:" "+inspect(s);return o},exports.deprecate=function(e,r){function t(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}if(isUndefined(global.process))return function(){return exports.deprecate(e,r).apply(this,arguments)};if(process.noDeprecation===!0)return e;var n=!1;return t};var debugs={},debugEnviron;exports.debuglog=function(e){if(isUndefined(debugEnviron)&&(debugEnviron=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!debugs[e])if(new RegExp("\\b"+e+"\\b","i").test(debugEnviron)){var r=process.pid;debugs[e]=function(){var t=exports.format.apply(exports,arguments);console.error("%s %d: %s",e,r,t)}}else debugs[e]=function(){};return debugs[e]},exports.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isNull=isNull,exports.isNullOrUndefined=isNullOrUndefined,exports.isNumber=isNumber,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isRegExp=isRegExp,exports.isObject=isObject,exports.isDate=isDate,exports.isError=isError,exports.isFunction=isFunction,exports.isPrimitive=isPrimitive,exports.isBuffer=require("./support/isBuffer");var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))},exports.inherits=require("inherits"),exports._extend=function(e,r){if(!r||!isObject(r))return e;for(var t=Object.keys(r),n=t.length;n--;)e[t[n]]=r[t[n]];return e};
+ function inspect(e,r){var t={seen:[],stylize:stylizeNoColor};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),isBoolean(r)?t.showHidden=r:r&&exports._extend(t,r),isUndefined(t.showHidden)&&(t.showHidden=!1),isUndefined(t.depth)&&(t.depth=2),isUndefined(t.colors)&&(t.colors=!1),isUndefined(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=stylizeWithColor),formatValue(t,e,t.depth)}function stylizeWithColor(e,r){var t=inspect.styles[r];return t?"nspect.colors[t][0]+"m"+e+"nspect.colors[t][1]+"m":e}function stylizeNoColor(e,r){return e}function arrayToHash(e){var r={};return e.forEach(function(e,t){r[e]=!0}),r}function formatValue(e,r,t){if(e.customInspect&&r&&isFunction(r.inspect)&&r.inspect!==exports.inspect&&(!r.constructor||r.constructor.prototype!==r)){var n=r.inspect(t,e);return isString(n)||(n=formatValue(e,n,t)),n}var i=formatPrimitive(e,r);if(i)return i;var o=Object.keys(r),s=arrayToHash(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(r)),isError(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return formatError(r);if(0===o.length){if(isFunction(r)){var u=r.name?": "+r.name:"";return e.stylize("[Function"+u+"]","special")}if(isRegExp(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(isDate(r))return e.stylize(Date.prototype.toString.call(r),"date");if(isError(r))return formatError(r)}var c="",a=!1,l=["{","}"];if(isArray(r)&&(a=!0,l=["[","]"]),isFunction(r)){var p=r.name?": "+r.name:"";c=" [Function"+p+"]"}if(isRegExp(r)&&(c=" "+RegExp.prototype.toString.call(r)),isDate(r)&&(c=" "+Date.prototype.toUTCString.call(r)),isError(r)&&(c=" "+formatError(r)),0===o.length&&(!a||0==r.length))return l[0]+c+l[1];if(0>t)return isRegExp(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var f;return f=a?formatArray(e,r,t,s,o):o.map(function(n){return formatProperty(e,r,t,s,n,a)}),e.seen.pop(),reduceToSingleString(f,c,l)}function formatPrimitive(e,r){if(isUndefined(r))return e.stylize("undefined","undefined");if(isString(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}return isNumber(r)?e.stylize(""+r,"number"):isBoolean(r)?e.stylize(""+r,"boolean"):isNull(r)?e.stylize("null","null"):void 0}function formatError(e){return"["+Error.prototype.toString.call(e)+"]"}function formatArray(e,r,t,n,i){for(var o=[],s=0,u=r.length;u>s;++s)hasOwnProperty(r,String(s))?o.push(formatProperty(e,r,t,n,String(s),!0)):o.push("");return i.forEach(function(i){i.match(/^\d+$/)||o.push(formatProperty(e,r,t,n,i,!0))}),o}function formatProperty(e,r,t,n,i,o){var s,u,c;if(c=Object.getOwnPropertyDescriptor(r,i)||{value:r[i]},c.get?u=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(u=e.stylize("[Setter]","special")),hasOwnProperty(n,i)||(s="["+i+"]"),u||(e.seen.indexOf(c.value)<0?(u=isNull(t)?formatValue(e,c.value,null):formatValue(e,c.value,t-1),u.indexOf("\n")>-1&&(u=o?u.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return" "+e}).join("\n"))):u=e.stylize("[Circular]","special")),isUndefined(s)){if(o&&i.match(/^\d+$/))return u;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+u}function reduceToSingleString(e,r,t){var n=0,i=e.reduce(function(e,r){return n++,r.indexOf("\n")>=0&&n++,e+r.replace(/\u001b\[\d\d?m/g,"").length+1},0);return i>60?t[0]+(""===r?"":r+"\n ")+" "+e.join(",\n ")+" "+t[1]:t[0]+r+" "+e.join(", ")+" "+t[1]}function isArray(e){return Array.isArray(e)}function isBoolean(e){return"boolean"==typeof e}function isNull(e){return null===e}function isNullOrUndefined(e){return null==e}function isNumber(e){return"number"==typeof e}function isString(e){return"string"==typeof e}function isSymbol(e){return"symbol"==typeof e}function isUndefined(e){return void 0===e}function isRegExp(e){return isObject(e)&&"[object RegExp]"===objectToString(e)}function isObject(e){return"object"==typeof e&&null!==e}function isDate(e){return isObject(e)&&"[object Date]"===objectToString(e)}function isError(e){return isObject(e)&&("[object Error]"===objectToString(e)||e instanceof Error)}function isFunction(e){return"function"==typeof e}function isPrimitive(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||"undefined"==typeof e}function objectToString(e){return Object.prototype.toString.call(e)}function pad(e){return 10>e?"0"+e.toString(10):e.toString(10)}function timestamp(){var e=new Date,r=[pad(e.getHours()),pad(e.getMinutes()),pad(e.getSeconds())].join(":");return[e.getDate(),months[e.getMonth()],r].join(" ")}function hasOwnProperty(e,r){return Object.prototype.hasOwnProperty.call(e,r)}var formatRegExp=/%[sdj%]/g;exports.format=function(e){if(!isString(e)){for(var r=[],t=0;t=i)return e;switch(e){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch(r){return"[Circular]"}default:return e}}),s=n[t];i>t;s=n[++t])o+=isNull(s)||!isObject(s)?" "+s:" "+inspect(s);return o},exports.deprecate=function(e,r){function t(){if(!n){if(process.throwDeprecation)throw new Error(r);process.traceDeprecation?console.trace(r):console.error(r),n=!0}return e.apply(this,arguments)}if(isUndefined(global.process))return function(){return exports.deprecate(e,r).apply(this,arguments)};if(process.noDeprecation===!0)return e;var n=!1;return t};var debugs={},debugEnviron;exports.debuglog=function(e){if(isUndefined(debugEnviron)&&(debugEnviron=process.env.NODE_DEBUG||""),e=e.toUpperCase(),!debugs[e])if(new RegExp("\\b"+e+"\\b","i").test(debugEnviron)){var r=process.pid;debugs[e]=function(){var t=exports.format.apply(exports,arguments);console.error("%s %d: %s",e,r,t)}}else debugs[e]=function(){};return debugs[e]},exports.inspect=inspect,inspect.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},inspect.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"},exports.isArray=isArray,exports.isBoolean=isBoolean,exports.isNull=isNull,exports.isNullOrUndefined=isNullOrUndefined,exports.isNumber=isNumber,exports.isString=isString,exports.isSymbol=isSymbol,exports.isUndefined=isUndefined,exports.isRegExp=isRegExp,exports.isObject=isObject,exports.isDate=isDate,exports.isError=isError,exports.isFunction=isFunction,exports.isPrimitive=isPrimitive,exports.isBuffer=require("./support/isBuffer");var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];exports.log=function(){console.log("%s - %s",timestamp(),exports.format.apply(exports,arguments))},exports.inherits=require("inherits"),exports._extend=function(e,r){if(!r||!isObject(r))return e;for(var t=Object.keys(r),n=t.length;n--;)e[t[n]]=r[t[n]];return e};
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})