@dazl/api-client 1.0.4 → 1.0.6
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/db/generated-types.d.ts +11 -1
- package/dist/db/generated-types.d.ts.map +1 -1
- package/dist/internal/index.d.ts +2 -2
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +1 -1
- package/dist/internal/index.js.map +1 -1
- package/dist/internal/sdk.gen.d.ts +5 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +17 -2
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +119 -13
- package/dist/internal/types.gen.d.ts.map +1 -1
- package/dist/public/index.d.ts +2 -2
- package/dist/public/index.d.ts.map +1 -1
- package/dist/public/index.js +1 -1
- package/dist/public/index.js.map +1 -1
- package/dist/public/sdk.gen.d.ts +5 -1
- package/dist/public/sdk.gen.d.ts.map +1 -1
- package/dist/public/sdk.gen.js +17 -2
- package/dist/public/sdk.gen.js.map +1 -1
- package/dist/public/types.gen.d.ts +119 -13
- package/dist/public/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/db/generated-types.ts +12 -1
- package/src/internal/index.ts +2 -2
- package/src/internal/sdk.gen.ts +20 -3
- package/src/internal/types.gen.ts +130 -13
- package/src/public/index.ts +2 -2
- package/src/public/sdk.gen.ts +20 -3
- package/src/public/types.gen.ts +130 -13
|
@@ -454,6 +454,12 @@ export type FeatureToggle = {
|
|
|
454
454
|
scope: 'RemoteAndEditor' | 'SiteAndEditor';
|
|
455
455
|
updatedAt: string;
|
|
456
456
|
};
|
|
457
|
+
export type Workspace = {
|
|
458
|
+
id: string;
|
|
459
|
+
name: string;
|
|
460
|
+
dazlUserId: string;
|
|
461
|
+
createdAt: string;
|
|
462
|
+
};
|
|
457
463
|
export type EnsureMyUserData = {
|
|
458
464
|
body?: {
|
|
459
465
|
name?: string;
|
|
@@ -6488,11 +6494,62 @@ export type EditReplyResponses = {
|
|
|
6488
6494
|
};
|
|
6489
6495
|
};
|
|
6490
6496
|
export type EditReplyResponse = EditReplyResponses[keyof EditReplyResponses];
|
|
6497
|
+
export type GetFeatureTogglesData = {
|
|
6498
|
+
body?: never;
|
|
6499
|
+
path?: never;
|
|
6500
|
+
query?: {
|
|
6501
|
+
scope?: 'RemoteAndEditor' | 'SiteAndEditor';
|
|
6502
|
+
};
|
|
6503
|
+
url: '/env-config';
|
|
6504
|
+
};
|
|
6505
|
+
export type GetFeatureTogglesErrors = {
|
|
6506
|
+
/**
|
|
6507
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
6508
|
+
*/
|
|
6509
|
+
400: {
|
|
6510
|
+
message: string;
|
|
6511
|
+
issues?: string;
|
|
6512
|
+
};
|
|
6513
|
+
/**
|
|
6514
|
+
* Unauthorized
|
|
6515
|
+
*/
|
|
6516
|
+
401: ErrorResponse;
|
|
6517
|
+
/**
|
|
6518
|
+
* Forbidden
|
|
6519
|
+
*/
|
|
6520
|
+
403: ErrorResponse;
|
|
6521
|
+
/**
|
|
6522
|
+
* Not Found
|
|
6523
|
+
*/
|
|
6524
|
+
404: ErrorResponse;
|
|
6525
|
+
/**
|
|
6526
|
+
* Conflict
|
|
6527
|
+
*/
|
|
6528
|
+
409: ErrorResponse;
|
|
6529
|
+
/**
|
|
6530
|
+
* Internal server error
|
|
6531
|
+
*/
|
|
6532
|
+
500: ErrorResponse;
|
|
6533
|
+
/**
|
|
6534
|
+
* Service Unavailable
|
|
6535
|
+
*/
|
|
6536
|
+
503: ErrorResponse;
|
|
6537
|
+
};
|
|
6538
|
+
export type GetFeatureTogglesError = GetFeatureTogglesErrors[keyof GetFeatureTogglesErrors];
|
|
6539
|
+
export type GetFeatureTogglesResponses = {
|
|
6540
|
+
/**
|
|
6541
|
+
* Returns feature toggles, optionally filtered by scope
|
|
6542
|
+
*/
|
|
6543
|
+
200: {
|
|
6544
|
+
toggles: Array<FeatureToggle>;
|
|
6545
|
+
};
|
|
6546
|
+
};
|
|
6547
|
+
export type GetFeatureTogglesResponse = GetFeatureTogglesResponses[keyof GetFeatureTogglesResponses];
|
|
6491
6548
|
export type GetMyUserData = {
|
|
6492
6549
|
body?: never;
|
|
6493
6550
|
path?: never;
|
|
6494
6551
|
query?: never;
|
|
6495
|
-
url: '/user/me';
|
|
6552
|
+
url: '/my-user/me';
|
|
6496
6553
|
};
|
|
6497
6554
|
export type GetMyUserErrors = {
|
|
6498
6555
|
/**
|
|
@@ -6545,7 +6602,7 @@ export type UpdateMyUserData = {
|
|
|
6545
6602
|
};
|
|
6546
6603
|
path?: never;
|
|
6547
6604
|
query?: never;
|
|
6548
|
-
url: '/user/me';
|
|
6605
|
+
url: '/my-user/me';
|
|
6549
6606
|
};
|
|
6550
6607
|
export type UpdateMyUserErrors = {
|
|
6551
6608
|
/**
|
|
@@ -6590,15 +6647,64 @@ export type UpdateMyUserResponses = {
|
|
|
6590
6647
|
};
|
|
6591
6648
|
};
|
|
6592
6649
|
export type UpdateMyUserResponse = UpdateMyUserResponses[keyof UpdateMyUserResponses];
|
|
6593
|
-
export type
|
|
6594
|
-
body
|
|
6650
|
+
export type CreateWorkspaceData = {
|
|
6651
|
+
body: {
|
|
6652
|
+
name: string;
|
|
6653
|
+
};
|
|
6595
6654
|
path?: never;
|
|
6596
|
-
query?:
|
|
6597
|
-
|
|
6655
|
+
query?: never;
|
|
6656
|
+
url: '/workspace/create';
|
|
6657
|
+
};
|
|
6658
|
+
export type CreateWorkspaceErrors = {
|
|
6659
|
+
/**
|
|
6660
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
6661
|
+
*/
|
|
6662
|
+
400: {
|
|
6663
|
+
message: string;
|
|
6664
|
+
issues?: string;
|
|
6598
6665
|
};
|
|
6599
|
-
|
|
6666
|
+
/**
|
|
6667
|
+
* Unauthorized
|
|
6668
|
+
*/
|
|
6669
|
+
401: ErrorResponse;
|
|
6670
|
+
/**
|
|
6671
|
+
* Forbidden
|
|
6672
|
+
*/
|
|
6673
|
+
403: ErrorResponse;
|
|
6674
|
+
/**
|
|
6675
|
+
* Not Found
|
|
6676
|
+
*/
|
|
6677
|
+
404: ErrorResponse;
|
|
6678
|
+
/**
|
|
6679
|
+
* Conflict
|
|
6680
|
+
*/
|
|
6681
|
+
409: ErrorResponse;
|
|
6682
|
+
/**
|
|
6683
|
+
* Internal server error
|
|
6684
|
+
*/
|
|
6685
|
+
500: ErrorResponse;
|
|
6686
|
+
/**
|
|
6687
|
+
* Service Unavailable
|
|
6688
|
+
*/
|
|
6689
|
+
503: ErrorResponse;
|
|
6600
6690
|
};
|
|
6601
|
-
export type
|
|
6691
|
+
export type CreateWorkspaceError = CreateWorkspaceErrors[keyof CreateWorkspaceErrors];
|
|
6692
|
+
export type CreateWorkspaceResponses = {
|
|
6693
|
+
/**
|
|
6694
|
+
* Returns the created workspace
|
|
6695
|
+
*/
|
|
6696
|
+
200: {
|
|
6697
|
+
workspace: Workspace;
|
|
6698
|
+
};
|
|
6699
|
+
};
|
|
6700
|
+
export type CreateWorkspaceResponse = CreateWorkspaceResponses[keyof CreateWorkspaceResponses];
|
|
6701
|
+
export type GetAllWorkspacesData = {
|
|
6702
|
+
body?: never;
|
|
6703
|
+
path?: never;
|
|
6704
|
+
query?: never;
|
|
6705
|
+
url: '/workspace/list';
|
|
6706
|
+
};
|
|
6707
|
+
export type GetAllWorkspacesErrors = {
|
|
6602
6708
|
/**
|
|
6603
6709
|
* Bad request - Invalid parameters or malformed JSON
|
|
6604
6710
|
*/
|
|
@@ -6631,14 +6737,14 @@ export type GetFeatureTogglesErrors = {
|
|
|
6631
6737
|
*/
|
|
6632
6738
|
503: ErrorResponse;
|
|
6633
6739
|
};
|
|
6634
|
-
export type
|
|
6635
|
-
export type
|
|
6740
|
+
export type GetAllWorkspacesError = GetAllWorkspacesErrors[keyof GetAllWorkspacesErrors];
|
|
6741
|
+
export type GetAllWorkspacesResponses = {
|
|
6636
6742
|
/**
|
|
6637
|
-
* Returns
|
|
6743
|
+
* Returns the list of workspaces for the current user
|
|
6638
6744
|
*/
|
|
6639
6745
|
200: {
|
|
6640
|
-
|
|
6746
|
+
workspaces: Array<Workspace>;
|
|
6641
6747
|
};
|
|
6642
6748
|
};
|
|
6643
|
-
export type
|
|
6749
|
+
export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
|
|
6644
6750
|
//# sourceMappingURL=types.gen.d.ts.map
|