@proficient/api
Advanced tools
Comparing version 0.9.0 to 0.10.0
@@ -9,8 +9,5 @@ import type { Agent, AgentCreateParams, AgentUpdateParams } from './resources/Agent'; | ||
}; | ||
requestBody: undefined; | ||
responseBody: Agent; | ||
}; | ||
GetAgents: { | ||
pathParams: {}; | ||
requestBody: undefined; | ||
responseBody: { | ||
@@ -25,3 +22,2 @@ data: Agent[]; | ||
}; | ||
requestBody: undefined; | ||
responseBody: Agent; | ||
@@ -33,7 +29,5 @@ }; | ||
}; | ||
requestBody: undefined; | ||
responseBody: AgentConfig; | ||
}; | ||
PostAgents: { | ||
pathParams: {}; | ||
requestBody: AgentCreateParams; | ||
@@ -53,3 +47,2 @@ responseBody: Agent; | ||
}; | ||
requestBody: undefined; | ||
responseBody: Agent; | ||
@@ -68,3 +61,2 @@ }; | ||
}; | ||
requestBody: undefined; | ||
responseBody: Agent; | ||
@@ -74,6 +66,7 @@ }; | ||
type OperationId = keyof Operations; | ||
type PathParams<T extends OperationId> = Operations[T]['pathParams']; | ||
type RequestBody<T extends OperationId> = Operations[T]['requestBody']; | ||
type PathParams<T extends OperationId> = 'pathParams' extends keyof Operations[T] ? Operations[T]['pathParams'] extends Record<string, string> ? Operations[T]['pathParams'] : Record<string, string> : Record<string, string>; | ||
type QueryParams<T extends OperationId> = 'queryParams' extends keyof Operations[T] ? Operations[T]['queryParams'] extends Record<string, string | number> ? Operations[T]['queryParams'] : Record<string, string | number> : Record<string, string | number>; | ||
type RequestBody<T extends OperationId> = 'requestBody' extends keyof Operations[T] ? Operations[T]['requestBody'] : undefined; | ||
type ResponseBody<T extends OperationId> = Operations[T]['responseBody']; | ||
} | ||
//# sourceMappingURL=admin.d.ts.map |
@@ -7,5 +7,2 @@ import type { Agent } from './resources/Agent'; | ||
GetAgents: { | ||
pathParams: {}; | ||
queryParams: {}; | ||
requestBody: undefined; | ||
responseBody: { | ||
@@ -19,8 +16,5 @@ data: Agent[]; | ||
}; | ||
queryParams: {}; | ||
requestBody: undefined; | ||
responseBody: Agent; | ||
}; | ||
GetInteractions: { | ||
pathParams: {}; | ||
queryParams: { | ||
@@ -31,3 +25,2 @@ agent_id?: string; | ||
}; | ||
requestBody: undefined; | ||
responseBody: { | ||
@@ -39,4 +32,2 @@ data: Interaction[]; | ||
PostInteractions: { | ||
pathParams: {}; | ||
queryParams: {}; | ||
requestBody: InteractionCreateParams; | ||
@@ -49,4 +40,2 @@ responseBody: Interaction; | ||
}; | ||
queryParams: {}; | ||
requestBody: undefined; | ||
responseBody: Interaction; | ||
@@ -58,8 +47,5 @@ }; | ||
}; | ||
queryParams: {}; | ||
requestBody: undefined; | ||
responseBody: Interaction; | ||
}; | ||
GetMessages: { | ||
pathParams: {}; | ||
queryParams: { | ||
@@ -70,3 +56,2 @@ interaction_id: string; | ||
}; | ||
requestBody: undefined; | ||
responseBody: { | ||
@@ -78,4 +63,2 @@ data: Message[]; | ||
PostMessages: { | ||
pathParams: {}; | ||
queryParams: {}; | ||
requestBody: MessageCreateParams; | ||
@@ -88,4 +71,2 @@ responseBody: MessageSendResponse; | ||
}; | ||
queryParams: {}; | ||
requestBody: undefined; | ||
responseBody: Message; | ||
@@ -97,3 +78,2 @@ }; | ||
}; | ||
queryParams: {}; | ||
requestBody: MessageResendParams; | ||
@@ -104,7 +84,7 @@ responseBody: MessageSendResponse; | ||
type OperationId = keyof Operations; | ||
type PathParams<T extends OperationId> = Operations[T]['pathParams']; | ||
type QueryParams<T extends OperationId> = Operations[T]['queryParams']; | ||
type RequestBody<T extends OperationId> = Operations[T]['requestBody']; | ||
type PathParams<T extends OperationId> = 'pathParams' extends keyof Operations[T] ? Operations[T]['pathParams'] extends Record<string, string> ? Operations[T]['pathParams'] : Record<string, string> : Record<string, string>; | ||
type QueryParams<T extends OperationId> = 'queryParams' extends keyof Operations[T] ? Operations[T]['queryParams'] extends Record<string, string | number> ? Operations[T]['queryParams'] : Record<string, string | number> : Record<string, string | number>; | ||
type RequestBody<T extends OperationId> = 'requestBody' extends keyof Operations[T] ? Operations[T]['requestBody'] : undefined; | ||
type ResponseBody<T extends OperationId> = Operations[T]['responseBody']; | ||
} | ||
//# sourceMappingURL=client.d.ts.map |
{ | ||
"name": "@proficient/api", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "source": "./src/index.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
18610
290