- Refreshed README with the standard Square Cloud SDK layout, quick-start imports and related projects.
-
d05bcc3: Sync with the Square Cloud API contract changes from the last 3 months.
Breaking
RESTPostAPIApplicationUploadResult:langreplaced bylanguage: { name, version }; added requiredcpuand optionaldescription/subdomain.APINetworkAnalytics: new required breakdownsips,status_codes,botsandcontent_types, typed as whole-windowAPINetworkAnalyticsTotalBucketbuckets.APINetworkDNSis now an array ofAPINetworkDNSRecord({ type: "txt" | "cname", name, value, status }); the previousownership/sslobject shape no longer exists in the API.APIApplicationgained the required nullabledomainandcustomfields;APIWebsiteApplicationnow only narrowsdomaintostring.APIListedFile.lastModifiedis a Unix timestamp in milliseconds (number) instead of an ISO string.RESTGetAPIFilesListQuery.pathis optional (the API defaults it to/).
Added
GET /v2/apps/domainstypes:APIAppDomain,APIAppDomainType,APIAppDomainsPayload.GET /v2/apps/load-balancerstypes:APILoadBalancers,APILoadBalancer,APILoadBalancerApp,APILoadBalancersPayload.RESTGetAPINetworkAnalyticsQuery: 11 optional drill-down filters (country,ip,path,status,os,browser,protocol,referer,provider,content_type,bot) applied to every breakdown at once.APIErrorCode: constant and union of the standardized error codes (INVALID_X/X_FAILED/X_NOT_FOUND/X_LIMIT_REACHED), includingDAILY_SNAPSHOTS_LIMIT_REACHED,UPLOAD_ABORTED,LOAD_BALANCER_LIMIT_REACHEDandUPGRADE_REQUIRED. Pre-standardization names remain available as@deprecatedaliases resolving to the canonical values, so existing comparisons keep working.APIApplicationStatus/APIDatabaseStatus: optionalRawtype parameter mirroring the?rawData=trueresponse variant (raw numbers/arrays instead of formatted strings), plusRESTGetAPIApplicationStatusQuery.RESTPostAPIApplicationCommitQuery: optionalpathdestination directory for commits.ApplicationLanguage: addedruby.
Docs
- JSDoc now documents current rate limits and behavior: logs, snapshots (per-plan daily quota and 30-minute listing cache), realtime SSE connection limits and TTL, custom-domain daily change limit, single-use workspace invite codes,
413 FILE_TOO_LARGEon large file reads, and the expanded locale list (incl.it-IT).
- 74df421: Remove
RESTPostAPINetworkPurgeCacheJSONBody— the purge cache endpoint no longer accepts a body.
-
Port the ~30 missing v10.5 endpoint typings from the Node.js SDK draft, and realign the existing Network Analytics typings with the current OpenAPI (v10.5.0). New coverage:
- Branded
DatabaseIdandWorkspaceIdplus a sharedRuntimeStatsListItem<TId, Running>used by bothAPIApplicationStatusAllandAPIDatabaseStatusListItem. APIEnvVarspayload and POST/PUT/DELETE bodies for/v2/apps/{appId}/envs.APIMetrics(24h × 5min points) for/v2/apps/{appId}/metricsand/v2/databases/{databaseId}/metrics.- Snapshot restore body and
RESTGetAPIUserSnapshotsQuerywith the newSnapshotScope("applications" | "databases"). APIGithubAppLinkResponse,RESTPostAPIGithubAppJSONBody, and theapp: { id, name, branch }field onAPIDeploymentCurrent.- Full Network category:
APINetworkAnalyticsBucket,APINetworkAnalyticsTimeBucket,APINetworkErrors,APINetworkLogs,APINetworkPerformance, plusRESTAPINetworkRangeQuery/RESTAPINetworkErrorsQuery. - Full Databases category:
APIDatabase,APIDatabaseSummary,APIDatabaseCreated,APIDatabaseStatus(alias ofAPIApplicationStatus),APIDatabaseStatusListItem, certificate + credentials reset typings, plus POST/PATCH/DELETE/start/stop bodies. - Full Workspaces category:
APIWorkspace, members, applications, invite code, and all mutation bodies. APIRealtimeSystemEventunion for SSE protocol events.RESTGetAPIApplicationStatusAllQueryadds the new optionalworkspaceIdquery parameter onGET /v2/apps/status.
APIDeploymentrealigned with production response (the OpenAPI 10.5 description of this endpoint was incorrect — verified against a live response):APIDeployPayload.responseis nowAPIDeployment[][](nested) — outer is the list of recent deploys, inner is the timeline of events for each deploy.APIDeploymentis now a discriminated union onstate:cloneevents carrybranch: stringcommitevents carryfiles: { added, removed, modified }- all other states have only
{ id, state, date }
DeploymentStateadds"commit"and"restarting".APIDeployment.idis nowstring(40-char SHA-1 commit hash) instead of the previous`git-${string}`template literal.
Realigned pre-existing endpoint typings with production (all validated against live responses with the API team):
APINetworkDNSPayloadshape replaced. The endpoint returns a single object{ ownership: { type, name, value }, ssl: { status } }, not the array of DNS records the previous type declared.APINetworkDNSStatusnow describes the SSL validation state, applied toAPINetworkDNS.ssl.status.APIListedFile.lastModifiedis nowISODateString(wasnumber).APIReadFile.typeis now the literal"Buffer"(wasstring).RESTPutAPIFileUpsertJSONBody.contentacceptsstring | APIReadFile(string or Node-style Buffer JSON object), not juststring.RESTPutAPIFileUpsertResultPayloadnow carriesresponse: { written: boolean }instead of being status-only.RESTPostAPIApplicationUploadResultsimplified to{ id, name, lang, ram }to match the actual upload response.RESTPostAPIApplicationUploadResultLanguageis removed;langis a plainstringslug (e.g."nodejs").RESTPostAPIGithubWebhookResultPayloadis no longerAPIPayload<{ webhook }>becauseresponseis absent when the webhook is removed (access_token: "@"). It now extendsAPIPayloadStatusOnlywith an optionalresponse.UserPlanNamerewritten. Paid tiers are always suffixed with their RAM size in GB (hobby-1/hobby-2,standard-4/standard-6/standard-8,pro-12/pro-16/pro-24,enterprise-<N>); onlyfreehas no suffix. The previous union accepted plain"hobby"/"standard"/"pro"(without size) which the backend never returns. The"advanced"tier is removed (no such tier exists in production). AddedHobbyPlanSizes,StandardPlanSizes,ProPlanSizestype helpers; theUserPlanNamehelper now requires a size for paid tiers (UserPlanName.Pro(16)→"pro-16").APIWorkspaceApp.langis nowApplicationLanguage(wasstring) — same vocabulary asAPIApplication.languageandAPIUserApplication.lang.RESTPostAPIApplicationUploadResult.langis nowApplicationLanguage(wasstring).APIApplicationgains requiredcreated_at: ISODateString(backend has always returned it; the type just didn't declare it).APIWebsiteApplicationinherits it.APIWorkspaceMember.joinedAtis now required (was optional).RESTPostAPIApplicationCommitResultPayloadsimplified toAPIPayloadStatusOnly. The previousmessage?: stringfield was a vestige of an old shared success/error interface and never appears on real success responses.APINetworkPerformancePayloadnow allows the empty-object response variant (APIPayload<APINetworkPerformance | Record<string, never>>) — consistent with analytics and errors. Backend returns{}when the requested window precedes the application's creation date.
Breaking changes vs 0.6.0:
APINetworkAnalyticsresponse shape replaced. The new shape matches the OpenAPINetworkAnalytics: per-dimension breakdowns (visits,countries,devices,os,browsers,protocols,methods,paths,referers,providers) each as arrays of 15-minute buckets. Fields removed from the previous shape:hostname,total,agents,hosts. Fields renamed:deviceTypes→devices,operatingSystems→os. The endpoint now also requiresstart/endISO timestamps (RESTGetAPINetworkAnalyticsQuery).APINetworkAnalyticsPayloadis nowAPIPayload<APINetworkAnalytics | Record<string, never>>because the backend returns{}when the requested window precedes the application's creation date.APINetworkErrorsPayloadlikewise becomesAPIPayload<APINetworkErrors | Record<string, never>>for the same reason.APINetworkErrorsTopPath.methodandAPINetworkErrorsByMethod.methodare nowstring | null(edge may not attribute a method).APIDeploymentCurrent.webhookis now optional. Eitherapp,webhook, or both may be present.APIUsergains requiredlocaleandcreated_at.APIUserApplicationgains requireddomain: string | null,custom: string | null, andcreated_atto match the OpenAPIAppSummary.APIUserInfogains requireddatabases: APIDatabaseSummary[].
- Branded
- 4153b54: Remove deprecated backup typings
- d788f4c: Rename application backups to snapshots
- a3cf61a: Add typings for
/apps/:appId/network/purge_cache
- 5a39642: Add enterprise plan sizes type
- 3bfd7c6: Fix
APIApplicationStatusAllto show/hide usage depending onrunningproperty. - 5a39642: Drop using enums.
- 4de3145: Added
advancedandenterprise-24plans - 4de3145: Removed
studentandenterprise-16plans
- 4d7babe: Update
UserPlanNameto includeEnterprise-16new plan. RemoveBusinessplan fromUserPlanName.
- df0a13d: Remove
RESTPostAPIApplicationCommitQuerydue to API changes
- 79b1e02: Make deployment state an enum:
DeploymentState - 5b1f4af: Update
ApplicationLanguageenum with newdotnetlang
- 5e67a46: Add typings for
/apps/:appId/deployments/current(APIDeploymentCurrent)
- ef69efb: Add typings for
/apps/:appId/network/dns(APINetworkDNS) - 78f00c9: Add
RESTPostAPIApplicationBackupand updateAPIApplicationBackup - 211a9d4: Update file-related typings to match new API convention
- 3ef25a4: Implement branded types for UserId and ApplicationId
- 211a9d4: Add typings for
PATCH /apps/:appId/files - 58d009d: Add typings for
/apps/:appId/network/custom(RESTPostAPINetworkCustomDomainJSONBody) - a15ce71: Add typings for
/service/status(APIServiceStatus)
- b3c226d: Completely remove deprecated
tagandisWebsiteproperties
- b3f1a17: Update
UserPlanNamewith new Enterprise plans
- 4b4ddc1: Deprecate APIUser, APIUserApplication and RESTPostAPIApplicationUploadResult
tagproperty. - 4b4ddc1: Deprecate APIApplication, APIWebsiteApplication and APIUserApplication
isWebsiteproperty.
- ecd05cf: Add
freeandstudenttoUserPlanName - ab66f4c: remove
localefromAPIUser
- 881b9a1: Add
statictoApplicationLanguageenum
- c013db0: remove
APIApplication#gitIntegrationdue to API changes
- c4b38e3: remove
avatarfromAPIApplication,APIUserApplicationandRESTPostAPIApplicationUploadResult - 59da443: update
UserPlanNameenum to new plans
- 2504cbd: improve JSDocs
- 004808a: add typings for /apps/all/status route
- 0f3cd4e: improve common interfaces naming
- d3dbca7: rename some typings under application#files
- b24724c: improve comments and file structure
- b4865e1: simplify
RESTPostAPIFileCreateJSONBody#buffer - 2dcfab4: add descriptions properties to Applications*
- 19c73d1: fix
APIDeploy#statenamed incorrectly removeAPIApplication#cpumakeRESTPostAPIApplicationUploadResult#cpunot nullable add enum forAPIApplication#languageadd enum forAPIApplicationStatus#statusadd enum forAPIDeploy#stateadd enum forAPIFile#typeimprove typings forAPIDeploy
- 9e85d33: added README
- 1baa4f5: First version!