@databricks/sdk-sharing 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/dist/v1/client.d.ts +8 -8
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +94 -94
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +1 -1
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/model.d.ts +52 -52
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +24 -24
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/utils.d.ts +1 -2
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +1 -1
- package/dist/v1/utils.js.map +1 -1
- package/package.json +4 -4
- package/src/v1/client.ts +138 -139
- package/src/v1/index.ts +4 -4
- package/src/v1/model.ts +84 -84
- package/src/v1/utils.ts +3 -3
package/src/v1/model.ts
CHANGED
|
@@ -385,62 +385,6 @@ export interface GetRecipientRequest {
|
|
|
385
385
|
name?: string | undefined;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
export interface GetRecipientSharePermissionsRequest {
|
|
389
|
-
/** The name of the Recipient. */
|
|
390
|
-
name?: string | undefined;
|
|
391
|
-
/**
|
|
392
|
-
* Maximum number of permissions to return.
|
|
393
|
-
* - when set to 0, the page length is set to a server configured value (recommended);
|
|
394
|
-
* - when set to a value greater than 0, the page length is the minimum of this value and a server configured value;
|
|
395
|
-
* - when set to a value less than 0, an invalid parameter error is returned;
|
|
396
|
-
* - If not set, all valid permissions are returned (not recommended).
|
|
397
|
-
* - Note: The number of returned permissions might be less than the specified max_results size, even zero.
|
|
398
|
-
* The only definitive indication that no further permissions can be fetched is when the next_page_token is unset from the response.
|
|
399
|
-
*/
|
|
400
|
-
maxResults?: number | undefined;
|
|
401
|
-
/** Opaque pagination token to go to next page based on previous query. */
|
|
402
|
-
pageToken?: string | undefined;
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
406
|
-
export interface GetRecipientSharePermissionsRequest_Response {
|
|
407
|
-
/** An array of data share permissions for a recipient. */
|
|
408
|
-
permissionsOut?: ShareToPrivilegeAssignment[] | undefined;
|
|
409
|
-
/**
|
|
410
|
-
* Opaque token to retrieve the next page of results. Absent if there are no more pages.
|
|
411
|
-
* __page_token__ should be set to this value for the next request (for the next page of results).
|
|
412
|
-
*/
|
|
413
|
-
nextPageToken?: string | undefined;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
|
-
export interface GetSharePermissionsRequest {
|
|
417
|
-
/** The name of the share. */
|
|
418
|
-
name?: string | undefined;
|
|
419
|
-
/**
|
|
420
|
-
* Maximum number of permissions to return.
|
|
421
|
-
* - when set to 0, the page length is set to a server configured value (recommended);
|
|
422
|
-
* - when set to a value greater than 0, the page length is the minimum of this value and a server configured value;
|
|
423
|
-
* - when set to a value less than 0, an invalid parameter error is returned;
|
|
424
|
-
* - If not set, all valid permissions are returned (not recommended).
|
|
425
|
-
* - Note: The number of returned permissions might be less than the specified max_results size, even zero.
|
|
426
|
-
* The only definitive indication that no further permissions can be fetched is when the next_page_token is unset from the response.
|
|
427
|
-
*/
|
|
428
|
-
maxResults?: number | undefined;
|
|
429
|
-
/** Opaque pagination token to go to next page based on previous query. */
|
|
430
|
-
pageToken?: string | undefined;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
434
|
-
export interface GetSharePermissionsRequest_Response {
|
|
435
|
-
/**
|
|
436
|
-
* Opaque token to retrieve the next page of results. Absent if there are no more pages.
|
|
437
|
-
* __page_token__ should be set to this value for the next request (for the next page of results).
|
|
438
|
-
*/
|
|
439
|
-
nextPageToken?: string | undefined;
|
|
440
|
-
/** The privileges assigned to each principal */
|
|
441
|
-
privilegeAssignments?: PrivilegeAssignment[] | undefined;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
388
|
export interface GetShareRequest {
|
|
445
389
|
/** The name of the share. */
|
|
446
390
|
name?: string | undefined;
|
|
@@ -554,6 +498,34 @@ export interface ListProvidersRequest_Response {
|
|
|
554
498
|
nextPageToken?: string | undefined;
|
|
555
499
|
}
|
|
556
500
|
|
|
501
|
+
export interface ListRecipientSharePermissionsRequest {
|
|
502
|
+
/** The name of the Recipient. */
|
|
503
|
+
name?: string | undefined;
|
|
504
|
+
/**
|
|
505
|
+
* Maximum number of permissions to return.
|
|
506
|
+
* - when set to 0, the page length is set to a server configured value (recommended);
|
|
507
|
+
* - when set to a value greater than 0, the page length is the minimum of this value and a server configured value;
|
|
508
|
+
* - when set to a value less than 0, an invalid parameter error is returned;
|
|
509
|
+
* - If not set, all valid permissions are returned (not recommended).
|
|
510
|
+
* - Note: The number of returned permissions might be less than the specified max_results size, even zero.
|
|
511
|
+
* The only definitive indication that no further permissions can be fetched is when the next_page_token is unset from the response.
|
|
512
|
+
*/
|
|
513
|
+
maxResults?: number | undefined;
|
|
514
|
+
/** Opaque pagination token to go to next page based on previous query. */
|
|
515
|
+
pageToken?: string | undefined;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
519
|
+
export interface ListRecipientSharePermissionsRequest_Response {
|
|
520
|
+
/** An array of data share permissions for a recipient. */
|
|
521
|
+
permissionsOut?: ShareToPrivilegeAssignment[] | undefined;
|
|
522
|
+
/**
|
|
523
|
+
* Opaque token to retrieve the next page of results. Absent if there are no more pages.
|
|
524
|
+
* __page_token__ should be set to this value for the next request (for the next page of results).
|
|
525
|
+
*/
|
|
526
|
+
nextPageToken?: string | undefined;
|
|
527
|
+
}
|
|
528
|
+
|
|
557
529
|
export interface ListRecipientsRequest {
|
|
558
530
|
/**
|
|
559
531
|
* If not provided, all recipients will be returned.
|
|
@@ -585,6 +557,34 @@ export interface ListRecipientsRequest_Response {
|
|
|
585
557
|
nextPageToken?: string | undefined;
|
|
586
558
|
}
|
|
587
559
|
|
|
560
|
+
export interface ListSharePermissionsRequest {
|
|
561
|
+
/** The name of the share. */
|
|
562
|
+
name?: string | undefined;
|
|
563
|
+
/**
|
|
564
|
+
* Maximum number of permissions to return.
|
|
565
|
+
* - when set to 0, the page length is set to a server configured value (recommended);
|
|
566
|
+
* - when set to a value greater than 0, the page length is the minimum of this value and a server configured value;
|
|
567
|
+
* - when set to a value less than 0, an invalid parameter error is returned;
|
|
568
|
+
* - If not set, all valid permissions are returned (not recommended).
|
|
569
|
+
* - Note: The number of returned permissions might be less than the specified max_results size, even zero.
|
|
570
|
+
* The only definitive indication that no further permissions can be fetched is when the next_page_token is unset from the response.
|
|
571
|
+
*/
|
|
572
|
+
maxResults?: number | undefined;
|
|
573
|
+
/** Opaque pagination token to go to next page based on previous query. */
|
|
574
|
+
pageToken?: string | undefined;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
578
|
+
export interface ListSharePermissionsRequest_Response {
|
|
579
|
+
/**
|
|
580
|
+
* Opaque token to retrieve the next page of results. Absent if there are no more pages.
|
|
581
|
+
* __page_token__ should be set to this value for the next request (for the next page of results).
|
|
582
|
+
*/
|
|
583
|
+
nextPageToken?: string | undefined;
|
|
584
|
+
/** The privileges assigned to each principal */
|
|
585
|
+
privilegeAssignments?: PrivilegeAssignment[] | undefined;
|
|
586
|
+
}
|
|
587
|
+
|
|
588
588
|
export interface ListSharesRequest {
|
|
589
589
|
/**
|
|
590
590
|
* Maximum number of shares to return.
|
|
@@ -1400,34 +1400,6 @@ export const unmarshalFunctionParameterInfosSchema: z.ZodType<FunctionParameterI
|
|
|
1400
1400
|
export const unmarshalGetActivationUrlInfoRequest_ResponseSchema: z.ZodType<GetActivationUrlInfoRequest_Response> =
|
|
1401
1401
|
z.object({});
|
|
1402
1402
|
|
|
1403
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1404
|
-
export const unmarshalGetRecipientSharePermissionsRequest_ResponseSchema: z.ZodType<GetRecipientSharePermissionsRequest_Response> =
|
|
1405
|
-
z
|
|
1406
|
-
.object({
|
|
1407
|
-
permissions_out: z
|
|
1408
|
-
.array(z.lazy(() => unmarshalShareToPrivilegeAssignmentSchema))
|
|
1409
|
-
.optional(),
|
|
1410
|
-
next_page_token: z.string().optional(),
|
|
1411
|
-
})
|
|
1412
|
-
.transform(d => ({
|
|
1413
|
-
permissionsOut: d.permissions_out,
|
|
1414
|
-
nextPageToken: d.next_page_token,
|
|
1415
|
-
}));
|
|
1416
|
-
|
|
1417
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1418
|
-
export const unmarshalGetSharePermissionsRequest_ResponseSchema: z.ZodType<GetSharePermissionsRequest_Response> =
|
|
1419
|
-
z
|
|
1420
|
-
.object({
|
|
1421
|
-
next_page_token: z.string().optional(),
|
|
1422
|
-
privilege_assignments: z
|
|
1423
|
-
.array(z.lazy(() => unmarshalPrivilegeAssignmentSchema))
|
|
1424
|
-
.optional(),
|
|
1425
|
-
})
|
|
1426
|
-
.transform(d => ({
|
|
1427
|
-
nextPageToken: d.next_page_token,
|
|
1428
|
-
privilegeAssignments: d.privilege_assignments,
|
|
1429
|
-
}));
|
|
1430
|
-
|
|
1431
1403
|
export const unmarshalIpAccessListSchema: z.ZodType<IpAccessList> = z
|
|
1432
1404
|
.object({
|
|
1433
1405
|
allowed_ip_addresses: z.array(z.string()).optional(),
|
|
@@ -1490,6 +1462,20 @@ export const unmarshalListProvidersRequest_ResponseSchema: z.ZodType<ListProvide
|
|
|
1490
1462
|
nextPageToken: d.next_page_token,
|
|
1491
1463
|
}));
|
|
1492
1464
|
|
|
1465
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1466
|
+
export const unmarshalListRecipientSharePermissionsRequest_ResponseSchema: z.ZodType<ListRecipientSharePermissionsRequest_Response> =
|
|
1467
|
+
z
|
|
1468
|
+
.object({
|
|
1469
|
+
permissions_out: z
|
|
1470
|
+
.array(z.lazy(() => unmarshalShareToPrivilegeAssignmentSchema))
|
|
1471
|
+
.optional(),
|
|
1472
|
+
next_page_token: z.string().optional(),
|
|
1473
|
+
})
|
|
1474
|
+
.transform(d => ({
|
|
1475
|
+
permissionsOut: d.permissions_out,
|
|
1476
|
+
nextPageToken: d.next_page_token,
|
|
1477
|
+
}));
|
|
1478
|
+
|
|
1493
1479
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1494
1480
|
export const unmarshalListRecipientsRequest_ResponseSchema: z.ZodType<ListRecipientsRequest_Response> =
|
|
1495
1481
|
z
|
|
@@ -1504,6 +1490,20 @@ export const unmarshalListRecipientsRequest_ResponseSchema: z.ZodType<ListRecipi
|
|
|
1504
1490
|
nextPageToken: d.next_page_token,
|
|
1505
1491
|
}));
|
|
1506
1492
|
|
|
1493
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1494
|
+
export const unmarshalListSharePermissionsRequest_ResponseSchema: z.ZodType<ListSharePermissionsRequest_Response> =
|
|
1495
|
+
z
|
|
1496
|
+
.object({
|
|
1497
|
+
next_page_token: z.string().optional(),
|
|
1498
|
+
privilege_assignments: z
|
|
1499
|
+
.array(z.lazy(() => unmarshalPrivilegeAssignmentSchema))
|
|
1500
|
+
.optional(),
|
|
1501
|
+
})
|
|
1502
|
+
.transform(d => ({
|
|
1503
|
+
nextPageToken: d.next_page_token,
|
|
1504
|
+
privilegeAssignments: d.privilege_assignments,
|
|
1505
|
+
}));
|
|
1506
|
+
|
|
1507
1507
|
// eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
|
|
1508
1508
|
export const unmarshalListSharesRequest_ResponseSchema: z.ZodType<ListSharesRequest_Response> =
|
|
1509
1509
|
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 {
|
|
4
|
-
import {execute} from '@databricks/sdk-core/
|
|
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:
|
|
33
|
+
call: (signal?: AbortSignal) => Promise<void>,
|
|
34
34
|
options?: CallOptions
|
|
35
35
|
): Promise<void> {
|
|
36
36
|
const opts: Options = {
|