@dazl/api-client 1.0.11 → 1.0.13
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 +3 -1
- package/dist/db/generated-types.d.ts.map +1 -1
- package/dist/db/jsonb.types.d.ts +1 -1
- package/dist/db/jsonb.types.d.ts.map +1 -1
- package/dist/internal/index.d.ts +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/sdk.gen.d.ts +17 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +38 -0
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +236 -5
- 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 +7 -1
- package/dist/public/sdk.gen.d.ts.map +1 -1
- package/dist/public/sdk.gen.js +28 -0
- package/dist/public/sdk.gen.js.map +1 -1
- package/dist/public/types.gen.d.ts +231 -0
- package/dist/public/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/db/generated-types.ts +3 -1
- package/src/db/jsonb.types.ts +1 -1
- package/src/internal/index.ts +1 -1
- package/src/internal/sdk.gen.ts +43 -1
- package/src/internal/types.gen.ts +256 -5
- package/src/public/index.ts +2 -2
- package/src/public/sdk.gen.ts +33 -1
- package/src/public/types.gen.ts +251 -0
|
@@ -151,7 +151,6 @@ export type ProjectRaw = {
|
|
|
151
151
|
originTemplateId: string | null;
|
|
152
152
|
archivedAt: string | null;
|
|
153
153
|
members: Array<{
|
|
154
|
-
role: 'admin' | 'contributor' | 'viewer';
|
|
155
154
|
type: 'user';
|
|
156
155
|
/**
|
|
157
156
|
* Dazl ID for the type = "user"
|
|
@@ -161,6 +160,7 @@ export type ProjectRaw = {
|
|
|
161
160
|
* Time when it was updated in milliseconds since epoch
|
|
162
161
|
*/
|
|
163
162
|
updatedAt?: number;
|
|
163
|
+
role: 'admin' | 'contributor' | 'viewer';
|
|
164
164
|
}>;
|
|
165
165
|
workspaceId: string | null;
|
|
166
166
|
};
|
|
@@ -2801,9 +2801,9 @@ export type GetUserProjectsResponse = GetUserProjectsResponses[keyof GetUserProj
|
|
|
2801
2801
|
|
|
2802
2802
|
export type InviteProjectMemberData = {
|
|
2803
2803
|
body: {
|
|
2804
|
-
role: 'admin' | 'contributor' | 'viewer';
|
|
2805
2804
|
email: string;
|
|
2806
2805
|
invitedByDazlId: string;
|
|
2806
|
+
role: 'admin' | 'contributor' | 'viewer';
|
|
2807
2807
|
};
|
|
2808
2808
|
path: {
|
|
2809
2809
|
projectId: string;
|
|
@@ -2973,17 +2973,17 @@ export type GetProjectCollaboratorsResponses = {
|
|
|
2973
2973
|
* Dazl ID for the type = "user"
|
|
2974
2974
|
*/
|
|
2975
2975
|
id: string;
|
|
2976
|
-
role: 'admin' | 'contributor' | 'viewer' | 'owner';
|
|
2976
|
+
role: 'admin' | 'contributor' | 'viewer' | 'workspace_member' | 'owner';
|
|
2977
2977
|
email: string;
|
|
2978
2978
|
name?: string;
|
|
2979
2979
|
picture?: string;
|
|
2980
|
-
};
|
|
2980
|
+
} | null;
|
|
2981
2981
|
members: Array<{
|
|
2982
2982
|
/**
|
|
2983
2983
|
* Dazl ID for the type = "user"
|
|
2984
2984
|
*/
|
|
2985
2985
|
id: string;
|
|
2986
|
-
role: 'admin' | 'contributor' | 'viewer' | 'owner';
|
|
2986
|
+
role: 'admin' | 'contributor' | 'viewer' | 'workspace_member' | 'owner';
|
|
2987
2987
|
email: string;
|
|
2988
2988
|
name?: string;
|
|
2989
2989
|
picture?: string;
|
|
@@ -7373,6 +7373,257 @@ export type GetAllWorkspacesResponses = {
|
|
|
7373
7373
|
|
|
7374
7374
|
export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
|
|
7375
7375
|
|
|
7376
|
+
export type GetMyValuesData = {
|
|
7377
|
+
body?: never;
|
|
7378
|
+
path?: never;
|
|
7379
|
+
query?: {
|
|
7380
|
+
/**
|
|
7381
|
+
* Filter results to this category
|
|
7382
|
+
*/
|
|
7383
|
+
categ?: string;
|
|
7384
|
+
};
|
|
7385
|
+
url: '/my-user-key-value/values';
|
|
7386
|
+
};
|
|
7387
|
+
|
|
7388
|
+
export type GetMyValuesErrors = {
|
|
7389
|
+
/**
|
|
7390
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
7391
|
+
*/
|
|
7392
|
+
400: {
|
|
7393
|
+
message: string;
|
|
7394
|
+
issues?: string;
|
|
7395
|
+
};
|
|
7396
|
+
/**
|
|
7397
|
+
* Unauthorized
|
|
7398
|
+
*/
|
|
7399
|
+
401: ErrorResponse;
|
|
7400
|
+
/**
|
|
7401
|
+
* Forbidden
|
|
7402
|
+
*/
|
|
7403
|
+
403: ErrorResponse;
|
|
7404
|
+
/**
|
|
7405
|
+
* Not Found
|
|
7406
|
+
*/
|
|
7407
|
+
404: ErrorResponse;
|
|
7408
|
+
/**
|
|
7409
|
+
* Conflict
|
|
7410
|
+
*/
|
|
7411
|
+
409: ErrorResponse;
|
|
7412
|
+
/**
|
|
7413
|
+
* Internal server error
|
|
7414
|
+
*/
|
|
7415
|
+
500: ErrorResponse;
|
|
7416
|
+
/**
|
|
7417
|
+
* Service Unavailable
|
|
7418
|
+
*/
|
|
7419
|
+
503: ErrorResponse;
|
|
7420
|
+
};
|
|
7421
|
+
|
|
7422
|
+
export type GetMyValuesError = GetMyValuesErrors[keyof GetMyValuesErrors];
|
|
7423
|
+
|
|
7424
|
+
export type GetMyValuesResponses = {
|
|
7425
|
+
/**
|
|
7426
|
+
* Returns key values for the current user
|
|
7427
|
+
*/
|
|
7428
|
+
200: {
|
|
7429
|
+
values: Array<{
|
|
7430
|
+
id: string;
|
|
7431
|
+
dazlUserId: string;
|
|
7432
|
+
category: string;
|
|
7433
|
+
name: string;
|
|
7434
|
+
strVal: string | null;
|
|
7435
|
+
encryptedValId: string | null;
|
|
7436
|
+
createdAt: string;
|
|
7437
|
+
updatedAt: string;
|
|
7438
|
+
encryptedValue: string | null;
|
|
7439
|
+
}>;
|
|
7440
|
+
};
|
|
7441
|
+
};
|
|
7442
|
+
|
|
7443
|
+
export type GetMyValuesResponse = GetMyValuesResponses[keyof GetMyValuesResponses];
|
|
7444
|
+
|
|
7445
|
+
export type SetMyValueData = {
|
|
7446
|
+
body: {
|
|
7447
|
+
value: string;
|
|
7448
|
+
isSecret?: boolean;
|
|
7449
|
+
};
|
|
7450
|
+
path: {
|
|
7451
|
+
categ: string;
|
|
7452
|
+
name: string;
|
|
7453
|
+
};
|
|
7454
|
+
query?: never;
|
|
7455
|
+
url: '/my-user-key-value/values/{categ}/{name}';
|
|
7456
|
+
};
|
|
7457
|
+
|
|
7458
|
+
export type SetMyValueErrors = {
|
|
7459
|
+
/**
|
|
7460
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
7461
|
+
*/
|
|
7462
|
+
400: {
|
|
7463
|
+
message: string;
|
|
7464
|
+
issues?: string;
|
|
7465
|
+
};
|
|
7466
|
+
/**
|
|
7467
|
+
* Unauthorized
|
|
7468
|
+
*/
|
|
7469
|
+
401: ErrorResponse;
|
|
7470
|
+
/**
|
|
7471
|
+
* Forbidden
|
|
7472
|
+
*/
|
|
7473
|
+
403: ErrorResponse;
|
|
7474
|
+
/**
|
|
7475
|
+
* Not Found
|
|
7476
|
+
*/
|
|
7477
|
+
404: ErrorResponse;
|
|
7478
|
+
/**
|
|
7479
|
+
* Conflict
|
|
7480
|
+
*/
|
|
7481
|
+
409: ErrorResponse;
|
|
7482
|
+
/**
|
|
7483
|
+
* Internal server error
|
|
7484
|
+
*/
|
|
7485
|
+
500: ErrorResponse;
|
|
7486
|
+
/**
|
|
7487
|
+
* Service Unavailable
|
|
7488
|
+
*/
|
|
7489
|
+
503: ErrorResponse;
|
|
7490
|
+
};
|
|
7491
|
+
|
|
7492
|
+
export type SetMyValueError = SetMyValueErrors[keyof SetMyValueErrors];
|
|
7493
|
+
|
|
7494
|
+
export type SetMyValueResponses = {
|
|
7495
|
+
/**
|
|
7496
|
+
* Sets a single key value and returns its id
|
|
7497
|
+
*/
|
|
7498
|
+
200: {
|
|
7499
|
+
id: string;
|
|
7500
|
+
};
|
|
7501
|
+
};
|
|
7502
|
+
|
|
7503
|
+
export type SetMyValueResponse = SetMyValueResponses[keyof SetMyValueResponses];
|
|
7504
|
+
|
|
7505
|
+
export type DeleteMyCategValuesData = {
|
|
7506
|
+
body?: never;
|
|
7507
|
+
path: {
|
|
7508
|
+
categ: string;
|
|
7509
|
+
};
|
|
7510
|
+
query?: never;
|
|
7511
|
+
url: '/my-user-key-value/values/{categ}';
|
|
7512
|
+
};
|
|
7513
|
+
|
|
7514
|
+
export type DeleteMyCategValuesErrors = {
|
|
7515
|
+
/**
|
|
7516
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
7517
|
+
*/
|
|
7518
|
+
400: {
|
|
7519
|
+
message: string;
|
|
7520
|
+
issues?: string;
|
|
7521
|
+
};
|
|
7522
|
+
/**
|
|
7523
|
+
* Unauthorized
|
|
7524
|
+
*/
|
|
7525
|
+
401: ErrorResponse;
|
|
7526
|
+
/**
|
|
7527
|
+
* Forbidden
|
|
7528
|
+
*/
|
|
7529
|
+
403: ErrorResponse;
|
|
7530
|
+
/**
|
|
7531
|
+
* Not Found
|
|
7532
|
+
*/
|
|
7533
|
+
404: ErrorResponse;
|
|
7534
|
+
/**
|
|
7535
|
+
* Conflict
|
|
7536
|
+
*/
|
|
7537
|
+
409: ErrorResponse;
|
|
7538
|
+
/**
|
|
7539
|
+
* Internal server error
|
|
7540
|
+
*/
|
|
7541
|
+
500: ErrorResponse;
|
|
7542
|
+
/**
|
|
7543
|
+
* Service Unavailable
|
|
7544
|
+
*/
|
|
7545
|
+
503: ErrorResponse;
|
|
7546
|
+
};
|
|
7547
|
+
|
|
7548
|
+
export type DeleteMyCategValuesError = DeleteMyCategValuesErrors[keyof DeleteMyCategValuesErrors];
|
|
7549
|
+
|
|
7550
|
+
export type DeleteMyCategValuesResponses = {
|
|
7551
|
+
/**
|
|
7552
|
+
* Deletes all values for the category
|
|
7553
|
+
*/
|
|
7554
|
+
200: {
|
|
7555
|
+
categ: string;
|
|
7556
|
+
};
|
|
7557
|
+
};
|
|
7558
|
+
|
|
7559
|
+
export type DeleteMyCategValuesResponse = DeleteMyCategValuesResponses[keyof DeleteMyCategValuesResponses];
|
|
7560
|
+
|
|
7561
|
+
export type ReplaceMyCategValuesData = {
|
|
7562
|
+
body: {
|
|
7563
|
+
values: Array<{
|
|
7564
|
+
name: string;
|
|
7565
|
+
value: string;
|
|
7566
|
+
isSecret?: boolean;
|
|
7567
|
+
}>;
|
|
7568
|
+
};
|
|
7569
|
+
path: {
|
|
7570
|
+
categ: string;
|
|
7571
|
+
};
|
|
7572
|
+
query?: never;
|
|
7573
|
+
url: '/my-user-key-value/values/{categ}';
|
|
7574
|
+
};
|
|
7575
|
+
|
|
7576
|
+
export type ReplaceMyCategValuesErrors = {
|
|
7577
|
+
/**
|
|
7578
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
7579
|
+
*/
|
|
7580
|
+
400: {
|
|
7581
|
+
message: string;
|
|
7582
|
+
issues?: string;
|
|
7583
|
+
};
|
|
7584
|
+
/**
|
|
7585
|
+
* Unauthorized
|
|
7586
|
+
*/
|
|
7587
|
+
401: ErrorResponse;
|
|
7588
|
+
/**
|
|
7589
|
+
* Forbidden
|
|
7590
|
+
*/
|
|
7591
|
+
403: ErrorResponse;
|
|
7592
|
+
/**
|
|
7593
|
+
* Not Found
|
|
7594
|
+
*/
|
|
7595
|
+
404: ErrorResponse;
|
|
7596
|
+
/**
|
|
7597
|
+
* Conflict
|
|
7598
|
+
*/
|
|
7599
|
+
409: ErrorResponse;
|
|
7600
|
+
/**
|
|
7601
|
+
* Internal server error
|
|
7602
|
+
*/
|
|
7603
|
+
500: ErrorResponse;
|
|
7604
|
+
/**
|
|
7605
|
+
* Service Unavailable
|
|
7606
|
+
*/
|
|
7607
|
+
503: ErrorResponse;
|
|
7608
|
+
};
|
|
7609
|
+
|
|
7610
|
+
export type ReplaceMyCategValuesError = ReplaceMyCategValuesErrors[keyof ReplaceMyCategValuesErrors];
|
|
7611
|
+
|
|
7612
|
+
export type ReplaceMyCategValuesResponses = {
|
|
7613
|
+
/**
|
|
7614
|
+
* Replaces all values for the category and returns the upserted rows
|
|
7615
|
+
*/
|
|
7616
|
+
200: {
|
|
7617
|
+
values: Array<{
|
|
7618
|
+
id: string;
|
|
7619
|
+
name: string;
|
|
7620
|
+
}>;
|
|
7621
|
+
replaced: boolean;
|
|
7622
|
+
};
|
|
7623
|
+
};
|
|
7624
|
+
|
|
7625
|
+
export type ReplaceMyCategValuesResponse = ReplaceMyCategValuesResponses[keyof ReplaceMyCategValuesResponses];
|
|
7626
|
+
|
|
7376
7627
|
export type GetAllData = {
|
|
7377
7628
|
body?: never;
|
|
7378
7629
|
path?: never;
|
package/src/public/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
|
-
export { EnvConfig, Mcp, type Options, Ping, User, UserSettings, Workspace as Workspace2 } from './sdk.gen.ts';
|
|
4
|
-
export type { ClientOptions, ConnectionStatus, CreateSessionAuthorized, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionResponse, CreateSessionResponses, CreateSessionUnauthorized, CreateWorkspaceData, CreateWorkspaceError, CreateWorkspaceErrors, CreateWorkspaceResponse, CreateWorkspaceResponses, EnsureMyUserData, EnsureMyUserError, EnsureMyUserErrors, EnsureMyUserResponse, EnsureMyUserResponses, ErrorResponse, FeatureToggle, FinalizeConnectionData, FinalizeConnectionError, FinalizeConnectionErrors, FinalizeConnectionResponse, FinalizeConnectionResponses, GetAllData, GetAllError, GetAllErrors, GetAllResponse, GetAllResponses, GetAllWorkspacesData, GetAllWorkspacesError, GetAllWorkspacesErrors, GetAllWorkspacesResponse, GetAllWorkspacesResponses, GetConnectionStatusData, GetConnectionStatusError, GetConnectionStatusErrors, GetConnectionStatusResponse, GetConnectionStatusResponses, GetFeatureTogglesData, GetFeatureTogglesError, GetFeatureTogglesErrors, GetFeatureTogglesResponse, GetFeatureTogglesResponses, GetMyUserData, GetMyUserError, GetMyUserErrors, GetMyUserResponse, GetMyUserResponses, GetPingData, GetPingError, GetPingErrors, GetPingResponse, GetPingResponses, InitiateConnectionData, InitiateConnectionError, InitiateConnectionErrors, InitiateConnectionResponse, InitiateConnectionResponses, IntegrationName, OverrideAllData, OverrideAllError, OverrideAllErrors, OverrideAllResponse, OverrideAllResponses, UpdateMyUserData, UpdateMyUserError, UpdateMyUserErrors, UpdateMyUserResponse, UpdateMyUserResponses, UserRaw, Workspace } from './types.gen.ts';
|
|
3
|
+
export { EnvConfig, Mcp, type Options, Ping, User, UserKeyValue, UserSettings, Workspace as Workspace2 } from './sdk.gen.ts';
|
|
4
|
+
export type { ClientOptions, ConnectionStatus, CreateSessionAuthorized, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionResponse, CreateSessionResponses, CreateSessionUnauthorized, CreateWorkspaceData, CreateWorkspaceError, CreateWorkspaceErrors, CreateWorkspaceResponse, CreateWorkspaceResponses, DeleteMyCategValuesData, DeleteMyCategValuesError, DeleteMyCategValuesErrors, DeleteMyCategValuesResponse, DeleteMyCategValuesResponses, EnsureMyUserData, EnsureMyUserError, EnsureMyUserErrors, EnsureMyUserResponse, EnsureMyUserResponses, ErrorResponse, FeatureToggle, FinalizeConnectionData, FinalizeConnectionError, FinalizeConnectionErrors, FinalizeConnectionResponse, FinalizeConnectionResponses, GetAllData, GetAllError, GetAllErrors, GetAllResponse, GetAllResponses, GetAllWorkspacesData, GetAllWorkspacesError, GetAllWorkspacesErrors, GetAllWorkspacesResponse, GetAllWorkspacesResponses, GetConnectionStatusData, GetConnectionStatusError, GetConnectionStatusErrors, GetConnectionStatusResponse, GetConnectionStatusResponses, GetFeatureTogglesData, GetFeatureTogglesError, GetFeatureTogglesErrors, GetFeatureTogglesResponse, GetFeatureTogglesResponses, GetMyUserData, GetMyUserError, GetMyUserErrors, GetMyUserResponse, GetMyUserResponses, GetMyValuesData, GetMyValuesError, GetMyValuesErrors, GetMyValuesResponse, GetMyValuesResponses, GetPingData, GetPingError, GetPingErrors, GetPingResponse, GetPingResponses, InitiateConnectionData, InitiateConnectionError, InitiateConnectionErrors, InitiateConnectionResponse, InitiateConnectionResponses, IntegrationName, OverrideAllData, OverrideAllError, OverrideAllErrors, OverrideAllResponse, OverrideAllResponses, ReplaceMyCategValuesData, ReplaceMyCategValuesError, ReplaceMyCategValuesErrors, ReplaceMyCategValuesResponse, ReplaceMyCategValuesResponses, SetMyValueData, SetMyValueError, SetMyValueErrors, SetMyValueResponse, SetMyValueResponses, UpdateMyUserData, UpdateMyUserError, UpdateMyUserErrors, UpdateMyUserResponse, UpdateMyUserResponses, UserRaw, Workspace } from './types.gen.ts';
|
package/src/public/sdk.gen.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
2
|
|
|
3
3
|
import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client/index.ts';
|
|
4
|
-
import type { CreateSessionData, CreateSessionErrors, CreateSessionResponses, CreateWorkspaceData, CreateWorkspaceErrors, CreateWorkspaceResponses, EnsureMyUserData, EnsureMyUserErrors, EnsureMyUserResponses, FinalizeConnectionData, FinalizeConnectionErrors, FinalizeConnectionResponses, GetAllData, GetAllErrors, GetAllResponses, GetAllWorkspacesData, GetAllWorkspacesErrors, GetAllWorkspacesResponses, GetConnectionStatusData, GetConnectionStatusErrors, GetConnectionStatusResponses, GetFeatureTogglesData, GetFeatureTogglesErrors, GetFeatureTogglesResponses, GetMyUserData, GetMyUserErrors, GetMyUserResponses, GetPingData, GetPingErrors, GetPingResponses, InitiateConnectionData, InitiateConnectionErrors, InitiateConnectionResponses, OverrideAllData, OverrideAllErrors, OverrideAllResponses, UpdateMyUserData, UpdateMyUserErrors, UpdateMyUserResponses } from './types.gen.ts';
|
|
4
|
+
import type { CreateSessionData, CreateSessionErrors, CreateSessionResponses, CreateWorkspaceData, CreateWorkspaceErrors, CreateWorkspaceResponses, DeleteMyCategValuesData, DeleteMyCategValuesErrors, DeleteMyCategValuesResponses, EnsureMyUserData, EnsureMyUserErrors, EnsureMyUserResponses, FinalizeConnectionData, FinalizeConnectionErrors, FinalizeConnectionResponses, GetAllData, GetAllErrors, GetAllResponses, GetAllWorkspacesData, GetAllWorkspacesErrors, GetAllWorkspacesResponses, GetConnectionStatusData, GetConnectionStatusErrors, GetConnectionStatusResponses, GetFeatureTogglesData, GetFeatureTogglesErrors, GetFeatureTogglesResponses, GetMyUserData, GetMyUserErrors, GetMyUserResponses, GetMyValuesData, GetMyValuesErrors, GetMyValuesResponses, GetPingData, GetPingErrors, GetPingResponses, InitiateConnectionData, InitiateConnectionErrors, InitiateConnectionResponses, OverrideAllData, OverrideAllErrors, OverrideAllResponses, ReplaceMyCategValuesData, ReplaceMyCategValuesErrors, ReplaceMyCategValuesResponses, SetMyValueData, SetMyValueErrors, SetMyValueResponses, UpdateMyUserData, UpdateMyUserErrors, UpdateMyUserResponses } from './types.gen.ts';
|
|
5
5
|
|
|
6
6
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
|
|
7
7
|
/**
|
|
@@ -69,6 +69,38 @@ export class Workspace {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
export class UserKeyValue {
|
|
73
|
+
public static getMyValues<ThrowOnError extends boolean = false>(options: Options<GetMyValuesData, ThrowOnError>): RequestResult<GetMyValuesResponses, GetMyValuesErrors, ThrowOnError> {
|
|
74
|
+
return options.client.get<GetMyValuesResponses, GetMyValuesErrors, ThrowOnError>({ url: '/my-user-key-value/values', ...options });
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
public static setMyValue<ThrowOnError extends boolean = false>(options: Options<SetMyValueData, ThrowOnError>): RequestResult<SetMyValueResponses, SetMyValueErrors, ThrowOnError> {
|
|
78
|
+
return options.client.put<SetMyValueResponses, SetMyValueErrors, ThrowOnError>({
|
|
79
|
+
url: '/my-user-key-value/values/{categ}/{name}',
|
|
80
|
+
...options,
|
|
81
|
+
headers: {
|
|
82
|
+
'Content-Type': 'application/json',
|
|
83
|
+
...options.headers
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
public static deleteMyCategValues<ThrowOnError extends boolean = false>(options: Options<DeleteMyCategValuesData, ThrowOnError>): RequestResult<DeleteMyCategValuesResponses, DeleteMyCategValuesErrors, ThrowOnError> {
|
|
89
|
+
return options.client.delete<DeleteMyCategValuesResponses, DeleteMyCategValuesErrors, ThrowOnError>({ url: '/my-user-key-value/values/{categ}', ...options });
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
public static replaceMyCategValues<ThrowOnError extends boolean = false>(options: Options<ReplaceMyCategValuesData, ThrowOnError>): RequestResult<ReplaceMyCategValuesResponses, ReplaceMyCategValuesErrors, ThrowOnError> {
|
|
93
|
+
return options.client.put<ReplaceMyCategValuesResponses, ReplaceMyCategValuesErrors, ThrowOnError>({
|
|
94
|
+
url: '/my-user-key-value/values/{categ}',
|
|
95
|
+
...options,
|
|
96
|
+
headers: {
|
|
97
|
+
'Content-Type': 'application/json',
|
|
98
|
+
...options.headers
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
72
104
|
export class UserSettings {
|
|
73
105
|
public static getAll<ThrowOnError extends boolean = false>(options: Options<GetAllData, ThrowOnError>): RequestResult<GetAllResponses, GetAllErrors, ThrowOnError> {
|
|
74
106
|
return options.client.get<GetAllResponses, GetAllErrors, ThrowOnError>({ url: '/my-user-settings', ...options });
|
package/src/public/types.gen.ts
CHANGED
|
@@ -397,6 +397,257 @@ export type GetAllWorkspacesResponses = {
|
|
|
397
397
|
|
|
398
398
|
export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
|
|
399
399
|
|
|
400
|
+
export type GetMyValuesData = {
|
|
401
|
+
body?: never;
|
|
402
|
+
path?: never;
|
|
403
|
+
query?: {
|
|
404
|
+
/**
|
|
405
|
+
* Filter results to this category
|
|
406
|
+
*/
|
|
407
|
+
categ?: string;
|
|
408
|
+
};
|
|
409
|
+
url: '/my-user-key-value/values';
|
|
410
|
+
};
|
|
411
|
+
|
|
412
|
+
export type GetMyValuesErrors = {
|
|
413
|
+
/**
|
|
414
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
415
|
+
*/
|
|
416
|
+
400: {
|
|
417
|
+
message: string;
|
|
418
|
+
issues?: string;
|
|
419
|
+
};
|
|
420
|
+
/**
|
|
421
|
+
* Unauthorized
|
|
422
|
+
*/
|
|
423
|
+
401: ErrorResponse;
|
|
424
|
+
/**
|
|
425
|
+
* Forbidden
|
|
426
|
+
*/
|
|
427
|
+
403: ErrorResponse;
|
|
428
|
+
/**
|
|
429
|
+
* Not Found
|
|
430
|
+
*/
|
|
431
|
+
404: ErrorResponse;
|
|
432
|
+
/**
|
|
433
|
+
* Conflict
|
|
434
|
+
*/
|
|
435
|
+
409: ErrorResponse;
|
|
436
|
+
/**
|
|
437
|
+
* Internal server error
|
|
438
|
+
*/
|
|
439
|
+
500: ErrorResponse;
|
|
440
|
+
/**
|
|
441
|
+
* Service Unavailable
|
|
442
|
+
*/
|
|
443
|
+
503: ErrorResponse;
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
export type GetMyValuesError = GetMyValuesErrors[keyof GetMyValuesErrors];
|
|
447
|
+
|
|
448
|
+
export type GetMyValuesResponses = {
|
|
449
|
+
/**
|
|
450
|
+
* Returns key values for the current user
|
|
451
|
+
*/
|
|
452
|
+
200: {
|
|
453
|
+
values: Array<{
|
|
454
|
+
id: string;
|
|
455
|
+
dazlUserId: string;
|
|
456
|
+
category: string;
|
|
457
|
+
name: string;
|
|
458
|
+
strVal: string | null;
|
|
459
|
+
encryptedValId: string | null;
|
|
460
|
+
createdAt: string;
|
|
461
|
+
updatedAt: string;
|
|
462
|
+
encryptedValue: string | null;
|
|
463
|
+
}>;
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
export type GetMyValuesResponse = GetMyValuesResponses[keyof GetMyValuesResponses];
|
|
468
|
+
|
|
469
|
+
export type SetMyValueData = {
|
|
470
|
+
body: {
|
|
471
|
+
value: string;
|
|
472
|
+
isSecret?: boolean;
|
|
473
|
+
};
|
|
474
|
+
path: {
|
|
475
|
+
categ: string;
|
|
476
|
+
name: string;
|
|
477
|
+
};
|
|
478
|
+
query?: never;
|
|
479
|
+
url: '/my-user-key-value/values/{categ}/{name}';
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
export type SetMyValueErrors = {
|
|
483
|
+
/**
|
|
484
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
485
|
+
*/
|
|
486
|
+
400: {
|
|
487
|
+
message: string;
|
|
488
|
+
issues?: string;
|
|
489
|
+
};
|
|
490
|
+
/**
|
|
491
|
+
* Unauthorized
|
|
492
|
+
*/
|
|
493
|
+
401: ErrorResponse;
|
|
494
|
+
/**
|
|
495
|
+
* Forbidden
|
|
496
|
+
*/
|
|
497
|
+
403: ErrorResponse;
|
|
498
|
+
/**
|
|
499
|
+
* Not Found
|
|
500
|
+
*/
|
|
501
|
+
404: ErrorResponse;
|
|
502
|
+
/**
|
|
503
|
+
* Conflict
|
|
504
|
+
*/
|
|
505
|
+
409: ErrorResponse;
|
|
506
|
+
/**
|
|
507
|
+
* Internal server error
|
|
508
|
+
*/
|
|
509
|
+
500: ErrorResponse;
|
|
510
|
+
/**
|
|
511
|
+
* Service Unavailable
|
|
512
|
+
*/
|
|
513
|
+
503: ErrorResponse;
|
|
514
|
+
};
|
|
515
|
+
|
|
516
|
+
export type SetMyValueError = SetMyValueErrors[keyof SetMyValueErrors];
|
|
517
|
+
|
|
518
|
+
export type SetMyValueResponses = {
|
|
519
|
+
/**
|
|
520
|
+
* Sets a single key value and returns its id
|
|
521
|
+
*/
|
|
522
|
+
200: {
|
|
523
|
+
id: string;
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
export type SetMyValueResponse = SetMyValueResponses[keyof SetMyValueResponses];
|
|
528
|
+
|
|
529
|
+
export type DeleteMyCategValuesData = {
|
|
530
|
+
body?: never;
|
|
531
|
+
path: {
|
|
532
|
+
categ: string;
|
|
533
|
+
};
|
|
534
|
+
query?: never;
|
|
535
|
+
url: '/my-user-key-value/values/{categ}';
|
|
536
|
+
};
|
|
537
|
+
|
|
538
|
+
export type DeleteMyCategValuesErrors = {
|
|
539
|
+
/**
|
|
540
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
541
|
+
*/
|
|
542
|
+
400: {
|
|
543
|
+
message: string;
|
|
544
|
+
issues?: string;
|
|
545
|
+
};
|
|
546
|
+
/**
|
|
547
|
+
* Unauthorized
|
|
548
|
+
*/
|
|
549
|
+
401: ErrorResponse;
|
|
550
|
+
/**
|
|
551
|
+
* Forbidden
|
|
552
|
+
*/
|
|
553
|
+
403: ErrorResponse;
|
|
554
|
+
/**
|
|
555
|
+
* Not Found
|
|
556
|
+
*/
|
|
557
|
+
404: ErrorResponse;
|
|
558
|
+
/**
|
|
559
|
+
* Conflict
|
|
560
|
+
*/
|
|
561
|
+
409: ErrorResponse;
|
|
562
|
+
/**
|
|
563
|
+
* Internal server error
|
|
564
|
+
*/
|
|
565
|
+
500: ErrorResponse;
|
|
566
|
+
/**
|
|
567
|
+
* Service Unavailable
|
|
568
|
+
*/
|
|
569
|
+
503: ErrorResponse;
|
|
570
|
+
};
|
|
571
|
+
|
|
572
|
+
export type DeleteMyCategValuesError = DeleteMyCategValuesErrors[keyof DeleteMyCategValuesErrors];
|
|
573
|
+
|
|
574
|
+
export type DeleteMyCategValuesResponses = {
|
|
575
|
+
/**
|
|
576
|
+
* Deletes all values for the category
|
|
577
|
+
*/
|
|
578
|
+
200: {
|
|
579
|
+
categ: string;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
|
|
583
|
+
export type DeleteMyCategValuesResponse = DeleteMyCategValuesResponses[keyof DeleteMyCategValuesResponses];
|
|
584
|
+
|
|
585
|
+
export type ReplaceMyCategValuesData = {
|
|
586
|
+
body: {
|
|
587
|
+
values: Array<{
|
|
588
|
+
name: string;
|
|
589
|
+
value: string;
|
|
590
|
+
isSecret?: boolean;
|
|
591
|
+
}>;
|
|
592
|
+
};
|
|
593
|
+
path: {
|
|
594
|
+
categ: string;
|
|
595
|
+
};
|
|
596
|
+
query?: never;
|
|
597
|
+
url: '/my-user-key-value/values/{categ}';
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
export type ReplaceMyCategValuesErrors = {
|
|
601
|
+
/**
|
|
602
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
603
|
+
*/
|
|
604
|
+
400: {
|
|
605
|
+
message: string;
|
|
606
|
+
issues?: string;
|
|
607
|
+
};
|
|
608
|
+
/**
|
|
609
|
+
* Unauthorized
|
|
610
|
+
*/
|
|
611
|
+
401: ErrorResponse;
|
|
612
|
+
/**
|
|
613
|
+
* Forbidden
|
|
614
|
+
*/
|
|
615
|
+
403: ErrorResponse;
|
|
616
|
+
/**
|
|
617
|
+
* Not Found
|
|
618
|
+
*/
|
|
619
|
+
404: ErrorResponse;
|
|
620
|
+
/**
|
|
621
|
+
* Conflict
|
|
622
|
+
*/
|
|
623
|
+
409: ErrorResponse;
|
|
624
|
+
/**
|
|
625
|
+
* Internal server error
|
|
626
|
+
*/
|
|
627
|
+
500: ErrorResponse;
|
|
628
|
+
/**
|
|
629
|
+
* Service Unavailable
|
|
630
|
+
*/
|
|
631
|
+
503: ErrorResponse;
|
|
632
|
+
};
|
|
633
|
+
|
|
634
|
+
export type ReplaceMyCategValuesError = ReplaceMyCategValuesErrors[keyof ReplaceMyCategValuesErrors];
|
|
635
|
+
|
|
636
|
+
export type ReplaceMyCategValuesResponses = {
|
|
637
|
+
/**
|
|
638
|
+
* Replaces all values for the category and returns the upserted rows
|
|
639
|
+
*/
|
|
640
|
+
200: {
|
|
641
|
+
values: Array<{
|
|
642
|
+
id: string;
|
|
643
|
+
name: string;
|
|
644
|
+
}>;
|
|
645
|
+
replaced: boolean;
|
|
646
|
+
};
|
|
647
|
+
};
|
|
648
|
+
|
|
649
|
+
export type ReplaceMyCategValuesResponse = ReplaceMyCategValuesResponses[keyof ReplaceMyCategValuesResponses];
|
|
650
|
+
|
|
400
651
|
export type GetAllData = {
|
|
401
652
|
body?: never;
|
|
402
653
|
path?: never;
|