@renai-labs/sdk 0.1.5 → 0.1.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.
@@ -257,6 +257,10 @@ export type Vault = {
257
257
  export type SlackChannel = {
258
258
  id: string;
259
259
  name: string;
260
+ projectId: string | null;
261
+ defaultProjectAgentId: string | null;
262
+ fallbackSenderUserId: string | null;
263
+ projectName: string | null;
260
264
  };
261
265
  export type SlackStatus = {
262
266
  hasInstallation: boolean;
@@ -270,18 +274,13 @@ export type SlackInstallationResponse = {
270
274
  teamName: string | null;
271
275
  botUserId: string;
272
276
  scope: string;
273
- channelMappings: {
274
- [key: string]: {
275
- channelName: string | null;
276
- projectId: string;
277
- defaultProjectAgentId: string | null;
278
- fallbackSenderUserId: string | null;
279
- };
280
- };
281
277
  createdAt: string;
282
278
  updatedAt: string;
283
279
  archivedAt: string | null;
284
280
  };
281
+ export type SlackOAuthStartResult = {
282
+ url: string;
283
+ };
285
284
  export type WebhookTriggerCreateResult = {
286
285
  trigger: WebhookTrigger;
287
286
  plaintextSecret: string | null;
@@ -757,6 +756,9 @@ export type GithubInstallationResponse = {
757
756
  updatedAt: string;
758
757
  archivedAt: string | null;
759
758
  };
759
+ export type GithubOAuthStartResult = {
760
+ url: string;
761
+ };
760
762
  export type StoreStartUploadResponse = {
761
763
  url: string;
762
764
  expiresAt: string;
@@ -2916,7 +2918,7 @@ export type FileStoreFilesFinalizeUploadResponses = {
2916
2918
  200: FileStoreFile;
2917
2919
  };
2918
2920
  export type FileStoreFilesFinalizeUploadResponse = FileStoreFilesFinalizeUploadResponses[keyof FileStoreFilesFinalizeUploadResponses];
2919
- export type GithubStatusData = {
2921
+ export type GithubUninstallData = {
2920
2922
  body?: never;
2921
2923
  path?: never;
2922
2924
  query?: {
@@ -2925,9 +2927,9 @@ export type GithubStatusData = {
2925
2927
  */
2926
2928
  scope?: "user";
2927
2929
  };
2928
- url: "/api/github/status";
2930
+ url: "/api/github/install";
2929
2931
  };
2930
- export type GithubStatusErrors = {
2932
+ export type GithubUninstallErrors = {
2931
2933
  /**
2932
2934
  * Unauthorized
2933
2935
  */
@@ -2940,16 +2942,22 @@ export type GithubStatusErrors = {
2940
2942
  403: {
2941
2943
  error: string;
2942
2944
  };
2945
+ /**
2946
+ * Not found
2947
+ */
2948
+ 404: {
2949
+ error: string;
2950
+ };
2943
2951
  };
2944
- export type GithubStatusError = GithubStatusErrors[keyof GithubStatusErrors];
2945
- export type GithubStatusResponses = {
2952
+ export type GithubUninstallError = GithubUninstallErrors[keyof GithubUninstallErrors];
2953
+ export type GithubUninstallResponses = {
2946
2954
  /**
2947
- * GitHub configuration status
2955
+ * Removed
2948
2956
  */
2949
- 200: GithubStatus;
2957
+ 204: void;
2950
2958
  };
2951
- export type GithubStatusResponse = GithubStatusResponses[keyof GithubStatusResponses];
2952
- export type GithubInstallationListData = {
2959
+ export type GithubUninstallResponse = GithubUninstallResponses[keyof GithubUninstallResponses];
2960
+ export type GithubInstallData = {
2953
2961
  body?: never;
2954
2962
  path?: never;
2955
2963
  query?: {
@@ -2957,10 +2965,11 @@ export type GithubInstallationListData = {
2957
2965
  * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
2958
2966
  */
2959
2967
  scope?: "user";
2968
+ returnTo?: string;
2960
2969
  };
2961
- url: "/api/github/installations";
2970
+ url: "/api/github/install";
2962
2971
  };
2963
- export type GithubInstallationListErrors = {
2972
+ export type GithubInstallErrors = {
2964
2973
  /**
2965
2974
  * Unauthorized
2966
2975
  */
@@ -2974,28 +2983,27 @@ export type GithubInstallationListErrors = {
2974
2983
  error: string;
2975
2984
  };
2976
2985
  };
2977
- export type GithubInstallationListError = GithubInstallationListErrors[keyof GithubInstallationListErrors];
2978
- export type GithubInstallationListResponses = {
2986
+ export type GithubInstallError = GithubInstallErrors[keyof GithubInstallErrors];
2987
+ export type GithubInstallResponses = {
2979
2988
  /**
2980
- * Installations
2989
+ * Authorization URL for the user to visit
2981
2990
  */
2982
- 200: Array<GithubInstallationResponse>;
2991
+ 200: GithubOAuthStartResult;
2983
2992
  };
2984
- export type GithubInstallationListResponse = GithubInstallationListResponses[keyof GithubInstallationListResponses];
2985
- export type GithubInstallationReposListData = {
2993
+ export type GithubInstallResponse = GithubInstallResponses[keyof GithubInstallResponses];
2994
+ export type GithubConnectData = {
2986
2995
  body?: never;
2987
- path: {
2988
- id: string;
2989
- };
2996
+ path?: never;
2990
2997
  query?: {
2991
2998
  /**
2992
2999
  * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
2993
3000
  */
2994
3001
  scope?: "user";
3002
+ returnTo?: string;
2995
3003
  };
2996
- url: "/api/github/installations/{id}/repos";
3004
+ url: "/api/github/connect";
2997
3005
  };
2998
- export type GithubInstallationReposListErrors = {
3006
+ export type GithubConnectErrors = {
2999
3007
  /**
3000
3008
  * Unauthorized
3001
3009
  */
@@ -3008,37 +3016,27 @@ export type GithubInstallationReposListErrors = {
3008
3016
  403: {
3009
3017
  error: string;
3010
3018
  };
3011
- /**
3012
- * Not found
3013
- */
3014
- 404: {
3015
- error: string;
3016
- };
3017
3019
  };
3018
- export type GithubInstallationReposListError = GithubInstallationReposListErrors[keyof GithubInstallationReposListErrors];
3019
- export type GithubInstallationReposListResponses = {
3020
+ export type GithubConnectError = GithubConnectErrors[keyof GithubConnectErrors];
3021
+ export type GithubConnectResponses = {
3020
3022
  /**
3021
- * Repositories
3023
+ * Authorization URL for the user to visit
3022
3024
  */
3023
- 200: Array<{
3024
- fullName: string;
3025
- }>;
3025
+ 200: GithubOAuthStartResult;
3026
3026
  };
3027
- export type GithubInstallationReposListResponse = GithubInstallationReposListResponses[keyof GithubInstallationReposListResponses];
3028
- export type GithubInstallationRefreshData = {
3027
+ export type GithubConnectResponse = GithubConnectResponses[keyof GithubConnectResponses];
3028
+ export type GithubStatusData = {
3029
3029
  body?: never;
3030
- path: {
3031
- id: string;
3032
- };
3030
+ path?: never;
3033
3031
  query?: {
3034
3032
  /**
3035
3033
  * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
3036
3034
  */
3037
3035
  scope?: "user";
3038
3036
  };
3039
- url: "/api/github/installations/{id}/refresh";
3037
+ url: "/api/github/status";
3040
3038
  };
3041
- export type GithubInstallationRefreshErrors = {
3039
+ export type GithubStatusErrors = {
3042
3040
  /**
3043
3041
  * Unauthorized
3044
3042
  */
@@ -3051,35 +3049,27 @@ export type GithubInstallationRefreshErrors = {
3051
3049
  403: {
3052
3050
  error: string;
3053
3051
  };
3054
- /**
3055
- * Not found
3056
- */
3057
- 404: {
3058
- error: string;
3059
- };
3060
3052
  };
3061
- export type GithubInstallationRefreshError = GithubInstallationRefreshErrors[keyof GithubInstallationRefreshErrors];
3062
- export type GithubInstallationRefreshResponses = {
3053
+ export type GithubStatusError = GithubStatusErrors[keyof GithubStatusErrors];
3054
+ export type GithubStatusResponses = {
3063
3055
  /**
3064
- * Updated installation snapshot
3056
+ * GitHub configuration status
3065
3057
  */
3066
- 200: GithubInstallationResponse;
3058
+ 200: GithubStatus;
3067
3059
  };
3068
- export type GithubInstallationRefreshResponse = GithubInstallationRefreshResponses[keyof GithubInstallationRefreshResponses];
3069
- export type GithubInstallationRemoveData = {
3060
+ export type GithubStatusResponse = GithubStatusResponses[keyof GithubStatusResponses];
3061
+ export type GithubReposData = {
3070
3062
  body?: never;
3071
- path: {
3072
- id: string;
3073
- };
3063
+ path?: never;
3074
3064
  query?: {
3075
3065
  /**
3076
3066
  * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
3077
3067
  */
3078
3068
  scope?: "user";
3079
3069
  };
3080
- url: "/api/github/installations/{id}";
3070
+ url: "/api/github/repos";
3081
3071
  };
3082
- export type GithubInstallationRemoveErrors = {
3072
+ export type GithubReposErrors = {
3083
3073
  /**
3084
3074
  * Unauthorized
3085
3075
  */
@@ -3099,14 +3089,16 @@ export type GithubInstallationRemoveErrors = {
3099
3089
  error: string;
3100
3090
  };
3101
3091
  };
3102
- export type GithubInstallationRemoveError = GithubInstallationRemoveErrors[keyof GithubInstallationRemoveErrors];
3103
- export type GithubInstallationRemoveResponses = {
3092
+ export type GithubReposError = GithubReposErrors[keyof GithubReposErrors];
3093
+ export type GithubReposResponses = {
3104
3094
  /**
3105
- * Removed
3095
+ * Repositories
3106
3096
  */
3107
- 204: void;
3097
+ 200: Array<{
3098
+ fullName: string;
3099
+ }>;
3108
3100
  };
3109
- export type GithubInstallationRemoveResponse = GithubInstallationRemoveResponses[keyof GithubInstallationRemoveResponses];
3101
+ export type GithubReposResponse = GithubReposResponses[keyof GithubReposResponses];
3110
3102
  export type McpListData = {
3111
3103
  body?: never;
3112
3104
  path?: never;
@@ -7772,7 +7764,7 @@ export type WebhookTriggerArchiveResponses = {
7772
7764
  200: WebhookTrigger;
7773
7765
  };
7774
7766
  export type WebhookTriggerArchiveResponse = WebhookTriggerArchiveResponses[keyof WebhookTriggerArchiveResponses];
7775
- export type SlackStatusData = {
7767
+ export type SlackUninstallData = {
7776
7768
  body?: never;
7777
7769
  path?: never;
7778
7770
  query?: {
@@ -7781,9 +7773,9 @@ export type SlackStatusData = {
7781
7773
  */
7782
7774
  scope?: "user";
7783
7775
  };
7784
- url: "/api/slack/status";
7776
+ url: "/api/slack/install";
7785
7777
  };
7786
- export type SlackStatusErrors = {
7778
+ export type SlackUninstallErrors = {
7787
7779
  /**
7788
7780
  * Unauthorized
7789
7781
  */
@@ -7796,29 +7788,34 @@ export type SlackStatusErrors = {
7796
7788
  403: {
7797
7789
  error: string;
7798
7790
  };
7791
+ /**
7792
+ * Not found
7793
+ */
7794
+ 404: {
7795
+ error: string;
7796
+ };
7799
7797
  };
7800
- export type SlackStatusError = SlackStatusErrors[keyof SlackStatusErrors];
7801
- export type SlackStatusResponses = {
7798
+ export type SlackUninstallError = SlackUninstallErrors[keyof SlackUninstallErrors];
7799
+ export type SlackUninstallResponses = {
7802
7800
  /**
7803
- * Slack installation status
7801
+ * Removed
7804
7802
  */
7805
- 200: SlackStatus;
7803
+ 204: void;
7806
7804
  };
7807
- export type SlackStatusResponse = SlackStatusResponses[keyof SlackStatusResponses];
7808
- export type SlackInstallationRemoveData = {
7805
+ export type SlackUninstallResponse = SlackUninstallResponses[keyof SlackUninstallResponses];
7806
+ export type SlackInstallData = {
7809
7807
  body?: never;
7810
- path: {
7811
- id: string;
7812
- };
7808
+ path?: never;
7813
7809
  query?: {
7814
7810
  /**
7815
7811
  * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
7816
7812
  */
7817
7813
  scope?: "user";
7814
+ returnTo?: string;
7818
7815
  };
7819
- url: "/api/slack/installations/{id}";
7816
+ url: "/api/slack/install";
7820
7817
  };
7821
- export type SlackInstallationRemoveErrors = {
7818
+ export type SlackInstallErrors = {
7822
7819
  /**
7823
7820
  * Unauthorized
7824
7821
  */
@@ -7831,35 +7828,60 @@ export type SlackInstallationRemoveErrors = {
7831
7828
  403: {
7832
7829
  error: string;
7833
7830
  };
7831
+ };
7832
+ export type SlackInstallError = SlackInstallErrors[keyof SlackInstallErrors];
7833
+ export type SlackInstallResponses = {
7834
7834
  /**
7835
- * Not found
7835
+ * Authorization URL for the user to visit
7836
7836
  */
7837
- 404: {
7837
+ 200: SlackOAuthStartResult;
7838
+ };
7839
+ export type SlackInstallResponse = SlackInstallResponses[keyof SlackInstallResponses];
7840
+ export type SlackStatusData = {
7841
+ body?: never;
7842
+ path?: never;
7843
+ query?: {
7844
+ /**
7845
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
7846
+ */
7847
+ scope?: "user";
7848
+ };
7849
+ url: "/api/slack/status";
7850
+ };
7851
+ export type SlackStatusErrors = {
7852
+ /**
7853
+ * Unauthorized
7854
+ */
7855
+ 401: {
7856
+ error: string;
7857
+ };
7858
+ /**
7859
+ * Forbidden
7860
+ */
7861
+ 403: {
7838
7862
  error: string;
7839
7863
  };
7840
7864
  };
7841
- export type SlackInstallationRemoveError = SlackInstallationRemoveErrors[keyof SlackInstallationRemoveErrors];
7842
- export type SlackInstallationRemoveResponses = {
7865
+ export type SlackStatusError = SlackStatusErrors[keyof SlackStatusErrors];
7866
+ export type SlackStatusResponses = {
7843
7867
  /**
7844
- * Removed
7868
+ * Slack installation status
7845
7869
  */
7846
- 204: void;
7870
+ 200: SlackStatus;
7847
7871
  };
7848
- export type SlackInstallationRemoveResponse = SlackInstallationRemoveResponses[keyof SlackInstallationRemoveResponses];
7849
- export type SlackInstallationChannelListData = {
7872
+ export type SlackStatusResponse = SlackStatusResponses[keyof SlackStatusResponses];
7873
+ export type SlackChannelListData = {
7850
7874
  body?: never;
7851
- path: {
7852
- id: string;
7853
- };
7875
+ path?: never;
7854
7876
  query?: {
7855
7877
  /**
7856
7878
  * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
7857
7879
  */
7858
7880
  scope?: "user";
7859
7881
  };
7860
- url: "/api/slack/installations/{id}/channels";
7882
+ url: "/api/slack/channels";
7861
7883
  };
7862
- export type SlackInstallationChannelListErrors = {
7884
+ export type SlackChannelListErrors = {
7863
7885
  /**
7864
7886
  * Unauthorized
7865
7887
  */
@@ -7879,18 +7901,17 @@ export type SlackInstallationChannelListErrors = {
7879
7901
  error: string;
7880
7902
  };
7881
7903
  };
7882
- export type SlackInstallationChannelListError = SlackInstallationChannelListErrors[keyof SlackInstallationChannelListErrors];
7883
- export type SlackInstallationChannelListResponses = {
7904
+ export type SlackChannelListError = SlackChannelListErrors[keyof SlackChannelListErrors];
7905
+ export type SlackChannelListResponses = {
7884
7906
  /**
7885
7907
  * Channels visible to the Ren bot
7886
7908
  */
7887
7909
  200: Array<SlackChannel>;
7888
7910
  };
7889
- export type SlackInstallationChannelListResponse = SlackInstallationChannelListResponses[keyof SlackInstallationChannelListResponses];
7890
- export type SlackInstallationChannelRemoveData = {
7911
+ export type SlackChannelListResponse = SlackChannelListResponses[keyof SlackChannelListResponses];
7912
+ export type SlackChannelUnsetData = {
7891
7913
  body?: never;
7892
7914
  path: {
7893
- id: string;
7894
7915
  channelId: string;
7895
7916
  };
7896
7917
  query?: {
@@ -7899,9 +7920,9 @@ export type SlackInstallationChannelRemoveData = {
7899
7920
  */
7900
7921
  scope?: "user";
7901
7922
  };
7902
- url: "/api/slack/installations/{id}/channels/{channelId}";
7923
+ url: "/api/slack/channels/{channelId}";
7903
7924
  };
7904
- export type SlackInstallationChannelRemoveErrors = {
7925
+ export type SlackChannelUnsetErrors = {
7905
7926
  /**
7906
7927
  * Unauthorized
7907
7928
  */
@@ -7921,23 +7942,21 @@ export type SlackInstallationChannelRemoveErrors = {
7921
7942
  error: string;
7922
7943
  };
7923
7944
  };
7924
- export type SlackInstallationChannelRemoveError = SlackInstallationChannelRemoveErrors[keyof SlackInstallationChannelRemoveErrors];
7925
- export type SlackInstallationChannelRemoveResponses = {
7945
+ export type SlackChannelUnsetError = SlackChannelUnsetErrors[keyof SlackChannelUnsetErrors];
7946
+ export type SlackChannelUnsetResponses = {
7926
7947
  /**
7927
7948
  * Updated installation
7928
7949
  */
7929
7950
  200: SlackInstallationResponse;
7930
7951
  };
7931
- export type SlackInstallationChannelRemoveResponse = SlackInstallationChannelRemoveResponses[keyof SlackInstallationChannelRemoveResponses];
7932
- export type SlackInstallationChannelSetData = {
7952
+ export type SlackChannelUnsetResponse = SlackChannelUnsetResponses[keyof SlackChannelUnsetResponses];
7953
+ export type SlackChannelSetData = {
7933
7954
  body?: {
7934
- channelName: string | null;
7935
7955
  projectId: string;
7936
7956
  defaultProjectAgentId: string | null;
7937
7957
  fallbackSenderUserId: string | null;
7938
7958
  };
7939
7959
  path: {
7940
- id: string;
7941
7960
  channelId: string;
7942
7961
  };
7943
7962
  query?: {
@@ -7946,9 +7965,9 @@ export type SlackInstallationChannelSetData = {
7946
7965
  */
7947
7966
  scope?: "user";
7948
7967
  };
7949
- url: "/api/slack/installations/{id}/channels/{channelId}";
7968
+ url: "/api/slack/channels/{channelId}";
7950
7969
  };
7951
- export type SlackInstallationChannelSetErrors = {
7970
+ export type SlackChannelSetErrors = {
7952
7971
  /**
7953
7972
  * Bad request
7954
7973
  */
@@ -7974,14 +7993,14 @@ export type SlackInstallationChannelSetErrors = {
7974
7993
  error: string;
7975
7994
  };
7976
7995
  };
7977
- export type SlackInstallationChannelSetError = SlackInstallationChannelSetErrors[keyof SlackInstallationChannelSetErrors];
7978
- export type SlackInstallationChannelSetResponses = {
7996
+ export type SlackChannelSetError = SlackChannelSetErrors[keyof SlackChannelSetErrors];
7997
+ export type SlackChannelSetResponses = {
7979
7998
  /**
7980
7999
  * Updated installation
7981
8000
  */
7982
8001
  200: SlackInstallationResponse;
7983
8002
  };
7984
- export type SlackInstallationChannelSetResponse = SlackInstallationChannelSetResponses[keyof SlackInstallationChannelSetResponses];
8003
+ export type SlackChannelSetResponse = SlackChannelSetResponses[keyof SlackChannelSetResponses];
7985
8004
  export type VaultListData = {
7986
8005
  body?: never;
7987
8006
  path?: never;