@boboddy/sdk 0.1.44-alpha → 0.1.45-alpha
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/client.js +60 -18
- package/dist/definitions/pipelines/index.js +57 -17
- package/dist/definitions/steps/index.js +95 -50
- package/dist/definitions/steps/step-features.d.ts +32 -8
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/sdk.gen.d.ts +21 -9
- package/dist/generated/types.gen.d.ts +499 -19
- package/dist/index.js +98 -51
- package/dist/push/index.js +95 -50
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -864,15 +864,6 @@ class Api extends HeyApiClient {
|
|
|
864
864
|
"allApiAuth*8"(options) {
|
|
865
865
|
return (options?.client ?? this.client).trace({ url: "/api/auth/*", ...options });
|
|
866
866
|
}
|
|
867
|
-
getApiIntegrationsGithubInstall(options) {
|
|
868
|
-
return (options?.client ?? this.client).get({ url: "/api/integrations/github/install", ...options });
|
|
869
|
-
}
|
|
870
|
-
getApiIntegrationsGithubCallback(options) {
|
|
871
|
-
return (options?.client ?? this.client).get({ url: "/api/integrations/github/callback", ...options });
|
|
872
|
-
}
|
|
873
|
-
postApiIntegrationsGithubWebhook(options) {
|
|
874
|
-
return (options?.client ?? this.client).post({ url: "/api/integrations/github/webhook", ...options });
|
|
875
|
-
}
|
|
876
867
|
}
|
|
877
868
|
|
|
878
869
|
class Projects extends HeyApiClient {
|
|
@@ -1233,12 +1224,41 @@ class ProjectContext extends HeyApiClient {
|
|
|
1233
1224
|
}
|
|
1234
1225
|
}
|
|
1235
1226
|
|
|
1236
|
-
class
|
|
1237
|
-
|
|
1238
|
-
return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/
|
|
1227
|
+
class UserNotifications extends HeyApiClient {
|
|
1228
|
+
listUserNotifications(options) {
|
|
1229
|
+
return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/notifications", ...options });
|
|
1230
|
+
}
|
|
1231
|
+
getUserNotification(options) {
|
|
1232
|
+
return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/notifications/{notificationId}", ...options });
|
|
1233
|
+
}
|
|
1234
|
+
dismissUserNotification(options) {
|
|
1235
|
+
return (options.client ?? this.client).post({ url: "/api/projects/{projectId}/notifications/{notificationId}/dismiss", ...options });
|
|
1236
|
+
}
|
|
1237
|
+
respondToFeedbackRequest(options) {
|
|
1238
|
+
return (options.client ?? this.client).post({
|
|
1239
|
+
url: "/api/projects/{projectId}/notifications/{notificationId}/respond",
|
|
1240
|
+
...options,
|
|
1241
|
+
headers: {
|
|
1242
|
+
"Content-Type": "application/json",
|
|
1243
|
+
...options.headers
|
|
1244
|
+
}
|
|
1245
|
+
});
|
|
1246
|
+
}
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
class NotificationRules extends HeyApiClient {
|
|
1250
|
+
listNotificationRules(options) {
|
|
1251
|
+
return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/notification-rules", ...options });
|
|
1239
1252
|
}
|
|
1240
|
-
|
|
1241
|
-
return (options.client ?? this.client).
|
|
1253
|
+
upsertNotificationRule(options) {
|
|
1254
|
+
return (options.client ?? this.client).put({
|
|
1255
|
+
url: "/api/projects/{projectId}/notification-rules",
|
|
1256
|
+
...options,
|
|
1257
|
+
headers: {
|
|
1258
|
+
"Content-Type": "application/json",
|
|
1259
|
+
...options.headers
|
|
1260
|
+
}
|
|
1261
|
+
});
|
|
1242
1262
|
}
|
|
1243
1263
|
}
|
|
1244
1264
|
|
|
@@ -1290,6 +1310,18 @@ class ProjectIntegrations extends HeyApiClient {
|
|
|
1290
1310
|
}
|
|
1291
1311
|
}
|
|
1292
1312
|
|
|
1313
|
+
class GitHubIntegrations extends HeyApiClient {
|
|
1314
|
+
beginGitHubAppInstall(options) {
|
|
1315
|
+
return (options?.client ?? this.client).get({ url: "/api/integrations/github/install", ...options });
|
|
1316
|
+
}
|
|
1317
|
+
completeGitHubAppInstall(options) {
|
|
1318
|
+
return (options?.client ?? this.client).get({ url: "/api/integrations/github/callback", ...options });
|
|
1319
|
+
}
|
|
1320
|
+
handleGitHubWebhook(options) {
|
|
1321
|
+
return (options?.client ?? this.client).post({ url: "/api/integrations/github/webhook", ...options });
|
|
1322
|
+
}
|
|
1323
|
+
}
|
|
1324
|
+
|
|
1293
1325
|
class ProjectInvites extends HeyApiClient {
|
|
1294
1326
|
getProjectInviteByToken(options) {
|
|
1295
1327
|
return (options.client ?? this.client).get({ url: "/api/project-invites/{token}", ...options });
|
|
@@ -1353,9 +1385,13 @@ class BoboddyClient extends HeyApiClient {
|
|
|
1353
1385
|
get projectContext() {
|
|
1354
1386
|
return this._projectContext ??= new ProjectContext({ client: this.client });
|
|
1355
1387
|
}
|
|
1356
|
-
|
|
1357
|
-
get
|
|
1358
|
-
return this.
|
|
1388
|
+
_userNotifications;
|
|
1389
|
+
get userNotifications() {
|
|
1390
|
+
return this._userNotifications ??= new UserNotifications({ client: this.client });
|
|
1391
|
+
}
|
|
1392
|
+
_notificationRules;
|
|
1393
|
+
get notificationRules() {
|
|
1394
|
+
return this._notificationRules ??= new NotificationRules({ client: this.client });
|
|
1359
1395
|
}
|
|
1360
1396
|
_stepDefinitionTemplates;
|
|
1361
1397
|
get stepDefinitionTemplates() {
|
|
@@ -1365,6 +1401,10 @@ class BoboddyClient extends HeyApiClient {
|
|
|
1365
1401
|
get projectIntegrations() {
|
|
1366
1402
|
return this._projectIntegrations ??= new ProjectIntegrations({ client: this.client });
|
|
1367
1403
|
}
|
|
1404
|
+
_gitHubIntegrations;
|
|
1405
|
+
get gitHubIntegrations() {
|
|
1406
|
+
return this._gitHubIntegrations ??= new GitHubIntegrations({ client: this.client });
|
|
1407
|
+
}
|
|
1368
1408
|
_projectInvites;
|
|
1369
1409
|
get projectInvites() {
|
|
1370
1410
|
return this._projectInvites ??= new ProjectInvites({ client: this.client });
|
|
@@ -15881,61 +15921,66 @@ function date4(params) {
|
|
|
15881
15921
|
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
15882
15922
|
config(en_default());
|
|
15883
15923
|
// src/definitions/steps/step-features.ts
|
|
15884
|
-
var
|
|
15885
|
-
var
|
|
15886
|
-
var
|
|
15887
|
-
|
|
15888
|
-
|
|
15889
|
-
|
|
15890
|
-
"
|
|
15891
|
-
|
|
15892
|
-
|
|
15893
|
-
|
|
15894
|
-
|
|
15895
|
-
|
|
15896
|
-
|
|
15897
|
-
|
|
15898
|
-
|
|
15899
|
-
|
|
15924
|
+
var NOTIFICATION_SIGNAL_KEY = "$boboddy_notifications_v1";
|
|
15925
|
+
var NOTIFICATION_RESULT_KEY = "$boboddy_notifications_v1";
|
|
15926
|
+
var notificationItemSchema = exports_external.object({
|
|
15927
|
+
kind: exports_external.enum([
|
|
15928
|
+
"feedback_request",
|
|
15929
|
+
"status_update",
|
|
15930
|
+
"blocked",
|
|
15931
|
+
"result_ready",
|
|
15932
|
+
"warning"
|
|
15933
|
+
]).describe("The kind of user notification."),
|
|
15934
|
+
title: exports_external.string().describe("Short, human-readable notification title."),
|
|
15935
|
+
body: exports_external.string().describe("The notification body / details."),
|
|
15936
|
+
priority: exports_external.enum(["low", "normal", "high", "urgent"]).describe("How important this notification is for the user."),
|
|
15937
|
+
suggestedChannels: exports_external.array(exports_external.enum(["in_app", "jira_comment", "email", "slack"])).optional().describe("Channels the agent thinks are worth using. The platform policy decides the final channels."),
|
|
15938
|
+
payload: exports_external.record(exports_external.string(), exports_external.unknown()).optional().describe('Kind-specific structured data. For "feedback_request": { category, urgency, suggestedKey? }.')
|
|
15939
|
+
}).describe("A single user notification emitted by the agent.");
|
|
15940
|
+
var notificationsFeature = {
|
|
15900
15941
|
_resultExtension: exports_external.object({
|
|
15901
|
-
[
|
|
15942
|
+
[NOTIFICATION_RESULT_KEY]: exports_external.array(notificationItemSchema).optional()
|
|
15902
15943
|
}),
|
|
15903
15944
|
_promptAddition: [
|
|
15904
|
-
"##
|
|
15945
|
+
"## User Notifications",
|
|
15905
15946
|
"",
|
|
15906
|
-
`If you
|
|
15947
|
+
`If you need to communicate something to a human, populate the \`${NOTIFICATION_RESULT_KEY}\` array.`,
|
|
15907
15948
|
"Each item must include:",
|
|
15908
|
-
"- **
|
|
15909
|
-
|
|
15910
|
-
"- **
|
|
15911
|
-
|
|
15912
|
-
'
|
|
15913
|
-
|
|
15914
|
-
'
|
|
15915
|
-
"- **suggestedKey** *(optional)*: A suggested answer key for reference."
|
|
15949
|
+
"- **kind**: One of `feedback_request`, `status_update`, `blocked`, `result_ready`, `warning`.",
|
|
15950
|
+
"- **title**: A short, human-readable title.",
|
|
15951
|
+
"- **body**: The details of the notification.",
|
|
15952
|
+
"- **priority**: One of `low`, `normal`, `high`, `urgent`.",
|
|
15953
|
+
'- **suggestedChannels** *(optional)*: Channels you think are worth using (e.g. `["in_app", "jira_comment"]`).',
|
|
15954
|
+
" You only *suggest* channels \u2014 the platform policy decides the final delivery channels.",
|
|
15955
|
+
'- **payload** *(optional)*: Kind-specific data. For `feedback_request`, include `{ "category": string, "urgency": "blocking"|"clarification"|"assumption"|"informational", "suggestedKey"?: string }`.'
|
|
15916
15956
|
].join(`
|
|
15917
15957
|
`),
|
|
15918
15958
|
_signals: [
|
|
15919
15959
|
{
|
|
15920
|
-
key:
|
|
15921
|
-
sourcePath:
|
|
15960
|
+
key: NOTIFICATION_SIGNAL_KEY,
|
|
15961
|
+
sourcePath: NOTIFICATION_RESULT_KEY,
|
|
15922
15962
|
type: "array",
|
|
15923
15963
|
required: false
|
|
15924
15964
|
}
|
|
15925
15965
|
]
|
|
15926
15966
|
};
|
|
15927
15967
|
var Features = {
|
|
15928
|
-
|
|
15968
|
+
notifications: Object.assign(() => notificationsFeature, {
|
|
15929
15969
|
signal: {
|
|
15930
|
-
key:
|
|
15970
|
+
key: NOTIFICATION_SIGNAL_KEY,
|
|
15931
15971
|
find(signals) {
|
|
15932
|
-
const match = signals.find((s) => s.key ===
|
|
15972
|
+
const match = signals.find((s) => s.key === NOTIFICATION_SIGNAL_KEY);
|
|
15933
15973
|
if (!match)
|
|
15934
15974
|
return;
|
|
15935
|
-
const parsed = exports_external.array(
|
|
15975
|
+
const parsed = exports_external.array(notificationItemSchema).safeParse(match.valueJson);
|
|
15936
15976
|
return parsed.success ? parsed.data : undefined;
|
|
15937
15977
|
}
|
|
15938
15978
|
}
|
|
15979
|
+
}),
|
|
15980
|
+
feedbackRequests: Object.assign(() => notificationsFeature, {
|
|
15981
|
+
signal: {
|
|
15982
|
+
key: NOTIFICATION_SIGNAL_KEY
|
|
15983
|
+
}
|
|
15939
15984
|
})
|
|
15940
15985
|
};
|
|
15941
15986
|
// src/definitions/advancement-policies/define-advancement-policy.ts
|
|
@@ -17023,6 +17068,7 @@ export {
|
|
|
17023
17068
|
createBoboddyClient,
|
|
17024
17069
|
buildPipelineSpec,
|
|
17025
17070
|
WorkItems,
|
|
17071
|
+
UserNotifications,
|
|
17026
17072
|
StepExecutions,
|
|
17027
17073
|
StepDefinitions,
|
|
17028
17074
|
StepDefinitionTemplates,
|
|
@@ -17036,7 +17082,8 @@ export {
|
|
|
17036
17082
|
PipelineExecutions,
|
|
17037
17083
|
PipelineDefinitions,
|
|
17038
17084
|
PipelineBuilder,
|
|
17039
|
-
|
|
17085
|
+
NotificationRules,
|
|
17086
|
+
GitHubIntegrations,
|
|
17040
17087
|
Features,
|
|
17041
17088
|
DEFAULT_PIPELINE_ASSIGNMENT_FILENAME,
|
|
17042
17089
|
Computed,
|
package/dist/push/index.js
CHANGED
|
@@ -12919,15 +12919,6 @@ class Api extends HeyApiClient {
|
|
|
12919
12919
|
"allApiAuth*8"(options) {
|
|
12920
12920
|
return (options?.client ?? this.client).trace({ url: "/api/auth/*", ...options });
|
|
12921
12921
|
}
|
|
12922
|
-
getApiIntegrationsGithubInstall(options) {
|
|
12923
|
-
return (options?.client ?? this.client).get({ url: "/api/integrations/github/install", ...options });
|
|
12924
|
-
}
|
|
12925
|
-
getApiIntegrationsGithubCallback(options) {
|
|
12926
|
-
return (options?.client ?? this.client).get({ url: "/api/integrations/github/callback", ...options });
|
|
12927
|
-
}
|
|
12928
|
-
postApiIntegrationsGithubWebhook(options) {
|
|
12929
|
-
return (options?.client ?? this.client).post({ url: "/api/integrations/github/webhook", ...options });
|
|
12930
|
-
}
|
|
12931
12922
|
}
|
|
12932
12923
|
|
|
12933
12924
|
class Projects extends HeyApiClient {
|
|
@@ -13288,12 +13279,41 @@ class ProjectContext extends HeyApiClient {
|
|
|
13288
13279
|
}
|
|
13289
13280
|
}
|
|
13290
13281
|
|
|
13291
|
-
class
|
|
13292
|
-
|
|
13293
|
-
return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/
|
|
13282
|
+
class UserNotifications extends HeyApiClient {
|
|
13283
|
+
listUserNotifications(options) {
|
|
13284
|
+
return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/notifications", ...options });
|
|
13285
|
+
}
|
|
13286
|
+
getUserNotification(options) {
|
|
13287
|
+
return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/notifications/{notificationId}", ...options });
|
|
13288
|
+
}
|
|
13289
|
+
dismissUserNotification(options) {
|
|
13290
|
+
return (options.client ?? this.client).post({ url: "/api/projects/{projectId}/notifications/{notificationId}/dismiss", ...options });
|
|
13291
|
+
}
|
|
13292
|
+
respondToFeedbackRequest(options) {
|
|
13293
|
+
return (options.client ?? this.client).post({
|
|
13294
|
+
url: "/api/projects/{projectId}/notifications/{notificationId}/respond",
|
|
13295
|
+
...options,
|
|
13296
|
+
headers: {
|
|
13297
|
+
"Content-Type": "application/json",
|
|
13298
|
+
...options.headers
|
|
13299
|
+
}
|
|
13300
|
+
});
|
|
13301
|
+
}
|
|
13302
|
+
}
|
|
13303
|
+
|
|
13304
|
+
class NotificationRules extends HeyApiClient {
|
|
13305
|
+
listNotificationRules(options) {
|
|
13306
|
+
return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/notification-rules", ...options });
|
|
13294
13307
|
}
|
|
13295
|
-
|
|
13296
|
-
return (options.client ?? this.client).
|
|
13308
|
+
upsertNotificationRule(options) {
|
|
13309
|
+
return (options.client ?? this.client).put({
|
|
13310
|
+
url: "/api/projects/{projectId}/notification-rules",
|
|
13311
|
+
...options,
|
|
13312
|
+
headers: {
|
|
13313
|
+
"Content-Type": "application/json",
|
|
13314
|
+
...options.headers
|
|
13315
|
+
}
|
|
13316
|
+
});
|
|
13297
13317
|
}
|
|
13298
13318
|
}
|
|
13299
13319
|
|
|
@@ -13345,6 +13365,18 @@ class ProjectIntegrations extends HeyApiClient {
|
|
|
13345
13365
|
}
|
|
13346
13366
|
}
|
|
13347
13367
|
|
|
13368
|
+
class GitHubIntegrations extends HeyApiClient {
|
|
13369
|
+
beginGitHubAppInstall(options) {
|
|
13370
|
+
return (options?.client ?? this.client).get({ url: "/api/integrations/github/install", ...options });
|
|
13371
|
+
}
|
|
13372
|
+
completeGitHubAppInstall(options) {
|
|
13373
|
+
return (options?.client ?? this.client).get({ url: "/api/integrations/github/callback", ...options });
|
|
13374
|
+
}
|
|
13375
|
+
handleGitHubWebhook(options) {
|
|
13376
|
+
return (options?.client ?? this.client).post({ url: "/api/integrations/github/webhook", ...options });
|
|
13377
|
+
}
|
|
13378
|
+
}
|
|
13379
|
+
|
|
13348
13380
|
class ProjectInvites extends HeyApiClient {
|
|
13349
13381
|
getProjectInviteByToken(options) {
|
|
13350
13382
|
return (options.client ?? this.client).get({ url: "/api/project-invites/{token}", ...options });
|
|
@@ -13408,9 +13440,13 @@ class BoboddyClient extends HeyApiClient {
|
|
|
13408
13440
|
get projectContext() {
|
|
13409
13441
|
return this._projectContext ??= new ProjectContext({ client: this.client });
|
|
13410
13442
|
}
|
|
13411
|
-
|
|
13412
|
-
get
|
|
13413
|
-
return this.
|
|
13443
|
+
_userNotifications;
|
|
13444
|
+
get userNotifications() {
|
|
13445
|
+
return this._userNotifications ??= new UserNotifications({ client: this.client });
|
|
13446
|
+
}
|
|
13447
|
+
_notificationRules;
|
|
13448
|
+
get notificationRules() {
|
|
13449
|
+
return this._notificationRules ??= new NotificationRules({ client: this.client });
|
|
13414
13450
|
}
|
|
13415
13451
|
_stepDefinitionTemplates;
|
|
13416
13452
|
get stepDefinitionTemplates() {
|
|
@@ -13420,6 +13456,10 @@ class BoboddyClient extends HeyApiClient {
|
|
|
13420
13456
|
get projectIntegrations() {
|
|
13421
13457
|
return this._projectIntegrations ??= new ProjectIntegrations({ client: this.client });
|
|
13422
13458
|
}
|
|
13459
|
+
_gitHubIntegrations;
|
|
13460
|
+
get gitHubIntegrations() {
|
|
13461
|
+
return this._gitHubIntegrations ??= new GitHubIntegrations({ client: this.client });
|
|
13462
|
+
}
|
|
13423
13463
|
_projectInvites;
|
|
13424
13464
|
get projectInvites() {
|
|
13425
13465
|
return this._projectInvites ??= new ProjectInvites({ client: this.client });
|
|
@@ -15811,61 +15851,66 @@ function date4(params) {
|
|
|
15811
15851
|
// ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/classic/external.js
|
|
15812
15852
|
config(en_default());
|
|
15813
15853
|
// src/definitions/steps/step-features.ts
|
|
15814
|
-
var
|
|
15815
|
-
var
|
|
15816
|
-
var
|
|
15817
|
-
|
|
15818
|
-
|
|
15819
|
-
|
|
15820
|
-
"
|
|
15821
|
-
|
|
15822
|
-
|
|
15823
|
-
|
|
15824
|
-
|
|
15825
|
-
|
|
15826
|
-
|
|
15827
|
-
|
|
15828
|
-
|
|
15829
|
-
|
|
15854
|
+
var NOTIFICATION_SIGNAL_KEY = "$boboddy_notifications_v1";
|
|
15855
|
+
var NOTIFICATION_RESULT_KEY = "$boboddy_notifications_v1";
|
|
15856
|
+
var notificationItemSchema = exports_external.object({
|
|
15857
|
+
kind: exports_external.enum([
|
|
15858
|
+
"feedback_request",
|
|
15859
|
+
"status_update",
|
|
15860
|
+
"blocked",
|
|
15861
|
+
"result_ready",
|
|
15862
|
+
"warning"
|
|
15863
|
+
]).describe("The kind of user notification."),
|
|
15864
|
+
title: exports_external.string().describe("Short, human-readable notification title."),
|
|
15865
|
+
body: exports_external.string().describe("The notification body / details."),
|
|
15866
|
+
priority: exports_external.enum(["low", "normal", "high", "urgent"]).describe("How important this notification is for the user."),
|
|
15867
|
+
suggestedChannels: exports_external.array(exports_external.enum(["in_app", "jira_comment", "email", "slack"])).optional().describe("Channels the agent thinks are worth using. The platform policy decides the final channels."),
|
|
15868
|
+
payload: exports_external.record(exports_external.string(), exports_external.unknown()).optional().describe('Kind-specific structured data. For "feedback_request": { category, urgency, suggestedKey? }.')
|
|
15869
|
+
}).describe("A single user notification emitted by the agent.");
|
|
15870
|
+
var notificationsFeature = {
|
|
15830
15871
|
_resultExtension: exports_external.object({
|
|
15831
|
-
[
|
|
15872
|
+
[NOTIFICATION_RESULT_KEY]: exports_external.array(notificationItemSchema).optional()
|
|
15832
15873
|
}),
|
|
15833
15874
|
_promptAddition: [
|
|
15834
|
-
"##
|
|
15875
|
+
"## User Notifications",
|
|
15835
15876
|
"",
|
|
15836
|
-
`If you
|
|
15877
|
+
`If you need to communicate something to a human, populate the \`${NOTIFICATION_RESULT_KEY}\` array.`,
|
|
15837
15878
|
"Each item must include:",
|
|
15838
|
-
"- **
|
|
15839
|
-
|
|
15840
|
-
"- **
|
|
15841
|
-
|
|
15842
|
-
'
|
|
15843
|
-
|
|
15844
|
-
'
|
|
15845
|
-
"- **suggestedKey** *(optional)*: A suggested answer key for reference."
|
|
15879
|
+
"- **kind**: One of `feedback_request`, `status_update`, `blocked`, `result_ready`, `warning`.",
|
|
15880
|
+
"- **title**: A short, human-readable title.",
|
|
15881
|
+
"- **body**: The details of the notification.",
|
|
15882
|
+
"- **priority**: One of `low`, `normal`, `high`, `urgent`.",
|
|
15883
|
+
'- **suggestedChannels** *(optional)*: Channels you think are worth using (e.g. `["in_app", "jira_comment"]`).',
|
|
15884
|
+
" You only *suggest* channels \u2014 the platform policy decides the final delivery channels.",
|
|
15885
|
+
'- **payload** *(optional)*: Kind-specific data. For `feedback_request`, include `{ "category": string, "urgency": "blocking"|"clarification"|"assumption"|"informational", "suggestedKey"?: string }`.'
|
|
15846
15886
|
].join(`
|
|
15847
15887
|
`),
|
|
15848
15888
|
_signals: [
|
|
15849
15889
|
{
|
|
15850
|
-
key:
|
|
15851
|
-
sourcePath:
|
|
15890
|
+
key: NOTIFICATION_SIGNAL_KEY,
|
|
15891
|
+
sourcePath: NOTIFICATION_RESULT_KEY,
|
|
15852
15892
|
type: "array",
|
|
15853
15893
|
required: false
|
|
15854
15894
|
}
|
|
15855
15895
|
]
|
|
15856
15896
|
};
|
|
15857
15897
|
var Features = {
|
|
15858
|
-
|
|
15898
|
+
notifications: Object.assign(() => notificationsFeature, {
|
|
15859
15899
|
signal: {
|
|
15860
|
-
key:
|
|
15900
|
+
key: NOTIFICATION_SIGNAL_KEY,
|
|
15861
15901
|
find(signals) {
|
|
15862
|
-
const match = signals.find((s) => s.key ===
|
|
15902
|
+
const match = signals.find((s) => s.key === NOTIFICATION_SIGNAL_KEY);
|
|
15863
15903
|
if (!match)
|
|
15864
15904
|
return;
|
|
15865
|
-
const parsed = exports_external.array(
|
|
15905
|
+
const parsed = exports_external.array(notificationItemSchema).safeParse(match.valueJson);
|
|
15866
15906
|
return parsed.success ? parsed.data : undefined;
|
|
15867
15907
|
}
|
|
15868
15908
|
}
|
|
15909
|
+
}),
|
|
15910
|
+
feedbackRequests: Object.assign(() => notificationsFeature, {
|
|
15911
|
+
signal: {
|
|
15912
|
+
key: NOTIFICATION_SIGNAL_KEY
|
|
15913
|
+
}
|
|
15869
15914
|
})
|
|
15870
15915
|
};
|
|
15871
15916
|
// src/definitions/advancement-policies/define-advancement-policy.ts
|