Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
49 changes: 28 additions & 21 deletions codegen/Automation/Actions/Api/DefinitionsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,10 @@ public function archiveRequest($app_id, $definition_id, string $contentType = se
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down Expand Up @@ -672,9 +673,10 @@ public function automationV4ActionsAppIdDefinitionIdRequiresObjectRequest($app_i
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down Expand Up @@ -941,9 +943,10 @@ public function automationV4ActionsAppIdDefinitionIdRequiresObject_0Request($app
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down Expand Up @@ -1246,9 +1249,10 @@ public function createRequest($app_id, $public_action_definition_egg, string $co
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down Expand Up @@ -1567,9 +1571,10 @@ public function getByIdRequest($app_id, $definition_id, $archived = false, strin
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down Expand Up @@ -1898,9 +1903,10 @@ public function getPageRequest($app_id, $after = null, $archived = false, $limit
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down Expand Up @@ -2223,9 +2229,10 @@ public function updateRequest($app_id, $definition_id, $public_action_definition
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down
49 changes: 28 additions & 21 deletions codegen/Automation/Actions/Api/FunctionsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,9 +406,10 @@ public function archiveRequest($app_id, $definition_id, $function_id, $function_
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down Expand Up @@ -676,9 +677,10 @@ public function archiveByFunctionTypeRequest($app_id, $definition_id, $function_
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down Expand Up @@ -1041,9 +1043,10 @@ public function createOrReplaceRequest($app_id, $definition_id, $function_id, $f
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down Expand Up @@ -1386,9 +1389,10 @@ public function createOrReplaceByFunctionTypeRequest($app_id, $definition_id, $f
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down Expand Up @@ -1712,9 +1716,10 @@ public function getByFunctionTypeRequest($app_id, $definition_id, $function_type
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down Expand Up @@ -2058,9 +2063,10 @@ public function getByIdRequest($app_id, $definition_id, $function_id, $function_
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down Expand Up @@ -2364,9 +2370,10 @@ public function getPageRequest($app_id, $definition_id, string $contentType = se
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down
14 changes: 8 additions & 6 deletions codegen/Automation/Actions/Api/RevisionsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,10 @@ public function getByIdRequest($app_id, $definition_id, $revision_id, string $co
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down Expand Up @@ -763,9 +764,10 @@ public function getPageRequest($app_id, $definition_id, $after = null, $limit =
}
}

// this endpoint requires OAuth (access token)
if (!empty($this->config->getAccessToken())) {
$headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('hapikey');
if ($apiKey !== null) {
$queryParams['hapikey'] = $apiKey;
}

$defaultHeaders = [];
Expand Down
70 changes: 70 additions & 0 deletions codegen/Automation/Actions/Model/ChirpAiContextObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class ChirpAiContextObject implements ModelInterface, ArrayAccess, \JsonSerializ
'is_private' => 'bool',
'metadata' => 'array<string,string>',
'otel_context_holder' => 'array<string,string>',
'sensitivity' => 'string',
'trajectory_id' => 'string',
'unstructured_sources' => 'string[]'
];
Expand All @@ -87,6 +88,7 @@ class ChirpAiContextObject implements ModelInterface, ArrayAccess, \JsonSerializ
'is_private' => null,
'metadata' => null,
'otel_context_holder' => null,
'sensitivity' => null,
'trajectory_id' => 'uuid',
'unstructured_sources' => null
];
Expand All @@ -106,6 +108,7 @@ class ChirpAiContextObject implements ModelInterface, ArrayAccess, \JsonSerializ
'is_private' => false,
'metadata' => false,
'otel_context_holder' => false,
'sensitivity' => false,
'trajectory_id' => false,
'unstructured_sources' => false
];
Expand Down Expand Up @@ -205,6 +208,7 @@ public function isNullableSetToNull(string $property): bool
'is_private' => 'isPrivate',
'metadata' => 'metadata',
'otel_context_holder' => 'otelContextHolder',
'sensitivity' => 'sensitivity',
'trajectory_id' => 'trajectoryId',
'unstructured_sources' => 'unstructuredSources'
];
Expand All @@ -224,6 +228,7 @@ public function isNullableSetToNull(string $property): bool
'is_private' => 'setIsPrivate',
'metadata' => 'setMetadata',
'otel_context_holder' => 'setOtelContextHolder',
'sensitivity' => 'setSensitivity',
'trajectory_id' => 'setTrajectoryId',
'unstructured_sources' => 'setUnstructuredSources'
];
Expand All @@ -243,6 +248,7 @@ public function isNullableSetToNull(string $property): bool
'is_private' => 'getIsPrivate',
'metadata' => 'getMetadata',
'otel_context_holder' => 'getOtelContextHolder',
'sensitivity' => 'getSensitivity',
'trajectory_id' => 'getTrajectoryId',
'unstructured_sources' => 'getUnstructuredSources'
];
Expand Down Expand Up @@ -288,6 +294,9 @@ public function getModelName()
return self::$openAPIModelName;
}

public const SENSITIVITY_HIPAA = 'HIPAA';
public const SENSITIVITY_NOT_SENSITIVE = 'NOT_SENSITIVE';
public const SENSITIVITY_SENSITIVE = 'SENSITIVE';
public const UNSTRUCTURED_SOURCES_NONE = 'NONE';
public const UNSTRUCTURED_SOURCES_USER_INPUT = 'USER_INPUT';
public const UNSTRUCTURED_SOURCES_LOGGED_EMAIL = 'LOGGED_EMAIL';
Expand All @@ -310,6 +319,20 @@ public function getModelName()
public const UNSTRUCTURED_SOURCES_NOTE = 'NOTE';
public const UNSTRUCTURED_SOURCES_DERIVED = 'DERIVED';

/**
* Gets allowable values of the enum
*
* @return string[]
*/
public function getSensitivityAllowableValues()
{
return [
self::SENSITIVITY_HIPAA,
self::SENSITIVITY_NOT_SENSITIVE,
self::SENSITIVITY_SENSITIVE,
];
}

/**
* Gets allowable values of the enum
*
Expand Down Expand Up @@ -366,6 +389,7 @@ public function __construct(?array $data = null)
$this->setIfExists('is_private', $data ?? [], null);
$this->setIfExists('metadata', $data ?? [], null);
$this->setIfExists('otel_context_holder', $data ?? [], null);
$this->setIfExists('sensitivity', $data ?? [], null);
$this->setIfExists('trajectory_id', $data ?? [], null);
$this->setIfExists('unstructured_sources', $data ?? [], null);
}
Expand Down Expand Up @@ -412,6 +436,15 @@ public function listInvalidProperties()
if ($this->container['otel_context_holder'] === null) {
$invalidProperties[] = "'otel_context_holder' can't be null";
}
$allowedValues = $this->getSensitivityAllowableValues();
if (!is_null($this->container['sensitivity']) && !in_array($this->container['sensitivity'], $allowedValues, true)) {
$invalidProperties[] = sprintf(
"invalid value '%s' for 'sensitivity', must be one of '%s'",
$this->container['sensitivity'],
implode("', '", $allowedValues)
);
}

if ($this->container['unstructured_sources'] === null) {
$invalidProperties[] = "'unstructured_sources' can't be null";
}
Expand Down Expand Up @@ -673,6 +706,43 @@ public function setOtelContextHolder($otel_context_holder)
return $this;
}

/**
* Gets sensitivity
*
* @return string|null
*/
public function getSensitivity()
{
return $this->container['sensitivity'];
}

/**
* Sets sensitivity
*
* @param string|null $sensitivity sensitivity
*
* @return self
*/
public function setSensitivity($sensitivity)
{
if (is_null($sensitivity)) {
throw new \InvalidArgumentException('non-nullable sensitivity cannot be null');
}
$allowedValues = $this->getSensitivityAllowableValues();
if (!in_array($sensitivity, $allowedValues, true)) {
throw new \InvalidArgumentException(
sprintf(
"Invalid value '%s' for 'sensitivity', must be one of '%s'",
$sensitivity,
implode("', '", $allowedValues)
)
);
}
$this->container['sensitivity'] = $sensitivity;

return $this;
}

/**
* Gets trajectory_id
*
Expand Down
Loading
Loading