diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index abe22119..651a0a29 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 63a2136d-3fa3-4a0b-a766-1ddb2460cc12 management: - docChecksum: f834c276d28ca8b3bbe4251323f2f725 + docChecksum: c909772f5d7175cd9ab8aabc715e42ab docVersion: 0.1.1 - speakeasyVersion: 1.561.0 - generationVersion: 2.628.0 - releaseVersion: 0.2.4-alpha.26 - configChecksum: c6dc900ea60b08b14f0ef2d845ef2793 + speakeasyVersion: 1.563.0 + generationVersion: 2.629.1 + releaseVersion: 0.2.5-dev.1 + configChecksum: 07dfbfd7889bfdeb0d974ae23e298292 repoURL: https://github.com/inkeep/inkeep-analytics-typescript.git installationURL: https://github.com/inkeep/inkeep-analytics-typescript published: true @@ -79,7 +79,6 @@ generatedFiles: - docs/models/components/createopenaiconversationtype1.md - docs/models/components/createopenaiconversationuserid.md - docs/models/components/createopenaiconversationuserproperties.md - - docs/models/components/createopenaiconversationusertype.md - docs/models/components/createsupportcopilotconversation.md - docs/models/components/createsupportcopilotconversationid.md - docs/models/components/createsupportcopilotconversationlinks.md @@ -88,12 +87,10 @@ generatedFiles: - docs/models/components/createsupportcopilotconversationmessagestype.md - docs/models/components/createsupportcopilotconversationmessagesuserid.md - docs/models/components/createsupportcopilotconversationmessagesuserproperties.md - - docs/models/components/createsupportcopilotconversationmessagesusertype.md - docs/models/components/createsupportcopilotconversationtype.md - docs/models/components/createsupportcopilotconversationtype1.md - docs/models/components/createsupportcopilotconversationuserid.md - docs/models/components/createsupportcopilotconversationuserproperties.md - - docs/models/components/createsupportcopilotconversationusertype.md - docs/models/components/createsupportcopilotconversationvisibility.md - docs/models/components/createsupportticketconversation.md - docs/models/components/createsupportticketconversationid.md @@ -103,12 +100,10 @@ generatedFiles: - docs/models/components/createsupportticketconversationmessagestype.md - docs/models/components/createsupportticketconversationmessagesuserid.md - docs/models/components/createsupportticketconversationmessagesuserproperties.md - - docs/models/components/createsupportticketconversationmessagesusertype.md - docs/models/components/createsupportticketconversationtype.md - docs/models/components/createsupportticketconversationtype1.md - docs/models/components/createsupportticketconversationuserid.md - docs/models/components/createsupportticketconversationuserproperties.md - - docs/models/components/createsupportticketconversationusertype.md - docs/models/components/createsupportticketconversationvisibility.md - docs/models/components/detail.md - docs/models/components/direction.md @@ -175,31 +170,26 @@ generatedFiles: - docs/models/components/getallfeedbackresponsenegativefeedbacktype.md - docs/models/components/getallfeedbackresponsenegativefeedbackuserid.md - docs/models/components/getallfeedbackresponsenegativefeedbackuserproperties.md - - docs/models/components/getallfeedbackresponsenegativefeedbackusertype.md - docs/models/components/getallfeedbackresponsereasons.md - docs/models/components/getallfeedbackresponsetype.md - docs/models/components/getallfeedbackresponseuserid.md - docs/models/components/getallfeedbackresponseuserproperties.md - - docs/models/components/getallfeedbackresponseusertype.md - docs/models/components/id.md - docs/models/components/insertconversationevent.md - docs/models/components/insertconversationevententitytype.md - docs/models/components/insertconversationeventid.md - docs/models/components/insertconversationeventuserid.md - docs/models/components/insertconversationeventuserproperties.md - - docs/models/components/insertconversationeventusertype.md - docs/models/components/insertevent.md - docs/models/components/insertmessageevent.md - docs/models/components/insertmessageeventid.md - docs/models/components/insertmessageeventuserid.md - docs/models/components/insertmessageeventuserproperties.md - - docs/models/components/insertmessageeventusertype.md - docs/models/components/insertsearchevent.md - docs/models/components/insertsearchevententitytype.md - docs/models/components/insertsearcheventid.md - docs/models/components/insertsearcheventuserid.md - docs/models/components/insertsearcheventuserproperties.md - - docs/models/components/insertsearcheventusertype.md - docs/models/components/links.md - docs/models/components/message.md - docs/models/components/messages.md @@ -215,7 +205,6 @@ generatedFiles: - docs/models/components/openaiconversationtype.md - docs/models/components/openaiconversationuserid.md - docs/models/components/openaiconversationuserproperties.md - - docs/models/components/openaiconversationusertype.md - docs/models/components/openaiconversationvisibility.md - docs/models/components/openaiextendedmessage.md - docs/models/components/openaiextendedmessageid.md @@ -223,7 +212,6 @@ generatedFiles: - docs/models/components/openaiextendedmessagetype.md - docs/models/components/openaiextendedmessageuserid.md - docs/models/components/openaiextendedmessageuserproperties.md - - docs/models/components/openaiextendedmessageusertype.md - docs/models/components/openaiimageurlobject.md - docs/models/components/openaitoolcall.md - docs/models/components/openaitoolcallfunction.md @@ -244,7 +232,6 @@ generatedFiles: - docs/models/components/queryconversationsresponsedatatype.md - docs/models/components/queryconversationsresponsedatauserid.md - docs/models/components/queryconversationsresponsedatauserproperties.md - - docs/models/components/queryconversationsresponsedatausertype.md - docs/models/components/queryeventsrequestbody.md - docs/models/components/queryeventsresponsebody.md - docs/models/components/queryeventsresponsebodystatus.md @@ -255,11 +242,9 @@ generatedFiles: - docs/models/components/queryfeedbackresponsedata.md - docs/models/components/queryfeedbackresponsedataid.md - docs/models/components/queryfeedbackresponsedatareasons.md - - docs/models/components/queryfeedbackresponsedatastatus.md - docs/models/components/queryfeedbackresponsedatatype.md - docs/models/components/queryfeedbackresponsedatauserid.md - docs/models/components/queryfeedbackresponsedatauserproperties.md - - docs/models/components/queryfeedbackresponsedatausertype.md - docs/models/components/querysemanticthreadsrequestbody.md - docs/models/components/querysemanticthreadsresponsebody.md - docs/models/components/querysemanticthreadsresponsebodystatus.md @@ -267,7 +252,6 @@ generatedFiles: - docs/models/components/querysemanticthreadsresponsedataid.md - docs/models/components/querysemanticthreadsresponsedatauserid.md - docs/models/components/querysemanticthreadsresponsedatauserproperties.md - - docs/models/components/querysemanticthreadsresponsedatausertype.md - docs/models/components/reasons.md - docs/models/components/role.md - docs/models/components/security.md @@ -276,20 +260,17 @@ generatedFiles: - docs/models/components/selectconversationeventid.md - docs/models/components/selectconversationeventuserid.md - docs/models/components/selectconversationeventuserproperties.md - - docs/models/components/selectconversationeventusertype.md - docs/models/components/selectevent.md - docs/models/components/selectmessageevent.md - docs/models/components/selectmessageevententitytype.md - docs/models/components/selectmessageeventid.md - docs/models/components/selectmessageeventuserid.md - docs/models/components/selectmessageeventuserproperties.md - - docs/models/components/selectmessageeventusertype.md - docs/models/components/selectsearchevent.md - docs/models/components/selectsearchevententitytype.md - docs/models/components/selectsearcheventid.md - docs/models/components/selectsearcheventuserid.md - docs/models/components/selectsearcheventuserproperties.md - - docs/models/components/selectsearcheventusertype.md - docs/models/components/semanticthreadaggregationselection.md - docs/models/components/semanticthreadaggregationselectionaggregation.md - docs/models/components/semanticthreadaggregationselectionfield.md @@ -324,7 +305,6 @@ generatedFiles: - docs/models/components/supportcopilotconversationtype.md - docs/models/components/supportcopilotconversationuserid.md - docs/models/components/supportcopilotconversationuserproperties.md - - docs/models/components/supportcopilotconversationusertype.md - docs/models/components/supportcopilotconversationvisibility.md - docs/models/components/supportcopilotmessage.md - docs/models/components/supportcopilotmessageid.md @@ -334,13 +314,11 @@ generatedFiles: - docs/models/components/supportcopilotmessagetype1.md - docs/models/components/supportcopilotmessageuserid.md - docs/models/components/supportcopilotmessageuserproperties.md - - docs/models/components/supportcopilotmessageusertype.md - docs/models/components/supportticketconversation.md - docs/models/components/supportticketconversationid.md - docs/models/components/supportticketconversationtype.md - docs/models/components/supportticketconversationuserid.md - docs/models/components/supportticketconversationuserproperties.md - - docs/models/components/supportticketconversationusertype.md - docs/models/components/supportticketconversationvisibility.md - docs/models/components/supportticketmessage.md - docs/models/components/supportticketmessageid.md @@ -349,13 +327,11 @@ generatedFiles: - docs/models/components/supportticketmessagetype.md - docs/models/components/supportticketmessageuserid.md - docs/models/components/supportticketmessageuserproperties.md - - docs/models/components/supportticketmessageusertype.md - docs/models/components/timeunit.md - docs/models/components/type.md - docs/models/components/type1.md - docs/models/components/userid.md - docs/models/components/userproperties.md - - docs/models/components/usertype.md - docs/models/components/value.md - docs/models/components/value4.md - docs/models/components/views.md @@ -402,30 +378,27 @@ generatedFiles: - docs/models/operations/getfeedbackbyidtype.md - docs/models/operations/getfeedbackbyiduserid.md - docs/models/operations/getfeedbackbyiduserproperties.md - - docs/models/operations/getfeedbackbyidusertype.md - docs/models/operations/id.md - docs/models/operations/logconversationsecurity.md - docs/models/operations/logeventsecurity.md - - docs/models/operations/logfeedbackid.md - - docs/models/operations/logfeedbackreasons.md - - docs/models/operations/logfeedbackrequestbody.md - - docs/models/operations/logfeedbackresponsebody.md - - docs/models/operations/logfeedbacktype.md - - docs/models/operations/logfeedbackuserid.md - - docs/models/operations/logfeedbackuserproperties.md - - docs/models/operations/logfeedbackusertype.md - docs/models/operations/queryconversationssecurity.md - docs/models/operations/queryeventssecurity.md - docs/models/operations/queryfeedbacksecurity.md - docs/models/operations/querysemanticthreadssecurity.md - docs/models/operations/reasons.md - docs/models/operations/result.md + - docs/models/operations/submitfeedbackid.md + - docs/models/operations/submitfeedbackreasons.md + - docs/models/operations/submitfeedbackrequestbody.md + - docs/models/operations/submitfeedbackresponsebody.md + - docs/models/operations/submitfeedbacktype.md + - docs/models/operations/submitfeedbackuserid.md + - docs/models/operations/submitfeedbackuserproperties.md - docs/models/operations/topsearchqueriesrequest.md - docs/models/operations/topsearchqueriesresponsebody.md - docs/models/operations/type.md - docs/models/operations/userid.md - docs/models/operations/userproperties.md - - docs/models/operations/usertype.md - docs/models/operations/weeklysearchusersdata.md - docs/models/operations/weeklysearchusersrequest.md - docs/models/operations/weeklysearchusersresponsebody.md @@ -612,11 +585,11 @@ generatedFiles: - src/models/operations/index.ts - src/models/operations/logconversation.ts - src/models/operations/logevent.ts - - src/models/operations/logfeedback.ts - src/models/operations/queryconversations.ts - src/models/operations/queryevents.ts - src/models/operations/queryfeedback.ts - src/models/operations/querysemanticthreads.ts + - src/models/operations/submitfeedback.ts - src/models/operations/topsearchqueries.ts - src/models/operations/weeklysearchusers.ts - src/react-query/_context.tsx @@ -831,7 +804,7 @@ examples: id: "feedback-id-123" responses: "200": - application/json: {"id": "", "type": "negative", "messageId": "", "userProperties": {"identificationType": "COOKIED"}, "conversation": {"id": "", "externalId": "", "externalUrl": "https://difficult-accountability.info/", "type": "support_copilot", "supportTicketConversationId": "", "createdAt": "1712671280110", "updatedAt": "1735652249363", "projectId": "", "integrationId": "", "visibility": "private", "messages": [{"id": "", "type": "support_copilot", "externalId": "", "externalUrl": "https://merry-solution.com", "conversationId": "", "createdAt": "1706159703123", "updatedAt": "1735669717348", "role": "", "content": "", "userProperties": {"identificationType": "COOKIED"}}]}, "message": {"id": "", "type": "support_copilot", "externalId": "", "externalUrl": "https://heavenly-reservation.info", "conversationId": "", "createdAt": "1715541556343", "updatedAt": "1735675403237", "role": "", "content": ""}} + application/json: {"id": "", "type": "negative", "messageId": "", "createdAt": "1722259016960", "userProperties": {"identificationType": "COOKIED"}, "conversation": {"id": "", "externalId": "", "externalUrl": "https://difficult-accountability.info/", "type": "support_copilot", "supportTicketConversationId": "", "createdAt": "1712671280110", "updatedAt": "1735652249363", "projectId": "", "integrationId": "", "visibility": "private", "messages": [{"id": "", "type": "support_copilot", "externalId": "", "externalUrl": "https://merry-solution.com", "conversationId": "", "createdAt": "1706159703123", "updatedAt": "1735669717348", "role": "", "content": "", "userProperties": {"identificationType": "COOKIED"}}]}, "message": {"id": "", "type": "support_copilot", "externalId": "", "externalUrl": "https://heavenly-reservation.info", "conversationId": "", "createdAt": "1715541556343", "updatedAt": "1735675403237", "role": "", "content": ""}} "400": application/problem+json: {"title": "Bad Request", "status": 400, "detail": "Bad Request", "instance": "/conversations/123", "requestId": "req_1234567890", "code": "bad_request", "error": {"code": "bad_request", "message": "Bad Request"}} "401": @@ -901,7 +874,7 @@ examples: application/json: {"notes": "Count of feedback by type"} responses: "200": - application/json: {"status": "ok", "data": {"result": [{"status": "unreviewed"}], "total": 9528.15, "pageSize": 7967.05, "count": 3920.41}} + application/json: {"status": "ok", "data": {"result": [{}], "total": 9528.15, "pageSize": 7967.05, "count": 3920.41}} "400": application/problem+json: {"title": "Bad Request", "status": 400, "detail": "Bad Request", "instance": "/conversations/123", "requestId": "req_1234567890", "code": "bad_request", "error": {"code": "bad_request", "message": "Bad Request"}} "401": diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 2fe12522..bdf3f896 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -20,7 +20,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: true typescript: - version: 0.2.4-alpha.26 + version: 0.2.5-dev.1 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index e8a67aec..b7b588e7 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,5 +1,12 @@ -speakeasyVersion: 1.561.0 +speakeasyVersion: 1.563.0 sources: + Dev Inkeep Analytics API: + sourceNamespace: dev-inkeep-analytics-api + sourceRevisionDigest: sha256:01cb313b4466279b5d2a5ef81eaa706989861b00a1446948b2e125e3f62c8db4 + sourceBlobDigest: sha256:9d79e0db0ce1f5db83d36a55af33cc3a99f03a9f0fcc6c90c810d539c719b159 + tags: + - latest + - 0.1.1 Inkeep Analytics API: sourceNamespace: inkeep-analytics-api sourceRevisionDigest: sha256:c8c5b84fd310d4a5d0356a98a16a354f24c5ea0dbfcae57a100191d41deb06f2 @@ -9,6 +16,13 @@ sources: - speakeasy-sdk-regen-1749793632 - 0.1.1 targets: + dev-inkeep-analytics: + source: Dev Inkeep Analytics API + sourceNamespace: dev-inkeep-analytics-api + sourceRevisionDigest: sha256:01cb313b4466279b5d2a5ef81eaa706989861b00a1446948b2e125e3f62c8db4 + sourceBlobDigest: sha256:9d79e0db0ce1f5db83d36a55af33cc3a99f03a9f0fcc6c90c810d539c719b159 + codeSamplesNamespace: inkeep-analytics-api-typescript-code-samples + codeSamplesRevisionDigest: sha256:70b72b02d45766ac52aa179e69eef531eec33741f51c72147b9a87d8f9911635 inkeep-analytics: source: Inkeep Analytics API sourceNamespace: inkeep-analytics-api @@ -20,6 +34,13 @@ workflow: workflowVersion: 1.0.0 speakeasyVersion: latest sources: + Dev Inkeep Analytics API: + inputs: + - location: http://localhost:3003/openapi.json + overlays: + - location: .speakeasy/speakeasy-modifications-overlay.yaml + registry: + location: registry.speakeasyapi.dev/inkeep/inkeep/dev-inkeep-analytics-api Inkeep Analytics API: inputs: - location: https://api.analytics.inkeep.com/openapi.json @@ -28,6 +49,18 @@ workflow: registry: location: registry.speakeasyapi.dev/inkeep/inkeep/inkeep-analytics-api targets: + dev-inkeep-analytics: + target: typescript + source: Dev Inkeep Analytics API + publish: + npm: + token: $npm_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/inkeep/inkeep/inkeep-analytics-api-typescript-code-samples + labelOverride: + fixedValue: Typescript (SDK) + blocking: false inkeep-analytics: target: typescript source: Inkeep Analytics API diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 45d9d1a1..204b97d4 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -1,6 +1,13 @@ workflowVersion: 1.0.0 speakeasyVersion: latest sources: + Dev Inkeep Analytics API: + inputs: + - location: http://localhost:3003/openapi.json + overlays: + - location: .speakeasy/speakeasy-modifications-overlay.yaml + registry: + location: registry.speakeasyapi.dev/inkeep/inkeep/dev-inkeep-analytics-api Inkeep Analytics API: inputs: - location: https://api.analytics.inkeep.com/openapi.json @@ -9,6 +16,18 @@ sources: registry: location: registry.speakeasyapi.dev/inkeep/inkeep/inkeep-analytics-api targets: + dev-inkeep-analytics: + target: typescript + source: Dev Inkeep Analytics API + publish: + npm: + token: $npm_token + codeSamples: + registry: + location: registry.speakeasyapi.dev/inkeep/inkeep/inkeep-analytics-api-typescript-code-samples + labelOverride: + fixedValue: Typescript (SDK) + blocking: false inkeep-analytics: target: typescript source: Inkeep Analytics API diff --git a/README.md b/README.md index d3745dbf..ff50eef1 100644 --- a/README.md +++ b/README.md @@ -280,7 +280,7 @@ run(); ### [feedback](docs/sdks/feedback/README.md) -* [submit](docs/sdks/feedback/README.md#submit) - Log Feedback +* [submit](docs/sdks/feedback/README.md#submit) - Submit Feedback * [list](docs/sdks/feedback/README.md#list) - Get All Feedback * [getFeedbackById](docs/sdks/feedback/README.md#getfeedbackbyid) - Get Feedback by ID @@ -325,7 +325,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md). - [`eventsLog`](docs/sdks/events/README.md#log) - Log Event - [`feedbackGetFeedbackById`](docs/sdks/feedback/README.md#getfeedbackbyid) - Get Feedback by ID - [`feedbackList`](docs/sdks/feedback/README.md#list) - Get All Feedback -- [`feedbackSubmit`](docs/sdks/feedback/README.md#submit) - Log Feedback +- [`feedbackSubmit`](docs/sdks/feedback/README.md#submit) - Submit Feedback - [`queryConversations`](docs/sdks/query/README.md#conversations) - Query Conversations - [`queryExportSemanticThreadsQueryResults`](docs/sdks/query/README.md#exportsemanticthreadsqueryresults) - Export Semantic Threads Query Results - [`queryQueryEvents`](docs/sdks/query/README.md#queryevents) - Query Events @@ -369,7 +369,7 @@ To learn about this feature and how to get started, check - [`useEventsLogMutation`](docs/sdks/events/README.md#log) - Log Event - [`useFeedbackGetFeedbackById`](docs/sdks/feedback/README.md#getfeedbackbyid) - Get Feedback by ID - [`useFeedbackList`](docs/sdks/feedback/README.md#list) - Get All Feedback -- [`useFeedbackSubmitMutation`](docs/sdks/feedback/README.md#submit) - Log Feedback +- [`useFeedbackSubmitMutation`](docs/sdks/feedback/README.md#submit) - Submit Feedback - [`useQueryConversationsMutation`](docs/sdks/query/README.md#conversations) - Query Conversations - [`useQueryExportSemanticThreadsQueryResultsMutation`](docs/sdks/query/README.md#exportsemanticthreadsqueryresults) - Export Semantic Threads Query Results - [`useQueryQueryEventsMutation`](docs/sdks/query/README.md#queryevents) - Query Events diff --git a/docs/models/components/createopenaiconversationuserproperties.md b/docs/models/components/createopenaiconversationuserproperties.md index cf0ba957..720179e2 100644 --- a/docs/models/components/createopenaiconversationuserproperties.md +++ b/docs/models/components/createopenaiconversationuserproperties.md @@ -20,5 +20,4 @@ let value: CreateOpenAIConversationUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.CreateOpenAIConversationUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.CreateOpenAIConversationUserType](../../models/components/createopenaiconversationusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/createopenaiconversationusertype.md b/docs/models/components/createopenaiconversationusertype.md deleted file mode 100644 index fcfb1c03..00000000 --- a/docs/models/components/createopenaiconversationusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateOpenAIConversationUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { CreateOpenAIConversationUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: CreateOpenAIConversationUserType = "user"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/createsupportcopilotconversationmessagesuserproperties.md b/docs/models/components/createsupportcopilotconversationmessagesuserproperties.md index 5d6e4fd4..4c8a9da5 100644 --- a/docs/models/components/createsupportcopilotconversationmessagesuserproperties.md +++ b/docs/models/components/createsupportcopilotconversationmessagesuserproperties.md @@ -20,5 +20,4 @@ let value: CreateSupportCopilotConversationMessagesUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.CreateSupportCopilotConversationMessagesUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.CreateSupportCopilotConversationMessagesUserType](../../models/components/createsupportcopilotconversationmessagesusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/createsupportcopilotconversationmessagesusertype.md b/docs/models/components/createsupportcopilotconversationmessagesusertype.md deleted file mode 100644 index bfcd8f81..00000000 --- a/docs/models/components/createsupportcopilotconversationmessagesusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateSupportCopilotConversationMessagesUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { CreateSupportCopilotConversationMessagesUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: CreateSupportCopilotConversationMessagesUserType = "user"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/createsupportcopilotconversationuserproperties.md b/docs/models/components/createsupportcopilotconversationuserproperties.md index 0f10170e..0e87dcaf 100644 --- a/docs/models/components/createsupportcopilotconversationuserproperties.md +++ b/docs/models/components/createsupportcopilotconversationuserproperties.md @@ -20,5 +20,4 @@ let value: CreateSupportCopilotConversationUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.CreateSupportCopilotConversationUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.CreateSupportCopilotConversationUserType](../../models/components/createsupportcopilotconversationusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/createsupportcopilotconversationusertype.md b/docs/models/components/createsupportcopilotconversationusertype.md deleted file mode 100644 index 372d8259..00000000 --- a/docs/models/components/createsupportcopilotconversationusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateSupportCopilotConversationUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { CreateSupportCopilotConversationUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: CreateSupportCopilotConversationUserType = "user"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/createsupportticketconversationmessagesuserproperties.md b/docs/models/components/createsupportticketconversationmessagesuserproperties.md index 61123c6f..ee2c3e60 100644 --- a/docs/models/components/createsupportticketconversationmessagesuserproperties.md +++ b/docs/models/components/createsupportticketconversationmessagesuserproperties.md @@ -20,5 +20,4 @@ let value: CreateSupportTicketConversationMessagesUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.CreateSupportTicketConversationMessagesUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.CreateSupportTicketConversationMessagesUserType](../../models/components/createsupportticketconversationmessagesusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/createsupportticketconversationmessagesusertype.md b/docs/models/components/createsupportticketconversationmessagesusertype.md deleted file mode 100644 index e352cf27..00000000 --- a/docs/models/components/createsupportticketconversationmessagesusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateSupportTicketConversationMessagesUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { CreateSupportTicketConversationMessagesUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: CreateSupportTicketConversationMessagesUserType = "member"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/createsupportticketconversationuserproperties.md b/docs/models/components/createsupportticketconversationuserproperties.md index 4ab4d122..4cd1abd6 100644 --- a/docs/models/components/createsupportticketconversationuserproperties.md +++ b/docs/models/components/createsupportticketconversationuserproperties.md @@ -20,5 +20,4 @@ let value: CreateSupportTicketConversationUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.CreateSupportTicketConversationUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.CreateSupportTicketConversationUserType](../../models/components/createsupportticketconversationusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/createsupportticketconversationusertype.md b/docs/models/components/createsupportticketconversationusertype.md deleted file mode 100644 index 489f6a65..00000000 --- a/docs/models/components/createsupportticketconversationusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# CreateSupportTicketConversationUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { CreateSupportTicketConversationUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: CreateSupportTicketConversationUserType = "user"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/feedbackaggregationselectionfield.md b/docs/models/components/feedbackaggregationselectionfield.md index 3a746c77..57665613 100644 --- a/docs/models/components/feedbackaggregationselectionfield.md +++ b/docs/models/components/feedbackaggregationselectionfield.md @@ -5,11 +5,11 @@ ```typescript import { FeedbackAggregationSelectionField } from "@inkeep/inkeep-analytics/models/components"; -let value: FeedbackAggregationSelectionField = "reasons"; +let value: FeedbackAggregationSelectionField = "organizationId"; ``` ## Values ```typescript -"id" | "type" | "messageId" | "createdAt" | "organizationId" | "reasons" | "properties" | "userProperties" | "conversationId" | "projectId" | "integrationId" | "updatedAt" | "status" +"id" | "type" | "messageId" | "createdAt" | "organizationId" | "reasons" | "properties" | "userProperties" | "conversationId" | "projectId" | "integrationId" ``` \ No newline at end of file diff --git a/docs/models/components/feedbackfield.md b/docs/models/components/feedbackfield.md index cc0120dc..f4b29cb9 100644 --- a/docs/models/components/feedbackfield.md +++ b/docs/models/components/feedbackfield.md @@ -7,11 +7,11 @@ Available fields for Feedback ```typescript import { FeedbackField } from "@inkeep/inkeep-analytics/models/components"; -let value: FeedbackField = "conversationId"; +let value: FeedbackField = "userProperties"; ``` ## Values ```typescript -"id" | "type" | "messageId" | "createdAt" | "organizationId" | "reasons" | "properties" | "userProperties" | "conversationId" | "projectId" | "integrationId" | "updatedAt" | "status" +"id" | "type" | "messageId" | "createdAt" | "organizationId" | "reasons" | "properties" | "userProperties" | "conversationId" | "projectId" | "integrationId" ``` \ No newline at end of file diff --git a/docs/models/components/feedbackfilter.md b/docs/models/components/feedbackfilter.md index 5b4982c2..e574afac 100644 --- a/docs/models/components/feedbackfilter.md +++ b/docs/models/components/feedbackfilter.md @@ -8,7 +8,7 @@ ```typescript const value: components.FeedbackFilterCondition = { condition: { - field: "integrationId", + field: "conversationId", operator: "jsonContainedBy", value: "", }, diff --git a/docs/models/components/feedbackfiltercondition.md b/docs/models/components/feedbackfiltercondition.md index e68eabb7..0602f168 100644 --- a/docs/models/components/feedbackfiltercondition.md +++ b/docs/models/components/feedbackfiltercondition.md @@ -7,7 +7,7 @@ import { FeedbackFilterCondition } from "@inkeep/inkeep-analytics/models/compone let value: FeedbackFilterCondition = { condition: { - field: "integrationId", + field: "conversationId", operator: "jsonContainedBy", value: "", }, diff --git a/docs/models/components/feedbackgroupby.md b/docs/models/components/feedbackgroupby.md index da855a15..7926cc05 100644 --- a/docs/models/components/feedbackgroupby.md +++ b/docs/models/components/feedbackgroupby.md @@ -8,7 +8,7 @@ Group by options for feedback import { FeedbackGroupBy } from "@inkeep/inkeep-analytics/models/components"; let value: FeedbackGroupBy = { - field: "reasons", + field: "organizationId", }; ``` diff --git a/docs/models/components/feedbackorderby.md b/docs/models/components/feedbackorderby.md index dff92e2d..10683b4e 100644 --- a/docs/models/components/feedbackorderby.md +++ b/docs/models/components/feedbackorderby.md @@ -8,7 +8,7 @@ Specifies how to order Feedback query results by field and direction import { FeedbackOrderBy } from "@inkeep/inkeep-analytics/models/components"; let value: FeedbackOrderBy = { - field: "createdAt_day", + field: "messageId_month", direction: "asc", }; ``` diff --git a/docs/models/components/feedbackorderbyfield.md b/docs/models/components/feedbackorderbyfield.md index 82afac03..0d813e42 100644 --- a/docs/models/components/feedbackorderbyfield.md +++ b/docs/models/components/feedbackorderbyfield.md @@ -5,11 +5,11 @@ ```typescript import { FeedbackOrderByField } from "@inkeep/inkeep-analytics/models/components"; -let value: FeedbackOrderByField = "count_properties"; +let value: FeedbackOrderByField = "count_reasons"; ``` ## Values ```typescript -"id" | "type" | "messageId" | "createdAt" | "organizationId" | "reasons" | "properties" | "userProperties" | "conversationId" | "projectId" | "integrationId" | "updatedAt" | "status" | "id_hour" | "id_day" | "id_week" | "id_month" | "type_hour" | "type_day" | "type_week" | "type_month" | "messageId_hour" | "messageId_day" | "messageId_week" | "messageId_month" | "createdAt_hour" | "createdAt_day" | "createdAt_week" | "createdAt_month" | "organizationId_hour" | "organizationId_day" | "organizationId_week" | "organizationId_month" | "reasons_hour" | "reasons_day" | "reasons_week" | "reasons_month" | "properties_hour" | "properties_day" | "properties_week" | "properties_month" | "userProperties_hour" | "userProperties_day" | "userProperties_week" | "userProperties_month" | "conversationId_hour" | "conversationId_day" | "conversationId_week" | "conversationId_month" | "projectId_hour" | "projectId_day" | "projectId_week" | "projectId_month" | "integrationId_hour" | "integrationId_day" | "integrationId_week" | "integrationId_month" | "updatedAt_hour" | "updatedAt_day" | "updatedAt_week" | "updatedAt_month" | "status_hour" | "status_day" | "status_week" | "status_month" | "sum_id" | "sum_type" | "sum_messageId" | "sum_createdAt" | "sum_organizationId" | "sum_reasons" | "sum_properties" | "sum_userProperties" | "sum_conversationId" | "sum_projectId" | "sum_integrationId" | "sum_updatedAt" | "sum_status" | "count_id" | "count_type" | "count_messageId" | "count_createdAt" | "count_organizationId" | "count_reasons" | "count_properties" | "count_userProperties" | "count_conversationId" | "count_projectId" | "count_integrationId" | "count_updatedAt" | "count_status" | "avg_id" | "avg_type" | "avg_messageId" | "avg_createdAt" | "avg_organizationId" | "avg_reasons" | "avg_properties" | "avg_userProperties" | "avg_conversationId" | "avg_projectId" | "avg_integrationId" | "avg_updatedAt" | "avg_status" | "min_id" | "min_type" | "min_messageId" | "min_createdAt" | "min_organizationId" | "min_reasons" | "min_properties" | "min_userProperties" | "min_conversationId" | "min_projectId" | "min_integrationId" | "min_updatedAt" | "min_status" | "max_id" | "max_type" | "max_messageId" | "max_createdAt" | "max_organizationId" | "max_reasons" | "max_properties" | "max_userProperties" | "max_conversationId" | "max_projectId" | "max_integrationId" | "max_updatedAt" | "max_status" +"id" | "type" | "messageId" | "createdAt" | "organizationId" | "reasons" | "properties" | "userProperties" | "conversationId" | "projectId" | "integrationId" | "id_hour" | "id_day" | "id_week" | "id_month" | "type_hour" | "type_day" | "type_week" | "type_month" | "messageId_hour" | "messageId_day" | "messageId_week" | "messageId_month" | "createdAt_hour" | "createdAt_day" | "createdAt_week" | "createdAt_month" | "organizationId_hour" | "organizationId_day" | "organizationId_week" | "organizationId_month" | "reasons_hour" | "reasons_day" | "reasons_week" | "reasons_month" | "properties_hour" | "properties_day" | "properties_week" | "properties_month" | "userProperties_hour" | "userProperties_day" | "userProperties_week" | "userProperties_month" | "conversationId_hour" | "conversationId_day" | "conversationId_week" | "conversationId_month" | "projectId_hour" | "projectId_day" | "projectId_week" | "projectId_month" | "integrationId_hour" | "integrationId_day" | "integrationId_week" | "integrationId_month" | "sum_id" | "sum_type" | "sum_messageId" | "sum_createdAt" | "sum_organizationId" | "sum_reasons" | "sum_properties" | "sum_userProperties" | "sum_conversationId" | "sum_projectId" | "sum_integrationId" | "count_id" | "count_type" | "count_messageId" | "count_createdAt" | "count_organizationId" | "count_reasons" | "count_properties" | "count_userProperties" | "count_conversationId" | "count_projectId" | "count_integrationId" | "avg_id" | "avg_type" | "avg_messageId" | "avg_createdAt" | "avg_organizationId" | "avg_reasons" | "avg_properties" | "avg_userProperties" | "avg_conversationId" | "avg_projectId" | "avg_integrationId" | "min_id" | "min_type" | "min_messageId" | "min_createdAt" | "min_organizationId" | "min_reasons" | "min_properties" | "min_userProperties" | "min_conversationId" | "min_projectId" | "min_integrationId" | "max_id" | "max_type" | "max_messageId" | "max_createdAt" | "max_organizationId" | "max_reasons" | "max_properties" | "max_userProperties" | "max_conversationId" | "max_projectId" | "max_integrationId" ``` \ No newline at end of file diff --git a/docs/models/components/feedbackresultitem.md b/docs/models/components/feedbackresultitem.md index 43acf3b1..a6c5bf56 100644 --- a/docs/models/components/feedbackresultitem.md +++ b/docs/models/components/feedbackresultitem.md @@ -19,7 +19,7 @@ let value: FeedbackResultItem = { | `id` | *string* | :heavy_minus_sign: | N/A | | `type` | [components.QueryFeedbackResponseDataType](../../models/components/queryfeedbackresponsedatatype.md) | :heavy_minus_sign: | N/A | | `messageId` | *string* | :heavy_minus_sign: | N/A | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | +| `createdAt` | *any* | :heavy_minus_sign: | N/A | | `organizationId` | *string* | :heavy_minus_sign: | N/A | | `reasons` | [components.QueryFeedbackResponseDataReasons](../../models/components/queryfeedbackresponsedatareasons.md)[] | :heavy_minus_sign: | N/A | | `properties` | Record | :heavy_minus_sign: | A customizable collection of custom properties or attributes. | @@ -27,8 +27,6 @@ let value: FeedbackResultItem = { | `conversationId` | *string* | :heavy_minus_sign: | N/A | | `projectId` | *string* | :heavy_minus_sign: | N/A | | `integrationId` | *string* | :heavy_minus_sign: | N/A | -| `updatedAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | N/A | -| `status` | [components.QueryFeedbackResponseDataStatus](../../models/components/queryfeedbackresponsedatastatus.md) | :heavy_minus_sign: | N/A | | `sum` | *number* | :heavy_minus_sign: | N/A | | `count` | *number* | :heavy_minus_sign: | N/A | | `avg` | *number* | :heavy_minus_sign: | N/A | @@ -78,14 +76,6 @@ let value: FeedbackResultItem = { | `integrationIdDay` | *string* | :heavy_minus_sign: | N/A | | `integrationIdWeek` | *string* | :heavy_minus_sign: | N/A | | `integrationIdMonth` | *string* | :heavy_minus_sign: | N/A | -| `updatedAtHour` | *string* | :heavy_minus_sign: | N/A | -| `updatedAtDay` | *string* | :heavy_minus_sign: | N/A | -| `updatedAtWeek` | *string* | :heavy_minus_sign: | N/A | -| `updatedAtMonth` | *string* | :heavy_minus_sign: | N/A | -| `statusHour` | *string* | :heavy_minus_sign: | N/A | -| `statusDay` | *string* | :heavy_minus_sign: | N/A | -| `statusWeek` | *string* | :heavy_minus_sign: | N/A | -| `statusMonth` | *string* | :heavy_minus_sign: | N/A | | `sumId` | *number* | :heavy_minus_sign: | N/A | | `sumType` | *number* | :heavy_minus_sign: | N/A | | `sumMessageId` | *number* | :heavy_minus_sign: | N/A | @@ -97,8 +87,6 @@ let value: FeedbackResultItem = { | `sumConversationId` | *number* | :heavy_minus_sign: | N/A | | `sumProjectId` | *number* | :heavy_minus_sign: | N/A | | `sumIntegrationId` | *number* | :heavy_minus_sign: | N/A | -| `sumUpdatedAt` | *number* | :heavy_minus_sign: | N/A | -| `sumStatus` | *number* | :heavy_minus_sign: | N/A | | `countId` | *number* | :heavy_minus_sign: | N/A | | `countType` | *number* | :heavy_minus_sign: | N/A | | `countMessageId` | *number* | :heavy_minus_sign: | N/A | @@ -110,8 +98,6 @@ let value: FeedbackResultItem = { | `countConversationId` | *number* | :heavy_minus_sign: | N/A | | `countProjectId` | *number* | :heavy_minus_sign: | N/A | | `countIntegrationId` | *number* | :heavy_minus_sign: | N/A | -| `countUpdatedAt` | *number* | :heavy_minus_sign: | N/A | -| `countStatus` | *number* | :heavy_minus_sign: | N/A | | `avgId` | *number* | :heavy_minus_sign: | N/A | | `avgType` | *number* | :heavy_minus_sign: | N/A | | `avgMessageId` | *number* | :heavy_minus_sign: | N/A | @@ -123,8 +109,6 @@ let value: FeedbackResultItem = { | `avgConversationId` | *number* | :heavy_minus_sign: | N/A | | `avgProjectId` | *number* | :heavy_minus_sign: | N/A | | `avgIntegrationId` | *number* | :heavy_minus_sign: | N/A | -| `avgUpdatedAt` | *number* | :heavy_minus_sign: | N/A | -| `avgStatus` | *number* | :heavy_minus_sign: | N/A | | `minId` | *number* | :heavy_minus_sign: | N/A | | `minType` | *number* | :heavy_minus_sign: | N/A | | `minMessageId` | *number* | :heavy_minus_sign: | N/A | @@ -136,8 +120,6 @@ let value: FeedbackResultItem = { | `minConversationId` | *number* | :heavy_minus_sign: | N/A | | `minProjectId` | *number* | :heavy_minus_sign: | N/A | | `minIntegrationId` | *number* | :heavy_minus_sign: | N/A | -| `minUpdatedAt` | *number* | :heavy_minus_sign: | N/A | -| `minStatus` | *number* | :heavy_minus_sign: | N/A | | `maxId` | *number* | :heavy_minus_sign: | N/A | | `maxType` | *number* | :heavy_minus_sign: | N/A | | `maxMessageId` | *number* | :heavy_minus_sign: | N/A | @@ -149,8 +131,6 @@ let value: FeedbackResultItem = { | `maxConversationId` | *number* | :heavy_minus_sign: | N/A | | `maxProjectId` | *number* | :heavy_minus_sign: | N/A | | `maxIntegrationId` | *number* | :heavy_minus_sign: | N/A | -| `maxUpdatedAt` | *number* | :heavy_minus_sign: | N/A | -| `maxStatus` | *number* | :heavy_minus_sign: | N/A | | `sumPropertiesUserId` | *number* | :heavy_minus_sign: | N/A | | `sumPropertiesSupportAgentName` | *number* | :heavy_minus_sign: | N/A | | `sumUserPropertiesUserId` | *number* | :heavy_minus_sign: | N/A | diff --git a/docs/models/components/feedbackselection.md b/docs/models/components/feedbackselection.md index 922da38f..1b563970 100644 --- a/docs/models/components/feedbackselection.md +++ b/docs/models/components/feedbackselection.md @@ -28,7 +28,7 @@ const value: components.FeedbackTimeBasedGroupBySelection = { ```typescript const value: components.FeedbackSimpleFieldSelection = { type: "field", - field: "updatedAt", + field: "integrationId", }; ``` diff --git a/docs/models/components/feedbacksimplefieldselection.md b/docs/models/components/feedbacksimplefieldselection.md index e16bda56..0ba20d4c 100644 --- a/docs/models/components/feedbacksimplefieldselection.md +++ b/docs/models/components/feedbacksimplefieldselection.md @@ -7,7 +7,7 @@ import { FeedbackSimpleFieldSelection } from "@inkeep/inkeep-analytics/models/co let value: FeedbackSimpleFieldSelection = { type: "field", - field: "updatedAt", + field: "integrationId", }; ``` diff --git a/docs/models/components/feedbacksimplefieldselectionfield.md b/docs/models/components/feedbacksimplefieldselectionfield.md index 0f1789e0..bb19637a 100644 --- a/docs/models/components/feedbacksimplefieldselectionfield.md +++ b/docs/models/components/feedbacksimplefieldselectionfield.md @@ -5,11 +5,11 @@ ```typescript import { FeedbackSimpleFieldSelectionField } from "@inkeep/inkeep-analytics/models/components"; -let value: FeedbackSimpleFieldSelectionField = "reasons"; +let value: FeedbackSimpleFieldSelectionField = "organizationId"; ``` ## Values ```typescript -"id" | "type" | "messageId" | "createdAt" | "organizationId" | "reasons" | "properties" | "userProperties" | "conversationId" | "projectId" | "integrationId" | "updatedAt" | "status" +"id" | "type" | "messageId" | "createdAt" | "organizationId" | "reasons" | "properties" | "userProperties" | "conversationId" | "projectId" | "integrationId" ``` \ No newline at end of file diff --git a/docs/models/components/feedbacktimebasedgroupbyselectionfield.md b/docs/models/components/feedbacktimebasedgroupbyselectionfield.md index b1867234..4417a092 100644 --- a/docs/models/components/feedbacktimebasedgroupbyselectionfield.md +++ b/docs/models/components/feedbacktimebasedgroupbyselectionfield.md @@ -5,11 +5,11 @@ ```typescript import { FeedbackTimeBasedGroupBySelectionField } from "@inkeep/inkeep-analytics/models/components"; -let value: FeedbackTimeBasedGroupBySelectionField = "reasons"; +let value: FeedbackTimeBasedGroupBySelectionField = "organizationId"; ``` ## Values ```typescript -"id" | "type" | "messageId" | "createdAt" | "organizationId" | "reasons" | "properties" | "userProperties" | "conversationId" | "projectId" | "integrationId" | "updatedAt" | "status" +"id" | "type" | "messageId" | "createdAt" | "organizationId" | "reasons" | "properties" | "userProperties" | "conversationId" | "projectId" | "integrationId" ``` \ No newline at end of file diff --git a/docs/models/components/getallfeedbackresponse.md b/docs/models/components/getallfeedbackresponse.md index 80a1beeb..d1e49633 100644 --- a/docs/models/components/getallfeedbackresponse.md +++ b/docs/models/components/getallfeedbackresponse.md @@ -13,20 +13,21 @@ let value: GetAllFeedbackResponse = { id: "", type: "positive", messageId: "", + createdAt: "1723345333062", userProperties: { identificationType: "COOKIED", }, conversation: { id: "", externalId: "", - externalUrl: "https://grounded-chainstay.info", - type: "support_ticket", + externalUrl: "https://concerned-integer.name/", + type: "support_copilot", supportTicketConversationId: "", - createdAt: "1727706559745", - updatedAt: "1735643314242", + createdAt: "1718795467397", + updatedAt: "1735642779071", projectId: "", integrationId: "", - visibility: "private", + visibility: null, messages: [], }, message: { diff --git a/docs/models/components/getallfeedbackresponsenegativefeedbackuserproperties.md b/docs/models/components/getallfeedbackresponsenegativefeedbackuserproperties.md index 2a640941..74dafdc7 100644 --- a/docs/models/components/getallfeedbackresponsenegativefeedbackuserproperties.md +++ b/docs/models/components/getallfeedbackresponsenegativefeedbackuserproperties.md @@ -20,5 +20,4 @@ let value: GetAllFeedbackResponseNegativeFeedbackUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.GetAllFeedbackResponseNegativeFeedbackUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.GetAllFeedbackResponseNegativeFeedbackUserType](../../models/components/getallfeedbackresponsenegativefeedbackusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/getallfeedbackresponsenegativefeedbackusertype.md b/docs/models/components/getallfeedbackresponsenegativefeedbackusertype.md deleted file mode 100644 index dc8cd33a..00000000 --- a/docs/models/components/getallfeedbackresponsenegativefeedbackusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetAllFeedbackResponseNegativeFeedbackUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { GetAllFeedbackResponseNegativeFeedbackUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: GetAllFeedbackResponseNegativeFeedbackUserType = "user"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/getallfeedbackresponseuserproperties.md b/docs/models/components/getallfeedbackresponseuserproperties.md index a4b15a22..6d301d12 100644 --- a/docs/models/components/getallfeedbackresponseuserproperties.md +++ b/docs/models/components/getallfeedbackresponseuserproperties.md @@ -20,5 +20,4 @@ let value: GetAllFeedbackResponseUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.GetAllFeedbackResponseUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.GetAllFeedbackResponseUserType](../../models/components/getallfeedbackresponseusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/getallfeedbackresponseusertype.md b/docs/models/components/getallfeedbackresponseusertype.md deleted file mode 100644 index 06e19087..00000000 --- a/docs/models/components/getallfeedbackresponseusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetAllFeedbackResponseUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { GetAllFeedbackResponseUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: GetAllFeedbackResponseUserType = "user"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/insertconversationeventuserproperties.md b/docs/models/components/insertconversationeventuserproperties.md index dfadeb49..216ebe81 100644 --- a/docs/models/components/insertconversationeventuserproperties.md +++ b/docs/models/components/insertconversationeventuserproperties.md @@ -20,5 +20,4 @@ let value: InsertConversationEventUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.InsertConversationEventUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.InsertConversationEventUserType](../../models/components/insertconversationeventusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/insertconversationeventusertype.md b/docs/models/components/insertconversationeventusertype.md deleted file mode 100644 index 9768dd2c..00000000 --- a/docs/models/components/insertconversationeventusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# InsertConversationEventUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { InsertConversationEventUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: InsertConversationEventUserType = "member"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/insertmessageeventuserproperties.md b/docs/models/components/insertmessageeventuserproperties.md index f899cfbb..860a1e3f 100644 --- a/docs/models/components/insertmessageeventuserproperties.md +++ b/docs/models/components/insertmessageeventuserproperties.md @@ -20,5 +20,4 @@ let value: InsertMessageEventUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.InsertMessageEventUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.InsertMessageEventUserType](../../models/components/insertmessageeventusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/insertmessageeventusertype.md b/docs/models/components/insertmessageeventusertype.md deleted file mode 100644 index a595faa6..00000000 --- a/docs/models/components/insertmessageeventusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# InsertMessageEventUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { InsertMessageEventUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: InsertMessageEventUserType = "user"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/insertsearcheventuserproperties.md b/docs/models/components/insertsearcheventuserproperties.md index b33366f1..0a89c982 100644 --- a/docs/models/components/insertsearcheventuserproperties.md +++ b/docs/models/components/insertsearcheventuserproperties.md @@ -20,5 +20,4 @@ let value: InsertSearchEventUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.InsertSearchEventUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.InsertSearchEventUserType](../../models/components/insertsearcheventusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/insertsearcheventusertype.md b/docs/models/components/insertsearcheventusertype.md deleted file mode 100644 index 309278a5..00000000 --- a/docs/models/components/insertsearcheventusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# InsertSearchEventUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { InsertSearchEventUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: InsertSearchEventUserType = "user"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/negativefeedback.md b/docs/models/components/negativefeedback.md index 4093ca84..1d4c4bdf 100644 --- a/docs/models/components/negativefeedback.md +++ b/docs/models/components/negativefeedback.md @@ -9,20 +9,21 @@ let value: NegativeFeedback = { id: "", type: "negative", messageId: "", + createdAt: "1709249396560", userProperties: { identificationType: "COOKIED", }, conversation: { id: "", externalId: "", - externalUrl: "https://trim-term.net", + externalUrl: "https://unsung-pomelo.org", type: "support_copilot", supportTicketConversationId: "", - createdAt: "1720423662593", - updatedAt: "1735670950518", + createdAt: "1728882824397", + updatedAt: "1735681424620", projectId: "", - integrationId: "", - visibility: null, + integrationId: null, + visibility: "public", messages: [ { id: "", @@ -44,10 +45,10 @@ let value: NegativeFeedback = { id: "", type: "support_copilot", externalId: "", - externalUrl: "https://nautical-opera.net", + externalUrl: "https://shimmering-story.net", conversationId: "", - createdAt: "1731190000343", - updatedAt: "1735673856387", + createdAt: "1714219698350", + updatedAt: "1735689143924", role: "", content: "", }, @@ -61,7 +62,7 @@ let value: NegativeFeedback = { | `id` | *string* | :heavy_check_mark: | N/A | | `type` | [components.GetAllFeedbackResponseNegativeFeedbackType](../../models/components/getallfeedbackresponsenegativefeedbacktype.md) | :heavy_check_mark: | N/A | | `messageId` | *string* | :heavy_check_mark: | N/A | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | A timestamp in ISO 8601 format with timezone information. If not provided, the current time will be used. | +| `createdAt` | *string* | :heavy_check_mark: | N/A | | `reasons` | [components.GetAllFeedbackResponseReasons](../../models/components/getallfeedbackresponsereasons.md)[] | :heavy_minus_sign: | N/A | | `properties` | Record | :heavy_minus_sign: | A customizable collection of custom properties or attributes. | | `userProperties` | [components.GetAllFeedbackResponseNegativeFeedbackUserProperties](../../models/components/getallfeedbackresponsenegativefeedbackuserproperties.md) | :heavy_minus_sign: | A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. | diff --git a/docs/models/components/openaiconversationuserproperties.md b/docs/models/components/openaiconversationuserproperties.md index 797cfe08..24ee6fda 100644 --- a/docs/models/components/openaiconversationuserproperties.md +++ b/docs/models/components/openaiconversationuserproperties.md @@ -20,5 +20,4 @@ let value: OpenAIConversationUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.OpenAIConversationUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.OpenAIConversationUserType](../../models/components/openaiconversationusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/openaiconversationusertype.md b/docs/models/components/openaiconversationusertype.md deleted file mode 100644 index 956c6231..00000000 --- a/docs/models/components/openaiconversationusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# OpenAIConversationUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { OpenAIConversationUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: OpenAIConversationUserType = "member"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/openaiextendedmessageuserproperties.md b/docs/models/components/openaiextendedmessageuserproperties.md index a356091f..a49dbfb0 100644 --- a/docs/models/components/openaiextendedmessageuserproperties.md +++ b/docs/models/components/openaiextendedmessageuserproperties.md @@ -20,5 +20,4 @@ let value: OpenAIExtendedMessageUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.OpenAIExtendedMessageUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.OpenAIExtendedMessageUserType](../../models/components/openaiextendedmessageusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/openaiextendedmessageusertype.md b/docs/models/components/openaiextendedmessageusertype.md deleted file mode 100644 index e5b16d8f..00000000 --- a/docs/models/components/openaiextendedmessageusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# OpenAIExtendedMessageUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { OpenAIExtendedMessageUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: OpenAIExtendedMessageUserType = "member"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/positivefeedback.md b/docs/models/components/positivefeedback.md index 591fde93..9894c146 100644 --- a/docs/models/components/positivefeedback.md +++ b/docs/models/components/positivefeedback.md @@ -9,20 +9,21 @@ let value: PositiveFeedback = { id: "", type: "positive", messageId: "", + createdAt: "1723345333062", userProperties: { identificationType: "COOKIED", }, conversation: { id: "", externalId: "", - externalUrl: "https://grounded-chainstay.info", - type: "support_ticket", + externalUrl: "https://concerned-integer.name/", + type: "support_copilot", supportTicketConversationId: "", - createdAt: "1727706559745", - updatedAt: "1735643314242", + createdAt: "1718795467397", + updatedAt: "1735642779071", projectId: "", integrationId: "", - visibility: "private", + visibility: null, messages: [], }, message: { @@ -46,7 +47,7 @@ let value: PositiveFeedback = { | `id` | *string* | :heavy_check_mark: | N/A | | `type` | [components.GetAllFeedbackResponseType](../../models/components/getallfeedbackresponsetype.md) | :heavy_check_mark: | N/A | | `messageId` | *string* | :heavy_check_mark: | N/A | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | A timestamp in ISO 8601 format with timezone information. If not provided, the current time will be used. | +| `createdAt` | *string* | :heavy_check_mark: | N/A | | `reasons` | [components.Reasons](../../models/components/reasons.md)[] | :heavy_minus_sign: | N/A | | `properties` | Record | :heavy_minus_sign: | A customizable collection of custom properties or attributes. | | `userProperties` | [components.GetAllFeedbackResponseUserProperties](../../models/components/getallfeedbackresponseuserproperties.md) | :heavy_minus_sign: | A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. | diff --git a/docs/models/components/queryconversationsresponsedatauserproperties.md b/docs/models/components/queryconversationsresponsedatauserproperties.md index 567e45eb..f2a268de 100644 --- a/docs/models/components/queryconversationsresponsedatauserproperties.md +++ b/docs/models/components/queryconversationsresponsedatauserproperties.md @@ -20,5 +20,4 @@ let value: QueryConversationsResponseDataUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.QueryConversationsResponseDataUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.QueryConversationsResponseDataUserType](../../models/components/queryconversationsresponsedatausertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/queryconversationsresponsedatausertype.md b/docs/models/components/queryconversationsresponsedatausertype.md deleted file mode 100644 index 345bea4c..00000000 --- a/docs/models/components/queryconversationsresponsedatausertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# QueryConversationsResponseDataUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { QueryConversationsResponseDataUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: QueryConversationsResponseDataUserType = "user"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/queryfeedbackresponsedatastatus.md b/docs/models/components/queryfeedbackresponsedatastatus.md deleted file mode 100644 index 917dbd6c..00000000 --- a/docs/models/components/queryfeedbackresponsedatastatus.md +++ /dev/null @@ -1,15 +0,0 @@ -# QueryFeedbackResponseDataStatus - -## Example Usage - -```typescript -import { QueryFeedbackResponseDataStatus } from "@inkeep/inkeep-analytics/models/components"; - -let value: QueryFeedbackResponseDataStatus = "resolved"; -``` - -## Values - -```typescript -"unreviewed" | "flagged" | "deferred" | "resolved" -``` \ No newline at end of file diff --git a/docs/models/components/queryfeedbackresponsedatauserproperties.md b/docs/models/components/queryfeedbackresponsedatauserproperties.md index e365d307..a9d1e51e 100644 --- a/docs/models/components/queryfeedbackresponsedatauserproperties.md +++ b/docs/models/components/queryfeedbackresponsedatauserproperties.md @@ -20,5 +20,4 @@ let value: QueryFeedbackResponseDataUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.QueryFeedbackResponseDataUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.QueryFeedbackResponseDataUserType](../../models/components/queryfeedbackresponsedatausertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/queryfeedbackresponsedatausertype.md b/docs/models/components/queryfeedbackresponsedatausertype.md deleted file mode 100644 index 8b69fa68..00000000 --- a/docs/models/components/queryfeedbackresponsedatausertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# QueryFeedbackResponseDataUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { QueryFeedbackResponseDataUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: QueryFeedbackResponseDataUserType = "user"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/querysemanticthreadsresponsedatauserproperties.md b/docs/models/components/querysemanticthreadsresponsedatauserproperties.md index 1c13178b..a2cf6168 100644 --- a/docs/models/components/querysemanticthreadsresponsedatauserproperties.md +++ b/docs/models/components/querysemanticthreadsresponsedatauserproperties.md @@ -20,5 +20,4 @@ let value: QuerySemanticThreadsResponseDataUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.QuerySemanticThreadsResponseDataUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.QuerySemanticThreadsResponseDataUserType](../../models/components/querysemanticthreadsresponsedatausertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/querysemanticthreadsresponsedatausertype.md b/docs/models/components/querysemanticthreadsresponsedatausertype.md deleted file mode 100644 index 08cb2d11..00000000 --- a/docs/models/components/querysemanticthreadsresponsedatausertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# QuerySemanticThreadsResponseDataUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { QuerySemanticThreadsResponseDataUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: QuerySemanticThreadsResponseDataUserType = "user"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/selectconversationeventuserproperties.md b/docs/models/components/selectconversationeventuserproperties.md index 133c3f11..fe6f3e03 100644 --- a/docs/models/components/selectconversationeventuserproperties.md +++ b/docs/models/components/selectconversationeventuserproperties.md @@ -20,5 +20,4 @@ let value: SelectConversationEventUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.SelectConversationEventUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.SelectConversationEventUserType](../../models/components/selectconversationeventusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/selectconversationeventusertype.md b/docs/models/components/selectconversationeventusertype.md deleted file mode 100644 index 90dc73e6..00000000 --- a/docs/models/components/selectconversationeventusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# SelectConversationEventUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { SelectConversationEventUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: SelectConversationEventUserType = "member"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/selectmessageeventuserproperties.md b/docs/models/components/selectmessageeventuserproperties.md index 7c21c441..ba4ec4f3 100644 --- a/docs/models/components/selectmessageeventuserproperties.md +++ b/docs/models/components/selectmessageeventuserproperties.md @@ -20,5 +20,4 @@ let value: SelectMessageEventUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.SelectMessageEventUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.SelectMessageEventUserType](../../models/components/selectmessageeventusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/selectmessageeventusertype.md b/docs/models/components/selectmessageeventusertype.md deleted file mode 100644 index c9826dfe..00000000 --- a/docs/models/components/selectmessageeventusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# SelectMessageEventUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { SelectMessageEventUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: SelectMessageEventUserType = "member"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/selectsearcheventuserproperties.md b/docs/models/components/selectsearcheventuserproperties.md index d4558fb9..2d1a0178 100644 --- a/docs/models/components/selectsearcheventuserproperties.md +++ b/docs/models/components/selectsearcheventuserproperties.md @@ -20,5 +20,4 @@ let value: SelectSearchEventUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.SelectSearchEventUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.SelectSearchEventUserType](../../models/components/selectsearcheventusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/selectsearcheventusertype.md b/docs/models/components/selectsearcheventusertype.md deleted file mode 100644 index bade1276..00000000 --- a/docs/models/components/selectsearcheventusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# SelectSearchEventUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { SelectSearchEventUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: SelectSearchEventUserType = "member"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/supportcopilotconversationuserproperties.md b/docs/models/components/supportcopilotconversationuserproperties.md index 0c341952..c9810518 100644 --- a/docs/models/components/supportcopilotconversationuserproperties.md +++ b/docs/models/components/supportcopilotconversationuserproperties.md @@ -20,5 +20,4 @@ let value: SupportCopilotConversationUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.SupportCopilotConversationUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.SupportCopilotConversationUserType](../../models/components/supportcopilotconversationusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/supportcopilotconversationusertype.md b/docs/models/components/supportcopilotconversationusertype.md deleted file mode 100644 index fc51fcaa..00000000 --- a/docs/models/components/supportcopilotconversationusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# SupportCopilotConversationUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { SupportCopilotConversationUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: SupportCopilotConversationUserType = "user"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/supportcopilotmessageuserproperties.md b/docs/models/components/supportcopilotmessageuserproperties.md index 10ada919..c0cb6fe6 100644 --- a/docs/models/components/supportcopilotmessageuserproperties.md +++ b/docs/models/components/supportcopilotmessageuserproperties.md @@ -20,5 +20,4 @@ let value: SupportCopilotMessageUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.SupportCopilotMessageUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.SupportCopilotMessageUserType](../../models/components/supportcopilotmessageusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/supportcopilotmessageusertype.md b/docs/models/components/supportcopilotmessageusertype.md deleted file mode 100644 index 4a709f6b..00000000 --- a/docs/models/components/supportcopilotmessageusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# SupportCopilotMessageUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { SupportCopilotMessageUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: SupportCopilotMessageUserType = "member"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/supportticketconversationuserproperties.md b/docs/models/components/supportticketconversationuserproperties.md index 09ebb7e7..ad21a2b2 100644 --- a/docs/models/components/supportticketconversationuserproperties.md +++ b/docs/models/components/supportticketconversationuserproperties.md @@ -20,5 +20,4 @@ let value: SupportTicketConversationUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.SupportTicketConversationUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.SupportTicketConversationUserType](../../models/components/supportticketconversationusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/supportticketconversationusertype.md b/docs/models/components/supportticketconversationusertype.md deleted file mode 100644 index 8b71f798..00000000 --- a/docs/models/components/supportticketconversationusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# SupportTicketConversationUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { SupportTicketConversationUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: SupportTicketConversationUserType = "member"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/supportticketmessageuserproperties.md b/docs/models/components/supportticketmessageuserproperties.md index c275c0e0..406c5f49 100644 --- a/docs/models/components/supportticketmessageuserproperties.md +++ b/docs/models/components/supportticketmessageuserproperties.md @@ -20,5 +20,4 @@ let value: SupportTicketMessageUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.SupportTicketMessageUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.SupportTicketMessageUserType](../../models/components/supportticketmessageusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/supportticketmessageusertype.md b/docs/models/components/supportticketmessageusertype.md deleted file mode 100644 index aa9b561f..00000000 --- a/docs/models/components/supportticketmessageusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# SupportTicketMessageUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { SupportTicketMessageUserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: SupportTicketMessageUserType = "user"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/userproperties.md b/docs/models/components/userproperties.md index b3eb1211..d4296cb5 100644 --- a/docs/models/components/userproperties.md +++ b/docs/models/components/userproperties.md @@ -20,5 +20,4 @@ let value: UserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *components.UserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [components.UserType](../../models/components/usertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/components/usertype.md b/docs/models/components/usertype.md deleted file mode 100644 index e87135f0..00000000 --- a/docs/models/components/usertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# UserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { UserType } from "@inkeep/inkeep-analytics/models/components"; - -let value: UserType = "member"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/components/where.md b/docs/models/components/where.md index 44e44217..36cb1715 100644 --- a/docs/models/components/where.md +++ b/docs/models/components/where.md @@ -112,7 +112,7 @@ const value: components.SemanticThreadFilterOR = { ```typescript const value: components.FeedbackFilterCondition = { condition: { - field: "integrationId", + field: "conversationId", operator: "jsonContainedBy", value: "", }, diff --git a/docs/models/operations/getfeedbackbyidresponsebody.md b/docs/models/operations/getfeedbackbyidresponsebody.md index b9287100..125c0f74 100644 --- a/docs/models/operations/getfeedbackbyidresponsebody.md +++ b/docs/models/operations/getfeedbackbyidresponsebody.md @@ -11,22 +11,22 @@ let value: GetFeedbackByIdResponseBody = { id: "", type: "positive", messageId: "", + createdAt: "1718482638517", userProperties: { identificationType: "COOKIED", }, conversation: { id: "", externalId: "", - externalUrl: "https://comfortable-maintainer.net", - type: "openai", - supportTicketConversationId: "", - createdAt: "1706469649109", - updatedAt: "1735687700115", + externalUrl: "https://nautical-scratch.name/", + type: "support_copilot", + supportTicketConversationId: null, + createdAt: "1734996497674", + updatedAt: "1735689340275", projectId: "", integrationId: "", visibility: "private", messages: [], - messagesOpenAIFormat: [], }, message: { id: "", @@ -49,7 +49,7 @@ let value: GetFeedbackByIdResponseBody = { | `id` | *string* | :heavy_check_mark: | N/A | | `type` | [operations.GetFeedbackByIdType](../../models/operations/getfeedbackbyidtype.md) | :heavy_check_mark: | N/A | | `messageId` | *string* | :heavy_check_mark: | N/A | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | A timestamp in ISO 8601 format with timezone information. If not provided, the current time will be used. | +| `createdAt` | *string* | :heavy_check_mark: | N/A | | `reasons` | [operations.GetFeedbackByIdReasons](../../models/operations/getfeedbackbyidreasons.md)[] | :heavy_minus_sign: | N/A | | `properties` | Record | :heavy_minus_sign: | A customizable collection of custom properties or attributes. | | `userProperties` | [operations.GetFeedbackByIdUserProperties](../../models/operations/getfeedbackbyiduserproperties.md) | :heavy_minus_sign: | A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. | diff --git a/docs/models/operations/getfeedbackbyiduserproperties.md b/docs/models/operations/getfeedbackbyiduserproperties.md index fcd2a015..32904559 100644 --- a/docs/models/operations/getfeedbackbyiduserproperties.md +++ b/docs/models/operations/getfeedbackbyiduserproperties.md @@ -20,5 +20,4 @@ let value: GetFeedbackByIdUserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *operations.GetFeedbackByIdUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [operations.GetFeedbackByIdUserType](../../models/operations/getfeedbackbyidusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/getfeedbackbyidusertype.md b/docs/models/operations/getfeedbackbyidusertype.md deleted file mode 100644 index d26fe6e5..00000000 --- a/docs/models/operations/getfeedbackbyidusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# GetFeedbackByIdUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { GetFeedbackByIdUserType } from "@inkeep/inkeep-analytics/models/operations"; - -let value: GetFeedbackByIdUserType = "member"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/operations/logfeedbacktype.md b/docs/models/operations/logfeedbacktype.md deleted file mode 100644 index 4c954c6f..00000000 --- a/docs/models/operations/logfeedbacktype.md +++ /dev/null @@ -1,15 +0,0 @@ -# LogFeedbackType - -## Example Usage - -```typescript -import { LogFeedbackType } from "@inkeep/inkeep-analytics/models/operations"; - -let value: LogFeedbackType = "negative"; -``` - -## Values - -```typescript -"positive" | "negative" -``` \ No newline at end of file diff --git a/docs/models/operations/logfeedbackusertype.md b/docs/models/operations/logfeedbackusertype.md deleted file mode 100644 index f219fc16..00000000 --- a/docs/models/operations/logfeedbackusertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# LogFeedbackUserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { LogFeedbackUserType } from "@inkeep/inkeep-analytics/models/operations"; - -let value: LogFeedbackUserType = "member"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/models/operations/logfeedbackid.md b/docs/models/operations/submitfeedbackid.md similarity index 92% rename from docs/models/operations/logfeedbackid.md rename to docs/models/operations/submitfeedbackid.md index 1ad79880..b6b9342c 100644 --- a/docs/models/operations/logfeedbackid.md +++ b/docs/models/operations/submitfeedbackid.md @@ -1,4 +1,4 @@ -# LogFeedbackId +# SubmitFeedbackId The unique identifier for the user. This value is sent by the inkeep widget. diff --git a/docs/models/operations/logfeedbackreasons.md b/docs/models/operations/submitfeedbackreasons.md similarity index 75% rename from docs/models/operations/logfeedbackreasons.md rename to docs/models/operations/submitfeedbackreasons.md index b8fece47..6222d26b 100644 --- a/docs/models/operations/logfeedbackreasons.md +++ b/docs/models/operations/submitfeedbackreasons.md @@ -1,11 +1,11 @@ -# LogFeedbackReasons +# SubmitFeedbackReasons ## Example Usage ```typescript -import { LogFeedbackReasons } from "@inkeep/inkeep-analytics/models/operations"; +import { SubmitFeedbackReasons } from "@inkeep/inkeep-analytics/models/operations"; -let value: LogFeedbackReasons = { +let value: SubmitFeedbackReasons = { label: "", details: "", }; diff --git a/docs/models/operations/logfeedbackrequestbody.md b/docs/models/operations/submitfeedbackrequestbody.md similarity index 97% rename from docs/models/operations/logfeedbackrequestbody.md rename to docs/models/operations/submitfeedbackrequestbody.md index 3ed831a6..30329eed 100644 --- a/docs/models/operations/logfeedbackrequestbody.md +++ b/docs/models/operations/submitfeedbackrequestbody.md @@ -1,13 +1,13 @@ -# LogFeedbackRequestBody +# SubmitFeedbackRequestBody Note: The maximum size of the request body is 2 MB. ## Example Usage ```typescript -import { LogFeedbackRequestBody } from "@inkeep/inkeep-analytics/models/operations"; +import { SubmitFeedbackRequestBody } from "@inkeep/inkeep-analytics/models/operations"; -let value: LogFeedbackRequestBody = { +let value: SubmitFeedbackRequestBody = { type: "positive", messageId: "", userProperties: { diff --git a/docs/models/operations/logfeedbackresponsebody.md b/docs/models/operations/submitfeedbackresponsebody.md similarity index 83% rename from docs/models/operations/logfeedbackresponsebody.md rename to docs/models/operations/submitfeedbackresponsebody.md index 6e5df629..badca937 100644 --- a/docs/models/operations/logfeedbackresponsebody.md +++ b/docs/models/operations/submitfeedbackresponsebody.md @@ -1,17 +1,20 @@ -# LogFeedbackResponseBody +# SubmitFeedbackResponseBody Feedback provided successfully ## Example Usage ```typescript -import { LogFeedbackResponseBody } from "@inkeep/inkeep-analytics/models/operations"; +import { SubmitFeedbackResponseBody } from "@inkeep/inkeep-analytics/models/operations"; -let value: LogFeedbackResponseBody = { +let value: SubmitFeedbackResponseBody = { id: "", type: "negative", messageId: "", - userProperties: null, + createdAt: "1725781975834", + userProperties: { + identificationType: "COOKIED", + }, }; ``` @@ -20,9 +23,9 @@ let value: LogFeedbackResponseBody = { | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | `id` | *string* | :heavy_check_mark: | N/A | -| `type` | [operations.LogFeedbackType](../../models/operations/logfeedbacktype.md) | :heavy_check_mark: | N/A | +| `type` | [operations.SubmitFeedbackType](../../models/operations/submitfeedbacktype.md) | :heavy_check_mark: | N/A | | `messageId` | *string* | :heavy_check_mark: | N/A | -| `createdAt` | [Date](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) | :heavy_minus_sign: | A timestamp in ISO 8601 format with timezone information. If not provided, the current time will be used. | -| `reasons` | [operations.LogFeedbackReasons](../../models/operations/logfeedbackreasons.md)[] | :heavy_minus_sign: | N/A | +| `createdAt` | *string* | :heavy_check_mark: | N/A | +| `reasons` | [operations.SubmitFeedbackReasons](../../models/operations/submitfeedbackreasons.md)[] | :heavy_minus_sign: | N/A | | `properties` | Record | :heavy_minus_sign: | A customizable collection of custom properties or attributes. | -| `userProperties` | [operations.LogFeedbackUserProperties](../../models/operations/logfeedbackuserproperties.md) | :heavy_minus_sign: | A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. | \ No newline at end of file +| `userProperties` | [operations.SubmitFeedbackUserProperties](../../models/operations/submitfeedbackuserproperties.md) | :heavy_minus_sign: | A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. | \ No newline at end of file diff --git a/docs/models/operations/submitfeedbacktype.md b/docs/models/operations/submitfeedbacktype.md new file mode 100644 index 00000000..6100685a --- /dev/null +++ b/docs/models/operations/submitfeedbacktype.md @@ -0,0 +1,15 @@ +# SubmitFeedbackType + +## Example Usage + +```typescript +import { SubmitFeedbackType } from "@inkeep/inkeep-analytics/models/operations"; + +let value: SubmitFeedbackType = "negative"; +``` + +## Values + +```typescript +"positive" | "negative" +``` \ No newline at end of file diff --git a/docs/models/operations/logfeedbackuserid.md b/docs/models/operations/submitfeedbackuserid.md similarity index 93% rename from docs/models/operations/logfeedbackuserid.md rename to docs/models/operations/submitfeedbackuserid.md index a1c24434..0e478638 100644 --- a/docs/models/operations/logfeedbackuserid.md +++ b/docs/models/operations/submitfeedbackuserid.md @@ -1,4 +1,4 @@ -# LogFeedbackUserId +# SubmitFeedbackUserId The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. diff --git a/docs/models/operations/logfeedbackuserproperties.md b/docs/models/operations/submitfeedbackuserproperties.md similarity index 82% rename from docs/models/operations/logfeedbackuserproperties.md rename to docs/models/operations/submitfeedbackuserproperties.md index d3cb8541..02f0f731 100644 --- a/docs/models/operations/logfeedbackuserproperties.md +++ b/docs/models/operations/submitfeedbackuserproperties.md @@ -1,13 +1,13 @@ -# LogFeedbackUserProperties +# SubmitFeedbackUserProperties A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. ## Example Usage ```typescript -import { LogFeedbackUserProperties } from "@inkeep/inkeep-analytics/models/operations"; +import { SubmitFeedbackUserProperties } from "@inkeep/inkeep-analytics/models/operations"; -let value: LogFeedbackUserProperties = { +let value: SubmitFeedbackUserProperties = { identificationType: "COOKIED", }; ``` @@ -16,9 +16,8 @@ let value: LogFeedbackUserProperties = { | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *operations.LogFeedbackId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the inkeep widget. | | +| `id` | *operations.SubmitFeedbackId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the inkeep widget. | | | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | -| `userId` | *operations.LogFeedbackUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | +| `userId` | *operations.SubmitFeedbackUserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [operations.LogFeedbackUserType](../../models/operations/logfeedbackusertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/userproperties.md b/docs/models/operations/userproperties.md index 4459208d..381b875e 100644 --- a/docs/models/operations/userproperties.md +++ b/docs/models/operations/userproperties.md @@ -20,5 +20,4 @@ let value: UserProperties = { | `identificationType` | *string* | :heavy_minus_sign: | The type of identification for the user. This value is sent by the inkeep widget. | COOKIED | | `userId` | *operations.UserId* | :heavy_minus_sign: | The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `supportAgentName` | *string* | :heavy_minus_sign: | The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | -| `userType` | [operations.UserType](../../models/operations/usertype.md) | :heavy_minus_sign: | The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. | | | `additionalProperties` | Record | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/usertype.md b/docs/models/operations/usertype.md deleted file mode 100644 index 2bdd8d36..00000000 --- a/docs/models/operations/usertype.md +++ /dev/null @@ -1,17 +0,0 @@ -# UserType - -The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - -## Example Usage - -```typescript -import { UserType } from "@inkeep/inkeep-analytics/models/operations"; - -let value: UserType = "member"; -``` - -## Values - -```typescript -"user" | "member" -``` \ No newline at end of file diff --git a/docs/sdks/feedback/README.md b/docs/sdks/feedback/README.md index 631dbcf5..7f16ff1e 100644 --- a/docs/sdks/feedback/README.md +++ b/docs/sdks/feedback/README.md @@ -7,15 +7,13 @@ Use to provide positive or negative feedback along with details. ### Available Operations -* [submit](#submit) - Log Feedback +* [submit](#submit) - Submit Feedback * [list](#list) - Get All Feedback * [getFeedbackById](#getfeedbackbyid) - Get Feedback by ID ## submit -Logs new feedback or updates an existing one. - -**API Key Types:** `API` +Submit Feedback ### Example Usage @@ -30,9 +28,7 @@ async function run() { const result = await inkeepAnalytics.feedback.submit({ type: "positive", messageId: "", - userProperties: { - identificationType: "COOKIED", - }, + userProperties: null, }); console.log(result); @@ -59,9 +55,7 @@ async function run() { const res = await feedbackSubmit(inkeepAnalytics, { type: "positive", messageId: "", - userProperties: { - identificationType: "COOKIED", - }, + userProperties: null, }); if (res.ok) { const { value: result } = res; @@ -95,14 +89,14 @@ import { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.LogFeedbackRequestBody](../../models/operations/logfeedbackrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | +| `request` | [operations.SubmitFeedbackRequestBody](../../models/operations/submitfeedbackrequestbody.md) | :heavy_check_mark: | The request object to use for the request. | | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | ### Response -**Promise\<[operations.LogFeedbackResponseBody](../../models/operations/logfeedbackresponsebody.md)\>** +**Promise\<[operations.SubmitFeedbackResponseBody](../../models/operations/submitfeedbackresponsebody.md)\>** ### Errors diff --git a/jsr.json b/jsr.json index 48986b8c..6cca21e2 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@inkeep/inkeep-analytics", - "version": "0.2.4-alpha.26", + "version": "0.2.5-dev.1", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 86b0fbfb..0a0fbd0f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@inkeep/inkeep-analytics", - "version": "0.2.4-alpha.26", + "version": "0.2.5-dev.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@inkeep/inkeep-analytics", - "version": "0.2.4-alpha.26", + "version": "0.2.5-dev.1", "bin": { "mcp": "bin/mcp-server.js" }, diff --git a/package.json b/package.json index 9511b170..0847e2d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@inkeep/inkeep-analytics", - "version": "0.2.4-alpha.26", + "version": "0.2.5-dev.1", "author": "Speakeasy", "type": "module", "bin": { diff --git a/src/funcs/feedbackSubmit.ts b/src/funcs/feedbackSubmit.ts index bfdce7a3..732fadac 100644 --- a/src/funcs/feedbackSubmit.ts +++ b/src/funcs/feedbackSubmit.ts @@ -26,20 +26,15 @@ import { APICall, APIPromise } from "../types/async.js"; import { Result } from "../types/fp.js"; /** - * Log Feedback - * - * @remarks - * Logs new feedback or updates an existing one. - * - * **API Key Types:** `API` + * Submit Feedback */ export function feedbackSubmit( client: InkeepAnalyticsCore, - request: operations.LogFeedbackRequestBody, + request: operations.SubmitFeedbackRequestBody, options?: RequestOptions, ): APIPromise< Result< - operations.LogFeedbackResponseBody, + operations.SubmitFeedbackResponseBody, | errors.BadRequest | errors.Unauthorized | errors.Forbidden @@ -64,12 +59,12 @@ export function feedbackSubmit( async function $do( client: InkeepAnalyticsCore, - request: operations.LogFeedbackRequestBody, + request: operations.SubmitFeedbackRequestBody, options?: RequestOptions, ): Promise< [ Result< - operations.LogFeedbackResponseBody, + operations.SubmitFeedbackResponseBody, | errors.BadRequest | errors.Unauthorized | errors.Forbidden @@ -89,7 +84,7 @@ async function $do( > { const parsed = safeParse( request, - (value) => operations.LogFeedbackRequestBody$outboundSchema.parse(value), + (value) => operations.SubmitFeedbackRequestBody$outboundSchema.parse(value), "Input validation failed", ); if (!parsed.ok) { @@ -114,7 +109,7 @@ async function $do( const context = { options: client._options, baseURL: options?.serverURL ?? client._baseURL ?? "", - operationID: "logFeedback", + operationID: "submitFeedback", oAuth2Scopes: [], resolvedSecurity: requestSecurity, @@ -167,7 +162,7 @@ async function $do( }; const [result] = await M.match< - operations.LogFeedbackResponseBody, + operations.SubmitFeedbackResponseBody, | errors.BadRequest | errors.Unauthorized | errors.Forbidden @@ -182,7 +177,7 @@ async function $do( | UnexpectedClientError | SDKValidationError >( - M.json(200, operations.LogFeedbackResponseBody$inboundSchema), + M.json(200, operations.SubmitFeedbackResponseBody$inboundSchema), M.jsonErr(400, errors.BadRequest$inboundSchema, { ctype: "application/problem+json", }), diff --git a/src/lib/config.ts b/src/lib/config.ts index 8ecd0d41..38adab0d 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "0.1.1", - sdkVersion: "0.2.4-alpha.26", - genVersion: "2.628.0", + sdkVersion: "0.2.5-dev.1", + genVersion: "2.629.1", userAgent: - "speakeasy-sdk/typescript 0.2.4-alpha.26 2.628.0 0.1.1 @inkeep/inkeep-analytics", + "speakeasy-sdk/typescript 0.2.5-dev.1 2.629.1 0.1.1 @inkeep/inkeep-analytics", } as const; diff --git a/src/lib/security.ts b/src/lib/security.ts index 8acb9e88..c2ee5410 100644 --- a/src/lib/security.ts +++ b/src/lib/security.ts @@ -7,8 +7,8 @@ import { env } from "./env.js"; type OAuth2PasswordFlow = { username: string; - password?: string | undefined; - clientID: string; + password: string; + clientID?: string | undefined; clientSecret?: string | undefined; tokenURL: string; }; diff --git a/src/mcp-server/mcp-server.ts b/src/mcp-server/mcp-server.ts index 7762d365..545df836 100644 --- a/src/mcp-server/mcp-server.ts +++ b/src/mcp-server/mcp-server.ts @@ -19,7 +19,7 @@ const routes = buildRouteMap({ export const app = buildApplication(routes, { name: "mcp", versionInfo: { - currentVersion: "0.2.4-alpha.26", + currentVersion: "0.2.5-dev.1", }, }); diff --git a/src/mcp-server/server.ts b/src/mcp-server/server.ts index 288eeb70..34ed0392 100644 --- a/src/mcp-server/server.ts +++ b/src/mcp-server/server.ts @@ -34,7 +34,7 @@ export function createMCPServer(deps: { }) { const server = new McpServer({ name: "InkeepAnalytics", - version: "0.2.4-alpha.26", + version: "0.2.5-dev.1", }); const client = new InkeepAnalyticsCore({ diff --git a/src/mcp-server/tools/feedbackSubmit.ts b/src/mcp-server/tools/feedbackSubmit.ts index c3b5b74a..7790f303 100644 --- a/src/mcp-server/tools/feedbackSubmit.ts +++ b/src/mcp-server/tools/feedbackSubmit.ts @@ -7,16 +7,12 @@ import * as operations from "../../models/operations/index.js"; import { formatResult, ToolDefinition } from "../tools.js"; const args = { - request: operations.LogFeedbackRequestBody$inboundSchema, + request: operations.SubmitFeedbackRequestBody$inboundSchema, }; export const tool$feedbackSubmit: ToolDefinition = { name: "feedback-submit", - description: `Log Feedback - -Logs new feedback or updates an existing one. - -**API Key Types:** \`API\``, + description: `Submit Feedback`, args, tool: async (client, args, ctx) => { const [result, apiCall] = await feedbackSubmit( diff --git a/src/models/components/createopenaiconversation.ts b/src/models/components/createopenaiconversation.ts index 0a41451b..df8c4bf1 100644 --- a/src/models/components/createopenaiconversation.ts +++ b/src/models/components/createopenaiconversation.ts @@ -39,18 +39,6 @@ export type Id = string | number; */ export type UserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const UserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type UserType = ClosedEnum; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -71,10 +59,6 @@ export type UserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: UserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -133,20 +117,6 @@ export type CreateOpenAIConversationId = string | number; */ export type CreateOpenAIConversationUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const CreateOpenAIConversationUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type CreateOpenAIConversationUserType = ClosedEnum< - typeof CreateOpenAIConversationUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -167,10 +137,6 @@ export type CreateOpenAIConversationUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: CreateOpenAIConversationUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -334,25 +300,6 @@ export function userIdFromJSON( ); } -/** @internal */ -export const UserType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(UserType); - -/** @internal */ -export const UserType$outboundSchema: z.ZodNativeEnum = - UserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserType$ { - /** @deprecated use `UserType$inboundSchema` instead. */ - export const inboundSchema = UserType$inboundSchema; - /** @deprecated use `UserType$outboundSchema` instead. */ - export const outboundSchema = UserType$outboundSchema; -} - /** @internal */ export const UserProperties$inboundSchema: z.ZodType< UserProperties, @@ -364,7 +311,6 @@ export const UserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(UserType$inboundSchema).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -376,7 +322,6 @@ export type UserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -390,7 +335,6 @@ export const UserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(UserType$outboundSchema).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { @@ -764,27 +708,6 @@ export function createOpenAIConversationUserIdFromJSON( ); } -/** @internal */ -export const CreateOpenAIConversationUserType$inboundSchema: z.ZodNativeEnum< - typeof CreateOpenAIConversationUserType -> = z.nativeEnum(CreateOpenAIConversationUserType); - -/** @internal */ -export const CreateOpenAIConversationUserType$outboundSchema: z.ZodNativeEnum< - typeof CreateOpenAIConversationUserType -> = CreateOpenAIConversationUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateOpenAIConversationUserType$ { - /** @deprecated use `CreateOpenAIConversationUserType$inboundSchema` instead. */ - export const inboundSchema = CreateOpenAIConversationUserType$inboundSchema; - /** @deprecated use `CreateOpenAIConversationUserType$outboundSchema` instead. */ - export const outboundSchema = CreateOpenAIConversationUserType$outboundSchema; -} - /** @internal */ export const CreateOpenAIConversationUserProperties$inboundSchema: z.ZodType< CreateOpenAIConversationUserProperties, @@ -796,8 +719,6 @@ export const CreateOpenAIConversationUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(CreateOpenAIConversationUserType$inboundSchema) - .optional(), }).catchall(z.any()), "additionalProperties", true, @@ -809,7 +730,6 @@ export type CreateOpenAIConversationUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -823,8 +743,6 @@ export const CreateOpenAIConversationUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(CreateOpenAIConversationUserType$outboundSchema) - .optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/createsupportcopilotconversation.ts b/src/models/components/createsupportcopilotconversation.ts index 1a49ddc8..cf48c757 100644 --- a/src/models/components/createsupportcopilotconversation.ts +++ b/src/models/components/createsupportcopilotconversation.ts @@ -29,20 +29,6 @@ export type CreateSupportCopilotConversationId = string | number; */ export type CreateSupportCopilotConversationUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const CreateSupportCopilotConversationUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type CreateSupportCopilotConversationUserType = ClosedEnum< - typeof CreateSupportCopilotConversationUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -63,10 +49,6 @@ export type CreateSupportCopilotConversationUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: CreateSupportCopilotConversationUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -116,20 +98,6 @@ export type CreateSupportCopilotConversationMessagesId = string | number; */ export type CreateSupportCopilotConversationMessagesUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const CreateSupportCopilotConversationMessagesUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type CreateSupportCopilotConversationMessagesUserType = ClosedEnum< - typeof CreateSupportCopilotConversationMessagesUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -150,13 +118,6 @@ export type CreateSupportCopilotConversationMessagesUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: - | CreateSupportCopilotConversationMessagesUserType - | null - | undefined; additionalProperties?: { [k: string]: any }; }; @@ -351,29 +312,6 @@ export function createSupportCopilotConversationUserIdFromJSON( ); } -/** @internal */ -export const CreateSupportCopilotConversationUserType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateSupportCopilotConversationUserType); - -/** @internal */ -export const CreateSupportCopilotConversationUserType$outboundSchema: - z.ZodNativeEnum = - CreateSupportCopilotConversationUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationUserType$ { - /** @deprecated use `CreateSupportCopilotConversationUserType$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportCopilotConversationUserType$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationUserType$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationUserType$outboundSchema; -} - /** @internal */ export const CreateSupportCopilotConversationUserProperties$inboundSchema: z.ZodType< @@ -386,9 +324,6 @@ export const CreateSupportCopilotConversationUserProperties$inboundSchema: identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable( - CreateSupportCopilotConversationUserType$inboundSchema, - ).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -400,7 +335,6 @@ export type CreateSupportCopilotConversationUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -415,9 +349,6 @@ export const CreateSupportCopilotConversationUserProperties$outboundSchema: identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable( - CreateSupportCopilotConversationUserType$outboundSchema, - ).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { @@ -789,29 +720,6 @@ export function createSupportCopilotConversationMessagesUserIdFromJSON( ); } -/** @internal */ -export const CreateSupportCopilotConversationMessagesUserType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateSupportCopilotConversationMessagesUserType); - -/** @internal */ -export const CreateSupportCopilotConversationMessagesUserType$outboundSchema: - z.ZodNativeEnum = - CreateSupportCopilotConversationMessagesUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportCopilotConversationMessagesUserType$ { - /** @deprecated use `CreateSupportCopilotConversationMessagesUserType$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportCopilotConversationMessagesUserType$inboundSchema; - /** @deprecated use `CreateSupportCopilotConversationMessagesUserType$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportCopilotConversationMessagesUserType$outboundSchema; -} - /** @internal */ export const CreateSupportCopilotConversationMessagesUserProperties$inboundSchema: z.ZodType< @@ -824,9 +732,6 @@ export const CreateSupportCopilotConversationMessagesUserProperties$inboundSchem identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable( - CreateSupportCopilotConversationMessagesUserType$inboundSchema, - ).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -838,7 +743,6 @@ export type CreateSupportCopilotConversationMessagesUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -853,9 +757,6 @@ export const CreateSupportCopilotConversationMessagesUserProperties$outboundSche identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable( - CreateSupportCopilotConversationMessagesUserType$outboundSchema, - ).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/createsupportticketconversation.ts b/src/models/components/createsupportticketconversation.ts index 4c9a8634..7fa993ab 100644 --- a/src/models/components/createsupportticketconversation.ts +++ b/src/models/components/createsupportticketconversation.ts @@ -29,20 +29,6 @@ export type CreateSupportTicketConversationId = string | number; */ export type CreateSupportTicketConversationUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const CreateSupportTicketConversationUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type CreateSupportTicketConversationUserType = ClosedEnum< - typeof CreateSupportTicketConversationUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -63,10 +49,6 @@ export type CreateSupportTicketConversationUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: CreateSupportTicketConversationUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -116,20 +98,6 @@ export type CreateSupportTicketConversationMessagesId = string | number; */ export type CreateSupportTicketConversationMessagesUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const CreateSupportTicketConversationMessagesUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type CreateSupportTicketConversationMessagesUserType = ClosedEnum< - typeof CreateSupportTicketConversationMessagesUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -150,10 +118,6 @@ export type CreateSupportTicketConversationMessagesUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: CreateSupportTicketConversationMessagesUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -345,29 +309,6 @@ export function createSupportTicketConversationUserIdFromJSON( ); } -/** @internal */ -export const CreateSupportTicketConversationUserType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateSupportTicketConversationUserType); - -/** @internal */ -export const CreateSupportTicketConversationUserType$outboundSchema: - z.ZodNativeEnum = - CreateSupportTicketConversationUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationUserType$ { - /** @deprecated use `CreateSupportTicketConversationUserType$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportTicketConversationUserType$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationUserType$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationUserType$outboundSchema; -} - /** @internal */ export const CreateSupportTicketConversationUserProperties$inboundSchema: z.ZodType< @@ -380,9 +321,6 @@ export const CreateSupportTicketConversationUserProperties$inboundSchema: identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable( - CreateSupportTicketConversationUserType$inboundSchema, - ).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -394,7 +332,6 @@ export type CreateSupportTicketConversationUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -409,8 +346,6 @@ export const CreateSupportTicketConversationUserProperties$outboundSchema: identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(CreateSupportTicketConversationUserType$outboundSchema) - .optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { @@ -779,29 +714,6 @@ export function createSupportTicketConversationMessagesUserIdFromJSON( ); } -/** @internal */ -export const CreateSupportTicketConversationMessagesUserType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(CreateSupportTicketConversationMessagesUserType); - -/** @internal */ -export const CreateSupportTicketConversationMessagesUserType$outboundSchema: - z.ZodNativeEnum = - CreateSupportTicketConversationMessagesUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace CreateSupportTicketConversationMessagesUserType$ { - /** @deprecated use `CreateSupportTicketConversationMessagesUserType$inboundSchema` instead. */ - export const inboundSchema = - CreateSupportTicketConversationMessagesUserType$inboundSchema; - /** @deprecated use `CreateSupportTicketConversationMessagesUserType$outboundSchema` instead. */ - export const outboundSchema = - CreateSupportTicketConversationMessagesUserType$outboundSchema; -} - /** @internal */ export const CreateSupportTicketConversationMessagesUserProperties$inboundSchema: z.ZodType< @@ -814,9 +726,6 @@ export const CreateSupportTicketConversationMessagesUserProperties$inboundSchema identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable( - CreateSupportTicketConversationMessagesUserType$inboundSchema, - ).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -828,7 +737,6 @@ export type CreateSupportTicketConversationMessagesUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -843,9 +751,6 @@ export const CreateSupportTicketConversationMessagesUserProperties$outboundSchem identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable( - CreateSupportTicketConversationMessagesUserType$outboundSchema, - ).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/feedbackaggregationselection.ts b/src/models/components/feedbackaggregationselection.ts index af9de68c..a5c12d2d 100644 --- a/src/models/components/feedbackaggregationselection.ts +++ b/src/models/components/feedbackaggregationselection.ts @@ -39,8 +39,6 @@ export const FeedbackAggregationSelectionField = { ConversationId: "conversationId", ProjectId: "projectId", IntegrationId: "integrationId", - UpdatedAt: "updatedAt", - Status: "status", } as const; export type FeedbackAggregationSelectionField = ClosedEnum< typeof FeedbackAggregationSelectionField diff --git a/src/models/components/feedbackfield.ts b/src/models/components/feedbackfield.ts index ed967a8d..3667533a 100644 --- a/src/models/components/feedbackfield.ts +++ b/src/models/components/feedbackfield.ts @@ -20,8 +20,6 @@ export const FeedbackField = { ConversationId: "conversationId", ProjectId: "projectId", IntegrationId: "integrationId", - UpdatedAt: "updatedAt", - Status: "status", } as const; /** * Available fields for Feedback diff --git a/src/models/components/feedbackorderby.ts b/src/models/components/feedbackorderby.ts index 1889bd5c..7d355ba1 100644 --- a/src/models/components/feedbackorderby.ts +++ b/src/models/components/feedbackorderby.ts @@ -20,8 +20,6 @@ export const FeedbackOrderByField = { ConversationId: "conversationId", ProjectId: "projectId", IntegrationId: "integrationId", - UpdatedAt: "updatedAt", - Status: "status", IdHour: "id_hour", IdDay: "id_day", IdWeek: "id_week", @@ -66,14 +64,6 @@ export const FeedbackOrderByField = { IntegrationIdDay: "integrationId_day", IntegrationIdWeek: "integrationId_week", IntegrationIdMonth: "integrationId_month", - UpdatedAtHour: "updatedAt_hour", - UpdatedAtDay: "updatedAt_day", - UpdatedAtWeek: "updatedAt_week", - UpdatedAtMonth: "updatedAt_month", - StatusHour: "status_hour", - StatusDay: "status_day", - StatusWeek: "status_week", - StatusMonth: "status_month", SumId: "sum_id", SumType: "sum_type", SumMessageId: "sum_messageId", @@ -85,8 +75,6 @@ export const FeedbackOrderByField = { SumConversationId: "sum_conversationId", SumProjectId: "sum_projectId", SumIntegrationId: "sum_integrationId", - SumUpdatedAt: "sum_updatedAt", - SumStatus: "sum_status", CountId: "count_id", CountType: "count_type", CountMessageId: "count_messageId", @@ -98,8 +86,6 @@ export const FeedbackOrderByField = { CountConversationId: "count_conversationId", CountProjectId: "count_projectId", CountIntegrationId: "count_integrationId", - CountUpdatedAt: "count_updatedAt", - CountStatus: "count_status", AvgId: "avg_id", AvgType: "avg_type", AvgMessageId: "avg_messageId", @@ -111,8 +97,6 @@ export const FeedbackOrderByField = { AvgConversationId: "avg_conversationId", AvgProjectId: "avg_projectId", AvgIntegrationId: "avg_integrationId", - AvgUpdatedAt: "avg_updatedAt", - AvgStatus: "avg_status", MinId: "min_id", MinType: "min_type", MinMessageId: "min_messageId", @@ -124,8 +108,6 @@ export const FeedbackOrderByField = { MinConversationId: "min_conversationId", MinProjectId: "min_projectId", MinIntegrationId: "min_integrationId", - MinUpdatedAt: "min_updatedAt", - MinStatus: "min_status", MaxId: "max_id", MaxType: "max_type", MaxMessageId: "max_messageId", @@ -137,8 +119,6 @@ export const FeedbackOrderByField = { MaxConversationId: "max_conversationId", MaxProjectId: "max_projectId", MaxIntegrationId: "max_integrationId", - MaxUpdatedAt: "max_updatedAt", - MaxStatus: "max_status", } as const; export type FeedbackOrderByField = ClosedEnum; diff --git a/src/models/components/feedbacksimplefieldselection.ts b/src/models/components/feedbacksimplefieldselection.ts index 44b4acc4..d7936857 100644 --- a/src/models/components/feedbacksimplefieldselection.ts +++ b/src/models/components/feedbacksimplefieldselection.ts @@ -27,8 +27,6 @@ export const FeedbackSimpleFieldSelectionField = { ConversationId: "conversationId", ProjectId: "projectId", IntegrationId: "integrationId", - UpdatedAt: "updatedAt", - Status: "status", } as const; export type FeedbackSimpleFieldSelectionField = ClosedEnum< typeof FeedbackSimpleFieldSelectionField diff --git a/src/models/components/feedbacktimebasedgroupbyselection.ts b/src/models/components/feedbacktimebasedgroupbyselection.ts index adb03c47..c7853f3d 100644 --- a/src/models/components/feedbacktimebasedgroupbyselection.ts +++ b/src/models/components/feedbacktimebasedgroupbyselection.ts @@ -32,8 +32,6 @@ export const FeedbackTimeBasedGroupBySelectionField = { ConversationId: "conversationId", ProjectId: "projectId", IntegrationId: "integrationId", - UpdatedAt: "updatedAt", - Status: "status", } as const; export type FeedbackTimeBasedGroupBySelectionField = ClosedEnum< typeof FeedbackTimeBasedGroupBySelectionField diff --git a/src/models/components/getallfeedbackresponse.ts b/src/models/components/getallfeedbackresponse.ts index 36132869..313fe335 100644 --- a/src/models/components/getallfeedbackresponse.ts +++ b/src/models/components/getallfeedbackresponse.ts @@ -47,20 +47,6 @@ export type GetAllFeedbackResponseId = string | number; */ export type GetAllFeedbackResponseUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const GetAllFeedbackResponseUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type GetAllFeedbackResponseUserType = ClosedEnum< - typeof GetAllFeedbackResponseUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -81,10 +67,6 @@ export type GetAllFeedbackResponseUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: GetAllFeedbackResponseUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -92,10 +74,7 @@ export type PositiveFeedback = { id: string; type: GetAllFeedbackResponseType; messageId: string; - /** - * A timestamp in ISO 8601 format with timezone information. If not provided, the current time will be used. - */ - createdAt?: Date | null | undefined; + createdAt: string; reasons?: Array | null | undefined; /** * A customizable collection of custom properties or attributes. @@ -132,20 +111,6 @@ export type GetAllFeedbackResponseNegativeFeedbackId = string | number; */ export type GetAllFeedbackResponseNegativeFeedbackUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const GetAllFeedbackResponseNegativeFeedbackUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type GetAllFeedbackResponseNegativeFeedbackUserType = ClosedEnum< - typeof GetAllFeedbackResponseNegativeFeedbackUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -166,10 +131,6 @@ export type GetAllFeedbackResponseNegativeFeedbackUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: GetAllFeedbackResponseNegativeFeedbackUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -177,10 +138,7 @@ export type NegativeFeedback = { id: string; type: GetAllFeedbackResponseNegativeFeedbackType; messageId: string; - /** - * A timestamp in ISO 8601 format with timezone information. If not provided, the current time will be used. - */ - createdAt?: Date | null | undefined; + createdAt: string; reasons?: Array | null | undefined; /** * A customizable collection of custom properties or attributes. @@ -373,27 +331,6 @@ export function getAllFeedbackResponseUserIdFromJSON( ); } -/** @internal */ -export const GetAllFeedbackResponseUserType$inboundSchema: z.ZodNativeEnum< - typeof GetAllFeedbackResponseUserType -> = z.nativeEnum(GetAllFeedbackResponseUserType); - -/** @internal */ -export const GetAllFeedbackResponseUserType$outboundSchema: z.ZodNativeEnum< - typeof GetAllFeedbackResponseUserType -> = GetAllFeedbackResponseUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponseUserType$ { - /** @deprecated use `GetAllFeedbackResponseUserType$inboundSchema` instead. */ - export const inboundSchema = GetAllFeedbackResponseUserType$inboundSchema; - /** @deprecated use `GetAllFeedbackResponseUserType$outboundSchema` instead. */ - export const outboundSchema = GetAllFeedbackResponseUserType$outboundSchema; -} - /** @internal */ export const GetAllFeedbackResponseUserProperties$inboundSchema: z.ZodType< GetAllFeedbackResponseUserProperties, @@ -405,8 +342,6 @@ export const GetAllFeedbackResponseUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(GetAllFeedbackResponseUserType$inboundSchema) - .optional(), }).catchall(z.any()), "additionalProperties", true, @@ -418,7 +353,6 @@ export type GetAllFeedbackResponseUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -432,8 +366,6 @@ export const GetAllFeedbackResponseUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(GetAllFeedbackResponseUserType$outboundSchema) - .optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { @@ -489,9 +421,7 @@ export const PositiveFeedback$inboundSchema: z.ZodType< id: z.string(), type: GetAllFeedbackResponseType$inboundSchema, messageId: z.string(), - createdAt: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), + createdAt: z.string(), reasons: z.nullable(z.array(z.lazy(() => Reasons$inboundSchema))).optional(), properties: z.nullable(z.record(z.any())).optional(), userProperties: z.nullable( @@ -506,7 +436,7 @@ export type PositiveFeedback$Outbound = { id: string; type: string; messageId: string; - createdAt?: string | null | undefined; + createdAt: string; reasons?: Array | null | undefined; properties?: { [k: string]: any } | null | undefined; userProperties?: @@ -526,7 +456,7 @@ export const PositiveFeedback$outboundSchema: z.ZodType< id: z.string(), type: GetAllFeedbackResponseType$outboundSchema, messageId: z.string(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), + createdAt: z.string(), reasons: z.nullable(z.array(z.lazy(() => Reasons$outboundSchema))).optional(), properties: z.nullable(z.record(z.any())).optional(), userProperties: z.nullable( @@ -771,29 +701,6 @@ export function getAllFeedbackResponseNegativeFeedbackUserIdFromJSON( ); } -/** @internal */ -export const GetAllFeedbackResponseNegativeFeedbackUserType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(GetAllFeedbackResponseNegativeFeedbackUserType); - -/** @internal */ -export const GetAllFeedbackResponseNegativeFeedbackUserType$outboundSchema: - z.ZodNativeEnum = - GetAllFeedbackResponseNegativeFeedbackUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetAllFeedbackResponseNegativeFeedbackUserType$ { - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackUserType$inboundSchema` instead. */ - export const inboundSchema = - GetAllFeedbackResponseNegativeFeedbackUserType$inboundSchema; - /** @deprecated use `GetAllFeedbackResponseNegativeFeedbackUserType$outboundSchema` instead. */ - export const outboundSchema = - GetAllFeedbackResponseNegativeFeedbackUserType$outboundSchema; -} - /** @internal */ export const GetAllFeedbackResponseNegativeFeedbackUserProperties$inboundSchema: z.ZodType< @@ -806,9 +713,6 @@ export const GetAllFeedbackResponseNegativeFeedbackUserProperties$inboundSchema: identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable( - GetAllFeedbackResponseNegativeFeedbackUserType$inboundSchema, - ).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -820,7 +724,6 @@ export type GetAllFeedbackResponseNegativeFeedbackUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -835,9 +738,6 @@ export const GetAllFeedbackResponseNegativeFeedbackUserProperties$outboundSchema identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable( - GetAllFeedbackResponseNegativeFeedbackUserType$outboundSchema, - ).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { @@ -900,9 +800,7 @@ export const NegativeFeedback$inboundSchema: z.ZodType< id: z.string(), type: GetAllFeedbackResponseNegativeFeedbackType$inboundSchema, messageId: z.string(), - createdAt: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), + createdAt: z.string(), reasons: z.nullable( z.array(z.lazy(() => GetAllFeedbackResponseReasons$inboundSchema)), ).optional(), @@ -921,7 +819,7 @@ export type NegativeFeedback$Outbound = { id: string; type: string; messageId: string; - createdAt?: string | null | undefined; + createdAt: string; reasons?: Array | null | undefined; properties?: { [k: string]: any } | null | undefined; userProperties?: @@ -941,7 +839,7 @@ export const NegativeFeedback$outboundSchema: z.ZodType< id: z.string(), type: GetAllFeedbackResponseNegativeFeedbackType$outboundSchema, messageId: z.string(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), + createdAt: z.string(), reasons: z.nullable( z.array(z.lazy(() => GetAllFeedbackResponseReasons$outboundSchema)), ).optional(), diff --git a/src/models/components/insertconversationevent.ts b/src/models/components/insertconversationevent.ts index 7adbf172..1e54d875 100644 --- a/src/models/components/insertconversationevent.ts +++ b/src/models/components/insertconversationevent.ts @@ -22,20 +22,6 @@ export type InsertConversationEventId = string | number; */ export type InsertConversationEventUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const InsertConversationEventUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type InsertConversationEventUserType = ClosedEnum< - typeof InsertConversationEventUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -56,10 +42,6 @@ export type InsertConversationEventUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: InsertConversationEventUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -189,27 +171,6 @@ export function insertConversationEventUserIdFromJSON( ); } -/** @internal */ -export const InsertConversationEventUserType$inboundSchema: z.ZodNativeEnum< - typeof InsertConversationEventUserType -> = z.nativeEnum(InsertConversationEventUserType); - -/** @internal */ -export const InsertConversationEventUserType$outboundSchema: z.ZodNativeEnum< - typeof InsertConversationEventUserType -> = InsertConversationEventUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertConversationEventUserType$ { - /** @deprecated use `InsertConversationEventUserType$inboundSchema` instead. */ - export const inboundSchema = InsertConversationEventUserType$inboundSchema; - /** @deprecated use `InsertConversationEventUserType$outboundSchema` instead. */ - export const outboundSchema = InsertConversationEventUserType$outboundSchema; -} - /** @internal */ export const InsertConversationEventUserProperties$inboundSchema: z.ZodType< InsertConversationEventUserProperties, @@ -221,8 +182,6 @@ export const InsertConversationEventUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(InsertConversationEventUserType$inboundSchema) - .optional(), }).catchall(z.any()), "additionalProperties", true, @@ -234,7 +193,6 @@ export type InsertConversationEventUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -248,8 +206,6 @@ export const InsertConversationEventUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(InsertConversationEventUserType$outboundSchema) - .optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/insertmessageevent.ts b/src/models/components/insertmessageevent.ts index ecf7db06..3f3ca196 100644 --- a/src/models/components/insertmessageevent.ts +++ b/src/models/components/insertmessageevent.ts @@ -22,20 +22,6 @@ export type InsertMessageEventId = string | number; */ export type InsertMessageEventUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const InsertMessageEventUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type InsertMessageEventUserType = ClosedEnum< - typeof InsertMessageEventUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -56,10 +42,6 @@ export type InsertMessageEventUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: InsertMessageEventUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -185,27 +167,6 @@ export function insertMessageEventUserIdFromJSON( ); } -/** @internal */ -export const InsertMessageEventUserType$inboundSchema: z.ZodNativeEnum< - typeof InsertMessageEventUserType -> = z.nativeEnum(InsertMessageEventUserType); - -/** @internal */ -export const InsertMessageEventUserType$outboundSchema: z.ZodNativeEnum< - typeof InsertMessageEventUserType -> = InsertMessageEventUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertMessageEventUserType$ { - /** @deprecated use `InsertMessageEventUserType$inboundSchema` instead. */ - export const inboundSchema = InsertMessageEventUserType$inboundSchema; - /** @deprecated use `InsertMessageEventUserType$outboundSchema` instead. */ - export const outboundSchema = InsertMessageEventUserType$outboundSchema; -} - /** @internal */ export const InsertMessageEventUserProperties$inboundSchema: z.ZodType< InsertMessageEventUserProperties, @@ -217,7 +178,6 @@ export const InsertMessageEventUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(InsertMessageEventUserType$inboundSchema).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -229,7 +189,6 @@ export type InsertMessageEventUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -243,7 +202,6 @@ export const InsertMessageEventUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(InsertMessageEventUserType$outboundSchema).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/insertsearchevent.ts b/src/models/components/insertsearchevent.ts index dc46b2aa..9e51d62b 100644 --- a/src/models/components/insertsearchevent.ts +++ b/src/models/components/insertsearchevent.ts @@ -22,20 +22,6 @@ export type InsertSearchEventId = string | number; */ export type InsertSearchEventUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const InsertSearchEventUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type InsertSearchEventUserType = ClosedEnum< - typeof InsertSearchEventUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -56,10 +42,6 @@ export type InsertSearchEventUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: InsertSearchEventUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -187,27 +169,6 @@ export function insertSearchEventUserIdFromJSON( ); } -/** @internal */ -export const InsertSearchEventUserType$inboundSchema: z.ZodNativeEnum< - typeof InsertSearchEventUserType -> = z.nativeEnum(InsertSearchEventUserType); - -/** @internal */ -export const InsertSearchEventUserType$outboundSchema: z.ZodNativeEnum< - typeof InsertSearchEventUserType -> = InsertSearchEventUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace InsertSearchEventUserType$ { - /** @deprecated use `InsertSearchEventUserType$inboundSchema` instead. */ - export const inboundSchema = InsertSearchEventUserType$inboundSchema; - /** @deprecated use `InsertSearchEventUserType$outboundSchema` instead. */ - export const outboundSchema = InsertSearchEventUserType$outboundSchema; -} - /** @internal */ export const InsertSearchEventUserProperties$inboundSchema: z.ZodType< InsertSearchEventUserProperties, @@ -219,7 +180,6 @@ export const InsertSearchEventUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(InsertSearchEventUserType$inboundSchema).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -231,7 +191,6 @@ export type InsertSearchEventUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -245,7 +204,6 @@ export const InsertSearchEventUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(InsertSearchEventUserType$outboundSchema).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/openaiconversation.ts b/src/models/components/openaiconversation.ts index 58ff9881..a7ebc473 100644 --- a/src/models/components/openaiconversation.ts +++ b/src/models/components/openaiconversation.ts @@ -39,20 +39,6 @@ export type OpenAIConversationId = string | number; */ export type OpenAIConversationUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const OpenAIConversationUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type OpenAIConversationUserType = ClosedEnum< - typeof OpenAIConversationUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -73,10 +59,6 @@ export type OpenAIConversationUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: OpenAIConversationUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -232,27 +214,6 @@ export function openAIConversationUserIdFromJSON( ); } -/** @internal */ -export const OpenAIConversationUserType$inboundSchema: z.ZodNativeEnum< - typeof OpenAIConversationUserType -> = z.nativeEnum(OpenAIConversationUserType); - -/** @internal */ -export const OpenAIConversationUserType$outboundSchema: z.ZodNativeEnum< - typeof OpenAIConversationUserType -> = OpenAIConversationUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIConversationUserType$ { - /** @deprecated use `OpenAIConversationUserType$inboundSchema` instead. */ - export const inboundSchema = OpenAIConversationUserType$inboundSchema; - /** @deprecated use `OpenAIConversationUserType$outboundSchema` instead. */ - export const outboundSchema = OpenAIConversationUserType$outboundSchema; -} - /** @internal */ export const OpenAIConversationUserProperties$inboundSchema: z.ZodType< OpenAIConversationUserProperties, @@ -264,7 +225,6 @@ export const OpenAIConversationUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(OpenAIConversationUserType$inboundSchema).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -276,7 +236,6 @@ export type OpenAIConversationUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -290,7 +249,6 @@ export const OpenAIConversationUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(OpenAIConversationUserType$outboundSchema).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/openaiextendedmessage.ts b/src/models/components/openaiextendedmessage.ts index 3a9c6cee..f22e2326 100644 --- a/src/models/components/openaiextendedmessage.ts +++ b/src/models/components/openaiextendedmessage.ts @@ -74,20 +74,6 @@ export type OpenAIExtendedMessageId = string | number; */ export type OpenAIExtendedMessageUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const OpenAIExtendedMessageUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type OpenAIExtendedMessageUserType = ClosedEnum< - typeof OpenAIExtendedMessageUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -108,10 +94,6 @@ export type OpenAIExtendedMessageUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: OpenAIExtendedMessageUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -451,27 +433,6 @@ export function openAIExtendedMessageUserIdFromJSON( ); } -/** @internal */ -export const OpenAIExtendedMessageUserType$inboundSchema: z.ZodNativeEnum< - typeof OpenAIExtendedMessageUserType -> = z.nativeEnum(OpenAIExtendedMessageUserType); - -/** @internal */ -export const OpenAIExtendedMessageUserType$outboundSchema: z.ZodNativeEnum< - typeof OpenAIExtendedMessageUserType -> = OpenAIExtendedMessageUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace OpenAIExtendedMessageUserType$ { - /** @deprecated use `OpenAIExtendedMessageUserType$inboundSchema` instead. */ - export const inboundSchema = OpenAIExtendedMessageUserType$inboundSchema; - /** @deprecated use `OpenAIExtendedMessageUserType$outboundSchema` instead. */ - export const outboundSchema = OpenAIExtendedMessageUserType$outboundSchema; -} - /** @internal */ export const OpenAIExtendedMessageUserProperties$inboundSchema: z.ZodType< OpenAIExtendedMessageUserProperties, @@ -483,8 +444,6 @@ export const OpenAIExtendedMessageUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(OpenAIExtendedMessageUserType$inboundSchema) - .optional(), }).catchall(z.any()), "additionalProperties", true, @@ -496,7 +455,6 @@ export type OpenAIExtendedMessageUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -510,7 +468,6 @@ export const OpenAIExtendedMessageUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(OpenAIExtendedMessageUserType$outboundSchema).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/queryconversationsresponsedata.ts b/src/models/components/queryconversationsresponsedata.ts index 1390b402..1cffca29 100644 --- a/src/models/components/queryconversationsresponsedata.ts +++ b/src/models/components/queryconversationsresponsedata.ts @@ -31,20 +31,6 @@ export type QueryConversationsResponseDataId = string | number; */ export type QueryConversationsResponseDataUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const QueryConversationsResponseDataUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type QueryConversationsResponseDataUserType = ClosedEnum< - typeof QueryConversationsResponseDataUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -65,10 +51,6 @@ export type QueryConversationsResponseDataUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: QueryConversationsResponseDataUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -351,30 +333,6 @@ export function queryConversationsResponseDataUserIdFromJSON( ); } -/** @internal */ -export const QueryConversationsResponseDataUserType$inboundSchema: - z.ZodNativeEnum = z.nativeEnum( - QueryConversationsResponseDataUserType, - ); - -/** @internal */ -export const QueryConversationsResponseDataUserType$outboundSchema: - z.ZodNativeEnum = - QueryConversationsResponseDataUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryConversationsResponseDataUserType$ { - /** @deprecated use `QueryConversationsResponseDataUserType$inboundSchema` instead. */ - export const inboundSchema = - QueryConversationsResponseDataUserType$inboundSchema; - /** @deprecated use `QueryConversationsResponseDataUserType$outboundSchema` instead. */ - export const outboundSchema = - QueryConversationsResponseDataUserType$outboundSchema; -} - /** @internal */ export const QueryConversationsResponseDataUserProperties$inboundSchema: z.ZodType< @@ -387,8 +345,6 @@ export const QueryConversationsResponseDataUserProperties$inboundSchema: identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(QueryConversationsResponseDataUserType$inboundSchema) - .optional(), }).catchall(z.any()), "additionalProperties", true, @@ -400,7 +356,6 @@ export type QueryConversationsResponseDataUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -415,8 +370,6 @@ export const QueryConversationsResponseDataUserProperties$outboundSchema: identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(QueryConversationsResponseDataUserType$outboundSchema) - .optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/queryfeedbackresponsedata.ts b/src/models/components/queryfeedbackresponsedata.ts index 0b19b211..f71cc687 100644 --- a/src/models/components/queryfeedbackresponsedata.ts +++ b/src/models/components/queryfeedbackresponsedata.ts @@ -35,20 +35,6 @@ export type QueryFeedbackResponseDataId = string | number; */ export type QueryFeedbackResponseDataUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const QueryFeedbackResponseDataUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type QueryFeedbackResponseDataUserType = ClosedEnum< - typeof QueryFeedbackResponseDataUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -69,28 +55,14 @@ export type QueryFeedbackResponseDataUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: QueryFeedbackResponseDataUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; -export const QueryFeedbackResponseDataStatus = { - Unreviewed: "unreviewed", - Flagged: "flagged", - Deferred: "deferred", - Resolved: "resolved", -} as const; -export type QueryFeedbackResponseDataStatus = ClosedEnum< - typeof QueryFeedbackResponseDataStatus ->; - export type FeedbackResultItem = { id?: string | undefined; type?: QueryFeedbackResponseDataType | undefined; messageId?: string | undefined; - createdAt?: Date | undefined; + createdAt?: any | undefined; organizationId?: string | undefined; reasons?: Array | null | undefined; /** @@ -104,8 +76,6 @@ export type FeedbackResultItem = { conversationId?: string | undefined; projectId?: string | null | undefined; integrationId?: string | null | undefined; - updatedAt?: Date | null | undefined; - status?: QueryFeedbackResponseDataStatus | undefined; sum?: number | undefined; count?: number | undefined; avg?: number | undefined; @@ -155,14 +125,6 @@ export type FeedbackResultItem = { integrationIdDay?: string | undefined; integrationIdWeek?: string | undefined; integrationIdMonth?: string | undefined; - updatedAtHour?: string | undefined; - updatedAtDay?: string | undefined; - updatedAtWeek?: string | undefined; - updatedAtMonth?: string | undefined; - statusHour?: string | undefined; - statusDay?: string | undefined; - statusWeek?: string | undefined; - statusMonth?: string | undefined; sumId?: number | undefined; sumType?: number | undefined; sumMessageId?: number | undefined; @@ -174,8 +136,6 @@ export type FeedbackResultItem = { sumConversationId?: number | undefined; sumProjectId?: number | undefined; sumIntegrationId?: number | undefined; - sumUpdatedAt?: number | undefined; - sumStatus?: number | undefined; countId?: number | undefined; countType?: number | undefined; countMessageId?: number | undefined; @@ -187,8 +147,6 @@ export type FeedbackResultItem = { countConversationId?: number | undefined; countProjectId?: number | undefined; countIntegrationId?: number | undefined; - countUpdatedAt?: number | undefined; - countStatus?: number | undefined; avgId?: number | undefined; avgType?: number | undefined; avgMessageId?: number | undefined; @@ -200,8 +158,6 @@ export type FeedbackResultItem = { avgConversationId?: number | undefined; avgProjectId?: number | undefined; avgIntegrationId?: number | undefined; - avgUpdatedAt?: number | undefined; - avgStatus?: number | undefined; minId?: number | undefined; minType?: number | undefined; minMessageId?: number | undefined; @@ -213,8 +169,6 @@ export type FeedbackResultItem = { minConversationId?: number | undefined; minProjectId?: number | undefined; minIntegrationId?: number | undefined; - minUpdatedAt?: number | undefined; - minStatus?: number | undefined; maxId?: number | undefined; maxType?: number | undefined; maxMessageId?: number | undefined; @@ -226,8 +180,6 @@ export type FeedbackResultItem = { maxConversationId?: number | undefined; maxProjectId?: number | undefined; maxIntegrationId?: number | undefined; - maxUpdatedAt?: number | undefined; - maxStatus?: number | undefined; sumPropertiesUserId?: number | undefined; sumPropertiesSupportAgentName?: number | undefined; sumUserPropertiesUserId?: number | undefined; @@ -457,28 +409,6 @@ export function queryFeedbackResponseDataUserIdFromJSON( ); } -/** @internal */ -export const QueryFeedbackResponseDataUserType$inboundSchema: z.ZodNativeEnum< - typeof QueryFeedbackResponseDataUserType -> = z.nativeEnum(QueryFeedbackResponseDataUserType); - -/** @internal */ -export const QueryFeedbackResponseDataUserType$outboundSchema: z.ZodNativeEnum< - typeof QueryFeedbackResponseDataUserType -> = QueryFeedbackResponseDataUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryFeedbackResponseDataUserType$ { - /** @deprecated use `QueryFeedbackResponseDataUserType$inboundSchema` instead. */ - export const inboundSchema = QueryFeedbackResponseDataUserType$inboundSchema; - /** @deprecated use `QueryFeedbackResponseDataUserType$outboundSchema` instead. */ - export const outboundSchema = - QueryFeedbackResponseDataUserType$outboundSchema; -} - /** @internal */ export const QueryFeedbackResponseDataUserProperties$inboundSchema: z.ZodType< QueryFeedbackResponseDataUserProperties, @@ -490,8 +420,6 @@ export const QueryFeedbackResponseDataUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(QueryFeedbackResponseDataUserType$inboundSchema) - .optional(), }).catchall(z.any()), "additionalProperties", true, @@ -503,7 +431,6 @@ export type QueryFeedbackResponseDataUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -517,8 +444,6 @@ export const QueryFeedbackResponseDataUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(QueryFeedbackResponseDataUserType$outboundSchema) - .optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { @@ -571,27 +496,6 @@ export function queryFeedbackResponseDataUserPropertiesFromJSON( ); } -/** @internal */ -export const QueryFeedbackResponseDataStatus$inboundSchema: z.ZodNativeEnum< - typeof QueryFeedbackResponseDataStatus -> = z.nativeEnum(QueryFeedbackResponseDataStatus); - -/** @internal */ -export const QueryFeedbackResponseDataStatus$outboundSchema: z.ZodNativeEnum< - typeof QueryFeedbackResponseDataStatus -> = QueryFeedbackResponseDataStatus$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QueryFeedbackResponseDataStatus$ { - /** @deprecated use `QueryFeedbackResponseDataStatus$inboundSchema` instead. */ - export const inboundSchema = QueryFeedbackResponseDataStatus$inboundSchema; - /** @deprecated use `QueryFeedbackResponseDataStatus$outboundSchema` instead. */ - export const outboundSchema = QueryFeedbackResponseDataStatus$outboundSchema; -} - /** @internal */ export const FeedbackResultItem$inboundSchema: z.ZodType< FeedbackResultItem, @@ -601,8 +505,7 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< id: z.string().optional(), type: QueryFeedbackResponseDataType$inboundSchema.optional(), messageId: z.string().optional(), - createdAt: z.string().datetime({ offset: true }).transform(v => new Date(v)) - .optional(), + createdAt: z.any().optional(), organizationId: z.string().optional(), reasons: z.nullable( z.array(z.lazy(() => QueryFeedbackResponseDataReasons$inboundSchema)), @@ -614,10 +517,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< conversationId: z.string().optional(), projectId: z.nullable(z.string()).optional(), integrationId: z.nullable(z.string()).optional(), - updatedAt: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), - status: QueryFeedbackResponseDataStatus$inboundSchema.default("unreviewed"), sum: z.number().optional(), count: z.number().optional(), avg: z.number().optional(), @@ -667,14 +566,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< integrationId_day: z.string().optional(), integrationId_week: z.string().optional(), integrationId_month: z.string().optional(), - updatedAt_hour: z.string().optional(), - updatedAt_day: z.string().optional(), - updatedAt_week: z.string().optional(), - updatedAt_month: z.string().optional(), - status_hour: z.string().optional(), - status_day: z.string().optional(), - status_week: z.string().optional(), - status_month: z.string().optional(), sum_id: z.number().optional(), sum_type: z.number().optional(), sum_messageId: z.number().optional(), @@ -686,8 +577,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< sum_conversationId: z.number().optional(), sum_projectId: z.number().optional(), sum_integrationId: z.number().optional(), - sum_updatedAt: z.number().optional(), - sum_status: z.number().optional(), count_id: z.number().optional(), count_type: z.number().optional(), count_messageId: z.number().optional(), @@ -699,8 +588,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< count_conversationId: z.number().optional(), count_projectId: z.number().optional(), count_integrationId: z.number().optional(), - count_updatedAt: z.number().optional(), - count_status: z.number().optional(), avg_id: z.number().optional(), avg_type: z.number().optional(), avg_messageId: z.number().optional(), @@ -712,8 +599,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< avg_conversationId: z.number().optional(), avg_projectId: z.number().optional(), avg_integrationId: z.number().optional(), - avg_updatedAt: z.number().optional(), - avg_status: z.number().optional(), min_id: z.number().optional(), min_type: z.number().optional(), min_messageId: z.number().optional(), @@ -725,8 +610,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< min_conversationId: z.number().optional(), min_projectId: z.number().optional(), min_integrationId: z.number().optional(), - min_updatedAt: z.number().optional(), - min_status: z.number().optional(), max_id: z.number().optional(), max_type: z.number().optional(), max_messageId: z.number().optional(), @@ -738,8 +621,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< max_conversationId: z.number().optional(), max_projectId: z.number().optional(), max_integrationId: z.number().optional(), - max_updatedAt: z.number().optional(), - max_status: z.number().optional(), "sum_properties.userId": z.number().optional(), "sum_properties.supportAgentName": z.number().optional(), "sum_userProperties.userId": z.number().optional(), @@ -814,14 +695,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< "integrationId_day": "integrationIdDay", "integrationId_week": "integrationIdWeek", "integrationId_month": "integrationIdMonth", - "updatedAt_hour": "updatedAtHour", - "updatedAt_day": "updatedAtDay", - "updatedAt_week": "updatedAtWeek", - "updatedAt_month": "updatedAtMonth", - "status_hour": "statusHour", - "status_day": "statusDay", - "status_week": "statusWeek", - "status_month": "statusMonth", "sum_id": "sumId", "sum_type": "sumType", "sum_messageId": "sumMessageId", @@ -833,8 +706,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< "sum_conversationId": "sumConversationId", "sum_projectId": "sumProjectId", "sum_integrationId": "sumIntegrationId", - "sum_updatedAt": "sumUpdatedAt", - "sum_status": "sumStatus", "count_id": "countId", "count_type": "countType", "count_messageId": "countMessageId", @@ -846,8 +717,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< "count_conversationId": "countConversationId", "count_projectId": "countProjectId", "count_integrationId": "countIntegrationId", - "count_updatedAt": "countUpdatedAt", - "count_status": "countStatus", "avg_id": "avgId", "avg_type": "avgType", "avg_messageId": "avgMessageId", @@ -859,8 +728,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< "avg_conversationId": "avgConversationId", "avg_projectId": "avgProjectId", "avg_integrationId": "avgIntegrationId", - "avg_updatedAt": "avgUpdatedAt", - "avg_status": "avgStatus", "min_id": "minId", "min_type": "minType", "min_messageId": "minMessageId", @@ -872,8 +739,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< "min_conversationId": "minConversationId", "min_projectId": "minProjectId", "min_integrationId": "minIntegrationId", - "min_updatedAt": "minUpdatedAt", - "min_status": "minStatus", "max_id": "maxId", "max_type": "maxType", "max_messageId": "maxMessageId", @@ -885,8 +750,6 @@ export const FeedbackResultItem$inboundSchema: z.ZodType< "max_conversationId": "maxConversationId", "max_projectId": "maxProjectId", "max_integrationId": "maxIntegrationId", - "max_updatedAt": "maxUpdatedAt", - "max_status": "maxStatus", "sum_properties.userId": "sumPropertiesUserId", "sum_properties.supportAgentName": "sumPropertiesSupportAgentName", "sum_userProperties.userId": "sumUserPropertiesUserId", @@ -926,7 +789,7 @@ export type FeedbackResultItem$Outbound = { id?: string | undefined; type?: string | undefined; messageId?: string | undefined; - createdAt?: string | undefined; + createdAt?: any | undefined; organizationId?: string | undefined; reasons?: Array | null | undefined; properties?: { [k: string]: any } | null | undefined; @@ -937,8 +800,6 @@ export type FeedbackResultItem$Outbound = { conversationId?: string | undefined; projectId?: string | null | undefined; integrationId?: string | null | undefined; - updatedAt?: string | null | undefined; - status: string; sum?: number | undefined; count?: number | undefined; avg?: number | undefined; @@ -988,14 +849,6 @@ export type FeedbackResultItem$Outbound = { integrationId_day?: string | undefined; integrationId_week?: string | undefined; integrationId_month?: string | undefined; - updatedAt_hour?: string | undefined; - updatedAt_day?: string | undefined; - updatedAt_week?: string | undefined; - updatedAt_month?: string | undefined; - status_hour?: string | undefined; - status_day?: string | undefined; - status_week?: string | undefined; - status_month?: string | undefined; sum_id?: number | undefined; sum_type?: number | undefined; sum_messageId?: number | undefined; @@ -1007,8 +860,6 @@ export type FeedbackResultItem$Outbound = { sum_conversationId?: number | undefined; sum_projectId?: number | undefined; sum_integrationId?: number | undefined; - sum_updatedAt?: number | undefined; - sum_status?: number | undefined; count_id?: number | undefined; count_type?: number | undefined; count_messageId?: number | undefined; @@ -1020,8 +871,6 @@ export type FeedbackResultItem$Outbound = { count_conversationId?: number | undefined; count_projectId?: number | undefined; count_integrationId?: number | undefined; - count_updatedAt?: number | undefined; - count_status?: number | undefined; avg_id?: number | undefined; avg_type?: number | undefined; avg_messageId?: number | undefined; @@ -1033,8 +882,6 @@ export type FeedbackResultItem$Outbound = { avg_conversationId?: number | undefined; avg_projectId?: number | undefined; avg_integrationId?: number | undefined; - avg_updatedAt?: number | undefined; - avg_status?: number | undefined; min_id?: number | undefined; min_type?: number | undefined; min_messageId?: number | undefined; @@ -1046,8 +893,6 @@ export type FeedbackResultItem$Outbound = { min_conversationId?: number | undefined; min_projectId?: number | undefined; min_integrationId?: number | undefined; - min_updatedAt?: number | undefined; - min_status?: number | undefined; max_id?: number | undefined; max_type?: number | undefined; max_messageId?: number | undefined; @@ -1059,8 +904,6 @@ export type FeedbackResultItem$Outbound = { max_conversationId?: number | undefined; max_projectId?: number | undefined; max_integrationId?: number | undefined; - max_updatedAt?: number | undefined; - max_status?: number | undefined; "sum_properties.userId"?: number | undefined; "sum_properties.supportAgentName"?: number | undefined; "sum_userProperties.userId"?: number | undefined; @@ -1100,7 +943,7 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< id: z.string().optional(), type: QueryFeedbackResponseDataType$outboundSchema.optional(), messageId: z.string().optional(), - createdAt: z.date().transform(v => v.toISOString()).optional(), + createdAt: z.any().optional(), organizationId: z.string().optional(), reasons: z.nullable( z.array(z.lazy(() => QueryFeedbackResponseDataReasons$outboundSchema)), @@ -1112,8 +955,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< conversationId: z.string().optional(), projectId: z.nullable(z.string()).optional(), integrationId: z.nullable(z.string()).optional(), - updatedAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - status: QueryFeedbackResponseDataStatus$outboundSchema.default("unreviewed"), sum: z.number().optional(), count: z.number().optional(), avg: z.number().optional(), @@ -1163,14 +1004,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< integrationIdDay: z.string().optional(), integrationIdWeek: z.string().optional(), integrationIdMonth: z.string().optional(), - updatedAtHour: z.string().optional(), - updatedAtDay: z.string().optional(), - updatedAtWeek: z.string().optional(), - updatedAtMonth: z.string().optional(), - statusHour: z.string().optional(), - statusDay: z.string().optional(), - statusWeek: z.string().optional(), - statusMonth: z.string().optional(), sumId: z.number().optional(), sumType: z.number().optional(), sumMessageId: z.number().optional(), @@ -1182,8 +1015,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< sumConversationId: z.number().optional(), sumProjectId: z.number().optional(), sumIntegrationId: z.number().optional(), - sumUpdatedAt: z.number().optional(), - sumStatus: z.number().optional(), countId: z.number().optional(), countType: z.number().optional(), countMessageId: z.number().optional(), @@ -1195,8 +1026,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< countConversationId: z.number().optional(), countProjectId: z.number().optional(), countIntegrationId: z.number().optional(), - countUpdatedAt: z.number().optional(), - countStatus: z.number().optional(), avgId: z.number().optional(), avgType: z.number().optional(), avgMessageId: z.number().optional(), @@ -1208,8 +1037,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< avgConversationId: z.number().optional(), avgProjectId: z.number().optional(), avgIntegrationId: z.number().optional(), - avgUpdatedAt: z.number().optional(), - avgStatus: z.number().optional(), minId: z.number().optional(), minType: z.number().optional(), minMessageId: z.number().optional(), @@ -1221,8 +1048,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< minConversationId: z.number().optional(), minProjectId: z.number().optional(), minIntegrationId: z.number().optional(), - minUpdatedAt: z.number().optional(), - minStatus: z.number().optional(), maxId: z.number().optional(), maxType: z.number().optional(), maxMessageId: z.number().optional(), @@ -1234,8 +1059,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< maxConversationId: z.number().optional(), maxProjectId: z.number().optional(), maxIntegrationId: z.number().optional(), - maxUpdatedAt: z.number().optional(), - maxStatus: z.number().optional(), sumPropertiesUserId: z.number().optional(), sumPropertiesSupportAgentName: z.number().optional(), sumUserPropertiesUserId: z.number().optional(), @@ -1310,14 +1133,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< integrationIdDay: "integrationId_day", integrationIdWeek: "integrationId_week", integrationIdMonth: "integrationId_month", - updatedAtHour: "updatedAt_hour", - updatedAtDay: "updatedAt_day", - updatedAtWeek: "updatedAt_week", - updatedAtMonth: "updatedAt_month", - statusHour: "status_hour", - statusDay: "status_day", - statusWeek: "status_week", - statusMonth: "status_month", sumId: "sum_id", sumType: "sum_type", sumMessageId: "sum_messageId", @@ -1329,8 +1144,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< sumConversationId: "sum_conversationId", sumProjectId: "sum_projectId", sumIntegrationId: "sum_integrationId", - sumUpdatedAt: "sum_updatedAt", - sumStatus: "sum_status", countId: "count_id", countType: "count_type", countMessageId: "count_messageId", @@ -1342,8 +1155,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< countConversationId: "count_conversationId", countProjectId: "count_projectId", countIntegrationId: "count_integrationId", - countUpdatedAt: "count_updatedAt", - countStatus: "count_status", avgId: "avg_id", avgType: "avg_type", avgMessageId: "avg_messageId", @@ -1355,8 +1166,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< avgConversationId: "avg_conversationId", avgProjectId: "avg_projectId", avgIntegrationId: "avg_integrationId", - avgUpdatedAt: "avg_updatedAt", - avgStatus: "avg_status", minId: "min_id", minType: "min_type", minMessageId: "min_messageId", @@ -1368,8 +1177,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< minConversationId: "min_conversationId", minProjectId: "min_projectId", minIntegrationId: "min_integrationId", - minUpdatedAt: "min_updatedAt", - minStatus: "min_status", maxId: "max_id", maxType: "max_type", maxMessageId: "max_messageId", @@ -1381,8 +1188,6 @@ export const FeedbackResultItem$outboundSchema: z.ZodType< maxConversationId: "max_conversationId", maxProjectId: "max_projectId", maxIntegrationId: "max_integrationId", - maxUpdatedAt: "max_updatedAt", - maxStatus: "max_status", sumPropertiesUserId: "sum_properties.userId", sumPropertiesSupportAgentName: "sum_properties.supportAgentName", sumUserPropertiesUserId: "sum_userProperties.userId", diff --git a/src/models/components/querysemanticthreadsresponsedata.ts b/src/models/components/querysemanticthreadsresponsedata.ts index d96c1efa..001d3687 100644 --- a/src/models/components/querysemanticthreadsresponsedata.ts +++ b/src/models/components/querysemanticthreadsresponsedata.ts @@ -8,7 +8,6 @@ import { collectExtraKeys as collectExtraKeys$, safeParse, } from "../../lib/schemas.js"; -import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; @@ -22,20 +21,6 @@ export type QuerySemanticThreadsResponseDataId = string | number; */ export type QuerySemanticThreadsResponseDataUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const QuerySemanticThreadsResponseDataUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type QuerySemanticThreadsResponseDataUserType = ClosedEnum< - typeof QuerySemanticThreadsResponseDataUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -56,10 +41,6 @@ export type QuerySemanticThreadsResponseDataUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: QuerySemanticThreadsResponseDataUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -535,29 +516,6 @@ export function querySemanticThreadsResponseDataUserIdFromJSON( ); } -/** @internal */ -export const QuerySemanticThreadsResponseDataUserType$inboundSchema: - z.ZodNativeEnum = z - .nativeEnum(QuerySemanticThreadsResponseDataUserType); - -/** @internal */ -export const QuerySemanticThreadsResponseDataUserType$outboundSchema: - z.ZodNativeEnum = - QuerySemanticThreadsResponseDataUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace QuerySemanticThreadsResponseDataUserType$ { - /** @deprecated use `QuerySemanticThreadsResponseDataUserType$inboundSchema` instead. */ - export const inboundSchema = - QuerySemanticThreadsResponseDataUserType$inboundSchema; - /** @deprecated use `QuerySemanticThreadsResponseDataUserType$outboundSchema` instead. */ - export const outboundSchema = - QuerySemanticThreadsResponseDataUserType$outboundSchema; -} - /** @internal */ export const QuerySemanticThreadsResponseDataUserProperties$inboundSchema: z.ZodType< @@ -570,9 +528,6 @@ export const QuerySemanticThreadsResponseDataUserProperties$inboundSchema: identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable( - QuerySemanticThreadsResponseDataUserType$inboundSchema, - ).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -584,7 +539,6 @@ export type QuerySemanticThreadsResponseDataUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -599,9 +553,6 @@ export const QuerySemanticThreadsResponseDataUserProperties$outboundSchema: identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable( - QuerySemanticThreadsResponseDataUserType$outboundSchema, - ).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/selectconversationevent.ts b/src/models/components/selectconversationevent.ts index aed7d356..90c939a6 100644 --- a/src/models/components/selectconversationevent.ts +++ b/src/models/components/selectconversationevent.ts @@ -22,20 +22,6 @@ export type SelectConversationEventId = string | number; */ export type SelectConversationEventUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const SelectConversationEventUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type SelectConversationEventUserType = ClosedEnum< - typeof SelectConversationEventUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -56,10 +42,6 @@ export type SelectConversationEventUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: SelectConversationEventUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -186,27 +168,6 @@ export function selectConversationEventUserIdFromJSON( ); } -/** @internal */ -export const SelectConversationEventUserType$inboundSchema: z.ZodNativeEnum< - typeof SelectConversationEventUserType -> = z.nativeEnum(SelectConversationEventUserType); - -/** @internal */ -export const SelectConversationEventUserType$outboundSchema: z.ZodNativeEnum< - typeof SelectConversationEventUserType -> = SelectConversationEventUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectConversationEventUserType$ { - /** @deprecated use `SelectConversationEventUserType$inboundSchema` instead. */ - export const inboundSchema = SelectConversationEventUserType$inboundSchema; - /** @deprecated use `SelectConversationEventUserType$outboundSchema` instead. */ - export const outboundSchema = SelectConversationEventUserType$outboundSchema; -} - /** @internal */ export const SelectConversationEventUserProperties$inboundSchema: z.ZodType< SelectConversationEventUserProperties, @@ -218,8 +179,6 @@ export const SelectConversationEventUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SelectConversationEventUserType$inboundSchema) - .optional(), }).catchall(z.any()), "additionalProperties", true, @@ -231,7 +190,6 @@ export type SelectConversationEventUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -245,8 +203,6 @@ export const SelectConversationEventUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SelectConversationEventUserType$outboundSchema) - .optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/selectmessageevent.ts b/src/models/components/selectmessageevent.ts index 0d73fc8d..8d10873f 100644 --- a/src/models/components/selectmessageevent.ts +++ b/src/models/components/selectmessageevent.ts @@ -22,20 +22,6 @@ export type SelectMessageEventId = string | number; */ export type SelectMessageEventUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const SelectMessageEventUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type SelectMessageEventUserType = ClosedEnum< - typeof SelectMessageEventUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -56,10 +42,6 @@ export type SelectMessageEventUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: SelectMessageEventUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -184,27 +166,6 @@ export function selectMessageEventUserIdFromJSON( ); } -/** @internal */ -export const SelectMessageEventUserType$inboundSchema: z.ZodNativeEnum< - typeof SelectMessageEventUserType -> = z.nativeEnum(SelectMessageEventUserType); - -/** @internal */ -export const SelectMessageEventUserType$outboundSchema: z.ZodNativeEnum< - typeof SelectMessageEventUserType -> = SelectMessageEventUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectMessageEventUserType$ { - /** @deprecated use `SelectMessageEventUserType$inboundSchema` instead. */ - export const inboundSchema = SelectMessageEventUserType$inboundSchema; - /** @deprecated use `SelectMessageEventUserType$outboundSchema` instead. */ - export const outboundSchema = SelectMessageEventUserType$outboundSchema; -} - /** @internal */ export const SelectMessageEventUserProperties$inboundSchema: z.ZodType< SelectMessageEventUserProperties, @@ -216,7 +177,6 @@ export const SelectMessageEventUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SelectMessageEventUserType$inboundSchema).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -228,7 +188,6 @@ export type SelectMessageEventUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -242,7 +201,6 @@ export const SelectMessageEventUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SelectMessageEventUserType$outboundSchema).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/selectsearchevent.ts b/src/models/components/selectsearchevent.ts index 5dcf5bb1..bb481044 100644 --- a/src/models/components/selectsearchevent.ts +++ b/src/models/components/selectsearchevent.ts @@ -22,20 +22,6 @@ export type SelectSearchEventId = string | number; */ export type SelectSearchEventUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const SelectSearchEventUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type SelectSearchEventUserType = ClosedEnum< - typeof SelectSearchEventUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -56,10 +42,6 @@ export type SelectSearchEventUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: SelectSearchEventUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -184,27 +166,6 @@ export function selectSearchEventUserIdFromJSON( ); } -/** @internal */ -export const SelectSearchEventUserType$inboundSchema: z.ZodNativeEnum< - typeof SelectSearchEventUserType -> = z.nativeEnum(SelectSearchEventUserType); - -/** @internal */ -export const SelectSearchEventUserType$outboundSchema: z.ZodNativeEnum< - typeof SelectSearchEventUserType -> = SelectSearchEventUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SelectSearchEventUserType$ { - /** @deprecated use `SelectSearchEventUserType$inboundSchema` instead. */ - export const inboundSchema = SelectSearchEventUserType$inboundSchema; - /** @deprecated use `SelectSearchEventUserType$outboundSchema` instead. */ - export const outboundSchema = SelectSearchEventUserType$outboundSchema; -} - /** @internal */ export const SelectSearchEventUserProperties$inboundSchema: z.ZodType< SelectSearchEventUserProperties, @@ -216,7 +177,6 @@ export const SelectSearchEventUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SelectSearchEventUserType$inboundSchema).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -228,7 +188,6 @@ export type SelectSearchEventUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -242,7 +201,6 @@ export const SelectSearchEventUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SelectSearchEventUserType$outboundSchema).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/supportcopilotconversation.ts b/src/models/components/supportcopilotconversation.ts index 97c89678..bf3a9afd 100644 --- a/src/models/components/supportcopilotconversation.ts +++ b/src/models/components/supportcopilotconversation.ts @@ -35,20 +35,6 @@ export type SupportCopilotConversationId = string | number; */ export type SupportCopilotConversationUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const SupportCopilotConversationUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type SupportCopilotConversationUserType = ClosedEnum< - typeof SupportCopilotConversationUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -69,10 +55,6 @@ export type SupportCopilotConversationUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: SupportCopilotConversationUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -231,28 +213,6 @@ export function supportCopilotConversationUserIdFromJSON( ); } -/** @internal */ -export const SupportCopilotConversationUserType$inboundSchema: z.ZodNativeEnum< - typeof SupportCopilotConversationUserType -> = z.nativeEnum(SupportCopilotConversationUserType); - -/** @internal */ -export const SupportCopilotConversationUserType$outboundSchema: z.ZodNativeEnum< - typeof SupportCopilotConversationUserType -> = SupportCopilotConversationUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotConversationUserType$ { - /** @deprecated use `SupportCopilotConversationUserType$inboundSchema` instead. */ - export const inboundSchema = SupportCopilotConversationUserType$inboundSchema; - /** @deprecated use `SupportCopilotConversationUserType$outboundSchema` instead. */ - export const outboundSchema = - SupportCopilotConversationUserType$outboundSchema; -} - /** @internal */ export const SupportCopilotConversationUserProperties$inboundSchema: z.ZodType< SupportCopilotConversationUserProperties, @@ -264,8 +224,6 @@ export const SupportCopilotConversationUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SupportCopilotConversationUserType$inboundSchema) - .optional(), }).catchall(z.any()), "additionalProperties", true, @@ -277,7 +235,6 @@ export type SupportCopilotConversationUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -291,8 +248,6 @@ export const SupportCopilotConversationUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SupportCopilotConversationUserType$outboundSchema) - .optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/supportcopilotmessage.ts b/src/models/components/supportcopilotmessage.ts index 5214f0a8..1157b5b0 100644 --- a/src/models/components/supportcopilotmessage.ts +++ b/src/models/components/supportcopilotmessage.ts @@ -57,20 +57,6 @@ export type SupportCopilotMessageId = string | number; */ export type SupportCopilotMessageUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const SupportCopilotMessageUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type SupportCopilotMessageUserType = ClosedEnum< - typeof SupportCopilotMessageUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -91,10 +77,6 @@ export type SupportCopilotMessageUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: SupportCopilotMessageUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -383,27 +365,6 @@ export function supportCopilotMessageUserIdFromJSON( ); } -/** @internal */ -export const SupportCopilotMessageUserType$inboundSchema: z.ZodNativeEnum< - typeof SupportCopilotMessageUserType -> = z.nativeEnum(SupportCopilotMessageUserType); - -/** @internal */ -export const SupportCopilotMessageUserType$outboundSchema: z.ZodNativeEnum< - typeof SupportCopilotMessageUserType -> = SupportCopilotMessageUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportCopilotMessageUserType$ { - /** @deprecated use `SupportCopilotMessageUserType$inboundSchema` instead. */ - export const inboundSchema = SupportCopilotMessageUserType$inboundSchema; - /** @deprecated use `SupportCopilotMessageUserType$outboundSchema` instead. */ - export const outboundSchema = SupportCopilotMessageUserType$outboundSchema; -} - /** @internal */ export const SupportCopilotMessageUserProperties$inboundSchema: z.ZodType< SupportCopilotMessageUserProperties, @@ -415,8 +376,6 @@ export const SupportCopilotMessageUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SupportCopilotMessageUserType$inboundSchema) - .optional(), }).catchall(z.any()), "additionalProperties", true, @@ -428,7 +387,6 @@ export type SupportCopilotMessageUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -442,7 +400,6 @@ export const SupportCopilotMessageUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SupportCopilotMessageUserType$outboundSchema).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/supportticketconversation.ts b/src/models/components/supportticketconversation.ts index c17320d8..63cdc2a2 100644 --- a/src/models/components/supportticketconversation.ts +++ b/src/models/components/supportticketconversation.ts @@ -35,20 +35,6 @@ export type SupportTicketConversationId = string | number; */ export type SupportTicketConversationUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const SupportTicketConversationUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type SupportTicketConversationUserType = ClosedEnum< - typeof SupportTicketConversationUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -69,10 +55,6 @@ export type SupportTicketConversationUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: SupportTicketConversationUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -231,28 +213,6 @@ export function supportTicketConversationUserIdFromJSON( ); } -/** @internal */ -export const SupportTicketConversationUserType$inboundSchema: z.ZodNativeEnum< - typeof SupportTicketConversationUserType -> = z.nativeEnum(SupportTicketConversationUserType); - -/** @internal */ -export const SupportTicketConversationUserType$outboundSchema: z.ZodNativeEnum< - typeof SupportTicketConversationUserType -> = SupportTicketConversationUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketConversationUserType$ { - /** @deprecated use `SupportTicketConversationUserType$inboundSchema` instead. */ - export const inboundSchema = SupportTicketConversationUserType$inboundSchema; - /** @deprecated use `SupportTicketConversationUserType$outboundSchema` instead. */ - export const outboundSchema = - SupportTicketConversationUserType$outboundSchema; -} - /** @internal */ export const SupportTicketConversationUserProperties$inboundSchema: z.ZodType< SupportTicketConversationUserProperties, @@ -264,8 +224,6 @@ export const SupportTicketConversationUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SupportTicketConversationUserType$inboundSchema) - .optional(), }).catchall(z.any()), "additionalProperties", true, @@ -277,7 +235,6 @@ export type SupportTicketConversationUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -291,8 +248,6 @@ export const SupportTicketConversationUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SupportTicketConversationUserType$outboundSchema) - .optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/components/supportticketmessage.ts b/src/models/components/supportticketmessage.ts index c5bde4b9..ba7c144d 100644 --- a/src/models/components/supportticketmessage.ts +++ b/src/models/components/supportticketmessage.ts @@ -53,20 +53,6 @@ export type SupportTicketMessageId = string | number; */ export type SupportTicketMessageUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const SupportTicketMessageUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type SupportTicketMessageUserType = ClosedEnum< - typeof SupportTicketMessageUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -87,10 +73,6 @@ export type SupportTicketMessageUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: SupportTicketMessageUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -372,27 +354,6 @@ export function supportTicketMessageUserIdFromJSON( ); } -/** @internal */ -export const SupportTicketMessageUserType$inboundSchema: z.ZodNativeEnum< - typeof SupportTicketMessageUserType -> = z.nativeEnum(SupportTicketMessageUserType); - -/** @internal */ -export const SupportTicketMessageUserType$outboundSchema: z.ZodNativeEnum< - typeof SupportTicketMessageUserType -> = SupportTicketMessageUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace SupportTicketMessageUserType$ { - /** @deprecated use `SupportTicketMessageUserType$inboundSchema` instead. */ - export const inboundSchema = SupportTicketMessageUserType$inboundSchema; - /** @deprecated use `SupportTicketMessageUserType$outboundSchema` instead. */ - export const outboundSchema = SupportTicketMessageUserType$outboundSchema; -} - /** @internal */ export const SupportTicketMessageUserProperties$inboundSchema: z.ZodType< SupportTicketMessageUserProperties, @@ -404,7 +365,6 @@ export const SupportTicketMessageUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SupportTicketMessageUserType$inboundSchema).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -416,7 +376,6 @@ export type SupportTicketMessageUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -430,7 +389,6 @@ export const SupportTicketMessageUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(SupportTicketMessageUserType$outboundSchema).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { diff --git a/src/models/operations/getfeedbackbyid.ts b/src/models/operations/getfeedbackbyid.ts index 606d9a3a..f72ccf10 100644 --- a/src/models/operations/getfeedbackbyid.ts +++ b/src/models/operations/getfeedbackbyid.ts @@ -38,20 +38,6 @@ export type GetFeedbackByIdId = string | number; */ export type GetFeedbackByIdUserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const GetFeedbackByIdUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type GetFeedbackByIdUserType = ClosedEnum< - typeof GetFeedbackByIdUserType ->; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -72,10 +58,6 @@ export type GetFeedbackByIdUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: GetFeedbackByIdUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; @@ -86,10 +68,7 @@ export type GetFeedbackByIdResponseBody = { id: string; type: GetFeedbackByIdType; messageId: string; - /** - * A timestamp in ISO 8601 format with timezone information. If not provided, the current time will be used. - */ - createdAt?: Date | null | undefined; + createdAt: string; reasons?: Array | null | undefined; /** * A customizable collection of custom properties or attributes. @@ -331,27 +310,6 @@ export function getFeedbackByIdUserIdFromJSON( ); } -/** @internal */ -export const GetFeedbackByIdUserType$inboundSchema: z.ZodNativeEnum< - typeof GetFeedbackByIdUserType -> = z.nativeEnum(GetFeedbackByIdUserType); - -/** @internal */ -export const GetFeedbackByIdUserType$outboundSchema: z.ZodNativeEnum< - typeof GetFeedbackByIdUserType -> = GetFeedbackByIdUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace GetFeedbackByIdUserType$ { - /** @deprecated use `GetFeedbackByIdUserType$inboundSchema` instead. */ - export const inboundSchema = GetFeedbackByIdUserType$inboundSchema; - /** @deprecated use `GetFeedbackByIdUserType$outboundSchema` instead. */ - export const outboundSchema = GetFeedbackByIdUserType$outboundSchema; -} - /** @internal */ export const GetFeedbackByIdUserProperties$inboundSchema: z.ZodType< GetFeedbackByIdUserProperties, @@ -363,7 +321,6 @@ export const GetFeedbackByIdUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(GetFeedbackByIdUserType$inboundSchema).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -375,7 +332,6 @@ export type GetFeedbackByIdUserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -389,7 +345,6 @@ export const GetFeedbackByIdUserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(GetFeedbackByIdUserType$outboundSchema).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { @@ -442,9 +397,7 @@ export const GetFeedbackByIdResponseBody$inboundSchema: z.ZodType< id: z.string(), type: GetFeedbackByIdType$inboundSchema, messageId: z.string(), - createdAt: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), - ).optional(), + createdAt: z.string(), reasons: z.nullable( z.array(z.lazy(() => GetFeedbackByIdReasons$inboundSchema)), ).optional(), @@ -461,7 +414,7 @@ export type GetFeedbackByIdResponseBody$Outbound = { id: string; type: string; messageId: string; - createdAt?: string | null | undefined; + createdAt: string; reasons?: Array | null | undefined; properties?: { [k: string]: any } | null | undefined; userProperties?: GetFeedbackByIdUserProperties$Outbound | null | undefined; @@ -478,7 +431,7 @@ export const GetFeedbackByIdResponseBody$outboundSchema: z.ZodType< id: z.string(), type: GetFeedbackByIdType$outboundSchema, messageId: z.string(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), + createdAt: z.string(), reasons: z.nullable( z.array(z.lazy(() => GetFeedbackByIdReasons$outboundSchema)), ).optional(), diff --git a/src/models/operations/index.ts b/src/models/operations/index.ts index 35abacf3..b12964fb 100644 --- a/src/models/operations/index.ts +++ b/src/models/operations/index.ts @@ -10,10 +10,10 @@ export * from "./getconversationbyexternalid.js"; export * from "./getfeedbackbyid.js"; export * from "./logconversation.js"; export * from "./logevent.js"; -export * from "./logfeedback.js"; export * from "./queryconversations.js"; export * from "./queryevents.js"; export * from "./queryfeedback.js"; export * from "./querysemanticthreads.js"; +export * from "./submitfeedback.js"; export * from "./topsearchqueries.js"; export * from "./weeklysearchusers.js"; diff --git a/src/models/operations/logfeedback.ts b/src/models/operations/submitfeedback.ts similarity index 59% rename from src/models/operations/logfeedback.ts rename to src/models/operations/submitfeedback.ts index a3d245f6..9a0d7279 100644 --- a/src/models/operations/logfeedback.ts +++ b/src/models/operations/submitfeedback.ts @@ -33,18 +33,6 @@ export type Id = string | number; */ export type UserId = string | number; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const UserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type UserType = ClosedEnum; - /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ @@ -65,17 +53,13 @@ export type UserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: UserType | null | undefined; additionalProperties?: { [k: string]: any }; }; /** * Note: The maximum size of the request body is 2 MB. */ -export type LogFeedbackRequestBody = { +export type SubmitFeedbackRequestBody = { id?: string | undefined; type: Type; messageId: string; @@ -94,13 +78,13 @@ export type LogFeedbackRequestBody = { userProperties?: UserProperties | null | undefined; }; -export const LogFeedbackType = { +export const SubmitFeedbackType = { Positive: "positive", Negative: "negative", } as const; -export type LogFeedbackType = ClosedEnum; +export type SubmitFeedbackType = ClosedEnum; -export type LogFeedbackReasons = { +export type SubmitFeedbackReasons = { label: string; details: string; }; @@ -108,29 +92,17 @@ export type LogFeedbackReasons = { /** * The unique identifier for the user. This value is sent by the inkeep widget. */ -export type LogFeedbackId = string | number; +export type SubmitFeedbackId = string | number; /** * The unique identifier for the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ -export type LogFeedbackUserId = string | number; - -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export const LogFeedbackUserType = { - User: "user", - Member: "member", -} as const; -/** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ -export type LogFeedbackUserType = ClosedEnum; +export type SubmitFeedbackUserId = string | number; /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ -export type LogFeedbackUserProperties = { +export type SubmitFeedbackUserProperties = { /** * The unique identifier for the user. This value is sent by the inkeep widget. */ @@ -147,25 +119,18 @@ export type LogFeedbackUserProperties = { * The name of the support agent assigned to the user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. */ supportAgentName?: string | null | undefined; - /** - * The type of user. This value is sent by the Inkeep Support Agent Copilot. This value is used to create the graphs on the Inkeep Portal. - */ - userType?: LogFeedbackUserType | null | undefined; additionalProperties?: { [k: string]: any }; }; /** * Feedback provided successfully */ -export type LogFeedbackResponseBody = { +export type SubmitFeedbackResponseBody = { id: string; - type: LogFeedbackType; + type: SubmitFeedbackType; messageId: string; - /** - * A timestamp in ISO 8601 format with timezone information. If not provided, the current time will be used. - */ - createdAt?: Date | null | undefined; - reasons?: Array | null | undefined; + createdAt: string; + reasons?: Array | null | undefined; /** * A customizable collection of custom properties or attributes. */ @@ -173,7 +138,7 @@ export type LogFeedbackResponseBody = { /** * A customizable collection of custom properties or attributes. Some properties have first class support for the Inkeep Portal or Widget and are noted in the description. */ - userProperties?: LogFeedbackUserProperties | null | undefined; + userProperties?: SubmitFeedbackUserProperties | null | undefined; }; /** @internal */ @@ -327,25 +292,6 @@ export function userIdFromJSON( ); } -/** @internal */ -export const UserType$inboundSchema: z.ZodNativeEnum = z - .nativeEnum(UserType); - -/** @internal */ -export const UserType$outboundSchema: z.ZodNativeEnum = - UserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace UserType$ { - /** @deprecated use `UserType$inboundSchema` instead. */ - export const inboundSchema = UserType$inboundSchema; - /** @deprecated use `UserType$outboundSchema` instead. */ - export const outboundSchema = UserType$outboundSchema; -} - /** @internal */ export const UserProperties$inboundSchema: z.ZodType< UserProperties, @@ -357,7 +303,6 @@ export const UserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(UserType$inboundSchema).optional(), }).catchall(z.any()), "additionalProperties", true, @@ -369,7 +314,6 @@ export type UserProperties$Outbound = { identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; @@ -383,7 +327,6 @@ export const UserProperties$outboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(UserType$outboundSchema).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { @@ -422,8 +365,8 @@ export function userPropertiesFromJSON( } /** @internal */ -export const LogFeedbackRequestBody$inboundSchema: z.ZodType< - LogFeedbackRequestBody, +export const SubmitFeedbackRequestBody$inboundSchema: z.ZodType< + SubmitFeedbackRequestBody, z.ZodTypeDef, unknown > = z.object({ @@ -440,7 +383,7 @@ export const LogFeedbackRequestBody$inboundSchema: z.ZodType< }); /** @internal */ -export type LogFeedbackRequestBody$Outbound = { +export type SubmitFeedbackRequestBody$Outbound = { id?: string | undefined; type: string; messageId: string; @@ -451,10 +394,10 @@ export type LogFeedbackRequestBody$Outbound = { }; /** @internal */ -export const LogFeedbackRequestBody$outboundSchema: z.ZodType< - LogFeedbackRequestBody$Outbound, +export const SubmitFeedbackRequestBody$outboundSchema: z.ZodType< + SubmitFeedbackRequestBody$Outbound, z.ZodTypeDef, - LogFeedbackRequestBody + SubmitFeedbackRequestBody > = z.object({ id: z.string().optional(), type: Type$outboundSchema, @@ -470,57 +413,57 @@ export const LogFeedbackRequestBody$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace LogFeedbackRequestBody$ { - /** @deprecated use `LogFeedbackRequestBody$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackRequestBody$inboundSchema; - /** @deprecated use `LogFeedbackRequestBody$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackRequestBody$outboundSchema; - /** @deprecated use `LogFeedbackRequestBody$Outbound` instead. */ - export type Outbound = LogFeedbackRequestBody$Outbound; +export namespace SubmitFeedbackRequestBody$ { + /** @deprecated use `SubmitFeedbackRequestBody$inboundSchema` instead. */ + export const inboundSchema = SubmitFeedbackRequestBody$inboundSchema; + /** @deprecated use `SubmitFeedbackRequestBody$outboundSchema` instead. */ + export const outboundSchema = SubmitFeedbackRequestBody$outboundSchema; + /** @deprecated use `SubmitFeedbackRequestBody$Outbound` instead. */ + export type Outbound = SubmitFeedbackRequestBody$Outbound; } -export function logFeedbackRequestBodyToJSON( - logFeedbackRequestBody: LogFeedbackRequestBody, +export function submitFeedbackRequestBodyToJSON( + submitFeedbackRequestBody: SubmitFeedbackRequestBody, ): string { return JSON.stringify( - LogFeedbackRequestBody$outboundSchema.parse(logFeedbackRequestBody), + SubmitFeedbackRequestBody$outboundSchema.parse(submitFeedbackRequestBody), ); } -export function logFeedbackRequestBodyFromJSON( +export function submitFeedbackRequestBodyFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => LogFeedbackRequestBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LogFeedbackRequestBody' from JSON`, + (x) => SubmitFeedbackRequestBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SubmitFeedbackRequestBody' from JSON`, ); } /** @internal */ -export const LogFeedbackType$inboundSchema: z.ZodNativeEnum< - typeof LogFeedbackType -> = z.nativeEnum(LogFeedbackType); +export const SubmitFeedbackType$inboundSchema: z.ZodNativeEnum< + typeof SubmitFeedbackType +> = z.nativeEnum(SubmitFeedbackType); /** @internal */ -export const LogFeedbackType$outboundSchema: z.ZodNativeEnum< - typeof LogFeedbackType -> = LogFeedbackType$inboundSchema; +export const SubmitFeedbackType$outboundSchema: z.ZodNativeEnum< + typeof SubmitFeedbackType +> = SubmitFeedbackType$inboundSchema; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace LogFeedbackType$ { - /** @deprecated use `LogFeedbackType$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackType$inboundSchema; - /** @deprecated use `LogFeedbackType$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackType$outboundSchema; +export namespace SubmitFeedbackType$ { + /** @deprecated use `SubmitFeedbackType$inboundSchema` instead. */ + export const inboundSchema = SubmitFeedbackType$inboundSchema; + /** @deprecated use `SubmitFeedbackType$outboundSchema` instead. */ + export const outboundSchema = SubmitFeedbackType$outboundSchema; } /** @internal */ -export const LogFeedbackReasons$inboundSchema: z.ZodType< - LogFeedbackReasons, +export const SubmitFeedbackReasons$inboundSchema: z.ZodType< + SubmitFeedbackReasons, z.ZodTypeDef, unknown > = z.object({ @@ -529,16 +472,16 @@ export const LogFeedbackReasons$inboundSchema: z.ZodType< }); /** @internal */ -export type LogFeedbackReasons$Outbound = { +export type SubmitFeedbackReasons$Outbound = { label: string; details: string; }; /** @internal */ -export const LogFeedbackReasons$outboundSchema: z.ZodType< - LogFeedbackReasons$Outbound, +export const SubmitFeedbackReasons$outboundSchema: z.ZodType< + SubmitFeedbackReasons$Outbound, z.ZodTypeDef, - LogFeedbackReasons + SubmitFeedbackReasons > = z.object({ label: z.string(), details: z.string(), @@ -548,149 +491,132 @@ export const LogFeedbackReasons$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace LogFeedbackReasons$ { - /** @deprecated use `LogFeedbackReasons$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackReasons$inboundSchema; - /** @deprecated use `LogFeedbackReasons$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackReasons$outboundSchema; - /** @deprecated use `LogFeedbackReasons$Outbound` instead. */ - export type Outbound = LogFeedbackReasons$Outbound; +export namespace SubmitFeedbackReasons$ { + /** @deprecated use `SubmitFeedbackReasons$inboundSchema` instead. */ + export const inboundSchema = SubmitFeedbackReasons$inboundSchema; + /** @deprecated use `SubmitFeedbackReasons$outboundSchema` instead. */ + export const outboundSchema = SubmitFeedbackReasons$outboundSchema; + /** @deprecated use `SubmitFeedbackReasons$Outbound` instead. */ + export type Outbound = SubmitFeedbackReasons$Outbound; } -export function logFeedbackReasonsToJSON( - logFeedbackReasons: LogFeedbackReasons, +export function submitFeedbackReasonsToJSON( + submitFeedbackReasons: SubmitFeedbackReasons, ): string { return JSON.stringify( - LogFeedbackReasons$outboundSchema.parse(logFeedbackReasons), + SubmitFeedbackReasons$outboundSchema.parse(submitFeedbackReasons), ); } -export function logFeedbackReasonsFromJSON( +export function submitFeedbackReasonsFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => LogFeedbackReasons$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LogFeedbackReasons' from JSON`, + (x) => SubmitFeedbackReasons$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SubmitFeedbackReasons' from JSON`, ); } /** @internal */ -export const LogFeedbackId$inboundSchema: z.ZodType< - LogFeedbackId, +export const SubmitFeedbackId$inboundSchema: z.ZodType< + SubmitFeedbackId, z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); /** @internal */ -export type LogFeedbackId$Outbound = string | number; +export type SubmitFeedbackId$Outbound = string | number; /** @internal */ -export const LogFeedbackId$outboundSchema: z.ZodType< - LogFeedbackId$Outbound, +export const SubmitFeedbackId$outboundSchema: z.ZodType< + SubmitFeedbackId$Outbound, z.ZodTypeDef, - LogFeedbackId + SubmitFeedbackId > = z.union([z.string(), z.number()]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace LogFeedbackId$ { - /** @deprecated use `LogFeedbackId$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackId$inboundSchema; - /** @deprecated use `LogFeedbackId$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackId$outboundSchema; - /** @deprecated use `LogFeedbackId$Outbound` instead. */ - export type Outbound = LogFeedbackId$Outbound; +export namespace SubmitFeedbackId$ { + /** @deprecated use `SubmitFeedbackId$inboundSchema` instead. */ + export const inboundSchema = SubmitFeedbackId$inboundSchema; + /** @deprecated use `SubmitFeedbackId$outboundSchema` instead. */ + export const outboundSchema = SubmitFeedbackId$outboundSchema; + /** @deprecated use `SubmitFeedbackId$Outbound` instead. */ + export type Outbound = SubmitFeedbackId$Outbound; } -export function logFeedbackIdToJSON(logFeedbackId: LogFeedbackId): string { - return JSON.stringify(LogFeedbackId$outboundSchema.parse(logFeedbackId)); +export function submitFeedbackIdToJSON( + submitFeedbackId: SubmitFeedbackId, +): string { + return JSON.stringify( + SubmitFeedbackId$outboundSchema.parse(submitFeedbackId), + ); } -export function logFeedbackIdFromJSON( +export function submitFeedbackIdFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => LogFeedbackId$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LogFeedbackId' from JSON`, + (x) => SubmitFeedbackId$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SubmitFeedbackId' from JSON`, ); } /** @internal */ -export const LogFeedbackUserId$inboundSchema: z.ZodType< - LogFeedbackUserId, +export const SubmitFeedbackUserId$inboundSchema: z.ZodType< + SubmitFeedbackUserId, z.ZodTypeDef, unknown > = z.union([z.string(), z.number()]); /** @internal */ -export type LogFeedbackUserId$Outbound = string | number; +export type SubmitFeedbackUserId$Outbound = string | number; /** @internal */ -export const LogFeedbackUserId$outboundSchema: z.ZodType< - LogFeedbackUserId$Outbound, +export const SubmitFeedbackUserId$outboundSchema: z.ZodType< + SubmitFeedbackUserId$Outbound, z.ZodTypeDef, - LogFeedbackUserId + SubmitFeedbackUserId > = z.union([z.string(), z.number()]); /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace LogFeedbackUserId$ { - /** @deprecated use `LogFeedbackUserId$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackUserId$inboundSchema; - /** @deprecated use `LogFeedbackUserId$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackUserId$outboundSchema; - /** @deprecated use `LogFeedbackUserId$Outbound` instead. */ - export type Outbound = LogFeedbackUserId$Outbound; +export namespace SubmitFeedbackUserId$ { + /** @deprecated use `SubmitFeedbackUserId$inboundSchema` instead. */ + export const inboundSchema = SubmitFeedbackUserId$inboundSchema; + /** @deprecated use `SubmitFeedbackUserId$outboundSchema` instead. */ + export const outboundSchema = SubmitFeedbackUserId$outboundSchema; + /** @deprecated use `SubmitFeedbackUserId$Outbound` instead. */ + export type Outbound = SubmitFeedbackUserId$Outbound; } -export function logFeedbackUserIdToJSON( - logFeedbackUserId: LogFeedbackUserId, +export function submitFeedbackUserIdToJSON( + submitFeedbackUserId: SubmitFeedbackUserId, ): string { return JSON.stringify( - LogFeedbackUserId$outboundSchema.parse(logFeedbackUserId), + SubmitFeedbackUserId$outboundSchema.parse(submitFeedbackUserId), ); } -export function logFeedbackUserIdFromJSON( +export function submitFeedbackUserIdFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => LogFeedbackUserId$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LogFeedbackUserId' from JSON`, + (x) => SubmitFeedbackUserId$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SubmitFeedbackUserId' from JSON`, ); } /** @internal */ -export const LogFeedbackUserType$inboundSchema: z.ZodNativeEnum< - typeof LogFeedbackUserType -> = z.nativeEnum(LogFeedbackUserType); - -/** @internal */ -export const LogFeedbackUserType$outboundSchema: z.ZodNativeEnum< - typeof LogFeedbackUserType -> = LogFeedbackUserType$inboundSchema; - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace LogFeedbackUserType$ { - /** @deprecated use `LogFeedbackUserType$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackUserType$inboundSchema; - /** @deprecated use `LogFeedbackUserType$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackUserType$outboundSchema; -} - -/** @internal */ -export const LogFeedbackUserProperties$inboundSchema: z.ZodType< - LogFeedbackUserProperties, +export const SubmitFeedbackUserProperties$inboundSchema: z.ZodType< + SubmitFeedbackUserProperties, z.ZodTypeDef, unknown > = collectExtraKeys$( @@ -699,33 +625,30 @@ export const LogFeedbackUserProperties$inboundSchema: z.ZodType< identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(LogFeedbackUserType$inboundSchema).optional(), }).catchall(z.any()), "additionalProperties", true, ); /** @internal */ -export type LogFeedbackUserProperties$Outbound = { +export type SubmitFeedbackUserProperties$Outbound = { id?: string | number | null | undefined; identificationType?: string | null | undefined; userId?: string | number | null | undefined; supportAgentName?: string | null | undefined; - userType?: string | null | undefined; [additionalProperties: string]: unknown; }; /** @internal */ -export const LogFeedbackUserProperties$outboundSchema: z.ZodType< - LogFeedbackUserProperties$Outbound, +export const SubmitFeedbackUserProperties$outboundSchema: z.ZodType< + SubmitFeedbackUserProperties$Outbound, z.ZodTypeDef, - LogFeedbackUserProperties + SubmitFeedbackUserProperties > = z.object({ id: z.nullable(z.union([z.string(), z.number()])).optional(), identificationType: z.nullable(z.string()).optional(), userId: z.nullable(z.union([z.string(), z.number()])).optional(), supportAgentName: z.nullable(z.string()).optional(), - userType: z.nullable(LogFeedbackUserType$outboundSchema).optional(), additionalProperties: z.record(z.any()), }).transform((v) => { return { @@ -740,79 +663,81 @@ export const LogFeedbackUserProperties$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace LogFeedbackUserProperties$ { - /** @deprecated use `LogFeedbackUserProperties$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackUserProperties$inboundSchema; - /** @deprecated use `LogFeedbackUserProperties$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackUserProperties$outboundSchema; - /** @deprecated use `LogFeedbackUserProperties$Outbound` instead. */ - export type Outbound = LogFeedbackUserProperties$Outbound; +export namespace SubmitFeedbackUserProperties$ { + /** @deprecated use `SubmitFeedbackUserProperties$inboundSchema` instead. */ + export const inboundSchema = SubmitFeedbackUserProperties$inboundSchema; + /** @deprecated use `SubmitFeedbackUserProperties$outboundSchema` instead. */ + export const outboundSchema = SubmitFeedbackUserProperties$outboundSchema; + /** @deprecated use `SubmitFeedbackUserProperties$Outbound` instead. */ + export type Outbound = SubmitFeedbackUserProperties$Outbound; } -export function logFeedbackUserPropertiesToJSON( - logFeedbackUserProperties: LogFeedbackUserProperties, +export function submitFeedbackUserPropertiesToJSON( + submitFeedbackUserProperties: SubmitFeedbackUserProperties, ): string { return JSON.stringify( - LogFeedbackUserProperties$outboundSchema.parse(logFeedbackUserProperties), + SubmitFeedbackUserProperties$outboundSchema.parse( + submitFeedbackUserProperties, + ), ); } -export function logFeedbackUserPropertiesFromJSON( +export function submitFeedbackUserPropertiesFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => LogFeedbackUserProperties$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LogFeedbackUserProperties' from JSON`, + (x) => SubmitFeedbackUserProperties$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SubmitFeedbackUserProperties' from JSON`, ); } /** @internal */ -export const LogFeedbackResponseBody$inboundSchema: z.ZodType< - LogFeedbackResponseBody, +export const SubmitFeedbackResponseBody$inboundSchema: z.ZodType< + SubmitFeedbackResponseBody, z.ZodTypeDef, unknown > = z.object({ id: z.string(), - type: LogFeedbackType$inboundSchema, + type: SubmitFeedbackType$inboundSchema, messageId: z.string(), - createdAt: z.nullable( - z.string().datetime({ offset: true }).transform(v => new Date(v)), + createdAt: z.string(), + reasons: z.nullable( + z.array(z.lazy(() => SubmitFeedbackReasons$inboundSchema)), ).optional(), - reasons: z.nullable(z.array(z.lazy(() => LogFeedbackReasons$inboundSchema))) - .optional(), properties: z.nullable(z.record(z.any())).optional(), userProperties: z.nullable( - z.lazy(() => LogFeedbackUserProperties$inboundSchema), + z.lazy(() => SubmitFeedbackUserProperties$inboundSchema), ).optional(), }); /** @internal */ -export type LogFeedbackResponseBody$Outbound = { +export type SubmitFeedbackResponseBody$Outbound = { id: string; type: string; messageId: string; - createdAt?: string | null | undefined; - reasons?: Array | null | undefined; + createdAt: string; + reasons?: Array | null | undefined; properties?: { [k: string]: any } | null | undefined; - userProperties?: LogFeedbackUserProperties$Outbound | null | undefined; + userProperties?: SubmitFeedbackUserProperties$Outbound | null | undefined; }; /** @internal */ -export const LogFeedbackResponseBody$outboundSchema: z.ZodType< - LogFeedbackResponseBody$Outbound, +export const SubmitFeedbackResponseBody$outboundSchema: z.ZodType< + SubmitFeedbackResponseBody$Outbound, z.ZodTypeDef, - LogFeedbackResponseBody + SubmitFeedbackResponseBody > = z.object({ id: z.string(), - type: LogFeedbackType$outboundSchema, + type: SubmitFeedbackType$outboundSchema, messageId: z.string(), - createdAt: z.nullable(z.date().transform(v => v.toISOString())).optional(), - reasons: z.nullable(z.array(z.lazy(() => LogFeedbackReasons$outboundSchema))) - .optional(), + createdAt: z.string(), + reasons: z.nullable( + z.array(z.lazy(() => SubmitFeedbackReasons$outboundSchema)), + ).optional(), properties: z.nullable(z.record(z.any())).optional(), userProperties: z.nullable( - z.lazy(() => LogFeedbackUserProperties$outboundSchema), + z.lazy(() => SubmitFeedbackUserProperties$outboundSchema), ).optional(), }); @@ -820,29 +745,29 @@ export const LogFeedbackResponseBody$outboundSchema: z.ZodType< * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ -export namespace LogFeedbackResponseBody$ { - /** @deprecated use `LogFeedbackResponseBody$inboundSchema` instead. */ - export const inboundSchema = LogFeedbackResponseBody$inboundSchema; - /** @deprecated use `LogFeedbackResponseBody$outboundSchema` instead. */ - export const outboundSchema = LogFeedbackResponseBody$outboundSchema; - /** @deprecated use `LogFeedbackResponseBody$Outbound` instead. */ - export type Outbound = LogFeedbackResponseBody$Outbound; +export namespace SubmitFeedbackResponseBody$ { + /** @deprecated use `SubmitFeedbackResponseBody$inboundSchema` instead. */ + export const inboundSchema = SubmitFeedbackResponseBody$inboundSchema; + /** @deprecated use `SubmitFeedbackResponseBody$outboundSchema` instead. */ + export const outboundSchema = SubmitFeedbackResponseBody$outboundSchema; + /** @deprecated use `SubmitFeedbackResponseBody$Outbound` instead. */ + export type Outbound = SubmitFeedbackResponseBody$Outbound; } -export function logFeedbackResponseBodyToJSON( - logFeedbackResponseBody: LogFeedbackResponseBody, +export function submitFeedbackResponseBodyToJSON( + submitFeedbackResponseBody: SubmitFeedbackResponseBody, ): string { return JSON.stringify( - LogFeedbackResponseBody$outboundSchema.parse(logFeedbackResponseBody), + SubmitFeedbackResponseBody$outboundSchema.parse(submitFeedbackResponseBody), ); } -export function logFeedbackResponseBodyFromJSON( +export function submitFeedbackResponseBodyFromJSON( jsonString: string, -): SafeParseResult { +): SafeParseResult { return safeParse( jsonString, - (x) => LogFeedbackResponseBody$inboundSchema.parse(JSON.parse(x)), - `Failed to parse 'LogFeedbackResponseBody' from JSON`, + (x) => SubmitFeedbackResponseBody$inboundSchema.parse(JSON.parse(x)), + `Failed to parse 'SubmitFeedbackResponseBody' from JSON`, ); } diff --git a/src/react-query/feedbackSubmit.ts b/src/react-query/feedbackSubmit.ts index f8d61960..1a0f7871 100644 --- a/src/react-query/feedbackSubmit.ts +++ b/src/react-query/feedbackSubmit.ts @@ -17,19 +17,14 @@ import { useInkeepAnalyticsContext } from "./_context.js"; import { MutationHookOptions } from "./_types.js"; export type FeedbackSubmitMutationVariables = { - request: operations.LogFeedbackRequestBody; + request: operations.SubmitFeedbackRequestBody; options?: RequestOptions; }; -export type FeedbackSubmitMutationData = operations.LogFeedbackResponseBody; +export type FeedbackSubmitMutationData = operations.SubmitFeedbackResponseBody; /** - * Log Feedback - * - * @remarks - * Logs new feedback or updates an existing one. - * - * **API Key Types:** `API` + * Submit Feedback */ export function useFeedbackSubmitMutation( options?: MutationHookOptions< diff --git a/src/sdk/feedback.ts b/src/sdk/feedback.ts index 95570c29..9a723cd2 100644 --- a/src/sdk/feedback.ts +++ b/src/sdk/feedback.ts @@ -12,17 +12,12 @@ import { unwrapAsync } from "../types/fp.js"; export class Feedback extends ClientSDK { /** - * Log Feedback - * - * @remarks - * Logs new feedback or updates an existing one. - * - * **API Key Types:** `API` + * Submit Feedback */ async submit( - request: operations.LogFeedbackRequestBody, + request: operations.SubmitFeedbackRequestBody, options?: RequestOptions, - ): Promise { + ): Promise { return unwrapAsync(feedbackSubmit( this, request,