@dropthis/cli 0.34.0 → 0.36.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.
@@ -1,5 +1,5 @@
1
- import { a1 as Transport, x as DropthisResult, E as EmailOtpResponse, $ as SessionResponse, H as InvitationListResponse, a7 as Workspace, P as MemberListResponse, B as InvitableRole, F as Invitation, a8 as WorkspaceRole, O as Member, C as CreateUploadSessionRequest, f as CreateUploadSessionResponse, a5 as UploadSessionResponse, v as DropthisClientOptions, e as ApiKeysResource, A as AccountResource, u as DropsResource, V as PublishInput, i as DeploymentsResource, n as DomainsResource, a9 as WorkspacesResource, W as PublishOptions, S as PreparedPublishRequest } from './workspaces-CebiV4DS.cjs';
2
- export { a as AccountResponse, b as AccountUsage, c as AccountWorkspace, d as ActionResolve, g as CursorPage, D as DeploymentContentFile, h as DeploymentContentManifest, j as DnsRecord, k as DomainDeletedResponse, l as DomainListResponse, m as DomainResponse, o as DropAction, p as DropContentFile, q as DropDeploymentResponse, r as DropOptions, s as DropResponse, t as DropWorkspace, w as DropthisErrorResponse, y as EntitlementLimits, z as Entitlements, G as GetContentOptions, I as InMemoryPublishInput, K as KeyType, L as Limitations, J as ListDeploymentsParams, M as ListDeploymentsResponse, N as ListPage, Q as NextHint, R as PrepareOptions, T as PreparedUploadFile, U as PublishFileInput, X as RequestControls, Y as RequestOptions, Z as RevokeImpact, _ as SHARED_POOL, a0 as TierInfo, a2 as UpdateContentOptions, a3 as UploadManifestFile, a4 as UploadSessionFileResponse, a6 as UploadTarget } from './workspaces-CebiV4DS.cjs';
1
+ import { a4 as Transport, x as DropthisResult, E as EmailOtpResponse, a2 as SessionResponse, C as CreateUploadSessionRequest, f as CreateUploadSessionResponse, a8 as UploadSessionResponse, v as DropthisClientOptions, e as ApiKeysResource, A as AccountResource, u as DropsResource, Y as PublishInput, i as DeploymentsResource, n as DomainsResource, ac as WorkspacesResource, S as MembersResource, K as InvitationsResource, Z as PublishOptions, V as PreparedPublishRequest } from './workspaces-Cq705UM6.cjs';
2
+ export { a as AccountResponse, b as AccountUsage, c as AccountWorkspace, d as ActionResolve, g as CursorPage, D as DeploymentContentFile, h as DeploymentContentManifest, j as DnsRecord, k as DomainDeletedResponse, l as DomainListResponse, m as DomainResponse, o as DropAction, p as DropContentFile, q as DropDeploymentResponse, r as DropOptions, s as DropResponse, t as DropWorkspace, w as DropthisErrorResponse, y as EntitlementLimits, z as Entitlements, G as GetContentOptions, I as ImageTransform, B as InMemoryPublishInput, F as InvitableRole, H as Invitation, J as InvitationListResponse, L as KeyType, M as Limitations, N as ListDeploymentsParams, O as ListDeploymentsResponse, P as ListPage, Q as Member, R as MemberListResponse, T as NextHint, U as PrepareOptions, W as PreparedUploadFile, X as PublishFileInput, _ as RequestControls, $ as RequestOptions, a0 as RevokeImpact, a1 as SHARED_POOL, a3 as TierInfo, a5 as UpdateContentOptions, a6 as UploadManifestFile, a7 as UploadSessionFileResponse, a9 as UploadTarget, aa as Workspace, ab as WorkspaceRole } from './workspaces-Cq705UM6.cjs';
3
3
 
4
4
  declare class AuthResource {
5
5
  private readonly transport;
@@ -21,42 +21,6 @@ declare class AuthResource {
21
21
  logout(): Promise<DropthisResult<null>>;
22
22
  }
23
23
 
24
- /** Invitee-side invitations (ADR 0068). Listing needs `members:read`; accepting needs `members:write`. */
25
- declare class InvitationsResource {
26
- private readonly transport;
27
- constructor(transport: Transport);
28
- /** List the calling account's own pending invitations. */
29
- list(): Promise<DropthisResult<InvitationListResponse>>;
30
- /** Accept by the raw single-use token from the invite email. Joins + switches active workspace. */
31
- accept(input: {
32
- token: string;
33
- }): Promise<DropthisResult<Workspace>>;
34
- /** Accept by invitation id, once authenticated as the invited email — the agent path, no token. */
35
- acceptById(input: {
36
- invitationId: string;
37
- }): Promise<DropthisResult<Workspace>>;
38
- }
39
-
40
- /** Team membership management (ADR 0068). Capability follows the credential's scopes. */
41
- declare class MembersResource {
42
- private readonly transport;
43
- constructor(transport: Transport);
44
- /** List a workspace's members (any member, `members:read`). */
45
- list(workspaceId: string): Promise<DropthisResult<MemberListResponse>>;
46
- /** Invite an email to the workspace (owner/admin, `members:write`). */
47
- invite(workspaceId: string, input: {
48
- email: string;
49
- role: InvitableRole;
50
- }): Promise<DropthisResult<Invitation>>;
51
- /** Change a member's role (`members:admin`, owner-only-touches-owner enforced server-side). */
52
- updateRole(workspaceId: string, accountId: string, input: {
53
- role: WorkspaceRole;
54
- }): Promise<DropthisResult<Member>>;
55
- /** Remove a member, or leave the workspace (your own id). Removing others needs `members:admin`;
56
- * leaving needs `members:write`. 204 — data is null. */
57
- remove(workspaceId: string, accountId: string): Promise<DropthisResult<null>>;
58
- }
59
-
60
24
  declare class UploadsResource {
61
25
  private readonly transport;
62
26
  constructor(transport: Transport);
@@ -144,4 +108,4 @@ declare class PublishInputError extends Error {
144
108
  constructor(code: string, message: string, param?: string | undefined, suggestion?: string | undefined);
145
109
  }
146
110
 
147
- export { CreateUploadSessionRequest, CreateUploadSessionResponse, DeploymentsResource, DomainsResource, Dropthis, DropthisClientOptions, DropthisResult, InvitableRole, Invitation, InvitationListResponse, InvitationsResource, Member, MemberListResponse, MembersResource, PreparedPublishRequest, PublishInput, PublishInputError, PublishOptions, UploadSessionResponse, UploadsResource, Workspace, WorkspaceRole, WorkspacesResource, createErrorResult, isFeatureNotInPlan, isPlanGate, isQuotaExceeded, redactSecrets };
111
+ export { CreateUploadSessionRequest, CreateUploadSessionResponse, DeploymentsResource, DomainsResource, Dropthis, DropthisClientOptions, DropthisResult, InvitationsResource, MembersResource, PreparedPublishRequest, PublishInput, PublishInputError, PublishOptions, UploadSessionResponse, UploadsResource, WorkspacesResource, createErrorResult, isFeatureNotInPlan, isPlanGate, isQuotaExceeded, redactSecrets };
@@ -1,5 +1,5 @@
1
- import { a1 as Transport, x as DropthisResult, E as EmailOtpResponse, $ as SessionResponse, H as InvitationListResponse, a7 as Workspace, P as MemberListResponse, B as InvitableRole, F as Invitation, a8 as WorkspaceRole, O as Member, C as CreateUploadSessionRequest, f as CreateUploadSessionResponse, a5 as UploadSessionResponse, v as DropthisClientOptions, e as ApiKeysResource, A as AccountResource, u as DropsResource, V as PublishInput, i as DeploymentsResource, n as DomainsResource, a9 as WorkspacesResource, W as PublishOptions, S as PreparedPublishRequest } from './workspaces-CebiV4DS.js';
2
- export { a as AccountResponse, b as AccountUsage, c as AccountWorkspace, d as ActionResolve, g as CursorPage, D as DeploymentContentFile, h as DeploymentContentManifest, j as DnsRecord, k as DomainDeletedResponse, l as DomainListResponse, m as DomainResponse, o as DropAction, p as DropContentFile, q as DropDeploymentResponse, r as DropOptions, s as DropResponse, t as DropWorkspace, w as DropthisErrorResponse, y as EntitlementLimits, z as Entitlements, G as GetContentOptions, I as InMemoryPublishInput, K as KeyType, L as Limitations, J as ListDeploymentsParams, M as ListDeploymentsResponse, N as ListPage, Q as NextHint, R as PrepareOptions, T as PreparedUploadFile, U as PublishFileInput, X as RequestControls, Y as RequestOptions, Z as RevokeImpact, _ as SHARED_POOL, a0 as TierInfo, a2 as UpdateContentOptions, a3 as UploadManifestFile, a4 as UploadSessionFileResponse, a6 as UploadTarget } from './workspaces-CebiV4DS.js';
1
+ import { a4 as Transport, x as DropthisResult, E as EmailOtpResponse, a2 as SessionResponse, C as CreateUploadSessionRequest, f as CreateUploadSessionResponse, a8 as UploadSessionResponse, v as DropthisClientOptions, e as ApiKeysResource, A as AccountResource, u as DropsResource, Y as PublishInput, i as DeploymentsResource, n as DomainsResource, ac as WorkspacesResource, S as MembersResource, K as InvitationsResource, Z as PublishOptions, V as PreparedPublishRequest } from './workspaces-Cq705UM6.js';
2
+ export { a as AccountResponse, b as AccountUsage, c as AccountWorkspace, d as ActionResolve, g as CursorPage, D as DeploymentContentFile, h as DeploymentContentManifest, j as DnsRecord, k as DomainDeletedResponse, l as DomainListResponse, m as DomainResponse, o as DropAction, p as DropContentFile, q as DropDeploymentResponse, r as DropOptions, s as DropResponse, t as DropWorkspace, w as DropthisErrorResponse, y as EntitlementLimits, z as Entitlements, G as GetContentOptions, I as ImageTransform, B as InMemoryPublishInput, F as InvitableRole, H as Invitation, J as InvitationListResponse, L as KeyType, M as Limitations, N as ListDeploymentsParams, O as ListDeploymentsResponse, P as ListPage, Q as Member, R as MemberListResponse, T as NextHint, U as PrepareOptions, W as PreparedUploadFile, X as PublishFileInput, _ as RequestControls, $ as RequestOptions, a0 as RevokeImpact, a1 as SHARED_POOL, a3 as TierInfo, a5 as UpdateContentOptions, a6 as UploadManifestFile, a7 as UploadSessionFileResponse, a9 as UploadTarget, aa as Workspace, ab as WorkspaceRole } from './workspaces-Cq705UM6.js';
3
3
 
4
4
  declare class AuthResource {
5
5
  private readonly transport;
@@ -21,42 +21,6 @@ declare class AuthResource {
21
21
  logout(): Promise<DropthisResult<null>>;
22
22
  }
23
23
 
24
- /** Invitee-side invitations (ADR 0068). Listing needs `members:read`; accepting needs `members:write`. */
25
- declare class InvitationsResource {
26
- private readonly transport;
27
- constructor(transport: Transport);
28
- /** List the calling account's own pending invitations. */
29
- list(): Promise<DropthisResult<InvitationListResponse>>;
30
- /** Accept by the raw single-use token from the invite email. Joins + switches active workspace. */
31
- accept(input: {
32
- token: string;
33
- }): Promise<DropthisResult<Workspace>>;
34
- /** Accept by invitation id, once authenticated as the invited email — the agent path, no token. */
35
- acceptById(input: {
36
- invitationId: string;
37
- }): Promise<DropthisResult<Workspace>>;
38
- }
39
-
40
- /** Team membership management (ADR 0068). Capability follows the credential's scopes. */
41
- declare class MembersResource {
42
- private readonly transport;
43
- constructor(transport: Transport);
44
- /** List a workspace's members (any member, `members:read`). */
45
- list(workspaceId: string): Promise<DropthisResult<MemberListResponse>>;
46
- /** Invite an email to the workspace (owner/admin, `members:write`). */
47
- invite(workspaceId: string, input: {
48
- email: string;
49
- role: InvitableRole;
50
- }): Promise<DropthisResult<Invitation>>;
51
- /** Change a member's role (`members:admin`, owner-only-touches-owner enforced server-side). */
52
- updateRole(workspaceId: string, accountId: string, input: {
53
- role: WorkspaceRole;
54
- }): Promise<DropthisResult<Member>>;
55
- /** Remove a member, or leave the workspace (your own id). Removing others needs `members:admin`;
56
- * leaving needs `members:write`. 204 — data is null. */
57
- remove(workspaceId: string, accountId: string): Promise<DropthisResult<null>>;
58
- }
59
-
60
24
  declare class UploadsResource {
61
25
  private readonly transport;
62
26
  constructor(transport: Transport);
@@ -144,4 +108,4 @@ declare class PublishInputError extends Error {
144
108
  constructor(code: string, message: string, param?: string | undefined, suggestion?: string | undefined);
145
109
  }
146
110
 
147
- export { CreateUploadSessionRequest, CreateUploadSessionResponse, DeploymentsResource, DomainsResource, Dropthis, DropthisClientOptions, DropthisResult, InvitableRole, Invitation, InvitationListResponse, InvitationsResource, Member, MemberListResponse, MembersResource, PreparedPublishRequest, PublishInput, PublishInputError, PublishOptions, UploadSessionResponse, UploadsResource, Workspace, WorkspaceRole, WorkspacesResource, createErrorResult, isFeatureNotInPlan, isPlanGate, isQuotaExceeded, redactSecrets };
111
+ export { CreateUploadSessionRequest, CreateUploadSessionResponse, DeploymentsResource, DomainsResource, Dropthis, DropthisClientOptions, DropthisResult, InvitationsResource, MembersResource, PreparedPublishRequest, PublishInput, PublishInputError, PublishOptions, UploadSessionResponse, UploadsResource, WorkspacesResource, createErrorResult, isFeatureNotInPlan, isPlanGate, isQuotaExceeded, redactSecrets };
@@ -253,7 +253,8 @@ function buildStagedRequest(files, options, entry) {
253
253
  sourceUrl: file.sourceUrl,
254
254
  ...file.contentType ? { contentType: file.contentType } : {},
255
255
  ...file.sizeBytes !== void 0 ? { sizeBytes: file.sizeBytes } : {},
256
- ...file.checksumSha256 ? { checksumSha256: file.checksumSha256 } : {}
256
+ ...file.checksumSha256 ? { checksumSha256: file.checksumSha256 } : {},
257
+ ...file.transform ? { transform: file.transform } : {}
257
258
  }
258
259
  ) : {
259
260
  path: normalizeManifestPath(file.path),
@@ -340,7 +341,8 @@ function prepareBundleFile(file) {
340
341
  sourceUrl: file.sourceUrl,
341
342
  ...file.contentType ? { contentType: file.contentType } : {},
342
343
  ...file.sizeBytes !== void 0 ? { sizeBytes: file.sizeBytes } : {},
343
- ...file.checksumSha256 ? { checksumSha256: file.checksumSha256 } : {}
344
+ ...file.checksumSha256 ? { checksumSha256: file.checksumSha256 } : {},
345
+ ...file.transform ? { transform: file.transform } : {}
344
346
  };
345
347
  }
346
348
  const bytes = fileBytes(file);
@@ -1250,7 +1252,7 @@ function toSnakeCase(value) {
1250
1252
 
1251
1253
  // src/transport.ts
1252
1254
  var DEFAULT_BASE_URL = "https://api.dropthis.app";
1253
- var SDK_VERSION = "0.29.0";
1255
+ var SDK_VERSION = true ? "0.32.0" : "0.0.0-dev";
1254
1256
  var Transport = class {
1255
1257
  apiKey;
1256
1258
  baseUrl;