[{"data":1,"prerenderedAt":2019},["ShallowReactive",2],{"navigation":3,"\u002Fextensions\u002Foverview":340,"\u002Fextensions\u002Foverview-surround":2014},{"3.x":4,"2.x":236},[5,32,61,103,125,151,169,207],{"title":6,"icon":7,"path":8,"stem":9,"children":10,"page":31},"Getting Started","i-heroicons-star","\u002Fgetting-started","1.getting-started",[11,15,19,23,27],{"title":12,"path":13,"stem":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction",{"title":16,"path":17,"stem":18},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":20,"path":21,"stem":22},"Quick start","\u002Fgetting-started\u002Fquick-start","1.getting-started\u002F3.quick-start",{"title":24,"path":25,"stem":26},"Configuration","\u002Fgetting-started\u002Fconfiguration","1.getting-started\u002F4.configuration",{"title":28,"path":29,"stem":30},"Upgrade guide","\u002Fgetting-started\u002Fupgrade-guide","1.getting-started\u002F5.upgrade-guide",false,{"title":33,"icon":34,"path":35,"stem":36,"children":37,"page":31},"Resources","i-heroicons-document-text","\u002Fresources","2.resources",[38,41,45,49,53,57],{"title":33,"path":39,"stem":40},"\u002Fresources\u002Fresources","2.resources\u002F1.resources",{"title":42,"path":43,"stem":44},"Fields","\u002Fresources\u002Ffields","2.resources\u002F2.fields",{"title":46,"path":47,"stem":48},"Relationships","\u002Fresources\u002Frelations","2.resources\u002F3.relations",{"title":50,"path":51,"stem":52},"Validation","\u002Fresources\u002Fvalidation","2.resources\u002F4.validation",{"title":54,"path":55,"stem":56},"Perimeter","\u002Fresources\u002Fperimeter","2.resources\u002F5.perimeter",{"title":58,"path":59,"stem":60},"Limits","\u002Fresources\u002Flimits","2.resources\u002F6.limits",{"title":62,"icon":63,"path":64,"stem":65,"children":66,"page":31},"Search","i-heroicons-magnifying-glass","\u002Fsearch","3.search",[67,71,75,79,83,87,91,95,99],{"title":68,"path":69,"stem":70},"Search overview","\u002Fsearch\u002Foverview","3.search\u002F1.overview",{"title":72,"path":73,"stem":74},"Search filters","\u002Fsearch\u002Ffilters","3.search\u002F2.filters",{"title":76,"path":77,"stem":78},"Sorts and selects","\u002Fsearch\u002Fsorts-and-selects","3.search\u002F3.sorts-and-selects",{"title":80,"path":81,"stem":82},"Includes and aggregates","\u002Fsearch\u002Fincludes-and-aggregates","3.search\u002F4.includes-and-aggregates",{"title":84,"path":85,"stem":86},"Scopes and instructions","\u002Fsearch\u002Fscopes-and-instructions","3.search\u002F5.scopes-and-instructions",{"title":88,"path":89,"stem":90},"Text search","\u002Fsearch\u002Ftext-search","3.search\u002F6.text-search",{"title":92,"path":93,"stem":94},"Search engines","\u002Fsearch\u002Fsearch-engines","3.search\u002F7.search-engines",{"title":96,"path":97,"stem":98},"Searching outside HTTP","\u002Fsearch\u002Foutside-http","3.search\u002F8.outside-http",{"title":100,"path":101,"stem":102},"Totals","\u002Fsearch\u002Ftotals","3.search\u002F9.totals",{"title":104,"icon":105,"path":106,"stem":107,"children":108,"page":31},"Writing","i-heroicons-pencil-square","\u002Fwriting","4.writing",[109,113,117,121],{"title":110,"path":111,"stem":112},"Mutate","\u002Fwriting\u002Fmutate","4.writing\u002F1.mutate",{"title":114,"path":115,"stem":116},"Writing relations","\u002Fwriting\u002Frelations","4.writing\u002F2.relations",{"title":118,"path":119,"stem":120},"Versioned rows","\u002Fwriting\u002Fversioned-rows","4.writing\u002F3.versioned-rows",{"title":122,"path":123,"stem":124},"Deleting and restoring","\u002Fwriting\u002Fdeleting","4.writing\u002F4.deleting",{"title":126,"icon":127,"path":128,"stem":129,"children":130,"page":31},"Actions and Metrics","i-heroicons-bolt","\u002Factions-and-metrics","5.actions-and-metrics",[131,135,139,143,147],{"title":132,"path":133,"stem":134},"Actions","\u002Factions-and-metrics\u002Factions","5.actions-and-metrics\u002F1.actions",{"title":136,"path":137,"stem":138},"Queued Actions","\u002Factions-and-metrics\u002Fqueued-actions","5.actions-and-metrics\u002F2.queued-actions",{"title":140,"path":141,"stem":142},"Confirmation","\u002Factions-and-metrics\u002Fconfirmation","5.actions-and-metrics\u002F3.confirmation",{"title":144,"path":145,"stem":146},"Metrics","\u002Factions-and-metrics\u002Fmetrics","5.actions-and-metrics\u002F4.metrics",{"title":148,"path":149,"stem":150},"Exports","\u002Factions-and-metrics\u002Fexports","5.actions-and-metrics\u002F5.exports",{"title":152,"icon":153,"path":154,"stem":155,"children":156,"page":31},"Authorization","i-heroicons-lock-closed","\u002Fauthorization","6.authorization",[157,161,165],{"title":158,"path":159,"stem":160},"Policies","\u002Fauthorization\u002Fpolicies","6.authorization\u002F1.policies",{"title":162,"path":163,"stem":164},"Gates","\u002Fauthorization\u002Fgates","6.authorization\u002F2.gates",{"title":166,"path":167,"stem":168},"Decision Cache","\u002Fauthorization\u002Fdecision-cache","6.authorization\u002F3.decision-cache",{"title":170,"icon":171,"path":172,"stem":173,"children":174,"page":31},"Digging Deeper","i-heroicons-list-bullet","\u002Fdigging-deeper","7.digging-deeper",[175,179,183,187,191,195,199,203],{"title":176,"path":177,"stem":178},"Details","\u002Fdigging-deeper\u002Fdetails","7.digging-deeper\u002F1.details",{"title":180,"path":181,"stem":182},"Events and Hooks","\u002Fdigging-deeper\u002Fevents-and-hooks","7.digging-deeper\u002F2.events-and-hooks",{"title":184,"path":185,"stem":186},"Custom Responses","\u002Fdigging-deeper\u002Fresponses","7.digging-deeper\u002F3.responses",{"title":188,"path":189,"stem":190},"OpenAPI Documentation","\u002Fdigging-deeper\u002Fopenapi","7.digging-deeper\u002F4.openapi",{"title":192,"path":193,"stem":194},"Precognition","\u002Fdigging-deeper\u002Fprecognition","7.digging-deeper\u002F5.precognition",{"title":196,"path":197,"stem":198},"Artisan Commands","\u002Fdigging-deeper\u002Fartisan","7.digging-deeper\u002F6.artisan",{"title":200,"path":201,"stem":202},"Use with AI","\u002Fdigging-deeper\u002Fai-skill","7.digging-deeper\u002F7.ai-skill",{"title":204,"path":205,"stem":206},"Translations","\u002Fdigging-deeper\u002Ftranslations","7.digging-deeper\u002F8.translations",{"title":208,"icon":209,"path":210,"stem":211,"children":212,"page":31},"Extensions","i-heroicons-puzzle-piece","\u002Fextensions","8.extensions",[213,216,220,224,228,232],{"title":208,"path":214,"stem":215},"\u002Fextensions\u002Foverview","8.extensions\u002F1.overview",{"title":217,"path":218,"stem":219},"Query extensions","\u002Fextensions\u002Fqueries","8.extensions\u002F2.queries",{"title":221,"path":222,"stem":223},"Engine extensions","\u002Fextensions\u002Fengines","8.extensions\u002F3.engines",{"title":225,"path":226,"stem":227},"Authorization extensions","\u002Fextensions\u002Fauthorization","8.extensions\u002F4.authorization",{"title":229,"path":230,"stem":231},"Route and write extensions","\u002Fextensions\u002Froutes-and-writes","8.extensions\u002F5.routes-and-writes",{"title":233,"path":234,"stem":235},"Response and check extensions","\u002Fextensions\u002Fresponses-and-checks","8.extensions\u002F6.responses-and-checks",[237,248,270,293,330],{"title":6,"icon":7,"path":238,"stem":239,"children":240,"page":31},"\u002F2.x\u002Fgetting-started","2.x\u002F1.getting-started",[241,244],{"title":16,"path":242,"stem":243},"\u002F2.x\u002Fgetting-started\u002Finstallation","2.x\u002F1.getting-started\u002F1.installation",{"title":245,"path":246,"stem":247},"Upgrade Guide","\u002F2.x\u002Fgetting-started\u002Fupgrade-guide","2.x\u002F1.getting-started\u002F2.upgrade-guide",{"title":249,"icon":250,"path":251,"stem":252,"children":253,"page":31},"Endpoints","i-heroicons-arrow-uturn-left","\u002F2.x\u002Fendpoints","2.x\u002F2.endpoints",[254,257,260,263,266],{"title":176,"path":255,"stem":256},"\u002F2.x\u002Fendpoints\u002Fdetails","2.x\u002F2.endpoints\u002F1.details",{"title":62,"path":258,"stem":259},"\u002F2.x\u002Fendpoints\u002Fsearch","2.x\u002F2.endpoints\u002F2.search",{"title":110,"path":261,"stem":262},"\u002F2.x\u002Fendpoints\u002Fmutate","2.x\u002F2.endpoints\u002F3.mutate",{"title":132,"path":264,"stem":265},"\u002F2.x\u002Fendpoints\u002Factions","2.x\u002F2.endpoints\u002F4.actions",{"title":267,"path":268,"stem":269},"Delete","\u002F2.x\u002Fendpoints\u002Fdelete","2.x\u002F2.endpoints\u002F5.delete",{"title":33,"icon":34,"path":271,"stem":272,"children":273,"page":31},"\u002F2.x\u002Fresources","2.x\u002F3.resources",[274,278,282,285,289],{"title":275,"path":276,"stem":277},"Basics","\u002F2.x\u002Fresources\u002Fbasics","2.x\u002F3.resources\u002F1.basics",{"title":279,"path":280,"stem":281},"Exposed Data","\u002F2.x\u002Fresources\u002Fexposed-data","2.x\u002F3.resources\u002F2.exposed-data",{"title":46,"path":283,"stem":284},"\u002F2.x\u002Fresources\u002Frelationships","2.x\u002F3.resources\u002F3.relationships",{"title":286,"path":287,"stem":288},"Validations","\u002F2.x\u002Fresources\u002Fvalidations","2.x\u002F3.resources\u002F4.validations",{"title":290,"path":291,"stem":292},"Interactions","\u002F2.x\u002Fresources\u002Finteractions","2.x\u002F3.resources\u002F5.interactions",{"title":170,"icon":171,"path":294,"stem":295,"children":296,"page":31},"\u002F2.x\u002Fdigging-deeper","2.x\u002F4.digging-deeper",[297,300,304,307,311,315,319,323,327],{"title":132,"path":298,"stem":299},"\u002F2.x\u002Fdigging-deeper\u002Factions","2.x\u002F4.digging-deeper\u002F1.actions",{"title":301,"path":302,"stem":303},"Hooks","\u002F2.x\u002Fdigging-deeper\u002Fhooks","2.x\u002F4.digging-deeper\u002F2.hooks",{"title":162,"path":305,"stem":306},"\u002F2.x\u002Fdigging-deeper\u002Fgates","2.x\u002F4.digging-deeper\u002F3.gates",{"title":308,"path":309,"stem":310},"Authorizations","\u002F2.x\u002Fdigging-deeper\u002Fauthorizations","2.x\u002F4.digging-deeper\u002F4.authorizations",{"title":312,"path":313,"stem":314},"Full Text Search","\u002F2.x\u002Fdigging-deeper\u002Ffull-text-search","2.x\u002F4.digging-deeper\u002F5.full-text-search",{"title":316,"path":317,"stem":318},"Instructions","\u002F2.x\u002Fdigging-deeper\u002Finstructions","2.x\u002F4.digging-deeper\u002F6.instructions",{"title":320,"path":321,"stem":322},"Responses","\u002F2.x\u002Fdigging-deeper\u002Fresponses","2.x\u002F4.digging-deeper\u002F7.responses",{"title":324,"path":325,"stem":326},"Documentation","\u002F2.x\u002Fdigging-deeper\u002Fdocumentation","2.x\u002F4.digging-deeper\u002F8.documentation",{"title":192,"path":328,"stem":329},"\u002F2.x\u002Fdigging-deeper\u002Fprecognition","2.x\u002F4.digging-deeper\u002F9.precognition",{"title":331,"icon":332,"path":333,"stem":334,"children":335,"page":31},"Integrations","i-lucide-puzzle","\u002F2.x\u002Fintegrations","2.x\u002F5.integrations",[336],{"title":337,"path":338,"stem":339},"Flutter","\u002F2.x\u002Fintegrations\u002Fflutter","2.x\u002F5.integrations\u002F1.flutter",{"id":341,"title":208,"body":342,"description":2006,"extension":2007,"links":2008,"meta":2009,"navigation":463,"path":214,"seo":2010,"sitemap":2011,"stem":215,"updatedAt":2012,"__hash__":2013},"docs3x\u002F8.extensions\u002F1.overview.md",{"type":343,"value":344,"toc":1996},"minimark",[345,362,819,822,827,836,887,891,898,948,955,1028,1034,1135,1152,1156,1162,1203,1227,1231,1286,1291,1302,1494,1616,1620,1908,1912,1923,1931,1981,1992],[346,347,348,349,353,354,357,358,361],"p",{},"An extension adds behavior to every resource of an application from one class: a tenant restriction, field rules per plan, a quota on writes, a line in the meta of each page. The class extends ",[350,351,352],"code",{},"Lomkit\\Rest\\Extensions\\Extension"," and implements one or more kinds, the interfaces of ",[350,355,356],{},"Lomkit\\Rest\\Extensions\\Kinds",", each of which extends ",[350,359,360],{},"ExtensionKind",".",[363,364,370],"pre",{"className":365,"code":366,"filename":367,"language":368,"meta":369,"style":369},"language-php shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","use Lomkit\\Rest\\Extensions\\Contexts\\RestrictionContext;\nuse Lomkit\\Rest\\Extensions\\Extension;\nuse Lomkit\\Rest\\Extensions\\Kinds\\RestrictsQueries;\n\nfinal class ArchiveExtension extends Extension implements RestrictsQueries\n{\n    public function __construct(private readonly ArchivePolicy $policy) {}\n\n    #[\\Override]\n    public static function name(): string\n    {\n        return 'archive';\n    }\n\n    #[\\Override]\n    public function appliesTo(string $resource): bool\n    {\n        return is_subclass_of($resource, ArchivableResource::class);\n    }\n\n    #[\\Override]\n    public function restrict(RestrictionContext $context): void\n    {\n        if (! $this->policy->showsArchived($context->user)) {\n            $context->query->where($context->query->qualifyColumn('archived'), false);\n        }\n    }\n}\n","app\u002FRest\u002FExtensions\u002FArchiveExtension.php","php","",[350,371,372,409,431,458,465,491,497,534,539,550,569,575,594,600,605,614,640,645,673,678,683,692,716,721,756,802,808,813],{"__ignoreMap":369},[373,374,377,381,385,389,392,394,396,398,401,403,406],"span",{"class":375,"line":376},"line",1,[373,378,380],{"class":379},"sbssI","use",[373,382,384],{"class":383},"sTEyZ"," Lomkit",[373,386,388],{"class":387},"sMK4o","\\",[373,390,391],{"class":383},"Rest",[373,393,388],{"class":387},[373,395,208],{"class":383},[373,397,388],{"class":387},[373,399,400],{"class":383},"Contexts",[373,402,388],{"class":387},[373,404,405],{"class":383},"RestrictionContext",[373,407,408],{"class":387},";\n",[373,410,412,414,416,418,420,422,424,426,429],{"class":375,"line":411},2,[373,413,380],{"class":379},[373,415,384],{"class":383},[373,417,388],{"class":387},[373,419,391],{"class":383},[373,421,388],{"class":387},[373,423,208],{"class":383},[373,425,388],{"class":387},[373,427,428],{"class":383},"Extension",[373,430,408],{"class":387},[373,432,434,436,438,440,442,444,446,448,451,453,456],{"class":375,"line":433},3,[373,435,380],{"class":379},[373,437,384],{"class":383},[373,439,388],{"class":387},[373,441,391],{"class":383},[373,443,388],{"class":387},[373,445,208],{"class":383},[373,447,388],{"class":387},[373,449,450],{"class":383},"Kinds",[373,452,388],{"class":387},[373,454,455],{"class":383},"RestrictsQueries",[373,457,408],{"class":387},[373,459,461],{"class":375,"line":460},4,[373,462,464],{"emptyLinePlaceholder":463},true,"\n",[373,466,468,472,475,479,482,485,488],{"class":375,"line":467},5,[373,469,471],{"class":470},"spNyl","final",[373,473,474],{"class":470}," class",[373,476,478],{"class":477},"sBMFI"," ArchiveExtension",[373,480,481],{"class":470}," extends",[373,483,484],{"class":477}," Extension",[373,486,487],{"class":470}," implements",[373,489,490],{"class":477}," RestrictsQueries\n",[373,492,494],{"class":375,"line":493},6,[373,495,496],{"class":387},"{\n",[373,498,500,503,506,510,513,516,519,522,525,528,531],{"class":375,"line":499},7,[373,501,502],{"class":470},"    public",[373,504,505],{"class":470}," function",[373,507,509],{"class":508},"s2Zo4"," __construct",[373,511,512],{"class":387},"(",[373,514,515],{"class":470},"private",[373,517,518],{"class":470}," readonly",[373,520,521],{"class":477}," ArchivePolicy",[373,523,524],{"class":387}," $",[373,526,527],{"class":383},"policy",[373,529,530],{"class":387},")",[373,532,533],{"class":387}," {}\n",[373,535,537],{"class":375,"line":536},8,[373,538,464],{"emptyLinePlaceholder":463},[373,540,542,545,547],{"class":375,"line":541},9,[373,543,544],{"class":383},"    #[",[373,546,388],{"class":387},[373,548,549],{"class":383},"Override]\n",[373,551,553,555,558,560,563,566],{"class":375,"line":552},10,[373,554,502],{"class":470},[373,556,557],{"class":470}," static",[373,559,505],{"class":470},[373,561,562],{"class":508}," name",[373,564,565],{"class":387},"():",[373,567,568],{"class":379}," string\n",[373,570,572],{"class":375,"line":571},11,[373,573,574],{"class":387},"    {\n",[373,576,578,582,585,589,592],{"class":375,"line":577},12,[373,579,581],{"class":580},"s7zQu","        return",[373,583,584],{"class":387}," '",[373,586,588],{"class":587},"sfazB","archive",[373,590,591],{"class":387},"'",[373,593,408],{"class":387},[373,595,597],{"class":375,"line":596},13,[373,598,599],{"class":387},"    }\n",[373,601,603],{"class":375,"line":602},14,[373,604,464],{"emptyLinePlaceholder":463},[373,606,608,610,612],{"class":375,"line":607},15,[373,609,544],{"class":383},[373,611,388],{"class":387},[373,613,549],{"class":383},[373,615,617,619,621,624,626,629,631,634,637],{"class":375,"line":616},16,[373,618,502],{"class":470},[373,620,505],{"class":470},[373,622,623],{"class":508}," appliesTo",[373,625,512],{"class":387},[373,627,628],{"class":379},"string",[373,630,524],{"class":387},[373,632,633],{"class":383},"resource",[373,635,636],{"class":387},"):",[373,638,639],{"class":379}," bool\n",[373,641,643],{"class":375,"line":642},17,[373,644,574],{"class":387},[373,646,648,650,653,656,658,661,664,667,670],{"class":375,"line":647},18,[373,649,581],{"class":580},[373,651,652],{"class":508}," is_subclass_of",[373,654,655],{"class":387},"($",[373,657,633],{"class":383},[373,659,660],{"class":387},",",[373,662,663],{"class":477}," ArchivableResource",[373,665,666],{"class":387},"::",[373,668,669],{"class":379},"class",[373,671,672],{"class":387},");\n",[373,674,676],{"class":375,"line":675},19,[373,677,599],{"class":387},[373,679,681],{"class":375,"line":680},20,[373,682,464],{"emptyLinePlaceholder":463},[373,684,686,688,690],{"class":375,"line":685},21,[373,687,544],{"class":383},[373,689,388],{"class":387},[373,691,549],{"class":383},[373,693,695,697,699,702,704,706,708,711,713],{"class":375,"line":694},22,[373,696,502],{"class":470},[373,698,505],{"class":470},[373,700,701],{"class":508}," restrict",[373,703,512],{"class":387},[373,705,405],{"class":477},[373,707,524],{"class":387},[373,709,710],{"class":383},"context",[373,712,636],{"class":387},[373,714,715],{"class":379}," void\n",[373,717,719],{"class":375,"line":718},23,[373,720,574],{"class":387},[373,722,724,727,730,733,735,738,741,743,745,747,750,753],{"class":375,"line":723},24,[373,725,726],{"class":580},"        if",[373,728,729],{"class":387}," (!",[373,731,732],{"class":387}," $this->",[373,734,527],{"class":383},[373,736,737],{"class":387},"->",[373,739,740],{"class":508},"showsArchived",[373,742,655],{"class":387},[373,744,710],{"class":383},[373,746,737],{"class":387},[373,748,749],{"class":383},"user",[373,751,752],{"class":387},"))",[373,754,755],{"class":387}," {\n",[373,757,759,762,764,766,769,771,774,776,778,780,782,784,787,789,791,794,796,799],{"class":375,"line":758},25,[373,760,761],{"class":387},"            $",[373,763,710],{"class":383},[373,765,737],{"class":387},[373,767,768],{"class":383},"query",[373,770,737],{"class":387},[373,772,773],{"class":508},"where",[373,775,655],{"class":387},[373,777,710],{"class":383},[373,779,737],{"class":387},[373,781,768],{"class":383},[373,783,737],{"class":387},[373,785,786],{"class":508},"qualifyColumn",[373,788,512],{"class":387},[373,790,591],{"class":387},[373,792,793],{"class":587},"archived",[373,795,591],{"class":387},[373,797,798],{"class":387},"),",[373,800,801],{"class":387}," false);\n",[373,803,805],{"class":375,"line":804},26,[373,806,807],{"class":387},"        }\n",[373,809,811],{"class":375,"line":810},27,[373,812,599],{"class":387},[373,814,816],{"class":375,"line":815},28,[373,817,818],{"class":387},"}\n",[346,820,821],{},"The methods of the resources stay the path of the application. Extensions apply after them, and their order never changes the result.",[823,824,826],"h2",{"id":825},"the-name","The name",[346,828,829,832,833,835],{},[350,830,831],{},"name()"," is the one abstract method of ",[350,834,428],{},". It returns the name of the extension:",[837,838,839,851,874,884],"ul",{},[840,841,842,843,846,847,850],"li",{},"The name is a public contract. It is the meta key (",[350,844,845],{},"meta.archive"," of searches and ",[350,848,849],{},"\u002Fdetails",") and the prefix of the instruction keys, response components, cache keys and SQL aliases that the extension adds. A package picks a name specific to it and keeps it for its whole major version.",[840,852,853,854,857,858,861,862,865,866,869,870,873],{},"A name has 1 to 32 lowercase letters or digits, starts with a letter and joins words with single underscores, such as ",[350,855,856],{},"acl"," or ",[350,859,860],{},"row_lock",". Two underscores separate it from the keys it prefixes (",[350,863,864],{},"acl__locked","), so ",[350,867,868],{},"acl__x"," and ",[350,871,872],{},"acl_"," are refused.",[840,875,876,877,879,880,883],{},"Return a constant. A ",[350,878,831],{}," that returns an invalid name, or that throws, is refused with ",[350,881,882],{},"Lomkit\\Rest\\Exceptions\\InvalidExtensionException",", which names the class and the value or the error.",[840,885,886],{},"A subclass inherits the name. Override it only to run the subclass beside its parent.",[823,888,890],{"id":889},"registering-an-extension","Registering an extension",[346,892,893,894,897],{},"An application lists its extension classes in ",[350,895,896],{},"config\u002Frest.php",":",[363,899,901],{"className":365,"code":900,"filename":896,"language":368,"meta":369,"style":369},"'extensions' => [\n    App\\Rest\\Extensions\\ArchiveExtension::class,\n],\n",[350,902,903,918,943],{"__ignoreMap":369},[373,904,905,907,910,912,915],{"class":375,"line":376},[373,906,591],{"class":387},[373,908,909],{"class":587},"extensions",[373,911,591],{"class":387},[373,913,914],{"class":387}," =>",[373,916,917],{"class":387}," [\n",[373,919,920,923,925,927,929,931,933,936,938,940],{"class":375,"line":411},[373,921,922],{"class":383},"    App",[373,924,388],{"class":387},[373,926,391],{"class":383},[373,928,388],{"class":387},[373,930,208],{"class":383},[373,932,388],{"class":387},[373,934,935],{"class":477},"ArchiveExtension",[373,937,666],{"class":387},[373,939,669],{"class":379},[373,941,942],{"class":387},",\n",[373,944,945],{"class":375,"line":433},[373,946,947],{"class":387},"],\n",[346,949,950,951,954],{},"A package registers its classes from the ",[350,952,953],{},"register()"," method of a service provider, so they are active on install:",[363,956,958],{"className":365,"code":957,"language":368,"meta":369,"style":369},"use Lomkit\\Rest\\Facades\\Rest;\n\npublic function register(): void\n{\n    Rest::registerExtension(AccessControlExtension::class);\n}\n",[350,959,960,981,985,999,1003,1024],{"__ignoreMap":369},[373,961,962,964,966,968,970,972,975,977,979],{"class":375,"line":376},[373,963,380],{"class":379},[373,965,384],{"class":383},[373,967,388],{"class":387},[373,969,391],{"class":383},[373,971,388],{"class":387},[373,973,974],{"class":383},"Facades",[373,976,388],{"class":387},[373,978,391],{"class":383},[373,980,408],{"class":387},[373,982,983],{"class":375,"line":411},[373,984,464],{"emptyLinePlaceholder":463},[373,986,987,990,992,995,997],{"class":375,"line":433},[373,988,989],{"class":470},"public",[373,991,505],{"class":470},[373,993,994],{"class":508}," register",[373,996,565],{"class":387},[373,998,715],{"class":379},[373,1000,1001],{"class":375,"line":460},[373,1002,496],{"class":387},[373,1004,1005,1008,1010,1013,1015,1018,1020,1022],{"class":375,"line":467},[373,1006,1007],{"class":477},"    Rest",[373,1009,666],{"class":387},[373,1011,1012],{"class":508},"registerExtension",[373,1014,512],{"class":387},[373,1016,1017],{"class":477},"AccessControlExtension",[373,1019,666],{"class":387},[373,1021,669],{"class":379},[373,1023,672],{"class":387},[373,1025,1026],{"class":375,"line":493},[373,1027,818],{"class":387},[346,1029,1030,1033],{},[350,1031,1032],{},"Rest::registerExtensions([AccessControlExtension::class, TenantExtension::class])"," registers several classes.",[837,1035,1036,1073,1079,1095,1108,1122],{},[840,1037,1038,1039,1042,1043,1046,1047,1050,1051,1054,1055,1058,1059,857,1062,1065,1066,1069,1070,1072],{},"Extensions are registered by class name. An instance passed to ",[350,1040,1041],{},"registerExtension()"," is a PHP ",[350,1044,1045],{},"TypeError",". An instance, a value that is not a string, or an array that is not a list in ",[350,1048,1049],{},"registerExtensions()"," throws ",[350,1052,1053],{},"InvalidExtensionException",", which shows the list form ",[350,1056,1057],{},"[AccessControlExtension::class]",". In the config, a ",[350,1060,1061],{},"rest.extensions",[350,1063,1064],{},"rest.disabled_extensions"," value that is not a list throws ",[350,1067,1068],{},"Lomkit\\Rest\\Exceptions\\InvalidConfigException",", and an instance or a value that is not a string in the list throws ",[350,1071,1053],{}," when a context first reads its extensions. Both name the config key.",[840,1074,1075,1076,1078],{},"A registration checks the class first: it exists, extends ",[350,1077,428],{}," and is not abstract. It then reads the name. A package author sees the error on install. The classes of the config get the same checks when a context first reads its extensions.",[840,1080,1081,1082,1084,1085,1088,1089,1092,1093,361],{},"From ",[350,1083,953],{},", a registration works in any provider order. From ",[350,1086,1087],{},"boot()",", it works only before every provider that declares ",[350,1090,1091],{},"Rest::resource()"," routes in its own ",[350,1094,1087],{},[840,1096,1097,1098,1100,1101,1103,1104,1107],{},"Runtime registrations are fixed once the application has booted, or earlier when the package builds its first context or registers its first ",[350,1099,1091],{}," route. A later registration throws ",[350,1102,1053],{},", which names the class: never register from a deferred provider or a ",[350,1105,1106],{},"booted()"," callback.",[840,1109,1110,1111,1114,1115,1118,1119,1121],{},"The config is read again for each context: a request, a queued action, ",[350,1112,1113],{},"Rest::search()",", the OpenAPI document and ",[350,1116,1117],{},"rest:check",". A config cached without the ",[350,1120,909],{}," key reads as no extension.",[840,1123,1124,1125,1128,1129,1131,1132,361],{},"One class counts once, registered twice or both registered by a package and listed in the config. Its origin is ",[350,1126,1127],{},"config"," when ",[350,1130,1061],{}," lists it, else ",[350,1133,1134],{},"runtime",[1136,1137,1138],"tip",{},[346,1139,1140,1141,857,1144,1147,1148,1151],{},"In the tests of a package, register through a provider, ",[350,1142,1143],{},"defineEnvironment()",[350,1145,1146],{},"#[DefineEnvironment]",", which run before the boot, or with ",[350,1149,1150],{},"#[WithConfig('rest.extensions', [...])]",". A registration from a test body throws.",[823,1153,1155],{"id":1154},"disabling-or-replacing-an-extension","Disabling or replacing an extension",[346,1157,1158,1161],{},[350,1159,1160],{},"disabled_extensions"," lists the classes to disable, wherever they come from:",[363,1163,1165],{"className":365,"code":1164,"filename":896,"language":368,"meta":369,"style":369},"'disabled_extensions' => [\n    Vendor\\Acl\\AccessControlExtension::class,\n],\n",[350,1166,1167,1179,1199],{"__ignoreMap":369},[373,1168,1169,1171,1173,1175,1177],{"class":375,"line":376},[373,1170,591],{"class":387},[373,1172,1160],{"class":587},[373,1174,591],{"class":387},[373,1176,914],{"class":387},[373,1178,917],{"class":387},[373,1180,1181,1184,1186,1189,1191,1193,1195,1197],{"class":375,"line":411},[373,1182,1183],{"class":383},"    Vendor",[373,1185,388],{"class":387},[373,1187,1188],{"class":383},"Acl",[373,1190,388],{"class":387},[373,1192,1017],{"class":477},[373,1194,666],{"class":387},[373,1196,669],{"class":379},[373,1198,942],{"class":387},[373,1200,1201],{"class":375,"line":433},[373,1202,947],{"class":387},[837,1204,1205,1208,1211,1220],{},[840,1206,1207],{},"A disabled class is never built, and its name never collides with another.",[840,1209,1210],{},"The exact class is compared: a subclass stays enabled when its parent is disabled. A leading backslash or another letter case still designates the same class.",[840,1212,1213,1214,1216,1217,1219],{},"To replace a package extension, extend it, list the subclass in ",[350,1215,909],{}," and the package class in ",[350,1218,1160],{},". The subclass inherits the name, so its meta and instruction keys stay the same.",[840,1221,1222,1223,1226],{},"Two enabled classes with one name are refused when a context builds its extensions, with a message that names both classes: ",[350,1224,1225],{},"The extensions App\\Rest\\Extensions\\AclExtension and Vendor\\Acl\\AccessControlExtension share the name [acl]. Add one of them to the [rest.disabled_extensions] config, or extend one of them and override name() to give it another name."," A subclass listed beside its enabled parent is refused the same way.",[823,1228,1230],{"id":1229},"how-extensions-run","How extensions run",[837,1232,1233,1236,1244,1251,1256,1266,1273],{},[840,1234,1235],{},"The container builds each extension once per context, at first use, so its constructor can inject services. With no extension, nothing is built.",[840,1237,1238,1239,1241,1242,361],{},"Keep settings in properties. For other settings, register a subclass with its own ",[350,1240,831],{},", or with the parent in ",[350,1243,1160],{},[840,1245,1246,1247,1250],{},"Never bind an extension as a singleton: one instance would serve every context of an Octane or queue worker. Bind it with ",[350,1248,1249],{},"bind()",", or not at all.",[840,1252,1253,1254,361],{},"Building an extension checks its class again: a class that implements no kind, or a binding that builds another class, throws ",[350,1255,1053],{},[840,1257,1258,1261,1262,1265],{},[350,1259,1260],{},"appliesTo(string $resource)"," returns ",[350,1263,1264],{},"true"," by default. Each context asks it once per resource class and keeps the answer, so it may read the resource class and the config, never the user or the request.",[840,1267,1268,1269,1272],{},"Each kind method receives one context object of ",[350,1270,1271],{},"Lomkit\\Rest\\Extensions\\Contexts",". Each kind calls its extensions in name order, so the order of the config never shows.",[840,1274,1275,1276,1279,1280,1283,1284,361],{},"An exception thrown by an extension reaches the caller, except from ",[350,1277,1278],{},"ObservesWrites",", whose exceptions are reported, and from ",[350,1281,1282],{},"ChecksResources",", whose exceptions are problems of ",[350,1285,1117],{},[1287,1288,1290],"h3",{"id":1289},"errors","Errors",[346,1292,1293,1294,1297,1298,1301],{},"Every error about an extension extends ",[350,1295,1296],{},"Lomkit\\Rest\\Exceptions\\ExtensionException",": catch that class for all of them. Each message names the extension by its name and its class, and ",[350,1299,1300],{},"concerns($class)"," tells whether an error is about that extension class:",[363,1303,1305],{"className":365,"code":1304,"language":368,"meta":369,"style":369},"use Lomkit\\Rest\\Exceptions\\ExtensionException;\nuse Lomkit\\Rest\\Facades\\Rest;\n\ntry {\n    $page = Rest::search(TicketResource::class)->as($user)->payload($search)->page();\n} catch (ExtensionException $e) {\n    if (! $e->concerns(AccessControlExtension::class)) {\n        throw $e;\n    }\n\n    \u002F\u002F ...\n}\n",[350,1306,1307,1329,1349,1353,1360,1415,1437,1465,1476,1480,1484,1490],{"__ignoreMap":369},[373,1308,1309,1311,1313,1315,1317,1319,1322,1324,1327],{"class":375,"line":376},[373,1310,380],{"class":379},[373,1312,384],{"class":383},[373,1314,388],{"class":387},[373,1316,391],{"class":383},[373,1318,388],{"class":387},[373,1320,1321],{"class":383},"Exceptions",[373,1323,388],{"class":387},[373,1325,1326],{"class":383},"ExtensionException",[373,1328,408],{"class":387},[373,1330,1331,1333,1335,1337,1339,1341,1343,1345,1347],{"class":375,"line":411},[373,1332,380],{"class":379},[373,1334,384],{"class":383},[373,1336,388],{"class":387},[373,1338,391],{"class":383},[373,1340,388],{"class":387},[373,1342,974],{"class":383},[373,1344,388],{"class":387},[373,1346,391],{"class":383},[373,1348,408],{"class":387},[373,1350,1351],{"class":375,"line":433},[373,1352,464],{"emptyLinePlaceholder":463},[373,1354,1355,1358],{"class":375,"line":460},[373,1356,1357],{"class":580},"try",[373,1359,755],{"class":387},[373,1361,1362,1365,1368,1371,1374,1376,1379,1381,1384,1386,1388,1391,1394,1396,1398,1400,1403,1405,1407,1409,1412],{"class":375,"line":467},[373,1363,1364],{"class":387},"    $",[373,1366,1367],{"class":383},"page ",[373,1369,1370],{"class":387},"=",[373,1372,1373],{"class":477}," Rest",[373,1375,666],{"class":387},[373,1377,1378],{"class":508},"search",[373,1380,512],{"class":387},[373,1382,1383],{"class":477},"TicketResource",[373,1385,666],{"class":387},[373,1387,669],{"class":379},[373,1389,1390],{"class":387},")->",[373,1392,1393],{"class":508},"as",[373,1395,655],{"class":387},[373,1397,749],{"class":383},[373,1399,1390],{"class":387},[373,1401,1402],{"class":508},"payload",[373,1404,655],{"class":387},[373,1406,1378],{"class":383},[373,1408,1390],{"class":387},[373,1410,1411],{"class":508},"page",[373,1413,1414],{"class":387},"();\n",[373,1416,1417,1420,1423,1426,1428,1430,1433,1435],{"class":375,"line":493},[373,1418,1419],{"class":387},"}",[373,1421,1422],{"class":580}," catch",[373,1424,1425],{"class":387}," (",[373,1427,1326],{"class":477},[373,1429,524],{"class":387},[373,1431,1432],{"class":383},"e",[373,1434,530],{"class":387},[373,1436,755],{"class":387},[373,1438,1439,1442,1444,1446,1448,1450,1453,1455,1457,1459,1461,1463],{"class":375,"line":499},[373,1440,1441],{"class":580},"    if",[373,1443,729],{"class":387},[373,1445,524],{"class":387},[373,1447,1432],{"class":383},[373,1449,737],{"class":387},[373,1451,1452],{"class":508},"concerns",[373,1454,512],{"class":387},[373,1456,1017],{"class":477},[373,1458,666],{"class":387},[373,1460,669],{"class":379},[373,1462,752],{"class":387},[373,1464,755],{"class":387},[373,1466,1467,1470,1472,1474],{"class":375,"line":536},[373,1468,1469],{"class":580},"        throw",[373,1471,524],{"class":387},[373,1473,1432],{"class":383},[373,1475,408],{"class":387},[373,1477,1478],{"class":375,"line":541},[373,1479,599],{"class":387},[373,1481,1482],{"class":375,"line":552},[373,1483,464],{"emptyLinePlaceholder":463},[373,1485,1486],{"class":375,"line":571},[373,1487,1489],{"class":1488},"sHwdD","    \u002F\u002F ...\n",[373,1491,1492],{"class":375,"line":577},[373,1493,818],{"class":387},[1495,1496,1497,1510],"table",{},[1498,1499,1500],"thead",{},[1501,1502,1503,1507],"tr",{},[1504,1505,1506],"th",{},"Exception",[1504,1508,1509],{},"Thrown by",[1511,1512,1513,1523,1533,1543,1553,1565,1577,1589,1604],"tbody",{},[1501,1514,1515,1520],{},[1516,1517,1518],"td",{},[350,1519,1053],{},[1516,1521,1522],{},"registration, names and building",[1501,1524,1525,1530],{},[1516,1526,1527],{},[350,1528,1529],{},"InvalidQueryExtensionException",[1516,1531,1532],{},"the query kinds",[1501,1534,1535,1540],{},[1516,1536,1537],{},[350,1538,1539],{},"InvalidEngineExtensionException",[1516,1541,1542],{},"the engine kinds",[1501,1544,1545,1550],{},[1516,1546,1547],{},[350,1548,1549],{},"InvalidAuthorizationExtensionException",[1516,1551,1552],{},"the authorization kinds",[1501,1554,1555,1560],{},[1516,1556,1557],{},[350,1558,1559],{},"InvalidFieldExtensionException",[1516,1561,1562],{},[350,1563,1564],{},"NarrowsFields",[1501,1566,1567,1572],{},[1516,1568,1569],{},[350,1570,1571],{},"InvalidRouteExtensionException",[1516,1573,1574],{},[350,1575,1576],{},"AddsRouteMiddleware",[1501,1578,1579,1584],{},[1516,1580,1581],{},[350,1582,1583],{},"InvalidWriteExtensionException",[1516,1585,1586],{},[350,1587,1588],{},"GuardsWrites",[1501,1590,1591,1596],{},[1516,1592,1593],{},[350,1594,1595],{},"InvalidMetaExtensionException",[1516,1597,1598,869,1601],{},[350,1599,1600],{},"AddsSearchMeta",[350,1602,1603],{},"AddsDetailsMeta",[1501,1605,1606,1611],{},[1516,1607,1608],{},[350,1609,1610],{},"InvalidDocumentationExtensionException",[1516,1612,1613],{},[350,1614,1615],{},"DocumentsExtension",[823,1617,1619],{"id":1618},"the-kinds","The kinds",[1495,1621,1622,1635],{},[1498,1623,1624],{},[1501,1625,1626,1629,1632],{},[1504,1627,1628],{},"Family",[1504,1630,1631],{},"Kind",[1504,1633,1634],{},"What it does",[1511,1636,1637,1652,1666,1678,1690,1702,1716,1728,1740,1754,1766,1778,1790,1801,1815,1826,1837,1851,1869,1884,1895],{},[1501,1638,1639,1645,1649],{},[1516,1640,1641],{},[1642,1643,1644],"a",{"href":218},"Queries",[1516,1646,1647],{},[350,1648,455],{},[1516,1650,1651],{},"Adds where clauses to the perimeter of a resource, wherever the perimeter applies",[1501,1653,1654,1656,1661],{},[1516,1655],{},[1516,1657,1658],{},[350,1659,1660],{},"ProvidesPerimeter",[1516,1662,1663,1664],{},"Marks a restriction that is the perimeter, for ",[350,1665,1117],{},[1501,1667,1668,1670,1675],{},[1516,1669],{},[1516,1671,1672],{},[350,1673,1674],{},"AugmentsQueries",[1516,1676,1677],{},"Adds columns, subqueries and eager loads to the rendered rows, for the policies",[1501,1679,1680,1682,1687],{},[1516,1681],{},[1516,1683,1684],{},[350,1685,1686],{},"NarrowsLimits",[1516,1688,1689],{},"Narrows the page sizes, the total cap and the include limit for the user, never upward",[1501,1691,1692,1694,1699],{},[1516,1693],{},[1516,1695,1696],{},[350,1697,1698],{},"DeclaresInstructions",[1516,1700,1701],{},"Adds search instructions, keyed by the extension name",[1501,1703,1704,1708,1713],{},[1516,1705,1706],{},[1642,1707,92],{"href":222},[1516,1709,1710],{},[350,1711,1712],{},"RestrictsEngineQueries",[1516,1714,1715],{},"Restricts each search engine query, AND-ed with the perimeter and the client filters",[1501,1717,1718,1720,1725],{},[1516,1719],{},[1516,1721,1722],{},[350,1723,1724],{},"DeclaresIndexAttributes",[1516,1726,1727],{},"Declares server-only index attributes, lists of strings included",[1501,1729,1730,1732,1737],{},[1516,1731],{},[1516,1733,1734],{},[350,1735,1736],{},"ProvidesEngineProfiles",[1516,1738,1739],{},"Provides the profile of a Scout engine",[1501,1741,1742,1746,1751],{},[1516,1743,1744],{},[1642,1745,152],{"href":226},[1516,1747,1748],{},[350,1749,1750],{},"PreparesRowChecks",[1516,1752,1753],{},"Prepares the data that the policies read, before a batch of row checks",[1501,1755,1756,1758,1763],{},[1516,1757],{},[1516,1759,1760],{},[350,1761,1762],{},"VersionsRowChecks",[1516,1764,1765],{},"Adds row versions to the key of a kept decision",[1501,1767,1768,1770,1775],{},[1516,1769],{},[1516,1771,1772],{},[350,1773,1774],{},"ContributesCacheContext",[1516,1776,1777],{},"Adds items to the cache keys of decisions and metric results, shortens or drops kept decisions",[1501,1779,1780,1782,1787],{},[1516,1781],{},[1516,1783,1784],{},[350,1785,1786],{},"DeclaresGates",[1516,1788,1789],{},"Adds gates to a resource",[1501,1791,1792,1794,1798],{},[1516,1793],{},[1516,1795,1796],{},[350,1797,1564],{},[1516,1799,1800],{},"Hides fields, or makes them read-only, unfilterable or unsortable, for the user",[1501,1802,1803,1808,1812],{},[1516,1804,1805],{},[1642,1806,1807],{"href":230},"Routes and writes",[1516,1809,1810],{},[350,1811,1576],{},[1516,1813,1814],{},"Adds middleware to the routes of an endpoint",[1501,1816,1817,1819,1823],{},[1516,1818],{},[1516,1820,1821],{},[350,1822,1588],{},[1516,1824,1825],{},"Refuses a write before it runs",[1501,1827,1828,1830,1834],{},[1516,1829],{},[1516,1831,1832],{},[350,1833,1278],{},[1516,1835,1836],{},"Is notified after the commit of each write",[1501,1838,1839,1841,1846],{},[1516,1840],{},[1516,1842,1843],{},[350,1844,1845],{},"ObservesReads",[1516,1847,1848,1849],{},"Is notified after each HTTP search, metric and ",[350,1850,849],{},[1501,1852,1853,1858,1862],{},[1516,1854,1855],{},[1642,1856,1857],{"href":234},"Responses and checks",[1516,1859,1860],{},[350,1861,1600],{},[1516,1863,1864,1865,1868],{},"Adds keys under ",[350,1866,1867],{},"meta.{name}"," of a search page",[1501,1870,1871,1873,1877],{},[1516,1872],{},[1516,1874,1875],{},[350,1876,1603],{},[1516,1878,1864,1879,1881,1882],{},[350,1880,1867],{}," of ",[350,1883,849],{},[1501,1885,1886,1888,1892],{},[1516,1887],{},[1516,1889,1890],{},[350,1891,1615],{},[1516,1893,1894],{},"Documents the extension in the OpenAPI document",[1501,1896,1897,1899,1903],{},[1516,1898],{},[1516,1900,1901],{},[350,1902,1282],{},[1516,1904,1905,1906],{},"Adds checks to ",[350,1907,1117],{},[823,1909,1911],{"id":1910},"checking-extensions","Checking extensions",[346,1913,1914,1917,1918,857,1920,1922],{},[350,1915,1916],{},"php artisan rest:check"," lists each extension with its name, class, origin (",[350,1919,1127],{},[350,1921,1134],{},") and disabled state, and builds each enabled one:",[363,1924,1929],{"className":1925,"code":1927,"language":1928},[1926],"language-text","extensions ... 2 extensions built, 1 disabled\nVendor\\Notes\\NotingExtension ... runtime, disabled\nacl ... Vendor\\Acl\\AccessControlExtension, runtime\nquota ... App\\Rest\\Extensions\\QuotaExtension, config\n","text",[350,1930,1927],{"__ignoreMap":369},[837,1932,1933,1936,1944,1950],{},[840,1934,1935],{},"The name of a disabled class is not read.",[840,1937,1938,1939,857,1941,1943],{},"It fails on a ",[350,1940,1061],{},[350,1942,1064],{}," value that is not a list, on each refused entry, on each pair of classes with one name and on each class that cannot be built, and still lists the others.",[840,1945,1946,1947,1949],{},"It notes, without failing, a ",[350,1948,1160],{}," entry that disables nothing: a class neither registered nor configured.",[840,1951,1952,1955,1956,1958,1959,1425,1962,1965,1966,1965,1968,1965,1971,1974,1975,869,1978,361],{},[350,1953,1954],{},"--json"," adds the ",[350,1957,909],{}," key: ",[350,1960,1961],{},"registered",[350,1963,1964],{},"name",", ",[350,1967,669],{},[350,1969,1970],{},"origin",[350,1972,1973],{},"disabled","), ",[350,1976,1977],{},"problems",[350,1979,1980],{},"notes",[346,1982,1983,1984,869,1988,361],{},"See ",[1642,1985,1987],{"href":1986},"\u002Fdigging-deeper\u002Fartisan#extensions","Extensions in rest:check",[1642,1989,1991],{"href":1990},"\u002Fdigging-deeper\u002Fartisan#extension-checks","Extension checks",[1993,1994,1995],"style",{},"html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .spNyl, html code.shiki .spNyl{--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .s2Zo4, html code.shiki .s2Zo4{--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF}html pre.shiki code .s7zQu, html code.shiki .s7zQu{--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":369,"searchDepth":376,"depth":411,"links":1997},[1998,1999,2000,2001,2004,2005],{"id":825,"depth":411,"text":826},{"id":889,"depth":411,"text":890},{"id":1154,"depth":411,"text":1155},{"id":1229,"depth":411,"text":1230,"children":2002},[2003],{"id":1289,"depth":433,"text":1290},{"id":1618,"depth":411,"text":1619},{"id":1910,"depth":411,"text":1911},"Add behavior to every resource from one class, registered by an app or a package, with a name, a list of kinds and checks at registration.","md",null,{},{"title":208,"description":2006},{"loc":214,"lastmod":2012},"2026-11-21T13:04:54+01:00","cOcjMZeJzpLu_r61Up88rjs3bI1JPsHeWge1RvFD06A",[2015,2017],{"title":204,"path":205,"stem":206,"description":2016,"children":-1},"Translate or reword every message that the package sends to clients, from the English lines it ships under the rest namespace.",{"title":217,"path":218,"stem":219,"description":2018,"children":-1},"Restrict the perimeter of every resource, add columns for the policies, narrow page sizes per user and add search instructions from an extension.",1795277216755]