@domino-sdk/relay 1.7.0 → 1.9.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.
Files changed (32) hide show
  1. package/dist/action-9Xl0StBg.d.ts +33 -0
  2. package/dist/{activity-Br6vyYze.d.ts → activity-CCe1e_7a.d.ts} +115 -115
  3. package/dist/authoring.d.ts +45 -45
  4. package/dist/authoring.js +1 -1
  5. package/dist/{automatic-outcomes-C1Q9LrDb.d.ts → automatic-outcomes-Dyk0VTUs.d.ts} +1 -1
  6. package/dist/browser.d.ts +7 -6
  7. package/dist/browser.js +5 -4
  8. package/dist/{chunk-C25TDFHN.js → chunk-2N464DDE.js} +1 -1
  9. package/dist/{chunk-GMPPLZKH.js → chunk-2V74CHDL.js} +191 -191
  10. package/dist/{chunk-6RBF3UDA.js → chunk-734LYHWP.js} +2 -2
  11. package/dist/chunk-ETPL6AAJ.js +98 -0
  12. package/dist/{chunk-ZOUEEK5L.js → chunk-FWSSMSIA.js} +49 -21
  13. package/dist/{chunk-BFZHJA2B.js → chunk-L3QFIRGO.js} +2 -2
  14. package/dist/{client-pfml_XAa.d.ts → client-CbASImpi.d.ts} +42 -36
  15. package/dist/{groups-BpWEqaPn.d.ts → groups-Dvmd4CYk.d.ts} +1 -1
  16. package/dist/{images-BaKYd0fl.d.ts → images-Dekv3DYF.d.ts} +1 -1
  17. package/dist/index.d.ts +8 -7
  18. package/dist/index.js +7 -3
  19. package/dist/internal.d.ts +3 -3
  20. package/dist/{offers-CYtal8jO.d.ts → offers-BEGVSOTD.d.ts} +2 -2
  21. package/dist/{pages-CixTNnF4.d.ts → pages-HmS6eedC.d.ts} +38 -38
  22. package/dist/react/index.d.ts +197 -10
  23. package/dist/react/index.js +253 -111
  24. package/dist/{referral-reward-kinds-ClxAuCGx.d.ts → referral-reward-kinds-Flbb1D2q.d.ts} +2 -2
  25. package/dist/schema.d.ts +8 -8
  26. package/dist/schema.js +3 -3
  27. package/dist/server/index.d.ts +592 -46
  28. package/dist/server/index.js +166 -43
  29. package/dist/{sign-in-options-CtXUFV7E.d.ts → sign-in-options-z3wsfizk.d.ts} +2 -2
  30. package/dist/{submission-input-CLefHTrj.d.ts → submission-input-Bs14jIsu.d.ts} +2 -2
  31. package/package.json +1 -1
  32. package/dist/{schema-CQydLqw4.d.ts → schema-BCuiO7eD.d.ts} +15 -15
@@ -1,17 +1,18 @@
1
- import { a as PageQuery, B as contentQualificationQuerySchema, p as allocateQuestSchema, s as catalogDeploymentSchema, a6 as saveQuestDraftSchema, J as publishQuestDraftSchema, o as RewardDeliveryAction, G as memberEnrollmentInputSchema } from '../pages-CixTNnF4.js';
2
- import { a as AttemptStatus, p as CompletionSourceKind, O as OpenIdentityKind, ac as TrackerDataSchema, ak as TrackerQuery, c7 as trackerContentReadSchema, ca as trackerControlSchema, ci as trackerIngestSchema, ag as TrackerOutcomeQuery, av as TrackerTriggerOutcomeQuery, cl as trackerOutcomeRetrySchema, aj as TrackerPreviewInput, aW as contentPerformanceQuerySchema, bW as submitSchema, bQ as staffDecisionSchema, aO as beginHandoverSchema, aT as confirmHandoverSchema, b2 as entitlementCorrectionSchema, aY as createStockItemSchema, aS as configurePickupSchema, bB as questSettingsInputSchema } from '../schema-CQydLqw4.js';
3
- export { C as CompletionSource, F as KnownCompletionSourceKind, b4 as entitlementSchema, bi as memberIdentitySchema, j as trackerDataIssue, k as trackerDataIssues, cD as trackerTriggerOutcomePageSchema, w as whereSchemaIssue } from '../schema-CQydLqw4.js';
1
+ import { a as PageQuery, B as contentQualificationQuerySchema, p as allocateQuestSchema, s as catalogDeploymentSchema, a6 as saveQuestDraftSchema, J as publishQuestDraftSchema, o as RewardDeliveryAction, G as memberEnrollmentInputSchema } from '../pages-HmS6eedC.js';
2
+ import { a as AttemptStatus, p as CompletionSourceKind, O as OpenIdentityKind, ac as TrackerDataSchema, ak as TrackerQuery, c7 as trackerContentReadSchema, ca as trackerControlSchema, ci as trackerIngestSchema, ag as TrackerOutcomeQuery, av as TrackerTriggerOutcomeQuery, cl as trackerOutcomeRetrySchema, aj as TrackerPreviewInput, aW as contentPerformanceQuerySchema, bW as submitSchema, bQ as staffDecisionSchema, aO as beginHandoverSchema, aT as confirmHandoverSchema, b2 as entitlementCorrectionSchema, aY as createStockItemSchema, aS as configurePickupSchema, bB as questSettingsInputSchema } from '../schema-BCuiO7eD.js';
3
+ export { C as CompletionSource, F as KnownCompletionSourceKind, b4 as entitlementSchema, bi as memberIdentitySchema, j as trackerDataIssue, k as trackerDataIssues, cD as trackerTriggerOutcomePageSchema, w as whereSchemaIssue } from '../schema-BCuiO7eD.js';
4
4
  import { z } from 'zod';
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-C1Q9LrDb.js';
6
- import { q as projectDeploymentSchema, k as deploymentResultSchema, s as publishDeploymentSchema, i as deploymentRecordSchema, x as submitDeploymentSchema, j as deploymentRejectionSchema, v as rejectDeploymentSchema, g as deploymentActionSchema, r as promoteDeploymentSchema, w as rollbackDeploymentSchema, m as projectCalendarInputSchema } from '../activity-Br6vyYze.js';
7
- export { c as activityTypeSchema, d as activityTypes } from '../activity-Br6vyYze.js';
8
- import { Z as engagementChangePreviewInputSchema, $ as engagementChangeSchema, ab as engagementVersionQuerySchema, a2 as engagementPageQuerySchema, a4 as engagementPublishSchema, T as createPointLedgerSchema, aL as pointLedgerPropertiesSchema, aN as pointLedgerSchema, aQ as pointsMutationSchema, z as ManagedPointHistoryPage, b1 as referralManagementSchema, b6 as referralSuspensionSchema, b2 as referralQualificationSchema, b4 as referralRewardResolutionSchema, a_ as referralControlSchema, aq as leaderboardQuerySchema, aj as leaderboardExclusionSchema, p as ProjectGroupReference, ak as leaderboardGroupSchema, as as leaderboardSettlementApprovalSchema, u as GroupPageQuery, S as createGroupSchema, b8 as updateGroupSchema, F as addGroupMemberSchema, b7 as removeGroupMemberSchema, aC as memberCampaignEnrollmentInputSchema, aD as memberCampaignWithdrawalInputSchema } from '../groups-BpWEqaPn.js';
9
- export { G as GroupMember, s as GroupMemberPage, t as GroupPage, y as ManagedGroup, a6 as engagementRuleVersionPageSchema, ac as groupMemberPageSchema, ad as groupMemberSchema, ae as groupPageQuerySchema, af as groupPageSchema, az as managedGroupSchema, aA as managedPointHistoryPageSchema } from '../groups-BpWEqaPn.js';
10
- export { E as Extracted } from '../images-BaKYd0fl.js';
11
- import { h as offerControlSchema, m as redemptionCancellationSchema } from '../offers-CYtal8jO.js';
5
+ import { O as OptionalActionId } from '../action-9Xl0StBg.js';
6
+ 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-Dyk0VTUs.js';
7
+ import { q as projectDeploymentSchema, k as deploymentResultSchema, s as publishDeploymentSchema, i as deploymentRecordSchema, x as submitDeploymentSchema, j as deploymentRejectionSchema, v as rejectDeploymentSchema, g as deploymentActionSchema, r as promoteDeploymentSchema, w as rollbackDeploymentSchema, m as projectCalendarInputSchema } from '../activity-CCe1e_7a.js';
8
+ export { c as activityTypeSchema, d as activityTypes } from '../activity-CCe1e_7a.js';
9
+ import { Z as engagementChangePreviewInputSchema, $ as engagementChangeSchema, ab as engagementVersionQuerySchema, a2 as engagementPageQuerySchema, a4 as engagementPublishSchema, T as createPointLedgerSchema, aL as pointLedgerPropertiesSchema, aN as pointLedgerSchema, aB as managedPointLedgerSchema, aQ as pointsMutationSchema, z as ManagedPointHistoryPage, b1 as referralManagementSchema, b6 as referralSuspensionSchema, b2 as referralQualificationSchema, b4 as referralRewardResolutionSchema, a_ as referralControlSchema, aq as leaderboardQuerySchema, aj as leaderboardExclusionSchema, p as ProjectGroupReference, ak as leaderboardGroupSchema, as as leaderboardSettlementApprovalSchema, u as GroupPageQuery, S as createGroupSchema, b8 as updateGroupSchema, F as addGroupMemberSchema, b7 as removeGroupMemberSchema, aC as memberCampaignEnrollmentInputSchema, aD as memberCampaignWithdrawalInputSchema } from '../groups-Dvmd4CYk.js';
10
+ export { G as GroupMember, s as GroupMemberPage, t as GroupPage, y as ManagedGroup, a6 as engagementRuleVersionPageSchema, ac as groupMemberPageSchema, ad as groupMemberSchema, ae as groupPageQuerySchema, af as groupPageSchema, az as managedGroupSchema, aA as managedPointHistoryPageSchema } from '../groups-Dvmd4CYk.js';
11
+ export { E as Extracted } from '../images-Dekv3DYF.js';
12
+ import { h as offerControlSchema, m as redemptionCancellationSchema } from '../offers-BEGVSOTD.js';
12
13
  import { C as profileSettingsInputSchema, z as profileModerationSchema } from '../profiles-D2aFcOxu.js';
13
- import { i as identityIntegrationInputSchema } from '../referral-reward-kinds-ClxAuCGx.js';
14
- export { R as REFERRAL_INTEGRATION_REWARD_ERROR, c as containsReferralIntegrationReward, a as identityIntegrationSchema, d as identityKindClaimSchema, e as isIntegrationParticipantPath, f as isParticipantRoute, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, q as questConfiguration, s as sequenceCursorSchema, l as sourceDataSchema, m as sourceRoles, v as validateQuestShape } from '../referral-reward-kinds-ClxAuCGx.js';
14
+ import { i as identityIntegrationInputSchema } from '../referral-reward-kinds-Flbb1D2q.js';
15
+ export { R as REFERRAL_INTEGRATION_REWARD_ERROR, c as containsReferralIntegrationReward, a as identityIntegrationSchema, d as identityKindClaimSchema, e as isIntegrationParticipantPath, f as isParticipantRoute, p as parseImageExtraction, g as parseImageResult, h as participantExchangeSchema, j as participantRoutePattern, k as participantRoutes, q as questConfiguration, s as sequenceCursorSchema, l as sourceDataSchema, m as sourceRoles, v as validateQuestShape } from '../referral-reward-kinds-Flbb1D2q.js';
15
16
  import { R as RequestError, b as RequestErrorKind } from '../request-error-D_dUPLwo.js';
16
17
 
17
18
  type KnownPayoutSourceKind = (typeof PayoutSourceKind)[keyof typeof PayoutSourceKind];
@@ -42,6 +43,9 @@ declare const webhookEventSchema: z.ZodObject<{
42
43
  data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
43
44
  }, z.core.$strip>;
44
45
  type WebhookEvent = z.infer<typeof webhookEventSchema>;
46
+ declare const webhookControlInputSchema: z.ZodObject<{
47
+ actionId: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$strict>;
45
49
  declare const webhookInputSchema: z.ZodObject<{
46
50
  url: z.ZodURL;
47
51
  types: z.ZodArray<z.ZodString>;
@@ -348,6 +352,25 @@ declare const resourceLifecycleResultSchema: z.ZodObject<{
348
352
  }, z.core.$strip>;
349
353
  type ManagedResource = z.infer<typeof managedResourceSchema>;
350
354
  type ResourceLifecycleInput = z.input<typeof resourceLifecycleInputSchema>;
355
+ /** Path collections for the resources whose archive state is independent of their code version. */
356
+ declare const resourceLifecyclePaths: {
357
+ tracker: string;
358
+ referral: string;
359
+ leaderboard: string;
360
+ engagement: string;
361
+ collection: string;
362
+ "quest-type": string;
363
+ image: string;
364
+ "point-ledger": string;
365
+ };
366
+ declare const resourceArchiveInputSchema: z.ZodObject<{
367
+ actionId: z.ZodString;
368
+ reason: z.ZodString;
369
+ expectedArchivedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
370
+ }, z.core.$strict>;
371
+ type ResourceArchiveInput = Omit<z.input<typeof resourceArchiveInputSchema>, "actionId"> & {
372
+ actionId?: string;
373
+ };
351
374
 
352
375
  /**
353
376
  * How a management call failed, as in every Domino client error (see `RequestError`):
@@ -5521,9 +5544,7 @@ declare const verifiedPassSchema: z.ZodObject<{
5521
5544
  /** An input whose `actionId` the client generates when the caller leaves it out. */
5522
5545
  type CreationInput<T extends {
5523
5546
  actionId: string;
5524
- }> = Omit<T, "actionId"> & {
5525
- actionId?: string;
5526
- };
5547
+ }> = OptionalActionId<T>;
5527
5548
  /** @compat input */
5528
5549
  type ManagementClientOptions = {
5529
5550
  baseUrl: string;
@@ -5841,7 +5862,8 @@ declare function managementClient(options: ManagementClientOptions): {
5841
5862
  capturedAt: number;
5842
5863
  };
5843
5864
  }>;
5844
- control: (reference: string, input: z.input<typeof trackerControlSchema>, call?: ManagementCallOptions) => Promise<{
5865
+ /** @deprecated Use pause, resume or refresh. Removed in 2.0.0. */
5866
+ control: (reference: string, input: CreationInput<z.input<typeof trackerControlSchema>>, call?: ManagementCallOptions) => Promise<{
5845
5867
  published: {
5846
5868
  id: string;
5847
5869
  version: string;
@@ -5889,7 +5911,7 @@ declare function managementClient(options: ManagementClientOptions): {
5889
5911
  records: number;
5890
5912
  archivedAt?: number | null | undefined;
5891
5913
  }>;
5892
- ingest: (reference: string, input: z.input<typeof trackerIngestSchema>, call?: ManagementCallOptions) => Promise<{
5914
+ ingest: (reference: string, input: CreationInput<z.input<typeof trackerIngestSchema>>, call?: ManagementCallOptions) => Promise<{
5893
5915
  stored: number;
5894
5916
  admissions?: {
5895
5917
  admitted: number;
@@ -5982,7 +6004,7 @@ declare function managementClient(options: ManagementClientOptions): {
5982
6004
  * policy; requires `review` permission. Fails with 409, the current reason and its `skip`
5983
6005
  * code when it still cannot admit.
5984
6006
  */
5985
- retryOutcome: (reference: string, input: z.input<typeof trackerOutcomeRetrySchema>, call?: ManagementCallOptions) => Promise<{
6007
+ retryOutcome: (reference: string, input: CreationInput<z.input<typeof trackerOutcomeRetrySchema>>, call?: ManagementCallOptions) => Promise<{
5986
6008
  state: "admitted";
5987
6009
  code: null;
5988
6010
  reason: null;
@@ -6045,8 +6067,173 @@ declare function managementClient(options: ManagementClientOptions): {
6045
6067
  }[];
6046
6068
  more: boolean;
6047
6069
  }>;
6070
+ archive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
6071
+ resource: {
6072
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
6073
+ id: string;
6074
+ key: string | null;
6075
+ title: string;
6076
+ archivedAt: number | null;
6077
+ };
6078
+ changed: boolean;
6079
+ }>;
6080
+ unarchive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
6081
+ resource: {
6082
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
6083
+ id: string;
6084
+ key: string | null;
6085
+ title: string;
6086
+ archivedAt: number | null;
6087
+ };
6088
+ changed: boolean;
6089
+ }>;
6090
+ pause: (reference: string, input?: CreationInput<Omit<z.input<typeof trackerControlSchema>, "action">>, call?: ManagementCallOptions) => Promise<{
6091
+ published: {
6092
+ id: string;
6093
+ version: string;
6094
+ definition: {
6095
+ source: {
6096
+ kind: "x-search";
6097
+ query: string;
6098
+ } | {
6099
+ kind: "custom";
6100
+ namespace: string;
6101
+ identities?: OpenIdentityKind[] | undefined;
6102
+ accounts?: string[] | undefined;
6103
+ data?: TrackerDataSchema | undefined;
6104
+ content?: {
6105
+ metrics: string[];
6106
+ } | undefined;
6107
+ } | {
6108
+ kind: "discord-messages";
6109
+ text?: boolean | undefined;
6110
+ } | {
6111
+ kind: "discord-reactions";
6112
+ } | {
6113
+ [x: string]: z.core.util.JSONType;
6114
+ kind: string;
6115
+ };
6116
+ window: {
6117
+ start: number;
6118
+ end?: number | undefined;
6119
+ };
6120
+ key: string;
6121
+ title: string;
6122
+ refreshSeconds: number;
6123
+ maxPages: number;
6124
+ };
6125
+ publishedAt: number;
6126
+ actor: string | null;
6127
+ };
6128
+ paused: boolean;
6129
+ state: "error" | "idle" | "syncing" | "complete";
6130
+ lastStartedAt: number | null;
6131
+ lastCompletedAt: number | null;
6132
+ nextSyncAt: number | null;
6133
+ coverage: "unknown" | "complete" | "partial";
6134
+ error: string | null;
6135
+ records: number;
6136
+ archivedAt?: number | null | undefined;
6137
+ }>;
6138
+ resume: (reference: string, input?: CreationInput<Omit<z.input<typeof trackerControlSchema>, "action">>, call?: ManagementCallOptions) => Promise<{
6139
+ published: {
6140
+ id: string;
6141
+ version: string;
6142
+ definition: {
6143
+ source: {
6144
+ kind: "x-search";
6145
+ query: string;
6146
+ } | {
6147
+ kind: "custom";
6148
+ namespace: string;
6149
+ identities?: OpenIdentityKind[] | undefined;
6150
+ accounts?: string[] | undefined;
6151
+ data?: TrackerDataSchema | undefined;
6152
+ content?: {
6153
+ metrics: string[];
6154
+ } | undefined;
6155
+ } | {
6156
+ kind: "discord-messages";
6157
+ text?: boolean | undefined;
6158
+ } | {
6159
+ kind: "discord-reactions";
6160
+ } | {
6161
+ [x: string]: z.core.util.JSONType;
6162
+ kind: string;
6163
+ };
6164
+ window: {
6165
+ start: number;
6166
+ end?: number | undefined;
6167
+ };
6168
+ key: string;
6169
+ title: string;
6170
+ refreshSeconds: number;
6171
+ maxPages: number;
6172
+ };
6173
+ publishedAt: number;
6174
+ actor: string | null;
6175
+ };
6176
+ paused: boolean;
6177
+ state: "error" | "idle" | "syncing" | "complete";
6178
+ lastStartedAt: number | null;
6179
+ lastCompletedAt: number | null;
6180
+ nextSyncAt: number | null;
6181
+ coverage: "unknown" | "complete" | "partial";
6182
+ error: string | null;
6183
+ records: number;
6184
+ archivedAt?: number | null | undefined;
6185
+ }>;
6186
+ refresh: (reference: string, input?: CreationInput<Omit<z.input<typeof trackerControlSchema>, "action">>, call?: ManagementCallOptions) => Promise<{
6187
+ published: {
6188
+ id: string;
6189
+ version: string;
6190
+ definition: {
6191
+ source: {
6192
+ kind: "x-search";
6193
+ query: string;
6194
+ } | {
6195
+ kind: "custom";
6196
+ namespace: string;
6197
+ identities?: OpenIdentityKind[] | undefined;
6198
+ accounts?: string[] | undefined;
6199
+ data?: TrackerDataSchema | undefined;
6200
+ content?: {
6201
+ metrics: string[];
6202
+ } | undefined;
6203
+ } | {
6204
+ kind: "discord-messages";
6205
+ text?: boolean | undefined;
6206
+ } | {
6207
+ kind: "discord-reactions";
6208
+ } | {
6209
+ [x: string]: z.core.util.JSONType;
6210
+ kind: string;
6211
+ };
6212
+ window: {
6213
+ start: number;
6214
+ end?: number | undefined;
6215
+ };
6216
+ key: string;
6217
+ title: string;
6218
+ refreshSeconds: number;
6219
+ maxPages: number;
6220
+ };
6221
+ publishedAt: number;
6222
+ actor: string | null;
6223
+ };
6224
+ paused: boolean;
6225
+ state: "error" | "idle" | "syncing" | "complete";
6226
+ lastStartedAt: number | null;
6227
+ lastCompletedAt: number | null;
6228
+ nextSyncAt: number | null;
6229
+ coverage: "unknown" | "complete" | "partial";
6230
+ error: string | null;
6231
+ records: number;
6232
+ archivedAt?: number | null | undefined;
6233
+ }>;
6048
6234
  };
6049
6235
  engagement: {
6236
+ /** @deprecated Use deployments.preview and deployments.publish with engagement rules. Removed in 2.0.0. */
6050
6237
  previewChange: (input: z.input<typeof engagementChangePreviewInputSchema>, call?: ManagementCallOptions) => Promise<{
6051
6238
  rule: string;
6052
6239
  fromVersion: string;
@@ -6078,7 +6265,8 @@ declare function managementClient(options: ManagementClientOptions): {
6078
6265
  pending: string;
6079
6266
  };
6080
6267
  }>;
6081
- change: (input: z.input<typeof engagementChangeSchema>, call?: ManagementCallOptions) => Promise<{
6268
+ /** @deprecated Use deployments.preview and deployments.publish with engagement rules. Removed in 2.0.0. */
6269
+ change: (input: CreationInput<z.input<typeof engagementChangeSchema>>, call?: ManagementCallOptions) => Promise<{
6082
6270
  version: string;
6083
6271
  definition: {
6084
6272
  key: string;
@@ -6197,7 +6385,8 @@ declare function managementClient(options: ManagementClientOptions): {
6197
6385
  }[];
6198
6386
  nextCursor: string | null;
6199
6387
  }>;
6200
- publish: (input: z.input<typeof engagementPublishSchema>, call?: ManagementCallOptions) => Promise<{
6388
+ /** @deprecated Use deployments.preview and deployments.publish with engagement rules. Removed in 2.0.0. */
6389
+ publish: (input: CreationInput<z.input<typeof engagementPublishSchema>>, call?: ManagementCallOptions) => Promise<{
6201
6390
  version: string;
6202
6391
  definition: {
6203
6392
  key: string;
@@ -6276,6 +6465,26 @@ declare function managementClient(options: ManagementClientOptions): {
6276
6465
  }[];
6277
6466
  nextCursor: string | null;
6278
6467
  }>;
6468
+ archive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
6469
+ resource: {
6470
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
6471
+ id: string;
6472
+ key: string | null;
6473
+ title: string;
6474
+ archivedAt: number | null;
6475
+ };
6476
+ changed: boolean;
6477
+ }>;
6478
+ unarchive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
6479
+ resource: {
6480
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
6481
+ id: string;
6482
+ key: string | null;
6483
+ title: string;
6484
+ archivedAt: number | null;
6485
+ };
6486
+ changed: boolean;
6487
+ }>;
6279
6488
  };
6280
6489
  content: {
6281
6490
  performance: (input: z.input<typeof contentPerformanceQuerySchema>, call?: ManagementCallOptions) => Promise<{
@@ -6323,6 +6532,16 @@ declare function managementClient(options: ManagementClientOptions): {
6323
6532
  }>;
6324
6533
  };
6325
6534
  pointLedgers: {
6535
+ unarchive: (ledger: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
6536
+ resource: {
6537
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
6538
+ id: string;
6539
+ key: string | null;
6540
+ title: string;
6541
+ archivedAt: number | null;
6542
+ };
6543
+ changed: boolean;
6544
+ }>;
6326
6545
  list: (call?: ManagementCallOptions) => Promise<{
6327
6546
  name: string;
6328
6547
  description: string;
@@ -6355,12 +6574,10 @@ declare function managementClient(options: ManagementClientOptions): {
6355
6574
  id: string;
6356
6575
  archivedAt: number | null;
6357
6576
  }>;
6358
- archive: (ledger: string, call?: ManagementCallOptions) => Promise<{
6359
- name: string;
6360
- description: string;
6361
- id: string;
6362
- archivedAt: number | null;
6363
- }>;
6577
+ archive: {
6578
+ (ledger: string, call?: ManagementCallOptions): Promise<z.infer<typeof managedPointLedgerSchema>>;
6579
+ (ledger: string, input: ResourceArchiveInput, call?: ManagementCallOptions): Promise<z.infer<typeof managedPointLedgerSchema>>;
6580
+ };
6364
6581
  };
6365
6582
  points: {
6366
6583
  /** @deprecated Use `pointLedgers.list()`, which reads the same ledgers. Removed in 2.0.0. */
@@ -6381,7 +6598,7 @@ declare function managementClient(options: ManagementClientOptions): {
6381
6598
  * a `reverse` of an earlier award, or a `set` to an absolute total; requires `points`
6382
6599
  * permission. The action ID makes a retry answer with the first result.
6383
6600
  */
6384
- record: (input: z.input<typeof pointsMutationSchema>, call?: ManagementCallOptions) => Promise<{
6601
+ record: (input: CreationInput<z.input<typeof pointsMutationSchema>>, call?: ManagementCallOptions) => Promise<{
6385
6602
  entry: {
6386
6603
  id: string;
6387
6604
  completion: string | null;
@@ -6399,7 +6616,7 @@ declare function managementClient(options: ManagementClientOptions): {
6399
6616
  total: number;
6400
6617
  }>;
6401
6618
  /** @deprecated Use `record`, which makes the same change. Removed in 2.0.0. */
6402
- update: (input: z.input<typeof pointsMutationSchema>, call?: ManagementCallOptions) => Promise<{
6619
+ update: (input: CreationInput<z.input<typeof pointsMutationSchema>>, call?: ManagementCallOptions) => Promise<{
6403
6620
  entry: {
6404
6621
  id: string;
6405
6622
  completion: string | null;
@@ -6558,6 +6775,7 @@ declare function managementClient(options: ManagementClientOptions): {
6558
6775
  * Suspends or restores a member's referral relationship, with a reason; requires `publish`.
6559
6776
  * A suspended member earns their inviter nothing.
6560
6777
  */
6778
+ /** @deprecated Use pause or resume. Removed in 2.0.0. */
6561
6779
  suspend: (member: string, input: CreationInput<z.input<typeof referralSuspensionSchema>>, call?: ManagementCallOptions) => Promise<{
6562
6780
  ok: true;
6563
6781
  }>;
@@ -6576,9 +6794,95 @@ declare function managementClient(options: ManagementClientOptions): {
6576
6794
  ok: true;
6577
6795
  }>;
6578
6796
  /** @deprecated Use `suspend`, `qualify` or `resolveReward`. Removed in 2.0.0. */
6579
- control: (input: z.input<typeof referralControlSchema>, call?: ManagementCallOptions) => Promise<{
6797
+ control: (input: CreationInput<z.input<typeof referralControlSchema>>, call?: ManagementCallOptions) => Promise<{
6580
6798
  ok: true;
6581
6799
  }>;
6800
+ archive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
6801
+ resource: {
6802
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
6803
+ id: string;
6804
+ key: string | null;
6805
+ title: string;
6806
+ archivedAt: number | null;
6807
+ };
6808
+ changed: boolean;
6809
+ }>;
6810
+ unarchive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
6811
+ resource: {
6812
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
6813
+ id: string;
6814
+ key: string | null;
6815
+ title: string;
6816
+ archivedAt: number | null;
6817
+ };
6818
+ changed: boolean;
6819
+ }>;
6820
+ pause: (member: string, input: CreationInput<Omit<z.input<typeof referralSuspensionSchema>, "suspended">>, call?: ManagementCallOptions) => Promise<{
6821
+ relationships: {
6822
+ member: string;
6823
+ inviter: string;
6824
+ acceptedAt: number;
6825
+ suspended: boolean;
6826
+ }[];
6827
+ qualifications: {
6828
+ member: string;
6829
+ program: string;
6830
+ qualified: boolean;
6831
+ qualifiedAt: number;
6832
+ }[];
6833
+ accounts: {
6834
+ id: string;
6835
+ program: string;
6836
+ kind: "fixed" | "milestone" | "bonus";
6837
+ balance: string;
6838
+ earned: number;
6839
+ settled: number;
6840
+ outstanding: number;
6841
+ member: string;
6842
+ invitee: string;
6843
+ }[];
6844
+ reviews: {
6845
+ entitlement: string;
6846
+ member: string;
6847
+ program: string;
6848
+ reason: string;
6849
+ }[];
6850
+ nextCursor: string | null;
6851
+ next: number | null;
6852
+ }>;
6853
+ resume: (member: string, input: CreationInput<Omit<z.input<typeof referralSuspensionSchema>, "suspended">>, call?: ManagementCallOptions) => Promise<{
6854
+ relationships: {
6855
+ member: string;
6856
+ inviter: string;
6857
+ acceptedAt: number;
6858
+ suspended: boolean;
6859
+ }[];
6860
+ qualifications: {
6861
+ member: string;
6862
+ program: string;
6863
+ qualified: boolean;
6864
+ qualifiedAt: number;
6865
+ }[];
6866
+ accounts: {
6867
+ id: string;
6868
+ program: string;
6869
+ kind: "fixed" | "milestone" | "bonus";
6870
+ balance: string;
6871
+ earned: number;
6872
+ settled: number;
6873
+ outstanding: number;
6874
+ member: string;
6875
+ invitee: string;
6876
+ }[];
6877
+ reviews: {
6878
+ entitlement: string;
6879
+ member: string;
6880
+ program: string;
6881
+ reason: string;
6882
+ }[];
6883
+ nextCursor: string | null;
6884
+ next: number | null;
6885
+ }>;
6582
6886
  };
6583
6887
  leaderboards: {
6584
6888
  list: (call?: ManagementCallOptions) => Promise<{
@@ -6828,7 +7132,7 @@ declare function managementClient(options: ManagementClientOptions): {
6828
7132
  exclusions: (board: string, call?: ManagementCallOptions) => Promise<{
6829
7133
  member: string;
6830
7134
  }[]>;
6831
- exclude: (board: string, input: z.input<typeof leaderboardExclusionSchema>, call?: ManagementCallOptions) => Promise<{
7135
+ exclude: (board: string, input: CreationInput<z.input<typeof leaderboardExclusionSchema>>, call?: ManagementCallOptions) => Promise<{
6832
7136
  ok: true;
6833
7137
  }>;
6834
7138
  /**
@@ -6838,7 +7142,7 @@ declare function managementClient(options: ManagementClientOptions): {
6838
7142
  * @deprecated Use `groups.addMember` and `groups.removeMember` instead; create the group
6839
7143
  * first with `groups.create`. Removed in 2.0.0.
6840
7144
  */
6841
- group: (group: string | ProjectGroupReference, input: z.input<typeof leaderboardGroupSchema>, call?: ManagementCallOptions) => Promise<{
7145
+ group: (group: string | ProjectGroupReference, input: CreationInput<z.input<typeof leaderboardGroupSchema>>, call?: ManagementCallOptions) => Promise<{
6842
7146
  ok: true;
6843
7147
  }>;
6844
7148
  settlements: (board: string, call?: ManagementCallOptions) => Promise<{
@@ -6971,6 +7275,26 @@ declare function managementClient(options: ManagementClientOptions): {
6971
7275
  revokedAt: number | null;
6972
7276
  }[];
6973
7277
  }>;
7278
+ archive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
7279
+ resource: {
7280
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
7281
+ id: string;
7282
+ key: string | null;
7283
+ title: string;
7284
+ archivedAt: number | null;
7285
+ };
7286
+ changed: boolean;
7287
+ }>;
7288
+ unarchive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
7289
+ resource: {
7290
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
7291
+ id: string;
7292
+ key: string | null;
7293
+ title: string;
7294
+ archivedAt: number | null;
7295
+ };
7296
+ changed: boolean;
7297
+ }>;
6974
7298
  };
6975
7299
  /**
6976
7300
  * Groups: named sets of members that prerequisites (`inGroup`), leaderboards and referral rules
@@ -18188,6 +18512,7 @@ declare function managementClient(options: ManagementClientOptions): {
18188
18512
  }[];
18189
18513
  supportedInteractions: ("staff" | "url" | "quiz" | "text" | "automatic" | "photo" | "claim")[];
18190
18514
  }>;
18515
+ /** @deprecated Use deployments.preview. Removed in 2.0.0. */
18191
18516
  previewDeployment: (input: z.input<typeof catalogDeploymentSchema>, call?: ManagementCallOptions) => Promise<{
18192
18517
  revision: number;
18193
18518
  types: {
@@ -18481,6 +18806,7 @@ declare function managementClient(options: ManagementClientOptions): {
18481
18806
  }[];
18482
18807
  supportedInteractions: ("staff" | "url" | "quiz" | "text" | "automatic" | "photo" | "claim")[];
18483
18808
  }>;
18809
+ /** @deprecated Use deployments.preview then deployments.publish. Removed in 2.0.0. */
18484
18810
  deploy: (input: z.input<typeof catalogDeploymentSchema>, call?: ManagementCallOptions) => Promise<{
18485
18811
  revision: number;
18486
18812
  types: {
@@ -19208,7 +19534,7 @@ declare function managementClient(options: ManagementClientOptions): {
19208
19534
  }[];
19209
19535
  supportedInteractions: ("staff" | "url" | "quiz" | "text" | "automatic" | "photo" | "claim")[];
19210
19536
  }>;
19211
- saveDraft: (input: z.input<typeof saveQuestDraftSchema>, call?: ManagementCallOptions) => Promise<{
19537
+ saveDraft: (input: CreationInput<z.input<typeof saveQuestDraftSchema>>, call?: ManagementCallOptions) => Promise<{
19212
19538
  id: string;
19213
19539
  revision: number;
19214
19540
  baseRevision: number;
@@ -22573,7 +22899,7 @@ declare function managementClient(options: ManagementClientOptions): {
22573
22899
  };
22574
22900
  expiresAt: number;
22575
22901
  }>;
22576
- begin: (input: z.input<typeof collectionBeginSchema>, call?: ManagementCallOptions) => Promise<{
22902
+ begin: (input: CreationInput<z.input<typeof collectionBeginSchema>>, call?: ManagementCallOptions) => Promise<{
22577
22903
  [x: string]: unknown;
22578
22904
  status: "available";
22579
22905
  id: string;
@@ -22741,6 +23067,7 @@ declare function managementClient(options: ManagementClientOptions): {
22741
23067
  * Pauses or resumes redemptions or one quest's participation, against the `revision` the
22742
23068
  * operator saw, with a reason; requires `publish` permission.
22743
23069
  */
23070
+ /** @deprecated Use quests.pause/resume or redemptions.pause/resume. Removed in 2.0.0. */
22744
23071
  configure: (input: CreationInput<z.input<typeof operationInputSchema>>, call?: ManagementCallOptions) => Promise<{
22745
23072
  target: string;
22746
23073
  paused: boolean;
@@ -22750,6 +23077,24 @@ declare function managementClient(options: ManagementClientOptions): {
22750
23077
  changedAt: number;
22751
23078
  }>;
22752
23079
  };
23080
+ redemptions: {
23081
+ pause: (input: CreationInput<Omit<z.input<typeof operationInputSchema>, "target" | "paused">>, call?: ManagementCallOptions) => Promise<{
23082
+ target: string;
23083
+ paused: boolean;
23084
+ revision: number;
23085
+ reason: string;
23086
+ actor: string | null;
23087
+ changedAt: number;
23088
+ }>;
23089
+ resume: (input: CreationInput<Omit<z.input<typeof operationInputSchema>, "target" | "paused">>, call?: ManagementCallOptions) => Promise<{
23090
+ target: string;
23091
+ paused: boolean;
23092
+ revision: number;
23093
+ reason: string;
23094
+ actor: string | null;
23095
+ changedAt: number;
23096
+ }>;
23097
+ };
22753
23098
  inventory: {
22754
23099
  /** Every stock item with its counts and the offers that sell it; requires `read` permission. */
22755
23100
  list: (call?: ManagementCallOptions) => Promise<{
@@ -22801,7 +23146,7 @@ declare function managementClient(options: ManagementClientOptions): {
22801
23146
  }[];
22802
23147
  };
22803
23148
  }[]>;
22804
- configure: (input: z.input<typeof configurePickupSchema>, call?: ManagementCallOptions) => Promise<{
23149
+ configure: (input: CreationInput<z.input<typeof configurePickupSchema>>, call?: ManagementCallOptions) => Promise<{
22805
23150
  reward: {
22806
23151
  id: string;
22807
23152
  title: string;
@@ -22845,6 +23190,102 @@ declare function managementClient(options: ManagementClientOptions): {
22845
23190
  }>;
22846
23191
  };
22847
23192
  offers: {
23193
+ pause: (offer: string, input: CreationInput<Omit<z.input<typeof offerControlSchema>, "enabled">>, call?: ManagementCallOptions) => Promise<{
23194
+ id: string;
23195
+ title: string;
23196
+ price: {
23197
+ kind: "points";
23198
+ balance: string;
23199
+ amount: number;
23200
+ };
23201
+ reward: {
23202
+ kind: "tier";
23203
+ reward: {
23204
+ id: string;
23205
+ title: string;
23206
+ tiers: {
23207
+ id: string;
23208
+ title: string;
23209
+ }[];
23210
+ inventory: {
23211
+ kind: "untracked";
23212
+ };
23213
+ fulfillment: {
23214
+ kind: "staff-handover";
23215
+ } | {
23216
+ kind: "automatic";
23217
+ };
23218
+ };
23219
+ tier: string;
23220
+ };
23221
+ stock: number;
23222
+ limit: {
23223
+ perMember: number;
23224
+ };
23225
+ enabled: boolean;
23226
+ revision: number;
23227
+ available: number;
23228
+ redeemed: number;
23229
+ availability: {
23230
+ kind: "available";
23231
+ remaining: number;
23232
+ } | {
23233
+ kind: "out-of-stock";
23234
+ } | {
23235
+ kind: "limit-reached";
23236
+ } | {
23237
+ kind: "paused";
23238
+ };
23239
+ key?: string | undefined;
23240
+ }>;
23241
+ resume: (offer: string, input: CreationInput<Omit<z.input<typeof offerControlSchema>, "enabled">>, call?: ManagementCallOptions) => Promise<{
23242
+ id: string;
23243
+ title: string;
23244
+ price: {
23245
+ kind: "points";
23246
+ balance: string;
23247
+ amount: number;
23248
+ };
23249
+ reward: {
23250
+ kind: "tier";
23251
+ reward: {
23252
+ id: string;
23253
+ title: string;
23254
+ tiers: {
23255
+ id: string;
23256
+ title: string;
23257
+ }[];
23258
+ inventory: {
23259
+ kind: "untracked";
23260
+ };
23261
+ fulfillment: {
23262
+ kind: "staff-handover";
23263
+ } | {
23264
+ kind: "automatic";
23265
+ };
23266
+ };
23267
+ tier: string;
23268
+ };
23269
+ stock: number;
23270
+ limit: {
23271
+ perMember: number;
23272
+ };
23273
+ enabled: boolean;
23274
+ revision: number;
23275
+ available: number;
23276
+ redeemed: number;
23277
+ availability: {
23278
+ kind: "available";
23279
+ remaining: number;
23280
+ } | {
23281
+ kind: "out-of-stock";
23282
+ } | {
23283
+ kind: "limit-reached";
23284
+ } | {
23285
+ kind: "paused";
23286
+ };
23287
+ key?: string | undefined;
23288
+ }>;
22848
23289
  list: (call?: ManagementCallOptions) => Promise<{
22849
23290
  id: string;
22850
23291
  title: string;
@@ -22967,6 +23408,7 @@ declare function managementClient(options: ManagementClientOptions): {
22967
23408
  redeemedAt: number;
22968
23409
  })[]>;
22969
23410
  /** Pauses or resumes an offer at the revision the operator saw. */
23411
+ /** @deprecated Use pause or resume. Removed in 2.0.0. */
22970
23412
  control: (offer: string, input: CreationInput<z.input<typeof offerControlSchema>>, call?: ManagementCallOptions) => Promise<{
22971
23413
  id: string;
22972
23414
  title: string;
@@ -23249,6 +23691,26 @@ declare function managementClient(options: ManagementClientOptions): {
23249
23691
  };
23250
23692
  /** Signed activity notifications for one project/environment; writes require publish permission. */
23251
23693
  webhooks: {
23694
+ pause: (id: string, input?: z.input<typeof webhookControlInputSchema>, call?: ManagementCallOptions) => Promise<{
23695
+ id: string;
23696
+ enabled: boolean;
23697
+ disabledReason: string | null;
23698
+ consecutiveFailures: number;
23699
+ createdAt: number;
23700
+ updatedAt: number;
23701
+ url: string;
23702
+ types: string[];
23703
+ }>;
23704
+ resume: (id: string, input?: z.input<typeof webhookControlInputSchema>, call?: ManagementCallOptions) => Promise<{
23705
+ id: string;
23706
+ enabled: boolean;
23707
+ disabledReason: string | null;
23708
+ consecutiveFailures: number;
23709
+ createdAt: number;
23710
+ updatedAt: number;
23711
+ url: string;
23712
+ types: string[];
23713
+ }>;
23252
23714
  list: (call?: ManagementCallOptions) => Promise<{
23253
23715
  id: string;
23254
23716
  enabled: boolean;
@@ -23283,6 +23745,7 @@ declare function managementClient(options: ManagementClientOptions): {
23283
23745
  url: string;
23284
23746
  types: string[];
23285
23747
  }>;
23748
+ /** @deprecated Use pause. Removed in 2.0.0. */
23286
23749
  disable: (id: string, call?: ManagementCallOptions) => Promise<{
23287
23750
  id: string;
23288
23751
  enabled: boolean;
@@ -24112,6 +24575,72 @@ declare function managementClient(options: ManagementClientOptions): {
24112
24575
  nextCursor: string | null;
24113
24576
  }>;
24114
24577
  };
24578
+ collections: {
24579
+ archive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
24580
+ resource: {
24581
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
24582
+ id: string;
24583
+ key: string | null;
24584
+ title: string;
24585
+ archivedAt: number | null;
24586
+ };
24587
+ changed: boolean;
24588
+ }>;
24589
+ unarchive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
24590
+ resource: {
24591
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
24592
+ id: string;
24593
+ key: string | null;
24594
+ title: string;
24595
+ archivedAt: number | null;
24596
+ };
24597
+ changed: boolean;
24598
+ }>;
24599
+ };
24600
+ questTypes: {
24601
+ archive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
24602
+ resource: {
24603
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
24604
+ id: string;
24605
+ key: string | null;
24606
+ title: string;
24607
+ archivedAt: number | null;
24608
+ };
24609
+ changed: boolean;
24610
+ }>;
24611
+ unarchive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
24612
+ resource: {
24613
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
24614
+ id: string;
24615
+ key: string | null;
24616
+ title: string;
24617
+ archivedAt: number | null;
24618
+ };
24619
+ changed: boolean;
24620
+ }>;
24621
+ };
24622
+ images: {
24623
+ archive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
24624
+ resource: {
24625
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
24626
+ id: string;
24627
+ key: string | null;
24628
+ title: string;
24629
+ archivedAt: number | null;
24630
+ };
24631
+ changed: boolean;
24632
+ }>;
24633
+ unarchive: (resource: string, input: ResourceArchiveInput, call?: ManagementCallOptions) => Promise<{
24634
+ resource: {
24635
+ kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
24636
+ id: string;
24637
+ key: string | null;
24638
+ title: string;
24639
+ archivedAt: number | null;
24640
+ };
24641
+ changed: boolean;
24642
+ }>;
24643
+ };
24115
24644
  resources: {
24116
24645
  list: (call?: ManagementCallOptions) => Promise<{
24117
24646
  resources: {
@@ -24122,7 +24651,8 @@ declare function managementClient(options: ManagementClientOptions): {
24122
24651
  archivedAt: number | null;
24123
24652
  }[];
24124
24653
  }>;
24125
- lifecycle: (input: ResourceLifecycleInput, call?: ManagementCallOptions) => Promise<{
24654
+ /** @deprecated Use the resource archive/unarchive methods. Removed in 2.0.0. */
24655
+ lifecycle: (input: CreationInput<ResourceLifecycleInput>, call?: ManagementCallOptions) => Promise<{
24126
24656
  resource: {
24127
24657
  kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
24128
24658
  id: string;
@@ -24284,7 +24814,7 @@ declare function managementClient(options: ManagementClientOptions): {
24284
24814
  }>;
24285
24815
  /** Console sessions with publish permission, in test only. Reset deletes the member. */
24286
24816
  testMembers: {
24287
- create: (input: TestMemberCreateInput, call?: ManagementCallOptions) => Promise<{
24817
+ create: (input: CreationInput<TestMemberCreateInput>, call?: ManagementCallOptions) => Promise<{
24288
24818
  id: string;
24289
24819
  name: string;
24290
24820
  test: true;
@@ -24375,7 +24905,7 @@ declare function managementClient(options: ManagementClientOptions): {
24375
24905
  }[];
24376
24906
  complete: boolean;
24377
24907
  }>;
24378
- act: (member: string, input: TestMemberActionInput, call?: ManagementCallOptions) => Promise<{
24908
+ act: (member: string, input: CreationInput<TestMemberActionInput>, call?: ManagementCallOptions) => Promise<{
24379
24909
  id: string;
24380
24910
  release: string;
24381
24911
  quest: string;
@@ -24442,14 +24972,14 @@ declare function managementClient(options: ManagementClientOptions): {
24442
24972
  } | undefined;
24443
24973
  }>;
24444
24974
  /** Move forward 1–30 project-calendar days, up to 90 total. Reset deletes the member. */
24445
- advance: (member: string, input: TestMemberAdvanceInput, call?: ManagementCallOptions) => Promise<{
24975
+ advance: (member: string, input: CreationInput<TestMemberAdvanceInput>, call?: ManagementCallOptions) => Promise<{
24446
24976
  id: string;
24447
24977
  name: string;
24448
24978
  test: true;
24449
24979
  today?: string | undefined;
24450
24980
  offsetDays?: number | undefined;
24451
24981
  }>;
24452
- reset: (member: string, input: TestMemberResetInput, call?: ManagementCallOptions) => Promise<{
24982
+ reset: (member: string, input: CreationInput<TestMemberResetInput>, call?: ManagementCallOptions) => Promise<{
24453
24983
  member: string;
24454
24984
  deleted: true;
24455
24985
  }>;
@@ -24493,7 +25023,7 @@ declare function managementClient(options: ManagementClientOptions): {
24493
25023
  }[];
24494
25024
  nextCursor: string | null;
24495
25025
  }>;
24496
- moderate: (member: string, quest: string, contribution: string, input: z.input<typeof counterModerationSchema>, call?: ManagementCallOptions) => Promise<{
25026
+ moderate: (member: string, quest: string, contribution: string, input: CreationInput<z.input<typeof counterModerationSchema>>, call?: ManagementCallOptions) => Promise<{
24497
25027
  excluded: boolean;
24498
25028
  }>;
24499
25029
  };
@@ -24840,7 +25370,7 @@ declare function managementClient(options: ManagementClientOptions): {
24840
25370
  */
24841
25371
  campaigns: {
24842
25372
  /** Enrolls or restores a member in every quest of a campaign that requires enrollment. */
24843
- enroll: (input: z.input<typeof memberCampaignEnrollmentInputSchema>, call?: ManagementCallOptions) => Promise<{
25373
+ enroll: (input: CreationInput<z.input<typeof memberCampaignEnrollmentInputSchema>>, call?: ManagementCallOptions) => Promise<{
24844
25374
  campaign: string;
24845
25375
  member: string;
24846
25376
  enrolledAt: number;
@@ -24848,7 +25378,7 @@ declare function managementClient(options: ManagementClientOptions): {
24848
25378
  withdrawalReason: string | null;
24849
25379
  }>;
24850
25380
  /** Pauses a member's new campaign admissions while preserving history and completed work. */
24851
- withdraw: (input: z.input<typeof memberCampaignWithdrawalInputSchema>, call?: ManagementCallOptions) => Promise<{
25381
+ withdraw: (input: CreationInput<z.input<typeof memberCampaignWithdrawalInputSchema>>, call?: ManagementCallOptions) => Promise<{
24852
25382
  campaign: string;
24853
25383
  member: string;
24854
25384
  enrolledAt: number;
@@ -24857,6 +25387,22 @@ declare function managementClient(options: ManagementClientOptions): {
24857
25387
  }>;
24858
25388
  };
24859
25389
  quests: {
25390
+ pause: (quest: string, input: CreationInput<Omit<z.input<typeof operationInputSchema>, "target" | "paused">>, call?: ManagementCallOptions) => Promise<{
25391
+ target: string;
25392
+ paused: boolean;
25393
+ revision: number;
25394
+ reason: string;
25395
+ actor: string | null;
25396
+ changedAt: number;
25397
+ }>;
25398
+ resume: (quest: string, input: CreationInput<Omit<z.input<typeof operationInputSchema>, "target" | "paused">>, call?: ManagementCallOptions) => Promise<{
25399
+ target: string;
25400
+ paused: boolean;
25401
+ revision: number;
25402
+ reason: string;
25403
+ actor: string | null;
25404
+ changedAt: number;
25405
+ }>;
24860
25406
  /**
24861
25407
  * Each quest's current release, the most recently published first, archived quests
24862
25408
  * included; requires `read` permission.
@@ -25202,7 +25748,7 @@ declare function managementClient(options: ManagementClientOptions): {
25202
25748
  nextCursor: string | null;
25203
25749
  }>;
25204
25750
  /** Requeues a failed balance check with its original durable event identity. Requires review. */
25205
- retryAutomaticScheduling: (input: z.input<typeof automaticSchedulingRetrySchema>, call?: ManagementCallOptions) => Promise<{
25751
+ retryAutomaticScheduling: (input: CreationInput<z.input<typeof automaticSchedulingRetrySchema>>, call?: ManagementCallOptions) => Promise<{
25206
25752
  id: string;
25207
25753
  member: string;
25208
25754
  event: {
@@ -25450,7 +25996,7 @@ declare function managementClient(options: ManagementClientOptions): {
25450
25996
  }[];
25451
25997
  }>;
25452
25998
  /** Confirm the exact preview; changed eligibility requires another preview. Requires review. */
25453
- catchUpAutomatic: (input: z.input<typeof automaticCatchUpConfirmSchema>, call?: ManagementCallOptions) => Promise<{
25999
+ catchUpAutomatic: (input: CreationInput<z.input<typeof automaticCatchUpConfirmSchema>>, call?: ManagementCallOptions) => Promise<{
25454
26000
  items: ({
25455
26001
  attempt: string;
25456
26002
  id: string;
@@ -25537,7 +26083,7 @@ declare function managementClient(options: ManagementClientOptions): {
25537
26083
  * again returns the first enrollment. The member's skips recorded as `not-enrolled` on the
25538
26084
  * quest are decided again.
25539
26085
  */
25540
- enroll: (input: z.input<typeof memberEnrollmentInputSchema>, call?: ManagementCallOptions) => Promise<{
26086
+ enroll: (input: CreationInput<z.input<typeof memberEnrollmentInputSchema>>, call?: ManagementCallOptions) => Promise<{
25541
26087
  quest: string;
25542
26088
  member: string;
25543
26089
  enrolledAt: number;
@@ -25905,4 +26451,4 @@ declare function managementClient(options: ManagementClientOptions): {
25905
26451
  }>;
25906
26452
  };
25907
26453
 
25908
- 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 AccessHistoryQuery, 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 AuditPage, type AuditQuery, type AuditRecord, type BalanceCheck, type BuildArtifacts, type BuildIdentity, type BuildSnapshot, type BuildStatus, type CompletionRevocation, type CompletionRevocationShortfall, type CompletionRevokeInput, CompletionSourceKind, DEFAULT_MANAGEMENT_TIMEOUT, GroupPageQuery, type HostedAppSecrets, type HostedBuild, type HostedDeploymentKey, type HostedKey, type HostedKeyPermission, type HostedManagementEnv, type KnownPayoutSourceKind, type ListQuery, type ManagedAttempt, type ManagedAttemptPage, type ManagedAttemptQuery, type ManagedEntitlement, type ManagedEntitlementPage, type ManagedEntitlementQuery, type ManagedMemberIdentity, type ManagedMemberPage, type ManagedMemberQuery, type ManagedOAuthAccount, type ManagedResource, type ManagedStockItem, type ManagedWallet, type ManagementCallOptions, type ManagementClient, type ManagementClientOptions, ManagementError, ManagementErrorCode, type ManagementErrorInit, type ManagementErrorKind, type ManagementPage, type ManagementRawInit, type MemberDetail, type OperatorUser, type ParticipantSignIn, type ParticipantSignInInput, PayoutSourceKind, type Permission, type Person, type Project, type ProjectMetrics, 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 TestMemberAdvanceInput, type TestMemberCreateInput, type TestMemberHistory, type TestMemberHistoryQuery, type TestMemberResetInput, type TestMemberResetResult, WEBHOOK_MAX_BYTES, type WalletBalanceChains, type WebhookEvent, accessHistoryQuerySchema, accessSchema, accountProfileSchema, addGroupMemberSchema, appMigrationNameSchema, appRoutingSchema, appSecretDeclarationSchema, appSecretDeclarationsSchema, appSecretInputSchema, appSecretListSchema, appSecretNameSchema, appSecretSchema, appSecretValueSchema, appStorageCellSchema, appStorageKeysSchema, appStorageKindSchema, appStorageListSchema, appStorageRowsSchema, appStorageSchema, appStorageTablesSchema, appStorageValueSchema, assetPathSchema, auditPageSchema, auditQuerySchema, auditRecordSchema, balanceCheckSchema, buildArtifactsSchema, buildIdentitySchema, buildPhaseSchema, buildSnapshotSchema, buildStatusSchema, commitSchema, compareAppMigrations, completionRevocationSchema, completionRevocationShortfallSchema, completionRevokeSchema, createGroupSchema, createManagementClient, createRepositorySchema, deploymentActionSchema, deploymentRejectionSchema, developmentPreflightSchema, deviceApproveSchema, deviceRedeemSchema, deviceStartSchema, entitlementCorrectionSchema, environmentSchema, grantRecordSchema, grantSchema, hostedAppSchema, hostedAppSecretsSchema, hostedBuildSchema, hostedDeploymentKeySchema, hostedKeyPermissions, hostedKeySchema, hostedKeySecretSchema, hostedManagementBindings, hostedManagementClient, identityIntegrationInputSchema, ingestTrackerScopeSchema, inventorySchema, isManagementError, issuedTokenSchema, managedAttemptPageSchema, managedAttemptQuerySchema, managedAttemptSchema, managedEntitlementPageSchema, managedEntitlementQuerySchema, managedEntitlementSchema, managedMemberIdentitySchema, managedMemberPageSchema, managedMemberQuerySchema, managedOAuthAccountSchema, managedResourceSchema, managedStockItemSchema, managedWalletSchema, managementErrorSchema, memberAccountSchema, memberDetailSchema, memberIdentityChangeInputSchema, memberLookupSchema, memberOAuthUnlinkInputSchema, memberSchema, memberWalletSignInInputSchema, memberWalletUnlinkInputSchema, metricsSchema, operationInputSchema, operationSchema, operatorUserSchema, pageSchema, participantSignInInputSchema, participantSignInSchema, permissionSchema, personSchema, pointLedgerPropertiesSchema, projectDeletionInputSchema, projectDeletionSchema, projectInputSchema, projectMetricsSchema, projectSchema, projectSetupSchema, projectTransferInputSchema, projectTransferSchema, projectUpdateInputSchema, querySchema, questLifecycleInputSchema, questLifecycleSchema, readinessSchema, referralManagementSchema, referralQualificationSchema, referralRewardResolutionSchema, referralSuspensionSchema, removeGroupMemberSchema, repositorySchema, resourceLifecycleInputSchema, resourceLifecycleKindSchema, resourceLifecycleResultSchema, rolePermissions, roleSchema, stageRequestSchema, stagedDeploymentContentSchema, stagedDeploymentKey, stagedDeploymentLimits, stagedDeploymentSchema, stagingAccessInputSchema, stagingAccessModeSchema, stagingAccessSchema, stagingLinkSchema, stagingPathSchema, starterIdSchema, starterTemplates, stockAdditionSchema, stockInputSchema, teamSchema, testMemberActionSchema, testMemberAdvanceSchema, testMemberCreateSchema, testMemberHistoryQuerySchema, testMemberHistorySchema, testMemberResetResultSchema, testMemberResetSchema, testMemberSchema, tokenInputSchema, tokenSchema, tokenScopeInputSchema, updateGroupSchema, verifiedPassSchema, verifyWebhook, walletBalanceChainsSchema, webhookDeliveryPageSchema, webhookDeliverySchema, webhookEndpointSchema, webhookEventSchema, webhookInputSchema, webhookQuerySchema, webhookSecretSchema, webhookUpdateSchema };
26454
+ 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 AccessHistoryQuery, 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 AuditPage, type AuditQuery, type AuditRecord, type BalanceCheck, type BuildArtifacts, type BuildIdentity, type BuildSnapshot, type BuildStatus, type CompletionRevocation, type CompletionRevocationShortfall, type CompletionRevokeInput, CompletionSourceKind, DEFAULT_MANAGEMENT_TIMEOUT, GroupPageQuery, type HostedAppSecrets, type HostedBuild, type HostedDeploymentKey, type HostedKey, type HostedKeyPermission, type HostedManagementEnv, type KnownPayoutSourceKind, type ListQuery, type ManagedAttempt, type ManagedAttemptPage, type ManagedAttemptQuery, type ManagedEntitlement, type ManagedEntitlementPage, type ManagedEntitlementQuery, type ManagedMemberIdentity, type ManagedMemberPage, type ManagedMemberQuery, type ManagedOAuthAccount, type ManagedResource, type ManagedStockItem, type ManagedWallet, type ManagementCallOptions, type ManagementClient, type ManagementClientOptions, ManagementError, ManagementErrorCode, type ManagementErrorInit, type ManagementErrorKind, type ManagementPage, type ManagementRawInit, type MemberDetail, type OperatorUser, type ParticipantSignIn, type ParticipantSignInInput, PayoutSourceKind, type Permission, type Person, type Project, type ProjectMetrics, type QuestLifecycle, type QuestLifecycleInput, type ResourceArchiveInput, type ResourceLifecycleInput, RevokedDeliveryOutcome, RevokedEntitlementOutcome, RevokedReferralOutcome, type StagedDeployment, type StagedDeploymentContent, type StagingAccess, type StagingAccessInput, type StagingLink, type StarterId, type StarterTemplate, type TestMember, type TestMemberActionInput, type TestMemberAdvanceInput, type TestMemberCreateInput, type TestMemberHistory, type TestMemberHistoryQuery, type TestMemberResetInput, type TestMemberResetResult, WEBHOOK_MAX_BYTES, type WalletBalanceChains, type WebhookEvent, accessHistoryQuerySchema, accessSchema, accountProfileSchema, addGroupMemberSchema, appMigrationNameSchema, appRoutingSchema, appSecretDeclarationSchema, appSecretDeclarationsSchema, appSecretInputSchema, appSecretListSchema, appSecretNameSchema, appSecretSchema, appSecretValueSchema, appStorageCellSchema, appStorageKeysSchema, appStorageKindSchema, appStorageListSchema, appStorageRowsSchema, appStorageSchema, appStorageTablesSchema, appStorageValueSchema, assetPathSchema, auditPageSchema, auditQuerySchema, auditRecordSchema, balanceCheckSchema, buildArtifactsSchema, buildIdentitySchema, buildPhaseSchema, buildSnapshotSchema, buildStatusSchema, commitSchema, compareAppMigrations, completionRevocationSchema, completionRevocationShortfallSchema, completionRevokeSchema, createGroupSchema, createManagementClient, createRepositorySchema, deploymentActionSchema, deploymentRejectionSchema, developmentPreflightSchema, deviceApproveSchema, deviceRedeemSchema, deviceStartSchema, entitlementCorrectionSchema, environmentSchema, grantRecordSchema, grantSchema, hostedAppSchema, hostedAppSecretsSchema, hostedBuildSchema, hostedDeploymentKeySchema, hostedKeyPermissions, hostedKeySchema, hostedKeySecretSchema, hostedManagementBindings, hostedManagementClient, identityIntegrationInputSchema, ingestTrackerScopeSchema, inventorySchema, isManagementError, issuedTokenSchema, managedAttemptPageSchema, managedAttemptQuerySchema, managedAttemptSchema, managedEntitlementPageSchema, managedEntitlementQuerySchema, managedEntitlementSchema, managedMemberIdentitySchema, managedMemberPageSchema, managedMemberQuerySchema, managedOAuthAccountSchema, managedResourceSchema, managedStockItemSchema, managedWalletSchema, managementErrorSchema, memberAccountSchema, memberDetailSchema, memberIdentityChangeInputSchema, memberLookupSchema, memberOAuthUnlinkInputSchema, memberSchema, memberWalletSignInInputSchema, memberWalletUnlinkInputSchema, metricsSchema, operationInputSchema, operationSchema, operatorUserSchema, pageSchema, participantSignInInputSchema, participantSignInSchema, permissionSchema, personSchema, pointLedgerPropertiesSchema, projectDeletionInputSchema, projectDeletionSchema, projectInputSchema, projectMetricsSchema, projectSchema, projectSetupSchema, projectTransferInputSchema, projectTransferSchema, projectUpdateInputSchema, querySchema, questLifecycleInputSchema, questLifecycleSchema, readinessSchema, referralManagementSchema, referralQualificationSchema, referralRewardResolutionSchema, referralSuspensionSchema, removeGroupMemberSchema, repositorySchema, resourceArchiveInputSchema, resourceLifecycleInputSchema, resourceLifecycleKindSchema, resourceLifecyclePaths, resourceLifecycleResultSchema, rolePermissions, roleSchema, stageRequestSchema, stagedDeploymentContentSchema, stagedDeploymentKey, stagedDeploymentLimits, stagedDeploymentSchema, stagingAccessInputSchema, stagingAccessModeSchema, stagingAccessSchema, stagingLinkSchema, stagingPathSchema, starterIdSchema, starterTemplates, stockAdditionSchema, stockInputSchema, teamSchema, testMemberActionSchema, testMemberAdvanceSchema, testMemberCreateSchema, testMemberHistoryQuerySchema, testMemberHistorySchema, testMemberResetResultSchema, testMemberResetSchema, testMemberSchema, tokenInputSchema, tokenSchema, tokenScopeInputSchema, updateGroupSchema, verifiedPassSchema, verifyWebhook, walletBalanceChainsSchema, webhookControlInputSchema, webhookDeliveryPageSchema, webhookDeliverySchema, webhookEndpointSchema, webhookEventSchema, webhookInputSchema, webhookQuerySchema, webhookSecretSchema, webhookUpdateSchema };