foil-server 0.2.3__py3-none-any.whl
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.
- foil_server/__init__.py +130 -0
- foil_server/client.py +1032 -0
- foil_server/errors.py +26 -0
- foil_server/gate_delivery.py +444 -0
- foil_server/sealed_token.py +121 -0
- foil_server/types.py +488 -0
- foil_server-0.2.3.dist-info/METADATA +196 -0
- foil_server-0.2.3.dist-info/RECORD +10 -0
- foil_server-0.2.3.dist-info/WHEEL +4 -0
- foil_server-0.2.3.dist-info/licenses/LICENSE +21 -0
foil_server/__init__.py
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
from .client import Foil
|
|
2
|
+
from .errors import (
|
|
3
|
+
FoilApiError,
|
|
4
|
+
FoilConfigurationError,
|
|
5
|
+
FoilTokenVerificationError,
|
|
6
|
+
)
|
|
7
|
+
from .gate_delivery import (
|
|
8
|
+
GATE_AGENT_TOKEN_ENV_SUFFIX,
|
|
9
|
+
GATE_DELIVERY_ALGORITHM,
|
|
10
|
+
GATE_DELIVERY_VERSION,
|
|
11
|
+
create_delivery_key_pair,
|
|
12
|
+
create_encrypted_delivery_response,
|
|
13
|
+
create_gate_approved_webhook_response,
|
|
14
|
+
decrypt_gate_delivery_envelope,
|
|
15
|
+
derive_gate_agent_token_env_key,
|
|
16
|
+
encrypt_gate_delivery_payload,
|
|
17
|
+
export_delivery_private_key_pkcs8,
|
|
18
|
+
import_delivery_private_key_pkcs8,
|
|
19
|
+
is_blocked_gate_env_var_key,
|
|
20
|
+
is_gate_managed_env_var_key,
|
|
21
|
+
key_id_for_raw_x25519_public_key,
|
|
22
|
+
parse_webhook_event,
|
|
23
|
+
validate_encrypted_gate_delivery_envelope,
|
|
24
|
+
validate_gate_approved_webhook_payload,
|
|
25
|
+
validate_gate_delivery_request,
|
|
26
|
+
verify_and_parse_webhook_event,
|
|
27
|
+
verify_gate_webhook_signature,
|
|
28
|
+
)
|
|
29
|
+
from .sealed_token import safe_verify_foil_token, verify_foil_token
|
|
30
|
+
from .types import (
|
|
31
|
+
ApiKey,
|
|
32
|
+
AgentTokenVerification,
|
|
33
|
+
Event,
|
|
34
|
+
EventSubject,
|
|
35
|
+
GateApprovedWebhookPayload,
|
|
36
|
+
GateApprovedWebhookFoil,
|
|
37
|
+
GateDashboardLogin,
|
|
38
|
+
GateLoginSession,
|
|
39
|
+
GateDeliveryEnvelope,
|
|
40
|
+
GateDeliveryPayload,
|
|
41
|
+
GateDeliveryRequest,
|
|
42
|
+
GateEncryptedDeliveryResponse,
|
|
43
|
+
GateManagedService,
|
|
44
|
+
GateRegistryEntry,
|
|
45
|
+
GateServiceBranding,
|
|
46
|
+
GateServiceConsent,
|
|
47
|
+
GateServiceEnvVar,
|
|
48
|
+
GateServiceSdkInstall,
|
|
49
|
+
GateSessionCreate,
|
|
50
|
+
GateSessionDeliveryAcknowledgement,
|
|
51
|
+
GateSessionPollData,
|
|
52
|
+
GeneratedDeliveryKeyPair,
|
|
53
|
+
IssuedApiKey,
|
|
54
|
+
ListResult,
|
|
55
|
+
Organization,
|
|
56
|
+
SessionDetail,
|
|
57
|
+
SessionSummary,
|
|
58
|
+
VerificationResult,
|
|
59
|
+
VerifiedFoilToken,
|
|
60
|
+
VisitorFingerprintDetail,
|
|
61
|
+
VisitorFingerprintSummary,
|
|
62
|
+
WebhookDelivery,
|
|
63
|
+
WebhookEndpoint,
|
|
64
|
+
WebhookEventEnvelope,
|
|
65
|
+
WebhookTest,
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
__all__ = [
|
|
69
|
+
"ApiKey",
|
|
70
|
+
"AgentTokenVerification",
|
|
71
|
+
"Event",
|
|
72
|
+
"EventSubject",
|
|
73
|
+
"GATE_AGENT_TOKEN_ENV_SUFFIX",
|
|
74
|
+
"GATE_DELIVERY_ALGORITHM",
|
|
75
|
+
"GATE_DELIVERY_VERSION",
|
|
76
|
+
"GateDashboardLogin",
|
|
77
|
+
"GateApprovedWebhookPayload",
|
|
78
|
+
"GateApprovedWebhookFoil",
|
|
79
|
+
"GateDeliveryEnvelope",
|
|
80
|
+
"GateDeliveryPayload",
|
|
81
|
+
"GateDeliveryRequest",
|
|
82
|
+
"GateEncryptedDeliveryResponse",
|
|
83
|
+
"GateLoginSession",
|
|
84
|
+
"GateManagedService",
|
|
85
|
+
"GateRegistryEntry",
|
|
86
|
+
"GateServiceBranding",
|
|
87
|
+
"GateServiceConsent",
|
|
88
|
+
"GateServiceEnvVar",
|
|
89
|
+
"GateServiceSdkInstall",
|
|
90
|
+
"GateSessionCreate",
|
|
91
|
+
"GateSessionDeliveryAcknowledgement",
|
|
92
|
+
"GateSessionPollData",
|
|
93
|
+
"GeneratedDeliveryKeyPair",
|
|
94
|
+
"IssuedApiKey",
|
|
95
|
+
"ListResult",
|
|
96
|
+
"Organization",
|
|
97
|
+
"SessionDetail",
|
|
98
|
+
"SessionSummary",
|
|
99
|
+
"Foil",
|
|
100
|
+
"FoilApiError",
|
|
101
|
+
"FoilConfigurationError",
|
|
102
|
+
"FoilTokenVerificationError",
|
|
103
|
+
"VerificationResult",
|
|
104
|
+
"VerifiedFoilToken",
|
|
105
|
+
"VisitorFingerprintDetail",
|
|
106
|
+
"VisitorFingerprintSummary",
|
|
107
|
+
"WebhookDelivery",
|
|
108
|
+
"WebhookEndpoint",
|
|
109
|
+
"WebhookEventEnvelope",
|
|
110
|
+
"WebhookTest",
|
|
111
|
+
"create_delivery_key_pair",
|
|
112
|
+
"create_encrypted_delivery_response",
|
|
113
|
+
"create_gate_approved_webhook_response",
|
|
114
|
+
"decrypt_gate_delivery_envelope",
|
|
115
|
+
"derive_gate_agent_token_env_key",
|
|
116
|
+
"encrypt_gate_delivery_payload",
|
|
117
|
+
"export_delivery_private_key_pkcs8",
|
|
118
|
+
"import_delivery_private_key_pkcs8",
|
|
119
|
+
"is_blocked_gate_env_var_key",
|
|
120
|
+
"is_gate_managed_env_var_key",
|
|
121
|
+
"key_id_for_raw_x25519_public_key",
|
|
122
|
+
"parse_webhook_event",
|
|
123
|
+
"validate_encrypted_gate_delivery_envelope",
|
|
124
|
+
"validate_gate_approved_webhook_payload",
|
|
125
|
+
"validate_gate_delivery_request",
|
|
126
|
+
"verify_and_parse_webhook_event",
|
|
127
|
+
"verify_gate_webhook_signature",
|
|
128
|
+
"verify_foil_token",
|
|
129
|
+
"safe_verify_foil_token",
|
|
130
|
+
]
|