@pushwoosh/rpc-gateway-ai-assistant 0.1.652 → 0.1.654

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/data.js CHANGED
@@ -4516,6 +4516,41 @@ export const data = {
4516
4516
  }
4517
4517
  }
4518
4518
  },
4519
+ "pushwoosh.accounts.assistant.v1.GetOnboardingChatRequest": {
4520
+ "type": "I",
4521
+ "fields": {}
4522
+ },
4523
+ "pushwoosh.accounts.assistant.v1.OnboardingChatRole": {
4524
+ "type": "E",
4525
+ "values": [
4526
+ "ONBOARDING_CHAT_ROLE_UNSPECIFIED",
4527
+ "ONBOARDING_CHAT_ROLE_MAIN_USER",
4528
+ "ONBOARDING_CHAT_ROLE_COLLEAGUE"
4529
+ ]
4530
+ },
4531
+ "pushwoosh.accounts.assistant.v1.GetOnboardingChatResponse": {
4532
+ "type": "I",
4533
+ "fields": {
4534
+ "chatId": {
4535
+ "type": "number"
4536
+ },
4537
+ "application": {
4538
+ "type": "string"
4539
+ },
4540
+ "role": {
4541
+ "type": "pushwoosh.accounts.assistant.v1.OnboardingChatRole"
4542
+ },
4543
+ "inOnboarding": {
4544
+ "type": "boolean"
4545
+ },
4546
+ "completed": {
4547
+ "type": "boolean"
4548
+ },
4549
+ "stepPage": {
4550
+ "type": "string"
4551
+ }
4552
+ }
4553
+ },
4519
4554
  "pushwoosh.accounts.assistant.v1.CreateRealtimeSessionRequest": {
4520
4555
  "type": "I",
4521
4556
  "fields": {
@@ -4908,6 +4943,12 @@ export const data = {
4908
4943
  "method": "get",
4909
4944
  "path": "/api/v1/applications/{application}/onboarding/status"
4910
4945
  },
4946
+ "GetOnboardingChat": {
4947
+ "request": "pushwoosh.accounts.assistant.v1.GetOnboardingChatRequest",
4948
+ "response": "pushwoosh.accounts.assistant.v1.GetOnboardingChatResponse",
4949
+ "method": "get",
4950
+ "path": "/api/v1/onboarding/chat"
4951
+ },
4911
4952
  "CompleteOnboardingHandoff": {
4912
4953
  "request": "pushwoosh.accounts.assistant.v1.CompleteOnboardingHandoffRequest",
4913
4954
  "response": "pushwoosh.accounts.assistant.v1.CompleteOnboardingHandoffResponse",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pushwoosh/rpc-gateway-ai-assistant",
3
- "version": "0.1.652",
3
+ "version": "0.1.654",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -341,6 +341,24 @@ export type CompleteOnboardingHandoffRequest = {
341
341
  export type CompleteOnboardingHandoffResponse = {
342
342
  chat: Chat;
343
343
  };
344
+ /** GetOnboardingChatRequest carries no application: the panel asks on pages that have none. */
345
+ export type GetOnboardingChatRequest = {};
346
+ export type OnboardingChatRole =
347
+ /** no access: not the main user, no live chat invite */
348
+ 'ONBOARDING_CHAT_ROLE_UNSPECIFIED' | 'ONBOARDING_CHAT_ROLE_MAIN_USER' | 'ONBOARDING_CHAT_ROLE_COLLEAGUE';
349
+ export type GetOnboardingChatResponse = {
350
+ /** 0 when there is no chat or no access */
351
+ chatId: number;
352
+ /** the chat's application code */
353
+ application: string;
354
+ role: OnboardingChatRole;
355
+ /** the onboarding flag of account_onboarding_steps */
356
+ inOnboarding: boolean;
357
+ /** onboarding_status is completed */
358
+ completed: boolean;
359
+ /** the chat's steppage; the panel arms no nudge there (part 05 §2.3) */
360
+ stepPage: string;
361
+ };
344
362
  /**
345
363
  * CreateRealtimeSessionRequest mints an ephemeral realtime voice secret
346
364
  * (OpenAI Realtime over WebRTC or Gemini Live over WebSocket). The session
@@ -524,6 +542,7 @@ export type AssistantService_GiveConsent = RpcMethod<GiveConsentRequest, GiveCon
524
542
  export type AssistantService_CompactifyContext = RpcMethod<CompactifyContextRequest, CompactifyContextResponse>;
525
543
  export type AssistantService_CheckUsageAllowed = RpcMethod<CheckUsageAllowedRequest, CheckUsageAllowedResponse>;
526
544
  export type AssistantService_GetOnboardingStatus = RpcMethod<GetOnboardingStatusRequest, GetOnboardingStatusResponse>;
545
+ export type AssistantService_GetOnboardingChat = RpcMethod<GetOnboardingChatRequest, GetOnboardingChatResponse>;
527
546
  export type AssistantService_CompleteOnboardingHandoff = RpcMethod<CompleteOnboardingHandoffRequest, CompleteOnboardingHandoffResponse>;
528
547
  export type AssistantService_CreateRealtimeSession = RpcMethod<CreateRealtimeSessionRequest, CreateRealtimeSessionResponse>;
529
548
  export type AssistantService_CallVoiceTool = RpcMethod<CallVoiceToolRequest, CallVoiceToolResponse>;
@@ -585,6 +604,11 @@ export interface AssistantService {
585
604
  * decide whether to route a new account into onboarding.
586
605
  */
587
606
  GetOnboardingStatus: AssistantService_GetOnboardingStatus;
607
+ /**
608
+ * GetOnboardingChat finds the account's onboarding chat by the session alone, for pages without an
609
+ * application. A user it is not open to gets zeros, not an error.
610
+ */
611
+ GetOnboardingChat: AssistantService_GetOnboardingChat;
588
612
  /**
589
613
  * CompleteOnboardingHandoff atomically creates the regular chat that
590
614
  * succeeds a completed onboarding chat and copies the agent's handoff