@databricks/sdk-marketplaces 0.8.0 → 0.10.0

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.
Files changed (2) hide show
  1. package/dist/v1/client.js +15 -15
  2. package/package.json +4 -4
package/dist/v1/client.js CHANGED
@@ -100,7 +100,7 @@ export class MarketplacesClient {
100
100
  /** Create a personalization request for a listing. */
101
101
  async createPersonalizationRequest(req, options) {
102
102
  const { host, workspaceId, httpClient } = await this.resolveConfig();
103
- const url = `${host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/personalization-requests`;
103
+ const url = `${host}/api/2.1/marketplace-consumer/listings/${req.listingId ?? ''}/personalization-requests`;
104
104
  const body = marshalRequest(req, marshalCreatePersonalizationRequestSchema);
105
105
  let resp;
106
106
  const call = async (callSignal) => {
@@ -126,7 +126,7 @@ export class MarketplacesClient {
126
126
  /** List all installations for a particular listing. */
127
127
  async getInstallationDetails(req, options) {
128
128
  const { host, workspaceId, httpClient } = await this.resolveConfig();
129
- const url = `${host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations`;
129
+ const url = `${host}/api/2.1/marketplace-consumer/listings/${req.listingId ?? ''}/installations`;
130
130
  const params = new URLSearchParams();
131
131
  if (req.pageToken !== undefined) {
132
132
  params.append('page_token', req.pageToken);
@@ -173,7 +173,7 @@ export class MarketplacesClient {
173
173
  /** Get a high level preview of the metadata of listing installable content. */
174
174
  async getListingContent(req, options) {
175
175
  const { host, workspaceId, httpClient } = await this.resolveConfig();
176
- const url = `${host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/content`;
176
+ const url = `${host}/api/2.1/marketplace-consumer/listings/${req.listingId ?? ''}/content`;
177
177
  const params = new URLSearchParams();
178
178
  if (req.pageToken !== undefined) {
179
179
  params.append('page_token', req.pageToken);
@@ -220,7 +220,7 @@ export class MarketplacesClient {
220
220
  /** Get the personalization request for a listing. Each consumer can make at *most* one personalization request for a listing. */
221
221
  async getPersonalizationRequestsForConsumer(req, options) {
222
222
  const { host, workspaceId, httpClient } = await this.resolveConfig();
223
- const url = `${host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/personalization-requests`;
223
+ const url = `${host}/api/2.1/marketplace-consumer/listings/${req.listingId ?? ''}/personalization-requests`;
224
224
  let resp;
225
225
  const call = async (callSignal) => {
226
226
  const headers = new Headers();
@@ -245,7 +245,7 @@ export class MarketplacesClient {
245
245
  /** Get a published listing in the Databricks Marketplace that the consumer has access to. */
246
246
  async getPublishedListingForConsumer(req, options) {
247
247
  const { host, workspaceId, httpClient } = await this.resolveConfig();
248
- const url = `${host}/api/2.0/marketplace-consumer/listings/${req.id ?? ''}`;
248
+ const url = `${host}/api/2.1/marketplace-consumer/listings/${req.id ?? ''}`;
249
249
  let resp;
250
250
  const call = async (callSignal) => {
251
251
  const headers = new Headers();
@@ -270,7 +270,7 @@ export class MarketplacesClient {
270
270
  /** Get a provider in the Databricks Marketplace with at least one visible listing. */
271
271
  async getPublishedProviderForConsumer(req, options) {
272
272
  const { host, workspaceId, httpClient } = await this.resolveConfig();
273
- const url = `${host}/api/2.0/marketplace-consumer/providers/${req.id ?? ''}`;
273
+ const url = `${host}/api/2.1/marketplace-consumer/providers/${req.id ?? ''}`;
274
274
  let resp;
275
275
  const call = async (callSignal) => {
276
276
  const headers = new Headers();
@@ -295,7 +295,7 @@ export class MarketplacesClient {
295
295
  /** Install payload associated with a Databricks Marketplace listing. */
296
296
  async installListing(req, options) {
297
297
  const { host, workspaceId, httpClient } = await this.resolveConfig();
298
- const url = `${host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations`;
298
+ const url = `${host}/api/2.1/marketplace-consumer/listings/${req.listingId ?? ''}/installations`;
299
299
  const body = marshalRequest(req, marshalCreateInstallationRequestSchema);
300
300
  let resp;
301
301
  const call = async (callSignal) => {
@@ -321,7 +321,7 @@ export class MarketplacesClient {
321
321
  /** List all installations across all listings. */
322
322
  async listInstallations(req, options) {
323
323
  const { host, workspaceId, httpClient } = await this.resolveConfig();
324
- const url = `${host}/api/2.0/marketplace-consumer/installations`;
324
+ const url = `${host}/api/2.1/marketplace-consumer/installations`;
325
325
  const params = new URLSearchParams();
326
326
  if (req.pageToken !== undefined) {
327
327
  params.append('page_token', req.pageToken);
@@ -372,7 +372,7 @@ export class MarketplacesClient {
372
372
  */
373
373
  async listListingFulfillments(req, options) {
374
374
  const { host, workspaceId, httpClient } = await this.resolveConfig();
375
- const url = `${host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/fulfillments`;
375
+ const url = `${host}/api/2.1/marketplace-consumer/listings/${req.listingId ?? ''}/fulfillments`;
376
376
  const params = new URLSearchParams();
377
377
  if (req.pageToken !== undefined) {
378
378
  params.append('page_token', req.pageToken);
@@ -419,7 +419,7 @@ export class MarketplacesClient {
419
419
  /** List personalization requests for a consumer across all listings. */
420
420
  async listPersonalizationRequestsForConsumer(req, options) {
421
421
  const { host, workspaceId, httpClient } = await this.resolveConfig();
422
- const url = `${host}/api/2.0/marketplace-consumer/personalization-requests`;
422
+ const url = `${host}/api/2.1/marketplace-consumer/personalization-requests`;
423
423
  const params = new URLSearchParams();
424
424
  if (req.pageToken !== undefined) {
425
425
  params.append('page_token', req.pageToken);
@@ -466,7 +466,7 @@ export class MarketplacesClient {
466
466
  /** List all published listings in the Databricks Marketplace that the consumer has access to. */
467
467
  async listPublishedListingsForConsumer(req, options) {
468
468
  const { host, workspaceId, httpClient } = await this.resolveConfig();
469
- const url = `${host}/api/2.0/marketplace-consumer/listings`;
469
+ const url = `${host}/api/2.1/marketplace-consumer/listings`;
470
470
  const params = new URLSearchParams();
471
471
  if (req.pageToken !== undefined) {
472
472
  params.append('page_token', req.pageToken);
@@ -534,7 +534,7 @@ export class MarketplacesClient {
534
534
  /** List all providers in the Databricks Marketplace with at least one visible listing. */
535
535
  async listPublishedProvidersForConsumer(req, options) {
536
536
  const { host, workspaceId, httpClient } = await this.resolveConfig();
537
- const url = `${host}/api/2.0/marketplace-consumer/providers`;
537
+ const url = `${host}/api/2.1/marketplace-consumer/providers`;
538
538
  const params = new URLSearchParams();
539
539
  if (req.pageToken !== undefined) {
540
540
  params.append('page_token', req.pageToken);
@@ -587,7 +587,7 @@ export class MarketplacesClient {
587
587
  */
588
588
  async searchPublishedListingsForConsumer(req, options) {
589
589
  const { host, workspaceId, httpClient } = await this.resolveConfig();
590
- const url = `${host}/api/2.0/marketplace-consumer/search-listings`;
590
+ const url = `${host}/api/2.1/marketplace-consumer/search-listings`;
591
591
  const params = new URLSearchParams();
592
592
  if (req.query !== undefined) {
593
593
  params.append('query', req.query);
@@ -652,7 +652,7 @@ export class MarketplacesClient {
652
652
  /** Uninstall an installation associated with a Databricks Marketplace listing. */
653
653
  async uninstallListing(req, options) {
654
654
  const { host, workspaceId, httpClient } = await this.resolveConfig();
655
- const url = `${host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations/${req.installationId ?? ''}`;
655
+ const url = `${host}/api/2.1/marketplace-consumer/listings/${req.listingId ?? ''}/installations/${req.installationId ?? ''}`;
656
656
  let resp;
657
657
  const call = async (callSignal) => {
658
658
  const headers = new Headers();
@@ -682,7 +682,7 @@ export class MarketplacesClient {
682
682
  */
683
683
  async updateInstallationDetail(req, options) {
684
684
  const { host, workspaceId, httpClient } = await this.resolveConfig();
685
- const url = `${host}/api/2.0/marketplace-consumer/listings/${req.listingId ?? ''}/installations/${req.installationId ?? ''}`;
685
+ const url = `${host}/api/2.1/marketplace-consumer/listings/${req.listingId ?? ''}/installations/${req.installationId ?? ''}`;
686
686
  const body = marshalRequest(req, marshalUpdateInstallationRequestSchema);
687
687
  let resp;
688
688
  const call = async (callSignal) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databricks/sdk-marketplaces",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "exports": {
@@ -33,9 +33,9 @@
33
33
  "directory": "packages/marketplaces"
34
34
  },
35
35
  "dependencies": {
36
- "@databricks/sdk-auth": ">=0.8.0 <1.0.0",
37
- "@databricks/sdk-core": ">=0.8.0 <1.0.0",
38
- "@databricks/sdk-options": ">=0.8.0 <1.0.0",
36
+ "@databricks/sdk-auth": ">=0.10.0 <1.0.0",
37
+ "@databricks/sdk-core": ">=0.10.0 <1.0.0",
38
+ "@databricks/sdk-options": ">=0.10.0 <1.0.0",
39
39
  "@js-temporal/polyfill": "^0.5.0",
40
40
  "json-bigint": "^1.0.0",
41
41
  "zod": "^4.3.6"