@domino-sdk/relay 1.2.0 → 1.3.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/dist/authoring.d.ts +23 -23
- package/dist/{browser-Cho1duR6.d.ts → browser-D_3s8B5e.d.ts} +78 -78
- package/dist/browser.d.ts +1 -1
- package/dist/react/index.d.ts +2 -2
- package/dist/schema.d.ts +1 -1
- package/dist/server/index.d.ts +243 -5
- package/dist/server/index.js +29 -0
- package/package.json +1 -1
- package/dist/{activity-o1E-Hqyt.d.ts → activity-DeKJsRry.d.ts} +188 -188
package/dist/server/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { A as contentQualificationQuerySchema, r as catalogDeploymentSchema, a2 as saveQuestDraftSchema, G as publishQuestDraftSchema, n as RewardDeliveryAction, F as memberEnrollmentInputSchema, o as allocateQuestSchema } from '../outcomes-kVB-Juzs.js';
|
|
2
|
-
import { O as OpenIdentityKind, a1 as TrackerDataSchema, a9 as TrackerQuery, bV as trackerContentReadSchema, bY as trackerControlSchema, c4 as trackerIngestSchema, a5 as TrackerOutcomeQuery, c7 as trackerOutcomeRetrySchema, a8 as TrackerPreviewInput, aI as contentPerformanceQuerySchema,
|
|
2
|
+
import { a as AttemptStatus, O as OpenIdentityKind, a1 as TrackerDataSchema, a9 as TrackerQuery, bV as trackerContentReadSchema, bY as trackerControlSchema, c4 as trackerIngestSchema, a5 as TrackerOutcomeQuery, c7 as trackerOutcomeRetrySchema, a8 as TrackerPreviewInput, aI as contentPerformanceQuerySchema, aE as configurePickupSchema, bn as questSettingsInputSchema, bI as submitSchema, bC as staffDecisionSchema, aB as beginHandoverSchema, aF as confirmHandoverSchema, aQ as entitlementCorrectionSchema, aK as createStockItemSchema } from '../schema-DfJzH2ci.js';
|
|
3
3
|
export { aS as entitlementSchema, b4 as memberIdentitySchema } from '../schema-DfJzH2ci.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
import { r as collectionBeginSchema, z as counterHistoryQuerySchema, E as counterModerationSchema, o as automaticSchedulingQuerySchema, p as automaticSchedulingRetrySchema, l as automaticOutcomeQuerySchema, g as automaticCatchUpInputSchema, f as automaticCatchUpConfirmSchema } from '../automatic-outcomes-B1xrETxm.js';
|
|
6
|
-
import { n as projectDeploymentSchema, q as publishDeploymentSchema, v as submitDeploymentSchema, t as rejectDeploymentSchema, o as promoteDeploymentSchema, u as rollbackDeploymentSchema, k as projectCalendarInputSchema } from '../activity-
|
|
7
|
-
export { c as activityTypeSchema, d as activityTypes } from '../activity-
|
|
6
|
+
import { n as projectDeploymentSchema, q as publishDeploymentSchema, v as submitDeploymentSchema, t as rejectDeploymentSchema, o as promoteDeploymentSchema, u as rollbackDeploymentSchema, k as projectCalendarInputSchema } from '../activity-DeKJsRry.js';
|
|
7
|
+
export { c as activityTypeSchema, d as activityTypes } from '../activity-DeKJsRry.js';
|
|
8
8
|
import { O as engagementChangePreviewInputSchema, S as engagementChangeSchema, a1 as engagementVersionQuerySchema, V as engagementPageQuerySchema, X as engagementPublishSchema, ax as pointLedgerSchema, aA as pointsMutationSchema, aK as referralControlSchema, ac as leaderboardQuerySchema, a5 as leaderboardExclusionSchema, p as ProjectGroupReference, a6 as leaderboardGroupSchema, am as memberCampaignEnrollmentInputSchema, an as memberCampaignWithdrawalInputSchema, F as createPointLedgerSchema, ae as leaderboardSettlementApprovalSchema } from '../groups-Ck-OxzjD.js';
|
|
9
9
|
import { h as offerControlSchema, m as redemptionCancellationSchema } from '../offers-Cy-e4o5x.js';
|
|
10
10
|
import { C as profileSettingsInputSchema, z as profileModerationSchema } from '../profiles-D2aFcOxu.js';
|
|
@@ -54,6 +54,88 @@ type TestMemberCreateInput = z.input<typeof testMemberCreateSchema>;
|
|
|
54
54
|
type TestMemberActionInput = z.input<typeof testMemberActionSchema>;
|
|
55
55
|
type TestMemberResetInput = z.input<typeof testMemberResetSchema>;
|
|
56
56
|
type TestMemberResetResult = z.infer<typeof testMemberResetResultSchema>;
|
|
57
|
+
declare const testMemberHistoryQuerySchema: z.ZodObject<{
|
|
58
|
+
since: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
declare const testMemberHistorySchema: z.ZodObject<{
|
|
61
|
+
attempts: z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
release: z.ZodString;
|
|
64
|
+
quest: z.ZodString;
|
|
65
|
+
member: z.ZodString;
|
|
66
|
+
evidence: z.ZodNullable<z.ZodString>;
|
|
67
|
+
input: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
68
|
+
kind: z.ZodLiteral<"quiz">;
|
|
69
|
+
release: z.ZodOptional<z.ZodString>;
|
|
70
|
+
answers: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodString>, z.ZodTransform<{
|
|
71
|
+
[k: string]: string;
|
|
72
|
+
}, Record<string, string>>>;
|
|
73
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
74
|
+
kind: z.ZodLiteral<"text">;
|
|
75
|
+
value: z.ZodString;
|
|
76
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
77
|
+
kind: z.ZodLiteral<"url">;
|
|
78
|
+
value: z.ZodString;
|
|
79
|
+
}, z.core.$strict>]>>;
|
|
80
|
+
status: z.ZodType<AttemptStatus, unknown, z.core.$ZodTypeInternals<AttemptStatus, unknown>>;
|
|
81
|
+
reason: z.ZodNullable<z.ZodString>;
|
|
82
|
+
retries: z.ZodNumber;
|
|
83
|
+
generation: z.ZodNumber;
|
|
84
|
+
completion: z.ZodNullable<z.ZodString>;
|
|
85
|
+
reviewRewards: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
86
|
+
kind: z.ZodDefault<z.ZodLiteral<"points">>;
|
|
87
|
+
balance: z.ZodString;
|
|
88
|
+
amount: z.ZodNumber;
|
|
89
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
90
|
+
kind: z.ZodLiteral<"tier">;
|
|
91
|
+
reward: z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
title: z.ZodString;
|
|
94
|
+
tiers: z.ZodArray<z.ZodObject<{
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
title: z.ZodString;
|
|
97
|
+
}, z.core.$strict>>;
|
|
98
|
+
inventory: z.ZodObject<{
|
|
99
|
+
kind: z.ZodLiteral<"untracked">;
|
|
100
|
+
}, z.core.$strict>;
|
|
101
|
+
fulfillment: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
102
|
+
kind: z.ZodLiteral<"staff-handover">;
|
|
103
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
104
|
+
kind: z.ZodLiteral<"automatic">;
|
|
105
|
+
}, z.core.$strict>], "kind">;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
tier: z.ZodString;
|
|
108
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
109
|
+
kind: z.ZodLiteral<"integration">;
|
|
110
|
+
provider: z.ZodLiteral<"discord">;
|
|
111
|
+
action: z.ZodLiteral<"grant-role">;
|
|
112
|
+
roleId: z.ZodString;
|
|
113
|
+
}, z.core.$strict>]>>>>;
|
|
114
|
+
evaluationRun: z.ZodDefault<z.ZodNumber>;
|
|
115
|
+
deferCount: z.ZodDefault<z.ZodNumber>;
|
|
116
|
+
deferUntil: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
117
|
+
nextEvaluationAt: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
118
|
+
code: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
119
|
+
progress: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
120
|
+
current: z.ZodNumber;
|
|
121
|
+
target: z.ZodNumber;
|
|
122
|
+
reason: z.ZodString;
|
|
123
|
+
}, z.core.$strip>>>;
|
|
124
|
+
requestedReview: z.ZodDefault<z.ZodBoolean>;
|
|
125
|
+
createdAt: z.ZodNumber;
|
|
126
|
+
eligibleAt: z.ZodNumber;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
skipped: z.ZodArray<z.ZodObject<{
|
|
129
|
+
quest: z.ZodString;
|
|
130
|
+
tracker: z.ZodString;
|
|
131
|
+
record: z.ZodString;
|
|
132
|
+
code: z.ZodString;
|
|
133
|
+
occurredAt: z.ZodNumber;
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
complete: z.ZodBoolean;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
type TestMemberHistoryQuery = z.output<typeof testMemberHistoryQuerySchema>;
|
|
138
|
+
type TestMemberHistory = z.infer<typeof testMemberHistorySchema>;
|
|
57
139
|
|
|
58
140
|
declare const webhookEventSchema: z.ZodObject<{
|
|
59
141
|
id: z.ZodString;
|
|
@@ -37986,6 +38068,83 @@ declare function hostedManagementClient(env: HostedManagementEnv): {
|
|
|
37986
38068
|
name: string;
|
|
37987
38069
|
test: true;
|
|
37988
38070
|
}[]>;
|
|
38071
|
+
history: (member: string, query?: TestMemberHistoryQuery, call?: ManagementCallOptions) => Promise<{
|
|
38072
|
+
attempts: {
|
|
38073
|
+
id: string;
|
|
38074
|
+
release: string;
|
|
38075
|
+
quest: string;
|
|
38076
|
+
member: string;
|
|
38077
|
+
evidence: string | null;
|
|
38078
|
+
status: AttemptStatus;
|
|
38079
|
+
reason: string | null;
|
|
38080
|
+
retries: number;
|
|
38081
|
+
generation: number;
|
|
38082
|
+
completion: string | null;
|
|
38083
|
+
reviewRewards: ({
|
|
38084
|
+
kind: "tier";
|
|
38085
|
+
reward: {
|
|
38086
|
+
id: string;
|
|
38087
|
+
title: string;
|
|
38088
|
+
tiers: {
|
|
38089
|
+
id: string;
|
|
38090
|
+
title: string;
|
|
38091
|
+
}[];
|
|
38092
|
+
inventory: {
|
|
38093
|
+
kind: "untracked";
|
|
38094
|
+
};
|
|
38095
|
+
fulfillment: {
|
|
38096
|
+
kind: "staff-handover";
|
|
38097
|
+
} | {
|
|
38098
|
+
kind: "automatic";
|
|
38099
|
+
};
|
|
38100
|
+
};
|
|
38101
|
+
tier: string;
|
|
38102
|
+
} | {
|
|
38103
|
+
kind: "points";
|
|
38104
|
+
balance: string;
|
|
38105
|
+
amount: number;
|
|
38106
|
+
} | {
|
|
38107
|
+
kind: "integration";
|
|
38108
|
+
provider: "discord";
|
|
38109
|
+
action: "grant-role";
|
|
38110
|
+
roleId: string;
|
|
38111
|
+
})[] | null;
|
|
38112
|
+
evaluationRun: number;
|
|
38113
|
+
deferCount: number;
|
|
38114
|
+
deferUntil: number | null;
|
|
38115
|
+
nextEvaluationAt: number | null;
|
|
38116
|
+
code: string | null;
|
|
38117
|
+
progress: {
|
|
38118
|
+
current: number;
|
|
38119
|
+
target: number;
|
|
38120
|
+
reason: string;
|
|
38121
|
+
} | null;
|
|
38122
|
+
requestedReview: boolean;
|
|
38123
|
+
createdAt: number;
|
|
38124
|
+
eligibleAt: number;
|
|
38125
|
+
input?: {
|
|
38126
|
+
kind: "quiz";
|
|
38127
|
+
answers: {
|
|
38128
|
+
[k: string]: string;
|
|
38129
|
+
};
|
|
38130
|
+
release?: string | undefined;
|
|
38131
|
+
} | {
|
|
38132
|
+
kind: "text";
|
|
38133
|
+
value: string;
|
|
38134
|
+
} | {
|
|
38135
|
+
kind: "url";
|
|
38136
|
+
value: string;
|
|
38137
|
+
} | undefined;
|
|
38138
|
+
}[];
|
|
38139
|
+
skipped: {
|
|
38140
|
+
quest: string;
|
|
38141
|
+
tracker: string;
|
|
38142
|
+
record: string;
|
|
38143
|
+
code: string;
|
|
38144
|
+
occurredAt: number;
|
|
38145
|
+
}[];
|
|
38146
|
+
complete: boolean;
|
|
38147
|
+
}>;
|
|
37989
38148
|
act: (member: string, input: TestMemberActionInput, call?: ManagementCallOptions) => Promise<{
|
|
37990
38149
|
id: string;
|
|
37991
38150
|
release: string;
|
|
@@ -42879,7 +43038,9 @@ type ManagementRawInit = RequestInit & {
|
|
|
42879
43038
|
timeout?: number;
|
|
42880
43039
|
};
|
|
42881
43040
|
type ManagementClient = Omit<ReturnType<typeof createManagementClient>, "testMembers" | "storage"> & {
|
|
42882
|
-
testMembers?: ReturnType<typeof createManagementClient>["testMembers"]
|
|
43041
|
+
testMembers?: Omit<ReturnType<typeof createManagementClient>["testMembers"], "history"> & {
|
|
43042
|
+
history?: ReturnType<typeof createManagementClient>["testMembers"]["history"];
|
|
43043
|
+
};
|
|
42883
43044
|
storage?: ReturnType<typeof createManagementClient>["storage"];
|
|
42884
43045
|
};
|
|
42885
43046
|
declare function createManagementClient(options: ManagementClientOptions): {
|
|
@@ -79747,6 +79908,83 @@ declare function createManagementClient(options: ManagementClientOptions): {
|
|
|
79747
79908
|
name: string;
|
|
79748
79909
|
test: true;
|
|
79749
79910
|
}[]>;
|
|
79911
|
+
history: (member: string, query?: TestMemberHistoryQuery, call?: ManagementCallOptions) => Promise<{
|
|
79912
|
+
attempts: {
|
|
79913
|
+
id: string;
|
|
79914
|
+
release: string;
|
|
79915
|
+
quest: string;
|
|
79916
|
+
member: string;
|
|
79917
|
+
evidence: string | null;
|
|
79918
|
+
status: AttemptStatus;
|
|
79919
|
+
reason: string | null;
|
|
79920
|
+
retries: number;
|
|
79921
|
+
generation: number;
|
|
79922
|
+
completion: string | null;
|
|
79923
|
+
reviewRewards: ({
|
|
79924
|
+
kind: "tier";
|
|
79925
|
+
reward: {
|
|
79926
|
+
id: string;
|
|
79927
|
+
title: string;
|
|
79928
|
+
tiers: {
|
|
79929
|
+
id: string;
|
|
79930
|
+
title: string;
|
|
79931
|
+
}[];
|
|
79932
|
+
inventory: {
|
|
79933
|
+
kind: "untracked";
|
|
79934
|
+
};
|
|
79935
|
+
fulfillment: {
|
|
79936
|
+
kind: "staff-handover";
|
|
79937
|
+
} | {
|
|
79938
|
+
kind: "automatic";
|
|
79939
|
+
};
|
|
79940
|
+
};
|
|
79941
|
+
tier: string;
|
|
79942
|
+
} | {
|
|
79943
|
+
kind: "points";
|
|
79944
|
+
balance: string;
|
|
79945
|
+
amount: number;
|
|
79946
|
+
} | {
|
|
79947
|
+
kind: "integration";
|
|
79948
|
+
provider: "discord";
|
|
79949
|
+
action: "grant-role";
|
|
79950
|
+
roleId: string;
|
|
79951
|
+
})[] | null;
|
|
79952
|
+
evaluationRun: number;
|
|
79953
|
+
deferCount: number;
|
|
79954
|
+
deferUntil: number | null;
|
|
79955
|
+
nextEvaluationAt: number | null;
|
|
79956
|
+
code: string | null;
|
|
79957
|
+
progress: {
|
|
79958
|
+
current: number;
|
|
79959
|
+
target: number;
|
|
79960
|
+
reason: string;
|
|
79961
|
+
} | null;
|
|
79962
|
+
requestedReview: boolean;
|
|
79963
|
+
createdAt: number;
|
|
79964
|
+
eligibleAt: number;
|
|
79965
|
+
input?: {
|
|
79966
|
+
kind: "quiz";
|
|
79967
|
+
answers: {
|
|
79968
|
+
[k: string]: string;
|
|
79969
|
+
};
|
|
79970
|
+
release?: string | undefined;
|
|
79971
|
+
} | {
|
|
79972
|
+
kind: "text";
|
|
79973
|
+
value: string;
|
|
79974
|
+
} | {
|
|
79975
|
+
kind: "url";
|
|
79976
|
+
value: string;
|
|
79977
|
+
} | undefined;
|
|
79978
|
+
}[];
|
|
79979
|
+
skipped: {
|
|
79980
|
+
quest: string;
|
|
79981
|
+
tracker: string;
|
|
79982
|
+
record: string;
|
|
79983
|
+
code: string;
|
|
79984
|
+
occurredAt: number;
|
|
79985
|
+
}[];
|
|
79986
|
+
complete: boolean;
|
|
79987
|
+
}>;
|
|
79750
79988
|
act: (member: string, input: TestMemberActionInput, call?: ManagementCallOptions) => Promise<{
|
|
79751
79989
|
id: string;
|
|
79752
79990
|
release: string;
|
|
@@ -81944,4 +82182,4 @@ declare function createManagementClient(options: ManagementClientOptions): {
|
|
|
81944
82182
|
}>;
|
|
81945
82183
|
};
|
|
81946
82184
|
|
|
81947
|
-
export { APP_KV_LIMIT, APP_MIGRATION_FILE_BYTES, APP_MIGRATION_LIMIT, APP_MIGRATION_TOTAL_BYTES, APP_SECRET_LIMIT, APP_SQL_LIMIT, APP_STORAGE_PREVIEW_CHARACTERS, APP_STORAGE_ROW_LIMIT, type Access, type AppSecret, type AppSecretDeclaration, type AppSecretInput, type AppSecretList, type AppStorage, type AppStorageCell, type AppStorageKeys, type AppStorageKind, type AppStorageList, type AppStorageRows, type AppStorageTables, type AppStorageValue, type AuditRecord, type BalanceCheck, type BuildArtifacts, type BuildIdentity, type BuildSnapshot, type BuildStatus, type CompletionRevocation, type CompletionRevokeInput, DEFAULT_MANAGEMENT_TIMEOUT, type HostedAppSecrets, type HostedBuild, type HostedDeploymentKey, type HostedKey, type HostedKeyPermission, type HostedManagementEnv, type ListQuery, type ManagedMemberIdentity, type ManagedOAuthAccount, type ManagedResource, type ManagedWallet, type ManagementCallOptions, type ManagementClient, type ManagementClientOptions, ManagementError, ManagementErrorCode, type ManagementErrorInit, type ManagementErrorKind, type ManagementPage, type ManagementRawInit, type ParticipantSignIn, type ParticipantSignInInput, type Permission, type Person, type Project, type QuestLifecycle, type QuestLifecycleInput, type ResourceLifecycleInput, RevokedDeliveryOutcome, RevokedEntitlementOutcome, RevokedReferralOutcome, type StagedDeployment, type StagedDeploymentContent, type StagingAccess, type StagingAccessInput, type StagingLink, type StarterId, type StarterTemplate, type TestMember, type TestMemberActionInput, type TestMemberCreateInput, type TestMemberResetInput, type TestMemberResetResult, WEBHOOK_MAX_BYTES, type WalletBalanceChains, type WebhookEvent, accessSchema, accountProfileSchema, appMigrationNameSchema, appRoutingSchema, appSecretDeclarationSchema, appSecretDeclarationsSchema, appSecretInputSchema, appSecretListSchema, appSecretNameSchema, appSecretSchema, appSecretValueSchema, appStorageCellSchema, appStorageKeysSchema, appStorageKindSchema, appStorageListSchema, appStorageRowsSchema, appStorageSchema, appStorageTablesSchema, appStorageValueSchema, assetPathSchema, auditRecordSchema, balanceCheckSchema, buildArtifactsSchema, buildIdentitySchema, buildPhaseSchema, buildSnapshotSchema, buildStatusSchema, commitSchema, compareAppMigrations, completionRevocationSchema, completionRevokeSchema, createManagementClient, createRepositorySchema, developmentPreflightSchema, deviceApproveSchema, deviceRedeemSchema, deviceStartSchema, entitlementCorrectionSchema, environmentSchema, grantRecordSchema, grantSchema, hostedAppSchema, hostedAppSecretsSchema, hostedBuildSchema, hostedDeploymentKeySchema, hostedKeyPermissions, hostedKeySchema, hostedKeySecretSchema, hostedManagementBindings, hostedManagementClient, ingestTrackerScopeSchema, inventorySchema, isManagementError, issuedTokenSchema, managedMemberIdentitySchema, managedOAuthAccountSchema, managedResourceSchema, managedWalletSchema, memberAccountSchema, memberDetailSchema, memberIdentityChangeInputSchema, memberLookupSchema, memberOAuthUnlinkInputSchema, memberSchema, memberWalletSignInInputSchema, memberWalletUnlinkInputSchema, metricsSchema, operationInputSchema, operationSchema, pageSchema, participantSignInInputSchema, participantSignInSchema, permissionSchema, personSchema, projectDeletionInputSchema, projectDeletionSchema, projectInputSchema, projectSchema, projectSetupSchema, projectTransferInputSchema, projectTransferSchema, querySchema, questLifecycleInputSchema, questLifecycleSchema, readinessSchema, repositorySchema, resourceLifecycleInputSchema, resourceLifecycleKindSchema, resourceLifecycleResultSchema, rolePermissions, roleSchema, stageRequestSchema, stagedDeploymentContentSchema, stagedDeploymentKey, stagedDeploymentLimits, stagedDeploymentSchema, stagingAccessInputSchema, stagingAccessModeSchema, stagingAccessSchema, stagingLinkSchema, stagingPathSchema, starterIdSchema, starterTemplates, stockAdditionSchema, stockInputSchema, teamSchema, testMemberActionSchema, testMemberCreateSchema, testMemberResetResultSchema, testMemberResetSchema, testMemberSchema, tokenInputSchema, tokenSchema, tokenScopeInputSchema, verifiedPassSchema, verifyWebhook, walletBalanceChainsSchema, webhookDeliveryPageSchema, webhookDeliverySchema, webhookEndpointSchema, webhookEventSchema, webhookInputSchema, webhookQuerySchema, webhookSecretSchema, webhookUpdateSchema };
|
|
82185
|
+
export { APP_KV_LIMIT, APP_MIGRATION_FILE_BYTES, APP_MIGRATION_LIMIT, APP_MIGRATION_TOTAL_BYTES, APP_SECRET_LIMIT, APP_SQL_LIMIT, APP_STORAGE_PREVIEW_CHARACTERS, APP_STORAGE_ROW_LIMIT, type Access, type AppSecret, type AppSecretDeclaration, type AppSecretInput, type AppSecretList, type AppStorage, type AppStorageCell, type AppStorageKeys, type AppStorageKind, type AppStorageList, type AppStorageRows, type AppStorageTables, type AppStorageValue, type AuditRecord, type BalanceCheck, type BuildArtifacts, type BuildIdentity, type BuildSnapshot, type BuildStatus, type CompletionRevocation, type CompletionRevokeInput, DEFAULT_MANAGEMENT_TIMEOUT, type HostedAppSecrets, type HostedBuild, type HostedDeploymentKey, type HostedKey, type HostedKeyPermission, type HostedManagementEnv, type ListQuery, type ManagedMemberIdentity, type ManagedOAuthAccount, type ManagedResource, type ManagedWallet, type ManagementCallOptions, type ManagementClient, type ManagementClientOptions, ManagementError, ManagementErrorCode, type ManagementErrorInit, type ManagementErrorKind, type ManagementPage, type ManagementRawInit, type ParticipantSignIn, type ParticipantSignInInput, type Permission, type Person, type Project, type QuestLifecycle, type QuestLifecycleInput, type ResourceLifecycleInput, RevokedDeliveryOutcome, RevokedEntitlementOutcome, RevokedReferralOutcome, type StagedDeployment, type StagedDeploymentContent, type StagingAccess, type StagingAccessInput, type StagingLink, type StarterId, type StarterTemplate, type TestMember, type TestMemberActionInput, type TestMemberCreateInput, type TestMemberHistory, type TestMemberHistoryQuery, type TestMemberResetInput, type TestMemberResetResult, WEBHOOK_MAX_BYTES, type WalletBalanceChains, type WebhookEvent, accessSchema, accountProfileSchema, appMigrationNameSchema, appRoutingSchema, appSecretDeclarationSchema, appSecretDeclarationsSchema, appSecretInputSchema, appSecretListSchema, appSecretNameSchema, appSecretSchema, appSecretValueSchema, appStorageCellSchema, appStorageKeysSchema, appStorageKindSchema, appStorageListSchema, appStorageRowsSchema, appStorageSchema, appStorageTablesSchema, appStorageValueSchema, assetPathSchema, auditRecordSchema, balanceCheckSchema, buildArtifactsSchema, buildIdentitySchema, buildPhaseSchema, buildSnapshotSchema, buildStatusSchema, commitSchema, compareAppMigrations, completionRevocationSchema, completionRevokeSchema, createManagementClient, createRepositorySchema, developmentPreflightSchema, deviceApproveSchema, deviceRedeemSchema, deviceStartSchema, entitlementCorrectionSchema, environmentSchema, grantRecordSchema, grantSchema, hostedAppSchema, hostedAppSecretsSchema, hostedBuildSchema, hostedDeploymentKeySchema, hostedKeyPermissions, hostedKeySchema, hostedKeySecretSchema, hostedManagementBindings, hostedManagementClient, ingestTrackerScopeSchema, inventorySchema, isManagementError, issuedTokenSchema, managedMemberIdentitySchema, managedOAuthAccountSchema, managedResourceSchema, managedWalletSchema, memberAccountSchema, memberDetailSchema, memberIdentityChangeInputSchema, memberLookupSchema, memberOAuthUnlinkInputSchema, memberSchema, memberWalletSignInInputSchema, memberWalletUnlinkInputSchema, metricsSchema, operationInputSchema, operationSchema, pageSchema, participantSignInInputSchema, participantSignInSchema, permissionSchema, personSchema, projectDeletionInputSchema, projectDeletionSchema, projectInputSchema, projectSchema, projectSetupSchema, projectTransferInputSchema, projectTransferSchema, querySchema, questLifecycleInputSchema, questLifecycleSchema, readinessSchema, repositorySchema, resourceLifecycleInputSchema, resourceLifecycleKindSchema, resourceLifecycleResultSchema, rolePermissions, roleSchema, stageRequestSchema, stagedDeploymentContentSchema, stagedDeploymentKey, stagedDeploymentLimits, stagedDeploymentSchema, stagingAccessInputSchema, stagingAccessModeSchema, stagingAccessSchema, stagingLinkSchema, stagingPathSchema, starterIdSchema, starterTemplates, stockAdditionSchema, stockInputSchema, teamSchema, testMemberActionSchema, testMemberCreateSchema, testMemberHistoryQuerySchema, testMemberHistorySchema, testMemberResetResultSchema, testMemberResetSchema, testMemberSchema, tokenInputSchema, tokenSchema, tokenScopeInputSchema, verifiedPassSchema, verifyWebhook, walletBalanceChainsSchema, webhookDeliveryPageSchema, webhookDeliverySchema, webhookEndpointSchema, webhookEventSchema, webhookInputSchema, webhookQuerySchema, webhookSecretSchema, webhookUpdateSchema };
|
package/dist/server/index.js
CHANGED
|
@@ -180,6 +180,28 @@ var testMemberResetResultSchema = z.object({
|
|
|
180
180
|
member: identifier,
|
|
181
181
|
deleted: z.literal(true)
|
|
182
182
|
});
|
|
183
|
+
var testMemberHistoryQuerySchema = z.object({
|
|
184
|
+
/** Inclusive lower bound on credited activity time, in epoch milliseconds. */
|
|
185
|
+
since: z.coerce.number().int().nonnegative().safe().optional()
|
|
186
|
+
});
|
|
187
|
+
var testMemberHistorySchema = z.object({
|
|
188
|
+
/** Newest credited activity first, up to 500 attempts. */
|
|
189
|
+
attempts: z.array(
|
|
190
|
+
attemptSchema.extend({ eligibleAt: z.number().int().nonnegative().safe() })
|
|
191
|
+
),
|
|
192
|
+
/** Tracker trigger outcomes that admitted no attempt, newest occurrence first, up to 500. */
|
|
193
|
+
skipped: z.array(
|
|
194
|
+
z.object({
|
|
195
|
+
quest: identifier,
|
|
196
|
+
tracker: identifier,
|
|
197
|
+
record: z.string(),
|
|
198
|
+
code: z.string().min(1),
|
|
199
|
+
occurredAt: z.number().int().nonnegative().safe()
|
|
200
|
+
})
|
|
201
|
+
),
|
|
202
|
+
/** False when older entries were omitted from either list. */
|
|
203
|
+
complete: z.boolean()
|
|
204
|
+
});
|
|
183
205
|
|
|
184
206
|
// src/server/webhooks.ts
|
|
185
207
|
import { z as z2 } from "zod";
|
|
@@ -2294,6 +2316,11 @@ function createManagementClient(options) {
|
|
|
2294
2316
|
call
|
|
2295
2317
|
),
|
|
2296
2318
|
list: (call) => get("/test-members", z8.array(testMemberSchema), call),
|
|
2319
|
+
history: (member, query = {}, call) => get(
|
|
2320
|
+
`/test-members/${identifier.parse(member)}/history${queryString(testMemberHistoryQuerySchema.parse(query))}`,
|
|
2321
|
+
testMemberHistorySchema,
|
|
2322
|
+
call
|
|
2323
|
+
),
|
|
2297
2324
|
act: (member, input, call) => post(
|
|
2298
2325
|
`/test-members/${identifier.parse(member)}/actions`,
|
|
2299
2326
|
attemptSchema,
|
|
@@ -2746,6 +2773,8 @@ export {
|
|
|
2746
2773
|
teamSchema,
|
|
2747
2774
|
testMemberActionSchema,
|
|
2748
2775
|
testMemberCreateSchema,
|
|
2776
|
+
testMemberHistoryQuerySchema,
|
|
2777
|
+
testMemberHistorySchema,
|
|
2749
2778
|
testMemberResetResultSchema,
|
|
2750
2779
|
testMemberResetSchema,
|
|
2751
2780
|
testMemberSchema,
|