@domino-sdk/relay 1.6.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 (35) hide show
  1. package/dist/action-9Xl0StBg.d.ts +33 -0
  2. package/dist/{activity-mPUN4v5Q.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-DmuqzQiH.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-CQuTAjSs.d.ts → client-CbASImpi.d.ts} +42 -36
  15. package/dist/{groups-D08JtrZu.d.ts → groups-Dvmd4CYk.d.ts} +1 -1
  16. package/dist/{images-D7en0Awp.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 +5 -119
  20. package/dist/internal.js +1 -1
  21. package/dist/{offers-BENZl5l5.d.ts → offers-BEGVSOTD.d.ts} +2 -2
  22. package/dist/{pages-CBa-_u_n.d.ts → pages-HmS6eedC.d.ts} +38 -38
  23. package/dist/react/index.d.ts +197 -10
  24. package/dist/react/index.js +253 -111
  25. package/dist/referral-reward-kinds-Flbb1D2q.d.ts +171 -0
  26. package/dist/{schema-BPdHSCAc.d.ts → schema-BCuiO7eD.d.ts} +16 -16
  27. package/dist/schema.d.ts +8 -8
  28. package/dist/schema.js +3 -3
  29. package/dist/server/index.d.ts +592 -45
  30. package/dist/server/index.js +209 -49
  31. package/dist/{sign-in-options-FPKoZMfo.d.ts → sign-in-options-z3wsfizk.d.ts} +2 -2
  32. package/dist/{submission-input-BzIWutQi.d.ts → submission-input-Bs14jIsu.d.ts} +2 -2
  33. package/package.json +1 -1
  34. package/dist/identity-integration-BPovus6e.d.ts +0 -58
  35. /package/dist/{chunk-QGLHZ2E5.js → chunk-5ECM6AWV.js} +0 -0
@@ -1,16 +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-CBa-_u_n.js';
2
- import { a as AttemptStatus, k as CompletionSourceKind, O as OpenIdentityKind, a4 as TrackerDataSchema, ac as TrackerQuery, b$ as trackerContentReadSchema, c2 as trackerControlSchema, ca as trackerIngestSchema, a8 as TrackerOutcomeQuery, an as TrackerTriggerOutcomeQuery, cd as trackerOutcomeRetrySchema, ab as TrackerPreviewInput, aO as contentPerformanceQuerySchema, bO as submitSchema, bI as staffDecisionSchema, aG as beginHandoverSchema, aL as confirmHandoverSchema, aW as entitlementCorrectionSchema, aQ as createStockItemSchema, aK as configurePickupSchema, bt as questSettingsInputSchema } from '../schema-BPdHSCAc.js';
3
- export { C as CompletionSource, s as KnownCompletionSourceKind, aY as entitlementSchema, ba as memberIdentitySchema, cv as trackerTriggerOutcomePageSchema } from '../schema-BPdHSCAc.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-DmuqzQiH.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-mPUN4v5Q.js';
7
- export { c as activityTypeSchema, d as activityTypes } from '../activity-mPUN4v5Q.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-D08JtrZu.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-D08JtrZu.js';
10
- import { h as offerControlSchema, m as redemptionCancellationSchema } from '../offers-BENZl5l5.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';
11
13
  import { C as profileSettingsInputSchema, z as profileModerationSchema } from '../profiles-D2aFcOxu.js';
12
- import { i as identityIntegrationInputSchema } from '../identity-integration-BPovus6e.js';
13
- export { a as identityIntegrationSchema, c as identityKindClaimSchema } from '../identity-integration-BPovus6e.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';
14
16
  import { R as RequestError, b as RequestErrorKind } from '../request-error-D_dUPLwo.js';
15
17
 
16
18
  type KnownPayoutSourceKind = (typeof PayoutSourceKind)[keyof typeof PayoutSourceKind];
@@ -41,6 +43,9 @@ declare const webhookEventSchema: z.ZodObject<{
41
43
  data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
42
44
  }, z.core.$strip>;
43
45
  type WebhookEvent = z.infer<typeof webhookEventSchema>;
46
+ declare const webhookControlInputSchema: z.ZodObject<{
47
+ actionId: z.ZodOptional<z.ZodString>;
48
+ }, z.core.$strict>;
44
49
  declare const webhookInputSchema: z.ZodObject<{
45
50
  url: z.ZodURL;
46
51
  types: z.ZodArray<z.ZodString>;
@@ -347,6 +352,25 @@ declare const resourceLifecycleResultSchema: z.ZodObject<{
347
352
  }, z.core.$strip>;
348
353
  type ManagedResource = z.infer<typeof managedResourceSchema>;
349
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
+ };
350
374
 
351
375
  /**
352
376
  * How a management call failed, as in every Domino client error (see `RequestError`):
@@ -5520,9 +5544,7 @@ declare const verifiedPassSchema: z.ZodObject<{
5520
5544
  /** An input whose `actionId` the client generates when the caller leaves it out. */
5521
5545
  type CreationInput<T extends {
5522
5546
  actionId: string;
5523
- }> = Omit<T, "actionId"> & {
5524
- actionId?: string;
5525
- };
5547
+ }> = OptionalActionId<T>;
5526
5548
  /** @compat input */
5527
5549
  type ManagementClientOptions = {
5528
5550
  baseUrl: string;
@@ -5840,7 +5862,8 @@ declare function managementClient(options: ManagementClientOptions): {
5840
5862
  capturedAt: number;
5841
5863
  };
5842
5864
  }>;
5843
- 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<{
5844
5867
  published: {
5845
5868
  id: string;
5846
5869
  version: string;
@@ -5888,7 +5911,7 @@ declare function managementClient(options: ManagementClientOptions): {
5888
5911
  records: number;
5889
5912
  archivedAt?: number | null | undefined;
5890
5913
  }>;
5891
- ingest: (reference: string, input: z.input<typeof trackerIngestSchema>, call?: ManagementCallOptions) => Promise<{
5914
+ ingest: (reference: string, input: CreationInput<z.input<typeof trackerIngestSchema>>, call?: ManagementCallOptions) => Promise<{
5892
5915
  stored: number;
5893
5916
  admissions?: {
5894
5917
  admitted: number;
@@ -5981,7 +6004,7 @@ declare function managementClient(options: ManagementClientOptions): {
5981
6004
  * policy; requires `review` permission. Fails with 409, the current reason and its `skip`
5982
6005
  * code when it still cannot admit.
5983
6006
  */
5984
- retryOutcome: (reference: string, input: z.input<typeof trackerOutcomeRetrySchema>, call?: ManagementCallOptions) => Promise<{
6007
+ retryOutcome: (reference: string, input: CreationInput<z.input<typeof trackerOutcomeRetrySchema>>, call?: ManagementCallOptions) => Promise<{
5985
6008
  state: "admitted";
5986
6009
  code: null;
5987
6010
  reason: null;
@@ -6044,8 +6067,173 @@ declare function managementClient(options: ManagementClientOptions): {
6044
6067
  }[];
6045
6068
  more: boolean;
6046
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
+ }>;
6047
6234
  };
6048
6235
  engagement: {
6236
+ /** @deprecated Use deployments.preview and deployments.publish with engagement rules. Removed in 2.0.0. */
6049
6237
  previewChange: (input: z.input<typeof engagementChangePreviewInputSchema>, call?: ManagementCallOptions) => Promise<{
6050
6238
  rule: string;
6051
6239
  fromVersion: string;
@@ -6077,7 +6265,8 @@ declare function managementClient(options: ManagementClientOptions): {
6077
6265
  pending: string;
6078
6266
  };
6079
6267
  }>;
6080
- 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<{
6081
6270
  version: string;
6082
6271
  definition: {
6083
6272
  key: string;
@@ -6196,7 +6385,8 @@ declare function managementClient(options: ManagementClientOptions): {
6196
6385
  }[];
6197
6386
  nextCursor: string | null;
6198
6387
  }>;
6199
- 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<{
6200
6390
  version: string;
6201
6391
  definition: {
6202
6392
  key: string;
@@ -6275,6 +6465,26 @@ declare function managementClient(options: ManagementClientOptions): {
6275
6465
  }[];
6276
6466
  nextCursor: string | null;
6277
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
+ }>;
6278
6488
  };
6279
6489
  content: {
6280
6490
  performance: (input: z.input<typeof contentPerformanceQuerySchema>, call?: ManagementCallOptions) => Promise<{
@@ -6322,6 +6532,16 @@ declare function managementClient(options: ManagementClientOptions): {
6322
6532
  }>;
6323
6533
  };
6324
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
+ }>;
6325
6545
  list: (call?: ManagementCallOptions) => Promise<{
6326
6546
  name: string;
6327
6547
  description: string;
@@ -6354,12 +6574,10 @@ declare function managementClient(options: ManagementClientOptions): {
6354
6574
  id: string;
6355
6575
  archivedAt: number | null;
6356
6576
  }>;
6357
- archive: (ledger: string, call?: ManagementCallOptions) => Promise<{
6358
- name: string;
6359
- description: string;
6360
- id: string;
6361
- archivedAt: number | null;
6362
- }>;
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
+ };
6363
6581
  };
6364
6582
  points: {
6365
6583
  /** @deprecated Use `pointLedgers.list()`, which reads the same ledgers. Removed in 2.0.0. */
@@ -6380,7 +6598,7 @@ declare function managementClient(options: ManagementClientOptions): {
6380
6598
  * a `reverse` of an earlier award, or a `set` to an absolute total; requires `points`
6381
6599
  * permission. The action ID makes a retry answer with the first result.
6382
6600
  */
6383
- record: (input: z.input<typeof pointsMutationSchema>, call?: ManagementCallOptions) => Promise<{
6601
+ record: (input: CreationInput<z.input<typeof pointsMutationSchema>>, call?: ManagementCallOptions) => Promise<{
6384
6602
  entry: {
6385
6603
  id: string;
6386
6604
  completion: string | null;
@@ -6398,7 +6616,7 @@ declare function managementClient(options: ManagementClientOptions): {
6398
6616
  total: number;
6399
6617
  }>;
6400
6618
  /** @deprecated Use `record`, which makes the same change. Removed in 2.0.0. */
6401
- update: (input: z.input<typeof pointsMutationSchema>, call?: ManagementCallOptions) => Promise<{
6619
+ update: (input: CreationInput<z.input<typeof pointsMutationSchema>>, call?: ManagementCallOptions) => Promise<{
6402
6620
  entry: {
6403
6621
  id: string;
6404
6622
  completion: string | null;
@@ -6557,6 +6775,7 @@ declare function managementClient(options: ManagementClientOptions): {
6557
6775
  * Suspends or restores a member's referral relationship, with a reason; requires `publish`.
6558
6776
  * A suspended member earns their inviter nothing.
6559
6777
  */
6778
+ /** @deprecated Use pause or resume. Removed in 2.0.0. */
6560
6779
  suspend: (member: string, input: CreationInput<z.input<typeof referralSuspensionSchema>>, call?: ManagementCallOptions) => Promise<{
6561
6780
  ok: true;
6562
6781
  }>;
@@ -6575,9 +6794,95 @@ declare function managementClient(options: ManagementClientOptions): {
6575
6794
  ok: true;
6576
6795
  }>;
6577
6796
  /** @deprecated Use `suspend`, `qualify` or `resolveReward`. Removed in 2.0.0. */
6578
- control: (input: z.input<typeof referralControlSchema>, call?: ManagementCallOptions) => Promise<{
6797
+ control: (input: CreationInput<z.input<typeof referralControlSchema>>, call?: ManagementCallOptions) => Promise<{
6579
6798
  ok: true;
6580
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
+ }>;
6581
6886
  };
6582
6887
  leaderboards: {
6583
6888
  list: (call?: ManagementCallOptions) => Promise<{
@@ -6827,7 +7132,7 @@ declare function managementClient(options: ManagementClientOptions): {
6827
7132
  exclusions: (board: string, call?: ManagementCallOptions) => Promise<{
6828
7133
  member: string;
6829
7134
  }[]>;
6830
- exclude: (board: string, input: z.input<typeof leaderboardExclusionSchema>, call?: ManagementCallOptions) => Promise<{
7135
+ exclude: (board: string, input: CreationInput<z.input<typeof leaderboardExclusionSchema>>, call?: ManagementCallOptions) => Promise<{
6831
7136
  ok: true;
6832
7137
  }>;
6833
7138
  /**
@@ -6837,7 +7142,7 @@ declare function managementClient(options: ManagementClientOptions): {
6837
7142
  * @deprecated Use `groups.addMember` and `groups.removeMember` instead; create the group
6838
7143
  * first with `groups.create`. Removed in 2.0.0.
6839
7144
  */
6840
- 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<{
6841
7146
  ok: true;
6842
7147
  }>;
6843
7148
  settlements: (board: string, call?: ManagementCallOptions) => Promise<{
@@ -6970,6 +7275,26 @@ declare function managementClient(options: ManagementClientOptions): {
6970
7275
  revokedAt: number | null;
6971
7276
  }[];
6972
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
+ }>;
6973
7298
  };
6974
7299
  /**
6975
7300
  * Groups: named sets of members that prerequisites (`inGroup`), leaderboards and referral rules
@@ -18187,6 +18512,7 @@ declare function managementClient(options: ManagementClientOptions): {
18187
18512
  }[];
18188
18513
  supportedInteractions: ("staff" | "url" | "quiz" | "text" | "automatic" | "photo" | "claim")[];
18189
18514
  }>;
18515
+ /** @deprecated Use deployments.preview. Removed in 2.0.0. */
18190
18516
  previewDeployment: (input: z.input<typeof catalogDeploymentSchema>, call?: ManagementCallOptions) => Promise<{
18191
18517
  revision: number;
18192
18518
  types: {
@@ -18480,6 +18806,7 @@ declare function managementClient(options: ManagementClientOptions): {
18480
18806
  }[];
18481
18807
  supportedInteractions: ("staff" | "url" | "quiz" | "text" | "automatic" | "photo" | "claim")[];
18482
18808
  }>;
18809
+ /** @deprecated Use deployments.preview then deployments.publish. Removed in 2.0.0. */
18483
18810
  deploy: (input: z.input<typeof catalogDeploymentSchema>, call?: ManagementCallOptions) => Promise<{
18484
18811
  revision: number;
18485
18812
  types: {
@@ -19207,7 +19534,7 @@ declare function managementClient(options: ManagementClientOptions): {
19207
19534
  }[];
19208
19535
  supportedInteractions: ("staff" | "url" | "quiz" | "text" | "automatic" | "photo" | "claim")[];
19209
19536
  }>;
19210
- saveDraft: (input: z.input<typeof saveQuestDraftSchema>, call?: ManagementCallOptions) => Promise<{
19537
+ saveDraft: (input: CreationInput<z.input<typeof saveQuestDraftSchema>>, call?: ManagementCallOptions) => Promise<{
19211
19538
  id: string;
19212
19539
  revision: number;
19213
19540
  baseRevision: number;
@@ -22572,7 +22899,7 @@ declare function managementClient(options: ManagementClientOptions): {
22572
22899
  };
22573
22900
  expiresAt: number;
22574
22901
  }>;
22575
- begin: (input: z.input<typeof collectionBeginSchema>, call?: ManagementCallOptions) => Promise<{
22902
+ begin: (input: CreationInput<z.input<typeof collectionBeginSchema>>, call?: ManagementCallOptions) => Promise<{
22576
22903
  [x: string]: unknown;
22577
22904
  status: "available";
22578
22905
  id: string;
@@ -22740,6 +23067,7 @@ declare function managementClient(options: ManagementClientOptions): {
22740
23067
  * Pauses or resumes redemptions or one quest's participation, against the `revision` the
22741
23068
  * operator saw, with a reason; requires `publish` permission.
22742
23069
  */
23070
+ /** @deprecated Use quests.pause/resume or redemptions.pause/resume. Removed in 2.0.0. */
22743
23071
  configure: (input: CreationInput<z.input<typeof operationInputSchema>>, call?: ManagementCallOptions) => Promise<{
22744
23072
  target: string;
22745
23073
  paused: boolean;
@@ -22749,6 +23077,24 @@ declare function managementClient(options: ManagementClientOptions): {
22749
23077
  changedAt: number;
22750
23078
  }>;
22751
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
+ };
22752
23098
  inventory: {
22753
23099
  /** Every stock item with its counts and the offers that sell it; requires `read` permission. */
22754
23100
  list: (call?: ManagementCallOptions) => Promise<{
@@ -22800,7 +23146,7 @@ declare function managementClient(options: ManagementClientOptions): {
22800
23146
  }[];
22801
23147
  };
22802
23148
  }[]>;
22803
- configure: (input: z.input<typeof configurePickupSchema>, call?: ManagementCallOptions) => Promise<{
23149
+ configure: (input: CreationInput<z.input<typeof configurePickupSchema>>, call?: ManagementCallOptions) => Promise<{
22804
23150
  reward: {
22805
23151
  id: string;
22806
23152
  title: string;
@@ -22844,6 +23190,102 @@ declare function managementClient(options: ManagementClientOptions): {
22844
23190
  }>;
22845
23191
  };
22846
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
+ }>;
22847
23289
  list: (call?: ManagementCallOptions) => Promise<{
22848
23290
  id: string;
22849
23291
  title: string;
@@ -22966,6 +23408,7 @@ declare function managementClient(options: ManagementClientOptions): {
22966
23408
  redeemedAt: number;
22967
23409
  })[]>;
22968
23410
  /** Pauses or resumes an offer at the revision the operator saw. */
23411
+ /** @deprecated Use pause or resume. Removed in 2.0.0. */
22969
23412
  control: (offer: string, input: CreationInput<z.input<typeof offerControlSchema>>, call?: ManagementCallOptions) => Promise<{
22970
23413
  id: string;
22971
23414
  title: string;
@@ -23248,6 +23691,26 @@ declare function managementClient(options: ManagementClientOptions): {
23248
23691
  };
23249
23692
  /** Signed activity notifications for one project/environment; writes require publish permission. */
23250
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
+ }>;
23251
23714
  list: (call?: ManagementCallOptions) => Promise<{
23252
23715
  id: string;
23253
23716
  enabled: boolean;
@@ -23282,6 +23745,7 @@ declare function managementClient(options: ManagementClientOptions): {
23282
23745
  url: string;
23283
23746
  types: string[];
23284
23747
  }>;
23748
+ /** @deprecated Use pause. Removed in 2.0.0. */
23285
23749
  disable: (id: string, call?: ManagementCallOptions) => Promise<{
23286
23750
  id: string;
23287
23751
  enabled: boolean;
@@ -24111,6 +24575,72 @@ declare function managementClient(options: ManagementClientOptions): {
24111
24575
  nextCursor: string | null;
24112
24576
  }>;
24113
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
+ };
24114
24644
  resources: {
24115
24645
  list: (call?: ManagementCallOptions) => Promise<{
24116
24646
  resources: {
@@ -24121,7 +24651,8 @@ declare function managementClient(options: ManagementClientOptions): {
24121
24651
  archivedAt: number | null;
24122
24652
  }[];
24123
24653
  }>;
24124
- 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<{
24125
24656
  resource: {
24126
24657
  kind: "referral" | "leaderboard" | "point-ledger" | "tracker" | "engagement" | "collection" | "quest-type" | "image";
24127
24658
  id: string;
@@ -24283,7 +24814,7 @@ declare function managementClient(options: ManagementClientOptions): {
24283
24814
  }>;
24284
24815
  /** Console sessions with publish permission, in test only. Reset deletes the member. */
24285
24816
  testMembers: {
24286
- create: (input: TestMemberCreateInput, call?: ManagementCallOptions) => Promise<{
24817
+ create: (input: CreationInput<TestMemberCreateInput>, call?: ManagementCallOptions) => Promise<{
24287
24818
  id: string;
24288
24819
  name: string;
24289
24820
  test: true;
@@ -24374,7 +24905,7 @@ declare function managementClient(options: ManagementClientOptions): {
24374
24905
  }[];
24375
24906
  complete: boolean;
24376
24907
  }>;
24377
- act: (member: string, input: TestMemberActionInput, call?: ManagementCallOptions) => Promise<{
24908
+ act: (member: string, input: CreationInput<TestMemberActionInput>, call?: ManagementCallOptions) => Promise<{
24378
24909
  id: string;
24379
24910
  release: string;
24380
24911
  quest: string;
@@ -24441,14 +24972,14 @@ declare function managementClient(options: ManagementClientOptions): {
24441
24972
  } | undefined;
24442
24973
  }>;
24443
24974
  /** Move forward 1–30 project-calendar days, up to 90 total. Reset deletes the member. */
24444
- advance: (member: string, input: TestMemberAdvanceInput, call?: ManagementCallOptions) => Promise<{
24975
+ advance: (member: string, input: CreationInput<TestMemberAdvanceInput>, call?: ManagementCallOptions) => Promise<{
24445
24976
  id: string;
24446
24977
  name: string;
24447
24978
  test: true;
24448
24979
  today?: string | undefined;
24449
24980
  offsetDays?: number | undefined;
24450
24981
  }>;
24451
- reset: (member: string, input: TestMemberResetInput, call?: ManagementCallOptions) => Promise<{
24982
+ reset: (member: string, input: CreationInput<TestMemberResetInput>, call?: ManagementCallOptions) => Promise<{
24452
24983
  member: string;
24453
24984
  deleted: true;
24454
24985
  }>;
@@ -24492,7 +25023,7 @@ declare function managementClient(options: ManagementClientOptions): {
24492
25023
  }[];
24493
25024
  nextCursor: string | null;
24494
25025
  }>;
24495
- 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<{
24496
25027
  excluded: boolean;
24497
25028
  }>;
24498
25029
  };
@@ -24839,7 +25370,7 @@ declare function managementClient(options: ManagementClientOptions): {
24839
25370
  */
24840
25371
  campaigns: {
24841
25372
  /** Enrolls or restores a member in every quest of a campaign that requires enrollment. */
24842
- enroll: (input: z.input<typeof memberCampaignEnrollmentInputSchema>, call?: ManagementCallOptions) => Promise<{
25373
+ enroll: (input: CreationInput<z.input<typeof memberCampaignEnrollmentInputSchema>>, call?: ManagementCallOptions) => Promise<{
24843
25374
  campaign: string;
24844
25375
  member: string;
24845
25376
  enrolledAt: number;
@@ -24847,7 +25378,7 @@ declare function managementClient(options: ManagementClientOptions): {
24847
25378
  withdrawalReason: string | null;
24848
25379
  }>;
24849
25380
  /** Pauses a member's new campaign admissions while preserving history and completed work. */
24850
- withdraw: (input: z.input<typeof memberCampaignWithdrawalInputSchema>, call?: ManagementCallOptions) => Promise<{
25381
+ withdraw: (input: CreationInput<z.input<typeof memberCampaignWithdrawalInputSchema>>, call?: ManagementCallOptions) => Promise<{
24851
25382
  campaign: string;
24852
25383
  member: string;
24853
25384
  enrolledAt: number;
@@ -24856,6 +25387,22 @@ declare function managementClient(options: ManagementClientOptions): {
24856
25387
  }>;
24857
25388
  };
24858
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
+ }>;
24859
25406
  /**
24860
25407
  * Each quest's current release, the most recently published first, archived quests
24861
25408
  * included; requires `read` permission.
@@ -25201,7 +25748,7 @@ declare function managementClient(options: ManagementClientOptions): {
25201
25748
  nextCursor: string | null;
25202
25749
  }>;
25203
25750
  /** Requeues a failed balance check with its original durable event identity. Requires review. */
25204
- retryAutomaticScheduling: (input: z.input<typeof automaticSchedulingRetrySchema>, call?: ManagementCallOptions) => Promise<{
25751
+ retryAutomaticScheduling: (input: CreationInput<z.input<typeof automaticSchedulingRetrySchema>>, call?: ManagementCallOptions) => Promise<{
25205
25752
  id: string;
25206
25753
  member: string;
25207
25754
  event: {
@@ -25449,7 +25996,7 @@ declare function managementClient(options: ManagementClientOptions): {
25449
25996
  }[];
25450
25997
  }>;
25451
25998
  /** Confirm the exact preview; changed eligibility requires another preview. Requires review. */
25452
- catchUpAutomatic: (input: z.input<typeof automaticCatchUpConfirmSchema>, call?: ManagementCallOptions) => Promise<{
25999
+ catchUpAutomatic: (input: CreationInput<z.input<typeof automaticCatchUpConfirmSchema>>, call?: ManagementCallOptions) => Promise<{
25453
26000
  items: ({
25454
26001
  attempt: string;
25455
26002
  id: string;
@@ -25536,7 +26083,7 @@ declare function managementClient(options: ManagementClientOptions): {
25536
26083
  * again returns the first enrollment. The member's skips recorded as `not-enrolled` on the
25537
26084
  * quest are decided again.
25538
26085
  */
25539
- enroll: (input: z.input<typeof memberEnrollmentInputSchema>, call?: ManagementCallOptions) => Promise<{
26086
+ enroll: (input: CreationInput<z.input<typeof memberEnrollmentInputSchema>>, call?: ManagementCallOptions) => Promise<{
25540
26087
  quest: string;
25541
26088
  member: string;
25542
26089
  enrolledAt: number;
@@ -25904,4 +26451,4 @@ declare function managementClient(options: ManagementClientOptions): {
25904
26451
  }>;
25905
26452
  };
25906
26453
 
25907
- 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, 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 };