@databricks/sdk-marketplaces 0.1.0-dev.2 → 0.1.0-dev.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/v1/model.js CHANGED
@@ -187,8 +187,7 @@ export const unmarshalCreateExchangeResponseSchema = z
187
187
  .transform(d => ({
188
188
  exchangeId: d.exchange_id,
189
189
  }));
190
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
191
- export const unmarshalCreateFileRequest_ResponseSchema = z
190
+ export const unmarshalCreateFileResponseSchema = z
192
191
  .object({
193
192
  upload_url: z.string().optional(),
194
193
  file_info: z.lazy(() => unmarshalFileInfoSchema).optional(),
@@ -197,32 +196,35 @@ export const unmarshalCreateFileRequest_ResponseSchema = z
197
196
  uploadUrl: d.upload_url,
198
197
  fileInfo: d.file_info,
199
198
  }));
200
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
201
- export const unmarshalCreateListingRequest_ResponseSchema = z
199
+ export const unmarshalCreateInstallationResponseSchema = z
200
+ .object({
201
+ installation: z.lazy(() => unmarshalInstallationDetailSchema).optional(),
202
+ })
203
+ .transform(d => ({
204
+ installation: d.installation,
205
+ }));
206
+ export const unmarshalCreateListingResponseSchema = z
202
207
  .object({
203
208
  listing_id: z.string().optional(),
204
209
  })
205
210
  .transform(d => ({
206
211
  listingId: d.listing_id,
207
212
  }));
208
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
209
- export const unmarshalCreatePersonalizationRequest_ResponseSchema = z
213
+ export const unmarshalCreatePersonalizationResponseSchema = z
210
214
  .object({
211
215
  id: z.string().optional(),
212
216
  })
213
217
  .transform(d => ({
214
218
  id: d.id,
215
219
  }));
216
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
217
- export const unmarshalCreateProviderAnalyticsDashboardRequest_ResponseSchema = z
220
+ export const unmarshalCreateProviderAnalyticsDashboardResponseSchema = z
218
221
  .object({
219
222
  id: z.string().optional(),
220
223
  })
221
224
  .transform(d => ({
222
225
  id: d.id,
223
226
  }));
224
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
225
- export const unmarshalCreateProviderRequest_ResponseSchema = z
227
+ export const unmarshalCreateProviderResponseSchema = z
226
228
  .object({
227
229
  id: z.string().optional(),
228
230
  })
@@ -243,12 +245,10 @@ export const unmarshalDataRefreshInfoSchema = z
243
245
  }));
244
246
  export const unmarshalDeleteExchangeFilterResponseSchema = z.object({});
245
247
  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({});
248
+ export const unmarshalDeleteFileResponseSchema = z.object({});
249
+ export const unmarshalDeleteInstallationResponseSchema = z.object({});
250
+ export const unmarshalDeleteListingResponseSchema = z.object({});
251
+ export const unmarshalDeleteProviderResponseSchema = z.object({});
252
252
  export const unmarshalExchangeSchema = z
253
253
  .object({
254
254
  id: z.string().optional(),
@@ -371,6 +371,17 @@ export const unmarshalFileParentSchema = z
371
371
  parentId: d.parent_id,
372
372
  fileParentType: d.file_parent_type,
373
373
  }));
374
+ export const unmarshalGetAllPersonalizationRequestsForConsumerResponseSchema = z
375
+ .object({
376
+ personalization_requests: z
377
+ .array(z.lazy(() => unmarshalPersonalizationRequestSchema))
378
+ .optional(),
379
+ next_page_token: z.string().optional(),
380
+ })
381
+ .transform(d => ({
382
+ personalizationRequests: d.personalization_requests,
383
+ nextPageToken: d.next_page_token,
384
+ }));
374
385
  export const unmarshalGetExchangeResponseSchema = z
375
386
  .object({
376
387
  exchange: z.lazy(() => unmarshalExchangeSchema).optional(),
@@ -378,28 +389,14 @@ export const unmarshalGetExchangeResponseSchema = z
378
389
  .transform(d => ({
379
390
  exchange: d.exchange,
380
391
  }));
381
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
382
- export const unmarshalGetFileRequest_ResponseSchema = z
392
+ export const unmarshalGetFileResponseSchema = z
383
393
  .object({
384
394
  file_info: z.lazy(() => unmarshalFileInfoSchema).optional(),
385
395
  })
386
396
  .transform(d => ({
387
397
  fileInfo: d.file_info,
388
398
  }));
389
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
390
- export const unmarshalGetInstallationDetails_ResponseSchema = z
391
- .object({
392
- installations: z
393
- .array(z.lazy(() => unmarshalInstallationDetailSchema))
394
- .optional(),
395
- next_page_token: z.string().optional(),
396
- })
397
- .transform(d => ({
398
- installations: d.installations,
399
- nextPageToken: d.next_page_token,
400
- }));
401
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
402
- export const unmarshalGetLatestVersionProviderAnalyticsDashboardRequest_ResponseSchema = z
399
+ export const unmarshalGetLatestVersionProviderAnalyticsDashboardResponseSchema = z
403
400
  .object({
404
401
  version: z
405
402
  .union([z.number(), z.bigint()])
@@ -409,8 +406,7 @@ export const unmarshalGetLatestVersionProviderAnalyticsDashboardRequest_Response
409
406
  .transform(d => ({
410
407
  version: d.version,
411
408
  }));
412
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
413
- export const unmarshalGetListingContent_ResponseSchema = z
409
+ export const unmarshalGetListingContentMetadataResponseSchema = z
414
410
  .object({
415
411
  shared_data_objects: z
416
412
  .array(z.lazy(() => unmarshalSharedDataObjectSchema))
@@ -421,16 +417,23 @@ export const unmarshalGetListingContent_ResponseSchema = z
421
417
  sharedDataObjects: d.shared_data_objects,
422
418
  nextPageToken: d.next_page_token,
423
419
  }));
424
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
425
- export const unmarshalGetListingRequest_ResponseSchema = z
420
+ export const unmarshalGetListingResponseSchema = z
426
421
  .object({
427
422
  listing: z.lazy(() => unmarshalListingSchema).optional(),
428
423
  })
429
424
  .transform(d => ({
430
425
  listing: d.listing,
431
426
  }));
432
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
433
- export const unmarshalGetPersonalizationRequestsForConsumer_ResponseSchema = z
427
+ export const unmarshalGetListingsResponseSchema = z
428
+ .object({
429
+ listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
430
+ next_page_token: z.string().optional(),
431
+ })
432
+ .transform(d => ({
433
+ listings: d.listings,
434
+ nextPageToken: d.next_page_token,
435
+ }));
436
+ export const unmarshalGetPersonalizationRequestsForConsumerResponseSchema = z
434
437
  .object({
435
438
  personalization_requests: z
436
439
  .array(z.lazy(() => unmarshalPersonalizationRequestSchema))
@@ -439,8 +442,7 @@ export const unmarshalGetPersonalizationRequestsForConsumer_ResponseSchema = z
439
442
  .transform(d => ({
440
443
  personalizationRequests: d.personalization_requests,
441
444
  }));
442
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
443
- export const unmarshalGetPersonalizationRequestsForProviderRequest_ResponseSchema = z
445
+ export const unmarshalGetPersonalizationRequestsForProviderResponseSchema = z
444
446
  .object({
445
447
  personalization_requests: z
446
448
  .array(z.lazy(() => unmarshalPersonalizationRequestSchema))
@@ -451,37 +453,35 @@ export const unmarshalGetPersonalizationRequestsForProviderRequest_ResponseSchem
451
453
  personalizationRequests: d.personalization_requests,
452
454
  nextPageToken: d.next_page_token,
453
455
  }));
454
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
455
- export const unmarshalGetProviderRequest_ResponseSchema = z
456
+ export const unmarshalGetProviderResponseSchema = z
456
457
  .object({
457
458
  provider: z.lazy(() => unmarshalProviderInfoSchema).optional(),
458
459
  })
459
460
  .transform(d => ({
460
461
  provider: d.provider,
461
462
  }));
462
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
463
- export const unmarshalGetPublishedListingForConsumer_ResponseSchema = z
463
+ export const unmarshalGetPublishedListingForConsumerResponseSchema = z
464
464
  .object({
465
465
  listing: z.lazy(() => unmarshalListingSchema).optional(),
466
466
  })
467
467
  .transform(d => ({
468
468
  listing: d.listing,
469
469
  }));
470
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
471
- export const unmarshalGetPublishedProviderForConsumer_ResponseSchema = z
470
+ export const unmarshalGetPublishedListingsForConsumerResponseSchema = z
472
471
  .object({
473
- provider: z.lazy(() => unmarshalProviderInfoSchema).optional(),
472
+ listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
473
+ next_page_token: z.string().optional(),
474
474
  })
475
475
  .transform(d => ({
476
- provider: d.provider,
476
+ listings: d.listings,
477
+ nextPageToken: d.next_page_token,
477
478
  }));
478
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
479
- export const unmarshalInstallListing_ResponseSchema = z
479
+ export const unmarshalGetPublishedProviderForConsumerResponseSchema = z
480
480
  .object({
481
- installation: z.lazy(() => unmarshalInstallationDetailSchema).optional(),
481
+ provider: z.lazy(() => unmarshalProviderInfoSchema).optional(),
482
482
  })
483
483
  .transform(d => ({
484
- installation: d.installation,
484
+ provider: d.provider,
485
485
  }));
486
486
  export const unmarshalInstallationDetailSchema = z
487
487
  .object({
@@ -517,6 +517,17 @@ export const unmarshalInstallationDetailSchema = z
517
517
  tokens: d.tokens,
518
518
  tokenDetail: d.token_detail,
519
519
  }));
520
+ export const unmarshalListAllInstallationsResponseSchema = z
521
+ .object({
522
+ installations: z
523
+ .array(z.lazy(() => unmarshalInstallationDetailSchema))
524
+ .optional(),
525
+ next_page_token: z.string().optional(),
526
+ })
527
+ .transform(d => ({
528
+ installations: d.installations,
529
+ nextPageToken: d.next_page_token,
530
+ }));
520
531
  export const unmarshalListExchangeFiltersResponseSchema = z
521
532
  .object({
522
533
  filters: z.array(z.lazy(() => unmarshalExchangeFilterSchema)).optional(),
@@ -546,8 +557,7 @@ export const unmarshalListExchangesResponseSchema = z
546
557
  exchanges: d.exchanges,
547
558
  nextPageToken: d.next_page_token,
548
559
  }));
549
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
550
- export const unmarshalListFilesRequest_ResponseSchema = z
560
+ export const unmarshalListFilesResponseSchema = z
551
561
  .object({
552
562
  file_infos: z.array(z.lazy(() => unmarshalFileInfoSchema)).optional(),
553
563
  next_page_token: z.string().optional(),
@@ -556,28 +566,26 @@ export const unmarshalListFilesRequest_ResponseSchema = z
556
566
  fileInfos: d.file_infos,
557
567
  nextPageToken: d.next_page_token,
558
568
  }));
559
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
560
- export const unmarshalListInstallationsRequest_ResponseSchema = z
569
+ export const unmarshalListFulfillmentsResponseSchema = z
561
570
  .object({
562
- installations: z
563
- .array(z.lazy(() => unmarshalInstallationDetailSchema))
571
+ fulfillments: z
572
+ .array(z.lazy(() => unmarshalListingFulfillmentSchema))
564
573
  .optional(),
565
574
  next_page_token: z.string().optional(),
566
575
  })
567
576
  .transform(d => ({
568
- installations: d.installations,
577
+ fulfillments: d.fulfillments,
569
578
  nextPageToken: d.next_page_token,
570
579
  }));
571
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
572
- export const unmarshalListListingFulfillmentsRequest_ResponseSchema = z
580
+ export const unmarshalListInstallationsResponseSchema = z
573
581
  .object({
574
- fulfillments: z
575
- .array(z.lazy(() => unmarshalListingFulfillmentSchema))
582
+ installations: z
583
+ .array(z.lazy(() => unmarshalInstallationDetailSchema))
576
584
  .optional(),
577
585
  next_page_token: z.string().optional(),
578
586
  })
579
587
  .transform(d => ({
580
- fulfillments: d.fulfillments,
588
+ installations: d.installations,
581
589
  nextPageToken: d.next_page_token,
582
590
  }));
583
591
  export const unmarshalListListingsForExchangeResponseSchema = z
@@ -591,30 +599,7 @@ export const unmarshalListListingsForExchangeResponseSchema = z
591
599
  exchangeListings: d.exchange_listings,
592
600
  nextPageToken: d.next_page_token,
593
601
  }));
594
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
595
- export const unmarshalListListingsRequest_ResponseSchema = z
596
- .object({
597
- listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
598
- next_page_token: z.string().optional(),
599
- })
600
- .transform(d => ({
601
- listings: d.listings,
602
- nextPageToken: d.next_page_token,
603
- }));
604
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
605
- export const unmarshalListPersonalizationRequestsForConsumerRequest_ResponseSchema = z
606
- .object({
607
- personalization_requests: z
608
- .array(z.lazy(() => unmarshalPersonalizationRequestSchema))
609
- .optional(),
610
- next_page_token: z.string().optional(),
611
- })
612
- .transform(d => ({
613
- personalizationRequests: d.personalization_requests,
614
- nextPageToken: d.next_page_token,
615
- }));
616
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
617
- export const unmarshalListProviderAnalyticsDashboardRequest_ResponseSchema = z
602
+ export const unmarshalListProviderAnalyticsDashboardResponseSchema = z
618
603
  .object({
619
604
  id: z.string().optional(),
620
605
  version: z
@@ -628,8 +613,7 @@ export const unmarshalListProviderAnalyticsDashboardRequest_ResponseSchema = z
628
613
  version: d.version,
629
614
  dashboardId: d.dashboard_id,
630
615
  }));
631
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
632
- export const unmarshalListProvidersRequest_ResponseSchema = z
616
+ export const unmarshalListProvidersResponseSchema = z
633
617
  .object({
634
618
  providers: z.array(z.lazy(() => unmarshalProviderInfoSchema)).optional(),
635
619
  next_page_token: z.string().optional(),
@@ -638,18 +622,7 @@ export const unmarshalListProvidersRequest_ResponseSchema = z
638
622
  providers: d.providers,
639
623
  nextPageToken: d.next_page_token,
640
624
  }));
641
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
642
- export const unmarshalListPublishedListingsForConsumerRequest_ResponseSchema = z
643
- .object({
644
- listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
645
- next_page_token: z.string().optional(),
646
- })
647
- .transform(d => ({
648
- listings: d.listings,
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
625
+ export const unmarshalListPublishedProvidersForConsumerResponseSchema = z
653
626
  .object({
654
627
  providers: z.array(z.lazy(() => unmarshalProviderInfoSchema)).optional(),
655
628
  next_page_token: z.string().optional(),
@@ -904,8 +877,7 @@ export const unmarshalRepoInfoSchema = z
904
877
  .transform(d => ({
905
878
  gitRepoUrl: d.git_repo_url,
906
879
  }));
907
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
908
- export const unmarshalSearchPublishedListingsForConsumer_ResponseSchema = z
880
+ export const unmarshalSearchPublishedListingsForConsumerResponseSchema = z
909
881
  .object({
910
882
  listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
911
883
  next_page_token: z.string().optional(),
@@ -973,8 +945,6 @@ export const unmarshalTokenInfoSchema = z
973
945
  updatedAt: d.updated_at,
974
946
  updatedBy: d.updated_by,
975
947
  }));
976
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
977
- export const unmarshalUninstallListing_ResponseSchema = z.object({});
978
948
  export const unmarshalUpdateExchangeFilterResponseSchema = z
979
949
  .object({
980
950
  filter: z.lazy(() => unmarshalExchangeFilterSchema).optional(),
@@ -989,32 +959,28 @@ export const unmarshalUpdateExchangeResponseSchema = z
989
959
  .transform(d => ({
990
960
  exchange: d.exchange,
991
961
  }));
992
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
993
- export const unmarshalUpdateInstallationDetail_ResponseSchema = z
962
+ export const unmarshalUpdateInstallationResponseSchema = z
994
963
  .object({
995
964
  installation: z.lazy(() => unmarshalInstallationDetailSchema).optional(),
996
965
  })
997
966
  .transform(d => ({
998
967
  installation: d.installation,
999
968
  }));
1000
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1001
- export const unmarshalUpdateListingRequest_ResponseSchema = z
969
+ export const unmarshalUpdateListingResponseSchema = z
1002
970
  .object({
1003
971
  listing: z.lazy(() => unmarshalListingSchema).optional(),
1004
972
  })
1005
973
  .transform(d => ({
1006
974
  listing: d.listing,
1007
975
  }));
1008
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1009
- export const unmarshalUpdatePersonalizationRequestStatusRequest_ResponseSchema = z
976
+ export const unmarshalUpdatePersonalizationRequestStatusResponseSchema = z
1010
977
  .object({
1011
978
  request: z.lazy(() => unmarshalPersonalizationRequestSchema).optional(),
1012
979
  })
1013
980
  .transform(d => ({
1014
981
  request: d.request,
1015
982
  }));
1016
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1017
- export const unmarshalUpdateProviderAnalyticsDashboardRequest_ResponseSchema = z
983
+ export const unmarshalUpdateProviderAnalyticsDashboardResponseSchema = z
1018
984
  .object({
1019
985
  id: z.string().optional(),
1020
986
  version: z
@@ -1028,8 +994,7 @@ export const unmarshalUpdateProviderAnalyticsDashboardRequest_ResponseSchema = z
1028
994
  version: d.version,
1029
995
  dashboardId: d.dashboard_id,
1030
996
  }));
1031
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1032
- export const unmarshalUpdateProviderRequest_ResponseSchema = z
997
+ export const unmarshalUpdateProviderResponseSchema = z
1033
998
  .object({
1034
999
  provider: z.lazy(() => unmarshalProviderInfoSchema).optional(),
1035
1000
  })