@botiverse/raft-sdk 0.10.0 → 0.11.1

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/index.d.ts CHANGED
@@ -1164,7 +1164,7 @@ interface UserInfoRequest {
1164
1164
  name: string;
1165
1165
  /** Visible channels to skip before inspecting memberships (default 0). */
1166
1166
  offset?: number;
1167
- /** Visible channels to inspect for memberships (default 50). */
1167
+ /** Visible channels to inspect for memberships (default 50, at most 200). */
1168
1168
  limit?: number;
1169
1169
  }
1170
1170
  export declare const userInfoRequestSchema: z.ZodObject<{
@@ -1295,6 +1295,10 @@ interface AgentMentionActionResult {
1295
1295
  export declare const pendingMentionActionsRequestSchema: z.ZodObject<{
1296
1296
  limit: z.ZodOptional<z.ZodNumber>;
1297
1297
  }, z.core.$strip>;
1298
+ export declare const mentionResolutionIdsRequestSchema: z.ZodObject<{
1299
+ resolutionIds: z.ZodArray<z.ZodString>;
1300
+ }, z.core.$strip>;
1301
+ /** @deprecated The request of the deprecated `mentions.execute`; use `mentionResolutionIdsRequestSchema` (`mentions.notify` / `mentions.add`). */
1298
1302
  export declare const executeMentionActionRequestSchema: z.ZodObject<{
1299
1303
  action: z.ZodEnum<{
1300
1304
  notify: "notify";
@@ -1311,6 +1315,14 @@ interface RaftPendingMentions {
1311
1315
  hasMore: boolean | null;
1312
1316
  limit: number | undefined;
1313
1317
  }
1318
+ interface MentionResolutionIdsRequest {
1319
+ resolutionIds: string[];
1320
+ }
1321
+ type RaftMentionActionOutcome = RaftOutcome<{
1322
+ action: AgentMentionActionKind;
1323
+ results: AgentMentionActionResult[];
1324
+ }, "executed">;
1325
+ /** @deprecated The request of the deprecated `mentions.execute`; use `MentionResolutionIdsRequest`. */
1314
1326
  interface ExecuteMentionActionRequest {
1315
1327
  action: AgentMentionActionKind;
1316
1328
  resolutionIds: string[];
@@ -2549,6 +2561,65 @@ declare const agentApiServerInfoResponseSchema: z.ZodObject<{
2549
2561
  }>>>;
2550
2562
  }, z.core.$loose>>;
2551
2563
  }, z.core.$loose>;
2564
+ declare const agentApiUserChannelsParamsSchema: z.ZodObject<{
2565
+ name: z.ZodString;
2566
+ }, z.core.$loose>;
2567
+ declare const agentApiUserChannelsQuerySchema: z.ZodObject<{
2568
+ offset: z.ZodOptional<z.ZodString>;
2569
+ limit: z.ZodOptional<z.ZodString>;
2570
+ }, z.core.$loose>;
2571
+ /**
2572
+ * One user's visible facts and their memberships among one window of the
2573
+ * caller's visible channels (`GET /users/:name/channels`). `user` is the
2574
+ * user's `serverInfo` agents / humans entry, unchanged.
2575
+ */
2576
+ declare const agentApiUserChannelsResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2577
+ memberships: z.ZodArray<z.ZodObject<{
2578
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<ChannelId, string>>;
2579
+ name: z.ZodString;
2580
+ joined: z.ZodBoolean;
2581
+ }, z.core.$loose>>;
2582
+ uncheckedCount: z.ZodNumber;
2583
+ page: z.ZodObject<{
2584
+ total: z.ZodNumber;
2585
+ offset: z.ZodNumber;
2586
+ limit: z.ZodNumber;
2587
+ }, z.core.$loose>;
2588
+ user: z.ZodObject<{
2589
+ name: z.ZodString;
2590
+ status: z.ZodOptional<z.ZodString>;
2591
+ activity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2592
+ activityDetail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2593
+ role: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2594
+ owner: "owner";
2595
+ admin: "admin";
2596
+ member: "member";
2597
+ }>>>;
2598
+ }, z.core.$loose>;
2599
+ kind: z.ZodLiteral<"agent">;
2600
+ }, z.core.$loose>, z.ZodObject<{
2601
+ memberships: z.ZodArray<z.ZodObject<{
2602
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<ChannelId, string>>;
2603
+ name: z.ZodString;
2604
+ joined: z.ZodBoolean;
2605
+ }, z.core.$loose>>;
2606
+ uncheckedCount: z.ZodNumber;
2607
+ page: z.ZodObject<{
2608
+ total: z.ZodNumber;
2609
+ offset: z.ZodNumber;
2610
+ limit: z.ZodNumber;
2611
+ }, z.core.$loose>;
2612
+ user: z.ZodObject<{
2613
+ name: z.ZodString;
2614
+ role: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
2615
+ guest: "guest";
2616
+ owner: "owner";
2617
+ admin: "admin";
2618
+ member: "member";
2619
+ }>>>;
2620
+ }, z.core.$loose>;
2621
+ kind: z.ZodLiteral<"human">;
2622
+ }, z.core.$loose>], "kind">;
2552
2623
  declare const agentApiMentionActionsPendingQuerySchema: z.ZodObject<{
2553
2624
  limit: z.ZodOptional<z.ZodString>;
2554
2625
  }, z.core.$loose>;
@@ -5719,6 +5790,77 @@ declare const agentApiContract: {
5719
5790
  } & {
5720
5791
  fullPath: string;
5721
5792
  };
5793
+ readonly userChannels: {
5794
+ readonly key: "userChannels";
5795
+ readonly method: "GET";
5796
+ readonly path: "/users/:name/channels";
5797
+ readonly client: {
5798
+ readonly resource: "users";
5799
+ readonly method: "channels";
5800
+ };
5801
+ readonly capability: "channels";
5802
+ readonly description: "One visible agent or human (exact name, agents first; the serverInfo entry) and which of one window of your visible channels (serverInfo order, offset/limit, limit at most 200) list them as a member, in one request. Needs the read capability as well. 404 user_not_found when no visible user has that name.";
5803
+ readonly request: {
5804
+ readonly params: z.ZodObject<{
5805
+ name: z.ZodString;
5806
+ }, z.core.$loose>;
5807
+ readonly query: z.ZodObject<{
5808
+ offset: z.ZodOptional<z.ZodString>;
5809
+ limit: z.ZodOptional<z.ZodString>;
5810
+ }, z.core.$loose>;
5811
+ };
5812
+ readonly response: {
5813
+ readonly body: z.ZodDiscriminatedUnion<[z.ZodObject<{
5814
+ memberships: z.ZodArray<z.ZodObject<{
5815
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<ChannelId, string>>;
5816
+ name: z.ZodString;
5817
+ joined: z.ZodBoolean;
5818
+ }, z.core.$loose>>;
5819
+ uncheckedCount: z.ZodNumber;
5820
+ page: z.ZodObject<{
5821
+ total: z.ZodNumber;
5822
+ offset: z.ZodNumber;
5823
+ limit: z.ZodNumber;
5824
+ }, z.core.$loose>;
5825
+ user: z.ZodObject<{
5826
+ name: z.ZodString;
5827
+ status: z.ZodOptional<z.ZodString>;
5828
+ activity: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5829
+ activityDetail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5830
+ role: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
5831
+ owner: "owner";
5832
+ admin: "admin";
5833
+ member: "member";
5834
+ }>>>;
5835
+ }, z.core.$loose>;
5836
+ kind: z.ZodLiteral<"agent">;
5837
+ }, z.core.$loose>, z.ZodObject<{
5838
+ memberships: z.ZodArray<z.ZodObject<{
5839
+ id: z.ZodPipe<z.ZodString, z.ZodTransform<ChannelId, string>>;
5840
+ name: z.ZodString;
5841
+ joined: z.ZodBoolean;
5842
+ }, z.core.$loose>>;
5843
+ uncheckedCount: z.ZodNumber;
5844
+ page: z.ZodObject<{
5845
+ total: z.ZodNumber;
5846
+ offset: z.ZodNumber;
5847
+ limit: z.ZodNumber;
5848
+ }, z.core.$loose>;
5849
+ user: z.ZodObject<{
5850
+ name: z.ZodString;
5851
+ role: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
5852
+ guest: "guest";
5853
+ owner: "owner";
5854
+ admin: "admin";
5855
+ member: "member";
5856
+ }>>>;
5857
+ }, z.core.$loose>;
5858
+ kind: z.ZodLiteral<"human">;
5859
+ }, z.core.$loose>], "kind">;
5860
+ };
5861
+ } & {
5862
+ fullPath: string;
5863
+ };
5722
5864
  readonly serverUpdate: {
5723
5865
  readonly key: "serverUpdate";
5724
5866
  readonly method: "PATCH";
@@ -8728,6 +8870,9 @@ type AgentApiOkResponse = z.infer<typeof agentApiOkResponseSchema>;
8728
8870
  type AgentApiActionPrepareResponse = z.infer<typeof agentApiActionPrepareResponseSchema>;
8729
8871
  type AgentApiAgentContextResponse = z.infer<typeof agentApiAgentContextResponseSchema>;
8730
8872
  type AgentApiServerInfoResponse = z.infer<typeof agentApiServerInfoResponseSchema>;
8873
+ type AgentApiUserChannelsParams = z.infer<typeof agentApiUserChannelsParamsSchema>;
8874
+ type AgentApiUserChannelsQuery = z.infer<typeof agentApiUserChannelsQuerySchema>;
8875
+ type AgentApiUserChannelsResponse = z.infer<typeof agentApiUserChannelsResponseSchema>;
8731
8876
  type AgentApiServerUpdateBody = z.infer<typeof agentApiServerUpdateBodySchema>;
8732
8877
  type AgentApiServerUpdateResponse = z.infer<typeof agentApiServerUpdateResponseSchema>;
8733
8878
  type AgentApiMentionActionsPendingQuery = z.infer<typeof agentApiMentionActionsPendingQuerySchema>;
@@ -8794,6 +8939,7 @@ type AgentApiRequestParamsByRoute = {
8794
8939
  inboxList: never;
8795
8940
  agentContext: never;
8796
8941
  serverInfo: never;
8942
+ userChannels: AgentApiUserChannelsParams;
8797
8943
  serverUpdate: never;
8798
8944
  mentionActionsPending: never;
8799
8945
  senderMentionDeliveries: AgentApiSenderMentionDeliveriesParams;
@@ -8875,6 +9021,7 @@ type AgentApiRequestQueryByRoute = {
8875
9021
  inboxList: AgentApiInboxListQuery;
8876
9022
  agentContext: never;
8877
9023
  serverInfo: never;
9024
+ userChannels: AgentApiUserChannelsQuery;
8878
9025
  serverUpdate: never;
8879
9026
  mentionActionsPending: AgentApiMentionActionsPendingQuery;
8880
9027
  senderMentionDeliveries: never;
@@ -8956,6 +9103,7 @@ type AgentApiRequestBodyByRoute = {
8956
9103
  inboxList: never;
8957
9104
  agentContext: never;
8958
9105
  serverInfo: never;
9106
+ userChannels: never;
8959
9107
  serverUpdate: AgentApiServerUpdateBody;
8960
9108
  mentionActionsPending: never;
8961
9109
  senderMentionDeliveries: never;
@@ -9037,6 +9185,7 @@ type AgentApiResponseByRoute = {
9037
9185
  inboxList: AgentApiInboxListResponse;
9038
9186
  agentContext: AgentApiAgentContextResponse;
9039
9187
  serverInfo: AgentApiServerInfoResponse;
9188
+ userChannels: AgentApiUserChannelsResponse;
9040
9189
  serverUpdate: AgentApiServerUpdateResponse;
9041
9190
  mentionActionsPending: AgentApiMentionActionsPendingResponse;
9042
9191
  senderMentionDeliveries: AgentApiSenderMentionDeliveriesResponse;
@@ -9916,9 +10065,54 @@ declare const OPERATION_DEFS: readonly [{
9916
10065
  readonly mayBeLarge: true;
9917
10066
  readonly boundBy: ["limit"];
9918
10067
  };
10068
+ }, {
10069
+ readonly name: "mentions.notify";
10070
+ readonly description: "Deliver unreached @mentions by notifying each mentioned target about the message, without adding them to the conversation. Takes resolutionId values from mentions.pending.";
10071
+ readonly schema: z.ZodObject<{
10072
+ resolutionIds: z.ZodArray<z.ZodString>;
10073
+ }, z.core.$strip>;
10074
+ readonly routes: readonly ["mentionActionsExecute"];
10075
+ readonly consumes: {
10076
+ model: never[];
10077
+ code: never[];
10078
+ };
10079
+ readonly output: {
10080
+ mayBeLarge: false;
10081
+ boundBy: never[];
10082
+ };
10083
+ }, {
10084
+ readonly name: "mentions.add";
10085
+ readonly description: "Deliver unreached @mentions by adding each mentioned target to the conversation, so they see the message and what follows. Takes resolutionId values from mentions.pending.";
10086
+ readonly schema: z.ZodObject<{
10087
+ resolutionIds: z.ZodArray<z.ZodString>;
10088
+ }, z.core.$strip>;
10089
+ readonly routes: readonly ["mentionActionsExecute"];
10090
+ readonly consumes: {
10091
+ model: never[];
10092
+ code: never[];
10093
+ };
10094
+ readonly output: {
10095
+ mayBeLarge: false;
10096
+ boundBy: never[];
10097
+ };
10098
+ }, {
10099
+ readonly name: "mentions.delivery";
10100
+ readonly description: "Whether each @mention in a message you sent reached its target.";
10101
+ readonly schema: z.ZodObject<{
10102
+ messageId: z.ZodString;
10103
+ }, z.core.$strip>;
10104
+ readonly routes: readonly ["senderMentionDeliveries"];
10105
+ readonly consumes: {
10106
+ model: never[];
10107
+ code: never[];
10108
+ };
10109
+ readonly output: {
10110
+ mayBeLarge: false;
10111
+ boundBy: never[];
10112
+ };
9919
10113
  }, {
9920
10114
  readonly name: "mentions.execute";
9921
- readonly description: "Deliver unreached @mentions: notify the mentioned target, or add them to the conversation.";
10115
+ readonly description: "Deprecated: use mentions.notify / mentions.add. Removed in the next minor release. Deliver unreached @mentions: notify the mentioned target, or add them to the conversation.";
9922
10116
  readonly schema: z.ZodObject<{
9923
10117
  action: z.ZodEnum<{
9924
10118
  notify: "notify";
@@ -9935,9 +10129,10 @@ declare const OPERATION_DEFS: readonly [{
9935
10129
  mayBeLarge: false;
9936
10130
  boundBy: never[];
9937
10131
  };
10132
+ readonly deprecated: true;
9938
10133
  }, {
9939
10134
  readonly name: "mentions.deliveries";
9940
- readonly description: "Whether each @mention in a message you sent reached its target.";
10135
+ readonly description: "Deprecated: use mentions.delivery. Removed in the next minor release. Whether each @mention in a message you sent reached its target.";
9941
10136
  readonly schema: z.ZodObject<{
9942
10137
  messageId: z.ZodString;
9943
10138
  }, z.core.$strip>;
@@ -9950,6 +10145,7 @@ declare const OPERATION_DEFS: readonly [{
9950
10145
  mayBeLarge: false;
9951
10146
  boundBy: never[];
9952
10147
  };
10148
+ readonly deprecated: true;
9953
10149
  }, {
9954
10150
  readonly name: "actions.prepare";
9955
10151
  readonly description: "Post an action card (create a channel, add members, create an agent, or an integration step) for a human to confirm; the human who clicks it carries it out as themselves. When it is executed (or fails), the outcome arrives as a reply that @mentions you in the card's thread (or in the thread the card was posted in).";
@@ -10455,7 +10651,7 @@ declare const OPERATION_DEFS: readonly [{
10455
10651
  offset: z.ZodOptional<z.ZodNumber>;
10456
10652
  limit: z.ZodOptional<z.ZodNumber>;
10457
10653
  }, z.core.$strip>;
10458
- readonly routes: readonly ["serverInfo", "channelMembers"];
10654
+ readonly routes: readonly ["userChannels", "serverInfo"];
10459
10655
  readonly consumes: {
10460
10656
  model: never[];
10461
10657
  code: never[];
@@ -10686,12 +10882,17 @@ interface Raft {
10686
10882
  pending(request?: {
10687
10883
  limit?: number;
10688
10884
  }): Promise<RaftOutcome<RaftPendingMentions, "pending" | "empty">>;
10689
- /** `notify` the target of an unreached mention, or `add` them to the conversation. */
10690
- execute(request: ExecuteMentionActionRequest): Promise<RaftOutcome<{
10691
- action: AgentMentionActionKind;
10692
- results: AgentMentionActionResult[];
10693
- }, "executed">>;
10694
- /** Per-target delivery outcome for a message you sent. */
10885
+ /** Notify the targets of unreached mentions about the message (`raft mention notify`). */
10886
+ notify(request: MentionResolutionIdsRequest): Promise<RaftMentionActionOutcome>;
10887
+ /** Add the targets of unreached mentions to the conversation (`raft mention add`). */
10888
+ add(request: MentionResolutionIdsRequest): Promise<RaftMentionActionOutcome>;
10889
+ /** Per-target delivery outcome for a message you sent (`raft mention delivery`). */
10890
+ delivery(request: {
10891
+ messageId: string;
10892
+ }): Promise<RaftOutcome<AgentApiSenderMentionDeliveriesResponse, "deliveries" | "empty">>;
10893
+ /** @deprecated Use `mentions.notify` / `mentions.add`; removed in 0.12.0. */
10894
+ execute(request: ExecuteMentionActionRequest): Promise<RaftMentionActionOutcome>;
10895
+ /** @deprecated Use `mentions.delivery`; removed in 0.12.0. */
10695
10896
  deliveries(request: {
10696
10897
  messageId: string;
10697
10898
  }): Promise<RaftOutcome<AgentApiSenderMentionDeliveriesResponse, "deliveries" | "empty">>;
@@ -10829,4 +11030,4 @@ export declare const commitInboxRequestSchema: z.ZodObject<{
10829
11030
  cursor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10830
11031
  }, z.core.$strip>;
10831
11032
  //#endregion
10832
- export type { AmendTaskOutcome, AmendTaskRequest, AssignTaskRequest, BootstrapRaftCredentialOptions, CheckInboxOutcome, CheckInboxRequest, ClaimTasksOutcome, ClaimTasksRequest, ConvertMessageToTaskRequest, CreateRaftClientFromStoreOptions, CreateRaftClientOptions, CreateRaftOptions, CreateRaftRoutesOptions, CreateTasksRequest, DrainInboxRequest, ExecuteMentionActionRequest, ListInboxRequest, ListTasksRequest, ManualContext, PrepareActionCardRequest, Raft, RaftAckMode, RaftActionPrepareRequest, RaftActionPrepared, RaftApiError, RaftApiResult, RaftAppConfig, RaftAppConfigPatch, RaftAttachmentBytes, RaftAttachmentDownloadUrl, RaftAttachmentUploaded, RaftAvatarUpload, RaftChannelInfo, RaftChannelJoinClient, RaftChannelJoinClientResult, RaftChannelJoinError, RaftChannelJoinFailure, RaftChannelJoinOperation, RaftChannelJoinRequest, RaftChannelJoinResult, RaftChannelJoinSuccess, RaftChannelJoinTransportError, RaftChannelMuteState, RaftChannelRef, RaftClaimResult, RaftClaimRow, RaftClaimRowState, RaftClient, RaftClientError, RaftClientFailure, RaftClientResult, RaftClientSuccess, RaftClientThrottleOptions, RaftClientTransportRequest, RaftConsumption, RaftContextAgent, RaftContextData, RaftContextError, RaftContextResult, RaftContextServer, RaftCredentialErrorCode, RaftCredentialIdentity, RaftCredentialStore, RaftEvent, RaftEventAttachment, RaftEventExternalMessage, RaftEventsReceiveData, RaftEventsReceiveError, RaftEventsReceiveRequest, RaftEventsReceiveResult, RaftFailure, RaftHintStyle, RaftHistoryPage, RaftInboxBatch, RaftInboxCommitResult, RaftInboxConversation, RaftInboxDrainSummary, RaftInboxDrained, RaftInboxListing, RaftInboxNotice, RaftInterrupt, RaftInterruptCancel, RaftInterruptReason, RaftInterruptResume, RaftInterrupted, RaftInvokeCaller, RaftInvokeResult, RaftJsonSchema, RaftJsonSchemaType, RaftLatestReadThread, RaftManageClient, RaftMessage, RaftMessageAttachment, RaftMessageTask, RaftNextOperation, RaftNextStep, RaftNoticeFlag, RaftNoticeTarget, RaftOpError, RaftOpErrorCode, RaftOperationIdempotency, RaftOperationName, RaftOperationSpec, RaftOperationsDocument, RaftOutcome, RaftPendingMentions, RaftPreparedCard, RaftProfile, RaftProfileUpdate, RaftRouteAnnotations, RaftRouteInfo, RaftRouteKey, RaftRouteMeta, RaftRouteResult, RaftRouteRetryPolicy, RaftRoutes, RaftSdkConfigurationErrorCode, RaftSearchPage, RaftSenderType, RaftSent, RaftServerInfo, RaftServerProfile, RaftServerUpdate, RaftState, RaftStateContinuation, RaftStateSaveErrorHandler, RaftStateStore, RaftTaskBoard, RaftTaskStatus, RaftTasksCreated, RaftUserInfo, RaftUserRef, RaftWebhookStatus, ReactRequest, ReadHistoryRequest, ReadLatestReadThreadOptions, ReplyToRequest, SearchMessagesRequest, SeenAttestation, SeenFrontierSnapshot, SendMessageOutcome, SendMessageRequest, ServerInfoRequest, ServerInfoSection, StoredRaftCredential, TaskRef, UpdateTaskStatusOutcome, UpdateTaskStatusRequest, UploadAttachmentRequest, UserInfoRequest, VerifyNoticeInput, VerifyNoticeRejection, VerifyNoticeResult };
11033
+ export type { AmendTaskOutcome, AmendTaskRequest, AssignTaskRequest, BootstrapRaftCredentialOptions, CheckInboxOutcome, CheckInboxRequest, ClaimTasksOutcome, ClaimTasksRequest, ConvertMessageToTaskRequest, CreateRaftClientFromStoreOptions, CreateRaftClientOptions, CreateRaftOptions, CreateRaftRoutesOptions, CreateTasksRequest, DrainInboxRequest, ExecuteMentionActionRequest, ListInboxRequest, ListTasksRequest, ManualContext, MentionResolutionIdsRequest, PrepareActionCardRequest, Raft, RaftAckMode, RaftActionPrepareRequest, RaftActionPrepared, RaftApiError, RaftApiResult, RaftAppConfig, RaftAppConfigPatch, RaftAttachmentBytes, RaftAttachmentDownloadUrl, RaftAttachmentUploaded, RaftAvatarUpload, RaftChannelInfo, RaftChannelJoinClient, RaftChannelJoinClientResult, RaftChannelJoinError, RaftChannelJoinFailure, RaftChannelJoinOperation, RaftChannelJoinRequest, RaftChannelJoinResult, RaftChannelJoinSuccess, RaftChannelJoinTransportError, RaftChannelMuteState, RaftChannelRef, RaftClaimResult, RaftClaimRow, RaftClaimRowState, RaftClient, RaftClientError, RaftClientFailure, RaftClientResult, RaftClientSuccess, RaftClientThrottleOptions, RaftClientTransportRequest, RaftConsumption, RaftContextAgent, RaftContextData, RaftContextError, RaftContextResult, RaftContextServer, RaftCredentialErrorCode, RaftCredentialIdentity, RaftCredentialStore, RaftEvent, RaftEventAttachment, RaftEventExternalMessage, RaftEventsReceiveData, RaftEventsReceiveError, RaftEventsReceiveRequest, RaftEventsReceiveResult, RaftFailure, RaftHintStyle, RaftHistoryPage, RaftInboxBatch, RaftInboxCommitResult, RaftInboxConversation, RaftInboxDrainSummary, RaftInboxDrained, RaftInboxListing, RaftInboxNotice, RaftInterrupt, RaftInterruptCancel, RaftInterruptReason, RaftInterruptResume, RaftInterrupted, RaftInvokeCaller, RaftInvokeResult, RaftJsonSchema, RaftJsonSchemaType, RaftLatestReadThread, RaftManageClient, RaftMentionActionOutcome, RaftMessage, RaftMessageAttachment, RaftMessageTask, RaftNextOperation, RaftNextStep, RaftNoticeFlag, RaftNoticeTarget, RaftOpError, RaftOpErrorCode, RaftOperationIdempotency, RaftOperationName, RaftOperationSpec, RaftOperationsDocument, RaftOutcome, RaftPendingMentions, RaftPreparedCard, RaftProfile, RaftProfileUpdate, RaftRouteAnnotations, RaftRouteInfo, RaftRouteKey, RaftRouteMeta, RaftRouteResult, RaftRouteRetryPolicy, RaftRoutes, RaftSdkConfigurationErrorCode, RaftSearchPage, RaftSenderType, RaftSent, RaftServerInfo, RaftServerProfile, RaftServerUpdate, RaftState, RaftStateContinuation, RaftStateSaveErrorHandler, RaftStateStore, RaftTaskBoard, RaftTaskStatus, RaftTasksCreated, RaftUserInfo, RaftUserRef, RaftWebhookStatus, ReactRequest, ReadHistoryRequest, ReadLatestReadThreadOptions, ReplyToRequest, SearchMessagesRequest, SeenAttestation, SeenFrontierSnapshot, SendMessageOutcome, SendMessageRequest, ServerInfoRequest, ServerInfoSection, StoredRaftCredential, TaskRef, UpdateTaskStatusOutcome, UpdateTaskStatusRequest, UploadAttachmentRequest, UserInfoRequest, VerifyNoticeInput, VerifyNoticeRejection, VerifyNoticeResult };
package/operations.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schema": "raft-sdk-operations.v1",
3
- "version": "4e70c891e417cd51",
3
+ "version": "2a304e867c59570a",
4
4
  "operations": [
5
5
  {
6
6
  "name": "identity.whoami",
@@ -729,10 +729,118 @@
729
729
  ]
730
730
  }
731
731
  },
732
+ {
733
+ "name": "mentions.notify",
734
+ "toolName": "mentions_notify",
735
+ "description": "Deliver unreached @mentions by notifying each mentioned target about the message, without adding them to the conversation. Takes resolutionId values from mentions.pending.",
736
+ "inputSchema": {
737
+ "type": "object",
738
+ "properties": {
739
+ "resolutionIds": {
740
+ "type": "array",
741
+ "description": "resolutionId values from mentions.pending.",
742
+ "items": {
743
+ "type": "string"
744
+ }
745
+ }
746
+ },
747
+ "required": [
748
+ "resolutionIds"
749
+ ]
750
+ },
751
+ "sideEffect": "write",
752
+ "idempotency": {
753
+ "kind": "none"
754
+ },
755
+ "capability": [
756
+ "mentions"
757
+ ],
758
+ "modelOnly": false,
759
+ "mayInterrupt": false,
760
+ "consumes": {
761
+ "model": [],
762
+ "code": []
763
+ },
764
+ "output": {
765
+ "mayBeLarge": false,
766
+ "boundBy": []
767
+ }
768
+ },
769
+ {
770
+ "name": "mentions.add",
771
+ "toolName": "mentions_add",
772
+ "description": "Deliver unreached @mentions by adding each mentioned target to the conversation, so they see the message and what follows. Takes resolutionId values from mentions.pending.",
773
+ "inputSchema": {
774
+ "type": "object",
775
+ "properties": {
776
+ "resolutionIds": {
777
+ "type": "array",
778
+ "description": "resolutionId values from mentions.pending.",
779
+ "items": {
780
+ "type": "string"
781
+ }
782
+ }
783
+ },
784
+ "required": [
785
+ "resolutionIds"
786
+ ]
787
+ },
788
+ "sideEffect": "write",
789
+ "idempotency": {
790
+ "kind": "none"
791
+ },
792
+ "capability": [
793
+ "mentions"
794
+ ],
795
+ "modelOnly": false,
796
+ "mayInterrupt": false,
797
+ "consumes": {
798
+ "model": [],
799
+ "code": []
800
+ },
801
+ "output": {
802
+ "mayBeLarge": false,
803
+ "boundBy": []
804
+ }
805
+ },
806
+ {
807
+ "name": "mentions.delivery",
808
+ "toolName": "mentions_delivery",
809
+ "description": "Whether each @mention in a message you sent reached its target.",
810
+ "inputSchema": {
811
+ "type": "object",
812
+ "properties": {
813
+ "messageId": {
814
+ "type": "string",
815
+ "description": "Id of a message you sent."
816
+ }
817
+ },
818
+ "required": [
819
+ "messageId"
820
+ ]
821
+ },
822
+ "sideEffect": "read",
823
+ "idempotency": {
824
+ "kind": "natural"
825
+ },
826
+ "capability": [
827
+ "mentions"
828
+ ],
829
+ "modelOnly": false,
830
+ "mayInterrupt": false,
831
+ "consumes": {
832
+ "model": [],
833
+ "code": []
834
+ },
835
+ "output": {
836
+ "mayBeLarge": false,
837
+ "boundBy": []
838
+ }
839
+ },
732
840
  {
733
841
  "name": "mentions.execute",
734
842
  "toolName": "mentions_execute",
735
- "description": "Deliver unreached @mentions: notify the mentioned target, or add them to the conversation.",
843
+ "description": "Deprecated: use mentions.notify / mentions.add. Removed in the next minor release. Deliver unreached @mentions: notify the mentioned target, or add them to the conversation.",
736
844
  "inputSchema": {
737
845
  "type": "object",
738
846
  "properties": {
@@ -773,12 +881,13 @@
773
881
  "output": {
774
882
  "mayBeLarge": false,
775
883
  "boundBy": []
776
- }
884
+ },
885
+ "deprecated": true
777
886
  },
778
887
  {
779
888
  "name": "mentions.deliveries",
780
889
  "toolName": "mentions_deliveries",
781
- "description": "Whether each @mention in a message you sent reached its target.",
890
+ "description": "Deprecated: use mentions.delivery. Removed in the next minor release. Whether each @mention in a message you sent reached its target.",
782
891
  "inputSchema": {
783
892
  "type": "object",
784
893
  "properties": {
@@ -807,7 +916,8 @@
807
916
  "output": {
808
917
  "mayBeLarge": false,
809
918
  "boundBy": []
810
- }
919
+ },
920
+ "deprecated": true
811
921
  },
812
922
  {
813
923
  "name": "actions.prepare",
@@ -2031,8 +2141,9 @@
2031
2141
  },
2032
2142
  "limit": {
2033
2143
  "type": "integer",
2034
- "description": "Membership paging: visible channels to inspect (default 50).",
2035
- "minimum": 1
2144
+ "description": "Membership paging: visible channels to inspect (default 50, at most 200).",
2145
+ "minimum": 1,
2146
+ "maximum": 200
2036
2147
  }
2037
2148
  },
2038
2149
  "required": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botiverse/raft-sdk",
3
- "version": "0.10.0",
3
+ "version": "0.11.1",
4
4
  "license": "FSL-1.1-ALv2",
5
5
  "description": "Typed Raft Agent API client for external agents and bots.",
6
6
  "type": "module",