@dazl/api-client 1.0.8 → 1.0.10
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 +13 -2
- package/dist/db/generated-types.d.ts.map +1 -1
- package/dist/db/jsonb.types.d.ts +6 -0
- package/dist/db/jsonb.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 +15 -1
- package/dist/internal/sdk.gen.d.ts.map +1 -1
- package/dist/internal/sdk.gen.js +54 -0
- package/dist/internal/sdk.gen.js.map +1 -1
- package/dist/internal/types.gen.d.ts +333 -0
- 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 +11 -1
- package/dist/public/sdk.gen.d.ts.map +1 -1
- package/dist/public/sdk.gen.js +50 -0
- package/dist/public/sdk.gen.js.map +1 -1
- package/dist/public/types.gen.d.ts +333 -0
- package/dist/public/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/db/generated-types.ts +14 -2
- package/src/db/jsonb.types.ts +7 -0
- package/src/internal/index.ts +2 -2
- package/src/internal/sdk.gen.ts +61 -1
- package/src/internal/types.gen.ts +367 -0
- package/src/public/index.ts +2 -2
- package/src/public/sdk.gen.ts +57 -1
- package/src/public/types.gen.ts +367 -0
|
@@ -470,6 +470,21 @@ export type Workspace = {
|
|
|
470
470
|
dazlUserId: string;
|
|
471
471
|
createdAt: string;
|
|
472
472
|
};
|
|
473
|
+
export type CreateSessionAuthorized = {
|
|
474
|
+
status: 'authorized';
|
|
475
|
+
url: string;
|
|
476
|
+
headers?: {
|
|
477
|
+
[key: string]: string;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
export type CreateSessionUnauthorized = {
|
|
481
|
+
status: 'unauthorized';
|
|
482
|
+
};
|
|
483
|
+
export type IntegrationName = 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
|
|
484
|
+
export type ConnectionStatus = {
|
|
485
|
+
integrationName: IntegrationName;
|
|
486
|
+
isConnected: boolean;
|
|
487
|
+
};
|
|
473
488
|
export type EnsureMyUserData = {
|
|
474
489
|
body?: {
|
|
475
490
|
name?: string;
|
|
@@ -6785,4 +6800,322 @@ export type GetAllWorkspacesResponses = {
|
|
|
6785
6800
|
};
|
|
6786
6801
|
};
|
|
6787
6802
|
export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses];
|
|
6803
|
+
export type GetAllData = {
|
|
6804
|
+
body?: never;
|
|
6805
|
+
path?: never;
|
|
6806
|
+
query?: never;
|
|
6807
|
+
url: '/my-user-settings';
|
|
6808
|
+
};
|
|
6809
|
+
export type GetAllErrors = {
|
|
6810
|
+
/**
|
|
6811
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
6812
|
+
*/
|
|
6813
|
+
400: {
|
|
6814
|
+
message: string;
|
|
6815
|
+
issues?: string;
|
|
6816
|
+
};
|
|
6817
|
+
/**
|
|
6818
|
+
* Unauthorized
|
|
6819
|
+
*/
|
|
6820
|
+
401: ErrorResponse;
|
|
6821
|
+
/**
|
|
6822
|
+
* Forbidden
|
|
6823
|
+
*/
|
|
6824
|
+
403: ErrorResponse;
|
|
6825
|
+
/**
|
|
6826
|
+
* Not Found
|
|
6827
|
+
*/
|
|
6828
|
+
404: ErrorResponse;
|
|
6829
|
+
/**
|
|
6830
|
+
* Conflict
|
|
6831
|
+
*/
|
|
6832
|
+
409: ErrorResponse;
|
|
6833
|
+
/**
|
|
6834
|
+
* Internal server error
|
|
6835
|
+
*/
|
|
6836
|
+
500: ErrorResponse;
|
|
6837
|
+
/**
|
|
6838
|
+
* Service Unavailable
|
|
6839
|
+
*/
|
|
6840
|
+
503: ErrorResponse;
|
|
6841
|
+
};
|
|
6842
|
+
export type GetAllError = GetAllErrors[keyof GetAllErrors];
|
|
6843
|
+
export type GetAllResponses = {
|
|
6844
|
+
/**
|
|
6845
|
+
* Returns user settings (empty object if none exist)
|
|
6846
|
+
*/
|
|
6847
|
+
200: {
|
|
6848
|
+
settings: {
|
|
6849
|
+
[key: string]: unknown;
|
|
6850
|
+
};
|
|
6851
|
+
};
|
|
6852
|
+
};
|
|
6853
|
+
export type GetAllResponse = GetAllResponses[keyof GetAllResponses];
|
|
6854
|
+
export type OverrideAllData = {
|
|
6855
|
+
body: {
|
|
6856
|
+
settings: {
|
|
6857
|
+
[key: string]: unknown;
|
|
6858
|
+
};
|
|
6859
|
+
};
|
|
6860
|
+
path?: never;
|
|
6861
|
+
query?: never;
|
|
6862
|
+
url: '/my-user-settings';
|
|
6863
|
+
};
|
|
6864
|
+
export type OverrideAllErrors = {
|
|
6865
|
+
/**
|
|
6866
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
6867
|
+
*/
|
|
6868
|
+
400: {
|
|
6869
|
+
message: string;
|
|
6870
|
+
issues?: string;
|
|
6871
|
+
};
|
|
6872
|
+
/**
|
|
6873
|
+
* Unauthorized
|
|
6874
|
+
*/
|
|
6875
|
+
401: ErrorResponse;
|
|
6876
|
+
/**
|
|
6877
|
+
* Forbidden
|
|
6878
|
+
*/
|
|
6879
|
+
403: ErrorResponse;
|
|
6880
|
+
/**
|
|
6881
|
+
* Not Found
|
|
6882
|
+
*/
|
|
6883
|
+
404: ErrorResponse;
|
|
6884
|
+
/**
|
|
6885
|
+
* Conflict
|
|
6886
|
+
*/
|
|
6887
|
+
409: ErrorResponse;
|
|
6888
|
+
/**
|
|
6889
|
+
* Internal server error
|
|
6890
|
+
*/
|
|
6891
|
+
500: ErrorResponse;
|
|
6892
|
+
/**
|
|
6893
|
+
* Service Unavailable
|
|
6894
|
+
*/
|
|
6895
|
+
503: ErrorResponse;
|
|
6896
|
+
};
|
|
6897
|
+
export type OverrideAllError = OverrideAllErrors[keyof OverrideAllErrors];
|
|
6898
|
+
export type OverrideAllResponses = {
|
|
6899
|
+
/**
|
|
6900
|
+
* Settings updated successfully
|
|
6901
|
+
*/
|
|
6902
|
+
200: {
|
|
6903
|
+
success: boolean;
|
|
6904
|
+
};
|
|
6905
|
+
};
|
|
6906
|
+
export type OverrideAllResponse = OverrideAllResponses[keyof OverrideAllResponses];
|
|
6907
|
+
export type CreateSessionData = {
|
|
6908
|
+
body: {
|
|
6909
|
+
integrationName: IntegrationName;
|
|
6910
|
+
};
|
|
6911
|
+
path?: never;
|
|
6912
|
+
query?: never;
|
|
6913
|
+
url: '/mcp/create-session';
|
|
6914
|
+
};
|
|
6915
|
+
export type CreateSessionErrors = {
|
|
6916
|
+
/**
|
|
6917
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
6918
|
+
*/
|
|
6919
|
+
400: {
|
|
6920
|
+
message: string;
|
|
6921
|
+
issues?: string;
|
|
6922
|
+
};
|
|
6923
|
+
/**
|
|
6924
|
+
* Unauthorized
|
|
6925
|
+
*/
|
|
6926
|
+
401: ErrorResponse;
|
|
6927
|
+
/**
|
|
6928
|
+
* Forbidden
|
|
6929
|
+
*/
|
|
6930
|
+
403: ErrorResponse;
|
|
6931
|
+
/**
|
|
6932
|
+
* Not Found
|
|
6933
|
+
*/
|
|
6934
|
+
404: ErrorResponse;
|
|
6935
|
+
/**
|
|
6936
|
+
* Conflict
|
|
6937
|
+
*/
|
|
6938
|
+
409: ErrorResponse;
|
|
6939
|
+
/**
|
|
6940
|
+
* Internal server error
|
|
6941
|
+
*/
|
|
6942
|
+
500: ErrorResponse;
|
|
6943
|
+
/**
|
|
6944
|
+
* Service Unavailable
|
|
6945
|
+
*/
|
|
6946
|
+
503: ErrorResponse;
|
|
6947
|
+
};
|
|
6948
|
+
export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
|
|
6949
|
+
export type CreateSessionResponses = {
|
|
6950
|
+
/**
|
|
6951
|
+
* An authorized MCP session (real url + headers) or an unauthorized marker
|
|
6952
|
+
*/
|
|
6953
|
+
200: ({
|
|
6954
|
+
status: 'authorized';
|
|
6955
|
+
} & CreateSessionAuthorized) | ({
|
|
6956
|
+
status: 'unauthorized';
|
|
6957
|
+
} & CreateSessionUnauthorized);
|
|
6958
|
+
};
|
|
6959
|
+
export type CreateSessionResponse = CreateSessionResponses[keyof CreateSessionResponses];
|
|
6960
|
+
export type InitiateConnectionData = {
|
|
6961
|
+
body: {
|
|
6962
|
+
integrationName: IntegrationName;
|
|
6963
|
+
/**
|
|
6964
|
+
* Where the browser lands after OAuth; built by the caller
|
|
6965
|
+
*/
|
|
6966
|
+
callbackUrl: string;
|
|
6967
|
+
};
|
|
6968
|
+
path?: never;
|
|
6969
|
+
query?: never;
|
|
6970
|
+
url: '/mcp/connections';
|
|
6971
|
+
};
|
|
6972
|
+
export type InitiateConnectionErrors = {
|
|
6973
|
+
/**
|
|
6974
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
6975
|
+
*/
|
|
6976
|
+
400: {
|
|
6977
|
+
message: string;
|
|
6978
|
+
issues?: string;
|
|
6979
|
+
};
|
|
6980
|
+
/**
|
|
6981
|
+
* Unauthorized
|
|
6982
|
+
*/
|
|
6983
|
+
401: ErrorResponse;
|
|
6984
|
+
/**
|
|
6985
|
+
* Forbidden
|
|
6986
|
+
*/
|
|
6987
|
+
403: ErrorResponse;
|
|
6988
|
+
/**
|
|
6989
|
+
* Not Found
|
|
6990
|
+
*/
|
|
6991
|
+
404: ErrorResponse;
|
|
6992
|
+
/**
|
|
6993
|
+
* Conflict
|
|
6994
|
+
*/
|
|
6995
|
+
409: ErrorResponse;
|
|
6996
|
+
/**
|
|
6997
|
+
* Internal server error
|
|
6998
|
+
*/
|
|
6999
|
+
500: ErrorResponse;
|
|
7000
|
+
/**
|
|
7001
|
+
* Service Unavailable
|
|
7002
|
+
*/
|
|
7003
|
+
503: ErrorResponse;
|
|
7004
|
+
};
|
|
7005
|
+
export type InitiateConnectionError = InitiateConnectionErrors[keyof InitiateConnectionErrors];
|
|
7006
|
+
export type InitiateConnectionResponses = {
|
|
7007
|
+
/**
|
|
7008
|
+
* The OAuth connection request id and the redirect URL to send the user to
|
|
7009
|
+
*/
|
|
7010
|
+
200: {
|
|
7011
|
+
connectionRequestId: string;
|
|
7012
|
+
redirectUrl: string;
|
|
7013
|
+
};
|
|
7014
|
+
};
|
|
7015
|
+
export type InitiateConnectionResponse = InitiateConnectionResponses[keyof InitiateConnectionResponses];
|
|
7016
|
+
export type FinalizeConnectionData = {
|
|
7017
|
+
body: {
|
|
7018
|
+
integrationName: IntegrationName;
|
|
7019
|
+
};
|
|
7020
|
+
path: {
|
|
7021
|
+
connectionRequestId: string;
|
|
7022
|
+
};
|
|
7023
|
+
query?: never;
|
|
7024
|
+
url: '/mcp/connections/{connectionRequestId}/finalize';
|
|
7025
|
+
};
|
|
7026
|
+
export type FinalizeConnectionErrors = {
|
|
7027
|
+
/**
|
|
7028
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
7029
|
+
*/
|
|
7030
|
+
400: {
|
|
7031
|
+
message: string;
|
|
7032
|
+
issues?: string;
|
|
7033
|
+
};
|
|
7034
|
+
/**
|
|
7035
|
+
* Unauthorized
|
|
7036
|
+
*/
|
|
7037
|
+
401: ErrorResponse;
|
|
7038
|
+
/**
|
|
7039
|
+
* Forbidden
|
|
7040
|
+
*/
|
|
7041
|
+
403: ErrorResponse;
|
|
7042
|
+
/**
|
|
7043
|
+
* Not Found
|
|
7044
|
+
*/
|
|
7045
|
+
404: ErrorResponse;
|
|
7046
|
+
/**
|
|
7047
|
+
* Conflict
|
|
7048
|
+
*/
|
|
7049
|
+
409: ErrorResponse;
|
|
7050
|
+
/**
|
|
7051
|
+
* Internal server error
|
|
7052
|
+
*/
|
|
7053
|
+
500: ErrorResponse;
|
|
7054
|
+
/**
|
|
7055
|
+
* Service Unavailable
|
|
7056
|
+
*/
|
|
7057
|
+
503: ErrorResponse;
|
|
7058
|
+
};
|
|
7059
|
+
export type FinalizeConnectionError = FinalizeConnectionErrors[keyof FinalizeConnectionErrors];
|
|
7060
|
+
export type FinalizeConnectionResponses = {
|
|
7061
|
+
/**
|
|
7062
|
+
* The persisted connected-account id (ca_...)
|
|
7063
|
+
*/
|
|
7064
|
+
200: {
|
|
7065
|
+
connectionId: string;
|
|
7066
|
+
};
|
|
7067
|
+
};
|
|
7068
|
+
export type FinalizeConnectionResponse = FinalizeConnectionResponses[keyof FinalizeConnectionResponses];
|
|
7069
|
+
export type GetConnectionStatusData = {
|
|
7070
|
+
body?: never;
|
|
7071
|
+
path?: never;
|
|
7072
|
+
query?: {
|
|
7073
|
+
/**
|
|
7074
|
+
* If omitted, returns status for all integrations
|
|
7075
|
+
*/
|
|
7076
|
+
integrationName?: 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
|
|
7077
|
+
};
|
|
7078
|
+
url: '/mcp/connections/status';
|
|
7079
|
+
};
|
|
7080
|
+
export type GetConnectionStatusErrors = {
|
|
7081
|
+
/**
|
|
7082
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
7083
|
+
*/
|
|
7084
|
+
400: {
|
|
7085
|
+
message: string;
|
|
7086
|
+
issues?: string;
|
|
7087
|
+
};
|
|
7088
|
+
/**
|
|
7089
|
+
* Unauthorized
|
|
7090
|
+
*/
|
|
7091
|
+
401: ErrorResponse;
|
|
7092
|
+
/**
|
|
7093
|
+
* Forbidden
|
|
7094
|
+
*/
|
|
7095
|
+
403: ErrorResponse;
|
|
7096
|
+
/**
|
|
7097
|
+
* Not Found
|
|
7098
|
+
*/
|
|
7099
|
+
404: ErrorResponse;
|
|
7100
|
+
/**
|
|
7101
|
+
* Conflict
|
|
7102
|
+
*/
|
|
7103
|
+
409: ErrorResponse;
|
|
7104
|
+
/**
|
|
7105
|
+
* Internal server error
|
|
7106
|
+
*/
|
|
7107
|
+
500: ErrorResponse;
|
|
7108
|
+
/**
|
|
7109
|
+
* Service Unavailable
|
|
7110
|
+
*/
|
|
7111
|
+
503: ErrorResponse;
|
|
7112
|
+
};
|
|
7113
|
+
export type GetConnectionStatusError = GetConnectionStatusErrors[keyof GetConnectionStatusErrors];
|
|
7114
|
+
export type GetConnectionStatusResponses = {
|
|
7115
|
+
/**
|
|
7116
|
+
* Active-connection status for the requested integration(s)
|
|
7117
|
+
*/
|
|
7118
|
+
200: Array<ConnectionStatus>;
|
|
7119
|
+
};
|
|
7120
|
+
export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
|
|
6788
7121
|
//# sourceMappingURL=types.gen.d.ts.map
|