xrootd 0.2.3 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/LICENSE +189 -0
  3. package/README.md +334 -101
  4. package/dist/index.d.mts +620 -821
  5. package/dist/index.mjs +1554 -723
  6. package/package.json +64 -83
  7. package/LICENSE-GPLv3 +0 -674
  8. package/LICENSE-MIT +0 -7
  9. package/dist/index.cjs +0 -817
  10. package/dist/index.d.cts +0 -864
  11. package/libs/darwin-arm64/libXrdCl.6.dylib +0 -0
  12. package/libs/darwin-arm64/libXrdCrypto.6.dylib +0 -0
  13. package/libs/darwin-arm64/libXrdCryptossl-6.so +0 -0
  14. package/libs/darwin-arm64/libXrdSec-6.so +0 -0
  15. package/libs/darwin-arm64/libXrdSecProt-6.so +0 -0
  16. package/libs/darwin-arm64/libXrdSeckrb5-6.so +0 -0
  17. package/libs/darwin-arm64/libXrdSecpwd-6.so +0 -0
  18. package/libs/darwin-arm64/libXrdSecsss-6.so +0 -0
  19. package/libs/darwin-arm64/libXrdSecunix-6.so +0 -0
  20. package/libs/darwin-arm64/libXrdSecztn-6.so +0 -0
  21. package/libs/darwin-arm64/libXrdUtils.6.dylib +0 -0
  22. package/libs/darwin-arm64/libXrdXml.6.dylib +0 -0
  23. package/libs/darwin-x64/libXrdCl.6.dylib +0 -0
  24. package/libs/darwin-x64/libXrdCrypto.6.dylib +0 -0
  25. package/libs/darwin-x64/libXrdCryptossl-6.so +0 -0
  26. package/libs/darwin-x64/libXrdSec-6.so +0 -0
  27. package/libs/darwin-x64/libXrdSecProt-6.so +0 -0
  28. package/libs/darwin-x64/libXrdSeckrb5-6.so +0 -0
  29. package/libs/darwin-x64/libXrdSecpwd-6.so +0 -0
  30. package/libs/darwin-x64/libXrdSecsss-6.so +0 -0
  31. package/libs/darwin-x64/libXrdSecunix-6.so +0 -0
  32. package/libs/darwin-x64/libXrdSecztn-6.so +0 -0
  33. package/libs/darwin-x64/libXrdUtils.6.dylib +0 -0
  34. package/libs/darwin-x64/libXrdXml.6.dylib +0 -0
  35. package/libs/linux-arm64/libXrdCl.so.6 +0 -0
  36. package/libs/linux-arm64/libXrdCrypto.so.6 +0 -0
  37. package/libs/linux-arm64/libXrdCryptossl-6.so +0 -0
  38. package/libs/linux-arm64/libXrdSec-6.so +0 -0
  39. package/libs/linux-arm64/libXrdSecProt-6.so +0 -0
  40. package/libs/linux-arm64/libXrdSeckrb5-6.so +0 -0
  41. package/libs/linux-arm64/libXrdSecpwd-6.so +0 -0
  42. package/libs/linux-arm64/libXrdSecsss-6.so +0 -0
  43. package/libs/linux-arm64/libXrdSecunix-6.so +0 -0
  44. package/libs/linux-arm64/libXrdSecztn-6.so +0 -0
  45. package/libs/linux-arm64/libXrdUtils.so.6 +0 -0
  46. package/libs/linux-arm64/libXrdXml.so.6 +0 -0
  47. package/libs/linux-x64/libXrdCl.so.6 +0 -0
  48. package/libs/linux-x64/libXrdCrypto.so.6 +0 -0
  49. package/libs/linux-x64/libXrdCryptossl-6.so +0 -0
  50. package/libs/linux-x64/libXrdSec-6.so +0 -0
  51. package/libs/linux-x64/libXrdSecProt-6.so +0 -0
  52. package/libs/linux-x64/libXrdSeckrb5-6.so +0 -0
  53. package/libs/linux-x64/libXrdSecpwd-6.so +0 -0
  54. package/libs/linux-x64/libXrdSecsss-6.so +0 -0
  55. package/libs/linux-x64/libXrdSecunix-6.so +0 -0
  56. package/libs/linux-x64/libXrdSecztn-6.so +0 -0
  57. package/libs/linux-x64/libXrdUtils.so.6 +0 -0
  58. package/libs/linux-x64/libXrdXml.so.6 +0 -0
  59. package/prebuilds/darwin-arm64/xrootd.node +0 -0
  60. package/prebuilds/darwin-x64/xrootd.node +0 -0
  61. package/prebuilds/linux-arm64/xrootd.node +0 -0
  62. package/prebuilds/linux-x64/xrootd.node +0 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,24 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
6
+
7
+ ## [0.1.0] - 2026-07-05
8
+
9
+ ### Added
10
+
11
+ - **XRootDClient** high-level client with connection management, automatic redirect handling, and authentication
12
+ - **FileSystem** class for stateless filesystem operations (stat, readdir, mkdir, rmdir, rm, mv)
13
+ - **File** extensions: `sync()` and `truncate()` methods
14
+ - **Authentication framework**: pluggable `SecurityProtocol` interface with automatic protocol negotiation
15
+ - **host authentication**: IP-based trust authentication
16
+ - **SSS authentication**: Simple Shared Secret with Blowfish-ECB encryption and CRC32 checksum
17
+ - **Automatic redirect handling**: seamless server-to-server failover with configurable `maxRedirects`
18
+ - **Complete error handling**: `XRootDError` with full server error code coverage (3000-3035)
19
+ - Protocol request builders for all P1 request codes (sync, truncate, dirlist, mkdir, rmdir, rm, mv, auth, endsess)
20
+ - Response parsers for dirlist, redirect, and wait responses
21
+ - `StatInfo` with computed properties: `isDirectory`, `isLink`, `isOffline`, `isCached`
22
+ - Type definitions: `AuthConfig`, `ClientOptions`, `DirectoryEntry`, `DirectoryList`, `OpenOptions`
23
+ - Integration tests with Docker-based XRootD mock server
24
+ - End-to-end tests for filesystem operations, authentication, redirect, and error handling
package/LICENSE ADDED
@@ -0,0 +1,189 @@
1
+ Copyright (C) 2024 xrootd-client contributors
2
+
3
+ This program is free software: you can redistribute it and/or modify
4
+ it under the terms of the GNU Lesser General Public License as published by
5
+ the Free Software Foundation, either version 3 of the License, or
6
+ (at your option) any later version.
7
+
8
+ This program is distributed in the hope that it will be useful,
9
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ GNU Lesser General Public License for more details.
12
+
13
+ You should have received a copy of the GNU Lesser General Public License
14
+ along with this program. If not, see <https://www.gnu.org/licenses/>.
15
+
16
+ ---
17
+
18
+ This TypeScript client library is an independent implementation of the XRootD
19
+ protocol, originally developed by the Board of Trustees of the Leland Stanford,
20
+ Jr. University. The original XRootD project is licensed under LGPL-3.0-or-later
21
+ (see the xrootd/ subdirectory for the original license files).
22
+
23
+ The XRootD protocol specification is publicly available and this implementation
24
+ does not incorporate any source code from the original XRootD project.
25
+
26
+ GNU LESSER GENERAL PUBLIC LICENSE
27
+ Version 3, 29 June 2007
28
+
29
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
30
+ Everyone is permitted to copy and distribute verbatim copies
31
+ of this license document, but changing it is not allowed.
32
+
33
+
34
+ This version of the GNU Lesser General Public License incorporates
35
+ the terms and conditions of version 3 of the GNU General Public
36
+ License, supplemented by the additional permissions listed below.
37
+
38
+ 0. Additional Definitions.
39
+
40
+ As used herein, "this License" refers to version 3 of the GNU Lesser
41
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
42
+ General Public License.
43
+
44
+ "The Library" refers to a covered work governed by this License,
45
+ other than an Application or a Combined Work as defined below.
46
+
47
+ An "Application" is any work that makes use of an interface provided
48
+ by the Library, but which is not otherwise based on the Library.
49
+ Defining a subclass of a class defined by the Library is deemed a mode
50
+ of using an interface provided by the Library.
51
+
52
+ A "Combined Work" is a work produced by combining or linking an
53
+ Application with the Library. The particular version of the Library
54
+ with which the Combined Work was made is also called the "Linked
55
+ Version".
56
+
57
+ The "Minimal Corresponding Source" for a Combined Work means the
58
+ Corresponding Source for the Combined Work, excluding any source code
59
+ for portions of the Combined Work that, considered in isolation, are
60
+ based on the Application, and not on the Linked Version.
61
+
62
+ The "Corresponding Application Code" for a Combined Work means the
63
+ object code and/or source code for the Application, including any data
64
+ and utility programs needed for reproducing the Combined Work from the
65
+ Application, but excluding the System Libraries of the Combined Work.
66
+
67
+ 1. Exception to Section 3 of the GNU GPL.
68
+
69
+ You may convey a covered work under sections 3 and 4 of this License
70
+ without being bound by section 3 of the GNU GPL.
71
+
72
+ 2. Conveying Modified Versions.
73
+
74
+ If you modify a copy of the Library, and, in your modifications, a
75
+ facility refers to a function or data to be supplied by an Application
76
+ that uses the facility (other than as an argument passed when the
77
+ facility is invoked), then you may convey a copy of the modified
78
+ version:
79
+
80
+ a) under this License, provided that you make a good faith effort to
81
+ ensure that, in the event an Application does not supply the
82
+ function or data, the facility still operates, and performs
83
+ whatever part of its purpose remains meaningful, or
84
+
85
+ b) under the GNU GPL, with none of the additional permissions of
86
+ this License applicable to that copy.
87
+
88
+ 3. Object Code Incorporating Material from Library Header Files.
89
+
90
+ The object code form of an Application may incorporate material from
91
+ a header file that is part of the Library. You may convey such object
92
+ code under terms of your choice, provided that, if the incorporated
93
+ material is not limited to numerical parameters, data structure
94
+ layouts and accessors, or small macros, inline functions and templates
95
+ (ten or fewer lines in length), you do both of the following:
96
+
97
+ a) Give prominent notice with each copy of the object code that the
98
+ Library is used in it and that the Library and its use are
99
+ covered by this License.
100
+
101
+ b) Accompany the object code with a copy of the GNU GPL and this license
102
+ document.
103
+
104
+ 4. Combined Works.
105
+
106
+ You may convey a Combined Work under terms of your choice that,
107
+ taken together, effectively do not restrict modification of the
108
+ portions of the Library contained in the Combined Work and reverse
109
+ engineering for debugging such modifications, if you also do each of
110
+ the following:
111
+
112
+ a) Give prominent notice with each copy of the Combined Work that
113
+ the Library is used in it and that the Library and its use are
114
+ covered by this License.
115
+
116
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
117
+ document.
118
+
119
+ c) For a Combined Work that displays copyright notices during
120
+ execution, include the copyright notice for the Library among
121
+ these notices, as well as a reference directing the user to the
122
+ copies of the GNU GPL and this license document.
123
+
124
+ d) Do one of the following:
125
+
126
+ 0) Convey the Minimal Corresponding Source under the terms of this
127
+ License, and the Corresponding Application Code in a form
128
+ suitable for, and under terms that permit, the user to
129
+ recombine or relink the Application with a modified version of
130
+ the Linked Version to produce a modified Combined Work, in the
131
+ manner specified by section 6 of the GNU GPL for conveying
132
+ Corresponding Source.
133
+
134
+ 1) Use a suitable shared library mechanism for linking with the
135
+ Library. A suitable mechanism is one that (a) uses at run time
136
+ a copy of the Library already present on the user's computer
137
+ system, and (b) will operate properly with a modified version
138
+ of the Library that is interface-compatible with the Linked
139
+ Version.
140
+
141
+ e) Provide Installation Information, but only if you would otherwise
142
+ be required to provide such information under section 6 of the
143
+ GNU GPL, and only to the extent that such information is
144
+ necessary to install and execute a modified version of the
145
+ Combined Work produced by recombining or relinking the
146
+ Application with a modified version of the Linked Version. (If
147
+ you use option 4d0, the Installation Information must accompany
148
+ the Minimal Corresponding Source and Corresponding Application
149
+ Code. If you use option 4d1, you must provide the Installation
150
+ Information in the manner specified by section 6 of the GNU GPL
151
+ for conveying Corresponding Source.)
152
+
153
+ 5. Combined Libraries.
154
+
155
+ You may place library facilities that are a work based on the
156
+ Library side by side in a single library together with other library
157
+ facilities that are not Applications and are not covered by this
158
+ License, and convey such a combined library under terms of your
159
+ choice, if you do both of the following:
160
+
161
+ a) Accompany the combined library with a copy of the same work based
162
+ on the Library, uncombined with any other library facilities,
163
+ conveyed under the terms of this License.
164
+
165
+ b) Give prominent notice with the combined library that part of it
166
+ is a work based on the Library, and explaining where to find the
167
+ accompanying uncombined form of the same work.
168
+
169
+ 6. Revised Versions of the GNU Lesser General Public License.
170
+
171
+ The Free Software Foundation may publish revised and/or new versions
172
+ of the GNU Lesser General Public License from time to time. Such new
173
+ versions will be similar in spirit to the present version, but may
174
+ differ in detail to address new problems or concerns.
175
+
176
+ Each version is given a distinguishing version number. If the
177
+ Library as you received it specifies that a certain numbered version
178
+ of the GNU Lesser General Public License "or any later version"
179
+ applies to it, you have the option of following the terms and
180
+ conditions either of that published version or of any later version
181
+ published by the Free Software Foundation. If the Library as you
182
+ received it does not specify a version number of the GNU Lesser
183
+ General Public License, you may choose any version of the GNU Lesser
184
+ General Public License ever published by the Free Software Foundation.
185
+
186
+ If the Library as you received it specifies that a proxy can decide
187
+ whether future versions of the GNU Lesser General Public License shall
188
+ apply, that proxy's public statement of acceptance of any version is
189
+ permanent authorization for you to choose that version for the Library.