@nemphi/sdk 0.6.5415 → 0.7.5500

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.
Files changed (46) hide show
  1. package/dist/generated/email/models.d.ts +2 -0
  2. package/dist/generated/email/models.d.ts.map +1 -1
  3. package/dist/generated/email/models.js +2 -0
  4. package/dist/generated/email/models.js.map +1 -1
  5. package/dist/generated/inventory/client.d.ts +29 -1
  6. package/dist/generated/inventory/client.d.ts.map +1 -1
  7. package/dist/generated/inventory/client.js +9 -1
  8. package/dist/generated/inventory/client.js.map +1 -1
  9. package/dist/generated/inventory/index.d.ts +2 -2
  10. package/dist/generated/inventory/index.d.ts.map +1 -1
  11. package/dist/generated/inventory/models.d.ts +127 -0
  12. package/dist/generated/inventory/models.d.ts.map +1 -1
  13. package/dist/generated/inventory/models.js +91 -0
  14. package/dist/generated/inventory/models.js.map +1 -1
  15. package/dist/generated/marketing/client.d.ts +531 -1
  16. package/dist/generated/marketing/client.d.ts.map +1 -1
  17. package/dist/generated/marketing/client.js +176 -3
  18. package/dist/generated/marketing/client.js.map +1 -1
  19. package/dist/generated/marketing/index.d.ts +2 -2
  20. package/dist/generated/marketing/index.d.ts.map +1 -1
  21. package/dist/generated/marketing/models.d.ts +151 -0
  22. package/dist/generated/marketing/models.d.ts.map +1 -1
  23. package/dist/generated/marketing/models.js +88 -0
  24. package/dist/generated/marketing/models.js.map +1 -1
  25. package/dist/generated/messages/client.d.ts +6 -2
  26. package/dist/generated/messages/client.d.ts.map +1 -1
  27. package/dist/generated/messages/client.js.map +1 -1
  28. package/dist/generated/messages/models.d.ts +1 -0
  29. package/dist/generated/messages/models.d.ts.map +1 -1
  30. package/dist/generated/messages/models.js +1 -0
  31. package/dist/generated/messages/models.js.map +1 -1
  32. package/dist/generated/tenants/client.d.ts +70 -37
  33. package/dist/generated/tenants/client.d.ts.map +1 -1
  34. package/dist/generated/tenants/client.js +18 -10
  35. package/dist/generated/tenants/client.js.map +1 -1
  36. package/dist/generated/tenants/index.d.ts +2 -2
  37. package/dist/generated/tenants/index.d.ts.map +1 -1
  38. package/dist/generated/tenants/models.d.ts +40 -9
  39. package/dist/generated/tenants/models.d.ts.map +1 -1
  40. package/dist/generated/tenants/models.js +29 -8
  41. package/dist/generated/tenants/models.js.map +1 -1
  42. package/dist/index.d.ts +414 -3
  43. package/dist/index.d.ts.map +1 -1
  44. package/dist/index.js +153 -0
  45. package/dist/index.js.map +1 -1
  46. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2227,9 +2227,13 @@ export interface MessageThreadFile {
2227
2227
  shared_by_id: string | null;
2228
2228
  shared_by_name: string;
2229
2229
  }
2230
- /** Result of messages.list_files. `total` is the thread's whole tally, independent of page_size. */
2230
+ /**
2231
+ * Result of messages.list_files. `total` is the thread's whole tally,
2232
+ * independent of page_size; `next_cursor` asks for the shares after this page.
2233
+ */
2231
2234
  export interface MessageThreadFileList {
2232
2235
  files: MessageThreadFile[];
2236
+ next_cursor: string | null;
2233
2237
  total: number;
2234
2238
  }
2235
2239
  export interface MessageMention {
@@ -3146,6 +3150,114 @@ export interface InventoryValuation {
3146
3150
  difference_cents?: number;
3147
3151
  in_agreement?: boolean;
3148
3152
  }
3153
+ /** One item × warehouse on the inventory page (`inventory.overview`). */
3154
+ export interface InventoryOverviewLevel extends StockLevel {
3155
+ quantity_on_rent: number;
3156
+ quantity_reserved: number;
3157
+ quantity_available: number;
3158
+ rentable: boolean;
3159
+ /** Units in and out (both positive) in the month asked for. */
3160
+ month_in: number;
3161
+ month_out: number;
3162
+ /** The owned quantity at each of the last twelve week ends, oldest first; the last is today. */
3163
+ trend: number[];
3164
+ }
3165
+ /** A month's movements of one type in one warehouse, summed. */
3166
+ export interface InventoryOverviewFlow {
3167
+ warehouse_id: string;
3168
+ /** A StockMovementType, or a rental custody move (rental_out, rental_return, rental_loss). */
3169
+ movement_type: string;
3170
+ /** Signed: positive in, negative out. */
3171
+ quantity: number;
3172
+ value_cents: number;
3173
+ movements: number;
3174
+ }
3175
+ /** One movement of the month on the inventory page. */
3176
+ export interface InventoryOverviewMovement {
3177
+ id: string;
3178
+ item_id: string;
3179
+ item_code: string | null;
3180
+ item_name: string;
3181
+ unit_code: string;
3182
+ warehouse_id: string;
3183
+ /** A StockMovementType, or a rental custody move (rental_out, rental_return, rental_loss). */
3184
+ movement_type: string;
3185
+ quantity: number;
3186
+ unit_cost_cents: number;
3187
+ total_cost_cents: number;
3188
+ occurred_at: string;
3189
+ reference: string | null;
3190
+ notes: string | null;
3191
+ source_type: string | null;
3192
+ }
3193
+ /** An open physical count with what has been found so far. */
3194
+ export interface InventoryOverviewCount {
3195
+ id: string;
3196
+ warehouse_id: string;
3197
+ counted_on: string;
3198
+ reference: string | null;
3199
+ lines: {
3200
+ item_id: string;
3201
+ expected_quantity: number;
3202
+ counted_quantity: number | null;
3203
+ }[];
3204
+ }
3205
+ /** The inventory page in one read (`inventory.overview`). Values in cents. */
3206
+ export interface InventoryOverview {
3207
+ today: string;
3208
+ /** YYYY-MM whose movements and flows these are. */
3209
+ month: string;
3210
+ currency: string;
3211
+ warehouses: {
3212
+ id: string;
3213
+ code: string;
3214
+ name: string;
3215
+ is_default: boolean;
3216
+ active: boolean;
3217
+ }[];
3218
+ /** The active items that keep stock. */
3219
+ items: {
3220
+ id: string;
3221
+ code: string | null;
3222
+ name: string;
3223
+ unit_code: string;
3224
+ reorder_point: number | null;
3225
+ }[];
3226
+ levels: InventoryOverviewLevel[];
3227
+ flows: InventoryOverviewFlow[];
3228
+ movements: InventoryOverviewMovement[];
3229
+ /** Twelve months per warehouse ending with `month`: value in, out and at close. */
3230
+ history: {
3231
+ warehouse_id: string;
3232
+ months: {
3233
+ month: string;
3234
+ in_cents: number;
3235
+ out_cents: number;
3236
+ closing_cents: number;
3237
+ }[];
3238
+ }[];
3239
+ stock_value_cents: number;
3240
+ ledger_balance_cents: number;
3241
+ difference_cents: number;
3242
+ low_stock_count: number;
3243
+ reorder: {
3244
+ estimated_total_cost_cents: number;
3245
+ suggestions: ReorderSuggestion[];
3246
+ };
3247
+ open_counts: InventoryOverviewCount[];
3248
+ /** Whether there were more levels or movements than the page carries. */
3249
+ truncated: boolean;
3250
+ /** Which of the page's writes the caller's role reaches. */
3251
+ can: {
3252
+ adjust: boolean;
3253
+ transfer: boolean;
3254
+ count_start: boolean;
3255
+ count_record: boolean;
3256
+ count_post: boolean;
3257
+ opening_balance: boolean;
3258
+ warehouses_create: boolean;
3259
+ };
3260
+ }
3149
3261
  export interface ReorderSuggestion {
3150
3262
  item_id: string;
3151
3263
  item_code: string | null;
@@ -4957,6 +5069,55 @@ export interface MarketingInboxTopic {
4957
5069
  description?: string;
4958
5070
  }
4959
5071
  /** An inbox conversation on a connected marketing channel (WhatsApp Business threads today). */
5072
+ /** A public comment under an Instagram or Facebook post, or a reply sent from the inbox. */
5073
+ export interface MarketingComment {
5074
+ id: string;
5075
+ channel_id: string;
5076
+ post_id: string | null;
5077
+ external_id: string;
5078
+ parent_external_id: string;
5079
+ author_name: string;
5080
+ body: string;
5081
+ direction: "in" | "out";
5082
+ status: "received" | "pending" | "sent" | "failed";
5083
+ hidden: boolean;
5084
+ error: string;
5085
+ commented_at: string;
5086
+ post_caption: string | null;
5087
+ post_url: string | null;
5088
+ }
5089
+ /** A private note teammates left on an inbox thread. */
5090
+ export interface MarketingConversationNote {
5091
+ id: string;
5092
+ author_user_id: string | null;
5093
+ author_name: string;
5094
+ body: string;
5095
+ created_at: string;
5096
+ }
5097
+ /** An internal comment a teammate left on a post. */
5098
+ export interface MarketingPostNote {
5099
+ id: string;
5100
+ author_user_id: string | null;
5101
+ author_name: string;
5102
+ body: string;
5103
+ created_at: string;
5104
+ }
5105
+ /** A post idea in the workspace's backlog. */
5106
+ export interface MarketingIdea {
5107
+ id: string;
5108
+ title: string;
5109
+ notes: string;
5110
+ created_at: string;
5111
+ updated_at: string;
5112
+ }
5113
+ /** A saved caption or hashtag group the composer inserts. */
5114
+ export interface MarketingSnippet {
5115
+ id: string;
5116
+ kind: "caption" | "hashtags";
5117
+ name: string;
5118
+ body: string;
5119
+ updated_at: string;
5120
+ }
4960
5121
  export interface MarketingConversation {
4961
5122
  id: string;
4962
5123
  channel_id: string;
@@ -4967,6 +5128,8 @@ export interface MarketingConversation {
4967
5128
  peer_phone: string;
4968
5129
  peer_name: string;
4969
5130
  party_id?: string | null;
5131
+ /** The teammate who owns the thread. */
5132
+ assignee_user_id?: string;
4970
5133
  last_message_at: string | null;
4971
5134
  last_direction?: "inbound" | "outbound";
4972
5135
  last_snippet: string;
@@ -5401,6 +5564,75 @@ export interface MarketingPost {
5401
5564
  channel_name?: string;
5402
5565
  /** The TikTok direct-post choices a TikTok post carries, as TikTok's `post_info` names them. */
5403
5566
  tiktok?: MarketingPostTikTokSettings | null;
5567
+ /** The Instagram and Facebook extras: first comment, alt text, collaborators. */
5568
+ details?: MarketingPostDetails | null;
5569
+ /** The workspace's own labels for the post; never published. */
5570
+ tags?: string[];
5571
+ }
5572
+ /** What an Instagram or Facebook post carries beside its caption. */
5573
+ export interface MarketingPostDetails {
5574
+ first_comment?: string;
5575
+ alt_text?: string;
5576
+ collaborators?: string[];
5577
+ }
5578
+ /** The extras `marketing.create_post` and `marketing.save_post_draft` take. */
5579
+ export interface MarketingPostDetailChoices {
5580
+ first_comment?: string;
5581
+ alt_text?: string;
5582
+ collaborators?: string[];
5583
+ }
5584
+ /** A caption the AI wrote for one network. */
5585
+ export interface MarketingCaptionSuggestion {
5586
+ provider: string;
5587
+ caption: string;
5588
+ }
5589
+ /** A request for AI captions and, once done, one suggestion per network. */
5590
+ export interface MarketingCaptionDraft {
5591
+ id: string;
5592
+ status: "queued" | "done" | "failed";
5593
+ brief: string;
5594
+ tone: string;
5595
+ providers: string[];
5596
+ suggestions: MarketingCaptionSuggestion[];
5597
+ /** Starts with a code: allowance_used, not_configured or failed. */
5598
+ error: string;
5599
+ created_at: string;
5600
+ finished_at: string | null;
5601
+ }
5602
+ /** A generated picture or video request; url is set once it is done. */
5603
+ export interface MarketingGeneration {
5604
+ id: string;
5605
+ kind: "image" | "video";
5606
+ status: "queued" | "rendering" | "done" | "failed";
5607
+ prompt: string;
5608
+ url: string | null;
5609
+ error: string;
5610
+ created_at: string;
5611
+ }
5612
+ /** One weekly posting time: 0 Sunday … 6 Saturday, and a local "HH:MM". */
5613
+ export interface MarketingPostScheduleSlot {
5614
+ weekday: number;
5615
+ time: string;
5616
+ }
5617
+ /** An account's weekly posting times and the next one no post has taken. */
5618
+ export interface MarketingPostSchedule {
5619
+ channel_id: string;
5620
+ time_zone: string | null;
5621
+ slots: MarketingPostScheduleSlot[];
5622
+ next_slot: string | null;
5623
+ }
5624
+ /** A weekday and hour an account's published posts drew the most interactions at. */
5625
+ export interface MarketingBestTime {
5626
+ weekday: number;
5627
+ hour: number;
5628
+ posts: number;
5629
+ average_interactions: number;
5630
+ }
5631
+ /** The best times to post, best first, with how many posts they were read from. */
5632
+ export interface MarketingBestTimes {
5633
+ time_zone: string;
5634
+ sample: number;
5635
+ times: MarketingBestTime[];
5404
5636
  }
5405
5637
  /** Who can view a TikTok video, as TikTok's creator info offers the levels. */
5406
5638
  export type TikTokPrivacyLevel = "PUBLIC_TO_EVERYONE" | "MUTUAL_FOLLOW_FRIENDS" | "FOLLOWER_OF_CREATOR" | "SELF_ONLY";
@@ -5829,7 +6061,10 @@ export interface EmailMessage {
5829
6061
  provider: "gmail" | "outlook";
5830
6062
  thread_id?: string;
5831
6063
  direction: "inbound" | "outbound";
6064
+ /** The sender's address. */
5832
6065
  from: string;
6066
+ /** The From header's display name ("Anthropic"); absent when it names no one, or on mail synced before it was kept. */
6067
+ from_name?: string;
5833
6068
  to: string[];
5834
6069
  cc?: string[];
5835
6070
  subject: string;
@@ -5888,6 +6123,8 @@ export interface EmailMessageBody {
5888
6123
  account_id: string;
5889
6124
  direction: "inbound" | "outbound";
5890
6125
  from: string;
6126
+ /** The From header's display name; empty when it names no one. */
6127
+ from_name: string;
5891
6128
  to: string[];
5892
6129
  cc?: string[];
5893
6130
  subject: string;
@@ -6389,6 +6626,55 @@ export interface ChatApprovalOutcome {
6389
6626
  /** Present when approved but the call failed. */
6390
6627
  error?: string;
6391
6628
  }
6629
+ /** How an `askSession` stood when its wait ended. */
6630
+ export type SessionAskState = "answered" | "awaiting_approval" | "awaiting_input" | "working" | "failed";
6631
+ /**
6632
+ * What `askSession` answers: the question as a message in a session thread,
6633
+ * and how that session's run stood when the wait ended.
6634
+ */
6635
+ export interface SessionAsk {
6636
+ thread_id: string;
6637
+ /** The session the ask opened; absent when it went to a thread already open. */
6638
+ session_id?: string;
6639
+ /** The message sent; "" for a wait that sent none. */
6640
+ message_id: string;
6641
+ /** The session run the message reached; "" when none did yet. */
6642
+ run_id: string;
6643
+ state: SessionAskState;
6644
+ /** The answer's prose, markdown, when `state` is `answered`. */
6645
+ reply: string;
6646
+ /** The answer's json-render spec, when it drew one. */
6647
+ ui?: UISpec;
6648
+ /** The answer's Block Kit blocks, when it laid some out. */
6649
+ blocks?: MessageBlock[];
6650
+ /**
6651
+ * The action that waits for a person: decide it with `approveRun` /
6652
+ * `denyRun` on `run_id`, the run that holds it (the session's own, or a
6653
+ * specialist's it called).
6654
+ */
6655
+ approval?: {
6656
+ id: string;
6657
+ run_id: string;
6658
+ tool: string;
6659
+ input: Json;
6660
+ };
6661
+ /** The questions the run asked: answer with `answerRun`, or by writing in the thread. */
6662
+ questions?: RunQuestion[];
6663
+ /** What the run waits on was pending before this message: the message waits behind it. */
6664
+ queued: boolean;
6665
+ /** Why the run failed: `ai_allowance_used` when the plan refused the model. */
6666
+ error?: {
6667
+ code: string;
6668
+ message: string;
6669
+ };
6670
+ }
6671
+ /**
6672
+ * One frame of a chat thread's own stream (`streamThread`): a piece of the
6673
+ * answer a run is writing, or a run step's end.
6674
+ */
6675
+ export type ThreadStreamEvent = Extract<RealtimeEvent, {
6676
+ type: "run" | "run_delta";
6677
+ }>;
6392
6678
  export interface OverviewChatResponse {
6393
6679
  reply: string;
6394
6680
  /**
@@ -7624,12 +7910,68 @@ export interface NemphiClient {
7624
7910
  media_urls?: string[];
7625
7911
  media_type?: MarketingPost["media_type"];
7626
7912
  scheduled_at?: string;
7627
- } & TikTokPostChoices): Promise<{
7913
+ /** Per-account captions keyed by channel id; an account named here gets its own text. */
7914
+ captions?: Record<string, string>;
7915
+ /** Schedule each account's post for its next free posting time instead of scheduled_at. */
7916
+ queue?: boolean;
7917
+ } & TikTokPostChoices & MarketingPostDetailChoices): Promise<{
7628
7918
  batch_id: string;
7629
7919
  posts: MarketingPost[];
7630
7920
  note?: string;
7631
7921
  }>;
7632
7922
  getTikTokCreatorInfo(channelId: string): Promise<TikTokCreatorInfo>;
7923
+ writeMarketingCaptions(input: {
7924
+ brief: string;
7925
+ providers: string[];
7926
+ tone?: "friendly" | "professional" | "playful" | "bold";
7927
+ language?: string;
7928
+ current_caption?: string;
7929
+ }): Promise<MarketingCaptionDraft>;
7930
+ getMarketingCaptionDraft(draftId: string): Promise<MarketingCaptionDraft>;
7931
+ generateMarketingImage(input: {
7932
+ prompt: string;
7933
+ orientation?: "square" | "portrait" | "landscape";
7934
+ }): Promise<MarketingGeneration>;
7935
+ listMarketingGenerations(input?: {
7936
+ kind?: "image" | "video";
7937
+ status?: MarketingGeneration["status"];
7938
+ }): Promise<MarketingGeneration[]>;
7939
+ listMarketingPostSchedules(): Promise<MarketingPostSchedule[]>;
7940
+ setMarketingPostSchedule(input: {
7941
+ channel_id: string;
7942
+ time_zone: string;
7943
+ slots: MarketingPostScheduleSlot[];
7944
+ }): Promise<MarketingPostSchedule>;
7945
+ getMarketingBestPostTimes(input: {
7946
+ channel_id: string;
7947
+ time_zone?: string;
7948
+ }): Promise<MarketingBestTimes>;
7949
+ setMarketingPostTags(input: {
7950
+ post_id: string;
7951
+ tags: string[];
7952
+ }): Promise<MarketingPost>;
7953
+ listMarketingPostNotes(postId: string): Promise<MarketingPostNote[]>;
7954
+ addMarketingPostNote(input: {
7955
+ post_id: string;
7956
+ body: string;
7957
+ }): Promise<MarketingPostNote>;
7958
+ listMarketingSnippets(input?: {
7959
+ kind?: MarketingSnippet["kind"];
7960
+ }): Promise<MarketingSnippet[]>;
7961
+ saveMarketingSnippet(input: {
7962
+ id?: string;
7963
+ kind: MarketingSnippet["kind"];
7964
+ name: string;
7965
+ body: string;
7966
+ }): Promise<MarketingSnippet>;
7967
+ deleteMarketingSnippet(id: string): Promise<MarketingSnippet>;
7968
+ listMarketingIdeas(): Promise<MarketingIdea[]>;
7969
+ saveMarketingIdea(input: {
7970
+ id?: string;
7971
+ title: string;
7972
+ notes?: string;
7973
+ }): Promise<MarketingIdea>;
7974
+ deleteMarketingIdea(id: string): Promise<MarketingIdea>;
7633
7975
  listMarketingPostRevisions(input: {
7634
7976
  post_id: string;
7635
7977
  before_version?: number;
@@ -7657,7 +7999,7 @@ export interface NemphiClient {
7657
7999
  caption?: string;
7658
8000
  media_type?: MarketingPost["media_type"];
7659
8001
  media_urls?: string[];
7660
- } & TikTokPostChoices): Promise<{
8002
+ } & TikTokPostChoices & MarketingPostDetailChoices): Promise<{
7661
8003
  post: MarketingPost;
7662
8004
  }>;
7663
8005
  submitMarketingPost(postId: string): Promise<{
@@ -7738,6 +8080,28 @@ export interface NemphiClient {
7738
8080
  conversation_id: string;
7739
8081
  body: string;
7740
8082
  }): Promise<MarketingMessage>;
8083
+ listMarketingComments(input?: {
8084
+ channel_id?: string;
8085
+ post_id?: string;
8086
+ limit?: number;
8087
+ }): Promise<MarketingComment[]>;
8088
+ replyToMarketingComment(input: {
8089
+ comment_id: string;
8090
+ body: string;
8091
+ }): Promise<MarketingComment>;
8092
+ hideMarketingComment(input: {
8093
+ comment_id: string;
8094
+ hidden: boolean;
8095
+ }): Promise<MarketingComment>;
8096
+ assignMarketingConversation(input: {
8097
+ conversation_id: string;
8098
+ assignee_user_id?: string;
8099
+ }): Promise<MarketingConversation>;
8100
+ listMarketingConversationNotes(conversationId: string): Promise<MarketingConversationNote[]>;
8101
+ addMarketingConversationNote(input: {
8102
+ conversation_id: string;
8103
+ body: string;
8104
+ }): Promise<MarketingConversationNote>;
7741
8105
  linkMarketingConversationParty(input: {
7742
8106
  conversation_id: string;
7743
8107
  party_id: string;
@@ -8534,6 +8898,34 @@ export interface NemphiClient {
8534
8898
  * same route through its own server route.
8535
8899
  */
8536
8900
  openRealtimeSocket(options: RealtimeSocketOptions): RealtimeSocket;
8901
+ /**
8902
+ * One chat thread's own stream (`GET /v1/threads/{id}/stream`), for a
8903
+ * member who sits in it: the answers its agent runs are writing
8904
+ * (`run_delta`) and each run step's end (`run`). It opens the stream
8905
+ * again with backoff whenever it drops or the server ends it, until
8906
+ * `signal` aborts; a refusal that will not change (401, 403, the thread
8907
+ * not found as 404) throws an `ApiError`.
8908
+ *
8909
+ * Every connection first replays the turn being written, so a reader
8910
+ * that reconnects mid-answer has all of it. Fold the pieces by
8911
+ * `(seq, n)`: a later `seq` starts the run's text over, a piece already
8912
+ * held (the same `seq`, an `n` at or below the last) changes nothing.
8913
+ * The answer itself always lands as a message; a `run` frame whose
8914
+ * outcome is `continue` or `parked` means the text so far was preamble.
8915
+ * A step that ended while the stream was down is not replayed, so
8916
+ * `onOpen` after the first is the moment to re-read the thread.
8917
+ *
8918
+ * `follow: false` reads the replay alone and ends: the turns being
8919
+ * written right now, for a reader that takes the live frames from
8920
+ * `openRealtimeSocket`.
8921
+ */
8922
+ streamThread(threadId: string, opts?: {
8923
+ signal?: AbortSignal;
8924
+ /** Called each time the stream answers. */
8925
+ onOpen?: () => void;
8926
+ /** False reads the replay once and ends; true (the default) follows the thread. */
8927
+ follow?: boolean;
8928
+ }): AsyncGenerator<ThreadStreamEvent, void, void>;
8537
8929
  /** Say the caller is writing in a thread or an inbox conversation (`POST /v1/events/typing`); nothing is stored. */
8538
8930
  sendTyping(input: {
8539
8931
  scope: TypingScope;
@@ -8697,6 +9089,8 @@ export interface NemphiClient {
8697
9089
  warehouse_id?: string;
8698
9090
  limit?: number;
8699
9091
  }): Promise<ReorderSuggestion[]>;
9092
+ /** The inventory page in one read; `month` is YYYY-MM, this month when omitted. */
9093
+ inventoryOverview(month?: string): Promise<InventoryOverview>;
8700
9094
  adjustStock(input: {
8701
9095
  item_id: string;
8702
9096
  warehouse_id?: string;
@@ -9085,6 +9479,23 @@ export interface NemphiClient {
9085
9479
  kind?: FeatureKind;
9086
9480
  only_unused?: boolean;
9087
9481
  }): Promise<FeatureUsageResponse>;
9482
+ /**
9483
+ * Asks the orchestrator one question as a message in a session thread
9484
+ * (a new session, or `thread_id` to carry one on) and waits for that
9485
+ * session's run: its whole answer, the approval or questions it parked
9486
+ * on, or `working` once `wait_ms` (at most 55 000; 25 000 by default)
9487
+ * runs out, when the reply lands in the thread. With `thread_id` and no
9488
+ * `text` it sends nothing and waits on the thread as it stands: the
9489
+ * answer once an approval is decided. Follow the thread live with
9490
+ * `streamThread`.
9491
+ */
9492
+ askSession(input: {
9493
+ text?: string;
9494
+ thread_id?: string;
9495
+ context?: string;
9496
+ document_ids?: string[];
9497
+ wait_ms?: number;
9498
+ }): Promise<SessionAsk>;
9088
9499
  overviewChat(input: {
9089
9500
  messages: ChatMessage[];
9090
9501
  }): Promise<OverviewChatResponse>;