@thomas-labs/scrape-service-lib 1.1.79 → 1.1.80

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.
package/dist/AppClient.js CHANGED
@@ -22,7 +22,7 @@ class AppClient {
22
22
  constructor(config, HttpRequest = FetchHttpRequest_1.FetchHttpRequest) {
23
23
  this.request = new HttpRequest({
24
24
  BASE: config?.BASE ?? '/api',
25
- VERSION: config?.VERSION ?? '1.0.89',
25
+ VERSION: config?.VERSION ?? '1.0.90',
26
26
  WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
27
27
  CREDENTIALS: config?.CREDENTIALS ?? 'include',
28
28
  TOKEN: config?.TOKEN,
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.OpenAPI = void 0;
4
4
  exports.OpenAPI = {
5
5
  BASE: '/api',
6
- VERSION: '1.0.89',
6
+ VERSION: '1.0.90',
7
7
  WITH_CREDENTIALS: false,
8
8
  CREDENTIALS: 'include',
9
9
  TOKEN: undefined,
@@ -58,4 +58,43 @@ export declare class AiService {
58
58
  deleteKey(keyId: string): CancelablePromise<{
59
59
  ok: boolean;
60
60
  }>;
61
+ /**
62
+ * @param requestBody
63
+ * @returns any Ok
64
+ * @throws ApiError
65
+ */
66
+ adminUpsertKey(requestBody: UpsertAiKeyDto): CancelablePromise<any>;
67
+ /**
68
+ * @param page
69
+ * @param limit
70
+ * @param search
71
+ * @param cursorId
72
+ * @param take
73
+ * @returns any Ok
74
+ * @throws ApiError
75
+ */
76
+ adminListKeys(page?: number, limit?: number, search?: string, cursorId?: string, take?: number): CancelablePromise<any>;
77
+ /**
78
+ * @param keyId
79
+ * @returns any Ok
80
+ * @throws ApiError
81
+ */
82
+ adminGetKey(keyId: string): CancelablePromise<any>;
83
+ /**
84
+ * @param keyId
85
+ * @param requestBody
86
+ * @returns any Ok
87
+ * @throws ApiError
88
+ */
89
+ adminUpdateKey(keyId: string, requestBody: UpdateAiKeyDto): CancelablePromise<{
90
+ ok: boolean;
91
+ }>;
92
+ /**
93
+ * @param keyId
94
+ * @returns any Ok
95
+ * @throws ApiError
96
+ */
97
+ adminDeleteKey(keyId: string): CancelablePromise<{
98
+ ok: boolean;
99
+ }>;
61
100
  }
@@ -98,5 +98,85 @@ class AiService {
98
98
  },
99
99
  });
100
100
  }
101
+ /**
102
+ * @param requestBody
103
+ * @returns any Ok
104
+ * @throws ApiError
105
+ */
106
+ adminUpsertKey(requestBody) {
107
+ return this.httpRequest.request({
108
+ method: 'POST',
109
+ url: '/ai/admin/key',
110
+ body: requestBody,
111
+ mediaType: 'application/json',
112
+ });
113
+ }
114
+ /**
115
+ * @param page
116
+ * @param limit
117
+ * @param search
118
+ * @param cursorId
119
+ * @param take
120
+ * @returns any Ok
121
+ * @throws ApiError
122
+ */
123
+ adminListKeys(page, limit, search, cursorId, take) {
124
+ return this.httpRequest.request({
125
+ method: 'GET',
126
+ url: '/ai/admin/keys',
127
+ query: {
128
+ 'page': page,
129
+ 'limit': limit,
130
+ 'search': search,
131
+ 'cursorId': cursorId,
132
+ 'take': take,
133
+ },
134
+ });
135
+ }
136
+ /**
137
+ * @param keyId
138
+ * @returns any Ok
139
+ * @throws ApiError
140
+ */
141
+ adminGetKey(keyId) {
142
+ return this.httpRequest.request({
143
+ method: 'GET',
144
+ url: '/ai/admin/keys/{keyId}',
145
+ path: {
146
+ 'keyId': keyId,
147
+ },
148
+ });
149
+ }
150
+ /**
151
+ * @param keyId
152
+ * @param requestBody
153
+ * @returns any Ok
154
+ * @throws ApiError
155
+ */
156
+ adminUpdateKey(keyId, requestBody) {
157
+ return this.httpRequest.request({
158
+ method: 'PATCH',
159
+ url: '/ai/admin/keys/{keyId}',
160
+ path: {
161
+ 'keyId': keyId,
162
+ },
163
+ body: requestBody,
164
+ mediaType: 'application/json',
165
+ });
166
+ }
167
+ /**
168
+ * @param keyId
169
+ * @returns any Ok
170
+ * @throws ApiError
171
+ */
172
+ adminDeleteKey(keyId) {
173
+ return this.httpRequest.request({
174
+ method: 'DELETE',
175
+ url: '/ai/admin/keys/{keyId}',
176
+ path: {
177
+ 'keyId': keyId,
178
+ },
179
+ });
180
+ }
101
181
  }
102
182
  exports.AiService = AiService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thomas-labs/scrape-service-lib",
3
- "version": "1.1.79",
3
+ "version": "1.1.80",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",