bitbadgesjs-sdk 0.4.22 → 0.4.24

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 (33) hide show
  1. package/dist/cjs/api-indexer/BitBadgesApi.js +96 -40
  2. package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
  3. package/dist/cjs/api-indexer/docs/docs.d.ts +2 -0
  4. package/dist/cjs/api-indexer/docs/docs.d.ts.map +1 -1
  5. package/dist/cjs/api-indexer/docs/docs.js +3 -1
  6. package/dist/cjs/api-indexer/docs/docs.js.map +1 -1
  7. package/dist/cjs/api-indexer/docs/interfaces.d.ts +6 -1
  8. package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
  9. package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
  10. package/dist/cjs/api-indexer/requests/requests.d.ts +5 -1
  11. package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
  12. package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
  13. package/dist/cjs/core/approvals.d.ts +4 -1
  14. package/dist/cjs/core/approvals.d.ts.map +1 -1
  15. package/dist/cjs/core/approvals.js +1 -0
  16. package/dist/cjs/core/approvals.js.map +1 -1
  17. package/dist/esm/api-indexer/BitBadgesApi.js +96 -40
  18. package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
  19. package/dist/esm/api-indexer/docs/docs.d.ts +2 -0
  20. package/dist/esm/api-indexer/docs/docs.d.ts.map +1 -1
  21. package/dist/esm/api-indexer/docs/docs.js +4 -1
  22. package/dist/esm/api-indexer/docs/docs.js.map +1 -1
  23. package/dist/esm/api-indexer/docs/interfaces.d.ts +6 -1
  24. package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
  25. package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
  26. package/dist/esm/api-indexer/requests/requests.d.ts +5 -1
  27. package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
  28. package/dist/esm/api-indexer/requests/requests.js.map +1 -1
  29. package/dist/esm/core/approvals.d.ts +4 -1
  30. package/dist/esm/core/approvals.d.ts.map +1 -1
  31. package/dist/esm/core/approvals.js +2 -0
  32. package/dist/esm/core/approvals.js.map +1 -1
  33. package/package.json +1 -1
@@ -136,8 +136,8 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
136
136
  }
137
137
  async completeClaim(claimId, address, payload) {
138
138
  try {
139
- const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => "number" === typeof input._expectedVersion && Object.keys(input).every(key => {
140
- if (["_expectedVersion"].some(prop => key === prop))
139
+ const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => "number" === typeof input._expectedVersion && (undefined === input._specificInstanceIds || Array.isArray(input._specificInstanceIds) && input._specificInstanceIds.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
140
+ if (["_expectedVersion", "_specificInstanceIds"].some(prop => key === prop))
141
141
  return true;
142
142
  const value = input[key];
143
143
  if (undefined === value)
@@ -147,8 +147,20 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
147
147
  path: _path + "._expectedVersion",
148
148
  expected: "number",
149
149
  value: input._expectedVersion
150
+ }), undefined === input._specificInstanceIds || (Array.isArray(input._specificInstanceIds) || $report(_exceptionable, {
151
+ path: _path + "._specificInstanceIds",
152
+ expected: "(Array<string> | undefined)",
153
+ value: input._specificInstanceIds
154
+ })) && input._specificInstanceIds.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
155
+ path: _path + "._specificInstanceIds[" + _index2 + "]",
156
+ expected: "string",
157
+ value: elem
158
+ })).every(flag => flag) || $report(_exceptionable, {
159
+ path: _path + "._specificInstanceIds",
160
+ expected: "(Array<string> | undefined)",
161
+ value: input._specificInstanceIds
150
162
  }), false === _exceptionable || Object.keys(input).map(key => {
151
- if (["_expectedVersion"].some(prop => key === prop))
163
+ if (["_expectedVersion", "_specificInstanceIds"].some(prop => key === prop))
152
164
  return true;
153
165
  const value = input[key];
154
166
  if (undefined === value)
@@ -3343,7 +3355,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3343
3355
  }
3344
3356
  async createClaims(payload) {
3345
3357
  try {
3346
- const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && "string" === typeof input.claimId && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io7(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io18(input.satisfyMethod)) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io19(elem))); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
3358
+ const validateRes = (() => { const $join = typia_1.default.validate.join; const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem)) && (undefined === input.testClaims || "boolean" === typeof input.testClaims) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim); const $io1 = input => (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && (undefined === input.lastUpdated || "string" === typeof input.lastUpdated || "number" === typeof input.lastUpdated || "bigint" === typeof input.lastUpdated) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && "string" === typeof input.claimId && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.siwbbClaim || "boolean" === typeof input.siwbbClaim) && (undefined === input.trackerDetails || "object" === typeof input.trackerDetails && null !== input.trackerDetails && $io7(input.trackerDetails)) && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io8(input.balancesToSet)) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.satisfyMethod || "object" === typeof input.satisfyMethod && null !== input.satisfyMethod && $io18(input.satisfyMethod)) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io20(elem))); const $io2 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.bannerImage || "string" === typeof input.bannerImage) && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io3(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io4(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.utility || Array.isArray(input.utility) && input.utility.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating); const $io3 = input => Object.keys(input).every(key => {
3347
3359
  const value = input[key];
3348
3360
  if (undefined === value)
3349
3361
  return true;
@@ -3353,7 +3365,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3353
3365
  if (undefined === value)
3354
3366
  return true;
3355
3367
  return true;
3356
- }); const $io18 = input => ("AND" === input.type || "OR" === input.type || "NOT" === input.type) && (Array.isArray(input.conditions) && input.conditions.every(elem => null !== elem && undefined !== elem && ("number" === typeof elem || "object" === typeof elem && null !== elem && $io18(elem)))); const $io19 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io20(input.metadata)) && "string" === typeof input.version && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io21(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io21(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io21(input.privateParams)); const $io20 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io21 = input => Object.keys(input).every(key => {
3368
+ }); const $io18 = input => ("AND" === input.type || "OR" === input.type || "NOT" === input.type) && (Array.isArray(input.conditions) && input.conditions.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io18(elem)))) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io19(input.options)); const $io19 = input => undefined === input.minNumSatisfied || "number" === typeof input.minNumSatisfied; const $io20 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io21(input.metadata)) && "string" === typeof input.version && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io22(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && $io22(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && $io22(input.privateParams)); const $io21 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const $io22 = input => Object.keys(input).every(key => {
3357
3369
  const value = input[key];
3358
3370
  if (undefined === value)
3359
3371
  return true;
@@ -3502,7 +3514,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3502
3514
  path: _path + ".plugins[" + _index17 + "]",
3503
3515
  expected: "ManagePluginRequest",
3504
3516
  value: elem
3505
- })) && $vo19(elem, _path + ".plugins[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
3517
+ })) && $vo20(elem, _path + ".plugins[" + _index17 + "]", true && _exceptionable) || $report(_exceptionable, {
3506
3518
  path: _path + ".plugins[" + _index17 + "]",
3507
3519
  expected: "ManagePluginRequest",
3508
3520
  value: elem
@@ -3882,35 +3894,47 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3882
3894
  value: input.type
3883
3895
  }), (Array.isArray(input.conditions) || $report(_exceptionable, {
3884
3896
  path: _path + ".conditions",
3885
- expected: "Array<number | iSatisfyMethod>",
3897
+ expected: "Array<string | iSatisfyMethod>",
3886
3898
  value: input.conditions
3887
3899
  })) && input.conditions.map((elem, _index26) => (null !== elem || $report(_exceptionable, {
3888
3900
  path: _path + ".conditions[" + _index26 + "]",
3889
- expected: "(iSatisfyMethod | number)",
3901
+ expected: "(iSatisfyMethod | string)",
3890
3902
  value: elem
3891
3903
  })) && (undefined !== elem || $report(_exceptionable, {
3892
3904
  path: _path + ".conditions[" + _index26 + "]",
3893
- expected: "(iSatisfyMethod | number)",
3905
+ expected: "(iSatisfyMethod | string)",
3894
3906
  value: elem
3895
- })) && ("number" === typeof elem || ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3907
+ })) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $report(_exceptionable, {
3896
3908
  path: _path + ".conditions[" + _index26 + "]",
3897
- expected: "(iSatisfyMethod | number)",
3909
+ expected: "(iSatisfyMethod | string)",
3898
3910
  value: elem
3899
3911
  })) && $vo18(elem, _path + ".conditions[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
3900
3912
  path: _path + ".conditions[" + _index26 + "]",
3901
- expected: "(iSatisfyMethod | number)",
3913
+ expected: "(iSatisfyMethod | string)",
3902
3914
  value: elem
3903
3915
  }))).every(flag => flag) || $report(_exceptionable, {
3904
3916
  path: _path + ".conditions",
3905
- expected: "Array<number | iSatisfyMethod>",
3917
+ expected: "Array<string | iSatisfyMethod>",
3906
3918
  value: input.conditions
3907
- })].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3908
- path: _path + ".metadata",
3919
+ }), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || $report(_exceptionable, {
3920
+ path: _path + ".options",
3909
3921
  expected: "(__type.o6 | undefined)",
3922
+ value: input.options
3923
+ })) && $vo19(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
3924
+ path: _path + ".options",
3925
+ expected: "(__type.o6 | undefined)",
3926
+ value: input.options
3927
+ })].every(flag => flag); const $vo19 = (input, _path, _exceptionable = true) => [undefined === input.minNumSatisfied || "number" === typeof input.minNumSatisfied || $report(_exceptionable, {
3928
+ path: _path + ".minNumSatisfied",
3929
+ expected: "(number | undefined)",
3930
+ value: input.minNumSatisfied
3931
+ })].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
3932
+ path: _path + ".metadata",
3933
+ expected: "(__type.o7 | undefined)",
3910
3934
  value: input.metadata
3911
- })) && $vo20(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3935
+ })) && $vo21(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
3912
3936
  path: _path + ".metadata",
3913
- expected: "(__type.o6 | undefined)",
3937
+ expected: "(__type.o7 | undefined)",
3914
3938
  value: input.metadata
3915
3939
  }), "string" === typeof input.version || $report(_exceptionable, {
3916
3940
  path: _path + ".version",
@@ -3924,7 +3948,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3924
3948
  path: _path + ".newState",
3925
3949
  expected: "(Record<string, any> | undefined)",
3926
3950
  value: input.newState
3927
- })) && $vo21(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
3951
+ })) && $vo22(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
3928
3952
  path: _path + ".newState",
3929
3953
  expected: "(Record<string, any> | undefined)",
3930
3954
  value: input.newState
@@ -3944,7 +3968,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3944
3968
  path: _path + ".publicParams",
3945
3969
  expected: "Record<string, any>",
3946
3970
  value: input.publicParams
3947
- })) && $vo21(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
3971
+ })) && $vo22(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
3948
3972
  path: _path + ".publicParams",
3949
3973
  expected: "Record<string, any>",
3950
3974
  value: input.publicParams
@@ -3952,11 +3976,11 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3952
3976
  path: _path + ".privateParams",
3953
3977
  expected: "Record<string, any>",
3954
3978
  value: input.privateParams
3955
- })) && $vo21(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
3979
+ })) && $vo22(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
3956
3980
  path: _path + ".privateParams",
3957
3981
  expected: "Record<string, any>",
3958
3982
  value: input.privateParams
3959
- })].every(flag => flag); const $vo20 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3983
+ })].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
3960
3984
  path: _path + ".name",
3961
3985
  expected: "string",
3962
3986
  value: input.name
@@ -3968,7 +3992,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
3968
3992
  path: _path + ".image",
3969
3993
  expected: "(string | undefined)",
3970
3994
  value: input.image
3971
- })].every(flag => flag); const $vo21 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3995
+ })].every(flag => flag); const $vo22 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
3972
3996
  const value = input[key];
3973
3997
  if (undefined === value)
3974
3998
  return true;
@@ -4080,7 +4104,7 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4080
4104
  if (undefined === value)
4081
4105
  return true;
4082
4106
  return true;
4083
- }); const $io21 = input => ("AND" === input.type || "OR" === input.type || "NOT" === input.type) && (Array.isArray(input.conditions) && input.conditions.every(elem => null !== elem && undefined !== elem && ("number" === typeof elem || "object" === typeof elem && null !== elem && $io21(elem)))); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
4107
+ }); const $io21 = input => ("AND" === input.type || "OR" === input.type || "NOT" === input.type) && (Array.isArray(input.conditions) && input.conditions.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io21(elem)))) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io22(input.options)); const $io22 = input => undefined === input.minNumSatisfied || "number" === typeof input.minNumSatisfied; const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
4084
4108
  path: _path + ".claims",
4085
4109
  expected: "Array<Omit<iClaimDetails<NumberType>, \"version\" | \"seedCode\">>",
4086
4110
  value: input.claims
@@ -4673,28 +4697,40 @@ class BitBadgesAPI extends base_js_1.BaseBitBadgesApi {
4673
4697
  value: input.type
4674
4698
  }), (Array.isArray(input.conditions) || $report(_exceptionable, {
4675
4699
  path: _path + ".conditions",
4676
- expected: "Array<number | iSatisfyMethod>",
4700
+ expected: "Array<string | iSatisfyMethod>",
4677
4701
  value: input.conditions
4678
4702
  })) && input.conditions.map((elem, _index26) => (null !== elem || $report(_exceptionable, {
4679
4703
  path: _path + ".conditions[" + _index26 + "]",
4680
- expected: "(iSatisfyMethod | number)",
4704
+ expected: "(iSatisfyMethod | string)",
4681
4705
  value: elem
4682
4706
  })) && (undefined !== elem || $report(_exceptionable, {
4683
4707
  path: _path + ".conditions[" + _index26 + "]",
4684
- expected: "(iSatisfyMethod | number)",
4708
+ expected: "(iSatisfyMethod | string)",
4685
4709
  value: elem
4686
- })) && ("number" === typeof elem || ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4710
+ })) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $report(_exceptionable, {
4687
4711
  path: _path + ".conditions[" + _index26 + "]",
4688
- expected: "(iSatisfyMethod | number)",
4712
+ expected: "(iSatisfyMethod | string)",
4689
4713
  value: elem
4690
4714
  })) && $vo21(elem, _path + ".conditions[" + _index26 + "]", true && _exceptionable) || $report(_exceptionable, {
4691
4715
  path: _path + ".conditions[" + _index26 + "]",
4692
- expected: "(iSatisfyMethod | number)",
4716
+ expected: "(iSatisfyMethod | string)",
4693
4717
  value: elem
4694
4718
  }))).every(flag => flag) || $report(_exceptionable, {
4695
4719
  path: _path + ".conditions",
4696
- expected: "Array<number | iSatisfyMethod>",
4720
+ expected: "Array<string | iSatisfyMethod>",
4697
4721
  value: input.conditions
4722
+ }), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || $report(_exceptionable, {
4723
+ path: _path + ".options",
4724
+ expected: "(__type.o7 | undefined)",
4725
+ value: input.options
4726
+ })) && $vo22(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
4727
+ path: _path + ".options",
4728
+ expected: "(__type.o7 | undefined)",
4729
+ value: input.options
4730
+ })].every(flag => flag); const $vo22 = (input, _path, _exceptionable = true) => [undefined === input.minNumSatisfied || "number" === typeof input.minNumSatisfied || $report(_exceptionable, {
4731
+ path: _path + ".minNumSatisfied",
4732
+ expected: "(number | undefined)",
4733
+ value: input.minNumSatisfied
4698
4734
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
4699
4735
  if (false === __is(input)) {
4700
4736
  errors = [];
@@ -5616,7 +5652,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5616
5652
  }
5617
5653
  async createPlugin(payload) {
5618
5654
  try {
5619
- const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && ("object" === typeof input.initialVersion && null !== input.initialVersion && $io2(input.initialVersion)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && "string" === typeof input.createdBy; const $io2 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io3(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io7(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io8(input.verificationCall)); const $io3 = input => "string" === typeof input.baseUri; const $io4 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && $io5(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io5 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const $io6 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io7 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io8 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && (undefined === input.passTelegram || "boolean" === typeof input.passTelegram) && (undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster) && (undefined === input.passSlack || "boolean" === typeof input.passSlack) && "string" === typeof input.postProcessingJs; const $io9 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
5655
+ const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && ("object" === typeof input.initialVersion && null !== input.initialVersion && $io2(input.initialVersion)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.parentApp || "string" === typeof input.parentApp) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && "string" === typeof input.createdBy; const $io2 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io3(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io7(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io8(input.verificationCall)); const $io3 = input => "string" === typeof input.baseUri; const $io4 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && $io5(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io6(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io5 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const $io6 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io7 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io8 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && (undefined === input.passTelegram || "boolean" === typeof input.passTelegram) && (undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster) && (undefined === input.passSlack || "boolean" === typeof input.passSlack) && "string" === typeof input.postProcessingJs; const $io9 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
5620
5656
  path: _path + ".pluginId",
5621
5657
  expected: "string",
5622
5658
  value: input.pluginId
@@ -5672,6 +5708,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5672
5708
  path: _path + ".documentation",
5673
5709
  expected: "(string | undefined)",
5674
5710
  value: input.documentation
5711
+ }), undefined === input.parentApp || "string" === typeof input.parentApp || $report(_exceptionable, {
5712
+ path: _path + ".parentApp",
5713
+ expected: "(string | undefined)",
5714
+ value: input.parentApp
5675
5715
  }), undefined === input.sourceCode || "string" === typeof input.sourceCode || $report(_exceptionable, {
5676
5716
  path: _path + ".sourceCode",
5677
5717
  expected: "(string | undefined)",
@@ -5999,7 +6039,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
5999
6039
  }
6000
6040
  async updatePlugin(payload) {
6001
6041
  try {
6002
- const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && (undefined === input.removeSelfFromApprovedUsers || "boolean" === typeof input.removeSelfFromApprovedUsers) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.toPublish || "boolean" === typeof input.toPublish) && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && (undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret) && (undefined === input.versionUpdates || Array.isArray(input.versionUpdates) && input.versionUpdates.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (undefined === input.versionCreate || "object" === typeof input.versionCreate && null !== input.versionCreate && $io11(input.versionCreate)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && (undefined === input.createdBy || "string" === typeof input.createdBy); const $io2 = input => ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version) && ("object" === typeof input.config && null !== input.config && false === Array.isArray(input.config) && $io3(input.config)); const $io3 = input => (undefined === input.finalized || "boolean" === typeof input.finalized) && (undefined === input.stateFunctionPreset || "Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && (undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed) && (undefined === input.receiveStatusWebhook || "boolean" === typeof input.receiveStatusWebhook) && (undefined === input.reuseForNonIndexed || "boolean" === typeof input.reuseForNonIndexed) && (undefined === input.requiresUserInputs || "boolean" === typeof input.requiresUserInputs) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)); const $io4 = input => "string" === typeof input.baseUri; const $io5 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && $io6(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io6 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const $io7 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io8 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io9 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && (undefined === input.passTelegram || "boolean" === typeof input.passTelegram) && (undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster) && (undefined === input.passSlack || "boolean" === typeof input.passSlack) && "string" === typeof input.postProcessingJs; const $io10 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $io11 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
6042
+ const validateRes = (() => { const $io0 = input => "string" === typeof input.pluginId && (undefined === input.inviteCode || "string" === typeof input.inviteCode) && (undefined === input.removeSelfFromApprovedUsers || "boolean" === typeof input.removeSelfFromApprovedUsers) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.toPublish || "boolean" === typeof input.toPublish) && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && (undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret) && (undefined === input.versionUpdates || Array.isArray(input.versionUpdates) && input.versionUpdates.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (undefined === input.versionCreate || "object" === typeof input.versionCreate && null !== input.versionCreate && $io11(input.versionCreate)); const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.parentApp || "string" === typeof input.parentApp) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && (undefined === input.createdBy || "string" === typeof input.createdBy); const $io2 = input => ("string" === typeof input.version || "number" === typeof input.version || "bigint" === typeof input.version) && ("object" === typeof input.config && null !== input.config && false === Array.isArray(input.config) && $io3(input.config)); const $io3 = input => (undefined === input.finalized || "boolean" === typeof input.finalized) && (undefined === input.stateFunctionPreset || "Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && (undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed) && (undefined === input.receiveStatusWebhook || "boolean" === typeof input.receiveStatusWebhook) && (undefined === input.reuseForNonIndexed || "boolean" === typeof input.reuseForNonIndexed) && (undefined === input.requiresUserInputs || "boolean" === typeof input.requiresUserInputs) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)); const $io4 = input => "string" === typeof input.baseUri; const $io5 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && (undefined === input.hyperlink || "object" === typeof input.hyperlink && null !== input.hyperlink && $io6(input.hyperlink)) && (undefined === input.helper || "string" === typeof input.helper) && (undefined === input.headerField || "boolean" === typeof input.headerField) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.defaultValue || "string" === typeof input.defaultValue || "number" === typeof input.defaultValue || "boolean" === typeof input.defaultValue) && (undefined === input.options || Array.isArray(input.options) && input.options.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && (undefined === input.arrayField || "boolean" === typeof input.arrayField); const $io6 = input => "string" === typeof input.url && (undefined === input.showAsGenericView || "boolean" === typeof input.showAsGenericView); const $io7 = input => "string" === typeof input.label && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io8 = input => (undefined === input.toolUri || "string" === typeof input.toolUri) && (undefined === input.tutorialUri || "string" === typeof input.tutorialUri); const $io9 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (Array.isArray(input.hardcodedInputs) && input.hardcodedInputs.every(elem => "object" === typeof elem && null !== elem && $io10(elem))) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passStrava || "boolean" === typeof input.passStrava) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch) && (undefined === input.passReddit || "boolean" === typeof input.passReddit) && (undefined === input.passTelegram || "boolean" === typeof input.passTelegram) && (undefined === input.passFarcaster || "boolean" === typeof input.passFarcaster) && (undefined === input.passSlack || "boolean" === typeof input.passSlack) && "string" === typeof input.postProcessingJs; const $io10 = input => "string" === typeof input.key && "string" === typeof input.label && "string" === typeof input.type && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value) && (undefined === input.headerField || "boolean" === typeof input.headerField); const $io11 = input => "boolean" === typeof input.finalized && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.receiveStatusWebhook && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.requiresUserInputs && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io4(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && false === Array.isArray(input.claimCreatorRedirect) && $io8(input.claimCreatorRedirect)) && (undefined === input.publicParamsSchema || Array.isArray(input.publicParamsSchema) && input.publicParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.privateParamsSchema || Array.isArray(input.privateParamsSchema) && input.privateParamsSchema.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io9(input.verificationCall)); const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
6003
6043
  path: _path + ".pluginId",
6004
6044
  expected: "string",
6005
6045
  value: input.pluginId
@@ -6079,6 +6119,10 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
6079
6119
  path: _path + ".documentation",
6080
6120
  expected: "(string | undefined)",
6081
6121
  value: input.documentation
6122
+ }), undefined === input.parentApp || "string" === typeof input.parentApp || $report(_exceptionable, {
6123
+ path: _path + ".parentApp",
6124
+ expected: "(string | undefined)",
6125
+ value: input.parentApp
6082
6126
  }), undefined === input.sourceCode || "string" === typeof input.sourceCode || $report(_exceptionable, {
6083
6127
  path: _path + ".sourceCode",
6084
6128
  expected: "(string | undefined)",
@@ -7495,7 +7539,7 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
7495
7539
  if (undefined === value)
7496
7540
  return true;
7497
7541
  return "string" === typeof value;
7498
- }); const $io24 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io25 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io26 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io27 = input => ("AND" === input.type || "OR" === input.type || "NOT" === input.type) && (Array.isArray(input.conditions) && input.conditions.every(elem => null !== elem && undefined !== elem && ("number" === typeof elem || "object" === typeof elem && null !== elem && $io27(elem)))); const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.approvalDetails) || $report(_exceptionable, {
7542
+ }); const $io24 = input => "string" === typeof input.host && "string" === typeof input.assignMethod; const $io25 = input => "string" === typeof input.type && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value); const $io26 = input => "string" === typeof input.name && "string" === typeof input.image && "string" === typeof input.description && (undefined === input.url || "string" === typeof input.url); const $io27 = input => ("AND" === input.type || "OR" === input.type || "NOT" === input.type) && (Array.isArray(input.conditions) && input.conditions.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || "object" === typeof elem && null !== elem && $io27(elem)))) && (undefined === input.options || "object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) && $io28(input.options)); const $io28 = input => undefined === input.minNumSatisfied || "number" === typeof input.minNumSatisfied; const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.approvalDetails) || $report(_exceptionable, {
7499
7543
  path: _path + ".approvalDetails",
7500
7544
  expected: "Array<__type>",
7501
7545
  value: input.approvalDetails
@@ -8277,28 +8321,40 @@ class BitBadgesAdminAPI extends BitBadgesAPI {
8277
8321
  value: input.type
8278
8322
  }), (Array.isArray(input.conditions) || $report(_exceptionable, {
8279
8323
  path: _path + ".conditions",
8280
- expected: "Array<number | iSatisfyMethod>",
8324
+ expected: "Array<string | iSatisfyMethod>",
8281
8325
  value: input.conditions
8282
8326
  })) && input.conditions.map((elem, _index32) => (null !== elem || $report(_exceptionable, {
8283
8327
  path: _path + ".conditions[" + _index32 + "]",
8284
- expected: "(iSatisfyMethod | number)",
8328
+ expected: "(iSatisfyMethod | string)",
8285
8329
  value: elem
8286
8330
  })) && (undefined !== elem || $report(_exceptionable, {
8287
8331
  path: _path + ".conditions[" + _index32 + "]",
8288
- expected: "(iSatisfyMethod | number)",
8332
+ expected: "(iSatisfyMethod | string)",
8289
8333
  value: elem
8290
- })) && ("number" === typeof elem || ("object" === typeof elem && null !== elem || $report(_exceptionable, {
8334
+ })) && ("string" === typeof elem || ("object" === typeof elem && null !== elem || $report(_exceptionable, {
8291
8335
  path: _path + ".conditions[" + _index32 + "]",
8292
- expected: "(iSatisfyMethod | number)",
8336
+ expected: "(iSatisfyMethod | string)",
8293
8337
  value: elem
8294
8338
  })) && $vo27(elem, _path + ".conditions[" + _index32 + "]", true && _exceptionable) || $report(_exceptionable, {
8295
8339
  path: _path + ".conditions[" + _index32 + "]",
8296
- expected: "(iSatisfyMethod | number)",
8340
+ expected: "(iSatisfyMethod | string)",
8297
8341
  value: elem
8298
8342
  }))).every(flag => flag) || $report(_exceptionable, {
8299
8343
  path: _path + ".conditions",
8300
- expected: "Array<number | iSatisfyMethod>",
8344
+ expected: "Array<string | iSatisfyMethod>",
8301
8345
  value: input.conditions
8346
+ }), undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || $report(_exceptionable, {
8347
+ path: _path + ".options",
8348
+ expected: "(__type.o8 | undefined)",
8349
+ value: input.options
8350
+ })) && $vo28(input.options, _path + ".options", true && _exceptionable) || $report(_exceptionable, {
8351
+ path: _path + ".options",
8352
+ expected: "(__type.o8 | undefined)",
8353
+ value: input.options
8354
+ })].every(flag => flag); const $vo28 = (input, _path, _exceptionable = true) => [undefined === input.minNumSatisfied || "number" === typeof input.minNumSatisfied || $report(_exceptionable, {
8355
+ path: _path + ".minNumSatisfied",
8356
+ expected: "(number | undefined)",
8357
+ value: input.minNumSatisfied
8302
8358
  })].every(flag => flag); const __is = input => "object" === typeof input && null !== input && $io0(input); let errors; let $report; return input => {
8303
8359
  if (false === __is(input)) {
8304
8360
  errors = [];