@databricks/sdk-marketplaces 0.1.0-dev.3 → 0.1.0-dev.5
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/README.md +28 -0
- package/dist/v1/client.d.ts +3 -3
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +261 -213
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/model.d.ts +127 -110
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +165 -165
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/transport.d.ts +30 -2
- package/dist/v1/transport.d.ts.map +1 -1
- package/dist/v1/transport.js +33 -16
- package/dist/v1/transport.js.map +1 -1
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +2 -1
- package/dist/v1/utils.js.map +1 -1
- package/package.json +9 -5
- package/src/v1/client.ts +0 -2253
- package/src/v1/index.ts +0 -150
- package/src/v1/model.ts +0 -2492
- package/src/v1/transport.ts +0 -73
- package/src/v1/utils.ts +0 -156
package/src/v1/model.ts
DELETED
|
@@ -1,2492 +0,0 @@
|
|
|
1
|
-
// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
import {z} from 'zod';
|
|
4
|
-
|
|
5
|
-
export enum AssetType {
|
|
6
|
-
ASSET_TYPE_UNSPECIFIED = 'ASSET_TYPE_UNSPECIFIED',
|
|
7
|
-
ASSET_TYPE_GIT_REPO = 'ASSET_TYPE_GIT_REPO',
|
|
8
|
-
ASSET_TYPE_DATA_TABLE = 'ASSET_TYPE_DATA_TABLE',
|
|
9
|
-
ASSET_TYPE_MODEL = 'ASSET_TYPE_MODEL',
|
|
10
|
-
ASSET_TYPE_NOTEBOOK = 'ASSET_TYPE_NOTEBOOK',
|
|
11
|
-
/**
|
|
12
|
-
* (MP-2408): media-based assets generally involve volumes; however some volumes files (e.g. CSV) still correspond to datasets
|
|
13
|
-
* as such, add a new asset type to specify media
|
|
14
|
-
*/
|
|
15
|
-
ASSET_TYPE_MEDIA = 'ASSET_TYPE_MEDIA',
|
|
16
|
-
ASSET_TYPE_PARTNER_INTEGRATION = 'ASSET_TYPE_PARTNER_INTEGRATION',
|
|
17
|
-
ASSET_TYPE_APP = 'ASSET_TYPE_APP',
|
|
18
|
-
ASSET_TYPE_MCP = 'ASSET_TYPE_MCP',
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export enum Category {
|
|
22
|
-
ADVERTISING_AND_MARKETING = 'ADVERTISING_AND_MARKETING',
|
|
23
|
-
CLIMATE_AND_ENVIRONMENT = 'CLIMATE_AND_ENVIRONMENT',
|
|
24
|
-
COMMERCE = 'COMMERCE',
|
|
25
|
-
DEMOGRAPHICS = 'DEMOGRAPHICS',
|
|
26
|
-
ECONOMICS = 'ECONOMICS',
|
|
27
|
-
EDUCATION = 'EDUCATION',
|
|
28
|
-
ENERGY = 'ENERGY',
|
|
29
|
-
FINANCIAL = 'FINANCIAL',
|
|
30
|
-
GAMING = 'GAMING',
|
|
31
|
-
GEOSPATIAL = 'GEOSPATIAL',
|
|
32
|
-
HEALTH = 'HEALTH',
|
|
33
|
-
LOOKUP_TABLES = 'LOOKUP_TABLES',
|
|
34
|
-
MANUFACTURING = 'MANUFACTURING',
|
|
35
|
-
MEDIA = 'MEDIA',
|
|
36
|
-
OTHER = 'OTHER',
|
|
37
|
-
PUBLIC_SECTOR = 'PUBLIC_SECTOR',
|
|
38
|
-
RETAIL = 'RETAIL',
|
|
39
|
-
SECURITY = 'SECURITY',
|
|
40
|
-
SCIENCE_AND_RESEARCH = 'SCIENCE_AND_RESEARCH',
|
|
41
|
-
SPORTS = 'SPORTS',
|
|
42
|
-
TRANSPORTATION_AND_LOGISTICS = 'TRANSPORTATION_AND_LOGISTICS',
|
|
43
|
-
TRAVEL_AND_TOURISM = 'TRAVEL_AND_TOURISM',
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export enum Cost {
|
|
47
|
-
FREE = 'FREE',
|
|
48
|
-
PAID = 'PAID',
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export enum DataRefresh {
|
|
52
|
-
NONE = 'NONE',
|
|
53
|
-
SECOND = 'SECOND',
|
|
54
|
-
MINUTE = 'MINUTE',
|
|
55
|
-
HOURLY = 'HOURLY',
|
|
56
|
-
DAILY = 'DAILY',
|
|
57
|
-
WEEKLY = 'WEEKLY',
|
|
58
|
-
MONTHLY = 'MONTHLY',
|
|
59
|
-
QUARTERLY = 'QUARTERLY',
|
|
60
|
-
YEARLY = 'YEARLY',
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export enum DeltaSharingRecipientType {
|
|
64
|
-
DELTA_SHARING_RECIPIENT_TYPE_DATABRICKS = 'DELTA_SHARING_RECIPIENT_TYPE_DATABRICKS',
|
|
65
|
-
DELTA_SHARING_RECIPIENT_TYPE_OPEN = 'DELTA_SHARING_RECIPIENT_TYPE_OPEN',
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export enum ExchangeFilterType {
|
|
69
|
-
GLOBAL_METASTORE_ID = 'GLOBAL_METASTORE_ID',
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export enum FileParentType {
|
|
73
|
-
PROVIDER = 'PROVIDER',
|
|
74
|
-
LISTING = 'LISTING',
|
|
75
|
-
LISTING_RESOURCE = 'LISTING_RESOURCE',
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export enum FileStatus {
|
|
79
|
-
/** Published files have been sanitized by Marketplace backend and can be viewed by consumers. */
|
|
80
|
-
FILE_STATUS_PUBLISHED = 'FILE_STATUS_PUBLISHED',
|
|
81
|
-
/** Created files start in staging. These are viewable by provider APIs but not consumer APIs. */
|
|
82
|
-
FILE_STATUS_STAGING = 'FILE_STATUS_STAGING',
|
|
83
|
-
/** Indicates this file is in the process of being sanitized. */
|
|
84
|
-
FILE_STATUS_SANITIZING = 'FILE_STATUS_SANITIZING',
|
|
85
|
-
/** Something went wrong with sanitization, refer to the status message for more information. */
|
|
86
|
-
FILE_STATUS_SANITIZATION_FAILED = 'FILE_STATUS_SANITIZATION_FAILED',
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export enum FulfillmentType {
|
|
90
|
-
REQUEST_ACCESS = 'REQUEST_ACCESS',
|
|
91
|
-
INSTALL = 'INSTALL',
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export enum InstallationStatus {
|
|
95
|
-
INSTALLED = 'INSTALLED',
|
|
96
|
-
FAILED = 'FAILED',
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export enum ListingShareType {
|
|
100
|
-
SAMPLE = 'SAMPLE',
|
|
101
|
-
FULL = 'FULL',
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
/** Enums */
|
|
105
|
-
export enum ListingStatus {
|
|
106
|
-
DRAFT = 'DRAFT',
|
|
107
|
-
PENDING = 'PENDING',
|
|
108
|
-
PUBLISHED = 'PUBLISHED',
|
|
109
|
-
SUSPENDED = 'SUSPENDED',
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
export enum ListingTagType {
|
|
113
|
-
LISTING_TAG_TYPE_UNSPECIFIED = 'LISTING_TAG_TYPE_UNSPECIFIED',
|
|
114
|
-
LISTING_TAG_TYPE_LANGUAGE = 'LISTING_TAG_TYPE_LANGUAGE',
|
|
115
|
-
LISTING_TAG_TYPE_TASK = 'LISTING_TAG_TYPE_TASK',
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
export enum ListingType {
|
|
119
|
-
STANDARD = 'STANDARD',
|
|
120
|
-
PERSONALIZED = 'PERSONALIZED',
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export enum MarketplaceFileType {
|
|
124
|
-
PROVIDER_ICON = 'PROVIDER_ICON',
|
|
125
|
-
EMBEDDED_NOTEBOOK = 'EMBEDDED_NOTEBOOK',
|
|
126
|
-
APP = 'APP',
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
export enum PersonalizationRequestStatus {
|
|
130
|
-
NEW = 'NEW',
|
|
131
|
-
/** Pending already defined for ListingStatus */
|
|
132
|
-
REQUEST_PENDING = 'REQUEST_PENDING',
|
|
133
|
-
FULFILLED = 'FULFILLED',
|
|
134
|
-
DENIED = 'DENIED',
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export enum Visibility {
|
|
138
|
-
PUBLIC = 'PUBLIC',
|
|
139
|
-
PRIVATE = 'PRIVATE',
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export interface AddExchangeForListingRequest {
|
|
143
|
-
listingId?: string | undefined;
|
|
144
|
-
exchangeId?: string | undefined;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
export interface AddExchangeForListingResponse {
|
|
148
|
-
exchangeForListing?: ExchangeListing | undefined;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export interface BatchGetListingsRequest {
|
|
152
|
-
ids?: string[] | undefined;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export interface BatchGetListingsResponse {
|
|
156
|
-
listings?: Listing[] | undefined;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
export interface BatchGetProvidersRequest {
|
|
160
|
-
ids?: string[] | undefined;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export interface BatchGetProvidersResponse {
|
|
164
|
-
providers?: ProviderInfo[] | undefined;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
export interface ConsumerTerms {
|
|
168
|
-
version?: string | undefined;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
/** contact info for the consumer requesting data or performing a listing installation */
|
|
172
|
-
export interface ContactInfo {
|
|
173
|
-
firstName?: string | undefined;
|
|
174
|
-
lastName?: string | undefined;
|
|
175
|
-
email?: string | undefined;
|
|
176
|
-
company?: string | undefined;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export interface CreateExchangeFilterRequest {
|
|
180
|
-
filter?: ExchangeFilter | undefined;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export interface CreateExchangeFilterResponse {
|
|
184
|
-
filterId?: string | undefined;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
export interface CreateExchangeRequest {
|
|
188
|
-
exchange?: Exchange | undefined;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
export interface CreateExchangeResponse {
|
|
192
|
-
exchangeId?: string | undefined;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
export interface CreateFileRequest {
|
|
196
|
-
fileParent?: FileParent | undefined;
|
|
197
|
-
marketplaceFileType?: MarketplaceFileType | undefined;
|
|
198
|
-
mimeType?: string | undefined;
|
|
199
|
-
displayName?: string | undefined;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
export interface CreateFileResponse {
|
|
203
|
-
/** Pre-signed POST URL to blob storage */
|
|
204
|
-
uploadUrl?: string | undefined;
|
|
205
|
-
fileInfo?: FileInfo | undefined;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export interface CreateInstallationResponse {
|
|
209
|
-
installation?: InstallationDetail | undefined;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export interface CreateListingRequest {
|
|
213
|
-
listing?: Listing | undefined;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
export interface CreateListingResponse {
|
|
217
|
-
listingId?: string | undefined;
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Data request messages
|
|
222
|
-
* also creates a lead (maybe)
|
|
223
|
-
*/
|
|
224
|
-
export interface CreatePersonalizationRequest {
|
|
225
|
-
listingId?: string | undefined;
|
|
226
|
-
comment?: string | undefined;
|
|
227
|
-
intendedUse?: string | undefined;
|
|
228
|
-
firstName?: string | undefined;
|
|
229
|
-
lastName?: string | undefined;
|
|
230
|
-
company?: string | undefined;
|
|
231
|
-
isFromLighthouse?: boolean | undefined;
|
|
232
|
-
recipientType?: DeltaSharingRecipientType | undefined;
|
|
233
|
-
acceptedConsumerTerms?: ConsumerTerms | undefined;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
export interface CreatePersonalizationResponse {
|
|
237
|
-
id?: string | undefined;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
241
|
-
export interface CreateProviderAnalyticsDashboardRequest {}
|
|
242
|
-
|
|
243
|
-
export interface CreateProviderAnalyticsDashboardResponse {
|
|
244
|
-
id?: string | undefined;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export interface CreateProviderRequest {
|
|
248
|
-
provider?: ProviderInfo | undefined;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export interface CreateProviderResponse {
|
|
252
|
-
id?: string | undefined;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
export interface DataRefreshInfo {
|
|
256
|
-
interval?: bigint | undefined;
|
|
257
|
-
unit?: DataRefresh | undefined;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export interface DeleteExchangeFilterRequest {
|
|
261
|
-
id?: string | undefined;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
265
|
-
export interface DeleteExchangeFilterResponse {}
|
|
266
|
-
|
|
267
|
-
export interface DeleteExchangeRequest {
|
|
268
|
-
id?: string | undefined;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
272
|
-
export interface DeleteExchangeResponse {}
|
|
273
|
-
|
|
274
|
-
export interface DeleteFileRequest {
|
|
275
|
-
fileId?: string | undefined;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
279
|
-
export interface DeleteFileResponse {}
|
|
280
|
-
|
|
281
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
282
|
-
export interface DeleteInstallationResponse {}
|
|
283
|
-
|
|
284
|
-
export interface DeleteListingRequest {
|
|
285
|
-
id?: string | undefined;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
289
|
-
export interface DeleteListingResponse {}
|
|
290
|
-
|
|
291
|
-
export interface DeleteProviderRequest {
|
|
292
|
-
id?: string | undefined;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
296
|
-
export interface DeleteProviderResponse {}
|
|
297
|
-
|
|
298
|
-
export interface Exchange {
|
|
299
|
-
id?: string | undefined;
|
|
300
|
-
name?: string | undefined;
|
|
301
|
-
comment?: string | undefined;
|
|
302
|
-
filters?: ExchangeFilter[] | undefined;
|
|
303
|
-
createdAt?: bigint | undefined;
|
|
304
|
-
createdBy?: string | undefined;
|
|
305
|
-
updatedAt?: bigint | undefined;
|
|
306
|
-
updatedBy?: string | undefined;
|
|
307
|
-
linkedListings?: ExchangeListing[] | undefined;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
export interface ExchangeFilter {
|
|
311
|
-
id?: string | undefined;
|
|
312
|
-
exchangeId?: string | undefined;
|
|
313
|
-
filterValue?: string | undefined;
|
|
314
|
-
name?: string | undefined;
|
|
315
|
-
createdAt?: bigint | undefined;
|
|
316
|
-
createdBy?: string | undefined;
|
|
317
|
-
updatedAt?: bigint | undefined;
|
|
318
|
-
updatedBy?: string | undefined;
|
|
319
|
-
filterType?: ExchangeFilterType | undefined;
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
export interface ExchangeListing {
|
|
323
|
-
id?: string | undefined;
|
|
324
|
-
exchangeId?: string | undefined;
|
|
325
|
-
exchangeName?: string | undefined;
|
|
326
|
-
listingId?: string | undefined;
|
|
327
|
-
listingName?: string | undefined;
|
|
328
|
-
createdAt?: bigint | undefined;
|
|
329
|
-
createdBy?: string | undefined;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
export interface FileInfo {
|
|
333
|
-
id?: string | undefined;
|
|
334
|
-
marketplaceFileType?: MarketplaceFileType | undefined;
|
|
335
|
-
fileParent?: FileParent | undefined;
|
|
336
|
-
mimeType?: string | undefined;
|
|
337
|
-
downloadLink?: string | undefined;
|
|
338
|
-
createdAt?: bigint | undefined;
|
|
339
|
-
updatedAt?: bigint | undefined;
|
|
340
|
-
/** Name displayed to users for applicable files, e.g. embedded notebooks */
|
|
341
|
-
displayName?: string | undefined;
|
|
342
|
-
status?: FileStatus | undefined;
|
|
343
|
-
/** Populated if status is in a failed state with more information on reason for the failure. */
|
|
344
|
-
statusMessage?: string | undefined;
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
export interface FileParent {
|
|
348
|
-
/** TODO make the following fields required */
|
|
349
|
-
parentId?: string | undefined;
|
|
350
|
-
fileParentType?: FileParentType | undefined;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
export interface GetAllPersonalizationRequestsForConsumerResponse {
|
|
354
|
-
personalizationRequests?: PersonalizationRequest[] | undefined;
|
|
355
|
-
nextPageToken?: string | undefined;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
export interface GetExchangeRequest {
|
|
359
|
-
id?: string | undefined;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
export interface GetExchangeResponse {
|
|
363
|
-
exchange?: Exchange | undefined;
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
export interface GetFileRequest {
|
|
367
|
-
fileId?: string | undefined;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
export interface GetFileResponse {
|
|
371
|
-
fileInfo?: FileInfo | undefined;
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
export interface GetInstallationDetails {
|
|
375
|
-
listingId?: string | undefined;
|
|
376
|
-
pageToken?: string | undefined;
|
|
377
|
-
pageSize?: number | undefined;
|
|
378
|
-
}
|
|
379
|
-
|
|
380
|
-
/**
|
|
381
|
-
* this is effectively a static request for now and will return latest version of the dashboard template
|
|
382
|
-
* that exists on server.
|
|
383
|
-
*/
|
|
384
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
385
|
-
export interface GetLatestVersionProviderAnalyticsDashboardRequest {}
|
|
386
|
-
|
|
387
|
-
export interface GetLatestVersionProviderAnalyticsDashboardResponse {
|
|
388
|
-
/** version here is latest logical version of the dashboard template */
|
|
389
|
-
version?: bigint | undefined;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
export interface GetListingContent {
|
|
393
|
-
listingId?: string | undefined;
|
|
394
|
-
pageToken?: string | undefined;
|
|
395
|
-
pageSize?: number | undefined;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
export interface GetListingContentMetadataResponse {
|
|
399
|
-
sharedDataObjects?: SharedDataObject[] | undefined;
|
|
400
|
-
nextPageToken?: string | undefined;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
export interface GetListingRequest {
|
|
404
|
-
id?: string | undefined;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
export interface GetListingResponse {
|
|
408
|
-
listing?: Listing | undefined;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
export interface GetListingsResponse {
|
|
412
|
-
listings?: Listing[] | undefined;
|
|
413
|
-
nextPageToken?: string | undefined;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
export interface GetPersonalizationRequestsForConsumer {
|
|
417
|
-
listingId?: string | undefined;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
export interface GetPersonalizationRequestsForConsumerResponse {
|
|
421
|
-
personalizationRequests?: PersonalizationRequest[] | undefined;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
export interface GetPersonalizationRequestsForProviderRequest {
|
|
425
|
-
pageToken?: string | undefined;
|
|
426
|
-
pageSize?: number | undefined;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
export interface GetPersonalizationRequestsForProviderResponse {
|
|
430
|
-
personalizationRequests?: PersonalizationRequest[] | undefined;
|
|
431
|
-
nextPageToken?: string | undefined;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
export interface GetProviderRequest {
|
|
435
|
-
id?: string | undefined;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
export interface GetProviderResponse {
|
|
439
|
-
provider?: ProviderInfo | undefined;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
export interface GetPublishedListingForConsumer {
|
|
443
|
-
id?: string | undefined;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
export interface GetPublishedListingForConsumerResponse {
|
|
447
|
-
listing?: Listing | undefined;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
|
-
export interface GetPublishedListingsForConsumerResponse {
|
|
451
|
-
listings?: Listing[] | undefined;
|
|
452
|
-
nextPageToken?: string | undefined;
|
|
453
|
-
}
|
|
454
|
-
|
|
455
|
-
export interface GetPublishedProviderForConsumer {
|
|
456
|
-
id?: string | undefined;
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
export interface GetPublishedProviderForConsumerResponse {
|
|
460
|
-
provider?: ProviderInfo | undefined;
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
export interface InstallListing {
|
|
464
|
-
listingId?: string | undefined;
|
|
465
|
-
shareName?: string | undefined;
|
|
466
|
-
catalogName?: string | undefined;
|
|
467
|
-
/** for git repo installations */
|
|
468
|
-
repoDetail?: RepoInstallation | undefined;
|
|
469
|
-
recipientType?: DeltaSharingRecipientType | undefined;
|
|
470
|
-
acceptedConsumerTerms?: ConsumerTerms | undefined;
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
export interface InstallationDetail {
|
|
474
|
-
id?: string | undefined;
|
|
475
|
-
listingId?: string | undefined;
|
|
476
|
-
shareName?: string | undefined;
|
|
477
|
-
catalogName?: string | undefined;
|
|
478
|
-
installedOn?: bigint | undefined;
|
|
479
|
-
status?: InstallationStatus | undefined;
|
|
480
|
-
errorMessage?: string | undefined;
|
|
481
|
-
listingName?: string | undefined;
|
|
482
|
-
repoName?: string | undefined;
|
|
483
|
-
repoPath?: string | undefined;
|
|
484
|
-
recipientType?: DeltaSharingRecipientType | undefined;
|
|
485
|
-
tokens?: TokenInfo[] | undefined;
|
|
486
|
-
tokenDetail?: TokenDetail | undefined;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
export interface ListAllInstallationsResponse {
|
|
490
|
-
installations?: InstallationDetail[] | undefined;
|
|
491
|
-
nextPageToken?: string | undefined;
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
export interface ListExchangeFiltersRequest {
|
|
495
|
-
exchangeId?: string | undefined;
|
|
496
|
-
pageToken?: string | undefined;
|
|
497
|
-
pageSize?: number | undefined;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
export interface ListExchangeFiltersResponse {
|
|
501
|
-
filters?: ExchangeFilter[] | undefined;
|
|
502
|
-
nextPageToken?: string | undefined;
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
export interface ListExchangesForListingRequest {
|
|
506
|
-
listingId?: string | undefined;
|
|
507
|
-
pageToken?: string | undefined;
|
|
508
|
-
pageSize?: number | undefined;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
export interface ListExchangesForListingResponse {
|
|
512
|
-
exchangeListing?: ExchangeListing[] | undefined;
|
|
513
|
-
nextPageToken?: string | undefined;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
export interface ListExchangesRequest {
|
|
517
|
-
pageToken?: string | undefined;
|
|
518
|
-
pageSize?: number | undefined;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
export interface ListExchangesResponse {
|
|
522
|
-
exchanges?: Exchange[] | undefined;
|
|
523
|
-
nextPageToken?: string | undefined;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
export interface ListFilesRequest {
|
|
527
|
-
fileParent?: FileParent | undefined;
|
|
528
|
-
pageToken?: string | undefined;
|
|
529
|
-
pageSize?: number | undefined;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
export interface ListFilesResponse {
|
|
533
|
-
fileInfos?: FileInfo[] | undefined;
|
|
534
|
-
nextPageToken?: string | undefined;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
export interface ListFulfillmentsResponse {
|
|
538
|
-
fulfillments?: ListingFulfillment[] | undefined;
|
|
539
|
-
nextPageToken?: string | undefined;
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
export interface ListInstallationsRequest {
|
|
543
|
-
pageToken?: string | undefined;
|
|
544
|
-
pageSize?: number | undefined;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
export interface ListInstallationsResponse {
|
|
548
|
-
installations?: InstallationDetail[] | undefined;
|
|
549
|
-
nextPageToken?: string | undefined;
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
export interface ListListingFulfillmentsRequest {
|
|
553
|
-
listingId?: string | undefined;
|
|
554
|
-
pageToken?: string | undefined;
|
|
555
|
-
pageSize?: number | undefined;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
export interface ListListingsForExchangeRequest {
|
|
559
|
-
exchangeId?: string | undefined;
|
|
560
|
-
pageToken?: string | undefined;
|
|
561
|
-
pageSize?: number | undefined;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
export interface ListListingsForExchangeResponse {
|
|
565
|
-
exchangeListings?: ExchangeListing[] | undefined;
|
|
566
|
-
nextPageToken?: string | undefined;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
export interface ListListingsRequest {
|
|
570
|
-
pageToken?: string | undefined;
|
|
571
|
-
pageSize?: number | undefined;
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
export interface ListPersonalizationRequestsForConsumerRequest {
|
|
575
|
-
pageToken?: string | undefined;
|
|
576
|
-
pageSize?: number | undefined;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
580
|
-
export interface ListProviderAnalyticsDashboardRequest {}
|
|
581
|
-
|
|
582
|
-
export interface ListProviderAnalyticsDashboardResponse {
|
|
583
|
-
id?: string | undefined;
|
|
584
|
-
version?: bigint | undefined;
|
|
585
|
-
/** dashboard_id will be used to open Lakeview dashboard. */
|
|
586
|
-
dashboardId?: string | undefined;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
export interface ListProvidersRequest {
|
|
590
|
-
pageToken?: string | undefined;
|
|
591
|
-
pageSize?: number | undefined;
|
|
592
|
-
}
|
|
593
|
-
|
|
594
|
-
export interface ListProvidersResponse {
|
|
595
|
-
providers?: ProviderInfo[] | undefined;
|
|
596
|
-
nextPageToken?: string | undefined;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
/** Listing messages */
|
|
600
|
-
export interface ListPublishedListingsForConsumerRequest {
|
|
601
|
-
pageToken?: string | undefined;
|
|
602
|
-
pageSize?: number | undefined;
|
|
603
|
-
/** Matches any of the following asset types */
|
|
604
|
-
assets?: AssetType[] | undefined;
|
|
605
|
-
/** Matches any of the following categories */
|
|
606
|
-
categories?: Category[] | undefined;
|
|
607
|
-
/** Matches listings with this tag */
|
|
608
|
-
tags?: ListingTag | undefined;
|
|
609
|
-
/** Filters each listing based on if it is free. */
|
|
610
|
-
isFree?: boolean | undefined;
|
|
611
|
-
/** Filters each listing based on if it is a private exchange. */
|
|
612
|
-
isPrivateExchange?: boolean | undefined;
|
|
613
|
-
/** Filters each listing based on whether it is a staff pick. */
|
|
614
|
-
isStaffPick?: boolean | undefined;
|
|
615
|
-
/** Matches any of the following provider ids */
|
|
616
|
-
providerIds?: string[] | undefined;
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
export interface ListPublishedProvidersForConsumer {
|
|
620
|
-
pageToken?: string | undefined;
|
|
621
|
-
pageSize?: number | undefined;
|
|
622
|
-
isFeatured?: boolean | undefined;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
export interface ListPublishedProvidersForConsumerResponse {
|
|
626
|
-
providers?: ProviderInfo[] | undefined;
|
|
627
|
-
nextPageToken?: string | undefined;
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
export interface Listing {
|
|
631
|
-
id?: string | undefined;
|
|
632
|
-
summary?: ListingSummary | undefined;
|
|
633
|
-
detail?: ListingDetail | undefined;
|
|
634
|
-
}
|
|
635
|
-
|
|
636
|
-
export interface ListingDetail {
|
|
637
|
-
description?: string | undefined;
|
|
638
|
-
termsOfService?: string | undefined;
|
|
639
|
-
documentationLink?: string | undefined;
|
|
640
|
-
supportLink?: string | undefined;
|
|
641
|
-
fileIds?: string[] | undefined;
|
|
642
|
-
privacyPolicyLink?: string | undefined;
|
|
643
|
-
embeddedNotebookFileInfos?: FileInfo[] | undefined;
|
|
644
|
-
/** Which geo region the listing data is collected from */
|
|
645
|
-
geographicalCoverage?: string | undefined;
|
|
646
|
-
/** Whether the dataset is free or paid */
|
|
647
|
-
cost?: Cost | undefined;
|
|
648
|
-
/**
|
|
649
|
-
* What the pricing model is (e.g. paid, subscription, paid upfront); should only be present if cost is paid
|
|
650
|
-
* TODO: Not used yet, should deprecate if we will never use it
|
|
651
|
-
*/
|
|
652
|
-
pricingModel?: string | undefined;
|
|
653
|
-
/** How often data is updated */
|
|
654
|
-
updateFrequency?: DataRefreshInfo | undefined;
|
|
655
|
-
/** Smallest unit of time in the dataset */
|
|
656
|
-
collectionGranularity?: DataRefreshInfo | undefined;
|
|
657
|
-
/** The starting date timestamp for when the data spans */
|
|
658
|
-
collectionDateStart?: bigint | undefined;
|
|
659
|
-
/** The ending date timestamp for when the data spans */
|
|
660
|
-
collectionDateEnd?: bigint | undefined;
|
|
661
|
-
/** Where/how the data is sourced */
|
|
662
|
-
dataSource?: string | undefined;
|
|
663
|
-
/** size of the dataset in GB */
|
|
664
|
-
size?: number | undefined;
|
|
665
|
-
/** Type of assets included in the listing. eg. GIT_REPO, DATA_TABLE, MODEL, NOTEBOOK */
|
|
666
|
-
assets?: AssetType[] | undefined;
|
|
667
|
-
/**
|
|
668
|
-
* ID 20, 21 removed don't use
|
|
669
|
-
* License of the data asset - Required for listings with model based assets
|
|
670
|
-
*/
|
|
671
|
-
license?: string | undefined;
|
|
672
|
-
/**
|
|
673
|
-
* Listing tags - Simple key value pair to annotate listings.
|
|
674
|
-
* When should I use tags vs dedicated fields?
|
|
675
|
-
* Using tags avoids the need to add new columns in the database for new annotations.
|
|
676
|
-
* However, this should be used sparingly since tags are stored as key value pair.
|
|
677
|
-
* Use tags only:
|
|
678
|
-
* 1. If the field is optional and won't need to have NOT NULL integrity check
|
|
679
|
-
* 2. The value is fairly fixed, static and low cardinality (eg. enums).
|
|
680
|
-
* 3. The value won't be used in filters or joins with other tables.
|
|
681
|
-
*/
|
|
682
|
-
tags?: ListingTag[] | undefined;
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
export interface ListingFulfillment {
|
|
686
|
-
listingId?: string | undefined;
|
|
687
|
-
fulfillmentType?: FulfillmentType | undefined;
|
|
688
|
-
shareInfo?: ShareInfo | undefined;
|
|
689
|
-
repoInfo?: RepoInfo | undefined;
|
|
690
|
-
recipientType?: DeltaSharingRecipientType | undefined;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
export interface ListingSetting {
|
|
694
|
-
visibility?: Visibility | undefined;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
|
-
export interface ListingSummary {
|
|
698
|
-
name?: string | undefined;
|
|
699
|
-
subtitle?: string | undefined;
|
|
700
|
-
status?: ListingStatus | undefined;
|
|
701
|
-
share?: ShareInfo | undefined;
|
|
702
|
-
providerRegion?: RegionInfo | undefined;
|
|
703
|
-
setting?: ListingSetting | undefined;
|
|
704
|
-
createdAt?: bigint | undefined;
|
|
705
|
-
createdBy?: string | undefined;
|
|
706
|
-
updatedAt?: bigint | undefined;
|
|
707
|
-
updatedBy?: string | undefined;
|
|
708
|
-
publishedAt?: bigint | undefined;
|
|
709
|
-
publishedBy?: string | undefined;
|
|
710
|
-
categories?: Category[] | undefined;
|
|
711
|
-
listingType?: ListingType | undefined;
|
|
712
|
-
createdById?: bigint | undefined;
|
|
713
|
-
updatedById?: bigint | undefined;
|
|
714
|
-
providerId?: string | undefined;
|
|
715
|
-
exchangeIds?: string[] | undefined;
|
|
716
|
-
/** if a git repo is being created, a listing will be initialized with this field as opposed to a share */
|
|
717
|
-
gitRepo?: RepoInfo | undefined;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
export interface ListingTag {
|
|
721
|
-
/** Tag name (enum) */
|
|
722
|
-
tagName?: ListingTagType | undefined;
|
|
723
|
-
/** String representation of the tag value. Values should be string literals (no complex types) */
|
|
724
|
-
tagValues?: string[] | undefined;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
export interface PersonalizationRequest {
|
|
728
|
-
id?: string | undefined;
|
|
729
|
-
consumerRegion?: RegionInfo | undefined;
|
|
730
|
-
contactInfo?: ContactInfo | undefined;
|
|
731
|
-
comment?: string | undefined;
|
|
732
|
-
intendedUse?: string | undefined;
|
|
733
|
-
status?: PersonalizationRequestStatus | undefined;
|
|
734
|
-
statusMessage?: string | undefined;
|
|
735
|
-
/**
|
|
736
|
-
* Share information is required for data listings
|
|
737
|
-
* but should be empty/ignored for non-data listings (MCP and App).
|
|
738
|
-
*/
|
|
739
|
-
share?: ShareInfo | undefined;
|
|
740
|
-
createdAt?: bigint | undefined;
|
|
741
|
-
listingId?: string | undefined;
|
|
742
|
-
updatedAt?: bigint | undefined;
|
|
743
|
-
metastoreId?: string | undefined;
|
|
744
|
-
listingName?: string | undefined;
|
|
745
|
-
isFromLighthouse?: boolean | undefined;
|
|
746
|
-
providerId?: string | undefined;
|
|
747
|
-
recipientType?: DeltaSharingRecipientType | undefined;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
export interface ProviderInfo {
|
|
751
|
-
id?: string | undefined;
|
|
752
|
-
name?: string | undefined;
|
|
753
|
-
description?: string | undefined;
|
|
754
|
-
iconFilePath?: string | undefined;
|
|
755
|
-
businessContactEmail?: string | undefined;
|
|
756
|
-
supportContactEmail?: string | undefined;
|
|
757
|
-
/** is_featured is accessible by consumers only */
|
|
758
|
-
isFeatured?: boolean | undefined;
|
|
759
|
-
/** published_by is only applicable to data aggregators (e.g. Crux) */
|
|
760
|
-
publishedBy?: string | undefined;
|
|
761
|
-
companyWebsiteLink?: string | undefined;
|
|
762
|
-
iconFileId?: string | undefined;
|
|
763
|
-
termOfServiceLink?: string | undefined;
|
|
764
|
-
privacyPolicyLink?: string | undefined;
|
|
765
|
-
darkModeIconFileId?: string | undefined;
|
|
766
|
-
darkModeIconFilePath?: string | undefined;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
export interface RegionInfo {
|
|
770
|
-
cloud?: string | undefined;
|
|
771
|
-
region?: string | undefined;
|
|
772
|
-
}
|
|
773
|
-
|
|
774
|
-
export interface RemoveExchangeForListingRequest {
|
|
775
|
-
id?: string | undefined;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
779
|
-
export interface RemoveExchangeForListingResponse {}
|
|
780
|
-
|
|
781
|
-
export interface RepoInfo {
|
|
782
|
-
/** the git repo url e.g. https://github.com/databrickslabs/dolly.git */
|
|
783
|
-
gitRepoUrl?: string | undefined;
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
export interface RepoInstallation {
|
|
787
|
-
/** the user-specified repo name for their installed git repo listing */
|
|
788
|
-
repoName?: string | undefined;
|
|
789
|
-
/**
|
|
790
|
-
* refers to the full url file path that navigates the user to the repo's entrypoint (e.g. a README.md file, or the repo file view in the unified UI)
|
|
791
|
-
* should just be a relative path
|
|
792
|
-
*/
|
|
793
|
-
repoPath?: string | undefined;
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
export interface SearchPublishedListingsForConsumer {
|
|
797
|
-
/** Fuzzy matches query */
|
|
798
|
-
query?: string | undefined;
|
|
799
|
-
isFree?: boolean | undefined;
|
|
800
|
-
isPrivateExchange?: boolean | undefined;
|
|
801
|
-
/** Matches any of the following provider ids */
|
|
802
|
-
providerIds?: string[] | undefined;
|
|
803
|
-
/** Matches any of the following categories */
|
|
804
|
-
categories?: Category[] | undefined;
|
|
805
|
-
/** Matches any of the following asset types */
|
|
806
|
-
assets?: AssetType[] | undefined;
|
|
807
|
-
pageToken?: string | undefined;
|
|
808
|
-
pageSize?: number | undefined;
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
export interface SearchPublishedListingsForConsumerResponse {
|
|
812
|
-
listings?: Listing[] | undefined;
|
|
813
|
-
nextPageToken?: string | undefined;
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
export interface ShareInfo {
|
|
817
|
-
name?: string | undefined;
|
|
818
|
-
type?: ListingShareType | undefined;
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
export interface SharedDataObject {
|
|
822
|
-
/** Name of the shared object */
|
|
823
|
-
name?: string | undefined;
|
|
824
|
-
/** The type of the data object. Could be one of: TABLE, SCHEMA, NOTEBOOK_FILE, MODEL, VOLUME */
|
|
825
|
-
dataObjectType?: string | undefined;
|
|
826
|
-
}
|
|
827
|
-
|
|
828
|
-
export interface TokenDetail {
|
|
829
|
-
/**
|
|
830
|
-
* These field names must follow the delta sharing protocol.
|
|
831
|
-
* Original message: RetrieveToken.Response in managed-catalog/api/messages/recipient.proto
|
|
832
|
-
*/
|
|
833
|
-
shareCredentialsVersion?: number | undefined;
|
|
834
|
-
bearerToken?: string | undefined;
|
|
835
|
-
endpoint?: string | undefined;
|
|
836
|
-
expirationTime?: string | undefined;
|
|
837
|
-
}
|
|
838
|
-
|
|
839
|
-
export interface TokenInfo {
|
|
840
|
-
/** Unique id of the Recipient Token. */
|
|
841
|
-
id?: string | undefined;
|
|
842
|
-
/** Time at which this Recipient Token was created, in epoch milliseconds. */
|
|
843
|
-
createdAt?: bigint | undefined;
|
|
844
|
-
/** Username of Recipient Token creator. */
|
|
845
|
-
createdBy?: string | undefined;
|
|
846
|
-
/**
|
|
847
|
-
* Full activation url to retrieve the access token.
|
|
848
|
-
* It will be empty if the token is already retrieved.
|
|
849
|
-
*/
|
|
850
|
-
activationUrl?: string | undefined;
|
|
851
|
-
/** Expiration timestamp of the token in epoch milliseconds. */
|
|
852
|
-
expirationTime?: bigint | undefined;
|
|
853
|
-
/** Time at which this Recipient Token was updated, in epoch milliseconds. */
|
|
854
|
-
updatedAt?: bigint | undefined;
|
|
855
|
-
/** Username of Recipient Token updater. */
|
|
856
|
-
updatedBy?: string | undefined;
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
export interface UninstallListing {
|
|
860
|
-
listingId?: string | undefined;
|
|
861
|
-
installationId?: string | undefined;
|
|
862
|
-
}
|
|
863
|
-
|
|
864
|
-
export interface UpdateExchangeFilterRequest {
|
|
865
|
-
id?: string | undefined;
|
|
866
|
-
filter?: ExchangeFilter | undefined;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
|
-
export interface UpdateExchangeFilterResponse {
|
|
870
|
-
filter?: ExchangeFilter | undefined;
|
|
871
|
-
}
|
|
872
|
-
|
|
873
|
-
export interface UpdateExchangeRequest {
|
|
874
|
-
id?: string | undefined;
|
|
875
|
-
exchange?: Exchange | undefined;
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
export interface UpdateExchangeResponse {
|
|
879
|
-
exchange?: Exchange | undefined;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
export interface UpdateInstallationDetail {
|
|
883
|
-
listingId?: string | undefined;
|
|
884
|
-
installationId?: string | undefined;
|
|
885
|
-
installation?: InstallationDetail | undefined;
|
|
886
|
-
rotateToken?: boolean | undefined;
|
|
887
|
-
}
|
|
888
|
-
|
|
889
|
-
export interface UpdateInstallationResponse {
|
|
890
|
-
installation?: InstallationDetail | undefined;
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
export interface UpdateListingRequest {
|
|
894
|
-
id?: string | undefined;
|
|
895
|
-
listing?: Listing | undefined;
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
export interface UpdateListingResponse {
|
|
899
|
-
listing?: Listing | undefined;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
export interface UpdatePersonalizationRequestStatusRequest {
|
|
903
|
-
listingId?: string | undefined;
|
|
904
|
-
requestId?: string | undefined;
|
|
905
|
-
status?: PersonalizationRequestStatus | undefined;
|
|
906
|
-
reason?: string | undefined;
|
|
907
|
-
share?: ShareInfo | undefined;
|
|
908
|
-
}
|
|
909
|
-
|
|
910
|
-
export interface UpdatePersonalizationRequestStatusResponse {
|
|
911
|
-
request?: PersonalizationRequest | undefined;
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
export interface UpdateProviderAnalyticsDashboardRequest {
|
|
915
|
-
/** id is immutable property and can't be updated. */
|
|
916
|
-
id?: string | undefined;
|
|
917
|
-
/**
|
|
918
|
-
* this is the version of the dashboard template we want to update our user to
|
|
919
|
-
* current expectation is that it should be equal to latest version of the dashboard template
|
|
920
|
-
*/
|
|
921
|
-
version?: bigint | undefined;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
export interface UpdateProviderAnalyticsDashboardResponse {
|
|
925
|
-
/** id & version should be the same as the request */
|
|
926
|
-
id?: string | undefined;
|
|
927
|
-
version?: bigint | undefined;
|
|
928
|
-
/** this is newly created Lakeview dashboard for the user */
|
|
929
|
-
dashboardId?: string | undefined;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
export interface UpdateProviderRequest {
|
|
933
|
-
id?: string | undefined;
|
|
934
|
-
provider?: ProviderInfo | undefined;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
|
-
export interface UpdateProviderResponse {
|
|
938
|
-
provider?: ProviderInfo | undefined;
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
export const unmarshalAddExchangeForListingResponseSchema: z.ZodType<AddExchangeForListingResponse> =
|
|
942
|
-
z
|
|
943
|
-
.object({
|
|
944
|
-
exchange_for_listing: z
|
|
945
|
-
.lazy(() => unmarshalExchangeListingSchema)
|
|
946
|
-
.optional(),
|
|
947
|
-
})
|
|
948
|
-
.transform(d => ({
|
|
949
|
-
exchangeForListing: d.exchange_for_listing,
|
|
950
|
-
}));
|
|
951
|
-
|
|
952
|
-
export const unmarshalBatchGetListingsResponseSchema: z.ZodType<BatchGetListingsResponse> =
|
|
953
|
-
z
|
|
954
|
-
.object({
|
|
955
|
-
listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
|
|
956
|
-
})
|
|
957
|
-
.transform(d => ({
|
|
958
|
-
listings: d.listings,
|
|
959
|
-
}));
|
|
960
|
-
|
|
961
|
-
export const unmarshalBatchGetProvidersResponseSchema: z.ZodType<BatchGetProvidersResponse> =
|
|
962
|
-
z
|
|
963
|
-
.object({
|
|
964
|
-
providers: z.array(z.lazy(() => unmarshalProviderInfoSchema)).optional(),
|
|
965
|
-
})
|
|
966
|
-
.transform(d => ({
|
|
967
|
-
providers: d.providers,
|
|
968
|
-
}));
|
|
969
|
-
|
|
970
|
-
export const unmarshalContactInfoSchema: z.ZodType<ContactInfo> = z
|
|
971
|
-
.object({
|
|
972
|
-
first_name: z.string().optional(),
|
|
973
|
-
last_name: z.string().optional(),
|
|
974
|
-
email: z.string().optional(),
|
|
975
|
-
company: z.string().optional(),
|
|
976
|
-
})
|
|
977
|
-
.transform(d => ({
|
|
978
|
-
firstName: d.first_name,
|
|
979
|
-
lastName: d.last_name,
|
|
980
|
-
email: d.email,
|
|
981
|
-
company: d.company,
|
|
982
|
-
}));
|
|
983
|
-
|
|
984
|
-
export const unmarshalCreateExchangeFilterResponseSchema: z.ZodType<CreateExchangeFilterResponse> =
|
|
985
|
-
z
|
|
986
|
-
.object({
|
|
987
|
-
filter_id: z.string().optional(),
|
|
988
|
-
})
|
|
989
|
-
.transform(d => ({
|
|
990
|
-
filterId: d.filter_id,
|
|
991
|
-
}));
|
|
992
|
-
|
|
993
|
-
export const unmarshalCreateExchangeResponseSchema: z.ZodType<CreateExchangeResponse> =
|
|
994
|
-
z
|
|
995
|
-
.object({
|
|
996
|
-
exchange_id: z.string().optional(),
|
|
997
|
-
})
|
|
998
|
-
.transform(d => ({
|
|
999
|
-
exchangeId: d.exchange_id,
|
|
1000
|
-
}));
|
|
1001
|
-
|
|
1002
|
-
export const unmarshalCreateFileResponseSchema: z.ZodType<CreateFileResponse> =
|
|
1003
|
-
z
|
|
1004
|
-
.object({
|
|
1005
|
-
upload_url: z.string().optional(),
|
|
1006
|
-
file_info: z.lazy(() => unmarshalFileInfoSchema).optional(),
|
|
1007
|
-
})
|
|
1008
|
-
.transform(d => ({
|
|
1009
|
-
uploadUrl: d.upload_url,
|
|
1010
|
-
fileInfo: d.file_info,
|
|
1011
|
-
}));
|
|
1012
|
-
|
|
1013
|
-
export const unmarshalCreateInstallationResponseSchema: z.ZodType<CreateInstallationResponse> =
|
|
1014
|
-
z
|
|
1015
|
-
.object({
|
|
1016
|
-
installation: z.lazy(() => unmarshalInstallationDetailSchema).optional(),
|
|
1017
|
-
})
|
|
1018
|
-
.transform(d => ({
|
|
1019
|
-
installation: d.installation,
|
|
1020
|
-
}));
|
|
1021
|
-
|
|
1022
|
-
export const unmarshalCreateListingResponseSchema: z.ZodType<CreateListingResponse> =
|
|
1023
|
-
z
|
|
1024
|
-
.object({
|
|
1025
|
-
listing_id: z.string().optional(),
|
|
1026
|
-
})
|
|
1027
|
-
.transform(d => ({
|
|
1028
|
-
listingId: d.listing_id,
|
|
1029
|
-
}));
|
|
1030
|
-
|
|
1031
|
-
export const unmarshalCreatePersonalizationResponseSchema: z.ZodType<CreatePersonalizationResponse> =
|
|
1032
|
-
z
|
|
1033
|
-
.object({
|
|
1034
|
-
id: z.string().optional(),
|
|
1035
|
-
})
|
|
1036
|
-
.transform(d => ({
|
|
1037
|
-
id: d.id,
|
|
1038
|
-
}));
|
|
1039
|
-
|
|
1040
|
-
export const unmarshalCreateProviderAnalyticsDashboardResponseSchema: z.ZodType<CreateProviderAnalyticsDashboardResponse> =
|
|
1041
|
-
z
|
|
1042
|
-
.object({
|
|
1043
|
-
id: z.string().optional(),
|
|
1044
|
-
})
|
|
1045
|
-
.transform(d => ({
|
|
1046
|
-
id: d.id,
|
|
1047
|
-
}));
|
|
1048
|
-
|
|
1049
|
-
export const unmarshalCreateProviderResponseSchema: z.ZodType<CreateProviderResponse> =
|
|
1050
|
-
z
|
|
1051
|
-
.object({
|
|
1052
|
-
id: z.string().optional(),
|
|
1053
|
-
})
|
|
1054
|
-
.transform(d => ({
|
|
1055
|
-
id: d.id,
|
|
1056
|
-
}));
|
|
1057
|
-
|
|
1058
|
-
export const unmarshalDataRefreshInfoSchema: z.ZodType<DataRefreshInfo> = z
|
|
1059
|
-
.object({
|
|
1060
|
-
interval: z
|
|
1061
|
-
.union([z.number(), z.bigint()])
|
|
1062
|
-
.transform(v => BigInt(v))
|
|
1063
|
-
.optional(),
|
|
1064
|
-
unit: z.enum(DataRefresh).optional(),
|
|
1065
|
-
})
|
|
1066
|
-
.transform(d => ({
|
|
1067
|
-
interval: d.interval,
|
|
1068
|
-
unit: d.unit,
|
|
1069
|
-
}));
|
|
1070
|
-
|
|
1071
|
-
export const unmarshalDeleteExchangeFilterResponseSchema: z.ZodType<DeleteExchangeFilterResponse> =
|
|
1072
|
-
z.object({});
|
|
1073
|
-
|
|
1074
|
-
export const unmarshalDeleteExchangeResponseSchema: z.ZodType<DeleteExchangeResponse> =
|
|
1075
|
-
z.object({});
|
|
1076
|
-
|
|
1077
|
-
export const unmarshalDeleteFileResponseSchema: z.ZodType<DeleteFileResponse> =
|
|
1078
|
-
z.object({});
|
|
1079
|
-
|
|
1080
|
-
export const unmarshalDeleteInstallationResponseSchema: z.ZodType<DeleteInstallationResponse> =
|
|
1081
|
-
z.object({});
|
|
1082
|
-
|
|
1083
|
-
export const unmarshalDeleteListingResponseSchema: z.ZodType<DeleteListingResponse> =
|
|
1084
|
-
z.object({});
|
|
1085
|
-
|
|
1086
|
-
export const unmarshalDeleteProviderResponseSchema: z.ZodType<DeleteProviderResponse> =
|
|
1087
|
-
z.object({});
|
|
1088
|
-
|
|
1089
|
-
export const unmarshalExchangeSchema: z.ZodType<Exchange> = z
|
|
1090
|
-
.object({
|
|
1091
|
-
id: z.string().optional(),
|
|
1092
|
-
name: z.string().optional(),
|
|
1093
|
-
comment: z.string().optional(),
|
|
1094
|
-
filters: z.array(z.lazy(() => unmarshalExchangeFilterSchema)).optional(),
|
|
1095
|
-
created_at: z
|
|
1096
|
-
.union([z.number(), z.bigint()])
|
|
1097
|
-
.transform(v => BigInt(v))
|
|
1098
|
-
.optional(),
|
|
1099
|
-
created_by: z.string().optional(),
|
|
1100
|
-
updated_at: z
|
|
1101
|
-
.union([z.number(), z.bigint()])
|
|
1102
|
-
.transform(v => BigInt(v))
|
|
1103
|
-
.optional(),
|
|
1104
|
-
updated_by: z.string().optional(),
|
|
1105
|
-
linked_listings: z
|
|
1106
|
-
.array(z.lazy(() => unmarshalExchangeListingSchema))
|
|
1107
|
-
.optional(),
|
|
1108
|
-
})
|
|
1109
|
-
.transform(d => ({
|
|
1110
|
-
id: d.id,
|
|
1111
|
-
name: d.name,
|
|
1112
|
-
comment: d.comment,
|
|
1113
|
-
filters: d.filters,
|
|
1114
|
-
createdAt: d.created_at,
|
|
1115
|
-
createdBy: d.created_by,
|
|
1116
|
-
updatedAt: d.updated_at,
|
|
1117
|
-
updatedBy: d.updated_by,
|
|
1118
|
-
linkedListings: d.linked_listings,
|
|
1119
|
-
}));
|
|
1120
|
-
|
|
1121
|
-
export const unmarshalExchangeFilterSchema: z.ZodType<ExchangeFilter> = z
|
|
1122
|
-
.object({
|
|
1123
|
-
id: z.string().optional(),
|
|
1124
|
-
exchange_id: z.string().optional(),
|
|
1125
|
-
filter_value: z.string().optional(),
|
|
1126
|
-
name: z.string().optional(),
|
|
1127
|
-
created_at: z
|
|
1128
|
-
.union([z.number(), z.bigint()])
|
|
1129
|
-
.transform(v => BigInt(v))
|
|
1130
|
-
.optional(),
|
|
1131
|
-
created_by: z.string().optional(),
|
|
1132
|
-
updated_at: z
|
|
1133
|
-
.union([z.number(), z.bigint()])
|
|
1134
|
-
.transform(v => BigInt(v))
|
|
1135
|
-
.optional(),
|
|
1136
|
-
updated_by: z.string().optional(),
|
|
1137
|
-
filter_type: z.enum(ExchangeFilterType).optional(),
|
|
1138
|
-
})
|
|
1139
|
-
.transform(d => ({
|
|
1140
|
-
id: d.id,
|
|
1141
|
-
exchangeId: d.exchange_id,
|
|
1142
|
-
filterValue: d.filter_value,
|
|
1143
|
-
name: d.name,
|
|
1144
|
-
createdAt: d.created_at,
|
|
1145
|
-
createdBy: d.created_by,
|
|
1146
|
-
updatedAt: d.updated_at,
|
|
1147
|
-
updatedBy: d.updated_by,
|
|
1148
|
-
filterType: d.filter_type,
|
|
1149
|
-
}));
|
|
1150
|
-
|
|
1151
|
-
export const unmarshalExchangeListingSchema: z.ZodType<ExchangeListing> = z
|
|
1152
|
-
.object({
|
|
1153
|
-
id: z.string().optional(),
|
|
1154
|
-
exchange_id: z.string().optional(),
|
|
1155
|
-
exchange_name: z.string().optional(),
|
|
1156
|
-
listing_id: z.string().optional(),
|
|
1157
|
-
listing_name: z.string().optional(),
|
|
1158
|
-
created_at: z
|
|
1159
|
-
.union([z.number(), z.bigint()])
|
|
1160
|
-
.transform(v => BigInt(v))
|
|
1161
|
-
.optional(),
|
|
1162
|
-
created_by: z.string().optional(),
|
|
1163
|
-
})
|
|
1164
|
-
.transform(d => ({
|
|
1165
|
-
id: d.id,
|
|
1166
|
-
exchangeId: d.exchange_id,
|
|
1167
|
-
exchangeName: d.exchange_name,
|
|
1168
|
-
listingId: d.listing_id,
|
|
1169
|
-
listingName: d.listing_name,
|
|
1170
|
-
createdAt: d.created_at,
|
|
1171
|
-
createdBy: d.created_by,
|
|
1172
|
-
}));
|
|
1173
|
-
|
|
1174
|
-
export const unmarshalFileInfoSchema: z.ZodType<FileInfo> = z
|
|
1175
|
-
.object({
|
|
1176
|
-
id: z.string().optional(),
|
|
1177
|
-
marketplace_file_type: z.enum(MarketplaceFileType).optional(),
|
|
1178
|
-
file_parent: z.lazy(() => unmarshalFileParentSchema).optional(),
|
|
1179
|
-
mime_type: z.string().optional(),
|
|
1180
|
-
download_link: z.string().optional(),
|
|
1181
|
-
created_at: z
|
|
1182
|
-
.union([z.number(), z.bigint()])
|
|
1183
|
-
.transform(v => BigInt(v))
|
|
1184
|
-
.optional(),
|
|
1185
|
-
updated_at: z
|
|
1186
|
-
.union([z.number(), z.bigint()])
|
|
1187
|
-
.transform(v => BigInt(v))
|
|
1188
|
-
.optional(),
|
|
1189
|
-
display_name: z.string().optional(),
|
|
1190
|
-
status: z.enum(FileStatus).optional(),
|
|
1191
|
-
status_message: z.string().optional(),
|
|
1192
|
-
})
|
|
1193
|
-
.transform(d => ({
|
|
1194
|
-
id: d.id,
|
|
1195
|
-
marketplaceFileType: d.marketplace_file_type,
|
|
1196
|
-
fileParent: d.file_parent,
|
|
1197
|
-
mimeType: d.mime_type,
|
|
1198
|
-
downloadLink: d.download_link,
|
|
1199
|
-
createdAt: d.created_at,
|
|
1200
|
-
updatedAt: d.updated_at,
|
|
1201
|
-
displayName: d.display_name,
|
|
1202
|
-
status: d.status,
|
|
1203
|
-
statusMessage: d.status_message,
|
|
1204
|
-
}));
|
|
1205
|
-
|
|
1206
|
-
export const unmarshalFileParentSchema: z.ZodType<FileParent> = z
|
|
1207
|
-
.object({
|
|
1208
|
-
parent_id: z.string().optional(),
|
|
1209
|
-
file_parent_type: z.enum(FileParentType).optional(),
|
|
1210
|
-
})
|
|
1211
|
-
.transform(d => ({
|
|
1212
|
-
parentId: d.parent_id,
|
|
1213
|
-
fileParentType: d.file_parent_type,
|
|
1214
|
-
}));
|
|
1215
|
-
|
|
1216
|
-
export const unmarshalGetAllPersonalizationRequestsForConsumerResponseSchema: z.ZodType<GetAllPersonalizationRequestsForConsumerResponse> =
|
|
1217
|
-
z
|
|
1218
|
-
.object({
|
|
1219
|
-
personalization_requests: z
|
|
1220
|
-
.array(z.lazy(() => unmarshalPersonalizationRequestSchema))
|
|
1221
|
-
.optional(),
|
|
1222
|
-
next_page_token: z.string().optional(),
|
|
1223
|
-
})
|
|
1224
|
-
.transform(d => ({
|
|
1225
|
-
personalizationRequests: d.personalization_requests,
|
|
1226
|
-
nextPageToken: d.next_page_token,
|
|
1227
|
-
}));
|
|
1228
|
-
|
|
1229
|
-
export const unmarshalGetExchangeResponseSchema: z.ZodType<GetExchangeResponse> =
|
|
1230
|
-
z
|
|
1231
|
-
.object({
|
|
1232
|
-
exchange: z.lazy(() => unmarshalExchangeSchema).optional(),
|
|
1233
|
-
})
|
|
1234
|
-
.transform(d => ({
|
|
1235
|
-
exchange: d.exchange,
|
|
1236
|
-
}));
|
|
1237
|
-
|
|
1238
|
-
export const unmarshalGetFileResponseSchema: z.ZodType<GetFileResponse> = z
|
|
1239
|
-
.object({
|
|
1240
|
-
file_info: z.lazy(() => unmarshalFileInfoSchema).optional(),
|
|
1241
|
-
})
|
|
1242
|
-
.transform(d => ({
|
|
1243
|
-
fileInfo: d.file_info,
|
|
1244
|
-
}));
|
|
1245
|
-
|
|
1246
|
-
export const unmarshalGetLatestVersionProviderAnalyticsDashboardResponseSchema: z.ZodType<GetLatestVersionProviderAnalyticsDashboardResponse> =
|
|
1247
|
-
z
|
|
1248
|
-
.object({
|
|
1249
|
-
version: z
|
|
1250
|
-
.union([z.number(), z.bigint()])
|
|
1251
|
-
.transform(v => BigInt(v))
|
|
1252
|
-
.optional(),
|
|
1253
|
-
})
|
|
1254
|
-
.transform(d => ({
|
|
1255
|
-
version: d.version,
|
|
1256
|
-
}));
|
|
1257
|
-
|
|
1258
|
-
export const unmarshalGetListingContentMetadataResponseSchema: z.ZodType<GetListingContentMetadataResponse> =
|
|
1259
|
-
z
|
|
1260
|
-
.object({
|
|
1261
|
-
shared_data_objects: z
|
|
1262
|
-
.array(z.lazy(() => unmarshalSharedDataObjectSchema))
|
|
1263
|
-
.optional(),
|
|
1264
|
-
next_page_token: z.string().optional(),
|
|
1265
|
-
})
|
|
1266
|
-
.transform(d => ({
|
|
1267
|
-
sharedDataObjects: d.shared_data_objects,
|
|
1268
|
-
nextPageToken: d.next_page_token,
|
|
1269
|
-
}));
|
|
1270
|
-
|
|
1271
|
-
export const unmarshalGetListingResponseSchema: z.ZodType<GetListingResponse> =
|
|
1272
|
-
z
|
|
1273
|
-
.object({
|
|
1274
|
-
listing: z.lazy(() => unmarshalListingSchema).optional(),
|
|
1275
|
-
})
|
|
1276
|
-
.transform(d => ({
|
|
1277
|
-
listing: d.listing,
|
|
1278
|
-
}));
|
|
1279
|
-
|
|
1280
|
-
export const unmarshalGetListingsResponseSchema: z.ZodType<GetListingsResponse> =
|
|
1281
|
-
z
|
|
1282
|
-
.object({
|
|
1283
|
-
listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
|
|
1284
|
-
next_page_token: z.string().optional(),
|
|
1285
|
-
})
|
|
1286
|
-
.transform(d => ({
|
|
1287
|
-
listings: d.listings,
|
|
1288
|
-
nextPageToken: d.next_page_token,
|
|
1289
|
-
}));
|
|
1290
|
-
|
|
1291
|
-
export const unmarshalGetPersonalizationRequestsForConsumerResponseSchema: z.ZodType<GetPersonalizationRequestsForConsumerResponse> =
|
|
1292
|
-
z
|
|
1293
|
-
.object({
|
|
1294
|
-
personalization_requests: z
|
|
1295
|
-
.array(z.lazy(() => unmarshalPersonalizationRequestSchema))
|
|
1296
|
-
.optional(),
|
|
1297
|
-
})
|
|
1298
|
-
.transform(d => ({
|
|
1299
|
-
personalizationRequests: d.personalization_requests,
|
|
1300
|
-
}));
|
|
1301
|
-
|
|
1302
|
-
export const unmarshalGetPersonalizationRequestsForProviderResponseSchema: z.ZodType<GetPersonalizationRequestsForProviderResponse> =
|
|
1303
|
-
z
|
|
1304
|
-
.object({
|
|
1305
|
-
personalization_requests: z
|
|
1306
|
-
.array(z.lazy(() => unmarshalPersonalizationRequestSchema))
|
|
1307
|
-
.optional(),
|
|
1308
|
-
next_page_token: z.string().optional(),
|
|
1309
|
-
})
|
|
1310
|
-
.transform(d => ({
|
|
1311
|
-
personalizationRequests: d.personalization_requests,
|
|
1312
|
-
nextPageToken: d.next_page_token,
|
|
1313
|
-
}));
|
|
1314
|
-
|
|
1315
|
-
export const unmarshalGetProviderResponseSchema: z.ZodType<GetProviderResponse> =
|
|
1316
|
-
z
|
|
1317
|
-
.object({
|
|
1318
|
-
provider: z.lazy(() => unmarshalProviderInfoSchema).optional(),
|
|
1319
|
-
})
|
|
1320
|
-
.transform(d => ({
|
|
1321
|
-
provider: d.provider,
|
|
1322
|
-
}));
|
|
1323
|
-
|
|
1324
|
-
export const unmarshalGetPublishedListingForConsumerResponseSchema: z.ZodType<GetPublishedListingForConsumerResponse> =
|
|
1325
|
-
z
|
|
1326
|
-
.object({
|
|
1327
|
-
listing: z.lazy(() => unmarshalListingSchema).optional(),
|
|
1328
|
-
})
|
|
1329
|
-
.transform(d => ({
|
|
1330
|
-
listing: d.listing,
|
|
1331
|
-
}));
|
|
1332
|
-
|
|
1333
|
-
export const unmarshalGetPublishedListingsForConsumerResponseSchema: z.ZodType<GetPublishedListingsForConsumerResponse> =
|
|
1334
|
-
z
|
|
1335
|
-
.object({
|
|
1336
|
-
listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
|
|
1337
|
-
next_page_token: z.string().optional(),
|
|
1338
|
-
})
|
|
1339
|
-
.transform(d => ({
|
|
1340
|
-
listings: d.listings,
|
|
1341
|
-
nextPageToken: d.next_page_token,
|
|
1342
|
-
}));
|
|
1343
|
-
|
|
1344
|
-
export const unmarshalGetPublishedProviderForConsumerResponseSchema: z.ZodType<GetPublishedProviderForConsumerResponse> =
|
|
1345
|
-
z
|
|
1346
|
-
.object({
|
|
1347
|
-
provider: z.lazy(() => unmarshalProviderInfoSchema).optional(),
|
|
1348
|
-
})
|
|
1349
|
-
.transform(d => ({
|
|
1350
|
-
provider: d.provider,
|
|
1351
|
-
}));
|
|
1352
|
-
|
|
1353
|
-
export const unmarshalInstallationDetailSchema: z.ZodType<InstallationDetail> =
|
|
1354
|
-
z
|
|
1355
|
-
.object({
|
|
1356
|
-
id: z.string().optional(),
|
|
1357
|
-
listing_id: z.string().optional(),
|
|
1358
|
-
share_name: z.string().optional(),
|
|
1359
|
-
catalog_name: z.string().optional(),
|
|
1360
|
-
installed_on: z
|
|
1361
|
-
.union([z.number(), z.bigint()])
|
|
1362
|
-
.transform(v => BigInt(v))
|
|
1363
|
-
.optional(),
|
|
1364
|
-
status: z.enum(InstallationStatus).optional(),
|
|
1365
|
-
error_message: z.string().optional(),
|
|
1366
|
-
listing_name: z.string().optional(),
|
|
1367
|
-
repo_name: z.string().optional(),
|
|
1368
|
-
repo_path: z.string().optional(),
|
|
1369
|
-
recipient_type: z.enum(DeltaSharingRecipientType).optional(),
|
|
1370
|
-
tokens: z.array(z.lazy(() => unmarshalTokenInfoSchema)).optional(),
|
|
1371
|
-
token_detail: z.lazy(() => unmarshalTokenDetailSchema).optional(),
|
|
1372
|
-
})
|
|
1373
|
-
.transform(d => ({
|
|
1374
|
-
id: d.id,
|
|
1375
|
-
listingId: d.listing_id,
|
|
1376
|
-
shareName: d.share_name,
|
|
1377
|
-
catalogName: d.catalog_name,
|
|
1378
|
-
installedOn: d.installed_on,
|
|
1379
|
-
status: d.status,
|
|
1380
|
-
errorMessage: d.error_message,
|
|
1381
|
-
listingName: d.listing_name,
|
|
1382
|
-
repoName: d.repo_name,
|
|
1383
|
-
repoPath: d.repo_path,
|
|
1384
|
-
recipientType: d.recipient_type,
|
|
1385
|
-
tokens: d.tokens,
|
|
1386
|
-
tokenDetail: d.token_detail,
|
|
1387
|
-
}));
|
|
1388
|
-
|
|
1389
|
-
export const unmarshalListAllInstallationsResponseSchema: z.ZodType<ListAllInstallationsResponse> =
|
|
1390
|
-
z
|
|
1391
|
-
.object({
|
|
1392
|
-
installations: z
|
|
1393
|
-
.array(z.lazy(() => unmarshalInstallationDetailSchema))
|
|
1394
|
-
.optional(),
|
|
1395
|
-
next_page_token: z.string().optional(),
|
|
1396
|
-
})
|
|
1397
|
-
.transform(d => ({
|
|
1398
|
-
installations: d.installations,
|
|
1399
|
-
nextPageToken: d.next_page_token,
|
|
1400
|
-
}));
|
|
1401
|
-
|
|
1402
|
-
export const unmarshalListExchangeFiltersResponseSchema: z.ZodType<ListExchangeFiltersResponse> =
|
|
1403
|
-
z
|
|
1404
|
-
.object({
|
|
1405
|
-
filters: z.array(z.lazy(() => unmarshalExchangeFilterSchema)).optional(),
|
|
1406
|
-
next_page_token: z.string().optional(),
|
|
1407
|
-
})
|
|
1408
|
-
.transform(d => ({
|
|
1409
|
-
filters: d.filters,
|
|
1410
|
-
nextPageToken: d.next_page_token,
|
|
1411
|
-
}));
|
|
1412
|
-
|
|
1413
|
-
export const unmarshalListExchangesForListingResponseSchema: z.ZodType<ListExchangesForListingResponse> =
|
|
1414
|
-
z
|
|
1415
|
-
.object({
|
|
1416
|
-
exchange_listing: z
|
|
1417
|
-
.array(z.lazy(() => unmarshalExchangeListingSchema))
|
|
1418
|
-
.optional(),
|
|
1419
|
-
next_page_token: z.string().optional(),
|
|
1420
|
-
})
|
|
1421
|
-
.transform(d => ({
|
|
1422
|
-
exchangeListing: d.exchange_listing,
|
|
1423
|
-
nextPageToken: d.next_page_token,
|
|
1424
|
-
}));
|
|
1425
|
-
|
|
1426
|
-
export const unmarshalListExchangesResponseSchema: z.ZodType<ListExchangesResponse> =
|
|
1427
|
-
z
|
|
1428
|
-
.object({
|
|
1429
|
-
exchanges: z.array(z.lazy(() => unmarshalExchangeSchema)).optional(),
|
|
1430
|
-
next_page_token: z.string().optional(),
|
|
1431
|
-
})
|
|
1432
|
-
.transform(d => ({
|
|
1433
|
-
exchanges: d.exchanges,
|
|
1434
|
-
nextPageToken: d.next_page_token,
|
|
1435
|
-
}));
|
|
1436
|
-
|
|
1437
|
-
export const unmarshalListFilesResponseSchema: z.ZodType<ListFilesResponse> = z
|
|
1438
|
-
.object({
|
|
1439
|
-
file_infos: z.array(z.lazy(() => unmarshalFileInfoSchema)).optional(),
|
|
1440
|
-
next_page_token: z.string().optional(),
|
|
1441
|
-
})
|
|
1442
|
-
.transform(d => ({
|
|
1443
|
-
fileInfos: d.file_infos,
|
|
1444
|
-
nextPageToken: d.next_page_token,
|
|
1445
|
-
}));
|
|
1446
|
-
|
|
1447
|
-
export const unmarshalListFulfillmentsResponseSchema: z.ZodType<ListFulfillmentsResponse> =
|
|
1448
|
-
z
|
|
1449
|
-
.object({
|
|
1450
|
-
fulfillments: z
|
|
1451
|
-
.array(z.lazy(() => unmarshalListingFulfillmentSchema))
|
|
1452
|
-
.optional(),
|
|
1453
|
-
next_page_token: z.string().optional(),
|
|
1454
|
-
})
|
|
1455
|
-
.transform(d => ({
|
|
1456
|
-
fulfillments: d.fulfillments,
|
|
1457
|
-
nextPageToken: d.next_page_token,
|
|
1458
|
-
}));
|
|
1459
|
-
|
|
1460
|
-
export const unmarshalListInstallationsResponseSchema: z.ZodType<ListInstallationsResponse> =
|
|
1461
|
-
z
|
|
1462
|
-
.object({
|
|
1463
|
-
installations: z
|
|
1464
|
-
.array(z.lazy(() => unmarshalInstallationDetailSchema))
|
|
1465
|
-
.optional(),
|
|
1466
|
-
next_page_token: z.string().optional(),
|
|
1467
|
-
})
|
|
1468
|
-
.transform(d => ({
|
|
1469
|
-
installations: d.installations,
|
|
1470
|
-
nextPageToken: d.next_page_token,
|
|
1471
|
-
}));
|
|
1472
|
-
|
|
1473
|
-
export const unmarshalListListingsForExchangeResponseSchema: z.ZodType<ListListingsForExchangeResponse> =
|
|
1474
|
-
z
|
|
1475
|
-
.object({
|
|
1476
|
-
exchange_listings: z
|
|
1477
|
-
.array(z.lazy(() => unmarshalExchangeListingSchema))
|
|
1478
|
-
.optional(),
|
|
1479
|
-
next_page_token: z.string().optional(),
|
|
1480
|
-
})
|
|
1481
|
-
.transform(d => ({
|
|
1482
|
-
exchangeListings: d.exchange_listings,
|
|
1483
|
-
nextPageToken: d.next_page_token,
|
|
1484
|
-
}));
|
|
1485
|
-
|
|
1486
|
-
export const unmarshalListProviderAnalyticsDashboardResponseSchema: z.ZodType<ListProviderAnalyticsDashboardResponse> =
|
|
1487
|
-
z
|
|
1488
|
-
.object({
|
|
1489
|
-
id: z.string().optional(),
|
|
1490
|
-
version: z
|
|
1491
|
-
.union([z.number(), z.bigint()])
|
|
1492
|
-
.transform(v => BigInt(v))
|
|
1493
|
-
.optional(),
|
|
1494
|
-
dashboard_id: z.string().optional(),
|
|
1495
|
-
})
|
|
1496
|
-
.transform(d => ({
|
|
1497
|
-
id: d.id,
|
|
1498
|
-
version: d.version,
|
|
1499
|
-
dashboardId: d.dashboard_id,
|
|
1500
|
-
}));
|
|
1501
|
-
|
|
1502
|
-
export const unmarshalListProvidersResponseSchema: z.ZodType<ListProvidersResponse> =
|
|
1503
|
-
z
|
|
1504
|
-
.object({
|
|
1505
|
-
providers: z.array(z.lazy(() => unmarshalProviderInfoSchema)).optional(),
|
|
1506
|
-
next_page_token: z.string().optional(),
|
|
1507
|
-
})
|
|
1508
|
-
.transform(d => ({
|
|
1509
|
-
providers: d.providers,
|
|
1510
|
-
nextPageToken: d.next_page_token,
|
|
1511
|
-
}));
|
|
1512
|
-
|
|
1513
|
-
export const unmarshalListPublishedProvidersForConsumerResponseSchema: z.ZodType<ListPublishedProvidersForConsumerResponse> =
|
|
1514
|
-
z
|
|
1515
|
-
.object({
|
|
1516
|
-
providers: z.array(z.lazy(() => unmarshalProviderInfoSchema)).optional(),
|
|
1517
|
-
next_page_token: z.string().optional(),
|
|
1518
|
-
})
|
|
1519
|
-
.transform(d => ({
|
|
1520
|
-
providers: d.providers,
|
|
1521
|
-
nextPageToken: d.next_page_token,
|
|
1522
|
-
}));
|
|
1523
|
-
|
|
1524
|
-
export const unmarshalListingSchema: z.ZodType<Listing> = z
|
|
1525
|
-
.object({
|
|
1526
|
-
id: z.string().optional(),
|
|
1527
|
-
summary: z.lazy(() => unmarshalListingSummarySchema).optional(),
|
|
1528
|
-
detail: z.lazy(() => unmarshalListingDetailSchema).optional(),
|
|
1529
|
-
})
|
|
1530
|
-
.transform(d => ({
|
|
1531
|
-
id: d.id,
|
|
1532
|
-
summary: d.summary,
|
|
1533
|
-
detail: d.detail,
|
|
1534
|
-
}));
|
|
1535
|
-
|
|
1536
|
-
export const unmarshalListingDetailSchema: z.ZodType<ListingDetail> = z
|
|
1537
|
-
.object({
|
|
1538
|
-
description: z.string().optional(),
|
|
1539
|
-
terms_of_service: z.string().optional(),
|
|
1540
|
-
documentation_link: z.string().optional(),
|
|
1541
|
-
support_link: z.string().optional(),
|
|
1542
|
-
file_ids: z.array(z.string()).optional(),
|
|
1543
|
-
privacy_policy_link: z.string().optional(),
|
|
1544
|
-
embedded_notebook_file_infos: z
|
|
1545
|
-
.array(z.lazy(() => unmarshalFileInfoSchema))
|
|
1546
|
-
.optional(),
|
|
1547
|
-
geographical_coverage: z.string().optional(),
|
|
1548
|
-
cost: z.enum(Cost).optional(),
|
|
1549
|
-
pricing_model: z.string().optional(),
|
|
1550
|
-
update_frequency: z.lazy(() => unmarshalDataRefreshInfoSchema).optional(),
|
|
1551
|
-
collection_granularity: z
|
|
1552
|
-
.lazy(() => unmarshalDataRefreshInfoSchema)
|
|
1553
|
-
.optional(),
|
|
1554
|
-
collection_date_start: z
|
|
1555
|
-
.union([z.number(), z.bigint()])
|
|
1556
|
-
.transform(v => BigInt(v))
|
|
1557
|
-
.optional(),
|
|
1558
|
-
collection_date_end: z
|
|
1559
|
-
.union([z.number(), z.bigint()])
|
|
1560
|
-
.transform(v => BigInt(v))
|
|
1561
|
-
.optional(),
|
|
1562
|
-
data_source: z.string().optional(),
|
|
1563
|
-
size: z.number().optional(),
|
|
1564
|
-
assets: z.array(z.enum(AssetType)).optional(),
|
|
1565
|
-
license: z.string().optional(),
|
|
1566
|
-
tags: z.array(z.lazy(() => unmarshalListingTagSchema)).optional(),
|
|
1567
|
-
})
|
|
1568
|
-
.transform(d => ({
|
|
1569
|
-
description: d.description,
|
|
1570
|
-
termsOfService: d.terms_of_service,
|
|
1571
|
-
documentationLink: d.documentation_link,
|
|
1572
|
-
supportLink: d.support_link,
|
|
1573
|
-
fileIds: d.file_ids,
|
|
1574
|
-
privacyPolicyLink: d.privacy_policy_link,
|
|
1575
|
-
embeddedNotebookFileInfos: d.embedded_notebook_file_infos,
|
|
1576
|
-
geographicalCoverage: d.geographical_coverage,
|
|
1577
|
-
cost: d.cost,
|
|
1578
|
-
pricingModel: d.pricing_model,
|
|
1579
|
-
updateFrequency: d.update_frequency,
|
|
1580
|
-
collectionGranularity: d.collection_granularity,
|
|
1581
|
-
collectionDateStart: d.collection_date_start,
|
|
1582
|
-
collectionDateEnd: d.collection_date_end,
|
|
1583
|
-
dataSource: d.data_source,
|
|
1584
|
-
size: d.size,
|
|
1585
|
-
assets: d.assets,
|
|
1586
|
-
license: d.license,
|
|
1587
|
-
tags: d.tags,
|
|
1588
|
-
}));
|
|
1589
|
-
|
|
1590
|
-
export const unmarshalListingFulfillmentSchema: z.ZodType<ListingFulfillment> =
|
|
1591
|
-
z
|
|
1592
|
-
.object({
|
|
1593
|
-
listing_id: z.string().optional(),
|
|
1594
|
-
fulfillment_type: z.enum(FulfillmentType).optional(),
|
|
1595
|
-
share_info: z.lazy(() => unmarshalShareInfoSchema).optional(),
|
|
1596
|
-
repo_info: z.lazy(() => unmarshalRepoInfoSchema).optional(),
|
|
1597
|
-
recipient_type: z.enum(DeltaSharingRecipientType).optional(),
|
|
1598
|
-
})
|
|
1599
|
-
.transform(d => ({
|
|
1600
|
-
listingId: d.listing_id,
|
|
1601
|
-
fulfillmentType: d.fulfillment_type,
|
|
1602
|
-
shareInfo: d.share_info,
|
|
1603
|
-
repoInfo: d.repo_info,
|
|
1604
|
-
recipientType: d.recipient_type,
|
|
1605
|
-
}));
|
|
1606
|
-
|
|
1607
|
-
export const unmarshalListingSettingSchema: z.ZodType<ListingSetting> = z
|
|
1608
|
-
.object({
|
|
1609
|
-
visibility: z.enum(Visibility).optional(),
|
|
1610
|
-
})
|
|
1611
|
-
.transform(d => ({
|
|
1612
|
-
visibility: d.visibility,
|
|
1613
|
-
}));
|
|
1614
|
-
|
|
1615
|
-
export const unmarshalListingSummarySchema: z.ZodType<ListingSummary> = z
|
|
1616
|
-
.object({
|
|
1617
|
-
name: z.string().optional(),
|
|
1618
|
-
subtitle: z.string().optional(),
|
|
1619
|
-
status: z.enum(ListingStatus).optional(),
|
|
1620
|
-
share: z.lazy(() => unmarshalShareInfoSchema).optional(),
|
|
1621
|
-
provider_region: z.lazy(() => unmarshalRegionInfoSchema).optional(),
|
|
1622
|
-
setting: z.lazy(() => unmarshalListingSettingSchema).optional(),
|
|
1623
|
-
created_at: z
|
|
1624
|
-
.union([z.number(), z.bigint()])
|
|
1625
|
-
.transform(v => BigInt(v))
|
|
1626
|
-
.optional(),
|
|
1627
|
-
created_by: z.string().optional(),
|
|
1628
|
-
updated_at: z
|
|
1629
|
-
.union([z.number(), z.bigint()])
|
|
1630
|
-
.transform(v => BigInt(v))
|
|
1631
|
-
.optional(),
|
|
1632
|
-
updated_by: z.string().optional(),
|
|
1633
|
-
published_at: z
|
|
1634
|
-
.union([z.number(), z.bigint()])
|
|
1635
|
-
.transform(v => BigInt(v))
|
|
1636
|
-
.optional(),
|
|
1637
|
-
published_by: z.string().optional(),
|
|
1638
|
-
categories: z.array(z.enum(Category)).optional(),
|
|
1639
|
-
listingType: z.enum(ListingType).optional(),
|
|
1640
|
-
created_by_id: z
|
|
1641
|
-
.union([z.number(), z.bigint()])
|
|
1642
|
-
.transform(v => BigInt(v))
|
|
1643
|
-
.optional(),
|
|
1644
|
-
updated_by_id: z
|
|
1645
|
-
.union([z.number(), z.bigint()])
|
|
1646
|
-
.transform(v => BigInt(v))
|
|
1647
|
-
.optional(),
|
|
1648
|
-
provider_id: z.string().optional(),
|
|
1649
|
-
exchange_ids: z.array(z.string()).optional(),
|
|
1650
|
-
git_repo: z.lazy(() => unmarshalRepoInfoSchema).optional(),
|
|
1651
|
-
})
|
|
1652
|
-
.transform(d => ({
|
|
1653
|
-
name: d.name,
|
|
1654
|
-
subtitle: d.subtitle,
|
|
1655
|
-
status: d.status,
|
|
1656
|
-
share: d.share,
|
|
1657
|
-
providerRegion: d.provider_region,
|
|
1658
|
-
setting: d.setting,
|
|
1659
|
-
createdAt: d.created_at,
|
|
1660
|
-
createdBy: d.created_by,
|
|
1661
|
-
updatedAt: d.updated_at,
|
|
1662
|
-
updatedBy: d.updated_by,
|
|
1663
|
-
publishedAt: d.published_at,
|
|
1664
|
-
publishedBy: d.published_by,
|
|
1665
|
-
categories: d.categories,
|
|
1666
|
-
listingType: d.listingType,
|
|
1667
|
-
createdById: d.created_by_id,
|
|
1668
|
-
updatedById: d.updated_by_id,
|
|
1669
|
-
providerId: d.provider_id,
|
|
1670
|
-
exchangeIds: d.exchange_ids,
|
|
1671
|
-
gitRepo: d.git_repo,
|
|
1672
|
-
}));
|
|
1673
|
-
|
|
1674
|
-
export const unmarshalListingTagSchema: z.ZodType<ListingTag> = z
|
|
1675
|
-
.object({
|
|
1676
|
-
tag_name: z.enum(ListingTagType).optional(),
|
|
1677
|
-
tag_values: z.array(z.string()).optional(),
|
|
1678
|
-
})
|
|
1679
|
-
.transform(d => ({
|
|
1680
|
-
tagName: d.tag_name,
|
|
1681
|
-
tagValues: d.tag_values,
|
|
1682
|
-
}));
|
|
1683
|
-
|
|
1684
|
-
export const unmarshalPersonalizationRequestSchema: z.ZodType<PersonalizationRequest> =
|
|
1685
|
-
z
|
|
1686
|
-
.object({
|
|
1687
|
-
id: z.string().optional(),
|
|
1688
|
-
consumer_region: z.lazy(() => unmarshalRegionInfoSchema).optional(),
|
|
1689
|
-
contact_info: z.lazy(() => unmarshalContactInfoSchema).optional(),
|
|
1690
|
-
comment: z.string().optional(),
|
|
1691
|
-
intended_use: z.string().optional(),
|
|
1692
|
-
status: z.enum(PersonalizationRequestStatus).optional(),
|
|
1693
|
-
status_message: z.string().optional(),
|
|
1694
|
-
share: z.lazy(() => unmarshalShareInfoSchema).optional(),
|
|
1695
|
-
created_at: z
|
|
1696
|
-
.union([z.number(), z.bigint()])
|
|
1697
|
-
.transform(v => BigInt(v))
|
|
1698
|
-
.optional(),
|
|
1699
|
-
listing_id: z.string().optional(),
|
|
1700
|
-
updated_at: z
|
|
1701
|
-
.union([z.number(), z.bigint()])
|
|
1702
|
-
.transform(v => BigInt(v))
|
|
1703
|
-
.optional(),
|
|
1704
|
-
metastore_id: z.string().optional(),
|
|
1705
|
-
listing_name: z.string().optional(),
|
|
1706
|
-
is_from_lighthouse: z.boolean().optional(),
|
|
1707
|
-
provider_id: z.string().optional(),
|
|
1708
|
-
recipient_type: z.enum(DeltaSharingRecipientType).optional(),
|
|
1709
|
-
})
|
|
1710
|
-
.transform(d => ({
|
|
1711
|
-
id: d.id,
|
|
1712
|
-
consumerRegion: d.consumer_region,
|
|
1713
|
-
contactInfo: d.contact_info,
|
|
1714
|
-
comment: d.comment,
|
|
1715
|
-
intendedUse: d.intended_use,
|
|
1716
|
-
status: d.status,
|
|
1717
|
-
statusMessage: d.status_message,
|
|
1718
|
-
share: d.share,
|
|
1719
|
-
createdAt: d.created_at,
|
|
1720
|
-
listingId: d.listing_id,
|
|
1721
|
-
updatedAt: d.updated_at,
|
|
1722
|
-
metastoreId: d.metastore_id,
|
|
1723
|
-
listingName: d.listing_name,
|
|
1724
|
-
isFromLighthouse: d.is_from_lighthouse,
|
|
1725
|
-
providerId: d.provider_id,
|
|
1726
|
-
recipientType: d.recipient_type,
|
|
1727
|
-
}));
|
|
1728
|
-
|
|
1729
|
-
export const unmarshalProviderInfoSchema: z.ZodType<ProviderInfo> = z
|
|
1730
|
-
.object({
|
|
1731
|
-
id: z.string().optional(),
|
|
1732
|
-
name: z.string().optional(),
|
|
1733
|
-
description: z.string().optional(),
|
|
1734
|
-
icon_file_path: z.string().optional(),
|
|
1735
|
-
business_contact_email: z.string().optional(),
|
|
1736
|
-
support_contact_email: z.string().optional(),
|
|
1737
|
-
is_featured: z.boolean().optional(),
|
|
1738
|
-
published_by: z.string().optional(),
|
|
1739
|
-
company_website_link: z.string().optional(),
|
|
1740
|
-
icon_file_id: z.string().optional(),
|
|
1741
|
-
term_of_service_link: z.string().optional(),
|
|
1742
|
-
privacy_policy_link: z.string().optional(),
|
|
1743
|
-
dark_mode_icon_file_id: z.string().optional(),
|
|
1744
|
-
dark_mode_icon_file_path: z.string().optional(),
|
|
1745
|
-
})
|
|
1746
|
-
.transform(d => ({
|
|
1747
|
-
id: d.id,
|
|
1748
|
-
name: d.name,
|
|
1749
|
-
description: d.description,
|
|
1750
|
-
iconFilePath: d.icon_file_path,
|
|
1751
|
-
businessContactEmail: d.business_contact_email,
|
|
1752
|
-
supportContactEmail: d.support_contact_email,
|
|
1753
|
-
isFeatured: d.is_featured,
|
|
1754
|
-
publishedBy: d.published_by,
|
|
1755
|
-
companyWebsiteLink: d.company_website_link,
|
|
1756
|
-
iconFileId: d.icon_file_id,
|
|
1757
|
-
termOfServiceLink: d.term_of_service_link,
|
|
1758
|
-
privacyPolicyLink: d.privacy_policy_link,
|
|
1759
|
-
darkModeIconFileId: d.dark_mode_icon_file_id,
|
|
1760
|
-
darkModeIconFilePath: d.dark_mode_icon_file_path,
|
|
1761
|
-
}));
|
|
1762
|
-
|
|
1763
|
-
export const unmarshalRegionInfoSchema: z.ZodType<RegionInfo> = z
|
|
1764
|
-
.object({
|
|
1765
|
-
cloud: z.string().optional(),
|
|
1766
|
-
region: z.string().optional(),
|
|
1767
|
-
})
|
|
1768
|
-
.transform(d => ({
|
|
1769
|
-
cloud: d.cloud,
|
|
1770
|
-
region: d.region,
|
|
1771
|
-
}));
|
|
1772
|
-
|
|
1773
|
-
export const unmarshalRemoveExchangeForListingResponseSchema: z.ZodType<RemoveExchangeForListingResponse> =
|
|
1774
|
-
z.object({});
|
|
1775
|
-
|
|
1776
|
-
export const unmarshalRepoInfoSchema: z.ZodType<RepoInfo> = z
|
|
1777
|
-
.object({
|
|
1778
|
-
git_repo_url: z.string().optional(),
|
|
1779
|
-
})
|
|
1780
|
-
.transform(d => ({
|
|
1781
|
-
gitRepoUrl: d.git_repo_url,
|
|
1782
|
-
}));
|
|
1783
|
-
|
|
1784
|
-
export const unmarshalSearchPublishedListingsForConsumerResponseSchema: z.ZodType<SearchPublishedListingsForConsumerResponse> =
|
|
1785
|
-
z
|
|
1786
|
-
.object({
|
|
1787
|
-
listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
|
|
1788
|
-
next_page_token: z.string().optional(),
|
|
1789
|
-
})
|
|
1790
|
-
.transform(d => ({
|
|
1791
|
-
listings: d.listings,
|
|
1792
|
-
nextPageToken: d.next_page_token,
|
|
1793
|
-
}));
|
|
1794
|
-
|
|
1795
|
-
export const unmarshalShareInfoSchema: z.ZodType<ShareInfo> = z
|
|
1796
|
-
.object({
|
|
1797
|
-
name: z.string().optional(),
|
|
1798
|
-
type: z.enum(ListingShareType).optional(),
|
|
1799
|
-
})
|
|
1800
|
-
.transform(d => ({
|
|
1801
|
-
name: d.name,
|
|
1802
|
-
type: d.type,
|
|
1803
|
-
}));
|
|
1804
|
-
|
|
1805
|
-
export const unmarshalSharedDataObjectSchema: z.ZodType<SharedDataObject> = z
|
|
1806
|
-
.object({
|
|
1807
|
-
name: z.string().optional(),
|
|
1808
|
-
data_object_type: z.string().optional(),
|
|
1809
|
-
})
|
|
1810
|
-
.transform(d => ({
|
|
1811
|
-
name: d.name,
|
|
1812
|
-
dataObjectType: d.data_object_type,
|
|
1813
|
-
}));
|
|
1814
|
-
|
|
1815
|
-
export const unmarshalTokenDetailSchema: z.ZodType<TokenDetail> = z
|
|
1816
|
-
.object({
|
|
1817
|
-
shareCredentialsVersion: z.number().optional(),
|
|
1818
|
-
bearerToken: z.string().optional(),
|
|
1819
|
-
endpoint: z.string().optional(),
|
|
1820
|
-
expirationTime: z.string().optional(),
|
|
1821
|
-
})
|
|
1822
|
-
.transform(d => ({
|
|
1823
|
-
shareCredentialsVersion: d.shareCredentialsVersion,
|
|
1824
|
-
bearerToken: d.bearerToken,
|
|
1825
|
-
endpoint: d.endpoint,
|
|
1826
|
-
expirationTime: d.expirationTime,
|
|
1827
|
-
}));
|
|
1828
|
-
|
|
1829
|
-
export const unmarshalTokenInfoSchema: z.ZodType<TokenInfo> = z
|
|
1830
|
-
.object({
|
|
1831
|
-
id: z.string().optional(),
|
|
1832
|
-
created_at: z
|
|
1833
|
-
.union([z.number(), z.bigint()])
|
|
1834
|
-
.transform(v => BigInt(v))
|
|
1835
|
-
.optional(),
|
|
1836
|
-
created_by: z.string().optional(),
|
|
1837
|
-
activation_url: z.string().optional(),
|
|
1838
|
-
expiration_time: z
|
|
1839
|
-
.union([z.number(), z.bigint()])
|
|
1840
|
-
.transform(v => BigInt(v))
|
|
1841
|
-
.optional(),
|
|
1842
|
-
updated_at: z
|
|
1843
|
-
.union([z.number(), z.bigint()])
|
|
1844
|
-
.transform(v => BigInt(v))
|
|
1845
|
-
.optional(),
|
|
1846
|
-
updated_by: z.string().optional(),
|
|
1847
|
-
})
|
|
1848
|
-
.transform(d => ({
|
|
1849
|
-
id: d.id,
|
|
1850
|
-
createdAt: d.created_at,
|
|
1851
|
-
createdBy: d.created_by,
|
|
1852
|
-
activationUrl: d.activation_url,
|
|
1853
|
-
expirationTime: d.expiration_time,
|
|
1854
|
-
updatedAt: d.updated_at,
|
|
1855
|
-
updatedBy: d.updated_by,
|
|
1856
|
-
}));
|
|
1857
|
-
|
|
1858
|
-
export const unmarshalUpdateExchangeFilterResponseSchema: z.ZodType<UpdateExchangeFilterResponse> =
|
|
1859
|
-
z
|
|
1860
|
-
.object({
|
|
1861
|
-
filter: z.lazy(() => unmarshalExchangeFilterSchema).optional(),
|
|
1862
|
-
})
|
|
1863
|
-
.transform(d => ({
|
|
1864
|
-
filter: d.filter,
|
|
1865
|
-
}));
|
|
1866
|
-
|
|
1867
|
-
export const unmarshalUpdateExchangeResponseSchema: z.ZodType<UpdateExchangeResponse> =
|
|
1868
|
-
z
|
|
1869
|
-
.object({
|
|
1870
|
-
exchange: z.lazy(() => unmarshalExchangeSchema).optional(),
|
|
1871
|
-
})
|
|
1872
|
-
.transform(d => ({
|
|
1873
|
-
exchange: d.exchange,
|
|
1874
|
-
}));
|
|
1875
|
-
|
|
1876
|
-
export const unmarshalUpdateInstallationResponseSchema: z.ZodType<UpdateInstallationResponse> =
|
|
1877
|
-
z
|
|
1878
|
-
.object({
|
|
1879
|
-
installation: z.lazy(() => unmarshalInstallationDetailSchema).optional(),
|
|
1880
|
-
})
|
|
1881
|
-
.transform(d => ({
|
|
1882
|
-
installation: d.installation,
|
|
1883
|
-
}));
|
|
1884
|
-
|
|
1885
|
-
export const unmarshalUpdateListingResponseSchema: z.ZodType<UpdateListingResponse> =
|
|
1886
|
-
z
|
|
1887
|
-
.object({
|
|
1888
|
-
listing: z.lazy(() => unmarshalListingSchema).optional(),
|
|
1889
|
-
})
|
|
1890
|
-
.transform(d => ({
|
|
1891
|
-
listing: d.listing,
|
|
1892
|
-
}));
|
|
1893
|
-
|
|
1894
|
-
export const unmarshalUpdatePersonalizationRequestStatusResponseSchema: z.ZodType<UpdatePersonalizationRequestStatusResponse> =
|
|
1895
|
-
z
|
|
1896
|
-
.object({
|
|
1897
|
-
request: z.lazy(() => unmarshalPersonalizationRequestSchema).optional(),
|
|
1898
|
-
})
|
|
1899
|
-
.transform(d => ({
|
|
1900
|
-
request: d.request,
|
|
1901
|
-
}));
|
|
1902
|
-
|
|
1903
|
-
export const unmarshalUpdateProviderAnalyticsDashboardResponseSchema: z.ZodType<UpdateProviderAnalyticsDashboardResponse> =
|
|
1904
|
-
z
|
|
1905
|
-
.object({
|
|
1906
|
-
id: z.string().optional(),
|
|
1907
|
-
version: z
|
|
1908
|
-
.union([z.number(), z.bigint()])
|
|
1909
|
-
.transform(v => BigInt(v))
|
|
1910
|
-
.optional(),
|
|
1911
|
-
dashboard_id: z.string().optional(),
|
|
1912
|
-
})
|
|
1913
|
-
.transform(d => ({
|
|
1914
|
-
id: d.id,
|
|
1915
|
-
version: d.version,
|
|
1916
|
-
dashboardId: d.dashboard_id,
|
|
1917
|
-
}));
|
|
1918
|
-
|
|
1919
|
-
export const unmarshalUpdateProviderResponseSchema: z.ZodType<UpdateProviderResponse> =
|
|
1920
|
-
z
|
|
1921
|
-
.object({
|
|
1922
|
-
provider: z.lazy(() => unmarshalProviderInfoSchema).optional(),
|
|
1923
|
-
})
|
|
1924
|
-
.transform(d => ({
|
|
1925
|
-
provider: d.provider,
|
|
1926
|
-
}));
|
|
1927
|
-
|
|
1928
|
-
export const marshalAddExchangeForListingRequestSchema: z.ZodType = z
|
|
1929
|
-
.object({
|
|
1930
|
-
listingId: z.string().optional(),
|
|
1931
|
-
exchangeId: z.string().optional(),
|
|
1932
|
-
})
|
|
1933
|
-
.transform(d => ({
|
|
1934
|
-
listing_id: d.listingId,
|
|
1935
|
-
exchange_id: d.exchangeId,
|
|
1936
|
-
}));
|
|
1937
|
-
|
|
1938
|
-
export const marshalConsumerTermsSchema: z.ZodType = z
|
|
1939
|
-
.object({
|
|
1940
|
-
version: z.string().optional(),
|
|
1941
|
-
})
|
|
1942
|
-
.transform(d => ({
|
|
1943
|
-
version: d.version,
|
|
1944
|
-
}));
|
|
1945
|
-
|
|
1946
|
-
export const marshalCreateExchangeFilterRequestSchema: z.ZodType = z
|
|
1947
|
-
.object({
|
|
1948
|
-
filter: z.lazy(() => marshalExchangeFilterSchema).optional(),
|
|
1949
|
-
})
|
|
1950
|
-
.transform(d => ({
|
|
1951
|
-
filter: d.filter,
|
|
1952
|
-
}));
|
|
1953
|
-
|
|
1954
|
-
export const marshalCreateExchangeRequestSchema: z.ZodType = z
|
|
1955
|
-
.object({
|
|
1956
|
-
exchange: z.lazy(() => marshalExchangeSchema).optional(),
|
|
1957
|
-
})
|
|
1958
|
-
.transform(d => ({
|
|
1959
|
-
exchange: d.exchange,
|
|
1960
|
-
}));
|
|
1961
|
-
|
|
1962
|
-
export const marshalCreateFileRequestSchema: z.ZodType = z
|
|
1963
|
-
.object({
|
|
1964
|
-
fileParent: z.lazy(() => marshalFileParentSchema).optional(),
|
|
1965
|
-
marketplaceFileType: z.enum(MarketplaceFileType).optional(),
|
|
1966
|
-
mimeType: z.string().optional(),
|
|
1967
|
-
displayName: z.string().optional(),
|
|
1968
|
-
})
|
|
1969
|
-
.transform(d => ({
|
|
1970
|
-
file_parent: d.fileParent,
|
|
1971
|
-
marketplace_file_type: d.marketplaceFileType,
|
|
1972
|
-
mime_type: d.mimeType,
|
|
1973
|
-
display_name: d.displayName,
|
|
1974
|
-
}));
|
|
1975
|
-
|
|
1976
|
-
export const marshalCreateListingRequestSchema: z.ZodType = z
|
|
1977
|
-
.object({
|
|
1978
|
-
listing: z.lazy(() => marshalListingSchema).optional(),
|
|
1979
|
-
})
|
|
1980
|
-
.transform(d => ({
|
|
1981
|
-
listing: d.listing,
|
|
1982
|
-
}));
|
|
1983
|
-
|
|
1984
|
-
export const marshalCreatePersonalizationRequestSchema: z.ZodType = z
|
|
1985
|
-
.object({
|
|
1986
|
-
listingId: z.string().optional(),
|
|
1987
|
-
comment: z.string().optional(),
|
|
1988
|
-
intendedUse: z.string().optional(),
|
|
1989
|
-
firstName: z.string().optional(),
|
|
1990
|
-
lastName: z.string().optional(),
|
|
1991
|
-
company: z.string().optional(),
|
|
1992
|
-
isFromLighthouse: z.boolean().optional(),
|
|
1993
|
-
recipientType: z.enum(DeltaSharingRecipientType).optional(),
|
|
1994
|
-
acceptedConsumerTerms: z.lazy(() => marshalConsumerTermsSchema).optional(),
|
|
1995
|
-
})
|
|
1996
|
-
.transform(d => ({
|
|
1997
|
-
listing_id: d.listingId,
|
|
1998
|
-
comment: d.comment,
|
|
1999
|
-
intended_use: d.intendedUse,
|
|
2000
|
-
first_name: d.firstName,
|
|
2001
|
-
last_name: d.lastName,
|
|
2002
|
-
company: d.company,
|
|
2003
|
-
is_from_lighthouse: d.isFromLighthouse,
|
|
2004
|
-
recipient_type: d.recipientType,
|
|
2005
|
-
accepted_consumer_terms: d.acceptedConsumerTerms,
|
|
2006
|
-
}));
|
|
2007
|
-
|
|
2008
|
-
export const marshalCreateProviderAnalyticsDashboardRequestSchema: z.ZodType =
|
|
2009
|
-
z.object({});
|
|
2010
|
-
|
|
2011
|
-
export const marshalCreateProviderRequestSchema: z.ZodType = z
|
|
2012
|
-
.object({
|
|
2013
|
-
provider: z.lazy(() => marshalProviderInfoSchema).optional(),
|
|
2014
|
-
})
|
|
2015
|
-
.transform(d => ({
|
|
2016
|
-
provider: d.provider,
|
|
2017
|
-
}));
|
|
2018
|
-
|
|
2019
|
-
export const marshalDataRefreshInfoSchema: z.ZodType = z
|
|
2020
|
-
.object({
|
|
2021
|
-
interval: z.bigint().optional(),
|
|
2022
|
-
unit: z.enum(DataRefresh).optional(),
|
|
2023
|
-
})
|
|
2024
|
-
.transform(d => ({
|
|
2025
|
-
interval: d.interval,
|
|
2026
|
-
unit: d.unit,
|
|
2027
|
-
}));
|
|
2028
|
-
|
|
2029
|
-
export const marshalExchangeSchema: z.ZodType = z
|
|
2030
|
-
.object({
|
|
2031
|
-
id: z.string().optional(),
|
|
2032
|
-
name: z.string().optional(),
|
|
2033
|
-
comment: z.string().optional(),
|
|
2034
|
-
filters: z.array(z.lazy(() => marshalExchangeFilterSchema)).optional(),
|
|
2035
|
-
createdAt: z.bigint().optional(),
|
|
2036
|
-
createdBy: z.string().optional(),
|
|
2037
|
-
updatedAt: z.bigint().optional(),
|
|
2038
|
-
updatedBy: z.string().optional(),
|
|
2039
|
-
linkedListings: z
|
|
2040
|
-
.array(z.lazy(() => marshalExchangeListingSchema))
|
|
2041
|
-
.optional(),
|
|
2042
|
-
})
|
|
2043
|
-
.transform(d => ({
|
|
2044
|
-
id: d.id,
|
|
2045
|
-
name: d.name,
|
|
2046
|
-
comment: d.comment,
|
|
2047
|
-
filters: d.filters,
|
|
2048
|
-
created_at: d.createdAt,
|
|
2049
|
-
created_by: d.createdBy,
|
|
2050
|
-
updated_at: d.updatedAt,
|
|
2051
|
-
updated_by: d.updatedBy,
|
|
2052
|
-
linked_listings: d.linkedListings,
|
|
2053
|
-
}));
|
|
2054
|
-
|
|
2055
|
-
export const marshalExchangeFilterSchema: z.ZodType = z
|
|
2056
|
-
.object({
|
|
2057
|
-
id: z.string().optional(),
|
|
2058
|
-
exchangeId: z.string().optional(),
|
|
2059
|
-
filterValue: z.string().optional(),
|
|
2060
|
-
name: z.string().optional(),
|
|
2061
|
-
createdAt: z.bigint().optional(),
|
|
2062
|
-
createdBy: z.string().optional(),
|
|
2063
|
-
updatedAt: z.bigint().optional(),
|
|
2064
|
-
updatedBy: z.string().optional(),
|
|
2065
|
-
filterType: z.enum(ExchangeFilterType).optional(),
|
|
2066
|
-
})
|
|
2067
|
-
.transform(d => ({
|
|
2068
|
-
id: d.id,
|
|
2069
|
-
exchange_id: d.exchangeId,
|
|
2070
|
-
filter_value: d.filterValue,
|
|
2071
|
-
name: d.name,
|
|
2072
|
-
created_at: d.createdAt,
|
|
2073
|
-
created_by: d.createdBy,
|
|
2074
|
-
updated_at: d.updatedAt,
|
|
2075
|
-
updated_by: d.updatedBy,
|
|
2076
|
-
filter_type: d.filterType,
|
|
2077
|
-
}));
|
|
2078
|
-
|
|
2079
|
-
export const marshalExchangeListingSchema: z.ZodType = z
|
|
2080
|
-
.object({
|
|
2081
|
-
id: z.string().optional(),
|
|
2082
|
-
exchangeId: z.string().optional(),
|
|
2083
|
-
exchangeName: z.string().optional(),
|
|
2084
|
-
listingId: z.string().optional(),
|
|
2085
|
-
listingName: z.string().optional(),
|
|
2086
|
-
createdAt: z.bigint().optional(),
|
|
2087
|
-
createdBy: z.string().optional(),
|
|
2088
|
-
})
|
|
2089
|
-
.transform(d => ({
|
|
2090
|
-
id: d.id,
|
|
2091
|
-
exchange_id: d.exchangeId,
|
|
2092
|
-
exchange_name: d.exchangeName,
|
|
2093
|
-
listing_id: d.listingId,
|
|
2094
|
-
listing_name: d.listingName,
|
|
2095
|
-
created_at: d.createdAt,
|
|
2096
|
-
created_by: d.createdBy,
|
|
2097
|
-
}));
|
|
2098
|
-
|
|
2099
|
-
export const marshalFileInfoSchema: z.ZodType = z
|
|
2100
|
-
.object({
|
|
2101
|
-
id: z.string().optional(),
|
|
2102
|
-
marketplaceFileType: z.enum(MarketplaceFileType).optional(),
|
|
2103
|
-
fileParent: z.lazy(() => marshalFileParentSchema).optional(),
|
|
2104
|
-
mimeType: z.string().optional(),
|
|
2105
|
-
downloadLink: z.string().optional(),
|
|
2106
|
-
createdAt: z.bigint().optional(),
|
|
2107
|
-
updatedAt: z.bigint().optional(),
|
|
2108
|
-
displayName: z.string().optional(),
|
|
2109
|
-
status: z.enum(FileStatus).optional(),
|
|
2110
|
-
statusMessage: z.string().optional(),
|
|
2111
|
-
})
|
|
2112
|
-
.transform(d => ({
|
|
2113
|
-
id: d.id,
|
|
2114
|
-
marketplace_file_type: d.marketplaceFileType,
|
|
2115
|
-
file_parent: d.fileParent,
|
|
2116
|
-
mime_type: d.mimeType,
|
|
2117
|
-
download_link: d.downloadLink,
|
|
2118
|
-
created_at: d.createdAt,
|
|
2119
|
-
updated_at: d.updatedAt,
|
|
2120
|
-
display_name: d.displayName,
|
|
2121
|
-
status: d.status,
|
|
2122
|
-
status_message: d.statusMessage,
|
|
2123
|
-
}));
|
|
2124
|
-
|
|
2125
|
-
export const marshalFileParentSchema: z.ZodType = z
|
|
2126
|
-
.object({
|
|
2127
|
-
parentId: z.string().optional(),
|
|
2128
|
-
fileParentType: z.enum(FileParentType).optional(),
|
|
2129
|
-
})
|
|
2130
|
-
.transform(d => ({
|
|
2131
|
-
parent_id: d.parentId,
|
|
2132
|
-
file_parent_type: d.fileParentType,
|
|
2133
|
-
}));
|
|
2134
|
-
|
|
2135
|
-
export const marshalInstallListingSchema: z.ZodType = z
|
|
2136
|
-
.object({
|
|
2137
|
-
listingId: z.string().optional(),
|
|
2138
|
-
shareName: z.string().optional(),
|
|
2139
|
-
catalogName: z.string().optional(),
|
|
2140
|
-
repoDetail: z.lazy(() => marshalRepoInstallationSchema).optional(),
|
|
2141
|
-
recipientType: z.enum(DeltaSharingRecipientType).optional(),
|
|
2142
|
-
acceptedConsumerTerms: z.lazy(() => marshalConsumerTermsSchema).optional(),
|
|
2143
|
-
})
|
|
2144
|
-
.transform(d => ({
|
|
2145
|
-
listing_id: d.listingId,
|
|
2146
|
-
share_name: d.shareName,
|
|
2147
|
-
catalog_name: d.catalogName,
|
|
2148
|
-
repo_detail: d.repoDetail,
|
|
2149
|
-
recipient_type: d.recipientType,
|
|
2150
|
-
accepted_consumer_terms: d.acceptedConsumerTerms,
|
|
2151
|
-
}));
|
|
2152
|
-
|
|
2153
|
-
export const marshalInstallationDetailSchema: z.ZodType = z
|
|
2154
|
-
.object({
|
|
2155
|
-
id: z.string().optional(),
|
|
2156
|
-
listingId: z.string().optional(),
|
|
2157
|
-
shareName: z.string().optional(),
|
|
2158
|
-
catalogName: z.string().optional(),
|
|
2159
|
-
installedOn: z.bigint().optional(),
|
|
2160
|
-
status: z.enum(InstallationStatus).optional(),
|
|
2161
|
-
errorMessage: z.string().optional(),
|
|
2162
|
-
listingName: z.string().optional(),
|
|
2163
|
-
repoName: z.string().optional(),
|
|
2164
|
-
repoPath: z.string().optional(),
|
|
2165
|
-
recipientType: z.enum(DeltaSharingRecipientType).optional(),
|
|
2166
|
-
tokens: z.array(z.lazy(() => marshalTokenInfoSchema)).optional(),
|
|
2167
|
-
tokenDetail: z.lazy(() => marshalTokenDetailSchema).optional(),
|
|
2168
|
-
})
|
|
2169
|
-
.transform(d => ({
|
|
2170
|
-
id: d.id,
|
|
2171
|
-
listing_id: d.listingId,
|
|
2172
|
-
share_name: d.shareName,
|
|
2173
|
-
catalog_name: d.catalogName,
|
|
2174
|
-
installed_on: d.installedOn,
|
|
2175
|
-
status: d.status,
|
|
2176
|
-
error_message: d.errorMessage,
|
|
2177
|
-
listing_name: d.listingName,
|
|
2178
|
-
repo_name: d.repoName,
|
|
2179
|
-
repo_path: d.repoPath,
|
|
2180
|
-
recipient_type: d.recipientType,
|
|
2181
|
-
tokens: d.tokens,
|
|
2182
|
-
token_detail: d.tokenDetail,
|
|
2183
|
-
}));
|
|
2184
|
-
|
|
2185
|
-
export const marshalListingSchema: z.ZodType = z
|
|
2186
|
-
.object({
|
|
2187
|
-
id: z.string().optional(),
|
|
2188
|
-
summary: z.lazy(() => marshalListingSummarySchema).optional(),
|
|
2189
|
-
detail: z.lazy(() => marshalListingDetailSchema).optional(),
|
|
2190
|
-
})
|
|
2191
|
-
.transform(d => ({
|
|
2192
|
-
id: d.id,
|
|
2193
|
-
summary: d.summary,
|
|
2194
|
-
detail: d.detail,
|
|
2195
|
-
}));
|
|
2196
|
-
|
|
2197
|
-
export const marshalListingDetailSchema: z.ZodType = z
|
|
2198
|
-
.object({
|
|
2199
|
-
description: z.string().optional(),
|
|
2200
|
-
termsOfService: z.string().optional(),
|
|
2201
|
-
documentationLink: z.string().optional(),
|
|
2202
|
-
supportLink: z.string().optional(),
|
|
2203
|
-
fileIds: z.array(z.string()).optional(),
|
|
2204
|
-
privacyPolicyLink: z.string().optional(),
|
|
2205
|
-
embeddedNotebookFileInfos: z
|
|
2206
|
-
.array(z.lazy(() => marshalFileInfoSchema))
|
|
2207
|
-
.optional(),
|
|
2208
|
-
geographicalCoverage: z.string().optional(),
|
|
2209
|
-
cost: z.enum(Cost).optional(),
|
|
2210
|
-
pricingModel: z.string().optional(),
|
|
2211
|
-
updateFrequency: z.lazy(() => marshalDataRefreshInfoSchema).optional(),
|
|
2212
|
-
collectionGranularity: z
|
|
2213
|
-
.lazy(() => marshalDataRefreshInfoSchema)
|
|
2214
|
-
.optional(),
|
|
2215
|
-
collectionDateStart: z.bigint().optional(),
|
|
2216
|
-
collectionDateEnd: z.bigint().optional(),
|
|
2217
|
-
dataSource: z.string().optional(),
|
|
2218
|
-
size: z.number().optional(),
|
|
2219
|
-
assets: z.array(z.enum(AssetType)).optional(),
|
|
2220
|
-
license: z.string().optional(),
|
|
2221
|
-
tags: z.array(z.lazy(() => marshalListingTagSchema)).optional(),
|
|
2222
|
-
})
|
|
2223
|
-
.transform(d => ({
|
|
2224
|
-
description: d.description,
|
|
2225
|
-
terms_of_service: d.termsOfService,
|
|
2226
|
-
documentation_link: d.documentationLink,
|
|
2227
|
-
support_link: d.supportLink,
|
|
2228
|
-
file_ids: d.fileIds,
|
|
2229
|
-
privacy_policy_link: d.privacyPolicyLink,
|
|
2230
|
-
embedded_notebook_file_infos: d.embeddedNotebookFileInfos,
|
|
2231
|
-
geographical_coverage: d.geographicalCoverage,
|
|
2232
|
-
cost: d.cost,
|
|
2233
|
-
pricing_model: d.pricingModel,
|
|
2234
|
-
update_frequency: d.updateFrequency,
|
|
2235
|
-
collection_granularity: d.collectionGranularity,
|
|
2236
|
-
collection_date_start: d.collectionDateStart,
|
|
2237
|
-
collection_date_end: d.collectionDateEnd,
|
|
2238
|
-
data_source: d.dataSource,
|
|
2239
|
-
size: d.size,
|
|
2240
|
-
assets: d.assets,
|
|
2241
|
-
license: d.license,
|
|
2242
|
-
tags: d.tags,
|
|
2243
|
-
}));
|
|
2244
|
-
|
|
2245
|
-
export const marshalListingSettingSchema: z.ZodType = z
|
|
2246
|
-
.object({
|
|
2247
|
-
visibility: z.enum(Visibility).optional(),
|
|
2248
|
-
})
|
|
2249
|
-
.transform(d => ({
|
|
2250
|
-
visibility: d.visibility,
|
|
2251
|
-
}));
|
|
2252
|
-
|
|
2253
|
-
export const marshalListingSummarySchema: z.ZodType = z
|
|
2254
|
-
.object({
|
|
2255
|
-
name: z.string().optional(),
|
|
2256
|
-
subtitle: z.string().optional(),
|
|
2257
|
-
status: z.enum(ListingStatus).optional(),
|
|
2258
|
-
share: z.lazy(() => marshalShareInfoSchema).optional(),
|
|
2259
|
-
providerRegion: z.lazy(() => marshalRegionInfoSchema).optional(),
|
|
2260
|
-
setting: z.lazy(() => marshalListingSettingSchema).optional(),
|
|
2261
|
-
createdAt: z.bigint().optional(),
|
|
2262
|
-
createdBy: z.string().optional(),
|
|
2263
|
-
updatedAt: z.bigint().optional(),
|
|
2264
|
-
updatedBy: z.string().optional(),
|
|
2265
|
-
publishedAt: z.bigint().optional(),
|
|
2266
|
-
publishedBy: z.string().optional(),
|
|
2267
|
-
categories: z.array(z.enum(Category)).optional(),
|
|
2268
|
-
listingType: z.enum(ListingType).optional(),
|
|
2269
|
-
createdById: z.bigint().optional(),
|
|
2270
|
-
updatedById: z.bigint().optional(),
|
|
2271
|
-
providerId: z.string().optional(),
|
|
2272
|
-
exchangeIds: z.array(z.string()).optional(),
|
|
2273
|
-
gitRepo: z.lazy(() => marshalRepoInfoSchema).optional(),
|
|
2274
|
-
})
|
|
2275
|
-
.transform(d => ({
|
|
2276
|
-
name: d.name,
|
|
2277
|
-
subtitle: d.subtitle,
|
|
2278
|
-
status: d.status,
|
|
2279
|
-
share: d.share,
|
|
2280
|
-
provider_region: d.providerRegion,
|
|
2281
|
-
setting: d.setting,
|
|
2282
|
-
created_at: d.createdAt,
|
|
2283
|
-
created_by: d.createdBy,
|
|
2284
|
-
updated_at: d.updatedAt,
|
|
2285
|
-
updated_by: d.updatedBy,
|
|
2286
|
-
published_at: d.publishedAt,
|
|
2287
|
-
published_by: d.publishedBy,
|
|
2288
|
-
categories: d.categories,
|
|
2289
|
-
listingType: d.listingType,
|
|
2290
|
-
created_by_id: d.createdById,
|
|
2291
|
-
updated_by_id: d.updatedById,
|
|
2292
|
-
provider_id: d.providerId,
|
|
2293
|
-
exchange_ids: d.exchangeIds,
|
|
2294
|
-
git_repo: d.gitRepo,
|
|
2295
|
-
}));
|
|
2296
|
-
|
|
2297
|
-
export const marshalListingTagSchema: z.ZodType = z
|
|
2298
|
-
.object({
|
|
2299
|
-
tagName: z.enum(ListingTagType).optional(),
|
|
2300
|
-
tagValues: z.array(z.string()).optional(),
|
|
2301
|
-
})
|
|
2302
|
-
.transform(d => ({
|
|
2303
|
-
tag_name: d.tagName,
|
|
2304
|
-
tag_values: d.tagValues,
|
|
2305
|
-
}));
|
|
2306
|
-
|
|
2307
|
-
export const marshalProviderInfoSchema: z.ZodType = z
|
|
2308
|
-
.object({
|
|
2309
|
-
id: z.string().optional(),
|
|
2310
|
-
name: z.string().optional(),
|
|
2311
|
-
description: z.string().optional(),
|
|
2312
|
-
iconFilePath: z.string().optional(),
|
|
2313
|
-
businessContactEmail: z.string().optional(),
|
|
2314
|
-
supportContactEmail: z.string().optional(),
|
|
2315
|
-
isFeatured: z.boolean().optional(),
|
|
2316
|
-
publishedBy: z.string().optional(),
|
|
2317
|
-
companyWebsiteLink: z.string().optional(),
|
|
2318
|
-
iconFileId: z.string().optional(),
|
|
2319
|
-
termOfServiceLink: z.string().optional(),
|
|
2320
|
-
privacyPolicyLink: z.string().optional(),
|
|
2321
|
-
darkModeIconFileId: z.string().optional(),
|
|
2322
|
-
darkModeIconFilePath: z.string().optional(),
|
|
2323
|
-
})
|
|
2324
|
-
.transform(d => ({
|
|
2325
|
-
id: d.id,
|
|
2326
|
-
name: d.name,
|
|
2327
|
-
description: d.description,
|
|
2328
|
-
icon_file_path: d.iconFilePath,
|
|
2329
|
-
business_contact_email: d.businessContactEmail,
|
|
2330
|
-
support_contact_email: d.supportContactEmail,
|
|
2331
|
-
is_featured: d.isFeatured,
|
|
2332
|
-
published_by: d.publishedBy,
|
|
2333
|
-
company_website_link: d.companyWebsiteLink,
|
|
2334
|
-
icon_file_id: d.iconFileId,
|
|
2335
|
-
term_of_service_link: d.termOfServiceLink,
|
|
2336
|
-
privacy_policy_link: d.privacyPolicyLink,
|
|
2337
|
-
dark_mode_icon_file_id: d.darkModeIconFileId,
|
|
2338
|
-
dark_mode_icon_file_path: d.darkModeIconFilePath,
|
|
2339
|
-
}));
|
|
2340
|
-
|
|
2341
|
-
export const marshalRegionInfoSchema: z.ZodType = z
|
|
2342
|
-
.object({
|
|
2343
|
-
cloud: z.string().optional(),
|
|
2344
|
-
region: z.string().optional(),
|
|
2345
|
-
})
|
|
2346
|
-
.transform(d => ({
|
|
2347
|
-
cloud: d.cloud,
|
|
2348
|
-
region: d.region,
|
|
2349
|
-
}));
|
|
2350
|
-
|
|
2351
|
-
export const marshalRepoInfoSchema: z.ZodType = z
|
|
2352
|
-
.object({
|
|
2353
|
-
gitRepoUrl: z.string().optional(),
|
|
2354
|
-
})
|
|
2355
|
-
.transform(d => ({
|
|
2356
|
-
git_repo_url: d.gitRepoUrl,
|
|
2357
|
-
}));
|
|
2358
|
-
|
|
2359
|
-
export const marshalRepoInstallationSchema: z.ZodType = z
|
|
2360
|
-
.object({
|
|
2361
|
-
repoName: z.string().optional(),
|
|
2362
|
-
repoPath: z.string().optional(),
|
|
2363
|
-
})
|
|
2364
|
-
.transform(d => ({
|
|
2365
|
-
repo_name: d.repoName,
|
|
2366
|
-
repo_path: d.repoPath,
|
|
2367
|
-
}));
|
|
2368
|
-
|
|
2369
|
-
export const marshalShareInfoSchema: z.ZodType = z
|
|
2370
|
-
.object({
|
|
2371
|
-
name: z.string().optional(),
|
|
2372
|
-
type: z.enum(ListingShareType).optional(),
|
|
2373
|
-
})
|
|
2374
|
-
.transform(d => ({
|
|
2375
|
-
name: d.name,
|
|
2376
|
-
type: d.type,
|
|
2377
|
-
}));
|
|
2378
|
-
|
|
2379
|
-
export const marshalTokenDetailSchema: z.ZodType = z
|
|
2380
|
-
.object({
|
|
2381
|
-
shareCredentialsVersion: z.number().optional(),
|
|
2382
|
-
bearerToken: z.string().optional(),
|
|
2383
|
-
endpoint: z.string().optional(),
|
|
2384
|
-
expirationTime: z.string().optional(),
|
|
2385
|
-
})
|
|
2386
|
-
.transform(d => ({
|
|
2387
|
-
shareCredentialsVersion: d.shareCredentialsVersion,
|
|
2388
|
-
bearerToken: d.bearerToken,
|
|
2389
|
-
endpoint: d.endpoint,
|
|
2390
|
-
expirationTime: d.expirationTime,
|
|
2391
|
-
}));
|
|
2392
|
-
|
|
2393
|
-
export const marshalTokenInfoSchema: z.ZodType = z
|
|
2394
|
-
.object({
|
|
2395
|
-
id: z.string().optional(),
|
|
2396
|
-
createdAt: z.bigint().optional(),
|
|
2397
|
-
createdBy: z.string().optional(),
|
|
2398
|
-
activationUrl: z.string().optional(),
|
|
2399
|
-
expirationTime: z.bigint().optional(),
|
|
2400
|
-
updatedAt: z.bigint().optional(),
|
|
2401
|
-
updatedBy: z.string().optional(),
|
|
2402
|
-
})
|
|
2403
|
-
.transform(d => ({
|
|
2404
|
-
id: d.id,
|
|
2405
|
-
created_at: d.createdAt,
|
|
2406
|
-
created_by: d.createdBy,
|
|
2407
|
-
activation_url: d.activationUrl,
|
|
2408
|
-
expiration_time: d.expirationTime,
|
|
2409
|
-
updated_at: d.updatedAt,
|
|
2410
|
-
updated_by: d.updatedBy,
|
|
2411
|
-
}));
|
|
2412
|
-
|
|
2413
|
-
export const marshalUpdateExchangeFilterRequestSchema: z.ZodType = z
|
|
2414
|
-
.object({
|
|
2415
|
-
id: z.string().optional(),
|
|
2416
|
-
filter: z.lazy(() => marshalExchangeFilterSchema).optional(),
|
|
2417
|
-
})
|
|
2418
|
-
.transform(d => ({
|
|
2419
|
-
id: d.id,
|
|
2420
|
-
filter: d.filter,
|
|
2421
|
-
}));
|
|
2422
|
-
|
|
2423
|
-
export const marshalUpdateExchangeRequestSchema: z.ZodType = z
|
|
2424
|
-
.object({
|
|
2425
|
-
id: z.string().optional(),
|
|
2426
|
-
exchange: z.lazy(() => marshalExchangeSchema).optional(),
|
|
2427
|
-
})
|
|
2428
|
-
.transform(d => ({
|
|
2429
|
-
id: d.id,
|
|
2430
|
-
exchange: d.exchange,
|
|
2431
|
-
}));
|
|
2432
|
-
|
|
2433
|
-
export const marshalUpdateInstallationDetailSchema: z.ZodType = z
|
|
2434
|
-
.object({
|
|
2435
|
-
listingId: z.string().optional(),
|
|
2436
|
-
installationId: z.string().optional(),
|
|
2437
|
-
installation: z.lazy(() => marshalInstallationDetailSchema).optional(),
|
|
2438
|
-
rotateToken: z.boolean().optional(),
|
|
2439
|
-
})
|
|
2440
|
-
.transform(d => ({
|
|
2441
|
-
listing_id: d.listingId,
|
|
2442
|
-
installation_id: d.installationId,
|
|
2443
|
-
installation: d.installation,
|
|
2444
|
-
rotate_token: d.rotateToken,
|
|
2445
|
-
}));
|
|
2446
|
-
|
|
2447
|
-
export const marshalUpdateListingRequestSchema: z.ZodType = z
|
|
2448
|
-
.object({
|
|
2449
|
-
id: z.string().optional(),
|
|
2450
|
-
listing: z.lazy(() => marshalListingSchema).optional(),
|
|
2451
|
-
})
|
|
2452
|
-
.transform(d => ({
|
|
2453
|
-
id: d.id,
|
|
2454
|
-
listing: d.listing,
|
|
2455
|
-
}));
|
|
2456
|
-
|
|
2457
|
-
export const marshalUpdatePersonalizationRequestStatusRequestSchema: z.ZodType =
|
|
2458
|
-
z
|
|
2459
|
-
.object({
|
|
2460
|
-
listingId: z.string().optional(),
|
|
2461
|
-
requestId: z.string().optional(),
|
|
2462
|
-
status: z.enum(PersonalizationRequestStatus).optional(),
|
|
2463
|
-
reason: z.string().optional(),
|
|
2464
|
-
share: z.lazy(() => marshalShareInfoSchema).optional(),
|
|
2465
|
-
})
|
|
2466
|
-
.transform(d => ({
|
|
2467
|
-
listing_id: d.listingId,
|
|
2468
|
-
request_id: d.requestId,
|
|
2469
|
-
status: d.status,
|
|
2470
|
-
reason: d.reason,
|
|
2471
|
-
share: d.share,
|
|
2472
|
-
}));
|
|
2473
|
-
|
|
2474
|
-
export const marshalUpdateProviderAnalyticsDashboardRequestSchema: z.ZodType = z
|
|
2475
|
-
.object({
|
|
2476
|
-
id: z.string().optional(),
|
|
2477
|
-
version: z.bigint().optional(),
|
|
2478
|
-
})
|
|
2479
|
-
.transform(d => ({
|
|
2480
|
-
id: d.id,
|
|
2481
|
-
version: d.version,
|
|
2482
|
-
}));
|
|
2483
|
-
|
|
2484
|
-
export const marshalUpdateProviderRequestSchema: z.ZodType = z
|
|
2485
|
-
.object({
|
|
2486
|
-
id: z.string().optional(),
|
|
2487
|
-
provider: z.lazy(() => marshalProviderInfoSchema).optional(),
|
|
2488
|
-
})
|
|
2489
|
-
.transform(d => ({
|
|
2490
|
-
id: d.id,
|
|
2491
|
-
provider: d.provider,
|
|
2492
|
-
}));
|