Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@directus/sdk

Package Overview
Dependencies
Maintainers
2
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@directus/sdk - npm Package Compare versions

Comparing version 12.0.0 to 12.0.1

dist/chunk-42TA54KX.js

4

dist/auth/index.d.ts
import { D as DirectusClient } from '../client-5fa2f889.js';
import { A as AuthenticationMode, c as AuthenticationConfig, d as AuthenticationClient, S as StaticTokenClient, b as AuthenticationStorage } from '../login-170db6ff.js';
export { a as AuthenticationData } from '../login-170db6ff.js';
import { A as AuthenticationMode, c as AuthenticationConfig, d as AuthenticationClient, S as StaticTokenClient, b as AuthenticationStorage } from '../login-93da9005.js';
export { a as AuthenticationData } from '../login-93da9005.js';

@@ -5,0 +5,0 @@ /**

@@ -1,2 +0,2 @@

import{a,b,c}from"../chunk-74XE5VTR.js";import"../chunk-7KQ2R3YI.js";export{b as authentication,a as memoryStorage,c as staticToken};
import{a,b,c}from"../chunk-42TA54KX.js";import"../chunk-H2IAC3N4.js";export{b as authentication,a as memoryStorage,c as staticToken};
//# sourceMappingURL=index.js.map

@@ -7,3 +7,3 @@ import { D as DirectusClient } from '../client-5fa2f889.js';

interface GraphqlConfig {
credentials: RequestCredentials;
credentials?: RequestCredentials;
}

@@ -10,0 +10,0 @@ type GqlResult<Schema extends object, Collection extends keyof Schema> = {

@@ -1,2 +0,2 @@

import{e as a}from"../chunk-74XE5VTR.js";import"../chunk-7KQ2R3YI.js";export{a as graphql};
import{e as a}from"../chunk-42TA54KX.js";import"../chunk-H2IAC3N4.js";export{a as graphql};
//# sourceMappingURL=index.js.map
export { authentication, memoryStorage, staticToken } from './auth/index.js';
export { d as AuthenticationClient, c as AuthenticationConfig, a as AuthenticationData, A as AuthenticationMode, b as AuthenticationStorage, H as HttpMethod, L as LoginOptions, g as RequestOptions, h as RequestTransformer, i as ResponseTransformer, e as RestClient, R as RestCommand, f as RestConfig, S as StaticTokenClient, l as login } from './login-170db6ff.js';
export { d as AuthenticationClient, c as AuthenticationConfig, a as AuthenticationData, A as AuthenticationMode, b as AuthenticationStorage, H as HttpMethod, L as LoginOptions, g as RequestOptions, h as RequestTransformer, i as ResponseTransformer, e as RestClient, R as RestCommand, f as RestConfig, S as StaticTokenClient, l as login } from './login-93da9005.js';
import { C as ClientOptions, D as DirectusClient } from './client-5fa2f889.js';

@@ -7,4 +7,4 @@ export { a as ClientGlobals } from './client-5fa2f889.js';

export { EmailAuth, RefreshAuth, TokenAuth, auth, generateUid, messageCallback, pong, realtime, sleep } from './realtime/index.js';
export { aj as AllCollections, $ as ApplyManyToAnyFields, a0 as ApplyNestedQueryFields, _ as ApplyQueryFields, C as CollectionMetaTranslationType, ab as CollectionType, ai as CompleteSchema, j as CoreSchema, D as DirectusActivity, i as DirectusCollection, k as DirectusDashboard, l as DirectusField, o as DirectusFile, p as DirectusFlow, q as DirectusFolder, r as DirectusNotification, s as DirectusOperation, t as DirectusPanel, u as DirectusPermission, v as DirectusPreset, w as DirectusRelation, x as DirectusRevision, y as DirectusRole, z as DirectusSettings, A as DirectusShare, B as DirectusUser, E as DirectusWebhook, a3 as ExtractItem, a4 as ExtractRelation, m as FieldMetaConditionOptionType, F as FieldMetaConditionType, n as FieldMetaTranslationType, L as FieldsWildcard, U as FilterOperators, ak as GetCollection, al as GetCollectionName, J as HasManyToAnyRelation, K as HasNestedFields, aq as IfAny, ar as IsAny, as as IsNullable, aa as ItemType, Y as LogicalFilterOperators, M as ManyToAnyFields, ao as Merge, ah as MergeCoreCollection, a6 as MergeFields, a8 as MergeObjects, a5 as MergeRelationalFields, am as Mutable, at as NestedPartial, T as NestedQueryFilter, ap as NeverToUnknown, N as PickFlatFields, P as PickRelationalFields, ae as PrimitiveFields, a2 as Query, a9 as QueryAlias, Q as QueryDeep, G as QueryFields, I as QueryFieldsRelational, O as QueryFilter, a7 as QuerySort, ad as RegularCollections, a1 as RelationNullable, af as RelationalFields, V as RelationalFilterOperators, R as RemoveEventHandler, ag as RemoveRelationships, ac as SingletonCollections, S as SubscribeOptions, f as SubscriptionEvents, e as SubscriptionOptionsEvents, g as SubscriptionOutput, h as SubscriptionPayload, an as UnpackList, W as WebSocketAuthModes, d as WebSocketClient, a as WebSocketConfig, c as WebSocketEventHandler, b as WebSocketEvents, Z as WrapLogicalFilters, H as WrapQueryFields, X as WrapRelationalFilters } from './output-35b496cf.js';
export { dg as AggregateRecord, di as AggregationOptions, dj as AggregationOutput, df as AggregationTypes, C as CreateActivityOutput, d as CreateCollectionOutput, f as CreateDashboardOutput, i as CreateFieldOutput, k as CreateFileOutput, n as CreateFlowOutput, s as CreateFolderOutput, w as CreateItemOutput, z as CreateNotificationOutput, D as CreateOperationOutput, G as CreatePanelOutput, J as CreatePermissionOutput, M as CreatePresetOutput, P as CreateRelationOutput, S as CreateRoleOutput, V as CreateShareOutput, Y as CreateTranslationOutput, $ as CreateUserOutput, a2 as CreateWebhookOutput, dd as DirectusTranslation, aO as ExtensionTypes, cS as FileFormat, dh as GroupByFields, de as GroupingFunctions, bU as OpenApiSpecOutput, aD as ReadActivityOutput, aH as ReadCollectionOutput, aK as ReadDashboardOutput, aN as ReadExtensionOutput, aQ as ReadFieldOutput, aU as ReadFileOutput, aX as ReadFlowOutput, a_ as ReadFolderOutput, b1 as ReadItemOutput, b4 as ReadNotificationOutput, b7 as ReadOperationOutput, ba as ReadPanelOutput, bd as ReadPermissionOutput, bg as ReadPresetOutput, R as ReadProviderOutput, bj as ReadRelationOutput, bn as ReadRevisionOutput, bq as ReadRoleOutput, bt as ReadSettingOutput, bv as ReadShareOutput, by as ReadSingletonOutput, bA as ReadTranslationOutput, bD as ReadUserOutput, bH as ReadWebhookOutput, bL as SchemaDiffOutput, bN as SchemaSnapshotOutput, bQ as ServerHealthOutput, bS as ServerInfoOutput, bX as UpdateActivityOutput, bZ as UpdateCollectionOutput, b$ as UpdateDashboardOutput, c2 as UpdateFieldOutput, c4 as UpdateFileOutput, c7 as UpdateFlowOutput, ca as UpdateFolderOutput, cd as UpdateItemOutput, cg as UpdateNotificationOutput, cj as UpdateOperationOutput, cm as UpdatePanelOutput, cp as UpdatePermissionOutput, cs as UpdatePresetOutput, cv as UpdateRelationOutput, cx as UpdateRoleOutput, cA as UpdateSettingOutput, cC as UpdateShareOutput, cF as UpdateSingletonOutput, cH as UpdateTranslationOutput, cK as UpdateUserOutput, cO as UpdateWebhookOutput, d2 as acceptUserInvite, aG as aggregate, cZ as authenticateShare, cR as clearCache, e as createCollection, c as createComment, h as createDashboard, g as createDashboards, j as createField, q as createFlow, o as createFlows, v as createFolder, t as createFolders, y as createItem, x as createItems, B as createNotification, A as createNotifications, F as createOperation, E as createOperations, I as createPanel, H as createPanels, L as createPermission, K as createPermissions, O as createPreset, N as createPresets, Q as createRelation, U as createRole, T as createRoles, X as createShare, W as createShares, _ as createTranslation, Z as createTranslations, a1 as createUser, a0 as createUsers, a4 as createWebhook, a3 as createWebhooks, a6 as deleteCollection, a5 as deleteComment, a8 as deleteDashboard, a7 as deleteDashboards, a9 as deleteField, ab as deleteFile, aa as deleteFiles, ad as deleteFlow, ac as deleteFlows, af as deleteFolder, ae as deleteFolders, ah as deleteItem, ag as deleteItems, aj as deleteNotification, ai as deleteNotifications, al as deleteOperation, ak as deleteOperations, an as deletePanel, am as deletePanels, ap as deletePermission, ao as deletePermissions, ar as deletePreset, aq as deletePresets, as as deleteRelation, au as deleteRole, at as deleteRoles, aw as deleteShare, av as deleteShares, ay as deleteTranslation, ax as deleteTranslations, aA as deleteUser, az as deleteUsers, aC as deleteWebhook, aB as deleteWebhooks, d5 as disableTwoFactor, d4 as enableTwoFactor, cV as generateHash, d3 as generateTwoFactorSecret, m as importFile, c_ as inviteShare, d1 as inviteUser, l as logout, p as passwordRequest, a as passwordReset, da as queryToParams, aE as readActivities, aF as readActivity, aJ as readCollection, aI as readCollections, aM as readDashboard, aL as readDashboards, aP as readExtensions, aT as readField, aR as readFields, aS as readFieldsByCollection, aW as readFile, aV as readFiles, aZ as readFlow, aY as readFlows, b0 as readFolder, a$ as readFolders, bP as readGraphqlSdl, b3 as readItem, b2 as readItems, bG as readMe, b6 as readNotification, b5 as readNotifications, bV as readOpenApiSpec, b9 as readOperation, b8 as readOperations, bc as readPanel, bb as readPanels, bf as readPermission, be as readPermissions, bi as readPreset, bh as readPresets, r as readProviders, bm as readRelation, bl as readRelationByCollection, bk as readRelations, bp as readRevision, bo as readRevisions, bs as readRole, br as readRoles, bu as readSettings, bx as readShare, c$ as readShareInfo, bw as readShares, bz as readSingleton, bC as readTranslation, bB as readTranslations, bF as readUser, bE as readUsers, bJ as readWebhook, bI as readWebhooks, b as refresh, d6 as rest, bK as schemaApply, bM as schemaDiff, bO as schemaSnapshot, bR as serverHealth, bT as serverInfo, bW as serverPing, dc as throwIfCoreCollection, db as throwIfEmpty, cU as triggerFlow, cY as triggerOperation, b_ as updateCollection, bY as updateComment, c1 as updateDashboard, c0 as updateDashboards, c3 as updateField, c6 as updateFile, c5 as updateFiles, c9 as updateFlow, c8 as updateFlows, cc as updateFolder, cb as updateFolders, cf as updateItem, ce as updateItems, cN as updateMe, ci as updateNotification, ch as updateNotifications, cl as updateOperation, ck as updateOperations, co as updatePanel, cn as updatePanels, cr as updatePermission, cq as updatePermissions, cu as updatePreset, ct as updatePresets, cw as updateRelation, cz as updateRole, cy as updateRoles, cB as updateSettings, cE as updateShare, cD as updateShares, cG as updateSingleton, cJ as updateTranslation, cI as updateTranslations, cM as updateUser, cL as updateUsers, cQ as updateWebhook, cP as updateWebhooks, u as uploadFiles, d0 as utilitySort, cT as utilsExport, cX as utilsImport, cW as verifyHash, d7 as withOptions, d8 as withSearch, d9 as withToken } from './index-a2b3b0f1.js';
export { aj as AllCollections, $ as ApplyManyToAnyFields, a0 as ApplyNestedQueryFields, _ as ApplyQueryFields, C as CollectionMetaTranslationType, ab as CollectionType, ai as CompleteSchema, j as CoreSchema, D as DirectusActivity, i as DirectusCollection, k as DirectusDashboard, l as DirectusField, o as DirectusFile, p as DirectusFlow, q as DirectusFolder, r as DirectusNotification, s as DirectusOperation, t as DirectusPanel, u as DirectusPermission, v as DirectusPreset, w as DirectusRelation, x as DirectusRevision, y as DirectusRole, z as DirectusSettings, A as DirectusShare, B as DirectusUser, E as DirectusWebhook, a3 as ExtractItem, a4 as ExtractRelation, m as FieldMetaConditionOptionType, F as FieldMetaConditionType, n as FieldMetaTranslationType, L as FieldsWildcard, U as FilterOperators, ak as GetCollection, al as GetCollectionName, J as HasManyToAnyRelation, K as HasNestedFields, aq as IfAny, ar as IsAny, as as IsNullable, aa as ItemType, Y as LogicalFilterOperators, M as ManyToAnyFields, ao as Merge, ah as MergeCoreCollection, a6 as MergeFields, a8 as MergeObjects, a5 as MergeRelationalFields, am as Mutable, at as NestedPartial, T as NestedQueryFilter, ap as NeverToUnknown, N as PickFlatFields, P as PickRelationalFields, ae as PrimitiveFields, a2 as Query, a9 as QueryAlias, Q as QueryDeep, G as QueryFields, I as QueryFieldsRelational, O as QueryFilter, a7 as QuerySort, ad as RegularCollections, a1 as RelationNullable, af as RelationalFields, V as RelationalFilterOperators, R as RemoveEventHandler, ag as RemoveRelationships, ac as SingletonCollections, S as SubscribeOptions, f as SubscriptionEvents, e as SubscriptionOptionsEvents, g as SubscriptionOutput, h as SubscriptionPayload, an as UnpackList, W as WebSocketAuthModes, d as WebSocketClient, a as WebSocketConfig, c as WebSocketEventHandler, b as WebSocketEvents, Z as WrapLogicalFilters, H as WrapQueryFields, X as WrapRelationalFilters } from './output-3ec42865.js';
export { dg as AggregateRecord, di as AggregationOptions, dj as AggregationOutput, df as AggregationTypes, C as CreateActivityOutput, d as CreateCollectionOutput, f as CreateDashboardOutput, i as CreateFieldOutput, k as CreateFileOutput, n as CreateFlowOutput, s as CreateFolderOutput, w as CreateItemOutput, z as CreateNotificationOutput, D as CreateOperationOutput, G as CreatePanelOutput, J as CreatePermissionOutput, M as CreatePresetOutput, P as CreateRelationOutput, S as CreateRoleOutput, V as CreateShareOutput, Y as CreateTranslationOutput, $ as CreateUserOutput, a2 as CreateWebhookOutput, dd as DirectusTranslation, aO as ExtensionTypes, cS as FileFormat, dh as GroupByFields, de as GroupingFunctions, bU as OpenApiSpecOutput, aD as ReadActivityOutput, aH as ReadCollectionOutput, aK as ReadDashboardOutput, aN as ReadExtensionOutput, aQ as ReadFieldOutput, aU as ReadFileOutput, aX as ReadFlowOutput, a_ as ReadFolderOutput, b1 as ReadItemOutput, b4 as ReadNotificationOutput, b7 as ReadOperationOutput, ba as ReadPanelOutput, bd as ReadPermissionOutput, bg as ReadPresetOutput, R as ReadProviderOutput, bj as ReadRelationOutput, bn as ReadRevisionOutput, bq as ReadRoleOutput, bt as ReadSettingOutput, bv as ReadShareOutput, by as ReadSingletonOutput, bA as ReadTranslationOutput, bD as ReadUserOutput, bH as ReadWebhookOutput, bL as SchemaDiffOutput, bN as SchemaSnapshotOutput, bQ as ServerHealthOutput, bS as ServerInfoOutput, bX as UpdateActivityOutput, bZ as UpdateCollectionOutput, b$ as UpdateDashboardOutput, c2 as UpdateFieldOutput, c4 as UpdateFileOutput, c7 as UpdateFlowOutput, ca as UpdateFolderOutput, cd as UpdateItemOutput, cg as UpdateNotificationOutput, cj as UpdateOperationOutput, cm as UpdatePanelOutput, cp as UpdatePermissionOutput, cs as UpdatePresetOutput, cv as UpdateRelationOutput, cx as UpdateRoleOutput, cA as UpdateSettingOutput, cC as UpdateShareOutput, cF as UpdateSingletonOutput, cH as UpdateTranslationOutput, cK as UpdateUserOutput, cO as UpdateWebhookOutput, d2 as acceptUserInvite, aG as aggregate, cZ as authenticateShare, cR as clearCache, e as createCollection, c as createComment, h as createDashboard, g as createDashboards, j as createField, q as createFlow, o as createFlows, v as createFolder, t as createFolders, y as createItem, x as createItems, B as createNotification, A as createNotifications, F as createOperation, E as createOperations, I as createPanel, H as createPanels, L as createPermission, K as createPermissions, O as createPreset, N as createPresets, Q as createRelation, U as createRole, T as createRoles, X as createShare, W as createShares, _ as createTranslation, Z as createTranslations, a1 as createUser, a0 as createUsers, a4 as createWebhook, a3 as createWebhooks, a6 as deleteCollection, a5 as deleteComment, a8 as deleteDashboard, a7 as deleteDashboards, a9 as deleteField, ab as deleteFile, aa as deleteFiles, ad as deleteFlow, ac as deleteFlows, af as deleteFolder, ae as deleteFolders, ah as deleteItem, ag as deleteItems, aj as deleteNotification, ai as deleteNotifications, al as deleteOperation, ak as deleteOperations, an as deletePanel, am as deletePanels, ap as deletePermission, ao as deletePermissions, ar as deletePreset, aq as deletePresets, as as deleteRelation, au as deleteRole, at as deleteRoles, aw as deleteShare, av as deleteShares, ay as deleteTranslation, ax as deleteTranslations, aA as deleteUser, az as deleteUsers, aC as deleteWebhook, aB as deleteWebhooks, d5 as disableTwoFactor, d4 as enableTwoFactor, cV as generateHash, d3 as generateTwoFactorSecret, m as importFile, c_ as inviteShare, d1 as inviteUser, l as logout, p as passwordRequest, a as passwordReset, da as queryToParams, aE as readActivities, aF as readActivity, aJ as readCollection, aI as readCollections, aM as readDashboard, aL as readDashboards, aP as readExtensions, aT as readField, aR as readFields, aS as readFieldsByCollection, aW as readFile, aV as readFiles, aZ as readFlow, aY as readFlows, b0 as readFolder, a$ as readFolders, bP as readGraphqlSdl, b3 as readItem, b2 as readItems, bG as readMe, b6 as readNotification, b5 as readNotifications, bV as readOpenApiSpec, b9 as readOperation, b8 as readOperations, bc as readPanel, bb as readPanels, bf as readPermission, be as readPermissions, bi as readPreset, bh as readPresets, r as readProviders, bm as readRelation, bl as readRelationByCollection, bk as readRelations, bp as readRevision, bo as readRevisions, bs as readRole, br as readRoles, bu as readSettings, bx as readShare, c$ as readShareInfo, bw as readShares, bz as readSingleton, bC as readTranslation, bB as readTranslations, bF as readUser, bE as readUsers, bJ as readWebhook, bI as readWebhooks, b as refresh, d6 as rest, bK as schemaApply, bM as schemaDiff, bO as schemaSnapshot, bR as serverHealth, bT as serverInfo, bW as serverPing, dc as throwIfCoreCollection, db as throwIfEmpty, cU as triggerFlow, cY as triggerOperation, b_ as updateCollection, bY as updateComment, c1 as updateDashboard, c0 as updateDashboards, c3 as updateField, c6 as updateFile, c5 as updateFiles, c9 as updateFlow, c8 as updateFlows, cc as updateFolder, cb as updateFolders, cf as updateItem, ce as updateItems, cN as updateMe, ci as updateNotification, ch as updateNotifications, cl as updateOperation, ck as updateOperations, co as updatePanel, cn as updatePanels, cr as updatePermission, cq as updatePermissions, cu as updatePreset, ct as updatePresets, cw as updateRelation, cz as updateRole, cy as updateRoles, cB as updateSettings, cE as updateShare, cD as updateShares, cG as updateSingleton, cJ as updateTranslation, cI as updateTranslations, cM as updateUser, cL as updateUsers, cQ as updateWebhook, cP as updateWebhooks, u as uploadFiles, d0 as utilitySort, cT as utilsExport, cX as utilsImport, cW as verifyHash, d7 as withOptions, d8 as withSearch, d9 as withToken } from './index-5c47c85c.js';

@@ -11,0 +11,0 @@ /**

@@ -1,2 +0,2 @@

import{$ as fa,$a as fb,$b as fc,A as G,Aa as Ga,Ab as Gb,Ac as Gc,B as H,Ba as Ha,Bb as Hb,Bc as Hc,C as I,Ca as Ia,Cb as Ib,Cc as Ic,D as J,Da as Ja,Db as Jb,Dc as Jc,E as K,Ea as Ka,Eb as Kb,Ec as Kc,F as L,Fa as La,Fb as Lb,Fc as Lc,G as M,Ga as Ma,Gb as Mb,H as N,Ha as Na,Hb as Nb,I as O,Ia as Oa,Ib as Ob,J as P,Ja as Pa,Jb as Pb,K as Q,Ka as Qa,Kb as Qb,L as R,La as Ra,Lb as Rb,M as S,Ma as Sa,Mb as Sb,N as T,Na as Ta,Nb as Tb,O as U,Oa as Ua,Ob as Ub,P as V,Pa as Va,Pb as Vb,Q as W,Qa as Wa,Qb as Wb,R as X,Ra as Xa,Rb as Xb,S as Y,Sa as Ya,Sb as Yb,T as Z,Ta as Za,Tb as Zb,U as _,Ua as _a,Ub as _b,V as $,Va as $a,Vb as $b,W as aa,Wa as ab,Wb as ac,X as ba,Xa as bb,Xb as bc,Y as ca,Ya as cb,Yb as cc,Z as da,Za as db,Zb as dc,_ as ea,_a as eb,_b as ec,a,aa as ga,ab as gb,ac as gc,b,ba as ha,bb as hb,bc as hc,c,ca as ia,cb as ib,cc as ic,d,da as ja,db as jb,dc as jc,e,ea as ka,eb as kb,ec as kc,f as l,fa as la,fb as lb,fc as lc,g as m,ga as ma,gb as mb,gc as mc,h as n,ha as na,hb as nb,hc as nc,i as o,ia as oa,ib as ob,ic as oc,j as p,ja as pa,jb as pb,jc as pc,k as q,ka as qa,kb as qb,kc as qc,l as r,la as ra,lb as rb,lc as rc,m as s,ma as sa,mb as sb,mc as sc,n as t,na as ta,nb as tb,nc as tc,o as u,oa as ua,ob as ub,oc as uc,p as v,pa as va,pb as vb,pc as vc,q as w,qa as wa,qb as wb,qc as wc,r as x,ra as xa,rb as xb,rc as xc,s as y,sa as ya,sb as yb,sc as yc,t as z,ta as za,tb as zb,tc as zc,u as A,ua as Aa,ub as Ab,uc as Ac,v as B,va as Ba,vb as Bb,vc as Bc,w as C,wa as Ca,wb as Cb,wc as Cc,x as D,xa as Da,xb as Db,xc as Dc,y as E,ya as Ea,yb as Eb,yc as Ec,z as F,za as Fa,zb as Fb,zc as Fc}from"./chunk-74XE5VTR.js";import{a as f,b as g,c as h,d as i,e as j,f as k}from"./chunk-7KQ2R3YI.js";export{Ec as acceptUserInvite,Ka as aggregate,f as auth,zc as authenticateShare,b as authentication,sc as clearCache,s as createCollection,r as createComment,u as createDashboard,t as createDashboards,d as createDirectus,v as createField,z as createFlow,y as createFlows,B as createFolder,A as createFolders,D as createItem,C as createItems,F as createNotification,E as createNotifications,H as createOperation,G as createOperations,J as createPanel,I as createPanels,L as createPermission,K as createPermissions,N as createPreset,M as createPresets,O as createRelation,Q as createRole,P as createRoles,S as createShare,R as createShares,U as createTranslation,T as createTranslations,W as createUser,V as createUsers,Y as createWebhook,X as createWebhooks,_ as deleteCollection,Z as deleteComment,da as deleteDashboard,ca as deleteDashboards,ea as deleteField,ga as deleteFile,fa as deleteFiles,ia as deleteFlow,ha as deleteFlows,ka as deleteFolder,ja as deleteFolders,ma as deleteItem,la as deleteItems,oa as deleteNotification,na as deleteNotifications,qa as deleteOperation,pa as deleteOperations,sa as deletePanel,ra as deletePanels,ua as deletePermission,ta as deletePermissions,wa as deletePreset,va as deletePresets,xa as deleteRelation,za as deleteRole,ya as deleteRoles,Ba as deleteShare,Aa as deleteShares,Da as deleteTranslation,Ca as deleteTranslations,Fa as deleteUser,Ea as deleteUsers,Ha as deleteWebhook,Ga as deleteWebhooks,Hc as disableTwoFactor,Gc as enableTwoFactor,vc as generateHash,Fc as generateTwoFactorSecret,i as generateUid,e as graphql,x as importFile,Ac as inviteShare,Dc as inviteUser,l as login,m as logout,a as memoryStorage,h as messageCallback,n as passwordRequest,o as passwordReset,g as pong,$ as queryToParams,Ia as readActivities,Ja as readActivity,Ma as readCollection,La as readCollections,Oa as readDashboard,Na as readDashboards,Pa as readExtensions,Sa as readField,Qa as readFields,Ra as readFieldsByCollection,Ua as readFile,Ta as readFiles,Wa as readFlow,Va as readFlows,Ya as readFolder,Xa as readFolders,Eb as readGraphqlSdl,_a as readItem,Za as readItems,yb as readMe,ab as readNotification,$a as readNotifications,Hb as readOpenApiSpec,cb as readOperation,bb as readOperations,eb as readPanel,db as readPanels,gb as readPermission,fb as readPermissions,ib as readPreset,hb as readPresets,p as readProviders,lb as readRelation,kb as readRelationByCollection,jb as readRelations,nb as readRevision,mb as readRevisions,pb as readRole,ob as readRoles,qb as readSettings,sb as readShare,Bc as readShareInfo,rb as readShares,tb as readSingleton,vb as readTranslation,ub as readTranslations,xb as readUser,wb as readUsers,Ab as readWebhook,zb as readWebhooks,j as realtime,q as refresh,Ic as rest,Bb as schemaApply,Cb as schemaDiff,Db as schemaSnapshot,Fb as serverHealth,Gb as serverInfo,Ib as serverPing,k as sleep,c as staticToken,ba as throwIfCoreCollection,aa as throwIfEmpty,uc as triggerFlow,yc as triggerOperation,Kb as updateCollection,Jb as updateComment,Mb as updateDashboard,Lb as updateDashboards,Nb as updateField,Pb as updateFile,Ob as updateFiles,Rb as updateFlow,Qb as updateFlows,Tb as updateFolder,Sb as updateFolders,Vb as updateItem,Ub as updateItems,pc as updateMe,Xb as updateNotification,Wb as updateNotifications,Zb as updateOperation,Yb as updateOperations,$b as updatePanel,_b as updatePanels,bc as updatePermission,ac as updatePermissions,dc as updatePreset,cc as updatePresets,ec as updateRelation,gc as updateRole,fc as updateRoles,hc as updateSettings,jc as updateShare,ic as updateShares,kc as updateSingleton,mc as updateTranslation,lc as updateTranslations,oc as updateUser,nc as updateUsers,rc as updateWebhook,qc as updateWebhooks,w as uploadFiles,Cc as utilitySort,tc as utilsExport,xc as utilsImport,wc as verifyHash,Jc as withOptions,Kc as withSearch,Lc as withToken};
import{$ as fa,$a as fb,$b as fc,A as G,Aa as Ga,Ab as Gb,Ac as Gc,B as H,Ba as Ha,Bb as Hb,Bc as Hc,C as I,Ca as Ia,Cb as Ib,Cc as Ic,D as J,Da as Ja,Db as Jb,Dc as Jc,E as K,Ea as Ka,Eb as Kb,Ec as Kc,F as L,Fa as La,Fb as Lb,Fc as Lc,G as M,Ga as Ma,Gb as Mb,H as N,Ha as Na,Hb as Nb,I as O,Ia as Oa,Ib as Ob,J as P,Ja as Pa,Jb as Pb,K as Q,Ka as Qa,Kb as Qb,L as R,La as Ra,Lb as Rb,M as S,Ma as Sa,Mb as Sb,N as T,Na as Ta,Nb as Tb,O as U,Oa as Ua,Ob as Ub,P as V,Pa as Va,Pb as Vb,Q as W,Qa as Wa,Qb as Wb,R as X,Ra as Xa,Rb as Xb,S as Y,Sa as Ya,Sb as Yb,T as Z,Ta as Za,Tb as Zb,U as _,Ua as _a,Ub as _b,V as $,Va as $a,Vb as $b,W as aa,Wa as ab,Wb as ac,X as ba,Xa as bb,Xb as bc,Y as ca,Ya as cb,Yb as cc,Z as da,Za as db,Zb as dc,_ as ea,_a as eb,_b as ec,a,aa as ga,ab as gb,ac as gc,b,ba as ha,bb as hb,bc as hc,c,ca as ia,cb as ib,cc as ic,d,da as ja,db as jb,dc as jc,e,ea as ka,eb as kb,ec as kc,f as l,fa as la,fb as lb,fc as lc,g as m,ga as ma,gb as mb,gc as mc,h as n,ha as na,hb as nb,hc as nc,i as o,ia as oa,ib as ob,ic as oc,j as p,ja as pa,jb as pb,jc as pc,k as q,ka as qa,kb as qb,kc as qc,l as r,la as ra,lb as rb,lc as rc,m as s,ma as sa,mb as sb,mc as sc,n as t,na as ta,nb as tb,nc as tc,o as u,oa as ua,ob as ub,oc as uc,p as v,pa as va,pb as vb,pc as vc,q as w,qa as wa,qb as wb,qc as wc,r as x,ra as xa,rb as xb,rc as xc,s as y,sa as ya,sb as yb,sc as yc,t as z,ta as za,tb as zb,tc as zc,u as A,ua as Aa,ub as Ab,uc as Ac,v as B,va as Ba,vb as Bb,vc as Bc,w as C,wa as Ca,wb as Cb,wc as Cc,x as D,xa as Da,xb as Db,xc as Dc,y as E,ya as Ea,yb as Eb,yc as Ec,z as F,za as Fa,zb as Fb,zc as Fc}from"./chunk-42TA54KX.js";import{a as f,b as g,c as h,d as i,e as j,f as k}from"./chunk-H2IAC3N4.js";export{Ec as acceptUserInvite,Ka as aggregate,f as auth,zc as authenticateShare,b as authentication,sc as clearCache,s as createCollection,r as createComment,u as createDashboard,t as createDashboards,d as createDirectus,v as createField,z as createFlow,y as createFlows,B as createFolder,A as createFolders,D as createItem,C as createItems,F as createNotification,E as createNotifications,H as createOperation,G as createOperations,J as createPanel,I as createPanels,L as createPermission,K as createPermissions,N as createPreset,M as createPresets,O as createRelation,Q as createRole,P as createRoles,S as createShare,R as createShares,U as createTranslation,T as createTranslations,W as createUser,V as createUsers,Y as createWebhook,X as createWebhooks,_ as deleteCollection,Z as deleteComment,da as deleteDashboard,ca as deleteDashboards,ea as deleteField,ga as deleteFile,fa as deleteFiles,ia as deleteFlow,ha as deleteFlows,ka as deleteFolder,ja as deleteFolders,ma as deleteItem,la as deleteItems,oa as deleteNotification,na as deleteNotifications,qa as deleteOperation,pa as deleteOperations,sa as deletePanel,ra as deletePanels,ua as deletePermission,ta as deletePermissions,wa as deletePreset,va as deletePresets,xa as deleteRelation,za as deleteRole,ya as deleteRoles,Ba as deleteShare,Aa as deleteShares,Da as deleteTranslation,Ca as deleteTranslations,Fa as deleteUser,Ea as deleteUsers,Ha as deleteWebhook,Ga as deleteWebhooks,Hc as disableTwoFactor,Gc as enableTwoFactor,vc as generateHash,Fc as generateTwoFactorSecret,i as generateUid,e as graphql,x as importFile,Ac as inviteShare,Dc as inviteUser,l as login,m as logout,a as memoryStorage,h as messageCallback,n as passwordRequest,o as passwordReset,g as pong,$ as queryToParams,Ia as readActivities,Ja as readActivity,Ma as readCollection,La as readCollections,Oa as readDashboard,Na as readDashboards,Pa as readExtensions,Sa as readField,Qa as readFields,Ra as readFieldsByCollection,Ua as readFile,Ta as readFiles,Wa as readFlow,Va as readFlows,Ya as readFolder,Xa as readFolders,Eb as readGraphqlSdl,_a as readItem,Za as readItems,yb as readMe,ab as readNotification,$a as readNotifications,Hb as readOpenApiSpec,cb as readOperation,bb as readOperations,eb as readPanel,db as readPanels,gb as readPermission,fb as readPermissions,ib as readPreset,hb as readPresets,p as readProviders,lb as readRelation,kb as readRelationByCollection,jb as readRelations,nb as readRevision,mb as readRevisions,pb as readRole,ob as readRoles,qb as readSettings,sb as readShare,Bc as readShareInfo,rb as readShares,tb as readSingleton,vb as readTranslation,ub as readTranslations,xb as readUser,wb as readUsers,Ab as readWebhook,zb as readWebhooks,j as realtime,q as refresh,Ic as rest,Bb as schemaApply,Cb as schemaDiff,Db as schemaSnapshot,Fb as serverHealth,Gb as serverInfo,Ib as serverPing,k as sleep,c as staticToken,ba as throwIfCoreCollection,aa as throwIfEmpty,uc as triggerFlow,yc as triggerOperation,Kb as updateCollection,Jb as updateComment,Mb as updateDashboard,Lb as updateDashboards,Nb as updateField,Pb as updateFile,Ob as updateFiles,Rb as updateFlow,Qb as updateFlows,Tb as updateFolder,Sb as updateFolders,Vb as updateItem,Ub as updateItems,pc as updateMe,Xb as updateNotification,Wb as updateNotifications,Zb as updateOperation,Yb as updateOperations,$b as updatePanel,_b as updatePanels,bc as updatePermission,ac as updatePermissions,dc as updatePreset,cc as updatePresets,ec as updateRelation,gc as updateRole,fc as updateRoles,hc as updateSettings,jc as updateShare,ic as updateShares,kc as updateSingleton,mc as updateTranslation,lc as updateTranslations,oc as updateUser,nc as updateUsers,rc as updateWebhook,qc as updateWebhooks,w as uploadFiles,Cc as utilitySort,tc as utilsExport,xc as utilsImport,wc as verifyHash,Jc as withOptions,Kc as withSearch,Lc as withToken};
//# sourceMappingURL=index.js.map
import { D as DirectusClient } from '../client-5fa2f889.js';
import { a as WebSocketConfig, d as WebSocketClient } from '../output-35b496cf.js';
export { R as RemoveEventHandler, S as SubscribeOptions, f as SubscriptionEvents, e as SubscriptionOptionsEvents, g as SubscriptionOutput, h as SubscriptionPayload, W as WebSocketAuthModes, c as WebSocketEventHandler, b as WebSocketEvents } from '../output-35b496cf.js';
import { a as WebSocketConfig, d as WebSocketClient } from '../output-3ec42865.js';
export { R as RemoveEventHandler, S as SubscribeOptions, f as SubscriptionEvents, e as SubscriptionOptionsEvents, g as SubscriptionOutput, h as SubscriptionPayload, W as WebSocketAuthModes, c as WebSocketEventHandler, b as WebSocketEvents } from '../output-3ec42865.js';

@@ -5,0 +5,0 @@ interface EmailAuth {

@@ -1,2 +0,2 @@

import{a,b,c,d,e,f}from"../chunk-7KQ2R3YI.js";export{a as auth,d as generateUid,c as messageCallback,b as pong,e as realtime,f as sleep};
import{a,b,c,d,e,f}from"../chunk-H2IAC3N4.js";export{a as auth,d as generateUid,c as messageCallback,b as pong,e as realtime,f as sleep};
//# sourceMappingURL=index.js.map

@@ -1,4 +0,4 @@

export { L as LoginOptions, e as RestClient, R as RestCommand, f as RestConfig, l as login } from '../login-170db6ff.js';
export { C as CreateActivityOutput, d as CreateCollectionOutput, f as CreateDashboardOutput, i as CreateFieldOutput, k as CreateFileOutput, n as CreateFlowOutput, s as CreateFolderOutput, w as CreateItemOutput, z as CreateNotificationOutput, D as CreateOperationOutput, G as CreatePanelOutput, J as CreatePermissionOutput, M as CreatePresetOutput, P as CreateRelationOutput, S as CreateRoleOutput, V as CreateShareOutput, Y as CreateTranslationOutput, $ as CreateUserOutput, a2 as CreateWebhookOutput, aO as ExtensionTypes, cS as FileFormat, bU as OpenApiSpecOutput, aD as ReadActivityOutput, aH as ReadCollectionOutput, aK as ReadDashboardOutput, aN as ReadExtensionOutput, aQ as ReadFieldOutput, aU as ReadFileOutput, aX as ReadFlowOutput, a_ as ReadFolderOutput, b1 as ReadItemOutput, b4 as ReadNotificationOutput, b7 as ReadOperationOutput, ba as ReadPanelOutput, bd as ReadPermissionOutput, bg as ReadPresetOutput, R as ReadProviderOutput, bj as ReadRelationOutput, bn as ReadRevisionOutput, bq as ReadRoleOutput, bt as ReadSettingOutput, bv as ReadShareOutput, by as ReadSingletonOutput, bA as ReadTranslationOutput, bD as ReadUserOutput, bH as ReadWebhookOutput, bL as SchemaDiffOutput, bN as SchemaSnapshotOutput, bQ as ServerHealthOutput, bS as ServerInfoOutput, bX as UpdateActivityOutput, bZ as UpdateCollectionOutput, b$ as UpdateDashboardOutput, c2 as UpdateFieldOutput, c4 as UpdateFileOutput, c7 as UpdateFlowOutput, ca as UpdateFolderOutput, cd as UpdateItemOutput, cg as UpdateNotificationOutput, cj as UpdateOperationOutput, cm as UpdatePanelOutput, cp as UpdatePermissionOutput, cs as UpdatePresetOutput, cv as UpdateRelationOutput, cx as UpdateRoleOutput, cA as UpdateSettingOutput, cC as UpdateShareOutput, cF as UpdateSingletonOutput, cH as UpdateTranslationOutput, cK as UpdateUserOutput, cO as UpdateWebhookOutput, d2 as acceptUserInvite, aG as aggregate, cZ as authenticateShare, cR as clearCache, e as createCollection, c as createComment, h as createDashboard, g as createDashboards, j as createField, q as createFlow, o as createFlows, v as createFolder, t as createFolders, y as createItem, x as createItems, B as createNotification, A as createNotifications, F as createOperation, E as createOperations, I as createPanel, H as createPanels, L as createPermission, K as createPermissions, O as createPreset, N as createPresets, Q as createRelation, U as createRole, T as createRoles, X as createShare, W as createShares, _ as createTranslation, Z as createTranslations, a1 as createUser, a0 as createUsers, a4 as createWebhook, a3 as createWebhooks, a6 as deleteCollection, a5 as deleteComment, a8 as deleteDashboard, a7 as deleteDashboards, a9 as deleteField, ab as deleteFile, aa as deleteFiles, ad as deleteFlow, ac as deleteFlows, af as deleteFolder, ae as deleteFolders, ah as deleteItem, ag as deleteItems, aj as deleteNotification, ai as deleteNotifications, al as deleteOperation, ak as deleteOperations, an as deletePanel, am as deletePanels, ap as deletePermission, ao as deletePermissions, ar as deletePreset, aq as deletePresets, as as deleteRelation, au as deleteRole, at as deleteRoles, aw as deleteShare, av as deleteShares, ay as deleteTranslation, ax as deleteTranslations, aA as deleteUser, az as deleteUsers, aC as deleteWebhook, aB as deleteWebhooks, d5 as disableTwoFactor, d4 as enableTwoFactor, cV as generateHash, d3 as generateTwoFactorSecret, m as importFile, c_ as inviteShare, d1 as inviteUser, l as logout, p as passwordRequest, a as passwordReset, da as queryToParams, aE as readActivities, aF as readActivity, aJ as readCollection, aI as readCollections, aM as readDashboard, aL as readDashboards, aP as readExtensions, aT as readField, aR as readFields, aS as readFieldsByCollection, aW as readFile, aV as readFiles, aZ as readFlow, aY as readFlows, b0 as readFolder, a$ as readFolders, bP as readGraphqlSdl, b3 as readItem, b2 as readItems, bG as readMe, b6 as readNotification, b5 as readNotifications, bV as readOpenApiSpec, b9 as readOperation, b8 as readOperations, bc as readPanel, bb as readPanels, bf as readPermission, be as readPermissions, bi as readPreset, bh as readPresets, r as readProviders, bm as readRelation, bl as readRelationByCollection, bk as readRelations, bp as readRevision, bo as readRevisions, bs as readRole, br as readRoles, bu as readSettings, bx as readShare, c$ as readShareInfo, bw as readShares, bz as readSingleton, bC as readTranslation, bB as readTranslations, bF as readUser, bE as readUsers, bJ as readWebhook, bI as readWebhooks, b as refresh, d6 as rest, bK as schemaApply, bM as schemaDiff, bO as schemaSnapshot, bR as serverHealth, bT as serverInfo, bW as serverPing, dc as throwIfCoreCollection, db as throwIfEmpty, cU as triggerFlow, cY as triggerOperation, b_ as updateCollection, bY as updateComment, c1 as updateDashboard, c0 as updateDashboards, c3 as updateField, c6 as updateFile, c5 as updateFiles, c9 as updateFlow, c8 as updateFlows, cc as updateFolder, cb as updateFolders, cf as updateItem, ce as updateItems, cN as updateMe, ci as updateNotification, ch as updateNotifications, cl as updateOperation, ck as updateOperations, co as updatePanel, cn as updatePanels, cr as updatePermission, cq as updatePermissions, cu as updatePreset, ct as updatePresets, cw as updateRelation, cz as updateRole, cy as updateRoles, cB as updateSettings, cE as updateShare, cD as updateShares, cG as updateSingleton, cJ as updateTranslation, cI as updateTranslations, cM as updateUser, cL as updateUsers, cQ as updateWebhook, cP as updateWebhooks, u as uploadFiles, d0 as utilitySort, cT as utilsExport, cX as utilsImport, cW as verifyHash, d7 as withOptions, d8 as withSearch, d9 as withToken } from '../index-a2b3b0f1.js';
import '../output-35b496cf.js';
export { L as LoginOptions, e as RestClient, R as RestCommand, f as RestConfig, l as login } from '../login-93da9005.js';
export { C as CreateActivityOutput, d as CreateCollectionOutput, f as CreateDashboardOutput, i as CreateFieldOutput, k as CreateFileOutput, n as CreateFlowOutput, s as CreateFolderOutput, w as CreateItemOutput, z as CreateNotificationOutput, D as CreateOperationOutput, G as CreatePanelOutput, J as CreatePermissionOutput, M as CreatePresetOutput, P as CreateRelationOutput, S as CreateRoleOutput, V as CreateShareOutput, Y as CreateTranslationOutput, $ as CreateUserOutput, a2 as CreateWebhookOutput, aO as ExtensionTypes, cS as FileFormat, bU as OpenApiSpecOutput, aD as ReadActivityOutput, aH as ReadCollectionOutput, aK as ReadDashboardOutput, aN as ReadExtensionOutput, aQ as ReadFieldOutput, aU as ReadFileOutput, aX as ReadFlowOutput, a_ as ReadFolderOutput, b1 as ReadItemOutput, b4 as ReadNotificationOutput, b7 as ReadOperationOutput, ba as ReadPanelOutput, bd as ReadPermissionOutput, bg as ReadPresetOutput, R as ReadProviderOutput, bj as ReadRelationOutput, bn as ReadRevisionOutput, bq as ReadRoleOutput, bt as ReadSettingOutput, bv as ReadShareOutput, by as ReadSingletonOutput, bA as ReadTranslationOutput, bD as ReadUserOutput, bH as ReadWebhookOutput, bL as SchemaDiffOutput, bN as SchemaSnapshotOutput, bQ as ServerHealthOutput, bS as ServerInfoOutput, bX as UpdateActivityOutput, bZ as UpdateCollectionOutput, b$ as UpdateDashboardOutput, c2 as UpdateFieldOutput, c4 as UpdateFileOutput, c7 as UpdateFlowOutput, ca as UpdateFolderOutput, cd as UpdateItemOutput, cg as UpdateNotificationOutput, cj as UpdateOperationOutput, cm as UpdatePanelOutput, cp as UpdatePermissionOutput, cs as UpdatePresetOutput, cv as UpdateRelationOutput, cx as UpdateRoleOutput, cA as UpdateSettingOutput, cC as UpdateShareOutput, cF as UpdateSingletonOutput, cH as UpdateTranslationOutput, cK as UpdateUserOutput, cO as UpdateWebhookOutput, d2 as acceptUserInvite, aG as aggregate, cZ as authenticateShare, cR as clearCache, e as createCollection, c as createComment, h as createDashboard, g as createDashboards, j as createField, q as createFlow, o as createFlows, v as createFolder, t as createFolders, y as createItem, x as createItems, B as createNotification, A as createNotifications, F as createOperation, E as createOperations, I as createPanel, H as createPanels, L as createPermission, K as createPermissions, O as createPreset, N as createPresets, Q as createRelation, U as createRole, T as createRoles, X as createShare, W as createShares, _ as createTranslation, Z as createTranslations, a1 as createUser, a0 as createUsers, a4 as createWebhook, a3 as createWebhooks, a6 as deleteCollection, a5 as deleteComment, a8 as deleteDashboard, a7 as deleteDashboards, a9 as deleteField, ab as deleteFile, aa as deleteFiles, ad as deleteFlow, ac as deleteFlows, af as deleteFolder, ae as deleteFolders, ah as deleteItem, ag as deleteItems, aj as deleteNotification, ai as deleteNotifications, al as deleteOperation, ak as deleteOperations, an as deletePanel, am as deletePanels, ap as deletePermission, ao as deletePermissions, ar as deletePreset, aq as deletePresets, as as deleteRelation, au as deleteRole, at as deleteRoles, aw as deleteShare, av as deleteShares, ay as deleteTranslation, ax as deleteTranslations, aA as deleteUser, az as deleteUsers, aC as deleteWebhook, aB as deleteWebhooks, d5 as disableTwoFactor, d4 as enableTwoFactor, cV as generateHash, d3 as generateTwoFactorSecret, m as importFile, c_ as inviteShare, d1 as inviteUser, l as logout, p as passwordRequest, a as passwordReset, da as queryToParams, aE as readActivities, aF as readActivity, aJ as readCollection, aI as readCollections, aM as readDashboard, aL as readDashboards, aP as readExtensions, aT as readField, aR as readFields, aS as readFieldsByCollection, aW as readFile, aV as readFiles, aZ as readFlow, aY as readFlows, b0 as readFolder, a$ as readFolders, bP as readGraphqlSdl, b3 as readItem, b2 as readItems, bG as readMe, b6 as readNotification, b5 as readNotifications, bV as readOpenApiSpec, b9 as readOperation, b8 as readOperations, bc as readPanel, bb as readPanels, bf as readPermission, be as readPermissions, bi as readPreset, bh as readPresets, r as readProviders, bm as readRelation, bl as readRelationByCollection, bk as readRelations, bp as readRevision, bo as readRevisions, bs as readRole, br as readRoles, bu as readSettings, bx as readShare, c$ as readShareInfo, bw as readShares, bz as readSingleton, bC as readTranslation, bB as readTranslations, bF as readUser, bE as readUsers, bJ as readWebhook, bI as readWebhooks, b as refresh, d6 as rest, bK as schemaApply, bM as schemaDiff, bO as schemaSnapshot, bR as serverHealth, bT as serverInfo, bW as serverPing, dc as throwIfCoreCollection, db as throwIfEmpty, cU as triggerFlow, cY as triggerOperation, b_ as updateCollection, bY as updateComment, c1 as updateDashboard, c0 as updateDashboards, c3 as updateField, c6 as updateFile, c5 as updateFiles, c9 as updateFlow, c8 as updateFlows, cc as updateFolder, cb as updateFolders, cf as updateItem, ce as updateItems, cN as updateMe, ci as updateNotification, ch as updateNotifications, cl as updateOperation, ck as updateOperations, co as updatePanel, cn as updatePanels, cr as updatePermission, cq as updatePermissions, cu as updatePreset, ct as updatePresets, cw as updateRelation, cz as updateRole, cy as updateRoles, cB as updateSettings, cE as updateShare, cD as updateShares, cG as updateSingleton, cJ as updateTranslation, cI as updateTranslations, cM as updateUser, cL as updateUsers, cQ as updateWebhook, cP as updateWebhooks, u as uploadFiles, d0 as utilitySort, cT as utilsExport, cX as utilsImport, cW as verifyHash, d7 as withOptions, d8 as withSearch, d9 as withToken } from '../index-5c47c85c.js';
import '../output-3ec42865.js';
import '../client-5fa2f889.js';

@@ -1,2 +0,2 @@

import{$ as W,$a as Wa,$b as Wb,A as v,Aa as va,Ab as vb,Ac as vc,B as w,Ba as wa,Bb as wb,Bc as wc,C as x,Ca as xa,Cb as xb,Cc as xc,D as y,Da as ya,Db as yb,Dc as yc,E as z,Ea as za,Eb as zb,Ec as zc,F as A,Fa as Aa,Fb as Ab,Fc as Ac,G as B,Ga as Ba,Gb as Bb,H as C,Ha as Ca,Hb as Cb,I as D,Ia as Da,Ib as Db,J as E,Ja as Ea,Jb as Eb,K as F,Ka as Fa,Kb as Fb,L as G,La as Ga,Lb as Gb,M as H,Ma as Ha,Mb as Hb,N as I,Na as Ia,Nb as Ib,O as J,Oa as Ja,Ob as Jb,P as K,Pa as Ka,Pb as Kb,Q as L,Qa as La,Qb as Lb,R as M,Ra as Ma,Rb as Mb,S as N,Sa as Na,Sb as Nb,T as O,Ta as Oa,Tb as Ob,U as P,Ua as Pa,Ub as Pb,V as Q,Va as Qa,Vb as Qb,W as R,Wa as Ra,Wb as Rb,X as S,Xa as Sa,Xb as Sb,Y as T,Ya as Ta,Yb as Tb,Z as U,Za as Ua,Zb as Ub,_ as V,_a as Va,_b as Vb,aa as X,ab as Xa,ac as Xb,ba as Y,bb as Ya,bc as Yb,ca as Z,cb as Za,cc as Zb,da as _,db as _a,dc as _b,ea as $,eb as $a,ec as $b,f as a,fa as aa,fb as ab,fc as ac,g as b,ga as ba,gb as bb,gc as bc,h as c,ha as ca,hb as cb,hc as cc,i as d,ia as da,ib as db,ic as dc,j as e,ja as ea,jb as eb,jc as ec,k as f,ka as fa,kb as fb,kc as fc,l as g,la as ga,lb as gb,lc as gc,m as h,ma as ha,mb as hb,mc as hc,n as i,na as ia,nb as ib,nc as ic,o as j,oa as ja,ob as jb,oc as jc,p as k,pa as ka,pb as kb,pc as kc,q as l,qa as la,qb as lb,qc as lc,r as m,ra as ma,rb as mb,rc as mc,s as n,sa as na,sb as nb,sc as nc,t as o,ta as oa,tb as ob,tc as oc,u as p,ua as pa,ub as pb,uc as pc,v as q,va as qa,vb as qb,vc as qc,w as r,wa as ra,wb as rb,wc as rc,x as s,xa as sa,xb as sb,xc as sc,y as t,ya as ta,yb as tb,yc as tc,z as u,za as ua,zb as ub,zc as uc}from"../chunk-74XE5VTR.js";import"../chunk-7KQ2R3YI.js";export{tc as acceptUserInvite,za as aggregate,oc as authenticateShare,hc as clearCache,h as createCollection,g as createComment,j as createDashboard,i as createDashboards,k as createField,o as createFlow,n as createFlows,q as createFolder,p as createFolders,s as createItem,r as createItems,u as createNotification,t as createNotifications,w as createOperation,v as createOperations,y as createPanel,x as createPanels,A as createPermission,z as createPermissions,C as createPreset,B as createPresets,D as createRelation,F as createRole,E as createRoles,H as createShare,G as createShares,J as createTranslation,I as createTranslations,L as createUser,K as createUsers,N as createWebhook,M as createWebhooks,P as deleteCollection,O as deleteComment,U as deleteDashboard,T as deleteDashboards,V as deleteField,X as deleteFile,W as deleteFiles,Z as deleteFlow,Y as deleteFlows,$ as deleteFolder,_ as deleteFolders,ba as deleteItem,aa as deleteItems,da as deleteNotification,ca as deleteNotifications,fa as deleteOperation,ea as deleteOperations,ha as deletePanel,ga as deletePanels,ja as deletePermission,ia as deletePermissions,la as deletePreset,ka as deletePresets,ma as deleteRelation,oa as deleteRole,na as deleteRoles,qa as deleteShare,pa as deleteShares,sa as deleteTranslation,ra as deleteTranslations,ua as deleteUser,ta as deleteUsers,wa as deleteWebhook,va as deleteWebhooks,wc as disableTwoFactor,vc as enableTwoFactor,kc as generateHash,uc as generateTwoFactorSecret,m as importFile,pc as inviteShare,sc as inviteUser,a as login,b as logout,c as passwordRequest,d as passwordReset,Q as queryToParams,xa as readActivities,ya as readActivity,Ba as readCollection,Aa as readCollections,Da as readDashboard,Ca as readDashboards,Ea as readExtensions,Ha as readField,Fa as readFields,Ga as readFieldsByCollection,Ja as readFile,Ia as readFiles,La as readFlow,Ka as readFlows,Na as readFolder,Ma as readFolders,tb as readGraphqlSdl,Pa as readItem,Oa as readItems,nb as readMe,Ra as readNotification,Qa as readNotifications,wb as readOpenApiSpec,Ta as readOperation,Sa as readOperations,Va as readPanel,Ua as readPanels,Xa as readPermission,Wa as readPermissions,Za as readPreset,Ya as readPresets,e as readProviders,ab as readRelation,$a as readRelationByCollection,_a as readRelations,cb as readRevision,bb as readRevisions,eb as readRole,db as readRoles,fb as readSettings,hb as readShare,qc as readShareInfo,gb as readShares,ib as readSingleton,kb as readTranslation,jb as readTranslations,mb as readUser,lb as readUsers,pb as readWebhook,ob as readWebhooks,f as refresh,xc as rest,qb as schemaApply,rb as schemaDiff,sb as schemaSnapshot,ub as serverHealth,vb as serverInfo,xb as serverPing,S as throwIfCoreCollection,R as throwIfEmpty,jc as triggerFlow,nc as triggerOperation,zb as updateCollection,yb as updateComment,Bb as updateDashboard,Ab as updateDashboards,Cb as updateField,Eb as updateFile,Db as updateFiles,Gb as updateFlow,Fb as updateFlows,Ib as updateFolder,Hb as updateFolders,Kb as updateItem,Jb as updateItems,ec as updateMe,Mb as updateNotification,Lb as updateNotifications,Ob as updateOperation,Nb as updateOperations,Qb as updatePanel,Pb as updatePanels,Sb as updatePermission,Rb as updatePermissions,Ub as updatePreset,Tb as updatePresets,Vb as updateRelation,Xb as updateRole,Wb as updateRoles,Yb as updateSettings,_b as updateShare,Zb as updateShares,$b as updateSingleton,bc as updateTranslation,ac as updateTranslations,dc as updateUser,cc as updateUsers,gc as updateWebhook,fc as updateWebhooks,l as uploadFiles,rc as utilitySort,ic as utilsExport,mc as utilsImport,lc as verifyHash,yc as withOptions,zc as withSearch,Ac as withToken};
import{$ as W,$a as Wa,$b as Wb,A as v,Aa as va,Ab as vb,Ac as vc,B as w,Ba as wa,Bb as wb,Bc as wc,C as x,Ca as xa,Cb as xb,Cc as xc,D as y,Da as ya,Db as yb,Dc as yc,E as z,Ea as za,Eb as zb,Ec as zc,F as A,Fa as Aa,Fb as Ab,Fc as Ac,G as B,Ga as Ba,Gb as Bb,H as C,Ha as Ca,Hb as Cb,I as D,Ia as Da,Ib as Db,J as E,Ja as Ea,Jb as Eb,K as F,Ka as Fa,Kb as Fb,L as G,La as Ga,Lb as Gb,M as H,Ma as Ha,Mb as Hb,N as I,Na as Ia,Nb as Ib,O as J,Oa as Ja,Ob as Jb,P as K,Pa as Ka,Pb as Kb,Q as L,Qa as La,Qb as Lb,R as M,Ra as Ma,Rb as Mb,S as N,Sa as Na,Sb as Nb,T as O,Ta as Oa,Tb as Ob,U as P,Ua as Pa,Ub as Pb,V as Q,Va as Qa,Vb as Qb,W as R,Wa as Ra,Wb as Rb,X as S,Xa as Sa,Xb as Sb,Y as T,Ya as Ta,Yb as Tb,Z as U,Za as Ua,Zb as Ub,_ as V,_a as Va,_b as Vb,aa as X,ab as Xa,ac as Xb,ba as Y,bb as Ya,bc as Yb,ca as Z,cb as Za,cc as Zb,da as _,db as _a,dc as _b,ea as $,eb as $a,ec as $b,f as a,fa as aa,fb as ab,fc as ac,g as b,ga as ba,gb as bb,gc as bc,h as c,ha as ca,hb as cb,hc as cc,i as d,ia as da,ib as db,ic as dc,j as e,ja as ea,jb as eb,jc as ec,k as f,ka as fa,kb as fb,kc as fc,l as g,la as ga,lb as gb,lc as gc,m as h,ma as ha,mb as hb,mc as hc,n as i,na as ia,nb as ib,nc as ic,o as j,oa as ja,ob as jb,oc as jc,p as k,pa as ka,pb as kb,pc as kc,q as l,qa as la,qb as lb,qc as lc,r as m,ra as ma,rb as mb,rc as mc,s as n,sa as na,sb as nb,sc as nc,t as o,ta as oa,tb as ob,tc as oc,u as p,ua as pa,ub as pb,uc as pc,v as q,va as qa,vb as qb,vc as qc,w as r,wa as ra,wb as rb,wc as rc,x as s,xa as sa,xb as sb,xc as sc,y as t,ya as ta,yb as tb,yc as tc,z as u,za as ua,zb as ub,zc as uc}from"../chunk-42TA54KX.js";import"../chunk-H2IAC3N4.js";export{tc as acceptUserInvite,za as aggregate,oc as authenticateShare,hc as clearCache,h as createCollection,g as createComment,j as createDashboard,i as createDashboards,k as createField,o as createFlow,n as createFlows,q as createFolder,p as createFolders,s as createItem,r as createItems,u as createNotification,t as createNotifications,w as createOperation,v as createOperations,y as createPanel,x as createPanels,A as createPermission,z as createPermissions,C as createPreset,B as createPresets,D as createRelation,F as createRole,E as createRoles,H as createShare,G as createShares,J as createTranslation,I as createTranslations,L as createUser,K as createUsers,N as createWebhook,M as createWebhooks,P as deleteCollection,O as deleteComment,U as deleteDashboard,T as deleteDashboards,V as deleteField,X as deleteFile,W as deleteFiles,Z as deleteFlow,Y as deleteFlows,$ as deleteFolder,_ as deleteFolders,ba as deleteItem,aa as deleteItems,da as deleteNotification,ca as deleteNotifications,fa as deleteOperation,ea as deleteOperations,ha as deletePanel,ga as deletePanels,ja as deletePermission,ia as deletePermissions,la as deletePreset,ka as deletePresets,ma as deleteRelation,oa as deleteRole,na as deleteRoles,qa as deleteShare,pa as deleteShares,sa as deleteTranslation,ra as deleteTranslations,ua as deleteUser,ta as deleteUsers,wa as deleteWebhook,va as deleteWebhooks,wc as disableTwoFactor,vc as enableTwoFactor,kc as generateHash,uc as generateTwoFactorSecret,m as importFile,pc as inviteShare,sc as inviteUser,a as login,b as logout,c as passwordRequest,d as passwordReset,Q as queryToParams,xa as readActivities,ya as readActivity,Ba as readCollection,Aa as readCollections,Da as readDashboard,Ca as readDashboards,Ea as readExtensions,Ha as readField,Fa as readFields,Ga as readFieldsByCollection,Ja as readFile,Ia as readFiles,La as readFlow,Ka as readFlows,Na as readFolder,Ma as readFolders,tb as readGraphqlSdl,Pa as readItem,Oa as readItems,nb as readMe,Ra as readNotification,Qa as readNotifications,wb as readOpenApiSpec,Ta as readOperation,Sa as readOperations,Va as readPanel,Ua as readPanels,Xa as readPermission,Wa as readPermissions,Za as readPreset,Ya as readPresets,e as readProviders,ab as readRelation,$a as readRelationByCollection,_a as readRelations,cb as readRevision,bb as readRevisions,eb as readRole,db as readRoles,fb as readSettings,hb as readShare,qc as readShareInfo,gb as readShares,ib as readSingleton,kb as readTranslation,jb as readTranslations,mb as readUser,lb as readUsers,pb as readWebhook,ob as readWebhooks,f as refresh,xc as rest,qb as schemaApply,rb as schemaDiff,sb as schemaSnapshot,ub as serverHealth,vb as serverInfo,xb as serverPing,S as throwIfCoreCollection,R as throwIfEmpty,jc as triggerFlow,nc as triggerOperation,zb as updateCollection,yb as updateComment,Bb as updateDashboard,Ab as updateDashboards,Cb as updateField,Eb as updateFile,Db as updateFiles,Gb as updateFlow,Fb as updateFlows,Ib as updateFolder,Hb as updateFolders,Kb as updateItem,Jb as updateItems,ec as updateMe,Mb as updateNotification,Lb as updateNotifications,Ob as updateOperation,Nb as updateOperations,Qb as updatePanel,Pb as updatePanels,Sb as updatePermission,Rb as updatePermissions,Ub as updatePreset,Tb as updatePresets,Vb as updateRelation,Xb as updateRole,Wb as updateRoles,Yb as updateSettings,_b as updateShare,Zb as updateShares,$b as updateSingleton,bc as updateTranslation,ac as updateTranslations,dc as updateUser,cc as updateUsers,gc as updateWebhook,fc as updateWebhooks,l as uploadFiles,rc as utilitySort,ic as utilsExport,mc as utilsImport,lc as verifyHash,yc as withOptions,zc as withSearch,Ac as withToken};
//# sourceMappingURL=index.js.map
{
"name": "@directus/sdk",
"version": "12.0.0",
"version": "12.0.1",
"description": "Directus JavaScript SDK",

@@ -5,0 +5,0 @@ "homepage": "https://directus.io",

@@ -11,3 +11,2 @@ import type { LoginOptions } from '../index.js';

autoRefresh: true,
credentials: 'same-origin',
};

@@ -82,3 +81,3 @@

const options = {
const fetchOptions: RequestInit = {
method: 'POST',

@@ -88,14 +87,19 @@ headers: {

},
credentials: authConfig.credentials,
} as RequestInit;
};
if ('credentials' in authConfig) {
fetchOptions.credentials = authConfig.credentials;
}
const body: Record<string, any> = { mode };
if (mode === 'json' && authData?.refresh_token) {
options.body = JSON.stringify({
refresh_token: authData.refresh_token,
});
body['refresh_token'] = authData.refresh_token;
}
fetchOptions.body = JSON.stringify(body);
const requestUrl = getRequestUrl(client.url, '/auth/refresh');
const data = await request<AuthenticationData>(requestUrl.toString(), options, client.globals.fetch);
const data = await request<AuthenticationData>(requestUrl.toString(), fetchOptions, client.globals.fetch);

@@ -123,17 +127,18 @@ setCredentials(data);

if ('otp' in options) authData['otp'] = options.otp;
if ('mode' in options) authData['mode'] = options.mode;
authData['mode'] = options.mode ?? mode;
const data = await request<AuthenticationData>(
requestUrl.toString(),
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify(authData),
credentials: authConfig.credentials,
const fetchOptions: RequestInit = {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
client.globals.fetch
);
body: JSON.stringify(authData),
};
if ('credentials' in authConfig) {
fetchOptions.credentials = authConfig.credentials;
}
const data = await request<AuthenticationData>(requestUrl.toString(), fetchOptions, client.globals.fetch);
setCredentials(data);

@@ -145,3 +150,3 @@ return data;

const options: RequestInit = {
const fetchOptions: RequestInit = {
method: 'POST',

@@ -151,7 +156,10 @@ headers: {

},
credentials: authConfig.credentials,
};
if ('credentials' in authConfig) {
fetchOptions.credentials = authConfig.credentials;
}
if (mode === 'json' && authData?.refresh_token) {
options.body = JSON.stringify({
fetchOptions.body = JSON.stringify({
refresh_token: authData.refresh_token,

@@ -162,3 +170,3 @@ });

const requestUrl = getRequestUrl(client.url, '/auth/logout');
await request(requestUrl.toString(), options, client.globals.fetch);
await request(requestUrl.toString(), fetchOptions, client.globals.fetch);

@@ -165,0 +173,0 @@ if (refreshTimeout) clearTimeout(refreshTimeout);

@@ -20,3 +20,3 @@ import type { LoginOptions } from '../index.js';

msRefreshBeforeExpires: number;
credentials: RequestCredentials;
credentials?: RequestCredentials;
storage?: AuthenticationStorage;

@@ -23,0 +23,0 @@ }

@@ -7,5 +7,3 @@ import type { DirectusClient } from '../types/client.js';

const defaultConfigValues: GraphqlConfig = {
credentials: 'same-origin',
};
const defaultConfigValues: GraphqlConfig = {};

@@ -26,8 +24,11 @@ /**

): Promise<Output> {
const options: RequestInit = {
const fetchOptions: RequestInit = {
method: 'POST',
body: JSON.stringify({ query, variables }),
credentials: gqlConfig.credentials,
};
if ('credentials' in gqlConfig) {
fetchOptions.credentials = gqlConfig.credentials;
}
const headers: Record<string, string> = {};

@@ -47,7 +48,7 @@

options.headers = headers;
fetchOptions.headers = headers;
const requestPath = scope === 'items' ? '/graphql' : '/graphql/system';
const requestUrl = getRequestUrl(client.url, requestPath);
return await request<Output>(requestUrl.toString(), options, client.globals.fetch);
return await request<Output>(requestUrl.toString(), fetchOptions, client.globals.fetch);
},

@@ -54,0 +55,0 @@ };

@@ -10,3 +10,3 @@ export interface GraphqlClient<_Schema extends object> {

export interface GraphqlConfig {
credentials: RequestCredentials;
credentials?: RequestCredentials;
}

@@ -13,0 +13,0 @@

@@ -229,3 +229,3 @@ import type { DirectusClient } from '../types/client.js';

},
async subscribe<Collection extends keyof Schema, Options extends SubscribeOptions<Schema, Collection>>(
async subscribe<Collection extends keyof Schema, const Options extends SubscribeOptions<Schema, Collection>>(
collection: Collection,

@@ -232,0 +232,0 @@ options = {} as Options

@@ -37,3 +37,3 @@ import type { Query } from '../types/query.js';

sendMessage(message: string | Record<string, any>): void;
subscribe<Collection extends keyof Schema, Options extends SubscribeOptions<Schema, Collection>>(
subscribe<Collection extends keyof Schema, const Options extends SubscribeOptions<Schema, Collection>>(
collection: Collection,

@@ -68,5 +68,8 @@ options?: Options

: Partial<Schema[Collection]>
> = { type: 'subscription' } & {
[Event in Events]: SubscriptionPayload<TItem>[Event];
}[Events];
> = { type: 'subscription'; uid?: string } & (
| {
[Event in Events]: { event: Event; data: SubscriptionPayload<TItem>[Event] };
}[Events]
| { event: 'error'; error: { code: string; message: string } }
);

@@ -73,0 +76,0 @@ export type SubscriptionPayload<Item> = {

@@ -27,4 +27,4 @@ import type { AuthenticationData, AuthenticationMode } from '../../../index.js';

if ('otp' in options) data['otp'] = options.otp;
if ('mode' in options) data['mode'] = options.mode;
data['mode'] = options.mode ?? 'cookie';
return { path: '/auth/login', method: 'POST', body: JSON.stringify(data) };
};

@@ -11,7 +11,7 @@ import type { RestCommand } from '../../types.js';

export const logout =
<Schema extends object>(refresh_token: string): RestCommand<void, Schema> =>
<Schema extends object>(refresh_token?: string): RestCommand<void, Schema> =>
() => ({
path: '/auth/logout',
method: 'POST',
body: JSON.stringify({ refresh_token }),
body: JSON.stringify(refresh_token ? { refresh_token } : {}),
});

@@ -7,5 +7,3 @@ import type { StaticTokenClient } from '../auth/types.js';

const defaultConfigValues: RestConfig = {
credentials: 'same-origin',
};
const defaultConfigValues: RestConfig = {};

@@ -25,3 +23,5 @@ /**

// all api requests require this content type
if (!options.headers) options.headers = {};
if (!options.headers) {
options.headers = {};
}

@@ -50,5 +50,8 @@ if ('Content-Type' in options.headers === false) {

headers: options.headers ?? {},
credentials: restConfig.credentials,
};
if ('credentials' in restConfig) {
fetchOptions.credentials = restConfig.credentials;
}
if (options.body) {

@@ -55,0 +58,0 @@ fetchOptions['body'] = options.body;

@@ -8,7 +8,7 @@ import type { RequestOptions, RequestTransformer, ResponseTransformer } from '../types/request.js';

export interface RestClient<Schema extends object> {
request<Output extends object>(options: RestCommand<Output, Schema>): Promise<Output>;
request<Output>(options: RestCommand<Output, Schema>): Promise<Output>;
}
export interface RestConfig {
credentials: RequestCredentials;
credentials?: RequestCredentials;
// onError?: (error: any) => any;

@@ -15,0 +15,0 @@ onRequest?: RequestTransformer;

@@ -9,3 +9,3 @@ /**

if (type?.startsWith('application/json')) {
if (type?.startsWith('application/json') || type?.startsWith('application/health+json')) {
const result = await response.json();

@@ -12,0 +12,0 @@ if (!response.ok) throw result;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc