@great-detail/support-sdk 0.0.1 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,7 +30,7 @@ export default class ListModelsRequest {
30
30
  }
31
31
  }
32
32
 
33
- export type ListResponse = {
33
+ export type ListModelsResponsePayload = {
34
34
  models: {
35
35
  id: string;
36
36
  name: string;
@@ -43,7 +43,7 @@ export type ListResponse = {
43
43
  export class ListModelsResponse {
44
44
  constructor(public response: Response) {}
45
45
 
46
- public async result(): Promise<ListResponse> {
46
+ public async result(): Promise<ListModelsResponsePayload> {
47
47
  return this.response.json();
48
48
  }
49
49
  }
@@ -47,7 +47,7 @@ export default class CreateResponseModelRequest {
47
47
  }
48
48
  }
49
49
 
50
- export type ListResponse = {
50
+ export type CreateResponseResponsePayload = {
51
51
  message: string | null;
52
52
  debug: {
53
53
  duration: string;
@@ -58,7 +58,7 @@ export type ListResponse = {
58
58
  export class CreateResponseModelResponse {
59
59
  constructor(public response: Response) {}
60
60
 
61
- public async result(): Promise<ListResponse> {
61
+ public async result(): Promise<CreateResponseResponsePayload> {
62
62
  return this.response.json();
63
63
  }
64
64
  }
@@ -30,7 +30,7 @@ export default class ListSourcesRequest {
30
30
  }
31
31
  }
32
32
 
33
- export type ListResponse = {
33
+ export type ListSourcesResponsePayload = {
34
34
  sources: {
35
35
  id: string;
36
36
  name: string;
@@ -43,7 +43,7 @@ export type ListResponse = {
43
43
  export class ListSourcesResponse {
44
44
  constructor(public response: Response) {}
45
45
 
46
- public async result(): Promise<ListResponse> {
46
+ public async result(): Promise<ListSourcesResponsePayload> {
47
47
  return this.response.json();
48
48
  }
49
49
  }
package/src/index.ts CHANGED
@@ -13,3 +13,14 @@ export { default as TokenAuthentication } from "./Authentication/TokenAuthentica
13
13
  export { default as PublicAuthentication } from "./Authentication/PublicAuthentication.js";
14
14
  export { type default as RequestFilterable } from "./Request/RequestFilterable.js";
15
15
  export { default, default as Client } from "./Client/index.js";
16
+ export { type ListActionsResponsePayload } from "./Action/ListActions.js";
17
+ export { type ListChannelsResponsePayload } from "./Channel/ListChannels.js";
18
+ export { type ListContactsResponsePayload } from "./Contact/ListContacts.js";
19
+ export { type ListConversationsResponsePayload } from "./Conversation/ListConversations.js";
20
+ export { type GetConversationResponsePayload } from "./Conversation/GetConversation.js";
21
+ export { type ListLabelsResponsePayload } from "./Label/ListLabels.js";
22
+ export { type ListMessagesResponsePayload } from "./Message/ListMessages.js";
23
+ export { type ListModelsResponsePayload } from "./Model/ListModels.js";
24
+ export { type CreateCorrectionResponsePayload } from "./Model/Correction/CreateCorrectionModel.js";
25
+ export { type CreateResponseResponsePayload } from "./Model/Response/CreateResponseModel.js";
26
+ export { type ListSourcesResponsePayload } from "./Source/ListSources.js";