@databricks/sdk-sharing 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/src/v1/model.ts CHANGED
@@ -230,24 +230,24 @@ export interface DeleteProviderRequest {
230
230
  nameArg?: string | undefined;
231
231
  }
232
232
 
233
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
234
- export interface DeleteProviderRequest_Response {}
233
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
234
+ export interface DeleteProviderResponse {}
235
235
 
236
236
  export interface DeleteRecipientRequest {
237
237
  /** Name of the recipient. */
238
238
  name?: string | undefined;
239
239
  }
240
240
 
241
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
242
- export interface DeleteRecipientRequest_Response {}
241
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
242
+ export interface DeleteRecipientResponse {}
243
243
 
244
244
  export interface DeleteShareRequest {
245
245
  /** The name of the share. */
246
246
  name?: string | undefined;
247
247
  }
248
248
 
249
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
250
- export interface DeleteShareRequest_Response {}
249
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
250
+ export interface DeleteShareResponse {}
251
251
 
252
252
  /** Represents a UC dependency. */
253
253
  export interface Dependency {
@@ -365,8 +365,8 @@ export interface GetActivationUrlInfoRequest {
365
365
  activationUrl?: string | undefined;
366
366
  }
367
367
 
368
- // eslint-disable-next-line @typescript-eslint/naming-convention, @typescript-eslint/no-empty-object-type -- Proto-style nested message name.
369
- export interface GetActivationUrlInfoRequest_Response {}
368
+ // eslint-disable-next-line @typescript-eslint/no-empty-object-type
369
+ export interface GetActivationUrlInfoResponse {}
370
370
 
371
371
  export interface GetFederationPolicyRequest {
372
372
  /** Name of the recipient. This is the name of the recipient for which the policy is being retrieved. */
@@ -385,6 +385,26 @@ export interface GetRecipientRequest {
385
385
  name?: string | undefined;
386
386
  }
387
387
 
388
+ export interface GetRecipientSharePermissionsResponse {
389
+ /** An array of data share permissions for a recipient. */
390
+ permissionsOut?: ShareToPrivilegeAssignment[] | undefined;
391
+ /**
392
+ * Opaque token to retrieve the next page of results. Absent if there are no more pages.
393
+ * __page_token__ should be set to this value for the next request (for the next page of results).
394
+ */
395
+ nextPageToken?: string | undefined;
396
+ }
397
+
398
+ export interface GetSharePermissionsResponse {
399
+ /**
400
+ * Opaque token to retrieve the next page of results. Absent if there are no more pages.
401
+ * __page_token__ should be set to this value for the next request (for the next page of results).
402
+ */
403
+ nextPageToken?: string | undefined;
404
+ /** The privileges assigned to each principal */
405
+ privilegeAssignments?: PrivilegeAssignment[] | undefined;
406
+ }
407
+
388
408
  export interface GetShareRequest {
389
409
  /** The name of the share. */
390
410
  name?: string | undefined;
@@ -456,8 +476,7 @@ export interface ListProviderSharesRequest {
456
476
  pageToken?: string | undefined;
457
477
  }
458
478
 
459
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
460
- export interface ListProviderSharesRequest_Response {
479
+ export interface ListProviderSharesResponse {
461
480
  /** An array of provider shares. */
462
481
  shares?: ProviderShare[] | undefined;
463
482
  /**
@@ -487,8 +506,7 @@ export interface ListProvidersRequest {
487
506
  pageToken?: string | undefined;
488
507
  }
489
508
 
490
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
491
- export interface ListProvidersRequest_Response {
509
+ export interface ListProvidersResponse {
492
510
  /** An array of provider information objects. */
493
511
  providers?: ProviderInfo[] | undefined;
494
512
  /**
@@ -515,17 +533,6 @@ export interface ListRecipientSharePermissionsRequest {
515
533
  pageToken?: string | undefined;
516
534
  }
517
535
 
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
-
529
536
  export interface ListRecipientsRequest {
530
537
  /**
531
538
  * If not provided, all recipients will be returned.
@@ -546,8 +553,7 @@ export interface ListRecipientsRequest {
546
553
  pageToken?: string | undefined;
547
554
  }
548
555
 
549
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
550
- export interface ListRecipientsRequest_Response {
556
+ export interface ListRecipientsResponse {
551
557
  /** An array of recipient information objects. */
552
558
  recipients?: RecipientInfo[] | undefined;
553
559
  /**
@@ -574,17 +580,6 @@ export interface ListSharePermissionsRequest {
574
580
  pageToken?: string | undefined;
575
581
  }
576
582
 
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
583
  export interface ListSharesRequest {
589
584
  /**
590
585
  * Maximum number of shares to return.
@@ -600,8 +595,7 @@ export interface ListSharesRequest {
600
595
  pageToken?: string | undefined;
601
596
  }
602
597
 
603
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
604
- export interface ListSharesRequest_Response {
598
+ export interface ListSharesResponse {
605
599
  /** An array of data share information objects. */
606
600
  shares?: ShareInfo[] | undefined;
607
601
  /**
@@ -871,8 +865,7 @@ export interface RetrieveToken {
871
865
  activationUrl?: string | undefined;
872
866
  }
873
867
 
874
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
875
- export interface RetrieveToken_Response {
868
+ export interface RetrieveTokenResponse {
876
869
  /** These field names must follow the delta sharing protocol. */
877
870
  shareCredentialsVersion?: number | undefined;
878
871
  /** The token used to authorize the recipient. */
@@ -1176,8 +1169,7 @@ export interface UpdateSharePermissionsRequest {
1176
1169
  changes?: PermissionsChange[] | undefined;
1177
1170
  }
1178
1171
 
1179
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1180
- export interface UpdateSharePermissionsRequest_Response {
1172
+ export interface UpdateSharePermissionsResponse {
1181
1173
  /** The privileges assigned to each principal */
1182
1174
  privilegeAssignments?: PrivilegeAssignment[] | undefined;
1183
1175
  }
@@ -1240,16 +1232,13 @@ export interface Volume {
1240
1232
  tags?: TagKeyValue[] | undefined;
1241
1233
  }
1242
1234
 
1243
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1244
- export const unmarshalDeleteProviderRequest_ResponseSchema: z.ZodType<DeleteProviderRequest_Response> =
1235
+ export const unmarshalDeleteProviderResponseSchema: z.ZodType<DeleteProviderResponse> =
1245
1236
  z.object({});
1246
1237
 
1247
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1248
- export const unmarshalDeleteRecipientRequest_ResponseSchema: z.ZodType<DeleteRecipientRequest_Response> =
1238
+ export const unmarshalDeleteRecipientResponseSchema: z.ZodType<DeleteRecipientResponse> =
1249
1239
  z.object({});
1250
1240
 
1251
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1252
- export const unmarshalDeleteShareRequest_ResponseSchema: z.ZodType<DeleteShareRequest_Response> =
1241
+ export const unmarshalDeleteShareResponseSchema: z.ZodType<DeleteShareResponse> =
1253
1242
  z.object({});
1254
1243
 
1255
1244
  export const unmarshalDependencySchema: z.ZodType<Dependency> = z
@@ -1396,10 +1385,35 @@ export const unmarshalFunctionParameterInfosSchema: z.ZodType<FunctionParameterI
1396
1385
  parameters: d.parameters,
1397
1386
  }));
1398
1387
 
1399
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1400
- export const unmarshalGetActivationUrlInfoRequest_ResponseSchema: z.ZodType<GetActivationUrlInfoRequest_Response> =
1388
+ export const unmarshalGetActivationUrlInfoResponseSchema: z.ZodType<GetActivationUrlInfoResponse> =
1401
1389
  z.object({});
1402
1390
 
1391
+ export const unmarshalGetRecipientSharePermissionsResponseSchema: z.ZodType<GetRecipientSharePermissionsResponse> =
1392
+ z
1393
+ .object({
1394
+ permissions_out: z
1395
+ .array(z.lazy(() => unmarshalShareToPrivilegeAssignmentSchema))
1396
+ .optional(),
1397
+ next_page_token: z.string().optional(),
1398
+ })
1399
+ .transform(d => ({
1400
+ permissionsOut: d.permissions_out,
1401
+ nextPageToken: d.next_page_token,
1402
+ }));
1403
+
1404
+ export const unmarshalGetSharePermissionsResponseSchema: z.ZodType<GetSharePermissionsResponse> =
1405
+ z
1406
+ .object({
1407
+ next_page_token: z.string().optional(),
1408
+ privilege_assignments: z
1409
+ .array(z.lazy(() => unmarshalPrivilegeAssignmentSchema))
1410
+ .optional(),
1411
+ })
1412
+ .transform(d => ({
1413
+ nextPageToken: d.next_page_token,
1414
+ privilegeAssignments: d.privilege_assignments,
1415
+ }));
1416
+
1403
1417
  export const unmarshalIpAccessListSchema: z.ZodType<IpAccessList> = z
1404
1418
  .object({
1405
1419
  allowed_ip_addresses: z.array(z.string()).optional(),
@@ -1438,8 +1452,7 @@ export const unmarshalListProviderShareAssetsResponseSchema: z.ZodType<ListProvi
1438
1452
  share: d.share,
1439
1453
  }));
1440
1454
 
1441
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1442
- export const unmarshalListProviderSharesRequest_ResponseSchema: z.ZodType<ListProviderSharesRequest_Response> =
1455
+ export const unmarshalListProviderSharesResponseSchema: z.ZodType<ListProviderSharesResponse> =
1443
1456
  z
1444
1457
  .object({
1445
1458
  shares: z.array(z.lazy(() => unmarshalProviderShareSchema)).optional(),
@@ -1450,8 +1463,7 @@ export const unmarshalListProviderSharesRequest_ResponseSchema: z.ZodType<ListPr
1450
1463
  nextPageToken: d.next_page_token,
1451
1464
  }));
1452
1465
 
1453
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1454
- export const unmarshalListProvidersRequest_ResponseSchema: z.ZodType<ListProvidersRequest_Response> =
1466
+ export const unmarshalListProvidersResponseSchema: z.ZodType<ListProvidersResponse> =
1455
1467
  z
1456
1468
  .object({
1457
1469
  providers: z.array(z.lazy(() => unmarshalProviderInfoSchema)).optional(),
@@ -1462,22 +1474,7 @@ export const unmarshalListProvidersRequest_ResponseSchema: z.ZodType<ListProvide
1462
1474
  nextPageToken: d.next_page_token,
1463
1475
  }));
1464
1476
 
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
-
1479
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1480
- export const unmarshalListRecipientsRequest_ResponseSchema: z.ZodType<ListRecipientsRequest_Response> =
1477
+ export const unmarshalListRecipientsResponseSchema: z.ZodType<ListRecipientsResponse> =
1481
1478
  z
1482
1479
  .object({
1483
1480
  recipients: z
@@ -1490,22 +1487,7 @@ export const unmarshalListRecipientsRequest_ResponseSchema: z.ZodType<ListRecipi
1490
1487
  nextPageToken: d.next_page_token,
1491
1488
  }));
1492
1489
 
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
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1508
- export const unmarshalListSharesRequest_ResponseSchema: z.ZodType<ListSharesRequest_Response> =
1490
+ export const unmarshalListSharesResponseSchema: z.ZodType<ListSharesResponse> =
1509
1491
  z
1510
1492
  .object({
1511
1493
  shares: z.array(z.lazy(() => unmarshalShareInfoSchema)).optional(),
@@ -1763,8 +1745,7 @@ export const unmarshalRegisteredModelAliasSchema: z.ZodType<RegisteredModelAlias
1763
1745
  versionNum: d.version_num,
1764
1746
  }));
1765
1747
 
1766
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1767
- export const unmarshalRetrieveToken_ResponseSchema: z.ZodType<RetrieveToken_Response> =
1748
+ export const unmarshalRetrieveTokenResponseSchema: z.ZodType<RetrieveTokenResponse> =
1768
1749
  z
1769
1750
  .object({
1770
1751
  shareCredentialsVersion: z.number().optional(),
@@ -1920,8 +1901,7 @@ export const unmarshalTagKeyValueSchema: z.ZodType<TagKeyValue> = z
1920
1901
  value: d.value,
1921
1902
  }));
1922
1903
 
1923
- // eslint-disable-next-line @typescript-eslint/naming-convention -- Proto-style nested message name.
1924
- export const unmarshalUpdateSharePermissionsRequest_ResponseSchema: z.ZodType<UpdateSharePermissionsRequest_Response> =
1904
+ export const unmarshalUpdateSharePermissionsResponseSchema: z.ZodType<UpdateSharePermissionsResponse> =
1925
1905
  z
1926
1906
  .object({
1927
1907
  privilege_assignments: z