@pushwoosh/rpc-gateway-ai-assistant 0.1.165 → 0.1.166

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
@@ -1928,6 +1928,25 @@ export const data = {
1928
1928
  }
1929
1929
  }
1930
1930
  },
1931
+ "pushwoosh.accounts.assistant.v1.GetOnboardingStatusRequest": {
1932
+ "type": "I",
1933
+ "fields": {
1934
+ "application": {
1935
+ "type": "string"
1936
+ }
1937
+ }
1938
+ },
1939
+ "pushwoosh.accounts.assistant.v1.GetOnboardingStatusResponse": {
1940
+ "type": "I",
1941
+ "fields": {
1942
+ "hasOnboardingChat": {
1943
+ "type": "boolean"
1944
+ },
1945
+ "completed": {
1946
+ "type": "boolean"
1947
+ }
1948
+ }
1949
+ },
1931
1950
  "pushwoosh.accounts.assistant.v1.CompleteOnboardingHandoffRequest": {
1932
1951
  "type": "I",
1933
1952
  "fields": {
@@ -2036,6 +2055,12 @@ export const data = {
2036
2055
  "method": "get",
2037
2056
  "path": "/api/v1/applications/{application}/usage-allowed"
2038
2057
  },
2058
+ "GetOnboardingStatus": {
2059
+ "request": "pushwoosh.accounts.assistant.v1.GetOnboardingStatusRequest",
2060
+ "response": "pushwoosh.accounts.assistant.v1.GetOnboardingStatusResponse",
2061
+ "method": "get",
2062
+ "path": "/api/v1/applications/{application}/onboarding/status"
2063
+ },
2039
2064
  "CompleteOnboardingHandoff": {
2040
2065
  "request": "pushwoosh.accounts.assistant.v1.CompleteOnboardingHandoffRequest",
2041
2066
  "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.165",
3
+ "version": "0.1.166",
4
4
  "description": "AI Assistant api gateway HTTP API Types and Data",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -206,6 +206,31 @@ export type CheckUsageAllowedResponse = {
206
206
  allowed: boolean;
207
207
  reason: string;
208
208
  };
209
+ /**
210
+ * GetOnboardingStatusRequest reports the calling account's onboarding state.
211
+ * Onboarding is per-account (at most one onboarding chat per account); the
212
+ * application is only used for routing and auth scoping.
213
+ */
214
+ export type GetOnboardingStatusRequest = {
215
+ application: string;
216
+ };
217
+ /**
218
+ * GetOnboardingStatusResponse lets the frontend decide whether to route the
219
+ * account into onboarding without fetching the whole chat list.
220
+ */
221
+ export type GetOnboardingStatusResponse = {
222
+ /**
223
+ * has_onboarding_chat is true once an onboarding chat exists for the account
224
+ * (active or completed). The partial unique index guarantees at most one.
225
+ */
226
+ hasOnboardingChat: boolean;
227
+ /**
228
+ * completed is true when the onboarding chat reached its Definition of Done
229
+ * (onboarding_completed_at is set). Always false when has_onboarding_chat is
230
+ * false.
231
+ */
232
+ completed: boolean;
233
+ };
209
234
  /**
210
235
  * CompleteOnboardingHandoffRequest performs the transition from a completed
211
236
  * onboarding chat to a fresh regular chat. The referenced chat must be the
@@ -234,6 +259,7 @@ export type AssistantService_GetConsent = RpcMethod<GetConsentRequest, GetConsen
234
259
  export type AssistantService_GiveConsent = RpcMethod<GiveConsentRequest, GiveConsentResponse>;
235
260
  export type AssistantService_CompactifyContext = RpcMethod<CompactifyContextRequest, CompactifyContextResponse>;
236
261
  export type AssistantService_CheckUsageAllowed = RpcMethod<CheckUsageAllowedRequest, CheckUsageAllowedResponse>;
262
+ export type AssistantService_GetOnboardingStatus = RpcMethod<GetOnboardingStatusRequest, GetOnboardingStatusResponse>;
237
263
  export type AssistantService_CompleteOnboardingHandoff = RpcMethod<CompleteOnboardingHandoffRequest, CompleteOnboardingHandoffResponse>;
238
264
  export interface AssistantService {
239
265
  /** Create a new chat */
@@ -273,6 +299,12 @@ export interface AssistantService {
273
299
  GiveConsent: AssistantService_GiveConsent;
274
300
  CompactifyContext: AssistantService_CompactifyContext;
275
301
  CheckUsageAllowed: AssistantService_CheckUsageAllowed;
302
+ /**
303
+ * GetOnboardingStatus reports whether the calling account already has an
304
+ * onboarding chat and whether it is completed. The frontend uses it to
305
+ * decide whether to route a new account into onboarding.
306
+ */
307
+ GetOnboardingStatus: AssistantService_GetOnboardingStatus;
276
308
  /**
277
309
  * CompleteOnboardingHandoff atomically creates the regular chat that
278
310
  * succeeds a completed onboarding chat and copies the agent's handoff