@domino-sdk/relay-cli 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { observationInputSchema, pointLedgerSchema, pointsMutationSchema, referralControlSchema, leaderboardQuerySchema, leaderboardExclusionSchema, leaderboardGroupSchema, projectDeploymentSchema, publishDeploymentSchema, catalogDeploymentSchema, saveQuestDraftSchema, publishQuestDraftSchema, collectionBeginSchema, configurePickupSchema } from '@domino-sdk/relay';
1
+ import { observationInputSchema, pointLedgerSchema, createPointLedgerSchema, pointsMutationSchema, referralControlSchema, leaderboardQuerySchema, leaderboardExclusionSchema, leaderboardGroupSchema, projectDeploymentSchema, publishDeploymentSchema, allocateQuestSchema, catalogDeploymentSchema, saveQuestDraftSchema, publishQuestDraftSchema, collectionBeginSchema, createStockItemSchema, configurePickupSchema } from '@domino-sdk/relay';
2
2
  import { z } from 'zod';
3
3
 
4
4
  declare const appRoutingSchema: z.ZodDefault<z.ZodEnum<{
@@ -430,7 +430,7 @@ declare const projectSchema: z.ZodObject<{
430
430
  }, z.core.$strip>;
431
431
  type Project = z.infer<typeof projectSchema>;
432
432
  declare const projectInputSchema: z.ZodObject<{
433
- project: z.ZodString;
433
+ actionId: z.ZodString;
434
434
  name: z.ZodString;
435
435
  setup: z.ZodOptional<z.ZodObject<{
436
436
  mode: z.ZodEnum<{
@@ -586,6 +586,7 @@ declare const readinessSchema: z.ZodObject<{
586
586
  }, z.core.$strip>;
587
587
  declare const inventorySchema: z.ZodObject<{
588
588
  item: z.ZodString;
589
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
589
590
  available: z.ZodNumber;
590
591
  reserved: z.ZodNumber;
591
592
  allocated: z.ZodDefault<z.ZodNumber>;
@@ -642,6 +643,9 @@ declare const pageSchema: z.ZodObject<{
642
643
  kind: z.ZodLiteral<"resource">;
643
644
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
644
645
  source: z.ZodUnion<readonly [z.ZodObject<{
646
+ provider: z.ZodLiteral<"domino">;
647
+ resource: z.ZodLiteral<"point-ledger">;
648
+ }, z.core.$strict>, z.ZodObject<{
645
649
  provider: z.ZodLiteral<"discord">;
646
650
  resource: z.ZodLiteral<"channel">;
647
651
  types: z.ZodArray<z.ZodEnum<{
@@ -778,6 +782,7 @@ declare const pageSchema: z.ZodObject<{
778
782
  balance: z.ZodString;
779
783
  }, z.core.$strict>]>;
780
784
  }, z.core.$strict>>>;
785
+ key: z.ZodOptional<z.ZodString>;
781
786
  code: z.ZodString;
782
787
  provider: z.ZodEnum<{
783
788
  "fixture-pass": "fixture-pass";
@@ -899,6 +904,9 @@ declare const pageSchema: z.ZodObject<{
899
904
  kind: "resource";
900
905
  default: string;
901
906
  source: {
907
+ provider: "domino";
908
+ resource: "point-ledger";
909
+ } | {
902
910
  provider: "discord";
903
911
  resource: "channel";
904
912
  types: ("text" | "announcement")[];
@@ -1022,6 +1030,7 @@ declare const pageSchema: z.ZodObject<{
1022
1030
  createdAt: number;
1023
1031
  legacy: boolean;
1024
1032
  lifecycle: "active" | "paused" | "archived";
1033
+ key?: string | undefined;
1025
1034
  origin?: {
1026
1035
  typeVersion: string;
1027
1036
  } | undefined;
@@ -1282,6 +1291,7 @@ declare const pageSchema: z.ZodObject<{
1282
1291
  limit: z.ZodNumber;
1283
1292
  inventory: z.ZodArray<z.ZodObject<{
1284
1293
  item: z.ZodString;
1294
+ name: z.ZodDefault<z.ZodNullable<z.ZodString>>;
1285
1295
  available: z.ZodNumber;
1286
1296
  reserved: z.ZodNumber;
1287
1297
  allocated: z.ZodDefault<z.ZodNumber>;
@@ -1348,6 +1358,9 @@ declare const memberDetailSchema: z.ZodObject<{
1348
1358
  kind: z.ZodLiteral<"resource">;
1349
1359
  default: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
1350
1360
  source: z.ZodUnion<readonly [z.ZodObject<{
1361
+ provider: z.ZodLiteral<"domino">;
1362
+ resource: z.ZodLiteral<"point-ledger">;
1363
+ }, z.core.$strict>, z.ZodObject<{
1351
1364
  provider: z.ZodLiteral<"discord">;
1352
1365
  resource: z.ZodLiteral<"channel">;
1353
1366
  types: z.ZodArray<z.ZodEnum<{
@@ -1484,6 +1497,7 @@ declare const memberDetailSchema: z.ZodObject<{
1484
1497
  balance: z.ZodString;
1485
1498
  }, z.core.$strict>]>;
1486
1499
  }, z.core.$strict>>>;
1500
+ key: z.ZodOptional<z.ZodString>;
1487
1501
  code: z.ZodString;
1488
1502
  provider: z.ZodEnum<{
1489
1503
  "fixture-pass": "fixture-pass";
@@ -1605,6 +1619,9 @@ declare const memberDetailSchema: z.ZodObject<{
1605
1619
  kind: "resource";
1606
1620
  default: string;
1607
1621
  source: {
1622
+ provider: "domino";
1623
+ resource: "point-ledger";
1624
+ } | {
1608
1625
  provider: "discord";
1609
1626
  resource: "channel";
1610
1627
  types: ("text" | "announcement")[];
@@ -1728,6 +1745,7 @@ declare const memberDetailSchema: z.ZodObject<{
1728
1745
  createdAt: number;
1729
1746
  legacy: boolean;
1730
1747
  lifecycle: "active" | "paused" | "archived";
1748
+ key?: string | undefined;
1731
1749
  origin?: {
1732
1750
  typeVersion: string;
1733
1751
  } | undefined;
@@ -1964,6 +1982,7 @@ declare const memberDetailSchema: z.ZodObject<{
1964
1982
  member: z.ZodString;
1965
1983
  quests: z.ZodArray<z.ZodObject<{
1966
1984
  quest: z.ZodString;
1985
+ key: z.ZodOptional<z.ZodString>;
1967
1986
  release: z.ZodOptional<z.ZodString>;
1968
1987
  title: z.ZodString;
1969
1988
  presentation: z.ZodDefault<z.ZodObject<{
@@ -2262,6 +2281,16 @@ declare const tokenSchema: z.ZodObject<{
2262
2281
  }>>;
2263
2282
  expiresAt: z.ZodNumber;
2264
2283
  }, z.core.$strip>;
2284
+ type CreationInput<T extends {
2285
+ actionId: string;
2286
+ }> = Omit<T, "actionId"> & {
2287
+ actionId?: string;
2288
+ };
2289
+ /** Reuse actionId with the same input to recover an uncertain creation result. */
2290
+ declare class CreationError extends Error {
2291
+ readonly actionId: string;
2292
+ constructor(message: string, actionId: string, cause: unknown);
2293
+ }
2265
2294
  declare function createManagementClient(options: {
2266
2295
  baseUrl: string;
2267
2296
  getToken?: () => Promise<string | null>;
@@ -2281,17 +2310,27 @@ declare function createManagementClient(options: {
2281
2310
  };
2282
2311
  pointLedgers: {
2283
2312
  list: () => Promise<{
2284
- id: string;
2285
2313
  name: string;
2286
2314
  description: string;
2315
+ id: string;
2287
2316
  }[]>;
2288
2317
  save: (input: z.input<typeof pointLedgerSchema>) => Promise<{
2289
- id: string;
2290
2318
  name: string;
2291
2319
  description: string;
2320
+ id: string;
2292
2321
  }>;
2293
2322
  };
2294
2323
  points: {
2324
+ ledgers: () => Promise<{
2325
+ name: string;
2326
+ description: string;
2327
+ id: string;
2328
+ }[]>;
2329
+ createLedger: (input: CreationInput<z.input<typeof createPointLedgerSchema>>) => Promise<{
2330
+ name: string;
2331
+ description: string;
2332
+ id: string;
2333
+ }>;
2295
2334
  update: (input: z.input<typeof pointsMutationSchema>) => Promise<{
2296
2335
  entry: {
2297
2336
  id: string;
@@ -2440,6 +2479,7 @@ declare function createManagementClient(options: {
2440
2479
  durationDays?: number | undefined;
2441
2480
  maxPoints?: number | undefined;
2442
2481
  }[];
2482
+ key?: string | undefined;
2443
2483
  inviterGroup?: string | undefined;
2444
2484
  };
2445
2485
  publishedAt: number;
@@ -2525,6 +2565,7 @@ declare function createManagementClient(options: {
2525
2565
  };
2526
2566
  };
2527
2567
  access: "participants" | "public";
2568
+ key?: string | undefined;
2528
2569
  group?: string | undefined;
2529
2570
  };
2530
2571
  publishedAt: number;
@@ -2608,6 +2649,7 @@ declare function createManagementClient(options: {
2608
2649
  };
2609
2650
  };
2610
2651
  access: "participants" | "public";
2652
+ key?: string | undefined;
2611
2653
  group?: string | undefined;
2612
2654
  };
2613
2655
  publishedAt: number;
@@ -2627,6 +2669,11 @@ declare function createManagementClient(options: {
2627
2669
  preview: (input: z.input<typeof projectDeploymentSchema>) => Promise<{
2628
2670
  id: string;
2629
2671
  baseRevision: number;
2672
+ pointLedgers: {
2673
+ name: string;
2674
+ description: string;
2675
+ id: string;
2676
+ }[];
2630
2677
  releases: ({
2631
2678
  quest: string;
2632
2679
  runtimeVersion: 2 | 1;
@@ -2669,6 +2716,9 @@ declare function createManagementClient(options: {
2669
2716
  provider: "discord";
2670
2717
  resource: "channel";
2671
2718
  types: ("text" | "announcement")[];
2719
+ } | {
2720
+ provider: "domino";
2721
+ resource: "point-ledger";
2672
2722
  } | {
2673
2723
  provider: "discord";
2674
2724
  resource: "role";
@@ -2777,7 +2827,7 @@ declare function createManagementClient(options: {
2777
2827
  budgets: {
2778
2828
  id: string;
2779
2829
  scope: "project" | "member";
2780
- period: "day" | "lifetime";
2830
+ period: "lifetime" | "day";
2781
2831
  limit: number;
2782
2832
  cost: number | {
2783
2833
  balance: string;
@@ -2789,6 +2839,7 @@ declare function createManagementClient(options: {
2789
2839
  createdAt: number;
2790
2840
  legacy: boolean;
2791
2841
  lifecycle: "active" | "paused" | "archived";
2842
+ key?: string | undefined;
2792
2843
  origin?: {
2793
2844
  typeVersion: string;
2794
2845
  } | undefined;
@@ -2852,6 +2903,9 @@ declare function createManagementClient(options: {
2852
2903
  kind: "resource";
2853
2904
  default: string;
2854
2905
  source: {
2906
+ provider: "domino";
2907
+ resource: "point-ledger";
2908
+ } | {
2855
2909
  provider: "discord";
2856
2910
  resource: "channel";
2857
2911
  types: ("text" | "announcement")[];
@@ -2975,6 +3029,7 @@ declare function createManagementClient(options: {
2975
3029
  createdAt: number;
2976
3030
  legacy: boolean;
2977
3031
  lifecycle: "paused" | "active" | "archived";
3032
+ key?: string | undefined;
2978
3033
  origin?: {
2979
3034
  typeVersion: string;
2980
3035
  } | undefined;
@@ -3043,6 +3098,9 @@ declare function createManagementClient(options: {
3043
3098
  kind: "resource";
3044
3099
  default: string;
3045
3100
  source: {
3101
+ provider: "domino";
3102
+ resource: "point-ledger";
3103
+ } | {
3046
3104
  provider: "discord";
3047
3105
  resource: "channel";
3048
3106
  types: ("text" | "announcement")[];
@@ -3163,11 +3221,13 @@ declare function createManagementClient(options: {
3163
3221
  };
3164
3222
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
3165
3223
  createdAt: number;
3224
+ key?: string | undefined;
3166
3225
  }[];
3167
3226
  collections: {
3168
3227
  id: string;
3169
3228
  title: string;
3170
3229
  quests: string[];
3230
+ key?: string | undefined;
3171
3231
  }[];
3172
3232
  supportedInteractions: ("staff" | "quiz" | "photo" | "automatic" | "claim")[];
3173
3233
  referrals: {
@@ -3265,6 +3325,7 @@ declare function createManagementClient(options: {
3265
3325
  durationDays?: number | undefined;
3266
3326
  maxPoints?: number | undefined;
3267
3327
  }[];
3328
+ key?: string | undefined;
3268
3329
  inviterGroup?: string | undefined;
3269
3330
  };
3270
3331
  publishedAt: number;
@@ -3314,6 +3375,7 @@ declare function createManagementClient(options: {
3314
3375
  };
3315
3376
  };
3316
3377
  access: "participants" | "public";
3378
+ key?: string | undefined;
3317
3379
  group?: string | undefined;
3318
3380
  };
3319
3381
  publishedAt: number;
@@ -3394,6 +3456,11 @@ declare function createManagementClient(options: {
3394
3456
  publish: (input: z.input<typeof publishDeploymentSchema>) => Promise<{
3395
3457
  id: string;
3396
3458
  baseRevision: number;
3459
+ pointLedgers: {
3460
+ name: string;
3461
+ description: string;
3462
+ id: string;
3463
+ }[];
3397
3464
  releases: ({
3398
3465
  quest: string;
3399
3466
  runtimeVersion: 2 | 1;
@@ -3436,6 +3503,9 @@ declare function createManagementClient(options: {
3436
3503
  provider: "discord";
3437
3504
  resource: "channel";
3438
3505
  types: ("text" | "announcement")[];
3506
+ } | {
3507
+ provider: "domino";
3508
+ resource: "point-ledger";
3439
3509
  } | {
3440
3510
  provider: "discord";
3441
3511
  resource: "role";
@@ -3544,7 +3614,7 @@ declare function createManagementClient(options: {
3544
3614
  budgets: {
3545
3615
  id: string;
3546
3616
  scope: "project" | "member";
3547
- period: "day" | "lifetime";
3617
+ period: "lifetime" | "day";
3548
3618
  limit: number;
3549
3619
  cost: number | {
3550
3620
  balance: string;
@@ -3556,6 +3626,7 @@ declare function createManagementClient(options: {
3556
3626
  createdAt: number;
3557
3627
  legacy: boolean;
3558
3628
  lifecycle: "active" | "paused" | "archived";
3629
+ key?: string | undefined;
3559
3630
  origin?: {
3560
3631
  typeVersion: string;
3561
3632
  } | undefined;
@@ -3619,6 +3690,9 @@ declare function createManagementClient(options: {
3619
3690
  kind: "resource";
3620
3691
  default: string;
3621
3692
  source: {
3693
+ provider: "domino";
3694
+ resource: "point-ledger";
3695
+ } | {
3622
3696
  provider: "discord";
3623
3697
  resource: "channel";
3624
3698
  types: ("text" | "announcement")[];
@@ -3742,6 +3816,7 @@ declare function createManagementClient(options: {
3742
3816
  createdAt: number;
3743
3817
  legacy: boolean;
3744
3818
  lifecycle: "paused" | "active" | "archived";
3819
+ key?: string | undefined;
3745
3820
  origin?: {
3746
3821
  typeVersion: string;
3747
3822
  } | undefined;
@@ -3810,6 +3885,9 @@ declare function createManagementClient(options: {
3810
3885
  kind: "resource";
3811
3886
  default: string;
3812
3887
  source: {
3888
+ provider: "domino";
3889
+ resource: "point-ledger";
3890
+ } | {
3813
3891
  provider: "discord";
3814
3892
  resource: "channel";
3815
3893
  types: ("text" | "announcement")[];
@@ -3930,11 +4008,13 @@ declare function createManagementClient(options: {
3930
4008
  };
3931
4009
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
3932
4010
  createdAt: number;
4011
+ key?: string | undefined;
3933
4012
  }[];
3934
4013
  collections: {
3935
4014
  id: string;
3936
4015
  title: string;
3937
4016
  quests: string[];
4017
+ key?: string | undefined;
3938
4018
  }[];
3939
4019
  supportedInteractions: ("staff" | "quiz" | "photo" | "automatic" | "claim")[];
3940
4020
  referrals: {
@@ -4032,6 +4112,7 @@ declare function createManagementClient(options: {
4032
4112
  durationDays?: number | undefined;
4033
4113
  maxPoints?: number | undefined;
4034
4114
  }[];
4115
+ key?: string | undefined;
4035
4116
  inviterGroup?: string | undefined;
4036
4117
  };
4037
4118
  publishedAt: number;
@@ -4081,6 +4162,7 @@ declare function createManagementClient(options: {
4081
4162
  };
4082
4163
  };
4083
4164
  access: "participants" | "public";
4165
+ key?: string | undefined;
4084
4166
  group?: string | undefined;
4085
4167
  };
4086
4168
  publishedAt: number;
@@ -4161,6 +4243,9 @@ declare function createManagementClient(options: {
4161
4243
  }>;
4162
4244
  };
4163
4245
  catalog: {
4246
+ allocateQuest: (input?: CreationInput<z.input<typeof allocateQuestSchema>>) => Promise<{
4247
+ id: string;
4248
+ }>;
4164
4249
  read: () => Promise<{
4165
4250
  revision: number;
4166
4251
  types: {
@@ -4206,6 +4291,9 @@ declare function createManagementClient(options: {
4206
4291
  kind: "resource";
4207
4292
  default: string;
4208
4293
  source: {
4294
+ provider: "domino";
4295
+ resource: "point-ledger";
4296
+ } | {
4209
4297
  provider: "discord";
4210
4298
  resource: "channel";
4211
4299
  types: ("text" | "announcement")[];
@@ -4326,11 +4414,13 @@ declare function createManagementClient(options: {
4326
4414
  };
4327
4415
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
4328
4416
  createdAt: number;
4417
+ key?: string | undefined;
4329
4418
  }[];
4330
4419
  collections: {
4331
4420
  id: string;
4332
4421
  title: string;
4333
4422
  quests: string[];
4423
+ key?: string | undefined;
4334
4424
  }[];
4335
4425
  quests: {
4336
4426
  id: string;
@@ -4374,6 +4464,7 @@ declare function createManagementClient(options: {
4374
4464
  id: string;
4375
4465
  title: string;
4376
4466
  quests: string[];
4467
+ key?: string | undefined;
4377
4468
  }[];
4378
4469
  };
4379
4470
  status: "draft";
@@ -4403,6 +4494,7 @@ declare function createManagementClient(options: {
4403
4494
  id: string;
4404
4495
  title: string;
4405
4496
  quests: string[];
4497
+ key?: string | undefined;
4406
4498
  }[];
4407
4499
  };
4408
4500
  status: "published";
@@ -4450,6 +4542,9 @@ declare function createManagementClient(options: {
4450
4542
  provider: "discord";
4451
4543
  resource: "channel";
4452
4544
  types: ("text" | "announcement")[];
4545
+ } | {
4546
+ provider: "domino";
4547
+ resource: "point-ledger";
4453
4548
  } | {
4454
4549
  provider: "discord";
4455
4550
  resource: "role";
@@ -4558,7 +4653,7 @@ declare function createManagementClient(options: {
4558
4653
  budgets: {
4559
4654
  id: string;
4560
4655
  scope: "project" | "member";
4561
- period: "day" | "lifetime";
4656
+ period: "lifetime" | "day";
4562
4657
  limit: number;
4563
4658
  cost: number | {
4564
4659
  balance: string;
@@ -4570,6 +4665,7 @@ declare function createManagementClient(options: {
4570
4665
  createdAt: number;
4571
4666
  legacy: boolean;
4572
4667
  lifecycle: "active" | "paused" | "archived";
4668
+ key?: string | undefined;
4573
4669
  origin?: {
4574
4670
  typeVersion: string;
4575
4671
  } | undefined;
@@ -4633,6 +4729,9 @@ declare function createManagementClient(options: {
4633
4729
  kind: "resource";
4634
4730
  default: string;
4635
4731
  source: {
4732
+ provider: "domino";
4733
+ resource: "point-ledger";
4734
+ } | {
4636
4735
  provider: "discord";
4637
4736
  resource: "channel";
4638
4737
  types: ("text" | "announcement")[];
@@ -4756,6 +4855,7 @@ declare function createManagementClient(options: {
4756
4855
  createdAt: number;
4757
4856
  legacy: boolean;
4758
4857
  lifecycle: "paused" | "active" | "archived";
4858
+ key?: string | undefined;
4759
4859
  origin?: {
4760
4860
  typeVersion: string;
4761
4861
  } | undefined;
@@ -4828,6 +4928,9 @@ declare function createManagementClient(options: {
4828
4928
  kind: "resource";
4829
4929
  default: string;
4830
4930
  source: {
4931
+ provider: "domino";
4932
+ resource: "point-ledger";
4933
+ } | {
4831
4934
  provider: "discord";
4832
4935
  resource: "channel";
4833
4936
  types: ("text" | "announcement")[];
@@ -4948,10 +5051,12 @@ declare function createManagementClient(options: {
4948
5051
  };
4949
5052
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
4950
5053
  createdAt: number;
5054
+ key?: string | undefined;
4951
5055
  }[];
4952
5056
  collections: {
4953
5057
  id: string;
4954
5058
  title: string;
5059
+ key?: string | undefined;
4955
5060
  }[];
4956
5061
  supportedInteractions: ("staff" | "quiz" | "photo" | "automatic" | "claim")[];
4957
5062
  }>;
@@ -5000,6 +5105,9 @@ declare function createManagementClient(options: {
5000
5105
  kind: "resource";
5001
5106
  default: string;
5002
5107
  source: {
5108
+ provider: "domino";
5109
+ resource: "point-ledger";
5110
+ } | {
5003
5111
  provider: "discord";
5004
5112
  resource: "channel";
5005
5113
  types: ("text" | "announcement")[];
@@ -5120,11 +5228,13 @@ declare function createManagementClient(options: {
5120
5228
  };
5121
5229
  provider: "fixture-pass" | "fixture-fail" | "fixture-unclear" | "fixture-error" | "workers-ai";
5122
5230
  createdAt: number;
5231
+ key?: string | undefined;
5123
5232
  }[];
5124
5233
  collections: {
5125
5234
  id: string;
5126
5235
  title: string;
5127
5236
  quests: string[];
5237
+ key?: string | undefined;
5128
5238
  }[];
5129
5239
  quests: {
5130
5240
  id: string;
@@ -5168,6 +5278,7 @@ declare function createManagementClient(options: {
5168
5278
  id: string;
5169
5279
  title: string;
5170
5280
  quests: string[];
5281
+ key?: string | undefined;
5171
5282
  }[];
5172
5283
  };
5173
5284
  status: "draft";
@@ -5197,6 +5308,7 @@ declare function createManagementClient(options: {
5197
5308
  id: string;
5198
5309
  title: string;
5199
5310
  quests: string[];
5311
+ key?: string | undefined;
5200
5312
  }[];
5201
5313
  };
5202
5314
  status: "published";
@@ -5244,6 +5356,9 @@ declare function createManagementClient(options: {
5244
5356
  provider: "discord";
5245
5357
  resource: "channel";
5246
5358
  types: ("text" | "announcement")[];
5359
+ } | {
5360
+ provider: "domino";
5361
+ resource: "point-ledger";
5247
5362
  } | {
5248
5363
  provider: "discord";
5249
5364
  resource: "role";
@@ -5352,7 +5467,7 @@ declare function createManagementClient(options: {
5352
5467
  budgets: {
5353
5468
  id: string;
5354
5469
  scope: "project" | "member";
5355
- period: "day" | "lifetime";
5470
+ period: "lifetime" | "day";
5356
5471
  limit: number;
5357
5472
  cost: number | {
5358
5473
  balance: string;
@@ -5364,6 +5479,7 @@ declare function createManagementClient(options: {
5364
5479
  createdAt: number;
5365
5480
  legacy: boolean;
5366
5481
  lifecycle: "active" | "paused" | "archived";
5482
+ key?: string | undefined;
5367
5483
  origin?: {
5368
5484
  typeVersion: string;
5369
5485
  } | undefined;
@@ -5427,6 +5543,9 @@ declare function createManagementClient(options: {
5427
5543
  kind: "resource";
5428
5544
  default: string;
5429
5545
  source: {
5546
+ provider: "domino";
5547
+ resource: "point-ledger";
5548
+ } | {
5430
5549
  provider: "discord";
5431
5550
  resource: "channel";
5432
5551
  types: ("text" | "announcement")[];
@@ -5550,6 +5669,7 @@ declare function createManagementClient(options: {
5550
5669
  createdAt: number;
5551
5670
  legacy: boolean;
5552
5671
  lifecycle: "paused" | "active" | "archived";
5672
+ key?: string | undefined;
5553
5673
  origin?: {
5554
5674
  typeVersion: string;
5555
5675
  } | undefined;
@@ -5603,6 +5723,7 @@ declare function createManagementClient(options: {
5603
5723
  id: string;
5604
5724
  title: string;
5605
5725
  quests: string[];
5726
+ key?: string | undefined;
5606
5727
  }[];
5607
5728
  };
5608
5729
  status: "draft";
@@ -5632,6 +5753,7 @@ declare function createManagementClient(options: {
5632
5753
  id: string;
5633
5754
  title: string;
5634
5755
  quests: string[];
5756
+ key?: string | undefined;
5635
5757
  }[];
5636
5758
  };
5637
5759
  status: "published";
@@ -5664,6 +5786,7 @@ declare function createManagementClient(options: {
5664
5786
  id: string;
5665
5787
  title: string;
5666
5788
  quests: string[];
5789
+ key?: string | undefined;
5667
5790
  }[];
5668
5791
  };
5669
5792
  status: "draft";
@@ -5693,6 +5816,7 @@ declare function createManagementClient(options: {
5693
5816
  id: string;
5694
5817
  title: string;
5695
5818
  quests: string[];
5819
+ key?: string | undefined;
5696
5820
  }[];
5697
5821
  };
5698
5822
  status: "published";
@@ -5740,6 +5864,9 @@ declare function createManagementClient(options: {
5740
5864
  provider: "discord";
5741
5865
  resource: "channel";
5742
5866
  types: ("text" | "announcement")[];
5867
+ } | {
5868
+ provider: "domino";
5869
+ resource: "point-ledger";
5743
5870
  } | {
5744
5871
  provider: "discord";
5745
5872
  resource: "role";
@@ -5848,7 +5975,7 @@ declare function createManagementClient(options: {
5848
5975
  budgets: {
5849
5976
  id: string;
5850
5977
  scope: "project" | "member";
5851
- period: "day" | "lifetime";
5978
+ period: "lifetime" | "day";
5852
5979
  limit: number;
5853
5980
  cost: number | {
5854
5981
  balance: string;
@@ -5860,6 +5987,7 @@ declare function createManagementClient(options: {
5860
5987
  createdAt: number;
5861
5988
  legacy: boolean;
5862
5989
  lifecycle: "active" | "paused" | "archived";
5990
+ key?: string | undefined;
5863
5991
  origin?: {
5864
5992
  typeVersion: string;
5865
5993
  } | undefined;
@@ -5923,6 +6051,9 @@ declare function createManagementClient(options: {
5923
6051
  kind: "resource";
5924
6052
  default: string;
5925
6053
  source: {
6054
+ provider: "domino";
6055
+ resource: "point-ledger";
6056
+ } | {
5926
6057
  provider: "discord";
5927
6058
  resource: "channel";
5928
6059
  types: ("text" | "announcement")[];
@@ -6046,6 +6177,7 @@ declare function createManagementClient(options: {
6046
6177
  createdAt: number;
6047
6178
  legacy: boolean;
6048
6179
  lifecycle: "paused" | "active" | "archived";
6180
+ key?: string | undefined;
6049
6181
  origin?: {
6050
6182
  typeVersion: string;
6051
6183
  } | undefined;
@@ -6075,6 +6207,7 @@ declare function createManagementClient(options: {
6075
6207
  id: string;
6076
6208
  title: string;
6077
6209
  quests: string[];
6210
+ key?: string | undefined;
6078
6211
  }[];
6079
6212
  }>;
6080
6213
  publish: (input: z.input<typeof publishQuestDraftSchema>) => Promise<{
@@ -6104,6 +6237,7 @@ declare function createManagementClient(options: {
6104
6237
  id: string;
6105
6238
  title: string;
6106
6239
  quests: string[];
6240
+ key?: string | undefined;
6107
6241
  }[];
6108
6242
  };
6109
6243
  status: "draft";
@@ -6133,6 +6267,7 @@ declare function createManagementClient(options: {
6133
6267
  id: string;
6134
6268
  title: string;
6135
6269
  quests: string[];
6270
+ key?: string | undefined;
6136
6271
  }[];
6137
6272
  };
6138
6273
  status: "published";
@@ -6180,6 +6315,9 @@ declare function createManagementClient(options: {
6180
6315
  provider: "discord";
6181
6316
  resource: "channel";
6182
6317
  types: ("text" | "announcement")[];
6318
+ } | {
6319
+ provider: "domino";
6320
+ resource: "point-ledger";
6183
6321
  } | {
6184
6322
  provider: "discord";
6185
6323
  resource: "role";
@@ -6288,7 +6426,7 @@ declare function createManagementClient(options: {
6288
6426
  budgets: {
6289
6427
  id: string;
6290
6428
  scope: "project" | "member";
6291
- period: "day" | "lifetime";
6429
+ period: "lifetime" | "day";
6292
6430
  limit: number;
6293
6431
  cost: number | {
6294
6432
  balance: string;
@@ -6300,6 +6438,7 @@ declare function createManagementClient(options: {
6300
6438
  createdAt: number;
6301
6439
  legacy: boolean;
6302
6440
  lifecycle: "active" | "paused" | "archived";
6441
+ key?: string | undefined;
6303
6442
  origin?: {
6304
6443
  typeVersion: string;
6305
6444
  } | undefined;
@@ -6363,6 +6502,9 @@ declare function createManagementClient(options: {
6363
6502
  kind: "resource";
6364
6503
  default: string;
6365
6504
  source: {
6505
+ provider: "domino";
6506
+ resource: "point-ledger";
6507
+ } | {
6366
6508
  provider: "discord";
6367
6509
  resource: "channel";
6368
6510
  types: ("text" | "announcement")[];
@@ -6486,6 +6628,7 @@ declare function createManagementClient(options: {
6486
6628
  createdAt: number;
6487
6629
  legacy: boolean;
6488
6630
  lifecycle: "paused" | "active" | "archived";
6631
+ key?: string | undefined;
6489
6632
  origin?: {
6490
6633
  typeVersion: string;
6491
6634
  } | undefined;
@@ -6515,6 +6658,7 @@ declare function createManagementClient(options: {
6515
6658
  id: string;
6516
6659
  title: string;
6517
6660
  quests: string[];
6661
+ key?: string | undefined;
6518
6662
  }[];
6519
6663
  }>;
6520
6664
  };
@@ -6689,6 +6833,10 @@ declare function createManagementClient(options: {
6689
6833
  }>;
6690
6834
  };
6691
6835
  inventory: {
6836
+ createItem: (input: CreationInput<z.input<typeof createStockItemSchema>>) => Promise<{
6837
+ id: string;
6838
+ name: string;
6839
+ }>;
6692
6840
  catalog: () => Promise<{
6693
6841
  reward: {
6694
6842
  id: string;
@@ -6789,7 +6937,7 @@ declare function createManagementClient(options: {
6789
6937
  } | undefined;
6790
6938
  }[];
6791
6939
  }>;
6792
- createProject: (input: z.infer<typeof projectInputSchema>) => Promise<{
6940
+ createProject: (input: CreationInput<z.input<typeof projectInputSchema>>) => Promise<{
6793
6941
  slug: string;
6794
6942
  id: string;
6795
6943
  organization: string;
@@ -6862,6 +7010,9 @@ declare function createManagementClient(options: {
6862
7010
  kind: "resource";
6863
7011
  default: string;
6864
7012
  source: {
7013
+ provider: "domino";
7014
+ resource: "point-ledger";
7015
+ } | {
6865
7016
  provider: "discord";
6866
7017
  resource: "channel";
6867
7018
  types: ("text" | "announcement")[];
@@ -6985,6 +7136,7 @@ declare function createManagementClient(options: {
6985
7136
  createdAt: number;
6986
7137
  legacy: boolean;
6987
7138
  lifecycle: "active" | "paused" | "archived";
7139
+ key?: string | undefined;
6988
7140
  origin?: {
6989
7141
  typeVersion: string;
6990
7142
  } | undefined;
@@ -7048,6 +7200,9 @@ declare function createManagementClient(options: {
7048
7200
  kind: "resource";
7049
7201
  default: string;
7050
7202
  source: {
7203
+ provider: "domino";
7204
+ resource: "point-ledger";
7205
+ } | {
7051
7206
  provider: "discord";
7052
7207
  resource: "channel";
7053
7208
  types: ("text" | "announcement")[];
@@ -7171,6 +7326,7 @@ declare function createManagementClient(options: {
7171
7326
  createdAt: number;
7172
7327
  legacy: boolean;
7173
7328
  lifecycle: "paused" | "active" | "archived";
7329
+ key?: string | undefined;
7174
7330
  origin?: {
7175
7331
  typeVersion: string;
7176
7332
  } | undefined;
@@ -7388,6 +7544,7 @@ declare function createManagementClient(options: {
7388
7544
  limit: number;
7389
7545
  inventory: {
7390
7546
  item: string;
7547
+ name: string | null;
7391
7548
  available: number;
7392
7549
  reserved: number;
7393
7550
  allocated: number;
@@ -7468,6 +7625,9 @@ declare function createManagementClient(options: {
7468
7625
  kind: "resource";
7469
7626
  default: string;
7470
7627
  source: {
7628
+ provider: "domino";
7629
+ resource: "point-ledger";
7630
+ } | {
7471
7631
  provider: "discord";
7472
7632
  resource: "channel";
7473
7633
  types: ("text" | "announcement")[];
@@ -7591,6 +7751,7 @@ declare function createManagementClient(options: {
7591
7751
  createdAt: number;
7592
7752
  legacy: boolean;
7593
7753
  lifecycle: "active" | "paused" | "archived";
7754
+ key?: string | undefined;
7594
7755
  origin?: {
7595
7756
  typeVersion: string;
7596
7757
  } | undefined;
@@ -7654,6 +7815,9 @@ declare function createManagementClient(options: {
7654
7815
  kind: "resource";
7655
7816
  default: string;
7656
7817
  source: {
7818
+ provider: "domino";
7819
+ resource: "point-ledger";
7820
+ } | {
7657
7821
  provider: "discord";
7658
7822
  resource: "channel";
7659
7823
  types: ("text" | "announcement")[];
@@ -7777,6 +7941,7 @@ declare function createManagementClient(options: {
7777
7941
  createdAt: number;
7778
7942
  legacy: boolean;
7779
7943
  lifecycle: "paused" | "active" | "archived";
7944
+ key?: string | undefined;
7780
7945
  origin?: {
7781
7946
  typeVersion: string;
7782
7947
  } | undefined;
@@ -8091,6 +8256,7 @@ declare function createManagementClient(options: {
8091
8256
  release?: string | undefined;
8092
8257
  } | undefined;
8093
8258
  } | null;
8259
+ key?: string | undefined;
8094
8260
  release?: string | undefined;
8095
8261
  }[];
8096
8262
  entitlements: ({
@@ -8198,4 +8364,4 @@ declare function createManagementClient(options: {
8198
8364
  }>;
8199
8365
  };
8200
8366
 
8201
- export { type Access, type AuditRecord, type BuildArtifacts, type BuildIdentity, type BuildSnapshot, type BuildStatus, type HostedBuild, type ListQuery, type ManagementPage, type Permission, type Person, type Project, accessSchema, accountProfileSchema, appRoutingSchema, assetPathSchema, auditRecordSchema, buildArtifactsSchema, buildIdentitySchema, buildPhaseSchema, buildSnapshotSchema, buildStatusSchema, commitSchema, createManagementClient, createRepositorySchema, developmentPreflightSchema, deviceApproveSchema, deviceRedeemSchema, deviceStartSchema, environmentSchema, grantSchema, hostedAppSchema, hostedBuildSchema, inventorySchema, memberAccountSchema, memberDetailSchema, memberSchema, metricsSchema, operationInputSchema, operationSchema, pageSchema, permissionSchema, personSchema, projectInputSchema, projectSchema, projectSetupSchema, querySchema, readinessSchema, repositorySchema, rolePermissions, roleSchema, stageRequestSchema, stockInputSchema, tokenInputSchema, tokenSchema };
8367
+ export { type Access, type AuditRecord, type BuildArtifacts, type BuildIdentity, type BuildSnapshot, type BuildStatus, CreationError, type HostedBuild, type ListQuery, type ManagementPage, type Permission, type Person, type Project, accessSchema, accountProfileSchema, appRoutingSchema, assetPathSchema, auditRecordSchema, buildArtifactsSchema, buildIdentitySchema, buildPhaseSchema, buildSnapshotSchema, buildStatusSchema, commitSchema, createManagementClient, createRepositorySchema, developmentPreflightSchema, deviceApproveSchema, deviceRedeemSchema, deviceStartSchema, environmentSchema, grantSchema, hostedAppSchema, hostedBuildSchema, inventorySchema, memberAccountSchema, memberDetailSchema, memberSchema, metricsSchema, operationInputSchema, operationSchema, pageSchema, permissionSchema, personSchema, projectInputSchema, projectSchema, projectSetupSchema, querySchema, readinessSchema, repositorySchema, rolePermissions, roleSchema, stageRequestSchema, stockInputSchema, tokenInputSchema, tokenSchema };