@azure-rest/synapse-access-control 1.0.0-alpha.20250331.1 → 1.0.0-alpha.20250401.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/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ # Release History
2
+
3
+ ## 1.0.0-beta.1 (UNRELEASED)
4
+
5
+ - Initial release
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/synapse/synapse-access-control/README.md",
6
6
  "repository": "github:Azure/azure-sdk-for-js",
7
7
  "sdk-type": "client",
8
- "version": "1.0.0-alpha.20250331.1",
8
+ "version": "1.0.0-alpha.20250401.2",
9
9
  "dependencies": {
10
10
  "@azure-rest/core-client": "^2.3.1",
11
11
  "@azure/core-auth": "^1.9.0",
@@ -60,7 +60,9 @@
60
60
  "files": [
61
61
  "dist/",
62
62
  "README.md",
63
- "LICENSE"
63
+ "LICENSE",
64
+ "review/",
65
+ "CHANGELOG.md"
64
66
  ],
65
67
  "scripts": {
66
68
  "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
@@ -0,0 +1,458 @@
1
+ ## API Report File for "@azure-rest/synapse-access-control"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import type { Client } from '@azure-rest/core-client';
8
+ import type { ClientOptions } from '@azure-rest/core-client';
9
+ import type { HttpResponse } from '@azure-rest/core-client';
10
+ import type { PathUncheckedResponse } from '@azure-rest/core-client';
11
+ import type { RawHttpHeaders } from '@azure/core-rest-pipeline';
12
+ import type { RawHttpHeadersInput } from '@azure/core-rest-pipeline';
13
+ import type { RequestParameters } from '@azure-rest/core-client';
14
+ import type { StreamableMethod } from '@azure-rest/core-client';
15
+ import type { TokenCredential } from '@azure/core-auth';
16
+
17
+ // @public (undocumented)
18
+ export type AccessControlRestClient = Client & {
19
+ path: Routes;
20
+ };
21
+
22
+ // @public
23
+ export interface AccessControlRestClientOptions extends ClientOptions {
24
+ apiVersion?: string;
25
+ }
26
+
27
+ // @public
28
+ export interface CheckAccessDecisionOutput {
29
+ accessDecision?: string;
30
+ actionId?: string;
31
+ roleAssignment?: RoleAssignmentDetailsOutput;
32
+ }
33
+
34
+ // @public
35
+ export interface CheckPrincipalAccessRequest {
36
+ actions: Array<RequiredAction>;
37
+ scope: string;
38
+ subject: SubjectInfo;
39
+ }
40
+
41
+ // @public
42
+ export interface CheckPrincipalAccessResponseOutput {
43
+ AccessDecisions?: Array<CheckAccessDecisionOutput>;
44
+ }
45
+
46
+ // @public
47
+ function createClient(endpoint: string, credentials: TokenCredential, { apiVersion, ...options }?: AccessControlRestClientOptions): AccessControlRestClient;
48
+ export default createClient;
49
+
50
+ // @public
51
+ export interface ErrorAdditionalInfoOutput {
52
+ readonly info?: Record<string, unknown>;
53
+ readonly type?: string;
54
+ }
55
+
56
+ // @public
57
+ export interface ErrorContractOutput {
58
+ error?: ErrorResponseOutput;
59
+ }
60
+
61
+ // @public
62
+ export interface ErrorResponseOutput {
63
+ readonly additionalInfo?: Array<ErrorAdditionalInfoOutput>;
64
+ readonly code?: string;
65
+ readonly details?: Array<ErrorResponseOutput>;
66
+ readonly message?: string;
67
+ readonly target?: string;
68
+ }
69
+
70
+ // @public
71
+ export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
72
+
73
+ // @public
74
+ export type GetPage<TPage> = (pageLink: string) => Promise<{
75
+ page: TPage;
76
+ nextPageLink?: string;
77
+ }>;
78
+
79
+ // @public (undocumented)
80
+ export function isUnexpected(response: RoleAssignmentsCheckPrincipalAccess200Response | RoleAssignmentsCheckPrincipalAccessDefaultResponse): response is RoleAssignmentsCheckPrincipalAccessDefaultResponse;
81
+
82
+ // @public (undocumented)
83
+ export function isUnexpected(response: RoleAssignmentsListRoleAssignments200Response | RoleAssignmentsListRoleAssignmentsDefaultResponse): response is RoleAssignmentsListRoleAssignmentsDefaultResponse;
84
+
85
+ // @public (undocumented)
86
+ export function isUnexpected(response: RoleAssignmentsCreateRoleAssignment200Response | RoleAssignmentsCreateRoleAssignmentDefaultResponse): response is RoleAssignmentsCreateRoleAssignmentDefaultResponse;
87
+
88
+ // @public (undocumented)
89
+ export function isUnexpected(response: RoleAssignmentsGetRoleAssignmentById200Response | RoleAssignmentsGetRoleAssignmentByIdDefaultResponse): response is RoleAssignmentsGetRoleAssignmentByIdDefaultResponse;
90
+
91
+ // @public (undocumented)
92
+ export function isUnexpected(response: RoleAssignmentsDeleteRoleAssignmentById200Response | RoleAssignmentsDeleteRoleAssignmentById204Response | RoleAssignmentsDeleteRoleAssignmentByIdDefaultResponse): response is RoleAssignmentsDeleteRoleAssignmentByIdDefaultResponse;
93
+
94
+ // @public (undocumented)
95
+ export function isUnexpected(response: RoleDefinitionsListRoleDefinitions200Response | RoleDefinitionsListRoleDefinitionsDefaultResponse): response is RoleDefinitionsListRoleDefinitionsDefaultResponse;
96
+
97
+ // @public (undocumented)
98
+ export function isUnexpected(response: RoleDefinitionsGetRoleDefinitionById200Response | RoleDefinitionsGetRoleDefinitionByIdDefaultResponse): response is RoleDefinitionsGetRoleDefinitionByIdDefaultResponse;
99
+
100
+ // @public (undocumented)
101
+ export function isUnexpected(response: RoleDefinitionsListScopes200Response | RoleDefinitionsListScopesDefaultResponse): response is RoleDefinitionsListScopesDefaultResponse;
102
+
103
+ // @public
104
+ export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings = PageSettings> {
105
+ [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
106
+ byPage: (settings?: TPageSettings) => AsyncIterableIterator<TPage>;
107
+ next(): Promise<IteratorResult<TElement>>;
108
+ }
109
+
110
+ // @public
111
+ export interface PageSettings {
112
+ continuationToken?: string;
113
+ }
114
+
115
+ // @public
116
+ export function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
117
+
118
+ // @public
119
+ export type PaginateReturn<TResult> = TResult extends {
120
+ body: {
121
+ value?: infer TPage;
122
+ };
123
+ } ? GetArrayType<TPage> : Array<unknown>;
124
+
125
+ // @public
126
+ export interface PagingOptions<TResponse> {
127
+ customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
128
+ }
129
+
130
+ // @public
131
+ export interface RequiredAction {
132
+ id: string;
133
+ isDataAction: boolean;
134
+ }
135
+
136
+ // @public
137
+ export interface RoleAssignmentDetailsListOutput {
138
+ count?: number;
139
+ value?: Array<RoleAssignmentDetailsOutput>;
140
+ }
141
+
142
+ // @public
143
+ export interface RoleAssignmentDetailsOutput {
144
+ id?: string;
145
+ principalId?: string;
146
+ principalType?: string;
147
+ roleDefinitionId?: string;
148
+ scope?: string;
149
+ }
150
+
151
+ // @public
152
+ export interface RoleAssignmentRequest {
153
+ principalId: string;
154
+ principalType?: string;
155
+ roleId: string;
156
+ scope: string;
157
+ }
158
+
159
+ // @public (undocumented)
160
+ export interface RoleAssignmentsCheckPrincipalAccess {
161
+ post(options: RoleAssignmentsCheckPrincipalAccessParameters): StreamableMethod<RoleAssignmentsCheckPrincipalAccess200Response | RoleAssignmentsCheckPrincipalAccessDefaultResponse>;
162
+ }
163
+
164
+ // @public
165
+ export interface RoleAssignmentsCheckPrincipalAccess200Response extends HttpResponse {
166
+ // (undocumented)
167
+ body: CheckPrincipalAccessResponseOutput;
168
+ // (undocumented)
169
+ status: "200";
170
+ }
171
+
172
+ // @public (undocumented)
173
+ export interface RoleAssignmentsCheckPrincipalAccessBodyParam {
174
+ body: CheckPrincipalAccessRequest;
175
+ }
176
+
177
+ // @public
178
+ export interface RoleAssignmentsCheckPrincipalAccessDefaultResponse extends HttpResponse {
179
+ // (undocumented)
180
+ body: ErrorContractOutput;
181
+ // (undocumented)
182
+ status: string;
183
+ }
184
+
185
+ // @public (undocumented)
186
+ export interface RoleAssignmentsCheckPrincipalAccessMediaTypesParam {
187
+ contentType?: "application/json" | "text/json";
188
+ }
189
+
190
+ // @public (undocumented)
191
+ export type RoleAssignmentsCheckPrincipalAccessParameters = RoleAssignmentsCheckPrincipalAccessMediaTypesParam & RoleAssignmentsCheckPrincipalAccessBodyParam & RequestParameters;
192
+
193
+ // @public (undocumented)
194
+ export interface RoleAssignmentsCreateRoleAssignment {
195
+ delete(options?: RoleAssignmentsDeleteRoleAssignmentByIdParameters): StreamableMethod<RoleAssignmentsDeleteRoleAssignmentById200Response | RoleAssignmentsDeleteRoleAssignmentById204Response | RoleAssignmentsDeleteRoleAssignmentByIdDefaultResponse>;
196
+ get(options?: RoleAssignmentsGetRoleAssignmentByIdParameters): StreamableMethod<RoleAssignmentsGetRoleAssignmentById200Response | RoleAssignmentsGetRoleAssignmentByIdDefaultResponse>;
197
+ put(options: RoleAssignmentsCreateRoleAssignmentParameters): StreamableMethod<RoleAssignmentsCreateRoleAssignment200Response | RoleAssignmentsCreateRoleAssignmentDefaultResponse>;
198
+ }
199
+
200
+ // @public
201
+ export interface RoleAssignmentsCreateRoleAssignment200Response extends HttpResponse {
202
+ // (undocumented)
203
+ body: RoleAssignmentDetailsOutput;
204
+ // (undocumented)
205
+ status: "200";
206
+ }
207
+
208
+ // @public (undocumented)
209
+ export interface RoleAssignmentsCreateRoleAssignmentBodyParam {
210
+ body: RoleAssignmentRequest;
211
+ }
212
+
213
+ // @public
214
+ export interface RoleAssignmentsCreateRoleAssignmentDefaultResponse extends HttpResponse {
215
+ // (undocumented)
216
+ body: ErrorContractOutput;
217
+ // (undocumented)
218
+ status: string;
219
+ }
220
+
221
+ // @public (undocumented)
222
+ export interface RoleAssignmentsCreateRoleAssignmentMediaTypesParam {
223
+ contentType?: "application/json" | "text/json";
224
+ }
225
+
226
+ // @public (undocumented)
227
+ export type RoleAssignmentsCreateRoleAssignmentParameters = RoleAssignmentsCreateRoleAssignmentMediaTypesParam & RoleAssignmentsCreateRoleAssignmentBodyParam & RequestParameters;
228
+
229
+ // @public
230
+ export interface RoleAssignmentsDeleteRoleAssignmentById200Response extends HttpResponse {
231
+ // (undocumented)
232
+ status: "200";
233
+ }
234
+
235
+ // @public
236
+ export interface RoleAssignmentsDeleteRoleAssignmentById204Response extends HttpResponse {
237
+ // (undocumented)
238
+ status: "204";
239
+ }
240
+
241
+ // @public
242
+ export interface RoleAssignmentsDeleteRoleAssignmentByIdDefaultResponse extends HttpResponse {
243
+ // (undocumented)
244
+ body: ErrorContractOutput;
245
+ // (undocumented)
246
+ status: string;
247
+ }
248
+
249
+ // @public (undocumented)
250
+ export type RoleAssignmentsDeleteRoleAssignmentByIdParameters = RoleAssignmentsDeleteRoleAssignmentByIdQueryParam & RequestParameters;
251
+
252
+ // @public (undocumented)
253
+ export interface RoleAssignmentsDeleteRoleAssignmentByIdQueryParam {
254
+ // (undocumented)
255
+ queryParameters?: RoleAssignmentsDeleteRoleAssignmentByIdQueryParamProperties;
256
+ }
257
+
258
+ // @public (undocumented)
259
+ export interface RoleAssignmentsDeleteRoleAssignmentByIdQueryParamProperties {
260
+ scope?: string;
261
+ }
262
+
263
+ // @public
264
+ export interface RoleAssignmentsGetRoleAssignmentById200Response extends HttpResponse {
265
+ // (undocumented)
266
+ body: RoleAssignmentDetailsOutput;
267
+ // (undocumented)
268
+ status: "200";
269
+ }
270
+
271
+ // @public
272
+ export interface RoleAssignmentsGetRoleAssignmentByIdDefaultResponse extends HttpResponse {
273
+ // (undocumented)
274
+ body: ErrorContractOutput;
275
+ // (undocumented)
276
+ status: string;
277
+ }
278
+
279
+ // @public (undocumented)
280
+ export type RoleAssignmentsGetRoleAssignmentByIdParameters = RequestParameters;
281
+
282
+ // @public (undocumented)
283
+ export interface RoleAssignmentsListRoleAssignments {
284
+ get(options?: RoleAssignmentsListRoleAssignmentsParameters): StreamableMethod<RoleAssignmentsListRoleAssignments200Response | RoleAssignmentsListRoleAssignmentsDefaultResponse>;
285
+ }
286
+
287
+ // @public (undocumented)
288
+ export interface RoleAssignmentsListRoleAssignments200Headers {
289
+ "x-ms-continuation"?: string;
290
+ }
291
+
292
+ // @public
293
+ export interface RoleAssignmentsListRoleAssignments200Response extends HttpResponse {
294
+ // (undocumented)
295
+ body: RoleAssignmentDetailsListOutput;
296
+ // (undocumented)
297
+ headers: RawHttpHeaders & RoleAssignmentsListRoleAssignments200Headers;
298
+ // (undocumented)
299
+ status: "200";
300
+ }
301
+
302
+ // @public
303
+ export interface RoleAssignmentsListRoleAssignmentsDefaultResponse extends HttpResponse {
304
+ // (undocumented)
305
+ body: ErrorContractOutput;
306
+ // (undocumented)
307
+ status: string;
308
+ }
309
+
310
+ // @public (undocumented)
311
+ export interface RoleAssignmentsListRoleAssignmentsHeaderParam {
312
+ // (undocumented)
313
+ headers?: RawHttpHeadersInput & RoleAssignmentsListRoleAssignmentsHeaders;
314
+ }
315
+
316
+ // @public (undocumented)
317
+ export interface RoleAssignmentsListRoleAssignmentsHeaders {
318
+ "x-ms-continuation"?: string;
319
+ }
320
+
321
+ // @public (undocumented)
322
+ export type RoleAssignmentsListRoleAssignmentsParameters = RoleAssignmentsListRoleAssignmentsQueryParam & RoleAssignmentsListRoleAssignmentsHeaderParam & RequestParameters;
323
+
324
+ // @public (undocumented)
325
+ export interface RoleAssignmentsListRoleAssignmentsQueryParam {
326
+ // (undocumented)
327
+ queryParameters?: RoleAssignmentsListRoleAssignmentsQueryParamProperties;
328
+ }
329
+
330
+ // @public (undocumented)
331
+ export interface RoleAssignmentsListRoleAssignmentsQueryParamProperties {
332
+ principalId?: string;
333
+ roleId?: string;
334
+ scope?: string;
335
+ }
336
+
337
+ // @public (undocumented)
338
+ export interface RoleDefinitionsGetRoleDefinitionById {
339
+ get(options?: RoleDefinitionsGetRoleDefinitionByIdParameters): StreamableMethod<RoleDefinitionsGetRoleDefinitionById200Response | RoleDefinitionsGetRoleDefinitionByIdDefaultResponse>;
340
+ }
341
+
342
+ // @public
343
+ export interface RoleDefinitionsGetRoleDefinitionById200Response extends HttpResponse {
344
+ // (undocumented)
345
+ body: SynapseRoleDefinitionOutput;
346
+ // (undocumented)
347
+ status: "200";
348
+ }
349
+
350
+ // @public
351
+ export interface RoleDefinitionsGetRoleDefinitionByIdDefaultResponse extends HttpResponse {
352
+ // (undocumented)
353
+ body: ErrorContractOutput;
354
+ // (undocumented)
355
+ status: string;
356
+ }
357
+
358
+ // @public (undocumented)
359
+ export type RoleDefinitionsGetRoleDefinitionByIdParameters = RequestParameters;
360
+
361
+ // @public (undocumented)
362
+ export interface RoleDefinitionsListRoleDefinitions {
363
+ get(options?: RoleDefinitionsListRoleDefinitionsParameters): StreamableMethod<RoleDefinitionsListRoleDefinitions200Response | RoleDefinitionsListRoleDefinitionsDefaultResponse>;
364
+ }
365
+
366
+ // @public
367
+ export interface RoleDefinitionsListRoleDefinitions200Response extends HttpResponse {
368
+ // (undocumented)
369
+ body: Array<SynapseRoleDefinitionOutput>;
370
+ // (undocumented)
371
+ status: "200";
372
+ }
373
+
374
+ // @public
375
+ export interface RoleDefinitionsListRoleDefinitionsDefaultResponse extends HttpResponse {
376
+ // (undocumented)
377
+ body: ErrorContractOutput;
378
+ // (undocumented)
379
+ status: string;
380
+ }
381
+
382
+ // @public (undocumented)
383
+ export type RoleDefinitionsListRoleDefinitionsParameters = RoleDefinitionsListRoleDefinitionsQueryParam & RequestParameters;
384
+
385
+ // @public (undocumented)
386
+ export interface RoleDefinitionsListRoleDefinitionsQueryParam {
387
+ // (undocumented)
388
+ queryParameters?: RoleDefinitionsListRoleDefinitionsQueryParamProperties;
389
+ }
390
+
391
+ // @public (undocumented)
392
+ export interface RoleDefinitionsListRoleDefinitionsQueryParamProperties {
393
+ isBuiltIn?: boolean;
394
+ scope?: string;
395
+ }
396
+
397
+ // @public (undocumented)
398
+ export interface RoleDefinitionsListScopes {
399
+ get(options?: RoleDefinitionsListScopesParameters): StreamableMethod<RoleDefinitionsListScopes200Response | RoleDefinitionsListScopesDefaultResponse>;
400
+ }
401
+
402
+ // @public
403
+ export interface RoleDefinitionsListScopes200Response extends HttpResponse {
404
+ // (undocumented)
405
+ body: Array<string>;
406
+ // (undocumented)
407
+ status: "200";
408
+ }
409
+
410
+ // @public
411
+ export interface RoleDefinitionsListScopesDefaultResponse extends HttpResponse {
412
+ // (undocumented)
413
+ body: ErrorContractOutput;
414
+ // (undocumented)
415
+ status: string;
416
+ }
417
+
418
+ // @public (undocumented)
419
+ export type RoleDefinitionsListScopesParameters = RequestParameters;
420
+
421
+ // @public (undocumented)
422
+ export interface Routes {
423
+ (path: "/checkAccessSynapseRbac"): RoleAssignmentsCheckPrincipalAccess;
424
+ (path: "/roleAssignments"): RoleAssignmentsListRoleAssignments;
425
+ (path: "/roleAssignments/{roleAssignmentId}", roleAssignmentId: string): RoleAssignmentsCreateRoleAssignment;
426
+ (path: "/roleDefinitions"): RoleDefinitionsListRoleDefinitions;
427
+ (path: "/roleDefinitions/{roleDefinitionId}", roleDefinitionId: string): RoleDefinitionsGetRoleDefinitionById;
428
+ (path: "/rbacScopes"): RoleDefinitionsListScopes;
429
+ }
430
+
431
+ // @public
432
+ export interface SubjectInfo {
433
+ groupIds?: Array<string>;
434
+ principalId: string;
435
+ }
436
+
437
+ // @public
438
+ export interface SynapseRbacPermissionOutput {
439
+ actions?: Array<string>;
440
+ dataActions?: Array<string>;
441
+ notActions?: Array<string>;
442
+ notDataActions?: Array<string>;
443
+ }
444
+
445
+ // @public
446
+ export interface SynapseRoleDefinitionOutput {
447
+ availabilityStatus?: string;
448
+ description?: string;
449
+ id?: string;
450
+ isBuiltIn?: boolean;
451
+ name?: string;
452
+ permissions?: Array<SynapseRbacPermissionOutput>;
453
+ scopes?: Array<string>;
454
+ }
455
+
456
+ // (No @packageDocumentation comment for this package)
457
+
458
+ ```