@renai-labs/sdk 0.1.4 → 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.
@@ -254,6 +254,14 @@ export type Vault = {
254
254
  updatedAt: string;
255
255
  archivedAt: string | null;
256
256
  };
257
+ export type SlackChannel = {
258
+ id: string;
259
+ name: string;
260
+ projectId: string | null;
261
+ defaultProjectAgentId: string | null;
262
+ fallbackSenderUserId: string | null;
263
+ projectName: string | null;
264
+ };
257
265
  export type SlackStatus = {
258
266
  hasInstallation: boolean;
259
267
  installations: Array<SlackInstallationResponse>;
@@ -270,6 +278,9 @@ export type SlackInstallationResponse = {
270
278
  updatedAt: string;
271
279
  archivedAt: string | null;
272
280
  };
281
+ export type SlackOAuthStartResult = {
282
+ url: string;
283
+ };
273
284
  export type WebhookTriggerCreateResult = {
274
285
  trigger: WebhookTrigger;
275
286
  plaintextSecret: string | null;
@@ -279,7 +290,7 @@ export type WebhookTrigger = {
279
290
  projectId: string;
280
291
  projectAgentId: string;
281
292
  senderUserId: string;
282
- provider: "slack" | "generic";
293
+ provider: "generic";
283
294
  providerInstallId: string | null;
284
295
  scopeFilter: {
285
296
  channelId?: string;
@@ -364,7 +375,7 @@ export type SessionFilesPresignUploadResponse = {
364
375
  uploadUrl: string;
365
376
  sandboxPath: string;
366
377
  podVolume: {
367
- projectId: string;
378
+ projectSlug: string;
368
379
  sessionId: string;
369
380
  kind: "outputs" | "uploads";
370
381
  filename: string;
@@ -745,6 +756,9 @@ export type GithubInstallationResponse = {
745
756
  updatedAt: string;
746
757
  archivedAt: string | null;
747
758
  };
759
+ export type GithubOAuthStartResult = {
760
+ url: string;
761
+ };
748
762
  export type StoreStartUploadResponse = {
749
763
  url: string;
750
764
  expiresAt: string;
@@ -2904,7 +2918,7 @@ export type FileStoreFilesFinalizeUploadResponses = {
2904
2918
  200: FileStoreFile;
2905
2919
  };
2906
2920
  export type FileStoreFilesFinalizeUploadResponse = FileStoreFilesFinalizeUploadResponses[keyof FileStoreFilesFinalizeUploadResponses];
2907
- export type GithubStatusData = {
2921
+ export type GithubUninstallData = {
2908
2922
  body?: never;
2909
2923
  path?: never;
2910
2924
  query?: {
@@ -2913,9 +2927,9 @@ export type GithubStatusData = {
2913
2927
  */
2914
2928
  scope?: "user";
2915
2929
  };
2916
- url: "/api/github/status";
2930
+ url: "/api/github/install";
2917
2931
  };
2918
- export type GithubStatusErrors = {
2932
+ export type GithubUninstallErrors = {
2919
2933
  /**
2920
2934
  * Unauthorized
2921
2935
  */
@@ -2928,16 +2942,22 @@ export type GithubStatusErrors = {
2928
2942
  403: {
2929
2943
  error: string;
2930
2944
  };
2945
+ /**
2946
+ * Not found
2947
+ */
2948
+ 404: {
2949
+ error: string;
2950
+ };
2931
2951
  };
2932
- export type GithubStatusError = GithubStatusErrors[keyof GithubStatusErrors];
2933
- export type GithubStatusResponses = {
2952
+ export type GithubUninstallError = GithubUninstallErrors[keyof GithubUninstallErrors];
2953
+ export type GithubUninstallResponses = {
2934
2954
  /**
2935
- * GitHub configuration status
2955
+ * Removed
2936
2956
  */
2937
- 200: GithubStatus;
2957
+ 204: void;
2938
2958
  };
2939
- export type GithubStatusResponse = GithubStatusResponses[keyof GithubStatusResponses];
2940
- export type GithubInstallationListData = {
2959
+ export type GithubUninstallResponse = GithubUninstallResponses[keyof GithubUninstallResponses];
2960
+ export type GithubInstallData = {
2941
2961
  body?: never;
2942
2962
  path?: never;
2943
2963
  query?: {
@@ -2945,10 +2965,11 @@ export type GithubInstallationListData = {
2945
2965
  * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
2946
2966
  */
2947
2967
  scope?: "user";
2968
+ returnTo?: string;
2948
2969
  };
2949
- url: "/api/github/installations";
2970
+ url: "/api/github/install";
2950
2971
  };
2951
- export type GithubInstallationListErrors = {
2972
+ export type GithubInstallErrors = {
2952
2973
  /**
2953
2974
  * Unauthorized
2954
2975
  */
@@ -2962,28 +2983,27 @@ export type GithubInstallationListErrors = {
2962
2983
  error: string;
2963
2984
  };
2964
2985
  };
2965
- export type GithubInstallationListError = GithubInstallationListErrors[keyof GithubInstallationListErrors];
2966
- export type GithubInstallationListResponses = {
2986
+ export type GithubInstallError = GithubInstallErrors[keyof GithubInstallErrors];
2987
+ export type GithubInstallResponses = {
2967
2988
  /**
2968
- * Installations
2989
+ * Authorization URL for the user to visit
2969
2990
  */
2970
- 200: Array<GithubInstallationResponse>;
2991
+ 200: GithubOAuthStartResult;
2971
2992
  };
2972
- export type GithubInstallationListResponse = GithubInstallationListResponses[keyof GithubInstallationListResponses];
2973
- export type GithubInstallationReposListData = {
2993
+ export type GithubInstallResponse = GithubInstallResponses[keyof GithubInstallResponses];
2994
+ export type GithubConnectData = {
2974
2995
  body?: never;
2975
- path: {
2976
- id: string;
2977
- };
2996
+ path?: never;
2978
2997
  query?: {
2979
2998
  /**
2980
2999
  * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
2981
3000
  */
2982
3001
  scope?: "user";
3002
+ returnTo?: string;
2983
3003
  };
2984
- url: "/api/github/installations/{id}/repos";
3004
+ url: "/api/github/connect";
2985
3005
  };
2986
- export type GithubInstallationReposListErrors = {
3006
+ export type GithubConnectErrors = {
2987
3007
  /**
2988
3008
  * Unauthorized
2989
3009
  */
@@ -2996,37 +3016,27 @@ export type GithubInstallationReposListErrors = {
2996
3016
  403: {
2997
3017
  error: string;
2998
3018
  };
2999
- /**
3000
- * Not found
3001
- */
3002
- 404: {
3003
- error: string;
3004
- };
3005
3019
  };
3006
- export type GithubInstallationReposListError = GithubInstallationReposListErrors[keyof GithubInstallationReposListErrors];
3007
- export type GithubInstallationReposListResponses = {
3020
+ export type GithubConnectError = GithubConnectErrors[keyof GithubConnectErrors];
3021
+ export type GithubConnectResponses = {
3008
3022
  /**
3009
- * Repositories
3023
+ * Authorization URL for the user to visit
3010
3024
  */
3011
- 200: Array<{
3012
- fullName: string;
3013
- }>;
3025
+ 200: GithubOAuthStartResult;
3014
3026
  };
3015
- export type GithubInstallationReposListResponse = GithubInstallationReposListResponses[keyof GithubInstallationReposListResponses];
3016
- export type GithubInstallationRefreshData = {
3027
+ export type GithubConnectResponse = GithubConnectResponses[keyof GithubConnectResponses];
3028
+ export type GithubStatusData = {
3017
3029
  body?: never;
3018
- path: {
3019
- id: string;
3020
- };
3030
+ path?: never;
3021
3031
  query?: {
3022
3032
  /**
3023
3033
  * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
3024
3034
  */
3025
3035
  scope?: "user";
3026
3036
  };
3027
- url: "/api/github/installations/{id}/refresh";
3037
+ url: "/api/github/status";
3028
3038
  };
3029
- export type GithubInstallationRefreshErrors = {
3039
+ export type GithubStatusErrors = {
3030
3040
  /**
3031
3041
  * Unauthorized
3032
3042
  */
@@ -3039,35 +3049,27 @@ export type GithubInstallationRefreshErrors = {
3039
3049
  403: {
3040
3050
  error: string;
3041
3051
  };
3042
- /**
3043
- * Not found
3044
- */
3045
- 404: {
3046
- error: string;
3047
- };
3048
3052
  };
3049
- export type GithubInstallationRefreshError = GithubInstallationRefreshErrors[keyof GithubInstallationRefreshErrors];
3050
- export type GithubInstallationRefreshResponses = {
3053
+ export type GithubStatusError = GithubStatusErrors[keyof GithubStatusErrors];
3054
+ export type GithubStatusResponses = {
3051
3055
  /**
3052
- * Updated installation snapshot
3056
+ * GitHub configuration status
3053
3057
  */
3054
- 200: GithubInstallationResponse;
3058
+ 200: GithubStatus;
3055
3059
  };
3056
- export type GithubInstallationRefreshResponse = GithubInstallationRefreshResponses[keyof GithubInstallationRefreshResponses];
3057
- export type GithubInstallationRemoveData = {
3060
+ export type GithubStatusResponse = GithubStatusResponses[keyof GithubStatusResponses];
3061
+ export type GithubReposData = {
3058
3062
  body?: never;
3059
- path: {
3060
- id: string;
3061
- };
3063
+ path?: never;
3062
3064
  query?: {
3063
3065
  /**
3064
3066
  * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
3065
3067
  */
3066
3068
  scope?: "user";
3067
3069
  };
3068
- url: "/api/github/installations/{id}";
3070
+ url: "/api/github/repos";
3069
3071
  };
3070
- export type GithubInstallationRemoveErrors = {
3072
+ export type GithubReposErrors = {
3071
3073
  /**
3072
3074
  * Unauthorized
3073
3075
  */
@@ -3087,14 +3089,16 @@ export type GithubInstallationRemoveErrors = {
3087
3089
  error: string;
3088
3090
  };
3089
3091
  };
3090
- export type GithubInstallationRemoveError = GithubInstallationRemoveErrors[keyof GithubInstallationRemoveErrors];
3091
- export type GithubInstallationRemoveResponses = {
3092
+ export type GithubReposError = GithubReposErrors[keyof GithubReposErrors];
3093
+ export type GithubReposResponses = {
3092
3094
  /**
3093
- * Removed
3095
+ * Repositories
3094
3096
  */
3095
- 204: void;
3097
+ 200: Array<{
3098
+ fullName: string;
3099
+ }>;
3096
3100
  };
3097
- export type GithubInstallationRemoveResponse = GithubInstallationRemoveResponses[keyof GithubInstallationRemoveResponses];
3101
+ export type GithubReposResponse = GithubReposResponses[keyof GithubReposResponses];
3098
3102
  export type McpListData = {
3099
3103
  body?: never;
3100
3104
  path?: never;
@@ -6235,7 +6239,7 @@ export type SessionUpdateData = {
6235
6239
  [key: string]: unknown;
6236
6240
  };
6237
6241
  } | null;
6238
- currentProjectAgentId?: string;
6242
+ currentAgentSlug?: string;
6239
6243
  };
6240
6244
  path: {
6241
6245
  id: string;
@@ -7570,7 +7574,7 @@ export type WebhookTriggerCreateData = {
7570
7574
  projectId: string;
7571
7575
  projectAgentId: string;
7572
7576
  senderUserId: string;
7573
- provider: "slack" | "generic";
7577
+ provider: "generic";
7574
7578
  providerInstallId: string | null;
7575
7579
  scopeFilter: {
7576
7580
  channelId?: string;
@@ -7760,6 +7764,79 @@ export type WebhookTriggerArchiveResponses = {
7760
7764
  200: WebhookTrigger;
7761
7765
  };
7762
7766
  export type WebhookTriggerArchiveResponse = WebhookTriggerArchiveResponses[keyof WebhookTriggerArchiveResponses];
7767
+ export type SlackUninstallData = {
7768
+ body?: never;
7769
+ path?: never;
7770
+ query?: {
7771
+ /**
7772
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
7773
+ */
7774
+ scope?: "user";
7775
+ };
7776
+ url: "/api/slack/install";
7777
+ };
7778
+ export type SlackUninstallErrors = {
7779
+ /**
7780
+ * Unauthorized
7781
+ */
7782
+ 401: {
7783
+ error: string;
7784
+ };
7785
+ /**
7786
+ * Forbidden
7787
+ */
7788
+ 403: {
7789
+ error: string;
7790
+ };
7791
+ /**
7792
+ * Not found
7793
+ */
7794
+ 404: {
7795
+ error: string;
7796
+ };
7797
+ };
7798
+ export type SlackUninstallError = SlackUninstallErrors[keyof SlackUninstallErrors];
7799
+ export type SlackUninstallResponses = {
7800
+ /**
7801
+ * Removed
7802
+ */
7803
+ 204: void;
7804
+ };
7805
+ export type SlackUninstallResponse = SlackUninstallResponses[keyof SlackUninstallResponses];
7806
+ export type SlackInstallData = {
7807
+ body?: never;
7808
+ path?: never;
7809
+ query?: {
7810
+ /**
7811
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
7812
+ */
7813
+ scope?: "user";
7814
+ returnTo?: string;
7815
+ };
7816
+ url: "/api/slack/install";
7817
+ };
7818
+ export type SlackInstallErrors = {
7819
+ /**
7820
+ * Unauthorized
7821
+ */
7822
+ 401: {
7823
+ error: string;
7824
+ };
7825
+ /**
7826
+ * Forbidden
7827
+ */
7828
+ 403: {
7829
+ error: string;
7830
+ };
7831
+ };
7832
+ export type SlackInstallError = SlackInstallErrors[keyof SlackInstallErrors];
7833
+ export type SlackInstallResponses = {
7834
+ /**
7835
+ * Authorization URL for the user to visit
7836
+ */
7837
+ 200: SlackOAuthStartResult;
7838
+ };
7839
+ export type SlackInstallResponse = SlackInstallResponses[keyof SlackInstallResponses];
7763
7840
  export type SlackStatusData = {
7764
7841
  body?: never;
7765
7842
  path?: never;
@@ -7793,10 +7870,49 @@ export type SlackStatusResponses = {
7793
7870
  200: SlackStatus;
7794
7871
  };
7795
7872
  export type SlackStatusResponse = SlackStatusResponses[keyof SlackStatusResponses];
7796
- export type SlackInstallationRemoveData = {
7873
+ export type SlackChannelListData = {
7874
+ body?: never;
7875
+ path?: never;
7876
+ query?: {
7877
+ /**
7878
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
7879
+ */
7880
+ scope?: "user";
7881
+ };
7882
+ url: "/api/slack/channels";
7883
+ };
7884
+ export type SlackChannelListErrors = {
7885
+ /**
7886
+ * Unauthorized
7887
+ */
7888
+ 401: {
7889
+ error: string;
7890
+ };
7891
+ /**
7892
+ * Forbidden
7893
+ */
7894
+ 403: {
7895
+ error: string;
7896
+ };
7897
+ /**
7898
+ * Not found
7899
+ */
7900
+ 404: {
7901
+ error: string;
7902
+ };
7903
+ };
7904
+ export type SlackChannelListError = SlackChannelListErrors[keyof SlackChannelListErrors];
7905
+ export type SlackChannelListResponses = {
7906
+ /**
7907
+ * Channels visible to the Ren bot
7908
+ */
7909
+ 200: Array<SlackChannel>;
7910
+ };
7911
+ export type SlackChannelListResponse = SlackChannelListResponses[keyof SlackChannelListResponses];
7912
+ export type SlackChannelUnsetData = {
7797
7913
  body?: never;
7798
7914
  path: {
7799
- id: string;
7915
+ channelId: string;
7800
7916
  };
7801
7917
  query?: {
7802
7918
  /**
@@ -7804,9 +7920,9 @@ export type SlackInstallationRemoveData = {
7804
7920
  */
7805
7921
  scope?: "user";
7806
7922
  };
7807
- url: "/api/slack/installations/{id}";
7923
+ url: "/api/slack/channels/{channelId}";
7808
7924
  };
7809
- export type SlackInstallationRemoveErrors = {
7925
+ export type SlackChannelUnsetErrors = {
7810
7926
  /**
7811
7927
  * Unauthorized
7812
7928
  */
@@ -7826,14 +7942,65 @@ export type SlackInstallationRemoveErrors = {
7826
7942
  error: string;
7827
7943
  };
7828
7944
  };
7829
- export type SlackInstallationRemoveError = SlackInstallationRemoveErrors[keyof SlackInstallationRemoveErrors];
7830
- export type SlackInstallationRemoveResponses = {
7945
+ export type SlackChannelUnsetError = SlackChannelUnsetErrors[keyof SlackChannelUnsetErrors];
7946
+ export type SlackChannelUnsetResponses = {
7831
7947
  /**
7832
- * Removed
7948
+ * Updated installation
7833
7949
  */
7834
- 204: void;
7950
+ 200: SlackInstallationResponse;
7951
+ };
7952
+ export type SlackChannelUnsetResponse = SlackChannelUnsetResponses[keyof SlackChannelUnsetResponses];
7953
+ export type SlackChannelSetData = {
7954
+ body?: {
7955
+ projectId: string;
7956
+ defaultProjectAgentId: string | null;
7957
+ fallbackSenderUserId: string | null;
7958
+ };
7959
+ path: {
7960
+ channelId: string;
7961
+ };
7962
+ query?: {
7963
+ /**
7964
+ * Pass 'user' to scope the operation to the authenticated user's private namespace. Omit for the org-wide namespace.
7965
+ */
7966
+ scope?: "user";
7967
+ };
7968
+ url: "/api/slack/channels/{channelId}";
7969
+ };
7970
+ export type SlackChannelSetErrors = {
7971
+ /**
7972
+ * Bad request
7973
+ */
7974
+ 400: {
7975
+ error: string;
7976
+ };
7977
+ /**
7978
+ * Unauthorized
7979
+ */
7980
+ 401: {
7981
+ error: string;
7982
+ };
7983
+ /**
7984
+ * Forbidden
7985
+ */
7986
+ 403: {
7987
+ error: string;
7988
+ };
7989
+ /**
7990
+ * Not found
7991
+ */
7992
+ 404: {
7993
+ error: string;
7994
+ };
7995
+ };
7996
+ export type SlackChannelSetError = SlackChannelSetErrors[keyof SlackChannelSetErrors];
7997
+ export type SlackChannelSetResponses = {
7998
+ /**
7999
+ * Updated installation
8000
+ */
8001
+ 200: SlackInstallationResponse;
7835
8002
  };
7836
- export type SlackInstallationRemoveResponse = SlackInstallationRemoveResponses[keyof SlackInstallationRemoveResponses];
8003
+ export type SlackChannelSetResponse = SlackChannelSetResponses[keyof SlackChannelSetResponses];
7837
8004
  export type VaultListData = {
7838
8005
  body?: never;
7839
8006
  path?: never;