@onkernel/sdk 0.29.0 → 0.32.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.
Files changed (127) hide show
  1. package/CHANGELOG.md +66 -0
  2. package/client.d.mts +10 -6
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +10 -6
  5. package/client.d.ts.map +1 -1
  6. package/client.js +14 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +14 -3
  9. package/client.mjs.map +1 -1
  10. package/internal/parse.d.mts.map +1 -1
  11. package/internal/parse.d.ts.map +1 -1
  12. package/internal/parse.js +5 -0
  13. package/internal/parse.js.map +1 -1
  14. package/internal/parse.mjs +5 -0
  15. package/internal/parse.mjs.map +1 -1
  16. package/package.json +3 -2
  17. package/resources/agents/auth/auth.d.mts +115 -46
  18. package/resources/agents/auth/auth.d.mts.map +1 -1
  19. package/resources/agents/auth/auth.d.ts +115 -46
  20. package/resources/agents/auth/auth.d.ts.map +1 -1
  21. package/resources/agents/auth/auth.js +15 -30
  22. package/resources/agents/auth/auth.js.map +1 -1
  23. package/resources/agents/auth/auth.mjs +15 -30
  24. package/resources/agents/auth/auth.mjs.map +1 -1
  25. package/resources/agents/auth/invocations.d.mts +18 -47
  26. package/resources/agents/auth/invocations.d.mts.map +1 -1
  27. package/resources/agents/auth/invocations.d.ts +18 -47
  28. package/resources/agents/auth/invocations.d.ts.map +1 -1
  29. package/resources/agents/auth/invocations.js +16 -45
  30. package/resources/agents/auth/invocations.js.map +1 -1
  31. package/resources/agents/auth/invocations.mjs +16 -45
  32. package/resources/agents/auth/invocations.mjs.map +1 -1
  33. package/resources/auth/auth.d.mts +10 -0
  34. package/resources/auth/auth.d.mts.map +1 -0
  35. package/resources/auth/auth.d.ts +10 -0
  36. package/resources/auth/auth.d.ts.map +1 -0
  37. package/resources/auth/auth.js +17 -0
  38. package/resources/auth/auth.js.map +1 -0
  39. package/resources/auth/auth.mjs +12 -0
  40. package/resources/auth/auth.mjs.map +1 -0
  41. package/resources/auth/connections.d.mts +688 -0
  42. package/resources/auth/connections.d.mts.map +1 -0
  43. package/resources/auth/connections.d.ts +688 -0
  44. package/resources/auth/connections.d.ts.map +1 -0
  45. package/resources/auth/connections.js +123 -0
  46. package/resources/auth/connections.js.map +1 -0
  47. package/resources/auth/connections.mjs +119 -0
  48. package/resources/auth/connections.mjs.map +1 -0
  49. package/resources/auth/index.d.mts +3 -0
  50. package/resources/auth/index.d.mts.map +1 -0
  51. package/resources/auth/index.d.ts +3 -0
  52. package/resources/auth/index.d.ts.map +1 -0
  53. package/resources/auth/index.js +9 -0
  54. package/resources/auth/index.js.map +1 -0
  55. package/resources/auth/index.mjs +4 -0
  56. package/resources/auth/index.mjs.map +1 -0
  57. package/resources/auth.d.mts +2 -0
  58. package/resources/auth.d.mts.map +1 -0
  59. package/resources/auth.d.ts +2 -0
  60. package/resources/auth.d.ts.map +1 -0
  61. package/resources/auth.js +6 -0
  62. package/resources/auth.js.map +1 -0
  63. package/resources/auth.mjs +3 -0
  64. package/resources/auth.mjs.map +1 -0
  65. package/resources/browsers/browsers.d.mts +2 -2
  66. package/resources/browsers/browsers.d.mts.map +1 -1
  67. package/resources/browsers/browsers.d.ts +2 -2
  68. package/resources/browsers/browsers.d.ts.map +1 -1
  69. package/resources/browsers/browsers.js.map +1 -1
  70. package/resources/browsers/browsers.mjs.map +1 -1
  71. package/resources/browsers/computer.d.mts +199 -1
  72. package/resources/browsers/computer.d.mts.map +1 -1
  73. package/resources/browsers/computer.d.ts +199 -1
  74. package/resources/browsers/computer.d.ts.map +1 -1
  75. package/resources/browsers/computer.js +31 -0
  76. package/resources/browsers/computer.js.map +1 -1
  77. package/resources/browsers/computer.mjs +31 -0
  78. package/resources/browsers/computer.mjs.map +1 -1
  79. package/resources/browsers/index.d.mts +1 -1
  80. package/resources/browsers/index.d.mts.map +1 -1
  81. package/resources/browsers/index.d.ts +1 -1
  82. package/resources/browsers/index.d.ts.map +1 -1
  83. package/resources/browsers/index.js.map +1 -1
  84. package/resources/browsers/index.mjs.map +1 -1
  85. package/resources/credential-providers.d.mts +66 -1
  86. package/resources/credential-providers.d.mts.map +1 -1
  87. package/resources/credential-providers.d.ts +66 -1
  88. package/resources/credential-providers.d.ts.map +1 -1
  89. package/resources/credential-providers.js +21 -6
  90. package/resources/credential-providers.js.map +1 -1
  91. package/resources/credential-providers.mjs +21 -6
  92. package/resources/credential-providers.mjs.map +1 -1
  93. package/resources/index.d.mts +3 -2
  94. package/resources/index.d.mts.map +1 -1
  95. package/resources/index.d.ts +3 -2
  96. package/resources/index.d.ts.map +1 -1
  97. package/resources/index.js +3 -1
  98. package/resources/index.js.map +1 -1
  99. package/resources/index.mjs +1 -0
  100. package/resources/index.mjs.map +1 -1
  101. package/resources/invocations.d.mts +81 -1
  102. package/resources/invocations.d.mts.map +1 -1
  103. package/resources/invocations.d.ts +81 -1
  104. package/resources/invocations.d.ts.map +1 -1
  105. package/resources/invocations.js +13 -0
  106. package/resources/invocations.js.map +1 -1
  107. package/resources/invocations.mjs +13 -0
  108. package/resources/invocations.mjs.map +1 -1
  109. package/src/client.ts +28 -5
  110. package/src/internal/parse.ts +6 -0
  111. package/src/resources/agents/auth/auth.ts +121 -46
  112. package/src/resources/agents/auth/invocations.ts +18 -47
  113. package/src/resources/auth/auth.ts +43 -0
  114. package/src/resources/auth/connections.ts +848 -0
  115. package/src/resources/auth/index.ts +18 -0
  116. package/src/resources/auth.ts +3 -0
  117. package/src/resources/browsers/browsers.ts +4 -0
  118. package/src/resources/browsers/computer.ts +257 -0
  119. package/src/resources/browsers/index.ts +2 -0
  120. package/src/resources/credential-providers.ts +88 -6
  121. package/src/resources/index.ts +4 -0
  122. package/src/resources/invocations.ts +98 -0
  123. package/src/version.ts +1 -1
  124. package/version.d.mts +1 -1
  125. package/version.d.ts +1 -1
  126. package/version.js +1 -1
  127. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"invocations.d.ts","sourceRoot":"","sources":["../../../src/res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AE,sBAAsB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,OAAO,CAAC,uBAAuB,CAAC;CAG/C;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,sBAAsB,GAC9B,sBAAsB,CAAC,QAAQ,GAC/B,sBAAsB,CAAC,QAAQ,GAC/B,sBAAsB,CAAC,QAAQ,CAAC;AAEpC,MAAM,CAAC,OAAO,WAAW,sBAAsB,CAAC;IAC9C,UAAiB,QAAQ;QACvB;;WAEG;QACH,YAAY,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;KACzC;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;KACpB;IAED,UAAiB,QAAQ;QACvB;;WAEG;QACH,iBAAiB,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;KAC5E;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -6,70 +6,41 @@ const resource_1 = require("../../../core/resource.js");
6
6
  const path_1 = require("../../../internal/utils/path.js");
7
7
  class Invocations extends resource_1.APIResource {
8
8
  /**
9
- * Creates a new authentication invocation for the specified auth agent. This
10
- * starts the auth flow and returns a hosted URL for the user to complete
11
- * authentication.
9
+ * **Deprecated: Use POST /auth/connections/{id}/login instead.** Creates a new
10
+ * authentication invocation for the specified auth agent. This starts the auth
11
+ * flow and returns a hosted URL for the user to complete authentication.
12
12
  *
13
- * @example
14
- * ```ts
15
- * const authAgentInvocationCreateResponse =
16
- * await client.agents.auth.invocations.create({
17
- * auth_agent_id: 'abc123xyz',
18
- * });
19
- * ```
13
+ * @deprecated
20
14
  */
21
15
  create(body, options) {
22
16
  return this._client.post('/agents/auth/invocations', { body, ...options });
23
17
  }
24
18
  /**
25
- * Returns invocation details including status, app_name, and domain. Supports both
26
- * API key and JWT (from exchange endpoint) authentication.
19
+ * **Deprecated: Use GET /auth/connections/{id} instead.** Returns invocation
20
+ * details including status, app_name, and domain. Supports both API key and JWT
21
+ * (from exchange endpoint) authentication.
27
22
  *
28
- * @example
29
- * ```ts
30
- * const agentAuthInvocationResponse =
31
- * await client.agents.auth.invocations.retrieve(
32
- * 'invocation_id',
33
- * );
34
- * ```
23
+ * @deprecated
35
24
  */
36
25
  retrieve(invocationID, options) {
37
26
  return this._client.get((0, path_1.path) `/agents/auth/invocations/${invocationID}`, options);
38
27
  }
39
28
  /**
40
- * Validates the handoff code and returns a JWT token for subsequent requests. No
41
- * authentication required (the handoff code serves as the credential).
29
+ * **Deprecated: Use POST /auth/connections/{id}/exchange instead.** Validates the
30
+ * handoff code and returns a JWT token for subsequent requests. No authentication
31
+ * required (the handoff code serves as the credential).
42
32
  *
43
- * @example
44
- * ```ts
45
- * const response =
46
- * await client.agents.auth.invocations.exchange(
47
- * 'invocation_id',
48
- * { code: 'abc123xyz' },
49
- * );
50
- * ```
33
+ * @deprecated
51
34
  */
52
35
  exchange(invocationID, body, options) {
53
36
  return this._client.post((0, path_1.path) `/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
54
37
  }
55
38
  /**
56
- * Submits field values for the discovered login form. Returns immediately after
57
- * submission is accepted. Poll the invocation endpoint to track progress and get
58
- * results.
39
+ * **Deprecated: Use POST /auth/connections/{id}/submit instead.** Submits field
40
+ * values for the discovered login form. Returns immediately after submission is
41
+ * accepted. Poll the invocation endpoint to track progress and get results.
59
42
  *
60
- * @example
61
- * ```ts
62
- * const agentAuthSubmitResponse =
63
- * await client.agents.auth.invocations.submit(
64
- * 'invocation_id',
65
- * {
66
- * field_values: {
67
- * email: 'user@example.com',
68
- * password: '********',
69
- * },
70
- * },
71
- * );
72
- * ```
43
+ * @deprecated
73
44
  */
74
45
  submit(invocationID, body, options) {
75
46
  return this._client.post((0, path_1.path) `/agents/auth/invocations/${invocationID}/submit`, { body, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"invocations.js","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAoD;AAEpD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAoB,EACpB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,4BAA4B,YAAY,WAAW,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;;;;;;;;;O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,41 @@ import { APIResource } from "../../../core/resource.mjs";
3
3
  import { path } from "../../../internal/utils/path.mjs";
4
4
  export class Invocations extends APIResource {
5
5
  /**
6
- * Creates a new authentication invocation for the specified auth agent. This
7
- * starts the auth flow and returns a hosted URL for the user to complete
8
- * authentication.
6
+ * **Deprecated: Use POST /auth/connections/{id}/login instead.** Creates a new
7
+ * authentication invocation for the specified auth agent. This starts the auth
8
+ * flow and returns a hosted URL for the user to complete authentication.
9
9
  *
10
- * @example
11
- * ```ts
12
- * const authAgentInvocationCreateResponse =
13
- * await client.agents.auth.invocations.create({
14
- * auth_agent_id: 'abc123xyz',
15
- * });
16
- * ```
10
+ * @deprecated
17
11
  */
18
12
  create(body, options) {
19
13
  return this._client.post('/agents/auth/invocations', { body, ...options });
20
14
  }
21
15
  /**
22
- * Returns invocation details including status, app_name, and domain. Supports both
23
- * API key and JWT (from exchange endpoint) authentication.
16
+ * **Deprecated: Use GET /auth/connections/{id} instead.** Returns invocation
17
+ * details including status, app_name, and domain. Supports both API key and JWT
18
+ * (from exchange endpoint) authentication.
24
19
  *
25
- * @example
26
- * ```ts
27
- * const agentAuthInvocationResponse =
28
- * await client.agents.auth.invocations.retrieve(
29
- * 'invocation_id',
30
- * );
31
- * ```
20
+ * @deprecated
32
21
  */
33
22
  retrieve(invocationID, options) {
34
23
  return this._client.get(path `/agents/auth/invocations/${invocationID}`, options);
35
24
  }
36
25
  /**
37
- * Validates the handoff code and returns a JWT token for subsequent requests. No
38
- * authentication required (the handoff code serves as the credential).
26
+ * **Deprecated: Use POST /auth/connections/{id}/exchange instead.** Validates the
27
+ * handoff code and returns a JWT token for subsequent requests. No authentication
28
+ * required (the handoff code serves as the credential).
39
29
  *
40
- * @example
41
- * ```ts
42
- * const response =
43
- * await client.agents.auth.invocations.exchange(
44
- * 'invocation_id',
45
- * { code: 'abc123xyz' },
46
- * );
47
- * ```
30
+ * @deprecated
48
31
  */
49
32
  exchange(invocationID, body, options) {
50
33
  return this._client.post(path `/agents/auth/invocations/${invocationID}/exchange`, { body, ...options });
51
34
  }
52
35
  /**
53
- * Submits field values for the discovered login form. Returns immediately after
54
- * submission is accepted. Poll the invocation endpoint to track progress and get
55
- * results.
36
+ * **Deprecated: Use POST /auth/connections/{id}/submit instead.** Submits field
37
+ * values for the discovered login form. Returns immediately after submission is
38
+ * accepted. Poll the invocation endpoint to track progress and get results.
56
39
  *
57
- * @example
58
- * ```ts
59
- * const agentAuthSubmitResponse =
60
- * await client.agents.auth.invocations.submit(
61
- * 'invocation_id',
62
- * {
63
- * field_values: {
64
- * email: 'user@example.com',
65
- * password: '********',
66
- * },
67
- * },
68
- * );
69
- * ```
40
+ * @deprecated
70
41
  */
71
42
  submit(invocationID, body, options) {
72
43
  return this._client.post(path `/agents/auth/invocations/${invocationID}/submit`, { body, ...options });
@@ -1 +1 @@
1
- {"version":3,"file":"invocations.mjs","sourceRoot":"","sources":["../../../src/resources/agents/auth/invocations.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAIf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,IAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,YAAoB,EAAE,OAAwB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,YAAY,EAAE,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAoB,EACpB,IAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,4BAA4B,YAAY,WAAW,EAAE,EAAE,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EAAE,CAAC,CAAC;IACxG,CAAC;CACF"}
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as ConnectionsAPI from "./connections.mjs";
3
+ import { ConnectionCreateParams, ConnectionFollowResponse, ConnectionListParams, ConnectionLoginParams, ConnectionSubmitParams, Connections, LoginRequest, LoginResponse, ManagedAuth, ManagedAuthCreateRequest, ManagedAuthsOffsetPagination, SubmitFieldsRequest, SubmitFieldsResponse } from "./connections.mjs";
4
+ export declare class Auth extends APIResource {
5
+ connections: ConnectionsAPI.Connections;
6
+ }
7
+ export declare namespace Auth {
8
+ export { Connections as Connections, type LoginRequest as LoginRequest, type LoginResponse as LoginResponse, type ManagedAuth as ManagedAuth, type ManagedAuthCreateRequest as ManagedAuthCreateRequest, type SubmitFieldsRequest as SubmitFieldsRequest, type SubmitFieldsResponse as SubmitFieldsResponse, type ConnectionFollowResponse as ConnectionFollowResponse, type ManagedAuthsOffsetPagination as ManagedAuthsOffsetPagination, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionListParams as ConnectionListParams, type ConnectionLoginParams as ConnectionLoginParams, type ConnectionSubmitParams as ConnectionSubmitParams, };
9
+ }
10
+ //# sourceMappingURL=auth.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.mts","sourceRoot":"","sources":["../../src/resources/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,WAAW,EACX,wBAAwB,EACxB,4BAA4B,EAC5B,mBAAmB,EACnB,oBAAoB,EACrB;AAED,qBAAa,IAAK,SAAQ,WAAW;IACnC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as ConnectionsAPI from "./connections.js";
3
+ import { ConnectionCreateParams, ConnectionFollowResponse, ConnectionListParams, ConnectionLoginParams, ConnectionSubmitParams, Connections, LoginRequest, LoginResponse, ManagedAuth, ManagedAuthCreateRequest, ManagedAuthsOffsetPagination, SubmitFieldsRequest, SubmitFieldsResponse } from "./connections.js";
4
+ export declare class Auth extends APIResource {
5
+ connections: ConnectionsAPI.Connections;
6
+ }
7
+ export declare namespace Auth {
8
+ export { Connections as Connections, type LoginRequest as LoginRequest, type LoginResponse as LoginResponse, type ManagedAuth as ManagedAuth, type ManagedAuthCreateRequest as ManagedAuthCreateRequest, type SubmitFieldsRequest as SubmitFieldsRequest, type SubmitFieldsResponse as SubmitFieldsResponse, type ConnectionFollowResponse as ConnectionFollowResponse, type ManagedAuthsOffsetPagination as ManagedAuthsOffsetPagination, type ConnectionCreateParams as ConnectionCreateParams, type ConnectionListParams as ConnectionListParams, type ConnectionLoginParams as ConnectionLoginParams, type ConnectionSubmitParams as ConnectionSubmitParams, };
9
+ }
10
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../src/resources/auth/auth.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EACL,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,WAAW,EACX,wBAAwB,EACxB,4BAA4B,EAC5B,mBAAmB,EACnB,oBAAoB,EACrB;AAED,qBAAa,IAAK,SAAQ,WAAW;IACnC,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;CACxF;AAID,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Auth = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const ConnectionsAPI = tslib_1.__importStar(require("./connections.js"));
8
+ const connections_1 = require("./connections.js");
9
+ class Auth extends resource_1.APIResource {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.connections = new ConnectionsAPI.Connections(this._client);
13
+ }
14
+ }
15
+ exports.Auth = Auth;
16
+ Auth.Connections = connections_1.Connections;
17
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../src/resources/auth/auth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDAcuB;AAEvB,MAAa,IAAK,SAAQ,sBAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAFD,oBAEC;AAED,IAAI,CAAC,WAAW,GAAG,yBAAW,CAAC"}
@@ -0,0 +1,12 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import * as ConnectionsAPI from "./connections.mjs";
4
+ import { Connections, } from "./connections.mjs";
5
+ export class Auth extends APIResource {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.connections = new ConnectionsAPI.Connections(this._client);
9
+ }
10
+ }
11
+ Auth.Connections = Connections;
12
+ //# sourceMappingURL=auth.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../src/resources/auth/auth.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;OACnB,EAML,WAAW,GAQZ;AAED,MAAM,OAAO,IAAK,SAAQ,WAAW;IAArC;;QACE,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACzF,CAAC;CAAA;AAED,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC"}