@zoralabs/protocol-sdk 0.7.2-ALLOWLIST.0 → 0.7.3-SPARKS.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 (54) hide show
  1. package/CHANGELOG.md +10 -2
  2. package/dist/apis/http-api-base.d.ts.map +1 -1
  3. package/dist/constants.d.ts +27 -0
  4. package/dist/constants.d.ts.map +1 -1
  5. package/dist/create/1155-create-helper.d.ts +0 -1
  6. package/dist/create/1155-create-helper.d.ts.map +1 -1
  7. package/dist/create/token-setup.d.ts +4 -3
  8. package/dist/create/token-setup.d.ts.map +1 -1
  9. package/dist/create/types.d.ts +4 -24
  10. package/dist/create/types.d.ts.map +1 -1
  11. package/dist/index.cjs +128 -238
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.ts +0 -2
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +130 -240
  16. package/dist/index.js.map +1 -1
  17. package/dist/mint/mint-queries.d.ts +1 -3
  18. package/dist/mint/mint-queries.d.ts.map +1 -1
  19. package/dist/mint/mint-transactions.d.ts +3 -5
  20. package/dist/mint/mint-transactions.d.ts.map +1 -1
  21. package/dist/mint/subgraph-mint-getter.d.ts +2 -1
  22. package/dist/mint/subgraph-mint-getter.d.ts.map +1 -1
  23. package/dist/mint/subgraph-queries.d.ts +14 -27
  24. package/dist/mint/subgraph-queries.d.ts.map +1 -1
  25. package/dist/mint/types.d.ts +11 -22
  26. package/dist/mint/types.d.ts.map +1 -1
  27. package/dist/mints/mints-contracts.d.ts +14 -14
  28. package/dist/mints/mints-relay-example.d.ts +4 -4
  29. package/dist/mints/mints-relay-example.d.ts.map +1 -1
  30. package/dist/premint/premint-client.d.ts +8 -0
  31. package/dist/premint/premint-client.d.ts.map +1 -1
  32. package/package.json +2 -3
  33. package/src/apis/http-api-base.ts +0 -12
  34. package/src/constants.ts +36 -0
  35. package/src/create/1155-create-helper.ts +0 -17
  36. package/src/create/token-setup.ts +19 -116
  37. package/src/create/types.ts +4 -32
  38. package/src/index.ts +0 -4
  39. package/src/mint/mint-queries.ts +0 -6
  40. package/src/mint/mint-transactions.ts +8 -74
  41. package/src/mint/subgraph-mint-getter.ts +41 -17
  42. package/src/mint/subgraph-queries.ts +36 -39
  43. package/src/mint/types.ts +12 -38
  44. package/src/mints/mints-eth-unwrapper-and-caller.ts +2 -2
  45. package/src/mints/mints-relay-example.ts +10 -10
  46. package/dist/allow-list/allow-list-client.d.ts +0 -25
  47. package/dist/allow-list/allow-list-client.d.ts.map +0 -1
  48. package/dist/allow-list/types.d.ts +0 -14
  49. package/dist/allow-list/types.d.ts.map +0 -1
  50. package/dist/apis/generated/allow-list-api-types.d.ts +0 -288
  51. package/dist/apis/generated/allow-list-api-types.d.ts.map +0 -1
  52. package/src/allow-list/allow-list-client.ts +0 -102
  53. package/src/allow-list/types.ts +0 -15
  54. package/src/apis/generated/allow-list-api-types.ts +0 -288
@@ -2,42 +2,26 @@ import { GenericTokenIdTypes } from "src/types";
2
2
  import { Address } from "viem";
3
3
 
4
4
  export type FixedPriceSaleStrategyResult = {
5
- type: "FIXED_PRICE";
6
- fixedPrice: {
7
- address: Address;
8
- pricePerToken: string;
9
- saleEnd: string;
10
- saleStart: string;
11
- maxTokensPerAddress: string;
12
- };
5
+ address: Address;
6
+ pricePerToken: string;
7
+ saleEnd: string;
8
+ saleStart: string;
9
+ maxTokensPerAddress: string;
13
10
  };
14
11
 
15
- export type ERC20SaleStrategyResult = {
16
- type: "ERC_20_MINTER";
17
- erc20Minter: {
18
- address: Address;
19
- pricePerToken: string;
20
- saleEnd: string;
21
- saleStart: string;
22
- maxTokensPerAddress: string;
23
- currency: Address;
24
- };
25
- };
26
-
27
- export type PresaleSalesStrategyResult = {
28
- type: "PRESALE";
29
- presale: {
30
- address: Address;
31
- presaleStart: string;
32
- presaleEnd: string;
33
- merkleRoot: string;
34
- };
12
+ export type ERC20SaleStrategyResult = FixedPriceSaleStrategyResult & {
13
+ currency: Address;
35
14
  };
36
15
 
37
16
  export type SalesStrategyResult =
38
- | FixedPriceSaleStrategyResult
39
- | ERC20SaleStrategyResult
40
- | PresaleSalesStrategyResult;
17
+ | {
18
+ type: "FIXED_PRICE";
19
+ fixedPrice: FixedPriceSaleStrategyResult;
20
+ }
21
+ | {
22
+ type: "ERC_20_MINTER";
23
+ erc20Minter: ERC20SaleStrategyResult;
24
+ };
41
25
 
42
26
  export type TokenQueryResult = {
43
27
  tokenId?: string;
@@ -75,12 +59,6 @@ fragment SaleStrategy on SalesStrategyConfig {
75
59
  saleStart
76
60
  maxTokensPerAddress
77
61
  }
78
- presale {
79
- address
80
- presaleStart
81
- presaleEnd
82
- merkleRoot
83
- }
84
62
  }`;
85
63
 
86
64
  const TOKEN_FRAGMENT = `
@@ -91,7 +69,7 @@ fragment Token on ZoraCreateToken {
91
69
  totalMinted
92
70
  maxSupply
93
71
  tokenStandard
94
- salesStrategies(where: {type_in: ["FIXED_PRICE", "ERC_20_MINTER", "PRESALE"]}) {
72
+ salesStrategies(where: {type_in: ["FIXED_PRICE", "ERC_20_MINTER"]}) {
95
73
  ...SaleStrategy
96
74
  }
97
75
  contract {
@@ -100,7 +78,7 @@ fragment Token on ZoraCreateToken {
100
78
  contractVersion
101
79
  contractURI
102
80
  name
103
- salesStrategies(where: {type_in: ["FIXED_PRICE", "ERC_20_MINTER", "PRESALE"]}) {
81
+ salesStrategies(where: {type_in: ["FIXED_PRICE", "ERC_20_MINTER"]}) {
104
82
  ...SaleStrategy
105
83
  }
106
84
  }
@@ -139,6 +117,25 @@ query ($id: ID!) {
139
117
  };
140
118
  }
141
119
 
120
+ export function buildGetDefaultMintPriceQuery({}): ISubgraphQuery<
121
+ bigint | undefined
122
+ > {
123
+ return {
124
+ query: `
125
+ {
126
+ defaultMintPrice(id: "0x0000000000000000000000000000000000000000") {
127
+ pricePerToken
128
+ }
129
+ }
130
+ `,
131
+ variables: {},
132
+ parseResponseData: (responseData: any | undefined) =>
133
+ responseData?.defaultMintPrice?.pricePerToken
134
+ ? BigInt(responseData?.defaultMintPrice?.pricePerToken)
135
+ : undefined,
136
+ };
137
+ }
138
+
142
139
  export function buildContractTokensQuery({
143
140
  tokenAddress,
144
141
  }: {
package/src/mint/types.ts CHANGED
@@ -3,7 +3,6 @@ import {
3
3
  GenericTokenIdTypes,
4
4
  SimulateContractParametersWithAccount,
5
5
  } from "src/types";
6
- import { AllowListEntry } from "src/allow-list/types";
7
6
 
8
7
  export type MintParameters<MintType> = {
9
8
  /** Type of the collection to be minted. */
@@ -26,7 +25,7 @@ export type PremintMintParameters = MintParameters<"premint"> & {
26
25
  uid: number;
27
26
  };
28
27
 
29
- export type MintType = "1155" | "721" | "allowlist" | "premint";
28
+ export type MintType = "1155" | "721" | "premint";
30
29
 
31
30
  export type MintTypes =
32
31
  | Erc1155MintParameters
@@ -64,8 +63,6 @@ export type MintParametersBase = {
64
63
  mintRecipient?: Address;
65
64
  /** If this is a premint, the address to get the first minter reward */
66
65
  firstMinter?: Address;
67
- /** If this is an allow list mint, the info for the allow list entry */
68
- allowListEntry?: AllowListEntry;
69
66
  };
70
67
 
71
68
  export type MakeMintParametersArgumentsBase = MintParametersBase & {
@@ -102,60 +99,40 @@ export type GetMintCostsParameters = {
102
99
  quantityMinted: number | bigint;
103
100
  } & MintTypes;
104
101
 
105
- export type SaleType = "fixedPrice" | "erc20" | "allowlist" | "premint";
102
+ export type SaleType = "fixedPrice" | "erc20" | "premint";
106
103
 
107
104
  type SaleStrategy<T extends SaleType> = {
108
105
  saleType: T;
109
- };
110
-
111
- type PricedSaleStrategy = {
112
106
  pricePerToken: bigint;
113
107
  maxTokensPerAddress: bigint;
114
108
  };
115
109
 
116
- export type StartAndEnd = {
110
+ type FixedPriceSaleStrategy = SaleStrategy<"fixedPrice"> & {
111
+ address: Address;
117
112
  saleStart: string;
118
113
  saleEnd: string;
119
114
  };
120
115
 
121
- type FixedPriceSaleStrategy = SaleStrategy<"fixedPrice"> &
122
- PricedSaleStrategy &
123
- StartAndEnd & {
124
- address: Address;
125
- };
126
-
127
- type ERC20SaleStrategy = SaleStrategy<"erc20"> &
128
- PricedSaleStrategy &
129
- StartAndEnd & {
130
- address: Address;
131
- currency: Address;
132
- };
133
-
134
- type AllowListSaleStrategy = SaleStrategy<"allowlist"> & {
116
+ type ERC20SaleStrategy = SaleStrategy<"erc20"> & {
135
117
  address: Address;
136
118
  saleStart: string;
137
119
  saleEnd: string;
138
- merkleRoot: string;
120
+ currency: Address;
139
121
  };
140
122
 
141
- type PremintSaleStrategy = SaleStrategy<"premint"> &
142
- PricedSaleStrategy & {
143
- duration: bigint;
144
- };
123
+ type PremintSaleStrategy = SaleStrategy<"premint"> & {
124
+ duration: bigint;
125
+ };
145
126
 
146
127
  export type SaleStrategies =
147
128
  | FixedPriceSaleStrategy
148
129
  | ERC20SaleStrategy
149
- | AllowListSaleStrategy
150
130
  | PremintSaleStrategy;
151
131
 
152
- export type OnchainSalesStrategies =
153
- | FixedPriceSaleStrategy
154
- | ERC20SaleStrategy
155
- | AllowListSaleStrategy;
132
+ export type OnchainSalesStrategies = FixedPriceSaleStrategy | ERC20SaleStrategy;
156
133
 
157
134
  export function isErc20SaleStrategy(
158
- salesConfig: SaleStrategies,
135
+ salesConfig: FixedPriceSaleStrategy | ERC20SaleStrategy | PremintSaleStrategy,
159
136
  ): salesConfig is ERC20SaleStrategy {
160
137
  return salesConfig.saleType === "erc20";
161
138
  }
@@ -196,10 +173,7 @@ export type PremintMintable = MintableBase & {
196
173
  };
197
174
 
198
175
  export type OnchainSalesConfigAndTokenInfo = {
199
- salesConfig:
200
- | FixedPriceSaleStrategy
201
- | ERC20SaleStrategy
202
- | AllowListSaleStrategy;
176
+ salesConfig: FixedPriceSaleStrategy | ERC20SaleStrategy;
203
177
  } & OnchainMintable;
204
178
 
205
179
  export type PremintSalesConfigAndTokenInfo = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  iUnwrapAndForwardActionABI,
3
- mintsEthUnwrapperAndCallerAddress,
3
+ sparksEthUnwrapperAndCallerAddress,
4
4
  zoraMints1155Config,
5
5
  } from "@zoralabs/protocol-deployments";
6
6
  import { Account, Address, Hex, encodeFunctionData } from "viem";
@@ -78,6 +78,6 @@ export const unwrapAndForwardEthPermitAndTypedDataDefinition = ({
78
78
  quantities,
79
79
  safeTransferData:
80
80
  safeTransferData || makeCallWithEthSafeTransferData(callWithEth),
81
- to: mintsEthUnwrapperAndCallerAddress[chainId],
81
+ to: sparksEthUnwrapperAndCallerAddress[chainId],
82
82
  nonce,
83
83
  });
@@ -11,8 +11,8 @@ import axios from "axios";
11
11
  import { paths, TransactionStepItem } from "@reservoir0x/relay-sdk";
12
12
  import { PermitSafeTransferBatch } from "./mints-contracts";
13
13
  import {
14
- mintsEthUnwrapperAndCallerABI,
15
- mintsEthUnwrapperAndCallerAddress,
14
+ sparksEthUnwrapperAndCallerABI,
15
+ sparksEthUnwrapperAndCallerAddress,
16
16
  } from "@zoralabs/protocol-deployments";
17
17
  import { makeCallWithEthSafeTransferData } from "./mints-eth-unwrapper-and-caller";
18
18
 
@@ -103,7 +103,7 @@ export const makeAndSignSponsoredRelayCall = async ({
103
103
  walletClient,
104
104
  }: {
105
105
  // the chain to call from (current chain)
106
- originChainId: keyof typeof mintsEthUnwrapperAndCallerAddress;
106
+ originChainId: keyof typeof sparksEthUnwrapperAndCallerAddress;
107
107
  // the chain that the call will be executed on
108
108
  toChainId: number;
109
109
  // the tx to call on the other chain:
@@ -120,7 +120,7 @@ export const makeAndSignSponsoredRelayCall = async ({
120
120
  originChainId,
121
121
  toChainId,
122
122
  tx,
123
- depositingAccount: mintsEthUnwrapperAndCallerAddress[originChainId],
123
+ depositingAccount: sparksEthUnwrapperAndCallerAddress[originChainId],
124
124
  });
125
125
 
126
126
  // build call to forward the relay call to the other chain that will be
@@ -173,7 +173,7 @@ export const validateSponsoredRelayCall = async ({
173
173
  additionalValueToSend: bigint;
174
174
  deadline: bigint;
175
175
  executingAccount: Address;
176
- chainId: keyof typeof mintsEthUnwrapperAndCallerAddress;
176
+ chainId: keyof typeof sparksEthUnwrapperAndCallerAddress;
177
177
  signature: Hex;
178
178
  }) => {
179
179
  const typedData = permitWithAdditionalValueTypedDataDefinition({
@@ -215,7 +215,7 @@ export const validateAndExecuteSponsoredRelayCall = async ({
215
215
  deadline: bigint;
216
216
  // account that is to execute the call, and must have signed the sponsored call
217
217
  executingAccount: Address;
218
- chainId: keyof typeof mintsEthUnwrapperAndCallerAddress;
218
+ chainId: keyof typeof sparksEthUnwrapperAndCallerAddress;
219
219
  // signature of the sponsored call
220
220
  sponsoredCallSignature: Hex;
221
221
  publicClient: PublicClient;
@@ -241,8 +241,8 @@ export const validateAndExecuteSponsoredRelayCall = async ({
241
241
  // value of the mints and sent to the other chain.
242
242
  // any remaining value from the unwrapped MINTs is refunded to the original caller.
243
243
  const simulated = await publicClient.simulateContract({
244
- abi: mintsEthUnwrapperAndCallerABI,
245
- address: mintsEthUnwrapperAndCallerAddress[chainId],
244
+ abi: sparksEthUnwrapperAndCallerABI,
245
+ address: sparksEthUnwrapperAndCallerAddress[chainId],
246
246
  functionName: "permitWithAdditionalValue",
247
247
  args: [permit, permitSignature],
248
248
  account: executingAccount,
@@ -278,7 +278,7 @@ function permitWithAdditionalValueTypedDataDefinition({
278
278
  safeTransferData: Hex;
279
279
  additionalValueToSend: bigint;
280
280
  deadline: bigint;
281
- chainId: keyof typeof mintsEthUnwrapperAndCallerAddress;
281
+ chainId: keyof typeof sparksEthUnwrapperAndCallerAddress;
282
282
  }) {
283
283
  return makeTypeData({
284
284
  primaryType: "PermitWithAdditionalValue",
@@ -307,7 +307,7 @@ function permitWithAdditionalValueTypedDataDefinition({
307
307
  chainId,
308
308
  name: "Relay",
309
309
  version: "1",
310
- verifyingContract: mintsEthUnwrapperAndCallerAddress[chainId],
310
+ verifyingContract: sparksEthUnwrapperAndCallerAddress[chainId],
311
311
  },
312
312
  });
313
313
  }
@@ -1,25 +0,0 @@
1
- import { IHttpClient } from "src/apis/http-api-base";
2
- import { AllowList } from "./types";
3
- export declare const createAllowList: ({ allowList, httpClient, }: {
4
- allowList: AllowList;
5
- httpClient?: IHttpClient | undefined;
6
- baseUrl?: string | undefined;
7
- }) => Promise<string>;
8
- export declare const getAllowListEntry: ({ merkleRoot, address, httpClient, }: {
9
- merkleRoot: string;
10
- httpClient?: IHttpClient | undefined;
11
- address: string;
12
- }) => Promise<{
13
- accessAllowed: number | undefined;
14
- allowListEntry: {
15
- maxCanMint: number;
16
- price: bigint;
17
- proof: `0x${string}`[];
18
- } | undefined;
19
- }>;
20
- export interface IAllowListClient {
21
- createAllowList: typeof createAllowList;
22
- getAllowListEntry: typeof getAllowListEntry;
23
- }
24
- export declare const defaultAllowListClient: () => IAllowListClient;
25
- //# sourceMappingURL=allow-list-client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"allow-list-client.d.ts","sourceRoot":"","sources":["../../src/allow-list/allow-list-client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EAEZ,MAAM,wBAAwB,CAAC;AAGhC,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAuBpC,eAAO,MAAM,eAAe;eAIf,SAAS;;;qBAmBrB,CAAC;AAQF,eAAO,MAAM,iBAAiB;gBAKhB,MAAM;;aAET,MAAM;;;;;;;;EAwBhB,CAAC;AAEF,MAAM,WAAW,gBAAgB;IAC/B,eAAe,EAAE,OAAO,eAAe,CAAC;IACxC,iBAAiB,EAAE,OAAO,iBAAiB,CAAC;CAC7C;AAED,eAAO,MAAM,sBAAsB,QAAO,gBAGxC,CAAC"}
@@ -1,14 +0,0 @@
1
- import { Address, Hex } from "viem";
2
- export type AllowList = {
3
- entries: {
4
- user: Address;
5
- price: bigint;
6
- maxCanMint: number;
7
- }[];
8
- };
9
- export type AllowListEntry = {
10
- maxCanMint: number;
11
- price: bigint;
12
- proof: Hex[];
13
- };
14
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/allow-list/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAEpC,MAAM,MAAM,SAAS,GAAG;IACtB,OAAO,EAAE;QACP,IAAI,EAAE,OAAO,CAAC;QACd,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;KACpB,EAAE,CAAC;CACL,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,EAAE,CAAC;CACd,CAAC"}
@@ -1,288 +0,0 @@
1
- /**
2
- * This file was auto-generated by openapi-typescript.
3
- * Do not make direct changes to the file.
4
- */
5
- export interface paths {
6
- "/_health": {
7
- parameters: {
8
- query?: never;
9
- header?: never;
10
- path?: never;
11
- cookie?: never;
12
- };
13
- /** Health */
14
- get: operations["health__health_get"];
15
- put?: never;
16
- post?: never;
17
- delete?: never;
18
- options?: never;
19
- head?: never;
20
- patch?: never;
21
- trace?: never;
22
- };
23
- "/allowlist": {
24
- parameters: {
25
- query?: never;
26
- header?: never;
27
- path?: never;
28
- cookie?: never;
29
- };
30
- get?: never;
31
- put?: never;
32
- /**
33
- * Add Allowlist
34
- * @description This route adds a new allowlist
35
- */
36
- post: operations["add_allowlist_allowlist_post"];
37
- delete?: never;
38
- options?: never;
39
- head?: never;
40
- patch?: never;
41
- trace?: never;
42
- };
43
- "/allowed": {
44
- parameters: {
45
- query?: never;
46
- header?: never;
47
- path?: never;
48
- cookie?: never;
49
- };
50
- /** Allowed */
51
- get: operations["allowed_allowed_get"];
52
- put?: never;
53
- post?: never;
54
- delete?: never;
55
- options?: never;
56
- head?: never;
57
- patch?: never;
58
- trace?: never;
59
- };
60
- "/allowlist/{root}": {
61
- parameters: {
62
- query?: never;
63
- header?: never;
64
- path?: never;
65
- cookie?: never;
66
- };
67
- /** Allowlist */
68
- get: operations["allowlist_allowlist__root__get"];
69
- put?: never;
70
- post?: never;
71
- delete?: never;
72
- options?: never;
73
- head?: never;
74
- patch?: never;
75
- trace?: never;
76
- };
77
- "/allowlist/{root}/count": {
78
- parameters: {
79
- query?: never;
80
- header?: never;
81
- path?: never;
82
- cookie?: never;
83
- };
84
- /** Allowlist Count */
85
- get: operations["allowlist_count_allowlist__root__count_get"];
86
- put?: never;
87
- post?: never;
88
- delete?: never;
89
- options?: never;
90
- head?: never;
91
- patch?: never;
92
- trace?: never;
93
- };
94
- }
95
- export type webhooks = Record<string, never>;
96
- export interface components {
97
- schemas: {
98
- /**
99
- * AllowlistEntry
100
- * @description Currently matches zora-nft-drops model
101
- */
102
- AllowlistEntry: {
103
- /** User */
104
- user: string;
105
- /** Price */
106
- price: string;
107
- /** Maxcanmint */
108
- maxCanMint: number;
109
- };
110
- /** AllowlistRequest */
111
- AllowlistRequest: {
112
- /** Entries */
113
- entries: components["schemas"]["AllowlistEntry"][];
114
- /** Contract */
115
- contract?: string;
116
- };
117
- /** HTTPValidationError */
118
- HTTPValidationError: {
119
- /** Detail */
120
- detail?: components["schemas"]["ValidationError"][];
121
- };
122
- /** ValidationError */
123
- ValidationError: {
124
- /** Location */
125
- loc: (string | number)[];
126
- /** Message */
127
- msg: string;
128
- /** Error Type */
129
- type: string;
130
- };
131
- };
132
- responses: never;
133
- parameters: never;
134
- requestBodies: never;
135
- headers: never;
136
- pathItems: never;
137
- }
138
- export type $defs = Record<string, never>;
139
- export interface operations {
140
- health__health_get: {
141
- parameters: {
142
- query?: never;
143
- header?: never;
144
- path?: never;
145
- cookie?: never;
146
- };
147
- requestBody?: never;
148
- responses: {
149
- /** @description Successful Response */
150
- 200: {
151
- headers: {
152
- [name: string]: unknown;
153
- };
154
- content: {
155
- "application/json": unknown;
156
- };
157
- };
158
- };
159
- };
160
- add_allowlist_allowlist_post: {
161
- parameters: {
162
- query?: never;
163
- header?: never;
164
- path?: never;
165
- cookie?: never;
166
- };
167
- requestBody: {
168
- content: {
169
- "application/json": components["schemas"]["AllowlistRequest"];
170
- };
171
- };
172
- responses: {
173
- /** @description Successful Response */
174
- 200: {
175
- headers: {
176
- [name: string]: unknown;
177
- };
178
- content: {
179
- "application/json": unknown;
180
- };
181
- };
182
- /** @description Validation Error */
183
- 422: {
184
- headers: {
185
- [name: string]: unknown;
186
- };
187
- content: {
188
- "application/json": components["schemas"]["HTTPValidationError"];
189
- };
190
- };
191
- };
192
- };
193
- allowed_allowed_get: {
194
- parameters: {
195
- query: {
196
- user: string;
197
- root: string;
198
- };
199
- header?: never;
200
- path?: never;
201
- cookie?: never;
202
- };
203
- requestBody?: never;
204
- responses: {
205
- /** @description Successful Response */
206
- 200: {
207
- headers: {
208
- [name: string]: unknown;
209
- };
210
- content: {
211
- "application/json": unknown;
212
- };
213
- };
214
- /** @description Validation Error */
215
- 422: {
216
- headers: {
217
- [name: string]: unknown;
218
- };
219
- content: {
220
- "application/json": components["schemas"]["HTTPValidationError"];
221
- };
222
- };
223
- };
224
- };
225
- allowlist_allowlist__root__get: {
226
- parameters: {
227
- query?: never;
228
- header?: never;
229
- path: {
230
- root: string;
231
- };
232
- cookie?: never;
233
- };
234
- requestBody?: never;
235
- responses: {
236
- /** @description Successful Response */
237
- 200: {
238
- headers: {
239
- [name: string]: unknown;
240
- };
241
- content: {
242
- "application/json": unknown;
243
- };
244
- };
245
- /** @description Validation Error */
246
- 422: {
247
- headers: {
248
- [name: string]: unknown;
249
- };
250
- content: {
251
- "application/json": components["schemas"]["HTTPValidationError"];
252
- };
253
- };
254
- };
255
- };
256
- allowlist_count_allowlist__root__count_get: {
257
- parameters: {
258
- query?: never;
259
- header?: never;
260
- path: {
261
- root: string;
262
- };
263
- cookie?: never;
264
- };
265
- requestBody?: never;
266
- responses: {
267
- /** @description Successful Response */
268
- 200: {
269
- headers: {
270
- [name: string]: unknown;
271
- };
272
- content: {
273
- "application/json": unknown;
274
- };
275
- };
276
- /** @description Validation Error */
277
- 422: {
278
- headers: {
279
- [name: string]: unknown;
280
- };
281
- content: {
282
- "application/json": components["schemas"]["HTTPValidationError"];
283
- };
284
- };
285
- };
286
- };
287
- }
288
- //# sourceMappingURL=allow-list-api-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"allow-list-api-types.d.ts","sourceRoot":"","sources":["../../../src/apis/generated/allow-list-api-types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,KAAK;IACpB,UAAU,EAAE;QACV,UAAU,EAAE;YACV,KAAK,CAAC,EAAE,KAAK,CAAC;YACd,MAAM,CAAC,EAAE,KAAK,CAAC;YACf,IAAI,CAAC,EAAE,KAAK,CAAC;YACb,MAAM,CAAC,EAAE,KAAK,CAAC;SAChB,CAAC;QACF,aAAa;QACb,GAAG,EAAE,UAAU,CAAC,oBAAoB,CAAC,CAAC;QACtC,GAAG,CAAC,EAAE,KAAK,CAAC;QACZ,IAAI,CAAC,EAAE,KAAK,CAAC;QACb,MAAM,CAAC,EAAE,KAAK,CAAC;QACf,OAAO,CAAC,EAAE,KAAK,CAAC;QAChB,IAAI,CAAC,EAAE,KAAK,CAAC;QACb,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,KAAK,CAAC,EAAE,KAAK,CAAC;KACf,CAAC;IACF,YAAY,EAAE;QACZ,UAAU,EAAE;YACV,KAAK,CAAC,EAAE,KAAK,CAAC;YACd,MAAM,CAAC,EAAE,KAAK,CAAC;YACf,IAAI,CAAC,EAAE,KAAK,CAAC;YACb,MAAM,CAAC,EAAE,KAAK,CAAC;SAChB,CAAC;QACF,GAAG,CAAC,EAAE,KAAK,CAAC;QACZ,GAAG,CAAC,EAAE,KAAK,CAAC;QACZ;;;WAGG;QACH,IAAI,EAAE,UAAU,CAAC,8BAA8B,CAAC,CAAC;QACjD,MAAM,CAAC,EAAE,KAAK,CAAC;QACf,OAAO,CAAC,EAAE,KAAK,CAAC;QAChB,IAAI,CAAC,EAAE,KAAK,CAAC;QACb,KAAK,C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