@dazl/api-client 1.0.9 → 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.
@@ -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;
@@ -6889,4 +6904,218 @@ export type OverrideAllResponses = {
6889
6904
  };
6890
6905
  };
6891
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];
6892
7121
  //# sourceMappingURL=types.gen.d.ts.map