@distilled.cloud/turso 0.30.3 → 1.0.0-rc.2
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.
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +8 -0
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +24 -3
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +13 -4
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +8 -6
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +8 -6
- package/lib/index.js.map +1 -1
- package/lib/protocol.d.ts +18 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +46 -0
- package/lib/protocol.js.map +1 -0
- package/lib/retry.d.ts +4 -4
- package/lib/retry.js +4 -4
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +3 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/turso.d.ts +1280 -0
- package/lib/services/turso.d.ts.map +1 -0
- package/lib/services/turso.js +1463 -0
- package/lib/services/turso.js.map +1 -0
- package/lib/traits.d.ts +10 -2
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +10 -2
- package/lib/traits.js.map +1 -1
- package/package.json +31 -37
- package/src/credentials.ts +8 -0
- package/src/errors.ts +42 -5
- package/src/index.ts +12 -6
- package/src/protocol.ts +68 -0
- package/src/retry.ts +4 -4
- package/src/services/index.ts +2 -0
- package/src/services/turso.ts +3426 -0
- package/src/traits.ts +44 -2
- package/README.md +0 -36
- package/lib/category.d.ts +0 -5
- package/lib/category.d.ts.map +0 -1
- package/lib/category.js +0 -5
- package/lib/category.js.map +0 -1
- package/lib/client.d.ts +0 -11
- package/lib/client.d.ts.map +0 -1
- package/lib/client.js +0 -59
- package/lib/client.js.map +0 -1
- package/lib/operations/addLocationToGroup.d.ts +0 -30
- package/lib/operations/addLocationToGroup.d.ts.map +0 -1
- package/lib/operations/addLocationToGroup.js +0 -40
- package/lib/operations/addLocationToGroup.js.map +0 -1
- package/lib/operations/addOrganizationMember.d.ts +0 -22
- package/lib/operations/addOrganizationMember.d.ts.map +0 -1
- package/lib/operations/addOrganizationMember.js +0 -32
- package/lib/operations/addOrganizationMember.js.map +0 -1
- package/lib/operations/createAPIToken.d.ts +0 -28
- package/lib/operations/createAPIToken.d.ts.map +0 -1
- package/lib/operations/createAPIToken.js +0 -44
- package/lib/operations/createAPIToken.js.map +0 -1
- package/lib/operations/createDatabase.d.ts +0 -35
- package/lib/operations/createDatabase.d.ts.map +0 -1
- package/lib/operations/createDatabase.js +0 -53
- package/lib/operations/createDatabase.js.map +0 -1
- package/lib/operations/createDatabaseToken.d.ts +0 -30
- package/lib/operations/createDatabaseToken.d.ts.map +0 -1
- package/lib/operations/createDatabaseToken.js +0 -40
- package/lib/operations/createDatabaseToken.js.map +0 -1
- package/lib/operations/createGroup.d.ts +0 -29
- package/lib/operations/createGroup.d.ts.map +0 -1
- package/lib/operations/createGroup.js +0 -51
- package/lib/operations/createGroup.js.map +0 -1
- package/lib/operations/createGroupToken.d.ts +0 -30
- package/lib/operations/createGroupToken.d.ts.map +0 -1
- package/lib/operations/createGroupToken.js +0 -38
- package/lib/operations/createGroupToken.js.map +0 -1
- package/lib/operations/deleteDatabase.d.ts +0 -21
- package/lib/operations/deleteDatabase.d.ts.map +0 -1
- package/lib/operations/deleteDatabase.js +0 -29
- package/lib/operations/deleteDatabase.js.map +0 -1
- package/lib/operations/deleteGroup.d.ts +0 -28
- package/lib/operations/deleteGroup.d.ts.map +0 -1
- package/lib/operations/deleteGroup.js +0 -36
- package/lib/operations/deleteGroup.js.map +0 -1
- package/lib/operations/deleteOrganizationInviteByEmail.d.ts +0 -21
- package/lib/operations/deleteOrganizationInviteByEmail.d.ts.map +0 -1
- package/lib/operations/deleteOrganizationInviteByEmail.js +0 -30
- package/lib/operations/deleteOrganizationInviteByEmail.js.map +0 -1
- package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts +0 -18
- package/lib/operations/deleteOrganizationInviteByEmailV2.d.ts.map +0 -1
- package/lib/operations/deleteOrganizationInviteByEmailV2.js +0 -29
- package/lib/operations/deleteOrganizationInviteByEmailV2.js.map +0 -1
- package/lib/operations/getCurrentUser.d.ts +0 -23
- package/lib/operations/getCurrentUser.d.ts.map +0 -1
- package/lib/operations/getCurrentUser.js +0 -26
- package/lib/operations/getCurrentUser.js.map +0 -1
- package/lib/operations/getDatabase.d.ts +0 -36
- package/lib/operations/getDatabase.d.ts.map +0 -1
- package/lib/operations/getDatabase.js +0 -44
- package/lib/operations/getDatabase.js.map +0 -1
- package/lib/operations/getDatabaseConfiguration.d.ts +0 -27
- package/lib/operations/getDatabaseConfiguration.d.ts.map +0 -1
- package/lib/operations/getDatabaseConfiguration.js +0 -37
- package/lib/operations/getDatabaseConfiguration.js.map +0 -1
- package/lib/operations/getDatabaseInstance.d.ts +0 -29
- package/lib/operations/getDatabaseInstance.d.ts.map +0 -1
- package/lib/operations/getDatabaseInstance.js +0 -39
- package/lib/operations/getDatabaseInstance.js.map +0 -1
- package/lib/operations/getDatabaseStats.d.ts +0 -25
- package/lib/operations/getDatabaseStats.d.ts.map +0 -1
- package/lib/operations/getDatabaseStats.js +0 -33
- package/lib/operations/getDatabaseStats.js.map +0 -1
- package/lib/operations/getDatabaseUsage.d.ts +0 -42
- package/lib/operations/getDatabaseUsage.d.ts.map +0 -1
- package/lib/operations/getDatabaseUsage.js +0 -50
- package/lib/operations/getDatabaseUsage.js.map +0 -1
- package/lib/operations/getGroup.d.ts +0 -28
- package/lib/operations/getGroup.d.ts.map +0 -1
- package/lib/operations/getGroup.js +0 -36
- package/lib/operations/getGroup.js.map +0 -1
- package/lib/operations/getGroupConfiguration.d.ts +0 -21
- package/lib/operations/getGroupConfiguration.d.ts.map +0 -1
- package/lib/operations/getGroupConfiguration.js +0 -31
- package/lib/operations/getGroupConfiguration.js.map +0 -1
- package/lib/operations/getOrganization.d.ts +0 -30
- package/lib/operations/getOrganization.d.ts.map +0 -1
- package/lib/operations/getOrganization.js +0 -35
- package/lib/operations/getOrganization.js.map +0 -1
- package/lib/operations/getOrganizationMember.d.ts +0 -25
- package/lib/operations/getOrganizationMember.d.ts.map +0 -1
- package/lib/operations/getOrganizationMember.js +0 -35
- package/lib/operations/getOrganizationMember.js.map +0 -1
- package/lib/operations/getOrganizationSubscription.d.ts +0 -23
- package/lib/operations/getOrganizationSubscription.d.ts.map +0 -1
- package/lib/operations/getOrganizationSubscription.js +0 -32
- package/lib/operations/getOrganizationSubscription.js.map +0 -1
- package/lib/operations/getOrganizationUsage.d.ts +0 -47
- package/lib/operations/getOrganizationUsage.d.ts.map +0 -1
- package/lib/operations/getOrganizationUsage.js +0 -56
- package/lib/operations/getOrganizationUsage.js.map +0 -1
- package/lib/operations/index.d.ts +0 -50
- package/lib/operations/index.d.ts.map +0 -1
- package/lib/operations/index.js +0 -50
- package/lib/operations/index.js.map +0 -1
- package/lib/operations/invalidateDatabaseTokens.d.ts +0 -19
- package/lib/operations/invalidateDatabaseTokens.d.ts.map +0 -1
- package/lib/operations/invalidateDatabaseTokens.js +0 -29
- package/lib/operations/invalidateDatabaseTokens.js.map +0 -1
- package/lib/operations/invalidateGroupTokens.d.ts +0 -19
- package/lib/operations/invalidateGroupTokens.d.ts.map +0 -1
- package/lib/operations/invalidateGroupTokens.js +0 -29
- package/lib/operations/invalidateGroupTokens.js.map +0 -1
- package/lib/operations/inviteOrganizationMember.d.ts +0 -69
- package/lib/operations/inviteOrganizationMember.d.ts.map +0 -1
- package/lib/operations/inviteOrganizationMember.js +0 -54
- package/lib/operations/inviteOrganizationMember.js.map +0 -1
- package/lib/operations/inviteOrganizationMemberV2.d.ts +0 -25
- package/lib/operations/inviteOrganizationMemberV2.d.ts.map +0 -1
- package/lib/operations/inviteOrganizationMemberV2.js +0 -34
- package/lib/operations/inviteOrganizationMemberV2.js.map +0 -1
- package/lib/operations/listAPITokens.d.ts +0 -22
- package/lib/operations/listAPITokens.d.ts.map +0 -1
- package/lib/operations/listAPITokens.js +0 -25
- package/lib/operations/listAPITokens.js.map +0 -1
- package/lib/operations/listDatabaseInstances.d.ts +0 -27
- package/lib/operations/listDatabaseInstances.d.ts.map +0 -1
- package/lib/operations/listDatabaseInstances.js +0 -37
- package/lib/operations/listDatabaseInstances.js.map +0 -1
- package/lib/operations/listDatabases.d.ts +0 -39
- package/lib/operations/listDatabases.d.ts.map +0 -1
- package/lib/operations/listDatabases.js +0 -46
- package/lib/operations/listDatabases.js.map +0 -1
- package/lib/operations/listGroups.d.ts +0 -25
- package/lib/operations/listGroups.d.ts.map +0 -1
- package/lib/operations/listGroups.js +0 -32
- package/lib/operations/listGroups.js.map +0 -1
- package/lib/operations/listLocations.d.ts +0 -15
- package/lib/operations/listLocations.d.ts.map +0 -1
- package/lib/operations/listLocations.js +0 -18
- package/lib/operations/listLocations.js.map +0 -1
- package/lib/operations/listOrganizationAPITokens.d.ts +0 -33
- package/lib/operations/listOrganizationAPITokens.d.ts.map +0 -1
- package/lib/operations/listOrganizationAPITokens.js +0 -42
- package/lib/operations/listOrganizationAPITokens.js.map +0 -1
- package/lib/operations/listOrganizationAuditLogs.d.ts +0 -35
- package/lib/operations/listOrganizationAuditLogs.d.ts.map +0 -1
- package/lib/operations/listOrganizationAuditLogs.js +0 -69
- package/lib/operations/listOrganizationAuditLogs.js.map +0 -1
- package/lib/operations/listOrganizationInvites.d.ts +0 -64
- package/lib/operations/listOrganizationInvites.d.ts.map +0 -1
- package/lib/operations/listOrganizationInvites.js +0 -50
- package/lib/operations/listOrganizationInvites.js.map +0 -1
- package/lib/operations/listOrganizationInvitesV2.d.ts +0 -23
- package/lib/operations/listOrganizationInvitesV2.d.ts.map +0 -1
- package/lib/operations/listOrganizationInvitesV2.js +0 -32
- package/lib/operations/listOrganizationInvitesV2.js.map +0 -1
- package/lib/operations/listOrganizationInvoices.d.ts +0 -27
- package/lib/operations/listOrganizationInvoices.d.ts.map +0 -1
- package/lib/operations/listOrganizationInvoices.js +0 -36
- package/lib/operations/listOrganizationInvoices.js.map +0 -1
- package/lib/operations/listOrganizationMembers.d.ts +0 -22
- package/lib/operations/listOrganizationMembers.d.ts.map +0 -1
- package/lib/operations/listOrganizationMembers.js +0 -31
- package/lib/operations/listOrganizationMembers.js.map +0 -1
- package/lib/operations/listOrganizationPlans.d.ts +0 -34
- package/lib/operations/listOrganizationPlans.d.ts.map +0 -1
- package/lib/operations/listOrganizationPlans.js +0 -43
- package/lib/operations/listOrganizationPlans.js.map +0 -1
- package/lib/operations/listOrganizations.d.ts +0 -24
- package/lib/operations/listOrganizations.d.ts.map +0 -1
- package/lib/operations/listOrganizations.js +0 -27
- package/lib/operations/listOrganizations.js.map +0 -1
- package/lib/operations/removeLocationFromGroup.d.ts +0 -30
- package/lib/operations/removeLocationFromGroup.d.ts.map +0 -1
- package/lib/operations/removeLocationFromGroup.js +0 -40
- package/lib/operations/removeLocationFromGroup.js.map +0 -1
- package/lib/operations/removeOrganizationMember.d.ts +0 -21
- package/lib/operations/removeOrganizationMember.d.ts.map +0 -1
- package/lib/operations/removeOrganizationMember.js +0 -31
- package/lib/operations/removeOrganizationMember.js.map +0 -1
- package/lib/operations/revokeAPIToken.d.ts +0 -19
- package/lib/operations/revokeAPIToken.d.ts.map +0 -1
- package/lib/operations/revokeAPIToken.js +0 -24
- package/lib/operations/revokeAPIToken.js.map +0 -1
- package/lib/operations/revokeOrganizationAPIToken.d.ts +0 -25
- package/lib/operations/revokeOrganizationAPIToken.d.ts.map +0 -1
- package/lib/operations/revokeOrganizationAPIToken.js +0 -34
- package/lib/operations/revokeOrganizationAPIToken.js.map +0 -1
- package/lib/operations/transferGroup.d.ts +0 -27
- package/lib/operations/transferGroup.d.ts.map +0 -1
- package/lib/operations/transferGroup.js +0 -35
- package/lib/operations/transferGroup.js.map +0 -1
- package/lib/operations/unarchiveGroup.d.ts +0 -28
- package/lib/operations/unarchiveGroup.d.ts.map +0 -1
- package/lib/operations/unarchiveGroup.js +0 -36
- package/lib/operations/unarchiveGroup.js.map +0 -1
- package/lib/operations/updateDatabaseConfiguration.d.ts +0 -34
- package/lib/operations/updateDatabaseConfiguration.d.ts.map +0 -1
- package/lib/operations/updateDatabaseConfiguration.js +0 -44
- package/lib/operations/updateDatabaseConfiguration.js.map +0 -1
- package/lib/operations/updateGroupConfiguration.d.ts +0 -22
- package/lib/operations/updateGroupConfiguration.d.ts.map +0 -1
- package/lib/operations/updateGroupConfiguration.js +0 -32
- package/lib/operations/updateGroupConfiguration.js.map +0 -1
- package/lib/operations/updateGroupDatabases.d.ts +0 -19
- package/lib/operations/updateGroupDatabases.d.ts.map +0 -1
- package/lib/operations/updateGroupDatabases.js +0 -29
- package/lib/operations/updateGroupDatabases.js.map +0 -1
- package/lib/operations/updateMemberRole.d.ts +0 -26
- package/lib/operations/updateMemberRole.d.ts.map +0 -1
- package/lib/operations/updateMemberRole.js +0 -34
- package/lib/operations/updateMemberRole.js.map +0 -1
- package/lib/operations/updateOrganization.d.ts +0 -31
- package/lib/operations/updateOrganization.d.ts.map +0 -1
- package/lib/operations/updateOrganization.js +0 -37
- package/lib/operations/updateOrganization.js.map +0 -1
- package/lib/operations/validateAPIToken.d.ts +0 -15
- package/lib/operations/validateAPIToken.d.ts.map +0 -1
- package/lib/operations/validateAPIToken.js +0 -18
- package/lib/operations/validateAPIToken.js.map +0 -1
- package/lib/sensitive.d.ts +0 -5
- package/lib/sensitive.d.ts.map +0 -1
- package/lib/sensitive.js +0 -5
- package/lib/sensitive.js.map +0 -1
- package/src/category.ts +0 -4
- package/src/client.ts +0 -74
- package/src/operations/addLocationToGroup.ts +0 -63
- package/src/operations/addOrganizationMember.ts +0 -49
- package/src/operations/createAPIToken.ts +0 -77
- package/src/operations/createDatabase.ts +0 -94
- package/src/operations/createDatabaseToken.ts +0 -62
- package/src/operations/createGroup.ts +0 -92
- package/src/operations/createGroupToken.ts +0 -58
- package/src/operations/deleteDatabase.ts +0 -42
- package/src/operations/deleteGroup.ts +0 -58
- package/src/operations/deleteOrganizationInviteByEmail.ts +0 -38
- package/src/operations/deleteOrganizationInviteByEmailV2.ts +0 -40
- package/src/operations/getCurrentUser.ts +0 -46
- package/src/operations/getDatabase.ts +0 -74
- package/src/operations/getDatabaseConfiguration.ts +0 -56
- package/src/operations/getDatabaseInstance.ts +0 -61
- package/src/operations/getDatabaseStats.ts +0 -54
- package/src/operations/getDatabaseUsage.ts +0 -92
- package/src/operations/getGroup.ts +0 -58
- package/src/operations/getGroupConfiguration.ts +0 -44
- package/src/operations/getOrganization.ts +0 -60
- package/src/operations/getOrganizationMember.ts +0 -56
- package/src/operations/getOrganizationSubscription.ts +0 -51
- package/src/operations/getOrganizationUsage.ts +0 -113
- package/src/operations/index.ts +0 -49
- package/src/operations/invalidateDatabaseTokens.ts +0 -40
- package/src/operations/invalidateGroupTokens.ts +0 -40
- package/src/operations/inviteOrganizationMember.ts +0 -66
- package/src/operations/inviteOrganizationMemberV2.ts +0 -55
- package/src/operations/listAPITokens.ts +0 -46
- package/src/operations/listDatabaseInstances.ts +0 -60
- package/src/operations/listDatabases.ts +0 -80
- package/src/operations/listGroups.ts +0 -55
- package/src/operations/listLocations.ts +0 -28
- package/src/operations/listOrganizationAPITokens.ts +0 -68
- package/src/operations/listOrganizationAuditLogs.ts +0 -128
- package/src/operations/listOrganizationInvites.ts +0 -64
- package/src/operations/listOrganizationInvitesV2.ts +0 -53
- package/src/operations/listOrganizationInvoices.ts +0 -60
- package/src/operations/listOrganizationMembers.ts +0 -53
- package/src/operations/listOrganizationPlans.ts +0 -78
- package/src/operations/listOrganizations.ts +0 -48
- package/src/operations/removeLocationFromGroup.ts +0 -63
- package/src/operations/removeOrganizationMember.ts +0 -44
- package/src/operations/revokeAPIToken.ts +0 -36
- package/src/operations/revokeOrganizationAPIToken.ts +0 -47
- package/src/operations/transferGroup.ts +0 -54
- package/src/operations/unarchiveGroup.ts +0 -58
- package/src/operations/updateDatabaseConfiguration.ts +0 -70
- package/src/operations/updateGroupConfiguration.ts +0 -46
- package/src/operations/updateGroupDatabases.ts +0 -40
- package/src/operations/updateMemberRole.ts +0 -54
- package/src/operations/updateOrganization.ts +0 -64
- package/src/operations/validateAPIToken.ts +0 -28
- package/src/sensitive.ts +0 -4
package/lib/credentials.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAE7D,MAAM,WAAW,MAAM;IACrB,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC7B;;AAED,qBAAa,WAAY,SAAQ,gBAGV;CAAG;AAM1B,eAAO,MAAM,kBAAkB,wCAe9B,CAAC"}
|
package/lib/credentials.js
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turso credentials — hand-written.
|
|
3
|
+
*
|
|
4
|
+
* API-compatible port of the distilled repo's turso credentials module: the
|
|
5
|
+
* `Credentials` service holds an *effect* that resolves the current
|
|
6
|
+
* credentials, so the protocol layer picks up rotations per request. Turso
|
|
7
|
+
* auth is a plain bearer token (`Authorization: Bearer <apiKey>`).
|
|
8
|
+
*/
|
|
1
9
|
import { ConfigError } from "@distilled.cloud/core/errors";
|
|
2
10
|
import * as EffectConfig from "effect/Config";
|
|
3
11
|
import * as Context from "effect/Context";
|
package/lib/credentials.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AAO7D,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAG7C,CAAC,kBAAkB,CAAC;CAAG;AAE1B,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC;IACjC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,eAAe,CAAC;CAC7C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,CAC7C,WAAW,EACX,SAAS,CAAC,IAAI,CACZ,MAAM,CAAC,QAAQ,CACb,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;IACd,OAAO,EAAE,gDAAgD;CAC1D,CAAC,CACL,EACD,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1B,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,oBAAoB;CACjC,CAAC,CAAC,EACH,MAAM,CAAC,KAAK,CACb,CACF,CAAC"}
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../src/credentials.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,YAAY,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AAO7D,MAAM,OAAO,WAAY,SAAQ,OAAO,CAAC,OAAO,EAG7C,CAAC,kBAAkB,CAAC;CAAG;AAE1B,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC;IACjC,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,eAAe,CAAC;CAC7C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kBAAkB,GAAG,KAAK,CAAC,OAAO,CAC7C,WAAW,EACX,SAAS,CAAC,IAAI,CACZ,MAAM,CAAC,QAAQ,CACb,GAAG,EAAE,CACH,IAAI,WAAW,CAAC;IACd,OAAO,EAAE,gDAAgD;CAC1D,CAAC,CACL,EACD,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1B,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC;IAC7B,UAAU,EAAE,oBAAoB;CACjC,CAAC,CAAC,EACH,MAAM,CAAC,KAAK,CACb,CACF,CAAC"}
|
package/lib/errors.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Turso-specific error types.
|
|
3
3
|
*
|
|
4
|
-
* Re-exports common HTTP errors from sdk-core and adds Turso-specific
|
|
5
|
-
* error
|
|
4
|
+
* Re-exports common HTTP errors from sdk-core and adds the Turso-specific
|
|
5
|
+
* fallback/parse error types (ported from the distilled repo's turso SDK).
|
|
6
|
+
*
|
|
7
|
+
* Turso error bodies have the shape `{ error: string, code?: string }`.
|
|
6
8
|
*/
|
|
7
9
|
export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors";
|
|
8
|
-
|
|
10
|
+
import type { BadRequest as CoreBadRequest, Conflict as CoreConflict, DefaultErrors as CoreDefaultErrors, Forbidden as CoreForbidden, Locked as CoreLocked, NotFound as CoreNotFound, UnprocessableEntity as CoreUnprocessableEntity } from "@distilled.cloud/core/errors";
|
|
9
11
|
import * as Schema from "effect/Schema";
|
|
10
12
|
declare const UnknownTursoError_base: Schema.Class<UnknownTursoError, Schema.TaggedStruct<"UnknownTursoError", {
|
|
11
13
|
readonly code: Schema.optional<Schema.String>;
|
|
@@ -16,6 +18,11 @@ declare const UnknownTursoError_base: Schema.Class<UnknownTursoError, Schema.Tag
|
|
|
16
18
|
ServerError: true;
|
|
17
19
|
};
|
|
18
20
|
});
|
|
21
|
+
/**
|
|
22
|
+
* Unknown Turso error — returned when an error response cannot be mapped to
|
|
23
|
+
* a shared HTTP status class. Carries the raw `code` string Turso sometimes
|
|
24
|
+
* includes in its error body.
|
|
25
|
+
*/
|
|
19
26
|
export declare class UnknownTursoError extends UnknownTursoError_base {
|
|
20
27
|
}
|
|
21
28
|
declare const TursoParseError_base: Schema.Class<TursoParseError, Schema.TaggedStruct<"TursoParseError", {
|
|
@@ -26,6 +33,20 @@ declare const TursoParseError_base: Schema.Class<TursoParseError, Schema.TaggedS
|
|
|
26
33
|
ParseError: true;
|
|
27
34
|
};
|
|
28
35
|
});
|
|
36
|
+
/**
|
|
37
|
+
* Schema parse error wrapper — kept for parity with the distilled turso SDK's
|
|
38
|
+
* error surface.
|
|
39
|
+
*/
|
|
29
40
|
export declare class TursoParseError extends TursoParseError_base {
|
|
30
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Errors any Turso operation may surface beyond the core HTTP defaults.
|
|
44
|
+
*/
|
|
45
|
+
export type ClientErrors = UnknownTursoError | TursoParseError;
|
|
46
|
+
/**
|
|
47
|
+
* Default Turso operation errors: the shared HTTP status errors from core
|
|
48
|
+
* (both the always-possible defaults and the status-mapped 4xx classes the
|
|
49
|
+
* protocol's status matcher can produce) plus the Turso client errors.
|
|
50
|
+
*/
|
|
51
|
+
export type DefaultErrors = CoreDefaultErrors | CoreBadRequest | CoreForbidden | CoreNotFound | CoreConflict | CoreUnprocessableEntity | CoreLocked | ClientErrors;
|
|
31
52
|
//# sourceMappingURL=errors.d.ts.map
|
package/lib/errors.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EACV,UAAU,IAAI,cAAc,EAC5B,QAAQ,IAAI,YAAY,EACxB,aAAa,IAAI,iBAAiB,EAClC,SAAS,IAAI,aAAa,EAC1B,MAAM,IAAI,UAAU,EACpB,QAAQ,IAAI,YAAY,EACxB,mBAAmB,IAAI,uBAAuB,EAC/C,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;;;;;;;;;;AAGxC;;;;GAIG;AACH,qBAAa,iBAAkB,SAAQ,sBAOP;CAAG;;;;;;;;;AAEnC;;;GAGG;AACH,qBAAa,eAAgB,SAAQ,oBAMN;CAAG;AAElC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,iBAAiB,GAAG,eAAe,CAAC;AAE/D;;;;GAIG;AACH,MAAM,MAAM,aAAa,GACrB,iBAAiB,GACjB,cAAc,GACd,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,uBAAuB,GACvB,UAAU,GACV,YAAY,CAAC"}
|
package/lib/errors.js
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Turso-specific error types.
|
|
3
3
|
*
|
|
4
|
-
* Re-exports common HTTP errors from sdk-core and adds Turso-specific
|
|
5
|
-
* error
|
|
4
|
+
* Re-exports common HTTP errors from sdk-core and adds the Turso-specific
|
|
5
|
+
* fallback/parse error types (ported from the distilled repo's turso SDK).
|
|
6
|
+
*
|
|
7
|
+
* Turso error bodies have the shape `{ error: string, code?: string }`.
|
|
6
8
|
*/
|
|
7
9
|
export { BadGateway, BadRequest, Conflict, ConfigError, Forbidden, GatewayTimeout, InternalServerError, Locked, NotFound, ServiceUnavailable, TooManyRequests, Unauthorized, UnprocessableEntity, HTTP_STATUS_MAP, DEFAULT_ERRORS, API_ERRORS, } from "@distilled.cloud/core/errors";
|
|
8
10
|
import * as Schema from "effect/Schema";
|
|
9
11
|
import * as Category from "@distilled.cloud/core/category";
|
|
10
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Unknown Turso error — returned when an error response cannot be mapped to
|
|
14
|
+
* a shared HTTP status class. Carries the raw `code` string Turso sometimes
|
|
15
|
+
* includes in its error body.
|
|
16
|
+
*/
|
|
11
17
|
export class UnknownTursoError extends Schema.TaggedErrorClass()("UnknownTursoError", {
|
|
12
18
|
code: Schema.optional(Schema.String),
|
|
13
19
|
message: Schema.optional(Schema.String),
|
|
14
20
|
body: Schema.Unknown,
|
|
15
21
|
}).pipe(Category.withServerError) {
|
|
16
22
|
}
|
|
17
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Schema parse error wrapper — kept for parity with the distilled turso SDK's
|
|
25
|
+
* error surface.
|
|
26
|
+
*/
|
|
18
27
|
export class TursoParseError extends Schema.TaggedErrorClass()("TursoParseError", {
|
|
19
28
|
body: Schema.Unknown,
|
|
20
29
|
cause: Schema.Unknown,
|
package/lib/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,UAAU,GACX,MAAM,8BAA8B,CAAC;AAWtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,QAAQ,MAAM,gCAAgC,CAAC;AAE3D;;;;GAIG;AACH,MAAM,OAAO,iBAAkB,SAAQ,MAAM,CAAC,gBAAgB,EAAqB,CACjF,mBAAmB,EACnB;IACE,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC,OAAO;CACrB,CACF,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC;CAAG;AAEnC;;;GAGG;AACH,MAAM,OAAO,eAAgB,SAAQ,MAAM,CAAC,gBAAgB,EAAmB,CAC7E,iBAAiB,EACjB;IACE,IAAI,EAAE,MAAM,CAAC,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC,OAAO;CACtB,CACF,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC;CAAG"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Turso SDK for Effect
|
|
2
|
+
* @distilled.cloud/turso — Turso SDK for Effect.
|
|
3
|
+
*
|
|
4
|
+
* `./services` is generated by `scripts/generate.ts` from the Smithy model in
|
|
5
|
+
* `.generated-specs` (converted from the Turso OpenAPI spec by
|
|
6
|
+
* `scripts/convert.ts`). Everything else in this folder is hand-written.
|
|
3
7
|
*
|
|
4
8
|
* @example
|
|
5
9
|
* ```ts
|
|
@@ -7,11 +11,9 @@
|
|
|
7
11
|
* ```
|
|
8
12
|
*/
|
|
9
13
|
export * from "./credentials.ts";
|
|
10
|
-
export *
|
|
14
|
+
export * from "./errors.ts";
|
|
11
15
|
export * as T from "./traits.ts";
|
|
12
16
|
export * as Retry from "./retry.ts";
|
|
13
|
-
export {
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./operations/index.ts";
|
|
16
|
-
export { SensitiveString, SensitiveNullableString } from "./sensitive.ts";
|
|
17
|
+
export { TursoProtocol, type TursoOpError, type TursoOpContext, } from "./protocol.ts";
|
|
18
|
+
export * as Services from "./services/index.ts";
|
|
17
19
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EACL,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,cAAc,GACpB,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Turso SDK for Effect
|
|
2
|
+
* @distilled.cloud/turso — Turso SDK for Effect.
|
|
3
|
+
*
|
|
4
|
+
* `./services` is generated by `scripts/generate.ts` from the Smithy model in
|
|
5
|
+
* `.generated-specs` (converted from the Turso OpenAPI spec by
|
|
6
|
+
* `scripts/convert.ts`). Everything else in this folder is hand-written.
|
|
3
7
|
*
|
|
4
8
|
* @example
|
|
5
9
|
* ```ts
|
|
@@ -7,11 +11,9 @@
|
|
|
7
11
|
* ```
|
|
8
12
|
*/
|
|
9
13
|
export * from "./credentials.js";
|
|
10
|
-
export *
|
|
14
|
+
export * from "./errors.js";
|
|
11
15
|
export * as T from "./traits.js";
|
|
12
16
|
export * as Retry from "./retry.js";
|
|
13
|
-
export {
|
|
14
|
-
export * from "./
|
|
15
|
-
export * from "./operations/index.js";
|
|
16
|
-
export { SensitiveString, SensitiveNullableString } from "./sensitive.js";
|
|
17
|
+
export { TursoProtocol, } from "./protocol.js";
|
|
18
|
+
export * as Services from "./services/index.js";
|
|
17
19
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,EACL,aAAa,GAGd,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type * as Layer from "effect/Layer";
|
|
2
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
3
|
+
import type * as HttpClientError from "effect/unstable/http/HttpClientError";
|
|
4
|
+
import type * as API from "@distilled.cloud/core/api";
|
|
5
|
+
import type { ConfigError } from "@distilled.cloud/core/errors";
|
|
6
|
+
import { Credentials } from "./credentials.ts";
|
|
7
|
+
import { type DefaultErrors } from "./errors.ts";
|
|
8
|
+
/**
|
|
9
|
+
* Error channel shared by every generated Turso operation. Generated service
|
|
10
|
+
* files annotate operations with `API.OperationMethod<I, O, TursoOpError,
|
|
11
|
+
* TursoOpContext>` explicitly so the compiler never infers these back out of
|
|
12
|
+
* the schema generics.
|
|
13
|
+
*/
|
|
14
|
+
export type TursoOpError = DefaultErrors | ConfigError | HttpClientError.HttpClientError;
|
|
15
|
+
/** Context (requirements) shared by every generated Turso operation. */
|
|
16
|
+
export type TursoOpContext = Credentials | HttpClient.HttpClient;
|
|
17
|
+
export declare const TursoProtocol: Layer.Layer<API.Protocol>;
|
|
18
|
+
//# sourceMappingURL=protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,KAAK,UAAU,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,KAAK,eAAe,MAAM,sCAAsC,CAAC;AAC7E,OAAO,KAAK,KAAK,GAAG,MAAM,2BAA2B,CAAC;AAEtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAe,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAqB,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GACpB,aAAa,GACb,WAAW,GACX,eAAe,CAAC,eAAe,CAAC;AAEpC,wEAAwE;AACxE,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC;AAEjE,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CA0BhD,CAAC"}
|
package/lib/protocol.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TursoProtocol — hand-written.
|
|
3
|
+
*
|
|
4
|
+
* Turso's platform API is plain bearer-REST JSON (`Authorization: Bearer
|
|
5
|
+
* <apiKey>`, no response envelope), so the protocol is a direct
|
|
6
|
+
* `makeRestProtocol` instantiation from `core/protocol-rest`:
|
|
7
|
+
*
|
|
8
|
+
* request: credentials resolved per request from the Credentials service,
|
|
9
|
+
* bearer auth header, base URL from `creds.apiBaseUrl`
|
|
10
|
+
*
|
|
11
|
+
* response: non-2xx → typed error matched like the distilled turso client:
|
|
12
|
+
* per-op matcher classes first, then the shared HTTP status map
|
|
13
|
+
* (`{ error: string, code?: string }` bodies parsed leniently,
|
|
14
|
+
* `retryAfter` hints stamped on retryable statuses), unmapped
|
|
15
|
+
* failures fall back to `UnknownTursoError`.
|
|
16
|
+
*/
|
|
17
|
+
import * as Effect from "effect/Effect";
|
|
18
|
+
import * as Redacted from "effect/Redacted";
|
|
19
|
+
import { makeRestProtocol } from "@distilled.cloud/core/protocol-rest";
|
|
20
|
+
import { Credentials } from "./credentials.js";
|
|
21
|
+
import { UnknownTursoError } from "./errors.js";
|
|
22
|
+
export const TursoProtocol = makeRestProtocol({
|
|
23
|
+
// The Credentials service holds an effect — resolving it here (per
|
|
24
|
+
// request) picks up rotations. Its error channel is erased at the protocol
|
|
25
|
+
// boundary; TursoOpError reintroduces it for callers.
|
|
26
|
+
credentials: Effect.gen(function* () {
|
|
27
|
+
const resolve = yield* Credentials;
|
|
28
|
+
return yield* resolve;
|
|
29
|
+
}),
|
|
30
|
+
baseUrl: (creds) => creds.apiBaseUrl,
|
|
31
|
+
headers: (creds) => ({
|
|
32
|
+
Authorization: `Bearer ${Redacted.value(creds.apiKey)}`,
|
|
33
|
+
}),
|
|
34
|
+
// Turso error bodies are `{ error: string, code?: string }` — covered by
|
|
35
|
+
// the default lenient envelope (message ?? error, string codes kept).
|
|
36
|
+
unknownError: ({ code, message, body }) => new UnknownTursoError({
|
|
37
|
+
code: typeof code === "string"
|
|
38
|
+
? code
|
|
39
|
+
: code !== undefined
|
|
40
|
+
? String(code)
|
|
41
|
+
: undefined,
|
|
42
|
+
message,
|
|
43
|
+
body,
|
|
44
|
+
}),
|
|
45
|
+
});
|
|
46
|
+
//# sourceMappingURL=protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"protocol.js","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,QAAQ,MAAM,iBAAiB,CAAC;AAI5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAEvE,OAAO,EAAE,WAAW,EAAe,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAsB,MAAM,aAAa,CAAC;AAgBpE,MAAM,CAAC,MAAM,aAAa,GACxB,gBAAgB,CAAS;IACvB,mEAAmE;IACnE,2EAA2E;IAC3E,sDAAsD;IACtD,WAAW,EAAE,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC/B,MAAM,OAAO,GAAG,KAAK,CAAC,CAAC,WAAW,CAAC;QACnC,OAAO,KAAK,CAAC,CAAC,OAAO,CAAC;IACxB,CAAC,CAAC;IACF,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU;IACpC,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;QACnB,aAAa,EAAE,UAAU,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;KACxD,CAAC;IACF,yEAAyE;IACzE,sEAAsE;IACtE,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CACxC,IAAI,iBAAiB,CAAC;QACpB,IAAI,EACF,OAAO,IAAI,KAAK,QAAQ;YACtB,CAAC,CAAC,IAAI;YACN,CAAC,CAAC,IAAI,KAAK,SAAS;gBAClB,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC;gBACd,CAAC,CAAC,SAAS;QACjB,OAAO;QACP,IAAI;KACL,CAAC;CACL,CAAC,CAAC"}
|
package/lib/retry.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Turso retry configuration.
|
|
3
3
|
*
|
|
4
|
-
* Defines the per-SDK `Retry` Context.Service tag that
|
|
5
|
-
* `
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Defines the per-SDK `Retry` Context.Service tag that generated operations
|
|
5
|
+
* wire into `API.make({ retry: Retry.Retry })`. Callers can install a
|
|
6
|
+
* blanket retry policy at the layer level and have every Turso API call
|
|
7
|
+
* below it pick it up:
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* ```ts
|
package/lib/retry.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Turso retry configuration.
|
|
3
3
|
*
|
|
4
|
-
* Defines the per-SDK `Retry` Context.Service tag that
|
|
5
|
-
* `
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Defines the per-SDK `Retry` Context.Service tag that generated operations
|
|
5
|
+
* wire into `API.make({ retry: Retry.Retry })`. Callers can install a
|
|
6
|
+
* blanket retry policy at the layer level and have every Turso API call
|
|
7
|
+
* below it pick it up:
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* ```ts
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC"}
|