@epilot/sdk 2.7.0 → 2.8.0-rc.0
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/README.md +1 -0
- package/definitions/app.json +101 -8
- package/definitions/configuration-hub-runtime.json +1 -1
- package/definitions/configuration-hub.json +623 -0
- package/definitions/customer-portal-runtime.json +1 -1
- package/definitions/customer-portal.json +505 -6
- package/definitions/design-runtime.json +1 -1
- package/definitions/design.json +1 -11
- package/definitions/email-settings-runtime.json +1 -1
- package/definitions/email-settings.json +86 -4
- package/definitions/file-runtime.json +1 -1
- package/definitions/file.json +262 -4
- package/definitions/focus-pocus-runtime.json +1 -0
- package/definitions/focus-pocus.json +757 -0
- package/definitions/journey-runtime.json +1 -1
- package/definitions/journey.json +21 -1
- package/dist/README-37TXN4EL.cjs +7 -0
- package/dist/README-Z2WITBOR.js +7 -0
- package/dist/{_index-DB2VV4PQ.cjs → _index-HTUXYSTD.cjs} +4 -1
- package/dist/{_index-5FB6F5YY.js → _index-YTOJUFGD.js} +3 -0
- package/dist/apis/access-token.cjs +6 -6
- package/dist/apis/access-token.js +1 -1
- package/dist/apis/address-suggestions.cjs +6 -6
- package/dist/apis/address-suggestions.js +1 -1
- package/dist/apis/address.cjs +6 -6
- package/dist/apis/address.js +1 -1
- package/dist/apis/ai-agents.cjs +6 -6
- package/dist/apis/ai-agents.js +1 -1
- package/dist/apis/app.cjs +6 -6
- package/dist/apis/app.d.cts +2 -2
- package/dist/apis/app.d.ts +2 -2
- package/dist/apis/app.js +1 -1
- package/dist/apis/audit-logs.cjs +6 -6
- package/dist/apis/audit-logs.js +1 -1
- package/dist/apis/automation.cjs +6 -6
- package/dist/apis/automation.js +1 -1
- package/dist/apis/billing.cjs +6 -6
- package/dist/apis/billing.js +1 -1
- package/dist/apis/blueprint-manifest.cjs +6 -6
- package/dist/apis/blueprint-manifest.js +1 -1
- package/dist/apis/calendar.cjs +6 -6
- package/dist/apis/calendar.js +1 -1
- package/dist/apis/configuration-hub.cjs +8 -8
- package/dist/apis/configuration-hub.d.cts +2 -2
- package/dist/apis/configuration-hub.d.ts +2 -2
- package/dist/apis/configuration-hub.js +2 -2
- package/dist/apis/consent.cjs +6 -6
- package/dist/apis/consent.js +1 -1
- package/dist/apis/customer-portal.cjs +8 -8
- package/dist/apis/customer-portal.d.cts +2 -2
- package/dist/apis/customer-portal.d.ts +2 -2
- package/dist/apis/customer-portal.js +2 -2
- package/dist/apis/dashboard.cjs +6 -6
- package/dist/apis/dashboard.js +1 -1
- package/dist/apis/data-governance.cjs +6 -6
- package/dist/apis/data-governance.js +1 -1
- package/dist/apis/deduplication.cjs +6 -6
- package/dist/apis/deduplication.js +1 -1
- package/dist/apis/design.cjs +8 -8
- package/dist/apis/design.js +2 -2
- package/dist/apis/document.cjs +6 -6
- package/dist/apis/document.js +1 -1
- package/dist/apis/email-settings.cjs +8 -8
- package/dist/apis/email-settings.d.cts +2 -2
- package/dist/apis/email-settings.d.ts +2 -2
- package/dist/apis/email-settings.js +2 -2
- package/dist/apis/email-template.cjs +6 -6
- package/dist/apis/email-template.js +1 -1
- package/dist/apis/entity-mapping.cjs +6 -6
- package/dist/apis/entity-mapping.js +1 -1
- package/dist/apis/entity.cjs +6 -6
- package/dist/apis/entity.js +1 -1
- package/dist/apis/environments.cjs +6 -6
- package/dist/apis/environments.js +1 -1
- package/dist/apis/event-catalog.cjs +6 -6
- package/dist/apis/event-catalog.js +1 -1
- package/dist/apis/file.cjs +8 -8
- package/dist/apis/file.d.cts +2 -2
- package/dist/apis/file.d.ts +2 -2
- package/dist/apis/file.js +2 -2
- package/dist/apis/focus-pocus.cjs +38 -0
- package/dist/apis/focus-pocus.d.cts +18 -0
- package/dist/apis/focus-pocus.d.ts +18 -0
- package/dist/apis/focus-pocus.js +38 -0
- package/dist/apis/iban.cjs +6 -6
- package/dist/apis/iban.js +1 -1
- package/dist/apis/integration-toolkit.cjs +6 -6
- package/dist/apis/integration-toolkit.js +1 -1
- package/dist/apis/journey.cjs +8 -8
- package/dist/apis/journey.d.cts +2 -2
- package/dist/apis/journey.d.ts +2 -2
- package/dist/apis/journey.js +2 -2
- package/dist/apis/kanban.cjs +6 -6
- package/dist/apis/kanban.js +1 -1
- package/dist/apis/message.cjs +6 -6
- package/dist/apis/message.js +1 -1
- package/dist/apis/metering.cjs +6 -6
- package/dist/apis/metering.js +1 -1
- package/dist/apis/notes.cjs +6 -6
- package/dist/apis/notes.js +1 -1
- package/dist/apis/notification.cjs +6 -6
- package/dist/apis/notification.js +1 -1
- package/dist/apis/organization.cjs +6 -6
- package/dist/apis/organization.js +1 -1
- package/dist/apis/partner-directory.cjs +6 -6
- package/dist/apis/partner-directory.js +1 -1
- package/dist/apis/permissions.cjs +6 -6
- package/dist/apis/permissions.js +1 -1
- package/dist/apis/pricing-tier.cjs +6 -6
- package/dist/apis/pricing-tier.js +1 -1
- package/dist/apis/pricing.cjs +6 -6
- package/dist/apis/pricing.js +1 -1
- package/dist/apis/purpose.cjs +6 -6
- package/dist/apis/purpose.js +1 -1
- package/dist/apis/query.cjs +6 -6
- package/dist/apis/query.js +1 -1
- package/dist/apis/sandbox.cjs +6 -6
- package/dist/apis/sandbox.js +1 -1
- package/dist/apis/sharing.cjs +6 -6
- package/dist/apis/sharing.js +1 -1
- package/dist/apis/submission.cjs +6 -6
- package/dist/apis/submission.js +1 -1
- package/dist/apis/target.cjs +6 -6
- package/dist/apis/target.js +1 -1
- package/dist/apis/targeting.cjs +6 -6
- package/dist/apis/targeting.js +1 -1
- package/dist/apis/template-variables.cjs +6 -6
- package/dist/apis/template-variables.js +1 -1
- package/dist/apis/user.cjs +6 -6
- package/dist/apis/user.js +1 -1
- package/dist/apis/validation-rules.cjs +6 -6
- package/dist/apis/validation-rules.js +1 -1
- package/dist/apis/webhooks.cjs +6 -6
- package/dist/apis/webhooks.js +1 -1
- package/dist/apis/workflow-definition.cjs +6 -6
- package/dist/apis/workflow-definition.js +1 -1
- package/dist/apis/workflow.cjs +6 -6
- package/dist/apis/workflow.js +1 -1
- package/dist/{app-SSF545U7.cjs → app-74LECFMK.cjs} +1 -1
- package/dist/{app-34OBBTA4.js → app-GNUHCGPO.js} +1 -1
- package/dist/{app.d--5n0FQQ4.d.cts → app.d-BOR23dso.d.cts} +104 -4
- package/dist/{app.d--5n0FQQ4.d.ts → app.d-BOR23dso.d.ts} +104 -4
- package/dist/chunk-3APTSPY4.js +14 -0
- package/dist/{chunk-JB7LITSP.js → chunk-54KWFSCM.js} +35 -24
- package/dist/chunk-A6FYGWQ7.cjs +14 -0
- package/dist/{chunk-35CN2YFK.cjs → chunk-F5Z6I7TF.cjs} +35 -24
- package/dist/chunk-JOUTFBLN.js +14 -0
- package/dist/chunk-KCPVNRDL.js +14 -0
- package/dist/chunk-KJPOUJBU.cjs +14 -0
- package/dist/chunk-LAWKCWVU.cjs +14 -0
- package/dist/{chunk-ZSONBZIF.cjs → chunk-MOLFG5L4.cjs} +1 -1
- package/dist/chunk-OPXGJKZR.cjs +14 -0
- package/dist/chunk-P42Q6HOW.js +14 -0
- package/dist/chunk-P4NA7NWG.js +14 -0
- package/dist/chunk-PTEJYAYJ.js +14 -0
- package/dist/chunk-WHXYES2D.cjs +14 -0
- package/dist/{chunk-ONOGGR6Q.js → chunk-WW6DVKJR.js} +1 -1
- package/dist/chunk-YI5YGTAH.cjs +14 -0
- package/dist/configuration-hub-E7S4JB2T.js +7 -0
- package/dist/configuration-hub-Q5JBYB52.cjs +7 -0
- package/dist/{configuration-hub-runtime-L6IOERSP.js → configuration-hub-runtime-CXME7TCX.js} +1 -1
- package/dist/{configuration-hub-runtime-I5Y67CXD.cjs → configuration-hub-runtime-QVLJKEZD.cjs} +2 -2
- package/dist/configuration-hub.d-CbSJDa7k.d.cts +1096 -0
- package/dist/configuration-hub.d-CbSJDa7k.d.ts +1096 -0
- package/dist/customer-portal-DR6XFCTQ.js +7 -0
- package/dist/customer-portal-PNFBVIAH.cjs +7 -0
- package/dist/{customer-portal-runtime-OEXTSMSE.cjs → customer-portal-runtime-IYHJ3RME.cjs} +2 -2
- package/dist/{customer-portal-runtime-N4NWQ67M.js → customer-portal-runtime-ZYU3WIXY.js} +1 -1
- package/dist/{customer-portal.d-ChSEioI5.d.cts → customer-portal.d-CTTCBAZI.d.cts} +764 -14
- package/dist/{customer-portal.d-ChSEioI5.d.ts → customer-portal.d-CTTCBAZI.d.ts} +764 -14
- package/dist/data-governance-QYFHBCNB.cjs +7 -0
- package/dist/data-governance-YS2NA6W4.js +7 -0
- package/dist/design-EWZQZ5KX.js +7 -0
- package/dist/design-MUUYXB2J.cjs +7 -0
- package/dist/design-runtime-3RHYNHUV.cjs +5 -0
- package/dist/{design-runtime-QMJM4FAF.js → design-runtime-DLMA4EHQ.js} +1 -1
- package/dist/email-settings-YJ4X5VFU.cjs +7 -0
- package/dist/email-settings-YUK3DXFJ.js +7 -0
- package/dist/{email-settings-runtime-EGIJ2AVQ.js → email-settings-runtime-BXRZV4M5.js} +1 -1
- package/dist/{email-settings-runtime-WGVLI7N6.cjs → email-settings-runtime-FWJQBQBK.cjs} +2 -2
- package/dist/{email-settings.d-B7Q_xT25.d.cts → email-settings.d-UJ0C3jPI.d.cts} +108 -9
- package/dist/{email-settings.d-B7Q_xT25.d.ts → email-settings.d-UJ0C3jPI.d.ts} +108 -9
- package/dist/file-P2FUUER2.js +7 -0
- package/dist/file-XTY74SIX.cjs +7 -0
- package/dist/file-runtime-24S3QPA7.cjs +5 -0
- package/dist/{file-runtime-B6AAGZQF.js → file-runtime-BIRMXYRH.js} +1 -1
- package/dist/{file.d-DcTJxjp7.d.cts → file.d-DTlrbI40.d.cts} +2336 -19
- package/dist/{file.d-DcTJxjp7.d.ts → file.d-DTlrbI40.d.ts} +2336 -19
- package/dist/focus-pocus-JGXH42OF.cjs +7 -0
- package/dist/focus-pocus-XVDVUYL6.js +7 -0
- package/dist/focus-pocus-runtime-QXBBYVX7.js +5 -0
- package/dist/focus-pocus-runtime-X6GQ3WI4.cjs +5 -0
- package/dist/focus-pocus.d-BRFGe53G.d.cts +489 -0
- package/dist/focus-pocus.d-BRFGe53G.d.ts +489 -0
- package/dist/index.cjs +34 -26
- package/dist/index.d.cts +57 -55
- package/dist/index.d.ts +57 -55
- package/dist/index.js +23 -15
- package/dist/journey-4DIIPRU4.js +7 -0
- package/dist/journey-ATC3Y5AW.cjs +7 -0
- package/dist/{journey-runtime-SPBL3F32.cjs → journey-runtime-G2O5C3N2.cjs} +2 -2
- package/dist/{journey-runtime-YXIAOTMD.js → journey-runtime-RI2LJO5S.js} +1 -1
- package/dist/{journey.d-ClXO0xK8.d.cts → journey.d-BenIUWaO.d.cts} +9 -3
- package/dist/{journey.d-ClXO0xK8.d.ts → journey.d-BenIUWaO.d.ts} +9 -3
- package/dist/pricing-R5ENSVPQ.cjs +7 -0
- package/dist/pricing-X27CCRI6.js +7 -0
- package/dist/targeting-74BV7F7H.cjs +7 -0
- package/dist/targeting-W5EKJYR2.js +7 -0
- package/docs/app.md +34 -10
- package/docs/configuration-hub.md +660 -0
- package/docs/customer-portal.md +604 -176
- package/docs/data-governance.md +17 -17
- package/docs/design.md +1 -1
- package/docs/email-settings.md +67 -3
- package/docs/file.md +101 -2
- package/docs/focus-pocus.md +460 -0
- package/docs/journey.md +2 -0
- package/docs/pricing.md +1 -1
- package/docs/targeting.md +4 -4
- package/package.json +10 -1
- package/dist/README-46VYEGGW.js +0 -7
- package/dist/README-IVBISSWB.cjs +0 -7
- package/dist/chunk-4W22EIRF.cjs +0 -14
- package/dist/chunk-5OBMZHRL.cjs +0 -14
- package/dist/chunk-E2WMGOM5.js +0 -14
- package/dist/chunk-EFWPEVXI.js +0 -14
- package/dist/chunk-EIIIKDOJ.cjs +0 -14
- package/dist/chunk-KEI3GHDY.cjs +0 -14
- package/dist/chunk-KIWRGUKM.js +0 -14
- package/dist/chunk-MB6NKETA.cjs +0 -14
- package/dist/chunk-VSZEOCIE.js +0 -14
- package/dist/chunk-Z6HGUGXK.js +0 -14
- package/dist/configuration-hub-A3S6ND6R.cjs +0 -7
- package/dist/configuration-hub-PMAW44U5.js +0 -7
- package/dist/configuration-hub.d-Cqaq2F-W.d.cts +0 -478
- package/dist/configuration-hub.d-Cqaq2F-W.d.ts +0 -478
- package/dist/customer-portal-5I7ZGQDU.cjs +0 -7
- package/dist/customer-portal-YL2YMPZL.js +0 -7
- package/dist/data-governance-2U5UU4GM.cjs +0 -7
- package/dist/data-governance-36Y33JVG.js +0 -7
- package/dist/design-DROLIWS3.js +0 -7
- package/dist/design-XZKOZLTR.cjs +0 -7
- package/dist/design-runtime-OXEXKZVG.cjs +0 -5
- package/dist/email-settings-CKFJU4WZ.js +0 -7
- package/dist/email-settings-NQJJKS2P.cjs +0 -7
- package/dist/file-UOWBTDIU.cjs +0 -7
- package/dist/file-XSN3NAVZ.js +0 -7
- package/dist/file-runtime-SFZIKODF.cjs +0 -5
- package/dist/journey-KDR5EU3W.js +0 -7
- package/dist/journey-REBN4TGQ.cjs +0 -7
- package/dist/pricing-FODHQFCB.cjs +0 -7
- package/dist/pricing-XRIDVZFC.js +0 -7
- package/dist/targeting-EYGYZD6M.cjs +0 -7
- package/dist/targeting-GEJTJN5Z.js +0 -7
|
@@ -0,0 +1,489 @@
|
|
|
1
|
+
import { OpenAPIClient, Parameters, UnknownParamsObject, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
|
|
2
|
+
|
|
3
|
+
/* Auto-copied from focus-pocus-client */
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
declare namespace Components {
|
|
7
|
+
namespace Parameters {
|
|
8
|
+
export type AchievementId = string; // ^[a-z0-9][a-z0-9_-]{0,127}$
|
|
9
|
+
export type AchievementOrChallengeId = string;
|
|
10
|
+
export type ChallengeId = string;
|
|
11
|
+
export type Cursor = string;
|
|
12
|
+
export type Size = number;
|
|
13
|
+
}
|
|
14
|
+
export interface PathParameters {
|
|
15
|
+
AchievementId?: Parameters.AchievementId /* ^[a-z0-9][a-z0-9_-]{0,127}$ */;
|
|
16
|
+
AchievementOrChallengeId?: Parameters.AchievementOrChallengeId;
|
|
17
|
+
ChallengeId?: Parameters.ChallengeId;
|
|
18
|
+
}
|
|
19
|
+
export interface QueryParameters {
|
|
20
|
+
Cursor?: Parameters.Cursor;
|
|
21
|
+
Size?: Parameters.Size;
|
|
22
|
+
}
|
|
23
|
+
namespace Responses {
|
|
24
|
+
export type BadRequest = Schemas.ErrorResponse;
|
|
25
|
+
export type Conflict = Schemas.ConflictError;
|
|
26
|
+
export type NotFound = Schemas.ErrorResponse;
|
|
27
|
+
export type Unauthorized = Schemas.ErrorResponse;
|
|
28
|
+
}
|
|
29
|
+
namespace Schemas {
|
|
30
|
+
export interface AchievementFeedItem {
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* Set for challenge-based items; null for v1 static catalog unlocks.
|
|
34
|
+
*/
|
|
35
|
+
challenge_template_id?: string | null;
|
|
36
|
+
category: string;
|
|
37
|
+
title: string;
|
|
38
|
+
description: string;
|
|
39
|
+
badge_image_url?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* Kept for v1 catalog unlock compatibility.
|
|
42
|
+
*/
|
|
43
|
+
icon?: string | null;
|
|
44
|
+
status: "active" | "completed" | "expired";
|
|
45
|
+
accepted_at?: string | null; // date-time
|
|
46
|
+
deadline?: string | null; // date-time
|
|
47
|
+
/**
|
|
48
|
+
* Milliseconds remaining until the deadline; null for non-active items.
|
|
49
|
+
*/
|
|
50
|
+
time_remaining_ms?: number | null;
|
|
51
|
+
/**
|
|
52
|
+
* When the achievement was unlocked; null for active challenges.
|
|
53
|
+
*/
|
|
54
|
+
unlocked_at?: string | null; // date-time
|
|
55
|
+
/**
|
|
56
|
+
* XP awarded on unlock; null for active challenges.
|
|
57
|
+
*/
|
|
58
|
+
xp_awarded?: number | null;
|
|
59
|
+
/**
|
|
60
|
+
* True if the item was completed within the last 60 seconds.
|
|
61
|
+
*/
|
|
62
|
+
just_unlocked: boolean;
|
|
63
|
+
}
|
|
64
|
+
export interface AchievementFeedListResponse {
|
|
65
|
+
results: AchievementFeedItem[];
|
|
66
|
+
total: number;
|
|
67
|
+
}
|
|
68
|
+
export interface ActiveChallengeListResponse {
|
|
69
|
+
results: ChallengeActive[];
|
|
70
|
+
total: number;
|
|
71
|
+
}
|
|
72
|
+
export interface ChallengeActive {
|
|
73
|
+
/**
|
|
74
|
+
* Unique challenge-instance id (UUID).
|
|
75
|
+
*/
|
|
76
|
+
id: string;
|
|
77
|
+
challenge_template_id: string;
|
|
78
|
+
category: string;
|
|
79
|
+
title: string;
|
|
80
|
+
description: string;
|
|
81
|
+
badge_image_url: string;
|
|
82
|
+
status: "active";
|
|
83
|
+
accepted_at: string; // date-time
|
|
84
|
+
deadline: string; // date-time
|
|
85
|
+
/**
|
|
86
|
+
* Milliseconds remaining until the deadline (clamped to >= 0).
|
|
87
|
+
*/
|
|
88
|
+
time_remaining_ms: number;
|
|
89
|
+
}
|
|
90
|
+
export interface ChallengeSuggested {
|
|
91
|
+
/**
|
|
92
|
+
* Unique suggestion-instance id (UUID).
|
|
93
|
+
*/
|
|
94
|
+
id: string;
|
|
95
|
+
/**
|
|
96
|
+
* FK to the challenge template.
|
|
97
|
+
*/
|
|
98
|
+
challenge_template_id: string;
|
|
99
|
+
/**
|
|
100
|
+
* Open string category propagated from the template.
|
|
101
|
+
*/
|
|
102
|
+
category: string;
|
|
103
|
+
title: string;
|
|
104
|
+
description: string;
|
|
105
|
+
badge_image_url: string;
|
|
106
|
+
/**
|
|
107
|
+
* How many hours the user has to complete the challenge once accepted.
|
|
108
|
+
*/
|
|
109
|
+
default_duration_hours: number;
|
|
110
|
+
status: "suggested";
|
|
111
|
+
suggested_at: string; // date-time
|
|
112
|
+
}
|
|
113
|
+
export interface ConflictError {
|
|
114
|
+
status: 409;
|
|
115
|
+
error: string;
|
|
116
|
+
reason: "already_transitioned" | "too_many_active" | "deadline_passed";
|
|
117
|
+
}
|
|
118
|
+
export interface ErrorResponse {
|
|
119
|
+
status: number; // int32
|
|
120
|
+
error: string;
|
|
121
|
+
}
|
|
122
|
+
export interface EventAccepted {
|
|
123
|
+
accepted: true;
|
|
124
|
+
}
|
|
125
|
+
export interface EventIngestRequest {
|
|
126
|
+
/**
|
|
127
|
+
* Idempotency key — same id is rejected (already-accepted) on retry.
|
|
128
|
+
*/
|
|
129
|
+
event_id: string;
|
|
130
|
+
event_type: string;
|
|
131
|
+
actor_user_id: string;
|
|
132
|
+
occurred_at: string; // date-time
|
|
133
|
+
properties?: {
|
|
134
|
+
[name: string]: any;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
export interface HealthResponse {
|
|
138
|
+
status: "ok";
|
|
139
|
+
/**
|
|
140
|
+
* example:
|
|
141
|
+
* dev
|
|
142
|
+
*/
|
|
143
|
+
stage: string;
|
|
144
|
+
/**
|
|
145
|
+
* example:
|
|
146
|
+
* focus-pocus-api
|
|
147
|
+
*/
|
|
148
|
+
service: string;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
declare namespace Paths {
|
|
153
|
+
namespace AcceptChallenge {
|
|
154
|
+
namespace Parameters {
|
|
155
|
+
export type Id = string;
|
|
156
|
+
}
|
|
157
|
+
export interface PathParameters {
|
|
158
|
+
id: Parameters.Id;
|
|
159
|
+
}
|
|
160
|
+
namespace Responses {
|
|
161
|
+
export type $200 = Components.Schemas.ChallengeActive;
|
|
162
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
163
|
+
export type $404 = Components.Responses.NotFound;
|
|
164
|
+
export type $409 = Components.Responses.Conflict;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
namespace DismissChallenge {
|
|
168
|
+
namespace Parameters {
|
|
169
|
+
export type Id = string;
|
|
170
|
+
}
|
|
171
|
+
export interface PathParameters {
|
|
172
|
+
id: Parameters.Id;
|
|
173
|
+
}
|
|
174
|
+
namespace Responses {
|
|
175
|
+
export interface $204 {
|
|
176
|
+
}
|
|
177
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
178
|
+
export type $404 = Components.Responses.NotFound;
|
|
179
|
+
export type $409 = Components.Responses.Conflict;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
namespace GetAchievement {
|
|
183
|
+
namespace Parameters {
|
|
184
|
+
export type Id = string;
|
|
185
|
+
}
|
|
186
|
+
export interface PathParameters {
|
|
187
|
+
id: Parameters.Id;
|
|
188
|
+
}
|
|
189
|
+
namespace Responses {
|
|
190
|
+
export type $200 = Components.Schemas.AchievementFeedItem;
|
|
191
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
192
|
+
export type $404 = Components.Responses.NotFound;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
namespace GetHealth {
|
|
196
|
+
namespace Responses {
|
|
197
|
+
export type $200 = Components.Schemas.HealthResponse;
|
|
198
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
namespace GetSuggestedChallenge {
|
|
202
|
+
namespace Parameters {
|
|
203
|
+
export type CategoryHint = string;
|
|
204
|
+
export type EntityType = string;
|
|
205
|
+
export type Route = string;
|
|
206
|
+
}
|
|
207
|
+
export interface QueryParameters {
|
|
208
|
+
route?: Parameters.Route;
|
|
209
|
+
entity_type?: Parameters.EntityType;
|
|
210
|
+
category_hint?: Parameters.CategoryHint;
|
|
211
|
+
}
|
|
212
|
+
namespace Responses {
|
|
213
|
+
export type $200 = Components.Schemas.ChallengeSuggested;
|
|
214
|
+
export interface $204 {
|
|
215
|
+
}
|
|
216
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
217
|
+
export type $500 = Components.Schemas.ErrorResponse;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
namespace ListAchievements {
|
|
221
|
+
namespace Responses {
|
|
222
|
+
export type $200 = Components.Schemas.AchievementFeedListResponse;
|
|
223
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
namespace ListActiveChallenges {
|
|
227
|
+
namespace Responses {
|
|
228
|
+
export type $200 = Components.Schemas.ActiveChallengeListResponse;
|
|
229
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
namespace PostEvent {
|
|
233
|
+
export type RequestBody = Components.Schemas.EventIngestRequest;
|
|
234
|
+
namespace Responses {
|
|
235
|
+
export type $202 = Components.Schemas.EventAccepted;
|
|
236
|
+
export type $400 = Components.Responses.BadRequest;
|
|
237
|
+
export type $401 = Components.Responses.Unauthorized;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
interface OperationMethods {
|
|
244
|
+
/**
|
|
245
|
+
* getHealth - getHealth
|
|
246
|
+
*
|
|
247
|
+
* Liveness probe for the Focus Pocus API. Requires a valid EpilotAuth token.
|
|
248
|
+
*/
|
|
249
|
+
'getHealth'(
|
|
250
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
251
|
+
data?: any,
|
|
252
|
+
config?: AxiosRequestConfig
|
|
253
|
+
): OperationResponse<Paths.GetHealth.Responses.$200>
|
|
254
|
+
/**
|
|
255
|
+
* listAchievements - listAchievements
|
|
256
|
+
*
|
|
257
|
+
* Unified feed for the authenticated user: returns active challenges and completed
|
|
258
|
+
* v1 static achievement unlocks. The `userId` is read from the EpilotAuth claim —
|
|
259
|
+
* no user path or query parameter is accepted. Active challenges appear first,
|
|
260
|
+
* followed by completed items sorted by `unlocked_at` descending.
|
|
261
|
+
* Items unlocked within the last 60 seconds have `just_unlocked: true`.
|
|
262
|
+
*
|
|
263
|
+
*/
|
|
264
|
+
'listAchievements'(
|
|
265
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
266
|
+
data?: any,
|
|
267
|
+
config?: AxiosRequestConfig
|
|
268
|
+
): OperationResponse<Paths.ListAchievements.Responses.$200>
|
|
269
|
+
/**
|
|
270
|
+
* getAchievement - getAchievement
|
|
271
|
+
*
|
|
272
|
+
* Single user-scoped achievement or active-challenge item. Returns 404 if the id
|
|
273
|
+
* does not belong to the authenticated user.
|
|
274
|
+
*
|
|
275
|
+
*/
|
|
276
|
+
'getAchievement'(
|
|
277
|
+
parameters?: Parameters<Paths.GetAchievement.PathParameters> | null,
|
|
278
|
+
data?: any,
|
|
279
|
+
config?: AxiosRequestConfig
|
|
280
|
+
): OperationResponse<Paths.GetAchievement.Responses.$200>
|
|
281
|
+
/**
|
|
282
|
+
* getSuggestedChallenge - getSuggestedChallenge
|
|
283
|
+
*
|
|
284
|
+
* Returns a suggested challenge for the authenticated user. The suggestion is
|
|
285
|
+
* persisted with a 7-day TTL. Calling again with the same `(user, category)`
|
|
286
|
+
* within 24h returns the existing suggestion without creating a new row.
|
|
287
|
+
* Returns 204 when all candidate templates have been dismissed within the last 24h.
|
|
288
|
+
*
|
|
289
|
+
*/
|
|
290
|
+
'getSuggestedChallenge'(
|
|
291
|
+
parameters?: Parameters<Paths.GetSuggestedChallenge.QueryParameters> | null,
|
|
292
|
+
data?: any,
|
|
293
|
+
config?: AxiosRequestConfig
|
|
294
|
+
): OperationResponse<Paths.GetSuggestedChallenge.Responses.$200 | Paths.GetSuggestedChallenge.Responses.$204>
|
|
295
|
+
/**
|
|
296
|
+
* acceptChallenge - acceptChallenge
|
|
297
|
+
*
|
|
298
|
+
* Accept a suggested challenge. Atomically transitions the challenge from
|
|
299
|
+
* `suggested` to `active` using a conditional DynamoDB UpdateItem. Returns 409 if
|
|
300
|
+
* the challenge has already been transitioned or the user already has
|
|
301
|
+
* MAX_ACTIVE_CHALLENGES (3) active challenges.
|
|
302
|
+
*
|
|
303
|
+
*/
|
|
304
|
+
'acceptChallenge'(
|
|
305
|
+
parameters?: Parameters<Paths.AcceptChallenge.PathParameters> | null,
|
|
306
|
+
data?: any,
|
|
307
|
+
config?: AxiosRequestConfig
|
|
308
|
+
): OperationResponse<Paths.AcceptChallenge.Responses.$200>
|
|
309
|
+
/**
|
|
310
|
+
* dismissChallenge - dismissChallenge
|
|
311
|
+
*
|
|
312
|
+
* Dismiss a suggested challenge. Atomically transitions the challenge from
|
|
313
|
+
* `suggested` to `dismissed`. The challenge template is filtered from `/suggest`
|
|
314
|
+
* responses for the next 24h. Returns 409 if the challenge has already been
|
|
315
|
+
* transitioned (e.g. already accepted or dismissed).
|
|
316
|
+
*
|
|
317
|
+
*/
|
|
318
|
+
'dismissChallenge'(
|
|
319
|
+
parameters?: Parameters<Paths.DismissChallenge.PathParameters> | null,
|
|
320
|
+
data?: any,
|
|
321
|
+
config?: AxiosRequestConfig
|
|
322
|
+
): OperationResponse<Paths.DismissChallenge.Responses.$204>
|
|
323
|
+
/**
|
|
324
|
+
* listActiveChallenges - listActiveChallenges
|
|
325
|
+
*
|
|
326
|
+
* Returns all active challenges for the authenticated user. Challenges whose
|
|
327
|
+
* deadline has passed are lazily expired (fire-and-forget UpdateItem) and
|
|
328
|
+
* excluded from the response. The result set is bounded by MAX_ACTIVE_CHALLENGES=3.
|
|
329
|
+
*
|
|
330
|
+
*/
|
|
331
|
+
'listActiveChallenges'(
|
|
332
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
333
|
+
data?: any,
|
|
334
|
+
config?: AxiosRequestConfig
|
|
335
|
+
): OperationResponse<Paths.ListActiveChallenges.Responses.$200>
|
|
336
|
+
/**
|
|
337
|
+
* postEvent - postEvent
|
|
338
|
+
*
|
|
339
|
+
* Persist-first event ingest. Accepts an activity event, writes it to the event log
|
|
340
|
+
* idempotently (keyed by `event_id`), and returns 202. Achievement evaluation happens
|
|
341
|
+
* asynchronously — no unlocks are returned in the response.
|
|
342
|
+
*
|
|
343
|
+
*/
|
|
344
|
+
'postEvent'(
|
|
345
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
346
|
+
data?: Paths.PostEvent.RequestBody,
|
|
347
|
+
config?: AxiosRequestConfig
|
|
348
|
+
): OperationResponse<Paths.PostEvent.Responses.$202>
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
interface PathsDictionary {
|
|
352
|
+
['/v1/health']: {
|
|
353
|
+
/**
|
|
354
|
+
* getHealth - getHealth
|
|
355
|
+
*
|
|
356
|
+
* Liveness probe for the Focus Pocus API. Requires a valid EpilotAuth token.
|
|
357
|
+
*/
|
|
358
|
+
'get'(
|
|
359
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
360
|
+
data?: any,
|
|
361
|
+
config?: AxiosRequestConfig
|
|
362
|
+
): OperationResponse<Paths.GetHealth.Responses.$200>
|
|
363
|
+
}
|
|
364
|
+
['/v1/achievements']: {
|
|
365
|
+
/**
|
|
366
|
+
* listAchievements - listAchievements
|
|
367
|
+
*
|
|
368
|
+
* Unified feed for the authenticated user: returns active challenges and completed
|
|
369
|
+
* v1 static achievement unlocks. The `userId` is read from the EpilotAuth claim —
|
|
370
|
+
* no user path or query parameter is accepted. Active challenges appear first,
|
|
371
|
+
* followed by completed items sorted by `unlocked_at` descending.
|
|
372
|
+
* Items unlocked within the last 60 seconds have `just_unlocked: true`.
|
|
373
|
+
*
|
|
374
|
+
*/
|
|
375
|
+
'get'(
|
|
376
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
377
|
+
data?: any,
|
|
378
|
+
config?: AxiosRequestConfig
|
|
379
|
+
): OperationResponse<Paths.ListAchievements.Responses.$200>
|
|
380
|
+
}
|
|
381
|
+
['/v1/achievements/{id}']: {
|
|
382
|
+
/**
|
|
383
|
+
* getAchievement - getAchievement
|
|
384
|
+
*
|
|
385
|
+
* Single user-scoped achievement or active-challenge item. Returns 404 if the id
|
|
386
|
+
* does not belong to the authenticated user.
|
|
387
|
+
*
|
|
388
|
+
*/
|
|
389
|
+
'get'(
|
|
390
|
+
parameters?: Parameters<Paths.GetAchievement.PathParameters> | null,
|
|
391
|
+
data?: any,
|
|
392
|
+
config?: AxiosRequestConfig
|
|
393
|
+
): OperationResponse<Paths.GetAchievement.Responses.$200>
|
|
394
|
+
}
|
|
395
|
+
['/v1/challenges/suggest']: {
|
|
396
|
+
/**
|
|
397
|
+
* getSuggestedChallenge - getSuggestedChallenge
|
|
398
|
+
*
|
|
399
|
+
* Returns a suggested challenge for the authenticated user. The suggestion is
|
|
400
|
+
* persisted with a 7-day TTL. Calling again with the same `(user, category)`
|
|
401
|
+
* within 24h returns the existing suggestion without creating a new row.
|
|
402
|
+
* Returns 204 when all candidate templates have been dismissed within the last 24h.
|
|
403
|
+
*
|
|
404
|
+
*/
|
|
405
|
+
'get'(
|
|
406
|
+
parameters?: Parameters<Paths.GetSuggestedChallenge.QueryParameters> | null,
|
|
407
|
+
data?: any,
|
|
408
|
+
config?: AxiosRequestConfig
|
|
409
|
+
): OperationResponse<Paths.GetSuggestedChallenge.Responses.$200 | Paths.GetSuggestedChallenge.Responses.$204>
|
|
410
|
+
}
|
|
411
|
+
['/v1/challenges/{id}/accept']: {
|
|
412
|
+
/**
|
|
413
|
+
* acceptChallenge - acceptChallenge
|
|
414
|
+
*
|
|
415
|
+
* Accept a suggested challenge. Atomically transitions the challenge from
|
|
416
|
+
* `suggested` to `active` using a conditional DynamoDB UpdateItem. Returns 409 if
|
|
417
|
+
* the challenge has already been transitioned or the user already has
|
|
418
|
+
* MAX_ACTIVE_CHALLENGES (3) active challenges.
|
|
419
|
+
*
|
|
420
|
+
*/
|
|
421
|
+
'post'(
|
|
422
|
+
parameters?: Parameters<Paths.AcceptChallenge.PathParameters> | null,
|
|
423
|
+
data?: any,
|
|
424
|
+
config?: AxiosRequestConfig
|
|
425
|
+
): OperationResponse<Paths.AcceptChallenge.Responses.$200>
|
|
426
|
+
}
|
|
427
|
+
['/v1/challenges/{id}/dismiss']: {
|
|
428
|
+
/**
|
|
429
|
+
* dismissChallenge - dismissChallenge
|
|
430
|
+
*
|
|
431
|
+
* Dismiss a suggested challenge. Atomically transitions the challenge from
|
|
432
|
+
* `suggested` to `dismissed`. The challenge template is filtered from `/suggest`
|
|
433
|
+
* responses for the next 24h. Returns 409 if the challenge has already been
|
|
434
|
+
* transitioned (e.g. already accepted or dismissed).
|
|
435
|
+
*
|
|
436
|
+
*/
|
|
437
|
+
'post'(
|
|
438
|
+
parameters?: Parameters<Paths.DismissChallenge.PathParameters> | null,
|
|
439
|
+
data?: any,
|
|
440
|
+
config?: AxiosRequestConfig
|
|
441
|
+
): OperationResponse<Paths.DismissChallenge.Responses.$204>
|
|
442
|
+
}
|
|
443
|
+
['/v1/challenges/active']: {
|
|
444
|
+
/**
|
|
445
|
+
* listActiveChallenges - listActiveChallenges
|
|
446
|
+
*
|
|
447
|
+
* Returns all active challenges for the authenticated user. Challenges whose
|
|
448
|
+
* deadline has passed are lazily expired (fire-and-forget UpdateItem) and
|
|
449
|
+
* excluded from the response. The result set is bounded by MAX_ACTIVE_CHALLENGES=3.
|
|
450
|
+
*
|
|
451
|
+
*/
|
|
452
|
+
'get'(
|
|
453
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
454
|
+
data?: any,
|
|
455
|
+
config?: AxiosRequestConfig
|
|
456
|
+
): OperationResponse<Paths.ListActiveChallenges.Responses.$200>
|
|
457
|
+
}
|
|
458
|
+
['/v1/events']: {
|
|
459
|
+
/**
|
|
460
|
+
* postEvent - postEvent
|
|
461
|
+
*
|
|
462
|
+
* Persist-first event ingest. Accepts an activity event, writes it to the event log
|
|
463
|
+
* idempotently (keyed by `event_id`), and returns 202. Achievement evaluation happens
|
|
464
|
+
* asynchronously — no unlocks are returned in the response.
|
|
465
|
+
*
|
|
466
|
+
*/
|
|
467
|
+
'post'(
|
|
468
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
469
|
+
data?: Paths.PostEvent.RequestBody,
|
|
470
|
+
config?: AxiosRequestConfig
|
|
471
|
+
): OperationResponse<Paths.PostEvent.Responses.$202>
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
type AchievementFeedItem = Components.Schemas.AchievementFeedItem;
|
|
479
|
+
type AchievementFeedListResponse = Components.Schemas.AchievementFeedListResponse;
|
|
480
|
+
type ActiveChallengeListResponse = Components.Schemas.ActiveChallengeListResponse;
|
|
481
|
+
type ChallengeActive = Components.Schemas.ChallengeActive;
|
|
482
|
+
type ChallengeSuggested = Components.Schemas.ChallengeSuggested;
|
|
483
|
+
type ConflictError = Components.Schemas.ConflictError;
|
|
484
|
+
type ErrorResponse = Components.Schemas.ErrorResponse;
|
|
485
|
+
type EventAccepted = Components.Schemas.EventAccepted;
|
|
486
|
+
type EventIngestRequest = Components.Schemas.EventIngestRequest;
|
|
487
|
+
type HealthResponse = Components.Schemas.HealthResponse;
|
|
488
|
+
|
|
489
|
+
export { type AchievementFeedItem as A, type Client as C, type ErrorResponse as E, type HealthResponse as H, type OperationMethods as O, Paths as P, Components as a, type PathsDictionary as b, type AchievementFeedListResponse as c, type ActiveChallengeListResponse as d, type ChallengeActive as e, type ChallengeSuggested as f, type ConflictError as g, type EventAccepted as h, type EventIngestRequest as i };
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
+
var _chunkZ5TVWG3Icjs = require('./chunk-Z5TVWG3I.cjs');
|
|
4
|
+
|
|
5
|
+
|
|
3
6
|
var _chunkJIUTCNTBcjs = require('./chunk-JIUTCNTB.cjs');
|
|
4
7
|
|
|
5
8
|
|
|
@@ -12,6 +15,9 @@ var _chunkCYS6QBW6cjs = require('./chunk-CYS6QBW6.cjs');
|
|
|
12
15
|
var _chunkQNZPOA54cjs = require('./chunk-QNZPOA54.cjs');
|
|
13
16
|
|
|
14
17
|
|
|
18
|
+
var _chunkWQBBB6BNcjs = require('./chunk-WQBBB6BN.cjs');
|
|
19
|
+
|
|
20
|
+
|
|
15
21
|
var _chunkXDZ2JKJ4cjs = require('./chunk-XDZ2JKJ4.cjs');
|
|
16
22
|
|
|
17
23
|
|
|
@@ -30,7 +36,7 @@ var _chunk5WNEYQIIcjs = require('./chunk-5WNEYQII.cjs');
|
|
|
30
36
|
var _chunk4QCVVDTAcjs = require('./chunk-4QCVVDTA.cjs');
|
|
31
37
|
|
|
32
38
|
|
|
33
|
-
var
|
|
39
|
+
var _chunkT6A22LSDcjs = require('./chunk-T6A22LSD.cjs');
|
|
34
40
|
|
|
35
41
|
|
|
36
42
|
var _chunkM2SSGV7Kcjs = require('./chunk-M2SSGV7K.cjs');
|
|
@@ -54,13 +60,13 @@ var _chunkN5NFJW7Ycjs = require('./chunk-N5NFJW7Y.cjs');
|
|
|
54
60
|
var _chunkKP7H52BFcjs = require('./chunk-KP7H52BF.cjs');
|
|
55
61
|
|
|
56
62
|
|
|
57
|
-
var
|
|
63
|
+
var _chunkCBDKPGO5cjs = require('./chunk-CBDKPGO5.cjs');
|
|
58
64
|
|
|
59
65
|
|
|
60
|
-
var
|
|
66
|
+
var _chunkOPXGJKZRcjs = require('./chunk-OPXGJKZR.cjs');
|
|
61
67
|
|
|
62
68
|
|
|
63
|
-
var
|
|
69
|
+
var _chunkA6FYGWQ7cjs = require('./chunk-A6FYGWQ7.cjs');
|
|
64
70
|
|
|
65
71
|
|
|
66
72
|
var _chunkYO4M3BZLcjs = require('./chunk-YO4M3BZL.cjs');
|
|
@@ -69,7 +75,7 @@ var _chunkYO4M3BZLcjs = require('./chunk-YO4M3BZL.cjs');
|
|
|
69
75
|
var _chunk4FFGRWLScjs = require('./chunk-4FFGRWLS.cjs');
|
|
70
76
|
|
|
71
77
|
|
|
72
|
-
var
|
|
78
|
+
var _chunkLAWKCWVUcjs = require('./chunk-LAWKCWVU.cjs');
|
|
73
79
|
|
|
74
80
|
|
|
75
81
|
var _chunkG3VDRMOHcjs = require('./chunk-G3VDRMOH.cjs');
|
|
@@ -78,19 +84,16 @@ var _chunkG3VDRMOHcjs = require('./chunk-G3VDRMOH.cjs');
|
|
|
78
84
|
var _chunkDUHAG5COcjs = require('./chunk-DUHAG5CO.cjs');
|
|
79
85
|
|
|
80
86
|
|
|
81
|
-
var _chunkT6A22LSDcjs = require('./chunk-T6A22LSD.cjs');
|
|
82
|
-
|
|
83
|
-
|
|
84
87
|
var _chunkIAHSYVYBcjs = require('./chunk-IAHSYVYB.cjs');
|
|
85
88
|
|
|
86
89
|
|
|
87
|
-
var
|
|
90
|
+
var _chunkWHXYES2Dcjs = require('./chunk-WHXYES2D.cjs');
|
|
88
91
|
|
|
89
92
|
|
|
90
93
|
var _chunkM56QQHVAcjs = require('./chunk-M56QQHVA.cjs');
|
|
91
94
|
|
|
92
95
|
|
|
93
|
-
var
|
|
96
|
+
var _chunkYI5YGTAHcjs = require('./chunk-YI5YGTAH.cjs');
|
|
94
97
|
|
|
95
98
|
|
|
96
99
|
var _chunkK2UZPY6Ucjs = require('./chunk-K2UZPY6U.cjs');
|
|
@@ -114,13 +117,13 @@ var _chunkL544VG3Bcjs = require('./chunk-L544VG3B.cjs');
|
|
|
114
117
|
var _chunkCKLEBO4Kcjs = require('./chunk-CKLEBO4K.cjs');
|
|
115
118
|
|
|
116
119
|
|
|
117
|
-
var
|
|
120
|
+
var _chunkMOLFG5L4cjs = require('./chunk-MOLFG5L4.cjs');
|
|
118
121
|
|
|
119
122
|
|
|
120
123
|
var _chunkBM6NCHPLcjs = require('./chunk-BM6NCHPL.cjs');
|
|
121
124
|
|
|
122
125
|
|
|
123
|
-
var
|
|
126
|
+
var _chunkKJPOUJBUcjs = require('./chunk-KJPOUJBU.cjs');
|
|
124
127
|
|
|
125
128
|
|
|
126
129
|
var _chunkM2UDF7PYcjs = require('./chunk-M2UDF7PY.cjs');
|
|
@@ -155,7 +158,7 @@ var _chunkDVM27A7Ecjs = require('./chunk-DVM27A7E.cjs');
|
|
|
155
158
|
|
|
156
159
|
|
|
157
160
|
|
|
158
|
-
var
|
|
161
|
+
var _chunkF5Z6I7TFcjs = require('./chunk-F5Z6I7TF.cjs');
|
|
159
162
|
|
|
160
163
|
|
|
161
164
|
var _chunkNJK5F5TFcjs = require('./chunk-NJK5F5TF.cjs');
|
|
@@ -222,7 +225,7 @@ var resolveClient = (params) => {
|
|
|
222
225
|
}
|
|
223
226
|
if (!entry.instance) {
|
|
224
227
|
const definition = entry.loader();
|
|
225
|
-
entry.instance =
|
|
228
|
+
entry.instance = _chunkF5Z6I7TFcjs.createApiClient.call(void 0, {
|
|
226
229
|
definition,
|
|
227
230
|
token: state.token,
|
|
228
231
|
headers: state.globalHeaders,
|
|
@@ -255,7 +258,7 @@ var resetAllClients = (registry) => {
|
|
|
255
258
|
};
|
|
256
259
|
|
|
257
260
|
// src/apis/_registry.ts
|
|
258
|
-
var expandDef = (mod) =>
|
|
261
|
+
var expandDef = (mod) => _chunkF5Z6I7TFcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
|
|
259
262
|
var registerBuiltinApis = (registry) => {
|
|
260
263
|
registerApi({
|
|
261
264
|
registry,
|
|
@@ -310,7 +313,7 @@ var registerBuiltinApis = (registry) => {
|
|
|
310
313
|
registerApi({
|
|
311
314
|
registry,
|
|
312
315
|
name: "configurationHub",
|
|
313
|
-
loader: () => expandDef(
|
|
316
|
+
loader: () => expandDef(_chunkMOLFG5L4cjs.require_configuration_hub_runtime.call(void 0, ))
|
|
314
317
|
});
|
|
315
318
|
registerApi({
|
|
316
319
|
registry,
|
|
@@ -320,7 +323,7 @@ var registerBuiltinApis = (registry) => {
|
|
|
320
323
|
registerApi({
|
|
321
324
|
registry,
|
|
322
325
|
name: "customerPortal",
|
|
323
|
-
loader: () => expandDef(
|
|
326
|
+
loader: () => expandDef(_chunkKJPOUJBUcjs.require_customer_portal_runtime.call(void 0, ))
|
|
324
327
|
});
|
|
325
328
|
registerApi({
|
|
326
329
|
registry,
|
|
@@ -340,7 +343,7 @@ var registerBuiltinApis = (registry) => {
|
|
|
340
343
|
registerApi({
|
|
341
344
|
registry,
|
|
342
345
|
name: "design",
|
|
343
|
-
loader: () => expandDef(
|
|
346
|
+
loader: () => expandDef(_chunkWHXYES2Dcjs.require_design_runtime.call(void 0, ))
|
|
344
347
|
});
|
|
345
348
|
registerApi({
|
|
346
349
|
registry,
|
|
@@ -350,7 +353,7 @@ var registerBuiltinApis = (registry) => {
|
|
|
350
353
|
registerApi({
|
|
351
354
|
registry,
|
|
352
355
|
name: "emailSettings",
|
|
353
|
-
loader: () => expandDef(
|
|
356
|
+
loader: () => expandDef(_chunkYI5YGTAHcjs.require_email_settings_runtime.call(void 0, ))
|
|
354
357
|
});
|
|
355
358
|
registerApi({
|
|
356
359
|
registry,
|
|
@@ -380,7 +383,12 @@ var registerBuiltinApis = (registry) => {
|
|
|
380
383
|
registerApi({
|
|
381
384
|
registry,
|
|
382
385
|
name: "file",
|
|
383
|
-
loader: () => expandDef(
|
|
386
|
+
loader: () => expandDef(_chunkOPXGJKZRcjs.require_file_runtime.call(void 0, ))
|
|
387
|
+
});
|
|
388
|
+
registerApi({
|
|
389
|
+
registry,
|
|
390
|
+
name: "focusPocus",
|
|
391
|
+
loader: () => expandDef(_chunkA6FYGWQ7cjs.require_focus_pocus_runtime.call(void 0, ))
|
|
384
392
|
});
|
|
385
393
|
registerApi({
|
|
386
394
|
registry,
|
|
@@ -395,7 +403,7 @@ var registerBuiltinApis = (registry) => {
|
|
|
395
403
|
registerApi({
|
|
396
404
|
registry,
|
|
397
405
|
name: "journey",
|
|
398
|
-
loader: () => expandDef(
|
|
406
|
+
loader: () => expandDef(_chunkLAWKCWVUcjs.require_journey_runtime.call(void 0, ))
|
|
399
407
|
});
|
|
400
408
|
registerApi({
|
|
401
409
|
registry,
|
|
@@ -593,9 +601,9 @@ var createSDK = () => {
|
|
|
593
601
|
const available = [...registry.keys()].join(", ");
|
|
594
602
|
throw new Error(`Unknown API: "${name}". Available: ${available}`);
|
|
595
603
|
}
|
|
596
|
-
return
|
|
604
|
+
return _chunkF5Z6I7TFcjs.createApiHandle.call(void 0, {
|
|
597
605
|
resolveClient: () => resolveClient({ registry, name, state }),
|
|
598
|
-
createClient: () =>
|
|
606
|
+
createClient: () => _chunkF5Z6I7TFcjs.createApiClient.call(void 0, { definition: entry.loader(), apiName: name }),
|
|
599
607
|
apiName: name
|
|
600
608
|
});
|
|
601
609
|
};
|
|
@@ -643,9 +651,9 @@ var createSDK = () => {
|
|
|
643
651
|
return interceptorUse;
|
|
644
652
|
}
|
|
645
653
|
case "help":
|
|
646
|
-
return (apiName) =>
|
|
654
|
+
return (apiName) => _chunkF5Z6I7TFcjs.help.call(void 0, apiName);
|
|
647
655
|
case "openapi":
|
|
648
|
-
return (apiName) =>
|
|
656
|
+
return (apiName) => _chunkF5Z6I7TFcjs.openapi.call(void 0, apiName);
|
|
649
657
|
case "then":
|
|
650
658
|
case "catch":
|
|
651
659
|
case "finally":
|
|
@@ -675,4 +683,4 @@ var epilot = createSDK();
|
|
|
675
683
|
|
|
676
684
|
|
|
677
685
|
|
|
678
|
-
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize =
|
|
686
|
+
exports.applyLargeResponseInterceptor = applyLargeResponseInterceptor; exports.applyRetryInterceptor = applyRetryInterceptor; exports.authorize = _chunkF5Z6I7TFcjs.authorize; exports.createSDK = createSDK; exports.epilot = epilot; exports.help = _chunkF5Z6I7TFcjs.help; exports.openapi = _chunkF5Z6I7TFcjs.openapi;
|