alter-sdk-deel 0.3.2__tar.gz

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 (46) hide show
  1. alter_sdk_deel-0.3.2/LICENSE +21 -0
  2. alter_sdk_deel-0.3.2/PKG-INFO +64 -0
  3. alter_sdk_deel-0.3.2/README.md +45 -0
  4. alter_sdk_deel-0.3.2/alter_sdk_deel/__init__.py +6 -0
  5. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_00.py +3556 -0
  6. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_01.py +3121 -0
  7. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_02.py +3136 -0
  8. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_03.py +2845 -0
  9. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_04.py +2573 -0
  10. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_05.py +2542 -0
  11. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_06.py +2440 -0
  12. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_07.py +2842 -0
  13. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_08.py +3413 -0
  14. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_09.py +3391 -0
  15. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_10.py +3803 -0
  16. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_11.py +3223 -0
  17. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_12.py +2915 -0
  18. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_13.py +2791 -0
  19. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_14.py +2732 -0
  20. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_15.py +2850 -0
  21. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_16.py +2688 -0
  22. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_17.py +3040 -0
  23. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_18.py +3467 -0
  24. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_19.py +3766 -0
  25. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_20.py +3442 -0
  26. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_21.py +3471 -0
  27. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_22.py +3868 -0
  28. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_23.py +3087 -0
  29. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_24.py +2801 -0
  30. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_25.py +2725 -0
  31. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_26.py +2864 -0
  32. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_27.py +2812 -0
  33. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_28.py +3518 -0
  34. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_29.py +3729 -0
  35. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_30.py +3297 -0
  36. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_31.py +4476 -0
  37. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_32.py +3516 -0
  38. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_33.py +3281 -0
  39. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_34.py +3548 -0
  40. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_35.py +4352 -0
  41. alter_sdk_deel-0.3.2/alter_sdk_deel/_deel_models_36.py +1382 -0
  42. alter_sdk_deel-0.3.2/alter_sdk_deel/client.py +52938 -0
  43. alter_sdk_deel-0.3.2/alter_sdk_deel/contracts.py +8 -0
  44. alter_sdk_deel-0.3.2/alter_sdk_deel/py.typed +0 -0
  45. alter_sdk_deel-0.3.2/alter_sdk_deel/runtime.py +139 -0
  46. alter_sdk_deel-0.3.2/pyproject.toml +21 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Alter AI, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,64 @@
1
+ Metadata-Version: 2.4
2
+ Name: alter-sdk-deel
3
+ Version: 0.3.2
4
+ Summary: Typed deel operations through Alter
5
+ License-Expression: MIT
6
+ License-File: LICENSE
7
+ Author: Alter Team
8
+ Author-email: founders@alterauth.com
9
+ Requires-Python: >=3.11,<4.0
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Classifier: Programming Language :: Python :: 3.14
15
+ Requires-Dist: alter-sdk (>=0.30.1,<0.31.0)
16
+ Requires-Dist: jsonschema (>=4.26,<5)
17
+ Description-Content-Type: text/markdown
18
+
19
+ # alter-sdk-deel
20
+
21
+ Install `pip install alter-sdk-deel`. Core `alter-sdk` is installed as a dependency.
22
+
23
+ Import `DeelIntegration` from `alter_sdk_deel` and construct it with an Alter `App`
24
+ and `{"grant_id": grant_id}`. All 520 operations use
25
+ immutable contract `2026-10-27`. Await `call.wait()` for immediate or
26
+ approved execution, then decode with `result.body_json()`.
27
+ OAuth and managed-secret/API-key grants use the same binding and controls when
28
+ the provider supports that credential type.
29
+
30
+ [Public API reference](https://docs.alterauth.com/reference/managed-deel-operations) includes every operation's input/output fields and both SDK examples.
31
+
32
+
33
+ ## Resume after a process restart
34
+
35
+ Persist the pending call's `approvalId` (TypeScript) or `approval_id` (Python)
36
+ in your durable job record. After restarting, construct a fresh provider client:
37
+
38
+ ```typescript
39
+ const resumed = await provider.resume(savedApprovalId);
40
+ const result = await resumed.wait();
41
+ const body = result.bodyJson();
42
+ ```
43
+
44
+ ```python
45
+ resumed = await provider.resume(saved_approval_id)
46
+ result = await resumed.wait()
47
+ body = result.body_json()
48
+ ```
49
+
50
+ The backend supplies the stored provider, operation and immutable contract version.
51
+ The provider package verifies provider/version and applies that operation's validator
52
+ and fault handling. Mismatches raise `ManagedOperationError` with
53
+ `managed_approval_contract_mismatch` or `managed_approval_operation_mismatch`.
54
+ The ID yields a union of operation outputs; TypeScript callers can narrow the call
55
+ by `resumed.operation`. No operation or version is accepted from the caller.
56
+
57
+ Generic `app.integrations.resume(id)` preserves raw response access and exact-number
58
+ decoding; use the provider package for its response validator. Both use the existing
59
+ approval poll's `proxy:execute` or `approvals:read` permissions and app/agent isolation.
60
+ Resume also works after execution while the result is retained. Denial, expiry,
61
+ execution failure and result purging retain the existing approval errors. Resume
62
+ never resubmits the request. Raw approvals or missing stored identities fail with
63
+ `managed_approval_identity_unavailable`.
64
+
@@ -0,0 +1,45 @@
1
+ # alter-sdk-deel
2
+
3
+ Install `pip install alter-sdk-deel`. Core `alter-sdk` is installed as a dependency.
4
+
5
+ Import `DeelIntegration` from `alter_sdk_deel` and construct it with an Alter `App`
6
+ and `{"grant_id": grant_id}`. All 520 operations use
7
+ immutable contract `2026-10-27`. Await `call.wait()` for immediate or
8
+ approved execution, then decode with `result.body_json()`.
9
+ OAuth and managed-secret/API-key grants use the same binding and controls when
10
+ the provider supports that credential type.
11
+
12
+ [Public API reference](https://docs.alterauth.com/reference/managed-deel-operations) includes every operation's input/output fields and both SDK examples.
13
+
14
+
15
+ ## Resume after a process restart
16
+
17
+ Persist the pending call's `approvalId` (TypeScript) or `approval_id` (Python)
18
+ in your durable job record. After restarting, construct a fresh provider client:
19
+
20
+ ```typescript
21
+ const resumed = await provider.resume(savedApprovalId);
22
+ const result = await resumed.wait();
23
+ const body = result.bodyJson();
24
+ ```
25
+
26
+ ```python
27
+ resumed = await provider.resume(saved_approval_id)
28
+ result = await resumed.wait()
29
+ body = result.body_json()
30
+ ```
31
+
32
+ The backend supplies the stored provider, operation and immutable contract version.
33
+ The provider package verifies provider/version and applies that operation's validator
34
+ and fault handling. Mismatches raise `ManagedOperationError` with
35
+ `managed_approval_contract_mismatch` or `managed_approval_operation_mismatch`.
36
+ The ID yields a union of operation outputs; TypeScript callers can narrow the call
37
+ by `resumed.operation`. No operation or version is accepted from the caller.
38
+
39
+ Generic `app.integrations.resume(id)` preserves raw response access and exact-number
40
+ decoding; use the provider package for its response validator. Both use the existing
41
+ approval poll's `proxy:execute` or `approvals:read` permissions and app/agent isolation.
42
+ Resume also works after execution while the result is retained. Denial, expiry,
43
+ execution failure and result purging retain the existing approval errors. Resume
44
+ never resubmits the request. Raw approvals or missing stored identities fail with
45
+ `managed_approval_identity_unavailable`.
@@ -0,0 +1,6 @@
1
+ from .client import DeelIntegration
2
+ from .runtime import IntegrationCall, IntegrationResult
3
+
4
+ CONTRACT_VERSION = "2026-10-27"
5
+
6
+ __all__ = ["DeelIntegration", "IntegrationCall", "IntegrationResult", "CONTRACT_VERSION"]