@compassdigital/sdk.typescript 3.77.0 → 3.77.1

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.
@@ -0,0 +1,72 @@
1
+ /* eslint-disable */
2
+ // THIS FILE IS AUTOMATICALLY GENERATED, DO NOT MODIFY
3
+
4
+ import { RequestQuery, BaseRequest } from "./util";
5
+
6
+ export interface OptionsDTO {
7
+ temperature?: number;
8
+ max_tokens?: number;
9
+ }
10
+
11
+ export interface MessageDTO {
12
+ actor: string;
13
+ content: string;
14
+ }
15
+
16
+ export interface GenerateTextRequest {
17
+ options?: OptionsDTO;
18
+ messages: MessageDTO[];
19
+ }
20
+
21
+ export interface GenerateTextResponse {
22
+ messages: MessageDTO[];
23
+ }
24
+
25
+ export interface BadRequestErrorDTO {
26
+ message: string;
27
+ code: number;
28
+ data: any;
29
+ }
30
+
31
+ export interface UnauthorizedErrorDTO {
32
+ message: string;
33
+ code: number;
34
+ data: any;
35
+ }
36
+
37
+ export type InternalServerErrorException = any;
38
+
39
+ export interface GenerateImageRequest {
40
+ prompt: string;
41
+ number_of_images?: number;
42
+ negative_prompt?: string;
43
+ }
44
+
45
+ export interface ImageDTO {
46
+ data: string;
47
+ mime_type: string;
48
+ }
49
+
50
+ export interface GenerateImageResponse {
51
+ images: ImageDTO[];
52
+ }
53
+
54
+ // POST /ai/language/generate - Generate text from a given prompt
55
+
56
+ export type PostAiLanguageGenerateBody = GenerateTextRequest;
57
+
58
+ export type PostAiLanguageGenerateResponse = GenerateTextResponse;
59
+
60
+ export interface PostAiLanguageGenerateRequest extends BaseRequest {
61
+ body: PostAiLanguageGenerateBody;
62
+ }
63
+
64
+ // POST /ai/image/generate - Generate image from a given prompt
65
+
66
+ export type PostAiImageGenerateBody = GenerateImageRequest;
67
+
68
+ export type PostAiImageGenerateResponse = GenerateImageResponse;
69
+
70
+ export interface PostAiImageGenerateRequest extends BaseRequest {
71
+ body: PostAiImageGenerateBody;
72
+ }
@@ -29,11 +29,13 @@ export interface PostDatalakeSqlRequest extends BaseRequest {
29
29
 
30
30
  // GET /swagger.json
31
31
 
32
- export interface GetSwaggerQuery {
32
+ export interface GetDatalakeSwaggerQuery {
33
33
  // Graphql query string
34
34
  _query?: string;
35
35
  }
36
36
 
37
- export type GetSwaggerResponse = any;
37
+ export type GetDatalakeSwaggerResponse = any;
38
38
 
39
- export interface GetSwaggerRequest extends BaseRequest, RequestQuery<GetSwaggerQuery> {}
39
+ export interface GetDatalakeSwaggerRequest
40
+ extends BaseRequest,
41
+ RequestQuery<GetDatalakeSwaggerQuery> {}
@@ -72,90 +72,84 @@ export interface CheckCheckInStatusResponseDTO {
72
72
 
73
73
  // POST /frictionless/webhook/standardcognition - Receive frictionless standard cognition events
74
74
 
75
- export type PostFrictionlessStandardCognitionEventWebhookControllerExecuteBody =
76
- StandardCognitionEvent;
75
+ export type StandardCognitionEventWebhookControllerExecuteBody = StandardCognitionEvent;
77
76
 
78
- export type PostFrictionlessStandardCognitionEventWebhookControllerExecuteResponse = any;
77
+ export type StandardCognitionEventWebhookControllerExecuteResponse = any;
79
78
 
80
- export interface PostFrictionlessStandardCognitionEventWebhookControllerExecuteRequest
81
- extends BaseRequest {
82
- body: PostFrictionlessStandardCognitionEventWebhookControllerExecuteBody;
79
+ export interface StandardCognitionEventWebhookControllerExecuteRequest extends BaseRequest {
80
+ body: StandardCognitionEventWebhookControllerExecuteBody;
83
81
  }
84
82
 
85
83
  // GET /frictionless/brand/{id_brand}/frictionless-status - Check frictionless support of a given brand
86
84
 
87
- export interface GetFrictionlessCheckFrictionlessSupportControllerExecutePath {
85
+ export interface CheckFrictionlessSupportControllerExecutePath {
88
86
  // Brand ID as Encoded CDL ID
89
87
  id_brand: string;
90
88
  }
91
89
 
92
- export interface GetFrictionlessCheckFrictionlessSupportControllerExecuteQuery {
90
+ export interface CheckFrictionlessSupportControllerExecuteQuery {
93
91
  // Graphql query string
94
92
  _query?: string;
95
93
  }
96
94
 
97
- export type GetFrictionlessCheckFrictionlessSupportControllerExecuteResponse =
98
- FrictionlessSupportResponse;
95
+ export type CheckFrictionlessSupportControllerExecuteResponse = FrictionlessSupportResponse;
99
96
 
100
- export interface GetFrictionlessCheckFrictionlessSupportControllerExecuteRequest
97
+ export interface CheckFrictionlessSupportControllerExecuteRequest
101
98
  extends BaseRequest,
102
- RequestQuery<GetFrictionlessCheckFrictionlessSupportControllerExecuteQuery>,
103
- GetFrictionlessCheckFrictionlessSupportControllerExecutePath {}
99
+ RequestQuery<CheckFrictionlessSupportControllerExecuteQuery>,
100
+ CheckFrictionlessSupportControllerExecutePath {}
104
101
 
105
102
  // POST /frictionless/qrcode - Create Frictionless QR Code to make user able to check in
106
103
 
107
- export type PostFrictionlessCreateQRCodeUserCheckInControllerExecuteBody =
108
- CreateFrictionlessQRCodeCommand;
104
+ export type CreateQRCodeUserCheckInControllerExecuteBody = CreateFrictionlessQRCodeCommand;
109
105
 
110
- export type PostFrictionlessCreateQRCodeUserCheckInControllerExecuteResponse = {};
106
+ export type CreateQRCodeUserCheckInControllerExecuteResponse = {};
111
107
 
112
- export interface PostFrictionlessCreateQRCodeUserCheckInControllerExecuteRequest
113
- extends BaseRequest {
114
- body: PostFrictionlessCreateQRCodeUserCheckInControllerExecuteBody;
108
+ export interface CreateQRCodeUserCheckInControllerExecuteRequest extends BaseRequest {
109
+ body: CreateQRCodeUserCheckInControllerExecuteBody;
115
110
  }
116
111
 
117
112
  // GET /frictionless/failed-checkins - List check-ins on error
118
113
 
119
- export interface GetFrictionlessListFailedCheckinsControllerExecuteQuery {
114
+ export interface ListFailedCheckinsControllerExecuteQuery {
120
115
  // Graphql query string
121
116
  _query?: string;
122
117
  }
123
118
 
124
- export type GetFrictionlessListFailedCheckinsControllerExecuteResponse = FailedCheckInDTO[];
119
+ export type ListFailedCheckinsControllerExecuteResponse = FailedCheckInDTO[];
125
120
 
126
- export interface GetFrictionlessListFailedCheckinsControllerExecuteRequest
121
+ export interface ListFailedCheckinsControllerExecuteRequest
127
122
  extends BaseRequest,
128
- RequestQuery<GetFrictionlessListFailedCheckinsControllerExecuteQuery> {}
123
+ RequestQuery<ListFailedCheckinsControllerExecuteQuery> {}
129
124
 
130
125
  // POST /frictionless/checkin/{id_checkin}/reprocess - Reprocess checkin on error
131
126
 
132
- export interface PostFrictionlessReprocessCheckinOnErrorControllerExecutePath {
127
+ export interface ReprocessCheckinOnErrorControllerExecutePath {
133
128
  // TODO: add parameter to swagger.json
134
129
  id_checkin: string;
135
130
  }
136
131
 
137
- export type PostFrictionlessReprocessCheckinOnErrorControllerExecuteResponse = {};
132
+ export type ReprocessCheckinOnErrorControllerExecuteResponse = {};
138
133
 
139
- export interface PostFrictionlessReprocessCheckinOnErrorControllerExecuteRequest
134
+ export interface ReprocessCheckinOnErrorControllerExecuteRequest
140
135
  extends BaseRequest,
141
- PostFrictionlessReprocessCheckinOnErrorControllerExecutePath {}
136
+ ReprocessCheckinOnErrorControllerExecutePath {}
142
137
 
143
138
  // GET /frictionless/checkin/{id_checkin}/status - Fetch CheckIn status
144
139
 
145
- export interface GetFrictionlessCheckCheckinStatusControllerExecutePath {
140
+ export interface CheckCheckinStatusControllerExecutePath {
146
141
  // TODO: add parameter to swagger.json
147
142
  id_checkin: string;
148
143
  }
149
144
 
150
- export interface GetFrictionlessCheckCheckinStatusControllerExecuteQuery {
145
+ export interface CheckCheckinStatusControllerExecuteQuery {
151
146
  // Graphql query string
152
147
  _query?: string;
153
148
  }
154
149
 
155
- export type GetFrictionlessCheckCheckinStatusControllerExecuteResponse =
156
- CheckCheckInStatusResponseDTO;
150
+ export type CheckCheckinStatusControllerExecuteResponse = CheckCheckInStatusResponseDTO;
157
151
 
158
- export interface GetFrictionlessCheckCheckinStatusControllerExecuteRequest
152
+ export interface CheckCheckinStatusControllerExecuteRequest
159
153
  extends BaseRequest,
160
- RequestQuery<GetFrictionlessCheckCheckinStatusControllerExecuteQuery>,
161
- GetFrictionlessCheckCheckinStatusControllerExecutePath {}
154
+ RequestQuery<CheckCheckinStatusControllerExecuteQuery>,
155
+ CheckCheckinStatusControllerExecutePath {}
@@ -1318,38 +1318,38 @@ export interface GetLocationV2GroupsRequest
1318
1318
 
1319
1319
  // GET /location/menu_association/{id}/brand - Get menu association for a brand
1320
1320
 
1321
- export interface GetLocationMenu_associationBrandPath {
1321
+ export interface GetLocationMenuAssociationBrandPath {
1322
1322
  // brand id
1323
1323
  id: string;
1324
1324
  }
1325
1325
 
1326
- export interface GetLocationMenu_associationBrandQuery {
1326
+ export interface GetLocationMenuAssociationBrandQuery {
1327
1327
  // Graphql query string
1328
1328
  _query?: string;
1329
1329
  }
1330
1330
 
1331
- export type GetLocationMenu_associationBrandResponse = MenuAssociations;
1331
+ export type GetLocationMenuAssociationBrandResponse = MenuAssociations;
1332
1332
 
1333
- export interface GetLocationMenu_associationBrandRequest
1333
+ export interface GetLocationMenuAssociationBrandRequest
1334
1334
  extends BaseRequest,
1335
- RequestQuery<GetLocationMenu_associationBrandQuery>,
1336
- GetLocationMenu_associationBrandPath {}
1335
+ RequestQuery<GetLocationMenuAssociationBrandQuery>,
1336
+ GetLocationMenuAssociationBrandPath {}
1337
1337
 
1338
1338
  // GET /location/menu_association/{id}/menu - Get menu association for a brand
1339
1339
 
1340
- export interface GetLocationMenu_associationMenuPath {
1340
+ export interface GetLocationMenuAssociationMenuPath {
1341
1341
  // menu id
1342
1342
  id: string;
1343
1343
  }
1344
1344
 
1345
- export interface GetLocationMenu_associationMenuQuery {
1345
+ export interface GetLocationMenuAssociationMenuQuery {
1346
1346
  // Graphql query string
1347
1347
  _query?: string;
1348
1348
  }
1349
1349
 
1350
- export type GetLocationMenu_associationMenuResponse = MenuAssociations;
1350
+ export type GetLocationMenuAssociationMenuResponse = MenuAssociations;
1351
1351
 
1352
- export interface GetLocationMenu_associationMenuRequest
1352
+ export interface GetLocationMenuAssociationMenuRequest
1353
1353
  extends BaseRequest,
1354
- RequestQuery<GetLocationMenu_associationMenuQuery>,
1355
- GetLocationMenu_associationMenuPath {}
1354
+ RequestQuery<GetLocationMenuAssociationMenuQuery>,
1355
+ GetLocationMenuAssociationMenuPath {}