@appconda/nextjs 1.0.19 → 1.0.21

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 (224) hide show
  1. package/dist/Cache/Adapter.d.ts +10 -0
  2. package/dist/Cache/Adapters/Filesystem.d.ts +16 -0
  3. package/dist/Cache/Adapters/Memory.d.ts +18 -0
  4. package/dist/Cache/Adapters/None.d.ts +12 -0
  5. package/dist/Cache/Adapters/Redis.d.ts +14 -0
  6. package/dist/Cache/Adapters/Sharding.d.ts +17 -0
  7. package/dist/Cache/Cache.d.ts +16 -0
  8. package/dist/Cache/index.d.ts +5 -0
  9. package/dist/Cache/test.d.ts +0 -0
  10. package/dist/Services.d.ts +6 -0
  11. package/dist/actions/actionClient.d.ts +4 -0
  12. package/dist/actions/index.d.ts +1 -0
  13. package/dist/actions/nodes.d.ts +4 -0
  14. package/dist/client.d.ts +141 -0
  15. package/dist/decorators/Cache.d.ts +1 -0
  16. package/dist/decorators/CacheKey.d.ts +1 -0
  17. package/dist/decorators/Invalidate.d.ts +1 -0
  18. package/dist/enums/api-service.d.ts +13 -0
  19. package/dist/enums/api.d.ts +5 -0
  20. package/dist/enums/auth-method.d.ts +9 -0
  21. package/dist/enums/authentication-factor.d.ts +6 -0
  22. package/dist/enums/authenticator-type.d.ts +3 -0
  23. package/dist/enums/browser.d.ts +16 -0
  24. package/dist/enums/compression.d.ts +5 -0
  25. package/dist/enums/credit-card.d.ts +18 -0
  26. package/dist/enums/database-usage-range.d.ts +5 -0
  27. package/dist/enums/email-template-locale.d.ts +133 -0
  28. package/dist/enums/email-template-type.d.ts +9 -0
  29. package/dist/enums/entities/EntityLimitType.d.ts +4 -0
  30. package/dist/enums/entities/PropertyAttributeName.d.ts +27 -0
  31. package/dist/enums/entities/PropertyCondition.d.ts +7 -0
  32. package/dist/enums/entities/PropertyType.d.ts +12 -0
  33. package/dist/enums/entities/PropertyValueType.d.ts +6 -0
  34. package/dist/enums/entities/RowAccess.d.ts +2 -0
  35. package/dist/enums/entities/ViewFilterCondition.d.ts +12 -0
  36. package/dist/enums/execution-method.d.ts +8 -0
  37. package/dist/enums/flag.d.ts +197 -0
  38. package/dist/enums/function-usage-range.d.ts +5 -0
  39. package/dist/enums/image-format.d.ts +7 -0
  40. package/dist/enums/image-gravity.d.ts +11 -0
  41. package/dist/enums/index-type.d.ts +5 -0
  42. package/dist/enums/messaging-provider-type.d.ts +5 -0
  43. package/dist/enums/name.d.ts +14 -0
  44. package/dist/enums/o-auth-provider copy.d.ts +41 -0
  45. package/dist/enums/o-auth-provider.d.ts +41 -0
  46. package/dist/enums/password-hash.d.ts +13 -0
  47. package/dist/enums/platform-type.d.ts +17 -0
  48. package/dist/enums/project-usage-range.d.ts +4 -0
  49. package/dist/enums/region.d.ts +4 -0
  50. package/dist/enums/relation-mutate.d.ts +5 -0
  51. package/dist/enums/relationship-type.d.ts +6 -0
  52. package/dist/enums/resource-type.d.ts +4 -0
  53. package/dist/enums/runtime.d.ts +48 -0
  54. package/dist/enums/s-m-t-p-secure.d.ts +3 -0
  55. package/dist/enums/shared/ApplicationLayout.d.ts +4 -0
  56. package/dist/enums/shared/Colors.d.ts +24 -0
  57. package/dist/enums/shared/InputType.d.ts +6 -0
  58. package/dist/enums/shared/Periodicity.d.ts +7 -0
  59. package/dist/enums/shared/SvgIcon.d.ts +37 -0
  60. package/dist/enums/shared/Theme.d.ts +4 -0
  61. package/dist/enums/sms-template-locale.d.ts +133 -0
  62. package/dist/enums/sms-template-type.d.ts +6 -0
  63. package/dist/enums/smtp-encryption.d.ts +5 -0
  64. package/dist/enums/storage-usage-range.d.ts +5 -0
  65. package/dist/enums/subscriptions/PricingModel.d.ts +11 -0
  66. package/dist/enums/subscriptions/SubscriptionBillingPeriod.d.ts +10 -0
  67. package/dist/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +10 -0
  68. package/dist/enums/subscriptions/SubscriptionPriceType.d.ts +7 -0
  69. package/dist/enums/tenants/LinkedAccountStatus.d.ts +5 -0
  70. package/dist/enums/tenants/TenantUserJoined.d.ts +6 -0
  71. package/dist/enums/tenants/TenantUserStatus.d.ts +6 -0
  72. package/dist/enums/tenants/TenantUserType.d.ts +5 -0
  73. package/dist/enums/user-usage-range.d.ts +5 -0
  74. package/dist/getAppcondaClient.d.ts +2 -0
  75. package/dist/getSDKForCurrentUser.d.ts +33 -0
  76. package/dist/id.d.ts +20 -0
  77. package/dist/index.d.ts +39 -0
  78. package/dist/index.js +61 -54
  79. package/dist/index.js.map +1 -1
  80. package/dist/inputFile.d.ts +6 -0
  81. package/dist/lib/Registry/Registry.d.ts +38 -0
  82. package/dist/lib/Registry/index.d.ts +1 -0
  83. package/dist/models.d.ts +3272 -0
  84. package/dist/permission.d.ts +43 -0
  85. package/dist/query.d.ts +194 -0
  86. package/dist/role.d.ts +70 -0
  87. package/dist/service-client.d.ts +7 -0
  88. package/dist/service.d.ts +11 -0
  89. package/dist/services/account.d.ts +530 -0
  90. package/dist/services/applets.d.ts +9 -0
  91. package/dist/services/avatars.d.ts +115 -0
  92. package/dist/services/community.d.ts +19 -0
  93. package/dist/services/configuration.d.ts +5 -0
  94. package/dist/services/databases.d.ts +613 -0
  95. package/dist/services/functions.d.ts +319 -0
  96. package/dist/services/graphql.d.ts +25 -0
  97. package/dist/services/health.d.ts +231 -0
  98. package/dist/services/locale.d.ts +80 -0
  99. package/dist/services/messaging.d.ts +685 -0
  100. package/dist/services/node.d.ts +5 -0
  101. package/dist/services/permissions.d.ts +20 -0
  102. package/dist/services/pricing.d.ts +15 -0
  103. package/dist/services/projects.d.ts +542 -0
  104. package/dist/services/roles.d.ts +19 -0
  105. package/dist/services/schema.d.ts +17 -0
  106. package/dist/services/storage.d.ts +189 -0
  107. package/dist/services/subscription.d.ts +15 -0
  108. package/dist/services/teams.d.ts +167 -0
  109. package/dist/services/tenant-subscription.d.ts +12 -0
  110. package/dist/services/tenant.d.ts +32 -0
  111. package/dist/services/users.d.ts +499 -0
  112. package/dist/services/waitlist.d.ts +5 -0
  113. package/dist/types/Cache/Adapter.d.ts +10 -0
  114. package/dist/types/Cache/Adapters/Filesystem.d.ts +16 -0
  115. package/dist/types/Cache/Adapters/Memory.d.ts +18 -0
  116. package/dist/types/Cache/Adapters/None.d.ts +12 -0
  117. package/dist/types/Cache/Adapters/Redis.d.ts +14 -0
  118. package/dist/types/Cache/Adapters/Sharding.d.ts +17 -0
  119. package/dist/types/Cache/Cache.d.ts +16 -0
  120. package/dist/types/Cache/index.d.ts +5 -0
  121. package/dist/types/Cache/test.d.ts +0 -0
  122. package/dist/types/Services.d.ts +6 -0
  123. package/dist/types/actions/actionClient.d.ts +4 -0
  124. package/dist/types/actions/index.d.ts +1 -0
  125. package/dist/types/actions/nodes.d.ts +4 -0
  126. package/dist/types/client.d.ts +141 -0
  127. package/dist/types/decorators/Cache.d.ts +1 -0
  128. package/dist/types/decorators/CacheKey.d.ts +1 -0
  129. package/dist/types/decorators/Invalidate.d.ts +1 -0
  130. package/dist/types/enums/api-service.d.ts +13 -0
  131. package/dist/types/enums/api.d.ts +5 -0
  132. package/dist/types/enums/auth-method.d.ts +9 -0
  133. package/dist/types/enums/authentication-factor.d.ts +6 -0
  134. package/dist/types/enums/authenticator-type.d.ts +3 -0
  135. package/dist/types/enums/browser.d.ts +16 -0
  136. package/dist/types/enums/compression.d.ts +5 -0
  137. package/dist/types/enums/credit-card.d.ts +18 -0
  138. package/dist/types/enums/database-usage-range.d.ts +5 -0
  139. package/dist/types/enums/email-template-locale.d.ts +133 -0
  140. package/dist/types/enums/email-template-type.d.ts +9 -0
  141. package/dist/types/enums/entities/EntityLimitType.d.ts +4 -0
  142. package/dist/types/enums/entities/PropertyAttributeName.d.ts +27 -0
  143. package/dist/types/enums/entities/PropertyCondition.d.ts +7 -0
  144. package/dist/types/enums/entities/PropertyType.d.ts +12 -0
  145. package/dist/types/enums/entities/PropertyValueType.d.ts +6 -0
  146. package/dist/types/enums/entities/RowAccess.d.ts +2 -0
  147. package/dist/types/enums/entities/ViewFilterCondition.d.ts +12 -0
  148. package/dist/types/enums/execution-method.d.ts +8 -0
  149. package/dist/types/enums/flag.d.ts +197 -0
  150. package/dist/types/enums/function-usage-range.d.ts +5 -0
  151. package/dist/types/enums/image-format.d.ts +7 -0
  152. package/dist/types/enums/image-gravity.d.ts +11 -0
  153. package/dist/types/enums/index-type.d.ts +5 -0
  154. package/dist/types/enums/messaging-provider-type.d.ts +5 -0
  155. package/dist/types/enums/name.d.ts +14 -0
  156. package/dist/types/enums/o-auth-provider copy.d.ts +41 -0
  157. package/dist/types/enums/o-auth-provider.d.ts +41 -0
  158. package/dist/types/enums/password-hash.d.ts +13 -0
  159. package/dist/types/enums/platform-type.d.ts +17 -0
  160. package/dist/types/enums/project-usage-range.d.ts +4 -0
  161. package/dist/types/enums/region.d.ts +4 -0
  162. package/dist/types/enums/relation-mutate.d.ts +5 -0
  163. package/dist/types/enums/relationship-type.d.ts +6 -0
  164. package/dist/types/enums/resource-type.d.ts +4 -0
  165. package/dist/types/enums/runtime.d.ts +48 -0
  166. package/dist/types/enums/s-m-t-p-secure.d.ts +3 -0
  167. package/dist/types/enums/shared/ApplicationLayout.d.ts +4 -0
  168. package/dist/types/enums/shared/Colors.d.ts +24 -0
  169. package/dist/types/enums/shared/InputType.d.ts +6 -0
  170. package/dist/types/enums/shared/Periodicity.d.ts +7 -0
  171. package/dist/types/enums/shared/SvgIcon.d.ts +37 -0
  172. package/dist/types/enums/shared/Theme.d.ts +4 -0
  173. package/dist/types/enums/sms-template-locale.d.ts +133 -0
  174. package/dist/types/enums/sms-template-type.d.ts +6 -0
  175. package/dist/types/enums/smtp-encryption.d.ts +5 -0
  176. package/dist/types/enums/storage-usage-range.d.ts +5 -0
  177. package/dist/types/enums/subscriptions/PricingModel.d.ts +11 -0
  178. package/dist/types/enums/subscriptions/SubscriptionBillingPeriod.d.ts +10 -0
  179. package/dist/types/enums/subscriptions/SubscriptionFeatureLimitType.d.ts +10 -0
  180. package/dist/types/enums/subscriptions/SubscriptionPriceType.d.ts +7 -0
  181. package/dist/types/enums/tenants/LinkedAccountStatus.d.ts +5 -0
  182. package/dist/types/enums/tenants/TenantUserJoined.d.ts +6 -0
  183. package/dist/types/enums/tenants/TenantUserStatus.d.ts +6 -0
  184. package/dist/types/enums/tenants/TenantUserType.d.ts +5 -0
  185. package/dist/types/enums/user-usage-range.d.ts +5 -0
  186. package/dist/types/getAppcondaClient.d.ts +2 -0
  187. package/dist/types/getSDKForCurrentUser.d.ts +33 -0
  188. package/dist/types/id.d.ts +20 -0
  189. package/dist/types/index.d.ts +39 -0
  190. package/dist/types/inputFile.d.ts +6 -0
  191. package/dist/types/lib/Registry/Registry.d.ts +38 -0
  192. package/dist/types/lib/Registry/index.d.ts +1 -0
  193. package/dist/types/models.d.ts +3272 -0
  194. package/dist/types/permission.d.ts +43 -0
  195. package/dist/types/query.d.ts +194 -0
  196. package/dist/types/role.d.ts +70 -0
  197. package/dist/types/service-client.d.ts +7 -0
  198. package/dist/types/service.d.ts +11 -0
  199. package/dist/types/services/account.d.ts +530 -0
  200. package/dist/types/services/applets.d.ts +9 -0
  201. package/dist/types/services/avatars.d.ts +115 -0
  202. package/dist/types/services/community.d.ts +19 -0
  203. package/dist/types/services/configuration.d.ts +5 -0
  204. package/dist/types/services/databases.d.ts +613 -0
  205. package/dist/types/services/functions.d.ts +319 -0
  206. package/dist/types/services/graphql.d.ts +25 -0
  207. package/dist/types/services/health.d.ts +231 -0
  208. package/dist/types/services/locale.d.ts +80 -0
  209. package/dist/types/services/messaging.d.ts +685 -0
  210. package/dist/types/services/node.d.ts +5 -0
  211. package/dist/types/services/permissions.d.ts +20 -0
  212. package/dist/types/services/pricing.d.ts +15 -0
  213. package/dist/types/services/projects.d.ts +542 -0
  214. package/dist/types/services/roles.d.ts +19 -0
  215. package/dist/types/services/schema.d.ts +17 -0
  216. package/dist/types/services/storage.d.ts +189 -0
  217. package/dist/types/services/subscription.d.ts +15 -0
  218. package/dist/types/services/teams.d.ts +167 -0
  219. package/dist/types/services/tenant-subscription.d.ts +12 -0
  220. package/dist/types/services/tenant.d.ts +32 -0
  221. package/dist/types/services/users.d.ts +499 -0
  222. package/dist/types/services/waitlist.d.ts +5 -0
  223. package/package.json +1 -1
  224. package/tsconfig.json +1 -1
@@ -0,0 +1,5 @@
1
+ export declare enum SmtpEncryption {
2
+ None = "none",
3
+ Ssl = "ssl",
4
+ Tls = "tls"
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum StorageUsageRange {
2
+ TwentyFourHours = "24h",
3
+ ThirtyDays = "30d",
4
+ NinetyDays = "90d"
5
+ }
@@ -0,0 +1,11 @@
1
+ import { z } from "zod";
2
+ export declare enum PricingModel {
3
+ FLAT_RATE = 0,
4
+ PER_SEAT = 1,
5
+ USAGE_BASED = 2,
6
+ FLAT_RATE_USAGE_BASED = 3,
7
+ ONCE = 4,
8
+ ALL = 5
9
+ }
10
+ export declare const ZPricingModel: z.ZodNativeEnum<typeof PricingModel>;
11
+ export type TPricingModel = z.infer<typeof ZPricingModel>;
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ export declare enum SubscriptionBillingPeriod {
3
+ ONCE = 0,
4
+ DAILY = 1,
5
+ WEEKLY = 2,
6
+ MONTHLY = 3,
7
+ YEARLY = 4
8
+ }
9
+ export declare const ZSubscriptionBillingPeriod: z.ZodNativeEnum<typeof SubscriptionBillingPeriod>;
10
+ export type TSubscriptionBillingPeriod = z.infer<typeof ZSubscriptionBillingPeriod>;
@@ -0,0 +1,10 @@
1
+ import { z } from "zod";
2
+ export declare enum SubscriptionFeatureLimitType {
3
+ NOT_INCLUDED = 0,
4
+ INCLUDED = 1,
5
+ MONTHLY = 2,
6
+ MAX = 3,
7
+ UNLIMITED = 4
8
+ }
9
+ export declare const ZSubscriptionFeatureLimitType: z.ZodNativeEnum<typeof SubscriptionFeatureLimitType>;
10
+ export type TSubscriptionFeatureLimitType = z.infer<typeof ZSubscriptionFeatureLimitType>;
@@ -0,0 +1,7 @@
1
+ import { z } from "zod";
2
+ export declare enum SubscriptionPriceType {
3
+ ONE_TIME = 0,
4
+ RECURRING = 1
5
+ }
6
+ export declare const ZSubscriptionPriceType: z.ZodNativeEnum<typeof SubscriptionPriceType>;
7
+ export type TSubscriptionPriceType = z.infer<typeof ZSubscriptionPriceType>;
@@ -0,0 +1,5 @@
1
+ export declare enum LinkedAccountStatus {
2
+ PENDING = 0,
3
+ LINKED = 1,
4
+ REJECTED = 2
5
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum TenantUserJoined {
2
+ CREATOR = 0,
3
+ JOINED_BY_INVITATION = 1,
4
+ JOINED_BY_LINK = 2,
5
+ JOINED_BY_PUBLIC_URL = 3
6
+ }
@@ -0,0 +1,6 @@
1
+ export declare enum TenantUserStatus {
2
+ PENDING_INVITATION = 0,
3
+ PENDING_ACCEPTANCE = 1,
4
+ ACTIVE = 2,
5
+ INACTIVE = 3
6
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum TenantUserType {
2
+ OWNER = 0,
3
+ ADMIN = 1,
4
+ MEMBER = 2
5
+ }
@@ -0,0 +1,5 @@
1
+ export declare enum UserUsageRange {
2
+ TwentyFourHours = "24h",
3
+ ThirtyDays = "30d",
4
+ NinetyDays = "90d"
5
+ }
@@ -0,0 +1,2 @@
1
+ import { Client } from "./client";
2
+ export declare function getAppcondaClient(): Promise<Client>;
@@ -0,0 +1,33 @@
1
+ import { Account } from "./services/account";
2
+ import { Community } from "./services/community";
3
+ import { Configuration } from "./services/configuration";
4
+ import { Databases } from "./services/databases";
5
+ import { Pricing } from "./services/pricing";
6
+ import { Projects } from "./services/projects";
7
+ import { Roles } from "./services/roles";
8
+ import { Schemas } from "./services/schema";
9
+ import { Subscription } from "./services/subscription";
10
+ import { Teams } from "./services/teams";
11
+ import { Tenant } from "./services/tenant";
12
+ import { TenantSubscription } from "./services/tenant-subscription";
13
+ import { Users } from "./services/users";
14
+ import { Node } from "./services/node";
15
+ import { Permissions } from "./services/permissions";
16
+ export declare function getSDKForCurrentUser(): Promise<{
17
+ currentUser: import("./models").Models.User<import("./models").Models.Preferences>;
18
+ accounts: Account;
19
+ databases: Databases;
20
+ projects: Projects;
21
+ users: Users;
22
+ teams: Teams;
23
+ tenants: Tenant;
24
+ roles: Roles;
25
+ permissions: Permissions;
26
+ schemas: Schemas;
27
+ community: Community;
28
+ tenantSubscriptions: TenantSubscription;
29
+ subscription: Subscription;
30
+ pricing: Pricing;
31
+ configuration: Configuration;
32
+ node: Node;
33
+ }>;
package/dist/id.d.ts ADDED
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Helper class to generate ID strings for resources.
3
+ */
4
+ export declare class ID {
5
+ #private;
6
+ /**
7
+ * Uses the provided ID as the ID for the resource.
8
+ *
9
+ * @param {string} id
10
+ * @returns {string}
11
+ */
12
+ static custom(id: string): string;
13
+ /**
14
+ * Have Appconda generate a unique ID for you.
15
+ *
16
+ * @param {number} padding. Default is 7.
17
+ * @returns {string}
18
+ */
19
+ static unique(padding?: number): string;
20
+ }
@@ -0,0 +1,39 @@
1
+ export { Client, Query, AppcondaException } from './client';
2
+ export { Account } from './services/account';
3
+ export { Avatars } from './services/avatars';
4
+ export { Databases } from './services/databases';
5
+ export { Applets } from './services/applets';
6
+ export { Functions } from './services/functions';
7
+ export { Graphql } from './services/graphql';
8
+ export { Health } from './services/health';
9
+ export { Locale } from './services/locale';
10
+ export { Messaging } from './services/messaging';
11
+ export { Storage } from './services/storage';
12
+ export { Teams } from './services/teams';
13
+ export { Users } from './services/users';
14
+ export { Waitlist } from './services/waitlist';
15
+ export type { Models, Payload, UploadProgress } from './client';
16
+ export type { QueryTypes, QueryTypesList } from './query';
17
+ export { Permission } from './permission';
18
+ export { Role } from './role';
19
+ export { ID } from './id';
20
+ export { AuthenticatorType } from './enums/authenticator-type';
21
+ export { AuthenticationFactor } from './enums/authentication-factor';
22
+ export { OAuthProvider } from './enums/o-auth-provider';
23
+ export { Browser } from './enums/browser';
24
+ export { CreditCard } from './enums/credit-card';
25
+ export { Flag } from './enums/flag';
26
+ export { RelationshipType } from './enums/relationship-type';
27
+ export { RelationMutate } from './enums/relation-mutate';
28
+ export { IndexType } from './enums/index-type';
29
+ export { Runtime } from './enums/runtime';
30
+ export { ExecutionMethod } from './enums/execution-method';
31
+ export { Name } from './enums/name';
32
+ export { SmtpEncryption } from './enums/smtp-encryption';
33
+ export { Compression } from './enums/compression';
34
+ export { ImageGravity } from './enums/image-gravity';
35
+ export { ImageFormat } from './enums/image-format';
36
+ export { PasswordHash } from './enums/password-hash';
37
+ export { MessagingProviderType } from './enums/messaging-provider-type';
38
+ export { getSDKForCurrentUser } from './getSDKForCurrentUser';
39
+ export * from './actions';
package/dist/index.js CHANGED
@@ -1,10 +1,8 @@
1
- 'use strict';
2
-
3
- var nodeFetchNativeWithAgent = require('node-fetch-native-with-agent');
4
- var agent = require('node-fetch-native-with-agent/agent');
5
- var headers = require('next/headers');
6
- var redis = require('redis');
7
- var nextSafeAction = require('next-safe-action');
1
+ import { FormData, File, fetch } from 'node-fetch-native-with-agent';
2
+ import { createAgent } from 'node-fetch-native-with-agent/agent';
3
+ import { cookies } from 'next/headers';
4
+ import { createClient } from 'redis';
5
+ import { createSafeActionClient, DEFAULT_SERVER_ERROR_MESSAGE } from 'next-safe-action';
8
6
 
9
7
  /**
10
8
  * Helper class to generate query strings.
@@ -418,7 +416,7 @@ class Client {
418
416
  let options = {
419
417
  method,
420
418
  headers,
421
- ...agent.createAgent(this.config.endpoint, { rejectUnauthorized: !this.config.selfSigned }),
419
+ ...createAgent(this.config.endpoint, { rejectUnauthorized: !this.config.selfSigned }),
422
420
  };
423
421
  if (method === 'GET') {
424
422
  for (const [key, value] of Object.entries(Client.flatten(params))) {
@@ -431,9 +429,9 @@ class Client {
431
429
  options.body = JSON.stringify(params);
432
430
  break;
433
431
  case 'multipart/form-data':
434
- const formData = new nodeFetchNativeWithAgent.FormData();
432
+ const formData = new FormData();
435
433
  for (const [key, value] of Object.entries(params)) {
436
- if (value instanceof nodeFetchNativeWithAgent.File) {
434
+ if (value instanceof File) {
437
435
  formData.append(key, value, value.name);
438
436
  }
439
437
  else if (Array.isArray(value)) {
@@ -453,7 +451,7 @@ class Client {
453
451
  return { uri: url.toString(), options };
454
452
  }
455
453
  async chunkedUpload(method, url, headers = {}, originalPayload = {}, onProgress) {
456
- const file = Object.values(originalPayload).find((value) => value instanceof nodeFetchNativeWithAgent.File);
454
+ const file = Object.values(originalPayload).find((value) => value instanceof File);
457
455
  if (file.size <= Client.CHUNK_SIZE) {
458
456
  return await this.call(method, url, headers, originalPayload);
459
457
  }
@@ -466,7 +464,7 @@ class Client {
466
464
  }
467
465
  headers['content-range'] = `bytes ${start}-${end - 1}/${file.size}`;
468
466
  const chunk = file.slice(start, end);
469
- let payload = { ...originalPayload, file: new nodeFetchNativeWithAgent.File([chunk], file.name) };
467
+ let payload = { ...originalPayload, file: new File([chunk], file.name) };
470
468
  response = await this.call(method, url, headers, payload);
471
469
  if (onProgress && typeof onProgress === 'function') {
472
470
  onProgress({
@@ -486,7 +484,7 @@ class Client {
486
484
  }
487
485
  async redirect(method, url, headers = {}, params = {}) {
488
486
  const { uri, options } = this.prepareRequest(method, url, headers, params);
489
- const response = await nodeFetchNativeWithAgent.fetch(uri, {
487
+ const response = await fetch(uri, {
490
488
  ...options,
491
489
  redirect: 'manual'
492
490
  });
@@ -499,7 +497,7 @@ class Client {
499
497
  const { uri, options } = this.prepareRequest(method, url, headers, params);
500
498
  let data = null;
501
499
  try {
502
- const response = await nodeFetchNativeWithAgent.fetch(uri, options);
500
+ const response = await fetch(uri, options);
503
501
  const warnings = response.headers.get('x-appconda-warning');
504
502
  if (warnings) {
505
503
  warnings.split(';').forEach((warning) => console.warn('Warning: ' + warning));
@@ -9624,20 +9622,20 @@ _a = ID, _ID_hexTimestamp = function _ID_hexTimestamp() {
9624
9622
  return hexTimestamp;
9625
9623
  };
9626
9624
 
9627
- exports.AuthenticatorType = void 0;
9625
+ var AuthenticatorType;
9628
9626
  (function (AuthenticatorType) {
9629
9627
  AuthenticatorType["Totp"] = "totp";
9630
- })(exports.AuthenticatorType || (exports.AuthenticatorType = {}));
9628
+ })(AuthenticatorType || (AuthenticatorType = {}));
9631
9629
 
9632
- exports.AuthenticationFactor = void 0;
9630
+ var AuthenticationFactor;
9633
9631
  (function (AuthenticationFactor) {
9634
9632
  AuthenticationFactor["Email"] = "email";
9635
9633
  AuthenticationFactor["Phone"] = "phone";
9636
9634
  AuthenticationFactor["Totp"] = "totp";
9637
9635
  AuthenticationFactor["Recoverycode"] = "recoverycode";
9638
- })(exports.AuthenticationFactor || (exports.AuthenticationFactor = {}));
9636
+ })(AuthenticationFactor || (AuthenticationFactor = {}));
9639
9637
 
9640
- exports.OAuthProvider = void 0;
9638
+ var OAuthProvider;
9641
9639
  (function (OAuthProvider) {
9642
9640
  OAuthProvider["Amazon"] = "amazon";
9643
9641
  OAuthProvider["Apple"] = "apple";
@@ -9678,9 +9676,9 @@ exports.OAuthProvider = void 0;
9678
9676
  OAuthProvider["Zoho"] = "zoho";
9679
9677
  OAuthProvider["Zoom"] = "zoom";
9680
9678
  OAuthProvider["Mock"] = "mock";
9681
- })(exports.OAuthProvider || (exports.OAuthProvider = {}));
9679
+ })(OAuthProvider || (OAuthProvider = {}));
9682
9680
 
9683
- exports.Browser = void 0;
9681
+ var Browser;
9684
9682
  (function (Browser) {
9685
9683
  Browser["AvantBrowser"] = "aa";
9686
9684
  Browser["AndroidWebViewBeta"] = "an";
@@ -9696,9 +9694,9 @@ exports.Browser = void 0;
9696
9694
  Browser["OperaMini"] = "om";
9697
9695
  Browser["Opera"] = "op";
9698
9696
  Browser["OperaNext"] = "on";
9699
- })(exports.Browser || (exports.Browser = {}));
9697
+ })(Browser || (Browser = {}));
9700
9698
 
9701
- exports.CreditCard = void 0;
9699
+ var CreditCard;
9702
9700
  (function (CreditCard) {
9703
9701
  CreditCard["AmericanExpress"] = "amex";
9704
9702
  CreditCard["Argencard"] = "argencard";
@@ -9716,9 +9714,9 @@ exports.CreditCard = void 0;
9716
9714
  CreditCard["Visa"] = "visa";
9717
9715
  CreditCard["MIR"] = "mir";
9718
9716
  CreditCard["Maestro"] = "maestro";
9719
- })(exports.CreditCard || (exports.CreditCard = {}));
9717
+ })(CreditCard || (CreditCard = {}));
9720
9718
 
9721
- exports.Flag = void 0;
9719
+ var Flag;
9722
9720
  (function (Flag) {
9723
9721
  Flag["Afghanistan"] = "af";
9724
9722
  Flag["Angola"] = "ao";
@@ -9915,31 +9913,31 @@ exports.Flag = void 0;
9915
9913
  Flag["SouthAfrica"] = "za";
9916
9914
  Flag["Zambia"] = "zm";
9917
9915
  Flag["Zimbabwe"] = "zw";
9918
- })(exports.Flag || (exports.Flag = {}));
9916
+ })(Flag || (Flag = {}));
9919
9917
 
9920
- exports.RelationshipType = void 0;
9918
+ var RelationshipType;
9921
9919
  (function (RelationshipType) {
9922
9920
  RelationshipType["OneToOne"] = "oneToOne";
9923
9921
  RelationshipType["ManyToOne"] = "manyToOne";
9924
9922
  RelationshipType["ManyToMany"] = "manyToMany";
9925
9923
  RelationshipType["OneToMany"] = "oneToMany";
9926
- })(exports.RelationshipType || (exports.RelationshipType = {}));
9924
+ })(RelationshipType || (RelationshipType = {}));
9927
9925
 
9928
- exports.RelationMutate = void 0;
9926
+ var RelationMutate;
9929
9927
  (function (RelationMutate) {
9930
9928
  RelationMutate["Cascade"] = "cascade";
9931
9929
  RelationMutate["Restrict"] = "restrict";
9932
9930
  RelationMutate["SetNull"] = "setNull";
9933
- })(exports.RelationMutate || (exports.RelationMutate = {}));
9931
+ })(RelationMutate || (RelationMutate = {}));
9934
9932
 
9935
- exports.IndexType = void 0;
9933
+ var IndexType;
9936
9934
  (function (IndexType) {
9937
9935
  IndexType["Key"] = "key";
9938
9936
  IndexType["Fulltext"] = "fulltext";
9939
9937
  IndexType["Unique"] = "unique";
9940
- })(exports.IndexType || (exports.IndexType = {}));
9938
+ })(IndexType || (IndexType = {}));
9941
9939
 
9942
- exports.Runtime = void 0;
9940
+ var Runtime;
9943
9941
  (function (Runtime) {
9944
9942
  Runtime["Node145"] = "node-14.5";
9945
9943
  Runtime["Node160"] = "node-16.0";
@@ -9987,9 +9985,9 @@ exports.Runtime = void 0;
9987
9985
  Runtime["Cpp20"] = "cpp-20";
9988
9986
  Runtime["Bun10"] = "bun-1.0";
9989
9987
  Runtime["Go123"] = "go-1.23";
9990
- })(exports.Runtime || (exports.Runtime = {}));
9988
+ })(Runtime || (Runtime = {}));
9991
9989
 
9992
- exports.ExecutionMethod = void 0;
9990
+ var ExecutionMethod;
9993
9991
  (function (ExecutionMethod) {
9994
9992
  ExecutionMethod["GET"] = "GET";
9995
9993
  ExecutionMethod["POST"] = "POST";
@@ -9997,9 +9995,9 @@ exports.ExecutionMethod = void 0;
9997
9995
  ExecutionMethod["PATCH"] = "PATCH";
9998
9996
  ExecutionMethod["DELETE"] = "DELETE";
9999
9997
  ExecutionMethod["OPTIONS"] = "OPTIONS";
10000
- })(exports.ExecutionMethod || (exports.ExecutionMethod = {}));
9998
+ })(ExecutionMethod || (ExecutionMethod = {}));
10001
9999
 
10002
- exports.Name = void 0;
10000
+ var Name;
10003
10001
  (function (Name) {
10004
10002
  Name["V1database"] = "v1-database";
10005
10003
  Name["V1deletes"] = "v1-deletes";
@@ -10013,23 +10011,23 @@ exports.Name = void 0;
10013
10011
  Name["V1builds"] = "v1-builds";
10014
10012
  Name["V1messaging"] = "v1-messaging";
10015
10013
  Name["V1migrations"] = "v1-migrations";
10016
- })(exports.Name || (exports.Name = {}));
10014
+ })(Name || (Name = {}));
10017
10015
 
10018
- exports.SmtpEncryption = void 0;
10016
+ var SmtpEncryption;
10019
10017
  (function (SmtpEncryption) {
10020
10018
  SmtpEncryption["None"] = "none";
10021
10019
  SmtpEncryption["Ssl"] = "ssl";
10022
10020
  SmtpEncryption["Tls"] = "tls";
10023
- })(exports.SmtpEncryption || (exports.SmtpEncryption = {}));
10021
+ })(SmtpEncryption || (SmtpEncryption = {}));
10024
10022
 
10025
- exports.Compression = void 0;
10023
+ var Compression;
10026
10024
  (function (Compression) {
10027
10025
  Compression["None"] = "none";
10028
10026
  Compression["Gzip"] = "gzip";
10029
10027
  Compression["Zstd"] = "zstd";
10030
- })(exports.Compression || (exports.Compression = {}));
10028
+ })(Compression || (Compression = {}));
10031
10029
 
10032
- exports.ImageGravity = void 0;
10030
+ var ImageGravity;
10033
10031
  (function (ImageGravity) {
10034
10032
  ImageGravity["Center"] = "center";
10035
10033
  ImageGravity["Topleft"] = "top-left";
@@ -10040,18 +10038,18 @@ exports.ImageGravity = void 0;
10040
10038
  ImageGravity["Bottomleft"] = "bottom-left";
10041
10039
  ImageGravity["Bottom"] = "bottom";
10042
10040
  ImageGravity["Bottomright"] = "bottom-right";
10043
- })(exports.ImageGravity || (exports.ImageGravity = {}));
10041
+ })(ImageGravity || (ImageGravity = {}));
10044
10042
 
10045
- exports.ImageFormat = void 0;
10043
+ var ImageFormat;
10046
10044
  (function (ImageFormat) {
10047
10045
  ImageFormat["Jpg"] = "jpg";
10048
10046
  ImageFormat["Jpeg"] = "jpeg";
10049
10047
  ImageFormat["Gif"] = "gif";
10050
10048
  ImageFormat["Png"] = "png";
10051
10049
  ImageFormat["Webp"] = "webp";
10052
- })(exports.ImageFormat || (exports.ImageFormat = {}));
10050
+ })(ImageFormat || (ImageFormat = {}));
10053
10051
 
10054
- exports.PasswordHash = void 0;
10052
+ var PasswordHash;
10055
10053
  (function (PasswordHash) {
10056
10054
  PasswordHash["Sha1"] = "sha1";
10057
10055
  PasswordHash["Sha224"] = "sha224";
@@ -10064,14 +10062,14 @@ exports.PasswordHash = void 0;
10064
10062
  PasswordHash["Sha3256"] = "sha3-256";
10065
10063
  PasswordHash["Sha3384"] = "sha3-384";
10066
10064
  PasswordHash["Sha3512"] = "sha3-512";
10067
- })(exports.PasswordHash || (exports.PasswordHash = {}));
10065
+ })(PasswordHash || (PasswordHash = {}));
10068
10066
 
10069
- exports.MessagingProviderType = void 0;
10067
+ var MessagingProviderType;
10070
10068
  (function (MessagingProviderType) {
10071
10069
  MessagingProviderType["Email"] = "email";
10072
10070
  MessagingProviderType["Sms"] = "sms";
10073
10071
  MessagingProviderType["Push"] = "push";
10074
- })(exports.MessagingProviderType || (exports.MessagingProviderType = {}));
10072
+ })(MessagingProviderType || (MessagingProviderType = {}));
10075
10073
 
10076
10074
  function getPortAndHostname(urlString) {
10077
10075
  try {
@@ -12046,7 +12044,7 @@ Cache$1.caseSensitive = false;
12046
12044
 
12047
12045
  const registry = new Registry();
12048
12046
  registry.set('cache', () => {
12049
- const client = redis.createClient({
12047
+ const client = createClient({
12050
12048
  socket: {
12051
12049
  host: process.env._APP_REDIS_HOST ?? 'localhost',
12052
12050
  port: Number.parseInt(process.env._APP_REDIS_PORT ?? '6379'),
@@ -12448,7 +12446,7 @@ class Permissions {
12448
12446
 
12449
12447
  async function getSDKForCurrentUser() {
12450
12448
  const adminClient = await getAppcondaClient();
12451
- const c = await headers.cookies();
12449
+ const c = await cookies();
12452
12450
  const s = c.get('a_session') || c.get('a_session_console_legacy');
12453
12451
  if (!s || !s.value) {
12454
12452
  throw new Error("No session");
@@ -12492,7 +12490,7 @@ async function getSDKForCurrentUser() {
12492
12490
  };
12493
12491
  }
12494
12492
 
12495
- const actionClient = nextSafeAction.createSafeActionClient({
12493
+ const actionClient = createSafeActionClient({
12496
12494
  handleServerError(e) {
12497
12495
  /* if (
12498
12496
  e instanceof ResourceNotFoundError ||
@@ -12507,7 +12505,7 @@ const actionClient = nextSafeAction.createSafeActionClient({
12507
12505
  } */
12508
12506
  // eslint-disable-next-line no-console -- This error needs to be logged for debugging server-side errors
12509
12507
  console.error("SERVER ERROR: ", e);
12510
- return nextSafeAction.DEFAULT_SERVER_ERROR_MESSAGE;
12508
+ return DEFAULT_SERVER_ERROR_MESSAGE;
12511
12509
  },
12512
12510
  });
12513
12511
  /* export const authenticatedActionClient = actionClient.use(async ({ next }) => {
@@ -12534,6 +12532,15 @@ const getAllNodesAction = actionClient
12534
12532
  return await node.GetAllNodes();
12535
12533
  });
12536
12534
 
12535
+ export { Account, AppcondaException, Applets, AuthenticationFactor, AuthenticatorType, Avatars, Browser, Client, Compression, CreditCard, Databases, ExecutionMethod, Flag, Functions, Graphql, Health, ID, ImageFormat, ImageGravity, IndexType, Locale, Messaging, MessagingProviderType, Name, OAuthProvider, PasswordHash, Permission, Query, RelationMutate, RelationshipType, Role, Runtime, SmtpEncryption, Storage, Teams, Users, Waitlist, getAllNodesAction, getSDKForCurrentUser };
12536
+ //# sourceMappingURL=index.js.map
12537
+ ent
12538
+ // .schema(listModelsSchema)
12539
+ .action(async ({ parsedInput }) => {
12540
+ const { node } = await getSDKForCurrentUser();
12541
+ return await node.GetAllNodes();
12542
+ });
12543
+
12537
12544
  exports.Account = Account;
12538
12545
  exports.AppcondaException = AppcondaException;
12539
12546
  exports.Applets = Applets;