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

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/src/v1/index.ts CHANGED
@@ -61,10 +61,6 @@ export type {
61
61
  ExchangeListing,
62
62
  FileInfo,
63
63
  FileParent,
64
- GetAllInstallations,
65
- GetAllInstallations_Response,
66
- GetAllPersonalizationRequestsForConsumer,
67
- GetAllPersonalizationRequestsForConsumer_Response,
68
64
  GetExchangeRequest,
69
65
  GetExchangeResponse,
70
66
  GetFileRequest,
@@ -75,12 +71,8 @@ export type {
75
71
  GetLatestVersionProviderAnalyticsDashboardRequest_Response,
76
72
  GetListingContent,
77
73
  GetListingContent_Response,
78
- GetListingFulfillments,
79
- GetListingFulfillments_Response,
80
74
  GetListingRequest,
81
75
  GetListingRequest_Response,
82
- GetListingsRequest,
83
- GetListingsRequest_Response,
84
76
  GetPersonalizationRequestsForConsumer,
85
77
  GetPersonalizationRequestsForConsumer_Response,
86
78
  GetPersonalizationRequestsForProviderRequest,
@@ -89,8 +81,6 @@ export type {
89
81
  GetProviderRequest_Response,
90
82
  GetPublishedListingForConsumer,
91
83
  GetPublishedListingForConsumer_Response,
92
- GetPublishedListingsForConsumer,
93
- GetPublishedListingsForConsumer_Response,
94
84
  GetPublishedProviderForConsumer,
95
85
  GetPublishedProviderForConsumer_Response,
96
86
  InstallListing,
@@ -104,12 +94,22 @@ export type {
104
94
  ListExchangesResponse,
105
95
  ListFilesRequest,
106
96
  ListFilesRequest_Response,
97
+ ListInstallationsRequest,
98
+ ListInstallationsRequest_Response,
99
+ ListListingFulfillmentsRequest,
100
+ ListListingFulfillmentsRequest_Response,
107
101
  ListListingsForExchangeRequest,
108
102
  ListListingsForExchangeResponse,
103
+ ListListingsRequest,
104
+ ListListingsRequest_Response,
105
+ ListPersonalizationRequestsForConsumerRequest,
106
+ ListPersonalizationRequestsForConsumerRequest_Response,
109
107
  ListProviderAnalyticsDashboardRequest,
110
108
  ListProviderAnalyticsDashboardRequest_Response,
111
109
  ListProvidersRequest,
112
110
  ListProvidersRequest_Response,
111
+ ListPublishedListingsForConsumerRequest,
112
+ ListPublishedListingsForConsumerRequest_Response,
113
113
  ListPublishedProvidersForConsumer,
114
114
  ListPublishedProvidersForConsumer_Response,
115
115
  Listing,
package/src/v1/model.ts CHANGED
@@ -348,28 +348,6 @@ export interface FileParent {
348
348
  fileParentType?: FileParentType | undefined;
349
349
  }
350
350
 
351
- export interface GetAllInstallations {
352
- pageToken?: string | undefined;
353
- pageSize?: number | undefined;
354
- }
355
-
356
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
357
- export interface GetAllInstallations_Response {
358
- installations?: InstallationDetail[] | undefined;
359
- nextPageToken?: string | undefined;
360
- }
361
-
362
- export interface GetAllPersonalizationRequestsForConsumer {
363
- pageToken?: string | undefined;
364
- pageSize?: number | undefined;
365
- }
366
-
367
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
368
- export interface GetAllPersonalizationRequestsForConsumer_Response {
369
- personalizationRequests?: PersonalizationRequest[] | undefined;
370
- nextPageToken?: string | undefined;
371
- }
372
-
373
351
  export interface GetExchangeRequest {
374
352
  id?: string | undefined;
375
353
  }
@@ -424,18 +402,6 @@ export interface GetListingContent_Response {
424
402
  nextPageToken?: string | undefined;
425
403
  }
426
404
 
427
- export interface GetListingFulfillments {
428
- listingId?: string | undefined;
429
- pageToken?: string | undefined;
430
- pageSize?: number | undefined;
431
- }
432
-
433
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
434
- export interface GetListingFulfillments_Response {
435
- fulfillments?: ListingFulfillment[] | undefined;
436
- nextPageToken?: string | undefined;
437
- }
438
-
439
405
  export interface GetListingRequest {
440
406
  id?: string | undefined;
441
407
  }
@@ -445,17 +411,6 @@ export interface GetListingRequest_Response {
445
411
  listing?: Listing | undefined;
446
412
  }
447
413
 
448
- export interface GetListingsRequest {
449
- pageToken?: string | undefined;
450
- pageSize?: number | undefined;
451
- }
452
-
453
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
454
- export interface GetListingsRequest_Response {
455
- listings?: Listing[] | undefined;
456
- nextPageToken?: string | undefined;
457
- }
458
-
459
414
  export interface GetPersonalizationRequestsForConsumer {
460
415
  listingId?: string | undefined;
461
416
  }
@@ -494,32 +449,6 @@ export interface GetPublishedListingForConsumer_Response {
494
449
  listing?: Listing | undefined;
495
450
  }
496
451
 
497
- /** Listing messages */
498
- export interface GetPublishedListingsForConsumer {
499
- pageToken?: string | undefined;
500
- pageSize?: number | undefined;
501
- /** Matches any of the following asset types */
502
- assets?: AssetType[] | undefined;
503
- /** Matches any of the following categories */
504
- categories?: Category[] | undefined;
505
- /** Matches listings with this tag */
506
- tags?: ListingTag | undefined;
507
- /** Filters each listing based on if it is free. */
508
- isFree?: boolean | undefined;
509
- /** Filters each listing based on if it is a private exchange. */
510
- isPrivateExchange?: boolean | undefined;
511
- /** Filters each listing based on whether it is a staff pick. */
512
- isStaffPick?: boolean | undefined;
513
- /** Matches any of the following provider ids */
514
- providerIds?: string[] | undefined;
515
- }
516
-
517
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
518
- export interface GetPublishedListingsForConsumer_Response {
519
- listings?: Listing[] | undefined;
520
- nextPageToken?: string | undefined;
521
- }
522
-
523
452
  export interface GetPublishedProviderForConsumer {
524
453
  id?: string | undefined;
525
454
  }
@@ -604,6 +533,29 @@ export interface ListFilesRequest_Response {
604
533
  nextPageToken?: string | undefined;
605
534
  }
606
535
 
536
+ export interface ListInstallationsRequest {
537
+ pageToken?: string | undefined;
538
+ pageSize?: number | undefined;
539
+ }
540
+
541
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
542
+ export interface ListInstallationsRequest_Response {
543
+ installations?: InstallationDetail[] | undefined;
544
+ nextPageToken?: string | undefined;
545
+ }
546
+
547
+ export interface ListListingFulfillmentsRequest {
548
+ listingId?: string | undefined;
549
+ pageToken?: string | undefined;
550
+ pageSize?: number | undefined;
551
+ }
552
+
553
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
554
+ export interface ListListingFulfillmentsRequest_Response {
555
+ fulfillments?: ListingFulfillment[] | undefined;
556
+ nextPageToken?: string | undefined;
557
+ }
558
+
607
559
  export interface ListListingsForExchangeRequest {
608
560
  exchangeId?: string | undefined;
609
561
  pageToken?: string | undefined;
@@ -615,6 +567,28 @@ export interface ListListingsForExchangeResponse {
615
567
  nextPageToken?: string | undefined;
616
568
  }
617
569
 
570
+ export interface ListListingsRequest {
571
+ pageToken?: string | undefined;
572
+ pageSize?: number | undefined;
573
+ }
574
+
575
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
576
+ export interface ListListingsRequest_Response {
577
+ listings?: Listing[] | undefined;
578
+ nextPageToken?: string | undefined;
579
+ }
580
+
581
+ export interface ListPersonalizationRequestsForConsumerRequest {
582
+ pageToken?: string | undefined;
583
+ pageSize?: number | undefined;
584
+ }
585
+
586
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
587
+ export interface ListPersonalizationRequestsForConsumerRequest_Response {
588
+ personalizationRequests?: PersonalizationRequest[] | undefined;
589
+ nextPageToken?: string | undefined;
590
+ }
591
+
618
592
  // eslint-disable-next-line @typescript-eslint/no-empty-object-type
619
593
  export interface ListProviderAnalyticsDashboardRequest {}
620
594
 
@@ -637,6 +611,32 @@ export interface ListProvidersRequest_Response {
637
611
  nextPageToken?: string | undefined;
638
612
  }
639
613
 
614
+ /** Listing messages */
615
+ export interface ListPublishedListingsForConsumerRequest {
616
+ pageToken?: string | undefined;
617
+ pageSize?: number | undefined;
618
+ /** Matches any of the following asset types */
619
+ assets?: AssetType[] | undefined;
620
+ /** Matches any of the following categories */
621
+ categories?: Category[] | undefined;
622
+ /** Matches listings with this tag */
623
+ tags?: ListingTag | undefined;
624
+ /** Filters each listing based on if it is free. */
625
+ isFree?: boolean | undefined;
626
+ /** Filters each listing based on if it is a private exchange. */
627
+ isPrivateExchange?: boolean | undefined;
628
+ /** Filters each listing based on whether it is a staff pick. */
629
+ isStaffPick?: boolean | undefined;
630
+ /** Matches any of the following provider ids */
631
+ providerIds?: string[] | undefined;
632
+ }
633
+
634
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
635
+ export interface ListPublishedListingsForConsumerRequest_Response {
636
+ listings?: Listing[] | undefined;
637
+ nextPageToken?: string | undefined;
638
+ }
639
+
640
640
  export interface ListPublishedProvidersForConsumer {
641
641
  pageToken?: string | undefined;
642
642
  pageSize?: number | undefined;
@@ -1240,34 +1240,6 @@ export const unmarshalFileParentSchema: z.ZodType<FileParent> = z
1240
1240
  fileParentType: d.file_parent_type,
1241
1241
  }));
1242
1242
 
1243
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1244
- export const unmarshalGetAllInstallations_ResponseSchema: z.ZodType<GetAllInstallations_Response> =
1245
- z
1246
- .object({
1247
- installations: z
1248
- .array(z.lazy(() => unmarshalInstallationDetailSchema))
1249
- .optional(),
1250
- next_page_token: z.string().optional(),
1251
- })
1252
- .transform(d => ({
1253
- installations: d.installations,
1254
- nextPageToken: d.next_page_token,
1255
- }));
1256
-
1257
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1258
- export const unmarshalGetAllPersonalizationRequestsForConsumer_ResponseSchema: z.ZodType<GetAllPersonalizationRequestsForConsumer_Response> =
1259
- z
1260
- .object({
1261
- personalization_requests: z
1262
- .array(z.lazy(() => unmarshalPersonalizationRequestSchema))
1263
- .optional(),
1264
- next_page_token: z.string().optional(),
1265
- })
1266
- .transform(d => ({
1267
- personalizationRequests: d.personalization_requests,
1268
- nextPageToken: d.next_page_token,
1269
- }));
1270
-
1271
1243
  export const unmarshalGetExchangeResponseSchema: z.ZodType<GetExchangeResponse> =
1272
1244
  z
1273
1245
  .object({
@@ -1328,20 +1300,6 @@ export const unmarshalGetListingContent_ResponseSchema: z.ZodType<GetListingCont
1328
1300
  nextPageToken: d.next_page_token,
1329
1301
  }));
1330
1302
 
1331
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1332
- export const unmarshalGetListingFulfillments_ResponseSchema: z.ZodType<GetListingFulfillments_Response> =
1333
- z
1334
- .object({
1335
- fulfillments: z
1336
- .array(z.lazy(() => unmarshalListingFulfillmentSchema))
1337
- .optional(),
1338
- next_page_token: z.string().optional(),
1339
- })
1340
- .transform(d => ({
1341
- fulfillments: d.fulfillments,
1342
- nextPageToken: d.next_page_token,
1343
- }));
1344
-
1345
1303
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1346
1304
  export const unmarshalGetListingRequest_ResponseSchema: z.ZodType<GetListingRequest_Response> =
1347
1305
  z
@@ -1352,18 +1310,6 @@ export const unmarshalGetListingRequest_ResponseSchema: z.ZodType<GetListingRequ
1352
1310
  listing: d.listing,
1353
1311
  }));
1354
1312
 
1355
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1356
- export const unmarshalGetListingsRequest_ResponseSchema: z.ZodType<GetListingsRequest_Response> =
1357
- z
1358
- .object({
1359
- listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
1360
- next_page_token: z.string().optional(),
1361
- })
1362
- .transform(d => ({
1363
- listings: d.listings,
1364
- nextPageToken: d.next_page_token,
1365
- }));
1366
-
1367
1313
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1368
1314
  export const unmarshalGetPersonalizationRequestsForConsumer_ResponseSchema: z.ZodType<GetPersonalizationRequestsForConsumer_Response> =
1369
1315
  z
@@ -1410,18 +1356,6 @@ export const unmarshalGetPublishedListingForConsumer_ResponseSchema: z.ZodType<G
1410
1356
  listing: d.listing,
1411
1357
  }));
1412
1358
 
1413
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1414
- export const unmarshalGetPublishedListingsForConsumer_ResponseSchema: z.ZodType<GetPublishedListingsForConsumer_Response> =
1415
- z
1416
- .object({
1417
- listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
1418
- next_page_token: z.string().optional(),
1419
- })
1420
- .transform(d => ({
1421
- listings: d.listings,
1422
- nextPageToken: d.next_page_token,
1423
- }));
1424
-
1425
1359
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1426
1360
  export const unmarshalGetPublishedProviderForConsumer_ResponseSchema: z.ZodType<GetPublishedProviderForConsumer_Response> =
1427
1361
  z
@@ -1525,6 +1459,34 @@ export const unmarshalListFilesRequest_ResponseSchema: z.ZodType<ListFilesReques
1525
1459
  nextPageToken: d.next_page_token,
1526
1460
  }));
1527
1461
 
1462
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1463
+ export const unmarshalListInstallationsRequest_ResponseSchema: z.ZodType<ListInstallationsRequest_Response> =
1464
+ z
1465
+ .object({
1466
+ installations: z
1467
+ .array(z.lazy(() => unmarshalInstallationDetailSchema))
1468
+ .optional(),
1469
+ next_page_token: z.string().optional(),
1470
+ })
1471
+ .transform(d => ({
1472
+ installations: d.installations,
1473
+ nextPageToken: d.next_page_token,
1474
+ }));
1475
+
1476
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1477
+ export const unmarshalListListingFulfillmentsRequest_ResponseSchema: z.ZodType<ListListingFulfillmentsRequest_Response> =
1478
+ z
1479
+ .object({
1480
+ fulfillments: z
1481
+ .array(z.lazy(() => unmarshalListingFulfillmentSchema))
1482
+ .optional(),
1483
+ next_page_token: z.string().optional(),
1484
+ })
1485
+ .transform(d => ({
1486
+ fulfillments: d.fulfillments,
1487
+ nextPageToken: d.next_page_token,
1488
+ }));
1489
+
1528
1490
  export const unmarshalListListingsForExchangeResponseSchema: z.ZodType<ListListingsForExchangeResponse> =
1529
1491
  z
1530
1492
  .object({
@@ -1538,6 +1500,32 @@ export const unmarshalListListingsForExchangeResponseSchema: z.ZodType<ListListi
1538
1500
  nextPageToken: d.next_page_token,
1539
1501
  }));
1540
1502
 
1503
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1504
+ export const unmarshalListListingsRequest_ResponseSchema: z.ZodType<ListListingsRequest_Response> =
1505
+ z
1506
+ .object({
1507
+ listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
1508
+ next_page_token: z.string().optional(),
1509
+ })
1510
+ .transform(d => ({
1511
+ listings: d.listings,
1512
+ nextPageToken: d.next_page_token,
1513
+ }));
1514
+
1515
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1516
+ export const unmarshalListPersonalizationRequestsForConsumerRequest_ResponseSchema: z.ZodType<ListPersonalizationRequestsForConsumerRequest_Response> =
1517
+ z
1518
+ .object({
1519
+ personalization_requests: z
1520
+ .array(z.lazy(() => unmarshalPersonalizationRequestSchema))
1521
+ .optional(),
1522
+ next_page_token: z.string().optional(),
1523
+ })
1524
+ .transform(d => ({
1525
+ personalizationRequests: d.personalization_requests,
1526
+ nextPageToken: d.next_page_token,
1527
+ }));
1528
+
1541
1529
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1542
1530
  export const unmarshalListProviderAnalyticsDashboardRequest_ResponseSchema: z.ZodType<ListProviderAnalyticsDashboardRequest_Response> =
1543
1531
  z
@@ -1567,6 +1555,18 @@ export const unmarshalListProvidersRequest_ResponseSchema: z.ZodType<ListProvide
1567
1555
  nextPageToken: d.next_page_token,
1568
1556
  }));
1569
1557
 
1558
+ // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1559
+ export const unmarshalListPublishedListingsForConsumerRequest_ResponseSchema: z.ZodType<ListPublishedListingsForConsumerRequest_Response> =
1560
+ z
1561
+ .object({
1562
+ listings: z.array(z.lazy(() => unmarshalListingSchema)).optional(),
1563
+ next_page_token: z.string().optional(),
1564
+ })
1565
+ .transform(d => ({
1566
+ listings: d.listings,
1567
+ nextPageToken: d.next_page_token,
1568
+ }));
1569
+
1570
1570
  // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1571
1571
  export const unmarshalListPublishedProvidersForConsumer_ResponseSchema: z.ZodType<ListPublishedProvidersForConsumer_Response> =
1572
1572
  z
package/src/v1/utils.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
2
2
 
3
- import type {Call, Options} from '@databricks/sdk-core/api';
4
- import {execute} from '@databricks/sdk-core/api';
3
+ import type {Options} from '@databricks/sdk-core/ops';
4
+ import {execute} from '@databricks/sdk-core/ops';
5
5
  import {ApiError} from '@databricks/sdk-core/apierror';
6
6
  import type {
7
7
  HttpClient,
@@ -30,7 +30,7 @@ export interface HttpCallOptions {
30
30
  * API from the executor's internal type so they can diverge.
31
31
  */
32
32
  export async function executeCall(
33
- call: Call,
33
+ call: (signal?: AbortSignal) => Promise<void>,
34
34
  options?: CallOptions
35
35
  ): Promise<void> {
36
36
  const opts: Options = {