@raft-tech/rdp-sdk-typescript 2026.26.0
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/LICENSE +183 -0
- package/README.md +133 -0
- package/dist/examples/objects-publish.d.ts +2 -0
- package/dist/examples/objects-publish.d.ts.map +1 -0
- package/dist/examples/objects-publish.js +32 -0
- package/dist/examples/objects-publish.js.map +1 -0
- package/dist/examples/objects-search.d.ts +2 -0
- package/dist/examples/objects-search.d.ts.map +1 -0
- package/dist/examples/objects-search.js +20 -0
- package/dist/examples/objects-search.js.map +1 -0
- package/dist/examples/web/objects-publish.d.ts +2 -0
- package/dist/examples/web/objects-publish.d.ts.map +1 -0
- package/dist/examples/web/objects-publish.js +33 -0
- package/dist/examples/web/objects-publish.js.map +1 -0
- package/dist/examples/web/objects-search.d.ts +2 -0
- package/dist/examples/web/objects-search.d.ts.map +1 -0
- package/dist/examples/web/objects-search.js +21 -0
- package/dist/examples/web/objects-search.js.map +1 -0
- package/dist/gen/raft/wdm/v1/action_pb.d.ts +1540 -0
- package/dist/gen/raft/wdm/v1/action_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/action_pb.js +888 -0
- package/dist/gen/raft/wdm/v1/action_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/assessment_pb.d.ts +189 -0
- package/dist/gen/raft/wdm/v1/assessment_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/assessment_pb.js +143 -0
- package/dist/gen/raft/wdm/v1/assessment_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/aviation_pb.d.ts +192 -0
- package/dist/gen/raft/wdm/v1/aviation_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/aviation_pb.js +128 -0
- package/dist/gen/raft/wdm/v1/aviation_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/cbrn_pb.d.ts +270 -0
- package/dist/gen/raft/wdm/v1/cbrn_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/cbrn_pb.js +206 -0
- package/dist/gen/raft/wdm/v1/cbrn_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/common_pb.d.ts +1019 -0
- package/dist/gen/raft/wdm/v1/common_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/common_pb.js +504 -0
- package/dist/gen/raft/wdm/v1/common_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/comms_pb.d.ts +103 -0
- package/dist/gen/raft/wdm/v1/comms_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/comms_pb.js +52 -0
- package/dist/gen/raft/wdm/v1/comms_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/correlation_pb.d.ts +212 -0
- package/dist/gen/raft/wdm/v1/correlation_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/correlation_pb.js +119 -0
- package/dist/gen/raft/wdm/v1/correlation_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/ew_pb.d.ts +195 -0
- package/dist/gen/raft/wdm/v1/ew_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/ew_pb.js +140 -0
- package/dist/gen/raft/wdm/v1/ew_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/ground_pb.d.ts +138 -0
- package/dist/gen/raft/wdm/v1/ground_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/ground_pb.js +110 -0
- package/dist/gen/raft/wdm/v1/ground_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/identity_pb.d.ts +137 -0
- package/dist/gen/raft/wdm/v1/identity_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/identity_pb.js +79 -0
- package/dist/gen/raft/wdm/v1/identity_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/maritime_pb.d.ts +179 -0
- package/dist/gen/raft/wdm/v1/maritime_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/maritime_pb.js +106 -0
- package/dist/gen/raft/wdm/v1/maritime_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/object_pb.d.ts +547 -0
- package/dist/gen/raft/wdm/v1/object_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/object_pb.js +126 -0
- package/dist/gen/raft/wdm/v1/object_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/ontology_pb.d.ts +258 -0
- package/dist/gen/raft/wdm/v1/ontology_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/ontology_pb.js +201 -0
- package/dist/gen/raft/wdm/v1/ontology_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/orbital_pb.d.ts +175 -0
- package/dist/gen/raft/wdm/v1/orbital_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/orbital_pb.js +26 -0
- package/dist/gen/raft/wdm/v1/orbital_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/organization_pb.d.ts +573 -0
- package/dist/gen/raft/wdm/v1/organization_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/organization_pb.js +448 -0
- package/dist/gen/raft/wdm/v1/organization_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/platform_pb.d.ts +584 -0
- package/dist/gen/raft/wdm/v1/platform_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/platform_pb.js +280 -0
- package/dist/gen/raft/wdm/v1/platform_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/relationship_pb.d.ts +283 -0
- package/dist/gen/raft/wdm/v1/relationship_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/relationship_pb.js +224 -0
- package/dist/gen/raft/wdm/v1/relationship_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/security_pb.d.ts +112 -0
- package/dist/gen/raft/wdm/v1/security_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/security_pb.js +17 -0
- package/dist/gen/raft/wdm/v1/security_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/sensor_pb.d.ts +278 -0
- package/dist/gen/raft/wdm/v1/sensor_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/sensor_pb.js +190 -0
- package/dist/gen/raft/wdm/v1/sensor_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/service/action_service_pb.d.ts +734 -0
- package/dist/gen/raft/wdm/v1/service/action_service_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/service/action_service_pb.js +281 -0
- package/dist/gen/raft/wdm/v1/service/action_service_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/service/object_service_pb.d.ts +742 -0
- package/dist/gen/raft/wdm/v1/service/object_service_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/service/object_service_pb.js +289 -0
- package/dist/gen/raft/wdm/v1/service/object_service_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/service/query_pb.d.ts +1602 -0
- package/dist/gen/raft/wdm/v1/service/query_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/service/query_pb.js +222 -0
- package/dist/gen/raft/wdm/v1/service/query_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/signal_pb.d.ts +309 -0
- package/dist/gen/raft/wdm/v1/signal_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/signal_pb.js +139 -0
- package/dist/gen/raft/wdm/v1/signal_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/spatial_pb.d.ts +742 -0
- package/dist/gen/raft/wdm/v1/spatial_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/spatial_pb.js +196 -0
- package/dist/gen/raft/wdm/v1/spatial_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/symbology_pb.d.ts +320 -0
- package/dist/gen/raft/wdm/v1/symbology_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/symbology_pb.js +61 -0
- package/dist/gen/raft/wdm/v1/symbology_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/targeting_pb.d.ts +285 -0
- package/dist/gen/raft/wdm/v1/targeting_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/targeting_pb.js +162 -0
- package/dist/gen/raft/wdm/v1/targeting_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/track_pb.d.ts +94 -0
- package/dist/gen/raft/wdm/v1/track_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/track_pb.js +44 -0
- package/dist/gen/raft/wdm/v1/track_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/transponder_pb.d.ts +113 -0
- package/dist/gen/raft/wdm/v1/transponder_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/transponder_pb.js +47 -0
- package/dist/gen/raft/wdm/v1/transponder_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/warfighting_function_pb.d.ts +108 -0
- package/dist/gen/raft/wdm/v1/warfighting_function_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/warfighting_function_pb.js +110 -0
- package/dist/gen/raft/wdm/v1/warfighting_function_pb.js.map +1 -0
- package/dist/gen/raft/wdm/v1/weather_pb.d.ts +279 -0
- package/dist/gen/raft/wdm/v1/weather_pb.d.ts.map +1 -0
- package/dist/gen/raft/wdm/v1/weather_pb.js +179 -0
- package/dist/gen/raft/wdm/v1/weather_pb.js.map +1 -0
- package/dist/package.json +77 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +5 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/internal/auth.d.ts +67 -0
- package/dist/src/internal/auth.d.ts.map +1 -0
- package/dist/src/internal/auth.js +109 -0
- package/dist/src/internal/auth.js.map +1 -0
- package/dist/src/internal/config.d.ts +53 -0
- package/dist/src/internal/config.d.ts.map +1 -0
- package/dist/src/internal/config.js +109 -0
- package/dist/src/internal/config.js.map +1 -0
- package/dist/src/internal/index.d.ts +8 -0
- package/dist/src/internal/index.d.ts.map +1 -0
- package/dist/src/internal/index.js +7 -0
- package/dist/src/internal/index.js.map +1 -0
- package/dist/src/internal/interceptors.d.ts +18 -0
- package/dist/src/internal/interceptors.d.ts.map +1 -0
- package/dist/src/internal/interceptors.js +56 -0
- package/dist/src/internal/interceptors.js.map +1 -0
- package/dist/src/internal/logger.d.ts +16 -0
- package/dist/src/internal/logger.d.ts.map +1 -0
- package/dist/src/internal/logger.js +2 -0
- package/dist/src/internal/logger.js.map +1 -0
- package/dist/src/internal/node/logging.d.ts +9 -0
- package/dist/src/internal/node/logging.d.ts.map +1 -0
- package/dist/src/internal/node/logging.js +20 -0
- package/dist/src/internal/node/logging.js.map +1 -0
- package/dist/src/internal/node/options.d.ts +13 -0
- package/dist/src/internal/node/options.d.ts.map +1 -0
- package/dist/src/internal/node/options.js +13 -0
- package/dist/src/internal/node/options.js.map +1 -0
- package/dist/src/internal/node/token-fetcher.d.ts +9 -0
- package/dist/src/internal/node/token-fetcher.d.ts.map +1 -0
- package/dist/src/internal/node/token-fetcher.js +56 -0
- package/dist/src/internal/node/token-fetcher.js.map +1 -0
- package/dist/src/internal/oauth.d.ts +24 -0
- package/dist/src/internal/oauth.d.ts.map +1 -0
- package/dist/src/internal/oauth.js +43 -0
- package/dist/src/internal/oauth.js.map +1 -0
- package/dist/src/internal/options.d.ts +33 -0
- package/dist/src/internal/options.d.ts.map +1 -0
- package/dist/src/internal/options.js +32 -0
- package/dist/src/internal/options.js.map +1 -0
- package/dist/src/internal/transport.d.ts +29 -0
- package/dist/src/internal/transport.d.ts.map +1 -0
- package/dist/src/internal/transport.js +52 -0
- package/dist/src/internal/transport.js.map +1 -0
- package/dist/src/internal/version.d.ts +7 -0
- package/dist/src/internal/version.d.ts.map +1 -0
- package/dist/src/internal/version.js +8 -0
- package/dist/src/internal/version.js.map +1 -0
- package/dist/src/internal/web/logging.d.ts +8 -0
- package/dist/src/internal/web/logging.d.ts.map +1 -0
- package/dist/src/internal/web/logging.js +15 -0
- package/dist/src/internal/web/logging.js.map +1 -0
- package/dist/src/internal/web/token-fetcher.d.ts +8 -0
- package/dist/src/internal/web/token-fetcher.d.ts.map +1 -0
- package/dist/src/internal/web/token-fetcher.js +10 -0
- package/dist/src/internal/web/token-fetcher.js.map +1 -0
- package/dist/src/node/client.d.ts +37 -0
- package/dist/src/node/client.d.ts.map +1 -0
- package/dist/src/node/client.js +53 -0
- package/dist/src/node/client.js.map +1 -0
- package/dist/src/node/config.d.ts +27 -0
- package/dist/src/node/config.d.ts.map +1 -0
- package/dist/src/node/config.js +64 -0
- package/dist/src/node/config.js.map +1 -0
- package/dist/src/node/index.d.ts +6 -0
- package/dist/src/node/index.d.ts.map +1 -0
- package/dist/src/node/index.js +9 -0
- package/dist/src/node/index.js.map +1 -0
- package/dist/src/version.d.ts +2 -0
- package/dist/src/version.d.ts.map +1 -0
- package/dist/src/version.js +2 -0
- package/dist/src/version.js.map +1 -0
- package/dist/src/web/client.d.ts +44 -0
- package/dist/src/web/client.d.ts.map +1 -0
- package/dist/src/web/client.js +48 -0
- package/dist/src/web/client.js.map +1 -0
- package/dist/src/web/config.d.ts +18 -0
- package/dist/src/web/config.d.ts.map +1 -0
- package/dist/src/web/config.js +18 -0
- package/dist/src/web/config.js.map +1 -0
- package/dist/src/web/index.d.ts +5 -0
- package/dist/src/web/index.d.ts.map +1 -0
- package/dist/src/web/index.js +8 -0
- package/dist/src/web/index.js.map +1 -0
- package/gen/raft/wdm/v1/action_pb.ts +1800 -0
- package/gen/raft/wdm/v1/assessment_pb.ts +227 -0
- package/gen/raft/wdm/v1/aviation_pb.ts +233 -0
- package/gen/raft/wdm/v1/cbrn_pb.ts +321 -0
- package/gen/raft/wdm/v1/common_pb.ts +1173 -0
- package/gen/raft/wdm/v1/comms_pb.ts +126 -0
- package/gen/raft/wdm/v1/correlation_pb.ts +256 -0
- package/gen/raft/wdm/v1/ew_pb.ts +234 -0
- package/gen/raft/wdm/v1/ground_pb.ts +172 -0
- package/gen/raft/wdm/v1/identity_pb.ts +162 -0
- package/gen/raft/wdm/v1/maritime_pb.ts +220 -0
- package/gen/raft/wdm/v1/object_pb.ts +655 -0
- package/gen/raft/wdm/v1/ontology_pb.ts +299 -0
- package/gen/raft/wdm/v1/orbital_pb.ts +211 -0
- package/gen/raft/wdm/v1/organization_pb.ts +684 -0
- package/gen/raft/wdm/v1/platform_pb.ts +689 -0
- package/gen/raft/wdm/v1/relationship_pb.ts +332 -0
- package/gen/raft/wdm/v1/security_pb.ts +137 -0
- package/gen/raft/wdm/v1/sensor_pb.ts +329 -0
- package/gen/raft/wdm/v1/service/action_service_pb.ts +814 -0
- package/gen/raft/wdm/v1/service/object_service_pb.ts +819 -0
- package/gen/raft/wdm/v1/service/query_pb.ts +1702 -0
- package/gen/raft/wdm/v1/signal_pb.ts +370 -0
- package/gen/raft/wdm/v1/spatial_pb.ts +845 -0
- package/gen/raft/wdm/v1/symbology_pb.ts +373 -0
- package/gen/raft/wdm/v1/targeting_pb.ts +338 -0
- package/gen/raft/wdm/v1/track_pb.ts +115 -0
- package/gen/raft/wdm/v1/transponder_pb.ts +139 -0
- package/gen/raft/wdm/v1/warfighting_function_pb.ts +127 -0
- package/gen/raft/wdm/v1/weather_pb.ts +338 -0
- package/package.json +77 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
https://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction, and
|
|
10
|
+
distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by the copyright
|
|
13
|
+
owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all other entities
|
|
16
|
+
that control, are controlled by, or are under common control with that entity.
|
|
17
|
+
For the purposes of this definition, "control" means (i) the power, direct or
|
|
18
|
+
indirect, to cause the direction or management of such entity, whether by
|
|
19
|
+
contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
20
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
21
|
+
|
|
22
|
+
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
|
23
|
+
permissions granted by this License.
|
|
24
|
+
|
|
25
|
+
"Source" form shall mean the preferred form for making modifications, including
|
|
26
|
+
but not limited to software source code, documentation source, and configuration
|
|
27
|
+
files.
|
|
28
|
+
|
|
29
|
+
"Object" form shall mean any form resulting from mechanical transformation or
|
|
30
|
+
translation of a Source form, including but not limited to compiled object code,
|
|
31
|
+
generated documentation, and conversions to other media types.
|
|
32
|
+
|
|
33
|
+
"Work" shall mean the work of authorship, whether in Source or Object form,
|
|
34
|
+
made available under the License, as indicated by a copyright notice that is
|
|
35
|
+
included in or attached to the work (an example is provided in the Appendix
|
|
36
|
+
below).
|
|
37
|
+
|
|
38
|
+
"Derivative Works" shall mean any work, whether in Source or Object form, that
|
|
39
|
+
is based on (or derived from) the Work and for which the editorial revisions,
|
|
40
|
+
annotations, elaborations, or other modifications represent, as a whole, an
|
|
41
|
+
original work of authorship. For the purposes of this License, Derivative Works
|
|
42
|
+
shall not include works that remain separable from, or merely link (or bind by
|
|
43
|
+
name) to the interfaces of, the Work and Derivative Works thereof.
|
|
44
|
+
|
|
45
|
+
"Contribution" shall mean any work of authorship, including the original
|
|
46
|
+
version of the Work and any modifications or additions to that Work or
|
|
47
|
+
Derivative Works thereof, that is intentionally submitted to Licensor for
|
|
48
|
+
inclusion in the Work by the copyright owner or by an individual or Legal Entity
|
|
49
|
+
authorized to submit on behalf of the copyright owner. For the purposes of this
|
|
50
|
+
definition, "submitted" means any form of electronic, verbal, or written
|
|
51
|
+
communication sent to the Licensor or its representatives, including but not
|
|
52
|
+
limited to communication on electronic mailing lists, source code control
|
|
53
|
+
systems, and issue tracking systems that are managed by, or on behalf of, the
|
|
54
|
+
Licensor for the purpose of discussing and improving the Work, but excluding
|
|
55
|
+
communication that is conspicuously marked or otherwise designated in writing by
|
|
56
|
+
the copyright owner as "Not a Contribution."
|
|
57
|
+
|
|
58
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
|
|
59
|
+
of whom a Contribution has been received by Licensor and subsequently
|
|
60
|
+
incorporated within the Work.
|
|
61
|
+
|
|
62
|
+
2. Grant of Copyright License. Subject to the terms and conditions of this
|
|
63
|
+
License, each Contributor hereby grants to You a perpetual, worldwide,
|
|
64
|
+
non-exclusive, no-charge, royalty-free, irrevocable copyright license to
|
|
65
|
+
reproduce, prepare Derivative Works of, publicly display, publicly perform,
|
|
66
|
+
sublicense, and distribute the Work and such Derivative Works in Source or
|
|
67
|
+
Object form.
|
|
68
|
+
|
|
69
|
+
3. Grant of Patent License. Subject to the terms and conditions of this License,
|
|
70
|
+
each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
|
|
71
|
+
no-charge, royalty-free, irrevocable (except as stated in this section) patent
|
|
72
|
+
license to make, have made, use, offer to sell, sell, import, and otherwise
|
|
73
|
+
transfer the Work, where such license applies only to those patent claims
|
|
74
|
+
licensable by such Contributor that are necessarily infringed by their
|
|
75
|
+
Contribution(s) alone or by combination of their Contribution(s) with the Work
|
|
76
|
+
to which such Contribution(s) was submitted. If You institute patent litigation
|
|
77
|
+
against any entity (including a cross-claim or counterclaim in a lawsuit)
|
|
78
|
+
alleging that the Work or a Contribution incorporated within the Work
|
|
79
|
+
constitutes direct or contributory patent infringement, then any patent licenses
|
|
80
|
+
granted to You under this License for that Work shall terminate as of the date
|
|
81
|
+
such litigation is filed.
|
|
82
|
+
|
|
83
|
+
4. Redistribution. You may reproduce and distribute copies of the Work or
|
|
84
|
+
Derivative Works thereof in any medium, with or without modifications, and in
|
|
85
|
+
Source or Object form, provided that You meet the following conditions:
|
|
86
|
+
|
|
87
|
+
(a) You must give any other recipients of the Work or Derivative Works a copy
|
|
88
|
+
of this License; and
|
|
89
|
+
|
|
90
|
+
(b) You must cause any modified files to carry prominent notices stating that
|
|
91
|
+
You changed the files; and
|
|
92
|
+
|
|
93
|
+
(c) You must retain, in the Source form of any Derivative Works that You
|
|
94
|
+
distribute, all copyright, patent, trademark, and attribution notices from the
|
|
95
|
+
Source form of the Work, excluding those notices that do not pertain to any part
|
|
96
|
+
of the Derivative Works; and
|
|
97
|
+
|
|
98
|
+
(d) If the Work includes a "NOTICE" text file as part of its distribution, then
|
|
99
|
+
any Derivative Works that You distribute must include a readable copy of the
|
|
100
|
+
attribution notices contained within such NOTICE file, excluding those notices
|
|
101
|
+
that do not pertain to any part of the Derivative Works, in at least one of the
|
|
102
|
+
following places: within a NOTICE text file distributed as part of the
|
|
103
|
+
Derivative Works; within the Source form or documentation, if provided along
|
|
104
|
+
with the Derivative Works; or, within a display generated by the Derivative
|
|
105
|
+
Works, if and wherever such third-party notices normally appear. The contents of
|
|
106
|
+
the NOTICE file are for informational purposes only and do not modify the
|
|
107
|
+
License. You may add Your own attribution notices within Derivative Works that
|
|
108
|
+
You distribute, alongside or as an addendum to the NOTICE text from the Work,
|
|
109
|
+
provided that such additional attribution notices cannot be construed as
|
|
110
|
+
modifying the License.
|
|
111
|
+
|
|
112
|
+
You may add Your own copyright statement to Your modifications and may provide
|
|
113
|
+
additional or different license terms and conditions for use, reproduction, or
|
|
114
|
+
distribution of Your modifications, or for any such Derivative Works as a whole,
|
|
115
|
+
provided Your use, reproduction, and distribution of the Work otherwise complies
|
|
116
|
+
with the conditions stated in this License.
|
|
117
|
+
|
|
118
|
+
5. Submission of Contributions. Unless You explicitly state otherwise, any
|
|
119
|
+
Contribution intentionally submitted for inclusion in the Work by You to the
|
|
120
|
+
Licensor shall be under the terms and conditions of this License, without any
|
|
121
|
+
additional terms or conditions. Notwithstanding the above, nothing herein shall
|
|
122
|
+
supersede or modify the terms of any separate license agreement you may have
|
|
123
|
+
executed with Licensor regarding such Contributions.
|
|
124
|
+
|
|
125
|
+
6. Trademarks. This License does not grant permission to use the trade names,
|
|
126
|
+
trademarks, service marks, or product names of the Licensor, except as required
|
|
127
|
+
for reasonable and customary use in describing the origin of the Work and
|
|
128
|
+
reproducing the content of the NOTICE file.
|
|
129
|
+
|
|
130
|
+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
|
|
131
|
+
writing, Licensor provides the Work (and each Contributor provides its
|
|
132
|
+
Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
133
|
+
KIND, either express or implied, including, without limitation, any warranties or
|
|
134
|
+
conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
135
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
136
|
+
appropriateness of using or redistributing the Work and assume any risks
|
|
137
|
+
associated with Your exercise of permissions under this License.
|
|
138
|
+
|
|
139
|
+
8. Limitation of Liability. In no event and under no legal theory, whether in
|
|
140
|
+
tort (including negligence), contract, or otherwise, unless required by
|
|
141
|
+
applicable law (such as deliberate and grossly negligent acts) or agreed to in
|
|
142
|
+
writing, shall any Contributor be liable to You for damages, including any
|
|
143
|
+
direct, indirect, special, incidental, or consequential damages of any character
|
|
144
|
+
arising as a result of this License or out of the use or inability to use the
|
|
145
|
+
Work (including but not limited to damages for loss of goodwill, work stoppage,
|
|
146
|
+
computer failure or malfunction, or any and all other commercial damages or
|
|
147
|
+
losses), even if such Contributor has been advised of the possibility of such
|
|
148
|
+
damages.
|
|
149
|
+
|
|
150
|
+
9. Accepting Warranty or Additional Liability. While redistributing the Work or
|
|
151
|
+
Derivative Works thereof, You may choose to offer, and charge a fee for,
|
|
152
|
+
acceptance of support, warranty, indemnity, or other liability obligations
|
|
153
|
+
and/or rights consistent with this License. However, in accepting such
|
|
154
|
+
obligations, You may act only on Your own behalf and on Your sole
|
|
155
|
+
responsibility, not on behalf of any other Contributor, and only if You agree to
|
|
156
|
+
indemnify, defend, and hold each Contributor harmless for any liability incurred
|
|
157
|
+
by, or claims asserted against, such Contributor by reason of your accepting any
|
|
158
|
+
such warranty or additional liability.
|
|
159
|
+
|
|
160
|
+
END OF TERMS AND CONDITIONS
|
|
161
|
+
|
|
162
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
163
|
+
|
|
164
|
+
To apply the Apache License to your work, attach the following boilerplate
|
|
165
|
+
notice, with the fields enclosed by brackets "[]" replaced with your own
|
|
166
|
+
identifying information. (Don't include the brackets!) The text should be
|
|
167
|
+
enclosed in the appropriate comment syntax for the file format. We also
|
|
168
|
+
recommend that a file or class name and description of purpose be included on
|
|
169
|
+
the same "printed page" as the copyright notice for easier identification within
|
|
170
|
+
third-party archives.
|
|
171
|
+
|
|
172
|
+
Copyright [yyyy] [name of copyright owner]
|
|
173
|
+
|
|
174
|
+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
|
175
|
+
this file except in compliance with the License. You may obtain a copy of the
|
|
176
|
+
License at
|
|
177
|
+
|
|
178
|
+
https://www.apache.org/licenses/LICENSE-2.0
|
|
179
|
+
|
|
180
|
+
Unless required by applicable law or agreed to in writing, software distributed
|
|
181
|
+
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
|
182
|
+
CONDITIONS OF ANY KIND, either express or implied. See the License for the
|
|
183
|
+
specific language governing permissions and limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# RDP SDK for TypeScript
|
|
2
|
+
|
|
3
|
+
The RDP SDK for TypeScript is part of the unified SDK family for
|
|
4
|
+
client applications interacting with Raft Data Platform (RDP). It
|
|
5
|
+
provides typed Node and Web clients plus endpoint, authentication, TLS,
|
|
6
|
+
and logging helpers for the RDP API surface.
|
|
7
|
+
|
|
8
|
+
For platform concepts, API guides, and integration details, see
|
|
9
|
+
https://developer.teamraft.com.
|
|
10
|
+
|
|
11
|
+
## Installation
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install @raft-tech/rdp-sdk-typescript
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Quick Start
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
export RDP_SERVER_URL=https://rdp.example.com
|
|
21
|
+
export RDP_API_KEY=your-api-key
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
```ts
|
|
25
|
+
import { create } from "@bufbuild/protobuf";
|
|
26
|
+
import {
|
|
27
|
+
createClient,
|
|
28
|
+
fromNodeConfig,
|
|
29
|
+
loadConfig,
|
|
30
|
+
} from "@raft-tech/rdp-sdk-typescript";
|
|
31
|
+
import { SearchObjectsRequestSchema } from "@raft-tech/rdp-sdk-typescript/gen/raft/wdm/v1/service/object_service_pb.js";
|
|
32
|
+
|
|
33
|
+
// Load RDP_SERVER_URL and authentication from the environment.
|
|
34
|
+
const cfg = loadConfig();
|
|
35
|
+
|
|
36
|
+
// Create a client from the loaded config.
|
|
37
|
+
const client = createClient(...fromNodeConfig(cfg));
|
|
38
|
+
|
|
39
|
+
// Request the first 10 WDM objects.
|
|
40
|
+
const response = await client.objectService.searchObjects(
|
|
41
|
+
create(SearchObjectsRequestSchema, { pageSize: 10 }),
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
if (response.objects.length === 0) {
|
|
45
|
+
console.log("No WDM objects found.");
|
|
46
|
+
} else {
|
|
47
|
+
for (const object of response.objects) {
|
|
48
|
+
console.log(`${object.id}\t${object.name}`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
For more examples, see [examples](examples/).
|
|
54
|
+
|
|
55
|
+
## Configuration
|
|
56
|
+
|
|
57
|
+
Node clients can call `loadConfig()` to read connection settings from
|
|
58
|
+
environment variables and optional `.env.local` files. Web clients pass
|
|
59
|
+
the same keys as a plain object to the web `loadConfig` helper. For
|
|
60
|
+
browser applications, import from `@raft-tech/rdp-sdk-typescript/web`.
|
|
61
|
+
|
|
62
|
+
| Variable | Required | Description |
|
|
63
|
+
| --- | --- | --- |
|
|
64
|
+
| `RDP_SERVER_URL` | No | Base RDP endpoint. Defaults to `https://rdp.local`; use scheme and host only. |
|
|
65
|
+
| `RDP_SERVER_PORT` | No | Optional port override for the endpoint. |
|
|
66
|
+
| `TLS_SKIP_VERIFY` | No | Node only. Set to `true` only for development or test endpoints with self-signed certificates. |
|
|
67
|
+
|
|
68
|
+
### Authentication
|
|
69
|
+
|
|
70
|
+
API key authentication is the preferred method for client applications.
|
|
71
|
+
Use OAuth2 client credentials only when your deployment requires token
|
|
72
|
+
exchange.
|
|
73
|
+
|
|
74
|
+
| Method | Variables | Request behavior |
|
|
75
|
+
| --- | --- | --- |
|
|
76
|
+
| API key | `RDP_API_KEY` | Sends the value on each request as an API key header. |
|
|
77
|
+
| OAuth2 client credentials | `RDP_CLIENT_ID`, `RDP_CLIENT_SECRET` | Fetches a token from `{RDP_SERVER_URL}/api/v1/auth/token` and sends it as a bearer token. |
|
|
78
|
+
|
|
79
|
+
Providing both auth methods is an error. If neither method is configured,
|
|
80
|
+
requests are sent without auth and the SDK logs a warning.
|
|
81
|
+
|
|
82
|
+
### Functional Configuration
|
|
83
|
+
|
|
84
|
+
Pass functional options to `createClient(endpoint, ...options)`. Node
|
|
85
|
+
clients can also start from `loadConfig()` and pass the result through
|
|
86
|
+
`fromNodeConfig(cfg)`.
|
|
87
|
+
|
|
88
|
+
For direct Node construction:
|
|
89
|
+
|
|
90
|
+
```ts
|
|
91
|
+
const client = createClient(
|
|
92
|
+
"https://rdp.example.com",
|
|
93
|
+
WithAPIKey("your-api-key"),
|
|
94
|
+
WithTimeout(10_000),
|
|
95
|
+
WithLogger(console),
|
|
96
|
+
);
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
For Node environment-first configuration with call-site overrides:
|
|
100
|
+
|
|
101
|
+
```ts
|
|
102
|
+
const cfg = loadConfig({ envPath: ".env.local", logger: console });
|
|
103
|
+
const [endpoint, ...options] = fromNodeConfig(cfg);
|
|
104
|
+
|
|
105
|
+
const client = createClient(
|
|
106
|
+
endpoint,
|
|
107
|
+
...options,
|
|
108
|
+
WithTimeout(10_000),
|
|
109
|
+
);
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
For browser applications, import from
|
|
113
|
+
`@raft-tech/rdp-sdk-typescript/web` and pass configuration as a plain
|
|
114
|
+
object:
|
|
115
|
+
|
|
116
|
+
```ts
|
|
117
|
+
const rawConfig = {
|
|
118
|
+
RDP_SERVER_URL: "https://rdp.example.com",
|
|
119
|
+
RDP_API_KEY: "your-api-key",
|
|
120
|
+
};
|
|
121
|
+
const cfg = loadConfig(rawConfig, console);
|
|
122
|
+
|
|
123
|
+
const client = createClient(
|
|
124
|
+
cfg.serverUrl,
|
|
125
|
+
WithAPIKey(rawConfig.RDP_API_KEY),
|
|
126
|
+
WithTimeout(10_000),
|
|
127
|
+
);
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
Use `WithClientCredentials(clientId, clientSecret)` instead of
|
|
131
|
+
`WithAPIKey(key)` only when your deployment requires OAuth2 client
|
|
132
|
+
credentials. Use `WithTLSSkipVerify()` only in Node for development or
|
|
133
|
+
test endpoints with self-signed certificates.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objects-publish.d.ts","sourceRoot":"","sources":["../../examples/objects-publish.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Run:
|
|
2
|
+
// export RDP_SERVER_URL=https://rdp.example.com
|
|
3
|
+
// export RDP_API_KEY=your-api-key
|
|
4
|
+
// npm run build
|
|
5
|
+
// node dist/examples/objects-publish.js
|
|
6
|
+
import { create } from "@bufbuild/protobuf";
|
|
7
|
+
import { timestampNow } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import { ObjectStatus } from "../gen/raft/wdm/v1/object_pb.js";
|
|
9
|
+
import { PublishObjectRequestSchema } from "../gen/raft/wdm/v1/service/object_service_pb.js";
|
|
10
|
+
import { createClient, fromNodeConfig, loadConfig } from "../src/node/index.js";
|
|
11
|
+
const exampleObjectId = "sdk-example-object";
|
|
12
|
+
const exampleProvenanceId = "sdk-example-provenance";
|
|
13
|
+
const objectName = "RDP SDK example object";
|
|
14
|
+
const cfg = loadConfig();
|
|
15
|
+
const client = createClient(...fromNodeConfig(cfg));
|
|
16
|
+
await client.objectService.publishObject(create(PublishObjectRequestSchema, {
|
|
17
|
+
object: {
|
|
18
|
+
id: exampleObjectId,
|
|
19
|
+
name: objectName,
|
|
20
|
+
description: "Created by the RDP SDK for TypeScript objects-publish example.",
|
|
21
|
+
status: ObjectStatus.ACTIVE,
|
|
22
|
+
labels: { example: "objects-publish" },
|
|
23
|
+
provenance: {
|
|
24
|
+
id: exampleProvenanceId,
|
|
25
|
+
name: "RDP SDK for TypeScript example",
|
|
26
|
+
producer: "rdp-sdk-typescript/examples/objects-publish",
|
|
27
|
+
updatedAt: timestampNow(),
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
}));
|
|
31
|
+
console.log(`Published object id=${exampleObjectId} name=${JSON.stringify(objectName)}`);
|
|
32
|
+
//# sourceMappingURL=objects-publish.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objects-publish.js","sourceRoot":"","sources":["../../examples/objects-publish.ts"],"names":[],"mappings":"AAAA,OAAO;AACP,kDAAkD;AAClD,oCAAoC;AACpC,kBAAkB;AAClB,0CAA0C;AAE1C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEhF,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAC7C,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AACrD,MAAM,UAAU,GAAG,wBAAwB,CAAC;AAE5C,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;AACzB,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AAEpD,MAAM,MAAM,CAAC,aAAa,CAAC,aAAa,CACtC,MAAM,CAAC,0BAA0B,EAAE;IACjC,MAAM,EAAE;QACN,EAAE,EAAE,eAAe;QACnB,IAAI,EAAE,UAAU;QAChB,WAAW,EACT,gEAAgE;QAClE,MAAM,EAAE,YAAY,CAAC,MAAM;QAC3B,MAAM,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE;QACtC,UAAU,EAAE;YACV,EAAE,EAAE,mBAAmB;YACvB,IAAI,EAAE,gCAAgC;YACtC,QAAQ,EAAE,6CAA6C;YACvD,SAAS,EAAE,YAAY,EAAE;SAC1B;KACF;CACF,CAAC,CACH,CAAC;AAEF,OAAO,CAAC,GAAG,CACT,uBAAuB,eAAe,SAAS,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAC5E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objects-search.d.ts","sourceRoot":"","sources":["../../examples/objects-search.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Run:
|
|
2
|
+
// export RDP_SERVER_URL=https://rdp.example.com
|
|
3
|
+
// export RDP_API_KEY=your-api-key
|
|
4
|
+
// npm run build
|
|
5
|
+
// node dist/examples/objects-search.js
|
|
6
|
+
import { create } from "@bufbuild/protobuf";
|
|
7
|
+
import { SearchObjectsRequestSchema } from "../gen/raft/wdm/v1/service/object_service_pb.js";
|
|
8
|
+
import { createClient, fromNodeConfig, loadConfig } from "../src/node/index.js";
|
|
9
|
+
const cfg = loadConfig();
|
|
10
|
+
const client = createClient(...fromNodeConfig(cfg));
|
|
11
|
+
const response = await client.objectService.searchObjects(create(SearchObjectsRequestSchema, { pageSize: 10 }));
|
|
12
|
+
if (response.objects.length === 0) {
|
|
13
|
+
console.log("No WDM objects found.");
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
for (const [index, object] of response.objects.entries()) {
|
|
17
|
+
console.log(`${String(index + 1).padStart(2)}. id=${object.id} name=${JSON.stringify(object.name)} status=${object.status}`);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=objects-search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objects-search.js","sourceRoot":"","sources":["../../examples/objects-search.ts"],"names":[],"mappings":"AAAA,OAAO;AACP,kDAAkD;AAClD,oCAAoC;AACpC,kBAAkB;AAClB,yCAAyC;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,iDAAiD,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAEhF,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;AACzB,MAAM,MAAM,GAAG,YAAY,CAAC,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AAEpD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,aAAa,CACvD,MAAM,CAAC,0BAA0B,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACrD,CAAC;AAEF,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;IAClC,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;AACvC,CAAC;KAAM,CAAC;IACN,KAAK,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;QACzD,OAAO,CAAC,GAAG,CACT,GAAG,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,EAAE,SAAS,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,MAAM,CAAC,MAAM,EAAE,CAChH,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objects-publish.d.ts","sourceRoot":"","sources":["../../../examples/web/objects-publish.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Configuration:
|
|
2
|
+
// export RDP_SERVER_URL=https://rdp.example.com
|
|
3
|
+
// export RDP_API_KEY=your-api-key
|
|
4
|
+
//
|
|
5
|
+
// Browser applications should pass those values into endpoint and apiKey.
|
|
6
|
+
import { create } from "@bufbuild/protobuf";
|
|
7
|
+
import { timestampNow } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
import { ObjectStatus } from "../../gen/raft/wdm/v1/object_pb.js";
|
|
9
|
+
import { PublishObjectRequestSchema } from "../../gen/raft/wdm/v1/service/object_service_pb.js";
|
|
10
|
+
import { WithAPIKey, createClient } from "../../src/web/index.js";
|
|
11
|
+
const endpoint = "https://rdp.example.com";
|
|
12
|
+
const apiKey = "your-api-key";
|
|
13
|
+
const exampleObjectId = "sdk-example-object";
|
|
14
|
+
const exampleProvenanceId = "sdk-example-provenance";
|
|
15
|
+
const objectName = "RDP SDK example object";
|
|
16
|
+
const client = createClient(endpoint, WithAPIKey(apiKey));
|
|
17
|
+
await client.objectService.publishObject(create(PublishObjectRequestSchema, {
|
|
18
|
+
object: {
|
|
19
|
+
id: exampleObjectId,
|
|
20
|
+
name: objectName,
|
|
21
|
+
description: "Created by the RDP SDK for TypeScript Web objects-publish example.",
|
|
22
|
+
status: ObjectStatus.ACTIVE,
|
|
23
|
+
labels: { example: "objects-publish" },
|
|
24
|
+
provenance: {
|
|
25
|
+
id: exampleProvenanceId,
|
|
26
|
+
name: "RDP SDK for TypeScript Web example",
|
|
27
|
+
producer: "rdp-sdk-typescript/examples/web/objects-publish",
|
|
28
|
+
updatedAt: timestampNow(),
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
}));
|
|
32
|
+
console.log(`Published object id=${exampleObjectId} name=${JSON.stringify(objectName)}`);
|
|
33
|
+
//# sourceMappingURL=objects-publish.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objects-publish.js","sourceRoot":"","sources":["../../../examples/web/objects-publish.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,kDAAkD;AAClD,oCAAoC;AACpC,EAAE;AACF,0EAA0E;AAE1E,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,QAAQ,GAAG,yBAAyB,CAAC;AAC3C,MAAM,MAAM,GAAG,cAAc,CAAC;AAC9B,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAC7C,MAAM,mBAAmB,GAAG,wBAAwB,CAAC;AACrD,MAAM,UAAU,GAAG,wBAAwB,CAAC;AAE5C,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AAE1D,MAAM,MAAM,CAAC,aAAa,CAAC,aAAa,CACtC,MAAM,CAAC,0BAA0B,EAAE;IACjC,MAAM,EAAE;QACN,EAAE,EAAE,eAAe;QACnB,IAAI,EAAE,UAAU;QAChB,WAAW,EACT,oEAAoE;QACtE,MAAM,EAAE,YAAY,CAAC,MAAM;QAC3B,MAAM,EAAE,EAAE,OAAO,EAAE,iBAAiB,EAAE;QACtC,UAAU,EAAE;YACV,EAAE,EAAE,mBAAmB;YACvB,IAAI,EAAE,oCAAoC;YAC1C,QAAQ,EAAE,iDAAiD;YAC3D,SAAS,EAAE,YAAY,EAAE;SAC1B;KACF;CACF,CAAC,CACH,CAAC;AAEF,OAAO,CAAC,GAAG,CACT,uBAAuB,eAAe,SAAS,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAC5E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objects-search.d.ts","sourceRoot":"","sources":["../../../examples/web/objects-search.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Configuration:
|
|
2
|
+
// export RDP_SERVER_URL=https://rdp.example.com
|
|
3
|
+
// export RDP_API_KEY=your-api-key
|
|
4
|
+
//
|
|
5
|
+
// Browser applications should pass those values into endpoint and apiKey.
|
|
6
|
+
import { create } from "@bufbuild/protobuf";
|
|
7
|
+
import { SearchObjectsRequestSchema } from "../../gen/raft/wdm/v1/service/object_service_pb.js";
|
|
8
|
+
import { WithAPIKey, createClient } from "../../src/web/index.js";
|
|
9
|
+
const endpoint = "https://rdp.example.com";
|
|
10
|
+
const apiKey = "your-api-key";
|
|
11
|
+
const client = createClient(endpoint, WithAPIKey(apiKey));
|
|
12
|
+
const response = await client.objectService.searchObjects(create(SearchObjectsRequestSchema, { pageSize: 10 }));
|
|
13
|
+
if (response.objects.length === 0) {
|
|
14
|
+
console.log("No WDM objects found.");
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
for (const [index, object] of response.objects.entries()) {
|
|
18
|
+
console.log(`${String(index + 1).padStart(2)}. id=${object.id} name=${JSON.stringify(object.name)} status=${object.status}`);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=objects-search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objects-search.js","sourceRoot":"","sources":["../../../examples/web/objects-search.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,kDAAkD;AAClD,oCAAoC;AACpC,EAAE;AACF,0EAA0E;AAE1E,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,QAAQ,GAAG,yBAAyB,CAAC;AAC3C,MAAM,MAAM,GAAG,cAAc,CAAC;AAE9B,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;AAE1D,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,aAAa,CACvD,MAAM,CAAC,0BAA0B,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CACrD,CAAC;AAEF,IAAI,QAAQ,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;IAClC,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;AACvC,CAAC;KAAM,CAAC;IACN,KAAK,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,IAAI,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;QACzD,OAAO,CAAC,GAAG,CACT,GAAG,MAAM,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,MAAM,CAAC,EAAE,SAAS,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,MAAM,CAAC,MAAM,EAAE,CAChH,CAAC;IACJ,CAAC;AACH,CAAC"}
|