@dazl/api-client 1.0.9 → 1.0.11

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.
@@ -148,6 +148,7 @@ export type ProjectRaw = {
148
148
  */
149
149
  updatedAt?: number;
150
150
  }>;
151
+ workspaceId: string | null;
151
152
  };
152
153
  export type OwnerDazlId = {
153
154
  /**
@@ -467,8 +468,27 @@ export type FeatureToggle = {
467
468
  export type Workspace = {
468
469
  id: string;
469
470
  name: string;
470
- dazlUserId: string;
471
+ /**
472
+ * The user which created the workspace. Null if the user was deleted.
473
+ */
474
+ dazlUserId: string | null;
471
475
  createdAt: string;
476
+ isDefault: boolean;
477
+ };
478
+ export type CreateSessionAuthorized = {
479
+ status: 'authorized';
480
+ url: string;
481
+ headers?: {
482
+ [key: string]: string;
483
+ };
484
+ };
485
+ export type CreateSessionUnauthorized = {
486
+ status: 'unauthorized';
487
+ };
488
+ export type IntegrationName = 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
489
+ export type ConnectionStatus = {
490
+ integrationName: IntegrationName;
491
+ isConnected: boolean;
472
492
  };
473
493
  export type EnsureMyUserData = {
474
494
  body?: {
@@ -2411,6 +2431,7 @@ export type CreateProjectData = {
2411
2431
  latestScreenshot?: string | null;
2412
2432
  originTemplateId?: string | null;
2413
2433
  createdAt?: string;
2434
+ workspaceId?: string;
2414
2435
  projectInitData?: {
2415
2436
  gitRepoURL: string;
2416
2437
  gitBranchToClone?: string | null;
@@ -6889,4 +6910,218 @@ export type OverrideAllResponses = {
6889
6910
  };
6890
6911
  };
6891
6912
  export type OverrideAllResponse = OverrideAllResponses[keyof OverrideAllResponses];
6913
+ export type CreateSessionData = {
6914
+ body: {
6915
+ integrationName: IntegrationName;
6916
+ };
6917
+ path?: never;
6918
+ query?: never;
6919
+ url: '/mcp/create-session';
6920
+ };
6921
+ export type CreateSessionErrors = {
6922
+ /**
6923
+ * Bad request - Invalid parameters or malformed JSON
6924
+ */
6925
+ 400: {
6926
+ message: string;
6927
+ issues?: string;
6928
+ };
6929
+ /**
6930
+ * Unauthorized
6931
+ */
6932
+ 401: ErrorResponse;
6933
+ /**
6934
+ * Forbidden
6935
+ */
6936
+ 403: ErrorResponse;
6937
+ /**
6938
+ * Not Found
6939
+ */
6940
+ 404: ErrorResponse;
6941
+ /**
6942
+ * Conflict
6943
+ */
6944
+ 409: ErrorResponse;
6945
+ /**
6946
+ * Internal server error
6947
+ */
6948
+ 500: ErrorResponse;
6949
+ /**
6950
+ * Service Unavailable
6951
+ */
6952
+ 503: ErrorResponse;
6953
+ };
6954
+ export type CreateSessionError = CreateSessionErrors[keyof CreateSessionErrors];
6955
+ export type CreateSessionResponses = {
6956
+ /**
6957
+ * An authorized MCP session (real url + headers) or an unauthorized marker
6958
+ */
6959
+ 200: ({
6960
+ status: 'authorized';
6961
+ } & CreateSessionAuthorized) | ({
6962
+ status: 'unauthorized';
6963
+ } & CreateSessionUnauthorized);
6964
+ };
6965
+ export type CreateSessionResponse = CreateSessionResponses[keyof CreateSessionResponses];
6966
+ export type InitiateConnectionData = {
6967
+ body: {
6968
+ integrationName: IntegrationName;
6969
+ /**
6970
+ * Where the browser lands after OAuth; built by the caller
6971
+ */
6972
+ callbackUrl: string;
6973
+ };
6974
+ path?: never;
6975
+ query?: never;
6976
+ url: '/mcp/connections';
6977
+ };
6978
+ export type InitiateConnectionErrors = {
6979
+ /**
6980
+ * Bad request - Invalid parameters or malformed JSON
6981
+ */
6982
+ 400: {
6983
+ message: string;
6984
+ issues?: string;
6985
+ };
6986
+ /**
6987
+ * Unauthorized
6988
+ */
6989
+ 401: ErrorResponse;
6990
+ /**
6991
+ * Forbidden
6992
+ */
6993
+ 403: ErrorResponse;
6994
+ /**
6995
+ * Not Found
6996
+ */
6997
+ 404: ErrorResponse;
6998
+ /**
6999
+ * Conflict
7000
+ */
7001
+ 409: ErrorResponse;
7002
+ /**
7003
+ * Internal server error
7004
+ */
7005
+ 500: ErrorResponse;
7006
+ /**
7007
+ * Service Unavailable
7008
+ */
7009
+ 503: ErrorResponse;
7010
+ };
7011
+ export type InitiateConnectionError = InitiateConnectionErrors[keyof InitiateConnectionErrors];
7012
+ export type InitiateConnectionResponses = {
7013
+ /**
7014
+ * The OAuth connection request id and the redirect URL to send the user to
7015
+ */
7016
+ 200: {
7017
+ connectionRequestId: string;
7018
+ redirectUrl: string;
7019
+ };
7020
+ };
7021
+ export type InitiateConnectionResponse = InitiateConnectionResponses[keyof InitiateConnectionResponses];
7022
+ export type FinalizeConnectionData = {
7023
+ body: {
7024
+ integrationName: IntegrationName;
7025
+ };
7026
+ path: {
7027
+ connectionRequestId: string;
7028
+ };
7029
+ query?: never;
7030
+ url: '/mcp/connections/{connectionRequestId}/finalize';
7031
+ };
7032
+ export type FinalizeConnectionErrors = {
7033
+ /**
7034
+ * Bad request - Invalid parameters or malformed JSON
7035
+ */
7036
+ 400: {
7037
+ message: string;
7038
+ issues?: string;
7039
+ };
7040
+ /**
7041
+ * Unauthorized
7042
+ */
7043
+ 401: ErrorResponse;
7044
+ /**
7045
+ * Forbidden
7046
+ */
7047
+ 403: ErrorResponse;
7048
+ /**
7049
+ * Not Found
7050
+ */
7051
+ 404: ErrorResponse;
7052
+ /**
7053
+ * Conflict
7054
+ */
7055
+ 409: ErrorResponse;
7056
+ /**
7057
+ * Internal server error
7058
+ */
7059
+ 500: ErrorResponse;
7060
+ /**
7061
+ * Service Unavailable
7062
+ */
7063
+ 503: ErrorResponse;
7064
+ };
7065
+ export type FinalizeConnectionError = FinalizeConnectionErrors[keyof FinalizeConnectionErrors];
7066
+ export type FinalizeConnectionResponses = {
7067
+ /**
7068
+ * The persisted connected-account id (ca_...)
7069
+ */
7070
+ 200: {
7071
+ connectionId: string;
7072
+ };
7073
+ };
7074
+ export type FinalizeConnectionResponse = FinalizeConnectionResponses[keyof FinalizeConnectionResponses];
7075
+ export type GetConnectionStatusData = {
7076
+ body?: never;
7077
+ path?: never;
7078
+ query?: {
7079
+ /**
7080
+ * If omitted, returns status for all integrations
7081
+ */
7082
+ integrationName?: 'confluence' | 'figma' | 'google-docs' | 'google-sheets' | 'google-slides' | 'jira' | 'linear' | 'miro' | 'notion';
7083
+ };
7084
+ url: '/mcp/connections/status';
7085
+ };
7086
+ export type GetConnectionStatusErrors = {
7087
+ /**
7088
+ * Bad request - Invalid parameters or malformed JSON
7089
+ */
7090
+ 400: {
7091
+ message: string;
7092
+ issues?: string;
7093
+ };
7094
+ /**
7095
+ * Unauthorized
7096
+ */
7097
+ 401: ErrorResponse;
7098
+ /**
7099
+ * Forbidden
7100
+ */
7101
+ 403: ErrorResponse;
7102
+ /**
7103
+ * Not Found
7104
+ */
7105
+ 404: ErrorResponse;
7106
+ /**
7107
+ * Conflict
7108
+ */
7109
+ 409: ErrorResponse;
7110
+ /**
7111
+ * Internal server error
7112
+ */
7113
+ 500: ErrorResponse;
7114
+ /**
7115
+ * Service Unavailable
7116
+ */
7117
+ 503: ErrorResponse;
7118
+ };
7119
+ export type GetConnectionStatusError = GetConnectionStatusErrors[keyof GetConnectionStatusErrors];
7120
+ export type GetConnectionStatusResponses = {
7121
+ /**
7122
+ * Active-connection status for the requested integration(s)
7123
+ */
7124
+ 200: Array<ConnectionStatus>;
7125
+ };
7126
+ export type GetConnectionStatusResponse = GetConnectionStatusResponses[keyof GetConnectionStatusResponses];
6892
7127
  //# sourceMappingURL=types.gen.d.ts.map