ascii-box-sdk 0.0.3__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 (98) hide show
  1. ascii_box_sdk-0.0.3/LICENSE +21 -0
  2. ascii_box_sdk-0.0.3/PKG-INFO +52 -0
  3. ascii_box_sdk-0.0.3/README.md +32 -0
  4. ascii_box_sdk-0.0.3/ascii_box_sdk/__init__.py +124 -0
  5. ascii_box_sdk-0.0.3/ascii_box_sdk/api/__init__.py +7 -0
  6. ascii_box_sdk-0.0.3/ascii_box_sdk/api/account_api.py +2680 -0
  7. ascii_box_sdk-0.0.3/ascii_box_sdk/api/agent_api.py +1524 -0
  8. ascii_box_sdk-0.0.3/ascii_box_sdk/api/boxes_api.py +2212 -0
  9. ascii_box_sdk-0.0.3/ascii_box_sdk/api_client.py +804 -0
  10. ascii_box_sdk-0.0.3/ascii_box_sdk/api_response.py +21 -0
  11. ascii_box_sdk-0.0.3/ascii_box_sdk/configuration.py +606 -0
  12. ascii_box_sdk-0.0.3/ascii_box_sdk/exceptions.py +218 -0
  13. ascii_box_sdk-0.0.3/ascii_box_sdk/models/__init__.py +52 -0
  14. ascii_box_sdk-0.0.3/ascii_box_sdk/models/api_key.py +104 -0
  15. ascii_box_sdk-0.0.3/ascii_box_sdk/models/api_key_create_request.py +89 -0
  16. ascii_box_sdk-0.0.3/ascii_box_sdk/models/api_key_delete_response.py +100 -0
  17. ascii_box_sdk-0.0.3/ascii_box_sdk/models/api_keys_response.py +107 -0
  18. ascii_box_sdk-0.0.3/ascii_box_sdk/models/box.py +164 -0
  19. ascii_box_sdk-0.0.3/ascii_box_sdk/models/box_action_response.py +105 -0
  20. ascii_box_sdk-0.0.3/ascii_box_sdk/models/box_info_response.py +96 -0
  21. ascii_box_sdk-0.0.3/ascii_box_sdk/models/box_list_response.py +107 -0
  22. ascii_box_sdk-0.0.3/ascii_box_sdk/models/create_box_request.py +94 -0
  23. ascii_box_sdk-0.0.3/ascii_box_sdk/models/create_box_response.py +119 -0
  24. ascii_box_sdk-0.0.3/ascii_box_sdk/models/delete_box_response.py +108 -0
  25. ascii_box_sdk-0.0.3/ascii_box_sdk/models/desktop_response.py +112 -0
  26. ascii_box_sdk-0.0.3/ascii_box_sdk/models/error_envelope.py +104 -0
  27. ascii_box_sdk-0.0.3/ascii_box_sdk/models/error_envelope_error.py +94 -0
  28. ascii_box_sdk-0.0.3/ascii_box_sdk/models/events_response.py +101 -0
  29. ascii_box_sdk-0.0.3/ascii_box_sdk/models/limits_fields.py +207 -0
  30. ascii_box_sdk-0.0.3/ascii_box_sdk/models/limits_fields_current_limits.py +110 -0
  31. ascii_box_sdk-0.0.3/ascii_box_sdk/models/limits_response.py +163 -0
  32. ascii_box_sdk-0.0.3/ascii_box_sdk/models/me_response.py +103 -0
  33. ascii_box_sdk-0.0.3/ascii_box_sdk/models/me_response_all_of_user.py +95 -0
  34. ascii_box_sdk-0.0.3/ascii_box_sdk/models/prompt_request.py +112 -0
  35. ascii_box_sdk-0.0.3/ascii_box_sdk/models/prompt_response.py +126 -0
  36. ascii_box_sdk-0.0.3/ascii_box_sdk/models/repo_selection_request.py +90 -0
  37. ascii_box_sdk-0.0.3/ascii_box_sdk/models/repo_selection_response.py +104 -0
  38. ascii_box_sdk-0.0.3/ascii_box_sdk/models/repos_response.py +112 -0
  39. ascii_box_sdk-0.0.3/ascii_box_sdk/models/repository.py +119 -0
  40. ascii_box_sdk-0.0.3/ascii_box_sdk/models/repository_installation.py +107 -0
  41. ascii_box_sdk-0.0.3/ascii_box_sdk/models/secret_file.py +90 -0
  42. ascii_box_sdk-0.0.3/ascii_box_sdk/models/secrets_response.py +108 -0
  43. ascii_box_sdk-0.0.3/ascii_box_sdk/models/secrets_update_request.py +98 -0
  44. ascii_box_sdk-0.0.3/ascii_box_sdk/models/selected_repository.py +124 -0
  45. ascii_box_sdk-0.0.3/ascii_box_sdk/models/selected_repository_all_of_pre_commit_hooks.py +92 -0
  46. ascii_box_sdk-0.0.3/ascii_box_sdk/models/ssh_key_request.py +88 -0
  47. ascii_box_sdk-0.0.3/ascii_box_sdk/models/ssh_key_response.py +101 -0
  48. ascii_box_sdk-0.0.3/ascii_box_sdk/models/success_base.py +90 -0
  49. ascii_box_sdk-0.0.3/ascii_box_sdk/models/update_box_request.py +96 -0
  50. ascii_box_sdk-0.0.3/ascii_box_sdk/py.typed +0 -0
  51. ascii_box_sdk-0.0.3/ascii_box_sdk/rest.py +263 -0
  52. ascii_box_sdk-0.0.3/ascii_box_sdk.egg-info/PKG-INFO +52 -0
  53. ascii_box_sdk-0.0.3/ascii_box_sdk.egg-info/SOURCES.txt +97 -0
  54. ascii_box_sdk-0.0.3/ascii_box_sdk.egg-info/dependency_links.txt +1 -0
  55. ascii_box_sdk-0.0.3/ascii_box_sdk.egg-info/requires.txt +4 -0
  56. ascii_box_sdk-0.0.3/ascii_box_sdk.egg-info/top_level.txt +1 -0
  57. ascii_box_sdk-0.0.3/pyproject.toml +95 -0
  58. ascii_box_sdk-0.0.3/setup.cfg +7 -0
  59. ascii_box_sdk-0.0.3/setup.py +48 -0
  60. ascii_box_sdk-0.0.3/test/test_account_api.py +101 -0
  61. ascii_box_sdk-0.0.3/test/test_agent_api.py +66 -0
  62. ascii_box_sdk-0.0.3/test/test_api_key.py +61 -0
  63. ascii_box_sdk-0.0.3/test/test_api_key_create_request.py +51 -0
  64. ascii_box_sdk-0.0.3/test/test_api_key_delete_response.py +72 -0
  65. ascii_box_sdk-0.0.3/test/test_api_keys_response.py +80 -0
  66. ascii_box_sdk-0.0.3/test/test_box.py +67 -0
  67. ascii_box_sdk-0.0.3/test/test_box_action_response.py +71 -0
  68. ascii_box_sdk-0.0.3/test/test_box_info_response.py +80 -0
  69. ascii_box_sdk-0.0.3/test/test_box_list_response.py +84 -0
  70. ascii_box_sdk-0.0.3/test/test_boxes_api.py +87 -0
  71. ascii_box_sdk-0.0.3/test/test_create_box_request.py +51 -0
  72. ascii_box_sdk-0.0.3/test/test_create_box_response.py +84 -0
  73. ascii_box_sdk-0.0.3/test/test_delete_box_response.py +58 -0
  74. ascii_box_sdk-0.0.3/test/test_desktop_response.py +60 -0
  75. ascii_box_sdk-0.0.3/test/test_error_envelope.py +72 -0
  76. ascii_box_sdk-0.0.3/test/test_error_envelope_error.py +57 -0
  77. ascii_box_sdk-0.0.3/test/test_events_response.py +62 -0
  78. ascii_box_sdk-0.0.3/test/test_limits_fields.py +87 -0
  79. ascii_box_sdk-0.0.3/test/test_limits_fields_current_limits.py +53 -0
  80. ascii_box_sdk-0.0.3/test/test_limits_response.py +91 -0
  81. ascii_box_sdk-0.0.3/test/test_me_response.py +60 -0
  82. ascii_box_sdk-0.0.3/test/test_me_response_all_of_user.py +52 -0
  83. ascii_box_sdk-0.0.3/test/test_prompt_request.py +56 -0
  84. ascii_box_sdk-0.0.3/test/test_prompt_response.py +64 -0
  85. ascii_box_sdk-0.0.3/test/test_repo_selection_request.py +53 -0
  86. ascii_box_sdk-0.0.3/test/test_repo_selection_response.py +64 -0
  87. ascii_box_sdk-0.0.3/test/test_repos_response.py +80 -0
  88. ascii_box_sdk-0.0.3/test/test_repository.py +57 -0
  89. ascii_box_sdk-0.0.3/test/test_repository_installation.py +56 -0
  90. ascii_box_sdk-0.0.3/test/test_secret_file.py +54 -0
  91. ascii_box_sdk-0.0.3/test/test_secrets_response.py +70 -0
  92. ascii_box_sdk-0.0.3/test/test_secrets_update_request.py +56 -0
  93. ascii_box_sdk-0.0.3/test/test_selected_repository.py +67 -0
  94. ascii_box_sdk-0.0.3/test/test_selected_repository_all_of_pre_commit_hooks.py +53 -0
  95. ascii_box_sdk-0.0.3/test/test_ssh_key_request.py +52 -0
  96. ascii_box_sdk-0.0.3/test/test_ssh_key_response.py +57 -0
  97. ascii_box_sdk-0.0.3/test/test_success_base.py +54 -0
  98. ascii_box_sdk-0.0.3/test/test_update_box_request.py +52 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Ascii
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,52 @@
1
+ Metadata-Version: 2.4
2
+ Name: ascii_box_sdk
3
+ Version: 0.0.3
4
+ Summary: Box Public API v1
5
+ Home-page:
6
+ Author: OpenAPI Generator community
7
+ Author-email: OpenAPI Generator Community <team@openapitools.org>
8
+ License-Expression: MIT
9
+ Project-URL: Repository, https://github.com/GIT_USER_ID/GIT_REPO_ID
10
+ Keywords: OpenAPI,OpenAPI-Generator,Box Public API v1
11
+ Requires-Python: >=3.9
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: urllib3<3.0.0,>=2.1.0
15
+ Requires-Dist: python-dateutil>=2.8.2
16
+ Requires-Dist: pydantic>=2.11
17
+ Requires-Dist: typing-extensions>=4.7.1
18
+ Dynamic: author
19
+ Dynamic: license-file
20
+
21
+ # ascii-box-sdk
22
+
23
+ Official Box SDK generated from the Box Public API OpenAPI contract.
24
+
25
+ Box lets you create cloud sandboxes, prompt coding agents inside them, observe event history, open desktop sessions, and manage the sandbox lifecycle from your own product or automation.
26
+
27
+ ## Links
28
+
29
+ - Product: https://box.ascii.dev
30
+ - API guide: https://docs.ascii.dev/box/api/v1
31
+ - API reference: https://docs.ascii.dev/box/api/reference
32
+ - Dashboard: https://box.ascii.dev/dashboard
33
+ - API keys: https://box.ascii.dev/box/dashboard?tab=api-keys
34
+
35
+ ## Install
36
+
37
+ ```bash
38
+ pip install ascii-box-sdk
39
+ ```
40
+
41
+ ## API flow
42
+
43
+ 1. Create an API key in the Box dashboard.
44
+ 2. Create or resume a box.
45
+ 3. Prompt the agent with the work to perform.
46
+ 4. Read events until the work is done.
47
+ 5. Use desktop access when you need to inspect browser or GUI state.
48
+ 6. Stop, resume, fork, or delete the box according to your product lifecycle.
49
+
50
+ ## License
51
+
52
+ This SDK is MIT licensed. Box, the Box API, the Box CLI, and the Box product are proprietary.
@@ -0,0 +1,32 @@
1
+ # ascii-box-sdk
2
+
3
+ Official Box SDK generated from the Box Public API OpenAPI contract.
4
+
5
+ Box lets you create cloud sandboxes, prompt coding agents inside them, observe event history, open desktop sessions, and manage the sandbox lifecycle from your own product or automation.
6
+
7
+ ## Links
8
+
9
+ - Product: https://box.ascii.dev
10
+ - API guide: https://docs.ascii.dev/box/api/v1
11
+ - API reference: https://docs.ascii.dev/box/api/reference
12
+ - Dashboard: https://box.ascii.dev/dashboard
13
+ - API keys: https://box.ascii.dev/box/dashboard?tab=api-keys
14
+
15
+ ## Install
16
+
17
+ ```bash
18
+ pip install ascii-box-sdk
19
+ ```
20
+
21
+ ## API flow
22
+
23
+ 1. Create an API key in the Box dashboard.
24
+ 2. Create or resume a box.
25
+ 3. Prompt the agent with the work to perform.
26
+ 4. Read events until the work is done.
27
+ 5. Use desktop access when you need to inspect browser or GUI state.
28
+ 6. Stop, resume, fork, or delete the box according to your product lifecycle.
29
+
30
+ ## License
31
+
32
+ This SDK is MIT licensed. Box, the Box API, the Box CLI, and the Box product are proprietary.
@@ -0,0 +1,124 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ Box Public API v1
7
+
8
+ Public JSON API for creating, operating, prompting, observing, and exposing Box sandboxes from backend services, CI jobs, hosted workers, and agent products. The v1 reference intentionally documents the developer integration surface only. Dashboard billing actions are not part of v1.
9
+
10
+ The version of the OpenAPI document: 1.0.0
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
+
13
+ Do not edit the class manually.
14
+ """ # noqa: E501
15
+
16
+
17
+ __version__ = "0.0.3"
18
+
19
+ # Define package exports
20
+ __all__ = [
21
+ "AccountApi",
22
+ "AgentApi",
23
+ "BoxesApi",
24
+ "ApiResponse",
25
+ "ApiClient",
26
+ "Configuration",
27
+ "OpenApiException",
28
+ "ApiTypeError",
29
+ "ApiValueError",
30
+ "ApiKeyError",
31
+ "ApiAttributeError",
32
+ "ApiException",
33
+ "ApiKey",
34
+ "ApiKeyCreateRequest",
35
+ "ApiKeyDeleteResponse",
36
+ "ApiKeysResponse",
37
+ "Box",
38
+ "BoxActionResponse",
39
+ "BoxInfoResponse",
40
+ "BoxListResponse",
41
+ "CreateBoxRequest",
42
+ "CreateBoxResponse",
43
+ "DeleteBoxResponse",
44
+ "DesktopResponse",
45
+ "ErrorEnvelope",
46
+ "ErrorEnvelopeError",
47
+ "EventsResponse",
48
+ "LimitsFields",
49
+ "LimitsFieldsCurrentLimits",
50
+ "LimitsResponse",
51
+ "MeResponse",
52
+ "MeResponseAllOfUser",
53
+ "PromptRequest",
54
+ "PromptResponse",
55
+ "RepoSelectionRequest",
56
+ "RepoSelectionResponse",
57
+ "ReposResponse",
58
+ "Repository",
59
+ "RepositoryInstallation",
60
+ "SecretFile",
61
+ "SecretsResponse",
62
+ "SecretsUpdateRequest",
63
+ "SelectedRepository",
64
+ "SelectedRepositoryAllOfPreCommitHooks",
65
+ "SshKeyRequest",
66
+ "SshKeyResponse",
67
+ "SuccessBase",
68
+ "UpdateBoxRequest",
69
+ ]
70
+
71
+ # import apis into sdk package
72
+ from ascii_box_sdk.api.account_api import AccountApi as AccountApi
73
+ from ascii_box_sdk.api.agent_api import AgentApi as AgentApi
74
+ from ascii_box_sdk.api.boxes_api import BoxesApi as BoxesApi
75
+
76
+ # import ApiClient
77
+ from ascii_box_sdk.api_response import ApiResponse as ApiResponse
78
+ from ascii_box_sdk.api_client import ApiClient as ApiClient
79
+ from ascii_box_sdk.configuration import Configuration as Configuration
80
+ from ascii_box_sdk.exceptions import OpenApiException as OpenApiException
81
+ from ascii_box_sdk.exceptions import ApiTypeError as ApiTypeError
82
+ from ascii_box_sdk.exceptions import ApiValueError as ApiValueError
83
+ from ascii_box_sdk.exceptions import ApiKeyError as ApiKeyError
84
+ from ascii_box_sdk.exceptions import ApiAttributeError as ApiAttributeError
85
+ from ascii_box_sdk.exceptions import ApiException as ApiException
86
+
87
+ # import models into sdk package
88
+ from ascii_box_sdk.models.api_key import ApiKey as ApiKey
89
+ from ascii_box_sdk.models.api_key_create_request import ApiKeyCreateRequest as ApiKeyCreateRequest
90
+ from ascii_box_sdk.models.api_key_delete_response import ApiKeyDeleteResponse as ApiKeyDeleteResponse
91
+ from ascii_box_sdk.models.api_keys_response import ApiKeysResponse as ApiKeysResponse
92
+ from ascii_box_sdk.models.box import Box as Box
93
+ from ascii_box_sdk.models.box_action_response import BoxActionResponse as BoxActionResponse
94
+ from ascii_box_sdk.models.box_info_response import BoxInfoResponse as BoxInfoResponse
95
+ from ascii_box_sdk.models.box_list_response import BoxListResponse as BoxListResponse
96
+ from ascii_box_sdk.models.create_box_request import CreateBoxRequest as CreateBoxRequest
97
+ from ascii_box_sdk.models.create_box_response import CreateBoxResponse as CreateBoxResponse
98
+ from ascii_box_sdk.models.delete_box_response import DeleteBoxResponse as DeleteBoxResponse
99
+ from ascii_box_sdk.models.desktop_response import DesktopResponse as DesktopResponse
100
+ from ascii_box_sdk.models.error_envelope import ErrorEnvelope as ErrorEnvelope
101
+ from ascii_box_sdk.models.error_envelope_error import ErrorEnvelopeError as ErrorEnvelopeError
102
+ from ascii_box_sdk.models.events_response import EventsResponse as EventsResponse
103
+ from ascii_box_sdk.models.limits_fields import LimitsFields as LimitsFields
104
+ from ascii_box_sdk.models.limits_fields_current_limits import LimitsFieldsCurrentLimits as LimitsFieldsCurrentLimits
105
+ from ascii_box_sdk.models.limits_response import LimitsResponse as LimitsResponse
106
+ from ascii_box_sdk.models.me_response import MeResponse as MeResponse
107
+ from ascii_box_sdk.models.me_response_all_of_user import MeResponseAllOfUser as MeResponseAllOfUser
108
+ from ascii_box_sdk.models.prompt_request import PromptRequest as PromptRequest
109
+ from ascii_box_sdk.models.prompt_response import PromptResponse as PromptResponse
110
+ from ascii_box_sdk.models.repo_selection_request import RepoSelectionRequest as RepoSelectionRequest
111
+ from ascii_box_sdk.models.repo_selection_response import RepoSelectionResponse as RepoSelectionResponse
112
+ from ascii_box_sdk.models.repos_response import ReposResponse as ReposResponse
113
+ from ascii_box_sdk.models.repository import Repository as Repository
114
+ from ascii_box_sdk.models.repository_installation import RepositoryInstallation as RepositoryInstallation
115
+ from ascii_box_sdk.models.secret_file import SecretFile as SecretFile
116
+ from ascii_box_sdk.models.secrets_response import SecretsResponse as SecretsResponse
117
+ from ascii_box_sdk.models.secrets_update_request import SecretsUpdateRequest as SecretsUpdateRequest
118
+ from ascii_box_sdk.models.selected_repository import SelectedRepository as SelectedRepository
119
+ from ascii_box_sdk.models.selected_repository_all_of_pre_commit_hooks import SelectedRepositoryAllOfPreCommitHooks as SelectedRepositoryAllOfPreCommitHooks
120
+ from ascii_box_sdk.models.ssh_key_request import SshKeyRequest as SshKeyRequest
121
+ from ascii_box_sdk.models.ssh_key_response import SshKeyResponse as SshKeyResponse
122
+ from ascii_box_sdk.models.success_base import SuccessBase as SuccessBase
123
+ from ascii_box_sdk.models.update_box_request import UpdateBoxRequest as UpdateBoxRequest
124
+
@@ -0,0 +1,7 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from ascii_box_sdk.api.account_api import AccountApi
5
+ from ascii_box_sdk.api.agent_api import AgentApi
6
+ from ascii_box_sdk.api.boxes_api import BoxesApi
7
+