@alook/daemon 0.1.59 → 0.1.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -373,3 +373,39 @@ const result = await session.closed;
373
373
  await eventsDone;
374
374
  void result;
375
375
  ```
376
+
377
+ ## Alook PII
378
+
379
+ The daemon filters outgoing Alook message body text locally, in pipeline order, before forwarding a send. Each bot has its own persisted pipeline at `<baseDir>/daemons/<machineId>/<botId>/pii/pipelines.json`, containing only that bot's plugin source and configuration. It loads that file once and reuses its configuration and compiled filters in memory; subsequent sends do not reread JSON or recompile unchanged filters. Successful management changes replace only that bot's snapshot. Manual file edits require a daemon restart. Another bot's invalid configuration does not block it. Attachments and requests to cloud models are outside this filter. Enabled filters fail closed: an error, invalid result, or execution limit blocks the send.
380
+
381
+ Fresh configurations contain five default filters: **Keys**, **Email addresses**, **ID numbers**, **Phone numbers** and **Bank cards**. Keys runs the previous private-key, recognized API-key, JWT/Authorization and credential-assignment/connection-password checks together, preserving their category-specific replacement markers. Already saved pipelines keep their installed filters, sources, flags and deletions; there is no automatic consolidation.
382
+
383
+ The default **ID numbers** filter covers selected identity, social-security and personal tax numbers across 16 countries/regions. Ambiguous numeric formats require a document label. See the [supported formats, checks and limitations](src/pii/ID_NUMBERS.md). Previously initialized configurations retain their installed rule sources.
384
+
385
+ The default **Phone numbers** filter recognizes international numbers and phone-labelled national numbers using pinned Google numbering metadata, alongside the existing standalone formats. See [recognition boundaries and source attribution](src/pii/PHONE_NUMBERS.md).
386
+
387
+ Inside a bot session:
388
+
389
+ ```sh
390
+ alook pii list
391
+ alook pii add --file ./company-terms.ts --description "Redacts internal project names"
392
+ ```
393
+
394
+ The TypeScript file default-exports a synchronous pure transform returning `{ text: string, triggered: boolean }`:
395
+
396
+ ```ts
397
+ export default (text: string) => {
398
+ let triggered = false;
399
+ const output = text.replace(/Project Wren/g, () => {
400
+ triggered = true;
401
+ return "[INTERNAL_PROJECT]";
402
+ });
403
+ return { text: output, triggered };
404
+ };
405
+ ```
406
+
407
+ The bool is explicit per plugin, including when a later plugin restores the text. Legacy string-returning sources remain executable with per-node input/output comparison as a compatibility estimate; that cannot report no-op matches. Successful sends include `pii.triggeredFilters` only when a filter reports a hit, without original values. See [credential formats, protocol and receipt limits](src/pii/CREDENTIALS.md).
408
+
409
+ Plugins have no provided filesystem, process, environment, network, or module-import capabilities. They run with memory and execution limits. Adding appends a new filter and cannot replace an existing filter. The CLI has no disable/delete operation. The human owner manages those actions in Privacy while the daemon is online, including for inactive bots. A dispatched request is not an applied change; the page waits for the local daemon's result. Deleted defaults stay deleted after restart. Rules can miss sensitive values; review the pipeline and its scope before relying on it.
410
+
411
+ The Privacy playground relays test text through Alook's server to the daemon and returns the selected pipeline's output. It uses the same runner and checks the displayed configuration revision. Test input and output are transient: they are not stored in configuration, chat history, replay queues or body logs. No chat message or model request is sent. Input and output must each fit 1024 UTF-8 bytes; a failed filter returns a safe error instead of partial output.
@@ -0,0 +1,387 @@
1
+ # Third-party notices
2
+
3
+ ## Magpie rule reference
4
+
5
+ The built-in detection rules in src/pii/defaults.ts are adapted from yetone/magpie, commit 46c41883277b30937364a27f1dbdc8a0d35eacf2, internal/redact/redact.go and ids.go. This implementation transforms outgoing Alook message text and does not implement Magpie's gateway or reversible masking.
6
+
7
+ MIT License
8
+
9
+ Copyright (c) 2026 yetone
10
+
11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ of this software and associated documentation files (the "Software"), to deal
13
+ in the Software without restriction, including without limitation the rights
14
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ copies of the Software, and to permit persons to whom the Software is
16
+ furnished to do so, subject to the following conditions:
17
+
18
+ The above copyright notice and this permission notice shall be included in all
19
+ copies or substantial portions of the Software.
20
+
21
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ SOFTWARE.
28
+
29
+ The following packages are included in the bundled TypeScript transformer. Their license texts are reproduced from the installed package releases.
30
+
31
+ ## sucrase
32
+
33
+ The MIT License (MIT)
34
+
35
+ Copyright (c) 2012-2018 various contributors (see AUTHORS)
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining a copy
38
+ of this software and associated documentation files (the "Software"), to deal
39
+ in the Software without restriction, including without limitation the rights
40
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
41
+ copies of the Software, and to permit persons to whom the Software is
42
+ furnished to do so, subject to the following conditions:
43
+
44
+ The above copyright notice and this permission notice shall be included in all
45
+ copies or substantial portions of the Software.
46
+
47
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
50
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
51
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
52
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
53
+ SOFTWARE.
54
+
55
+ ## @jridgewell/gen-mapping
56
+
57
+ Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
58
+
59
+ Permission is hereby granted, free of charge, to any person obtaining a copy
60
+ of this software and associated documentation files (the "Software"), to deal
61
+ in the Software without restriction, including without limitation the rights
62
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
63
+ copies of the Software, and to permit persons to whom the Software is
64
+ furnished to do so, subject to the following conditions:
65
+
66
+ The above copyright notice and this permission notice shall be included in
67
+ all copies or substantial portions of the Software.
68
+
69
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
70
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
71
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
72
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
73
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
74
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
75
+ SOFTWARE.
76
+
77
+ ## @jridgewell/resolve-uri
78
+
79
+ Copyright 2019 Justin Ridgewell <jridgewell@google.com>
80
+
81
+ Permission is hereby granted, free of charge, to any person obtaining a copy
82
+ of this software and associated documentation files (the "Software"), to deal
83
+ in the Software without restriction, including without limitation the rights
84
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
85
+ copies of the Software, and to permit persons to whom the Software is
86
+ furnished to do so, subject to the following conditions:
87
+
88
+ The above copyright notice and this permission notice shall be included in
89
+ all copies or substantial portions of the Software.
90
+
91
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
92
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
93
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
94
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
95
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
96
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
97
+ SOFTWARE.
98
+
99
+ ## @jridgewell/sourcemap-codec
100
+
101
+ Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
102
+
103
+ Permission is hereby granted, free of charge, to any person obtaining a copy
104
+ of this software and associated documentation files (the "Software"), to deal
105
+ in the Software without restriction, including without limitation the rights
106
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
107
+ copies of the Software, and to permit persons to whom the Software is
108
+ furnished to do so, subject to the following conditions:
109
+
110
+ The above copyright notice and this permission notice shall be included in
111
+ all copies or substantial portions of the Software.
112
+
113
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
114
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
115
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
116
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
117
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
118
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
119
+ SOFTWARE.
120
+
121
+ ## @jridgewell/trace-mapping
122
+
123
+ Copyright 2024 Justin Ridgewell <justin@ridgewell.name>
124
+
125
+ Permission is hereby granted, free of charge, to any person obtaining a copy
126
+ of this software and associated documentation files (the "Software"), to deal
127
+ in the Software without restriction, including without limitation the rights
128
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
129
+ copies of the Software, and to permit persons to whom the Software is
130
+ furnished to do so, subject to the following conditions:
131
+
132
+ The above copyright notice and this permission notice shall be included in
133
+ all copies or substantial portions of the Software.
134
+
135
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
136
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
137
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
138
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
139
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
140
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
141
+ SOFTWARE.
142
+
143
+ ## lines-and-columns
144
+
145
+ The MIT License (MIT)
146
+
147
+ Copyright (c) 2015 Brian Donovan
148
+
149
+ Permission is hereby granted, free of charge, to any person obtaining a copy
150
+ of this software and associated documentation files (the "Software"), to deal
151
+ in the Software without restriction, including without limitation the rights
152
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
153
+ copies of the Software, and to permit persons to whom the Software is
154
+ furnished to do so, subject to the following conditions:
155
+
156
+ The above copyright notice and this permission notice shall be included in
157
+ all copies or substantial portions of the Software.
158
+
159
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
160
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
161
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
162
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
163
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
164
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
165
+ THE SOFTWARE.
166
+
167
+ ## ts-interface-checker
168
+
169
+ Apache License
170
+ Version 2.0, January 2004
171
+ http://www.apache.org/licenses/
172
+
173
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
174
+
175
+ 1. Definitions.
176
+
177
+ "License" shall mean the terms and conditions for use, reproduction,
178
+ and distribution as defined by Sections 1 through 9 of this document.
179
+
180
+ "Licensor" shall mean the copyright owner or entity authorized by
181
+ the copyright owner that is granting the License.
182
+
183
+ "Legal Entity" shall mean the union of the acting entity and all
184
+ other entities that control, are controlled by, or are under common
185
+ control with that entity. For the purposes of this definition,
186
+ "control" means (i) the power, direct or indirect, to cause the
187
+ direction or management of such entity, whether by contract or
188
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
189
+ outstanding shares, or (iii) beneficial ownership of such entity.
190
+
191
+ "You" (or "Your") shall mean an individual or Legal Entity
192
+ exercising permissions granted by this License.
193
+
194
+ "Source" form shall mean the preferred form for making modifications,
195
+ including but not limited to software source code, documentation
196
+ source, and configuration files.
197
+
198
+ "Object" form shall mean any form resulting from mechanical
199
+ transformation or translation of a Source form, including but
200
+ not limited to compiled object code, generated documentation,
201
+ and conversions to other media types.
202
+
203
+ "Work" shall mean the work of authorship, whether in Source or
204
+ Object form, made available under the License, as indicated by a
205
+ copyright notice that is included in or attached to the work
206
+ (an example is provided in the Appendix below).
207
+
208
+ "Derivative Works" shall mean any work, whether in Source or Object
209
+ form, that is based on (or derived from) the Work and for which the
210
+ editorial revisions, annotations, elaborations, or other modifications
211
+ represent, as a whole, an original work of authorship. For the purposes
212
+ of this License, Derivative Works shall not include works that remain
213
+ separable from, or merely link (or bind by name) to the interfaces of,
214
+ the Work and Derivative Works thereof.
215
+
216
+ "Contribution" shall mean any work of authorship, including
217
+ the original version of the Work and any modifications or additions
218
+ to that Work or Derivative Works thereof, that is intentionally
219
+ submitted to Licensor for inclusion in the Work by the copyright owner
220
+ or by an individual or Legal Entity authorized to submit on behalf of
221
+ the copyright owner. For the purposes of this definition, "submitted"
222
+ means any form of electronic, verbal, or written communication sent
223
+ to the Licensor or its representatives, including but not limited to
224
+ communication on electronic mailing lists, source code control systems,
225
+ and issue tracking systems that are managed by, or on behalf of, the
226
+ Licensor for the purpose of discussing and improving the Work, but
227
+ excluding communication that is conspicuously marked or otherwise
228
+ designated in writing by the copyright owner as "Not a Contribution."
229
+
230
+ "Contributor" shall mean Licensor and any individual or Legal Entity
231
+ on behalf of whom a Contribution has been received by Licensor and
232
+ subsequently incorporated within the Work.
233
+
234
+ 2. Grant of Copyright License. Subject to the terms and conditions of
235
+ this License, each Contributor hereby grants to You a perpetual,
236
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
237
+ copyright license to reproduce, prepare Derivative Works of,
238
+ publicly display, publicly perform, sublicense, and distribute the
239
+ Work and such Derivative Works in Source or Object form.
240
+
241
+ 3. Grant of Patent License. Subject to the terms and conditions of
242
+ this License, each Contributor hereby grants to You a perpetual,
243
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
244
+ (except as stated in this section) patent license to make, have made,
245
+ use, offer to sell, sell, import, and otherwise transfer the Work,
246
+ where such license applies only to those patent claims licensable
247
+ by such Contributor that are necessarily infringed by their
248
+ Contribution(s) alone or by combination of their Contribution(s)
249
+ with the Work to which such Contribution(s) was submitted. If You
250
+ institute patent litigation against any entity (including a
251
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
252
+ or a Contribution incorporated within the Work constitutes direct
253
+ or contributory patent infringement, then any patent licenses
254
+ granted to You under this License for that Work shall terminate
255
+ as of the date such litigation is filed.
256
+
257
+ 4. Redistribution. You may reproduce and distribute copies of the
258
+ Work or Derivative Works thereof in any medium, with or without
259
+ modifications, and in Source or Object form, provided that You
260
+ meet the following conditions:
261
+
262
+ (a) You must give any other recipients of the Work or
263
+ Derivative Works a copy of this License; and
264
+
265
+ (b) You must cause any modified files to carry prominent notices
266
+ stating that You changed the files; and
267
+
268
+ (c) You must retain, in the Source form of any Derivative Works
269
+ that You distribute, all copyright, patent, trademark, and
270
+ attribution notices from the Source form of the Work,
271
+ excluding those notices that do not pertain to any part of
272
+ the Derivative Works; and
273
+
274
+ (d) If the Work includes a "NOTICE" text file as part of its
275
+ distribution, then any Derivative Works that You distribute must
276
+ include a readable copy of the attribution notices contained
277
+ within such NOTICE file, excluding those notices that do not
278
+ pertain to any part of the Derivative Works, in at least one
279
+ of the following places: within a NOTICE text file distributed
280
+ as part of the Derivative Works; within the Source form or
281
+ documentation, if provided along with the Derivative Works; or,
282
+ within a display generated by the Derivative Works, if and
283
+ wherever such third-party notices normally appear. The contents
284
+ of the NOTICE file are for informational purposes only and
285
+ do not modify the License. You may add Your own attribution
286
+ notices within Derivative Works that You distribute, alongside
287
+ or as an addendum to the NOTICE text from the Work, provided
288
+ that such additional attribution notices cannot be construed
289
+ as modifying the License.
290
+
291
+ You may add Your own copyright statement to Your modifications and
292
+ may provide additional or different license terms and conditions
293
+ for use, reproduction, or distribution of Your modifications, or
294
+ for any such Derivative Works as a whole, provided Your use,
295
+ reproduction, and distribution of the Work otherwise complies with
296
+ the conditions stated in this License.
297
+
298
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
299
+ any Contribution intentionally submitted for inclusion in the Work
300
+ by You to the Licensor shall be under the terms and conditions of
301
+ this License, without any additional terms or conditions.
302
+ Notwithstanding the above, nothing herein shall supersede or modify
303
+ the terms of any separate license agreement you may have executed
304
+ with Licensor regarding such Contributions.
305
+
306
+ 6. Trademarks. This License does not grant permission to use the trade
307
+ names, trademarks, service marks, or product names of the Licensor,
308
+ except as required for reasonable and customary use in describing the
309
+ origin of the Work and reproducing the content of the NOTICE file.
310
+
311
+ 7. Disclaimer of Warranty. Unless required by applicable law or
312
+ agreed to in writing, Licensor provides the Work (and each
313
+ Contributor provides its Contributions) on an "AS IS" BASIS,
314
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
315
+ implied, including, without limitation, any warranties or conditions
316
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
317
+ PARTICULAR PURPOSE. You are solely responsible for determining the
318
+ appropriateness of using or redistributing the Work and assume any
319
+ risks associated with Your exercise of permissions under this License.
320
+
321
+ 8. Limitation of Liability. In no event and under no legal theory,
322
+ whether in tort (including negligence), contract, or otherwise,
323
+ unless required by applicable law (such as deliberate and grossly
324
+ negligent acts) or agreed to in writing, shall any Contributor be
325
+ liable to You for damages, including any direct, indirect, special,
326
+ incidental, or consequential damages of any character arising as a
327
+ result of this License or out of the use or inability to use the
328
+ Work (including but not limited to damages for loss of goodwill,
329
+ work stoppage, computer failure or malfunction, or any and all
330
+ other commercial damages or losses), even if such Contributor
331
+ has been advised of the possibility of such damages.
332
+
333
+ 9. Accepting Warranty or Additional Liability. While redistributing
334
+ the Work or Derivative Works thereof, You may choose to offer,
335
+ and charge a fee for, acceptance of support, warranty, indemnity,
336
+ or other liability obligations and/or rights consistent with this
337
+ License. However, in accepting such obligations, You may act only
338
+ on Your own behalf and on Your sole responsibility, not on behalf
339
+ of any other Contributor, and only if You agree to indemnify,
340
+ defend, and hold each Contributor harmless for any liability
341
+ incurred by, or claims asserted against, such Contributor by reason
342
+ of your accepting any such warranty or additional liability.
343
+
344
+ END OF TERMS AND CONDITIONS
345
+
346
+ APPENDIX: How to apply the Apache License to your work.
347
+
348
+ To apply the Apache License to your work, attach the following
349
+ boilerplate notice, with the fields enclosed by brackets "{}"
350
+ replaced with your own identifying information. (Don't include
351
+ the brackets!) The text should be enclosed in the appropriate
352
+ comment syntax for the file format. We also recommend that a
353
+ file or class name and description of purpose be included on the
354
+ same "printed page" as the copyright notice for easier
355
+ identification within third-party archives.
356
+
357
+ Copyright {yyyy} {name of copyright owner}
358
+
359
+ Licensed under the Apache License, Version 2.0 (the "License");
360
+ you may not use this file except in compliance with the License.
361
+ You may obtain a copy of the License at
362
+
363
+ http://www.apache.org/licenses/LICENSE-2.0
364
+
365
+ Unless required by applicable law or agreed to in writing, software
366
+ distributed under the License is distributed on an "AS IS" BASIS,
367
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
368
+ See the License for the specific language governing permissions and
369
+ limitations under the License.
370
+
371
+ ## Google libphonenumber numbering-plan metadata
372
+
373
+ `src/pii/phone-number-plans.ts` and `src/pii/fixtures/phone-examples.json` adapt `resources/PhoneNumberMetadata.xml` from google/libphonenumber commit 1ae0d623301b302f828628dfc368c983e8d27141.
374
+
375
+ Copyright (C) 2009 The Libphonenumber Authors
376
+
377
+ Licensed under the Apache License, Version 2.0 (the "License");
378
+ you may not use this file except in compliance with the License.
379
+ You may obtain a copy of the License at
380
+
381
+ http://www.apache.org/licenses/LICENSE-2.0
382
+
383
+ Unless required by applicable law or agreed to in writing, software
384
+ distributed under the License is distributed on an "AS IS" BASIS,
385
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
386
+ See the License for the specific language governing permissions and
387
+ limitations under the License. The complete Apache License, Version 2.0 is included in LICENSE.