@databricks/sdk-marketplaces 0.0.0-dev → 0.1.0-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1567 @@
1
+ // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
+ import { z } from 'zod';
3
+ export var AssetType;
4
+ (function (AssetType) {
5
+ AssetType["ASSET_TYPE_UNSPECIFIED"] = "ASSET_TYPE_UNSPECIFIED";
6
+ AssetType["ASSET_TYPE_GIT_REPO"] = "ASSET_TYPE_GIT_REPO";
7
+ AssetType["ASSET_TYPE_DATA_TABLE"] = "ASSET_TYPE_DATA_TABLE";
8
+ AssetType["ASSET_TYPE_MODEL"] = "ASSET_TYPE_MODEL";
9
+ AssetType["ASSET_TYPE_NOTEBOOK"] = "ASSET_TYPE_NOTEBOOK";
10
+ /**
11
+ * (MP-2408): media-based assets generally involve volumes; however some volumes files (e.g. CSV) still correspond to datasets
12
+ * as such, add a new asset type to specify media
13
+ */
14
+ AssetType["ASSET_TYPE_MEDIA"] = "ASSET_TYPE_MEDIA";
15
+ AssetType["ASSET_TYPE_PARTNER_INTEGRATION"] = "ASSET_TYPE_PARTNER_INTEGRATION";
16
+ AssetType["ASSET_TYPE_APP"] = "ASSET_TYPE_APP";
17
+ AssetType["ASSET_TYPE_MCP"] = "ASSET_TYPE_MCP";
18
+ })(AssetType || (AssetType = {}));
19
+ export var Category;
20
+ (function (Category) {
21
+ Category["ADVERTISING_AND_MARKETING"] = "ADVERTISING_AND_MARKETING";
22
+ Category["CLIMATE_AND_ENVIRONMENT"] = "CLIMATE_AND_ENVIRONMENT";
23
+ Category["COMMERCE"] = "COMMERCE";
24
+ Category["DEMOGRAPHICS"] = "DEMOGRAPHICS";
25
+ Category["ECONOMICS"] = "ECONOMICS";
26
+ Category["EDUCATION"] = "EDUCATION";
27
+ Category["ENERGY"] = "ENERGY";
28
+ Category["FINANCIAL"] = "FINANCIAL";
29
+ Category["GAMING"] = "GAMING";
30
+ Category["GEOSPATIAL"] = "GEOSPATIAL";
31
+ Category["HEALTH"] = "HEALTH";
32
+ Category["LOOKUP_TABLES"] = "LOOKUP_TABLES";
33
+ Category["MANUFACTURING"] = "MANUFACTURING";
34
+ Category["MEDIA"] = "MEDIA";
35
+ Category["OTHER"] = "OTHER";
36
+ Category["PUBLIC_SECTOR"] = "PUBLIC_SECTOR";
37
+ Category["RETAIL"] = "RETAIL";
38
+ Category["SECURITY"] = "SECURITY";
39
+ Category["SCIENCE_AND_RESEARCH"] = "SCIENCE_AND_RESEARCH";
40
+ Category["SPORTS"] = "SPORTS";
41
+ Category["TRANSPORTATION_AND_LOGISTICS"] = "TRANSPORTATION_AND_LOGISTICS";
42
+ Category["TRAVEL_AND_TOURISM"] = "TRAVEL_AND_TOURISM";
43
+ })(Category || (Category = {}));
44
+ export var Cost;
45
+ (function (Cost) {
46
+ Cost["FREE"] = "FREE";
47
+ Cost["PAID"] = "PAID";
48
+ })(Cost || (Cost = {}));
49
+ export var DataRefresh;
50
+ (function (DataRefresh) {
51
+ DataRefresh["NONE"] = "NONE";
52
+ DataRefresh["SECOND"] = "SECOND";
53
+ DataRefresh["MINUTE"] = "MINUTE";
54
+ DataRefresh["HOURLY"] = "HOURLY";
55
+ DataRefresh["DAILY"] = "DAILY";
56
+ DataRefresh["WEEKLY"] = "WEEKLY";
57
+ DataRefresh["MONTHLY"] = "MONTHLY";
58
+ DataRefresh["QUARTERLY"] = "QUARTERLY";
59
+ DataRefresh["YEARLY"] = "YEARLY";
60
+ })(DataRefresh || (DataRefresh = {}));
61
+ export var DeltaSharingRecipientType;
62
+ (function (DeltaSharingRecipientType) {
63
+ DeltaSharingRecipientType["DELTA_SHARING_RECIPIENT_TYPE_DATABRICKS"] = "DELTA_SHARING_RECIPIENT_TYPE_DATABRICKS";
64
+ DeltaSharingRecipientType["DELTA_SHARING_RECIPIENT_TYPE_OPEN"] = "DELTA_SHARING_RECIPIENT_TYPE_OPEN";
65
+ })(DeltaSharingRecipientType || (DeltaSharingRecipientType = {}));
66
+ export var ExchangeFilterType;
67
+ (function (ExchangeFilterType) {
68
+ ExchangeFilterType["GLOBAL_METASTORE_ID"] = "GLOBAL_METASTORE_ID";
69
+ })(ExchangeFilterType || (ExchangeFilterType = {}));
70
+ export var FileParentType;
71
+ (function (FileParentType) {
72
+ FileParentType["PROVIDER"] = "PROVIDER";
73
+ FileParentType["LISTING"] = "LISTING";
74
+ FileParentType["LISTING_RESOURCE"] = "LISTING_RESOURCE";
75
+ })(FileParentType || (FileParentType = {}));
76
+ export var FileStatus;
77
+ (function (FileStatus) {
78
+ /** Published files have been sanitized by Marketplace backend and can be viewed by consumers. */
79
+ FileStatus["FILE_STATUS_PUBLISHED"] = "FILE_STATUS_PUBLISHED";
80
+ /** Created files start in staging. These are viewable by provider APIs but not consumer APIs. */
81
+ FileStatus["FILE_STATUS_STAGING"] = "FILE_STATUS_STAGING";
82
+ /** Indicates this file is in the process of being sanitized. */
83
+ FileStatus["FILE_STATUS_SANITIZING"] = "FILE_STATUS_SANITIZING";
84
+ /** Something went wrong with sanitization, refer to the status message for more information. */
85
+ FileStatus["FILE_STATUS_SANITIZATION_FAILED"] = "FILE_STATUS_SANITIZATION_FAILED";
86
+ })(FileStatus || (FileStatus = {}));
87
+ export var FulfillmentType;
88
+ (function (FulfillmentType) {
89
+ FulfillmentType["REQUEST_ACCESS"] = "REQUEST_ACCESS";
90
+ FulfillmentType["INSTALL"] = "INSTALL";
91
+ })(FulfillmentType || (FulfillmentType = {}));
92
+ export var InstallationStatus;
93
+ (function (InstallationStatus) {
94
+ InstallationStatus["INSTALLED"] = "INSTALLED";
95
+ InstallationStatus["FAILED"] = "FAILED";
96
+ })(InstallationStatus || (InstallationStatus = {}));
97
+ export var ListingShareType;
98
+ (function (ListingShareType) {
99
+ ListingShareType["SAMPLE"] = "SAMPLE";
100
+ ListingShareType["FULL"] = "FULL";
101
+ })(ListingShareType || (ListingShareType = {}));
102
+ /** Enums */
103
+ export var ListingStatus;
104
+ (function (ListingStatus) {
105
+ ListingStatus["DRAFT"] = "DRAFT";
106
+ ListingStatus["PENDING"] = "PENDING";
107
+ ListingStatus["PUBLISHED"] = "PUBLISHED";
108
+ ListingStatus["SUSPENDED"] = "SUSPENDED";
109
+ })(ListingStatus || (ListingStatus = {}));
110
+ export var ListingTagType;
111
+ (function (ListingTagType) {
112
+ ListingTagType["LISTING_TAG_TYPE_UNSPECIFIED"] = "LISTING_TAG_TYPE_UNSPECIFIED";
113
+ ListingTagType["LISTING_TAG_TYPE_LANGUAGE"] = "LISTING_TAG_TYPE_LANGUAGE";
114
+ ListingTagType["LISTING_TAG_TYPE_TASK"] = "LISTING_TAG_TYPE_TASK";
115
+ })(ListingTagType || (ListingTagType = {}));
116
+ export var ListingType;
117
+ (function (ListingType) {
118
+ ListingType["STANDARD"] = "STANDARD";
119
+ ListingType["PERSONALIZED"] = "PERSONALIZED";
120
+ })(ListingType || (ListingType = {}));
121
+ export var MarketplaceFileType;
122
+ (function (MarketplaceFileType) {
123
+ MarketplaceFileType["PROVIDER_ICON"] = "PROVIDER_ICON";
124
+ MarketplaceFileType["EMBEDDED_NOTEBOOK"] = "EMBEDDED_NOTEBOOK";
125
+ MarketplaceFileType["APP"] = "APP";
126
+ })(MarketplaceFileType || (MarketplaceFileType = {}));
127
+ export var PersonalizationRequestStatus;
128
+ (function (PersonalizationRequestStatus) {
129
+ PersonalizationRequestStatus["NEW"] = "NEW";
130
+ /** Pending already defined for ListingStatus */
131
+ PersonalizationRequestStatus["REQUEST_PENDING"] = "REQUEST_PENDING";
132
+ PersonalizationRequestStatus["FULFILLED"] = "FULFILLED";
133
+ PersonalizationRequestStatus["DENIED"] = "DENIED";
134
+ })(PersonalizationRequestStatus || (PersonalizationRequestStatus = {}));
135
+ export var Visibility;
136
+ (function (Visibility) {
137
+ Visibility["PUBLIC"] = "PUBLIC";
138
+ Visibility["PRIVATE"] = "PRIVATE";
139
+ })(Visibility || (Visibility = {}));
140
+ export const unmarshalAddExchangeForListingResponseSchema = z
141
+ .object({
142
+ exchange_for_listing: z
143
+ .lazy(() => unmarshalExchangeListingSchema)
144
+ .optional(),
145
+ })
146
+ .transform(d => ({
147
+ exchangeForListing: d.exchange_for_listing,
148
+ }));
149
+ export const unmarshalBatchGetListingsResponseSchema = z
150
+ .object({
151
+ listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
152
+ })
153
+ .transform(d => ({
154
+ listings: d.listings,
155
+ }));
156
+ export const unmarshalBatchGetProvidersResponseSchema = z
157
+ .object({
158
+ providers: z.array(z.lazy(() => unmarshalProviderInfoSchema)).optional(),
159
+ })
160
+ .transform(d => ({
161
+ providers: d.providers,
162
+ }));
163
+ export const unmarshalContactInfoSchema = z
164
+ .object({
165
+ first_name: z.string().optional(),
166
+ last_name: z.string().optional(),
167
+ email: z.string().optional(),
168
+ company: z.string().optional(),
169
+ })
170
+ .transform(d => ({
171
+ firstName: d.first_name,
172
+ lastName: d.last_name,
173
+ email: d.email,
174
+ company: d.company,
175
+ }));
176
+ export const unmarshalCreateExchangeFilterResponseSchema = z
177
+ .object({
178
+ filter_id: z.string().optional(),
179
+ })
180
+ .transform(d => ({
181
+ filterId: d.filter_id,
182
+ }));
183
+ export const unmarshalCreateExchangeResponseSchema = z
184
+ .object({
185
+ exchange_id: z.string().optional(),
186
+ })
187
+ .transform(d => ({
188
+ exchangeId: d.exchange_id,
189
+ }));
190
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
191
+ export const unmarshalCreateFileRequest_ResponseSchema = z
192
+ .object({
193
+ upload_url: z.string().optional(),
194
+ file_info: z.lazy(() => unmarshalFileInfoSchema).optional(),
195
+ })
196
+ .transform(d => ({
197
+ uploadUrl: d.upload_url,
198
+ fileInfo: d.file_info,
199
+ }));
200
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
201
+ export const unmarshalCreateListingRequest_ResponseSchema = z
202
+ .object({
203
+ listing_id: z.string().optional(),
204
+ })
205
+ .transform(d => ({
206
+ listingId: d.listing_id,
207
+ }));
208
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
209
+ export const unmarshalCreatePersonalizationRequest_ResponseSchema = z
210
+ .object({
211
+ id: z.string().optional(),
212
+ })
213
+ .transform(d => ({
214
+ id: d.id,
215
+ }));
216
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
217
+ export const unmarshalCreateProviderAnalyticsDashboardRequest_ResponseSchema = z
218
+ .object({
219
+ id: z.string().optional(),
220
+ })
221
+ .transform(d => ({
222
+ id: d.id,
223
+ }));
224
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
225
+ export const unmarshalCreateProviderRequest_ResponseSchema = z
226
+ .object({
227
+ id: z.string().optional(),
228
+ })
229
+ .transform(d => ({
230
+ id: d.id,
231
+ }));
232
+ export const unmarshalDataRefreshInfoSchema = z
233
+ .object({
234
+ interval: z
235
+ .union([z.number(), z.bigint()])
236
+ .transform(v => BigInt(v))
237
+ .optional(),
238
+ unit: z.enum(DataRefresh).optional(),
239
+ })
240
+ .transform(d => ({
241
+ interval: d.interval,
242
+ unit: d.unit,
243
+ }));
244
+ export const unmarshalDeleteExchangeFilterResponseSchema = z.object({});
245
+ export const unmarshalDeleteExchangeResponseSchema = z.object({});
246
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
247
+ export const unmarshalDeleteFileRequest_ResponseSchema = z.object({});
248
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
249
+ export const unmarshalDeleteListingRequest_ResponseSchema = z.object({});
250
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
251
+ export const unmarshalDeleteProviderRequest_ResponseSchema = z.object({});
252
+ export const unmarshalExchangeSchema = z
253
+ .object({
254
+ id: z.string().optional(),
255
+ name: z.string().optional(),
256
+ comment: z.string().optional(),
257
+ filters: z.array(z.lazy(() => unmarshalExchangeFilterSchema)).optional(),
258
+ created_at: z
259
+ .union([z.number(), z.bigint()])
260
+ .transform(v => BigInt(v))
261
+ .optional(),
262
+ created_by: z.string().optional(),
263
+ updated_at: z
264
+ .union([z.number(), z.bigint()])
265
+ .transform(v => BigInt(v))
266
+ .optional(),
267
+ updated_by: z.string().optional(),
268
+ linked_listings: z
269
+ .array(z.lazy(() => unmarshalExchangeListingSchema))
270
+ .optional(),
271
+ })
272
+ .transform(d => ({
273
+ id: d.id,
274
+ name: d.name,
275
+ comment: d.comment,
276
+ filters: d.filters,
277
+ createdAt: d.created_at,
278
+ createdBy: d.created_by,
279
+ updatedAt: d.updated_at,
280
+ updatedBy: d.updated_by,
281
+ linkedListings: d.linked_listings,
282
+ }));
283
+ export const unmarshalExchangeFilterSchema = z
284
+ .object({
285
+ id: z.string().optional(),
286
+ exchange_id: z.string().optional(),
287
+ filter_value: z.string().optional(),
288
+ name: z.string().optional(),
289
+ created_at: z
290
+ .union([z.number(), z.bigint()])
291
+ .transform(v => BigInt(v))
292
+ .optional(),
293
+ created_by: z.string().optional(),
294
+ updated_at: z
295
+ .union([z.number(), z.bigint()])
296
+ .transform(v => BigInt(v))
297
+ .optional(),
298
+ updated_by: z.string().optional(),
299
+ filter_type: z.enum(ExchangeFilterType).optional(),
300
+ })
301
+ .transform(d => ({
302
+ id: d.id,
303
+ exchangeId: d.exchange_id,
304
+ filterValue: d.filter_value,
305
+ name: d.name,
306
+ createdAt: d.created_at,
307
+ createdBy: d.created_by,
308
+ updatedAt: d.updated_at,
309
+ updatedBy: d.updated_by,
310
+ filterType: d.filter_type,
311
+ }));
312
+ export const unmarshalExchangeListingSchema = z
313
+ .object({
314
+ id: z.string().optional(),
315
+ exchange_id: z.string().optional(),
316
+ exchange_name: z.string().optional(),
317
+ listing_id: z.string().optional(),
318
+ listing_name: z.string().optional(),
319
+ created_at: z
320
+ .union([z.number(), z.bigint()])
321
+ .transform(v => BigInt(v))
322
+ .optional(),
323
+ created_by: z.string().optional(),
324
+ })
325
+ .transform(d => ({
326
+ id: d.id,
327
+ exchangeId: d.exchange_id,
328
+ exchangeName: d.exchange_name,
329
+ listingId: d.listing_id,
330
+ listingName: d.listing_name,
331
+ createdAt: d.created_at,
332
+ createdBy: d.created_by,
333
+ }));
334
+ export const unmarshalFileInfoSchema = z
335
+ .object({
336
+ id: z.string().optional(),
337
+ marketplace_file_type: z.enum(MarketplaceFileType).optional(),
338
+ file_parent: z.lazy(() => unmarshalFileParentSchema).optional(),
339
+ mime_type: z.string().optional(),
340
+ download_link: z.string().optional(),
341
+ created_at: z
342
+ .union([z.number(), z.bigint()])
343
+ .transform(v => BigInt(v))
344
+ .optional(),
345
+ updated_at: z
346
+ .union([z.number(), z.bigint()])
347
+ .transform(v => BigInt(v))
348
+ .optional(),
349
+ display_name: z.string().optional(),
350
+ status: z.enum(FileStatus).optional(),
351
+ status_message: z.string().optional(),
352
+ })
353
+ .transform(d => ({
354
+ id: d.id,
355
+ marketplaceFileType: d.marketplace_file_type,
356
+ fileParent: d.file_parent,
357
+ mimeType: d.mime_type,
358
+ downloadLink: d.download_link,
359
+ createdAt: d.created_at,
360
+ updatedAt: d.updated_at,
361
+ displayName: d.display_name,
362
+ status: d.status,
363
+ statusMessage: d.status_message,
364
+ }));
365
+ export const unmarshalFileParentSchema = z
366
+ .object({
367
+ parent_id: z.string().optional(),
368
+ file_parent_type: z.enum(FileParentType).optional(),
369
+ })
370
+ .transform(d => ({
371
+ parentId: d.parent_id,
372
+ fileParentType: d.file_parent_type,
373
+ }));
374
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
375
+ export const unmarshalGetAllInstallations_ResponseSchema = z
376
+ .object({
377
+ installations: z
378
+ .array(z.lazy(() => unmarshalInstallationDetailSchema))
379
+ .optional(),
380
+ next_page_token: z.string().optional(),
381
+ })
382
+ .transform(d => ({
383
+ installations: d.installations,
384
+ nextPageToken: d.next_page_token,
385
+ }));
386
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
387
+ export const unmarshalGetAllPersonalizationRequestsForConsumer_ResponseSchema = z
388
+ .object({
389
+ personalization_requests: z
390
+ .array(z.lazy(() => unmarshalPersonalizationRequestSchema))
391
+ .optional(),
392
+ next_page_token: z.string().optional(),
393
+ })
394
+ .transform(d => ({
395
+ personalizationRequests: d.personalization_requests,
396
+ nextPageToken: d.next_page_token,
397
+ }));
398
+ export const unmarshalGetExchangeResponseSchema = z
399
+ .object({
400
+ exchange: z.lazy(() => unmarshalExchangeSchema).optional(),
401
+ })
402
+ .transform(d => ({
403
+ exchange: d.exchange,
404
+ }));
405
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
406
+ export const unmarshalGetFileRequest_ResponseSchema = z
407
+ .object({
408
+ file_info: z.lazy(() => unmarshalFileInfoSchema).optional(),
409
+ })
410
+ .transform(d => ({
411
+ fileInfo: d.file_info,
412
+ }));
413
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
414
+ export const unmarshalGetInstallationDetails_ResponseSchema = z
415
+ .object({
416
+ installations: z
417
+ .array(z.lazy(() => unmarshalInstallationDetailSchema))
418
+ .optional(),
419
+ next_page_token: z.string().optional(),
420
+ })
421
+ .transform(d => ({
422
+ installations: d.installations,
423
+ nextPageToken: d.next_page_token,
424
+ }));
425
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
426
+ export const unmarshalGetLatestVersionProviderAnalyticsDashboardRequest_ResponseSchema = z
427
+ .object({
428
+ version: z
429
+ .union([z.number(), z.bigint()])
430
+ .transform(v => BigInt(v))
431
+ .optional(),
432
+ })
433
+ .transform(d => ({
434
+ version: d.version,
435
+ }));
436
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
437
+ export const unmarshalGetListingContent_ResponseSchema = z
438
+ .object({
439
+ shared_data_objects: z
440
+ .array(z.lazy(() => unmarshalSharedDataObjectSchema))
441
+ .optional(),
442
+ next_page_token: z.string().optional(),
443
+ })
444
+ .transform(d => ({
445
+ sharedDataObjects: d.shared_data_objects,
446
+ nextPageToken: d.next_page_token,
447
+ }));
448
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
449
+ export const unmarshalGetListingFulfillments_ResponseSchema = z
450
+ .object({
451
+ fulfillments: z
452
+ .array(z.lazy(() => unmarshalListingFulfillmentSchema))
453
+ .optional(),
454
+ next_page_token: z.string().optional(),
455
+ })
456
+ .transform(d => ({
457
+ fulfillments: d.fulfillments,
458
+ nextPageToken: d.next_page_token,
459
+ }));
460
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
461
+ export const unmarshalGetListingRequest_ResponseSchema = z
462
+ .object({
463
+ listing: z.lazy(() => unmarshalListingSchema).optional(),
464
+ })
465
+ .transform(d => ({
466
+ listing: d.listing,
467
+ }));
468
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
469
+ export const unmarshalGetListingsRequest_ResponseSchema = z
470
+ .object({
471
+ listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
472
+ next_page_token: z.string().optional(),
473
+ })
474
+ .transform(d => ({
475
+ listings: d.listings,
476
+ nextPageToken: d.next_page_token,
477
+ }));
478
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
479
+ export const unmarshalGetPersonalizationRequestsForConsumer_ResponseSchema = z
480
+ .object({
481
+ personalization_requests: z
482
+ .array(z.lazy(() => unmarshalPersonalizationRequestSchema))
483
+ .optional(),
484
+ })
485
+ .transform(d => ({
486
+ personalizationRequests: d.personalization_requests,
487
+ }));
488
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
489
+ export const unmarshalGetPersonalizationRequestsForProviderRequest_ResponseSchema = z
490
+ .object({
491
+ personalization_requests: z
492
+ .array(z.lazy(() => unmarshalPersonalizationRequestSchema))
493
+ .optional(),
494
+ next_page_token: z.string().optional(),
495
+ })
496
+ .transform(d => ({
497
+ personalizationRequests: d.personalization_requests,
498
+ nextPageToken: d.next_page_token,
499
+ }));
500
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
501
+ export const unmarshalGetProviderRequest_ResponseSchema = z
502
+ .object({
503
+ provider: z.lazy(() => unmarshalProviderInfoSchema).optional(),
504
+ })
505
+ .transform(d => ({
506
+ provider: d.provider,
507
+ }));
508
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
509
+ export const unmarshalGetPublishedListingForConsumer_ResponseSchema = z
510
+ .object({
511
+ listing: z.lazy(() => unmarshalListingSchema).optional(),
512
+ })
513
+ .transform(d => ({
514
+ listing: d.listing,
515
+ }));
516
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
517
+ export const unmarshalGetPublishedListingsForConsumer_ResponseSchema = z
518
+ .object({
519
+ listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
520
+ next_page_token: z.string().optional(),
521
+ })
522
+ .transform(d => ({
523
+ listings: d.listings,
524
+ nextPageToken: d.next_page_token,
525
+ }));
526
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
527
+ export const unmarshalGetPublishedProviderForConsumer_ResponseSchema = z
528
+ .object({
529
+ provider: z.lazy(() => unmarshalProviderInfoSchema).optional(),
530
+ })
531
+ .transform(d => ({
532
+ provider: d.provider,
533
+ }));
534
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
535
+ export const unmarshalInstallListing_ResponseSchema = z
536
+ .object({
537
+ installation: z.lazy(() => unmarshalInstallationDetailSchema).optional(),
538
+ })
539
+ .transform(d => ({
540
+ installation: d.installation,
541
+ }));
542
+ export const unmarshalInstallationDetailSchema = z
543
+ .object({
544
+ id: z.string().optional(),
545
+ listing_id: z.string().optional(),
546
+ share_name: z.string().optional(),
547
+ catalog_name: z.string().optional(),
548
+ installed_on: z
549
+ .union([z.number(), z.bigint()])
550
+ .transform(v => BigInt(v))
551
+ .optional(),
552
+ status: z.enum(InstallationStatus).optional(),
553
+ error_message: z.string().optional(),
554
+ listing_name: z.string().optional(),
555
+ repo_name: z.string().optional(),
556
+ repo_path: z.string().optional(),
557
+ recipient_type: z.enum(DeltaSharingRecipientType).optional(),
558
+ tokens: z.array(z.lazy(() => unmarshalTokenInfoSchema)).optional(),
559
+ token_detail: z.lazy(() => unmarshalTokenDetailSchema).optional(),
560
+ })
561
+ .transform(d => ({
562
+ id: d.id,
563
+ listingId: d.listing_id,
564
+ shareName: d.share_name,
565
+ catalogName: d.catalog_name,
566
+ installedOn: d.installed_on,
567
+ status: d.status,
568
+ errorMessage: d.error_message,
569
+ listingName: d.listing_name,
570
+ repoName: d.repo_name,
571
+ repoPath: d.repo_path,
572
+ recipientType: d.recipient_type,
573
+ tokens: d.tokens,
574
+ tokenDetail: d.token_detail,
575
+ }));
576
+ export const unmarshalListExchangeFiltersResponseSchema = z
577
+ .object({
578
+ filters: z.array(z.lazy(() => unmarshalExchangeFilterSchema)).optional(),
579
+ next_page_token: z.string().optional(),
580
+ })
581
+ .transform(d => ({
582
+ filters: d.filters,
583
+ nextPageToken: d.next_page_token,
584
+ }));
585
+ export const unmarshalListExchangesForListingResponseSchema = z
586
+ .object({
587
+ exchange_listing: z
588
+ .array(z.lazy(() => unmarshalExchangeListingSchema))
589
+ .optional(),
590
+ next_page_token: z.string().optional(),
591
+ })
592
+ .transform(d => ({
593
+ exchangeListing: d.exchange_listing,
594
+ nextPageToken: d.next_page_token,
595
+ }));
596
+ export const unmarshalListExchangesResponseSchema = z
597
+ .object({
598
+ exchanges: z.array(z.lazy(() => unmarshalExchangeSchema)).optional(),
599
+ next_page_token: z.string().optional(),
600
+ })
601
+ .transform(d => ({
602
+ exchanges: d.exchanges,
603
+ nextPageToken: d.next_page_token,
604
+ }));
605
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
606
+ export const unmarshalListFilesRequest_ResponseSchema = z
607
+ .object({
608
+ file_infos: z.array(z.lazy(() => unmarshalFileInfoSchema)).optional(),
609
+ next_page_token: z.string().optional(),
610
+ })
611
+ .transform(d => ({
612
+ fileInfos: d.file_infos,
613
+ nextPageToken: d.next_page_token,
614
+ }));
615
+ export const unmarshalListListingsForExchangeResponseSchema = z
616
+ .object({
617
+ exchange_listings: z
618
+ .array(z.lazy(() => unmarshalExchangeListingSchema))
619
+ .optional(),
620
+ next_page_token: z.string().optional(),
621
+ })
622
+ .transform(d => ({
623
+ exchangeListings: d.exchange_listings,
624
+ nextPageToken: d.next_page_token,
625
+ }));
626
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
627
+ export const unmarshalListProviderAnalyticsDashboardRequest_ResponseSchema = z
628
+ .object({
629
+ id: z.string().optional(),
630
+ version: z
631
+ .union([z.number(), z.bigint()])
632
+ .transform(v => BigInt(v))
633
+ .optional(),
634
+ dashboard_id: z.string().optional(),
635
+ })
636
+ .transform(d => ({
637
+ id: d.id,
638
+ version: d.version,
639
+ dashboardId: d.dashboard_id,
640
+ }));
641
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
642
+ export const unmarshalListProvidersRequest_ResponseSchema = z
643
+ .object({
644
+ providers: z.array(z.lazy(() => unmarshalProviderInfoSchema)).optional(),
645
+ next_page_token: z.string().optional(),
646
+ })
647
+ .transform(d => ({
648
+ providers: d.providers,
649
+ nextPageToken: d.next_page_token,
650
+ }));
651
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
652
+ export const unmarshalListPublishedProvidersForConsumer_ResponseSchema = z
653
+ .object({
654
+ providers: z.array(z.lazy(() => unmarshalProviderInfoSchema)).optional(),
655
+ next_page_token: z.string().optional(),
656
+ })
657
+ .transform(d => ({
658
+ providers: d.providers,
659
+ nextPageToken: d.next_page_token,
660
+ }));
661
+ export const unmarshalListingSchema = z
662
+ .object({
663
+ id: z.string().optional(),
664
+ summary: z.lazy(() => unmarshalListingSummarySchema).optional(),
665
+ detail: z.lazy(() => unmarshalListingDetailSchema).optional(),
666
+ })
667
+ .transform(d => ({
668
+ id: d.id,
669
+ summary: d.summary,
670
+ detail: d.detail,
671
+ }));
672
+ export const unmarshalListingDetailSchema = z
673
+ .object({
674
+ description: z.string().optional(),
675
+ terms_of_service: z.string().optional(),
676
+ documentation_link: z.string().optional(),
677
+ support_link: z.string().optional(),
678
+ file_ids: z.array(z.string()).optional(),
679
+ privacy_policy_link: z.string().optional(),
680
+ embedded_notebook_file_infos: z
681
+ .array(z.lazy(() => unmarshalFileInfoSchema))
682
+ .optional(),
683
+ geographical_coverage: z.string().optional(),
684
+ cost: z.enum(Cost).optional(),
685
+ pricing_model: z.string().optional(),
686
+ update_frequency: z.lazy(() => unmarshalDataRefreshInfoSchema).optional(),
687
+ collection_granularity: z
688
+ .lazy(() => unmarshalDataRefreshInfoSchema)
689
+ .optional(),
690
+ collection_date_start: z
691
+ .union([z.number(), z.bigint()])
692
+ .transform(v => BigInt(v))
693
+ .optional(),
694
+ collection_date_end: z
695
+ .union([z.number(), z.bigint()])
696
+ .transform(v => BigInt(v))
697
+ .optional(),
698
+ data_source: z.string().optional(),
699
+ size: z.number().optional(),
700
+ assets: z.array(z.enum(AssetType)).optional(),
701
+ license: z.string().optional(),
702
+ tags: z.array(z.lazy(() => unmarshalListingTagSchema)).optional(),
703
+ })
704
+ .transform(d => ({
705
+ description: d.description,
706
+ termsOfService: d.terms_of_service,
707
+ documentationLink: d.documentation_link,
708
+ supportLink: d.support_link,
709
+ fileIds: d.file_ids,
710
+ privacyPolicyLink: d.privacy_policy_link,
711
+ embeddedNotebookFileInfos: d.embedded_notebook_file_infos,
712
+ geographicalCoverage: d.geographical_coverage,
713
+ cost: d.cost,
714
+ pricingModel: d.pricing_model,
715
+ updateFrequency: d.update_frequency,
716
+ collectionGranularity: d.collection_granularity,
717
+ collectionDateStart: d.collection_date_start,
718
+ collectionDateEnd: d.collection_date_end,
719
+ dataSource: d.data_source,
720
+ size: d.size,
721
+ assets: d.assets,
722
+ license: d.license,
723
+ tags: d.tags,
724
+ }));
725
+ export const unmarshalListingFulfillmentSchema = z
726
+ .object({
727
+ listing_id: z.string().optional(),
728
+ fulfillment_type: z.enum(FulfillmentType).optional(),
729
+ share_info: z.lazy(() => unmarshalShareInfoSchema).optional(),
730
+ repo_info: z.lazy(() => unmarshalRepoInfoSchema).optional(),
731
+ recipient_type: z.enum(DeltaSharingRecipientType).optional(),
732
+ })
733
+ .transform(d => ({
734
+ listingId: d.listing_id,
735
+ fulfillmentType: d.fulfillment_type,
736
+ shareInfo: d.share_info,
737
+ repoInfo: d.repo_info,
738
+ recipientType: d.recipient_type,
739
+ }));
740
+ export const unmarshalListingSettingSchema = z
741
+ .object({
742
+ visibility: z.enum(Visibility).optional(),
743
+ })
744
+ .transform(d => ({
745
+ visibility: d.visibility,
746
+ }));
747
+ export const unmarshalListingSummarySchema = z
748
+ .object({
749
+ name: z.string().optional(),
750
+ subtitle: z.string().optional(),
751
+ status: z.enum(ListingStatus).optional(),
752
+ share: z.lazy(() => unmarshalShareInfoSchema).optional(),
753
+ provider_region: z.lazy(() => unmarshalRegionInfoSchema).optional(),
754
+ setting: z.lazy(() => unmarshalListingSettingSchema).optional(),
755
+ created_at: z
756
+ .union([z.number(), z.bigint()])
757
+ .transform(v => BigInt(v))
758
+ .optional(),
759
+ created_by: z.string().optional(),
760
+ updated_at: z
761
+ .union([z.number(), z.bigint()])
762
+ .transform(v => BigInt(v))
763
+ .optional(),
764
+ updated_by: z.string().optional(),
765
+ published_at: z
766
+ .union([z.number(), z.bigint()])
767
+ .transform(v => BigInt(v))
768
+ .optional(),
769
+ published_by: z.string().optional(),
770
+ categories: z.array(z.enum(Category)).optional(),
771
+ listingType: z.enum(ListingType).optional(),
772
+ created_by_id: z
773
+ .union([z.number(), z.bigint()])
774
+ .transform(v => BigInt(v))
775
+ .optional(),
776
+ updated_by_id: z
777
+ .union([z.number(), z.bigint()])
778
+ .transform(v => BigInt(v))
779
+ .optional(),
780
+ provider_id: z.string().optional(),
781
+ exchange_ids: z.array(z.string()).optional(),
782
+ git_repo: z.lazy(() => unmarshalRepoInfoSchema).optional(),
783
+ })
784
+ .transform(d => ({
785
+ name: d.name,
786
+ subtitle: d.subtitle,
787
+ status: d.status,
788
+ share: d.share,
789
+ providerRegion: d.provider_region,
790
+ setting: d.setting,
791
+ createdAt: d.created_at,
792
+ createdBy: d.created_by,
793
+ updatedAt: d.updated_at,
794
+ updatedBy: d.updated_by,
795
+ publishedAt: d.published_at,
796
+ publishedBy: d.published_by,
797
+ categories: d.categories,
798
+ listingType: d.listingType,
799
+ createdById: d.created_by_id,
800
+ updatedById: d.updated_by_id,
801
+ providerId: d.provider_id,
802
+ exchangeIds: d.exchange_ids,
803
+ gitRepo: d.git_repo,
804
+ }));
805
+ export const unmarshalListingTagSchema = z
806
+ .object({
807
+ tag_name: z.enum(ListingTagType).optional(),
808
+ tag_values: z.array(z.string()).optional(),
809
+ })
810
+ .transform(d => ({
811
+ tagName: d.tag_name,
812
+ tagValues: d.tag_values,
813
+ }));
814
+ export const unmarshalPersonalizationRequestSchema = z
815
+ .object({
816
+ id: z.string().optional(),
817
+ consumer_region: z.lazy(() => unmarshalRegionInfoSchema).optional(),
818
+ contact_info: z.lazy(() => unmarshalContactInfoSchema).optional(),
819
+ comment: z.string().optional(),
820
+ intended_use: z.string().optional(),
821
+ status: z.enum(PersonalizationRequestStatus).optional(),
822
+ status_message: z.string().optional(),
823
+ share: z.lazy(() => unmarshalShareInfoSchema).optional(),
824
+ created_at: z
825
+ .union([z.number(), z.bigint()])
826
+ .transform(v => BigInt(v))
827
+ .optional(),
828
+ listing_id: z.string().optional(),
829
+ updated_at: z
830
+ .union([z.number(), z.bigint()])
831
+ .transform(v => BigInt(v))
832
+ .optional(),
833
+ metastore_id: z.string().optional(),
834
+ listing_name: z.string().optional(),
835
+ is_from_lighthouse: z.boolean().optional(),
836
+ provider_id: z.string().optional(),
837
+ recipient_type: z.enum(DeltaSharingRecipientType).optional(),
838
+ })
839
+ .transform(d => ({
840
+ id: d.id,
841
+ consumerRegion: d.consumer_region,
842
+ contactInfo: d.contact_info,
843
+ comment: d.comment,
844
+ intendedUse: d.intended_use,
845
+ status: d.status,
846
+ statusMessage: d.status_message,
847
+ share: d.share,
848
+ createdAt: d.created_at,
849
+ listingId: d.listing_id,
850
+ updatedAt: d.updated_at,
851
+ metastoreId: d.metastore_id,
852
+ listingName: d.listing_name,
853
+ isFromLighthouse: d.is_from_lighthouse,
854
+ providerId: d.provider_id,
855
+ recipientType: d.recipient_type,
856
+ }));
857
+ export const unmarshalProviderInfoSchema = z
858
+ .object({
859
+ id: z.string().optional(),
860
+ name: z.string().optional(),
861
+ description: z.string().optional(),
862
+ icon_file_path: z.string().optional(),
863
+ business_contact_email: z.string().optional(),
864
+ support_contact_email: z.string().optional(),
865
+ is_featured: z.boolean().optional(),
866
+ published_by: z.string().optional(),
867
+ company_website_link: z.string().optional(),
868
+ icon_file_id: z.string().optional(),
869
+ term_of_service_link: z.string().optional(),
870
+ privacy_policy_link: z.string().optional(),
871
+ dark_mode_icon_file_id: z.string().optional(),
872
+ dark_mode_icon_file_path: z.string().optional(),
873
+ })
874
+ .transform(d => ({
875
+ id: d.id,
876
+ name: d.name,
877
+ description: d.description,
878
+ iconFilePath: d.icon_file_path,
879
+ businessContactEmail: d.business_contact_email,
880
+ supportContactEmail: d.support_contact_email,
881
+ isFeatured: d.is_featured,
882
+ publishedBy: d.published_by,
883
+ companyWebsiteLink: d.company_website_link,
884
+ iconFileId: d.icon_file_id,
885
+ termOfServiceLink: d.term_of_service_link,
886
+ privacyPolicyLink: d.privacy_policy_link,
887
+ darkModeIconFileId: d.dark_mode_icon_file_id,
888
+ darkModeIconFilePath: d.dark_mode_icon_file_path,
889
+ }));
890
+ export const unmarshalRegionInfoSchema = z
891
+ .object({
892
+ cloud: z.string().optional(),
893
+ region: z.string().optional(),
894
+ })
895
+ .transform(d => ({
896
+ cloud: d.cloud,
897
+ region: d.region,
898
+ }));
899
+ export const unmarshalRemoveExchangeForListingResponseSchema = z.object({});
900
+ export const unmarshalRepoInfoSchema = z
901
+ .object({
902
+ git_repo_url: z.string().optional(),
903
+ })
904
+ .transform(d => ({
905
+ gitRepoUrl: d.git_repo_url,
906
+ }));
907
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
908
+ export const unmarshalSearchPublishedListingsForConsumer_ResponseSchema = z
909
+ .object({
910
+ listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
911
+ next_page_token: z.string().optional(),
912
+ })
913
+ .transform(d => ({
914
+ listings: d.listings,
915
+ nextPageToken: d.next_page_token,
916
+ }));
917
+ export const unmarshalShareInfoSchema = z
918
+ .object({
919
+ name: z.string().optional(),
920
+ type: z.enum(ListingShareType).optional(),
921
+ })
922
+ .transform(d => ({
923
+ name: d.name,
924
+ type: d.type,
925
+ }));
926
+ export const unmarshalSharedDataObjectSchema = z
927
+ .object({
928
+ name: z.string().optional(),
929
+ data_object_type: z.string().optional(),
930
+ })
931
+ .transform(d => ({
932
+ name: d.name,
933
+ dataObjectType: d.data_object_type,
934
+ }));
935
+ export const unmarshalTokenDetailSchema = z
936
+ .object({
937
+ shareCredentialsVersion: z.number().optional(),
938
+ bearerToken: z.string().optional(),
939
+ endpoint: z.string().optional(),
940
+ expirationTime: z.string().optional(),
941
+ })
942
+ .transform(d => ({
943
+ shareCredentialsVersion: d.shareCredentialsVersion,
944
+ bearerToken: d.bearerToken,
945
+ endpoint: d.endpoint,
946
+ expirationTime: d.expirationTime,
947
+ }));
948
+ export const unmarshalTokenInfoSchema = z
949
+ .object({
950
+ id: z.string().optional(),
951
+ created_at: z
952
+ .union([z.number(), z.bigint()])
953
+ .transform(v => BigInt(v))
954
+ .optional(),
955
+ created_by: z.string().optional(),
956
+ activation_url: z.string().optional(),
957
+ expiration_time: z
958
+ .union([z.number(), z.bigint()])
959
+ .transform(v => BigInt(v))
960
+ .optional(),
961
+ updated_at: z
962
+ .union([z.number(), z.bigint()])
963
+ .transform(v => BigInt(v))
964
+ .optional(),
965
+ updated_by: z.string().optional(),
966
+ })
967
+ .transform(d => ({
968
+ id: d.id,
969
+ createdAt: d.created_at,
970
+ createdBy: d.created_by,
971
+ activationUrl: d.activation_url,
972
+ expirationTime: d.expiration_time,
973
+ updatedAt: d.updated_at,
974
+ updatedBy: d.updated_by,
975
+ }));
976
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
977
+ export const unmarshalUninstallListing_ResponseSchema = z.object({});
978
+ export const unmarshalUpdateExchangeFilterResponseSchema = z
979
+ .object({
980
+ filter: z.lazy(() => unmarshalExchangeFilterSchema).optional(),
981
+ })
982
+ .transform(d => ({
983
+ filter: d.filter,
984
+ }));
985
+ export const unmarshalUpdateExchangeResponseSchema = z
986
+ .object({
987
+ exchange: z.lazy(() => unmarshalExchangeSchema).optional(),
988
+ })
989
+ .transform(d => ({
990
+ exchange: d.exchange,
991
+ }));
992
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
993
+ export const unmarshalUpdateInstallationDetail_ResponseSchema = z
994
+ .object({
995
+ installation: z.lazy(() => unmarshalInstallationDetailSchema).optional(),
996
+ })
997
+ .transform(d => ({
998
+ installation: d.installation,
999
+ }));
1000
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1001
+ export const unmarshalUpdateListingRequest_ResponseSchema = z
1002
+ .object({
1003
+ listing: z.lazy(() => unmarshalListingSchema).optional(),
1004
+ })
1005
+ .transform(d => ({
1006
+ listing: d.listing,
1007
+ }));
1008
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1009
+ export const unmarshalUpdatePersonalizationRequestStatusRequest_ResponseSchema = z
1010
+ .object({
1011
+ request: z.lazy(() => unmarshalPersonalizationRequestSchema).optional(),
1012
+ })
1013
+ .transform(d => ({
1014
+ request: d.request,
1015
+ }));
1016
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1017
+ export const unmarshalUpdateProviderAnalyticsDashboardRequest_ResponseSchema = z
1018
+ .object({
1019
+ id: z.string().optional(),
1020
+ version: z
1021
+ .union([z.number(), z.bigint()])
1022
+ .transform(v => BigInt(v))
1023
+ .optional(),
1024
+ dashboard_id: z.string().optional(),
1025
+ })
1026
+ .transform(d => ({
1027
+ id: d.id,
1028
+ version: d.version,
1029
+ dashboardId: d.dashboard_id,
1030
+ }));
1031
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1032
+ export const unmarshalUpdateProviderRequest_ResponseSchema = z
1033
+ .object({
1034
+ provider: z.lazy(() => unmarshalProviderInfoSchema).optional(),
1035
+ })
1036
+ .transform(d => ({
1037
+ provider: d.provider,
1038
+ }));
1039
+ export const marshalAddExchangeForListingRequestSchema = z
1040
+ .object({
1041
+ listingId: z.string().optional(),
1042
+ exchangeId: z.string().optional(),
1043
+ })
1044
+ .transform(d => ({
1045
+ listing_id: d.listingId,
1046
+ exchange_id: d.exchangeId,
1047
+ }));
1048
+ export const marshalConsumerTermsSchema = z
1049
+ .object({
1050
+ version: z.string().optional(),
1051
+ })
1052
+ .transform(d => ({
1053
+ version: d.version,
1054
+ }));
1055
+ export const marshalCreateExchangeFilterRequestSchema = z
1056
+ .object({
1057
+ filter: z.lazy(() => marshalExchangeFilterSchema).optional(),
1058
+ })
1059
+ .transform(d => ({
1060
+ filter: d.filter,
1061
+ }));
1062
+ export const marshalCreateExchangeRequestSchema = z
1063
+ .object({
1064
+ exchange: z.lazy(() => marshalExchangeSchema).optional(),
1065
+ })
1066
+ .transform(d => ({
1067
+ exchange: d.exchange,
1068
+ }));
1069
+ export const marshalCreateFileRequestSchema = z
1070
+ .object({
1071
+ fileParent: z.lazy(() => marshalFileParentSchema).optional(),
1072
+ marketplaceFileType: z.enum(MarketplaceFileType).optional(),
1073
+ mimeType: z.string().optional(),
1074
+ displayName: z.string().optional(),
1075
+ })
1076
+ .transform(d => ({
1077
+ file_parent: d.fileParent,
1078
+ marketplace_file_type: d.marketplaceFileType,
1079
+ mime_type: d.mimeType,
1080
+ display_name: d.displayName,
1081
+ }));
1082
+ export const marshalCreateListingRequestSchema = z
1083
+ .object({
1084
+ listing: z.lazy(() => marshalListingSchema).optional(),
1085
+ })
1086
+ .transform(d => ({
1087
+ listing: d.listing,
1088
+ }));
1089
+ export const marshalCreatePersonalizationRequestSchema = z
1090
+ .object({
1091
+ listingId: z.string().optional(),
1092
+ comment: z.string().optional(),
1093
+ intendedUse: z.string().optional(),
1094
+ firstName: z.string().optional(),
1095
+ lastName: z.string().optional(),
1096
+ company: z.string().optional(),
1097
+ isFromLighthouse: z.boolean().optional(),
1098
+ recipientType: z.enum(DeltaSharingRecipientType).optional(),
1099
+ acceptedConsumerTerms: z.lazy(() => marshalConsumerTermsSchema).optional(),
1100
+ })
1101
+ .transform(d => ({
1102
+ listing_id: d.listingId,
1103
+ comment: d.comment,
1104
+ intended_use: d.intendedUse,
1105
+ first_name: d.firstName,
1106
+ last_name: d.lastName,
1107
+ company: d.company,
1108
+ is_from_lighthouse: d.isFromLighthouse,
1109
+ recipient_type: d.recipientType,
1110
+ accepted_consumer_terms: d.acceptedConsumerTerms,
1111
+ }));
1112
+ export const marshalCreateProviderAnalyticsDashboardRequestSchema = z.object({});
1113
+ export const marshalCreateProviderRequestSchema = z
1114
+ .object({
1115
+ provider: z.lazy(() => marshalProviderInfoSchema).optional(),
1116
+ })
1117
+ .transform(d => ({
1118
+ provider: d.provider,
1119
+ }));
1120
+ export const marshalDataRefreshInfoSchema = z
1121
+ .object({
1122
+ interval: z.bigint().optional(),
1123
+ unit: z.enum(DataRefresh).optional(),
1124
+ })
1125
+ .transform(d => ({
1126
+ interval: d.interval,
1127
+ unit: d.unit,
1128
+ }));
1129
+ export const marshalExchangeSchema = z
1130
+ .object({
1131
+ id: z.string().optional(),
1132
+ name: z.string().optional(),
1133
+ comment: z.string().optional(),
1134
+ filters: z.array(z.lazy(() => marshalExchangeFilterSchema)).optional(),
1135
+ createdAt: z.bigint().optional(),
1136
+ createdBy: z.string().optional(),
1137
+ updatedAt: z.bigint().optional(),
1138
+ updatedBy: z.string().optional(),
1139
+ linkedListings: z
1140
+ .array(z.lazy(() => marshalExchangeListingSchema))
1141
+ .optional(),
1142
+ })
1143
+ .transform(d => ({
1144
+ id: d.id,
1145
+ name: d.name,
1146
+ comment: d.comment,
1147
+ filters: d.filters,
1148
+ created_at: d.createdAt,
1149
+ created_by: d.createdBy,
1150
+ updated_at: d.updatedAt,
1151
+ updated_by: d.updatedBy,
1152
+ linked_listings: d.linkedListings,
1153
+ }));
1154
+ export const marshalExchangeFilterSchema = z
1155
+ .object({
1156
+ id: z.string().optional(),
1157
+ exchangeId: z.string().optional(),
1158
+ filterValue: z.string().optional(),
1159
+ name: z.string().optional(),
1160
+ createdAt: z.bigint().optional(),
1161
+ createdBy: z.string().optional(),
1162
+ updatedAt: z.bigint().optional(),
1163
+ updatedBy: z.string().optional(),
1164
+ filterType: z.enum(ExchangeFilterType).optional(),
1165
+ })
1166
+ .transform(d => ({
1167
+ id: d.id,
1168
+ exchange_id: d.exchangeId,
1169
+ filter_value: d.filterValue,
1170
+ name: d.name,
1171
+ created_at: d.createdAt,
1172
+ created_by: d.createdBy,
1173
+ updated_at: d.updatedAt,
1174
+ updated_by: d.updatedBy,
1175
+ filter_type: d.filterType,
1176
+ }));
1177
+ export const marshalExchangeListingSchema = z
1178
+ .object({
1179
+ id: z.string().optional(),
1180
+ exchangeId: z.string().optional(),
1181
+ exchangeName: z.string().optional(),
1182
+ listingId: z.string().optional(),
1183
+ listingName: z.string().optional(),
1184
+ createdAt: z.bigint().optional(),
1185
+ createdBy: z.string().optional(),
1186
+ })
1187
+ .transform(d => ({
1188
+ id: d.id,
1189
+ exchange_id: d.exchangeId,
1190
+ exchange_name: d.exchangeName,
1191
+ listing_id: d.listingId,
1192
+ listing_name: d.listingName,
1193
+ created_at: d.createdAt,
1194
+ created_by: d.createdBy,
1195
+ }));
1196
+ export const marshalFileInfoSchema = z
1197
+ .object({
1198
+ id: z.string().optional(),
1199
+ marketplaceFileType: z.enum(MarketplaceFileType).optional(),
1200
+ fileParent: z.lazy(() => marshalFileParentSchema).optional(),
1201
+ mimeType: z.string().optional(),
1202
+ downloadLink: z.string().optional(),
1203
+ createdAt: z.bigint().optional(),
1204
+ updatedAt: z.bigint().optional(),
1205
+ displayName: z.string().optional(),
1206
+ status: z.enum(FileStatus).optional(),
1207
+ statusMessage: z.string().optional(),
1208
+ })
1209
+ .transform(d => ({
1210
+ id: d.id,
1211
+ marketplace_file_type: d.marketplaceFileType,
1212
+ file_parent: d.fileParent,
1213
+ mime_type: d.mimeType,
1214
+ download_link: d.downloadLink,
1215
+ created_at: d.createdAt,
1216
+ updated_at: d.updatedAt,
1217
+ display_name: d.displayName,
1218
+ status: d.status,
1219
+ status_message: d.statusMessage,
1220
+ }));
1221
+ export const marshalFileParentSchema = z
1222
+ .object({
1223
+ parentId: z.string().optional(),
1224
+ fileParentType: z.enum(FileParentType).optional(),
1225
+ })
1226
+ .transform(d => ({
1227
+ parent_id: d.parentId,
1228
+ file_parent_type: d.fileParentType,
1229
+ }));
1230
+ export const marshalInstallListingSchema = z
1231
+ .object({
1232
+ listingId: z.string().optional(),
1233
+ shareName: z.string().optional(),
1234
+ catalogName: z.string().optional(),
1235
+ repoDetail: z.lazy(() => marshalRepoInstallationSchema).optional(),
1236
+ recipientType: z.enum(DeltaSharingRecipientType).optional(),
1237
+ acceptedConsumerTerms: z.lazy(() => marshalConsumerTermsSchema).optional(),
1238
+ })
1239
+ .transform(d => ({
1240
+ listing_id: d.listingId,
1241
+ share_name: d.shareName,
1242
+ catalog_name: d.catalogName,
1243
+ repo_detail: d.repoDetail,
1244
+ recipient_type: d.recipientType,
1245
+ accepted_consumer_terms: d.acceptedConsumerTerms,
1246
+ }));
1247
+ export const marshalInstallationDetailSchema = z
1248
+ .object({
1249
+ id: z.string().optional(),
1250
+ listingId: z.string().optional(),
1251
+ shareName: z.string().optional(),
1252
+ catalogName: z.string().optional(),
1253
+ installedOn: z.bigint().optional(),
1254
+ status: z.enum(InstallationStatus).optional(),
1255
+ errorMessage: z.string().optional(),
1256
+ listingName: z.string().optional(),
1257
+ repoName: z.string().optional(),
1258
+ repoPath: z.string().optional(),
1259
+ recipientType: z.enum(DeltaSharingRecipientType).optional(),
1260
+ tokens: z.array(z.lazy(() => marshalTokenInfoSchema)).optional(),
1261
+ tokenDetail: z.lazy(() => marshalTokenDetailSchema).optional(),
1262
+ })
1263
+ .transform(d => ({
1264
+ id: d.id,
1265
+ listing_id: d.listingId,
1266
+ share_name: d.shareName,
1267
+ catalog_name: d.catalogName,
1268
+ installed_on: d.installedOn,
1269
+ status: d.status,
1270
+ error_message: d.errorMessage,
1271
+ listing_name: d.listingName,
1272
+ repo_name: d.repoName,
1273
+ repo_path: d.repoPath,
1274
+ recipient_type: d.recipientType,
1275
+ tokens: d.tokens,
1276
+ token_detail: d.tokenDetail,
1277
+ }));
1278
+ export const marshalListingSchema = z
1279
+ .object({
1280
+ id: z.string().optional(),
1281
+ summary: z.lazy(() => marshalListingSummarySchema).optional(),
1282
+ detail: z.lazy(() => marshalListingDetailSchema).optional(),
1283
+ })
1284
+ .transform(d => ({
1285
+ id: d.id,
1286
+ summary: d.summary,
1287
+ detail: d.detail,
1288
+ }));
1289
+ export const marshalListingDetailSchema = z
1290
+ .object({
1291
+ description: z.string().optional(),
1292
+ termsOfService: z.string().optional(),
1293
+ documentationLink: z.string().optional(),
1294
+ supportLink: z.string().optional(),
1295
+ fileIds: z.array(z.string()).optional(),
1296
+ privacyPolicyLink: z.string().optional(),
1297
+ embeddedNotebookFileInfos: z
1298
+ .array(z.lazy(() => marshalFileInfoSchema))
1299
+ .optional(),
1300
+ geographicalCoverage: z.string().optional(),
1301
+ cost: z.enum(Cost).optional(),
1302
+ pricingModel: z.string().optional(),
1303
+ updateFrequency: z.lazy(() => marshalDataRefreshInfoSchema).optional(),
1304
+ collectionGranularity: z
1305
+ .lazy(() => marshalDataRefreshInfoSchema)
1306
+ .optional(),
1307
+ collectionDateStart: z.bigint().optional(),
1308
+ collectionDateEnd: z.bigint().optional(),
1309
+ dataSource: z.string().optional(),
1310
+ size: z.number().optional(),
1311
+ assets: z.array(z.enum(AssetType)).optional(),
1312
+ license: z.string().optional(),
1313
+ tags: z.array(z.lazy(() => marshalListingTagSchema)).optional(),
1314
+ })
1315
+ .transform(d => ({
1316
+ description: d.description,
1317
+ terms_of_service: d.termsOfService,
1318
+ documentation_link: d.documentationLink,
1319
+ support_link: d.supportLink,
1320
+ file_ids: d.fileIds,
1321
+ privacy_policy_link: d.privacyPolicyLink,
1322
+ embedded_notebook_file_infos: d.embeddedNotebookFileInfos,
1323
+ geographical_coverage: d.geographicalCoverage,
1324
+ cost: d.cost,
1325
+ pricing_model: d.pricingModel,
1326
+ update_frequency: d.updateFrequency,
1327
+ collection_granularity: d.collectionGranularity,
1328
+ collection_date_start: d.collectionDateStart,
1329
+ collection_date_end: d.collectionDateEnd,
1330
+ data_source: d.dataSource,
1331
+ size: d.size,
1332
+ assets: d.assets,
1333
+ license: d.license,
1334
+ tags: d.tags,
1335
+ }));
1336
+ export const marshalListingSettingSchema = z
1337
+ .object({
1338
+ visibility: z.enum(Visibility).optional(),
1339
+ })
1340
+ .transform(d => ({
1341
+ visibility: d.visibility,
1342
+ }));
1343
+ export const marshalListingSummarySchema = z
1344
+ .object({
1345
+ name: z.string().optional(),
1346
+ subtitle: z.string().optional(),
1347
+ status: z.enum(ListingStatus).optional(),
1348
+ share: z.lazy(() => marshalShareInfoSchema).optional(),
1349
+ providerRegion: z.lazy(() => marshalRegionInfoSchema).optional(),
1350
+ setting: z.lazy(() => marshalListingSettingSchema).optional(),
1351
+ createdAt: z.bigint().optional(),
1352
+ createdBy: z.string().optional(),
1353
+ updatedAt: z.bigint().optional(),
1354
+ updatedBy: z.string().optional(),
1355
+ publishedAt: z.bigint().optional(),
1356
+ publishedBy: z.string().optional(),
1357
+ categories: z.array(z.enum(Category)).optional(),
1358
+ listingType: z.enum(ListingType).optional(),
1359
+ createdById: z.bigint().optional(),
1360
+ updatedById: z.bigint().optional(),
1361
+ providerId: z.string().optional(),
1362
+ exchangeIds: z.array(z.string()).optional(),
1363
+ gitRepo: z.lazy(() => marshalRepoInfoSchema).optional(),
1364
+ })
1365
+ .transform(d => ({
1366
+ name: d.name,
1367
+ subtitle: d.subtitle,
1368
+ status: d.status,
1369
+ share: d.share,
1370
+ provider_region: d.providerRegion,
1371
+ setting: d.setting,
1372
+ created_at: d.createdAt,
1373
+ created_by: d.createdBy,
1374
+ updated_at: d.updatedAt,
1375
+ updated_by: d.updatedBy,
1376
+ published_at: d.publishedAt,
1377
+ published_by: d.publishedBy,
1378
+ categories: d.categories,
1379
+ listingType: d.listingType,
1380
+ created_by_id: d.createdById,
1381
+ updated_by_id: d.updatedById,
1382
+ provider_id: d.providerId,
1383
+ exchange_ids: d.exchangeIds,
1384
+ git_repo: d.gitRepo,
1385
+ }));
1386
+ export const marshalListingTagSchema = z
1387
+ .object({
1388
+ tagName: z.enum(ListingTagType).optional(),
1389
+ tagValues: z.array(z.string()).optional(),
1390
+ })
1391
+ .transform(d => ({
1392
+ tag_name: d.tagName,
1393
+ tag_values: d.tagValues,
1394
+ }));
1395
+ export const marshalProviderInfoSchema = z
1396
+ .object({
1397
+ id: z.string().optional(),
1398
+ name: z.string().optional(),
1399
+ description: z.string().optional(),
1400
+ iconFilePath: z.string().optional(),
1401
+ businessContactEmail: z.string().optional(),
1402
+ supportContactEmail: z.string().optional(),
1403
+ isFeatured: z.boolean().optional(),
1404
+ publishedBy: z.string().optional(),
1405
+ companyWebsiteLink: z.string().optional(),
1406
+ iconFileId: z.string().optional(),
1407
+ termOfServiceLink: z.string().optional(),
1408
+ privacyPolicyLink: z.string().optional(),
1409
+ darkModeIconFileId: z.string().optional(),
1410
+ darkModeIconFilePath: z.string().optional(),
1411
+ })
1412
+ .transform(d => ({
1413
+ id: d.id,
1414
+ name: d.name,
1415
+ description: d.description,
1416
+ icon_file_path: d.iconFilePath,
1417
+ business_contact_email: d.businessContactEmail,
1418
+ support_contact_email: d.supportContactEmail,
1419
+ is_featured: d.isFeatured,
1420
+ published_by: d.publishedBy,
1421
+ company_website_link: d.companyWebsiteLink,
1422
+ icon_file_id: d.iconFileId,
1423
+ term_of_service_link: d.termOfServiceLink,
1424
+ privacy_policy_link: d.privacyPolicyLink,
1425
+ dark_mode_icon_file_id: d.darkModeIconFileId,
1426
+ dark_mode_icon_file_path: d.darkModeIconFilePath,
1427
+ }));
1428
+ export const marshalRegionInfoSchema = z
1429
+ .object({
1430
+ cloud: z.string().optional(),
1431
+ region: z.string().optional(),
1432
+ })
1433
+ .transform(d => ({
1434
+ cloud: d.cloud,
1435
+ region: d.region,
1436
+ }));
1437
+ export const marshalRepoInfoSchema = z
1438
+ .object({
1439
+ gitRepoUrl: z.string().optional(),
1440
+ })
1441
+ .transform(d => ({
1442
+ git_repo_url: d.gitRepoUrl,
1443
+ }));
1444
+ export const marshalRepoInstallationSchema = z
1445
+ .object({
1446
+ repoName: z.string().optional(),
1447
+ repoPath: z.string().optional(),
1448
+ })
1449
+ .transform(d => ({
1450
+ repo_name: d.repoName,
1451
+ repo_path: d.repoPath,
1452
+ }));
1453
+ export const marshalShareInfoSchema = z
1454
+ .object({
1455
+ name: z.string().optional(),
1456
+ type: z.enum(ListingShareType).optional(),
1457
+ })
1458
+ .transform(d => ({
1459
+ name: d.name,
1460
+ type: d.type,
1461
+ }));
1462
+ export const marshalTokenDetailSchema = z
1463
+ .object({
1464
+ shareCredentialsVersion: z.number().optional(),
1465
+ bearerToken: z.string().optional(),
1466
+ endpoint: z.string().optional(),
1467
+ expirationTime: z.string().optional(),
1468
+ })
1469
+ .transform(d => ({
1470
+ shareCredentialsVersion: d.shareCredentialsVersion,
1471
+ bearerToken: d.bearerToken,
1472
+ endpoint: d.endpoint,
1473
+ expirationTime: d.expirationTime,
1474
+ }));
1475
+ export const marshalTokenInfoSchema = z
1476
+ .object({
1477
+ id: z.string().optional(),
1478
+ createdAt: z.bigint().optional(),
1479
+ createdBy: z.string().optional(),
1480
+ activationUrl: z.string().optional(),
1481
+ expirationTime: z.bigint().optional(),
1482
+ updatedAt: z.bigint().optional(),
1483
+ updatedBy: z.string().optional(),
1484
+ })
1485
+ .transform(d => ({
1486
+ id: d.id,
1487
+ created_at: d.createdAt,
1488
+ created_by: d.createdBy,
1489
+ activation_url: d.activationUrl,
1490
+ expiration_time: d.expirationTime,
1491
+ updated_at: d.updatedAt,
1492
+ updated_by: d.updatedBy,
1493
+ }));
1494
+ export const marshalUpdateExchangeFilterRequestSchema = z
1495
+ .object({
1496
+ id: z.string().optional(),
1497
+ filter: z.lazy(() => marshalExchangeFilterSchema).optional(),
1498
+ })
1499
+ .transform(d => ({
1500
+ id: d.id,
1501
+ filter: d.filter,
1502
+ }));
1503
+ export const marshalUpdateExchangeRequestSchema = z
1504
+ .object({
1505
+ id: z.string().optional(),
1506
+ exchange: z.lazy(() => marshalExchangeSchema).optional(),
1507
+ })
1508
+ .transform(d => ({
1509
+ id: d.id,
1510
+ exchange: d.exchange,
1511
+ }));
1512
+ export const marshalUpdateInstallationDetailSchema = z
1513
+ .object({
1514
+ listingId: z.string().optional(),
1515
+ installationId: z.string().optional(),
1516
+ installation: z.lazy(() => marshalInstallationDetailSchema).optional(),
1517
+ rotateToken: z.boolean().optional(),
1518
+ })
1519
+ .transform(d => ({
1520
+ listing_id: d.listingId,
1521
+ installation_id: d.installationId,
1522
+ installation: d.installation,
1523
+ rotate_token: d.rotateToken,
1524
+ }));
1525
+ export const marshalUpdateListingRequestSchema = z
1526
+ .object({
1527
+ id: z.string().optional(),
1528
+ listing: z.lazy(() => marshalListingSchema).optional(),
1529
+ })
1530
+ .transform(d => ({
1531
+ id: d.id,
1532
+ listing: d.listing,
1533
+ }));
1534
+ export const marshalUpdatePersonalizationRequestStatusRequestSchema = z
1535
+ .object({
1536
+ listingId: z.string().optional(),
1537
+ requestId: z.string().optional(),
1538
+ status: z.enum(PersonalizationRequestStatus).optional(),
1539
+ reason: z.string().optional(),
1540
+ share: z.lazy(() => marshalShareInfoSchema).optional(),
1541
+ })
1542
+ .transform(d => ({
1543
+ listing_id: d.listingId,
1544
+ request_id: d.requestId,
1545
+ status: d.status,
1546
+ reason: d.reason,
1547
+ share: d.share,
1548
+ }));
1549
+ export const marshalUpdateProviderAnalyticsDashboardRequestSchema = z
1550
+ .object({
1551
+ id: z.string().optional(),
1552
+ version: z.bigint().optional(),
1553
+ })
1554
+ .transform(d => ({
1555
+ id: d.id,
1556
+ version: d.version,
1557
+ }));
1558
+ export const marshalUpdateProviderRequestSchema = z
1559
+ .object({
1560
+ id: z.string().optional(),
1561
+ provider: z.lazy(() => marshalProviderInfoSchema).optional(),
1562
+ })
1563
+ .transform(d => ({
1564
+ id: d.id,
1565
+ provider: d.provider,
1566
+ }));
1567
+ //# sourceMappingURL=model.js.map