@dazl/api-client 1.0.13 → 1.0.15
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/internal/index.d.ts +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/sdk.gen.d.ts +2 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +3 -0
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +113 -9
- package/dist/internal/types.gen.d.ts.map +1 -1
- package/dist/public/index.d.ts +1 -1
- package/dist/public/index.d.ts.map +1 -1
- package/dist/public/sdk.gen.d.ts +2 -1
- package/dist/public/sdk.gen.d.ts.map +1 -1
- package/dist/public/sdk.gen.js +3 -0
- package/dist/public/sdk.gen.js.map +1 -1
- package/dist/public/types.gen.d.ts +111 -7
- package/dist/public/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/internal/index.ts +1 -1
- package/src/internal/sdk.gen.ts +5 -1
- package/src/internal/types.gen.ts +118 -9
- package/src/public/index.ts +1 -1
- package/src/public/sdk.gen.ts +5 -1
- package/src/public/types.gen.ts +116 -7
package/src/public/types.gen.ts
CHANGED
|
@@ -43,10 +43,10 @@ export type Workspace = {
|
|
|
43
43
|
|
|
44
44
|
export type CreateSessionAuthorized = {
|
|
45
45
|
status: 'authorized';
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
/**
|
|
47
|
+
* Opaque access token — send it in the x-dazl-mcp-token header on your MCP requests to this api-server's MCP endpoint
|
|
48
|
+
*/
|
|
49
|
+
mcpSessionToken: string;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
export type CreateSessionUnauthorized = {
|
|
@@ -346,7 +346,12 @@ export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorks
|
|
|
346
346
|
export type GetAllWorkspacesData = {
|
|
347
347
|
body?: never;
|
|
348
348
|
path?: never;
|
|
349
|
-
query?:
|
|
349
|
+
query?: {
|
|
350
|
+
/**
|
|
351
|
+
* Whether to include the members of each workspace
|
|
352
|
+
*/
|
|
353
|
+
withMembers?: boolean;
|
|
354
|
+
};
|
|
350
355
|
url: '/workspace/list-my';
|
|
351
356
|
};
|
|
352
357
|
|
|
@@ -391,12 +396,116 @@ export type GetAllWorkspacesResponses = {
|
|
|
391
396
|
* Returns the list of workspaces for the current user
|
|
392
397
|
*/
|
|
393
398
|
200: {
|
|
394
|
-
workspaces: Array<
|
|
399
|
+
workspaces: Array<{
|
|
400
|
+
id: string;
|
|
401
|
+
name: string;
|
|
402
|
+
/**
|
|
403
|
+
* The user which created the workspace. Null if the user was deleted.
|
|
404
|
+
*/
|
|
405
|
+
dazlUserId: string | null;
|
|
406
|
+
createdAt: string;
|
|
407
|
+
isDefault: boolean;
|
|
408
|
+
owner?: {
|
|
409
|
+
/**
|
|
410
|
+
* Dazl ID for the type = "user"
|
|
411
|
+
*/
|
|
412
|
+
id: string;
|
|
413
|
+
email: string;
|
|
414
|
+
name?: string;
|
|
415
|
+
picture?: string;
|
|
416
|
+
role: 'workspace_member' | 'owner';
|
|
417
|
+
} | null;
|
|
418
|
+
members?: Array<{
|
|
419
|
+
/**
|
|
420
|
+
* Dazl ID for the type = "user"
|
|
421
|
+
*/
|
|
422
|
+
id: string;
|
|
423
|
+
email: string;
|
|
424
|
+
name?: string;
|
|
425
|
+
picture?: string;
|
|
426
|
+
role: 'workspace_member' | 'owner';
|
|
427
|
+
}>;
|
|
428
|
+
}>;
|
|
395
429
|
};
|
|
396
430
|
};
|
|
397
431
|
|
|
398
432
|
export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
|
|
399
433
|
|
|
434
|
+
export type GetWorkspaceMembersData = {
|
|
435
|
+
body?: never;
|
|
436
|
+
path: {
|
|
437
|
+
workspaceId: string;
|
|
438
|
+
};
|
|
439
|
+
query?: never;
|
|
440
|
+
url: '/workspace/{workspaceId}/all-members';
|
|
441
|
+
};
|
|
442
|
+
|
|
443
|
+
export type GetWorkspaceMembersErrors = {
|
|
444
|
+
/**
|
|
445
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
446
|
+
*/
|
|
447
|
+
400: {
|
|
448
|
+
message: string;
|
|
449
|
+
issues?: string;
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* Unauthorized
|
|
453
|
+
*/
|
|
454
|
+
401: ErrorResponse;
|
|
455
|
+
/**
|
|
456
|
+
* Forbidden
|
|
457
|
+
*/
|
|
458
|
+
403: ErrorResponse;
|
|
459
|
+
/**
|
|
460
|
+
* Not Found
|
|
461
|
+
*/
|
|
462
|
+
404: ErrorResponse;
|
|
463
|
+
/**
|
|
464
|
+
* Conflict
|
|
465
|
+
*/
|
|
466
|
+
409: ErrorResponse;
|
|
467
|
+
/**
|
|
468
|
+
* Internal server error
|
|
469
|
+
*/
|
|
470
|
+
500: ErrorResponse;
|
|
471
|
+
/**
|
|
472
|
+
* Service Unavailable
|
|
473
|
+
*/
|
|
474
|
+
503: ErrorResponse;
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
export type GetWorkspaceMembersError = GetWorkspaceMembersErrors[keyof GetWorkspaceMembersErrors];
|
|
478
|
+
|
|
479
|
+
export type GetWorkspaceMembersResponses = {
|
|
480
|
+
/**
|
|
481
|
+
* Returns the list of workspace collaborators: members and owner
|
|
482
|
+
*/
|
|
483
|
+
200: {
|
|
484
|
+
owner: {
|
|
485
|
+
/**
|
|
486
|
+
* Dazl ID for the type = "user"
|
|
487
|
+
*/
|
|
488
|
+
id: string;
|
|
489
|
+
email: string;
|
|
490
|
+
name?: string;
|
|
491
|
+
picture?: string;
|
|
492
|
+
role: 'workspace_member' | 'owner';
|
|
493
|
+
} | null;
|
|
494
|
+
members: Array<{
|
|
495
|
+
/**
|
|
496
|
+
* Dazl ID for the type = "user"
|
|
497
|
+
*/
|
|
498
|
+
id: string;
|
|
499
|
+
email: string;
|
|
500
|
+
name?: string;
|
|
501
|
+
picture?: string;
|
|
502
|
+
role: 'workspace_member' | 'owner';
|
|
503
|
+
}>;
|
|
504
|
+
};
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
export type GetWorkspaceMembersResponse = GetWorkspaceMembersResponses[keyof GetWorkspaceMembersResponses];
|
|
508
|
+
|
|
400
509
|
export type GetMyValuesData = {
|
|
401
510
|
body?: never;
|
|
402
511
|
path?: never;
|
|
@@ -809,7 +918,7 @@ export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
|
|
|
809
918
|
|
|
810
919
|
export type CreateSessionResponses = {
|
|
811
920
|
/**
|
|
812
|
-
* An authorized MCP session (
|
|
921
|
+
* An authorized MCP session (opaque access-token header) or an unauthorized marker
|
|
813
922
|
*/
|
|
814
923
|
200: ({
|
|
815
924
|
status: 'authorized';
|