Describe the bug
When calling the https://intelligence.twilio.com/v2/Transcripts API using the C# SDK the OperatorType enums are returning values in kebab-case formatting, e.g. conversation-classify where the SDK is defining the enum as snake_case, e.g. conversation_classify and as a result you cannot filter them correctly.
Code snippet from the SDK:
public static readonly OperatorTypeEnum ConversationClassify = new OperatorTypeEnum("conversation_classify");
public static readonly OperatorTypeEnum UtteranceClassify = new OperatorTypeEnum("utterance_classify");
public static readonly OperatorTypeEnum Extract = new OperatorTypeEnum("extract");
public static readonly OperatorTypeEnum ExtractNormalize = new OperatorTypeEnum("extract_normalize");
public static readonly OperatorTypeEnum PiiExtract = new OperatorTypeEnum("pii_extract");
public static readonly OperatorTypeEnum TextGeneration = new OperatorTypeEnum("text_generation");
Example API response:
...
"operator_type": "conversation-classify",
"operator_type": "text-generation",
...
Code snippet
var result = payload.FirstOrDefault(f => f.OperatorType == OperatorResultResource.OperatorTypeEnum.ConversationClassify);
Actual behavior
no value returned
Expected behavior
first value where the payload is a conversation classification.
twilio-csharp version
7.11.1
Framework version
net8.0
Logs or error messages
No response
Additional context
No response